From 759d1608b3ba75f3525370e2031f78405ad8e043 Mon Sep 17 00:00:00 2001 From: Antoine Date: Fri, 24 Jan 2025 09:20:35 -0500 Subject: [PATCH 1/2] fix & update to v4.2.2 --- .gitignore | 1 + .openapi-generator/FILES | 660 +- .openapi-generator/VERSION | 2 +- .openapi-generator/config.yaml | 14 +- AUTHORS | 4 + Makefile | 2 +- api/netbox_docker_version | 2 +- api/netbox_version | 2 +- api/openapi.yaml | 97932 ++++++++----- api_circuits.go | 24580 +++- api_cluster_test.go | 19 + api_core.go | 7874 +- api_dcim.go | 106122 +++++++++------ api_extras.go | 34149 +++-- api_ipam.go | 33282 +++-- api_prefix_test.go | 18 + api_schema.go | 52 +- api_sites_test.go | 20 + api_status.go | 41 +- api_tenancy.go | 4568 +- api_tenant_test.go | 18 + api_users.go | 2710 +- api_utils_test.go | 27 + api_virtualization.go | 6024 +- api_vm_test.go | 18 + api_vpn.go | 11389 +- api_wireless.go | 4079 +- client.go | 191 +- configuration.go | 19 +- docs/ASN.md | 72 +- docs/ASNRange.md | 58 +- docs/ASNRangeRequest.md | 18 +- docs/ASNRequest.md | 16 +- docs/Aggregate.md | 58 +- docs/AggregateRequest.md | 18 +- docs/AvailableIP.md | 15 +- docs/AvailablePrefix.md | 15 +- docs/AvailableVLAN.md | 15 +- docs/Bookmark.md | 24 +- docs/BookmarkRequest.md | 10 +- docs/BriefCable.md | 145 + docs/BriefCableRequest.md | 82 + docs/BriefCircuit.md | 161 + ...ayNestedModule.md => BriefCircuitGroup.md} | 57 +- docs/BriefCircuitGroupAssignmentSerializer.md | 140 + ...ircuitGroupAssignmentSerializerPriority.md | 82 + ...GroupAssignmentSerializerPriorityLabel.md} | 2 +- ...GroupAssignmentSerializerPriorityValue.md} | 2 +- ...CircuitGroupAssignmentSerializerRequest.md | 77 + docs/BriefCircuitGroupRequest.md | 51 + docs/BriefCircuitRequest.md | 98 + docs/BriefCircuitType.md | 182 + docs/BriefCircuitTypeRequest.md | 98 + docs/BriefCluster.md | 166 + docs/BriefClusterGroup.md | 187 + docs/BriefClusterGroupRequest.md | 98 + docs/BriefClusterRequest.md | 77 + docs/BriefClusterType.md | 187 + docs/BriefClusterTypeRequest.md | 98 + docs/BriefConfigTemplate.md | 140 + docs/BriefConfigTemplateRequest.md | 77 + docs/BriefContact.md | 140 + docs/BriefContactGroup.md | 203 + docs/BriefContactGroupRequest.md | 98 + docs/BriefContactRequest.md | 77 + docs/BriefContactRole.md | 161 + docs/BriefContactRoleRequest.md | 98 + docs/BriefCustomFieldChoiceSet.md | 161 + docs/BriefCustomFieldChoiceSetRequest.md | 77 + docs/BriefDataFile.md | 114 + docs/BriefDataSource.md | 140 + docs/BriefDataSourceRequest.md | 77 + docs/BriefDevice.md | 155 + ...DeviceRequest.md => BriefDeviceRequest.md} | 34 +- docs/BriefDeviceRole.md | 213 + docs/BriefDeviceRoleRequest.md | 98 + docs/BriefDeviceType.md | 208 + docs/BriefDeviceTypeRequest.md | 119 + docs/BriefFHRPGroup.md | 161 + ...pProtocol.md => BriefFHRPGroupProtocol.md} | 2 +- docs/BriefFHRPGroupRequest.md | 98 + docs/{VirtualMachine.md => BriefIKEPolicy.md} | 46 +- ...ineRequest.md => BriefIKEPolicyRequest.md} | 28 +- docs/BriefIPAddress.md | 161 + docs/BriefIPAddressRequest.md | 77 + docs/BriefIPSecPolicy.md | 140 + docs/BriefIPSecPolicyRequest.md | 77 + docs/BriefIPSecProfile.md | 140 + docs/BriefIPSecProfileRequest.md | 77 + docs/BriefInterface.md | 218 + docs/BriefInterfaceRequest.md | 98 + docs/BriefInventoryItemRole.md | 182 + docs/BriefInventoryItemRoleRequest.md | 98 + docs/BriefJob.md | 155 + docs/{JobRequest.md => BriefJobRequest.md} | 26 +- docs/BriefJobStatus.md | 82 + ...bStatusLabel.md => BriefJobStatusLabel.md} | 2 +- ...bStatusValue.md => BriefJobStatusValue.md} | 2 +- docs/BriefL2VPN.md | 223 + docs/BriefL2VPNRequest.md | 160 + docs/BriefL2VPNTermination.md | 114 + docs/BriefL2VPNTerminationRequest.md | 51 + docs/BriefL2VPNType.md | 82 + ...VPNTypeLabel.md => BriefL2VPNTypeLabel.md} | 4 +- ...VPNTypeValue.md => BriefL2VPNTypeValue.md} | 4 +- docs/BriefLocation.md | 208 + docs/BriefLocationRequest.md | 98 + docs/BriefMACAddress.md | 140 + docs/BriefMACAddressRequest.md | 77 + docs/BriefManufacturer.md | 187 + docs/BriefManufacturerRequest.md | 98 + docs/BriefModule.md | 135 + docs/BriefModuleRequest.md | 72 + docs/BriefModuleType.md | 161 + docs/BriefModuleTypeRequest.md | 98 + docs/BriefPlatform.md | 213 + docs/BriefPlatformRequest.md | 98 + docs/BriefPowerPanel.md | 161 + docs/BriefPowerPanelRequest.md | 77 + docs/BriefPowerPort.md | 218 + docs/BriefPowerPortRequest.md | 98 + docs/BriefPowerPortTemplate.md | 140 + docs/BriefPowerPortTemplateRequest.md | 77 + docs/BriefProvider.md | 182 + docs/BriefProviderAccount.md | 166 + docs/BriefProviderAccountRequest.md | 103 + docs/BriefProviderNetwork.md | 140 + docs/BriefProviderNetworkRequest.md | 77 + docs/BriefProviderRequest.md | 98 + docs/BriefRIR.md | 182 + docs/BriefRIRRequest.md | 98 + docs/BriefRack.md | 166 + docs/BriefRackRequest.md | 77 + docs/BriefRackRole.md | 187 + docs/BriefRackRoleRequest.md | 98 + docs/BriefRackType.md | 182 + docs/BriefRackTypeRequest.md | 119 + docs/BriefRearPortTemplate.md | 140 + docs/BriefRearPortTemplateRequest.md | 77 + docs/BriefRegion.md | 208 + docs/BriefRegionRequest.md | 98 + docs/BriefRole.md | 213 + docs/BriefRoleRequest.md | 98 + docs/BriefSite.md | 161 + docs/BriefSiteGroup.md | 208 + docs/BriefSiteGroupRequest.md | 98 + docs/BriefSiteRequest.md | 98 + docs/BriefTenant.md | 161 + docs/BriefTenantGroup.md | 203 + docs/BriefTenantGroupRequest.md | 98 + docs/BriefTenantRequest.md | 98 + docs/BriefTunnel.md | 140 + docs/BriefTunnelGroup.md | 182 + docs/BriefTunnelGroupRequest.md | 98 + docs/BriefTunnelRequest.md | 77 + docs/BriefUser.md | 114 + docs/BriefUserRequest.md | 51 + docs/BriefVLAN.md | 161 + docs/BriefVLANGroup.md | 187 + docs/BriefVLANGroupRequest.md | 98 + docs/BriefVLANRequest.md | 98 + docs/BriefVLANTranslationPolicy.md | 140 + docs/BriefVLANTranslationPolicyRequest.md | 77 + docs/BriefVRF.md | 202 + docs/BriefVRFRequest.md | 113 + docs/BriefVirtualChassis.md | 197 + docs/BriefVirtualChassisRequest.md | 113 + docs/BriefVirtualCircuit.md | 161 + docs/BriefVirtualCircuitRequest.md | 98 + docs/BriefVirtualCircuitType.md | 182 + docs/BriefVirtualCircuitTypeRequest.md | 98 + docs/BriefVirtualMachine.md | 140 + docs/BriefVirtualMachineRequest.md | 77 + docs/BriefWirelessLANGroup.md | 203 + docs/BriefWirelessLANGroupRequest.md | 98 + docs/Cable.md | 424 + docs/CableLengthUnit.md | 82 + docs/CableLengthUnitLabel.md | 21 + ...tLengthUnit.md => CableLengthUnitValue.md} | 2 +- docs/CableRequest.md | 326 + docs/CableRequestLengthUnit.md | 23 + docs/{JobStatus.md => CableStatus.md} | 34 +- ...LinkStatusLabel.md => CableStatusLabel.md} | 2 +- ...leRequestStatus.md => CableStatusValue.md} | 2 +- docs/CableTermination.md | 23 +- ...itableCableRequestType.md => CableType.md} | 4 +- docs/Circuit.md | 596 +- docs/CircuitCircuitTermination.md | 351 + docs/CircuitCircuitTerminationRequest.md | 226 + ...mentPriority.md => CircuitDistanceUnit.md} | 34 +- docs/CircuitDistanceUnitLabel.md | 17 + docs/CircuitDistanceUnitValue.md | 19 + docs/CircuitGroup.md | 368 + docs/CircuitGroupAssignment.md | 342 + docs/CircuitGroupAssignmentRequest.md | 145 + docs/CircuitGroupRequest.md | 186 + docs/CircuitRequest 2.md | 77 + docs/CircuitRequest.md | 426 +- docs/CircuitRequestDistanceUnit.md | 19 + ...WirelessLinkStatus.md => CircuitStatus.md} | 34 +- docs/CircuitStatusLabel.md | 21 + ...RequestStatus.md => CircuitStatusValue.md} | 2 +- docs/CircuitTermination.md | 200 +- docs/CircuitTerminationRequest.md | 94 +- docs/CircuitType.md | 42 +- docs/CircuitsAPI.md | 6055 +- ...tGroupAssignmentsListPriorityParameter.md} | 2 +- ...cuitTerminationsListCableEndParameter 2.md | 13 + ...rcuitsCircuitsListDistanceUnitParameter.md | 17 + docs/Cluster.md | 501 +- docs/ClusterGroup.md | 49 +- docs/ClusterRequest.md | 271 +- docs/ClusterStatus.md | 82 + docs/ClusterStatusLabel.md | 19 + ...RequestStatus.md => ClusterStatusValue.md} | 2 +- docs/ClusterType.md | 49 +- docs/ClusterTypeRequest 2.md | 150 + docs/ConfigContext.md | 65 +- docs/ConfigContextRequest.md | 8 +- docs/ConfigTemplate.md | 292 +- docs/ConfigTemplateRequest.md | 111 +- docs/ConsolePort.md | 122 +- docs/ConsolePortRequest.md | 18 +- docs/ConsolePortTemplate.md | 32 +- docs/ConsolePortTemplateRequest.md | 16 +- docs/ConsolePortTypeValue 2.md | 41 + docs/ConsoleServerPort.md | 122 +- docs/ConsoleServerPortRequest 2.md | 300 + docs/ConsoleServerPortRequest.md | 18 +- docs/ConsoleServerPortTemplate.md | 32 +- docs/ConsoleServerPortTemplateRequest.md | 16 +- docs/Contact.md | 342 + docs/ContactAssignment.md | 40 +- docs/ContactAssignmentRequest.md | 26 +- docs/ContactGroup.md | 42 +- docs/ContactRequest.md | 244 + docs/ContactRole 2.md | 161 + docs/ContactRole.md | 150 + docs/ContactRoleRequest.md | 52 + docs/CoreAPI 2.md | 1355 + docs/CoreAPI.md | 1000 +- ...> CoreObjectChangesListActionParameter.md} | 2 +- docs/CustomField.md | 114 +- docs/CustomFieldChoiceSet.md | 42 +- .../CustomFieldChoiceSetBaseChoicesValue 2.md | 15 + docs/CustomFieldChoiceSetRequest 2.md | 150 + docs/CustomFieldFilterLogicValue 2.md | 15 + docs/CustomFieldRequest.md | 72 +- docs/CustomFieldUiEditable 2.md | 82 + docs/CustomFieldUiVisibleValue 2.md | 15 + docs/CustomLink.md | 42 +- docs/CustomLinkButtonClass.md | 2 +- docs/DataFile.md | 36 +- docs/DataSource.md | 360 +- docs/DataSourceRequest 2.md | 259 + docs/DataSourceRequest.md | 62 +- docs/DataSourceStatus.md | 82 + docs/DataSourceStatusLabel.md | 19 + docs/DataSourceStatusValue.md | 19 + docs/DataSourceType.md | 82 + docs/DataSourceTypeLabel.md | 17 + ...eRequestType.md => DataSourceTypeValue.md} | 2 +- docs/DcimAPI.md | 8454 +- docs/DcimCablesListLengthUnitParameter 2.md | 21 + docs/DcimDeviceTypesListAirflowParameter.md | 6 + ...icesRenderConfigCreateFormatParameter 2.md | 13 + docs/DcimInterfacesListModeParameter.md | 2 + docs/DcimModuleTypesListAirflowParameter.md | 21 + docs/DcimPowerFeedsListSupplyParameter 2.md | 13 + docs/DcimPowerFeedsListTypeParameter 2.md | 13 + ...=> DcimRackTypesListOuterUnitParameter.md} | 2 +- docs/DcimRacksListAirflowParameter.md | 13 + docs/Device 2.md | 1346 + docs/Device.md | 265 +- docs/DeviceAirflowLabel 2.md | 23 + docs/DeviceAirflowLabel.md | 6 + docs/DeviceAirflowValue.md | 6 + docs/DeviceBay.md | 58 +- docs/DeviceBayRequest.md | 18 +- docs/DeviceBayTemplate.md | 24 +- docs/DeviceBayTemplateRequest.md | 10 +- docs/DeviceRole.md | 254 +- docs/DeviceRoleRequest.md | 8 +- docs/DeviceType.md | 759 +- docs/DeviceTypeAirflow.md | 82 + docs/DeviceTypeRequest.md | 424 +- docs/DeviceTypeRequestAirflow.md | 31 + docs/DeviceTypeRequestSubdeviceRole.md | 15 + ...Unit.md => DeviceTypeRequestWeightUnit.md} | 2 +- docs/DeviceTypeSubdeviceRole.md | 82 + docs/DeviceTypeSubdeviceRoleLabel.md | 13 + docs/DeviceTypeSubdeviceRoleValue.md | 15 + docs/DeviceTypeWeightUnit.md | 82 + docs/DeviceTypeWeightUnitLabel.md | 17 + docs/DeviceTypeWeightUnitValue.md | 19 + docs/DeviceWithConfigContext.md | 173 +- docs/DeviceWithConfigContextRequest.md | 106 +- docs/Event.md | 23 + docs/EventRule 2.md | 566 + docs/EventRule.md | 193 +- docs/EventRuleActionTypeLabel.md | 2 + docs/EventRuleActionTypeValue.md | 2 + docs/EventRuleEventTypesInner.md | 23 + docs/EventRuleRequest 2.md | 420 + docs/EventRuleRequest.md | 153 +- docs/ExportTemplate.md | 65 +- docs/ExportTemplateRequest.md | 8 +- docs/ExtrasAPI.md | 2938 +- ...trasCustomLinksListButtonClassParameter.md | 4 +- docs/FHRPGroup.md | 295 +- docs/FHRPGroupAssignment.md | 31 +- docs/FHRPGroupAssignmentRequest.md | 10 +- docs/FHRPGroupRequest.md | 176 +- docs/FrontPort.md | 90 +- docs/FrontPortRearPort.md | 26 + docs/FrontPortRequest.md | 20 +- docs/FrontPortTemplate.md | 42 +- docs/FrontPortTemplateRequest.md | 28 +- docs/FrontPortType 2.md | 82 + docs/FrontPortTypeLabel.md | 16 + docs/FrontPortTypeValue.md | 16 + docs/GenericObject.md | 108 + docs/Group.md | 26 + docs/IKEPolicy.md | 49 +- docs/IKEPolicyMode 2.md | 82 + docs/IKEPolicyRequest 2.md | 249 + docs/IKEPolicyRequest.md | 9 +- docs/IKEPolicyVersionLabel 2.md | 13 + docs/IKEProposal.md | 49 +- docs/IKEProposalAuthenticationAlgorithm 2.md | 82 + ...EProposalAuthenticationAlgorithmValue 2.md | 19 + ...IKEProposalAuthenticationAlgorithmValue.md | 10 +- docs/IKEProposalGroupLabel.md | 48 +- docs/IKEProposalRequest 2.md | 275 + docs/IKEProposalRequest.md | 9 +- docs/IPAddress.md | 493 +- docs/IPAddressRequest.md | 336 + docs/IPAddressRole.md | 82 + docs/IPAddressRoleLabel.md | 25 + docs/IPAddressRoleValue.md | 27 + docs/IPAddressStatus.md | 82 + docs/IPAddressStatusLabel.md | 19 + docs/IPAddressStatusValue.md | 19 + docs/IPRange 2.md | 503 + docs/IPRange.md | 66 +- docs/IPRangeRequest.md | 24 +- docs/IPRangeStatusLabel 2.md | 15 + docs/IPSecPolicy.md | 42 +- docs/IPSecProfile.md | 58 +- docs/IPSecProfileMode 2.md | 82 + docs/IPSecProfileRequest.md | 18 +- docs/IPSecProposal.md | 56 +- docs/IPSecProposalRequest.md | 16 +- docs/ImageAttachment.md | 27 +- docs/ImageAttachmentRequest 2.md | 161 + docs/ImageAttachmentRequest.md | 44 +- docs/Interface 2.md | 1394 + docs/Interface.md | 304 +- docs/InterfaceDuplex 2.md | 82 + docs/InterfaceDuplexLabel 2.md | 15 + docs/InterfaceModeLabel.md | 2 + docs/InterfaceModeValue.md | 2 + docs/InterfaceRequest.md | 144 +- docs/InterfaceRequestDuplex 2.md | 17 + docs/InterfaceRfChannelLabel 2.md | 403 + docs/InterfaceTemplate.md | 32 +- docs/InterfaceTemplatePoeMode 2.md | 82 + docs/InterfaceTemplateRequest.md | 16 +- docs/InterfaceTemplateRequestRfRole 2.md | 15 + docs/InterfaceTypeLabel.md | 10 + docs/InterfaceTypeValue.md | 10 + docs/InventoryItem.md | 99 +- docs/InventoryItemRequest.md | 52 +- docs/InventoryItemRole.md | 42 +- docs/InventoryItemStatus.md | 82 + ...usLabel.md => InventoryItemStatusLabel.md} | 2 +- ...tStatus.md => InventoryItemStatusValue.md} | 2 +- docs/InventoryItemTemplate.md | 47 +- docs/InventoryItemTemplateRequest.md | 26 +- docs/IpamAPI.md | 1992 +- docs/Job 2.md | 456 + docs/Job.md | 51 +- docs/JournalEntry.md | 49 +- docs/L2VPN.md | 272 +- docs/L2VPNRequest.md | 174 +- docs/L2VPNTermination.md | 238 +- docs/L2VPNTerminationRequest.md | 104 +- docs/Location.md | 356 +- docs/LocationRequest.md | 199 +- docs/LocationStatus.md | 82 + docs/LocationStatusLabel.md | 19 + ...equestStatus.md => LocationStatusValue.md} | 2 +- docs/MACAddress.md | 424 + docs/MACAddressRequest.md | 227 + docs/Manufacturer.md | 201 +- docs/ManufacturerRequest 2.md | 98 + docs/ManufacturerRequest.md | 52 + docs/Module.md | 321 +- docs/ModuleBay.md | 94 +- docs/ModuleBayNestedModuleRequest.md | 56 - docs/ModuleBayRequest.md | 54 +- docs/ModuleBayTemplate.md | 75 +- docs/ModuleBayTemplateRequest 2.md | 150 + docs/ModuleBayTemplateRequest.md | 61 +- docs/ModuleRequest.md | 223 +- docs/ModuleType.md | 320 +- docs/ModuleTypeAirflow.md | 82 + docs/ModuleTypeAirflowLabel.md | 21 + docs/ModuleTypeAirflowValue.md | 23 + docs/ModuleTypeRequest.md | 222 +- docs/ModuleTypeRequestAirflow.md | 23 + docs/NestedContactGroup.md | 26 + docs/NestedDevice.md | 26 + docs/NestedGroup 2.md | 114 + docs/NestedGroup.md | 26 + docs/NestedIPAddress.md | 161 + docs/NestedIPAddressRequest.md | 51 + docs/NestedInterface.md | 26 + docs/NestedLocation.md | 182 + docs/NestedLocationRequest.md | 72 + docs/NestedModuleBay.md | 56 +- docs/NestedModuleBayRequest.md | 36 - docs/NestedProviderAccount.md | 166 + docs/NestedRegion.md | 26 + docs/NestedSiteGroup 2.md | 156 + docs/NestedSiteGroup.md | 26 + docs/NestedTag.md | 26 + docs/NestedTenantGroup 2.md | 156 + docs/NestedTenantGroup.md | 26 + docs/NestedUser.md | 26 + docs/NestedVLAN.md | 161 + docs/NestedVLANRequest.md | 98 + docs/NestedVMInterface.md | 26 + docs/NestedVirtualMachine.md | 26 + docs/NestedWirelessLANGroup.md | 182 + docs/NestedWirelessLink.md | 26 + docs/Notification.md | 275 + docs/NotificationGroup.md | 218 + docs/NotificationGroupRequest.md | 129 + docs/NotificationRequest.md | 150 + docs/ObjectChange 2.md | 333 + docs/ObjectChange.md | 57 +- docs/ObjectChangeActionLabel 2.md | 15 + docs/ObjectPermission.md | 26 + docs/PaginatedCableList 2.md | 144 + docs/PaginatedCircuitGroupAssignmentList.md | 144 + docs/PaginatedCircuitGroupList.md | 144 + docs/PaginatedConsolePortTemplateList 2.md | 144 + docs/PaginatedCustomLinkList 2.md | 144 + docs/PaginatedDeviceTypeList 2.md | 144 + docs/PaginatedImageAttachmentList 2.md | 144 + docs/PaginatedL2VPNList 2.md | 144 + docs/PaginatedMACAddressList.md | 144 + docs/PaginatedModuleBayTemplateList 2.md | 144 + docs/PaginatedNotificationGroupList.md | 144 + docs/PaginatedNotificationList.md | 144 + docs/PaginatedPowerOutletList 2.md | 144 + docs/PaginatedPowerPortList 2.md | 144 + docs/PaginatedPrefixList 2.md | 144 + docs/PaginatedProviderList 2.md | 144 + docs/PaginatedRackRoleList 2.md | 144 + docs/PaginatedRackTypeList.md | 144 + docs/PaginatedSubscriptionList.md | 144 + docs/PaginatedTokenList 2.md | 144 + docs/PaginatedVLANTranslationPolicyList.md | 144 + docs/PaginatedVLANTranslationRuleList.md | 144 + docs/PaginatedVMInterfaceList 2.md | 144 + docs/PaginatedVRFList 2.md | 144 + docs/PaginatedVirtualCircuitList.md | 144 + .../PaginatedVirtualCircuitTerminationList.md | 144 + docs/PaginatedVirtualCircuitTypeList.md | 144 + docs/PaginatedWirelessLinkList 2.md | 144 + docs/PatchedASNRangeRequest.md | 16 +- docs/PatchedASNRequest.md | 16 +- docs/PatchedBookmarkRequest.md | 8 +- docs/PatchedCircuitGroupRequest.md | 196 + docs/PatchedCircuitTerminationRequest.md | 92 +- docs/PatchedClusterGroupRequest 2.md | 160 + docs/PatchedConfigContextRequest.md | 8 +- docs/PatchedConfigTemplateRequest.md | 8 +- docs/PatchedContactRequest.md | 8 +- docs/PatchedDeviceBayRequest.md | 16 +- docs/PatchedDeviceBayTemplateRequest.md | 8 +- docs/PatchedDeviceRoleRequest 2.md | 248 + docs/PatchedDeviceRoleRequest.md | 8 +- docs/PatchedExportTemplateRequest 2.md | 238 + docs/PatchedExportTemplateRequest.md | 8 +- docs/PatchedFHRPGroupAssignmentRequest.md | 8 +- docs/PatchedFHRPGroupRequest.md | 20 +- docs/PatchedImageAttachmentRequest.md | 52 - docs/PatchedInventoryItemTemplateRequest.md | 24 +- docs/PatchedL2VPNTerminationRequest.md | 8 +- docs/PatchedMACAddressRequest.md | 232 + docs/PatchedModuleBayRequest.md | 52 +- docs/PatchedModuleBayTemplateRequest 2.md | 160 + docs/PatchedModuleBayTemplateRequest.md | 54 +- docs/PatchedNotificationGroupRequest.md | 134 + docs/PatchedNotificationRequest.md | 170 + docs/PatchedPlatformRequest.md | 16 +- docs/PatchedPowerPanelRequest.md | 16 +- docs/PatchedProviderAccountRequest.md | 8 +- docs/PatchedProviderNetworkRequest.md | 8 +- docs/PatchedRackReservationRequest.md | 24 +- docs/PatchedRoleRequest 2.md | 186 + docs/PatchedRouteTargetRequest 2.md | 196 + docs/PatchedRouteTargetRequest.md | 8 +- docs/PatchedSavedFilterRequest 2.md | 284 + docs/PatchedScriptInputRequest.md | 164 + docs/PatchedSubscriptionRequest.md | 108 + docs/PatchedTenantRequest.md | 8 +- docs/PatchedTokenRequest.md | 8 +- docs/PatchedVLANGroupRequest.md | 52 - docs/PatchedVLANTranslationPolicyRequest.md | 82 + docs/PatchedVLANTranslationRuleRequest.md | 134 + docs/PatchedVRFRequest.md | 8 +- docs/PatchedVirtualCircuitTypeRequest.md | 186 + docs/PatchedVirtualDiskRequest.md | 8 +- docs/PatchedWritableAggregateRequest 2.md | 258 + docs/PatchedWritableAggregateRequest.md | 16 +- docs/PatchedWritableCableRequest.md | 52 +- ...edWritableCircuitGroupAssignmentRequest.md | 170 + ...leCircuitGroupAssignmentRequestPriority.md | 19 + docs/PatchedWritableCircuitRequest.md | 138 +- docs/PatchedWritableClusterRequest.md | 106 +- docs/PatchedWritableConsolePortRequest.md | 28 +- ...tchedWritableConsolePortTemplateRequest.md | 34 +- ...dWritableConsolePortTemplateRequestType.md | 41 + ...PatchedWritableConsoleServerPortRequest.md | 28 +- ...ritableConsoleServerPortTemplateRequest.md | 34 +- ...tchedWritableContactAssignmentRequest 2.md | 222 + ...PatchedWritableContactAssignmentRequest.md | 34 +- ...chedWritableCustomFieldChoiceSetRequest.md | 12 +- docs/PatchedWritableCustomFieldRequest.md | 72 +- docs/PatchedWritableDataSourceRequest.md | 52 +- docs/PatchedWritableDeviceTypeRequest.md | 64 +- ...dWritableDeviceWithConfigContextRequest.md | 134 +- docs/PatchedWritableEventRuleRequest 2.md | 440 + docs/PatchedWritableEventRuleRequest.md | 154 +- docs/PatchedWritableFrontPortRequest.md | 18 +- ...PatchedWritableFrontPortTemplateRequest.md | 26 +- docs/PatchedWritableIKEPolicyRequest.md | 12 +- docs/PatchedWritableIKEProposalRequest.md | 12 +- ...roposalRequestAuthenticationAlgorithm 2.md | 21 + docs/PatchedWritableIPAddressRequest.md | 28 +- docs/PatchedWritableIPRangeRequest.md | 24 +- ...hedWritableIPSecPolicyRequestPfsGroup 2.md | 57 + docs/PatchedWritableIPSecProfileRequest.md | 16 +- docs/PatchedWritableIPSecProposalRequest.md | 24 +- docs/PatchedWritableInterfaceRequest.md | 214 +- docs/PatchedWritableInterfaceRequestMode.md | 2 + ...PatchedWritableInterfaceTemplateRequest.md | 64 +- docs/PatchedWritableInventoryItemRequest.md | 506 + docs/PatchedWritableL2VPNRequest.md | 16 +- docs/PatchedWritableLocationRequest.md | 24 +- docs/PatchedWritableModuleRequest.md | 24 +- docs/PatchedWritableModuleTypeRequest.md | 62 +- docs/PatchedWritablePowerFeedRequest.md | 24 +- docs/PatchedWritablePowerOutletRequest.md | 74 +- ...chedWritablePowerOutletRequestFeedLeg 2.md | 17 + docs/PatchedWritablePowerOutletRequestType.md | 4 + ...tchedWritablePowerOutletTemplateRequest.md | 48 +- ...dWritablePowerOutletTemplateRequestType.md | 4 + docs/PatchedWritablePowerPortRequest.md | 28 +- docs/PatchedWritablePowerPortRequestType.md | 2 + ...PatchedWritablePowerPortTemplateRequest.md | 28 +- ...hedWritablePowerPortTemplateRequestType.md | 2 + docs/PatchedWritablePrefixRequest.md | 136 +- docs/PatchedWritablePrefixRequestStatus 2.md | 17 + docs/PatchedWritableRackRequest.md | 170 +- docs/PatchedWritableRackRequestAirflow.md | 15 + docs/PatchedWritableRackRequestFormFactor.md | 25 + docs/PatchedWritableRackRequestStatus 2.md | 19 + docs/PatchedWritableRackTypeRequest.md | 594 + ...atchedWritableRackTypeRequestFormFactor.md | 23 + docs/PatchedWritableRearPortRequest.md | 16 +- ...atchedWritableRearPortTemplateRequest 2.md | 258 + .../PatchedWritableRearPortTemplateRequest.md | 16 +- docs/PatchedWritableServiceRequest 2.md | 310 + docs/PatchedWritableServiceRequest.md | 16 +- docs/PatchedWritableSiteRequest.md | 32 +- docs/PatchedWritableTunnelRequest.md | 24 +- ...tchedWritableTunnelRequestEncapsulation.md | 8 + ...PatchedWritableTunnelTerminationRequest.md | 16 +- docs/PatchedWritableVLANRequest.md | 104 +- docs/PatchedWritableVLANRequestStatus 2.md | 15 + docs/PatchedWritableVMInterfaceRequest.md | 146 +- docs/PatchedWritableVirtualCircuitRequest.md | 310 + ...ritableVirtualCircuitTerminationRequest.md | 186 + ...chedWritableVirtualDeviceContextRequest.md | 32 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- ...atchedWritableWirelessLANGroupRequest 2.md | 196 + docs/PatchedWritableWirelessLANRequest.md | 120 +- docs/PatchedWritableWirelessLinkRequest.md | 128 +- docs/Platform.md | 238 +- docs/PlatformRequest.md | 124 + docs/PowerFeed 2.md | 759 + docs/PowerFeed.md | 130 +- docs/PowerFeedRequest.md | 26 +- docs/PowerFeedSupply 2.md | 82 + docs/PowerOutlet 2.md | 649 + docs/PowerOutlet.md | 156 +- docs/PowerOutletFeedLegValue 2.md | 17 + docs/PowerOutletRequest.md | 60 +- docs/PowerOutletTemplate 2.md | 408 + docs/PowerOutletTemplate.md | 40 +- docs/PowerOutletTemplateRequest.md | 32 +- docs/PowerOutletType.md | 8 +- docs/PowerOutletTypeLabel.md | 4 + ...RequestType.md => PowerOutletTypeValue.md} | 6 +- docs/PowerPanel.md | 235 +- docs/PowerPanelRequest.md | 137 +- docs/PowerPort.md | 540 +- docs/PowerPortRequest.md | 258 +- docs/PowerPortTemplate.md | 278 + docs/PowerPortTemplateRequest 2.md | 77 + docs/PowerPortTemplateRequest.md | 206 + docs/PowerPortType.md | 82 + docs/PowerPortTypeLabel.md | 217 + docs/PowerPortTypeValue.md | 219 + docs/Prefix.md | 214 +- docs/PrefixRequest 2.md | 413 + docs/PrefixRequest.md | 136 +- docs/PrefixStatusLabel 2.md | 17 + docs/Provider.md | 228 + docs/ProviderAccount.md | 50 +- docs/ProviderAccountRequest.md | 101 +- docs/ProviderNetwork.md | 225 +- docs/ProviderNetworkRequest 2.md | 77 + docs/ProviderNetworkRequest.md | 127 +- docs/ProviderRequest.md | 130 + docs/QInQRole.md | 15 + docs/RIR.md | 176 + docs/RIRRequest.md | 78 + docs/Rack.md | 913 +- docs/RackAirflow.md | 82 + docs/RackAirflowLabel.md | 13 + docs/RackAirflowValue.md | 15 + docs/RackFormFactor.md | 82 + docs/RackFormFactorLabel.md | 23 + ...kRequestType.md => RackFormFactorValue.md} | 2 +- docs/RackOuterUnit.md | 82 + docs/RackOuterUnitLabel.md | 13 + docs/RackOuterUnitValue.md | 15 + docs/RackRequest.md | 787 +- docs/RackReservation 2.md | 353 + docs/RackReservation.md | 66 +- docs/RackReservationRequest.md | 26 +- docs/RackRole.md | 49 +- docs/RackStatus.md | 82 + docs/RackStatusLabel.md | 19 + docs/RackType.md | 750 + docs/RackTypeRequest.md | 589 + docs/RackUnit.md | 10 +- docs/RackUnitFace 2.md | 82 + docs/{L2VPNType.md => RackWidth.md} | 34 +- docs/RackWidthLabel.md | 17 + docs/RackWidthValue.md | 17 + docs/RearPort.md | 88 +- docs/RearPortRequest.md | 18 +- docs/RearPortTemplate 2.md | 140 + docs/RearPortTemplate.md | 245 +- docs/RearPortTemplateRequest.md | 173 +- docs/Region 2.md | 353 + docs/Region.md | 75 +- docs/RegionRequest 2.md | 186 + docs/Role 2.md | 203 + docs/Role.md | 192 +- docs/RoleRequest 2.md | 98 + docs/RoleRequest.md | 78 + docs/RouteTarget.md | 50 +- docs/RouteTargetRequest.md | 8 +- docs/SavedFilter.md | 42 +- docs/SchemaAPI 2.md | 77 + docs/SchemaAPI.md | 2 +- docs/SchemaRetrieveLangParameter.md | 10 + docs/Script.md | 60 +- docs/ScriptInputRequest.md | 154 + docs/Service.md | 58 +- docs/ServiceRequest.md | 16 +- docs/ServiceTemplate.md | 42 +- docs/Site.md | 675 +- docs/SiteGroup.md | 75 +- docs/SiteRequest.md | 424 + docs/Subscription.md | 218 + docs/SubscriptionRequest.md | 93 + docs/Tag.md | 42 +- docs/TenancyAPI.md | 112 +- docs/Tenant.md | 464 +- docs/TenantGroup.md | 42 +- docs/TenantRequest 2.md | 98 + docs/TenantRequest.md | 114 + docs/{Termination.md => TerminationSide.md} | 2 +- docs/{Termination1.md => TerminationSide1.md} | 2 +- docs/Token 2.md | 285 + docs/Token.md | 43 +- docs/TokenProvision.md | 43 +- docs/TokenRequest.md | 10 +- docs/Tunnel 2.md | 140 + docs/Tunnel.md | 385 +- docs/TunnelEncapsulation.md | 82 + docs/TunnelEncapsulationLabel.md | 25 + docs/TunnelGroup.md | 42 +- docs/TunnelGroupRequest 2.md | 150 + docs/TunnelRequest.md | 266 +- docs/TunnelStatus.md | 82 + docs/TunnelStatusLabel.md | 15 + docs/TunnelTermination.md | 72 +- docs/TunnelTerminationRequest 2.md | 212 + docs/TunnelTerminationRequest.md | 25 +- docs/TunnelTerminationRoleLabel 2.md | 15 + docs/User.md | 270 + docs/UserRequest 2.md | 51 + docs/UserRequest.md | 267 +- docs/UsersAPI.md | 36 +- docs/VLAN 2.md | 161 + docs/VLAN.md | 470 + docs/VLANGroup.md | 108 +- docs/VLANGroupRequest.md | 52 - docs/VLANQinqRole.md | 82 + docs/VLANQinqRoleLabel.md | 13 + docs/VLANQinqRoleValue.md | 13 + docs/VLANRequest.md | 310 + docs/VLANTranslationPolicy.md | 161 + docs/VLANTranslationPolicyRequest.md | 77 + docs/VLANTranslationRule.md | 182 + docs/VLANTranslationRuleRequest.md | 119 + docs/VMInterface 2.md | 642 + docs/VMInterface.md | 225 +- docs/VMInterfaceRequest.md | 136 +- docs/VRF.md | 320 +- docs/VRFRequest.md | 192 + docs/VirtualChassis.md | 225 +- docs/VirtualChassisRequest.md | 104 + docs/VirtualCircuit.md | 456 + docs/VirtualCircuitRequest.md | 295 + docs/VirtualCircuitTermination.md | 337 + docs/VirtualCircuitTerminationRequest.md | 176 + docs/VirtualCircuitType.md | 358 + docs/VirtualCircuitTypeRequest.md | 176 + docs/VirtualDeviceContext.md | 87 +- docs/VirtualDeviceContextRequest.md | 34 +- docs/VirtualDeviceContextStatusLabel 2.md | 15 + docs/VirtualDisk.md | 50 +- docs/VirtualDiskRequest.md | 10 +- docs/VirtualMachineWithConfigContext.md | 168 +- .../VirtualMachineWithConfigContextRequest.md | 106 +- docs/VirtualMachineWithConfigContextStatus.md | 82 - docs/VirtualizationAPI.md | 272 +- docs/VpnAPI.md | 400 +- docs/Webhook.md | 42 +- docs/WebhookRequest 2.md | 342 + docs/WirelessAPI.md | 276 +- docs/WirelessLAN.md | 174 +- docs/WirelessLANAuthCipherLabel 2.md | 15 + docs/WirelessLANAuthType 2.md | 82 + docs/WirelessLANAuthTypeLabel 2.md | 17 + docs/WirelessLANGroup.md | 186 + docs/WirelessLANRequest.md | 96 +- docs/WirelessLANStatusLabel 2.md | 17 + docs/WirelessLANStatusValue 2.md | 19 + docs/WirelessLink.md | 146 +- docs/WirelessLinkRequest.md | 106 +- docs/WritableAggregateRequest 2.md | 248 + docs/WritableAggregateRequest.md | 18 +- docs/WritableCableRequest.md | 52 +- docs/WritableCircuitGroupAssignmentRequest.md | 155 + docs/WritableCircuitRequest.md | 140 +- docs/WritableClusterRequest.md | 108 +- docs/WritableConsolePortRequest.md | 30 +- docs/WritableConsolePortTemplateRequest.md | 34 +- docs/WritableConsoleServerPortRequest.md | 30 +- ...ritableConsoleServerPortTemplateRequest.md | 34 +- docs/WritableContactAssignmentRequest.md | 36 +- docs/WritableContactGroupRequest.md | 9 +- docs/WritableCustomFieldChoiceSetRequest.md | 12 +- docs/WritableCustomFieldRequest.md | 72 +- docs/WritableDataSourceRequest.md | 52 +- docs/WritableDeviceTypeRequest.md | 66 +- ...ritableDeviceWithConfigContextRequest 2.md | 944 + .../WritableDeviceWithConfigContextRequest.md | 141 +- docs/WritableEventRuleRequest 2.md | 425 + docs/WritableEventRuleRequest.md | 153 +- docs/WritableFrontPortRequest.md | 20 +- docs/WritableFrontPortTemplateRequest.md | 28 +- docs/WritableIKEPolicyRequest.md | 12 +- docs/WritableIKEProposalRequest.md | 12 +- docs/WritableIPAddressRequest.md | 28 +- docs/WritableIPRangeRequest.md | 24 +- docs/WritableIPSecProfileRequest 2.md | 218 + docs/WritableIPSecProfileRequest.md | 18 +- docs/WritableIPSecProposalRequest.md | 24 +- docs/WritableInterfaceRequest.md | 216 +- docs/WritableInterfaceTemplateRequest.md | 64 +- ...est.md => WritableInventoryItemRequest.md} | 198 +- docs/WritableL2VPNRequest.md | 18 +- docs/WritableLocationRequest.md | 33 +- docs/WritableModuleRequest.md | 26 +- docs/WritableModuleTypeRequest.md | 64 +- docs/WritablePowerFeedRequest.md | 26 +- docs/WritablePowerOutletRequest.md | 76 +- docs/WritablePowerOutletTemplateRequest.md | 48 +- docs/WritablePowerPortRequest.md | 30 +- docs/WritablePowerPortTemplateRequest.md | 28 +- docs/WritablePrefixRequest.md | 136 +- docs/WritableRackRequest.md | 172 +- docs/WritableRackTypeRequest.md | 574 + docs/WritableRearPortRequest.md | 18 +- docs/WritableRearPortTemplateRequest.md | 16 +- docs/WritableRegionRequest.md | 9 +- docs/WritableServiceRequest.md | 16 +- docs/WritableSiteGroupRequest.md | 9 +- docs/WritableSiteRequest.md | 32 +- docs/WritableTenantGroupRequest 2.md | 186 + docs/WritableTunnelRequest.md | 24 +- docs/WritableTunnelTerminationRequest.md | 25 +- docs/WritableVLANRequest.md | 104 +- docs/WritableVMInterfaceRequest.md | 148 +- docs/WritableVirtualCircuitRequest.md | 295 + ...ritableVirtualCircuitTerminationRequest.md | 176 + docs/WritableVirtualDeviceContextRequest.md | 34 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- docs/WritableWirelessLANGroupRequest.md | 9 +- docs/WritableWirelessLANRequest 2.md | 367 + docs/WritableWirelessLANRequest.md | 120 +- docs/WritableWirelessLinkRequest.md | 130 +- go.mod | 8 - go.sum | 10 - model_aggregate.go | 192 +- model_aggregate_family.go | 10 +- model_aggregate_family_label.go | 3 +- model_aggregate_family_value.go | 3 +- model_aggregate_request.go | 69 +- model_asn.go | 254 +- model_asn_range.go | 196 +- model_asn_range_request.go | 73 +- model_asn_request.go | 66 +- model_authentication.go | 9 +- model_authentication_cipher.go | 9 +- model_authentication_type.go | 7 +- model_authentication_type_1.go | 11 +- model_available_asn.go | 34 +- model_available_ip.go | 83 +- model_available_prefix.go | 81 +- model_available_vlan.go | 78 +- model_bookmark.go | 114 +- model_bookmark_request.go | 48 +- model_brief_cable.go | 320 + model_brief_cable_request.go | 192 + model_brief_circuit.go | 344 + model_brief_circuit_group.go | 276 + ...ef_circuit_group_assignment_serializer_.go | 313 + ...t_group_assignment_serializer__priority.go | 192 + ...p_assignment_serializer__priority_label.go | 115 + ...p_assignment_serializer__priority_value.go | 117 + ...uit_group_assignment_serializer_request.go | 223 + model_brief_circuit_group_request.go | 186 + model_brief_circuit_request.go | 254 + model_brief_circuit_type.go | 373 + model_brief_circuit_type_request.go | 253 + model_brief_cluster.go | 350 + model_brief_cluster_group.go | 380 + model_brief_cluster_group_request.go | 253 + model_brief_cluster_request.go | 223 + model_brief_cluster_type.go | 380 + model_brief_cluster_type_request.go | 253 + model_brief_config_template.go | 313 + model_brief_config_template_request.go | 223 + model_brief_contact.go | 313 + model_brief_contact_group.go | 403 + model_brief_contact_group_request.go | 253 + model_brief_contact_request.go | 223 + model_brief_contact_role.go | 343 + model_brief_contact_role_request.go | 253 + model_brief_custom_field_choice_set.go | 343 + ...l_brief_custom_field_choice_set_request.go | 223 + model_brief_data_file.go | 277 + model_brief_data_source.go | 313 + model_brief_data_source_request.go | 223 + model_brief_device.go | 330 + ...equest.go => model_brief_device_request.go | 85 +- model_brief_device_role.go | 417 + model_brief_device_role_request.go | 253 + model_brief_device_type.go | 410 + model_brief_device_type_request.go | 283 + model_brief_fhrp_group.go | 343 + model_brief_fhrp_group_protocol.go | 121 + model_brief_fhrp_group_request.go | 253 + model_brief_ike_policy.go | 313 + model_brief_ike_policy_request.go | 223 + model_brief_interface.go | 420 + model_brief_interface_request.go | 253 + model_brief_inventory_item_role.go | 373 + model_brief_inventory_item_role_request.go | 253 + model_brief_ip_address.go | 343 + model_brief_ip_address_request.go | 223 + model_brief_ip_sec_policy.go | 313 + model_brief_ip_sec_policy_request.go | 223 + model_brief_ip_sec_profile.go | 313 + model_brief_ip_sec_profile_request.go | 223 + model_brief_job.go | 331 + ...b_request.go => model_brief_job_request.go | 75 +- model_brief_job_status.go | 192 + model_brief_job_status_label.go | 119 + model_brief_job_status_value.go | 119 + model_brief_l2_vpn.go | 427 + model_brief_l2_vpn_request.go | 337 + model_brief_l2_vpn_termination.go | 276 + model_brief_l2_vpn_termination_request.go | 186 + model_brief_l2_vpn_type.go | 192 + model_brief_l2_vpn_type_label.go | 133 + model_brief_l2_vpn_type_value.go | 133 + model_brief_location.go | 410 + model_brief_location_request.go | 253 + model_brief_mac_address.go | 313 + model_brief_mac_address_request.go | 223 + model_brief_manufacturer.go | 380 + model_brief_manufacturer_request.go | 253 + model_brief_module.go | 306 + model_brief_module_request.go | 216 + model_brief_module_type.go | 343 + model_brief_module_type_request.go | 253 + model_brief_platform.go | 417 + model_brief_platform_request.go | 253 + model_brief_power_panel.go | 343 + model_brief_power_panel_request.go | 223 + model_brief_power_port.go | 420 + model_brief_power_port_request.go | 253 + model_brief_power_port_template.go | 314 + model_brief_power_port_template_request.go | 224 + model_brief_provider.go | 374 + model_brief_provider_account.go | 354 + model_brief_provider_account_request.go | 264 + model_brief_provider_network.go | 313 + model_brief_provider_network_request.go | 223 + model_brief_provider_request.go | 254 + model_brief_rack.go | 350 + ..._request.go => model_brief_rack_request.go | 102 +- model_brief_rack_role.go | 380 + model_brief_rack_role_request.go | 253 + model_brief_rack_type.go | 373 + model_brief_rack_type_request.go | 283 + model_brief_rear_port_template.go | 314 + model_brief_rear_port_template_request.go | 224 + model_brief_region.go | 410 + model_brief_region_request.go | 253 + model_brief_rir.go | 373 + model_brief_rir_request.go | 253 + model_brief_role.go | 417 + model_brief_role_request.go | 253 + model_brief_site.go | 344 + model_brief_site_group.go | 410 + model_brief_site_group_request.go | 253 + model_brief_site_request.go | 254 + model_brief_tenant.go | 343 + model_brief_tenant_group.go | 403 + model_brief_tenant_group_request.go | 253 + model_brief_tenant_request.go | 253 + ...irtual_machine.go => model_brief_tunnel.go | 129 +- model_brief_tunnel_group.go | 373 + model_brief_tunnel_group_request.go | 253 + model_brief_tunnel_request.go | 223 + model_brief_user.go | 277 + model_brief_user_request.go | 187 + model_brief_virtual_chassis.go | 390 + model_brief_virtual_chassis_request.go | 270 + model_brief_virtual_circuit.go | 344 + model_brief_virtual_circuit_request.go | 254 + model_brief_virtual_circuit_type.go | 373 + model_brief_virtual_circuit_type_request.go | 253 + model_brief_virtual_machine.go | 313 + model_brief_virtual_machine_request.go | 223 + model_brief_vlan.go | 344 + model_brief_vlan_group.go | 380 + model_brief_vlan_group_request.go | 253 + model_brief_vlan_request.go | 254 + model_brief_vlan_translation_policy.go | 313 + ...l_brief_vlan_translation_policy_request.go | 223 + model_brief_vrf.go | 398 + model_brief_vrf_request.go | 271 + model_brief_wireless_lan_group.go | 403 + model_brief_wireless_lan_group_request.go | 253 + model_cable.go | 621 +- model_cable_length_unit.go | 192 + model_cable_length_unit_label.go | 119 + model_cable_length_unit_value.go | 121 + model_cable_request.go | 457 +- model_cable_request_length_unit.go | 121 + model_job_status.go => model_cable_status.go | 88 +- model_cable_status_label.go | 113 + model_cable_status_value.go | 113 + model_cable_termination.go | 147 +- model_cable_termination_request.go | 41 +- model_cable_type.go | 157 + model_circuit.go | 844 +- model_circuit_circuit_termination.go | 586 + model_circuit_circuit_termination_request.go | 383 + model_circuit_distance_unit.go | 192 + model_circuit_distance_unit_label.go | 115 + model_circuit_distance_unit_value.go | 117 + model_circuit_group.go | 626 + model_circuit_group_assignment.go | 580 + model_circuit_group_assignment_request.go | 320 + model_circuit_group_request.go | 374 + model_circuit_request.go | 611 +- model_circuit_request_distance_unit.go | 117 + model_circuit_status.go | 192 + model_circuit_status_label.go | 119 + model_circuit_status_value.go | 119 + model_circuit_termination.go | 412 +- model_circuit_termination_request.go | 161 +- model_circuit_type.go | 168 +- model_circuit_type_request.go | 43 +- ...oup_assignments_list_priority_parameter.go | 115 + ...t_terminations_list_cable_end_parameter.go | 3 +- ...s_circuits_list_distance_unit_parameter.go | 115 + model_cluster.go | 740 +- model_cluster_group.go | 197 +- model_cluster_group_request.go | 41 +- model_cluster_request.go | 402 +- model_cluster_status.go | 192 + model_cluster_status_label.go | 117 + model_cluster_status_value.go | 117 + model_cluster_type.go | 197 +- model_cluster_type_request.go | 41 +- model_config_context.go | 249 +- model_config_context_request.go | 79 +- model_config_template.go | 436 +- model_config_template_request.go | 180 +- model_console_port.go | 362 +- model_console_port_request.go | 73 +- model_console_port_request_speed.go | 17 +- model_console_port_speed.go | 10 +- model_console_port_speed_label.go | 17 +- model_console_port_speed_value.go | 17 +- model_console_port_template.go | 147 +- model_console_port_template_request.go | 62 +- model_console_port_type.go | 10 +- model_console_port_type_label.go | 31 +- model_console_port_type_value.go | 33 +- model_console_server_port.go | 362 +- model_console_server_port_request.go | 73 +- model_console_server_port_template.go | 147 +- model_console_server_port_template_request.go | 62 +- model_contact.go | 518 +- model_contact_assignment.go | 163 +- model_contact_assignment_priority.go | 190 - model_contact_assignment_priority_label.go | 114 - model_contact_assignment_priority_value.go | 116 - model_contact_assignment_request.go | 77 +- model_contact_group.go | 172 +- model_contact_group_request.go | 44 +- model_contact_request.go | 377 +- model_contact_role.go | 252 +- model_contact_role_request.go | 111 +- ...re_object_changes_list_action_parameter.go | 113 + model_custom_field.go | 274 +- model_custom_field_choice_set.go | 166 +- model_custom_field_choice_set_base_choices.go | 10 +- ...tom_field_choice_set_base_choices_label.go | 7 +- ...tom_field_choice_set_base_choices_value.go | 7 +- model_custom_field_choice_set_request.go | 41 +- model_custom_field_filter_logic.go | 10 +- model_custom_field_filter_logic_label.go | 7 +- model_custom_field_filter_logic_value.go | 7 +- model_custom_field_request.go | 149 +- model_custom_field_type.go | 10 +- model_custom_field_type_label.go | 27 +- model_custom_field_type_value.go | 25 +- model_custom_field_ui_editable.go | 10 +- model_custom_field_ui_editable_label.go | 7 +- model_custom_field_ui_editable_value.go | 7 +- model_custom_field_ui_visible.go | 10 +- model_custom_field_ui_visible_label.go | 3 +- model_custom_field_ui_visible_value.go | 3 +- model_custom_link.go | 165 +- model_custom_link_button_class.go | 37 +- model_custom_link_request.go | 43 +- model_dashboard.go | 10 +- model_dashboard_request.go | 10 +- model_data_file.go | 100 +- model_data_source.go | 531 +- model_data_source_request.go | 132 +- model_data_source_request_type.go | 112 - ...k_status.go => model_data_source_status.go | 88 +- model_data_source_status_label.go | 117 + model_data_source_status_value.go | 117 + model_data_source_type.go | 192 + model_data_source_type_label.go | 115 + model_data_source_type_value.go | 113 + ..._dcim_cables_list_length_unit_parameter.go | 5 +- ...sole_port_templates_list_type_parameter.go | 7 +- ...dcim_console_ports_list_speed_parameter.go | 17 +- ...cim_device_types_list_airflow_parameter.go | 15 +- ...device_types_list_weight_unit_parameter.go | 5 +- ...s_render_config_create_format_parameter.go | 5 +- model_dcim_interfaces_list_mode_parameter.go | 9 +- ...cim_module_types_list_airflow_parameter.go | 119 + ...l_dcim_power_feeds_list_phase_parameter.go | 5 +- ..._dcim_power_feeds_list_supply_parameter.go | 3 +- model_dcim_power_feeds_list_type_parameter.go | 5 +- ...er_outlet_templates_list_type_parameter.go | 23 +- ...ower_port_templates_list_type_parameter.go | 23 +- ...im_rack_types_list_outer_unit_parameter.go | 111 + ...racks_elevation_retrieve_face_parameter.go | 5 +- ...cks_elevation_retrieve_render_parameter.go | 5 +- model_dcim_racks_list_airflow_parameter.go | 111 + model_dcim_racks_list_outer_unit_parameter.go | 110 - model_device.go | 928 +- model_device_airflow.go | 10 +- model_device_airflow_label.go | 15 +- model_device_airflow_value.go | 19 +- model_device_bay.go | 184 +- model_device_bay_request.go | 66 +- model_device_bay_template.go | 130 +- model_device_bay_template_request.go | 47 +- model_device_face.go | 10 +- model_device_face_label.go | 5 +- model_device_face_value.go | 5 +- model_device_role.go | 444 +- model_device_role_request.go | 58 +- model_device_status.go | 10 +- model_device_status_label.go | 15 +- model_device_status_value.go | 15 +- model_device_type.go | 1244 +- model_device_type_airflow.go | 192 + model_device_type_request.go | 626 +- model_device_type_request_airflow.go | 129 + model_device_type_request_subdevice_role.go | 113 + model_device_type_request_weight_unit.go | 117 + model_device_type_subdevice_role.go | 192 + model_device_type_subdevice_role_label.go | 111 + model_device_type_subdevice_role_value.go | 113 + model_device_type_weight_unit.go | 192 + model_device_type_weight_unit_label.go | 115 + model_device_type_weight_unit_value.go | 117 + model_device_with_config_context.go | 482 +- model_device_with_config_context_request.go | 229 +- model_encryption.go | 9 +- model_end.go | 3 +- model_end_1.go | 3 +- model_event.go | 121 + model_event_rule.go | 396 +- model_event_rule_action_type.go | 10 +- model_event_rule_action_type_label.go | 7 +- model_event_rule_action_type_value.go | 9 +- model_event_rule_event_types_inner.go | 121 + model_event_rule_request.go | 273 +- model_export_template.go | 222 +- model_export_template_request.go | 50 +- ...choice_sets_list_base_choices_parameter.go | 7 +- ...stom_fields_list_filter_logic_parameter.go | 7 +- ...ustom_fields_list_ui_editable_parameter.go | 7 +- ...custom_fields_list_ui_visible_parameter.go | 3 +- ...ustom_links_list_button_class_parameter.go | 35 +- ...as_object_changes_list_action_parameter.go | 112 - model_fhrp_group.go | 450 +- model_fhrp_group_assignment.go | 155 +- model_fhrp_group_assignment_request.go | 51 +- model_fhrp_group_protocol.go | 120 - model_fhrp_group_request.go | 279 +- model_front_port.go | 295 +- model_front_port_rear_port.go | 80 +- model_front_port_rear_port_request.go | 34 +- model_front_port_request.go | 80 +- model_front_port_template.go | 167 +- model_front_port_template_request.go | 84 +- model_front_port_type.go | 10 +- model_front_port_type_label.go | 109 +- model_front_port_type_value.go | 113 +- model_generic_object.go | 254 + model_generic_object_request.go | 35 +- model_group.go | 85 +- model_group_request.go | 36 +- model_ike_policy.go | 203 +- model_ike_policy_mode.go | 10 +- model_ike_policy_mode_label.go | 5 +- model_ike_policy_mode_value.go | 5 +- model_ike_policy_request.go | 83 +- model_ike_policy_version.go | 10 +- model_ike_policy_version_label.go | 3 +- model_ike_policy_version_value.go | 3 +- model_ike_proposal.go | 208 +- ...l_ike_proposal_authentication_algorithm.go | 10 +- ...proposal_authentication_algorithm_label.go | 7 +- ...proposal_authentication_algorithm_value.go | 13 +- model_ike_proposal_authentication_method.go | 10 +- ...ke_proposal_authentication_method_label.go | 9 +- ...ke_proposal_authentication_method_value.go | 5 +- model_ike_proposal_encryption_algorithm.go | 10 +- ...ike_proposal_encryption_algorithm_label.go | 7 +- ...ike_proposal_encryption_algorithm_value.go | 7 +- model_ike_proposal_group.go | 10 +- model_ike_proposal_group_label.go | 51 +- model_ike_proposal_group_value.go | 9 +- model_ike_proposal_request.go | 88 +- model_image_attachment.go | 152 +- model_image_attachment_request.go | 100 +- model_interface.go | 700 +- model_interface_duplex.go | 10 +- model_interface_duplex_label.go | 3 +- model_interface_duplex_value.go | 9 +- model_interface_mode.go | 10 +- model_interface_mode_label.go | 9 +- model_interface_mode_value.go | 13 +- model_interface_poe_mode.go | 10 +- model_interface_poe_mode_label.go | 5 +- model_interface_poe_mode_value.go | 7 +- model_interface_poe_type.go | 10 +- model_interface_poe_type_label.go | 11 +- model_interface_poe_type_value.go | 5 +- model_interface_request.go | 288 +- model_interface_request_duplex.go | 9 +- model_interface_rf_channel.go | 10 +- model_interface_rf_channel_label.go | 375 +- model_interface_rf_channel_value.go | 377 +- model_interface_rf_role.go | 10 +- model_interface_rf_role_label.go | 5 +- model_interface_rf_role_value.go | 7 +- model_interface_template.go | 164 +- model_interface_template_poe_mode.go | 10 +- model_interface_template_poe_type.go | 10 +- model_interface_template_request.go | 79 +- model_interface_template_request_poe_mode.go | 7 +- model_interface_template_request_poe_type.go | 5 +- model_interface_template_request_rf_role.go | 7 +- model_interface_template_rf_role.go | 10 +- model_interface_type.go | 10 +- model_interface_type_label.go | 261 +- model_interface_type_value.go | 259 +- model_inventory_item.go | 272 +- model_inventory_item_request.go | 126 +- model_inventory_item_role.go | 168 +- model_inventory_item_role_request.go | 43 +- model_inventory_item_status.go | 192 + model_inventory_item_status_label.go | 119 + model_inventory_item_status_value.go | 119 + model_inventory_item_template.go | 191 +- model_inventory_item_template_request.go | 84 +- model_ip_address.go | 706 +- model_ip_address_request.go | 492 +- model_ip_address_role.go | 192 + model_ip_address_role_label.go | 123 + model_ip_address_role_value.go | 125 + model_ip_address_status.go | 192 + model_ip_address_status_label.go | 117 + model_ip_address_status_value.go | 117 + model_ip_range.go | 212 +- model_ip_range_request.go | 84 +- model_ip_range_status.go | 10 +- model_ip_range_status_label.go | 7 +- model_ip_range_status_value.go | 7 +- model_ip_sec_policy.go | 166 +- model_ip_sec_policy_request.go | 44 +- model_ip_sec_profile.go | 187 +- model_ip_sec_profile_mode.go | 10 +- model_ip_sec_profile_mode_label.go | 5 +- model_ip_sec_profile_mode_value.go | 5 +- model_ip_sec_profile_request.go | 67 +- model_ip_sec_proposal.go | 234 +- model_ip_sec_proposal_request.go | 114 +- ...rvice_templates_list_protocol_parameter.go | 7 +- model_job.go | 164 +- model_job_status_label.go | 118 - model_job_status_value.go | 118 - model_journal_entry.go | 190 +- model_journal_entry_kind.go | 10 +- model_journal_entry_kind_label.go | 7 +- model_journal_entry_kind_value.go | 7 +- model_journal_entry_request.go | 47 +- model_l2_vpn.go | 425 +- model_l2_vpn_request.go | 284 +- model_l2_vpn_termination.go | 355 +- model_l2_vpn_termination_request.go | 176 +- model_l2_vpn_type_label.go | 130 - model_l2_vpn_type_value.go | 130 - model_location.go | 564 +- model_location_request.go | 312 +- model_location_status.go | 192 + model_location_status_label.go | 117 + model_location_status_value.go | 117 + model_mac_address.go | 688 + model_mac_address_request.go | 428 + model_manufacturer.go | 346 +- model_manufacturer_request.go | 111 +- model_module.go | 486 +- model_module_bay.go | 233 +- model_module_bay_nested_module.go | 261 - model_module_bay_nested_module_request.go | 153 - model_module_bay_request.go | 113 +- model_module_bay_template.go | 214 +- model_module_bay_template_request.go | 131 +- model_module_request.go | 345 +- model_module_type.go | 478 +- model_module_type_airflow.go | 192 + model_module_type_airflow_label.go | 119 + model_module_type_airflow_value.go | 121 + model_module_type_request.go | 337 +- model_module_type_request_airflow.go | 121 + model_nested_contact_group.go | 84 +- model_nested_contact_group_request.go | 35 +- model_nested_device.go | 78 +- model_nested_device_request.go | 9 +- model_nested_group.go | 78 +- model_nested_interface.go | 87 +- model_nested_interface_request.go | 35 +- model_nested_interface_template.go | 39 +- model_nested_interface_template_request.go | 32 +- model_nested_ip_address.go | 343 + model_nested_ip_address_request.go | 186 + model_nested_location.go | 373 + model_nested_location_request.go | 216 + model_nested_module_bay.go | 124 +- model_nested_module_bay_request.go | 80 +- model_nested_provider_account.go | 350 + model_nested_region.go | 84 +- model_nested_region_request.go | 35 +- model_nested_site_group.go | 84 +- model_nested_site_group_request.go | 35 +- model_nested_tag.go | 83 +- model_nested_tag_request.go | 37 +- model_nested_tenant_group.go | 84 +- model_nested_tenant_group_request.go | 35 +- model_nested_user.go | 76 +- model_nested_virtual_machine.go | 78 +- model_nested_virtual_machine_request.go | 32 +- model_nested_vlan.go | 344 + model_nested_vlan_request.go | 254 + model_nested_vm_interface.go | 81 +- model_nested_vm_interface_request.go | 32 +- model_nested_wireless_lan_group.go | 373 + model_nested_wireless_lan_group_request.go | 35 +- model_nested_wireless_link.go | 77 +- model_nested_wireless_link_request.go | 8 +- model_notification.go | 489 + model_notification_group.go | 424 + model_notification_group_request.go | 297 + model_notification_request.go | 324 + model_object_change.go | 171 +- model_object_change_action.go | 10 +- model_object_change_action_label.go | 3 +- model_object_change_action_value.go | 3 +- model_object_permission.go | 90 +- model_object_permission_request.go | 44 +- model_object_type.go | 44 +- model_paginated_aggregate_list.go | 41 +- model_paginated_asn_list.go | 41 +- model_paginated_asn_range_list.go | 41 +- model_paginated_bookmark_list.go | 41 +- model_paginated_cable_list.go | 41 +- model_paginated_cable_termination_list.go | 41 +- ...paginated_circuit_group_assignment_list.go | 310 + model_paginated_circuit_group_list.go | 310 + model_paginated_circuit_list.go | 41 +- model_paginated_circuit_termination_list.go | 41 +- model_paginated_circuit_type_list.go | 41 +- model_paginated_cluster_group_list.go | 41 +- model_paginated_cluster_list.go | 41 +- model_paginated_cluster_type_list.go | 41 +- model_paginated_config_context_list.go | 41 +- model_paginated_config_template_list.go | 41 +- model_paginated_console_port_list.go | 41 +- model_paginated_console_port_template_list.go | 41 +- model_paginated_console_server_port_list.go | 41 +- ...nated_console_server_port_template_list.go | 41 +- model_paginated_contact_assignment_list.go | 41 +- model_paginated_contact_group_list.go | 41 +- model_paginated_contact_list.go | 41 +- model_paginated_contact_role_list.go | 41 +- ..._paginated_custom_field_choice_set_list.go | 41 +- model_paginated_custom_field_list.go | 41 +- model_paginated_custom_link_list.go | 41 +- model_paginated_data_file_list.go | 41 +- model_paginated_data_source_list.go | 41 +- model_paginated_device_bay_list.go | 41 +- model_paginated_device_bay_template_list.go | 41 +- model_paginated_device_role_list.go | 41 +- model_paginated_device_type_list.go | 41 +- ...ginated_device_with_config_context_list.go | 41 +- model_paginated_event_rule_list.go | 41 +- model_paginated_export_template_list.go | 41 +- model_paginated_fhrp_group_assignment_list.go | 41 +- model_paginated_fhrp_group_list.go | 41 +- model_paginated_front_port_list.go | 41 +- model_paginated_front_port_template_list.go | 41 +- model_paginated_group_list.go | 41 +- model_paginated_ike_policy_list.go | 41 +- model_paginated_ike_proposal_list.go | 41 +- model_paginated_image_attachment_list.go | 41 +- model_paginated_interface_list.go | 41 +- model_paginated_interface_template_list.go | 41 +- model_paginated_inventory_item_list.go | 41 +- model_paginated_inventory_item_role_list.go | 41 +- ..._paginated_inventory_item_template_list.go | 41 +- model_paginated_ip_address_list.go | 41 +- model_paginated_ip_range_list.go | 41 +- model_paginated_ip_sec_policy_list.go | 41 +- model_paginated_ip_sec_profile_list.go | 41 +- model_paginated_ip_sec_proposal_list.go | 41 +- model_paginated_job_list.go | 41 +- model_paginated_journal_entry_list.go | 41 +- model_paginated_l2_vpn_list.go | 41 +- model_paginated_l2_vpn_termination_list.go | 41 +- model_paginated_location_list.go | 41 +- model_paginated_mac_address_list.go | 310 + model_paginated_manufacturer_list.go | 41 +- model_paginated_module_bay_list.go | 41 +- model_paginated_module_bay_template_list.go | 41 +- model_paginated_module_list.go | 41 +- model_paginated_module_type_list.go | 41 +- model_paginated_notification_group_list.go | 310 + model_paginated_notification_list.go | 310 + model_paginated_object_change_list.go | 41 +- model_paginated_object_permission_list.go | 41 +- model_paginated_object_type_list.go | 41 +- model_paginated_platform_list.go | 41 +- model_paginated_power_feed_list.go | 41 +- model_paginated_power_outlet_list.go | 41 +- model_paginated_power_outlet_template_list.go | 41 +- model_paginated_power_panel_list.go | 41 +- model_paginated_power_port_list.go | 41 +- model_paginated_power_port_template_list.go | 41 +- model_paginated_prefix_list.go | 41 +- model_paginated_provider_account_list.go | 41 +- model_paginated_provider_list.go | 41 +- model_paginated_provider_network_list.go | 41 +- model_paginated_rack_list.go | 41 +- model_paginated_rack_reservation_list.go | 41 +- model_paginated_rack_role_list.go | 41 +- model_paginated_rack_type_list.go | 310 + model_paginated_rack_unit_list.go | 41 +- model_paginated_rear_port_list.go | 41 +- model_paginated_rear_port_template_list.go | 41 +- model_paginated_region_list.go | 41 +- model_paginated_rir_list.go | 41 +- model_paginated_role_list.go | 41 +- model_paginated_route_target_list.go | 41 +- model_paginated_saved_filter_list.go | 41 +- model_paginated_script_list.go | 41 +- model_paginated_service_list.go | 41 +- model_paginated_service_template_list.go | 41 +- model_paginated_site_group_list.go | 41 +- model_paginated_site_list.go | 41 +- model_paginated_subscription_list.go | 310 + model_paginated_tag_list.go | 41 +- model_paginated_tenant_group_list.go | 41 +- model_paginated_tenant_list.go | 41 +- model_paginated_token_list.go | 41 +- model_paginated_tunnel_group_list.go | 41 +- model_paginated_tunnel_list.go | 41 +- model_paginated_tunnel_termination_list.go | 41 +- model_paginated_user_list.go | 41 +- model_paginated_virtual_chassis_list.go | 41 +- model_paginated_virtual_circuit_list.go | 310 + ...inated_virtual_circuit_termination_list.go | 310 + model_paginated_virtual_circuit_type_list.go | 310 + ...l_paginated_virtual_device_context_list.go | 41 +- model_paginated_virtual_disk_list.go | 41 +- ...irtual_machine_with_config_context_list.go | 41 +- model_paginated_vlan_group_list.go | 41 +- model_paginated_vlan_list.go | 41 +- ..._paginated_vlan_translation_policy_list.go | 310 + model_paginated_vlan_translation_rule_list.go | 310 + model_paginated_vm_interface_list.go | 41 +- model_paginated_vrf_list.go | 41 +- model_paginated_webhook_list.go | 41 +- model_paginated_wireless_lan_group_list.go | 41 +- model_paginated_wireless_lan_list.go | 41 +- model_paginated_wireless_link_list.go | 41 +- model_parent_child_status.go | 5 +- model_parent_child_status_1.go | 7 +- model_patched_asn_range_request.go | 45 +- model_patched_asn_request.go | 42 +- model_patched_bookmark_request.go | 22 +- model_patched_cable_termination_request.go | 14 +- model_patched_circuit_group_request.go | 350 + model_patched_circuit_termination_request.go | 138 +- model_patched_circuit_type_request.go | 18 +- model_patched_cluster_group_request.go | 16 +- model_patched_cluster_type_request.go | 16 +- model_patched_config_context_request.go | 54 +- model_patched_config_template_request.go | 24 +- model_patched_contact_request.go | 39 +- model_patched_contact_role_request.go | 16 +- model_patched_custom_link_request.go | 16 +- model_patched_dashboard_request.go | 10 +- model_patched_device_bay_request.go | 41 +- model_patched_device_bay_template_request.go | 22 +- model_patched_device_role_request.go | 33 +- model_patched_export_template_request.go | 24 +- ...l_patched_fhrp_group_assignment_request.go | 24 +- model_patched_fhrp_group_request.go | 64 +- model_patched_group_request.go | 12 +- model_patched_image_attachment_request.go | 88 +- model_patched_inventory_item_role_request.go | 18 +- ...patched_inventory_item_template_request.go | 59 +- model_patched_l2_vpn_termination_request.go | 26 +- model_patched_mac_address_request.go | 397 + model_patched_manufacturer_request.go | 16 +- model_patched_module_bay_request.go | 88 +- model_patched_module_bay_template_request.go | 97 +- model_patched_notification_group_request.go | 266 + model_patched_notification_request.go | 314 + model_patched_object_permission_request.go | 18 +- model_patched_platform_request.go | 42 +- model_patched_power_panel_request.go | 41 +- model_patched_provider_account_request.go | 30 +- model_patched_provider_network_request.go | 30 +- model_patched_provider_request.go | 22 +- model_patched_rack_reservation_request.go | 53 +- model_patched_rack_role_request.go | 18 +- model_patched_rir_request.go | 16 +- model_patched_role_request.go | 18 +- model_patched_route_target_request.go | 29 +- model_patched_saved_filter_request.go | 25 +- model_patched_script_input_request.go | 288 + model_patched_subscription_request.go | 229 + model_patched_tag_request.go | 16 +- model_patched_tenant_request.go | 31 +- model_patched_token_request.go | 28 +- model_patched_tunnel_group_request.go | 16 +- model_patched_user_request.go | 25 +- model_patched_virtual_circuit_type_request.go | 340 + model_patched_virtual_disk_request.go | 28 +- model_patched_vlan_group_request.go | 96 +- ...patched_vlan_translation_policy_request.go | 192 + ...l_patched_vlan_translation_rule_request.go | 268 + model_patched_vrf_request.go | 36 +- model_patched_webhook_request.go | 17 +- model_patched_webhook_request_http_method.go | 11 +- model_patched_writable_aggregate_request.go | 44 +- model_patched_writable_cable_request.go | 130 +- ...ched_writable_cable_request_length_unit.go | 120 - ...l_patched_writable_cable_request_status.go | 112 - model_patched_writable_cable_request_type.go | 154 - ...itable_circuit_group_assignment_request.go | 313 + ...rcuit_group_assignment_request_priority.go | 117 + model_patched_writable_circuit_request.go | 218 +- ...patched_writable_circuit_request_status.go | 118 - model_patched_writable_cluster_request.go | 160 +- ...patched_writable_cluster_request_status.go | 116 - ...l_patched_writable_console_port_request.go | 78 +- ...hed_writable_console_port_request_speed.go | 17 +- ...ched_writable_console_port_request_type.go | 33 +- ..._writable_console_port_template_request.go | 76 +- ...able_console_port_template_request_type.go | 139 + ...ed_writable_console_server_port_request.go | 78 +- ...le_console_server_port_template_request.go | 76 +- ...hed_writable_contact_assignment_request.go | 79 +- ..._patched_writable_contact_group_request.go | 19 +- ...ritable_custom_field_choice_set_request.go | 46 +- ...m_field_choice_set_request_base_choices.go | 9 +- ...l_patched_writable_custom_field_request.go | 123 +- ...table_custom_field_request_filter_logic.go | 7 +- ...ched_writable_custom_field_request_type.go | 25 +- ...itable_custom_field_request_ui_editable.go | 7 +- ...ritable_custom_field_request_ui_visible.go | 3 +- model_patched_writable_data_source_request.go | 96 +- model_patched_writable_device_type_request.go | 168 +- ...ritable_device_type_request_weight_unit.go | 116 - ...able_device_with_config_context_request.go | 275 +- model_patched_writable_event_rule_request.go | 247 +- model_patched_writable_front_port_request.go | 55 +- ...ed_writable_front_port_template_request.go | 58 +- model_patched_writable_ike_policy_request.go | 54 +- ...atched_writable_ike_policy_request_mode.go | 7 +- ...hed_writable_ike_policy_request_version.go | 3 +- ...l_patched_writable_ike_proposal_request.go | 57 +- ...oposal_request_authentication_algorithm.go | 9 +- ...hed_writable_ike_proposal_request_group.go | 9 +- model_patched_writable_interface_request.go | 428 +- ...patched_writable_interface_request_mode.go | 13 +- ...hed_writable_interface_template_request.go | 157 +- ...patched_writable_inventory_item_request.go | 283 +- model_patched_writable_ip_address_request.go | 85 +- ...atched_writable_ip_address_request_role.go | 19 +- ...ched_writable_ip_address_request_status.go | 11 +- model_patched_writable_ip_range_request.go | 61 +- ...atched_writable_ip_range_request_status.go | 7 +- ..._patched_writable_ip_sec_policy_request.go | 21 +- ...ritable_ip_sec_policy_request_pfs_group.go | 9 +- ...patched_writable_ip_sec_profile_request.go | 42 +- ...atched_writable_ip_sec_proposal_request.go | 84 +- ..._patched_writable_journal_entry_request.go | 21 +- model_patched_writable_l2_vpn_request.go | 50 +- model_patched_writable_location_request.go | 58 +- ...atched_writable_location_request_status.go | 116 - model_patched_writable_module_request.go | 57 +- ..._patched_writable_module_request_status.go | 118 - model_patched_writable_module_type_request.go | 120 +- model_patched_writable_power_feed_request.go | 68 +- ...tched_writable_power_feed_request_phase.go | 5 +- ...ched_writable_power_feed_request_status.go | 7 +- ...ched_writable_power_feed_request_supply.go | 3 +- ...atched_writable_power_feed_request_type.go | 5 +- ...l_patched_writable_power_outlet_request.go | 157 +- ..._writable_power_outlet_request_feed_leg.go | 9 +- ...ched_writable_power_outlet_request_type.go | 201 +- ..._writable_power_outlet_template_request.go | 113 +- ...able_power_outlet_template_request_type.go | 201 +- model_patched_writable_power_port_request.go | 77 +- ...atched_writable_power_port_request_type.go | 213 +- ...ed_writable_power_port_template_request.go | 72 +- ...itable_power_port_template_request_type.go | 213 +- model_patched_writable_prefix_request.go | 196 +- ..._patched_writable_prefix_request_status.go | 9 +- model_patched_writable_rack_request.go | 308 +- ...l_patched_writable_rack_request_airflow.go | 113 + ...tched_writable_rack_request_form_factor.go | 123 + ...atched_writable_rack_request_outer_unit.go | 7 +- model_patched_writable_rack_request_status.go | 11 +- model_patched_writable_rack_request_type.go | 122 - model_patched_writable_rack_request_width.go | 3 +- model_patched_writable_rack_type_request.go | 898 + ..._writable_rack_type_request_form_factor.go | 121 + model_patched_writable_rear_port_request.go | 47 +- ...hed_writable_rear_port_template_request.go | 42 +- model_patched_writable_region_request.go | 19 +- model_patched_writable_service_request.go | 48 +- ...tched_writable_service_request_protocol.go | 7 +- ...tched_writable_service_template_request.go | 20 +- model_patched_writable_site_group_request.go | 19 +- model_patched_writable_site_request.go | 80 +- ...l_patched_writable_tenant_group_request.go | 19 +- model_patched_writable_tunnel_request.go | 62 +- ...d_writable_tunnel_request_encapsulation.go | 19 +- ..._patched_writable_tunnel_request_status.go | 7 +- ...hed_writable_tunnel_termination_request.go | 42 +- ...ritable_tunnel_termination_request_role.go | 7 +- ...atched_writable_virtual_chassis_request.go | 21 +- ...atched_writable_virtual_circuit_request.go | 509 + ...ble_virtual_circuit_termination_request.go | 340 + ...writable_virtual_device_context_request.go | 72 +- ...e_virtual_device_context_request_status.go | 5 +- ...ual_machine_with_config_context_request.go | 193 +- model_patched_writable_vlan_request.go | 166 +- model_patched_writable_vlan_request_status.go | 7 +- ...l_patched_writable_vm_interface_request.go | 240 +- ...hed_writable_wireless_lan_group_request.go | 19 +- ...l_patched_writable_wireless_lan_request.go | 217 +- ...ed_writable_wireless_lan_request_status.go | 9 +- ..._patched_writable_wireless_link_request.go | 225 +- model_platform.go | 416 +- model_platform_request.go | 205 +- model_power_feed.go | 382 +- model_power_feed_phase.go | 10 +- model_power_feed_phase_label.go | 5 +- model_power_feed_request.go | 93 +- model_power_feed_status.go | 10 +- model_power_feed_status_label.go | 7 +- model_power_feed_supply.go | 10 +- model_power_feed_supply_label.go | 3 +- model_power_feed_type.go | 10 +- model_power_feed_type_label.go | 5 +- model_power_outlet.go | 413 +- model_power_outlet_feed_leg.go | 10 +- model_power_outlet_feed_leg_label.go | 3 +- model_power_outlet_feed_leg_value.go | 9 +- model_power_outlet_request.go | 134 +- model_power_outlet_request_feed_leg.go | 9 +- model_power_outlet_request_type.go | 300 - model_power_outlet_template.go | 164 +- model_power_outlet_template_request.go | 89 +- model_power_outlet_type.go | 20 +- model_power_outlet_type_label.go | 197 +- model_power_outlet_type_value.go | 305 + model_power_panel.go | 368 +- model_power_panel_request.go | 224 +- model_power_port.go | 796 +- model_power_port_request.go | 387 +- model_power_port_template.go | 411 +- model_power_port_template_request.go | 309 +- model_power_port_type.go | 192 + model_power_port_type_label.go | 315 + model_power_port_type_value.go | 317 + model_prefix.go | 389 +- model_prefix_request.go | 222 +- model_prefix_status.go | 10 +- model_prefix_status_label.go | 9 +- model_prefix_status_value.go | 9 +- model_provider.go | 364 +- model_provider_account.go | 175 +- model_provider_account_request.go | 179 +- model_provider_network.go | 355 +- model_provider_network_request.go | 214 +- model_provider_request.go | 222 +- model_q_in_q_role.go | 113 + model_rack.go | 1365 +- model_rack_airflow.go | 192 + model_rack_airflow_label.go | 111 + model_rack_airflow_value.go | 113 + model_rack_face.go | 5 +- model_rack_face_1.go | 5 +- model_rack_form_factor.go | 192 + model_rack_form_factor_label.go | 121 + model_rack_form_factor_value.go | 123 + model_rack_outer_unit.go | 192 + model_rack_outer_unit_label.go | 111 + model_rack_outer_unit_value.go | 113 + model_rack_request.go | 1102 +- model_rack_reservation.go | 198 +- model_rack_reservation_request.go | 78 +- model_rack_role.go | 199 +- model_rack_role_request.go | 43 +- model_rack_status.go | 192 + model_rack_status_label.go | 117 + model_rack_type.go | 1147 + model_rack_type_request.go | 925 + model_rack_unit.go | 57 +- model_rack_unit_face.go | 10 +- model_rack_unit_face_value.go | 5 +- model_l2_vpn_type.go => model_rack_width.go | 88 +- model_rack_width_label.go | 115 + model_rack_width_value.go | 115 + model_rear_port.go | 288 +- model_rear_port_request.go | 73 +- model_rear_port_template.go | 374 +- model_rear_port_template_request.go | 272 +- model_region.go | 240 +- model_region_request.go | 44 +- model_rir.go | 293 +- model_rir_request.go | 149 +- model_role.go | 359 +- model_role_request.go | 148 +- model_route_target.go | 173 +- model_route_target_request.go | 53 +- model_saved_filter.go | 174 +- model_saved_filter_request.go | 52 +- model_schema_retrieve_format_parameter.go | 3 +- model_schema_retrieve_lang_parameter.go | 13 +- model_script.go | 160 +- model_script_input_request.go | 315 + model_service.go | 195 +- model_service_protocol.go | 10 +- model_service_protocol_label.go | 7 +- model_service_request.go | 73 +- model_service_template.go | 167 +- model_service_template_request.go | 45 +- model_site.go | 976 +- model_site_group.go | 240 +- model_site_group_request.go | 44 +- model_site_request.go | 620 +- model_subscription.go | 412 + model_subscription_request.go | 246 + model_tag.go | 166 +- model_tag_request.go | 41 +- ...act_assignments_list_priority_parameter.go | 114 - model_tenant.go | 694 +- model_tenant_group.go | 172 +- model_tenant_group_request.go | 44 +- model_tenant_request.go | 195 +- model_termination.go | 110 - model_termination_1.go | 110 - model_termination_side.go | 111 + model_termination_side_1.go | 111 + model_token.go | 134 +- model_token_provision.go | 137 +- model_token_provision_request.go | 42 +- model_token_request.go | 54 +- model_tunnel.go | 566 +- model_tunnel_encapsulation.go | 192 + model_tunnel_encapsulation_label.go | 123 + model_tunnel_group.go | 166 +- model_tunnel_group_request.go | 41 +- model_tunnel_request.go | 395 +- model_tunnel_status.go | 192 + model_tunnel_status_label.go | 113 + model_tunnel_termination.go | 242 +- model_tunnel_termination_request.go | 101 +- model_tunnel_termination_role.go | 10 +- model_tunnel_termination_role_label.go | 7 +- model_user.go | 422 +- model_user_request.go | 410 +- model_virtual_chassis.go | 361 +- model_virtual_chassis_request.go | 185 +- model_virtual_circuit.go | 748 + model_virtual_circuit_request.go | 526 + model_virtual_circuit_termination.go | 586 + model_virtual_circuit_termination_request.go | 364 + model_virtual_circuit_type.go | 616 + model_virtual_circuit_type_request.go | 364 + model_virtual_device_context.go | 265 +- model_virtual_device_context_request.go | 98 +- model_virtual_device_context_status.go | 10 +- model_virtual_device_context_status_label.go | 5 +- model_virtual_disk.go | 174 +- model_virtual_disk_request.go | 54 +- model_virtual_machine_with_config_context.go | 410 +- ...ual_machine_with_config_context_request.go | 217 +- ...tual_machine_with_config_context_status.go | 190 - ...achine_with_config_context_status_label.go | 118 - model_vlan.go | 680 +- model_vlan_group.go | 293 +- model_vlan_group_request.go | 121 +- model_vlan_qinq_role.go | 192 + model_vlan_qinq_role_label.go | 111 + model_vlan_qinq_role_value.go | 111 + model_vlan_request.go | 457 +- model_vlan_translation_policy.go | 343 + model_vlan_translation_policy_request.go | 223 + model_vlan_translation_rule.go | 375 + model_vlan_translation_rule_request.go | 285 + model_vm_interface.go | 444 +- model_vm_interface_request.go | 235 +- model_vrf.go | 510 +- model_vrf_request.go | 305 +- model_webhook.go | 164 +- model_webhook_request.go | 42 +- model_wireless_channel.go | 377 +- model_wireless_lan.go | 341 +- model_wireless_lan_auth_cipher.go | 10 +- model_wireless_lan_auth_cipher_label.go | 5 +- model_wireless_lan_auth_cipher_value.go | 9 +- model_wireless_lan_auth_type.go | 10 +- model_wireless_lan_auth_type_label.go | 9 +- model_wireless_lan_auth_type_value.go | 11 +- model_wireless_lan_group.go | 305 +- model_wireless_lan_group_request.go | 44 +- model_wireless_lan_request.go | 181 +- model_wireless_lan_status.go | 10 +- model_wireless_lan_status_label.go | 9 +- model_wireless_lan_status_value.go | 11 +- model_wireless_link.go | 308 +- model_wireless_link_request.go | 188 +- model_wireless_link_status_label.go | 112 - model_wireless_role.go | 7 +- model_writable_aggregate_request.go | 69 +- model_writable_cable_request.go | 130 +- ...itable_circuit_group_assignment_request.go | 330 + model_writable_circuit_request.go | 242 +- model_writable_cluster_request.go | 185 +- model_writable_console_port_request.go | 103 +- ..._writable_console_port_template_request.go | 100 +- model_writable_console_server_port_request.go | 103 +- ...le_console_server_port_template_request.go | 100 +- model_writable_contact_assignment_request.go | 105 +- model_writable_contact_group_request.go | 79 +- ...ritable_custom_field_choice_set_request.go | 71 +- model_writable_custom_field_request.go | 148 +- model_writable_data_source_request.go | 122 +- model_writable_device_type_request.go | 196 +- ...able_device_with_config_context_request.go | 307 +- model_writable_event_rule_request.go | 272 +- model_writable_front_port_request.go | 82 +- model_writable_front_port_template_request.go | 84 +- model_writable_ike_policy_request.go | 78 +- model_writable_ike_proposal_request.go | 84 +- model_writable_interface_request.go | 454 +- model_writable_interface_template_request.go | 182 +- model_writable_inventory_item_request.go | 798 + model_writable_ip_address_request.go | 109 +- model_writable_ip_range_request.go | 86 +- model_writable_ip_sec_policy_request.go | 45 +- model_writable_ip_sec_profile_request.go | 67 +- model_writable_ip_sec_proposal_request.go | 108 +- model_writable_journal_entry_request.go | 47 +- model_writable_l2_vpn_request.go | 76 +- model_writable_location_request.go | 117 +- model_writable_module_request.go | 81 +- model_writable_module_type_request.go | 145 +- model_writable_power_feed_request.go | 93 +- model_writable_power_outlet_request.go | 182 +- ..._writable_power_outlet_template_request.go | 137 +- model_writable_power_port_request.go | 102 +- model_writable_power_port_template_request.go | 96 +- model_writable_prefix_request.go | 220 +- model_writable_rack_request.go | 333 +- model_writable_rack_type_request.go | 908 + model_writable_rear_port_request.go | 73 +- model_writable_rear_port_template_request.go | 67 +- model_writable_region_request.go | 79 +- model_writable_service_request.go | 74 +- model_writable_service_template_request.go | 46 +- model_writable_site_group_request.go | 79 +- model_writable_site_request.go | 105 +- model_writable_tenant_group_request.go | 44 +- model_writable_tunnel_request.go | 87 +- model_writable_tunnel_termination_request.go | 100 +- model_writable_virtual_chassis_request.go | 45 +- model_writable_virtual_circuit_request.go | 526 + ...ble_virtual_circuit_termination_request.go | 364 + ...writable_virtual_device_context_request.go | 98 +- ...ual_machine_with_config_context_request.go | 217 +- model_writable_vlan_request.go | 191 +- model_writable_vm_interface_request.go | 265 +- model_writable_wireless_lan_group_request.go | 79 +- model_writable_wireless_lan_request.go | 241 +- model_writable_wireless_link_request.go | 248 +- response.go | 2 +- scripts/fix-spec.py | 45 +- scripts/generate-code.sh | 2 +- test/api_circuits_test.go | 724 - test/api_core_test.go | 206 - test/api_dcim_test.go | 4852 - test/api_extras_test.go | 1756 - test/api_ipam_test.go | 1990 - test/api_schema_test.go | 38 - test/api_status_test.go | 38 - test/api_tenancy_test.go | 710 - test/api_users_test.go | 506 - test/api_virtualization_test.go | 724 - test/api_vpn_test.go | 1166 - test/api_wireless_test.go | 368 - utils.go | 16 +- 1903 files changed, 453701 insertions(+), 171275 deletions(-) create mode 100644 api_cluster_test.go create mode 100644 api_prefix_test.go create mode 100644 api_sites_test.go create mode 100644 api_tenant_test.go create mode 100644 api_utils_test.go create mode 100644 api_vm_test.go create mode 100644 docs/BriefCable.md create mode 100644 docs/BriefCableRequest.md create mode 100644 docs/BriefCircuit.md rename docs/{ModuleBayNestedModule.md => BriefCircuitGroup.md} (53%) create mode 100644 docs/BriefCircuitGroupAssignmentSerializer.md create mode 100644 docs/BriefCircuitGroupAssignmentSerializerPriority.md rename docs/{ContactAssignmentPriorityLabel.md => BriefCircuitGroupAssignmentSerializerPriorityLabel.md} (85%) rename docs/{ContactAssignmentPriorityValue.md => BriefCircuitGroupAssignmentSerializerPriorityValue.md} (86%) create mode 100644 docs/BriefCircuitGroupAssignmentSerializerRequest.md create mode 100644 docs/BriefCircuitGroupRequest.md create mode 100644 docs/BriefCircuitRequest.md create mode 100644 docs/BriefCircuitType.md create mode 100644 docs/BriefCircuitTypeRequest.md create mode 100644 docs/BriefCluster.md create mode 100644 docs/BriefClusterGroup.md create mode 100644 docs/BriefClusterGroupRequest.md create mode 100644 docs/BriefClusterRequest.md create mode 100644 docs/BriefClusterType.md create mode 100644 docs/BriefClusterTypeRequest.md create mode 100644 docs/BriefConfigTemplate.md create mode 100644 docs/BriefConfigTemplateRequest.md create mode 100644 docs/BriefContact.md create mode 100644 docs/BriefContactGroup.md create mode 100644 docs/BriefContactGroupRequest.md create mode 100644 docs/BriefContactRequest.md create mode 100644 docs/BriefContactRole.md create mode 100644 docs/BriefContactRoleRequest.md create mode 100644 docs/BriefCustomFieldChoiceSet.md create mode 100644 docs/BriefCustomFieldChoiceSetRequest.md create mode 100644 docs/BriefDataFile.md create mode 100644 docs/BriefDataSource.md create mode 100644 docs/BriefDataSourceRequest.md create mode 100644 docs/BriefDevice.md rename docs/{DeviceRequest.md => BriefDeviceRequest.md} (66%) create mode 100644 docs/BriefDeviceRole.md create mode 100644 docs/BriefDeviceRoleRequest.md create mode 100644 docs/BriefDeviceType.md create mode 100644 docs/BriefDeviceTypeRequest.md create mode 100644 docs/BriefFHRPGroup.md rename docs/{FHRPGroupProtocol.md => BriefFHRPGroupProtocol.md} (93%) create mode 100644 docs/BriefFHRPGroupRequest.md rename docs/{VirtualMachine.md => BriefIKEPolicy.md} (68%) rename docs/{VirtualMachineRequest.md => BriefIKEPolicyRequest.md} (65%) create mode 100644 docs/BriefIPAddress.md create mode 100644 docs/BriefIPAddressRequest.md create mode 100644 docs/BriefIPSecPolicy.md create mode 100644 docs/BriefIPSecPolicyRequest.md create mode 100644 docs/BriefIPSecProfile.md create mode 100644 docs/BriefIPSecProfileRequest.md create mode 100644 docs/BriefInterface.md create mode 100644 docs/BriefInterfaceRequest.md create mode 100644 docs/BriefInventoryItemRole.md create mode 100644 docs/BriefInventoryItemRoleRequest.md create mode 100644 docs/BriefJob.md rename docs/{JobRequest.md => BriefJobRequest.md} (67%) create mode 100644 docs/BriefJobStatus.md rename docs/{JobStatusLabel.md => BriefJobStatusLabel.md} (94%) rename docs/{JobStatusValue.md => BriefJobStatusValue.md} (94%) create mode 100644 docs/BriefL2VPN.md create mode 100644 docs/BriefL2VPNRequest.md create mode 100644 docs/BriefL2VPNTermination.md create mode 100644 docs/BriefL2VPNTerminationRequest.md create mode 100644 docs/BriefL2VPNType.md rename docs/{L2VPNTypeLabel.md => BriefL2VPNTypeLabel.md} (92%) rename docs/{L2VPNTypeValue.md => BriefL2VPNTypeValue.md} (90%) create mode 100644 docs/BriefLocation.md create mode 100644 docs/BriefLocationRequest.md create mode 100644 docs/BriefMACAddress.md create mode 100644 docs/BriefMACAddressRequest.md create mode 100644 docs/BriefManufacturer.md create mode 100644 docs/BriefManufacturerRequest.md create mode 100644 docs/BriefModule.md create mode 100644 docs/BriefModuleRequest.md create mode 100644 docs/BriefModuleType.md create mode 100644 docs/BriefModuleTypeRequest.md create mode 100644 docs/BriefPlatform.md create mode 100644 docs/BriefPlatformRequest.md create mode 100644 docs/BriefPowerPanel.md create mode 100644 docs/BriefPowerPanelRequest.md create mode 100644 docs/BriefPowerPort.md create mode 100644 docs/BriefPowerPortRequest.md create mode 100644 docs/BriefPowerPortTemplate.md create mode 100644 docs/BriefPowerPortTemplateRequest.md create mode 100644 docs/BriefProvider.md create mode 100644 docs/BriefProviderAccount.md create mode 100644 docs/BriefProviderAccountRequest.md create mode 100644 docs/BriefProviderNetwork.md create mode 100644 docs/BriefProviderNetworkRequest.md create mode 100644 docs/BriefProviderRequest.md create mode 100644 docs/BriefRIR.md create mode 100644 docs/BriefRIRRequest.md create mode 100644 docs/BriefRack.md create mode 100644 docs/BriefRackRequest.md create mode 100644 docs/BriefRackRole.md create mode 100644 docs/BriefRackRoleRequest.md create mode 100644 docs/BriefRackType.md create mode 100644 docs/BriefRackTypeRequest.md create mode 100644 docs/BriefRearPortTemplate.md create mode 100644 docs/BriefRearPortTemplateRequest.md create mode 100644 docs/BriefRegion.md create mode 100644 docs/BriefRegionRequest.md create mode 100644 docs/BriefRole.md create mode 100644 docs/BriefRoleRequest.md create mode 100644 docs/BriefSite.md create mode 100644 docs/BriefSiteGroup.md create mode 100644 docs/BriefSiteGroupRequest.md create mode 100644 docs/BriefSiteRequest.md create mode 100644 docs/BriefTenant.md create mode 100644 docs/BriefTenantGroup.md create mode 100644 docs/BriefTenantGroupRequest.md create mode 100644 docs/BriefTenantRequest.md create mode 100644 docs/BriefTunnel.md create mode 100644 docs/BriefTunnelGroup.md create mode 100644 docs/BriefTunnelGroupRequest.md create mode 100644 docs/BriefTunnelRequest.md create mode 100644 docs/BriefUser.md create mode 100644 docs/BriefUserRequest.md create mode 100644 docs/BriefVLAN.md create mode 100644 docs/BriefVLANGroup.md create mode 100644 docs/BriefVLANGroupRequest.md create mode 100644 docs/BriefVLANRequest.md create mode 100644 docs/BriefVLANTranslationPolicy.md create mode 100644 docs/BriefVLANTranslationPolicyRequest.md create mode 100644 docs/BriefVRF.md create mode 100644 docs/BriefVRFRequest.md create mode 100644 docs/BriefVirtualChassis.md create mode 100644 docs/BriefVirtualChassisRequest.md create mode 100644 docs/BriefVirtualCircuit.md create mode 100644 docs/BriefVirtualCircuitRequest.md create mode 100644 docs/BriefVirtualCircuitType.md create mode 100644 docs/BriefVirtualCircuitTypeRequest.md create mode 100644 docs/BriefVirtualMachine.md create mode 100644 docs/BriefVirtualMachineRequest.md create mode 100644 docs/BriefWirelessLANGroup.md create mode 100644 docs/BriefWirelessLANGroupRequest.md create mode 100644 docs/CableLengthUnit.md create mode 100644 docs/CableLengthUnitLabel.md rename docs/{PatchedWritableCableRequestLengthUnit.md => CableLengthUnitValue.md} (89%) create mode 100644 docs/CableRequestLengthUnit.md rename docs/{JobStatus.md => CableStatus.md} (61%) rename docs/{WirelessLinkStatusLabel.md => CableStatusLabel.md} (91%) rename docs/{PatchedWritableCableRequestStatus.md => CableStatusValue.md} (89%) rename docs/{PatchedWritableCableRequestType.md => CableType.md} (96%) create mode 100644 docs/CircuitCircuitTermination.md create mode 100644 docs/CircuitCircuitTerminationRequest.md rename docs/{ContactAssignmentPriority.md => CircuitDistanceUnit.md} (52%) create mode 100644 docs/CircuitDistanceUnitLabel.md create mode 100644 docs/CircuitDistanceUnitValue.md create mode 100644 docs/CircuitGroup.md create mode 100644 docs/CircuitGroupAssignment.md create mode 100644 docs/CircuitGroupAssignmentRequest.md create mode 100644 docs/CircuitGroupRequest.md create mode 100644 docs/CircuitRequest 2.md create mode 100644 docs/CircuitRequestDistanceUnit.md rename docs/{WirelessLinkStatus.md => CircuitStatus.md} (55%) create mode 100644 docs/CircuitStatusLabel.md rename docs/{PatchedWritableCircuitRequestStatus.md => CircuitStatusValue.md} (91%) rename docs/{TenancyContactAssignmentsListPriorityParameter.md => CircuitsCircuitGroupAssignmentsListPriorityParameter.md} (85%) create mode 100644 docs/CircuitsCircuitTerminationsListCableEndParameter 2.md create mode 100644 docs/CircuitsCircuitsListDistanceUnitParameter.md create mode 100644 docs/ClusterStatus.md create mode 100644 docs/ClusterStatusLabel.md rename docs/{PatchedWritableClusterRequestStatus.md => ClusterStatusValue.md} (90%) create mode 100644 docs/ClusterTypeRequest 2.md create mode 100644 docs/ConsolePortTypeValue 2.md create mode 100644 docs/ConsoleServerPortRequest 2.md create mode 100644 docs/ContactRole 2.md create mode 100644 docs/CoreAPI 2.md rename docs/{ExtrasObjectChangesListActionParameter.md => CoreObjectChangesListActionParameter.md} (86%) create mode 100644 docs/CustomFieldChoiceSetBaseChoicesValue 2.md create mode 100644 docs/CustomFieldChoiceSetRequest 2.md create mode 100644 docs/CustomFieldFilterLogicValue 2.md create mode 100644 docs/CustomFieldUiEditable 2.md create mode 100644 docs/CustomFieldUiVisibleValue 2.md create mode 100644 docs/DataSourceRequest 2.md create mode 100644 docs/DataSourceStatus.md create mode 100644 docs/DataSourceStatusLabel.md create mode 100644 docs/DataSourceStatusValue.md create mode 100644 docs/DataSourceType.md create mode 100644 docs/DataSourceTypeLabel.md rename docs/{DataSourceRequestType.md => DataSourceTypeValue.md} (91%) create mode 100644 docs/DcimCablesListLengthUnitParameter 2.md create mode 100644 docs/DcimDevicesRenderConfigCreateFormatParameter 2.md create mode 100644 docs/DcimModuleTypesListAirflowParameter.md create mode 100644 docs/DcimPowerFeedsListSupplyParameter 2.md create mode 100644 docs/DcimPowerFeedsListTypeParameter 2.md rename docs/{DcimRacksListOuterUnitParameter.md => DcimRackTypesListOuterUnitParameter.md} (85%) create mode 100644 docs/DcimRacksListAirflowParameter.md create mode 100644 docs/Device 2.md create mode 100644 docs/DeviceAirflowLabel 2.md create mode 100644 docs/DeviceTypeAirflow.md create mode 100644 docs/DeviceTypeRequestAirflow.md create mode 100644 docs/DeviceTypeRequestSubdeviceRole.md rename docs/{PatchedWritableDeviceTypeRequestWeightUnit.md => DeviceTypeRequestWeightUnit.md} (86%) create mode 100644 docs/DeviceTypeSubdeviceRole.md create mode 100644 docs/DeviceTypeSubdeviceRoleLabel.md create mode 100644 docs/DeviceTypeSubdeviceRoleValue.md create mode 100644 docs/DeviceTypeWeightUnit.md create mode 100644 docs/DeviceTypeWeightUnitLabel.md create mode 100644 docs/DeviceTypeWeightUnitValue.md create mode 100644 docs/Event.md create mode 100644 docs/EventRule 2.md create mode 100644 docs/EventRuleEventTypesInner.md create mode 100644 docs/EventRuleRequest 2.md create mode 100644 docs/FrontPortType 2.md create mode 100644 docs/GenericObject.md create mode 100644 docs/IKEPolicyMode 2.md create mode 100644 docs/IKEPolicyRequest 2.md create mode 100644 docs/IKEPolicyVersionLabel 2.md create mode 100644 docs/IKEProposalAuthenticationAlgorithm 2.md create mode 100644 docs/IKEProposalAuthenticationAlgorithmValue 2.md create mode 100644 docs/IKEProposalRequest 2.md create mode 100644 docs/IPAddressRole.md create mode 100644 docs/IPAddressRoleLabel.md create mode 100644 docs/IPAddressRoleValue.md create mode 100644 docs/IPAddressStatus.md create mode 100644 docs/IPAddressStatusLabel.md create mode 100644 docs/IPAddressStatusValue.md create mode 100644 docs/IPRange 2.md create mode 100644 docs/IPRangeStatusLabel 2.md create mode 100644 docs/IPSecProfileMode 2.md create mode 100644 docs/ImageAttachmentRequest 2.md create mode 100644 docs/Interface 2.md create mode 100644 docs/InterfaceDuplex 2.md create mode 100644 docs/InterfaceDuplexLabel 2.md create mode 100644 docs/InterfaceRequestDuplex 2.md create mode 100644 docs/InterfaceRfChannelLabel 2.md create mode 100644 docs/InterfaceTemplatePoeMode 2.md create mode 100644 docs/InterfaceTemplateRequestRfRole 2.md create mode 100644 docs/InventoryItemStatus.md rename docs/{VirtualMachineWithConfigContextStatusLabel.md => InventoryItemStatusLabel.md} (89%) rename docs/{PatchedWritableModuleRequestStatus.md => InventoryItemStatusValue.md} (91%) create mode 100644 docs/Job 2.md create mode 100644 docs/LocationStatus.md create mode 100644 docs/LocationStatusLabel.md rename docs/{PatchedWritableLocationRequestStatus.md => LocationStatusValue.md} (90%) create mode 100644 docs/MACAddress.md create mode 100644 docs/MACAddressRequest.md create mode 100644 docs/ManufacturerRequest 2.md delete mode 100644 docs/ModuleBayNestedModuleRequest.md create mode 100644 docs/ModuleBayTemplateRequest 2.md create mode 100644 docs/ModuleTypeAirflow.md create mode 100644 docs/ModuleTypeAirflowLabel.md create mode 100644 docs/ModuleTypeAirflowValue.md create mode 100644 docs/ModuleTypeRequestAirflow.md create mode 100644 docs/NestedGroup 2.md create mode 100644 docs/NestedIPAddress.md create mode 100644 docs/NestedIPAddressRequest.md create mode 100644 docs/NestedLocation.md create mode 100644 docs/NestedLocationRequest.md create mode 100644 docs/NestedProviderAccount.md create mode 100644 docs/NestedSiteGroup 2.md create mode 100644 docs/NestedTenantGroup 2.md create mode 100644 docs/NestedVLAN.md create mode 100644 docs/NestedVLANRequest.md create mode 100644 docs/NestedWirelessLANGroup.md create mode 100644 docs/Notification.md create mode 100644 docs/NotificationGroup.md create mode 100644 docs/NotificationGroupRequest.md create mode 100644 docs/NotificationRequest.md create mode 100644 docs/ObjectChange 2.md create mode 100644 docs/ObjectChangeActionLabel 2.md create mode 100644 docs/PaginatedCableList 2.md create mode 100644 docs/PaginatedCircuitGroupAssignmentList.md create mode 100644 docs/PaginatedCircuitGroupList.md create mode 100644 docs/PaginatedConsolePortTemplateList 2.md create mode 100644 docs/PaginatedCustomLinkList 2.md create mode 100644 docs/PaginatedDeviceTypeList 2.md create mode 100644 docs/PaginatedImageAttachmentList 2.md create mode 100644 docs/PaginatedL2VPNList 2.md create mode 100644 docs/PaginatedMACAddressList.md create mode 100644 docs/PaginatedModuleBayTemplateList 2.md create mode 100644 docs/PaginatedNotificationGroupList.md create mode 100644 docs/PaginatedNotificationList.md create mode 100644 docs/PaginatedPowerOutletList 2.md create mode 100644 docs/PaginatedPowerPortList 2.md create mode 100644 docs/PaginatedPrefixList 2.md create mode 100644 docs/PaginatedProviderList 2.md create mode 100644 docs/PaginatedRackRoleList 2.md create mode 100644 docs/PaginatedRackTypeList.md create mode 100644 docs/PaginatedSubscriptionList.md create mode 100644 docs/PaginatedTokenList 2.md create mode 100644 docs/PaginatedVLANTranslationPolicyList.md create mode 100644 docs/PaginatedVLANTranslationRuleList.md create mode 100644 docs/PaginatedVMInterfaceList 2.md create mode 100644 docs/PaginatedVRFList 2.md create mode 100644 docs/PaginatedVirtualCircuitList.md create mode 100644 docs/PaginatedVirtualCircuitTerminationList.md create mode 100644 docs/PaginatedVirtualCircuitTypeList.md create mode 100644 docs/PaginatedWirelessLinkList 2.md create mode 100644 docs/PatchedCircuitGroupRequest.md create mode 100644 docs/PatchedClusterGroupRequest 2.md create mode 100644 docs/PatchedDeviceRoleRequest 2.md create mode 100644 docs/PatchedExportTemplateRequest 2.md create mode 100644 docs/PatchedMACAddressRequest.md create mode 100644 docs/PatchedModuleBayTemplateRequest 2.md create mode 100644 docs/PatchedNotificationGroupRequest.md create mode 100644 docs/PatchedNotificationRequest.md create mode 100644 docs/PatchedRoleRequest 2.md create mode 100644 docs/PatchedRouteTargetRequest 2.md create mode 100644 docs/PatchedSavedFilterRequest 2.md create mode 100644 docs/PatchedScriptInputRequest.md create mode 100644 docs/PatchedSubscriptionRequest.md create mode 100644 docs/PatchedVLANTranslationPolicyRequest.md create mode 100644 docs/PatchedVLANTranslationRuleRequest.md create mode 100644 docs/PatchedVirtualCircuitTypeRequest.md create mode 100644 docs/PatchedWritableAggregateRequest 2.md create mode 100644 docs/PatchedWritableCircuitGroupAssignmentRequest.md create mode 100644 docs/PatchedWritableCircuitGroupAssignmentRequestPriority.md create mode 100644 docs/PatchedWritableConsolePortTemplateRequestType.md create mode 100644 docs/PatchedWritableContactAssignmentRequest 2.md create mode 100644 docs/PatchedWritableEventRuleRequest 2.md create mode 100644 docs/PatchedWritableIKEProposalRequestAuthenticationAlgorithm 2.md create mode 100644 docs/PatchedWritableIPSecPolicyRequestPfsGroup 2.md create mode 100644 docs/PatchedWritableInventoryItemRequest.md create mode 100644 docs/PatchedWritablePowerOutletRequestFeedLeg 2.md create mode 100644 docs/PatchedWritablePrefixRequestStatus 2.md create mode 100644 docs/PatchedWritableRackRequestAirflow.md create mode 100644 docs/PatchedWritableRackRequestFormFactor.md create mode 100644 docs/PatchedWritableRackRequestStatus 2.md create mode 100644 docs/PatchedWritableRackTypeRequest.md create mode 100644 docs/PatchedWritableRackTypeRequestFormFactor.md create mode 100644 docs/PatchedWritableRearPortTemplateRequest 2.md create mode 100644 docs/PatchedWritableServiceRequest 2.md create mode 100644 docs/PatchedWritableVLANRequestStatus 2.md create mode 100644 docs/PatchedWritableVirtualCircuitRequest.md create mode 100644 docs/PatchedWritableVirtualCircuitTerminationRequest.md create mode 100644 docs/PatchedWritableWirelessLANGroupRequest 2.md create mode 100644 docs/PowerFeed 2.md create mode 100644 docs/PowerFeedSupply 2.md create mode 100644 docs/PowerOutlet 2.md create mode 100644 docs/PowerOutletFeedLegValue 2.md create mode 100644 docs/PowerOutletTemplate 2.md rename docs/{PowerOutletRequestType.md => PowerOutletTypeValue.md} (97%) create mode 100644 docs/PowerPortTemplateRequest 2.md create mode 100644 docs/PowerPortType.md create mode 100644 docs/PowerPortTypeLabel.md create mode 100644 docs/PowerPortTypeValue.md create mode 100644 docs/PrefixRequest 2.md create mode 100644 docs/PrefixStatusLabel 2.md create mode 100644 docs/ProviderNetworkRequest 2.md create mode 100644 docs/QInQRole.md create mode 100644 docs/RackAirflow.md create mode 100644 docs/RackAirflowLabel.md create mode 100644 docs/RackAirflowValue.md create mode 100644 docs/RackFormFactor.md create mode 100644 docs/RackFormFactorLabel.md rename docs/{PatchedWritableRackRequestType.md => RackFormFactorValue.md} (94%) create mode 100644 docs/RackOuterUnit.md create mode 100644 docs/RackOuterUnitLabel.md create mode 100644 docs/RackOuterUnitValue.md create mode 100644 docs/RackReservation 2.md create mode 100644 docs/RackStatus.md create mode 100644 docs/RackStatusLabel.md create mode 100644 docs/RackType.md create mode 100644 docs/RackTypeRequest.md create mode 100644 docs/RackUnitFace 2.md rename docs/{L2VPNType.md => RackWidth.md} (65%) create mode 100644 docs/RackWidthLabel.md create mode 100644 docs/RackWidthValue.md create mode 100644 docs/RearPortTemplate 2.md create mode 100644 docs/Region 2.md create mode 100644 docs/RegionRequest 2.md create mode 100644 docs/Role 2.md create mode 100644 docs/RoleRequest 2.md create mode 100644 docs/SchemaAPI 2.md create mode 100644 docs/ScriptInputRequest.md create mode 100644 docs/Subscription.md create mode 100644 docs/SubscriptionRequest.md create mode 100644 docs/TenantRequest 2.md rename docs/{Termination.md => TerminationSide.md} (92%) rename docs/{Termination1.md => TerminationSide1.md} (92%) create mode 100644 docs/Token 2.md create mode 100644 docs/Tunnel 2.md create mode 100644 docs/TunnelEncapsulation.md create mode 100644 docs/TunnelEncapsulationLabel.md create mode 100644 docs/TunnelGroupRequest 2.md create mode 100644 docs/TunnelStatus.md create mode 100644 docs/TunnelStatusLabel.md create mode 100644 docs/TunnelTerminationRequest 2.md create mode 100644 docs/TunnelTerminationRoleLabel 2.md create mode 100644 docs/UserRequest 2.md create mode 100644 docs/VLAN 2.md create mode 100644 docs/VLANQinqRole.md create mode 100644 docs/VLANQinqRoleLabel.md create mode 100644 docs/VLANQinqRoleValue.md create mode 100644 docs/VLANTranslationPolicy.md create mode 100644 docs/VLANTranslationPolicyRequest.md create mode 100644 docs/VLANTranslationRule.md create mode 100644 docs/VLANTranslationRuleRequest.md create mode 100644 docs/VMInterface 2.md create mode 100644 docs/VirtualCircuit.md create mode 100644 docs/VirtualCircuitRequest.md create mode 100644 docs/VirtualCircuitTermination.md create mode 100644 docs/VirtualCircuitTerminationRequest.md create mode 100644 docs/VirtualCircuitType.md create mode 100644 docs/VirtualCircuitTypeRequest.md create mode 100644 docs/VirtualDeviceContextStatusLabel 2.md delete mode 100644 docs/VirtualMachineWithConfigContextStatus.md create mode 100644 docs/WebhookRequest 2.md create mode 100644 docs/WirelessLANAuthCipherLabel 2.md create mode 100644 docs/WirelessLANAuthType 2.md create mode 100644 docs/WirelessLANAuthTypeLabel 2.md create mode 100644 docs/WirelessLANStatusLabel 2.md create mode 100644 docs/WirelessLANStatusValue 2.md create mode 100644 docs/WritableAggregateRequest 2.md create mode 100644 docs/WritableCircuitGroupAssignmentRequest.md create mode 100644 docs/WritableDeviceWithConfigContextRequest 2.md create mode 100644 docs/WritableEventRuleRequest 2.md create mode 100644 docs/WritableIPSecProfileRequest 2.md rename docs/{PatchedInventoryItemRequest.md => WritableInventoryItemRequest.md} (57%) create mode 100644 docs/WritableRackTypeRequest.md create mode 100644 docs/WritableTenantGroupRequest 2.md create mode 100644 docs/WritableVirtualCircuitRequest.md create mode 100644 docs/WritableVirtualCircuitTerminationRequest.md create mode 100644 docs/WritableWirelessLANRequest 2.md create mode 100644 model_brief_cable.go create mode 100644 model_brief_cable_request.go create mode 100644 model_brief_circuit.go create mode 100644 model_brief_circuit_group.go create mode 100644 model_brief_circuit_group_assignment_serializer_.go create mode 100644 model_brief_circuit_group_assignment_serializer__priority.go create mode 100644 model_brief_circuit_group_assignment_serializer__priority_label.go create mode 100644 model_brief_circuit_group_assignment_serializer__priority_value.go create mode 100644 model_brief_circuit_group_assignment_serializer_request.go create mode 100644 model_brief_circuit_group_request.go create mode 100644 model_brief_circuit_request.go create mode 100644 model_brief_circuit_type.go create mode 100644 model_brief_circuit_type_request.go create mode 100644 model_brief_cluster.go create mode 100644 model_brief_cluster_group.go create mode 100644 model_brief_cluster_group_request.go create mode 100644 model_brief_cluster_request.go create mode 100644 model_brief_cluster_type.go create mode 100644 model_brief_cluster_type_request.go create mode 100644 model_brief_config_template.go create mode 100644 model_brief_config_template_request.go create mode 100644 model_brief_contact.go create mode 100644 model_brief_contact_group.go create mode 100644 model_brief_contact_group_request.go create mode 100644 model_brief_contact_request.go create mode 100644 model_brief_contact_role.go create mode 100644 model_brief_contact_role_request.go create mode 100644 model_brief_custom_field_choice_set.go create mode 100644 model_brief_custom_field_choice_set_request.go create mode 100644 model_brief_data_file.go create mode 100644 model_brief_data_source.go create mode 100644 model_brief_data_source_request.go create mode 100644 model_brief_device.go rename model_device_request.go => model_brief_device_request.go (59%) create mode 100644 model_brief_device_role.go create mode 100644 model_brief_device_role_request.go create mode 100644 model_brief_device_type.go create mode 100644 model_brief_device_type_request.go create mode 100644 model_brief_fhrp_group.go create mode 100644 model_brief_fhrp_group_protocol.go create mode 100644 model_brief_fhrp_group_request.go create mode 100644 model_brief_ike_policy.go create mode 100644 model_brief_ike_policy_request.go create mode 100644 model_brief_interface.go create mode 100644 model_brief_interface_request.go create mode 100644 model_brief_inventory_item_role.go create mode 100644 model_brief_inventory_item_role_request.go create mode 100644 model_brief_ip_address.go create mode 100644 model_brief_ip_address_request.go create mode 100644 model_brief_ip_sec_policy.go create mode 100644 model_brief_ip_sec_policy_request.go create mode 100644 model_brief_ip_sec_profile.go create mode 100644 model_brief_ip_sec_profile_request.go create mode 100644 model_brief_job.go rename model_job_request.go => model_brief_job_request.go (57%) create mode 100644 model_brief_job_status.go create mode 100644 model_brief_job_status_label.go create mode 100644 model_brief_job_status_value.go create mode 100644 model_brief_l2_vpn.go create mode 100644 model_brief_l2_vpn_request.go create mode 100644 model_brief_l2_vpn_termination.go create mode 100644 model_brief_l2_vpn_termination_request.go create mode 100644 model_brief_l2_vpn_type.go create mode 100644 model_brief_l2_vpn_type_label.go create mode 100644 model_brief_l2_vpn_type_value.go create mode 100644 model_brief_location.go create mode 100644 model_brief_location_request.go create mode 100644 model_brief_mac_address.go create mode 100644 model_brief_mac_address_request.go create mode 100644 model_brief_manufacturer.go create mode 100644 model_brief_manufacturer_request.go create mode 100644 model_brief_module.go create mode 100644 model_brief_module_request.go create mode 100644 model_brief_module_type.go create mode 100644 model_brief_module_type_request.go create mode 100644 model_brief_platform.go create mode 100644 model_brief_platform_request.go create mode 100644 model_brief_power_panel.go create mode 100644 model_brief_power_panel_request.go create mode 100644 model_brief_power_port.go create mode 100644 model_brief_power_port_request.go create mode 100644 model_brief_power_port_template.go create mode 100644 model_brief_power_port_template_request.go create mode 100644 model_brief_provider.go create mode 100644 model_brief_provider_account.go create mode 100644 model_brief_provider_account_request.go create mode 100644 model_brief_provider_network.go create mode 100644 model_brief_provider_network_request.go create mode 100644 model_brief_provider_request.go create mode 100644 model_brief_rack.go rename model_virtual_machine_request.go => model_brief_rack_request.go (52%) create mode 100644 model_brief_rack_role.go create mode 100644 model_brief_rack_role_request.go create mode 100644 model_brief_rack_type.go create mode 100644 model_brief_rack_type_request.go create mode 100644 model_brief_rear_port_template.go create mode 100644 model_brief_rear_port_template_request.go create mode 100644 model_brief_region.go create mode 100644 model_brief_region_request.go create mode 100644 model_brief_rir.go create mode 100644 model_brief_rir_request.go create mode 100644 model_brief_role.go create mode 100644 model_brief_role_request.go create mode 100644 model_brief_site.go create mode 100644 model_brief_site_group.go create mode 100644 model_brief_site_group_request.go create mode 100644 model_brief_site_request.go create mode 100644 model_brief_tenant.go create mode 100644 model_brief_tenant_group.go create mode 100644 model_brief_tenant_group_request.go create mode 100644 model_brief_tenant_request.go rename model_virtual_machine.go => model_brief_tunnel.go (58%) create mode 100644 model_brief_tunnel_group.go create mode 100644 model_brief_tunnel_group_request.go create mode 100644 model_brief_tunnel_request.go create mode 100644 model_brief_user.go create mode 100644 model_brief_user_request.go create mode 100644 model_brief_virtual_chassis.go create mode 100644 model_brief_virtual_chassis_request.go create mode 100644 model_brief_virtual_circuit.go create mode 100644 model_brief_virtual_circuit_request.go create mode 100644 model_brief_virtual_circuit_type.go create mode 100644 model_brief_virtual_circuit_type_request.go create mode 100644 model_brief_virtual_machine.go create mode 100644 model_brief_virtual_machine_request.go create mode 100644 model_brief_vlan.go create mode 100644 model_brief_vlan_group.go create mode 100644 model_brief_vlan_group_request.go create mode 100644 model_brief_vlan_request.go create mode 100644 model_brief_vlan_translation_policy.go create mode 100644 model_brief_vlan_translation_policy_request.go create mode 100644 model_brief_vrf.go create mode 100644 model_brief_vrf_request.go create mode 100644 model_brief_wireless_lan_group.go create mode 100644 model_brief_wireless_lan_group_request.go create mode 100644 model_cable_length_unit.go create mode 100644 model_cable_length_unit_label.go create mode 100644 model_cable_length_unit_value.go create mode 100644 model_cable_request_length_unit.go rename model_job_status.go => model_cable_status.go (55%) create mode 100644 model_cable_status_label.go create mode 100644 model_cable_status_value.go create mode 100644 model_cable_type.go create mode 100644 model_circuit_circuit_termination.go create mode 100644 model_circuit_circuit_termination_request.go create mode 100644 model_circuit_distance_unit.go create mode 100644 model_circuit_distance_unit_label.go create mode 100644 model_circuit_distance_unit_value.go create mode 100644 model_circuit_group.go create mode 100644 model_circuit_group_assignment.go create mode 100644 model_circuit_group_assignment_request.go create mode 100644 model_circuit_group_request.go create mode 100644 model_circuit_request_distance_unit.go create mode 100644 model_circuit_status.go create mode 100644 model_circuit_status_label.go create mode 100644 model_circuit_status_value.go create mode 100644 model_circuits_circuit_group_assignments_list_priority_parameter.go create mode 100644 model_circuits_circuits_list_distance_unit_parameter.go create mode 100644 model_cluster_status.go create mode 100644 model_cluster_status_label.go create mode 100644 model_cluster_status_value.go delete mode 100644 model_contact_assignment_priority.go delete mode 100644 model_contact_assignment_priority_label.go delete mode 100644 model_contact_assignment_priority_value.go create mode 100644 model_core_object_changes_list_action_parameter.go delete mode 100644 model_data_source_request_type.go rename model_wireless_link_status.go => model_data_source_status.go (50%) create mode 100644 model_data_source_status_label.go create mode 100644 model_data_source_status_value.go create mode 100644 model_data_source_type.go create mode 100644 model_data_source_type_label.go create mode 100644 model_data_source_type_value.go create mode 100644 model_dcim_module_types_list_airflow_parameter.go create mode 100644 model_dcim_rack_types_list_outer_unit_parameter.go create mode 100644 model_dcim_racks_list_airflow_parameter.go delete mode 100644 model_dcim_racks_list_outer_unit_parameter.go create mode 100644 model_device_type_airflow.go create mode 100644 model_device_type_request_airflow.go create mode 100644 model_device_type_request_subdevice_role.go create mode 100644 model_device_type_request_weight_unit.go create mode 100644 model_device_type_subdevice_role.go create mode 100644 model_device_type_subdevice_role_label.go create mode 100644 model_device_type_subdevice_role_value.go create mode 100644 model_device_type_weight_unit.go create mode 100644 model_device_type_weight_unit_label.go create mode 100644 model_device_type_weight_unit_value.go create mode 100644 model_event.go create mode 100644 model_event_rule_event_types_inner.go delete mode 100644 model_extras_object_changes_list_action_parameter.go delete mode 100644 model_fhrp_group_protocol.go create mode 100644 model_generic_object.go create mode 100644 model_inventory_item_status.go create mode 100644 model_inventory_item_status_label.go create mode 100644 model_inventory_item_status_value.go create mode 100644 model_ip_address_role.go create mode 100644 model_ip_address_role_label.go create mode 100644 model_ip_address_role_value.go create mode 100644 model_ip_address_status.go create mode 100644 model_ip_address_status_label.go create mode 100644 model_ip_address_status_value.go delete mode 100644 model_job_status_label.go delete mode 100644 model_job_status_value.go delete mode 100644 model_l2_vpn_type_label.go delete mode 100644 model_l2_vpn_type_value.go create mode 100644 model_location_status.go create mode 100644 model_location_status_label.go create mode 100644 model_location_status_value.go create mode 100644 model_mac_address.go create mode 100644 model_mac_address_request.go delete mode 100644 model_module_bay_nested_module.go delete mode 100644 model_module_bay_nested_module_request.go create mode 100644 model_module_type_airflow.go create mode 100644 model_module_type_airflow_label.go create mode 100644 model_module_type_airflow_value.go create mode 100644 model_module_type_request_airflow.go create mode 100644 model_nested_ip_address.go create mode 100644 model_nested_ip_address_request.go create mode 100644 model_nested_location.go create mode 100644 model_nested_location_request.go create mode 100644 model_nested_provider_account.go create mode 100644 model_nested_vlan.go create mode 100644 model_nested_vlan_request.go create mode 100644 model_nested_wireless_lan_group.go create mode 100644 model_notification.go create mode 100644 model_notification_group.go create mode 100644 model_notification_group_request.go create mode 100644 model_notification_request.go create mode 100644 model_paginated_circuit_group_assignment_list.go create mode 100644 model_paginated_circuit_group_list.go create mode 100644 model_paginated_mac_address_list.go create mode 100644 model_paginated_notification_group_list.go create mode 100644 model_paginated_notification_list.go create mode 100644 model_paginated_rack_type_list.go create mode 100644 model_paginated_subscription_list.go create mode 100644 model_paginated_virtual_circuit_list.go create mode 100644 model_paginated_virtual_circuit_termination_list.go create mode 100644 model_paginated_virtual_circuit_type_list.go create mode 100644 model_paginated_vlan_translation_policy_list.go create mode 100644 model_paginated_vlan_translation_rule_list.go create mode 100644 model_patched_circuit_group_request.go create mode 100644 model_patched_mac_address_request.go create mode 100644 model_patched_notification_group_request.go create mode 100644 model_patched_notification_request.go create mode 100644 model_patched_script_input_request.go create mode 100644 model_patched_subscription_request.go create mode 100644 model_patched_virtual_circuit_type_request.go create mode 100644 model_patched_vlan_translation_policy_request.go create mode 100644 model_patched_vlan_translation_rule_request.go delete mode 100644 model_patched_writable_cable_request_length_unit.go delete mode 100644 model_patched_writable_cable_request_status.go delete mode 100644 model_patched_writable_cable_request_type.go create mode 100644 model_patched_writable_circuit_group_assignment_request.go create mode 100644 model_patched_writable_circuit_group_assignment_request_priority.go delete mode 100644 model_patched_writable_circuit_request_status.go delete mode 100644 model_patched_writable_cluster_request_status.go create mode 100644 model_patched_writable_console_port_template_request_type.go delete mode 100644 model_patched_writable_device_type_request_weight_unit.go rename model_patched_inventory_item_request.go => model_patched_writable_inventory_item_request.go (60%) delete mode 100644 model_patched_writable_location_request_status.go delete mode 100644 model_patched_writable_module_request_status.go create mode 100644 model_patched_writable_rack_request_airflow.go create mode 100644 model_patched_writable_rack_request_form_factor.go delete mode 100644 model_patched_writable_rack_request_type.go create mode 100644 model_patched_writable_rack_type_request.go create mode 100644 model_patched_writable_rack_type_request_form_factor.go create mode 100644 model_patched_writable_virtual_circuit_request.go create mode 100644 model_patched_writable_virtual_circuit_termination_request.go delete mode 100644 model_power_outlet_request_type.go create mode 100644 model_power_outlet_type_value.go create mode 100644 model_power_port_type.go create mode 100644 model_power_port_type_label.go create mode 100644 model_power_port_type_value.go create mode 100644 model_q_in_q_role.go create mode 100644 model_rack_airflow.go create mode 100644 model_rack_airflow_label.go create mode 100644 model_rack_airflow_value.go create mode 100644 model_rack_form_factor.go create mode 100644 model_rack_form_factor_label.go create mode 100644 model_rack_form_factor_value.go create mode 100644 model_rack_outer_unit.go create mode 100644 model_rack_outer_unit_label.go create mode 100644 model_rack_outer_unit_value.go create mode 100644 model_rack_status.go create mode 100644 model_rack_status_label.go create mode 100644 model_rack_type.go create mode 100644 model_rack_type_request.go rename model_l2_vpn_type.go => model_rack_width.go (58%) create mode 100644 model_rack_width_label.go create mode 100644 model_rack_width_value.go create mode 100644 model_script_input_request.go create mode 100644 model_subscription.go create mode 100644 model_subscription_request.go delete mode 100644 model_tenancy_contact_assignments_list_priority_parameter.go delete mode 100644 model_termination.go delete mode 100644 model_termination_1.go create mode 100644 model_termination_side.go create mode 100644 model_termination_side_1.go create mode 100644 model_tunnel_encapsulation.go create mode 100644 model_tunnel_encapsulation_label.go create mode 100644 model_tunnel_status.go create mode 100644 model_tunnel_status_label.go create mode 100644 model_virtual_circuit.go create mode 100644 model_virtual_circuit_request.go create mode 100644 model_virtual_circuit_termination.go create mode 100644 model_virtual_circuit_termination_request.go create mode 100644 model_virtual_circuit_type.go create mode 100644 model_virtual_circuit_type_request.go delete mode 100644 model_virtual_machine_with_config_context_status.go delete mode 100644 model_virtual_machine_with_config_context_status_label.go create mode 100644 model_vlan_qinq_role.go create mode 100644 model_vlan_qinq_role_label.go create mode 100644 model_vlan_qinq_role_value.go create mode 100644 model_vlan_translation_policy.go create mode 100644 model_vlan_translation_policy_request.go create mode 100644 model_vlan_translation_rule.go create mode 100644 model_vlan_translation_rule_request.go delete mode 100644 model_wireless_link_status_label.go create mode 100644 model_writable_circuit_group_assignment_request.go create mode 100644 model_writable_inventory_item_request.go create mode 100644 model_writable_rack_type_request.go create mode 100644 model_writable_virtual_circuit_request.go create mode 100644 model_writable_virtual_circuit_termination_request.go delete mode 100644 test/api_circuits_test.go delete mode 100644 test/api_core_test.go delete mode 100644 test/api_dcim_test.go delete mode 100644 test/api_extras_test.go delete mode 100644 test/api_ipam_test.go delete mode 100644 test/api_schema_test.go delete mode 100644 test/api_status_test.go delete mode 100644 test/api_tenancy_test.go delete mode 100644 test/api_users_test.go delete mode 100644 test/api_virtualization_test.go delete mode 100644 test/api_vpn_test.go delete mode 100644 test/api_wireless_test.go diff --git a/.gitignore b/.gitignore index df089032b7..60e5b96a55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store /.env +.venv \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 75c3406fac..707bdc9a39 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -31,22 +31,183 @@ docs/AvailablePrefix.md docs/AvailableVLAN.md docs/Bookmark.md docs/BookmarkRequest.md +docs/BriefCable.md +docs/BriefCableRequest.md +docs/BriefCircuit.md +docs/BriefCircuitGroup.md +docs/BriefCircuitGroupAssignmentSerializer.md +docs/BriefCircuitGroupAssignmentSerializerPriority.md +docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md +docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md +docs/BriefCircuitGroupAssignmentSerializerRequest.md +docs/BriefCircuitGroupRequest.md +docs/BriefCircuitRequest.md +docs/BriefCircuitType.md +docs/BriefCircuitTypeRequest.md +docs/BriefCluster.md +docs/BriefClusterGroup.md +docs/BriefClusterGroupRequest.md +docs/BriefClusterRequest.md +docs/BriefClusterType.md +docs/BriefClusterTypeRequest.md +docs/BriefConfigTemplate.md +docs/BriefConfigTemplateRequest.md +docs/BriefContact.md +docs/BriefContactGroup.md +docs/BriefContactGroupRequest.md +docs/BriefContactRequest.md +docs/BriefContactRole.md +docs/BriefContactRoleRequest.md +docs/BriefCustomFieldChoiceSet.md +docs/BriefCustomFieldChoiceSetRequest.md +docs/BriefDataFile.md +docs/BriefDataSource.md +docs/BriefDataSourceRequest.md +docs/BriefDevice.md +docs/BriefDeviceRequest.md +docs/BriefDeviceRole.md +docs/BriefDeviceRoleRequest.md +docs/BriefDeviceType.md +docs/BriefDeviceTypeRequest.md +docs/BriefFHRPGroup.md +docs/BriefFHRPGroupProtocol.md +docs/BriefFHRPGroupRequest.md +docs/BriefIKEPolicy.md +docs/BriefIKEPolicyRequest.md +docs/BriefIPAddress.md +docs/BriefIPAddressRequest.md +docs/BriefIPSecPolicy.md +docs/BriefIPSecPolicyRequest.md +docs/BriefIPSecProfile.md +docs/BriefIPSecProfileRequest.md +docs/BriefInterface.md +docs/BriefInterfaceRequest.md +docs/BriefInventoryItemRole.md +docs/BriefInventoryItemRoleRequest.md +docs/BriefJob.md +docs/BriefJobRequest.md +docs/BriefJobStatus.md +docs/BriefJobStatusLabel.md +docs/BriefJobStatusValue.md +docs/BriefL2VPN.md +docs/BriefL2VPNRequest.md +docs/BriefL2VPNTermination.md +docs/BriefL2VPNTerminationRequest.md +docs/BriefL2VPNType.md +docs/BriefL2VPNTypeLabel.md +docs/BriefL2VPNTypeValue.md +docs/BriefLocation.md +docs/BriefLocationRequest.md +docs/BriefMACAddress.md +docs/BriefMACAddressRequest.md +docs/BriefManufacturer.md +docs/BriefManufacturerRequest.md +docs/BriefModule.md +docs/BriefModuleRequest.md +docs/BriefModuleType.md +docs/BriefModuleTypeRequest.md +docs/BriefPlatform.md +docs/BriefPlatformRequest.md +docs/BriefPowerPanel.md +docs/BriefPowerPanelRequest.md +docs/BriefPowerPort.md +docs/BriefPowerPortRequest.md +docs/BriefPowerPortTemplate.md +docs/BriefPowerPortTemplateRequest.md +docs/BriefProvider.md +docs/BriefProviderAccount.md +docs/BriefProviderAccountRequest.md +docs/BriefProviderNetwork.md +docs/BriefProviderNetworkRequest.md +docs/BriefProviderRequest.md +docs/BriefRIR.md +docs/BriefRIRRequest.md +docs/BriefRack.md +docs/BriefRackRequest.md +docs/BriefRackRole.md +docs/BriefRackRoleRequest.md +docs/BriefRackType.md +docs/BriefRackTypeRequest.md +docs/BriefRearPortTemplate.md +docs/BriefRearPortTemplateRequest.md +docs/BriefRegion.md +docs/BriefRegionRequest.md +docs/BriefRole.md +docs/BriefRoleRequest.md +docs/BriefSite.md +docs/BriefSiteGroup.md +docs/BriefSiteGroupRequest.md +docs/BriefSiteRequest.md +docs/BriefTenant.md +docs/BriefTenantGroup.md +docs/BriefTenantGroupRequest.md +docs/BriefTenantRequest.md +docs/BriefTunnel.md +docs/BriefTunnelGroup.md +docs/BriefTunnelGroupRequest.md +docs/BriefTunnelRequest.md +docs/BriefUser.md +docs/BriefUserRequest.md +docs/BriefVLAN.md +docs/BriefVLANGroup.md +docs/BriefVLANGroupRequest.md +docs/BriefVLANRequest.md +docs/BriefVLANTranslationPolicy.md +docs/BriefVLANTranslationPolicyRequest.md +docs/BriefVRF.md +docs/BriefVRFRequest.md +docs/BriefVirtualChassis.md +docs/BriefVirtualChassisRequest.md +docs/BriefVirtualCircuit.md +docs/BriefVirtualCircuitRequest.md +docs/BriefVirtualCircuitType.md +docs/BriefVirtualCircuitTypeRequest.md +docs/BriefVirtualMachine.md +docs/BriefVirtualMachineRequest.md +docs/BriefWirelessLANGroup.md +docs/BriefWirelessLANGroupRequest.md docs/Cable.md +docs/CableLengthUnit.md +docs/CableLengthUnitLabel.md +docs/CableLengthUnitValue.md docs/CableRequest.md +docs/CableRequestLengthUnit.md +docs/CableStatus.md +docs/CableStatusLabel.md +docs/CableStatusValue.md docs/CableTermination.md docs/CableTerminationRequest.md +docs/CableType.md docs/Circuit.md +docs/CircuitCircuitTermination.md +docs/CircuitCircuitTerminationRequest.md +docs/CircuitDistanceUnit.md +docs/CircuitDistanceUnitLabel.md +docs/CircuitDistanceUnitValue.md +docs/CircuitGroup.md +docs/CircuitGroupAssignment.md +docs/CircuitGroupAssignmentRequest.md +docs/CircuitGroupRequest.md docs/CircuitRequest.md +docs/CircuitRequestDistanceUnit.md +docs/CircuitStatus.md +docs/CircuitStatusLabel.md +docs/CircuitStatusValue.md docs/CircuitTermination.md docs/CircuitTerminationRequest.md docs/CircuitType.md docs/CircuitTypeRequest.md docs/CircuitsAPI.md +docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md docs/CircuitsCircuitTerminationsListCableEndParameter.md +docs/CircuitsCircuitsListDistanceUnitParameter.md docs/Cluster.md docs/ClusterGroup.md docs/ClusterGroupRequest.md docs/ClusterRequest.md +docs/ClusterStatus.md +docs/ClusterStatusLabel.md +docs/ClusterStatusValue.md docs/ClusterType.md docs/ClusterTypeRequest.md docs/ConfigContext.md @@ -70,9 +231,6 @@ docs/ConsoleServerPortTemplate.md docs/ConsoleServerPortTemplateRequest.md docs/Contact.md docs/ContactAssignment.md -docs/ContactAssignmentPriority.md -docs/ContactAssignmentPriorityLabel.md -docs/ContactAssignmentPriorityValue.md docs/ContactAssignmentRequest.md docs/ContactGroup.md docs/ContactGroupRequest.md @@ -80,6 +238,7 @@ docs/ContactRequest.md docs/ContactRole.md docs/ContactRoleRequest.md docs/CoreAPI.md +docs/CoreObjectChangesListActionParameter.md docs/CustomField.md docs/CustomFieldChoiceSet.md docs/CustomFieldChoiceSetBaseChoices.md @@ -107,7 +266,12 @@ docs/DashboardRequest.md docs/DataFile.md docs/DataSource.md docs/DataSourceRequest.md -docs/DataSourceRequestType.md +docs/DataSourceStatus.md +docs/DataSourceStatusLabel.md +docs/DataSourceStatusValue.md +docs/DataSourceType.md +docs/DataSourceTypeLabel.md +docs/DataSourceTypeValue.md docs/DcimAPI.md docs/DcimCablesListLengthUnitParameter.md docs/DcimConsolePortTemplatesListTypeParameter.md @@ -116,14 +280,16 @@ docs/DcimDeviceTypesListAirflowParameter.md docs/DcimDeviceTypesListWeightUnitParameter.md docs/DcimDevicesRenderConfigCreateFormatParameter.md docs/DcimInterfacesListModeParameter.md +docs/DcimModuleTypesListAirflowParameter.md docs/DcimPowerFeedsListPhaseParameter.md docs/DcimPowerFeedsListSupplyParameter.md docs/DcimPowerFeedsListTypeParameter.md docs/DcimPowerOutletTemplatesListTypeParameter.md docs/DcimPowerPortTemplatesListTypeParameter.md +docs/DcimRackTypesListOuterUnitParameter.md docs/DcimRacksElevationRetrieveFaceParameter.md docs/DcimRacksElevationRetrieveRenderParameter.md -docs/DcimRacksListOuterUnitParameter.md +docs/DcimRacksListAirflowParameter.md docs/Device.md docs/DeviceAirflow.md docs/DeviceAirflowLabel.md @@ -135,23 +301,34 @@ docs/DeviceBayTemplateRequest.md docs/DeviceFace.md docs/DeviceFaceLabel.md docs/DeviceFaceValue.md -docs/DeviceRequest.md docs/DeviceRole.md docs/DeviceRoleRequest.md docs/DeviceStatus.md docs/DeviceStatusLabel.md docs/DeviceStatusValue.md docs/DeviceType.md +docs/DeviceTypeAirflow.md docs/DeviceTypeRequest.md +docs/DeviceTypeRequestAirflow.md +docs/DeviceTypeRequestSubdeviceRole.md +docs/DeviceTypeRequestWeightUnit.md +docs/DeviceTypeSubdeviceRole.md +docs/DeviceTypeSubdeviceRoleLabel.md +docs/DeviceTypeSubdeviceRoleValue.md +docs/DeviceTypeWeightUnit.md +docs/DeviceTypeWeightUnitLabel.md +docs/DeviceTypeWeightUnitValue.md docs/DeviceWithConfigContext.md docs/DeviceWithConfigContextRequest.md docs/Encryption.md docs/End.md docs/End1.md +docs/Event.md docs/EventRule.md docs/EventRuleActionType.md docs/EventRuleActionTypeLabel.md docs/EventRuleActionTypeValue.md +docs/EventRuleEventTypesInner.md docs/EventRuleRequest.md docs/ExportTemplate.md docs/ExportTemplateRequest.md @@ -161,11 +338,9 @@ docs/ExtrasCustomFieldsListFilterLogicParameter.md docs/ExtrasCustomFieldsListUiEditableParameter.md docs/ExtrasCustomFieldsListUiVisibleParameter.md docs/ExtrasCustomLinksListButtonClassParameter.md -docs/ExtrasObjectChangesListActionParameter.md docs/FHRPGroup.md docs/FHRPGroupAssignment.md docs/FHRPGroupAssignmentRequest.md -docs/FHRPGroupProtocol.md docs/FHRPGroupRequest.md docs/FrontPort.md docs/FrontPortRearPort.md @@ -176,6 +351,7 @@ docs/FrontPortTemplateRequest.md docs/FrontPortType.md docs/FrontPortTypeLabel.md docs/FrontPortTypeValue.md +docs/GenericObject.md docs/GenericObjectRequest.md docs/Group.md docs/GroupRequest.md @@ -203,6 +379,12 @@ docs/IKEProposalGroupValue.md docs/IKEProposalRequest.md docs/IPAddress.md docs/IPAddressRequest.md +docs/IPAddressRole.md +docs/IPAddressRoleLabel.md +docs/IPAddressRoleValue.md +docs/IPAddressStatus.md +docs/IPAddressStatusLabel.md +docs/IPAddressStatusValue.md docs/IPRange.md docs/IPRangeRequest.md docs/IPRangeStatus.md @@ -255,15 +437,14 @@ docs/InventoryItem.md docs/InventoryItemRequest.md docs/InventoryItemRole.md docs/InventoryItemRoleRequest.md +docs/InventoryItemStatus.md +docs/InventoryItemStatusLabel.md +docs/InventoryItemStatusValue.md docs/InventoryItemTemplate.md docs/InventoryItemTemplateRequest.md docs/IpamAPI.md docs/IpamServiceTemplatesListProtocolParameter.md docs/Job.md -docs/JobRequest.md -docs/JobStatus.md -docs/JobStatusLabel.md -docs/JobStatusValue.md docs/JournalEntry.md docs/JournalEntryKind.md docs/JournalEntryKindLabel.md @@ -273,34 +454,43 @@ docs/L2VPN.md docs/L2VPNRequest.md docs/L2VPNTermination.md docs/L2VPNTerminationRequest.md -docs/L2VPNType.md -docs/L2VPNTypeLabel.md -docs/L2VPNTypeValue.md docs/Location.md docs/LocationRequest.md +docs/LocationStatus.md +docs/LocationStatusLabel.md +docs/LocationStatusValue.md +docs/MACAddress.md +docs/MACAddressRequest.md docs/Manufacturer.md docs/ManufacturerRequest.md docs/Module.md docs/ModuleBay.md -docs/ModuleBayNestedModule.md -docs/ModuleBayNestedModuleRequest.md docs/ModuleBayRequest.md docs/ModuleBayTemplate.md docs/ModuleBayTemplateRequest.md docs/ModuleRequest.md docs/ModuleType.md +docs/ModuleTypeAirflow.md +docs/ModuleTypeAirflowLabel.md +docs/ModuleTypeAirflowValue.md docs/ModuleTypeRequest.md +docs/ModuleTypeRequestAirflow.md docs/NestedContactGroup.md docs/NestedContactGroupRequest.md docs/NestedDevice.md docs/NestedDeviceRequest.md docs/NestedGroup.md +docs/NestedIPAddress.md +docs/NestedIPAddressRequest.md docs/NestedInterface.md docs/NestedInterfaceRequest.md docs/NestedInterfaceTemplate.md docs/NestedInterfaceTemplateRequest.md +docs/NestedLocation.md +docs/NestedLocationRequest.md docs/NestedModuleBay.md docs/NestedModuleBayRequest.md +docs/NestedProviderAccount.md docs/NestedRegion.md docs/NestedRegionRequest.md docs/NestedSiteGroup.md @@ -310,13 +500,20 @@ docs/NestedTagRequest.md docs/NestedTenantGroup.md docs/NestedTenantGroupRequest.md docs/NestedUser.md +docs/NestedVLAN.md +docs/NestedVLANRequest.md docs/NestedVMInterface.md docs/NestedVMInterfaceRequest.md docs/NestedVirtualMachine.md docs/NestedVirtualMachineRequest.md +docs/NestedWirelessLANGroup.md docs/NestedWirelessLANGroupRequest.md docs/NestedWirelessLink.md docs/NestedWirelessLinkRequest.md +docs/Notification.md +docs/NotificationGroup.md +docs/NotificationGroupRequest.md +docs/NotificationRequest.md docs/ObjectChange.md docs/ObjectChangeAction.md docs/ObjectChangeActionLabel.md @@ -330,6 +527,8 @@ docs/PaginatedAggregateList.md docs/PaginatedBookmarkList.md docs/PaginatedCableList.md docs/PaginatedCableTerminationList.md +docs/PaginatedCircuitGroupAssignmentList.md +docs/PaginatedCircuitGroupList.md docs/PaginatedCircuitList.md docs/PaginatedCircuitTerminationList.md docs/PaginatedCircuitTypeList.md @@ -381,11 +580,14 @@ docs/PaginatedJournalEntryList.md docs/PaginatedL2VPNList.md docs/PaginatedL2VPNTerminationList.md docs/PaginatedLocationList.md +docs/PaginatedMACAddressList.md docs/PaginatedManufacturerList.md docs/PaginatedModuleBayList.md docs/PaginatedModuleBayTemplateList.md docs/PaginatedModuleList.md docs/PaginatedModuleTypeList.md +docs/PaginatedNotificationGroupList.md +docs/PaginatedNotificationList.md docs/PaginatedObjectChangeList.md docs/PaginatedObjectPermissionList.md docs/PaginatedObjectTypeList.md @@ -404,6 +606,7 @@ docs/PaginatedRIRList.md docs/PaginatedRackList.md docs/PaginatedRackReservationList.md docs/PaginatedRackRoleList.md +docs/PaginatedRackTypeList.md docs/PaginatedRackUnitList.md docs/PaginatedRearPortList.md docs/PaginatedRearPortTemplateList.md @@ -416,6 +619,7 @@ docs/PaginatedServiceList.md docs/PaginatedServiceTemplateList.md docs/PaginatedSiteGroupList.md docs/PaginatedSiteList.md +docs/PaginatedSubscriptionList.md docs/PaginatedTagList.md docs/PaginatedTenantGroupList.md docs/PaginatedTenantList.md @@ -426,9 +630,14 @@ docs/PaginatedTunnelTerminationList.md docs/PaginatedUserList.md docs/PaginatedVLANGroupList.md docs/PaginatedVLANList.md +docs/PaginatedVLANTranslationPolicyList.md +docs/PaginatedVLANTranslationRuleList.md docs/PaginatedVMInterfaceList.md docs/PaginatedVRFList.md docs/PaginatedVirtualChassisList.md +docs/PaginatedVirtualCircuitList.md +docs/PaginatedVirtualCircuitTerminationList.md +docs/PaginatedVirtualCircuitTypeList.md docs/PaginatedVirtualDeviceContextList.md docs/PaginatedVirtualDiskList.md docs/PaginatedVirtualMachineWithConfigContextList.md @@ -442,6 +651,7 @@ docs/PatchedASNRangeRequest.md docs/PatchedASNRequest.md docs/PatchedBookmarkRequest.md docs/PatchedCableTerminationRequest.md +docs/PatchedCircuitGroupRequest.md docs/PatchedCircuitTerminationRequest.md docs/PatchedCircuitTypeRequest.md docs/PatchedClusterGroupRequest.md @@ -460,13 +670,15 @@ docs/PatchedFHRPGroupAssignmentRequest.md docs/PatchedFHRPGroupRequest.md docs/PatchedGroupRequest.md docs/PatchedImageAttachmentRequest.md -docs/PatchedInventoryItemRequest.md docs/PatchedInventoryItemRoleRequest.md docs/PatchedInventoryItemTemplateRequest.md docs/PatchedL2VPNTerminationRequest.md +docs/PatchedMACAddressRequest.md docs/PatchedManufacturerRequest.md docs/PatchedModuleBayRequest.md docs/PatchedModuleBayTemplateRequest.md +docs/PatchedNotificationGroupRequest.md +docs/PatchedNotificationRequest.md docs/PatchedObjectPermissionRequest.md docs/PatchedPlatformRequest.md docs/PatchedPowerPanelRequest.md @@ -479,29 +691,32 @@ docs/PatchedRackRoleRequest.md docs/PatchedRoleRequest.md docs/PatchedRouteTargetRequest.md docs/PatchedSavedFilterRequest.md +docs/PatchedScriptInputRequest.md +docs/PatchedSubscriptionRequest.md docs/PatchedTagRequest.md docs/PatchedTenantRequest.md docs/PatchedTokenRequest.md docs/PatchedTunnelGroupRequest.md docs/PatchedUserRequest.md docs/PatchedVLANGroupRequest.md +docs/PatchedVLANTranslationPolicyRequest.md +docs/PatchedVLANTranslationRuleRequest.md docs/PatchedVRFRequest.md +docs/PatchedVirtualCircuitTypeRequest.md docs/PatchedVirtualDiskRequest.md docs/PatchedWebhookRequest.md docs/PatchedWebhookRequestHttpMethod.md docs/PatchedWritableAggregateRequest.md docs/PatchedWritableCableRequest.md -docs/PatchedWritableCableRequestLengthUnit.md -docs/PatchedWritableCableRequestStatus.md -docs/PatchedWritableCableRequestType.md +docs/PatchedWritableCircuitGroupAssignmentRequest.md +docs/PatchedWritableCircuitGroupAssignmentRequestPriority.md docs/PatchedWritableCircuitRequest.md -docs/PatchedWritableCircuitRequestStatus.md docs/PatchedWritableClusterRequest.md -docs/PatchedWritableClusterRequestStatus.md docs/PatchedWritableConsolePortRequest.md docs/PatchedWritableConsolePortRequestSpeed.md docs/PatchedWritableConsolePortRequestType.md docs/PatchedWritableConsolePortTemplateRequest.md +docs/PatchedWritableConsolePortTemplateRequestType.md docs/PatchedWritableConsoleServerPortRequest.md docs/PatchedWritableConsoleServerPortTemplateRequest.md docs/PatchedWritableContactAssignmentRequest.md @@ -515,7 +730,6 @@ docs/PatchedWritableCustomFieldRequestUiEditable.md docs/PatchedWritableCustomFieldRequestUiVisible.md docs/PatchedWritableDataSourceRequest.md docs/PatchedWritableDeviceTypeRequest.md -docs/PatchedWritableDeviceTypeRequestWeightUnit.md docs/PatchedWritableDeviceWithConfigContextRequest.md docs/PatchedWritableEventRuleRequest.md docs/PatchedWritableFrontPortRequest.md @@ -538,12 +752,11 @@ docs/PatchedWritableIPSecProposalRequest.md docs/PatchedWritableInterfaceRequest.md docs/PatchedWritableInterfaceRequestMode.md docs/PatchedWritableInterfaceTemplateRequest.md +docs/PatchedWritableInventoryItemRequest.md docs/PatchedWritableJournalEntryRequest.md docs/PatchedWritableL2VPNRequest.md docs/PatchedWritableLocationRequest.md -docs/PatchedWritableLocationRequestStatus.md docs/PatchedWritableModuleRequest.md -docs/PatchedWritableModuleRequestStatus.md docs/PatchedWritableModuleTypeRequest.md docs/PatchedWritablePowerFeedRequest.md docs/PatchedWritablePowerFeedRequestPhase.md @@ -562,10 +775,13 @@ docs/PatchedWritablePowerPortTemplateRequestType.md docs/PatchedWritablePrefixRequest.md docs/PatchedWritablePrefixRequestStatus.md docs/PatchedWritableRackRequest.md +docs/PatchedWritableRackRequestAirflow.md +docs/PatchedWritableRackRequestFormFactor.md docs/PatchedWritableRackRequestOuterUnit.md docs/PatchedWritableRackRequestStatus.md -docs/PatchedWritableRackRequestType.md docs/PatchedWritableRackRequestWidth.md +docs/PatchedWritableRackTypeRequest.md +docs/PatchedWritableRackTypeRequestFormFactor.md docs/PatchedWritableRearPortRequest.md docs/PatchedWritableRearPortTemplateRequest.md docs/PatchedWritableRegionRequest.md @@ -584,6 +800,8 @@ docs/PatchedWritableVLANRequest.md docs/PatchedWritableVLANRequestStatus.md docs/PatchedWritableVMInterfaceRequest.md docs/PatchedWritableVirtualChassisRequest.md +docs/PatchedWritableVirtualCircuitRequest.md +docs/PatchedWritableVirtualCircuitTerminationRequest.md docs/PatchedWritableVirtualDeviceContextRequest.md docs/PatchedWritableVirtualDeviceContextRequestStatus.md docs/PatchedWritableVirtualMachineWithConfigContextRequest.md @@ -609,17 +827,20 @@ docs/PowerOutletFeedLegLabel.md docs/PowerOutletFeedLegValue.md docs/PowerOutletRequest.md docs/PowerOutletRequestFeedLeg.md -docs/PowerOutletRequestType.md docs/PowerOutletTemplate.md docs/PowerOutletTemplateRequest.md docs/PowerOutletType.md docs/PowerOutletTypeLabel.md +docs/PowerOutletTypeValue.md docs/PowerPanel.md docs/PowerPanelRequest.md docs/PowerPort.md docs/PowerPortRequest.md docs/PowerPortTemplate.md docs/PowerPortTemplateRequest.md +docs/PowerPortType.md +docs/PowerPortTypeLabel.md +docs/PowerPortTypeValue.md docs/Prefix.md docs/PrefixRequest.md docs/PrefixStatus.md @@ -631,19 +852,36 @@ docs/ProviderAccountRequest.md docs/ProviderNetwork.md docs/ProviderNetworkRequest.md docs/ProviderRequest.md +docs/QInQRole.md docs/RIR.md docs/RIRRequest.md docs/Rack.md +docs/RackAirflow.md +docs/RackAirflowLabel.md +docs/RackAirflowValue.md docs/RackFace.md docs/RackFace1.md +docs/RackFormFactor.md +docs/RackFormFactorLabel.md +docs/RackFormFactorValue.md +docs/RackOuterUnit.md +docs/RackOuterUnitLabel.md +docs/RackOuterUnitValue.md docs/RackRequest.md docs/RackReservation.md docs/RackReservationRequest.md docs/RackRole.md docs/RackRoleRequest.md +docs/RackStatus.md +docs/RackStatusLabel.md +docs/RackType.md +docs/RackTypeRequest.md docs/RackUnit.md docs/RackUnitFace.md docs/RackUnitFaceValue.md +docs/RackWidth.md +docs/RackWidthLabel.md +docs/RackWidthValue.md docs/RearPort.md docs/RearPortRequest.md docs/RearPortTemplate.md @@ -660,6 +898,7 @@ docs/SchemaAPI.md docs/SchemaRetrieveFormatParameter.md docs/SchemaRetrieveLangParameter.md docs/Script.md +docs/ScriptInputRequest.md docs/Service.md docs/ServiceProtocol.md docs/ServiceProtocolLabel.md @@ -671,24 +910,29 @@ docs/SiteGroup.md docs/SiteGroupRequest.md docs/SiteRequest.md docs/StatusAPI.md +docs/Subscription.md +docs/SubscriptionRequest.md docs/Tag.md docs/TagRequest.md docs/TenancyAPI.md -docs/TenancyContactAssignmentsListPriorityParameter.md docs/Tenant.md docs/TenantGroup.md docs/TenantGroupRequest.md docs/TenantRequest.md -docs/Termination.md -docs/Termination1.md +docs/TerminationSide.md +docs/TerminationSide1.md docs/Token.md docs/TokenProvision.md docs/TokenProvisionRequest.md docs/TokenRequest.md docs/Tunnel.md +docs/TunnelEncapsulation.md +docs/TunnelEncapsulationLabel.md docs/TunnelGroup.md docs/TunnelGroupRequest.md docs/TunnelRequest.md +docs/TunnelStatus.md +docs/TunnelStatusLabel.md docs/TunnelTermination.md docs/TunnelTerminationRequest.md docs/TunnelTerminationRole.md @@ -699,25 +943,34 @@ docs/UsersAPI.md docs/VLAN.md docs/VLANGroup.md docs/VLANGroupRequest.md +docs/VLANQinqRole.md +docs/VLANQinqRoleLabel.md +docs/VLANQinqRoleValue.md docs/VLANRequest.md +docs/VLANTranslationPolicy.md +docs/VLANTranslationPolicyRequest.md +docs/VLANTranslationRule.md +docs/VLANTranslationRuleRequest.md docs/VMInterface.md docs/VMInterfaceRequest.md docs/VRF.md docs/VRFRequest.md docs/VirtualChassis.md docs/VirtualChassisRequest.md +docs/VirtualCircuit.md +docs/VirtualCircuitRequest.md +docs/VirtualCircuitTermination.md +docs/VirtualCircuitTerminationRequest.md +docs/VirtualCircuitType.md +docs/VirtualCircuitTypeRequest.md docs/VirtualDeviceContext.md docs/VirtualDeviceContextRequest.md docs/VirtualDeviceContextStatus.md docs/VirtualDeviceContextStatusLabel.md docs/VirtualDisk.md docs/VirtualDiskRequest.md -docs/VirtualMachine.md -docs/VirtualMachineRequest.md docs/VirtualMachineWithConfigContext.md docs/VirtualMachineWithConfigContextRequest.md -docs/VirtualMachineWithConfigContextStatus.md -docs/VirtualMachineWithConfigContextStatusLabel.md docs/VirtualizationAPI.md docs/VpnAPI.md docs/Webhook.md @@ -739,11 +992,10 @@ docs/WirelessLANStatusLabel.md docs/WirelessLANStatusValue.md docs/WirelessLink.md docs/WirelessLinkRequest.md -docs/WirelessLinkStatus.md -docs/WirelessLinkStatusLabel.md docs/WirelessRole.md docs/WritableAggregateRequest.md docs/WritableCableRequest.md +docs/WritableCircuitGroupAssignmentRequest.md docs/WritableCircuitRequest.md docs/WritableClusterRequest.md docs/WritableConsolePortRequest.md @@ -769,6 +1021,7 @@ docs/WritableIPSecProfileRequest.md docs/WritableIPSecProposalRequest.md docs/WritableInterfaceRequest.md docs/WritableInterfaceTemplateRequest.md +docs/WritableInventoryItemRequest.md docs/WritableJournalEntryRequest.md docs/WritableL2VPNRequest.md docs/WritableLocationRequest.md @@ -781,6 +1034,7 @@ docs/WritablePowerPortRequest.md docs/WritablePowerPortTemplateRequest.md docs/WritablePrefixRequest.md docs/WritableRackRequest.md +docs/WritableRackTypeRequest.md docs/WritableRearPortRequest.md docs/WritableRearPortTemplateRequest.md docs/WritableRegionRequest.md @@ -794,6 +1048,8 @@ docs/WritableTunnelTerminationRequest.md docs/WritableVLANRequest.md docs/WritableVMInterfaceRequest.md docs/WritableVirtualChassisRequest.md +docs/WritableVirtualCircuitRequest.md +docs/WritableVirtualCircuitTerminationRequest.md docs/WritableVirtualDeviceContextRequest.md docs/WritableVirtualMachineWithConfigContextRequest.md docs/WritableWirelessLANGroupRequest.md @@ -820,21 +1076,182 @@ model_available_prefix.go model_available_vlan.go model_bookmark.go model_bookmark_request.go +model_brief_cable.go +model_brief_cable_request.go +model_brief_circuit.go +model_brief_circuit_group.go +model_brief_circuit_group_assignment_serializer_.go +model_brief_circuit_group_assignment_serializer__priority.go +model_brief_circuit_group_assignment_serializer__priority_label.go +model_brief_circuit_group_assignment_serializer__priority_value.go +model_brief_circuit_group_assignment_serializer_request.go +model_brief_circuit_group_request.go +model_brief_circuit_request.go +model_brief_circuit_type.go +model_brief_circuit_type_request.go +model_brief_cluster.go +model_brief_cluster_group.go +model_brief_cluster_group_request.go +model_brief_cluster_request.go +model_brief_cluster_type.go +model_brief_cluster_type_request.go +model_brief_config_template.go +model_brief_config_template_request.go +model_brief_contact.go +model_brief_contact_group.go +model_brief_contact_group_request.go +model_brief_contact_request.go +model_brief_contact_role.go +model_brief_contact_role_request.go +model_brief_custom_field_choice_set.go +model_brief_custom_field_choice_set_request.go +model_brief_data_file.go +model_brief_data_source.go +model_brief_data_source_request.go +model_brief_device.go +model_brief_device_request.go +model_brief_device_role.go +model_brief_device_role_request.go +model_brief_device_type.go +model_brief_device_type_request.go +model_brief_fhrp_group.go +model_brief_fhrp_group_protocol.go +model_brief_fhrp_group_request.go +model_brief_ike_policy.go +model_brief_ike_policy_request.go +model_brief_interface.go +model_brief_interface_request.go +model_brief_inventory_item_role.go +model_brief_inventory_item_role_request.go +model_brief_ip_address.go +model_brief_ip_address_request.go +model_brief_ip_sec_policy.go +model_brief_ip_sec_policy_request.go +model_brief_ip_sec_profile.go +model_brief_ip_sec_profile_request.go +model_brief_job.go +model_brief_job_request.go +model_brief_job_status.go +model_brief_job_status_label.go +model_brief_job_status_value.go +model_brief_l2_vpn.go +model_brief_l2_vpn_request.go +model_brief_l2_vpn_termination.go +model_brief_l2_vpn_termination_request.go +model_brief_l2_vpn_type.go +model_brief_l2_vpn_type_label.go +model_brief_l2_vpn_type_value.go +model_brief_location.go +model_brief_location_request.go +model_brief_mac_address.go +model_brief_mac_address_request.go +model_brief_manufacturer.go +model_brief_manufacturer_request.go +model_brief_module.go +model_brief_module_request.go +model_brief_module_type.go +model_brief_module_type_request.go +model_brief_platform.go +model_brief_platform_request.go +model_brief_power_panel.go +model_brief_power_panel_request.go +model_brief_power_port.go +model_brief_power_port_request.go +model_brief_power_port_template.go +model_brief_power_port_template_request.go +model_brief_provider.go +model_brief_provider_account.go +model_brief_provider_account_request.go +model_brief_provider_network.go +model_brief_provider_network_request.go +model_brief_provider_request.go +model_brief_rack.go +model_brief_rack_request.go +model_brief_rack_role.go +model_brief_rack_role_request.go +model_brief_rack_type.go +model_brief_rack_type_request.go +model_brief_rear_port_template.go +model_brief_rear_port_template_request.go +model_brief_region.go +model_brief_region_request.go +model_brief_rir.go +model_brief_rir_request.go +model_brief_role.go +model_brief_role_request.go +model_brief_site.go +model_brief_site_group.go +model_brief_site_group_request.go +model_brief_site_request.go +model_brief_tenant.go +model_brief_tenant_group.go +model_brief_tenant_group_request.go +model_brief_tenant_request.go +model_brief_tunnel.go +model_brief_tunnel_group.go +model_brief_tunnel_group_request.go +model_brief_tunnel_request.go +model_brief_user.go +model_brief_user_request.go +model_brief_virtual_chassis.go +model_brief_virtual_chassis_request.go +model_brief_virtual_circuit.go +model_brief_virtual_circuit_request.go +model_brief_virtual_circuit_type.go +model_brief_virtual_circuit_type_request.go +model_brief_virtual_machine.go +model_brief_virtual_machine_request.go +model_brief_vlan.go +model_brief_vlan_group.go +model_brief_vlan_group_request.go +model_brief_vlan_request.go +model_brief_vlan_translation_policy.go +model_brief_vlan_translation_policy_request.go +model_brief_vrf.go +model_brief_vrf_request.go +model_brief_wireless_lan_group.go +model_brief_wireless_lan_group_request.go model_cable.go +model_cable_length_unit.go +model_cable_length_unit_label.go +model_cable_length_unit_value.go model_cable_request.go +model_cable_request_length_unit.go +model_cable_status.go +model_cable_status_label.go +model_cable_status_value.go model_cable_termination.go model_cable_termination_request.go +model_cable_type.go model_circuit.go +model_circuit_circuit_termination.go +model_circuit_circuit_termination_request.go +model_circuit_distance_unit.go +model_circuit_distance_unit_label.go +model_circuit_distance_unit_value.go +model_circuit_group.go +model_circuit_group_assignment.go +model_circuit_group_assignment_request.go +model_circuit_group_request.go model_circuit_request.go +model_circuit_request_distance_unit.go +model_circuit_status.go +model_circuit_status_label.go +model_circuit_status_value.go model_circuit_termination.go model_circuit_termination_request.go model_circuit_type.go model_circuit_type_request.go +model_circuits_circuit_group_assignments_list_priority_parameter.go model_circuits_circuit_terminations_list_cable_end_parameter.go +model_circuits_circuits_list_distance_unit_parameter.go model_cluster.go model_cluster_group.go model_cluster_group_request.go model_cluster_request.go +model_cluster_status.go +model_cluster_status_label.go +model_cluster_status_value.go model_cluster_type.go model_cluster_type_request.go model_config_context.go @@ -858,15 +1275,13 @@ model_console_server_port_template.go model_console_server_port_template_request.go model_contact.go model_contact_assignment.go -model_contact_assignment_priority.go -model_contact_assignment_priority_label.go -model_contact_assignment_priority_value.go model_contact_assignment_request.go model_contact_group.go model_contact_group_request.go model_contact_request.go model_contact_role.go model_contact_role_request.go +model_core_object_changes_list_action_parameter.go model_custom_field.go model_custom_field_choice_set.go model_custom_field_choice_set_base_choices.go @@ -894,7 +1309,12 @@ model_dashboard_request.go model_data_file.go model_data_source.go model_data_source_request.go -model_data_source_request_type.go +model_data_source_status.go +model_data_source_status_label.go +model_data_source_status_value.go +model_data_source_type.go +model_data_source_type_label.go +model_data_source_type_value.go model_dcim_cables_list_length_unit_parameter.go model_dcim_console_port_templates_list_type_parameter.go model_dcim_console_ports_list_speed_parameter.go @@ -902,14 +1322,16 @@ model_dcim_device_types_list_airflow_parameter.go model_dcim_device_types_list_weight_unit_parameter.go model_dcim_devices_render_config_create_format_parameter.go model_dcim_interfaces_list_mode_parameter.go +model_dcim_module_types_list_airflow_parameter.go model_dcim_power_feeds_list_phase_parameter.go model_dcim_power_feeds_list_supply_parameter.go model_dcim_power_feeds_list_type_parameter.go model_dcim_power_outlet_templates_list_type_parameter.go model_dcim_power_port_templates_list_type_parameter.go +model_dcim_rack_types_list_outer_unit_parameter.go model_dcim_racks_elevation_retrieve_face_parameter.go model_dcim_racks_elevation_retrieve_render_parameter.go -model_dcim_racks_list_outer_unit_parameter.go +model_dcim_racks_list_airflow_parameter.go model_device.go model_device_airflow.go model_device_airflow_label.go @@ -921,23 +1343,34 @@ model_device_bay_template_request.go model_device_face.go model_device_face_label.go model_device_face_value.go -model_device_request.go model_device_role.go model_device_role_request.go model_device_status.go model_device_status_label.go model_device_status_value.go model_device_type.go +model_device_type_airflow.go model_device_type_request.go +model_device_type_request_airflow.go +model_device_type_request_subdevice_role.go +model_device_type_request_weight_unit.go +model_device_type_subdevice_role.go +model_device_type_subdevice_role_label.go +model_device_type_subdevice_role_value.go +model_device_type_weight_unit.go +model_device_type_weight_unit_label.go +model_device_type_weight_unit_value.go model_device_with_config_context.go model_device_with_config_context_request.go model_encryption.go model_end.go model_end_1.go +model_event.go model_event_rule.go model_event_rule_action_type.go model_event_rule_action_type_label.go model_event_rule_action_type_value.go +model_event_rule_event_types_inner.go model_event_rule_request.go model_export_template.go model_export_template_request.go @@ -946,11 +1379,9 @@ model_extras_custom_fields_list_filter_logic_parameter.go model_extras_custom_fields_list_ui_editable_parameter.go model_extras_custom_fields_list_ui_visible_parameter.go model_extras_custom_links_list_button_class_parameter.go -model_extras_object_changes_list_action_parameter.go model_fhrp_group.go model_fhrp_group_assignment.go model_fhrp_group_assignment_request.go -model_fhrp_group_protocol.go model_fhrp_group_request.go model_front_port.go model_front_port_rear_port.go @@ -961,6 +1392,7 @@ model_front_port_template_request.go model_front_port_type.go model_front_port_type_label.go model_front_port_type_value.go +model_generic_object.go model_generic_object_request.go model_group.go model_group_request.go @@ -1024,10 +1456,19 @@ model_inventory_item.go model_inventory_item_request.go model_inventory_item_role.go model_inventory_item_role_request.go +model_inventory_item_status.go +model_inventory_item_status_label.go +model_inventory_item_status_value.go model_inventory_item_template.go model_inventory_item_template_request.go model_ip_address.go model_ip_address_request.go +model_ip_address_role.go +model_ip_address_role_label.go +model_ip_address_role_value.go +model_ip_address_status.go +model_ip_address_status_label.go +model_ip_address_status_value.go model_ip_range.go model_ip_range_request.go model_ip_range_status.go @@ -1044,10 +1485,6 @@ model_ip_sec_proposal.go model_ip_sec_proposal_request.go model_ipam_service_templates_list_protocol_parameter.go model_job.go -model_job_request.go -model_job_status.go -model_job_status_label.go -model_job_status_value.go model_journal_entry.go model_journal_entry_kind.go model_journal_entry_kind_label.go @@ -1057,23 +1494,27 @@ model_l2_vpn.go model_l2_vpn_request.go model_l2_vpn_termination.go model_l2_vpn_termination_request.go -model_l2_vpn_type.go -model_l2_vpn_type_label.go -model_l2_vpn_type_value.go model_location.go model_location_request.go +model_location_status.go +model_location_status_label.go +model_location_status_value.go +model_mac_address.go +model_mac_address_request.go model_manufacturer.go model_manufacturer_request.go model_module.go model_module_bay.go -model_module_bay_nested_module.go -model_module_bay_nested_module_request.go model_module_bay_request.go model_module_bay_template.go model_module_bay_template_request.go model_module_request.go model_module_type.go +model_module_type_airflow.go +model_module_type_airflow_label.go +model_module_type_airflow_value.go model_module_type_request.go +model_module_type_request_airflow.go model_nested_contact_group.go model_nested_contact_group_request.go model_nested_device.go @@ -1083,8 +1524,13 @@ model_nested_interface.go model_nested_interface_request.go model_nested_interface_template.go model_nested_interface_template_request.go +model_nested_ip_address.go +model_nested_ip_address_request.go +model_nested_location.go +model_nested_location_request.go model_nested_module_bay.go model_nested_module_bay_request.go +model_nested_provider_account.go model_nested_region.go model_nested_region_request.go model_nested_site_group.go @@ -1096,11 +1542,18 @@ model_nested_tenant_group_request.go model_nested_user.go model_nested_virtual_machine.go model_nested_virtual_machine_request.go +model_nested_vlan.go +model_nested_vlan_request.go model_nested_vm_interface.go model_nested_vm_interface_request.go +model_nested_wireless_lan_group.go model_nested_wireless_lan_group_request.go model_nested_wireless_link.go model_nested_wireless_link_request.go +model_notification.go +model_notification_group.go +model_notification_group_request.go +model_notification_request.go model_object_change.go model_object_change_action.go model_object_change_action_label.go @@ -1114,6 +1567,8 @@ 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_group_assignment_list.go +model_paginated_circuit_group_list.go model_paginated_circuit_list.go model_paginated_circuit_termination_list.go model_paginated_circuit_type_list.go @@ -1165,11 +1620,14 @@ model_paginated_journal_entry_list.go model_paginated_l2_vpn_list.go model_paginated_l2_vpn_termination_list.go model_paginated_location_list.go +model_paginated_mac_address_list.go model_paginated_manufacturer_list.go model_paginated_module_bay_list.go model_paginated_module_bay_template_list.go model_paginated_module_list.go model_paginated_module_type_list.go +model_paginated_notification_group_list.go +model_paginated_notification_list.go model_paginated_object_change_list.go model_paginated_object_permission_list.go model_paginated_object_type_list.go @@ -1187,6 +1645,7 @@ model_paginated_provider_network_list.go model_paginated_rack_list.go model_paginated_rack_reservation_list.go model_paginated_rack_role_list.go +model_paginated_rack_type_list.go model_paginated_rack_unit_list.go model_paginated_rear_port_list.go model_paginated_rear_port_template_list.go @@ -1200,6 +1659,7 @@ model_paginated_service_list.go model_paginated_service_template_list.go model_paginated_site_group_list.go model_paginated_site_list.go +model_paginated_subscription_list.go model_paginated_tag_list.go model_paginated_tenant_group_list.go model_paginated_tenant_list.go @@ -1209,11 +1669,16 @@ model_paginated_tunnel_list.go model_paginated_tunnel_termination_list.go model_paginated_user_list.go model_paginated_virtual_chassis_list.go +model_paginated_virtual_circuit_list.go +model_paginated_virtual_circuit_termination_list.go +model_paginated_virtual_circuit_type_list.go model_paginated_virtual_device_context_list.go model_paginated_virtual_disk_list.go model_paginated_virtual_machine_with_config_context_list.go model_paginated_vlan_group_list.go model_paginated_vlan_list.go +model_paginated_vlan_translation_policy_list.go +model_paginated_vlan_translation_rule_list.go model_paginated_vm_interface_list.go model_paginated_vrf_list.go model_paginated_webhook_list.go @@ -1226,6 +1691,7 @@ model_patched_asn_range_request.go model_patched_asn_request.go model_patched_bookmark_request.go model_patched_cable_termination_request.go +model_patched_circuit_group_request.go model_patched_circuit_termination_request.go model_patched_circuit_type_request.go model_patched_cluster_group_request.go @@ -1244,13 +1710,15 @@ model_patched_fhrp_group_assignment_request.go model_patched_fhrp_group_request.go model_patched_group_request.go model_patched_image_attachment_request.go -model_patched_inventory_item_request.go model_patched_inventory_item_role_request.go model_patched_inventory_item_template_request.go model_patched_l2_vpn_termination_request.go +model_patched_mac_address_request.go model_patched_manufacturer_request.go model_patched_module_bay_request.go model_patched_module_bay_template_request.go +model_patched_notification_group_request.go +model_patched_notification_request.go model_patched_object_permission_request.go model_patched_platform_request.go model_patched_power_panel_request.go @@ -1263,29 +1731,32 @@ model_patched_rir_request.go model_patched_role_request.go model_patched_route_target_request.go model_patched_saved_filter_request.go +model_patched_script_input_request.go +model_patched_subscription_request.go model_patched_tag_request.go model_patched_tenant_request.go model_patched_token_request.go model_patched_tunnel_group_request.go model_patched_user_request.go +model_patched_virtual_circuit_type_request.go model_patched_virtual_disk_request.go model_patched_vlan_group_request.go +model_patched_vlan_translation_policy_request.go +model_patched_vlan_translation_rule_request.go model_patched_vrf_request.go model_patched_webhook_request.go model_patched_webhook_request_http_method.go model_patched_writable_aggregate_request.go model_patched_writable_cable_request.go -model_patched_writable_cable_request_length_unit.go -model_patched_writable_cable_request_status.go -model_patched_writable_cable_request_type.go +model_patched_writable_circuit_group_assignment_request.go +model_patched_writable_circuit_group_assignment_request_priority.go model_patched_writable_circuit_request.go -model_patched_writable_circuit_request_status.go model_patched_writable_cluster_request.go -model_patched_writable_cluster_request_status.go model_patched_writable_console_port_request.go model_patched_writable_console_port_request_speed.go model_patched_writable_console_port_request_type.go model_patched_writable_console_port_template_request.go +model_patched_writable_console_port_template_request_type.go model_patched_writable_console_server_port_request.go model_patched_writable_console_server_port_template_request.go model_patched_writable_contact_assignment_request.go @@ -1299,7 +1770,6 @@ model_patched_writable_custom_field_request_ui_editable.go model_patched_writable_custom_field_request_ui_visible.go model_patched_writable_data_source_request.go model_patched_writable_device_type_request.go -model_patched_writable_device_type_request_weight_unit.go model_patched_writable_device_with_config_context_request.go model_patched_writable_event_rule_request.go model_patched_writable_front_port_request.go @@ -1313,6 +1783,7 @@ model_patched_writable_ike_proposal_request_group.go model_patched_writable_interface_request.go model_patched_writable_interface_request_mode.go model_patched_writable_interface_template_request.go +model_patched_writable_inventory_item_request.go model_patched_writable_ip_address_request.go model_patched_writable_ip_address_request_role.go model_patched_writable_ip_address_request_status.go @@ -1325,9 +1796,7 @@ model_patched_writable_ip_sec_proposal_request.go model_patched_writable_journal_entry_request.go model_patched_writable_l2_vpn_request.go model_patched_writable_location_request.go -model_patched_writable_location_request_status.go model_patched_writable_module_request.go -model_patched_writable_module_request_status.go model_patched_writable_module_type_request.go model_patched_writable_power_feed_request.go model_patched_writable_power_feed_request_phase.go @@ -1346,10 +1815,13 @@ model_patched_writable_power_port_template_request_type.go model_patched_writable_prefix_request.go model_patched_writable_prefix_request_status.go model_patched_writable_rack_request.go +model_patched_writable_rack_request_airflow.go +model_patched_writable_rack_request_form_factor.go model_patched_writable_rack_request_outer_unit.go model_patched_writable_rack_request_status.go -model_patched_writable_rack_request_type.go model_patched_writable_rack_request_width.go +model_patched_writable_rack_type_request.go +model_patched_writable_rack_type_request_form_factor.go model_patched_writable_rear_port_request.go model_patched_writable_rear_port_template_request.go model_patched_writable_region_request.go @@ -1365,6 +1837,8 @@ model_patched_writable_tunnel_request_status.go model_patched_writable_tunnel_termination_request.go model_patched_writable_tunnel_termination_request_role.go model_patched_writable_virtual_chassis_request.go +model_patched_writable_virtual_circuit_request.go +model_patched_writable_virtual_circuit_termination_request.go model_patched_writable_virtual_device_context_request.go model_patched_writable_virtual_device_context_request_status.go model_patched_writable_virtual_machine_with_config_context_request.go @@ -1393,17 +1867,20 @@ model_power_outlet_feed_leg_label.go model_power_outlet_feed_leg_value.go model_power_outlet_request.go model_power_outlet_request_feed_leg.go -model_power_outlet_request_type.go model_power_outlet_template.go model_power_outlet_template_request.go model_power_outlet_type.go model_power_outlet_type_label.go +model_power_outlet_type_value.go model_power_panel.go model_power_panel_request.go model_power_port.go model_power_port_request.go model_power_port_template.go model_power_port_template_request.go +model_power_port_type.go +model_power_port_type_label.go +model_power_port_type_value.go model_prefix.go model_prefix_request.go model_prefix_status.go @@ -1415,17 +1892,34 @@ model_provider_account_request.go model_provider_network.go model_provider_network_request.go model_provider_request.go +model_q_in_q_role.go model_rack.go +model_rack_airflow.go +model_rack_airflow_label.go +model_rack_airflow_value.go model_rack_face.go model_rack_face_1.go +model_rack_form_factor.go +model_rack_form_factor_label.go +model_rack_form_factor_value.go +model_rack_outer_unit.go +model_rack_outer_unit_label.go +model_rack_outer_unit_value.go model_rack_request.go model_rack_reservation.go model_rack_reservation_request.go model_rack_role.go model_rack_role_request.go +model_rack_status.go +model_rack_status_label.go +model_rack_type.go +model_rack_type_request.go model_rack_unit.go model_rack_unit_face.go model_rack_unit_face_value.go +model_rack_width.go +model_rack_width_label.go +model_rack_width_value.go model_rear_port.go model_rear_port_request.go model_rear_port_template.go @@ -1443,6 +1937,7 @@ model_saved_filter_request.go model_schema_retrieve_format_parameter.go model_schema_retrieve_lang_parameter.go model_script.go +model_script_input_request.go model_service.go model_service_protocol.go model_service_protocol_label.go @@ -1453,23 +1948,28 @@ model_site.go model_site_group.go model_site_group_request.go model_site_request.go +model_subscription.go +model_subscription_request.go model_tag.go model_tag_request.go -model_tenancy_contact_assignments_list_priority_parameter.go model_tenant.go model_tenant_group.go model_tenant_group_request.go model_tenant_request.go -model_termination.go -model_termination_1.go +model_termination_side.go +model_termination_side_1.go model_token.go model_token_provision.go model_token_provision_request.go model_token_request.go model_tunnel.go +model_tunnel_encapsulation.go +model_tunnel_encapsulation_label.go model_tunnel_group.go model_tunnel_group_request.go model_tunnel_request.go +model_tunnel_status.go +model_tunnel_status_label.go model_tunnel_termination.go model_tunnel_termination_request.go model_tunnel_termination_role.go @@ -1478,22 +1978,31 @@ model_user.go model_user_request.go model_virtual_chassis.go model_virtual_chassis_request.go +model_virtual_circuit.go +model_virtual_circuit_request.go +model_virtual_circuit_termination.go +model_virtual_circuit_termination_request.go +model_virtual_circuit_type.go +model_virtual_circuit_type_request.go model_virtual_device_context.go model_virtual_device_context_request.go model_virtual_device_context_status.go model_virtual_device_context_status_label.go model_virtual_disk.go model_virtual_disk_request.go -model_virtual_machine.go -model_virtual_machine_request.go model_virtual_machine_with_config_context.go model_virtual_machine_with_config_context_request.go -model_virtual_machine_with_config_context_status.go -model_virtual_machine_with_config_context_status_label.go model_vlan.go model_vlan_group.go model_vlan_group_request.go +model_vlan_qinq_role.go +model_vlan_qinq_role_label.go +model_vlan_qinq_role_value.go model_vlan_request.go +model_vlan_translation_policy.go +model_vlan_translation_policy_request.go +model_vlan_translation_rule.go +model_vlan_translation_rule_request.go model_vm_interface.go model_vm_interface_request.go model_vrf.go @@ -1516,11 +2025,10 @@ model_wireless_lan_status_label.go model_wireless_lan_status_value.go model_wireless_link.go model_wireless_link_request.go -model_wireless_link_status.go -model_wireless_link_status_label.go model_wireless_role.go model_writable_aggregate_request.go model_writable_cable_request.go +model_writable_circuit_group_assignment_request.go model_writable_circuit_request.go model_writable_cluster_request.go model_writable_console_port_request.go @@ -1541,6 +2049,7 @@ model_writable_ike_policy_request.go model_writable_ike_proposal_request.go model_writable_interface_request.go model_writable_interface_template_request.go +model_writable_inventory_item_request.go model_writable_ip_address_request.go model_writable_ip_range_request.go model_writable_ip_sec_policy_request.go @@ -1558,6 +2067,7 @@ model_writable_power_port_request.go model_writable_power_port_template_request.go model_writable_prefix_request.go model_writable_rack_request.go +model_writable_rack_type_request.go model_writable_rear_port_request.go model_writable_rear_port_template_request.go model_writable_region_request.go @@ -1569,6 +2079,8 @@ model_writable_tenant_group_request.go model_writable_tunnel_request.go model_writable_tunnel_termination_request.go model_writable_virtual_chassis_request.go +model_writable_virtual_circuit_request.go +model_writable_virtual_circuit_termination_request.go model_writable_virtual_device_context_request.go model_writable_virtual_machine_with_config_context_request.go model_writable_vlan_request.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 93c8ddab9f..b23eb27529 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0 +7.11.0 diff --git a/.openapi-generator/config.yaml b/.openapi-generator/config.yaml index afcf6ce2ba..ffbbbdbca7 100644 --- a/.openapi-generator/config.yaml +++ b/.openapi-generator/config.yaml @@ -7,12 +7,14 @@ gitRepoId: go-netbox/v4 packageName: netbox globalProperty: - apiDocs: false - modelDocs: false - apiTests: false - modelTests: false + apiDocs: "false" + modelDocs: "false" + apiTests: "false" + modelTests: "false" additionalProperties: disallowAdditionalPropertiesIfNotPresent: "false" - packageVersion: "3" - enumClassPrefix: true + generateInterfaces: "true" + packageVersion: "4" + enumClassPrefix: "true" + useDefaultValuesForRequiredVars: "true" diff --git a/AUTHORS b/AUTHORS index e2b9b5aea6..fc212e5e09 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,5 +1,9 @@ Maintainers ---------- +Antoine Lecompte + +Previous Maintainers +---------- Annika Wickert Keiichi kobayashi Víctor Díaz diff --git a/Makefile b/Makefile index cb3f50eada..f16c796c1b 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ define set_env sed $(if $(IS_DARWIN),-i "",-i) -e "s/^#*\($(1)=\).*/$(if $(2),,#)\1$(2)/" .env endef -EXEC := docker compose exec main + # Environment recipes .PHONY: default diff --git a/api/netbox_docker_version b/api/netbox_docker_version index dedcc7d433..fd2a01863f 100644 --- a/api/netbox_docker_version +++ b/api/netbox_docker_version @@ -1 +1 @@ -2.9.1 +3.1.0 diff --git a/api/netbox_version b/api/netbox_version index c4e41f9459..af8c8ec7c1 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -4.0.3 +4.2.2 diff --git a/api/openapi.yaml b/api/openapi.yaml index 75765d6508..2f7c741393 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,77 +1,30 @@ openapi: 3.0.3 info: title: NetBox REST API - version: 4.0.3 (4.0) + version: 4.2.2 (4.2) license: name: Apache v2 License paths: - /api/circuits/circuit-terminations/: + /api/circuits/circuit-group-assignments/: get: - operationId: circuits_circuit_terminations_list - description: Get a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_list + description: Get a list of Circuit group assignment objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n + name: circuit schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - - in: query - name: cabled - schema: - type: boolean - in: query name: circuit_id schema: type: array items: type: integer - description: Circuit - explode: true - style: form - - in: query - name: circuit_id__n - schema: - type: array - items: - type: integer - description: Circuit + format: int32 explode: true style: form - in: query @@ -143,87 +96,39 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + name: group schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__nie + name: group__n schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__niew + name: group_id schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query @@ -354,32 +259,7 @@ paths: schema: type: integer - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: occupied - schema: - type: boolean - - 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: port_speed + name: member_id schema: type: array items: @@ -388,11 +268,11 @@ paths: explode: true style: form - in: query - name: port_speed__empty + name: member_id__empty schema: type: boolean - in: query - name: port_speed__gt + name: member_id__gt schema: type: array items: @@ -401,7 +281,7 @@ paths: explode: true style: form - in: query - name: port_speed__gte + name: member_id__gte schema: type: array items: @@ -410,7 +290,7 @@ paths: explode: true style: form - in: query - name: port_speed__lt + name: member_id__lt schema: type: array items: @@ -419,7 +299,7 @@ paths: explode: true style: form - in: query - name: port_speed__lte + name: member_id__lte schema: type: array items: @@ -428,7 +308,7 @@ paths: explode: true style: form - in: query - name: port_speed__n + name: member_id__n schema: type: array items: @@ -437,105 +317,54 @@ paths: explode: true style: form - in: query - name: pp_info - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__empty - schema: - type: boolean - - in: query - name: pp_info__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__isw + name: member_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: pp_info__n + name: member_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: pp_info__nic + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nie + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__niew + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: pp_info__nisw + name: priority schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + nullable: true + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query name: provider schema: type: array items: type: string - description: Provider (slug) - explode: true - style: form - - in: query - name: provider__n - schema: - type: array - items: - type: string - description: Provider (slug) explode: true style: form - in: query @@ -544,36 +373,7 @@ paths: type: array items: type: integer - description: Provider (ID) - explode: true - style: form - - in: query - name: provider_id__n - schema: - type: array - items: - type: integer - description: Provider (ID) - explode: true - style: form - - in: query - name: provider_network_id - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) - explode: true - style: form - - in: query - name: provider_network_id__n - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) + format: int32 explode: true style: form - in: query @@ -581,44 +381,6 @@ paths: schema: type: string description: Search - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - in: query name: tag schema: @@ -635,86 +397,21 @@ paths: type: string explode: true style: form - - in: query - name: term_side - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - - in: query - name: term_side__n - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - in: query name: updated_by_request schema: type: string format: uuid - in: query - name: upstream_speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__empty - schema: - type: boolean - - in: query - name: upstream_speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lte + name: virtual_circuit schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: upstream_speed__n + name: virtual_circuit_id schema: type: array items: @@ -722,90 +419,6 @@ paths: format: int32 explode: true style: form - - in: query - name: xconnect_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__empty - schema: - type: boolean - - in: query - name: xconnect_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form tags: - circuits security: @@ -816,21 +429,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTerminationList' + $ref: '#/components/schemas/PaginatedCircuitGroupAssignmentList' description: '' post: - operationId: circuits_circuit_terminations_create - description: Post a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_create + description: Post a list of Circuit group assignment objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -840,11 +453,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_bulk_update - description: Put a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_update + description: Put a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -853,12 +466,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -870,11 +483,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_bulk_partial_update - description: Patch a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_partial_update + description: Patch a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -883,12 +496,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -900,11 +513,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_bulk_destroy - description: Delete a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_destroy + description: Delete a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -913,12 +526,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -926,16 +539,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/: + /api/circuits/circuit-group-assignments/{id}/: get: - operationId: circuits_circuit_terminations_retrieve - description: Get a circuit termination object. + operationId: circuits_circuit_group_assignments_retrieve + description: Get a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -947,17 +560,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_update - description: Put a circuit termination object. + operationId: circuits_circuit_group_assignments_update + description: Put a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -965,10 +578,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -978,17 +591,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_partial_update - description: Patch a circuit termination object. + operationId: circuits_circuit_group_assignments_partial_update + description: Patch a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -996,10 +609,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1008,17 +621,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_destroy - description: Delete a circuit termination object. + operationId: circuits_circuit_group_assignments_destroy + description: Delete a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -1028,118 +641,11 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/paths/: - get: - operationId: circuits_circuit_terminations_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - /api/circuits/circuit-types/: + /api/circuits/circuit-groups/: get: - operationId: circuits_circuit_types_list - description: Get a list of circuit type objects. + operationId: circuits_circuit_groups_list + description: Get a list of circuit group objects. parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: created schema: @@ -1625,6 +1131,76 @@ 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: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: updated_by_request schema: @@ -1640,21 +1216,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTypeList' + $ref: '#/components/schemas/PaginatedCircuitGroupList' description: '' post: - operationId: circuits_circuit_types_create - description: Post a list of circuit type objects. + operationId: circuits_circuit_groups_create + description: Post a list of circuit group objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1664,11 +1240,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_bulk_update - description: Put a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_update + description: Put a list of circuit group objects. tags: - circuits requestBody: @@ -1677,12 +1253,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1694,11 +1270,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_bulk_partial_update - description: Patch a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_partial_update + description: Patch a list of circuit group objects. tags: - circuits requestBody: @@ -1707,12 +1283,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1724,11 +1300,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_bulk_destroy - description: Delete a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_destroy + description: Delete a list of circuit group objects. tags: - circuits requestBody: @@ -1737,12 +1313,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1750,16 +1326,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-types/{id}/: + /api/circuits/circuit-groups/{id}/: get: - operationId: circuits_circuit_types_retrieve - description: Get a circuit type object. + operationId: circuits_circuit_groups_retrieve + description: Get a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1771,17 +1347,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_update - description: Put a circuit type object. + operationId: circuits_circuit_groups_update + description: Put a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1789,10 +1365,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1802,17 +1378,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_partial_update - description: Patch a circuit type object. + operationId: circuits_circuit_groups_partial_update + description: Patch a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1820,10 +1396,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1832,17 +1408,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_destroy - description: Delete a circuit type object. + operationId: circuits_circuit_groups_destroy + description: Delete a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1852,245 +1428,277 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/: + /api/circuits/circuit-terminations/: get: - operationId: circuits_circuits_list - description: Get a list of circuit objects. + operationId: circuits_circuit_terminations_list + description: Get a list of circuit termination objects. parameters: - in: query - name: cid + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: - type: string + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: cid__empty + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled schema: type: boolean - in: query - name: cid__ic + name: circuit_id schema: type: array items: - type: string + type: integer + description: Circuit explode: true style: form - in: query - name: cid__ie + name: circuit_id__n schema: type: array items: - type: string + type: integer + description: Circuit explode: true style: form - in: query - name: cid__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: cid__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: cid__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: cid__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: cid__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: cid__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: cid__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: commit_rate + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: commit_rate__empty + name: description__empty schema: type: boolean - in: query - name: commit_rate__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: commit_rate__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: commit_rate__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: commit_rate__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: commit_rate__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: contact + name: description__nic schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: description__nie schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: description__niew schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: description__nisw schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: id schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: last_updated schema: type: array items: @@ -2099,7 +1707,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__empty schema: type: array items: @@ -2108,7 +1716,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__gt schema: type: array items: @@ -2117,48 +1725,49 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + 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: description__isw + name: location schema: type: array items: @@ -2166,7 +1775,7 @@ paths: explode: true style: form - in: query - name: description__n + name: location__n schema: type: array items: @@ -2174,7 +1783,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: location_id schema: type: array items: @@ -2182,7 +1791,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: location_id__n schema: type: array items: @@ -2190,23 +1799,32 @@ paths: explode: true style: form - in: query - name: description__niew + name: mark_connected schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nisw + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: id + name: occupied + schema: + type: boolean + - 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: port_speed schema: type: array items: @@ -2215,11 +1833,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: port_speed__empty schema: type: boolean - in: query - name: id__gt + name: port_speed__gt schema: type: array items: @@ -2228,7 +1846,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: port_speed__gte schema: type: array items: @@ -2237,7 +1855,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: port_speed__lt schema: type: array items: @@ -2246,7 +1864,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: port_speed__lte schema: type: array items: @@ -2255,7 +1873,7 @@ paths: explode: true style: form - in: query - name: id__n + name: port_speed__n schema: type: array items: @@ -2264,151 +1882,91 @@ paths: explode: true style: form - in: query - name: install_date + name: pp_info schema: type: array items: type: string - format: date explode: true style: form - in: query - name: install_date__empty + name: pp_info__empty schema: type: boolean - in: query - name: install_date__gt + name: pp_info__ic schema: type: array items: type: string - format: date explode: true style: form - in: query - name: install_date__gte + name: pp_info__ie schema: type: array items: type: string - format: date explode: true style: form - in: query - name: install_date__lt + name: pp_info__iew schema: type: array items: type: string - format: date explode: true style: form - in: query - name: install_date__lte + name: pp_info__isw schema: type: array items: type: string - format: date explode: true style: form - in: query - name: install_date__n + name: pp_info__n schema: type: array items: type: string - format: date explode: true style: form - in: query - name: last_updated + name: pp_info__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: pp_info__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: pp_info__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: pp_info__nisw 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 - - 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: provider + name: provider schema: type: array items: @@ -2425,44 +1983,6 @@ paths: description: Provider (slug) explode: true style: form - - in: query - name: provider_account - schema: - type: array - items: - type: string - title: Account ID - description: Provider account (account) - explode: true - style: form - - in: query - name: provider_account__n - schema: - type: array - items: - type: string - title: Account ID - description: Provider account (account) - explode: true - style: form - - in: query - name: provider_account_id - schema: - type: array - items: - type: integer - description: Provider account (ID) - explode: true - style: form - - in: query - name: provider_account_id__n - schema: - type: array - items: - type: integer - description: Provider account (ID) - explode: true - style: form - in: query name: provider_id schema: @@ -2487,7 +2007,7 @@ paths: type: array items: type: integer - description: Provider network (ID) + description: ProviderNetwork (ID) explode: true style: form - in: query @@ -2496,7 +2016,7 @@ paths: type: array items: type: integer - description: Provider network (ID) + description: ProviderNetwork (ID) explode: true style: form - in: query @@ -2509,8 +2029,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -2518,8 +2037,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -2527,8 +2045,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -2536,8 +2053,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -2563,8 +2079,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -2572,8 +2087,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -2581,8 +2095,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -2590,8 +2103,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -2613,252 +2125,246 @@ paths: explode: true style: form - in: query - name: status + name: tag schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: status__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: tag + name: term_side + schema: + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination side + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' + - in: query + name: termination_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tenant + name: termination_id__gte schema: type: array items: - type: string - description: Tenant (slug) + type: integer + format: int32 explode: true style: form - in: query - name: tenant__n + name: termination_id__lt schema: type: array items: - type: string - description: Tenant (slug) + type: integer + format: int32 explode: true style: form - in: query - name: tenant_group + name: termination_id__lte schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group__n + name: termination_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: termination_type + schema: + type: string + - in: query + name: termination_type__n + schema: + type: string + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: upstream_speed schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: upstream_speed__empty + schema: + type: boolean + - in: query + name: upstream_speed__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: upstream_speed__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: upstream_speed__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id + name: upstream_speed__lte schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id__n + name: upstream_speed__n schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_date + name: xconnect_id schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__empty + name: xconnect_id__empty schema: type: boolean - in: query - name: termination_date__gt + name: xconnect_id__ic schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__gte + name: xconnect_id__ie schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lt + name: xconnect_id__iew schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lte + name: xconnect_id__isw schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__n + name: xconnect_id__n schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_z_id - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: termination_z_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: type + name: xconnect_id__nic schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type__n + name: xconnect_id__nie schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type_id + name: xconnect_id__niew schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - in: query - name: type_id__n + name: xconnect_id__nisw schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - circuits security: @@ -2869,21 +2375,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitList' + $ref: '#/components/schemas/PaginatedCircuitTerminationList' description: '' post: - operationId: circuits_circuits_create - description: Post a list of circuit objects. + operationId: circuits_circuit_terminations_create + description: Post a list of circuit termination objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2893,11 +2399,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_bulk_update - description: Put a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_update + description: Put a list of circuit termination objects. tags: - circuits requestBody: @@ -2906,12 +2412,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2923,11 +2429,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_bulk_partial_update - description: Patch a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_partial_update + description: Patch a list of circuit termination objects. tags: - circuits requestBody: @@ -2936,12 +2442,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2953,11 +2459,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_bulk_destroy - description: Delete a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_destroy + description: Delete a list of circuit termination objects. tags: - circuits requestBody: @@ -2966,12 +2472,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2979,16 +2485,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/{id}/: + /api/circuits/circuit-terminations/{id}/: get: - operationId: circuits_circuits_retrieve - description: Get a circuit object. + operationId: circuits_circuit_terminations_retrieve + description: Get a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3000,17 +2506,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_update - description: Put a circuit object. + operationId: circuits_circuit_terminations_update + description: Put a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3018,10 +2524,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -3031,17 +2537,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_partial_update - description: Patch a circuit object. + operationId: circuits_circuit_terminations_partial_update + description: Patch a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3049,10 +2555,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3061,17 +2567,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_destroy - description: Delete a circuit object. + operationId: circuits_circuit_terminations_destroy + description: Delete a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3081,13 +2587,36 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/: + /api/circuits/circuit-terminations/{id}/paths/: get: - operationId: circuits_provider_accounts_list - description: Get a list of provider account objects. + operationId: circuits_circuit_terminations_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this circuit termination. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CircuitTermination' + description: '' + /api/circuits/circuit-types/: + get: + operationId: circuits_circuit_types_list + description: Get a list of circuit type objects. parameters: - in: query - name: account + name: color schema: type: array items: @@ -3095,11 +2624,11 @@ paths: explode: true style: form - in: query - name: account__empty + name: color__empty schema: type: boolean - in: query - name: account__ic + name: color__ic schema: type: array items: @@ -3107,7 +2636,7 @@ paths: explode: true style: form - in: query - name: account__ie + name: color__ie schema: type: array items: @@ -3115,7 +2644,7 @@ paths: explode: true style: form - in: query - name: account__iew + name: color__iew schema: type: array items: @@ -3123,7 +2652,7 @@ paths: explode: true style: form - in: query - name: account__isw + name: color__isw schema: type: array items: @@ -3131,7 +2660,7 @@ paths: explode: true style: form - in: query - name: account__n + name: color__n schema: type: array items: @@ -3139,7 +2668,7 @@ paths: explode: true style: form - in: query - name: account__nic + name: color__nic schema: type: array items: @@ -3147,7 +2676,7 @@ paths: explode: true style: form - in: query - name: account__nie + name: color__nie schema: type: array items: @@ -3155,7 +2684,7 @@ paths: explode: true style: form - in: query - name: account__niew + name: color__niew schema: type: array items: @@ -3163,7 +2692,7 @@ paths: explode: true style: form - in: query - name: account__nisw + name: color__nisw schema: type: array items: @@ -3551,46 +3080,94 @@ paths: schema: type: string - in: query - name: provider + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: slug__ie schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: slug__iew schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -3622,21 +3199,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderAccountList' + $ref: '#/components/schemas/PaginatedCircuitTypeList' description: '' post: - operationId: circuits_provider_accounts_create - description: Post a list of provider account objects. + operationId: circuits_circuit_types_create + description: Post a list of circuit type objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3646,11 +3223,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_bulk_update - description: Put a list of provider account objects. + operationId: circuits_circuit_types_bulk_update + description: Put a list of circuit type objects. tags: - circuits requestBody: @@ -3659,12 +3236,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3676,11 +3253,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_bulk_partial_update - description: Patch a list of provider account objects. + operationId: circuits_circuit_types_bulk_partial_update + description: Patch a list of circuit type objects. tags: - circuits requestBody: @@ -3689,12 +3266,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3706,11 +3283,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_bulk_destroy - description: Delete a list of provider account objects. + operationId: circuits_circuit_types_bulk_destroy + description: Delete a list of circuit type objects. tags: - circuits requestBody: @@ -3719,12 +3296,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3732,16 +3309,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/{id}/: + /api/circuits/circuit-types/{id}/: get: - operationId: circuits_provider_accounts_retrieve - description: Get a provider account object. + operationId: circuits_circuit_types_retrieve + description: Get a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3753,17 +3330,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_update - description: Put a provider account object. + operationId: circuits_circuit_types_update + description: Put a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3771,10 +3348,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3784,17 +3361,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_partial_update - description: Patch a provider account object. + operationId: circuits_circuit_types_partial_update + description: Patch a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3802,10 +3379,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3814,17 +3391,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_destroy - description: Delete a provider account object. + operationId: circuits_circuit_types_destroy + description: Delete a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3834,11 +3411,205 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/: + /api/circuits/circuits/: get: - operationId: circuits_provider_networks_list - description: Get a list of provider network objects. + operationId: circuits_circuits_list + description: Get a list of circuit objects. parameters: + - in: query + name: cid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__empty + schema: + type: boolean + - in: query + name: cid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: commit_rate + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__empty + schema: + type: boolean + - in: query + name: commit_rate__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -3991,6 +3762,82 @@ paths: type: string explode: true style: form + - in: query + name: distance + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__empty + schema: + type: boolean + - in: query + name: distance__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance_unit + schema: + type: string + x-spec-enum-id: 53542e7902f946af + nullable: true + enum: + - ft + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' - in: query name: id schema: @@ -4049,6 +3896,64 @@ paths: format: int32 explode: true style: form + - in: query + name: install_date + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__empty + schema: + type: boolean + - in: query + name: install_date__gt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__gte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form - in: query name: last_updated schema: @@ -4123,52 +4028,117 @@ paths: schema: type: string format: uuid + - 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: name + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__empty + name: provider__n schema: - type: boolean + type: array + items: + type: string + description: Provider (slug) + explode: true + style: form - in: query - name: name__ic + name: provider_account schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__ie + name: provider_account__n schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__iew + name: provider_account_id schema: type: array items: - type: string + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: name__isw + name: provider_account_id__n schema: type: array items: - type: string + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: name__n + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_network_id + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: provider_network_id__n + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -4176,7 +4146,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: region__n schema: type: array items: @@ -4184,7 +4154,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: region_id schema: type: array items: @@ -4192,7 +4162,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: region_id__n schema: type: array items: @@ -4200,148 +4170,165 @@ paths: explode: true style: form - in: query - name: name__nisw + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: site__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: provider + name: site_group__n schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: site_group_id schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: site_group_id__n schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: site_id schema: type: array items: type: integer - description: Provider (ID) + description: Site (ID) explode: true style: form - in: query - name: q + name: site_id__n schema: - type: string - description: Search + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query - name: service_id + name: status schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__empty + name: status__empty schema: type: boolean - in: query - name: service_id__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query @@ -4360,6 +4347,210 @@ 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: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: termination_a_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_a_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_date + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__empty + schema: + type: boolean + - in: query + name: termination_date__gt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__gte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_z_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_z_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -4375,21 +4566,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderNetworkList' + $ref: '#/components/schemas/PaginatedCircuitList' description: '' post: - operationId: circuits_provider_networks_create - description: Post a list of provider network objects. + operationId: circuits_circuits_create + description: Post a list of circuit objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4399,11 +4590,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_bulk_update - description: Put a list of provider network objects. + operationId: circuits_circuits_bulk_update + description: Put a list of circuit objects. tags: - circuits requestBody: @@ -4412,12 +4603,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4429,11 +4620,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_bulk_partial_update - description: Patch a list of provider network objects. + operationId: circuits_circuits_bulk_partial_update + description: Patch a list of circuit objects. tags: - circuits requestBody: @@ -4442,12 +4633,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4459,11 +4650,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_bulk_destroy - description: Delete a list of provider network objects. + operationId: circuits_circuits_bulk_destroy + description: Delete a list of circuit objects. tags: - circuits requestBody: @@ -4472,12 +4663,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4485,16 +4676,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/{id}/: + /api/circuits/circuits/{id}/: get: - operationId: circuits_provider_networks_retrieve - description: Get a provider network object. + operationId: circuits_circuits_retrieve + description: Get a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4506,17 +4697,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_update - description: Put a provider network object. + operationId: circuits_circuits_update + description: Put a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4524,10 +4715,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4537,17 +4728,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_partial_update - description: Patch a provider network object. + operationId: circuits_circuits_partial_update + description: Patch a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4555,10 +4746,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -4567,17 +4758,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_destroy - description: Delete a provider network object. + operationId: circuits_circuits_destroy + description: Delete a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4587,105 +4778,93 @@ paths: responses: '204': description: No response body - /api/circuits/providers/: + /api/circuits/provider-accounts/: get: - operationId: circuits_providers_list - description: Get a list of provider objects. + operationId: circuits_provider_accounts_list + description: Get a list of provider account objects. parameters: - in: query - name: asn + name: account schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn__n + name: account__empty + schema: + type: boolean + - in: query + name: account__ic schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn_id + name: account__ie schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: asn_id__n + name: account__iew schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: contact + name: account__isw schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: account__n schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: account__nic schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: account__nie schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: account__niew schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: account__nisw schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query @@ -5069,204 +5248,48 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: provider schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: region__n + name: provider__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: region_id + name: provider_id schema: type: array items: type: integer - description: Region (ID) + description: Provider (ID) explode: true style: form - in: query - name: region_id__n + name: provider_id__n schema: type: array items: type: integer - description: Region (ID) + description: Provider (ID) explode: true style: form - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - 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: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag + name: q + schema: + type: string + description: Search + - in: query + name: tag schema: type: array items: @@ -5296,21 +5319,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderList' + $ref: '#/components/schemas/PaginatedProviderAccountList' description: '' post: - operationId: circuits_providers_create - description: Post a list of provider objects. + operationId: circuits_provider_accounts_create + description: Post a list of provider account objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5320,11 +5343,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_bulk_update - description: Put a list of provider objects. + operationId: circuits_provider_accounts_bulk_update + description: Put a list of provider account objects. tags: - circuits requestBody: @@ -5333,12 +5356,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5350,11 +5373,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_bulk_partial_update - description: Patch a list of provider objects. + operationId: circuits_provider_accounts_bulk_partial_update + description: Patch a list of provider account objects. tags: - circuits requestBody: @@ -5363,12 +5386,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5380,11 +5403,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_bulk_destroy - description: Delete a list of provider objects. + operationId: circuits_provider_accounts_bulk_destroy + description: Delete a list of provider account objects. tags: - circuits requestBody: @@ -5393,12 +5416,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5406,16 +5429,16 @@ paths: responses: '204': description: No response body - /api/circuits/providers/{id}/: + /api/circuits/provider-accounts/{id}/: get: - operationId: circuits_providers_retrieve - description: Get a provider object. + operationId: circuits_provider_accounts_retrieve + description: Get a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5427,17 +5450,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_update - description: Put a provider object. + operationId: circuits_provider_accounts_update + description: Put a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5445,10 +5468,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5458,17 +5481,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_partial_update - description: Patch a provider object. + operationId: circuits_provider_accounts_partial_update + description: Patch a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5476,10 +5499,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -5488,17 +5511,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_destroy - description: Delete a provider object. + operationId: circuits_provider_accounts_destroy + description: Delete a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5508,10 +5531,10 @@ paths: responses: '204': description: No response body - /api/core/data-files/: + /api/circuits/provider-networks/: get: - operationId: core_data_files_list - description: Get a list of data file objects. + operationId: circuits_provider_networks_list + description: Get a list of provider network objects. parameters: - in: query name: created @@ -5582,7 +5605,7 @@ paths: type: string format: uuid - in: query - name: hash + name: description schema: type: array items: @@ -5590,11 +5613,11 @@ paths: explode: true style: form - in: query - name: hash__empty + name: description__empty schema: type: boolean - in: query - name: hash__ic + name: description__ic schema: type: array items: @@ -5602,7 +5625,7 @@ paths: explode: true style: form - in: query - name: hash__ie + name: description__ie schema: type: array items: @@ -5610,7 +5633,7 @@ paths: explode: true style: form - in: query - name: hash__iew + name: description__iew schema: type: array items: @@ -5618,7 +5641,7 @@ paths: explode: true style: form - in: query - name: hash__isw + name: description__isw schema: type: array items: @@ -5626,7 +5649,7 @@ paths: explode: true style: form - in: query - name: hash__n + name: description__n schema: type: array items: @@ -5634,7 +5657,7 @@ paths: explode: true style: form - in: query - name: hash__nic + name: description__nic schema: type: array items: @@ -5642,7 +5665,7 @@ paths: explode: true style: form - in: query - name: hash__nie + name: description__nie schema: type: array items: @@ -5650,7 +5673,7 @@ paths: explode: true style: form - in: query - name: hash__niew + name: description__niew schema: type: array items: @@ -5658,7 +5681,7 @@ paths: explode: true style: form - in: query - name: hash__nisw + name: description__nisw schema: type: array items: @@ -5797,20 +5820,20 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: name schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: - type: string + type: boolean - in: query - name: path + name: name__ic schema: type: array items: @@ -5818,11 +5841,15 @@ paths: explode: true style: form - in: query - name: path__empty + name: name__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: path__ic + name: name__iew schema: type: array items: @@ -5830,7 +5857,7 @@ paths: explode: true style: form - in: query - name: path__ie + name: name__isw schema: type: array items: @@ -5838,7 +5865,7 @@ paths: explode: true style: form - in: query - name: path__iew + name: name__n schema: type: array items: @@ -5846,7 +5873,7 @@ paths: explode: true style: form - in: query - name: path__isw + name: name__nic schema: type: array items: @@ -5854,7 +5881,7 @@ paths: explode: true style: form - in: query - name: path__n + name: name__nie schema: type: array items: @@ -5862,7 +5889,7 @@ paths: explode: true style: form - in: query - name: path__nic + name: name__niew schema: type: array items: @@ -5870,125 +5897,164 @@ paths: explode: true style: form - in: query - name: path__nie + 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: path__niew + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: path__nisw + name: provider__n schema: type: array items: type: string + description: Provider (slug) + explode: true + style: form + - in: query + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) explode: true style: form - in: query name: q schema: type: string + description: Search - in: query - name: size + name: service_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty + name: service_id__empty schema: type: boolean - in: query - name: size__gt + name: service_id__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: service_id__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: service_id__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: service_id__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: service_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: source + name: service_id__nic schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source__n + name: service_id__nie schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source_id + name: service_id__niew schema: type: array items: - type: integer - description: Data source (ID) + type: string explode: true style: form - in: query - name: source_id__n + name: service_id__nisw schema: type: array items: - type: integer - description: Data source (ID) + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -5997,7 +6063,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6006,21 +6072,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataFileList' + $ref: '#/components/schemas/PaginatedProviderNetworkList' description: '' - /api/core/data-files/{id}/: + post: + operationId: circuits_provider_networks_create + description: Post a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + put: + operationId: circuits_provider_networks_bulk_update + description: Put a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_bulk_partial_update + description: Patch a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_bulk_destroy + description: Delete a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/provider-networks/{id}/: get: - operationId: core_data_files_retrieve - description: Get a data file object. + operationId: circuits_provider_networks_retrieve + description: Get a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data file. + description: A unique integer value identifying this provider network. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6029,13 +6203,186 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataFile' + $ref: '#/components/schemas/ProviderNetwork' description: '' - /api/core/data-sources/: + put: + operationId: circuits_provider_networks_update + description: Put a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_partial_update + description: Patch a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_destroy + description: Delete a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/providers/: get: - operationId: core_data_sources_list - description: Get a list of data source objects. + operationId: circuits_providers_list + description: Get a list of provider objects. parameters: + - in: query + name: asn + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn__n + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn_id + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: asn_id__n + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -6188,10 +6535,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -6250,64 +6593,6 @@ paths: format: int32 explode: true style: form - - in: query - name: last_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__empty - schema: - type: boolean - - in: query - name: last_synced__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - in: query name: last_updated schema: @@ -6484,7 +6769,7 @@ paths: type: string description: Search - in: query - name: source_url + name: region schema: type: array items: @@ -6492,11 +6777,15 @@ paths: explode: true style: form - in: query - name: source_url__empty + name: region__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: source_url__ic + name: region_id schema: type: array items: @@ -6504,7 +6793,7 @@ paths: explode: true style: form - in: query - name: source_url__ie + name: region_id__n schema: type: array items: @@ -6512,23 +6801,25 @@ paths: explode: true style: form - in: query - name: source_url__iew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__isw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__n + name: site_group schema: type: array items: @@ -6536,7 +6827,7 @@ paths: explode: true style: form - in: query - name: source_url__nic + name: site_group__n schema: type: array items: @@ -6544,7 +6835,7 @@ paths: explode: true style: form - in: query - name: source_url__nie + name: site_group_id schema: type: array items: @@ -6552,7 +6843,7 @@ paths: explode: true style: form - in: query - name: source_url__niew + name: site_group_id__n schema: type: array items: @@ -6560,7 +6851,25 @@ paths: explode: true style: form - in: query - name: source_url__nisw + 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: slug schema: type: array items: @@ -6568,7 +6877,11 @@ paths: explode: true style: form - in: query - name: status + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -6576,7 +6889,7 @@ paths: explode: true style: form - in: query - name: status__n + name: slug__ie schema: type: array items: @@ -6584,7 +6897,7 @@ paths: explode: true style: form - in: query - name: tag + name: slug__iew schema: type: array items: @@ -6592,7 +6905,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__isw schema: type: array items: @@ -6600,7 +6913,7 @@ paths: explode: true style: form - in: query - name: type + name: slug__n schema: type: array items: @@ -6608,7 +6921,47 @@ paths: explode: true style: form - in: query - name: type__n + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n schema: type: array items: @@ -6621,7 +6974,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6630,21 +6983,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataSourceList' + $ref: '#/components/schemas/PaginatedProviderList' description: '' post: - operationId: core_data_sources_create - description: Post a list of data source objects. + operationId: circuits_providers_create + description: Post a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6654,25 +7007,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_bulk_update - description: Put a list of data source objects. + operationId: circuits_providers_bulk_update + description: Put a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6684,25 +7037,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_bulk_partial_update - description: Patch a list of data source objects. + operationId: circuits_providers_bulk_partial_update + description: Patch a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6714,25 +7067,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_bulk_destroy - description: Delete a list of data source objects. + operationId: circuits_providers_bulk_destroy + description: Delete a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6740,19 +7093,19 @@ paths: responses: '204': description: No response body - /api/core/data-sources/{id}/: + /api/circuits/providers/{id}/: get: - operationId: core_data_sources_retrieve - description: Get a data source object. + operationId: circuits_providers_retrieve + description: Get a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6761,28 +7114,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_update - description: Put a data source object. + operationId: circuits_providers_update + description: Put a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6792,28 +7145,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_partial_update - description: Patch a data source object. + operationId: circuits_providers_partial_update + description: Patch a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -6822,153 +7175,185 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_destroy - description: Delete a data source object. + operationId: circuits_providers_destroy + description: Delete a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/core/data-sources/{id}/sync/: - post: - operationId: core_data_sources_sync_create - description: Enqueue a job to synchronize the DataSource. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this data source. - required: true - tags: - - core - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DataSource' - description: '' - /api/core/jobs/: + /api/circuits/virtual-circuit-terminations/: get: - operationId: core_jobs_list - description: Retrieve a list of job results + operationId: circuits_virtual_circuit_terminations_list + description: Get a list of virtual circuit termination objects. parameters: - in: query - name: completed + name: created schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: completed__after + name: created__empty schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: completed__before + name: created__gt schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created + name: created__gte schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created__after + name: created__lt schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created__before + 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: date-time + format: uuid - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interval + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: @@ -6977,11 +7362,11 @@ paths: explode: true style: form - in: query - name: interval__empty + name: id__empty schema: type: boolean - in: query - name: interval__gt + name: id__gt schema: type: array items: @@ -6990,7 +7375,7 @@ paths: explode: true style: form - in: query - name: interval__gte + name: id__gte schema: type: array items: @@ -6999,7 +7384,7 @@ paths: explode: true style: form - in: query - name: interval__lt + name: id__lt schema: type: array items: @@ -7008,7 +7393,7 @@ paths: explode: true style: form - in: query - name: interval__lte + name: id__lte schema: type: array items: @@ -7017,7 +7402,7 @@ paths: explode: true style: form - in: query - name: interval__n + name: id__n schema: type: array items: @@ -7026,596 +7411,341 @@ paths: explode: true style: form - in: query - name: job_id + name: interface_id schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n schema: - type: integer + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query - name: name + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: name__ic + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__ie + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__iew + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + 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: name__nic + name: modified_by_request + schema: + type: string + format: uuid + - 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: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__nie + name: provider__n schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__niew + name: provider_account schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__nisw + name: provider_account__n schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: object_id + name: provider_account_id schema: type: array items: type: integer - format: int32 + description: Provider account (ID) explode: true style: form - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt + name: provider_account_id__n schema: type: array items: type: integer - format: int32 + description: Provider account (ID) explode: true style: form - in: query - name: object_id__gte + name: provider_id schema: type: array items: type: integer - format: int32 + description: Provider (ID) explode: true style: form - in: query - name: object_id__lt + name: provider_id__n schema: type: array items: type: integer - format: int32 + description: Provider (ID) explode: true style: form - in: query - name: object_id__lte + name: provider_network_id schema: type: array items: type: integer - format: int32 + description: Provider network (ID) explode: true style: form - in: query - name: object_id__n + name: provider_network_id__n schema: type: array items: type: integer - format: int32 + description: Provider network (ID) explode: true style: form - in: query - name: object_type + name: q schema: - type: integer + type: string + description: Search - in: query - name: object_type__n - schema: - type: integer - - 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: q - schema: - type: string - description: Search - - in: query - name: scheduled - schema: - type: string - format: date-time - - in: query - name: scheduled__after - schema: - type: string - format: date-time - - in: query - name: scheduled__before - schema: - type: string - format: date-time - - in: query - name: started - schema: - type: string - format: date-time - - in: query - name: started__after - schema: - type: string - format: date-time - - in: query - name: started__before - schema: - type: string - format: date-time - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: user - schema: - type: integer - - in: query - name: user__n - schema: - type: integer - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedJobList' - description: '' - /api/core/jobs/{id}/: - get: - operationId: core_jobs_retrieve - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this job. - required: true - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Job' - description: '' - /api/dcim/cable-terminations/: - get: - operationId: dcim_cable_terminations_list - description: Get a list of cable termination objects. - parameters: - - in: query - name: cable - schema: - type: integer - - in: query - name: cable__n - schema: - type: integer - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty + name: role schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: created__gt + name: role__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gte + name: role__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: created__lt + name: role__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: created__lte + name: role__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: created__n + name: role__isw 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: 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 + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: last_updated + name: role__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: last_updated__empty + name: role__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: last_updated__gt + name: role__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: last_updated__gte + name: role__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: last_updated__lt + name: role__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: last_updated__lte + name: tag schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: tag__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 + name: updated_by_request schema: type: string format: uuid - - 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: termination_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query - name: termination_id__empty - schema: - type: boolean - - in: query - name: termination_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__lte + name: virtual_circuit_id schema: type: array items: type: integer - format: int32 + description: Virtual circuit explode: true style: form - in: query - name: termination_id__n + name: virtual_circuit_id__n schema: type: array items: type: integer - format: int32 + description: Virtual circuit explode: true style: form - - in: query - name: termination_type - schema: - type: string - - in: query - name: termination_type__n - schema: - type: string - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -7624,21 +7754,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCableTerminationList' + $ref: '#/components/schemas/PaginatedVirtualCircuitTerminationList' description: '' post: - operationId: dcim_cable_terminations_create - description: Post a list of cable termination objects. + operationId: circuits_virtual_circuit_terminations_create + description: Post a list of virtual circuit termination objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/WritableVirtualCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/WritableVirtualCircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -7648,25 +7778,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/VirtualCircuitTermination' description: '' put: - operationId: dcim_cable_terminations_bulk_update - description: Put a list of cable termination objects. + operationId: circuits_virtual_circuit_terminations_bulk_update + description: Put a list of virtual circuit termination objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/VirtualCircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/VirtualCircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -7678,25 +7808,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/VirtualCircuitTermination' description: '' patch: - operationId: dcim_cable_terminations_bulk_partial_update - description: Patch a list of cable termination objects. + operationId: circuits_virtual_circuit_terminations_bulk_partial_update + description: Patch a list of virtual circuit termination objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/VirtualCircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/VirtualCircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -7708,25 +7838,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/VirtualCircuitTermination' description: '' delete: - operationId: dcim_cable_terminations_bulk_destroy - description: Delete a list of cable termination objects. + operationId: circuits_virtual_circuit_terminations_bulk_destroy + description: Delete a list of virtual circuit termination objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/VirtualCircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/VirtualCircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -7734,19 +7864,19 @@ paths: responses: '204': description: No response body - /api/dcim/cable-terminations/{id}/: + /api/circuits/virtual-circuit-terminations/{id}/: get: - operationId: dcim_cable_terminations_retrieve - description: Get a cable termination object. + operationId: circuits_virtual_circuit_terminations_retrieve + description: Get a virtual circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this virtual circuit termination. required: true tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -7755,28 +7885,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/VirtualCircuitTermination' description: '' put: - operationId: dcim_cable_terminations_update - description: Put a cable termination object. + operationId: circuits_virtual_circuit_terminations_update + description: Put a virtual circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this virtual circuit termination. required: true tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/WritableVirtualCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/WritableVirtualCircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -7786,28 +7916,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/VirtualCircuitTermination' description: '' patch: - operationId: dcim_cable_terminations_partial_update - description: Patch a cable termination object. + operationId: circuits_virtual_circuit_terminations_partial_update + description: Patch a virtual circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this virtual circuit termination. required: true tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' + $ref: '#/components/schemas/PatchedWritableVirtualCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' + $ref: '#/components/schemas/PatchedWritableVirtualCircuitTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -7816,42 +7946,92 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/VirtualCircuitTermination' description: '' delete: - operationId: dcim_cable_terminations_destroy - description: Delete a cable termination object. + operationId: circuits_virtual_circuit_terminations_destroy + description: Delete a virtual circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this virtual circuit termination. required: true tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/cables/: + /api/circuits/virtual-circuit-terminations/{id}/paths/: get: - operationId: dcim_cables_list - description: Get a list of cable objects. + operationId: circuits_virtual_circuit_terminations_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual circuit termination. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCircuitTermination' + description: '' + /api/circuits/virtual-circuit-types/: + get: + operationId: circuits_virtual_circuit_types_list + description: Get a list of virtual circuit type objects. parameters: - in: query - name: circuittermination_id + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: color + name: color__empty + schema: + type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw schema: type: array items: @@ -7867,21 +8047,35 @@ paths: explode: true style: form - in: query - name: consoleport_id + name: color__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: consoleserverport_id + name: color__nie schema: type: array items: - type: integer - format: int32 + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -8036,32 +8230,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: frontport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: id schema: @@ -8121,92 +8289,81 @@ paths: explode: true style: form - in: query - name: interface_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: label__nie + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: label__niew + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: label__nisw + name: name schema: type: array items: @@ -8214,180 +8371,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: name__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__empty + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nic schema: type: array items: type: string - format: date-time - explode: true - style: form - - in: query - name: length - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: length__empty - schema: - type: boolean - - in: query - name: length__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: length__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: length__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: length__lte - schema: - type: array - items: - type: number - format: double explode: true style: form - in: query - name: length__n + name: name__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length_unit - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - in: query - name: length_unit__n - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location + name: name__niew schema: type: array items: @@ -8395,19 +8439,13 @@ paths: explode: true style: form - in: query - name: location_id + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - name: offset required: false in: query @@ -8420,40 +8458,13 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: powerfeed_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: poweroutlet_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: powerport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: rack + name: slug schema: type: array items: @@ -8461,25 +8472,11 @@ paths: explode: true style: form - in: query - name: rack_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rearport_id + name: slug__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: site + name: slug__ic schema: type: array items: @@ -8487,34 +8484,23 @@ paths: explode: true style: form - in: query - name: site_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: status + name: slug__ie schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: status__n + name: slug__iew schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: tag + name: slug__isw schema: type: array items: @@ -8522,7 +8508,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__n schema: type: array items: @@ -8530,143 +8516,60 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nie 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: termination_a_id + name: slug__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_a_type - schema: - type: string - - in: query - name: termination_a_type__n - schema: - type: string - - in: query - name: termination_b_id + name: slug__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_b_type - schema: - type: string - - in: query - name: termination_b_type__n - schema: - type: string - - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - - in: query - name: unterminated - schema: - type: boolean - description: Unterminated - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -8675,21 +8578,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCableList' + $ref: '#/components/schemas/PaginatedVirtualCircuitTypeList' description: '' post: - operationId: dcim_cables_create - description: Post a list of cable objects. + operationId: circuits_virtual_circuit_types_create + description: Post a list of virtual circuit type objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8698,25 +8602,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/VirtualCircuitType' description: '' put: - operationId: dcim_cables_bulk_update - description: Put a list of cable objects. + operationId: circuits_virtual_circuit_types_bulk_update + description: Put a list of virtual circuit type objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' required: true security: - cookieAuth: [] @@ -8728,25 +8632,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/VirtualCircuitType' description: '' patch: - operationId: dcim_cables_bulk_partial_update - description: Patch a list of cable objects. + operationId: circuits_virtual_circuit_types_bulk_partial_update + description: Patch a list of virtual circuit type objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' required: true security: - cookieAuth: [] @@ -8758,25 +8662,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/VirtualCircuitType' description: '' delete: - operationId: dcim_cables_bulk_destroy - description: Delete a list of cable objects. + operationId: circuits_virtual_circuit_types_bulk_destroy + description: Delete a list of virtual circuit type objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' required: true security: - cookieAuth: [] @@ -8784,19 +8688,19 @@ paths: responses: '204': description: No response body - /api/dcim/cables/{id}/: + /api/circuits/virtual-circuit-types/{id}/: get: - operationId: dcim_cables_retrieve - description: Get a cable object. + operationId: circuits_virtual_circuit_types_retrieve + description: Get a virtual circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this virtual circuit type. required: true tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -8805,28 +8709,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/VirtualCircuitType' description: '' put: - operationId: dcim_cables_update - description: Put a cable object. + operationId: circuits_virtual_circuit_types_update + description: Put a virtual circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this virtual circuit type. required: true tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/VirtualCircuitTypeRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8835,28 +8740,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/VirtualCircuitType' description: '' patch: - operationId: dcim_cables_partial_update - description: Patch a cable object. + operationId: circuits_virtual_circuit_types_partial_update + description: Patch a virtual circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this virtual circuit type. required: true tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedVirtualCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedVirtualCircuitTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -8865,144 +8770,101 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/VirtualCircuitType' description: '' delete: - operationId: dcim_cables_destroy - description: Delete a cable object. + operationId: circuits_virtual_circuit_types_destroy + description: Delete a virtual circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this virtual circuit type. required: true tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/connected-device/: + /api/circuits/virtual-circuits/: get: - operationId: dcim_connected_device_list - description: 'This endpoint allows a user to determine what device (if any) - is connected to a given peer device and peer - - interface. This is useful in a situation where a device boots with no configuration, - but can detect its neighbors - - via a protocol such as LLDP. Two query parameters must be included in the - request: - - - * `peer_device`: The name of the peer device - - * `peer_interface`: The name of the peer interface' + operationId: circuits_virtual_circuits_list + description: Get a list of virtual circuit objects. parameters: - in: query - name: peer_device + name: cid schema: - type: string - description: The name of the peer device - required: true + type: array + items: + type: string + explode: true + style: form - in: query - name: peer_interface + name: cid__empty schema: - type: string - description: The name of the peer interface - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Device' - description: '' - /api/dcim/console-port-templates/: - get: - operationId: dcim_console_port_templates_list - description: Get a list of console port template objects. - parameters: + type: boolean - in: query - name: created + name: cid__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: cid__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: cid__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: cid__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: cid__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: cid__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: cid__nie 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: description + name: cid__niew schema: type: array items: @@ -9010,11 +8872,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: cid__nisw schema: type: array items: @@ -9022,63 +8880,75 @@ paths: explode: true style: form - in: query - name: description__ie + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -9086,43 +8956,79 @@ paths: explode: true style: form - in: query - name: device_type_id + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: devicetype_id + name: description__iew schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: devicetype_id__n + name: description__isw schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -9184,233 +9090,284 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: label__ic + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + 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: label__nic + name: modified_by_request + schema: + type: string + format: uuid + - 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: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: label__nie + name: provider__n schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: label__niew + name: provider_account schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: label__nisw + name: provider_account__n schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: last_updated + name: provider_account_id schema: type: array items: - type: string - format: date-time + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: last_updated__empty + name: provider_account_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: last_updated__gt + name: provider_id schema: type: array items: - type: string - format: date-time + type: integer + description: Provider (ID) explode: true style: form - in: query - name: last_updated__gte + name: provider_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Provider (ID) explode: true style: form - in: query - name: last_updated__lt + name: provider_network_id schema: type: array items: - type: string - format: date-time + type: integer + description: Provider network (ID) explode: true style: form - in: query - name: last_updated__lte + name: provider_network_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Provider network (ID) explode: true style: form - in: query - name: last_updated__n + name: q + schema: + type: string + description: Search + - in: query + name: status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 63c838134a022200 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: status__empty schema: - type: integer + type: boolean - in: query - name: modified_by_request + name: status__ic schema: - type: string - format: uuid + type: array + items: + type: string + x-spec-enum-id: 63c838134a022200 + explode: true + style: form - in: query - name: module_type_id + name: status__ie schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: module_type_id__n + name: status__iew schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: moduletype_id + name: status__isw schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: moduletype_id__n + name: status__n schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: name + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: name__empty + name: status__nie schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 63c838134a022200 + explode: true + style: form - in: query - name: name__ic + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: name__ie + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: name__iew + name: tag schema: type: array items: @@ -9418,7 +9375,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: tag__n schema: type: array items: @@ -9426,23 +9383,25 @@ paths: explode: true style: form - in: query - name: name__n + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nic + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nie + name: tenant_group schema: type: array items: @@ -9450,7 +9409,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: tenant_group__n schema: type: array items: @@ -9458,75 +9417,84 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tenant_group_id 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. + - in: query + name: tenant_group_id__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: - type: string + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: q + name: tenant_id__n schema: - type: string - description: Search + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: type schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''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` - [(''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'', ''Other'')]' + type: array + items: + type: string + description: Virtual circuit type (slug) + explode: true + style: form - in: query name: type__n schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''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` - [(''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'', ''Other'')]' + type: array + items: + type: string + description: Virtual circuit type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Virtual circuit type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Virtual circuit type (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -9535,21 +9503,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsolePortTemplateList' + $ref: '#/components/schemas/PaginatedVirtualCircuitList' description: '' post: - operationId: dcim_console_port_templates_create - description: Post a list of console port template objects. + operationId: circuits_virtual_circuits_create + description: Post a list of virtual circuit objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableVirtualCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableVirtualCircuitRequest' required: true security: - cookieAuth: [] @@ -9559,25 +9527,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/VirtualCircuit' description: '' put: - operationId: dcim_console_port_templates_bulk_update - description: Put a list of console port template objects. + operationId: circuits_virtual_circuits_bulk_update + description: Put a list of virtual circuit objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/VirtualCircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/VirtualCircuitRequest' required: true security: - cookieAuth: [] @@ -9589,25 +9557,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/VirtualCircuit' description: '' patch: - operationId: dcim_console_port_templates_bulk_partial_update - description: Patch a list of console port template objects. + operationId: circuits_virtual_circuits_bulk_partial_update + description: Patch a list of virtual circuit objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/VirtualCircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/VirtualCircuitRequest' required: true security: - cookieAuth: [] @@ -9619,25 +9587,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/VirtualCircuit' description: '' delete: - operationId: dcim_console_port_templates_bulk_destroy - description: Delete a list of console port template objects. + operationId: circuits_virtual_circuits_bulk_destroy + description: Delete a list of virtual circuit objects. tags: - - dcim + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/VirtualCircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/VirtualCircuitRequest' required: true security: - cookieAuth: [] @@ -9645,19 +9613,19 @@ paths: responses: '204': description: No response body - /api/dcim/console-port-templates/{id}/: + /api/circuits/virtual-circuits/{id}/: get: - operationId: dcim_console_port_templates_retrieve - description: Get a console port template object. + operationId: circuits_virtual_circuits_retrieve + description: Get a virtual circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this virtual circuit. required: true tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -9666,28 +9634,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/VirtualCircuit' description: '' put: - operationId: dcim_console_port_templates_update - description: Put a console port template object. + operationId: circuits_virtual_circuits_update + description: Put a virtual circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this virtual circuit. required: true tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableVirtualCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableVirtualCircuitRequest' required: true security: - cookieAuth: [] @@ -9697,28 +9665,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/VirtualCircuit' description: '' patch: - operationId: dcim_console_port_templates_partial_update - description: Patch a console port template object. + operationId: circuits_virtual_circuits_partial_update + description: Patch a virtual circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this virtual circuit. required: true tags: - - dcim + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVirtualCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVirtualCircuitRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -9727,81 +9695,223 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/VirtualCircuit' description: '' delete: - operationId: dcim_console_port_templates_destroy - description: Delete a console port template object. + operationId: circuits_virtual_circuits_destroy + description: Delete a virtual circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this virtual circuit. required: true tags: - - dcim + - circuits security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/console-ports/: + /api/core/background-queues/: get: - operationId: dcim_console_ports_list - description: Get a list of console port objects. + operationId: core_background_queues_retrieve + description: 'Retrieve a list of RQ Queues. + + Note: Queue names are not URL safe so not returning a detail view.' + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/core/background-queues/{name}/: + get: + operationId: core_background_queues_retrieve_2 + description: 'Retrieve a list of RQ Queues. + + Note: Queue names are not URL safe so not returning a detail view.' parameters: - - in: query - name: cable_end + - in: path + name: name schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n + pattern: ^[\w.@+-]+$ + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/core/background-tasks/: + get: + operationId: core_background_tasks_retrieve + description: Retrieve a list of RQ Tasks. + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/core/background-tasks/{id}/: + get: + operationId: core_background_tasks_retrieve_2 + description: Retrieve a list of RQ Tasks. + parameters: + - in: path + name: id schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/core/background-tasks/{id}/delete/: + post: + operationId: core_background_tasks_delete_create + description: Retrieve a list of RQ Tasks. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n + type: string + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + description: No response body + /api/core/background-tasks/{id}/enqueue/: + post: + operationId: core_background_tasks_enqueue_create + description: Retrieve a list of RQ Tasks. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cabled + type: string + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + description: No response body + /api/core/background-tasks/{id}/requeue/: + post: + operationId: core_background_tasks_requeue_create + description: Retrieve a list of RQ Tasks. + parameters: + - in: path + name: id schema: - type: boolean - - in: query - name: connected + type: string + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + description: No response body + /api/core/background-tasks/{id}/stop/: + post: + operationId: core_background_tasks_stop_create + description: Retrieve a list of RQ Tasks. + parameters: + - in: path + name: id schema: - type: boolean + type: string + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + description: No response body + /api/core/background-workers/: + get: + operationId: core_background_workers_retrieve + description: Retrieve a list of RQ Workers. + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/core/background-workers/{name}/: + get: + operationId: core_background_workers_retrieve_2 + description: Retrieve a list of RQ Workers. + parameters: + - in: path + name: name + schema: + type: string + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + description: No response body + /api/core/data-files/: + get: + operationId: core_data_files_list + description: Get a list of data file objects. + parameters: - in: query name: created schema: @@ -9871,7 +9981,7 @@ paths: type: string format: uuid - in: query - name: description + name: hash schema: type: array items: @@ -9879,11 +9989,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: hash__empty schema: type: boolean - in: query - name: description__ic + name: hash__ic schema: type: array items: @@ -9891,7 +10001,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: hash__ie schema: type: array items: @@ -9899,7 +10009,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: hash__iew schema: type: array items: @@ -9907,7 +10017,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: hash__isw schema: type: array items: @@ -9915,7 +10025,7 @@ paths: explode: true style: form - in: query - name: description__n + name: hash__n schema: type: array items: @@ -9923,7 +10033,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: hash__nic schema: type: array items: @@ -9931,7 +10041,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: hash__nie schema: type: array items: @@ -9939,7 +10049,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: hash__niew schema: type: array items: @@ -9947,7 +10057,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: hash__nisw schema: type: array items: @@ -9955,139 +10065,151 @@ paths: explode: true style: form - in: query - name: device + name: id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__empty schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form + type: boolean - in: query - name: device_id + name: id__gt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__gte schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + name: id__lt schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type__n + name: id__lte schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: id__n schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: last_updated schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: id + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: last_updated__n schema: type: array items: - type: integer - format: int32 + 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: label + name: modified_by_request + schema: + type: string + format: uuid + - 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: path schema: type: array items: @@ -10095,11 +10217,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: path__empty schema: type: boolean - in: query - name: label__ic + name: path__ic schema: type: array items: @@ -10107,7 +10229,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: path__ie schema: type: array items: @@ -10115,7 +10237,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: path__iew schema: type: array items: @@ -10123,7 +10245,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: path__isw schema: type: array items: @@ -10131,7 +10253,7 @@ paths: explode: true style: form - in: query - name: label__n + name: path__n schema: type: array items: @@ -10139,7 +10261,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: path__nic schema: type: array items: @@ -10147,7 +10269,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: path__nie schema: type: array items: @@ -10155,7 +10277,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: path__niew schema: type: array items: @@ -10163,7 +10285,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: path__nisw schema: type: array items: @@ -10171,185 +10293,218 @@ paths: explode: true style: form - in: query - name: last_updated + name: q schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: last_updated__empty + name: size schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: size__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: size__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: size__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: size__n schema: type: array items: - type: string - format: date-time + type: integer + 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: location + name: source schema: type: array items: type: string - description: Location (slug) + description: Data source (name) explode: true style: form - in: query - name: location__n + name: source__n schema: type: array items: type: string - description: Location (slug) + description: Data source (name) explode: true style: form - in: query - name: location_id + name: source_id schema: type: array items: type: integer - description: Location (ID) + description: Data source (ID) explode: true style: form - in: query - name: location_id__n + name: source_id__n schema: type: array items: type: integer - description: Location (ID) + description: Data source (ID) explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request + name: updated_by_request schema: type: string format: uuid + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDataFileList' + description: '' + /api/core/data-files/{id}/: + get: + operationId: core_data_files_retrieve + description: Get a data file object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this data file. + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DataFile' + description: '' + /api/core/data-sources/: + get: + operationId: core_data_sources_list + description: Get a list of data source objects. + parameters: - in: query - name: module_id + name: created schema: type: array items: - type: integer - nullable: true - description: Module (ID) + type: string + format: date-time explode: true style: form - in: query - name: module_id__n + name: created__empty schema: type: array items: - type: integer - nullable: true - description: Module (ID) + type: string + format: date-time explode: true style: form - in: query - name: name + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__ie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__iew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -10357,7 +10512,11 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -10365,7 +10524,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__ie schema: type: array items: @@ -10373,7 +10532,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__iew schema: type: array items: @@ -10381,7 +10540,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__isw schema: type: array items: @@ -10389,602 +10548,167 @@ paths: explode: true style: form - in: query - name: occupied - schema: - type: boolean - - 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: q - schema: - type: string - description: Search - - in: query - name: rack + name: description__n schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: description__nic schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: description__nie schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: description__niew schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: region + name: description__nisw schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: enabled + schema: + type: boolean + - in: query + name: id schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: id__gte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: id__lt schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: id__lte schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: id__n schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: last_synced schema: type: array items: - type: integer - description: Device role (ID) + type: string + format: date-time explode: true style: form - in: query - name: site + name: last_synced__empty + schema: + type: boolean + - in: query + name: last_synced__gt schema: type: array items: type: string - description: Site name (slug) + format: date-time explode: true style: form - in: query - name: site__n + name: last_synced__gte schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: speed - schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: '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' - - in: query - name: speed__n - schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: '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' - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + format: date-time explode: true style: form - in: query - name: type__n + name: last_synced__lt schema: type: array items: type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + format: date-time explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_chassis + name: last_synced__lte schema: type: array items: type: string - description: Virtual Chassis + format: date-time explode: true style: form - in: query - name: virtual_chassis__n + name: last_synced__n schema: type: array items: type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) + format: date-time explode: true style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedConsolePortList' - description: '' - post: - operationId: dcim_console_ports_create - description: Post a list of console port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - put: - operationId: dcim_console_ports_bulk_update - description: Put a list of console port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePort' - description: '' - patch: - operationId: dcim_console_ports_bulk_partial_update - description: Patch a list of console port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePort' - description: '' - delete: - operationId: dcim_console_ports_bulk_destroy - description: Delete a list of console port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/console-ports/{id}/: - get: - operationId: dcim_console_ports_retrieve - description: Get a console port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - put: - operationId: dcim_console_ports_update - description: Put a console port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - patch: - operationId: dcim_console_ports_partial_update - description: Patch a console port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - delete: - operationId: dcim_console_ports_destroy - description: Delete a console port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/console-ports/{id}/trace/: - get: - operationId: dcim_console_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - /api/dcim/console-server-port-templates/: - get: - operationId: dcim_console_server_port_templates_list - description: Get a list of console server port template objects. - parameters: - in: query - name: created + name: last_updated schema: type: array items: @@ -10993,7 +10717,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -11002,7 +10726,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -11011,7 +10735,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -11020,7 +10744,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -11029,7 +10753,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -11038,7 +10762,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -11046,13 +10770,19 @@ paths: 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: created_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -11060,11 +10790,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -11072,7 +10802,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -11080,7 +10810,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -11088,7 +10818,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -11096,7 +10826,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -11104,7 +10834,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -11112,7 +10842,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -11120,7 +10850,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -11128,113 +10858,52 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form + type: string - in: query - name: devicetype_id__n + name: q schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form + type: string + description: Search - in: query - name: id + name: source_url schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: source_url__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 + name: source_url__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: label + name: source_url__ie schema: type: array items: @@ -11242,11 +10911,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: source_url__iew schema: type: array items: @@ -11254,7 +10919,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: source_url__isw schema: type: array items: @@ -11262,7 +10927,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: source_url__n schema: type: array items: @@ -11270,7 +10935,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: source_url__nic schema: type: array items: @@ -11278,7 +10943,7 @@ paths: explode: true style: form - in: query - name: label__n + name: source_url__nie schema: type: array items: @@ -11286,7 +10951,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: source_url__niew schema: type: array items: @@ -11294,7 +10959,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: source_url__nisw schema: type: array items: @@ -11302,7 +10967,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: status schema: type: array items: @@ -11310,129 +10975,99 @@ paths: explode: true style: form - in: query - name: label__nisw + name: status__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: last_updated + name: status__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: status__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: status__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: status__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: status__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: status__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: status__nie 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: module_type_id + name: status__niew schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: module_type_id__n + name: status__nisw schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: type schema: type: array items: @@ -11440,11 +11075,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: type__empty schema: type: boolean - in: query - name: name__ic + name: type__ic schema: type: array items: @@ -11452,7 +11087,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: type__ie schema: type: array items: @@ -11460,7 +11095,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: type__iew schema: type: array items: @@ -11468,7 +11103,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: type__isw schema: type: array items: @@ -11476,7 +11111,7 @@ paths: explode: true style: form - in: query - name: name__n + name: type__n schema: type: array items: @@ -11484,7 +11119,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: type__nic schema: type: array items: @@ -11492,7 +11127,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: type__nie schema: type: array items: @@ -11500,7 +11135,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: type__niew schema: type: array items: @@ -11508,75 +11143,20 @@ paths: explode: true style: form - in: query - name: name__nisw + name: type__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: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''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` - [(''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'', ''Other'')]' - - in: query - name: type__n - schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''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` - [(''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'', ''Other'')]' - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -11585,21 +11165,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' + $ref: '#/components/schemas/PaginatedDataSourceList' description: '' post: - operationId: dcim_console_server_port_templates_create - description: Post a list of console server port template objects. + operationId: core_data_sources_create + description: Post a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' required: true security: - cookieAuth: [] @@ -11609,25 +11189,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_console_server_port_templates_bulk_update - description: Put a list of console server port template objects. + operationId: core_data_sources_bulk_update + description: Put a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -11639,25 +11219,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_console_server_port_templates_bulk_partial_update - description: Patch a list of console server port template objects. + operationId: core_data_sources_bulk_partial_update + description: Patch a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -11669,25 +11249,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_console_server_port_templates_bulk_destroy - description: Delete a list of console server port template objects. + operationId: core_data_sources_bulk_destroy + description: Delete a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -11695,19 +11275,19 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-port-templates/{id}/: + /api/core/data-sources/{id}/: get: - operationId: dcim_console_server_port_templates_retrieve - description: Get a console server port template object. + operationId: core_data_sources_retrieve + description: Get a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -11716,28 +11296,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_console_server_port_templates_update - description: Put a console server port template object. + operationId: core_data_sources_update + description: Put a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' required: true security: - cookieAuth: [] @@ -11747,28 +11327,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_console_server_port_templates_partial_update - description: Patch a console server port template object. + operationId: core_data_sources_partial_update + description: Patch a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -11777,151 +11357,222 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_console_server_port_templates_destroy - description: Delete a console server port template object. + operationId: core_data_sources_destroy + description: Delete a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/console-server-ports/: + /api/core/data-sources/{id}/sync/: + post: + operationId: core_data_sources_sync_create + description: Enqueue a job to synchronize the DataSource. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this data source. + required: true + tags: + - core + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DataSource' + description: '' + /api/core/jobs/: get: - operationId: dcim_console_server_ports_list - description: Get a list of console server port objects. + operationId: core_jobs_list + description: Retrieve a list of job results parameters: - in: query - name: cable_end + name: completed schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + format: date-time - in: query - name: cable_end__n + name: completed__after schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + format: date-time - in: query - name: cable_id + name: completed__before + schema: + type: string + format: date-time + - in: query + name: created + schema: + type: string + format: date-time + - in: query + name: created__after + schema: + type: string + format: date-time + - in: query + name: created__before + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cable_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cabled + name: id__gte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: connected + name: id__lt schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: created + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: interval schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: interval__empty + schema: + type: boolean + - in: query + name: interval__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: interval__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: interval__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: interval__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: interval__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: job_id schema: type: string format: uuid + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: description + name: name schema: type: array items: @@ -11929,11 +11580,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -11941,7 +11592,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -11949,7 +11600,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -11957,7 +11608,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -11965,7 +11616,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -11973,7 +11624,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -11981,7 +11632,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -11989,7 +11640,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -11997,7 +11648,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: @@ -12005,81 +11656,276 @@ paths: explode: true style: form - in: query - name: device + name: object_id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: object_id__empty + schema: + type: boolean + - in: query + name: object_id__gt schema: type: array items: - type: string - nullable: true - description: Device (name) - explode: true + type: integer + format: int32 + explode: true style: form - in: query - name: device_id + name: object_id__gte schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: object_id__lt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + 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: integer + - in: query + name: object_type__n + schema: + type: integer + - 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: q + schema: + type: string + description: Search + - in: query + name: scheduled + schema: + type: string + format: date-time + - in: query + name: scheduled__after + schema: + type: string + format: date-time + - in: query + name: scheduled__before + schema: + type: string + format: date-time + - in: query + name: started + schema: + type: string + format: date-time + - in: query + name: started__after + schema: + type: string + format: date-time + - in: query + name: started__before + schema: + type: string + format: date-time + - in: query + name: status schema: type: array items: type: string - description: Device type (model) + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query - name: device_type__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string - description: Device type (model) + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query - name: device_type_id + name: status__ie schema: type: array items: - type: integer - description: Device type (ID) + type: string + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query - name: device_type_id__n + name: status__iew schema: type: array items: - type: integer - description: Device type (ID) + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query + name: user + schema: + type: integer + - in: query + name: user__n + schema: + type: integer + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedJobList' + description: '' + /api/core/jobs/{id}/: + get: + operationId: core_jobs_retrieve + description: Retrieve a list of job results + parameters: + - in: path name: id + schema: + type: integer + description: A unique integer value identifying this job. + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Job' + description: '' + /api/core/object-changes/: + get: + operationId: core_object_changes_list + description: Retrieve a list of recent changes. + parameters: + - in: query + name: action + schema: + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' + - in: query + name: changed_object_id schema: type: array items: @@ -12088,11 +11934,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: changed_object_id__empty schema: type: boolean - in: query - name: id__gt + name: changed_object_id__gt schema: type: array items: @@ -12101,7 +11947,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: changed_object_id__gte schema: type: array items: @@ -12110,7 +11956,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: changed_object_id__lt schema: type: array items: @@ -12119,7 +11965,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: changed_object_id__lte schema: type: array items: @@ -12128,7 +11974,7 @@ paths: explode: true style: form - in: query - name: id__n + name: changed_object_id__n schema: type: array items: @@ -12137,67 +11983,95 @@ paths: explode: true style: form - in: query - name: label + name: changed_object_type + schema: + type: string + - in: query + name: changed_object_type__n + schema: + type: string + - in: query + name: changed_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: label__empty + name: changed_object_type_id__n schema: - type: boolean + type: array + items: + type: integer + explode: true + style: form - in: query - name: label__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: id__n schema: type: array items: - type: string + type: integer + 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: label__nie + name: object_repr schema: type: array items: @@ -12205,7 +12079,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: object_repr__empty + schema: + type: boolean + - in: query + name: object_repr__ic schema: type: array items: @@ -12213,7 +12091,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: object_repr__ie schema: type: array items: @@ -12221,141 +12099,199 @@ paths: explode: true style: form - in: query - name: last_updated + name: object_repr__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: object_repr__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: object_repr__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: object_repr__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: object_repr__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: object_repr__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: object_repr__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + 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: location + name: q + schema: + type: string + description: Search + - in: query + name: related_object_id schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location__n + name: related_object_id__empty + schema: + type: boolean + - in: query + name: related_object_id__gt schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location_id + name: related_object_id__gte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: related_object_id__lt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: mark_connected + name: related_object_id__lte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: modified_by_request + name: related_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: related_object_type + schema: + type: integer + - in: query + name: related_object_type__n + schema: + type: integer + - in: query + name: request_id schema: type: string format: uuid - in: query - name: module_id + name: time_after + schema: + type: string + format: date-time + - in: query + name: time_before + schema: + type: string + format: date-time + - in: query + name: user + schema: + type: array + items: + type: string + description: User name + explode: true + style: form + - in: query + name: user__n + schema: + type: array + items: + type: string + description: User name + explode: true + style: form + - in: query + name: user_id schema: type: array items: type: integer nullable: true - description: Module (ID) + description: User (ID) explode: true style: form - in: query - name: module_id__n + name: user_id__n schema: type: array items: type: integer nullable: true - description: Module (ID) + description: User (ID) explode: true style: form - in: query - name: name + name: user_name schema: type: array items: @@ -12363,11 +12299,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: user_name__empty schema: type: boolean - in: query - name: name__ic + name: user_name__ic schema: type: array items: @@ -12375,7 +12311,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: user_name__ie schema: type: array items: @@ -12383,7 +12319,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: user_name__iew schema: type: array items: @@ -12391,7 +12327,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: user_name__isw schema: type: array items: @@ -12399,7 +12335,7 @@ paths: explode: true style: form - in: query - name: name__n + name: user_name__n schema: type: array items: @@ -12407,7 +12343,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: user_name__nic schema: type: array items: @@ -12415,7 +12351,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: user_name__nie schema: type: array items: @@ -12423,7 +12359,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: user_name__niew schema: type: array items: @@ -12431,357 +12367,356 @@ paths: explode: true style: form - in: query - name: name__nisw + name: user_name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: occupied + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedObjectChangeList' + description: '' + /api/core/object-changes/{id}/: + get: + operationId: core_object_changes_retrieve + description: Retrieve a list of recent changes. + parameters: + - in: path + name: id schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: integer + description: A unique integer value identifying this object change. + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectChange' + description: '' + /api/dcim/cable-terminations/: + get: + operationId: dcim_cable_terminations_list + description: Get a list of cable termination objects. + parameters: + - in: query + name: cable schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: cable__n schema: - type: string + type: integer - in: query - name: q + name: cable_end schema: type: string - description: Search + x-spec-enum-id: 1db84f9b93b261c8 + title: End + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: rack + name: created schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack__n + name: created__empty schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack_id + name: created__gt schema: type: array items: - type: integer - description: Rack (ID) + type: string + format: date-time explode: true style: form - in: query - name: rack_id__n + name: created__gte schema: type: array items: - type: integer - description: Rack (ID) + type: string + format: date-time explode: true style: form - in: query - name: region + name: created__lt schema: type: array items: - type: integer - description: Region (slug) + type: string + format: date-time explode: true style: form - in: query - name: region__n + name: created__lte schema: type: array items: - type: integer - description: Region (slug) + type: string + format: date-time explode: true style: form - in: query - name: region_id + name: created__n schema: type: array items: - type: integer - description: Region (ID) + type: string + format: date-time explode: true style: form - in: query - name: region_id__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: id schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: id__gte schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: id__lt schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: id__lte schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: site + name: id__n schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site__n + name: last_updated schema: type: array items: type: string - description: Site name (slug) + format: date-time explode: true style: form - in: query - name: site_group + name: last_updated__empty schema: type: array items: - type: integer - description: Site group (slug) + type: string + format: date-time explode: true style: form - in: query - name: site_group__n + name: last_updated__gt schema: type: array items: - type: integer - description: Site group (slug) + type: string + format: date-time explode: true style: form - in: query - name: site_group_id + name: last_updated__gte schema: type: array items: - type: integer - description: Site group (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_group_id__n + name: last_updated__lt schema: type: array items: - type: integer - description: Site group (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_id + name: last_updated__lte schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_id__n + name: last_updated__n schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - - in: query - name: speed + - name: limit + required: false + in: query + description: Number of results to return per page. schema: type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: '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' - in: query - name: speed__n + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: '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' - - in: query - name: tag + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: tag__n + name: termination_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: type + name: termination_id__empty schema: - type: array - items: - type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type - explode: true - style: form + type: boolean - in: query - name: type__n + name: termination_id__gt schema: type: array items: - type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_chassis + name: termination_id__gte schema: type: array items: - type: string - description: Virtual Chassis + type: integer + format: int32 explode: true style: form - in: query - name: virtual_chassis__n + name: termination_id__lt schema: type: array items: - type: string - description: Virtual Chassis + type: integer + format: int32 explode: true style: form - in: query - name: virtual_chassis_id + name: termination_id__lte schema: type: array items: type: integer - description: Virtual Chassis (ID) + format: int32 explode: true style: form - in: query - name: virtual_chassis_id__n + name: termination_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + format: int32 explode: true style: form + - in: query + name: termination_type + schema: + type: string + - in: query + name: termination_type__n + schema: + type: string + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -12792,21 +12727,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortList' + $ref: '#/components/schemas/PaginatedCableTerminationList' description: '' post: - operationId: dcim_console_server_ports_create - description: Post a list of console server port objects. + operationId: dcim_cable_terminations_create + description: Post a list of cable termination objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -12816,11 +12751,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/CableTermination' description: '' put: - operationId: dcim_console_server_ports_bulk_update - description: Put a list of console server port objects. + operationId: dcim_cable_terminations_bulk_update + description: Put a list of cable termination objects. tags: - dcim requestBody: @@ -12829,12 +12764,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -12846,11 +12781,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/CableTermination' description: '' patch: - operationId: dcim_console_server_ports_bulk_partial_update - description: Patch a list of console server port objects. + operationId: dcim_cable_terminations_bulk_partial_update + description: Patch a list of cable termination objects. tags: - dcim requestBody: @@ -12859,12 +12794,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -12876,11 +12811,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/CableTermination' description: '' delete: - operationId: dcim_console_server_ports_bulk_destroy - description: Delete a list of console server port objects. + operationId: dcim_cable_terminations_bulk_destroy + description: Delete a list of cable termination objects. tags: - dcim requestBody: @@ -12889,12 +12824,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -12902,16 +12837,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/: + /api/dcim/cable-terminations/{id}/: get: - operationId: dcim_console_server_ports_retrieve - description: Get a console server port object. + operationId: dcim_cable_terminations_retrieve + description: Get a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -12923,17 +12858,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/CableTermination' description: '' put: - operationId: dcim_console_server_ports_update - description: Put a console server port object. + operationId: dcim_cable_terminations_update + description: Put a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -12941,10 +12876,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -12954,17 +12889,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/CableTermination' description: '' patch: - operationId: dcim_console_server_ports_partial_update - description: Patch a console server port object. + operationId: dcim_cable_terminations_partial_update + description: Patch a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -12972,10 +12907,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedCableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedCableTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -12984,17 +12919,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/CableTermination' description: '' delete: - operationId: dcim_console_server_ports_destroy - description: Delete a console server port object. + operationId: dcim_cable_terminations_destroy + description: Delete a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -13004,35 +12939,122 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/trace/: + /api/dcim/cables/: get: - operationId: dcim_console_server_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_cables_list + description: Get a list of cable objects. parameters: - - in: path - name: id + - in: query + name: circuittermination_id schema: - type: integer - description: A unique integer value identifying this console server port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - /api/dcim/device-bay-templates/: - get: - operationId: dcim_device_bay_templates_list - description: Get a list of device bay template objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: color + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__empty + schema: + type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: consoleport_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: consoleserverport_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: created schema: @@ -13186,39 +13208,29 @@ paths: explode: true style: form - in: query - name: device_type_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n + name: device schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: devicetype_id + name: device_id schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: frontport_id schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query @@ -13279,6 +13291,15 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: label schema: @@ -13426,19 +13447,96 @@ paths: 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 + name: length schema: - type: string - format: uuid - - in: query - name: name + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: length__empty + schema: + type: boolean + - in: query + name: length__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: length__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: length__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: length__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: length__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: length_unit + schema: + type: string + x-spec-enum-id: e64ce3a2c5997172 + nullable: true + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + - 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: @@ -13446,98 +13544,429 @@ paths: explode: true style: form - in: query - name: name__empty + name: location_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - 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: powerfeed_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: poweroutlet_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: powerport_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rearport_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__empty schema: type: boolean - in: query - name: name__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: tag schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: termination_a_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_a_type schema: type: string - in: query - name: q + name: termination_a_type__n schema: type: string - description: Search + - in: query + name: termination_b_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_b_type + schema: + type: string + - in: query + name: termination_b_type__n + schema: + type: string + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + explode: true + style: form + - in: query + name: unterminated + schema: + type: boolean + description: Unterminated - in: query name: updated_by_request schema: @@ -13553,22 +13982,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' + $ref: '#/components/schemas/PaginatedCableList' description: '' post: - operationId: dcim_device_bay_templates_create - description: Post a list of device bay template objects. + operationId: dcim_cables_create + description: Post a list of cable objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -13577,11 +14005,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_device_bay_templates_bulk_update - description: Put a list of device bay template objects. + operationId: dcim_cables_bulk_update + description: Put a list of cable objects. tags: - dcim requestBody: @@ -13590,12 +14018,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -13607,11 +14035,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_device_bay_templates_bulk_partial_update - description: Patch a list of device bay template objects. + operationId: dcim_cables_bulk_partial_update + description: Patch a list of cable objects. tags: - dcim requestBody: @@ -13620,12 +14048,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -13637,11 +14065,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_device_bay_templates_bulk_destroy - description: Delete a list of device bay template objects. + operationId: dcim_cables_bulk_destroy + description: Delete a list of cable objects. tags: - dcim requestBody: @@ -13650,12 +14078,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -13663,16 +14091,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bay-templates/{id}/: + /api/dcim/cables/{id}/: get: - operationId: dcim_device_bay_templates_retrieve - description: Get a device bay template object. + operationId: dcim_cables_retrieve + description: Get a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -13684,17 +14112,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_device_bay_templates_update - description: Put a device bay template object. + operationId: dcim_cables_update + description: Put a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -13702,11 +14130,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -13715,17 +14142,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_device_bay_templates_partial_update - description: Patch a device bay template object. + operationId: dcim_cables_partial_update + description: Patch a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -13733,10 +14160,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -13745,17 +14172,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_device_bay_templates_destroy - description: Delete a device bay template object. + operationId: dcim_cables_destroy + description: Delete a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -13765,10 +14192,53 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/: + /api/dcim/connected-device/: get: - operationId: dcim_device_bays_list - description: Get a list of device bay objects. + operationId: dcim_connected_device_list + description: 'This endpoint allows a user to determine what device (if any) + is connected to a given peer device and peer + + interface. This is useful in a situation where a device boots with no configuration, + but can detect its neighbors + + via a protocol such as LLDP. Two query parameters must be included in the + request: + + + * `peer_device`: The name of the peer device + + * `peer_interface`: The name of the peer interface' + parameters: + - in: query + name: peer_device + schema: + type: string + description: The name of the peer device + required: true + - in: query + name: peer_interface + schema: + type: string + description: The name of the peer interface + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Device' + description: '' + /api/dcim/console-port-templates/: + get: + operationId: dcim_console_port_templates_list + description: Get a list of console port template objects. parameters: - in: query name: created @@ -13922,68 +14392,13 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - 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 - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - in: query name: device_type_id schema: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -13993,6 +14408,7 @@ paths: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -14054,46 +14470,6 @@ paths: format: int32 explode: true style: form - - in: query - name: installed_device - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device__n - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device_id - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - - in: query - name: installed_device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - in: query name: label schema: @@ -14248,46 +14624,30 @@ paths: 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 + name: modified_by_request schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: location_id + name: module_type_id schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: location_id__n + name: module_type_id__n schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Module type (ID) explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -14390,242 +14750,30 @@ paths: type: string description: Search - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - 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: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n + name: type schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''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` - [(''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'', ''Other'')]' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -14636,21 +14784,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayList' + $ref: '#/components/schemas/PaginatedConsolePortTemplateList' description: '' post: - operationId: dcim_device_bays_create - description: Post a list of device bay objects. + operationId: dcim_console_port_templates_create + description: Post a list of console port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -14660,11 +14808,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_device_bays_bulk_update - description: Put a list of device bay objects. + operationId: dcim_console_port_templates_bulk_update + description: Put a list of console port template objects. tags: - dcim requestBody: @@ -14673,12 +14821,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -14690,11 +14838,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_device_bays_bulk_partial_update - description: Patch a list of device bay objects. + operationId: dcim_console_port_templates_bulk_partial_update + description: Patch a list of console port template objects. tags: - dcim requestBody: @@ -14703,12 +14851,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -14720,11 +14868,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_device_bays_bulk_destroy - description: Delete a list of device bay objects. + operationId: dcim_console_port_templates_bulk_destroy + description: Delete a list of console port template objects. tags: - dcim requestBody: @@ -14733,12 +14881,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -14746,16 +14894,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/{id}/: + /api/dcim/console-port-templates/{id}/: get: - operationId: dcim_device_bays_retrieve - description: Get a device bay object. + operationId: dcim_console_port_templates_retrieve + description: Get a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -14767,17 +14915,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_device_bays_update - description: Put a device bay object. + operationId: dcim_console_port_templates_update + description: Put a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -14785,10 +14933,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -14798,17 +14946,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_device_bays_partial_update - description: Patch a device bay object. + operationId: dcim_console_port_templates_partial_update + description: Patch a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -14816,10 +14964,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -14828,17 +14976,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_device_bays_destroy - description: Delete a device bay object. + operationId: dcim_console_port_templates_destroy + description: Delete a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -14848,81 +14996,121 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/: + /api/dcim/console-ports/: get: - operationId: dcim_device_roles_list - description: Get a list of device role objects. - parameters: + operationId: dcim_console_ports_list + description: Get a list of console port objects. + parameters: - in: query - name: color + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: - type: string + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: color__empty + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled schema: type: boolean - in: query - name: color__ic + name: connected + schema: + type: boolean + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__niew + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -14930,7 +15118,11 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -14938,175 +15130,271 @@ paths: explode: true style: form - in: query - name: config_template_id + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string explode: true style: form - in: query - name: config_template_id__n + name: description__iew schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string explode: true style: form - in: query - name: created + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: device schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: created_by_request + name: device__n schema: - type: string - format: uuid + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: description + name: device_id + schema: + type: array + items: + type: integer + 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 + name: device_role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: description__empty + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__empty schema: type: boolean - in: query - name: description__ic + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__ie + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__iew + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__isw + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__n + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__nic + name: device_status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__nie + name: device_status__nie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__niew + name: device_status__niew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__nisw + name: device_status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n schema: type: array items: type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) explode: true style: form - in: query @@ -15167,6 +15455,90 @@ paths: format: int32 explode: true style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -15236,11 +15608,71 @@ paths: 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 (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -15325,6 +15757,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -15343,19 +15779,43 @@ paths: type: string description: Search - in: query - name: slug + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: slug__empty + name: rack__n schema: - type: boolean + type: array + items: + type: string + description: Rack (name) + explode: true + style: form - in: query - name: slug__ic + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region schema: type: array items: @@ -15363,7 +15823,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: region__n schema: type: array items: @@ -15371,7 +15831,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: region_id schema: type: array items: @@ -15379,7 +15839,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: region_id__n schema: type: array items: @@ -15387,23 +15847,25 @@ paths: explode: true style: form - in: query - name: slug__n + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nic + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nie + name: site_group schema: type: array items: @@ -15411,7 +15873,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_group__n schema: type: array items: @@ -15419,13 +15881,72 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n schema: type: array items: type: string explode: true style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: speed + schema: + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + enum: + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: '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' - in: query name: tag schema: @@ -15442,15 +15963,161 @@ paths: type: string explode: true style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid - in: query - name: vm_role + name: virtual_chassis schema: - type: boolean + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -15461,21 +16128,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceRoleList' + $ref: '#/components/schemas/PaginatedConsolePortList' description: '' post: - operationId: dcim_device_roles_create - description: Post a list of device role objects. + operationId: dcim_console_ports_create + description: Post a list of console port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -15485,11 +16152,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_device_roles_bulk_update - description: Put a list of device role objects. + operationId: dcim_console_ports_bulk_update + description: Put a list of console port objects. tags: - dcim requestBody: @@ -15498,12 +16165,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -15515,11 +16182,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_device_roles_bulk_partial_update - description: Patch a list of device role objects. + operationId: dcim_console_ports_bulk_partial_update + description: Patch a list of console port objects. tags: - dcim requestBody: @@ -15528,12 +16195,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -15545,11 +16212,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_device_roles_bulk_destroy - description: Delete a list of device role objects. + operationId: dcim_console_ports_bulk_destroy + description: Delete a list of console port objects. tags: - dcim requestBody: @@ -15558,12 +16225,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -15571,16 +16238,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/{id}/: + /api/dcim/console-ports/{id}/: get: - operationId: dcim_device_roles_retrieve - description: Get a device role object. + operationId: dcim_console_ports_retrieve + description: Get a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -15592,17 +16259,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_device_roles_update - description: Put a device role object. + operationId: dcim_console_ports_update + description: Put a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -15610,10 +16277,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -15623,17 +16290,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_device_roles_partial_update - description: Patch a device role object. + operationId: dcim_console_ports_partial_update + description: Patch a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -15641,10 +16308,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -15653,17 +16320,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_device_roles_destroy - description: Delete a device role object. + operationId: dcim_console_ports_destroy + description: Delete a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -15673,297 +16340,267 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/: + /api/dcim/console-ports/{id}/trace/: get: - operationId: dcim_device_types_list - description: Get a list of device type objects. + operationId: dcim_console_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `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' - - in: query - name: airflow__n + - in: path + name: id schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `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' + type: integer + description: A unique integer value identifying this console port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsolePort' + description: '' + /api/dcim/console-server-port-templates/: + get: + operationId: dcim_console_server_port_templates_list + description: Get a list of console server port template objects. + parameters: - in: query - name: console_port_template_count + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: console_port_template_count__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_ports + name: created_by_request schema: - type: boolean - description: Has console ports + type: string + format: uuid - in: query - name: console_server_port_template_count + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__empty + name: description__empty schema: type: boolean - in: query - name: console_server_port_template_count__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_ports - schema: - type: boolean - description: Has console server ports - - in: query - name: created + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: created__lte + name: device_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: created__n + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: id__empty schema: - type: string - format: uuid + type: boolean - in: query - name: default_platform + name: id__gt schema: type: array items: - type: string - description: Default platform (slug) + type: integer + format: int32 explode: true style: form - in: query - name: default_platform__n + name: id__gte schema: type: array items: - type: string - description: Default platform (slug) + type: integer + format: int32 explode: true style: form - in: query - name: default_platform_id + name: id__lt schema: type: array items: type: integer - nullable: true - description: Default platform (ID) + format: int32 explode: true style: form - in: query - name: default_platform_id__n + name: id__lte schema: type: array items: type: integer - nullable: true - description: Default platform (ID) + format: int32 explode: true style: form - in: query - name: description + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: label schema: type: array items: @@ -15971,11 +16608,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: label__empty schema: type: boolean - in: query - name: description__ic + name: label__ic schema: type: array items: @@ -15983,7 +16620,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: label__ie schema: type: array items: @@ -15991,7 +16628,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: label__iew schema: type: array items: @@ -15999,7 +16636,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: label__isw schema: type: array items: @@ -16007,7 +16644,7 @@ paths: explode: true style: form - in: query - name: description__n + name: label__n schema: type: array items: @@ -16015,7 +16652,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: label__nic schema: type: array items: @@ -16023,7 +16660,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: label__nie schema: type: array items: @@ -16031,7 +16668,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: label__niew schema: type: array items: @@ -16039,7 +16676,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: label__nisw schema: type: array items: @@ -16047,524 +16684,850 @@ paths: explode: true style: form - in: query - name: device_bay_template_count + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: device_bay_template_count__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: device_bay_template_count__gt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: device_bay_template_count__gte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: device_bay_template_count__lt + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: device_bay_template_count__lte + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: device_bay_template_count__n + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - in: query - name: device_bays + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: boolean - description: Has device bays + type: integer - in: query - name: exclude_from_utilization + name: modified_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: front_port_template_count + name: module_type_id schema: type: array items: type: integer - format: int32 - explode: true + nullable: true + description: Module type (ID) + explode: true style: form - in: query - name: front_port_template_count__empty - schema: - type: boolean - - in: query - name: front_port_template_count__gt + name: module_type_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: front_port_template_count__gte + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: front_port_template_count__lt + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: front_port_template_count__lte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: front_port_template_count__n + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: has_front_image - schema: - type: boolean - description: Has a front image - - in: query - name: has_rear_image - schema: - type: boolean - description: Has a rear image - - in: query - name: id + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: name__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: name__nisw schema: type: array items: - type: integer - format: int32 + 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: id__n + name: q + schema: + type: string + description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''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` - [(''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'', ''Other'')]' + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' + description: '' + post: + operationId: dcim_console_server_port_templates_create + description: Post a list of console server port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPortTemplate' + description: '' + put: + operationId: dcim_console_server_port_templates_bulk_update + description: Put a list of console server port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplate' + description: '' + patch: + operationId: dcim_console_server_port_templates_bulk_partial_update + description: Patch a list of console server port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplate' + description: '' + delete: + operationId: dcim_console_server_port_templates_bulk_destroy + description: Delete a list of console server port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/console-server-port-templates/{id}/: + get: + operationId: dcim_console_server_port_templates_retrieve + description: Get a console server port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this console server port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPortTemplate' + description: '' + put: + operationId: dcim_console_server_port_templates_update + description: Put a console server port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this console server port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPortTemplate' + description: '' + patch: + operationId: dcim_console_server_port_templates_partial_update + description: Patch a console server port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this console server port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPortTemplate' + description: '' + delete: + operationId: dcim_console_server_port_templates_destroy + description: Delete a console server port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this console server port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/console-server-ports/: + get: + operationId: dcim_console_server_ports_list + description: Get a list of console server port objects. + parameters: + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: interface_template_count + name: cable_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: interface_template_count__empty + name: cabled schema: type: boolean - in: query - name: interface_template_count__gt + name: connected + schema: + type: boolean + - in: query + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_template_count__gte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_template_count__lt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_template_count__lte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_template_count__n + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interfaces + name: created__lte schema: - type: boolean - description: Has interfaces + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: inventory_item_template_count + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_template_count__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: inventory_item_template_count__gt + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__gte + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__n + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_items - schema: - type: boolean - description: Has inventory items - - in: query - name: is_full_depth + name: description__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: last_updated + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: device schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: last_updated__lte + name: device__n schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: last_updated__n + name: device_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: device_id__n schema: - type: integer + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form - in: query - name: manufacturer + name: device_role schema: type: array items: type: string - description: Manufacturer (slug) + description: Device role (slug) explode: true style: form - in: query - name: manufacturer__n + name: device_role__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Device role (slug) explode: true style: form - in: query - name: manufacturer_id + name: device_role_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Device role (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: device_role_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Device role (ID) explode: true style: form - in: query - name: model + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__empty + name: device_status__empty schema: type: boolean - in: query - name: model__ic + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__ie + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__iew + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__isw + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__n + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__nic + name: device_status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__nie + name: device_status__nie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__niew + name: device_status__niew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: model__nisw + name: device_status__nisw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: modified_by_request + name: device_type schema: - type: string - format: uuid + type: array + items: + type: string + description: Device type (model) + explode: true + style: form - in: query - name: module_bay_template_count + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: id schema: type: array items: @@ -16573,11 +17536,11 @@ paths: explode: true style: form - in: query - name: module_bay_template_count__empty + name: id__empty schema: type: boolean - in: query - name: module_bay_template_count__gt + name: id__gt schema: type: array items: @@ -16586,7 +17549,7 @@ paths: explode: true style: form - in: query - name: module_bay_template_count__gte + name: id__gte schema: type: array items: @@ -16595,7 +17558,7 @@ paths: explode: true style: form - in: query - name: module_bay_template_count__lt + name: id__lt schema: type: array items: @@ -16604,7 +17567,7 @@ paths: explode: true style: form - in: query - name: module_bay_template_count__lte + name: id__lte schema: type: array items: @@ -16613,7 +17576,7 @@ paths: explode: true style: form - in: query - name: module_bay_template_count__n + name: id__n schema: type: array items: @@ -16622,24 +17585,27 @@ paths: explode: true style: form - in: query - name: module_bays + name: label schema: - type: boolean - description: Has module bays - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: boolean + - in: query + name: label__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: part_number + name: label__ie schema: type: array items: @@ -16647,11 +17613,15 @@ paths: explode: true style: form - in: query - name: part_number__empty + name: label__iew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: part_number__ic + name: label__isw schema: type: array items: @@ -16659,7 +17629,7 @@ paths: explode: true style: form - in: query - name: part_number__ie + name: label__n schema: type: array items: @@ -16667,7 +17637,7 @@ paths: explode: true style: form - in: query - name: part_number__iew + name: label__nic schema: type: array items: @@ -16675,7 +17645,7 @@ paths: explode: true style: form - in: query - name: part_number__isw + name: label__nie schema: type: array items: @@ -16683,7 +17653,7 @@ paths: explode: true style: form - in: query - name: part_number__n + name: label__niew schema: type: array items: @@ -16691,7 +17661,7 @@ paths: explode: true style: form - in: query - name: part_number__nic + name: label__nisw schema: type: array items: @@ -16699,225 +17669,290 @@ paths: explode: true style: form - in: query - name: part_number__nie + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_number__niew + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_number__nisw + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: pass_through_ports + name: last_updated__gte schema: - type: boolean - description: Has pass-through ports + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: power_outlet_template_count + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlet_template_count__empty + name: last_updated__lte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: power_outlet_template_count__gt + name: last_updated__n schema: type: array items: - type: integer - format: int32 + 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: power_outlet_template_count__gte + name: location schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: power_outlet_template_count__lt + name: location__n schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: power_outlet_template_count__lte + name: location_id schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: power_outlet_template_count__n + name: location_id__n schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: power_outlets + name: mark_connected schema: type: boolean - description: Has power outlets - in: query - name: power_port_template_count + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Module (ID) explode: true style: form - in: query - name: power_port_template_count__empty + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - 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: power_port_template_count__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_ports + name: name__nic schema: - type: boolean - description: Has power ports + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: name__nie schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: rear_port_template_count + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__empty + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: occupied schema: type: boolean + - 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: rear_port_template_count__gt + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: rear_port_template_count__gte + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: rear_port_template_count__lt + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: rear_port_template_count__lte + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: rear_port_template_count__n + name: region schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: slug + name: region__n schema: type: array items: @@ -16925,11 +17960,15 @@ paths: explode: true style: form - in: query - name: slug__empty + name: region_id schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: region_id__n schema: type: array items: @@ -16937,23 +17976,25 @@ paths: explode: true style: form - in: query - name: slug__ie + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__iew + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__isw + name: site_group schema: type: array items: @@ -16961,7 +18002,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: site_group__n schema: type: array items: @@ -16969,7 +18010,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: site_group_id schema: type: array items: @@ -16977,7 +18018,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: site_group_id__n schema: type: array items: @@ -16985,53 +18026,56 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: slug__nisw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: subdevice_role + name: speed schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second - * `parent` - Parent + * `1200` - 1200 bps - * `child` - Child' - - in: query - name: subdevice_role__n - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. + * `2400` - 2400 bps + + * `4800` - 4800 bps + * `9600` - 9600 bps - * `parent` - Parent + * `19200` - 19.2 kbps - * `child` - Child' + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query name: tag schema: @@ -17049,160 +18093,160 @@ paths: explode: true style: form - in: query - name: u_height + name: type schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: u_height__empty + name: type__empty schema: type: boolean - in: query - name: u_height__gt + name: type__ic schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: u_height__gte + name: type__ie schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: u_height__lt + name: type__iew schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: u_height__lte + name: type__isw schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: u_height__n + name: type__n schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: type__nic schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: type__nie schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: weight__gte + name: type__niew schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: weight__lt + name: type__nisw schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: c5f7197b7211818a + nullable: true + description: Physical port type explode: true style: form - in: query - name: weight__lte + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis schema: type: array items: - type: number - format: double + type: string + description: Virtual Chassis explode: true style: form - in: query - name: weight__n + name: virtual_chassis__n schema: type: array items: - type: number - format: double + type: string + description: Virtual Chassis explode: true style: form - in: query - name: weight_unit + name: virtual_chassis_id schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form - in: query - name: weight_unit__n + name: virtual_chassis_id__n schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -17213,21 +18257,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceTypeList' + $ref: '#/components/schemas/PaginatedConsoleServerPortList' description: '' post: - operationId: dcim_device_types_create - description: Post a list of device type objects. + operationId: dcim_console_server_ports_create + description: Post a list of console server port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -17237,11 +18281,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_types_bulk_update - description: Put a list of device type objects. + operationId: dcim_console_server_ports_bulk_update + description: Put a list of console server port objects. tags: - dcim requestBody: @@ -17250,12 +18294,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -17267,11 +18311,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_types_bulk_partial_update - description: Patch a list of device type objects. + operationId: dcim_console_server_ports_bulk_partial_update + description: Patch a list of console server port objects. tags: - dcim requestBody: @@ -17280,12 +18324,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -17297,11 +18341,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_types_bulk_destroy - description: Delete a list of device type objects. + operationId: dcim_console_server_ports_bulk_destroy + description: Delete a list of console server port objects. tags: - dcim requestBody: @@ -17310,12 +18354,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -17323,16 +18367,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/{id}/: + /api/dcim/console-server-ports/{id}/: get: - operationId: dcim_device_types_retrieve - description: Get a device type object. + operationId: dcim_console_server_ports_retrieve + description: Get a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -17344,17 +18388,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_types_update - description: Put a device type object. + operationId: dcim_console_server_ports_update + description: Put a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -17362,10 +18406,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -17375,17 +18419,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_types_partial_update - description: Patch a device type object. + operationId: dcim_console_server_ports_partial_update + description: Patch a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -17393,10 +18437,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -17405,17 +18449,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_types_destroy - description: Delete a device type object. + operationId: dcim_console_server_ports_destroy + description: Delete a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -17425,101 +18469,105 @@ paths: responses: '204': description: No response body - /api/dcim/devices/: + /api/dcim/console-server-ports/{id}/trace/: get: - operationId: dcim_devices_list - description: Get a list of device objects. + operationId: dcim_console_server_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this console server port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPort' + description: '' + /api/dcim/device-bay-templates/: + get: + operationId: dcim_device_bay_templates_list + description: Get a list of device bay template objects. parameters: - in: query - name: airflow + name: created schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `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' + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: airflow__n + name: created__empty schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `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' + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: asset_tag + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__empty + name: created__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: asset_tag__ic + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__ie + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__iew + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__isw + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -17527,7 +18575,11 @@ paths: explode: true style: form - in: query - name: asset_tag__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -17535,7 +18587,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nic + name: description__ie schema: type: array items: @@ -17543,7 +18595,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nie + name: description__iew schema: type: array items: @@ -17551,7 +18603,7 @@ paths: explode: true style: form - in: query - name: asset_tag__niew + name: description__isw schema: type: array items: @@ -17559,7 +18611,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nisw + name: description__n schema: type: array items: @@ -17567,47 +18619,57 @@ paths: explode: true style: form - in: query - name: cluster_id + name: description__nic schema: type: array items: - type: integer - nullable: true - description: VM cluster (ID) + type: string explode: true style: form - in: query - name: cluster_id__n + name: description__nie schema: type: array items: - type: integer - nullable: true - description: VM cluster (ID) + type: string explode: true style: form - in: query - name: config_template_id + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device_type_id schema: type: array items: type: integer - nullable: true - description: Config template (ID) + description: Device type (ID) explode: true style: form - in: query - name: config_template_id__n + name: device_type_id__n schema: type: array items: type: integer - nullable: true - description: Config template (ID) + description: Device type (ID) explode: true style: form - in: query - name: console_port_count + name: id schema: type: array items: @@ -17616,11 +18678,11 @@ paths: explode: true style: form - in: query - name: console_port_count__empty + name: id__empty schema: type: boolean - in: query - name: console_port_count__gt + name: id__gt schema: type: array items: @@ -17629,7 +18691,7 @@ paths: explode: true style: form - in: query - name: console_port_count__gte + name: id__gte schema: type: array items: @@ -17638,7 +18700,7 @@ paths: explode: true style: form - in: query - name: console_port_count__lt + name: id__lt schema: type: array items: @@ -17647,7 +18709,7 @@ paths: explode: true style: form - in: query - name: console_port_count__lte + name: id__lte schema: type: array items: @@ -17656,7 +18718,7 @@ paths: explode: true style: form - in: query - name: console_port_count__n + name: id__n schema: type: array items: @@ -17665,127 +18727,496 @@ paths: explode: true style: form - in: query - name: console_ports + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty schema: type: boolean - description: Has console ports - in: query - name: console_server_port_count + name: label__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__empty + name: label__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: console_server_port_count__gt + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__gte + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__n + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_ports + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: 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: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: type: boolean - description: Has console server ports - in: query - name: contact + name: name__ic schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: name__ie schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: name__iew schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: name__isw schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: name__n schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: name__nic schema: type: array items: - type: integer - description: Contact Role + 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: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' + description: '' + post: + operationId: dcim_device_bay_templates_create + description: Post a list of device bay template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayTemplate' + description: '' + put: + operationId: dcim_device_bay_templates_bulk_update + description: Put a list of device bay template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplate' + description: '' + patch: + operationId: dcim_device_bay_templates_bulk_partial_update + description: Patch a list of device bay template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplate' + description: '' + delete: + operationId: dcim_device_bay_templates_bulk_destroy + description: Delete a list of device bay template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-bay-templates/{id}/: + get: + operationId: dcim_device_bay_templates_retrieve + description: Get a device bay template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device bay template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayTemplate' + description: '' + put: + operationId: dcim_device_bay_templates_update + description: Put a device bay template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device bay template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceBayTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayTemplate' + description: '' + patch: + operationId: dcim_device_bay_templates_partial_update + description: Patch a device bay template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device bay template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayTemplate' + description: '' + delete: + operationId: dcim_device_bay_templates_destroy + description: Delete a device bay template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device bay template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-bays/: + get: + operationId: dcim_device_bays_list + description: Get a list of device bay objects. + parameters: - in: query name: created schema: @@ -17939,201 +19370,209 @@ paths: explode: true style: form - in: query - name: device_bay_count + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: device_bay_count__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: device_bay_count__gt + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: device_bay_count__gte + name: device_id__n schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: device_bay_count__lt + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: device_bay_count__lte + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: device_bay_count__n + name: device_role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: device_bays + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__empty schema: type: boolean - description: Has device bays - in: query - name: device_type + name: device_status__ic schema: type: array items: type: string - description: Device type (slug) + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: device_type__n + name: device_status__ie schema: type: array items: type: string - description: Device type (slug) + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: device_type_id + name: device_status__iew schema: type: array items: - type: integer - description: Device type (ID) + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: device_type_id__n + name: device_status__isw schema: type: array items: - type: integer - description: Device type (ID) + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: face + name: device_status__n schema: - type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - enum: - - front - - rear - description: '* `front` - Front - - * `rear` - Rear' + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: face__n + name: device_status__nic schema: - type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - enum: - - front - - rear - description: '* `front` - Front - - * `rear` - Rear' + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: front_port_count + name: device_status__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: front_port_count__empty + name: device_status__niew schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: front_port_count__gt + name: device_status__nisw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: front_port_count__gte + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: front_port_count__lt + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: front_port_count__lte + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: front_port_count__n + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - - in: query - name: has_oob_ip - schema: - type: boolean - description: Has an out-of-band IP - - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: has_virtual_device_context - schema: - type: boolean - description: Has virtual device context - in: query name: id schema: @@ -18193,131 +19632,129 @@ paths: explode: true style: form - in: query - name: interface_count + name: installed_device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: interface_count__empty - schema: - type: boolean - - in: query - name: interface_count__gt + name: installed_device__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: interface_count__gte + name: installed_device_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: interface_count__lt + name: installed_device_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: interface_count__lte + name: label schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__n + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_count + name: label__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_count__empty + name: label__iew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: inventory_item_count__gt + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_count__gte + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_count__lt + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_count__lte + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_count__n + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: is_full_depth + name: label__nisw schema: - type: boolean - description: Is full depth + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -18381,75 +19818,30 @@ paths: 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: latitude + name: location 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 + type: string + description: Location (slug) explode: true style: form - in: query - name: latitude__n + name: location__n schema: type: array items: - type: number - format: double + type: string + description: Location (slug) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: local_context_data - schema: - type: boolean - description: Has local config context data - in: query name: location_id schema: @@ -18469,65 +19861,24 @@ paths: 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 + name: modified_by_request schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + format: uuid - in: query - name: longitude__lte + name: name schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: longitude__n + name: name__empty schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: mac_address + name: name__ic schema: type: array items: @@ -18535,7 +19886,7 @@ paths: explode: true style: form - in: query - name: mac_address__ic + name: name__ie schema: type: array items: @@ -18543,7 +19894,7 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: name__iew schema: type: array items: @@ -18551,7 +19902,7 @@ paths: explode: true style: form - in: query - name: mac_address__iew + name: name__isw schema: type: array items: @@ -18559,7 +19910,7 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: name__n schema: type: array items: @@ -18567,7 +19918,7 @@ paths: explode: true style: form - in: query - name: mac_address__n + name: name__nic schema: type: array items: @@ -18575,7 +19926,7 @@ paths: explode: true style: form - in: query - name: mac_address__nic + name: name__nie schema: type: array items: @@ -18583,7 +19934,7 @@ paths: explode: true style: form - in: query - name: mac_address__nie + name: name__niew schema: type: array items: @@ -18591,145 +19942,126 @@ paths: explode: true style: form - in: query - name: mac_address__niew + 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: mac_address__nisw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: manufacturer + name: rack schema: type: array items: type: string - description: Manufacturer (slug) + description: Rack (name) explode: true style: form - in: query - name: manufacturer__n + name: rack__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Rack (name) explode: true style: form - in: query - name: manufacturer_id + name: rack_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Rack (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: rack_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Rack (ID) explode: true style: form - in: query - name: model + name: region schema: type: array items: type: string - description: Device model (slug) explode: true style: form - in: query - name: model__n + name: region__n schema: type: array items: type: string - description: Device model (slug) - explode: true - style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_bay_count - schema: - type: array - items: - type: integer - format: int32 explode: true style: form - in: query - name: module_bay_count__empty - schema: - type: boolean - - in: query - name: module_bay_count__gt + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bay_count__gte + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bay_count__lt + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: module_bay_count__lte + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: module_bay_count__n + name: site_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bays - schema: - type: boolean - description: Has module bays - - in: query - name: name + name: site_group__n schema: type: array items: @@ -18737,11 +20069,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: site_group_id schema: type: array items: @@ -18749,7 +20077,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: site_group_id__n schema: type: array items: @@ -18757,23 +20085,25 @@ paths: explode: true style: form - in: query - name: name__iew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: name__isw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: name__n + name: tag schema: type: array items: @@ -18781,7 +20111,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: tag__n schema: type: array items: @@ -18789,383 +20119,531 @@ paths: explode: true style: form - in: query - name: name__nie + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: name__niew + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: name__nisw + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - in: query - name: oob_ip_id + name: virtual_chassis_id schema: type: array items: type: integer - description: OOB IP (ID) + description: Virtual Chassis (ID) explode: true style: form - in: query - name: oob_ip_id__n + name: virtual_chassis_id__n schema: type: array items: type: integer - description: OOB IP (ID) + description: Virtual Chassis (ID) explode: true style: form - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceBayList' + description: '' + post: + operationId: dcim_device_bays_create + description: Post a list of device bay objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceBayRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBay' + description: '' + put: + operationId: dcim_device_bays_bulk_update + description: Put a list of device bay objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBay' + description: '' + patch: + operationId: dcim_device_bays_bulk_partial_update + description: Patch a list of device bay objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBay' + description: '' + delete: + operationId: dcim_device_bays_bulk_destroy + description: Delete a list of device bay objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceBayRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-bays/{id}/: + get: + operationId: dcim_device_bays_retrieve + description: Get a device bay object. + parameters: + - in: path + name: id schema: - type: string - - in: query - name: parent_bay_id + type: integer + description: A unique integer value identifying this device bay. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBay' + description: '' + put: + operationId: dcim_device_bays_update + description: Put a device bay object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Parent bay (ID) - explode: true - style: form - - in: query - name: parent_bay_id__n + type: integer + description: A unique integer value identifying this device bay. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBayRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceBayRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBay' + description: '' + patch: + operationId: dcim_device_bays_partial_update + description: Patch a device bay object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Parent bay (ID) - explode: true - style: form - - in: query - name: parent_device_id + type: integer + description: A unique integer value identifying this device bay. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDeviceBayRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDeviceBayRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceBay' + description: '' + delete: + operationId: dcim_device_bays_destroy + description: Delete a device bay object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Parent Device (ID) - explode: true - style: form + type: integer + description: A unique integer value identifying this device bay. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-roles/: + get: + operationId: dcim_device_roles_list + description: Get a list of device role objects. + parameters: - in: query - name: parent_device_id__n + name: color schema: type: array items: - type: integer - description: Parent Device (ID) + type: string explode: true style: form - in: query - name: pass_through_ports + name: color__empty schema: type: boolean - description: Has pass-through ports - in: query - name: platform + name: color__ic schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: color__ie schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform_id + name: color__iew schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n + name: color__isw schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: position + name: color__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__gt + name: color__nic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__gte + name: color__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lt + name: color__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lte + name: color__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__n + name: config_template_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: power_outlet_count + name: config_template_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: power_outlet_count__empty - schema: - type: boolean - - in: query - name: power_outlet_count__gt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlet_count__gte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlet_count__lt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlet_count__lte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlet_count__n + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_port_count + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_port_count__empty - schema: - type: boolean - - in: query - name: power_port_count__gt + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_port_count__gte + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lt + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__n + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: primary_ip4_id + name: description__isw schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: description__n schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: description__nic schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: description__nie schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_id + name: description__niew schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: description__nisw schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rear_port_count + name: id schema: type: array items: @@ -19174,11 +20652,11 @@ paths: explode: true style: form - in: query - name: rear_port_count__empty + name: id__empty schema: type: boolean - in: query - name: rear_port_count__gt + name: id__gt schema: type: array items: @@ -19187,7 +20665,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__gte + name: id__gte schema: type: array items: @@ -19196,7 +20674,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lt + name: id__lt schema: type: array items: @@ -19205,7 +20683,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lte + name: id__lte schema: type: array items: @@ -19214,7 +20692,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__n + name: id__n schema: type: array items: @@ -19223,99 +20701,81 @@ paths: explode: true style: form - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id + name: last_updated schema: type: array items: - type: integer - description: Region (ID) + type: string + format: date-time explode: true style: form - in: query - name: region_id__n + name: last_updated__empty schema: type: array items: - type: integer - description: Region (ID) + type: string + format: date-time explode: true style: form - in: query - name: role + name: last_updated__gt schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: role__n + name: last_updated__gte schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: role_id + name: last_updated__lt schema: type: array items: - type: integer - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: role_id__n + name: last_updated__lte schema: type: array items: - type: integer - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: serial + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: serial__empty + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: boolean + type: integer - in: query - name: serial__ic + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: serial__ie + name: name schema: type: array items: @@ -19323,15 +20783,11 @@ paths: explode: true style: form - in: query - name: serial__iew + name: name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: serial__isw + name: name__ic schema: type: array items: @@ -19339,7 +20795,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: name__ie schema: type: array items: @@ -19347,7 +20803,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: name__iew schema: type: array items: @@ -19355,7 +20811,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: name__isw schema: type: array items: @@ -19363,7 +20819,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: name__n schema: type: array items: @@ -19371,7 +20827,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: name__nic schema: type: array items: @@ -19379,97 +20835,76 @@ paths: explode: true style: form - in: query - name: site + name: name__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: name__niew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: name__nisw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - - in: query - name: site_group__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: string - in: query - name: site_group_id__n + name: q schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: string + description: Search - in: query - name: site_id + name: slug schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__empty schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: boolean - in: query - name: status + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: status__n + name: slug__ie schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: tag + name: slug__iew schema: type: array items: @@ -19477,7 +20912,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__isw schema: type: array items: @@ -19485,77 +20920,59 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nic 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 + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -19564,144 +20981,9 @@ paths: type: string format: uuid - in: query - name: vc_position - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__empty - schema: - type: boolean - - in: query - name: vc_position__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority__empty + name: vm_role schema: type: boolean - - in: query - name: vc_priority__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_member - schema: - type: boolean - description: Is a virtual chassis member tags: - dcim security: @@ -19712,21 +20994,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' + $ref: '#/components/schemas/PaginatedDeviceRoleList' description: '' post: - operationId: dcim_devices_create - description: Post a list of device objects. + operationId: dcim_device_roles_create + description: Post a list of device role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -19736,11 +21018,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceRole' description: '' put: - operationId: dcim_devices_bulk_update - description: Put a list of device objects. + operationId: dcim_device_roles_bulk_update + description: Put a list of device role objects. tags: - dcim requestBody: @@ -19749,12 +21031,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -19766,11 +21048,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceRole' description: '' patch: - operationId: dcim_devices_bulk_partial_update - description: Patch a list of device objects. + operationId: dcim_device_roles_bulk_partial_update + description: Patch a list of device role objects. tags: - dcim requestBody: @@ -19779,12 +21061,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -19796,11 +21078,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceRole' description: '' delete: - operationId: dcim_devices_bulk_destroy - description: Delete a list of device objects. + operationId: dcim_device_roles_bulk_destroy + description: Delete a list of device role objects. tags: - dcim requestBody: @@ -19809,12 +21091,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -19822,16 +21104,16 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/: + /api/dcim/device-roles/{id}/: get: - operationId: dcim_devices_retrieve - description: Get a device object. + operationId: dcim_device_roles_retrieve + description: Get a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -19843,17 +21125,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceRole' description: '' put: - operationId: dcim_devices_update - description: Put a device object. + operationId: dcim_device_roles_update + description: Put a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -19861,10 +21143,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -19874,17 +21156,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceRole' description: '' patch: - operationId: dcim_devices_partial_update - description: Patch a device object. + operationId: dcim_device_roles_partial_update + description: Patch a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -19892,10 +21174,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedDeviceRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedDeviceRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -19904,17 +21186,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceRole' description: '' delete: - operationId: dcim_devices_destroy - description: Delete a device object. + operationId: dcim_device_roles_destroy + description: Delete a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -19924,137 +21206,173 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/render-config/: - post: - operationId: dcim_devices_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/dcim/device-types/: + get: + operationId: dcim_device_types_list + description: Get a list of device type objects. parameters: - in: query - name: format + name: airflow schema: type: string + x-spec-enum-id: 943288113dad6782 + nullable: true enum: - - json - - txt - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this device. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - /api/dcim/front-port-templates/: - get: - operationId: dcim_front_port_templates_list - description: Get a list of front port template objects. - parameters: + - bottom-to-top + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - rear-to-side + - right-to-left + - side-to-rear + - top-to-bottom + description: '* `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 + + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: color + name: console_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__empty + name: console_port_template_count__empty schema: type: boolean - in: query - name: color__ic + name: console_port_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__ie + name: console_port_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__iew + name: console_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__isw + name: console_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__n + name: console_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: console_ports + schema: + type: boolean + description: Has console ports + - in: query + name: console_server_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nie + name: console_server_port_template_count__empty + schema: + type: boolean + - in: query + name: console_server_port_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__niew + name: console_server_port_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nisw + name: console_server_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 + explode: true + style: form + - in: query + name: console_server_port_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: console_server_port_template_count__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form + - in: query + name: console_server_ports + schema: + type: boolean + description: Has console server ports - in: query name: created schema: @@ -20123,6 +21441,44 @@ paths: schema: type: string format: uuid + - in: query + name: default_platform + schema: + type: array + items: + type: string + description: Default platform (slug) + explode: true + style: form + - in: query + name: default_platform__n + schema: + type: array + items: + type: string + description: Default platform (slug) + explode: true + style: form + - in: query + name: default_platform_id + schema: + type: array + items: + type: integer + nullable: true + description: Default platform (ID) + explode: true + style: form + - in: query + name: default_platform_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Default platform (ID) + explode: true + style: form - in: query name: description schema: @@ -20208,45 +21564,140 @@ paths: explode: true style: form - in: query - name: device_type_id + name: device_bay_template_count schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: device_bay_template_count__empty + schema: + type: boolean + - in: query + name: device_bay_template_count__gt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id + name: device_bay_template_count__gte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: device_bay_template_count__lt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 + explode: true + style: form + - in: query + name: device_bay_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bay_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bays + schema: + type: boolean + description: Has device bays + - in: query + name: exclude_from_utilization + schema: + type: boolean + - in: query + name: front_port_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__empty + schema: + type: boolean + - in: query + name: front_port_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__lte + schema: + type: array + items: + type: integer + format: int32 explode: true style: form + - in: query + name: front_port_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_front_image + schema: + type: boolean + description: Has a front image + - in: query + name: has_rear_image + schema: + type: boolean + description: Has a rear image - in: query name: id schema: @@ -20306,89 +21757,135 @@ paths: explode: true style: form - in: query - name: label + name: interface_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__empty + name: interface_template_count__empty schema: type: boolean - in: query - name: label__ic + name: interface_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__ie + name: interface_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: interface_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: interface_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: interface_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: interfaces + schema: + type: boolean + description: Has interfaces + - in: query + name: inventory_item_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: inventory_item_template_count__empty + schema: + type: boolean + - in: query + name: inventory_item_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__niew + name: inventory_item_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nisw + name: inventory_item_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_item_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_item_template_count__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form + - in: query + name: inventory_items + schema: + type: boolean + description: Has inventory items + - in: query + name: is_full_depth + schema: + type: boolean - in: query name: last_updated schema: @@ -20459,52 +21956,43 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_type_id + name: manufacturer schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: module_type_id__n + name: manufacturer__n schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: moduletype_id + name: manufacturer_id schema: type: array items: type: integer - nullable: true - description: Module type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: moduletype_id__n + name: manufacturer_id__n schema: type: array items: type: integer - nullable: true - description: Module type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: name + name: model schema: type: array items: @@ -20512,11 +22000,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: model__empty schema: type: boolean - in: query - name: name__ic + name: model__ic schema: type: array items: @@ -20524,7 +22012,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: model__ie schema: type: array items: @@ -20532,7 +22020,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: model__iew schema: type: array items: @@ -20540,7 +22028,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: model__isw schema: type: array items: @@ -20548,7 +22036,7 @@ paths: explode: true style: form - in: query - name: name__n + name: model__n schema: type: array items: @@ -20556,7 +22044,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: model__nic schema: type: array items: @@ -20564,7 +22052,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: model__nie schema: type: array items: @@ -20572,7 +22060,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: model__niew schema: type: array items: @@ -20580,48 +22068,20 @@ paths: explode: true style: form - in: query - name: name__nisw + name: model__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: q + name: modified_by_request schema: type: string - description: Search - - in: query - name: rear_port_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_id__n - schema: - type: array - items: - type: integer - explode: true - style: form + format: uuid - in: query - name: rear_port_position + name: module_bay_template_count schema: type: array items: @@ -20630,11 +22090,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty + name: module_bay_template_count__empty schema: type: boolean - in: query - name: rear_port_position__gt + name: module_bay_template_count__gt schema: type: array items: @@ -20643,7 +22103,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: module_bay_template_count__gte schema: type: array items: @@ -20652,7 +22112,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: module_bay_template_count__lt schema: type: array items: @@ -20661,7 +22121,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: module_bay_template_count__lte schema: type: array items: @@ -20670,7 +22130,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: module_bay_template_count__n schema: type: array items: @@ -20679,303 +22139,36 @@ paths: explode: true style: form - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: 0276d1110ada597a - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0276d1110ada597a - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFrontPortTemplateList' - description: '' - post: - operationId: dcim_front_port_templates_create - description: Post a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_bulk_update - description: Put a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_bulk_partial_update - description: Patch a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_bulk_destroy - description: Delete a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-port-templates/{id}/: - get: - operationId: dcim_front_port_templates_retrieve - description: Get a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_update - description: Put a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_partial_update - description: Patch a front port template object. - parameters: - - in: path - name: id + name: module_bays schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_destroy - description: Delete a front port template object. - parameters: - - in: path - name: id + type: boolean + description: Has module bays + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-ports/: - get: - operationId: dcim_front_ports_list - description: Get a list of front port objects. - parameters: - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - in: query - name: cable_id__n + name: part_number schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - in: query - name: cabled + name: part_number__empty schema: type: boolean - in: query - name: color + name: part_number__ic schema: type: array items: @@ -20983,11 +22176,7 @@ paths: explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: part_number__ie schema: type: array items: @@ -20995,7 +22184,7 @@ paths: explode: true style: form - in: query - name: color__ie + name: part_number__iew schema: type: array items: @@ -21003,7 +22192,7 @@ paths: explode: true style: form - in: query - name: color__iew + name: part_number__isw schema: type: array items: @@ -21011,7 +22200,7 @@ paths: explode: true style: form - in: query - name: color__isw + name: part_number__n schema: type: array items: @@ -21019,7 +22208,7 @@ paths: explode: true style: form - in: query - name: color__n + name: part_number__nic schema: type: array items: @@ -21027,7 +22216,7 @@ paths: explode: true style: form - in: query - name: color__nic + name: part_number__nie schema: type: array items: @@ -21035,7 +22224,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: part_number__niew schema: type: array items: @@ -21043,7 +22232,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: part_number__nisw schema: type: array items: @@ -21051,241 +22240,143 @@ paths: explode: true style: form - in: query - name: color__nisw + name: pass_through_ports schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has pass-through ports - in: query - name: created + name: power_outlet_template_count schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: power_outlet_template_count__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: power_outlet_template_count__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: power_outlet_template_count__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: power_outlet_template_count__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: power_outlet_template_count__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: power_outlet_template_count__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: power_outlets schema: - type: string - format: uuid + type: boolean + description: Has power outlets - in: query - name: description + name: power_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: power_port_template_count__empty schema: type: boolean - in: query - name: description__ic + name: power_port_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: power_port_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: power_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: power_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: power_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - 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 - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type_id + name: power_ports schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form + type: boolean + description: Has power ports - in: query - name: device_type_id__n + name: q schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form + type: string + description: Search - in: query - name: id + name: rear_port_template_count schema: type: array items: @@ -21294,11 +22385,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: rear_port_template_count__empty schema: type: boolean - in: query - name: id__gt + name: rear_port_template_count__gt schema: type: array items: @@ -21307,7 +22398,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: rear_port_template_count__gte schema: type: array items: @@ -21316,7 +22407,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: rear_port_template_count__lt schema: type: array items: @@ -21325,7 +22416,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: rear_port_template_count__lte schema: type: array items: @@ -21334,7 +22425,7 @@ paths: explode: true style: form - in: query - name: id__n + name: rear_port_template_count__n schema: type: array items: @@ -21343,7 +22434,7 @@ paths: explode: true style: form - in: query - name: label + name: slug schema: type: array items: @@ -21351,277 +22442,100 @@ paths: explode: true style: form - in: query - name: label__empty + name: slug__empty schema: type: boolean - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: last_updated + name: slug__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: slug__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: slug__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: slug__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: slug__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: slug__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: slug__nie 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 + name: slug__niew schema: type: array items: type: string - description: Location (slug) explode: true style: form - in: query - name: location__n + name: slug__nisw 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 (ID) explode: true style: form - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request + name: subdevice_role schema: type: string - format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - 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 + x-spec-enum-id: d10d91f690a856c2 + nullable: true + title: Parent/child status + enum: + - child + - parent + description: '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' - in: query - name: name__nie + name: tag schema: type: array items: @@ -21629,7 +22543,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: tag__n schema: type: array items: @@ -21637,363 +22551,144 @@ paths: explode: true style: form - in: query - name: name__nisw + name: u_height schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: occupied + name: u_height__empty schema: type: boolean - - 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: q - schema: - type: string - description: Search - in: query - name: rack + name: u_height__gt schema: type: array items: - type: string - description: Rack (name) + type: number + format: double explode: true style: form - in: query - name: rack__n + name: u_height__gte schema: type: array items: - type: string - description: Rack (name) + type: number + format: double explode: true style: form - in: query - name: rack_id + name: u_height__lt schema: type: array items: - type: integer - description: Rack (ID) + type: number + format: double explode: true style: form - in: query - name: rack_id__n + name: u_height__lte schema: type: array items: - type: integer - description: Rack (ID) + type: number + format: double explode: true style: form - in: query - name: rear_port_id + name: u_height__n schema: type: array items: - type: integer + type: number + format: double explode: true style: form - in: query - name: rear_port_id__n + name: updated_by_request schema: - type: array - items: - type: integer - explode: true - style: form + type: string + format: uuid - in: query - name: rear_port_position + name: weight schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: rear_port_position__empty + name: weight__empty schema: type: boolean - in: query - name: rear_port_position__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rear_port_position__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rear_port_position__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rear_port_position__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rear_port_position__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - 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: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n + name: weight__gt schema: type: array items: - type: integer - description: Site (ID) + type: number + format: double explode: true style: form - in: query - name: tag + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: type + name: weight__lte schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: number + format: double explode: true style: form - in: query - name: type__n + name: weight__n schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: number + format: double explode: true style: form - in: query - name: updated_by_request + name: weight_unit schema: type: string - format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form + x-spec-enum-id: 7c1876f422815884 + nullable: true + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -22004,21 +22699,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFrontPortList' + $ref: '#/components/schemas/PaginatedDeviceTypeList' description: '' post: - operationId: dcim_front_ports_create - description: Post a list of front port objects. + operationId: dcim_device_types_create + description: Post a list of device type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -22028,11 +22723,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_front_ports_bulk_update - description: Put a list of front port objects. + operationId: dcim_device_types_bulk_update + description: Put a list of device type objects. tags: - dcim requestBody: @@ -22041,12 +22736,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -22058,11 +22753,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_front_ports_bulk_partial_update - description: Patch a list of front port objects. + operationId: dcim_device_types_bulk_partial_update + description: Patch a list of device type objects. tags: - dcim requestBody: @@ -22071,12 +22766,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -22088,11 +22783,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_front_ports_bulk_destroy - description: Delete a list of front port objects. + operationId: dcim_device_types_bulk_destroy + description: Delete a list of device type objects. tags: - dcim requestBody: @@ -22101,12 +22796,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -22114,16 +22809,16 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/: + /api/dcim/device-types/{id}/: get: - operationId: dcim_front_ports_retrieve - description: Get a front port object. + operationId: dcim_device_types_retrieve + description: Get a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -22135,17 +22830,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_front_ports_update - description: Put a front port object. + operationId: dcim_device_types_update + description: Put a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -22153,10 +22848,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -22166,17 +22861,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_front_ports_partial_update - description: Patch a front port object. + operationId: dcim_device_types_partial_update + description: Patch a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -22184,10 +22879,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -22196,17 +22891,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_front_ports_destroy - description: Delete a front port object. + operationId: dcim_device_types_destroy + description: Delete a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -22216,120 +22911,125 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/paths/: + /api/dcim/devices/: get: - operationId: dcim_front_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. + operationId: dcim_devices_list + description: Get a list of device objects. parameters: - - in: path - name: id + - in: query + name: airflow schema: - type: integer - description: A unique integer value identifying this front port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - /api/dcim/interface-templates/: - get: - operationId: dcim_interface_templates_list - description: Get a list of interface template objects. - parameters: + type: string + x-spec-enum-id: 943288113dad6782 + nullable: true + enum: + - bottom-to-top + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - rear-to-side + - right-to-left + - side-to-rear + - top-to-bottom + description: '* `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 + + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: bridge_id + name: asset_tag schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: bridge_id__n + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: created + name: asset_tag__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: asset_tag__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: asset_tag__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: asset_tag__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: asset_tag__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: asset_tag__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: asset_tag__niew 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: description + name: asset_tag__nisw schema: type: array items: @@ -22337,127 +23037,132 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: cluster_group schema: type: array items: type: string + description: Cluster group (slug) explode: true style: form - in: query - name: description__ie + name: cluster_group__n schema: type: array items: type: string + description: Cluster group (slug) explode: true style: form - in: query - name: description__iew + name: cluster_group_id schema: type: array items: - type: string + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: description__isw + name: cluster_group_id__n schema: type: array items: - type: string + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: description__n + name: cluster_id schema: type: array items: - type: string + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: description__nic + name: cluster_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: description__nie + name: config_template_id schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: description__niew + name: config_template_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: description__nisw + name: console_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: console_port_count__empty + schema: + type: boolean + - in: query + name: console_port_count__gt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: console_port_count__gte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id + name: console_port_count__lt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: console_port_count__lte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: console_port_count__n schema: type: array items: @@ -22466,11 +23171,12 @@ paths: explode: true style: form - in: query - name: id__empty + name: console_ports schema: type: boolean + description: Has console ports - in: query - name: id__gt + name: console_server_port_count schema: type: array items: @@ -22479,7 +23185,11 @@ paths: explode: true style: form - in: query - name: id__gte + name: console_server_port_count__empty + schema: + type: boolean + - in: query + name: console_server_port_count__gt schema: type: array items: @@ -22488,7 +23198,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: console_server_port_count__gte schema: type: array items: @@ -22497,7 +23207,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: console_server_port_count__lt schema: type: array items: @@ -22506,7 +23216,7 @@ paths: explode: true style: form - in: query - name: id__n + name: console_server_port_count__lte schema: type: array items: @@ -22515,35 +23225,39 @@ paths: explode: true style: form - in: query - name: label + name: console_server_port_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__empty + name: console_server_ports schema: type: boolean + description: Has console server ports - in: query - name: label__ic + name: contact schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: label__ie + name: contact__n schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: label__iew + name: contact_group schema: type: array items: @@ -22551,7 +23265,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: contact_group__n schema: type: array items: @@ -22559,47 +23273,52 @@ paths: explode: true style: form - in: query - name: label__n + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: label__nic + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: label__nie + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__niew + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nisw + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: last_updated + name: created__gte schema: type: array items: @@ -22608,7 +23327,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__lt schema: type: array items: @@ -22617,7 +23336,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__lte schema: type: array items: @@ -22626,7 +23345,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__n schema: type: array items: @@ -22635,101 +23354,40 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__ie 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: mgmt_only - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: module_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - 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 + name: description__iew schema: type: array items: @@ -22737,7 +23395,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__isw schema: type: array items: @@ -22745,7 +23403,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__n schema: type: array items: @@ -22753,7 +23411,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__nic schema: type: array items: @@ -22761,7 +23419,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__nie schema: type: array items: @@ -22769,7 +23427,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__niew schema: type: array items: @@ -22777,7 +23435,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nisw schema: type: array items: @@ -22785,664 +23443,313 @@ paths: explode: true style: form - in: query - name: name__niew + name: device_bay_count schema: type: array items: - type: string + type: integer + format: int32 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. + name: device_bay_count__empty schema: - type: string + type: boolean - in: query - name: poe_mode + name: device_bay_count__gt schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer + format: int32 explode: true style: form - in: query - name: poe_mode__n + name: device_bay_count__gte schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer + format: int32 explode: true style: form - in: query - name: poe_type + name: device_bay_count__lt schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + format: int32 explode: true style: form - in: query - name: poe_type__n + name: device_bay_count__lte schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + format: int32 explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rf_role + name: device_bay_count__n schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer + format: int32 explode: true style: form - in: query - name: rf_role__n + name: device_bays schema: - type: array - items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - explode: true - style: form + type: boolean + description: Has device bays - in: query - name: type + name: device_type schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + description: Device type (slug) explode: true style: form - in: query - name: type__n + name: device_type__n schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + description: Device type (slug) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedInterfaceTemplateList' - description: '' - post: - operationId: dcim_interface_templates_create - description: Post a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - put: - operationId: dcim_interface_templates_bulk_update - description: Put a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - patch: - operationId: dcim_interface_templates_bulk_partial_update - description: Patch a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - delete: - operationId: dcim_interface_templates_bulk_destroy - description: Delete a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/interface-templates/{id}/: - get: - operationId: dcim_interface_templates_retrieve - description: Get a interface template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - put: - operationId: dcim_interface_templates_update - description: Put a interface template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - patch: - operationId: dcim_interface_templates_partial_update - description: Patch a interface template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - delete: - operationId: dcim_interface_templates_destroy - description: Delete a interface template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/interfaces/: - get: - operationId: dcim_interfaces_list - description: Get a list of interface objects. - parameters: - - in: query - name: bridge_id + name: device_type_id schema: type: array items: type: integer - description: Bridged interface (ID) + description: Device type (ID) explode: true style: form - in: query - name: bridge_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Bridged interface (ID) + description: Device type (ID) explode: true style: form - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n + name: face schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 + x-spec-enum-id: d2fb9b3f75158b83 + nullable: true + title: Rack face enum: - - A - - B - description: '* `A` - A + - front + - rear + description: '* `front` - Front - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form + * `rear` - Rear' - in: query - name: cable_id__n + name: front_port_count schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected + name: front_port_count__empty schema: type: boolean - 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 + name: front_port_count__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: front_port_count__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: front_port_count__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: front_port_count__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: front_port_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: has_oob_ip schema: type: boolean + description: Has an out-of-band IP - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw + name: has_primary_ip schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has a primary IP - in: query - name: description__n + name: has_virtual_device_context schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has virtual device context - in: query - name: description__nic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__niew + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: device + name: id__lt schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__lte schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device_id + name: id__n schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: interface_count schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + name: interface_count__empty schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form + type: boolean - in: query - name: device_type__n + name: interface_count__gt schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: interface_count__gte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: interface_count__lt schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: duplex + name: interface_count__lte schema: type: array items: - type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true + type: integer + format: int32 explode: true style: form - in: query - name: duplex__n + name: interface_count__n schema: type: array items: - type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true + type: integer + format: int32 explode: true style: form - in: query - name: enabled + name: interfaces schema: type: boolean + description: Has interfaces - in: query - name: id + name: inventory_item_count schema: type: array items: @@ -23451,11 +23758,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: inventory_item_count__empty schema: type: boolean - in: query - name: id__gt + name: inventory_item_count__gt schema: type: array items: @@ -23464,7 +23771,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: inventory_item_count__gte schema: type: array items: @@ -23473,7 +23780,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: inventory_item_count__lt schema: type: array items: @@ -23482,7 +23789,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: inventory_item_count__lte schema: type: array items: @@ -23491,7 +23798,7 @@ paths: explode: true style: form - in: query - name: id__n + name: inventory_item_count__n schema: type: array items: @@ -23500,132 +23807,144 @@ paths: explode: true style: form - in: query - name: kind + name: is_full_depth schema: - type: string - description: Kind of interface + type: boolean + description: Is full depth - in: query - name: l2vpn + name: last_updated schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + format: date-time explode: true style: form - in: query - name: l2vpn__n + name: last_updated__empty schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + format: date-time explode: true style: form - in: query - name: l2vpn_id + name: last_updated__gt schema: type: array items: - type: integer - description: L2VPN (ID) + type: string + format: date-time explode: true style: form - in: query - name: l2vpn_id__n + name: last_updated__gte schema: type: array items: - type: integer - description: L2VPN (ID) + type: string + format: date-time explode: true style: form - in: query - name: label + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: latitude schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: label__isw + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: label__n + name: latitude__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: label__nic + name: latitude__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: label__nie + name: latitude__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: label__niew + name: latitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nisw + name: local_context_data + schema: + type: boolean + description: Has local config context data + - in: query + name: location_id schema: type: array items: @@ -23633,130 +23952,121 @@ paths: explode: true style: form - in: query - name: lag_id + name: location_id__n schema: type: array items: - type: integer - description: LAG interface (ID) + type: string explode: true style: form - in: query - name: lag_id__n + name: longitude schema: type: array items: - type: integer - description: LAG interface (ID) + type: number + format: double explode: true style: form - in: query - name: last_updated + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__empty + name: longitude__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__gt + name: longitude__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__gte + name: longitude__lte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__lt + name: longitude__n schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__lte + name: mac_address schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: mac_address__ic 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 + name: mac_address__ie schema: type: array items: type: string - description: Location (slug) explode: true style: form - in: query - name: location__n + name: mac_address__iew schema: type: array items: type: string - description: Location (slug) explode: true style: form - in: query - name: location_id + name: mac_address__isw schema: type: array items: - type: integer - description: Location (ID) + type: string explode: true style: form - in: query - name: location_id__n + name: mac_address__n schema: type: array items: - type: integer - description: Location (ID) + type: string explode: true style: form - in: query - name: mac_address + name: mac_address__nic schema: type: array items: @@ -23764,7 +24074,7 @@ paths: explode: true style: form - in: query - name: mac_address__ic + name: mac_address__nie schema: type: array items: @@ -23772,7 +24082,7 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: mac_address__niew schema: type: array items: @@ -23780,7 +24090,7 @@ paths: explode: true style: form - in: query - name: mac_address__iew + name: mac_address__nisw schema: type: array items: @@ -23788,122 +24098,66 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: mac_address__n + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: mac_address__nic + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: mac_address__nie + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: mac_address__niew + name: model schema: type: array items: type: string + description: Device model (slug) explode: true style: form - in: query - name: mac_address__nisw + name: model__n schema: type: array items: type: string + description: Device model (slug) explode: true style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: mgmt_only - schema: - type: boolean - - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: mtu + name: module_bay_count schema: type: array items: @@ -23912,11 +24166,11 @@ paths: explode: true style: form - in: query - name: mtu__empty + name: module_bay_count__empty schema: type: boolean - in: query - name: mtu__gt + name: module_bay_count__gt schema: type: array items: @@ -23925,7 +24179,7 @@ paths: explode: true style: form - in: query - name: mtu__gte + name: module_bay_count__gte schema: type: array items: @@ -23934,7 +24188,7 @@ paths: explode: true style: form - in: query - name: mtu__lt + name: module_bay_count__lt schema: type: array items: @@ -23943,7 +24197,7 @@ paths: explode: true style: form - in: query - name: mtu__lte + name: module_bay_count__lte schema: type: array items: @@ -23952,7 +24206,7 @@ paths: explode: true style: form - in: query - name: mtu__n + name: module_bay_count__n schema: type: array items: @@ -23960,6 +24214,11 @@ paths: format: int32 explode: true style: form + - in: query + name: module_bays + schema: + type: boolean + description: Has module bays - in: query name: name schema: @@ -24044,482 +24303,498 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - 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: parent_id + name: oob_ip_id schema: type: array items: type: integer - description: Parent interface (ID) + description: OOB IP (ID) explode: true style: form - in: query - name: parent_id__n + name: oob_ip_id__n schema: type: array items: type: integer - description: Parent interface (ID) + description: OOB IP (ID) explode: true style: form + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: poe_mode + name: parent_bay_id schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer + description: Parent bay (ID) explode: true style: form - in: query - name: poe_mode__n + name: parent_bay_id__n schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer + description: Parent bay (ID) explode: true style: form - in: query - name: poe_type + name: parent_device_id schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + description: Parent Device (ID) explode: true style: form - in: query - name: poe_type__n + name: parent_device_id__n schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + description: Parent Device (ID) explode: true style: form - in: query - name: q + name: pass_through_ports schema: - type: string - description: Search + type: boolean + description: Has pass-through ports - in: query - name: rack + name: platform schema: type: array items: type: string - description: Rack (name) + description: Platform (slug) explode: true style: form - in: query - name: rack__n + name: platform__n schema: type: array items: type: string - description: Rack (name) + description: Platform (slug) explode: true style: form - in: query - name: rack_id + name: platform_id schema: type: array items: type: integer - description: Rack (ID) + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: rack_id__n + name: platform_id__n schema: type: array items: type: integer - description: Rack (ID) + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: region + name: position schema: type: array items: - type: integer - description: Region (slug) + type: number + format: double explode: true style: form - in: query - name: region__n + name: position__empty + schema: + type: boolean + - in: query + name: position__gt schema: type: array items: - type: integer - description: Region (slug) + type: number + format: double explode: true style: form - in: query - name: region_id + name: position__gte schema: type: array items: - type: integer - description: Region (ID) + type: number + format: double explode: true style: form - in: query - name: region_id__n + name: position__lt schema: type: array items: - type: integer - description: Region (ID) + type: number + format: double explode: true style: form - in: query - name: rf_channel + name: position__lte schema: type: array items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel + type: number + format: double explode: true style: form - in: query - name: rf_channel__n + name: position__n schema: type: array items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel + type: number + format: double explode: true style: form - in: query - name: rf_channel_frequency + name: power_outlet_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_frequency__empty + name: power_outlet_count__empty schema: type: boolean - in: query - name: rf_channel_frequency__gt + name: power_outlet_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_frequency__gte + name: power_outlet_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_frequency__lt + name: power_outlet_count__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_frequency__lte + name: power_outlet_count__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_frequency__n + name: power_outlet_count__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width + name: power_outlets + schema: + type: boolean + description: Has power outlets + - in: query + name: power_port_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__empty + name: power_port_count__empty schema: type: boolean - in: query - name: rf_channel_width__gt + name: power_port_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__gte + name: power_port_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__lt + name: power_port_count__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__lte + name: power_port_count__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__n + name: power_port_count__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_role + name: power_ports + schema: + type: boolean + description: Has power ports + - in: query + name: primary_ip4_id schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: rf_role__n + name: primary_ip4_id__n schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: role + name: primary_ip6_id schema: type: array items: - type: string - description: Device role (slug) + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: role__n + name: primary_ip6_id__n schema: type: array items: - type: string - description: Device role (slug) + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: role_id + name: q + schema: + type: string + description: Search + - in: query + name: rack_id schema: type: array items: type: integer - description: Device role (ID) + description: Rack (ID) explode: true style: form - in: query - name: role_id__n + name: rack_id__n schema: type: array items: type: integer - description: Device role (ID) + description: Rack (ID) explode: true style: form - in: query - name: site + name: rear_port_count schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site__n + name: rear_port_count__empty + schema: + type: boolean + - in: query + name: rear_port_count__gt schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: rear_port_count__gte schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group__n + name: rear_port_count__lt schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group_id + name: rear_port_count__lte schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: rear_port_count__n schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: region schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: region__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: speed + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: speed__empty + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: speed__gt + name: role schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: speed__gte + name: role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: speed__lt + name: role_id schema: type: array items: type: integer - format: int32 + description: Role (ID) explode: true style: form - in: query - name: speed__lte + name: role_id__n schema: type: array items: type: integer - format: int32 + description: Role (ID) explode: true style: form - in: query - name: speed__n + name: serial schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: @@ -24527,7 +24802,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: serial__ie schema: type: array items: @@ -24535,367 +24810,453 @@ paths: explode: true style: form - in: query - name: tx_power + name: serial__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tx_power__empty + name: serial__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: tx_power__gt + name: serial__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tx_power__gte + name: serial__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tx_power__lt + name: serial__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tx_power__lte + name: serial__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tx_power__n + name: serial__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: type + name: site schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + description: Site name (slug) explode: true style: form - in: query - name: type__n + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 explode: true style: form - in: query - name: updated_by_request + name: site_group__n schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: vdc + name: site_group_id schema: type: array items: type: string - description: Virtual Device Context explode: true style: form - in: query - name: vdc__n + name: site_group_id__n schema: type: array items: type: string - description: Virtual Device Context explode: true style: form - in: query - name: vdc_id + name: site_id schema: type: array items: type: integer - description: Virtual Device Context + description: Site (ID) explode: true style: form - in: query - name: vdc_id__n + name: site_id__n schema: type: array items: type: integer - description: Virtual Device Context + description: Site (ID) explode: true style: form - in: query - name: vdc_identifier + name: status schema: type: array items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: vdc_identifier__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: virtual_chassis + name: status__ie schema: type: array items: type: string - description: Virtual Chassis + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: virtual_chassis__n + name: status__iew schema: type: array items: type: string - description: Virtual Chassis + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: virtual_chassis_id + name: status__isw schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: virtual_chassis_id__n + name: status__n schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: virtual_chassis_member + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: virtual_chassis_member_id + name: status__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: vlan + name: status__niew schema: - type: string - description: Assigned VID + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: vlan_id + name: status__nisw schema: - type: string - description: Assigned VLAN + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: vrf + name: tag schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tag__n schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + 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 + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - description: VRF + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: vrf_id__n + name: tenant_id__n schema: type: array items: type: integer - description: VRF + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: wireless_lan_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vc_position schema: type: array items: type: integer - description: Wireless LAN + format: int32 explode: true style: form - in: query - name: wireless_lan_id__n + name: vc_position__empty + schema: + type: boolean + - in: query + name: vc_position__gt schema: type: array items: type: integer - description: Wireless LAN + format: int32 explode: true style: form - in: query - name: wireless_link_id + name: vc_position__gte schema: type: array items: type: integer - nullable: true - description: Wireless link + format: int32 explode: true style: form - in: query - name: wireless_link_id__n + name: vc_position__lt schema: type: array items: type: integer - nullable: true - description: Wireless link + format: int32 explode: true style: form - in: query - name: wwn + name: vc_position__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__ic + name: vc_position__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__ie + name: vc_priority schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__iew + name: vc_priority__empty + schema: + type: boolean + - in: query + name: vc_priority__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__isw + name: vc_priority__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__n + name: vc_priority__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__nic + name: vc_priority__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__nie + name: vc_priority__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: wwn__niew + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual chassis (ID) explode: true style: form - in: query - name: wwn__nisw + name: virtual_chassis_id__n schema: type: array items: - type: string + type: integer + description: Virtual chassis (ID) explode: true style: form + - in: query + name: virtual_chassis_member + schema: + type: boolean + description: Is a virtual chassis member tags: - dcim security: @@ -24906,21 +25267,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceList' + $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' description: '' post: - operationId: dcim_interfaces_create - description: Post a list of interface objects. + operationId: dcim_devices_create + description: Post a list of device objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -24930,11 +25291,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_interfaces_bulk_update - description: Put a list of interface objects. + operationId: dcim_devices_bulk_update + description: Put a list of device objects. tags: - dcim requestBody: @@ -24943,12 +25304,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -24960,11 +25321,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: dcim_devices_bulk_partial_update + description: Patch a list of device objects. tags: - dcim requestBody: @@ -24973,12 +25334,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -24990,11 +25351,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: dcim_devices_bulk_destroy + description: Delete a list of device objects. tags: - dcim requestBody: @@ -25003,12 +25364,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -25016,16 +25377,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/: + /api/dcim/devices/{id}/: get: - operationId: dcim_interfaces_retrieve - description: Get a interface object. + operationId: dcim_devices_retrieve + description: Get a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -25037,17 +25398,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_interfaces_update - description: Put a interface object. + operationId: dcim_devices_update + description: Put a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -25055,10 +25416,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -25068,17 +25429,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_interfaces_partial_update - description: Patch a interface object. + operationId: dcim_devices_partial_update + description: Patch a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -25086,10 +25447,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -25098,17 +25459,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_interfaces_destroy - description: Delete a interface object. + operationId: dcim_devices_destroy + description: Delete a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -25118,20 +25479,35 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/trace/: - get: - operationId: dcim_interfaces_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + /api/dcim/devices/{id}/render-config/: + post: + operationId: dcim_devices_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. 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 interface. + description: A unique integer value identifying this device. required: true tags: - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -25140,12 +25516,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/DeviceWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' - /api/dcim/inventory-item-roles/: + /api/dcim/front-port-templates/: get: - operationId: dcim_inventory_item_roles_list - description: Get a list of inventory item role objects. + operationId: dcim_front_port_templates_list + description: Get a list of front port template objects. parameters: - in: query name: color @@ -25383,6 +25762,26 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -25441,6 +25840,90 @@ paths: format: int32 explode: true style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -25515,6 +25998,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -25617,103 +26120,171 @@ paths: type: string description: Search - in: query - name: slug + name: rear_port_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: slug__empty + name: rear_port_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: rear_port_position + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__empty schema: type: boolean - in: query - name: slug__ic + name: rear_port_position__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: rear_port_position__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: type schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: slug__iew + name: type__empty + schema: + type: boolean + - in: query + name: type__ic schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: slug__isw + name: type__ie schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: slug__n + name: type__iew schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: slug__nic + name: type__isw schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: slug__nie + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: slug__niew + name: type__nic schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: slug__nisw + name: type__nie schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: tag + name: type__niew schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: tag__n + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -25731,21 +26302,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemRoleList' + $ref: '#/components/schemas/PaginatedFrontPortTemplateList' description: '' post: - operationId: dcim_inventory_item_roles_create - description: Post a list of inventory item role objects. + operationId: dcim_front_port_templates_create + description: Post a list of front port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -25755,11 +26326,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/FrontPortTemplate' description: '' put: - operationId: dcim_inventory_item_roles_bulk_update - description: Put a list of inventory item role objects. + operationId: dcim_front_port_templates_bulk_update + description: Put a list of front port template objects. tags: - dcim requestBody: @@ -25768,12 +26339,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -25785,11 +26356,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/FrontPortTemplate' description: '' patch: - operationId: dcim_inventory_item_roles_bulk_partial_update - description: Patch a list of inventory item role objects. + operationId: dcim_front_port_templates_bulk_partial_update + description: Patch a list of front port template objects. tags: - dcim requestBody: @@ -25798,12 +26369,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -25815,11 +26386,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/FrontPortTemplate' description: '' delete: - operationId: dcim_inventory_item_roles_bulk_destroy - description: Delete a list of inventory item role objects. + operationId: dcim_front_port_templates_bulk_destroy + description: Delete a list of front port template objects. tags: - dcim requestBody: @@ -25828,12 +26399,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -25841,16 +26412,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-roles/{id}/: + /api/dcim/front-port-templates/{id}/: get: - operationId: dcim_inventory_item_roles_retrieve - description: Get a inventory item role object. + operationId: dcim_front_port_templates_retrieve + description: Get a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -25862,17 +26433,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/FrontPortTemplate' description: '' put: - operationId: dcim_inventory_item_roles_update - description: Put a inventory item role object. + operationId: dcim_front_port_templates_update + description: Put a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -25880,10 +26451,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -25893,17 +26464,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/FrontPortTemplate' description: '' patch: - operationId: dcim_inventory_item_roles_partial_update - description: Patch a inventory item role object. + operationId: dcim_front_port_templates_partial_update + description: Patch a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -25911,10 +26482,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -25923,17 +26494,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/FrontPortTemplate' description: '' delete: - operationId: dcim_inventory_item_roles_destroy - description: Delete a inventory item role object. + operationId: dcim_front_port_templates_destroy + description: Delete a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -25943,82 +26514,131 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-templates/: + /api/dcim/front-ports/: get: - operationId: dcim_inventory_item_templates_list - description: Get a list of inventory item template objects. + operationId: dcim_front_ports_list + description: Get a list of front port objects. parameters: - in: query - name: component_id + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: component_id__empty + name: cable_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: component_id__gt + name: cabled + schema: + type: boolean + - in: query + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__gte + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__lt + name: color__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__lte + name: color__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__n + name: color__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_type + name: color__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: component_type__n + name: color__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -26172,34 +26792,202 @@ paths: explode: true style: form - in: query - name: device_type_id + name: device schema: type: array items: - type: integer - description: Device type (ID) + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: device_type_id__n + name: device__n schema: type: array items: - type: integer - description: Device type (ID) + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: devicetype_id + name: device_id schema: type: array items: type: integer - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query - name: devicetype_id__n + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n schema: type: array items: @@ -26419,48 +27207,70 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - nullable: true - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - nullable: true - description: Manufacturer (ID) + description: Location (ID) explode: true style: form + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -26545,6 +27355,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -26558,55 +27372,122 @@ paths: schema: type: string - in: query - name: parent_id + name: q + schema: + type: string + description: Search + - in: query + name: rack + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id schema: type: array items: type: integer - nullable: true - description: Parent inventory item (ID) + description: Rack (ID) explode: true style: form - in: query - name: parent_id__n + name: rack_id__n schema: type: array items: type: integer - nullable: true - description: Parent inventory item (ID) + description: Rack (ID) explode: true style: form - in: query - name: part_id + name: rear_port_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: part_id__empty + name: rear_port_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: rear_port_position + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__empty schema: type: boolean - in: query - name: part_id__ic + name: rear_port_position__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__ie + name: rear_port_position__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__iew + name: rear_port_position__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: region schema: type: array items: @@ -26614,7 +27495,7 @@ paths: explode: true style: form - in: query - name: part_id__isw + name: region__n schema: type: array items: @@ -26622,7 +27503,7 @@ paths: explode: true style: form - in: query - name: part_id__n + name: region_id schema: type: array items: @@ -26630,7 +27511,7 @@ paths: explode: true style: form - in: query - name: part_id__nic + name: region_id__n schema: type: array items: @@ -26638,23 +27519,25 @@ paths: explode: true style: form - in: query - name: part_id__nie + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: part_id__niew + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: part_id__nisw + name: site_group schema: type: array items: @@ -26662,46 +27545,155 @@ paths: explode: true style: form - in: query - name: q + name: site_group__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: role + name: site_group_id schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: site_group_id__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: site_id schema: type: array items: type: integer - nullable: true - description: Role (ID) + description: Site (ID) explode: true style: form - in: query - name: role_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: Role (ID) + description: Site (ID) + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -26709,6 +27701,42 @@ paths: schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -26719,21 +27747,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' + $ref: '#/components/schemas/PaginatedFrontPortList' description: '' post: - operationId: dcim_inventory_item_templates_create - description: Post a list of inventory item template objects. + operationId: dcim_front_ports_create + description: Post a list of front port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -26743,11 +27771,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_inventory_item_templates_bulk_update - description: Put a list of inventory item template objects. + operationId: dcim_front_ports_bulk_update + description: Put a list of front port objects. tags: - dcim requestBody: @@ -26756,12 +27784,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -26773,11 +27801,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_inventory_item_templates_bulk_partial_update - description: Patch a list of inventory item template objects. + operationId: dcim_front_ports_bulk_partial_update + description: Patch a list of front port objects. tags: - dcim requestBody: @@ -26786,12 +27814,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -26803,11 +27831,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_inventory_item_templates_bulk_destroy - description: Delete a list of inventory item template objects. + operationId: dcim_front_ports_bulk_destroy + description: Delete a list of front port objects. tags: - dcim requestBody: @@ -26816,12 +27844,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -26829,16 +27857,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-templates/{id}/: + /api/dcim/front-ports/{id}/: get: - operationId: dcim_inventory_item_templates_retrieve - description: Get a inventory item template object. + operationId: dcim_front_ports_retrieve + description: Get a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -26850,17 +27878,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_inventory_item_templates_update - description: Put a inventory item template object. + operationId: dcim_front_ports_update + description: Put a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -26868,10 +27896,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -26881,17 +27909,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_inventory_item_templates_partial_update - description: Patch a inventory item template object. + operationId: dcim_front_ports_partial_update + description: Patch a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -26899,10 +27927,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -26911,17 +27939,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_inventory_item_templates_destroy - description: Delete a inventory item template object. + operationId: dcim_front_ports_destroy + description: Delete a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -26931,166 +27959,50 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-items/: + /api/dcim/front-ports/{id}/paths/: get: - operationId: dcim_inventory_items_list - description: Get a list of inventory item objects. + operationId: dcim_front_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. parameters: - - in: query - name: asset_tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: component_id - schema: - type: array - items: - type: integer - 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: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__lt + - in: path + name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: A unique integer value identifying this front port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPort' + description: '' + /api/dcim/interface-templates/: + get: + operationId: dcim_interface_templates_list + description: Get a list of interface template objects. + parameters: - in: query - name: component_id__lte + name: bridge_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: component_id__n + name: bridge_id__n schema: type: array items: type: integer - format: int32 explode: true style: form - - in: query - name: component_type - schema: - type: string - - in: query - name: component_type__n - schema: - type: string - in: query name: created schema: @@ -27243,68 +28155,13 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - 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 - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - in: query name: device_type_id schema: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -27314,11 +28171,12 @@ paths: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form - in: query - name: discovered + name: enabled schema: type: boolean - in: query @@ -27533,84 +28391,34 @@ paths: 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 (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: manufacturer + name: mgmt_only schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form + type: boolean - in: query - name: manufacturer__n + name: modified_by_request schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: manufacturer_id + name: module_type_id schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Module type (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: module_type_id__n schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Module type (ID) explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -27708,394 +28516,424 @@ paths: schema: type: string - in: query - name: parent_id + name: poe_mode schema: type: array items: - type: integer + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd nullable: true - description: Parent inventory item (ID) explode: true style: form - in: query - name: parent_id__n + name: poe_mode__empty + schema: + type: boolean + - in: query + name: poe_mode__ic schema: type: array items: - type: integer + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd nullable: true - description: Parent inventory item (ID) explode: true style: form - in: query - name: part_id + name: poe_mode__ie schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__empty - schema: - type: boolean - - in: query - name: part_id__ic + name: poe_mode__iew schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__ie + name: poe_mode__isw schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__iew + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__isw + name: poe_mode__nic schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__n + name: poe_mode__nie schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__nic + name: poe_mode__niew schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__nie + name: poe_mode__nisw schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: part_id__niew + name: poe_type schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: part_id__nisw + name: poe_type__empty + schema: + type: boolean + - in: query + name: poe_type__ic schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: poe_type__ie schema: type: array items: type: string - description: Rack (name) + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: rack__n + name: poe_type__iew schema: type: array items: type: string - description: Rack (name) + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: rack_id + name: poe_type__isw schema: type: array items: - type: integer - description: Rack (ID) + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: rack_id__n + name: poe_type__n schema: type: array items: - type: integer - description: Rack (ID) + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: region + name: poe_type__nic schema: type: array items: - type: integer - description: Region (slug) + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: region__n + name: poe_type__nie schema: type: array items: - type: integer - description: Region (slug) + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: region_id + name: poe_type__niew schema: type: array items: - type: integer - description: Region (ID) + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: region_id__n + name: poe_type__nisw schema: type: array items: - type: integer - description: Region (ID) + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: role + name: q + schema: + type: string + description: Search + - in: query + name: rf_role schema: type: array items: type: string - description: Role (slug) + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: role__n + name: rf_role__empty + schema: + type: boolean + - in: query + name: rf_role__ic schema: type: array items: type: string - description: Role (slug) + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: role_id + name: rf_role__ie schema: type: array items: - type: integer + type: string + x-spec-enum-id: d2772dbea88b0fb1 nullable: true - description: Role (ID) + title: Wireless role explode: true style: form - in: query - name: role_id__n + name: rf_role__iew schema: type: array items: - type: integer + type: string + x-spec-enum-id: d2772dbea88b0fb1 nullable: true - description: Role (ID) + title: Wireless role explode: true style: form - in: query - name: serial + name: rf_role__isw schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: serial__ie + name: rf_role__nic schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: serial__iew + name: rf_role__nie schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: serial__isw + name: rf_role__niew schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: serial__n + name: rf_role__nisw schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: serial__nic + name: type schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: serial__nie + name: type__empty + schema: + type: boolean + - in: query + name: type__ic schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: serial__niew + name: type__ie schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: serial__nisw + name: type__iew schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: site + name: type__isw schema: type: array items: type: string - description: Site name (slug) + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: site__n + name: type__n schema: type: array items: type: string - description: Site name (slug) + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: site_group + name: type__nic schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: site_group__n + name: type__nie schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: tag + name: type__niew schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: tag__n + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query @@ -28103,42 +28941,6 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -28149,21 +28951,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemList' + $ref: '#/components/schemas/PaginatedInterfaceTemplateList' description: '' post: - operationId: dcim_inventory_items_create - description: Post a list of inventory item objects. + operationId: dcim_interface_templates_create + description: Post a list of interface template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -28173,11 +28975,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_inventory_items_bulk_update - description: Put a list of inventory item objects. + operationId: dcim_interface_templates_bulk_update + description: Put a list of interface template objects. tags: - dcim requestBody: @@ -28186,12 +28988,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -28203,11 +29005,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_inventory_items_bulk_partial_update - description: Patch a list of inventory item objects. + operationId: dcim_interface_templates_bulk_partial_update + description: Patch a list of interface template objects. tags: - dcim requestBody: @@ -28216,12 +29018,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -28233,11 +29035,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_inventory_items_bulk_destroy - description: Delete a list of inventory item objects. + operationId: dcim_interface_templates_bulk_destroy + description: Delete a list of interface template objects. tags: - dcim requestBody: @@ -28246,12 +29048,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -28259,16 +29061,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-items/{id}/: + /api/dcim/interface-templates/{id}/: get: - operationId: dcim_inventory_items_retrieve - description: Get a inventory item object. + operationId: dcim_interface_templates_retrieve + description: Get a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -28280,17 +29082,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_inventory_items_update - description: Put a inventory item object. + operationId: dcim_interface_templates_update + description: Put a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -28298,10 +29100,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -28311,17 +29113,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_inventory_items_partial_update - description: Patch a inventory item object. + operationId: dcim_interface_templates_partial_update + description: Patch a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -28329,10 +29131,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -28341,17 +29143,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_inventory_items_destroy - description: Delete a inventory item object. + operationId: dcim_interface_templates_destroy + description: Delete a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -28361,101 +29163,69 @@ paths: responses: '204': description: No response body - /api/dcim/locations/: + /api/dcim/interfaces/: get: - operationId: dcim_locations_list - description: Get a list of location objects. + operationId: dcim_interfaces_list + description: Get a list of interface objects. parameters: - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: ancestor_id__n + name: bridge_id schema: type: array items: type: integer - description: Location (ID) + description: Bridged interface (ID) explode: true style: form - in: query - name: contact + name: bridge_id__n schema: type: array items: type: integer - description: Contact + description: Bridged interface (ID) explode: true style: form - in: query - name: contact__n + name: cable_end schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact_group + name: cable_id schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group__n + name: cable_id__n schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_role + name: cabled schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query - name: contact_role__n + name: connected schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query name: created schema: @@ -28609,470 +29379,470 @@ paths: explode: true style: form - in: query - name: facility + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility__empty - schema: - type: boolean - - in: query - name: facility__ic + name: device__n schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility__ie + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility__iew + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility__isw + name: device_role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility__n + name: device_role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility__nic + name: device_role_id schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: facility__nie + name: device_role_id__n schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: facility__niew + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__nisw + name: device_status__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: id + name: device_status__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: device_status__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__gte + name: device_status__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__lt + name: device_status__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__lte + name: device_status__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__n + name: device_status__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated + name: device_status__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__empty + name: device_status__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gt + name: device_status__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gte + name: device_type schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__lt + name: device_type__n schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__lte + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__n + name: device_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: duplex schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__empty + name: duplex__empty schema: type: boolean - in: query - name: name__ic + name: duplex__ic schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__ie + name: duplex__ie schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__iew + name: duplex__iew schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__isw + name: duplex__isw schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__n + name: duplex__n schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__nic + name: duplex__nic schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__nie + name: duplex__nie schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__niew + name: duplex__niew schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: name__nisw + name: duplex__nisw schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true 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. + - in: query + name: enabled schema: - type: string + type: boolean - in: query - name: parent + name: id schema: type: array items: - type: string - description: Parent location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: parent__n + name: id__empty schema: - type: array - items: - type: string - description: Parent location (slug) - explode: true - style: form + type: boolean - in: query - name: parent_id + name: id__gt schema: type: array items: type: integer - nullable: true - description: Parent location (ID) + format: int32 explode: true style: form - in: query - name: parent_id__n + name: id__gte schema: type: array items: type: integer - nullable: true - description: Parent location (ID) + format: int32 explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: id__lt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region__n + name: id__lte schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: id__n schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: kind + schema: + type: string + description: Kind of interface + - in: query + name: l2vpn schema: type: array items: type: integer - description: Region (ID) + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: site + name: l2vpn__n schema: type: array items: - type: string - description: Site (slug) + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: site__n + name: l2vpn_id schema: type: array items: - type: string - description: Site (slug) + type: integer + description: L2VPN (ID) explode: true style: form - in: query - name: site_group + name: l2vpn_id__n schema: type: array items: type: integer - description: Site group (slug) + description: L2VPN (ID) explode: true style: form - in: query - name: site_group__n + name: label schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: label__ie schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: label__iew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: label__isw schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: slug + name: label__n schema: type: array items: @@ -29080,11 +29850,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: label__nic schema: type: array items: @@ -29092,7 +29858,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: label__nie schema: type: array items: @@ -29100,7 +29866,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: label__niew schema: type: array items: @@ -29108,7 +29874,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: label__nisw schema: type: array items: @@ -29116,509 +29882,322 @@ paths: explode: true style: form - in: query - name: slug__n + name: lag_id schema: type: array items: - type: string + type: integer + description: LAG interface (ID) explode: true style: form - in: query - name: slug__nic + name: lag_id__n schema: type: array items: - type: string + type: integer + description: LAG interface (ID) explode: true style: form - in: query - name: slug__nie + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__niew + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__nisw + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: status + name: last_updated__gte schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 + format: date-time explode: true style: form - in: query - name: status__n + name: last_updated__lt schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 + format: date-time explode: true style: form - in: query - name: tag + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag__n + 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: tenant + name: location schema: type: array items: type: string - description: Tenant (slug) + description: Location (slug) explode: true style: form - in: query - name: tenant__n + name: location__n schema: type: array items: type: string - description: Tenant (slug) + description: Location (slug) explode: true style: form - in: query - name: tenant_group + name: location_id schema: type: array items: type: integer - description: Tenant Group (slug) + description: Location (ID) explode: true style: form - in: query - name: tenant_group__n + name: location_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + description: Location (ID) explode: true style: form - in: query - name: tenant_group_id + name: mac_address schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: mac_address__ic schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: mac_address__ie schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: mac_address__iew schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedLocationList' - description: '' - post: - operationId: dcim_locations_create - description: Post a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - put: - operationId: dcim_locations_bulk_update - description: Put a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Location' - description: '' - patch: - operationId: dcim_locations_bulk_partial_update - description: Patch a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Location' - description: '' - delete: - operationId: dcim_locations_bulk_destroy - description: Delete a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/locations/{id}/: - get: - operationId: dcim_locations_retrieve - description: Get a location object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - put: - operationId: dcim_locations_update - description: Put a location object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - patch: - operationId: dcim_locations_partial_update - description: Patch a location object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - delete: - operationId: dcim_locations_destroy - description: Delete a location object. - parameters: - - in: path - name: id + name: mac_address__isw schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/manufacturers/: - get: - operationId: dcim_manufacturers_list - description: Get a list of manufacturer objects. - parameters: + type: array + items: + type: string + explode: true + style: form - in: query - name: contact + name: mac_address__n schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: mac_address__nic schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: mac_address__nie schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: mac_address__niew schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: mac_address__nisw schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: mark_connected + schema: + type: boolean + - in: query + name: mgmt_only + schema: + type: boolean + - in: query + name: mode + schema: + type: string + x-spec-enum-id: b6fe48fe21dbf01d + nullable: true + enum: + - access + - q-in-q + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id schema: type: array items: type: integer - description: Contact Role + nullable: true + description: Module (ID) explode: true style: form - in: query - name: created + name: module_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: created__empty + name: mtu schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: mtu__empty + schema: + type: boolean + - in: query + name: mtu__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: mtu__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: mtu__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: mtu__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: mtu__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: name schema: type: array items: @@ -29626,11 +30205,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -29638,7 +30217,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -29646,7 +30225,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -29654,7 +30233,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -29662,7 +30241,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -29670,7 +30249,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -29678,7 +30257,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -29686,7 +30265,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -29694,7 +30273,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: @@ -29702,252 +30281,326 @@ paths: 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 + name: occupied schema: type: boolean + - 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: id__gt + name: parent_id schema: type: array items: type: integer - format: int32 + description: Parent interface (ID) explode: true style: form - in: query - name: id__gte + name: parent_id__n schema: type: array items: type: integer - format: int32 + description: Parent interface (ID) explode: true style: form - in: query - name: id__lt + name: poe_mode schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: id__lte + name: poe_mode__empty + schema: + type: boolean + - in: query + name: poe_mode__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: id__n + name: poe_mode__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: last_updated + name: poe_mode__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: last_updated__empty + name: poe_mode__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: last_updated__gt + name: poe_mode__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: last_updated__gte + name: poe_mode__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: last_updated__lt + name: poe_mode__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: last_updated__lte + name: poe_mode__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - in: query - name: last_updated__n + name: poe_mode__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: poe_type schema: - type: integer + type: array + items: + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true + explode: true + style: form - in: query - name: modified_by_request + name: poe_type__empty schema: - type: string - format: uuid + type: boolean - in: query - name: name + name: poe_type__ic schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__empty + name: poe_type__ie schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true + explode: true + style: form - in: query - name: name__ic + name: poe_type__iew schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__ie + name: poe_type__isw schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__iew + name: poe_type__n schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__isw + name: poe_type__nic schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__n + name: poe_type__nie schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__nic + name: poe_type__niew schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__nie + name: poe_type__nisw schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + nullable: true explode: true style: form - in: query - name: name__niew + name: primary_mac_address schema: type: array items: type: string + description: Primary MAC address explode: true style: form - in: query - name: name__nisw + name: primary_mac_address__n schema: type: array items: type: string + description: Primary MAC address explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: primary_mac_address_id schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + description: Primary MAC address (ID) + explode: true + style: form + - in: query + name: primary_mac_address_id__n schema: - type: string + type: array + items: + type: integer + description: Primary MAC address (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: slug + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: slug__empty + name: rack__n schema: - type: boolean + type: array + items: + type: string + description: Rack (name) + explode: true + style: form - in: query - name: slug__ic + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region schema: type: array items: @@ -29955,7 +30608,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: region__n schema: type: array items: @@ -29963,7 +30616,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: region_id schema: type: array items: @@ -29971,7 +30624,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: region_id__n schema: type: array items: @@ -29979,415 +30632,369 @@ paths: explode: true style: form - in: query - name: slug__n + name: rf_channel schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel explode: true style: form - in: query - name: slug__nic + name: rf_channel__empty + schema: + type: boolean + - in: query + name: rf_channel__ic schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel explode: true style: form - in: query - name: slug__nie + name: rf_channel__ie schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel explode: true style: form - in: query - name: slug__niew + name: rf_channel__iew schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel explode: true style: form - in: query - name: slug__nisw + name: rf_channel__isw schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel explode: true style: form - in: query - name: tag + name: rf_channel__n schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel explode: true style: form - in: query - name: tag__n + name: rf_channel__nic schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel explode: true style: form - in: query - name: updated_by_request + name: rf_channel__nie schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedManufacturerList' - description: '' - post: - operationId: dcim_manufacturers_create - description: Post a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_bulk_update - description: Put a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_bulk_partial_update - description: Patch a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_bulk_destroy - description: Delete a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/manufacturers/{id}/: - get: - operationId: dcim_manufacturers_retrieve - description: Get a manufacturer object. - parameters: - - in: path - name: id + type: array + items: + type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel + explode: true + style: form + - in: query + name: rf_channel__niew schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_update - description: Put a manufacturer object. - parameters: - - in: path - name: id + type: array + items: + type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel + explode: true + style: form + - in: query + name: rf_channel__nisw schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_partial_update - description: Patch a manufacturer object. - parameters: - - in: path - name: id + type: array + items: + type: string + x-spec-enum-id: aac33cc237adc8f9 + nullable: true + title: Wireless channel + explode: true + style: form + - in: query + name: rf_channel_frequency schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_destroy - description: Delete a manufacturer object. - parameters: - - in: path - name: id + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_frequency__empty schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/module-bay-templates/: - get: - operationId: dcim_module_bay_templates_list - description: Get a list of module bay template objects. - parameters: + type: boolean - in: query - name: created + name: rf_channel_frequency__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__empty + name: rf_channel_frequency__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gt + name: rf_channel_frequency__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gte + name: rf_channel_frequency__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_frequency__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_width + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_width__empty + schema: + type: boolean + - in: query + name: rf_channel_width__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_width__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_width__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_width__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_channel_width__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: rf_role schema: type: array items: type: string - format: date-time + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: created__lt + name: rf_role__empty + schema: + type: boolean + - in: query + name: rf_role__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: created__lte + name: rf_role__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: created__n + name: rf_role__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: created_by_request + name: rf_role__isw schema: - type: string - format: uuid + type: array + items: + type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role + explode: true + style: form - in: query - name: description + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: description__empty + name: rf_role__nic schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role + explode: true + style: form - in: query - name: description__ic + name: rf_role__nie schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: description__ie + name: rf_role__niew schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: description__iew + name: rf_role__nisw schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + nullable: true + title: Wireless role explode: true style: form - in: query - name: description__isw + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: description__n + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: description__nic + name: site_group schema: type: array items: @@ -30395,7 +31002,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: site_group__n schema: type: array items: @@ -30403,7 +31010,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: site_group_id schema: type: array items: @@ -30411,7 +31018,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: site_group_id__n schema: type: array items: @@ -30419,43 +31026,43 @@ paths: explode: true style: form - in: query - name: device_type_id + name: site_id schema: type: array items: type: integer - description: Device type (ID) + description: Site (ID) explode: true style: form - in: query - name: device_type_id__n + name: site_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Site (ID) explode: true style: form - in: query - name: devicetype_id + name: speed schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: speed__empty schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: id + name: speed__gt schema: type: array items: @@ -30464,11 +31071,72 @@ paths: explode: true style: form - in: query - name: id__empty + name: speed__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: speed__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: speed__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: speed__n + schema: + type: array + items: + type: integer + format: int32 + 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: tx_power + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tx_power__empty schema: type: boolean - in: query - name: id__gt + name: tx_power__gt schema: type: array items: @@ -30477,7 +31145,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: tx_power__gte schema: type: array items: @@ -30486,7 +31154,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: tx_power__lt schema: type: array items: @@ -30495,7 +31163,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: tx_power__lte schema: type: array items: @@ -30504,7 +31172,7 @@ paths: explode: true style: form - in: query - name: id__n + name: tx_power__n schema: type: array items: @@ -30513,165 +31181,202 @@ paths: explode: true style: form - in: query - name: label + name: type schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__empty + name: type__empty schema: type: boolean - in: query - name: label__ic + name: type__ic schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__ie + name: type__ie schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__iew + name: type__iew schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__isw + name: type__isw schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__n + name: type__n schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__nic + name: type__nic schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__nie + name: type__nie schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__niew + name: type__niew schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: label__nisw + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: 4b917ee05489852b explode: true style: form - in: query - name: last_updated + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vdc schema: type: array items: type: string - format: date-time + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__empty + name: vdc__n schema: type: array items: type: string - format: date-time + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__gt + name: vdc_id schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__gte + name: vdc_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__lt + name: vdc_identifier schema: type: array items: - type: string - format: date-time + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) explode: true style: form - in: query - name: last_updated__lte + name: vdc_identifier__n + schema: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) + explode: true + style: form + - in: query + name: virtual_chassis schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - in: query - name: last_updated__n + name: virtual_chassis__n schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: virtual_chassis_id schema: - type: integer + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form - in: query - name: modified_by_request + name: virtual_chassis_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form - in: query - name: name + name: virtual_chassis_member schema: type: array items: @@ -30679,115 +31384,176 @@ paths: explode: true style: form - in: query - name: name__empty + name: virtual_chassis_member_id schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name__ic + name: virtual_circuit_id schema: type: array items: - type: string + type: integer + description: Virtual circuit (ID) explode: true style: form - in: query - name: name__ie + name: virtual_circuit_id__n schema: type: array items: - type: string + type: integer + description: Virtual circuit (ID) explode: true style: form - in: query - name: name__iew + name: virtual_circuit_termination_id schema: type: array items: - type: string + type: integer + description: Virtual circuit termination (ID) explode: true style: form - in: query - name: name__isw + name: virtual_circuit_termination_id__n schema: type: array items: - type: string + type: integer + description: Virtual circuit termination (ID) explode: true style: form - in: query - name: name__n + name: vlan + schema: + type: string + description: Assigned VID + - in: query + name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vlan_translation_policy schema: type: array items: type: string + description: VLAN Translation Policy explode: true style: form - in: query - name: name__nic + name: vlan_translation_policy__n schema: type: array items: type: string + description: VLAN Translation Policy explode: true style: form - in: query - name: name__nie + name: vlan_translation_policy_id schema: type: array items: - type: string + type: integer + description: VLAN Translation Policy (ID) explode: true style: form - in: query - name: name__niew + name: vlan_translation_policy_id__n + schema: + type: array + items: + type: integer + description: VLAN Translation Policy (ID) + explode: true + style: form + - in: query + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: name__nisw + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: vrf_id schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n schema: - type: string + type: array + items: + type: integer + description: VRF + explode: true + style: form - in: query - name: position + name: wireless_lan_id schema: type: array items: - type: string + type: integer + description: Wireless LAN explode: true style: form - in: query - name: position__empty + name: wireless_lan_id__n schema: - type: boolean + type: array + items: + type: integer + description: Wireless LAN + explode: true + style: form - in: query - name: position__ic + name: wireless_link_id schema: type: array items: - type: string + type: integer + nullable: true + description: Wireless link explode: true style: form - in: query - name: position__ie + name: wireless_link_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Wireless link + explode: true + style: form + - in: query + name: wwn schema: type: array items: @@ -30795,7 +31561,7 @@ paths: explode: true style: form - in: query - name: position__iew + name: wwn__ic schema: type: array items: @@ -30803,7 +31569,7 @@ paths: explode: true style: form - in: query - name: position__isw + name: wwn__ie schema: type: array items: @@ -30811,7 +31577,7 @@ paths: explode: true style: form - in: query - name: position__n + name: wwn__iew schema: type: array items: @@ -30819,7 +31585,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: wwn__isw schema: type: array items: @@ -30827,7 +31593,7 @@ paths: explode: true style: form - in: query - name: position__nie + name: wwn__n schema: type: array items: @@ -30835,7 +31601,7 @@ paths: explode: true style: form - in: query - name: position__niew + name: wwn__nic schema: type: array items: @@ -30843,7 +31609,7 @@ paths: explode: true style: form - in: query - name: position__nisw + name: wwn__nie schema: type: array items: @@ -30851,15 +31617,21 @@ paths: explode: true style: form - in: query - name: q + name: wwn__niew schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: updated_by_request + name: wwn__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form tags: - dcim security: @@ -30870,21 +31642,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayTemplateList' + $ref: '#/components/schemas/PaginatedInterfaceList' description: '' post: - operationId: dcim_module_bay_templates_create - description: Post a list of module bay template objects. + operationId: dcim_interfaces_create + description: Post a list of interface objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' required: true security: - cookieAuth: [] @@ -30894,11 +31666,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Interface' description: '' put: - operationId: dcim_module_bay_templates_bulk_update - description: Put a list of module bay template objects. + operationId: dcim_interfaces_bulk_update + description: Put a list of interface objects. tags: - dcim requestBody: @@ -30907,12 +31679,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -30924,11 +31696,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Interface' description: '' patch: - operationId: dcim_module_bay_templates_bulk_partial_update - description: Patch a list of module bay template objects. + operationId: dcim_interfaces_bulk_partial_update + description: Patch a list of interface objects. tags: - dcim requestBody: @@ -30937,12 +31709,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -30954,11 +31726,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Interface' description: '' delete: - operationId: dcim_module_bay_templates_bulk_destroy - description: Delete a list of module bay template objects. + operationId: dcim_interfaces_bulk_destroy + description: Delete a list of interface objects. tags: - dcim requestBody: @@ -30967,12 +31739,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -30980,16 +31752,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bay-templates/{id}/: + /api/dcim/interfaces/{id}/: get: - operationId: dcim_module_bay_templates_retrieve - description: Get a module bay template object. + operationId: dcim_interfaces_retrieve + description: Get a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -31001,17 +31773,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Interface' description: '' put: - operationId: dcim_module_bay_templates_update - description: Put a module bay template object. + operationId: dcim_interfaces_update + description: Put a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -31019,10 +31791,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' required: true security: - cookieAuth: [] @@ -31032,17 +31804,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Interface' description: '' patch: - operationId: dcim_module_bay_templates_partial_update - description: Patch a module bay template object. + operationId: dcim_interfaces_partial_update + description: Patch a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -31050,10 +31822,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -31062,17 +31834,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Interface' description: '' delete: - operationId: dcim_module_bay_templates_destroy - description: Delete a module bay template object. + operationId: dcim_interfaces_destroy + description: Delete a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -31082,81 +31854,65 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/: + /api/dcim/interfaces/{id}/trace/: get: - operationId: dcim_module_bays_list - description: Get a list of module bay objects. + operationId: dcim_interfaces_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: 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 + - in: path + name: id schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + /api/dcim/inventory-item-roles/: + get: + operationId: dcim_inventory_item_roles_list + description: Get a list of inventory item role objects. + parameters: - in: query - name: created__gte + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__lte + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__ie 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: description + name: color__iew schema: type: array items: @@ -31164,11 +31920,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__isw schema: type: array items: @@ -31176,7 +31928,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__n schema: type: array items: @@ -31184,7 +31936,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: color__nic schema: type: array items: @@ -31192,7 +31944,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: color__nie schema: type: array items: @@ -31200,7 +31952,7 @@ paths: explode: true style: form - in: query - name: description__n + name: color__niew schema: type: array items: @@ -31208,7 +31960,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: color__nisw schema: type: array items: @@ -31216,181 +31968,135 @@ paths: explode: true style: form - in: query - name: description__nie + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: created__gte schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device__n + name: created__lt schema: type: array items: type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - description: Device (ID) + format: date-time explode: true style: form - in: query - name: device_type + name: created__lte schema: type: array items: type: string - description: Device type (model) + format: date-time explode: true style: form - in: query - name: device_type__n + name: created__n schema: type: array items: type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - description: Device type (ID) + format: date-time explode: true style: form - in: query - name: device_type_id__n + name: created_by_request schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__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 + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: installed_module_id + name: description__n schema: type: array items: - type: integer - description: Installed module (ID) + type: string explode: true style: form - in: query - name: installed_module_id__n + name: description__nic schema: type: array items: - type: integer - description: Installed module (ID) + type: string explode: true style: form - in: query - name: label + name: description__nie schema: type: array items: @@ -31398,11 +32104,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: description__niew schema: type: array items: @@ -31410,7 +32112,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: description__nisw schema: type: array items: @@ -31418,59 +32120,61 @@ paths: explode: true style: form - in: query - name: label__iew + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: label__n + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -31542,42 +32246,6 @@ paths: 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 (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - in: query name: modified_by_request schema: @@ -31680,51 +32348,12 @@ paths: schema: type: string - in: query - name: position - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__isw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: position__n + name: slug schema: type: array items: @@ -31732,15 +32361,11 @@ paths: explode: true style: form - in: query - name: position__nic + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: position__nie + name: slug__ic schema: type: array items: @@ -31748,7 +32373,7 @@ paths: explode: true style: form - in: query - name: position__niew + name: slug__ie schema: type: array items: @@ -31756,7 +32381,7 @@ paths: explode: true style: form - in: query - name: position__nisw + name: slug__iew schema: type: array items: @@ -31764,188 +32389,51 @@ paths: explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: slug__isw schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: slug__n schema: type: array items: type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) explode: true style: form - in: query - name: role + name: slug__nic schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: slug__nie 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 + name: slug__niew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__nisw schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) explode: true style: form - in: query @@ -31969,42 +32457,6 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -32015,21 +32467,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayList' + $ref: '#/components/schemas/PaginatedInventoryItemRoleList' description: '' post: - operationId: dcim_module_bays_create - description: Post a list of module bay objects. + operationId: dcim_inventory_item_roles_create + description: Post a list of inventory item role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -32039,11 +32491,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_module_bays_bulk_update - description: Put a list of module bay objects. + operationId: dcim_inventory_item_roles_bulk_update + description: Put a list of inventory item role objects. tags: - dcim requestBody: @@ -32052,12 +32504,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -32069,11 +32521,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_module_bays_bulk_partial_update - description: Patch a list of module bay objects. + operationId: dcim_inventory_item_roles_bulk_partial_update + description: Patch a list of inventory item role objects. tags: - dcim requestBody: @@ -32082,12 +32534,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -32099,11 +32551,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_module_bays_bulk_destroy - description: Delete a list of module bay objects. + operationId: dcim_inventory_item_roles_bulk_destroy + description: Delete a list of inventory item role objects. tags: - dcim requestBody: @@ -32112,12 +32564,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -32125,16 +32577,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/{id}/: + /api/dcim/inventory-item-roles/{id}/: get: - operationId: dcim_module_bays_retrieve - description: Get a module bay object. + operationId: dcim_inventory_item_roles_retrieve + description: Get a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -32146,17 +32598,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_module_bays_update - description: Put a module bay object. + operationId: dcim_inventory_item_roles_update + description: Put a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -32164,10 +32616,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -32177,17 +32629,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_module_bays_partial_update - description: Patch a module bay object. + operationId: dcim_inventory_item_roles_partial_update + description: Patch a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -32195,10 +32647,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -32207,17 +32659,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_module_bays_destroy - description: Delete a module bay object. + operationId: dcim_inventory_item_roles_destroy + description: Delete a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -32227,21 +32679,82 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/: + /api/dcim/inventory-item-templates/: get: - operationId: dcim_module_types_list - description: Get a list of module type objects. + operationId: dcim_inventory_item_templates_list + description: Get a list of inventory item template objects. parameters: - in: query - name: console_ports + name: component_id schema: - type: boolean - description: Has console ports + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: console_server_ports + name: component_id__empty schema: - type: boolean - description: Has console server ports + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_type + schema: + type: string + - in: query + name: component_type__n + schema: + type: string - in: query name: created schema: @@ -32394,6 +32907,24 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -32453,10 +32984,89 @@ paths: explode: true style: form - in: query - name: interfaces + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty schema: type: boolean - description: Has interfaces + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -32550,6 +33160,7 @@ paths: type: array items: type: integer + nullable: true description: Manufacturer (ID) explode: true style: form @@ -32559,11 +33170,17 @@ paths: type: array items: type: integer + nullable: true description: Manufacturer (ID) explode: true style: form - in: query - name: model + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -32571,11 +33188,11 @@ paths: explode: true style: form - in: query - name: model__empty + name: name__empty schema: type: boolean - in: query - name: model__ic + name: name__ic schema: type: array items: @@ -32583,7 +33200,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: name__ie schema: type: array items: @@ -32591,7 +33208,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: name__iew schema: type: array items: @@ -32599,7 +33216,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: name__isw schema: type: array items: @@ -32607,7 +33224,7 @@ paths: explode: true style: form - in: query - name: model__n + name: name__n schema: type: array items: @@ -32615,7 +33232,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: name__nic schema: type: array items: @@ -32623,7 +33240,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: name__nie schema: type: array items: @@ -32631,7 +33248,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: name__niew schema: type: array items: @@ -32639,18 +33256,13 @@ paths: explode: true style: form - in: query - name: model__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - name: offset required: false in: query @@ -32664,27 +33276,27 @@ paths: schema: type: string - in: query - name: part_number + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: part_number__empty - schema: - type: boolean - - in: query - name: part_number__ic + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: part_number__ie + name: part_id schema: type: array items: @@ -32692,15 +33304,11 @@ paths: explode: true style: form - in: query - name: part_number__iew + name: part_id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: part_number__isw + name: part_id__ic schema: type: array items: @@ -32708,7 +33316,7 @@ paths: explode: true style: form - in: query - name: part_number__n + name: part_id__ie schema: type: array items: @@ -32716,7 +33324,7 @@ paths: explode: true style: form - in: query - name: part_number__nic + name: part_id__iew schema: type: array items: @@ -32724,7 +33332,7 @@ paths: explode: true style: form - in: query - name: part_number__nie + name: part_id__isw schema: type: array items: @@ -32732,7 +33340,7 @@ paths: explode: true style: form - in: query - name: part_number__niew + name: part_id__n schema: type: array items: @@ -32740,7 +33348,7 @@ paths: explode: true style: form - in: query - name: part_number__nisw + name: part_id__nic schema: type: array items: @@ -32748,27 +33356,7 @@ paths: explode: true style: form - in: query - name: pass_through_ports - schema: - type: boolean - description: Has pass-through ports - - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: tag + name: part_id__nie schema: type: array items: @@ -32776,7 +33364,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: part_id__niew schema: type: array items: @@ -32784,102 +33372,61 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: part_id__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: q schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + description: Search - in: query - name: weight__gte + name: role schema: type: array items: - type: number - format: double + type: string + description: Role (slug) explode: true style: form - in: query - name: weight__lt + name: role__n schema: type: array items: - type: number - format: double + type: string + description: Role (slug) explode: true style: form - in: query - name: weight__lte + name: role_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: weight__n + name: role_id__n schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n + name: updated_by_request schema: type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + format: uuid tags: - dcim security: @@ -32890,21 +33437,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleTypeList' + $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' description: '' post: - operationId: dcim_module_types_create - description: Post a list of module type objects. + operationId: dcim_inventory_item_templates_create + description: Post a list of inventory item template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32914,11 +33461,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_module_types_bulk_update - description: Put a list of module type objects. + operationId: dcim_inventory_item_templates_bulk_update + description: Put a list of inventory item template objects. tags: - dcim requestBody: @@ -32927,12 +33474,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32944,11 +33491,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_module_types_bulk_partial_update - description: Patch a list of module type objects. + operationId: dcim_inventory_item_templates_bulk_partial_update + description: Patch a list of inventory item template objects. tags: - dcim requestBody: @@ -32957,12 +33504,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32974,11 +33521,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_module_types_bulk_destroy - description: Delete a list of module type objects. + operationId: dcim_inventory_item_templates_bulk_destroy + description: Delete a list of inventory item template objects. tags: - dcim requestBody: @@ -32987,12 +33534,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -33000,16 +33547,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/{id}/: + /api/dcim/inventory-item-templates/{id}/: get: - operationId: dcim_module_types_retrieve - description: Get a module type object. + operationId: dcim_inventory_item_templates_retrieve + description: Get a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -33021,17 +33568,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_module_types_update - description: Put a module type object. + operationId: dcim_inventory_item_templates_update + description: Put a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -33039,10 +33586,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -33052,17 +33599,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_module_types_partial_update - description: Patch a module type object. + operationId: dcim_inventory_item_templates_partial_update + description: Patch a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -33070,10 +33617,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -33082,17 +33629,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_module_types_destroy - description: Delete a module type object. + operationId: dcim_inventory_item_templates_destroy + description: Delete a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -33102,10 +33649,10 @@ paths: responses: '204': description: No response body - /api/dcim/modules/: + /api/dcim/inventory-items/: get: - operationId: dcim_modules_list - description: Get a list of module objects. + operationId: dcim_inventory_items_list + description: Get a list of inventory item objects. parameters: - in: query name: asset_tag @@ -33191,6 +33738,77 @@ paths: type: string explode: true style: form + - in: query + name: component_id + schema: + type: array + items: + type: integer + 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: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_type + schema: + type: string + - in: query + name: component_type__n + schema: + type: string - in: query name: created schema: @@ -33343,6 +33961,26 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query name: device_id schema: @@ -33362,246 +34000,247 @@ paths: explode: true style: form - in: query - name: id + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__empty + name: device_role__n schema: - type: boolean + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form - in: query - name: id__gt + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: id__gte + name: device_role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: id__lt + name: device_status schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__lte + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__n + name: device_status__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated + name: device_status__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__empty + name: device_status__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gt + name: device_status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gte + name: device_status__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__lt + name: device_status__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__lte + name: device_status__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__n + name: device_status__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: manufacturer + name: device_type schema: type: array items: type: string - description: Manufacturer (slug) + description: Device type (model) explode: true style: form - in: query - name: manufacturer__n + name: device_type__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Device type (model) explode: true style: form - in: query - name: manufacturer_id + name: device_type_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Device type (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Device type (ID) explode: true style: form - in: query - name: modified_by_request + name: discovered schema: - type: string - format: uuid + type: boolean - in: query - name: module_bay_id + name: id schema: type: array items: type: integer - description: Module Bay (ID) + format: int32 explode: true style: form - in: query - name: module_bay_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Module Bay (ID) + format: int32 explode: true style: form - in: query - name: module_type + name: id__gte schema: type: array items: - type: string - description: Module type (model) + type: integer + format: int32 explode: true style: form - in: query - name: module_type__n + name: id__lt schema: type: array items: - type: string - description: Module type (model) + type: integer + format: int32 explode: true style: form - in: query - name: module_type_id + name: id__lte schema: type: array items: type: integer - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: module_type_id__n + name: id__n schema: type: array items: type: integer - description: Module type (ID) + 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. + - in: query + name: label schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: label__empty schema: - type: string - description: Search + type: boolean - in: query - name: serial + name: label__ic schema: type: array items: @@ -33609,11 +34248,15 @@ paths: explode: true style: form - in: query - name: serial__empty + name: label__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: serial__ic + name: label__iew schema: type: array items: @@ -33621,7 +34264,7 @@ paths: explode: true style: form - in: query - name: serial__ie + name: label__isw schema: type: array items: @@ -33629,7 +34272,7 @@ paths: explode: true style: form - in: query - name: serial__iew + name: label__n schema: type: array items: @@ -33637,7 +34280,7 @@ paths: explode: true style: form - in: query - name: serial__isw + name: label__nic schema: type: array items: @@ -33645,7 +34288,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: label__nie schema: type: array items: @@ -33653,7 +34296,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: label__niew schema: type: array items: @@ -33661,7 +34304,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: label__nisw schema: type: array items: @@ -33669,381 +34312,223 @@ paths: explode: true style: form - in: query - name: serial__niew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__nisw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: status + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + format: date-time explode: true style: form - in: query - name: status__n + name: last_updated__gte schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + format: date-time explode: true style: form - in: query - name: tag + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: updated_by_request + name: last_updated__n schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedModuleList' - description: '' - post: - operationId: dcim_modules_create - description: Post a list of module objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableModuleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableModuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Module' - description: '' - put: - operationId: dcim_modules_bulk_update - description: Put a list of module objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Module' - description: '' - patch: - operationId: dcim_modules_bulk_partial_update - description: Patch a list of module objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Module' - description: '' - delete: - operationId: dcim_modules_bulk_destroy - description: Delete a list of module objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/modules/{id}/: - get: - operationId: dcim_modules_retrieve - description: Get a module object. - parameters: - - in: path - name: id + 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 - description: A unique integer value identifying this module. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Module' - description: '' - put: - operationId: dcim_modules_update - description: Put a module object. - parameters: - - in: path - name: id + - in: query + name: location schema: - type: integer - description: A unique integer value identifying this module. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableModuleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableModuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Module' - description: '' - patch: - operationId: dcim_modules_partial_update - description: Patch a module object. - parameters: - - in: path - name: id + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n schema: - type: integer - description: A unique integer value identifying this module. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Module' - description: '' - delete: - operationId: dcim_modules_destroy - description: Delete a module object. - parameters: - - in: path - name: id + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id schema: - type: integer - description: A unique integer value identifying this module. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/platforms/: - get: - operationId: dcim_platforms_list - description: Get a list of platform objects. - parameters: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form - in: query - name: available_for_device_type + name: location_id__n schema: - type: string + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form - in: query - name: config_template_id + name: manufacturer + schema: + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form + - in: query + name: manufacturer__n + schema: + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form + - in: query + name: manufacturer_id schema: type: array items: type: integer nullable: true - description: Config template (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: config_template_id__n + name: manufacturer_id__n schema: type: array items: type: integer nullable: true - description: Config template (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: created + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: name__nie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: name__niew schema: type: array items: @@ -34051,27 +34536,47 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__nisw schema: - type: boolean + 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: description__ic + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: description__ie + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: description__iew + name: part_id schema: type: array items: @@ -34079,7 +34584,11 @@ paths: explode: true style: form - in: query - name: description__isw + name: part_id__empty + schema: + type: boolean + - in: query + name: part_id__ic schema: type: array items: @@ -34087,7 +34596,7 @@ paths: explode: true style: form - in: query - name: description__n + name: part_id__ie schema: type: array items: @@ -34095,7 +34604,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: part_id__iew schema: type: array items: @@ -34103,7 +34612,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: part_id__isw schema: type: array items: @@ -34111,7 +34620,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: part_id__n schema: type: array items: @@ -34119,7 +34628,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: part_id__nic schema: type: array items: @@ -34127,175 +34636,186 @@ paths: explode: true style: form - in: query - name: id + name: part_id__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: part_id__niew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: part_id__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: id__lt + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: id__lte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: id__n + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: last_updated + name: region schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: region__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: region_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: region_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: role schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__lte + name: role__n schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__n + name: role_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Role (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: role_id__n schema: - type: integer + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form - in: query - name: manufacturer + name: serial schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer__n + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer_id + name: serial__ie schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: manufacturer_id__n + name: serial__iew schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: modified_by_request + name: serial__isw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: name + name: serial__n schema: type: array items: @@ -34303,11 +34823,15 @@ paths: explode: true style: form - in: query - name: name__empty + name: serial__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: name__ic + name: serial__nie schema: type: array items: @@ -34315,7 +34839,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: serial__niew schema: type: array items: @@ -34323,7 +34847,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: serial__nisw schema: type: array items: @@ -34331,23 +34855,25 @@ paths: explode: true style: form - in: query - name: name__isw + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__n + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__nic + name: site_group schema: type: array items: @@ -34355,7 +34881,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: site_group__n schema: type: array items: @@ -34363,7 +34889,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: site_group_id schema: type: array items: @@ -34371,112 +34897,123 @@ paths: explode: true style: form - in: query - name: name__nisw + name: site_group_id__n 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. + - in: query + name: site_id schema: - type: string + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query - name: q + name: site_id__n schema: - type: string - description: Search + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query - name: slug + name: status schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__empty + name: status__empty schema: type: boolean - in: query - name: slug__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: slug__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query @@ -34500,6 +35037,42 @@ paths: schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -34510,21 +35083,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPlatformList' + $ref: '#/components/schemas/PaginatedInventoryItemList' description: '' post: - operationId: dcim_platforms_create - description: Post a list of platform objects. + operationId: dcim_inventory_items_create + description: Post a list of inventory item objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableInventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableInventoryItemRequest' required: true security: - cookieAuth: [] @@ -34534,11 +35107,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_platforms_bulk_update - description: Put a list of platform objects. + operationId: dcim_inventory_items_bulk_update + description: Put a list of inventory item objects. tags: - dcim requestBody: @@ -34547,12 +35120,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -34564,11 +35137,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_platforms_bulk_partial_update - description: Patch a list of platform objects. + operationId: dcim_inventory_items_bulk_partial_update + description: Patch a list of inventory item objects. tags: - dcim requestBody: @@ -34577,12 +35150,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -34594,11 +35167,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_platforms_bulk_destroy - description: Delete a list of platform objects. + operationId: dcim_inventory_items_bulk_destroy + description: Delete a list of inventory item objects. tags: - dcim requestBody: @@ -34607,12 +35180,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -34620,16 +35193,16 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/{id}/: + /api/dcim/inventory-items/{id}/: get: - operationId: dcim_platforms_retrieve - description: Get a platform object. + operationId: dcim_inventory_items_retrieve + description: Get a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -34641,17 +35214,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_platforms_update - description: Put a platform object. + operationId: dcim_inventory_items_update + description: Put a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -34659,10 +35232,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableInventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableInventoryItemRequest' required: true security: - cookieAuth: [] @@ -34672,17 +35245,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_platforms_partial_update - description: Patch a platform object. + operationId: dcim_inventory_items_partial_update + description: Patch a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -34690,10 +35263,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedWritableInventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedWritableInventoryItemRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -34702,17 +35275,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_platforms_destroy - description: Delete a platform object. + operationId: dcim_inventory_items_destroy + description: Delete a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -34722,247 +35295,241 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/: + /api/dcim/locations/: get: - operationId: dcim_power_feeds_list - description: Get a list of power feed objects. + operationId: dcim_locations_list + description: Get a list of location objects. parameters: - in: query - name: amperage + name: ancestor schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: amperage__empty - schema: - type: boolean - - in: query - name: amperage__gt + name: ancestor__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: amperage__gte + name: ancestor_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: amperage__lt + name: ancestor_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: amperage__lte + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: amperage__n + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: available_power + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: available_power__empty - schema: - type: boolean - - in: query - name: available_power__gt + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: available_power__gte + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: available_power__lt + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: available_power__lte + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: available_power__n + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: cable_end + name: created__gt schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: cable_end__n + name: created__gte schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: cable_id + name: created__lt schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cable_id__n + name: created__lte schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cabled + name: created__n schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: connected + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query - name: created + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: description__niew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: description__nisw schema: type: array items: @@ -34970,11 +35537,19 @@ paths: explode: true style: form - in: query - name: description__empty + name: facility + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__empty schema: type: boolean - in: query - name: description__ic + name: facility__ic schema: type: array items: @@ -34982,7 +35557,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: facility__ie schema: type: array items: @@ -34990,7 +35565,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: facility__iew schema: type: array items: @@ -34998,7 +35573,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: facility__isw schema: type: array items: @@ -35006,7 +35581,7 @@ paths: explode: true style: form - in: query - name: description__n + name: facility__n schema: type: array items: @@ -35014,7 +35589,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: facility__nic schema: type: array items: @@ -35022,7 +35597,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: facility__nie schema: type: array items: @@ -35030,7 +35605,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: facility__niew schema: type: array items: @@ -35038,7 +35613,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: facility__nisw schema: type: array items: @@ -35172,68 +35747,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: max_utilization - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__empty - schema: - type: boolean - - in: query - name: max_utilization__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -35323,10 +35836,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -35340,75 +35849,54 @@ paths: schema: type: string - in: query - name: phase - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: phase__n - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: power_panel_id + name: parent schema: type: array items: - type: integer - description: Power panel (ID) + type: string + description: Parent location (slug) explode: true style: form - in: query - name: power_panel_id__n + name: parent__n schema: type: array items: - type: integer - description: Power panel (ID) + type: string + description: Parent location (slug) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_id + name: parent_id schema: type: array items: type: integer - description: Rack (ID) + nullable: true + description: Parent location (ID) explode: true style: form - in: query - name: rack_id__n + name: parent_id__n schema: type: array items: type: integer - description: Rack (ID) + nullable: true + description: Parent location (ID) explode: true style: form + - in: query + name: q + schema: + type: string + description: Search - in: query name: region schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -35416,8 +35904,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -35425,8 +35912,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -35434,8 +35920,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -35444,7 +35929,7 @@ paths: type: array items: type: string - description: Site name (slug) + description: Site (slug) explode: true style: form - in: query @@ -35453,7 +35938,7 @@ paths: type: array items: type: string - description: Site name (slug) + description: Site (slug) explode: true style: form - in: query @@ -35461,8 +35946,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -35470,8 +35954,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -35479,8 +35962,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -35488,8 +35970,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -35511,47 +35992,43 @@ paths: explode: true style: form - in: query - name: status + name: slug schema: type: array items: type: string - x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: supply + name: slug__ie schema: - type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' + type: array + items: + type: string + explode: true + style: form - in: query - name: supply__n + name: slug__iew schema: - type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: slug__isw schema: type: array items: @@ -35559,7 +36036,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__n schema: type: array items: @@ -35567,164 +36044,222 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: status schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: tenant_group_id__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: tenant_id + name: status__ie schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: tenant_id__n + name: status__iew schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: type + name: status__isw schema: - type: string - x-spec-enum-id: 093a164236819eb8 - enum: - - primary - - redundant - description: '* `primary` - Primary - - * `redundant` - Redundant' + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form - in: query - name: type__n + name: status__n schema: - type: string - x-spec-enum-id: 093a164236819eb8 - enum: - - primary - - redundant - description: '* `primary` - Primary - - * `redundant` - Redundant' + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form - in: query - name: updated_by_request + name: status__nic schema: - type: string - format: uuid + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form - in: query - name: voltage + name: status__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: voltage__empty + name: status__niew schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form - in: query - name: voltage__gt + name: status__nisw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: voltage__gte + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: voltage__lt + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: voltage__lte + 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 + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: voltage__n + name: tenant_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -35735,21 +36270,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerFeedList' + $ref: '#/components/schemas/PaginatedLocationList' description: '' post: - operationId: dcim_power_feeds_create - description: Post a list of power feed objects. + operationId: dcim_locations_create + description: Post a list of location objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -35759,11 +36294,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_power_feeds_bulk_update - description: Put a list of power feed objects. + operationId: dcim_locations_bulk_update + description: Put a list of location objects. tags: - dcim requestBody: @@ -35772,12 +36307,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -35789,11 +36324,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_power_feeds_bulk_partial_update - description: Patch a list of power feed objects. + operationId: dcim_locations_bulk_partial_update + description: Patch a list of location objects. tags: - dcim requestBody: @@ -35802,12 +36337,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -35819,11 +36354,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_power_feeds_bulk_destroy - description: Delete a list of power feed objects. + operationId: dcim_locations_bulk_destroy + description: Delete a list of location objects. tags: - dcim requestBody: @@ -35832,12 +36367,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -35845,16 +36380,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/: + /api/dcim/locations/{id}/: get: - operationId: dcim_power_feeds_retrieve - description: Get a power feed object. + operationId: dcim_locations_retrieve + description: Get a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -35866,17 +36401,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_power_feeds_update - description: Put a power feed object. + operationId: dcim_locations_update + description: Put a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -35884,10 +36419,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -35897,17 +36432,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_power_feeds_partial_update - description: Patch a power feed object. + operationId: dcim_locations_partial_update + description: Patch a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -35915,10 +36450,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -35927,17 +36462,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_power_feeds_destroy - description: Delete a power feed object. + operationId: dcim_locations_destroy + description: Delete a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -35947,35 +36482,77 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/trace/: + /api/dcim/mac-addresses/: get: - operationId: dcim_power_feeds_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_mac_addresses_list + description: Get a list of MAC address objects. parameters: - - in: path - name: id + - in: query + name: assigned_object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__empty + schema: + type: boolean + - in: query + name: assigned_object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_type + schema: + type: integer + - in: query + name: assigned_object_type__n schema: type: integer - description: A unique integer value identifying this power feed. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - /api/dcim/power-outlet-templates/: - get: - operationId: dcim_power_outlet_templates_list - description: Get a list of power outlet template objects. - parameters: - in: query name: created schema: @@ -36129,63 +36706,20 @@ paths: explode: true style: form - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: feed_leg + name: device schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) explode: true style: form - in: query - name: feed_leg__n + name: device_id schema: type: array items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + type: integer + format: int32 explode: true style: form - in: query @@ -36247,87 +36781,39 @@ paths: explode: true style: form - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic + name: interface schema: type: array items: type: string + description: Interface (name) explode: true style: form - in: query - name: label__nie + name: interface__n schema: type: array items: type: string + description: Interface (name) explode: true style: form - in: query - name: label__niew + name: interface_id schema: type: array items: - type: string + type: integer + description: Interface (ID) explode: true style: form - in: query - name: label__nisw + name: interface_id__n schema: type: array items: - type: string + type: integer + description: Interface (ID) explode: true style: form - in: query @@ -36400,52 +36886,47 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: mac_address schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: module_type_id + name: mac_address__ic schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: module_type_id__n + name: mac_address__ie schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: mac_address__iew schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id__n + name: mac_address__isw schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: mac_address__n schema: type: array items: @@ -36453,11 +36934,15 @@ paths: explode: true style: form - in: query - name: name__empty + name: mac_address__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: name__ic + name: mac_address__nie schema: type: array items: @@ -36465,7 +36950,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: mac_address__niew schema: type: array items: @@ -36473,7 +36958,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: mac_address__nisw schema: type: array items: @@ -36481,7 +36966,29 @@ paths: explode: true style: form - in: query - name: name__isw + name: modified_by_request + schema: + type: string + format: uuid + - 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: q + schema: + type: string + description: Search + - in: query + name: tag schema: type: array items: @@ -36489,7 +36996,7 @@ paths: explode: true style: form - in: query - name: name__n + name: tag__n schema: type: array items: @@ -36497,7 +37004,12 @@ paths: explode: true style: form - in: query - name: name__nic + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: @@ -36505,235 +37017,50 @@ paths: explode: true style: form - in: query - name: name__nie + name: virtual_machine_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: vminterface schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: name__nisw + name: vminterface__n schema: type: array items: type: string + description: VM interface (name) 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: power_port_id + name: vminterface_id schema: type: array items: type: integer - nullable: true - description: Power port (ID) + description: VM interface (ID) explode: true style: form - in: query - name: power_port_id__n + name: vminterface_id__n schema: type: array items: type: integer - nullable: true - description: Power port (ID) + description: VM interface (ID) explode: true style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''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` - [(''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'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''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 (Locking)` - [(''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'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''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` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''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'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - - in: query - name: type__n - schema: - type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''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` - [(''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'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''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 (Locking)` - [(''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'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''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` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''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'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - dcim security: @@ -36744,21 +37071,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' + $ref: '#/components/schemas/PaginatedMACAddressList' description: '' post: - operationId: dcim_power_outlet_templates_create - description: Post a list of power outlet template objects. + operationId: dcim_mac_addresses_create + description: Post a list of MAC address objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' required: true security: - cookieAuth: [] @@ -36768,11 +37095,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/MACAddress' description: '' put: - operationId: dcim_power_outlet_templates_bulk_update - description: Put a list of power outlet template objects. + operationId: dcim_mac_addresses_bulk_update + description: Put a list of MAC address objects. tags: - dcim requestBody: @@ -36781,12 +37108,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' required: true security: - cookieAuth: [] @@ -36798,11 +37125,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/MACAddress' description: '' patch: - operationId: dcim_power_outlet_templates_bulk_partial_update - description: Patch a list of power outlet template objects. + operationId: dcim_mac_addresses_bulk_partial_update + description: Patch a list of MAC address objects. tags: - dcim requestBody: @@ -36811,12 +37138,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' required: true security: - cookieAuth: [] @@ -36828,11 +37155,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/MACAddress' description: '' delete: - operationId: dcim_power_outlet_templates_bulk_destroy - description: Delete a list of power outlet template objects. + operationId: dcim_mac_addresses_bulk_destroy + description: Delete a list of MAC address objects. tags: - dcim requestBody: @@ -36841,12 +37168,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' required: true security: - cookieAuth: [] @@ -36854,16 +37181,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlet-templates/{id}/: + /api/dcim/mac-addresses/{id}/: get: - operationId: dcim_power_outlet_templates_retrieve - description: Get a power outlet template object. + operationId: dcim_mac_addresses_retrieve + description: Get a MAC address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this MAC address. required: true tags: - dcim @@ -36875,17 +37202,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/MACAddress' description: '' put: - operationId: dcim_power_outlet_templates_update - description: Put a power outlet template object. + operationId: dcim_mac_addresses_update + description: Put a MAC address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this MAC address. required: true tags: - dcim @@ -36893,10 +37220,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/MACAddressRequest' required: true security: - cookieAuth: [] @@ -36906,17 +37233,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/MACAddress' description: '' patch: - operationId: dcim_power_outlet_templates_partial_update - description: Patch a power outlet template object. + operationId: dcim_mac_addresses_partial_update + description: Patch a MAC address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this MAC address. required: true tags: - dcim @@ -36924,10 +37251,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedMACAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedMACAddressRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -36936,17 +37263,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/MACAddress' description: '' delete: - operationId: dcim_power_outlet_templates_destroy - description: Delete a power outlet template object. + operationId: dcim_mac_addresses_destroy + description: Delete a MAC address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this MAC address. required: true tags: - dcim @@ -36956,61 +37283,63 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/: + /api/dcim/manufacturers/: get: - operationId: dcim_power_outlets_list - description: Get a list of power outlet objects. + operationId: dcim_manufacturers_list + description: Get a list of manufacturer objects. parameters: - in: query - name: cable_end + name: contact schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: integer + description: Contact + explode: true + style: form - in: query - name: cable_end__n + name: contact__n schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: integer + description: Contact + explode: true + style: form - in: query - name: cable_id + name: contact_group schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - in: query - name: cable_id__n + name: contact_group__n schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - in: query - name: cabled + name: contact_role schema: - type: boolean + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query - name: connected + name: contact_role__n schema: - type: boolean + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -37164,159 +37493,139 @@ paths: explode: true style: form - in: query - name: device + name: id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__empty schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form + type: boolean - in: query - name: device_id + name: id__gt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__gte schema: type: array items: type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) + format: int32 explode: true style: form - in: query - name: device_type__n + name: id__lt schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: id__lte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: id__n schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: feed_leg + name: last_updated schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + format: date-time explode: true style: form - in: query - name: feed_leg__n + name: last_updated__empty schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + format: date-time explode: true style: form - in: query - name: id + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__n schema: type: array items: - type: integer - format: int32 + 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: id__n + name: modified_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: label + name: name schema: type: array items: @@ -37324,11 +37633,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: name__empty schema: type: boolean - in: query - name: label__ic + name: name__ic schema: type: array items: @@ -37336,7 +37645,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: name__ie schema: type: array items: @@ -37344,7 +37653,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: name__iew schema: type: array items: @@ -37352,7 +37661,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: name__isw schema: type: array items: @@ -37360,7 +37669,7 @@ paths: explode: true style: form - in: query - name: label__n + name: name__n schema: type: array items: @@ -37368,7 +37677,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: name__nic schema: type: array items: @@ -37376,7 +37685,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: name__nie schema: type: array items: @@ -37384,7 +37693,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__niew schema: type: array items: @@ -37392,149 +37701,32 @@ paths: explode: true style: form - in: query - name: label__nisw + 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: 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 (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request + name: q schema: type: string - format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form + description: Search - in: query - name: name + name: slug schema: type: array items: @@ -37542,59 +37734,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: slug__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 + name: slug__ic schema: type: array items: @@ -37602,7 +37746,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: slug__ie schema: type: array items: @@ -37610,7 +37754,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: slug__iew schema: type: array items: @@ -37618,224 +37762,51 @@ paths: explode: true style: form - in: query - name: occupied - schema: - type: boolean - - 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: power_port_id - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: power_port_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: slug__isw schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: slug__n schema: type: array items: type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) explode: true style: form - in: query - name: role + name: slug__nic schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: slug__nie 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 + name: slug__niew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__nisw schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) explode: true style: form - in: query @@ -37854,67 +37825,11 @@ paths: type: string explode: true style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -37925,21 +37840,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletList' + $ref: '#/components/schemas/PaginatedManufacturerList' description: '' post: - operationId: dcim_power_outlets_create - description: Post a list of power outlet objects. + operationId: dcim_manufacturers_create + description: Post a list of manufacturer objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -37949,11 +37864,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_power_outlets_bulk_update - description: Put a list of power outlet objects. + operationId: dcim_manufacturers_bulk_update + description: Put a list of manufacturer objects. tags: - dcim requestBody: @@ -37962,12 +37877,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -37979,11 +37894,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_power_outlets_bulk_partial_update - description: Patch a list of power outlet objects. + operationId: dcim_manufacturers_bulk_partial_update + description: Patch a list of manufacturer objects. tags: - dcim requestBody: @@ -37992,12 +37907,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -38009,11 +37924,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_power_outlets_bulk_destroy - description: Delete a list of power outlet objects. + operationId: dcim_manufacturers_bulk_destroy + description: Delete a list of manufacturer objects. tags: - dcim requestBody: @@ -38022,12 +37937,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -38035,16 +37950,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/: + /api/dcim/manufacturers/{id}/: get: - operationId: dcim_power_outlets_retrieve - description: Get a power outlet object. + operationId: dcim_manufacturers_retrieve + description: Get a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -38056,17 +37971,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_power_outlets_update - description: Put a power outlet object. + operationId: dcim_manufacturers_update + description: Put a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -38074,10 +37989,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -38087,17 +38002,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_power_outlets_partial_update - description: Patch a power outlet object. + operationId: dcim_manufacturers_partial_update + description: Patch a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -38105,10 +38020,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38117,17 +38032,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_power_outlets_destroy - description: Delete a power outlet object. + operationId: dcim_manufacturers_destroy + description: Delete a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -38137,89 +38052,11 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/trace/: - get: - operationId: dcim_power_outlets_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power outlet. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - /api/dcim/power-panels/: + /api/dcim/module-bay-templates/: get: - operationId: dcim_power_panels_list - description: Get a list of power panel objects. + operationId: dcim_module_bay_templates_list + description: Get a list of module bay template objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -38372,6 +38209,26 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -38430,6 +38287,90 @@ paths: format: int32 explode: true style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -38500,28 +38441,30 @@ paths: schema: type: integer - in: query - name: location_id + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_type_id schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: location_id__n + name: module_type_id__n schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Module type (ID) explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -38619,120 +38562,83 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id + name: position schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: position__empty schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: boolean - in: query - name: site + name: position__ic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: position__ie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: position__iew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: position__isw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: position__n schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: position__nic schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: position__nie schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: position__niew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: position__nisw schema: type: array items: @@ -38740,13 +38646,10 @@ paths: explode: true style: form - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: updated_by_request schema: @@ -38762,21 +38665,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPanelList' + $ref: '#/components/schemas/PaginatedModuleBayTemplateList' description: '' post: - operationId: dcim_power_panels_create - description: Post a list of power panel objects. + operationId: dcim_module_bay_templates_create + description: Post a list of module bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -38786,11 +38689,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_power_panels_bulk_update - description: Put a list of power panel objects. + operationId: dcim_module_bay_templates_bulk_update + description: Put a list of module bay template objects. tags: - dcim requestBody: @@ -38799,12 +38702,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -38816,11 +38719,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_power_panels_bulk_partial_update - description: Patch a list of power panel objects. + operationId: dcim_module_bay_templates_bulk_partial_update + description: Patch a list of module bay template objects. tags: - dcim requestBody: @@ -38829,12 +38732,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -38846,11 +38749,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_power_panels_bulk_destroy - description: Delete a list of power panel objects. + operationId: dcim_module_bay_templates_bulk_destroy + description: Delete a list of module bay template objects. tags: - dcim requestBody: @@ -38859,12 +38762,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -38872,16 +38775,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-panels/{id}/: + /api/dcim/module-bay-templates/{id}/: get: - operationId: dcim_power_panels_retrieve - description: Get a power panel object. + operationId: dcim_module_bay_templates_retrieve + description: Get a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -38893,17 +38796,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_power_panels_update - description: Put a power panel object. + operationId: dcim_module_bay_templates_update + description: Put a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -38911,10 +38814,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -38924,17 +38827,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_power_panels_partial_update - description: Patch a power panel object. + operationId: dcim_module_bay_templates_partial_update + description: Patch a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -38942,10 +38845,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38954,17 +38857,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_power_panels_destroy - description: Delete a power panel object. + operationId: dcim_module_bay_templates_destroy + description: Delete a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -38974,69 +38877,11 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/: + /api/dcim/module-bays/: get: - operationId: dcim_power_port_templates_list - description: Get a list of power port template objects. + operationId: dcim_module_bays_list + description: Get a list of module bay objects. parameters: - - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__empty - schema: - type: boolean - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: created schema: @@ -39190,357 +39035,497 @@ paths: explode: true style: form - in: query - name: device_type_id + name: device schema: type: array items: - type: integer + type: string nullable: true - description: Device type (ID) + description: Device (name) explode: true style: form - in: query - name: device_type_id__n + name: device__n schema: type: array items: - type: integer + type: string nullable: true - description: Device type (ID) + description: Device (name) explode: true style: form - in: query - name: devicetype_id + name: device_id schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query - name: devicetype_id__n + name: device_id__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query - name: id + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: device_role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__gte + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: id__lt + name: device_role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: id__lte + name: device_status schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__n + name: device_status__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: label + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__ie + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__iew + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__isw + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__n + name: device_status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__nic + name: device_status__nie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__nie + name: device_status__niew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__niew + name: device_status__nisw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: label__nisw + name: device_type schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: last_updated + name: device_type__n schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__empty + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__gt + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + 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: installed_module_id + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: installed_module_id__n + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__isw 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. + - in: query + name: label__n schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: maximum_draw + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__empty + name: label__nie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: maximum_draw__gt + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__gte + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__lt + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: maximum_draw__lte + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: maximum_draw__n + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: modified_by_request + name: last_updated__gte schema: - type: string - format: uuid + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: module_type_id + 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 - nullable: true - description: Module type (ID) + description: Location (ID) explode: true style: form - in: query - name: module_type_id__n + name: location_id__n schema: type: array items: type: integer - nullable: true - description: Module type (ID) + description: Location (ID) explode: true style: form - in: query - name: moduletype_id + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id schema: type: array items: type: integer nullable: true - description: Module type (ID) + description: Module (ID) explode: true style: form - in: query - name: moduletype_id__n + name: module_id__n schema: type: array items: type: integer nullable: true - description: Module type (ID) + description: Module (ID) explode: true style: form - in: query @@ -39639,186 +39624,308 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent module bay (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent module bay (ID) + explode: true + style: form + - in: query + name: position + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__empty + schema: + type: boolean + - in: query + name: position__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: type + name: rack schema: - type: string - x-spec-enum-id: 6d680dea031864ae - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - International/ITA - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''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` - [(''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'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''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 (Locking)` - [(''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'')] - - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] - - * `International/ITA` - [(''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` - [(''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'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''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'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + type: array + items: + type: string + description: Rack (name) + explode: true + style: form - in: query - name: type__n + name: rack__n schema: - type: string - x-spec-enum-id: 6d680dea031864ae - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - International/ITA - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''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` - [(''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'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''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 (Locking)` - [(''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'')] - - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] - - * `International/ITA` - [(''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` - [(''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'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''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'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -39829,21 +39936,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortTemplateList' + $ref: '#/components/schemas/PaginatedModuleBayList' description: '' post: - operationId: dcim_power_port_templates_create - description: Post a list of power port template objects. + operationId: dcim_module_bays_create + description: Post a list of module bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -39853,11 +39960,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_power_port_templates_bulk_update - description: Put a list of power port template objects. + operationId: dcim_module_bays_bulk_update + description: Put a list of module bay objects. tags: - dcim requestBody: @@ -39866,12 +39973,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -39883,11 +39990,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_power_port_templates_bulk_partial_update - description: Patch a list of power port template objects. + operationId: dcim_module_bays_bulk_partial_update + description: Patch a list of module bay objects. tags: - dcim requestBody: @@ -39896,12 +40003,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -39913,11 +40020,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_power_port_templates_bulk_destroy - description: Delete a list of power port template objects. + operationId: dcim_module_bays_bulk_destroy + description: Delete a list of module bay objects. tags: - dcim requestBody: @@ -39926,12 +40033,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -39939,16 +40046,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/{id}/: + /api/dcim/module-bays/{id}/: get: - operationId: dcim_power_port_templates_retrieve - description: Get a power port template object. + operationId: dcim_module_bays_retrieve + description: Get a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -39960,17 +40067,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_power_port_templates_update - description: Put a power port template object. + operationId: dcim_module_bays_update + description: Put a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -39978,10 +40085,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -39991,17 +40098,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_power_port_templates_partial_update - description: Patch a power port template object. + operationId: dcim_module_bays_partial_update + description: Patch a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -40009,10 +40116,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -40021,17 +40128,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_power_port_templates_destroy - description: Delete a power port template object. + operationId: dcim_module_bays_destroy + description: Delete a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -40041,119 +40148,45 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/: + /api/dcim/module-types/: get: - operationId: dcim_power_ports_list - description: Get a list of power port objects. + operationId: dcim_module_types_list + description: Get a list of module type objects. parameters: - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__empty - schema: - type: boolean - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: cable_end + name: airflow schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 + x-spec-enum-id: f6e5562e0e98d69d + nullable: true enum: - - A - - B - description: '* `A` - A + - front-to-rear + - left-to-right + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A + * `rear-to-front` - Rear to front - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' - in: query - name: cabled + name: console_ports schema: type: boolean + description: Has console ports - in: query - name: connected + name: console_server_ports schema: type: boolean + description: Has console server ports - in: query name: created schema: @@ -40307,81 +40340,56 @@ paths: explode: true style: form - in: query - name: device + name: id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__empty schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form + type: boolean - in: query - name: device_id + name: id__gt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__gte schema: type: array items: type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) + format: int32 explode: true style: form - in: query - name: device_type_id + name: id__lt schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: id__lte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: id + name: id__n schema: type: array items: @@ -40390,108 +40398,117 @@ paths: explode: true style: form - in: query - name: id__empty + name: interfaces schema: type: boolean + description: Has interfaces - in: query - name: id__gt + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: label + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + 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: label__ie + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__iew + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__isw + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: label__n + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: label__nic + name: model schema: type: array items: @@ -40499,7 +40516,11 @@ paths: explode: true style: form - in: query - name: label__nie + name: model__empty + schema: + type: boolean + - in: query + name: model__ic schema: type: array items: @@ -40507,7 +40528,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: model__ie schema: type: array items: @@ -40515,7 +40536,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: model__iew schema: type: array items: @@ -40523,199 +40544,72 @@ paths: explode: true style: form - in: query - name: last_updated + name: model__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: model__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: model__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: model__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: model__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: model__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: modified_by_request schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit + type: string + format: uuid + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. 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 (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__empty - schema: - type: boolean - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: modified_by_request + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - in: query - name: name + name: part_number schema: type: array items: @@ -40723,11 +40617,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: part_number__empty schema: type: boolean - in: query - name: name__ic + name: part_number__ic schema: type: array items: @@ -40735,7 +40629,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: part_number__ie schema: type: array items: @@ -40743,7 +40637,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: part_number__iew schema: type: array items: @@ -40751,7 +40645,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: part_number__isw schema: type: array items: @@ -40759,7 +40653,7 @@ paths: explode: true style: form - in: query - name: name__n + name: part_number__n schema: type: array items: @@ -40767,7 +40661,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: part_number__nic schema: type: array items: @@ -40775,7 +40669,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: part_number__nie schema: type: array items: @@ -40783,7 +40677,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: part_number__niew schema: type: array items: @@ -40791,7 +40685,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: part_number__nisw schema: type: array items: @@ -40799,283 +40693,122 @@ paths: explode: true style: form - in: query - name: occupied + name: pass_through_ports schema: type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. + description: Has pass-through ports + - in: query + name: power_outlets schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: boolean + description: Has power outlets + - in: query + name: power_ports schema: - type: string + type: boolean + description: Has power ports - in: query name: q schema: type: string description: Search - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - 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 + name: tag schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: tag__n schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) explode: true style: form - in: query - name: site_group_id + name: updated_by_request schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: site_group_id__n + name: weight schema: type: array items: - type: integer - description: Site group (ID) + type: number + format: double explode: true style: form - in: query - name: site_id + name: weight__empty schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: boolean - in: query - name: site_id__n + name: weight__gt schema: type: array items: - type: integer - description: Site (ID) + type: number + format: double explode: true style: form - in: query - name: tag + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: type + name: weight__lte schema: type: array items: - type: string - x-spec-enum-id: 6d680dea031864ae - description: Physical port type + type: number + format: double explode: true style: form - in: query - name: type__n + name: weight__n schema: type: array items: - type: string - x-spec-enum-id: 6d680dea031864ae - description: Physical port type + type: number + format: double explode: true style: form - in: query - name: updated_by_request + name: weight_unit schema: type: string - format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form + x-spec-enum-id: 7c1876f422815884 + nullable: true + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -41086,21 +40819,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortList' + $ref: '#/components/schemas/PaginatedModuleTypeList' description: '' post: - operationId: dcim_power_ports_create - description: Post a list of power port objects. + operationId: dcim_module_types_create + description: Post a list of module type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -41110,11 +40843,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_ports_bulk_update - description: Put a list of power port objects. + operationId: dcim_module_types_bulk_update + description: Put a list of module type objects. tags: - dcim requestBody: @@ -41123,12 +40856,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -41140,11 +40873,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_ports_bulk_partial_update - description: Patch a list of power port objects. + operationId: dcim_module_types_bulk_partial_update + description: Patch a list of module type objects. tags: - dcim requestBody: @@ -41153,12 +40886,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -41170,11 +40903,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_ports_bulk_destroy - description: Delete a list of power port objects. + operationId: dcim_module_types_bulk_destroy + description: Delete a list of module type objects. tags: - dcim requestBody: @@ -41183,12 +40916,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -41196,16 +40929,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/: + /api/dcim/module-types/{id}/: get: - operationId: dcim_power_ports_retrieve - description: Get a power port object. + operationId: dcim_module_types_retrieve + description: Get a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -41217,17 +40950,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_ports_update - description: Put a power port object. + operationId: dcim_module_types_update + description: Put a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -41235,10 +40968,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -41248,17 +40981,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_ports_partial_update - description: Patch a power port object. + operationId: dcim_module_types_partial_update + description: Patch a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -41266,10 +40999,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -41278,17 +41011,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_ports_destroy - description: Delete a power port object. + operationId: dcim_module_types_destroy + description: Delete a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -41298,35 +41031,95 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/trace/: + /api/dcim/modules/: get: - operationId: dcim_power_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_modules_list + description: Get a list of module objects. parameters: - - in: path - name: id + - in: query + name: asset_tag schema: - type: integer - description: A unique integer value identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - /api/dcim/rack-reservations/: - get: - operationId: dcim_rack_reservations_list - description: Get a list of rack reservation objects. - parameters: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -41479,6 +41272,24 @@ paths: type: string explode: true style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + 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 name: id schema: @@ -41607,39 +41418,39 @@ paths: schema: type: integer - in: query - name: location + name: manufacturer schema: type: array items: - type: integer - description: Location (slug) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: location__n + name: manufacturer__n schema: type: array items: - type: integer - description: Location (slug) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: location_id + name: manufacturer_id schema: type: array items: type: integer - description: Location (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: location_id__n + name: manufacturer_id__n schema: type: array items: type: integer - description: Location (ID) + description: Manufacturer (ID) explode: true style: form - in: query @@ -41647,151 +41458,145 @@ paths: schema: type: string format: uuid - - 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: q - schema: - type: string - description: Search - - in: query - name: rack_id + name: module_bay_id schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: module_bay_id__n schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: region + name: module_type schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Module type (model) explode: true style: form - in: query - name: region__n + name: module_type__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Module type (model) explode: true style: form - in: query - name: region_id + name: module_type_id schema: type: array items: type: integer - description: Region (ID) + description: Module type (ID) explode: true style: form - in: query - name: region_id__n + name: module_type_id__n schema: type: array items: type: integer - description: Region (ID) + description: Module type (ID) 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: site + name: q + schema: + type: string + description: Search + - in: query + name: serial schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: serial__ie schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: serial__iew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: serial__isw schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: serial__n schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: serial__nic schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: serial__nie schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: serial__niew schema: type: array items: @@ -41799,7 +41604,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: serial__nisw schema: type: array items: @@ -41807,124 +41612,120 @@ paths: explode: true style: form - in: query - name: tenant + name: status schema: type: array items: type: string - description: Tenant (slug) + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tenant__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string - description: Tenant (slug) + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tenant_group + name: status__ie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tenant_group__n + name: status__iew schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tenant_group_id + name: status__isw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tenant_group_id__n + name: status__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tenant_id + name: status__nic schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tenant_id__n + name: status__nie schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: unit - schema: - type: number - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: user + name: status__niew schema: type: array items: type: string - description: User (name) + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: user__n + name: status__nisw schema: type: array items: type: string - description: User (name) + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: user_id + name: tag schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: tag__n schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -41935,21 +41736,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackReservationList' + $ref: '#/components/schemas/PaginatedModuleList' description: '' post: - operationId: dcim_rack_reservations_create - description: Post a list of rack reservation objects. + operationId: dcim_modules_create + description: Post a list of module objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -41959,11 +41760,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_rack_reservations_bulk_update - description: Put a list of rack reservation objects. + operationId: dcim_modules_bulk_update + description: Put a list of module objects. tags: - dcim requestBody: @@ -41972,12 +41773,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -41989,11 +41790,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_rack_reservations_bulk_partial_update - description: Patch a list of rack reservation objects. + operationId: dcim_modules_bulk_partial_update + description: Patch a list of module objects. tags: - dcim requestBody: @@ -42002,12 +41803,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -42019,11 +41820,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_rack_reservations_bulk_destroy - description: Delete a list of rack reservation objects. + operationId: dcim_modules_bulk_destroy + description: Delete a list of module objects. tags: - dcim requestBody: @@ -42032,12 +41833,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -42045,16 +41846,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-reservations/{id}/: + /api/dcim/modules/{id}/: get: - operationId: dcim_rack_reservations_retrieve - description: Get a rack reservation object. + operationId: dcim_modules_retrieve + description: Get a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -42066,17 +41867,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_rack_reservations_update - description: Put a rack reservation object. + operationId: dcim_modules_update + description: Put a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -42084,10 +41885,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -42097,17 +41898,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_rack_reservations_partial_update - description: Patch a rack reservation object. + operationId: dcim_modules_partial_update + description: Patch a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -42115,10 +41916,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42127,17 +41928,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_rack_reservations_destroy - description: Delete a rack reservation object. + operationId: dcim_modules_destroy + description: Delete a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -42147,93 +41948,33 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/: + /api/dcim/platforms/: get: - operationId: dcim_rack_roles_list - description: Get a list of rack role objects. + operationId: dcim_platforms_list + description: Get a list of platform objects. parameters: - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie + name: available_for_device_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: color__niew + name: config_template_id schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: color__nisw + name: config_template_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query @@ -42516,44 +42257,80 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__ie + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__iew + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) + 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 @@ -42736,21 +42513,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackRoleList' + $ref: '#/components/schemas/PaginatedPlatformList' description: '' post: - operationId: dcim_rack_roles_create - description: Post a list of rack role objects. + operationId: dcim_platforms_create + description: Post a list of platform objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -42760,11 +42537,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_rack_roles_bulk_update - description: Put a list of rack role objects. + operationId: dcim_platforms_bulk_update + description: Put a list of platform objects. tags: - dcim requestBody: @@ -42773,12 +42550,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -42790,11 +42567,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_rack_roles_bulk_partial_update - description: Patch a list of rack role objects. + operationId: dcim_platforms_bulk_partial_update + description: Patch a list of platform objects. tags: - dcim requestBody: @@ -42803,12 +42580,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -42820,11 +42597,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_rack_roles_bulk_destroy - description: Delete a list of rack role objects. + operationId: dcim_platforms_bulk_destroy + description: Delete a list of platform objects. tags: - dcim requestBody: @@ -42833,12 +42610,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -42846,16 +42623,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/{id}/: + /api/dcim/platforms/{id}/: get: - operationId: dcim_rack_roles_retrieve - description: Get a rack role object. + operationId: dcim_platforms_retrieve + description: Get a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -42867,17 +42644,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_rack_roles_update - description: Put a rack role object. + operationId: dcim_platforms_update + description: Put a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -42885,10 +42662,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -42898,17 +42675,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_rack_roles_partial_update - description: Patch a rack role object. + operationId: dcim_platforms_partial_update + description: Patch a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -42916,10 +42693,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42928,17 +42705,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_rack_roles_destroy - description: Delete a rack role object. + operationId: dcim_platforms_destroy + description: Delete a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -42948,149 +42725,167 @@ paths: responses: '204': description: No response body - /api/dcim/racks/: + /api/dcim/power-feeds/: get: - operationId: dcim_racks_list - description: Get a list of rack objects. + operationId: dcim_power_feeds_list + description: Get a list of power feed objects. parameters: - in: query - name: asset_tag + name: amperage schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__empty + name: amperage__empty schema: type: boolean - in: query - name: asset_tag__ic + name: amperage__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__ie + name: amperage__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__iew + name: amperage__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__isw + name: amperage__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__n + name: amperage__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nic + name: available_power schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nie + name: available_power__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: asset_tag__niew + name: available_power__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nisw + name: available_power__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: contact + name: available_power__lt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: available_power__lte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: available_power__n schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: cable_end schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact_role + name: cable_id schema: type: array items: type: integer - description: Contact Role + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_role__n + name: cable_id__n schema: type: array items: type: integer - description: Contact Role + nullable: true + description: Cable (ID) explode: true style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -43159,10 +42954,6 @@ paths: schema: type: string format: uuid - - in: query - name: desc_units - schema: - type: boolean - in: query name: description schema: @@ -43247,90 +43038,6 @@ paths: type: string explode: true style: form - - in: query - name: facility_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__empty - schema: - type: boolean - - in: query - name: facility_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: id schema: @@ -43459,43 +43166,11 @@ paths: schema: type: integer - in: query - name: location - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n + name: mark_connected schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form + type: boolean - in: query - name: max_weight + name: max_utilization schema: type: array items: @@ -43504,11 +43179,11 @@ paths: explode: true style: form - in: query - name: max_weight__empty + name: max_utilization__empty schema: type: boolean - in: query - name: max_weight__gt + name: max_utilization__gt schema: type: array items: @@ -43517,7 +43192,7 @@ paths: explode: true style: form - in: query - name: max_weight__gte + name: max_utilization__gte schema: type: array items: @@ -43526,7 +43201,7 @@ paths: explode: true style: form - in: query - name: max_weight__lt + name: max_utilization__lt schema: type: array items: @@ -43535,7 +43210,7 @@ paths: explode: true style: form - in: query - name: max_weight__lte + name: max_utilization__lte schema: type: array items: @@ -43544,7 +43219,7 @@ paths: explode: true style: form - in: query - name: max_weight__n + name: max_utilization__n schema: type: array items: @@ -43557,64 +43232,6 @@ paths: schema: type: string format: uuid - - in: query - name: mounting_depth - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__empty - schema: - type: boolean - - in: query - name: mounting_depth__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: name schema: @@ -43699,6 +43316,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -43712,141 +43333,32 @@ paths: schema: type: string - in: query - name: outer_depth - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__empty - schema: - type: boolean - - in: query - name: outer_depth__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_unit - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_unit__n + name: phase schema: type: string - x-spec-enum-id: 86a846b6c40f495e + x-spec-enum-id: 994bc0696f4df57f enum: - - in - - mm - description: '* `mm` - Millimeters + - single-phase + - three-phase + description: '* `single-phase` - Single phase - * `in` - Inches' - - in: query - name: outer_width - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_width__empty - schema: - type: boolean - - in: query - name: outer_width__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_width__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_width__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + * `three-phase` - Three-phase' - in: query - name: outer_width__lte + name: power_panel_id schema: type: array items: type: integer - format: int32 + description: Power panel (ID) explode: true style: form - in: query - name: outer_width__n + name: power_panel_id__n schema: type: array items: type: integer - format: int32 + description: Power panel (ID) explode: true style: form - in: query @@ -43855,101 +43367,25 @@ paths: type: string description: Search - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id + name: rack_id schema: type: array items: type: integer - nullable: true - description: Role (ID) + description: Rack (ID) explode: true style: form - in: query - name: role_id__n + name: rack_id__n schema: type: array items: type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: serial - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic - schema: - type: array - items: - type: string + description: Rack (ID) explode: true style: form - in: query - name: serial__ie + name: region schema: type: array items: @@ -43957,7 +43393,7 @@ paths: explode: true style: form - in: query - name: serial__iew + name: region__n schema: type: array items: @@ -43965,7 +43401,7 @@ paths: explode: true style: form - in: query - name: serial__isw + name: region_id schema: type: array items: @@ -43973,7 +43409,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: region_id__n schema: type: array items: @@ -43981,23 +43417,25 @@ paths: explode: true style: form - in: query - name: serial__nic + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: serial__nie + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: serial__niew + name: site_group schema: type: array items: @@ -44005,7 +43443,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: site_group__n schema: type: array items: @@ -44013,153 +43451,144 @@ paths: explode: true style: form - in: query - name: site + name: site_group_id schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: site_group_id__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: site_id schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group__n + name: site_id__n schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group_id + name: status schema: type: array items: - type: integer - description: Site group (ID) + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: site_group_id__n + name: status__empty schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: boolean - in: query - name: site_id + name: status__ic schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: site_id__n + name: status__ie schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: starting_unit + name: status__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: starting_unit__empty - schema: - type: boolean - - in: query - name: starting_unit__gt + name: status__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: starting_unit__gte + name: status__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: starting_unit__lt + name: status__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: starting_unit__lte + name: status__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: starting_unit__n + name: status__niew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: status + name: status__nisw schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: status__n + name: supply schema: - type: array - items: - type: string - x-spec-enum-id: 0c556d55dc1baa13 - explode: true - style: form + type: string + x-spec-enum-id: 1b6d99616ca6412b + enum: + - ac + - dc + description: '* `ac` - AC + + * `dc` - DC' - in: query name: tag schema: @@ -44199,8 +43628,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -44208,8 +43636,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -44217,8 +43644,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -44226,8 +43652,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -44253,23 +43678,21 @@ paths: - in: query name: type schema: - type: array - items: - type: string - x-spec-enum-id: e32aaa89a223f2ea - explode: true - style: form + type: string + x-spec-enum-id: 093a164236819eb8 + enum: + - primary + - redundant + description: '* `primary` - Primary + + * `redundant` - Redundant' - in: query - name: type__n + name: updated_by_request schema: - type: array - items: - type: string - x-spec-enum-id: e32aaa89a223f2ea - explode: true - style: form + type: string + format: uuid - in: query - name: u_height + name: voltage schema: type: array items: @@ -44278,11 +43701,11 @@ paths: explode: true style: form - in: query - name: u_height__empty + name: voltage__empty schema: type: boolean - in: query - name: u_height__gt + name: voltage__gt schema: type: array items: @@ -44291,7 +43714,7 @@ paths: explode: true style: form - in: query - name: u_height__gte + name: voltage__gte schema: type: array items: @@ -44300,7 +43723,7 @@ paths: explode: true style: form - in: query - name: u_height__lt + name: voltage__lt schema: type: array items: @@ -44309,7 +43732,7 @@ paths: explode: true style: form - in: query - name: u_height__lte + name: voltage__lte schema: type: array items: @@ -44318,7 +43741,7 @@ paths: explode: true style: form - in: query - name: u_height__n + name: voltage__n schema: type: array items: @@ -44326,123 +43749,6 @@ paths: format: int32 explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: width - schema: - type: array - items: - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width - explode: true - style: form - - in: query - name: width__n - schema: - type: array - items: - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width - explode: true - style: form tags: - dcim security: @@ -44453,21 +43759,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackList' + $ref: '#/components/schemas/PaginatedPowerFeedList' description: '' post: - operationId: dcim_racks_create - description: Post a list of rack objects. + operationId: dcim_power_feeds_create + description: Post a list of power feed objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -44477,11 +43783,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_racks_bulk_update - description: Put a list of rack objects. + operationId: dcim_power_feeds_bulk_update + description: Put a list of power feed objects. tags: - dcim requestBody: @@ -44490,12 +43796,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -44507,11 +43813,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_racks_bulk_partial_update - description: Patch a list of rack objects. + operationId: dcim_power_feeds_bulk_partial_update + description: Patch a list of power feed objects. tags: - dcim requestBody: @@ -44520,12 +43826,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -44537,11 +43843,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_racks_bulk_destroy - description: Delete a list of rack objects. + operationId: dcim_power_feeds_bulk_destroy + description: Delete a list of power feed objects. tags: - dcim requestBody: @@ -44550,12 +43856,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -44563,16 +43869,16 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/: + /api/dcim/power-feeds/{id}/: get: - operationId: dcim_racks_retrieve - description: Get a rack object. + operationId: dcim_power_feeds_retrieve + description: Get a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -44584,17 +43890,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_racks_update - description: Put a rack object. + operationId: dcim_power_feeds_update + description: Put a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -44602,10 +43908,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -44615,17 +43921,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_racks_partial_update - description: Patch a rack object. + operationId: dcim_power_feeds_partial_update + description: Patch a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -44633,10 +43939,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -44645,17 +43951,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_racks_destroy - description: Delete a rack object. + operationId: dcim_power_feeds_destroy + description: Delete a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -44665,93 +43971,18 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/elevation/: + /api/dcim/power-feeds/{id}/trace/: get: - operationId: dcim_racks_elevation_retrieve - description: Rack elevation representing the list of rack units. Also supports - rendering the elevation as an SVG. + operationId: dcim_power_feeds_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: exclude - schema: - type: integer - - in: query - name: expand_devices - schema: - type: boolean - default: true - - in: query - name: face - schema: - enum: - - front - - rear - type: string - x-spec-enum-id: d2fb9b3f75158b83 - default: front - minLength: 1 - description: '* `front` - Front - - * `rear` - Rear' - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power feed. required: true - - in: query - name: include_images - schema: - type: boolean - default: true - - in: query - name: legend_width - schema: - type: integer - default: 30 - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: margin_width - schema: - type: integer - default: 15 - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - minLength: 1 - - in: query - name: render - schema: - enum: - - json - - svg - type: string - x-spec-enum-id: 09901a5ff13ba07a - default: json - minLength: 1 - description: '* `json` - json - - * `svg` - svg' - - in: query - name: unit_height - schema: - type: integer - - in: query - name: unit_width - schema: - type: integer tags: - dcim security: @@ -44762,83 +43993,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackUnitList' + $ref: '#/components/schemas/PowerFeed' description: '' - /api/dcim/rear-port-templates/: + /api/dcim/power-outlet-templates/: get: - operationId: dcim_rear_port_templates_list - description: Get a list of rear port template objects. + operationId: dcim_power_outlet_templates_list + description: Get a list of power outlet template objects. parameters: - in: query - name: color + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: color__niew + name: description schema: type: array items: @@ -44846,83 +44077,67 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: created + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nie 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: description + name: description__niew schema: type: array items: @@ -44930,11 +44145,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: description__nisw schema: type: array items: @@ -44942,107 +44153,137 @@ paths: explode: true style: form - in: query - name: description__ie + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__iew + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__isw + name: feed_leg schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: description__n + name: feed_leg__empty + schema: + type: boolean + - in: query + name: feed_leg__ic schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: description__nic + name: feed_leg__ie schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: description__nie + name: feed_leg__iew schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: description__niew + name: feed_leg__isw schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: description__nisw + name: feed_leg__n schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: device_type_id + name: feed_leg__nic schema: type: array items: - type: integer + type: string + x-spec-enum-id: a4902339df0b7c06 nullable: true - description: Device type (ID) + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: device_type_id__n + name: feed_leg__nie schema: type: array items: - type: integer + type: string + x-spec-enum-id: a4902339df0b7c06 nullable: true - description: Device type (ID) + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: devicetype_id + name: feed_leg__niew schema: type: array items: - type: integer + type: string + x-spec-enum-id: a4902339df0b7c06 nullable: true - description: Device type (ID) + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: devicetype_id__n + name: feed_leg__nisw schema: type: array items: - type: integer + type: string + x-spec-enum-id: a4902339df0b7c06 nullable: true - description: Device type (ID) + description: Phase (for three-phase feeds) explode: true style: form - in: query @@ -45281,26 +44522,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -45398,61 +44619,23 @@ paths: schema: type: string - in: query - name: positions - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lte + name: power_port_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Power port (ID) explode: true style: form - in: query - name: positions__n + name: power_port_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Power port (ID) explode: true style: form - in: query @@ -45462,66 +44645,132 @@ paths: description: Search - in: query name: type - schema: - type: array - items: - type: string - x-spec-enum-id: 0276d1110ada597a - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0276d1110ada597a - explode: true - style: form - - in: query - name: updated_by_request schema: type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRearPortTemplateList' - description: '' - post: - operationId: dcim_rear_port_templates_create - description: Post a list of rear port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: + x-spec-enum-id: f8c08053f2db8830 + nullable: true + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - ITA/International + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''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` - [(''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'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''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 (Locking)` - [(''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-20r'', ''NEMA L22-20R''), (''nema-l22-30r'', + ''NEMA L22-30R'')] + + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] + + * `ITA/International` - [(''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` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), + (''usb-c'', ''USB Type C'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''eaton-c39'', ''Eaton C39''), (''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'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' + description: '' + post: + operationId: dcim_power_outlet_templates_create + description: Post a list of power outlet template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_rear_port_templates_bulk_update - description: Put a list of rear port template objects. + operationId: dcim_power_outlet_templates_bulk_update + description: Put a list of power outlet template objects. tags: - dcim requestBody: @@ -45530,12 +44779,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -45547,11 +44796,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_rear_port_templates_bulk_partial_update - description: Patch a list of rear port template objects. + operationId: dcim_power_outlet_templates_bulk_partial_update + description: Patch a list of power outlet template objects. tags: - dcim requestBody: @@ -45560,12 +44809,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -45577,11 +44826,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_rear_port_templates_bulk_destroy - description: Delete a list of rear port template objects. + operationId: dcim_power_outlet_templates_bulk_destroy + description: Delete a list of power outlet template objects. tags: - dcim requestBody: @@ -45590,12 +44839,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -45603,16 +44852,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-port-templates/{id}/: + /api/dcim/power-outlet-templates/{id}/: get: - operationId: dcim_rear_port_templates_retrieve - description: Get a rear port template object. + operationId: dcim_power_outlet_templates_retrieve + description: Get a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -45624,17 +44873,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_rear_port_templates_update - description: Put a rear port template object. + operationId: dcim_power_outlet_templates_update + description: Put a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -45642,10 +44891,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -45655,17 +44904,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_rear_port_templates_partial_update - description: Patch a rear port template object. + operationId: dcim_power_outlet_templates_partial_update + description: Patch a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -45673,10 +44922,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -45685,17 +44934,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_rear_port_templates_destroy - description: Delete a rear port template object. + operationId: dcim_power_outlet_templates_destroy + description: Delete a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -45705,27 +44954,17 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/: + /api/dcim/power-outlets/: get: - operationId: dcim_rear_ports_list - description: Get a list of rear port objects. + operationId: dcim_power_outlets_list + description: Get a list of power outlet objects. parameters: - in: query name: cable_end schema: type: string x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 + nullable: true enum: - A - B @@ -45840,6 +45079,10 @@ paths: type: string explode: true style: form + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -46030,6 +45273,136 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: device_type schema: @@ -46066,6 +45439,120 @@ paths: description: Device type (ID) explode: true style: form + - in: query + name: feed_leg + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__empty + schema: + type: boolean + - in: query + name: feed_leg__ic + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__ie + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__iew + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__isw + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__n + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__nic + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__nie + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__niew + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + nullable: true + description: Phase (for three-phase feeds) + explode: true + style: form - in: query name: id schema: @@ -46443,280 +45930,294 @@ paths: schema: type: string - in: query - name: positions + name: power_port_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Power port (ID) explode: true style: form - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt + name: power_port_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Power port (ID) explode: true style: form - in: query - name: positions__gte + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: positions__lt + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: positions__lte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: positions__n + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: region schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: region__n schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: region_id schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: region_id__n schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: region + name: site schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Site name (slug) explode: true style: form - in: query - name: region__n + name: site__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Site name (slug) explode: true style: form - in: query - name: region_id + name: site_group schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: site_group__n schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: role + name: site_group_id schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: site_group_id__n schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role_id + name: site_id schema: type: array items: type: integer - description: Device role (ID) + description: Site (ID) explode: true style: form - in: query - name: role_id__n + name: site_id__n schema: type: array items: type: integer - description: Device role (ID) + description: Site (ID) explode: true style: form - in: query - name: site + name: tag schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: tag__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: type schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: site_group__n + name: type__empty + schema: + type: boolean + - in: query + name: type__ic schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: site_group_id + name: type__ie schema: type: array items: - type: integer - description: Site group (ID) + type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: site_group_id__n + name: type__iew schema: type: array items: - type: integer - description: Site group (ID) + type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: site_id + name: type__isw schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: site_id__n + name: type__n schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: tag + name: type__nic schema: type: array items: type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: tag__n + name: type__nie schema: type: array items: type: string + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: type + name: type__niew schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query - name: type__n + name: type__nisw schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: f8c08053f2db8830 + nullable: true + description: Physical port type explode: true style: form - in: query @@ -46770,21 +46271,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortList' + $ref: '#/components/schemas/PaginatedPowerOutletList' description: '' post: - operationId: dcim_rear_ports_create - description: Post a list of rear port objects. + operationId: dcim_power_outlets_create + description: Post a list of power outlet objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -46794,11 +46295,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_rear_ports_bulk_update - description: Put a list of rear port objects. + operationId: dcim_power_outlets_bulk_update + description: Put a list of power outlet objects. tags: - dcim requestBody: @@ -46807,12 +46308,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -46824,11 +46325,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_rear_ports_bulk_partial_update - description: Patch a list of rear port objects. + operationId: dcim_power_outlets_bulk_partial_update + description: Patch a list of power outlet objects. tags: - dcim requestBody: @@ -46837,12 +46338,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -46854,11 +46355,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_rear_ports_bulk_destroy - description: Delete a list of rear port objects. + operationId: dcim_power_outlets_bulk_destroy + description: Delete a list of power outlet objects. tags: - dcim requestBody: @@ -46867,12 +46368,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -46880,16 +46381,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/: + /api/dcim/power-outlets/{id}/: get: - operationId: dcim_rear_ports_retrieve - description: Get a rear port object. + operationId: dcim_power_outlets_retrieve + description: Get a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -46901,17 +46402,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_rear_ports_update - description: Put a rear port object. + operationId: dcim_power_outlets_update + description: Put a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -46919,10 +46420,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -46932,17 +46433,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_rear_ports_partial_update - description: Patch a rear port object. + operationId: dcim_power_outlets_partial_update + description: Patch a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -46950,10 +46451,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -46962,17 +46463,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_rear_ports_destroy - description: Delete a rear port object. + operationId: dcim_power_outlets_destroy + description: Delete a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -46982,16 +46483,17 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/paths/: + /api/dcim/power-outlets/{id}/trace/: get: - operationId: dcim_rear_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. + operationId: dcim_power_outlets_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -47003,49 +46505,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerOutlet' description: '' - /api/dcim/regions/: + /api/dcim/power-panels/: get: - operationId: dcim_regions_list - description: Get a list of region objects. + operationId: dcim_power_panels_list + description: Get a list of power panel objects. parameters: - - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: ancestor_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - in: query name: contact schema: @@ -47069,8 +46535,7 @@ paths: schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query @@ -47078,8 +46543,7 @@ paths: schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query @@ -47379,6 +46843,22 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: modified_by_request schema: @@ -47481,50 +46961,28 @@ paths: schema: type: string - in: query - name: parent + name: q schema: - type: array - items: - type: string - description: Parent region (slug) - explode: true - style: form + type: string + description: Search - in: query - name: parent__n + name: region schema: type: array items: type: string - description: Parent region (slug) explode: true style: form - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent region (ID) - explode: true - style: form - - in: query - name: parent_id__n + name: region__n schema: type: array items: - type: integer - nullable: true - description: Parent region (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: region_id schema: type: array items: @@ -47532,11 +46990,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: region_id__n schema: type: array items: @@ -47544,23 +46998,25 @@ paths: explode: true style: form - in: query - name: slug__ie + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__iew + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__isw + name: site_group schema: type: array items: @@ -47568,7 +47024,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: site_group__n schema: type: array items: @@ -47576,7 +47032,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: site_group_id schema: type: array items: @@ -47584,7 +47040,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: site_group_id__n schema: type: array items: @@ -47592,19 +47048,21 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: slug__nisw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query @@ -47638,21 +47096,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRegionList' + $ref: '#/components/schemas/PaginatedPowerPanelList' description: '' post: - operationId: dcim_regions_create - description: Post a list of region objects. + operationId: dcim_power_panels_create + description: Post a list of power panel objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -47662,11 +47120,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_regions_bulk_update - description: Put a list of region objects. + operationId: dcim_power_panels_bulk_update + description: Put a list of power panel objects. tags: - dcim requestBody: @@ -47675,12 +47133,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -47692,11 +47150,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_regions_bulk_partial_update - description: Patch a list of region objects. + operationId: dcim_power_panels_bulk_partial_update + description: Patch a list of power panel objects. tags: - dcim requestBody: @@ -47705,12 +47163,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -47722,11 +47180,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_regions_bulk_destroy - description: Delete a list of region objects. + operationId: dcim_power_panels_bulk_destroy + description: Delete a list of power panel objects. tags: - dcim requestBody: @@ -47735,12 +47193,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -47748,16 +47206,16 @@ paths: responses: '204': description: No response body - /api/dcim/regions/{id}/: + /api/dcim/power-panels/{id}/: get: - operationId: dcim_regions_retrieve - description: Get a region object. + operationId: dcim_power_panels_retrieve + description: Get a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -47769,17 +47227,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_regions_update - description: Put a region object. + operationId: dcim_power_panels_update + description: Put a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -47787,10 +47245,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -47800,17 +47258,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_regions_partial_update - description: Patch a region object. + operationId: dcim_power_panels_partial_update + description: Patch a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -47818,10 +47276,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -47830,17 +47288,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_regions_destroy - description: Delete a region object. + operationId: dcim_power_panels_destroy + description: Delete a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -47850,99 +47308,67 @@ paths: responses: '204': description: No response body - /api/dcim/site-groups/: + /api/dcim/power-port-templates/: get: - operationId: dcim_site_groups_list - description: Get a list of site group objects. + operationId: dcim_power_port_templates_list + description: Get a list of power port template objects. parameters: - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: ancestor_id__n + name: allocated_draw schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: contact + name: allocated_draw__empty schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: boolean - in: query - name: contact__n + name: allocated_draw__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: allocated_draw__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: allocated_draw__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: allocated_draw__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: allocated_draw__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query @@ -48097,6 +47523,26 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -48155,6 +47601,90 @@ paths: format: int32 explode: true style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -48225,151 +47755,90 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: maximum_draw schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: maximum_draw__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 + name: maximum_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: maximum_draw__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: maximum_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: maximum_draw__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: maximum_draw__n schema: type: array items: - type: string + type: integer + format: int32 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. + name: modified_by_request schema: type: string + format: uuid - in: query - name: parent - schema: - type: array - items: - type: string - description: Parent site group (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Parent site group (slug) - explode: true - style: form - - in: query - name: parent_id + name: module_type_id schema: type: array items: type: integer nullable: true - description: Parent site group (ID) + description: Module type (ID) explode: true style: form - in: query - name: parent_id__n + name: module_type_id__n schema: type: array items: type: integer nullable: true - description: Parent site group (ID) + description: Module type (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: name schema: type: array items: @@ -48377,11 +47846,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: name__empty schema: type: boolean - in: query - name: slug__ic + name: name__ic schema: type: array items: @@ -48389,7 +47858,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: name__ie schema: type: array items: @@ -48397,7 +47866,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__iew schema: type: array items: @@ -48405,7 +47874,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__isw schema: type: array items: @@ -48413,7 +47882,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__n schema: type: array items: @@ -48421,7 +47890,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__nic schema: type: array items: @@ -48429,7 +47898,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__nie schema: type: array items: @@ -48437,7 +47906,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__niew schema: type: array items: @@ -48445,29 +47914,117 @@ paths: explode: true style: form - in: query - name: slug__nisw + 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: tag + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: tag__n + name: type schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - International/ITA + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''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` - [(''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'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''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 (Locking)` - [(''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-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', + ''NEMA L22-30P'')] + + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] + + * `International/ITA` - [(''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` - [(''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'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''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'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -48483,21 +48040,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteGroupList' + $ref: '#/components/schemas/PaginatedPowerPortTemplateList' description: '' post: - operationId: dcim_site_groups_create - description: Post a list of site group objects. + operationId: dcim_power_port_templates_create + description: Post a list of power port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -48507,11 +48064,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_site_groups_bulk_update - description: Put a list of site group objects. + operationId: dcim_power_port_templates_bulk_update + description: Put a list of power port template objects. tags: - dcim requestBody: @@ -48520,12 +48077,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -48537,11 +48094,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_site_groups_bulk_partial_update - description: Patch a list of site group objects. + operationId: dcim_power_port_templates_bulk_partial_update + description: Patch a list of power port template objects. tags: - dcim requestBody: @@ -48550,12 +48107,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -48567,11 +48124,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_site_groups_bulk_destroy - description: Delete a list of site group objects. + operationId: dcim_power_port_templates_bulk_destroy + description: Delete a list of power port template objects. tags: - dcim requestBody: @@ -48580,12 +48137,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -48593,16 +48150,16 @@ paths: responses: '204': description: No response body - /api/dcim/site-groups/{id}/: + /api/dcim/power-port-templates/{id}/: get: - operationId: dcim_site_groups_retrieve - description: Get a site group object. + operationId: dcim_power_port_templates_retrieve + description: Get a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -48614,17 +48171,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_site_groups_update - description: Put a site group object. + operationId: dcim_power_port_templates_update + description: Put a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -48632,10 +48189,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -48645,17 +48202,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_site_groups_partial_update - description: Patch a site group object. + operationId: dcim_power_port_templates_partial_update + description: Patch a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -48663,10 +48220,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -48675,17 +48232,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_site_groups_destroy - description: Delete a site group object. + operationId: dcim_power_port_templates_destroy + description: Delete a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -48695,107 +48252,109 @@ paths: responses: '204': description: No response body - /api/dcim/sites/: + /api/dcim/power-ports/: get: - operationId: dcim_sites_list - description: Get a list of site objects. + operationId: dcim_power_ports_list + description: Get a list of power port objects. parameters: - in: query - name: asn + name: allocated_draw schema: type: array items: type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) + format: int32 explode: true style: form - in: query - name: asn__n + name: allocated_draw__empty schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) - explode: true - style: form + type: boolean - in: query - name: asn_id + name: allocated_draw__gt schema: type: array items: type: integer - description: AS (ID) + format: int32 explode: true style: form - in: query - name: asn_id__n + name: allocated_draw__gte schema: type: array items: type: integer - description: AS (ID) + format: int32 explode: true style: form - in: query - name: contact + name: allocated_draw__lt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: allocated_draw__lte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: allocated_draw__n schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: cable_end schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact_role + name: cable_id schema: type: array items: type: integer - description: Contact Role + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_role__n + name: cable_id__n schema: type: array items: type: integer - description: Contact Role + nullable: true + description: Cable (ID) explode: true style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -48949,123 +48508,207 @@ paths: explode: true style: form - in: query - name: facility + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility__empty + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + 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 + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__empty schema: type: boolean - in: query - name: facility__ic + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__ie + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__iew + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__isw + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__n + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__nic + name: device_status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__nie + name: device_status__nie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__niew + name: device_status__niew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility__nisw + name: device_status__nisw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: group + name: device_type schema: type: array items: - type: integer - description: Group (slug) + type: string + description: Device type (model) explode: true style: form - in: query - name: group__n + name: device_type__n schema: type: array items: - type: integer - description: Group (slug) + type: string + description: Device type (model) explode: true style: form - in: query - name: group_id + name: device_type_id schema: type: array items: type: integer - description: Group (ID) + description: Device type (ID) explode: true style: form - in: query - name: group_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Group (ID) + description: Device type (ID) explode: true style: form - in: query @@ -49127,124 +48770,150 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: latitude + name: label__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__empty + name: label__niew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: latitude__gt + name: label__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__gte + name: last_updated schema: type: array items: - type: number - format: double + type: string + format: date-time explode: true style: form - in: query - name: latitude__lt + name: last_updated__empty schema: type: array items: - type: number - format: double + type: string + format: date-time explode: true style: form - in: query - name: latitude__lte + name: last_updated__gt schema: type: array items: - type: number - format: double + type: string + format: date-time explode: true style: form - in: query - name: latitude__n + name: last_updated__gte schema: type: array items: - type: number - format: double + 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 @@ -49254,61 +48923,101 @@ paths: schema: type: integer - in: query - name: longitude + name: location schema: type: array items: - type: number - format: double + type: string + description: Location (slug) explode: true style: form - in: query - name: longitude__empty + 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 (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: mark_connected schema: type: boolean - in: query - name: longitude__gt + name: maximum_draw schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__gte + name: maximum_draw__empty + schema: + type: boolean + - in: query + name: maximum_draw__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__lt + name: maximum_draw__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__lte + name: maximum_draw__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__n + name: maximum_draw__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -49316,6 +49025,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -49400,6 +49129,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -49418,43 +49151,43 @@ paths: type: string description: Search - in: query - name: region + name: rack schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Rack (name) explode: true style: form - in: query - name: region__n + name: rack__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Rack (name) explode: true style: form - in: query - name: region_id + name: rack_id schema: type: array items: type: integer - description: Region (ID) + description: Rack (ID) explode: true style: form - in: query - name: region_id__n + name: rack_id__n schema: type: array items: type: integer - description: Region (ID) + description: Rack (ID) explode: true style: form - in: query - name: slug + name: region schema: type: array items: @@ -49462,11 +49195,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: region__n schema: type: array items: @@ -49474,7 +49203,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: region_id schema: type: array items: @@ -49482,7 +49211,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: region_id__n schema: type: array items: @@ -49490,23 +49219,25 @@ paths: explode: true style: form - in: query - name: slug__isw + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__n + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nic + name: site_group schema: type: array items: @@ -49514,7 +49245,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: site_group__n schema: type: array items: @@ -49522,7 +49253,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_group_id schema: type: array items: @@ -49530,7 +49261,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: site_group_id__n schema: type: array items: @@ -49538,21 +49269,21 @@ paths: explode: true style: form - in: query - name: status + name: site_id schema: type: array items: - type: string - x-spec-enum-id: e363a8ddb138be50 + type: integer + description: Site (ID) explode: true style: form - in: query - name: status__n + name: site_id__n schema: type: array items: - type: string - x-spec-enum-id: e363a8ddb138be50 + type: integer + description: Site (ID) explode: true style: form - in: query @@ -49572,164 +49303,160 @@ paths: 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 + name: type 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) + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: tenant_group__n + name: type__empty schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: boolean - in: query - name: tenant_group_id + name: type__ic schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: tenant_group_id__n + name: type__ie schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: tenant_id + name: type__iew schema: type: array items: - type: integer + type: string + x-spec-enum-id: f1bd4aedff3a591b nullable: true - description: Tenant (ID) + description: Physical port type explode: true style: form - in: query - name: tenant_id__n + name: type__isw schema: type: array items: - type: integer + type: string + x-spec-enum-id: f1bd4aedff3a591b nullable: true - description: Tenant (ID) + description: Physical port type explode: true style: form - in: query - name: time_zone + name: type__n schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: time_zone__ic + name: type__nic schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: time_zone__ie + name: type__nie schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: time_zone__iew + name: type__niew schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: time_zone__isw + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + description: Physical port type explode: true style: form - in: query - name: time_zone__n + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: time_zone__nic + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: time_zone__nie + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: time_zone__niew + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: time_zone__nisw + name: virtual_chassis_id__n schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - dcim security: @@ -49740,21 +49467,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteList' + $ref: '#/components/schemas/PaginatedPowerPortList' description: '' post: - operationId: dcim_sites_create - description: Post a list of site objects. + operationId: dcim_power_ports_create + description: Post a list of power port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' required: true security: - cookieAuth: [] @@ -49764,11 +49491,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/PowerPort' description: '' put: - operationId: dcim_sites_bulk_update - description: Put a list of site objects. + operationId: dcim_power_ports_bulk_update + description: Put a list of power port objects. tags: - dcim requestBody: @@ -49777,12 +49504,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -49794,11 +49521,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/PowerPort' description: '' patch: - operationId: dcim_sites_bulk_partial_update - description: Patch a list of site objects. + operationId: dcim_power_ports_bulk_partial_update + description: Patch a list of power port objects. tags: - dcim requestBody: @@ -49807,12 +49534,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -49824,11 +49551,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/PowerPort' description: '' delete: - operationId: dcim_sites_bulk_destroy - description: Delete a list of site objects. + operationId: dcim_power_ports_bulk_destroy + description: Delete a list of power port objects. tags: - dcim requestBody: @@ -49837,12 +49564,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -49850,16 +49577,16 @@ paths: responses: '204': description: No response body - /api/dcim/sites/{id}/: + /api/dcim/power-ports/{id}/: get: - operationId: dcim_sites_retrieve - description: Get a site object. + operationId: dcim_power_ports_retrieve + description: Get a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -49871,17 +49598,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/PowerPort' description: '' put: - operationId: dcim_sites_update - description: Put a site object. + operationId: dcim_power_ports_update + description: Put a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -49889,10 +49616,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' required: true security: - cookieAuth: [] @@ -49902,17 +49629,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/PowerPort' description: '' patch: - operationId: dcim_sites_partial_update - description: Patch a site object. + operationId: dcim_power_ports_partial_update + description: Patch a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -49920,10 +49647,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -49932,17 +49659,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/PowerPort' description: '' delete: - operationId: dcim_sites_destroy - description: Delete a site object. + operationId: dcim_power_ports_destroy + description: Delete a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -49952,10 +49679,34 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/: + /api/dcim/power-ports/{id}/trace/: get: - operationId: dcim_virtual_chassis_list - description: Get a list of virtual chassis objects. + operationId: dcim_power_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + /api/dcim/rack-reservations/: + get: + operationId: dcim_rack_reservations_list + description: Get a list of rack reservation objects. parameters: - in: query name: created @@ -50110,194 +49861,110 @@ paths: explode: true style: form - in: query - name: domain + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: domain__empty + name: id__empty schema: type: boolean - in: query - name: domain__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: domain__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: domain__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: domain__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: domain__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: domain__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: id + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time 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: 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 + name: last_updated__lte schema: type: array items: @@ -50321,110 +49988,79 @@ paths: schema: type: integer - in: query - name: master + name: location schema: type: array items: type: string - nullable: true - description: Master (name) explode: true style: form - in: query - name: master__n + name: location__n schema: type: array items: type: string - nullable: true - description: Master (name) - explode: true - style: form - - in: query - name: master_id - schema: - type: array - items: - type: integer - nullable: true - description: Master (ID) explode: true style: form - in: query - name: master_id__n + name: location_id schema: type: array items: - type: integer - nullable: true - description: Master (ID) + type: string explode: true style: form - in: query - name: member_count + name: location_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: member_count__empty + name: modified_by_request schema: - type: boolean - - in: query - name: member_count__gt + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__gte + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: member_count__lt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: member_count__lte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: member_count__n + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: region schema: type: array items: @@ -50432,11 +50068,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: region__n schema: type: array items: @@ -50444,7 +50076,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: region_id schema: type: array items: @@ -50452,7 +50084,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: region_id__n schema: type: array items: @@ -50460,23 +50092,25 @@ paths: explode: true style: form - in: query - name: name__isw + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__n + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nic + name: site_group schema: type: array items: @@ -50484,7 +50118,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: site_group__n schema: type: array items: @@ -50492,7 +50126,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: site_group_id schema: type: array items: @@ -50500,195 +50134,162 @@ paths: explode: true style: form - in: query - name: name__nisw + name: site_group_id__n 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: q - schema: - type: string - description: Search - in: query - name: region + name: site_id schema: type: array items: type: integer - description: Region (slug) + description: Site (ID) explode: true style: form - in: query - name: region__n + name: site_id__n schema: type: array items: type: integer - description: Region (slug) + description: Site (ID) explode: true style: form - in: query - name: region_id + name: tag schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: tag__n schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: tenant schema: type: array items: type: string - description: Site name (slug) + description: Tenant (slug) explode: true style: form - in: query - name: site__n + name: tenant__n schema: type: array items: type: string - description: Site name (slug) + description: Tenant (slug) explode: true style: form - in: query - name: site_group + name: tenant_group schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: tenant_group__n schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: tenant_group_id schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: tenant_group_id__n schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: tenant_id schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: site_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag + name: unit schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: tag__n + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: tenant + name: user schema: type: array items: type: string - description: Tenant (slug) + description: User (name) explode: true style: form - in: query - name: tenant__n + name: user__n schema: type: array items: type: string - description: Tenant (slug) + description: User (name) explode: true style: form - in: query - name: tenant_id + name: user_id schema: type: array items: type: integer - description: Tenant (ID) + description: User (ID) explode: true style: form - in: query - name: tenant_id__n + name: user_id__n schema: type: array items: type: integer - description: Tenant (ID) + description: User (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - dcim security: @@ -50699,21 +50300,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualChassisList' + $ref: '#/components/schemas/PaginatedRackReservationList' description: '' post: - operationId: dcim_virtual_chassis_create - description: Post a list of virtual chassis objects. + operationId: dcim_rack_reservations_create + description: Post a list of rack reservation objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -50723,11 +50324,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_virtual_chassis_bulk_update - description: Put a list of virtual chassis objects. + operationId: dcim_rack_reservations_bulk_update + description: Put a list of rack reservation objects. tags: - dcim requestBody: @@ -50736,12 +50337,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -50753,11 +50354,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_virtual_chassis_bulk_partial_update - description: Patch a list of virtual chassis objects. + operationId: dcim_rack_reservations_bulk_partial_update + description: Patch a list of rack reservation objects. tags: - dcim requestBody: @@ -50766,12 +50367,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -50783,11 +50384,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_virtual_chassis_bulk_destroy - description: Delete a list of virtual chassis objects. + operationId: dcim_rack_reservations_bulk_destroy + description: Delete a list of rack reservation objects. tags: - dcim requestBody: @@ -50796,12 +50397,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -50809,16 +50410,16 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/{id}/: + /api/dcim/rack-reservations/{id}/: get: - operationId: dcim_virtual_chassis_retrieve - description: Get a virtual chassis object. + operationId: dcim_rack_reservations_retrieve + description: Get a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -50830,17 +50431,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_virtual_chassis_update - description: Put a virtual chassis object. + operationId: dcim_rack_reservations_update + description: Put a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -50848,10 +50449,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -50861,17 +50462,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_virtual_chassis_partial_update - description: Patch a virtual chassis object. + operationId: dcim_rack_reservations_partial_update + description: Patch a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -50879,10 +50480,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -50891,17 +50492,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_virtual_chassis_destroy - description: Delete a virtual chassis object. + operationId: dcim_rack_reservations_destroy + description: Delete a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -50911,81 +50512,73 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/: + /api/dcim/rack-roles/: get: - operationId: dcim_virtual_device_contexts_list - description: Get a list of virtual device context objects. + operationId: dcim_rack_roles_list + description: Get a list of rack role objects. parameters: - in: query - name: created + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__nic 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: description + name: color__nie schema: type: array items: @@ -50993,11 +50586,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__niew schema: type: array items: @@ -51005,7 +50594,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__nisw schema: type: array items: @@ -51013,162 +50602,159 @@ paths: explode: true style: form - in: query - name: description__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - description: Device model + type: string explode: true style: form - in: query - name: device__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - description: Device model + type: string explode: true style: form - in: query - name: device_id + name: description__ie schema: type: array items: - type: integer - description: VDC (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__iew schema: type: array items: - type: integer - description: VDC (ID) + type: string explode: true style: form - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: id + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier + name: id schema: type: array items: @@ -51177,11 +50763,11 @@ paths: explode: true style: form - in: query - name: identifier__empty + name: id__empty schema: type: boolean - in: query - name: identifier__gt + name: id__gt schema: type: array items: @@ -51190,7 +50776,7 @@ paths: explode: true style: form - in: query - name: identifier__gte + name: id__gte schema: type: array items: @@ -51199,7 +50785,7 @@ paths: explode: true style: form - in: query - name: identifier__lt + name: id__lt schema: type: array items: @@ -51208,7 +50794,7 @@ paths: explode: true style: form - in: query - name: identifier__lte + name: id__lte schema: type: array items: @@ -51217,7 +50803,7 @@ paths: explode: true style: form - in: query - name: identifier__n + name: id__n schema: type: array items: @@ -51225,24 +50811,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -51413,67 +50981,33 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: primary_ip4_id - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip4_id__n - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id__n - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: status + name: slug schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -51481,7 +51015,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -51489,77 +51023,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -51577,21 +51101,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' + $ref: '#/components/schemas/PaginatedRackRoleList' description: '' post: - operationId: dcim_virtual_device_contexts_create - description: Post a list of virtual device context objects. + operationId: dcim_rack_roles_create + description: Post a list of rack role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -51601,11 +51125,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_virtual_device_contexts_bulk_update - description: Put a list of virtual device context objects. + operationId: dcim_rack_roles_bulk_update + description: Put a list of rack role objects. tags: - dcim requestBody: @@ -51614,12 +51138,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -51631,11 +51155,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_virtual_device_contexts_bulk_partial_update - description: Patch a list of virtual device context objects. + operationId: dcim_rack_roles_bulk_partial_update + description: Patch a list of rack role objects. tags: - dcim requestBody: @@ -51644,12 +51168,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -51661,11 +51185,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_virtual_device_contexts_bulk_destroy - description: Delete a list of virtual device context objects. + operationId: dcim_rack_roles_bulk_destroy + description: Delete a list of rack role objects. tags: - dcim requestBody: @@ -51674,12 +51198,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -51687,16 +51211,16 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/{id}/: + /api/dcim/rack-roles/{id}/: get: - operationId: dcim_virtual_device_contexts_retrieve - description: Get a virtual device context object. + operationId: dcim_rack_roles_retrieve + description: Get a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -51708,17 +51232,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_virtual_device_contexts_update - description: Put a virtual device context object. + operationId: dcim_rack_roles_update + description: Put a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -51726,10 +51250,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -51739,17 +51263,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_virtual_device_contexts_partial_update - description: Patch a virtual device context object. + operationId: dcim_rack_roles_partial_update + description: Patch a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -51757,10 +51281,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -51769,17 +51293,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_virtual_device_contexts_destroy - description: Delete a virtual device context object. + operationId: dcim_rack_roles_destroy + description: Delete a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -51789,157 +51313,263 @@ paths: responses: '204': description: No response body - /api/extras/bookmarks/: + /api/dcim/rack-types/: get: - operationId: extras_bookmarks_list - description: Get a list of bookmark objects. + operationId: dcim_rack_types_list + description: Get a list of rack type objects. parameters: - 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: date-time + format: uuid - in: query - name: id + name: desc_units + schema: + type: boolean + - in: query + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: description__nic schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: object_id + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__empty + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: form_factor + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + explode: true + style: form + - in: query + name: form_factor__empty schema: type: boolean - in: query - name: object_id__gt + name: form_factor__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: object_id__gte + name: form_factor__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: object_id__lt + name: form_factor__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: object_id__lte + name: form_factor__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: object_id__n + name: form_factor__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: object_type + name: form_factor__nic schema: - type: string + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + explode: true + style: form - in: query - name: object_type__n + name: form_factor__nie schema: - type: string + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + explode: true + style: form - in: query - name: object_type_id + name: form_factor__niew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: object_type_id__empty + name: form_factor__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + explode: true + style: form + - in: query + name: id schema: type: array items: @@ -51948,7 +51578,11 @@ paths: explode: true style: form - in: query - name: object_type_id__gt + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -51957,7 +51591,7 @@ paths: explode: true style: form - in: query - name: object_type_id__gte + name: id__gte schema: type: array items: @@ -51966,7 +51600,7 @@ paths: explode: true style: form - in: query - name: object_type_id__lt + name: id__lt schema: type: array items: @@ -51975,7 +51609,7 @@ paths: explode: true style: form - in: query - name: object_type_id__lte + name: id__lte schema: type: array items: @@ -51984,7 +51618,7 @@ paths: explode: true style: form - in: query - name: object_type_id__n + name: id__n schema: type: array items: @@ -51992,543 +51626,191 @@ paths: format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: last_updated schema: - type: integer - - name: ordering + 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: Which field to use when ordering the results. + description: Number of results to return per page. schema: - type: string + type: integer - in: query - name: user + name: manufacturer schema: type: array items: type: string - description: User (name) + description: Manufacturer (slug) explode: true style: form - in: query - name: user__n + name: manufacturer__n schema: type: array items: type: string - description: User (name) + description: Manufacturer (slug) explode: true style: form - in: query - name: user_id + name: manufacturer_id schema: type: array items: type: integer - description: User (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: user_id__n + name: manufacturer_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/BookmarkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/BookmarkRequest' - 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/BookmarkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/BookmarkRequest' - 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/PatchedBookmarkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' - 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: auto_sync_enabled - schema: - type: boolean - - 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 + description: Manufacturer (ID) explode: true style: form - in: query - name: cluster_id__n + name: max_weight 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) + format: int32 explode: true style: form - in: query - name: cluster_type_id + name: max_weight__empty schema: - type: array - items: - type: integer - description: Cluster type - explode: true - style: form + type: boolean - in: query - name: cluster_type_id__n + name: max_weight__gt 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__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 + format: int32 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: data_file_id + name: max_weight__gte schema: type: array items: type: integer - nullable: true - description: Data file (ID) + format: int32 explode: true style: form - in: query - name: data_file_id__n + name: max_weight__lt schema: type: array items: type: integer - nullable: true - description: Data file (ID) + format: int32 explode: true style: form - in: query - name: data_source_id + name: max_weight__lte schema: type: array items: type: integer - nullable: true - description: Data source (ID) + format: int32 explode: true style: form - in: query - name: data_source_id__n + name: max_weight__n schema: type: array items: type: integer - nullable: true - description: Data source (ID) + format: int32 explode: true style: form - in: query - name: data_synced + name: model schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__empty + name: model__empty schema: type: boolean - 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 + name: model__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: description + name: model__ie schema: type: array items: @@ -52536,11 +51818,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: model__iew schema: type: array items: @@ -52548,7 +51826,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: model__isw schema: type: array items: @@ -52556,7 +51834,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: model__n schema: type: array items: @@ -52564,7 +51842,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: model__nic schema: type: array items: @@ -52572,7 +51850,7 @@ paths: explode: true style: form - in: query - name: description__n + name: model__nie schema: type: array items: @@ -52580,7 +51858,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: model__niew schema: type: array items: @@ -52588,7 +51866,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: model__nisw schema: type: array items: @@ -52596,77 +51874,82 @@ paths: explode: true style: form - in: query - name: description__niew + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: description__nisw + name: mounting_depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: device_role + name: mounting_depth__empty schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form + type: boolean - in: query - name: device_role__n + name: mounting_depth__gt schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: device_role_id + name: mounting_depth__gte schema: type: array items: type: integer - description: Role + format: int32 explode: true style: form - in: query - name: device_role_id__n + name: mounting_depth__lt schema: type: array items: type: integer - description: Role + format: int32 explode: true style: form - in: query - name: device_type_id + name: mounting_depth__lte schema: type: array items: type: integer - description: Device type + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: mounting_depth__n schema: type: array items: type: integer - description: Device type + 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: id + name: outer_depth schema: type: array items: @@ -52675,11 +51958,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: outer_depth__empty schema: type: boolean - in: query - name: id__gt + name: outer_depth__gt schema: type: array items: @@ -52688,7 +51971,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: outer_depth__gte schema: type: array items: @@ -52697,7 +51980,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: outer_depth__lt schema: type: array items: @@ -52706,7 +51989,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: outer_depth__lte schema: type: array items: @@ -52715,7 +51998,7 @@ paths: explode: true style: form - in: query - name: id__n + name: outer_depth__n schema: type: array items: @@ -52724,121 +52007,82 @@ paths: 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 + name: outer_unit schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + x-spec-enum-id: 86a846b6c40f495e + nullable: true + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: last_updated__lt + name: outer_width schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: outer_width__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__n + name: outer_width__gt schema: type: array items: - type: string - format: date-time + type: integer + 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: location + name: outer_width__gte schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location__n + name: outer_width__lt schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location_id + name: outer_width__lte schema: type: array items: type: integer - description: Location + format: int32 explode: true style: form - in: query - name: location_id__n + name: outer_width__n schema: type: array items: type: integer - description: Location + format: int32 explode: true style: form - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: name + name: slug schema: type: array items: @@ -52846,11 +52090,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: slug__empty schema: type: boolean - in: query - name: name__ic + name: slug__ic schema: type: array items: @@ -52858,7 +52102,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: slug__ie schema: type: array items: @@ -52866,7 +52110,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: slug__iew schema: type: array items: @@ -52874,7 +52118,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: slug__isw schema: type: array items: @@ -52882,7 +52126,7 @@ paths: explode: true style: form - in: query - name: name__n + name: slug__n schema: type: array items: @@ -52890,7 +52134,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: slug__nic schema: type: array items: @@ -52898,7 +52142,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: slug__nie schema: type: array items: @@ -52906,7 +52150,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: slug__niew schema: type: array items: @@ -52914,383 +52158,328 @@ paths: explode: true style: form - in: query - name: name__nisw + name: slug__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 + name: starting_unit schema: type: array items: - type: string - description: Platform (slug) + type: integer + format: int32 explode: true style: form - in: query - name: platform__n + name: starting_unit__empty schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form + type: boolean - in: query - name: platform_id + name: starting_unit__gt schema: type: array items: type: integer - description: Platform + format: int32 explode: true style: form - in: query - name: platform_id__n + name: starting_unit__gte 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) + format: int32 explode: true style: form - in: query - name: region__n + name: starting_unit__lt schema: type: array items: - type: string - description: Region (slug) + type: integer + format: int32 explode: true style: form - in: query - name: region_id + name: starting_unit__lte schema: type: array items: type: integer - description: Region + format: int32 explode: true style: form - in: query - name: region_id__n + name: starting_unit__n schema: type: array items: type: integer - description: Region + format: int32 explode: true style: form - in: query - name: role + name: tag schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: tag__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 + name: u_height 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) + format: int32 explode: true style: form - in: query - name: site__n + name: u_height__empty schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form + type: boolean - in: query - name: site_group + name: u_height__gt schema: type: array items: - type: string - description: Site group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group__n + name: u_height__gte 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: u_height__lt schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: u_height__lte schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_id + name: u_height__n schema: type: array items: type: integer - description: Site + format: int32 explode: true style: form - in: query - name: site_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: Site - explode: true - style: form + type: string + format: uuid - in: query - name: tag + name: weight schema: type: array items: - type: string - description: Tag (slug) + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__empty schema: - type: array - items: - type: string - description: Tag (slug) - explode: true - style: form + type: boolean - in: query - name: tag_id + name: weight__gt schema: type: array items: - type: integer - description: Tag + type: number + format: double explode: true style: form - in: query - name: tag_id__n + name: weight__gte schema: type: array items: - type: integer - description: Tag + type: number + format: double explode: true style: form - in: query - name: tenant + name: weight__lt schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant__n + name: weight__lte schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group + name: weight__n schema: type: array items: - type: string - description: Tenant group (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group__n + name: weight_unit schema: - type: array - items: - type: string - description: Tenant group (slug) - explode: true - style: form + type: string + x-spec-enum-id: 7c1876f422815884 + nullable: true + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: tenant_group_id + name: width schema: type: array items: type: integer - description: Tenant group + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: tenant_group_id__n + name: width__ic schema: type: array items: type: integer - description: Tenant group + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: tenant_id + name: width__ie schema: type: array items: type: integer - description: Tenant + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: tenant_id__n + name: width__iew schema: type: array items: type: integer - description: Tenant + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: width__isw schema: type: array items: type: integer - format: int32 + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: width__n schema: type: array items: type: integer - format: int32 + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: weight__gte + name: width__nic schema: type: array items: type: integer - format: int32 + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: weight__lt + name: width__nie schema: type: array items: type: integer - format: int32 + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: weight__lte + name: width__niew schema: type: array items: type: integer - format: int32 + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: weight__n + name: width__nisw schema: type: array items: type: integer - format: int32 + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -53299,21 +52488,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigContextList' + $ref: '#/components/schemas/PaginatedRackTypeList' description: '' post: - operationId: extras_config_contexts_create - description: Post a list of config context objects. + operationId: dcim_rack_types_create + description: Post a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -53323,25 +52512,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: extras_config_contexts_bulk_update - description: Put a list of config context objects. + operationId: dcim_rack_types_bulk_update + description: Put a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -53353,25 +52542,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: extras_config_contexts_bulk_partial_update - description: Patch a list of config context objects. + operationId: dcim_rack_types_bulk_partial_update + description: Patch a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -53383,25 +52572,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: extras_config_contexts_bulk_destroy - description: Delete a list of config context objects. + operationId: dcim_rack_types_bulk_destroy + description: Delete a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -53409,19 +52598,19 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/{id}/: + /api/dcim/rack-types/{id}/: get: - operationId: extras_config_contexts_retrieve - description: Get a config context object. + operationId: dcim_rack_types_retrieve + description: Get a rack type 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 rack type. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -53430,28 +52619,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: extras_config_contexts_update - description: Put a config context object. + operationId: dcim_rack_types_update + description: Put a rack type 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 rack type. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -53461,28 +52650,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: extras_config_contexts_partial_update - description: Patch a config context object. + operationId: dcim_rack_types_partial_update + description: Patch a rack type 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 rack type. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -53491,178 +52680,181 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: extras_config_contexts_destroy - description: Delete a config context object. + operationId: dcim_rack_types_destroy + description: Delete a rack type 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 rack type. required: true tags: - - extras + - dcim 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/ConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - /api/extras/config-templates/: + /api/dcim/racks/: get: - operationId: extras_config_templates_list - description: Get a list of config template objects. + operationId: dcim_racks_list + description: Get a list of rack objects. parameters: - in: query - name: auto_sync_enabled + name: airflow schema: - type: boolean + type: string + x-spec-enum-id: a784734d07ef1b3c + nullable: true + enum: + - front-to-rear + - rear-to-front + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' - in: query - name: created + name: asset_tag schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: asset_tag__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: asset_tag__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: asset_tag__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: asset_tag__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: asset_tag__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: asset_tag__nie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: data_file_id + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact schema: type: array items: type: integer - nullable: true - description: Data file (ID) + description: Contact explode: true style: form - in: query - name: data_file_id__n + name: contact__n schema: type: array items: type: integer - nullable: true - description: Data file (ID) + description: Contact explode: true style: form - in: query - name: data_source_id + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role schema: type: array items: type: integer - nullable: true - description: Data source (ID) + description: Contact Role explode: true style: form - in: query - name: data_source_id__n + name: contact_role__n schema: type: array items: type: integer - nullable: true - description: Data source (ID) + description: Contact Role explode: true style: form - in: query - name: data_synced + name: created schema: type: array items: @@ -53671,11 +52863,16 @@ paths: explode: true style: form - in: query - name: data_synced__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: data_synced__gt + name: created__gt schema: type: array items: @@ -53684,7 +52881,7 @@ paths: explode: true style: form - in: query - name: data_synced__gte + name: created__gte schema: type: array items: @@ -53693,7 +52890,7 @@ paths: explode: true style: form - in: query - name: data_synced__lt + name: created__lt schema: type: array items: @@ -53702,7 +52899,7 @@ paths: explode: true style: form - in: query - name: data_synced__lte + name: created__lte schema: type: array items: @@ -53711,7 +52908,7 @@ paths: explode: true style: form - in: query - name: data_synced__n + name: created__n schema: type: array items: @@ -53719,6 +52916,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: desc_units + schema: + type: boolean - in: query name: description schema: @@ -53803,6 +53009,194 @@ paths: type: string explode: true style: form + - in: query + name: facility_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__empty + schema: + type: boolean + - in: query + name: facility_id__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: form_factor + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__empty + schema: + type: boolean + - in: query + name: form_factor__ic + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__ie + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__iew + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__isw + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__n + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__nic + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__nie + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__niew + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form + - in: query + name: form_factor__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + explode: true + style: form - in: query name: id schema: @@ -53931,12 +53325,7 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: location schema: type: array items: @@ -53944,11 +53333,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: location__n schema: type: array items: @@ -53956,7 +53341,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: location_id schema: type: array items: @@ -53964,7 +53349,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: location_id__n schema: type: array items: @@ -53972,508 +53357,208 @@ paths: explode: true style: form - in: query - name: name__isw + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__n + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__nic + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__nie + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__niew + name: max_weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: max_weight__empty + schema: + type: boolean + - in: query + name: max_weight__gt schema: type: array items: - type: string + 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. + - in: query + name: max_weight__gte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: max_weight__lt schema: - type: string - description: Search + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: tag + name: max_weight__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: max_weight__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: modified_by_request schema: type: string format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedConfigTemplateList' - description: '' - post: - operationId: extras_config_templates_create - description: Post a list of config template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - put: - operationId: extras_config_templates_bulk_update - description: Put a list of config template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - patch: - operationId: extras_config_templates_bulk_partial_update - description: Patch a list of config template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - delete: - operationId: extras_config_templates_bulk_destroy - description: Delete a list of config template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/config-templates/{id}/: - get: - 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 template. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - put: - 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 template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - patch: - 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 template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - delete: - 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 template. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - 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/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - 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: - - in: path - name: id + name: mounting_depth schema: - type: integer - description: A unique integer value identifying this config template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - 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: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: base_choices + name: mounting_depth__empty schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' + type: boolean - in: query - name: base_choices__n + name: mounting_depth__gt schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: choice + name: mounting_depth__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: created + name: mounting_depth__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: mounting_depth__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: mounting_depth__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: name schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: name__isw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: name__n schema: type: array items: @@ -54481,11 +53566,15 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: description__ic + name: name__nie schema: type: array items: @@ -54493,7 +53582,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__niew schema: type: array items: @@ -54501,63 +53590,97 @@ paths: explode: true style: form - in: query - name: description__iew + 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: description__isw + name: outer_depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: outer_depth__empty + schema: + type: boolean + - in: query + name: outer_depth__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: outer_depth__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: outer_depth__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: outer_depth__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: outer_depth__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: id + name: outer_unit + schema: + type: string + x-spec-enum-id: 86a846b6c40f495e + nullable: true + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' + - in: query + name: outer_width schema: type: array items: @@ -54566,11 +53689,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: outer_width__empty schema: type: boolean - in: query - name: id__gt + name: outer_width__gt schema: type: array items: @@ -54579,7 +53702,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: outer_width__gte schema: type: array items: @@ -54588,7 +53711,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: outer_width__lt schema: type: array items: @@ -54597,7 +53720,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: outer_width__lte schema: type: array items: @@ -54606,7 +53729,7 @@ paths: explode: true style: form - in: query - name: id__n + name: outer_width__n schema: type: array items: @@ -54615,81 +53738,120 @@ paths: explode: true style: form - in: query - name: last_updated + name: q + schema: + type: string + description: Search + - in: query + name: rack_type schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: last_updated__empty + name: rack_type__n schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: last_updated__gt + name: rack_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Rack type (ID) + explode: true + style: form + - in: query + name: rack_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Rack type (ID) + explode: true + style: form + - in: query + name: region schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: region__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: region_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: region_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: role schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: role__n schema: - type: integer + type: array + items: + type: string + description: Role (slug) + explode: true + style: form - in: query - name: modified_by_request + name: role_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form - in: query - name: name + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: serial schema: type: array items: @@ -54697,11 +53859,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: serial__empty schema: type: boolean - in: query - name: name__ic + name: serial__ic schema: type: array items: @@ -54709,7 +53871,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: serial__ie schema: type: array items: @@ -54717,7 +53879,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: serial__iew schema: type: array items: @@ -54725,7 +53887,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: serial__isw schema: type: array items: @@ -54733,7 +53895,7 @@ paths: explode: true style: form - in: query - name: name__n + name: serial__n schema: type: array items: @@ -54741,7 +53903,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: serial__nic schema: type: array items: @@ -54749,7 +53911,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: serial__nie schema: type: array items: @@ -54757,7 +53919,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: serial__niew schema: type: array items: @@ -54765,64 +53927,583 @@ paths: explode: true style: form - in: query - name: name__nisw + name: serial__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. + - in: query + name: site schema: - type: integer + type: array + items: + type: string + description: Site (slug) + explode: true + style: form - in: query - name: order_alphabetically + name: site__n schema: - type: boolean - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: site_group__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: updated_by_request + name: site_group_id schema: - type: string - format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' - description: '' - post: - 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/WritableCustomFieldChoiceSetRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + 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: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: u_height + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__empty + schema: + type: boolean + - in: query + name: u_height__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight_unit + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + nullable: true + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: width + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__n + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRackList' + description: '' + post: + operationId: dcim_racks_create + description: Post a list of rack objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableRackRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -54832,25 +54513,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: extras_custom_field_choice_sets_bulk_update - description: Put a list of custom field choice set objects. + operationId: dcim_racks_bulk_update + description: Put a list of rack objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -54862,25 +54543,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: extras_custom_field_choice_sets_bulk_partial_update - description: Patch a list of custom field choice set objects. + operationId: dcim_racks_bulk_partial_update + description: Patch a list of rack objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -54892,25 +54573,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: extras_custom_field_choice_sets_bulk_destroy - description: Delete a list of custom field choice set objects. + operationId: dcim_racks_bulk_destroy + description: Delete a list of rack objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -54918,19 +54599,19 @@ paths: responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/: + /api/dcim/racks/{id}/: get: - operationId: extras_custom_field_choice_sets_retrieve - description: Get a custom field choice set object. + operationId: dcim_racks_retrieve + description: Get a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54939,28 +54620,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: extras_custom_field_choice_sets_update - description: Put a custom field choice set object. + operationId: dcim_racks_update + description: Put a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -54970,28 +54651,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: extras_custom_field_choice_sets_partial_update - description: Patch a custom field choice set object. + operationId: dcim_racks_partial_update + description: Patch a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -55000,39 +54681,115 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: extras_custom_field_choice_sets_destroy - description: Delete a custom field choice set object. + operationId: dcim_racks_destroy + description: Delete a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/choices/: + /api/dcim/racks/{id}/elevation/: get: - operationId: extras_custom_field_choice_sets_choices_retrieve - description: Provides an endpoint to iterate through each choice in a set. + operationId: dcim_racks_elevation_retrieve + description: Rack elevation representing the list of rack units. Also supports + rendering the elevation as an SVG. parameters: + - in: query + name: exclude + schema: + type: integer + - in: query + name: expand_devices + schema: + type: boolean + default: true + - in: query + name: face + schema: + enum: + - front + - rear + type: string + x-spec-enum-id: d2fb9b3f75158b83 + default: front + minLength: 1 + description: '* `front` - Front + + * `rear` - Rear' - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this rack. required: true + - in: query + name: include_images + schema: + type: boolean + default: true + - in: query + name: legend_width + schema: + type: integer + default: 30 + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: margin_width + schema: + type: integer + default: 15 + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - in: query + name: q + schema: + type: string + minLength: 1 + - in: query + name: render + schema: + enum: + - json + - svg + type: string + x-spec-enum-id: 09901a5ff13ba07a + default: json + minLength: 1 + description: '* `json` - json + + * `svg` - svg' + - in: query + name: unit_height + schema: + type: integer + - in: query + name: unit_width + schema: + type: integer tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -55041,15 +54798,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/PaginatedRackUnitList' description: '' - /api/extras/custom-fields/: + /api/dcim/rear-port-templates/: get: - operationId: extras_custom_fields_list - description: Get a list of custom field objects. + operationId: dcim_rear_port_templates_list + description: Get a list of rear port template objects. parameters: - in: query - name: choice_set + name: color schema: type: array items: @@ -55057,7 +54814,11 @@ paths: explode: true style: form - in: query - name: choice_set__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: @@ -55065,79 +54826,71 @@ paths: explode: true style: form - in: query - name: choice_set_id + name: color__ie schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: choice_set_id__n + name: color__iew schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: created + name: color__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: color__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: color__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: color__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: created schema: type: array items: @@ -55146,72 +54899,66 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: description__nie + name: description schema: type: array items: @@ -55219,15 +54966,11 @@ paths: explode: true style: form - in: query - name: description__niew + name: description__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nisw + name: description__ic schema: type: array items: @@ -55235,43 +54978,7 @@ paths: explode: true style: form - in: query - name: filter_logic - schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' - - in: query - name: filter_logic__n - schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' - - in: query - name: group_name + name: description__ie schema: type: array items: @@ -55279,11 +54986,7 @@ paths: explode: true style: form - in: query - name: group_name__empty - schema: - type: boolean - - in: query - name: group_name__ic + name: description__iew schema: type: array items: @@ -55291,7 +54994,7 @@ paths: explode: true style: form - in: query - name: group_name__ie + name: description__isw schema: type: array items: @@ -55299,7 +55002,7 @@ paths: explode: true style: form - in: query - name: group_name__iew + name: description__n schema: type: array items: @@ -55307,7 +55010,7 @@ paths: explode: true style: form - in: query - name: group_name__isw + name: description__nic schema: type: array items: @@ -55315,7 +55018,7 @@ paths: explode: true style: form - in: query - name: group_name__n + name: description__nie schema: type: array items: @@ -55323,7 +55026,7 @@ paths: explode: true style: form - in: query - name: group_name__nic + name: description__niew schema: type: array items: @@ -55331,7 +55034,7 @@ paths: explode: true style: form - in: query - name: group_name__nie + name: description__nisw schema: type: array items: @@ -55339,19 +55042,23 @@ paths: explode: true style: form - in: query - name: group_name__niew + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: group_name__nisw + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query @@ -55412,10 +55119,6 @@ paths: format: int32 explode: true style: form - - in: query - name: is_cloneable - schema: - type: boolean - in: query name: label schema: @@ -55574,6 +55277,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -55658,520 +55381,182 @@ paths: type: string explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: string - - in: query - name: object_type__isw + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__n + name: positions schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__nic + name: positions__empty schema: - type: string + type: boolean - in: query - name: object_type__nie + name: positions__gt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__niew + name: positions__gte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__nisw + name: positions__lt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type_id + name: positions__lte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: object_type_id__n + name: positions__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: q schema: type: string description: Search - in: query - name: related_object_type - schema: - type: string - - in: query - name: related_object_type__n - schema: - type: string - - in: query - name: related_object_type_id + name: type schema: type: array items: - type: integer + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: related_object_type_id__n + name: type__empty + schema: + type: boolean + - in: query + name: type__ic schema: type: array items: - type: integer + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: required - schema: - type: boolean - - in: query - name: search_weight + name: type__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: search_weight__empty - schema: - type: boolean - - in: query - name: search_weight__gt + name: type__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: search_weight__gte + name: type__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: search_weight__lt + name: type__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: search_weight__lte + name: type__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: search_weight__n + name: type__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: type + name: type__niew schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: type__n + name: type__nisw schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: ui_editable - schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' - - in: query - name: ui_editable__n - schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' - - in: query - name: ui_visible - schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' - - in: query - name: ui_visible__n - schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' - - in: query - name: updated_by_request + name: updated_by_request schema: type: string format: uuid - - in: query - name: validation_maximum - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_maximum__empty - schema: - type: boolean - - in: query - name: validation_maximum__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_maximum__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_maximum__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_maximum__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_maximum__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_minimum - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_minimum__empty - schema: - type: boolean - - in: query - name: validation_minimum__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_minimum__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_minimum__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_minimum__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_minimum__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: validation_regex - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__empty - schema: - type: boolean - - in: query - name: validation_regex__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: validation_regex__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: weight - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -56180,21 +55565,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomFieldList' + $ref: '#/components/schemas/PaginatedRearPortTemplateList' description: '' post: - operationId: extras_custom_fields_create - description: Post a list of custom field objects. + operationId: dcim_rear_port_templates_create + description: Post a list of rear port template objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -56204,25 +55589,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: extras_custom_fields_bulk_update - description: Put a list of custom field objects. + operationId: dcim_rear_port_templates_bulk_update + description: Put a list of rear port template objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -56234,25 +55619,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: extras_custom_fields_bulk_partial_update - description: Patch a list of custom field objects. + operationId: dcim_rear_port_templates_bulk_partial_update + description: Patch a list of rear port template objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -56264,25 +55649,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: extras_custom_fields_bulk_destroy - description: Delete a list of custom field objects. + operationId: dcim_rear_port_templates_bulk_destroy + description: Delete a list of rear port template objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -56290,19 +55675,19 @@ paths: responses: '204': description: No response body - /api/extras/custom-fields/{id}/: + /api/dcim/rear-port-templates/{id}/: get: - operationId: extras_custom_fields_retrieve - description: Get a custom field object. + operationId: dcim_rear_port_templates_retrieve + description: Get a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this rear port template. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -56311,28 +55696,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: extras_custom_fields_update - description: Put a custom field object. + operationId: dcim_rear_port_templates_update + description: Put a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this rear port template. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -56342,28 +55727,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: extras_custom_fields_partial_update - description: Patch a custom field object. + operationId: dcim_rear_port_templates_partial_update + description: Patch a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this rear port template. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -56372,139 +55757,151 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: extras_custom_fields_destroy - description: Delete a custom field object. + operationId: dcim_rear_port_templates_destroy + description: Delete a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this rear port template. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/custom-links/: + /api/dcim/rear-ports/: get: - operationId: extras_custom_links_list - description: Get a list of custom link objects. + operationId: dcim_rear_ports_list + description: Get a list of rear port objects. parameters: - in: query - name: button_class + name: cable_end schema: type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: 1db84f9b93b261c8 + nullable: true enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: '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 + - A + - B + description: '* `A` - A - * `ghost-dark` - Link' + * `B` - B' - in: query - name: button_class__n + name: cable_id schema: - type: string - x-spec-enum-id: 9378cdf56abee54a - enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: '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' + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: color + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__empty + schema: + type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -56574,11 +55971,7 @@ paths: type: string format: uuid - in: query - name: enabled - schema: - type: boolean - - in: query - name: group_name + name: description schema: type: array items: @@ -56586,11 +55979,11 @@ paths: explode: true style: form - in: query - name: group_name__empty + name: description__empty schema: type: boolean - in: query - name: group_name__ic + name: description__ic schema: type: array items: @@ -56598,7 +55991,7 @@ paths: explode: true style: form - in: query - name: group_name__ie + name: description__ie schema: type: array items: @@ -56606,7 +55999,7 @@ paths: explode: true style: form - in: query - name: group_name__iew + name: description__iew schema: type: array items: @@ -56614,7 +56007,7 @@ paths: explode: true style: form - in: query - name: group_name__isw + name: description__isw schema: type: array items: @@ -56622,7 +56015,7 @@ paths: explode: true style: form - in: query - name: group_name__n + name: description__n schema: type: array items: @@ -56630,7 +56023,7 @@ paths: explode: true style: form - in: query - name: group_name__nic + name: description__nic schema: type: array items: @@ -56638,7 +56031,7 @@ paths: explode: true style: form - in: query - name: group_name__nie + name: description__nie schema: type: array items: @@ -56646,7 +56039,7 @@ paths: explode: true style: form - in: query - name: group_name__niew + name: description__niew schema: type: array items: @@ -56654,7 +56047,7 @@ paths: explode: true style: form - in: query - name: group_name__nisw + name: description__nisw schema: type: array items: @@ -56662,219 +56055,269 @@ paths: explode: true style: form - in: query - name: id + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: id__gt + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__gte + name: device_id__n schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__lt + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__lte + name: device_role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__n + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: last_updated + name: device_role_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - in: query - name: last_updated__empty + name: device_status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gt + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gte + name: device_status__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__lt + name: device_status__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__lte + name: device_status__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__n + name: device_status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: link_text - schema: - type: string - - in: query - name: link_text__ic - schema: - type: string - in: query - name: link_text__ie - schema: - type: string - - in: query - name: link_text__iew - schema: - type: string - - in: query - name: link_text__isw - schema: - type: string - - in: query - name: link_text__n - schema: - type: string - - in: query - name: link_text__nic + name: device_status__nic schema: - type: string + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: link_text__nie + name: device_status__nie schema: - type: string + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: link_text__niew + name: device_status__niew schema: - type: string + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: link_text__nisw + name: device_status__nisw schema: - type: string + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: link_url + name: device_type schema: - type: string + type: array + items: + type: string + description: Device type (model) + explode: true + style: form - in: query - name: link_url__ic + name: device_type__n schema: - type: string + type: array + items: + type: string + description: Device type (model) + explode: true + style: form - in: query - name: link_url__ie + name: device_type_id schema: - type: string + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query - name: link_url__iew + name: device_type_id__n schema: - type: string + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query - name: link_url__isw + name: id schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: link_url__n + name: id__empty schema: - type: string + type: boolean - in: query - name: link_url__nic + name: id__gt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: link_url__nie + name: id__gte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: link_url__niew + name: id__lt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: link_url__nisw + name: id__lte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: modified_by_request + name: id__n schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name + name: label schema: type: array items: @@ -56882,11 +56325,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -56894,7 +56337,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -56902,7 +56345,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -56910,7 +56353,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -56918,7 +56361,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -56926,7 +56369,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -56934,7 +56377,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -56942,7 +56385,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -56950,7 +56393,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: @@ -56958,129 +56401,241 @@ paths: explode: true style: form - in: query - name: new_window - schema: - type: boolean - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n + name: last_updated schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__nic + name: last_updated__empty schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__nie + name: last_updated__gt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__niew + name: last_updated__gte schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__nisw + name: last_updated__lt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type_id + name: last_updated__lte schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: object_type_id__n + name: last_updated__n schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: updated_by_request - schema: - type: string - format: uuid - in: query - name: weight + name: location schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: location__n schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: weight__gte + name: location_id schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: weight__lt + name: location_id__n schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: weight__lte + name: mark_connected + schema: + type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - 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 + - in: query + name: occupied + schema: + type: boolean + - 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: positions schema: type: array items: @@ -57089,7 +56644,47 @@ paths: explode: true style: form - in: query - name: weight__n + name: positions__empty + schema: + type: boolean + - in: query + name: positions__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__n schema: type: array items: @@ -57097,8 +56692,300 @@ paths: format: int32 explode: true style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57107,21 +56994,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomLinkList' + $ref: '#/components/schemas/PaginatedRearPortList' description: '' post: - operationId: extras_custom_links_create - description: Post a list of custom link objects. + operationId: dcim_rear_ports_create + description: Post a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -57131,25 +57018,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: extras_custom_links_bulk_update - description: Put a list of custom link objects. + operationId: dcim_rear_ports_bulk_update + description: Put a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -57161,25 +57048,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: extras_custom_links_bulk_partial_update - description: Patch a list of custom link objects. + operationId: dcim_rear_ports_bulk_partial_update + description: Patch a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -57191,25 +57078,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: extras_custom_links_bulk_destroy - description: Delete a list of custom link objects. + operationId: dcim_rear_ports_bulk_destroy + description: Delete a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -57217,19 +57104,19 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/{id}/: + /api/dcim/rear-ports/{id}/: get: - operationId: extras_custom_links_retrieve - description: Get a custom link object. + operationId: dcim_rear_ports_retrieve + description: Get a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57238,28 +57125,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: extras_custom_links_update - description: Put a custom link object. + operationId: dcim_rear_ports_update + description: Put a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -57269,28 +57156,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: extras_custom_links_partial_update - description: Patch a custom link object. + operationId: dcim_rear_ports_partial_update + description: Patch a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -57299,78 +57186,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: extras_custom_links_destroy - description: Delete a custom link object. + operationId: dcim_rear_ports_destroy + description: Delete a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/dashboard/: + /api/dcim/rear-ports/{id}/paths/: get: - operationId: extras_dashboard_retrieve - description: Get a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - put: - operationId: extras_dashboard_update - description: Put a list of dashboard objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DashboardRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DashboardRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - patch: - operationId: extras_dashboard_partial_update - description: Patch a list of dashboard objects. + operationId: dcim_rear_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this rear port. + required: true tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDashboardRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedDashboardRequest' + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57379,111 +57227,95 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dashboard' + $ref: '#/components/schemas/RearPort' description: '' - delete: - operationId: extras_dashboard_destroy - description: Delete a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/event-rules/: + /api/dcim/regions/: get: - operationId: extras_event_rules_list - description: Get a list of event rule objects. + operationId: dcim_regions_list + description: Get a list of region objects. parameters: - in: query - name: action_object_id + name: ancestor schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__empty + name: ancestor__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__gt + name: ancestor_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__gte + name: ancestor_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__lt + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: action_object_id__lte + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: action_object_id__n + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_type - schema: - type: string - - in: query - name: action_object_type__n + name: contact_group__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: action_type + name: contact_role schema: type: array items: - type: string - x-spec-enum-id: a08300d86473de6e + type: integer + description: Contact Role explode: true style: form - in: query - name: action_type__n + name: contact_role__n schema: type: array items: - type: string - x-spec-enum-id: a08300d86473de6e + type: integer + description: Contact Role explode: true style: form - in: query @@ -57638,10 +57470,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -57858,81 +57686,107 @@ paths: type: string explode: true style: form - - in: query - name: object_type + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: string - - in: query - name: object_type__ic + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__ie + name: parent schema: - type: string + type: array + items: + type: string + description: Parent region (slug) + explode: true + style: form - in: query - name: object_type__iew + name: parent__n schema: - type: string + type: array + items: + type: string + description: Parent region (slug) + explode: true + style: form - in: query - name: object_type__isw + name: parent_id schema: - type: string + type: array + items: + type: integer + nullable: true + description: Parent region (ID) + explode: true + style: form - in: query - name: object_type__n + name: parent_id__n schema: - type: string + type: array + items: + type: integer + nullable: true + description: Parent region (ID) + explode: true + style: form - in: query - name: object_type__nic + name: q schema: type: string + description: Search - in: query - name: object_type__nie + name: slug schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__niew + name: slug__empty schema: - type: string + type: boolean - in: query - name: object_type__nisw + name: slug__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: slug__ie schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: slug__iew schema: type: array items: - type: integer + 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: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: slug__n schema: type: array items: @@ -57940,7 +57794,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nic schema: type: array items: @@ -57948,32 +57802,52 @@ paths: explode: true style: form - in: query - name: type_create + name: slug__nie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_delete + name: slug__niew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_job_end + name: slug__nisw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_job_start + name: tag schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_update + name: tag__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57982,21 +57856,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedEventRuleList' + $ref: '#/components/schemas/PaginatedRegionList' description: '' post: - operationId: extras_event_rules_create - description: Post a list of event rule objects. + operationId: dcim_regions_create + description: Post a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -58006,25 +57880,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' put: - operationId: extras_event_rules_bulk_update - description: Put a list of event rule objects. + operationId: dcim_regions_bulk_update + description: Put a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -58036,25 +57910,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: extras_event_rules_bulk_partial_update - description: Patch a list of event rule objects. + operationId: dcim_regions_bulk_partial_update + description: Patch a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -58066,25 +57940,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: extras_event_rules_bulk_destroy - description: Delete a list of event rule objects. + operationId: dcim_regions_bulk_destroy + description: Delete a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -58092,19 +57966,19 @@ paths: responses: '204': description: No response body - /api/extras/event-rules/{id}/: + /api/dcim/regions/{id}/: get: - operationId: extras_event_rules_retrieve - description: Get a event rule object. + operationId: dcim_regions_retrieve + description: Get a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -58113,28 +57987,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' put: - operationId: extras_event_rules_update - description: Put a event rule object. + operationId: dcim_regions_update + description: Put a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -58144,28 +58018,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: extras_event_rules_partial_update - description: Patch a event rule object. + operationId: dcim_regions_partial_update + description: Patch a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -58174,149 +58048,126 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: extras_event_rules_destroy - description: Delete a event rule object. + operationId: dcim_regions_destroy + description: Delete a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/export-templates/: + /api/dcim/site-groups/: get: - operationId: extras_export_templates_list - description: Get a list of export template objects. + operationId: dcim_site_groups_list + description: Get a list of site group objects. parameters: - in: query - name: as_attachment - schema: - type: boolean - - in: query - name: auto_sync_enabled - schema: - type: boolean - - in: query - name: created + name: ancestor schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: ancestor__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: ancestor_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: ancestor_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__lte + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__n + name: contact_group 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 + name: contact_group__n schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_file_id__n + name: contact_role schema: type: array items: type: integer - nullable: true - description: Data file (ID) + description: Contact Role explode: true style: form - in: query - name: data_source_id + name: contact_role__n schema: type: array items: type: integer - nullable: true - description: Data source (ID) + description: Contact Role explode: true style: form - in: query - name: data_source_id__n + name: created schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string + format: date-time explode: true style: form - in: query - name: data_synced + name: created__empty schema: type: array items: @@ -58325,11 +58176,7 @@ paths: explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: created__gt schema: type: array items: @@ -58338,7 +58185,7 @@ paths: explode: true style: form - in: query - name: data_synced__gte + name: created__gte schema: type: array items: @@ -58347,7 +58194,7 @@ paths: explode: true style: form - in: query - name: data_synced__lt + name: created__lt schema: type: array items: @@ -58356,7 +58203,7 @@ paths: explode: true style: form - in: query - name: data_synced__lte + name: created__lte schema: type: array items: @@ -58365,7 +58212,7 @@ paths: explode: true style: form - in: query - name: data_synced__n + name: created__n schema: type: array items: @@ -58373,6 +58220,11 @@ paths: format: date-time explode: true style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: description schema: @@ -58458,104 +58310,20 @@ paths: explode: true style: form - in: query - name: file_extension + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: file_extension__empty + name: id__empty schema: type: boolean - in: query - name: file_extension__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__nisw - schema: - type: array - items: - type: string - 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 + name: id__gt schema: type: array items: @@ -58669,7 +58437,12 @@ paths: schema: type: integer - in: query - name: mime_type + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -58677,11 +58450,11 @@ paths: explode: true style: form - in: query - name: mime_type__empty + name: name__empty schema: type: boolean - in: query - name: mime_type__ic + name: name__ic schema: type: array items: @@ -58689,7 +58462,7 @@ paths: explode: true style: form - in: query - name: mime_type__ie + name: name__ie schema: type: array items: @@ -58697,7 +58470,7 @@ paths: explode: true style: form - in: query - name: mime_type__iew + name: name__iew schema: type: array items: @@ -58705,7 +58478,7 @@ paths: explode: true style: form - in: query - name: mime_type__isw + name: name__isw schema: type: array items: @@ -58713,7 +58486,7 @@ paths: explode: true style: form - in: query - name: mime_type__n + name: name__n schema: type: array items: @@ -58721,7 +58494,7 @@ paths: explode: true style: form - in: query - name: mime_type__nic + name: name__nic schema: type: array items: @@ -58729,7 +58502,7 @@ paths: explode: true style: form - in: query - name: mime_type__nie + name: name__nie schema: type: array items: @@ -58737,7 +58510,7 @@ paths: explode: true style: form - in: query - name: mime_type__niew + name: name__niew schema: type: array items: @@ -58745,56 +58518,70 @@ paths: explode: true style: form - in: query - name: mime_type__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: modified_by_request + - 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 - format: uuid - in: query - name: name + name: parent schema: type: array items: type: string + description: Parent site group (slug) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: parent__n schema: type: array items: type: string + description: Parent site group (slug) explode: true style: form - in: query - name: name__ie + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent site group (ID) explode: true style: form - in: query - name: name__iew + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Parent site group (ID) explode: true style: form - in: query - name: name__isw + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -58802,7 +58589,11 @@ paths: explode: true style: form - in: query - name: name__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -58810,7 +58601,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: slug__ie schema: type: array items: @@ -58818,7 +58609,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: slug__iew schema: type: array items: @@ -58826,7 +58617,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: slug__isw schema: type: array items: @@ -58834,7 +58625,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: slug__n schema: type: array items: @@ -58842,85 +58633,60 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie + name: slug__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__niew + name: slug__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nisw + name: slug__niew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: slug__nisw schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: tag schema: type: array items: - type: integer + 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: q + name: tag__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -58929,21 +58695,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedExportTemplateList' + $ref: '#/components/schemas/PaginatedSiteGroupList' description: '' post: - operationId: extras_export_templates_create - description: Post a list of export template objects. + operationId: dcim_site_groups_create + description: Post a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -58953,25 +58719,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_export_templates_bulk_update - description: Put a list of export template objects. + operationId: dcim_site_groups_bulk_update + description: Put a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -58983,25 +58749,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_export_templates_bulk_partial_update - description: Patch a list of export template objects. + operationId: dcim_site_groups_bulk_partial_update + description: Patch a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -59013,25 +58779,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_export_templates_bulk_destroy - description: Delete a list of export template objects. + operationId: dcim_site_groups_bulk_destroy + description: Delete a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -59039,19 +58805,19 @@ paths: responses: '204': description: No response body - /api/extras/export-templates/{id}/: + /api/dcim/site-groups/{id}/: get: - operationId: extras_export_templates_retrieve - description: Get a export template object. + operationId: dcim_site_groups_retrieve + description: Get a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -59060,28 +58826,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_export_templates_update - description: Put a export template object. + operationId: dcim_site_groups_update + description: Put a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -59091,28 +58857,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_export_templates_partial_update - description: Patch a export template object. + operationId: dcim_site_groups_partial_update + description: Patch a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -59121,382 +58887,315 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_export_templates_destroy - description: Delete a export template object. + operationId: dcim_site_groups_destroy + description: Delete a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/export-templates/{id}/sync/: - post: - operationId: extras_export_templates_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 export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - /api/extras/image-attachments/: + /api/dcim/sites/: get: - operationId: extras_image_attachments_list - description: Get a list of image attachment objects. + operationId: dcim_sites_list + description: Get a list of site objects. parameters: - in: query - name: created + name: asn schema: type: array items: - type: string - format: date-time + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: created__empty + name: asn__n schema: type: array items: - type: string - format: date-time + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: created__gt + name: asn_id schema: type: array items: - type: string - format: date-time + type: integer + description: AS (ID) explode: true style: form - in: query - name: created__gte + name: asn_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: AS (ID) explode: true style: form - in: query - name: created__lt + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__lte + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__n + name: contact_group 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: id + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__gte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__lt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__empty - schema: - type: boolean - - in: query - name: image_height__gt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__gte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__lt + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__lte + name: created_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: image_height__n + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__empty - schema: - type: boolean - - in: query - name: image_width__gt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__gte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__lt + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__lte + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__n + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: facility schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: facility__empty + schema: + type: boolean + - in: query + name: facility__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: facility__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: facility__iew 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 + name: facility__isw schema: type: array items: @@ -59504,11 +59203,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: facility__n schema: type: array items: @@ -59516,7 +59211,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: facility__nic schema: type: array items: @@ -59524,7 +59219,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: facility__nie schema: type: array items: @@ -59532,7 +59227,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: facility__niew schema: type: array items: @@ -59540,7 +59235,7 @@ paths: explode: true style: form - in: query - name: name__n + name: facility__nisw schema: type: array items: @@ -59548,7 +59243,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: group schema: type: array items: @@ -59556,7 +59251,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: group__n schema: type: array items: @@ -59564,7 +59259,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: group_id schema: type: array items: @@ -59572,7 +59267,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: group_id__n schema: type: array items: @@ -59580,7 +59275,7 @@ paths: explode: true style: form - in: query - name: object_id + name: id schema: type: array items: @@ -59589,11 +59284,11 @@ paths: explode: true style: form - in: query - name: object_id__empty + name: id__empty schema: type: boolean - in: query - name: object_id__gt + name: id__gt schema: type: array items: @@ -59602,7 +59297,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: id__gte schema: type: array items: @@ -59611,7 +59306,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: id__lt schema: type: array items: @@ -59620,7 +59315,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: id__lte schema: type: array items: @@ -59629,7 +59324,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: id__n schema: type: array items: @@ -59638,555 +59333,279 @@ paths: 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: integer - - in: query - name: object_type_id__n - schema: - type: integer - - 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: q - schema: - type: string - description: Search - - 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/PaginatedImageAttachmentList' - description: '' - post: - operationId: extras_image_attachments_create - description: Post a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - put: - operationId: extras_image_attachments_bulk_update - description: Put a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - description: '' - patch: - operationId: extras_image_attachments_bulk_partial_update - description: Patch a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - description: '' - delete: - operationId: extras_image_attachments_bulk_destroy - description: Delete a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/image-attachments/{id}/: - get: - operationId: extras_image_attachments_retrieve - description: Get a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - put: - operationId: extras_image_attachments_update - description: Put a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - patch: - operationId: extras_image_attachments_partial_update - description: Patch a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - delete: - operationId: extras_image_attachments_destroy - description: Delete a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/journal-entries/: - get: - operationId: extras_journal_entries_list - description: Get a list of journal entry objects. - parameters: - - in: query - name: assigned_object_id + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type - schema: - type: string - - in: query - name: assigned_object_type__n - schema: - type: string - - in: query - name: assigned_object_type_id + name: last_updated__n schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type_id__n + name: latitude schema: type: array items: - type: integer + type: number + format: double explode: true style: form - in: query - name: created_after + name: latitude__empty schema: - type: string - format: date-time + type: boolean - in: query - name: created_before + name: latitude__gt schema: - type: string - format: date-time + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: created_by + name: latitude__gte schema: type: array items: - type: string - description: User (name) + type: number + format: double explode: true style: form - in: query - name: created_by__n + name: latitude__lt schema: type: array items: - type: string - description: User (name) + type: number + format: double explode: true style: form - in: query - name: created_by_id + name: latitude__lte schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: number + format: double explode: true style: form - in: query - name: created_by_id__n + name: latitude__n schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: number + format: double explode: true style: form - - in: query - name: created_by_request + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: string - format: uuid + type: integer - in: query - name: id + name: longitude schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__empty + name: longitude__empty schema: type: boolean - in: query - name: id__gt + name: longitude__gt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__gte + name: longitude__gte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__lt + name: longitude__lt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__lte + name: longitude__lte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__n + name: longitude__n schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: kind + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: type: string - x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: kind__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__niew 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 + name: name__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -60205,7 +59624,7 @@ paths: type: string description: Search - in: query - name: tag + name: region schema: type: array items: @@ -60213,7 +59632,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: region__n schema: type: array items: @@ -60221,633 +59640,287 @@ paths: 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/PaginatedJournalEntryList' - description: '' - post: - operationId: extras_journal_entries_create - description: Post a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - put: - operationId: extras_journal_entries_bulk_update - description: Put a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntry' - description: '' - patch: - operationId: extras_journal_entries_bulk_partial_update - description: Patch a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntry' - description: '' - delete: - operationId: extras_journal_entries_bulk_destroy - description: Delete a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/journal-entries/{id}/: - get: - operationId: extras_journal_entries_retrieve - description: Get a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - put: - operationId: extras_journal_entries_update - description: Put a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - patch: - operationId: extras_journal_entries_partial_update - description: Patch a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - delete: - operationId: extras_journal_entries_destroy - description: Delete a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/object-changes/: - get: - operationId: extras_object_changes_list - description: Retrieve a list of recent changes. - parameters: - - in: query - name: action - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: action__n - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: changed_object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: changed_object_id__empty - schema: - type: boolean - - in: query - name: changed_object_id__gt + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_id__gte + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_id__lt + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_id__lte + name: slug__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: changed_object_id__n + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_type - schema: - type: string - - in: query - name: changed_object_type__n - schema: - type: string - - in: query - name: changed_object_type_id + name: slug__ie schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: changed_object_type_id__n + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: id + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: slug__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: slug__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: slug__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: slug__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: object_repr + name: status schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__empty + name: status__empty schema: type: boolean - in: query - name: object_repr__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 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: q - schema: - type: string - description: Search - in: query - name: related_object_id + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_id__empty - schema: - type: boolean - - in: query - name: related_object_id__gt + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_id__gte + name: tenant schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: related_object_id__lt + name: tenant__n schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: related_object_id__lte + name: tenant_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_id__n + name: tenant_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_type - schema: - type: integer - - in: query - name: related_object_type__n - schema: - type: integer - - in: query - name: request_id - schema: - type: string - format: uuid - - in: query - name: time_after - schema: - type: string - format: date-time - - in: query - name: time_before - schema: - type: string - format: date-time - - in: query - name: user + name: tenant_group_id schema: type: array items: type: string - description: User name explode: true style: form - in: query - name: user__n + name: tenant_group_id__n schema: type: array items: type: string - description: User name explode: true style: form - in: query - name: user_id + name: tenant_id schema: type: array items: type: integer nullable: true - description: User (ID) + description: Tenant (ID) explode: true style: form - in: query - name: user_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: User (ID) + description: Tenant (ID) explode: true style: form - in: query - name: user_name + name: time_zone schema: type: array items: @@ -60855,11 +59928,7 @@ paths: explode: true style: form - in: query - name: user_name__empty - schema: - type: boolean - - in: query - name: user_name__ic + name: time_zone__ic schema: type: array items: @@ -60867,7 +59936,7 @@ paths: explode: true style: form - in: query - name: user_name__ie + name: time_zone__ie schema: type: array items: @@ -60875,7 +59944,7 @@ paths: explode: true style: form - in: query - name: user_name__iew + name: time_zone__iew schema: type: array items: @@ -60883,7 +59952,7 @@ paths: explode: true style: form - in: query - name: user_name__isw + name: time_zone__isw schema: type: array items: @@ -60891,7 +59960,7 @@ paths: explode: true style: form - in: query - name: user_name__n + name: time_zone__n schema: type: array items: @@ -60899,7 +59968,7 @@ paths: explode: true style: form - in: query - name: user_name__nic + name: time_zone__nic schema: type: array items: @@ -60907,7 +59976,7 @@ paths: explode: true style: form - in: query - name: user_name__nie + name: time_zone__nie schema: type: array items: @@ -60915,7 +59984,7 @@ paths: explode: true style: form - in: query - name: user_name__niew + name: time_zone__niew schema: type: array items: @@ -60923,15 +59992,20 @@ paths: explode: true style: form - in: query - name: user_name__nisw + name: time_zone__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -60940,21 +60014,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectChangeList' + $ref: '#/components/schemas/PaginatedSiteList' + description: '' + post: + operationId: dcim_sites_create + description: Post a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Site' + description: '' + put: + operationId: dcim_sites_bulk_update + description: Put a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Site' + description: '' + patch: + operationId: dcim_sites_bulk_partial_update + description: Patch a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Site' description: '' - /api/extras/object-changes/{id}/: + delete: + operationId: dcim_sites_bulk_destroy + description: Delete a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/sites/{id}/: get: - operationId: extras_object_changes_retrieve - description: Retrieve a list of recent changes. + operationId: dcim_sites_retrieve + description: Get a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this object change. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -60963,50 +60145,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectChange' + $ref: '#/components/schemas/Site' description: '' - /api/extras/object-types/: - get: - operationId: extras_object_types_list - description: Read-only list of ObjectTypes. + put: + operationId: dcim_sites_update + description: Put a site object. parameters: - - in: query - name: app_label - schema: - type: string - - in: query + - in: path name: id schema: type: integer - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: model - 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 - - in: query - name: q - schema: - type: string - description: Search + description: A unique integer value identifying this site. + required: true tags: - - extras + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -61015,21 +60176,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectTypeList' + $ref: '#/components/schemas/Site' description: '' - /api/extras/object-types/{id}/: - get: - operationId: extras_object_types_retrieve - description: Read-only list of ObjectTypes. + patch: + operationId: dcim_sites_partial_update + description: Patch a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this object type. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableSiteRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableSiteRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -61038,12 +60206,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectType' + $ref: '#/components/schemas/Site' description: '' - /api/extras/saved-filters/: + delete: + operationId: dcim_sites_destroy + description: Delete a site object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this site. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/virtual-chassis/: get: - operationId: extras_saved_filters_list - description: Get a list of saved filter objects. + operationId: dcim_virtual_chassis_list + description: Get a list of virtual chassis objects. parameters: - in: query name: created @@ -61198,9 +60384,89 @@ paths: explode: true style: form - in: query - name: enabled + name: domain + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__empty schema: type: boolean + - in: query + name: domain__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: id schema: @@ -61329,173 +60595,110 @@ paths: schema: type: integer - 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 + name: master schema: type: array items: type: string + nullable: true + description: Master (name) explode: true style: form - in: query - name: name__ie + name: master__n schema: type: array items: type: string + nullable: true + description: Master (name) explode: true style: form - in: query - name: name__iew + name: master_id schema: type: array items: - type: string + type: integer + nullable: true + description: Master (ID) explode: true style: form - in: query - name: name__isw + name: master_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Master (ID) explode: true style: form - in: query - name: name__n + name: member_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: member_count__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__nie + name: member_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: member_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: member_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id + name: member_count__lte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: object_type_id__n + name: member_count__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: q + name: modified_by_request schema: type: string - description: Search - - in: query - name: shared - schema: - type: boolean + format: uuid - in: query - name: slug + name: name schema: type: array items: @@ -61503,11 +60706,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: name__empty schema: type: boolean - in: query - name: slug__ic + name: name__ic schema: type: array items: @@ -61515,7 +60718,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: name__ie schema: type: array items: @@ -61523,7 +60726,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__iew schema: type: array items: @@ -61531,7 +60734,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__isw schema: type: array items: @@ -61539,7 +60742,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__n schema: type: array items: @@ -61547,7 +60750,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__nic schema: type: array items: @@ -61555,7 +60758,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__nie schema: type: array items: @@ -61563,7 +60766,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__niew schema: type: array items: @@ -61571,120 +60774,189 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: updated_by_request - schema: + - 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 - format: uuid - in: query - name: usable + name: q schema: - type: boolean + type: string + description: Search - in: query - name: user + name: region schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: region__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: region_id schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: region_id__n schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: weight + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: weight__empty + name: site__n schema: - type: boolean + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form - in: query - name: weight__gt + name: site_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__gte + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: weight__lt + name: site_id__n schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: weight__lte + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - format: int32 + description: Tenant (ID) explode: true style: form - in: query - name: weight__n + name: tenant_id__n schema: type: array items: type: integer - format: int32 + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -61693,21 +60965,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSavedFilterList' + $ref: '#/components/schemas/PaginatedVirtualChassisList' description: '' post: - operationId: extras_saved_filters_create - description: Post a list of saved filter objects. + operationId: dcim_virtual_chassis_create + description: Post a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61717,25 +60989,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_saved_filters_bulk_update - description: Put a list of saved filter objects. + operationId: dcim_virtual_chassis_bulk_update + description: Put a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61747,25 +61019,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_saved_filters_bulk_partial_update - description: Patch a list of saved filter objects. + operationId: dcim_virtual_chassis_bulk_partial_update + description: Patch a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61777,25 +61049,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_saved_filters_bulk_destroy - description: Delete a list of saved filter objects. + operationId: dcim_virtual_chassis_bulk_destroy + description: Delete a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61803,19 +61075,19 @@ paths: responses: '204': description: No response body - /api/extras/saved-filters/{id}/: + /api/dcim/virtual-chassis/{id}/: get: - operationId: extras_saved_filters_retrieve - description: Get a saved filter object. + operationId: dcim_virtual_chassis_retrieve + description: Get a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -61824,28 +61096,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_saved_filters_update - description: Put a saved filter object. + operationId: dcim_virtual_chassis_update + description: Put a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61855,28 +61127,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_saved_filters_partial_update - description: Patch a saved filter object. + operationId: dcim_virtual_chassis_partial_update + description: Patch a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -61885,119 +61157,101 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_saved_filters_destroy - description: Delete a saved filter object. + operationId: dcim_virtual_chassis_destroy + description: Delete a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/scripts/: + /api/dcim/virtual-device-contexts/: get: - operationId: extras_scripts_list - description: Get a list of script objects. + operationId: dcim_virtual_device_contexts_list + description: Get a list of virtual device context objects. parameters: - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: is_executable - schema: - type: boolean - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: module_id + name: created__n schema: type: array items: - type: integer - description: Script module (ID) + type: string + format: date-time explode: true style: form - in: query - name: module_id__n + name: created_by_request schema: - type: array - items: - type: integer - description: Script module (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: name + name: description schema: type: array items: @@ -62005,11 +61259,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -62017,7 +61271,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -62025,7 +61279,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -62033,7 +61287,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -62041,7 +61295,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -62049,7 +61303,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -62057,7 +61311,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -62065,7 +61319,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -62073,241 +61327,105 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__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: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedScriptList' - description: '' - post: - operationId: extras_scripts_create - description: Post a list of script objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - /api/extras/scripts/{id}/: - get: - operationId: extras_scripts_retrieve - description: Get a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - put: - operationId: extras_scripts_update - description: Put a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - patch: - operationId: extras_scripts_partial_update - description: Patch a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - delete: - operationId: extras_scripts_destroy - description: Delete a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/tags/: - get: - operationId: extras_tags_list - description: Get a list of tag objects. - parameters: - in: query - name: color + name: device schema: type: array items: - type: string + type: integer + description: Device model explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: device__n schema: type: array items: - type: string + type: integer + description: Device model explode: true style: form - in: query - name: color__ie + name: device_id schema: type: array items: - type: string + type: integer + description: VDC (ID) explode: true style: form - in: query - name: color__iew + name: device_id__n schema: type: array items: - type: string + type: integer + description: VDC (ID) explode: true style: form - in: query - name: color__isw + name: has_primary_ip schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has a primary IP - in: query - name: color__n + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: color__nie + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__niew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nisw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: content_type + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: content_type_id + name: id__n schema: type: array items: @@ -62316,417 +61434,388 @@ paths: explode: true style: form - in: query - name: created + name: identifier schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: identifier__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: identifier__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: identifier__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: identifier__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: identifier__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: identifier__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: interface_id schema: type: array items: - type: string + type: integer + description: Interface (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: interface_id__n schema: type: array items: - type: string + type: integer + description: Interface (ID) explode: true style: form - in: query - name: description__ie + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: description__nisw + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: for_object_type_id + name: modified_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: id + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: name__empty schema: type: boolean - in: query - name: id__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nisw 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: last_updated__lt + name: primary_ip4_id schema: type: array items: - type: string - format: date-time + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: last_updated__lte + name: primary_ip4_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: last_updated__n + name: primary_ip6_id schema: type: array items: - type: string - format: date-time + type: integer + description: Primary IPv6 (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: primary_ip6_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: name__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: name__ic + name: status schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__ie + name: status__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__iew + name: status__ic schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__isw + name: status__ie schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__n + name: status__iew schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__nic + name: status__isw schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__nie + name: status__n schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__niew + name: status__nic schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__nisw + name: status__nie schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: object_types + name: status__niew schema: type: array items: - type: integer + type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: object_types__n + name: status__nisw schema: type: array items: - type: integer + type: string + x-spec-enum-id: ee1ef02def7a91ab 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: q - schema: - type: string - description: Search - in: query - name: slug + name: tag schema: type: array items: @@ -62734,11 +61823,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: tag__n schema: type: array items: @@ -62746,23 +61831,25 @@ paths: explode: true style: form - in: query - name: slug__ie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__iew + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__isw + name: tenant_group schema: type: array items: @@ -62770,7 +61857,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tenant_group__n schema: type: array items: @@ -62778,7 +61865,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant_group_id schema: type: array items: @@ -62786,7 +61873,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant_group_id__n schema: type: array items: @@ -62794,19 +61881,23 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__nisw + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -62815,7 +61906,7 @@ paths: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -62824,21 +61915,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTagList' + $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' description: '' post: - operationId: extras_tags_create - description: Post a list of tag objects. + operationId: dcim_virtual_device_contexts_create + description: Post a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62848,25 +61939,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_tags_bulk_update - description: Put a list of tag objects. + operationId: dcim_virtual_device_contexts_bulk_update + description: Put a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62878,25 +61969,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_tags_bulk_partial_update - description: Patch a list of tag objects. + operationId: dcim_virtual_device_contexts_bulk_partial_update + description: Patch a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62908,25 +61999,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_tags_bulk_destroy - description: Delete a list of tag objects. + operationId: dcim_virtual_device_contexts_bulk_destroy + description: Delete a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62934,19 +62025,19 @@ paths: responses: '204': description: No response body - /api/extras/tags/{id}/: + /api/dcim/virtual-device-contexts/{id}/: get: - operationId: extras_tags_retrieve - description: Get a tag object. + operationId: dcim_virtual_device_contexts_retrieve + description: Get a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -62955,28 +62046,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_tags_update - description: Put a tag object. + operationId: dcim_virtual_device_contexts_update + description: Put a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62986,28 +62077,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_tags_partial_update - description: Patch a tag object. + operationId: dcim_virtual_device_contexts_partial_update + description: Patch a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63016,171 +62107,600 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_tags_destroy - description: Delete a tag object. + operationId: dcim_virtual_device_contexts_destroy + description: Delete a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/webhooks/: + /api/extras/bookmarks/: get: - operationId: extras_webhooks_list - description: Get a list of webhook objects. + operationId: extras_bookmarks_list + description: Get a list of bookmark objects. parameters: - in: query - name: ca_file_path + name: created + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__empty + name: id__empty schema: type: boolean - in: query - name: ca_file_path__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__n + name: id__n schema: type: array items: - type: string + type: integer + 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: ca_file_path__nic + name: object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nie + name: object_id__empty + schema: + type: boolean + - in: query + name: object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__niew + name: object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nisw + name: object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: created + name: object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + 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: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: object_type_id__empty schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: object_type_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + 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: created__n + name: user__n + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user_id + schema: + type: array + items: + type: 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/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + 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/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + 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/PatchedBookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedBookmarkRequest' + 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: auto_sync_enabled + schema: + type: boolean + - 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: @@ -63189,96 +62709,164 @@ paths: explode: true style: form - in: query - name: created_by_request + name: created__empty schema: - type: string - format: uuid + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: description + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty + name: created__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: description__ic + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + 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: description__n + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: data_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: http_content_type + name: description schema: type: array items: @@ -63286,11 +62874,11 @@ paths: explode: true style: form - in: query - name: http_content_type__empty + name: description__empty schema: type: boolean - in: query - name: http_content_type__ic + name: description__ic schema: type: array items: @@ -63298,7 +62886,7 @@ paths: explode: true style: form - in: query - name: http_content_type__ie + name: description__ie schema: type: array items: @@ -63306,7 +62894,7 @@ paths: explode: true style: form - in: query - name: http_content_type__iew + name: description__iew schema: type: array items: @@ -63314,7 +62902,7 @@ paths: explode: true style: form - in: query - name: http_content_type__isw + name: description__isw schema: type: array items: @@ -63322,7 +62910,7 @@ paths: explode: true style: form - in: query - name: http_content_type__n + name: description__n schema: type: array items: @@ -63330,7 +62918,7 @@ paths: explode: true style: form - in: query - name: http_content_type__nic + name: description__nic schema: type: array items: @@ -63338,7 +62926,7 @@ paths: explode: true style: form - in: query - name: http_content_type__nie + name: description__nie schema: type: array items: @@ -63346,7 +62934,7 @@ paths: explode: true style: form - in: query - name: http_content_type__niew + name: description__niew schema: type: array items: @@ -63354,7 +62942,7 @@ paths: explode: true style: form - in: query - name: http_content_type__nisw + name: description__nisw schema: type: array items: @@ -63362,21 +62950,57 @@ paths: explode: true style: form - in: query - name: http_method + name: device_role schema: type: array items: type: string - x-spec-enum-id: a12018571a034921 + description: Role (slug) explode: true style: form - in: query - name: http_method__n + name: device_role__n schema: type: array items: type: string - x-spec-enum-id: a12018571a034921 + description: Role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Role + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Role + 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 @@ -63437,6 +63061,10 @@ paths: format: int32 explode: true style: form + - in: query + name: is_active + schema: + type: boolean - in: query name: last_updated schema: @@ -63506,6 +63134,42 @@ paths: 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: @@ -63608,11 +63272,39 @@ paths: schema: type: string - in: query - name: payload_url + 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 @@ -63621,107 +63313,219 @@ paths: type: string description: Search - in: query - name: secret + name: region schema: type: array items: type: string + description: Region (slug) explode: true style: form - in: query - name: secret__empty + name: region__n schema: - type: boolean + type: array + items: + type: string + description: Region (slug) + explode: true + style: form - in: query - name: secret__ic + name: region_id schema: type: array items: - type: string + type: integer + description: Region explode: true style: form - in: query - name: secret__ie + name: region_id__n schema: type: array items: - type: string + type: integer + description: Region explode: true style: form - in: query - name: secret__iew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: secret__isw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: secret__n + name: site_group schema: type: array items: type: string + description: Site group (slug) explode: true style: form - in: query - name: secret__nic + name: site_group__n schema: type: array items: type: string + description: Site group (slug) explode: true style: form - in: query - name: secret__nie + 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: secret__niew + name: tag__n schema: type: array items: type: string + description: Tag (slug) explode: true style: form - in: query - name: secret__nisw + 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: ssl_verification + name: tenant__n schema: - type: boolean + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: tag + name: tenant_group schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: tag__n + 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 @@ -63729,6 +63533,64 @@ paths: schema: type: string format: uuid + - in: query + name: weight + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - extras security: @@ -63739,21 +63601,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWebhookList' + $ref: '#/components/schemas/PaginatedConfigContextList' description: '' post: - operationId: extras_webhooks_create - description: Post a list of webhook objects. + operationId: extras_config_contexts_create + description: Post a list of config context objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63763,11 +63625,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_webhooks_bulk_update - description: Put a list of webhook objects. + operationId: extras_config_contexts_bulk_update + description: Put a list of config context objects. tags: - extras requestBody: @@ -63776,12 +63638,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63793,11 +63655,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_webhooks_bulk_partial_update - description: Patch a list of webhook objects. + operationId: extras_config_contexts_bulk_partial_update + description: Patch a list of config context objects. tags: - extras requestBody: @@ -63806,12 +63668,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63823,11 +63685,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_webhooks_bulk_destroy - description: Delete a list of webhook objects. + operationId: extras_config_contexts_bulk_destroy + description: Delete a list of config context objects. tags: - extras requestBody: @@ -63836,12 +63698,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63849,16 +63711,16 @@ paths: responses: '204': description: No response body - /api/extras/webhooks/{id}/: + /api/extras/config-contexts/{id}/: get: - operationId: extras_webhooks_retrieve - description: Get a webhook object. + 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 webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63870,17 +63732,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_webhooks_update - description: Put a webhook object. + 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 webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63888,10 +63750,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63901,17 +63763,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_webhooks_partial_update - description: Patch a webhook object. + 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 webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63919,10 +63781,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63931,17 +63793,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_webhooks_destroy - description: Delete a webhook object. + 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 webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63951,11 +63813,48 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/: + /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/ConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + /api/extras/config-templates/: get: - operationId: ipam_aggregates_list - description: Get a list of aggregate objects. + operationId: extras_config_templates_list + description: Get a list of config template objects. parameters: + - in: query + name: auto_sync_enabled + schema: + type: boolean - in: query name: created schema: @@ -64025,93 +63924,133 @@ paths: type: string format: uuid - in: query - name: date_added + name: data_file_id schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: date_added__empty - schema: - type: boolean - - in: query - name: date_added__gt + name: data_file_id__n schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: date_added__gte + name: data_source_id schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: date_added__lt + name: data_source_id__n schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: date_added__lte + name: data_synced schema: type: array items: type: string - format: date + format: date-time explode: true style: form - in: query - name: date_added__n + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: type: string - format: date + format: date-time explode: true style: form - in: query - name: description + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: data_synced__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew schema: type: array items: @@ -64166,10 +64105,6 @@ paths: type: string explode: true style: form - - in: query - name: family - schema: - type: number - in: query name: id schema: @@ -64302,66 +64237,36 @@ paths: schema: type: string format: uuid - - 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: prefix - schema: - type: string - description: Prefix - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rir + name: name schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: name__empty schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form + type: boolean - in: query - name: rir_id + name: name__ic schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: name__ie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: tag + name: name__iew schema: type: array items: @@ -64369,7 +64274,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__isw schema: type: array items: @@ -64377,77 +64282,76 @@ paths: explode: true style: form - in: query - name: tenant + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: name__niew schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: name__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + 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_group_id__n + name: q schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string + description: Search - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -64456,7 +64360,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64465,21 +64369,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAggregateList' + $ref: '#/components/schemas/PaginatedConfigTemplateList' description: '' post: - operationId: ipam_aggregates_create - description: Post a list of aggregate objects. + operationId: extras_config_templates_create + description: Post a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64489,25 +64393,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: ipam_aggregates_bulk_update - description: Put a list of aggregate objects. + operationId: extras_config_templates_bulk_update + description: Put a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64519,25 +64423,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: ipam_aggregates_bulk_partial_update - description: Patch a list of aggregate objects. + operationId: extras_config_templates_bulk_partial_update + description: Patch a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64549,25 +64453,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: ipam_aggregates_bulk_destroy - description: Delete a list of aggregate objects. + operationId: extras_config_templates_bulk_destroy + description: Delete a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64575,19 +64479,19 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/{id}/: + /api/extras/config-templates/{id}/: get: - operationId: ipam_aggregates_retrieve - description: Get a aggregate 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 aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64596,28 +64500,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: ipam_aggregates_update - description: Put a aggregate 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 aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64627,28 +64531,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: ipam_aggregates_partial_update - description: Patch a aggregate 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 aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -64657,31 +64561,135 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: ipam_aggregates_destroy - description: Delete a aggregate 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 aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/: + /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/ConfigTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + 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: + - 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/ConfigTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplate' + description: '' + /api/extras/custom-field-choice-sets/: get: - operationId: ipam_asn_ranges_list - description: Get a list of ASN range objects. + operationId: extras_custom_field_choice_sets_list + description: Get a list of custom field choice set objects. parameters: + - in: query + name: base_choices + schema: + type: string + x-spec-enum-id: cf0efb5195f85007 + nullable: true + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' + - in: query + name: choice + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -64834,64 +64842,6 @@ paths: type: string explode: true style: form - - in: query - name: end - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__empty - schema: - type: boolean - - in: query - name: end__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: id schema: @@ -65114,6 +65064,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 @@ -65125,281 +65079,13 @@ paths: schema: type: string description: Search - - in: query - name: rir - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir__n - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir_id - schema: - type: array - items: - type: integer - description: RIR (ID) - explode: true - style: form - - in: query - name: rir_id__n - schema: - type: array - items: - type: integer - description: RIR (ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: start - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__empty - schema: - type: boolean - - in: query - name: start__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_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: updated_by_request schema: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65408,21 +65094,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNRangeList' + $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' description: '' post: - operationId: ipam_asn_ranges_create - description: Post a list of ASN range objects. + operationId: extras_custom_field_choice_sets_create + description: Post a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65432,25 +65118,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: ipam_asn_ranges_bulk_update - description: Put a list of ASN range objects. + operationId: extras_custom_field_choice_sets_bulk_update + description: Put a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65462,25 +65148,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: ipam_asn_ranges_bulk_partial_update - description: Patch a list of ASN range objects. + operationId: extras_custom_field_choice_sets_bulk_partial_update + description: Patch a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65492,25 +65178,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: ipam_asn_ranges_bulk_destroy - description: Delete a list of ASN range objects. + operationId: extras_custom_field_choice_sets_bulk_destroy + description: Delete a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65518,19 +65204,19 @@ paths: responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/: + /api/extras/custom-field-choice-sets/{id}/: get: - operationId: ipam_asn_ranges_retrieve - description: Get a ASN range 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 ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65539,28 +65225,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: ipam_asn_ranges_update - description: Put a ASN range 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 ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65570,28 +65256,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: ipam_asn_ranges_partial_update - description: Patch a ASN range 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 ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -65600,38 +65286,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: ipam_asn_ranges_destroy - description: Delete a ASN range 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 ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/available-asns/: + /api/extras/custom-field-choice-sets/{id}/choices/: get: - operationId: ipam_asn_ranges_available_asns_list - description: Get a ASN object. + 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 custom field choice set. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65640,107 +65327,45 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/AvailableASN' - description: '' - post: - operationId: ipam_asn_ranges_available_asns_create - description: Post a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' - /api/ipam/asns/: + /api/extras/custom-fields/: get: - operationId: ipam_asns_list - description: Get a list of ASN objects. + operationId: extras_custom_fields_list + description: Get a list of custom field objects. parameters: - in: query - name: asn - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: asn__empty - schema: - type: boolean - - in: query - name: asn__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: asn__gte + name: choice_set schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lt + name: choice_set__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lte + name: choice_set_id schema: type: array items: type: integer - format: int32 + nullable: true explode: true style: form - in: query - name: asn__n + name: choice_set_id__n schema: type: array items: type: integer - format: int32 + nullable: true explode: true style: form - in: query @@ -65896,264 +65521,231 @@ paths: explode: true style: form - in: query - name: id + name: filter_logic + schema: + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + - in: query + name: group_name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: group_name__empty schema: type: boolean - in: query - name: id__gt + name: group_name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: group_name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: group_name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: group_name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: group_name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: group_name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: group_name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: group_name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: group_name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__n + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + 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: modified_by_request - schema: - type: string - format: uuid - - 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: provider + name: id__gte schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider__n + name: id__lt schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider_id + name: id__lte schema: type: array items: type: integer - description: Provider (ID) + format: int32 explode: true style: form - in: query - name: provider_id__n + name: id__n schema: type: array items: type: integer - description: Provider (ID) + format: int32 explode: true style: form - in: query - name: q + name: is_cloneable schema: - type: string - description: Search + type: boolean - in: query - name: rir + name: label schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: label__empty schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form + type: boolean - in: query - name: rir_id + name: label__ic schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: label__ie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: site + name: label__iew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: label__isw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_id + name: label__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: label__nic schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: label__nie schema: type: array items: @@ -66161,7 +65753,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: label__niew schema: type: array items: @@ -66169,381 +65761,149 @@ paths: explode: true style: form - in: query - name: tenant + name: label__nisw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: last_updated schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - in: query - name: tenant_group + name: last_updated__empty schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + format: date-time explode: true style: form - in: query - name: tenant_group__n + name: last_updated__gt schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + format: date-time explode: true style: form - in: query - name: tenant_group_id + name: last_updated__gte schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + format: date-time explode: true style: form - in: query - name: tenant_group_id__n + name: last_updated__lt schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + format: date-time explode: true style: form - in: query - name: tenant_id + name: last_updated__lte schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + format: date-time explode: true style: form - in: query - name: tenant_id__n + name: last_updated__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + 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: updated_by_request + name: modified_by_request schema: type: string format: uuid - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedASNList' - description: '' - post: - operationId: ipam_asns_create - description: Post a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - put: - operationId: ipam_asns_bulk_update - description: Put a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' - description: '' - patch: - operationId: ipam_asns_bulk_partial_update - description: Patch a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' - description: '' - delete: - operationId: ipam_asns_bulk_destroy - description: Delete a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/ipam/asns/{id}/: - get: - operationId: ipam_asns_retrieve - description: Get a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - put: - operationId: ipam_asns_update - description: Put a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - patch: - operationId: ipam_asns_partial_update - description: Patch a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedASNRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedASNRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - delete: - operationId: ipam_asns_destroy - description: Delete a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/ipam/fhrp-group-assignments/: - get: - operationId: ipam_fhrp_group_assignments_list - description: Get a list of FHRP group assignment objects. - parameters: - in: query - name: created + name: name schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: name__nic 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: device + name: name__nie schema: type: array items: @@ -66551,83 +65911,124 @@ paths: explode: true style: form - in: query - name: device_id + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: group_id + name: name__nisw schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: object_type schema: - type: array - items: - type: integer - description: Group (ID) - explode: true - style: form + type: string - in: query - name: id + name: object_type__ic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__empty + name: object_type__ie schema: - type: boolean + type: string - in: query - name: id__gt + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: id__gte + 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: id__lt + name: q + schema: + type: string + description: Search + - in: query + name: related_object_type + schema: + type: string + - in: query + name: related_object_type__n + schema: + type: string + - in: query + name: related_object_type_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: id__lte + name: related_object_type_id__n schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: id__n + name: required + schema: + type: boolean + - in: query + name: search_weight schema: type: array items: @@ -66636,7 +66037,11 @@ paths: explode: true style: form - in: query - name: interface_id + name: search_weight__empty + schema: + type: boolean + - in: query + name: search_weight__gt schema: type: array items: @@ -66645,11 +66050,7 @@ paths: explode: true style: form - in: query - name: interface_id__empty - schema: - type: boolean - - in: query - name: interface_id__gt + name: search_weight__gte schema: type: array items: @@ -66658,7 +66059,7 @@ paths: explode: true style: form - in: query - name: interface_id__gte + name: search_weight__lt schema: type: array items: @@ -66667,7 +66068,7 @@ paths: explode: true style: form - in: query - name: interface_id__lt + name: search_weight__lte schema: type: array items: @@ -66676,7 +66077,7 @@ paths: explode: true style: form - in: query - name: interface_id__lte + name: search_weight__n schema: type: array items: @@ -66685,110 +66086,155 @@ paths: explode: true style: form - in: query - name: interface_id__n + name: type schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: interface_type + name: type__empty schema: - type: string + type: boolean - in: query - name: interface_type__n + name: type__ic schema: - type: string + type: array + items: + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds + explode: true + style: form - in: query - name: last_updated + name: type__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: last_updated__empty + name: type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: last_updated__gt + name: type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: last_updated__gte + name: type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: last_updated__lt + name: type__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: last_updated__lte + name: type__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: last_updated__n + name: type__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: type__nisw schema: - type: integer + type: array + items: + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds + explode: true + style: form - in: query - name: modified_by_request + name: ui_editable schema: type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' + - in: query + name: ui_visible schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' + - in: query + name: unique + schema: + type: boolean + - in: query + name: updated_by_request schema: type: string + format: uuid - in: query - name: priority + name: validation_maximum schema: type: array items: @@ -66797,11 +66243,11 @@ paths: explode: true style: form - in: query - name: priority__empty + name: validation_maximum__empty schema: type: boolean - in: query - name: priority__gt + name: validation_maximum__gt schema: type: array items: @@ -66810,7 +66256,7 @@ paths: explode: true style: form - in: query - name: priority__gte + name: validation_maximum__gte schema: type: array items: @@ -66819,7 +66265,7 @@ paths: explode: true style: form - in: query - name: priority__lt + name: validation_maximum__lt schema: type: array items: @@ -66828,7 +66274,7 @@ paths: explode: true style: form - in: query - name: priority__lte + name: validation_maximum__lte schema: type: array items: @@ -66837,7 +66283,7 @@ paths: explode: true style: form - in: query - name: priority__n + name: validation_maximum__n schema: type: array items: @@ -66846,12 +66292,65 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: validation_minimum schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: virtual_machine + name: validation_minimum__empty + schema: + type: boolean + - in: query + name: validation_minimum__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_regex schema: type: array items: @@ -66859,7 +66358,132 @@ paths: explode: true style: form - in: query - name: virtual_machine_id + name: validation_regex__empty + schema: + type: boolean + - in: query + name: validation_regex__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: weight + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n schema: type: array items: @@ -66868,7 +66492,7 @@ paths: explode: true style: form tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -66877,21 +66501,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' + $ref: '#/components/schemas/PaginatedCustomFieldList' description: '' post: - operationId: ipam_fhrp_group_assignments_create - description: Post a list of FHRP group assignment objects. + operationId: extras_custom_fields_create + description: Post a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -66901,25 +66525,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: ipam_fhrp_group_assignments_bulk_update - description: Put a list of FHRP group assignment objects. + operationId: extras_custom_fields_bulk_update + description: Put a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -66931,25 +66555,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: ipam_fhrp_group_assignments_bulk_partial_update - description: Patch a list of FHRP group assignment objects. + operationId: extras_custom_fields_bulk_partial_update + description: Patch a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -66961,25 +66585,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: ipam_fhrp_group_assignments_bulk_destroy - description: Delete a list of FHRP group assignment objects. + operationId: extras_custom_fields_bulk_destroy + description: Delete a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -66987,19 +66611,19 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/{id}/: + /api/extras/custom-fields/{id}/: get: - operationId: ipam_fhrp_group_assignments_retrieve - description: Get a FHRP group assignment object. + operationId: extras_custom_fields_retrieve + description: Get a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -67008,28 +66632,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: ipam_fhrp_group_assignments_update - description: Put a FHRP group assignment object. + operationId: extras_custom_fields_update + description: Put a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -67039,28 +66663,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: ipam_fhrp_group_assignments_partial_update - description: Patch a FHRP group assignment object. + operationId: extras_custom_fields_partial_update + description: Patch a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67069,135 +66693,85 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: ipam_fhrp_group_assignments_destroy - description: Delete a FHRP group assignment object. + operationId: extras_custom_fields_destroy + description: Delete a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/fhrp-groups/: + /api/extras/custom-links/: get: - operationId: ipam_fhrp_groups_list - description: Get a list of FHRP group objects. + operationId: extras_custom_links_list + description: Get a list of custom link objects. parameters: - in: query - name: auth_key - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__empty - schema: - type: boolean - - in: query - name: auth_key__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n + name: button_class schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form + type: string + x-spec-enum-id: ee8e5bb1ccdcdb19 + enum: + - black + - blue + - cyan + - default + - ghost-dark + - gray + - green + - indigo + - orange + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `default` - 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' - in: query name: created schema: @@ -67267,19 +66841,11 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty + name: enabled schema: type: boolean - in: query - name: description__ic + name: group_name schema: type: array items: @@ -67287,15 +66853,11 @@ paths: explode: true style: form - in: query - name: description__ie + name: group_name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__iew + name: group_name__ic schema: type: array items: @@ -67303,7 +66865,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: group_name__ie schema: type: array items: @@ -67311,7 +66873,7 @@ paths: explode: true style: form - in: query - name: description__n + name: group_name__iew schema: type: array items: @@ -67319,7 +66881,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: group_name__isw schema: type: array items: @@ -67327,7 +66889,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: group_name__n schema: type: array items: @@ -67335,7 +66897,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: group_name__nic schema: type: array items: @@ -67343,7 +66905,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: group_name__nie schema: type: array items: @@ -67351,61 +66913,19 @@ paths: explode: true style: form - in: query - name: group_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__empty - schema: - type: boolean - - in: query - name: group_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__lte + name: group_name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: group_id__n + name: group_name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -67535,6 +67055,86 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: link_text + schema: + type: string + - in: query + name: link_text__ic + schema: + type: string + - in: query + name: link_text__ie + schema: + type: string + - in: query + name: link_text__iew + schema: + type: string + - in: query + name: link_text__isw + schema: + type: string + - in: query + name: link_text__n + schema: + type: string + - in: query + name: link_text__nic + schema: + type: string + - in: query + name: link_text__nie + schema: + type: string + - in: query + name: link_text__niew + schema: + type: string + - in: query + name: link_text__nisw + schema: + type: string + - in: query + name: link_url + schema: + type: string + - in: query + name: link_url__ic + schema: + type: string + - in: query + name: link_url__ie + schema: + type: string + - in: query + name: link_url__iew + schema: + type: string + - in: query + name: link_url__isw + schema: + type: string + - in: query + name: link_url__n + schema: + type: string + - in: query + name: link_url__nic + schema: + type: string + - in: query + name: link_url__nie + schema: + type: string + - in: query + name: link_url__niew + schema: + type: string + - in: query + name: link_url__nisw + schema: + type: string - in: query name: modified_by_request schema: @@ -67624,6 +67224,66 @@ paths: type: string explode: true style: form + - in: query + name: new_window + schema: + type: boolean + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -67637,59 +67297,75 @@ paths: schema: type: string - in: query - name: protocol + name: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: string - x-spec-enum-id: 40dc831c689b4b78 + type: integer + format: int32 explode: true style: form - in: query - name: protocol__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string - x-spec-enum-id: 40dc831c689b4b78 + type: integer + format: int32 explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: related_ip + name: weight__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag + name: weight__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: weight__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: weight__n schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -67698,21 +67374,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupList' + $ref: '#/components/schemas/PaginatedCustomLinkList' description: '' post: - operationId: ipam_fhrp_groups_create - description: Post a list of FHRP group objects. + operationId: extras_custom_links_create + description: Post a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67722,25 +67398,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: ipam_fhrp_groups_bulk_update - description: Put a list of FHRP group objects. + operationId: extras_custom_links_bulk_update + description: Put a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67752,25 +67428,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: ipam_fhrp_groups_bulk_partial_update - description: Patch a list of FHRP group objects. + operationId: extras_custom_links_bulk_partial_update + description: Patch a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67782,25 +67458,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: ipam_fhrp_groups_bulk_destroy - description: Delete a list of FHRP group objects. + operationId: extras_custom_links_bulk_destroy + description: Delete a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67808,19 +67484,19 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/{id}/: + /api/extras/custom-links/{id}/: get: - operationId: ipam_fhrp_groups_retrieve - description: Get a FHRP group object. + operationId: extras_custom_links_retrieve + description: Get a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -67829,28 +67505,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: ipam_fhrp_groups_update - description: Put a FHRP group object. + operationId: extras_custom_links_update + description: Put a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67860,28 +67536,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: ipam_fhrp_groups_partial_update - description: Patch a FHRP group object. + operationId: extras_custom_links_partial_update + description: Patch a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67890,46 +67566,115 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: ipam_fhrp_groups_destroy - description: Delete a FHRP group object. + operationId: extras_custom_links_destroy + description: Delete a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/ip-addresses/: + /api/extras/dashboard/: get: - operationId: ipam_ip_addresses_list - description: Get a list of IP address objects. + operationId: extras_dashboard_retrieve + description: Get a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + put: + operationId: extras_dashboard_update + description: Put a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + patch: + operationId: extras_dashboard_partial_update + description: Patch a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + delete: + operationId: extras_dashboard_destroy + description: Delete a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/event-rules/: + get: + operationId: extras_event_rules_list + description: Get a list of event rule objects. parameters: - in: query - name: address + name: action_object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: assigned - schema: - type: boolean - description: Is assigned - - in: query - name: assigned_object_id + name: action_object_id__empty schema: type: array items: @@ -67938,11 +67683,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt + name: action_object_id__gt schema: type: array items: @@ -67951,7 +67692,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__gte + name: action_object_id__gte schema: type: array items: @@ -67960,7 +67701,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lt + name: action_object_id__lt schema: type: array items: @@ -67969,7 +67710,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lte + name: action_object_id__lte schema: type: array items: @@ -67978,7 +67719,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__n + name: action_object_id__n schema: type: array items: @@ -67987,189 +67728,177 @@ paths: explode: true style: form - in: query - name: assigned_object_type - schema: - type: integer - - in: query - name: assigned_object_type__n + name: action_object_type schema: - type: integer + type: string - in: query - name: assigned_to_interface + name: action_object_type__n schema: - type: boolean - description: Is assigned to an interface + type: string - in: query - name: created + name: action_type schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: created__empty + name: action_type__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: action_type__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: created__gte + name: action_type__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: created__lt + name: action_type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: created__lte + name: action_type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: created__n + name: action_type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: action_type__nic schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: action_type__nie schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: description__ie + name: action_type__niew schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: description__iew + name: action_type__nisw schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: description__isw + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device_id + name: created_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: dns_name + name: description schema: type: array items: @@ -68177,11 +67906,11 @@ paths: explode: true style: form - in: query - name: dns_name__empty + name: description__empty schema: type: boolean - in: query - name: dns_name__ic + name: description__ic schema: type: array items: @@ -68189,7 +67918,7 @@ paths: explode: true style: form - in: query - name: dns_name__ie + name: description__ie schema: type: array items: @@ -68197,7 +67926,7 @@ paths: explode: true style: form - in: query - name: dns_name__iew + name: description__iew schema: type: array items: @@ -68205,7 +67934,7 @@ paths: explode: true style: form - in: query - name: dns_name__isw + name: description__isw schema: type: array items: @@ -68213,7 +67942,7 @@ paths: explode: true style: form - in: query - name: dns_name__n + name: description__n schema: type: array items: @@ -68221,7 +67950,7 @@ paths: explode: true style: form - in: query - name: dns_name__nic + name: description__nic schema: type: array items: @@ -68229,7 +67958,7 @@ paths: explode: true style: form - in: query - name: dns_name__nie + name: description__nie schema: type: array items: @@ -68237,7 +67966,7 @@ paths: explode: true style: form - in: query - name: dns_name__niew + name: description__niew schema: type: array items: @@ -68245,7 +67974,7 @@ paths: explode: true style: form - in: query - name: dns_name__nisw + name: description__nisw schema: type: array items: @@ -68253,25 +67982,15 @@ paths: explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: fhrpgroup_id + name: enabled schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form + type: boolean - in: query - name: fhrpgroup_id__n + name: event_type schema: type: array items: - type: integer - description: FHRP group (ID) + type: string explode: true style: form - in: query @@ -68332,42 +68051,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface__n - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -68437,60 +68120,13 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: nat_inside_id - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - - in: query - name: nat_inside_id__n - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - 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: parent + name: name schema: type: array items: @@ -68498,78 +68134,43 @@ paths: explode: true style: form - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q + name: name__empty schema: - type: string - description: Search + type: boolean - in: query - name: role + name: name__ic schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP explode: true style: form - in: query - name: role__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP - explode: true - style: form - - in: query - name: service_id - schema: - type: array - items: - type: integer - description: Service (ID) - explode: true - style: form - - in: query - name: service_id__n - schema: - type: array - items: - type: integer - description: Service (ID) explode: true style: form - in: query - name: status + name: name__iew schema: type: array items: type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP explode: true style: form - in: query - name: status__n + name: name__isw schema: type: array items: type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP explode: true style: form - in: query - name: tag + name: name__n schema: type: array items: @@ -68577,7 +68178,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nic schema: type: array items: @@ -68585,181 +68186,125 @@ paths: explode: true style: form - in: query - name: tenant + name: name__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nisw schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: object_type schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string - in: query - name: tenant_group_id + name: object_type__ic schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string - in: query - name: tenant_group_id__n + name: object_type__ie schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string - in: query - name: tenant_id + name: object_type__iew schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string - in: query - name: tenant_id__n + name: object_type__isw schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string - in: query - name: updated_by_request + name: object_type__n schema: type: string - format: uuid - in: query - name: virtual_machine + name: object_type__nic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: virtual_machine_id + name: object_type__nie schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: vminterface + name: object_type__niew schema: - type: array - items: - type: string - description: VM interface (name) - explode: true - style: form + type: string - in: query - name: vminterface__n + name: object_type__nisw schema: - type: array - items: - type: string - description: VM interface (name) - explode: true - style: form + type: string - in: query - name: vminterface_id + name: object_type_id schema: type: array items: type: integer - description: VM interface (ID) explode: true style: form - in: query - name: vminterface_id__n + name: object_type_id__n schema: type: array items: type: integer - description: VM interface (ID) 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: vrf + name: q schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form + type: string + description: Search - in: query - name: vrf__n + name: tag schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: tag__n schema: type: array items: - type: integer - nullable: true - description: VRF + type: string explode: true style: form - in: query - name: vrf_id__n + name: updated_by_request schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form + type: string + format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -68768,21 +68313,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPAddressList' + $ref: '#/components/schemas/PaginatedEventRuleList' description: '' post: - operationId: ipam_ip_addresses_create - description: Post a list of IP address objects. + operationId: extras_event_rules_create + description: Post a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' required: true security: - cookieAuth: [] @@ -68792,25 +68337,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' put: - operationId: ipam_ip_addresses_bulk_update - description: Put a list of IP address objects. + operationId: extras_event_rules_bulk_update + description: Put a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -68822,25 +68367,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' patch: - operationId: ipam_ip_addresses_bulk_partial_update - description: Patch a list of IP address objects. + operationId: extras_event_rules_bulk_partial_update + description: Patch a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -68852,25 +68397,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' delete: - operationId: ipam_ip_addresses_bulk_destroy - description: Delete a list of IP address objects. + operationId: extras_event_rules_bulk_destroy + description: Delete a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -68878,19 +68423,19 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/{id}/: + /api/extras/event-rules/{id}/: get: - operationId: ipam_ip_addresses_retrieve - description: Get a IP address object. + operationId: extras_event_rules_retrieve + description: Get a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -68899,28 +68444,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' put: - operationId: ipam_ip_addresses_update - description: Put a IP address object. + operationId: extras_event_rules_update + description: Put a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' required: true security: - cookieAuth: [] @@ -68930,28 +68475,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' patch: - operationId: ipam_ip_addresses_partial_update - description: Patch a IP address object. + operationId: extras_event_rules_partial_update + description: Patch a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -68960,36 +68505,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' delete: - operationId: ipam_ip_addresses_destroy - description: Delete a IP address object. + operationId: extras_event_rules_destroy + description: Delete a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/ip-ranges/: + /api/extras/export-templates/: get: - operationId: ipam_ip_ranges_list - description: Get a list of IP range objects. + operationId: extras_export_templates_list + description: Get a list of export template objects. parameters: - in: query - name: contains + name: as_attachment schema: - type: string - description: Ranges which contain this prefix or IP + type: boolean + - in: query + name: auto_sync_enabled + schema: + type: boolean - in: query name: created schema: @@ -69058,6 +68606,104 @@ paths: 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__empty + schema: + type: boolean + - 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: description schema: @@ -69143,7 +68789,7 @@ paths: explode: true style: form - in: query - name: end_address + name: file_extension schema: type: array items: @@ -69151,9 +68797,81 @@ paths: explode: true style: form - in: query - name: family + name: file_extension__empty schema: - type: number + type: boolean + - in: query + name: file_extension__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: file_extension__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: id schema: @@ -69282,28 +69000,7 @@ paths: schema: type: integer - in: query - name: mark_utilized - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - 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: parent + name: mime_type schema: type: array items: @@ -69311,108 +69008,88 @@ paths: explode: true style: form - in: query - name: q + name: mime_type__empty schema: - type: string - description: Search + type: boolean - in: query - name: role + name: mime_type__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: mime_type__ie schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: mime_type__iew schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: mime_type__isw schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: size + name: mime_type__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty - schema: - type: boolean - - in: query - name: size__gt + name: mime_type__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: mime_type__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: mime_type__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: mime_type__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: modified_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: start_address + name: name schema: type: array items: @@ -69420,27 +69097,27 @@ paths: explode: true style: form - in: query - name: status + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range explode: true style: form - in: query - name: status__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range explode: true style: form - in: query - name: tag + name: name__iew schema: type: array items: @@ -69448,7 +69125,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__isw schema: type: array items: @@ -69456,128 +69133,125 @@ paths: explode: true style: form - in: query - name: tenant + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: name__niew schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: name__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: object_type schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string - in: query - name: tenant_id + name: object_type__ic schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string - in: query - name: tenant_id__n + name: object_type__ie schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string - in: query - name: updated_by_request + name: object_type__iew schema: type: string - format: uuid - in: query - name: vrf + name: object_type__isw schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form + type: string - in: query - name: vrf__n + name: object_type__n schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form + type: string - in: query - name: vrf_id + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: type: integer - nullable: true - description: VRF explode: true style: form - in: query - name: vrf_id__n + name: object_type_id__n schema: type: array items: type: integer - nullable: true - description: VRF 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: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -69586,21 +69260,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPRangeList' + $ref: '#/components/schemas/PaginatedExportTemplateList' description: '' post: - operationId: ipam_ip_ranges_create - description: Post a list of IP range objects. + operationId: extras_export_templates_create + description: Post a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69610,25 +69284,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: ipam_ip_ranges_bulk_update - description: Put a list of IP range objects. + operationId: extras_export_templates_bulk_update + description: Put a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69640,25 +69314,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: ipam_ip_ranges_bulk_partial_update - description: Patch a list of IP range objects. + operationId: extras_export_templates_bulk_partial_update + description: Patch a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69670,25 +69344,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: ipam_ip_ranges_bulk_destroy - description: Delete a list of IP range objects. + operationId: extras_export_templates_bulk_destroy + description: Delete a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69696,19 +69370,19 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/: + /api/extras/export-templates/{id}/: get: - operationId: ipam_ip_ranges_retrieve - description: Get a IP range object. + operationId: extras_export_templates_retrieve + description: Get a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -69717,28 +69391,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: ipam_ip_ranges_update - description: Put a IP range object. + operationId: extras_export_templates_update + description: Put a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69748,28 +69422,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: ipam_ip_ranges_partial_update - description: Patch a IP range object. + operationId: extras_export_templates_partial_update + description: Patch a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -69778,159 +69452,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: ipam_ip_ranges_destroy - description: Delete a IP range object. + operationId: extras_export_templates_destroy + description: Delete a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/available-ips/: - get: - operationId: ipam_ip_ranges_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' + /api/extras/export-templates/{id}/sync/: post: - operationId: ipam_ip_ranges_available_ips_create - description: Post a IP address object. + operationId: extras_export_templates_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 export template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] - tokenAuth: [] responses: - '201': + '200': content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ExportTemplate' description: '' - /api/ipam/prefixes/: + /api/extras/image-attachments/: get: - operationId: ipam_prefixes_list - description: Get a list of prefix objects. + operationId: extras_image_attachments_list + description: Get a list of image attachment objects. parameters: - - in: query - name: children - schema: - type: array - items: - type: integer - 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: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: contains - schema: - type: string - description: Prefixes which contain this prefix or IP - in: query name: created schema: @@ -70000,7 +69579,7 @@ paths: type: string format: uuid - in: query - name: depth + name: id schema: type: array items: @@ -70009,16 +69588,11 @@ paths: explode: true style: form - in: query - name: depth__empty + name: id__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: depth__gt + name: id__gt schema: type: array items: @@ -70027,7 +69601,7 @@ paths: explode: true style: form - in: query - name: depth__gte + name: id__gte schema: type: array items: @@ -70036,7 +69610,7 @@ paths: explode: true style: form - in: query - name: depth__lt + name: id__lt schema: type: array items: @@ -70045,7 +69619,7 @@ paths: explode: true style: form - in: query - name: depth__lte + name: id__lte schema: type: array items: @@ -70054,7 +69628,7 @@ paths: explode: true style: form - in: query - name: depth__n + name: id__n schema: type: array items: @@ -70063,95 +69637,65 @@ paths: explode: true style: form - in: query - name: description + name: image_height schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: image_height__empty schema: type: boolean - in: query - name: description__ic + name: image_height__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: image_height__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: image_height__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: image_height__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: image_height__n schema: type: array items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: image_width schema: type: array items: @@ -70160,11 +69704,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: image_width__empty schema: type: boolean - in: query - name: id__gt + name: image_width__gt schema: type: array items: @@ -70173,7 +69717,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: image_width__gte schema: type: array items: @@ -70182,7 +69726,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: image_width__lt schema: type: array items: @@ -70191,7 +69735,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: image_width__lte schema: type: array items: @@ -70200,7 +69744,7 @@ paths: explode: true style: form - in: query - name: id__n + name: image_width__n schema: type: array items: @@ -70208,10 +69752,6 @@ paths: format: int32 explode: true style: form - - in: query - name: is_pool - schema: - type: boolean - in: query name: last_updated schema: @@ -70281,46 +69821,13 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_utilized - schema: - type: boolean - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - - 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: prefix + name: name schema: type: array items: @@ -70328,188 +69835,51 @@ paths: explode: true style: form - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role + name: name__empty schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form + type: boolean - in: query - name: role__n + name: name__ic schema: type: array items: type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) explode: true style: form - in: query - name: site + name: name__ie schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: name__iew schema: type: array items: type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) explode: true style: form - in: query - name: status + name: name__isw schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: status__n + name: name__n schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: tag + name: name__nic schema: type: array items: @@ -70517,7 +69887,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nie schema: type: array items: @@ -70525,193 +69895,119 @@ paths: explode: true style: form - in: query - name: tenant + name: name__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nisw 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 + name: object_id schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: object_id__empty schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: boolean - in: query - name: tenant_group_id__n + name: object_id__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: object_id__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: object_id__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vlan_id + name: object_id__lte schema: type: array items: type: integer - nullable: true - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_id__n + name: object_id__n schema: type: array items: type: integer - nullable: true - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_vid - 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 + name: object_type schema: - type: integer - description: VLAN number (1-4094) + type: string - in: query - name: vlan_vid__gte + name: object_type__n schema: - type: integer - description: VLAN number (1-4094) + type: string - in: query - name: vlan_vid__lt + name: object_type_id schema: type: integer - description: VLAN number (1-4094) - in: query - name: vlan_vid__lte + name: object_type_id__n schema: type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: type: integer - description: VLAN number (1-4094) - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form + type: string - in: query - name: within + name: q schema: type: string - description: Within prefix + description: Search - in: query - name: within_include + name: updated_by_request schema: type: string - description: Within and including prefix + format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -70720,21 +70016,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPrefixList' + $ref: '#/components/schemas/PaginatedImageAttachmentList' description: '' post: - operationId: ipam_prefixes_create - description: Post a list of prefix objects. + operationId: extras_image_attachments_create + description: Post a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70744,25 +70040,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: ipam_prefixes_bulk_update - description: Put a list of prefix objects. + operationId: extras_image_attachments_bulk_update + description: Put a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70774,25 +70070,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: ipam_prefixes_bulk_partial_update - description: Patch a list of prefix objects. + operationId: extras_image_attachments_bulk_partial_update + description: Patch a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70804,25 +70100,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: ipam_prefixes_bulk_destroy - description: Delete a list of prefix objects. + operationId: extras_image_attachments_bulk_destroy + description: Delete a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70830,19 +70126,19 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/: + /api/extras/image-attachments/{id}/: get: - operationId: ipam_prefixes_retrieve - description: Get a prefix object. + operationId: extras_image_attachments_retrieve + description: Get a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -70851,28 +70147,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: ipam_prefixes_update - description: Put a prefix object. + operationId: extras_image_attachments_update + description: Put a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70882,28 +70178,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: ipam_prefixes_partial_update - description: Patch a prefix object. + operationId: extras_image_attachments_partial_update + description: Patch a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -70912,303 +70208,166 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: ipam_prefixes_destroy - description: Delete a prefix object. + operationId: extras_image_attachments_destroy + description: Delete a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/prefixes/{id}/available-ips/: - get: - operationId: ipam_prefixes_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_prefixes_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/{id}/available-prefixes/: - get: - operationId: ipam_prefixes_available_prefixes_list - description: Get a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailablePrefix' - description: '' - post: - operationId: ipam_prefixes_available_prefixes_create - description: Post a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Prefix' - description: '' - /api/ipam/rirs/: + /api/extras/journal-entries/: get: - operationId: ipam_rirs_list - description: Get a list of RIR objects. + operationId: extras_journal_entries_list + description: Get a list of journal entry objects. parameters: - in: query - name: created + name: assigned_object_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: assigned_object_id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: assigned_object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: assigned_object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: assigned_object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: assigned_object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: assigned_object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: assigned_object_type schema: type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: description__empty + name: assigned_object_type__n schema: - type: boolean + type: string - in: query - name: description__ic + name: assigned_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: description__ie + name: assigned_object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: description__iew + name: created_after schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: description__isw + name: created_before schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: description__n + name: created_by schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__nic + name: created_by__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__nie + name: created_by_id schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: description__niew + name: created_by_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: description__nisw + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query name: id schema: @@ -71268,167 +70427,173 @@ paths: explode: true style: form - in: query - name: is_private - schema: - type: boolean - - in: query - name: last_updated + name: kind schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated__empty + name: kind__empty + schema: + type: boolean + - in: query + name: kind__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated__gt + name: kind__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated__gte + name: kind__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated__lt + name: kind__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated__lte + name: kind__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated__n + name: kind__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 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 + name: kind__nie schema: type: array items: type: string + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: kind__niew schema: type: array items: type: string + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: name__ie + name: kind__nisw schema: type: array items: type: string + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + 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 - name: offset required: false in: query @@ -71446,90 +70611,6 @@ paths: schema: type: string description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: tag schema: @@ -71552,7 +70633,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -71561,21 +70642,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRIRList' + $ref: '#/components/schemas/PaginatedJournalEntryList' description: '' post: - operationId: ipam_rirs_create - description: Post a list of RIR objects. + operationId: extras_journal_entries_create + description: Post a list of journal entry objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' required: true security: - cookieAuth: [] @@ -71585,25 +70666,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/JournalEntry' description: '' put: - operationId: ipam_rirs_bulk_update - description: Put a list of RIR objects. + operationId: extras_journal_entries_bulk_update + description: Put a list of journal entry objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/JournalEntryRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/JournalEntryRequest' required: true security: - cookieAuth: [] @@ -71615,25 +70696,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/JournalEntry' description: '' patch: - operationId: ipam_rirs_bulk_partial_update - description: Patch a list of RIR objects. + operationId: extras_journal_entries_bulk_partial_update + description: Patch a list of journal entry objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/JournalEntryRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/JournalEntryRequest' required: true security: - cookieAuth: [] @@ -71645,25 +70726,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/JournalEntry' description: '' delete: - operationId: ipam_rirs_bulk_destroy - description: Delete a list of RIR objects. + operationId: extras_journal_entries_bulk_destroy + description: Delete a list of journal entry objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/JournalEntryRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/JournalEntryRequest' required: true security: - cookieAuth: [] @@ -71671,19 +70752,19 @@ paths: responses: '204': description: No response body - /api/ipam/rirs/{id}/: + /api/extras/journal-entries/{id}/: get: - operationId: ipam_rirs_retrieve - description: Get a RIR object. + operationId: extras_journal_entries_retrieve + description: Get a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this journal entry. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -71692,28 +70773,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/JournalEntry' description: '' put: - operationId: ipam_rirs_update - description: Put a RIR object. + operationId: extras_journal_entries_update + description: Put a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this journal entry. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' required: true security: - cookieAuth: [] @@ -71723,28 +70804,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/JournalEntry' description: '' patch: - operationId: ipam_rirs_partial_update - description: Patch a RIR object. + operationId: extras_journal_entries_partial_update + description: Patch a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this journal entry. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -71753,58 +70834,623 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/JournalEntry' description: '' delete: - operationId: ipam_rirs_destroy - description: Delete a RIR object. + operationId: extras_journal_entries_destroy + description: Delete a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this journal entry. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/roles/: + /api/extras/notification-groups/: get: - operationId: ipam_roles_list - description: Get a list of role objects. + operationId: extras_notification_groups_list + description: Get a list of notification group objects. parameters: - - in: query - name: created + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty + type: integer + - 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: created__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 + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedNotificationGroupList' + description: '' + post: + operationId: extras_notification_groups_create + description: Post a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + put: + operationId: extras_notification_groups_bulk_update + description: Put a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + description: '' + patch: + operationId: extras_notification_groups_bulk_partial_update + description: Patch a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + description: '' + delete: + operationId: extras_notification_groups_bulk_destroy + description: Delete a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notification-groups/{id}/: + get: + operationId: extras_notification_groups_retrieve + description: Get a notification group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + put: + operationId: extras_notification_groups_update + description: Put a notification group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + patch: + operationId: extras_notification_groups_partial_update + description: Patch a notification group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedNotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedNotificationGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + delete: + operationId: extras_notification_groups_destroy + description: Delete a notification group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notifications/: + get: + operationId: extras_notifications_list + description: Get a list of notification objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedNotificationList' + description: '' + post: + operationId: extras_notifications_create + description: Post a list of notification objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Notification' + description: '' + put: + operationId: extras_notifications_bulk_update + description: Put a list of notification objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Notification' + description: '' + patch: + operationId: extras_notifications_bulk_partial_update + description: Patch a list of notification objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Notification' + description: '' + delete: + operationId: extras_notifications_bulk_destroy + description: Delete a list of notification objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notifications/{id}/: + get: + operationId: extras_notifications_retrieve + description: Get a notification object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Notification' + description: '' + put: + operationId: extras_notifications_update + description: Put a notification object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Notification' + description: '' + patch: + operationId: extras_notifications_partial_update + description: Patch a notification object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedNotificationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedNotificationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Notification' + description: '' + delete: + operationId: extras_notifications_destroy + description: Delete a notification object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/object-types/: + get: + operationId: extras_object_types_list + description: Read-only list of ObjectTypes. + parameters: + - in: query + name: app_label + schema: + type: string + - in: query + name: id + schema: + type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: model + 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 + - in: query + name: q + schema: + type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedObjectTypeList' + description: '' + /api/extras/object-types/{id}/: + get: + operationId: extras_object_types_retrieve + description: Read-only list of ObjectTypes. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this object type. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectType' + description: '' + /api/extras/saved-filters/: + get: + operationId: extras_saved_filters_list + description: Get a list of saved filter objects. + parameters: + - 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: @@ -71930,6 +71576,10 @@ paths: type: string explode: true style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -72146,6 +71796,62 @@ paths: type: string explode: true style: form + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -72163,6 +71869,10 @@ paths: schema: type: string description: Search + - in: query + name: shared + schema: + type: boolean - in: query name: slug schema: @@ -72248,26 +71958,52 @@ paths: explode: true style: form - in: query - name: tag + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: usable + schema: + type: boolean + - in: query + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: tag__n + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: updated_by_request + name: user_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + nullable: true + description: User (ID) + explode: true + style: form - in: query name: weight schema: @@ -72327,7 +72063,7 @@ paths: explode: true style: form tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -72336,21 +72072,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRoleList' + $ref: '#/components/schemas/PaginatedSavedFilterList' description: '' post: - operationId: ipam_roles_create - description: Post a list of role objects. + operationId: extras_saved_filters_create + description: Post a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72360,25 +72096,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_roles_bulk_update - description: Put a list of role objects. + operationId: extras_saved_filters_bulk_update + description: Put a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72390,25 +72126,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_roles_bulk_partial_update - description: Patch a list of role objects. + operationId: extras_saved_filters_bulk_partial_update + description: Patch a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72420,25 +72156,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_roles_bulk_destroy - description: Delete a list of role objects. + operationId: extras_saved_filters_bulk_destroy + description: Delete a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72446,19 +72182,19 @@ paths: responses: '204': description: No response body - /api/ipam/roles/{id}/: + /api/extras/saved-filters/{id}/: get: - operationId: ipam_roles_retrieve - description: Get a role object. + operationId: extras_saved_filters_retrieve + description: Get a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -72467,28 +72203,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_roles_update - description: Put a role object. + operationId: extras_saved_filters_update + description: Put a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72498,28 +72234,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_roles_partial_update - description: Patch a role object. + operationId: extras_saved_filters_partial_update + description: Patch a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -72528,267 +72264,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_roles_destroy - description: Delete a role object. + operationId: extras_saved_filters_destroy + description: Delete a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/route-targets/: + /api/extras/scripts/: get: - operationId: ipam_route_targets_list - description: Get a list of route target objects. + operationId: extras_scripts_list + description: Get a list of script objects. parameters: - - 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: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: exporting_l2vpn - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) - explode: true - style: form - - in: query - name: exporting_l2vpn__n - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) - explode: true - style: form - - in: query - name: exporting_l2vpn_id - schema: - type: array - items: - type: integer - description: Exporting L2VPN - explode: true - style: form - - in: query - name: exporting_l2vpn_id__n - schema: - type: array - items: - type: integer - description: Exporting L2VPN - explode: true - style: form - - in: query - name: exporting_vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) - explode: true - style: form - - in: query - name: exporting_vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) - explode: true - style: form - - in: query - name: exporting_vrf_id - schema: - type: array - items: - type: integer - description: Exporting VRF - explode: true - style: form - - in: query - name: exporting_vrf_id__n - schema: - type: array - items: - type: integer - description: Exporting VRF - explode: true - style: form - in: query name: id schema: @@ -72848,247 +72348,274 @@ paths: explode: true style: form - in: query - name: importing_l2vpn + name: is_executable schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) - explode: true - style: form - - in: query - name: importing_l2vpn__n + type: boolean + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) - explode: true - style: form + type: integer - in: query - name: importing_l2vpn_id + name: module_id schema: type: array items: type: integer - description: Importing L2VPN + description: Script module (ID) explode: true style: form - in: query - name: importing_l2vpn_id__n + name: module_id__n schema: type: array items: type: integer - description: Importing L2VPN + description: Script module (ID) explode: true style: form - in: query - name: importing_vrf + name: name schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) explode: true style: form - in: query - name: importing_vrf__n + name: name__empty schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) - explode: true - style: form + type: boolean - in: query - name: importing_vrf_id + name: name__ic schema: type: array items: - type: integer - description: Importing VRF + type: string explode: true style: form - in: query - name: importing_vrf_id__n + name: name__ie schema: type: array items: - type: integer - description: Importing VRF + type: string explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - - 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 + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__isw + name: q schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n + type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedScriptList' + description: '' + post: + operationId: extras_scripts_create + description: Post a list of script objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + /api/extras/scripts/{id}/: + get: + operationId: extras_scripts_retrieve + description: Get a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + put: + operationId: extras_scripts_update + description: Put a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScriptInputRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ScriptInputRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + patch: + operationId: extras_scripts_partial_update + description: Patch a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedScriptInputRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedScriptInputRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + delete: + operationId: extras_scripts_destroy + description: Delete a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/subscriptions/: + get: + operationId: extras_subscriptions_list + description: Get a list of subscription objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - name: offset required: false in: query @@ -73101,108 +72628,8 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: 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: updated_by_request - schema: - type: string - format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -73211,21 +72638,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRouteTargetList' + $ref: '#/components/schemas/PaginatedSubscriptionList' description: '' post: - operationId: ipam_route_targets_create - description: Post a list of route target objects. + operationId: extras_subscriptions_create + description: Post a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73235,25 +72662,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' put: - operationId: ipam_route_targets_bulk_update - description: Put a list of route target objects. + operationId: extras_subscriptions_bulk_update + description: Put a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73265,25 +72692,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' patch: - operationId: ipam_route_targets_bulk_partial_update - description: Patch a list of route target objects. + operationId: extras_subscriptions_bulk_partial_update + description: Patch a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73295,25 +72722,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' delete: - operationId: ipam_route_targets_bulk_destroy - description: Delete a list of route target objects. + operationId: extras_subscriptions_bulk_destroy + description: Delete a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73321,19 +72748,19 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/{id}/: + /api/extras/subscriptions/{id}/: get: - operationId: ipam_route_targets_retrieve - description: Get a route target object. + operationId: extras_subscriptions_retrieve + description: Get a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -73342,28 +72769,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' put: - operationId: ipam_route_targets_update - description: Put a route target object. + operationId: extras_subscriptions_update + description: Put a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73373,28 +72800,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' patch: - operationId: ipam_route_targets_partial_update - description: Patch a route target object. + operationId: extras_subscriptions_partial_update + description: Patch a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedSubscriptionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedSubscriptionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -73403,31 +72830,132 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' delete: - operationId: ipam_route_targets_destroy - description: Delete a route target object. + operationId: extras_subscriptions_destroy + description: Delete a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/service-templates/: + /api/extras/tags/: get: - operationId: ipam_service_templates_list - description: Get a list of service template objects. + operationId: extras_tags_list + description: Get a list of tag objects. parameters: + - in: query + name: color + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__empty + schema: + type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: content_type + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: content_type_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: created schema: @@ -73580,6 +73108,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: @@ -73796,6 +73333,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 @@ -73809,44 +73362,32 @@ paths: schema: type: string - in: query - name: port + name: q schema: - type: number + type: string + description: Search - in: query - name: protocol + name: slug schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol__n + name: slug__empty schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: boolean - in: query - name: q + name: slug__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -73854,7 +73395,55 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw schema: type: array items: @@ -73867,7 +73456,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -73876,21 +73465,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceTemplateList' + $ref: '#/components/schemas/PaginatedTagList' description: '' post: - operationId: ipam_service_templates_create - description: Post a list of service template objects. + operationId: extras_tags_create + description: Post a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73900,25 +73489,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_service_templates_bulk_update - description: Put a list of service template objects. + operationId: extras_tags_bulk_update + description: Put a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73930,25 +73519,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_service_templates_bulk_partial_update - description: Patch a list of service template objects. + operationId: extras_tags_bulk_partial_update + description: Patch a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73960,25 +73549,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_service_templates_bulk_destroy - description: Delete a list of service template objects. + operationId: extras_tags_bulk_destroy + description: Delete a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73986,19 +73575,19 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/{id}/: + /api/extras/tags/{id}/: get: - operationId: ipam_service_templates_retrieve - description: Get a service template object. + operationId: extras_tags_retrieve + description: Get a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -74007,28 +73596,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_service_templates_update - description: Put a service template object. + operationId: extras_tags_update + description: Put a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -74038,28 +73627,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_service_templates_partial_update - description: Patch a service template object. + operationId: extras_tags_partial_update + description: Patch a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedTagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedTagRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74068,31 +73657,115 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_service_templates_destroy - description: Delete a service template object. + operationId: extras_tags_destroy + description: Delete a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/services/: + /api/extras/webhooks/: get: - operationId: ipam_services_list - description: Get a list of service objects. + operationId: extras_webhooks_list + description: Get a list of webhook objects. parameters: + - in: query + name: ca_file_path + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__empty + schema: + type: boolean + - in: query + name: ca_file_path__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -74246,173 +73919,239 @@ paths: explode: true style: form - in: query - name: device + name: http_content_type schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: http_content_type__empty + schema: + type: boolean + - in: query + name: http_content_type__ic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: http_content_type__ie schema: type: array items: - type: integer - nullable: true - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: http_content_type__iew schema: type: array items: - type: integer - nullable: true - description: Device (ID) + type: string explode: true style: form - in: query - name: id + name: http_content_type__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: http_content_type__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_method + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form + - in: query + name: http_method__empty schema: type: boolean - in: query - name: id__gt + name: http_method__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 explode: true style: form - in: query - name: id__gte + name: http_method__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 explode: true style: form - in: query - name: id__lt + name: http_method__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 explode: true style: form - in: query - name: id__lte + name: http_method__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 explode: true style: form - in: query - name: id__n + name: http_method__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 explode: true style: form - in: query - name: ip_address + name: http_method__nic schema: type: array items: type: string - description: IP address + x-spec-enum-id: a12018571a034921 explode: true style: form - in: query - name: ip_address__n + name: http_method__nie schema: type: array items: type: string - description: IP address + x-spec-enum-id: a12018571a034921 explode: true style: form - in: query - name: ip_address_id + name: http_method__niew + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form + - in: query + name: http_method__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query - name: ip_address_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query - name: ipaddress + name: id__gte schema: type: array items: - type: string - description: IP address + type: integer + format: int32 explode: true style: form - in: query - name: ipaddress__n + name: id__lt schema: type: array items: - type: string - description: IP address + type: integer + format: int32 explode: true style: form - in: query - name: ipaddress_id + name: id__lte schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query - name: ipaddress_id__n + name: id__n schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query @@ -74586,44 +74325,32 @@ paths: schema: type: string - in: query - name: port + name: payload_url schema: - type: number + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol + name: q schema: type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + description: Search - in: query - name: protocol__n + name: secret schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: secret__empty schema: - type: string - description: Search + type: boolean - in: query - name: tag + name: secret__ic schema: type: array items: @@ -74631,7 +74358,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: secret__ie schema: type: array items: @@ -74639,73 +74366,111 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: secret__iew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_machine + name: secret__isw schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine__n + name: secret__n schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine_id + name: secret__nic schema: type: array items: - type: integer - nullable: true - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: secret__nie schema: type: array items: - type: integer - nullable: true - description: Virtual machine (ID) + type: string explode: true style: form - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: + - in: query + name: secret__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: secret__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + 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: updated_by_request + schema: + type: string + format: uuid + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceList' + $ref: '#/components/schemas/PaginatedWebhookList' description: '' post: - operationId: ipam_services_create - description: Post a list of service objects. + operationId: extras_webhooks_create + description: Post a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74715,25 +74480,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_services_bulk_update - description: Put a list of service objects. + operationId: extras_webhooks_bulk_update + description: Put a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74745,25 +74510,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_services_bulk_partial_update - description: Patch a list of service objects. + operationId: extras_webhooks_bulk_partial_update + description: Patch a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74775,25 +74540,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_services_bulk_destroy - description: Delete a list of service objects. + operationId: extras_webhooks_bulk_destroy + description: Delete a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74801,19 +74566,19 @@ paths: responses: '204': description: No response body - /api/ipam/services/{id}/: + /api/extras/webhooks/{id}/: get: - operationId: ipam_services_retrieve - description: Get a service object. + operationId: extras_webhooks_retrieve + description: Get a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -74822,28 +74587,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_services_update - description: Put a service object. + operationId: extras_webhooks_update + description: Put a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74853,28 +74618,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_services_partial_update - description: Patch a service object. + operationId: extras_webhooks_partial_update + description: Patch a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74883,43 +74648,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_services_destroy - description: Delete a service object. + operationId: extras_webhooks_destroy + description: Delete a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/vlan-groups/: + /api/ipam/aggregates/: get: - operationId: ipam_vlan_groups_list - description: Get a list of VLAN group objects. + operationId: ipam_aggregates_list + description: Get a list of aggregate objects. parameters: - - in: query - name: cluster - schema: - type: integer - - in: query - name: cluster_group - schema: - type: integer - - in: query - name: clustergroup - schema: - type: integer - in: query name: created schema: @@ -74989,59 +74742,65 @@ paths: type: string format: uuid - in: query - name: description + name: date_added schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__empty + name: date_added__empty schema: type: boolean - in: query - name: description__ic + name: date_added__gt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__ie + name: date_added__gte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__iew + name: date_added__lt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__isw + name: date_added__lte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__n + name: date_added__n schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__nic + name: description schema: type: array items: @@ -75049,15 +74808,11 @@ paths: explode: true style: form - in: query - name: description__nie + name: description__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__niew + name: description__ic schema: type: array items: @@ -75065,7 +74820,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: description__ie schema: type: array items: @@ -75073,196 +74828,67 @@ paths: 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: last_updated + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__nisw 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: integer - - in: query - name: max_vid - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__empty - schema: - type: boolean - - in: query - name: max_vid__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__lt - schema: - type: array - items: - type: integer - format: int32 explode: true style: form - in: query - name: max_vid__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__n + name: family schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: number - in: query - name: min_vid + name: id schema: type: array items: @@ -75271,11 +74897,11 @@ paths: explode: true style: form - in: query - name: min_vid__empty + name: id__empty schema: type: boolean - in: query - name: min_vid__gt + name: id__gt schema: type: array items: @@ -75284,7 +74910,7 @@ paths: explode: true style: form - in: query - name: min_vid__gte + name: id__gte schema: type: array items: @@ -75293,7 +74919,7 @@ paths: explode: true style: form - in: query - name: min_vid__lt + name: id__lt schema: type: array items: @@ -75302,7 +74928,7 @@ paths: explode: true style: form - in: query - name: min_vid__lte + name: id__lte schema: type: array items: @@ -75311,7 +74937,7 @@ paths: explode: true style: form - in: query - name: min_vid__n + name: id__n schema: type: array items: @@ -75320,94 +74946,79 @@ paths: 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 + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__ie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__iew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: name__niew + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: name__nisw + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - name: offset required: false in: query @@ -75421,118 +75032,53 @@ paths: schema: type: string - in: query - name: q + name: prefix schema: type: string - description: Search - - in: query - name: rack - schema: - type: integer - - in: query - name: region - schema: - type: integer - - in: query - name: scope_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__empty - schema: - type: boolean + description: Prefix - in: query - name: scope_id__gt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: scope_id__gte + name: rir schema: type: array items: - type: integer - format: int32 + type: string + description: RIR (slug) explode: true style: form - in: query - name: scope_id__lt + name: rir__n schema: type: array items: - type: integer - format: int32 + type: string + description: RIR (slug) explode: true style: form - in: query - name: scope_id__lte + name: rir_id schema: type: array items: type: integer - format: int32 + description: RIR (ID) explode: true style: form - in: query - name: scope_id__n + name: rir_id__n schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_type - schema: - type: string - - in: query - name: scope_type__n - schema: - type: string - - in: query - name: site - schema: - type: integer - - in: query - name: site_group - schema: - type: integer - - in: query - name: sitegroup - schema: - type: integer - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string + description: RIR (ID) explode: true style: form - in: query - name: slug__ie + name: tag schema: type: array items: @@ -75540,7 +75086,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: tag__n schema: type: array items: @@ -75548,23 +75094,25 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nic + name: tenant_group schema: type: array items: @@ -75572,7 +75120,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant_group__n schema: type: array items: @@ -75580,7 +75128,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tenant_group_id schema: type: array items: @@ -75588,7 +75136,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group_id__n schema: type: array items: @@ -75596,19 +75144,23 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -75626,21 +75178,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANGroupList' + $ref: '#/components/schemas/PaginatedAggregateList' description: '' post: - operationId: ipam_vlan_groups_create - description: Post a list of VLAN group objects. + operationId: ipam_aggregates_create + description: Post a list of aggregate objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -75650,11 +75202,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_vlan_groups_bulk_update - description: Put a list of VLAN group objects. + operationId: ipam_aggregates_bulk_update + description: Put a list of aggregate objects. tags: - ipam requestBody: @@ -75663,12 +75215,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -75680,11 +75232,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_vlan_groups_bulk_partial_update - description: Patch a list of VLAN group objects. + operationId: ipam_aggregates_bulk_partial_update + description: Patch a list of aggregate objects. tags: - ipam requestBody: @@ -75693,12 +75245,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -75710,11 +75262,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_vlan_groups_bulk_destroy - description: Delete a list of VLAN group objects. + operationId: ipam_aggregates_bulk_destroy + description: Delete a list of aggregate objects. tags: - ipam requestBody: @@ -75723,12 +75275,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -75736,16 +75288,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/: + /api/ipam/aggregates/{id}/: get: - operationId: ipam_vlan_groups_retrieve - description: Get a VLAN group object. + operationId: ipam_aggregates_retrieve + description: Get a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75757,17 +75309,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_vlan_groups_update - description: Put a VLAN group object. + operationId: ipam_aggregates_update + description: Put a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75775,10 +75327,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -75788,17 +75340,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_vlan_groups_partial_update - description: Patch a VLAN group object. + operationId: ipam_aggregates_partial_update + description: Patch a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75806,10 +75358,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -75818,17 +75370,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_vlan_groups_destroy - description: Delete a VLAN group object. + operationId: ipam_aggregates_destroy + description: Delete a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75838,83 +75390,11 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/available-vlans/: - get: - operationId: ipam_vlan_groups_available_vlans_list - description: Get a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableVLAN' - description: '' - post: - operationId: ipam_vlan_groups_available_vlans_create - description: Post a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLAN' - description: '' - /api/ipam/vlans/: + /api/ipam/asn-ranges/: get: - operationId: ipam_vlans_list - description: Get a list of VLAN objects. + operationId: ipam_asn_ranges_list + description: Get a list of ASN range objects. parameters: - - in: query - name: available_at_site - schema: - type: string - - in: query - name: available_on_device - schema: - type: string - - in: query - name: available_on_virtualmachine - schema: - type: string - in: query name: created schema: @@ -76068,45 +75548,38 @@ paths: explode: true style: form - in: query - name: group + name: end schema: type: array items: - type: string - description: Group + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: end__empty schema: - type: array - items: - type: string - description: Group - explode: true - style: form + type: boolean - in: query - name: group_id + name: end__gt schema: type: array items: type: integer - nullable: true - description: Group (ID) + format: int32 explode: true style: form - in: query - name: group_id__n + name: end__gte schema: type: array items: type: integer - nullable: true - description: Group (ID) + format: int32 explode: true style: form - in: query - name: id + name: end__lt schema: type: array items: @@ -76115,11 +75588,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: end__lte schema: type: array items: @@ -76128,7 +75597,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: end__n schema: type: array items: @@ -76137,7 +75606,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: id schema: type: array items: @@ -76146,16 +75615,11 @@ paths: explode: true style: form - in: query - name: id__lte + name: id__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: id__n + name: id__gt schema: type: array items: @@ -76164,47 +75628,39 @@ paths: explode: true style: form - in: query - name: l2vpn + name: id__gte schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn__n + name: id__lt schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn_id + name: id__lte schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query - name: l2vpn_id__n + name: id__n schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query @@ -76383,171 +75839,181 @@ paths: type: string description: Search - in: query - name: region + name: rir schema: type: array items: - type: integer - description: Region (slug) + type: string + description: RIR (slug) explode: true style: form - in: query - name: region__n + name: rir__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: RIR (slug) explode: true style: form - in: query - name: region_id + name: rir_id schema: type: array items: type: integer - description: Region (ID) + description: RIR (ID) explode: true style: form - in: query - name: region_id__n + name: rir_id__n schema: type: array items: type: integer - description: Region (ID) + description: RIR (ID) explode: true style: form - in: query - name: role + name: slug schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: slug__ie schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: slug__iew schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: site + name: slug__isw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: slug__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: slug__nic schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: slug__nie schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: start schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: start__empty + schema: + type: boolean + - in: query + name: start__gt schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: start__gte schema: type: array items: type: integer - nullable: true - description: Site (ID) + format: int32 explode: true style: form - in: query - name: site_id__n + name: start__lt schema: type: array items: type: integer - nullable: true - description: Site (ID) + format: int32 explode: true style: form - in: query - name: status + name: start__lte schema: type: array items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN + type: integer + format: int32 explode: true style: form - in: query - name: status__n + name: start__n schema: type: array items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN + type: integer + format: int32 explode: true style: form - in: query @@ -76589,8 +76055,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -76598,8 +76063,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -76607,8 +76071,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -76616,8 +76079,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -76645,64 +76107,6 @@ paths: schema: type: string format: uuid - - in: query - name: vid - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__empty - schema: - type: boolean - - in: query - name: vid__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - ipam security: @@ -76713,21 +76117,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANList' + $ref: '#/components/schemas/PaginatedASNRangeList' description: '' post: - operationId: ipam_vlans_create - description: Post a list of VLAN objects. + operationId: ipam_asn_ranges_create + description: Post a list of ASN range objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76737,11 +76141,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_vlans_bulk_update - description: Put a list of VLAN objects. + operationId: ipam_asn_ranges_bulk_update + description: Put a list of ASN range objects. tags: - ipam requestBody: @@ -76750,12 +76154,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76767,11 +76171,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_vlans_bulk_partial_update - description: Patch a list of VLAN objects. + operationId: ipam_asn_ranges_bulk_partial_update + description: Patch a list of ASN range objects. tags: - ipam requestBody: @@ -76780,12 +76184,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76797,11 +76201,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_vlans_bulk_destroy - description: Delete a list of VLAN objects. + operationId: ipam_asn_ranges_bulk_destroy + description: Delete a list of ASN range objects. tags: - ipam requestBody: @@ -76810,12 +76214,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76823,16 +76227,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlans/{id}/: + /api/ipam/asn-ranges/{id}/: get: - operationId: ipam_vlans_retrieve - description: Get a VLAN object. + operationId: ipam_asn_ranges_retrieve + description: Get a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76844,17 +76248,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_vlans_update - description: Put a VLAN object. + operationId: ipam_asn_ranges_update + description: Put a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76862,10 +76266,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76875,17 +76279,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_vlans_partial_update - description: Patch a VLAN object. + operationId: ipam_asn_ranges_partial_update + description: Patch a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76893,10 +76297,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -76905,17 +76309,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_vlans_destroy - description: Delete a VLAN object. + operationId: ipam_asn_ranges_destroy + description: Delete a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76925,20 +76329,138 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/: + /api/ipam/asn-ranges/{id}/available-asns/: get: - operationId: ipam_vrfs_list - description: Get a list of VRF objects. + operationId: ipam_asn_ranges_available_asns_list + description: Get a ASN object. parameters: - - in: query - name: created + - in: path + name: id schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableASN' + description: '' + post: + operationId: ipam_asn_ranges_available_asns_create + description: Post a ASN object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASN' + description: '' + /api/ipam/asns/: + get: + operationId: ipam_asns_list + description: Get a list of ASN objects. + parameters: + - in: query + name: asn + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__empty + schema: + type: boolean + - in: query + name: asn__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__n + schema: + type: array + items: + type: integer + format: int32 + 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__empty schema: @@ -77082,46 +76604,6 @@ paths: type: string explode: true style: form - - in: query - name: enforce_unique - schema: - type: boolean - - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target_id - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - - in: query - name: export_target_id__n - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - in: query name: id schema: @@ -77180,42 +76662,6 @@ paths: format: int32 explode: true style: form - - in: query - name: import_target - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target__n - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target_id - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - - in: query - name: import_target_id__n - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - in: query name: last_updated schema: @@ -77290,189 +76736,129 @@ paths: 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 + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__nic + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__nie + name: provider__n schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__niew + name: provider_id schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: name__nisw + name: provider_id__n schema: type: array items: - type: string + type: integer + description: Provider (ID) 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: q schema: type: string description: Search - in: query - name: rd - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__empty - schema: - type: boolean - - in: query - name: rd__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__ie + name: rir schema: type: array items: type: string + description: RIR (slug) explode: true style: form - in: query - name: rd__iew + name: rir__n schema: type: array items: type: string + description: RIR (slug) explode: true style: form - in: query - name: rd__isw + name: rir_id schema: type: array items: - type: string + type: integer + description: RIR (ID) explode: true style: form - in: query - name: rd__n + name: rir_id__n schema: type: array items: - type: string + type: integer + description: RIR (ID) explode: true style: form - in: query - name: rd__nic + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: rd__nie + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: rd__niew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: rd__nisw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query @@ -77514,8 +76900,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -77523,8 +76908,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -77532,8 +76916,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -77541,8 +76924,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -77580,21 +76962,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVRFList' + $ref: '#/components/schemas/PaginatedASNList' description: '' post: - operationId: ipam_vrfs_create - description: Post a list of VRF objects. + operationId: ipam_asns_create + description: Post a list of ASN objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77604,11 +76986,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_vrfs_bulk_update - description: Put a list of VRF objects. + operationId: ipam_asns_bulk_update + description: Put a list of ASN objects. tags: - ipam requestBody: @@ -77617,12 +76999,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77634,11 +77016,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_vrfs_bulk_partial_update - description: Patch a list of VRF objects. + operationId: ipam_asns_bulk_partial_update + description: Patch a list of ASN objects. tags: - ipam requestBody: @@ -77647,12 +77029,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77664,11 +77046,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_vrfs_bulk_destroy - description: Delete a list of VRF objects. + operationId: ipam_asns_bulk_destroy + description: Delete a list of ASN objects. tags: - ipam requestBody: @@ -77677,12 +77059,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77690,16 +77072,16 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/{id}/: + /api/ipam/asns/{id}/: get: - operationId: ipam_vrfs_retrieve - description: Get a VRF object. + operationId: ipam_asns_retrieve + description: Get a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77711,17 +77093,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_vrfs_update - description: Put a VRF object. + operationId: ipam_asns_update + description: Put a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77729,10 +77111,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77742,17 +77124,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_vrfs_partial_update - description: Patch a VRF object. + operationId: ipam_asns_partial_update + description: Patch a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77760,10 +77142,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedASNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -77772,17 +77154,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_vrfs_destroy - description: Delete a VRF object. + operationId: ipam_asns_destroy + description: Delete a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77792,106 +77174,11 @@ paths: responses: '204': description: No response body - /api/schema/: - get: - operationId: schema_retrieve - description: 'OpenApi3 schema for this API. Format can be selected via content - negotiation. - - - - YAML: application/vnd.oai.openapi - - - JSON: application/vnd.oai.openapi+json' - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - yaml - - in: query - name: lang - schema: - type: string - enum: - - de - - en - - es - - fr - - ja - - pt - - ru - - tr - - uk - - zh - tags: - - schema - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi: - schema: - type: object - additionalProperties: {} - application/yaml: - schema: - type: object - additionalProperties: {} - application/vnd.oai.openapi+json: - schema: - type: object - additionalProperties: {} - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/status/: - get: - operationId: status_retrieve - description: A lightweight read-only endpoint for conveying NetBox's current - operational status. - tags: - - status - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/tenancy/contact-assignments/: + /api/ipam/fhrp-group-assignments/: get: - operationId: tenancy_contact_assignments_list - description: Get a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_list + description: Get a list of FHRP group assignment objects. parameters: - - in: query - name: contact_id - schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form - - in: query - name: contact_id__n - schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form - in: query name: created schema: @@ -77961,21 +77248,20 @@ paths: type: string format: uuid - in: query - name: group + name: device schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group__n + name: device_id schema: type: array items: type: integer - description: Contact group (slug) + format: int32 explode: true style: form - in: query @@ -77984,7 +77270,7 @@ paths: type: array items: type: integer - description: Contact group (ID) + description: Group (ID) explode: true style: form - in: query @@ -77993,7 +77279,7 @@ paths: type: array items: type: integer - description: Contact group (ID) + description: Group (ID) explode: true style: form - in: query @@ -78055,153 +77341,145 @@ paths: explode: true style: form - in: query - name: last_updated + name: interface_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: interface_id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: interface_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: interface_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: interface_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: interface_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: interface_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: interface_type schema: - type: integer + type: string - in: query - name: modified_by_request + name: interface_type__n schema: type: string - format: uuid - in: query - name: object_id + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__n + name: last_updated__n schema: - type: string - - in: query - name: object_type_id + 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: object_type_id__n + name: modified_by_request schema: - type: integer + type: string + format: uuid - name: offset required: false in: query @@ -78217,88 +77495,68 @@ paths: - in: query name: priority schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - - in: query - name: priority__n - schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: priority__empty schema: - type: string - description: Search + type: boolean - in: query - name: role + name: priority__gt schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: priority__gte schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: priority__lt schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: priority__lte schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: tag + name: priority__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: @@ -78306,12 +77564,16 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: virtual_machine_id schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -78320,21 +77582,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactAssignmentList' + $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' description: '' post: - operationId: tenancy_contact_assignments_create - description: Post a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_create + description: Post a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78344,25 +77606,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: tenancy_contact_assignments_bulk_update - description: Put a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_bulk_update + description: Put a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78374,25 +77636,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: tenancy_contact_assignments_bulk_partial_update - description: Patch a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_bulk_partial_update + description: Patch a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78404,25 +77666,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: tenancy_contact_assignments_bulk_destroy - description: Delete a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_bulk_destroy + description: Delete a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78430,19 +77692,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-assignments/{id}/: + /api/ipam/fhrp-group-assignments/{id}/: get: - operationId: tenancy_contact_assignments_retrieve - description: Get a contact assignment object. + operationId: ipam_fhrp_group_assignments_retrieve + description: Get a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -78451,28 +77713,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: tenancy_contact_assignments_update - description: Put a contact assignment object. + operationId: ipam_fhrp_group_assignments_update + description: Put a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78482,28 +77744,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: tenancy_contact_assignments_partial_update - description: Patch a contact assignment object. + operationId: ipam_fhrp_group_assignments_partial_update + description: Patch a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -78512,279 +77774,285 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: tenancy_contact_assignments_destroy - description: Delete a contact assignment object. + operationId: ipam_fhrp_group_assignments_destroy + description: Delete a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contact-groups/: + /api/ipam/fhrp-groups/: get: - operationId: tenancy_contact_groups_list - description: Get a list of contact group objects. + operationId: ipam_fhrp_groups_list + description: Get a list of FHRP group objects. parameters: - in: query - name: ancestor + name: auth_key schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: ancestor__n + name: auth_key__empty schema: - type: array - items: - type: integer - description: Contact group (slug) - explode: true - style: form + type: boolean - in: query - name: ancestor_id + name: auth_key__ic schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query - name: ancestor_id__n + name: auth_key__ie schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query - name: created + name: auth_key__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: auth_key__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: auth_key__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: auth_key__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: auth_key__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: auth_key__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: auth_key__nisw 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: description + name: auth_type schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__empty + name: auth_type__empty schema: type: boolean - in: query - name: description__ic + name: auth_type__ic schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__ie + name: auth_type__ie schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__iew + name: auth_type__iew schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__isw + name: auth_type__isw schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__n + name: auth_type__n schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__nic + name: auth_type__nic schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__nie + name: auth_type__nie schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__niew + name: auth_type__niew schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: description__nisw + name: auth_type__nisw schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type explode: true style: form - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: last_updated + name: created__n schema: type: array items: @@ -78793,72 +78061,64 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__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 + name: description__nic schema: type: array items: @@ -78866,11 +78126,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: description__nie schema: type: array items: @@ -78878,606 +78134,77 @@ paths: 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: parent + name: description__niew schema: type: array items: type: string - description: Parent contact group (slug) explode: true style: form - in: query - name: parent__n + name: description__nisw schema: type: array items: type: string - description: Parent contact group (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent contact group (ID) explode: true style: form - in: query - name: parent_id__n + name: group_id schema: type: array items: type: integer - nullable: true - description: Parent contact group (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedContactGroupList' - description: '' - post: - operationId: tenancy_contact_groups_create - description: Post a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - put: - operationId: tenancy_contact_groups_bulk_update - description: Put a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroup' - description: '' - patch: - operationId: tenancy_contact_groups_bulk_partial_update - description: Patch a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroup' - description: '' - delete: - operationId: tenancy_contact_groups_bulk_destroy - description: Delete a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/tenancy/contact-groups/{id}/: - get: - operationId: tenancy_contact_groups_retrieve - description: Get a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - put: - operationId: tenancy_contact_groups_update - description: Put a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - patch: - operationId: tenancy_contact_groups_partial_update - description: Patch a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - delete: - operationId: tenancy_contact_groups_destroy - description: Delete a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/tenancy/contact-roles/: - get: - operationId: tenancy_contact_roles_list - description: Get a list of contact role objects. - parameters: - - 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: description - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: description__empty + name: group_id__empty schema: type: boolean - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n + name: group_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: group_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: group_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: group_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -79709,88 +78436,106 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: protocol schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__empty + name: protocol__empty schema: type: boolean - in: query - name: slug__ic + name: protocol__ic schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__ie + name: protocol__ie schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__iew + name: protocol__iew schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__isw + name: protocol__isw schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__n + name: protocol__n schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__nic + name: protocol__nic schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__nie + name: protocol__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 40dc831c689b4b78 + explode: true + style: form + - in: query + name: protocol__niew schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__niew + name: protocol__nisw schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__nisw + name: q + schema: + type: string + description: Search + - in: query + name: related_ip schema: type: array items: @@ -79819,7 +78564,7 @@ paths: type: string format: uuid tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79828,21 +78573,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactRoleList' + $ref: '#/components/schemas/PaginatedFHRPGroupList' description: '' post: - operationId: tenancy_contact_roles_create - description: Post a list of contact role objects. + operationId: ipam_fhrp_groups_create + description: Post a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79852,25 +78597,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: tenancy_contact_roles_bulk_update - description: Put a list of contact role objects. + operationId: ipam_fhrp_groups_bulk_update + description: Put a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79882,25 +78627,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: tenancy_contact_roles_bulk_partial_update - description: Patch a list of contact role objects. + operationId: ipam_fhrp_groups_bulk_partial_update + description: Patch a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79912,25 +78657,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: tenancy_contact_roles_bulk_destroy - description: Delete a list of contact role objects. + operationId: ipam_fhrp_groups_bulk_destroy + description: Delete a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79938,19 +78683,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-roles/{id}/: + /api/ipam/fhrp-groups/{id}/: get: - operationId: tenancy_contact_roles_retrieve - description: Get a contact role object. + operationId: ipam_fhrp_groups_retrieve + description: Get a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79959,28 +78704,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: tenancy_contact_roles_update - description: Put a contact role object. + operationId: ipam_fhrp_groups_update + description: Put a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79990,28 +78735,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: tenancy_contact_roles_partial_update - description: Patch a contact role object. + operationId: ipam_fhrp_groups_partial_update + description: Patch a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -80020,30 +78765,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: tenancy_contact_roles_destroy - description: Delete a contact role object. + operationId: ipam_fhrp_groups_destroy + description: Delete a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contacts/: + /api/ipam/ip-addresses/: get: - operationId: tenancy_contacts_list - description: Get a list of contact objects. + operationId: ipam_ip_addresses_list + description: Get a list of IP address objects. parameters: - in: query name: address @@ -80054,81 +78799,81 @@ paths: explode: true style: form - in: query - name: address__empty + name: assigned schema: type: boolean + description: Is assigned - in: query - name: address__ic + name: assigned_object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__ie + name: assigned_object_id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: address__iew + name: assigned_object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__isw + name: assigned_object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__n + name: assigned_object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__nic + name: assigned_object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__nie + name: assigned_object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__niew + name: assigned_object_type schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: address__nisw + name: assigned_object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: integer + - in: query + name: assigned_to_interface + schema: + type: boolean + description: Is assigned to an interface - in: query name: created schema: @@ -80282,7 +79027,7 @@ paths: explode: true style: form - in: query - name: email + name: device schema: type: array items: @@ -80290,19 +79035,16 @@ paths: explode: true style: form - in: query - name: email__empty - schema: - type: boolean - - in: query - name: email__ic + name: device_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: email__ie + name: dns_name schema: type: array items: @@ -80310,7 +79052,11 @@ paths: explode: true style: form - in: query - name: email__iew + name: dns_name__empty + schema: + type: boolean + - in: query + name: dns_name__ic schema: type: array items: @@ -80318,7 +79064,7 @@ paths: explode: true style: form - in: query - name: email__isw + name: dns_name__ie schema: type: array items: @@ -80326,7 +79072,7 @@ paths: explode: true style: form - in: query - name: email__n + name: dns_name__iew schema: type: array items: @@ -80334,7 +79080,7 @@ paths: explode: true style: form - in: query - name: email__nic + name: dns_name__isw schema: type: array items: @@ -80342,7 +79088,7 @@ paths: explode: true style: form - in: query - name: email__nie + name: dns_name__n schema: type: array items: @@ -80350,7 +79096,7 @@ paths: explode: true style: form - in: query - name: email__niew + name: dns_name__nic schema: type: array items: @@ -80358,7 +79104,7 @@ paths: explode: true style: form - in: query - name: email__nisw + name: dns_name__nie schema: type: array items: @@ -80366,39 +79112,41 @@ paths: explode: true style: form - in: query - name: group + name: dns_name__niew schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group__n + name: dns_name__nisw schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group_id + name: family + schema: + type: number + - in: query + name: fhrpgroup_id schema: type: array items: type: integer - description: Contact group (ID) + description: FHRP group (ID) explode: true style: form - in: query - name: group_id__n + name: fhrpgroup_id__n schema: type: array items: type: integer - description: Contact group (ID) + description: FHRP group (ID) explode: true style: form - in: query @@ -80459,6 +79207,42 @@ paths: format: int32 explode: true style: form + - in: query + name: interface + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -80529,35 +79313,59 @@ paths: schema: type: integer - in: query - name: link + name: mask_length schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: link__empty + name: mask_length__gte schema: - type: boolean + type: number - in: query - name: link__ic + name: mask_length__lte + schema: + type: number + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: nat_inside_id schema: type: array items: - type: string + type: integer + description: NAT inside IP address (ID) explode: true style: form - in: query - name: link__ie + name: nat_inside_id__n schema: type: array items: - type: string + type: integer + description: NAT inside IP address (ID) 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: link__iew + name: parent schema: type: array items: @@ -80565,208 +79373,256 @@ paths: explode: true style: form - in: query - name: link__isw + name: present_in_vrf + schema: + type: string + - in: query + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: link__n + name: role__empty + schema: + type: boolean + - in: query + name: role__ic schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: link__nic + name: role__ie schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: link__nie + name: role__iew schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: link__niew + name: role__isw schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: link__nisw + name: role__n schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: role__nic schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: role__nie schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: name__ie + name: role__niew schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: name__iew + name: role__nisw schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + nullable: true + description: The functional role of this IP explode: true style: form - in: query - name: name__isw + name: service_id schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__n + name: service_id__n schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__nic + name: status schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__nie + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__niew + name: status__ie schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__nisw + name: status__iew schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP 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: phone + name: status__isw schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: phone__empty - schema: - type: boolean - - in: query - name: phone__ic + name: status__n schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: phone__ie + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: phone__iew + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: phone__isw + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: phone__n + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: phone__nic + name: tag schema: type: array items: @@ -80774,7 +79630,7 @@ paths: explode: true style: form - in: query - name: phone__nie + name: tag__n schema: type: array items: @@ -80782,28 +79638,33 @@ paths: explode: true style: form - in: query - name: phone__niew + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: phone__nisw + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: q + name: tenant_group schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: tenant_group__n schema: type: array items: @@ -80811,7 +79672,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id schema: type: array items: @@ -80819,7 +79680,7 @@ paths: explode: true style: form - in: query - name: title + name: tenant_group_id__n schema: type: array items: @@ -80827,19 +79688,32 @@ paths: explode: true style: form - in: query - name: title__empty + name: tenant_id schema: - type: boolean + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: title__ic + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: title__ie + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: @@ -80847,68 +79721,94 @@ paths: explode: true style: form - in: query - name: title__iew + name: virtual_machine_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: title__isw + name: vminterface schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: title__n + name: vminterface__n schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: title__nic + name: vminterface_id schema: type: array items: - type: string + type: integer + description: VM interface (ID) explode: true style: form - in: query - name: title__nie + name: vminterface_id__n schema: type: array items: - type: string + type: integer + description: VM interface (ID) explode: true style: form - in: query - name: title__niew + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: title__nisw + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: updated_by_request + name: vrf_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -80917,21 +79817,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactList' + $ref: '#/components/schemas/PaginatedIPAddressList' description: '' post: - operationId: tenancy_contacts_create - description: Post a list of contact objects. + operationId: ipam_ip_addresses_create + description: Post a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -80941,25 +79841,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: tenancy_contacts_bulk_update - description: Put a list of contact objects. + operationId: ipam_ip_addresses_bulk_update + description: Put a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -80971,25 +79871,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: tenancy_contacts_bulk_partial_update - description: Patch a list of contact objects. + operationId: ipam_ip_addresses_bulk_partial_update + description: Patch a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -81001,25 +79901,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: tenancy_contacts_bulk_destroy - description: Delete a list of contact objects. + operationId: ipam_ip_addresses_bulk_destroy + description: Delete a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -81027,19 +79927,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contacts/{id}/: + /api/ipam/ip-addresses/{id}/: get: - operationId: tenancy_contacts_retrieve - description: Get a contact object. + operationId: ipam_ip_addresses_retrieve + description: Get a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -81048,28 +79948,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: tenancy_contacts_update - description: Put a contact object. + operationId: ipam_ip_addresses_update + description: Put a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -81079,28 +79979,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: tenancy_contacts_partial_update - description: Patch a contact object. + operationId: ipam_ip_addresses_partial_update + description: Patch a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81109,67 +80009,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: tenancy_contacts_destroy - description: Delete a contact object. + operationId: ipam_ip_addresses_destroy + description: Delete a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/tenant-groups/: + /api/ipam/ip-ranges/: get: - operationId: tenancy_tenant_groups_list - description: Get a list of tenant group objects. + operationId: ipam_ip_ranges_list + description: Get a list of IP range objects. parameters: - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form - - in: query - name: ancestor_id__n + name: contains schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form + type: string + description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -81322,6 +80191,18 @@ paths: type: string explode: true style: form + - in: query + name: end_address + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number - in: query name: id schema: @@ -81449,13 +80330,29 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - 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: name + name: parent schema: type: array items: @@ -81463,174 +80360,220 @@ paths: explode: true style: form - in: query - name: name__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: name__ic + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__ie + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__iew + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__isw + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__n + name: size schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: size__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: size__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: size__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: size__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start_address schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: parent + name: status schema: type: array items: type: string - description: Parent tenant group (slug) + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: parent__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string - description: Parent tenant group (slug) + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: parent_id + name: status__ie schema: type: array items: - type: integer - nullable: true - description: Parent tenant group (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: parent_id__n + name: status__iew schema: type: array items: - type: integer - nullable: true - description: Parent tenant group (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: q + name: status__isw schema: - type: string - description: Search + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range + explode: true + style: form - in: query - name: slug + name: status__n schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__empty + name: status__nic schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range + explode: true + style: form - in: query - name: slug__ic + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__ie + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__iew + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__isw + name: tag schema: type: array items: @@ -81638,7 +80581,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tag__n schema: type: array items: @@ -81646,23 +80589,25 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group schema: type: array items: @@ -81670,7 +80615,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -81678,7 +80623,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -81686,20 +80631,82 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: type: string 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: updated_by_request schema: type: string format: uuid + - in: query + name: vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -81708,21 +80715,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantGroupList' + $ref: '#/components/schemas/PaginatedIPRangeList' description: '' post: - operationId: tenancy_tenant_groups_create - description: Post a list of tenant group objects. + operationId: ipam_ip_ranges_create + description: Post a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -81732,25 +80739,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: tenancy_tenant_groups_bulk_update - description: Put a list of tenant group objects. + operationId: ipam_ip_ranges_bulk_update + description: Put a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -81762,25 +80769,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: tenancy_tenant_groups_bulk_partial_update - description: Patch a list of tenant group objects. + operationId: ipam_ip_ranges_bulk_partial_update + description: Patch a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -81792,25 +80799,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: tenancy_tenant_groups_bulk_destroy - description: Delete a list of tenant group objects. + operationId: ipam_ip_ranges_bulk_destroy + description: Delete a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -81818,19 +80825,19 @@ paths: responses: '204': description: No response body - /api/tenancy/tenant-groups/{id}/: + /api/ipam/ip-ranges/{id}/: get: - operationId: tenancy_tenant_groups_retrieve - description: Get a tenant group object. + operationId: ipam_ip_ranges_retrieve + description: Get a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -81839,28 +80846,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: tenancy_tenant_groups_update - description: Put a tenant group object. + operationId: ipam_ip_ranges_update + description: Put a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -81870,28 +80877,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: tenancy_tenant_groups_partial_update - description: Patch a tenant group object. + operationId: ipam_ip_ranges_partial_update + description: Patch a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81900,85 +80907,159 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: tenancy_tenant_groups_destroy - description: Delete a tenant group object. + operationId: ipam_ip_ranges_destroy + description: Delete a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/tenants/: + /api/ipam/ip-ranges/{id}/available-ips/: get: - operationId: tenancy_tenants_list - description: Get a list of tenant objects. + operationId: ipam_ip_ranges_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_ip_ranges_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/: + get: + operationId: ipam_prefixes_list + description: Get a list of prefix objects. parameters: - in: query - name: contact + name: children schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: children__empty schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: children__gt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: children__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: children__lt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: children__lte schema: type: array items: type: integer - description: Contact Role + format: int32 + explode: true + style: form + - in: query + name: children__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form + - in: query + name: contains + schema: + type: string + description: Prefixes which contain this prefix or IP - in: query name: created schema: @@ -82048,43 +81129,70 @@ paths: type: string format: uuid - in: query - name: description + name: depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: depth__empty schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: description__ic + name: depth__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: depth__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: depth__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: depth__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: depth__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: description schema: type: array items: @@ -82092,7 +81200,11 @@ paths: explode: true style: form - in: query - name: description__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -82100,7 +81212,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: description__ie schema: type: array items: @@ -82108,7 +81220,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: description__iew schema: type: array items: @@ -82116,7 +81228,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: description__isw schema: type: array items: @@ -82124,7 +81236,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: description__n schema: type: array items: @@ -82132,41 +81244,41 @@ paths: explode: true style: form - in: query - name: group + name: description__nic schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query - name: group__n + name: description__nie schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query - name: group_id + name: description__niew schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: description__nisw schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form + - in: query + name: family + schema: + type: number - in: query name: id schema: @@ -82225,6 +81337,10 @@ paths: format: int32 explode: true style: form + - in: query + name: is_pool + schema: + type: boolean - in: query name: last_updated schema: @@ -82295,24 +81411,7 @@ paths: schema: type: integer - 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 + name: location schema: type: array items: @@ -82320,7 +81419,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: location__n schema: type: array items: @@ -82328,7 +81427,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: location_id schema: type: array items: @@ -82336,7 +81435,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: location_id__n schema: type: array items: @@ -82344,45 +81443,31 @@ paths: explode: true style: form - in: query - name: name__n + name: mark_utilized schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__nic + name: mask_length schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: mask_length__gte schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: name__niew + name: mask_length__lte schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: name__nisw + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - name: offset required: false in: query @@ -82396,12 +81481,7 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: prefix schema: type: array items: @@ -82409,11 +81489,20 @@ paths: explode: true style: form - in: query - name: slug__empty + name: present_in_vrf schema: - type: boolean + type: string - in: query - name: slug__ic + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -82421,7 +81510,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: region__n schema: type: array items: @@ -82429,7 +81518,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: region_id schema: type: array items: @@ -82437,7 +81526,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: region_id__n schema: type: array items: @@ -82445,349 +81534,129 @@ paths: explode: true style: form - in: query - name: slug__n + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: slug__nic + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: slug__nie + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: slug__niew + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: slug__nisw + name: scope_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag + name: scope_id__empty + schema: + type: boolean + - in: query + name: scope_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: scope_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedTenantList' - description: '' - post: - operationId: tenancy_tenants_create - description: Post a list of tenant objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TenantRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - put: - operationId: tenancy_tenants_bulk_update - description: Put a list of tenant objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TenantRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/TenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Tenant' - description: '' - patch: - operationId: tenancy_tenants_bulk_partial_update - description: Patch a list of tenant objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TenantRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/TenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Tenant' - description: '' - delete: - operationId: tenancy_tenants_bulk_destroy - description: Delete a list of tenant objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TenantRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/TenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/tenancy/tenants/{id}/: - get: - operationId: tenancy_tenants_retrieve - description: Get a tenant object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tenant. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - put: - operationId: tenancy_tenants_update - description: Put a tenant object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tenant. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TenantRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TenantRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - patch: - operationId: tenancy_tenants_partial_update - description: Patch a tenant object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tenant. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedTenantRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedTenantRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Tenant' - description: '' - delete: - operationId: tenancy_tenants_destroy - description: Delete a tenant object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tenant. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/users/config/: - get: - operationId: users_config_retrieve - description: An API endpoint via which a user can update his or her own UserConfig - data (but no one else's). - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/groups/: - get: - operationId: users_groups_list - description: Get a list of group objects. - parameters: - - in: query - name: description + name: scope_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: scope_id__lte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: description__ic + name: scope_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: scope_type + schema: + type: string + - in: query + name: scope_type__n + schema: + type: string + - in: query + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: description__iew + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: description__isw + name: site_group schema: type: array items: @@ -82795,7 +81664,7 @@ paths: explode: true style: form - in: query - name: description__n + name: site_group__n schema: type: array items: @@ -82803,7 +81672,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: site_group_id schema: type: array items: @@ -82811,7 +81680,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: site_group_id__n schema: type: array items: @@ -82819,123 +81688,129 @@ paths: explode: true style: form - in: query - name: description__niew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: description__nisw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: id + name: status schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: id__empty + name: status__empty schema: type: boolean - in: query - name: id__gt + name: status__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: id__gte + name: status__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: id__lt + name: status__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: id__lte + name: status__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: id__n + name: status__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: name + name: status__nic schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: status__nie schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: name__ie + name: status__niew schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: name__iew + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: name__isw + name: tag schema: type: array items: @@ -82943,7 +81818,7 @@ paths: explode: true style: form - in: query - name: name__n + name: tag__n schema: type: array items: @@ -82951,23 +81826,25 @@ paths: explode: true style: form - in: query - name: name__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__niew + name: tenant_group schema: type: array items: @@ -82975,68 +81852,163 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tenant_group__n 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. + - in: query + name: tenant_group_id schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: permission_id + name: tenant_id schema: type: array items: type: integer - description: Permission (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: permission_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Permission (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: q + name: updated_by_request schema: type: string - description: Search + format: uuid - in: query - name: user_id + name: vlan_id schema: type: array items: type: integer - description: User (ID) + nullable: true + description: VLAN (ID) explode: true style: form - in: query - name: user_id__n + name: vlan_id__n schema: type: array items: type: integer - description: User (ID) + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_vid + 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: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form + - in: query + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: within + schema: + type: string + description: Within prefix + - in: query + name: within_include + schema: + type: string + description: Within and including prefix tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83045,21 +82017,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedGroupList' + $ref: '#/components/schemas/PaginatedPrefixList' description: '' post: - operationId: users_groups_create - description: Post a list of group objects. + operationId: ipam_prefixes_create + description: Post a list of prefix objects. tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -83069,25 +82041,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: users_groups_bulk_update - description: Put a list of group objects. + operationId: ipam_prefixes_bulk_update + description: Put a list of prefix objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -83099,25 +82071,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: users_groups_bulk_partial_update - description: Patch a list of group objects. + operationId: ipam_prefixes_bulk_partial_update + description: Patch a list of prefix objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -83129,25 +82101,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: users_groups_bulk_destroy - description: Delete a list of group objects. + operationId: ipam_prefixes_bulk_destroy + description: Delete a list of prefix objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -83155,19 +82127,19 @@ paths: responses: '204': description: No response body - /api/users/groups/{id}/: + /api/ipam/prefixes/{id}/: get: - operationId: users_groups_retrieve - description: Get a group object. + operationId: ipam_prefixes_retrieve + description: Get a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this prefix. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83176,28 +82148,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: users_groups_update - description: Put a group object. + operationId: ipam_prefixes_update + description: Put a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this prefix. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -83207,28 +82179,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: users_groups_partial_update - description: Patch a group object. + operationId: ipam_prefixes_partial_update + description: Patch a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this prefix. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedGroupRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedGroupRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -83237,93 +82209,221 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: users_groups_destroy - description: Delete a group object. + operationId: ipam_prefixes_destroy + description: Delete a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this prefix. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/permissions/: + /api/ipam/prefixes/{id}/available-ips/: get: - operationId: users_permissions_list - description: Get a list of permission objects. + operationId: ipam_prefixes_available_ips_list + description: Get a IP address object. parameters: - - in: query - name: can_add + - in: path + name: id schema: - type: boolean - - in: query - name: can_change + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_prefixes_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id schema: - type: boolean - - in: query - name: can_delete + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/{id}/available-prefixes/: + get: + operationId: ipam_prefixes_available_prefixes_list + description: Get a prefix object. + parameters: + - in: path + name: id schema: - type: boolean + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailablePrefix' + description: '' + post: + operationId: ipam_prefixes_available_prefixes_create + description: Post a prefix object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Prefix' + description: '' + /api/ipam/rirs/: + get: + operationId: ipam_rirs_list + description: Get a list of RIR objects. + parameters: - in: query - name: can_view + name: created schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: description + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty + name: created__gt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: description__ic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -83331,7 +82431,11 @@ paths: explode: true style: form - in: query - name: description__nic + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -83339,7 +82443,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: description__ie schema: type: array items: @@ -83347,7 +82451,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: description__iew schema: type: array items: @@ -83355,7 +82459,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: description__isw schema: type: array items: @@ -83363,43 +82467,43 @@ paths: explode: true style: form - in: query - name: enabled + name: description__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: group + name: description__nic schema: type: array items: type: string - description: Group (name) explode: true style: form - in: query - name: group__n + name: description__nie schema: type: array items: type: string - description: Group (name) explode: true style: form - in: query - name: group_id + name: description__niew schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query - name: group_id__n + name: description__nisw schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query @@ -83460,12 +82564,84 @@ paths: format: int32 explode: true style: form + - in: query + name: is_private + 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: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -83550,133 +82726,130 @@ paths: type: string explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: string - - in: query - name: object_type__isw + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__n + name: q schema: type: string + description: Search - in: query - name: object_type__nic + name: slug schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nie + name: slug__empty schema: - type: string + type: boolean - in: query - name: object_type__niew + name: slug__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nisw + name: slug__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: slug__isw schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types + name: slug__n schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types__n + name: slug__nic schema: type: array items: - type: integer + 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: q + name: slug__nie schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: user + name: slug__niew schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: slug__nisw schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: tag schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: user_id__n + name: tag__n schema: type: array items: - type: integer - description: User + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83685,21 +82858,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectPermissionList' + $ref: '#/components/schemas/PaginatedRIRList' description: '' post: - operationId: users_permissions_create - description: Post a list of permission objects. + operationId: ipam_rirs_create + description: Post a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83709,25 +82882,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: users_permissions_bulk_update - description: Put a list of permission objects. + operationId: ipam_rirs_bulk_update + description: Put a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83739,25 +82912,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: users_permissions_bulk_partial_update - description: Patch a list of permission objects. + operationId: ipam_rirs_bulk_partial_update + description: Patch a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83769,25 +82942,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: users_permissions_bulk_destroy - description: Delete a list of permission objects. + operationId: ipam_rirs_bulk_destroy + description: Delete a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83795,19 +82968,19 @@ paths: responses: '204': description: No response body - /api/users/permissions/{id}/: + /api/ipam/rirs/{id}/: get: - operationId: users_permissions_retrieve - description: Get a permission object. + operationId: ipam_rirs_retrieve + description: Get a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83816,28 +82989,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: users_permissions_update - description: Put a permission object. + operationId: ipam_rirs_update + description: Put a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83847,28 +83020,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: users_permissions_partial_update - description: Patch a permission object. + operationId: ipam_rirs_partial_update + description: Patch a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedRIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedRIRRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -83877,46 +83050,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: users_permissions_destroy - description: Delete a permission object. + operationId: ipam_rirs_destroy + description: Delete a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/: + /api/ipam/roles/: get: - operationId: users_tokens_list - description: Get a list of token objects. + operationId: ipam_roles_list + description: Get a list of role objects. parameters: - in: query name: created schema: - type: string - format: date-time + 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: string - format: date-time + 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: date-time + format: uuid - in: query name: description schema: @@ -84001,21 +83227,6 @@ paths: type: string explode: true style: form - - in: query - name: expires - schema: - type: string - format: date-time - - in: query - name: expires__gte - schema: - type: string - format: date-time - - in: query - name: expires__lte - schema: - type: string - format: date-time - in: query name: id schema: @@ -84075,67 +83286,81 @@ paths: explode: true style: form - in: query - name: key + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__empty - schema: - type: boolean - - in: query - name: key__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__nic + 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: key__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -84143,7 +83368,11 @@ paths: explode: true style: form - in: query - name: key__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -84151,7 +83380,7 @@ paths: explode: true style: form - in: query - name: key__nisw + name: name__ie schema: type: array items: @@ -84159,69 +83388,61 @@ paths: explode: true style: form - in: query - name: last_used + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__empty + name: name__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: last_used__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__n + name: name__nisw 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 - name: offset required: false in: query @@ -84240,98 +83461,221 @@ paths: type: string description: Search - in: query - name: user + name: slug schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: slug__ie schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: user_id__n + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: type: integer - description: User + format: int32 explode: true style: form - in: query - name: write_enabled + name: weight__empty schema: type: boolean - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedTokenList' - description: '' - post: - operationId: users_tokens_create - description: Post a list of token objects. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TokenRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Token' - description: '' + - in: query + name: weight__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRoleList' + description: '' + post: + operationId: ipam_roles_create + description: Post a list of role objects. + tags: + - ipam + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/RoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Role' + description: '' put: - operationId: users_tokens_bulk_update - description: Put a list of token objects. + operationId: ipam_roles_bulk_update + description: Put a list of role objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -84343,25 +83687,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: users_tokens_bulk_partial_update - description: Patch a list of token objects. + operationId: ipam_roles_bulk_partial_update + description: Patch a list of role objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -84373,25 +83717,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: users_tokens_bulk_destroy - description: Delete a list of token objects. + operationId: ipam_roles_bulk_destroy + description: Delete a list of role objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -84399,19 +83743,19 @@ paths: responses: '204': description: No response body - /api/users/tokens/{id}/: + /api/ipam/roles/{id}/: get: - operationId: users_tokens_retrieve - description: Get a token object. + operationId: ipam_roles_retrieve + description: Get a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -84420,28 +83764,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Role' description: '' put: - operationId: users_tokens_update - description: Put a token object. + operationId: ipam_roles_update + description: Put a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -84451,28 +83795,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: users_tokens_partial_update - description: Patch a token object. + operationId: ipam_roles_partial_update + description: Patch a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -84481,66 +83825,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: users_tokens_destroy - description: Delete a token object. + operationId: ipam_roles_destroy + description: Delete a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/provision/: - post: - operationId: users_tokens_provision_create - description: Non-authenticated REST API endpoint via which a user may create - a Token. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvision' - description: '' - '401': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/users/: + /api/ipam/route-targets/: get: - operationId: users_users_list - description: Get a list of user objects. + operationId: ipam_route_targets_list + description: Get a list of route target objects. parameters: - in: query - name: date_joined + name: created schema: type: array items: @@ -84549,11 +83860,7 @@ paths: explode: true style: form - in: query - name: date_joined__empty - schema: - type: boolean - - in: query - name: date_joined__gt + name: created__empty schema: type: array items: @@ -84562,7 +83869,7 @@ paths: explode: true style: form - in: query - name: date_joined__gte + name: created__gt schema: type: array items: @@ -84571,7 +83878,7 @@ paths: explode: true style: form - in: query - name: date_joined__lt + name: created__gte schema: type: array items: @@ -84580,7 +83887,7 @@ paths: explode: true style: form - in: query - name: date_joined__lte + name: created__lt schema: type: array items: @@ -84589,7 +83896,7 @@ paths: explode: true style: form - in: query - name: date_joined__n + name: created__lte schema: type: array items: @@ -84598,19 +83905,21 @@ paths: explode: true style: form - in: query - name: email + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: email__ic + name: description schema: type: array items: @@ -84618,7 +83927,11 @@ paths: explode: true style: form - in: query - name: email__ie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -84626,7 +83939,7 @@ paths: explode: true style: form - in: query - name: email__iew + name: description__ie schema: type: array items: @@ -84634,7 +83947,7 @@ paths: explode: true style: form - in: query - name: email__isw + name: description__iew schema: type: array items: @@ -84642,7 +83955,7 @@ paths: explode: true style: form - in: query - name: email__n + name: description__isw schema: type: array items: @@ -84650,7 +83963,7 @@ paths: explode: true style: form - in: query - name: email__nic + name: description__n schema: type: array items: @@ -84658,7 +83971,7 @@ paths: explode: true style: form - in: query - name: email__nie + name: description__nic schema: type: array items: @@ -84666,7 +83979,7 @@ paths: explode: true style: form - in: query - name: email__niew + name: description__nie schema: type: array items: @@ -84674,7 +83987,7 @@ paths: explode: true style: form - in: query - name: email__nisw + name: description__niew schema: type: array items: @@ -84682,7 +83995,7 @@ paths: explode: true style: form - in: query - name: first_name + name: description__nisw schema: type: array items: @@ -84690,119 +84003,140 @@ paths: explode: true style: form - in: query - name: first_name__empty - schema: - type: boolean - - in: query - name: first_name__ic + name: exporting_l2vpn schema: type: array items: - type: string + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) explode: true style: form - in: query - name: first_name__ie + name: exporting_l2vpn__n schema: type: array items: - type: string + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) explode: true style: form - in: query - name: first_name__iew + name: exporting_l2vpn_id schema: type: array items: - type: string + type: integer + description: Exporting L2VPN explode: true style: form - in: query - name: first_name__isw + name: exporting_l2vpn_id__n schema: type: array items: - type: string + type: integer + description: Exporting L2VPN explode: true style: form - in: query - name: first_name__n + name: exporting_vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: first_name__nic + name: exporting_vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: first_name__nie + name: exporting_vrf_id schema: type: array items: - type: string + type: integer + description: Exporting VRF explode: true style: form - in: query - name: first_name__niew + name: exporting_vrf_id__n schema: type: array items: - type: string + type: integer + description: Exporting VRF explode: true style: form - in: query - name: first_name__nisw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: group + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - description: Group (name) + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: id__gte schema: type: array items: - type: string - description: Group (name) + type: integer + format: int32 explode: true style: form - in: query - name: group_id + name: id__lt schema: type: array items: type: integer - description: Group + format: int32 explode: true style: form - in: query - name: group_id__n + name: id__lte schema: type: array items: type: integer - description: Group + format: int32 explode: true style: form - in: query - name: id + name: id__n schema: type: array items: @@ -84811,68 +84145,91 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: importing_l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) explode: true style: form - in: query - name: id__gte + name: importing_l2vpn__n schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) explode: true style: form - in: query - name: id__lt + name: importing_l2vpn_id schema: type: array items: type: integer - format: int32 + description: Importing L2VPN explode: true style: form - in: query - name: id__lte + name: importing_l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: Importing L2VPN explode: true style: form - in: query - name: id__n + name: importing_vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: is_active + name: importing_vrf__n schema: - type: boolean + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) + explode: true + style: form - in: query - name: is_staff + name: importing_vrf_id schema: - type: boolean + type: array + items: + type: integer + description: Importing VRF + explode: true + style: form - in: query - name: is_superuser + name: importing_vrf_id__n schema: - type: boolean + type: array + items: + type: integer + description: Importing VRF + explode: true + style: form - in: query - name: last_login + name: last_updated schema: type: array items: @@ -84881,11 +84238,16 @@ paths: explode: true style: form - in: query - name: last_login__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: last_login__gt + name: last_updated__gt schema: type: array items: @@ -84894,7 +84256,7 @@ paths: explode: true style: form - in: query - name: last_login__gte + name: last_updated__gte schema: type: array items: @@ -84903,7 +84265,7 @@ paths: explode: true style: form - in: query - name: last_login__lt + name: last_updated__lt schema: type: array items: @@ -84912,7 +84274,7 @@ paths: explode: true style: form - in: query - name: last_login__lte + name: last_updated__lte schema: type: array items: @@ -84921,7 +84283,7 @@ paths: explode: true style: form - in: query - name: last_login__n + name: last_updated__n schema: type: array items: @@ -84929,8 +84291,19 @@ paths: 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: last_name + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -84938,11 +84311,11 @@ paths: explode: true style: form - in: query - name: last_name__empty + name: name__empty schema: type: boolean - in: query - name: last_name__ic + name: name__ic schema: type: array items: @@ -84950,7 +84323,7 @@ paths: explode: true style: form - in: query - name: last_name__ie + name: name__ie schema: type: array items: @@ -84958,7 +84331,7 @@ paths: explode: true style: form - in: query - name: last_name__iew + name: name__iew schema: type: array items: @@ -84966,7 +84339,7 @@ paths: explode: true style: form - in: query - name: last_name__isw + name: name__isw schema: type: array items: @@ -84974,7 +84347,7 @@ paths: explode: true style: form - in: query - name: last_name__n + name: name__n schema: type: array items: @@ -84982,7 +84355,7 @@ paths: explode: true style: form - in: query - name: last_name__nic + name: name__nic schema: type: array items: @@ -84990,7 +84363,7 @@ paths: explode: true style: form - in: query - name: last_name__nie + name: name__nie schema: type: array items: @@ -84998,7 +84371,7 @@ paths: explode: true style: form - in: query - name: last_name__niew + name: name__niew schema: type: array items: @@ -85006,19 +84379,13 @@ paths: explode: true style: form - in: query - name: last_name__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - name: offset required: false in: query @@ -85031,31 +84398,13 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: permission_id - schema: - type: array - items: - type: integer - description: Permission (ID) - explode: true - style: form - - in: query - name: permission_id__n - schema: - type: array - items: - type: integer - description: Permission (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: username + name: tag schema: type: array items: @@ -85063,11 +84412,7 @@ paths: explode: true style: form - in: query - name: username__empty - schema: - type: boolean - - in: query - name: username__ic + name: tag__n schema: type: array items: @@ -85075,23 +84420,25 @@ paths: explode: true style: form - in: query - name: username__ie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: username__iew + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: username__isw + name: tenant_group schema: type: array items: @@ -85099,7 +84446,7 @@ paths: explode: true style: form - in: query - name: username__n + name: tenant_group__n schema: type: array items: @@ -85107,7 +84454,7 @@ paths: explode: true style: form - in: query - name: username__nic + name: tenant_group_id schema: type: array items: @@ -85115,7 +84462,7 @@ paths: explode: true style: form - in: query - name: username__nie + name: tenant_group_id__n schema: type: array items: @@ -85123,23 +84470,32 @@ paths: explode: true style: form - in: query - name: username__niew + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: username__nisw + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -85148,21 +84504,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedUserList' + $ref: '#/components/schemas/PaginatedRouteTargetList' description: '' post: - operationId: users_users_create - description: Post a list of user objects. + operationId: ipam_route_targets_create + description: Post a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -85172,25 +84528,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: users_users_bulk_update - description: Put a list of user objects. + operationId: ipam_route_targets_bulk_update + description: Put a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -85202,25 +84558,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: users_users_bulk_partial_update - description: Patch a list of user objects. + operationId: ipam_route_targets_bulk_partial_update + description: Patch a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -85232,25 +84588,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: users_users_bulk_destroy - description: Delete a list of user objects. + operationId: ipam_route_targets_bulk_destroy + description: Delete a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -85258,19 +84614,19 @@ paths: responses: '204': description: No response body - /api/users/users/{id}/: + /api/ipam/route-targets/{id}/: get: - operationId: users_users_retrieve - description: Get a user object. + operationId: ipam_route_targets_retrieve + description: Get a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -85279,28 +84635,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: users_users_update - description: Put a user object. + operationId: ipam_route_targets_update + description: Put a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -85310,28 +84666,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: users_users_partial_update - description: Patch a user object. + operationId: ipam_route_targets_partial_update + description: Patch a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -85340,85 +84696,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: users_users_destroy - description: Delete a user object. + operationId: ipam_route_targets_destroy + description: Delete a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-groups/: + /api/ipam/service-templates/: get: - operationId: virtualization_cluster_groups_list - description: Get a list of cluster group objects. + operationId: ipam_service_templates_list + description: Get a list of service template objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -85800,94 +85102,28 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie + name: port schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: slug__niew + name: protocol schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: slug__nisw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -85910,7 +85146,7 @@ paths: type: string format: uuid tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -85919,21 +85155,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterGroupList' + $ref: '#/components/schemas/PaginatedServiceTemplateList' description: '' post: - operationId: virtualization_cluster_groups_create - description: Post a list of cluster group objects. + operationId: ipam_service_templates_create + description: Post a list of service template objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -85943,25 +85179,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: virtualization_cluster_groups_bulk_update - description: Put a list of cluster group objects. + operationId: ipam_service_templates_bulk_update + description: Put a list of service template objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -85973,25 +85209,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: virtualization_cluster_groups_bulk_partial_update - description: Patch a list of cluster group objects. + operationId: ipam_service_templates_bulk_partial_update + description: Patch a list of service template objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -86003,25 +85239,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: virtualization_cluster_groups_bulk_destroy - description: Delete a list of cluster group objects. + operationId: ipam_service_templates_bulk_destroy + description: Delete a list of service template objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -86029,19 +85265,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-groups/{id}/: + /api/ipam/service-templates/{id}/: get: - operationId: virtualization_cluster_groups_retrieve - description: Get a cluster group object. + operationId: ipam_service_templates_retrieve + description: Get a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service template. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -86050,28 +85286,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: virtualization_cluster_groups_update - description: Put a cluster group object. + operationId: ipam_service_templates_update + description: Put a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service template. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -86081,28 +85317,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: virtualization_cluster_groups_partial_update - description: Patch a cluster group object. + operationId: ipam_service_templates_partial_update + description: Patch a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service template. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86111,30 +85347,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: virtualization_cluster_groups_destroy - description: Delete a cluster group object. + operationId: ipam_service_templates_destroy + description: Delete a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service template. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-types/: + /api/ipam/services/: get: - operationId: virtualization_cluster_types_list - description: Get a list of cluster type objects. + operationId: ipam_services_list + description: Get a list of service objects. parameters: - in: query name: created @@ -86288,6 +85524,46 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form - in: query name: id schema: @@ -86346,6 +85622,42 @@ paths: format: int32 explode: true style: form + - in: query + name: ip_address + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ip_address__n + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ip_address_id + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form + - in: query + name: ip_address_id__n + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -86517,56 +85829,30 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie + name: port schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: slug__iew + name: protocol schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: slug__isw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__n + name: tag schema: type: array items: @@ -86574,7 +85860,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tag__n schema: type: array items: @@ -86582,52 +85868,50 @@ paths: explode: true style: form - in: query - name: slug__nie + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: slug__niew + name: virtual_machine schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: slug__nisw + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: tag + name: virtual_machine_id schema: type: array items: - type: string + type: integer + nullable: true + description: Virtual machine (ID) explode: true style: form - in: query - name: tag__n + name: virtual_machine_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Virtual machine (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -86636,21 +85920,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterTypeList' + $ref: '#/components/schemas/PaginatedServiceList' description: '' post: - operationId: virtualization_cluster_types_create - description: Post a list of cluster type objects. + operationId: ipam_services_create + description: Post a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -86660,25 +85944,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/Service' description: '' put: - operationId: virtualization_cluster_types_bulk_update - description: Put a list of cluster type objects. + operationId: ipam_services_bulk_update + description: Put a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -86690,25 +85974,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: virtualization_cluster_types_bulk_partial_update - description: Patch a list of cluster type objects. + operationId: ipam_services_bulk_partial_update + description: Patch a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -86720,25 +86004,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: virtualization_cluster_types_bulk_destroy - description: Delete a list of cluster type objects. + operationId: ipam_services_bulk_destroy + description: Delete a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -86746,19 +86030,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-types/{id}/: + /api/ipam/services/{id}/: get: - operationId: virtualization_cluster_types_retrieve - description: Get a cluster type object. + operationId: ipam_services_retrieve + description: Get a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -86767,28 +86051,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/Service' description: '' put: - operationId: virtualization_cluster_types_update - description: Put a cluster type object. + operationId: ipam_services_update + description: Put a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -86798,28 +86082,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: virtualization_cluster_types_partial_update - description: Patch a cluster type object. + operationId: ipam_services_partial_update + description: Patch a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86828,85 +86112,43 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: virtualization_cluster_types_destroy - description: Delete a cluster type object. + operationId: ipam_services_destroy + description: Delete a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/clusters/: + /api/ipam/vlan-groups/: get: - operationId: virtualization_clusters_list - description: Get a list of cluster objects. + operationId: ipam_vlan_groups_list + description: Get a list of VLAN group objects. parameters: - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n + name: cluster schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: integer - in: query - name: contact_role + name: cluster_group schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: integer - in: query - name: contact_role__n + name: contains_vid schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: number - in: query name: created schema: @@ -87059,44 +86301,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Parent group (ID) - explode: true - style: form - in: query name: id schema: @@ -87224,6 +86428,10 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: integer - in: query name: modified_by_request schema: @@ -87331,143 +86539,89 @@ paths: type: string description: Search - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n + name: rack schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form + type: integer - in: query - name: region_id + name: region schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: integer - in: query - name: region_id__n + name: scope_id schema: type: array items: type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) + format: int32 explode: true style: form - in: query - name: site__n + name: scope_id__empty schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form + type: boolean - in: query - name: site_group + name: scope_id__gt schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group__n + name: scope_id__gte schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group_id + name: scope_id__lt schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: scope_id__lte schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: scope_id__n schema: type: array items: type: integer - nullable: true - description: Site (ID) + format: int32 explode: true style: form - in: query - name: site_id__n + name: scope_type schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form + type: string - in: query - name: status + name: scope_type__n schema: - type: array - items: - type: string - x-spec-enum-id: 79d20a734d0eecbb - explode: true - style: form + type: string - in: query - name: status__n + name: site schema: - type: array - items: - type: string - x-spec-enum-id: 79d20a734d0eecbb - explode: true - style: form + type: integer - in: query - name: tag + name: site_group schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: tag__n + name: slug schema: type: array items: @@ -87475,113 +86629,95 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__empty schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form + type: boolean - in: query - name: tenant__n + name: slug__ic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__ie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__iew schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__isw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: slug__nic schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: slug__nie schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: type + name: slug__niew schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: type__n + name: slug__nisw schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: type_id + name: tag schema: type: array items: - type: integer - description: Cluster type (ID) + type: string explode: true style: form - in: query - name: type_id__n + name: tag__n schema: type: array items: - type: integer - description: Cluster type (ID) + type: string explode: true style: form - in: query @@ -87590,7 +86726,7 @@ paths: type: string format: uuid tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -87599,21 +86735,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterList' + $ref: '#/components/schemas/PaginatedVLANGroupList' description: '' post: - operationId: virtualization_clusters_create - description: Post a list of cluster objects. + operationId: ipam_vlan_groups_create + description: Post a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -87623,25 +86759,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: virtualization_clusters_bulk_update - description: Put a list of cluster objects. + operationId: ipam_vlan_groups_bulk_update + description: Put a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -87653,25 +86789,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: virtualization_clusters_bulk_partial_update - description: Patch a list of cluster objects. + operationId: ipam_vlan_groups_bulk_partial_update + description: Patch a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -87683,25 +86819,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: virtualization_clusters_bulk_destroy - description: Delete a list of cluster objects. + operationId: ipam_vlan_groups_bulk_destroy + description: Delete a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -87709,19 +86845,19 @@ paths: responses: '204': description: No response body - /api/virtualization/clusters/{id}/: + /api/ipam/vlan-groups/{id}/: get: - operationId: virtualization_clusters_retrieve - description: Get a cluster object. + operationId: ipam_vlan_groups_retrieve + description: Get a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -87730,28 +86866,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: virtualization_clusters_update - description: Put a cluster object. + operationId: ipam_vlan_groups_update + description: Put a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -87761,28 +86897,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: virtualization_clusters_partial_update - description: Patch a cluster object. + operationId: ipam_vlan_groups_partial_update + description: Patch a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -87791,85 +86927,91 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: virtualization_clusters_destroy - description: Delete a cluster object. + operationId: ipam_vlan_groups_destroy + description: Delete a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/interfaces/: + /api/ipam/vlan-groups/{id}/available-vlans/: get: - operationId: virtualization_interfaces_list - description: Get a list of interface objects. + operationId: ipam_vlan_groups_available_vlans_list + description: Get a VLAN object. parameters: - - in: query - name: bridge_id - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: bridge_id__n - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: cluster - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster__n - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_id + - in: path + name: id schema: - type: array - items: - type: integer - description: Cluster (ID) - explode: true - style: form - - in: query - name: cluster_id__n + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableVLAN' + description: '' + post: + operationId: ipam_vlan_groups_available_vlans_create + description: Post a VLAN object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Cluster (ID) - explode: true - style: form + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLAN' + description: '' + /api/ipam/vlan-translation-policies/: + get: + operationId: ipam_vlan_translation_policies_list + description: Get a list of VLAN translation policy objects. + parameters: - in: query name: created schema: @@ -88022,10 +87164,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -88084,50 +87222,6 @@ paths: format: int32 explode: true style: form - - in: query - name: l2vpn - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn__n - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn_id - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - - in: query - name: l2vpn_id__n - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -88197,183 +87291,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mac_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: mtu - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__empty - schema: - type: boolean - - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: name schema: @@ -88470,24 +87392,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: parent_id - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - in: query name: q schema: @@ -88514,94 +87418,8 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_machine - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine__n - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine_id - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: virtual_machine_id__n - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -88610,21 +87428,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVMInterfaceList' + $ref: '#/components/schemas/PaginatedVLANTranslationPolicyList' description: '' post: - operationId: virtualization_interfaces_create - description: Post a list of interface objects. + operationId: ipam_vlan_translation_policies_create + description: Post a list of VLAN translation policy objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' required: true security: - cookieAuth: [] @@ -88634,25 +87452,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VLANTranslationPolicy' description: '' put: - operationId: virtualization_interfaces_bulk_update - description: Put a list of interface objects. + operationId: ipam_vlan_translation_policies_bulk_update + description: Put a list of VLAN translation policy objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' required: true security: - cookieAuth: [] @@ -88664,25 +87482,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VLANTranslationPolicy' description: '' patch: - operationId: virtualization_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: ipam_vlan_translation_policies_bulk_partial_update + description: Patch a list of VLAN translation policy objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' required: true security: - cookieAuth: [] @@ -88694,25 +87512,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VLANTranslationPolicy' description: '' delete: - operationId: virtualization_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: ipam_vlan_translation_policies_bulk_destroy + description: Delete a list of VLAN translation policy objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' required: true security: - cookieAuth: [] @@ -88720,19 +87538,19 @@ paths: responses: '204': description: No response body - /api/virtualization/interfaces/{id}/: + /api/ipam/vlan-translation-policies/{id}/: get: - operationId: virtualization_interfaces_retrieve - description: Get a interface object. + operationId: ipam_vlan_translation_policies_retrieve + description: Get a VLAN translation policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VLAN translation policy. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -88741,28 +87559,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VLANTranslationPolicy' description: '' put: - operationId: virtualization_interfaces_update - description: Put a interface object. + operationId: ipam_vlan_translation_policies_update + description: Put a VLAN translation policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VLAN translation policy. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VLANTranslationPolicyRequest' required: true security: - cookieAuth: [] @@ -88772,28 +87590,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VLANTranslationPolicy' description: '' patch: - operationId: virtualization_interfaces_partial_update - description: Patch a interface object. + operationId: ipam_vlan_translation_policies_partial_update + description: Patch a VLAN translation policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VLAN translation policy. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedVLANTranslationPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedVLANTranslationPolicyRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -88802,30 +87620,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VLANTranslationPolicy' description: '' delete: - operationId: virtualization_interfaces_destroy - description: Delete a interface object. + operationId: ipam_vlan_translation_policies_destroy + description: Delete a VLAN translation policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VLAN translation policy. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-disks/: + /api/ipam/vlan-translation-rules/: get: - operationId: virtualization_virtual_disks_list - description: Get a list of virtual disk objects. + operationId: ipam_vlan_translation_rules_list + description: Get a list of VLAN translation rule objects. parameters: - in: query name: created @@ -89107,113 +87925,123 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: local_vid schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: local_vid__empty schema: type: boolean - in: query - name: name__ic + name: local_vid__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: local_vid__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: local_vid__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: local_vid__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: local_vid__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: modified_by_request + schema: + type: string + format: uuid + - 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: policy schema: type: array items: type: string + description: VLAN Translation Policy (name) explode: true style: form - in: query - name: name__nie + name: policy__n schema: type: array items: type: string + description: VLAN Translation Policy (name) explode: true style: form - in: query - name: name__niew + name: policy_id schema: type: array items: - type: string + type: integer + description: VLAN Translation Policy (ID) explode: true style: form - in: query - name: name__nisw + name: policy_id__n schema: type: array items: - type: string + type: integer + description: VLAN Translation Policy (ID) 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: q schema: type: string description: Search - in: query - name: size + name: remote_vid schema: type: array items: @@ -89222,11 +88050,11 @@ paths: explode: true style: form - in: query - name: size__empty + name: remote_vid__empty schema: type: boolean - in: query - name: size__gt + name: remote_vid__gt schema: type: array items: @@ -89235,7 +88063,7 @@ paths: explode: true style: form - in: query - name: size__gte + name: remote_vid__gte schema: type: array items: @@ -89244,7 +88072,7 @@ paths: explode: true style: form - in: query - name: size__lt + name: remote_vid__lt schema: type: array items: @@ -89253,7 +88081,7 @@ paths: explode: true style: form - in: query - name: size__lte + name: remote_vid__lte schema: type: array items: @@ -89262,7 +88090,7 @@ paths: explode: true style: form - in: query - name: size__n + name: remote_vid__n schema: type: array items: @@ -89291,44 +88119,8 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_machine - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine__n - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine_id - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: virtual_machine_id__n - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -89337,21 +88129,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDiskList' + $ref: '#/components/schemas/PaginatedVLANTranslationRuleList' description: '' post: - operationId: virtualization_virtual_disks_create - description: Post a list of virtual disk objects. + operationId: ipam_vlan_translation_rules_create + description: Post a list of VLAN translation rule objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' required: true security: - cookieAuth: [] @@ -89361,25 +88153,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/VLANTranslationRule' description: '' put: - operationId: virtualization_virtual_disks_bulk_update - description: Put a list of virtual disk objects. + operationId: ipam_vlan_translation_rules_bulk_update + description: Put a list of VLAN translation rule objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' required: true security: - cookieAuth: [] @@ -89391,25 +88183,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/VLANTranslationRule' description: '' patch: - operationId: virtualization_virtual_disks_bulk_partial_update - description: Patch a list of virtual disk objects. + operationId: ipam_vlan_translation_rules_bulk_partial_update + description: Patch a list of VLAN translation rule objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' required: true security: - cookieAuth: [] @@ -89421,25 +88213,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/VLANTranslationRule' description: '' delete: - operationId: virtualization_virtual_disks_bulk_destroy - description: Delete a list of virtual disk objects. + operationId: ipam_vlan_translation_rules_bulk_destroy + description: Delete a list of VLAN translation rule objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' required: true security: - cookieAuth: [] @@ -89447,19 +88239,19 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-disks/{id}/: + /api/ipam/vlan-translation-rules/{id}/: get: - operationId: virtualization_virtual_disks_retrieve - description: Get a virtual disk object. + operationId: ipam_vlan_translation_rules_retrieve + description: Get a VLAN translation rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this VLAN translation rule. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -89468,28 +88260,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/VLANTranslationRule' description: '' put: - operationId: virtualization_virtual_disks_update - description: Put a virtual disk object. + operationId: ipam_vlan_translation_rules_update + description: Put a VLAN translation rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this VLAN translation rule. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/VLANTranslationRuleRequest' required: true security: - cookieAuth: [] @@ -89499,28 +88291,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/VLANTranslationRule' description: '' patch: - operationId: virtualization_virtual_disks_partial_update - description: Patch a virtual disk object. + operationId: ipam_vlan_translation_rules_partial_update + description: Patch a VLAN translation rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this VLAN translation rule. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedVLANTranslationRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedVLANTranslationRuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -89529,215 +88321,43 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/VLANTranslationRule' description: '' delete: - operationId: virtualization_virtual_disks_destroy - description: Delete a virtual disk object. + operationId: ipam_vlan_translation_rules_destroy + description: Delete a VLAN translation rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this VLAN translation rule. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-machines/: + /api/ipam/vlans/: get: - operationId: virtualization_virtual_machines_list - description: Get a list of virtual machine objects. + operationId: ipam_vlans_list + description: Get a list of VLAN objects. parameters: - in: query - name: cluster - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster__n - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_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 (ID) - explode: true - style: form - - in: query - name: cluster_group_id__n - schema: - type: array - items: - type: integer - description: Cluster group (ID) - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: integer - nullable: true - description: Cluster (ID) - explode: true - style: form - - in: query - name: cluster_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Cluster (ID) - 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 (ID) - explode: true - style: form - - in: query - name: cluster_type_id__n - schema: - type: array - items: - type: integer - 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: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n + name: available_at_site schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: string - in: query - name: contact_role + name: available_on_device schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query - name: contact_role__n + name: available_on_virtualmachine schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query name: created schema: @@ -89891,47 +88511,45 @@ paths: explode: true style: form - in: query - name: device + name: group schema: type: array items: type: string - nullable: true - description: Device + description: Group explode: true style: form - in: query - name: device__n + name: group__n schema: type: array items: type: string - nullable: true - description: Device + description: Group explode: true style: form - in: query - name: device_id + name: group_id schema: type: array items: type: integer nullable: true - description: Device (ID) + description: Group (ID) explode: true style: form - in: query - name: device_id__n + name: group_id__n schema: type: array items: type: integer nullable: true - description: Device (ID) + description: Group (ID) explode: true style: form - in: query - name: disk + name: id schema: type: array items: @@ -89940,11 +88558,11 @@ paths: explode: true style: form - in: query - name: disk__empty + name: id__empty schema: type: boolean - in: query - name: disk__gt + name: id__gt schema: type: array items: @@ -89953,7 +88571,7 @@ paths: explode: true style: form - in: query - name: disk__gte + name: id__gte schema: type: array items: @@ -89962,7 +88580,7 @@ paths: explode: true style: form - in: query - name: disk__lt + name: id__lt schema: type: array items: @@ -89971,7 +88589,7 @@ paths: explode: true style: form - in: query - name: disk__lte + name: id__lte schema: type: array items: @@ -89980,7 +88598,7 @@ paths: explode: true style: form - in: query - name: disk__n + name: id__n schema: type: array items: @@ -89989,295 +88607,375 @@ paths: explode: true style: form - in: query - name: has_primary_ip + name: interface_id schema: - type: boolean - description: Has a primary IP + type: string + description: Assigned interface - in: query - name: id + name: l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: id__empty + name: l2vpn__n schema: - type: boolean + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form - in: query - name: id__gt + name: l2vpn_id schema: type: array items: type: integer - format: int32 + description: L2VPN (ID) explode: true style: form - in: query - name: id__gte + name: l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: L2VPN (ID) explode: true style: form - in: query - name: id__lt + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__empty + name: last_updated__lt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: interface_count__gt + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__gte + name: last_updated__n schema: type: array items: - type: integer - format: int32 + 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: interface_count__lt + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__lte + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__n + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + 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: local_context_data + name: q schema: - type: boolean - description: Has local config context data + type: string + description: Search - in: query - name: mac_address + name: qinq_role schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__ic + name: qinq_role__empty + schema: + type: boolean + - in: query + name: qinq_role__ic schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__ie + name: qinq_role__ie schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__iew + name: qinq_role__iew schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__isw + name: qinq_role__isw schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__n + name: qinq_role__n schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__nic + name: qinq_role__nic schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__nie + name: qinq_role__nie schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__niew + name: qinq_role__niew schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: mac_address__nisw + name: qinq_role__nisw schema: type: array items: type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) explode: true style: form - in: query - name: memory + name: qinq_svlan_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Q-in-Q SVLAN (ID) explode: true style: form - in: query - name: memory__empty + name: qinq_svlan_id__n schema: - type: boolean + type: array + items: + type: integer + nullable: true + description: Q-in-Q SVLAN (ID) + explode: true + style: form - in: query - name: memory__gt + name: qinq_svlan_vid schema: type: array items: @@ -90286,7 +88984,7 @@ paths: explode: true style: form - in: query - name: memory__gte + name: qinq_svlan_vid__empty schema: type: array items: @@ -90295,7 +88993,7 @@ paths: explode: true style: form - in: query - name: memory__lt + name: qinq_svlan_vid__gt schema: type: array items: @@ -90304,7 +89002,7 @@ paths: explode: true style: form - in: query - name: memory__lte + name: qinq_svlan_vid__gte schema: type: array items: @@ -90313,7 +89011,7 @@ paths: explode: true style: form - in: query - name: memory__n + name: qinq_svlan_vid__lt schema: type: array items: @@ -90322,24 +89020,25 @@ paths: explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: qinq_svlan_vid__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: qinq_svlan_vid__n schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name__ic + name: region schema: type: array items: @@ -90347,7 +89046,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: region__n schema: type: array items: @@ -90355,7 +89054,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: region_id schema: type: array items: @@ -90363,7 +89062,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: region_id__n schema: type: array items: @@ -90371,300 +89070,215 @@ paths: explode: true style: form - in: query - name: name__n + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nic + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nie + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__niew + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__nisw + name: site schema: type: array items: type: string + description: Site (slug) 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: site__n schema: type: array items: type: string - description: Platform (slug) + description: Site (slug) explode: true style: form - in: query - name: platform__n + name: site_group schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform_id + name: site_group__n schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Platform (ID) - explode: true - style: form - - in: query - name: primary_ip4_id - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip4_id__n - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id__n - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role + name: site_group_id schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: site_group_id__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: site_id schema: type: array items: type: integer nullable: true - description: Role (ID) + description: Site (ID) explode: true style: form - in: query - name: role_id__n + name: site_id__n schema: type: array items: type: integer nullable: true - description: Role (ID) + description: Site (ID) explode: true style: form - in: query - name: site + name: status schema: type: array items: type: string - description: Site (slug) + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: site__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string - description: Site (slug) + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: site_group + name: status__ie schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: site_group__n + name: status__iew schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: site_group_id + name: status__isw schema: type: array items: - type: integer - description: Site group (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: site_group_id__n + name: status__n schema: type: array items: - type: integer - description: Site group (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: site_id + name: status__nic schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: site_id__n + name: status__nie schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: status + name: status__niew schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: status__n + name: status__nisw schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query @@ -90706,8 +89320,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -90715,8 +89328,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -90724,8 +89336,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -90733,8 +89344,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -90763,65 +89373,7 @@ paths: type: string format: uuid - in: query - name: vcpus - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__empty - schema: - type: boolean - - in: query - name: vcpus__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: virtual_disk_count + name: vid schema: type: array items: @@ -90830,11 +89382,11 @@ paths: explode: true style: form - in: query - name: virtual_disk_count__empty + name: vid__empty schema: type: boolean - in: query - name: virtual_disk_count__gt + name: vid__gt schema: type: array items: @@ -90843,7 +89395,7 @@ paths: explode: true style: form - in: query - name: virtual_disk_count__gte + name: vid__gte schema: type: array items: @@ -90852,7 +89404,7 @@ paths: explode: true style: form - in: query - name: virtual_disk_count__lt + name: vid__lt schema: type: array items: @@ -90861,7 +89413,7 @@ paths: explode: true style: form - in: query - name: virtual_disk_count__lte + name: vid__lte schema: type: array items: @@ -90870,7 +89422,7 @@ paths: explode: true style: form - in: query - name: virtual_disk_count__n + name: vid__n schema: type: array items: @@ -90878,8 +89430,13 @@ paths: format: int32 explode: true style: form + - in: query + name: vminterface_id + schema: + type: string + description: Assigned VM interface tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -90888,21 +89445,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' + $ref: '#/components/schemas/PaginatedVLANList' description: '' post: - operationId: virtualization_virtual_machines_create - description: Post a list of virtual machine objects. + operationId: ipam_vlans_create + description: Post a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -90912,25 +89469,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: virtualization_virtual_machines_bulk_update - description: Put a list of virtual machine objects. + operationId: ipam_vlans_bulk_update + description: Put a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -90942,25 +89499,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: virtualization_virtual_machines_bulk_partial_update - description: Patch a list of virtual machine objects. + operationId: ipam_vlans_bulk_partial_update + description: Patch a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -90972,25 +89529,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: virtualization_virtual_machines_bulk_destroy - description: Delete a list of virtual machine objects. + operationId: ipam_vlans_bulk_destroy + description: Delete a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -90998,19 +89555,19 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/: + /api/ipam/vlans/{id}/: get: - operationId: virtualization_virtual_machines_retrieve - description: Get a virtual machine object. + operationId: ipam_vlans_retrieve + description: Get a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -91019,28 +89576,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: virtualization_virtual_machines_update - description: Put a virtual machine object. + operationId: ipam_vlans_update + description: Put a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -91050,28 +89607,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: virtualization_virtual_machines_partial_update - description: Patch a virtual machine object. + operationId: ipam_vlans_partial_update + description: Patch a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91080,72 +89637,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: virtualization_virtual_machines_destroy - description: Delete a virtual machine object. + operationId: ipam_vlans_destroy + description: Delete a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/render-config/: - post: - operationId: virtualization_virtual_machines_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. - 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 virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - /api/vpn/ike-policies/: + /api/ipam/vrfs/: get: - operationId: vpn_ike_policies_list - description: Get a list of IKE policy objects. + operationId: ipam_vrfs_list + description: Get a list of VRF objects. parameters: - in: query name: created @@ -91299,6 +89814,46 @@ paths: type: string explode: true style: form + - in: query + name: enforce_unique + schema: + type: boolean + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form - in: query name: id schema: @@ -91358,35 +89913,39 @@ paths: explode: true style: form - in: query - name: ike_proposal + name: import_target schema: type: array items: type: string + description: Import target (name) explode: true style: form - in: query - name: ike_proposal__n + name: import_target__n schema: type: array items: type: string + description: Import target (name) explode: true style: form - in: query - name: ike_proposal_id + name: import_target_id schema: type: array items: type: integer + description: Import target explode: true style: form - in: query - name: ike_proposal_id__n + name: import_target_id__n schema: type: array items: type: integer + description: Import target explode: true style: form - in: query @@ -91458,24 +90017,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mode - schema: - type: array - items: - type: string - x-spec-enum-id: 64c1be7bdb2548ca - explode: true - style: form - - in: query - name: mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 64c1be7bdb2548ca - explode: true - style: form - in: query name: modified_by_request schema: @@ -91578,47 +90119,80 @@ paths: schema: type: string - in: query - name: preshared_key + name: q schema: type: string + description: Search - in: query - name: preshared_key__ic + name: rd schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__ie + name: rd__empty schema: - type: string + type: boolean - in: query - name: preshared_key__iew + name: rd__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__isw + name: rd__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__n + name: rd__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__nic + name: rd__isw schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__nie + name: rd__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__niew + name: rd__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__nisw + name: rd__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: proposal + name: rd__niew schema: type: array items: @@ -91626,7 +90200,7 @@ paths: explode: true style: form - in: query - name: proposal__n + name: rd__nisw schema: type: array items: @@ -91634,36 +90208,41 @@ paths: explode: true style: form - in: query - name: proposal_id + name: tag schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: proposal_id__n + name: tag__n schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: q + name: tenant schema: - type: string - description: Search + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: tag + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag__n + name: tenant_group schema: type: array items: @@ -91671,30 +90250,56 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: tenant_group__n schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: version + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - x-spec-enum-id: 00872b77916a1fde + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: version__n + name: tenant_id__n schema: type: array items: type: integer - x-spec-enum-id: 00872b77916a1fde + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - vpn + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -91703,21 +90308,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEPolicyList' + $ref: '#/components/schemas/PaginatedVRFList' description: '' post: - operationId: vpn_ike_policies_create - description: Post a list of IKE policy objects. + operationId: ipam_vrfs_create + description: Post a list of VRF objects. tags: - - vpn + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -91727,25 +90332,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: vpn_ike_policies_bulk_update - description: Put a list of IKE policy objects. + operationId: ipam_vrfs_bulk_update + description: Put a list of VRF objects. tags: - - vpn + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -91757,25 +90362,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: vpn_ike_policies_bulk_partial_update - description: Patch a list of IKE policy objects. + operationId: ipam_vrfs_bulk_partial_update + description: Patch a list of VRF objects. tags: - - vpn + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -91787,25 +90392,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: vpn_ike_policies_bulk_destroy - description: Delete a list of IKE policy objects. + operationId: ipam_vrfs_bulk_destroy + description: Delete a list of VRF objects. tags: - - vpn + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -91813,19 +90418,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-policies/{id}/: + /api/ipam/vrfs/{id}/: get: - operationId: vpn_ike_policies_retrieve - description: Get a IKE policy object. + operationId: ipam_vrfs_retrieve + description: Get a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this VRF. required: true tags: - - vpn + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -91834,28 +90439,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: vpn_ike_policies_update - description: Put a IKE policy object. + operationId: ipam_vrfs_update + description: Put a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this VRF. required: true tags: - - vpn + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -91865,28 +90470,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: vpn_ike_policies_partial_update - description: Patch a IKE policy object. + operationId: ipam_vrfs_partial_update + description: Patch a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this VRF. required: true tags: - - vpn + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedVRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedVRFRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91895,65 +90500,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: vpn_ike_policies_destroy - description: Delete a IKE policy object. + operationId: ipam_vrfs_destroy + description: Delete a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this VRF. required: true tags: - - vpn + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ike-proposals/: + /api/schema/: get: - operationId: vpn_ike_proposals_list - description: Get a list of IKE proposal objects. + operationId: schema_retrieve + description: 'OpenApi3 schema for this API. Format can be selected via content + negotiation. + + + - YAML: application/vnd.oai.openapi + + - JSON: application/vnd.oai.openapi+json' parameters: - in: query - name: authentication_algorithm + name: format schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - explode: true - style: form + type: string + enum: + - json + - yaml - in: query - name: authentication_algorithm__n + name: lang schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - explode: true - style: form + type: string + enum: + - cs + - da + - de + - en + - es + - fr + - it + - ja + - nl + - pl + - pt + - ru + - tr + - uk + - zh + tags: + - schema + security: + - cookieAuth: [] + - tokenAuth: [] + - {} + responses: + '200': + content: + application/vnd.oai.openapi: + schema: + type: object + additionalProperties: {} + application/yaml: + schema: + type: object + additionalProperties: {} + application/vnd.oai.openapi+json: + schema: + type: object + additionalProperties: {} + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/status/: + get: + operationId: status_retrieve + description: A lightweight read-only endpoint for conveying NetBox's current + operational status. + tags: + - status + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/tenancy/contact-assignments/: + get: + operationId: tenancy_contact_assignments_list + description: Get a list of contact assignment objects. + parameters: - in: query - name: authentication_method + name: contact_id schema: type: array items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 + type: integer + description: Contact (ID) explode: true style: form - in: query - name: authentication_method__n + name: contact_id__n schema: type: array items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 + type: integer + description: Contact (ID) explode: true style: form - in: query @@ -92025,75 +90694,7 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew + name: group schema: type: array items: @@ -92101,7 +90702,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: group__n schema: type: array items: @@ -92109,41 +90710,19 @@ paths: explode: true style: form - in: query - name: encryption_algorithm + name: group_id schema: type: array items: type: string - x-spec-enum-id: b022535cfdee79fe explode: true style: form - in: query - name: encryption_algorithm__n + name: group_id__n schema: type: array items: type: string - x-spec-enum-id: b022535cfdee79fe - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID explode: true style: form - in: query @@ -92204,42 +90783,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ike_policy - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy__n - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy_id - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ike_policy_id__n - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -92315,89 +90858,79 @@ paths: type: string format: uuid - in: query - name: name + name: object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: object_id__empty schema: type: boolean - in: query - name: name__ic + name: object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__nie + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__niew + name: object_type_id schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: name__nisw + name: object_type_id__n schema: - type: array - items: - type: string - explode: true - style: form + type: integer - name: offset required: false in: query @@ -92411,66 +90944,62 @@ paths: schema: type: string - in: query - name: q + name: priority schema: type: string - description: Search - - in: query - name: sa_lifetime - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: sa_lifetime__empty - schema: - type: boolean + x-spec-enum-id: ef3a31644cec7524 + nullable: true + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: sa_lifetime__gt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: sa_lifetime__gte + name: role schema: type: array items: - type: integer - format: int32 + type: string + description: Contact role (slug) explode: true style: form - in: query - name: sa_lifetime__lt + name: role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Contact role (slug) explode: true style: form - in: query - name: sa_lifetime__lte + name: role_id schema: type: array items: type: integer - format: int32 + description: Contact role (ID) explode: true style: form - in: query - name: sa_lifetime__n + name: role_id__n schema: type: array items: type: integer - format: int32 + description: Contact role (ID) explode: true style: form - in: query @@ -92495,7 +91024,7 @@ paths: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -92504,21 +91033,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEProposalList' + $ref: '#/components/schemas/PaginatedContactAssignmentList' description: '' post: - operationId: vpn_ike_proposals_create - description: Post a list of IKE proposal objects. + operationId: tenancy_contact_assignments_create + description: Post a list of contact assignment objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -92528,25 +91057,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: vpn_ike_proposals_bulk_update - description: Put a list of IKE proposal objects. + operationId: tenancy_contact_assignments_bulk_update + description: Put a list of contact assignment objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -92558,25 +91087,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: vpn_ike_proposals_bulk_partial_update - description: Patch a list of IKE proposal objects. + operationId: tenancy_contact_assignments_bulk_partial_update + description: Patch a list of contact assignment objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -92588,25 +91117,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: vpn_ike_proposals_bulk_destroy - description: Delete a list of IKE proposal objects. + operationId: tenancy_contact_assignments_bulk_destroy + description: Delete a list of contact assignment objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -92614,19 +91143,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-proposals/{id}/: + /api/tenancy/contact-assignments/{id}/: get: - operationId: vpn_ike_proposals_retrieve - description: Get a IKE proposal object. + operationId: tenancy_contact_assignments_retrieve + description: Get a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact assignment. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -92635,28 +91164,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: vpn_ike_proposals_update - description: Put a IKE proposal object. + operationId: tenancy_contact_assignments_update + description: Put a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact assignment. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -92666,28 +91195,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: vpn_ike_proposals_partial_update - description: Patch a IKE proposal object. + operationId: tenancy_contact_assignments_partial_update + description: Patch a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact assignment. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -92696,31 +91225,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: vpn_ike_proposals_destroy - description: Delete a IKE proposal object. + operationId: tenancy_contact_assignments_destroy + description: Delete a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact assignment. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-policies/: + /api/tenancy/contact-groups/: get: - operationId: vpn_ipsec_policies_list - description: Get a list of IPSec policy objects. + operationId: tenancy_contact_groups_list + description: Get a list of contact group objects. parameters: + - in: query + name: ancestor + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -92931,38 +91492,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ipsec_proposal - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ipsec_proposal__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ipsec_proposal_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: ipsec_proposal_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: last_updated schema: @@ -93134,29 +91663,62 @@ paths: schema: type: string - in: query - name: pfs_group + name: parent + schema: + type: array + items: + type: string + description: Parent contact group (slug) + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + description: Parent contact group (slug) + explode: true + style: form + - in: query + name: parent_id schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + description: Parent contact group (ID) explode: true style: form - in: query - name: pfs_group__n + name: parent_id__n schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + description: Parent contact group (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string explode: true style: form - in: query - name: proposal + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -93164,7 +91726,7 @@ paths: explode: true style: form - in: query - name: proposal__n + name: slug__ie schema: type: array items: @@ -93172,26 +91734,61 @@ paths: explode: true style: form - in: query - name: proposal_id + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: proposal_id__n + name: slug__isw schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: q + name: slug__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -93214,7 +91811,7 @@ paths: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -93223,21 +91820,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecPolicyList' + $ref: '#/components/schemas/PaginatedContactGroupList' description: '' post: - operationId: vpn_ipsec_policies_create - description: Post a list of IPSec policy objects. + operationId: tenancy_contact_groups_create + description: Post a list of contact group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -93247,25 +91844,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: vpn_ipsec_policies_bulk_update - description: Put a list of IPSec policy objects. + operationId: tenancy_contact_groups_bulk_update + description: Put a list of contact group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -93277,25 +91874,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: vpn_ipsec_policies_bulk_partial_update - description: Patch a list of IPSec policy objects. + operationId: tenancy_contact_groups_bulk_partial_update + description: Patch a list of contact group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -93307,25 +91904,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: vpn_ipsec_policies_bulk_destroy - description: Delete a list of IPSec policy objects. + operationId: tenancy_contact_groups_bulk_destroy + description: Delete a list of contact group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -93333,19 +91930,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-policies/{id}/: + /api/tenancy/contact-groups/{id}/: get: - operationId: vpn_ipsec_policies_retrieve - description: Get a IPSec policy object. + operationId: tenancy_contact_groups_retrieve + description: Get a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this contact group. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -93354,28 +91951,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: vpn_ipsec_policies_update - description: Put a IPSec policy object. + operationId: tenancy_contact_groups_update + description: Put a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this contact group. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -93385,28 +91982,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: vpn_ipsec_policies_partial_update - description: Patch a IPSec policy object. + operationId: tenancy_contact_groups_partial_update + description: Patch a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this contact group. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -93415,30 +92012,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: vpn_ipsec_policies_destroy - description: Delete a IPSec policy object. + operationId: tenancy_contact_groups_destroy + description: Delete a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this contact group. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-profiles/: + /api/tenancy/contact-roles/: get: - operationId: vpn_ipsec_profiles_list - description: Get a list of IPSec profile objects. + operationId: tenancy_contact_roles_list + description: Get a list of contact role objects. parameters: - in: query name: created @@ -93650,78 +92247,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ike_policy - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy__n - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy_id - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ike_policy_id__n - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ipsec_policy - schema: - type: array - items: - type: string - description: IPSec policy (name) - explode: true - style: form - - in: query - name: ipsec_policy__n - schema: - type: array - items: - type: string - description: IPSec policy (name) - explode: true - style: form - - in: query - name: ipsec_policy_id - schema: - type: array - items: - type: integer - description: IPSec policy (ID) - explode: true - style: form - - in: query - name: ipsec_policy_id__n - schema: - type: array - items: - type: integer - description: IPSec policy (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -93791,24 +92316,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mode - schema: - type: array - items: - type: string - x-spec-enum-id: 1136c2cdfee84436 - explode: true - style: form - - in: query - name: mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 1136c2cdfee84436 - explode: true - style: form - in: query name: modified_by_request schema: @@ -93915,6 +92422,90 @@ paths: schema: type: string description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -93937,7 +92528,7 @@ paths: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -93946,21 +92537,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProfileList' + $ref: '#/components/schemas/PaginatedContactRoleList' description: '' post: - operationId: vpn_ipsec_profiles_create - description: Post a list of IPSec profile objects. + operationId: tenancy_contact_roles_create + description: Post a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -93970,25 +92561,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: vpn_ipsec_profiles_bulk_update - description: Put a list of IPSec profile objects. + operationId: tenancy_contact_roles_bulk_update + description: Put a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -94000,25 +92591,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: vpn_ipsec_profiles_bulk_partial_update - description: Patch a list of IPSec profile objects. + operationId: tenancy_contact_roles_bulk_partial_update + description: Patch a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -94030,25 +92621,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: vpn_ipsec_profiles_bulk_destroy - description: Delete a list of IPSec profile objects. + operationId: tenancy_contact_roles_bulk_destroy + description: Delete a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -94056,19 +92647,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-profiles/{id}/: + /api/tenancy/contact-roles/{id}/: get: - operationId: vpn_ipsec_profiles_retrieve - description: Get a IPSec profile object. + operationId: tenancy_contact_roles_retrieve + description: Get a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -94077,28 +92668,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: vpn_ipsec_profiles_update - description: Put a IPSec profile object. + operationId: tenancy_contact_roles_update + description: Put a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -94108,28 +92699,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: vpn_ipsec_profiles_partial_update - description: Patch a IPSec profile object. + operationId: tenancy_contact_roles_partial_update + description: Patch a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94138,49 +92729,113 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: vpn_ipsec_profiles_destroy - description: Delete a IPSec profile object. + operationId: tenancy_contact_roles_destroy + description: Delete a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-proposals/: + /api/tenancy/contacts/: get: - operationId: vpn_ipsec_proposals_list - description: Get a list of IPSec proposal objects. + operationId: tenancy_contacts_list + description: Get a list of contact objects. parameters: - in: query - name: authentication_algorithm + name: address schema: type: array items: type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication explode: true style: form - in: query - name: authentication_algorithm__n + name: address__empty + schema: + type: boolean + - in: query + name: address__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nisw schema: type: array items: type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication explode: true style: form - in: query @@ -94336,67 +92991,123 @@ paths: explode: true style: form - in: query - name: encryption_algorithm + name: email schema: type: array items: type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption explode: true style: form - in: query - name: encryption_algorithm__n + name: email__empty + schema: + type: boolean + - in: query + name: email__ic schema: type: array items: type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption explode: true style: form - in: query - name: id + name: email__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: email__iew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: email__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: email__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: email__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: email__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: @@ -94405,7 +93116,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -94414,39 +93129,39 @@ paths: explode: true style: form - in: query - name: ipsec_policy + name: id__gte schema: type: array items: - type: string - description: IPSec policy (name) + type: integer + format: int32 explode: true style: form - in: query - name: ipsec_policy__n + name: id__lt schema: type: array items: - type: string - description: IPSec policy (name) + type: integer + format: int32 explode: true style: form - in: query - name: ipsec_policy_id + name: id__lte schema: type: array items: type: integer - description: IPSec policy (ID) + format: int32 explode: true style: form - in: query - name: ipsec_policy_id__n + name: id__n schema: type: array items: type: integer - description: IPSec policy (ID) + format: int32 explode: true style: form - in: query @@ -94518,6 +93233,90 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: link + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__empty + schema: + type: boolean + - in: query + name: link__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: modified_by_request schema: @@ -94620,128 +93419,164 @@ paths: schema: type: string - in: query - name: q + name: phone schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: sa_lifetime_data + name: phone__empty + schema: + type: boolean + - in: query + name: phone__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_data__empty + name: phone__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: sa_lifetime_data__gt + name: phone__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_data__gte + name: phone__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_data__lt + name: phone__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_data__lte + name: phone__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_data__n + name: phone__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds + name: phone__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__empty + name: phone__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__empty schema: type: boolean - in: query - name: sa_lifetime_seconds__gt + name: title__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__gte + name: title__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__lt + name: title__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__lte + name: title__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__n + name: title__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: title__nic schema: type: array items: @@ -94749,7 +93584,23 @@ paths: explode: true style: form - in: query - name: tag__n + name: title__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__nisw schema: type: array items: @@ -94762,7 +93613,7 @@ paths: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -94771,21 +93622,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProposalList' + $ref: '#/components/schemas/PaginatedContactList' description: '' post: - operationId: vpn_ipsec_proposals_create - description: Post a list of IPSec proposal objects. + operationId: tenancy_contacts_create + description: Post a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -94795,25 +93646,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: vpn_ipsec_proposals_bulk_update - description: Put a list of IPSec proposal objects. + operationId: tenancy_contacts_bulk_update + description: Put a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -94825,25 +93676,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: vpn_ipsec_proposals_bulk_partial_update - description: Patch a list of IPSec proposal objects. + operationId: tenancy_contacts_bulk_partial_update + description: Patch a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -94855,25 +93706,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: vpn_ipsec_proposals_bulk_destroy - description: Delete a list of IPSec proposal objects. + operationId: tenancy_contacts_bulk_destroy + description: Delete a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -94881,19 +93732,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-proposals/{id}/: + /api/tenancy/contacts/{id}/: get: - operationId: vpn_ipsec_proposals_retrieve - description: Get a IPSec proposal object. + operationId: tenancy_contacts_retrieve + description: Get a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -94902,28 +93753,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: vpn_ipsec_proposals_update - description: Put a IPSec proposal object. + operationId: tenancy_contacts_update + description: Put a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -94933,28 +93784,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: vpn_ipsec_proposals_partial_update - description: Patch a IPSec proposal object. + operationId: tenancy_contacts_partial_update + description: Patch a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedContactRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94963,99 +93814,110 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: vpn_ipsec_proposals_destroy - description: Delete a IPSec proposal object. + operationId: tenancy_contacts_destroy + description: Delete a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/l2vpn-terminations/: + /api/tenancy/tenant-groups/: get: - operationId: vpn_l2vpn_terminations_list - description: Get a list of L2VPN termination objects. + operationId: tenancy_tenant_groups_list + description: Get a list of tenant group objects. parameters: - in: query - name: assigned_object_id + name: ancestor schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__empty + name: ancestor__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: assigned_object_id__gt + name: ancestor_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__gte + name: ancestor_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__lt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type + name: created__gte schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: assigned_object_type__n + name: created__lt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created + name: created__lte schema: type: array items: @@ -95064,7 +93926,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: created__n schema: type: array items: @@ -95073,91 +93935,92 @@ paths: explode: true style: form - in: query - name: created__gt + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: description__n schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: device + name: description__nic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: description__nie schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: description__niew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__nisw schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query @@ -95219,151 +94082,163 @@ paths: explode: true style: form - in: query - name: interface + name: last_updated schema: type: array items: type: string - description: Interface (name) + format: date-time explode: true style: form - in: query - name: interface__n + name: last_updated__empty schema: type: array items: type: string - description: Interface (name) + format: date-time explode: true style: form - in: query - name: interface_id + name: last_updated__gt schema: type: array items: - type: integer - description: Interface (ID) + type: string + format: date-time explode: true style: form - in: query - name: interface_id__n + name: last_updated__gte schema: type: array items: - type: integer - description: Interface (ID) + type: string + format: date-time explode: true style: form - in: query - name: l2vpn + name: last_updated__lt schema: type: array items: type: string - description: L2VPN (slug) + format: date-time explode: true style: form - in: query - name: l2vpn__n + name: last_updated__lte schema: type: array items: type: string - description: L2VPN (slug) + format: date-time explode: true style: form - in: query - name: l2vpn_id + name: last_updated__n schema: type: array items: - type: integer - description: L2VPN (ID) + 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: l2vpn_id__n + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: integer - description: L2VPN (ID) + type: string explode: true style: form - in: query - name: last_updated + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nie 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. + - in: query + name: name__niew schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: modified_by_request + name: name__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -95377,46 +94252,50 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: parent schema: type: array items: type: string + description: Parent tenant group (slug) explode: true style: form - in: query - name: region_id + name: parent__n schema: type: array items: - type: integer - format: int32 + type: string + description: Parent tenant group (slug) explode: true style: form - in: query - name: site + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent tenant group (ID) explode: true style: form - in: query - name: site_id + name: parent_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent tenant group (ID) explode: true style: form - in: query - name: tag + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -95424,7 +94303,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -95432,155 +94315,92 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: slug__ie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_machine + name: slug__iew schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine__n + name: slug__isw schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine_id + name: slug__n schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: slug__nic schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: vlan + name: slug__nie schema: type: array items: type: string - description: VLAN (name) explode: true style: form - in: query - name: vlan__n + name: slug__niew schema: type: array items: type: string - description: VLAN (name) explode: true style: form - in: query - name: vlan_id + name: slug__nisw schema: type: array items: - type: integer - description: VLAN (ID) + type: string explode: true style: form - in: query - name: vlan_id__n + name: tag schema: type: array items: - type: integer - description: VLAN (ID) + type: string explode: true style: form - in: query - name: vlan_vid - 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: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vminterface - schema: - type: array - items: - type: string - description: VM interface (name) - explode: true - style: form - - in: query - name: vminterface__n + name: tag__n schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface_id - schema: - type: array - items: - type: integer - description: VM Interface (ID) - explode: true - style: form - - in: query - name: vminterface_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: VM Interface (ID) - explode: true - style: form + type: string + format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -95589,21 +94409,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNTerminationList' + $ref: '#/components/schemas/PaginatedTenantGroupList' description: '' post: - operationId: vpn_l2vpn_terminations_create - description: Post a list of L2VPN termination objects. + operationId: tenancy_tenant_groups_create + description: Post a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -95613,25 +94433,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: vpn_l2vpn_terminations_bulk_update - description: Put a list of L2VPN termination objects. + operationId: tenancy_tenant_groups_bulk_update + description: Put a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -95643,25 +94463,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: vpn_l2vpn_terminations_bulk_partial_update - description: Patch a list of L2VPN termination objects. + operationId: tenancy_tenant_groups_bulk_partial_update + description: Patch a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -95673,25 +94493,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: vpn_l2vpn_terminations_bulk_destroy - description: Delete a list of L2VPN termination objects. + operationId: tenancy_tenant_groups_bulk_destroy + description: Delete a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -95699,19 +94519,19 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/{id}/: + /api/tenancy/tenant-groups/{id}/: get: - operationId: vpn_l2vpn_terminations_retrieve - description: Get a L2VPN termination object. + operationId: tenancy_tenant_groups_retrieve + description: Get a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -95720,28 +94540,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: vpn_l2vpn_terminations_update - description: Put a L2VPN termination object. + operationId: tenancy_tenant_groups_update + description: Put a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -95751,28 +94571,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: vpn_l2vpn_terminations_partial_update - description: Patch a L2VPN termination object. + operationId: tenancy_tenant_groups_partial_update + description: Patch a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -95781,31 +94601,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: vpn_l2vpn_terminations_destroy - description: Delete a L2VPN termination object. + operationId: tenancy_tenant_groups_destroy + description: Delete a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/l2vpns/: + /api/tenancy/tenants/: get: - operationId: vpn_l2vpns_list - description: Get a list of L2VPN objects. + operationId: tenancy_tenants_list + description: Get a list of tenant objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -95959,39 +94831,35 @@ paths: explode: true style: form - in: query - name: export_target + name: group schema: type: array items: type: string - description: Export target (name) explode: true style: form - in: query - name: export_target__n + name: group__n schema: type: array items: type: string - description: Export target (name) explode: true style: form - in: query - name: export_target_id + name: group_id schema: type: array items: - type: integer - description: Export target + type: string explode: true style: form - in: query - name: export_target_id__n + name: group_id__n schema: type: array items: - type: integer - description: Export target + type: string explode: true style: form - in: query @@ -96052,100 +94920,6 @@ paths: format: int32 explode: true style: form - - in: query - name: identifier - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__empty - schema: - type: boolean - - in: query - name: identifier__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: import_target - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target__n - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target_id - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - - in: query - name: import_target_id__n - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - in: query name: last_updated schema: @@ -96421,105 +95195,13 @@ 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: - type: array - items: - type: string - x-spec-enum-id: dbaa4f996ec2d110 - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: dbaa4f996ec2d110 - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -96528,21 +95210,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNList' + $ref: '#/components/schemas/PaginatedTenantList' description: '' post: - operationId: vpn_l2vpns_create - description: Post a list of L2VPN objects. + operationId: tenancy_tenants_create + description: Post a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -96552,25 +95234,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: vpn_l2vpns_bulk_update - description: Put a list of L2VPN objects. + operationId: tenancy_tenants_bulk_update + description: Put a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -96582,25 +95264,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: vpn_l2vpns_bulk_partial_update - description: Patch a list of L2VPN objects. + operationId: tenancy_tenants_bulk_partial_update + description: Patch a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -96612,25 +95294,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: vpn_l2vpns_bulk_destroy - description: Delete a list of L2VPN objects. + operationId: tenancy_tenants_bulk_destroy + description: Delete a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -96638,19 +95320,19 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/{id}/: + /api/tenancy/tenants/{id}/: get: - operationId: vpn_l2vpns_retrieve - description: Get a L2VPN object. + operationId: tenancy_tenants_retrieve + description: Get a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -96659,28 +95341,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: vpn_l2vpns_update - description: Put a L2VPN object. + operationId: tenancy_tenants_update + description: Put a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -96690,28 +95372,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: vpn_l2vpns_partial_update - description: Patch a L2VPN object. + operationId: tenancy_tenants_partial_update + description: Patch a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedTenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedTenantRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -96720,99 +95402,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: vpn_l2vpns_destroy - description: Delete a L2VPN object. + operationId: tenancy_tenants_destroy + description: Delete a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnel-groups/: + /api/users/config/: get: - operationId: vpn_tunnel_groups_list - description: Get a list of tunnel group objects. + operationId: users_config_retrieve + description: An API endpoint via which a user can update his or her own UserConfig + data (but no one else's). + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/groups/: + get: + operationId: users_groups_list + description: Get a list of group objects. parameters: - - 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: description schema: @@ -96955,80 +95587,12 @@ 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: @@ -97113,130 +95677,79 @@ paths: 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: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: slug__iew + name: notification_group_id schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - in: query - name: slug__isw + name: notification_group_id__n schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - - in: query - name: slug__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__nie + name: permission_id schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__niew + name: permission_id__n schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__nisw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: tag + name: user_id schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - in: query - name: tag__n + name: user_id__n schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -97245,21 +95758,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelGroupList' + $ref: '#/components/schemas/PaginatedGroupList' description: '' post: - operationId: vpn_tunnel_groups_create - description: Post a list of tunnel group objects. + operationId: users_groups_create + description: Post a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -97269,25 +95782,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/Group' description: '' put: - operationId: vpn_tunnel_groups_bulk_update - description: Put a list of tunnel group objects. + operationId: users_groups_bulk_update + description: Put a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -97299,25 +95812,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: vpn_tunnel_groups_bulk_partial_update - description: Patch a list of tunnel group objects. + operationId: users_groups_bulk_partial_update + description: Patch a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -97329,25 +95842,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: vpn_tunnel_groups_bulk_destroy - description: Delete a list of tunnel group objects. + operationId: users_groups_bulk_destroy + description: Delete a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -97355,19 +95868,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-groups/{id}/: + /api/users/groups/{id}/: get: - operationId: vpn_tunnel_groups_retrieve - description: Get a tunnel group object. + operationId: users_groups_retrieve + description: Get a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -97376,28 +95889,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/Group' description: '' put: - operationId: vpn_tunnel_groups_update - description: Put a tunnel group object. + operationId: users_groups_update + description: Put a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -97407,28 +95920,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: vpn_tunnel_groups_partial_update - description: Patch a tunnel group object. + operationId: users_groups_partial_update + description: Patch a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -97437,322 +95950,305 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: vpn_tunnel_groups_destroy - description: Delete a tunnel group object. + operationId: users_groups_destroy + description: Delete a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnel-terminations/: + /api/users/permissions/: get: - operationId: vpn_tunnel_terminations_list - description: Get a list of tunnel termination objects. + operationId: users_permissions_list + description: Get a list of permission objects. parameters: - in: query - name: created + 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: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nic 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: id + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: enabled + schema: + type: boolean + - in: query + name: group schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: id__lte + name: group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: id__n + name: group_id schema: type: array items: type: integer - format: int32 + description: Group explode: true style: form - in: query - name: interface + name: group_id__n schema: type: array items: - type: string - description: Interface (name) + type: integer + description: Group explode: true style: form - in: query - name: interface__n + name: id schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface_id + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: interface_id__n + name: id__gte schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: last_updated + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + 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: last_updated__gte + name: name schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__iew 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 - - 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: outside_ip_id + name: name__isw schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: outside_ip_id__n + name: name__n schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: name__nic schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: role__n + name: name__nie schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: tag + name: name__niew schema: type: array items: @@ -97760,7 +96256,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nisw schema: type: array items: @@ -97768,150 +96264,132 @@ paths: explode: true style: form - in: query - name: termination_id + name: object_type schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_id__empty + name: object_type__ic schema: - type: boolean + type: string - in: query - name: termination_id__gt + name: object_type__ie schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_id__gte + name: object_type__iew schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_id__lt + name: object_type__isw schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_id__lte + name: object_type__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_id__n + name: object_type__nic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_type + name: object_type__nie schema: type: string - in: query - name: termination_type__n + name: object_type__niew schema: type: string - in: query - name: tunnel + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string - description: Tunnel (name) + type: integer explode: true style: form - in: query - name: tunnel__n + name: object_type_id__n schema: type: array items: - type: string - description: Tunnel (name) + type: integer explode: true style: form - in: query - name: tunnel_id + name: object_types schema: type: array items: type: integer - description: Tunnel (ID) explode: true style: form - in: query - name: tunnel_id__n + name: object_types__n schema: type: array items: type: integer - description: Tunnel (ID) 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: updated_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: vminterface + name: user schema: type: array items: type: string - description: VM interface (name) + description: User (name) explode: true style: form - in: query - name: vminterface__n + name: user__n schema: type: array items: type: string - description: VM interface (name) + description: User (name) explode: true style: form - in: query - name: vminterface_id + name: user_id schema: type: array items: type: integer - description: VM interface (ID) + description: User explode: true style: form - in: query - name: vminterface_id__n + name: user_id__n schema: type: array items: type: integer - description: VM interface (ID) + description: User explode: true style: form tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -97920,21 +96398,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelTerminationList' + $ref: '#/components/schemas/PaginatedObjectPermissionList' description: '' post: - operationId: vpn_tunnel_terminations_create - description: Post a list of tunnel termination objects. + operationId: users_permissions_create + description: Post a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -97944,25 +96422,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: vpn_tunnel_terminations_bulk_update - description: Put a list of tunnel termination objects. + operationId: users_permissions_bulk_update + description: Put a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -97974,25 +96452,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: vpn_tunnel_terminations_bulk_partial_update - description: Patch a list of tunnel termination objects. + operationId: users_permissions_bulk_partial_update + description: Patch a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -98004,25 +96482,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: vpn_tunnel_terminations_bulk_destroy - description: Delete a list of tunnel termination objects. + operationId: users_permissions_bulk_destroy + description: Delete a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -98030,19 +96508,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-terminations/{id}/: + /api/users/permissions/{id}/: get: - operationId: vpn_tunnel_terminations_retrieve - description: Get a tunnel termination object. + operationId: users_permissions_retrieve + description: Get a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -98051,28 +96529,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: vpn_tunnel_terminations_update - description: Put a tunnel termination object. + operationId: users_permissions_update + description: Put a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -98082,28 +96560,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: vpn_tunnel_terminations_partial_update - description: Patch a tunnel termination object. + operationId: users_permissions_partial_update + description: Patch a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98112,101 +96590,108 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: vpn_tunnel_terminations_destroy - description: Delete a tunnel termination object. + operationId: users_permissions_destroy + description: Delete a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnels/: + /api/users/tokens/: get: - operationId: vpn_tunnels_list - description: Get a list of tunnel objects. + operationId: users_tokens_list + description: Get a list of token objects. parameters: - in: query name: created + schema: + type: string + format: date-time + - in: query + name: created__gte + schema: + type: string + format: date-time + - in: query + name: created__lte + schema: + type: string + format: date-time + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nic 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: description + name: description__nie schema: type: array items: @@ -98214,67 +96699,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew + name: description__niew schema: type: array items: @@ -98290,61 +96715,20 @@ paths: explode: true style: form - in: query - name: encapsulation - schema: - type: array - items: - type: string - x-spec-enum-id: 5fc36bb745852746 - explode: true - style: form - - in: query - name: encapsulation__n - schema: - type: array - items: - type: string - x-spec-enum-id: 5fc36bb745852746 - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Tunnel group (slug) - explode: true - style: form - - in: query - name: group__n + name: expires schema: - type: array - items: - type: string - description: Tunnel group (slug) - explode: true - style: form + type: string + format: date-time - in: query - name: group_id + name: expires__gte schema: - type: array - items: - type: integer - nullable: true - description: Tunnel group (ID) - explode: true - style: form + type: string + format: date-time - in: query - name: group_id__n + name: expires__lte schema: - type: array - items: - type: integer - nullable: true - description: Tunnel group (ID) - explode: true - style: form + type: string + format: date-time - in: query name: id schema: @@ -98404,119 +96788,75 @@ paths: explode: true style: form - in: query - name: ipsec_profile - schema: - type: array - items: - type: string - description: IPSec profile (name) - explode: true - style: form - - in: query - name: ipsec_profile__n + name: key schema: type: array items: type: string - description: IPSec profile (name) - explode: true - style: form - - in: query - name: ipsec_profile_id - schema: - type: array - items: - type: integer - nullable: true - description: IPSec profile (ID) explode: true style: form - in: query - name: ipsec_profile_id__n + name: key__empty schema: - type: array - items: - type: integer - nullable: true - description: IPSec profile (ID) - explode: true - style: form + type: boolean - in: query - name: last_updated + name: key__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: key__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: key__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: key__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: key__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: key__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: key__nie 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 + name: key__niew schema: type: array items: @@ -98524,11 +96864,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: key__nisw schema: type: array items: @@ -98536,69 +96872,69 @@ paths: explode: true style: form - in: query - name: name__ie + name: last_used schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__iew + name: last_used__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__isw + name: last_used__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_used__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_used__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_used__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_used__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: name__nisw + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - name: offset required: false in: query @@ -98617,178 +96953,47 @@ paths: type: string description: Search - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 0d65f7912cba74aa - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0d65f7912cba74aa - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant + name: user schema: type: array items: type: string - description: Tenant (slug) + description: User (name) explode: true style: form - in: query - name: tenant__n + name: user__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) + description: User (name) explode: true style: form - in: query - name: tenant_id__n + name: user_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: User explode: true style: form - in: query - name: tunnel_id + name: user_id__n schema: type: array items: type: integer - format: int32 + description: User explode: true style: form - in: query - name: tunnel_id__empty + name: write_enabled schema: type: boolean - - in: query - name: tunnel_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -98797,21 +97002,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelList' + $ref: '#/components/schemas/PaginatedTokenList' description: '' post: - operationId: vpn_tunnels_create - description: Post a list of tunnel objects. + operationId: users_tokens_create + description: Post a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -98821,25 +97026,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/Token' description: '' put: - operationId: vpn_tunnels_bulk_update - description: Put a list of tunnel objects. + operationId: users_tokens_bulk_update + description: Put a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -98851,25 +97056,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: vpn_tunnels_bulk_partial_update - description: Patch a list of tunnel objects. + operationId: users_tokens_bulk_partial_update + description: Patch a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -98881,25 +97086,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: vpn_tunnels_bulk_destroy - description: Delete a list of tunnel objects. + operationId: users_tokens_bulk_destroy + description: Delete a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -98907,19 +97112,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnels/{id}/: + /api/users/tokens/{id}/: get: - operationId: vpn_tunnels_retrieve - description: Get a tunnel object. + operationId: users_tokens_retrieve + description: Get a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -98928,28 +97133,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/Token' description: '' put: - operationId: vpn_tunnels_update - description: Put a tunnel object. + operationId: users_tokens_update + description: Put a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -98959,28 +97164,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: vpn_tunnels_partial_update - description: Patch a tunnel object. + operationId: users_tokens_partial_update + description: Patch a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedTokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedTokenRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98989,65 +97194,106 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: vpn_tunnels_destroy - description: Delete a tunnel object. + operationId: users_tokens_destroy + description: Delete a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-lan-groups/: + /api/users/tokens/provision/: + post: + operationId: users_tokens_provision_create + description: Non-authenticated REST API endpoint via which a user may create + a Token. + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvision' + description: '' + '401': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/users/: get: - operationId: wireless_wireless_lan_groups_list - description: Get a list of wireless LAN group objects. + operationId: users_users_list + description: Get a list of user objects. parameters: - in: query - name: ancestor + name: date_joined schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: ancestor__n + name: date_joined__empty + schema: + type: boolean + - in: query + name: date_joined__gt schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: ancestor_id + name: date_joined__gte schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: ancestor_id__n + name: date_joined__lt schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: created + name: date_joined__lte schema: type: array items: @@ -99056,7 +97302,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: date_joined__n schema: type: array items: @@ -99065,57 +97311,59 @@ paths: explode: true style: form - in: query - name: created__gt + name: email schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: email__empty + schema: + type: boolean + - in: query + name: email__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: email__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: email__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: email__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: email__n schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: email__nic schema: type: array items: @@ -99123,11 +97371,43 @@ paths: explode: true style: form - in: query - name: description__empty + name: email__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: first_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: first_name__empty schema: type: boolean - in: query - name: description__ic + name: first_name__ic schema: type: array items: @@ -99135,7 +97415,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: first_name__ie schema: type: array items: @@ -99143,7 +97423,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: first_name__iew schema: type: array items: @@ -99151,7 +97431,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: first_name__isw schema: type: array items: @@ -99159,7 +97439,7 @@ paths: explode: true style: form - in: query - name: description__n + name: first_name__n schema: type: array items: @@ -99167,7 +97447,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: first_name__nic schema: type: array items: @@ -99175,7 +97455,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: first_name__nie schema: type: array items: @@ -99183,7 +97463,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: first_name__niew schema: type: array items: @@ -99191,11 +97471,47 @@ paths: explode: true style: form - in: query - name: description__nisw + name: first_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Group (name) + explode: true + style: form + - in: query + name: group__n schema: type: array items: type: string + description: Group (name) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + description: Group + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + description: Group explode: true style: form - in: query @@ -99257,16 +97573,19 @@ paths: explode: true style: form - in: query - name: last_updated + name: is_active schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__empty + name: is_staff + schema: + type: boolean + - in: query + name: is_superuser + schema: + type: boolean + - in: query + name: last_login schema: type: array items: @@ -99275,7 +97594,11 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: last_login__empty + schema: + type: boolean + - in: query + name: last_login__gt schema: type: array items: @@ -99284,7 +97607,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: last_login__gte schema: type: array items: @@ -99293,7 +97616,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: last_login__lt schema: type: array items: @@ -99302,7 +97625,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: last_login__lte schema: type: array items: @@ -99311,7 +97634,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: last_login__n schema: type: array items: @@ -99319,19 +97642,8 @@ paths: 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 + name: last_name schema: type: array items: @@ -99339,11 +97651,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: last_name__empty schema: type: boolean - in: query - name: name__ic + name: last_name__ic schema: type: array items: @@ -99351,7 +97663,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: last_name__ie schema: type: array items: @@ -99359,7 +97671,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_name__iew schema: type: array items: @@ -99367,7 +97679,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_name__isw schema: type: array items: @@ -99375,7 +97687,7 @@ paths: explode: true style: form - in: query - name: name__n + name: last_name__n schema: type: array items: @@ -99383,7 +97695,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: last_name__nic schema: type: array items: @@ -99391,7 +97703,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: last_name__nie schema: type: array items: @@ -99399,7 +97711,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: last_name__niew schema: type: array items: @@ -99407,57 +97719,65 @@ paths: explode: true style: form - in: query - name: name__nisw + name: last_name__nisw schema: type: array items: type: string explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: notification_group_id schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - in: query - name: parent__n + name: notification_group_id__n schema: type: array items: - type: string + type: integer + description: Notification group (ID) 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: parent_id + name: permission_id schema: type: array items: type: integer - nullable: true + description: Permission (ID) explode: true style: form - in: query - name: parent_id__n + name: permission_id__n schema: type: array items: type: integer - nullable: true + description: Permission (ID) explode: true style: form - in: query @@ -99466,7 +97786,7 @@ paths: type: string description: Search - in: query - name: slug + name: username schema: type: array items: @@ -99474,27 +97794,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: username__empty schema: type: boolean - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew + name: username__ic schema: type: array items: @@ -99502,7 +97806,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: username__ie schema: type: array items: @@ -99510,7 +97814,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: username__iew schema: type: array items: @@ -99518,7 +97822,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: username__isw schema: type: array items: @@ -99526,7 +97830,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: username__n schema: type: array items: @@ -99534,7 +97838,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: username__nic schema: type: array items: @@ -99542,7 +97846,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: username__nie schema: type: array items: @@ -99550,7 +97854,7 @@ paths: explode: true style: form - in: query - name: tag + name: username__niew schema: type: array items: @@ -99558,20 +97862,15 @@ paths: explode: true style: form - in: query - name: tag__n + name: username__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - wireless + - users security: - cookieAuth: [] - tokenAuth: [] @@ -99580,21 +97879,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + $ref: '#/components/schemas/PaginatedUserList' description: '' post: - operationId: wireless_wireless_lan_groups_create - description: Post a list of wireless LAN group objects. + operationId: users_users_create + description: Post a list of user objects. tags: - - wireless + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -99604,25 +97903,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/User' description: '' put: - operationId: wireless_wireless_lan_groups_bulk_update - description: Put a list of wireless LAN group objects. + operationId: users_users_bulk_update + description: Put a list of user objects. tags: - - wireless + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -99634,25 +97933,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/User' description: '' patch: - operationId: wireless_wireless_lan_groups_bulk_partial_update - description: Patch a list of wireless LAN group objects. + operationId: users_users_bulk_partial_update + description: Patch a list of user objects. tags: - - wireless + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -99664,25 +97963,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/User' description: '' delete: - operationId: wireless_wireless_lan_groups_bulk_destroy - description: Delete a list of wireless LAN group objects. + operationId: users_users_bulk_destroy + description: Delete a list of user objects. tags: - - wireless + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -99690,19 +97989,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lan-groups/{id}/: + /api/users/users/{id}/: get: - operationId: wireless_wireless_lan_groups_retrieve - description: Get a wireless LAN group object. + operationId: users_users_retrieve + description: Get a user 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 user. required: true tags: - - wireless + - users security: - cookieAuth: [] - tokenAuth: [] @@ -99711,28 +98010,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/User' description: '' put: - operationId: wireless_wireless_lan_groups_update - description: Put a wireless LAN group object. + operationId: users_users_update + description: Put a user 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 user. required: true tags: - - wireless + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -99742,28 +98041,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/User' description: '' patch: - operationId: wireless_wireless_lan_groups_partial_update - description: Patch a wireless LAN group object. + operationId: users_users_partial_update + description: Patch a user 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 user. required: true tags: - - wireless + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedUserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedUserRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -99772,121 +98071,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/User' description: '' delete: - operationId: wireless_wireless_lan_groups_destroy - description: Delete a wireless LAN group object. + operationId: users_users_destroy + description: Delete a user 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 user. required: true tags: - - wireless + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-lans/: + /api/virtualization/cluster-groups/: get: - operationId: wireless_wireless_lans_list - description: Get a list of wireless LAN objects. + operationId: virtualization_cluster_groups_list + description: Get a list of cluster group objects. parameters: - in: query - name: auth_cipher - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_cipher__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_psk - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nic + name: contact schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: auth_psk__nie + name: contact__n schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: auth_psk__niew + name: contact_group schema: type: array items: @@ -99894,7 +98123,7 @@ paths: explode: true style: form - in: query - name: auth_psk__nisw + name: contact_group__n schema: type: array items: @@ -99902,23 +98131,21 @@ paths: explode: true style: form - in: query - name: auth_type + name: contact_role schema: type: array items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + type: integer + description: Contact Role explode: true style: form - in: query - name: auth_type__n + name: contact_role__n schema: type: array items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + type: integer + description: Contact Role explode: true style: form - in: query @@ -100074,39 +98301,47 @@ paths: explode: true style: form - in: query - name: group + name: id schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: group__n + 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: group_id + name: id__gte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: group_id__n + name: id__lt schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: id + name: id__lte schema: type: array items: @@ -100115,11 +98350,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__n schema: type: array items: @@ -100127,58 +98358,6 @@ paths: 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: interface_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: last_updated schema: @@ -100253,25 +98432,8 @@ paths: schema: type: string format: uuid - - 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: q - schema: - type: string - description: Search - in: query - name: ssid + name: name schema: type: array items: @@ -100279,11 +98441,11 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: name__empty schema: type: boolean - in: query - name: ssid__ic + name: name__ic schema: type: array items: @@ -100291,7 +98453,7 @@ paths: explode: true style: form - in: query - name: ssid__ie + name: name__ie schema: type: array items: @@ -100299,7 +98461,7 @@ paths: explode: true style: form - in: query - name: ssid__iew + name: name__iew schema: type: array items: @@ -100307,7 +98469,7 @@ paths: explode: true style: form - in: query - name: ssid__isw + name: name__isw schema: type: array items: @@ -100315,7 +98477,7 @@ paths: explode: true style: form - in: query - name: ssid__n + name: name__n schema: type: array items: @@ -100323,7 +98485,7 @@ paths: explode: true style: form - in: query - name: ssid__nic + name: name__nic schema: type: array items: @@ -100331,7 +98493,7 @@ paths: explode: true style: form - in: query - name: ssid__nie + name: name__nie schema: type: array items: @@ -100339,7 +98501,7 @@ paths: explode: true style: form - in: query - name: ssid__niew + name: name__niew schema: type: array items: @@ -100347,33 +98509,52 @@ paths: explode: true style: form - in: query - name: ssid__nisw + 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: status + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -100381,7 +98562,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -100389,77 +98570,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -100467,26 +98638,8 @@ paths: schema: type: string format: uuid - - in: query - name: vlan_id - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form - - in: query - name: vlan_id__n - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -100495,21 +98648,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANList' + $ref: '#/components/schemas/PaginatedClusterGroupList' description: '' post: - operationId: wireless_wireless_lans_create - description: Post a list of wireless LAN objects. + operationId: virtualization_cluster_groups_create + description: Post a list of cluster group objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -100519,25 +98672,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: wireless_wireless_lans_bulk_update - description: Put a list of wireless LAN objects. + operationId: virtualization_cluster_groups_bulk_update + description: Put a list of cluster group objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -100549,25 +98702,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: wireless_wireless_lans_bulk_partial_update - description: Patch a list of wireless LAN objects. + operationId: virtualization_cluster_groups_bulk_partial_update + description: Patch a list of cluster group objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -100579,25 +98732,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: wireless_wireless_lans_bulk_destroy - description: Delete a list of wireless LAN objects. + operationId: virtualization_cluster_groups_bulk_destroy + description: Delete a list of cluster group objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -100605,19 +98758,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lans/{id}/: + /api/virtualization/cluster-groups/{id}/: get: - operationId: wireless_wireless_lans_retrieve - description: Get a wireless LAN object. + operationId: virtualization_cluster_groups_retrieve + description: Get a cluster group 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 cluster group. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -100626,28 +98779,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: wireless_wireless_lans_update - description: Put a wireless LAN object. + operationId: virtualization_cluster_groups_update + description: Put a cluster group 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 cluster group. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -100657,28 +98810,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: wireless_wireless_lans_partial_update - description: Patch a wireless LAN object. + operationId: virtualization_cluster_groups_partial_update + description: Patch a cluster group 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 cluster group. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -100687,155 +98840,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: wireless_wireless_lans_destroy - description: Delete a wireless LAN object. + operationId: virtualization_cluster_groups_destroy + description: Delete a cluster group 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 cluster group. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-links/: + /api/virtualization/cluster-types/: get: - operationId: wireless_wireless_links_list - description: Get a list of wireless link objects. + operationId: virtualization_cluster_types_list + description: Get a list of cluster type objects. parameters: - - in: query - name: auth_cipher - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_cipher__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_psk - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - in: query name: created schema: @@ -101046,38 +99075,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_a_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_a_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_b_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_b_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: last_updated schema: @@ -101152,25 +99149,8 @@ paths: schema: type: string format: uuid - - 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: q - schema: - type: string - description: Search - in: query - name: ssid + name: name schema: type: array items: @@ -101178,11 +99158,11 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: name__empty schema: type: boolean - in: query - name: ssid__ic + name: name__ic schema: type: array items: @@ -101190,7 +99170,7 @@ paths: explode: true style: form - in: query - name: ssid__ie + name: name__ie schema: type: array items: @@ -101198,7 +99178,7 @@ paths: explode: true style: form - in: query - name: ssid__iew + name: name__iew schema: type: array items: @@ -101206,7 +99186,7 @@ paths: explode: true style: form - in: query - name: ssid__isw + name: name__isw schema: type: array items: @@ -101214,7 +99194,7 @@ paths: explode: true style: form - in: query - name: ssid__n + name: name__n schema: type: array items: @@ -101222,7 +99202,7 @@ paths: explode: true style: form - in: query - name: ssid__nic + name: name__nic schema: type: array items: @@ -101230,7 +99210,7 @@ paths: explode: true style: form - in: query - name: ssid__nie + name: name__nie schema: type: array items: @@ -101238,7 +99218,7 @@ paths: explode: true style: form - in: query - name: ssid__niew + name: name__niew schema: type: array items: @@ -101246,33 +99226,52 @@ paths: explode: true style: form - in: query - name: ssid__nisw + 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: status + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -101280,7 +99279,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -101288,77 +99287,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -101367,7 +99356,7 @@ paths: type: string format: uuid tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -101376,21 +99365,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLinkList' + $ref: '#/components/schemas/PaginatedClusterTypeList' description: '' post: - operationId: wireless_wireless_links_create - description: Post a list of wireless link objects. + operationId: virtualization_cluster_types_create + description: Post a list of cluster type objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -101400,25 +99389,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/ClusterType' description: '' put: - operationId: wireless_wireless_links_bulk_update - description: Put a list of wireless link objects. + operationId: virtualization_cluster_types_bulk_update + description: Put a list of cluster type objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -101430,25 +99419,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/ClusterType' description: '' patch: - operationId: wireless_wireless_links_bulk_partial_update - description: Patch a list of wireless link objects. + operationId: virtualization_cluster_types_bulk_partial_update + description: Patch a list of cluster type objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -101460,25 +99449,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/ClusterType' description: '' delete: - operationId: wireless_wireless_links_bulk_destroy - description: Delete a list of wireless link objects. + operationId: virtualization_cluster_types_bulk_destroy + description: Delete a list of cluster type objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -101486,19 +99475,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-links/{id}/: + /api/virtualization/cluster-types/{id}/: get: - operationId: wireless_wireless_links_retrieve - description: Get a wireless link object. + operationId: virtualization_cluster_types_retrieve + description: Get a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this cluster type. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -101507,28 +99496,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/ClusterType' description: '' put: - operationId: wireless_wireless_links_update - description: Put a wireless link object. + operationId: virtualization_cluster_types_update + description: Put a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this cluster type. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -101538,28 +99527,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/ClusterType' description: '' patch: - operationId: wireless_wireless_links_partial_update - description: Patch a wireless link object. + operationId: virtualization_cluster_types_partial_update + description: Patch a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this cluster type. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + $ref: '#/components/schemas/PatchedClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + $ref: '#/components/schemas/PatchedClusterTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -101568,423 +99557,20575 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/ClusterType' description: '' delete: - operationId: wireless_wireless_links_destroy - description: Delete a wireless link object. + operationId: virtualization_cluster_types_destroy + description: Delete a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this cluster type. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body -components: - schemas: - ASN: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIR' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + /api/virtualization/clusters/: + get: + operationId: virtualization_clusters_list + description: Get a list of cluster objects. + parameters: + - in: query + name: contact + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - site_count: - type: integer - format: int64 - readOnly: true - provider_count: - type: integer - format: int64 - readOnly: true - required: - - asn - - created - - display - - id - - last_updated - - provider_count - - site_count - - url - ASNRange: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIR' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - description: - type: string - maxLength: 200 - tags: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - asn_count: - type: integer - readOnly: true - required: - - asn_count - - created - - display - - end - - id - - last_updated - - name - - rir - - slug - - start - - url - ASNRangeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIRRequest' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - end - - name - - rir - - slug - - start - ASNRequest: - type: object - description: Adds support for custom fields and tags. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIRRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - asn - Aggregate: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - family: - type: object - properties: - value: - enum: - - 4 - - 6 - type: integer - description: '* `4` - IPv4 - - * `6` - IPv6' - x-spec-enum-id: d72003fd1af3603d - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - prefix: - type: string - rir: - $ref: '#/components/schemas/RIR' - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - family - - id - - last_updated - - prefix - - rir - - url - AggregateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - rir: - $ref: '#/components/schemas/RIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - prefix - - rir - AvailableASN: - type: object - description: Representation of an ASN which does not exist in the database. - properties: - asn: - type: integer - readOnly: true - description: - type: string - required: - - asn - AvailableIP: - type: object - description: Representation of an IP address which does not exist in the database. - properties: - family: - type: integer - readOnly: true - address: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' - readOnly: true - nullable: true - description: - type: string - required: - - address - - family - - vrf - AvailablePrefix: - type: object - description: Representation of a prefix which does not exist in the database. - properties: - family: - type: integer - readOnly: true - prefix: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' - readOnly: true - nullable: true - required: - - family - - prefix - - vrf - AvailableVLAN: - type: object - description: Representation of a VLAN which does not exist in the database. - properties: - vid: + type: integer + description: Contact Role + 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__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Parent group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Parent group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent group (ID) + 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: 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 + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: string + 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: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: scope_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__empty + schema: + type: boolean + - in: query + name: scope_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_type + schema: + type: string + - in: query + name: scope_type__n + schema: + type: string + - 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 + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedClusterList' + description: '' + post: + operationId: virtualization_clusters_create + description: Post a list of cluster objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableClusterRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableClusterRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + description: '' + put: + operationId: virtualization_clusters_bulk_update + description: Put a list of cluster objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Cluster' + description: '' + patch: + operationId: virtualization_clusters_bulk_partial_update + description: Patch a list of cluster objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Cluster' + description: '' + delete: + operationId: virtualization_clusters_bulk_destroy + description: Delete a list of cluster objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/clusters/{id}/: + get: + operationId: virtualization_clusters_retrieve + description: Get a cluster object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + description: '' + put: + operationId: virtualization_clusters_update + description: Put a cluster object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableClusterRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableClusterRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + description: '' + patch: + operationId: virtualization_clusters_partial_update + description: Patch a cluster object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableClusterRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableClusterRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Cluster' + description: '' + delete: + operationId: virtualization_clusters_destroy + description: Delete a cluster object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/interfaces/: + get: + operationId: virtualization_interfaces_list + description: Get a list of interface objects. + parameters: + - in: query + name: bridge_id + schema: + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form + - in: query + name: bridge_id__n + schema: + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form + - in: query + name: cluster + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster__n + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + description: Cluster (ID) + 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__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: enabled + schema: + type: boolean + - 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: l2vpn + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + 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: mac_address + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mode + schema: + type: string + x-spec-enum-id: b6fe48fe21dbf01d + nullable: true + enum: + - access + - q-in-q + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: mtu + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__empty + schema: + type: boolean + - in: query + name: mtu__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - 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: parent_id + schema: + type: array + items: + type: integer + description: Parent interface (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + description: Parent interface (ID) + explode: true + style: form + - in: query + name: primary_mac_address + schema: + type: array + items: + type: string + description: Primary MAC address + explode: true + style: form + - in: query + name: primary_mac_address__n + schema: + type: array + items: + type: string + description: Primary MAC address + explode: true + style: form + - in: query + name: primary_mac_address_id + schema: + type: array + items: + type: integer + description: Primary MAC address (ID) + explode: true + style: form + - in: query + name: primary_mac_address_id__n + schema: + type: array + items: + type: integer + description: Primary MAC address (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine_id + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: virtual_machine_id__n + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: vlan + schema: + type: string + description: Assigned VID + - in: query + name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vlan_translation_policy + schema: + type: array + items: + type: string + description: VLAN Translation Policy + explode: true + style: form + - in: query + name: vlan_translation_policy__n + schema: + type: array + items: + type: string + description: VLAN Translation Policy + explode: true + style: form + - in: query + name: vlan_translation_policy_id + schema: + type: array + items: + type: integer + description: VLAN Translation Policy (ID) + explode: true + style: form + - in: query + name: vlan_translation_policy_id__n + schema: + type: array + items: + type: integer + description: VLAN Translation Policy (ID) + explode: true + style: form + - in: query + name: vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + description: VRF + explode: true + style: form + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedVMInterfaceList' + description: '' + post: + operationId: virtualization_interfaces_create + description: Post a list of interface objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVMInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVMInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/VMInterface' + description: '' + put: + operationId: virtualization_interfaces_bulk_update + description: Put a list of interface objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterface' + description: '' + patch: + operationId: virtualization_interfaces_bulk_partial_update + description: Patch a list of interface objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterface' + description: '' + delete: + operationId: virtualization_interfaces_bulk_destroy + description: Delete a list of interface objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VMInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/interfaces/{id}/: + get: + operationId: virtualization_interfaces_retrieve + description: Get a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VMInterface' + description: '' + put: + operationId: virtualization_interfaces_update + description: Put a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVMInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVMInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VMInterface' + description: '' + patch: + operationId: virtualization_interfaces_partial_update + description: Patch a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VMInterface' + description: '' + delete: + operationId: virtualization_interfaces_destroy + description: Delete a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-disks/: + get: + operationId: virtualization_virtual_disks_list + description: Get a list of virtual disk objects. + parameters: + - 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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + 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: 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: + 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: q + schema: + type: string + description: Search + - in: query + name: size + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: size__empty + schema: + type: boolean + - in: query + name: size__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: size__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: size__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: size__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: size__n + schema: + type: array + items: + type: integer + format: int32 + 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: + type: string + format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine_id + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: virtual_machine_id__n + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedVirtualDiskList' + description: '' + post: + operationId: virtualization_virtual_disks_create + description: Post a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + put: + operationId: virtualization_virtual_disks_bulk_update + description: Put a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDisk' + description: '' + patch: + operationId: virtualization_virtual_disks_bulk_partial_update + description: Patch a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDisk' + description: '' + delete: + operationId: virtualization_virtual_disks_bulk_destroy + description: Delete a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-disks/{id}/: + get: + operationId: virtualization_virtual_disks_retrieve + description: Get a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + put: + operationId: virtualization_virtual_disks_update + description: Put a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + patch: + operationId: virtualization_virtual_disks_partial_update + description: Patch a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedVirtualDiskRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedVirtualDiskRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + delete: + operationId: virtualization_virtual_disks_destroy + description: Delete a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-machines/: + get: + operationId: virtualization_virtual_machines_list + description: Get a list of virtual machine objects. + parameters: + - in: query + name: cluster + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster__n + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster_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 (ID) + explode: true + style: form + - in: query + name: cluster_group_id__n + schema: + type: array + items: + type: integer + description: Cluster group (ID) + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + nullable: true + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cluster (ID) + 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 (ID) + explode: true + style: form + - in: query + name: cluster_type_id__n + schema: + type: array + items: + type: integer + 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: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + 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__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: disk + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__empty + schema: + type: boolean + - in: query + name: disk__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP + - 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: interface_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__n + schema: + type: array + items: + type: integer + 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: local_context_data + schema: + type: boolean + description: Has local config context data + - in: query + name: mac_address + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: memory + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: memory__empty + schema: + type: boolean + - in: query + name: memory__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: memory__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: memory__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: memory__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: memory__n + schema: + type: array + items: + type: integer + format: int32 + 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 + nullable: true + description: Platform (ID) + explode: true + style: form + - in: query + name: platform_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Platform (ID) + explode: true + style: form + - in: query + name: primary_ip4_id + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip4_id__n + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id__n + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + 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 + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: serial + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nisw + schema: + type: array + items: + type: string + 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 + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vcpus + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__empty + schema: + type: boolean + - in: query + name: vcpus__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: virtual_disk_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__empty + schema: + type: boolean + - in: query + name: virtual_disk_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' + description: '' + post: + operationId: virtualization_virtual_machines_create + description: Post a list of virtual machine objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + put: + operationId: virtualization_virtual_machines_bulk_update + description: Put a list of virtual machine objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + patch: + operationId: virtualization_virtual_machines_bulk_partial_update + description: Patch a list of virtual machine objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + delete: + operationId: virtualization_virtual_machines_bulk_destroy + description: Delete a list of virtual machine objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-machines/{id}/: + get: + operationId: virtualization_virtual_machines_retrieve + description: Get a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + put: + operationId: virtualization_virtual_machines_update + description: Put a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + patch: + operationId: virtualization_virtual_machines_partial_update + description: Patch a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + delete: + operationId: virtualization_virtual_machines_destroy + description: Delete a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-machines/{id}/render-config/: + post: + operationId: virtualization_virtual_machines_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. + 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 virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + /api/vpn/ike-policies/: + get: + operationId: vpn_ike_policies_list + description: Get a list of IKE policy objects. + parameters: + - 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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + 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: ike_proposal + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ike_proposal__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ike_proposal_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: ike_proposal_id__n + schema: + type: array + items: + type: integer + 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: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__empty + schema: + type: boolean + - in: query + name: mode__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + explode: true + style: form + - in: query + name: mode__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + nullable: true + 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: preshared_key + schema: + type: string + - in: query + name: preshared_key__ic + schema: + type: string + - in: query + name: preshared_key__ie + schema: + type: string + - in: query + name: preshared_key__iew + schema: + type: string + - in: query + name: preshared_key__isw + schema: + type: string + - in: query + name: preshared_key__n + schema: + type: string + - in: query + name: preshared_key__nic + schema: + type: string + - in: query + name: preshared_key__nie + schema: + type: string + - in: query + name: preshared_key__niew + schema: + type: string + - in: query + name: preshared_key__nisw + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: version + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__n + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIKEPolicyList' + description: '' + post: + operationId: vpn_ike_policies_create + description: Post a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + put: + operationId: vpn_ike_policies_bulk_update + description: Put a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicy' + description: '' + patch: + operationId: vpn_ike_policies_bulk_partial_update + description: Patch a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicy' + description: '' + delete: + operationId: vpn_ike_policies_bulk_destroy + description: Delete a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ike-policies/{id}/: + get: + operationId: vpn_ike_policies_retrieve + description: Get a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + put: + operationId: vpn_ike_policies_update + description: Put a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + patch: + operationId: vpn_ike_policies_partial_update + description: Patch a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + delete: + operationId: vpn_ike_policies_destroy + description: Delete a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ike-proposals/: + get: + operationId: vpn_ike_proposals_list + description: Get a list of IKE proposal objects. + parameters: + - in: query + name: authentication_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__empty + schema: + type: boolean + - in: query + name: authentication_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + explode: true + style: form + - in: query + name: authentication_method + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__empty + schema: + type: boolean + - in: query + name: authentication_method__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__n + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + 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__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__empty + schema: + type: boolean + - in: query + name: encryption_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + 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: ike_policy + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy__n + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy_id + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ike_policy_id__n + schema: + type: array + items: + type: integer + description: IKE policy (ID) + 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: + 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: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__empty + schema: + type: boolean + - in: query + name: sa_lifetime__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__n + schema: + type: array + items: + type: integer + format: int32 + 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: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIKEProposalList' + description: '' + post: + operationId: vpn_ike_proposals_create + description: Post a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + put: + operationId: vpn_ike_proposals_bulk_update + description: Put a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposal' + description: '' + patch: + operationId: vpn_ike_proposals_bulk_partial_update + description: Patch a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposal' + description: '' + delete: + operationId: vpn_ike_proposals_bulk_destroy + description: Delete a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ike-proposals/{id}/: + get: + operationId: vpn_ike_proposals_retrieve + description: Get a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + put: + operationId: vpn_ike_proposals_update + description: Put a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + patch: + operationId: vpn_ike_proposals_partial_update + description: Patch a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + delete: + operationId: vpn_ike_proposals_destroy + description: Delete a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-policies/: + get: + operationId: vpn_ipsec_policies_list + description: Get a list of IPSec policy objects. + parameters: + - 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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + 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: ipsec_proposal + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ipsec_proposal__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ipsec_proposal_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: ipsec_proposal_id__n + schema: + type: array + items: + type: integer + 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: + 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: pfs_group + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__n + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIPSecPolicyList' + description: '' + post: + operationId: vpn_ipsec_policies_create + description: Post a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + put: + operationId: vpn_ipsec_policies_bulk_update + description: Put a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + patch: + operationId: vpn_ipsec_policies_bulk_partial_update + description: Patch a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + delete: + operationId: vpn_ipsec_policies_bulk_destroy + description: Delete a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-policies/{id}/: + get: + operationId: vpn_ipsec_policies_retrieve + description: Get a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + put: + operationId: vpn_ipsec_policies_update + description: Put a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + patch: + operationId: vpn_ipsec_policies_partial_update + description: Patch a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + delete: + operationId: vpn_ipsec_policies_destroy + description: Delete a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-profiles/: + get: + operationId: vpn_ipsec_profiles_list + description: Get a list of IPSec profile objects. + parameters: + - 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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + 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: ike_policy + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy__n + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy_id + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ike_policy_id__n + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy__n + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy_id + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy_id__n + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + 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: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__empty + schema: + type: boolean + - in: query + name: mode__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + 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: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIPSecProfileList' + description: '' + post: + operationId: vpn_ipsec_profiles_create + description: Post a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + put: + operationId: vpn_ipsec_profiles_bulk_update + description: Put a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfile' + description: '' + patch: + operationId: vpn_ipsec_profiles_bulk_partial_update + description: Patch a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfile' + description: '' + delete: + operationId: vpn_ipsec_profiles_bulk_destroy + description: Delete a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-profiles/{id}/: + get: + operationId: vpn_ipsec_profiles_retrieve + description: Get a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + put: + operationId: vpn_ipsec_profiles_update + description: Put a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + patch: + operationId: vpn_ipsec_profiles_partial_update + description: Patch a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + delete: + operationId: vpn_ipsec_profiles_destroy + description: Delete a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-proposals/: + get: + operationId: vpn_ipsec_proposals_list + description: Get a list of IPSec proposal objects. + parameters: + - in: query + name: authentication_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__empty + schema: + type: boolean + - in: query + name: authentication_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + nullable: true + title: Authentication + 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__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__empty + schema: + type: boolean + - in: query + name: encryption_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + nullable: true + title: Encryption + 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: ipsec_policy + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy__n + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy_id + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy_id__n + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + 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: + 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: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime_data + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__empty + schema: + type: boolean + - in: query + name: sa_lifetime_data__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__empty + schema: + type: boolean + - in: query + name: sa_lifetime_seconds__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__n + schema: + type: array + items: + type: integer + format: int32 + 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: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIPSecProposalList' + description: '' + post: + operationId: vpn_ipsec_proposals_create + description: Post a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + put: + operationId: vpn_ipsec_proposals_bulk_update + description: Put a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposal' + description: '' + patch: + operationId: vpn_ipsec_proposals_bulk_partial_update + description: Patch a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposal' + description: '' + delete: + operationId: vpn_ipsec_proposals_bulk_destroy + description: Delete a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-proposals/{id}/: + get: + operationId: vpn_ipsec_proposals_retrieve + description: Get a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + put: + operationId: vpn_ipsec_proposals_update + description: Put a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + patch: + operationId: vpn_ipsec_proposals_partial_update + description: Patch a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + delete: + operationId: vpn_ipsec_proposals_destroy + description: Delete a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpn-terminations/: + get: + operationId: vpn_l2vpn_terminations_list + description: Get a list of L2VPN termination objects. + parameters: + - in: query + name: assigned_object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__empty + schema: + type: boolean + - in: query + name: assigned_object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_type + schema: + type: string + - in: query + name: assigned_object_type__n + schema: + type: string + - in: query + name: 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: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + 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 + 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: interface + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: l2vpn + schema: + type: array + items: + type: string + description: L2VPN (slug) + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: string + description: L2VPN (slug) + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + 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 + - 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: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + format: int32 + 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: + type: string + format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine (name) + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine (name) + explode: true + style: form + - in: query + name: virtual_machine_id + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: virtual_machine_id__n + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: vlan + schema: + type: array + items: + type: string + description: VLAN (name) + explode: true + style: form + - in: query + name: vlan__n + schema: + type: array + items: + type: string + description: VLAN (name) + explode: true + style: form + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_vid + 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: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vminterface + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface__n + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM Interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM Interface (ID) + explode: true + style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedL2VPNTerminationList' + description: '' + post: + operationId: vpn_l2vpn_terminations_create + description: Post a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + put: + operationId: vpn_l2vpn_terminations_bulk_update + description: Put a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + patch: + operationId: vpn_l2vpn_terminations_bulk_partial_update + description: Patch a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + delete: + operationId: vpn_l2vpn_terminations_bulk_destroy + description: Delete a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpn-terminations/{id}/: + get: + operationId: vpn_l2vpn_terminations_retrieve + description: Get a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + put: + operationId: vpn_l2vpn_terminations_update + description: Put a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + patch: + operationId: vpn_l2vpn_terminations_partial_update + description: Patch a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + delete: + operationId: vpn_l2vpn_terminations_destroy + description: Delete a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpns/: + get: + operationId: vpn_l2vpns_list + description: Get a list of L2VPN objects. + parameters: + - 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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + 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: identifier + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__empty + schema: + type: boolean + - in: query + name: identifier__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: import_target + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target__n + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target_id + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form + - in: query + name: import_target_id__n + schema: + type: array + items: + type: integer + description: Import target + 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: + 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: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + 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 + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 4c9738ba3d741dd4 + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedL2VPNList' + description: '' + post: + operationId: vpn_l2vpns_create + description: Post a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + put: + operationId: vpn_l2vpns_bulk_update + description: Put a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPN' + description: '' + patch: + operationId: vpn_l2vpns_bulk_partial_update + description: Patch a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPN' + description: '' + delete: + operationId: vpn_l2vpns_bulk_destroy + description: Delete a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpns/{id}/: + get: + operationId: vpn_l2vpns_retrieve + description: Get a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + put: + operationId: vpn_l2vpns_update + description: Put a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + patch: + operationId: vpn_l2vpns_partial_update + description: Patch a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + delete: + operationId: vpn_l2vpns_destroy + description: Delete a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-groups/: + get: + operationId: vpn_tunnel_groups_list + description: Get a list of tunnel group objects. + parameters: + - 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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + 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: 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: + 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: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelGroupList' + description: '' + post: + operationId: vpn_tunnel_groups_create + description: Post a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + put: + operationId: vpn_tunnel_groups_bulk_update + description: Put a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroup' + description: '' + patch: + operationId: vpn_tunnel_groups_bulk_partial_update + description: Patch a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroup' + description: '' + delete: + operationId: vpn_tunnel_groups_bulk_destroy + description: Delete a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-groups/{id}/: + get: + operationId: vpn_tunnel_groups_retrieve + description: Get a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + put: + operationId: vpn_tunnel_groups_update + description: Put a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + patch: + operationId: vpn_tunnel_groups_partial_update + description: Patch a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedTunnelGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedTunnelGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + delete: + operationId: vpn_tunnel_groups_destroy + description: Delete a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-terminations/: + get: + operationId: vpn_tunnel_terminations_list + description: Get a list of tunnel termination objects. + parameters: + - 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: 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: interface + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + 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 + - 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: outside_ip_id + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: outside_ip_id__n + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__empty + schema: + type: boolean + - in: query + name: role__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + 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: termination_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_type + schema: + type: string + - in: query + name: termination_type__n + schema: + type: string + - in: query + name: tunnel + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel__n + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel_id + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vminterface + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface__n + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelTerminationList' + description: '' + post: + operationId: vpn_tunnel_terminations_create + description: Post a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_bulk_update + description: Put a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_bulk_partial_update + description: Patch a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_bulk_destroy + description: Delete a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-terminations/{id}/: + get: + operationId: vpn_tunnel_terminations_retrieve + description: Get a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_update + description: Put a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_partial_update + description: Patch a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_destroy + description: Delete a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnels/: + get: + operationId: vpn_tunnels_list + description: Get a list of tunnel objects. + parameters: + - 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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encapsulation + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__empty + schema: + type: boolean + - in: query + name: encapsulation__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__n + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: encapsulation__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 54a2e45824009c49 + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + 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: ipsec_profile + schema: + type: array + items: + type: string + description: IPSec profile (name) + explode: true + style: form + - in: query + name: ipsec_profile__n + schema: + type: array + items: + type: string + description: IPSec profile (name) + explode: true + style: form + - in: query + name: ipsec_profile_id + schema: + type: array + items: + type: integer + nullable: true + description: IPSec profile (ID) + explode: true + style: form + - in: query + name: ipsec_profile_id__n + schema: + type: array + items: + type: integer + nullable: true + description: IPSec profile (ID) + 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: + 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: q + schema: + type: string + description: Search + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: tunnel_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__empty + schema: + type: boolean + - in: query + name: tunnel_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelList' + description: '' + post: + operationId: vpn_tunnels_create + description: Post a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + put: + operationId: vpn_tunnels_bulk_update + description: Put a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Tunnel' + description: '' + patch: + operationId: vpn_tunnels_bulk_partial_update + description: Patch a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Tunnel' + description: '' + delete: + operationId: vpn_tunnels_bulk_destroy + description: Delete a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnels/{id}/: + get: + operationId: vpn_tunnels_retrieve + description: Get a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + put: + operationId: vpn_tunnels_update + description: Put a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + patch: + operationId: vpn_tunnels_partial_update + description: Patch a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + delete: + operationId: vpn_tunnels_destroy + description: Delete a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lan-groups/: + get: + operationId: wireless_wireless_lan_groups_list + description: Get a list of wireless LAN group objects. + parameters: + - in: query + name: ancestor + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + 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: 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: + 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: parent + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + description: '' + post: + operationId: wireless_wireless_lan_groups_create + description: Post a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_bulk_update + description: Put a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_bulk_partial_update + description: Patch a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_bulk_destroy + description: Delete a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lan-groups/{id}/: + get: + operationId: wireless_wireless_lan_groups_retrieve + 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. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_update + 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. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_partial_update + 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. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_destroy + 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. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/: + get: + operationId: wireless_wireless_lans_list + description: Get a list of wireless LAN objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__empty + schema: + type: boolean + - in: query + name: auth_cipher__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__empty + schema: + type: boolean + - in: query + name: auth_type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication 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__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: string + 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: interface_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + 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: location + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - 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: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: scope_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__empty + schema: + type: boolean + - in: query + name: scope_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_type + schema: + type: string + - in: query + name: scope_type__n + schema: + type: string + - 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 + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANList' + description: '' + post: + operationId: wireless_wireless_lans_create + description: Post a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_bulk_update + description: Put a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_bulk_partial_update + description: Patch a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_bulk_destroy + description: Delete a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/{id}/: + get: + operationId: wireless_wireless_lans_retrieve + description: Get a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_update + description: Put a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_partial_update + description: Patch a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_destroy + description: Delete a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/: + get: + operationId: wireless_wireless_links_list + description: Get a list of wireless link objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__empty + schema: + type: boolean + - in: query + name: auth_cipher__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + nullable: true + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__empty + schema: + type: boolean + - in: query + name: auth_type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + nullable: true + title: Authentication 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__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: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: distance + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__empty + schema: + type: boolean + - in: query + name: distance__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance_unit + schema: + type: string + x-spec-enum-id: 53542e7902f946af + nullable: true + enum: + - ft + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + - 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: interface_a_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_a_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id__n + schema: + type: array + items: + type: integer + 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 + - 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: q + schema: + type: string + description: Search + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + 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: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLinkList' + description: '' + post: + operationId: wireless_wireless_links_create + description: Post a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_bulk_update + description: Put a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_bulk_partial_update + description: Patch a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_bulk_destroy + description: Delete a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/{id}/: + get: + operationId: wireless_wireless_links_retrieve + description: Get a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_update + description: Put a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_partial_update + description: Patch a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_destroy + description: Delete a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body +components: + schemas: + ASN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIR' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + site_count: + type: integer + format: int64 + readOnly: true + provider_count: + type: integer + format: int64 + readOnly: true + required: + - asn + - display + - id + - url + ASNRange: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIR' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + asn_count: + type: integer + readOnly: true + required: + - asn_count + - display + - end + - id + - name + - rir + - slug + - start + - url + ASNRangeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIRRequest' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - end + - name + - rir + - slug + - start + ASNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIRRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - asn + Aggregate: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + prefix: + type: string + rir: + $ref: '#/components/schemas/BriefRIR' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - display + - family + - id + - prefix + - rir + - url + AggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/BriefRIRRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - prefix + - rir + AvailableASN: + type: object + description: Representation of an ASN which does not exist in the database. + properties: + asn: + type: integer + readOnly: true + description: + type: string + required: + - asn + AvailableIP: + type: object + description: Representation of an IP address which does not exist in the database. + properties: + family: + type: integer + readOnly: true + address: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + description: + type: string + required: + - address + - family + AvailablePrefix: + type: object + description: Representation of a prefix which does not exist in the database. + properties: + family: + type: integer + readOnly: true + prefix: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + required: + - family + - prefix + AvailableVLAN: + type: object + description: Representation of a VLAN which does not exist in the database. + properties: + vid: + type: integer + readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + readOnly: true + nullable: true + required: + - 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: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - display + - id + - 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/BriefUserRequest' + required: + - object_id + - object_type + - user + BriefCable: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefCableRequest: + type: object + description: Adds support for custom fields and tags. + properties: + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + BriefCircuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + description: + type: string + maxLength: 200 + required: + - cid + - display + - id + - provider + - url + BriefCircuitGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + required: + - display + - id + - name + - url + BriefCircuitGroupAssignmentSerializer_: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + group: + $ref: '#/components/schemas/BriefCircuitGroup' + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + required: + - display + - group + - id + - url + BriefCircuitGroupAssignmentSerializer_Request: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + required: + - group + BriefCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + required: + - name + BriefCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + description: + type: string + maxLength: 200 + required: + - cid + - provider + BriefCircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefCircuitTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCluster: + type: object + description: Adds support for custom fields and tags. + 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 + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefClusterGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefClusterGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefClusterRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefClusterType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefClusterTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefConfigTemplate: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + 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 + required: + - display + - id + - name + - url + BriefConfigTemplateRequest: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContact: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefContactGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + contact_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - contact_count + - display + - id + - name + - slug + - url + BriefContactGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefContactRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContactRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefContactRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCustomFieldChoiceSet: + 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 + choices_count: + type: string + readOnly: true + required: + - choices_count + - display + - id + - name + - url + BriefCustomFieldChoiceSetRequest: + 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 + required: + - name + BriefDataFile: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + path: + type: string + readOnly: true + description: File path relative to the data source's root + required: + - display + - id + - path + - url + BriefDataSource: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefDataSourceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefDevice: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefDeviceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + BriefDeviceRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefDeviceRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefDeviceType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - manufacturer + - model + - slug + - url + BriefDeviceTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefFHRPGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - display + - group_id + - id + - protocol + - url + BriefFHRPGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - group_id + - protocol + BriefIKEPolicy: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefIKEPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPAddress: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + address: + type: string + description: + type: string + maxLength: 200 + required: + - address + - display + - family + - id + - url + BriefIPAddressRequest: + type: object + description: Adds support for custom fields and tags. + properties: + address: + type: string + minLength: 1 + description: + type: string + maxLength: 200 + required: + - address + BriefIPSecPolicy: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefIPSecPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPSecProfile: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefIPSecProfileRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefInterface: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - device + - display + - id + - name + - url + BriefInterfaceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefInventoryItemRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + inventoryitem_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - inventoryitem_count + - name + - slug + - url + BriefInventoryItemRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefJob: + type: object + properties: + url: + type: string + format: uri + readOnly: true + status: + type: object + properties: + value: + enum: + - pending + - scheduled + - running + - completed + - errored + - failed + type: string + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' + x-spec-enum-id: e33887d83efcc138 + label: + type: string + enum: + - Pending + - Scheduled + - Running + - Completed + - Errored + - Failed + readOnly: true + created: + type: string + format: date-time + readOnly: true + completed: + type: string + format: date-time + nullable: true + user: + allOf: + - $ref: '#/components/schemas/BriefUser' + readOnly: true + required: + - status + - url + - user + BriefJobRequest: + type: object + properties: + completed: + type: string + format: date-time + nullable: true + BriefL2VPN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + type: object + properties: + value: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - evpn-vpws + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `evpn-vpws` - EVPN VPWS + + * `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' + x-spec-enum-id: 4c9738ba3d741dd4 + label: + type: string + enum: + - VPWS + - VPLS + - VXLAN + - VXLAN-EVPN + - MPLS EVPN + - PBB EVPN + - EVPN VPWS + - EPL + - EVPL + - Ethernet Private LAN + - Ethernet Virtual Private LAN + - Ethernet Private Tree + - Ethernet Virtual Private Tree + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefL2VPNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - evpn-vpws + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `evpn-vpws` - EVPN VPWS + + * `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' + x-spec-enum-id: 4c9738ba3d741dd4 + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefL2VPNTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + l2vpn: + $ref: '#/components/schemas/BriefL2VPN' + required: + - display + - id + - l2vpn + - url + BriefL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/BriefL2VPNRequest' + required: + - l2vpn + BriefLocation: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + BriefLocationRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefMACAddress: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + mac_address: + type: string + description: + type: string + maxLength: 200 + required: + - display + - id + - mac_address + - url + BriefMACAddressRequest: + type: object + description: Adds support for custom fields and tags. + properties: + mac_address: + type: string + description: + type: string + maxLength: 200 + required: + - mac_address + BriefManufacturer: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + devicetype_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefManufacturerRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefModule: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + module_bay: + $ref: '#/components/schemas/NestedModuleBay' + required: + - device + - display + - id + - module_bay + - url + BriefModuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module_bay: + $ref: '#/components/schemas/NestedModuleBayRequest' + required: + - device + - module_bay + BriefModuleType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - url + BriefModuleTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + BriefPlatform: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefPlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefPowerPanel: + type: object + description: Adds support for custom fields and tags. + 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 + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - powerfeed_count + - url + BriefPowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefPowerPort: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - device + - display + - id + - name + - url + BriefPowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefPowerPortTemplate: + 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 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefPowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefProvider: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: Full name of the provider + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefProviderAccount: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + default: '' + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + - display + - id + - url + BriefProviderAccountRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + default: '' + maxLength: 100 + account: + type: string + minLength: 1 + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + BriefProviderNetwork: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefProviderNetworkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRIR: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + aggregate_count: + type: integer + format: int64 + readOnly: true + required: + - aggregate_count + - display + - id + - name + - slug + - url + BriefRIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRack: + type: object + description: Adds support for custom fields and tags. + 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 + device_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefRackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefRackRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefRackRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - slug + - url + BriefRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefRearPortTemplate: + 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 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefRegion: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + site_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + BriefRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + prefix_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefSite: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: Full name of the site + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefSiteGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + site_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + BriefSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenant: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefTenantGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - tenant_count + - url + BriefTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenantRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnel: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefTunnelGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tunnel_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - tunnel_count + - url + BriefTunnelGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefUser: + 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 + username: + type: string + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - display + - id + - url + - username + BriefUserRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + username: + type: string + minLength: 1 + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - username + BriefVLAN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + - vid + BriefVLANGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + vlan_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefVLANGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + - vid + BriefVLANTranslationPolicy: + type: object + description: Adds support for custom fields and tags. + 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 + required: + - display + - id + - name + - url + BriefVLANTranslationPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefVRF: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + description: + type: string + maxLength: 200 + prefix_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefVRFRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + description: + type: string + maxLength: 200 + required: + - name + BriefVirtualChassis: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDevice' + nullable: true + description: + type: string + maxLength: 200 + member_count: + type: integer + readOnly: true + required: + - display + - id + - member_count + - name + - url + BriefVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDeviceRequest' + nullable: true + description: + type: string + maxLength: 200 + required: + - name + BriefVirtualCircuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider_network: + $ref: '#/components/schemas/BriefProviderNetwork' + description: + type: string + maxLength: 200 + required: + - cid + - display + - id + - provider_network + - url + BriefVirtualCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider_network: + $ref: '#/components/schemas/BriefProviderNetworkRequest' + description: + type: string + maxLength: 200 + required: + - cid + - provider_network + BriefVirtualCircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + virtual_circuit_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + - virtual_circuit_count + BriefVirtualCircuitTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefVirtualMachine: + type: object + description: Adds support for custom fields and tags. + properties: + id: type: integer readOnly: true - group: - allOf: - - $ref: '#/components/schemas/VLANGroup' + url: + type: string + format: uri readOnly: true - nullable: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 required: - - group - - vid - Bookmark: + - display + - id + - name + - url + BriefVirtualMachineRequest: 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: + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefWirelessLANGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. properties: id: type: integer @@ -101996,51 +120137,51 @@ components: display: type: string readOnly: true - object_type: + name: type: string - object_id: + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + wirelesslan_count: type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - object: - nullable: true readOnly: true - user: - $ref: '#/components/schemas/User' - created: - type: string - format: date-time + default: 0 + _depth: + type: integer readOnly: true + title: ' depth' required: - - created + - _depth - display - id - - object - - object_id - - object_type + - name + - slug - url - - user - BookmarkRequest: + - wirelesslan_count + BriefWirelessLANGroupRequest: 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: Extends PrimaryModelSerializer to include MPTT support. properties: - object_type: + name: type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/UserRequest' + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 required: - - object_id - - object_type - - user + - name + - slug Cable: type: object description: Adds support for custom fields and tags. @@ -102052,15 +120193,195 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' + type: string + description: '* `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) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + status: + type: object + properties: + value: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + label: + type: string + enum: + - Connected + - Planned + - Decommissioning + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true label: type: string maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + type: object + properties: + value: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + label: + type: string + enum: + - Kilometers + - Meters + - Centimeters + - Miles + - Feet + - Inches + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - display - id @@ -102069,12 +120390,157 @@ components: type: object description: Adds support for custom fields and tags. properties: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' + type: string + description: '* `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) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true label: type: string maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} CableTermination: type: object description: Adds support for custom fields and tags. @@ -102124,11 +120590,8 @@ components: required: - cable - cable_end - - created - display - id - - last_updated - - termination - termination_id - termination_type - url @@ -102171,6 +120634,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102179,14 +120646,447 @@ components: title: Circuit ID description: Unique circuit ID maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccount' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitType' + status: + type: object + properties: + value: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + label: + type: string + enum: + - Planned + - Provisioning + - Active + - Offline + - Deprovisioning + - Decommissioned + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Commit rate (Kbps) + description: Committed rate description: type: string maxLength: 200 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + type: object + properties: + value: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + label: + type: string + enum: + - Kilometers + - Meters + - Miles + - Feet + nullable: true + termination_a: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' + readOnly: true + nullable: true + termination_z: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' + readOnly: true + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_' required: - cid - display - id + - provider + - type + - url + CircuitCircuitTermination: + 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_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + termination_type: + type: string + nullable: true + termination_id: + type: integer + nullable: true + termination: + nullable: true + readOnly: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + CircuitCircuitTerminationRequest: + 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: + termination_type: + type: string + nullable: true + termination_id: + type: integer + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + description: + type: string + maxLength: 200 + CircuitGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + CircuitGroupAssignment: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + group: + $ref: '#/components/schemas/BriefCircuitGroup' + member_type: + type: string + member_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + member: + nullable: true + readOnly: true + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - display + - group + - id + - member_id + - member_type - url + CircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + member_type: + type: string + member_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - group + - member_id + - member_type + CircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug CircuitRequest: type: object description: Adds support for custom fields and tags. @@ -102197,11 +121097,101 @@ components: title: Circuit ID description: Unique circuit ID maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Commit rate (Kbps) + description: Committed rate description: type: string maxLength: 200 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' required: - cid + - provider + - type CircuitTermination: type: object description: Adds support for custom fields and tags. @@ -102213,11 +121203,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true circuit: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/BriefCircuit' term_side: enum: - A @@ -102227,15 +121221,16 @@ components: * `Z` - Z' x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/Site' + title: Termination side + termination_type: + type: string nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/ProviderNetwork' + termination_id: + type: integer nullable: true + termination: + nullable: true + readOnly: true port_speed: type: integer maximum: 2147483647 @@ -102268,7 +121263,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -102282,6 +121277,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -102305,15 +121301,11 @@ components: title: ' occupied' required: - _occupied - - cable - cable_end - circuit - - created - display - id - - last_updated - link_peers - - link_peers_type - term_side - url CircuitTerminationRequest: @@ -102321,7 +121313,7 @@ components: description: Adds support for custom fields and tags. properties: circuit: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/BriefCircuitRequest' term_side: enum: - A @@ -102331,14 +121323,12 @@ components: * `Z` - Z' x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' + title: Termination side + termination_type: + type: string nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' + termination_id: + type: integer nullable: true port_speed: type: integer @@ -102391,6 +121381,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102431,10 +121425,8 @@ components: readOnly: true required: - circuit_count - - created - display - id - - last_updated - name - slug - url @@ -102479,25 +121471,117 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterType' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroup' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Offline + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer + nullable: true + scope: + nullable: true + readOnly: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true virtualmachine_count: type: integer format: int64 readOnly: true + allocated_vcpus: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + readOnly: true + allocated_memory: + type: integer + readOnly: true + allocated_disk: + type: integer + readOnly: true required: + - allocated_disk + - allocated_memory + - allocated_vcpus - display - id - name + - type - url - - virtualmachine_count ClusterGroup: type: object description: Adds support for custom fields and tags. @@ -102509,6 +121593,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102544,11 +121632,8 @@ components: format: int64 readOnly: true required: - - cluster_count - - created - display - id - - last_updated - name - slug - url @@ -102586,11 +121671,55 @@ components: type: string minLength: 1 maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroupRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - type ClusterType: type: object description: Adds support for custom fields and tags. @@ -102602,6 +121731,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102637,11 +121770,8 @@ components: format: int64 readOnly: true required: - - cluster_count - - created - display - id - - last_updated - name - slug - url @@ -102685,6 +121815,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102753,14 +121887,14 @@ components: items: type: string data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -102780,14 +121914,11 @@ components: readOnly: true nullable: true required: - - created - data - data_file - data_path - - data_synced - display - id - - last_updated - name - url ConfigContextRequest: @@ -102864,7 +121995,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} required: - data @@ -102883,6 +122014,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102892,10 +122027,48 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSource' + data_path: + type: string + readOnly: true + description: Path to remote file (relative to data source root) + data_file: + $ref: '#/components/schemas/BriefDataFile' + data_synced: + type: string + format: date-time + readOnly: true + nullable: true + title: Date synced + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - data_path - display - id - name + - template_code - url ConfigTemplateRequest: type: object @@ -102911,8 +122084,24 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + minLength: 1 + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSourceRequest' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' required: - name + - template_code ConsolePort: type: object description: Adds support for custom fields and tags. @@ -102924,14 +122113,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103060,7 +122253,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103074,13 +122267,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103107,18 +122303,12 @@ components: title: ' occupied' required: - _occupied - - cable - cable_end - - connected_endpoints - connected_endpoints_reachable - - connected_endpoints_type - - created - device - display - id - - last_updated - link_peers - - link_peers_type - name - url ConsolePortRequest: @@ -103126,10 +122316,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103251,11 +122441,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103350,10 +122540,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - url ConsolePortTemplateRequest: @@ -103365,11 +122553,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103446,14 +122634,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103582,7 +122774,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103596,13 +122788,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103629,18 +122824,12 @@ components: title: ' occupied' required: - _occupied - - cable - cable_end - - connected_endpoints - connected_endpoints_reachable - - connected_endpoints_type - - created - device - display - id - - last_updated - link_peers - - link_peers_type - name - url ConsoleServerPortRequest: @@ -103648,10 +122837,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103773,11 +122962,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103872,10 +123061,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - url ConsoleServerPortTemplateRequest: @@ -103887,11 +123074,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103968,15 +123155,59 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroup' + nullable: true name: type: string maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - display - id @@ -104008,10 +123239,10 @@ components: additionalProperties: {} readOnly: true contact: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/BriefContact' role: allOf: - - $ref: '#/components/schemas/ContactRole' + - $ref: '#/components/schemas/BriefContactRole' nullable: true priority: type: object @@ -104058,10 +123289,8 @@ components: nullable: true required: - contact - - created - display - id - - last_updated - object - object_id - object_type @@ -104078,10 +123307,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -104121,6 +123350,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104166,10 +123399,8 @@ components: required: - _depth - contact_count - - created - display - id - - last_updated - name - slug - url @@ -104207,13 +123438,43 @@ components: type: object description: Adds support for custom fields and tags. properties: + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroupRequest' + nullable: true name: type: string minLength: 1 maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name ContactRole: @@ -104227,6 +123488,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104240,6 +123505,23 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - display - id @@ -104262,6 +123544,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -104279,6 +123568,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104372,8 +123665,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104450,6 +123747,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104480,7 +123781,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSet' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSet' nullable: true comments: type: string @@ -104495,11 +123796,9 @@ components: readOnly: true nullable: true required: - - created - data_type - display - id - - last_updated - name - object_types - type @@ -104518,6 +123817,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104573,11 +123876,9 @@ components: nullable: true required: - choices_count - - created - display - extra_choices - id - - last_updated - name - url CustomFieldChoiceSetRequest: @@ -104695,8 +123996,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104746,6 +124051,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104776,7 +124085,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -104798,6 +124107,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104826,7 +124139,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104842,12 +124155,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -104890,10 +124203,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - link_text - link_url - name @@ -104934,7 +124245,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104950,12 +124261,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -105013,12 +124324,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true source: allOf: - - $ref: '#/components/schemas/DataSource' + - $ref: '#/components/schemas/BriefDataSource' readOnly: true path: type: string @@ -105055,19 +124370,115 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + type: object + properties: + value: + enum: + - local + - git + - amazon-s3 + description: '* `None` - --------- + + * `local` - Local + + * `git` - Git + + * `amazon-s3` - Amazon S3' + x-spec-enum-id: 570db3f2d4e98ccf + label: + type: string + enum: + - '---------' + - Local + - Git + - Amazon S3 + source_url: + type: string + title: URL + maxLength: 200 + enabled: + type: boolean + status: + type: object + properties: + value: + enum: + - new + - queued + - syncing + - completed + - failed + type: string + description: '* `new` - New + + * `queued` - Queued + + * `syncing` - Syncing + + * `completed` - Completed + + * `failed` - Failed' + x-spec-enum-id: 6dfb2220617590c8 + label: + type: string + enum: + - New + - Queued + - Syncing + - Completed + - Failed + readOnly: true description: type: string maxLength: 200 + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + last_synced: + type: string + format: date-time + readOnly: true + nullable: true + file_count: + type: integer + format: int64 + readOnly: true required: - display + - file_count - id - name + - source_url + - status + - type - url DataSourceRequest: type: object @@ -105100,13 +124511,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -105125,6 +124536,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105133,16 +124548,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105155,14 +124570,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105211,8 +124626,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105260,6 +124675,9 @@ components: - left-to-right - right-to-left - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom - passive - mixed - '' @@ -105274,10 +124692,16 @@ components: * `side-to-rear` - Side to rear + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + * `passive` - Passive * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d + x-spec-enum-id: 943288113dad6782 label: type: string enum: @@ -105286,32 +124710,35 @@ components: - Left to right - Right to left - Side to rear + - Rear to side + - Bottom to top + - Top to bottom - Passive - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105331,7 +124758,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -105385,26 +124812,11 @@ components: type: integer readOnly: true required: - - console_port_count - - console_server_port_count - - created - - device_bay_count - - 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 + - display + - name + - description DeviceBay: type: object description: Adds support for custom fields and tags. @@ -105416,11 +124828,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' name: type: string maxLength: 64 @@ -105433,7 +124849,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true tags: type: array @@ -105453,11 +124869,9 @@ components: readOnly: true nullable: true required: - - created - device - display - id - - last_updated - name - url DeviceBayRequest: @@ -105465,7 +124879,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' name: type: string minLength: 1 @@ -105479,7 +124893,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true tags: type: array @@ -105509,7 +124923,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' name: type: string description: '{module} is accepted as a substitution for the module bay @@ -105533,11 +124947,9 @@ components: readOnly: true nullable: true required: - - created - device_type - display - id - - last_updated - name - url DeviceBayTemplateRequest: @@ -105548,7 +124960,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' name: type: string minLength: 1 @@ -105565,17 +124977,6 @@ components: required: - device_type - name - DeviceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - description: - type: string - maxLength: 200 DeviceRole: type: object description: Adds support for custom fields and tags. @@ -105587,6 +124988,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105597,9 +125002,37 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + vm_role: + type: boolean + description: Virtual machines may be assigned to this role + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplate' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 @@ -105609,13 +125042,11 @@ components: format: int64 readOnly: true required: - - device_count - display - id - name - slug - url - - virtualmachine_count DeviceRoleRequest: type: object description: Adds support for custom fields and tags. @@ -105639,7 +125070,7 @@ components: description: Virtual machines may be assigned to this role config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true description: type: string @@ -105665,11 +125096,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatform' + nullable: true model: type: string maxLength: 100 @@ -105677,19 +125116,208 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + type: object + properties: + value: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + label: + type: string + enum: + - Parent + - Child + nullable: true + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom + - passive + - mixed + - '' + type: string + description: '* `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 + + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 943288113dad6782 + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Rear to side + - Bottom to top + - Top to bottom + - Passive + - Mixed + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + front_image: + type: string + format: uri + nullable: true + rear_image: + type: string + format: uri + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 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: - - device_count + - console_port_template_count + - console_server_port_template_count + - device_bay_template_count - display + - front_port_template_count - id + - interface_template_count + - inventory_item_template_count - manufacturer - model + - module_bay_template_count + - power_outlet_template_count + - power_port_template_count + - rear_port_template_count - slug - url DeviceTypeRequest: @@ -105697,7 +125325,11 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true model: type: string minLength: 1 @@ -105707,9 +125339,113 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + nullable: true + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom + - passive + - mixed + - '' + type: string + description: '* `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 + + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 943288113dad6782 + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + front_image: + type: string + format: binary + rear_image: + type: string + format: binary description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -105725,6 +125461,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105733,16 +125473,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105755,14 +125495,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105811,8 +125551,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105860,6 +125600,9 @@ components: - left-to-right - right-to-left - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom - passive - mixed - '' @@ -105874,10 +125617,16 @@ components: * `side-to-rear` - Side to rear + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + * `passive` - Passive * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d + x-spec-enum-id: 943288113dad6782 label: type: string enum: @@ -105886,32 +125635,35 @@ components: - Left to right - Right to left - Side to rear + - Rear to side + - Bottom to top + - Top to bottom - Passive - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105931,7 +125683,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true config_context: nullable: true @@ -105988,10 +125740,8 @@ components: type: integer readOnly: true required: - - config_context - console_port_count - console_server_port_count - - created - device_bay_count - device_type - display @@ -105999,12 +125749,9 @@ components: - 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 @@ -106018,16 +125765,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -106040,14 +125787,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -106116,6 +125863,9 @@ components: - left-to-right - right-to-left - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom - passive - mixed - '' @@ -106130,29 +125880,35 @@ components: * `side-to-rear` - Side to rear + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + * `passive` - Passive * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d + x-spec-enum-id: 943288113dad6782 primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -106172,7 +125928,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -106200,6 +125956,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106210,28 +125970,35 @@ components: name: type: string 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. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106243,16 +126010,20 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 label: type: string enum: - Webhook - Script + - Notification action_object_type: type: string action_object_id: @@ -106289,10 +126060,9 @@ components: - action_object - action_object_type - action_type - - created - display + - event_types - id - - last_updated - name - object_types - url @@ -106308,28 +126078,35 @@ components: type: string minLength: 1 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. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106338,11 +126115,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -106364,6 +126144,7 @@ components: required: - action_object_type - action_type + - event_types - name - object_types ExportTemplate: @@ -106380,6 +126161,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106409,14 +126194,14 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -106435,13 +126220,10 @@ components: readOnly: true nullable: true required: - - created - data_file - data_path - - data_synced - display - id - - last_updated - name - object_types - template_code @@ -106481,7 +126263,7 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' required: - name - object_types @@ -106493,10 +126275,17 @@ components: id: type: integer readOnly: true + name: + type: string + maxLength: 100 url: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106528,13 +126317,54 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ip_addresses: + type: array + items: + $ref: '#/components/schemas/BriefIPAddress' + readOnly: true required: - display - group_id - id + - ip_addresses - protocol - url FHRPGroupAssignment: @@ -106552,7 +126382,7 @@ components: type: string readOnly: true group: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/BriefFHRPGroup' interface_type: type: string interface_id: @@ -106578,14 +126408,11 @@ components: readOnly: true nullable: true required: - - created - display - group - id - - interface - interface_id - interface_type - - last_updated - priority - url FHRPGroupAssignmentRequest: @@ -106593,7 +126420,7 @@ components: description: Adds support for custom fields and tags. properties: group: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/BriefFHRPGroupRequest' interface_type: type: string interface_id: @@ -106614,6 +126441,9 @@ components: type: object description: Adds support for custom fields and tags. properties: + name: + type: string + maxLength: 100 protocol: enum: - vrrp2 @@ -106642,9 +126472,34 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + nullable: true + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - group_id - protocol @@ -106659,14 +126514,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -106726,6 +126585,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -106820,8 +126687,24 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -106871,6 +126754,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -106882,7 +126773,6 @@ components: type: integer maximum: 1024 minimum: 1 - default: 1 description: Mapped position on corresponding rear port description: type: string @@ -106892,7 +126782,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -106906,6 +126796,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -106929,15 +126820,11 @@ components: title: ' occupied' required: - _occupied - - cable - cable_end - - created - device - display - id - - last_updated - link_peers - - link_peers_type - name - rear_port - type @@ -106954,6 +126841,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106995,10 +126886,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -107056,6 +126947,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107150,8 +127049,24 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -107162,7 +127077,6 @@ components: type: integer maximum: 1024 minimum: 1 - default: 1 description: Mapped position on corresponding rear port description: type: string @@ -107201,11 +127115,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -107267,6 +127181,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107361,8 +127283,24 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -107412,18 +127350,25 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/BriefRearPortTemplate' rear_port_position: type: integer maximum: 1024 minimum: 1 - default: 1 description: type: string maxLength: 200 @@ -107438,10 +127383,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - rear_port - type @@ -107455,11 +127398,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -107519,6 +127462,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107613,19 +127564,34 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 minimum: 1 - default: 1 description: type: string maxLength: 200 @@ -107633,6 +127599,21 @@ components: - name - rear_port - type + GenericObject: + type: object + description: Minimal representation of some generic object identified by ContentType + and PK. + properties: + object_type: + type: string + object_id: + type: integer + object: + nullable: true + readOnly: true + required: + - object_id + - object_type GenericObjectRequest: type: object description: Minimal representation of some generic object identified by ContentType @@ -107659,6 +127640,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107712,6 +127697,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107782,11 +127771,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - - mode - name - url - version @@ -107836,7 +127822,6 @@ components: type: object additionalProperties: {} required: - - mode - name - version IKEProposal: @@ -107850,6 +127835,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108085,14 +128074,11 @@ components: readOnly: true nullable: true required: - - authentication_algorithm - authentication_method - - created - display - encryption_algorithm - group - id - - last_updated - name - url IKEProposalRequest: @@ -108257,7 +128243,6 @@ components: type: object additionalProperties: {} required: - - authentication_algorithm - authentication_method - encryption_algorithm - group @@ -108273,6 +128258,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108296,14 +128285,139 @@ components: readOnly: true address: type: string + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + - DHCP + - SLAAC + role: + type: object + properties: + value: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + label: + type: string + enum: + - Loopback + - Secondary + - Anycast + - VIP + - VRRP + - HSRP + - GLBP + - CARP + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + assigned_object: + nullable: true + readOnly: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddress' + nullable: true + nat_outside: + type: array + items: + $ref: '#/components/schemas/NestedIPAddress' + readOnly: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - address - display - family - id + - nat_outside - url IPAddressRequest: type: object @@ -108312,9 +128426,90 @@ components: address: type: string minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + role: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddressRequest' + nullable: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - address IPRange: @@ -108328,6 +128523,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108358,11 +128557,11 @@ components: readOnly: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true status: type: object @@ -108387,7 +128586,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true description: type: string @@ -108415,12 +128614,10 @@ components: type: boolean description: Treat as fully utilized required: - - created - display - end_address - family - id - - last_updated - size - start_address - url @@ -108436,11 +128633,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -108456,7 +128653,7 @@ components: x-spec-enum-id: 6388dfb94ca1cc15 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -108487,6 +128684,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108625,10 +128826,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - url IPSecPolicyRequest: @@ -108743,6 +128942,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108770,9 +128973,9 @@ components: - ESP - AH ike_policy: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/BriefIKEPolicy' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/BriefIPSecPolicy' comments: type: string tags: @@ -108793,12 +128996,10 @@ components: readOnly: true nullable: true required: - - created - display - id - ike_policy - ipsec_policy - - last_updated - mode - name - url @@ -108823,9 +129024,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -108851,6 +129052,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108964,12 +129169,8 @@ components: readOnly: true nullable: true required: - - authentication_algorithm - - created - display - - encryption_algorithm - id - - last_updated - name - url IPSecProposalRequest: @@ -109052,8 +129253,6 @@ components: type: object additionalProperties: {} required: - - authentication_algorithm - - encryption_algorithm - name ImageAttachment: type: object @@ -109090,12 +129289,10 @@ components: format: uri image_height: type: integer - maximum: 32767 - minimum: 0 + readOnly: true image_width: type: integer - maximum: 32767 - minimum: 0 + readOnly: true created: type: string format: date-time @@ -109107,16 +129304,13 @@ components: readOnly: true nullable: true required: - - created - display - id - image - image_height - image_width - - last_updated - object_id - object_type - - parent - url ImageAttachmentRequest: type: object @@ -109138,18 +129332,8 @@ components: image: type: string format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 required: - image - - image_height - - image_width - object_id - object_type Interface: @@ -109163,18 +129347,22 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' vdcs: type: array items: $ref: '#/components/schemas/VirtualDeviceContext' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -109196,10 +129384,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -109249,7 +129440,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -109330,6 +129523,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -109338,6 +129535,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -109436,8 +129635,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -109563,7 +129766,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b label: type: string enum: @@ -109575,10 +129778,13 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-LX (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) - 10GBASE-CX4 (10GE) + - SFP (100ME) - GBIC (1GE) - SFP (1GE) - SFP+ (10GE) @@ -109628,7 +129834,9 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) + - IEEE 802.15.4 (LR-WPAN) - Other (Wireless) - GSM - CDMA @@ -109713,6 +129921,17 @@ components: nullable: true mac_address: type: string + readOnly: true + nullable: true + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddress' + nullable: true + mac_addresses: + type: array + items: + $ref: '#/components/schemas/BriefMACAddress' + readOnly: true nullable: true speed: type: integer @@ -109761,20 +129980,24 @@ components: - access - tagged - tagged-all + - q-in-q - '' type: string description: '* `access` - Access * `tagged` - Tagged - * `tagged-all` - Tagged (All)' - x-spec-enum-id: 79109bd9dbb73a3c + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' + x-spec-enum-id: b6fe48fe21dbf01d label: type: string enum: - Access - Tagged - Tagged (All) + - Q-in-Q (802.1ad) rf_role: type: object properties: @@ -110679,18 +130902,26 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array items: $ref: '#/components/schemas/VLAN' + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLAN' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicy' + nullable: true mark_connected: type: boolean description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -110709,26 +130940,29 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true wireless_lans: type: array items: $ref: '#/components/schemas/WirelessLAN' vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -110761,38 +130995,30 @@ components: title: ' occupied' required: - _occupied - - cable - cable_end - - connected_endpoints - connected_endpoints_reachable - - connected_endpoints_type - count_fhrp_groups - count_ipaddresses - - created - device - display - id - - l2vpn_termination - - last_updated - link_peers - - link_peers_type - name - type - url - - wireless_link InterfaceRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -110812,10 +131038,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -110865,7 +131094,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -110946,6 +131177,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -110954,6 +131189,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -111052,8 +131289,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -111179,7 +131420,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b enabled: type: boolean parent: @@ -111199,8 +131440,9 @@ components: maximum: 65536 minimum: 1 nullable: true - mac_address: - type: string + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddressRequest' nullable: true speed: type: integer @@ -111237,14 +131479,17 @@ components: - access - tagged - tagged-all + - q-in-q - '' type: string description: '* `access` - Access * `tagged` - Tagged - * `tagged-all` - Tagged (All)' - x-spec-enum-id: 79109bd9dbb73a3c + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' + x-spec-enum-id: b6fe48fe21dbf01d rf_role: enum: - ap @@ -111916,12 +132161,20 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array items: type: integer + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest' + nullable: true mark_connected: type: boolean description: Treat as if a cable is connected @@ -111931,7 +132184,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -111963,11 +132216,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -111991,10 +132244,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -112044,7 +132300,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -112125,6 +132383,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112133,6 +132395,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -112231,8 +132495,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -112358,7 +132626,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b label: type: string enum: @@ -112370,10 +132638,13 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-LX (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) - 10GBASE-CX4 (10GE) + - SFP (100ME) - GBIC (1GE) - SFP (1GE) - SFP+ (10GE) @@ -112423,7 +132694,9 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) + - IEEE 802.15.4 (LR-WPAN) - Other (Wireless) - GSM - CDMA @@ -112591,10 +132864,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - type - url @@ -112607,11 +132878,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -112633,10 +132904,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -112686,7 +132960,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -112767,6 +133043,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112775,6 +133055,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -112873,8 +133155,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -113000,7 +133286,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b enabled: type: boolean mgmt_only: @@ -113078,11 +133364,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' parent: type: integer nullable: true @@ -113093,13 +133383,46 @@ components: type: string description: Physical label maxLength: 64 + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + label: + type: string + enum: + - Offline + - Active + - Planned + - Staged + - Failed + - Decommissioning role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113155,12 +133478,9 @@ components: title: ' depth' required: - _depth - - component - - created - device - display - id - - last_updated - name - url InventoryItemRequest: @@ -113168,7 +133488,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' parent: type: integer nullable: true @@ -113180,13 +133500,34 @@ components: type: string description: Physical label maxLength: 64 + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113237,6 +133578,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113276,11 +133621,9 @@ components: format: int64 readOnly: true required: - - created - display - id - inventoryitem_count - - last_updated - name - slug - url @@ -113333,7 +133676,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' parent: type: integer nullable: true @@ -113348,11 +133691,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113389,12 +133732,9 @@ components: title: ' depth' required: - _depth - - component - - created - device_type - display - id - - last_updated - name - url InventoryItemTemplateRequest: @@ -113405,7 +133745,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' parent: type: integer nullable: true @@ -113421,11 +133761,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113456,6 +133796,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113529,7 +133873,7 @@ components: nullable: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true data: nullable: true @@ -113540,7 +133884,6 @@ components: type: string format: uuid required: - - created - display - error - id @@ -113550,13 +133893,6 @@ components: - status - url - user - JobRequest: - type: object - properties: - completed: - type: string - format: date-time - nullable: true JournalEntry: type: object description: Adds support for custom fields and tags. @@ -113568,6 +133904,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113629,14 +133969,11 @@ components: readOnly: true nullable: true required: - - assigned_object - assigned_object_id - assigned_object_type - comments - - created - display - id - - last_updated - url JournalEntryRequest: type: object @@ -113692,6 +134029,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113719,6 +134060,7 @@ components: - vxlan-evpn - mpls-evpn - pbb-evpn + - evpn-vpws - epl - evpl - ep-lan @@ -113738,6 +134080,8 @@ components: * `pbb-evpn` - PBB EVPN + * `evpn-vpws` - EVPN VPWS + * `epl` - EPL * `evpl` - EVPL @@ -113749,7 +134093,7 @@ components: * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 + x-spec-enum-id: 4c9738ba3d741dd4 label: type: string enum: @@ -113759,15 +134103,47 @@ components: - VXLAN-EVPN - MPLS EVPN - PBB EVPN + - EVPN VPWS - EPL - EVPL - Ethernet Private LAN - Ethernet Virtual Private LAN - Ethernet Private Tree - Ethernet Virtual Private Tree + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - display - id @@ -113801,6 +134177,7 @@ components: - vxlan-evpn - mpls-evpn - pbb-evpn + - evpn-vpws - epl - evpl - ep-lan @@ -113820,6 +134197,8 @@ components: * `pbb-evpn` - PBB EVPN + * `evpn-vpws` - EVPN VPWS + * `epl` - EPL * `evpl` - EVPL @@ -113831,10 +134210,31 @@ components: * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 + x-spec-enum-id: 4c9738ba3d741dd4 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113849,12 +134249,45 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true l2vpn: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/BriefL2VPN' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + assigned_object: + nullable: true + readOnly: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - assigned_object_id + - assigned_object_type - display - id - l2vpn @@ -113864,8 +134297,24 @@ components: description: Adds support for custom fields and tags. properties: l2vpn: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/BriefL2VPNRequest' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - assigned_object_id + - assigned_object_type - l2vpn Location: type: object @@ -113878,6 +134327,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113888,13 +134341,81 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSite' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocation' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true rack_count: type: integer readOnly: true default: 0 + device_count: + type: integer + readOnly: true + default: 0 + prefix_count: + type: integer + format: int64 + readOnly: true _depth: type: integer readOnly: true @@ -113904,7 +134425,7 @@ components: - display - id - name - - rack_count + - site - slug - url LocationRequest: @@ -113920,12 +134441,140 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSiteRequest' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocationRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site - slug + MACAddress: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + mac_address: + type: string + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + assigned_object: + nullable: true + readOnly: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - display + - id + - mac_address + - url + MACAddressRequest: + type: object + description: Adds support for custom fields and tags. + properties: + mac_address: + type: string + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - mac_address Manufacturer: type: object description: Adds support for custom fields and tags. @@ -113937,6 +134586,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113950,15 +134603,41 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true devicetype_count: type: integer format: int64 readOnly: true + inventoryitem_count: + type: integer + format: int64 + readOnly: true + platform_count: + type: integer + format: int64 + readOnly: true required: - - devicetype_count - display - id + - inventoryitem_count - name + - platform_count - slug - url ManufacturerRequest: @@ -113977,6 +134656,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113991,18 +134677,89 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module_bay: $ref: '#/components/schemas/NestedModuleBay' + module_type: + $ref: '#/components/schemas/BriefModuleType' + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + label: + type: string + enum: + - Offline + - Active + - Planned + - Staged + - Failed + - Decommissioning + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - device - display - id - module_bay + - module_type - url ModuleBay: type: object @@ -114015,17 +134772,25 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' + module: + allOf: + - $ref: '#/components/schemas/BriefModule' + nullable: true name: type: string maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true label: type: string @@ -114056,68 +134821,28 @@ components: readOnly: true nullable: true required: - - created - device - display - id - - last_updated - name - url - ModuleBayNestedModule: - 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 - serial: - type: string - title: Serial number - maxLength: 50 - required: - - display - - id - - url - ModuleBayNestedModuleRequest: - 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: - serial: - type: string - title: Serial number - maxLength: 50 ModuleBayRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true label: type: string @@ -114158,7 +134883,13 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay @@ -114186,11 +134917,8 @@ components: readOnly: true nullable: true required: - - created - - device_type - display - id - - last_updated - name - url ModuleBayTemplateRequest: @@ -114201,7 +134929,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -114220,19 +134954,63 @@ components: type: string maxLength: 200 required: - - device_type - name ModuleRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: $ref: '#/components/schemas/NestedModuleBayRequest' + module_type: + $ref: '#/components/schemas/BriefModuleTypeRequest' + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - device - module_bay + - module_type ModuleType: type: object description: Adds support for custom fields and tags. @@ -114244,17 +135022,114 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' model: type: string maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `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' + x-spec-enum-id: f6e5562e0e98d69d + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Passive + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - display - id @@ -114266,14 +135141,75 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `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' + x-spec-enum-id: f6e5562e0e98d69d + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -114294,6 +135230,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114354,6 +135294,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114396,6 +135340,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114407,6 +135355,56 @@ components: - id - name - url + NestedIPAddress: + 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_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: integer + readOnly: true + address: + type: string + required: + - address + - display + - family + - id + - url + NestedIPAddressRequest: + 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: + address: + type: string + minLength: 1 + required: + - address NestedInterface: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114424,6 +135422,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114515,6 +135517,70 @@ components: maxLength: 64 required: - name + NestedLocation: + 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_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + NestedLocationRequest: + 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 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug NestedModuleBay: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114532,13 +135598,13 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModule' - nullable: true name: type: string maxLength: 64 @@ -114557,16 +135623,48 @@ components: subclassed to return a full representation of the related object on read.' properties: - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModuleRequest' - nullable: true name: type: string minLength: 1 maxLength: 64 required: - name + NestedProviderAccount: + 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_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + required: + - account + - display + - id + - url NestedRegion: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114584,6 +135682,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114644,6 +135746,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114704,6 +135810,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114768,6 +135878,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114828,6 +135942,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114842,6 +135960,70 @@ components: - id - url - username + NestedVLAN: + 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 + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + - vid + NestedVLANRequest: + 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: + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + - vid NestedVMInterface: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114859,6 +136041,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114908,6 +136094,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114935,6 +136125,48 @@ components: maxLength: 64 required: - name + NestedWirelessLANGroup: + 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_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url NestedWirelessLANGroupRequest: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114974,6 +136206,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114997,6 +136233,190 @@ components: ssid: type: string maxLength: 32 + Notification: + 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: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - display + - event_type + - id + - object_id + - object_type + - url + - user + NotificationGroup: + 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 + display_url: + type: string + format: uri + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + $ref: '#/components/schemas/Group' + users: + type: array + items: + $ref: '#/components/schemas/User' + required: + - display + - id + - name + - url + NotificationGroupRequest: + 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 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + required: + - name + NotificationRequest: + 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/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - event_type + - object_id + - object_type + - user ObjectChange: type: object properties: @@ -115007,6 +136427,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -115016,7 +136440,7 @@ components: readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true user_name: type: string @@ -115061,20 +136485,15 @@ components: prechange_data: readOnly: true nullable: true - title: Pre-change data postchange_data: readOnly: true nullable: true - title: Post-change data required: - action - - changed_object - changed_object_id - changed_object_type - display - id - - postchange_data - - prechange_data - request_id - time - url @@ -115094,6 +136513,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -115341,6 +136764,52 @@ components: type: array items: $ref: '#/components/schemas/CableTermination' + PaginatedCircuitGroupAssignmentList: + type: object + required: + - count + - results + 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/CircuitGroupAssignment' + PaginatedCircuitGroupList: + type: object + required: + - count + - results + 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/CircuitGroup' PaginatedCircuitList: type: object required: @@ -116168,8 +137637,77 @@ components: results: type: array items: - $ref: '#/components/schemas/IPAddress' - PaginatedIPRangeList: + $ref: '#/components/schemas/IPAddress' + PaginatedIPRangeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/IPRange' + PaginatedIPSecPolicyList: + type: object + required: + - count + - results + 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/IPSecPolicy' + PaginatedIPSecProfileList: + type: object + required: + - count + - results + 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/IPSecProfile' + PaginatedIPSecProposalList: type: object required: - count @@ -116191,8 +137729,8 @@ components: results: type: array items: - $ref: '#/components/schemas/IPRange' - PaginatedIPSecPolicyList: + $ref: '#/components/schemas/IPSecProposal' + PaginatedImageAttachmentList: type: object required: - count @@ -116214,8 +137752,8 @@ components: results: type: array items: - $ref: '#/components/schemas/IPSecPolicy' - PaginatedIPSecProfileList: + $ref: '#/components/schemas/ImageAttachment' + PaginatedInterfaceList: type: object required: - count @@ -116237,8 +137775,8 @@ components: results: type: array items: - $ref: '#/components/schemas/IPSecProfile' - PaginatedIPSecProposalList: + $ref: '#/components/schemas/Interface' + PaginatedInterfaceTemplateList: type: object required: - count @@ -116260,8 +137798,8 @@ components: results: type: array items: - $ref: '#/components/schemas/IPSecProposal' - PaginatedImageAttachmentList: + $ref: '#/components/schemas/InterfaceTemplate' + PaginatedInventoryItemList: type: object required: - count @@ -116283,8 +137821,8 @@ components: results: type: array items: - $ref: '#/components/schemas/ImageAttachment' - PaginatedInterfaceList: + $ref: '#/components/schemas/InventoryItem' + PaginatedInventoryItemRoleList: type: object required: - count @@ -116306,8 +137844,8 @@ components: results: type: array items: - $ref: '#/components/schemas/Interface' - PaginatedInterfaceTemplateList: + $ref: '#/components/schemas/InventoryItemRole' + PaginatedInventoryItemTemplateList: type: object required: - count @@ -116329,8 +137867,8 @@ components: results: type: array items: - $ref: '#/components/schemas/InterfaceTemplate' - PaginatedInventoryItemList: + $ref: '#/components/schemas/InventoryItemTemplate' + PaginatedJobList: type: object required: - count @@ -116352,8 +137890,8 @@ components: results: type: array items: - $ref: '#/components/schemas/InventoryItem' - PaginatedInventoryItemRoleList: + $ref: '#/components/schemas/Job' + PaginatedJournalEntryList: type: object required: - count @@ -116375,8 +137913,8 @@ components: results: type: array items: - $ref: '#/components/schemas/InventoryItemRole' - PaginatedInventoryItemTemplateList: + $ref: '#/components/schemas/JournalEntry' + PaginatedL2VPNList: type: object required: - count @@ -116398,8 +137936,8 @@ components: results: type: array items: - $ref: '#/components/schemas/InventoryItemTemplate' - PaginatedJobList: + $ref: '#/components/schemas/L2VPN' + PaginatedL2VPNTerminationList: type: object required: - count @@ -116421,8 +137959,8 @@ components: results: type: array items: - $ref: '#/components/schemas/Job' - PaginatedJournalEntryList: + $ref: '#/components/schemas/L2VPNTermination' + PaginatedLocationList: type: object required: - count @@ -116444,8 +137982,8 @@ components: results: type: array items: - $ref: '#/components/schemas/JournalEntry' - PaginatedL2VPNList: + $ref: '#/components/schemas/Location' + PaginatedMACAddressList: type: object required: - count @@ -116467,8 +138005,8 @@ components: results: type: array items: - $ref: '#/components/schemas/L2VPN' - PaginatedL2VPNTerminationList: + $ref: '#/components/schemas/MACAddress' + PaginatedManufacturerList: type: object required: - count @@ -116490,8 +138028,8 @@ components: results: type: array items: - $ref: '#/components/schemas/L2VPNTermination' - PaginatedLocationList: + $ref: '#/components/schemas/Manufacturer' + PaginatedModuleBayList: type: object required: - count @@ -116513,8 +138051,8 @@ components: results: type: array items: - $ref: '#/components/schemas/Location' - PaginatedManufacturerList: + $ref: '#/components/schemas/ModuleBay' + PaginatedModuleBayTemplateList: type: object required: - count @@ -116536,8 +138074,8 @@ components: results: type: array items: - $ref: '#/components/schemas/Manufacturer' - PaginatedModuleBayList: + $ref: '#/components/schemas/ModuleBayTemplate' + PaginatedModuleList: type: object required: - count @@ -116559,8 +138097,8 @@ components: results: type: array items: - $ref: '#/components/schemas/ModuleBay' - PaginatedModuleBayTemplateList: + $ref: '#/components/schemas/Module' + PaginatedModuleTypeList: type: object required: - count @@ -116582,8 +138120,8 @@ components: results: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' - PaginatedModuleList: + $ref: '#/components/schemas/ModuleType' + PaginatedNotificationGroupList: type: object required: - count @@ -116605,8 +138143,8 @@ components: results: type: array items: - $ref: '#/components/schemas/Module' - PaginatedModuleTypeList: + $ref: '#/components/schemas/NotificationGroup' + PaginatedNotificationList: type: object required: - count @@ -116628,7 +138166,7 @@ components: results: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Notification' PaginatedObjectChangeList: type: object required: @@ -117043,6 +138581,29 @@ components: type: array items: $ref: '#/components/schemas/RackRole' + PaginatedRackTypeList: + type: object + required: + - count + - results + 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/RackType' PaginatedRackUnitList: type: object required: @@ -117319,6 +138880,29 @@ components: type: array items: $ref: '#/components/schemas/Site' + PaginatedSubscriptionList: + type: object + required: + - count + - results + 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/Subscription' PaginatedTagList: type: object required: @@ -117549,6 +139133,52 @@ components: type: array items: $ref: '#/components/schemas/VLAN' + PaginatedVLANTranslationPolicyList: + type: object + required: + - count + - results + 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/VLANTranslationPolicy' + PaginatedVLANTranslationRuleList: + type: object + required: + - count + - results + 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/VLANTranslationRule' PaginatedVMInterfaceList: type: object required: @@ -117618,6 +139248,75 @@ components: type: array items: $ref: '#/components/schemas/VirtualChassis' + PaginatedVirtualCircuitList: + type: object + required: + - count + - results + 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/VirtualCircuit' + PaginatedVirtualCircuitTerminationList: + type: object + required: + - count + - results + 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/VirtualCircuitTermination' + PaginatedVirtualCircuitTypeList: + type: object + required: + - count + - results + 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/VirtualCircuitType' PaginatedVirtualDeviceContextList: type: object required: @@ -117793,7 +139492,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' start: type: integer maximum: 4294967295 @@ -117806,7 +139505,7 @@ components: format: int64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117830,11 +139529,11 @@ components: description: 16- or 32-bit autonomous system number rir: allOf: - - $ref: '#/components/schemas/RIRRequest' + - $ref: '#/components/schemas/BriefRIRRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117863,7 +139562,7 @@ components: minimum: 0 format: int64 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' PatchedCableTerminationRequest: type: object description: Adds support for custom fields and tags. @@ -117887,12 +139586,39 @@ components: maximum: 9223372036854775807 minimum: 0 format: int64 + PatchedCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} PatchedCircuitTerminationRequest: type: object description: Adds support for custom fields and tags. properties: circuit: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/BriefCircuitRequest' term_side: enum: - A @@ -117902,14 +139628,12 @@ components: * `Z` - Z' x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' + title: Termination side + termination_type: + type: string nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' + termination_id: + type: integer nullable: true port_speed: type: integer @@ -118095,7 +139819,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} PatchedConfigTemplateRequest: type: object @@ -118121,7 +139845,7 @@ components: minLength: 1 description: Jinja2 template code. data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' tags: type: array items: @@ -118132,7 +139856,7 @@ components: properties: group: allOf: - - $ref: '#/components/schemas/ContactGroupRequest' + - $ref: '#/components/schemas/BriefContactGroupRequest' nullable: true name: type: string @@ -118225,7 +139949,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -118241,12 +139965,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -118288,7 +140012,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' name: type: string minLength: 1 @@ -118302,7 +140026,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true tags: type: array @@ -118319,7 +140043,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' name: type: string minLength: 1 @@ -118356,7 +140080,7 @@ components: description: Virtual machines may be assigned to this role config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true description: type: string @@ -118403,13 +140127,13 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' PatchedFHRPGroupAssignmentRequest: type: object description: Adds support for custom fields and tags. properties: group: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/BriefFHRPGroupRequest' interface_type: type: string interface_id: @@ -118466,6 +140190,7 @@ components: * `md5` - MD5' x-spec-enum-id: 12b9faea3a45bf37 + nullable: true title: Authentication type auth_key: type: string @@ -118521,74 +140246,6 @@ components: image: type: string format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 - PatchedInventoryItemRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - parent: - type: integer - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - role: - allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' - nullable: true - manufacturer: - allOf: - - $ref: '#/components/schemas/ManufacturerRequest' - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered - description: - type: string - maxLength: 200 - component_type: - type: string - nullable: true - component_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} PatchedInventoryItemRoleRequest: type: object description: Adds support for custom fields and tags. @@ -118625,7 +140282,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' parent: type: integer nullable: true @@ -118641,11 +140298,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -118668,7 +140325,7 @@ components: description: Adds support for custom fields and tags. properties: l2vpn: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/BriefL2VPNRequest' assigned_object_type: type: string assigned_object_id: @@ -118683,6 +140340,33 @@ components: custom_fields: type: object additionalProperties: {} + PatchedMACAddressRequest: + type: object + description: Adds support for custom fields and tags. + properties: + mac_address: + type: string + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} PatchedManufacturerRequest: type: object description: Adds support for custom fields and tags. @@ -118711,14 +140395,18 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true label: type: string @@ -118746,7 +140434,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -118764,6 +140458,73 @@ components: description: type: string maxLength: 200 + PatchedNotificationGroupRequest: + 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 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + PatchedNotificationRequest: + 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/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event PatchedObjectPermissionRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -118818,11 +140579,11 @@ components: pattern: ^[-a-zA-Z0-9_]+$ manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true description: type: string @@ -118839,10 +140600,10 @@ components: description: Adds support for custom fields and tags. properties: site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true name: type: string @@ -118865,7 +140626,7 @@ components: description: Adds support for custom fields and tags. properties: provider: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/BriefProviderRequest' name: type: string default: '' @@ -118892,7 +140653,7 @@ components: description: Adds support for custom fields and tags. properties: provider: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/BriefProviderRequest' name: type: string minLength: 1 @@ -118978,7 +140739,7 @@ components: description: Adds support for custom fields and tags. properties: rack: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/BriefRackRequest' units: type: array items: @@ -118986,10 +140747,10 @@ components: maximum: 32767 minimum: 0 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -119070,7 +140831,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -119119,6 +140880,35 @@ components: shared: type: boolean parameters: {} + PatchedScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + PatchedSubscriptionRequest: + 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/BriefUserRequest' PatchedTagRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -119162,7 +140952,7 @@ components: pattern: ^[-a-zA-Z0-9_]+$ group: allOf: - - $ref: '#/components/schemas/TenantGroupRequest' + - $ref: '#/components/schemas/BriefTenantGroupRequest' nullable: true description: type: string @@ -119184,7 +140974,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' expires: type: string format: date-time @@ -119299,18 +141089,6 @@ components: scope_id: type: integer nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -119321,6 +141099,38 @@ components: custom_fields: type: object additionalProperties: {} + PatchedVLANTranslationPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + PatchedVLANTranslationRuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + policy: + type: integer + local_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Local VLAN ID + description: Numeric VLAN ID (1-4094) + remote_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Remote VLAN ID + description: Numeric VLAN ID (1-4094) + description: + type: string + maxLength: 200 PatchedVRFRequest: type: object description: Adds support for custom fields and tags. @@ -119337,7 +141147,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true enforce_unique: type: boolean @@ -119363,12 +141173,39 @@ components: custom_fields: type: object additionalProperties: {} + PatchedVirtualCircuitTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} PatchedVirtualDiskRequest: type: object description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -119380,7 +141217,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -119473,10 +141310,10 @@ components: type: string minLength: 1 rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true date_added: type: string @@ -119522,6 +141359,7 @@ components: - smf-os1 - smf-os2 - aoc + - usb - power - '' type: string @@ -119569,8 +141407,11 @@ components: * `aoc` - Active Optical Cabling (AOC) + * `usb` - USB + * `power` - Power' - x-spec-enum-id: e671018e64196f8d + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true a_terminations: type: array items: @@ -119593,7 +141434,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true label: type: string @@ -119632,6 +141473,7 @@ components: * `in` - Inches' x-spec-enum-id: e64ce3a2c5997172 + nullable: true description: type: string maxLength: 200 @@ -119644,6 +141486,40 @@ components: custom_fields: type: object additionalProperties: {} + PatchedWritableCircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + member_type: + type: string + member_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' PatchedWritableCircuitRequest: type: object description: Adds support for custom fields and tags. @@ -119655,13 +141531,13 @@ components: description: Unique circuit ID maxLength: 100 provider: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/BriefProviderRequest' provider_account: allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true type: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/BriefCircuitTypeRequest' status: enum: - planned @@ -119685,7 +141561,7 @@ components: x-spec-enum-id: 63c838134a022200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true install_date: type: string @@ -119707,6 +141583,31 @@ components: description: type: string maxLength: 200 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true comments: type: string tags: @@ -119716,6 +141617,10 @@ components: custom_fields: type: object additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' PatchedWritableClusterRequest: type: object description: Adds support for custom fields and tags. @@ -119725,10 +141630,10 @@ components: minLength: 1 maxLength: 100 type: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/BriefClusterTypeRequest' group: allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' + - $ref: '#/components/schemas/BriefClusterGroupRequest' nullable: true status: enum: @@ -119750,11 +141655,13 @@ components: x-spec-enum-id: 79d20a734d0eecbb tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true description: type: string @@ -119773,10 +141680,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -119806,6 +141713,7 @@ components: - '' type: string x-spec-enum-id: c5f7197b7211818a + nullable: true description: 'Physical port type @@ -119893,11 +141801,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -119958,6 +141866,7 @@ components: * `other` - Other' x-spec-enum-id: c5f7197b7211818a + nullable: true description: type: string maxLength: 200 @@ -119966,10 +141875,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -119999,6 +141908,7 @@ components: - '' type: string x-spec-enum-id: c5f7197b7211818a + nullable: true description: 'Physical port type @@ -120086,11 +141996,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -120151,6 +142061,7 @@ components: * `other` - Other' x-spec-enum-id: c5f7197b7211818a + nullable: true description: type: string maxLength: 200 @@ -120166,10 +142077,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -120187,6 +142098,7 @@ components: * `inactive` - Inactive' x-spec-enum-id: ef3a31644cec7524 + nullable: true tags: type: array items: @@ -120242,6 +142154,7 @@ components: - '' type: string x-spec-enum-id: cf0efb5195f85007 + nullable: true description: 'Base set of predefined choices (optional) @@ -120339,8 +142252,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -120401,6 +142318,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -120431,7 +142352,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -120457,13 +142378,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -120472,10 +142393,10 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' default_platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true model: type: string @@ -120511,6 +142432,7 @@ components: - '' type: string x-spec-enum-id: d10d91f690a856c2 + nullable: true title: Parent/child status description: 'Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. @@ -120526,6 +142448,9 @@ components: - left-to-right - right-to-left - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom - passive - mixed - '' @@ -120540,10 +142465,17 @@ components: * `side-to-rear` - Side to rear + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + * `passive` - Passive * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d + x-spec-enum-id: 943288113dad6782 + nullable: true weight: type: number format: double @@ -120568,6 +142500,7 @@ components: * `oz` - Ounces' x-spec-enum-id: 7c1876f422815884 + nullable: true front_image: type: string format: binary @@ -120595,16 +142528,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -120617,14 +142550,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -120644,6 +142577,7 @@ components: * `rear` - Rear' x-spec-enum-id: d2fb9b3f75158b83 + nullable: true title: Rack face latitude: type: number @@ -120694,6 +142628,9 @@ components: - left-to-right - right-to-left - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom - passive - mixed - '' @@ -120708,29 +142645,36 @@ components: * `side-to-rear` - Side to rear + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + * `passive` - Passive * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d + x-spec-enum-id: 943288113dad6782 + nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -120750,7 +142694,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -120775,28 +142719,35 @@ components: type: string minLength: 1 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. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -120805,11 +142756,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -120833,10 +142787,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -120894,6 +142848,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -120988,8 +142950,24 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -121000,7 +142978,6 @@ components: type: integer maximum: 1024 minimum: 1 - default: 1 description: Mapped position on corresponding rear port description: type: string @@ -121024,11 +143001,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -121088,6 +143065,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -121182,19 +143167,34 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 minimum: 1 - default: 1 description: type: string maxLength: 200 @@ -121230,6 +143230,7 @@ components: * `main` - Main' x-spec-enum-id: 64c1be7bdb2548ca + nullable: true proposals: type: array items: @@ -121318,6 +143319,7 @@ components: * `hmac-md5` - MD5 HMAC' x-spec-enum-id: 0830e8839f5dea4f + nullable: true group: enum: - 1 @@ -121422,11 +143424,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -121462,6 +143464,7 @@ components: - '' type: string x-spec-enum-id: 10fbcb4930889b0f + nullable: true description: 'The functional role of this IP @@ -121523,11 +143526,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -121546,7 +143549,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -121689,9 +143692,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -121740,6 +143743,7 @@ components: * `des-cbc` - DES' x-spec-enum-id: b022535cfdee79fe + nullable: true title: Encryption authentication_algorithm: enum: @@ -121760,6 +143764,7 @@ components: * `hmac-md5` - MD5 HMAC' x-spec-enum-id: 0830e8839f5dea4f + nullable: true title: Authentication sa_lifetime_seconds: type: integer @@ -121789,14 +143794,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -121816,10 +143821,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -121869,7 +143877,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -121950,6 +143960,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -121958,6 +143972,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -122056,8 +144072,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -122183,7 +144203,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b enabled: type: boolean parent: @@ -122203,8 +144223,9 @@ components: maximum: 65536 minimum: 1 nullable: true - mac_address: - type: string + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddressRequest' nullable: true speed: type: integer @@ -122241,9 +144262,11 @@ components: - access - tagged - tagged-all + - q-in-q - '' type: string - x-spec-enum-id: 79109bd9dbb73a3c + x-spec-enum-id: b6fe48fe21dbf01d + nullable: true description: 'IEEE 802.1Q tagging strategy @@ -122251,7 +144274,9 @@ components: * `tagged` - Tagged - * `tagged-all` - Tagged (All)' + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' rf_role: enum: - ap @@ -122262,6 +144287,7 @@ components: * `station` - Station' x-spec-enum-id: d2772dbea88b0fb1 + nullable: true title: Wireless role rf_channel: enum: @@ -122858,6 +144884,7 @@ components: * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' x-spec-enum-id: aac33cc237adc8f9 + nullable: true title: Wireless channel poe_mode: enum: @@ -122869,6 +144896,7 @@ components: * `pse` - PSE' x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true poe_type: enum: - type1-ieee802.3af @@ -122897,6 +144925,7 @@ components: * `passive-48v-4pair` - Passive 48V (4-pair)' x-spec-enum-id: 74bd3be4012f6da9 + nullable: true rf_channel_frequency: type: number format: double @@ -122925,12 +144954,20 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array items: type: integer + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest' + nullable: true mark_connected: type: boolean description: Treat as if a cable is connected @@ -122940,7 +144977,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -122958,11 +144995,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -122984,10 +145021,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -123037,7 +145077,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -123118,6 +145160,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -123126,6 +145172,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -123224,8 +145272,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -123351,7 +145403,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b enabled: type: boolean mgmt_only: @@ -123374,6 +145426,7 @@ components: * `pse` - PSE' x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true poe_type: enum: - type1-ieee802.3af @@ -123402,6 +145455,7 @@ components: * `passive-48v-4pair` - Passive 48V (4-pair)' x-spec-enum-id: 74bd3be4012f6da9 + nullable: true rf_role: enum: - ap @@ -123412,7 +145466,89 @@ components: * `station` - Station' x-spec-enum-id: d2772dbea88b0fb1 + nullable: true title: Wireless role + PatchedWritableInventoryItemRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this item + maxLength: 50 + discovered: + type: boolean + description: This item was automatically discovered + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} PatchedWritableJournalEntryRequest: type: object description: Adds support for custom fields and tags. @@ -123479,6 +145615,7 @@ components: - vxlan-evpn - mpls-evpn - pbb-evpn + - evpn-vpws - epl - evpl - ep-lan @@ -123498,6 +145635,8 @@ components: * `pbb-evpn` - PBB EVPN + * `evpn-vpws` - EVPN VPWS + * `epl` - EPL * `evpl` - EVPL @@ -123509,7 +145648,7 @@ components: * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 + x-spec-enum-id: 4c9738ba3d741dd4 import_targets: type: array items: @@ -123525,7 +145664,7 @@ components: type: string tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tags: type: array @@ -123548,7 +145687,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' parent: type: integer nullable: true @@ -123572,7 +145711,7 @@ components: x-spec-enum-id: e363a8ddb138be50 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -123593,11 +145732,11 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: type: integer module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/BriefModuleTypeRequest' status: enum: - offline @@ -123645,7 +145784,7 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 @@ -123654,6 +145793,29 @@ components: type: string description: Discrete part number (optional) maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `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' + x-spec-enum-id: f6e5562e0e98d69d + nullable: true weight: type: number format: double @@ -123678,6 +145840,7 @@ components: * `oz` - Ounces' x-spec-enum-id: 7c1876f422815884 + nullable: true description: type: string maxLength: 200 @@ -123695,10 +145858,10 @@ components: description: Adds support for custom fields and tags. properties: power_panel: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/BriefPowerPanelRequest' rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true name: type: string @@ -123767,7 +145930,7 @@ components: maxLength: 200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true comments: type: string @@ -123783,10 +145946,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -123859,6 +146022,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -123885,6 +146049,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -123896,7 +146061,8 @@ components: - other - '' type: string - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 + nullable: true description: 'Physical port type @@ -124022,6 +146188,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -124074,6 +146242,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -124091,9 +146261,13 @@ components: * `hardwired` - Hardwired * `other` - Other' + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 power_port: allOf: - - $ref: '#/components/schemas/PowerPortRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true feed_leg: enum: @@ -124103,6 +146277,7 @@ components: - '' type: string x-spec-enum-id: a4902339df0b7c06 + nullable: true description: 'Phase (for three-phase feeds) @@ -124133,11 +146308,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -124212,6 +146387,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -124238,6 +146414,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -124371,6 +146548,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -124423,6 +146602,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -124440,10 +146621,11 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 + nullable: true power_port: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true feed_leg: enum: @@ -124453,6 +146635,7 @@ components: - '' type: string x-spec-enum-id: a4902339df0b7c06 + nullable: true description: 'Phase (for three-phase feeds) @@ -124469,10 +146652,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -124545,6 +146728,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -124589,7 +146773,8 @@ components: - other - '' type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b + nullable: true description: 'Physical port type @@ -124715,6 +146900,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -124832,11 +147019,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -124911,6 +147098,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -125077,6 +147265,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -125160,7 +147350,8 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b + nullable: true maximum_draw: type: integer maximum: 2147483647 @@ -125183,21 +147374,23 @@ components: prefix: type: string minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -125219,7 +147412,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -125253,14 +147446,14 @@ components: nullable: true maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -125282,7 +147475,7 @@ components: x-spec-enum-id: 0c556d55dc1baa13 role: allOf: - - $ref: '#/components/schemas/RackRoleRequest' + - $ref: '#/components/schemas/BriefRackRoleRequest' nullable: true serial: type: string @@ -125293,7 +147486,11 @@ components: nullable: true description: A unique tag used to identify this rack maxLength: 50 - type: + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: enum: - 2-post-frame - 4-post-frame @@ -125318,6 +147515,7 @@ components: * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' x-spec-enum-id: e32aaa89a223f2ea + nullable: true width: enum: - 10 @@ -125379,6 +147577,7 @@ components: * `oz` - Ounces' x-spec-enum-id: 7c1876f422815884 + nullable: true desc_units: type: boolean title: Descending units @@ -125405,6 +147604,7 @@ components: * `in` - Inches' x-spec-enum-id: 86a846b6c40f495e + nullable: true mounting_depth: type: integer maximum: 32767 @@ -125412,9 +147612,167 @@ components: nullable: true description: Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `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)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. comments: type: string tags: @@ -125429,10 +147787,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -125490,6 +147848,229 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `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 + + * `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' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: Number of front ports which may be mapped + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortTemplateRequest: + 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: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -125584,199 +148165,24 @@ components: * `splice` - Splice - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: Number of front ports which may be mapped - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortTemplateRequest: - 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: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `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 + * `usb-a` - USB Type A - * `sn` - SN + * `usb-b` - USB Type B - * `sma-905` - SMA 905 + * `usb-c` - USB Type C - * `sma-906` - SMA 906 + * `usb-mini-a` - USB Mini A - * `urm-p2` - URM-P2 + * `usb-mini-b` - USB Mini B - * `urm-p4` - URM-P4 + * `usb-micro-a` - USB Micro A - * `urm-p8` - URM-P8 + * `usb-micro-b` - USB Micro B - * `splice` - Splice + * `usb-micro-ab` - USB Micro AB * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -125820,11 +148226,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -125964,15 +148370,15 @@ components: x-spec-enum-id: e363a8ddb138be50 region: allOf: - - $ref: '#/components/schemas/RegionRequest' + - $ref: '#/components/schemas/BriefRegionRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/SiteGroupRequest' + - $ref: '#/components/schemas/BriefSiteGroupRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -125981,6 +148387,7 @@ components: time_zone: type: string nullable: true + minLength: 1 description: type: string maxLength: 200 @@ -126071,7 +148478,7 @@ components: x-spec-enum-id: 0d65f7912cba74aa group: allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' + - $ref: '#/components/schemas/BriefTunnelGroupRequest' nullable: true encapsulation: enum: @@ -126079,6 +148486,10 @@ components: - ipsec-tunnel - ip-ip - gre + - wireguard + - openvpn + - l2tp + - pptp type: string description: '* `ipsec-transport` - IPsec - Transport @@ -126086,15 +148497,23 @@ components: * `ip-ip` - IP-in-IP - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 + * `gre` - GRE + + * `wireguard` - WireGuard + + * `openvpn` - OpenVPN + + * `l2tp` - L2TP + + * `pptp` - PPTP' + x-spec-enum-id: 54a2e45824009c49 ipsec_profile: allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' + - $ref: '#/components/schemas/BriefIPSecProfileRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tunnel_id: type: integer @@ -126119,7 +148538,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -126142,7 +148561,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -126157,11 +148576,11 @@ components: properties: site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/VLANGroupRequest' + - $ref: '#/components/schemas/BriefVLANGroupRequest' nullable: true vid: type: integer @@ -126175,7 +148594,7 @@ components: maxLength: 64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -126194,11 +148613,29 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string maxLength: 200 + qinq_role: + enum: + - svlan + - cvlan + - '' + type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: 'Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) + + + * `svlan` - Service + + * `cvlan` - Customer' + qinq_svlan: + type: integer + nullable: true comments: type: string tags: @@ -126213,7 +148650,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -126233,41 +148670,134 @@ components: maximum: 65536 minimum: 1 nullable: true - mac_address: + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddressRequest' + nullable: true + description: + type: string + maxLength: 200 + mode: + enum: + - access + - tagged + - tagged-all + - q-in-q + - '' type: string + x-spec-enum-id: b6fe48fe21dbf01d + nullable: true + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' + untagged_vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true + tagged_vlans: + type: array + items: + type: integer + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest' + nullable: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string minLength: 1 + maxLength: 64 + domain: + type: string + maxLength: 30 + master: + type: integer + nullable: true description: type: string maxLength: 200 - mode: + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider_network: + $ref: '#/components/schemas/BriefProviderNetworkRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest' + status: enum: - - access - - tagged - - tagged-all - - '' + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy + description: '* `planned` - Planned + * `provisioning` - Provisioning - * `access` - Access + * `active` - Active - * `tagged` - Tagged + * `offline` - Offline - * `tagged-all` - Tagged (All)' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: integer - vrf: + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true + description: + type: string + maxLength: 200 + comments: + type: string tags: type: array items: @@ -126275,25 +148805,29 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableVirtualChassisRequest: + PatchedWritableVirtualCircuitTerminationRequest: type: object description: Adds support for custom fields and tags. properties: - name: - type: string - minLength: 1 - maxLength: 64 - domain: + virtual_circuit: + $ref: '#/components/schemas/BriefVirtualCircuitRequest' + role: + enum: + - peer + - hub + - spoke type: string - maxLength: 30 - master: - type: integer - nullable: true + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + interface: + $ref: '#/components/schemas/BriefInterfaceRequest' description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -126310,7 +148844,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -126318,15 +148852,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -126383,35 +148917,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -126431,7 +148969,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -126439,7 +148977,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -126491,7 +149029,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -126510,11 +149048,17 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -126532,6 +149076,7 @@ components: * `wpa-enterprise` - WPA Enterprise' x-spec-enum-id: a2043acb899b3954 + nullable: true title: Authentication type auth_cipher: enum: @@ -126546,6 +149091,7 @@ components: * `aes` - AES' x-spec-enum-id: 8fdaefa727c26fdc + nullable: true title: Authentication cipher auth_psk: type: string @@ -126565,9 +149111,9 @@ components: description: Adds support for custom fields and tags. properties: interface_a: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' interface_b: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' ssid: type: string maxLength: 32 @@ -126585,7 +149131,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -126603,6 +149149,7 @@ components: * `wpa-enterprise` - WPA Enterprise' x-spec-enum-id: a2043acb899b3954 + nullable: true title: Authentication type auth_cipher: enum: @@ -126617,11 +149164,37 @@ components: * `aes` - AES' x-spec-enum-id: 8fdaefa727c26fdc + nullable: true title: Authentication cipher auth_psk: type: string title: Pre-shared key maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true description: type: string maxLength: 200 @@ -126645,6 +149218,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -126655,9 +149232,34 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturer' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplate' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 @@ -126667,13 +149269,11 @@ components: format: int64 readOnly: true required: - - device_count - display - id - name - slug - url - - virtualmachine_count PlatformRequest: type: object description: Adds support for custom fields and tags. @@ -126687,9 +149287,24 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -126704,14 +149319,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true power_panel: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/BriefPowerPanel' rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true name: type: string @@ -126810,7 +149429,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -126824,13 +149443,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -126839,7 +149461,7 @@ components: maxLength: 200 tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true comments: type: string @@ -126866,17 +149488,11 @@ components: title: ' occupied' required: - _occupied - - cable - cable_end - - connected_endpoints - connected_endpoints_reachable - - connected_endpoints_type - - created - display - id - - last_updated - link_peers - - link_peers_type - name - power_panel - url @@ -126885,10 +149501,10 @@ components: description: Adds support for custom fields and tags. properties: power_panel: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/BriefPowerPanelRequest' rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true name: type: string @@ -126903,64 +149519,950 @@ components: type: string description: '* `offline` - Offline - * `active` - Active + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary + + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - power_panel + PowerOutlet: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + module: + allOf: + - $ref: '#/components/schemas/BriefModule' + nullable: true + name: + type: string + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - eaton-c39 + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `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-20r` - NEMA L22-20R + + * `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 + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `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' + x-spec-enum-id: f8c08053f2db8830 + label: + type: string + enum: + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-20R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - ITA Multistandard + - USB Type A + - USB Micro B + - USB Type C + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - Eaton C39 + - HDOT Cx + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPort' + nullable: true + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C + nullable: true + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable_end + - connected_endpoints_reachable + - device + - display + - id + - link_peers + - name + - url + PowerOutletRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - eaton-c39 + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `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-20r` - NEMA L22-20R + + * `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 + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx - * `planned` - Planned + * `saf-d-grid` - Saf-D-Grid - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f8c08053f2db8830 + nullable: true + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortRequest' + nullable: true + feed_leg: enum: - - single-phase - - three-phase + - A + - B + - C + - '' type: string - description: '* `single-phase` - Single phase + description: '* `A` - A - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + nullable: true description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -126969,11 +150471,14 @@ components: type: object additionalProperties: {} required: + - device - name - - power_panel - PowerOutlet: + PowerOutletTemplate: type: object - description: Adds support for custom fields and tags. + 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 @@ -126985,14 +150490,18 @@ components: display: type: string readOnly: true - device: - $ref: '#/components/schemas/Device' - module: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -127064,6 +150573,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -127090,6 +150600,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -127223,6 +150734,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -127275,6 +150788,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -127292,7 +150807,7 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 label: type: string enum: @@ -127357,6 +150872,7 @@ components: - NEMA L15-60R - NEMA L21-20R - NEMA L21-30R + - NEMA L22-20R - NEMA L22-30R - CS6360C - CS6364C @@ -127383,6 +150899,7 @@ components: - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal + - Eaton C39 - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) @@ -127395,7 +150912,7 @@ components: nullable: true power_port: allOf: - - $ref: '#/components/schemas/PowerPort' + - $ref: '#/components/schemas/BriefPowerPortTemplate' nullable: true feed_leg: type: object @@ -127423,42 +150940,6 @@ components: description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: - type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - connected_endpoints: - type: array - items: {} - readOnly: true - connected_endpoints_type: - type: string - readOnly: true - connected_endpoints_reachable: - type: boolean - readOnly: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} created: type: string format: date-time @@ -127469,39 +150950,31 @@ components: format: date-time readOnly: true nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' required: - - _occupied - - cable - - cable_end - - connected_endpoints - - connected_endpoints_reachable - - connected_endpoints_type - - created - - device - display - id - - last_updated - - link_peers - - link_peers_type - name - url - PowerOutletRequest: + PowerOutletTemplateRequest: type: object - description: Adds support for custom fields and tags. + 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: - device: - $ref: '#/components/schemas/DeviceRequest' - module: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -127570,6 +151043,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -127596,6 +151070,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -127729,6 +151204,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -127781,6 +151258,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -127798,11 +151277,11 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 nullable: true power_port: allOf: - - $ref: '#/components/schemas/PowerPortRequest' + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true feed_leg: enum: @@ -127821,6 +151300,983 @@ components: description: type: string maxLength: 200 + required: + - name + PowerPanel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + site: + $ref: '#/components/schemas/BriefSite' + location: + allOf: + - $ref: '#/components/schemas/BriefLocation' + nullable: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + powerfeed_count: + type: integer + format: int64 + readOnly: true + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - display + - id + - name + - powerfeed_count + - site + - url + PowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - site + PowerPort: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + module: + allOf: + - $ref: '#/components/schemas/BriefModule' + nullable: true + name: + type: string + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `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-20p` - NEMA L22-20P + + * `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 + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `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' + x-spec-enum-id: f1bd4aedff3a591b + label: + type: string + enum: + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable_end + - connected_endpoints_reachable + - device + - display + - id + - link_peers + - name + - url + PowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `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-20p` - NEMA L22-20P + + * `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 + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `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' + x-spec-enum-id: f1bd4aedff3a591b + nullable: true + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 mark_connected: type: boolean description: Treat as if a cable is connected @@ -127834,7 +152290,7 @@ components: required: - device - name - PowerOutletTemplate: + PowerPortTemplate: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -127853,11 +152309,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -127873,12 +152329,12 @@ components: properties: value: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127894,55 +152350,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127952,18 +152411,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127971,17 +152435,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -128013,103 +152477,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `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-15r` - NEMA 6-15R + * `nema-6-50p` - NEMA 6-50P - * `nema-6-20r` - NEMA 6-20R + * `nema-10-30p` - NEMA 10-30P - * `nema-6-30r` - NEMA 6-30R + * `nema-10-50p` - NEMA 10-50P - * `nema-6-50r` - NEMA 6-50R + * `nema-14-20p` - NEMA 14-20P - * `nema-10-30r` - NEMA 10-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-60p` - NEMA 14-60P - * `nema-14-30r` - NEMA 14-30R + * `nema-15-15p` - NEMA 15-15P - * `nema-14-50r` - NEMA 14-50R + * `nema-15-20p` - NEMA 15-20P - * `nema-14-60r` - NEMA 14-60R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-60p` - NEMA 15-60P - * `nema-15-30r` - NEMA 15-30R + * `nema-l1-15p` - NEMA L1-15P - * `nema-15-50r` - NEMA 15-50R + * `nema-l5-15p` - NEMA L5-15P - * `nema-15-60r` - NEMA 15-60R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l22-20p` - NEMA L22-20P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l22-30p` - NEMA L22-30P - * `nema-l21-30r` - NEMA L21-30R + * `cs6361c` - CS6361C - * `nema-l22-30r` - NEMA L22-30R + * `cs6365c` - CS6365C - * `CS6360C` - CS6360C + * `cs8165c` - CS8165C - * `CS6364C` - CS6364C + * `cs8265c` - CS8265C - * `CS8164C` - CS8164C + * `cs8365c` - CS8365C - * `CS8264C` - CS8264C + * `cs8465c` - CS8465C - * `CS8364C` - CS8364C + * `ita-c` - ITA Type C (CEE 7/16) - * `CS8464C` - CS8464C + * `ita-e` - ITA Type E (CEE 7/6) - * `ita-e` - ITA Type E (CEE 7/5) + * `ita-f` - ITA Type F (CEE 7/4) - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -128129,14 +152599,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `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 + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -128145,13 +152627,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -128162,16 +152642,16 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f1bd4aedff3a591b label: type: string enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 - P+N+E 4H - P+N+E 6H - P+N+E 9H @@ -128187,55 +152667,58 @@ components: - IEC 60906-1 - 2P+T 10A (NBR 14136) - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -128245,15 +152728,20 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O - - ITA Multistandard - USB Type A - - USB Micro B + - USB Type B - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal - - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -128263,33 +152751,18 @@ components: - Hardwired - Other nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplate' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -128304,13 +152777,11 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - url - PowerOutletTemplateRequest: + PowerPortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -128319,11 +152790,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -128337,12 +152808,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -128358,55 +152829,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -128416,18 +152890,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -128435,17 +152914,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -128477,103 +152956,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `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) @@ -128593,14 +153078,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `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 + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -128609,13 +153106,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -128626,135 +153121,28 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' - nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + x-spec-enum-id: f1bd4aedff3a591b nullable: true - description: - type: string - maxLength: 200 - required: - - name - PowerPanel: - type: object - description: Adds support for custom fields and tags. - 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 - powerfeed_count: + maximum_draw: type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - powerfeed_count - - url - PowerPanelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - PowerPort: - type: object - description: Adds support for custom fields and tags. - properties: - id: + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - device: - $ref: '#/components/schemas/Device' - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true + maximum: 2147483647 + minimum: 1 nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - device - - display - - id - - name - - url - PowerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 + description: Allocated power draw (watts) description: type: string maxLength: 200 required: - - device - name - PowerPortTemplate: + Prefix: 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 @@ -128763,48 +153151,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - PowerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - Prefix: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -128831,21 +153178,26 @@ components: readOnly: true prefix: type: string - site: - allOf: - - $ref: '#/components/schemas/Site' - nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' + nullable: true + scope_type: + type: string nullable: true + scope_id: + type: integer + nullable: true + scope: + nullable: true + readOnly: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true status: type: object @@ -128874,7 +153226,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true is_pool: type: boolean @@ -128915,11 +153267,9 @@ components: required: - _depth - children - - created - display - family - id - - last_updated - prefix - url PrefixRequest: @@ -128929,21 +153279,23 @@ components: prefix: type: string minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -128962,7 +153314,7 @@ components: x-spec-enum-id: d38bee5f512701d9 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -128996,6 +153348,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -129007,9 +153363,36 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + $ref: '#/components/schemas/NestedProviderAccount' description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true circuit_count: type: integer format: int64 @@ -129032,11 +153415,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true provider: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/BriefProvider' name: type: string default: '' @@ -129069,16 +153456,16 @@ components: nullable: true required: - account - - created - display - id - - last_updated - provider - url ProviderAccountRequest: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string default: '' @@ -129091,8 +153478,18 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - account + - provider ProviderNetwork: type: object description: Adds support for custom fields and tags. @@ -129104,33 +153501,77 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + provider: + $ref: '#/components/schemas/BriefProvider' name: type: string maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - display - id - name + - provider - url ProviderNetworkRequest: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string minLength: 1 maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - provider ProviderRequest: type: object description: Adds support for custom fields and tags. @@ -129145,9 +153586,26 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -129162,6 +153620,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -129172,9 +153634,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true aggregate_count: type: integer format: int64 @@ -129199,55 +153682,516 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + Rack: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSite' + location: + allOf: + - $ref: '#/components/schemas/BriefLocation' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + label: + type: string + enum: + - Reserved + - Available + - Planned + - Active + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRackRole' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackType' + nullable: true + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `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)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + label: + type: string + enum: + - Front to rear + - Rear to front description: type: string - maxLength: 200 - required: - - name - - slug - Rack: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - powerfeed_count + - site + - url + RackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/BriefRackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: type: string - format: uri - readOnly: true - display: + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' type: string - readOnly: true - name: + description: '* `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)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' type: string - maxLength: 100 - description: + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' type: string - maxLength: 200 - device_count: + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + mounting_depth: type: integer - format: int64 - readOnly: true - required: - - device_count - - display - - id - - name - - url - RackRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' type: string - minLength: 1 - maxLength: 100 + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site RackReservation: type: object description: Adds support for custom fields and tags. @@ -129259,11 +154203,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true rack: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/BriefRack' units: type: array items: @@ -129281,10 +154229,10 @@ components: readOnly: true nullable: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -129299,11 +154247,9 @@ components: type: object additionalProperties: {} required: - - created - description - display - id - - last_updated - rack - units - url @@ -129313,7 +154259,7 @@ components: description: Adds support for custom fields and tags. properties: rack: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/BriefRackRequest' units: type: array items: @@ -129321,10 +154267,10 @@ components: maximum: 32767 minimum: 0 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -129355,6 +154301,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -129394,12 +154344,9 @@ components: format: int64 readOnly: true required: - - created - display - id - - last_updated - name - - rack_count - slug - url RackRoleRequest: @@ -129433,6 +154380,368 @@ components: required: - name - slug + RackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `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)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - display + - id + - manufacturer + - model + - slug + - url + RackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `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)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - manufacturer + - model + - slug RackUnit: type: object description: A rack unit is an abstraction formed by the set (rack, position, @@ -129469,7 +154778,7 @@ components: readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' readOnly: true occupied: type: boolean @@ -129495,14 +154804,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -129562,6 +154875,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129656,8 +154977,24 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -129707,6 +155044,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -129725,7 +155070,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -129739,6 +155084,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -129762,15 +155108,11 @@ components: title: ' occupied' required: - _occupied - - cable - cable_end - - created - device - display - id - - last_updated - link_peers - - link_peers_type - name - type - url @@ -129779,14 +155121,523 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `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 + + * `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' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: Number of front ports which may be mapped + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - device + - name + - type + RearPortTemplate: + 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 + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `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 + + * `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' + x-spec-enum-id: c5086c01f1f9c18a + label: + type: string + enum: + - 8P8C + - 8P6C + - 8P4C + - 8P2C + - 6P6C + - 6P4C + - 6P2C + - 4P4C + - 4P2C + - GG45 + - TERA 4P + - TERA 2P + - TERA 1P + - 110 Punch + - BNC + - F Connector + - N Connector + - MRJ21 + - FC + - LC + - LC/PC + - LC/UPC + - LC/APC + - LSH + - LSH/PC + - LSH/UPC + - LSH/APC + - LX.5 + - LX.5/PC + - LX.5/UPC + - LX.5/APC + - MPO + - MTRJ + - SC + - SC/PC + - SC/UPC + - SC/APC + - ST + - CS + - SN + - SMA 905 + - SMA 906 + - URM-P2 + - URM-P4 + - URM-P8 + - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - Other + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: + type: string + maxLength: 200 + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - display + - id + - name + - type + - url + RearPortTemplateRequest: + 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: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -129840,6 +155691,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129934,8 +155793,24 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -129944,30 +155819,15 @@ components: type: integer maximum: 1024 minimum: 1 - description: Number of front ports which may be mapped description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - - device - name - type - RearPortTemplate: + Region: 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: Extends PrimaryModelSerializer to include MPTT support. properties: id: type: integer @@ -129976,48 +155836,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - RearPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - Region: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -130059,18 +155878,19 @@ components: type: integer readOnly: true default: 0 + prefix_count: + type: integer + format: int64 + readOnly: true _depth: type: integer readOnly: true title: ' depth' required: - _depth - - created - display - id - - last_updated - name - - site_count - slug - url RegionRequest: @@ -130114,6 +155934,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130124,9 +155948,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true prefix_count: type: integer format: int64 @@ -130139,10 +155984,8 @@ components: - display - id - name - - prefix_count - slug - url - - vlan_count RoleRequest: type: object description: Adds support for custom fields and tags. @@ -130156,9 +155999,20 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -130173,6 +156027,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130182,7 +156040,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -130207,10 +156065,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - url RouteTargetRequest: @@ -130224,7 +156080,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -130254,6 +156110,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130294,10 +156154,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - object_types - parameters @@ -130357,6 +156215,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true module: type: integer readOnly: true @@ -130365,13 +156227,14 @@ components: readOnly: true description: type: string + nullable: true readOnly: true vars: nullable: true readOnly: true result: allOf: - - $ref: '#/components/schemas/Job' + - $ref: '#/components/schemas/BriefJob' readOnly: true display: type: string @@ -130380,7 +156243,6 @@ components: type: boolean readOnly: true required: - - description - display - id - is_executable @@ -130388,7 +156250,22 @@ components: - name - result - url - - vars + ScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + required: + - commit + - data Service: type: object description: Adds support for custom fields and tags. @@ -130400,16 +156277,20 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachine' + - $ref: '#/components/schemas/BriefVirtualMachine' nullable: true name: type: string @@ -130469,10 +156350,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - ports - url @@ -130482,11 +156361,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -130541,6 +156420,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130598,10 +156481,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - ports - url @@ -130658,6 +156539,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130669,10 +156554,132 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + region: + allOf: + - $ref: '#/components/schemas/BriefRegion' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroup' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + 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) + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count - display - id - name @@ -130689,6 +156696,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130727,18 +156738,19 @@ components: type: integer readOnly: true default: 0 + prefix_count: + type: integer + format: int64 + readOnly: true _depth: type: integer readOnly: true title: ' depth' required: - _depth - - created - display - id - - last_updated - name - - site_count - slug - url SiteGroupRequest: @@ -130785,12 +156797,149 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/BriefRegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + minLength: 1 description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + 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) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug + Subscription: + 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: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - display + - id + - object_id + - object_type + - url + - user + SubscriptionRequest: + 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/BriefUserRequest' + required: + - object_id + - object_type + - user Tag: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -130805,6 +156954,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130841,10 +156994,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - slug - tagged_items @@ -130891,6 +157042,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130901,12 +157056,77 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroup' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + ipaddress_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + site_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true + vrf_count: + type: integer + format: int64 + readOnly: true + cluster_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count - display - id + - ipaddress_count - name - slug - url @@ -130921,6 +157141,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130965,10 +157189,8 @@ components: title: ' depth' required: - _depth - - created - display - id - - last_updated - name - slug - tenant_count @@ -131016,9 +157238,22 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroupRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -131036,11 +157271,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' created: type: string format: date-time @@ -131064,7 +157303,6 @@ components: type: string maxLength: 200 required: - - created - display - id - url @@ -131083,12 +157321,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true created: type: string @@ -131112,7 +157354,6 @@ components: type: string maxLength: 200 required: - - created - display - id - key @@ -131155,7 +157396,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' expires: type: string format: date-time @@ -131187,19 +157428,129 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + status: + type: object + properties: + value: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + label: + type: string + enum: + - Planned + - Active + - Disabled + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroup' + nullable: true + encapsulation: + type: object + properties: + value: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + - wireguard + - openvpn + - l2tp + - pptp + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE + + * `wireguard` - WireGuard + + * `openvpn` - OpenVPN + + * `l2tp` - L2TP + + * `pptp` - PPTP' + x-spec-enum-id: 54a2e45824009c49 + label: + type: string + enum: + - IPsec - Transport + - IPsec - Tunnel + - IP-in-IP + - GRE + - WireGuard + - OpenVPN + - L2TP + - PPTP + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfile' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + terminations_count: + type: integer + format: int64 + readOnly: true required: - display + - encapsulation - id - name + - status + - terminations_count - url TunnelGroup: type: object @@ -131212,6 +157563,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131247,10 +157602,8 @@ components: format: int64 readOnly: true required: - - created - display - id - - last_updated - name - slug - tunnel_count @@ -131289,11 +157642,79 @@ components: type: string minLength: 1 maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroupRequest' + nullable: true + encapsulation: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + - wireguard + - openvpn + - l2tp + - pptp + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE + + * `wireguard` - WireGuard + + * `openvpn` - OpenVPN + + * `l2tp` - L2TP + + * `pptp` - PPTP' + x-spec-enum-id: 54a2e45824009c49 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - encapsulation - name + - status TunnelTermination: type: object description: Adds support for custom fields and tags. @@ -131305,11 +157726,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true tunnel: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/BriefTunnel' role: type: object properties: @@ -131344,7 +157769,7 @@ components: readOnly: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true tags: type: array @@ -131364,13 +157789,9 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - role - - termination - - termination_id - termination_type - tunnel - url @@ -131379,7 +157800,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -131402,7 +157823,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -131413,7 +157834,6 @@ components: additionalProperties: {} required: - role - - termination_id - termination_type - tunnel User: @@ -131430,6 +157850,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131439,6 +157863,41 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + $ref: '#/components/schemas/Group' + permissions: + type: array + items: + $ref: '#/components/schemas/ObjectPermission' required: - display - id @@ -131458,7 +157917,48 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + password: + type: string + writeOnly: true + minLength: 1 + maxLength: 128 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer required: + - password - username VLAN: type: object @@ -131471,9 +157971,21 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + nullable: true vid: type: integer maximum: 4094 @@ -131483,9 +157995,87 @@ components: name: type: string maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRole' + nullable: true description: type: string maxLength: 200 + qinq_role: + type: object + properties: + value: + enum: + - svlan + - cvlan + type: string + description: '* `svlan` - Service + + * `cvlan` - Customer' + x-spec-enum-id: d2510f2d3e3d3fb1 + label: + type: string + enum: + - Service + - Customer + qinq_svlan: + allOf: + - $ref: '#/components/schemas/NestedVLAN' + nullable: true + comments: + type: string + l2vpn_termination: + allOf: + - $ref: '#/components/schemas/BriefL2VPNTermination' + readOnly: true + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + prefix_count: + type: integer + format: int64 + readOnly: true required: - display - id @@ -131503,6 +158093,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131522,18 +158116,6 @@ components: scope: nullable: true readOnly: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131562,16 +158144,12 @@ components: type: string readOnly: true required: - - created - display - id - - last_updated - name - - scope - slug - url - utilization - - vlan_count VLANGroupRequest: type: object description: Adds support for custom fields and tags. @@ -131591,18 +158169,6 @@ components: scope_id: type: integer nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131620,6 +158186,14 @@ components: type: object description: Adds support for custom fields and tags. properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroupRequest' + nullable: true vid: type: integer maximum: 4094 @@ -131630,12 +158204,161 @@ components: type: string minLength: 1 maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true description: type: string maxLength: 200 + qinq_role: + enum: + - svlan + - cvlan + type: string + description: '* `svlan` - Service + + * `cvlan` - Customer' + x-spec-enum-id: d2510f2d3e3d3fb1 + qinq_svlan: + allOf: + - $ref: '#/components/schemas/NestedVLANRequest' + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - vid + VLANTranslationPolicy: + type: object + description: Adds support for custom fields and tags. + 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 + rules: + type: array + items: + $ref: '#/components/schemas/VLANTranslationRule' + readOnly: true + required: + - display + - id + - name + - rules + - url + VLANTranslationPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + VLANTranslationRule: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + policy: + type: integer + local_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Local VLAN ID + description: Numeric VLAN ID (1-4094) + remote_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Remote VLAN ID + description: Numeric VLAN ID (1-4094) + description: + type: string + maxLength: 200 + required: + - display + - id + - local_vid + - policy + - remote_vid + - url + VLANTranslationRuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + policy: + type: integer + local_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Local VLAN ID + description: Numeric VLAN ID (1-4094) + remote_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Remote VLAN ID + description: Numeric VLAN ID (1-4094) + description: + type: string + maxLength: 200 + required: + - local_vid + - policy + - remote_vid VMInterface: type: object description: Adds support for custom fields and tags. @@ -131647,11 +158370,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -131672,6 +158399,17 @@ components: nullable: true mac_address: type: string + readOnly: true + nullable: true + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddress' + nullable: true + mac_addresses: + type: array + items: + $ref: '#/components/schemas/BriefMACAddress' + readOnly: true nullable: true description: type: string @@ -131684,35 +158422,47 @@ components: - access - tagged - tagged-all + - q-in-q - '' type: string description: '* `access` - Access * `tagged` - Tagged - * `tagged-all` - Tagged (All)' - x-spec-enum-id: 79109bd9dbb73a3c + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' + x-spec-enum-id: b6fe48fe21dbf01d label: type: string enum: - Access - Tagged - Tagged (All) + - Q-in-Q (802.1ad) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array items: $ref: '#/components/schemas/VLAN' + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLAN' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicy' + nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true tags: @@ -131741,11 +158491,8 @@ components: required: - count_fhrp_groups - count_ipaddresses - - created - display - id - - l2vpn_termination - - last_updated - name - url - virtual_machine @@ -131754,7 +158501,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -131774,10 +158521,10 @@ components: maximum: 65536 minimum: 1 nullable: true - mac_address: - type: string + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddressRequest' nullable: true - minLength: 1 description: type: string maxLength: 200 @@ -131786,25 +158533,36 @@ components: - access - tagged - tagged-all + - q-in-q - '' type: string description: '* `access` - Access * `tagged` - Tagged - * `tagged-all` - Tagged (All)' - x-spec-enum-id: 79109bd9dbb73a3c + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' + x-spec-enum-id: b6fe48fe21dbf01d untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array items: type: integer + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest' + nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -131827,6 +158585,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131839,9 +158601,48 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ipaddress_count: + type: integer + format: int64 + readOnly: true prefix_count: type: integer format: int64 @@ -131849,8 +158650,8 @@ components: required: - display - id + - ipaddress_count - name - - prefix_count - url VRFRequest: type: object @@ -131866,9 +158667,34 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name VirtualChassis: @@ -131882,12 +158708,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDevice' @@ -131895,13 +158728,38 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true member_count: type: integer readOnly: true + members: + type: array + items: + $ref: '#/components/schemas/NestedDevice' + readOnly: true required: - display - id - member_count + - members - name - url VirtualChassisRequest: @@ -131912,6 +158770,9 @@ components: type: string minLength: 1 maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDeviceRequest' @@ -131919,8 +158780,365 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + VirtualCircuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider_network: + $ref: '#/components/schemas/BriefProviderNetwork' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccount' + nullable: true + type: + $ref: '#/components/schemas/BriefVirtualCircuitType' + status: + type: object + properties: + value: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + label: + type: string + enum: + - Planned + - Provisioning + - Active + - Offline + - Deprovisioning + - Decommissioned + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - cid + - display + - id + - provider_network + - type + - url + VirtualCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider_network: + $ref: '#/components/schemas/BriefProviderNetworkRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - cid + - provider_network + - type + VirtualCircuitTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + virtual_circuit: + $ref: '#/components/schemas/BriefVirtualCircuit' + role: + type: object + properties: + value: + enum: + - peer + - hub + - spoke + type: string + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + label: + type: string + enum: + - Peer + - Hub + - Spoke + interface: + $ref: '#/components/schemas/BriefInterface' + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - display + - id + - interface + - url + - virtual_circuit + VirtualCircuitTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + virtual_circuit: + $ref: '#/components/schemas/BriefVirtualCircuitRequest' + role: + enum: + - peer + - hub + - spoke + type: string + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + interface: + $ref: '#/components/schemas/BriefInterfaceRequest' + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - interface + - virtual_circuit + VirtualCircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + virtual_circuit_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + - virtual_circuit_count + VirtualCircuitTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - slug VirtualDeviceContext: type: object description: Adds support for custom fields and tags. @@ -131932,6 +159150,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131939,7 +159161,7 @@ components: type: string maxLength: 64 device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' identifier: type: integer maximum: 32767 @@ -131947,20 +159169,20 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true status: type: object @@ -132010,14 +159232,11 @@ components: format: int64 readOnly: true required: - - created - device - display - id - interface_count - - last_updated - name - - primary_ip - status - url VirtualDeviceContextRequest: @@ -132029,7 +159248,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -132037,15 +159256,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -132086,11 +159305,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -132101,7 +159324,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132120,10 +159343,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - size - url @@ -132133,7 +159354,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -132145,7 +159366,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132157,7 +159378,7 @@ components: - name - size - virtual_machine - VirtualMachine: + VirtualMachineWithConfigContext: type: object description: Adds support for custom fields and tags. properties: @@ -132168,41 +159389,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - VirtualMachineRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - VirtualMachineWithConfigContext: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -132247,40 +159434,44 @@ components: - Decommissioning site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRole' + - $ref: '#/components/schemas/BriefDeviceRole' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true vcpus: type: number @@ -132300,7 +159491,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132308,7 +159499,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -132341,14 +159532,10 @@ components: type: integer readOnly: true required: - - config_context - - created - display - id - interface_count - - last_updated - name - - primary_ip - url - virtual_disk_count VirtualMachineWithConfigContextRequest: @@ -132382,35 +159569,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -132430,7 +159621,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132438,7 +159629,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -132464,6 +159655,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132548,10 +159743,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - name - payload_url - url @@ -132646,6 +159839,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132657,7 +159854,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroup' + - $ref: '#/components/schemas/BriefWirelessLANGroup' nullable: true status: type: object @@ -132687,11 +159884,20 @@ components: - Deprecated vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer + nullable: true + scope: nullable: true + readOnly: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true auth_type: type: object @@ -132765,10 +159971,8 @@ components: readOnly: true nullable: true required: - - created - display - id - - last_updated - ssid - url WirelessLANGroup: @@ -132782,6 +159986,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132792,9 +160000,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + parent: + allOf: + - $ref: '#/components/schemas/NestedWirelessLANGroup' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true wirelesslan_count: type: integer readOnly: true @@ -132854,7 +160083,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -132874,11 +160103,17 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -132935,13 +160170,17 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true interface_a: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/BriefInterface' interface_b: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/BriefInterface' ssid: type: string maxLength: 32 @@ -132968,7 +160207,7 @@ components: - Decommissioning tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true auth_type: type: object @@ -133022,6 +160261,41 @@ components: type: string title: Pre-shared key maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + type: object + properties: + value: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + label: + type: string + enum: + - Kilometers + - Meters + - Miles + - Feet + nullable: true description: type: string maxLength: 200 @@ -133045,21 +160319,19 @@ components: readOnly: true nullable: true required: - - created - display - id - interface_a - interface_b - - last_updated - url WirelessLinkRequest: type: object description: Adds support for custom fields and tags. properties: interface_a: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' interface_b: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' ssid: type: string maxLength: 32 @@ -133077,7 +160349,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -133112,6 +160384,31 @@ components: type: string title: Pre-shared key maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true description: type: string maxLength: 200 @@ -133135,10 +160432,10 @@ components: type: string minLength: 1 rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true date_added: type: string @@ -133187,6 +160484,7 @@ components: - smf-os1 - smf-os2 - aoc + - usb - power - '' type: string @@ -133234,8 +160532,11 @@ components: * `aoc` - Active Optical Cabling (AOC) + * `usb` - USB + * `power` - Power' - x-spec-enum-id: e671018e64196f8d + x-spec-enum-id: 7b11d524b2b1a7ef + nullable: true a_terminations: type: array items: @@ -133258,7 +160559,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true label: type: string @@ -133297,6 +160598,7 @@ components: * `in` - Inches' x-spec-enum-id: e64ce3a2c5997172 + nullable: true description: type: string maxLength: 200 @@ -133309,6 +160611,44 @@ components: custom_fields: type: object additionalProperties: {} + WritableCircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + member_type: + type: string + member_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - group + - member_id + - member_type WritableCircuitRequest: type: object description: Adds support for custom fields and tags. @@ -133320,13 +160660,13 @@ components: description: Unique circuit ID maxLength: 100 provider: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/BriefProviderRequest' provider_account: allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true type: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/BriefCircuitTypeRequest' status: enum: - planned @@ -133350,7 +160690,7 @@ components: x-spec-enum-id: 63c838134a022200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true install_date: type: string @@ -133372,6 +160712,31 @@ components: description: type: string maxLength: 200 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true comments: type: string tags: @@ -133381,6 +160746,10 @@ components: custom_fields: type: object additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' required: - cid - provider @@ -133394,10 +160763,10 @@ components: minLength: 1 maxLength: 100 type: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/BriefClusterTypeRequest' group: allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' + - $ref: '#/components/schemas/BriefClusterGroupRequest' nullable: true status: enum: @@ -133419,11 +160788,13 @@ components: x-spec-enum-id: 79d20a734d0eecbb tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true description: type: string @@ -133445,10 +160816,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133478,6 +160849,7 @@ components: - '' type: string x-spec-enum-id: c5f7197b7211818a + nullable: true description: 'Physical port type @@ -133568,11 +160940,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133633,6 +161005,7 @@ components: * `other` - Other' x-spec-enum-id: c5f7197b7211818a + nullable: true description: type: string maxLength: 200 @@ -133643,10 +161016,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133676,6 +161049,7 @@ components: - '' type: string x-spec-enum-id: c5f7197b7211818a + nullable: true description: 'Physical port type @@ -133766,11 +161140,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133831,6 +161205,7 @@ components: * `other` - Other' x-spec-enum-id: c5f7197b7211818a + nullable: true description: type: string maxLength: 200 @@ -133848,10 +161223,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -133869,6 +161244,7 @@ components: * `inactive` - Inactive' x-spec-enum-id: ef3a31644cec7524 + nullable: true tags: type: array items: @@ -133908,7 +161284,6 @@ components: additionalProperties: {} required: - name - - parent - slug WritableCustomFieldChoiceSetRequest: type: object @@ -133932,6 +161307,7 @@ components: - '' type: string x-spec-enum-id: cf0efb5195f85007 + nullable: true description: 'Base set of predefined choices (optional) @@ -134032,8 +161408,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -134094,6 +161474,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -134124,7 +161508,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -134153,13 +161537,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -134172,10 +161556,10 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' default_platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true model: type: string @@ -134211,6 +161595,7 @@ components: - '' type: string x-spec-enum-id: d10d91f690a856c2 + nullable: true title: Parent/child status description: 'Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. @@ -134226,6 +161611,9 @@ components: - left-to-right - right-to-left - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom - passive - mixed - '' @@ -134240,10 +161628,17 @@ components: * `side-to-rear` - Side to rear + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + * `passive` - Passive * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d + x-spec-enum-id: 943288113dad6782 + nullable: true weight: type: number format: double @@ -134268,6 +161663,7 @@ components: * `oz` - Ounces' x-spec-enum-id: 7c1876f422815884 + nullable: true front_image: type: string format: binary @@ -134299,16 +161695,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -134321,14 +161717,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -134348,6 +161744,7 @@ components: * `rear` - Rear' x-spec-enum-id: d2fb9b3f75158b83 + nullable: true title: Rack face latitude: type: number @@ -134398,6 +161795,9 @@ components: - left-to-right - right-to-left - side-to-rear + - rear-to-side + - bottom-to-top + - top-to-bottom - passive - mixed - '' @@ -134412,29 +161812,36 @@ components: * `side-to-rear` - Side to rear + * `rear-to-side` - Rear to side + + * `bottom-to-top` - Bottom to top + + * `top-to-bottom` - Top to bottom + * `passive` - Passive * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d + x-spec-enum-id: 943288113dad6782 + nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -134454,7 +161861,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -134469,7 +161876,6 @@ components: additionalProperties: {} required: - device_type - - face - role - site WritableEventRuleRequest: @@ -134484,28 +161890,35 @@ components: type: string minLength: 1 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. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -134514,11 +161927,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -134539,6 +161955,7 @@ components: $ref: '#/components/schemas/NestedTagRequest' required: - action_object_type + - event_types - name - object_types WritableFrontPortRequest: @@ -134546,10 +161963,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -134607,6 +162024,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134701,8 +162126,24 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -134713,7 +162154,6 @@ components: type: integer maximum: 1024 minimum: 1 - default: 1 description: Mapped position on corresponding rear port description: type: string @@ -134742,11 +162182,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -134806,6 +162246,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134900,19 +162348,34 @@ components: * `splice` - Splice + * `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' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 minimum: 1 - default: 1 description: type: string maxLength: 200 @@ -134952,6 +162415,7 @@ components: * `main` - Main' x-spec-enum-id: 64c1be7bdb2548ca + nullable: true proposals: type: array items: @@ -135042,6 +162506,7 @@ components: * `hmac-md5` - MD5 HMAC' x-spec-enum-id: 0830e8839f5dea4f + nullable: true group: enum: - 1 @@ -135151,11 +162616,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135191,6 +162656,7 @@ components: - '' type: string x-spec-enum-id: 10fbcb4930889b0f + nullable: true description: 'The functional role of this IP @@ -135254,11 +162720,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135277,7 +162743,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -135425,9 +162891,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -135481,6 +162947,7 @@ components: * `des-cbc` - DES' x-spec-enum-id: b022535cfdee79fe + nullable: true title: Encryption authentication_algorithm: enum: @@ -135501,6 +162968,7 @@ components: * `hmac-md5` - MD5 HMAC' x-spec-enum-id: 0830e8839f5dea4f + nullable: true title: Authentication sa_lifetime_seconds: type: integer @@ -135532,14 +163000,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -135559,10 +163027,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -135612,7 +163083,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -135693,6 +163166,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -135701,6 +163178,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -135799,8 +163278,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -135926,7 +163409,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b enabled: type: boolean parent: @@ -135946,8 +163429,9 @@ components: maximum: 65536 minimum: 1 nullable: true - mac_address: - type: string + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddressRequest' nullable: true speed: type: integer @@ -135984,9 +163468,11 @@ components: - access - tagged - tagged-all + - q-in-q - '' type: string - x-spec-enum-id: 79109bd9dbb73a3c + x-spec-enum-id: b6fe48fe21dbf01d + nullable: true description: 'IEEE 802.1Q tagging strategy @@ -135994,7 +163480,9 @@ components: * `tagged` - Tagged - * `tagged-all` - Tagged (All)' + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' rf_role: enum: - ap @@ -136005,6 +163493,7 @@ components: * `station` - Station' x-spec-enum-id: d2772dbea88b0fb1 + nullable: true title: Wireless role rf_channel: enum: @@ -136601,6 +164090,7 @@ components: * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' x-spec-enum-id: aac33cc237adc8f9 + nullable: true title: Wireless channel poe_mode: enum: @@ -136612,6 +164102,7 @@ components: * `pse` - PSE' x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true poe_type: enum: - type1-ieee802.3af @@ -136640,6 +164131,7 @@ components: * `passive-48v-4pair` - Passive 48V (4-pair)' x-spec-enum-id: 74bd3be4012f6da9 + nullable: true rf_channel_frequency: type: number format: double @@ -136668,12 +164160,20 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array items: type: integer + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest' + nullable: true mark_connected: type: boolean description: Treat as if a cable is connected @@ -136683,7 +164183,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -136705,11 +164205,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -136731,10 +164231,13 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-lx + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -136784,7 +164287,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -136865,6 +164370,10 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-lx` - 1000BASE-LX (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -136873,6 +164382,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -136971,8 +164482,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -137098,7 +164613,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 4b917ee05489852b enabled: type: boolean mgmt_only: @@ -137121,6 +164636,7 @@ components: * `pse` - PSE' x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true poe_type: enum: - type1-ieee802.3af @@ -137149,6 +164665,7 @@ components: * `passive-48v-4pair` - Passive 48V (4-pair)' x-spec-enum-id: 74bd3be4012f6da9 + nullable: true rf_role: enum: - ap @@ -137159,10 +164676,95 @@ components: * `station` - Station' x-spec-enum-id: d2772dbea88b0fb1 + nullable: true title: Wireless role required: - name - type + WritableInventoryItemRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this item + maxLength: 50 + discovered: + type: boolean + description: This item was automatically discovered + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - device + - name WritableJournalEntryRequest: type: object description: Adds support for custom fields and tags. @@ -137233,6 +164835,7 @@ components: - vxlan-evpn - mpls-evpn - pbb-evpn + - evpn-vpws - epl - evpl - ep-lan @@ -137252,6 +164855,8 @@ components: * `pbb-evpn` - PBB EVPN + * `evpn-vpws` - EVPN VPWS + * `epl` - EPL * `evpl` - EVPL @@ -137263,7 +164868,7 @@ components: * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 + x-spec-enum-id: 4c9738ba3d741dd4 import_targets: type: array items: @@ -137279,7 +164884,7 @@ components: type: string tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tags: type: array @@ -137306,7 +164911,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' parent: type: integer nullable: true @@ -137330,7 +164935,7 @@ components: x-spec-enum-id: e363a8ddb138be50 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -137348,7 +164953,6 @@ components: additionalProperties: {} required: - name - - parent - site - slug WritableModuleRequest: @@ -137356,11 +164960,11 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: type: integer module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/BriefModuleTypeRequest' status: enum: - offline @@ -137412,7 +165016,7 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 @@ -137421,6 +165025,29 @@ components: type: string description: Discrete part number (optional) maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `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' + x-spec-enum-id: f6e5562e0e98d69d + nullable: true weight: type: number format: double @@ -137445,6 +165072,7 @@ components: * `oz` - Ounces' x-spec-enum-id: 7c1876f422815884 + nullable: true description: type: string maxLength: 200 @@ -137465,10 +165093,10 @@ components: description: Adds support for custom fields and tags. properties: power_panel: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/BriefPowerPanelRequest' rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true name: type: string @@ -137537,7 +165165,7 @@ components: maxLength: 200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true comments: type: string @@ -137556,10 +165184,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -137632,6 +165260,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -137658,6 +165287,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -137669,7 +165299,8 @@ components: - other - '' type: string - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 + nullable: true description: 'Physical port type @@ -137795,6 +165426,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -137847,6 +165480,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -137864,9 +165499,13 @@ components: * `hardwired` - Hardwired * `other` - Other' + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 power_port: allOf: - - $ref: '#/components/schemas/PowerPortRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true feed_leg: enum: @@ -137876,6 +165515,7 @@ components: - '' type: string x-spec-enum-id: a4902339df0b7c06 + nullable: true description: 'Phase (for three-phase feeds) @@ -137909,11 +165549,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -137988,6 +165628,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -138014,6 +165655,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -138147,6 +165789,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -138199,6 +165843,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -138216,10 +165862,11 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 + nullable: true power_port: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true feed_leg: enum: @@ -138229,6 +165876,7 @@ components: - '' type: string x-spec-enum-id: a4902339df0b7c06 + nullable: true description: 'Phase (for three-phase feeds) @@ -138247,10 +165895,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -138323,6 +165971,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138367,7 +166016,8 @@ components: - other - '' type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b + nullable: true description: 'Physical port type @@ -138493,6 +166143,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138613,11 +166265,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -138692,6 +166344,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138858,6 +166511,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138941,7 +166596,8 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b + nullable: true maximum_draw: type: integer maximum: 2147483647 @@ -138966,21 +166622,23 @@ components: prefix: type: string minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -139002,7 +166660,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -139038,14 +166696,14 @@ components: nullable: true maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -139067,7 +166725,7 @@ components: x-spec-enum-id: 0c556d55dc1baa13 role: allOf: - - $ref: '#/components/schemas/RackRoleRequest' + - $ref: '#/components/schemas/BriefRackRoleRequest' nullable: true serial: type: string @@ -139078,7 +166736,11 @@ components: nullable: true description: A unique tag used to identify this rack maxLength: 50 - type: + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: enum: - 2-post-frame - 4-post-frame @@ -139103,6 +166765,7 @@ components: * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' x-spec-enum-id: e32aaa89a223f2ea + nullable: true width: enum: - 10 @@ -139164,6 +166827,7 @@ components: * `oz` - Ounces' x-spec-enum-id: 7c1876f422815884 + nullable: true desc_units: type: boolean title: Descending units @@ -139190,6 +166854,7 @@ components: * `in` - Inches' x-spec-enum-id: 86a846b6c40f495e + nullable: true mounting_depth: type: integer maximum: 32767 @@ -139197,6 +166862,17 @@ components: nullable: true description: Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + nullable: true description: type: string maxLength: 200 @@ -139212,15 +166888,167 @@ components: required: - name - site + WritableRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `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)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - form_factor + - manufacturer + - model + - slug WritableRearPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -139278,6 +167106,233 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `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 + + * `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' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: Number of front ports which may be mapped + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - device + - name + - type + WritableRearPortTemplateRequest: + 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: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -139372,203 +167427,24 @@ components: * `splice` - Splice - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: Number of front ports which may be mapped - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - device - - name - - type - WritableRearPortTemplateRequest: - 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: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `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 + * `usb-a` - USB Type A - * `sn` - SN + * `usb-b` - USB Type B - * `sma-905` - SMA 905 + * `usb-c` - USB Type C - * `sma-906` - SMA 906 + * `usb-mini-a` - USB Mini A - * `urm-p2` - URM-P2 + * `usb-mini-b` - USB Mini B - * `urm-p4` - URM-P4 + * `usb-micro-a` - USB Micro A - * `urm-p8` - URM-P8 + * `usb-micro-b` - USB Micro B - * `splice` - Splice + * `usb-micro-ab` - USB Micro AB * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -139611,7 +167487,6 @@ components: additionalProperties: {} required: - name - - parent - slug WritableServiceRequest: type: object @@ -139619,11 +167494,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -139739,7 +167614,6 @@ components: additionalProperties: {} required: - name - - parent - slug WritableSiteRequest: type: object @@ -139775,15 +167649,15 @@ components: x-spec-enum-id: e363a8ddb138be50 region: allOf: - - $ref: '#/components/schemas/RegionRequest' + - $ref: '#/components/schemas/BriefRegionRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/SiteGroupRequest' + - $ref: '#/components/schemas/BriefSiteGroupRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -139792,6 +167666,7 @@ components: time_zone: type: string nullable: true + minLength: 1 description: type: string maxLength: 200 @@ -139888,7 +167763,7 @@ components: x-spec-enum-id: 0d65f7912cba74aa group: allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' + - $ref: '#/components/schemas/BriefTunnelGroupRequest' nullable: true encapsulation: enum: @@ -139896,6 +167771,10 @@ components: - ipsec-tunnel - ip-ip - gre + - wireguard + - openvpn + - l2tp + - pptp type: string description: '* `ipsec-transport` - IPsec - Transport @@ -139903,15 +167782,23 @@ components: * `ip-ip` - IP-in-IP - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 + * `gre` - GRE + + * `wireguard` - WireGuard + + * `openvpn` - OpenVPN + + * `l2tp` - L2TP + + * `pptp` - PPTP' + x-spec-enum-id: 54a2e45824009c49 ipsec_profile: allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' + - $ref: '#/components/schemas/BriefIPSecProfileRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tunnel_id: type: integer @@ -139939,7 +167826,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -139962,7 +167849,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -139972,7 +167859,6 @@ components: type: object additionalProperties: {} required: - - termination_id - termination_type - tunnel WritableVLANRequest: @@ -139981,11 +167867,11 @@ components: properties: site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/VLANGroupRequest' + - $ref: '#/components/schemas/BriefVLANGroupRequest' nullable: true vid: type: integer @@ -139999,7 +167885,7 @@ components: maxLength: 64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -140018,11 +167904,29 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string maxLength: 200 + qinq_role: + enum: + - svlan + - cvlan + - '' + type: string + x-spec-enum-id: d2510f2d3e3d3fb1 + nullable: true + title: Q-in-Q role + description: 'Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) + + + * `svlan` - Service + + * `cvlan` - Customer' + qinq_svlan: + type: integer + nullable: true comments: type: string tags: @@ -140040,7 +167944,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -140060,10 +167964,10 @@ components: maximum: 65536 minimum: 1 nullable: true - mac_address: - type: string + primary_mac_address: + allOf: + - $ref: '#/components/schemas/BriefMACAddressRequest' nullable: true - minLength: 1 description: type: string maxLength: 200 @@ -140072,9 +167976,11 @@ components: - access - tagged - tagged-all + - q-in-q - '' type: string - x-spec-enum-id: 79109bd9dbb73a3c + x-spec-enum-id: b6fe48fe21dbf01d + nullable: true description: 'IEEE 802.1Q tagging strategy @@ -140082,18 +167988,28 @@ components: * `tagged` - Tagged - * `tagged-all` - Tagged (All)' + * `tagged-all` - Tagged (All) + + * `q-in-q` - Q-in-Q (802.1ad)' untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array items: type: integer + qinq_svlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + vlan_translation_policy: + allOf: + - $ref: '#/components/schemas/BriefVLANTranslationPolicyRequest' + nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -140133,6 +168049,98 @@ components: additionalProperties: {} required: - name + WritableVirtualCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider_network: + $ref: '#/components/schemas/BriefProviderNetworkRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/BriefVirtualCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - cid + - provider_network + - type + WritableVirtualCircuitTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + virtual_circuit: + $ref: '#/components/schemas/BriefVirtualCircuitRequest' + role: + enum: + - peer + - hub + - spoke + type: string + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + interface: + $ref: '#/components/schemas/BriefInterfaceRequest' + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - interface + - virtual_circuit WritableVirtualDeviceContextRequest: type: object description: Adds support for custom fields and tags. @@ -140142,7 +168150,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -140150,15 +168158,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -140219,35 +168227,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -140267,7 +168279,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -140275,7 +168287,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -140318,7 +168330,6 @@ components: additionalProperties: {} required: - name - - parent - slug WritableWirelessLANRequest: type: object @@ -140333,7 +168344,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -140352,11 +168363,17 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + scope_type: + type: string + nullable: true + scope_id: + type: integer nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140374,6 +168391,7 @@ components: * `wpa-enterprise` - WPA Enterprise' x-spec-enum-id: a2043acb899b3954 + nullable: true title: Authentication type auth_cipher: enum: @@ -140388,6 +168406,7 @@ components: * `aes` - AES' x-spec-enum-id: 8fdaefa727c26fdc + nullable: true title: Authentication cipher auth_psk: type: string @@ -140409,9 +168428,9 @@ components: description: Adds support for custom fields and tags. properties: interface_a: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' interface_b: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' ssid: type: string maxLength: 32 @@ -140429,7 +168448,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140447,6 +168466,7 @@ components: * `wpa-enterprise` - WPA Enterprise' x-spec-enum-id: a2043acb899b3954 + nullable: true title: Authentication type auth_cipher: enum: @@ -140461,11 +168481,37 @@ components: * `aes` - AES' x-spec-enum-id: 8fdaefa727c26fdc + nullable: true title: Authentication cipher auth_psk: type: string title: Pre-shared key maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true description: type: string maxLength: 200 diff --git a/api_circuits.go b/api_circuits.go index 7e493535bb..d1d516a586 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,2308 +16,15756 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) -// CircuitsAPIService CircuitsAPI service -type CircuitsAPIService service -type ApiCircuitsCircuitTerminationsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTerminationRequest *[]CircuitTerminationRequest -} +type CircuitsAPI interface { -func (r ApiCircuitsCircuitTerminationsBulkDestroyRequest) CircuitTerminationRequest(circuitTerminationRequest []CircuitTerminationRequest) ApiCircuitsCircuitTerminationsBulkDestroyRequest { - r.circuitTerminationRequest = &circuitTerminationRequest - return r -} + /* + CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy -func (r ApiCircuitsCircuitTerminationsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsBulkDestroyExecute(r) -} + Delete a list of Circuit group assignment objects. -/* -CircuitsCircuitTerminationsBulkDestroy Method for CircuitsCircuitTerminationsBulkDestroy + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest + */ + CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest -Delete a list of circuit termination objects. + // CircuitsCircuitGroupAssignmentsBulkDestroyExecute executes the request + CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error) + + /* + CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate + + Patch a list of Circuit group assignment objects. @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 { - return ApiCircuitsCircuitTerminationsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest + */ + CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest -// Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroyExecute(r ApiCircuitsCircuitTerminationsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute executes the request + // @return []CircuitGroupAssignment + CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate - localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + Put a list of Circuit group assignment objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitTerminationRequest == nil { - return nil, reportError("circuitTerminationRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest + */ + CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // CircuitsCircuitGroupAssignmentsBulkUpdateExecute executes the request + // @return []CircuitGroupAssignment + CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Post a list of Circuit group assignment objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitTerminationRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsCreateRequest + */ + CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // CircuitsCircuitGroupAssignmentsCreateExecute executes the request + // @return CircuitGroupAssignment + CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Delete a Circuit group assignment object. - return localVarHTTPResponse, nil -} + @param ctx 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 group assignment. + @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest + */ + CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest -type ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTerminationRequest *[]CircuitTerminationRequest -} + // CircuitsCircuitGroupAssignmentsDestroyExecute executes the request + CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error) -func (r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) CircuitTerminationRequest(circuitTerminationRequest []CircuitTerminationRequest) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest { - r.circuitTerminationRequest = &circuitTerminationRequest - return r -} + /* + CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList -func (r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) Execute() ([]CircuitTermination, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsBulkPartialUpdateExecute(r) -} + Get a list of Circuit group assignment objects. -/* -CircuitsCircuitTerminationsBulkPartialUpdate Method for CircuitsCircuitTerminationsBulkPartialUpdate + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsListRequest + */ + CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest -Patch a list of circuit termination objects. + // CircuitsCircuitGroupAssignmentsListExecute executes the request + // @return PaginatedCircuitGroupAssignmentList + CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error) + + /* + CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate + + Patch a Circuit group assignment object. @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 { - return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest + */ + CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest -// Execute executes the request -// -// @return []CircuitTermination -func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) ([]CircuitTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitTermination - ) + // CircuitsCircuitGroupAssignmentsPartialUpdateExecute executes the request + // @return CircuitGroupAssignment + CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve - localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + Get a Circuit group assignment object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitTerminationRequest == nil { - return localVarReturnValue, nil, reportError("circuitTerminationRequest is required and must be specified") - } + @param ctx 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 group assignment. + @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest + */ + CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // CircuitsCircuitGroupAssignmentsRetrieveExecute executes the request + // @return CircuitGroupAssignment + CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Put a Circuit group assignment object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitTerminationRequest - 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 - } + @param ctx 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 group assignment. + @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest + */ + CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // CircuitsCircuitGroupAssignmentsUpdateExecute executes the request + // @return CircuitGroupAssignment + CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a list of circuit group objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkDestroyRequest + */ + CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // CircuitsCircuitGroupsBulkDestroyExecute executes the request + CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error) -type ApiCircuitsCircuitTerminationsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTerminationRequest *[]CircuitTerminationRequest -} + /* + CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate -func (r ApiCircuitsCircuitTerminationsBulkUpdateRequest) CircuitTerminationRequest(circuitTerminationRequest []CircuitTerminationRequest) ApiCircuitsCircuitTerminationsBulkUpdateRequest { - r.circuitTerminationRequest = &circuitTerminationRequest - return r -} + Patch a list of circuit group objects. -func (r ApiCircuitsCircuitTerminationsBulkUpdateRequest) Execute() ([]CircuitTermination, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsBulkUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest + */ + CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest -/* -CircuitsCircuitTerminationsBulkUpdate Method for CircuitsCircuitTerminationsBulkUpdate + // CircuitsCircuitGroupsBulkPartialUpdateExecute executes the request + // @return []CircuitGroup + CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error) -Put a list of circuit termination objects. + /* + CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate + + Put a list of circuit group objects. @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 { - return ApiCircuitsCircuitTerminationsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiCircuitsCircuitGroupsBulkUpdateRequest + */ + CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest -// Execute executes the request -// -// @return []CircuitTermination -func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiCircuitsCircuitTerminationsBulkUpdateRequest) ([]CircuitTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitTermination - ) + // CircuitsCircuitGroupsBulkUpdateExecute executes the request + // @return []CircuitGroup + CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate - localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + Post a list of circuit group objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitTerminationRequest == nil { - return localVarReturnValue, nil, reportError("circuitTerminationRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsCreateRequest + */ + CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // CircuitsCircuitGroupsCreateExecute executes the request + // @return CircuitGroup + CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Delete a circuit group object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitTerminationRequest - 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 - } + @param ctx 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 group. + @return ApiCircuitsCircuitGroupsDestroyRequest + */ + CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // CircuitsCircuitGroupsDestroyExecute executes the request + CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Get a list of circuit group objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsListRequest + */ + CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // CircuitsCircuitGroupsListExecute executes the request + // @return PaginatedCircuitGroupList + CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error) -type ApiCircuitsCircuitTerminationsCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTerminationRequest *CircuitTerminationRequest -} + /* + CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate -func (r ApiCircuitsCircuitTerminationsCreateRequest) CircuitTerminationRequest(circuitTerminationRequest CircuitTerminationRequest) ApiCircuitsCircuitTerminationsCreateRequest { - r.circuitTerminationRequest = &circuitTerminationRequest - return r -} + Patch a circuit group object. -func (r ApiCircuitsCircuitTerminationsCreateRequest) Execute() (*CircuitTermination, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsCreateExecute(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 circuit group. + @return ApiCircuitsCircuitGroupsPartialUpdateRequest + */ + CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest -/* -CircuitsCircuitTerminationsCreate Method for CircuitsCircuitTerminationsCreate + // CircuitsCircuitGroupsPartialUpdateExecute executes the request + // @return CircuitGroup + CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error) -Post a list of circuit termination objects. + /* + CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve + + Get a circuit group object. @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 { - return ApiCircuitsCircuitTerminationsCreateRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsRetrieveRequest + */ + CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest -// Execute executes the request -// -// @return CircuitTermination -func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreateExecute(r ApiCircuitsCircuitTerminationsCreateRequest) (*CircuitTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination - ) + // CircuitsCircuitGroupsRetrieveExecute executes the request + // @return CircuitGroup + CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate - localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + Put a circuit group object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitTerminationRequest == nil { - return localVarReturnValue, nil, reportError("circuitTerminationRequest is required and must be specified") - } + @param ctx 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 group. + @return ApiCircuitsCircuitGroupsUpdateRequest + */ + CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // CircuitsCircuitGroupsUpdateExecute executes the request + // @return CircuitGroup + CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + CircuitsCircuitTerminationsBulkDestroy Method for CircuitsCircuitTerminationsBulkDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Delete a list of circuit termination objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitTerminationRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsBulkDestroyRequest + */ + CircuitsCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsCircuitTerminationsBulkDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // CircuitsCircuitTerminationsBulkDestroyExecute executes the request + CircuitsCircuitTerminationsBulkDestroyExecute(r ApiCircuitsCircuitTerminationsBulkDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + CircuitsCircuitTerminationsBulkPartialUpdate Method for CircuitsCircuitTerminationsBulkPartialUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Patch a list of circuit termination objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest + */ + CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // CircuitsCircuitTerminationsBulkPartialUpdateExecute executes the request + // @return []CircuitTermination + CircuitsCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) ([]CircuitTermination, *http.Response, error) -type ApiCircuitsCircuitTerminationsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 -} + /* + CircuitsCircuitTerminationsBulkUpdate Method for CircuitsCircuitTerminationsBulkUpdate -func (r ApiCircuitsCircuitTerminationsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsDestroyExecute(r) -} + Put a list of circuit termination objects. -/* -CircuitsCircuitTerminationsDestroy Method for CircuitsCircuitTerminationsDestroy + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsBulkUpdateRequest + */ + CircuitsCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkUpdateRequest -Delete a circuit termination object. + // CircuitsCircuitTerminationsBulkUpdateExecute executes the request + // @return []CircuitTermination + CircuitsCircuitTerminationsBulkUpdateExecute(r ApiCircuitsCircuitTerminationsBulkUpdateRequest) ([]CircuitTermination, *http.Response, error) + + /* + 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 + */ + CircuitsCircuitTerminationsCreate(ctx context.Context) ApiCircuitsCircuitTerminationsCreateRequest + + // CircuitsCircuitTerminationsCreateExecute executes the request + // @return CircuitTermination + CircuitsCircuitTerminationsCreateExecute(r ApiCircuitsCircuitTerminationsCreateRequest) (*CircuitTermination, *http.Response, error) + + /* + 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 -*/ -func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsDestroyRequest { - return ApiCircuitsCircuitTerminationsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + */ + CircuitsCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsDestroyRequest -// Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroyExecute(r ApiCircuitsCircuitTerminationsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // CircuitsCircuitTerminationsDestroyExecute executes the request + CircuitsCircuitTerminationsDestroyExecute(r ApiCircuitsCircuitTerminationsDestroyRequest) (*http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + CircuitsCircuitTerminationsList Method for CircuitsCircuitTerminationsList - localVarPath := localBasePath + "/api/circuits/circuit-terminations/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Get a list of circuit termination objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsListRequest + */ + CircuitsCircuitTerminationsList(ctx context.Context) ApiCircuitsCircuitTerminationsListRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // CircuitsCircuitTerminationsListExecute executes the request + // @return PaginatedCircuitTerminationList + CircuitsCircuitTerminationsListExecute(r ApiCircuitsCircuitTerminationsListRequest) (*PaginatedCircuitTerminationList, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + CircuitsCircuitTerminationsPartialUpdate Method for CircuitsCircuitTerminationsPartialUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Patch a circuit termination object. - // 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 - } + @param ctx 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 + */ + CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPartialUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // CircuitsCircuitTerminationsPartialUpdateExecute executes the request + // @return CircuitTermination + CircuitsCircuitTerminationsPartialUpdateExecute(r ApiCircuitsCircuitTerminationsPartialUpdateRequest) (*CircuitTermination, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + CircuitsCircuitTerminationsPathsRetrieve Method for CircuitsCircuitTerminationsPathsRetrieve - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Return all CablePaths which traverse a given pass-through port. - return localVarHTTPResponse, nil -} + @param ctx 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 + */ + CircuitsCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPathsRetrieveRequest -type ApiCircuitsCircuitTerminationsListRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - markConnected *bool - modifiedByRequest *string - occupied *bool - offset *int32 - ordering *string - portSpeed *[]int32 - portSpeedEmpty *bool - portSpeedGt *[]int32 - portSpeedGte *[]int32 - portSpeedLt *[]int32 - portSpeedLte *[]int32 - portSpeedN *[]int32 - ppInfo *[]string - ppInfoEmpty *bool - ppInfoIc *[]string - ppInfoIe *[]string - ppInfoIew *[]string - ppInfoIsw *[]string - ppInfoN *[]string - ppInfoNic *[]string - ppInfoNie *[]string - ppInfoNiew *[]string - ppInfoNisw *[]string - provider *[]string - providerN *[]string - providerId *[]int32 - providerIdN *[]int32 - providerNetworkId *[]*int32 - providerNetworkIdN *[]*int32 - q *string - site *[]string - siteN *[]string - siteId *[]*int32 - siteIdN *[]*int32 - tag *[]string - tagN *[]string - termSide *Termination - termSideN *Termination - 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 -} + // CircuitsCircuitTerminationsPathsRetrieveExecute executes the request + // @return CircuitTermination + CircuitsCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) (*CircuitTermination, *http.Response, error) -// * `A` - A * `B` - B -func (r ApiCircuitsCircuitTerminationsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiCircuitsCircuitTerminationsListRequest { - r.cableEnd = &cableEnd - return r -} + /* + CircuitsCircuitTerminationsRetrieve Method for CircuitsCircuitTerminationsRetrieve -// * `A` - A * `B` - B -func (r ApiCircuitsCircuitTerminationsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiCircuitsCircuitTerminationsListRequest { - r.cableEndN = &cableEndN - return r -} + Get a circuit termination object. -// Cable (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) CableId(cableId []*int32) ApiCircuitsCircuitTerminationsListRequest { - r.cableId = &cableId - 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 circuit termination. + @return ApiCircuitsCircuitTerminationsRetrieveRequest + */ + CircuitsCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsRetrieveRequest -// Cable (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) CableIdN(cableIdN []*int32) ApiCircuitsCircuitTerminationsListRequest { - r.cableIdN = &cableIdN - return r -} + // CircuitsCircuitTerminationsRetrieveExecute executes the request + // @return CircuitTermination + CircuitsCircuitTerminationsRetrieveExecute(r ApiCircuitsCircuitTerminationsRetrieveRequest) (*CircuitTermination, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) Cabled(cabled bool) ApiCircuitsCircuitTerminationsListRequest { - r.cabled = &cabled - return r -} + /* + CircuitsCircuitTerminationsUpdate Method for CircuitsCircuitTerminationsUpdate -// Circuit -func (r ApiCircuitsCircuitTerminationsListRequest) CircuitId(circuitId []int32) ApiCircuitsCircuitTerminationsListRequest { - r.circuitId = &circuitId - return r -} + Put a circuit termination object. -// Circuit -func (r ApiCircuitsCircuitTerminationsListRequest) CircuitIdN(circuitIdN []int32) ApiCircuitsCircuitTerminationsListRequest { - r.circuitIdN = &circuitIdN - 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 circuit termination. + @return ApiCircuitsCircuitTerminationsUpdateRequest + */ + CircuitsCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) Created(created []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.created = &created - return r -} + // CircuitsCircuitTerminationsUpdateExecute executes the request + // @return CircuitTermination + CircuitsCircuitTerminationsUpdateExecute(r ApiCircuitsCircuitTerminationsUpdateRequest) (*CircuitTermination, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.createdEmpty = &createdEmpty - return r -} + /* + CircuitsCircuitTypesBulkDestroy Method for CircuitsCircuitTypesBulkDestroy -func (r ApiCircuitsCircuitTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.createdGt = &createdGt - return r -} + Delete a list of circuit type objects. -func (r ApiCircuitsCircuitTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.createdGte = &createdGte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesBulkDestroyRequest + */ + CircuitsCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsCircuitTypesBulkDestroyRequest -func (r ApiCircuitsCircuitTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.createdLt = &createdLt - return r -} + // CircuitsCircuitTypesBulkDestroyExecute executes the request + CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuitsCircuitTypesBulkDestroyRequest) (*http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.createdLte = &createdLte - return r -} + /* + CircuitsCircuitTypesBulkPartialUpdate Method for CircuitsCircuitTypesBulkPartialUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.createdN = &createdN - return r -} + Patch a list of circuit type objects. -func (r ApiCircuitsCircuitTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitTerminationsListRequest { - r.createdByRequest = &createdByRequest - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesBulkPartialUpdateRequest + */ + CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkPartialUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) Description(description []string) ApiCircuitsCircuitTerminationsListRequest { - r.description = &description - return r -} + // CircuitsCircuitTypesBulkPartialUpdateExecute executes the request + // @return []CircuitType + CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) ([]CircuitType, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} + /* + CircuitsCircuitTypesBulkUpdate Method for CircuitsCircuitTypesBulkUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionIc = &descriptionIc - return r -} + Put a list of circuit type objects. -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionIe = &descriptionIe - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesBulkUpdateRequest + */ + CircuitsCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionIew = &descriptionIew - return r -} + // CircuitsCircuitTypesBulkUpdateExecute executes the request + // @return []CircuitType + CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuitsCircuitTypesBulkUpdateRequest) ([]CircuitType, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionIsw = &descriptionIsw - return r -} + /* + CircuitsCircuitTypesCreate Method for CircuitsCircuitTypesCreate -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionN = &descriptionN - return r -} + Post a list of circuit type objects. -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionNic = &descriptionNic - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesCreateRequest + */ + CircuitsCircuitTypesCreate(ctx context.Context) ApiCircuitsCircuitTypesCreateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionNie = &descriptionNie - return r -} + // CircuitsCircuitTypesCreateExecute executes the request + // @return CircuitType + CircuitsCircuitTypesCreateExecute(r ApiCircuitsCircuitTypesCreateRequest) (*CircuitType, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionNiew = &descriptionNiew - return r -} + /* + CircuitsCircuitTypesDestroy Method for CircuitsCircuitTypesDestroy -func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitTerminationsListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + Delete a circuit type object. -func (r ApiCircuitsCircuitTerminationsListRequest) Id(id []int32) ApiCircuitsCircuitTerminationsListRequest { - r.id = &id - 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 circuit type. + @return ApiCircuitsCircuitTypesDestroyRequest + */ + CircuitsCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTypesDestroyRequest -func (r ApiCircuitsCircuitTerminationsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitTerminationsListRequest { - r.idEmpty = &idEmpty - return r -} + // CircuitsCircuitTypesDestroyExecute executes the request + CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCircuitTypesDestroyRequest) (*http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitTerminationsListRequest { - r.idGt = &idGt - return r -} + /* + CircuitsCircuitTypesList Method for CircuitsCircuitTypesList -func (r ApiCircuitsCircuitTerminationsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitTerminationsListRequest { - r.idGte = &idGte - return r -} + Get a list of circuit type objects. -func (r ApiCircuitsCircuitTerminationsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitTerminationsListRequest { - r.idLt = &idLt - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesListRequest + */ + CircuitsCircuitTypesList(ctx context.Context) ApiCircuitsCircuitTypesListRequest -func (r ApiCircuitsCircuitTerminationsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitTerminationsListRequest { - r.idLte = &idLte - return r -} + // CircuitsCircuitTypesListExecute executes the request + // @return PaginatedCircuitTypeList + CircuitsCircuitTypesListExecute(r ApiCircuitsCircuitTypesListRequest) (*PaginatedCircuitTypeList, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) IdN(idN []int32) ApiCircuitsCircuitTerminationsListRequest { - r.idN = &idN - return r -} + /* + CircuitsCircuitTypesPartialUpdate Method for CircuitsCircuitTypesPartialUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.lastUpdated = &lastUpdated - return r -} + Patch a circuit type object. -func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - 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 circuit type. + @return ApiCircuitsCircuitTypesPartialUpdateRequest + */ + CircuitsCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesPartialUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + // CircuitsCircuitTypesPartialUpdateExecute executes the request + // @return CircuitType + CircuitsCircuitTypesPartialUpdateExecute(r ApiCircuitsCircuitTypesPartialUpdateRequest) (*CircuitType, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + /* + CircuitsCircuitTypesRetrieve Method for CircuitsCircuitTypesRetrieve -func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + Get a circuit type object. -func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - 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 circuit type. + @return ApiCircuitsCircuitTypesRetrieveRequest + */ + CircuitsCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTypesRetrieveRequest -func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitTerminationsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + // CircuitsCircuitTypesRetrieveExecute executes the request + // @return CircuitType + CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCircuitTypesRetrieveRequest) (*CircuitType, *http.Response, error) -// Number of results to return per page. -func (r ApiCircuitsCircuitTerminationsListRequest) Limit(limit int32) ApiCircuitsCircuitTerminationsListRequest { - r.limit = &limit - return r -} + /* + CircuitsCircuitTypesUpdate Method for CircuitsCircuitTypesUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) MarkConnected(markConnected bool) ApiCircuitsCircuitTerminationsListRequest { - r.markConnected = &markConnected - return r -} + Put a circuit type object. -func (r ApiCircuitsCircuitTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitTerminationsListRequest { - r.modifiedByRequest = &modifiedByRequest - 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 circuit type. + @return ApiCircuitsCircuitTypesUpdateRequest + */ + CircuitsCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) Occupied(occupied bool) ApiCircuitsCircuitTerminationsListRequest { - r.occupied = &occupied - return r -} + // CircuitsCircuitTypesUpdateExecute executes the request + // @return CircuitType + CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCircuitTypesUpdateRequest) (*CircuitType, *http.Response, error) -// The initial index from which to return the results. -func (r ApiCircuitsCircuitTerminationsListRequest) Offset(offset int32) ApiCircuitsCircuitTerminationsListRequest { - r.offset = &offset - return r -} + /* + CircuitsCircuitsBulkDestroy Method for CircuitsCircuitsBulkDestroy -// Which field to use when ordering the results. -func (r ApiCircuitsCircuitTerminationsListRequest) Ordering(ordering string) ApiCircuitsCircuitTerminationsListRequest { - r.ordering = &ordering - return r -} + Delete a list of circuit objects. -func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeed(portSpeed []int32) ApiCircuitsCircuitTerminationsListRequest { - r.portSpeed = &portSpeed - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsBulkDestroyRequest + */ + CircuitsCircuitsBulkDestroy(ctx context.Context) ApiCircuitsCircuitsBulkDestroyRequest -func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedEmpty(portSpeedEmpty bool) ApiCircuitsCircuitTerminationsListRequest { - r.portSpeedEmpty = &portSpeedEmpty - return r -} + // CircuitsCircuitsBulkDestroyExecute executes the request + CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCircuitsBulkDestroyRequest) (*http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedGt(portSpeedGt []int32) ApiCircuitsCircuitTerminationsListRequest { - r.portSpeedGt = &portSpeedGt - return r -} + /* + CircuitsCircuitsBulkPartialUpdate Method for CircuitsCircuitsBulkPartialUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedGte(portSpeedGte []int32) ApiCircuitsCircuitTerminationsListRequest { - r.portSpeedGte = &portSpeedGte - return r -} + Patch a list of circuit objects. -func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedLt(portSpeedLt []int32) ApiCircuitsCircuitTerminationsListRequest { - r.portSpeedLt = &portSpeedLt - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsBulkPartialUpdateRequest + */ + CircuitsCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitsBulkPartialUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedLte(portSpeedLte []int32) ApiCircuitsCircuitTerminationsListRequest { - r.portSpeedLte = &portSpeedLte - return r -} + // CircuitsCircuitsBulkPartialUpdateExecute executes the request + // @return []Circuit + CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircuitsCircuitsBulkPartialUpdateRequest) ([]Circuit, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedN(portSpeedN []int32) ApiCircuitsCircuitTerminationsListRequest { - r.portSpeedN = &portSpeedN - return r -} + /* + CircuitsCircuitsBulkUpdate Method for CircuitsCircuitsBulkUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfo(ppInfo []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfo = &ppInfo - return r -} + Put a list of circuit objects. -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoEmpty(ppInfoEmpty bool) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoEmpty = &ppInfoEmpty - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsBulkUpdateRequest + */ + CircuitsCircuitsBulkUpdate(ctx context.Context) ApiCircuitsCircuitsBulkUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIc(ppInfoIc []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoIc = &ppInfoIc - return r -} + // CircuitsCircuitsBulkUpdateExecute executes the request + // @return []Circuit + CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCircuitsBulkUpdateRequest) ([]Circuit, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIe(ppInfoIe []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoIe = &ppInfoIe - return r -} + /* + CircuitsCircuitsCreate Method for CircuitsCircuitsCreate -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIew(ppInfoIew []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoIew = &ppInfoIew - return r -} + Post a list of circuit objects. -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIsw(ppInfoIsw []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoIsw = &ppInfoIsw - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsCreateRequest + */ + CircuitsCircuitsCreate(ctx context.Context) ApiCircuitsCircuitsCreateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoN(ppInfoN []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoN = &ppInfoN - return r -} + // CircuitsCircuitsCreateExecute executes the request + // @return Circuit + CircuitsCircuitsCreateExecute(r ApiCircuitsCircuitsCreateRequest) (*Circuit, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNic(ppInfoNic []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoNic = &ppInfoNic - return r -} + /* + CircuitsCircuitsDestroy Method for CircuitsCircuitsDestroy -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNie(ppInfoNie []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoNie = &ppInfoNie - return r -} + Delete a circuit object. -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNiew(ppInfoNiew []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoNiew = &ppInfoNiew - 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 circuit. + @return ApiCircuitsCircuitsDestroyRequest + */ + CircuitsCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitsDestroyRequest -func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNisw(ppInfoNisw []string) ApiCircuitsCircuitTerminationsListRequest { - r.ppInfoNisw = &ppInfoNisw - return r -} + // CircuitsCircuitsDestroyExecute executes the request + CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuitsDestroyRequest) (*http.Response, error) -// Provider (slug) -func (r ApiCircuitsCircuitTerminationsListRequest) Provider(provider []string) ApiCircuitsCircuitTerminationsListRequest { - r.provider = &provider - return r -} + /* + CircuitsCircuitsList Method for CircuitsCircuitsList -// Provider (slug) -func (r ApiCircuitsCircuitTerminationsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitTerminationsListRequest { - r.providerN = &providerN - return r -} + Get a list of circuit objects. -// Provider (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitTerminationsListRequest { - r.providerId = &providerId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsListRequest + */ + CircuitsCircuitsList(ctx context.Context) ApiCircuitsCircuitsListRequest -// Provider (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitTerminationsListRequest { - r.providerIdN = &providerIdN - return r -} + // CircuitsCircuitsListExecute executes the request + // @return PaginatedCircuitList + CircuitsCircuitsListExecute(r ApiCircuitsCircuitsListRequest) (*PaginatedCircuitList, *http.Response, error) -// ProviderNetwork (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) ProviderNetworkId(providerNetworkId []*int32) ApiCircuitsCircuitTerminationsListRequest { - r.providerNetworkId = &providerNetworkId - return r -} + /* + CircuitsCircuitsPartialUpdate Method for CircuitsCircuitsPartialUpdate -// ProviderNetwork (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) ProviderNetworkIdN(providerNetworkIdN []*int32) ApiCircuitsCircuitTerminationsListRequest { - r.providerNetworkIdN = &providerNetworkIdN - return r -} + Patch a circuit object. -// Search -func (r ApiCircuitsCircuitTerminationsListRequest) Q(q string) ApiCircuitsCircuitTerminationsListRequest { - r.q = &q - 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 circuit. + @return ApiCircuitsCircuitsPartialUpdateRequest + */ + CircuitsCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsPartialUpdateRequest -// Site (slug) -func (r ApiCircuitsCircuitTerminationsListRequest) Site(site []string) ApiCircuitsCircuitTerminationsListRequest { - r.site = &site - return r -} + // CircuitsCircuitsPartialUpdateExecute executes the request + // @return Circuit + CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsCircuitsPartialUpdateRequest) (*Circuit, *http.Response, error) -// Site (slug) -func (r ApiCircuitsCircuitTerminationsListRequest) SiteN(siteN []string) ApiCircuitsCircuitTerminationsListRequest { - r.siteN = &siteN - return r -} + /* + CircuitsCircuitsRetrieve Method for CircuitsCircuitsRetrieve -// Site (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) SiteId(siteId []*int32) ApiCircuitsCircuitTerminationsListRequest { - r.siteId = &siteId - return r -} + Get a circuit object. -// Site (ID) -func (r ApiCircuitsCircuitTerminationsListRequest) SiteIdN(siteIdN []*int32) ApiCircuitsCircuitTerminationsListRequest { - r.siteIdN = &siteIdN - 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 circuit. + @return ApiCircuitsCircuitsRetrieveRequest + */ + CircuitsCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitsRetrieveRequest -func (r ApiCircuitsCircuitTerminationsListRequest) Tag(tag []string) ApiCircuitsCircuitTerminationsListRequest { - r.tag = &tag - return r -} + // CircuitsCircuitsRetrieveExecute executes the request + // @return Circuit + CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircuitsRetrieveRequest) (*Circuit, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) TagN(tagN []string) ApiCircuitsCircuitTerminationsListRequest { - r.tagN = &tagN - return r -} + /* + CircuitsCircuitsUpdate Method for CircuitsCircuitsUpdate -// * `A` - A * `Z` - Z -func (r ApiCircuitsCircuitTerminationsListRequest) TermSide(termSide Termination) ApiCircuitsCircuitTerminationsListRequest { - r.termSide = &termSide - return r -} + Put a circuit object. -// * `A` - A * `Z` - Z -func (r ApiCircuitsCircuitTerminationsListRequest) TermSideN(termSideN Termination) ApiCircuitsCircuitTerminationsListRequest { - r.termSideN = &termSideN - 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 circuit. + @return ApiCircuitsCircuitsUpdateRequest + */ + CircuitsCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitTerminationsListRequest { - r.updatedByRequest = &updatedByRequest - return r -} + // CircuitsCircuitsUpdateExecute executes the request + // @return Circuit + CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuitsUpdateRequest) (*Circuit, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeed(upstreamSpeed []int32) ApiCircuitsCircuitTerminationsListRequest { - r.upstreamSpeed = &upstreamSpeed - return r -} + /* + CircuitsProviderAccountsBulkDestroy Method for CircuitsProviderAccountsBulkDestroy -func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedEmpty(upstreamSpeedEmpty bool) ApiCircuitsCircuitTerminationsListRequest { - r.upstreamSpeedEmpty = &upstreamSpeedEmpty - return r -} + Delete a list of provider account objects. -func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedGt(upstreamSpeedGt []int32) ApiCircuitsCircuitTerminationsListRequest { - r.upstreamSpeedGt = &upstreamSpeedGt - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsBulkDestroyRequest + */ + CircuitsProviderAccountsBulkDestroy(ctx context.Context) ApiCircuitsProviderAccountsBulkDestroyRequest -func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedGte(upstreamSpeedGte []int32) ApiCircuitsCircuitTerminationsListRequest { - r.upstreamSpeedGte = &upstreamSpeedGte - return r -} + // CircuitsProviderAccountsBulkDestroyExecute executes the request + CircuitsProviderAccountsBulkDestroyExecute(r ApiCircuitsProviderAccountsBulkDestroyRequest) (*http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedLt(upstreamSpeedLt []int32) ApiCircuitsCircuitTerminationsListRequest { - r.upstreamSpeedLt = &upstreamSpeedLt - return r -} + /* + CircuitsProviderAccountsBulkPartialUpdate Method for CircuitsProviderAccountsBulkPartialUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedLte(upstreamSpeedLte []int32) ApiCircuitsCircuitTerminationsListRequest { - r.upstreamSpeedLte = &upstreamSpeedLte - return r -} + Patch a list of provider account objects. -func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedN(upstreamSpeedN []int32) ApiCircuitsCircuitTerminationsListRequest { - r.upstreamSpeedN = &upstreamSpeedN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsBulkPartialUpdateRequest + */ + CircuitsProviderAccountsBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkPartialUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectId(xconnectId []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectId = &xconnectId - return r -} + // CircuitsProviderAccountsBulkPartialUpdateExecute executes the request + // @return []ProviderAccount + CircuitsProviderAccountsBulkPartialUpdateExecute(r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ([]ProviderAccount, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdEmpty(xconnectIdEmpty bool) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdEmpty = &xconnectIdEmpty - return r -} + /* + CircuitsProviderAccountsBulkUpdate Method for CircuitsProviderAccountsBulkUpdate -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIc(xconnectIdIc []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdIc = &xconnectIdIc - return r -} + Put a list of provider account objects. -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIe(xconnectIdIe []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdIe = &xconnectIdIe - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsBulkUpdateRequest + */ + CircuitsProviderAccountsBulkUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkUpdateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIew(xconnectIdIew []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdIew = &xconnectIdIew - return r -} + // CircuitsProviderAccountsBulkUpdateExecute executes the request + // @return []ProviderAccount + CircuitsProviderAccountsBulkUpdateExecute(r ApiCircuitsProviderAccountsBulkUpdateRequest) ([]ProviderAccount, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIsw(xconnectIdIsw []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdIsw = &xconnectIdIsw - return r -} + /* + CircuitsProviderAccountsCreate Method for CircuitsProviderAccountsCreate -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdN(xconnectIdN []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdN = &xconnectIdN - return r -} + Post a list of provider account objects. -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNic(xconnectIdNic []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdNic = &xconnectIdNic - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsCreateRequest + */ + CircuitsProviderAccountsCreate(ctx context.Context) ApiCircuitsProviderAccountsCreateRequest -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNie(xconnectIdNie []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdNie = &xconnectIdNie - return r -} + // CircuitsProviderAccountsCreateExecute executes the request + // @return ProviderAccount + CircuitsProviderAccountsCreateExecute(r ApiCircuitsProviderAccountsCreateRequest) (*ProviderAccount, *http.Response, error) -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNiew(xconnectIdNiew []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdNiew = &xconnectIdNiew - return r -} + /* + CircuitsProviderAccountsDestroy Method for CircuitsProviderAccountsDestroy -func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNisw(xconnectIdNisw []string) ApiCircuitsCircuitTerminationsListRequest { - r.xconnectIdNisw = &xconnectIdNisw - return r -} + Delete a provider account object. -func (r ApiCircuitsCircuitTerminationsListRequest) Execute() (*PaginatedCircuitTerminationList, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsListExecute(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 provider account. + @return ApiCircuitsProviderAccountsDestroyRequest + */ + CircuitsProviderAccountsDestroy(ctx context.Context, id int32) ApiCircuitsProviderAccountsDestroyRequest -/* -CircuitsCircuitTerminationsList Method for CircuitsCircuitTerminationsList + // CircuitsProviderAccountsDestroyExecute executes the request + CircuitsProviderAccountsDestroyExecute(r ApiCircuitsProviderAccountsDestroyRequest) (*http.Response, error) -Get a list of circuit termination objects. + /* + 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 ApiCircuitsCircuitTerminationsListRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitTerminationsList(ctx context.Context) ApiCircuitsCircuitTerminationsListRequest { - return ApiCircuitsCircuitTerminationsListRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiCircuitsProviderAccountsListRequest + */ + CircuitsProviderAccountsList(ctx context.Context) ApiCircuitsProviderAccountsListRequest -// Execute executes the request -// -// @return PaginatedCircuitTerminationList -func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuitsCircuitTerminationsListRequest) (*PaginatedCircuitTerminationList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitTerminationList - ) + // CircuitsProviderAccountsListExecute executes the request + // @return PaginatedProviderAccountList + CircuitsProviderAccountsListExecute(r ApiCircuitsProviderAccountsListRequest) (*PaginatedProviderAccountList, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + CircuitsProviderAccountsPartialUpdate Method for CircuitsProviderAccountsPartialUpdate - localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + Patch a provider account object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx 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 + */ + CircuitsProviderAccountsPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsPartialUpdateRequest - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") - } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } - if r.cableId != nil { - t := *r.cableId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") - } - } - if r.cableIdN != nil { - t := *r.cableIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") - } - } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") - } - if r.circuitId != nil { - t := *r.circuitId + // CircuitsProviderAccountsPartialUpdateExecute executes the request + // @return ProviderAccount + CircuitsProviderAccountsPartialUpdateExecute(r ApiCircuitsProviderAccountsPartialUpdateRequest) (*ProviderAccount, *http.Response, error) + + /* + 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 + */ + CircuitsProviderAccountsRetrieve(ctx context.Context, id int32) ApiCircuitsProviderAccountsRetrieveRequest + + // CircuitsProviderAccountsRetrieveExecute executes the request + // @return ProviderAccount + CircuitsProviderAccountsRetrieveExecute(r ApiCircuitsProviderAccountsRetrieveRequest) (*ProviderAccount, *http.Response, error) + + /* + 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 + */ + CircuitsProviderAccountsUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsUpdateRequest + + // CircuitsProviderAccountsUpdateExecute executes the request + // @return ProviderAccount + CircuitsProviderAccountsUpdateExecute(r ApiCircuitsProviderAccountsUpdateRequest) (*ProviderAccount, *http.Response, error) + + /* + CircuitsProviderNetworksBulkDestroy Method for CircuitsProviderNetworksBulkDestroy + + 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 + */ + CircuitsProviderNetworksBulkDestroy(ctx context.Context) ApiCircuitsProviderNetworksBulkDestroyRequest + + // CircuitsProviderNetworksBulkDestroyExecute executes the request + CircuitsProviderNetworksBulkDestroyExecute(r ApiCircuitsProviderNetworksBulkDestroyRequest) (*http.Response, error) + + /* + CircuitsProviderNetworksBulkPartialUpdate Method for CircuitsProviderNetworksBulkPartialUpdate + + 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 + */ + CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkPartialUpdateRequest + + // CircuitsProviderNetworksBulkPartialUpdateExecute executes the request + // @return []ProviderNetwork + CircuitsProviderNetworksBulkPartialUpdateExecute(r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ([]ProviderNetwork, *http.Response, error) + + /* + 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 + */ + CircuitsProviderNetworksBulkUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkUpdateRequest + + // CircuitsProviderNetworksBulkUpdateExecute executes the request + // @return []ProviderNetwork + CircuitsProviderNetworksBulkUpdateExecute(r ApiCircuitsProviderNetworksBulkUpdateRequest) ([]ProviderNetwork, *http.Response, error) + + /* + 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 + */ + CircuitsProviderNetworksCreate(ctx context.Context) ApiCircuitsProviderNetworksCreateRequest + + // CircuitsProviderNetworksCreateExecute executes the request + // @return ProviderNetwork + CircuitsProviderNetworksCreateExecute(r ApiCircuitsProviderNetworksCreateRequest) (*ProviderNetwork, *http.Response, error) + + /* + 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 + */ + CircuitsProviderNetworksDestroy(ctx context.Context, id int32) ApiCircuitsProviderNetworksDestroyRequest + + // CircuitsProviderNetworksDestroyExecute executes the request + CircuitsProviderNetworksDestroyExecute(r ApiCircuitsProviderNetworksDestroyRequest) (*http.Response, error) + + /* + 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 + */ + CircuitsProviderNetworksList(ctx context.Context) ApiCircuitsProviderNetworksListRequest + + // CircuitsProviderNetworksListExecute executes the request + // @return PaginatedProviderNetworkList + CircuitsProviderNetworksListExecute(r ApiCircuitsProviderNetworksListRequest) (*PaginatedProviderNetworkList, *http.Response, error) + + /* + CircuitsProviderNetworksPartialUpdate Method for CircuitsProviderNetworksPartialUpdate + + 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 + */ + CircuitsProviderNetworksPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksPartialUpdateRequest + + // CircuitsProviderNetworksPartialUpdateExecute executes the request + // @return ProviderNetwork + CircuitsProviderNetworksPartialUpdateExecute(r ApiCircuitsProviderNetworksPartialUpdateRequest) (*ProviderNetwork, *http.Response, error) + + /* + 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 + */ + CircuitsProviderNetworksRetrieve(ctx context.Context, id int32) ApiCircuitsProviderNetworksRetrieveRequest + + // CircuitsProviderNetworksRetrieveExecute executes the request + // @return ProviderNetwork + CircuitsProviderNetworksRetrieveExecute(r ApiCircuitsProviderNetworksRetrieveRequest) (*ProviderNetwork, *http.Response, error) + + /* + 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 + */ + CircuitsProviderNetworksUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksUpdateRequest + + // CircuitsProviderNetworksUpdateExecute executes the request + // @return ProviderNetwork + CircuitsProviderNetworksUpdateExecute(r ApiCircuitsProviderNetworksUpdateRequest) (*ProviderNetwork, *http.Response, error) + + /* + 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 + */ + CircuitsProvidersBulkDestroy(ctx context.Context) ApiCircuitsProvidersBulkDestroyRequest + + // CircuitsProvidersBulkDestroyExecute executes the request + CircuitsProvidersBulkDestroyExecute(r ApiCircuitsProvidersBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + CircuitsProvidersBulkPartialUpdate(ctx context.Context) ApiCircuitsProvidersBulkPartialUpdateRequest + + // CircuitsProvidersBulkPartialUpdateExecute executes the request + // @return []Provider + CircuitsProvidersBulkPartialUpdateExecute(r ApiCircuitsProvidersBulkPartialUpdateRequest) ([]Provider, *http.Response, error) + + /* + 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 + */ + CircuitsProvidersBulkUpdate(ctx context.Context) ApiCircuitsProvidersBulkUpdateRequest + + // CircuitsProvidersBulkUpdateExecute executes the request + // @return []Provider + CircuitsProvidersBulkUpdateExecute(r ApiCircuitsProvidersBulkUpdateRequest) ([]Provider, *http.Response, error) + + /* + 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 + */ + CircuitsProvidersCreate(ctx context.Context) ApiCircuitsProvidersCreateRequest + + // CircuitsProvidersCreateExecute executes the request + // @return Provider + CircuitsProvidersCreateExecute(r ApiCircuitsProvidersCreateRequest) (*Provider, *http.Response, error) + + /* + 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 + */ + CircuitsProvidersDestroy(ctx context.Context, id int32) ApiCircuitsProvidersDestroyRequest + + // CircuitsProvidersDestroyExecute executes the request + CircuitsProvidersDestroyExecute(r ApiCircuitsProvidersDestroyRequest) (*http.Response, error) + + /* + 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 + */ + CircuitsProvidersList(ctx context.Context) ApiCircuitsProvidersListRequest + + // CircuitsProvidersListExecute executes the request + // @return PaginatedProviderList + CircuitsProvidersListExecute(r ApiCircuitsProvidersListRequest) (*PaginatedProviderList, *http.Response, error) + + /* + 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 + */ + CircuitsProvidersPartialUpdate(ctx context.Context, id int32) ApiCircuitsProvidersPartialUpdateRequest + + // CircuitsProvidersPartialUpdateExecute executes the request + // @return Provider + CircuitsProvidersPartialUpdateExecute(r ApiCircuitsProvidersPartialUpdateRequest) (*Provider, *http.Response, error) + + /* + 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 + */ + CircuitsProvidersRetrieve(ctx context.Context, id int32) ApiCircuitsProvidersRetrieveRequest + + // CircuitsProvidersRetrieveExecute executes the request + // @return Provider + CircuitsProvidersRetrieveExecute(r ApiCircuitsProvidersRetrieveRequest) (*Provider, *http.Response, error) + + /* + 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 + */ + CircuitsProvidersUpdate(ctx context.Context, id int32) ApiCircuitsProvidersUpdateRequest + + // CircuitsProvidersUpdateExecute executes the request + // @return Provider + CircuitsProvidersUpdateExecute(r ApiCircuitsProvidersUpdateRequest) (*Provider, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsBulkDestroy Method for CircuitsVirtualCircuitTerminationsBulkDestroy + + Delete a list of virtual circuit termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest + */ + CircuitsVirtualCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest + + // CircuitsVirtualCircuitTerminationsBulkDestroyExecute executes the request + CircuitsVirtualCircuitTerminationsBulkDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest) (*http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsBulkPartialUpdate Method for CircuitsVirtualCircuitTerminationsBulkPartialUpdate + + Patch a list of virtual circuit termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest + */ + CircuitsVirtualCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest + + // CircuitsVirtualCircuitTerminationsBulkPartialUpdateExecute executes the request + // @return []VirtualCircuitTermination + CircuitsVirtualCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsBulkUpdate Method for CircuitsVirtualCircuitTerminationsBulkUpdate + + Put a list of virtual circuit termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest + */ + CircuitsVirtualCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest + + // CircuitsVirtualCircuitTerminationsBulkUpdateExecute executes the request + // @return []VirtualCircuitTermination + CircuitsVirtualCircuitTerminationsBulkUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsCreate Method for CircuitsVirtualCircuitTerminationsCreate + + Post a list of virtual circuit termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTerminationsCreateRequest + */ + CircuitsVirtualCircuitTerminationsCreate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsCreateRequest + + // CircuitsVirtualCircuitTerminationsCreateExecute executes the request + // @return VirtualCircuitTermination + CircuitsVirtualCircuitTerminationsCreateExecute(r ApiCircuitsVirtualCircuitTerminationsCreateRequest) (*VirtualCircuitTermination, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsDestroy Method for CircuitsVirtualCircuitTerminationsDestroy + + Delete a virtual 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsDestroyRequest + */ + CircuitsVirtualCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsDestroyRequest + + // CircuitsVirtualCircuitTerminationsDestroyExecute executes the request + CircuitsVirtualCircuitTerminationsDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsDestroyRequest) (*http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsList Method for CircuitsVirtualCircuitTerminationsList + + Get a list of virtual circuit termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTerminationsListRequest + */ + CircuitsVirtualCircuitTerminationsList(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsListRequest + + // CircuitsVirtualCircuitTerminationsListExecute executes the request + // @return PaginatedVirtualCircuitTerminationList + CircuitsVirtualCircuitTerminationsListExecute(r ApiCircuitsVirtualCircuitTerminationsListRequest) (*PaginatedVirtualCircuitTerminationList, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsPartialUpdate Method for CircuitsVirtualCircuitTerminationsPartialUpdate + + Patch a virtual 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest + */ + CircuitsVirtualCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest + + // CircuitsVirtualCircuitTerminationsPartialUpdateExecute executes the request + // @return VirtualCircuitTermination + CircuitsVirtualCircuitTerminationsPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest) (*VirtualCircuitTermination, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsPathsRetrieve Method for CircuitsVirtualCircuitTerminationsPathsRetrieve + + 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest + */ + CircuitsVirtualCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest + + // CircuitsVirtualCircuitTerminationsPathsRetrieveExecute executes the request + // @return VirtualCircuitTermination + CircuitsVirtualCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsRetrieve Method for CircuitsVirtualCircuitTerminationsRetrieve + + Get a virtual 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest + */ + CircuitsVirtualCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsRetrieveRequest + + // CircuitsVirtualCircuitTerminationsRetrieveExecute executes the request + // @return VirtualCircuitTermination + CircuitsVirtualCircuitTerminationsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error) + + /* + CircuitsVirtualCircuitTerminationsUpdate Method for CircuitsVirtualCircuitTerminationsUpdate + + Put a virtual 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsUpdateRequest + */ + CircuitsVirtualCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsUpdateRequest + + // CircuitsVirtualCircuitTerminationsUpdateExecute executes the request + // @return VirtualCircuitTermination + CircuitsVirtualCircuitTerminationsUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsUpdateRequest) (*VirtualCircuitTermination, *http.Response, error) + + /* + CircuitsVirtualCircuitTypesBulkDestroy Method for CircuitsVirtualCircuitTypesBulkDestroy + + Delete a list of virtual circuit type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTypesBulkDestroyRequest + */ + CircuitsVirtualCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkDestroyRequest + + // CircuitsVirtualCircuitTypesBulkDestroyExecute executes the request + CircuitsVirtualCircuitTypesBulkDestroyExecute(r ApiCircuitsVirtualCircuitTypesBulkDestroyRequest) (*http.Response, error) + + /* + CircuitsVirtualCircuitTypesBulkPartialUpdate Method for CircuitsVirtualCircuitTypesBulkPartialUpdate + + Patch a list of virtual circuit type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest + */ + CircuitsVirtualCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest + + // CircuitsVirtualCircuitTypesBulkPartialUpdateExecute executes the request + // @return []VirtualCircuitType + CircuitsVirtualCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest) ([]VirtualCircuitType, *http.Response, error) + + /* + CircuitsVirtualCircuitTypesBulkUpdate Method for CircuitsVirtualCircuitTypesBulkUpdate + + Put a list of virtual circuit type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTypesBulkUpdateRequest + */ + CircuitsVirtualCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkUpdateRequest + + // CircuitsVirtualCircuitTypesBulkUpdateExecute executes the request + // @return []VirtualCircuitType + CircuitsVirtualCircuitTypesBulkUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkUpdateRequest) ([]VirtualCircuitType, *http.Response, error) + + /* + CircuitsVirtualCircuitTypesCreate Method for CircuitsVirtualCircuitTypesCreate + + Post a list of virtual circuit type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTypesCreateRequest + */ + CircuitsVirtualCircuitTypesCreate(ctx context.Context) ApiCircuitsVirtualCircuitTypesCreateRequest + + // CircuitsVirtualCircuitTypesCreateExecute executes the request + // @return VirtualCircuitType + CircuitsVirtualCircuitTypesCreateExecute(r ApiCircuitsVirtualCircuitTypesCreateRequest) (*VirtualCircuitType, *http.Response, error) + + /* + CircuitsVirtualCircuitTypesDestroy Method for CircuitsVirtualCircuitTypesDestroy + + Delete a virtual 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesDestroyRequest + */ + CircuitsVirtualCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesDestroyRequest + + // CircuitsVirtualCircuitTypesDestroyExecute executes the request + CircuitsVirtualCircuitTypesDestroyExecute(r ApiCircuitsVirtualCircuitTypesDestroyRequest) (*http.Response, error) + + /* + CircuitsVirtualCircuitTypesList Method for CircuitsVirtualCircuitTypesList + + Get a list of virtual circuit type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTypesListRequest + */ + CircuitsVirtualCircuitTypesList(ctx context.Context) ApiCircuitsVirtualCircuitTypesListRequest + + // CircuitsVirtualCircuitTypesListExecute executes the request + // @return PaginatedVirtualCircuitTypeList + CircuitsVirtualCircuitTypesListExecute(r ApiCircuitsVirtualCircuitTypesListRequest) (*PaginatedVirtualCircuitTypeList, *http.Response, error) + + /* + CircuitsVirtualCircuitTypesPartialUpdate Method for CircuitsVirtualCircuitTypesPartialUpdate + + Patch a virtual 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest + */ + CircuitsVirtualCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesPartialUpdateRequest + + // CircuitsVirtualCircuitTypesPartialUpdateExecute executes the request + // @return VirtualCircuitType + CircuitsVirtualCircuitTypesPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesPartialUpdateRequest) (*VirtualCircuitType, *http.Response, error) + + /* + CircuitsVirtualCircuitTypesRetrieve Method for CircuitsVirtualCircuitTypesRetrieve + + Get a virtual 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesRetrieveRequest + */ + CircuitsVirtualCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesRetrieveRequest + + // CircuitsVirtualCircuitTypesRetrieveExecute executes the request + // @return VirtualCircuitType + CircuitsVirtualCircuitTypesRetrieveExecute(r ApiCircuitsVirtualCircuitTypesRetrieveRequest) (*VirtualCircuitType, *http.Response, error) + + /* + CircuitsVirtualCircuitTypesUpdate Method for CircuitsVirtualCircuitTypesUpdate + + Put a virtual 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesUpdateRequest + */ + CircuitsVirtualCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesUpdateRequest + + // CircuitsVirtualCircuitTypesUpdateExecute executes the request + // @return VirtualCircuitType + CircuitsVirtualCircuitTypesUpdateExecute(r ApiCircuitsVirtualCircuitTypesUpdateRequest) (*VirtualCircuitType, *http.Response, error) + + /* + CircuitsVirtualCircuitsBulkDestroy Method for CircuitsVirtualCircuitsBulkDestroy + + Delete a list of virtual circuit objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitsBulkDestroyRequest + */ + CircuitsVirtualCircuitsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitsBulkDestroyRequest + + // CircuitsVirtualCircuitsBulkDestroyExecute executes the request + CircuitsVirtualCircuitsBulkDestroyExecute(r ApiCircuitsVirtualCircuitsBulkDestroyRequest) (*http.Response, error) + + /* + CircuitsVirtualCircuitsBulkPartialUpdate Method for CircuitsVirtualCircuitsBulkPartialUpdate + + Patch a list of virtual circuit objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest + */ + CircuitsVirtualCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest + + // CircuitsVirtualCircuitsBulkPartialUpdateExecute executes the request + // @return []VirtualCircuit + CircuitsVirtualCircuitsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest) ([]VirtualCircuit, *http.Response, error) + + /* + CircuitsVirtualCircuitsBulkUpdate Method for CircuitsVirtualCircuitsBulkUpdate + + Put a list of virtual circuit objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitsBulkUpdateRequest + */ + CircuitsVirtualCircuitsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkUpdateRequest + + // CircuitsVirtualCircuitsBulkUpdateExecute executes the request + // @return []VirtualCircuit + CircuitsVirtualCircuitsBulkUpdateExecute(r ApiCircuitsVirtualCircuitsBulkUpdateRequest) ([]VirtualCircuit, *http.Response, error) + + /* + CircuitsVirtualCircuitsCreate Method for CircuitsVirtualCircuitsCreate + + Post a list of virtual circuit objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitsCreateRequest + */ + CircuitsVirtualCircuitsCreate(ctx context.Context) ApiCircuitsVirtualCircuitsCreateRequest + + // CircuitsVirtualCircuitsCreateExecute executes the request + // @return VirtualCircuit + CircuitsVirtualCircuitsCreateExecute(r ApiCircuitsVirtualCircuitsCreateRequest) (*VirtualCircuit, *http.Response, error) + + /* + CircuitsVirtualCircuitsDestroy Method for CircuitsVirtualCircuitsDestroy + + Delete a virtual 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsDestroyRequest + */ + CircuitsVirtualCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsDestroyRequest + + // CircuitsVirtualCircuitsDestroyExecute executes the request + CircuitsVirtualCircuitsDestroyExecute(r ApiCircuitsVirtualCircuitsDestroyRequest) (*http.Response, error) + + /* + CircuitsVirtualCircuitsList Method for CircuitsVirtualCircuitsList + + Get a list of virtual circuit objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitsListRequest + */ + CircuitsVirtualCircuitsList(ctx context.Context) ApiCircuitsVirtualCircuitsListRequest + + // CircuitsVirtualCircuitsListExecute executes the request + // @return PaginatedVirtualCircuitList + CircuitsVirtualCircuitsListExecute(r ApiCircuitsVirtualCircuitsListRequest) (*PaginatedVirtualCircuitList, *http.Response, error) + + /* + CircuitsVirtualCircuitsPartialUpdate Method for CircuitsVirtualCircuitsPartialUpdate + + Patch a virtual 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsPartialUpdateRequest + */ + CircuitsVirtualCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsPartialUpdateRequest + + // CircuitsVirtualCircuitsPartialUpdateExecute executes the request + // @return VirtualCircuit + CircuitsVirtualCircuitsPartialUpdateExecute(r ApiCircuitsVirtualCircuitsPartialUpdateRequest) (*VirtualCircuit, *http.Response, error) + + /* + CircuitsVirtualCircuitsRetrieve Method for CircuitsVirtualCircuitsRetrieve + + Get a virtual 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsRetrieveRequest + */ + CircuitsVirtualCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsRetrieveRequest + + // CircuitsVirtualCircuitsRetrieveExecute executes the request + // @return VirtualCircuit + CircuitsVirtualCircuitsRetrieveExecute(r ApiCircuitsVirtualCircuitsRetrieveRequest) (*VirtualCircuit, *http.Response, error) + + /* + CircuitsVirtualCircuitsUpdate Method for CircuitsVirtualCircuitsUpdate + + Put a virtual 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsUpdateRequest + */ + CircuitsVirtualCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsUpdateRequest + + // CircuitsVirtualCircuitsUpdateExecute executes the request + // @return VirtualCircuit + CircuitsVirtualCircuitsUpdateExecute(r ApiCircuitsVirtualCircuitsUpdateRequest) (*VirtualCircuit, *http.Response, error) +} + +// CircuitsAPIService CircuitsAPI service +type CircuitsAPIService service + +type ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy + +Delete a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return nil, reportError("circuitGroupAssignmentRequest 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.circuitGroupAssignmentRequest + 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 ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate + +Patch a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest 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.circuitGroupAssignmentRequest + 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 ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate + +Put a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest 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.circuitGroupAssignmentRequest + 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 ApiCircuitsCircuitGroupAssignmentsCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsCreateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate + +Post a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + return ApiCircuitsCircuitGroupAssignmentsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest 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.writableCircuitGroupAssignmentRequest + 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 ApiCircuitsCircuitGroupAssignmentsDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy + +Delete a Circuit 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 Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{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 ApiCircuitsCircuitGroupAssignmentsListRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuit *[]string + circuitId *[]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 + 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 + memberId *[]int32 + memberIdEmpty *bool + memberIdGt *[]int32 + memberIdGte *[]int32 + memberIdLt *[]int32 + memberIdLte *[]int32 + memberIdN *[]int32 + memberType *string + memberTypeN *string + modifiedByRequest *string + offset *int32 + ordering *string + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter + provider *[]string + providerId *[]int32 + q *string + tag *[]string + tagN *[]string + updatedByRequest *string + virtualCircuit *[]string + virtualCircuitId *[]int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Circuit(circuit []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuit = &circuit + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitId(circuitId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitId = &circuitId + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Group(group []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.group = &group + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupN(groupN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupN = &groupN + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupId(groupId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupId = &groupId + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupIdN = &groupIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Id(id []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberId(memberId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberId = &memberId + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberIdEmpty(memberIdEmpty bool) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberIdEmpty = &memberIdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberIdGt(memberIdGt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberIdGt = &memberIdGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberIdGte(memberIdGte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberIdGte = &memberIdGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberIdLt(memberIdLt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberIdLt = &memberIdLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberIdLte(memberIdLte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberIdLte = &memberIdLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberIdN(memberIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberIdN = &memberIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberType(memberType string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberType = &memberType + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) MemberTypeN(memberTypeN string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.memberTypeN = &memberTypeN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.ordering = &ordering + return r +} + +// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.priority = &priority + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Provider(provider []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.provider = &provider + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerId = &providerId + return r +} + +// Search +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Q(q string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) VirtualCircuit(virtualCircuit []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.virtualCircuit = &virtualCircuit + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) VirtualCircuitId(virtualCircuitId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.virtualCircuitId = &virtualCircuitId + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Execute() (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsListExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList + +Get a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest { + return ApiCircuitsCircuitGroupAssignmentsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCircuitGroupAssignmentList +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupAssignmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.circuit != nil { + t := *r.circuit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", t, "form", "multi") + } + } + if r.circuitId != nil { + t := *r.circuitId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + if r.group != nil { + t := *r.group + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") + } + } + if r.groupN != nil { + t := *r.groupN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") + } + } + if r.groupId != nil { + t := *r.groupId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") + } + } + if r.groupIdN != nil { + t := *r.groupIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.memberId != nil { + t := *r.memberId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id", t, "form", "multi") + } + } + if r.memberIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__empty", r.memberIdEmpty, "form", "") + } + if r.memberIdGt != nil { + t := *r.memberIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__gt", t, "form", "multi") + } + } + if r.memberIdGte != nil { + t := *r.memberIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__gte", t, "form", "multi") + } + } + if r.memberIdLt != nil { + t := *r.memberIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__lt", t, "form", "multi") + } + } + if r.memberIdLte != nil { + t := *r.memberIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__lte", t, "form", "multi") + } + } + if r.memberIdN != nil { + t := *r.memberIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_id__n", t, "form", "multi") + } + } + if r.memberType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_type", r.memberType, "form", "") + } + if r.memberTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "member_type__n", r.memberTypeN, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.priority != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "form", "") + } + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") + } + } + if r.providerId != nil { + t := *r.providerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualCircuit != nil { + t := *r.virtualCircuit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit", t, "form", "multi") + } + } + if r.virtualCircuitId != nil { + t := *r.virtualCircuitId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id", t, "form", "multi") + } + } + // 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 ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedWritableCircuitGroupAssignmentRequest *PatchedWritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + r.patchedWritableCircuitGroupAssignmentRequest = &patchedWritableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate + +Patch a Circuit 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 Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{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.patchedWritableCircuitGroupAssignmentRequest + 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 ApiCircuitsCircuitGroupAssignmentsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve + +Get a Circuit 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 Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest { + return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{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 ApiCircuitsCircuitGroupAssignmentsUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate + +Put a Circuit 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 Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{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.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest 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.writableCircuitGroupAssignmentRequest + 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 ApiCircuitsCircuitGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkDestroyRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy + +Delete a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest { + return ApiCircuitsCircuitGroupsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return nil, reportError("circuitGroupRequest 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.circuitGroupRequest + 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 ApiCircuitsCircuitGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate + +Patch a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest 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.circuitGroupRequest + 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 ApiCircuitsCircuitGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate + +Put a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest { + return ApiCircuitsCircuitGroupsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest 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.circuitGroupRequest + 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 ApiCircuitsCircuitGroupsCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsCreateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsCreateExecute(r) +} + +/* +CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate + +Post a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest { + return ApiCircuitsCircuitGroupsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest 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.circuitGroupRequest + 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 ApiCircuitsCircuitGroupsDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy + +Delete a circuit 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 circuit group. + @return ApiCircuitsCircuitGroupsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest { + return ApiCircuitsCircuitGroupsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{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 ApiCircuitsCircuitGroupsListRequest struct { + ctx context.Context + ApiService CircuitsAPI + 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 + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiCircuitsCircuitGroupsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Description(description []string) ApiCircuitsCircuitGroupsListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Id(id []int32) ApiCircuitsCircuitGroupsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Name(name []string) ApiCircuitsCircuitGroupsListRequest { + r.name = &name + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameEmpty(nameEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIc(nameIc []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIe(nameIe []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIew(nameIew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIsw(nameIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameN(nameN []string) ApiCircuitsCircuitGroupsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNic(nameNic []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNie(nameNie []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNiew(nameNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNisw(nameNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCircuitsCircuitGroupsListRequest) Q(q string) ApiCircuitsCircuitGroupsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Slug(slug []string) ApiCircuitsCircuitGroupsListRequest { + r.slug = &slug + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIc(slugIc []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIe(slugIe []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIew(slugIew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIsw(slugIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugN(slugN []string) ApiCircuitsCircuitGroupsListRequest { + r.slugN = &slugN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNic(slugNic []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNie(slugNie []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNiew(slugNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNisw(slugNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupsListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) Tenant(tenant []string) ApiCircuitsCircuitGroupsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) TenantN(tenantN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantId(tenantId []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Execute() (*PaginatedCircuitGroupList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsListExecute(r) +} + +/* +CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList + +Get a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest { + return ApiCircuitsCircuitGroupsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCircuitGroupList +func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") + } + } + if r.slugN != nil { + t := *r.slugN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiCircuitsCircuitGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedCircuitGroupRequest *PatchedCircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) PatchedCircuitGroupRequest(patchedCircuitGroupRequest PatchedCircuitGroupRequest) ApiCircuitsCircuitGroupsPartialUpdateRequest { + r.patchedCircuitGroupRequest = &patchedCircuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate + +Patch a circuit 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 circuit group. + @return ApiCircuitsCircuitGroupsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest { + return ApiCircuitsCircuitGroupsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{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.patchedCircuitGroupRequest + 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 ApiCircuitsCircuitGroupsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitGroupsRetrieveRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve + +Get a circuit 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 circuit group. + @return ApiCircuitsCircuitGroupsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest { + return ApiCircuitsCircuitGroupsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{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 ApiCircuitsCircuitGroupsUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate + +Put a circuit 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 circuit group. + @return ApiCircuitsCircuitGroupsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest { + return ApiCircuitsCircuitGroupsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{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.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest 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.circuitGroupRequest + 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 ApiCircuitsCircuitTerminationsBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTerminationRequest *[]CircuitTerminationRequest +} + +func (r ApiCircuitsCircuitTerminationsBulkDestroyRequest) CircuitTerminationRequest(circuitTerminationRequest []CircuitTerminationRequest) ApiCircuitsCircuitTerminationsBulkDestroyRequest { + r.circuitTerminationRequest = &circuitTerminationRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitTerminationsBulkDestroy Method for CircuitsCircuitTerminationsBulkDestroy + +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsCircuitTerminationsBulkDestroyRequest { + return ApiCircuitsCircuitTerminationsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroyExecute(r ApiCircuitsCircuitTerminationsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTerminationRequest == nil { + return nil, reportError("circuitTerminationRequest 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.circuitTerminationRequest + 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 ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTerminationRequest *[]CircuitTerminationRequest +} + +func (r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) CircuitTerminationRequest(circuitTerminationRequest []CircuitTerminationRequest) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest { + r.circuitTerminationRequest = &circuitTerminationRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) Execute() ([]CircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitTerminationsBulkPartialUpdate Method for CircuitsCircuitTerminationsBulkPartialUpdate + +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest { + return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) ([]CircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("circuitTerminationRequest 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.circuitTerminationRequest + 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 ApiCircuitsCircuitTerminationsBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTerminationRequest *[]CircuitTerminationRequest +} + +func (r ApiCircuitsCircuitTerminationsBulkUpdateRequest) CircuitTerminationRequest(circuitTerminationRequest []CircuitTerminationRequest) ApiCircuitsCircuitTerminationsBulkUpdateRequest { + r.circuitTerminationRequest = &circuitTerminationRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsBulkUpdateRequest) Execute() ([]CircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitTerminationsBulkUpdate Method for CircuitsCircuitTerminationsBulkUpdate + +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkUpdateRequest { + return ApiCircuitsCircuitTerminationsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiCircuitsCircuitTerminationsBulkUpdateRequest) ([]CircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("circuitTerminationRequest 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.circuitTerminationRequest + 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 ApiCircuitsCircuitTerminationsCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTerminationRequest *CircuitTerminationRequest +} + +func (r ApiCircuitsCircuitTerminationsCreateRequest) CircuitTerminationRequest(circuitTerminationRequest CircuitTerminationRequest) ApiCircuitsCircuitTerminationsCreateRequest { + r.circuitTerminationRequest = &circuitTerminationRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsCreateRequest) Execute() (*CircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsCreateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreate(ctx context.Context) ApiCircuitsCircuitTerminationsCreateRequest { + return ApiCircuitsCircuitTerminationsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreateExecute(r ApiCircuitsCircuitTerminationsCreateRequest) (*CircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("circuitTerminationRequest 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.circuitTerminationRequest + 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 ApiCircuitsCircuitTerminationsDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitTerminationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsDestroyExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsDestroyRequest { + return ApiCircuitsCircuitTerminationsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroyExecute(r ApiCircuitsCircuitTerminationsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/{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 ApiCircuitsCircuitTerminationsListRequest struct { + ctx context.Context + ApiService CircuitsAPI + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string + markConnected *bool + modifiedByRequest *string + occupied *bool + offset *int32 + ordering *string + portSpeed *[]int32 + portSpeedEmpty *bool + portSpeedGt *[]int32 + portSpeedGte *[]int32 + portSpeedLt *[]int32 + portSpeedLte *[]int32 + portSpeedN *[]int32 + ppInfo *[]string + ppInfoEmpty *bool + ppInfoIc *[]string + ppInfoIe *[]string + ppInfoIew *[]string + ppInfoIsw *[]string + ppInfoN *[]string + ppInfoNic *[]string + ppInfoNie *[]string + ppInfoNiew *[]string + ppInfoNisw *[]string + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + providerNetworkId *[]int32 + providerNetworkIdN *[]int32 + q *string + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + termSide *TerminationSide + terminationId *[]int32 + terminationIdEmpty *bool + terminationIdGt *[]int32 + terminationIdGte *[]int32 + terminationIdLt *[]int32 + terminationIdLte *[]int32 + terminationIdN *[]int32 + terminationType *string + terminationTypeN *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 +} + +// * `A` - A * `B` - B +func (r ApiCircuitsCircuitTerminationsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiCircuitsCircuitTerminationsListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) CableId(cableId []*int32) ApiCircuitsCircuitTerminationsListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) CableIdN(cableIdN []*int32) ApiCircuitsCircuitTerminationsListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Cabled(cabled bool) ApiCircuitsCircuitTerminationsListRequest { + r.cabled = &cabled + return r +} + +// Circuit +func (r ApiCircuitsCircuitTerminationsListRequest) CircuitId(circuitId []int32) ApiCircuitsCircuitTerminationsListRequest { + r.circuitId = &circuitId + return r +} + +// Circuit +func (r ApiCircuitsCircuitTerminationsListRequest) CircuitIdN(circuitIdN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.circuitIdN = &circuitIdN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Created(created []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.created = &created + 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 +} + +func (r ApiCircuitsCircuitTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitTerminationsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Description(description []string) ApiCircuitsCircuitTerminationsListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitTerminationsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Id(id []int32) ApiCircuitsCircuitTerminationsListRequest { + r.id = &id + 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 +} + +func (r ApiCircuitsCircuitTerminationsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitTerminationsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) IdN(idN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitTerminationsListRequest) Limit(limit int32) ApiCircuitsCircuitTerminationsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Location(location []string) ApiCircuitsCircuitTerminationsListRequest { + r.location = &location + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LocationN(locationN []string) ApiCircuitsCircuitTerminationsListRequest { + r.locationN = &locationN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LocationId(locationId []string) ApiCircuitsCircuitTerminationsListRequest { + r.locationId = &locationId + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) LocationIdN(locationIdN []string) ApiCircuitsCircuitTerminationsListRequest { + r.locationIdN = &locationIdN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) MarkConnected(markConnected bool) ApiCircuitsCircuitTerminationsListRequest { + r.markConnected = &markConnected + 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 +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitTerminationsListRequest) Offset(offset int32) ApiCircuitsCircuitTerminationsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitTerminationsListRequest) Ordering(ordering string) ApiCircuitsCircuitTerminationsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeed(portSpeed []int32) ApiCircuitsCircuitTerminationsListRequest { + r.portSpeed = &portSpeed + 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 +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedGte(portSpeedGte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.portSpeedGte = &portSpeedGte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedLt(portSpeedLt []int32) ApiCircuitsCircuitTerminationsListRequest { + r.portSpeedLt = &portSpeedLt + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedLte(portSpeedLte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.portSpeedLte = &portSpeedLte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedN(portSpeedN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.portSpeedN = &portSpeedN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfo(ppInfo []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfo = &ppInfo + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoEmpty(ppInfoEmpty bool) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoEmpty = &ppInfoEmpty + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIc(ppInfoIc []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoIc = &ppInfoIc + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIe(ppInfoIe []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoIe = &ppInfoIe + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIew(ppInfoIew []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoIew = &ppInfoIew + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoIsw(ppInfoIsw []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoIsw = &ppInfoIsw + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoN(ppInfoN []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoN = &ppInfoN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNic(ppInfoNic []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoNic = &ppInfoNic + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNie(ppInfoNie []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoNie = &ppInfoNie + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNiew(ppInfoNiew []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoNiew = &ppInfoNiew + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) PpInfoNisw(ppInfoNisw []string) ApiCircuitsCircuitTerminationsListRequest { + r.ppInfoNisw = &ppInfoNisw + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitTerminationsListRequest) Provider(provider []string) ApiCircuitsCircuitTerminationsListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitTerminationsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitTerminationsListRequest { + r.providerN = &providerN + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitTerminationsListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.providerIdN = &providerIdN + return r +} + +// ProviderNetwork (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) ProviderNetworkId(providerNetworkId []int32) ApiCircuitsCircuitTerminationsListRequest { + r.providerNetworkId = &providerNetworkId + return r +} + +// ProviderNetwork (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) ProviderNetworkIdN(providerNetworkIdN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.providerNetworkIdN = &providerNetworkIdN + return r +} + +// Search +func (r ApiCircuitsCircuitTerminationsListRequest) Q(q string) ApiCircuitsCircuitTerminationsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Region(region []string) ApiCircuitsCircuitTerminationsListRequest { + r.region = ®ion + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) RegionN(regionN []string) ApiCircuitsCircuitTerminationsListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) RegionId(regionId []string) ApiCircuitsCircuitTerminationsListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) RegionIdN(regionIdN []string) ApiCircuitsCircuitTerminationsListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site (slug) +func (r ApiCircuitsCircuitTerminationsListRequest) Site(site []string) ApiCircuitsCircuitTerminationsListRequest { + r.site = &site + return r +} + +// Site (slug) +func (r ApiCircuitsCircuitTerminationsListRequest) SiteN(siteN []string) ApiCircuitsCircuitTerminationsListRequest { + r.siteN = &siteN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) SiteGroup(siteGroup []string) ApiCircuitsCircuitTerminationsListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsCircuitTerminationsListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsCircuitTerminationsListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsCircuitTerminationsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) SiteId(siteId []int32) ApiCircuitsCircuitTerminationsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiCircuitsCircuitTerminationsListRequest) SiteIdN(siteIdN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Tag(tag []string) ApiCircuitsCircuitTerminationsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TagN(tagN []string) ApiCircuitsCircuitTerminationsListRequest { + r.tagN = &tagN + return r +} + +// * `A` - A * `Z` - Z +func (r ApiCircuitsCircuitTerminationsListRequest) TermSide(termSide TerminationSide) ApiCircuitsCircuitTerminationsListRequest { + r.termSide = &termSide + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationId(terminationId []int32) ApiCircuitsCircuitTerminationsListRequest { + r.terminationId = &terminationId + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationIdEmpty(terminationIdEmpty bool) ApiCircuitsCircuitTerminationsListRequest { + r.terminationIdEmpty = &terminationIdEmpty + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationIdGt(terminationIdGt []int32) ApiCircuitsCircuitTerminationsListRequest { + r.terminationIdGt = &terminationIdGt + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationIdGte(terminationIdGte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.terminationIdGte = &terminationIdGte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationIdLt(terminationIdLt []int32) ApiCircuitsCircuitTerminationsListRequest { + r.terminationIdLt = &terminationIdLt + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationIdLte(terminationIdLte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.terminationIdLte = &terminationIdLte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationIdN(terminationIdN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.terminationIdN = &terminationIdN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationType(terminationType string) ApiCircuitsCircuitTerminationsListRequest { + r.terminationType = &terminationType + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) TerminationTypeN(terminationTypeN string) ApiCircuitsCircuitTerminationsListRequest { + r.terminationTypeN = &terminationTypeN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitTerminationsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeed(upstreamSpeed []int32) ApiCircuitsCircuitTerminationsListRequest { + r.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 +} + +func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedGte(upstreamSpeedGte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.upstreamSpeedGte = &upstreamSpeedGte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedLt(upstreamSpeedLt []int32) ApiCircuitsCircuitTerminationsListRequest { + r.upstreamSpeedLt = &upstreamSpeedLt + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedLte(upstreamSpeedLte []int32) ApiCircuitsCircuitTerminationsListRequest { + r.upstreamSpeedLte = &upstreamSpeedLte + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedN(upstreamSpeedN []int32) ApiCircuitsCircuitTerminationsListRequest { + r.upstreamSpeedN = &upstreamSpeedN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectId(xconnectId []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectId = &xconnectId + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdEmpty(xconnectIdEmpty bool) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdEmpty = &xconnectIdEmpty + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIc(xconnectIdIc []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdIc = &xconnectIdIc + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIe(xconnectIdIe []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdIe = &xconnectIdIe + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIew(xconnectIdIew []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdIew = &xconnectIdIew + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdIsw(xconnectIdIsw []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdIsw = &xconnectIdIsw + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdN(xconnectIdN []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdN = &xconnectIdN + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNic(xconnectIdNic []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdNic = &xconnectIdNic + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNie(xconnectIdNie []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdNie = &xconnectIdNie + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNiew(xconnectIdNiew []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdNiew = &xconnectIdNiew + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) XconnectIdNisw(xconnectIdNisw []string) ApiCircuitsCircuitTerminationsListRequest { + r.xconnectIdNisw = &xconnectIdNisw + return r +} + +func (r ApiCircuitsCircuitTerminationsListRequest) Execute() (*PaginatedCircuitTerminationList, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsListExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsList(ctx context.Context) ApiCircuitsCircuitTerminationsListRequest { + return ApiCircuitsCircuitTerminationsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCircuitTerminationList +func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuitsCircuitTerminationsListRequest) (*PaginatedCircuitTerminationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitTerminationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + if r.cableId != nil { + t := *r.cableId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") + } + } + if r.cableIdN != nil { + t := *r.cableIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") + } + } + if r.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") + } + if r.circuitId != nil { + t := *r.circuitId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", t, "form", "multi") + } + } + if r.circuitIdN != nil { + t := *r.circuitIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") + } + } + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.portSpeed != nil { + t := *r.portSpeed + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed", t, "form", "multi") + } + } + if r.portSpeedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__empty", r.portSpeedEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gt", t, "form", "multi") + } + } + if r.portSpeedGte != nil { + t := *r.portSpeedGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gte", t, "form", "multi") + } + } + if r.portSpeedLt != nil { + t := *r.portSpeedLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lt", t, "form", "multi") + } + } + if r.portSpeedLte != nil { + t := *r.portSpeedLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lte", t, "form", "multi") + } + } + if r.portSpeedN != nil { + t := *r.portSpeedN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__n", t, "form", "multi") + } + } + if r.ppInfo != nil { + t := *r.ppInfo + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info", t, "form", "multi") + } + } + if r.ppInfoEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__empty", r.ppInfoEmpty, "form", "") + } + if r.ppInfoIc != nil { + t := *r.ppInfoIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ic", t, "form", "multi") + } + } + if r.ppInfoIe != nil { + t := *r.ppInfoIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ie", t, "form", "multi") + } + } + if r.ppInfoIew != nil { + t := *r.ppInfoIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__iew", t, "form", "multi") + } + } + if r.ppInfoIsw != nil { + t := *r.ppInfoIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__isw", t, "form", "multi") + } + } + if r.ppInfoN != nil { + t := *r.ppInfoN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__n", t, "form", "multi") + } + } + if r.ppInfoNic != nil { + t := *r.ppInfoNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nic", t, "form", "multi") + } + } + if r.ppInfoNie != nil { + t := *r.ppInfoNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nie", t, "form", "multi") + } + } + if r.ppInfoNiew != nil { + t := *r.ppInfoNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__niew", t, "form", "multi") + } + } + if r.ppInfoNisw != nil { + t := *r.ppInfoNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nisw", t, "form", "multi") + } + } + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") + } + } + if r.providerN != nil { + t := *r.providerN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "form", "multi") + } + } + if r.providerId != nil { + t := *r.providerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") + } + } + if r.providerIdN != nil { + t := *r.providerIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "form", "multi") + } + } + if r.providerNetworkId != nil { + t := *r.providerNetworkId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "form", "multi") + } + } + if r.providerNetworkIdN != nil { + t := *r.providerNetworkIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "form", "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } + } + if r.termSide != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "term_side", r.termSide, "form", "") + } + if r.terminationId != nil { + t := *r.terminationId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", t, "form", "multi") + } + } + if r.terminationIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__empty", r.terminationIdEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", t, "form", "multi") + } + } + if r.terminationIdGte != nil { + t := *r.terminationIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", t, "form", "multi") + } + } + if r.terminationIdLt != nil { + t := *r.terminationIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", t, "form", "multi") + } + } + if r.terminationIdLte != nil { + t := *r.terminationIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", t, "form", "multi") + } + } + if r.terminationIdN != nil { + t := *r.terminationIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", t, "form", "multi") + } + } + if r.terminationType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type", r.terminationType, "form", "") + } + if r.terminationTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type__n", r.terminationTypeN, "form", "") + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.upstreamSpeed != nil { + t := *r.upstreamSpeed + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed", t, "form", "multi") + } + } + if r.upstreamSpeedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__empty", r.upstreamSpeedEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gt", t, "form", "multi") + } + } + if r.upstreamSpeedGte != nil { + t := *r.upstreamSpeedGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gte", t, "form", "multi") + } + } + if r.upstreamSpeedLt != nil { + t := *r.upstreamSpeedLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lt", t, "form", "multi") + } + } + if r.upstreamSpeedLte != nil { + t := *r.upstreamSpeedLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lte", t, "form", "multi") + } + } + if r.upstreamSpeedN != nil { + t := *r.upstreamSpeedN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__n", t, "form", "multi") + } + } + if r.xconnectId != nil { + t := *r.xconnectId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id", t, "form", "multi") + } + } + if r.xconnectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__empty", r.xconnectIdEmpty, "form", "") + } + if r.xconnectIdIc != nil { + t := *r.xconnectIdIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ic", t, "form", "multi") + } + } + if r.xconnectIdIe != nil { + t := *r.xconnectIdIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ie", t, "form", "multi") + } + } + if r.xconnectIdIew != nil { + t := *r.xconnectIdIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__iew", t, "form", "multi") + } + } + if r.xconnectIdIsw != nil { + t := *r.xconnectIdIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__isw", t, "form", "multi") + } + } + if r.xconnectIdN != nil { + t := *r.xconnectIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__n", t, "form", "multi") + } + } + if r.xconnectIdNic != nil { + t := *r.xconnectIdNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nic", t, "form", "multi") + } + } + if r.xconnectIdNie != nil { + t := *r.xconnectIdNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nie", t, "form", "multi") + } + } + if r.xconnectIdNiew != nil { + t := *r.xconnectIdNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__niew", t, "form", "multi") + } + } + if r.xconnectIdNisw != nil { + t := *r.xconnectIdNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nisw", t, "form", "multi") + } + } + // 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 ApiCircuitsCircuitTerminationsPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedCircuitTerminationRequest *PatchedCircuitTerminationRequest +} + +func (r ApiCircuitsCircuitTerminationsPartialUpdateRequest) PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest PatchedCircuitTerminationRequest) ApiCircuitsCircuitTerminationsPartialUpdateRequest { + r.patchedCircuitTerminationRequest = &patchedCircuitTerminationRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsPartialUpdateRequest) Execute() (*CircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitTerminationsPartialUpdate Method for CircuitsCircuitTerminationsPartialUpdate + +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPartialUpdateRequest { + return ApiCircuitsCircuitTerminationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r ApiCircuitsCircuitTerminationsPartialUpdateRequest) (*CircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/{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.patchedCircuitTerminationRequest + 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 ApiCircuitsCircuitTerminationsPathsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsPathsRetrieveExecute(r) +} + +/* +CircuitsCircuitTerminationsPathsRetrieve Method for CircuitsCircuitTerminationsPathsRetrieve + +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPathsRetrieveRequest { + return ApiCircuitsCircuitTerminationsPathsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) (*CircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPathsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/{id}/paths/" + 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 ApiCircuitsCircuitTerminationsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitTerminationsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsRetrieveExecute(r) +} + +/* +CircuitsCircuitTerminationsRetrieve Method for CircuitsCircuitTerminationsRetrieve + +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsRetrieveRequest { + return ApiCircuitsCircuitTerminationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCircuitsCircuitTerminationsRetrieveRequest) (*CircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/{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 ApiCircuitsCircuitTerminationsUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + circuitTerminationRequest *CircuitTerminationRequest +} + +func (r ApiCircuitsCircuitTerminationsUpdateRequest) CircuitTerminationRequest(circuitTerminationRequest CircuitTerminationRequest) ApiCircuitsCircuitTerminationsUpdateRequest { + r.circuitTerminationRequest = &circuitTerminationRequest + return r +} + +func (r ApiCircuitsCircuitTerminationsUpdateRequest) Execute() (*CircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsCircuitTerminationsUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsUpdateRequest { + return ApiCircuitsCircuitTerminationsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircuitsCircuitTerminationsUpdateRequest) (*CircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-terminations/{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.circuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("circuitTerminationRequest 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.circuitTerminationRequest + 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 ApiCircuitsCircuitTypesBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTypeRequest *[]CircuitTypeRequest +} + +func (r ApiCircuitsCircuitTypesBulkDestroyRequest) CircuitTypeRequest(circuitTypeRequest []CircuitTypeRequest) ApiCircuitsCircuitTypesBulkDestroyRequest { + r.circuitTypeRequest = &circuitTypeRequest + return r +} + +func (r ApiCircuitsCircuitTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitTypesBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsCircuitTypesBulkDestroyRequest { + return ApiCircuitsCircuitTypesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuitsCircuitTypesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTypeRequest == nil { + return nil, reportError("circuitTypeRequest 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.circuitTypeRequest + 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 ApiCircuitsCircuitTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTypeRequest *[]CircuitTypeRequest +} + +func (r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) CircuitTypeRequest(circuitTypeRequest []CircuitTypeRequest) ApiCircuitsCircuitTypesBulkPartialUpdateRequest { + r.circuitTypeRequest = &circuitTypeRequest + return r +} + +func (r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) Execute() ([]CircuitType, *http.Response, error) { + return r.ApiService.CircuitsCircuitTypesBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitTypesBulkPartialUpdate Method for CircuitsCircuitTypesBulkPartialUpdate + +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkPartialUpdateRequest { + return ApiCircuitsCircuitTypesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) ([]CircuitType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("circuitTypeRequest 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.circuitTypeRequest + 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 ApiCircuitsCircuitTypesBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTypeRequest *[]CircuitTypeRequest +} + +func (r ApiCircuitsCircuitTypesBulkUpdateRequest) CircuitTypeRequest(circuitTypeRequest []CircuitTypeRequest) ApiCircuitsCircuitTypesBulkUpdateRequest { + r.circuitTypeRequest = &circuitTypeRequest + return r +} + +func (r ApiCircuitsCircuitTypesBulkUpdateRequest) Execute() ([]CircuitType, *http.Response, error) { + return r.ApiService.CircuitsCircuitTypesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkUpdateRequest { + return ApiCircuitsCircuitTypesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuitsCircuitTypesBulkUpdateRequest) ([]CircuitType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("circuitTypeRequest 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.circuitTypeRequest + 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 ApiCircuitsCircuitTypesCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitTypeRequest *CircuitTypeRequest +} + +func (r ApiCircuitsCircuitTypesCreateRequest) CircuitTypeRequest(circuitTypeRequest CircuitTypeRequest) ApiCircuitsCircuitTypesCreateRequest { + r.circuitTypeRequest = &circuitTypeRequest + return r +} + +func (r ApiCircuitsCircuitTypesCreateRequest) Execute() (*CircuitType, *http.Response, error) { + return r.ApiService.CircuitsCircuitTypesCreateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesCreate(ctx context.Context) ApiCircuitsCircuitTypesCreateRequest { + return ApiCircuitsCircuitTypesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCircuitTypesCreateRequest) (*CircuitType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("circuitTypeRequest 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.circuitTypeRequest + 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 ApiCircuitsCircuitTypesDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitTypesDestroyExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTypesDestroyRequest { + return ApiCircuitsCircuitTypesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCircuitTypesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-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{} + + // 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 ApiCircuitsCircuitTypesListRequest struct { + ctx context.Context + ApiService CircuitsAPI + 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 + 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 +} + +func (r ApiCircuitsCircuitTypesListRequest) Color(color []string) ApiCircuitsCircuitTypesListRequest { + r.color = &color + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorEmpty(colorEmpty bool) ApiCircuitsCircuitTypesListRequest { + r.colorEmpty = &colorEmpty + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorIc(colorIc []string) ApiCircuitsCircuitTypesListRequest { + r.colorIc = &colorIc + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorIe(colorIe []string) ApiCircuitsCircuitTypesListRequest { + r.colorIe = &colorIe + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorIew(colorIew []string) ApiCircuitsCircuitTypesListRequest { + r.colorIew = &colorIew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorIsw(colorIsw []string) ApiCircuitsCircuitTypesListRequest { + r.colorIsw = &colorIsw + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorN(colorN []string) ApiCircuitsCircuitTypesListRequest { + r.colorN = &colorN + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorNic(colorNic []string) ApiCircuitsCircuitTypesListRequest { + r.colorNic = &colorNic + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorNie(colorNie []string) ApiCircuitsCircuitTypesListRequest { + r.colorNie = &colorNie + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorNiew(colorNiew []string) ApiCircuitsCircuitTypesListRequest { + r.colorNiew = &colorNiew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) ColorNisw(colorNisw []string) ApiCircuitsCircuitTypesListRequest { + r.colorNisw = &colorNisw + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) Created(created []time.Time) ApiCircuitsCircuitTypesListRequest { + r.created = &created + 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 +} + +func (r ApiCircuitsCircuitTypesListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitTypesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitTypesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitTypesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitTypesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitTypesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) Description(description []string) ApiCircuitsCircuitTypesListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitTypesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitTypesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) Id(id []int32) ApiCircuitsCircuitTypesListRequest { + r.id = &id + 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 +} + +func (r ApiCircuitsCircuitTypesListRequest) IdGte(idGte []int32) ApiCircuitsCircuitTypesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) IdLt(idLt []int32) ApiCircuitsCircuitTypesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) IdLte(idLte []int32) ApiCircuitsCircuitTypesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) IdN(idN []int32) ApiCircuitsCircuitTypesListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitTypesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitTypesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitTypesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitTypesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitTypesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitTypesListRequest) Limit(limit int32) ApiCircuitsCircuitTypesListRequest { + r.limit = &limit + 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 +} + +func (r ApiCircuitsCircuitTypesListRequest) NameEmpty(nameEmpty bool) ApiCircuitsCircuitTypesListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameIc(nameIc []string) ApiCircuitsCircuitTypesListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameIe(nameIe []string) ApiCircuitsCircuitTypesListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameIew(nameIew []string) ApiCircuitsCircuitTypesListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameIsw(nameIsw []string) ApiCircuitsCircuitTypesListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameN(nameN []string) ApiCircuitsCircuitTypesListRequest { + r.nameN = &nameN + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameNic(nameNic []string) ApiCircuitsCircuitTypesListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameNie(nameNie []string) ApiCircuitsCircuitTypesListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameNiew(nameNiew []string) ApiCircuitsCircuitTypesListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) NameNisw(nameNisw []string) ApiCircuitsCircuitTypesListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitTypesListRequest) Offset(offset int32) ApiCircuitsCircuitTypesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitTypesListRequest) Ordering(ordering string) ApiCircuitsCircuitTypesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCircuitsCircuitTypesListRequest) Q(q string) ApiCircuitsCircuitTypesListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) Slug(slug []string) ApiCircuitsCircuitTypesListRequest { + r.slug = &slug + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsCircuitTypesListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugIc(slugIc []string) ApiCircuitsCircuitTypesListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugIe(slugIe []string) ApiCircuitsCircuitTypesListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugIew(slugIew []string) ApiCircuitsCircuitTypesListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugIsw(slugIsw []string) ApiCircuitsCircuitTypesListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugN(slugN []string) ApiCircuitsCircuitTypesListRequest { + r.slugN = &slugN + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugNic(slugNic []string) ApiCircuitsCircuitTypesListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugNie(slugNie []string) ApiCircuitsCircuitTypesListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugNiew(slugNiew []string) ApiCircuitsCircuitTypesListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) SlugNisw(slugNisw []string) ApiCircuitsCircuitTypesListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) Tag(tag []string) ApiCircuitsCircuitTypesListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) TagN(tagN []string) ApiCircuitsCircuitTypesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitTypesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitTypesListRequest) Execute() (*PaginatedCircuitTypeList, *http.Response, error) { + return r.ApiService.CircuitsCircuitTypesListExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesList(ctx context.Context) ApiCircuitsCircuitTypesListRequest { + return ApiCircuitsCircuitTypesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCircuitTypeList +func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircuitTypesListRequest) (*PaginatedCircuitTypeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.color != nil { + t := *r.color + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") + } + } + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") + } + if r.colorIc != nil { + t := *r.colorIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") + } + } + if r.colorIe != nil { + t := *r.colorIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") + } + } + if r.colorIew != nil { + t := *r.colorIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") + } + } + if r.colorIsw != nil { + t := *r.colorIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") + } + } + if r.colorN != nil { + t := *r.colorN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") + } + } + if r.colorNic != nil { + t := *r.colorNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") + } + } + if r.colorNie != nil { + t := *r.colorNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") + } + } + if r.colorNiew != nil { + t := *r.colorNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") + } + } + if r.colorNisw != nil { + t := *r.colorNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") + } + } + if r.slugN != nil { + t := *r.slugN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiCircuitsCircuitTypesPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedCircuitTypeRequest *PatchedCircuitTypeRequest +} + +func (r ApiCircuitsCircuitTypesPartialUpdateRequest) PatchedCircuitTypeRequest(patchedCircuitTypeRequest PatchedCircuitTypeRequest) ApiCircuitsCircuitTypesPartialUpdateRequest { + r.patchedCircuitTypeRequest = &patchedCircuitTypeRequest + return r +} + +func (r ApiCircuitsCircuitTypesPartialUpdateRequest) Execute() (*CircuitType, *http.Response, error) { + return r.ApiService.CircuitsCircuitTypesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesPartialUpdateRequest { + return ApiCircuitsCircuitTypesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircuitsCircuitTypesPartialUpdateRequest) (*CircuitType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-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{} + + // 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.patchedCircuitTypeRequest + 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 ApiCircuitsCircuitTypesRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitTypesRetrieveRequest) Execute() (*CircuitType, *http.Response, error) { + return r.ApiService.CircuitsCircuitTypesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTypesRetrieveRequest { + return ApiCircuitsCircuitTypesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCircuitTypesRetrieveRequest) (*CircuitType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-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{} + + // 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 ApiCircuitsCircuitTypesUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + circuitTypeRequest *CircuitTypeRequest +} + +func (r ApiCircuitsCircuitTypesUpdateRequest) CircuitTypeRequest(circuitTypeRequest CircuitTypeRequest) ApiCircuitsCircuitTypesUpdateRequest { + r.circuitTypeRequest = &circuitTypeRequest + return r +} + +func (r ApiCircuitsCircuitTypesUpdateRequest) Execute() (*CircuitType, *http.Response, error) { + return r.ApiService.CircuitsCircuitTypesUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesUpdateRequest { + return ApiCircuitsCircuitTypesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCircuitTypesUpdateRequest) (*CircuitType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-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.circuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("circuitTypeRequest 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.circuitTypeRequest + 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 ApiCircuitsCircuitsBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitRequest *[]CircuitRequest +} + +func (r ApiCircuitsCircuitsBulkDestroyRequest) CircuitRequest(circuitRequest []CircuitRequest) ApiCircuitsCircuitsBulkDestroyRequest { + r.circuitRequest = &circuitRequest + return r +} + +func (r ApiCircuitsCircuitsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitsBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroy(ctx context.Context) ApiCircuitsCircuitsBulkDestroyRequest { + return ApiCircuitsCircuitsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCircuitsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitRequest == nil { + return nil, reportError("circuitRequest 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.circuitRequest + 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 ApiCircuitsCircuitsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitRequest *[]CircuitRequest +} + +func (r ApiCircuitsCircuitsBulkPartialUpdateRequest) CircuitRequest(circuitRequest []CircuitRequest) ApiCircuitsCircuitsBulkPartialUpdateRequest { + r.circuitRequest = &circuitRequest + return r +} + +func (r ApiCircuitsCircuitsBulkPartialUpdateRequest) Execute() ([]Circuit, *http.Response, error) { + return r.ApiService.CircuitsCircuitsBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitsBulkPartialUpdateRequest { + return ApiCircuitsCircuitsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Circuit +func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircuitsCircuitsBulkPartialUpdateRequest) ([]Circuit, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Circuit + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitRequest == nil { + return localVarReturnValue, nil, reportError("circuitRequest 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.circuitRequest + 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 ApiCircuitsCircuitsBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + circuitRequest *[]CircuitRequest +} + +func (r ApiCircuitsCircuitsBulkUpdateRequest) CircuitRequest(circuitRequest []CircuitRequest) ApiCircuitsCircuitsBulkUpdateRequest { + r.circuitRequest = &circuitRequest + return r +} + +func (r ApiCircuitsCircuitsBulkUpdateRequest) Execute() ([]Circuit, *http.Response, error) { + return r.ApiService.CircuitsCircuitsBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdate(ctx context.Context) ApiCircuitsCircuitsBulkUpdateRequest { + return ApiCircuitsCircuitsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Circuit +func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCircuitsBulkUpdateRequest) ([]Circuit, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Circuit + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitRequest == nil { + return localVarReturnValue, nil, reportError("circuitRequest 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.circuitRequest + 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 ApiCircuitsCircuitsCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + writableCircuitRequest *WritableCircuitRequest +} + +func (r ApiCircuitsCircuitsCreateRequest) WritableCircuitRequest(writableCircuitRequest WritableCircuitRequest) ApiCircuitsCircuitsCreateRequest { + r.writableCircuitRequest = &writableCircuitRequest + return r +} + +func (r ApiCircuitsCircuitsCreateRequest) Execute() (*Circuit, *http.Response, error) { + return r.ApiService.CircuitsCircuitsCreateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsCreate(ctx context.Context) ApiCircuitsCircuitsCreateRequest { + return ApiCircuitsCircuitsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuitsCreateRequest) (*Circuit, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitRequest 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.writableCircuitRequest + 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 ApiCircuitsCircuitsDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitsDestroyExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitsDestroyRequest { + return ApiCircuitsCircuitsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuitsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/{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 ApiCircuitsCircuitsListRequest struct { + ctx context.Context + ApiService CircuitsAPI + 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 *[]string + contactGroupN *[]string + 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 + distance *[]float64 + distanceEmpty *bool + distanceGt *[]float64 + distanceGte *[]float64 + distanceLt *[]float64 + distanceLte *[]float64 + distanceN *[]float64 + distanceUnit *CircuitsCircuitsListDistanceUnitParameter + 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 + providerAccount *[]string + providerAccountN *[]string + providerAccountId *[]int32 + providerAccountIdN *[]int32 + providerId *[]int32 + providerIdN *[]int32 + providerNetworkId *[]int32 + providerNetworkIdN *[]int32 + q *string + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + terminationAId *[]*int32 + terminationAIdN *[]*int32 + terminationDate *[]string + terminationDateEmpty *bool + terminationDateGt *[]string + terminationDateGte *[]string + terminationDateLt *[]string + terminationDateLte *[]string + terminationDateN *[]string + terminationZId *[]*int32 + terminationZIdN *[]*int32 + type_ *[]string + typeN *[]string + typeId *[]int32 + typeIdN *[]int32 + updatedByRequest *string +} + +func (r ApiCircuitsCircuitsListRequest) Cid(cid []string) ApiCircuitsCircuitsListRequest { + r.cid = &cid + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidEmpty(cidEmpty bool) ApiCircuitsCircuitsListRequest { + r.cidEmpty = &cidEmpty + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidIc(cidIc []string) ApiCircuitsCircuitsListRequest { + r.cidIc = &cidIc + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidIe(cidIe []string) ApiCircuitsCircuitsListRequest { + r.cidIe = &cidIe + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidIew(cidIew []string) ApiCircuitsCircuitsListRequest { + r.cidIew = &cidIew + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidIsw(cidIsw []string) ApiCircuitsCircuitsListRequest { + r.cidIsw = &cidIsw + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidN(cidN []string) ApiCircuitsCircuitsListRequest { + r.cidN = &cidN + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidNic(cidNic []string) ApiCircuitsCircuitsListRequest { + r.cidNic = &cidNic + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidNie(cidNie []string) ApiCircuitsCircuitsListRequest { + r.cidNie = &cidNie + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidNiew(cidNiew []string) ApiCircuitsCircuitsListRequest { + r.cidNiew = &cidNiew + return r +} + +func (r ApiCircuitsCircuitsListRequest) CidNisw(cidNisw []string) ApiCircuitsCircuitsListRequest { + r.cidNisw = &cidNisw + return r +} + +func (r ApiCircuitsCircuitsListRequest) CommitRate(commitRate []int32) ApiCircuitsCircuitsListRequest { + r.commitRate = &commitRate + 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 +} + +func (r ApiCircuitsCircuitsListRequest) CommitRateGte(commitRateGte []int32) ApiCircuitsCircuitsListRequest { + r.commitRateGte = &commitRateGte + return r +} + +func (r ApiCircuitsCircuitsListRequest) CommitRateLt(commitRateLt []int32) ApiCircuitsCircuitsListRequest { + r.commitRateLt = &commitRateLt + return r +} + +func (r ApiCircuitsCircuitsListRequest) CommitRateLte(commitRateLte []int32) ApiCircuitsCircuitsListRequest { + r.commitRateLte = &commitRateLte + return r +} + +func (r ApiCircuitsCircuitsListRequest) CommitRateN(commitRateN []int32) ApiCircuitsCircuitsListRequest { + r.commitRateN = &commitRateN + return r +} + +// Contact +func (r ApiCircuitsCircuitsListRequest) Contact(contact []int32) ApiCircuitsCircuitsListRequest { + r.contact = &contact + return r +} + +// Contact +func (r ApiCircuitsCircuitsListRequest) ContactN(contactN []int32) ApiCircuitsCircuitsListRequest { + r.contactN = &contactN + return r +} + +func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []string) ApiCircuitsCircuitsListRequest { + r.contactGroup = &contactGroup + return r +} + +func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsCircuitsListRequest { + r.contactGroupN = &contactGroupN + return r +} + +// Contact Role +func (r ApiCircuitsCircuitsListRequest) ContactRole(contactRole []int32) ApiCircuitsCircuitsListRequest { + r.contactRole = &contactRole + return r +} + +// Contact Role +func (r ApiCircuitsCircuitsListRequest) ContactRoleN(contactRoleN []int32) ApiCircuitsCircuitsListRequest { + r.contactRoleN = &contactRoleN + return r +} + +func (r ApiCircuitsCircuitsListRequest) Created(created []time.Time) ApiCircuitsCircuitsListRequest { + r.created = &created + 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 +} + +func (r ApiCircuitsCircuitsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsCircuitsListRequest) Description(description []string) ApiCircuitsCircuitsListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsCircuitsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsCircuitsListRequest) Distance(distance []float64) ApiCircuitsCircuitsListRequest { + r.distance = &distance + return r +} + +func (r ApiCircuitsCircuitsListRequest) DistanceEmpty(distanceEmpty bool) ApiCircuitsCircuitsListRequest { + r.distanceEmpty = &distanceEmpty + return r +} + +func (r ApiCircuitsCircuitsListRequest) DistanceGt(distanceGt []float64) ApiCircuitsCircuitsListRequest { + r.distanceGt = &distanceGt + return r +} + +func (r ApiCircuitsCircuitsListRequest) DistanceGte(distanceGte []float64) ApiCircuitsCircuitsListRequest { + r.distanceGte = &distanceGte + return r +} + +func (r ApiCircuitsCircuitsListRequest) DistanceLt(distanceLt []float64) ApiCircuitsCircuitsListRequest { + r.distanceLt = &distanceLt + return r +} + +func (r ApiCircuitsCircuitsListRequest) DistanceLte(distanceLte []float64) ApiCircuitsCircuitsListRequest { + r.distanceLte = &distanceLte + return r +} + +func (r ApiCircuitsCircuitsListRequest) DistanceN(distanceN []float64) ApiCircuitsCircuitsListRequest { + r.distanceN = &distanceN + return r +} + +// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +func (r ApiCircuitsCircuitsListRequest) DistanceUnit(distanceUnit CircuitsCircuitsListDistanceUnitParameter) ApiCircuitsCircuitsListRequest { + r.distanceUnit = &distanceUnit + return r +} + +func (r ApiCircuitsCircuitsListRequest) Id(id []int32) ApiCircuitsCircuitsListRequest { + r.id = &id + 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 +} + +func (r ApiCircuitsCircuitsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitsListRequest) IdN(idN []int32) ApiCircuitsCircuitsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitsListRequest) InstallDate(installDate []string) ApiCircuitsCircuitsListRequest { + r.installDate = &installDate + 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 +} + +func (r ApiCircuitsCircuitsListRequest) InstallDateGte(installDateGte []string) ApiCircuitsCircuitsListRequest { + r.installDateGte = &installDateGte + return r +} + +func (r ApiCircuitsCircuitsListRequest) InstallDateLt(installDateLt []string) ApiCircuitsCircuitsListRequest { + r.installDateLt = &installDateLt + return r +} + +func (r ApiCircuitsCircuitsListRequest) InstallDateLte(installDateLte []string) ApiCircuitsCircuitsListRequest { + r.installDateLte = &installDateLte + return r +} + +func (r ApiCircuitsCircuitsListRequest) InstallDateN(installDateN []string) ApiCircuitsCircuitsListRequest { + r.installDateN = &installDateN + return r +} + +func (r ApiCircuitsCircuitsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitsListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiCircuitsCircuitsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitsListRequest) Limit(limit int32) ApiCircuitsCircuitsListRequest { + r.limit = &limit + 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 + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitsListRequest) Ordering(ordering string) ApiCircuitsCircuitsListRequest { + r.ordering = &ordering + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitsListRequest) Provider(provider []string) ApiCircuitsCircuitsListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitsListRequest { + r.providerN = &providerN + return r +} + +// Provider account (account) +func (r ApiCircuitsCircuitsListRequest) ProviderAccount(providerAccount []string) ApiCircuitsCircuitsListRequest { + r.providerAccount = &providerAccount + return r +} + +// Provider account (account) +func (r ApiCircuitsCircuitsListRequest) ProviderAccountN(providerAccountN []string) ApiCircuitsCircuitsListRequest { + r.providerAccountN = &providerAccountN + return r +} + +// Provider account (ID) +func (r ApiCircuitsCircuitsListRequest) ProviderAccountId(providerAccountId []int32) ApiCircuitsCircuitsListRequest { + r.providerAccountId = &providerAccountId + return r +} + +// Provider account (ID) +func (r ApiCircuitsCircuitsListRequest) ProviderAccountIdN(providerAccountIdN []int32) ApiCircuitsCircuitsListRequest { + r.providerAccountIdN = &providerAccountIdN + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitsListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitsListRequest { + r.providerIdN = &providerIdN + return r +} + +// Provider network (ID) +func (r ApiCircuitsCircuitsListRequest) ProviderNetworkId(providerNetworkId []int32) ApiCircuitsCircuitsListRequest { + r.providerNetworkId = &providerNetworkId + return r +} + +// Provider network (ID) +func (r ApiCircuitsCircuitsListRequest) ProviderNetworkIdN(providerNetworkIdN []int32) ApiCircuitsCircuitsListRequest { + r.providerNetworkIdN = &providerNetworkIdN + return r +} + +// Search +func (r ApiCircuitsCircuitsListRequest) Q(q string) ApiCircuitsCircuitsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitsListRequest) Region(region []string) ApiCircuitsCircuitsListRequest { + r.region = ®ion + return r +} + +func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []string) ApiCircuitsCircuitsListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []string) ApiCircuitsCircuitsListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []string) ApiCircuitsCircuitsListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site (slug) +func (r ApiCircuitsCircuitsListRequest) Site(site []string) ApiCircuitsCircuitsListRequest { + r.site = &site + return r +} + +// Site (slug) +func (r ApiCircuitsCircuitsListRequest) SiteN(siteN []string) ApiCircuitsCircuitsListRequest { + r.siteN = &siteN + return r +} + +func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []string) ApiCircuitsCircuitsListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsCircuitsListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsCircuitsListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsCircuitsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiCircuitsCircuitsListRequest) SiteId(siteId []int32) ApiCircuitsCircuitsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiCircuitsCircuitsListRequest) SiteIdN(siteIdN []int32) ApiCircuitsCircuitsListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiCircuitsCircuitsListRequest) Status(status []string) ApiCircuitsCircuitsListRequest { + r.status = &status + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusEmpty(statusEmpty bool) ApiCircuitsCircuitsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusIc(statusIc []string) ApiCircuitsCircuitsListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusIe(statusIe []string) ApiCircuitsCircuitsListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusIew(statusIew []string) ApiCircuitsCircuitsListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusIsw(statusIsw []string) ApiCircuitsCircuitsListRequest { + r.statusIsw = &statusIsw + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusN(statusN []string) ApiCircuitsCircuitsListRequest { + r.statusN = &statusN + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusNic(statusNic []string) ApiCircuitsCircuitsListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusNie(statusNie []string) ApiCircuitsCircuitsListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusNiew(statusNiew []string) ApiCircuitsCircuitsListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiCircuitsCircuitsListRequest) StatusNisw(statusNisw []string) ApiCircuitsCircuitsListRequest { + r.statusNisw = &statusNisw + return r +} + +func (r ApiCircuitsCircuitsListRequest) Tag(tag []string) ApiCircuitsCircuitsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitsListRequest) TagN(tagN []string) ApiCircuitsCircuitsListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitsListRequest) Tenant(tenant []string) ApiCircuitsCircuitsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitsListRequest) TenantN(tenantN []string) ApiCircuitsCircuitsListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitsListRequest) TenantId(tenantId []*int32) ApiCircuitsCircuitsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsCircuitsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +// Termination A (ID) +func (r ApiCircuitsCircuitsListRequest) TerminationAId(terminationAId []*int32) ApiCircuitsCircuitsListRequest { + r.terminationAId = &terminationAId + return r +} + +// Termination A (ID) +func (r ApiCircuitsCircuitsListRequest) TerminationAIdN(terminationAIdN []*int32) ApiCircuitsCircuitsListRequest { + r.terminationAIdN = &terminationAIdN + return r +} + +func (r ApiCircuitsCircuitsListRequest) TerminationDate(terminationDate []string) ApiCircuitsCircuitsListRequest { + r.terminationDate = &terminationDate + 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 +} + +func (r ApiCircuitsCircuitsListRequest) TerminationDateGte(terminationDateGte []string) ApiCircuitsCircuitsListRequest { + r.terminationDateGte = &terminationDateGte + return r +} + +func (r ApiCircuitsCircuitsListRequest) TerminationDateLt(terminationDateLt []string) ApiCircuitsCircuitsListRequest { + r.terminationDateLt = &terminationDateLt + return r +} + +func (r ApiCircuitsCircuitsListRequest) TerminationDateLte(terminationDateLte []string) ApiCircuitsCircuitsListRequest { + r.terminationDateLte = &terminationDateLte + return r +} + +func (r ApiCircuitsCircuitsListRequest) TerminationDateN(terminationDateN []string) ApiCircuitsCircuitsListRequest { + r.terminationDateN = &terminationDateN + return r +} + +// Termination A (ID) +func (r ApiCircuitsCircuitsListRequest) TerminationZId(terminationZId []*int32) ApiCircuitsCircuitsListRequest { + r.terminationZId = &terminationZId + return r +} + +// Termination A (ID) +func (r ApiCircuitsCircuitsListRequest) TerminationZIdN(terminationZIdN []*int32) ApiCircuitsCircuitsListRequest { + r.terminationZIdN = &terminationZIdN + return r +} + +// Circuit type (slug) +func (r ApiCircuitsCircuitsListRequest) Type_(type_ []string) ApiCircuitsCircuitsListRequest { + r.type_ = &type_ + return r +} + +// Circuit type (slug) +func (r ApiCircuitsCircuitsListRequest) TypeN(typeN []string) ApiCircuitsCircuitsListRequest { + r.typeN = &typeN + return r +} + +// Circuit type (ID) +func (r ApiCircuitsCircuitsListRequest) TypeId(typeId []int32) ApiCircuitsCircuitsListRequest { + r.typeId = &typeId + return r +} + +// Circuit type (ID) +func (r ApiCircuitsCircuitsListRequest) TypeIdN(typeIdN []int32) ApiCircuitsCircuitsListRequest { + r.typeIdN = &typeIdN + return r +} + +func (r ApiCircuitsCircuitsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitsListRequest) Execute() (*PaginatedCircuitList, *http.Response, error) { + return r.ApiService.CircuitsCircuitsListExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsList(ctx context.Context) ApiCircuitsCircuitsListRequest { + return ApiCircuitsCircuitsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCircuitList +func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsListRequest) (*PaginatedCircuitList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cid != nil { + t := *r.cid + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid", t, "form", "multi") + } + } + if r.cidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__empty", r.cidEmpty, "form", "") + } + if r.cidIc != nil { + t := *r.cidIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ic", t, "form", "multi") + } + } + if r.cidIe != nil { + t := *r.cidIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ie", t, "form", "multi") + } + } + if r.cidIew != nil { + t := *r.cidIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__iew", t, "form", "multi") + } + } + if r.cidIsw != nil { + t := *r.cidIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__isw", t, "form", "multi") + } + } + if r.cidN != nil { + t := *r.cidN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__n", t, "form", "multi") + } + } + if r.cidNic != nil { + t := *r.cidNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nic", t, "form", "multi") + } + } + if r.cidNie != nil { + t := *r.cidNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nie", t, "form", "multi") + } + } + if r.cidNiew != nil { + t := *r.cidNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__niew", t, "form", "multi") + } + } + if r.cidNisw != nil { + t := *r.cidNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nisw", t, "form", "multi") + } + } + if r.commitRate != nil { + t := *r.commitRate + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate", t, "form", "multi") + } + } + if r.commitRateEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__empty", r.commitRateEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gt", t, "form", "multi") + } + } + if r.commitRateGte != nil { + t := *r.commitRateGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gte", t, "form", "multi") + } + } + if r.commitRateLt != nil { + t := *r.commitRateLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lt", t, "form", "multi") + } + } + if r.commitRateLte != nil { + t := *r.commitRateLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lte", t, "form", "multi") + } + } + if r.commitRateN != nil { + t := *r.commitRateN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") + } + } + if r.contactN != nil { + t := *r.contactN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") + } + } + if r.contactGroup != nil { + t := *r.contactGroup + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") + } + } + if r.contactGroupN != nil { + t := *r.contactGroupN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") + } + } + if r.contactRole != nil { + t := *r.contactRole + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") + } + } + if r.contactRoleN != nil { + t := *r.contactRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.distance != nil { + t := *r.distance + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", t, "form", "multi") + } + } + if r.distanceEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__empty", r.distanceEmpty, "form", "") + } + if r.distanceGt != nil { + t := *r.distanceGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", t, "form", "multi") + } + } + if r.distanceGte != nil { + t := *r.distanceGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", t, "form", "multi") + } + } + if r.distanceLt != nil { + t := *r.distanceLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", t, "form", "multi") + } + } + if r.distanceLte != nil { + t := *r.distanceLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", t, "form", "multi") + } + } + if r.distanceN != nil { + t := *r.distanceN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", t, "form", "multi") + } + } + if r.distanceUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit", r.distanceUnit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.installDate != nil { + t := *r.installDate + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date", t, "form", "multi") + } + } + if r.installDateEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__empty", r.installDateEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gt", t, "form", "multi") + } + } + if r.installDateGte != nil { + t := *r.installDateGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gte", t, "form", "multi") + } + } + if r.installDateLt != nil { + t := *r.installDateLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lt", t, "form", "multi") + } + } + if r.installDateLte != nil { + t := *r.installDateLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lte", t, "form", "multi") + } + } + if r.installDateN != nil { + t := *r.installDateN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") + } + } + if r.providerN != nil { + t := *r.providerN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "form", "multi") + } + } + if r.providerAccount != nil { + t := *r.providerAccount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", t, "form", "multi") + } + } + if r.providerAccountN != nil { + t := *r.providerAccountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", t, "form", "multi") + } + } + if r.providerAccountId != nil { + t := *r.providerAccountId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", t, "form", "multi") + } + } + if r.providerAccountIdN != nil { + t := *r.providerAccountIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", t, "form", "multi") + } + } + if r.providerId != nil { + t := *r.providerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") + } + } + if r.providerIdN != nil { + t := *r.providerIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "form", "multi") + } + } + if r.providerNetworkId != nil { + t := *r.providerNetworkId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "form", "multi") + } + } + if r.providerNetworkIdN != nil { + t := *r.providerNetworkIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "form", "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") + } + } + if r.statusN != nil { + t := *r.statusN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.terminationAId != nil { + t := *r.terminationAId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", t, "form", "multi") + } + } + if r.terminationAIdN != nil { + t := *r.terminationAIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id__n", t, "form", "multi") + } + } + if r.terminationDate != nil { + t := *r.terminationDate + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date", t, "form", "multi") + } + } + if r.terminationDateEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__empty", r.terminationDateEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gt", t, "form", "multi") + } + } + if r.terminationDateGte != nil { + t := *r.terminationDateGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gte", t, "form", "multi") + } + } + if r.terminationDateLt != nil { + t := *r.terminationDateLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lt", t, "form", "multi") + } + } + if r.terminationDateLte != nil { + t := *r.terminationDateLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lte", t, "form", "multi") + } + } + if r.terminationDateN != nil { + t := *r.terminationDateN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__n", t, "form", "multi") + } + } + if r.terminationZId != nil { + t := *r.terminationZId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id", t, "form", "multi") + } + } + if r.terminationZIdN != nil { + t := *r.terminationZIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeN != nil { + t := *r.typeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeId != nil { + t := *r.typeId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", t, "form", "multi") + } + } + if r.typeIdN != nil { + t := *r.typeIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiCircuitsCircuitsPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedWritableCircuitRequest *PatchedWritableCircuitRequest +} + +func (r ApiCircuitsCircuitsPartialUpdateRequest) PatchedWritableCircuitRequest(patchedWritableCircuitRequest PatchedWritableCircuitRequest) ApiCircuitsCircuitsPartialUpdateRequest { + r.patchedWritableCircuitRequest = &patchedWritableCircuitRequest + return r +} + +func (r ApiCircuitsCircuitsPartialUpdateRequest) Execute() (*Circuit, *http.Response, error) { + return r.ApiService.CircuitsCircuitsPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsPartialUpdateRequest { + return ApiCircuitsCircuitsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsCircuitsPartialUpdateRequest) (*Circuit, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/{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.patchedWritableCircuitRequest + 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 ApiCircuitsCircuitsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsCircuitsRetrieveRequest) Execute() (*Circuit, *http.Response, error) { + return r.ApiService.CircuitsCircuitsRetrieveExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitsRetrieveRequest { + return ApiCircuitsCircuitsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircuitsRetrieveRequest) (*Circuit, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/{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 ApiCircuitsCircuitsUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + writableCircuitRequest *WritableCircuitRequest +} + +func (r ApiCircuitsCircuitsUpdateRequest) WritableCircuitRequest(writableCircuitRequest WritableCircuitRequest) ApiCircuitsCircuitsUpdateRequest { + r.writableCircuitRequest = &writableCircuitRequest + return r +} + +func (r ApiCircuitsCircuitsUpdateRequest) Execute() (*Circuit, *http.Response, error) { + return r.ApiService.CircuitsCircuitsUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsUpdateRequest { + return ApiCircuitsCircuitsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuitsUpdateRequest) (*Circuit, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuits/{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.writableCircuitRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitRequest 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.writableCircuitRequest + 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 ApiCircuitsProviderAccountsBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerAccountRequest *[]ProviderAccountRequest +} + +func (r ApiCircuitsProviderAccountsBulkDestroyRequest) ProviderAccountRequest(providerAccountRequest []ProviderAccountRequest) ApiCircuitsProviderAccountsBulkDestroyRequest { + r.providerAccountRequest = &providerAccountRequest + return r +} + +func (r ApiCircuitsProviderAccountsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsProviderAccountsBulkDestroyExecute(r) +} + +/* +CircuitsProviderAccountsBulkDestroy Method for CircuitsProviderAccountsBulkDestroy + +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 +*/ +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroy(ctx context.Context) ApiCircuitsProviderAccountsBulkDestroyRequest { + return ApiCircuitsProviderAccountsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCircuitsProviderAccountsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/provider-accounts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerAccountRequest == nil { + return nil, reportError("providerAccountRequest 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.providerAccountRequest + 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 ApiCircuitsProviderAccountsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerAccountRequest *[]ProviderAccountRequest +} + +func (r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ProviderAccountRequest(providerAccountRequest []ProviderAccountRequest) ApiCircuitsProviderAccountsBulkPartialUpdateRequest { + r.providerAccountRequest = &providerAccountRequest + return r +} + +func (r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) Execute() ([]ProviderAccount, *http.Response, error) { + return r.ApiService.CircuitsProviderAccountsBulkPartialUpdateExecute(r) +} + +/* +CircuitsProviderAccountsBulkPartialUpdate Method for CircuitsProviderAccountsBulkPartialUpdate + +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 +*/ +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkPartialUpdateRequest { + return ApiCircuitsProviderAccountsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdateExecute(r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ([]ProviderAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/provider-accounts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerAccountRequest == nil { + return localVarReturnValue, nil, reportError("providerAccountRequest 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.providerAccountRequest + 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, "circuit_id", t, "multi") } } - if r.circuitIdN != nil { - t := *r.circuitIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_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 + } + + 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 } - 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") + + 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 ApiCircuitsProviderAccountsBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerAccountRequest *[]ProviderAccountRequest +} + +func (r ApiCircuitsProviderAccountsBulkUpdateRequest) ProviderAccountRequest(providerAccountRequest []ProviderAccountRequest) ApiCircuitsProviderAccountsBulkUpdateRequest { + r.providerAccountRequest = &providerAccountRequest + return r +} + +func (r ApiCircuitsProviderAccountsBulkUpdateRequest) Execute() ([]ProviderAccount, *http.Response, error) { + return r.ApiService.CircuitsProviderAccountsBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkUpdateRequest { + return ApiCircuitsProviderAccountsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCircuitsProviderAccountsBulkUpdateRequest) ([]ProviderAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/provider-accounts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerAccountRequest == nil { + return localVarReturnValue, nil, reportError("providerAccountRequest 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.providerAccountRequest + 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", 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") - } + 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 ApiCircuitsProviderAccountsCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerAccountRequest *ProviderAccountRequest +} + +func (r ApiCircuitsProviderAccountsCreateRequest) ProviderAccountRequest(providerAccountRequest ProviderAccountRequest) ApiCircuitsProviderAccountsCreateRequest { + r.providerAccountRequest = &providerAccountRequest + return r +} + +func (r ApiCircuitsProviderAccountsCreateRequest) Execute() (*ProviderAccount, *http.Response, error) { + return r.ApiService.CircuitsProviderAccountsCreateExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsProviderAccountsCreate(ctx context.Context) ApiCircuitsProviderAccountsCreateRequest { + return ApiCircuitsProviderAccountsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuitsProviderAccountsCreateRequest) (*ProviderAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/provider-accounts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.providerAccountRequest == nil { + return localVarReturnValue, nil, reportError("providerAccountRequest 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 } - 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") + // body params + localVarPostBody = r.providerAccountRequest + 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__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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - 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") + + 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, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsProviderAccountsDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsProviderAccountsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsProviderAccountsDestroyExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsProviderAccountsDestroy(ctx context.Context, id int32) ApiCircuitsProviderAccountsDestroyRequest { + return ApiCircuitsProviderAccountsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsProviderAccountsDestroyExecute(r ApiCircuitsProviderAccountsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/circuits/provider-accounts/{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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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__isw", t, "multi") } } - 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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - 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") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsProviderAccountsListRequest struct { + ctx context.Context + ApiService CircuitsAPI + 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 + 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 + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + q *string + tag *[]string + tagN *[]string + updatedByRequest *string +} + +func (r ApiCircuitsProviderAccountsListRequest) Account(account []string) ApiCircuitsProviderAccountsListRequest { + r.account = &account + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountEmpty(accountEmpty bool) ApiCircuitsProviderAccountsListRequest { + r.accountEmpty = &accountEmpty + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountIc(accountIc []string) ApiCircuitsProviderAccountsListRequest { + r.accountIc = &accountIc + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountIe(accountIe []string) ApiCircuitsProviderAccountsListRequest { + r.accountIe = &accountIe + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountIew(accountIew []string) ApiCircuitsProviderAccountsListRequest { + r.accountIew = &accountIew + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountIsw(accountIsw []string) ApiCircuitsProviderAccountsListRequest { + r.accountIsw = &accountIsw + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountN(accountN []string) ApiCircuitsProviderAccountsListRequest { + r.accountN = &accountN + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountNic(accountNic []string) ApiCircuitsProviderAccountsListRequest { + r.accountNic = &accountNic + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountNie(accountNie []string) ApiCircuitsProviderAccountsListRequest { + r.accountNie = &accountNie + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountNiew(accountNiew []string) ApiCircuitsProviderAccountsListRequest { + r.accountNiew = &accountNiew + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) AccountNisw(accountNisw []string) ApiCircuitsProviderAccountsListRequest { + r.accountNisw = &accountNisw + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) Created(created []time.Time) ApiCircuitsProviderAccountsListRequest { + r.created = &created + 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 +} + +func (r ApiCircuitsProviderAccountsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsProviderAccountsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsProviderAccountsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsProviderAccountsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) CreatedN(createdN []time.Time) ApiCircuitsProviderAccountsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsProviderAccountsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) Description(description []string) ApiCircuitsProviderAccountsListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsProviderAccountsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionN(descriptionN []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsProviderAccountsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) Id(id []int32) ApiCircuitsProviderAccountsListRequest { + r.id = &id + 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 +} + +func (r ApiCircuitsProviderAccountsListRequest) IdGte(idGte []int32) ApiCircuitsProviderAccountsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) IdLt(idLt []int32) ApiCircuitsProviderAccountsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) IdLte(idLte []int32) ApiCircuitsProviderAccountsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) IdN(idN []int32) ApiCircuitsProviderAccountsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsProviderAccountsListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsProviderAccountsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsProviderAccountsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsProviderAccountsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsProviderAccountsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsProviderAccountsListRequest) Limit(limit int32) ApiCircuitsProviderAccountsListRequest { + r.limit = &limit + 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 +} + +func (r ApiCircuitsProviderAccountsListRequest) NameEmpty(nameEmpty bool) ApiCircuitsProviderAccountsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameIc(nameIc []string) ApiCircuitsProviderAccountsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameIe(nameIe []string) ApiCircuitsProviderAccountsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameIew(nameIew []string) ApiCircuitsProviderAccountsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameIsw(nameIsw []string) ApiCircuitsProviderAccountsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameN(nameN []string) ApiCircuitsProviderAccountsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameNic(nameNic []string) ApiCircuitsProviderAccountsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameNie(nameNie []string) ApiCircuitsProviderAccountsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameNiew(nameNiew []string) ApiCircuitsProviderAccountsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) NameNisw(nameNisw []string) ApiCircuitsProviderAccountsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsProviderAccountsListRequest) Offset(offset int32) ApiCircuitsProviderAccountsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsProviderAccountsListRequest) Ordering(ordering string) ApiCircuitsProviderAccountsListRequest { + r.ordering = &ordering + return r +} + +// Provider (slug) +func (r ApiCircuitsProviderAccountsListRequest) Provider(provider []string) ApiCircuitsProviderAccountsListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiCircuitsProviderAccountsListRequest) ProviderN(providerN []string) ApiCircuitsProviderAccountsListRequest { + r.providerN = &providerN + return r +} + +// Provider (ID) +func (r ApiCircuitsProviderAccountsListRequest) ProviderId(providerId []int32) ApiCircuitsProviderAccountsListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiCircuitsProviderAccountsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsProviderAccountsListRequest { + r.providerIdN = &providerIdN + return r +} + +// Search +func (r ApiCircuitsProviderAccountsListRequest) Q(q string) ApiCircuitsProviderAccountsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) Tag(tag []string) ApiCircuitsProviderAccountsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) TagN(tagN []string) ApiCircuitsProviderAccountsListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProviderAccountsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsProviderAccountsListRequest) Execute() (*PaginatedProviderAccountList, *http.Response, error) { + return r.ApiService.CircuitsProviderAccountsListExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsProviderAccountsList(ctx context.Context) ApiCircuitsProviderAccountsListRequest { + return ApiCircuitsProviderAccountsListRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return PaginatedProviderAccountList +func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsProviderAccountsListRequest) (*PaginatedProviderAccountList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedProviderAccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.id != nil { - t := *r.id + + localVarPath := localBasePath + "/api/circuits/provider-accounts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.account != nil { + t := *r.account 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account", t, "form", "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.accountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "account__empty", r.accountEmpty, "form", "") } - if r.idGte != nil { - t := *r.idGte + if r.accountIc != nil { + t := *r.accountIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__ic", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.accountIe != nil { + t := *r.accountIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__ie", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.accountIew != nil { + t := *r.accountIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__iew", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.accountIsw != nil { + t := *r.accountIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__isw", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.accountN != nil { + t := *r.accountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__n", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.accountNic != nil { + t := *r.accountNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nic", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.accountNie != nil { + t := *r.accountNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nie", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.accountNiew != nil { + t := *r.accountNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__niew", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.accountNisw != nil { + t := *r.accountNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nisw", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.portSpeed != nil { - t := *r.portSpeed + 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, "port_speed", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.portSpeedEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__empty", r.portSpeedEmpty, "") - } - if r.portSpeedGt != nil { - t := *r.portSpeedGt + 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, "port_speed__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.portSpeedGte != nil { - t := *r.portSpeedGte + 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, "port_speed__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.portSpeedLt != nil { - t := *r.portSpeedLt + 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, "port_speed__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.portSpeedLte != nil { - t := *r.portSpeedLte + 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, "port_speed__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.portSpeedN != nil { - t := *r.portSpeedN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__n", t, "multi") - } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.ppInfo != nil { - t := *r.ppInfo + 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, "pp_info", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.ppInfoEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__empty", r.ppInfoEmpty, "") + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.ppInfoIc != nil { - t := *r.ppInfoIc + 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, "pp_info__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.ppInfoIe != nil { - t := *r.ppInfoIe + 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, "pp_info__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.ppInfoIew != nil { - t := *r.ppInfoIew + 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, "pp_info__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.ppInfoIsw != nil { - t := *r.ppInfoIsw + 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, "pp_info__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.ppInfoN != nil { - t := *r.ppInfoN + 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, "pp_info__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.ppInfoNic != nil { - t := *r.ppInfoNic + 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, "pp_info__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.ppInfoNie != nil { - t := *r.ppInfoNie + 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, "pp_info__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.ppInfoNiew != nil { - t := *r.ppInfoNiew + 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, "pp_info__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.ppInfoNisw != nil { - t := *r.ppInfoNisw + 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, "pp_info__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pp_info__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.provider != nil { - t := *r.provider + 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, "provider", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.providerN != nil { - t := *r.providerN + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "provider__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.providerId != nil { - t := *r.providerId + 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, "provider_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.providerIdN != nil { - t := *r.providerIdN + 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, "provider_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.providerNetworkId != nil { - t := *r.providerNetworkId + 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, "provider_network_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.providerNetworkIdN != nil { - t := *r.providerNetworkIdN + 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, "provider_network_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.termSide != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "term_side", r.termSide, "") - } - if r.termSideN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "term_side__n", r.termSideN, "") - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.upstreamSpeed != nil { - t := *r.upstreamSpeed + 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, "upstream_speed", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.upstreamSpeedEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__empty", r.upstreamSpeedEmpty, "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.upstreamSpeedGt != nil { - t := *r.upstreamSpeedGt + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "upstream_speed__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.upstreamSpeedGte != nil { - t := *r.upstreamSpeedGte + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "upstream_speed__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.upstreamSpeedLt != nil { - t := *r.upstreamSpeedLt + 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, "upstream_speed__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.upstreamSpeedLte != nil { - t := *r.upstreamSpeedLte + 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, "upstream_speed__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.upstreamSpeedN != nil { - t := *r.upstreamSpeedN + 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, "upstream_speed__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.xconnectId != nil { - t := *r.xconnectId + 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, "xconnect_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.xconnectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__empty", r.xconnectIdEmpty, "") - } - if r.xconnectIdIc != nil { - t := *r.xconnectIdIc + 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, "xconnect_id__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.xconnectIdIe != nil { - t := *r.xconnectIdIe + 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, "xconnect_id__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.xconnectIdIew != nil { - t := *r.xconnectIdIew + 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, "xconnect_id__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.xconnectIdIsw != nil { - t := *r.xconnectIdIsw + 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, "xconnect_id__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.xconnectIdN != nil { - t := *r.xconnectIdN + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.provider != nil { + t := *r.provider 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") } } - if r.xconnectIdNic != nil { - t := *r.xconnectIdNic + if r.providerN != nil { + t := *r.providerN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "form", "multi") } } - if r.xconnectIdNie != nil { - t := *r.xconnectIdNie + if r.providerId != nil { + t := *r.providerId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") } } - if r.xconnectIdNiew != nil { - t := *r.xconnectIdNiew + if r.providerIdN != nil { + t := *r.providerIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "form", "multi") } } - if r.xconnectIdNisw != nil { - t := *r.xconnectIdNisw + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "xconnect_id__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nisw", t, "multi") - } - } - // 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(), + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitTerminationsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedCircuitTerminationRequest *PatchedCircuitTerminationRequest -} - -func (r ApiCircuitsCircuitTerminationsPartialUpdateRequest) PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest PatchedCircuitTerminationRequest) ApiCircuitsCircuitTerminationsPartialUpdateRequest { - r.patchedCircuitTerminationRequest = &patchedCircuitTerminationRequest - return r -} - -func (r ApiCircuitsCircuitTerminationsPartialUpdateRequest) Execute() (*CircuitTermination, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsPartialUpdateExecute(r) -} - -/* -CircuitsCircuitTerminationsPartialUpdate Method for CircuitsCircuitTerminationsPartialUpdate - -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 -*/ -func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPartialUpdateRequest { - return ApiCircuitsCircuitTerminationsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, } -} - -// Execute executes the request -// -// @return CircuitTermination -func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r ApiCircuitsCircuitTerminationsPartialUpdateRequest) (*CircuitTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - - localVarPath := localBasePath + "/api/circuits/circuit-terminations/{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"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2333,8 +15781,6 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedCircuitTerminationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2386,50 +15832,55 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r A return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTerminationsPathsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsProviderAccountsPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedProviderAccountRequest *PatchedProviderAccountRequest } -func (r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsPathsRetrieveExecute(r) +func (r ApiCircuitsProviderAccountsPartialUpdateRequest) PatchedProviderAccountRequest(patchedProviderAccountRequest PatchedProviderAccountRequest) ApiCircuitsProviderAccountsPartialUpdateRequest { + r.patchedProviderAccountRequest = &patchedProviderAccountRequest + return r +} + +func (r ApiCircuitsProviderAccountsPartialUpdateRequest) Execute() (*ProviderAccount, *http.Response, error) { + return r.ApiService.CircuitsProviderAccountsPartialUpdateExecute(r) } /* -CircuitsCircuitTerminationsPathsRetrieve Method for CircuitsCircuitTerminationsPathsRetrieve +CircuitsProviderAccountsPartialUpdate Method for CircuitsProviderAccountsPartialUpdate -Return all CablePaths which traverse a given pass-through port. +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 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 provider account. + @return ApiCircuitsProviderAccountsPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPathsRetrieveRequest { - return ApiCircuitsCircuitTerminationsPathsRetrieveRequest{ +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 CircuitTermination -func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) (*CircuitTermination, *http.Response, error) { +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiCircuitsProviderAccountsPartialUpdateRequest) (*ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPathsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-terminations/{id}/paths/" + localVarPath := localBasePath + "/api/circuits/provider-accounts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -2437,7 +15888,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r A localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2453,6 +15904,8 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r A if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedProviderAccountRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2504,50 +15957,49 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r A return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTerminationsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsProviderAccountsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsCircuitTerminationsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsRetrieveExecute(r) +func (r ApiCircuitsProviderAccountsRetrieveRequest) Execute() (*ProviderAccount, *http.Response, error) { + return r.ApiService.CircuitsProviderAccountsRetrieveExecute(r) } /* -CircuitsCircuitTerminationsRetrieve Method for CircuitsCircuitTerminationsRetrieve +CircuitsProviderAccountsRetrieve Method for CircuitsProviderAccountsRetrieve -Get a circuit termination object. +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 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 provider account. + @return ApiCircuitsProviderAccountsRetrieveRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsRetrieveRequest { - return ApiCircuitsCircuitTerminationsRetrieveRequest{ +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 CircuitTermination -func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCircuitsCircuitTerminationsRetrieveRequest) (*CircuitTermination, *http.Response, error) { +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieveExecute(r ApiCircuitsProviderAccountsRetrieveRequest) (*ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-terminations/{id}/" + localVarPath := localBasePath + "/api/circuits/provider-accounts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -2622,63 +16074,62 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCir return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTerminationsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - circuitTerminationRequest *CircuitTerminationRequest +type ApiCircuitsProviderAccountsUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + providerAccountRequest *ProviderAccountRequest } -func (r ApiCircuitsCircuitTerminationsUpdateRequest) CircuitTerminationRequest(circuitTerminationRequest CircuitTerminationRequest) ApiCircuitsCircuitTerminationsUpdateRequest { - r.circuitTerminationRequest = &circuitTerminationRequest +func (r ApiCircuitsProviderAccountsUpdateRequest) ProviderAccountRequest(providerAccountRequest ProviderAccountRequest) ApiCircuitsProviderAccountsUpdateRequest { + r.providerAccountRequest = &providerAccountRequest return r } -func (r ApiCircuitsCircuitTerminationsUpdateRequest) Execute() (*CircuitTermination, *http.Response, error) { - return r.ApiService.CircuitsCircuitTerminationsUpdateExecute(r) +func (r ApiCircuitsProviderAccountsUpdateRequest) Execute() (*ProviderAccount, *http.Response, error) { + return r.ApiService.CircuitsProviderAccountsUpdateExecute(r) } /* -CircuitsCircuitTerminationsUpdate Method for CircuitsCircuitTerminationsUpdate +CircuitsProviderAccountsUpdate Method for CircuitsProviderAccountsUpdate -Put a circuit termination object. +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 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 provider account. + @return ApiCircuitsProviderAccountsUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsUpdateRequest { - return ApiCircuitsCircuitTerminationsUpdateRequest{ +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 CircuitTermination -func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircuitsCircuitTerminationsUpdateRequest) (*CircuitTermination, *http.Response, error) { +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuitsProviderAccountsUpdateRequest) (*ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-terminations/{id}/" + localVarPath := localBasePath + "/api/circuits/provider-accounts/{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.circuitTerminationRequest == nil { - return localVarReturnValue, nil, reportError("circuitTerminationRequest is required and must be specified") + if r.providerAccountRequest == nil { + return localVarReturnValue, nil, reportError("providerAccountRequest is required and must be specified") } // to determine the Content-Type header @@ -2699,7 +16150,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitTerminationRequest + localVarPostBody = r.providerAccountRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2751,56 +16202,56 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTypeRequest *[]CircuitTypeRequest +type ApiCircuitsProviderNetworksBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerNetworkRequest *[]ProviderNetworkRequest } -func (r ApiCircuitsCircuitTypesBulkDestroyRequest) CircuitTypeRequest(circuitTypeRequest []CircuitTypeRequest) ApiCircuitsCircuitTypesBulkDestroyRequest { - r.circuitTypeRequest = &circuitTypeRequest +func (r ApiCircuitsProviderNetworksBulkDestroyRequest) ProviderNetworkRequest(providerNetworkRequest []ProviderNetworkRequest) ApiCircuitsProviderNetworksBulkDestroyRequest { + r.providerNetworkRequest = &providerNetworkRequest return r } -func (r ApiCircuitsCircuitTypesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitTypesBulkDestroyExecute(r) +func (r ApiCircuitsProviderNetworksBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsProviderNetworksBulkDestroyExecute(r) } /* -CircuitsCircuitTypesBulkDestroy Method for CircuitsCircuitTypesBulkDestroy +CircuitsProviderNetworksBulkDestroy Method for CircuitsProviderNetworksBulkDestroy -Delete a list of circuit type objects. +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 ApiCircuitsCircuitTypesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksBulkDestroyRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsCircuitTypesBulkDestroyRequest { - return ApiCircuitsCircuitTypesBulkDestroyRequest{ +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroy(ctx context.Context) ApiCircuitsProviderNetworksBulkDestroyRequest { + return ApiCircuitsProviderNetworksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuitsCircuitTypesBulkDestroyRequest) (*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.CircuitsCircuitTypesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/" + localVarPath := localBasePath + "/api/circuits/provider-networks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.circuitTypeRequest == nil { - return nil, reportError("circuitTypeRequest is required and must be specified") + if r.providerNetworkRequest == nil { + return nil, reportError("providerNetworkRequest is required and must be specified") } // to determine the Content-Type header @@ -2821,7 +16272,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuit localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitTypeRequest + localVarPostBody = r.providerNetworkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2864,59 +16315,58 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuit return localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTypeRequest *[]CircuitTypeRequest +type ApiCircuitsProviderNetworksBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerNetworkRequest *[]ProviderNetworkRequest } -func (r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) CircuitTypeRequest(circuitTypeRequest []CircuitTypeRequest) ApiCircuitsCircuitTypesBulkPartialUpdateRequest { - r.circuitTypeRequest = &circuitTypeRequest +func (r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ProviderNetworkRequest(providerNetworkRequest []ProviderNetworkRequest) ApiCircuitsProviderNetworksBulkPartialUpdateRequest { + r.providerNetworkRequest = &providerNetworkRequest return r } -func (r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) Execute() ([]CircuitType, *http.Response, error) { - return r.ApiService.CircuitsCircuitTypesBulkPartialUpdateExecute(r) +func (r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) Execute() ([]ProviderNetwork, *http.Response, error) { + return r.ApiService.CircuitsProviderNetworksBulkPartialUpdateExecute(r) } /* -CircuitsCircuitTypesBulkPartialUpdate Method for CircuitsCircuitTypesBulkPartialUpdate +CircuitsProviderNetworksBulkPartialUpdate Method for CircuitsProviderNetworksBulkPartialUpdate -Patch a list of circuit type objects. +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 ApiCircuitsCircuitTypesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksBulkPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkPartialUpdateRequest { - return ApiCircuitsCircuitTypesBulkPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkPartialUpdateRequest { + return ApiCircuitsProviderNetworksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CircuitType -func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) ([]CircuitType, *http.Response, error) { +// @return []ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdateExecute(r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ([]ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/" + localVarPath := localBasePath + "/api/circuits/provider-networks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.circuitTypeRequest == nil { - return localVarReturnValue, nil, reportError("circuitTypeRequest is required and must be specified") + if r.providerNetworkRequest == nil { + return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") } // to determine the Content-Type header @@ -2937,7 +16387,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitTypeRequest + localVarPostBody = r.providerNetworkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2989,59 +16439,58 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTypeRequest *[]CircuitTypeRequest +type ApiCircuitsProviderNetworksBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerNetworkRequest *[]ProviderNetworkRequest } -func (r ApiCircuitsCircuitTypesBulkUpdateRequest) CircuitTypeRequest(circuitTypeRequest []CircuitTypeRequest) ApiCircuitsCircuitTypesBulkUpdateRequest { - r.circuitTypeRequest = &circuitTypeRequest +func (r ApiCircuitsProviderNetworksBulkUpdateRequest) ProviderNetworkRequest(providerNetworkRequest []ProviderNetworkRequest) ApiCircuitsProviderNetworksBulkUpdateRequest { + r.providerNetworkRequest = &providerNetworkRequest return r } -func (r ApiCircuitsCircuitTypesBulkUpdateRequest) Execute() ([]CircuitType, *http.Response, error) { - return r.ApiService.CircuitsCircuitTypesBulkUpdateExecute(r) +func (r ApiCircuitsProviderNetworksBulkUpdateRequest) Execute() ([]ProviderNetwork, *http.Response, error) { + return r.ApiService.CircuitsProviderNetworksBulkUpdateExecute(r) } /* -CircuitsCircuitTypesBulkUpdate Method for CircuitsCircuitTypesBulkUpdate +CircuitsProviderNetworksBulkUpdate Method for CircuitsProviderNetworksBulkUpdate -Put a list of circuit type objects. +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 ApiCircuitsCircuitTypesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksBulkUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkUpdateRequest { - return ApiCircuitsCircuitTypesBulkUpdateRequest{ +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkUpdateRequest { + return ApiCircuitsProviderNetworksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CircuitType -func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuitsCircuitTypesBulkUpdateRequest) ([]CircuitType, *http.Response, error) { +// @return []ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCircuitsProviderNetworksBulkUpdateRequest) ([]ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/" + localVarPath := localBasePath + "/api/circuits/provider-networks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.circuitTypeRequest == nil { - return localVarReturnValue, nil, reportError("circuitTypeRequest is required and must be specified") + if r.providerNetworkRequest == nil { + return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") } // to determine the Content-Type header @@ -3062,7 +16511,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitTypeRequest + localVarPostBody = r.providerNetworkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3114,59 +16563,58 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitTypeRequest *CircuitTypeRequest +type ApiCircuitsProviderNetworksCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerNetworkRequest *ProviderNetworkRequest } -func (r ApiCircuitsCircuitTypesCreateRequest) CircuitTypeRequest(circuitTypeRequest CircuitTypeRequest) ApiCircuitsCircuitTypesCreateRequest { - r.circuitTypeRequest = &circuitTypeRequest +func (r ApiCircuitsProviderNetworksCreateRequest) ProviderNetworkRequest(providerNetworkRequest ProviderNetworkRequest) ApiCircuitsProviderNetworksCreateRequest { + r.providerNetworkRequest = &providerNetworkRequest return r } -func (r ApiCircuitsCircuitTypesCreateRequest) Execute() (*CircuitType, *http.Response, error) { - return r.ApiService.CircuitsCircuitTypesCreateExecute(r) +func (r ApiCircuitsProviderNetworksCreateRequest) Execute() (*ProviderNetwork, *http.Response, error) { + return r.ApiService.CircuitsProviderNetworksCreateExecute(r) } /* -CircuitsCircuitTypesCreate Method for CircuitsCircuitTypesCreate +CircuitsProviderNetworksCreate Method for CircuitsProviderNetworksCreate -Post a list of circuit type objects. +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 ApiCircuitsCircuitTypesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksCreateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesCreate(ctx context.Context) ApiCircuitsCircuitTypesCreateRequest { - return ApiCircuitsCircuitTypesCreateRequest{ +func (a *CircuitsAPIService) CircuitsProviderNetworksCreate(ctx context.Context) ApiCircuitsProviderNetworksCreateRequest { + return ApiCircuitsProviderNetworksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CircuitType -func (a *CircuitsAPIService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCircuitTypesCreateRequest) (*CircuitType, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuitsProviderNetworksCreateRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/" + localVarPath := localBasePath + "/api/circuits/provider-networks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.circuitTypeRequest == nil { - return localVarReturnValue, nil, reportError("circuitTypeRequest is required and must be specified") + if r.providerNetworkRequest == nil { + return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") } // to determine the Content-Type header @@ -3187,7 +16635,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCirc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitTypeRequest + localVarPostBody = r.providerNetworkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3239,47 +16687,47 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCirc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsProviderNetworksDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsCircuitTypesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitTypesDestroyExecute(r) +func (r ApiCircuitsProviderNetworksDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsProviderNetworksDestroyExecute(r) } /* -CircuitsCircuitTypesDestroy Method for CircuitsCircuitTypesDestroy +CircuitsProviderNetworksDestroy Method for CircuitsProviderNetworksDestroy -Delete a circuit type object. +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 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 provider network. + @return ApiCircuitsProviderNetworksDestroyRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTypesDestroyRequest { - return ApiCircuitsCircuitTypesDestroyRequest{ +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) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCircuitTypesDestroyRequest) (*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.CircuitsCircuitTypesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/{id}/" + localVarPath := localBasePath + "/api/circuits/provider-networks/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -3345,622 +16793,470 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCir return localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesListRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - 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 - 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 +type ApiCircuitsProviderNetworksListRequest struct { + ctx context.Context + ApiService CircuitsAPI + 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 -} - -func (r ApiCircuitsCircuitTypesListRequest) Color(color []string) ApiCircuitsCircuitTypesListRequest { - r.color = &color - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorEmpty(colorEmpty bool) ApiCircuitsCircuitTypesListRequest { - r.colorEmpty = &colorEmpty - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorIc(colorIc []string) ApiCircuitsCircuitTypesListRequest { - r.colorIc = &colorIc - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorIe(colorIe []string) ApiCircuitsCircuitTypesListRequest { - r.colorIe = &colorIe - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorIew(colorIew []string) ApiCircuitsCircuitTypesListRequest { - r.colorIew = &colorIew - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorIsw(colorIsw []string) ApiCircuitsCircuitTypesListRequest { - r.colorIsw = &colorIsw - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorN(colorN []string) ApiCircuitsCircuitTypesListRequest { - r.colorN = &colorN - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorNic(colorNic []string) ApiCircuitsCircuitTypesListRequest { - r.colorNic = &colorNic - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorNie(colorNie []string) ApiCircuitsCircuitTypesListRequest { - r.colorNie = &colorNie - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorNiew(colorNiew []string) ApiCircuitsCircuitTypesListRequest { - r.colorNiew = &colorNiew - return r -} - -func (r ApiCircuitsCircuitTypesListRequest) ColorNisw(colorNisw []string) ApiCircuitsCircuitTypesListRequest { - r.colorNisw = &colorNisw - return r + 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 } -func (r ApiCircuitsCircuitTypesListRequest) Created(created []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Created(created []time.Time) ApiCircuitsProviderNetworksListRequest { r.created = &created return r } -func (r ApiCircuitsCircuitTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProviderNetworksListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiCircuitsCircuitTypesListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProviderNetworksListRequest { r.createdGt = &createdGt return r } -func (r ApiCircuitsCircuitTypesListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsProviderNetworksListRequest { r.createdGte = &createdGte return r } -func (r ApiCircuitsCircuitTypesListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsProviderNetworksListRequest { r.createdLt = &createdLt return r } -func (r ApiCircuitsCircuitTypesListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsProviderNetworksListRequest { r.createdLte = &createdLte return r } -func (r ApiCircuitsCircuitTypesListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) CreatedN(createdN []time.Time) ApiCircuitsProviderNetworksListRequest { r.createdN = &createdN return r } -func (r ApiCircuitsCircuitTypesListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsProviderNetworksListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiCircuitsCircuitTypesListRequest) Description(description []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Description(description []string) ApiCircuitsProviderNetworksListRequest { r.description = &description return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsProviderNetworksListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsProviderNetworksListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsProviderNetworksListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsProviderNetworksListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsProviderNetworksListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionN(descriptionN []string) ApiCircuitsProviderNetworksListRequest { r.descriptionN = &descriptionN return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsProviderNetworksListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsProviderNetworksListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsProviderNetworksListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiCircuitsCircuitTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsProviderNetworksListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiCircuitsCircuitTypesListRequest) Id(id []int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Id(id []int32) ApiCircuitsProviderNetworksListRequest { r.id = &id return r } -func (r ApiCircuitsCircuitTypesListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) IdEmpty(idEmpty bool) ApiCircuitsProviderNetworksListRequest { r.idEmpty = &idEmpty return r } -func (r ApiCircuitsCircuitTypesListRequest) IdGt(idGt []int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) IdGt(idGt []int32) ApiCircuitsProviderNetworksListRequest { r.idGt = &idGt return r } -func (r ApiCircuitsCircuitTypesListRequest) IdGte(idGte []int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) IdGte(idGte []int32) ApiCircuitsProviderNetworksListRequest { r.idGte = &idGte return r } -func (r ApiCircuitsCircuitTypesListRequest) IdLt(idLt []int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) IdLt(idLt []int32) ApiCircuitsProviderNetworksListRequest { r.idLt = &idLt return r } -func (r ApiCircuitsCircuitTypesListRequest) IdLte(idLte []int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) IdLte(idLte []int32) ApiCircuitsProviderNetworksListRequest { r.idLte = &idLte return r } -func (r ApiCircuitsCircuitTypesListRequest) IdN(idN []int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) IdN(idN []int32) ApiCircuitsProviderNetworksListRequest { r.idN = &idN return r } -func (r ApiCircuitsCircuitTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiCircuitsCircuitTypesListRequest) Limit(limit int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Limit(limit int32) ApiCircuitsProviderNetworksListRequest { r.limit = &limit return r } -func (r ApiCircuitsCircuitTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProviderNetworksListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiCircuitsCircuitTypesListRequest) Name(name []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Name(name []string) ApiCircuitsProviderNetworksListRequest { r.name = &name return r } -func (r ApiCircuitsCircuitTypesListRequest) NameEmpty(nameEmpty bool) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameEmpty(nameEmpty bool) ApiCircuitsProviderNetworksListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiCircuitsCircuitTypesListRequest) NameIc(nameIc []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameIc(nameIc []string) ApiCircuitsProviderNetworksListRequest { r.nameIc = &nameIc return r } -func (r ApiCircuitsCircuitTypesListRequest) NameIe(nameIe []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameIe(nameIe []string) ApiCircuitsProviderNetworksListRequest { r.nameIe = &nameIe return r } -func (r ApiCircuitsCircuitTypesListRequest) NameIew(nameIew []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameIew(nameIew []string) ApiCircuitsProviderNetworksListRequest { r.nameIew = &nameIew return r } -func (r ApiCircuitsCircuitTypesListRequest) NameIsw(nameIsw []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameIsw(nameIsw []string) ApiCircuitsProviderNetworksListRequest { r.nameIsw = &nameIsw return r } -func (r ApiCircuitsCircuitTypesListRequest) NameN(nameN []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameN(nameN []string) ApiCircuitsProviderNetworksListRequest { r.nameN = &nameN return r } -func (r ApiCircuitsCircuitTypesListRequest) NameNic(nameNic []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameNic(nameNic []string) ApiCircuitsProviderNetworksListRequest { r.nameNic = &nameNic return r } -func (r ApiCircuitsCircuitTypesListRequest) NameNie(nameNie []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameNie(nameNie []string) ApiCircuitsProviderNetworksListRequest { r.nameNie = &nameNie return r } -func (r ApiCircuitsCircuitTypesListRequest) NameNiew(nameNiew []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameNiew(nameNiew []string) ApiCircuitsProviderNetworksListRequest { r.nameNiew = &nameNiew return r } -func (r ApiCircuitsCircuitTypesListRequest) NameNisw(nameNisw []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) NameNisw(nameNisw []string) ApiCircuitsProviderNetworksListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiCircuitsCircuitTypesListRequest) Offset(offset int32) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Offset(offset int32) ApiCircuitsProviderNetworksListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiCircuitsCircuitTypesListRequest) Ordering(ordering string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Ordering(ordering string) ApiCircuitsProviderNetworksListRequest { r.ordering = &ordering return r } +// Provider (slug) +func (r ApiCircuitsProviderNetworksListRequest) Provider(provider []string) ApiCircuitsProviderNetworksListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiCircuitsProviderNetworksListRequest) ProviderN(providerN []string) ApiCircuitsProviderNetworksListRequest { + r.providerN = &providerN + return r +} + +// Provider (ID) +func (r ApiCircuitsProviderNetworksListRequest) ProviderId(providerId []int32) ApiCircuitsProviderNetworksListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiCircuitsProviderNetworksListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsProviderNetworksListRequest { + r.providerIdN = &providerIdN + return r +} + // Search -func (r ApiCircuitsCircuitTypesListRequest) Q(q string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Q(q string) ApiCircuitsProviderNetworksListRequest { r.q = &q return r } -func (r ApiCircuitsCircuitTypesListRequest) Slug(slug []string) ApiCircuitsCircuitTypesListRequest { - r.slug = &slug +func (r ApiCircuitsProviderNetworksListRequest) ServiceId(serviceId []string) ApiCircuitsProviderNetworksListRequest { + r.serviceId = &serviceId return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsCircuitTypesListRequest { - r.slugEmpty = &slugEmpty +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdEmpty(serviceIdEmpty bool) ApiCircuitsProviderNetworksListRequest { + r.serviceIdEmpty = &serviceIdEmpty return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugIc(slugIc []string) ApiCircuitsCircuitTypesListRequest { - r.slugIc = &slugIc +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIc(serviceIdIc []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdIc = &serviceIdIc return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugIe(slugIe []string) ApiCircuitsCircuitTypesListRequest { - r.slugIe = &slugIe +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIe(serviceIdIe []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdIe = &serviceIdIe return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugIew(slugIew []string) ApiCircuitsCircuitTypesListRequest { - r.slugIew = &slugIew +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIew(serviceIdIew []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdIew = &serviceIdIew return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugIsw(slugIsw []string) ApiCircuitsCircuitTypesListRequest { - r.slugIsw = &slugIsw +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIsw(serviceIdIsw []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdIsw = &serviceIdIsw return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugN(slugN []string) ApiCircuitsCircuitTypesListRequest { - r.slugN = &slugN +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdN(serviceIdN []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdN = &serviceIdN return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugNic(slugNic []string) ApiCircuitsCircuitTypesListRequest { - r.slugNic = &slugNic +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNic(serviceIdNic []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdNic = &serviceIdNic return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugNie(slugNie []string) ApiCircuitsCircuitTypesListRequest { - r.slugNie = &slugNie +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNie(serviceIdNie []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdNie = &serviceIdNie return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugNiew(slugNiew []string) ApiCircuitsCircuitTypesListRequest { - r.slugNiew = &slugNiew +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNiew(serviceIdNiew []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdNiew = &serviceIdNiew return r } -func (r ApiCircuitsCircuitTypesListRequest) SlugNisw(slugNisw []string) ApiCircuitsCircuitTypesListRequest { - r.slugNisw = &slugNisw +func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNisw(serviceIdNisw []string) ApiCircuitsProviderNetworksListRequest { + r.serviceIdNisw = &serviceIdNisw return r } -func (r ApiCircuitsCircuitTypesListRequest) Tag(tag []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) Tag(tag []string) ApiCircuitsProviderNetworksListRequest { r.tag = &tag return r } -func (r ApiCircuitsCircuitTypesListRequest) TagN(tagN []string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) TagN(tagN []string) ApiCircuitsProviderNetworksListRequest { r.tagN = &tagN return r } -func (r ApiCircuitsCircuitTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitTypesListRequest { +func (r ApiCircuitsProviderNetworksListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProviderNetworksListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiCircuitsCircuitTypesListRequest) Execute() (*PaginatedCircuitTypeList, *http.Response, error) { - return r.ApiService.CircuitsCircuitTypesListExecute(r) +func (r ApiCircuitsProviderNetworksListRequest) Execute() (*PaginatedProviderNetworkList, *http.Response, error) { + return r.ApiService.CircuitsProviderNetworksListExecute(r) } /* -CircuitsCircuitTypesList Method for CircuitsCircuitTypesList - -Get a list of circuit type objects. +CircuitsProviderNetworksList Method for CircuitsProviderNetworksList - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTypesListRequest +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 */ -func (a *CircuitsAPIService) CircuitsCircuitTypesList(ctx context.Context) ApiCircuitsCircuitTypesListRequest { - return ApiCircuitsCircuitTypesListRequest{ +func (a *CircuitsAPIService) CircuitsProviderNetworksList(ctx context.Context) ApiCircuitsProviderNetworksListRequest { + return ApiCircuitsProviderNetworksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCircuitTypeList -func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircuitTypesListRequest) (*PaginatedCircuitTypeList, *http.Response, error) { +// @return PaginatedProviderNetworkList +func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsProviderNetworksListRequest) (*PaginatedProviderNetworkList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedProviderNetworkList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/" + localVarPath := localBasePath + "/api/circuits/provider-networks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.color != nil { - t := *r.color - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") - } - } - if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") - } - if r.colorIc != nil { - t := *r.colorIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") - } - } - if r.colorIe != nil { - t := *r.colorIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") - } - } - if r.colorIew != nil { - t := *r.colorIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") - } - } - if r.colorIsw != nil { - t := *r.colorIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") - } - } - if r.colorN != nil { - t := *r.colorN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") - } - } - if r.colorNic != nil { - t := *r.colorNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") - } - } - if r.colorNie != nil { - t := *r.colorNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") - } - } - if r.colorNiew != nil { - t := *r.colorNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") - } - } - if r.colorNisw != nil { - t := *r.colorNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -3968,10 +17264,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -3979,10 +17275,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -3990,10 +17286,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -4001,10 +17297,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -4012,10 +17308,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -4023,38 +17319,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -4062,10 +17358,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -4073,10 +17369,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -4084,10 +17380,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -4095,10 +17391,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -4106,10 +17402,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -4117,10 +17413,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -4128,10 +17424,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -4139,10 +17435,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -4150,24 +17446,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -4175,10 +17471,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -4186,10 +17482,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -4197,10 +17493,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -4208,10 +17504,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -4219,10 +17515,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -4230,10 +17526,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -4241,10 +17537,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -4252,10 +17548,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -4263,10 +17559,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -4274,10 +17570,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -4285,41 +17581,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -4327,10 +17623,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -4338,10 +17634,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -4349,10 +17645,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -4360,10 +17656,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -4371,10 +17667,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -4382,10 +17678,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -4393,10 +17689,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -4404,132 +17700,176 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") + } + } + if r.providerN != nil { + t := *r.providerN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "form", "multi") + } + } + if r.providerId != nil { + t := *r.providerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") + } + } + if r.providerIdN != nil { + t := *r.providerIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "form", "multi") + } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.slug != nil { - t := *r.slug + if r.serviceId != nil { + t := *r.serviceId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + if r.serviceIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__empty", r.serviceIdEmpty, "form", "") } - if r.slugIc != nil { - t := *r.slugIc + if r.serviceIdIc != nil { + t := *r.serviceIdIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ic", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + if r.serviceIdIe != nil { + t := *r.serviceIdIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ie", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + if r.serviceIdIew != nil { + t := *r.serviceIdIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__iew", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + if r.serviceIdIsw != nil { + t := *r.serviceIdIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__isw", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + if r.serviceIdN != nil { + t := *r.serviceIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + if r.serviceIdNic != nil { + t := *r.serviceIdNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nic", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + if r.serviceIdNie != nil { + t := *r.serviceIdNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nie", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.serviceIdNiew != nil { + t := *r.serviceIdNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__niew", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.serviceIdNisw != nil { + t := *r.serviceIdNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nisw", t, "form", "multi") } } if r.tag != nil { @@ -4537,10 +17877,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -4548,14 +17888,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4625,56 +17965,55 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedCircuitTypeRequest *PatchedCircuitTypeRequest +type ApiCircuitsProviderNetworksPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedProviderNetworkRequest *PatchedProviderNetworkRequest } -func (r ApiCircuitsCircuitTypesPartialUpdateRequest) PatchedCircuitTypeRequest(patchedCircuitTypeRequest PatchedCircuitTypeRequest) ApiCircuitsCircuitTypesPartialUpdateRequest { - r.patchedCircuitTypeRequest = &patchedCircuitTypeRequest +func (r ApiCircuitsProviderNetworksPartialUpdateRequest) PatchedProviderNetworkRequest(patchedProviderNetworkRequest PatchedProviderNetworkRequest) ApiCircuitsProviderNetworksPartialUpdateRequest { + r.patchedProviderNetworkRequest = &patchedProviderNetworkRequest return r } -func (r ApiCircuitsCircuitTypesPartialUpdateRequest) Execute() (*CircuitType, *http.Response, error) { - return r.ApiService.CircuitsCircuitTypesPartialUpdateExecute(r) +func (r ApiCircuitsProviderNetworksPartialUpdateRequest) Execute() (*ProviderNetwork, *http.Response, error) { + return r.ApiService.CircuitsProviderNetworksPartialUpdateExecute(r) } /* -CircuitsCircuitTypesPartialUpdate Method for CircuitsCircuitTypesPartialUpdate +CircuitsProviderNetworksPartialUpdate Method for CircuitsProviderNetworksPartialUpdate -Patch a circuit type object. +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 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 provider network. + @return ApiCircuitsProviderNetworksPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesPartialUpdateRequest { - return ApiCircuitsCircuitTypesPartialUpdateRequest{ +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 CircuitType -func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircuitsCircuitTypesPartialUpdateRequest) (*CircuitType, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdateExecute(r ApiCircuitsProviderNetworksPartialUpdateRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/{id}/" + localVarPath := localBasePath + "/api/circuits/provider-networks/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -4699,7 +18038,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedCircuitTypeRequest + localVarPostBody = r.patchedProviderNetworkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4751,50 +18090,49 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsProviderNetworksRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsCircuitTypesRetrieveRequest) Execute() (*CircuitType, *http.Response, error) { - return r.ApiService.CircuitsCircuitTypesRetrieveExecute(r) +func (r ApiCircuitsProviderNetworksRetrieveRequest) Execute() (*ProviderNetwork, *http.Response, error) { + return r.ApiService.CircuitsProviderNetworksRetrieveExecute(r) } /* -CircuitsCircuitTypesRetrieve Method for CircuitsCircuitTypesRetrieve +CircuitsProviderNetworksRetrieve Method for CircuitsProviderNetworksRetrieve -Get a circuit type object. +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 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 provider network. + @return ApiCircuitsProviderNetworksRetrieveRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTypesRetrieveRequest { - return ApiCircuitsCircuitTypesRetrieveRequest{ +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 CircuitType -func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCircuitTypesRetrieveRequest) (*CircuitType, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieveExecute(r ApiCircuitsProviderNetworksRetrieveRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/{id}/" + localVarPath := localBasePath + "/api/circuits/provider-networks/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -4869,63 +18207,62 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitTypesUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - circuitTypeRequest *CircuitTypeRequest +type ApiCircuitsProviderNetworksUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + providerNetworkRequest *ProviderNetworkRequest } -func (r ApiCircuitsCircuitTypesUpdateRequest) CircuitTypeRequest(circuitTypeRequest CircuitTypeRequest) ApiCircuitsCircuitTypesUpdateRequest { - r.circuitTypeRequest = &circuitTypeRequest +func (r ApiCircuitsProviderNetworksUpdateRequest) ProviderNetworkRequest(providerNetworkRequest ProviderNetworkRequest) ApiCircuitsProviderNetworksUpdateRequest { + r.providerNetworkRequest = &providerNetworkRequest return r } -func (r ApiCircuitsCircuitTypesUpdateRequest) Execute() (*CircuitType, *http.Response, error) { - return r.ApiService.CircuitsCircuitTypesUpdateExecute(r) +func (r ApiCircuitsProviderNetworksUpdateRequest) Execute() (*ProviderNetwork, *http.Response, error) { + return r.ApiService.CircuitsProviderNetworksUpdateExecute(r) } /* -CircuitsCircuitTypesUpdate Method for CircuitsCircuitTypesUpdate +CircuitsProviderNetworksUpdate Method for CircuitsProviderNetworksUpdate -Put a circuit type object. +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 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 provider network. + @return ApiCircuitsProviderNetworksUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesUpdateRequest { - return ApiCircuitsCircuitTypesUpdateRequest{ +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 CircuitType -func (a *CircuitsAPIService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCircuitTypesUpdateRequest) (*CircuitType, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuitsProviderNetworksUpdateRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuit-types/{id}/" + localVarPath := localBasePath + "/api/circuits/provider-networks/{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.circuitTypeRequest == nil { - return localVarReturnValue, nil, reportError("circuitTypeRequest is required and must be specified") + if r.providerNetworkRequest == nil { + return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") } // to determine the Content-Type header @@ -4946,7 +18283,7 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCirc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitTypeRequest + localVarPostBody = r.providerNetworkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4998,56 +18335,56 @@ func (a *CircuitsAPIService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCirc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitRequest *[]CircuitRequest +type ApiCircuitsProvidersBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerRequest *[]ProviderRequest } -func (r ApiCircuitsCircuitsBulkDestroyRequest) CircuitRequest(circuitRequest []CircuitRequest) ApiCircuitsCircuitsBulkDestroyRequest { - r.circuitRequest = &circuitRequest +func (r ApiCircuitsProvidersBulkDestroyRequest) ProviderRequest(providerRequest []ProviderRequest) ApiCircuitsProvidersBulkDestroyRequest { + r.providerRequest = &providerRequest return r } -func (r ApiCircuitsCircuitsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitsBulkDestroyExecute(r) +func (r ApiCircuitsProvidersBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsProvidersBulkDestroyExecute(r) } /* -CircuitsCircuitsBulkDestroy Method for CircuitsCircuitsBulkDestroy +CircuitsProvidersBulkDestroy Method for CircuitsProvidersBulkDestroy -Delete a list of circuit objects. +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 ApiCircuitsCircuitsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersBulkDestroyRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroy(ctx context.Context) ApiCircuitsCircuitsBulkDestroyRequest { - return ApiCircuitsCircuitsBulkDestroyRequest{ +func (a *CircuitsAPIService) CircuitsProvidersBulkDestroy(ctx context.Context) ApiCircuitsProvidersBulkDestroyRequest { + return ApiCircuitsProvidersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCircuitsBulkDestroyRequest) (*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.CircuitsCircuitsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/" + localVarPath := localBasePath + "/api/circuits/providers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.circuitRequest == nil { - return nil, reportError("circuitRequest is required and must be specified") + if r.providerRequest == nil { + return nil, reportError("providerRequest is required and must be specified") } // to determine the Content-Type header @@ -5068,7 +18405,7 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitRequest + localVarPostBody = r.providerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5111,59 +18448,58 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCir return localVarHTTPResponse, nil } -type ApiCircuitsCircuitsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitRequest *[]CircuitRequest +type ApiCircuitsProvidersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerRequest *[]ProviderRequest } -func (r ApiCircuitsCircuitsBulkPartialUpdateRequest) CircuitRequest(circuitRequest []CircuitRequest) ApiCircuitsCircuitsBulkPartialUpdateRequest { - r.circuitRequest = &circuitRequest +func (r ApiCircuitsProvidersBulkPartialUpdateRequest) ProviderRequest(providerRequest []ProviderRequest) ApiCircuitsProvidersBulkPartialUpdateRequest { + r.providerRequest = &providerRequest return r } -func (r ApiCircuitsCircuitsBulkPartialUpdateRequest) Execute() ([]Circuit, *http.Response, error) { - return r.ApiService.CircuitsCircuitsBulkPartialUpdateExecute(r) +func (r ApiCircuitsProvidersBulkPartialUpdateRequest) Execute() ([]Provider, *http.Response, error) { + return r.ApiService.CircuitsProvidersBulkPartialUpdateExecute(r) } /* -CircuitsCircuitsBulkPartialUpdate Method for CircuitsCircuitsBulkPartialUpdate +CircuitsProvidersBulkPartialUpdate Method for CircuitsProvidersBulkPartialUpdate -Patch a list of circuit objects. +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 ApiCircuitsCircuitsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersBulkPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitsBulkPartialUpdateRequest { - return ApiCircuitsCircuitsBulkPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdate(ctx context.Context) ApiCircuitsProvidersBulkPartialUpdateRequest { + return ApiCircuitsProvidersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Circuit -func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircuitsCircuitsBulkPartialUpdateRequest) ([]Circuit, *http.Response, error) { +// @return []Provider +func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCircuitsProvidersBulkPartialUpdateRequest) ([]Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Circuit + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/" + localVarPath := localBasePath + "/api/circuits/providers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.circuitRequest == nil { - return localVarReturnValue, nil, reportError("circuitRequest is required and must be specified") + if r.providerRequest == nil { + return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") } // to determine the Content-Type header @@ -5184,7 +18520,7 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitRequest + localVarPostBody = r.providerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5236,59 +18572,58 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitRequest *[]CircuitRequest +type ApiCircuitsProvidersBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerRequest *[]ProviderRequest } -func (r ApiCircuitsCircuitsBulkUpdateRequest) CircuitRequest(circuitRequest []CircuitRequest) ApiCircuitsCircuitsBulkUpdateRequest { - r.circuitRequest = &circuitRequest +func (r ApiCircuitsProvidersBulkUpdateRequest) ProviderRequest(providerRequest []ProviderRequest) ApiCircuitsProvidersBulkUpdateRequest { + r.providerRequest = &providerRequest return r } -func (r ApiCircuitsCircuitsBulkUpdateRequest) Execute() ([]Circuit, *http.Response, error) { - return r.ApiService.CircuitsCircuitsBulkUpdateExecute(r) +func (r ApiCircuitsProvidersBulkUpdateRequest) Execute() ([]Provider, *http.Response, error) { + return r.ApiService.CircuitsProvidersBulkUpdateExecute(r) } /* -CircuitsCircuitsBulkUpdate Method for CircuitsCircuitsBulkUpdate +CircuitsProvidersBulkUpdate Method for CircuitsProvidersBulkUpdate -Put a list of circuit objects. +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 ApiCircuitsCircuitsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersBulkUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdate(ctx context.Context) ApiCircuitsCircuitsBulkUpdateRequest { - return ApiCircuitsCircuitsBulkUpdateRequest{ +func (a *CircuitsAPIService) CircuitsProvidersBulkUpdate(ctx context.Context) ApiCircuitsProvidersBulkUpdateRequest { + return ApiCircuitsProvidersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Circuit -func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCircuitsBulkUpdateRequest) ([]Circuit, *http.Response, error) { +// @return []Provider +func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsProvidersBulkUpdateRequest) ([]Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Circuit + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/" + localVarPath := localBasePath + "/api/circuits/providers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.circuitRequest == nil { - return localVarReturnValue, nil, reportError("circuitRequest is required and must be specified") + if r.providerRequest == nil { + return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") } // to determine the Content-Type header @@ -5309,7 +18644,7 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCirc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.circuitRequest + localVarPostBody = r.providerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5361,59 +18696,58 @@ func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCirc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitsCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - writableCircuitRequest *WritableCircuitRequest +type ApiCircuitsProvidersCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + providerRequest *ProviderRequest } -func (r ApiCircuitsCircuitsCreateRequest) WritableCircuitRequest(writableCircuitRequest WritableCircuitRequest) ApiCircuitsCircuitsCreateRequest { - r.writableCircuitRequest = &writableCircuitRequest +func (r ApiCircuitsProvidersCreateRequest) ProviderRequest(providerRequest ProviderRequest) ApiCircuitsProvidersCreateRequest { + r.providerRequest = &providerRequest return r } -func (r ApiCircuitsCircuitsCreateRequest) Execute() (*Circuit, *http.Response, error) { - return r.ApiService.CircuitsCircuitsCreateExecute(r) +func (r ApiCircuitsProvidersCreateRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.CircuitsProvidersCreateExecute(r) } /* -CircuitsCircuitsCreate Method for CircuitsCircuitsCreate +CircuitsProvidersCreate Method for CircuitsProvidersCreate -Post a list of circuit objects. +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 ApiCircuitsCircuitsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersCreateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsCreate(ctx context.Context) ApiCircuitsCircuitsCreateRequest { - return ApiCircuitsCircuitsCreateRequest{ +func (a *CircuitsAPIService) CircuitsProvidersCreate(ctx context.Context) ApiCircuitsProvidersCreateRequest { + return ApiCircuitsProvidersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Circuit -func (a *CircuitsAPIService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuitsCreateRequest) (*Circuit, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvidersCreateRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/" + localVarPath := localBasePath + "/api/circuits/providers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableCircuitRequest == nil { - return localVarReturnValue, nil, reportError("writableCircuitRequest is required and must be specified") + if r.providerRequest == nil { + return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") } // to determine the Content-Type header @@ -5434,7 +18768,7 @@ func (a *CircuitsAPIService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableCircuitRequest + localVarPostBody = r.providerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5486,47 +18820,47 @@ func (a *CircuitsAPIService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsProvidersDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsCircuitsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitsDestroyExecute(r) +func (r ApiCircuitsProvidersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsProvidersDestroyExecute(r) } /* -CircuitsCircuitsDestroy Method for CircuitsCircuitsDestroy +CircuitsProvidersDestroy Method for CircuitsProvidersDestroy -Delete a circuit object. +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 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 provider. + @return ApiCircuitsProvidersDestroyRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitsDestroyRequest { - return ApiCircuitsCircuitsDestroyRequest{ +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) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuitsDestroyRequest) (*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.CircuitsCircuitsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/{id}/" + localVarPath := localBasePath + "/api/circuits/providers/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -5592,994 +18926,619 @@ func (a *CircuitsAPIService) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuit return localVarHTTPResponse, nil } -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 - 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 - providerAccount *[]string - providerAccountN *[]string - providerAccountId *[]int32 - providerAccountIdN *[]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 - terminationAId *[]*int32 - terminationAIdN *[]*int32 - terminationDate *[]string - terminationDateEmpty *bool - terminationDateGt *[]string - terminationDateGte *[]string - terminationDateLt *[]string - terminationDateLte *[]string - terminationDateN *[]string - terminationZId *[]*int32 - terminationZIdN *[]*int32 - type_ *[]string - typeN *[]string - typeId *[]int32 - typeIdN *[]int32 - updatedByRequest *string -} - -func (r ApiCircuitsCircuitsListRequest) Cid(cid []string) ApiCircuitsCircuitsListRequest { - r.cid = &cid - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidEmpty(cidEmpty bool) ApiCircuitsCircuitsListRequest { - r.cidEmpty = &cidEmpty - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidIc(cidIc []string) ApiCircuitsCircuitsListRequest { - r.cidIc = &cidIc - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidIe(cidIe []string) ApiCircuitsCircuitsListRequest { - r.cidIe = &cidIe - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidIew(cidIew []string) ApiCircuitsCircuitsListRequest { - r.cidIew = &cidIew - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidIsw(cidIsw []string) ApiCircuitsCircuitsListRequest { - r.cidIsw = &cidIsw - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidN(cidN []string) ApiCircuitsCircuitsListRequest { - r.cidN = &cidN - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidNic(cidNic []string) ApiCircuitsCircuitsListRequest { - r.cidNic = &cidNic - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidNie(cidNie []string) ApiCircuitsCircuitsListRequest { - r.cidNie = &cidNie - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidNiew(cidNiew []string) ApiCircuitsCircuitsListRequest { - r.cidNiew = &cidNiew - return r -} - -func (r ApiCircuitsCircuitsListRequest) CidNisw(cidNisw []string) ApiCircuitsCircuitsListRequest { - r.cidNisw = &cidNisw - return r -} - -func (r ApiCircuitsCircuitsListRequest) CommitRate(commitRate []int32) ApiCircuitsCircuitsListRequest { - r.commitRate = &commitRate - 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 +type ApiCircuitsProvidersListRequest struct { + ctx context.Context + ApiService CircuitsAPI + asn *[]int64 + asnN *[]int64 + asnId *[]int32 + asnIdN *[]int32 + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + 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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + 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 } -func (r ApiCircuitsCircuitsListRequest) CommitRateGte(commitRateGte []int32) ApiCircuitsCircuitsListRequest { - r.commitRateGte = &commitRateGte +// ASN +func (r ApiCircuitsProvidersListRequest) Asn(asn []int64) ApiCircuitsProvidersListRequest { + r.asn = &asn return r } -func (r ApiCircuitsCircuitsListRequest) CommitRateLt(commitRateLt []int32) ApiCircuitsCircuitsListRequest { - r.commitRateLt = &commitRateLt +// ASN +func (r ApiCircuitsProvidersListRequest) AsnN(asnN []int64) ApiCircuitsProvidersListRequest { + r.asnN = &asnN return r } -func (r ApiCircuitsCircuitsListRequest) CommitRateLte(commitRateLte []int32) ApiCircuitsCircuitsListRequest { - r.commitRateLte = &commitRateLte +// ASN (ID) +func (r ApiCircuitsProvidersListRequest) AsnId(asnId []int32) ApiCircuitsProvidersListRequest { + r.asnId = &asnId return r } -func (r ApiCircuitsCircuitsListRequest) CommitRateN(commitRateN []int32) ApiCircuitsCircuitsListRequest { - r.commitRateN = &commitRateN +// ASN (ID) +func (r ApiCircuitsProvidersListRequest) AsnIdN(asnIdN []int32) ApiCircuitsProvidersListRequest { + r.asnIdN = &asnIdN return r } // Contact -func (r ApiCircuitsCircuitsListRequest) Contact(contact []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) Contact(contact []int32) ApiCircuitsProvidersListRequest { r.contact = &contact return r } // Contact -func (r ApiCircuitsCircuitsListRequest) ContactN(contactN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) ContactN(contactN []int32) ApiCircuitsProvidersListRequest { r.contactN = &contactN return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []string) ApiCircuitsProvidersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsProvidersListRequest { r.contactGroupN = &contactGroupN return r } // Contact Role -func (r ApiCircuitsCircuitsListRequest) ContactRole(contactRole []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) ContactRole(contactRole []int32) ApiCircuitsProvidersListRequest { r.contactRole = &contactRole return r } // Contact Role -func (r ApiCircuitsCircuitsListRequest) ContactRoleN(contactRoleN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) ContactRoleN(contactRoleN []int32) ApiCircuitsProvidersListRequest { r.contactRoleN = &contactRoleN return r } -func (r ApiCircuitsCircuitsListRequest) Created(created []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) Created(created []time.Time) ApiCircuitsProvidersListRequest { r.created = &created return r } -func (r ApiCircuitsCircuitsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProvidersListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiCircuitsCircuitsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProvidersListRequest { r.createdGt = &createdGt return r } -func (r ApiCircuitsCircuitsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsProvidersListRequest { r.createdGte = &createdGte return r } -func (r ApiCircuitsCircuitsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsProvidersListRequest { r.createdLt = &createdLt return r } -func (r ApiCircuitsCircuitsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsProvidersListRequest { r.createdLte = &createdLte return r } -func (r ApiCircuitsCircuitsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) CreatedN(createdN []time.Time) ApiCircuitsProvidersListRequest { r.createdN = &createdN return r } -func (r ApiCircuitsCircuitsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsProvidersListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiCircuitsCircuitsListRequest) Description(description []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) Description(description []string) ApiCircuitsProvidersListRequest { r.description = &description return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsProvidersListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsProvidersListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsProvidersListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsProvidersListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsProvidersListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionN(descriptionN []string) ApiCircuitsProvidersListRequest { r.descriptionN = &descriptionN return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsProvidersListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsProvidersListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsProvidersListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiCircuitsCircuitsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsProvidersListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiCircuitsCircuitsListRequest) Id(id []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) Id(id []int32) ApiCircuitsProvidersListRequest { r.id = &id return r } -func (r ApiCircuitsCircuitsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) IdEmpty(idEmpty bool) ApiCircuitsProvidersListRequest { r.idEmpty = &idEmpty return r } -func (r ApiCircuitsCircuitsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) IdGt(idGt []int32) ApiCircuitsProvidersListRequest { r.idGt = &idGt return r } -func (r ApiCircuitsCircuitsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) IdGte(idGte []int32) ApiCircuitsProvidersListRequest { r.idGte = &idGte return r } -func (r ApiCircuitsCircuitsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) IdLt(idLt []int32) ApiCircuitsProvidersListRequest { r.idLt = &idLt return r } -func (r ApiCircuitsCircuitsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) IdLte(idLte []int32) ApiCircuitsProvidersListRequest { r.idLte = &idLte return r } -func (r ApiCircuitsCircuitsListRequest) IdN(idN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) IdN(idN []int32) ApiCircuitsProvidersListRequest { r.idN = &idN return r } -func (r ApiCircuitsCircuitsListRequest) InstallDate(installDate []string) ApiCircuitsCircuitsListRequest { - r.installDate = &installDate - 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 -} - -func (r ApiCircuitsCircuitsListRequest) InstallDateGte(installDateGte []string) ApiCircuitsCircuitsListRequest { - r.installDateGte = &installDateGte - return r -} - -func (r ApiCircuitsCircuitsListRequest) InstallDateLt(installDateLt []string) ApiCircuitsCircuitsListRequest { - r.installDateLt = &installDateLt - return r -} - -func (r ApiCircuitsCircuitsListRequest) InstallDateLte(installDateLte []string) ApiCircuitsCircuitsListRequest { - r.installDateLte = &installDateLte - return r -} - -func (r ApiCircuitsCircuitsListRequest) InstallDateN(installDateN []string) ApiCircuitsCircuitsListRequest { - r.installDateN = &installDateN - return r -} - -func (r ApiCircuitsCircuitsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiCircuitsCircuitsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiCircuitsCircuitsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiCircuitsCircuitsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiCircuitsCircuitsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiCircuitsCircuitsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiCircuitsCircuitsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiCircuitsCircuitsListRequest) Limit(limit int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) Limit(limit int32) ApiCircuitsProvidersListRequest { r.limit = &limit return r } -func (r ApiCircuitsCircuitsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsProvidersListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProvidersListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// The initial index from which to return the results. -func (r ApiCircuitsCircuitsListRequest) Offset(offset int32) ApiCircuitsCircuitsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiCircuitsCircuitsListRequest) Ordering(ordering string) ApiCircuitsCircuitsListRequest { - r.ordering = &ordering - return r -} - -// Provider (slug) -func (r ApiCircuitsCircuitsListRequest) Provider(provider []string) ApiCircuitsCircuitsListRequest { - r.provider = &provider - return r -} - -// Provider (slug) -func (r ApiCircuitsCircuitsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitsListRequest { - r.providerN = &providerN - return r -} - -// Provider account (account) -func (r ApiCircuitsCircuitsListRequest) ProviderAccount(providerAccount []string) ApiCircuitsCircuitsListRequest { - r.providerAccount = &providerAccount - return r -} - -// Provider account (account) -func (r ApiCircuitsCircuitsListRequest) ProviderAccountN(providerAccountN []string) ApiCircuitsCircuitsListRequest { - r.providerAccountN = &providerAccountN - return r -} - -// Provider account (ID) -func (r ApiCircuitsCircuitsListRequest) ProviderAccountId(providerAccountId []int32) ApiCircuitsCircuitsListRequest { - r.providerAccountId = &providerAccountId - return r -} - -// Provider account (ID) -func (r ApiCircuitsCircuitsListRequest) ProviderAccountIdN(providerAccountIdN []int32) ApiCircuitsCircuitsListRequest { - r.providerAccountIdN = &providerAccountIdN - return r -} - -// Provider (ID) -func (r ApiCircuitsCircuitsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitsListRequest { - r.providerId = &providerId - return r -} - -// Provider (ID) -func (r ApiCircuitsCircuitsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitsListRequest { - r.providerIdN = &providerIdN - return r -} - -// Provider network (ID) -func (r ApiCircuitsCircuitsListRequest) ProviderNetworkId(providerNetworkId []int32) ApiCircuitsCircuitsListRequest { - r.providerNetworkId = &providerNetworkId - return r -} - -// Provider network (ID) -func (r ApiCircuitsCircuitsListRequest) ProviderNetworkIdN(providerNetworkIdN []int32) ApiCircuitsCircuitsListRequest { - r.providerNetworkIdN = &providerNetworkIdN - return r -} - -// Search -func (r ApiCircuitsCircuitsListRequest) Q(q string) ApiCircuitsCircuitsListRequest { - r.q = &q - return r -} - -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) Region(region []int32) ApiCircuitsCircuitsListRequest { - r.region = ®ion - return r -} - -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []int32) ApiCircuitsCircuitsListRequest { - r.regionN = ®ionN - return r -} - -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []int32) ApiCircuitsCircuitsListRequest { - r.regionId = ®ionId - return r -} - -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []int32) ApiCircuitsCircuitsListRequest { - r.regionIdN = ®ionIdN - return r -} - -// Site (slug) -func (r ApiCircuitsCircuitsListRequest) Site(site []string) ApiCircuitsCircuitsListRequest { - r.site = &site - return r -} - -// Site (slug) -func (r ApiCircuitsCircuitsListRequest) SiteN(siteN []string) ApiCircuitsCircuitsListRequest { - r.siteN = &siteN - return r -} - -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []int32) ApiCircuitsCircuitsListRequest { - r.siteGroup = &siteGroup +func (r ApiCircuitsProvidersListRequest) Name(name []string) ApiCircuitsProvidersListRequest { + r.name = &name return r } -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsCircuitsListRequest { - r.siteGroupN = &siteGroupN +func (r ApiCircuitsProvidersListRequest) NameEmpty(nameEmpty bool) ApiCircuitsProvidersListRequest { + r.nameEmpty = &nameEmpty return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsCircuitsListRequest { - r.siteGroupId = &siteGroupId +func (r ApiCircuitsProvidersListRequest) NameIc(nameIc []string) ApiCircuitsProvidersListRequest { + r.nameIc = &nameIc return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsCircuitsListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiCircuitsProvidersListRequest) NameIe(nameIe []string) ApiCircuitsProvidersListRequest { + r.nameIe = &nameIe return r } -// Site (ID) -func (r ApiCircuitsCircuitsListRequest) SiteId(siteId []int32) ApiCircuitsCircuitsListRequest { - r.siteId = &siteId +func (r ApiCircuitsProvidersListRequest) NameIew(nameIew []string) ApiCircuitsProvidersListRequest { + r.nameIew = &nameIew return r } -// Site (ID) -func (r ApiCircuitsCircuitsListRequest) SiteIdN(siteIdN []int32) ApiCircuitsCircuitsListRequest { - r.siteIdN = &siteIdN +func (r ApiCircuitsProvidersListRequest) NameIsw(nameIsw []string) ApiCircuitsProvidersListRequest { + r.nameIsw = &nameIsw return r } -func (r ApiCircuitsCircuitsListRequest) Status(status []string) ApiCircuitsCircuitsListRequest { - r.status = &status +func (r ApiCircuitsProvidersListRequest) NameN(nameN []string) ApiCircuitsProvidersListRequest { + r.nameN = &nameN return r } -func (r ApiCircuitsCircuitsListRequest) StatusN(statusN []string) ApiCircuitsCircuitsListRequest { - r.statusN = &statusN +func (r ApiCircuitsProvidersListRequest) NameNic(nameNic []string) ApiCircuitsProvidersListRequest { + r.nameNic = &nameNic return r } -func (r ApiCircuitsCircuitsListRequest) Tag(tag []string) ApiCircuitsCircuitsListRequest { - r.tag = &tag +func (r ApiCircuitsProvidersListRequest) NameNie(nameNie []string) ApiCircuitsProvidersListRequest { + r.nameNie = &nameNie return r } -func (r ApiCircuitsCircuitsListRequest) TagN(tagN []string) ApiCircuitsCircuitsListRequest { - r.tagN = &tagN +func (r ApiCircuitsProvidersListRequest) NameNiew(nameNiew []string) ApiCircuitsProvidersListRequest { + r.nameNiew = &nameNiew return r } -// Tenant (slug) -func (r ApiCircuitsCircuitsListRequest) Tenant(tenant []string) ApiCircuitsCircuitsListRequest { - r.tenant = &tenant +func (r ApiCircuitsProvidersListRequest) NameNisw(nameNisw []string) ApiCircuitsProvidersListRequest { + r.nameNisw = &nameNisw return r } -// Tenant (slug) -func (r ApiCircuitsCircuitsListRequest) TenantN(tenantN []string) ApiCircuitsCircuitsListRequest { - r.tenantN = &tenantN +// The initial index from which to return the results. +func (r ApiCircuitsProvidersListRequest) Offset(offset int32) ApiCircuitsProvidersListRequest { + r.offset = &offset return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []int32) ApiCircuitsCircuitsListRequest { - r.tenantGroup = &tenantGroup +// Which field to use when ordering the results. +func (r ApiCircuitsProvidersListRequest) Ordering(ordering string) ApiCircuitsProvidersListRequest { + r.ordering = &ordering return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []int32) ApiCircuitsCircuitsListRequest { - r.tenantGroupN = &tenantGroupN +// Search +func (r ApiCircuitsProvidersListRequest) Q(q string) ApiCircuitsProvidersListRequest { + r.q = &q return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []int32) ApiCircuitsCircuitsListRequest { - r.tenantGroupId = &tenantGroupId +func (r ApiCircuitsProvidersListRequest) Region(region []string) ApiCircuitsProvidersListRequest { + r.region = ®ion return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiCircuitsCircuitsListRequest { - r.tenantGroupIdN = &tenantGroupIdN +func (r ApiCircuitsProvidersListRequest) RegionN(regionN []string) ApiCircuitsProvidersListRequest { + r.regionN = ®ionN return r } -// Tenant (ID) -func (r ApiCircuitsCircuitsListRequest) TenantId(tenantId []*int32) ApiCircuitsCircuitsListRequest { - r.tenantId = &tenantId +func (r ApiCircuitsProvidersListRequest) RegionId(regionId []string) ApiCircuitsProvidersListRequest { + r.regionId = ®ionId return r } -// Tenant (ID) -func (r ApiCircuitsCircuitsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsCircuitsListRequest { - r.tenantIdN = &tenantIdN +func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []string) ApiCircuitsProvidersListRequest { + r.regionIdN = ®ionIdN return r } -// Termination A (ID) -func (r ApiCircuitsCircuitsListRequest) TerminationAId(terminationAId []*int32) ApiCircuitsCircuitsListRequest { - r.terminationAId = &terminationAId +// Site (slug) +func (r ApiCircuitsProvidersListRequest) Site(site []string) ApiCircuitsProvidersListRequest { + r.site = &site return r } -// Termination A (ID) -func (r ApiCircuitsCircuitsListRequest) TerminationAIdN(terminationAIdN []*int32) ApiCircuitsCircuitsListRequest { - r.terminationAIdN = &terminationAIdN +// Site (slug) +func (r ApiCircuitsProvidersListRequest) SiteN(siteN []string) ApiCircuitsProvidersListRequest { + r.siteN = &siteN return r } -func (r ApiCircuitsCircuitsListRequest) TerminationDate(terminationDate []string) ApiCircuitsCircuitsListRequest { - r.terminationDate = &terminationDate +func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []string) ApiCircuitsProvidersListRequest { + r.siteGroup = &siteGroup return r } -func (r ApiCircuitsCircuitsListRequest) TerminationDateEmpty(terminationDateEmpty bool) ApiCircuitsCircuitsListRequest { - r.terminationDateEmpty = &terminationDateEmpty +func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsProvidersListRequest { + r.siteGroupN = &siteGroupN return r } -func (r ApiCircuitsCircuitsListRequest) TerminationDateGt(terminationDateGt []string) ApiCircuitsCircuitsListRequest { - r.terminationDateGt = &terminationDateGt +func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsProvidersListRequest { + r.siteGroupId = &siteGroupId return r } -func (r ApiCircuitsCircuitsListRequest) TerminationDateGte(terminationDateGte []string) ApiCircuitsCircuitsListRequest { - r.terminationDateGte = &terminationDateGte +func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsProvidersListRequest { + r.siteGroupIdN = &siteGroupIdN return r } -func (r ApiCircuitsCircuitsListRequest) TerminationDateLt(terminationDateLt []string) ApiCircuitsCircuitsListRequest { - r.terminationDateLt = &terminationDateLt +// Site +func (r ApiCircuitsProvidersListRequest) SiteId(siteId []int32) ApiCircuitsProvidersListRequest { + r.siteId = &siteId return r } -func (r ApiCircuitsCircuitsListRequest) TerminationDateLte(terminationDateLte []string) ApiCircuitsCircuitsListRequest { - r.terminationDateLte = &terminationDateLte +// Site +func (r ApiCircuitsProvidersListRequest) SiteIdN(siteIdN []int32) ApiCircuitsProvidersListRequest { + r.siteIdN = &siteIdN return r } -func (r ApiCircuitsCircuitsListRequest) TerminationDateN(terminationDateN []string) ApiCircuitsCircuitsListRequest { - r.terminationDateN = &terminationDateN +func (r ApiCircuitsProvidersListRequest) Slug(slug []string) ApiCircuitsProvidersListRequest { + r.slug = &slug return r } -// Termination A (ID) -func (r ApiCircuitsCircuitsListRequest) TerminationZId(terminationZId []*int32) ApiCircuitsCircuitsListRequest { - r.terminationZId = &terminationZId +func (r ApiCircuitsProvidersListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsProvidersListRequest { + r.slugEmpty = &slugEmpty return r } -// Termination A (ID) -func (r ApiCircuitsCircuitsListRequest) TerminationZIdN(terminationZIdN []*int32) ApiCircuitsCircuitsListRequest { - r.terminationZIdN = &terminationZIdN +func (r ApiCircuitsProvidersListRequest) SlugIc(slugIc []string) ApiCircuitsProvidersListRequest { + r.slugIc = &slugIc return r } -// Circuit type (slug) -func (r ApiCircuitsCircuitsListRequest) Type_(type_ []string) ApiCircuitsCircuitsListRequest { - r.type_ = &type_ +func (r ApiCircuitsProvidersListRequest) SlugIe(slugIe []string) ApiCircuitsProvidersListRequest { + r.slugIe = &slugIe return r } -// Circuit type (slug) -func (r ApiCircuitsCircuitsListRequest) TypeN(typeN []string) ApiCircuitsCircuitsListRequest { - r.typeN = &typeN +func (r ApiCircuitsProvidersListRequest) SlugIew(slugIew []string) ApiCircuitsProvidersListRequest { + r.slugIew = &slugIew return r } -// Circuit type (ID) -func (r ApiCircuitsCircuitsListRequest) TypeId(typeId []int32) ApiCircuitsCircuitsListRequest { - r.typeId = &typeId +func (r ApiCircuitsProvidersListRequest) SlugIsw(slugIsw []string) ApiCircuitsProvidersListRequest { + r.slugIsw = &slugIsw return r } -// Circuit type (ID) -func (r ApiCircuitsCircuitsListRequest) TypeIdN(typeIdN []int32) ApiCircuitsCircuitsListRequest { - r.typeIdN = &typeIdN +func (r ApiCircuitsProvidersListRequest) SlugN(slugN []string) ApiCircuitsProvidersListRequest { + r.slugN = &slugN return r } -func (r ApiCircuitsCircuitsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiCircuitsProvidersListRequest) SlugNic(slugNic []string) ApiCircuitsProvidersListRequest { + r.slugNic = &slugNic return r } -func (r ApiCircuitsCircuitsListRequest) Execute() (*PaginatedCircuitList, *http.Response, error) { - return r.ApiService.CircuitsCircuitsListExecute(r) +func (r ApiCircuitsProvidersListRequest) SlugNie(slugNie []string) ApiCircuitsProvidersListRequest { + r.slugNie = &slugNie + return r } -/* -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 -*/ -func (a *CircuitsAPIService) CircuitsCircuitsList(ctx context.Context) ApiCircuitsCircuitsListRequest { - return ApiCircuitsCircuitsListRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiCircuitsProvidersListRequest) SlugNiew(slugNiew []string) ApiCircuitsProvidersListRequest { + r.slugNiew = &slugNiew + return r } -// Execute executes the request -// -// @return PaginatedCircuitList -func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsListRequest) (*PaginatedCircuitList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuits/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiCircuitsProvidersListRequest) SlugNisw(slugNisw []string) ApiCircuitsProvidersListRequest { + r.slugNisw = &slugNisw + return r +} - if r.cid != nil { - t := *r.cid - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid", t, "multi") - } - } - if r.cidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__empty", r.cidEmpty, "") - } - if r.cidIc != nil { - t := *r.cidIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ic", t, "multi") - } - } - if r.cidIe != nil { - t := *r.cidIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ie", t, "multi") - } - } - if r.cidIew != nil { - t := *r.cidIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__iew", t, "multi") - } - } - if r.cidIsw != nil { - t := *r.cidIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__isw", t, "multi") - } - } - if r.cidN != nil { - t := *r.cidN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__n", t, "multi") - } - } - if r.cidNic != nil { - t := *r.cidNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nic", t, "multi") - } - } - if r.cidNie != nil { - t := *r.cidNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nie", t, "multi") - } - } - if r.cidNiew != nil { - t := *r.cidNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__niew", t, "multi") - } - } - if r.cidNisw != nil { - t := *r.cidNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nisw", t, "multi") - } - } - if r.commitRate != nil { - t := *r.commitRate - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate", t, "multi") - } - } - if r.commitRateEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__empty", r.commitRateEmpty, "") +func (r ApiCircuitsProvidersListRequest) Tag(tag []string) ApiCircuitsProvidersListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsProvidersListRequest) TagN(tagN []string) ApiCircuitsProvidersListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCircuitsProvidersListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProvidersListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsProvidersListRequest) Execute() (*PaginatedProviderList, *http.Response, error) { + return r.ApiService.CircuitsProvidersListExecute(r) +} + +/* +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 +*/ +func (a *CircuitsAPIService) CircuitsProvidersList(ctx context.Context) ApiCircuitsProvidersListRequest { + return ApiCircuitsProvidersListRequest{ + ApiService: a, + ctx: ctx, } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gt", t, "multi") - } +} + +// Execute executes the request +// @return PaginatedProviderList +func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProvidersListRequest) (*PaginatedProviderList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedProviderList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.commitRateGte != nil { - t := *r.commitRateGte + + localVarPath := localBasePath + "/api/circuits/providers/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.asn != nil { + t := *r.asn 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "form", "multi") } } - if r.commitRateLt != nil { - t := *r.commitRateLt + if r.asnN != nil { + t := *r.asnN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "form", "multi") } } - if r.commitRateLte != nil { - t := *r.commitRateLte + if r.asnId != nil { + t := *r.asnId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", t, "form", "multi") } } - if r.commitRateN != nil { - t := *r.commitRateN + if r.asnIdN != nil { + t := *r.asnIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", t, "form", "multi") } } if r.contact != nil { @@ -6587,10 +19546,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -6598,10 +19557,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -6609,10 +19568,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -6620,10 +19579,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -6631,10 +19590,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -6642,10 +19601,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -6653,10 +19612,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -6664,946 +19623,726 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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 + t := *r.createdGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.installDate != nil { - t := *r.installDate + 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, "install_date", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.installDateEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__empty", r.installDateEmpty, "") - } - if r.installDateGt != nil { - t := *r.installDateGt + 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, "install_date__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.installDateGte != nil { - t := *r.installDateGte + 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, "install_date__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.installDateLt != nil { - t := *r.installDateLt + 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, "install_date__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.installDateLte != nil { - t := *r.installDateLte + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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, "install_date__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.installDateN != nil { - t := *r.installDateN + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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, "install_date__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - 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, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.provider != nil { - t := *r.provider + 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, "provider", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.providerN != nil { - t := *r.providerN + 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, "provider__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.providerAccount != nil { - t := *r.providerAccount + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "provider_account", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.providerAccountN != nil { - t := *r.providerAccountN + 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, "provider_account__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.providerAccountId != nil { - t := *r.providerAccountId + 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, "provider_account_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.providerAccountIdN != nil { - t := *r.providerAccountIdN + 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, "provider_account_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.providerId != nil { - t := *r.providerId + 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, "provider_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.providerIdN != nil { - t := *r.providerIdN + 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, "provider_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.providerNetworkId != nil { - t := *r.providerNetworkId + 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, "provider_network_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.providerNetworkIdN != nil { - t := *r.providerNetworkIdN + 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, "provider_network_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.region != nil { - t := *r.region + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.site != nil { - t := *r.site + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + 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, "site_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.status != nil { - t := *r.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, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + 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, "status__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } - if r.tenant != nil { - t := *r.tenant + 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, "tenant", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + 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, "tenant__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + 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, "tenant_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + 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, "tenant_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + 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, "tenant_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + 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, "tenant_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + 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, "tenant_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + 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, "tenant_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.terminationAId != nil { - t := *r.terminationAId + 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, "termination_a_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } - if r.terminationAIdN != nil { - t := *r.terminationAIdN + 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, "termination_a_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.terminationDate != nil { - t := *r.terminationDate + if r.slug != nil { + t := *r.slug 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } - if r.terminationDateEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__empty", r.terminationDateEmpty, "") + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } - if r.terminationDateGt != nil { - t := *r.terminationDateGt + if r.slugIc != nil { + t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.terminationDateGte != nil { - t := *r.terminationDateGte + if r.slugIe != nil { + t := *r.slugIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.terminationDateLt != nil { - t := *r.terminationDateLt + if r.slugIew != nil { + t := *r.slugIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.terminationDateLte != nil { - t := *r.terminationDateLte + if r.slugIsw != nil { + t := *r.slugIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.terminationDateN != nil { - t := *r.terminationDateN + if r.slugN != nil { + t := *r.slugN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } - } - if r.terminationZId != nil { - t := *r.terminationZId + } + if r.slugNic != nil { + t := *r.slugNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.terminationZIdN != nil { - t := *r.terminationZIdN + if r.slugNie != nil { + t := *r.slugNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_z_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + if r.slugNiew != nil { + t := *r.slugNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + if r.slugNisw != nil { + t := *r.slugNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } - if r.typeId != nil { - t := *r.typeId + 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, "type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.typeIdN != nil { - t := *r.typeIdN + 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, "type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -7673,56 +20412,55 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedWritableCircuitRequest *PatchedWritableCircuitRequest +type ApiCircuitsProvidersPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedProviderRequest *PatchedProviderRequest } -func (r ApiCircuitsCircuitsPartialUpdateRequest) PatchedWritableCircuitRequest(patchedWritableCircuitRequest PatchedWritableCircuitRequest) ApiCircuitsCircuitsPartialUpdateRequest { - r.patchedWritableCircuitRequest = &patchedWritableCircuitRequest +func (r ApiCircuitsProvidersPartialUpdateRequest) PatchedProviderRequest(patchedProviderRequest PatchedProviderRequest) ApiCircuitsProvidersPartialUpdateRequest { + r.patchedProviderRequest = &patchedProviderRequest return r } -func (r ApiCircuitsCircuitsPartialUpdateRequest) Execute() (*Circuit, *http.Response, error) { - return r.ApiService.CircuitsCircuitsPartialUpdateExecute(r) +func (r ApiCircuitsProvidersPartialUpdateRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.CircuitsProvidersPartialUpdateExecute(r) } /* -CircuitsCircuitsPartialUpdate Method for CircuitsCircuitsPartialUpdate +CircuitsProvidersPartialUpdate Method for CircuitsProvidersPartialUpdate -Patch a circuit object. +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 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 provider. + @return ApiCircuitsProvidersPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsPartialUpdateRequest { - return ApiCircuitsCircuitsPartialUpdateRequest{ +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 Circuit -func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsCircuitsPartialUpdateRequest) (*Circuit, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersPartialUpdateExecute(r ApiCircuitsProvidersPartialUpdateRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/{id}/" + localVarPath := localBasePath + "/api/circuits/providers/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -7747,7 +20485,7 @@ func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableCircuitRequest + localVarPostBody = r.patchedProviderRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7799,50 +20537,49 @@ func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsProvidersRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsCircuitsRetrieveRequest) Execute() (*Circuit, *http.Response, error) { - return r.ApiService.CircuitsCircuitsRetrieveExecute(r) +func (r ApiCircuitsProvidersRetrieveRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.CircuitsProvidersRetrieveExecute(r) } /* -CircuitsCircuitsRetrieve Method for CircuitsCircuitsRetrieve +CircuitsProvidersRetrieve Method for CircuitsProvidersRetrieve -Get a circuit object. +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 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 provider. + @return ApiCircuitsProvidersRetrieveRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitsRetrieveRequest { - return ApiCircuitsCircuitsRetrieveRequest{ +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 Circuit -func (a *CircuitsAPIService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircuitsRetrieveRequest) (*Circuit, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvidersRetrieveRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/{id}/" + localVarPath := localBasePath + "/api/circuits/providers/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -7917,63 +20654,62 @@ func (a *CircuitsAPIService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircui return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsCircuitsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - writableCircuitRequest *WritableCircuitRequest +type ApiCircuitsProvidersUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + providerRequest *ProviderRequest } -func (r ApiCircuitsCircuitsUpdateRequest) WritableCircuitRequest(writableCircuitRequest WritableCircuitRequest) ApiCircuitsCircuitsUpdateRequest { - r.writableCircuitRequest = &writableCircuitRequest +func (r ApiCircuitsProvidersUpdateRequest) ProviderRequest(providerRequest ProviderRequest) ApiCircuitsProvidersUpdateRequest { + r.providerRequest = &providerRequest return r } -func (r ApiCircuitsCircuitsUpdateRequest) Execute() (*Circuit, *http.Response, error) { - return r.ApiService.CircuitsCircuitsUpdateExecute(r) +func (r ApiCircuitsProvidersUpdateRequest) Execute() (*Provider, *http.Response, error) { + return r.ApiService.CircuitsProvidersUpdateExecute(r) } /* -CircuitsCircuitsUpdate Method for CircuitsCircuitsUpdate +CircuitsProvidersUpdate Method for CircuitsProvidersUpdate -Put a circuit object. +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 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 provider. + @return ApiCircuitsProvidersUpdateRequest */ -func (a *CircuitsAPIService) CircuitsCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsUpdateRequest { - return ApiCircuitsCircuitsUpdateRequest{ +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 Circuit -func (a *CircuitsAPIService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuitsUpdateRequest) (*Circuit, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvidersUpdateRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/circuits/{id}/" + localVarPath := localBasePath + "/api/circuits/providers/{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.writableCircuitRequest == nil { - return localVarReturnValue, nil, reportError("writableCircuitRequest is required and must be specified") + if r.providerRequest == nil { + return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") } // to determine the Content-Type header @@ -7994,7 +20730,7 @@ func (a *CircuitsAPIService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableCircuitRequest + localVarPostBody = r.providerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8046,56 +20782,56 @@ func (a *CircuitsAPIService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerAccountRequest *[]ProviderAccountRequest +type ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitTerminationRequest *[]VirtualCircuitTerminationRequest } -func (r ApiCircuitsProviderAccountsBulkDestroyRequest) ProviderAccountRequest(providerAccountRequest []ProviderAccountRequest) ApiCircuitsProviderAccountsBulkDestroyRequest { - r.providerAccountRequest = &providerAccountRequest +func (r ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest) VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest []VirtualCircuitTerminationRequest) ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest { + r.virtualCircuitTerminationRequest = &virtualCircuitTerminationRequest return r } -func (r ApiCircuitsProviderAccountsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsProviderAccountsBulkDestroyExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsBulkDestroyExecute(r) } /* -CircuitsProviderAccountsBulkDestroy Method for CircuitsProviderAccountsBulkDestroy +CircuitsVirtualCircuitTerminationsBulkDestroy Method for CircuitsVirtualCircuitTerminationsBulkDestroy -Delete a list of provider account objects. +Delete a list of virtual circuit termination 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 ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroy(ctx context.Context) ApiCircuitsProviderAccountsBulkDestroyRequest { - return ApiCircuitsProviderAccountsBulkDestroyRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest { + return ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCircuitsProviderAccountsBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsBulkDestroyRequest) (*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.CircuitsVirtualCircuitTerminationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerAccountRequest == nil { - return nil, reportError("providerAccountRequest is required and must be specified") + if r.virtualCircuitTerminationRequest == nil { + return nil, reportError("virtualCircuitTerminationRequest is required and must be specified") } // to determine the Content-Type header @@ -8116,7 +20852,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerAccountRequest + localVarPostBody = r.virtualCircuitTerminationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8159,59 +20895,58 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCir return localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerAccountRequest *[]ProviderAccountRequest +type ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitTerminationRequest *[]VirtualCircuitTerminationRequest } -func (r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ProviderAccountRequest(providerAccountRequest []ProviderAccountRequest) ApiCircuitsProviderAccountsBulkPartialUpdateRequest { - r.providerAccountRequest = &providerAccountRequest +func (r ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest) VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest []VirtualCircuitTerminationRequest) ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest { + r.virtualCircuitTerminationRequest = &virtualCircuitTerminationRequest return r } -func (r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) Execute() ([]ProviderAccount, *http.Response, error) { - return r.ApiService.CircuitsProviderAccountsBulkPartialUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest) Execute() ([]VirtualCircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsBulkPartialUpdateExecute(r) } /* -CircuitsProviderAccountsBulkPartialUpdate Method for CircuitsProviderAccountsBulkPartialUpdate +CircuitsVirtualCircuitTerminationsBulkPartialUpdate Method for CircuitsVirtualCircuitTerminationsBulkPartialUpdate -Patch a list of provider account objects. +Patch a list of virtual circuit termination 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 ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkPartialUpdateRequest { - return ApiCircuitsProviderAccountsBulkPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest { + return ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderAccount -func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdateExecute(r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ([]ProviderAccount, *http.Response, error) { +// @return []VirtualCircuitTermination +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderAccount + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualCircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerAccountRequest == nil { - return localVarReturnValue, nil, reportError("providerAccountRequest is required and must be specified") + if r.virtualCircuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitTerminationRequest is required and must be specified") } // to determine the Content-Type header @@ -8232,7 +20967,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdateExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerAccountRequest + localVarPostBody = r.virtualCircuitTerminationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8284,59 +21019,58 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdateExecute(r return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerAccountRequest *[]ProviderAccountRequest +type ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitTerminationRequest *[]VirtualCircuitTerminationRequest } -func (r ApiCircuitsProviderAccountsBulkUpdateRequest) ProviderAccountRequest(providerAccountRequest []ProviderAccountRequest) ApiCircuitsProviderAccountsBulkUpdateRequest { - r.providerAccountRequest = &providerAccountRequest +func (r ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest) VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest []VirtualCircuitTerminationRequest) ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest { + r.virtualCircuitTerminationRequest = &virtualCircuitTerminationRequest return r } -func (r ApiCircuitsProviderAccountsBulkUpdateRequest) Execute() ([]ProviderAccount, *http.Response, error) { - return r.ApiService.CircuitsProviderAccountsBulkUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest) Execute() ([]VirtualCircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsBulkUpdateExecute(r) } /* -CircuitsProviderAccountsBulkUpdate Method for CircuitsProviderAccountsBulkUpdate +CircuitsVirtualCircuitTerminationsBulkUpdate Method for CircuitsVirtualCircuitTerminationsBulkUpdate -Put a list of provider account objects. +Put a list of virtual circuit termination 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 ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkUpdateRequest { - return ApiCircuitsProviderAccountsBulkUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest { + return ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderAccount -func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCircuitsProviderAccountsBulkUpdateRequest) ([]ProviderAccount, *http.Response, error) { +// @return []VirtualCircuitTermination +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsBulkUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsBulkUpdateRequest) ([]VirtualCircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualCircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerAccountRequest == nil { - return localVarReturnValue, nil, reportError("providerAccountRequest is required and must be specified") + if r.virtualCircuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitTerminationRequest is required and must be specified") } // to determine the Content-Type header @@ -8357,7 +21091,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCirc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerAccountRequest + localVarPostBody = r.virtualCircuitTerminationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8409,59 +21143,58 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCirc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerAccountRequest *ProviderAccountRequest +type ApiCircuitsVirtualCircuitTerminationsCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + writableVirtualCircuitTerminationRequest *WritableVirtualCircuitTerminationRequest } -func (r ApiCircuitsProviderAccountsCreateRequest) ProviderAccountRequest(providerAccountRequest ProviderAccountRequest) ApiCircuitsProviderAccountsCreateRequest { - r.providerAccountRequest = &providerAccountRequest +func (r ApiCircuitsVirtualCircuitTerminationsCreateRequest) WritableVirtualCircuitTerminationRequest(writableVirtualCircuitTerminationRequest WritableVirtualCircuitTerminationRequest) ApiCircuitsVirtualCircuitTerminationsCreateRequest { + r.writableVirtualCircuitTerminationRequest = &writableVirtualCircuitTerminationRequest return r } -func (r ApiCircuitsProviderAccountsCreateRequest) Execute() (*ProviderAccount, *http.Response, error) { - return r.ApiService.CircuitsProviderAccountsCreateExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsCreateRequest) Execute() (*VirtualCircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsCreateExecute(r) } /* -CircuitsProviderAccountsCreate Method for CircuitsProviderAccountsCreate +CircuitsVirtualCircuitTerminationsCreate Method for CircuitsVirtualCircuitTerminationsCreate -Post a list of provider account objects. +Post a list of virtual circuit termination 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 ApiCircuitsVirtualCircuitTerminationsCreateRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsCreate(ctx context.Context) ApiCircuitsProviderAccountsCreateRequest { - return ApiCircuitsProviderAccountsCreateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsCreate(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsCreateRequest { + return ApiCircuitsVirtualCircuitTerminationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ProviderAccount -func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuitsProviderAccountsCreateRequest) (*ProviderAccount, *http.Response, error) { +// @return VirtualCircuitTermination +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsCreateExecute(r ApiCircuitsVirtualCircuitTerminationsCreateRequest) (*VirtualCircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerAccountRequest == nil { - return localVarReturnValue, nil, reportError("providerAccountRequest is required and must be specified") + if r.writableVirtualCircuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("writableVirtualCircuitTerminationRequest is required and must be specified") } // to determine the Content-Type header @@ -8482,7 +21215,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerAccountRequest + localVarPostBody = r.writableVirtualCircuitTerminationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8534,47 +21267,47 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsVirtualCircuitTerminationsDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsProviderAccountsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsProviderAccountsDestroyExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsDestroyExecute(r) } /* -CircuitsProviderAccountsDestroy Method for CircuitsProviderAccountsDestroy +CircuitsVirtualCircuitTerminationsDestroy Method for CircuitsVirtualCircuitTerminationsDestroy -Delete a provider account object. +Delete a virtual 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 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsDestroyRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsDestroy(ctx context.Context, id int32) ApiCircuitsProviderAccountsDestroyRequest { - return ApiCircuitsProviderAccountsDestroyRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsDestroyRequest { + return ApiCircuitsVirtualCircuitTerminationsDestroyRequest{ 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) CircuitsVirtualCircuitTerminationsDestroyExecute(r ApiCircuitsVirtualCircuitTerminationsDestroyRequest) (*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.CircuitsVirtualCircuitTerminationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -8634,590 +21367,480 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsDestroyExecute(r ApiCircuit body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -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 - 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 - provider *[]string - providerN *[]string - providerId *[]int32 - providerIdN *[]int32 - q *string - tag *[]string - tagN *[]string - updatedByRequest *string -} - -func (r ApiCircuitsProviderAccountsListRequest) Account(account []string) ApiCircuitsProviderAccountsListRequest { - r.account = &account - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountEmpty(accountEmpty bool) ApiCircuitsProviderAccountsListRequest { - r.accountEmpty = &accountEmpty - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountIc(accountIc []string) ApiCircuitsProviderAccountsListRequest { - r.accountIc = &accountIc - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountIe(accountIe []string) ApiCircuitsProviderAccountsListRequest { - r.accountIe = &accountIe - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountIew(accountIew []string) ApiCircuitsProviderAccountsListRequest { - r.accountIew = &accountIew - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountIsw(accountIsw []string) ApiCircuitsProviderAccountsListRequest { - r.accountIsw = &accountIsw - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountN(accountN []string) ApiCircuitsProviderAccountsListRequest { - r.accountN = &accountN - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountNic(accountNic []string) ApiCircuitsProviderAccountsListRequest { - r.accountNic = &accountNic - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountNie(accountNie []string) ApiCircuitsProviderAccountsListRequest { - r.accountNie = &accountNie - return r -} - -func (r ApiCircuitsProviderAccountsListRequest) AccountNiew(accountNiew []string) ApiCircuitsProviderAccountsListRequest { - r.accountNiew = &accountNiew - return r -} + return localVarHTTPResponse, newErr + } -func (r ApiCircuitsProviderAccountsListRequest) AccountNisw(accountNisw []string) ApiCircuitsProviderAccountsListRequest { - r.accountNisw = &accountNisw - return r + return localVarHTTPResponse, nil } -func (r ApiCircuitsProviderAccountsListRequest) Created(created []time.Time) ApiCircuitsProviderAccountsListRequest { +type ApiCircuitsVirtualCircuitTerminationsListRequest struct { + ctx context.Context + ApiService CircuitsAPI + 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 + 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 + modifiedByRequest *string + offset *int32 + ordering *string + provider *[]string + providerN *[]string + providerAccount *[]string + providerAccountN *[]string + providerAccountId *[]int32 + providerAccountIdN *[]int32 + providerId *[]int32 + providerIdN *[]int32 + providerNetworkId *[]int32 + providerNetworkIdN *[]int32 + q *string + role *[]string + roleEmpty *bool + roleIc *[]string + roleIe *[]string + roleIew *[]string + roleIsw *[]string + roleN *[]string + roleNic *[]string + roleNie *[]string + roleNiew *[]string + roleNisw *[]string + tag *[]string + tagN *[]string + updatedByRequest *string + virtualCircuitId *[]int32 + virtualCircuitIdN *[]int32 +} + +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Created(created []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.created = &created return r } -func (r ApiCircuitsProviderAccountsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiCircuitsProviderAccountsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.createdGt = &createdGt return r } -func (r ApiCircuitsProviderAccountsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.createdGte = &createdGte return r } -func (r ApiCircuitsProviderAccountsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.createdLt = &createdLt return r } -func (r ApiCircuitsProviderAccountsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.createdLte = &createdLte return r } -func (r ApiCircuitsProviderAccountsListRequest) CreatedN(createdN []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) CreatedN(createdN []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.createdN = &createdN return r } -func (r ApiCircuitsProviderAccountsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiCircuitsProviderAccountsListRequest) Description(description []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Description(description []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.description = &description return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionN(descriptionN []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionN(descriptionN []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiCircuitsProviderAccountsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiCircuitsProviderAccountsListRequest) Id(id []int32) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Id(id []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { r.id = &id return r } -func (r ApiCircuitsProviderAccountsListRequest) IdEmpty(idEmpty bool) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) IdEmpty(idEmpty bool) ApiCircuitsVirtualCircuitTerminationsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiCircuitsProviderAccountsListRequest) IdGt(idGt []int32) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) IdGt(idGt []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { r.idGt = &idGt return r } -func (r ApiCircuitsProviderAccountsListRequest) IdGte(idGte []int32) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) IdGte(idGte []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { r.idGte = &idGte return r } -func (r ApiCircuitsProviderAccountsListRequest) IdLt(idLt []int32) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) IdLt(idLt []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { r.idLt = &idLt return r } -func (r ApiCircuitsProviderAccountsListRequest) IdLte(idLte []int32) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) IdLte(idLte []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { r.idLte = &idLte return r } -func (r ApiCircuitsProviderAccountsListRequest) IdN(idN []int32) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) IdN(idN []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { r.idN = &idN return r } -func (r ApiCircuitsProviderAccountsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsProviderAccountsListRequest { +// Interface (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) InterfaceId(interfaceId []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.interfaceId = &interfaceId + return r +} + +// Interface (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) InterfaceIdN(interfaceIdN []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.interfaceIdN = &interfaceIdN + return r +} + +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsVirtualCircuitTerminationsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiCircuitsProviderAccountsListRequest) Limit(limit int32) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Limit(limit int32) ApiCircuitsVirtualCircuitTerminationsListRequest { r.limit = &limit return r } -func (r ApiCircuitsProviderAccountsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProviderAccountsListRequest { +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsVirtualCircuitTerminationsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiCircuitsProviderAccountsListRequest) Name(name []string) ApiCircuitsProviderAccountsListRequest { - r.name = &name +// The initial index from which to return the results. +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Offset(offset int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.offset = &offset return r } -func (r ApiCircuitsProviderAccountsListRequest) NameEmpty(nameEmpty bool) ApiCircuitsProviderAccountsListRequest { - r.nameEmpty = &nameEmpty +// Which field to use when ordering the results. +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Ordering(ordering string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.ordering = &ordering return r } -func (r ApiCircuitsProviderAccountsListRequest) NameIc(nameIc []string) ApiCircuitsProviderAccountsListRequest { - r.nameIc = &nameIc +// Provider (slug) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Provider(provider []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.provider = &provider return r } -func (r ApiCircuitsProviderAccountsListRequest) NameIe(nameIe []string) ApiCircuitsProviderAccountsListRequest { - r.nameIe = &nameIe +// Provider (slug) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderN(providerN []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerN = &providerN return r } -func (r ApiCircuitsProviderAccountsListRequest) NameIew(nameIew []string) ApiCircuitsProviderAccountsListRequest { - r.nameIew = &nameIew +// Provider account (account) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderAccount(providerAccount []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerAccount = &providerAccount return r } -func (r ApiCircuitsProviderAccountsListRequest) NameIsw(nameIsw []string) ApiCircuitsProviderAccountsListRequest { - r.nameIsw = &nameIsw +// Provider account (account) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderAccountN(providerAccountN []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerAccountN = &providerAccountN return r } -func (r ApiCircuitsProviderAccountsListRequest) NameN(nameN []string) ApiCircuitsProviderAccountsListRequest { - r.nameN = &nameN +// Provider account (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderAccountId(providerAccountId []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerAccountId = &providerAccountId return r } -func (r ApiCircuitsProviderAccountsListRequest) NameNic(nameNic []string) ApiCircuitsProviderAccountsListRequest { - r.nameNic = &nameNic +// Provider account (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderAccountIdN(providerAccountIdN []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerAccountIdN = &providerAccountIdN return r } -func (r ApiCircuitsProviderAccountsListRequest) NameNie(nameNie []string) ApiCircuitsProviderAccountsListRequest { - r.nameNie = &nameNie +// Provider (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderId(providerId []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerId = &providerId return r } -func (r ApiCircuitsProviderAccountsListRequest) NameNiew(nameNiew []string) ApiCircuitsProviderAccountsListRequest { - r.nameNiew = &nameNiew +// Provider (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerIdN = &providerIdN return r } -func (r ApiCircuitsProviderAccountsListRequest) NameNisw(nameNisw []string) ApiCircuitsProviderAccountsListRequest { - r.nameNisw = &nameNisw +// Provider network (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderNetworkId(providerNetworkId []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerNetworkId = &providerNetworkId return r } -// The initial index from which to return the results. -func (r ApiCircuitsProviderAccountsListRequest) Offset(offset int32) ApiCircuitsProviderAccountsListRequest { - r.offset = &offset +// Provider network (ID) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) ProviderNetworkIdN(providerNetworkIdN []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.providerNetworkIdN = &providerNetworkIdN return r } -// Which field to use when ordering the results. -func (r ApiCircuitsProviderAccountsListRequest) Ordering(ordering string) ApiCircuitsProviderAccountsListRequest { - r.ordering = &ordering +// Search +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Q(q string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.q = &q return r } -// Provider (slug) -func (r ApiCircuitsProviderAccountsListRequest) Provider(provider []string) ApiCircuitsProviderAccountsListRequest { - r.provider = &provider +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Role(role []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.role = &role return r } -// Provider (slug) -func (r ApiCircuitsProviderAccountsListRequest) ProviderN(providerN []string) ApiCircuitsProviderAccountsListRequest { - r.providerN = &providerN +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleEmpty(roleEmpty bool) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleEmpty = &roleEmpty return r } -// Provider (ID) -func (r ApiCircuitsProviderAccountsListRequest) ProviderId(providerId []int32) ApiCircuitsProviderAccountsListRequest { - r.providerId = &providerId +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleIc(roleIc []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleIc = &roleIc return r } -// Provider (ID) -func (r ApiCircuitsProviderAccountsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsProviderAccountsListRequest { - r.providerIdN = &providerIdN +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleIe(roleIe []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleIe = &roleIe return r } -// Search -func (r ApiCircuitsProviderAccountsListRequest) Q(q string) ApiCircuitsProviderAccountsListRequest { - r.q = &q +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleIew(roleIew []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleIew = &roleIew return r } -func (r ApiCircuitsProviderAccountsListRequest) Tag(tag []string) ApiCircuitsProviderAccountsListRequest { - r.tag = &tag +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleIsw(roleIsw []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleIsw = &roleIsw return r } -func (r ApiCircuitsProviderAccountsListRequest) TagN(tagN []string) ApiCircuitsProviderAccountsListRequest { - r.tagN = &tagN +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleN(roleN []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleN = &roleN return r } -func (r ApiCircuitsProviderAccountsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProviderAccountsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleNic(roleNic []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleNic = &roleNic return r } -func (r ApiCircuitsProviderAccountsListRequest) Execute() (*PaginatedProviderAccountList, *http.Response, error) { - return r.ApiService.CircuitsProviderAccountsListExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleNie(roleNie []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleNie = &roleNie + return r } -/* -CircuitsProviderAccountsList Method for CircuitsProviderAccountsList +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleNiew(roleNiew []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleNiew = &roleNiew + return r +} -Get a list of provider account objects. +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) RoleNisw(roleNisw []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.roleNisw = &roleNisw + return r +} - @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 { - return ApiCircuitsProviderAccountsListRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Tag(tag []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.tag = &tag + return r } -// Execute executes the request -// -// @return PaginatedProviderAccountList -func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsProviderAccountsListRequest) (*PaginatedProviderAccountList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedProviderAccountList - ) +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) TagN(tagN []string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.tagN = &tagN + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} - localVarPath := localBasePath + "/api/circuits/provider-accounts/" +// Virtual circuit +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) VirtualCircuitId(virtualCircuitId []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.virtualCircuitId = &virtualCircuitId + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +// Virtual circuit +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) VirtualCircuitIdN(virtualCircuitIdN []int32) ApiCircuitsVirtualCircuitTerminationsListRequest { + r.virtualCircuitIdN = &virtualCircuitIdN + return r +} - if r.account != nil { - t := *r.account - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account", t, "multi") - } - } - if r.accountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__empty", r.accountEmpty, "") - } - if r.accountIc != nil { - t := *r.accountIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__ic", t, "multi") - } - } - if r.accountIe != nil { - t := *r.accountIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__ie", t, "multi") - } - } - if r.accountIew != nil { - t := *r.accountIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__iew", t, "multi") - } - } - if r.accountIsw != nil { - t := *r.accountIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__isw", t, "multi") - } - } - if r.accountN != nil { - t := *r.accountN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__n", t, "multi") - } - } - if r.accountNic != nil { - t := *r.accountNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__nic", t, "multi") - } - } - if r.accountNie != nil { - t := *r.accountNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__nie", t, "multi") - } - } - if r.accountNiew != nil { - t := *r.accountNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__niew", t, "multi") - } - } - if r.accountNisw != nil { - t := *r.accountNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__nisw", t, "multi") - } +func (r ApiCircuitsVirtualCircuitTerminationsListRequest) Execute() (*PaginatedVirtualCircuitTerminationList, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsListExecute(r) +} + +/* +CircuitsVirtualCircuitTerminationsList Method for CircuitsVirtualCircuitTerminationsList + +Get a list of virtual circuit termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsVirtualCircuitTerminationsListRequest +*/ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsList(ctx context.Context) ApiCircuitsVirtualCircuitTerminationsListRequest { + return ApiCircuitsVirtualCircuitTerminationsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedVirtualCircuitTerminationList +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsListExecute(r ApiCircuitsVirtualCircuitTerminationsListRequest) (*PaginatedVirtualCircuitTerminationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVirtualCircuitTerminationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } + + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -9225,10 +21848,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -9236,10 +21859,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -9247,10 +21870,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -9258,10 +21881,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -9269,10 +21892,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -9280,38 +21903,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -9319,10 +21942,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -9330,10 +21953,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -9341,10 +21964,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -9352,10 +21975,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -9363,10 +21986,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -9374,10 +21997,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -9385,10 +22008,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -9396,10 +22019,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -9407,24 +22030,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -9432,10 +22055,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -9443,10 +22066,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -9454,10 +22077,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -9465,10 +22088,32 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.interfaceId != nil { + t := *r.interfaceId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") + } + } + if r.interfaceIdN != nil { + t := *r.interfaceIdN + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -9476,10 +22121,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -9487,10 +22132,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -9498,10 +22143,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -9509,10 +22154,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -9520,10 +22165,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -9531,10 +22176,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -9542,193 +22187,259 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.name != nil { - t := *r.name + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.provider != nil { + t := *r.provider 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.providerN != nil { + t := *r.providerN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "form", "multi") + } } - if r.nameIc != nil { - t := *r.nameIc + if r.providerAccount != nil { + t := *r.providerAccount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.providerAccountN != nil { + t := *r.providerAccountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.providerAccountId != nil { + t := *r.providerAccountId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.providerAccountIdN != nil { + t := *r.providerAccountIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.providerId != nil { + t := *r.providerId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.providerIdN != nil { + t := *r.providerIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.providerNetworkId != nil { + t := *r.providerNetworkId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.providerNetworkIdN != nil { + t := *r.providerNetworkIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + if r.roleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__empty", r.roleEmpty, "form", "") } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + if r.roleIc != nil { + t := *r.roleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", t, "form", "multi") + } } - if r.provider != nil { - t := *r.provider + if r.roleIe != nil { + t := *r.roleIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", t, "form", "multi") } } - if r.providerN != nil { - t := *r.providerN + if r.roleIew != nil { + t := *r.roleIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", t, "form", "multi") } } - if r.providerId != nil { - t := *r.providerId + if r.roleIsw != nil { + t := *r.roleIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", t, "form", "multi") } } - if r.providerIdN != nil { - t := *r.providerIdN + 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, "provider_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + if r.roleNic != nil { + t := *r.roleNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", t, "form", "multi") + } + } + if r.roleNie != nil { + t := *r.roleNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", t, "form", "multi") + } + } + if r.roleNiew != nil { + t := *r.roleNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", t, "form", "multi") + } + } + if r.roleNisw != nil { + t := *r.roleNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -9736,14 +22447,36 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualCircuitId != nil { + t := *r.virtualCircuitId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id", t, "form", "multi") + } + } + if r.virtualCircuitIdN != nil { + t := *r.virtualCircuitIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9813,56 +22546,174 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedProviderAccountRequest *PatchedProviderAccountRequest +type ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedWritableVirtualCircuitTerminationRequest *PatchedWritableVirtualCircuitTerminationRequest } -func (r ApiCircuitsProviderAccountsPartialUpdateRequest) PatchedProviderAccountRequest(patchedProviderAccountRequest PatchedProviderAccountRequest) ApiCircuitsProviderAccountsPartialUpdateRequest { - r.patchedProviderAccountRequest = &patchedProviderAccountRequest +func (r ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest) PatchedWritableVirtualCircuitTerminationRequest(patchedWritableVirtualCircuitTerminationRequest PatchedWritableVirtualCircuitTerminationRequest) ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest { + r.patchedWritableVirtualCircuitTerminationRequest = &patchedWritableVirtualCircuitTerminationRequest return r } -func (r ApiCircuitsProviderAccountsPartialUpdateRequest) Execute() (*ProviderAccount, *http.Response, error) { - return r.ApiService.CircuitsProviderAccountsPartialUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest) Execute() (*VirtualCircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsPartialUpdateExecute(r) } /* -CircuitsProviderAccountsPartialUpdate Method for CircuitsProviderAccountsPartialUpdate +CircuitsVirtualCircuitTerminationsPartialUpdate Method for CircuitsVirtualCircuitTerminationsPartialUpdate -Patch a provider account object. +Patch a virtual 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 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsPartialUpdateRequest { - return ApiCircuitsProviderAccountsPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest { + return ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest{ 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 VirtualCircuitTermination +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPartialUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsPartialUpdateRequest) (*VirtualCircuitTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/{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.patchedWritableVirtualCircuitTerminationRequest + 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 ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 +} + +func (r ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest) Execute() (*VirtualCircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsPathsRetrieveExecute(r) +} + +/* +CircuitsVirtualCircuitTerminationsPathsRetrieve Method for CircuitsVirtualCircuitTerminationsPathsRetrieve + +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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest { + return ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return VirtualCircuitTermination +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsPathsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/{id}/paths/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -9870,7 +22721,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiC localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -9886,8 +22737,6 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedProviderAccountRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9939,50 +22788,49 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsVirtualCircuitTerminationsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsProviderAccountsRetrieveRequest) Execute() (*ProviderAccount, *http.Response, error) { - return r.ApiService.CircuitsProviderAccountsRetrieveExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsRetrieveRequest) Execute() (*VirtualCircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsRetrieveExecute(r) } /* -CircuitsProviderAccountsRetrieve Method for CircuitsProviderAccountsRetrieve +CircuitsVirtualCircuitTerminationsRetrieve Method for CircuitsVirtualCircuitTerminationsRetrieve -Get a provider account object. +Get a virtual 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 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieve(ctx context.Context, id int32) ApiCircuitsProviderAccountsRetrieveRequest { - return ApiCircuitsProviderAccountsRetrieveRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsRetrieveRequest { + return ApiCircuitsVirtualCircuitTerminationsRetrieveRequest{ 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 VirtualCircuitTermination +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsRetrieveExecute(r ApiCircuitsVirtualCircuitTerminationsRetrieveRequest) (*VirtualCircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -10057,63 +22905,62 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieveExecute(r ApiCircui return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderAccountsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - providerAccountRequest *ProviderAccountRequest +type ApiCircuitsVirtualCircuitTerminationsUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + writableVirtualCircuitTerminationRequest *WritableVirtualCircuitTerminationRequest } -func (r ApiCircuitsProviderAccountsUpdateRequest) ProviderAccountRequest(providerAccountRequest ProviderAccountRequest) ApiCircuitsProviderAccountsUpdateRequest { - r.providerAccountRequest = &providerAccountRequest +func (r ApiCircuitsVirtualCircuitTerminationsUpdateRequest) WritableVirtualCircuitTerminationRequest(writableVirtualCircuitTerminationRequest WritableVirtualCircuitTerminationRequest) ApiCircuitsVirtualCircuitTerminationsUpdateRequest { + r.writableVirtualCircuitTerminationRequest = &writableVirtualCircuitTerminationRequest return r } -func (r ApiCircuitsProviderAccountsUpdateRequest) Execute() (*ProviderAccount, *http.Response, error) { - return r.ApiService.CircuitsProviderAccountsUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTerminationsUpdateRequest) Execute() (*VirtualCircuitTermination, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTerminationsUpdateExecute(r) } /* -CircuitsProviderAccountsUpdate Method for CircuitsProviderAccountsUpdate +CircuitsVirtualCircuitTerminationsUpdate Method for CircuitsVirtualCircuitTerminationsUpdate -Put a provider account object. +Put a virtual 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 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 virtual circuit termination. + @return ApiCircuitsVirtualCircuitTerminationsUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderAccountsUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsUpdateRequest { - return ApiCircuitsProviderAccountsUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTerminationsUpdateRequest { + return ApiCircuitsVirtualCircuitTerminationsUpdateRequest{ 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 VirtualCircuitTermination +func (a *CircuitsAPIService) CircuitsVirtualCircuitTerminationsUpdateExecute(r ApiCircuitsVirtualCircuitTerminationsUpdateRequest) (*VirtualCircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTerminationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-accounts/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-terminations/{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.providerAccountRequest == nil { - return localVarReturnValue, nil, reportError("providerAccountRequest is required and must be specified") + if r.writableVirtualCircuitTerminationRequest == nil { + return localVarReturnValue, nil, reportError("writableVirtualCircuitTerminationRequest is required and must be specified") } // to determine the Content-Type header @@ -10134,7 +22981,7 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerAccountRequest + localVarPostBody = r.writableVirtualCircuitTerminationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10186,56 +23033,56 @@ func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerNetworkRequest *[]ProviderNetworkRequest +type ApiCircuitsVirtualCircuitTypesBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitTypeRequest *[]VirtualCircuitTypeRequest } -func (r ApiCircuitsProviderNetworksBulkDestroyRequest) ProviderNetworkRequest(providerNetworkRequest []ProviderNetworkRequest) ApiCircuitsProviderNetworksBulkDestroyRequest { - r.providerNetworkRequest = &providerNetworkRequest +func (r ApiCircuitsVirtualCircuitTypesBulkDestroyRequest) VirtualCircuitTypeRequest(virtualCircuitTypeRequest []VirtualCircuitTypeRequest) ApiCircuitsVirtualCircuitTypesBulkDestroyRequest { + r.virtualCircuitTypeRequest = &virtualCircuitTypeRequest return r } -func (r ApiCircuitsProviderNetworksBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsProviderNetworksBulkDestroyExecute(r) +func (r ApiCircuitsVirtualCircuitTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesBulkDestroyExecute(r) } /* -CircuitsProviderNetworksBulkDestroy Method for CircuitsProviderNetworksBulkDestroy +CircuitsVirtualCircuitTypesBulkDestroy Method for CircuitsVirtualCircuitTypesBulkDestroy -Delete a list of provider network objects. +Delete a list of virtual circuit type 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 ApiCircuitsVirtualCircuitTypesBulkDestroyRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroy(ctx context.Context) ApiCircuitsProviderNetworksBulkDestroyRequest { - return ApiCircuitsProviderNetworksBulkDestroyRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkDestroyRequest { + return ApiCircuitsVirtualCircuitTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCircuitsProviderNetworksBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkDestroyExecute(r ApiCircuitsVirtualCircuitTypesBulkDestroyRequest) (*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.CircuitsVirtualCircuitTypesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerNetworkRequest == nil { - return nil, reportError("providerNetworkRequest is required and must be specified") + if r.virtualCircuitTypeRequest == nil { + return nil, reportError("virtualCircuitTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -10256,7 +23103,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCir localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerNetworkRequest + localVarPostBody = r.virtualCircuitTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10299,59 +23146,58 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCir return localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerNetworkRequest *[]ProviderNetworkRequest +type ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitTypeRequest *[]VirtualCircuitTypeRequest } -func (r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ProviderNetworkRequest(providerNetworkRequest []ProviderNetworkRequest) ApiCircuitsProviderNetworksBulkPartialUpdateRequest { - r.providerNetworkRequest = &providerNetworkRequest +func (r ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest) VirtualCircuitTypeRequest(virtualCircuitTypeRequest []VirtualCircuitTypeRequest) ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest { + r.virtualCircuitTypeRequest = &virtualCircuitTypeRequest return r } -func (r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) Execute() ([]ProviderNetwork, *http.Response, error) { - return r.ApiService.CircuitsProviderNetworksBulkPartialUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest) Execute() ([]VirtualCircuitType, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesBulkPartialUpdateExecute(r) } /* -CircuitsProviderNetworksBulkPartialUpdate Method for CircuitsProviderNetworksBulkPartialUpdate +CircuitsVirtualCircuitTypesBulkPartialUpdate Method for CircuitsVirtualCircuitTypesBulkPartialUpdate -Patch a list of provider network objects. +Patch a list of virtual circuit type 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 ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkPartialUpdateRequest { - return ApiCircuitsProviderNetworksBulkPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest { + return ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderNetwork -func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdateExecute(r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ([]ProviderNetwork, *http.Response, error) { +// @return []VirtualCircuitType +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest) ([]VirtualCircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderNetwork + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualCircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerNetworkRequest == nil { - return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") + if r.virtualCircuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -10372,7 +23218,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdateExecute(r localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerNetworkRequest + localVarPostBody = r.virtualCircuitTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10424,59 +23270,58 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdateExecute(r return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerNetworkRequest *[]ProviderNetworkRequest +type ApiCircuitsVirtualCircuitTypesBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitTypeRequest *[]VirtualCircuitTypeRequest } -func (r ApiCircuitsProviderNetworksBulkUpdateRequest) ProviderNetworkRequest(providerNetworkRequest []ProviderNetworkRequest) ApiCircuitsProviderNetworksBulkUpdateRequest { - r.providerNetworkRequest = &providerNetworkRequest +func (r ApiCircuitsVirtualCircuitTypesBulkUpdateRequest) VirtualCircuitTypeRequest(virtualCircuitTypeRequest []VirtualCircuitTypeRequest) ApiCircuitsVirtualCircuitTypesBulkUpdateRequest { + r.virtualCircuitTypeRequest = &virtualCircuitTypeRequest return r } -func (r ApiCircuitsProviderNetworksBulkUpdateRequest) Execute() ([]ProviderNetwork, *http.Response, error) { - return r.ApiService.CircuitsProviderNetworksBulkUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTypesBulkUpdateRequest) Execute() ([]VirtualCircuitType, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesBulkUpdateExecute(r) } /* -CircuitsProviderNetworksBulkUpdate Method for CircuitsProviderNetworksBulkUpdate +CircuitsVirtualCircuitTypesBulkUpdate Method for CircuitsVirtualCircuitTypesBulkUpdate -Put a list of provider network objects. +Put a list of virtual circuit type 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 ApiCircuitsVirtualCircuitTypesBulkUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkUpdateRequest { - return ApiCircuitsProviderNetworksBulkUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitTypesBulkUpdateRequest { + return ApiCircuitsVirtualCircuitTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderNetwork -func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCircuitsProviderNetworksBulkUpdateRequest) ([]ProviderNetwork, *http.Response, error) { +// @return []VirtualCircuitType +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesBulkUpdateExecute(r ApiCircuitsVirtualCircuitTypesBulkUpdateRequest) ([]VirtualCircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderNetwork + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualCircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerNetworkRequest == nil { - return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") + if r.virtualCircuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -10497,7 +23342,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCirc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerNetworkRequest + localVarPostBody = r.virtualCircuitTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10549,59 +23394,58 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCirc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerNetworkRequest *ProviderNetworkRequest +type ApiCircuitsVirtualCircuitTypesCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitTypeRequest *VirtualCircuitTypeRequest } -func (r ApiCircuitsProviderNetworksCreateRequest) ProviderNetworkRequest(providerNetworkRequest ProviderNetworkRequest) ApiCircuitsProviderNetworksCreateRequest { - r.providerNetworkRequest = &providerNetworkRequest +func (r ApiCircuitsVirtualCircuitTypesCreateRequest) VirtualCircuitTypeRequest(virtualCircuitTypeRequest VirtualCircuitTypeRequest) ApiCircuitsVirtualCircuitTypesCreateRequest { + r.virtualCircuitTypeRequest = &virtualCircuitTypeRequest return r } -func (r ApiCircuitsProviderNetworksCreateRequest) Execute() (*ProviderNetwork, *http.Response, error) { - return r.ApiService.CircuitsProviderNetworksCreateExecute(r) +func (r ApiCircuitsVirtualCircuitTypesCreateRequest) Execute() (*VirtualCircuitType, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesCreateExecute(r) } /* -CircuitsProviderNetworksCreate Method for CircuitsProviderNetworksCreate +CircuitsVirtualCircuitTypesCreate Method for CircuitsVirtualCircuitTypesCreate -Post a list of provider network objects. +Post a list of virtual circuit type 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 ApiCircuitsVirtualCircuitTypesCreateRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksCreate(ctx context.Context) ApiCircuitsProviderNetworksCreateRequest { - return ApiCircuitsProviderNetworksCreateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesCreate(ctx context.Context) ApiCircuitsVirtualCircuitTypesCreateRequest { + return ApiCircuitsVirtualCircuitTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ProviderNetwork -func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuitsProviderNetworksCreateRequest) (*ProviderNetwork, *http.Response, error) { +// @return VirtualCircuitType +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesCreateExecute(r ApiCircuitsVirtualCircuitTypesCreateRequest) (*VirtualCircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerNetworkRequest == nil { - return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") + if r.virtualCircuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -10622,7 +23466,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerNetworkRequest + localVarPostBody = r.virtualCircuitTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10674,47 +23518,47 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsVirtualCircuitTypesDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsProviderNetworksDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsProviderNetworksDestroyExecute(r) +func (r ApiCircuitsVirtualCircuitTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesDestroyExecute(r) } /* -CircuitsProviderNetworksDestroy Method for CircuitsProviderNetworksDestroy +CircuitsVirtualCircuitTypesDestroy Method for CircuitsVirtualCircuitTypesDestroy -Delete a provider network object. +Delete a virtual 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 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesDestroyRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksDestroy(ctx context.Context, id int32) ApiCircuitsProviderNetworksDestroyRequest { - return ApiCircuitsProviderNetworksDestroyRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesDestroyRequest { + return ApiCircuitsVirtualCircuitTypesDestroyRequest{ 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) CircuitsVirtualCircuitTypesDestroyExecute(r ApiCircuitsVirtualCircuitTypesDestroyRequest) (*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.CircuitsVirtualCircuitTypesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -10780,471 +23624,621 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksDestroyExecute(r ApiCircuit return localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksListRequest struct { - 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 - 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 +type ApiCircuitsVirtualCircuitTypesListRequest struct { + ctx context.Context + ApiService CircuitsAPI + 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 + 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 + 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 +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) Color(color []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.color = &color + return r } -func (r ApiCircuitsProviderNetworksListRequest) Created(created []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorEmpty(colorEmpty bool) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorEmpty = &colorEmpty + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorIc(colorIc []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorIc = &colorIc + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorIe(colorIe []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorIe = &colorIe + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorIew(colorIew []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorIew = &colorIew + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorIsw(colorIsw []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorIsw = &colorIsw + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorN(colorN []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorN = &colorN + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorNic(colorNic []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorNic = &colorNic + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorNie(colorNie []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorNie = &colorNie + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorNiew(colorNiew []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorNiew = &colorNiew + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) ColorNisw(colorNisw []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.colorNisw = &colorNisw + return r +} + +func (r ApiCircuitsVirtualCircuitTypesListRequest) Created(created []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.created = &created return r } -func (r ApiCircuitsProviderNetworksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiCircuitsProviderNetworksListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.createdGt = &createdGt return r } -func (r ApiCircuitsProviderNetworksListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.createdGte = &createdGte return r } -func (r ApiCircuitsProviderNetworksListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.createdLt = &createdLt return r } -func (r ApiCircuitsProviderNetworksListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.createdLte = &createdLte return r } -func (r ApiCircuitsProviderNetworksListRequest) CreatedN(createdN []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) CreatedN(createdN []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.createdN = &createdN return r } -func (r ApiCircuitsProviderNetworksListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsVirtualCircuitTypesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiCircuitsProviderNetworksListRequest) Description(description []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Description(description []string) ApiCircuitsVirtualCircuitTypesListRequest { r.description = &description return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionN(descriptionN []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionN(descriptionN []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiCircuitsProviderNetworksListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsVirtualCircuitTypesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiCircuitsProviderNetworksListRequest) Id(id []int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Id(id []int32) ApiCircuitsVirtualCircuitTypesListRequest { r.id = &id return r } -func (r ApiCircuitsProviderNetworksListRequest) IdEmpty(idEmpty bool) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) IdEmpty(idEmpty bool) ApiCircuitsVirtualCircuitTypesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiCircuitsProviderNetworksListRequest) IdGt(idGt []int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) IdGt(idGt []int32) ApiCircuitsVirtualCircuitTypesListRequest { r.idGt = &idGt return r } -func (r ApiCircuitsProviderNetworksListRequest) IdGte(idGte []int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) IdGte(idGte []int32) ApiCircuitsVirtualCircuitTypesListRequest { r.idGte = &idGte return r } -func (r ApiCircuitsProviderNetworksListRequest) IdLt(idLt []int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) IdLt(idLt []int32) ApiCircuitsVirtualCircuitTypesListRequest { r.idLt = &idLt return r } -func (r ApiCircuitsProviderNetworksListRequest) IdLte(idLte []int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) IdLte(idLte []int32) ApiCircuitsVirtualCircuitTypesListRequest { r.idLte = &idLte return r } -func (r ApiCircuitsProviderNetworksListRequest) IdN(idN []int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) IdN(idN []int32) ApiCircuitsVirtualCircuitTypesListRequest { r.idN = &idN return r } -func (r ApiCircuitsProviderNetworksListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsVirtualCircuitTypesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiCircuitsProviderNetworksListRequest) Limit(limit int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Limit(limit int32) ApiCircuitsVirtualCircuitTypesListRequest { r.limit = &limit return r } -func (r ApiCircuitsProviderNetworksListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsVirtualCircuitTypesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiCircuitsProviderNetworksListRequest) Name(name []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Name(name []string) ApiCircuitsVirtualCircuitTypesListRequest { r.name = &name return r } -func (r ApiCircuitsProviderNetworksListRequest) NameEmpty(nameEmpty bool) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameEmpty(nameEmpty bool) ApiCircuitsVirtualCircuitTypesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiCircuitsProviderNetworksListRequest) NameIc(nameIc []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameIc(nameIc []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameIc = &nameIc return r } -func (r ApiCircuitsProviderNetworksListRequest) NameIe(nameIe []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameIe(nameIe []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameIe = &nameIe return r } -func (r ApiCircuitsProviderNetworksListRequest) NameIew(nameIew []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameIew(nameIew []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameIew = &nameIew return r } -func (r ApiCircuitsProviderNetworksListRequest) NameIsw(nameIsw []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameIsw(nameIsw []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiCircuitsProviderNetworksListRequest) NameN(nameN []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameN(nameN []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameN = &nameN return r } -func (r ApiCircuitsProviderNetworksListRequest) NameNic(nameNic []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameNic(nameNic []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameNic = &nameNic return r } -func (r ApiCircuitsProviderNetworksListRequest) NameNie(nameNie []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameNie(nameNie []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameNie = &nameNie return r } -func (r ApiCircuitsProviderNetworksListRequest) NameNiew(nameNiew []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameNiew(nameNiew []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiCircuitsProviderNetworksListRequest) NameNisw(nameNisw []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) NameNisw(nameNisw []string) ApiCircuitsVirtualCircuitTypesListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiCircuitsProviderNetworksListRequest) Offset(offset int32) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Offset(offset int32) ApiCircuitsVirtualCircuitTypesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiCircuitsProviderNetworksListRequest) Ordering(ordering string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Ordering(ordering string) ApiCircuitsVirtualCircuitTypesListRequest { r.ordering = &ordering return r } -// Provider (slug) -func (r ApiCircuitsProviderNetworksListRequest) Provider(provider []string) ApiCircuitsProviderNetworksListRequest { - r.provider = &provider - return r -} - -// Provider (slug) -func (r ApiCircuitsProviderNetworksListRequest) ProviderN(providerN []string) ApiCircuitsProviderNetworksListRequest { - r.providerN = &providerN - return r -} - -// Provider (ID) -func (r ApiCircuitsProviderNetworksListRequest) ProviderId(providerId []int32) ApiCircuitsProviderNetworksListRequest { - r.providerId = &providerId - return r -} - -// Provider (ID) -func (r ApiCircuitsProviderNetworksListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsProviderNetworksListRequest { - r.providerIdN = &providerIdN - return r -} - // Search -func (r ApiCircuitsProviderNetworksListRequest) Q(q string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Q(q string) ApiCircuitsVirtualCircuitTypesListRequest { r.q = &q return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceId(serviceId []string) ApiCircuitsProviderNetworksListRequest { - r.serviceId = &serviceId +func (r ApiCircuitsVirtualCircuitTypesListRequest) Slug(slug []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slug = &slug return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdEmpty(serviceIdEmpty bool) ApiCircuitsProviderNetworksListRequest { - r.serviceIdEmpty = &serviceIdEmpty +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugEmpty = &slugEmpty return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIc(serviceIdIc []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdIc = &serviceIdIc +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugIc(slugIc []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugIc = &slugIc return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIe(serviceIdIe []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdIe = &serviceIdIe +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugIe(slugIe []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugIe = &slugIe return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIew(serviceIdIew []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdIew = &serviceIdIew +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugIew(slugIew []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugIew = &slugIew return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdIsw(serviceIdIsw []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdIsw = &serviceIdIsw +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugIsw(slugIsw []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugIsw = &slugIsw return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdN(serviceIdN []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdN = &serviceIdN +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugN(slugN []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugN = &slugN return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNic(serviceIdNic []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdNic = &serviceIdNic +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugNic(slugNic []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugNic = &slugNic return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNie(serviceIdNie []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdNie = &serviceIdNie +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugNie(slugNie []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugNie = &slugNie return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNiew(serviceIdNiew []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdNiew = &serviceIdNiew +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugNiew(slugNiew []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugNiew = &slugNiew return r } -func (r ApiCircuitsProviderNetworksListRequest) ServiceIdNisw(serviceIdNisw []string) ApiCircuitsProviderNetworksListRequest { - r.serviceIdNisw = &serviceIdNisw +func (r ApiCircuitsVirtualCircuitTypesListRequest) SlugNisw(slugNisw []string) ApiCircuitsVirtualCircuitTypesListRequest { + r.slugNisw = &slugNisw return r } -func (r ApiCircuitsProviderNetworksListRequest) Tag(tag []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) Tag(tag []string) ApiCircuitsVirtualCircuitTypesListRequest { r.tag = &tag return r } -func (r ApiCircuitsProviderNetworksListRequest) TagN(tagN []string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) TagN(tagN []string) ApiCircuitsVirtualCircuitTypesListRequest { r.tagN = &tagN return r } -func (r ApiCircuitsProviderNetworksListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProviderNetworksListRequest { +func (r ApiCircuitsVirtualCircuitTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsVirtualCircuitTypesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiCircuitsProviderNetworksListRequest) Execute() (*PaginatedProviderNetworkList, *http.Response, error) { - return r.ApiService.CircuitsProviderNetworksListExecute(r) +func (r ApiCircuitsVirtualCircuitTypesListRequest) Execute() (*PaginatedVirtualCircuitTypeList, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesListExecute(r) } /* -CircuitsProviderNetworksList Method for CircuitsProviderNetworksList +CircuitsVirtualCircuitTypesList Method for CircuitsVirtualCircuitTypesList -Get a list of provider network objects. +Get a list of virtual circuit type 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 ApiCircuitsVirtualCircuitTypesListRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksList(ctx context.Context) ApiCircuitsProviderNetworksListRequest { - return ApiCircuitsProviderNetworksListRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesList(ctx context.Context) ApiCircuitsVirtualCircuitTypesListRequest { + return ApiCircuitsVirtualCircuitTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedProviderNetworkList -func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsProviderNetworksListRequest) (*PaginatedProviderNetworkList, *http.Response, error) { +// @return PaginatedVirtualCircuitTypeList +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesListExecute(r ApiCircuitsVirtualCircuitTypesListRequest) (*PaginatedVirtualCircuitTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedProviderNetworkList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVirtualCircuitTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.color != nil { + t := *r.color + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") + } + } + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") + } + if r.colorIc != nil { + t := *r.colorIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") + } + } + if r.colorIe != nil { + t := *r.colorIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") + } + } + if r.colorIew != nil { + t := *r.colorIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") + } + } + if r.colorIsw != nil { + t := *r.colorIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") + } + } + if r.colorN != nil { + t := *r.colorN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") + } + } + if r.colorNic != nil { + t := *r.colorNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") + } + } + if r.colorNie != nil { + t := *r.colorNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") + } + } + if r.colorNiew != nil { + t := *r.colorNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") + } + } + if r.colorNisw != nil { + t := *r.colorNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -11252,10 +24246,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -11263,10 +24257,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -11274,10 +24268,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -11285,10 +24279,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -11296,10 +24290,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -11307,38 +24301,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -11346,10 +24340,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -11357,10 +24351,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -11368,10 +24362,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -11379,10 +24373,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -11390,10 +24384,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -11401,10 +24395,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -11412,10 +24406,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -11423,10 +24417,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -11434,24 +24428,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -11459,10 +24453,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -11470,10 +24464,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -11481,10 +24475,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -11492,10 +24486,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -11503,10 +24497,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -11514,10 +24508,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -11525,10 +24519,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -11536,10 +24530,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -11547,10 +24541,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -11558,10 +24552,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -11569,41 +24563,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -11611,10 +24605,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -11622,10 +24616,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -11633,10 +24627,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -11644,10 +24638,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -11655,10 +24649,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -11666,10 +24660,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -11677,10 +24671,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -11688,176 +24682,132 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.provider != nil { - t := *r.provider - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") - } - } - if r.providerN != nil { - t := *r.providerN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") - } - } - if r.providerId != nil { - t := *r.providerId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") - } - } - if r.providerIdN != nil { - t := *r.providerIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.serviceId != nil { - t := *r.serviceId + if r.slug != nil { + t := *r.slug 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } - if r.serviceIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__empty", r.serviceIdEmpty, "") + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } - if r.serviceIdIc != nil { - t := *r.serviceIdIc + if r.slugIc != nil { + t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.serviceIdIe != nil { - t := *r.serviceIdIe + if r.slugIe != nil { + t := *r.slugIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.serviceIdIew != nil { - t := *r.serviceIdIew + if r.slugIew != nil { + t := *r.slugIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.serviceIdIsw != nil { - t := *r.serviceIdIsw + if r.slugIsw != nil { + t := *r.slugIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.serviceIdN != nil { - t := *r.serviceIdN + if r.slugN != nil { + t := *r.slugN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.serviceIdNic != nil { - t := *r.serviceIdNic + if r.slugNic != nil { + t := *r.slugNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.serviceIdNie != nil { - t := *r.serviceIdNie + if r.slugNie != nil { + t := *r.slugNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } - if r.serviceIdNiew != nil { - t := *r.serviceIdNiew + if r.slugNiew != nil { + t := *r.slugNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.serviceIdNisw != nil { - t := *r.serviceIdNisw + if r.slugNisw != nil { + t := *r.slugNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -11865,10 +24815,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -11876,14 +24826,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11953,56 +24903,55 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedProviderNetworkRequest *PatchedProviderNetworkRequest +type ApiCircuitsVirtualCircuitTypesPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedVirtualCircuitTypeRequest *PatchedVirtualCircuitTypeRequest } -func (r ApiCircuitsProviderNetworksPartialUpdateRequest) PatchedProviderNetworkRequest(patchedProviderNetworkRequest PatchedProviderNetworkRequest) ApiCircuitsProviderNetworksPartialUpdateRequest { - r.patchedProviderNetworkRequest = &patchedProviderNetworkRequest +func (r ApiCircuitsVirtualCircuitTypesPartialUpdateRequest) PatchedVirtualCircuitTypeRequest(patchedVirtualCircuitTypeRequest PatchedVirtualCircuitTypeRequest) ApiCircuitsVirtualCircuitTypesPartialUpdateRequest { + r.patchedVirtualCircuitTypeRequest = &patchedVirtualCircuitTypeRequest return r } -func (r ApiCircuitsProviderNetworksPartialUpdateRequest) Execute() (*ProviderNetwork, *http.Response, error) { - return r.ApiService.CircuitsProviderNetworksPartialUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTypesPartialUpdateRequest) Execute() (*VirtualCircuitType, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesPartialUpdateExecute(r) } /* -CircuitsProviderNetworksPartialUpdate Method for CircuitsProviderNetworksPartialUpdate +CircuitsVirtualCircuitTypesPartialUpdate Method for CircuitsVirtualCircuitTypesPartialUpdate -Patch a provider network object. +Patch a virtual 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 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksPartialUpdateRequest { - return ApiCircuitsProviderNetworksPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesPartialUpdateRequest { + return ApiCircuitsVirtualCircuitTypesPartialUpdateRequest{ 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 VirtualCircuitType +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesPartialUpdateExecute(r ApiCircuitsVirtualCircuitTypesPartialUpdateRequest) (*VirtualCircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -12027,7 +24976,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdateExecute(r ApiC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedProviderNetworkRequest + localVarPostBody = r.patchedVirtualCircuitTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12079,50 +25028,49 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdateExecute(r ApiC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsVirtualCircuitTypesRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsProviderNetworksRetrieveRequest) Execute() (*ProviderNetwork, *http.Response, error) { - return r.ApiService.CircuitsProviderNetworksRetrieveExecute(r) +func (r ApiCircuitsVirtualCircuitTypesRetrieveRequest) Execute() (*VirtualCircuitType, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesRetrieveExecute(r) } /* -CircuitsProviderNetworksRetrieve Method for CircuitsProviderNetworksRetrieve +CircuitsVirtualCircuitTypesRetrieve Method for CircuitsVirtualCircuitTypesRetrieve -Get a provider network object. +Get a virtual 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 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesRetrieveRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieve(ctx context.Context, id int32) ApiCircuitsProviderNetworksRetrieveRequest { - return ApiCircuitsProviderNetworksRetrieveRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesRetrieveRequest { + return ApiCircuitsVirtualCircuitTypesRetrieveRequest{ 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 VirtualCircuitType +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesRetrieveExecute(r ApiCircuitsVirtualCircuitTypesRetrieveRequest) (*VirtualCircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -12197,63 +25145,62 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieveExecute(r ApiCircui return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProviderNetworksUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - providerNetworkRequest *ProviderNetworkRequest +type ApiCircuitsVirtualCircuitTypesUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + virtualCircuitTypeRequest *VirtualCircuitTypeRequest } -func (r ApiCircuitsProviderNetworksUpdateRequest) ProviderNetworkRequest(providerNetworkRequest ProviderNetworkRequest) ApiCircuitsProviderNetworksUpdateRequest { - r.providerNetworkRequest = &providerNetworkRequest +func (r ApiCircuitsVirtualCircuitTypesUpdateRequest) VirtualCircuitTypeRequest(virtualCircuitTypeRequest VirtualCircuitTypeRequest) ApiCircuitsVirtualCircuitTypesUpdateRequest { + r.virtualCircuitTypeRequest = &virtualCircuitTypeRequest return r } -func (r ApiCircuitsProviderNetworksUpdateRequest) Execute() (*ProviderNetwork, *http.Response, error) { - return r.ApiService.CircuitsProviderNetworksUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitTypesUpdateRequest) Execute() (*VirtualCircuitType, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitTypesUpdateExecute(r) } /* -CircuitsProviderNetworksUpdate Method for CircuitsProviderNetworksUpdate +CircuitsVirtualCircuitTypesUpdate Method for CircuitsVirtualCircuitTypesUpdate -Put a provider network object. +Put a virtual 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 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 virtual circuit type. + @return ApiCircuitsVirtualCircuitTypesUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProviderNetworksUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksUpdateRequest { - return ApiCircuitsProviderNetworksUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitTypesUpdateRequest { + return ApiCircuitsVirtualCircuitTypesUpdateRequest{ 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 VirtualCircuitType +func (a *CircuitsAPIService) CircuitsVirtualCircuitTypesUpdateExecute(r ApiCircuitsVirtualCircuitTypesUpdateRequest) (*VirtualCircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/provider-networks/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuit-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.providerNetworkRequest == nil { - return localVarReturnValue, nil, reportError("providerNetworkRequest is required and must be specified") + if r.virtualCircuitTypeRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -12274,7 +25221,7 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerNetworkRequest + localVarPostBody = r.virtualCircuitTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12326,56 +25273,56 @@ func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProvidersBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerRequest *[]ProviderRequest +type ApiCircuitsVirtualCircuitsBulkDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitRequest *[]VirtualCircuitRequest } -func (r ApiCircuitsProvidersBulkDestroyRequest) ProviderRequest(providerRequest []ProviderRequest) ApiCircuitsProvidersBulkDestroyRequest { - r.providerRequest = &providerRequest +func (r ApiCircuitsVirtualCircuitsBulkDestroyRequest) VirtualCircuitRequest(virtualCircuitRequest []VirtualCircuitRequest) ApiCircuitsVirtualCircuitsBulkDestroyRequest { + r.virtualCircuitRequest = &virtualCircuitRequest return r } - -func (r ApiCircuitsProvidersBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsProvidersBulkDestroyExecute(r) + +func (r ApiCircuitsVirtualCircuitsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsBulkDestroyExecute(r) } /* -CircuitsProvidersBulkDestroy Method for CircuitsProvidersBulkDestroy +CircuitsVirtualCircuitsBulkDestroy Method for CircuitsVirtualCircuitsBulkDestroy -Delete a list of provider objects. +Delete a list of virtual circuit 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 ApiCircuitsVirtualCircuitsBulkDestroyRequest */ -func (a *CircuitsAPIService) CircuitsProvidersBulkDestroy(ctx context.Context) ApiCircuitsProvidersBulkDestroyRequest { - return ApiCircuitsProvidersBulkDestroyRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkDestroy(ctx context.Context) ApiCircuitsVirtualCircuitsBulkDestroyRequest { + return ApiCircuitsVirtualCircuitsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsAPIService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsProvidersBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkDestroyExecute(r ApiCircuitsVirtualCircuitsBulkDestroyRequest) (*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.CircuitsVirtualCircuitsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerRequest == nil { - return nil, reportError("providerRequest is required and must be specified") + if r.virtualCircuitRequest == nil { + return nil, reportError("virtualCircuitRequest is required and must be specified") } // to determine the Content-Type header @@ -12396,7 +25343,7 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsPr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerRequest + localVarPostBody = r.virtualCircuitRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12439,59 +25386,58 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsPr return localVarHTTPResponse, nil } -type ApiCircuitsProvidersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerRequest *[]ProviderRequest +type ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitRequest *[]VirtualCircuitRequest } -func (r ApiCircuitsProvidersBulkPartialUpdateRequest) ProviderRequest(providerRequest []ProviderRequest) ApiCircuitsProvidersBulkPartialUpdateRequest { - r.providerRequest = &providerRequest +func (r ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest) VirtualCircuitRequest(virtualCircuitRequest []VirtualCircuitRequest) ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest { + r.virtualCircuitRequest = &virtualCircuitRequest return r } -func (r ApiCircuitsProvidersBulkPartialUpdateRequest) Execute() ([]Provider, *http.Response, error) { - return r.ApiService.CircuitsProvidersBulkPartialUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest) Execute() ([]VirtualCircuit, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsBulkPartialUpdateExecute(r) } /* -CircuitsProvidersBulkPartialUpdate Method for CircuitsProvidersBulkPartialUpdate +CircuitsVirtualCircuitsBulkPartialUpdate Method for CircuitsVirtualCircuitsBulkPartialUpdate -Patch a list of provider objects. +Patch a list of virtual circuit 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 ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdate(ctx context.Context) ApiCircuitsProvidersBulkPartialUpdateRequest { - return ApiCircuitsProvidersBulkPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest { + return ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Provider -func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCircuitsProvidersBulkPartialUpdateRequest) ([]Provider, *http.Response, error) { +// @return []VirtualCircuit +func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkPartialUpdateExecute(r ApiCircuitsVirtualCircuitsBulkPartialUpdateRequest) ([]VirtualCircuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Provider + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualCircuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerRequest == nil { - return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") + if r.virtualCircuitRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitRequest is required and must be specified") } // to determine the Content-Type header @@ -12512,7 +25458,7 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCirc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerRequest + localVarPostBody = r.virtualCircuitRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12564,59 +25510,58 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCirc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProvidersBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerRequest *[]ProviderRequest +type ApiCircuitsVirtualCircuitsBulkUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + virtualCircuitRequest *[]VirtualCircuitRequest } -func (r ApiCircuitsProvidersBulkUpdateRequest) ProviderRequest(providerRequest []ProviderRequest) ApiCircuitsProvidersBulkUpdateRequest { - r.providerRequest = &providerRequest +func (r ApiCircuitsVirtualCircuitsBulkUpdateRequest) VirtualCircuitRequest(virtualCircuitRequest []VirtualCircuitRequest) ApiCircuitsVirtualCircuitsBulkUpdateRequest { + r.virtualCircuitRequest = &virtualCircuitRequest return r } -func (r ApiCircuitsProvidersBulkUpdateRequest) Execute() ([]Provider, *http.Response, error) { - return r.ApiService.CircuitsProvidersBulkUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitsBulkUpdateRequest) Execute() ([]VirtualCircuit, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsBulkUpdateExecute(r) } /* -CircuitsProvidersBulkUpdate Method for CircuitsProvidersBulkUpdate +CircuitsVirtualCircuitsBulkUpdate Method for CircuitsVirtualCircuitsBulkUpdate -Put a list of provider objects. +Put a list of virtual circuit 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 ApiCircuitsVirtualCircuitsBulkUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProvidersBulkUpdate(ctx context.Context) ApiCircuitsProvidersBulkUpdateRequest { - return ApiCircuitsProvidersBulkUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkUpdate(ctx context.Context) ApiCircuitsVirtualCircuitsBulkUpdateRequest { + return ApiCircuitsVirtualCircuitsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Provider -func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsProvidersBulkUpdateRequest) ([]Provider, *http.Response, error) { +// @return []VirtualCircuit +func (a *CircuitsAPIService) CircuitsVirtualCircuitsBulkUpdateExecute(r ApiCircuitsVirtualCircuitsBulkUpdateRequest) ([]VirtualCircuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Provider + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualCircuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerRequest == nil { - return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") + if r.virtualCircuitRequest == nil { + return localVarReturnValue, nil, reportError("virtualCircuitRequest is required and must be specified") } // to determine the Content-Type header @@ -12637,7 +25582,7 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsPro localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerRequest + localVarPostBody = r.virtualCircuitRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12689,59 +25634,58 @@ func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsPro return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProvidersCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - providerRequest *ProviderRequest +type ApiCircuitsVirtualCircuitsCreateRequest struct { + ctx context.Context + ApiService CircuitsAPI + writableVirtualCircuitRequest *WritableVirtualCircuitRequest } -func (r ApiCircuitsProvidersCreateRequest) ProviderRequest(providerRequest ProviderRequest) ApiCircuitsProvidersCreateRequest { - r.providerRequest = &providerRequest +func (r ApiCircuitsVirtualCircuitsCreateRequest) WritableVirtualCircuitRequest(writableVirtualCircuitRequest WritableVirtualCircuitRequest) ApiCircuitsVirtualCircuitsCreateRequest { + r.writableVirtualCircuitRequest = &writableVirtualCircuitRequest return r } -func (r ApiCircuitsProvidersCreateRequest) Execute() (*Provider, *http.Response, error) { - return r.ApiService.CircuitsProvidersCreateExecute(r) +func (r ApiCircuitsVirtualCircuitsCreateRequest) Execute() (*VirtualCircuit, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsCreateExecute(r) } /* -CircuitsProvidersCreate Method for CircuitsProvidersCreate +CircuitsVirtualCircuitsCreate Method for CircuitsVirtualCircuitsCreate -Post a list of provider objects. +Post a list of virtual circuit 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 ApiCircuitsVirtualCircuitsCreateRequest */ -func (a *CircuitsAPIService) CircuitsProvidersCreate(ctx context.Context) ApiCircuitsProvidersCreateRequest { - return ApiCircuitsProvidersCreateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsCreate(ctx context.Context) ApiCircuitsVirtualCircuitsCreateRequest { + return ApiCircuitsVirtualCircuitsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Provider -func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvidersCreateRequest) (*Provider, *http.Response, error) { +// @return VirtualCircuit +func (a *CircuitsAPIService) CircuitsVirtualCircuitsCreateExecute(r ApiCircuitsVirtualCircuitsCreateRequest) (*VirtualCircuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.providerRequest == nil { - return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") + if r.writableVirtualCircuitRequest == nil { + return localVarReturnValue, nil, reportError("writableVirtualCircuitRequest is required and must be specified") } // to determine the Content-Type header @@ -12762,7 +25706,7 @@ func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvide localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerRequest + localVarPostBody = r.writableVirtualCircuitRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12814,47 +25758,47 @@ func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvide return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProvidersDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsVirtualCircuitsDestroyRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsProvidersDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsProvidersDestroyExecute(r) +func (r ApiCircuitsVirtualCircuitsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsDestroyExecute(r) } /* -CircuitsProvidersDestroy Method for CircuitsProvidersDestroy +CircuitsVirtualCircuitsDestroy Method for CircuitsVirtualCircuitsDestroy -Delete a provider object. +Delete a virtual 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 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsDestroyRequest */ -func (a *CircuitsAPIService) CircuitsProvidersDestroy(ctx context.Context, id int32) ApiCircuitsProvidersDestroyRequest { - return ApiCircuitsProvidersDestroyRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsDestroyRequest { + return ApiCircuitsVirtualCircuitsDestroyRequest{ 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) CircuitsVirtualCircuitsDestroyExecute(r ApiCircuitsVirtualCircuitsDestroyRequest) (*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.CircuitsVirtualCircuitsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -12920,696 +25864,694 @@ func (a *CircuitsAPIService) CircuitsProvidersDestroyExecute(r ApiCircuitsProvid return localVarHTTPResponse, nil } -type ApiCircuitsProvidersListRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - 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 - 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 +type ApiCircuitsVirtualCircuitsListRequest struct { + ctx context.Context + ApiService CircuitsAPI + cid *[]string + cidEmpty *bool + cidIc *[]string + cidIe *[]string + cidIew *[]string + cidIsw *[]string + cidN *[]string + cidNic *[]string + cidNie *[]string + cidNiew *[]string + cidNisw *[]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 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 + offset *int32 + ordering *string + provider *[]string + providerN *[]string + providerAccount *[]string + providerAccountN *[]string + providerAccountId *[]int32 + providerAccountIdN *[]int32 + providerId *[]int32 + providerIdN *[]int32 + providerNetworkId *[]int32 + providerNetworkIdN *[]int32 + q *string + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *[]string + typeN *[]string + typeId *[]int32 + typeIdN *[]int32 + updatedByRequest *string +} + +func (r ApiCircuitsVirtualCircuitsListRequest) Cid(cid []string) ApiCircuitsVirtualCircuitsListRequest { + r.cid = &cid + return r } -// ASN -func (r ApiCircuitsProvidersListRequest) Asn(asn []int64) ApiCircuitsProvidersListRequest { - r.asn = &asn +func (r ApiCircuitsVirtualCircuitsListRequest) CidEmpty(cidEmpty bool) ApiCircuitsVirtualCircuitsListRequest { + r.cidEmpty = &cidEmpty return r } -// ASN -func (r ApiCircuitsProvidersListRequest) AsnN(asnN []int64) ApiCircuitsProvidersListRequest { - r.asnN = &asnN +func (r ApiCircuitsVirtualCircuitsListRequest) CidIc(cidIc []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidIc = &cidIc return r } -// ASN (ID) -func (r ApiCircuitsProvidersListRequest) AsnId(asnId []int32) ApiCircuitsProvidersListRequest { - r.asnId = &asnId +func (r ApiCircuitsVirtualCircuitsListRequest) CidIe(cidIe []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidIe = &cidIe return r } -// ASN (ID) -func (r ApiCircuitsProvidersListRequest) AsnIdN(asnIdN []int32) ApiCircuitsProvidersListRequest { - r.asnIdN = &asnIdN +func (r ApiCircuitsVirtualCircuitsListRequest) CidIew(cidIew []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidIew = &cidIew return r } -// Contact -func (r ApiCircuitsProvidersListRequest) Contact(contact []int32) ApiCircuitsProvidersListRequest { - r.contact = &contact +func (r ApiCircuitsVirtualCircuitsListRequest) CidIsw(cidIsw []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidIsw = &cidIsw return r } -// Contact -func (r ApiCircuitsProvidersListRequest) ContactN(contactN []int32) ApiCircuitsProvidersListRequest { - r.contactN = &contactN +func (r ApiCircuitsVirtualCircuitsListRequest) CidN(cidN []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidN = &cidN return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []int32) ApiCircuitsProvidersListRequest { - r.contactGroup = &contactGroup +func (r ApiCircuitsVirtualCircuitsListRequest) CidNic(cidNic []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidNic = &cidNic return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsProvidersListRequest { - r.contactGroupN = &contactGroupN +func (r ApiCircuitsVirtualCircuitsListRequest) CidNie(cidNie []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidNie = &cidNie return r } -// Contact Role -func (r ApiCircuitsProvidersListRequest) ContactRole(contactRole []int32) ApiCircuitsProvidersListRequest { - r.contactRole = &contactRole +func (r ApiCircuitsVirtualCircuitsListRequest) CidNiew(cidNiew []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidNiew = &cidNiew return r } -// Contact Role -func (r ApiCircuitsProvidersListRequest) ContactRoleN(contactRoleN []int32) ApiCircuitsProvidersListRequest { - r.contactRoleN = &contactRoleN +func (r ApiCircuitsVirtualCircuitsListRequest) CidNisw(cidNisw []string) ApiCircuitsVirtualCircuitsListRequest { + r.cidNisw = &cidNisw return r } -func (r ApiCircuitsProvidersListRequest) Created(created []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) Created(created []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.created = &created return r } -func (r ApiCircuitsProvidersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiCircuitsProvidersListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.createdGt = &createdGt return r } -func (r ApiCircuitsProvidersListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.createdGte = &createdGte return r } -func (r ApiCircuitsProvidersListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.createdLt = &createdLt return r } -func (r ApiCircuitsProvidersListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.createdLte = &createdLte return r } -func (r ApiCircuitsProvidersListRequest) CreatedN(createdN []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) CreatedN(createdN []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.createdN = &createdN return r } -func (r ApiCircuitsProvidersListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsVirtualCircuitsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiCircuitsProvidersListRequest) Description(description []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) Description(description []string) ApiCircuitsVirtualCircuitsListRequest { r.description = &description return r } -func (r ApiCircuitsProvidersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsVirtualCircuitsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiCircuitsProvidersListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiCircuitsProvidersListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiCircuitsProvidersListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiCircuitsProvidersListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiCircuitsProvidersListRequest) DescriptionN(descriptionN []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionN(descriptionN []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiCircuitsProvidersListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiCircuitsProvidersListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiCircuitsProvidersListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiCircuitsProvidersListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsVirtualCircuitsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiCircuitsProvidersListRequest) Id(id []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) Id(id []int32) ApiCircuitsVirtualCircuitsListRequest { r.id = &id return r } -func (r ApiCircuitsProvidersListRequest) IdEmpty(idEmpty bool) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) IdEmpty(idEmpty bool) ApiCircuitsVirtualCircuitsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiCircuitsProvidersListRequest) IdGt(idGt []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) IdGt(idGt []int32) ApiCircuitsVirtualCircuitsListRequest { r.idGt = &idGt return r } -func (r ApiCircuitsProvidersListRequest) IdGte(idGte []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) IdGte(idGte []int32) ApiCircuitsVirtualCircuitsListRequest { r.idGte = &idGte return r } -func (r ApiCircuitsProvidersListRequest) IdLt(idLt []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) IdLt(idLt []int32) ApiCircuitsVirtualCircuitsListRequest { r.idLt = &idLt return r } -func (r ApiCircuitsProvidersListRequest) IdLte(idLte []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) IdLte(idLte []int32) ApiCircuitsVirtualCircuitsListRequest { r.idLte = &idLte return r } -func (r ApiCircuitsProvidersListRequest) IdN(idN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) IdN(idN []int32) ApiCircuitsVirtualCircuitsListRequest { r.idN = &idN return r } -func (r ApiCircuitsProvidersListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiCircuitsProvidersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiCircuitsProvidersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiCircuitsProvidersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiCircuitsProvidersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiCircuitsProvidersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiCircuitsProvidersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsVirtualCircuitsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiCircuitsProvidersListRequest) Limit(limit int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) Limit(limit int32) ApiCircuitsVirtualCircuitsListRequest { r.limit = &limit return r } -func (r ApiCircuitsProvidersListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsVirtualCircuitsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiCircuitsProvidersListRequest) Name(name []string) ApiCircuitsProvidersListRequest { - r.name = &name - return r -} - -func (r ApiCircuitsProvidersListRequest) NameEmpty(nameEmpty bool) ApiCircuitsProvidersListRequest { - r.nameEmpty = &nameEmpty +// The initial index from which to return the results. +func (r ApiCircuitsVirtualCircuitsListRequest) Offset(offset int32) ApiCircuitsVirtualCircuitsListRequest { + r.offset = &offset return r } -func (r ApiCircuitsProvidersListRequest) NameIc(nameIc []string) ApiCircuitsProvidersListRequest { - r.nameIc = &nameIc +// Which field to use when ordering the results. +func (r ApiCircuitsVirtualCircuitsListRequest) Ordering(ordering string) ApiCircuitsVirtualCircuitsListRequest { + r.ordering = &ordering return r } -func (r ApiCircuitsProvidersListRequest) NameIe(nameIe []string) ApiCircuitsProvidersListRequest { - r.nameIe = &nameIe +// Provider (slug) +func (r ApiCircuitsVirtualCircuitsListRequest) Provider(provider []string) ApiCircuitsVirtualCircuitsListRequest { + r.provider = &provider return r } -func (r ApiCircuitsProvidersListRequest) NameIew(nameIew []string) ApiCircuitsProvidersListRequest { - r.nameIew = &nameIew +// Provider (slug) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderN(providerN []string) ApiCircuitsVirtualCircuitsListRequest { + r.providerN = &providerN return r } -func (r ApiCircuitsProvidersListRequest) NameIsw(nameIsw []string) ApiCircuitsProvidersListRequest { - r.nameIsw = &nameIsw +// Provider account (account) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderAccount(providerAccount []string) ApiCircuitsVirtualCircuitsListRequest { + r.providerAccount = &providerAccount return r } -func (r ApiCircuitsProvidersListRequest) NameN(nameN []string) ApiCircuitsProvidersListRequest { - r.nameN = &nameN +// Provider account (account) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderAccountN(providerAccountN []string) ApiCircuitsVirtualCircuitsListRequest { + r.providerAccountN = &providerAccountN return r } -func (r ApiCircuitsProvidersListRequest) NameNic(nameNic []string) ApiCircuitsProvidersListRequest { - r.nameNic = &nameNic +// Provider account (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderAccountId(providerAccountId []int32) ApiCircuitsVirtualCircuitsListRequest { + r.providerAccountId = &providerAccountId return r } -func (r ApiCircuitsProvidersListRequest) NameNie(nameNie []string) ApiCircuitsProvidersListRequest { - r.nameNie = &nameNie +// Provider account (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderAccountIdN(providerAccountIdN []int32) ApiCircuitsVirtualCircuitsListRequest { + r.providerAccountIdN = &providerAccountIdN return r } -func (r ApiCircuitsProvidersListRequest) NameNiew(nameNiew []string) ApiCircuitsProvidersListRequest { - r.nameNiew = &nameNiew +// Provider (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderId(providerId []int32) ApiCircuitsVirtualCircuitsListRequest { + r.providerId = &providerId return r } -func (r ApiCircuitsProvidersListRequest) NameNisw(nameNisw []string) ApiCircuitsProvidersListRequest { - r.nameNisw = &nameNisw +// Provider (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsVirtualCircuitsListRequest { + r.providerIdN = &providerIdN return r } -// The initial index from which to return the results. -func (r ApiCircuitsProvidersListRequest) Offset(offset int32) ApiCircuitsProvidersListRequest { - r.offset = &offset +// Provider network (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderNetworkId(providerNetworkId []int32) ApiCircuitsVirtualCircuitsListRequest { + r.providerNetworkId = &providerNetworkId return r } -// Which field to use when ordering the results. -func (r ApiCircuitsProvidersListRequest) Ordering(ordering string) ApiCircuitsProvidersListRequest { - r.ordering = &ordering +// Provider network (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) ProviderNetworkIdN(providerNetworkIdN []int32) ApiCircuitsVirtualCircuitsListRequest { + r.providerNetworkIdN = &providerNetworkIdN return r } // Search -func (r ApiCircuitsProvidersListRequest) Q(q string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) Q(q string) ApiCircuitsVirtualCircuitsListRequest { r.q = &q return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) Region(region []int32) ApiCircuitsProvidersListRequest { - r.region = ®ion +func (r ApiCircuitsVirtualCircuitsListRequest) Status(status []string) ApiCircuitsVirtualCircuitsListRequest { + r.status = &status return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) RegionN(regionN []int32) ApiCircuitsProvidersListRequest { - r.regionN = ®ionN +func (r ApiCircuitsVirtualCircuitsListRequest) StatusEmpty(statusEmpty bool) ApiCircuitsVirtualCircuitsListRequest { + r.statusEmpty = &statusEmpty return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionId(regionId []int32) ApiCircuitsProvidersListRequest { - r.regionId = ®ionId +func (r ApiCircuitsVirtualCircuitsListRequest) StatusIc(statusIc []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusIc = &statusIc return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []int32) ApiCircuitsProvidersListRequest { - r.regionIdN = ®ionIdN +func (r ApiCircuitsVirtualCircuitsListRequest) StatusIe(statusIe []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusIe = &statusIe return r } -// Site (slug) -func (r ApiCircuitsProvidersListRequest) Site(site []string) ApiCircuitsProvidersListRequest { - r.site = &site +func (r ApiCircuitsVirtualCircuitsListRequest) StatusIew(statusIew []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusIew = &statusIew return r } -// Site (slug) -func (r ApiCircuitsProvidersListRequest) SiteN(siteN []string) ApiCircuitsProvidersListRequest { - r.siteN = &siteN +func (r ApiCircuitsVirtualCircuitsListRequest) StatusIsw(statusIsw []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusIsw = &statusIsw return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []int32) ApiCircuitsProvidersListRequest { - r.siteGroup = &siteGroup +func (r ApiCircuitsVirtualCircuitsListRequest) StatusN(statusN []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusN = &statusN return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsProvidersListRequest { - r.siteGroupN = &siteGroupN +func (r ApiCircuitsVirtualCircuitsListRequest) StatusNic(statusNic []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusNic = &statusNic return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsProvidersListRequest { - r.siteGroupId = &siteGroupId +func (r ApiCircuitsVirtualCircuitsListRequest) StatusNie(statusNie []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusNie = &statusNie return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsProvidersListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiCircuitsVirtualCircuitsListRequest) StatusNiew(statusNiew []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusNiew = &statusNiew return r } -// Site -func (r ApiCircuitsProvidersListRequest) SiteId(siteId []int32) ApiCircuitsProvidersListRequest { - r.siteId = &siteId +func (r ApiCircuitsVirtualCircuitsListRequest) StatusNisw(statusNisw []string) ApiCircuitsVirtualCircuitsListRequest { + r.statusNisw = &statusNisw return r } -// Site -func (r ApiCircuitsProvidersListRequest) SiteIdN(siteIdN []int32) ApiCircuitsProvidersListRequest { - r.siteIdN = &siteIdN +func (r ApiCircuitsVirtualCircuitsListRequest) Tag(tag []string) ApiCircuitsVirtualCircuitsListRequest { + r.tag = &tag return r } -func (r ApiCircuitsProvidersListRequest) Slug(slug []string) ApiCircuitsProvidersListRequest { - r.slug = &slug +func (r ApiCircuitsVirtualCircuitsListRequest) TagN(tagN []string) ApiCircuitsVirtualCircuitsListRequest { + r.tagN = &tagN return r } -func (r ApiCircuitsProvidersListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsProvidersListRequest { - r.slugEmpty = &slugEmpty +// Tenant (slug) +func (r ApiCircuitsVirtualCircuitsListRequest) Tenant(tenant []string) ApiCircuitsVirtualCircuitsListRequest { + r.tenant = &tenant return r } -func (r ApiCircuitsProvidersListRequest) SlugIc(slugIc []string) ApiCircuitsProvidersListRequest { - r.slugIc = &slugIc +// Tenant (slug) +func (r ApiCircuitsVirtualCircuitsListRequest) TenantN(tenantN []string) ApiCircuitsVirtualCircuitsListRequest { + r.tenantN = &tenantN return r } -func (r ApiCircuitsProvidersListRequest) SlugIe(slugIe []string) ApiCircuitsProvidersListRequest { - r.slugIe = &slugIe +func (r ApiCircuitsVirtualCircuitsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsVirtualCircuitsListRequest { + r.tenantGroup = &tenantGroup return r } -func (r ApiCircuitsProvidersListRequest) SlugIew(slugIew []string) ApiCircuitsProvidersListRequest { - r.slugIew = &slugIew +func (r ApiCircuitsVirtualCircuitsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsVirtualCircuitsListRequest { + r.tenantGroupN = &tenantGroupN return r } -func (r ApiCircuitsProvidersListRequest) SlugIsw(slugIsw []string) ApiCircuitsProvidersListRequest { - r.slugIsw = &slugIsw +func (r ApiCircuitsVirtualCircuitsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsVirtualCircuitsListRequest { + r.tenantGroupId = &tenantGroupId return r } -func (r ApiCircuitsProvidersListRequest) SlugN(slugN []string) ApiCircuitsProvidersListRequest { - r.slugN = &slugN +func (r ApiCircuitsVirtualCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsVirtualCircuitsListRequest { + r.tenantGroupIdN = &tenantGroupIdN return r } -func (r ApiCircuitsProvidersListRequest) SlugNic(slugNic []string) ApiCircuitsProvidersListRequest { - r.slugNic = &slugNic +// Tenant (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) TenantId(tenantId []*int32) ApiCircuitsVirtualCircuitsListRequest { + r.tenantId = &tenantId return r } -func (r ApiCircuitsProvidersListRequest) SlugNie(slugNie []string) ApiCircuitsProvidersListRequest { - r.slugNie = &slugNie +// Tenant (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsVirtualCircuitsListRequest { + r.tenantIdN = &tenantIdN return r } -func (r ApiCircuitsProvidersListRequest) SlugNiew(slugNiew []string) ApiCircuitsProvidersListRequest { - r.slugNiew = &slugNiew +// Virtual circuit type (slug) +func (r ApiCircuitsVirtualCircuitsListRequest) Type_(type_ []string) ApiCircuitsVirtualCircuitsListRequest { + r.type_ = &type_ return r } -func (r ApiCircuitsProvidersListRequest) SlugNisw(slugNisw []string) ApiCircuitsProvidersListRequest { - r.slugNisw = &slugNisw +// Virtual circuit type (slug) +func (r ApiCircuitsVirtualCircuitsListRequest) TypeN(typeN []string) ApiCircuitsVirtualCircuitsListRequest { + r.typeN = &typeN return r } -func (r ApiCircuitsProvidersListRequest) Tag(tag []string) ApiCircuitsProvidersListRequest { - r.tag = &tag +// Virtual circuit type (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) TypeId(typeId []int32) ApiCircuitsVirtualCircuitsListRequest { + r.typeId = &typeId return r } -func (r ApiCircuitsProvidersListRequest) TagN(tagN []string) ApiCircuitsProvidersListRequest { - r.tagN = &tagN +// Virtual circuit type (ID) +func (r ApiCircuitsVirtualCircuitsListRequest) TypeIdN(typeIdN []int32) ApiCircuitsVirtualCircuitsListRequest { + r.typeIdN = &typeIdN return r } -func (r ApiCircuitsProvidersListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsVirtualCircuitsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsVirtualCircuitsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiCircuitsProvidersListRequest) Execute() (*PaginatedProviderList, *http.Response, error) { - return r.ApiService.CircuitsProvidersListExecute(r) +func (r ApiCircuitsVirtualCircuitsListRequest) Execute() (*PaginatedVirtualCircuitList, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsListExecute(r) } /* -CircuitsProvidersList Method for CircuitsProvidersList +CircuitsVirtualCircuitsList Method for CircuitsVirtualCircuitsList -Get a list of provider objects. +Get a list of virtual circuit 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 ApiCircuitsVirtualCircuitsListRequest */ -func (a *CircuitsAPIService) CircuitsProvidersList(ctx context.Context) ApiCircuitsProvidersListRequest { - return ApiCircuitsProvidersListRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsList(ctx context.Context) ApiCircuitsVirtualCircuitsListRequest { + return ApiCircuitsVirtualCircuitsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedProviderList -func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProvidersListRequest) (*PaginatedProviderList, *http.Response, error) { +// @return PaginatedVirtualCircuitList +func (a *CircuitsAPIService) CircuitsVirtualCircuitsListExecute(r ApiCircuitsVirtualCircuitsListRequest) (*PaginatedVirtualCircuitList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedProviderList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVirtualCircuitList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.asn != nil { - t := *r.asn + if r.cid != nil { + t := *r.cid if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid", t, "form", "multi") } } - if r.asnN != nil { - t := *r.asnN + if r.cidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__empty", r.cidEmpty, "form", "") + } + if r.cidIc != nil { + t := *r.cidIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ic", t, "form", "multi") } } - if r.asnId != nil { - t := *r.asnId + if r.cidIe != nil { + t := *r.cidIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ie", t, "form", "multi") } } - if r.asnIdN != nil { - t := *r.asnIdN + if r.cidIew != nil { + t := *r.cidIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__iew", t, "form", "multi") } } - if r.contact != nil { - t := *r.contact + if r.cidIsw != nil { + t := *r.cidIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__isw", t, "form", "multi") } } - if r.contactN != nil { - t := *r.contactN + if r.cidN != nil { + t := *r.cidN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__n", t, "form", "multi") } } - if r.contactGroup != nil { - t := *r.contactGroup + if r.cidNic != nil { + t := *r.cidNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nic", t, "form", "multi") } } - if r.contactGroupN != nil { - t := *r.contactGroupN + if r.cidNie != nil { + t := *r.cidNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nie", t, "form", "multi") } } - if r.contactRole != nil { - t := *r.contactRole + if r.cidNiew != nil { + t := *r.cidNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__niew", t, "form", "multi") } } - if r.contactRoleN != nil { - t := *r.contactRoleN + if r.cidNisw != nil { + t := *r.cidNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nisw", t, "form", "multi") } } if r.created != nil { @@ -13617,10 +26559,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -13628,10 +26570,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -13639,10 +26581,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -13650,10 +26592,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -13661,10 +26603,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -13672,10 +26614,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -13683,38 +26625,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -13722,10 +26664,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -13733,10 +26675,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -13744,10 +26686,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -13755,10 +26697,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -13766,10 +26708,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -13777,10 +26719,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -13788,10 +26730,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -13799,10 +26741,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -13810,24 +26752,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -13835,10 +26777,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -13846,10 +26788,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -13857,10 +26799,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -13868,10 +26810,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -13879,10 +26821,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -13890,10 +26832,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -13901,10 +26843,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -13912,10 +26854,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -13923,10 +26865,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -13934,10 +26876,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -13945,409 +26887,406 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.name != nil { - t := *r.name + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.provider != nil { + t := *r.provider 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + if r.providerN != nil { + t := *r.providerN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.providerAccount != nil { + t := *r.providerAccount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.providerAccountN != nil { + t := *r.providerAccountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account__n", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.providerAccountId != nil { + t := *r.providerAccountId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.providerAccountIdN != nil { + t := *r.providerAccountIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.providerId != nil { + t := *r.providerId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.providerIdN != nil { + t := *r.providerIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.providerNetworkId != nil { + t := *r.providerNetworkId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.providerNetworkIdN != nil { + t := *r.providerNetworkIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "form", "multi") } } - 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, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.region != nil { - t := *r.region + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + if r.statusIe != nil { + t := *r.statusIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + if r.statusIew != nil { + t := *r.statusIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } } - if r.site != nil { - t := *r.site + if r.statusIsw != nil { + t := *r.statusIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + if r.statusN != nil { + t := *r.statusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + if r.statusNic != nil { + t := *r.statusNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + if r.statusNie != nil { + t := *r.statusNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + if r.statusNiew != nil { + t := *r.statusNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + if r.statusNisw != nil { + t := *r.statusNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.slug != nil { - t := *r.slug + 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, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc + 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, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + 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, "slug__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + 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, "slug__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + 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, "slug__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + 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, "slug__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + 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, "slug__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + 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, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + 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, "slug__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.typeN != nil { + t := *r.typeN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.typeId != nil { + t := *r.typeId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.typeIdN != nil { + t := *r.typeIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14417,56 +27356,55 @@ func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProviders return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProvidersPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedProviderRequest *PatchedProviderRequest +type ApiCircuitsVirtualCircuitsPartialUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + patchedWritableVirtualCircuitRequest *PatchedWritableVirtualCircuitRequest } -func (r ApiCircuitsProvidersPartialUpdateRequest) PatchedProviderRequest(patchedProviderRequest PatchedProviderRequest) ApiCircuitsProvidersPartialUpdateRequest { - r.patchedProviderRequest = &patchedProviderRequest +func (r ApiCircuitsVirtualCircuitsPartialUpdateRequest) PatchedWritableVirtualCircuitRequest(patchedWritableVirtualCircuitRequest PatchedWritableVirtualCircuitRequest) ApiCircuitsVirtualCircuitsPartialUpdateRequest { + r.patchedWritableVirtualCircuitRequest = &patchedWritableVirtualCircuitRequest return r } -func (r ApiCircuitsProvidersPartialUpdateRequest) Execute() (*Provider, *http.Response, error) { - return r.ApiService.CircuitsProvidersPartialUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitsPartialUpdateRequest) Execute() (*VirtualCircuit, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsPartialUpdateExecute(r) } /* -CircuitsProvidersPartialUpdate Method for CircuitsProvidersPartialUpdate +CircuitsVirtualCircuitsPartialUpdate Method for CircuitsVirtualCircuitsPartialUpdate -Patch a provider object. +Patch a virtual 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 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsPartialUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProvidersPartialUpdate(ctx context.Context, id int32) ApiCircuitsProvidersPartialUpdateRequest { - return ApiCircuitsProvidersPartialUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsPartialUpdateRequest { + return ApiCircuitsVirtualCircuitsPartialUpdateRequest{ 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 VirtualCircuit +func (a *CircuitsAPIService) CircuitsVirtualCircuitsPartialUpdateExecute(r ApiCircuitsVirtualCircuitsPartialUpdateRequest) (*VirtualCircuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -14491,7 +27429,7 @@ func (a *CircuitsAPIService) CircuitsProvidersPartialUpdateExecute(r ApiCircuits localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedProviderRequest + localVarPostBody = r.patchedWritableVirtualCircuitRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14543,50 +27481,49 @@ func (a *CircuitsAPIService) CircuitsProvidersPartialUpdateExecute(r ApiCircuits return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProvidersRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 +type ApiCircuitsVirtualCircuitsRetrieveRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 } -func (r ApiCircuitsProvidersRetrieveRequest) Execute() (*Provider, *http.Response, error) { - return r.ApiService.CircuitsProvidersRetrieveExecute(r) +func (r ApiCircuitsVirtualCircuitsRetrieveRequest) Execute() (*VirtualCircuit, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsRetrieveExecute(r) } /* -CircuitsProvidersRetrieve Method for CircuitsProvidersRetrieve +CircuitsVirtualCircuitsRetrieve Method for CircuitsVirtualCircuitsRetrieve -Get a provider object. +Get a virtual 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 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsRetrieveRequest */ -func (a *CircuitsAPIService) CircuitsProvidersRetrieve(ctx context.Context, id int32) ApiCircuitsProvidersRetrieveRequest { - return ApiCircuitsProvidersRetrieveRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsRetrieveRequest { + return ApiCircuitsVirtualCircuitsRetrieveRequest{ 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 VirtualCircuit +func (a *CircuitsAPIService) CircuitsVirtualCircuitsRetrieveExecute(r ApiCircuitsVirtualCircuitsRetrieveRequest) (*VirtualCircuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -14661,63 +27598,62 @@ func (a *CircuitsAPIService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCircuitsProvidersUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - providerRequest *ProviderRequest +type ApiCircuitsVirtualCircuitsUpdateRequest struct { + ctx context.Context + ApiService CircuitsAPI + id int32 + writableVirtualCircuitRequest *WritableVirtualCircuitRequest } -func (r ApiCircuitsProvidersUpdateRequest) ProviderRequest(providerRequest ProviderRequest) ApiCircuitsProvidersUpdateRequest { - r.providerRequest = &providerRequest +func (r ApiCircuitsVirtualCircuitsUpdateRequest) WritableVirtualCircuitRequest(writableVirtualCircuitRequest WritableVirtualCircuitRequest) ApiCircuitsVirtualCircuitsUpdateRequest { + r.writableVirtualCircuitRequest = &writableVirtualCircuitRequest return r } -func (r ApiCircuitsProvidersUpdateRequest) Execute() (*Provider, *http.Response, error) { - return r.ApiService.CircuitsProvidersUpdateExecute(r) +func (r ApiCircuitsVirtualCircuitsUpdateRequest) Execute() (*VirtualCircuit, *http.Response, error) { + return r.ApiService.CircuitsVirtualCircuitsUpdateExecute(r) } /* -CircuitsProvidersUpdate Method for CircuitsProvidersUpdate +CircuitsVirtualCircuitsUpdate Method for CircuitsVirtualCircuitsUpdate -Put a provider object. +Put a virtual 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 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 virtual circuit. + @return ApiCircuitsVirtualCircuitsUpdateRequest */ -func (a *CircuitsAPIService) CircuitsProvidersUpdate(ctx context.Context, id int32) ApiCircuitsProvidersUpdateRequest { - return ApiCircuitsProvidersUpdateRequest{ +func (a *CircuitsAPIService) CircuitsVirtualCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsVirtualCircuitsUpdateRequest { + return ApiCircuitsVirtualCircuitsUpdateRequest{ 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 VirtualCircuit +func (a *CircuitsAPIService) CircuitsVirtualCircuitsUpdateExecute(r ApiCircuitsVirtualCircuitsUpdateRequest) (*VirtualCircuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualCircuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsVirtualCircuitsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/circuits/providers/{id}/" + localVarPath := localBasePath + "/api/circuits/virtual-circuits/{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.providerRequest == nil { - return localVarReturnValue, nil, reportError("providerRequest is required and must be specified") + if r.writableVirtualCircuitRequest == nil { + return localVarReturnValue, nil, reportError("writableVirtualCircuitRequest is required and must be specified") } // to determine the Content-Type header @@ -14738,7 +27674,7 @@ func (a *CircuitsAPIService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvide localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.providerRequest + localVarPostBody = r.writableVirtualCircuitRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { diff --git a/api_cluster_test.go b/api_cluster_test.go new file mode 100644 index 0000000000..8b0d34e79d --- /dev/null +++ b/api_cluster_test.go @@ -0,0 +1,19 @@ +package netbox + +import ( + "context" + "fmt" + "testing" +) + +func TestVirtualizationClustersList(t *testing.T) { + client := HGetClient(t) + + _, r, err := client.VirtualizationAPI.VirtualizationClustersList(context.TODO()).Execute() + if err != nil { + if r != nil { + fmt.Println("body") + } + t.Fatal(err) + } +} diff --git a/api_core.go b/api_core.go index 73022d4199..c7032113e1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,1134 +16,4784 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) -// CoreAPIService CoreAPI service -type CoreAPIService service -type ApiCoreDataFilesListRequest struct { - 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 - 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 -} +type CoreAPI interface { -func (r ApiCoreDataFilesListRequest) Created(created []time.Time) ApiCoreDataFilesListRequest { - r.created = &created - return r -} + /* + CoreBackgroundQueuesRetrieve Method for CoreBackgroundQueuesRetrieve -func (r ApiCoreDataFilesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCoreDataFilesListRequest { - r.createdEmpty = &createdEmpty - return r -} + Retrieve a list of RQ Queues. +Note: Queue names are not URL safe so not returning a detail view. -func (r ApiCoreDataFilesListRequest) CreatedGt(createdGt []time.Time) ApiCoreDataFilesListRequest { - r.createdGt = &createdGt - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreBackgroundQueuesRetrieveRequest + */ + CoreBackgroundQueuesRetrieve(ctx context.Context) ApiCoreBackgroundQueuesRetrieveRequest -func (r ApiCoreDataFilesListRequest) CreatedGte(createdGte []time.Time) ApiCoreDataFilesListRequest { - r.createdGte = &createdGte - return r -} + // CoreBackgroundQueuesRetrieveExecute executes the request + // @return map[string]interface{} + CoreBackgroundQueuesRetrieveExecute(r ApiCoreBackgroundQueuesRetrieveRequest) (map[string]interface{}, *http.Response, error) -func (r ApiCoreDataFilesListRequest) CreatedLt(createdLt []time.Time) ApiCoreDataFilesListRequest { - r.createdLt = &createdLt - return r -} + /* + CoreBackgroundQueuesRetrieve2 Method for CoreBackgroundQueuesRetrieve2 -func (r ApiCoreDataFilesListRequest) CreatedLte(createdLte []time.Time) ApiCoreDataFilesListRequest { - r.createdLte = &createdLte - return r -} + Retrieve a list of RQ Queues. +Note: Queue names are not URL safe so not returning a detail view. -func (r ApiCoreDataFilesListRequest) CreatedN(createdN []time.Time) ApiCoreDataFilesListRequest { - r.createdN = &createdN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name + @return ApiCoreBackgroundQueuesRetrieve2Request + */ + CoreBackgroundQueuesRetrieve2(ctx context.Context, name string) ApiCoreBackgroundQueuesRetrieve2Request -func (r ApiCoreDataFilesListRequest) CreatedByRequest(createdByRequest string) ApiCoreDataFilesListRequest { - r.createdByRequest = &createdByRequest - return r -} + // CoreBackgroundQueuesRetrieve2Execute executes the request + // @return map[string]interface{} + CoreBackgroundQueuesRetrieve2Execute(r ApiCoreBackgroundQueuesRetrieve2Request) (map[string]interface{}, *http.Response, error) -func (r ApiCoreDataFilesListRequest) Hash(hash []string) ApiCoreDataFilesListRequest { - r.hash = &hash - return r -} + /* + CoreBackgroundTasksDeleteCreate Method for CoreBackgroundTasksDeleteCreate -func (r ApiCoreDataFilesListRequest) HashEmpty(hashEmpty bool) ApiCoreDataFilesListRequest { - r.hashEmpty = &hashEmpty - return r -} + Retrieve a list of RQ Tasks. -func (r ApiCoreDataFilesListRequest) HashIc(hashIc []string) ApiCoreDataFilesListRequest { - r.hashIc = &hashIc - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksDeleteCreateRequest + */ + CoreBackgroundTasksDeleteCreate(ctx context.Context, id string) ApiCoreBackgroundTasksDeleteCreateRequest -func (r ApiCoreDataFilesListRequest) HashIe(hashIe []string) ApiCoreDataFilesListRequest { - r.hashIe = &hashIe - return r -} + // CoreBackgroundTasksDeleteCreateExecute executes the request + CoreBackgroundTasksDeleteCreateExecute(r ApiCoreBackgroundTasksDeleteCreateRequest) (*http.Response, error) -func (r ApiCoreDataFilesListRequest) HashIew(hashIew []string) ApiCoreDataFilesListRequest { - r.hashIew = &hashIew - return r -} + /* + CoreBackgroundTasksEnqueueCreate Method for CoreBackgroundTasksEnqueueCreate -func (r ApiCoreDataFilesListRequest) HashIsw(hashIsw []string) ApiCoreDataFilesListRequest { - r.hashIsw = &hashIsw - return r -} + Retrieve a list of RQ Tasks. -func (r ApiCoreDataFilesListRequest) HashN(hashN []string) ApiCoreDataFilesListRequest { - r.hashN = &hashN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksEnqueueCreateRequest + */ + CoreBackgroundTasksEnqueueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksEnqueueCreateRequest -func (r ApiCoreDataFilesListRequest) HashNic(hashNic []string) ApiCoreDataFilesListRequest { - r.hashNic = &hashNic - return r -} + // CoreBackgroundTasksEnqueueCreateExecute executes the request + CoreBackgroundTasksEnqueueCreateExecute(r ApiCoreBackgroundTasksEnqueueCreateRequest) (*http.Response, error) -func (r ApiCoreDataFilesListRequest) HashNie(hashNie []string) ApiCoreDataFilesListRequest { - r.hashNie = &hashNie - return r -} + /* + CoreBackgroundTasksRequeueCreate Method for CoreBackgroundTasksRequeueCreate -func (r ApiCoreDataFilesListRequest) HashNiew(hashNiew []string) ApiCoreDataFilesListRequest { - r.hashNiew = &hashNiew - return r -} + Retrieve a list of RQ Tasks. -func (r ApiCoreDataFilesListRequest) HashNisw(hashNisw []string) ApiCoreDataFilesListRequest { - r.hashNisw = &hashNisw - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksRequeueCreateRequest + */ + CoreBackgroundTasksRequeueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksRequeueCreateRequest -func (r ApiCoreDataFilesListRequest) Id(id []int32) ApiCoreDataFilesListRequest { - r.id = &id - return r -} + // CoreBackgroundTasksRequeueCreateExecute executes the request + CoreBackgroundTasksRequeueCreateExecute(r ApiCoreBackgroundTasksRequeueCreateRequest) (*http.Response, error) -func (r ApiCoreDataFilesListRequest) IdEmpty(idEmpty bool) ApiCoreDataFilesListRequest { - r.idEmpty = &idEmpty - return r -} + /* + CoreBackgroundTasksRetrieve Method for CoreBackgroundTasksRetrieve -func (r ApiCoreDataFilesListRequest) IdGt(idGt []int32) ApiCoreDataFilesListRequest { - r.idGt = &idGt - return r -} + Retrieve a list of RQ Tasks. -func (r ApiCoreDataFilesListRequest) IdGte(idGte []int32) ApiCoreDataFilesListRequest { - r.idGte = &idGte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreBackgroundTasksRetrieveRequest + */ + CoreBackgroundTasksRetrieve(ctx context.Context) ApiCoreBackgroundTasksRetrieveRequest -func (r ApiCoreDataFilesListRequest) IdLt(idLt []int32) ApiCoreDataFilesListRequest { - r.idLt = &idLt - return r -} + // CoreBackgroundTasksRetrieveExecute executes the request + // @return map[string]interface{} + CoreBackgroundTasksRetrieveExecute(r ApiCoreBackgroundTasksRetrieveRequest) (map[string]interface{}, *http.Response, error) -func (r ApiCoreDataFilesListRequest) IdLte(idLte []int32) ApiCoreDataFilesListRequest { - r.idLte = &idLte - return r -} + /* + CoreBackgroundTasksRetrieve2 Method for CoreBackgroundTasksRetrieve2 -func (r ApiCoreDataFilesListRequest) IdN(idN []int32) ApiCoreDataFilesListRequest { - r.idN = &idN - return r -} + Retrieve a list of RQ Tasks. -func (r ApiCoreDataFilesListRequest) LastUpdated(lastUpdated []time.Time) ApiCoreDataFilesListRequest { - r.lastUpdated = &lastUpdated - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksRetrieve2Request + */ + CoreBackgroundTasksRetrieve2(ctx context.Context, id string) ApiCoreBackgroundTasksRetrieve2Request -func (r ApiCoreDataFilesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCoreDataFilesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + // CoreBackgroundTasksRetrieve2Execute executes the request + // @return map[string]interface{} + CoreBackgroundTasksRetrieve2Execute(r ApiCoreBackgroundTasksRetrieve2Request) (map[string]interface{}, *http.Response, error) -func (r ApiCoreDataFilesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCoreDataFilesListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + /* + CoreBackgroundTasksStopCreate Method for CoreBackgroundTasksStopCreate -func (r ApiCoreDataFilesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCoreDataFilesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + Retrieve a list of RQ Tasks. -func (r ApiCoreDataFilesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCoreDataFilesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksStopCreateRequest + */ + CoreBackgroundTasksStopCreate(ctx context.Context, id string) ApiCoreBackgroundTasksStopCreateRequest -func (r ApiCoreDataFilesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCoreDataFilesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + // CoreBackgroundTasksStopCreateExecute executes the request + CoreBackgroundTasksStopCreateExecute(r ApiCoreBackgroundTasksStopCreateRequest) (*http.Response, error) -func (r ApiCoreDataFilesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCoreDataFilesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + /* + CoreBackgroundWorkersRetrieve Method for CoreBackgroundWorkersRetrieve -// Number of results to return per page. -func (r ApiCoreDataFilesListRequest) Limit(limit int32) ApiCoreDataFilesListRequest { - r.limit = &limit - return r -} + Retrieve a list of RQ Workers. -func (r ApiCoreDataFilesListRequest) ModifiedByRequest(modifiedByRequest string) ApiCoreDataFilesListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreBackgroundWorkersRetrieveRequest + */ + CoreBackgroundWorkersRetrieve(ctx context.Context) ApiCoreBackgroundWorkersRetrieveRequest -// The initial index from which to return the results. -func (r ApiCoreDataFilesListRequest) Offset(offset int32) ApiCoreDataFilesListRequest { - r.offset = &offset - return r -} + // CoreBackgroundWorkersRetrieveExecute executes the request + // @return map[string]interface{} + CoreBackgroundWorkersRetrieveExecute(r ApiCoreBackgroundWorkersRetrieveRequest) (map[string]interface{}, *http.Response, error) -// Which field to use when ordering the results. -func (r ApiCoreDataFilesListRequest) Ordering(ordering string) ApiCoreDataFilesListRequest { - r.ordering = &ordering - return r -} + /* + CoreBackgroundWorkersRetrieve2 Method for CoreBackgroundWorkersRetrieve2 -func (r ApiCoreDataFilesListRequest) Path(path []string) ApiCoreDataFilesListRequest { - r.path = &path - return r -} + Retrieve a list of RQ Workers. -func (r ApiCoreDataFilesListRequest) PathEmpty(pathEmpty bool) ApiCoreDataFilesListRequest { - r.pathEmpty = &pathEmpty - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name + @return ApiCoreBackgroundWorkersRetrieve2Request + */ + CoreBackgroundWorkersRetrieve2(ctx context.Context, name string) ApiCoreBackgroundWorkersRetrieve2Request -func (r ApiCoreDataFilesListRequest) PathIc(pathIc []string) ApiCoreDataFilesListRequest { - r.pathIc = &pathIc - return r -} + // CoreBackgroundWorkersRetrieve2Execute executes the request + CoreBackgroundWorkersRetrieve2Execute(r ApiCoreBackgroundWorkersRetrieve2Request) (*http.Response, error) -func (r ApiCoreDataFilesListRequest) PathIe(pathIe []string) ApiCoreDataFilesListRequest { - r.pathIe = &pathIe - return r -} + /* + CoreDataFilesList Method for CoreDataFilesList -func (r ApiCoreDataFilesListRequest) PathIew(pathIew []string) ApiCoreDataFilesListRequest { - r.pathIew = &pathIew - return r -} + Get a list of data file objects. -func (r ApiCoreDataFilesListRequest) PathIsw(pathIsw []string) ApiCoreDataFilesListRequest { - r.pathIsw = &pathIsw - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataFilesListRequest + */ + CoreDataFilesList(ctx context.Context) ApiCoreDataFilesListRequest -func (r ApiCoreDataFilesListRequest) PathN(pathN []string) ApiCoreDataFilesListRequest { - r.pathN = &pathN - return r -} + // CoreDataFilesListExecute executes the request + // @return PaginatedDataFileList + CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) (*PaginatedDataFileList, *http.Response, error) -func (r ApiCoreDataFilesListRequest) PathNic(pathNic []string) ApiCoreDataFilesListRequest { - r.pathNic = &pathNic - return r -} + /* + CoreDataFilesRetrieve Method for CoreDataFilesRetrieve -func (r ApiCoreDataFilesListRequest) PathNie(pathNie []string) ApiCoreDataFilesListRequest { - r.pathNie = &pathNie - return r -} + Get a data file object. -func (r ApiCoreDataFilesListRequest) PathNiew(pathNiew []string) ApiCoreDataFilesListRequest { - r.pathNiew = &pathNiew - 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 data file. + @return ApiCoreDataFilesRetrieveRequest + */ + CoreDataFilesRetrieve(ctx context.Context, id int32) ApiCoreDataFilesRetrieveRequest -func (r ApiCoreDataFilesListRequest) PathNisw(pathNisw []string) ApiCoreDataFilesListRequest { - r.pathNisw = &pathNisw - return r -} + // CoreDataFilesRetrieveExecute executes the request + // @return DataFile + CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieveRequest) (*DataFile, *http.Response, error) -func (r ApiCoreDataFilesListRequest) Q(q string) ApiCoreDataFilesListRequest { - r.q = &q - return r -} + /* + CoreDataSourcesBulkDestroy Method for CoreDataSourcesBulkDestroy -func (r ApiCoreDataFilesListRequest) Size(size []int32) ApiCoreDataFilesListRequest { - r.size = &size - return r -} + Delete a list of data source objects. -func (r ApiCoreDataFilesListRequest) SizeEmpty(sizeEmpty bool) ApiCoreDataFilesListRequest { - r.sizeEmpty = &sizeEmpty - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataSourcesBulkDestroyRequest + */ + CoreDataSourcesBulkDestroy(ctx context.Context) ApiCoreDataSourcesBulkDestroyRequest -func (r ApiCoreDataFilesListRequest) SizeGt(sizeGt []int32) ApiCoreDataFilesListRequest { - r.sizeGt = &sizeGt - return r -} + // CoreDataSourcesBulkDestroyExecute executes the request + CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesBulkDestroyRequest) (*http.Response, error) -func (r ApiCoreDataFilesListRequest) SizeGte(sizeGte []int32) ApiCoreDataFilesListRequest { - r.sizeGte = &sizeGte - return r -} + /* + CoreDataSourcesBulkPartialUpdate Method for CoreDataSourcesBulkPartialUpdate -func (r ApiCoreDataFilesListRequest) SizeLt(sizeLt []int32) ApiCoreDataFilesListRequest { - r.sizeLt = &sizeLt - return r -} + Patch a list of data source objects. -func (r ApiCoreDataFilesListRequest) SizeLte(sizeLte []int32) ApiCoreDataFilesListRequest { - r.sizeLte = &sizeLte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataSourcesBulkPartialUpdateRequest + */ + CoreDataSourcesBulkPartialUpdate(ctx context.Context) ApiCoreDataSourcesBulkPartialUpdateRequest -func (r ApiCoreDataFilesListRequest) SizeN(sizeN []int32) ApiCoreDataFilesListRequest { - r.sizeN = &sizeN - return r -} + // CoreDataSourcesBulkPartialUpdateExecute executes the request + // @return []DataSource + CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSourcesBulkPartialUpdateRequest) ([]DataSource, *http.Response, error) -// Data source (name) -func (r ApiCoreDataFilesListRequest) Source(source []string) ApiCoreDataFilesListRequest { - r.source = &source - return r + /* + 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 + */ + CoreDataSourcesBulkUpdate(ctx context.Context) ApiCoreDataSourcesBulkUpdateRequest + + // CoreDataSourcesBulkUpdateExecute executes the request + // @return []DataSource + CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBulkUpdateRequest) ([]DataSource, *http.Response, error) + + /* + 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 + */ + CoreDataSourcesCreate(ctx context.Context) ApiCoreDataSourcesCreateRequest + + // CoreDataSourcesCreateExecute executes the request + // @return DataSource + CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreateRequest) (*DataSource, *http.Response, error) + + /* + 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 + */ + CoreDataSourcesDestroy(ctx context.Context, id int32) ApiCoreDataSourcesDestroyRequest + + // CoreDataSourcesDestroyExecute executes the request + CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + CoreDataSourcesList(ctx context.Context) ApiCoreDataSourcesListRequest + + // CoreDataSourcesListExecute executes the request + // @return PaginatedDataSourceList + CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequest) (*PaginatedDataSourceList, *http.Response, error) + + /* + 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 + */ + CoreDataSourcesPartialUpdate(ctx context.Context, id int32) ApiCoreDataSourcesPartialUpdateRequest + + // CoreDataSourcesPartialUpdateExecute executes the request + // @return DataSource + CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSourcesPartialUpdateRequest) (*DataSource, *http.Response, error) + + /* + 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 + */ + CoreDataSourcesRetrieve(ctx context.Context, id int32) ApiCoreDataSourcesRetrieveRequest + + // CoreDataSourcesRetrieveExecute executes the request + // @return DataSource + CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetrieveRequest) (*DataSource, *http.Response, error) + + /* + 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 + */ + CoreDataSourcesSyncCreate(ctx context.Context, id int32) ApiCoreDataSourcesSyncCreateRequest + + // CoreDataSourcesSyncCreateExecute executes the request + // @return DataSource + CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSyncCreateRequest) (*DataSource, *http.Response, error) + + /* + 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 + */ + CoreDataSourcesUpdate(ctx context.Context, id int32) ApiCoreDataSourcesUpdateRequest + + // CoreDataSourcesUpdateExecute executes the request + // @return DataSource + CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdateRequest) (*DataSource, *http.Response, error) + + /* + 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 + */ + CoreJobsList(ctx context.Context) ApiCoreJobsListRequest + + // CoreJobsListExecute executes the request + // @return PaginatedJobList + CoreJobsListExecute(r ApiCoreJobsListRequest) (*PaginatedJobList, *http.Response, error) + + /* + 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 + */ + CoreJobsRetrieve(ctx context.Context, id int32) ApiCoreJobsRetrieveRequest + + // CoreJobsRetrieveExecute executes the request + // @return Job + CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) (*Job, *http.Response, error) + + /* + CoreObjectChangesList Method for CoreObjectChangesList + + 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 ApiCoreObjectChangesListRequest + */ + CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest + + // CoreObjectChangesListExecute executes the request + // @return PaginatedObjectChangeList + CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) + + /* + CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve + + 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 ApiCoreObjectChangesRetrieveRequest + */ + CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest + + // CoreObjectChangesRetrieveExecute executes the request + // @return ObjectChange + CoreObjectChangesRetrieveExecute(r ApiCoreObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) } -// Data source (name) -func (r ApiCoreDataFilesListRequest) SourceN(sourceN []string) ApiCoreDataFilesListRequest { - r.sourceN = &sourceN - return r +// CoreAPIService CoreAPI service +type CoreAPIService service + +type ApiCoreBackgroundQueuesRetrieveRequest struct { + ctx context.Context + ApiService CoreAPI } -// Data source (ID) -func (r ApiCoreDataFilesListRequest) SourceId(sourceId []int32) ApiCoreDataFilesListRequest { - r.sourceId = &sourceId - return r +func (r ApiCoreBackgroundQueuesRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CoreBackgroundQueuesRetrieveExecute(r) } -// Data source (ID) -func (r ApiCoreDataFilesListRequest) SourceIdN(sourceIdN []int32) ApiCoreDataFilesListRequest { - r.sourceIdN = &sourceIdN - return r +/* +CoreBackgroundQueuesRetrieve Method for CoreBackgroundQueuesRetrieve + +Retrieve a list of RQ Queues. +Note: Queue names are not URL safe so not returning a detail view. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreBackgroundQueuesRetrieveRequest +*/ +func (a *CoreAPIService) CoreBackgroundQueuesRetrieve(ctx context.Context) ApiCoreBackgroundQueuesRetrieveRequest { + return ApiCoreBackgroundQueuesRetrieveRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiCoreDataFilesListRequest) UpdatedByRequest(updatedByRequest string) ApiCoreDataFilesListRequest { - r.updatedByRequest = &updatedByRequest - return r +// Execute executes the request +// @return map[string]interface{} +func (a *CoreAPIService) CoreBackgroundQueuesRetrieveExecute(r ApiCoreBackgroundQueuesRetrieveRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundQueuesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-queues/" + + 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 } -func (r ApiCoreDataFilesListRequest) Execute() (*PaginatedDataFileList, *http.Response, error) { - return r.ApiService.CoreDataFilesListExecute(r) +type ApiCoreBackgroundQueuesRetrieve2Request struct { + ctx context.Context + ApiService CoreAPI + name string +} + +func (r ApiCoreBackgroundQueuesRetrieve2Request) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CoreBackgroundQueuesRetrieve2Execute(r) } /* -CoreDataFilesList Method for CoreDataFilesList +CoreBackgroundQueuesRetrieve2 Method for CoreBackgroundQueuesRetrieve2 -Get a list of data file objects. +Retrieve a list of RQ Queues. +Note: Queue names are not URL safe so not returning a detail view. - @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(). + @param name + @return ApiCoreBackgroundQueuesRetrieve2Request */ -func (a *CoreAPIService) CoreDataFilesList(ctx context.Context) ApiCoreDataFilesListRequest { - return ApiCoreDataFilesListRequest{ +func (a *CoreAPIService) CoreBackgroundQueuesRetrieve2(ctx context.Context, name string) ApiCoreBackgroundQueuesRetrieve2Request { + return ApiCoreBackgroundQueuesRetrieve2Request{ ApiService: a, - ctx: ctx, + ctx: ctx, + name: name, } } // Execute executes the request -// -// @return PaginatedDataFileList -func (a *CoreAPIService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) (*PaginatedDataFileList, *http.Response, error) { +// @return map[string]interface{} +func (a *CoreAPIService) CoreBackgroundQueuesRetrieve2Execute(r ApiCoreBackgroundQueuesRetrieve2Request) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDataFileList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundQueuesRetrieve2") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/core/data-files/" + localVarPath := localBasePath + "/api/core/background-queues/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.created != nil { - t := *r.created + // 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 ApiCoreBackgroundTasksDeleteCreateRequest struct { + ctx context.Context + ApiService CoreAPI + id string +} + +func (r ApiCoreBackgroundTasksDeleteCreateRequest) Execute() (*http.Response, error) { + return r.ApiService.CoreBackgroundTasksDeleteCreateExecute(r) +} + +/* +CoreBackgroundTasksDeleteCreate Method for CoreBackgroundTasksDeleteCreate + +Retrieve a list of RQ Tasks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksDeleteCreateRequest +*/ +func (a *CoreAPIService) CoreBackgroundTasksDeleteCreate(ctx context.Context, id string) ApiCoreBackgroundTasksDeleteCreateRequest { + return ApiCoreBackgroundTasksDeleteCreateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CoreAPIService) CoreBackgroundTasksDeleteCreateExecute(r ApiCoreBackgroundTasksDeleteCreateRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksDeleteCreate") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-tasks/{id}/delete/" + 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 ApiCoreBackgroundTasksEnqueueCreateRequest struct { + ctx context.Context + ApiService CoreAPI + id string +} + +func (r ApiCoreBackgroundTasksEnqueueCreateRequest) Execute() (*http.Response, error) { + return r.ApiService.CoreBackgroundTasksEnqueueCreateExecute(r) +} + +/* +CoreBackgroundTasksEnqueueCreate Method for CoreBackgroundTasksEnqueueCreate + +Retrieve a list of RQ Tasks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksEnqueueCreateRequest +*/ +func (a *CoreAPIService) CoreBackgroundTasksEnqueueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksEnqueueCreateRequest { + return ApiCoreBackgroundTasksEnqueueCreateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CoreAPIService) CoreBackgroundTasksEnqueueCreateExecute(r ApiCoreBackgroundTasksEnqueueCreateRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksEnqueueCreate") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-tasks/{id}/enqueue/" + 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 ApiCoreBackgroundTasksRequeueCreateRequest struct { + ctx context.Context + ApiService CoreAPI + id string +} + +func (r ApiCoreBackgroundTasksRequeueCreateRequest) Execute() (*http.Response, error) { + return r.ApiService.CoreBackgroundTasksRequeueCreateExecute(r) +} + +/* +CoreBackgroundTasksRequeueCreate Method for CoreBackgroundTasksRequeueCreate + +Retrieve a list of RQ Tasks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksRequeueCreateRequest +*/ +func (a *CoreAPIService) CoreBackgroundTasksRequeueCreate(ctx context.Context, id string) ApiCoreBackgroundTasksRequeueCreateRequest { + return ApiCoreBackgroundTasksRequeueCreateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CoreAPIService) CoreBackgroundTasksRequeueCreateExecute(r ApiCoreBackgroundTasksRequeueCreateRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksRequeueCreate") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-tasks/{id}/requeue/" + 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 ApiCoreBackgroundTasksRetrieveRequest struct { + ctx context.Context + ApiService CoreAPI +} + +func (r ApiCoreBackgroundTasksRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CoreBackgroundTasksRetrieveExecute(r) +} + +/* +CoreBackgroundTasksRetrieve Method for CoreBackgroundTasksRetrieve + +Retrieve a list of RQ Tasks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreBackgroundTasksRetrieveRequest +*/ +func (a *CoreAPIService) CoreBackgroundTasksRetrieve(ctx context.Context) ApiCoreBackgroundTasksRetrieveRequest { + return ApiCoreBackgroundTasksRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CoreAPIService) CoreBackgroundTasksRetrieveExecute(r ApiCoreBackgroundTasksRetrieveRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-tasks/" + + 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 ApiCoreBackgroundTasksRetrieve2Request struct { + ctx context.Context + ApiService CoreAPI + id string +} + +func (r ApiCoreBackgroundTasksRetrieve2Request) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CoreBackgroundTasksRetrieve2Execute(r) +} + +/* +CoreBackgroundTasksRetrieve2 Method for CoreBackgroundTasksRetrieve2 + +Retrieve a list of RQ Tasks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksRetrieve2Request +*/ +func (a *CoreAPIService) CoreBackgroundTasksRetrieve2(ctx context.Context, id string) ApiCoreBackgroundTasksRetrieve2Request { + return ApiCoreBackgroundTasksRetrieve2Request{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CoreAPIService) CoreBackgroundTasksRetrieve2Execute(r ApiCoreBackgroundTasksRetrieve2Request) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksRetrieve2") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-tasks/{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 ApiCoreBackgroundTasksStopCreateRequest struct { + ctx context.Context + ApiService CoreAPI + id string +} + +func (r ApiCoreBackgroundTasksStopCreateRequest) Execute() (*http.Response, error) { + return r.ApiService.CoreBackgroundTasksStopCreateExecute(r) +} + +/* +CoreBackgroundTasksStopCreate Method for CoreBackgroundTasksStopCreate + +Retrieve a list of RQ Tasks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiCoreBackgroundTasksStopCreateRequest +*/ +func (a *CoreAPIService) CoreBackgroundTasksStopCreate(ctx context.Context, id string) ApiCoreBackgroundTasksStopCreateRequest { + return ApiCoreBackgroundTasksStopCreateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CoreAPIService) CoreBackgroundTasksStopCreateExecute(r ApiCoreBackgroundTasksStopCreateRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundTasksStopCreate") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-tasks/{id}/stop/" + 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 ApiCoreBackgroundWorkersRetrieveRequest struct { + ctx context.Context + ApiService CoreAPI +} + +func (r ApiCoreBackgroundWorkersRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CoreBackgroundWorkersRetrieveExecute(r) +} + +/* +CoreBackgroundWorkersRetrieve Method for CoreBackgroundWorkersRetrieve + +Retrieve a list of RQ Workers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreBackgroundWorkersRetrieveRequest +*/ +func (a *CoreAPIService) CoreBackgroundWorkersRetrieve(ctx context.Context) ApiCoreBackgroundWorkersRetrieveRequest { + return ApiCoreBackgroundWorkersRetrieveRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CoreAPIService) CoreBackgroundWorkersRetrieveExecute(r ApiCoreBackgroundWorkersRetrieveRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundWorkersRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-workers/" + + 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 ApiCoreBackgroundWorkersRetrieve2Request struct { + ctx context.Context + ApiService CoreAPI + name string +} + +func (r ApiCoreBackgroundWorkersRetrieve2Request) Execute() (*http.Response, error) { + return r.ApiService.CoreBackgroundWorkersRetrieve2Execute(r) +} + +/* +CoreBackgroundWorkersRetrieve2 Method for CoreBackgroundWorkersRetrieve2 + +Retrieve a list of RQ Workers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name + @return ApiCoreBackgroundWorkersRetrieve2Request +*/ +func (a *CoreAPIService) CoreBackgroundWorkersRetrieve2(ctx context.Context, name string) ApiCoreBackgroundWorkersRetrieve2Request { + return ApiCoreBackgroundWorkersRetrieve2Request{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +func (a *CoreAPIService) CoreBackgroundWorkersRetrieve2Execute(r ApiCoreBackgroundWorkersRetrieve2Request) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreBackgroundWorkersRetrieve2") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/background-workers/{name}/" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterValueToString(r.name, "name")), -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 ApiCoreDataFilesListRequest struct { + ctx context.Context + ApiService CoreAPI + 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 + 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 +} + +func (r ApiCoreDataFilesListRequest) Created(created []time.Time) ApiCoreDataFilesListRequest { + r.created = &created + 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 +} + +func (r ApiCoreDataFilesListRequest) CreatedGte(createdGte []time.Time) ApiCoreDataFilesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCoreDataFilesListRequest) CreatedLt(createdLt []time.Time) ApiCoreDataFilesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCoreDataFilesListRequest) CreatedLte(createdLte []time.Time) ApiCoreDataFilesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCoreDataFilesListRequest) CreatedN(createdN []time.Time) ApiCoreDataFilesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCoreDataFilesListRequest) CreatedByRequest(createdByRequest string) ApiCoreDataFilesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCoreDataFilesListRequest) Hash(hash []string) ApiCoreDataFilesListRequest { + r.hash = &hash + return r +} + +func (r ApiCoreDataFilesListRequest) HashEmpty(hashEmpty bool) ApiCoreDataFilesListRequest { + r.hashEmpty = &hashEmpty + return r +} + +func (r ApiCoreDataFilesListRequest) HashIc(hashIc []string) ApiCoreDataFilesListRequest { + r.hashIc = &hashIc + return r +} + +func (r ApiCoreDataFilesListRequest) HashIe(hashIe []string) ApiCoreDataFilesListRequest { + r.hashIe = &hashIe + return r +} + +func (r ApiCoreDataFilesListRequest) HashIew(hashIew []string) ApiCoreDataFilesListRequest { + r.hashIew = &hashIew + return r +} + +func (r ApiCoreDataFilesListRequest) HashIsw(hashIsw []string) ApiCoreDataFilesListRequest { + r.hashIsw = &hashIsw + return r +} + +func (r ApiCoreDataFilesListRequest) HashN(hashN []string) ApiCoreDataFilesListRequest { + r.hashN = &hashN + return r +} + +func (r ApiCoreDataFilesListRequest) HashNic(hashNic []string) ApiCoreDataFilesListRequest { + r.hashNic = &hashNic + return r +} + +func (r ApiCoreDataFilesListRequest) HashNie(hashNie []string) ApiCoreDataFilesListRequest { + r.hashNie = &hashNie + return r +} + +func (r ApiCoreDataFilesListRequest) HashNiew(hashNiew []string) ApiCoreDataFilesListRequest { + r.hashNiew = &hashNiew + return r +} + +func (r ApiCoreDataFilesListRequest) HashNisw(hashNisw []string) ApiCoreDataFilesListRequest { + r.hashNisw = &hashNisw + return r +} + +func (r ApiCoreDataFilesListRequest) Id(id []int32) ApiCoreDataFilesListRequest { + r.id = &id + 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 +} + +func (r ApiCoreDataFilesListRequest) IdGte(idGte []int32) ApiCoreDataFilesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCoreDataFilesListRequest) IdLt(idLt []int32) ApiCoreDataFilesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCoreDataFilesListRequest) IdLte(idLte []int32) ApiCoreDataFilesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCoreDataFilesListRequest) IdN(idN []int32) ApiCoreDataFilesListRequest { + r.idN = &idN + return r +} + +func (r ApiCoreDataFilesListRequest) LastUpdated(lastUpdated []time.Time) ApiCoreDataFilesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiCoreDataFilesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCoreDataFilesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCoreDataFilesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCoreDataFilesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCoreDataFilesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCoreDataFilesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCoreDataFilesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCoreDataFilesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCoreDataFilesListRequest) Limit(limit int32) ApiCoreDataFilesListRequest { + r.limit = &limit + 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 + return r +} + +// Which field to use when ordering the results. +func (r ApiCoreDataFilesListRequest) Ordering(ordering string) ApiCoreDataFilesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiCoreDataFilesListRequest) Path(path []string) ApiCoreDataFilesListRequest { + r.path = &path + return r +} + +func (r ApiCoreDataFilesListRequest) PathEmpty(pathEmpty bool) ApiCoreDataFilesListRequest { + r.pathEmpty = &pathEmpty + return r +} + +func (r ApiCoreDataFilesListRequest) PathIc(pathIc []string) ApiCoreDataFilesListRequest { + r.pathIc = &pathIc + return r +} + +func (r ApiCoreDataFilesListRequest) PathIe(pathIe []string) ApiCoreDataFilesListRequest { + r.pathIe = &pathIe + return r +} + +func (r ApiCoreDataFilesListRequest) PathIew(pathIew []string) ApiCoreDataFilesListRequest { + r.pathIew = &pathIew + return r +} + +func (r ApiCoreDataFilesListRequest) PathIsw(pathIsw []string) ApiCoreDataFilesListRequest { + r.pathIsw = &pathIsw + return r +} + +func (r ApiCoreDataFilesListRequest) PathN(pathN []string) ApiCoreDataFilesListRequest { + r.pathN = &pathN + return r +} + +func (r ApiCoreDataFilesListRequest) PathNic(pathNic []string) ApiCoreDataFilesListRequest { + r.pathNic = &pathNic + return r +} + +func (r ApiCoreDataFilesListRequest) PathNie(pathNie []string) ApiCoreDataFilesListRequest { + r.pathNie = &pathNie + return r +} + +func (r ApiCoreDataFilesListRequest) PathNiew(pathNiew []string) ApiCoreDataFilesListRequest { + r.pathNiew = &pathNiew + return r +} + +func (r ApiCoreDataFilesListRequest) PathNisw(pathNisw []string) ApiCoreDataFilesListRequest { + r.pathNisw = &pathNisw + return r +} + +func (r ApiCoreDataFilesListRequest) Q(q string) ApiCoreDataFilesListRequest { + r.q = &q + return r +} + +func (r ApiCoreDataFilesListRequest) Size(size []int32) ApiCoreDataFilesListRequest { + r.size = &size + 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 +} + +func (r ApiCoreDataFilesListRequest) SizeGte(sizeGte []int32) ApiCoreDataFilesListRequest { + r.sizeGte = &sizeGte + return r +} + +func (r ApiCoreDataFilesListRequest) SizeLt(sizeLt []int32) ApiCoreDataFilesListRequest { + r.sizeLt = &sizeLt + return r +} + +func (r ApiCoreDataFilesListRequest) SizeLte(sizeLte []int32) ApiCoreDataFilesListRequest { + r.sizeLte = &sizeLte + return r +} + +func (r ApiCoreDataFilesListRequest) SizeN(sizeN []int32) ApiCoreDataFilesListRequest { + r.sizeN = &sizeN + return r +} + +// Data source (name) +func (r ApiCoreDataFilesListRequest) Source(source []string) ApiCoreDataFilesListRequest { + r.source = &source + return r +} + +// Data source (name) +func (r ApiCoreDataFilesListRequest) SourceN(sourceN []string) ApiCoreDataFilesListRequest { + r.sourceN = &sourceN + return r +} + +// Data source (ID) +func (r ApiCoreDataFilesListRequest) SourceId(sourceId []int32) ApiCoreDataFilesListRequest { + r.sourceId = &sourceId + return r +} + +// Data source (ID) +func (r ApiCoreDataFilesListRequest) SourceIdN(sourceIdN []int32) ApiCoreDataFilesListRequest { + r.sourceIdN = &sourceIdN + return r +} + +func (r ApiCoreDataFilesListRequest) UpdatedByRequest(updatedByRequest string) ApiCoreDataFilesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCoreDataFilesListRequest) Execute() (*PaginatedDataFileList, *http.Response, error) { + return r.ApiService.CoreDataFilesListExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataFilesList(ctx context.Context) ApiCoreDataFilesListRequest { + return ApiCoreDataFilesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedDataFileList +func (a *CoreAPIService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) (*PaginatedDataFileList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDataFileList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-files/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + if r.hash != nil { + t := *r.hash + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash", t, "form", "multi") + } + } + if r.hashEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__empty", r.hashEmpty, "form", "") + } + if r.hashIc != nil { + t := *r.hashIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ic", t, "form", "multi") + } + } + if r.hashIe != nil { + t := *r.hashIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ie", t, "form", "multi") + } + } + if r.hashIew != nil { + t := *r.hashIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__iew", t, "form", "multi") + } + } + if r.hashIsw != nil { + t := *r.hashIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__isw", t, "form", "multi") + } + } + if r.hashN != nil { + t := *r.hashN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__n", t, "form", "multi") + } + } + if r.hashNic != nil { + t := *r.hashNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nic", t, "form", "multi") + } + } + if r.hashNie != nil { + t := *r.hashNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nie", t, "form", "multi") + } + } + if r.hashNiew != nil { + t := *r.hashNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__niew", t, "form", "multi") + } + } + if r.hashNisw != nil { + t := *r.hashNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.path != nil { + t := *r.path + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "path", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path", t, "form", "multi") + } + } + if r.pathEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__empty", r.pathEmpty, "form", "") + } + if r.pathIc != nil { + t := *r.pathIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__ic", t, "form", "multi") + } + } + if r.pathIe != nil { + t := *r.pathIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__ie", t, "form", "multi") + } + } + if r.pathIew != nil { + t := *r.pathIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__iew", t, "form", "multi") + } + } + if r.pathIsw != nil { + t := *r.pathIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__isw", t, "form", "multi") + } + } + if r.pathN != nil { + t := *r.pathN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__n", t, "form", "multi") + } + } + if r.pathNic != nil { + t := *r.pathNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__nic", t, "form", "multi") + } + } + if r.pathNie != nil { + t := *r.pathNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__nie", t, "form", "multi") + } + } + if r.pathNiew != nil { + t := *r.pathNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__niew", t, "form", "multi") + } + } + if r.pathNisw != nil { + t := *r.pathNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "path__nisw", t, "form", "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.size != nil { + t := *r.size + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "size", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "size", t, "form", "multi") + } + } + if r.sizeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__empty", r.sizeEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", t, "form", "multi") + } + } + if r.sizeGte != nil { + t := *r.sizeGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", t, "form", "multi") + } + } + if r.sizeLt != nil { + t := *r.sizeLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", t, "form", "multi") + } + } + if r.sizeLte != nil { + t := *r.sizeLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", t, "form", "multi") + } + } + if r.sizeN != nil { + t := *r.sizeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", t, "form", "multi") + } + } + if r.source != nil { + t := *r.source + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "source", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "source", t, "form", "multi") + } + } + if r.sourceN != nil { + t := *r.sourceN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "source__n", t, "form", "multi") + } + } + if r.sourceId != nil { + t := *r.sourceId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "source_id", t, "form", "multi") + } + } + if r.sourceIdN != nil { + t := *r.sourceIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "source_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiCoreDataFilesRetrieveRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 +} + +func (r ApiCoreDataFilesRetrieveRequest) Execute() (*DataFile, *http.Response, error) { + return r.ApiService.CoreDataFilesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataFilesRetrieve(ctx context.Context, id int32) ApiCoreDataFilesRetrieveRequest { + return ApiCoreDataFilesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return DataFile +func (a *CoreAPIService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieveRequest) (*DataFile, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-files/{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 ApiCoreDataSourcesBulkDestroyRequest struct { + ctx context.Context + ApiService CoreAPI + dataSourceRequest *[]DataSourceRequest +} + +func (r ApiCoreDataSourcesBulkDestroyRequest) DataSourceRequest(dataSourceRequest []DataSourceRequest) ApiCoreDataSourcesBulkDestroyRequest { + r.dataSourceRequest = &dataSourceRequest + return r +} + +func (r ApiCoreDataSourcesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CoreDataSourcesBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataSourcesBulkDestroy(ctx context.Context) ApiCoreDataSourcesBulkDestroyRequest { + return ApiCoreDataSourcesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CoreAPIService) CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-sources/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.dataSourceRequest == nil { + return nil, reportError("dataSourceRequest 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.dataSourceRequest + 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 ApiCoreDataSourcesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService CoreAPI + dataSourceRequest *[]DataSourceRequest +} + +func (r ApiCoreDataSourcesBulkPartialUpdateRequest) DataSourceRequest(dataSourceRequest []DataSourceRequest) ApiCoreDataSourcesBulkPartialUpdateRequest { + r.dataSourceRequest = &dataSourceRequest + return r +} + +func (r ApiCoreDataSourcesBulkPartialUpdateRequest) Execute() ([]DataSource, *http.Response, error) { + return r.ApiService.CoreDataSourcesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdate(ctx context.Context) ApiCoreDataSourcesBulkPartialUpdateRequest { + return ApiCoreDataSourcesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []DataSource +func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSourcesBulkPartialUpdateRequest) ([]DataSource, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DataSource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-sources/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.dataSourceRequest == nil { + return localVarReturnValue, nil, reportError("dataSourceRequest 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.dataSourceRequest + 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 ApiCoreDataSourcesBulkUpdateRequest struct { + ctx context.Context + ApiService CoreAPI + dataSourceRequest *[]DataSourceRequest +} + +func (r ApiCoreDataSourcesBulkUpdateRequest) DataSourceRequest(dataSourceRequest []DataSourceRequest) ApiCoreDataSourcesBulkUpdateRequest { + r.dataSourceRequest = &dataSourceRequest + return r +} + +func (r ApiCoreDataSourcesBulkUpdateRequest) Execute() ([]DataSource, *http.Response, error) { + return r.ApiService.CoreDataSourcesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataSourcesBulkUpdate(ctx context.Context) ApiCoreDataSourcesBulkUpdateRequest { + return ApiCoreDataSourcesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []DataSource +func (a *CoreAPIService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBulkUpdateRequest) ([]DataSource, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DataSource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-sources/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.dataSourceRequest == nil { + return localVarReturnValue, nil, reportError("dataSourceRequest 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.dataSourceRequest + 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 ApiCoreDataSourcesCreateRequest struct { + ctx context.Context + ApiService CoreAPI + writableDataSourceRequest *WritableDataSourceRequest +} + +func (r ApiCoreDataSourcesCreateRequest) WritableDataSourceRequest(writableDataSourceRequest WritableDataSourceRequest) ApiCoreDataSourcesCreateRequest { + r.writableDataSourceRequest = &writableDataSourceRequest + return r +} + +func (r ApiCoreDataSourcesCreateRequest) Execute() (*DataSource, *http.Response, error) { + return r.ApiService.CoreDataSourcesCreateExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataSourcesCreate(ctx context.Context) ApiCoreDataSourcesCreateRequest { + return ApiCoreDataSourcesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreateRequest) (*DataSource, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataSource + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-sources/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableDataSourceRequest == nil { + return localVarReturnValue, nil, reportError("writableDataSourceRequest 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.writableDataSourceRequest + 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 ApiCoreDataSourcesDestroyRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 +} + +func (r ApiCoreDataSourcesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CoreDataSourcesDestroyExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataSourcesDestroy(ctx context.Context, id int32) ApiCoreDataSourcesDestroyRequest { + return ApiCoreDataSourcesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-sources/{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 ApiCoreDataSourcesListRequest struct { + ctx context.Context + ApiService CoreAPI + 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 + lastSynced *[]time.Time + lastSyncedEmpty *bool + lastSyncedGt *[]time.Time + lastSyncedGte *[]time.Time + lastSyncedLt *[]time.Time + lastSyncedLte *[]time.Time + lastSyncedN *[]time.Time + 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 + sourceUrl *[]string + sourceUrlEmpty *bool + sourceUrlIc *[]string + sourceUrlIe *[]string + sourceUrlIew *[]string + sourceUrlIsw *[]string + sourceUrlN *[]string + sourceUrlNic *[]string + sourceUrlNie *[]string + sourceUrlNiew *[]string + sourceUrlNisw *[]string + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + updatedByRequest *string +} + +func (r ApiCoreDataSourcesListRequest) Created(created []time.Time) ApiCoreDataSourcesListRequest { + r.created = &created + 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 +} + +func (r ApiCoreDataSourcesListRequest) CreatedGte(createdGte []time.Time) ApiCoreDataSourcesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCoreDataSourcesListRequest) CreatedLt(createdLt []time.Time) ApiCoreDataSourcesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCoreDataSourcesListRequest) CreatedLte(createdLte []time.Time) ApiCoreDataSourcesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCoreDataSourcesListRequest) CreatedN(createdN []time.Time) ApiCoreDataSourcesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCoreDataSourcesListRequest) CreatedByRequest(createdByRequest string) ApiCoreDataSourcesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCoreDataSourcesListRequest) Description(description []string) ApiCoreDataSourcesListRequest { + r.description = &description + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCoreDataSourcesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionIc(descriptionIc []string) ApiCoreDataSourcesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionIe(descriptionIe []string) ApiCoreDataSourcesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionIew(descriptionIew []string) ApiCoreDataSourcesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionIsw(descriptionIsw []string) ApiCoreDataSourcesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionN(descriptionN []string) ApiCoreDataSourcesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionNic(descriptionNic []string) ApiCoreDataSourcesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionNie(descriptionNie []string) ApiCoreDataSourcesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionNiew(descriptionNiew []string) ApiCoreDataSourcesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCoreDataSourcesListRequest) DescriptionNisw(descriptionNisw []string) ApiCoreDataSourcesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCoreDataSourcesListRequest) Enabled(enabled bool) ApiCoreDataSourcesListRequest { + r.enabled = &enabled + return r +} + +func (r ApiCoreDataSourcesListRequest) Id(id []int32) ApiCoreDataSourcesListRequest { + r.id = &id + 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 +} + +func (r ApiCoreDataSourcesListRequest) IdGte(idGte []int32) ApiCoreDataSourcesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCoreDataSourcesListRequest) IdLt(idLt []int32) ApiCoreDataSourcesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCoreDataSourcesListRequest) IdLte(idLte []int32) ApiCoreDataSourcesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCoreDataSourcesListRequest) IdN(idN []int32) ApiCoreDataSourcesListRequest { + r.idN = &idN + return r +} + +func (r ApiCoreDataSourcesListRequest) LastSynced(lastSynced []time.Time) ApiCoreDataSourcesListRequest { + r.lastSynced = &lastSynced + return r +} + +func (r ApiCoreDataSourcesListRequest) LastSyncedEmpty(lastSyncedEmpty bool) ApiCoreDataSourcesListRequest { + r.lastSyncedEmpty = &lastSyncedEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) LastSyncedGt(lastSyncedGt []time.Time) ApiCoreDataSourcesListRequest { + r.lastSyncedGt = &lastSyncedGt + return r +} + +func (r ApiCoreDataSourcesListRequest) LastSyncedGte(lastSyncedGte []time.Time) ApiCoreDataSourcesListRequest { + r.lastSyncedGte = &lastSyncedGte + return r +} + +func (r ApiCoreDataSourcesListRequest) LastSyncedLt(lastSyncedLt []time.Time) ApiCoreDataSourcesListRequest { + r.lastSyncedLt = &lastSyncedLt + return r +} + +func (r ApiCoreDataSourcesListRequest) LastSyncedLte(lastSyncedLte []time.Time) ApiCoreDataSourcesListRequest { + r.lastSyncedLte = &lastSyncedLte + return r +} + +func (r ApiCoreDataSourcesListRequest) LastSyncedN(lastSyncedN []time.Time) ApiCoreDataSourcesListRequest { + r.lastSyncedN = &lastSyncedN + return r +} + +func (r ApiCoreDataSourcesListRequest) LastUpdated(lastUpdated []time.Time) ApiCoreDataSourcesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiCoreDataSourcesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCoreDataSourcesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCoreDataSourcesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCoreDataSourcesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCoreDataSourcesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCoreDataSourcesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCoreDataSourcesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCoreDataSourcesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCoreDataSourcesListRequest) Limit(limit int32) ApiCoreDataSourcesListRequest { + r.limit = &limit + 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 +} + +func (r ApiCoreDataSourcesListRequest) NameEmpty(nameEmpty bool) ApiCoreDataSourcesListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) NameIc(nameIc []string) ApiCoreDataSourcesListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiCoreDataSourcesListRequest) NameIe(nameIe []string) ApiCoreDataSourcesListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiCoreDataSourcesListRequest) NameIew(nameIew []string) ApiCoreDataSourcesListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiCoreDataSourcesListRequest) NameIsw(nameIsw []string) ApiCoreDataSourcesListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiCoreDataSourcesListRequest) NameN(nameN []string) ApiCoreDataSourcesListRequest { + r.nameN = &nameN + return r +} + +func (r ApiCoreDataSourcesListRequest) NameNic(nameNic []string) ApiCoreDataSourcesListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiCoreDataSourcesListRequest) NameNie(nameNie []string) ApiCoreDataSourcesListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiCoreDataSourcesListRequest) NameNiew(nameNiew []string) ApiCoreDataSourcesListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiCoreDataSourcesListRequest) NameNisw(nameNisw []string) ApiCoreDataSourcesListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCoreDataSourcesListRequest) Offset(offset int32) ApiCoreDataSourcesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCoreDataSourcesListRequest) Ordering(ordering string) ApiCoreDataSourcesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCoreDataSourcesListRequest) Q(q string) ApiCoreDataSourcesListRequest { + r.q = &q + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrl(sourceUrl []string) ApiCoreDataSourcesListRequest { + r.sourceUrl = &sourceUrl + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlEmpty(sourceUrlEmpty bool) ApiCoreDataSourcesListRequest { + r.sourceUrlEmpty = &sourceUrlEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlIc(sourceUrlIc []string) ApiCoreDataSourcesListRequest { + r.sourceUrlIc = &sourceUrlIc + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlIe(sourceUrlIe []string) ApiCoreDataSourcesListRequest { + r.sourceUrlIe = &sourceUrlIe + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlIew(sourceUrlIew []string) ApiCoreDataSourcesListRequest { + r.sourceUrlIew = &sourceUrlIew + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlIsw(sourceUrlIsw []string) ApiCoreDataSourcesListRequest { + r.sourceUrlIsw = &sourceUrlIsw + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlN(sourceUrlN []string) ApiCoreDataSourcesListRequest { + r.sourceUrlN = &sourceUrlN + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlNic(sourceUrlNic []string) ApiCoreDataSourcesListRequest { + r.sourceUrlNic = &sourceUrlNic + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlNie(sourceUrlNie []string) ApiCoreDataSourcesListRequest { + r.sourceUrlNie = &sourceUrlNie + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlNiew(sourceUrlNiew []string) ApiCoreDataSourcesListRequest { + r.sourceUrlNiew = &sourceUrlNiew + return r +} + +func (r ApiCoreDataSourcesListRequest) SourceUrlNisw(sourceUrlNisw []string) ApiCoreDataSourcesListRequest { + r.sourceUrlNisw = &sourceUrlNisw + return r +} + +func (r ApiCoreDataSourcesListRequest) Status(status []string) ApiCoreDataSourcesListRequest { + r.status = &status + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusEmpty(statusEmpty bool) ApiCoreDataSourcesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIc(statusIc []string) ApiCoreDataSourcesListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIe(statusIe []string) ApiCoreDataSourcesListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIew(statusIew []string) ApiCoreDataSourcesListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIsw(statusIsw []string) ApiCoreDataSourcesListRequest { + r.statusIsw = &statusIsw + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusN(statusN []string) ApiCoreDataSourcesListRequest { + r.statusN = &statusN + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusNic(statusNic []string) ApiCoreDataSourcesListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusNie(statusNie []string) ApiCoreDataSourcesListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusNiew(statusNiew []string) ApiCoreDataSourcesListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusNisw(statusNisw []string) ApiCoreDataSourcesListRequest { + r.statusNisw = &statusNisw + return r +} + +func (r ApiCoreDataSourcesListRequest) Tag(tag []string) ApiCoreDataSourcesListRequest { + r.tag = &tag + return r +} + +func (r ApiCoreDataSourcesListRequest) TagN(tagN []string) ApiCoreDataSourcesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCoreDataSourcesListRequest) Type_(type_ []string) ApiCoreDataSourcesListRequest { + r.type_ = &type_ + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeEmpty(typeEmpty bool) ApiCoreDataSourcesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIc(typeIc []string) ApiCoreDataSourcesListRequest { + r.typeIc = &typeIc + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIe(typeIe []string) ApiCoreDataSourcesListRequest { + r.typeIe = &typeIe + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIew(typeIew []string) ApiCoreDataSourcesListRequest { + r.typeIew = &typeIew + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIsw(typeIsw []string) ApiCoreDataSourcesListRequest { + r.typeIsw = &typeIsw + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeN(typeN []string) ApiCoreDataSourcesListRequest { + r.typeN = &typeN + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeNic(typeNic []string) ApiCoreDataSourcesListRequest { + r.typeNic = &typeNic + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeNie(typeNie []string) ApiCoreDataSourcesListRequest { + r.typeNie = &typeNie + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeNiew(typeNiew []string) ApiCoreDataSourcesListRequest { + r.typeNiew = &typeNiew + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeNisw(typeNisw []string) ApiCoreDataSourcesListRequest { + r.typeNisw = &typeNisw + return r +} + +func (r ApiCoreDataSourcesListRequest) UpdatedByRequest(updatedByRequest string) ApiCoreDataSourcesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCoreDataSourcesListRequest) Execute() (*PaginatedDataSourceList, *http.Response, error) { + return r.ApiService.CoreDataSourcesListExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreDataSourcesList(ctx context.Context) ApiCoreDataSourcesListRequest { + return ApiCoreDataSourcesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedDataSourceList +func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequest) (*PaginatedDataSourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDataSourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/data-sources/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.lastSynced != nil { + t := *r.lastSynced + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced", t, "form", "multi") + } + } + if r.lastSyncedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__empty", r.lastSyncedEmpty, "form", "") + } + if r.lastSyncedGt != nil { + t := *r.lastSyncedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gt", t, "form", "multi") + } + } + if r.lastSyncedGte != nil { + t := *r.lastSyncedGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gte", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.lastSyncedLt != nil { + t := *r.lastSyncedLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lt", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.lastSyncedLte != nil { + t := *r.lastSyncedLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lte", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.lastSyncedN != nil { + t := *r.lastSyncedN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__n", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.hash != nil { - t := *r.hash + 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, "hash", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.hashEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__empty", r.hashEmpty, "") - } - if r.hashIc != nil { - t := *r.hashIc + 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, "hash__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.hashIe != nil { - t := *r.hashIe + 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, "hash__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.hashIew != nil { - t := *r.hashIew + 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, "hash__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.hashIsw != nil { - t := *r.hashIsw + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "hash__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.hashN != nil { - t := *r.hashN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "hash__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.hashNic != nil { - t := *r.hashNic + 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, "hash__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.hashNie != nil { - t := *r.hashNie + 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, "hash__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.hashNiew != nil { - t := *r.hashNiew + 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, "hash__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.hashNisw != nil { - t := *r.hashNisw + 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, "hash__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt + 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, "id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + 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, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + 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, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.sourceUrl != nil { + t := *r.sourceUrl 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.sourceUrlEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__empty", r.sourceUrlEmpty, "form", "") + } + if r.sourceUrlIc != nil { + t := *r.sourceUrlIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ic", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.sourceUrlIe != nil { + t := *r.sourceUrlIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ie", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.sourceUrlIew != nil { + t := *r.sourceUrlIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__iew", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.sourceUrlIsw != nil { + t := *r.sourceUrlIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__isw", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.sourceUrlN != nil { + t := *r.sourceUrlN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__n", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.sourceUrlNic != nil { + t := *r.sourceUrlNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nic", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.sourceUrlNie != nil { + t := *r.sourceUrlNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nie", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.sourceUrlNiew != nil { + t := *r.sourceUrlNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__niew", t, "form", "multi") } } - 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, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.path != nil { - t := *r.path + if r.sourceUrlNisw != nil { + t := *r.sourceUrlNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nisw", t, "form", "multi") } } - if r.pathEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__empty", r.pathEmpty, "") - } - if r.pathIc != nil { - t := *r.pathIc + 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, "path__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.pathIe != nil { - t := *r.pathIe + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.pathIew != nil { - t := *r.pathIew + if r.statusIe != nil { + t := *r.statusIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.pathIsw != nil { - t := *r.pathIsw + if r.statusIew != nil { + t := *r.statusIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } } - if r.pathN != nil { - t := *r.pathN + if r.statusIsw != nil { + t := *r.statusIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.pathNic != nil { - t := *r.pathNic + if r.statusN != nil { + t := *r.statusN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.pathNie != nil { - t := *r.pathNie + if r.statusNic != nil { + t := *r.statusNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.pathNiew != nil { - t := *r.pathNiew + if r.statusNie != nil { + t := *r.statusNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.pathNisw != nil { - t := *r.pathNisw + if r.statusNiew != nil { + t := *r.statusNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.size != nil { - t := *r.size + if r.statusNisw != nil { + t := *r.statusNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } - if r.sizeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__empty", r.sizeEmpty, "") - } - if r.sizeGt != nil { - t := *r.sizeGt + 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, "size__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.sizeGte != nil { - t := *r.sizeGte + 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, "size__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.sizeLt != nil { - t := *r.sizeLt + 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, "size__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") } } - if r.sizeLte != nil { - t := *r.sizeLte + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") } } - if r.sizeN != nil { - t := *r.sizeN + if r.typeIe != nil { + t := *r.typeIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") } } - if r.source != nil { - t := *r.source + if r.typeIew != nil { + t := *r.typeIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") } } - if r.sourceN != nil { - t := *r.sourceN + if r.typeIsw != nil { + t := *r.typeIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") } } - if r.sourceId != nil { - t := *r.sourceId + if r.typeN != nil { + t := *r.typeN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") } } - if r.sourceIdN != nil { - t := *r.sourceIdN + if r.typeNic != nil { + t := *r.typeNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_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 - } - } - } - 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 + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "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.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCoreDataFilesRetrieveRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 -} - -func (r ApiCoreDataFilesRetrieveRequest) Execute() (*DataFile, *http.Response, error) { - return r.ApiService.CoreDataFilesRetrieveExecute(r) -} - -/* -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 -*/ -func (a *CoreAPIService) CoreDataFilesRetrieve(ctx context.Context, id int32) ApiCoreDataFilesRetrieveRequest { - return ApiCoreDataFilesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return DataFile -func (a *CoreAPIService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieveRequest) (*DataFile, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - - localVarPath := localBasePath + "/api/core/data-files/{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{} @@ -1212,173 +4862,60 @@ func (a *CoreAPIService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCoreDataSourcesBulkDestroyRequest struct { - ctx context.Context - ApiService *CoreAPIService - dataSourceRequest *[]DataSourceRequest -} - -func (r ApiCoreDataSourcesBulkDestroyRequest) DataSourceRequest(dataSourceRequest []DataSourceRequest) ApiCoreDataSourcesBulkDestroyRequest { - r.dataSourceRequest = &dataSourceRequest - return r -} - -func (r ApiCoreDataSourcesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CoreDataSourcesBulkDestroyExecute(r) -} - -/* -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 -*/ -func (a *CoreAPIService) CoreDataSourcesBulkDestroy(ctx context.Context) ApiCoreDataSourcesBulkDestroyRequest { - return ApiCoreDataSourcesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *CoreAPIService) CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/core/data-sources/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.dataSourceRequest == nil { - return nil, reportError("dataSourceRequest 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.dataSourceRequest - 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 ApiCoreDataSourcesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CoreAPIService - dataSourceRequest *[]DataSourceRequest +type ApiCoreDataSourcesPartialUpdateRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 + patchedWritableDataSourceRequest *PatchedWritableDataSourceRequest } -func (r ApiCoreDataSourcesBulkPartialUpdateRequest) DataSourceRequest(dataSourceRequest []DataSourceRequest) ApiCoreDataSourcesBulkPartialUpdateRequest { - r.dataSourceRequest = &dataSourceRequest +func (r ApiCoreDataSourcesPartialUpdateRequest) PatchedWritableDataSourceRequest(patchedWritableDataSourceRequest PatchedWritableDataSourceRequest) ApiCoreDataSourcesPartialUpdateRequest { + r.patchedWritableDataSourceRequest = &patchedWritableDataSourceRequest return r } -func (r ApiCoreDataSourcesBulkPartialUpdateRequest) Execute() ([]DataSource, *http.Response, error) { - return r.ApiService.CoreDataSourcesBulkPartialUpdateExecute(r) +func (r ApiCoreDataSourcesPartialUpdateRequest) Execute() (*DataSource, *http.Response, error) { + return r.ApiService.CoreDataSourcesPartialUpdateExecute(r) } /* -CoreDataSourcesBulkPartialUpdate Method for CoreDataSourcesBulkPartialUpdate +CoreDataSourcesPartialUpdate Method for CoreDataSourcesPartialUpdate -Patch a list of data source objects. +Patch a data source object. - @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(). + @param id A unique integer value identifying this data source. + @return ApiCoreDataSourcesPartialUpdateRequest */ -func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdate(ctx context.Context) ApiCoreDataSourcesBulkPartialUpdateRequest { - return ApiCoreDataSourcesBulkPartialUpdateRequest{ +func (a *CoreAPIService) CoreDataSourcesPartialUpdate(ctx context.Context, id int32) ApiCoreDataSourcesPartialUpdateRequest { + return ApiCoreDataSourcesPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []DataSource -func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSourcesBulkPartialUpdateRequest) ([]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.CoreDataSourcesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/core/data-sources/" + localVarPath := localBasePath + "/api/core/data-sources/{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.dataSourceRequest == nil { - return localVarReturnValue, nil, reportError("dataSourceRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -1398,7 +4935,7 @@ func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.dataSourceRequest + localVarPostBody = r.patchedWritableDataSourceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -1450,63 +4987,57 @@ func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCoreDataSourcesBulkUpdateRequest struct { - ctx context.Context - ApiService *CoreAPIService - dataSourceRequest *[]DataSourceRequest -} - -func (r ApiCoreDataSourcesBulkUpdateRequest) DataSourceRequest(dataSourceRequest []DataSourceRequest) ApiCoreDataSourcesBulkUpdateRequest { - r.dataSourceRequest = &dataSourceRequest - return r +type ApiCoreDataSourcesRetrieveRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 } -func (r ApiCoreDataSourcesBulkUpdateRequest) Execute() ([]DataSource, *http.Response, error) { - return r.ApiService.CoreDataSourcesBulkUpdateExecute(r) +func (r ApiCoreDataSourcesRetrieveRequest) Execute() (*DataSource, *http.Response, error) { + return r.ApiService.CoreDataSourcesRetrieveExecute(r) } /* -CoreDataSourcesBulkUpdate Method for CoreDataSourcesBulkUpdate +CoreDataSourcesRetrieve Method for CoreDataSourcesRetrieve -Put a list of data source objects. +Get a data source object. - @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(). + @param id A unique integer value identifying this data source. + @return ApiCoreDataSourcesRetrieveRequest */ -func (a *CoreAPIService) CoreDataSourcesBulkUpdate(ctx context.Context) ApiCoreDataSourcesBulkUpdateRequest { - return ApiCoreDataSourcesBulkUpdateRequest{ +func (a *CoreAPIService) CoreDataSourcesRetrieve(ctx context.Context, id int32) ApiCoreDataSourcesRetrieveRequest { + return ApiCoreDataSourcesRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []DataSource -func (a *CoreAPIService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBulkUpdateRequest) ([]DataSource, *http.Response, error) { +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetrieveRequest) (*DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DataSource + localVarHTTPMethod = http.MethodGet + 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.CoreDataSourcesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/core/data-sources/" + localVarPath := localBasePath + "/api/core/data-sources/{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.dataSourceRequest == nil { - return localVarReturnValue, nil, reportError("dataSourceRequest 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) @@ -1522,8 +5053,6 @@ func (a *CoreAPIService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBu if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.dataSourceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -1575,53 +5104,56 @@ func (a *CoreAPIService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCoreDataSourcesCreateRequest struct { - ctx context.Context - ApiService *CoreAPIService +type ApiCoreDataSourcesSyncCreateRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 writableDataSourceRequest *WritableDataSourceRequest } -func (r ApiCoreDataSourcesCreateRequest) WritableDataSourceRequest(writableDataSourceRequest WritableDataSourceRequest) ApiCoreDataSourcesCreateRequest { +func (r ApiCoreDataSourcesSyncCreateRequest) WritableDataSourceRequest(writableDataSourceRequest WritableDataSourceRequest) ApiCoreDataSourcesSyncCreateRequest { r.writableDataSourceRequest = &writableDataSourceRequest return r } -func (r ApiCoreDataSourcesCreateRequest) Execute() (*DataSource, *http.Response, error) { - return r.ApiService.CoreDataSourcesCreateExecute(r) +func (r ApiCoreDataSourcesSyncCreateRequest) Execute() (*DataSource, *http.Response, error) { + return r.ApiService.CoreDataSourcesSyncCreateExecute(r) } /* -CoreDataSourcesCreate Method for CoreDataSourcesCreate +CoreDataSourcesSyncCreate Method for CoreDataSourcesSyncCreate -Post a list of data source objects. +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(). - @return ApiCoreDataSourcesCreateRequest + @param ctx 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) CoreDataSourcesCreate(ctx context.Context) ApiCoreDataSourcesCreateRequest { - return ApiCoreDataSourcesCreateRequest{ +func (a *CoreAPIService) CoreDataSourcesSyncCreate(ctx context.Context, id int32) ApiCoreDataSourcesSyncCreateRequest { + return ApiCoreDataSourcesSyncCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DataSource -func (a *CoreAPIService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreateRequest) (*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.CoreDataSourcesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesSyncCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/core/data-sources/" + localVarPath := localBasePath + "/api/core/data-sources/{id}/sync/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1700,44 +5232,52 @@ func (a *CoreAPIService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCoreDataSourcesDestroyRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 +type ApiCoreDataSourcesUpdateRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 + writableDataSourceRequest *WritableDataSourceRequest } -func (r ApiCoreDataSourcesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CoreDataSourcesDestroyExecute(r) +func (r ApiCoreDataSourcesUpdateRequest) WritableDataSourceRequest(writableDataSourceRequest WritableDataSourceRequest) ApiCoreDataSourcesUpdateRequest { + r.writableDataSourceRequest = &writableDataSourceRequest + return r +} + +func (r ApiCoreDataSourcesUpdateRequest) Execute() (*DataSource, *http.Response, error) { + return r.ApiService.CoreDataSourcesUpdateExecute(r) } /* -CoreDataSourcesDestroy Method for CoreDataSourcesDestroy +CoreDataSourcesUpdate Method for CoreDataSourcesUpdate -Delete a data source object. +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 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 ApiCoreDataSourcesUpdateRequest */ -func (a *CoreAPIService) CoreDataSourcesDestroy(ctx context.Context, id int32) ApiCoreDataSourcesDestroyRequest { - return ApiCoreDataSourcesDestroyRequest{ +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 -func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestroyRequest) (*http.Response, error) { +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdateRequest) (*DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/core/data-sources/{id}/" @@ -1746,9 +5286,12 @@ func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestr localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.writableDataSourceRequest == nil { + return localVarReturnValue, nil, reportError("writableDataSourceRequest 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) @@ -1757,13 +5300,15 @@ func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestr } // 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.writableDataSourceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -1780,19 +5325,19 @@ func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestr } 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 { @@ -1800,731 +5345,495 @@ func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestr body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiCoreDataSourcesListRequest struct { - 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 - 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 - lastSynced *[]time.Time - lastSyncedEmpty *bool - lastSyncedGt *[]time.Time - lastSyncedGte *[]time.Time - lastSyncedLt *[]time.Time - lastSyncedLte *[]time.Time - lastSyncedN *[]time.Time - 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 - sourceUrl *[]string - sourceUrlEmpty *bool - sourceUrlIc *[]string - sourceUrlIe *[]string - sourceUrlIew *[]string - sourceUrlIsw *[]string - sourceUrlN *[]string - sourceUrlNic *[]string - sourceUrlNie *[]string - sourceUrlNiew *[]string - sourceUrlNisw *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string -} - -func (r ApiCoreDataSourcesListRequest) Created(created []time.Time) ApiCoreDataSourcesListRequest { - r.created = &created - 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 -} - -func (r ApiCoreDataSourcesListRequest) CreatedGte(createdGte []time.Time) ApiCoreDataSourcesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiCoreDataSourcesListRequest) CreatedLt(createdLt []time.Time) ApiCoreDataSourcesListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiCoreDataSourcesListRequest) CreatedLte(createdLte []time.Time) ApiCoreDataSourcesListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiCoreDataSourcesListRequest) CreatedN(createdN []time.Time) ApiCoreDataSourcesListRequest { - r.createdN = &createdN - return r -} - -func (r ApiCoreDataSourcesListRequest) CreatedByRequest(createdByRequest string) ApiCoreDataSourcesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiCoreDataSourcesListRequest) Description(description []string) ApiCoreDataSourcesListRequest { - r.description = &description - return r -} - -func (r ApiCoreDataSourcesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCoreDataSourcesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiCoreDataSourcesListRequest) DescriptionIc(descriptionIc []string) ApiCoreDataSourcesListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiCoreDataSourcesListRequest) DescriptionIe(descriptionIe []string) ApiCoreDataSourcesListRequest { - r.descriptionIe = &descriptionIe - 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 ApiCoreDataSourcesListRequest) DescriptionIew(descriptionIew []string) ApiCoreDataSourcesListRequest { - r.descriptionIew = &descriptionIew - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiCoreDataSourcesListRequest) DescriptionIsw(descriptionIsw []string) ApiCoreDataSourcesListRequest { - r.descriptionIsw = &descriptionIsw - return r +type ApiCoreJobsListRequest struct { + ctx context.Context + ApiService CoreAPI + completed *time.Time + completedAfter *time.Time + completedBefore *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 + jobId *string + 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 + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + user *int32 + userN *int32 } -func (r ApiCoreDataSourcesListRequest) DescriptionN(descriptionN []string) ApiCoreDataSourcesListRequest { - r.descriptionN = &descriptionN +func (r ApiCoreJobsListRequest) Completed(completed time.Time) ApiCoreJobsListRequest { + r.completed = &completed return r } -func (r ApiCoreDataSourcesListRequest) DescriptionNic(descriptionNic []string) ApiCoreDataSourcesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiCoreJobsListRequest) CompletedAfter(completedAfter time.Time) ApiCoreJobsListRequest { + r.completedAfter = &completedAfter return r } -func (r ApiCoreDataSourcesListRequest) DescriptionNie(descriptionNie []string) ApiCoreDataSourcesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiCoreJobsListRequest) CompletedBefore(completedBefore time.Time) ApiCoreJobsListRequest { + r.completedBefore = &completedBefore return r } -func (r ApiCoreDataSourcesListRequest) DescriptionNiew(descriptionNiew []string) ApiCoreDataSourcesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiCoreJobsListRequest) Created(created time.Time) ApiCoreJobsListRequest { + r.created = &created return r } -func (r ApiCoreDataSourcesListRequest) DescriptionNisw(descriptionNisw []string) ApiCoreDataSourcesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiCoreJobsListRequest) CreatedAfter(createdAfter time.Time) ApiCoreJobsListRequest { + r.createdAfter = &createdAfter return r } -func (r ApiCoreDataSourcesListRequest) Enabled(enabled bool) ApiCoreDataSourcesListRequest { - r.enabled = &enabled +func (r ApiCoreJobsListRequest) CreatedBefore(createdBefore time.Time) ApiCoreJobsListRequest { + r.createdBefore = &createdBefore return r } -func (r ApiCoreDataSourcesListRequest) Id(id []int32) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) Id(id []int32) ApiCoreJobsListRequest { r.id = &id return r } -func (r ApiCoreDataSourcesListRequest) IdEmpty(idEmpty bool) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) IdEmpty(idEmpty bool) ApiCoreJobsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiCoreDataSourcesListRequest) IdGt(idGt []int32) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) IdGt(idGt []int32) ApiCoreJobsListRequest { r.idGt = &idGt return r } -func (r ApiCoreDataSourcesListRequest) IdGte(idGte []int32) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) IdGte(idGte []int32) ApiCoreJobsListRequest { r.idGte = &idGte return r } -func (r ApiCoreDataSourcesListRequest) IdLt(idLt []int32) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) IdLt(idLt []int32) ApiCoreJobsListRequest { r.idLt = &idLt return r } -func (r ApiCoreDataSourcesListRequest) IdLte(idLte []int32) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) IdLte(idLte []int32) ApiCoreJobsListRequest { r.idLte = &idLte return r } -func (r ApiCoreDataSourcesListRequest) IdN(idN []int32) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) IdN(idN []int32) ApiCoreJobsListRequest { r.idN = &idN return r } -func (r ApiCoreDataSourcesListRequest) LastSynced(lastSynced []time.Time) ApiCoreDataSourcesListRequest { - r.lastSynced = &lastSynced - return r -} - -func (r ApiCoreDataSourcesListRequest) LastSyncedEmpty(lastSyncedEmpty bool) ApiCoreDataSourcesListRequest { - r.lastSyncedEmpty = &lastSyncedEmpty - return r -} - -func (r ApiCoreDataSourcesListRequest) LastSyncedGt(lastSyncedGt []time.Time) ApiCoreDataSourcesListRequest { - r.lastSyncedGt = &lastSyncedGt - return r -} - -func (r ApiCoreDataSourcesListRequest) LastSyncedGte(lastSyncedGte []time.Time) ApiCoreDataSourcesListRequest { - r.lastSyncedGte = &lastSyncedGte - return r -} - -func (r ApiCoreDataSourcesListRequest) LastSyncedLt(lastSyncedLt []time.Time) ApiCoreDataSourcesListRequest { - r.lastSyncedLt = &lastSyncedLt - return r -} - -func (r ApiCoreDataSourcesListRequest) LastSyncedLte(lastSyncedLte []time.Time) ApiCoreDataSourcesListRequest { - r.lastSyncedLte = &lastSyncedLte - return r -} - -func (r ApiCoreDataSourcesListRequest) LastSyncedN(lastSyncedN []time.Time) ApiCoreDataSourcesListRequest { - r.lastSyncedN = &lastSyncedN - return r -} - -func (r ApiCoreDataSourcesListRequest) LastUpdated(lastUpdated []time.Time) ApiCoreDataSourcesListRequest { - r.lastUpdated = &lastUpdated +func (r ApiCoreJobsListRequest) Interval(interval []int32) ApiCoreJobsListRequest { + r.interval = &interval return r } -func (r ApiCoreDataSourcesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCoreDataSourcesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiCoreJobsListRequest) IntervalEmpty(intervalEmpty bool) ApiCoreJobsListRequest { + r.intervalEmpty = &intervalEmpty return r } -func (r ApiCoreDataSourcesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCoreDataSourcesListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiCoreJobsListRequest) IntervalGt(intervalGt []int32) ApiCoreJobsListRequest { + r.intervalGt = &intervalGt return r } -func (r ApiCoreDataSourcesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCoreDataSourcesListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiCoreJobsListRequest) IntervalGte(intervalGte []int32) ApiCoreJobsListRequest { + r.intervalGte = &intervalGte return r } -func (r ApiCoreDataSourcesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCoreDataSourcesListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiCoreJobsListRequest) IntervalLt(intervalLt []int32) ApiCoreJobsListRequest { + r.intervalLt = &intervalLt return r } -func (r ApiCoreDataSourcesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCoreDataSourcesListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiCoreJobsListRequest) IntervalLte(intervalLte []int32) ApiCoreJobsListRequest { + r.intervalLte = &intervalLte return r } -func (r ApiCoreDataSourcesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCoreDataSourcesListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiCoreJobsListRequest) IntervalN(intervalN []int32) ApiCoreJobsListRequest { + r.intervalN = &intervalN return r } -// Number of results to return per page. -func (r ApiCoreDataSourcesListRequest) Limit(limit int32) ApiCoreDataSourcesListRequest { - r.limit = &limit +func (r ApiCoreJobsListRequest) JobId(jobId string) ApiCoreJobsListRequest { + r.jobId = &jobId return r } -func (r ApiCoreDataSourcesListRequest) ModifiedByRequest(modifiedByRequest string) ApiCoreDataSourcesListRequest { - r.modifiedByRequest = &modifiedByRequest +// Number of results to return per page. +func (r ApiCoreJobsListRequest) Limit(limit int32) ApiCoreJobsListRequest { + r.limit = &limit return r } -func (r ApiCoreDataSourcesListRequest) Name(name []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) Name(name []string) ApiCoreJobsListRequest { r.name = &name return r } -func (r ApiCoreDataSourcesListRequest) NameEmpty(nameEmpty bool) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameEmpty(nameEmpty bool) ApiCoreJobsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiCoreDataSourcesListRequest) NameIc(nameIc []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameIc(nameIc []string) ApiCoreJobsListRequest { r.nameIc = &nameIc return r } -func (r ApiCoreDataSourcesListRequest) NameIe(nameIe []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameIe(nameIe []string) ApiCoreJobsListRequest { r.nameIe = &nameIe return r } -func (r ApiCoreDataSourcesListRequest) NameIew(nameIew []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameIew(nameIew []string) ApiCoreJobsListRequest { r.nameIew = &nameIew return r } -func (r ApiCoreDataSourcesListRequest) NameIsw(nameIsw []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameIsw(nameIsw []string) ApiCoreJobsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiCoreDataSourcesListRequest) NameN(nameN []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameN(nameN []string) ApiCoreJobsListRequest { r.nameN = &nameN return r } -func (r ApiCoreDataSourcesListRequest) NameNic(nameNic []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameNic(nameNic []string) ApiCoreJobsListRequest { r.nameNic = &nameNic return r } -func (r ApiCoreDataSourcesListRequest) NameNie(nameNie []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameNie(nameNie []string) ApiCoreJobsListRequest { r.nameNie = &nameNie return r } -func (r ApiCoreDataSourcesListRequest) NameNiew(nameNiew []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameNiew(nameNiew []string) ApiCoreJobsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiCoreDataSourcesListRequest) NameNisw(nameNisw []string) ApiCoreDataSourcesListRequest { +func (r ApiCoreJobsListRequest) NameNisw(nameNisw []string) ApiCoreJobsListRequest { r.nameNisw = &nameNisw return r } -// The initial index from which to return the results. -func (r ApiCoreDataSourcesListRequest) Offset(offset int32) ApiCoreDataSourcesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiCoreDataSourcesListRequest) Ordering(ordering string) ApiCoreDataSourcesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiCoreDataSourcesListRequest) Q(q string) ApiCoreDataSourcesListRequest { - r.q = &q - return r -} - -func (r ApiCoreDataSourcesListRequest) SourceUrl(sourceUrl []string) ApiCoreDataSourcesListRequest { - r.sourceUrl = &sourceUrl +func (r ApiCoreJobsListRequest) ObjectId(objectId []int32) ApiCoreJobsListRequest { + r.objectId = &objectId return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlEmpty(sourceUrlEmpty bool) ApiCoreDataSourcesListRequest { - r.sourceUrlEmpty = &sourceUrlEmpty +func (r ApiCoreJobsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiCoreJobsListRequest { + r.objectIdEmpty = &objectIdEmpty return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlIc(sourceUrlIc []string) ApiCoreDataSourcesListRequest { - r.sourceUrlIc = &sourceUrlIc +func (r ApiCoreJobsListRequest) ObjectIdGt(objectIdGt []int32) ApiCoreJobsListRequest { + r.objectIdGt = &objectIdGt return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlIe(sourceUrlIe []string) ApiCoreDataSourcesListRequest { - r.sourceUrlIe = &sourceUrlIe +func (r ApiCoreJobsListRequest) ObjectIdGte(objectIdGte []int32) ApiCoreJobsListRequest { + r.objectIdGte = &objectIdGte return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlIew(sourceUrlIew []string) ApiCoreDataSourcesListRequest { - r.sourceUrlIew = &sourceUrlIew +func (r ApiCoreJobsListRequest) ObjectIdLt(objectIdLt []int32) ApiCoreJobsListRequest { + r.objectIdLt = &objectIdLt return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlIsw(sourceUrlIsw []string) ApiCoreDataSourcesListRequest { - r.sourceUrlIsw = &sourceUrlIsw +func (r ApiCoreJobsListRequest) ObjectIdLte(objectIdLte []int32) ApiCoreJobsListRequest { + r.objectIdLte = &objectIdLte return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlN(sourceUrlN []string) ApiCoreDataSourcesListRequest { - r.sourceUrlN = &sourceUrlN +func (r ApiCoreJobsListRequest) ObjectIdN(objectIdN []int32) ApiCoreJobsListRequest { + r.objectIdN = &objectIdN return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlNic(sourceUrlNic []string) ApiCoreDataSourcesListRequest { - r.sourceUrlNic = &sourceUrlNic +func (r ApiCoreJobsListRequest) ObjectType(objectType int32) ApiCoreJobsListRequest { + r.objectType = &objectType return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlNie(sourceUrlNie []string) ApiCoreDataSourcesListRequest { - r.sourceUrlNie = &sourceUrlNie +func (r ApiCoreJobsListRequest) ObjectTypeN(objectTypeN int32) ApiCoreJobsListRequest { + r.objectTypeN = &objectTypeN return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlNiew(sourceUrlNiew []string) ApiCoreDataSourcesListRequest { - r.sourceUrlNiew = &sourceUrlNiew +// The initial index from which to return the results. +func (r ApiCoreJobsListRequest) Offset(offset int32) ApiCoreJobsListRequest { + r.offset = &offset return r } -func (r ApiCoreDataSourcesListRequest) SourceUrlNisw(sourceUrlNisw []string) ApiCoreDataSourcesListRequest { - r.sourceUrlNisw = &sourceUrlNisw +// Which field to use when ordering the results. +func (r ApiCoreJobsListRequest) Ordering(ordering string) ApiCoreJobsListRequest { + r.ordering = &ordering return r } -func (r ApiCoreDataSourcesListRequest) Status(status []string) ApiCoreDataSourcesListRequest { - r.status = &status +// Search +func (r ApiCoreJobsListRequest) Q(q string) ApiCoreJobsListRequest { + r.q = &q return r } -func (r ApiCoreDataSourcesListRequest) StatusN(statusN []string) ApiCoreDataSourcesListRequest { - r.statusN = &statusN +func (r ApiCoreJobsListRequest) Scheduled(scheduled time.Time) ApiCoreJobsListRequest { + r.scheduled = &scheduled return r } -func (r ApiCoreDataSourcesListRequest) Tag(tag []string) ApiCoreDataSourcesListRequest { - r.tag = &tag +func (r ApiCoreJobsListRequest) ScheduledAfter(scheduledAfter time.Time) ApiCoreJobsListRequest { + r.scheduledAfter = &scheduledAfter return r } -func (r ApiCoreDataSourcesListRequest) TagN(tagN []string) ApiCoreDataSourcesListRequest { - r.tagN = &tagN +func (r ApiCoreJobsListRequest) ScheduledBefore(scheduledBefore time.Time) ApiCoreJobsListRequest { + r.scheduledBefore = &scheduledBefore return r } -func (r ApiCoreDataSourcesListRequest) Type_(type_ []string) ApiCoreDataSourcesListRequest { - r.type_ = &type_ +func (r ApiCoreJobsListRequest) Started(started time.Time) ApiCoreJobsListRequest { + r.started = &started return r } -func (r ApiCoreDataSourcesListRequest) TypeN(typeN []string) ApiCoreDataSourcesListRequest { - r.typeN = &typeN +func (r ApiCoreJobsListRequest) StartedAfter(startedAfter time.Time) ApiCoreJobsListRequest { + r.startedAfter = &startedAfter return r } -func (r ApiCoreDataSourcesListRequest) UpdatedByRequest(updatedByRequest string) ApiCoreDataSourcesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiCoreJobsListRequest) StartedBefore(startedBefore time.Time) ApiCoreJobsListRequest { + r.startedBefore = &startedBefore return r } -func (r ApiCoreDataSourcesListRequest) Execute() (*PaginatedDataSourceList, *http.Response, error) { - return r.ApiService.CoreDataSourcesListExecute(r) -} - -/* -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 -*/ -func (a *CoreAPIService) CoreDataSourcesList(ctx context.Context) ApiCoreDataSourcesListRequest { - return ApiCoreDataSourcesListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedDataSourceList -func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequest) (*PaginatedDataSourceList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDataSourceList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/core/data-sources/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } +func (r ApiCoreJobsListRequest) Status(status []string) ApiCoreJobsListRequest { + r.status = &status + return r +} + +func (r ApiCoreJobsListRequest) StatusEmpty(statusEmpty bool) ApiCoreJobsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiCoreJobsListRequest) StatusIc(statusIc []string) ApiCoreJobsListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiCoreJobsListRequest) StatusIe(statusIe []string) ApiCoreJobsListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiCoreJobsListRequest) StatusIew(statusIew []string) ApiCoreJobsListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiCoreJobsListRequest) StatusIsw(statusIsw []string) ApiCoreJobsListRequest { + r.statusIsw = &statusIsw + return r +} + +func (r ApiCoreJobsListRequest) StatusN(statusN []string) ApiCoreJobsListRequest { + r.statusN = &statusN + return r +} + +func (r ApiCoreJobsListRequest) StatusNic(statusNic []string) ApiCoreJobsListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiCoreJobsListRequest) StatusNie(statusNie []string) ApiCoreJobsListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiCoreJobsListRequest) StatusNiew(statusNiew []string) ApiCoreJobsListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiCoreJobsListRequest) StatusNisw(statusNisw []string) ApiCoreJobsListRequest { + r.statusNisw = &statusNisw + return r +} + +func (r ApiCoreJobsListRequest) User(user int32) ApiCoreJobsListRequest { + r.user = &user + return r +} + +func (r ApiCoreJobsListRequest) UserN(userN int32) ApiCoreJobsListRequest { + r.userN = &userN + return r +} + +func (r ApiCoreJobsListRequest) Execute() (*PaginatedJobList, *http.Response, error) { + return r.ApiService.CoreJobsListExecute(r) +} + +/* +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 +*/ +func (a *CoreAPIService) CoreJobsList(ctx context.Context) ApiCoreJobsListRequest { + return ApiCoreJobsListRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return PaginatedJobList +func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*PaginatedJobList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedJobList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/core/jobs/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.completed != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "completed", r.completed, "form", "") } - 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.completedAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "completed__after", r.completedAfter, "form", "") } - 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.completedBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "completed__before", r.completedBefore, "form", "") } - 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.created != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", r.created, "form", "") } - 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.createdAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__after", r.createdAfter, "form", "") } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + if r.createdBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__before", r.createdBefore, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -2532,10 +5841,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -2543,10 +5852,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -2554,10 +5863,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -2565,187 +5874,110 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.lastSynced != nil { - t := *r.lastSynced - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced", t, "multi") - } - } - if r.lastSyncedEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__empty", r.lastSyncedEmpty, "") - } - if r.lastSyncedGt != nil { - t := *r.lastSyncedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gt", t, "multi") - } - } - if r.lastSyncedGte != nil { - t := *r.lastSyncedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__gte", t, "multi") - } - } - if r.lastSyncedLt != nil { - t := *r.lastSyncedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lt", t, "multi") - } - } - if r.lastSyncedLte != nil { - t := *r.lastSyncedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.lastSyncedN != nil { - t := *r.lastSyncedN + if r.interval != nil { + t := *r.interval if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_synced__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", t, "form", "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.intervalEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__empty", r.intervalEmpty, "form", "") } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gt", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.intervalGte != nil { + t := *r.intervalGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gte", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.intervalLt != nil { + t := *r.intervalLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lt", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.intervalLte != nil { + t := *r.intervalLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lte", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.intervalN != nil { + t := *r.intervalN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__n", t, "form", "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.jobId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "job_id", r.jobId, "form", "") } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -2753,10 +5985,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -2764,10 +5996,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -2775,10 +6007,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -2786,10 +6018,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -2797,10 +6029,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -2808,10 +6040,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -2819,10 +6051,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -2830,447 +6062,233 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - 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, "") - } - if r.sourceUrl != nil { - t := *r.sourceUrl + 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, "source_url", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "form", "multi") } } - if r.sourceUrlEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__empty", r.sourceUrlEmpty, "") - } - if r.sourceUrlIc != nil { - t := *r.sourceUrlIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ic", t, "multi") - } + if r.objectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "form", "") } - if r.sourceUrlIe != nil { - t := *r.sourceUrlIe + 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, "source_url__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "form", "multi") } } - if r.sourceUrlIew != nil { - t := *r.sourceUrlIew + 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, "source_url__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "form", "multi") } } - if r.sourceUrlIsw != nil { - t := *r.sourceUrlIsw + 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, "source_url__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "form", "multi") } } - if r.sourceUrlN != nil { - t := *r.sourceUrlN + 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, "source_url__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "form", "multi") } } - if r.sourceUrlNic != nil { - t := *r.sourceUrlNic + 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, "source_url__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "form", "multi") } } - if r.sourceUrlNie != nil { - t := *r.sourceUrlNie + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.scheduled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scheduled", r.scheduled, "form", "") + } + if r.scheduledAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scheduled__after", r.scheduledAfter, "form", "") + } + if r.scheduledBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scheduled__before", r.scheduledBefore, "form", "") + } + if r.started != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "started", r.started, "form", "") + } + if r.startedAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "started__after", r.startedAfter, "form", "") + } + if r.startedBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "started__before", r.startedBefore, "form", "") + } + 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, "source_url__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.sourceUrlNiew != nil { - t := *r.sourceUrlNiew + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.sourceUrlNisw != nil { - t := *r.sourceUrlNisw + if r.statusIe != nil { + t := *r.statusIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_url__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.status != nil { - t := *r.status + if r.statusIew != nil { + t := *r.statusIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + if r.statusIsw != nil { + t := *r.statusIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.statusN != nil { + t := *r.statusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.statusNic != nil { + t := *r.statusNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + if r.statusNie != nil { + t := *r.statusNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + if r.statusNiew != nil { + t := *r.statusNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__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 - } - } - } - 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 ApiCoreDataSourcesPartialUpdateRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 - patchedWritableDataSourceRequest *PatchedWritableDataSourceRequest -} - -func (r ApiCoreDataSourcesPartialUpdateRequest) PatchedWritableDataSourceRequest(patchedWritableDataSourceRequest PatchedWritableDataSourceRequest) ApiCoreDataSourcesPartialUpdateRequest { - r.patchedWritableDataSourceRequest = &patchedWritableDataSourceRequest - return r -} - -func (r ApiCoreDataSourcesPartialUpdateRequest) Execute() (*DataSource, *http.Response, error) { - return r.ApiService.CoreDataSourcesPartialUpdateExecute(r) -} - -/* -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 -*/ -func (a *CoreAPIService) CoreDataSourcesPartialUpdate(ctx context.Context, id int32) ApiCoreDataSourcesPartialUpdateRequest { - return ApiCoreDataSourcesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DataSource -func (a *CoreAPIService) CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSourcesPartialUpdateRequest) (*DataSource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/core/data-sources/{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.patchedWritableDataSourceRequest - 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(), + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCoreDataSourcesRetrieveRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 -} - -func (r ApiCoreDataSourcesRetrieveRequest) Execute() (*DataSource, *http.Response, error) { - return r.ApiService.CoreDataSourcesRetrieveExecute(r) -} - -/* -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 -*/ -func (a *CoreAPIService) CoreDataSourcesRetrieve(ctx context.Context, id int32) ApiCoreDataSourcesRetrieveRequest { - return ApiCoreDataSourcesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, } -} - -// Execute executes the request -// -// @return DataSource -func (a *CoreAPIService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetrieveRequest) (*DataSource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") + } + } + if r.user != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", r.user, "form", "") + } + if r.userN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", r.userN, "form", "") } - - localVarPath := localBasePath + "/api/core/data-sources/{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{} @@ -3339,67 +6357,57 @@ func (a *CoreAPIService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCoreDataSourcesSyncCreateRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 - writableDataSourceRequest *WritableDataSourceRequest -} - -func (r ApiCoreDataSourcesSyncCreateRequest) WritableDataSourceRequest(writableDataSourceRequest WritableDataSourceRequest) ApiCoreDataSourcesSyncCreateRequest { - r.writableDataSourceRequest = &writableDataSourceRequest - return r +type ApiCoreJobsRetrieveRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 } -func (r ApiCoreDataSourcesSyncCreateRequest) Execute() (*DataSource, *http.Response, error) { - return r.ApiService.CoreDataSourcesSyncCreateExecute(r) +func (r ApiCoreJobsRetrieveRequest) Execute() (*Job, *http.Response, error) { + return r.ApiService.CoreJobsRetrieveExecute(r) } /* -CoreDataSourcesSyncCreate Method for CoreDataSourcesSyncCreate +CoreJobsRetrieve Method for CoreJobsRetrieve -Enqueue a job to synchronize the DataSource. +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 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 job. + @return ApiCoreJobsRetrieveRequest */ -func (a *CoreAPIService) CoreDataSourcesSyncCreate(ctx context.Context, id int32) ApiCoreDataSourcesSyncCreateRequest { - return ApiCoreDataSourcesSyncCreateRequest{ +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 DataSource -func (a *CoreAPIService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSyncCreateRequest) (*DataSource, *http.Response, error) { +// @return Job +func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) (*Job, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Job ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesSyncCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/core/data-sources/{id}/sync/" + localVarPath := localBasePath + "/api/core/jobs/{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.writableDataSourceRequest == nil { - return localVarReturnValue, nil, reportError("writableDataSourceRequest 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) @@ -3415,8 +6423,6 @@ func (a *CoreAPIService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSy if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.writableDataSourceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3468,556 +6474,549 @@ func (a *CoreAPIService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSy return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCoreDataSourcesUpdateRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 - writableDataSourceRequest *WritableDataSourceRequest +type ApiCoreObjectChangesListRequest struct { + ctx context.Context + ApiService CoreAPI + action *CoreObjectChangesListActionParameter + changedObjectId *[]int32 + changedObjectIdEmpty *bool + changedObjectIdGt *[]int32 + changedObjectIdGte *[]int32 + changedObjectIdLt *[]int32 + changedObjectIdLte *[]int32 + changedObjectIdN *[]int32 + changedObjectType *string + changedObjectTypeN *string + changedObjectTypeId *[]int32 + changedObjectTypeIdN *[]int32 + 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 + relatedObjectId *[]int32 + relatedObjectIdEmpty *bool + relatedObjectIdGt *[]int32 + relatedObjectIdGte *[]int32 + relatedObjectIdLt *[]int32 + relatedObjectIdLte *[]int32 + relatedObjectIdN *[]int32 + relatedObjectType *int32 + relatedObjectTypeN *int32 + 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 ApiCoreDataSourcesUpdateRequest) WritableDataSourceRequest(writableDataSourceRequest WritableDataSourceRequest) ApiCoreDataSourcesUpdateRequest { - r.writableDataSourceRequest = &writableDataSourceRequest +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiCoreObjectChangesListRequest) Action(action CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { + r.action = &action return r } -func (r ApiCoreDataSourcesUpdateRequest) Execute() (*DataSource, *http.Response, error) { - return r.ApiService.CoreDataSourcesUpdateExecute(r) +func (r ApiCoreObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectId = &changedObjectId + return r } -/* -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 -*/ -func (a *CoreAPIService) CoreDataSourcesUpdate(ctx context.Context, id int32) ApiCoreDataSourcesUpdateRequest { - return ApiCoreDataSourcesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.changedObjectIdEmpty = &changedObjectIdEmpty + return r } -// Execute executes the request -// -// @return DataSource -func (a *CoreAPIService) CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdateRequest) (*DataSource, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/core/data-sources/{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.writableDataSourceRequest == nil { - return localVarReturnValue, nil, reportError("writableDataSourceRequest 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.writableDataSourceRequest - 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 - } +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGt = &changedObjectIdGt + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGte = &changedObjectIdGte + return r } -type ApiCoreJobsListRequest struct { - 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 - 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 - jobId *string - 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 +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLt = &changedObjectIdLt + return r } -func (r ApiCoreJobsListRequest) Completed(completed time.Time) ApiCoreJobsListRequest { - r.completed = &completed +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLte = &changedObjectIdLte return r } -func (r ApiCoreJobsListRequest) CompletedAfter(completedAfter time.Time) ApiCoreJobsListRequest { - r.completedAfter = &completedAfter +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdN = &changedObjectIdN return r } -func (r ApiCoreJobsListRequest) CompletedBefore(completedBefore time.Time) ApiCoreJobsListRequest { - r.completedBefore = &completedBefore +func (r ApiCoreObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiCoreObjectChangesListRequest { + r.changedObjectType = &changedObjectType return r } -func (r ApiCoreJobsListRequest) Created(created time.Time) ApiCoreJobsListRequest { - r.created = &created +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiCoreObjectChangesListRequest { + r.changedObjectTypeN = &changedObjectTypeN return r } -func (r ApiCoreJobsListRequest) CreatedAfter(createdAfter time.Time) ApiCoreJobsListRequest { - r.createdAfter = &createdAfter +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeId = &changedObjectTypeId return r } -func (r ApiCoreJobsListRequest) CreatedBefore(createdBefore time.Time) ApiCoreJobsListRequest { - r.createdBefore = &createdBefore +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeIdN = &changedObjectTypeIdN return r } -func (r ApiCoreJobsListRequest) Id(id []int32) ApiCoreJobsListRequest { +func (r ApiCoreObjectChangesListRequest) Id(id []int32) ApiCoreObjectChangesListRequest { r.id = &id return r } -func (r ApiCoreJobsListRequest) IdEmpty(idEmpty bool) ApiCoreJobsListRequest { +func (r ApiCoreObjectChangesListRequest) IdEmpty(idEmpty bool) ApiCoreObjectChangesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiCoreJobsListRequest) IdGt(idGt []int32) ApiCoreJobsListRequest { +func (r ApiCoreObjectChangesListRequest) IdGt(idGt []int32) ApiCoreObjectChangesListRequest { r.idGt = &idGt return r } -func (r ApiCoreJobsListRequest) IdGte(idGte []int32) ApiCoreJobsListRequest { +func (r ApiCoreObjectChangesListRequest) IdGte(idGte []int32) ApiCoreObjectChangesListRequest { r.idGte = &idGte return r } -func (r ApiCoreJobsListRequest) IdLt(idLt []int32) ApiCoreJobsListRequest { +func (r ApiCoreObjectChangesListRequest) IdLt(idLt []int32) ApiCoreObjectChangesListRequest { r.idLt = &idLt return r } -func (r ApiCoreJobsListRequest) IdLte(idLte []int32) ApiCoreJobsListRequest { +func (r ApiCoreObjectChangesListRequest) IdLte(idLte []int32) ApiCoreObjectChangesListRequest { r.idLte = &idLte return r } -func (r ApiCoreJobsListRequest) IdN(idN []int32) ApiCoreJobsListRequest { +func (r ApiCoreObjectChangesListRequest) IdN(idN []int32) ApiCoreObjectChangesListRequest { r.idN = &idN return r } -func (r ApiCoreJobsListRequest) Interval(interval []int32) ApiCoreJobsListRequest { - r.interval = &interval +// Number of results to return per page. +func (r ApiCoreObjectChangesListRequest) Limit(limit int32) ApiCoreObjectChangesListRequest { + r.limit = &limit return r } -func (r ApiCoreJobsListRequest) IntervalEmpty(intervalEmpty bool) ApiCoreJobsListRequest { - r.intervalEmpty = &intervalEmpty +func (r ApiCoreObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiCoreObjectChangesListRequest { + r.objectRepr = &objectRepr return r } -func (r ApiCoreJobsListRequest) IntervalGt(intervalGt []int32) ApiCoreJobsListRequest { - r.intervalGt = &intervalGt +func (r ApiCoreObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiCoreObjectChangesListRequest { + r.objectReprEmpty = &objectReprEmpty return r } -func (r ApiCoreJobsListRequest) IntervalGte(intervalGte []int32) ApiCoreJobsListRequest { - r.intervalGte = &intervalGte +func (r ApiCoreObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiCoreObjectChangesListRequest { + r.objectReprIc = &objectReprIc return r } -func (r ApiCoreJobsListRequest) IntervalLt(intervalLt []int32) ApiCoreJobsListRequest { - r.intervalLt = &intervalLt +func (r ApiCoreObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiCoreObjectChangesListRequest { + r.objectReprIe = &objectReprIe return r } -func (r ApiCoreJobsListRequest) IntervalLte(intervalLte []int32) ApiCoreJobsListRequest { - r.intervalLte = &intervalLte +func (r ApiCoreObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiCoreObjectChangesListRequest { + r.objectReprIew = &objectReprIew return r } -func (r ApiCoreJobsListRequest) IntervalN(intervalN []int32) ApiCoreJobsListRequest { - r.intervalN = &intervalN +func (r ApiCoreObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiCoreObjectChangesListRequest { + r.objectReprIsw = &objectReprIsw return r } -func (r ApiCoreJobsListRequest) JobId(jobId string) ApiCoreJobsListRequest { - r.jobId = &jobId +func (r ApiCoreObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiCoreObjectChangesListRequest { + r.objectReprN = &objectReprN return r } -// Number of results to return per page. -func (r ApiCoreJobsListRequest) Limit(limit int32) ApiCoreJobsListRequest { - r.limit = &limit +func (r ApiCoreObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiCoreObjectChangesListRequest { + r.objectReprNic = &objectReprNic return r } -func (r ApiCoreJobsListRequest) Name(name []string) ApiCoreJobsListRequest { - r.name = &name +func (r ApiCoreObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiCoreObjectChangesListRequest { + r.objectReprNie = &objectReprNie return r } -func (r ApiCoreJobsListRequest) NameEmpty(nameEmpty bool) ApiCoreJobsListRequest { - r.nameEmpty = &nameEmpty +func (r ApiCoreObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiCoreObjectChangesListRequest { + r.objectReprNiew = &objectReprNiew return r } -func (r ApiCoreJobsListRequest) NameIc(nameIc []string) ApiCoreJobsListRequest { - r.nameIc = &nameIc +func (r ApiCoreObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiCoreObjectChangesListRequest { + r.objectReprNisw = &objectReprNisw return r } -func (r ApiCoreJobsListRequest) NameIe(nameIe []string) ApiCoreJobsListRequest { - r.nameIe = &nameIe +// The initial index from which to return the results. +func (r ApiCoreObjectChangesListRequest) Offset(offset int32) ApiCoreObjectChangesListRequest { + r.offset = &offset return r } -func (r ApiCoreJobsListRequest) NameIew(nameIew []string) ApiCoreJobsListRequest { - r.nameIew = &nameIew +// Which field to use when ordering the results. +func (r ApiCoreObjectChangesListRequest) Ordering(ordering string) ApiCoreObjectChangesListRequest { + r.ordering = &ordering return r } -func (r ApiCoreJobsListRequest) NameIsw(nameIsw []string) ApiCoreJobsListRequest { - r.nameIsw = &nameIsw +// Search +func (r ApiCoreObjectChangesListRequest) Q(q string) ApiCoreObjectChangesListRequest { + r.q = &q return r } -func (r ApiCoreJobsListRequest) NameN(nameN []string) ApiCoreJobsListRequest { - r.nameN = &nameN +func (r ApiCoreObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectId = &relatedObjectId return r } -func (r ApiCoreJobsListRequest) NameNic(nameNic []string) ApiCoreJobsListRequest { - r.nameNic = &nameNic +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.relatedObjectIdEmpty = &relatedObjectIdEmpty return r } -func (r ApiCoreJobsListRequest) NameNie(nameNie []string) ApiCoreJobsListRequest { - r.nameNie = &nameNie +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGt = &relatedObjectIdGt return r } -func (r ApiCoreJobsListRequest) NameNiew(nameNiew []string) ApiCoreJobsListRequest { - r.nameNiew = &nameNiew +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGte = &relatedObjectIdGte return r } -func (r ApiCoreJobsListRequest) NameNisw(nameNisw []string) ApiCoreJobsListRequest { - r.nameNisw = &nameNisw +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLt = &relatedObjectIdLt return r } -func (r ApiCoreJobsListRequest) ObjectId(objectId []int32) ApiCoreJobsListRequest { - r.objectId = &objectId +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLte = &relatedObjectIdLte return r } -func (r ApiCoreJobsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiCoreJobsListRequest { - r.objectIdEmpty = &objectIdEmpty +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdN = &relatedObjectIdN return r } -func (r ApiCoreJobsListRequest) ObjectIdGt(objectIdGt []int32) ApiCoreJobsListRequest { - r.objectIdGt = &objectIdGt +func (r ApiCoreObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiCoreObjectChangesListRequest { + r.relatedObjectType = &relatedObjectType return r } - -func (r ApiCoreJobsListRequest) ObjectIdGte(objectIdGte []int32) ApiCoreJobsListRequest { - r.objectIdGte = &objectIdGte + +func (r ApiCoreObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiCoreObjectChangesListRequest { + r.relatedObjectTypeN = &relatedObjectTypeN return r } -func (r ApiCoreJobsListRequest) ObjectIdLt(objectIdLt []int32) ApiCoreJobsListRequest { - r.objectIdLt = &objectIdLt +func (r ApiCoreObjectChangesListRequest) RequestId(requestId string) ApiCoreObjectChangesListRequest { + r.requestId = &requestId return r } -func (r ApiCoreJobsListRequest) ObjectIdLte(objectIdLte []int32) ApiCoreJobsListRequest { - r.objectIdLte = &objectIdLte +func (r ApiCoreObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiCoreObjectChangesListRequest { + r.timeAfter = &timeAfter return r } -func (r ApiCoreJobsListRequest) ObjectIdN(objectIdN []int32) ApiCoreJobsListRequest { - r.objectIdN = &objectIdN +func (r ApiCoreObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiCoreObjectChangesListRequest { + r.timeBefore = &timeBefore return r } -func (r ApiCoreJobsListRequest) ObjectType(objectType int32) ApiCoreJobsListRequest { - r.objectType = &objectType +// User name +func (r ApiCoreObjectChangesListRequest) User(user []string) ApiCoreObjectChangesListRequest { + r.user = &user return r } -func (r ApiCoreJobsListRequest) ObjectTypeN(objectTypeN int32) ApiCoreJobsListRequest { - r.objectTypeN = &objectTypeN +// User name +func (r ApiCoreObjectChangesListRequest) UserN(userN []string) ApiCoreObjectChangesListRequest { + r.userN = &userN return r } -// The initial index from which to return the results. -func (r ApiCoreJobsListRequest) Offset(offset int32) ApiCoreJobsListRequest { - r.offset = &offset +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserId(userId []*int32) ApiCoreObjectChangesListRequest { + r.userId = &userId return r } -// Which field to use when ordering the results. -func (r ApiCoreJobsListRequest) Ordering(ordering string) ApiCoreJobsListRequest { - r.ordering = &ordering +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserIdN(userIdN []*int32) ApiCoreObjectChangesListRequest { + r.userIdN = &userIdN return r } -// Search -func (r ApiCoreJobsListRequest) Q(q string) ApiCoreJobsListRequest { - r.q = &q +func (r ApiCoreObjectChangesListRequest) UserName(userName []string) ApiCoreObjectChangesListRequest { + r.userName = &userName return r } -func (r ApiCoreJobsListRequest) Scheduled(scheduled time.Time) ApiCoreJobsListRequest { - r.scheduled = &scheduled +func (r ApiCoreObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiCoreObjectChangesListRequest { + r.userNameEmpty = &userNameEmpty return r } -func (r ApiCoreJobsListRequest) ScheduledAfter(scheduledAfter time.Time) ApiCoreJobsListRequest { - r.scheduledAfter = &scheduledAfter +func (r ApiCoreObjectChangesListRequest) UserNameIc(userNameIc []string) ApiCoreObjectChangesListRequest { + r.userNameIc = &userNameIc return r } -func (r ApiCoreJobsListRequest) ScheduledBefore(scheduledBefore time.Time) ApiCoreJobsListRequest { - r.scheduledBefore = &scheduledBefore +func (r ApiCoreObjectChangesListRequest) UserNameIe(userNameIe []string) ApiCoreObjectChangesListRequest { + r.userNameIe = &userNameIe return r } -func (r ApiCoreJobsListRequest) Started(started time.Time) ApiCoreJobsListRequest { - r.started = &started +func (r ApiCoreObjectChangesListRequest) UserNameIew(userNameIew []string) ApiCoreObjectChangesListRequest { + r.userNameIew = &userNameIew return r } -func (r ApiCoreJobsListRequest) StartedAfter(startedAfter time.Time) ApiCoreJobsListRequest { - r.startedAfter = &startedAfter +func (r ApiCoreObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiCoreObjectChangesListRequest { + r.userNameIsw = &userNameIsw return r } -func (r ApiCoreJobsListRequest) StartedBefore(startedBefore time.Time) ApiCoreJobsListRequest { - r.startedBefore = &startedBefore +func (r ApiCoreObjectChangesListRequest) UserNameN(userNameN []string) ApiCoreObjectChangesListRequest { + r.userNameN = &userNameN return r } -func (r ApiCoreJobsListRequest) Status(status []string) ApiCoreJobsListRequest { - r.status = &status +func (r ApiCoreObjectChangesListRequest) UserNameNic(userNameNic []string) ApiCoreObjectChangesListRequest { + r.userNameNic = &userNameNic return r } -func (r ApiCoreJobsListRequest) StatusN(statusN []string) ApiCoreJobsListRequest { - r.statusN = &statusN +func (r ApiCoreObjectChangesListRequest) UserNameNie(userNameNie []string) ApiCoreObjectChangesListRequest { + r.userNameNie = &userNameNie return r } -func (r ApiCoreJobsListRequest) User(user int32) ApiCoreJobsListRequest { - r.user = &user +func (r ApiCoreObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiCoreObjectChangesListRequest { + r.userNameNiew = &userNameNiew return r } -func (r ApiCoreJobsListRequest) UserN(userN int32) ApiCoreJobsListRequest { - r.userN = &userN +func (r ApiCoreObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiCoreObjectChangesListRequest { + r.userNameNisw = &userNameNisw return r } -func (r ApiCoreJobsListRequest) Execute() (*PaginatedJobList, *http.Response, error) { - return r.ApiService.CoreJobsListExecute(r) +func (r ApiCoreObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { + return r.ApiService.CoreObjectChangesListExecute(r) } /* -CoreJobsList Method for CoreJobsList +CoreObjectChangesList Method for CoreObjectChangesList -Retrieve a list of job results +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 ApiCoreJobsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreObjectChangesListRequest */ -func (a *CoreAPIService) CoreJobsList(ctx context.Context) ApiCoreJobsListRequest { - return ApiCoreJobsListRequest{ +func (a *CoreAPIService) CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest { + return ApiCoreObjectChangesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedJobList -func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*PaginatedJobList, *http.Response, error) { +// @return PaginatedObjectChangeList +func (a *CoreAPIService) CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedJobList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectChangeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/core/jobs/" + localVarPath := localBasePath + "/api/core/object-changes/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.completed != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "completed", r.completed, "") + if r.action != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "form", "") } - if r.completedAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "completed__after", r.completedAfter, "") + if r.changedObjectId != nil { + t := *r.changedObjectId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "form", "multi") + } } - if r.completedBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "completed__before", r.completedBefore, "") + if r.changedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "form", "") } - if r.created != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", r.created, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "form", "multi") + } } - if r.createdAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__after", r.createdAfter, "") + if r.changedObjectIdGte != nil { + t := *r.changedObjectIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "form", "multi") + } } - if r.createdBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__before", r.createdBefore, "") + if r.changedObjectIdLt != nil { + t := *r.changedObjectIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "form", "multi") + } + } + if r.changedObjectIdLte != nil { + t := *r.changedObjectIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "form", "multi") + } + } + if r.changedObjectIdN != nil { + t := *r.changedObjectIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "form", "multi") + } + } + if r.changedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "form", "") + } + if r.changedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "form", "") + } + if r.changedObjectTypeId != nil { + t := *r.changedObjectTypeId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "form", "multi") + } + } + if r.changedObjectTypeIdN != nil { + t := *r.changedObjectTypeIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -4025,10 +7024,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -4036,10 +7035,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -4047,10 +7046,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -4058,329 +7057,377 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.interval != nil { - t := *r.interval + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.objectRepr != nil { + t := *r.objectRepr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "form", "multi") } } - if r.intervalEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__empty", r.intervalEmpty, "") + if r.objectReprEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "form", "") } - if r.intervalGt != nil { - t := *r.intervalGt + if r.objectReprIc != nil { + t := *r.objectReprIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "form", "multi") } } - if r.intervalGte != nil { - t := *r.intervalGte + if r.objectReprIe != nil { + t := *r.objectReprIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "form", "multi") } } - if r.intervalLt != nil { - t := *r.intervalLt + if r.objectReprIew != nil { + t := *r.objectReprIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "form", "multi") } } - if r.intervalLte != nil { - t := *r.intervalLte + if r.objectReprIsw != nil { + t := *r.objectReprIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "form", "multi") } } - if r.intervalN != nil { - t := *r.intervalN + if r.objectReprN != nil { + t := *r.objectReprN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "form", "multi") } } - if r.jobId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "job_id", r.jobId, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.name != nil { - t := *r.name + if r.objectReprNic != nil { + t := *r.objectReprNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + if r.objectReprNie != nil { + t := *r.objectReprNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.objectReprNiew != nil { + t := *r.objectReprNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.objectReprNisw != nil { + t := *r.objectReprNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.relatedObjectId != nil { + t := *r.relatedObjectId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.relatedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "form", "") + } + if r.relatedObjectIdGt != nil { + t := *r.relatedObjectIdGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.relatedObjectIdGte != nil { + t := *r.relatedObjectIdGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.relatedObjectIdLt != nil { + t := *r.relatedObjectIdLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.relatedObjectIdLte != nil { + t := *r.relatedObjectIdLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.relatedObjectIdN != nil { + t := *r.relatedObjectIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "form", "multi") } } - if r.objectId != nil { - t := *r.objectId + if r.relatedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "form", "") + } + if r.relatedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "form", "") + } + if r.requestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "form", "") + } + if r.timeAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "form", "") + } + if r.timeBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "form", "") + } + 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, "object_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "form", "multi") } } - if r.objectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "") - } - if r.objectIdGt != nil { - t := *r.objectIdGt + 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, "object_id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "form", "multi") } } - if r.objectIdGte != nil { - t := *r.objectIdGte + 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, "object_id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi") } } - if r.objectIdLt != nil { - t := *r.objectIdLt + 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, "object_id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi") } } - if r.objectIdLte != nil { - t := *r.objectIdLte + if r.userName != nil { + t := *r.userName 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "form", "multi") } } - if r.objectIdN != nil { - t := *r.objectIdN + if r.userNameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "form", "") + } + if r.userNameIc != nil { + t := *r.userNameIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "form", "multi") } } - if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") - } - if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") - } - 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, "") - } - if r.scheduled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scheduled", r.scheduled, "") - } - if r.scheduledAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scheduled__after", r.scheduledAfter, "") - } - if r.scheduledBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scheduled__before", r.scheduledBefore, "") + if r.userNameIe != nil { + t := *r.userNameIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "form", "multi") + } } - if r.started != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "started", r.started, "") + if r.userNameIew != nil { + t := *r.userNameIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "form", "multi") + } } - if r.startedAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "started__after", r.startedAfter, "") + if r.userNameIsw != nil { + t := *r.userNameIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "form", "multi") + } } - if r.startedBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "started__before", r.startedBefore, "") + if r.userNameN != nil { + t := *r.userNameN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "form", "multi") + } } - if r.status != nil { - t := *r.status + if r.userNameNic != nil { + t := *r.userNameNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + if r.userNameNie != nil { + t := *r.userNameNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "form", "multi") } } - if r.user != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", r.user, "") + if r.userNameNiew != nil { + t := *r.userNameNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "form", "multi") + } } - if r.userN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", r.userN, "") + if r.userNameNisw != nil { + t := *r.userNameNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4450,50 +7497,49 @@ func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiCoreJobsRetrieveRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 +type ApiCoreObjectChangesRetrieveRequest struct { + ctx context.Context + ApiService CoreAPI + id int32 } -func (r ApiCoreJobsRetrieveRequest) Execute() (*Job, *http.Response, error) { - return r.ApiService.CoreJobsRetrieveExecute(r) +func (r ApiCoreObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { + return r.ApiService.CoreObjectChangesRetrieveExecute(r) } /* -CoreJobsRetrieve Method for CoreJobsRetrieve +CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve -Retrieve a list of job results +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 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 object change. + @return ApiCoreObjectChangesRetrieveRequest */ -func (a *CoreAPIService) CoreJobsRetrieve(ctx context.Context, id int32) ApiCoreJobsRetrieveRequest { - return ApiCoreJobsRetrieveRequest{ +func (a *CoreAPIService) CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest { + return ApiCoreObjectChangesRetrieveRequest{ 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 ObjectChange +func (a *CoreAPIService) CoreObjectChangesRetrieveExecute(r ApiCoreObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Job + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectChange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/core/jobs/{id}/" + localVarPath := localBasePath + "/api/core/object-changes/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) diff --git a/api_dcim.go b/api_dcim.go index 0427ae7cc5..249ba87333 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,3858 +16,12181 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) -// DcimAPIService DcimAPI service -type DcimAPIService service - -type ApiDcimCableTerminationsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableTerminationRequest *[]CableTerminationRequest -} - -func (r ApiDcimCableTerminationsBulkDestroyRequest) CableTerminationRequest(cableTerminationRequest []CableTerminationRequest) ApiDcimCableTerminationsBulkDestroyRequest { - r.cableTerminationRequest = &cableTerminationRequest - return r -} -func (r ApiDcimCableTerminationsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimCableTerminationsBulkDestroyExecute(r) -} +type DcimAPI interface { -/* -DcimCableTerminationsBulkDestroy Method for DcimCableTerminationsBulkDestroy + /* + DcimCableTerminationsBulkDestroy Method for DcimCableTerminationsBulkDestroy -Delete a list of cable termination objects. + 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 -*/ -func (a *DcimAPIService) DcimCableTerminationsBulkDestroy(ctx context.Context) ApiDcimCableTerminationsBulkDestroyRequest { - return ApiDcimCableTerminationsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} + */ + DcimCableTerminationsBulkDestroy(ctx context.Context) ApiDcimCableTerminationsBulkDestroyRequest -// Execute executes the request -func (a *DcimAPIService) DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableTerminationsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // DcimCableTerminationsBulkDestroyExecute executes the request + DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableTerminationsBulkDestroyRequest) (*http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimCableTerminationsBulkPartialUpdate Method for DcimCableTerminationsBulkPartialUpdate - localVarPath := localBasePath + "/api/dcim/cable-terminations/" + Patch a list of cable termination objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableTerminationRequest == nil { - return nil, reportError("cableTerminationRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsBulkPartialUpdateRequest + */ + DcimCableTerminationsBulkPartialUpdate(ctx context.Context) ApiDcimCableTerminationsBulkPartialUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimCableTerminationsBulkPartialUpdateExecute executes the request + // @return []CableTermination + DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcimCableTerminationsBulkPartialUpdateRequest) ([]CableTermination, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimCableTerminationsBulkUpdate Method for DcimCableTerminationsBulkUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Put a list of cable termination objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableTerminationRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsBulkUpdateRequest + */ + DcimCableTerminationsBulkUpdate(ctx context.Context) ApiDcimCableTerminationsBulkUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // DcimCableTerminationsBulkUpdateExecute executes the request + // @return []CableTermination + DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTerminationsBulkUpdateRequest) ([]CableTermination, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + DcimCableTerminationsCreate Method for DcimCableTerminationsCreate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Post a list of cable termination objects. - return localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsCreateRequest + */ + DcimCableTerminationsCreate(ctx context.Context) ApiDcimCableTerminationsCreateRequest -type ApiDcimCableTerminationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableTerminationRequest *[]CableTerminationRequest -} + // DcimCableTerminationsCreateExecute executes the request + // @return CableTermination + DcimCableTerminationsCreateExecute(r ApiDcimCableTerminationsCreateRequest) (*CableTermination, *http.Response, error) -func (r ApiDcimCableTerminationsBulkPartialUpdateRequest) CableTerminationRequest(cableTerminationRequest []CableTerminationRequest) ApiDcimCableTerminationsBulkPartialUpdateRequest { - r.cableTerminationRequest = &cableTerminationRequest - return r -} + /* + DcimCableTerminationsDestroy Method for DcimCableTerminationsDestroy -func (r ApiDcimCableTerminationsBulkPartialUpdateRequest) Execute() ([]CableTermination, *http.Response, error) { - return r.ApiService.DcimCableTerminationsBulkPartialUpdateExecute(r) -} + Delete a cable termination object. -/* -DcimCableTerminationsBulkPartialUpdate Method for DcimCableTerminationsBulkPartialUpdate + @param ctx 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 + */ + DcimCableTerminationsDestroy(ctx context.Context, id int32) ApiDcimCableTerminationsDestroyRequest -Patch a list of cable termination objects. + // DcimCableTerminationsDestroyExecute executes the request + DcimCableTerminationsDestroyExecute(r ApiDcimCableTerminationsDestroyRequest) (*http.Response, error) + + /* + 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 ApiDcimCableTerminationsBulkPartialUpdateRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdate(ctx context.Context) ApiDcimCableTerminationsBulkPartialUpdateRequest { - return ApiDcimCableTerminationsBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiDcimCableTerminationsListRequest + */ + DcimCableTerminationsList(ctx context.Context) ApiDcimCableTerminationsListRequest -// Execute executes the request -// -// @return []CableTermination -func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcimCableTerminationsBulkPartialUpdateRequest) ([]CableTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CableTermination - ) + // DcimCableTerminationsListExecute executes the request + // @return PaginatedCableTerminationList + DcimCableTerminationsListExecute(r ApiDcimCableTerminationsListRequest) (*PaginatedCableTerminationList, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimCableTerminationsPartialUpdate Method for DcimCableTerminationsPartialUpdate - localVarPath := localBasePath + "/api/dcim/cable-terminations/" + Patch a cable termination object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableTerminationRequest == nil { - return localVarReturnValue, nil, reportError("cableTerminationRequest is required and must be specified") - } + @param ctx 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 + */ + DcimCableTerminationsPartialUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsPartialUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimCableTerminationsPartialUpdateExecute executes the request + // @return CableTermination + DcimCableTerminationsPartialUpdateExecute(r ApiDcimCableTerminationsPartialUpdateRequest) (*CableTermination, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimCableTerminationsRetrieve Method for DcimCableTerminationsRetrieve - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Get a cable termination object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableTerminationRequest - 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 - } + @param ctx 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 + */ + DcimCableTerminationsRetrieve(ctx context.Context, id int32) ApiDcimCableTerminationsRetrieveRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimCableTerminationsRetrieveExecute executes the request + // @return CableTermination + DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerminationsRetrieveRequest) (*CableTermination, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimCableTerminationsUpdate Method for DcimCableTerminationsUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Put a cable termination object. - 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 - } + @param ctx 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 + */ + DcimCableTerminationsUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimCableTerminationsUpdateExecute executes the request + // @return CableTermination + DcimCableTerminationsUpdateExecute(r ApiDcimCableTerminationsUpdateRequest) (*CableTermination, *http.Response, error) -type ApiDcimCableTerminationsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableTerminationRequest *[]CableTerminationRequest -} + /* + DcimCablesBulkDestroy Method for DcimCablesBulkDestroy -func (r ApiDcimCableTerminationsBulkUpdateRequest) CableTerminationRequest(cableTerminationRequest []CableTerminationRequest) ApiDcimCableTerminationsBulkUpdateRequest { - r.cableTerminationRequest = &cableTerminationRequest - return r -} + Delete a list of cable objects. -func (r ApiDcimCableTerminationsBulkUpdateRequest) Execute() ([]CableTermination, *http.Response, error) { - return r.ApiService.DcimCableTerminationsBulkUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesBulkDestroyRequest + */ + DcimCablesBulkDestroy(ctx context.Context) ApiDcimCablesBulkDestroyRequest -/* -DcimCableTerminationsBulkUpdate Method for DcimCableTerminationsBulkUpdate + // DcimCablesBulkDestroyExecute executes the request + DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroyRequest) (*http.Response, error) -Put a list of cable termination objects. + /* + 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 ApiDcimCableTerminationsBulkUpdateRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsBulkUpdate(ctx context.Context) ApiDcimCableTerminationsBulkUpdateRequest { - return ApiDcimCableTerminationsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiDcimCablesBulkPartialUpdateRequest + */ + DcimCablesBulkPartialUpdate(ctx context.Context) ApiDcimCablesBulkPartialUpdateRequest -// Execute executes the request -// -// @return []CableTermination -func (a *DcimAPIService) DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTerminationsBulkUpdateRequest) ([]CableTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CableTermination - ) + // DcimCablesBulkPartialUpdateExecute executes the request + // @return []Cable + DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkPartialUpdateRequest) ([]Cable, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimCablesBulkUpdate Method for DcimCablesBulkUpdate - localVarPath := localBasePath + "/api/dcim/cable-terminations/" + Put a list of cable objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableTerminationRequest == nil { - return localVarReturnValue, nil, reportError("cableTerminationRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesBulkUpdateRequest + */ + DcimCablesBulkUpdate(ctx context.Context) ApiDcimCablesBulkUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimCablesBulkUpdateExecute executes the request + // @return []Cable + DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRequest) ([]Cable, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimCablesCreate Method for DcimCablesCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Post a list of cable objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableTerminationRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesCreateRequest + */ + DcimCablesCreate(ctx context.Context) ApiDcimCablesCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimCablesCreateExecute executes the request + // @return Cable + DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (*Cable, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimCablesDestroy Method for DcimCablesDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a cable object. - 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 - } + @param ctx 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 + */ + DcimCablesDestroy(ctx context.Context, id int32) ApiDcimCablesDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimCablesDestroyExecute executes the request + DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) (*http.Response, error) -type ApiDcimCableTerminationsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableTerminationRequest *CableTerminationRequest -} + /* + DcimCablesList Method for DcimCablesList -func (r ApiDcimCableTerminationsCreateRequest) CableTerminationRequest(cableTerminationRequest CableTerminationRequest) ApiDcimCableTerminationsCreateRequest { - r.cableTerminationRequest = &cableTerminationRequest - return r -} + Get a list of cable objects. -func (r ApiDcimCableTerminationsCreateRequest) Execute() (*CableTermination, *http.Response, error) { - return r.ApiService.DcimCableTerminationsCreateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesListRequest + */ + DcimCablesList(ctx context.Context) ApiDcimCablesListRequest -/* -DcimCableTerminationsCreate Method for DcimCableTerminationsCreate + // DcimCablesListExecute executes the request + // @return PaginatedCableList + DcimCablesListExecute(r ApiDcimCablesListRequest) (*PaginatedCableList, *http.Response, error) -Post a list of cable termination objects. + /* + 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(). - @return ApiDcimCableTerminationsCreateRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsCreate(ctx context.Context) ApiDcimCableTerminationsCreateRequest { - return ApiDcimCableTerminationsCreateRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this cable. + @return ApiDcimCablesPartialUpdateRequest + */ + DcimCablesPartialUpdate(ctx context.Context, id int32) ApiDcimCablesPartialUpdateRequest -// Execute executes the request -// -// @return CableTermination -func (a *DcimAPIService) DcimCableTerminationsCreateExecute(r ApiDcimCableTerminationsCreateRequest) (*CableTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination - ) + // DcimCablesPartialUpdateExecute executes the request + // @return Cable + DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUpdateRequest) (*Cable, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimCablesRetrieve Method for DcimCablesRetrieve - localVarPath := localBasePath + "/api/dcim/cable-terminations/" + Get a cable object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableTerminationRequest == nil { - return localVarReturnValue, nil, reportError("cableTerminationRequest is required and must be specified") - } + @param ctx 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 + */ + DcimCablesRetrieve(ctx context.Context, id int32) ApiDcimCablesRetrieveRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimCablesRetrieveExecute executes the request + // @return Cable + DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveRequest) (*Cable, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimCablesUpdate Method for DcimCablesUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Put a cable object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableTerminationRequest - 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 - } + @param ctx 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 + */ + DcimCablesUpdate(ctx context.Context, id int32) ApiDcimCablesUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimCablesUpdateExecute executes the request + // @return Cable + DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (*Cable, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimConnectedDeviceList Method for DcimConnectedDeviceList - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer +interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors +via a protocol such as LLDP. Two query parameters must be included in the request: - 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 - } +* `peer_device`: The name of the peer device +* `peer_interface`: The name of the peer interface - return localVarReturnValue, localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConnectedDeviceListRequest + */ + DcimConnectedDeviceList(ctx context.Context) ApiDcimConnectedDeviceListRequest -type ApiDcimCableTerminationsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} + // DcimConnectedDeviceListExecute executes the request + // @return []Device + DcimConnectedDeviceListExecute(r ApiDcimConnectedDeviceListRequest) ([]Device, *http.Response, error) -func (r ApiDcimCableTerminationsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimCableTerminationsDestroyExecute(r) -} + /* + DcimConsolePortTemplatesBulkDestroy Method for DcimConsolePortTemplatesBulkDestroy -/* -DcimCableTerminationsDestroy Method for DcimCableTerminationsDestroy + Delete a list of console port template objects. -Delete a cable termination object. + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesBulkDestroyRequest + */ + DcimConsolePortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsolePortTemplatesBulkDestroyRequest + + // DcimConsolePortTemplatesBulkDestroyExecute executes the request + DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimConsolePortTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + DcimConsolePortTemplatesBulkPartialUpdate Method for DcimConsolePortTemplatesBulkPartialUpdate + + 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(). - @param id A unique integer value identifying this cable termination. - @return ApiDcimCableTerminationsDestroyRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsDestroy(ctx context.Context, id int32) ApiDcimCableTerminationsDestroyRequest { - return ApiDcimCableTerminationsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest + */ + DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest -// Execute executes the request -func (a *DcimAPIService) DcimCableTerminationsDestroyExecute(r ApiDcimCableTerminationsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // DcimConsolePortTemplatesBulkPartialUpdateExecute executes the request + // @return []ConsolePortTemplate + DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimConsolePortTemplatesBulkUpdate Method for DcimConsolePortTemplatesBulkUpdate - localVarPath := localBasePath + "/api/dcim/cable-terminations/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Put a list of console port template objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesBulkUpdateRequest + */ + DcimConsolePortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // DcimConsolePortTemplatesBulkUpdateExecute executes the request + // @return []ConsolePortTemplate + DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimConsolePortTemplatesBulkUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimConsolePortTemplatesCreate Method for DcimConsolePortTemplatesCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Post a list of console port template objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesCreateRequest + */ + DcimConsolePortTemplatesCreate(ctx context.Context) ApiDcimConsolePortTemplatesCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // DcimConsolePortTemplatesCreateExecute executes the request + // @return ConsolePortTemplate + DcimConsolePortTemplatesCreateExecute(r ApiDcimConsolePortTemplatesCreateRequest) (*ConsolePortTemplate, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + DcimConsolePortTemplatesDestroy Method for DcimConsolePortTemplatesDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Delete a console port template object. - return localVarHTTPResponse, nil -} + @param ctx 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 + */ + DcimConsolePortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsolePortTemplatesDestroyRequest -type ApiDcimCableTerminationsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - cable *int32 - cableN *int32 - cableEnd *End - cableEndN *End - 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 - modifiedByRequest *string - offset *int32 - ordering *string - terminationId *[]int32 - terminationIdEmpty *bool - terminationIdGt *[]int32 - terminationIdGte *[]int32 - terminationIdLt *[]int32 - terminationIdLte *[]int32 - terminationIdN *[]int32 - terminationType *string - terminationTypeN *string - updatedByRequest *string -} + // DcimConsolePortTemplatesDestroyExecute executes the request + DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsolePortTemplatesDestroyRequest) (*http.Response, error) -func (r ApiDcimCableTerminationsListRequest) Cable(cable int32) ApiDcimCableTerminationsListRequest { - r.cable = &cable - return r -} + /* + DcimConsolePortTemplatesList Method for DcimConsolePortTemplatesList -func (r ApiDcimCableTerminationsListRequest) CableN(cableN int32) ApiDcimCableTerminationsListRequest { - r.cableN = &cableN - return r -} + Get a list of console port template objects. -// * `A` - A * `B` - B -func (r ApiDcimCableTerminationsListRequest) CableEnd(cableEnd End) ApiDcimCableTerminationsListRequest { - r.cableEnd = &cableEnd - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesListRequest + */ + DcimConsolePortTemplatesList(ctx context.Context) ApiDcimConsolePortTemplatesListRequest -// * `A` - A * `B` - B -func (r ApiDcimCableTerminationsListRequest) CableEndN(cableEndN End) ApiDcimCableTerminationsListRequest { - r.cableEndN = &cableEndN - return r -} + // DcimConsolePortTemplatesListExecute executes the request + // @return PaginatedConsolePortTemplateList + DcimConsolePortTemplatesListExecute(r ApiDcimConsolePortTemplatesListRequest) (*PaginatedConsolePortTemplateList, *http.Response, error) -func (r ApiDcimCableTerminationsListRequest) Created(created []time.Time) ApiDcimCableTerminationsListRequest { - r.created = &created - return r -} + /* + DcimConsolePortTemplatesPartialUpdate Method for DcimConsolePortTemplatesPartialUpdate -func (r ApiDcimCableTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimCableTerminationsListRequest { - r.createdEmpty = &createdEmpty - return r -} + Patch a console port template object. -func (r ApiDcimCableTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimCableTerminationsListRequest { - r.createdGt = &createdGt - 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 console port template. + @return ApiDcimConsolePortTemplatesPartialUpdateRequest + */ + DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesPartialUpdateRequest -func (r ApiDcimCableTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiDcimCableTerminationsListRequest { - r.createdGte = &createdGte - return r -} + // DcimConsolePortTemplatesPartialUpdateExecute executes the request + // @return ConsolePortTemplate + DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimConsolePortTemplatesPartialUpdateRequest) (*ConsolePortTemplate, *http.Response, error) -func (r ApiDcimCableTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiDcimCableTerminationsListRequest { - r.createdLt = &createdLt - return r -} + /* + DcimConsolePortTemplatesRetrieve Method for DcimConsolePortTemplatesRetrieve -func (r ApiDcimCableTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiDcimCableTerminationsListRequest { - r.createdLte = &createdLte - return r -} + Get a console port template object. -func (r ApiDcimCableTerminationsListRequest) CreatedN(createdN []time.Time) ApiDcimCableTerminationsListRequest { - r.createdN = &createdN - 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 console port template. + @return ApiDcimConsolePortTemplatesRetrieveRequest + */ + DcimConsolePortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsolePortTemplatesRetrieveRequest -func (r ApiDcimCableTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiDcimCableTerminationsListRequest { - r.createdByRequest = &createdByRequest - return r -} + // DcimConsolePortTemplatesRetrieveExecute executes the request + // @return ConsolePortTemplate + DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsolePortTemplatesRetrieveRequest) (*ConsolePortTemplate, *http.Response, error) -func (r ApiDcimCableTerminationsListRequest) Id(id []int32) ApiDcimCableTerminationsListRequest { - r.id = &id - return r -} + /* + DcimConsolePortTemplatesUpdate Method for DcimConsolePortTemplatesUpdate -func (r ApiDcimCableTerminationsListRequest) IdEmpty(idEmpty bool) ApiDcimCableTerminationsListRequest { - r.idEmpty = &idEmpty - return r -} + Put a console port template object. -func (r ApiDcimCableTerminationsListRequest) IdGt(idGt []int32) ApiDcimCableTerminationsListRequest { - r.idGt = &idGt - 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 console port template. + @return ApiDcimConsolePortTemplatesUpdateRequest + */ + DcimConsolePortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesUpdateRequest -func (r ApiDcimCableTerminationsListRequest) IdGte(idGte []int32) ApiDcimCableTerminationsListRequest { - r.idGte = &idGte - return r -} + // DcimConsolePortTemplatesUpdateExecute executes the request + // @return ConsolePortTemplate + DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsolePortTemplatesUpdateRequest) (*ConsolePortTemplate, *http.Response, error) -func (r ApiDcimCableTerminationsListRequest) IdLt(idLt []int32) ApiDcimCableTerminationsListRequest { - r.idLt = &idLt - return r -} + /* + DcimConsolePortsBulkDestroy Method for DcimConsolePortsBulkDestroy -func (r ApiDcimCableTerminationsListRequest) IdLte(idLte []int32) ApiDcimCableTerminationsListRequest { - r.idLte = &idLte - return r -} + Delete a list of console port objects. -func (r ApiDcimCableTerminationsListRequest) IdN(idN []int32) ApiDcimCableTerminationsListRequest { - r.idN = &idN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkDestroyRequest + */ + DcimConsolePortsBulkDestroy(ctx context.Context) ApiDcimConsolePortsBulkDestroyRequest -func (r ApiDcimCableTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimCableTerminationsListRequest { - r.lastUpdated = &lastUpdated - return r -} + // DcimConsolePortsBulkDestroyExecute executes the request + DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePortsBulkDestroyRequest) (*http.Response, error) -func (r ApiDcimCableTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimCableTerminationsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + /* + DcimConsolePortsBulkPartialUpdate Method for DcimConsolePortsBulkPartialUpdate -func (r ApiDcimCableTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimCableTerminationsListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + Patch a list of console port objects. -func (r ApiDcimCableTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimCableTerminationsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkPartialUpdateRequest + */ + DcimConsolePortsBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortsBulkPartialUpdateRequest -func (r ApiDcimCableTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimCableTerminationsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + // DcimConsolePortsBulkPartialUpdateExecute executes the request + // @return []ConsolePort + DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConsolePortsBulkPartialUpdateRequest) ([]ConsolePort, *http.Response, error) -func (r ApiDcimCableTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimCableTerminationsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + /* + DcimConsolePortsBulkUpdate Method for DcimConsolePortsBulkUpdate -func (r ApiDcimCableTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimCableTerminationsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + Put a list of console port objects. -// Number of results to return per page. -func (r ApiDcimCableTerminationsListRequest) Limit(limit int32) ApiDcimCableTerminationsListRequest { - r.limit = &limit - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkUpdateRequest + */ + DcimConsolePortsBulkUpdate(ctx context.Context) ApiDcimConsolePortsBulkUpdateRequest -func (r ApiDcimCableTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimCableTerminationsListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + // DcimConsolePortsBulkUpdateExecute executes the request + // @return []ConsolePort + DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePortsBulkUpdateRequest) ([]ConsolePort, *http.Response, error) -// The initial index from which to return the results. -func (r ApiDcimCableTerminationsListRequest) Offset(offset int32) ApiDcimCableTerminationsListRequest { - r.offset = &offset - return r -} + /* + DcimConsolePortsCreate Method for DcimConsolePortsCreate -// Which field to use when ordering the results. -func (r ApiDcimCableTerminationsListRequest) Ordering(ordering string) ApiDcimCableTerminationsListRequest { - r.ordering = &ordering - return r -} + Post a list of console port objects. -func (r ApiDcimCableTerminationsListRequest) TerminationId(terminationId []int32) ApiDcimCableTerminationsListRequest { - r.terminationId = &terminationId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsCreateRequest + */ + DcimConsolePortsCreate(ctx context.Context) ApiDcimConsolePortsCreateRequest -func (r ApiDcimCableTerminationsListRequest) TerminationIdEmpty(terminationIdEmpty bool) ApiDcimCableTerminationsListRequest { - r.terminationIdEmpty = &terminationIdEmpty - return r -} + // DcimConsolePortsCreateExecute executes the request + // @return ConsolePort + DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCreateRequest) (*ConsolePort, *http.Response, error) -func (r ApiDcimCableTerminationsListRequest) TerminationIdGt(terminationIdGt []int32) ApiDcimCableTerminationsListRequest { - r.terminationIdGt = &terminationIdGt - return r -} + /* + DcimConsolePortsDestroy Method for DcimConsolePortsDestroy -func (r ApiDcimCableTerminationsListRequest) TerminationIdGte(terminationIdGte []int32) ApiDcimCableTerminationsListRequest { - r.terminationIdGte = &terminationIdGte - return r -} + Delete a console port object. -func (r ApiDcimCableTerminationsListRequest) TerminationIdLt(terminationIdLt []int32) ApiDcimCableTerminationsListRequest { - r.terminationIdLt = &terminationIdLt - 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 console port. + @return ApiDcimConsolePortsDestroyRequest + */ + DcimConsolePortsDestroy(ctx context.Context, id int32) ApiDcimConsolePortsDestroyRequest -func (r ApiDcimCableTerminationsListRequest) TerminationIdLte(terminationIdLte []int32) ApiDcimCableTerminationsListRequest { - r.terminationIdLte = &terminationIdLte - return r -} + // DcimConsolePortsDestroyExecute executes the request + DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDestroyRequest) (*http.Response, error) -func (r ApiDcimCableTerminationsListRequest) TerminationIdN(terminationIdN []int32) ApiDcimCableTerminationsListRequest { - r.terminationIdN = &terminationIdN - return r -} + /* + DcimConsolePortsList Method for DcimConsolePortsList -func (r ApiDcimCableTerminationsListRequest) TerminationType(terminationType string) ApiDcimCableTerminationsListRequest { - r.terminationType = &terminationType - return r -} + Get a list of console port objects. -func (r ApiDcimCableTerminationsListRequest) TerminationTypeN(terminationTypeN string) ApiDcimCableTerminationsListRequest { - r.terminationTypeN = &terminationTypeN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsListRequest + */ + DcimConsolePortsList(ctx context.Context) ApiDcimConsolePortsListRequest -func (r ApiDcimCableTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimCableTerminationsListRequest { - r.updatedByRequest = &updatedByRequest - return r -} + // DcimConsolePortsListExecute executes the request + // @return PaginatedConsolePortList + DcimConsolePortsListExecute(r ApiDcimConsolePortsListRequest) (*PaginatedConsolePortList, *http.Response, error) -func (r ApiDcimCableTerminationsListRequest) Execute() (*PaginatedCableTerminationList, *http.Response, error) { - return r.ApiService.DcimCableTerminationsListExecute(r) -} + /* + DcimConsolePortsPartialUpdate Method for DcimConsolePortsPartialUpdate -/* -DcimCableTerminationsList Method for DcimCableTerminationsList + Patch a console port object. -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(). + @param id A unique integer value identifying this console port. + @return ApiDcimConsolePortsPartialUpdateRequest + */ + DcimConsolePortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortsPartialUpdateRequest + + // DcimConsolePortsPartialUpdateExecute executes the request + // @return ConsolePort + DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePortsPartialUpdateRequest) (*ConsolePort, *http.Response, error) + + /* + 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(). - @return ApiDcimCableTerminationsListRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsList(ctx context.Context) ApiDcimCableTerminationsListRequest { - return ApiDcimCableTerminationsListRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this console port. + @return ApiDcimConsolePortsRetrieveRequest + */ + DcimConsolePortsRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsRetrieveRequest -// Execute executes the request -// -// @return PaginatedCableTerminationList -func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminationsListRequest) (*PaginatedCableTerminationList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCableTerminationList - ) + // DcimConsolePortsRetrieveExecute executes the request + // @return ConsolePort + DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRetrieveRequest) (*ConsolePort, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimConsolePortsTraceRetrieve Method for DcimConsolePortsTraceRetrieve - localVarPath := localBasePath + "/api/dcim/cable-terminations/" + Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx 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 + */ + DcimConsolePortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsTraceRetrieveRequest - if r.cable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable", r.cable, "") - } - if r.cableN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable__n", r.cableN, "") - } - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") - } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } - 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.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.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.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.terminationId != nil { - t := *r.terminationId - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", t, "multi") - } - } - if r.terminationIdGte != nil { - t := *r.terminationIdGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", t, "multi") - } - } - if r.terminationIdLt != nil { - t := *r.terminationIdLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", t, "multi") - } - } - if r.terminationIdLte != nil { - t := *r.terminationIdLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", t, "multi") - } - } - if r.terminationIdN != nil { - t := *r.terminationIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", t, "multi") - } - } - if r.terminationType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type", r.terminationType, "") - } - if r.terminationTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type__n", r.terminationTypeN, "") - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // DcimConsolePortsTraceRetrieveExecute executes the request + // @return ConsolePort + DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePortsTraceRetrieveRequest) (*ConsolePort, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimConsolePortsUpdate Method for DcimConsolePortsUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Put a console port object. - // 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 - } + @param ctx 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 + */ + DcimConsolePortsUpdate(ctx context.Context, id int32) ApiDcimConsolePortsUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimConsolePortsUpdateExecute executes the request + // @return ConsolePort + DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpdateRequest) (*ConsolePort, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimConsoleServerPortTemplatesBulkDestroy Method for DcimConsoleServerPortTemplatesBulkDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a list of console server port template objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest + */ + DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimConsoleServerPortTemplatesBulkDestroyExecute executes the request + DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) (*http.Response, error) -type ApiDcimCableTerminationsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedCableTerminationRequest *PatchedCableTerminationRequest -} + /* + DcimConsoleServerPortTemplatesBulkPartialUpdate Method for DcimConsoleServerPortTemplatesBulkPartialUpdate -func (r ApiDcimCableTerminationsPartialUpdateRequest) PatchedCableTerminationRequest(patchedCableTerminationRequest PatchedCableTerminationRequest) ApiDcimCableTerminationsPartialUpdateRequest { - r.patchedCableTerminationRequest = &patchedCableTerminationRequest - return r -} + Patch a list of console server port template objects. -func (r ApiDcimCableTerminationsPartialUpdateRequest) Execute() (*CableTermination, *http.Response, error) { - return r.ApiService.DcimCableTerminationsPartialUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest + */ + DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest -/* -DcimCableTerminationsPartialUpdate Method for DcimCableTerminationsPartialUpdate + // DcimConsoleServerPortTemplatesBulkPartialUpdateExecute executes the request + // @return []ConsoleServerPortTemplate + DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) -Patch a cable termination object. + /* + DcimConsoleServerPortTemplatesBulkUpdate Method for DcimConsoleServerPortTemplatesBulkUpdate + + 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(). - @param id A unique integer value identifying this cable termination. - @return ApiDcimCableTerminationsPartialUpdateRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsPartialUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsPartialUpdateRequest { - return ApiDcimCableTerminationsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest + */ + DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest -// Execute executes the request -// -// @return CableTermination -func (a *DcimAPIService) DcimCableTerminationsPartialUpdateExecute(r ApiDcimCableTerminationsPartialUpdateRequest) (*CableTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination - ) + // DcimConsoleServerPortTemplatesBulkUpdateExecute executes the request + // @return []ConsoleServerPortTemplate + DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimConsoleServerPortTemplatesCreate Method for DcimConsoleServerPortTemplatesCreate - localVarPath := localBasePath + "/api/dcim/cable-terminations/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Post a list of console server port template objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesCreateRequest + */ + DcimConsoleServerPortTemplatesCreate(ctx context.Context) ApiDcimConsoleServerPortTemplatesCreateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimConsoleServerPortTemplatesCreateExecute executes the request + // @return ConsoleServerPortTemplate + DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimConsoleServerPortTemplatesCreateRequest) (*ConsoleServerPortTemplate, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimConsoleServerPortTemplatesDestroy Method for DcimConsoleServerPortTemplatesDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Delete a console server port template object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedCableTerminationRequest - 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 - } + @param ctx 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 + */ + DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimConsoleServerPortTemplatesDestroyExecute executes the request + DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimConsoleServerPortTemplatesDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimConsoleServerPortTemplatesList Method for DcimConsoleServerPortTemplatesList - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Get a list of console server port template objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesListRequest + */ + DcimConsoleServerPortTemplatesList(ctx context.Context) ApiDcimConsoleServerPortTemplatesListRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimConsoleServerPortTemplatesListExecute executes the request + // @return PaginatedConsoleServerPortTemplateList + DcimConsoleServerPortTemplatesListExecute(r ApiDcimConsoleServerPortTemplatesListRequest) (*PaginatedConsoleServerPortTemplateList, *http.Response, error) -type ApiDcimCableTerminationsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} + /* + DcimConsoleServerPortTemplatesPartialUpdate Method for DcimConsoleServerPortTemplatesPartialUpdate -func (r ApiDcimCableTerminationsRetrieveRequest) Execute() (*CableTermination, *http.Response, error) { - return r.ApiService.DcimCableTerminationsRetrieveExecute(r) -} + Patch a console server port template object. -/* -DcimCableTerminationsRetrieve Method for DcimCableTerminationsRetrieve + @param ctx 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 + */ + DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest -Get a cable termination object. + // DcimConsoleServerPortTemplatesPartialUpdateExecute executes the request + // @return ConsoleServerPortTemplate + DcimConsoleServerPortTemplatesPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) + + /* + DcimConsoleServerPortTemplatesRetrieve Method for DcimConsoleServerPortTemplatesRetrieve + + 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 cable termination. - @return ApiDcimCableTerminationsRetrieveRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsRetrieve(ctx context.Context, id int32) ApiDcimCableTerminationsRetrieveRequest { - return ApiDcimCableTerminationsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @param id A unique integer value identifying this console server port template. + @return ApiDcimConsoleServerPortTemplatesRetrieveRequest + */ + DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesRetrieveRequest -// Execute executes the request -// -// @return CableTermination -func (a *DcimAPIService) DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerminationsRetrieveRequest) (*CableTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination - ) + // DcimConsoleServerPortTemplatesRetrieveExecute executes the request + // @return ConsoleServerPortTemplate + DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcimConsoleServerPortTemplatesRetrieveRequest) (*ConsoleServerPortTemplate, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimConsoleServerPortTemplatesUpdate Method for DcimConsoleServerPortTemplatesUpdate - localVarPath := localBasePath + "/api/dcim/cable-terminations/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Put a console server port template object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx 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 + */ + DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // DcimConsoleServerPortTemplatesUpdateExecute executes the request + // @return ConsoleServerPortTemplate + DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimConsoleServerPortTemplatesUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimConsoleServerPortsBulkDestroy Method for DcimConsoleServerPortsBulkDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Delete a list of console server port objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkDestroyRequest + */ + DcimConsoleServerPortsBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortsBulkDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimConsoleServerPortsBulkDestroyExecute executes the request + DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConsoleServerPortsBulkDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimConsoleServerPortsBulkPartialUpdate Method for DcimConsoleServerPortsBulkPartialUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Patch a list of console server port objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest + */ + DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkPartialUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimConsoleServerPortsBulkPartialUpdateExecute executes the request + // @return []ConsoleServerPort + DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ([]ConsoleServerPort, *http.Response, error) -type ApiDcimCableTerminationsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - cableTerminationRequest *CableTerminationRequest -} + /* + DcimConsoleServerPortsBulkUpdate Method for DcimConsoleServerPortsBulkUpdate -func (r ApiDcimCableTerminationsUpdateRequest) CableTerminationRequest(cableTerminationRequest CableTerminationRequest) ApiDcimCableTerminationsUpdateRequest { - r.cableTerminationRequest = &cableTerminationRequest - return r -} + Put a list of console server port objects. -func (r ApiDcimCableTerminationsUpdateRequest) Execute() (*CableTermination, *http.Response, error) { - return r.ApiService.DcimCableTerminationsUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkUpdateRequest + */ + DcimConsoleServerPortsBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkUpdateRequest -/* -DcimCableTerminationsUpdate Method for DcimCableTerminationsUpdate + // DcimConsoleServerPortsBulkUpdateExecute executes the request + // @return []ConsoleServerPort + DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsoleServerPortsBulkUpdateRequest) ([]ConsoleServerPort, *http.Response, error) -Put a cable termination object. + /* + 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(). - @param id A unique integer value identifying this cable termination. - @return ApiDcimCableTerminationsUpdateRequest -*/ -func (a *DcimAPIService) DcimCableTerminationsUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsUpdateRequest { - return ApiDcimCableTerminationsUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @return ApiDcimConsoleServerPortsCreateRequest + */ + DcimConsoleServerPortsCreate(ctx context.Context) ApiDcimConsoleServerPortsCreateRequest -// Execute executes the request -// -// @return CableTermination -func (a *DcimAPIService) DcimCableTerminationsUpdateExecute(r ApiDcimCableTerminationsUpdateRequest) (*CableTermination, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination - ) + // DcimConsoleServerPortsCreateExecute executes the request + // @return ConsoleServerPort + DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleServerPortsCreateRequest) (*ConsoleServerPort, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimConsoleServerPortsDestroy Method for DcimConsoleServerPortsDestroy - localVarPath := localBasePath + "/api/dcim/cable-terminations/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Delete a console server port object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableTerminationRequest == nil { - return localVarReturnValue, nil, reportError("cableTerminationRequest is required and must be specified") - } + @param ctx 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 + */ + DcimConsoleServerPortsDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortsDestroyRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimConsoleServerPortsDestroyExecute executes the request + DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleServerPortsDestroyRequest) (*http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimConsoleServerPortsList Method for DcimConsoleServerPortsList - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Get a list of console server port objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableTerminationRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsListRequest + */ + DcimConsoleServerPortsList(ctx context.Context) ApiDcimConsoleServerPortsListRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimConsoleServerPortsListExecute executes the request + // @return PaginatedConsoleServerPortList + DcimConsoleServerPortsListExecute(r ApiDcimConsoleServerPortsListRequest) (*PaginatedConsoleServerPortList, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimConsoleServerPortsPartialUpdate Method for DcimConsoleServerPortsPartialUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Patch a console server port object. - 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 - } + @param ctx 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 + */ + DcimConsoleServerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsPartialUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimConsoleServerPortsPartialUpdateExecute executes the request + // @return ConsoleServerPort + DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimConsoleServerPortsPartialUpdateRequest) (*ConsoleServerPort, *http.Response, error) -type ApiDcimCablesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableRequest *[]CableRequest -} + /* + DcimConsoleServerPortsRetrieve Method for DcimConsoleServerPortsRetrieve -func (r ApiDcimCablesBulkDestroyRequest) CableRequest(cableRequest []CableRequest) ApiDcimCablesBulkDestroyRequest { - r.cableRequest = &cableRequest - return r -} + Get a console server port object. -func (r ApiDcimCablesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimCablesBulkDestroyExecute(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 console server port. + @return ApiDcimConsoleServerPortsRetrieveRequest + */ + DcimConsoleServerPortsRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsRetrieveRequest -/* -DcimCablesBulkDestroy Method for DcimCablesBulkDestroy + // DcimConsoleServerPortsRetrieveExecute executes the request + // @return ConsoleServerPort + DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleServerPortsRetrieveRequest) (*ConsoleServerPort, *http.Response, error) -Delete a list of cable objects. + /* + DcimConsoleServerPortsTraceRetrieve Method for DcimConsoleServerPortsTraceRetrieve + + 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(). - @return ApiDcimCablesBulkDestroyRequest -*/ -func (a *DcimAPIService) DcimCablesBulkDestroy(ctx context.Context) ApiDcimCablesBulkDestroyRequest { - return ApiDcimCablesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this console server port. + @return ApiDcimConsoleServerPortsTraceRetrieveRequest + */ + DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsTraceRetrieveRequest -// Execute executes the request -func (a *DcimAPIService) DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // DcimConsoleServerPortsTraceRetrieveExecute executes the request + // @return ConsoleServerPort + DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimConsoleServerPortsTraceRetrieveRequest) (*ConsoleServerPort, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimConsoleServerPortsUpdate Method for DcimConsoleServerPortsUpdate - localVarPath := localBasePath + "/api/dcim/cables/" + Put a console server port object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableRequest == nil { - return nil, reportError("cableRequest is required and must be specified") - } + @param ctx 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 + */ + DcimConsoleServerPortsUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimConsoleServerPortsUpdateExecute executes the request + // @return ConsoleServerPort + DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleServerPortsUpdateRequest) (*ConsoleServerPort, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimDeviceBayTemplatesBulkDestroy Method for DcimDeviceBayTemplatesBulkDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Delete a list of device bay template objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkDestroyRequest + */ + DcimDeviceBayTemplatesBulkDestroy(ctx context.Context) ApiDcimDeviceBayTemplatesBulkDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // DcimDeviceBayTemplatesBulkDestroyExecute executes the request + DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDeviceBayTemplatesBulkDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + DcimDeviceBayTemplatesBulkPartialUpdate Method for DcimDeviceBayTemplatesBulkPartialUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Patch a list of device bay template objects. - return localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest + */ + DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest -type ApiDcimCablesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableRequest *[]CableRequest -} + // DcimDeviceBayTemplatesBulkPartialUpdateExecute executes the request + // @return []DeviceBayTemplate + DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) -func (r ApiDcimCablesBulkPartialUpdateRequest) CableRequest(cableRequest []CableRequest) ApiDcimCablesBulkPartialUpdateRequest { - r.cableRequest = &cableRequest - return r -} + /* + DcimDeviceBayTemplatesBulkUpdate Method for DcimDeviceBayTemplatesBulkUpdate -func (r ApiDcimCablesBulkPartialUpdateRequest) Execute() ([]Cable, *http.Response, error) { - return r.ApiService.DcimCablesBulkPartialUpdateExecute(r) -} + Put a list of device bay template objects. -/* -DcimCablesBulkPartialUpdate Method for DcimCablesBulkPartialUpdate + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkUpdateRequest + */ + DcimDeviceBayTemplatesBulkUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkUpdateRequest -Patch a list of cable objects. + // DcimDeviceBayTemplatesBulkUpdateExecute executes the request + // @return []DeviceBayTemplate + DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDeviceBayTemplatesBulkUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) - @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 { - return ApiDcimCablesBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + /* + DcimDeviceBayTemplatesCreate Method for DcimDeviceBayTemplatesCreate -// Execute executes the request -// -// @return []Cable -func (a *DcimAPIService) DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkPartialUpdateRequest) ([]Cable, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Cable - ) + Post a list of device bay template objects. - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesCreateRequest + */ + DcimDeviceBayTemplatesCreate(ctx context.Context) ApiDcimDeviceBayTemplatesCreateRequest - localVarPath := localBasePath + "/api/dcim/cables/" + // DcimDeviceBayTemplatesCreateExecute executes the request + // @return DeviceBayTemplate + DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayTemplatesCreateRequest) (*DeviceBayTemplate, *http.Response, error) - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableRequest == nil { - return localVarReturnValue, nil, reportError("cableRequest is required and must be specified") - } + /* + DcimDeviceBayTemplatesDestroy Method for DcimDeviceBayTemplatesDestroy - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + Delete a device bay template object. - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + @param ctx 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 + */ + DcimDeviceBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesDestroyRequest - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableRequest - 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 - } + // DcimDeviceBayTemplatesDestroyExecute executes the request + DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBayTemplatesDestroyRequest) (*http.Response, error) - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimDeviceBayTemplatesList Method for DcimDeviceBayTemplatesList - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + Get a list of device bay template objects. - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesListRequest + */ + DcimDeviceBayTemplatesList(ctx context.Context) ApiDcimDeviceBayTemplatesListRequest - 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 - } + // DcimDeviceBayTemplatesListExecute executes the request + // @return PaginatedDeviceBayTemplateList + DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTemplatesListRequest) (*PaginatedDeviceBayTemplateList, *http.Response, error) - return localVarReturnValue, localVarHTTPResponse, nil -} + /* + DcimDeviceBayTemplatesPartialUpdate Method for DcimDeviceBayTemplatesPartialUpdate -type ApiDcimCablesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableRequest *[]CableRequest -} + Patch a device bay template object. -func (r ApiDcimCablesBulkUpdateRequest) CableRequest(cableRequest []CableRequest) ApiDcimCablesBulkUpdateRequest { - r.cableRequest = &cableRequest - 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 device bay template. + @return ApiDcimDeviceBayTemplatesPartialUpdateRequest + */ + DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesPartialUpdateRequest -func (r ApiDcimCablesBulkUpdateRequest) Execute() ([]Cable, *http.Response, error) { - return r.ApiService.DcimCablesBulkUpdateExecute(r) -} + // DcimDeviceBayTemplatesPartialUpdateExecute executes the request + // @return DeviceBayTemplate + DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDeviceBayTemplatesPartialUpdateRequest) (*DeviceBayTemplate, *http.Response, error) -/* -DcimCablesBulkUpdate Method for DcimCablesBulkUpdate + /* + DcimDeviceBayTemplatesRetrieve Method for DcimDeviceBayTemplatesRetrieve -Put a list of cable objects. + Get a device bay template object. @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 { - return ApiDcimCablesBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this device bay template. + @return ApiDcimDeviceBayTemplatesRetrieveRequest + */ + DcimDeviceBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesRetrieveRequest -// Execute executes the request -// -// @return []Cable -func (a *DcimAPIService) DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRequest) ([]Cable, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Cable - ) + // DcimDeviceBayTemplatesRetrieveExecute executes the request + // @return DeviceBayTemplate + DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBayTemplatesRetrieveRequest) (*DeviceBayTemplate, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimDeviceBayTemplatesUpdate Method for DcimDeviceBayTemplatesUpdate - localVarPath := localBasePath + "/api/dcim/cables/" + Put a device bay template object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.cableRequest == nil { - return localVarReturnValue, nil, reportError("cableRequest is required and must be specified") - } + @param ctx 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 + */ + DcimDeviceBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimDeviceBayTemplatesUpdateExecute executes the request + // @return DeviceBayTemplate + DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayTemplatesUpdateRequest) (*DeviceBayTemplate, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimDeviceBaysBulkDestroy Method for DcimDeviceBaysBulkDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Delete a list of device bay objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cableRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkDestroyRequest + */ + DcimDeviceBaysBulkDestroy(ctx context.Context) ApiDcimDeviceBaysBulkDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimDeviceBaysBulkDestroyExecute executes the request + DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBulkDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimDeviceBaysBulkPartialUpdate Method for DcimDeviceBaysBulkPartialUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Patch a list of device bay objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkPartialUpdateRequest + */ + DcimDeviceBaysBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBaysBulkPartialUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimDeviceBaysBulkPartialUpdateExecute executes the request + // @return []DeviceBay + DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceBaysBulkPartialUpdateRequest) ([]DeviceBay, *http.Response, error) -type ApiDcimCablesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableCableRequest *WritableCableRequest -} + /* + DcimDeviceBaysBulkUpdate Method for DcimDeviceBaysBulkUpdate -func (r ApiDcimCablesCreateRequest) WritableCableRequest(writableCableRequest WritableCableRequest) ApiDcimCablesCreateRequest { - r.writableCableRequest = &writableCableRequest - return r -} + Put a list of device bay objects. -func (r ApiDcimCablesCreateRequest) Execute() (*Cable, *http.Response, error) { - return r.ApiService.DcimCablesCreateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkUpdateRequest + */ + DcimDeviceBaysBulkUpdate(ctx context.Context) ApiDcimDeviceBaysBulkUpdateRequest -/* -DcimCablesCreate Method for DcimCablesCreate + // DcimDeviceBaysBulkUpdateExecute executes the request + // @return []DeviceBay + DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulkUpdateRequest) ([]DeviceBay, *http.Response, error) -Post a list of cable objects. + /* + 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 ApiDcimCablesCreateRequest -*/ -func (a *DcimAPIService) DcimCablesCreate(ctx context.Context) ApiDcimCablesCreateRequest { - return ApiDcimCablesCreateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiDcimDeviceBaysCreateRequest + */ + DcimDeviceBaysCreate(ctx context.Context) ApiDcimDeviceBaysCreateRequest -// Execute executes the request -// -// @return Cable -func (a *DcimAPIService) DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (*Cable, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable - ) + // DcimDeviceBaysCreateExecute executes the request + // @return DeviceBay + DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRequest) (*DeviceBay, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimDeviceBaysDestroy Method for DcimDeviceBaysDestroy - localVarPath := localBasePath + "/api/dcim/cables/" + Delete a device bay object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx 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 + */ + DcimDeviceBaysDestroy(ctx context.Context, id int32) ApiDcimDeviceBaysDestroyRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // DcimDeviceBaysDestroyExecute executes the request + DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroyRequest) (*http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimDeviceBaysList Method for DcimDeviceBaysList - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Get a list of device bay objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableCableRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysListRequest + */ + DcimDeviceBaysList(ctx context.Context) ApiDcimDeviceBaysListRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // DcimDeviceBaysListExecute executes the request + // @return PaginatedDeviceBayList + DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListRequest) (*PaginatedDeviceBayList, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + DcimDeviceBaysPartialUpdate Method for DcimDeviceBaysPartialUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Patch a device bay object. - 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 - } + @param ctx 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 + */ + DcimDeviceBaysPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysPartialUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // DcimDeviceBaysPartialUpdateExecute executes the request + // @return DeviceBay + DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysPartialUpdateRequest) (*DeviceBay, *http.Response, error) -type ApiDcimCablesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} + /* + DcimDeviceBaysRetrieve Method for DcimDeviceBaysRetrieve -func (r ApiDcimCablesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimCablesDestroyExecute(r) -} + Get a device bay object. -/* -DcimCablesDestroy Method for DcimCablesDestroy + @param ctx 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 + */ + DcimDeviceBaysRetrieve(ctx context.Context, id int32) ApiDcimDeviceBaysRetrieveRequest -Delete a cable object. + // DcimDeviceBaysRetrieveExecute executes the request + // @return DeviceBay + DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrieveRequest) (*DeviceBay, *http.Response, error) + + /* + 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 cable. - @return ApiDcimCablesDestroyRequest -*/ -func (a *DcimAPIService) DcimCablesDestroy(ctx context.Context, id int32) ApiDcimCablesDestroyRequest { - return ApiDcimCablesDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @param id A unique integer value identifying this device bay. + @return ApiDcimDeviceBaysUpdateRequest + */ + DcimDeviceBaysUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysUpdateRequest -// Execute executes the request -func (a *DcimAPIService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // DcimDeviceBaysUpdateExecute executes the request + // @return DeviceBay + DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRequest) (*DeviceBay, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimDeviceRolesBulkDestroy Method for DcimDeviceRolesBulkDestroy - localVarPath := localBasePath + "/api/dcim/cables/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Delete a list of device role objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkDestroyRequest + */ + DcimDeviceRolesBulkDestroy(ctx context.Context) ApiDcimDeviceRolesBulkDestroyRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // DcimDeviceRolesBulkDestroyExecute executes the request + DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesBulkDestroyRequest) (*http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + DcimDeviceRolesBulkPartialUpdate Method for DcimDeviceRolesBulkPartialUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Patch a list of device role objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkPartialUpdateRequest + */ + DcimDeviceRolesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceRolesBulkPartialUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // DcimDeviceRolesBulkPartialUpdateExecute executes the request + // @return []DeviceRole + DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDeviceRolesBulkPartialUpdateRequest) ([]DeviceRole, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + DcimDeviceRolesBulkUpdate Method for DcimDeviceRolesBulkUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Put a list of device role objects. - return localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkUpdateRequest + */ + DcimDeviceRolesBulkUpdate(ctx context.Context) ApiDcimDeviceRolesBulkUpdateRequest -type ApiDcimCablesListRequest struct { - ctx context.Context - ApiService *DcimAPIService - circuitterminationId *[]int32 - color *[]string - colorN *[]string - consoleportId *[]int32 - consoleserverportId *[]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 - frontportId *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaceId *[]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 *DcimCablesListLengthUnitParameter - lengthUnitN *DcimCablesListLengthUnitParameter - limit *int32 - location *[]string - locationId *[]int32 - modifiedByRequest *string - offset *int32 - ordering *string - powerfeedId *[]int32 - poweroutletId *[]int32 - powerportId *[]int32 - q *string - rack *[]string - rackId *[]int32 - rearportId *[]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 - terminationBTypeN *string - type_ *[]string - typeN *[]string - unterminated *bool - updatedByRequest *string -} + // DcimDeviceRolesBulkUpdateExecute executes the request + // @return []DeviceRole + DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBulkUpdateRequest) ([]DeviceRole, *http.Response, error) -func (r ApiDcimCablesListRequest) CircuitterminationId(circuitterminationId []int32) ApiDcimCablesListRequest { - r.circuitterminationId = &circuitterminationId - return r -} + /* + DcimDeviceRolesCreate Method for DcimDeviceRolesCreate -func (r ApiDcimCablesListRequest) Color(color []string) ApiDcimCablesListRequest { - r.color = &color - return r -} + Post a list of device role objects. -func (r ApiDcimCablesListRequest) ColorN(colorN []string) ApiDcimCablesListRequest { - r.colorN = &colorN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesCreateRequest + */ + DcimDeviceRolesCreate(ctx context.Context) ApiDcimDeviceRolesCreateRequest -func (r ApiDcimCablesListRequest) ConsoleportId(consoleportId []int32) ApiDcimCablesListRequest { - r.consoleportId = &consoleportId - return r -} + // DcimDeviceRolesCreateExecute executes the request + // @return DeviceRole + DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreateRequest) (*DeviceRole, *http.Response, error) -func (r ApiDcimCablesListRequest) ConsoleserverportId(consoleserverportId []int32) ApiDcimCablesListRequest { - r.consoleserverportId = &consoleserverportId - return r -} + /* + DcimDeviceRolesDestroy Method for DcimDeviceRolesDestroy -func (r ApiDcimCablesListRequest) Created(created []time.Time) ApiDcimCablesListRequest { - r.created = &created - return r -} + Delete a device role object. -func (r ApiDcimCablesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimCablesListRequest { - r.createdEmpty = &createdEmpty - 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 device role. + @return ApiDcimDeviceRolesDestroyRequest + */ + DcimDeviceRolesDestroy(ctx context.Context, id int32) ApiDcimDeviceRolesDestroyRequest -func (r ApiDcimCablesListRequest) CreatedGt(createdGt []time.Time) ApiDcimCablesListRequest { - r.createdGt = &createdGt - return r -} + // DcimDeviceRolesDestroyExecute executes the request + DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestroyRequest) (*http.Response, error) -func (r ApiDcimCablesListRequest) CreatedGte(createdGte []time.Time) ApiDcimCablesListRequest { - r.createdGte = &createdGte - return r -} + /* + DcimDeviceRolesList Method for DcimDeviceRolesList -func (r ApiDcimCablesListRequest) CreatedLt(createdLt []time.Time) ApiDcimCablesListRequest { - r.createdLt = &createdLt - return r -} + Get a list of device role objects. -func (r ApiDcimCablesListRequest) CreatedLte(createdLte []time.Time) ApiDcimCablesListRequest { - r.createdLte = &createdLte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesListRequest + */ + DcimDeviceRolesList(ctx context.Context) ApiDcimDeviceRolesListRequest -func (r ApiDcimCablesListRequest) CreatedN(createdN []time.Time) ApiDcimCablesListRequest { - r.createdN = &createdN - return r -} + // DcimDeviceRolesListExecute executes the request + // @return PaginatedDeviceRoleList + DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequest) (*PaginatedDeviceRoleList, *http.Response, error) -func (r ApiDcimCablesListRequest) CreatedByRequest(createdByRequest string) ApiDcimCablesListRequest { - r.createdByRequest = &createdByRequest - return r -} + /* + DcimDeviceRolesPartialUpdate Method for DcimDeviceRolesPartialUpdate -func (r ApiDcimCablesListRequest) Description(description []string) ApiDcimCablesListRequest { - r.description = &description - return r -} + Patch a device role object. -func (r ApiDcimCablesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimCablesListRequest { - r.descriptionEmpty = &descriptionEmpty - 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 device role. + @return ApiDcimDeviceRolesPartialUpdateRequest + */ + DcimDeviceRolesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesPartialUpdateRequest -func (r ApiDcimCablesListRequest) DescriptionIc(descriptionIc []string) ApiDcimCablesListRequest { - r.descriptionIc = &descriptionIc - return r -} + // DcimDeviceRolesPartialUpdateExecute executes the request + // @return DeviceRole + DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRolesPartialUpdateRequest) (*DeviceRole, *http.Response, error) -func (r ApiDcimCablesListRequest) DescriptionIe(descriptionIe []string) ApiDcimCablesListRequest { - r.descriptionIe = &descriptionIe - return r -} + /* + DcimDeviceRolesRetrieve Method for DcimDeviceRolesRetrieve -func (r ApiDcimCablesListRequest) DescriptionIew(descriptionIew []string) ApiDcimCablesListRequest { - r.descriptionIew = &descriptionIew - return r -} + Get a device role object. -func (r ApiDcimCablesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimCablesListRequest { - r.descriptionIsw = &descriptionIsw - 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 device role. + @return ApiDcimDeviceRolesRetrieveRequest + */ + DcimDeviceRolesRetrieve(ctx context.Context, id int32) ApiDcimDeviceRolesRetrieveRequest -func (r ApiDcimCablesListRequest) DescriptionN(descriptionN []string) ApiDcimCablesListRequest { - r.descriptionN = &descriptionN - return r -} + // DcimDeviceRolesRetrieveExecute executes the request + // @return DeviceRole + DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetrieveRequest) (*DeviceRole, *http.Response, error) -func (r ApiDcimCablesListRequest) DescriptionNic(descriptionNic []string) ApiDcimCablesListRequest { - r.descriptionNic = &descriptionNic - return r -} + /* + DcimDeviceRolesUpdate Method for DcimDeviceRolesUpdate -func (r ApiDcimCablesListRequest) DescriptionNie(descriptionNie []string) ApiDcimCablesListRequest { - r.descriptionNie = &descriptionNie - return r -} + Put a device role object. -func (r ApiDcimCablesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimCablesListRequest { - r.descriptionNiew = &descriptionNiew - 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 device role. + @return ApiDcimDeviceRolesUpdateRequest + */ + DcimDeviceRolesUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesUpdateRequest -func (r ApiDcimCablesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimCablesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + // DcimDeviceRolesUpdateExecute executes the request + // @return DeviceRole + DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdateRequest) (*DeviceRole, *http.Response, error) -func (r ApiDcimCablesListRequest) Device(device []string) ApiDcimCablesListRequest { - r.device = &device - return r -} + /* + DcimDeviceTypesBulkDestroy Method for DcimDeviceTypesBulkDestroy -func (r ApiDcimCablesListRequest) DeviceId(deviceId []int32) ApiDcimCablesListRequest { - r.deviceId = &deviceId - return r -} + Delete a list of device type objects. -func (r ApiDcimCablesListRequest) FrontportId(frontportId []int32) ApiDcimCablesListRequest { - r.frontportId = &frontportId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesBulkDestroyRequest + */ + DcimDeviceTypesBulkDestroy(ctx context.Context) ApiDcimDeviceTypesBulkDestroyRequest -func (r ApiDcimCablesListRequest) Id(id []int32) ApiDcimCablesListRequest { - r.id = &id - return r -} + // DcimDeviceTypesBulkDestroyExecute executes the request + DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesBulkDestroyRequest) (*http.Response, error) -func (r ApiDcimCablesListRequest) IdEmpty(idEmpty bool) ApiDcimCablesListRequest { - r.idEmpty = &idEmpty - return r -} + /* + DcimDeviceTypesBulkPartialUpdate Method for DcimDeviceTypesBulkPartialUpdate -func (r ApiDcimCablesListRequest) IdGt(idGt []int32) ApiDcimCablesListRequest { - r.idGt = &idGt - return r -} + Patch a list of device type objects. -func (r ApiDcimCablesListRequest) IdGte(idGte []int32) ApiDcimCablesListRequest { - r.idGte = &idGte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesBulkPartialUpdateRequest + */ + DcimDeviceTypesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceTypesBulkPartialUpdateRequest -func (r ApiDcimCablesListRequest) IdLt(idLt []int32) ApiDcimCablesListRequest { - r.idLt = &idLt - return r -} + // DcimDeviceTypesBulkPartialUpdateExecute executes the request + // @return []DeviceType + DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDeviceTypesBulkPartialUpdateRequest) ([]DeviceType, *http.Response, error) -func (r ApiDcimCablesListRequest) IdLte(idLte []int32) ApiDcimCablesListRequest { - r.idLte = &idLte - return r -} + /* + DcimDeviceTypesBulkUpdate Method for DcimDeviceTypesBulkUpdate -func (r ApiDcimCablesListRequest) IdN(idN []int32) ApiDcimCablesListRequest { - r.idN = &idN - return r -} + Put a list of device type objects. -func (r ApiDcimCablesListRequest) InterfaceId(interfaceId []int32) ApiDcimCablesListRequest { - r.interfaceId = &interfaceId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesBulkUpdateRequest + */ + DcimDeviceTypesBulkUpdate(ctx context.Context) ApiDcimDeviceTypesBulkUpdateRequest -func (r ApiDcimCablesListRequest) Label(label []string) ApiDcimCablesListRequest { - r.label = &label - return r -} + // DcimDeviceTypesBulkUpdateExecute executes the request + // @return []DeviceType + DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBulkUpdateRequest) ([]DeviceType, *http.Response, error) -func (r ApiDcimCablesListRequest) LabelEmpty(labelEmpty bool) ApiDcimCablesListRequest { - r.labelEmpty = &labelEmpty - return r -} + /* + DcimDeviceTypesCreate Method for DcimDeviceTypesCreate -func (r ApiDcimCablesListRequest) LabelIc(labelIc []string) ApiDcimCablesListRequest { - r.labelIc = &labelIc - return r -} + Post a list of device type objects. -func (r ApiDcimCablesListRequest) LabelIe(labelIe []string) ApiDcimCablesListRequest { - r.labelIe = &labelIe - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesCreateRequest + */ + DcimDeviceTypesCreate(ctx context.Context) ApiDcimDeviceTypesCreateRequest -func (r ApiDcimCablesListRequest) LabelIew(labelIew []string) ApiDcimCablesListRequest { - r.labelIew = &labelIew - return r -} + // DcimDeviceTypesCreateExecute executes the request + // @return DeviceType + DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreateRequest) (*DeviceType, *http.Response, error) -func (r ApiDcimCablesListRequest) LabelIsw(labelIsw []string) ApiDcimCablesListRequest { - r.labelIsw = &labelIsw - return r -} + /* + DcimDeviceTypesDestroy Method for DcimDeviceTypesDestroy -func (r ApiDcimCablesListRequest) LabelN(labelN []string) ApiDcimCablesListRequest { - r.labelN = &labelN - return r -} + Delete a device type object. -func (r ApiDcimCablesListRequest) LabelNic(labelNic []string) ApiDcimCablesListRequest { - r.labelNic = &labelNic - 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 device type. + @return ApiDcimDeviceTypesDestroyRequest + */ + DcimDeviceTypesDestroy(ctx context.Context, id int32) ApiDcimDeviceTypesDestroyRequest -func (r ApiDcimCablesListRequest) LabelNie(labelNie []string) ApiDcimCablesListRequest { - r.labelNie = &labelNie - return r -} + // DcimDeviceTypesDestroyExecute executes the request + DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestroyRequest) (*http.Response, error) -func (r ApiDcimCablesListRequest) LabelNiew(labelNiew []string) ApiDcimCablesListRequest { - r.labelNiew = &labelNiew - return r -} + /* + DcimDeviceTypesList Method for DcimDeviceTypesList -func (r ApiDcimCablesListRequest) LabelNisw(labelNisw []string) ApiDcimCablesListRequest { - r.labelNisw = &labelNisw - return r -} + Get a list of device type objects. -func (r ApiDcimCablesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimCablesListRequest { - r.lastUpdated = &lastUpdated - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesListRequest + */ + DcimDeviceTypesList(ctx context.Context) ApiDcimDeviceTypesListRequest -func (r ApiDcimCablesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimCablesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + // DcimDeviceTypesListExecute executes the request + // @return PaginatedDeviceTypeList + DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequest) (*PaginatedDeviceTypeList, *http.Response, error) -func (r ApiDcimCablesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimCablesListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + /* + DcimDeviceTypesPartialUpdate Method for DcimDeviceTypesPartialUpdate -func (r ApiDcimCablesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimCablesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + Patch a device type object. -func (r ApiDcimCablesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimCablesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - 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 device type. + @return ApiDcimDeviceTypesPartialUpdateRequest + */ + DcimDeviceTypesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesPartialUpdateRequest -func (r ApiDcimCablesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimCablesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + // DcimDeviceTypesPartialUpdateExecute executes the request + // @return DeviceType + DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceTypesPartialUpdateRequest) (*DeviceType, *http.Response, error) -func (r ApiDcimCablesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimCablesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + /* + DcimDeviceTypesRetrieve Method for DcimDeviceTypesRetrieve -func (r ApiDcimCablesListRequest) Length(length []float64) ApiDcimCablesListRequest { - r.length = &length - return r -} + Get a device type object. -func (r ApiDcimCablesListRequest) LengthEmpty(lengthEmpty bool) ApiDcimCablesListRequest { - r.lengthEmpty = &lengthEmpty - 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 device type. + @return ApiDcimDeviceTypesRetrieveRequest + */ + DcimDeviceTypesRetrieve(ctx context.Context, id int32) ApiDcimDeviceTypesRetrieveRequest -func (r ApiDcimCablesListRequest) LengthGt(lengthGt []float64) ApiDcimCablesListRequest { - r.lengthGt = &lengthGt - return r -} + // DcimDeviceTypesRetrieveExecute executes the request + // @return DeviceType + DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetrieveRequest) (*DeviceType, *http.Response, error) -func (r ApiDcimCablesListRequest) LengthGte(lengthGte []float64) ApiDcimCablesListRequest { - r.lengthGte = &lengthGte - return r -} + /* + DcimDeviceTypesUpdate Method for DcimDeviceTypesUpdate -func (r ApiDcimCablesListRequest) LengthLt(lengthLt []float64) ApiDcimCablesListRequest { - r.lengthLt = &lengthLt - return r -} + Put a device type object. -func (r ApiDcimCablesListRequest) LengthLte(lengthLte []float64) ApiDcimCablesListRequest { - r.lengthLte = &lengthLte - 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 device type. + @return ApiDcimDeviceTypesUpdateRequest + */ + DcimDeviceTypesUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesUpdateRequest -func (r ApiDcimCablesListRequest) LengthN(lengthN []float64) ApiDcimCablesListRequest { - r.lengthN = &lengthN - return r -} + // DcimDeviceTypesUpdateExecute executes the request + // @return DeviceType + DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdateRequest) (*DeviceType, *http.Response, error) -// * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches -func (r ApiDcimCablesListRequest) LengthUnit(lengthUnit DcimCablesListLengthUnitParameter) ApiDcimCablesListRequest { - r.lengthUnit = &lengthUnit - return r -} + /* + DcimDevicesBulkDestroy Method for DcimDevicesBulkDestroy -// * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches -func (r ApiDcimCablesListRequest) LengthUnitN(lengthUnitN DcimCablesListLengthUnitParameter) ApiDcimCablesListRequest { - r.lengthUnitN = &lengthUnitN - return r -} + Delete a list of device objects. -// Number of results to return per page. -func (r ApiDcimCablesListRequest) Limit(limit int32) ApiDcimCablesListRequest { - r.limit = &limit - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesBulkDestroyRequest + */ + DcimDevicesBulkDestroy(ctx context.Context) ApiDcimDevicesBulkDestroyRequest -func (r ApiDcimCablesListRequest) Location(location []string) ApiDcimCablesListRequest { - r.location = &location - return r -} + // DcimDevicesBulkDestroyExecute executes the request + DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestroyRequest) (*http.Response, error) -func (r ApiDcimCablesListRequest) LocationId(locationId []int32) ApiDcimCablesListRequest { - r.locationId = &locationId - return r -} + /* + DcimDevicesBulkPartialUpdate Method for DcimDevicesBulkPartialUpdate -func (r ApiDcimCablesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimCablesListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + Patch a list of device objects. -// The initial index from which to return the results. -func (r ApiDcimCablesListRequest) Offset(offset int32) ApiDcimCablesListRequest { - r.offset = &offset - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesBulkPartialUpdateRequest + */ + DcimDevicesBulkPartialUpdate(ctx context.Context) ApiDcimDevicesBulkPartialUpdateRequest -// Which field to use when ordering the results. -func (r ApiDcimCablesListRequest) Ordering(ordering string) ApiDcimCablesListRequest { - r.ordering = &ordering - return r -} + // DcimDevicesBulkPartialUpdateExecute executes the request + // @return []DeviceWithConfigContext + DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBulkPartialUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) -func (r ApiDcimCablesListRequest) PowerfeedId(powerfeedId []int32) ApiDcimCablesListRequest { - r.powerfeedId = &powerfeedId - return r -} + /* + DcimDevicesBulkUpdate Method for DcimDevicesBulkUpdate -func (r ApiDcimCablesListRequest) PoweroutletId(poweroutletId []int32) ApiDcimCablesListRequest { - r.poweroutletId = &poweroutletId - return r -} + Put a list of device objects. -func (r ApiDcimCablesListRequest) PowerportId(powerportId []int32) ApiDcimCablesListRequest { - r.powerportId = &powerportId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesBulkUpdateRequest + */ + DcimDevicesBulkUpdate(ctx context.Context) ApiDcimDevicesBulkUpdateRequest -// Search -func (r ApiDcimCablesListRequest) Q(q string) ApiDcimCablesListRequest { - r.q = &q - return r -} + // DcimDevicesBulkUpdateExecute executes the request + // @return []DeviceWithConfigContext + DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) -func (r ApiDcimCablesListRequest) Rack(rack []string) ApiDcimCablesListRequest { - r.rack = &rack - return r -} + /* + DcimDevicesCreate Method for DcimDevicesCreate -func (r ApiDcimCablesListRequest) RackId(rackId []int32) ApiDcimCablesListRequest { - r.rackId = &rackId - return r -} + Post a list of device objects. -func (r ApiDcimCablesListRequest) RearportId(rearportId []int32) ApiDcimCablesListRequest { - r.rearportId = &rearportId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesCreateRequest + */ + DcimDevicesCreate(ctx context.Context) ApiDcimDevicesCreateRequest -func (r ApiDcimCablesListRequest) Site(site []string) ApiDcimCablesListRequest { - r.site = &site - return r -} + // DcimDevicesCreateExecute executes the request + // @return DeviceWithConfigContext + DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) (*DeviceWithConfigContext, *http.Response, error) -func (r ApiDcimCablesListRequest) SiteId(siteId []int32) ApiDcimCablesListRequest { - r.siteId = &siteId - return r -} + /* + DcimDevicesDestroy Method for DcimDevicesDestroy -func (r ApiDcimCablesListRequest) Status(status []string) ApiDcimCablesListRequest { - r.status = &status - return r -} + Delete a device object. -func (r ApiDcimCablesListRequest) StatusN(statusN []string) ApiDcimCablesListRequest { - r.statusN = &statusN - 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 device. + @return ApiDcimDevicesDestroyRequest + */ + DcimDevicesDestroy(ctx context.Context, id int32) ApiDcimDevicesDestroyRequest -func (r ApiDcimCablesListRequest) Tag(tag []string) ApiDcimCablesListRequest { - r.tag = &tag - return r -} + // DcimDevicesDestroyExecute executes the request + DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyRequest) (*http.Response, error) -func (r ApiDcimCablesListRequest) TagN(tagN []string) ApiDcimCablesListRequest { - r.tagN = &tagN - return r -} + /* + DcimDevicesList Method for DcimDevicesList -// Tenant (slug) -func (r ApiDcimCablesListRequest) Tenant(tenant []string) ApiDcimCablesListRequest { - r.tenant = &tenant - return r -} + Get a list of device objects. -// Tenant (slug) -func (r ApiDcimCablesListRequest) TenantN(tenantN []string) ApiDcimCablesListRequest { - r.tenantN = &tenantN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesListRequest + */ + DcimDevicesList(ctx context.Context) ApiDcimDevicesListRequest -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []int32) ApiDcimCablesListRequest { - r.tenantGroup = &tenantGroup - return r -} + // DcimDevicesListExecute executes the request + // @return PaginatedDeviceWithConfigContextList + DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*PaginatedDeviceWithConfigContextList, *http.Response, error) -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimCablesListRequest { - r.tenantGroupN = &tenantGroupN - return r -} + /* + DcimDevicesPartialUpdate Method for DcimDevicesPartialUpdate -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimCablesListRequest { - r.tenantGroupId = &tenantGroupId - return r -} + Patch a device object. -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimCablesListRequest { - r.tenantGroupIdN = &tenantGroupIdN - 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 device. + @return ApiDcimDevicesPartialUpdateRequest + */ + DcimDevicesPartialUpdate(ctx context.Context, id int32) ApiDcimDevicesPartialUpdateRequest -// Tenant (ID) -func (r ApiDcimCablesListRequest) TenantId(tenantId []*int32) ApiDcimCablesListRequest { - r.tenantId = &tenantId - return r -} + // DcimDevicesPartialUpdateExecute executes the request + // @return DeviceWithConfigContext + DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartialUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) -// Tenant (ID) -func (r ApiDcimCablesListRequest) TenantIdN(tenantIdN []*int32) ApiDcimCablesListRequest { - r.tenantIdN = &tenantIdN - return r -} + /* + DcimDevicesRenderConfigCreate Method for DcimDevicesRenderConfigCreate -func (r ApiDcimCablesListRequest) TerminationAId(terminationAId []int32) ApiDcimCablesListRequest { - r.terminationAId = &terminationAId - return r -} + Resolve and render the preferred ConfigTemplate for this Device. -func (r ApiDcimCablesListRequest) TerminationAType(terminationAType string) ApiDcimCablesListRequest { - r.terminationAType = &terminationAType - 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 device. + @return ApiDcimDevicesRenderConfigCreateRequest + */ + DcimDevicesRenderConfigCreate(ctx context.Context, id int32) ApiDcimDevicesRenderConfigCreateRequest -func (r ApiDcimCablesListRequest) TerminationATypeN(terminationATypeN string) ApiDcimCablesListRequest { - r.terminationATypeN = &terminationATypeN - return r -} + // DcimDevicesRenderConfigCreateExecute executes the request + // @return DeviceWithConfigContext + DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRenderConfigCreateRequest) (*DeviceWithConfigContext, *http.Response, error) -func (r ApiDcimCablesListRequest) TerminationBId(terminationBId []int32) ApiDcimCablesListRequest { - r.terminationBId = &terminationBId - return r -} + /* + DcimDevicesRetrieve Method for DcimDevicesRetrieve -func (r ApiDcimCablesListRequest) TerminationBType(terminationBType string) ApiDcimCablesListRequest { - r.terminationBType = &terminationBType - return r -} + Get a device object. -func (r ApiDcimCablesListRequest) TerminationBTypeN(terminationBTypeN string) ApiDcimCablesListRequest { - r.terminationBTypeN = &terminationBTypeN - 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 device. + @return ApiDcimDevicesRetrieveRequest + */ + DcimDevicesRetrieve(ctx context.Context, id int32) ApiDcimDevicesRetrieveRequest -func (r ApiDcimCablesListRequest) Type_(type_ []string) ApiDcimCablesListRequest { - r.type_ = &type_ - return r -} + // DcimDevicesRetrieveExecute executes the request + // @return DeviceWithConfigContext + DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequest) (*DeviceWithConfigContext, *http.Response, error) -func (r ApiDcimCablesListRequest) TypeN(typeN []string) ApiDcimCablesListRequest { - r.typeN = &typeN - return r -} + /* + DcimDevicesUpdate Method for DcimDevicesUpdate -// Unterminated -func (r ApiDcimCablesListRequest) Unterminated(unterminated bool) ApiDcimCablesListRequest { - r.unterminated = &unterminated - return r -} + Put a device object. -func (r ApiDcimCablesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimCablesListRequest { - r.updatedByRequest = &updatedByRequest - 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 device. + @return ApiDcimDevicesUpdateRequest + */ + DcimDevicesUpdate(ctx context.Context, id int32) ApiDcimDevicesUpdateRequest -func (r ApiDcimCablesListRequest) Execute() (*PaginatedCableList, *http.Response, error) { - return r.ApiService.DcimCablesListExecute(r) -} + // DcimDevicesUpdateExecute executes the request + // @return DeviceWithConfigContext + DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) -/* -DcimCablesList Method for DcimCablesList + /* + DcimFrontPortTemplatesBulkDestroy Method for DcimFrontPortTemplatesBulkDestroy -Get a list of cable objects. + 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 ApiDcimCablesListRequest -*/ -func (a *DcimAPIService) DcimCablesList(ctx context.Context) ApiDcimCablesListRequest { - return ApiDcimCablesListRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiDcimFrontPortTemplatesBulkDestroyRequest + */ + DcimFrontPortTemplatesBulkDestroy(ctx context.Context) ApiDcimFrontPortTemplatesBulkDestroyRequest -// Execute executes the request -// -// @return PaginatedCableList -func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*PaginatedCableList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCableList - ) + // DcimFrontPortTemplatesBulkDestroyExecute executes the request + DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFrontPortTemplatesBulkDestroyRequest) (*http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + DcimFrontPortTemplatesBulkPartialUpdate Method for DcimFrontPortTemplatesBulkPartialUpdate - localVarPath := localBasePath + "/api/dcim/cables/" + Patch a list of front port template objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest + */ + DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest - if r.circuitterminationId != nil { - t := *r.circuitterminationId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuittermination_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuittermination_id", t, "multi") - } - } - if r.color != nil { - t := *r.color - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") - } - } - if r.colorN != nil { - t := *r.colorN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") - } - } - if r.consoleportId != nil { - t := *r.consoleportId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "consoleport_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "consoleport_id", t, "multi") - } - } - if r.consoleserverportId != nil { - t := *r.consoleserverportId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "consoleserverport_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "consoleserverport_id", 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) + // DcimFrontPortTemplatesBulkPartialUpdateExecute executes the request + // @return []FrontPortTemplate + DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) ([]FrontPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimFrontPortTemplatesBulkUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkUpdateRequest + + // DcimFrontPortTemplatesBulkUpdateExecute executes the request + // @return []FrontPortTemplate + DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontPortTemplatesBulkUpdateRequest) ([]FrontPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimFrontPortTemplatesCreate(ctx context.Context) ApiDcimFrontPortTemplatesCreateRequest + + // DcimFrontPortTemplatesCreateExecute executes the request + // @return FrontPortTemplate + DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortTemplatesCreateRequest) (*FrontPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimFrontPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimFrontPortTemplatesDestroyRequest + + // DcimFrontPortTemplatesDestroyExecute executes the request + DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPortTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimFrontPortTemplatesList(ctx context.Context) ApiDcimFrontPortTemplatesListRequest + + // DcimFrontPortTemplatesListExecute executes the request + // @return PaginatedFrontPortTemplateList + DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTemplatesListRequest) (*PaginatedFrontPortTemplateList, *http.Response, error) + + /* + DcimFrontPortTemplatesPartialUpdate Method for DcimFrontPortTemplatesPartialUpdate + + 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 + */ + DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesPartialUpdateRequest + + // DcimFrontPortTemplatesPartialUpdateExecute executes the request + // @return FrontPortTemplate + DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFrontPortTemplatesPartialUpdateRequest) (*FrontPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimFrontPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimFrontPortTemplatesRetrieveRequest + + // DcimFrontPortTemplatesRetrieveExecute executes the request + // @return FrontPortTemplate + DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPortTemplatesRetrieveRequest) (*FrontPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimFrontPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesUpdateRequest + + // DcimFrontPortTemplatesUpdateExecute executes the request + // @return FrontPortTemplate + DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortTemplatesUpdateRequest) (*FrontPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsBulkDestroy(ctx context.Context) ApiDcimFrontPortsBulkDestroyRequest + + // DcimFrontPortsBulkDestroyExecute executes the request + DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimFrontPortsBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortsBulkPartialUpdateRequest + + // DcimFrontPortsBulkPartialUpdateExecute executes the request + // @return []FrontPort + DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPortsBulkPartialUpdateRequest) ([]FrontPort, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsBulkUpdate(ctx context.Context) ApiDcimFrontPortsBulkUpdateRequest + + // DcimFrontPortsBulkUpdateExecute executes the request + // @return []FrontPort + DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulkUpdateRequest) ([]FrontPort, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsCreate(ctx context.Context) ApiDcimFrontPortsCreateRequest + + // DcimFrontPortsCreateExecute executes the request + // @return FrontPort + DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRequest) (*FrontPort, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsDestroy(ctx context.Context, id int32) ApiDcimFrontPortsDestroyRequest + + // DcimFrontPortsDestroyExecute executes the request + DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimFrontPortsList(ctx context.Context) ApiDcimFrontPortsListRequest + + // DcimFrontPortsListExecute executes the request + // @return PaginatedFrontPortList + DcimFrontPortsListExecute(r ApiDcimFrontPortsListRequest) (*PaginatedFrontPortList, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortsPartialUpdateRequest + + // DcimFrontPortsPartialUpdateExecute executes the request + // @return FrontPort + DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsPartialUpdateRequest) (*FrontPort, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsPathsRetrieveRequest + + // DcimFrontPortsPathsRetrieveExecute executes the request + // @return FrontPort + DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsPathsRetrieveRequest) (*FrontPort, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsRetrieveRequest + + // DcimFrontPortsRetrieveExecute executes the request + // @return FrontPort + DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrieveRequest) (*FrontPort, *http.Response, error) + + /* + 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 + */ + DcimFrontPortsUpdate(ctx context.Context, id int32) ApiDcimFrontPortsUpdateRequest + + // DcimFrontPortsUpdateExecute executes the request + // @return FrontPort + DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRequest) (*FrontPort, *http.Response, error) + + /* + 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 + */ + DcimInterfaceTemplatesBulkDestroy(ctx context.Context) ApiDcimInterfaceTemplatesBulkDestroyRequest + + // DcimInterfaceTemplatesBulkDestroyExecute executes the request + DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInterfaceTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + DcimInterfaceTemplatesBulkPartialUpdate Method for DcimInterfaceTemplatesBulkPartialUpdate + + 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 + */ + DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest + + // DcimInterfaceTemplatesBulkPartialUpdateExecute executes the request + // @return []InterfaceTemplate + DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) ([]InterfaceTemplate, *http.Response, error) + + /* + 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 + */ + DcimInterfaceTemplatesBulkUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkUpdateRequest + + // DcimInterfaceTemplatesBulkUpdateExecute executes the request + // @return []InterfaceTemplate + DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterfaceTemplatesBulkUpdateRequest) ([]InterfaceTemplate, *http.Response, error) + + /* + 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 + */ + DcimInterfaceTemplatesCreate(ctx context.Context) ApiDcimInterfaceTemplatesCreateRequest + + // DcimInterfaceTemplatesCreateExecute executes the request + // @return InterfaceTemplate + DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceTemplatesCreateRequest) (*InterfaceTemplate, *http.Response, error) + + /* + 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 + */ + DcimInterfaceTemplatesDestroy(ctx context.Context, id int32) ApiDcimInterfaceTemplatesDestroyRequest + + // DcimInterfaceTemplatesDestroyExecute executes the request + DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterfaceTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimInterfaceTemplatesList(ctx context.Context) ApiDcimInterfaceTemplatesListRequest + + // DcimInterfaceTemplatesListExecute executes the request + // @return PaginatedInterfaceTemplateList + DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTemplatesListRequest) (*PaginatedInterfaceTemplateList, *http.Response, error) + + /* + DcimInterfaceTemplatesPartialUpdate Method for DcimInterfaceTemplatesPartialUpdate + + 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 + */ + DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesPartialUpdateRequest + + // DcimInterfaceTemplatesPartialUpdateExecute executes the request + // @return InterfaceTemplate + DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInterfaceTemplatesPartialUpdateRequest) (*InterfaceTemplate, *http.Response, error) + + /* + 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 + */ + DcimInterfaceTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInterfaceTemplatesRetrieveRequest + + // DcimInterfaceTemplatesRetrieveExecute executes the request + // @return InterfaceTemplate + DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfaceTemplatesRetrieveRequest) (*InterfaceTemplate, *http.Response, error) + + /* + 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 + */ + DcimInterfaceTemplatesUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesUpdateRequest + + // DcimInterfaceTemplatesUpdateExecute executes the request + // @return InterfaceTemplate + DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceTemplatesUpdateRequest) (*InterfaceTemplate, *http.Response, error) + + /* + 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 + */ + DcimInterfacesBulkDestroy(ctx context.Context) ApiDcimInterfacesBulkDestroyRequest + + // DcimInterfacesBulkDestroyExecute executes the request + DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimInterfacesBulkPartialUpdate(ctx context.Context) ApiDcimInterfacesBulkPartialUpdateRequest + + // DcimInterfacesBulkPartialUpdateExecute executes the request + // @return []Interface + DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfacesBulkPartialUpdateRequest) ([]Interface, *http.Response, error) + + /* + 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 + */ + DcimInterfacesBulkUpdate(ctx context.Context) ApiDcimInterfacesBulkUpdateRequest + + // DcimInterfacesBulkUpdateExecute executes the request + // @return []Interface + DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulkUpdateRequest) ([]Interface, *http.Response, error) + + /* + 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 + */ + DcimInterfacesCreate(ctx context.Context) ApiDcimInterfacesCreateRequest + + // DcimInterfacesCreateExecute executes the request + // @return Interface + DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRequest) (*Interface, *http.Response, error) + + /* + 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 + */ + DcimInterfacesDestroy(ctx context.Context, id int32) ApiDcimInterfacesDestroyRequest + + // DcimInterfacesDestroyExecute executes the request + DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimInterfacesList(ctx context.Context) ApiDcimInterfacesListRequest + + // DcimInterfacesListExecute executes the request + // @return PaginatedInterfaceList + DcimInterfacesListExecute(r ApiDcimInterfacesListRequest) (*PaginatedInterfaceList, *http.Response, error) + + /* + 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 + */ + DcimInterfacesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfacesPartialUpdateRequest + + // DcimInterfacesPartialUpdateExecute executes the request + // @return Interface + DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesPartialUpdateRequest) (*Interface, *http.Response, error) + + /* + 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 + */ + DcimInterfacesRetrieve(ctx context.Context, id int32) ApiDcimInterfacesRetrieveRequest + + // DcimInterfacesRetrieveExecute executes the request + // @return Interface + DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrieveRequest) (*Interface, *http.Response, error) + + /* + 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 + */ + DcimInterfacesTraceRetrieve(ctx context.Context, id int32) ApiDcimInterfacesTraceRetrieveRequest + + // DcimInterfacesTraceRetrieveExecute executes the request + // @return Interface + DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesTraceRetrieveRequest) (*Interface, *http.Response, error) + + /* + 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 + */ + DcimInterfacesUpdate(ctx context.Context, id int32) ApiDcimInterfacesUpdateRequest + + // DcimInterfacesUpdateExecute executes the request + // @return Interface + DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRequest) (*Interface, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemRolesBulkDestroy(ctx context.Context) ApiDcimInventoryItemRolesBulkDestroyRequest + + // DcimInventoryItemRolesBulkDestroyExecute executes the request + DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInventoryItemRolesBulkDestroyRequest) (*http.Response, error) + + /* + DcimInventoryItemRolesBulkPartialUpdate Method for DcimInventoryItemRolesBulkPartialUpdate + + 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 + */ + DcimInventoryItemRolesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkPartialUpdateRequest + + // DcimInventoryItemRolesBulkPartialUpdateExecute executes the request + // @return []InventoryItemRole + DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) ([]InventoryItemRole, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemRolesBulkUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkUpdateRequest + + // DcimInventoryItemRolesBulkUpdateExecute executes the request + // @return []InventoryItemRole + DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInventoryItemRolesBulkUpdateRequest) ([]InventoryItemRole, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemRolesCreate(ctx context.Context) ApiDcimInventoryItemRolesCreateRequest + + // DcimInventoryItemRolesCreateExecute executes the request + // @return InventoryItemRole + DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryItemRolesCreateRequest) (*InventoryItemRole, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemRolesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemRolesDestroyRequest + + // DcimInventoryItemRolesDestroyExecute executes the request + DcimInventoryItemRolesDestroyExecute(r ApiDcimInventoryItemRolesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimInventoryItemRolesList(ctx context.Context) ApiDcimInventoryItemRolesListRequest + + // DcimInventoryItemRolesListExecute executes the request + // @return PaginatedInventoryItemRoleList + DcimInventoryItemRolesListExecute(r ApiDcimInventoryItemRolesListRequest) (*PaginatedInventoryItemRoleList, *http.Response, error) + + /* + DcimInventoryItemRolesPartialUpdate Method for DcimInventoryItemRolesPartialUpdate + + 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 + */ + DcimInventoryItemRolesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesPartialUpdateRequest + + // DcimInventoryItemRolesPartialUpdateExecute executes the request + // @return InventoryItemRole + DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInventoryItemRolesPartialUpdateRequest) (*InventoryItemRole, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemRolesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemRolesRetrieveRequest + + // DcimInventoryItemRolesRetrieveExecute executes the request + // @return InventoryItemRole + DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventoryItemRolesRetrieveRequest) (*InventoryItemRole, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemRolesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesUpdateRequest + + // DcimInventoryItemRolesUpdateExecute executes the request + // @return InventoryItemRole + DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryItemRolesUpdateRequest) (*InventoryItemRole, *http.Response, error) + + /* + DcimInventoryItemTemplatesBulkDestroy Method for DcimInventoryItemTemplatesBulkDestroy + + 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 + */ + DcimInventoryItemTemplatesBulkDestroy(ctx context.Context) ApiDcimInventoryItemTemplatesBulkDestroyRequest + + // DcimInventoryItemTemplatesBulkDestroyExecute executes the request + DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimInventoryItemTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + DcimInventoryItemTemplatesBulkPartialUpdate Method for DcimInventoryItemTemplatesBulkPartialUpdate + + 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 + */ + DcimInventoryItemTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest + + // DcimInventoryItemTemplatesBulkPartialUpdateExecute executes the request + // @return []InventoryItemTemplate + DcimInventoryItemTemplatesBulkPartialUpdateExecute(r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) + + /* + DcimInventoryItemTemplatesBulkUpdate Method for DcimInventoryItemTemplatesBulkUpdate + + 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 + */ + DcimInventoryItemTemplatesBulkUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkUpdateRequest + + // DcimInventoryItemTemplatesBulkUpdateExecute executes the request + // @return []InventoryItemTemplate + DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimInventoryItemTemplatesBulkUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemTemplatesCreate(ctx context.Context) ApiDcimInventoryItemTemplatesCreateRequest + + // DcimInventoryItemTemplatesCreateExecute executes the request + // @return InventoryItemTemplate + DcimInventoryItemTemplatesCreateExecute(r ApiDcimInventoryItemTemplatesCreateRequest) (*InventoryItemTemplate, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemTemplatesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesDestroyRequest + + // DcimInventoryItemTemplatesDestroyExecute executes the request + DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInventoryItemTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimInventoryItemTemplatesList(ctx context.Context) ApiDcimInventoryItemTemplatesListRequest + + // DcimInventoryItemTemplatesListExecute executes the request + // @return PaginatedInventoryItemTemplateList + DcimInventoryItemTemplatesListExecute(r ApiDcimInventoryItemTemplatesListRequest) (*PaginatedInventoryItemTemplateList, *http.Response, error) + + /* + DcimInventoryItemTemplatesPartialUpdate Method for DcimInventoryItemTemplatesPartialUpdate + + 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 + */ + DcimInventoryItemTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesPartialUpdateRequest + + // DcimInventoryItemTemplatesPartialUpdateExecute executes the request + // @return InventoryItemTemplate + DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDcimInventoryItemTemplatesPartialUpdateRequest) (*InventoryItemTemplate, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesRetrieveRequest + + // DcimInventoryItemTemplatesRetrieveExecute executes the request + // @return InventoryItemTemplate + DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInventoryItemTemplatesRetrieveRequest) (*InventoryItemTemplate, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemTemplatesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesUpdateRequest + + // DcimInventoryItemTemplatesUpdateExecute executes the request + // @return InventoryItemTemplate + DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInventoryItemTemplatesUpdateRequest) (*InventoryItemTemplate, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemsBulkDestroy(ctx context.Context) ApiDcimInventoryItemsBulkDestroyRequest + + // DcimInventoryItemsBulkDestroyExecute executes the request + DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventoryItemsBulkDestroyRequest) (*http.Response, error) + + /* + DcimInventoryItemsBulkPartialUpdate Method for DcimInventoryItemsBulkPartialUpdate + + 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 + */ + DcimInventoryItemsBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemsBulkPartialUpdateRequest + + // DcimInventoryItemsBulkPartialUpdateExecute executes the request + // @return []InventoryItem + DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInventoryItemsBulkPartialUpdateRequest) ([]InventoryItem, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemsBulkUpdate(ctx context.Context) ApiDcimInventoryItemsBulkUpdateRequest + + // DcimInventoryItemsBulkUpdateExecute executes the request + // @return []InventoryItem + DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryItemsBulkUpdateRequest) ([]InventoryItem, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemsCreate(ctx context.Context) ApiDcimInventoryItemsCreateRequest + + // DcimInventoryItemsCreateExecute executes the request + // @return InventoryItem + DcimInventoryItemsCreateExecute(r ApiDcimInventoryItemsCreateRequest) (*InventoryItem, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemsDestroy(ctx context.Context, id int32) ApiDcimInventoryItemsDestroyRequest + + // DcimInventoryItemsDestroyExecute executes the request + DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItemsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimInventoryItemsList(ctx context.Context) ApiDcimInventoryItemsListRequest + + // DcimInventoryItemsListExecute executes the request + // @return PaginatedInventoryItemList + DcimInventoryItemsListExecute(r ApiDcimInventoryItemsListRequest) (*PaginatedInventoryItemList, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemsPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsPartialUpdateRequest + + // DcimInventoryItemsPartialUpdateExecute executes the request + // @return InventoryItem + DcimInventoryItemsPartialUpdateExecute(r ApiDcimInventoryItemsPartialUpdateRequest) (*InventoryItem, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemsRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemsRetrieveRequest + + // DcimInventoryItemsRetrieveExecute executes the request + // @return InventoryItem + DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryItemsRetrieveRequest) (*InventoryItem, *http.Response, error) + + /* + 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 + */ + DcimInventoryItemsUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsUpdateRequest + + // DcimInventoryItemsUpdateExecute executes the request + // @return InventoryItem + DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItemsUpdateRequest) (*InventoryItem, *http.Response, error) + + /* + 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 + */ + DcimLocationsBulkDestroy(ctx context.Context) ApiDcimLocationsBulkDestroyRequest + + // DcimLocationsBulkDestroyExecute executes the request + DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimLocationsBulkPartialUpdate(ctx context.Context) ApiDcimLocationsBulkPartialUpdateRequest + + // DcimLocationsBulkPartialUpdateExecute executes the request + // @return []Location + DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocationsBulkPartialUpdateRequest) ([]Location, *http.Response, error) + + /* + 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 + */ + DcimLocationsBulkUpdate(ctx context.Context) ApiDcimLocationsBulkUpdateRequest + + // DcimLocationsBulkUpdateExecute executes the request + // @return []Location + DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUpdateRequest) ([]Location, *http.Response, error) + + /* + 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 + */ + DcimLocationsCreate(ctx context.Context) ApiDcimLocationsCreateRequest + + // DcimLocationsCreateExecute executes the request + // @return Location + DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequest) (*Location, *http.Response, error) + + /* + 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 + */ + DcimLocationsDestroy(ctx context.Context, id int32) ApiDcimLocationsDestroyRequest + + // DcimLocationsDestroyExecute executes the request + DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimLocationsList(ctx context.Context) ApiDcimLocationsListRequest + + // DcimLocationsListExecute executes the request + // @return PaginatedLocationList + DcimLocationsListExecute(r ApiDcimLocationsListRequest) (*PaginatedLocationList, *http.Response, error) + + /* + 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 + */ + DcimLocationsPartialUpdate(ctx context.Context, id int32) ApiDcimLocationsPartialUpdateRequest + + // DcimLocationsPartialUpdateExecute executes the request + // @return Location + DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPartialUpdateRequest) (*Location, *http.Response, error) + + /* + 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 + */ + DcimLocationsRetrieve(ctx context.Context, id int32) ApiDcimLocationsRetrieveRequest + + // DcimLocationsRetrieveExecute executes the request + // @return Location + DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieveRequest) (*Location, *http.Response, error) + + /* + 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 + */ + DcimLocationsUpdate(ctx context.Context, id int32) ApiDcimLocationsUpdateRequest + + // DcimLocationsUpdateExecute executes the request + // @return Location + DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequest) (*Location, *http.Response, error) + + /* + DcimMacAddressesBulkDestroy Method for DcimMacAddressesBulkDestroy + + Delete a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesBulkDestroyRequest + */ + DcimMacAddressesBulkDestroy(ctx context.Context) ApiDcimMacAddressesBulkDestroyRequest + + // DcimMacAddressesBulkDestroyExecute executes the request + DcimMacAddressesBulkDestroyExecute(r ApiDcimMacAddressesBulkDestroyRequest) (*http.Response, error) + + /* + DcimMacAddressesBulkPartialUpdate Method for DcimMacAddressesBulkPartialUpdate + + Patch a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesBulkPartialUpdateRequest + */ + DcimMacAddressesBulkPartialUpdate(ctx context.Context) ApiDcimMacAddressesBulkPartialUpdateRequest + + // DcimMacAddressesBulkPartialUpdateExecute executes the request + // @return []MACAddress + DcimMacAddressesBulkPartialUpdateExecute(r ApiDcimMacAddressesBulkPartialUpdateRequest) ([]MACAddress, *http.Response, error) + + /* + DcimMacAddressesBulkUpdate Method for DcimMacAddressesBulkUpdate + + Put a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesBulkUpdateRequest + */ + DcimMacAddressesBulkUpdate(ctx context.Context) ApiDcimMacAddressesBulkUpdateRequest + + // DcimMacAddressesBulkUpdateExecute executes the request + // @return []MACAddress + DcimMacAddressesBulkUpdateExecute(r ApiDcimMacAddressesBulkUpdateRequest) ([]MACAddress, *http.Response, error) + + /* + DcimMacAddressesCreate Method for DcimMacAddressesCreate + + Post a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesCreateRequest + */ + DcimMacAddressesCreate(ctx context.Context) ApiDcimMacAddressesCreateRequest + + // DcimMacAddressesCreateExecute executes the request + // @return MACAddress + DcimMacAddressesCreateExecute(r ApiDcimMacAddressesCreateRequest) (*MACAddress, *http.Response, error) + + /* + DcimMacAddressesDestroy Method for DcimMacAddressesDestroy + + Delete a MAC 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 MAC address. + @return ApiDcimMacAddressesDestroyRequest + */ + DcimMacAddressesDestroy(ctx context.Context, id int32) ApiDcimMacAddressesDestroyRequest + + // DcimMacAddressesDestroyExecute executes the request + DcimMacAddressesDestroyExecute(r ApiDcimMacAddressesDestroyRequest) (*http.Response, error) + + /* + DcimMacAddressesList Method for DcimMacAddressesList + + Get a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesListRequest + */ + DcimMacAddressesList(ctx context.Context) ApiDcimMacAddressesListRequest + + // DcimMacAddressesListExecute executes the request + // @return PaginatedMACAddressList + DcimMacAddressesListExecute(r ApiDcimMacAddressesListRequest) (*PaginatedMACAddressList, *http.Response, error) + + /* + DcimMacAddressesPartialUpdate Method for DcimMacAddressesPartialUpdate + + Patch a MAC 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 MAC address. + @return ApiDcimMacAddressesPartialUpdateRequest + */ + DcimMacAddressesPartialUpdate(ctx context.Context, id int32) ApiDcimMacAddressesPartialUpdateRequest + + // DcimMacAddressesPartialUpdateExecute executes the request + // @return MACAddress + DcimMacAddressesPartialUpdateExecute(r ApiDcimMacAddressesPartialUpdateRequest) (*MACAddress, *http.Response, error) + + /* + DcimMacAddressesRetrieve Method for DcimMacAddressesRetrieve + + Get a MAC 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 MAC address. + @return ApiDcimMacAddressesRetrieveRequest + */ + DcimMacAddressesRetrieve(ctx context.Context, id int32) ApiDcimMacAddressesRetrieveRequest + + // DcimMacAddressesRetrieveExecute executes the request + // @return MACAddress + DcimMacAddressesRetrieveExecute(r ApiDcimMacAddressesRetrieveRequest) (*MACAddress, *http.Response, error) + + /* + DcimMacAddressesUpdate Method for DcimMacAddressesUpdate + + Put a MAC 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 MAC address. + @return ApiDcimMacAddressesUpdateRequest + */ + DcimMacAddressesUpdate(ctx context.Context, id int32) ApiDcimMacAddressesUpdateRequest + + // DcimMacAddressesUpdateExecute executes the request + // @return MACAddress + DcimMacAddressesUpdateExecute(r ApiDcimMacAddressesUpdateRequest) (*MACAddress, *http.Response, error) + + /* + 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 + */ + DcimManufacturersBulkDestroy(ctx context.Context) ApiDcimManufacturersBulkDestroyRequest + + // DcimManufacturersBulkDestroyExecute executes the request + DcimManufacturersBulkDestroyExecute(r ApiDcimManufacturersBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimManufacturersBulkPartialUpdate(ctx context.Context) ApiDcimManufacturersBulkPartialUpdateRequest + + // DcimManufacturersBulkPartialUpdateExecute executes the request + // @return []Manufacturer + DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManufacturersBulkPartialUpdateRequest) ([]Manufacturer, *http.Response, error) + + /* + 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 + */ + DcimManufacturersBulkUpdate(ctx context.Context) ApiDcimManufacturersBulkUpdateRequest + + // DcimManufacturersBulkUpdateExecute executes the request + // @return []Manufacturer + DcimManufacturersBulkUpdateExecute(r ApiDcimManufacturersBulkUpdateRequest) ([]Manufacturer, *http.Response, error) + + /* + 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 + */ + DcimManufacturersCreate(ctx context.Context) ApiDcimManufacturersCreateRequest + + // DcimManufacturersCreateExecute executes the request + // @return Manufacturer + DcimManufacturersCreateExecute(r ApiDcimManufacturersCreateRequest) (*Manufacturer, *http.Response, error) + + /* + 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 + */ + DcimManufacturersDestroy(ctx context.Context, id int32) ApiDcimManufacturersDestroyRequest + + // DcimManufacturersDestroyExecute executes the request + DcimManufacturersDestroyExecute(r ApiDcimManufacturersDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimManufacturersList(ctx context.Context) ApiDcimManufacturersListRequest + + // DcimManufacturersListExecute executes the request + // @return PaginatedManufacturerList + DcimManufacturersListExecute(r ApiDcimManufacturersListRequest) (*PaginatedManufacturerList, *http.Response, error) + + /* + 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 + */ + DcimManufacturersPartialUpdate(ctx context.Context, id int32) ApiDcimManufacturersPartialUpdateRequest + + // DcimManufacturersPartialUpdateExecute executes the request + // @return Manufacturer + DcimManufacturersPartialUpdateExecute(r ApiDcimManufacturersPartialUpdateRequest) (*Manufacturer, *http.Response, error) + + /* + 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 + */ + DcimManufacturersRetrieve(ctx context.Context, id int32) ApiDcimManufacturersRetrieveRequest + + // DcimManufacturersRetrieveExecute executes the request + // @return Manufacturer + DcimManufacturersRetrieveExecute(r ApiDcimManufacturersRetrieveRequest) (*Manufacturer, *http.Response, error) + + /* + 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 + */ + DcimManufacturersUpdate(ctx context.Context, id int32) ApiDcimManufacturersUpdateRequest + + // DcimManufacturersUpdateExecute executes the request + // @return Manufacturer + DcimManufacturersUpdateExecute(r ApiDcimManufacturersUpdateRequest) (*Manufacturer, *http.Response, error) + + /* + 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 + */ + DcimModuleBayTemplatesBulkDestroy(ctx context.Context) ApiDcimModuleBayTemplatesBulkDestroyRequest + + // DcimModuleBayTemplatesBulkDestroyExecute executes the request + DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModuleBayTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + DcimModuleBayTemplatesBulkPartialUpdate Method for DcimModuleBayTemplatesBulkPartialUpdate + + 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 + */ + DcimModuleBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest + + // DcimModuleBayTemplatesBulkPartialUpdateExecute executes the request + // @return []ModuleBayTemplate + DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) + + /* + 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 + */ + DcimModuleBayTemplatesBulkUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkUpdateRequest + + // DcimModuleBayTemplatesBulkUpdateExecute executes the request + // @return []ModuleBayTemplate + DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModuleBayTemplatesBulkUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) + + /* + 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 + */ + DcimModuleBayTemplatesCreate(ctx context.Context) ApiDcimModuleBayTemplatesCreateRequest + + // DcimModuleBayTemplatesCreateExecute executes the request + // @return ModuleBayTemplate + DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayTemplatesCreateRequest) (*ModuleBayTemplate, *http.Response, error) + + /* + 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 + */ + DcimModuleBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimModuleBayTemplatesDestroyRequest + + // DcimModuleBayTemplatesDestroyExecute executes the request + DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBayTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimModuleBayTemplatesList(ctx context.Context) ApiDcimModuleBayTemplatesListRequest + + // DcimModuleBayTemplatesListExecute executes the request + // @return PaginatedModuleBayTemplateList + DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTemplatesListRequest) (*PaginatedModuleBayTemplateList, *http.Response, error) + + /* + DcimModuleBayTemplatesPartialUpdate Method for DcimModuleBayTemplatesPartialUpdate + + 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 + */ + DcimModuleBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesPartialUpdateRequest + + // DcimModuleBayTemplatesPartialUpdateExecute executes the request + // @return ModuleBayTemplate + DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimModuleBayTemplatesPartialUpdateRequest) (*ModuleBayTemplate, *http.Response, error) + + /* + 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 + */ + DcimModuleBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimModuleBayTemplatesRetrieveRequest + + // DcimModuleBayTemplatesRetrieveExecute executes the request + // @return ModuleBayTemplate + DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBayTemplatesRetrieveRequest) (*ModuleBayTemplate, *http.Response, error) + + /* + 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 + */ + DcimModuleBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesUpdateRequest + + // DcimModuleBayTemplatesUpdateExecute executes the request + // @return ModuleBayTemplate + DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayTemplatesUpdateRequest) (*ModuleBayTemplate, *http.Response, error) + + /* + 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 + */ + DcimModuleBaysBulkDestroy(ctx context.Context) ApiDcimModuleBaysBulkDestroyRequest + + // DcimModuleBaysBulkDestroyExecute executes the request + DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimModuleBaysBulkPartialUpdate(ctx context.Context) ApiDcimModuleBaysBulkPartialUpdateRequest + + // DcimModuleBaysBulkPartialUpdateExecute executes the request + // @return []ModuleBay + DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleBaysBulkPartialUpdateRequest) ([]ModuleBay, *http.Response, error) + + /* + 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 + */ + DcimModuleBaysBulkUpdate(ctx context.Context) ApiDcimModuleBaysBulkUpdateRequest + + // DcimModuleBaysBulkUpdateExecute executes the request + // @return []ModuleBay + DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulkUpdateRequest) ([]ModuleBay, *http.Response, error) + + /* + 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 + */ + DcimModuleBaysCreate(ctx context.Context) ApiDcimModuleBaysCreateRequest + + // DcimModuleBaysCreateExecute executes the request + // @return ModuleBay + DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRequest) (*ModuleBay, *http.Response, error) + + /* + 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 + */ + DcimModuleBaysDestroy(ctx context.Context, id int32) ApiDcimModuleBaysDestroyRequest + + // DcimModuleBaysDestroyExecute executes the request + DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimModuleBaysList(ctx context.Context) ApiDcimModuleBaysListRequest + + // DcimModuleBaysListExecute executes the request + // @return PaginatedModuleBayList + DcimModuleBaysListExecute(r ApiDcimModuleBaysListRequest) (*PaginatedModuleBayList, *http.Response, error) + + /* + 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 + */ + DcimModuleBaysPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBaysPartialUpdateRequest + + // DcimModuleBaysPartialUpdateExecute executes the request + // @return ModuleBay + DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error) + + /* + 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 + */ + DcimModuleBaysRetrieve(ctx context.Context, id int32) ApiDcimModuleBaysRetrieveRequest + + // DcimModuleBaysRetrieveExecute executes the request + // @return ModuleBay + DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error) + + /* + 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 + */ + DcimModuleBaysUpdate(ctx context.Context, id int32) ApiDcimModuleBaysUpdateRequest + + // DcimModuleBaysUpdateExecute executes the request + // @return ModuleBay + DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error) + + /* + 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 + */ + DcimModuleTypesBulkDestroy(ctx context.Context) ApiDcimModuleTypesBulkDestroyRequest + + // DcimModuleTypesBulkDestroyExecute executes the request + DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimModuleTypesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypesBulkPartialUpdateRequest + + // DcimModuleTypesBulkPartialUpdateExecute executes the request + // @return []ModuleType + DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModuleTypesBulkPartialUpdateRequest) ([]ModuleType, *http.Response, error) + + /* + 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 + */ + DcimModuleTypesBulkUpdate(ctx context.Context) ApiDcimModuleTypesBulkUpdateRequest + + // DcimModuleTypesBulkUpdateExecute executes the request + // @return []ModuleType + DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBulkUpdateRequest) ([]ModuleType, *http.Response, error) + + /* + 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 + */ + DcimModuleTypesCreate(ctx context.Context) ApiDcimModuleTypesCreateRequest + + // DcimModuleTypesCreateExecute executes the request + // @return ModuleType + DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreateRequest) (*ModuleType, *http.Response, error) + + /* + 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 + */ + DcimModuleTypesDestroy(ctx context.Context, id int32) ApiDcimModuleTypesDestroyRequest + + // DcimModuleTypesDestroyExecute executes the request + DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimModuleTypesList(ctx context.Context) ApiDcimModuleTypesListRequest + + // DcimModuleTypesListExecute executes the request + // @return PaginatedModuleTypeList + DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequest) (*PaginatedModuleTypeList, *http.Response, error) + + /* + 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 + */ + DcimModuleTypesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypesPartialUpdateRequest + + // DcimModuleTypesPartialUpdateExecute executes the request + // @return ModuleType + DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleTypesPartialUpdateRequest) (*ModuleType, *http.Response, error) + + /* + 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 + */ + DcimModuleTypesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypesRetrieveRequest + + // DcimModuleTypesRetrieveExecute executes the request + // @return ModuleType + DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetrieveRequest) (*ModuleType, *http.Response, error) + + /* + 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 + */ + DcimModuleTypesUpdate(ctx context.Context, id int32) ApiDcimModuleTypesUpdateRequest + + // DcimModuleTypesUpdateExecute executes the request + // @return ModuleType + DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdateRequest) (*ModuleType, *http.Response, error) + + /* + 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 + */ + DcimModulesBulkDestroy(ctx context.Context) ApiDcimModulesBulkDestroyRequest + + // DcimModulesBulkDestroyExecute executes the request + DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimModulesBulkPartialUpdate(ctx context.Context) ApiDcimModulesBulkPartialUpdateRequest + + // DcimModulesBulkPartialUpdateExecute executes the request + // @return []Module + DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBulkPartialUpdateRequest) ([]Module, *http.Response, error) + + /* + 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 + */ + DcimModulesBulkUpdate(ctx context.Context) ApiDcimModulesBulkUpdateRequest + + // DcimModulesBulkUpdateExecute executes the request + // @return []Module + DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdateRequest) ([]Module, *http.Response, error) + + /* + 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 + */ + DcimModulesCreate(ctx context.Context) ApiDcimModulesCreateRequest + + // DcimModulesCreateExecute executes the request + // @return Module + DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) (*Module, *http.Response, error) + + /* + 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 + */ + DcimModulesDestroy(ctx context.Context, id int32) ApiDcimModulesDestroyRequest + + // DcimModulesDestroyExecute executes the request + DcimModulesDestroyExecute(r ApiDcimModulesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimModulesList(ctx context.Context) ApiDcimModulesListRequest + + // DcimModulesListExecute executes the request + // @return PaginatedModuleList + DcimModulesListExecute(r ApiDcimModulesListRequest) (*PaginatedModuleList, *http.Response, error) + + /* + 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 + */ + DcimModulesPartialUpdate(ctx context.Context, id int32) ApiDcimModulesPartialUpdateRequest + + // DcimModulesPartialUpdateExecute executes the request + // @return Module + DcimModulesPartialUpdateExecute(r ApiDcimModulesPartialUpdateRequest) (*Module, *http.Response, error) + + /* + 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 + */ + DcimModulesRetrieve(ctx context.Context, id int32) ApiDcimModulesRetrieveRequest + + // DcimModulesRetrieveExecute executes the request + // @return Module + DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequest) (*Module, *http.Response, error) + + /* + 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 + */ + DcimModulesUpdate(ctx context.Context, id int32) ApiDcimModulesUpdateRequest + + // DcimModulesUpdateExecute executes the request + // @return Module + DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) (*Module, *http.Response, error) + + /* + 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 + */ + DcimPlatformsBulkDestroy(ctx context.Context) ApiDcimPlatformsBulkDestroyRequest + + // DcimPlatformsBulkDestroyExecute executes the request + DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPlatformsBulkPartialUpdate(ctx context.Context) ApiDcimPlatformsBulkPartialUpdateRequest + + // DcimPlatformsBulkPartialUpdateExecute executes the request + // @return []Platform + DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatformsBulkPartialUpdateRequest) ([]Platform, *http.Response, error) + + /* + 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 + */ + DcimPlatformsBulkUpdate(ctx context.Context) ApiDcimPlatformsBulkUpdateRequest + + // DcimPlatformsBulkUpdateExecute executes the request + // @return []Platform + DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUpdateRequest) ([]Platform, *http.Response, error) + + /* + 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 + */ + DcimPlatformsCreate(ctx context.Context) ApiDcimPlatformsCreateRequest + + // DcimPlatformsCreateExecute executes the request + // @return Platform + DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequest) (*Platform, *http.Response, error) + + /* + 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 + */ + DcimPlatformsDestroy(ctx context.Context, id int32) ApiDcimPlatformsDestroyRequest + + // DcimPlatformsDestroyExecute executes the request + DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPlatformsList(ctx context.Context) ApiDcimPlatformsListRequest + + // DcimPlatformsListExecute executes the request + // @return PaginatedPlatformList + DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) (*PaginatedPlatformList, *http.Response, error) + + /* + 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 + */ + DcimPlatformsPartialUpdate(ctx context.Context, id int32) ApiDcimPlatformsPartialUpdateRequest + + // DcimPlatformsPartialUpdateExecute executes the request + // @return Platform + DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPartialUpdateRequest) (*Platform, *http.Response, error) + + /* + 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 + */ + DcimPlatformsRetrieve(ctx context.Context, id int32) ApiDcimPlatformsRetrieveRequest + + // DcimPlatformsRetrieveExecute executes the request + // @return Platform + DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieveRequest) (*Platform, *http.Response, error) + + /* + 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 + */ + DcimPlatformsUpdate(ctx context.Context, id int32) ApiDcimPlatformsUpdateRequest + + // DcimPlatformsUpdateExecute executes the request + // @return Platform + DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequest) (*Platform, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsBulkDestroy(ctx context.Context) ApiDcimPowerFeedsBulkDestroyRequest + + // DcimPowerFeedsBulkDestroyExecute executes the request + DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerFeedsBulkPartialUpdate(ctx context.Context) ApiDcimPowerFeedsBulkPartialUpdateRequest + + // DcimPowerFeedsBulkPartialUpdateExecute executes the request + // @return []PowerFeed + DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFeedsBulkPartialUpdateRequest) ([]PowerFeed, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsBulkUpdate(ctx context.Context) ApiDcimPowerFeedsBulkUpdateRequest + + // DcimPowerFeedsBulkUpdateExecute executes the request + // @return []PowerFeed + DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulkUpdateRequest) ([]PowerFeed, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsCreate(ctx context.Context) ApiDcimPowerFeedsCreateRequest + + // DcimPowerFeedsCreateExecute executes the request + // @return PowerFeed + DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRequest) (*PowerFeed, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsDestroy(ctx context.Context, id int32) ApiDcimPowerFeedsDestroyRequest + + // DcimPowerFeedsDestroyExecute executes the request + DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerFeedsList(ctx context.Context) ApiDcimPowerFeedsListRequest + + // DcimPowerFeedsListExecute executes the request + // @return PaginatedPowerFeedList + DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListRequest) (*PaginatedPowerFeedList, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsPartialUpdateRequest + + // DcimPowerFeedsPartialUpdateExecute executes the request + // @return PowerFeed + DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsPartialUpdateRequest) (*PowerFeed, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsRetrieveRequest + + // DcimPowerFeedsRetrieveExecute executes the request + // @return PowerFeed + DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrieveRequest) (*PowerFeed, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsTraceRetrieveRequest + + // DcimPowerFeedsTraceRetrieveExecute executes the request + // @return PowerFeed + DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsTraceRetrieveRequest) (*PowerFeed, *http.Response, error) + + /* + 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 + */ + DcimPowerFeedsUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsUpdateRequest + + // DcimPowerFeedsUpdateExecute executes the request + // @return PowerFeed + DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRequest) (*PowerFeed, *http.Response, error) + + /* + DcimPowerOutletTemplatesBulkDestroy Method for DcimPowerOutletTemplatesBulkDestroy + + 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 + */ + DcimPowerOutletTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerOutletTemplatesBulkDestroyRequest + + // DcimPowerOutletTemplatesBulkDestroyExecute executes the request + DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPowerOutletTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + DcimPowerOutletTemplatesBulkPartialUpdate Method for DcimPowerOutletTemplatesBulkPartialUpdate + + 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 + */ + DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest + + // DcimPowerOutletTemplatesBulkPartialUpdateExecute executes the request + // @return []PowerOutletTemplate + DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkUpdateRequest + + // DcimPowerOutletTemplatesBulkUpdateExecute executes the request + // @return []PowerOutletTemplate + DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowerOutletTemplatesBulkUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletTemplatesCreate(ctx context.Context) ApiDcimPowerOutletTemplatesCreateRequest + + // DcimPowerOutletTemplatesCreateExecute executes the request + // @return PowerOutletTemplate + DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOutletTemplatesCreateRequest) (*PowerOutletTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesDestroyRequest + + // DcimPowerOutletTemplatesDestroyExecute executes the request + DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOutletTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerOutletTemplatesList(ctx context.Context) ApiDcimPowerOutletTemplatesListRequest + + // DcimPowerOutletTemplatesListExecute executes the request + // @return PaginatedPowerOutletTemplateList + DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutletTemplatesListRequest) (*PaginatedPowerOutletTemplateList, *http.Response, error) + + /* + DcimPowerOutletTemplatesPartialUpdate Method for DcimPowerOutletTemplatesPartialUpdate + + 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 + */ + DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesPartialUpdateRequest + + // DcimPowerOutletTemplatesPartialUpdateExecute executes the request + // @return PowerOutletTemplate + DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimPowerOutletTemplatesPartialUpdateRequest) (*PowerOutletTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesRetrieveRequest + + // DcimPowerOutletTemplatesRetrieveExecute executes the request + // @return PowerOutletTemplate + DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerOutletTemplatesRetrieveRequest) (*PowerOutletTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesUpdateRequest + + // DcimPowerOutletTemplatesUpdateExecute executes the request + // @return PowerOutletTemplate + DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOutletTemplatesUpdateRequest) (*PowerOutletTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsBulkDestroy(ctx context.Context) ApiDcimPowerOutletsBulkDestroyRequest + + // DcimPowerOutletsBulkDestroyExecute executes the request + DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutletsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerOutletsBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletsBulkPartialUpdateRequest + + // DcimPowerOutletsBulkPartialUpdateExecute executes the request + // @return []PowerOutlet + DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPowerOutletsBulkPartialUpdateRequest) ([]PowerOutlet, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsBulkUpdate(ctx context.Context) ApiDcimPowerOutletsBulkUpdateRequest + + // DcimPowerOutletsBulkUpdateExecute executes the request + // @return []PowerOutlet + DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutletsBulkUpdateRequest) ([]PowerOutlet, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsCreate(ctx context.Context) ApiDcimPowerOutletsCreateRequest + + // DcimPowerOutletsCreateExecute executes the request + // @return PowerOutlet + DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCreateRequest) (*PowerOutlet, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsDestroy(ctx context.Context, id int32) ApiDcimPowerOutletsDestroyRequest + + // DcimPowerOutletsDestroyExecute executes the request + DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerOutletsList(ctx context.Context) ApiDcimPowerOutletsListRequest + + // DcimPowerOutletsListExecute executes the request + // @return PaginatedPowerOutletList + DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRequest) (*PaginatedPowerOutletList, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsPartialUpdateRequest + + // DcimPowerOutletsPartialUpdateExecute executes the request + // @return PowerOutlet + DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutletsPartialUpdateRequest) (*PowerOutlet, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsRetrieveRequest + + // DcimPowerOutletsRetrieveExecute executes the request + // @return PowerOutlet + DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRetrieveRequest) (*PowerOutlet, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsTraceRetrieveRequest + + // DcimPowerOutletsTraceRetrieveExecute executes the request + // @return PowerOutlet + DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutletsTraceRetrieveRequest) (*PowerOutlet, *http.Response, error) + + /* + 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 + */ + DcimPowerOutletsUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsUpdateRequest + + // DcimPowerOutletsUpdateExecute executes the request + // @return PowerOutlet + DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpdateRequest) (*PowerOutlet, *http.Response, error) + + /* + 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 + */ + DcimPowerPanelsBulkDestroy(ctx context.Context) ApiDcimPowerPanelsBulkDestroyRequest + + // DcimPowerPanelsBulkDestroyExecute executes the request + DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerPanelsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPanelsBulkPartialUpdateRequest + + // DcimPowerPanelsBulkPartialUpdateExecute executes the request + // @return []PowerPanel + DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerPanelsBulkPartialUpdateRequest) ([]PowerPanel, *http.Response, error) + + /* + 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 + */ + DcimPowerPanelsBulkUpdate(ctx context.Context) ApiDcimPowerPanelsBulkUpdateRequest + + // DcimPowerPanelsBulkUpdateExecute executes the request + // @return []PowerPanel + DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBulkUpdateRequest) ([]PowerPanel, *http.Response, error) + + /* + 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 + */ + DcimPowerPanelsCreate(ctx context.Context) ApiDcimPowerPanelsCreateRequest + + // DcimPowerPanelsCreateExecute executes the request + // @return PowerPanel + DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreateRequest) (*PowerPanel, *http.Response, error) + + /* + 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 + */ + DcimPowerPanelsDestroy(ctx context.Context, id int32) ApiDcimPowerPanelsDestroyRequest + + // DcimPowerPanelsDestroyExecute executes the request + DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerPanelsList(ctx context.Context) ApiDcimPowerPanelsListRequest + + // DcimPowerPanelsListExecute executes the request + // @return PaginatedPowerPanelList + DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequest) (*PaginatedPowerPanelList, *http.Response, error) + + /* + 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 + */ + DcimPowerPanelsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsPartialUpdateRequest + + // DcimPowerPanelsPartialUpdateExecute executes the request + // @return PowerPanel + DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanelsPartialUpdateRequest) (*PowerPanel, *http.Response, error) + + /* + 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 + */ + DcimPowerPanelsRetrieve(ctx context.Context, id int32) ApiDcimPowerPanelsRetrieveRequest + + // DcimPowerPanelsRetrieveExecute executes the request + // @return PowerPanel + DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetrieveRequest) (*PowerPanel, *http.Response, error) + + /* + 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 + */ + DcimPowerPanelsUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsUpdateRequest + + // DcimPowerPanelsUpdateExecute executes the request + // @return PowerPanel + DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdateRequest) (*PowerPanel, *http.Response, error) + + /* + 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 + */ + DcimPowerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerPortTemplatesBulkDestroyRequest + + // DcimPowerPortTemplatesBulkDestroyExecute executes the request + DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPowerPortTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + DcimPowerPortTemplatesBulkPartialUpdate Method for DcimPowerPortTemplatesBulkPartialUpdate + + 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 + */ + DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest + + // DcimPowerPortTemplatesBulkPartialUpdateExecute executes the request + // @return []PowerPortTemplate + DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) ([]PowerPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkUpdateRequest + + // DcimPowerPortTemplatesBulkUpdateExecute executes the request + // @return []PowerPortTemplate + DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerPortTemplatesBulkUpdateRequest) ([]PowerPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerPortTemplatesCreate(ctx context.Context) ApiDcimPowerPortTemplatesCreateRequest + + // DcimPowerPortTemplatesCreateExecute executes the request + // @return PowerPortTemplate + DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortTemplatesCreateRequest) (*PowerPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerPortTemplatesDestroyRequest + + // DcimPowerPortTemplatesDestroyExecute executes the request + DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPortTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerPortTemplatesList(ctx context.Context) ApiDcimPowerPortTemplatesListRequest + + // DcimPowerPortTemplatesListExecute executes the request + // @return PaginatedPowerPortTemplateList + DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTemplatesListRequest) (*PaginatedPowerPortTemplateList, *http.Response, error) + + /* + DcimPowerPortTemplatesPartialUpdate Method for DcimPowerPortTemplatesPartialUpdate + + 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 + */ + DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesPartialUpdateRequest + + // DcimPowerPortTemplatesPartialUpdateExecute executes the request + // @return PowerPortTemplate + DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPowerPortTemplatesPartialUpdateRequest) (*PowerPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerPortTemplatesRetrieveRequest + + // DcimPowerPortTemplatesRetrieveExecute executes the request + // @return PowerPortTemplate + DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPortTemplatesRetrieveRequest) (*PowerPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesUpdateRequest + + // DcimPowerPortTemplatesUpdateExecute executes the request + // @return PowerPortTemplate + DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortTemplatesUpdateRequest) (*PowerPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsBulkDestroy(ctx context.Context) ApiDcimPowerPortsBulkDestroyRequest + + // DcimPowerPortsBulkDestroyExecute executes the request + DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerPortsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortsBulkPartialUpdateRequest + + // DcimPowerPortsBulkPartialUpdateExecute executes the request + // @return []PowerPort + DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPortsBulkPartialUpdateRequest) ([]PowerPort, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsBulkUpdate(ctx context.Context) ApiDcimPowerPortsBulkUpdateRequest + + // DcimPowerPortsBulkUpdateExecute executes the request + // @return []PowerPort + DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulkUpdateRequest) ([]PowerPort, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsCreate(ctx context.Context) ApiDcimPowerPortsCreateRequest + + // DcimPowerPortsCreateExecute executes the request + // @return PowerPort + DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRequest) (*PowerPort, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsDestroy(ctx context.Context, id int32) ApiDcimPowerPortsDestroyRequest + + // DcimPowerPortsDestroyExecute executes the request + DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimPowerPortsList(ctx context.Context) ApiDcimPowerPortsListRequest + + // DcimPowerPortsListExecute executes the request + // @return PaginatedPowerPortList + DcimPowerPortsListExecute(r ApiDcimPowerPortsListRequest) (*PaginatedPowerPortList, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortsPartialUpdateRequest + + // DcimPowerPortsPartialUpdateExecute executes the request + // @return PowerPort + DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsPartialUpdateRequest) (*PowerPort, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsRetrieveRequest + + // DcimPowerPortsRetrieveExecute executes the request + // @return PowerPort + DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrieveRequest) (*PowerPort, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsTraceRetrieveRequest + + // DcimPowerPortsTraceRetrieveExecute executes the request + // @return PowerPort + DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsTraceRetrieveRequest) (*PowerPort, *http.Response, error) + + /* + 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 + */ + DcimPowerPortsUpdate(ctx context.Context, id int32) ApiDcimPowerPortsUpdateRequest + + // DcimPowerPortsUpdateExecute executes the request + // @return PowerPort + DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRequest) (*PowerPort, *http.Response, error) + + /* + 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 + */ + DcimRackReservationsBulkDestroy(ctx context.Context) ApiDcimRackReservationsBulkDestroyRequest + + // DcimRackReservationsBulkDestroyExecute executes the request + DcimRackReservationsBulkDestroyExecute(r ApiDcimRackReservationsBulkDestroyRequest) (*http.Response, error) + + /* + DcimRackReservationsBulkPartialUpdate Method for DcimRackReservationsBulkPartialUpdate + + 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 + */ + DcimRackReservationsBulkPartialUpdate(ctx context.Context) ApiDcimRackReservationsBulkPartialUpdateRequest + + // DcimRackReservationsBulkPartialUpdateExecute executes the request + // @return []RackReservation + DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimRackReservationsBulkPartialUpdateRequest) ([]RackReservation, *http.Response, error) + + /* + 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 + */ + DcimRackReservationsBulkUpdate(ctx context.Context) ApiDcimRackReservationsBulkUpdateRequest + + // DcimRackReservationsBulkUpdateExecute executes the request + // @return []RackReservation + DcimRackReservationsBulkUpdateExecute(r ApiDcimRackReservationsBulkUpdateRequest) ([]RackReservation, *http.Response, error) + + /* + 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 + */ + DcimRackReservationsCreate(ctx context.Context) ApiDcimRackReservationsCreateRequest + + // DcimRackReservationsCreateExecute executes the request + // @return RackReservation + DcimRackReservationsCreateExecute(r ApiDcimRackReservationsCreateRequest) (*RackReservation, *http.Response, error) + + /* + 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 + */ + DcimRackReservationsDestroy(ctx context.Context, id int32) ApiDcimRackReservationsDestroyRequest + + // DcimRackReservationsDestroyExecute executes the request + DcimRackReservationsDestroyExecute(r ApiDcimRackReservationsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRackReservationsList(ctx context.Context) ApiDcimRackReservationsListRequest + + // DcimRackReservationsListExecute executes the request + // @return PaginatedRackReservationList + DcimRackReservationsListExecute(r ApiDcimRackReservationsListRequest) (*PaginatedRackReservationList, *http.Response, error) + + /* + 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 + */ + DcimRackReservationsPartialUpdate(ctx context.Context, id int32) ApiDcimRackReservationsPartialUpdateRequest + + // DcimRackReservationsPartialUpdateExecute executes the request + // @return RackReservation + DcimRackReservationsPartialUpdateExecute(r ApiDcimRackReservationsPartialUpdateRequest) (*RackReservation, *http.Response, error) + + /* + 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 + */ + DcimRackReservationsRetrieve(ctx context.Context, id int32) ApiDcimRackReservationsRetrieveRequest + + // DcimRackReservationsRetrieveExecute executes the request + // @return RackReservation + DcimRackReservationsRetrieveExecute(r ApiDcimRackReservationsRetrieveRequest) (*RackReservation, *http.Response, error) + + /* + 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 + */ + DcimRackReservationsUpdate(ctx context.Context, id int32) ApiDcimRackReservationsUpdateRequest + + // DcimRackReservationsUpdateExecute executes the request + // @return RackReservation + DcimRackReservationsUpdateExecute(r ApiDcimRackReservationsUpdateRequest) (*RackReservation, *http.Response, error) + + /* + 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 + */ + DcimRackRolesBulkDestroy(ctx context.Context) ApiDcimRackRolesBulkDestroyRequest + + // DcimRackRolesBulkDestroyExecute executes the request + DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRackRolesBulkPartialUpdate(ctx context.Context) ApiDcimRackRolesBulkPartialUpdateRequest + + // DcimRackRolesBulkPartialUpdateExecute executes the request + // @return []RackRole + DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRolesBulkPartialUpdateRequest) ([]RackRole, *http.Response, error) + + /* + 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 + */ + DcimRackRolesBulkUpdate(ctx context.Context) ApiDcimRackRolesBulkUpdateRequest + + // DcimRackRolesBulkUpdateExecute executes the request + // @return []RackRole + DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUpdateRequest) ([]RackRole, *http.Response, error) + + /* + 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 + */ + DcimRackRolesCreate(ctx context.Context) ApiDcimRackRolesCreateRequest + + // DcimRackRolesCreateExecute executes the request + // @return RackRole + DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequest) (*RackRole, *http.Response, error) + + /* + 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 + */ + DcimRackRolesDestroy(ctx context.Context, id int32) ApiDcimRackRolesDestroyRequest + + // DcimRackRolesDestroyExecute executes the request + DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRackRolesList(ctx context.Context) ApiDcimRackRolesListRequest + + // DcimRackRolesListExecute executes the request + // @return PaginatedRackRoleList + DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) (*PaginatedRackRoleList, *http.Response, error) + + /* + 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 + */ + DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest + + // DcimRackRolesPartialUpdateExecute executes the request + // @return RackRole + DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) + + /* + 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 + */ + DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest + + // DcimRackRolesRetrieveExecute executes the request + // @return RackRole + DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) + + /* + 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 + */ + DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest + + // DcimRackRolesUpdateExecute executes the request + // @return RackRole + DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) + + /* + DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy + + Delete a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkDestroyRequest + */ + DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest + + // DcimRackTypesBulkDestroyExecute executes the request + DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*http.Response, error) + + /* + DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate + + Patch a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkPartialUpdateRequest + */ + DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest + + // DcimRackTypesBulkPartialUpdateExecute executes the request + // @return []RackType + DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error) + + /* + DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate + + Put a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkUpdateRequest + */ + DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest + + // DcimRackTypesBulkUpdateExecute executes the request + // @return []RackType + DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error) + + /* + DcimRackTypesCreate Method for DcimRackTypesCreate + + Post a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesCreateRequest + */ + DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest + + // DcimRackTypesCreateExecute executes the request + // @return RackType + DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error) + + /* + DcimRackTypesDestroy Method for DcimRackTypesDestroy + + Delete a rack 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 rack type. + @return ApiDcimRackTypesDestroyRequest + */ + DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest + + // DcimRackTypesDestroyExecute executes the request + DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRequest) (*http.Response, error) + + /* + DcimRackTypesList Method for DcimRackTypesList + + Get a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesListRequest + */ + DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest + + // DcimRackTypesListExecute executes the request + // @return PaginatedRackTypeList + DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error) + + /* + DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate + + Patch a rack 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 rack type. + @return ApiDcimRackTypesPartialUpdateRequest + */ + DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest + + // DcimRackTypesPartialUpdateExecute executes the request + // @return RackType + DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error) + + /* + DcimRackTypesRetrieve Method for DcimRackTypesRetrieve + + Get a rack 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 rack type. + @return ApiDcimRackTypesRetrieveRequest + */ + DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest + + // DcimRackTypesRetrieveExecute executes the request + // @return RackType + DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error) + + /* + DcimRackTypesUpdate Method for DcimRackTypesUpdate + + Put a rack 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 rack type. + @return ApiDcimRackTypesUpdateRequest + */ + DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest + + // DcimRackTypesUpdateExecute executes the request + // @return RackType + DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error) + + /* + 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 + */ + DcimRacksBulkDestroy(ctx context.Context) ApiDcimRacksBulkDestroyRequest + + // DcimRacksBulkDestroyExecute executes the request + DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRacksBulkPartialUpdate(ctx context.Context) ApiDcimRacksBulkPartialUpdateRequest + + // DcimRacksBulkPartialUpdateExecute executes the request + // @return []Rack + DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPartialUpdateRequest) ([]Rack, *http.Response, error) + + /* + 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 + */ + DcimRacksBulkUpdate(ctx context.Context) ApiDcimRacksBulkUpdateRequest + + // DcimRacksBulkUpdateExecute executes the request + // @return []Rack + DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequest) ([]Rack, *http.Response, error) + + /* + 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 + */ + DcimRacksCreate(ctx context.Context) ApiDcimRacksCreateRequest + + // DcimRacksCreateExecute executes the request + // @return Rack + DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*Rack, *http.Response, error) + + /* + 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 + */ + DcimRacksDestroy(ctx context.Context, id int32) ApiDcimRacksDestroyRequest + + // DcimRacksDestroyExecute executes the request + DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRacksElevationRetrieve(ctx context.Context, id int32) ApiDcimRacksElevationRetrieveRequest + + // DcimRacksElevationRetrieveExecute executes the request + // @return PaginatedRackUnitList + DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevationRetrieveRequest) (*PaginatedRackUnitList, *http.Response, error) + + /* + 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 + */ + DcimRacksList(ctx context.Context) ApiDcimRacksListRequest + + // DcimRacksListExecute executes the request + // @return PaginatedRackList + DcimRacksListExecute(r ApiDcimRacksListRequest) (*PaginatedRackList, *http.Response, error) + + /* + 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 + */ + DcimRacksPartialUpdate(ctx context.Context, id int32) ApiDcimRacksPartialUpdateRequest + + // DcimRacksPartialUpdateExecute executes the request + // @return Rack + DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpdateRequest) (*Rack, *http.Response, error) + + /* + 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 + */ + DcimRacksRetrieve(ctx context.Context, id int32) ApiDcimRacksRetrieveRequest + + // DcimRacksRetrieveExecute executes the request + // @return Rack + DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest) (*Rack, *http.Response, error) + + /* + 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 + */ + DcimRacksUpdate(ctx context.Context, id int32) ApiDcimRacksUpdateRequest + + // DcimRacksUpdateExecute executes the request + // @return Rack + DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*Rack, *http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesBulkDestroy(ctx context.Context) ApiDcimRearPortTemplatesBulkDestroyRequest + + // DcimRearPortTemplatesBulkDestroyExecute executes the request + DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPortTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + DcimRearPortTemplatesBulkPartialUpdate Method for DcimRearPortTemplatesBulkPartialUpdate + + 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 + */ + DcimRearPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkPartialUpdateRequest + + // DcimRearPortTemplatesBulkPartialUpdateExecute executes the request + // @return []RearPortTemplate + DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcimRearPortTemplatesBulkPartialUpdateRequest) ([]RearPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesBulkUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkUpdateRequest + + // DcimRearPortTemplatesBulkUpdateExecute executes the request + // @return []RearPortTemplate + DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPortTemplatesBulkUpdateRequest) ([]RearPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesCreate(ctx context.Context) ApiDcimRearPortTemplatesCreateRequest + + // DcimRearPortTemplatesCreateExecute executes the request + // @return RearPortTemplate + DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTemplatesCreateRequest) (*RearPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimRearPortTemplatesDestroyRequest + + // DcimRearPortTemplatesDestroyExecute executes the request + DcimRearPortTemplatesDestroyExecute(r ApiDcimRearPortTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesList(ctx context.Context) ApiDcimRearPortTemplatesListRequest + + // DcimRearPortTemplatesListExecute executes the request + // @return PaginatedRearPortTemplateList + DcimRearPortTemplatesListExecute(r ApiDcimRearPortTemplatesListRequest) (*PaginatedRearPortTemplateList, *http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesPartialUpdateRequest + + // DcimRearPortTemplatesPartialUpdateExecute executes the request + // @return RearPortTemplate + DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRearPortTemplatesPartialUpdateRequest) (*RearPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimRearPortTemplatesRetrieveRequest + + // DcimRearPortTemplatesRetrieveExecute executes the request + // @return RearPortTemplate + DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortTemplatesRetrieveRequest) (*RearPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimRearPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesUpdateRequest + + // DcimRearPortTemplatesUpdateExecute executes the request + // @return RearPortTemplate + DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTemplatesUpdateRequest) (*RearPortTemplate, *http.Response, error) + + /* + 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 + */ + DcimRearPortsBulkDestroy(ctx context.Context) ApiDcimRearPortsBulkDestroyRequest + + // DcimRearPortsBulkDestroyExecute executes the request + DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRearPortsBulkPartialUpdate(ctx context.Context) ApiDcimRearPortsBulkPartialUpdateRequest + + // DcimRearPortsBulkPartialUpdateExecute executes the request + // @return []RearPort + DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPortsBulkPartialUpdateRequest) ([]RearPort, *http.Response, error) + + /* + 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 + */ + DcimRearPortsBulkUpdate(ctx context.Context) ApiDcimRearPortsBulkUpdateRequest + + // DcimRearPortsBulkUpdateExecute executes the request + // @return []RearPort + DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUpdateRequest) ([]RearPort, *http.Response, error) + + /* + 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 + */ + DcimRearPortsCreate(ctx context.Context) ApiDcimRearPortsCreateRequest + + // DcimRearPortsCreateExecute executes the request + // @return RearPort + DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequest) (*RearPort, *http.Response, error) + + /* + 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 + */ + DcimRearPortsDestroy(ctx context.Context, id int32) ApiDcimRearPortsDestroyRequest + + // DcimRearPortsDestroyExecute executes the request + DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRearPortsList(ctx context.Context) ApiDcimRearPortsListRequest + + // DcimRearPortsListExecute executes the request + // @return PaginatedRearPortList + DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) (*PaginatedRearPortList, *http.Response, error) + + /* + 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 + */ + DcimRearPortsPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortsPartialUpdateRequest + + // DcimRearPortsPartialUpdateExecute executes the request + // @return RearPort + DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPartialUpdateRequest) (*RearPort, *http.Response, error) + + /* + 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 + */ + DcimRearPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsPathsRetrieveRequest + + // DcimRearPortsPathsRetrieveExecute executes the request + // @return RearPort + DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPathsRetrieveRequest) (*RearPort, *http.Response, error) + + /* + 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 + */ + DcimRearPortsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsRetrieveRequest + + // DcimRearPortsRetrieveExecute executes the request + // @return RearPort + DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieveRequest) (*RearPort, *http.Response, error) + + /* + 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 + */ + DcimRearPortsUpdate(ctx context.Context, id int32) ApiDcimRearPortsUpdateRequest + + // DcimRearPortsUpdateExecute executes the request + // @return RearPort + DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequest) (*RearPort, *http.Response, error) + + /* + 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 + */ + DcimRegionsBulkDestroy(ctx context.Context) ApiDcimRegionsBulkDestroyRequest + + // DcimRegionsBulkDestroyExecute executes the request + DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRegionsBulkPartialUpdate(ctx context.Context) ApiDcimRegionsBulkPartialUpdateRequest + + // DcimRegionsBulkPartialUpdateExecute executes the request + // @return []Region + DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBulkPartialUpdateRequest) ([]Region, *http.Response, error) + + /* + 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 + */ + DcimRegionsBulkUpdate(ctx context.Context) ApiDcimRegionsBulkUpdateRequest + + // DcimRegionsBulkUpdateExecute executes the request + // @return []Region + DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdateRequest) ([]Region, *http.Response, error) + + /* + 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 + */ + DcimRegionsCreate(ctx context.Context) ApiDcimRegionsCreateRequest + + // DcimRegionsCreateExecute executes the request + // @return Region + DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest) (*Region, *http.Response, error) + + /* + 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 + */ + DcimRegionsDestroy(ctx context.Context, id int32) ApiDcimRegionsDestroyRequest + + // DcimRegionsDestroyExecute executes the request + DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimRegionsList(ctx context.Context) ApiDcimRegionsListRequest + + // DcimRegionsListExecute executes the request + // @return PaginatedRegionList + DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*PaginatedRegionList, *http.Response, error) + + /* + 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 + */ + DcimRegionsPartialUpdate(ctx context.Context, id int32) ApiDcimRegionsPartialUpdateRequest + + // DcimRegionsPartialUpdateExecute executes the request + // @return Region + DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartialUpdateRequest) (*Region, *http.Response, error) + + /* + 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 + */ + DcimRegionsRetrieve(ctx context.Context, id int32) ApiDcimRegionsRetrieveRequest + + // DcimRegionsRetrieveExecute executes the request + // @return Region + DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequest) (*Region, *http.Response, error) + + /* + 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 + */ + DcimRegionsUpdate(ctx context.Context, id int32) ApiDcimRegionsUpdateRequest + + // DcimRegionsUpdateExecute executes the request + // @return Region + DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest) (*Region, *http.Response, error) + + /* + 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 + */ + DcimSiteGroupsBulkDestroy(ctx context.Context) ApiDcimSiteGroupsBulkDestroyRequest + + // DcimSiteGroupsBulkDestroyExecute executes the request + DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimSiteGroupsBulkPartialUpdate(ctx context.Context) ApiDcimSiteGroupsBulkPartialUpdateRequest + + // DcimSiteGroupsBulkPartialUpdateExecute executes the request + // @return []SiteGroup + DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGroupsBulkPartialUpdateRequest) ([]SiteGroup, *http.Response, error) + + /* + 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 + */ + DcimSiteGroupsBulkUpdate(ctx context.Context) ApiDcimSiteGroupsBulkUpdateRequest + + // DcimSiteGroupsBulkUpdateExecute executes the request + // @return []SiteGroup + DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulkUpdateRequest) ([]SiteGroup, *http.Response, error) + + /* + 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 + */ + DcimSiteGroupsCreate(ctx context.Context) ApiDcimSiteGroupsCreateRequest + + // DcimSiteGroupsCreateExecute executes the request + // @return SiteGroup + DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRequest) (*SiteGroup, *http.Response, error) + + /* + 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 + */ + DcimSiteGroupsDestroy(ctx context.Context, id int32) ApiDcimSiteGroupsDestroyRequest + + // DcimSiteGroupsDestroyExecute executes the request + DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimSiteGroupsList(ctx context.Context) ApiDcimSiteGroupsListRequest + + // DcimSiteGroupsListExecute executes the request + // @return PaginatedSiteGroupList + DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListRequest) (*PaginatedSiteGroupList, *http.Response, error) + + /* + 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 + */ + DcimSiteGroupsPartialUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsPartialUpdateRequest + + // DcimSiteGroupsPartialUpdateExecute executes the request + // @return SiteGroup + DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsPartialUpdateRequest) (*SiteGroup, *http.Response, error) + + /* + 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 + */ + DcimSiteGroupsRetrieve(ctx context.Context, id int32) ApiDcimSiteGroupsRetrieveRequest + + // DcimSiteGroupsRetrieveExecute executes the request + // @return SiteGroup + DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrieveRequest) (*SiteGroup, *http.Response, error) + + /* + 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 + */ + DcimSiteGroupsUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsUpdateRequest + + // DcimSiteGroupsUpdateExecute executes the request + // @return SiteGroup + DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRequest) (*SiteGroup, *http.Response, error) + + /* + 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 + */ + DcimSitesBulkDestroy(ctx context.Context) ApiDcimSitesBulkDestroyRequest + + // DcimSitesBulkDestroyExecute executes the request + DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimSitesBulkPartialUpdate(ctx context.Context) ApiDcimSitesBulkPartialUpdateRequest + + // DcimSitesBulkPartialUpdateExecute executes the request + // @return []Site + DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPartialUpdateRequest) ([]Site, *http.Response, error) + + /* + 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 + */ + DcimSitesBulkUpdate(ctx context.Context) ApiDcimSitesBulkUpdateRequest + + // DcimSitesBulkUpdateExecute executes the request + // @return []Site + DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequest) ([]Site, *http.Response, error) + + /* + 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 + */ + DcimSitesCreate(ctx context.Context) ApiDcimSitesCreateRequest + + // DcimSitesCreateExecute executes the request + // @return Site + DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*Site, *http.Response, error) + + /* + 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 + */ + DcimSitesDestroy(ctx context.Context, id int32) ApiDcimSitesDestroyRequest + + // DcimSitesDestroyExecute executes the request + DcimSitesDestroyExecute(r ApiDcimSitesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimSitesList(ctx context.Context) ApiDcimSitesListRequest + + // DcimSitesListExecute executes the request + // @return PaginatedSiteList + DcimSitesListExecute(r ApiDcimSitesListRequest) (*PaginatedSiteList, *http.Response, error) + + /* + 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 + */ + DcimSitesPartialUpdate(ctx context.Context, id int32) ApiDcimSitesPartialUpdateRequest + + // DcimSitesPartialUpdateExecute executes the request + // @return Site + DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpdateRequest) (*Site, *http.Response, error) + + /* + 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 + */ + DcimSitesRetrieve(ctx context.Context, id int32) ApiDcimSitesRetrieveRequest + + // DcimSitesRetrieveExecute executes the request + // @return Site + DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest) (*Site, *http.Response, error) + + /* + 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 + */ + DcimSitesUpdate(ctx context.Context, id int32) ApiDcimSitesUpdateRequest + + // DcimSitesUpdateExecute executes the request + // @return Site + DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*Site, *http.Response, error) + + /* + 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 + */ + DcimVirtualChassisBulkDestroy(ctx context.Context) ApiDcimVirtualChassisBulkDestroyRequest + + // DcimVirtualChassisBulkDestroyExecute executes the request + DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualChassisBulkDestroyRequest) (*http.Response, error) + + /* + DcimVirtualChassisBulkPartialUpdate Method for DcimVirtualChassisBulkPartialUpdate + + 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 + */ + DcimVirtualChassisBulkPartialUpdate(ctx context.Context) ApiDcimVirtualChassisBulkPartialUpdateRequest + + // DcimVirtualChassisBulkPartialUpdateExecute executes the request + // @return []VirtualChassis + DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVirtualChassisBulkPartialUpdateRequest) ([]VirtualChassis, *http.Response, error) + + /* + 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 + */ + DcimVirtualChassisBulkUpdate(ctx context.Context) ApiDcimVirtualChassisBulkUpdateRequest + + // DcimVirtualChassisBulkUpdateExecute executes the request + // @return []VirtualChassis + DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualChassisBulkUpdateRequest) ([]VirtualChassis, *http.Response, error) + + /* + 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 + */ + DcimVirtualChassisCreate(ctx context.Context) ApiDcimVirtualChassisCreateRequest + + // DcimVirtualChassisCreateExecute executes the request + // @return VirtualChassis + DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassisCreateRequest) (*VirtualChassis, *http.Response, error) + + /* + 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 + */ + DcimVirtualChassisDestroy(ctx context.Context, id int32) ApiDcimVirtualChassisDestroyRequest + + // DcimVirtualChassisDestroyExecute executes the request + DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassisDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimVirtualChassisList(ctx context.Context) ApiDcimVirtualChassisListRequest + + // DcimVirtualChassisListExecute executes the request + // @return PaginatedVirtualChassisList + DcimVirtualChassisListExecute(r ApiDcimVirtualChassisListRequest) (*PaginatedVirtualChassisList, *http.Response, error) + + /* + 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 + */ + DcimVirtualChassisPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisPartialUpdateRequest + + // DcimVirtualChassisPartialUpdateExecute executes the request + // @return VirtualChassis + DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtualChassisPartialUpdateRequest) (*VirtualChassis, *http.Response, error) + + /* + 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 + */ + DcimVirtualChassisRetrieve(ctx context.Context, id int32) ApiDcimVirtualChassisRetrieveRequest + + // DcimVirtualChassisRetrieveExecute executes the request + // @return VirtualChassis + DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChassisRetrieveRequest) (*VirtualChassis, *http.Response, error) + + /* + 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 + */ + DcimVirtualChassisUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisUpdateRequest + + // DcimVirtualChassisUpdateExecute executes the request + // @return VirtualChassis + DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassisUpdateRequest) (*VirtualChassis, *http.Response, error) + + /* + DcimVirtualDeviceContextsBulkDestroy Method for DcimVirtualDeviceContextsBulkDestroy + + 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 + */ + DcimVirtualDeviceContextsBulkDestroy(ctx context.Context) ApiDcimVirtualDeviceContextsBulkDestroyRequest + + // DcimVirtualDeviceContextsBulkDestroyExecute executes the request + DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVirtualDeviceContextsBulkDestroyRequest) (*http.Response, error) + + /* + DcimVirtualDeviceContextsBulkPartialUpdate Method for DcimVirtualDeviceContextsBulkPartialUpdate + + 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 + */ + DcimVirtualDeviceContextsBulkPartialUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest + + // DcimVirtualDeviceContextsBulkPartialUpdateExecute executes the request + // @return []VirtualDeviceContext + DcimVirtualDeviceContextsBulkPartialUpdateExecute(r ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) + + /* + DcimVirtualDeviceContextsBulkUpdate Method for DcimVirtualDeviceContextsBulkUpdate + + 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 + */ + DcimVirtualDeviceContextsBulkUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkUpdateRequest + + // DcimVirtualDeviceContextsBulkUpdateExecute executes the request + // @return []VirtualDeviceContext + DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVirtualDeviceContextsBulkUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) + + /* + 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 + */ + DcimVirtualDeviceContextsCreate(ctx context.Context) ApiDcimVirtualDeviceContextsCreateRequest + + // DcimVirtualDeviceContextsCreateExecute executes the request + // @return VirtualDeviceContext + DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtualDeviceContextsCreateRequest) (*VirtualDeviceContext, *http.Response, error) + + /* + 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 + */ + DcimVirtualDeviceContextsDestroy(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsDestroyRequest + + // DcimVirtualDeviceContextsDestroyExecute executes the request + DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtualDeviceContextsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + DcimVirtualDeviceContextsList(ctx context.Context) ApiDcimVirtualDeviceContextsListRequest + + // DcimVirtualDeviceContextsListExecute executes the request + // @return PaginatedVirtualDeviceContextList + DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDeviceContextsListRequest) (*PaginatedVirtualDeviceContextList, *http.Response, error) + + /* + DcimVirtualDeviceContextsPartialUpdate Method for DcimVirtualDeviceContextsPartialUpdate + + 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 + */ + DcimVirtualDeviceContextsPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsPartialUpdateRequest + + // DcimVirtualDeviceContextsPartialUpdateExecute executes the request + // @return VirtualDeviceContext + DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcimVirtualDeviceContextsPartialUpdateRequest) (*VirtualDeviceContext, *http.Response, error) + + /* + 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 + */ + DcimVirtualDeviceContextsRetrieve(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsRetrieveRequest + + // DcimVirtualDeviceContextsRetrieveExecute executes the request + // @return VirtualDeviceContext + DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtualDeviceContextsRetrieveRequest) (*VirtualDeviceContext, *http.Response, error) + + /* + 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 + */ + DcimVirtualDeviceContextsUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsUpdateRequest + + // DcimVirtualDeviceContextsUpdateExecute executes the request + // @return VirtualDeviceContext + DcimVirtualDeviceContextsUpdateExecute(r ApiDcimVirtualDeviceContextsUpdateRequest) (*VirtualDeviceContext, *http.Response, error) +} + +// DcimAPIService DcimAPI service +type DcimAPIService service + +type ApiDcimCableTerminationsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + cableTerminationRequest *[]CableTerminationRequest +} + +func (r ApiDcimCableTerminationsBulkDestroyRequest) CableTerminationRequest(cableTerminationRequest []CableTerminationRequest) ApiDcimCableTerminationsBulkDestroyRequest { + r.cableTerminationRequest = &cableTerminationRequest + return r +} + +func (r ApiDcimCableTerminationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimCableTerminationsBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsBulkDestroy(ctx context.Context) ApiDcimCableTerminationsBulkDestroyRequest { + return ApiDcimCableTerminationsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableTerminationsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cableTerminationRequest == nil { + return nil, reportError("cableTerminationRequest 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.cableTerminationRequest + 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 ApiDcimCableTerminationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + cableTerminationRequest *[]CableTerminationRequest +} + +func (r ApiDcimCableTerminationsBulkPartialUpdateRequest) CableTerminationRequest(cableTerminationRequest []CableTerminationRequest) ApiDcimCableTerminationsBulkPartialUpdateRequest { + r.cableTerminationRequest = &cableTerminationRequest + return r +} + +func (r ApiDcimCableTerminationsBulkPartialUpdateRequest) Execute() ([]CableTermination, *http.Response, error) { + return r.ApiService.DcimCableTerminationsBulkPartialUpdateExecute(r) +} + +/* +DcimCableTerminationsBulkPartialUpdate Method for DcimCableTerminationsBulkPartialUpdate + +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdate(ctx context.Context) ApiDcimCableTerminationsBulkPartialUpdateRequest { + return ApiDcimCableTerminationsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CableTermination +func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcimCableTerminationsBulkPartialUpdateRequest) ([]CableTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CableTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cableTerminationRequest == nil { + return localVarReturnValue, nil, reportError("cableTerminationRequest 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.cableTerminationRequest + 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 ApiDcimCableTerminationsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + cableTerminationRequest *[]CableTerminationRequest +} + +func (r ApiDcimCableTerminationsBulkUpdateRequest) CableTerminationRequest(cableTerminationRequest []CableTerminationRequest) ApiDcimCableTerminationsBulkUpdateRequest { + r.cableTerminationRequest = &cableTerminationRequest + return r +} + +func (r ApiDcimCableTerminationsBulkUpdateRequest) Execute() ([]CableTermination, *http.Response, error) { + return r.ApiService.DcimCableTerminationsBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsBulkUpdate(ctx context.Context) ApiDcimCableTerminationsBulkUpdateRequest { + return ApiDcimCableTerminationsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []CableTermination +func (a *DcimAPIService) DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTerminationsBulkUpdateRequest) ([]CableTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CableTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cableTerminationRequest == nil { + return localVarReturnValue, nil, reportError("cableTerminationRequest 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.cableTerminationRequest + 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 ApiDcimCableTerminationsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + cableTerminationRequest *CableTerminationRequest +} + +func (r ApiDcimCableTerminationsCreateRequest) CableTerminationRequest(cableTerminationRequest CableTerminationRequest) ApiDcimCableTerminationsCreateRequest { + r.cableTerminationRequest = &cableTerminationRequest + return r +} + +func (r ApiDcimCableTerminationsCreateRequest) Execute() (*CableTermination, *http.Response, error) { + return r.ApiService.DcimCableTerminationsCreateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsCreate(ctx context.Context) ApiDcimCableTerminationsCreateRequest { + return ApiDcimCableTerminationsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsCreateExecute(r ApiDcimCableTerminationsCreateRequest) (*CableTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cableTerminationRequest == nil { + return localVarReturnValue, nil, reportError("cableTerminationRequest 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.cableTerminationRequest + 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 ApiDcimCableTerminationsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimCableTerminationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimCableTerminationsDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsDestroy(ctx context.Context, id int32) ApiDcimCableTerminationsDestroyRequest { + return ApiDcimCableTerminationsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimCableTerminationsDestroyExecute(r ApiDcimCableTerminationsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/{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 ApiDcimCableTerminationsListRequest struct { + ctx context.Context + ApiService DcimAPI + cable *int32 + cableN *int32 + cableEnd *End + 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 + modifiedByRequest *string + offset *int32 + ordering *string + terminationId *[]int32 + terminationIdEmpty *bool + terminationIdGt *[]int32 + terminationIdGte *[]int32 + terminationIdLt *[]int32 + terminationIdLte *[]int32 + terminationIdN *[]int32 + terminationType *string + terminationTypeN *string + updatedByRequest *string +} + +func (r ApiDcimCableTerminationsListRequest) Cable(cable int32) ApiDcimCableTerminationsListRequest { + r.cable = &cable + return r +} + +func (r ApiDcimCableTerminationsListRequest) CableN(cableN int32) ApiDcimCableTerminationsListRequest { + r.cableN = &cableN + return r +} + +// * `A` - A * `B` - B +func (r ApiDcimCableTerminationsListRequest) CableEnd(cableEnd End) ApiDcimCableTerminationsListRequest { + r.cableEnd = &cableEnd + return r +} + +func (r ApiDcimCableTerminationsListRequest) Created(created []time.Time) ApiDcimCableTerminationsListRequest { + r.created = &created + return r +} + +func (r ApiDcimCableTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimCableTerminationsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiDcimCableTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimCableTerminationsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiDcimCableTerminationsListRequest) CreatedGte(createdGte []time.Time) ApiDcimCableTerminationsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimCableTerminationsListRequest) CreatedLt(createdLt []time.Time) ApiDcimCableTerminationsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimCableTerminationsListRequest) CreatedLte(createdLte []time.Time) ApiDcimCableTerminationsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimCableTerminationsListRequest) CreatedN(createdN []time.Time) ApiDcimCableTerminationsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimCableTerminationsListRequest) CreatedByRequest(createdByRequest string) ApiDcimCableTerminationsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimCableTerminationsListRequest) Id(id []int32) ApiDcimCableTerminationsListRequest { + r.id = &id + 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 +} + +func (r ApiDcimCableTerminationsListRequest) IdGte(idGte []int32) ApiDcimCableTerminationsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimCableTerminationsListRequest) IdLt(idLt []int32) ApiDcimCableTerminationsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimCableTerminationsListRequest) IdLte(idLte []int32) ApiDcimCableTerminationsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimCableTerminationsListRequest) IdN(idN []int32) ApiDcimCableTerminationsListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimCableTerminationsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimCableTerminationsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiDcimCableTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimCableTerminationsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiDcimCableTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimCableTerminationsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiDcimCableTerminationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimCableTerminationsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimCableTerminationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimCableTerminationsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimCableTerminationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimCableTerminationsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimCableTerminationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimCableTerminationsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimCableTerminationsListRequest) Limit(limit int32) ApiDcimCableTerminationsListRequest { + r.limit = &limit + return r +} + +func (r ApiDcimCableTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimCableTerminationsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// The initial index from which to return the results. +func (r ApiDcimCableTerminationsListRequest) Offset(offset int32) ApiDcimCableTerminationsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimCableTerminationsListRequest) Ordering(ordering string) ApiDcimCableTerminationsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiDcimCableTerminationsListRequest) TerminationId(terminationId []int32) ApiDcimCableTerminationsListRequest { + r.terminationId = &terminationId + 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 +} + +func (r ApiDcimCableTerminationsListRequest) TerminationIdGte(terminationIdGte []int32) ApiDcimCableTerminationsListRequest { + r.terminationIdGte = &terminationIdGte + return r +} + +func (r ApiDcimCableTerminationsListRequest) TerminationIdLt(terminationIdLt []int32) ApiDcimCableTerminationsListRequest { + r.terminationIdLt = &terminationIdLt + return r +} + +func (r ApiDcimCableTerminationsListRequest) TerminationIdLte(terminationIdLte []int32) ApiDcimCableTerminationsListRequest { + r.terminationIdLte = &terminationIdLte + return r +} + +func (r ApiDcimCableTerminationsListRequest) TerminationIdN(terminationIdN []int32) ApiDcimCableTerminationsListRequest { + r.terminationIdN = &terminationIdN + return r +} + +func (r ApiDcimCableTerminationsListRequest) TerminationType(terminationType string) ApiDcimCableTerminationsListRequest { + r.terminationType = &terminationType + return r +} + +func (r ApiDcimCableTerminationsListRequest) TerminationTypeN(terminationTypeN string) ApiDcimCableTerminationsListRequest { + r.terminationTypeN = &terminationTypeN + return r +} + +func (r ApiDcimCableTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimCableTerminationsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimCableTerminationsListRequest) Execute() (*PaginatedCableTerminationList, *http.Response, error) { + return r.ApiService.DcimCableTerminationsListExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsList(ctx context.Context) ApiDcimCableTerminationsListRequest { + return ApiDcimCableTerminationsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCableTerminationList +func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminationsListRequest) (*PaginatedCableTerminationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCableTerminationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable", r.cable, "form", "") + } + if r.cableN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable__n", r.cableN, "form", "") + } + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.terminationId != nil { + t := *r.terminationId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", t, "form", "multi") + } + } + if r.terminationIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__empty", r.terminationIdEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", t, "form", "multi") + } + } + if r.terminationIdGte != nil { + t := *r.terminationIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", t, "form", "multi") + } + } + if r.terminationIdLt != nil { + t := *r.terminationIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", t, "form", "multi") + } + } + if r.terminationIdLte != nil { + t := *r.terminationIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", t, "form", "multi") + } + } + if r.terminationIdN != nil { + t := *r.terminationIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", t, "form", "multi") + } + } + if r.terminationType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type", r.terminationType, "form", "") + } + if r.terminationTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type__n", r.terminationTypeN, "form", "") + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiDcimCableTerminationsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedCableTerminationRequest *PatchedCableTerminationRequest +} + +func (r ApiDcimCableTerminationsPartialUpdateRequest) PatchedCableTerminationRequest(patchedCableTerminationRequest PatchedCableTerminationRequest) ApiDcimCableTerminationsPartialUpdateRequest { + r.patchedCableTerminationRequest = &patchedCableTerminationRequest + return r +} + +func (r ApiDcimCableTerminationsPartialUpdateRequest) Execute() (*CableTermination, *http.Response, error) { + return r.ApiService.DcimCableTerminationsPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsPartialUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsPartialUpdateRequest { + return ApiDcimCableTerminationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsPartialUpdateExecute(r ApiDcimCableTerminationsPartialUpdateRequest) (*CableTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/{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.patchedCableTerminationRequest + 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 ApiDcimCableTerminationsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimCableTerminationsRetrieveRequest) Execute() (*CableTermination, *http.Response, error) { + return r.ApiService.DcimCableTerminationsRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsRetrieve(ctx context.Context, id int32) ApiDcimCableTerminationsRetrieveRequest { + return ApiDcimCableTerminationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerminationsRetrieveRequest) (*CableTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/{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 ApiDcimCableTerminationsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + cableTerminationRequest *CableTerminationRequest +} + +func (r ApiDcimCableTerminationsUpdateRequest) CableTerminationRequest(cableTerminationRequest CableTerminationRequest) ApiDcimCableTerminationsUpdateRequest { + r.cableTerminationRequest = &cableTerminationRequest + return r +} + +func (r ApiDcimCableTerminationsUpdateRequest) Execute() (*CableTermination, *http.Response, error) { + return r.ApiService.DcimCableTerminationsUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCableTerminationsUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsUpdateRequest { + return ApiDcimCableTerminationsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsUpdateExecute(r ApiDcimCableTerminationsUpdateRequest) (*CableTermination, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cable-terminations/{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.cableTerminationRequest == nil { + return localVarReturnValue, nil, reportError("cableTerminationRequest 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.cableTerminationRequest + 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 ApiDcimCablesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + cableRequest *[]CableRequest +} + +func (r ApiDcimCablesBulkDestroyRequest) CableRequest(cableRequest []CableRequest) ApiDcimCablesBulkDestroyRequest { + r.cableRequest = &cableRequest + return r +} + +func (r ApiDcimCablesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimCablesBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesBulkDestroy(ctx context.Context) ApiDcimCablesBulkDestroyRequest { + return ApiDcimCablesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cableRequest == nil { + return nil, reportError("cableRequest 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.cableRequest + 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 ApiDcimCablesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + cableRequest *[]CableRequest +} + +func (r ApiDcimCablesBulkPartialUpdateRequest) CableRequest(cableRequest []CableRequest) ApiDcimCablesBulkPartialUpdateRequest { + r.cableRequest = &cableRequest + return r +} + +func (r ApiDcimCablesBulkPartialUpdateRequest) Execute() ([]Cable, *http.Response, error) { + return r.ApiService.DcimCablesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesBulkPartialUpdate(ctx context.Context) ApiDcimCablesBulkPartialUpdateRequest { + return ApiDcimCablesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Cable +func (a *DcimAPIService) DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkPartialUpdateRequest) ([]Cable, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Cable + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cableRequest == nil { + return localVarReturnValue, nil, reportError("cableRequest 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.cableRequest + 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 ApiDcimCablesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + cableRequest *[]CableRequest +} + +func (r ApiDcimCablesBulkUpdateRequest) CableRequest(cableRequest []CableRequest) ApiDcimCablesBulkUpdateRequest { + r.cableRequest = &cableRequest + return r +} + +func (r ApiDcimCablesBulkUpdateRequest) Execute() ([]Cable, *http.Response, error) { + return r.ApiService.DcimCablesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesBulkUpdate(ctx context.Context) ApiDcimCablesBulkUpdateRequest { + return ApiDcimCablesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Cable +func (a *DcimAPIService) DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRequest) ([]Cable, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Cable + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cableRequest == nil { + return localVarReturnValue, nil, reportError("cableRequest 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.cableRequest + 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 ApiDcimCablesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableCableRequest *WritableCableRequest +} + +func (r ApiDcimCablesCreateRequest) WritableCableRequest(writableCableRequest WritableCableRequest) ApiDcimCablesCreateRequest { + r.writableCableRequest = &writableCableRequest + return r +} + +func (r ApiDcimCablesCreateRequest) Execute() (*Cable, *http.Response, error) { + return r.ApiService.DcimCablesCreateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesCreate(ctx context.Context) ApiDcimCablesCreateRequest { + return ApiDcimCablesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Cable +func (a *DcimAPIService) DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (*Cable, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/" + + 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.writableCableRequest + 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 ApiDcimCablesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimCablesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimCablesDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesDestroy(ctx context.Context, id int32) ApiDcimCablesDestroyRequest { + return ApiDcimCablesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/{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 ApiDcimCablesListRequest struct { + ctx context.Context + ApiService DcimAPI + circuitterminationId *[]int32 + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + consoleportId *[]int32 + consoleserverportId *[]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 + frontportId *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaceId *[]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 *DcimCablesListLengthUnitParameter + limit *int32 + location *[]string + locationId *[]int32 + modifiedByRequest *string + offset *int32 + ordering *string + powerfeedId *[]int32 + poweroutletId *[]int32 + powerportId *[]int32 + q *string + rack *[]string + rackId *[]int32 + rearportId *[]int32 + site *[]string + siteId *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + terminationAId *[]int32 + terminationAType *string + terminationATypeN *string + terminationBId *[]int32 + terminationBType *string + terminationBTypeN *string + type_ *[]*string + typeEmpty *bool + typeIc *[]*string + typeIe *[]*string + typeIew *[]*string + typeIsw *[]*string + typeN *[]*string + typeNic *[]*string + typeNie *[]*string + typeNiew *[]*string + typeNisw *[]*string + unterminated *bool + updatedByRequest *string +} + +func (r ApiDcimCablesListRequest) CircuitterminationId(circuitterminationId []int32) ApiDcimCablesListRequest { + r.circuitterminationId = &circuitterminationId + return r +} + +func (r ApiDcimCablesListRequest) Color(color []string) ApiDcimCablesListRequest { + r.color = &color + return r +} + +func (r ApiDcimCablesListRequest) ColorEmpty(colorEmpty bool) ApiDcimCablesListRequest { + r.colorEmpty = &colorEmpty + return r +} + +func (r ApiDcimCablesListRequest) ColorIc(colorIc []string) ApiDcimCablesListRequest { + r.colorIc = &colorIc + return r +} + +func (r ApiDcimCablesListRequest) ColorIe(colorIe []string) ApiDcimCablesListRequest { + r.colorIe = &colorIe + return r +} + +func (r ApiDcimCablesListRequest) ColorIew(colorIew []string) ApiDcimCablesListRequest { + r.colorIew = &colorIew + return r +} + +func (r ApiDcimCablesListRequest) ColorIsw(colorIsw []string) ApiDcimCablesListRequest { + r.colorIsw = &colorIsw + return r +} + +func (r ApiDcimCablesListRequest) ColorN(colorN []string) ApiDcimCablesListRequest { + r.colorN = &colorN + return r +} + +func (r ApiDcimCablesListRequest) ColorNic(colorNic []string) ApiDcimCablesListRequest { + r.colorNic = &colorNic + return r +} + +func (r ApiDcimCablesListRequest) ColorNie(colorNie []string) ApiDcimCablesListRequest { + r.colorNie = &colorNie + return r +} + +func (r ApiDcimCablesListRequest) ColorNiew(colorNiew []string) ApiDcimCablesListRequest { + r.colorNiew = &colorNiew + return r +} + +func (r ApiDcimCablesListRequest) ColorNisw(colorNisw []string) ApiDcimCablesListRequest { + r.colorNisw = &colorNisw + return r +} + +func (r ApiDcimCablesListRequest) ConsoleportId(consoleportId []int32) ApiDcimCablesListRequest { + r.consoleportId = &consoleportId + return r +} + +func (r ApiDcimCablesListRequest) ConsoleserverportId(consoleserverportId []int32) ApiDcimCablesListRequest { + r.consoleserverportId = &consoleserverportId + return r +} + +func (r ApiDcimCablesListRequest) Created(created []time.Time) ApiDcimCablesListRequest { + r.created = &created + 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 +} + +func (r ApiDcimCablesListRequest) CreatedGte(createdGte []time.Time) ApiDcimCablesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimCablesListRequest) CreatedLt(createdLt []time.Time) ApiDcimCablesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimCablesListRequest) CreatedLte(createdLte []time.Time) ApiDcimCablesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimCablesListRequest) CreatedN(createdN []time.Time) ApiDcimCablesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimCablesListRequest) CreatedByRequest(createdByRequest string) ApiDcimCablesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimCablesListRequest) Description(description []string) ApiDcimCablesListRequest { + r.description = &description + return r +} + +func (r ApiDcimCablesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimCablesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimCablesListRequest) DescriptionIc(descriptionIc []string) ApiDcimCablesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimCablesListRequest) DescriptionIe(descriptionIe []string) ApiDcimCablesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimCablesListRequest) DescriptionIew(descriptionIew []string) ApiDcimCablesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimCablesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimCablesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimCablesListRequest) DescriptionN(descriptionN []string) ApiDcimCablesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimCablesListRequest) DescriptionNic(descriptionNic []string) ApiDcimCablesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimCablesListRequest) DescriptionNie(descriptionNie []string) ApiDcimCablesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimCablesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimCablesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimCablesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimCablesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiDcimCablesListRequest) Device(device []string) ApiDcimCablesListRequest { + r.device = &device + return r +} + +func (r ApiDcimCablesListRequest) DeviceId(deviceId []int32) ApiDcimCablesListRequest { + r.deviceId = &deviceId + return r +} + +func (r ApiDcimCablesListRequest) FrontportId(frontportId []int32) ApiDcimCablesListRequest { + r.frontportId = &frontportId + return r +} + +func (r ApiDcimCablesListRequest) Id(id []int32) ApiDcimCablesListRequest { + r.id = &id + 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 +} + +func (r ApiDcimCablesListRequest) IdGte(idGte []int32) ApiDcimCablesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimCablesListRequest) IdLt(idLt []int32) ApiDcimCablesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimCablesListRequest) IdLte(idLte []int32) ApiDcimCablesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimCablesListRequest) IdN(idN []int32) ApiDcimCablesListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimCablesListRequest) InterfaceId(interfaceId []int32) ApiDcimCablesListRequest { + r.interfaceId = &interfaceId + return r +} + +func (r ApiDcimCablesListRequest) Label(label []string) ApiDcimCablesListRequest { + r.label = &label + return r +} + +func (r ApiDcimCablesListRequest) LabelEmpty(labelEmpty bool) ApiDcimCablesListRequest { + r.labelEmpty = &labelEmpty + return r +} + +func (r ApiDcimCablesListRequest) LabelIc(labelIc []string) ApiDcimCablesListRequest { + r.labelIc = &labelIc + return r +} + +func (r ApiDcimCablesListRequest) LabelIe(labelIe []string) ApiDcimCablesListRequest { + r.labelIe = &labelIe + return r +} + +func (r ApiDcimCablesListRequest) LabelIew(labelIew []string) ApiDcimCablesListRequest { + r.labelIew = &labelIew + return r +} + +func (r ApiDcimCablesListRequest) LabelIsw(labelIsw []string) ApiDcimCablesListRequest { + r.labelIsw = &labelIsw + return r +} + +func (r ApiDcimCablesListRequest) LabelN(labelN []string) ApiDcimCablesListRequest { + r.labelN = &labelN + return r +} + +func (r ApiDcimCablesListRequest) LabelNic(labelNic []string) ApiDcimCablesListRequest { + r.labelNic = &labelNic + return r +} + +func (r ApiDcimCablesListRequest) LabelNie(labelNie []string) ApiDcimCablesListRequest { + r.labelNie = &labelNie + return r +} + +func (r ApiDcimCablesListRequest) LabelNiew(labelNiew []string) ApiDcimCablesListRequest { + r.labelNiew = &labelNiew + return r +} + +func (r ApiDcimCablesListRequest) LabelNisw(labelNisw []string) ApiDcimCablesListRequest { + r.labelNisw = &labelNisw + return r +} + +func (r ApiDcimCablesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimCablesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiDcimCablesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimCablesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimCablesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimCablesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimCablesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimCablesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimCablesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimCablesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +func (r ApiDcimCablesListRequest) Length(length []float64) ApiDcimCablesListRequest { + r.length = &length + 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 +} + +func (r ApiDcimCablesListRequest) LengthGte(lengthGte []float64) ApiDcimCablesListRequest { + r.lengthGte = &lengthGte + return r +} + +func (r ApiDcimCablesListRequest) LengthLt(lengthLt []float64) ApiDcimCablesListRequest { + r.lengthLt = &lengthLt + return r +} + +func (r ApiDcimCablesListRequest) LengthLte(lengthLte []float64) ApiDcimCablesListRequest { + r.lengthLte = &lengthLte + return r +} + +func (r ApiDcimCablesListRequest) LengthN(lengthN []float64) ApiDcimCablesListRequest { + r.lengthN = &lengthN + return r +} + +// * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches +func (r ApiDcimCablesListRequest) LengthUnit(lengthUnit DcimCablesListLengthUnitParameter) ApiDcimCablesListRequest { + r.lengthUnit = &lengthUnit + return r +} + +// Number of results to return per page. +func (r ApiDcimCablesListRequest) Limit(limit int32) ApiDcimCablesListRequest { + r.limit = &limit + return r +} + +func (r ApiDcimCablesListRequest) Location(location []string) ApiDcimCablesListRequest { + r.location = &location + return r +} + +func (r ApiDcimCablesListRequest) LocationId(locationId []int32) ApiDcimCablesListRequest { + r.locationId = &locationId + 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 + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimCablesListRequest) Ordering(ordering string) ApiDcimCablesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiDcimCablesListRequest) PowerfeedId(powerfeedId []int32) ApiDcimCablesListRequest { + r.powerfeedId = &powerfeedId + return r +} + +func (r ApiDcimCablesListRequest) PoweroutletId(poweroutletId []int32) ApiDcimCablesListRequest { + r.poweroutletId = &poweroutletId + return r +} + +func (r ApiDcimCablesListRequest) PowerportId(powerportId []int32) ApiDcimCablesListRequest { + r.powerportId = &powerportId + return r +} + +// Search +func (r ApiDcimCablesListRequest) Q(q string) ApiDcimCablesListRequest { + r.q = &q + return r +} + +func (r ApiDcimCablesListRequest) Rack(rack []string) ApiDcimCablesListRequest { + r.rack = &rack + return r +} + +func (r ApiDcimCablesListRequest) RackId(rackId []int32) ApiDcimCablesListRequest { + r.rackId = &rackId + return r +} + +func (r ApiDcimCablesListRequest) RearportId(rearportId []int32) ApiDcimCablesListRequest { + r.rearportId = &rearportId + return r +} + +func (r ApiDcimCablesListRequest) Site(site []string) ApiDcimCablesListRequest { + r.site = &site + return r +} + +func (r ApiDcimCablesListRequest) SiteId(siteId []int32) ApiDcimCablesListRequest { + r.siteId = &siteId + return r +} + +func (r ApiDcimCablesListRequest) Status(status []string) ApiDcimCablesListRequest { + r.status = &status + return r +} + +func (r ApiDcimCablesListRequest) StatusEmpty(statusEmpty bool) ApiDcimCablesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiDcimCablesListRequest) StatusIc(statusIc []string) ApiDcimCablesListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiDcimCablesListRequest) StatusIe(statusIe []string) ApiDcimCablesListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiDcimCablesListRequest) StatusIew(statusIew []string) ApiDcimCablesListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiDcimCablesListRequest) StatusIsw(statusIsw []string) ApiDcimCablesListRequest { + r.statusIsw = &statusIsw + return r +} + +func (r ApiDcimCablesListRequest) StatusN(statusN []string) ApiDcimCablesListRequest { + r.statusN = &statusN + return r +} + +func (r ApiDcimCablesListRequest) StatusNic(statusNic []string) ApiDcimCablesListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiDcimCablesListRequest) StatusNie(statusNie []string) ApiDcimCablesListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiDcimCablesListRequest) StatusNiew(statusNiew []string) ApiDcimCablesListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiDcimCablesListRequest) StatusNisw(statusNisw []string) ApiDcimCablesListRequest { + r.statusNisw = &statusNisw + return r +} + +func (r ApiDcimCablesListRequest) Tag(tag []string) ApiDcimCablesListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimCablesListRequest) TagN(tagN []string) ApiDcimCablesListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiDcimCablesListRequest) Tenant(tenant []string) ApiDcimCablesListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiDcimCablesListRequest) TenantN(tenantN []string) ApiDcimCablesListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []string) ApiDcimCablesListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimCablesListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimCablesListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimCablesListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiDcimCablesListRequest) TenantId(tenantId []*int32) ApiDcimCablesListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiDcimCablesListRequest) TenantIdN(tenantIdN []*int32) ApiDcimCablesListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiDcimCablesListRequest) TerminationAId(terminationAId []int32) ApiDcimCablesListRequest { + r.terminationAId = &terminationAId + return r +} + +func (r ApiDcimCablesListRequest) TerminationAType(terminationAType string) ApiDcimCablesListRequest { + r.terminationAType = &terminationAType + return r +} + +func (r ApiDcimCablesListRequest) TerminationATypeN(terminationATypeN string) ApiDcimCablesListRequest { + r.terminationATypeN = &terminationATypeN + return r +} + +func (r ApiDcimCablesListRequest) TerminationBId(terminationBId []int32) ApiDcimCablesListRequest { + r.terminationBId = &terminationBId + return r +} + +func (r ApiDcimCablesListRequest) TerminationBType(terminationBType string) ApiDcimCablesListRequest { + r.terminationBType = &terminationBType + return r +} + +func (r ApiDcimCablesListRequest) TerminationBTypeN(terminationBTypeN string) ApiDcimCablesListRequest { + r.terminationBTypeN = &terminationBTypeN + return r +} + +func (r ApiDcimCablesListRequest) Type_(type_ []*string) ApiDcimCablesListRequest { + r.type_ = &type_ + return r +} + +func (r ApiDcimCablesListRequest) TypeEmpty(typeEmpty bool) ApiDcimCablesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +func (r ApiDcimCablesListRequest) TypeIc(typeIc []*string) ApiDcimCablesListRequest { + r.typeIc = &typeIc + return r +} + +func (r ApiDcimCablesListRequest) TypeIe(typeIe []*string) ApiDcimCablesListRequest { + r.typeIe = &typeIe + return r +} + +func (r ApiDcimCablesListRequest) TypeIew(typeIew []*string) ApiDcimCablesListRequest { + r.typeIew = &typeIew + return r +} + +func (r ApiDcimCablesListRequest) TypeIsw(typeIsw []*string) ApiDcimCablesListRequest { + r.typeIsw = &typeIsw + return r +} + +func (r ApiDcimCablesListRequest) TypeN(typeN []*string) ApiDcimCablesListRequest { + r.typeN = &typeN + return r +} + +func (r ApiDcimCablesListRequest) TypeNic(typeNic []*string) ApiDcimCablesListRequest { + r.typeNic = &typeNic + return r +} + +func (r ApiDcimCablesListRequest) TypeNie(typeNie []*string) ApiDcimCablesListRequest { + r.typeNie = &typeNie + return r +} + +func (r ApiDcimCablesListRequest) TypeNiew(typeNiew []*string) ApiDcimCablesListRequest { + r.typeNiew = &typeNiew + return r +} + +func (r ApiDcimCablesListRequest) TypeNisw(typeNisw []*string) ApiDcimCablesListRequest { + r.typeNisw = &typeNisw + return r +} + +// Unterminated +func (r ApiDcimCablesListRequest) Unterminated(unterminated bool) ApiDcimCablesListRequest { + r.unterminated = &unterminated + return r +} + +func (r ApiDcimCablesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimCablesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimCablesListRequest) Execute() (*PaginatedCableList, *http.Response, error) { + return r.ApiService.DcimCablesListExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesList(ctx context.Context) ApiDcimCablesListRequest { + return ApiDcimCablesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedCableList +func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*PaginatedCableList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCableList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.circuitterminationId != nil { + t := *r.circuitterminationId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuittermination_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuittermination_id", t, "form", "multi") + } + } + if r.color != nil { + t := *r.color + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") + } + } + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") + } + if r.colorIc != nil { + t := *r.colorIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") + } + } + if r.colorIe != nil { + t := *r.colorIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") + } + } + if r.colorIew != nil { + t := *r.colorIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") + } + } + if r.colorIsw != nil { + t := *r.colorIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") + } + } + if r.colorN != nil { + t := *r.colorN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") + } + } + if r.colorNic != nil { + t := *r.colorNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") + } + } + if r.colorNie != nil { + t := *r.colorNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") + } + } + if r.colorNiew != nil { + t := *r.colorNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") + } + } + if r.colorNisw != nil { + t := *r.colorNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") + } + } + if r.consoleportId != nil { + t := *r.consoleportId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "consoleport_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "consoleport_id", t, "form", "multi") + } + } + if r.consoleserverportId != nil { + t := *r.consoleserverportId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "consoleserverport_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "consoleserverport_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.device != nil { + t := *r.device + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") + } + } + if r.frontportId != nil { + t := *r.frontportId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "frontport_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "frontport_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.interfaceId != nil { + t := *r.interfaceId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") + } + } + if r.label != nil { + t := *r.label + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") + } + } + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") + } + } + if r.labelIe != nil { + t := *r.labelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") + } + } + if r.labelIew != nil { + t := *r.labelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") + } + } + if r.labelIsw != nil { + t := *r.labelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") + } + } + if r.labelN != nil { + t := *r.labelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") + } + } + if r.labelNic != nil { + t := *r.labelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") + } + } + if r.labelNie != nil { + t := *r.labelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") + } + } + if r.labelNiew != nil { + t := *r.labelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") + } + } + if r.labelNisw != nil { + t := *r.labelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.length != nil { + t := *r.length + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "length", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "length", t, "form", "multi") + } + } + if r.lengthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "length__empty", r.lengthEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "length__gt", t, "form", "multi") + } + } + if r.lengthGte != nil { + t := *r.lengthGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "length__gte", t, "form", "multi") + } + } + if r.lengthLt != nil { + t := *r.lengthLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "length__lt", t, "form", "multi") + } + } + if r.lengthLte != nil { + t := *r.lengthLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "length__lte", t, "form", "multi") + } + } + if r.lengthN != nil { + t := *r.lengthN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "length__n", t, "form", "multi") + } + } + if r.lengthUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "length_unit", r.lengthUnit, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.powerfeedId != nil { + t := *r.powerfeedId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "powerfeed_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "powerfeed_id", t, "form", "multi") + } + } + if r.poweroutletId != nil { + t := *r.poweroutletId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poweroutlet_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poweroutlet_id", t, "form", "multi") + } + } + if r.powerportId != nil { + t := *r.powerportId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "powerport_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "powerport_id", t, "form", "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") + } + } + if r.rackId != nil { + t := *r.rackId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") + } + } + if r.rearportId != nil { + t := *r.rearportId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rearport_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rearport_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") + } + } + if r.statusN != nil { + t := *r.statusN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.terminationAId != nil { + t := *r.terminationAId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", t, "form", "multi") + } + } + if r.terminationAType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_type", r.terminationAType, "form", "") + } + if r.terminationATypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_type__n", r.terminationATypeN, "form", "") + } + if r.terminationBId != nil { + t := *r.terminationBId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_id", t, "form", "multi") + } + } + if r.terminationBType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_type", r.terminationBType, "form", "") + } + if r.terminationBTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_type__n", r.terminationBTypeN, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") + } + } + if r.typeN != nil { + t := *r.typeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } + } + if r.unterminated != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unterminated", r.unterminated, "form", "") + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiDcimCablesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableCableRequest *PatchedWritableCableRequest +} + +func (r ApiDcimCablesPartialUpdateRequest) PatchedWritableCableRequest(patchedWritableCableRequest PatchedWritableCableRequest) ApiDcimCablesPartialUpdateRequest { + r.patchedWritableCableRequest = &patchedWritableCableRequest + return r +} + +func (r ApiDcimCablesPartialUpdateRequest) Execute() (*Cable, *http.Response, error) { + return r.ApiService.DcimCablesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesPartialUpdate(ctx context.Context, id int32) ApiDcimCablesPartialUpdateRequest { + return ApiDcimCablesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Cable +func (a *DcimAPIService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUpdateRequest) (*Cable, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/{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.patchedWritableCableRequest + 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 ApiDcimCablesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimCablesRetrieveRequest) Execute() (*Cable, *http.Response, error) { + return r.ApiService.DcimCablesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesRetrieve(ctx context.Context, id int32) ApiDcimCablesRetrieveRequest { + return ApiDcimCablesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Cable +func (a *DcimAPIService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveRequest) (*Cable, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/{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 ApiDcimCablesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableCableRequest *WritableCableRequest +} + +func (r ApiDcimCablesUpdateRequest) WritableCableRequest(writableCableRequest WritableCableRequest) ApiDcimCablesUpdateRequest { + r.writableCableRequest = &writableCableRequest + return r +} + +func (r ApiDcimCablesUpdateRequest) Execute() (*Cable, *http.Response, error) { + return r.ApiService.DcimCablesUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimCablesUpdate(ctx context.Context, id int32) ApiDcimCablesUpdateRequest { + return ApiDcimCablesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Cable +func (a *DcimAPIService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (*Cable, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/cables/{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.writableCableRequest + 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 ApiDcimConnectedDeviceListRequest struct { + ctx context.Context + ApiService DcimAPI + peerDevice *string + peerInterface *string +} + +// The name of the peer device +func (r ApiDcimConnectedDeviceListRequest) PeerDevice(peerDevice string) ApiDcimConnectedDeviceListRequest { + r.peerDevice = &peerDevice + return r +} + +// The name of the peer interface +func (r ApiDcimConnectedDeviceListRequest) PeerInterface(peerInterface string) ApiDcimConnectedDeviceListRequest { + r.peerInterface = &peerInterface + return r +} + +func (r ApiDcimConnectedDeviceListRequest) Execute() ([]Device, *http.Response, error) { + return r.ApiService.DcimConnectedDeviceListExecute(r) +} + +/* +DcimConnectedDeviceList Method for DcimConnectedDeviceList + +This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer +interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors +via a protocol such as LLDP. Two query parameters must be included in the request: + +* `peer_device`: The name of the peer device +* `peer_interface`: The name of the peer interface + + @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 { + return ApiDcimConnectedDeviceListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Device +func (a *DcimAPIService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDeviceListRequest) ([]Device, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Device + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConnectedDeviceList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/connected-device/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.peerDevice == nil { + return localVarReturnValue, nil, reportError("peerDevice is required and must be specified") + } + if r.peerInterface == nil { + return localVarReturnValue, nil, reportError("peerInterface is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "peer_device", r.peerDevice, "form", "") + parameterAddToHeaderOrQuery(localVarQueryParams, "peer_interface", r.peerInterface, "form", "") + // 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 } - } 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") - } + 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 ApiDcimConsolePortTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + consolePortTemplateRequest *[]ConsolePortTemplateRequest +} + +func (r ApiDcimConsolePortTemplatesBulkDestroyRequest) ConsolePortTemplateRequest(consolePortTemplateRequest []ConsolePortTemplateRequest) ApiDcimConsolePortTemplatesBulkDestroyRequest { + r.consolePortTemplateRequest = &consolePortTemplateRequest + return r +} + +func (r ApiDcimConsolePortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesBulkDestroyExecute(r) +} + +/* +DcimConsolePortTemplatesBulkDestroy Method for DcimConsolePortTemplatesBulkDestroy + +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 +*/ +func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsolePortTemplatesBulkDestroyRequest { + return ApiDcimConsolePortTemplatesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimConsolePortTemplatesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/console-port-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.consolePortTemplateRequest == nil { + return nil, reportError("consolePortTemplateRequest 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.consolePortTemplateRequest + 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 ApiDcimConsolePortTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consolePortTemplateRequest *[]ConsolePortTemplateRequest +} + +func (r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ConsolePortTemplateRequest(consolePortTemplateRequest []ConsolePortTemplateRequest) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest { + r.consolePortTemplateRequest = &consolePortTemplateRequest + return r +} + +func (r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) Execute() ([]ConsolePortTemplate, *http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesBulkPartialUpdateExecute(r) +} + +/* +DcimConsolePortTemplatesBulkPartialUpdate Method for DcimConsolePortTemplatesBulkPartialUpdate + +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 +*/ +func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest { + return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePortTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/console-port-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.consolePortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("consolePortTemplateRequest 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.consolePortTemplateRequest + 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 ApiDcimConsolePortTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consolePortTemplateRequest *[]ConsolePortTemplateRequest +} + +func (r ApiDcimConsolePortTemplatesBulkUpdateRequest) ConsolePortTemplateRequest(consolePortTemplateRequest []ConsolePortTemplateRequest) ApiDcimConsolePortTemplatesBulkUpdateRequest { + r.consolePortTemplateRequest = &consolePortTemplateRequest + return r +} + +func (r ApiDcimConsolePortTemplatesBulkUpdateRequest) Execute() ([]ConsolePortTemplate, *http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkUpdateRequest { + return ApiDcimConsolePortTemplatesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimConsolePortTemplatesBulkUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePortTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/console-port-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.consolePortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("consolePortTemplateRequest 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.consolePortTemplateRequest + 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 ApiDcimConsolePortTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest +} + +func (r ApiDcimConsolePortTemplatesCreateRequest) WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest WritableConsolePortTemplateRequest) ApiDcimConsolePortTemplatesCreateRequest { + r.writableConsolePortTemplateRequest = &writableConsolePortTemplateRequest + return r +} + +func (r ApiDcimConsolePortTemplatesCreateRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesCreateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimConsolePortTemplatesCreate(ctx context.Context) ApiDcimConsolePortTemplatesCreateRequest { + return ApiDcimConsolePortTemplatesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsolePortTemplatesCreateRequest) (*ConsolePortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/console-port-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableConsolePortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableConsolePortTemplateRequest 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.writableConsolePortTemplateRequest + 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 ApiDcimConsolePortTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimConsolePortTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimConsolePortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsolePortTemplatesDestroyRequest { + return ApiDcimConsolePortTemplatesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsolePortTemplatesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/console-port-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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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__nisw", t, "multi") } } - if r.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.frontportId != nil { - t := *r.frontportId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "frontport_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "frontport_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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + + return localVarHTTPResponse, nil +} + +type ApiDcimConsolePortTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 + 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_ *DcimConsolePortTemplatesListTypeParameter + updatedByRequest *string +} + +func (r ApiDcimConsolePortTemplatesListRequest) Created(created []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.created = &created + 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 +} + +func (r ApiDcimConsolePortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsolePortTemplatesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) Description(description []string) ApiDcimConsolePortTemplatesListRequest { + r.description = &description + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsolePortTemplatesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsolePortTemplatesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Device type (ID) +func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimConsolePortTemplatesListRequest { + r.deviceTypeId = &deviceTypeId + return r +} + +// Device type (ID) +func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) Id(id []int32) ApiDcimConsolePortTemplatesListRequest { + r.id = &id + 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 +} + +func (r ApiDcimConsolePortTemplatesListRequest) IdGte(idGte []int32) ApiDcimConsolePortTemplatesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) IdLt(idLt []int32) ApiDcimConsolePortTemplatesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) IdLte(idLte []int32) ApiDcimConsolePortTemplatesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) IdN(idN []int32) ApiDcimConsolePortTemplatesListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) Label(label []string) ApiDcimConsolePortTemplatesListRequest { + r.label = &label + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsolePortTemplatesListRequest { + r.labelEmpty = &labelEmpty + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimConsolePortTemplatesListRequest { + r.labelIc = &labelIc + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimConsolePortTemplatesListRequest { + r.labelIe = &labelIe + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimConsolePortTemplatesListRequest { + r.labelIew = &labelIew + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimConsolePortTemplatesListRequest { + r.labelIsw = &labelIsw + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelN(labelN []string) ApiDcimConsolePortTemplatesListRequest { + r.labelN = &labelN + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimConsolePortTemplatesListRequest { + r.labelNic = &labelNic + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimConsolePortTemplatesListRequest { + r.labelNie = &labelNie + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimConsolePortTemplatesListRequest { + r.labelNiew = &labelNiew + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimConsolePortTemplatesListRequest { + r.labelNisw = &labelNisw + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimConsolePortTemplatesListRequest) Limit(limit int32) ApiDcimConsolePortTemplatesListRequest { + r.limit = &limit + 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 + return r +} + +// Module type (ID) +func (r ApiDcimConsolePortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) Name(name []string) ApiDcimConsolePortTemplatesListRequest { + r.name = &name + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimConsolePortTemplatesListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameIc(nameIc []string) ApiDcimConsolePortTemplatesListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameIe(nameIe []string) ApiDcimConsolePortTemplatesListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameIew(nameIew []string) ApiDcimConsolePortTemplatesListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimConsolePortTemplatesListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameN(nameN []string) ApiDcimConsolePortTemplatesListRequest { + r.nameN = &nameN + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameNic(nameNic []string) ApiDcimConsolePortTemplatesListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameNie(nameNie []string) ApiDcimConsolePortTemplatesListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimConsolePortTemplatesListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimConsolePortTemplatesListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiDcimConsolePortTemplatesListRequest) Offset(offset int32) ApiDcimConsolePortTemplatesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimConsolePortTemplatesListRequest) Ordering(ordering string) ApiDcimConsolePortTemplatesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiDcimConsolePortTemplatesListRequest) Q(q string) ApiDcimConsolePortTemplatesListRequest { + r.q = &q + return r +} + +// * `Serial` - [('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` - [('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', 'Other')] +func (r ApiDcimConsolePortTemplatesListRequest) Type_(type_ DcimConsolePortTemplatesListTypeParameter) ApiDcimConsolePortTemplatesListRequest { + r.type_ = &type_ + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsolePortTemplatesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimConsolePortTemplatesListRequest) Execute() (*PaginatedConsolePortTemplateList, *http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesListExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimConsolePortTemplatesList(ctx context.Context) ApiDcimConsolePortTemplatesListRequest { + return ApiDcimConsolePortTemplatesListRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return PaginatedConsolePortTemplateList +func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePortTemplatesListRequest) (*PaginatedConsolePortTemplateList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsolePortTemplateList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.idGte != nil { - t := *r.idGte + + localVarPath := localBasePath + "/api/dcim/console-port-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + 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, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.interfaceId != nil { - t := *r.interfaceId + 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, "interface_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.label != nil { - t := *r.label + 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc + 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, "label__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.labelIe != nil { - t := *r.labelIe + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.labelIew != nil { - t := *r.labelIew + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.labelIsw != nil { - t := *r.labelIsw + 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.labelN != nil { - t := *r.labelN + 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.length != nil { - t := *r.length + 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, "length", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "length", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.lengthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__empty", r.lengthEmpty, "") - } - if r.lengthGt != nil { - t := *r.lengthGt + 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, "length__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.lengthGte != nil { - t := *r.lengthGte + 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, "length__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.lengthLt != nil { - t := *r.lengthLt + if r.label != nil { + t := *r.label 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } - if r.lengthLte != nil { - t := *r.lengthLte + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } - if r.lengthN != nil { - t := *r.lengthN + if r.labelIe != nil { + t := *r.labelIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } - if r.lengthUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "length_unit", r.lengthUnit, "") - } - if r.lengthUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "length_unit__n", r.lengthUnitN, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.location != nil { - t := *r.location + if r.labelIew != nil { + t := *r.labelIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } - if r.locationId != nil { - t := *r.locationId + if r.labelIsw != nil { + t := *r.labelIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } - 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.powerfeedId != nil { - t := *r.powerfeedId + if r.labelN != nil { + t := *r.labelN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "powerfeed_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "powerfeed_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } - if r.poweroutletId != nil { - t := *r.poweroutletId + if r.labelNic != nil { + t := *r.labelNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poweroutlet_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poweroutlet_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.powerportId != nil { - t := *r.powerportId + if r.labelNie != nil { + t := *r.labelNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "powerport_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "powerport_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rack != nil { - t := *r.rack + if r.labelNiew != nil { + t := *r.labelNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.rackId != nil { - t := *r.rackId + if r.labelNisw != nil { + t := *r.labelNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } - if r.rearportId != nil { - t := *r.rearportId + 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, "rearport_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rearport_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.status != nil { - t := *r.status + 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, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + 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, "status__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.tenant != nil { - t := *r.tenant + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "tenant", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + 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, "tenant_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "tenant_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + 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, "tenant_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + 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, "tenant_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + 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, "tenant_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + 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, "tenant_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.terminationAId != nil { - t := *r.terminationAId + 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, "termination_a_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.terminationAType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_type", r.terminationAType, "") - } - if r.terminationATypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_type__n", r.terminationATypeN, "") - } - if r.terminationBId != nil { - t := *r.terminationBId + 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, "termination_b_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.terminationBType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_type", r.terminationBType, "") - } - if r.terminationBTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_type__n", r.terminationBTypeN, "") - } - if r.type_ != nil { - t := *r.type_ + 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, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + 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, "type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.unterminated != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "unterminated", r.unterminated, "") + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3937,56 +12260,55 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimCablesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableCableRequest *PatchedWritableCableRequest +type ApiDcimConsolePortTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableConsolePortTemplateRequest *PatchedWritableConsolePortTemplateRequest } -func (r ApiDcimCablesPartialUpdateRequest) PatchedWritableCableRequest(patchedWritableCableRequest PatchedWritableCableRequest) ApiDcimCablesPartialUpdateRequest { - r.patchedWritableCableRequest = &patchedWritableCableRequest +func (r ApiDcimConsolePortTemplatesPartialUpdateRequest) PatchedWritableConsolePortTemplateRequest(patchedWritableConsolePortTemplateRequest PatchedWritableConsolePortTemplateRequest) ApiDcimConsolePortTemplatesPartialUpdateRequest { + r.patchedWritableConsolePortTemplateRequest = &patchedWritableConsolePortTemplateRequest return r } -func (r ApiDcimCablesPartialUpdateRequest) Execute() (*Cable, *http.Response, error) { - return r.ApiService.DcimCablesPartialUpdateExecute(r) +func (r ApiDcimConsolePortTemplatesPartialUpdateRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesPartialUpdateExecute(r) } /* -DcimCablesPartialUpdate Method for DcimCablesPartialUpdate +DcimConsolePortTemplatesPartialUpdate Method for DcimConsolePortTemplatesPartialUpdate -Patch a cable object. +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 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 console port template. + @return ApiDcimConsolePortTemplatesPartialUpdateRequest */ -func (a *DcimAPIService) DcimCablesPartialUpdate(ctx context.Context, id int32) ApiDcimCablesPartialUpdateRequest { - return ApiDcimCablesPartialUpdateRequest{ +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 Cable -func (a *DcimAPIService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUpdateRequest) (*Cable, *http.Response, error) { +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimConsolePortTemplatesPartialUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/cables/{id}/" + localVarPath := localBasePath + "/api/dcim/console-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -4011,7 +12333,7 @@ func (a *DcimAPIService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableCableRequest + localVarPostBody = r.patchedWritableConsolePortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4063,50 +12385,49 @@ func (a *DcimAPIService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimCablesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimConsolePortTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimCablesRetrieveRequest) Execute() (*Cable, *http.Response, error) { - return r.ApiService.DcimCablesRetrieveExecute(r) +func (r ApiDcimConsolePortTemplatesRetrieveRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesRetrieveExecute(r) } /* -DcimCablesRetrieve Method for DcimCablesRetrieve +DcimConsolePortTemplatesRetrieve Method for DcimConsolePortTemplatesRetrieve -Get a cable object. +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 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 console port template. + @return ApiDcimConsolePortTemplatesRetrieveRequest */ -func (a *DcimAPIService) DcimCablesRetrieve(ctx context.Context, id int32) ApiDcimCablesRetrieveRequest { - return ApiDcimCablesRetrieveRequest{ +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 Cable -func (a *DcimAPIService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveRequest) (*Cable, *http.Response, error) { +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsolePortTemplatesRetrieveRequest) (*ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/cables/{id}/" + localVarPath := localBasePath + "/api/dcim/console-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -4181,61 +12502,63 @@ func (a *DcimAPIService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimCablesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableCableRequest *WritableCableRequest +type ApiDcimConsolePortTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest } -func (r ApiDcimCablesUpdateRequest) WritableCableRequest(writableCableRequest WritableCableRequest) ApiDcimCablesUpdateRequest { - r.writableCableRequest = &writableCableRequest +func (r ApiDcimConsolePortTemplatesUpdateRequest) WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest WritableConsolePortTemplateRequest) ApiDcimConsolePortTemplatesUpdateRequest { + r.writableConsolePortTemplateRequest = &writableConsolePortTemplateRequest return r } -func (r ApiDcimCablesUpdateRequest) Execute() (*Cable, *http.Response, error) { - return r.ApiService.DcimCablesUpdateExecute(r) +func (r ApiDcimConsolePortTemplatesUpdateRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { + return r.ApiService.DcimConsolePortTemplatesUpdateExecute(r) } /* -DcimCablesUpdate Method for DcimCablesUpdate +DcimConsolePortTemplatesUpdate Method for DcimConsolePortTemplatesUpdate -Put a cable object. +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 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 console port template. + @return ApiDcimConsolePortTemplatesUpdateRequest */ -func (a *DcimAPIService) DcimCablesUpdate(ctx context.Context, id int32) ApiDcimCablesUpdateRequest { - return ApiDcimCablesUpdateRequest{ +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 Cable -func (a *DcimAPIService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (*Cable, *http.Response, error) { +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsolePortTemplatesUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/cables/{id}/" + localVarPath := localBasePath + "/api/dcim/console-port-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.writableConsolePortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableConsolePortTemplateRequest is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -4255,148 +12578,7 @@ func (a *DcimAPIService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) ( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableCableRequest - 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 ApiDcimConnectedDeviceListRequest struct { - ctx context.Context - ApiService *DcimAPIService - peerDevice *string - peerInterface *string -} - -// The name of the peer device -func (r ApiDcimConnectedDeviceListRequest) PeerDevice(peerDevice string) ApiDcimConnectedDeviceListRequest { - r.peerDevice = &peerDevice - return r -} - -// The name of the peer interface -func (r ApiDcimConnectedDeviceListRequest) PeerInterface(peerInterface string) ApiDcimConnectedDeviceListRequest { - r.peerInterface = &peerInterface - return r -} - -func (r ApiDcimConnectedDeviceListRequest) Execute() ([]Device, *http.Response, error) { - return r.ApiService.DcimConnectedDeviceListExecute(r) -} - -/* -DcimConnectedDeviceList Method for DcimConnectedDeviceList - -This endpoint allows a user to determine what device (if any) is connected to a given peer device and peer -interface. This is useful in a situation where a device boots with no configuration, but can detect its neighbors -via a protocol such as LLDP. Two query parameters must be included in the request: - -* `peer_device`: The name of the peer device -* `peer_interface`: The name of the peer interface - - @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 { - return ApiDcimConnectedDeviceListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []Device -func (a *DcimAPIService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDeviceListRequest) ([]Device, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Device - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConnectedDeviceList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/connected-device/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.peerDevice == nil { - return localVarReturnValue, nil, reportError("peerDevice is required and must be specified") - } - if r.peerInterface == nil { - return localVarReturnValue, nil, reportError("peerInterface is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "peer_device", r.peerDevice, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "peer_interface", r.peerInterface, "") - // 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 - } + localVarPostBody = r.writableConsolePortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4448,56 +12630,56 @@ func (a *DcimAPIService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDevice return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - consolePortTemplateRequest *[]ConsolePortTemplateRequest +type ApiDcimConsolePortsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + consolePortRequest *[]ConsolePortRequest } -func (r ApiDcimConsolePortTemplatesBulkDestroyRequest) ConsolePortTemplateRequest(consolePortTemplateRequest []ConsolePortTemplateRequest) ApiDcimConsolePortTemplatesBulkDestroyRequest { - r.consolePortTemplateRequest = &consolePortTemplateRequest +func (r ApiDcimConsolePortsBulkDestroyRequest) ConsolePortRequest(consolePortRequest []ConsolePortRequest) ApiDcimConsolePortsBulkDestroyRequest { + r.consolePortRequest = &consolePortRequest return r } -func (r ApiDcimConsolePortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesBulkDestroyExecute(r) +func (r ApiDcimConsolePortsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsolePortsBulkDestroyExecute(r) } /* -DcimConsolePortTemplatesBulkDestroy Method for DcimConsolePortTemplatesBulkDestroy +DcimConsolePortsBulkDestroy Method for DcimConsolePortsBulkDestroy -Delete a list of console port template objects. +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 ApiDcimConsolePortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkDestroyRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsolePortTemplatesBulkDestroyRequest { - return ApiDcimConsolePortTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimConsolePortsBulkDestroy(ctx context.Context) ApiDcimConsolePortsBulkDestroyRequest { + return ApiDcimConsolePortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimConsolePortTemplatesBulkDestroyRequest) (*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.DcimConsolePortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consolePortTemplateRequest == nil { - return nil, reportError("consolePortTemplateRequest is required and must be specified") + if r.consolePortRequest == nil { + return nil, reportError("consolePortRequest is required and must be specified") } // to determine the Content-Type header @@ -4518,7 +12700,7 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consolePortTemplateRequest + localVarPostBody = r.consolePortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4561,59 +12743,58 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimCon return localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consolePortTemplateRequest *[]ConsolePortTemplateRequest +type ApiDcimConsolePortsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consolePortRequest *[]ConsolePortRequest } -func (r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ConsolePortTemplateRequest(consolePortTemplateRequest []ConsolePortTemplateRequest) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest { - r.consolePortTemplateRequest = &consolePortTemplateRequest +func (r ApiDcimConsolePortsBulkPartialUpdateRequest) ConsolePortRequest(consolePortRequest []ConsolePortRequest) ApiDcimConsolePortsBulkPartialUpdateRequest { + r.consolePortRequest = &consolePortRequest return r } -func (r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) Execute() ([]ConsolePortTemplate, *http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimConsolePortsBulkPartialUpdateRequest) Execute() ([]ConsolePort, *http.Response, error) { + return r.ApiService.DcimConsolePortsBulkPartialUpdateExecute(r) } /* -DcimConsolePortTemplatesBulkPartialUpdate Method for DcimConsolePortTemplatesBulkPartialUpdate +DcimConsolePortsBulkPartialUpdate Method for DcimConsolePortsBulkPartialUpdate -Patch a list of console port template objects. +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 ApiDcimConsolePortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest { - return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortsBulkPartialUpdateRequest { + return ApiDcimConsolePortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePortTemplate -func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { +// @return []ConsolePort +func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConsolePortsBulkPartialUpdateRequest) ([]ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consolePortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("consolePortTemplateRequest is required and must be specified") + if r.consolePortRequest == nil { + return localVarReturnValue, nil, reportError("consolePortRequest is required and must be specified") } // to determine the Content-Type header @@ -4634,7 +12815,7 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consolePortTemplateRequest + localVarPostBody = r.consolePortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4686,59 +12867,58 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiD return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consolePortTemplateRequest *[]ConsolePortTemplateRequest +type ApiDcimConsolePortsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consolePortRequest *[]ConsolePortRequest } -func (r ApiDcimConsolePortTemplatesBulkUpdateRequest) ConsolePortTemplateRequest(consolePortTemplateRequest []ConsolePortTemplateRequest) ApiDcimConsolePortTemplatesBulkUpdateRequest { - r.consolePortTemplateRequest = &consolePortTemplateRequest +func (r ApiDcimConsolePortsBulkUpdateRequest) ConsolePortRequest(consolePortRequest []ConsolePortRequest) ApiDcimConsolePortsBulkUpdateRequest { + r.consolePortRequest = &consolePortRequest return r } -func (r ApiDcimConsolePortTemplatesBulkUpdateRequest) Execute() ([]ConsolePortTemplate, *http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesBulkUpdateExecute(r) +func (r ApiDcimConsolePortsBulkUpdateRequest) Execute() ([]ConsolePort, *http.Response, error) { + return r.ApiService.DcimConsolePortsBulkUpdateExecute(r) } /* -DcimConsolePortTemplatesBulkUpdate Method for DcimConsolePortTemplatesBulkUpdate +DcimConsolePortsBulkUpdate Method for DcimConsolePortsBulkUpdate -Put a list of console port template objects. +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 ApiDcimConsolePortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkUpdateRequest { - return ApiDcimConsolePortTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimConsolePortsBulkUpdate(ctx context.Context) ApiDcimConsolePortsBulkUpdateRequest { + return ApiDcimConsolePortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePortTemplate -func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimConsolePortTemplatesBulkUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { +// @return []ConsolePort +func (a *DcimAPIService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePortsBulkUpdateRequest) ([]ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consolePortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("consolePortTemplateRequest is required and must be specified") + if r.consolePortRequest == nil { + return localVarReturnValue, nil, reportError("consolePortRequest is required and must be specified") } // to determine the Content-Type header @@ -4759,7 +12939,7 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimCons localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consolePortTemplateRequest + localVarPostBody = r.consolePortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4811,59 +12991,58 @@ func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimCons return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest +type ApiDcimConsolePortsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableConsolePortRequest *WritableConsolePortRequest } -func (r ApiDcimConsolePortTemplatesCreateRequest) WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest WritableConsolePortTemplateRequest) ApiDcimConsolePortTemplatesCreateRequest { - r.writableConsolePortTemplateRequest = &writableConsolePortTemplateRequest +func (r ApiDcimConsolePortsCreateRequest) WritableConsolePortRequest(writableConsolePortRequest WritableConsolePortRequest) ApiDcimConsolePortsCreateRequest { + r.writableConsolePortRequest = &writableConsolePortRequest return r } -func (r ApiDcimConsolePortTemplatesCreateRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesCreateExecute(r) +func (r ApiDcimConsolePortsCreateRequest) Execute() (*ConsolePort, *http.Response, error) { + return r.ApiService.DcimConsolePortsCreateExecute(r) } /* -DcimConsolePortTemplatesCreate Method for DcimConsolePortTemplatesCreate +DcimConsolePortsCreate Method for DcimConsolePortsCreate -Post a list of console port template objects. +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 ApiDcimConsolePortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsCreateRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesCreate(ctx context.Context) ApiDcimConsolePortTemplatesCreateRequest { - return ApiDcimConsolePortTemplatesCreateRequest{ +func (a *DcimAPIService) DcimConsolePortsCreate(ctx context.Context) ApiDcimConsolePortsCreateRequest { + return ApiDcimConsolePortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsolePortTemplate -func (a *DcimAPIService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsolePortTemplatesCreateRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCreateRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConsolePortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableConsolePortTemplateRequest is required and must be specified") + if r.writableConsolePortRequest == nil { + return localVarReturnValue, nil, reportError("writableConsolePortRequest is required and must be specified") } // to determine the Content-Type header @@ -4884,7 +13063,7 @@ func (a *DcimAPIService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsoleP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsolePortTemplateRequest + localVarPostBody = r.writableConsolePortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4936,47 +13115,47 @@ func (a *DcimAPIService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsoleP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimConsolePortsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsolePortTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesDestroyExecute(r) +func (r ApiDcimConsolePortsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsolePortsDestroyExecute(r) } /* -DcimConsolePortTemplatesDestroy Method for DcimConsolePortTemplatesDestroy +DcimConsolePortsDestroy Method for DcimConsolePortsDestroy -Delete a console port template object. +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 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. + @return ApiDcimConsolePortsDestroyRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsolePortTemplatesDestroyRequest { - return ApiDcimConsolePortTemplatesDestroyRequest{ +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) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsolePortTemplatesDestroyRequest) (*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.DcimConsolePortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -5042,501 +13221,925 @@ func (a *DcimAPIService) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsole return localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesListRequest struct { - 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 - deviceTypeId *[]*int32 - deviceTypeIdN *[]*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 +type ApiDcimConsolePortsListRequest struct { + ctx context.Context + ApiService DcimAPI + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + 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 + markConnected *bool modifiedByRequest *string - moduleTypeId *[]*int32 - moduleTypeIdN *[]*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_ *DcimConsolePortTemplatesListTypeParameter - typeN *DcimConsolePortTemplatesListTypeParameter - updatedByRequest *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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + speed *DcimConsolePortsListSpeedParameter + tag *[]string + tagN *[]string + type_ *[]*string + typeEmpty *bool + typeIc *[]*string + typeIe *[]*string + typeIew *[]*string + typeIsw *[]*string + typeN *[]*string + typeNic *[]*string + typeNie *[]*string + typeNiew *[]*string + typeNisw *[]*string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 } -func (r ApiDcimConsolePortTemplatesListRequest) Created(created []time.Time) ApiDcimConsolePortTemplatesListRequest { +// * `A` - A * `B` - B +func (r ApiDcimConsolePortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsolePortsListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiDcimConsolePortsListRequest) CableId(cableId []*int32) ApiDcimConsolePortsListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiDcimConsolePortsListRequest) CableIdN(cableIdN []*int32) ApiDcimConsolePortsListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) Cabled(cabled bool) ApiDcimConsolePortsListRequest { + r.cabled = &cabled + return r +} + +func (r ApiDcimConsolePortsListRequest) Connected(connected bool) ApiDcimConsolePortsListRequest { + r.connected = &connected + return r +} + +func (r ApiDcimConsolePortsListRequest) Created(created []time.Time) ApiDcimConsolePortsListRequest { r.created = &created return r } -func (r ApiDcimConsolePortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsolePortsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimConsolePortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsolePortsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimConsolePortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsolePortsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimConsolePortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsolePortsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimConsolePortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsolePortsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimConsolePortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) CreatedN(createdN []time.Time) ApiDcimConsolePortsListRequest { r.createdN = &createdN return r } -func (r ApiDcimConsolePortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsolePortsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimConsolePortTemplatesListRequest) Description(description []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) Description(description []string) ApiDcimConsolePortsListRequest { r.description = &description return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsolePortsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsolePortsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsolePortsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsolePortsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsolePortsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimConsolePortTemplatesListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimConsolePortsListRequest) DescriptionN(descriptionN []string) ApiDcimConsolePortsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimConsolePortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsolePortsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimConsolePortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsolePortsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimConsolePortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsolePortsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimConsolePortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsolePortsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Device (name) +func (r ApiDcimConsolePortsListRequest) Device(device []*string) ApiDcimConsolePortsListRequest { + r.device = &device + return r +} + +// Device (name) +func (r ApiDcimConsolePortsListRequest) DeviceN(deviceN []*string) ApiDcimConsolePortsListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimConsolePortsListRequest) DeviceId(deviceId []int32) ApiDcimConsolePortsListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimConsolePortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimConsolePortsListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsolePortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsolePortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsolePortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimConsolePortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimConsolePortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimConsolePortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimConsolePortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimConsolePortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsolePortsListRequest { + r.deviceStatusN = &deviceStatusN return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsolePortTemplatesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimConsolePortsListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimConsolePortsListRequest { + r.deviceStatusNic = &deviceStatusNic return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsolePortTemplatesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimConsolePortsListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimConsolePortsListRequest { + r.deviceStatusNie = &deviceStatusNie return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsolePortTemplatesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimConsolePortsListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimConsolePortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew return r } -func (r ApiDcimConsolePortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsolePortTemplatesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimConsolePortsListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimConsolePortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw return r } -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.deviceTypeId = &deviceTypeId +// Device type (model) +func (r ApiDcimConsolePortsListRequest) DeviceType(deviceType []string) ApiDcimConsolePortsListRequest { + r.deviceType = &deviceType return r } -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN +// Device type (model) +func (r ApiDcimConsolePortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimConsolePortsListRequest { + r.deviceTypeN = &deviceTypeN return r } // Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeId = &devicetypeId +func (r ApiDcimConsolePortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimConsolePortsListRequest { + r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimConsolePortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimConsolePortsListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimConsolePortTemplatesListRequest) Id(id []int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) Id(id []int32) ApiDcimConsolePortsListRequest { r.id = &id return r } -func (r ApiDcimConsolePortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) IdEmpty(idEmpty bool) ApiDcimConsolePortsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimConsolePortTemplatesListRequest) IdGt(idGt []int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) IdGt(idGt []int32) ApiDcimConsolePortsListRequest { r.idGt = &idGt return r } -func (r ApiDcimConsolePortTemplatesListRequest) IdGte(idGte []int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) IdGte(idGte []int32) ApiDcimConsolePortsListRequest { r.idGte = &idGte return r } -func (r ApiDcimConsolePortTemplatesListRequest) IdLt(idLt []int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) IdLt(idLt []int32) ApiDcimConsolePortsListRequest { r.idLt = &idLt return r } -func (r ApiDcimConsolePortTemplatesListRequest) IdLte(idLte []int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) IdLte(idLte []int32) ApiDcimConsolePortsListRequest { r.idLte = &idLte return r } -func (r ApiDcimConsolePortTemplatesListRequest) IdN(idN []int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) IdN(idN []int32) ApiDcimConsolePortsListRequest { r.idN = &idN return r } -func (r ApiDcimConsolePortTemplatesListRequest) Label(label []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) Label(label []string) ApiDcimConsolePortsListRequest { r.label = &label return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsolePortsListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelIc(labelIc []string) ApiDcimConsolePortsListRequest { r.labelIc = &labelIc return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelIe(labelIe []string) ApiDcimConsolePortsListRequest { r.labelIe = &labelIe return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelIew(labelIew []string) ApiDcimConsolePortsListRequest { r.labelIew = &labelIew return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelIsw(labelIsw []string) ApiDcimConsolePortsListRequest { r.labelIsw = &labelIsw return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelN(labelN []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelN(labelN []string) ApiDcimConsolePortsListRequest { r.labelN = &labelN return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelNic(labelNic []string) ApiDcimConsolePortsListRequest { r.labelNic = &labelNic return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelNie(labelNie []string) ApiDcimConsolePortsListRequest { r.labelNie = &labelNie return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelNiew(labelNiew []string) ApiDcimConsolePortsListRequest { r.labelNiew = &labelNiew return r } -func (r ApiDcimConsolePortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LabelNisw(labelNisw []string) ApiDcimConsolePortsListRequest { r.labelNisw = &labelNisw return r } -func (r ApiDcimConsolePortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimConsolePortTemplatesListRequest) Limit(limit int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) Limit(limit int32) ApiDcimConsolePortsListRequest { r.limit = &limit return r } -func (r ApiDcimConsolePortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsolePortTemplatesListRequest { - r.modifiedByRequest = &modifiedByRequest +// Location (slug) +func (r ApiDcimConsolePortsListRequest) Location(location []string) ApiDcimConsolePortsListRequest { + r.location = &location return r } -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduleTypeId = &moduleTypeId +// Location (slug) +func (r ApiDcimConsolePortsListRequest) LocationN(locationN []string) ApiDcimConsolePortsListRequest { + r.locationN = &locationN return r } -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduleTypeIdN = &moduleTypeIdN +// Location (ID) +func (r ApiDcimConsolePortsListRequest) LocationId(locationId []int32) ApiDcimConsolePortsListRequest { + r.locationId = &locationId return r } -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeId = &moduletypeId +// Location (ID) +func (r ApiDcimConsolePortsListRequest) LocationIdN(locationIdN []int32) ApiDcimConsolePortsListRequest { + r.locationIdN = &locationIdN return r } -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN +func (r ApiDcimConsolePortsListRequest) MarkConnected(markConnected bool) ApiDcimConsolePortsListRequest { + r.markConnected = &markConnected return r } -func (r ApiDcimConsolePortTemplatesListRequest) Name(name []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsolePortsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// Module (ID) +func (r ApiDcimConsolePortsListRequest) ModuleId(moduleId []*int32) ApiDcimConsolePortsListRequest { + r.moduleId = &moduleId + return r +} + +// Module (ID) +func (r ApiDcimConsolePortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimConsolePortsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) Name(name []string) ApiDcimConsolePortsListRequest { r.name = &name return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameEmpty(nameEmpty bool) ApiDcimConsolePortsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameIc(nameIc []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameIc(nameIc []string) ApiDcimConsolePortsListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameIe(nameIe []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameIe(nameIe []string) ApiDcimConsolePortsListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameIew(nameIew []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameIew(nameIew []string) ApiDcimConsolePortsListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameIsw(nameIsw []string) ApiDcimConsolePortsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameN(nameN []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameN(nameN []string) ApiDcimConsolePortsListRequest { r.nameN = &nameN return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameNic(nameNic []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameNic(nameNic []string) ApiDcimConsolePortsListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameNie(nameNie []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameNie(nameNie []string) ApiDcimConsolePortsListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameNiew(nameNiew []string) ApiDcimConsolePortsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimConsolePortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) NameNisw(nameNisw []string) ApiDcimConsolePortsListRequest { r.nameNisw = &nameNisw return r } +func (r ApiDcimConsolePortsListRequest) Occupied(occupied bool) ApiDcimConsolePortsListRequest { + r.occupied = &occupied + return r +} + // The initial index from which to return the results. -func (r ApiDcimConsolePortTemplatesListRequest) Offset(offset int32) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) Offset(offset int32) ApiDcimConsolePortsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimConsolePortTemplatesListRequest) Ordering(ordering string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) Ordering(ordering string) ApiDcimConsolePortsListRequest { r.ordering = &ordering return r } // Search -func (r ApiDcimConsolePortTemplatesListRequest) Q(q string) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) Q(q string) ApiDcimConsolePortsListRequest { r.q = &q return r } -// * `Serial` - [('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` - [('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', 'Other')] -func (r ApiDcimConsolePortTemplatesListRequest) Type_(type_ DcimConsolePortTemplatesListTypeParameter) ApiDcimConsolePortTemplatesListRequest { +// Rack (name) +func (r ApiDcimConsolePortsListRequest) Rack(rack []string) ApiDcimConsolePortsListRequest { + r.rack = &rack + return r +} + +// Rack (name) +func (r ApiDcimConsolePortsListRequest) RackN(rackN []string) ApiDcimConsolePortsListRequest { + r.rackN = &rackN + return r +} + +// Rack (ID) +func (r ApiDcimConsolePortsListRequest) RackId(rackId []int32) ApiDcimConsolePortsListRequest { + r.rackId = &rackId + return r +} + +// Rack (ID) +func (r ApiDcimConsolePortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsolePortsListRequest { + r.rackIdN = &rackIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) Region(region []string) ApiDcimConsolePortsListRequest { + r.region = ®ion + return r +} + +func (r ApiDcimConsolePortsListRequest) RegionN(regionN []string) ApiDcimConsolePortsListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiDcimConsolePortsListRequest) RegionId(regionId []string) ApiDcimConsolePortsListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsolePortsListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site name (slug) +func (r ApiDcimConsolePortsListRequest) Site(site []string) ApiDcimConsolePortsListRequest { + r.site = &site + return r +} + +// Site name (slug) +func (r ApiDcimConsolePortsListRequest) SiteN(siteN []string) ApiDcimConsolePortsListRequest { + r.siteN = &siteN + return r +} + +func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsolePortsListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsolePortsListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsolePortsListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsolePortsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiDcimConsolePortsListRequest) SiteId(siteId []int32) ApiDcimConsolePortsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiDcimConsolePortsListRequest) SiteIdN(siteIdN []int32) ApiDcimConsolePortsListRequest { + r.siteIdN = &siteIdN + return r +} + +// 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 +func (r ApiDcimConsolePortsListRequest) Speed(speed DcimConsolePortsListSpeedParameter) ApiDcimConsolePortsListRequest { + r.speed = &speed + return r +} + +func (r ApiDcimConsolePortsListRequest) Tag(tag []string) ApiDcimConsolePortsListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimConsolePortsListRequest) TagN(tagN []string) ApiDcimConsolePortsListRequest { + r.tagN = &tagN + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) Type_(type_ []*string) ApiDcimConsolePortsListRequest { r.type_ = &type_ return r } -// * `Serial` - [('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` - [('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', 'Other')] -func (r ApiDcimConsolePortTemplatesListRequest) TypeN(typeN DcimConsolePortTemplatesListTypeParameter) ApiDcimConsolePortTemplatesListRequest { +func (r ApiDcimConsolePortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimConsolePortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeIc(typeIc []*string) ApiDcimConsolePortsListRequest { + r.typeIc = &typeIc + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeIe(typeIe []*string) ApiDcimConsolePortsListRequest { + r.typeIe = &typeIe + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeIew(typeIew []*string) ApiDcimConsolePortsListRequest { + r.typeIew = &typeIew + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeIsw(typeIsw []*string) ApiDcimConsolePortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeN(typeN []*string) ApiDcimConsolePortsListRequest { r.typeN = &typeN return r } -func (r ApiDcimConsolePortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsolePortTemplatesListRequest { +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeNic(typeNic []*string) ApiDcimConsolePortsListRequest { + r.typeNic = &typeNic + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeNie(typeNie []*string) ApiDcimConsolePortsListRequest { + r.typeNie = &typeNie + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeNiew(typeNiew []*string) ApiDcimConsolePortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// Physical port type +func (r ApiDcimConsolePortsListRequest) TypeNisw(typeNisw []*string) ApiDcimConsolePortsListRequest { + r.typeNisw = &typeNisw + return r +} + +func (r ApiDcimConsolePortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsolePortsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimConsolePortTemplatesListRequest) Execute() (*PaginatedConsolePortTemplateList, *http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesListExecute(r) +// Virtual Chassis +func (r ApiDcimConsolePortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimConsolePortsListRequest { + r.virtualChassis = &virtualChassis + return r +} + +// Virtual Chassis +func (r ApiDcimConsolePortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimConsolePortsListRequest { + r.virtualChassisN = &virtualChassisN + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimConsolePortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimConsolePortsListRequest { + r.virtualChassisId = &virtualChassisId + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimConsolePortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimConsolePortsListRequest { + r.virtualChassisIdN = &virtualChassisIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) Execute() (*PaginatedConsolePortList, *http.Response, error) { + return r.ApiService.DcimConsolePortsListExecute(r) } /* -DcimConsolePortTemplatesList Method for DcimConsolePortTemplatesList +DcimConsolePortsList Method for DcimConsolePortsList -Get a list of console port template objects. +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 ApiDcimConsolePortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsListRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesList(ctx context.Context) ApiDcimConsolePortTemplatesListRequest { - return ApiDcimConsolePortTemplatesListRequest{ +func (a *DcimAPIService) DcimConsolePortsList(ctx context.Context) ApiDcimConsolePortsListRequest { + return ApiDcimConsolePortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsolePortTemplateList -func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePortTemplatesListRequest) (*PaginatedConsolePortTemplateList, *http.Response, error) { +// @return PaginatedConsolePortList +func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRequest) (*PaginatedConsolePortList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsolePortTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsolePortList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + if r.cableId != nil { + t := *r.cableId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") + } + } + if r.cableIdN != nil { + t := *r.cableIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") + } + } + if r.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") + } + if r.connected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -5544,10 +14147,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -5555,10 +14158,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -5566,10 +14169,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -5577,10 +14180,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -5588,10 +14191,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -5599,170 +14202,371 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.device != nil { + t := *r.device + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.deviceStatusN != nil { + t := *r.deviceStatusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.deviceType != nil { + t := *r.deviceType 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + if r.deviceTypeN != nil { + t := *r.deviceTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + 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, "devicetype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + 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, "devicetype_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -5770,24 +14574,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -5795,10 +14599,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -5806,10 +14610,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -5817,10 +14621,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -5828,10 +14632,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.label != nil { @@ -5839,24 +14643,24 @@ 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -5864,10 +14668,10 @@ 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -5875,10 +14679,10 @@ 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -5886,10 +14690,10 @@ 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -5897,10 +14701,10 @@ 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -5908,10 +14712,10 @@ 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -5919,10 +14723,10 @@ 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -5930,10 +14734,10 @@ 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -5941,10 +14745,10 @@ 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -5952,10 +14756,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -5963,10 +14767,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -5974,10 +14778,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -5985,10 +14789,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -5996,10 +14800,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -6007,10 +14811,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -6018,60 +14822,85 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") + } } - if r.moduleTypeId != nil { - t := *r.moduleTypeId + 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, "module_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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, "module_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "moduletype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") } } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN + if r.moduleIdN != nil { + t := *r.moduleIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") } } if r.name != nil { @@ -6079,24 +14908,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -6104,10 +14933,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -6115,10 +14944,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -6126,10 +14955,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -6137,10 +14966,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -6148,10 +14977,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -6159,10 +14988,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -6170,10 +14999,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -6181,29 +15010,384 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") + } + } + if r.rackN != nil { + t := *r.rackN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") + } + } + if r.rackId != nil { + t := *r.rackId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") + } + } + if r.rackIdN != nil { + t := *r.rackIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") + } + } + if r.speed != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "speed", r.speed, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } if r.type_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") + } } if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") + t := *r.typeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") + } + } + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } + } + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } + } + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6273,56 +15457,55 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableConsolePortTemplateRequest *PatchedWritableConsolePortTemplateRequest +type ApiDcimConsolePortsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableConsolePortRequest *PatchedWritableConsolePortRequest } -func (r ApiDcimConsolePortTemplatesPartialUpdateRequest) PatchedWritableConsolePortTemplateRequest(patchedWritableConsolePortTemplateRequest PatchedWritableConsolePortTemplateRequest) ApiDcimConsolePortTemplatesPartialUpdateRequest { - r.patchedWritableConsolePortTemplateRequest = &patchedWritableConsolePortTemplateRequest +func (r ApiDcimConsolePortsPartialUpdateRequest) PatchedWritableConsolePortRequest(patchedWritableConsolePortRequest PatchedWritableConsolePortRequest) ApiDcimConsolePortsPartialUpdateRequest { + r.patchedWritableConsolePortRequest = &patchedWritableConsolePortRequest return r } -func (r ApiDcimConsolePortTemplatesPartialUpdateRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesPartialUpdateExecute(r) +func (r ApiDcimConsolePortsPartialUpdateRequest) Execute() (*ConsolePort, *http.Response, error) { + return r.ApiService.DcimConsolePortsPartialUpdateExecute(r) } /* -DcimConsolePortTemplatesPartialUpdate Method for DcimConsolePortTemplatesPartialUpdate +DcimConsolePortsPartialUpdate Method for DcimConsolePortsPartialUpdate -Patch a console port template object. +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 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. + @return ApiDcimConsolePortsPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesPartialUpdateRequest { - return ApiDcimConsolePortTemplatesPartialUpdateRequest{ +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 ConsolePortTemplate -func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimConsolePortTemplatesPartialUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePortsPartialUpdateRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -6347,7 +15530,7 @@ func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableConsolePortTemplateRequest + localVarPostBody = r.patchedWritableConsolePortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6399,50 +15582,49 @@ func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimConsolePortsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsolePortTemplatesRetrieveRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesRetrieveExecute(r) +func (r ApiDcimConsolePortsRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) { + return r.ApiService.DcimConsolePortsRetrieveExecute(r) } /* -DcimConsolePortTemplatesRetrieve Method for DcimConsolePortTemplatesRetrieve +DcimConsolePortsRetrieve Method for DcimConsolePortsRetrieve -Get a console port template object. +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 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. + @return ApiDcimConsolePortsRetrieveRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsolePortTemplatesRetrieveRequest { - return ApiDcimConsolePortTemplatesRetrieveRequest{ +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 ConsolePortTemplate -func (a *DcimAPIService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsolePortTemplatesRetrieveRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRetrieveRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -6517,63 +15699,179 @@ func (a *DcimAPIService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsol return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest +type ApiDcimConsolePortsTraceRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsolePortTemplatesUpdateRequest) WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest WritableConsolePortTemplateRequest) ApiDcimConsolePortTemplatesUpdateRequest { - r.writableConsolePortTemplateRequest = &writableConsolePortTemplateRequest +func (r ApiDcimConsolePortsTraceRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) { + return r.ApiService.DcimConsolePortsTraceRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimConsolePortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsTraceRetrieveRequest { + return ApiDcimConsolePortsTraceRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePortsTraceRetrieveRequest) (*ConsolePort, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsTraceRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/console-ports/{id}/trace/" + 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 ApiDcimConsolePortsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableConsolePortRequest *WritableConsolePortRequest +} + +func (r ApiDcimConsolePortsUpdateRequest) WritableConsolePortRequest(writableConsolePortRequest WritableConsolePortRequest) ApiDcimConsolePortsUpdateRequest { + r.writableConsolePortRequest = &writableConsolePortRequest return r } -func (r ApiDcimConsolePortTemplatesUpdateRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { - return r.ApiService.DcimConsolePortTemplatesUpdateExecute(r) +func (r ApiDcimConsolePortsUpdateRequest) Execute() (*ConsolePort, *http.Response, error) { + return r.ApiService.DcimConsolePortsUpdateExecute(r) } /* -DcimConsolePortTemplatesUpdate Method for DcimConsolePortTemplatesUpdate +DcimConsolePortsUpdate Method for DcimConsolePortsUpdate -Put a console port template object. +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 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. + @return ApiDcimConsolePortsUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesUpdateRequest { - return ApiDcimConsolePortTemplatesUpdateRequest{ +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 ConsolePortTemplate -func (a *DcimAPIService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsolePortTemplatesUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpdateRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-ports/{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.writableConsolePortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableConsolePortTemplateRequest is required and must be specified") + if r.writableConsolePortRequest == nil { + return localVarReturnValue, nil, reportError("writableConsolePortRequest is required and must be specified") } // to determine the Content-Type header @@ -6594,7 +15892,7 @@ func (a *DcimAPIService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsoleP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsolePortTemplateRequest + localVarPostBody = r.writableConsolePortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6646,56 +15944,56 @@ func (a *DcimAPIService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsoleP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - consolePortRequest *[]ConsolePortRequest +type ApiDcimConsoleServerPortTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest } -func (r ApiDcimConsolePortsBulkDestroyRequest) ConsolePortRequest(consolePortRequest []ConsolePortRequest) ApiDcimConsolePortsBulkDestroyRequest { - r.consolePortRequest = &consolePortRequest +func (r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest []ConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest { + r.consoleServerPortTemplateRequest = &consoleServerPortTemplateRequest return r } -func (r ApiDcimConsolePortsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsolePortsBulkDestroyExecute(r) +func (r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesBulkDestroyExecute(r) } /* -DcimConsolePortsBulkDestroy Method for DcimConsolePortsBulkDestroy +DcimConsoleServerPortTemplatesBulkDestroy Method for DcimConsoleServerPortTemplatesBulkDestroy -Delete a list of console port objects. +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 ApiDcimConsolePortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest */ -func (a *DcimAPIService) DcimConsolePortsBulkDestroy(ctx context.Context) ApiDcimConsolePortsBulkDestroyRequest { - return ApiDcimConsolePortsBulkDestroyRequest{ +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest { + return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePortsBulkDestroyRequest) (*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.DcimConsolePortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/" + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consolePortRequest == nil { - return nil, reportError("consolePortRequest is required and must be specified") + if r.consoleServerPortTemplateRequest == nil { + return nil, reportError("consoleServerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -6716,7 +16014,7 @@ func (a *DcimAPIService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePort localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consolePortRequest + localVarPostBody = r.consoleServerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6759,59 +16057,58 @@ func (a *DcimAPIService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePort return localVarHTTPResponse, nil } -type ApiDcimConsolePortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consolePortRequest *[]ConsolePortRequest +type ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest } -func (r ApiDcimConsolePortsBulkPartialUpdateRequest) ConsolePortRequest(consolePortRequest []ConsolePortRequest) ApiDcimConsolePortsBulkPartialUpdateRequest { - r.consolePortRequest = &consolePortRequest +func (r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest []ConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest { + r.consoleServerPortTemplateRequest = &consoleServerPortTemplateRequest return r } -func (r ApiDcimConsolePortsBulkPartialUpdateRequest) Execute() ([]ConsolePort, *http.Response, error) { - return r.ApiService.DcimConsolePortsBulkPartialUpdateExecute(r) +func (r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) Execute() ([]ConsoleServerPortTemplate, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r) } /* -DcimConsolePortsBulkPartialUpdate Method for DcimConsolePortsBulkPartialUpdate +DcimConsoleServerPortTemplatesBulkPartialUpdate Method for DcimConsoleServerPortTemplatesBulkPartialUpdate -Patch a list of console port objects. +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 ApiDcimConsolePortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortsBulkPartialUpdateRequest { - return ApiDcimConsolePortsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest { + return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePort -func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConsolePortsBulkPartialUpdateRequest) ([]ConsolePort, *http.Response, error) { +// @return []ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/" + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consolePortRequest == nil { - return localVarReturnValue, nil, reportError("consolePortRequest is required and must be specified") + if r.consoleServerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("consoleServerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -6832,7 +16129,7 @@ func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConso localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consolePortRequest + localVarPostBody = r.consoleServerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6884,59 +16181,58 @@ func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConso return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consolePortRequest *[]ConsolePortRequest +type ApiDcimConsoleServerPortTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest } -func (r ApiDcimConsolePortsBulkUpdateRequest) ConsolePortRequest(consolePortRequest []ConsolePortRequest) ApiDcimConsolePortsBulkUpdateRequest { - r.consolePortRequest = &consolePortRequest +func (r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest []ConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest { + r.consoleServerPortTemplateRequest = &consoleServerPortTemplateRequest return r } -func (r ApiDcimConsolePortsBulkUpdateRequest) Execute() ([]ConsolePort, *http.Response, error) { - return r.ApiService.DcimConsolePortsBulkUpdateExecute(r) +func (r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) Execute() ([]ConsoleServerPortTemplate, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesBulkUpdateExecute(r) } /* -DcimConsolePortsBulkUpdate Method for DcimConsolePortsBulkUpdate +DcimConsoleServerPortTemplatesBulkUpdate Method for DcimConsoleServerPortTemplatesBulkUpdate -Put a list of console port objects. +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 ApiDcimConsolePortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortsBulkUpdate(ctx context.Context) ApiDcimConsolePortsBulkUpdateRequest { - return ApiDcimConsolePortsBulkUpdateRequest{ +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest { + return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePort -func (a *DcimAPIService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePortsBulkUpdateRequest) ([]ConsolePort, *http.Response, error) { +// @return []ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/" + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consolePortRequest == nil { - return localVarReturnValue, nil, reportError("consolePortRequest is required and must be specified") + if r.consoleServerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("consoleServerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -6957,7 +16253,7 @@ func (a *DcimAPIService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePorts localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consolePortRequest + localVarPostBody = r.consoleServerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7009,59 +16305,58 @@ func (a *DcimAPIService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePorts return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableConsolePortRequest *WritableConsolePortRequest +type ApiDcimConsoleServerPortTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest } -func (r ApiDcimConsolePortsCreateRequest) WritableConsolePortRequest(writableConsolePortRequest WritableConsolePortRequest) ApiDcimConsolePortsCreateRequest { - r.writableConsolePortRequest = &writableConsolePortRequest +func (r ApiDcimConsoleServerPortTemplatesCreateRequest) WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest WritableConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesCreateRequest { + r.writableConsoleServerPortTemplateRequest = &writableConsoleServerPortTemplateRequest return r } -func (r ApiDcimConsolePortsCreateRequest) Execute() (*ConsolePort, *http.Response, error) { - return r.ApiService.DcimConsolePortsCreateExecute(r) +func (r ApiDcimConsoleServerPortTemplatesCreateRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesCreateExecute(r) } /* -DcimConsolePortsCreate Method for DcimConsolePortsCreate +DcimConsoleServerPortTemplatesCreate Method for DcimConsoleServerPortTemplatesCreate -Post a list of console port objects. +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 ApiDcimConsolePortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesCreateRequest */ -func (a *DcimAPIService) DcimConsolePortsCreate(ctx context.Context) ApiDcimConsolePortsCreateRequest { - return ApiDcimConsolePortsCreateRequest{ +func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreate(ctx context.Context) ApiDcimConsoleServerPortTemplatesCreateRequest { + return ApiDcimConsoleServerPortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsolePort -func (a *DcimAPIService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCreateRequest) (*ConsolePort, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimConsoleServerPortTemplatesCreateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/" + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConsolePortRequest == nil { - return localVarReturnValue, nil, reportError("writableConsolePortRequest is required and must be specified") + if r.writableConsoleServerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableConsoleServerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -7082,7 +16377,7 @@ func (a *DcimAPIService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsolePortRequest + localVarPostBody = r.writableConsoleServerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7134,47 +16429,47 @@ func (a *DcimAPIService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCrea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimConsoleServerPortTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsolePortsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsolePortsDestroyExecute(r) +func (r ApiDcimConsoleServerPortTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesDestroyExecute(r) } /* -DcimConsolePortsDestroy Method for DcimConsolePortsDestroy +DcimConsoleServerPortTemplatesDestroy Method for DcimConsoleServerPortTemplatesDestroy -Delete a console port object. +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 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 server port template. + @return ApiDcimConsoleServerPortTemplatesDestroyRequest */ -func (a *DcimAPIService) DcimConsolePortsDestroy(ctx context.Context, id int32) ApiDcimConsolePortsDestroyRequest { - return ApiDcimConsolePortsDestroyRequest{ +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) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDestroyRequest) (*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.DcimConsolePortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -7240,1871 +16535,1086 @@ func (a *DcimAPIService) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDes return localVarHTTPResponse, nil } -type ApiDcimConsolePortsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool +type ApiDcimConsoleServerPortTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 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 - speed *DcimConsolePortsListSpeedParameter - speedN *DcimConsolePortsListSpeedParameter - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 - virtualChassisIdN *[]int32 -} - -// * `A` - A * `B` - B -func (r ApiDcimConsolePortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsolePortsListRequest { - r.cableEnd = &cableEnd - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimConsolePortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsolePortsListRequest { - r.cableEndN = &cableEndN - return r + 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_ *DcimConsolePortTemplatesListTypeParameter + updatedByRequest *string } -// Cable (ID) -func (r ApiDcimConsolePortsListRequest) CableId(cableId []*int32) ApiDcimConsolePortsListRequest { - r.cableId = &cableId - return r -} - -// Cable (ID) -func (r ApiDcimConsolePortsListRequest) CableIdN(cableIdN []*int32) ApiDcimConsolePortsListRequest { - r.cableIdN = &cableIdN - return r -} - -func (r ApiDcimConsolePortsListRequest) Cabled(cabled bool) ApiDcimConsolePortsListRequest { - r.cabled = &cabled - return r -} - -func (r ApiDcimConsolePortsListRequest) Connected(connected bool) ApiDcimConsolePortsListRequest { - r.connected = &connected - return r -} - -func (r ApiDcimConsolePortsListRequest) Created(created []time.Time) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) Created(created []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.created = &created return r } -func (r ApiDcimConsolePortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimConsolePortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimConsolePortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimConsolePortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimConsolePortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimConsolePortsListRequest) CreatedN(createdN []time.Time) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.createdN = &createdN return r } -func (r ApiDcimConsolePortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimConsolePortsListRequest) Description(description []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) Description(description []string) ApiDcimConsoleServerPortTemplatesListRequest { r.description = &description return r } -func (r ApiDcimConsolePortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimConsolePortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimConsolePortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimConsolePortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimConsolePortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimConsolePortsListRequest) DescriptionN(descriptionN []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimConsolePortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimConsolePortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimConsolePortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimConsolePortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsoleServerPortTemplatesListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device (name) -func (r ApiDcimConsolePortsListRequest) Device(device []*string) ApiDcimConsolePortsListRequest { - r.device = &device - return r -} - -// Device (name) -func (r ApiDcimConsolePortsListRequest) DeviceN(deviceN []*string) ApiDcimConsolePortsListRequest { - r.deviceN = &deviceN - return r -} - -// Device (ID) -func (r ApiDcimConsolePortsListRequest) DeviceId(deviceId []int32) ApiDcimConsolePortsListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiDcimConsolePortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimConsolePortsListRequest { - r.deviceIdN = &deviceIdN - return r -} - -// Device type (model) -func (r ApiDcimConsolePortsListRequest) DeviceType(deviceType []string) ApiDcimConsolePortsListRequest { - r.deviceType = &deviceType - return r -} - -// Device type (model) -func (r ApiDcimConsolePortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimConsolePortsListRequest { - r.deviceTypeN = &deviceTypeN - return r -} - // Device type (ID) -func (r ApiDcimConsolePortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimConsolePortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimConsolePortsListRequest) Id(id []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) Id(id []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.id = &id return r } -func (r ApiDcimConsolePortsListRequest) IdEmpty(idEmpty bool) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimConsolePortsListRequest) IdGt(idGt []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.idGt = &idGt return r } -func (r ApiDcimConsolePortsListRequest) IdGte(idGte []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) IdGte(idGte []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.idGte = &idGte return r } -func (r ApiDcimConsolePortsListRequest) IdLt(idLt []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) IdLt(idLt []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.idLt = &idLt return r } -func (r ApiDcimConsolePortsListRequest) IdLte(idLte []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) IdLte(idLte []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.idLte = &idLte return r } -func (r ApiDcimConsolePortsListRequest) IdN(idN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) IdN(idN []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.idN = &idN return r } -func (r ApiDcimConsolePortsListRequest) Label(label []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) Label(label []string) ApiDcimConsoleServerPortTemplatesListRequest { r.label = &label return r } -func (r ApiDcimConsolePortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimConsolePortsListRequest) LabelIc(labelIc []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimConsoleServerPortTemplatesListRequest { r.labelIc = &labelIc return r } -func (r ApiDcimConsolePortsListRequest) LabelIe(labelIe []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimConsoleServerPortTemplatesListRequest { r.labelIe = &labelIe return r } -func (r ApiDcimConsolePortsListRequest) LabelIew(labelIew []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimConsoleServerPortTemplatesListRequest { r.labelIew = &labelIew return r } -func (r ApiDcimConsolePortsListRequest) LabelIsw(labelIsw []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimConsoleServerPortTemplatesListRequest { r.labelIsw = &labelIsw return r } -func (r ApiDcimConsolePortsListRequest) LabelN(labelN []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelN(labelN []string) ApiDcimConsoleServerPortTemplatesListRequest { r.labelN = &labelN return r } -func (r ApiDcimConsolePortsListRequest) LabelNic(labelNic []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimConsoleServerPortTemplatesListRequest { r.labelNic = &labelNic return r } - -func (r ApiDcimConsolePortsListRequest) LabelNie(labelNie []string) ApiDcimConsolePortsListRequest { - r.labelNie = &labelNie - return r -} - -func (r ApiDcimConsolePortsListRequest) LabelNiew(labelNiew []string) ApiDcimConsolePortsListRequest { - r.labelNiew = &labelNiew - return r -} - -func (r ApiDcimConsolePortsListRequest) LabelNisw(labelNisw []string) ApiDcimConsolePortsListRequest { - r.labelNisw = &labelNisw - return r -} - -func (r ApiDcimConsolePortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsolePortsListRequest { - r.lastUpdated = &lastUpdated - 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 -} - -func (r ApiDcimConsolePortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsolePortsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiDcimConsolePortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsolePortsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiDcimConsolePortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsolePortsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiDcimConsolePortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsolePortsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiDcimConsolePortsListRequest) Limit(limit int32) ApiDcimConsolePortsListRequest { - r.limit = &limit - return r -} - -// Location (slug) -func (r ApiDcimConsolePortsListRequest) Location(location []string) ApiDcimConsolePortsListRequest { - r.location = &location - return r -} - -// Location (slug) -func (r ApiDcimConsolePortsListRequest) LocationN(locationN []string) ApiDcimConsolePortsListRequest { - r.locationN = &locationN - return r -} - -// Location (ID) -func (r ApiDcimConsolePortsListRequest) LocationId(locationId []int32) ApiDcimConsolePortsListRequest { - r.locationId = &locationId - return r -} - -// Location (ID) -func (r ApiDcimConsolePortsListRequest) LocationIdN(locationIdN []int32) ApiDcimConsolePortsListRequest { - r.locationIdN = &locationIdN - return r -} - -func (r ApiDcimConsolePortsListRequest) MarkConnected(markConnected bool) ApiDcimConsolePortsListRequest { - r.markConnected = &markConnected - 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 - return r -} - -// Module (ID) -func (r ApiDcimConsolePortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimConsolePortsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiDcimConsolePortsListRequest) Name(name []string) ApiDcimConsolePortsListRequest { - r.name = &name - return r -} - -func (r ApiDcimConsolePortsListRequest) NameEmpty(nameEmpty bool) ApiDcimConsolePortsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiDcimConsolePortsListRequest) NameIc(nameIc []string) ApiDcimConsolePortsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiDcimConsolePortsListRequest) NameIe(nameIe []string) ApiDcimConsolePortsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiDcimConsolePortsListRequest) NameIew(nameIew []string) ApiDcimConsolePortsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiDcimConsolePortsListRequest) NameIsw(nameIsw []string) ApiDcimConsolePortsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiDcimConsolePortsListRequest) NameN(nameN []string) ApiDcimConsolePortsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiDcimConsolePortsListRequest) NameNic(nameNic []string) ApiDcimConsolePortsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiDcimConsolePortsListRequest) NameNie(nameNie []string) ApiDcimConsolePortsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiDcimConsolePortsListRequest) NameNiew(nameNiew []string) ApiDcimConsolePortsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiDcimConsolePortsListRequest) NameNisw(nameNisw []string) ApiDcimConsolePortsListRequest { - r.nameNisw = &nameNisw - return r -} - -func (r ApiDcimConsolePortsListRequest) Occupied(occupied bool) ApiDcimConsolePortsListRequest { - r.occupied = &occupied - return r -} - -// The initial index from which to return the results. -func (r ApiDcimConsolePortsListRequest) Offset(offset int32) ApiDcimConsolePortsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiDcimConsolePortsListRequest) Ordering(ordering string) ApiDcimConsolePortsListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiDcimConsolePortsListRequest) Q(q string) ApiDcimConsolePortsListRequest { - r.q = &q - return r -} - -// Rack (name) -func (r ApiDcimConsolePortsListRequest) Rack(rack []string) ApiDcimConsolePortsListRequest { - r.rack = &rack - return r -} - -// Rack (name) -func (r ApiDcimConsolePortsListRequest) RackN(rackN []string) ApiDcimConsolePortsListRequest { - r.rackN = &rackN + +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.labelNie = &labelNie return r } -// Rack (ID) -func (r ApiDcimConsolePortsListRequest) RackId(rackId []int32) ApiDcimConsolePortsListRequest { - r.rackId = &rackId +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.labelNiew = &labelNiew return r } -// Rack (ID) -func (r ApiDcimConsolePortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsolePortsListRequest { - r.rackIdN = &rackIdN +func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.labelNisw = &labelNisw return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) Region(region []int32) ApiDcimConsolePortsListRequest { - r.region = ®ion +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdated = &lastUpdated return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) RegionN(regionN []int32) ApiDcimConsolePortsListRequest { - r.regionN = ®ionN +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionId(regionId []int32) ApiDcimConsolePortsListRequest { - r.regionId = ®ionId +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsolePortsListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) Role(role []string) ApiDcimConsolePortsListRequest { - r.role = &role +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) RoleN(roleN []string) ApiDcimConsolePortsListRequest { - r.roleN = &roleN +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleId(roleId []int32) ApiDcimConsolePortsListRequest { - r.roleId = &roleId +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsolePortsListRequest { - r.roleIdN = &roleIdN +// Number of results to return per page. +func (r ApiDcimConsoleServerPortTemplatesListRequest) Limit(limit int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.limit = &limit return r } -// Site name (slug) -func (r ApiDcimConsolePortsListRequest) Site(site []string) ApiDcimConsolePortsListRequest { - r.site = &site +func (r ApiDcimConsoleServerPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Site name (slug) -func (r ApiDcimConsolePortsListRequest) SiteN(siteN []string) ApiDcimConsolePortsListRequest { - r.siteN = &siteN +// Module type (ID) +func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.moduleTypeId = &moduleTypeId return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsolePortsListRequest { - r.siteGroup = &siteGroup +// Module type (ID) +func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsolePortsListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimConsoleServerPortTemplatesListRequest) Name(name []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.name = &name return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsolePortsListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameEmpty = &nameEmpty return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsolePortsListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIc(nameIc []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameIc = &nameIc return r } -// Site (ID) -func (r ApiDcimConsolePortsListRequest) SiteId(siteId []int32) ApiDcimConsolePortsListRequest { - r.siteId = &siteId +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIe(nameIe []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameIe = &nameIe return r } -// Site (ID) -func (r ApiDcimConsolePortsListRequest) SiteIdN(siteIdN []int32) ApiDcimConsolePortsListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIew(nameIew []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameIew = &nameIew return r } -// 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 -func (r ApiDcimConsolePortsListRequest) Speed(speed DcimConsolePortsListSpeedParameter) ApiDcimConsolePortsListRequest { - r.speed = &speed +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameIsw = &nameIsw return r } -// 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 -func (r ApiDcimConsolePortsListRequest) SpeedN(speedN DcimConsolePortsListSpeedParameter) ApiDcimConsolePortsListRequest { - r.speedN = &speedN +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameN(nameN []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameN = &nameN return r } -func (r ApiDcimConsolePortsListRequest) Tag(tag []string) ApiDcimConsolePortsListRequest { - r.tag = &tag +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNic(nameNic []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameNic = &nameNic return r } -func (r ApiDcimConsolePortsListRequest) TagN(tagN []string) ApiDcimConsolePortsListRequest { - r.tagN = &tagN +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNie(nameNie []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameNie = &nameNie return r } -// Physical port type -func (r ApiDcimConsolePortsListRequest) Type_(type_ []string) ApiDcimConsolePortsListRequest { - r.type_ = &type_ +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameNiew = &nameNiew return r } -// Physical port type -func (r ApiDcimConsolePortsListRequest) TypeN(typeN []string) ApiDcimConsolePortsListRequest { - r.typeN = &typeN +func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimConsoleServerPortTemplatesListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiDcimConsolePortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsolePortsListRequest { - r.updatedByRequest = &updatedByRequest +// The initial index from which to return the results. +func (r ApiDcimConsoleServerPortTemplatesListRequest) Offset(offset int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.offset = &offset return r } -// Virtual Chassis -func (r ApiDcimConsolePortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimConsolePortsListRequest { - r.virtualChassis = &virtualChassis +// Which field to use when ordering the results. +func (r ApiDcimConsoleServerPortTemplatesListRequest) Ordering(ordering string) ApiDcimConsoleServerPortTemplatesListRequest { + r.ordering = &ordering return r } -// Virtual Chassis -func (r ApiDcimConsolePortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimConsolePortsListRequest { - r.virtualChassisN = &virtualChassisN +// Search +func (r ApiDcimConsoleServerPortTemplatesListRequest) Q(q string) ApiDcimConsoleServerPortTemplatesListRequest { + r.q = &q return r } -// Virtual Chassis (ID) -func (r ApiDcimConsolePortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimConsolePortsListRequest { - r.virtualChassisId = &virtualChassisId +// * `Serial` - [('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` - [('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', 'Other')] +func (r ApiDcimConsoleServerPortTemplatesListRequest) Type_(type_ DcimConsolePortTemplatesListTypeParameter) ApiDcimConsoleServerPortTemplatesListRequest { + r.type_ = &type_ return r } -// Virtual Chassis (ID) -func (r ApiDcimConsolePortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimConsolePortsListRequest { - r.virtualChassisIdN = &virtualChassisIdN +func (r ApiDcimConsoleServerPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimConsolePortsListRequest) Execute() (*PaginatedConsolePortList, *http.Response, error) { - return r.ApiService.DcimConsolePortsListExecute(r) +func (r ApiDcimConsoleServerPortTemplatesListRequest) Execute() (*PaginatedConsoleServerPortTemplateList, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesListExecute(r) } /* -DcimConsolePortsList Method for DcimConsolePortsList +DcimConsoleServerPortTemplatesList Method for DcimConsoleServerPortTemplatesList -Get a list of console port objects. +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 ApiDcimConsolePortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesListRequest */ -func (a *DcimAPIService) DcimConsolePortsList(ctx context.Context) ApiDcimConsolePortsListRequest { - return ApiDcimConsolePortsListRequest{ +func (a *DcimAPIService) DcimConsoleServerPortTemplatesList(ctx context.Context) ApiDcimConsoleServerPortTemplatesListRequest { + return ApiDcimConsoleServerPortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsolePortList -func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRequest) (*PaginatedConsolePortList, *http.Response, error) { +// @return PaginatedConsoleServerPortTemplateList +func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimConsoleServerPortTemplatesListRequest) (*PaginatedConsoleServerPortTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsolePortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsoleServerPortTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesList") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/console-ports/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") - } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } - if r.cableId != nil { - t := *r.cableId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") - } - } - if r.cableIdN != nil { - t := *r.cableIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") - } - } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") - } - if r.connected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "") - } - 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } - } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__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.label != nil { - t := *r.label - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") - } - } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") - } - } - if r.labelIe != nil { - t := *r.labelIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") - } - } - if r.labelIew != nil { - t := *r.labelIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") - } - } - if r.labelIsw != nil { - t := *r.labelIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") - } + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.labelN != nil { - t := *r.labelN + + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "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.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.location != nil { - t := *r.location + 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, "location", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.locationN != nil { - t := *r.locationN + 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, "location__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.locationId != nil { - t := *r.locationId + 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, "location_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.locationIdN != nil { - t := *r.locationIdN + 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, "location_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.moduleId != nil { - t := *r.moduleId + 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, "module_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.moduleIdN != nil { - t := *r.moduleIdN + 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, "module_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.name != nil { - t := *r.name + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + 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, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.label != nil { + t := *r.label 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } - if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") - } - 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, "") + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } - if r.rack != nil { - t := *r.rack + if r.labelIc != nil { + t := *r.labelIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } - if r.rackN != nil { - t := *r.rackN + if r.labelIe != nil { + t := *r.labelIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } - if r.rackId != nil { - t := *r.rackId + if r.labelIew != nil { + t := *r.labelIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + if r.labelIsw != nil { + t := *r.labelIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } - if r.region != nil { - t := *r.region + if r.labelN != nil { + t := *r.labelN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.labelNic != nil { + t := *r.labelNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + if r.labelNie != nil { + t := *r.labelNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + if r.labelNiew != nil { + t := *r.labelNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.role != nil { - t := *r.role + if r.labelNisw != nil { + t := *r.labelNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.speed != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed", r.speed, "") - } - if r.speedN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", r.speedN, "") - } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + 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, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + 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, "type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualChassis != nil { - t := *r.virtualChassis + 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, "virtual_chassis", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.virtualChassisN != nil { - t := *r.virtualChassisN + 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, "virtual_chassis__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId + 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, "virtual_chassis_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN + 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, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9173,56 +17683,55 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableConsolePortRequest *PatchedWritableConsolePortRequest +type ApiDcimConsoleServerPortTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableConsoleServerPortTemplateRequest *PatchedWritableConsoleServerPortTemplateRequest } -func (r ApiDcimConsolePortsPartialUpdateRequest) PatchedWritableConsolePortRequest(patchedWritableConsolePortRequest PatchedWritableConsolePortRequest) ApiDcimConsolePortsPartialUpdateRequest { - r.patchedWritableConsolePortRequest = &patchedWritableConsolePortRequest +func (r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) PatchedWritableConsoleServerPortTemplateRequest(patchedWritableConsoleServerPortTemplateRequest PatchedWritableConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest { + r.patchedWritableConsoleServerPortTemplateRequest = &patchedWritableConsoleServerPortTemplateRequest return r } -func (r ApiDcimConsolePortsPartialUpdateRequest) Execute() (*ConsolePort, *http.Response, error) { - return r.ApiService.DcimConsolePortsPartialUpdateExecute(r) +func (r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesPartialUpdateExecute(r) } /* -DcimConsolePortsPartialUpdate Method for DcimConsolePortsPartialUpdate +DcimConsoleServerPortTemplatesPartialUpdate Method for DcimConsoleServerPortTemplatesPartialUpdate -Patch a console port object. +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 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 server port template. + @return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortsPartialUpdateRequest { - return ApiDcimConsolePortsPartialUpdateRequest{ +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 ConsolePort -func (a *DcimAPIService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePortsPartialUpdateRequest) (*ConsolePort, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -9247,125 +17756,7 @@ func (a *DcimAPIService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableConsolePortRequest - 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 ApiDcimConsolePortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimConsolePortsRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) { - return r.ApiService.DcimConsolePortsRetrieveExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimConsolePortsRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsRetrieveRequest { - return ApiDcimConsolePortsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return ConsolePort -func (a *DcimAPIService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRetrieveRequest) (*ConsolePort, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/console-ports/{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 - } + localVarPostBody = r.patchedWritableConsoleServerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9417,50 +17808,49 @@ func (a *DcimAPIService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimConsoleServerPortTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsolePortsTraceRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) { - return r.ApiService.DcimConsolePortsTraceRetrieveExecute(r) +func (r ApiDcimConsoleServerPortTemplatesRetrieveRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesRetrieveExecute(r) } /* -DcimConsolePortsTraceRetrieve Method for DcimConsolePortsTraceRetrieve +DcimConsoleServerPortTemplatesRetrieve Method for DcimConsoleServerPortTemplatesRetrieve -Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). +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 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 server port template. + @return ApiDcimConsoleServerPortTemplatesRetrieveRequest */ -func (a *DcimAPIService) DcimConsolePortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsTraceRetrieveRequest { - return ApiDcimConsolePortsTraceRetrieveRequest{ +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 ConsolePort -func (a *DcimAPIService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePortsTraceRetrieveRequest) (*ConsolePort, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcimConsoleServerPortTemplatesRetrieveRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/{id}/trace/" + localVarPath := localBasePath + "/api/dcim/console-server-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -9535,63 +17925,62 @@ func (a *DcimAPIService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsolePortsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableConsolePortRequest *WritableConsolePortRequest +type ApiDcimConsoleServerPortTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest } -func (r ApiDcimConsolePortsUpdateRequest) WritableConsolePortRequest(writableConsolePortRequest WritableConsolePortRequest) ApiDcimConsolePortsUpdateRequest { - r.writableConsolePortRequest = &writableConsolePortRequest +func (r ApiDcimConsoleServerPortTemplatesUpdateRequest) WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest WritableConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesUpdateRequest { + r.writableConsoleServerPortTemplateRequest = &writableConsoleServerPortTemplateRequest return r } -func (r ApiDcimConsolePortsUpdateRequest) Execute() (*ConsolePort, *http.Response, error) { - return r.ApiService.DcimConsolePortsUpdateExecute(r) +func (r ApiDcimConsoleServerPortTemplatesUpdateRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortTemplatesUpdateExecute(r) } /* -DcimConsolePortsUpdate Method for DcimConsolePortsUpdate +DcimConsoleServerPortTemplatesUpdate Method for DcimConsoleServerPortTemplatesUpdate -Put a console port object. +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 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 server port template. + @return ApiDcimConsoleServerPortTemplatesUpdateRequest */ -func (a *DcimAPIService) DcimConsolePortsUpdate(ctx context.Context, id int32) ApiDcimConsolePortsUpdateRequest { - return ApiDcimConsolePortsUpdateRequest{ +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 ConsolePort -func (a *DcimAPIService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpdateRequest) (*ConsolePort, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimConsoleServerPortTemplatesUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/console-server-port-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.writableConsolePortRequest == nil { - return localVarReturnValue, nil, reportError("writableConsolePortRequest is required and must be specified") + if r.writableConsoleServerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableConsoleServerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -9612,7 +18001,7 @@ func (a *DcimAPIService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsolePortRequest + localVarPostBody = r.writableConsoleServerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9664,56 +18053,56 @@ func (a *DcimAPIService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest +type ApiDcimConsoleServerPortsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + consoleServerPortRequest *[]ConsoleServerPortRequest } -func (r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest []ConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest { - r.consoleServerPortTemplateRequest = &consoleServerPortTemplateRequest +func (r ApiDcimConsoleServerPortsBulkDestroyRequest) ConsoleServerPortRequest(consoleServerPortRequest []ConsoleServerPortRequest) ApiDcimConsoleServerPortsBulkDestroyRequest { + r.consoleServerPortRequest = &consoleServerPortRequest return r } -func (r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesBulkDestroyExecute(r) +func (r ApiDcimConsoleServerPortsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsoleServerPortsBulkDestroyExecute(r) } /* -DcimConsoleServerPortTemplatesBulkDestroy Method for DcimConsoleServerPortTemplatesBulkDestroy +DcimConsoleServerPortsBulkDestroy Method for DcimConsoleServerPortsBulkDestroy -Delete a list of console server port template objects. +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 ApiDcimConsoleServerPortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkDestroyRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest { - return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortsBulkDestroyRequest { + return ApiDcimConsoleServerPortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) (*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.DcimConsoleServerPortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consoleServerPortTemplateRequest == nil { - return nil, reportError("consoleServerPortTemplateRequest is required and must be specified") + if r.consoleServerPortRequest == nil { + return nil, reportError("consoleServerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -9734,7 +18123,7 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consoleServerPortTemplateRequest + localVarPostBody = r.consoleServerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9777,59 +18166,58 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiD return localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest +type ApiDcimConsoleServerPortsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consoleServerPortRequest *[]ConsoleServerPortRequest } -func (r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest []ConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest { - r.consoleServerPortTemplateRequest = &consoleServerPortTemplateRequest +func (r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ConsoleServerPortRequest(consoleServerPortRequest []ConsoleServerPortRequest) ApiDcimConsoleServerPortsBulkPartialUpdateRequest { + r.consoleServerPortRequest = &consoleServerPortRequest return r } -func (r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) Execute() ([]ConsoleServerPortTemplate, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) Execute() ([]ConsoleServerPort, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsBulkPartialUpdateExecute(r) } /* -DcimConsoleServerPortTemplatesBulkPartialUpdate Method for DcimConsoleServerPortTemplatesBulkPartialUpdate +DcimConsoleServerPortsBulkPartialUpdate Method for DcimConsoleServerPortsBulkPartialUpdate -Patch a list of console server port template objects. +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 ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest { - return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkPartialUpdateRequest { + return ApiDcimConsoleServerPortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPortTemplate -func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { +// @return []ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consoleServerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("consoleServerPortTemplateRequest is required and must be specified") + if r.consoleServerPortRequest == nil { + return localVarReturnValue, nil, reportError("consoleServerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -9850,7 +18238,7 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute( localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consoleServerPortTemplateRequest + localVarPostBody = r.consoleServerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9902,59 +18290,58 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest +type ApiDcimConsoleServerPortsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + consoleServerPortRequest *[]ConsoleServerPortRequest } -func (r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest []ConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest { - r.consoleServerPortTemplateRequest = &consoleServerPortTemplateRequest +func (r ApiDcimConsoleServerPortsBulkUpdateRequest) ConsoleServerPortRequest(consoleServerPortRequest []ConsoleServerPortRequest) ApiDcimConsoleServerPortsBulkUpdateRequest { + r.consoleServerPortRequest = &consoleServerPortRequest return r } -func (r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) Execute() ([]ConsoleServerPortTemplate, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesBulkUpdateExecute(r) +func (r ApiDcimConsoleServerPortsBulkUpdateRequest) Execute() ([]ConsoleServerPort, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsBulkUpdateExecute(r) } /* -DcimConsoleServerPortTemplatesBulkUpdate Method for DcimConsoleServerPortTemplatesBulkUpdate +DcimConsoleServerPortsBulkUpdate Method for DcimConsoleServerPortsBulkUpdate -Put a list of console server port template objects. +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 ApiDcimConsoleServerPortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest { - return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkUpdateRequest { + return ApiDcimConsoleServerPortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPortTemplate -func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { +// @return []ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsoleServerPortsBulkUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consoleServerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("consoleServerPortTemplateRequest is required and must be specified") + if r.consoleServerPortRequest == nil { + return localVarReturnValue, nil, reportError("consoleServerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -9975,7 +18362,7 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consoleServerPortTemplateRequest + localVarPostBody = r.consoleServerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10027,59 +18414,58 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDc return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest +type ApiDcimConsoleServerPortsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableConsoleServerPortRequest *WritableConsoleServerPortRequest } -func (r ApiDcimConsoleServerPortTemplatesCreateRequest) WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest WritableConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesCreateRequest { - r.writableConsoleServerPortTemplateRequest = &writableConsoleServerPortTemplateRequest +func (r ApiDcimConsoleServerPortsCreateRequest) WritableConsoleServerPortRequest(writableConsoleServerPortRequest WritableConsoleServerPortRequest) ApiDcimConsoleServerPortsCreateRequest { + r.writableConsoleServerPortRequest = &writableConsoleServerPortRequest return r } -func (r ApiDcimConsoleServerPortTemplatesCreateRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesCreateExecute(r) +func (r ApiDcimConsoleServerPortsCreateRequest) Execute() (*ConsoleServerPort, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsCreateExecute(r) } /* -DcimConsoleServerPortTemplatesCreate Method for DcimConsoleServerPortTemplatesCreate +DcimConsoleServerPortsCreate Method for DcimConsoleServerPortsCreate -Post a list of console server port template objects. +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 ApiDcimConsoleServerPortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsCreateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreate(ctx context.Context) ApiDcimConsoleServerPortTemplatesCreateRequest { - return ApiDcimConsoleServerPortTemplatesCreateRequest{ +func (a *DcimAPIService) DcimConsoleServerPortsCreate(ctx context.Context) ApiDcimConsoleServerPortsCreateRequest { + return ApiDcimConsoleServerPortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsoleServerPortTemplate -func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimConsoleServerPortTemplatesCreateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleServerPortsCreateRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConsoleServerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableConsoleServerPortTemplateRequest is required and must be specified") + if r.writableConsoleServerPortRequest == nil { + return localVarReturnValue, nil, reportError("writableConsoleServerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -10100,7 +18486,7 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsoleServerPortTemplateRequest + localVarPostBody = r.writableConsoleServerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10152,47 +18538,47 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimCo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimConsoleServerPortsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsoleServerPortTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesDestroyExecute(r) +func (r ApiDcimConsoleServerPortsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimConsoleServerPortsDestroyExecute(r) } /* -DcimConsoleServerPortTemplatesDestroy Method for DcimConsoleServerPortTemplatesDestroy +DcimConsoleServerPortsDestroy Method for DcimConsoleServerPortsDestroy -Delete a console server port template object. +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 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. + @return ApiDcimConsoleServerPortsDestroyRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesDestroyRequest { - return ApiDcimConsoleServerPortTemplatesDestroyRequest{ +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) DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimConsoleServerPortTemplatesDestroyRequest) (*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.DcimConsoleServerPortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -10258,501 +18644,925 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimC return localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesListRequest struct { - 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 - deviceTypeId *[]*int32 - deviceTypeIdN *[]*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 +type ApiDcimConsoleServerPortsListRequest struct { + ctx context.Context + ApiService DcimAPI + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + 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 + markConnected *bool modifiedByRequest *string - moduleTypeId *[]*int32 - moduleTypeIdN *[]*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_ *DcimConsolePortTemplatesListTypeParameter - typeN *DcimConsolePortTemplatesListTypeParameter - updatedByRequest *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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + speed *DcimConsolePortsListSpeedParameter + tag *[]string + tagN *[]string + type_ *[]*string + typeEmpty *bool + typeIc *[]*string + typeIe *[]*string + typeIew *[]*string + typeIsw *[]*string + typeN *[]*string + typeNic *[]*string + typeNie *[]*string + typeNiew *[]*string + typeNisw *[]*string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 } -func (r ApiDcimConsoleServerPortTemplatesListRequest) Created(created []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +// * `A` - A * `B` - B +func (r ApiDcimConsoleServerPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsoleServerPortsListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiDcimConsoleServerPortsListRequest) CableId(cableId []*int32) ApiDcimConsoleServerPortsListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiDcimConsoleServerPortsListRequest) CableIdN(cableIdN []*int32) ApiDcimConsoleServerPortsListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) Cabled(cabled bool) ApiDcimConsoleServerPortsListRequest { + r.cabled = &cabled + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) Connected(connected bool) ApiDcimConsoleServerPortsListRequest { + r.connected = &connected + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) Created(created []time.Time) ApiDcimConsoleServerPortsListRequest { r.created = &created return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsoleServerPortsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsoleServerPortsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsoleServerPortsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsoleServerPortsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsoleServerPortsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) CreatedN(createdN []time.Time) ApiDcimConsoleServerPortsListRequest { r.createdN = &createdN return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsoleServerPortsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) Description(description []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Description(description []string) ApiDcimConsoleServerPortsListRequest { r.description = &description return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsoleServerPortsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsoleServerPortsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsoleServerPortsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsoleServerPortsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsoleServerPortsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) DescriptionN(descriptionN []string) ApiDcimConsoleServerPortsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsoleServerPortTemplatesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimConsoleServerPortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsoleServerPortsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsoleServerPortsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsoleServerPortsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsoleServerPortsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Device (name) +func (r ApiDcimConsoleServerPortsListRequest) Device(device []*string) ApiDcimConsoleServerPortsListRequest { + r.device = &device + return r +} + +// Device (name) +func (r ApiDcimConsoleServerPortsListRequest) DeviceN(deviceN []*string) ApiDcimConsoleServerPortsListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceId(deviceId []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNic = &deviceStatusNic return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsoleServerPortTemplatesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNie = &deviceStatusNie return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsoleServerPortTemplatesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsoleServerPortTemplatesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw return r } -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.deviceTypeId = &deviceTypeId +// Device type (model) +func (r ApiDcimConsoleServerPortsListRequest) DeviceType(deviceType []string) ApiDcimConsoleServerPortsListRequest { + r.deviceType = &deviceType return r } -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN +// Device type (model) +func (r ApiDcimConsoleServerPortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceTypeN = &deviceTypeN return r } // Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId +func (r ApiDcimConsoleServerPortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimConsoleServerPortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) Id(id []int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Id(id []int32) ApiDcimConsoleServerPortsListRequest { r.id = &id return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) IdEmpty(idEmpty bool) ApiDcimConsoleServerPortsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) IdGt(idGt []int32) ApiDcimConsoleServerPortsListRequest { r.idGt = &idGt return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) IdGte(idGte []int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) IdGte(idGte []int32) ApiDcimConsoleServerPortsListRequest { r.idGte = &idGte return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) IdLt(idLt []int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) IdLt(idLt []int32) ApiDcimConsoleServerPortsListRequest { r.idLt = &idLt return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) IdLte(idLte []int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) IdLte(idLte []int32) ApiDcimConsoleServerPortsListRequest { r.idLte = &idLte return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) IdN(idN []int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) IdN(idN []int32) ApiDcimConsoleServerPortsListRequest { r.idN = &idN return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) Label(label []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Label(label []string) ApiDcimConsoleServerPortsListRequest { r.label = &label return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsoleServerPortsListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelIc(labelIc []string) ApiDcimConsoleServerPortsListRequest { r.labelIc = &labelIc return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelIe(labelIe []string) ApiDcimConsoleServerPortsListRequest { r.labelIe = &labelIe return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelIew(labelIew []string) ApiDcimConsoleServerPortsListRequest { r.labelIew = &labelIew return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelIsw(labelIsw []string) ApiDcimConsoleServerPortsListRequest { r.labelIsw = &labelIsw return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelN(labelN []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelN(labelN []string) ApiDcimConsoleServerPortsListRequest { r.labelN = &labelN return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelNic(labelNic []string) ApiDcimConsoleServerPortsListRequest { r.labelNic = &labelNic return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelNie(labelNie []string) ApiDcimConsoleServerPortsListRequest { r.labelNie = &labelNie return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelNiew(labelNiew []string) ApiDcimConsoleServerPortsListRequest { r.labelNiew = &labelNiew return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LabelNisw(labelNisw []string) ApiDcimConsoleServerPortsListRequest { r.labelNisw = &labelNisw return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimConsoleServerPortTemplatesListRequest) Limit(limit int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Limit(limit int32) ApiDcimConsoleServerPortsListRequest { r.limit = &limit return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { - r.modifiedByRequest = &modifiedByRequest +// Location (slug) +func (r ApiDcimConsoleServerPortsListRequest) Location(location []string) ApiDcimConsoleServerPortsListRequest { + r.location = &location return r } -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduleTypeId = &moduleTypeId +// Location (slug) +func (r ApiDcimConsoleServerPortsListRequest) LocationN(locationN []string) ApiDcimConsoleServerPortsListRequest { + r.locationN = &locationN return r } -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduleTypeIdN = &moduleTypeIdN +// Location (ID) +func (r ApiDcimConsoleServerPortsListRequest) LocationId(locationId []int32) ApiDcimConsoleServerPortsListRequest { + r.locationId = &locationId return r } -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId +// Location (ID) +func (r ApiDcimConsoleServerPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.locationIdN = &locationIdN return r } -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN +func (r ApiDcimConsoleServerPortsListRequest) MarkConnected(markConnected bool) ApiDcimConsoleServerPortsListRequest { + r.markConnected = &markConnected return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) Name(name []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsoleServerPortsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// Module (ID) +func (r ApiDcimConsoleServerPortsListRequest) ModuleId(moduleId []*int32) ApiDcimConsoleServerPortsListRequest { + r.moduleId = &moduleId + return r +} + +// Module (ID) +func (r ApiDcimConsoleServerPortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimConsoleServerPortsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) Name(name []string) ApiDcimConsoleServerPortsListRequest { r.name = &name return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameEmpty(nameEmpty bool) ApiDcimConsoleServerPortsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIc(nameIc []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameIc(nameIc []string) ApiDcimConsoleServerPortsListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIe(nameIe []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameIe(nameIe []string) ApiDcimConsoleServerPortsListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIew(nameIew []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameIew(nameIew []string) ApiDcimConsoleServerPortsListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameIsw(nameIsw []string) ApiDcimConsoleServerPortsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameN(nameN []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameN(nameN []string) ApiDcimConsoleServerPortsListRequest { r.nameN = &nameN return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNic(nameNic []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameNic(nameNic []string) ApiDcimConsoleServerPortsListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNie(nameNie []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameNie(nameNie []string) ApiDcimConsoleServerPortsListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameNiew(nameNiew []string) ApiDcimConsoleServerPortsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) NameNisw(nameNisw []string) ApiDcimConsoleServerPortsListRequest { r.nameNisw = &nameNisw return r } +func (r ApiDcimConsoleServerPortsListRequest) Occupied(occupied bool) ApiDcimConsoleServerPortsListRequest { + r.occupied = &occupied + return r +} + // The initial index from which to return the results. -func (r ApiDcimConsoleServerPortTemplatesListRequest) Offset(offset int32) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Offset(offset int32) ApiDcimConsoleServerPortsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimConsoleServerPortTemplatesListRequest) Ordering(ordering string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Ordering(ordering string) ApiDcimConsoleServerPortsListRequest { r.ordering = &ordering return r } // Search -func (r ApiDcimConsoleServerPortTemplatesListRequest) Q(q string) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Q(q string) ApiDcimConsoleServerPortsListRequest { r.q = &q return r } -// * `Serial` - [('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` - [('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', 'Other')] -func (r ApiDcimConsoleServerPortTemplatesListRequest) Type_(type_ DcimConsolePortTemplatesListTypeParameter) ApiDcimConsoleServerPortTemplatesListRequest { +// Rack (name) +func (r ApiDcimConsoleServerPortsListRequest) Rack(rack []string) ApiDcimConsoleServerPortsListRequest { + r.rack = &rack + return r +} + +// Rack (name) +func (r ApiDcimConsoleServerPortsListRequest) RackN(rackN []string) ApiDcimConsoleServerPortsListRequest { + r.rackN = &rackN + return r +} + +// Rack (ID) +func (r ApiDcimConsoleServerPortsListRequest) RackId(rackId []int32) ApiDcimConsoleServerPortsListRequest { + r.rackId = &rackId + return r +} + +// Rack (ID) +func (r ApiDcimConsoleServerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.rackIdN = &rackIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) Region(region []string) ApiDcimConsoleServerPortsListRequest { + r.region = ®ion + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []string) ApiDcimConsoleServerPortsListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []string) ApiDcimConsoleServerPortsListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsoleServerPortsListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site name (slug) +func (r ApiDcimConsoleServerPortsListRequest) Site(site []string) ApiDcimConsoleServerPortsListRequest { + r.site = &site + return r +} + +// Site name (slug) +func (r ApiDcimConsoleServerPortsListRequest) SiteN(siteN []string) ApiDcimConsoleServerPortsListRequest { + r.siteN = &siteN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsoleServerPortsListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsoleServerPortsListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsoleServerPortsListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsoleServerPortsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiDcimConsoleServerPortsListRequest) SiteId(siteId []int32) ApiDcimConsoleServerPortsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiDcimConsoleServerPortsListRequest) SiteIdN(siteIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.siteIdN = &siteIdN + return r +} + +// 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 +func (r ApiDcimConsoleServerPortsListRequest) Speed(speed DcimConsolePortsListSpeedParameter) ApiDcimConsoleServerPortsListRequest { + r.speed = &speed + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) Tag(tag []string) ApiDcimConsoleServerPortsListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) TagN(tagN []string) ApiDcimConsoleServerPortsListRequest { + r.tagN = &tagN + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) Type_(type_ []*string) ApiDcimConsoleServerPortsListRequest { r.type_ = &type_ return r } -// * `Serial` - [('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` - [('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', 'Other')] -func (r ApiDcimConsoleServerPortTemplatesListRequest) TypeN(typeN DcimConsolePortTemplatesListTypeParameter) ApiDcimConsoleServerPortTemplatesListRequest { +func (r ApiDcimConsoleServerPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimConsoleServerPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeIc(typeIc []*string) ApiDcimConsoleServerPortsListRequest { + r.typeIc = &typeIc + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeIe(typeIe []*string) ApiDcimConsoleServerPortsListRequest { + r.typeIe = &typeIe + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeIew(typeIew []*string) ApiDcimConsoleServerPortsListRequest { + r.typeIew = &typeIew + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeIsw(typeIsw []*string) ApiDcimConsoleServerPortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeN(typeN []*string) ApiDcimConsoleServerPortsListRequest { r.typeN = &typeN return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeNic(typeNic []*string) ApiDcimConsoleServerPortsListRequest { + r.typeNic = &typeNic + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeNie(typeNie []*string) ApiDcimConsoleServerPortsListRequest { + r.typeNie = &typeNie + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeNiew(typeNiew []*string) ApiDcimConsoleServerPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// Physical port type +func (r ApiDcimConsoleServerPortsListRequest) TypeNisw(typeNisw []*string) ApiDcimConsoleServerPortsListRequest { + r.typeNisw = &typeNisw + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsoleServerPortsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimConsoleServerPortTemplatesListRequest) Execute() (*PaginatedConsoleServerPortTemplateList, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesListExecute(r) +// Virtual Chassis +func (r ApiDcimConsoleServerPortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimConsoleServerPortsListRequest { + r.virtualChassis = &virtualChassis + return r +} + +// Virtual Chassis +func (r ApiDcimConsoleServerPortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimConsoleServerPortsListRequest { + r.virtualChassisN = &virtualChassisN + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimConsoleServerPortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimConsoleServerPortsListRequest { + r.virtualChassisId = &virtualChassisId + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimConsoleServerPortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.virtualChassisIdN = &virtualChassisIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) Execute() (*PaginatedConsoleServerPortList, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsListExecute(r) } /* -DcimConsoleServerPortTemplatesList Method for DcimConsoleServerPortTemplatesList +DcimConsoleServerPortsList Method for DcimConsoleServerPortsList -Get a list of console server port template objects. +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 ApiDcimConsoleServerPortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsListRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesList(ctx context.Context) ApiDcimConsoleServerPortTemplatesListRequest { - return ApiDcimConsoleServerPortTemplatesListRequest{ +func (a *DcimAPIService) DcimConsoleServerPortsList(ctx context.Context) ApiDcimConsoleServerPortsListRequest { + return ApiDcimConsoleServerPortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsoleServerPortTemplateList -func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimConsoleServerPortTemplatesListRequest) (*PaginatedConsoleServerPortTemplateList, *http.Response, error) { +// @return PaginatedConsoleServerPortList +func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServerPortsListRequest) (*PaginatedConsoleServerPortList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsoleServerPortTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsoleServerPortList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + if r.cableId != nil { + t := *r.cableId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") + } + } + if r.cableIdN != nil { + t := *r.cableIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") + } + } + if r.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") + } + if r.connected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -10760,10 +19570,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -10771,10 +19581,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -10782,10 +19592,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -10793,10 +19603,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -10804,10 +19614,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -10815,170 +19625,371 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.device != nil { + t := *r.device + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") + } } - if r.description != nil { - t := *r.description + if r.deviceStatus != nil { + t := *r.deviceStatus 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.deviceStatusN != nil { + t := *r.deviceStatusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.deviceType != nil { + t := *r.deviceType 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + if r.deviceTypeN != nil { + t := *r.deviceTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + 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, "devicetype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + 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, "devicetype_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -10986,24 +19997,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -11011,10 +20022,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -11022,10 +20033,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -11033,10 +20044,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -11044,10 +20055,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.label != nil { @@ -11055,24 +20066,24 @@ 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -11080,10 +20091,10 @@ 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -11091,10 +20102,10 @@ 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -11102,10 +20113,10 @@ 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -11113,10 +20124,10 @@ 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -11124,10 +20135,10 @@ 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -11135,10 +20146,10 @@ 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -11146,10 +20157,10 @@ 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -11157,10 +20168,10 @@ 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -11168,10 +20179,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -11179,10 +20190,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -11190,10 +20201,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -11201,10 +20212,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -11212,10 +20223,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -11223,10 +20234,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -11234,60 +20245,85 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") + } } - if r.moduleTypeId != nil { - t := *r.moduleTypeId + 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, "module_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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, "module_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "moduletype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") } } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN + if r.moduleIdN != nil { + t := *r.moduleIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") } } if r.name != nil { @@ -11295,24 +20331,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -11320,10 +20356,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -11331,10 +20367,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -11342,10 +20378,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -11353,10 +20389,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -11364,10 +20400,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -11375,10 +20411,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -11386,10 +20422,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -11397,29 +20433,384 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") + } + } + if r.rackN != nil { + t := *r.rackN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") + } + } + if r.rackId != nil { + t := *r.rackId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") + } + } + if r.rackIdN != nil { + t := *r.rackIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") + } + } + if r.speed != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "speed", r.speed, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } if r.type_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") + } } if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") + t := *r.typeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") + } + } + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } + } + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } + } + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11489,56 +20880,55 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableConsoleServerPortTemplateRequest *PatchedWritableConsoleServerPortTemplateRequest +type ApiDcimConsoleServerPortsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableConsoleServerPortRequest *PatchedWritableConsoleServerPortRequest } -func (r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) PatchedWritableConsoleServerPortTemplateRequest(patchedWritableConsoleServerPortTemplateRequest PatchedWritableConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest { - r.patchedWritableConsoleServerPortTemplateRequest = &patchedWritableConsoleServerPortTemplateRequest +func (r ApiDcimConsoleServerPortsPartialUpdateRequest) PatchedWritableConsoleServerPortRequest(patchedWritableConsoleServerPortRequest PatchedWritableConsoleServerPortRequest) ApiDcimConsoleServerPortsPartialUpdateRequest { + r.patchedWritableConsoleServerPortRequest = &patchedWritableConsoleServerPortRequest return r } -func (r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesPartialUpdateExecute(r) +func (r ApiDcimConsoleServerPortsPartialUpdateRequest) Execute() (*ConsoleServerPort, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsPartialUpdateExecute(r) } /* -DcimConsoleServerPortTemplatesPartialUpdate Method for DcimConsoleServerPortTemplatesPartialUpdate +DcimConsoleServerPortsPartialUpdate Method for DcimConsoleServerPortsPartialUpdate -Patch a console server port template object. +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 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. + @return ApiDcimConsoleServerPortsPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest { - return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest{ +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 ConsoleServerPortTemplate -func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimConsoleServerPortsPartialUpdateRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -11563,7 +20953,7 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableConsoleServerPortTemplateRequest + localVarPostBody = r.patchedWritableConsoleServerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11615,50 +21005,49 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimConsoleServerPortsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsoleServerPortTemplatesRetrieveRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesRetrieveExecute(r) +func (r ApiDcimConsoleServerPortsRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsRetrieveExecute(r) } /* -DcimConsoleServerPortTemplatesRetrieve Method for DcimConsoleServerPortTemplatesRetrieve +DcimConsoleServerPortsRetrieve Method for DcimConsoleServerPortsRetrieve -Get a console server port template object. +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 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. + @return ApiDcimConsoleServerPortsRetrieveRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesRetrieveRequest { - return ApiDcimConsoleServerPortTemplatesRetrieveRequest{ +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 ConsoleServerPortTemplate -func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcimConsoleServerPortTemplatesRetrieveRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleServerPortsRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -11733,63 +21122,179 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcim return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest +type ApiDcimConsoleServerPortsTraceRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsoleServerPortTemplatesUpdateRequest) WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest WritableConsoleServerPortTemplateRequest) ApiDcimConsoleServerPortTemplatesUpdateRequest { - r.writableConsoleServerPortTemplateRequest = &writableConsoleServerPortTemplateRequest +func (r ApiDcimConsoleServerPortsTraceRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsTraceRetrieveExecute(r) +} + +/* +DcimConsoleServerPortsTraceRetrieve Method for DcimConsoleServerPortsTraceRetrieve + +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 +*/ +func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsTraceRetrieveRequest { + return ApiDcimConsoleServerPortsTraceRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimConsoleServerPortsTraceRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsTraceRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/trace/" + 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 ApiDcimConsoleServerPortsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableConsoleServerPortRequest *WritableConsoleServerPortRequest +} + +func (r ApiDcimConsoleServerPortsUpdateRequest) WritableConsoleServerPortRequest(writableConsoleServerPortRequest WritableConsoleServerPortRequest) ApiDcimConsoleServerPortsUpdateRequest { + r.writableConsoleServerPortRequest = &writableConsoleServerPortRequest return r } -func (r ApiDcimConsoleServerPortTemplatesUpdateRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortTemplatesUpdateExecute(r) +func (r ApiDcimConsoleServerPortsUpdateRequest) Execute() (*ConsoleServerPort, *http.Response, error) { + return r.ApiService.DcimConsoleServerPortsUpdateExecute(r) } /* -DcimConsoleServerPortTemplatesUpdate Method for DcimConsoleServerPortTemplatesUpdate +DcimConsoleServerPortsUpdate Method for DcimConsoleServerPortsUpdate -Put a console server port template object. +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 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. + @return ApiDcimConsoleServerPortsUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesUpdateRequest { - return ApiDcimConsoleServerPortTemplatesUpdateRequest{ +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 ConsoleServerPortTemplate -func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimConsoleServerPortTemplatesUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleServerPortsUpdateRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/console-server-ports/{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.writableConsoleServerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableConsoleServerPortTemplateRequest is required and must be specified") + if r.writableConsoleServerPortRequest == nil { + return localVarReturnValue, nil, reportError("writableConsoleServerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -11810,7 +21315,7 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsoleServerPortTemplateRequest + localVarPostBody = r.writableConsoleServerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11862,56 +21367,56 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimCo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - consoleServerPortRequest *[]ConsoleServerPortRequest +type ApiDcimDeviceBayTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayTemplateRequest *[]DeviceBayTemplateRequest } -func (r ApiDcimConsoleServerPortsBulkDestroyRequest) ConsoleServerPortRequest(consoleServerPortRequest []ConsoleServerPortRequest) ApiDcimConsoleServerPortsBulkDestroyRequest { - r.consoleServerPortRequest = &consoleServerPortRequest +func (r ApiDcimDeviceBayTemplatesBulkDestroyRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest []DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesBulkDestroyRequest { + r.deviceBayTemplateRequest = &deviceBayTemplateRequest return r } -func (r ApiDcimConsoleServerPortsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsoleServerPortsBulkDestroyExecute(r) +func (r ApiDcimDeviceBayTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesBulkDestroyExecute(r) } /* -DcimConsoleServerPortsBulkDestroy Method for DcimConsoleServerPortsBulkDestroy +DcimDeviceBayTemplatesBulkDestroy Method for DcimDeviceBayTemplatesBulkDestroy -Delete a list of console server port objects. +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 ApiDcimConsoleServerPortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkDestroyRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortsBulkDestroyRequest { - return ApiDcimConsoleServerPortsBulkDestroyRequest{ +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroy(ctx context.Context) ApiDcimDeviceBayTemplatesBulkDestroyRequest { + return ApiDcimDeviceBayTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConsoleServerPortsBulkDestroyRequest) (*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.DcimConsoleServerPortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/" + localVarPath := localBasePath + "/api/dcim/device-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consoleServerPortRequest == nil { - return nil, reportError("consoleServerPortRequest is required and must be specified") + if r.deviceBayTemplateRequest == nil { + return nil, reportError("deviceBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -11932,7 +21437,7 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConso localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consoleServerPortRequest + localVarPostBody = r.deviceBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11975,59 +21480,58 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConso return localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consoleServerPortRequest *[]ConsoleServerPortRequest +type ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayTemplateRequest *[]DeviceBayTemplateRequest } -func (r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ConsoleServerPortRequest(consoleServerPortRequest []ConsoleServerPortRequest) ApiDcimConsoleServerPortsBulkPartialUpdateRequest { - r.consoleServerPortRequest = &consoleServerPortRequest +func (r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest []DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest { + r.deviceBayTemplateRequest = &deviceBayTemplateRequest return r } -func (r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) Execute() ([]ConsoleServerPort, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsBulkPartialUpdateExecute(r) +func (r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) Execute() ([]DeviceBayTemplate, *http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesBulkPartialUpdateExecute(r) } /* -DcimConsoleServerPortsBulkPartialUpdate Method for DcimConsoleServerPortsBulkPartialUpdate +DcimDeviceBayTemplatesBulkPartialUpdate Method for DcimDeviceBayTemplatesBulkPartialUpdate -Patch a list of console server port objects. +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 ApiDcimConsoleServerPortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkPartialUpdateRequest { - return ApiDcimConsoleServerPortsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest { + return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPort -func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { +// @return []DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/" + localVarPath := localBasePath + "/api/dcim/device-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consoleServerPortRequest == nil { - return localVarReturnValue, nil, reportError("consoleServerPortRequest is required and must be specified") + if r.deviceBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -12048,7 +21552,7 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consoleServerPortRequest + localVarPostBody = r.deviceBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12100,59 +21604,58 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDci return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - consoleServerPortRequest *[]ConsoleServerPortRequest +type ApiDcimDeviceBayTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayTemplateRequest *[]DeviceBayTemplateRequest } -func (r ApiDcimConsoleServerPortsBulkUpdateRequest) ConsoleServerPortRequest(consoleServerPortRequest []ConsoleServerPortRequest) ApiDcimConsoleServerPortsBulkUpdateRequest { - r.consoleServerPortRequest = &consoleServerPortRequest +func (r ApiDcimDeviceBayTemplatesBulkUpdateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest []DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesBulkUpdateRequest { + r.deviceBayTemplateRequest = &deviceBayTemplateRequest return r } -func (r ApiDcimConsoleServerPortsBulkUpdateRequest) Execute() ([]ConsoleServerPort, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsBulkUpdateExecute(r) +func (r ApiDcimDeviceBayTemplatesBulkUpdateRequest) Execute() ([]DeviceBayTemplate, *http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesBulkUpdateExecute(r) } /* -DcimConsoleServerPortsBulkUpdate Method for DcimConsoleServerPortsBulkUpdate +DcimDeviceBayTemplatesBulkUpdate Method for DcimDeviceBayTemplatesBulkUpdate -Put a list of console server port objects. +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 ApiDcimConsoleServerPortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkUpdateRequest { - return ApiDcimConsoleServerPortsBulkUpdateRequest{ +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkUpdateRequest { + return ApiDcimDeviceBayTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPort -func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsoleServerPortsBulkUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { +// @return []DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDeviceBayTemplatesBulkUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/" + localVarPath := localBasePath + "/api/dcim/device-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consoleServerPortRequest == nil { - return localVarReturnValue, nil, reportError("consoleServerPortRequest is required and must be specified") + if r.deviceBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -12173,7 +21676,7 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsol localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.consoleServerPortRequest + localVarPostBody = r.deviceBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12225,59 +21728,58 @@ func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsol return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableConsoleServerPortRequest *WritableConsoleServerPortRequest +type ApiDcimDeviceBayTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayTemplateRequest *DeviceBayTemplateRequest } -func (r ApiDcimConsoleServerPortsCreateRequest) WritableConsoleServerPortRequest(writableConsoleServerPortRequest WritableConsoleServerPortRequest) ApiDcimConsoleServerPortsCreateRequest { - r.writableConsoleServerPortRequest = &writableConsoleServerPortRequest +func (r ApiDcimDeviceBayTemplatesCreateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesCreateRequest { + r.deviceBayTemplateRequest = &deviceBayTemplateRequest return r } -func (r ApiDcimConsoleServerPortsCreateRequest) Execute() (*ConsoleServerPort, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsCreateExecute(r) +func (r ApiDcimDeviceBayTemplatesCreateRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesCreateExecute(r) } /* -DcimConsoleServerPortsCreate Method for DcimConsoleServerPortsCreate +DcimDeviceBayTemplatesCreate Method for DcimDeviceBayTemplatesCreate -Post a list of console server port objects. +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 ApiDcimConsoleServerPortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesCreateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsCreate(ctx context.Context) ApiDcimConsoleServerPortsCreateRequest { - return ApiDcimConsoleServerPortsCreateRequest{ +func (a *DcimAPIService) DcimDeviceBayTemplatesCreate(ctx context.Context) ApiDcimDeviceBayTemplatesCreateRequest { + return ApiDcimDeviceBayTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsoleServerPort -func (a *DcimAPIService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleServerPortsCreateRequest) (*ConsoleServerPort, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayTemplatesCreateRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/" + localVarPath := localBasePath + "/api/dcim/device-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConsoleServerPortRequest == nil { - return localVarReturnValue, nil, reportError("writableConsoleServerPortRequest is required and must be specified") + if r.deviceBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -12298,7 +21800,7 @@ func (a *DcimAPIService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleSer localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsoleServerPortRequest + localVarPostBody = r.deviceBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12350,47 +21852,47 @@ func (a *DcimAPIService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleSer return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDeviceBayTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsoleServerPortsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimConsoleServerPortsDestroyExecute(r) +func (r ApiDcimDeviceBayTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesDestroyExecute(r) } /* -DcimConsoleServerPortsDestroy Method for DcimConsoleServerPortsDestroy +DcimDeviceBayTemplatesDestroy Method for DcimDeviceBayTemplatesDestroy -Delete a console server port object. +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 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 device bay template. + @return ApiDcimDeviceBayTemplatesDestroyRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortsDestroyRequest { - return ApiDcimConsoleServerPortsDestroyRequest{ +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) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleServerPortsDestroyRequest) (*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.DcimConsoleServerPortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/device-bay-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -12456,1871 +21958,1040 @@ func (a *DcimAPIService) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleSe return localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool +type ApiDcimDeviceBayTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 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 - speed *DcimConsolePortsListSpeedParameter - speedN *DcimConsolePortsListSpeedParameter - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 - virtualChassisIdN *[]int32 -} - -// * `A` - A * `B` - B -func (r ApiDcimConsoleServerPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsoleServerPortsListRequest { - r.cableEnd = &cableEnd - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimConsoleServerPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsoleServerPortsListRequest { - r.cableEndN = &cableEndN - return r -} - -// Cable (ID) -func (r ApiDcimConsoleServerPortsListRequest) CableId(cableId []*int32) ApiDcimConsoleServerPortsListRequest { - r.cableId = &cableId - return r -} - -// Cable (ID) -func (r ApiDcimConsoleServerPortsListRequest) CableIdN(cableIdN []*int32) ApiDcimConsoleServerPortsListRequest { - r.cableIdN = &cableIdN - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) Cabled(cabled bool) ApiDcimConsoleServerPortsListRequest { - r.cabled = &cabled - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) Connected(connected bool) ApiDcimConsoleServerPortsListRequest { - r.connected = &connected - return r + 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 } -func (r ApiDcimConsoleServerPortsListRequest) Created(created []time.Time) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) Created(created []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.created = &created return r } -func (r ApiDcimConsoleServerPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimConsoleServerPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimConsoleServerPortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimConsoleServerPortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimConsoleServerPortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimConsoleServerPortsListRequest) CreatedN(createdN []time.Time) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.createdN = &createdN return r } -func (r ApiDcimConsoleServerPortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceBayTemplatesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimConsoleServerPortsListRequest) Description(description []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) Description(description []string) ApiDcimDeviceBayTemplatesListRequest { r.description = &description return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceBayTemplatesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionN(descriptionN []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimConsoleServerPortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceBayTemplatesListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device (name) -func (r ApiDcimConsoleServerPortsListRequest) Device(device []*string) ApiDcimConsoleServerPortsListRequest { - r.device = &device - return r -} - -// Device (name) -func (r ApiDcimConsoleServerPortsListRequest) DeviceN(deviceN []*string) ApiDcimConsoleServerPortsListRequest { - r.deviceN = &deviceN - return r -} - -// Device (ID) -func (r ApiDcimConsoleServerPortsListRequest) DeviceId(deviceId []int32) ApiDcimConsoleServerPortsListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiDcimConsoleServerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.deviceIdN = &deviceIdN - return r -} - -// Device type (model) -func (r ApiDcimConsoleServerPortsListRequest) DeviceType(deviceType []string) ApiDcimConsoleServerPortsListRequest { - r.deviceType = &deviceType - return r -} - -// Device type (model) -func (r ApiDcimConsoleServerPortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimConsoleServerPortsListRequest { - r.deviceTypeN = &deviceTypeN - return r -} - // Device type (ID) -func (r ApiDcimConsoleServerPortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimDeviceBayTemplatesListRequest { r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimConsoleServerPortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest { r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimConsoleServerPortsListRequest) Id(id []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) Id(id []int32) ApiDcimDeviceBayTemplatesListRequest { r.id = &id return r } -func (r ApiDcimConsoleServerPortsListRequest) IdEmpty(idEmpty bool) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceBayTemplatesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimConsoleServerPortsListRequest) IdGt(idGt []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) IdGt(idGt []int32) ApiDcimDeviceBayTemplatesListRequest { r.idGt = &idGt return r } -func (r ApiDcimConsoleServerPortsListRequest) IdGte(idGte []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) IdGte(idGte []int32) ApiDcimDeviceBayTemplatesListRequest { r.idGte = &idGte return r } -func (r ApiDcimConsoleServerPortsListRequest) IdLt(idLt []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) IdLt(idLt []int32) ApiDcimDeviceBayTemplatesListRequest { r.idLt = &idLt return r } -func (r ApiDcimConsoleServerPortsListRequest) IdLte(idLte []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) IdLte(idLte []int32) ApiDcimDeviceBayTemplatesListRequest { r.idLte = &idLte return r } -func (r ApiDcimConsoleServerPortsListRequest) IdN(idN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) IdN(idN []int32) ApiDcimDeviceBayTemplatesListRequest { r.idN = &idN return r } -func (r ApiDcimConsoleServerPortsListRequest) Label(label []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) Label(label []string) ApiDcimDeviceBayTemplatesListRequest { r.label = &label return r } -func (r ApiDcimConsoleServerPortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimDeviceBayTemplatesListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimConsoleServerPortsListRequest) LabelIc(labelIc []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimDeviceBayTemplatesListRequest) LabelIc(labelIc []string) ApiDcimDeviceBayTemplatesListRequest { r.labelIc = &labelIc return r } -func (r ApiDcimConsoleServerPortsListRequest) LabelIe(labelIe []string) ApiDcimConsoleServerPortsListRequest { - r.labelIe = &labelIe - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LabelIew(labelIew []string) ApiDcimConsoleServerPortsListRequest { - r.labelIew = &labelIew - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LabelIsw(labelIsw []string) ApiDcimConsoleServerPortsListRequest { - r.labelIsw = &labelIsw - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LabelN(labelN []string) ApiDcimConsoleServerPortsListRequest { - r.labelN = &labelN - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LabelNic(labelNic []string) ApiDcimConsoleServerPortsListRequest { - r.labelNic = &labelNic - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LabelNie(labelNie []string) ApiDcimConsoleServerPortsListRequest { - r.labelNie = &labelNie - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LabelNiew(labelNiew []string) ApiDcimConsoleServerPortsListRequest { - r.labelNiew = &labelNiew - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LabelNisw(labelNisw []string) ApiDcimConsoleServerPortsListRequest { - r.labelNisw = &labelNisw - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimConsoleServerPortsListRequest { - r.lastUpdated = &lastUpdated - 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 -} - -func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimConsoleServerPortsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimConsoleServerPortsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimConsoleServerPortsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimConsoleServerPortsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiDcimConsoleServerPortsListRequest) Limit(limit int32) ApiDcimConsoleServerPortsListRequest { - r.limit = &limit - return r -} - -// Location (slug) -func (r ApiDcimConsoleServerPortsListRequest) Location(location []string) ApiDcimConsoleServerPortsListRequest { - r.location = &location - return r -} - -// Location (slug) -func (r ApiDcimConsoleServerPortsListRequest) LocationN(locationN []string) ApiDcimConsoleServerPortsListRequest { - r.locationN = &locationN - return r -} - -// Location (ID) -func (r ApiDcimConsoleServerPortsListRequest) LocationId(locationId []int32) ApiDcimConsoleServerPortsListRequest { - r.locationId = &locationId - return r -} - -// Location (ID) -func (r ApiDcimConsoleServerPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.locationIdN = &locationIdN - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) MarkConnected(markConnected bool) ApiDcimConsoleServerPortsListRequest { - r.markConnected = &markConnected - 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 - return r -} - -// Module (ID) -func (r ApiDcimConsoleServerPortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimConsoleServerPortsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) Name(name []string) ApiDcimConsoleServerPortsListRequest { - r.name = &name - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameEmpty(nameEmpty bool) ApiDcimConsoleServerPortsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameIc(nameIc []string) ApiDcimConsoleServerPortsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameIe(nameIe []string) ApiDcimConsoleServerPortsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameIew(nameIew []string) ApiDcimConsoleServerPortsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameIsw(nameIsw []string) ApiDcimConsoleServerPortsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameN(nameN []string) ApiDcimConsoleServerPortsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameNic(nameNic []string) ApiDcimConsoleServerPortsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameNie(nameNie []string) ApiDcimConsoleServerPortsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameNiew(nameNiew []string) ApiDcimConsoleServerPortsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) NameNisw(nameNisw []string) ApiDcimConsoleServerPortsListRequest { - r.nameNisw = &nameNisw - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) Occupied(occupied bool) ApiDcimConsoleServerPortsListRequest { - r.occupied = &occupied - return r -} - -// The initial index from which to return the results. -func (r ApiDcimConsoleServerPortsListRequest) Offset(offset int32) ApiDcimConsoleServerPortsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiDcimConsoleServerPortsListRequest) Ordering(ordering string) ApiDcimConsoleServerPortsListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiDcimConsoleServerPortsListRequest) Q(q string) ApiDcimConsoleServerPortsListRequest { - r.q = &q +func (r ApiDcimDeviceBayTemplatesListRequest) LabelIe(labelIe []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelIe = &labelIe return r } -// Rack (name) -func (r ApiDcimConsoleServerPortsListRequest) Rack(rack []string) ApiDcimConsoleServerPortsListRequest { - r.rack = &rack +func (r ApiDcimDeviceBayTemplatesListRequest) LabelIew(labelIew []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelIew = &labelIew return r } -// Rack (name) -func (r ApiDcimConsoleServerPortsListRequest) RackN(rackN []string) ApiDcimConsoleServerPortsListRequest { - r.rackN = &rackN +func (r ApiDcimDeviceBayTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelIsw = &labelIsw return r } -// Rack (ID) -func (r ApiDcimConsoleServerPortsListRequest) RackId(rackId []int32) ApiDcimConsoleServerPortsListRequest { - r.rackId = &rackId +func (r ApiDcimDeviceBayTemplatesListRequest) LabelN(labelN []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelN = &labelN return r } -// Rack (ID) -func (r ApiDcimConsoleServerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.rackIdN = &rackIdN +func (r ApiDcimDeviceBayTemplatesListRequest) LabelNic(labelNic []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelNic = &labelNic return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) Region(region []int32) ApiDcimConsoleServerPortsListRequest { - r.region = ®ion +func (r ApiDcimDeviceBayTemplatesListRequest) LabelNie(labelNie []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelNie = &labelNie return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []int32) ApiDcimConsoleServerPortsListRequest { - r.regionN = ®ionN +func (r ApiDcimDeviceBayTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelNiew = &labelNiew return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []int32) ApiDcimConsoleServerPortsListRequest { - r.regionId = ®ionId +func (r ApiDcimDeviceBayTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimDeviceBayTemplatesListRequest { + r.labelNisw = &labelNisw return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdated = &lastUpdated return r } -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) Role(role []string) ApiDcimConsoleServerPortsListRequest { - r.role = &role +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) RoleN(roleN []string) ApiDcimConsoleServerPortsListRequest { - r.roleN = &roleN +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleId(roleId []int32) ApiDcimConsoleServerPortsListRequest { - r.roleId = &roleId +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.roleIdN = &roleIdN +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -// Site name (slug) -func (r ApiDcimConsoleServerPortsListRequest) Site(site []string) ApiDcimConsoleServerPortsListRequest { - r.site = &site +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -// Site name (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteN(siteN []string) ApiDcimConsoleServerPortsListRequest { - r.siteN = &siteN +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsoleServerPortsListRequest { - r.siteGroup = &siteGroup +// Number of results to return per page. +func (r ApiDcimDeviceBayTemplatesListRequest) Limit(limit int32) ApiDcimDeviceBayTemplatesListRequest { + r.limit = &limit return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsoleServerPortsListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimDeviceBayTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceBayTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsoleServerPortsListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimDeviceBayTemplatesListRequest) Name(name []string) ApiDcimDeviceBayTemplatesListRequest { + r.name = &name return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimDeviceBayTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimDeviceBayTemplatesListRequest { + r.nameEmpty = &nameEmpty return r } -// Site (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteId(siteId []int32) ApiDcimConsoleServerPortsListRequest { - r.siteId = &siteId +func (r ApiDcimDeviceBayTemplatesListRequest) NameIc(nameIc []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameIc = &nameIc return r } -// Site (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteIdN(siteIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimDeviceBayTemplatesListRequest) NameIe(nameIe []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameIe = &nameIe return r } -// 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 -func (r ApiDcimConsoleServerPortsListRequest) Speed(speed DcimConsolePortsListSpeedParameter) ApiDcimConsoleServerPortsListRequest { - r.speed = &speed +func (r ApiDcimDeviceBayTemplatesListRequest) NameIew(nameIew []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameIew = &nameIew return r } -// 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 -func (r ApiDcimConsoleServerPortsListRequest) SpeedN(speedN DcimConsolePortsListSpeedParameter) ApiDcimConsoleServerPortsListRequest { - r.speedN = &speedN +func (r ApiDcimDeviceBayTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameIsw = &nameIsw return r } -func (r ApiDcimConsoleServerPortsListRequest) Tag(tag []string) ApiDcimConsoleServerPortsListRequest { - r.tag = &tag +func (r ApiDcimDeviceBayTemplatesListRequest) NameN(nameN []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameN = &nameN return r } -func (r ApiDcimConsoleServerPortsListRequest) TagN(tagN []string) ApiDcimConsoleServerPortsListRequest { - r.tagN = &tagN +func (r ApiDcimDeviceBayTemplatesListRequest) NameNic(nameNic []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameNic = &nameNic return r } -// Physical port type -func (r ApiDcimConsoleServerPortsListRequest) Type_(type_ []string) ApiDcimConsoleServerPortsListRequest { - r.type_ = &type_ +func (r ApiDcimDeviceBayTemplatesListRequest) NameNie(nameNie []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameNie = &nameNie return r } -// Physical port type -func (r ApiDcimConsoleServerPortsListRequest) TypeN(typeN []string) ApiDcimConsoleServerPortsListRequest { - r.typeN = &typeN +func (r ApiDcimDeviceBayTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiDcimConsoleServerPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsoleServerPortsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimDeviceBayTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimDeviceBayTemplatesListRequest { + r.nameNisw = &nameNisw return r } -// Virtual Chassis -func (r ApiDcimConsoleServerPortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimConsoleServerPortsListRequest { - r.virtualChassis = &virtualChassis +// The initial index from which to return the results. +func (r ApiDcimDeviceBayTemplatesListRequest) Offset(offset int32) ApiDcimDeviceBayTemplatesListRequest { + r.offset = &offset return r } -// Virtual Chassis -func (r ApiDcimConsoleServerPortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimConsoleServerPortsListRequest { - r.virtualChassisN = &virtualChassisN +// Which field to use when ordering the results. +func (r ApiDcimDeviceBayTemplatesListRequest) Ordering(ordering string) ApiDcimDeviceBayTemplatesListRequest { + r.ordering = &ordering return r } -// Virtual Chassis (ID) -func (r ApiDcimConsoleServerPortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimConsoleServerPortsListRequest { - r.virtualChassisId = &virtualChassisId +// Search +func (r ApiDcimDeviceBayTemplatesListRequest) Q(q string) ApiDcimDeviceBayTemplatesListRequest { + r.q = &q return r } -// Virtual Chassis (ID) -func (r ApiDcimConsoleServerPortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.virtualChassisIdN = &virtualChassisIdN +func (r ApiDcimDeviceBayTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceBayTemplatesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimConsoleServerPortsListRequest) Execute() (*PaginatedConsoleServerPortList, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsListExecute(r) +func (r ApiDcimDeviceBayTemplatesListRequest) Execute() (*PaginatedDeviceBayTemplateList, *http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesListExecute(r) } /* -DcimConsoleServerPortsList Method for DcimConsoleServerPortsList +DcimDeviceBayTemplatesList Method for DcimDeviceBayTemplatesList -Get a list of console server port objects. +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 ApiDcimConsoleServerPortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesListRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsList(ctx context.Context) ApiDcimConsoleServerPortsListRequest { - return ApiDcimConsoleServerPortsListRequest{ +func (a *DcimAPIService) DcimDeviceBayTemplatesList(ctx context.Context) ApiDcimDeviceBayTemplatesListRequest { + return ApiDcimDeviceBayTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsoleServerPortList -func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServerPortsListRequest) (*PaginatedConsoleServerPortList, *http.Response, error) { +// @return PaginatedDeviceBayTemplateList +func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTemplatesListRequest) (*PaginatedDeviceBayTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsoleServerPortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceBayTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesList") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/console-server-ports/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") - } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } - if r.cableId != nil { - t := *r.cableId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") - } - } - if r.cableIdN != nil { - t := *r.cableIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") - } - } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") - } - if r.connected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "") - } - 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } - } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__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.label != nil { - t := *r.label - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") - } - } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") - } - } - if r.labelIe != nil { - t := *r.labelIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") - } - } - if r.labelIew != nil { - t := *r.labelIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") - } + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.labelIsw != nil { - t := *r.labelIsw + + localVarPath := localBasePath + "/api/dcim/device-bay-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.labelN != nil { - t := *r.labelN + 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "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.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.location != nil { - t := *r.location + 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, "location", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.locationN != nil { - t := *r.locationN + 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, "location__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.locationId != nil { - t := *r.locationId + 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, "location_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.locationIdN != nil { - t := *r.locationIdN + 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, "location_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.moduleId != nil { - t := *r.moduleId + 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, "module_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.moduleIdN != nil { - t := *r.moduleIdN + 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, "module_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.name != nil { - t := *r.name + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "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.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.nameIsw != nil { - t := *r.nameIsw + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + 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, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.label != nil { + t := *r.label 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } - if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") - } - 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, "") + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } - if r.rack != nil { - t := *r.rack + if r.labelIc != nil { + t := *r.labelIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } - if r.rackN != nil { - t := *r.rackN + if r.labelIe != nil { + t := *r.labelIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } - if r.rackId != nil { - t := *r.rackId + if r.labelIew != nil { + t := *r.labelIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + if r.labelIsw != nil { + t := *r.labelIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } - if r.region != nil { - t := *r.region + if r.labelN != nil { + t := *r.labelN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.labelNic != nil { + t := *r.labelNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + if r.labelNie != nil { + t := *r.labelNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + if r.labelNiew != nil { + t := *r.labelNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.role != nil { - t := *r.role + if r.labelNisw != nil { + t := *r.labelNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "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.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - 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.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.speed != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed", r.speed, "") - } - if r.speedN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", r.speedN, "") - } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + 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, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + 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, "type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualChassis != nil { - t := *r.virtualChassis + 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, "virtual_chassis", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.virtualChassisN != nil { - t := *r.virtualChassisN + 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, "virtual_chassis__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId + 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, "virtual_chassis_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN + 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, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -14389,56 +23060,55 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableConsoleServerPortRequest *PatchedWritableConsoleServerPortRequest +type ApiDcimDeviceBayTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedDeviceBayTemplateRequest *PatchedDeviceBayTemplateRequest } -func (r ApiDcimConsoleServerPortsPartialUpdateRequest) PatchedWritableConsoleServerPortRequest(patchedWritableConsoleServerPortRequest PatchedWritableConsoleServerPortRequest) ApiDcimConsoleServerPortsPartialUpdateRequest { - r.patchedWritableConsoleServerPortRequest = &patchedWritableConsoleServerPortRequest +func (r ApiDcimDeviceBayTemplatesPartialUpdateRequest) PatchedDeviceBayTemplateRequest(patchedDeviceBayTemplateRequest PatchedDeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesPartialUpdateRequest { + r.patchedDeviceBayTemplateRequest = &patchedDeviceBayTemplateRequest return r } -func (r ApiDcimConsoleServerPortsPartialUpdateRequest) Execute() (*ConsoleServerPort, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsPartialUpdateExecute(r) +func (r ApiDcimDeviceBayTemplatesPartialUpdateRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesPartialUpdateExecute(r) } /* -DcimConsoleServerPortsPartialUpdate Method for DcimConsoleServerPortsPartialUpdate +DcimDeviceBayTemplatesPartialUpdate Method for DcimDeviceBayTemplatesPartialUpdate -Patch a console server port object. +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 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 device bay template. + @return ApiDcimDeviceBayTemplatesPartialUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsPartialUpdateRequest { - return ApiDcimConsoleServerPortsPartialUpdateRequest{ +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 ConsoleServerPort -func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimConsoleServerPortsPartialUpdateRequest) (*ConsoleServerPort, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDeviceBayTemplatesPartialUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/device-bay-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -14463,125 +23133,7 @@ func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableConsoleServerPortRequest - 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 ApiDcimConsoleServerPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimConsoleServerPortsRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsRetrieveExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimConsoleServerPortsRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsRetrieveRequest { - return ApiDcimConsoleServerPortsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return ConsoleServerPort -func (a *DcimAPIService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleServerPortsRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/console-server-ports/{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 - } + localVarPostBody = r.patchedDeviceBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14633,50 +23185,49 @@ func (a *DcimAPIService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleS return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDeviceBayTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimConsoleServerPortsTraceRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsTraceRetrieveExecute(r) +func (r ApiDcimDeviceBayTemplatesRetrieveRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesRetrieveExecute(r) } /* -DcimConsoleServerPortsTraceRetrieve Method for DcimConsoleServerPortsTraceRetrieve +DcimDeviceBayTemplatesRetrieve Method for DcimDeviceBayTemplatesRetrieve -Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). +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 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 device bay template. + @return ApiDcimDeviceBayTemplatesRetrieveRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsTraceRetrieveRequest { - return ApiDcimConsoleServerPortsTraceRetrieveRequest{ +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 ConsoleServerPort -func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimConsoleServerPortsTraceRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBayTemplatesRetrieveRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/trace/" + localVarPath := localBasePath + "/api/dcim/device-bay-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -14751,63 +23302,62 @@ func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimCon return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimConsoleServerPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableConsoleServerPortRequest *WritableConsoleServerPortRequest +type ApiDcimDeviceBayTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + deviceBayTemplateRequest *DeviceBayTemplateRequest } -func (r ApiDcimConsoleServerPortsUpdateRequest) WritableConsoleServerPortRequest(writableConsoleServerPortRequest WritableConsoleServerPortRequest) ApiDcimConsoleServerPortsUpdateRequest { - r.writableConsoleServerPortRequest = &writableConsoleServerPortRequest +func (r ApiDcimDeviceBayTemplatesUpdateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesUpdateRequest { + r.deviceBayTemplateRequest = &deviceBayTemplateRequest return r } -func (r ApiDcimConsoleServerPortsUpdateRequest) Execute() (*ConsoleServerPort, *http.Response, error) { - return r.ApiService.DcimConsoleServerPortsUpdateExecute(r) +func (r ApiDcimDeviceBayTemplatesUpdateRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { + return r.ApiService.DcimDeviceBayTemplatesUpdateExecute(r) } /* -DcimConsoleServerPortsUpdate Method for DcimConsoleServerPortsUpdate +DcimDeviceBayTemplatesUpdate Method for DcimDeviceBayTemplatesUpdate -Put a console server port object. +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 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 device bay template. + @return ApiDcimDeviceBayTemplatesUpdateRequest */ -func (a *DcimAPIService) DcimConsoleServerPortsUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsUpdateRequest { - return ApiDcimConsoleServerPortsUpdateRequest{ +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 ConsoleServerPort -func (a *DcimAPIService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleServerPortsUpdateRequest) (*ConsoleServerPort, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayTemplatesUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/console-server-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/device-bay-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.writableConsoleServerPortRequest == nil { - return localVarReturnValue, nil, reportError("writableConsoleServerPortRequest is required and must be specified") + if r.deviceBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -14828,7 +23378,7 @@ func (a *DcimAPIService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleSer localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConsoleServerPortRequest + localVarPostBody = r.deviceBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14880,56 +23430,56 @@ func (a *DcimAPIService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleSer return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayTemplateRequest *[]DeviceBayTemplateRequest +type ApiDcimDeviceBaysBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayRequest *[]DeviceBayRequest } -func (r ApiDcimDeviceBayTemplatesBulkDestroyRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest []DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesBulkDestroyRequest { - r.deviceBayTemplateRequest = &deviceBayTemplateRequest +func (r ApiDcimDeviceBaysBulkDestroyRequest) DeviceBayRequest(deviceBayRequest []DeviceBayRequest) ApiDcimDeviceBaysBulkDestroyRequest { + r.deviceBayRequest = &deviceBayRequest return r } -func (r ApiDcimDeviceBayTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesBulkDestroyExecute(r) +func (r ApiDcimDeviceBaysBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceBaysBulkDestroyExecute(r) } /* -DcimDeviceBayTemplatesBulkDestroy Method for DcimDeviceBayTemplatesBulkDestroy +DcimDeviceBaysBulkDestroy Method for DcimDeviceBaysBulkDestroy -Delete a list of device bay template objects. +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 ApiDcimDeviceBayTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkDestroyRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroy(ctx context.Context) ApiDcimDeviceBayTemplatesBulkDestroyRequest { - return ApiDcimDeviceBayTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimDeviceBaysBulkDestroy(ctx context.Context) ApiDcimDeviceBaysBulkDestroyRequest { + return ApiDcimDeviceBaysBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDeviceBayTemplatesBulkDestroyRequest) (*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.DcimDeviceBayTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/" + localVarPath := localBasePath + "/api/dcim/device-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayTemplateRequest == nil { - return nil, reportError("deviceBayTemplateRequest is required and must be specified") + if r.deviceBayRequest == nil { + return nil, reportError("deviceBayRequest is required and must be specified") } // to determine the Content-Type header @@ -14950,7 +23500,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDevic localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayTemplateRequest + localVarPostBody = r.deviceBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14993,59 +23543,58 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDevic return localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayTemplateRequest *[]DeviceBayTemplateRequest +type ApiDcimDeviceBaysBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayRequest *[]DeviceBayRequest } -func (r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest []DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest { - r.deviceBayTemplateRequest = &deviceBayTemplateRequest +func (r ApiDcimDeviceBaysBulkPartialUpdateRequest) DeviceBayRequest(deviceBayRequest []DeviceBayRequest) ApiDcimDeviceBaysBulkPartialUpdateRequest { + r.deviceBayRequest = &deviceBayRequest return r } -func (r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) Execute() ([]DeviceBayTemplate, *http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimDeviceBaysBulkPartialUpdateRequest) Execute() ([]DeviceBay, *http.Response, error) { + return r.ApiService.DcimDeviceBaysBulkPartialUpdateExecute(r) } /* -DcimDeviceBayTemplatesBulkPartialUpdate Method for DcimDeviceBayTemplatesBulkPartialUpdate +DcimDeviceBaysBulkPartialUpdate Method for DcimDeviceBaysBulkPartialUpdate -Patch a list of device bay template objects. +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 ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest { - return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBaysBulkPartialUpdateRequest { + return ApiDcimDeviceBaysBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBayTemplate -func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { +// @return []DeviceBay +func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceBaysBulkPartialUpdateRequest) ([]DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/" + localVarPath := localBasePath + "/api/dcim/device-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") + if r.deviceBayRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") } // to determine the Content-Type header @@ -15066,7 +23615,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayTemplateRequest + localVarPostBody = r.deviceBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15118,59 +23667,58 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDci return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayTemplateRequest *[]DeviceBayTemplateRequest +type ApiDcimDeviceBaysBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayRequest *[]DeviceBayRequest } -func (r ApiDcimDeviceBayTemplatesBulkUpdateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest []DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesBulkUpdateRequest { - r.deviceBayTemplateRequest = &deviceBayTemplateRequest +func (r ApiDcimDeviceBaysBulkUpdateRequest) DeviceBayRequest(deviceBayRequest []DeviceBayRequest) ApiDcimDeviceBaysBulkUpdateRequest { + r.deviceBayRequest = &deviceBayRequest return r } -func (r ApiDcimDeviceBayTemplatesBulkUpdateRequest) Execute() ([]DeviceBayTemplate, *http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesBulkUpdateExecute(r) +func (r ApiDcimDeviceBaysBulkUpdateRequest) Execute() ([]DeviceBay, *http.Response, error) { + return r.ApiService.DcimDeviceBaysBulkUpdateExecute(r) } /* -DcimDeviceBayTemplatesBulkUpdate Method for DcimDeviceBayTemplatesBulkUpdate +DcimDeviceBaysBulkUpdate Method for DcimDeviceBaysBulkUpdate -Put a list of device bay template objects. +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 ApiDcimDeviceBayTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkUpdateRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkUpdateRequest { - return ApiDcimDeviceBayTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimDeviceBaysBulkUpdate(ctx context.Context) ApiDcimDeviceBaysBulkUpdateRequest { + return ApiDcimDeviceBaysBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBayTemplate -func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDeviceBayTemplatesBulkUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { +// @return []DeviceBay +func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulkUpdateRequest) ([]DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/" + localVarPath := localBasePath + "/api/dcim/device-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") + if r.deviceBayRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") } // to determine the Content-Type header @@ -15191,7 +23739,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDevice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayTemplateRequest + localVarPostBody = r.deviceBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15243,59 +23791,58 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDevice return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayTemplateRequest *DeviceBayTemplateRequest +type ApiDcimDeviceBaysCreateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceBayRequest *DeviceBayRequest } -func (r ApiDcimDeviceBayTemplatesCreateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesCreateRequest { - r.deviceBayTemplateRequest = &deviceBayTemplateRequest +func (r ApiDcimDeviceBaysCreateRequest) DeviceBayRequest(deviceBayRequest DeviceBayRequest) ApiDcimDeviceBaysCreateRequest { + r.deviceBayRequest = &deviceBayRequest return r } -func (r ApiDcimDeviceBayTemplatesCreateRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesCreateExecute(r) +func (r ApiDcimDeviceBaysCreateRequest) Execute() (*DeviceBay, *http.Response, error) { + return r.ApiService.DcimDeviceBaysCreateExecute(r) } /* -DcimDeviceBayTemplatesCreate Method for DcimDeviceBayTemplatesCreate +DcimDeviceBaysCreate Method for DcimDeviceBaysCreate -Post a list of device bay template objects. +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 ApiDcimDeviceBayTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysCreateRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesCreate(ctx context.Context) ApiDcimDeviceBayTemplatesCreateRequest { - return ApiDcimDeviceBayTemplatesCreateRequest{ +func (a *DcimAPIService) DcimDeviceBaysCreate(ctx context.Context) ApiDcimDeviceBaysCreateRequest { + return ApiDcimDeviceBaysCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DeviceBayTemplate -func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayTemplatesCreateRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/" + localVarPath := localBasePath + "/api/dcim/device-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") + if r.deviceBayRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") } // to determine the Content-Type header @@ -15316,7 +23863,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayTemplateRequest + localVarPostBody = r.deviceBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15368,47 +23915,47 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDeviceBaysDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDeviceBayTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesDestroyExecute(r) +func (r ApiDcimDeviceBaysDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceBaysDestroyExecute(r) } /* -DcimDeviceBayTemplatesDestroy Method for DcimDeviceBayTemplatesDestroy +DcimDeviceBaysDestroy Method for DcimDeviceBaysDestroy -Delete a device bay template object. +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 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. + @return ApiDcimDeviceBaysDestroyRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesDestroyRequest { - return ApiDcimDeviceBayTemplatesDestroyRequest{ +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) DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBayTemplatesDestroyRequest) (*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.DcimDeviceBayTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/device-bays/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -15474,445 +24021,766 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBay return localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesListRequest struct { - 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 - deviceTypeId *[]int32 - deviceTypeIdN *[]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 +type ApiDcimDeviceBaysListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + installedDevice *[]*string + installedDeviceN *[]*string + installedDeviceId *[]*int32 + installedDeviceIdN *[]*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 - updatedByRequest *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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 } -func (r ApiDcimDeviceBayTemplatesListRequest) Created(created []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Created(created []time.Time) ApiDcimDeviceBaysListRequest { r.created = &created return r } -func (r ApiDcimDeviceBayTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceBaysListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimDeviceBayTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceBaysListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimDeviceBayTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceBaysListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimDeviceBayTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceBaysListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimDeviceBayTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceBaysListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimDeviceBayTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceBaysListRequest { r.createdN = &createdN return r } -func (r ApiDcimDeviceBayTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceBaysListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimDeviceBayTemplatesListRequest) Description(description []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Description(description []string) ApiDcimDeviceBaysListRequest { r.description = &description return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceBaysListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceBaysListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceBaysListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceBaysListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceBaysListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceBaysListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceBaysListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceBaysListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceBaysListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimDeviceBayTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceBaysListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimDeviceBayTemplatesListRequest { - r.deviceTypeId = &deviceTypeId +// Device (name) +func (r ApiDcimDeviceBaysListRequest) Device(device []*string) ApiDcimDeviceBaysListRequest { + r.device = &device return r } -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN +// Device (name) +func (r ApiDcimDeviceBaysListRequest) DeviceN(deviceN []*string) ApiDcimDeviceBaysListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceId(deviceId []int32) ApiDcimDeviceBaysListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimDeviceBaysListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRole(deviceRole []string) ApiDcimDeviceBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimDeviceBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimDeviceBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimDeviceBaysListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + +// Device type (model) +func (r ApiDcimDeviceBaysListRequest) DeviceType(deviceType []string) ApiDcimDeviceBaysListRequest { + r.deviceType = &deviceType + return r +} + +// Device type (model) +func (r ApiDcimDeviceBaysListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimDeviceBaysListRequest { + r.deviceTypeN = &deviceTypeN return r } // Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeId = &devicetypeId +func (r ApiDcimDeviceBaysListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimDeviceBaysListRequest { + r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimDeviceBaysListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimDeviceBaysListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimDeviceBayTemplatesListRequest) Id(id []int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Id(id []int32) ApiDcimDeviceBaysListRequest { r.id = &id return r } -func (r ApiDcimDeviceBayTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceBaysListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimDeviceBayTemplatesListRequest) IdGt(idGt []int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) IdGt(idGt []int32) ApiDcimDeviceBaysListRequest { r.idGt = &idGt return r } -func (r ApiDcimDeviceBayTemplatesListRequest) IdGte(idGte []int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) IdGte(idGte []int32) ApiDcimDeviceBaysListRequest { r.idGte = &idGte return r } -func (r ApiDcimDeviceBayTemplatesListRequest) IdLt(idLt []int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) IdLt(idLt []int32) ApiDcimDeviceBaysListRequest { r.idLt = &idLt return r } -func (r ApiDcimDeviceBayTemplatesListRequest) IdLte(idLte []int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) IdLte(idLte []int32) ApiDcimDeviceBaysListRequest { r.idLte = &idLte return r } -func (r ApiDcimDeviceBayTemplatesListRequest) IdN(idN []int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) IdN(idN []int32) ApiDcimDeviceBaysListRequest { r.idN = &idN return r } -func (r ApiDcimDeviceBayTemplatesListRequest) Label(label []string) ApiDcimDeviceBayTemplatesListRequest { +// Installed device (name) +func (r ApiDcimDeviceBaysListRequest) InstalledDevice(installedDevice []*string) ApiDcimDeviceBaysListRequest { + r.installedDevice = &installedDevice + return r +} + +// Installed device (name) +func (r ApiDcimDeviceBaysListRequest) InstalledDeviceN(installedDeviceN []*string) ApiDcimDeviceBaysListRequest { + r.installedDeviceN = &installedDeviceN + return r +} + +// Installed device (ID) +func (r ApiDcimDeviceBaysListRequest) InstalledDeviceId(installedDeviceId []*int32) ApiDcimDeviceBaysListRequest { + r.installedDeviceId = &installedDeviceId + return r +} + +// Installed device (ID) +func (r ApiDcimDeviceBaysListRequest) InstalledDeviceIdN(installedDeviceIdN []*int32) ApiDcimDeviceBaysListRequest { + r.installedDeviceIdN = &installedDeviceIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) Label(label []string) ApiDcimDeviceBaysListRequest { r.label = &label return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelEmpty(labelEmpty bool) ApiDcimDeviceBaysListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelIc(labelIc []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelIc(labelIc []string) ApiDcimDeviceBaysListRequest { r.labelIc = &labelIc return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelIe(labelIe []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelIe(labelIe []string) ApiDcimDeviceBaysListRequest { r.labelIe = &labelIe return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelIew(labelIew []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelIew(labelIew []string) ApiDcimDeviceBaysListRequest { r.labelIew = &labelIew return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelIsw(labelIsw []string) ApiDcimDeviceBaysListRequest { r.labelIsw = &labelIsw return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelN(labelN []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelN(labelN []string) ApiDcimDeviceBaysListRequest { r.labelN = &labelN return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelNic(labelNic []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelNic(labelNic []string) ApiDcimDeviceBaysListRequest { r.labelNic = &labelNic return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelNie(labelNie []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelNie(labelNie []string) ApiDcimDeviceBaysListRequest { r.labelNie = &labelNie return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelNiew(labelNiew []string) ApiDcimDeviceBaysListRequest { r.labelNiew = &labelNiew return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LabelNisw(labelNisw []string) ApiDcimDeviceBaysListRequest { r.labelNisw = &labelNisw return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimDeviceBayTemplatesListRequest) Limit(limit int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Limit(limit int32) ApiDcimDeviceBaysListRequest { r.limit = &limit return r } -func (r ApiDcimDeviceBayTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceBayTemplatesListRequest { +// Location (slug) +func (r ApiDcimDeviceBaysListRequest) Location(location []string) ApiDcimDeviceBaysListRequest { + r.location = &location + return r +} + +// Location (slug) +func (r ApiDcimDeviceBaysListRequest) LocationN(locationN []string) ApiDcimDeviceBaysListRequest { + r.locationN = &locationN + return r +} + +// Location (ID) +func (r ApiDcimDeviceBaysListRequest) LocationId(locationId []int32) ApiDcimDeviceBaysListRequest { + r.locationId = &locationId + return r +} + +// Location (ID) +func (r ApiDcimDeviceBaysListRequest) LocationIdN(locationIdN []int32) ApiDcimDeviceBaysListRequest { + r.locationIdN = &locationIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceBaysListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimDeviceBayTemplatesListRequest) Name(name []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Name(name []string) ApiDcimDeviceBaysListRequest { r.name = &name return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameEmpty(nameEmpty bool) ApiDcimDeviceBaysListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameIc(nameIc []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameIc(nameIc []string) ApiDcimDeviceBaysListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameIe(nameIe []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameIe(nameIe []string) ApiDcimDeviceBaysListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameIew(nameIew []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameIew(nameIew []string) ApiDcimDeviceBaysListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameIsw(nameIsw []string) ApiDcimDeviceBaysListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameN(nameN []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameN(nameN []string) ApiDcimDeviceBaysListRequest { r.nameN = &nameN return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameNic(nameNic []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameNic(nameNic []string) ApiDcimDeviceBaysListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameNie(nameNie []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameNie(nameNie []string) ApiDcimDeviceBaysListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameNiew(nameNiew []string) ApiDcimDeviceBaysListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimDeviceBayTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) NameNisw(nameNisw []string) ApiDcimDeviceBaysListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiDcimDeviceBayTemplatesListRequest) Offset(offset int32) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Offset(offset int32) ApiDcimDeviceBaysListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimDeviceBayTemplatesListRequest) Ordering(ordering string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Ordering(ordering string) ApiDcimDeviceBaysListRequest { r.ordering = &ordering return r } // Search -func (r ApiDcimDeviceBayTemplatesListRequest) Q(q string) ApiDcimDeviceBayTemplatesListRequest { +func (r ApiDcimDeviceBaysListRequest) Q(q string) ApiDcimDeviceBaysListRequest { r.q = &q return r } -func (r ApiDcimDeviceBayTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceBayTemplatesListRequest { +// Rack (name) +func (r ApiDcimDeviceBaysListRequest) Rack(rack []string) ApiDcimDeviceBaysListRequest { + r.rack = &rack + return r +} + +// Rack (name) +func (r ApiDcimDeviceBaysListRequest) RackN(rackN []string) ApiDcimDeviceBaysListRequest { + r.rackN = &rackN + return r +} + +// Rack (ID) +func (r ApiDcimDeviceBaysListRequest) RackId(rackId []int32) ApiDcimDeviceBaysListRequest { + r.rackId = &rackId + return r +} + +// Rack (ID) +func (r ApiDcimDeviceBaysListRequest) RackIdN(rackIdN []int32) ApiDcimDeviceBaysListRequest { + r.rackIdN = &rackIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) Region(region []string) ApiDcimDeviceBaysListRequest { + r.region = ®ion + return r +} + +func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []string) ApiDcimDeviceBaysListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []string) ApiDcimDeviceBaysListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []string) ApiDcimDeviceBaysListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site name (slug) +func (r ApiDcimDeviceBaysListRequest) Site(site []string) ApiDcimDeviceBaysListRequest { + r.site = &site + return r +} + +// Site name (slug) +func (r ApiDcimDeviceBaysListRequest) SiteN(siteN []string) ApiDcimDeviceBaysListRequest { + r.siteN = &siteN + return r +} + +func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []string) ApiDcimDeviceBaysListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimDeviceBaysListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimDeviceBaysListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDeviceBaysListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiDcimDeviceBaysListRequest) SiteId(siteId []int32) ApiDcimDeviceBaysListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiDcimDeviceBaysListRequest) SiteIdN(siteIdN []int32) ApiDcimDeviceBaysListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) Tag(tag []string) ApiDcimDeviceBaysListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimDeviceBaysListRequest) TagN(tagN []string) ApiDcimDeviceBaysListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimDeviceBaysListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceBaysListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimDeviceBayTemplatesListRequest) Execute() (*PaginatedDeviceBayTemplateList, *http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesListExecute(r) +// Virtual Chassis +func (r ApiDcimDeviceBaysListRequest) VirtualChassis(virtualChassis []string) ApiDcimDeviceBaysListRequest { + r.virtualChassis = &virtualChassis + return r +} + +// Virtual Chassis +func (r ApiDcimDeviceBaysListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimDeviceBaysListRequest { + r.virtualChassisN = &virtualChassisN + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimDeviceBaysListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimDeviceBaysListRequest { + r.virtualChassisId = &virtualChassisId + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimDeviceBaysListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimDeviceBaysListRequest { + r.virtualChassisIdN = &virtualChassisIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) Execute() (*PaginatedDeviceBayList, *http.Response, error) { + return r.ApiService.DcimDeviceBaysListExecute(r) } /* -DcimDeviceBayTemplatesList Method for DcimDeviceBayTemplatesList +DcimDeviceBaysList Method for DcimDeviceBaysList -Get a list of device bay template objects. +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 ApiDcimDeviceBayTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysListRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesList(ctx context.Context) ApiDcimDeviceBayTemplatesListRequest { - return ApiDcimDeviceBayTemplatesListRequest{ +func (a *DcimAPIService) DcimDeviceBaysList(ctx context.Context) ApiDcimDeviceBaysListRequest { + return ApiDcimDeviceBaysListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceBayTemplateList -func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTemplatesListRequest) (*PaginatedDeviceBayTemplateList, *http.Response, error) { +// @return PaginatedDeviceBayList +func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListRequest) (*PaginatedDeviceBayList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceBayTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceBayList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/" + localVarPath := localBasePath + "/api/dcim/device-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15923,10 +24791,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -15934,10 +24802,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -15945,10 +24813,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -15956,10 +24824,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -15967,10 +24835,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -15978,10 +24846,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -15989,38 +24857,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -16028,10 +24896,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -16039,10 +24907,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -16050,10 +24918,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -16061,10 +24929,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -16072,10 +24940,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -16083,10 +24951,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -16094,10 +24962,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -16105,54 +24973,255 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.device != nil { + t := *r.device 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") + } + } + if r.deviceType != nil { + t := *r.deviceType + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") + } + } + if r.deviceTypeN != nil { + t := *r.deviceTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + 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, "devicetype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + 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, "devicetype_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -16160,24 +25229,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -16185,10 +25254,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -16196,10 +25265,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -16207,10 +25276,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -16218,10 +25287,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.installedDevice != nil { + t := *r.installedDevice + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device", t, "form", "multi") + } + } + if r.installedDeviceN != nil { + t := *r.installedDeviceN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device__n", t, "form", "multi") + } + } + if r.installedDeviceId != nil { + t := *r.installedDeviceId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id", t, "form", "multi") + } + } + if r.installedDeviceIdN != nil { + t := *r.installedDeviceIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id__n", t, "form", "multi") } } if r.label != nil { @@ -16229,24 +25342,24 @@ 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -16254,10 +25367,10 @@ 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -16265,10 +25378,10 @@ 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -16276,10 +25389,10 @@ 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -16287,10 +25400,10 @@ 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -16298,10 +25411,10 @@ 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -16309,10 +25422,10 @@ 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -16320,10 +25433,10 @@ 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -16331,10 +25444,10 @@ 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -16342,10 +25455,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -16353,10 +25466,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -16364,10 +25477,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -16375,10 +25488,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -16386,10 +25499,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -16397,10 +25510,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -16408,41 +25521,85 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") + } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -16450,10 +25607,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -16461,10 +25618,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -16472,10 +25629,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -16483,10 +25640,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -16494,10 +25651,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -16505,10 +25662,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -16516,10 +25673,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -16527,23 +25684,265 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") + } + } + if r.rackN != nil { + t := *r.rackN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") + } + } + if r.rackId != nil { + t := *r.rackId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") + } + } + if r.rackIdN != nil { + t := *r.rackIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") + } + } + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } + } + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } + } + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -16613,56 +26012,55 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedDeviceBayTemplateRequest *PatchedDeviceBayTemplateRequest +type ApiDcimDeviceBaysPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedDeviceBayRequest *PatchedDeviceBayRequest } -func (r ApiDcimDeviceBayTemplatesPartialUpdateRequest) PatchedDeviceBayTemplateRequest(patchedDeviceBayTemplateRequest PatchedDeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesPartialUpdateRequest { - r.patchedDeviceBayTemplateRequest = &patchedDeviceBayTemplateRequest +func (r ApiDcimDeviceBaysPartialUpdateRequest) PatchedDeviceBayRequest(patchedDeviceBayRequest PatchedDeviceBayRequest) ApiDcimDeviceBaysPartialUpdateRequest { + r.patchedDeviceBayRequest = &patchedDeviceBayRequest return r } -func (r ApiDcimDeviceBayTemplatesPartialUpdateRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesPartialUpdateExecute(r) +func (r ApiDcimDeviceBaysPartialUpdateRequest) Execute() (*DeviceBay, *http.Response, error) { + return r.ApiService.DcimDeviceBaysPartialUpdateExecute(r) } /* -DcimDeviceBayTemplatesPartialUpdate Method for DcimDeviceBayTemplatesPartialUpdate +DcimDeviceBaysPartialUpdate Method for DcimDeviceBaysPartialUpdate -Patch a device bay template object. +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 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. + @return ApiDcimDeviceBaysPartialUpdateRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesPartialUpdateRequest { - return ApiDcimDeviceBayTemplatesPartialUpdateRequest{ +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 DeviceBayTemplate -func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDeviceBayTemplatesPartialUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysPartialUpdateRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/device-bays/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -16687,7 +26085,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDev localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedDeviceBayTemplateRequest + localVarPostBody = r.patchedDeviceBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -16739,50 +26137,49 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDev return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDeviceBaysRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDeviceBayTemplatesRetrieveRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesRetrieveExecute(r) +func (r ApiDcimDeviceBaysRetrieveRequest) Execute() (*DeviceBay, *http.Response, error) { + return r.ApiService.DcimDeviceBaysRetrieveExecute(r) } /* -DcimDeviceBayTemplatesRetrieve Method for DcimDeviceBayTemplatesRetrieve +DcimDeviceBaysRetrieve Method for DcimDeviceBaysRetrieve -Get a device bay template object. +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 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. + @return ApiDcimDeviceBaysRetrieveRequest */ -func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesRetrieveRequest { - return ApiDcimDeviceBayTemplatesRetrieveRequest{ +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 DeviceBayTemplate -func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBayTemplatesRetrieveRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrieveRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/device-bays/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -16857,63 +26254,62 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBa return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBayTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - deviceBayTemplateRequest *DeviceBayTemplateRequest +type ApiDcimDeviceBaysUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + deviceBayRequest *DeviceBayRequest } -func (r ApiDcimDeviceBayTemplatesUpdateRequest) DeviceBayTemplateRequest(deviceBayTemplateRequest DeviceBayTemplateRequest) ApiDcimDeviceBayTemplatesUpdateRequest { - r.deviceBayTemplateRequest = &deviceBayTemplateRequest +func (r ApiDcimDeviceBaysUpdateRequest) DeviceBayRequest(deviceBayRequest DeviceBayRequest) ApiDcimDeviceBaysUpdateRequest { + r.deviceBayRequest = &deviceBayRequest return r } -func (r ApiDcimDeviceBayTemplatesUpdateRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { - return r.ApiService.DcimDeviceBayTemplatesUpdateExecute(r) +func (r ApiDcimDeviceBaysUpdateRequest) Execute() (*DeviceBay, *http.Response, error) { + return r.ApiService.DcimDeviceBaysUpdateExecute(r) } /* -DcimDeviceBayTemplatesUpdate Method for DcimDeviceBayTemplatesUpdate - -Put a device bay template object. +DcimDeviceBaysUpdate Method for DcimDeviceBaysUpdate - @param ctx 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 +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 */ -func (a *DcimAPIService) DcimDeviceBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesUpdateRequest { - return ApiDcimDeviceBayTemplatesUpdateRequest{ +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 DeviceBayTemplate -func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayTemplatesUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/device-bays/{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.deviceBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayTemplateRequest is required and must be specified") + if r.deviceBayRequest == nil { + return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") } // to determine the Content-Type header @@ -16934,7 +26330,7 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayTemplateRequest + localVarPostBody = r.deviceBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -16986,56 +26382,56 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBaysBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayRequest *[]DeviceBayRequest +type ApiDcimDeviceRolesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + deviceRoleRequest *[]DeviceRoleRequest } -func (r ApiDcimDeviceBaysBulkDestroyRequest) DeviceBayRequest(deviceBayRequest []DeviceBayRequest) ApiDcimDeviceBaysBulkDestroyRequest { - r.deviceBayRequest = &deviceBayRequest +func (r ApiDcimDeviceRolesBulkDestroyRequest) DeviceRoleRequest(deviceRoleRequest []DeviceRoleRequest) ApiDcimDeviceRolesBulkDestroyRequest { + r.deviceRoleRequest = &deviceRoleRequest return r } -func (r ApiDcimDeviceBaysBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceBaysBulkDestroyExecute(r) +func (r ApiDcimDeviceRolesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceRolesBulkDestroyExecute(r) } /* -DcimDeviceBaysBulkDestroy Method for DcimDeviceBaysBulkDestroy +DcimDeviceRolesBulkDestroy Method for DcimDeviceRolesBulkDestroy -Delete a list of device bay objects. +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 ApiDcimDeviceBaysBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkDestroyRequest */ -func (a *DcimAPIService) DcimDeviceBaysBulkDestroy(ctx context.Context) ApiDcimDeviceBaysBulkDestroyRequest { - return ApiDcimDeviceBaysBulkDestroyRequest{ +func (a *DcimAPIService) DcimDeviceRolesBulkDestroy(ctx context.Context) ApiDcimDeviceRolesBulkDestroyRequest { + return ApiDcimDeviceRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBulkDestroyRequest) (*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.DcimDeviceBaysBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/" + localVarPath := localBasePath + "/api/dcim/device-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayRequest == nil { - return nil, reportError("deviceBayRequest is required and must be specified") + if r.deviceRoleRequest == nil { + return nil, reportError("deviceRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -17056,7 +26452,7 @@ func (a *DcimAPIService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayRequest + localVarPostBody = r.deviceRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17099,59 +26495,58 @@ func (a *DcimAPIService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBul return localVarHTTPResponse, nil } -type ApiDcimDeviceBaysBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayRequest *[]DeviceBayRequest +type ApiDcimDeviceRolesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceRoleRequest *[]DeviceRoleRequest } -func (r ApiDcimDeviceBaysBulkPartialUpdateRequest) DeviceBayRequest(deviceBayRequest []DeviceBayRequest) ApiDcimDeviceBaysBulkPartialUpdateRequest { - r.deviceBayRequest = &deviceBayRequest +func (r ApiDcimDeviceRolesBulkPartialUpdateRequest) DeviceRoleRequest(deviceRoleRequest []DeviceRoleRequest) ApiDcimDeviceRolesBulkPartialUpdateRequest { + r.deviceRoleRequest = &deviceRoleRequest return r } -func (r ApiDcimDeviceBaysBulkPartialUpdateRequest) Execute() ([]DeviceBay, *http.Response, error) { - return r.ApiService.DcimDeviceBaysBulkPartialUpdateExecute(r) +func (r ApiDcimDeviceRolesBulkPartialUpdateRequest) Execute() ([]DeviceRole, *http.Response, error) { + return r.ApiService.DcimDeviceRolesBulkPartialUpdateExecute(r) } /* -DcimDeviceBaysBulkPartialUpdate Method for DcimDeviceBaysBulkPartialUpdate +DcimDeviceRolesBulkPartialUpdate Method for DcimDeviceRolesBulkPartialUpdate -Patch a list of device bay objects. +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 ApiDcimDeviceBaysBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBaysBulkPartialUpdateRequest { - return ApiDcimDeviceBaysBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceRolesBulkPartialUpdateRequest { + return ApiDcimDeviceRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBay -func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceBaysBulkPartialUpdateRequest) ([]DeviceBay, *http.Response, error) { +// @return []DeviceRole +func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDeviceRolesBulkPartialUpdateRequest) ([]DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/" + localVarPath := localBasePath + "/api/dcim/device-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") + if r.deviceRoleRequest == nil { + return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -17172,7 +26567,7 @@ func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayRequest + localVarPostBody = r.deviceRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17224,59 +26619,58 @@ func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceB return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBaysBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayRequest *[]DeviceBayRequest +type ApiDcimDeviceRolesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceRoleRequest *[]DeviceRoleRequest } -func (r ApiDcimDeviceBaysBulkUpdateRequest) DeviceBayRequest(deviceBayRequest []DeviceBayRequest) ApiDcimDeviceBaysBulkUpdateRequest { - r.deviceBayRequest = &deviceBayRequest +func (r ApiDcimDeviceRolesBulkUpdateRequest) DeviceRoleRequest(deviceRoleRequest []DeviceRoleRequest) ApiDcimDeviceRolesBulkUpdateRequest { + r.deviceRoleRequest = &deviceRoleRequest return r } -func (r ApiDcimDeviceBaysBulkUpdateRequest) Execute() ([]DeviceBay, *http.Response, error) { - return r.ApiService.DcimDeviceBaysBulkUpdateExecute(r) +func (r ApiDcimDeviceRolesBulkUpdateRequest) Execute() ([]DeviceRole, *http.Response, error) { + return r.ApiService.DcimDeviceRolesBulkUpdateExecute(r) } /* -DcimDeviceBaysBulkUpdate Method for DcimDeviceBaysBulkUpdate +DcimDeviceRolesBulkUpdate Method for DcimDeviceRolesBulkUpdate -Put a list of device bay objects. +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 ApiDcimDeviceBaysBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkUpdateRequest */ -func (a *DcimAPIService) DcimDeviceBaysBulkUpdate(ctx context.Context) ApiDcimDeviceBaysBulkUpdateRequest { - return ApiDcimDeviceBaysBulkUpdateRequest{ +func (a *DcimAPIService) DcimDeviceRolesBulkUpdate(ctx context.Context) ApiDcimDeviceRolesBulkUpdateRequest { + return ApiDcimDeviceRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBay -func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulkUpdateRequest) ([]DeviceBay, *http.Response, error) { +// @return []DeviceRole +func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBulkUpdateRequest) ([]DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/" + localVarPath := localBasePath + "/api/dcim/device-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") + if r.deviceRoleRequest == nil { + return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -17297,7 +26691,7 @@ func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayRequest + localVarPostBody = r.deviceRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17349,59 +26743,58 @@ func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBaysCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceBayRequest *DeviceBayRequest +type ApiDcimDeviceRolesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceRoleRequest *DeviceRoleRequest } -func (r ApiDcimDeviceBaysCreateRequest) DeviceBayRequest(deviceBayRequest DeviceBayRequest) ApiDcimDeviceBaysCreateRequest { - r.deviceBayRequest = &deviceBayRequest +func (r ApiDcimDeviceRolesCreateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesCreateRequest { + r.deviceRoleRequest = &deviceRoleRequest return r } -func (r ApiDcimDeviceBaysCreateRequest) Execute() (*DeviceBay, *http.Response, error) { - return r.ApiService.DcimDeviceBaysCreateExecute(r) +func (r ApiDcimDeviceRolesCreateRequest) Execute() (*DeviceRole, *http.Response, error) { + return r.ApiService.DcimDeviceRolesCreateExecute(r) } /* -DcimDeviceBaysCreate Method for DcimDeviceBaysCreate +DcimDeviceRolesCreate Method for DcimDeviceRolesCreate -Post a list of device bay objects. +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 ApiDcimDeviceBaysCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesCreateRequest */ -func (a *DcimAPIService) DcimDeviceBaysCreate(ctx context.Context) ApiDcimDeviceBaysCreateRequest { - return ApiDcimDeviceBaysCreateRequest{ +func (a *DcimAPIService) DcimDeviceRolesCreate(ctx context.Context) ApiDcimDeviceRolesCreateRequest { + return ApiDcimDeviceRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DeviceBay -func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreateRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/" + localVarPath := localBasePath + "/api/dcim/device-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceBayRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") + if r.deviceRoleRequest == nil { + return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -17422,7 +26815,7 @@ func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayRequest + localVarPostBody = r.deviceRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17474,47 +26867,47 @@ func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBaysDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDeviceRolesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDeviceBaysDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceBaysDestroyExecute(r) +func (r ApiDcimDeviceRolesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceRolesDestroyExecute(r) } /* -DcimDeviceBaysDestroy Method for DcimDeviceBaysDestroy +DcimDeviceRolesDestroy Method for DcimDeviceRolesDestroy -Delete a device bay object. +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 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 role. + @return ApiDcimDeviceRolesDestroyRequest */ -func (a *DcimAPIService) DcimDeviceBaysDestroy(ctx context.Context, id int32) ApiDcimDeviceBaysDestroyRequest { - return ApiDcimDeviceBaysDestroyRequest{ +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) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroyRequest) (*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.DcimDeviceBaysDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/device-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -17580,1759 +26973,1262 @@ func (a *DcimAPIService) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroy return localVarHTTPResponse, nil } -type ApiDcimDeviceBaysListRequest struct { - 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 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - installedDevice *[]*string - installedDeviceN *[]*string - installedDeviceId *[]*int32 - installedDeviceIdN *[]*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 -} - -func (r ApiDcimDeviceBaysListRequest) Created(created []time.Time) ApiDcimDeviceBaysListRequest { - r.created = &created - 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 -} - -func (r ApiDcimDeviceBaysListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceBaysListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiDcimDeviceBaysListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceBaysListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiDcimDeviceBaysListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceBaysListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiDcimDeviceBaysListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceBaysListRequest { - r.createdN = &createdN - return r -} - -func (r ApiDcimDeviceBaysListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceBaysListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiDcimDeviceBaysListRequest) Description(description []string) ApiDcimDeviceBaysListRequest { - r.description = &description - return r -} - -func (r ApiDcimDeviceBaysListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceBaysListRequest { - r.descriptionEmpty = &descriptionEmpty - return r +type ApiDcimDeviceRolesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 ApiDcimDeviceBaysListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceBaysListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimDeviceRolesListRequest) Color(color []string) ApiDcimDeviceRolesListRequest { + r.color = &color return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceBaysListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimDeviceRolesListRequest) ColorEmpty(colorEmpty bool) ApiDcimDeviceRolesListRequest { + r.colorEmpty = &colorEmpty return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceBaysListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimDeviceRolesListRequest) ColorIc(colorIc []string) ApiDcimDeviceRolesListRequest { + r.colorIc = &colorIc return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceBaysListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimDeviceRolesListRequest) ColorIe(colorIe []string) ApiDcimDeviceRolesListRequest { + r.colorIe = &colorIe return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceBaysListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimDeviceRolesListRequest) ColorIew(colorIew []string) ApiDcimDeviceRolesListRequest { + r.colorIew = &colorIew return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceBaysListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimDeviceRolesListRequest) ColorIsw(colorIsw []string) ApiDcimDeviceRolesListRequest { + r.colorIsw = &colorIsw return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceBaysListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimDeviceRolesListRequest) ColorN(colorN []string) ApiDcimDeviceRolesListRequest { + r.colorN = &colorN return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceBaysListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimDeviceRolesListRequest) ColorNic(colorNic []string) ApiDcimDeviceRolesListRequest { + r.colorNic = &colorNic return r } -func (r ApiDcimDeviceBaysListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceBaysListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimDeviceRolesListRequest) ColorNie(colorNie []string) ApiDcimDeviceRolesListRequest { + r.colorNie = &colorNie return r } -// Device (name) -func (r ApiDcimDeviceBaysListRequest) Device(device []*string) ApiDcimDeviceBaysListRequest { - r.device = &device +func (r ApiDcimDeviceRolesListRequest) ColorNiew(colorNiew []string) ApiDcimDeviceRolesListRequest { + r.colorNiew = &colorNiew return r } -// Device (name) -func (r ApiDcimDeviceBaysListRequest) DeviceN(deviceN []*string) ApiDcimDeviceBaysListRequest { - r.deviceN = &deviceN +func (r ApiDcimDeviceRolesListRequest) ColorNisw(colorNisw []string) ApiDcimDeviceRolesListRequest { + r.colorNisw = &colorNisw return r } -// Device (ID) -func (r ApiDcimDeviceBaysListRequest) DeviceId(deviceId []int32) ApiDcimDeviceBaysListRequest { - r.deviceId = &deviceId +// Config template (ID) +func (r ApiDcimDeviceRolesListRequest) ConfigTemplateId(configTemplateId []*int32) ApiDcimDeviceRolesListRequest { + r.configTemplateId = &configTemplateId return r } -// Device (ID) -func (r ApiDcimDeviceBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimDeviceBaysListRequest { - r.deviceIdN = &deviceIdN +// Config template (ID) +func (r ApiDcimDeviceRolesListRequest) ConfigTemplateIdN(configTemplateIdN []*int32) ApiDcimDeviceRolesListRequest { + r.configTemplateIdN = &configTemplateIdN return r } -// Device type (model) -func (r ApiDcimDeviceBaysListRequest) DeviceType(deviceType []string) ApiDcimDeviceBaysListRequest { - r.deviceType = &deviceType +func (r ApiDcimDeviceRolesListRequest) Created(created []time.Time) ApiDcimDeviceRolesListRequest { + r.created = &created return r } -// Device type (model) -func (r ApiDcimDeviceBaysListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimDeviceBaysListRequest { - r.deviceTypeN = &deviceTypeN +func (r ApiDcimDeviceRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceRolesListRequest { + r.createdEmpty = &createdEmpty return r } -// Device type (ID) -func (r ApiDcimDeviceBaysListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimDeviceBaysListRequest { - r.deviceTypeId = &deviceTypeId +func (r ApiDcimDeviceRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceRolesListRequest { + r.createdGt = &createdGt return r } -// Device type (ID) -func (r ApiDcimDeviceBaysListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimDeviceBaysListRequest { - r.deviceTypeIdN = &deviceTypeIdN +func (r ApiDcimDeviceRolesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceRolesListRequest { + r.createdGte = &createdGte return r } -func (r ApiDcimDeviceBaysListRequest) Id(id []int32) ApiDcimDeviceBaysListRequest { - r.id = &id +func (r ApiDcimDeviceRolesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceRolesListRequest { + r.createdLt = &createdLt return r } -func (r ApiDcimDeviceBaysListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceBaysListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimDeviceRolesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceRolesListRequest { + r.createdLte = &createdLte return r } -func (r ApiDcimDeviceBaysListRequest) IdGt(idGt []int32) ApiDcimDeviceBaysListRequest { - r.idGt = &idGt +func (r ApiDcimDeviceRolesListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceRolesListRequest { + r.createdN = &createdN return r } -func (r ApiDcimDeviceBaysListRequest) IdGte(idGte []int32) ApiDcimDeviceBaysListRequest { - r.idGte = &idGte +func (r ApiDcimDeviceRolesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceRolesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiDcimDeviceBaysListRequest) IdLt(idLt []int32) ApiDcimDeviceBaysListRequest { - r.idLt = &idLt +func (r ApiDcimDeviceRolesListRequest) Description(description []string) ApiDcimDeviceRolesListRequest { + r.description = &description return r } -func (r ApiDcimDeviceBaysListRequest) IdLte(idLte []int32) ApiDcimDeviceBaysListRequest { - r.idLte = &idLte +func (r ApiDcimDeviceRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceRolesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimDeviceBaysListRequest) IdN(idN []int32) ApiDcimDeviceBaysListRequest { - r.idN = &idN +func (r ApiDcimDeviceRolesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceRolesListRequest { + r.descriptionIc = &descriptionIc return r } -// Installed device (name) -func (r ApiDcimDeviceBaysListRequest) InstalledDevice(installedDevice []*string) ApiDcimDeviceBaysListRequest { - r.installedDevice = &installedDevice +func (r ApiDcimDeviceRolesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceRolesListRequest { + r.descriptionIe = &descriptionIe return r } -// Installed device (name) -func (r ApiDcimDeviceBaysListRequest) InstalledDeviceN(installedDeviceN []*string) ApiDcimDeviceBaysListRequest { - r.installedDeviceN = &installedDeviceN +func (r ApiDcimDeviceRolesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceRolesListRequest { + r.descriptionIew = &descriptionIew return r } -// Installed device (ID) -func (r ApiDcimDeviceBaysListRequest) InstalledDeviceId(installedDeviceId []*int32) ApiDcimDeviceBaysListRequest { - r.installedDeviceId = &installedDeviceId +func (r ApiDcimDeviceRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceRolesListRequest { + r.descriptionIsw = &descriptionIsw return r } -// Installed device (ID) -func (r ApiDcimDeviceBaysListRequest) InstalledDeviceIdN(installedDeviceIdN []*int32) ApiDcimDeviceBaysListRequest { - r.installedDeviceIdN = &installedDeviceIdN +func (r ApiDcimDeviceRolesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceRolesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiDcimDeviceBaysListRequest) Label(label []string) ApiDcimDeviceBaysListRequest { - r.label = &label +func (r ApiDcimDeviceRolesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceRolesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiDcimDeviceBaysListRequest) LabelEmpty(labelEmpty bool) ApiDcimDeviceBaysListRequest { - r.labelEmpty = &labelEmpty +func (r ApiDcimDeviceRolesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceRolesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiDcimDeviceBaysListRequest) LabelIc(labelIc []string) ApiDcimDeviceBaysListRequest { - r.labelIc = &labelIc +func (r ApiDcimDeviceRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceRolesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimDeviceBaysListRequest) LabelIe(labelIe []string) ApiDcimDeviceBaysListRequest { - r.labelIe = &labelIe +func (r ApiDcimDeviceRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceRolesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimDeviceBaysListRequest) LabelIew(labelIew []string) ApiDcimDeviceBaysListRequest { - r.labelIew = &labelIew +func (r ApiDcimDeviceRolesListRequest) Id(id []int32) ApiDcimDeviceRolesListRequest { + r.id = &id return r } -func (r ApiDcimDeviceBaysListRequest) LabelIsw(labelIsw []string) ApiDcimDeviceBaysListRequest { - r.labelIsw = &labelIsw +func (r ApiDcimDeviceRolesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceRolesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiDcimDeviceBaysListRequest) LabelN(labelN []string) ApiDcimDeviceBaysListRequest { - r.labelN = &labelN +func (r ApiDcimDeviceRolesListRequest) IdGt(idGt []int32) ApiDcimDeviceRolesListRequest { + r.idGt = &idGt return r } -func (r ApiDcimDeviceBaysListRequest) LabelNic(labelNic []string) ApiDcimDeviceBaysListRequest { - r.labelNic = &labelNic +func (r ApiDcimDeviceRolesListRequest) IdGte(idGte []int32) ApiDcimDeviceRolesListRequest { + r.idGte = &idGte return r } -func (r ApiDcimDeviceBaysListRequest) LabelNie(labelNie []string) ApiDcimDeviceBaysListRequest { - r.labelNie = &labelNie +func (r ApiDcimDeviceRolesListRequest) IdLt(idLt []int32) ApiDcimDeviceRolesListRequest { + r.idLt = &idLt return r } -func (r ApiDcimDeviceBaysListRequest) LabelNiew(labelNiew []string) ApiDcimDeviceBaysListRequest { - r.labelNiew = &labelNiew +func (r ApiDcimDeviceRolesListRequest) IdLte(idLte []int32) ApiDcimDeviceRolesListRequest { + r.idLte = &idLte return r } -func (r ApiDcimDeviceBaysListRequest) LabelNisw(labelNisw []string) ApiDcimDeviceBaysListRequest { - r.labelNisw = &labelNisw +func (r ApiDcimDeviceRolesListRequest) IdN(idN []int32) ApiDcimDeviceRolesListRequest { + r.idN = &idN return r } -func (r ApiDcimDeviceBaysListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimDeviceBaysListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimDeviceBaysListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimDeviceBaysListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimDeviceBaysListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimDeviceBaysListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimDeviceBaysListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimDeviceBaysListRequest) Limit(limit int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) Limit(limit int32) ApiDcimDeviceRolesListRequest { r.limit = &limit return r } -// Location (slug) -func (r ApiDcimDeviceBaysListRequest) Location(location []string) ApiDcimDeviceBaysListRequest { - r.location = &location - return r -} - -// Location (slug) -func (r ApiDcimDeviceBaysListRequest) LocationN(locationN []string) ApiDcimDeviceBaysListRequest { - r.locationN = &locationN - return r -} - -// Location (ID) -func (r ApiDcimDeviceBaysListRequest) LocationId(locationId []int32) ApiDcimDeviceBaysListRequest { - r.locationId = &locationId - return r -} - -// Location (ID) -func (r ApiDcimDeviceBaysListRequest) LocationIdN(locationIdN []int32) ApiDcimDeviceBaysListRequest { - r.locationIdN = &locationIdN - return r -} - -func (r ApiDcimDeviceBaysListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceRolesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimDeviceBaysListRequest) Name(name []string) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceRolesListRequest) Name(name []string) ApiDcimDeviceRolesListRequest { r.name = &name return r -} - -func (r ApiDcimDeviceBaysListRequest) NameEmpty(nameEmpty bool) ApiDcimDeviceBaysListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameIc(nameIc []string) ApiDcimDeviceBaysListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameIe(nameIe []string) ApiDcimDeviceBaysListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameIew(nameIew []string) ApiDcimDeviceBaysListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameIsw(nameIsw []string) ApiDcimDeviceBaysListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameN(nameN []string) ApiDcimDeviceBaysListRequest { - r.nameN = &nameN - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameNic(nameNic []string) ApiDcimDeviceBaysListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameNie(nameNie []string) ApiDcimDeviceBaysListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameNiew(nameNiew []string) ApiDcimDeviceBaysListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiDcimDeviceBaysListRequest) NameNisw(nameNisw []string) ApiDcimDeviceBaysListRequest { - r.nameNisw = &nameNisw - return r -} - -// The initial index from which to return the results. -func (r ApiDcimDeviceBaysListRequest) Offset(offset int32) ApiDcimDeviceBaysListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiDcimDeviceBaysListRequest) Ordering(ordering string) ApiDcimDeviceBaysListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiDcimDeviceBaysListRequest) Q(q string) ApiDcimDeviceBaysListRequest { - r.q = &q +} + +func (r ApiDcimDeviceRolesListRequest) NameEmpty(nameEmpty bool) ApiDcimDeviceRolesListRequest { + r.nameEmpty = &nameEmpty return r } -// Rack (name) -func (r ApiDcimDeviceBaysListRequest) Rack(rack []string) ApiDcimDeviceBaysListRequest { - r.rack = &rack +func (r ApiDcimDeviceRolesListRequest) NameIc(nameIc []string) ApiDcimDeviceRolesListRequest { + r.nameIc = &nameIc return r } -// Rack (name) -func (r ApiDcimDeviceBaysListRequest) RackN(rackN []string) ApiDcimDeviceBaysListRequest { - r.rackN = &rackN +func (r ApiDcimDeviceRolesListRequest) NameIe(nameIe []string) ApiDcimDeviceRolesListRequest { + r.nameIe = &nameIe return r } -// Rack (ID) -func (r ApiDcimDeviceBaysListRequest) RackId(rackId []int32) ApiDcimDeviceBaysListRequest { - r.rackId = &rackId +func (r ApiDcimDeviceRolesListRequest) NameIew(nameIew []string) ApiDcimDeviceRolesListRequest { + r.nameIew = &nameIew return r } -// Rack (ID) -func (r ApiDcimDeviceBaysListRequest) RackIdN(rackIdN []int32) ApiDcimDeviceBaysListRequest { - r.rackIdN = &rackIdN +func (r ApiDcimDeviceRolesListRequest) NameIsw(nameIsw []string) ApiDcimDeviceRolesListRequest { + r.nameIsw = &nameIsw return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) Region(region []int32) ApiDcimDeviceBaysListRequest { - r.region = ®ion +func (r ApiDcimDeviceRolesListRequest) NameN(nameN []string) ApiDcimDeviceRolesListRequest { + r.nameN = &nameN return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []int32) ApiDcimDeviceBaysListRequest { - r.regionN = ®ionN +func (r ApiDcimDeviceRolesListRequest) NameNic(nameNic []string) ApiDcimDeviceRolesListRequest { + r.nameNic = &nameNic return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []int32) ApiDcimDeviceBaysListRequest { - r.regionId = ®ionId +func (r ApiDcimDeviceRolesListRequest) NameNie(nameNie []string) ApiDcimDeviceRolesListRequest { + r.nameNie = &nameNie return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimDeviceBaysListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimDeviceRolesListRequest) NameNiew(nameNiew []string) ApiDcimDeviceRolesListRequest { + r.nameNiew = &nameNiew return r } -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) Role(role []string) ApiDcimDeviceBaysListRequest { - r.role = &role +func (r ApiDcimDeviceRolesListRequest) NameNisw(nameNisw []string) ApiDcimDeviceRolesListRequest { + r.nameNisw = &nameNisw return r } -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) RoleN(roleN []string) ApiDcimDeviceBaysListRequest { - r.roleN = &roleN +// The initial index from which to return the results. +func (r ApiDcimDeviceRolesListRequest) Offset(offset int32) ApiDcimDeviceRolesListRequest { + r.offset = &offset return r } -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleId(roleId []int32) ApiDcimDeviceBaysListRequest { - r.roleId = &roleId +// Which field to use when ordering the results. +func (r ApiDcimDeviceRolesListRequest) Ordering(ordering string) ApiDcimDeviceRolesListRequest { + r.ordering = &ordering return r } -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimDeviceBaysListRequest { - r.roleIdN = &roleIdN +// Search +func (r ApiDcimDeviceRolesListRequest) Q(q string) ApiDcimDeviceRolesListRequest { + r.q = &q return r } -// Site name (slug) -func (r ApiDcimDeviceBaysListRequest) Site(site []string) ApiDcimDeviceBaysListRequest { - r.site = &site +func (r ApiDcimDeviceRolesListRequest) Slug(slug []string) ApiDcimDeviceRolesListRequest { + r.slug = &slug return r } -// Site name (slug) -func (r ApiDcimDeviceBaysListRequest) SiteN(siteN []string) ApiDcimDeviceBaysListRequest { - r.siteN = &siteN +func (r ApiDcimDeviceRolesListRequest) SlugEmpty(slugEmpty bool) ApiDcimDeviceRolesListRequest { + r.slugEmpty = &slugEmpty return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimDeviceBaysListRequest { - r.siteGroup = &siteGroup +func (r ApiDcimDeviceRolesListRequest) SlugIc(slugIc []string) ApiDcimDeviceRolesListRequest { + r.slugIc = &slugIc return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDeviceBaysListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimDeviceRolesListRequest) SlugIe(slugIe []string) ApiDcimDeviceRolesListRequest { + r.slugIe = &slugIe return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDeviceBaysListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimDeviceRolesListRequest) SlugIew(slugIew []string) ApiDcimDeviceRolesListRequest { + r.slugIew = &slugIew return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDeviceBaysListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimDeviceRolesListRequest) SlugIsw(slugIsw []string) ApiDcimDeviceRolesListRequest { + r.slugIsw = &slugIsw return r } -// Site (ID) -func (r ApiDcimDeviceBaysListRequest) SiteId(siteId []int32) ApiDcimDeviceBaysListRequest { - r.siteId = &siteId +func (r ApiDcimDeviceRolesListRequest) SlugN(slugN []string) ApiDcimDeviceRolesListRequest { + r.slugN = &slugN return r } -// Site (ID) -func (r ApiDcimDeviceBaysListRequest) SiteIdN(siteIdN []int32) ApiDcimDeviceBaysListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimDeviceRolesListRequest) SlugNic(slugNic []string) ApiDcimDeviceRolesListRequest { + r.slugNic = &slugNic return r } -func (r ApiDcimDeviceBaysListRequest) Tag(tag []string) ApiDcimDeviceBaysListRequest { - r.tag = &tag +func (r ApiDcimDeviceRolesListRequest) SlugNie(slugNie []string) ApiDcimDeviceRolesListRequest { + r.slugNie = &slugNie return r } -func (r ApiDcimDeviceBaysListRequest) TagN(tagN []string) ApiDcimDeviceBaysListRequest { - r.tagN = &tagN +func (r ApiDcimDeviceRolesListRequest) SlugNiew(slugNiew []string) ApiDcimDeviceRolesListRequest { + r.slugNiew = &slugNiew return r } -func (r ApiDcimDeviceBaysListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceBaysListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimDeviceRolesListRequest) SlugNisw(slugNisw []string) ApiDcimDeviceRolesListRequest { + r.slugNisw = &slugNisw return r } -// Virtual Chassis -func (r ApiDcimDeviceBaysListRequest) VirtualChassis(virtualChassis []string) ApiDcimDeviceBaysListRequest { - r.virtualChassis = &virtualChassis +func (r ApiDcimDeviceRolesListRequest) Tag(tag []string) ApiDcimDeviceRolesListRequest { + r.tag = &tag return r } -// Virtual Chassis -func (r ApiDcimDeviceBaysListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimDeviceBaysListRequest { - r.virtualChassisN = &virtualChassisN +func (r ApiDcimDeviceRolesListRequest) TagN(tagN []string) ApiDcimDeviceRolesListRequest { + r.tagN = &tagN return r } -// Virtual Chassis (ID) -func (r ApiDcimDeviceBaysListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimDeviceBaysListRequest { - r.virtualChassisId = &virtualChassisId +func (r ApiDcimDeviceRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceRolesListRequest { + r.updatedByRequest = &updatedByRequest return r } -// Virtual Chassis (ID) -func (r ApiDcimDeviceBaysListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimDeviceBaysListRequest { - r.virtualChassisIdN = &virtualChassisIdN +func (r ApiDcimDeviceRolesListRequest) VmRole(vmRole bool) ApiDcimDeviceRolesListRequest { + r.vmRole = &vmRole return r } -func (r ApiDcimDeviceBaysListRequest) Execute() (*PaginatedDeviceBayList, *http.Response, error) { - return r.ApiService.DcimDeviceBaysListExecute(r) +func (r ApiDcimDeviceRolesListRequest) Execute() (*PaginatedDeviceRoleList, *http.Response, error) { + return r.ApiService.DcimDeviceRolesListExecute(r) } /* -DcimDeviceBaysList Method for DcimDeviceBaysList +DcimDeviceRolesList Method for DcimDeviceRolesList -Get a list of device bay objects. +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 ApiDcimDeviceBaysListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesListRequest */ -func (a *DcimAPIService) DcimDeviceBaysList(ctx context.Context) ApiDcimDeviceBaysListRequest { - return ApiDcimDeviceBaysListRequest{ +func (a *DcimAPIService) DcimDeviceRolesList(ctx context.Context) ApiDcimDeviceRolesListRequest { + return ApiDcimDeviceRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceBayList -func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListRequest) (*PaginatedDeviceBayList, *http.Response, error) { +// @return PaginatedDeviceRoleList +func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequest) (*PaginatedDeviceRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceBayList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/" + localVarPath := localBasePath + "/api/dcim/device-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } - } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__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 r.color != nil { + t := *r.color 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "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.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") } - if r.idGte != nil { - t := *r.idGte + if r.colorIc != nil { + t := *r.colorIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.colorIe != nil { + t := *r.colorIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.colorIew != nil { + t := *r.colorIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.colorIsw != nil { + t := *r.colorIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") } } - if r.installedDevice != nil { - t := *r.installedDevice + if r.colorN != nil { + t := *r.colorN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") } } - if r.installedDeviceN != nil { - t := *r.installedDeviceN + if r.colorNic != nil { + t := *r.colorNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") } } - if r.installedDeviceId != nil { - t := *r.installedDeviceId + if r.colorNie != nil { + t := *r.colorNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") } } - if r.installedDeviceIdN != nil { - t := *r.installedDeviceIdN + if r.colorNiew != nil { + t := *r.colorNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") } } - if r.label != nil { - t := *r.label + if r.colorNisw != nil { + t := *r.colorNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") } } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc + 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, "label__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "form", "multi") } } - if r.labelIe != nil { - t := *r.labelIe + 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "form", "multi") } } - if r.labelIew != nil { - t := *r.labelIew + 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.labelIsw != nil { - t := *r.labelIsw + 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.labelN != nil { - t := *r.labelN + 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "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.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.location != nil { - t := *r.location + 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, "location", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.locationN != nil { - t := *r.locationN + 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, "location__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.locationId != nil { - t := *r.locationId + 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, "location_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } - } - if r.locationIdN != nil { - t := *r.locationIdN + } + 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, "location_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + 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, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - 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, "") - } - if r.rack != nil { - t := *r.rack + 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, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.rackN != nil { - t := *r.rackN + 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, "rack__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.rackId != nil { - t := *r.rackId + 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, "rack_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + 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, "rack_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.region != nil { - t := *r.region + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.role != nil { - t := *r.role + 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, "role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.slug != nil { + t := *r.slug 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + if r.slugIe != nil { + t := *r.slugIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + if r.slugIew != nil { + t := *r.slugIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + if r.slugIsw != nil { + t := *r.slugIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + if r.slugN != nil { + t := *r.slugN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.slugNic != nil { + t := *r.slugNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.slugNie != nil { + t := *r.slugNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualChassis != nil { - t := *r.virtualChassis + if r.slugNiew != nil { + t := *r.slugNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.virtualChassisN != nil { - t := *r.virtualChassisN + if r.slugNisw != nil { + t := *r.slugNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId + 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, "virtual_chassis_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN + 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, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.vmRole != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vm_role", r.vmRole, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19401,56 +28297,55 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBaysPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedDeviceBayRequest *PatchedDeviceBayRequest +type ApiDcimDeviceRolesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedDeviceRoleRequest *PatchedDeviceRoleRequest } -func (r ApiDcimDeviceBaysPartialUpdateRequest) PatchedDeviceBayRequest(patchedDeviceBayRequest PatchedDeviceBayRequest) ApiDcimDeviceBaysPartialUpdateRequest { - r.patchedDeviceBayRequest = &patchedDeviceBayRequest +func (r ApiDcimDeviceRolesPartialUpdateRequest) PatchedDeviceRoleRequest(patchedDeviceRoleRequest PatchedDeviceRoleRequest) ApiDcimDeviceRolesPartialUpdateRequest { + r.patchedDeviceRoleRequest = &patchedDeviceRoleRequest return r } -func (r ApiDcimDeviceBaysPartialUpdateRequest) Execute() (*DeviceBay, *http.Response, error) { - return r.ApiService.DcimDeviceBaysPartialUpdateExecute(r) +func (r ApiDcimDeviceRolesPartialUpdateRequest) Execute() (*DeviceRole, *http.Response, error) { + return r.ApiService.DcimDeviceRolesPartialUpdateExecute(r) } /* -DcimDeviceBaysPartialUpdate Method for DcimDeviceBaysPartialUpdate +DcimDeviceRolesPartialUpdate Method for DcimDeviceRolesPartialUpdate -Patch a device bay object. +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 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 role. + @return ApiDcimDeviceRolesPartialUpdateRequest */ -func (a *DcimAPIService) DcimDeviceBaysPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysPartialUpdateRequest { - return ApiDcimDeviceBaysPartialUpdateRequest{ +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 DeviceBay -func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysPartialUpdateRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRolesPartialUpdateRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/device-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -19475,7 +28370,7 @@ func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedDeviceBayRequest + localVarPostBody = r.patchedDeviceRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19527,50 +28422,49 @@ func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBaysRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDeviceRolesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDeviceBaysRetrieveRequest) Execute() (*DeviceBay, *http.Response, error) { - return r.ApiService.DcimDeviceBaysRetrieveExecute(r) +func (r ApiDcimDeviceRolesRetrieveRequest) Execute() (*DeviceRole, *http.Response, error) { + return r.ApiService.DcimDeviceRolesRetrieveExecute(r) } /* -DcimDeviceBaysRetrieve Method for DcimDeviceBaysRetrieve +DcimDeviceRolesRetrieve Method for DcimDeviceRolesRetrieve -Get a device bay object. +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 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 role. + @return ApiDcimDeviceRolesRetrieveRequest */ -func (a *DcimAPIService) DcimDeviceBaysRetrieve(ctx context.Context, id int32) ApiDcimDeviceBaysRetrieveRequest { - return ApiDcimDeviceBaysRetrieveRequest{ +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 DeviceBay -func (a *DcimAPIService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrieveRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetrieveRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/device-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -19645,63 +28539,62 @@ func (a *DcimAPIService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceBaysUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - deviceBayRequest *DeviceBayRequest +type ApiDcimDeviceRolesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + deviceRoleRequest *DeviceRoleRequest } -func (r ApiDcimDeviceBaysUpdateRequest) DeviceBayRequest(deviceBayRequest DeviceBayRequest) ApiDcimDeviceBaysUpdateRequest { - r.deviceBayRequest = &deviceBayRequest +func (r ApiDcimDeviceRolesUpdateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesUpdateRequest { + r.deviceRoleRequest = &deviceRoleRequest return r } -func (r ApiDcimDeviceBaysUpdateRequest) Execute() (*DeviceBay, *http.Response, error) { - return r.ApiService.DcimDeviceBaysUpdateExecute(r) +func (r ApiDcimDeviceRolesUpdateRequest) Execute() (*DeviceRole, *http.Response, error) { + return r.ApiService.DcimDeviceRolesUpdateExecute(r) } /* -DcimDeviceBaysUpdate Method for DcimDeviceBaysUpdate +DcimDeviceRolesUpdate Method for DcimDeviceRolesUpdate -Put a device bay object. +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 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 role. + @return ApiDcimDeviceRolesUpdateRequest */ -func (a *DcimAPIService) DcimDeviceBaysUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysUpdateRequest { - return ApiDcimDeviceBaysUpdateRequest{ +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 DeviceBay -func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdateRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/device-roles/{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.deviceBayRequest == nil { - return localVarReturnValue, nil, reportError("deviceBayRequest is required and must be specified") + if r.deviceRoleRequest == nil { + return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -19722,7 +28615,7 @@ func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceBayRequest + localVarPostBody = r.deviceRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19774,56 +28667,295 @@ func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceRoleRequest *[]DeviceRoleRequest +type ApiDcimDeviceTypesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + deviceTypeRequest *[]DeviceTypeRequest } -func (r ApiDcimDeviceRolesBulkDestroyRequest) DeviceRoleRequest(deviceRoleRequest []DeviceRoleRequest) ApiDcimDeviceRolesBulkDestroyRequest { - r.deviceRoleRequest = &deviceRoleRequest +func (r ApiDcimDeviceTypesBulkDestroyRequest) DeviceTypeRequest(deviceTypeRequest []DeviceTypeRequest) ApiDcimDeviceTypesBulkDestroyRequest { + r.deviceTypeRequest = &deviceTypeRequest return r } -func (r ApiDcimDeviceRolesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceRolesBulkDestroyExecute(r) +func (r ApiDcimDeviceTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceTypesBulkDestroyExecute(r) } /* -DcimDeviceRolesBulkDestroy Method for DcimDeviceRolesBulkDestroy +DcimDeviceTypesBulkDestroy Method for DcimDeviceTypesBulkDestroy -Delete a list of device role objects. +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 ApiDcimDeviceRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesBulkDestroyRequest */ -func (a *DcimAPIService) DcimDeviceRolesBulkDestroy(ctx context.Context) ApiDcimDeviceRolesBulkDestroyRequest { - return ApiDcimDeviceRolesBulkDestroyRequest{ +func (a *DcimAPIService) DcimDeviceTypesBulkDestroy(ctx context.Context) ApiDcimDeviceTypesBulkDestroyRequest { + return ApiDcimDeviceTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesBulkDestroyRequest) (*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.DcimDeviceRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/device-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deviceTypeRequest == nil { + return nil, reportError("deviceTypeRequest 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.deviceTypeRequest + 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 ApiDcimDeviceTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceTypeRequest *[]DeviceTypeRequest +} + +func (r ApiDcimDeviceTypesBulkPartialUpdateRequest) DeviceTypeRequest(deviceTypeRequest []DeviceTypeRequest) ApiDcimDeviceTypesBulkPartialUpdateRequest { + r.deviceTypeRequest = &deviceTypeRequest + return r +} + +func (r ApiDcimDeviceTypesBulkPartialUpdateRequest) Execute() ([]DeviceType, *http.Response, error) { + return r.ApiService.DcimDeviceTypesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceTypesBulkPartialUpdateRequest { + return ApiDcimDeviceTypesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []DeviceType +func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDeviceTypesBulkPartialUpdateRequest) ([]DeviceType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/device-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deviceTypeRequest == nil { + return localVarReturnValue, nil, reportError("deviceTypeRequest 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.deviceTypeRequest + 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 ApiDcimDeviceTypesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceTypeRequest *[]DeviceTypeRequest +} + +func (r ApiDcimDeviceTypesBulkUpdateRequest) DeviceTypeRequest(deviceTypeRequest []DeviceTypeRequest) ApiDcimDeviceTypesBulkUpdateRequest { + r.deviceTypeRequest = &deviceTypeRequest + return r +} + +func (r ApiDcimDeviceTypesBulkUpdateRequest) Execute() ([]DeviceType, *http.Response, error) { + return r.ApiService.DcimDeviceTypesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimDeviceTypesBulkUpdate(ctx context.Context) ApiDcimDeviceTypesBulkUpdateRequest { + return ApiDcimDeviceTypesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []DeviceType +func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBulkUpdateRequest) ([]DeviceType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-roles/" + localVarPath := localBasePath + "/api/dcim/device-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceRoleRequest == nil { - return nil, reportError("deviceRoleRequest is required and must be specified") + if r.deviceTypeRequest == nil { + return localVarReturnValue, nil, reportError("deviceTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -19836,7 +28968,7 @@ func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesB } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -19844,7 +28976,7 @@ func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceRoleRequest + localVarPostBody = r.deviceTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19861,19 +28993,19 @@ func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesB } 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 { @@ -19881,65 +29013,73 @@ func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesB body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiDcimDeviceRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceRoleRequest *[]DeviceRoleRequest +type ApiDcimDeviceTypesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableDeviceTypeRequest *WritableDeviceTypeRequest } -func (r ApiDcimDeviceRolesBulkPartialUpdateRequest) DeviceRoleRequest(deviceRoleRequest []DeviceRoleRequest) ApiDcimDeviceRolesBulkPartialUpdateRequest { - r.deviceRoleRequest = &deviceRoleRequest +func (r ApiDcimDeviceTypesCreateRequest) WritableDeviceTypeRequest(writableDeviceTypeRequest WritableDeviceTypeRequest) ApiDcimDeviceTypesCreateRequest { + r.writableDeviceTypeRequest = &writableDeviceTypeRequest return r } -func (r ApiDcimDeviceRolesBulkPartialUpdateRequest) Execute() ([]DeviceRole, *http.Response, error) { - return r.ApiService.DcimDeviceRolesBulkPartialUpdateExecute(r) +func (r ApiDcimDeviceTypesCreateRequest) Execute() (*DeviceType, *http.Response, error) { + return r.ApiService.DcimDeviceTypesCreateExecute(r) } /* -DcimDeviceRolesBulkPartialUpdate Method for DcimDeviceRolesBulkPartialUpdate +DcimDeviceTypesCreate Method for DcimDeviceTypesCreate -Patch a list of device role objects. +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 ApiDcimDeviceRolesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesCreateRequest */ -func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceRolesBulkPartialUpdateRequest { - return ApiDcimDeviceRolesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimDeviceTypesCreate(ctx context.Context) ApiDcimDeviceTypesCreateRequest { + return ApiDcimDeviceTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceRole -func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDeviceRolesBulkPartialUpdateRequest) ([]DeviceRole, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreateRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-roles/" + localVarPath := localBasePath + "/api/dcim/device-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceRoleRequest == nil { - return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified") + if r.writableDeviceTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableDeviceTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -19960,7 +29100,7 @@ func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDevice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceRoleRequest + localVarPostBody = r.writableDeviceTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20012,63 +29152,55 @@ func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDevice return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceRoleRequest *[]DeviceRoleRequest -} - -func (r ApiDcimDeviceRolesBulkUpdateRequest) DeviceRoleRequest(deviceRoleRequest []DeviceRoleRequest) ApiDcimDeviceRolesBulkUpdateRequest { - r.deviceRoleRequest = &deviceRoleRequest - return r +type ApiDcimDeviceTypesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDeviceRolesBulkUpdateRequest) Execute() ([]DeviceRole, *http.Response, error) { - return r.ApiService.DcimDeviceRolesBulkUpdateExecute(r) +func (r ApiDcimDeviceTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDeviceTypesDestroyExecute(r) } /* -DcimDeviceRolesBulkUpdate Method for DcimDeviceRolesBulkUpdate +DcimDeviceTypesDestroy Method for DcimDeviceTypesDestroy -Put a list of device role objects. +Delete a device type object. - @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(). + @param id A unique integer value identifying this device type. + @return ApiDcimDeviceTypesDestroyRequest */ -func (a *DcimAPIService) DcimDeviceRolesBulkUpdate(ctx context.Context) ApiDcimDeviceRolesBulkUpdateRequest { - return ApiDcimDeviceRolesBulkUpdateRequest{ +func (a *DcimAPIService) DcimDeviceTypesDestroy(ctx context.Context, id int32) ApiDcimDeviceTypesDestroyRequest { + return ApiDcimDeviceTypesDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []DeviceRole -func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBulkUpdateRequest) ([]DeviceRole, *http.Response, error) { +func (a *DcimAPIService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceRole + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-roles/" + localVarPath := localBasePath + "/api/dcim/device-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.deviceRoleRequest == nil { - return localVarReturnValue, nil, reportError("deviceRoleRequest 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) @@ -20077,15 +29209,13 @@ func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBu } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.deviceRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20102,19 +29232,19 @@ func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBu } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -20122,1508 +29252,2856 @@ func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBu body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return 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 localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type ApiDcimDeviceTypesListRequest struct { + ctx context.Context + ApiService DcimAPI + airflow *DcimDeviceTypesListAirflowParameter + consolePortTemplateCount *[]int32 + consolePortTemplateCountEmpty *bool + consolePortTemplateCountGt *[]int32 + consolePortTemplateCountGte *[]int32 + consolePortTemplateCountLt *[]int32 + consolePortTemplateCountLte *[]int32 + consolePortTemplateCountN *[]int32 + consolePorts *bool + consoleServerPortTemplateCount *[]int32 + consoleServerPortTemplateCountEmpty *bool + consoleServerPortTemplateCountGt *[]int32 + consoleServerPortTemplateCountGte *[]int32 + consoleServerPortTemplateCountLt *[]int32 + consoleServerPortTemplateCountLte *[]int32 + consoleServerPortTemplateCountN *[]int32 + consoleServerPorts *bool + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + deviceBayTemplateCount *[]int32 + deviceBayTemplateCountEmpty *bool + deviceBayTemplateCountGt *[]int32 + deviceBayTemplateCountGte *[]int32 + deviceBayTemplateCountLt *[]int32 + deviceBayTemplateCountLte *[]int32 + deviceBayTemplateCountN *[]int32 + deviceBays *bool + excludeFromUtilization *bool + frontPortTemplateCount *[]int32 + frontPortTemplateCountEmpty *bool + frontPortTemplateCountGt *[]int32 + frontPortTemplateCountGte *[]int32 + frontPortTemplateCountLt *[]int32 + frontPortTemplateCountLte *[]int32 + frontPortTemplateCountN *[]int32 + hasFrontImage *bool + hasRearImage *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaceTemplateCount *[]int32 + interfaceTemplateCountEmpty *bool + interfaceTemplateCountGt *[]int32 + interfaceTemplateCountGte *[]int32 + interfaceTemplateCountLt *[]int32 + interfaceTemplateCountLte *[]int32 + interfaceTemplateCountN *[]int32 + interfaces *bool + inventoryItemTemplateCount *[]int32 + inventoryItemTemplateCountEmpty *bool + inventoryItemTemplateCountGt *[]int32 + inventoryItemTemplateCountGte *[]int32 + inventoryItemTemplateCountLt *[]int32 + inventoryItemTemplateCountLte *[]int32 + inventoryItemTemplateCountN *[]int32 + 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 + moduleBayTemplateCount *[]int32 + moduleBayTemplateCountEmpty *bool + moduleBayTemplateCountGt *[]int32 + moduleBayTemplateCountGte *[]int32 + moduleBayTemplateCountLt *[]int32 + moduleBayTemplateCountLte *[]int32 + moduleBayTemplateCountN *[]int32 + 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 + powerOutletTemplateCount *[]int32 + powerOutletTemplateCountEmpty *bool + powerOutletTemplateCountGt *[]int32 + powerOutletTemplateCountGte *[]int32 + powerOutletTemplateCountLt *[]int32 + powerOutletTemplateCountLte *[]int32 + powerOutletTemplateCountN *[]int32 + powerOutlets *bool + powerPortTemplateCount *[]int32 + powerPortTemplateCountEmpty *bool + powerPortTemplateCountGt *[]int32 + powerPortTemplateCountGte *[]int32 + powerPortTemplateCountLt *[]int32 + powerPortTemplateCountLte *[]int32 + powerPortTemplateCountN *[]int32 + powerPorts *bool + q *string + rearPortTemplateCount *[]int32 + rearPortTemplateCountEmpty *bool + rearPortTemplateCountGt *[]int32 + rearPortTemplateCountGte *[]int32 + rearPortTemplateCountLt *[]int32 + rearPortTemplateCountLte *[]int32 + rearPortTemplateCountN *[]int32 + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + subdeviceRole *ParentChildStatus + 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 *DcimDeviceTypesListWeightUnitParameter +} + +// * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed +func (r ApiDcimDeviceTypesListRequest) Airflow(airflow DcimDeviceTypesListAirflowParameter) ApiDcimDeviceTypesListRequest { + r.airflow = &airflow + return r } -type ApiDcimDeviceRolesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceRoleRequest *DeviceRoleRequest +func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCount(consolePortTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.consolePortTemplateCount = &consolePortTemplateCount + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.consolePortTemplateCountEmpty = &consolePortTemplateCountEmpty + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountGt(consolePortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.consolePortTemplateCountGt = &consolePortTemplateCountGt + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountGte(consolePortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.consolePortTemplateCountGte = &consolePortTemplateCountGte + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountLt(consolePortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.consolePortTemplateCountLt = &consolePortTemplateCountLt + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountLte(consolePortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.consolePortTemplateCountLte = &consolePortTemplateCountLte + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountN(consolePortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.consolePortTemplateCountN = &consolePortTemplateCountN + return r +} + +// Has console ports +func (r ApiDcimDeviceTypesListRequest) ConsolePorts(consolePorts bool) ApiDcimDeviceTypesListRequest { + r.consolePorts = &consolePorts + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCount(consoleServerPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.consoleServerPortTemplateCount = &consoleServerPortTemplateCount + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.consoleServerPortTemplateCountEmpty = &consoleServerPortTemplateCountEmpty + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.consoleServerPortTemplateCountGt = &consoleServerPortTemplateCountGt + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.consoleServerPortTemplateCountGte = &consoleServerPortTemplateCountGte + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.consoleServerPortTemplateCountLt = &consoleServerPortTemplateCountLt + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.consoleServerPortTemplateCountLte = &consoleServerPortTemplateCountLte + return r +} + +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.consoleServerPortTemplateCountN = &consoleServerPortTemplateCountN + return r +} + +// Has console server ports +func (r ApiDcimDeviceTypesListRequest) ConsoleServerPorts(consoleServerPorts bool) ApiDcimDeviceTypesListRequest { + r.consoleServerPorts = &consoleServerPorts + return r +} + +func (r ApiDcimDeviceTypesListRequest) Created(created []time.Time) ApiDcimDeviceTypesListRequest { + r.created = &created + 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 +} + +func (r ApiDcimDeviceTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceTypesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimDeviceTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceTypesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimDeviceTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceTypesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimDeviceTypesListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceTypesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimDeviceTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceTypesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +// Default platform (slug) +func (r ApiDcimDeviceTypesListRequest) DefaultPlatform(defaultPlatform []string) ApiDcimDeviceTypesListRequest { + r.defaultPlatform = &defaultPlatform + return r +} + +// Default platform (slug) +func (r ApiDcimDeviceTypesListRequest) DefaultPlatformN(defaultPlatformN []string) ApiDcimDeviceTypesListRequest { + r.defaultPlatformN = &defaultPlatformN + return r +} + +// Default platform (ID) +func (r ApiDcimDeviceTypesListRequest) DefaultPlatformId(defaultPlatformId []*int32) ApiDcimDeviceTypesListRequest { + r.defaultPlatformId = &defaultPlatformId + return r +} + +// Default platform (ID) +func (r ApiDcimDeviceTypesListRequest) DefaultPlatformIdN(defaultPlatformIdN []*int32) ApiDcimDeviceTypesListRequest { + r.defaultPlatformIdN = &defaultPlatformIdN + return r +} + +func (r ApiDcimDeviceTypesListRequest) Description(description []string) ApiDcimDeviceTypesListRequest { + r.description = &description + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceTypesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceTypesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceTypesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceTypesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceTypesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceTypesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceTypesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceTypesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceTypesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimDeviceTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceTypesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCount(deviceBayTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.deviceBayTemplateCount = &deviceBayTemplateCount + return r +} + +func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.deviceBayTemplateCountEmpty = &deviceBayTemplateCountEmpty + return r +} + +func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountGt(deviceBayTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.deviceBayTemplateCountGt = &deviceBayTemplateCountGt + return r +} + +func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountGte(deviceBayTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.deviceBayTemplateCountGte = &deviceBayTemplateCountGte + return r +} + +func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountLt(deviceBayTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.deviceBayTemplateCountLt = &deviceBayTemplateCountLt + return r +} + +func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountLte(deviceBayTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.deviceBayTemplateCountLte = &deviceBayTemplateCountLte + return r +} + +func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountN(deviceBayTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.deviceBayTemplateCountN = &deviceBayTemplateCountN + return r +} + +// Has device bays +func (r ApiDcimDeviceTypesListRequest) DeviceBays(deviceBays bool) ApiDcimDeviceTypesListRequest { + r.deviceBays = &deviceBays + return r +} + +func (r ApiDcimDeviceTypesListRequest) ExcludeFromUtilization(excludeFromUtilization bool) ApiDcimDeviceTypesListRequest { + r.excludeFromUtilization = &excludeFromUtilization + return r +} + +func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCount(frontPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.frontPortTemplateCount = &frontPortTemplateCount + return r +} + +func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.frontPortTemplateCountEmpty = &frontPortTemplateCountEmpty + return r +} + +func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountGt(frontPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.frontPortTemplateCountGt = &frontPortTemplateCountGt + return r +} + +func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountGte(frontPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.frontPortTemplateCountGte = &frontPortTemplateCountGte + return r +} + +func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountLt(frontPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.frontPortTemplateCountLt = &frontPortTemplateCountLt + return r +} + +func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountLte(frontPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.frontPortTemplateCountLte = &frontPortTemplateCountLte + return r +} + +func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountN(frontPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.frontPortTemplateCountN = &frontPortTemplateCountN + return r +} + +// Has a front image +func (r ApiDcimDeviceTypesListRequest) HasFrontImage(hasFrontImage bool) ApiDcimDeviceTypesListRequest { + r.hasFrontImage = &hasFrontImage + return r +} + +// Has a rear image +func (r ApiDcimDeviceTypesListRequest) HasRearImage(hasRearImage bool) ApiDcimDeviceTypesListRequest { + r.hasRearImage = &hasRearImage + return r +} + +func (r ApiDcimDeviceTypesListRequest) Id(id []int32) ApiDcimDeviceTypesListRequest { + r.id = &id + 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 +} + +func (r ApiDcimDeviceTypesListRequest) IdGte(idGte []int32) ApiDcimDeviceTypesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimDeviceTypesListRequest) IdLt(idLt []int32) ApiDcimDeviceTypesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimDeviceTypesListRequest) IdLte(idLte []int32) ApiDcimDeviceTypesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimDeviceTypesListRequest) IdN(idN []int32) ApiDcimDeviceTypesListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCount(interfaceTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.interfaceTemplateCount = &interfaceTemplateCount + return r +} + +func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.interfaceTemplateCountEmpty = &interfaceTemplateCountEmpty + return r +} + +func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountGt(interfaceTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.interfaceTemplateCountGt = &interfaceTemplateCountGt + return r +} + +func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountGte(interfaceTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.interfaceTemplateCountGte = &interfaceTemplateCountGte + return r +} + +func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountLt(interfaceTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.interfaceTemplateCountLt = &interfaceTemplateCountLt + return r +} + +func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountLte(interfaceTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.interfaceTemplateCountLte = &interfaceTemplateCountLte + return r +} + +func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountN(interfaceTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.interfaceTemplateCountN = &interfaceTemplateCountN + return r +} + +// Has interfaces +func (r ApiDcimDeviceTypesListRequest) Interfaces(interfaces bool) ApiDcimDeviceTypesListRequest { + r.interfaces = &interfaces + return r +} + +func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCount(inventoryItemTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.inventoryItemTemplateCount = &inventoryItemTemplateCount + return r +} + +func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.inventoryItemTemplateCountEmpty = &inventoryItemTemplateCountEmpty + return r } -func (r ApiDcimDeviceRolesCreateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesCreateRequest { - r.deviceRoleRequest = &deviceRoleRequest +func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountGt(inventoryItemTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.inventoryItemTemplateCountGt = &inventoryItemTemplateCountGt return r } -func (r ApiDcimDeviceRolesCreateRequest) Execute() (*DeviceRole, *http.Response, error) { - return r.ApiService.DcimDeviceRolesCreateExecute(r) +func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountGte(inventoryItemTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.inventoryItemTemplateCountGte = &inventoryItemTemplateCountGte + return r } -/* -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 -*/ -func (a *DcimAPIService) DcimDeviceRolesCreate(ctx context.Context) ApiDcimDeviceRolesCreateRequest { - return ApiDcimDeviceRolesCreateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountLt(inventoryItemTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.inventoryItemTemplateCountLt = &inventoryItemTemplateCountLt + return r } -// Execute executes the request -// -// @return DeviceRole -func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreateRequest) (*DeviceRole, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/device-roles/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.deviceRoleRequest == nil { - return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountLte(inventoryItemTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.inventoryItemTemplateCountLte = &inventoryItemTemplateCountLte + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountN(inventoryItemTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.inventoryItemTemplateCountN = &inventoryItemTemplateCountN + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +// Has inventory items +func (r ApiDcimDeviceTypesListRequest) InventoryItems(inventoryItems bool) ApiDcimDeviceTypesListRequest { + r.inventoryItems = &inventoryItems + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.deviceRoleRequest - 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 ApiDcimDeviceTypesListRequest) IsFullDepth(isFullDepth bool) ApiDcimDeviceTypesListRequest { + r.isFullDepth = &isFullDepth + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimDeviceTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdated = &lastUpdated + 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 - } +func (r ApiDcimDeviceTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimDeviceTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + 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 ApiDcimDeviceTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimDeviceTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r } -type ApiDcimDeviceRolesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +func (r ApiDcimDeviceTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r } -func (r ApiDcimDeviceRolesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceRolesDestroyExecute(r) +func (r ApiDcimDeviceTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r } -/* -DcimDeviceRolesDestroy Method for DcimDeviceRolesDestroy +// Number of results to return per page. +func (r ApiDcimDeviceTypesListRequest) Limit(limit int32) ApiDcimDeviceTypesListRequest { + r.limit = &limit + return r +} -Delete a device role object. +// Manufacturer (slug) +func (r ApiDcimDeviceTypesListRequest) Manufacturer(manufacturer []string) ApiDcimDeviceTypesListRequest { + r.manufacturer = &manufacturer + 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 device role. - @return ApiDcimDeviceRolesDestroyRequest -*/ -func (a *DcimAPIService) DcimDeviceRolesDestroy(ctx context.Context, id int32) ApiDcimDeviceRolesDestroyRequest { - return ApiDcimDeviceRolesDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +// Manufacturer (slug) +func (r ApiDcimDeviceTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimDeviceTypesListRequest { + r.manufacturerN = &manufacturerN + return r } -// Execute executes the request -func (a *DcimAPIService) DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) +// Manufacturer (ID) +func (r ApiDcimDeviceTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimDeviceTypesListRequest { + r.manufacturerId = &manufacturerId + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } +// Manufacturer (ID) +func (r ApiDcimDeviceTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimDeviceTypesListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} - localVarPath := localBasePath + "/api/dcim/device-roles/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimDeviceTypesListRequest) Model(model []string) ApiDcimDeviceTypesListRequest { + r.model = &model + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiDcimDeviceTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimDeviceTypesListRequest { + r.modelEmpty = &modelEmpty + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiDcimDeviceTypesListRequest) ModelIc(modelIc []string) ApiDcimDeviceTypesListRequest { + r.modelIc = &modelIc + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimDeviceTypesListRequest) ModelIe(modelIe []string) ApiDcimDeviceTypesListRequest { + r.modelIe = &modelIe + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} +func (r ApiDcimDeviceTypesListRequest) ModelIew(modelIew []string) ApiDcimDeviceTypesListRequest { + r.modelIew = &modelIew + 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 nil, err - } +func (r ApiDcimDeviceTypesListRequest) ModelIsw(modelIsw []string) ApiDcimDeviceTypesListRequest { + r.modelIsw = &modelIsw + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } +func (r ApiDcimDeviceTypesListRequest) ModelN(modelN []string) ApiDcimDeviceTypesListRequest { + r.modelN = &modelN + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } +func (r ApiDcimDeviceTypesListRequest) ModelNic(modelNic []string) ApiDcimDeviceTypesListRequest { + r.modelNic = &modelNic + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } +func (r ApiDcimDeviceTypesListRequest) ModelNie(modelNie []string) ApiDcimDeviceTypesListRequest { + r.modelNie = &modelNie + return r +} - return localVarHTTPResponse, nil +func (r ApiDcimDeviceTypesListRequest) ModelNiew(modelNiew []string) ApiDcimDeviceTypesListRequest { + r.modelNiew = &modelNiew + return r } -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 - configTemplateIdN *[]*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 - 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 ApiDcimDeviceTypesListRequest) ModelNisw(modelNisw []string) ApiDcimDeviceTypesListRequest { + r.modelNisw = &modelNisw + return r } -func (r ApiDcimDeviceRolesListRequest) Color(color []string) ApiDcimDeviceRolesListRequest { - r.color = &color +func (r ApiDcimDeviceTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceTypesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimDeviceRolesListRequest) ColorEmpty(colorEmpty bool) ApiDcimDeviceRolesListRequest { - r.colorEmpty = &colorEmpty +func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCount(moduleBayTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.moduleBayTemplateCount = &moduleBayTemplateCount return r } -func (r ApiDcimDeviceRolesListRequest) ColorIc(colorIc []string) ApiDcimDeviceRolesListRequest { - r.colorIc = &colorIc +func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.moduleBayTemplateCountEmpty = &moduleBayTemplateCountEmpty return r } -func (r ApiDcimDeviceRolesListRequest) ColorIe(colorIe []string) ApiDcimDeviceRolesListRequest { - r.colorIe = &colorIe +func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountGt(moduleBayTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.moduleBayTemplateCountGt = &moduleBayTemplateCountGt return r } -func (r ApiDcimDeviceRolesListRequest) ColorIew(colorIew []string) ApiDcimDeviceRolesListRequest { - r.colorIew = &colorIew +func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountGte(moduleBayTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.moduleBayTemplateCountGte = &moduleBayTemplateCountGte return r } -func (r ApiDcimDeviceRolesListRequest) ColorIsw(colorIsw []string) ApiDcimDeviceRolesListRequest { - r.colorIsw = &colorIsw +func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountLt(moduleBayTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.moduleBayTemplateCountLt = &moduleBayTemplateCountLt return r } -func (r ApiDcimDeviceRolesListRequest) ColorN(colorN []string) ApiDcimDeviceRolesListRequest { - r.colorN = &colorN +func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountLte(moduleBayTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.moduleBayTemplateCountLte = &moduleBayTemplateCountLte return r } -func (r ApiDcimDeviceRolesListRequest) ColorNic(colorNic []string) ApiDcimDeviceRolesListRequest { - r.colorNic = &colorNic +func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountN(moduleBayTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.moduleBayTemplateCountN = &moduleBayTemplateCountN return r } -func (r ApiDcimDeviceRolesListRequest) ColorNie(colorNie []string) ApiDcimDeviceRolesListRequest { - r.colorNie = &colorNie +// Has module bays +func (r ApiDcimDeviceTypesListRequest) ModuleBays(moduleBays bool) ApiDcimDeviceTypesListRequest { + r.moduleBays = &moduleBays return r } -func (r ApiDcimDeviceRolesListRequest) ColorNiew(colorNiew []string) ApiDcimDeviceRolesListRequest { - r.colorNiew = &colorNiew +// The initial index from which to return the results. +func (r ApiDcimDeviceTypesListRequest) Offset(offset int32) ApiDcimDeviceTypesListRequest { + r.offset = &offset return r } -func (r ApiDcimDeviceRolesListRequest) ColorNisw(colorNisw []string) ApiDcimDeviceRolesListRequest { - r.colorNisw = &colorNisw +// Which field to use when ordering the results. +func (r ApiDcimDeviceTypesListRequest) Ordering(ordering string) ApiDcimDeviceTypesListRequest { + r.ordering = &ordering return r } -// Config template (ID) -func (r ApiDcimDeviceRolesListRequest) ConfigTemplateId(configTemplateId []*int32) ApiDcimDeviceRolesListRequest { - r.configTemplateId = &configTemplateId +func (r ApiDcimDeviceTypesListRequest) PartNumber(partNumber []string) ApiDcimDeviceTypesListRequest { + r.partNumber = &partNumber return r } -// Config template (ID) -func (r ApiDcimDeviceRolesListRequest) ConfigTemplateIdN(configTemplateIdN []*int32) ApiDcimDeviceRolesListRequest { - r.configTemplateIdN = &configTemplateIdN +func (r ApiDcimDeviceTypesListRequest) PartNumberEmpty(partNumberEmpty bool) ApiDcimDeviceTypesListRequest { + r.partNumberEmpty = &partNumberEmpty return r } -func (r ApiDcimDeviceRolesListRequest) Created(created []time.Time) ApiDcimDeviceRolesListRequest { - r.created = &created +func (r ApiDcimDeviceTypesListRequest) PartNumberIc(partNumberIc []string) ApiDcimDeviceTypesListRequest { + r.partNumberIc = &partNumberIc return r } -func (r ApiDcimDeviceRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceRolesListRequest { - r.createdEmpty = &createdEmpty +func (r ApiDcimDeviceTypesListRequest) PartNumberIe(partNumberIe []string) ApiDcimDeviceTypesListRequest { + r.partNumberIe = &partNumberIe return r } -func (r ApiDcimDeviceRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceRolesListRequest { - r.createdGt = &createdGt +func (r ApiDcimDeviceTypesListRequest) PartNumberIew(partNumberIew []string) ApiDcimDeviceTypesListRequest { + r.partNumberIew = &partNumberIew return r } -func (r ApiDcimDeviceRolesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceRolesListRequest { - r.createdGte = &createdGte +func (r ApiDcimDeviceTypesListRequest) PartNumberIsw(partNumberIsw []string) ApiDcimDeviceTypesListRequest { + r.partNumberIsw = &partNumberIsw return r } -func (r ApiDcimDeviceRolesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceRolesListRequest { - r.createdLt = &createdLt +func (r ApiDcimDeviceTypesListRequest) PartNumberN(partNumberN []string) ApiDcimDeviceTypesListRequest { + r.partNumberN = &partNumberN return r } -func (r ApiDcimDeviceRolesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceRolesListRequest { - r.createdLte = &createdLte +func (r ApiDcimDeviceTypesListRequest) PartNumberNic(partNumberNic []string) ApiDcimDeviceTypesListRequest { + r.partNumberNic = &partNumberNic return r } -func (r ApiDcimDeviceRolesListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceRolesListRequest { - r.createdN = &createdN +func (r ApiDcimDeviceTypesListRequest) PartNumberNie(partNumberNie []string) ApiDcimDeviceTypesListRequest { + r.partNumberNie = &partNumberNie return r } -func (r ApiDcimDeviceRolesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceRolesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimDeviceTypesListRequest) PartNumberNiew(partNumberNiew []string) ApiDcimDeviceTypesListRequest { + r.partNumberNiew = &partNumberNiew return r } -func (r ApiDcimDeviceRolesListRequest) Description(description []string) ApiDcimDeviceRolesListRequest { - r.description = &description +func (r ApiDcimDeviceTypesListRequest) PartNumberNisw(partNumberNisw []string) ApiDcimDeviceTypesListRequest { + r.partNumberNisw = &partNumberNisw return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceRolesListRequest { - r.descriptionEmpty = &descriptionEmpty +// Has pass-through ports +func (r ApiDcimDeviceTypesListRequest) PassThroughPorts(passThroughPorts bool) ApiDcimDeviceTypesListRequest { + r.passThroughPorts = &passThroughPorts return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceRolesListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCount(powerOutletTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.powerOutletTemplateCount = &powerOutletTemplateCount return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceRolesListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.powerOutletTemplateCountEmpty = &powerOutletTemplateCountEmpty return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceRolesListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountGt(powerOutletTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.powerOutletTemplateCountGt = &powerOutletTemplateCountGt return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceRolesListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountGte(powerOutletTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.powerOutletTemplateCountGte = &powerOutletTemplateCountGte return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceRolesListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountLt(powerOutletTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.powerOutletTemplateCountLt = &powerOutletTemplateCountLt return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceRolesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountLte(powerOutletTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.powerOutletTemplateCountLte = &powerOutletTemplateCountLte return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceRolesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountN(powerOutletTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.powerOutletTemplateCountN = &powerOutletTemplateCountN return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceRolesListRequest { - r.descriptionNiew = &descriptionNiew +// Has power outlets +func (r ApiDcimDeviceTypesListRequest) PowerOutlets(powerOutlets bool) ApiDcimDeviceTypesListRequest { + r.powerOutlets = &powerOutlets return r } -func (r ApiDcimDeviceRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceRolesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCount(powerPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.powerPortTemplateCount = &powerPortTemplateCount return r } -func (r ApiDcimDeviceRolesListRequest) Id(id []int32) ApiDcimDeviceRolesListRequest { - r.id = &id +func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.powerPortTemplateCountEmpty = &powerPortTemplateCountEmpty return r } -func (r ApiDcimDeviceRolesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceRolesListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountGt(powerPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.powerPortTemplateCountGt = &powerPortTemplateCountGt return r } -func (r ApiDcimDeviceRolesListRequest) IdGt(idGt []int32) ApiDcimDeviceRolesListRequest { - r.idGt = &idGt +func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountGte(powerPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.powerPortTemplateCountGte = &powerPortTemplateCountGte return r } -func (r ApiDcimDeviceRolesListRequest) IdGte(idGte []int32) ApiDcimDeviceRolesListRequest { - r.idGte = &idGte +func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountLt(powerPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.powerPortTemplateCountLt = &powerPortTemplateCountLt return r } -func (r ApiDcimDeviceRolesListRequest) IdLt(idLt []int32) ApiDcimDeviceRolesListRequest { - r.idLt = &idLt +func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountLte(powerPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.powerPortTemplateCountLte = &powerPortTemplateCountLte return r } -func (r ApiDcimDeviceRolesListRequest) IdLte(idLte []int32) ApiDcimDeviceRolesListRequest { - r.idLte = &idLte +func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountN(powerPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.powerPortTemplateCountN = &powerPortTemplateCountN return r } -func (r ApiDcimDeviceRolesListRequest) IdN(idN []int32) ApiDcimDeviceRolesListRequest { - r.idN = &idN +// Has power ports +func (r ApiDcimDeviceTypesListRequest) PowerPorts(powerPorts bool) ApiDcimDeviceTypesListRequest { + r.powerPorts = &powerPorts return r } -func (r ApiDcimDeviceRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceRolesListRequest { - r.lastUpdated = &lastUpdated +// Search +func (r ApiDcimDeviceTypesListRequest) Q(q string) ApiDcimDeviceTypesListRequest { + r.q = &q return r } -func (r ApiDcimDeviceRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceRolesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCount(rearPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { + r.rearPortTemplateCount = &rearPortTemplateCount return r } -func (r ApiDcimDeviceRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceRolesListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountEmpty(rearPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { + r.rearPortTemplateCountEmpty = &rearPortTemplateCountEmpty return r } -func (r ApiDcimDeviceRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceRolesListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountGt(rearPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { + r.rearPortTemplateCountGt = &rearPortTemplateCountGt return r } -func (r ApiDcimDeviceRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceRolesListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountGte(rearPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { + r.rearPortTemplateCountGte = &rearPortTemplateCountGte return r } -func (r ApiDcimDeviceRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceRolesListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountLt(rearPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { + r.rearPortTemplateCountLt = &rearPortTemplateCountLt return r } -func (r ApiDcimDeviceRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceRolesListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountLte(rearPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { + r.rearPortTemplateCountLte = &rearPortTemplateCountLte return r } -// Number of results to return per page. -func (r ApiDcimDeviceRolesListRequest) Limit(limit int32) ApiDcimDeviceRolesListRequest { - r.limit = &limit +func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountN(rearPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { + r.rearPortTemplateCountN = &rearPortTemplateCountN return r } -func (r ApiDcimDeviceRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceRolesListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiDcimDeviceTypesListRequest) Slug(slug []string) ApiDcimDeviceTypesListRequest { + r.slug = &slug return r } -func (r ApiDcimDeviceRolesListRequest) Name(name []string) ApiDcimDeviceRolesListRequest { - r.name = &name +func (r ApiDcimDeviceTypesListRequest) SlugEmpty(slugEmpty bool) ApiDcimDeviceTypesListRequest { + r.slugEmpty = &slugEmpty return r } -func (r ApiDcimDeviceRolesListRequest) NameEmpty(nameEmpty bool) ApiDcimDeviceRolesListRequest { - r.nameEmpty = &nameEmpty +func (r ApiDcimDeviceTypesListRequest) SlugIc(slugIc []string) ApiDcimDeviceTypesListRequest { + r.slugIc = &slugIc return r } -func (r ApiDcimDeviceRolesListRequest) NameIc(nameIc []string) ApiDcimDeviceRolesListRequest { - r.nameIc = &nameIc +func (r ApiDcimDeviceTypesListRequest) SlugIe(slugIe []string) ApiDcimDeviceTypesListRequest { + r.slugIe = &slugIe return r } -func (r ApiDcimDeviceRolesListRequest) NameIe(nameIe []string) ApiDcimDeviceRolesListRequest { - r.nameIe = &nameIe +func (r ApiDcimDeviceTypesListRequest) SlugIew(slugIew []string) ApiDcimDeviceTypesListRequest { + r.slugIew = &slugIew return r } -func (r ApiDcimDeviceRolesListRequest) NameIew(nameIew []string) ApiDcimDeviceRolesListRequest { - r.nameIew = &nameIew +func (r ApiDcimDeviceTypesListRequest) SlugIsw(slugIsw []string) ApiDcimDeviceTypesListRequest { + r.slugIsw = &slugIsw return r } -func (r ApiDcimDeviceRolesListRequest) NameIsw(nameIsw []string) ApiDcimDeviceRolesListRequest { - r.nameIsw = &nameIsw +func (r ApiDcimDeviceTypesListRequest) SlugN(slugN []string) ApiDcimDeviceTypesListRequest { + r.slugN = &slugN return r } -func (r ApiDcimDeviceRolesListRequest) NameN(nameN []string) ApiDcimDeviceRolesListRequest { - r.nameN = &nameN +func (r ApiDcimDeviceTypesListRequest) SlugNic(slugNic []string) ApiDcimDeviceTypesListRequest { + r.slugNic = &slugNic return r } -func (r ApiDcimDeviceRolesListRequest) NameNic(nameNic []string) ApiDcimDeviceRolesListRequest { - r.nameNic = &nameNic +func (r ApiDcimDeviceTypesListRequest) SlugNie(slugNie []string) ApiDcimDeviceTypesListRequest { + r.slugNie = &slugNie return r } -func (r ApiDcimDeviceRolesListRequest) NameNie(nameNie []string) ApiDcimDeviceRolesListRequest { - r.nameNie = &nameNie +func (r ApiDcimDeviceTypesListRequest) SlugNiew(slugNiew []string) ApiDcimDeviceTypesListRequest { + r.slugNiew = &slugNiew return r } -func (r ApiDcimDeviceRolesListRequest) NameNiew(nameNiew []string) ApiDcimDeviceRolesListRequest { - r.nameNiew = &nameNiew +func (r ApiDcimDeviceTypesListRequest) SlugNisw(slugNisw []string) ApiDcimDeviceTypesListRequest { + r.slugNisw = &slugNisw return r } -func (r ApiDcimDeviceRolesListRequest) NameNisw(nameNisw []string) ApiDcimDeviceRolesListRequest { - r.nameNisw = &nameNisw +// 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 +func (r ApiDcimDeviceTypesListRequest) SubdeviceRole(subdeviceRole ParentChildStatus) ApiDcimDeviceTypesListRequest { + r.subdeviceRole = &subdeviceRole return r } -// The initial index from which to return the results. -func (r ApiDcimDeviceRolesListRequest) Offset(offset int32) ApiDcimDeviceRolesListRequest { - r.offset = &offset +func (r ApiDcimDeviceTypesListRequest) Tag(tag []string) ApiDcimDeviceTypesListRequest { + r.tag = &tag return r } -// Which field to use when ordering the results. -func (r ApiDcimDeviceRolesListRequest) Ordering(ordering string) ApiDcimDeviceRolesListRequest { - r.ordering = &ordering +func (r ApiDcimDeviceTypesListRequest) TagN(tagN []string) ApiDcimDeviceTypesListRequest { + r.tagN = &tagN return r } -// Search -func (r ApiDcimDeviceRolesListRequest) Q(q string) ApiDcimDeviceRolesListRequest { - r.q = &q +func (r ApiDcimDeviceTypesListRequest) UHeight(uHeight []float64) ApiDcimDeviceTypesListRequest { + r.uHeight = &uHeight return r } -func (r ApiDcimDeviceRolesListRequest) Slug(slug []string) ApiDcimDeviceRolesListRequest { - r.slug = &slug +func (r ApiDcimDeviceTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimDeviceTypesListRequest { + r.uHeightEmpty = &uHeightEmpty return r } -func (r ApiDcimDeviceRolesListRequest) SlugEmpty(slugEmpty bool) ApiDcimDeviceRolesListRequest { - r.slugEmpty = &slugEmpty +func (r ApiDcimDeviceTypesListRequest) UHeightGt(uHeightGt []float64) ApiDcimDeviceTypesListRequest { + r.uHeightGt = &uHeightGt return r } -func (r ApiDcimDeviceRolesListRequest) SlugIc(slugIc []string) ApiDcimDeviceRolesListRequest { - r.slugIc = &slugIc +func (r ApiDcimDeviceTypesListRequest) UHeightGte(uHeightGte []float64) ApiDcimDeviceTypesListRequest { + r.uHeightGte = &uHeightGte return r } -func (r ApiDcimDeviceRolesListRequest) SlugIe(slugIe []string) ApiDcimDeviceRolesListRequest { - r.slugIe = &slugIe +func (r ApiDcimDeviceTypesListRequest) UHeightLt(uHeightLt []float64) ApiDcimDeviceTypesListRequest { + r.uHeightLt = &uHeightLt return r } -func (r ApiDcimDeviceRolesListRequest) SlugIew(slugIew []string) ApiDcimDeviceRolesListRequest { - r.slugIew = &slugIew +func (r ApiDcimDeviceTypesListRequest) UHeightLte(uHeightLte []float64) ApiDcimDeviceTypesListRequest { + r.uHeightLte = &uHeightLte return r } -func (r ApiDcimDeviceRolesListRequest) SlugIsw(slugIsw []string) ApiDcimDeviceRolesListRequest { - r.slugIsw = &slugIsw +func (r ApiDcimDeviceTypesListRequest) UHeightN(uHeightN []float64) ApiDcimDeviceTypesListRequest { + r.uHeightN = &uHeightN return r } -func (r ApiDcimDeviceRolesListRequest) SlugN(slugN []string) ApiDcimDeviceRolesListRequest { - r.slugN = &slugN +func (r ApiDcimDeviceTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceTypesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimDeviceRolesListRequest) SlugNic(slugNic []string) ApiDcimDeviceRolesListRequest { - r.slugNic = &slugNic +func (r ApiDcimDeviceTypesListRequest) Weight(weight []float64) ApiDcimDeviceTypesListRequest { + r.weight = &weight return r } -func (r ApiDcimDeviceRolesListRequest) SlugNie(slugNie []string) ApiDcimDeviceRolesListRequest { - r.slugNie = &slugNie +func (r ApiDcimDeviceTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimDeviceTypesListRequest { + r.weightEmpty = &weightEmpty return r } -func (r ApiDcimDeviceRolesListRequest) SlugNiew(slugNiew []string) ApiDcimDeviceRolesListRequest { - r.slugNiew = &slugNiew +func (r ApiDcimDeviceTypesListRequest) WeightGt(weightGt []float64) ApiDcimDeviceTypesListRequest { + r.weightGt = &weightGt return r } -func (r ApiDcimDeviceRolesListRequest) SlugNisw(slugNisw []string) ApiDcimDeviceRolesListRequest { - r.slugNisw = &slugNisw +func (r ApiDcimDeviceTypesListRequest) WeightGte(weightGte []float64) ApiDcimDeviceTypesListRequest { + r.weightGte = &weightGte return r } -func (r ApiDcimDeviceRolesListRequest) Tag(tag []string) ApiDcimDeviceRolesListRequest { - r.tag = &tag +func (r ApiDcimDeviceTypesListRequest) WeightLt(weightLt []float64) ApiDcimDeviceTypesListRequest { + r.weightLt = &weightLt return r } -func (r ApiDcimDeviceRolesListRequest) TagN(tagN []string) ApiDcimDeviceRolesListRequest { - r.tagN = &tagN +func (r ApiDcimDeviceTypesListRequest) WeightLte(weightLte []float64) ApiDcimDeviceTypesListRequest { + r.weightLte = &weightLte return r } -func (r ApiDcimDeviceRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceRolesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimDeviceTypesListRequest) WeightN(weightN []float64) ApiDcimDeviceTypesListRequest { + r.weightN = &weightN return r } -func (r ApiDcimDeviceRolesListRequest) VmRole(vmRole bool) ApiDcimDeviceRolesListRequest { - r.vmRole = &vmRole +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimDeviceTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimDeviceTypesListRequest { + r.weightUnit = &weightUnit return r } -func (r ApiDcimDeviceRolesListRequest) Execute() (*PaginatedDeviceRoleList, *http.Response, error) { - return r.ApiService.DcimDeviceRolesListExecute(r) +func (r ApiDcimDeviceTypesListRequest) Execute() (*PaginatedDeviceTypeList, *http.Response, error) { + return r.ApiService.DcimDeviceTypesListExecute(r) } /* -DcimDeviceRolesList Method for DcimDeviceRolesList +DcimDeviceTypesList Method for DcimDeviceTypesList -Get a list of device role objects. +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 ApiDcimDeviceRolesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesListRequest */ -func (a *DcimAPIService) DcimDeviceRolesList(ctx context.Context) ApiDcimDeviceRolesListRequest { - return ApiDcimDeviceRolesListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/device-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "form", "") + } + if r.consolePortTemplateCount != nil { + t := *r.consolePortTemplateCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count", t, "form", "multi") + } + } + if r.consolePortTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__empty", r.consolePortTemplateCountEmpty, "form", "") + } + if r.consolePortTemplateCountGt != nil { + t := *r.consolePortTemplateCountGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gt", t, "form", "multi") + } + } + if r.consolePortTemplateCountGte != nil { + t := *r.consolePortTemplateCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gte", t, "form", "multi") + } + } + if r.consolePortTemplateCountLt != nil { + t := *r.consolePortTemplateCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lt", t, "form", "multi") + } + } + if r.consolePortTemplateCountLte != nil { + t := *r.consolePortTemplateCountLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lte", t, "form", "multi") + } + } + if r.consolePortTemplateCountN != nil { + t := *r.consolePortTemplateCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__n", t, "form", "multi") + } + } + if r.consolePorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "form", "") + } + if r.consoleServerPortTemplateCount != nil { + t := *r.consoleServerPortTemplateCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count", t, "form", "multi") + } + } + if r.consoleServerPortTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__empty", r.consoleServerPortTemplateCountEmpty, "form", "") + } + if r.consoleServerPortTemplateCountGt != nil { + t := *r.consoleServerPortTemplateCountGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gt", t, "form", "multi") + } + } + if r.consoleServerPortTemplateCountGte != nil { + t := *r.consoleServerPortTemplateCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gte", t, "form", "multi") + } + } + if r.consoleServerPortTemplateCountLt != nil { + t := *r.consoleServerPortTemplateCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lt", t, "form", "multi") + } + } + if r.consoleServerPortTemplateCountLte != nil { + t := *r.consoleServerPortTemplateCountLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lte", t, "form", "multi") + } + } + if r.consoleServerPortTemplateCountN != nil { + t := *r.consoleServerPortTemplateCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__n", t, "form", "multi") + } + } + if r.consoleServerPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + if r.defaultPlatform != nil { + t := *r.defaultPlatform + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform", t, "form", "multi") + } + } + if r.defaultPlatformN != nil { + t := *r.defaultPlatformN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform__n", t, "form", "multi") + } + } + if r.defaultPlatformId != nil { + t := *r.defaultPlatformId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id", t, "form", "multi") + } + } + if r.defaultPlatformIdN != nil { + t := *r.defaultPlatformIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.deviceBayTemplateCount != nil { + t := *r.deviceBayTemplateCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count", t, "form", "multi") + } + } + if r.deviceBayTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__empty", r.deviceBayTemplateCountEmpty, "form", "") + } + if r.deviceBayTemplateCountGt != nil { + t := *r.deviceBayTemplateCountGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gt", t, "form", "multi") + } + } + if r.deviceBayTemplateCountGte != nil { + t := *r.deviceBayTemplateCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gte", t, "form", "multi") + } + } + if r.deviceBayTemplateCountLt != nil { + t := *r.deviceBayTemplateCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lt", t, "form", "multi") + } + } + if r.deviceBayTemplateCountLte != nil { + t := *r.deviceBayTemplateCountLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lte", t, "form", "multi") + } + } + if r.deviceBayTemplateCountN != nil { + t := *r.deviceBayTemplateCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__n", t, "form", "multi") + } + } + if r.deviceBays != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "form", "") + } + if r.excludeFromUtilization != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_from_utilization", r.excludeFromUtilization, "form", "") + } + if r.frontPortTemplateCount != nil { + t := *r.frontPortTemplateCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedDeviceRoleList -func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequest) (*PaginatedDeviceRoleList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceRoleList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.frontPortTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__empty", r.frontPortTemplateCountEmpty, "form", "") } - - localVarPath := localBasePath + "/api/dcim/device-roles/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.color != nil { - t := *r.color + if r.frontPortTemplateCountGt != nil { + t := *r.frontPortTemplateCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gt", t, "form", "multi") } } - if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + if r.frontPortTemplateCountGte != nil { + t := *r.frontPortTemplateCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gte", t, "form", "multi") + } } - if r.colorIc != nil { - t := *r.colorIc + if r.frontPortTemplateCountLt != nil { + t := *r.frontPortTemplateCountLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lt", t, "form", "multi") } } - if r.colorIe != nil { - t := *r.colorIe + if r.frontPortTemplateCountLte != nil { + t := *r.frontPortTemplateCountLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lte", t, "form", "multi") } } - if r.colorIew != nil { - t := *r.colorIew + if r.frontPortTemplateCountN != nil { + t := *r.frontPortTemplateCountN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__n", t, "form", "multi") } } - if r.colorIsw != nil { - t := *r.colorIsw + if r.hasFrontImage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_front_image", r.hasFrontImage, "form", "") + } + if r.hasRearImage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_rear_image", r.hasRearImage, "form", "") + } + 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, "color__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.colorN != nil { - t := *r.colorN + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "color__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.colorNic != nil { - t := *r.colorNic + 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, "color__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.colorNie != nil { - t := *r.colorNie + 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, "color__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.colorNiew != nil { - t := *r.colorNiew + 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, "color__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.colorNisw != nil { - t := *r.colorNisw + 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, "color__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.configTemplateId != nil { - t := *r.configTemplateId + if r.interfaceTemplateCount != nil { + t := *r.interfaceTemplateCount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count", t, "form", "multi") } } - if r.configTemplateIdN != nil { - t := *r.configTemplateIdN + if r.interfaceTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__empty", r.interfaceTemplateCountEmpty, "form", "") + } + if r.interfaceTemplateCountGt != nil { + t := *r.interfaceTemplateCountGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gt", t, "form", "multi") } } - if r.created != nil { - t := *r.created + if r.interfaceTemplateCountGte != nil { + t := *r.interfaceTemplateCountGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gte", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.interfaceTemplateCountLt != nil { + t := *r.interfaceTemplateCountLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lt", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.interfaceTemplateCountLte != nil { + t := *r.interfaceTemplateCountLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lte", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.interfaceTemplateCountN != nil { + t := *r.interfaceTemplateCountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__n", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.interfaces != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "form", "") + } + if r.inventoryItemTemplateCount != nil { + t := *r.inventoryItemTemplateCount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + if r.inventoryItemTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__empty", r.inventoryItemTemplateCountEmpty, "form", "") + } + if r.inventoryItemTemplateCountGt != nil { + t := *r.inventoryItemTemplateCountGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gt", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.inventoryItemTemplateCountGte != nil { + t := *r.inventoryItemTemplateCountGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gte", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + if r.inventoryItemTemplateCountLt != nil { + t := *r.inventoryItemTemplateCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lt", t, "form", "multi") + } } - if r.description != nil { - t := *r.description + if r.inventoryItemTemplateCountLte != nil { + t := *r.inventoryItemTemplateCountLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lte", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.inventoryItemTemplateCountN != nil { + t := *r.inventoryItemTemplateCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__n", t, "form", "multi") + } } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.inventoryItems != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_items", r.inventoryItems, "form", "") + } + if r.isFullDepth != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_full_depth", r.isFullDepth, "form", "") + } + 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, "description__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") + } + } + if r.model != nil { + t := *r.model + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "form", "multi") + } + } + if r.modelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "form", "") + } + if r.modelIc != nil { + t := *r.modelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "form", "multi") + } + } + if r.modelIe != nil { + t := *r.modelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "form", "multi") + } + } + if r.modelIew != nil { + t := *r.modelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "form", "multi") + } + } + if r.modelIsw != nil { + t := *r.modelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "form", "multi") + } + } + if r.modelN != nil { + t := *r.modelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "form", "multi") + } + } + if r.modelNic != nil { + t := *r.modelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "form", "multi") + } + } + if r.modelNie != nil { + t := *r.modelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "form", "multi") + } + } + if r.modelNiew != nil { + t := *r.modelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "form", "multi") + } + } + if r.modelNisw != nil { + t := *r.modelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "form", "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.moduleBayTemplateCount != nil { + t := *r.moduleBayTemplateCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count", t, "form", "multi") + } + } + if r.moduleBayTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__empty", r.moduleBayTemplateCountEmpty, "form", "") + } + if r.moduleBayTemplateCountGt != nil { + t := *r.moduleBayTemplateCountGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gt", t, "form", "multi") + } + } + if r.moduleBayTemplateCountGte != nil { + t := *r.moduleBayTemplateCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gte", t, "form", "multi") + } + } + if r.moduleBayTemplateCountLt != nil { + t := *r.moduleBayTemplateCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lt", t, "form", "multi") + } + } + if r.moduleBayTemplateCountLte != nil { + t := *r.moduleBayTemplateCountLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lte", t, "form", "multi") + } + } + if r.moduleBayTemplateCountN != nil { + t := *r.moduleBayTemplateCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__n", t, "form", "multi") + } + } + if r.moduleBays != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.partNumber != nil { + t := *r.partNumber + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", t, "form", "multi") + } + } + if r.partNumberEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__empty", r.partNumberEmpty, "form", "") + } + if r.partNumberIc != nil { + t := *r.partNumberIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", t, "form", "multi") + } + } + if r.partNumberIe != nil { + t := *r.partNumberIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", t, "form", "multi") + } + } + if r.partNumberIew != nil { + t := *r.partNumberIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", t, "form", "multi") + } + } + if r.partNumberIsw != nil { + t := *r.partNumberIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", t, "form", "multi") + } + } + if r.partNumberN != nil { + t := *r.partNumberN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", t, "form", "multi") + } + } + if r.partNumberNic != nil { + t := *r.partNumberNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", t, "form", "multi") + } + } + if r.partNumberNie != nil { + t := *r.partNumberNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", t, "form", "multi") + } + } + if r.partNumberNiew != nil { + t := *r.partNumberNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", t, "form", "multi") + } + } + if r.partNumberNisw != nil { + t := *r.partNumberNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", t, "form", "multi") + } + } + if r.passThroughPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pass_through_ports", r.passThroughPorts, "form", "") + } + if r.powerOutletTemplateCount != nil { + t := *r.powerOutletTemplateCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count", t, "form", "multi") + } + } + if r.powerOutletTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__empty", r.powerOutletTemplateCountEmpty, "form", "") + } + if r.powerOutletTemplateCountGt != nil { + t := *r.powerOutletTemplateCountGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gt", t, "form", "multi") + } + } + if r.powerOutletTemplateCountGte != nil { + t := *r.powerOutletTemplateCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gte", t, "form", "multi") + } + } + if r.powerOutletTemplateCountLt != nil { + t := *r.powerOutletTemplateCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lt", t, "form", "multi") + } + } + if r.powerOutletTemplateCountLte != nil { + t := *r.powerOutletTemplateCountLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lte", t, "form", "multi") + } + } + if r.powerOutletTemplateCountN != nil { + t := *r.powerOutletTemplateCountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__n", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.powerOutlets != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "form", "") + } + if r.powerPortTemplateCount != nil { + t := *r.powerPortTemplateCount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count", t, "form", "multi") } } - if r.id != nil { - t := *r.id + if r.powerPortTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__empty", r.powerPortTemplateCountEmpty, "form", "") + } + if r.powerPortTemplateCountGt != nil { + t := *r.powerPortTemplateCountGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gt", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt + if r.powerPortTemplateCountGte != nil { + t := *r.powerPortTemplateCountGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gte", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.powerPortTemplateCountLt != nil { + t := *r.powerPortTemplateCountLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lt", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.powerPortTemplateCountLte != nil { + t := *r.powerPortTemplateCountLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lte", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.powerPortTemplateCountN != nil { + t := *r.powerPortTemplateCountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__n", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.powerPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rearPortTemplateCount != nil { + t := *r.rearPortTemplateCount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.rearPortTemplateCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__empty", r.rearPortTemplateCountEmpty, "form", "") + } + if r.rearPortTemplateCountGt != nil { + t := *r.rearPortTemplateCountGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gt", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.rearPortTemplateCountGte != nil { + t := *r.rearPortTemplateCountGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gte", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.rearPortTemplateCountLt != nil { + t := *r.rearPortTemplateCountLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lt", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.rearPortTemplateCountLte != nil { + t := *r.rearPortTemplateCountLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lte", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.rearPortTemplateCountN != nil { + t := *r.rearPortTemplateCountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__n", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.slug != nil { + t := *r.slug 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "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 r.slugIe != nil { + t := *r.slugIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + if r.slugIew != nil { + t := *r.slugIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.slugIsw != nil { + t := *r.slugIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.slugN != nil { + t := *r.slugN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.slugNic != nil { + t := *r.slugNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.slugNie != nil { + t := *r.slugNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.slugNiew != nil { + t := *r.slugNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.slugNisw != nil { + t := *r.slugNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.subdeviceRole != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "subdevice_role", r.subdeviceRole, "form", "") + } + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - 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, "") - } - if r.slug != nil { - t := *r.slug + if r.uHeight != nil { + t := *r.uHeight if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + if r.uHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "form", "") } - if r.slugIc != nil { - t := *r.slugIc + 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, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + if r.uHeightGte != nil { + t := *r.uHeightGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + if r.uHeightLt != nil { + t := *r.uHeightLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + if r.uHeightLte != nil { + t := *r.uHeightLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + if r.uHeightN != nil { + t := *r.uHeightN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.weight != nil { + t := *r.weight 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") + } + 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, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.weightGte != nil { + t := *r.weightGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.weightLt != nil { + t := *r.weightLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.weightLte != nil { + t := *r.weightLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.weightN != nil { + t := *r.weightN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.vmRole != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vm_role", r.vmRole, "") + if r.weightUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21693,56 +32171,55 @@ func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedDeviceRoleRequest *PatchedDeviceRoleRequest +type ApiDcimDeviceTypesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableDeviceTypeRequest *PatchedWritableDeviceTypeRequest } -func (r ApiDcimDeviceRolesPartialUpdateRequest) PatchedDeviceRoleRequest(patchedDeviceRoleRequest PatchedDeviceRoleRequest) ApiDcimDeviceRolesPartialUpdateRequest { - r.patchedDeviceRoleRequest = &patchedDeviceRoleRequest +func (r ApiDcimDeviceTypesPartialUpdateRequest) PatchedWritableDeviceTypeRequest(patchedWritableDeviceTypeRequest PatchedWritableDeviceTypeRequest) ApiDcimDeviceTypesPartialUpdateRequest { + r.patchedWritableDeviceTypeRequest = &patchedWritableDeviceTypeRequest return r } -func (r ApiDcimDeviceRolesPartialUpdateRequest) Execute() (*DeviceRole, *http.Response, error) { - return r.ApiService.DcimDeviceRolesPartialUpdateExecute(r) +func (r ApiDcimDeviceTypesPartialUpdateRequest) Execute() (*DeviceType, *http.Response, error) { + return r.ApiService.DcimDeviceTypesPartialUpdateExecute(r) } /* -DcimDeviceRolesPartialUpdate Method for DcimDeviceRolesPartialUpdate +DcimDeviceTypesPartialUpdate Method for DcimDeviceTypesPartialUpdate -Patch a device role object. +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 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 type. + @return ApiDcimDeviceTypesPartialUpdateRequest */ -func (a *DcimAPIService) DcimDeviceRolesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesPartialUpdateRequest { - return ApiDcimDeviceRolesPartialUpdateRequest{ +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 DeviceRole -func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRolesPartialUpdateRequest) (*DeviceRole, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceTypesPartialUpdateRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/device-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -21767,7 +32244,7 @@ func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRole localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedDeviceRoleRequest + localVarPostBody = r.patchedWritableDeviceTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -21819,50 +32296,49 @@ func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRole return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceRolesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDeviceTypesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDeviceRolesRetrieveRequest) Execute() (*DeviceRole, *http.Response, error) { - return r.ApiService.DcimDeviceRolesRetrieveExecute(r) +func (r ApiDcimDeviceTypesRetrieveRequest) Execute() (*DeviceType, *http.Response, error) { + return r.ApiService.DcimDeviceTypesRetrieveExecute(r) } /* -DcimDeviceRolesRetrieve Method for DcimDeviceRolesRetrieve +DcimDeviceTypesRetrieve Method for DcimDeviceTypesRetrieve -Get a device role object. +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 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 type. + @return ApiDcimDeviceTypesRetrieveRequest */ -func (a *DcimAPIService) DcimDeviceRolesRetrieve(ctx context.Context, id int32) ApiDcimDeviceRolesRetrieveRequest { - return ApiDcimDeviceRolesRetrieveRequest{ +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 DeviceRole -func (a *DcimAPIService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetrieveRequest) (*DeviceRole, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetrieveRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/device-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -21937,63 +32413,62 @@ func (a *DcimAPIService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - deviceRoleRequest *DeviceRoleRequest +type ApiDcimDeviceTypesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableDeviceTypeRequest *WritableDeviceTypeRequest } -func (r ApiDcimDeviceRolesUpdateRequest) DeviceRoleRequest(deviceRoleRequest DeviceRoleRequest) ApiDcimDeviceRolesUpdateRequest { - r.deviceRoleRequest = &deviceRoleRequest +func (r ApiDcimDeviceTypesUpdateRequest) WritableDeviceTypeRequest(writableDeviceTypeRequest WritableDeviceTypeRequest) ApiDcimDeviceTypesUpdateRequest { + r.writableDeviceTypeRequest = &writableDeviceTypeRequest return r } -func (r ApiDcimDeviceRolesUpdateRequest) Execute() (*DeviceRole, *http.Response, error) { - return r.ApiService.DcimDeviceRolesUpdateExecute(r) +func (r ApiDcimDeviceTypesUpdateRequest) Execute() (*DeviceType, *http.Response, error) { + return r.ApiService.DcimDeviceTypesUpdateExecute(r) } /* -DcimDeviceRolesUpdate Method for DcimDeviceRolesUpdate +DcimDeviceTypesUpdate Method for DcimDeviceTypesUpdate -Put a device role object. +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 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 type. + @return ApiDcimDeviceTypesUpdateRequest */ -func (a *DcimAPIService) DcimDeviceRolesUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesUpdateRequest { - return ApiDcimDeviceRolesUpdateRequest{ +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 DeviceRole -func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdateRequest) (*DeviceRole, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdateRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/device-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.deviceRoleRequest == nil { - return localVarReturnValue, nil, reportError("deviceRoleRequest is required and must be specified") + if r.writableDeviceTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableDeviceTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -22014,7 +32489,7 @@ func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceRoleRequest + localVarPostBody = r.writableDeviceTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22066,56 +32541,295 @@ func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceTypeRequest *[]DeviceTypeRequest +type ApiDcimDevicesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest } -func (r ApiDcimDeviceTypesBulkDestroyRequest) DeviceTypeRequest(deviceTypeRequest []DeviceTypeRequest) ApiDcimDeviceTypesBulkDestroyRequest { - r.deviceTypeRequest = &deviceTypeRequest +func (r ApiDcimDevicesBulkDestroyRequest) DeviceWithConfigContextRequest(deviceWithConfigContextRequest []DeviceWithConfigContextRequest) ApiDcimDevicesBulkDestroyRequest { + r.deviceWithConfigContextRequest = &deviceWithConfigContextRequest return r } -func (r ApiDcimDeviceTypesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceTypesBulkDestroyExecute(r) +func (r ApiDcimDevicesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDevicesBulkDestroyExecute(r) } /* -DcimDeviceTypesBulkDestroy Method for DcimDeviceTypesBulkDestroy +DcimDevicesBulkDestroy Method for DcimDevicesBulkDestroy -Delete a list of device type objects. +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 ApiDcimDeviceTypesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesBulkDestroyRequest */ -func (a *DcimAPIService) DcimDeviceTypesBulkDestroy(ctx context.Context) ApiDcimDeviceTypesBulkDestroyRequest { - return ApiDcimDeviceTypesBulkDestroyRequest{ +func (a *DcimAPIService) DcimDevicesBulkDestroy(ctx context.Context) ApiDcimDevicesBulkDestroyRequest { + return ApiDcimDevicesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/devices/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deviceWithConfigContextRequest == nil { + return nil, reportError("deviceWithConfigContextRequest 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.deviceWithConfigContextRequest + 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 ApiDcimDevicesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest +} + +func (r ApiDcimDevicesBulkPartialUpdateRequest) DeviceWithConfigContextRequest(deviceWithConfigContextRequest []DeviceWithConfigContextRequest) ApiDcimDevicesBulkPartialUpdateRequest { + r.deviceWithConfigContextRequest = &deviceWithConfigContextRequest + return r +} + +func (r ApiDcimDevicesBulkPartialUpdateRequest) Execute() ([]DeviceWithConfigContext, *http.Response, error) { + return r.ApiService.DcimDevicesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimDevicesBulkPartialUpdate(ctx context.Context) ApiDcimDevicesBulkPartialUpdateRequest { + return ApiDcimDevicesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBulkPartialUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceWithConfigContext + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/devices/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deviceWithConfigContextRequest == nil { + return localVarReturnValue, nil, reportError("deviceWithConfigContextRequest 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.deviceWithConfigContextRequest + 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 ApiDcimDevicesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest +} + +func (r ApiDcimDevicesBulkUpdateRequest) DeviceWithConfigContextRequest(deviceWithConfigContextRequest []DeviceWithConfigContextRequest) ApiDcimDevicesBulkUpdateRequest { + r.deviceWithConfigContextRequest = &deviceWithConfigContextRequest + return r +} + +func (r ApiDcimDevicesBulkUpdateRequest) Execute() ([]DeviceWithConfigContext, *http.Response, error) { + return r.ApiService.DcimDevicesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimDevicesBulkUpdate(ctx context.Context) ApiDcimDevicesBulkUpdateRequest { + return ApiDcimDevicesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-types/" + localVarPath := localBasePath + "/api/dcim/devices/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceTypeRequest == nil { - return nil, reportError("deviceTypeRequest is required and must be specified") + if r.deviceWithConfigContextRequest == nil { + return localVarReturnValue, nil, reportError("deviceWithConfigContextRequest is required and must be specified") } // to determine the Content-Type header @@ -22128,7 +32842,7 @@ func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesB } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -22136,7 +32850,7 @@ func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceTypeRequest + localVarPostBody = r.deviceWithConfigContextRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22153,19 +32867,19 @@ func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesB } 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 { @@ -22173,65 +32887,73 @@ func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesB body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiDcimDeviceTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceTypeRequest *[]DeviceTypeRequest +type ApiDcimDevicesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest } -func (r ApiDcimDeviceTypesBulkPartialUpdateRequest) DeviceTypeRequest(deviceTypeRequest []DeviceTypeRequest) ApiDcimDeviceTypesBulkPartialUpdateRequest { - r.deviceTypeRequest = &deviceTypeRequest +func (r ApiDcimDevicesCreateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesCreateRequest { + r.writableDeviceWithConfigContextRequest = &writableDeviceWithConfigContextRequest return r } -func (r ApiDcimDeviceTypesBulkPartialUpdateRequest) Execute() ([]DeviceType, *http.Response, error) { - return r.ApiService.DcimDeviceTypesBulkPartialUpdateExecute(r) +func (r ApiDcimDevicesCreateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { + return r.ApiService.DcimDevicesCreateExecute(r) } /* -DcimDeviceTypesBulkPartialUpdate Method for DcimDeviceTypesBulkPartialUpdate +DcimDevicesCreate Method for DcimDevicesCreate -Patch a list of device type objects. +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 ApiDcimDeviceTypesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesCreateRequest */ -func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceTypesBulkPartialUpdateRequest { - return ApiDcimDeviceTypesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimDevicesCreate(ctx context.Context) ApiDcimDevicesCreateRequest { + return ApiDcimDevicesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceType -func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDeviceTypesBulkPartialUpdateRequest) ([]DeviceType, *http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceType + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-types/" + localVarPath := localBasePath + "/api/dcim/devices/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.deviceTypeRequest == nil { - return localVarReturnValue, nil, reportError("deviceTypeRequest is required and must be specified") + if r.writableDeviceWithConfigContextRequest == nil { + return localVarReturnValue, nil, reportError("writableDeviceWithConfigContextRequest is required and must be specified") } // to determine the Content-Type header @@ -22252,7 +32974,7 @@ func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDevice localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceTypeRequest + localVarPostBody = r.writableDeviceWithConfigContextRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22304,63 +33026,55 @@ func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDevice return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDeviceTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceTypeRequest *[]DeviceTypeRequest -} - -func (r ApiDcimDeviceTypesBulkUpdateRequest) DeviceTypeRequest(deviceTypeRequest []DeviceTypeRequest) ApiDcimDeviceTypesBulkUpdateRequest { - r.deviceTypeRequest = &deviceTypeRequest - return r +type ApiDcimDevicesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDeviceTypesBulkUpdateRequest) Execute() ([]DeviceType, *http.Response, error) { - return r.ApiService.DcimDeviceTypesBulkUpdateExecute(r) +func (r ApiDcimDevicesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimDevicesDestroyExecute(r) } /* -DcimDeviceTypesBulkUpdate Method for DcimDeviceTypesBulkUpdate +DcimDevicesDestroy Method for DcimDevicesDestroy -Put a list of device type objects. +Delete a device object. - @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(). + @param id A unique integer value identifying this device. + @return ApiDcimDevicesDestroyRequest */ -func (a *DcimAPIService) DcimDeviceTypesBulkUpdate(ctx context.Context) ApiDcimDeviceTypesBulkUpdateRequest { - return ApiDcimDeviceTypesBulkUpdateRequest{ +func (a *DcimAPIService) DcimDevicesDestroy(ctx context.Context, id int32) ApiDcimDevicesDestroyRequest { + return ApiDcimDevicesDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []DeviceType -func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBulkUpdateRequest) ([]DeviceType, *http.Response, error) { +func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceType + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-types/" + localVarPath := localBasePath + "/api/dcim/devices/{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.deviceTypeRequest == nil { - return localVarReturnValue, nil, reportError("deviceTypeRequest 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) @@ -22369,15 +33083,13 @@ func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBu } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.deviceTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22394,19 +33106,19 @@ func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBu } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -22414,3739 +33126,4607 @@ func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBu body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return 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 localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type ApiDcimDevicesListRequest struct { + ctx context.Context + ApiService DcimAPI + airflow *DcimDeviceTypesListAirflowParameter + assetTag *[]string + assetTagEmpty *bool + assetTagIc *[]string + assetTagIe *[]string + assetTagIew *[]string + assetTagIsw *[]string + assetTagN *[]string + assetTagNic *[]string + assetTagNie *[]string + assetTagNiew *[]string + assetTagNisw *[]string + clusterGroup *[]string + clusterGroupN *[]string + clusterGroupId *[]int32 + clusterGroupIdN *[]int32 + clusterId *[]*int32 + clusterIdN *[]*int32 + configTemplateId *[]*int32 + configTemplateIdN *[]*int32 + consolePortCount *[]int32 + consolePortCountEmpty *bool + consolePortCountGt *[]int32 + consolePortCountGte *[]int32 + consolePortCountLt *[]int32 + consolePortCountLte *[]int32 + consolePortCountN *[]int32 + consolePorts *bool + consoleServerPortCount *[]int32 + consoleServerPortCountEmpty *bool + consoleServerPortCountGt *[]int32 + consoleServerPortCountGte *[]int32 + consoleServerPortCountLt *[]int32 + consoleServerPortCountLte *[]int32 + consoleServerPortCountN *[]int32 + consoleServerPorts *bool + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + deviceBayCount *[]int32 + deviceBayCountEmpty *bool + deviceBayCountGt *[]int32 + deviceBayCountGte *[]int32 + deviceBayCountLt *[]int32 + deviceBayCountLte *[]int32 + deviceBayCountN *[]int32 + deviceBays *bool + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + face *RackFace + frontPortCount *[]int32 + frontPortCountEmpty *bool + frontPortCountGt *[]int32 + frontPortCountGte *[]int32 + frontPortCountLt *[]int32 + frontPortCountLte *[]int32 + frontPortCountN *[]int32 + hasOobIp *bool + hasPrimaryIp *bool + hasVirtualDeviceContext *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaceCount *[]int32 + interfaceCountEmpty *bool + interfaceCountGt *[]int32 + interfaceCountGte *[]int32 + interfaceCountLt *[]int32 + interfaceCountLte *[]int32 + interfaceCountN *[]int32 + interfaces *bool + inventoryItemCount *[]int32 + inventoryItemCountEmpty *bool + inventoryItemCountGt *[]int32 + inventoryItemCountGte *[]int32 + inventoryItemCountLt *[]int32 + inventoryItemCountLte *[]int32 + inventoryItemCountN *[]int32 + 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 *[]string + locationIdN *[]string + 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 + moduleBayCount *[]int32 + moduleBayCountEmpty *bool + moduleBayCountGt *[]int32 + moduleBayCountGte *[]int32 + moduleBayCountLt *[]int32 + moduleBayCountLte *[]int32 + moduleBayCountN *[]int32 + 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 + parentBayId *[]int32 + parentBayIdN *[]int32 + 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 + powerOutletCount *[]int32 + powerOutletCountEmpty *bool + powerOutletCountGt *[]int32 + powerOutletCountGte *[]int32 + powerOutletCountLt *[]int32 + powerOutletCountLte *[]int32 + powerOutletCountN *[]int32 + powerOutlets *bool + powerPortCount *[]int32 + powerPortCountEmpty *bool + powerPortCountGt *[]int32 + powerPortCountGte *[]int32 + powerPortCountLt *[]int32 + powerPortCountLte *[]int32 + powerPortCountN *[]int32 + powerPorts *bool + primaryIp4Id *[]int32 + primaryIp4IdN *[]int32 + primaryIp6Id *[]int32 + primaryIp6IdN *[]int32 + q *string + rackId *[]int32 + rackIdN *[]int32 + rearPortCount *[]int32 + rearPortCountEmpty *bool + rearPortCountGt *[]int32 + rearPortCountGte *[]int32 + rearPortCountLt *[]int32 + rearPortCountLte *[]int32 + rearPortCountN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + 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 *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + 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 } -type ApiDcimDeviceTypesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableDeviceTypeRequest *WritableDeviceTypeRequest +// * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed +func (r ApiDcimDevicesListRequest) Airflow(airflow DcimDeviceTypesListAirflowParameter) ApiDcimDevicesListRequest { + r.airflow = &airflow + return r } -func (r ApiDcimDeviceTypesCreateRequest) WritableDeviceTypeRequest(writableDeviceTypeRequest WritableDeviceTypeRequest) ApiDcimDeviceTypesCreateRequest { - r.writableDeviceTypeRequest = &writableDeviceTypeRequest +func (r ApiDcimDevicesListRequest) AssetTag(assetTag []string) ApiDcimDevicesListRequest { + r.assetTag = &assetTag return r } -func (r ApiDcimDeviceTypesCreateRequest) Execute() (*DeviceType, *http.Response, error) { - return r.ApiService.DcimDeviceTypesCreateExecute(r) +func (r ApiDcimDevicesListRequest) AssetTagEmpty(assetTagEmpty bool) ApiDcimDevicesListRequest { + r.assetTagEmpty = &assetTagEmpty + return r } -/* -DcimDeviceTypesCreate Method for DcimDeviceTypesCreate +func (r ApiDcimDevicesListRequest) AssetTagIc(assetTagIc []string) ApiDcimDevicesListRequest { + r.assetTagIc = &assetTagIc + return r +} -Post a list of device type objects. +func (r ApiDcimDevicesListRequest) AssetTagIe(assetTagIe []string) ApiDcimDevicesListRequest { + r.assetTagIe = &assetTagIe + return r +} - @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 { - return ApiDcimDeviceTypesCreateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiDcimDevicesListRequest) AssetTagIew(assetTagIew []string) ApiDcimDevicesListRequest { + r.assetTagIew = &assetTagIew + return r } -// Execute executes the request -// -// @return DeviceType -func (a *DcimAPIService) DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreateRequest) (*DeviceType, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType - ) +func (r ApiDcimDevicesListRequest) AssetTagIsw(assetTagIsw []string) ApiDcimDevicesListRequest { + r.assetTagIsw = &assetTagIsw + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimDevicesListRequest) AssetTagN(assetTagN []string) ApiDcimDevicesListRequest { + r.assetTagN = &assetTagN + return r +} - localVarPath := localBasePath + "/api/dcim/device-types/" +func (r ApiDcimDevicesListRequest) AssetTagNic(assetTagNic []string) ApiDcimDevicesListRequest { + r.assetTagNic = &assetTagNic + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableDeviceTypeRequest == nil { - return localVarReturnValue, nil, reportError("writableDeviceTypeRequest is required and must be specified") - } +func (r ApiDcimDevicesListRequest) AssetTagNie(assetTagNie []string) ApiDcimDevicesListRequest { + r.assetTagNie = &assetTagNie + return r +} + +func (r ApiDcimDevicesListRequest) AssetTagNiew(assetTagNiew []string) ApiDcimDevicesListRequest { + r.assetTagNiew = &assetTagNiew + return r +} + +func (r ApiDcimDevicesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimDevicesListRequest { + r.assetTagNisw = &assetTagNisw + return r +} + +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroup(clusterGroup []string) ApiDcimDevicesListRequest { + r.clusterGroup = &clusterGroup + return r +} + +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroupN(clusterGroupN []string) ApiDcimDevicesListRequest { + r.clusterGroupN = &clusterGroupN + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupId(clusterGroupId []int32) ApiDcimDevicesListRequest { + r.clusterGroupId = &clusterGroupId + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiDcimDevicesListRequest { + r.clusterGroupIdN = &clusterGroupIdN + return r +} + +// VM cluster (ID) +func (r ApiDcimDevicesListRequest) ClusterId(clusterId []*int32) ApiDcimDevicesListRequest { + r.clusterId = &clusterId + return r +} + +// VM cluster (ID) +func (r ApiDcimDevicesListRequest) ClusterIdN(clusterIdN []*int32) ApiDcimDevicesListRequest { + r.clusterIdN = &clusterIdN + return r +} + +// Config template (ID) +func (r ApiDcimDevicesListRequest) ConfigTemplateId(configTemplateId []*int32) ApiDcimDevicesListRequest { + r.configTemplateId = &configTemplateId + return r +} + +// Config template (ID) +func (r ApiDcimDevicesListRequest) ConfigTemplateIdN(configTemplateIdN []*int32) ApiDcimDevicesListRequest { + r.configTemplateIdN = &configTemplateIdN + return r +} + +func (r ApiDcimDevicesListRequest) ConsolePortCount(consolePortCount []int32) ApiDcimDevicesListRequest { + r.consolePortCount = &consolePortCount + return r +} + +func (r ApiDcimDevicesListRequest) ConsolePortCountEmpty(consolePortCountEmpty bool) ApiDcimDevicesListRequest { + r.consolePortCountEmpty = &consolePortCountEmpty + return r +} + +func (r ApiDcimDevicesListRequest) ConsolePortCountGt(consolePortCountGt []int32) ApiDcimDevicesListRequest { + r.consolePortCountGt = &consolePortCountGt + return r +} + +func (r ApiDcimDevicesListRequest) ConsolePortCountGte(consolePortCountGte []int32) ApiDcimDevicesListRequest { + r.consolePortCountGte = &consolePortCountGte + return r +} + +func (r ApiDcimDevicesListRequest) ConsolePortCountLt(consolePortCountLt []int32) ApiDcimDevicesListRequest { + r.consolePortCountLt = &consolePortCountLt + return r +} + +func (r ApiDcimDevicesListRequest) ConsolePortCountLte(consolePortCountLte []int32) ApiDcimDevicesListRequest { + r.consolePortCountLte = &consolePortCountLte + return r +} + +func (r ApiDcimDevicesListRequest) ConsolePortCountN(consolePortCountN []int32) ApiDcimDevicesListRequest { + r.consolePortCountN = &consolePortCountN + return r +} + +// Has console ports +func (r ApiDcimDevicesListRequest) ConsolePorts(consolePorts bool) ApiDcimDevicesListRequest { + r.consolePorts = &consolePorts + return r +} + +func (r ApiDcimDevicesListRequest) ConsoleServerPortCount(consoleServerPortCount []int32) ApiDcimDevicesListRequest { + r.consoleServerPortCount = &consoleServerPortCount + return r +} + +func (r ApiDcimDevicesListRequest) ConsoleServerPortCountEmpty(consoleServerPortCountEmpty bool) ApiDcimDevicesListRequest { + r.consoleServerPortCountEmpty = &consoleServerPortCountEmpty + return r +} + +func (r ApiDcimDevicesListRequest) ConsoleServerPortCountGt(consoleServerPortCountGt []int32) ApiDcimDevicesListRequest { + r.consoleServerPortCountGt = &consoleServerPortCountGt + return r +} + +func (r ApiDcimDevicesListRequest) ConsoleServerPortCountGte(consoleServerPortCountGte []int32) ApiDcimDevicesListRequest { + r.consoleServerPortCountGte = &consoleServerPortCountGte + return r +} + +func (r ApiDcimDevicesListRequest) ConsoleServerPortCountLt(consoleServerPortCountLt []int32) ApiDcimDevicesListRequest { + r.consoleServerPortCountLt = &consoleServerPortCountLt + return r +} + +func (r ApiDcimDevicesListRequest) ConsoleServerPortCountLte(consoleServerPortCountLte []int32) ApiDcimDevicesListRequest { + r.consoleServerPortCountLte = &consoleServerPortCountLte + return r +} + +func (r ApiDcimDevicesListRequest) ConsoleServerPortCountN(consoleServerPortCountN []int32) ApiDcimDevicesListRequest { + r.consoleServerPortCountN = &consoleServerPortCountN + return r +} + +// Has console server ports +func (r ApiDcimDevicesListRequest) ConsoleServerPorts(consoleServerPorts bool) ApiDcimDevicesListRequest { + r.consoleServerPorts = &consoleServerPorts + return r +} + +// Contact +func (r ApiDcimDevicesListRequest) Contact(contact []int32) ApiDcimDevicesListRequest { + r.contact = &contact + return r +} + +// Contact +func (r ApiDcimDevicesListRequest) ContactN(contactN []int32) ApiDcimDevicesListRequest { + r.contactN = &contactN + return r +} + +func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []string) ApiDcimDevicesListRequest { + r.contactGroup = &contactGroup + return r +} + +func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []string) ApiDcimDevicesListRequest { + r.contactGroupN = &contactGroupN + return r +} + +// Contact Role +func (r ApiDcimDevicesListRequest) ContactRole(contactRole []int32) ApiDcimDevicesListRequest { + r.contactRole = &contactRole + return r +} + +// Contact Role +func (r ApiDcimDevicesListRequest) ContactRoleN(contactRoleN []int32) ApiDcimDevicesListRequest { + r.contactRoleN = &contactRoleN + return r +} + +func (r ApiDcimDevicesListRequest) Created(created []time.Time) ApiDcimDevicesListRequest { + r.created = &created + 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 +} + +func (r ApiDcimDevicesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDevicesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimDevicesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDevicesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimDevicesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDevicesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimDevicesListRequest) CreatedN(createdN []time.Time) ApiDcimDevicesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimDevicesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDevicesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimDevicesListRequest) Description(description []string) ApiDcimDevicesListRequest { + r.description = &description + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDevicesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDevicesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDevicesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDevicesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDevicesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionN(descriptionN []string) ApiDcimDevicesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDevicesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDevicesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDevicesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimDevicesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDevicesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiDcimDevicesListRequest) DeviceBayCount(deviceBayCount []int32) ApiDcimDevicesListRequest { + r.deviceBayCount = &deviceBayCount + return r +} + +func (r ApiDcimDevicesListRequest) DeviceBayCountEmpty(deviceBayCountEmpty bool) ApiDcimDevicesListRequest { + r.deviceBayCountEmpty = &deviceBayCountEmpty + return r +} + +func (r ApiDcimDevicesListRequest) DeviceBayCountGt(deviceBayCountGt []int32) ApiDcimDevicesListRequest { + r.deviceBayCountGt = &deviceBayCountGt + return r +} + +func (r ApiDcimDevicesListRequest) DeviceBayCountGte(deviceBayCountGte []int32) ApiDcimDevicesListRequest { + r.deviceBayCountGte = &deviceBayCountGte + return r +} + +func (r ApiDcimDevicesListRequest) DeviceBayCountLt(deviceBayCountLt []int32) ApiDcimDevicesListRequest { + r.deviceBayCountLt = &deviceBayCountLt + return r +} + +func (r ApiDcimDevicesListRequest) DeviceBayCountLte(deviceBayCountLte []int32) ApiDcimDevicesListRequest { + r.deviceBayCountLte = &deviceBayCountLte + return r +} + +func (r ApiDcimDevicesListRequest) DeviceBayCountN(deviceBayCountN []int32) ApiDcimDevicesListRequest { + r.deviceBayCountN = &deviceBayCountN + return r +} + +// Has device bays +func (r ApiDcimDevicesListRequest) DeviceBays(deviceBays bool) ApiDcimDevicesListRequest { + r.deviceBays = &deviceBays + return r +} + +// Device type (slug) +func (r ApiDcimDevicesListRequest) DeviceType(deviceType []string) ApiDcimDevicesListRequest { + r.deviceType = &deviceType + return r +} + +// Device type (slug) +func (r ApiDcimDevicesListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimDevicesListRequest { + r.deviceTypeN = &deviceTypeN + return r +} + +// Device type (ID) +func (r ApiDcimDevicesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimDevicesListRequest { + r.deviceTypeId = &deviceTypeId + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +// Device type (ID) +func (r ApiDcimDevicesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimDevicesListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +// * `front` - Front * `rear` - Rear +func (r ApiDcimDevicesListRequest) Face(face RackFace) ApiDcimDevicesListRequest { + r.face = &face + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiDcimDevicesListRequest) FrontPortCount(frontPortCount []int32) ApiDcimDevicesListRequest { + r.frontPortCount = &frontPortCount + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableDeviceTypeRequest - 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 ApiDcimDevicesListRequest) FrontPortCountEmpty(frontPortCountEmpty bool) ApiDcimDevicesListRequest { + r.frontPortCountEmpty = &frontPortCountEmpty + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimDevicesListRequest) FrontPortCountGt(frontPortCountGt []int32) ApiDcimDevicesListRequest { + r.frontPortCountGt = &frontPortCountGt + 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 - } +func (r ApiDcimDevicesListRequest) FrontPortCountGte(frontPortCountGte []int32) ApiDcimDevicesListRequest { + r.frontPortCountGte = &frontPortCountGte + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimDevicesListRequest) FrontPortCountLt(frontPortCountLt []int32) ApiDcimDevicesListRequest { + r.frontPortCountLt = &frontPortCountLt + 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 ApiDcimDevicesListRequest) FrontPortCountLte(frontPortCountLte []int32) ApiDcimDevicesListRequest { + r.frontPortCountLte = &frontPortCountLte + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimDevicesListRequest) FrontPortCountN(frontPortCountN []int32) ApiDcimDevicesListRequest { + r.frontPortCountN = &frontPortCountN + return r } -type ApiDcimDeviceTypesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +// Has an out-of-band IP +func (r ApiDcimDevicesListRequest) HasOobIp(hasOobIp bool) ApiDcimDevicesListRequest { + r.hasOobIp = &hasOobIp + return r } -func (r ApiDcimDeviceTypesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDeviceTypesDestroyExecute(r) +// Has a primary IP +func (r ApiDcimDevicesListRequest) HasPrimaryIp(hasPrimaryIp bool) ApiDcimDevicesListRequest { + r.hasPrimaryIp = &hasPrimaryIp + return r } -/* -DcimDeviceTypesDestroy Method for DcimDeviceTypesDestroy +// Has virtual device context +func (r ApiDcimDevicesListRequest) HasVirtualDeviceContext(hasVirtualDeviceContext bool) ApiDcimDevicesListRequest { + r.hasVirtualDeviceContext = &hasVirtualDeviceContext + return r +} -Delete a device type object. +func (r ApiDcimDevicesListRequest) Id(id []int32) ApiDcimDevicesListRequest { + r.id = &id + 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 device type. - @return ApiDcimDeviceTypesDestroyRequest -*/ -func (a *DcimAPIService) DcimDeviceTypesDestroy(ctx context.Context, id int32) ApiDcimDeviceTypesDestroyRequest { - return ApiDcimDeviceTypesDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiDcimDevicesListRequest) IdEmpty(idEmpty bool) ApiDcimDevicesListRequest { + r.idEmpty = &idEmpty + return r } -// Execute executes the request -func (a *DcimAPIService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) +func (r ApiDcimDevicesListRequest) IdGt(idGt []int32) ApiDcimDevicesListRequest { + r.idGt = &idGt + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimDevicesListRequest) IdGte(idGte []int32) ApiDcimDevicesListRequest { + r.idGte = &idGte + return r +} - localVarPath := localBasePath + "/api/dcim/device-types/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimDevicesListRequest) IdLt(idLt []int32) ApiDcimDevicesListRequest { + r.idLt = &idLt + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiDcimDevicesListRequest) IdLte(idLte []int32) ApiDcimDevicesListRequest { + r.idLte = &idLte + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiDcimDevicesListRequest) IdN(idN []int32) ApiDcimDevicesListRequest { + r.idN = &idN + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimDevicesListRequest) InterfaceCount(interfaceCount []int32) ApiDcimDevicesListRequest { + r.interfaceCount = &interfaceCount + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} +func (r ApiDcimDevicesListRequest) InterfaceCountEmpty(interfaceCountEmpty bool) ApiDcimDevicesListRequest { + r.interfaceCountEmpty = &interfaceCountEmpty + 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 nil, err - } +func (r ApiDcimDevicesListRequest) InterfaceCountGt(interfaceCountGt []int32) ApiDcimDevicesListRequest { + r.interfaceCountGt = &interfaceCountGt + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } +func (r ApiDcimDevicesListRequest) InterfaceCountGte(interfaceCountGte []int32) ApiDcimDevicesListRequest { + r.interfaceCountGte = &interfaceCountGte + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } +func (r ApiDcimDevicesListRequest) InterfaceCountLt(interfaceCountLt []int32) ApiDcimDevicesListRequest { + r.interfaceCountLt = &interfaceCountLt + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } +func (r ApiDcimDevicesListRequest) InterfaceCountLte(interfaceCountLte []int32) ApiDcimDevicesListRequest { + r.interfaceCountLte = &interfaceCountLte + return r +} - return localVarHTTPResponse, nil +func (r ApiDcimDevicesListRequest) InterfaceCountN(interfaceCountN []int32) ApiDcimDevicesListRequest { + r.interfaceCountN = &interfaceCountN + return r } -type ApiDcimDeviceTypesListRequest struct { - ctx context.Context - ApiService *DcimAPIService - airflow *DcimDeviceTypesListAirflowParameter - airflowN *DcimDeviceTypesListAirflowParameter - consolePortTemplateCount *[]int32 - consolePortTemplateCountEmpty *bool - consolePortTemplateCountGt *[]int32 - consolePortTemplateCountGte *[]int32 - consolePortTemplateCountLt *[]int32 - consolePortTemplateCountLte *[]int32 - consolePortTemplateCountN *[]int32 - consolePorts *bool - consoleServerPortTemplateCount *[]int32 - consoleServerPortTemplateCountEmpty *bool - consoleServerPortTemplateCountGt *[]int32 - consoleServerPortTemplateCountGte *[]int32 - consoleServerPortTemplateCountLt *[]int32 - consoleServerPortTemplateCountLte *[]int32 - consoleServerPortTemplateCountN *[]int32 - consoleServerPorts *bool - 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 - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - deviceBayTemplateCount *[]int32 - deviceBayTemplateCountEmpty *bool - deviceBayTemplateCountGt *[]int32 - deviceBayTemplateCountGte *[]int32 - deviceBayTemplateCountLt *[]int32 - deviceBayTemplateCountLte *[]int32 - deviceBayTemplateCountN *[]int32 - deviceBays *bool - excludeFromUtilization *bool - frontPortTemplateCount *[]int32 - frontPortTemplateCountEmpty *bool - frontPortTemplateCountGt *[]int32 - frontPortTemplateCountGte *[]int32 - frontPortTemplateCountLt *[]int32 - frontPortTemplateCountLte *[]int32 - frontPortTemplateCountN *[]int32 - hasFrontImage *bool - hasRearImage *bool - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaceTemplateCount *[]int32 - interfaceTemplateCountEmpty *bool - interfaceTemplateCountGt *[]int32 - interfaceTemplateCountGte *[]int32 - interfaceTemplateCountLt *[]int32 - interfaceTemplateCountLte *[]int32 - interfaceTemplateCountN *[]int32 - interfaces *bool - inventoryItemTemplateCount *[]int32 - inventoryItemTemplateCountEmpty *bool - inventoryItemTemplateCountGt *[]int32 - inventoryItemTemplateCountGte *[]int32 - inventoryItemTemplateCountLt *[]int32 - inventoryItemTemplateCountLte *[]int32 - inventoryItemTemplateCountN *[]int32 - 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 - moduleBayTemplateCount *[]int32 - moduleBayTemplateCountEmpty *bool - moduleBayTemplateCountGt *[]int32 - moduleBayTemplateCountGte *[]int32 - moduleBayTemplateCountLt *[]int32 - moduleBayTemplateCountLte *[]int32 - moduleBayTemplateCountN *[]int32 - 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 - powerOutletTemplateCount *[]int32 - powerOutletTemplateCountEmpty *bool - powerOutletTemplateCountGt *[]int32 - powerOutletTemplateCountGte *[]int32 - powerOutletTemplateCountLt *[]int32 - powerOutletTemplateCountLte *[]int32 - powerOutletTemplateCountN *[]int32 - powerOutlets *bool - powerPortTemplateCount *[]int32 - powerPortTemplateCountEmpty *bool - powerPortTemplateCountGt *[]int32 - powerPortTemplateCountGte *[]int32 - powerPortTemplateCountLt *[]int32 - powerPortTemplateCountLte *[]int32 - powerPortTemplateCountN *[]int32 - powerPorts *bool - q *string - rearPortTemplateCount *[]int32 - rearPortTemplateCountEmpty *bool - rearPortTemplateCountGt *[]int32 - rearPortTemplateCountGte *[]int32 - rearPortTemplateCountLt *[]int32 - rearPortTemplateCountLte *[]int32 - rearPortTemplateCountN *[]int32 - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - subdeviceRole *ParentChildStatus - subdeviceRoleN *ParentChildStatus - 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 *DcimDeviceTypesListWeightUnitParameter - weightUnitN *DcimDeviceTypesListWeightUnitParameter -} - -// * `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 -func (r ApiDcimDeviceTypesListRequest) Airflow(airflow DcimDeviceTypesListAirflowParameter) ApiDcimDeviceTypesListRequest { - r.airflow = &airflow +// Has interfaces +func (r ApiDcimDevicesListRequest) Interfaces(interfaces bool) ApiDcimDevicesListRequest { + r.interfaces = &interfaces return r } -// * `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 -func (r ApiDcimDeviceTypesListRequest) AirflowN(airflowN DcimDeviceTypesListAirflowParameter) ApiDcimDeviceTypesListRequest { - r.airflowN = &airflowN +func (r ApiDcimDevicesListRequest) InventoryItemCount(inventoryItemCount []int32) ApiDcimDevicesListRequest { + r.inventoryItemCount = &inventoryItemCount return r } -func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCount(consolePortTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.consolePortTemplateCount = &consolePortTemplateCount +func (r ApiDcimDevicesListRequest) InventoryItemCountEmpty(inventoryItemCountEmpty bool) ApiDcimDevicesListRequest { + r.inventoryItemCountEmpty = &inventoryItemCountEmpty return r } -func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.consolePortTemplateCountEmpty = &consolePortTemplateCountEmpty +func (r ApiDcimDevicesListRequest) InventoryItemCountGt(inventoryItemCountGt []int32) ApiDcimDevicesListRequest { + r.inventoryItemCountGt = &inventoryItemCountGt return r } -func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountGt(consolePortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.consolePortTemplateCountGt = &consolePortTemplateCountGt +func (r ApiDcimDevicesListRequest) InventoryItemCountGte(inventoryItemCountGte []int32) ApiDcimDevicesListRequest { + r.inventoryItemCountGte = &inventoryItemCountGte return r } -func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountGte(consolePortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.consolePortTemplateCountGte = &consolePortTemplateCountGte +func (r ApiDcimDevicesListRequest) InventoryItemCountLt(inventoryItemCountLt []int32) ApiDcimDevicesListRequest { + r.inventoryItemCountLt = &inventoryItemCountLt return r } -func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountLt(consolePortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.consolePortTemplateCountLt = &consolePortTemplateCountLt +func (r ApiDcimDevicesListRequest) InventoryItemCountLte(inventoryItemCountLte []int32) ApiDcimDevicesListRequest { + r.inventoryItemCountLte = &inventoryItemCountLte return r } -func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountLte(consolePortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.consolePortTemplateCountLte = &consolePortTemplateCountLte +func (r ApiDcimDevicesListRequest) InventoryItemCountN(inventoryItemCountN []int32) ApiDcimDevicesListRequest { + r.inventoryItemCountN = &inventoryItemCountN return r } -func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCountN(consolePortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.consolePortTemplateCountN = &consolePortTemplateCountN +// Is full depth +func (r ApiDcimDevicesListRequest) IsFullDepth(isFullDepth bool) ApiDcimDevicesListRequest { + r.isFullDepth = &isFullDepth return r } -// Has console ports -func (r ApiDcimDeviceTypesListRequest) ConsolePorts(consolePorts bool) ApiDcimDeviceTypesListRequest { - r.consolePorts = &consolePorts +func (r ApiDcimDevicesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDevicesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCount(consoleServerPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.consoleServerPortTemplateCount = &consoleServerPortTemplateCount +func (r ApiDcimDevicesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDevicesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.consoleServerPortTemplateCountEmpty = &consoleServerPortTemplateCountEmpty +func (r ApiDcimDevicesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDevicesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.consoleServerPortTemplateCountGt = &consoleServerPortTemplateCountGt +func (r ApiDcimDevicesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDevicesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.consoleServerPortTemplateCountGte = &consoleServerPortTemplateCountGte +func (r ApiDcimDevicesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDevicesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.consoleServerPortTemplateCountLt = &consoleServerPortTemplateCountLt +func (r ApiDcimDevicesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDevicesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.consoleServerPortTemplateCountLte = &consoleServerPortTemplateCountLte +func (r ApiDcimDevicesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDevicesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.consoleServerPortTemplateCountN = &consoleServerPortTemplateCountN +func (r ApiDcimDevicesListRequest) Latitude(latitude []float64) ApiDcimDevicesListRequest { + r.latitude = &latitude return r } -// Has console server ports -func (r ApiDcimDeviceTypesListRequest) ConsoleServerPorts(consoleServerPorts bool) ApiDcimDeviceTypesListRequest { - r.consoleServerPorts = &consoleServerPorts +func (r ApiDcimDevicesListRequest) LatitudeEmpty(latitudeEmpty bool) ApiDcimDevicesListRequest { + r.latitudeEmpty = &latitudeEmpty return r } -func (r ApiDcimDeviceTypesListRequest) Created(created []time.Time) ApiDcimDeviceTypesListRequest { - r.created = &created +func (r ApiDcimDevicesListRequest) LatitudeGt(latitudeGt []float64) ApiDcimDevicesListRequest { + r.latitudeGt = &latitudeGt return r } -func (r ApiDcimDeviceTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceTypesListRequest { - r.createdEmpty = &createdEmpty +func (r ApiDcimDevicesListRequest) LatitudeGte(latitudeGte []float64) ApiDcimDevicesListRequest { + r.latitudeGte = &latitudeGte return r } -func (r ApiDcimDeviceTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceTypesListRequest { - r.createdGt = &createdGt +func (r ApiDcimDevicesListRequest) LatitudeLt(latitudeLt []float64) ApiDcimDevicesListRequest { + r.latitudeLt = &latitudeLt return r } -func (r ApiDcimDeviceTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDeviceTypesListRequest { - r.createdGte = &createdGte +func (r ApiDcimDevicesListRequest) LatitudeLte(latitudeLte []float64) ApiDcimDevicesListRequest { + r.latitudeLte = &latitudeLte return r } -func (r ApiDcimDeviceTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDeviceTypesListRequest { - r.createdLt = &createdLt +func (r ApiDcimDevicesListRequest) LatitudeN(latitudeN []float64) ApiDcimDevicesListRequest { + r.latitudeN = &latitudeN return r } -func (r ApiDcimDeviceTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDeviceTypesListRequest { - r.createdLte = &createdLte +// Number of results to return per page. +func (r ApiDcimDevicesListRequest) Limit(limit int32) ApiDcimDevicesListRequest { + r.limit = &limit return r } -func (r ApiDcimDeviceTypesListRequest) CreatedN(createdN []time.Time) ApiDcimDeviceTypesListRequest { - r.createdN = &createdN +// Has local config context data +func (r ApiDcimDevicesListRequest) LocalContextData(localContextData bool) ApiDcimDevicesListRequest { + r.localContextData = &localContextData return r } -func (r ApiDcimDeviceTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDeviceTypesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimDevicesListRequest) LocationId(locationId []string) ApiDcimDevicesListRequest { + r.locationId = &locationId return r } -// Default platform (slug) -func (r ApiDcimDeviceTypesListRequest) DefaultPlatform(defaultPlatform []string) ApiDcimDeviceTypesListRequest { - r.defaultPlatform = &defaultPlatform +func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []string) ApiDcimDevicesListRequest { + r.locationIdN = &locationIdN return r } -// Default platform (slug) -func (r ApiDcimDeviceTypesListRequest) DefaultPlatformN(defaultPlatformN []string) ApiDcimDeviceTypesListRequest { - r.defaultPlatformN = &defaultPlatformN +func (r ApiDcimDevicesListRequest) Longitude(longitude []float64) ApiDcimDevicesListRequest { + r.longitude = &longitude return r } -// Default platform (ID) -func (r ApiDcimDeviceTypesListRequest) DefaultPlatformId(defaultPlatformId []*int32) ApiDcimDeviceTypesListRequest { - r.defaultPlatformId = &defaultPlatformId +func (r ApiDcimDevicesListRequest) LongitudeEmpty(longitudeEmpty bool) ApiDcimDevicesListRequest { + r.longitudeEmpty = &longitudeEmpty return r } -// Default platform (ID) -func (r ApiDcimDeviceTypesListRequest) DefaultPlatformIdN(defaultPlatformIdN []*int32) ApiDcimDeviceTypesListRequest { - r.defaultPlatformIdN = &defaultPlatformIdN +func (r ApiDcimDevicesListRequest) LongitudeGt(longitudeGt []float64) ApiDcimDevicesListRequest { + r.longitudeGt = &longitudeGt return r } -func (r ApiDcimDeviceTypesListRequest) Description(description []string) ApiDcimDeviceTypesListRequest { - r.description = &description +func (r ApiDcimDevicesListRequest) LongitudeGte(longitudeGte []float64) ApiDcimDevicesListRequest { + r.longitudeGte = &longitudeGte return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDeviceTypesListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiDcimDevicesListRequest) LongitudeLt(longitudeLt []float64) ApiDcimDevicesListRequest { + r.longitudeLt = &longitudeLt return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDeviceTypesListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimDevicesListRequest) LongitudeLte(longitudeLte []float64) ApiDcimDevicesListRequest { + r.longitudeLte = &longitudeLte return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDeviceTypesListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimDevicesListRequest) LongitudeN(longitudeN []float64) ApiDcimDevicesListRequest { + r.longitudeN = &longitudeN return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDeviceTypesListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimDevicesListRequest) MacAddress(macAddress []string) ApiDcimDevicesListRequest { + r.macAddress = &macAddress return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDeviceTypesListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimDevicesListRequest) MacAddressIc(macAddressIc []string) ApiDcimDevicesListRequest { + r.macAddressIc = &macAddressIc return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionN(descriptionN []string) ApiDcimDeviceTypesListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimDevicesListRequest) MacAddressIe(macAddressIe []string) ApiDcimDevicesListRequest { + r.macAddressIe = &macAddressIe return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDeviceTypesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimDevicesListRequest) MacAddressIew(macAddressIew []string) ApiDcimDevicesListRequest { + r.macAddressIew = &macAddressIew return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDeviceTypesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimDevicesListRequest) MacAddressIsw(macAddressIsw []string) ApiDcimDevicesListRequest { + r.macAddressIsw = &macAddressIsw return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDeviceTypesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimDevicesListRequest) MacAddressN(macAddressN []string) ApiDcimDevicesListRequest { + r.macAddressN = &macAddressN return r } -func (r ApiDcimDeviceTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDeviceTypesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimDevicesListRequest) MacAddressNic(macAddressNic []string) ApiDcimDevicesListRequest { + r.macAddressNic = &macAddressNic return r } -func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCount(deviceBayTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.deviceBayTemplateCount = &deviceBayTemplateCount +func (r ApiDcimDevicesListRequest) MacAddressNie(macAddressNie []string) ApiDcimDevicesListRequest { + r.macAddressNie = &macAddressNie return r } -func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.deviceBayTemplateCountEmpty = &deviceBayTemplateCountEmpty +func (r ApiDcimDevicesListRequest) MacAddressNiew(macAddressNiew []string) ApiDcimDevicesListRequest { + r.macAddressNiew = &macAddressNiew return r } -func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountGt(deviceBayTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.deviceBayTemplateCountGt = &deviceBayTemplateCountGt +func (r ApiDcimDevicesListRequest) MacAddressNisw(macAddressNisw []string) ApiDcimDevicesListRequest { + r.macAddressNisw = &macAddressNisw return r } -func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountGte(deviceBayTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.deviceBayTemplateCountGte = &deviceBayTemplateCountGte +// Manufacturer (slug) +func (r ApiDcimDevicesListRequest) Manufacturer(manufacturer []string) ApiDcimDevicesListRequest { + r.manufacturer = &manufacturer return r } -func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountLt(deviceBayTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.deviceBayTemplateCountLt = &deviceBayTemplateCountLt +// Manufacturer (slug) +func (r ApiDcimDevicesListRequest) ManufacturerN(manufacturerN []string) ApiDcimDevicesListRequest { + r.manufacturerN = &manufacturerN return r } -func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountLte(deviceBayTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.deviceBayTemplateCountLte = &deviceBayTemplateCountLte +// Manufacturer (ID) +func (r ApiDcimDevicesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimDevicesListRequest { + r.manufacturerId = &manufacturerId return r } -func (r ApiDcimDeviceTypesListRequest) DeviceBayTemplateCountN(deviceBayTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.deviceBayTemplateCountN = &deviceBayTemplateCountN +// Manufacturer (ID) +func (r ApiDcimDevicesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimDevicesListRequest { + r.manufacturerIdN = &manufacturerIdN return r } -// Has device bays -func (r ApiDcimDeviceTypesListRequest) DeviceBays(deviceBays bool) ApiDcimDeviceTypesListRequest { - r.deviceBays = &deviceBays +// Device model (slug) +func (r ApiDcimDevicesListRequest) Model(model []string) ApiDcimDevicesListRequest { + r.model = &model return r } -func (r ApiDcimDeviceTypesListRequest) ExcludeFromUtilization(excludeFromUtilization bool) ApiDcimDeviceTypesListRequest { - r.excludeFromUtilization = &excludeFromUtilization +// Device model (slug) +func (r ApiDcimDevicesListRequest) ModelN(modelN []string) ApiDcimDevicesListRequest { + r.modelN = &modelN return r } -func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCount(frontPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.frontPortTemplateCount = &frontPortTemplateCount +func (r ApiDcimDevicesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDevicesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.frontPortTemplateCountEmpty = &frontPortTemplateCountEmpty +func (r ApiDcimDevicesListRequest) ModuleBayCount(moduleBayCount []int32) ApiDcimDevicesListRequest { + r.moduleBayCount = &moduleBayCount return r } -func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountGt(frontPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.frontPortTemplateCountGt = &frontPortTemplateCountGt +func (r ApiDcimDevicesListRequest) ModuleBayCountEmpty(moduleBayCountEmpty bool) ApiDcimDevicesListRequest { + r.moduleBayCountEmpty = &moduleBayCountEmpty return r } -func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountGte(frontPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.frontPortTemplateCountGte = &frontPortTemplateCountGte +func (r ApiDcimDevicesListRequest) ModuleBayCountGt(moduleBayCountGt []int32) ApiDcimDevicesListRequest { + r.moduleBayCountGt = &moduleBayCountGt return r } -func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountLt(frontPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.frontPortTemplateCountLt = &frontPortTemplateCountLt +func (r ApiDcimDevicesListRequest) ModuleBayCountGte(moduleBayCountGte []int32) ApiDcimDevicesListRequest { + r.moduleBayCountGte = &moduleBayCountGte return r } -func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountLte(frontPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.frontPortTemplateCountLte = &frontPortTemplateCountLte +func (r ApiDcimDevicesListRequest) ModuleBayCountLt(moduleBayCountLt []int32) ApiDcimDevicesListRequest { + r.moduleBayCountLt = &moduleBayCountLt return r } -func (r ApiDcimDeviceTypesListRequest) FrontPortTemplateCountN(frontPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.frontPortTemplateCountN = &frontPortTemplateCountN +func (r ApiDcimDevicesListRequest) ModuleBayCountLte(moduleBayCountLte []int32) ApiDcimDevicesListRequest { + r.moduleBayCountLte = &moduleBayCountLte return r } -// Has a front image -func (r ApiDcimDeviceTypesListRequest) HasFrontImage(hasFrontImage bool) ApiDcimDeviceTypesListRequest { - r.hasFrontImage = &hasFrontImage +func (r ApiDcimDevicesListRequest) ModuleBayCountN(moduleBayCountN []int32) ApiDcimDevicesListRequest { + r.moduleBayCountN = &moduleBayCountN return r } -// Has a rear image -func (r ApiDcimDeviceTypesListRequest) HasRearImage(hasRearImage bool) ApiDcimDeviceTypesListRequest { - r.hasRearImage = &hasRearImage +// Has module bays +func (r ApiDcimDevicesListRequest) ModuleBays(moduleBays bool) ApiDcimDevicesListRequest { + r.moduleBays = &moduleBays return r } -func (r ApiDcimDeviceTypesListRequest) Id(id []int32) ApiDcimDeviceTypesListRequest { - r.id = &id +func (r ApiDcimDevicesListRequest) Name(name []string) ApiDcimDevicesListRequest { + r.name = &name return r } -func (r ApiDcimDeviceTypesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceTypesListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimDevicesListRequest) NameEmpty(nameEmpty bool) ApiDcimDevicesListRequest { + r.nameEmpty = &nameEmpty return r } -func (r ApiDcimDeviceTypesListRequest) IdGt(idGt []int32) ApiDcimDeviceTypesListRequest { - r.idGt = &idGt +func (r ApiDcimDevicesListRequest) NameIc(nameIc []string) ApiDcimDevicesListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiDcimDevicesListRequest) NameIe(nameIe []string) ApiDcimDevicesListRequest { + r.nameIe = &nameIe return r } -func (r ApiDcimDeviceTypesListRequest) IdGte(idGte []int32) ApiDcimDeviceTypesListRequest { - r.idGte = &idGte +func (r ApiDcimDevicesListRequest) NameIew(nameIew []string) ApiDcimDevicesListRequest { + r.nameIew = &nameIew return r } -func (r ApiDcimDeviceTypesListRequest) IdLt(idLt []int32) ApiDcimDeviceTypesListRequest { - r.idLt = &idLt +func (r ApiDcimDevicesListRequest) NameIsw(nameIsw []string) ApiDcimDevicesListRequest { + r.nameIsw = &nameIsw return r } -func (r ApiDcimDeviceTypesListRequest) IdLte(idLte []int32) ApiDcimDeviceTypesListRequest { - r.idLte = &idLte +func (r ApiDcimDevicesListRequest) NameN(nameN []string) ApiDcimDevicesListRequest { + r.nameN = &nameN return r } -func (r ApiDcimDeviceTypesListRequest) IdN(idN []int32) ApiDcimDeviceTypesListRequest { - r.idN = &idN +func (r ApiDcimDevicesListRequest) NameNic(nameNic []string) ApiDcimDevicesListRequest { + r.nameNic = &nameNic return r } -func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCount(interfaceTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.interfaceTemplateCount = &interfaceTemplateCount +func (r ApiDcimDevicesListRequest) NameNie(nameNie []string) ApiDcimDevicesListRequest { + r.nameNie = &nameNie return r } -func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.interfaceTemplateCountEmpty = &interfaceTemplateCountEmpty +func (r ApiDcimDevicesListRequest) NameNiew(nameNiew []string) ApiDcimDevicesListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountGt(interfaceTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.interfaceTemplateCountGt = &interfaceTemplateCountGt +func (r ApiDcimDevicesListRequest) NameNisw(nameNisw []string) ApiDcimDevicesListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountGte(interfaceTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.interfaceTemplateCountGte = &interfaceTemplateCountGte +// The initial index from which to return the results. +func (r ApiDcimDevicesListRequest) Offset(offset int32) ApiDcimDevicesListRequest { + r.offset = &offset return r } -func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountLt(interfaceTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.interfaceTemplateCountLt = &interfaceTemplateCountLt +// OOB IP (ID) +func (r ApiDcimDevicesListRequest) OobIpId(oobIpId []int32) ApiDcimDevicesListRequest { + r.oobIpId = &oobIpId return r } -func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountLte(interfaceTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.interfaceTemplateCountLte = &interfaceTemplateCountLte +// OOB IP (ID) +func (r ApiDcimDevicesListRequest) OobIpIdN(oobIpIdN []int32) ApiDcimDevicesListRequest { + r.oobIpIdN = &oobIpIdN return r } -func (r ApiDcimDeviceTypesListRequest) InterfaceTemplateCountN(interfaceTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.interfaceTemplateCountN = &interfaceTemplateCountN +// Which field to use when ordering the results. +func (r ApiDcimDevicesListRequest) Ordering(ordering string) ApiDcimDevicesListRequest { + r.ordering = &ordering return r } -// Has interfaces -func (r ApiDcimDeviceTypesListRequest) Interfaces(interfaces bool) ApiDcimDeviceTypesListRequest { - r.interfaces = &interfaces +// Parent bay (ID) +func (r ApiDcimDevicesListRequest) ParentBayId(parentBayId []int32) ApiDcimDevicesListRequest { + r.parentBayId = &parentBayId return r } -func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCount(inventoryItemTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.inventoryItemTemplateCount = &inventoryItemTemplateCount +// Parent bay (ID) +func (r ApiDcimDevicesListRequest) ParentBayIdN(parentBayIdN []int32) ApiDcimDevicesListRequest { + r.parentBayIdN = &parentBayIdN return r } -func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.inventoryItemTemplateCountEmpty = &inventoryItemTemplateCountEmpty +// Parent Device (ID) +func (r ApiDcimDevicesListRequest) ParentDeviceId(parentDeviceId []int32) ApiDcimDevicesListRequest { + r.parentDeviceId = &parentDeviceId return r } -func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountGt(inventoryItemTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.inventoryItemTemplateCountGt = &inventoryItemTemplateCountGt +// Parent Device (ID) +func (r ApiDcimDevicesListRequest) ParentDeviceIdN(parentDeviceIdN []int32) ApiDcimDevicesListRequest { + r.parentDeviceIdN = &parentDeviceIdN return r } -func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountGte(inventoryItemTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.inventoryItemTemplateCountGte = &inventoryItemTemplateCountGte +// Has pass-through ports +func (r ApiDcimDevicesListRequest) PassThroughPorts(passThroughPorts bool) ApiDcimDevicesListRequest { + r.passThroughPorts = &passThroughPorts return r } -func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountLt(inventoryItemTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.inventoryItemTemplateCountLt = &inventoryItemTemplateCountLt +// Platform (slug) +func (r ApiDcimDevicesListRequest) Platform(platform []string) ApiDcimDevicesListRequest { + r.platform = &platform return r } -func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountLte(inventoryItemTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.inventoryItemTemplateCountLte = &inventoryItemTemplateCountLte +// Platform (slug) +func (r ApiDcimDevicesListRequest) PlatformN(platformN []string) ApiDcimDevicesListRequest { + r.platformN = &platformN return r } -func (r ApiDcimDeviceTypesListRequest) InventoryItemTemplateCountN(inventoryItemTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.inventoryItemTemplateCountN = &inventoryItemTemplateCountN +// Platform (ID) +func (r ApiDcimDevicesListRequest) PlatformId(platformId []*int32) ApiDcimDevicesListRequest { + r.platformId = &platformId return r } -// Has inventory items -func (r ApiDcimDeviceTypesListRequest) InventoryItems(inventoryItems bool) ApiDcimDeviceTypesListRequest { - r.inventoryItems = &inventoryItems +// Platform (ID) +func (r ApiDcimDevicesListRequest) PlatformIdN(platformIdN []*int32) ApiDcimDevicesListRequest { + r.platformIdN = &platformIdN return r } -func (r ApiDcimDeviceTypesListRequest) IsFullDepth(isFullDepth bool) ApiDcimDeviceTypesListRequest { - r.isFullDepth = &isFullDepth +func (r ApiDcimDevicesListRequest) Position(position []float64) ApiDcimDevicesListRequest { + r.position = &position return r } -func (r ApiDcimDeviceTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDeviceTypesListRequest { - r.lastUpdated = &lastUpdated +func (r ApiDcimDevicesListRequest) PositionEmpty(positionEmpty bool) ApiDcimDevicesListRequest { + r.positionEmpty = &positionEmpty return r } -func (r ApiDcimDeviceTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceTypesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiDcimDevicesListRequest) PositionGt(positionGt []float64) ApiDcimDevicesListRequest { + r.positionGt = &positionGt return r } -func (r ApiDcimDeviceTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceTypesListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimDevicesListRequest) PositionGte(positionGte []float64) ApiDcimDevicesListRequest { + r.positionGte = &positionGte return r } -func (r ApiDcimDeviceTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDeviceTypesListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimDevicesListRequest) PositionLt(positionLt []float64) ApiDcimDevicesListRequest { + r.positionLt = &positionLt return r } -func (r ApiDcimDeviceTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDeviceTypesListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimDevicesListRequest) PositionLte(positionLte []float64) ApiDcimDevicesListRequest { + r.positionLte = &positionLte return r } -func (r ApiDcimDeviceTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDeviceTypesListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimDevicesListRequest) PositionN(positionN []float64) ApiDcimDevicesListRequest { + r.positionN = &positionN return r } -func (r ApiDcimDeviceTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDeviceTypesListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiDcimDevicesListRequest) PowerOutletCount(powerOutletCount []int32) ApiDcimDevicesListRequest { + r.powerOutletCount = &powerOutletCount return r } -// Number of results to return per page. -func (r ApiDcimDeviceTypesListRequest) Limit(limit int32) ApiDcimDeviceTypesListRequest { - r.limit = &limit +func (r ApiDcimDevicesListRequest) PowerOutletCountEmpty(powerOutletCountEmpty bool) ApiDcimDevicesListRequest { + r.powerOutletCountEmpty = &powerOutletCountEmpty return r } -// Manufacturer (slug) -func (r ApiDcimDeviceTypesListRequest) Manufacturer(manufacturer []string) ApiDcimDeviceTypesListRequest { - r.manufacturer = &manufacturer +func (r ApiDcimDevicesListRequest) PowerOutletCountGt(powerOutletCountGt []int32) ApiDcimDevicesListRequest { + r.powerOutletCountGt = &powerOutletCountGt return r } -// Manufacturer (slug) -func (r ApiDcimDeviceTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimDeviceTypesListRequest { - r.manufacturerN = &manufacturerN +func (r ApiDcimDevicesListRequest) PowerOutletCountGte(powerOutletCountGte []int32) ApiDcimDevicesListRequest { + r.powerOutletCountGte = &powerOutletCountGte return r } -// Manufacturer (ID) -func (r ApiDcimDeviceTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimDeviceTypesListRequest { - r.manufacturerId = &manufacturerId +func (r ApiDcimDevicesListRequest) PowerOutletCountLt(powerOutletCountLt []int32) ApiDcimDevicesListRequest { + r.powerOutletCountLt = &powerOutletCountLt return r } -// Manufacturer (ID) -func (r ApiDcimDeviceTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimDeviceTypesListRequest { - r.manufacturerIdN = &manufacturerIdN +func (r ApiDcimDevicesListRequest) PowerOutletCountLte(powerOutletCountLte []int32) ApiDcimDevicesListRequest { + r.powerOutletCountLte = &powerOutletCountLte return r } -func (r ApiDcimDeviceTypesListRequest) Model(model []string) ApiDcimDeviceTypesListRequest { - r.model = &model +func (r ApiDcimDevicesListRequest) PowerOutletCountN(powerOutletCountN []int32) ApiDcimDevicesListRequest { + r.powerOutletCountN = &powerOutletCountN return r } -func (r ApiDcimDeviceTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimDeviceTypesListRequest { - r.modelEmpty = &modelEmpty +// Has power outlets +func (r ApiDcimDevicesListRequest) PowerOutlets(powerOutlets bool) ApiDcimDevicesListRequest { + r.powerOutlets = &powerOutlets return r } -func (r ApiDcimDeviceTypesListRequest) ModelIc(modelIc []string) ApiDcimDeviceTypesListRequest { - r.modelIc = &modelIc +func (r ApiDcimDevicesListRequest) PowerPortCount(powerPortCount []int32) ApiDcimDevicesListRequest { + r.powerPortCount = &powerPortCount return r } -func (r ApiDcimDeviceTypesListRequest) ModelIe(modelIe []string) ApiDcimDeviceTypesListRequest { - r.modelIe = &modelIe +func (r ApiDcimDevicesListRequest) PowerPortCountEmpty(powerPortCountEmpty bool) ApiDcimDevicesListRequest { + r.powerPortCountEmpty = &powerPortCountEmpty return r } -func (r ApiDcimDeviceTypesListRequest) ModelIew(modelIew []string) ApiDcimDeviceTypesListRequest { - r.modelIew = &modelIew +func (r ApiDcimDevicesListRequest) PowerPortCountGt(powerPortCountGt []int32) ApiDcimDevicesListRequest { + r.powerPortCountGt = &powerPortCountGt return r } -func (r ApiDcimDeviceTypesListRequest) ModelIsw(modelIsw []string) ApiDcimDeviceTypesListRequest { - r.modelIsw = &modelIsw +func (r ApiDcimDevicesListRequest) PowerPortCountGte(powerPortCountGte []int32) ApiDcimDevicesListRequest { + r.powerPortCountGte = &powerPortCountGte return r } -func (r ApiDcimDeviceTypesListRequest) ModelN(modelN []string) ApiDcimDeviceTypesListRequest { - r.modelN = &modelN +func (r ApiDcimDevicesListRequest) PowerPortCountLt(powerPortCountLt []int32) ApiDcimDevicesListRequest { + r.powerPortCountLt = &powerPortCountLt return r } -func (r ApiDcimDeviceTypesListRequest) ModelNic(modelNic []string) ApiDcimDeviceTypesListRequest { - r.modelNic = &modelNic +func (r ApiDcimDevicesListRequest) PowerPortCountLte(powerPortCountLte []int32) ApiDcimDevicesListRequest { + r.powerPortCountLte = &powerPortCountLte return r } -func (r ApiDcimDeviceTypesListRequest) ModelNie(modelNie []string) ApiDcimDeviceTypesListRequest { - r.modelNie = &modelNie +func (r ApiDcimDevicesListRequest) PowerPortCountN(powerPortCountN []int32) ApiDcimDevicesListRequest { + r.powerPortCountN = &powerPortCountN return r } -func (r ApiDcimDeviceTypesListRequest) ModelNiew(modelNiew []string) ApiDcimDeviceTypesListRequest { - r.modelNiew = &modelNiew +// Has power ports +func (r ApiDcimDevicesListRequest) PowerPorts(powerPorts bool) ApiDcimDevicesListRequest { + r.powerPorts = &powerPorts return r } -func (r ApiDcimDeviceTypesListRequest) ModelNisw(modelNisw []string) ApiDcimDeviceTypesListRequest { - r.modelNisw = &modelNisw +// Primary IPv4 (ID) +func (r ApiDcimDevicesListRequest) PrimaryIp4Id(primaryIp4Id []int32) ApiDcimDevicesListRequest { + r.primaryIp4Id = &primaryIp4Id return r } -func (r ApiDcimDeviceTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceTypesListRequest { - r.modifiedByRequest = &modifiedByRequest +// Primary IPv4 (ID) +func (r ApiDcimDevicesListRequest) PrimaryIp4IdN(primaryIp4IdN []int32) ApiDcimDevicesListRequest { + r.primaryIp4IdN = &primaryIp4IdN return r } -func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCount(moduleBayTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.moduleBayTemplateCount = &moduleBayTemplateCount +// Primary IPv6 (ID) +func (r ApiDcimDevicesListRequest) PrimaryIp6Id(primaryIp6Id []int32) ApiDcimDevicesListRequest { + r.primaryIp6Id = &primaryIp6Id return r } -func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.moduleBayTemplateCountEmpty = &moduleBayTemplateCountEmpty +// Primary IPv6 (ID) +func (r ApiDcimDevicesListRequest) PrimaryIp6IdN(primaryIp6IdN []int32) ApiDcimDevicesListRequest { + r.primaryIp6IdN = &primaryIp6IdN return r } -func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountGt(moduleBayTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.moduleBayTemplateCountGt = &moduleBayTemplateCountGt +// Search +func (r ApiDcimDevicesListRequest) Q(q string) ApiDcimDevicesListRequest { + r.q = &q return r } -func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountGte(moduleBayTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.moduleBayTemplateCountGte = &moduleBayTemplateCountGte +// Rack (ID) +func (r ApiDcimDevicesListRequest) RackId(rackId []int32) ApiDcimDevicesListRequest { + r.rackId = &rackId return r } -func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountLt(moduleBayTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.moduleBayTemplateCountLt = &moduleBayTemplateCountLt +// Rack (ID) +func (r ApiDcimDevicesListRequest) RackIdN(rackIdN []int32) ApiDcimDevicesListRequest { + r.rackIdN = &rackIdN return r } -func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountLte(moduleBayTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.moduleBayTemplateCountLte = &moduleBayTemplateCountLte +func (r ApiDcimDevicesListRequest) RearPortCount(rearPortCount []int32) ApiDcimDevicesListRequest { + r.rearPortCount = &rearPortCount return r } -func (r ApiDcimDeviceTypesListRequest) ModuleBayTemplateCountN(moduleBayTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.moduleBayTemplateCountN = &moduleBayTemplateCountN +func (r ApiDcimDevicesListRequest) RearPortCountEmpty(rearPortCountEmpty bool) ApiDcimDevicesListRequest { + r.rearPortCountEmpty = &rearPortCountEmpty return r } -// Has module bays -func (r ApiDcimDeviceTypesListRequest) ModuleBays(moduleBays bool) ApiDcimDeviceTypesListRequest { - r.moduleBays = &moduleBays +func (r ApiDcimDevicesListRequest) RearPortCountGt(rearPortCountGt []int32) ApiDcimDevicesListRequest { + r.rearPortCountGt = &rearPortCountGt return r } -// The initial index from which to return the results. -func (r ApiDcimDeviceTypesListRequest) Offset(offset int32) ApiDcimDeviceTypesListRequest { - r.offset = &offset +func (r ApiDcimDevicesListRequest) RearPortCountGte(rearPortCountGte []int32) ApiDcimDevicesListRequest { + r.rearPortCountGte = &rearPortCountGte return r } -// Which field to use when ordering the results. -func (r ApiDcimDeviceTypesListRequest) Ordering(ordering string) ApiDcimDeviceTypesListRequest { - r.ordering = &ordering +func (r ApiDcimDevicesListRequest) RearPortCountLt(rearPortCountLt []int32) ApiDcimDevicesListRequest { + r.rearPortCountLt = &rearPortCountLt return r } -func (r ApiDcimDeviceTypesListRequest) PartNumber(partNumber []string) ApiDcimDeviceTypesListRequest { - r.partNumber = &partNumber +func (r ApiDcimDevicesListRequest) RearPortCountLte(rearPortCountLte []int32) ApiDcimDevicesListRequest { + r.rearPortCountLte = &rearPortCountLte return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberEmpty(partNumberEmpty bool) ApiDcimDeviceTypesListRequest { - r.partNumberEmpty = &partNumberEmpty +func (r ApiDcimDevicesListRequest) RearPortCountN(rearPortCountN []int32) ApiDcimDevicesListRequest { + r.rearPortCountN = &rearPortCountN return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberIc(partNumberIc []string) ApiDcimDeviceTypesListRequest { - r.partNumberIc = &partNumberIc +func (r ApiDcimDevicesListRequest) Region(region []string) ApiDcimDevicesListRequest { + r.region = ®ion return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberIe(partNumberIe []string) ApiDcimDeviceTypesListRequest { - r.partNumberIe = &partNumberIe +func (r ApiDcimDevicesListRequest) RegionN(regionN []string) ApiDcimDevicesListRequest { + r.regionN = ®ionN return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberIew(partNumberIew []string) ApiDcimDeviceTypesListRequest { - r.partNumberIew = &partNumberIew +func (r ApiDcimDevicesListRequest) RegionId(regionId []string) ApiDcimDevicesListRequest { + r.regionId = ®ionId return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberIsw(partNumberIsw []string) ApiDcimDeviceTypesListRequest { - r.partNumberIsw = &partNumberIsw +func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []string) ApiDcimDevicesListRequest { + r.regionIdN = ®ionIdN return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberN(partNumberN []string) ApiDcimDeviceTypesListRequest { - r.partNumberN = &partNumberN +// Role (slug) +func (r ApiDcimDevicesListRequest) Role(role []string) ApiDcimDevicesListRequest { + r.role = &role return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberNic(partNumberNic []string) ApiDcimDeviceTypesListRequest { - r.partNumberNic = &partNumberNic +// Role (slug) +func (r ApiDcimDevicesListRequest) RoleN(roleN []string) ApiDcimDevicesListRequest { + r.roleN = &roleN return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberNie(partNumberNie []string) ApiDcimDeviceTypesListRequest { - r.partNumberNie = &partNumberNie +// Role (ID) +func (r ApiDcimDevicesListRequest) RoleId(roleId []int32) ApiDcimDevicesListRequest { + r.roleId = &roleId return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberNiew(partNumberNiew []string) ApiDcimDeviceTypesListRequest { - r.partNumberNiew = &partNumberNiew +// Role (ID) +func (r ApiDcimDevicesListRequest) RoleIdN(roleIdN []int32) ApiDcimDevicesListRequest { + r.roleIdN = &roleIdN return r } -func (r ApiDcimDeviceTypesListRequest) PartNumberNisw(partNumberNisw []string) ApiDcimDeviceTypesListRequest { - r.partNumberNisw = &partNumberNisw +func (r ApiDcimDevicesListRequest) Serial(serial []string) ApiDcimDevicesListRequest { + r.serial = &serial return r } -// Has pass-through ports -func (r ApiDcimDeviceTypesListRequest) PassThroughPorts(passThroughPorts bool) ApiDcimDeviceTypesListRequest { - r.passThroughPorts = &passThroughPorts +func (r ApiDcimDevicesListRequest) SerialEmpty(serialEmpty bool) ApiDcimDevicesListRequest { + r.serialEmpty = &serialEmpty return r } -func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCount(powerOutletTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.powerOutletTemplateCount = &powerOutletTemplateCount +func (r ApiDcimDevicesListRequest) SerialIc(serialIc []string) ApiDcimDevicesListRequest { + r.serialIc = &serialIc return r } -func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.powerOutletTemplateCountEmpty = &powerOutletTemplateCountEmpty +func (r ApiDcimDevicesListRequest) SerialIe(serialIe []string) ApiDcimDevicesListRequest { + r.serialIe = &serialIe return r } -func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountGt(powerOutletTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.powerOutletTemplateCountGt = &powerOutletTemplateCountGt +func (r ApiDcimDevicesListRequest) SerialIew(serialIew []string) ApiDcimDevicesListRequest { + r.serialIew = &serialIew return r } -func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountGte(powerOutletTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.powerOutletTemplateCountGte = &powerOutletTemplateCountGte +func (r ApiDcimDevicesListRequest) SerialIsw(serialIsw []string) ApiDcimDevicesListRequest { + r.serialIsw = &serialIsw return r } -func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountLt(powerOutletTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.powerOutletTemplateCountLt = &powerOutletTemplateCountLt +func (r ApiDcimDevicesListRequest) SerialN(serialN []string) ApiDcimDevicesListRequest { + r.serialN = &serialN return r } -func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountLte(powerOutletTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.powerOutletTemplateCountLte = &powerOutletTemplateCountLte +func (r ApiDcimDevicesListRequest) SerialNic(serialNic []string) ApiDcimDevicesListRequest { + r.serialNic = &serialNic return r } -func (r ApiDcimDeviceTypesListRequest) PowerOutletTemplateCountN(powerOutletTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.powerOutletTemplateCountN = &powerOutletTemplateCountN +func (r ApiDcimDevicesListRequest) SerialNie(serialNie []string) ApiDcimDevicesListRequest { + r.serialNie = &serialNie return r } -// Has power outlets -func (r ApiDcimDeviceTypesListRequest) PowerOutlets(powerOutlets bool) ApiDcimDeviceTypesListRequest { - r.powerOutlets = &powerOutlets +func (r ApiDcimDevicesListRequest) SerialNiew(serialNiew []string) ApiDcimDevicesListRequest { + r.serialNiew = &serialNiew return r } -func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCount(powerPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.powerPortTemplateCount = &powerPortTemplateCount +func (r ApiDcimDevicesListRequest) SerialNisw(serialNisw []string) ApiDcimDevicesListRequest { + r.serialNisw = &serialNisw return r } -func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.powerPortTemplateCountEmpty = &powerPortTemplateCountEmpty +// Site name (slug) +func (r ApiDcimDevicesListRequest) Site(site []string) ApiDcimDevicesListRequest { + r.site = &site return r } -func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountGt(powerPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.powerPortTemplateCountGt = &powerPortTemplateCountGt +// Site name (slug) +func (r ApiDcimDevicesListRequest) SiteN(siteN []string) ApiDcimDevicesListRequest { + r.siteN = &siteN return r } -func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountGte(powerPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.powerPortTemplateCountGte = &powerPortTemplateCountGte +func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []string) ApiDcimDevicesListRequest { + r.siteGroup = &siteGroup return r } -func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountLt(powerPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.powerPortTemplateCountLt = &powerPortTemplateCountLt +func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []string) ApiDcimDevicesListRequest { + r.siteGroupN = &siteGroupN return r } -func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountLte(powerPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.powerPortTemplateCountLte = &powerPortTemplateCountLte +func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []string) ApiDcimDevicesListRequest { + r.siteGroupId = &siteGroupId return r } -func (r ApiDcimDeviceTypesListRequest) PowerPortTemplateCountN(powerPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.powerPortTemplateCountN = &powerPortTemplateCountN +func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDevicesListRequest { + r.siteGroupIdN = &siteGroupIdN return r } -// Has power ports -func (r ApiDcimDeviceTypesListRequest) PowerPorts(powerPorts bool) ApiDcimDeviceTypesListRequest { - r.powerPorts = &powerPorts +// Site (ID) +func (r ApiDcimDevicesListRequest) SiteId(siteId []int32) ApiDcimDevicesListRequest { + r.siteId = &siteId return r } -// Search -func (r ApiDcimDeviceTypesListRequest) Q(q string) ApiDcimDeviceTypesListRequest { - r.q = &q +// Site (ID) +func (r ApiDcimDevicesListRequest) SiteIdN(siteIdN []int32) ApiDcimDevicesListRequest { + r.siteIdN = &siteIdN return r } -func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCount(rearPortTemplateCount []int32) ApiDcimDeviceTypesListRequest { - r.rearPortTemplateCount = &rearPortTemplateCount +func (r ApiDcimDevicesListRequest) Status(status []string) ApiDcimDevicesListRequest { + r.status = &status return r } -func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountEmpty(rearPortTemplateCountEmpty bool) ApiDcimDeviceTypesListRequest { - r.rearPortTemplateCountEmpty = &rearPortTemplateCountEmpty +func (r ApiDcimDevicesListRequest) StatusEmpty(statusEmpty bool) ApiDcimDevicesListRequest { + r.statusEmpty = &statusEmpty return r } -func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountGt(rearPortTemplateCountGt []int32) ApiDcimDeviceTypesListRequest { - r.rearPortTemplateCountGt = &rearPortTemplateCountGt +func (r ApiDcimDevicesListRequest) StatusIc(statusIc []string) ApiDcimDevicesListRequest { + r.statusIc = &statusIc return r } -func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountGte(rearPortTemplateCountGte []int32) ApiDcimDeviceTypesListRequest { - r.rearPortTemplateCountGte = &rearPortTemplateCountGte +func (r ApiDcimDevicesListRequest) StatusIe(statusIe []string) ApiDcimDevicesListRequest { + r.statusIe = &statusIe return r } -func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountLt(rearPortTemplateCountLt []int32) ApiDcimDeviceTypesListRequest { - r.rearPortTemplateCountLt = &rearPortTemplateCountLt +func (r ApiDcimDevicesListRequest) StatusIew(statusIew []string) ApiDcimDevicesListRequest { + r.statusIew = &statusIew return r } -func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountLte(rearPortTemplateCountLte []int32) ApiDcimDeviceTypesListRequest { - r.rearPortTemplateCountLte = &rearPortTemplateCountLte +func (r ApiDcimDevicesListRequest) StatusIsw(statusIsw []string) ApiDcimDevicesListRequest { + r.statusIsw = &statusIsw return r } -func (r ApiDcimDeviceTypesListRequest) RearPortTemplateCountN(rearPortTemplateCountN []int32) ApiDcimDeviceTypesListRequest { - r.rearPortTemplateCountN = &rearPortTemplateCountN +func (r ApiDcimDevicesListRequest) StatusN(statusN []string) ApiDcimDevicesListRequest { + r.statusN = &statusN return r } -func (r ApiDcimDeviceTypesListRequest) Slug(slug []string) ApiDcimDeviceTypesListRequest { - r.slug = &slug +func (r ApiDcimDevicesListRequest) StatusNic(statusNic []string) ApiDcimDevicesListRequest { + r.statusNic = &statusNic return r } -func (r ApiDcimDeviceTypesListRequest) SlugEmpty(slugEmpty bool) ApiDcimDeviceTypesListRequest { - r.slugEmpty = &slugEmpty +func (r ApiDcimDevicesListRequest) StatusNie(statusNie []string) ApiDcimDevicesListRequest { + r.statusNie = &statusNie return r } -func (r ApiDcimDeviceTypesListRequest) SlugIc(slugIc []string) ApiDcimDeviceTypesListRequest { - r.slugIc = &slugIc +func (r ApiDcimDevicesListRequest) StatusNiew(statusNiew []string) ApiDcimDevicesListRequest { + r.statusNiew = &statusNiew return r } -func (r ApiDcimDeviceTypesListRequest) SlugIe(slugIe []string) ApiDcimDeviceTypesListRequest { - r.slugIe = &slugIe +func (r ApiDcimDevicesListRequest) StatusNisw(statusNisw []string) ApiDcimDevicesListRequest { + r.statusNisw = &statusNisw return r } -func (r ApiDcimDeviceTypesListRequest) SlugIew(slugIew []string) ApiDcimDeviceTypesListRequest { - r.slugIew = &slugIew +func (r ApiDcimDevicesListRequest) Tag(tag []string) ApiDcimDevicesListRequest { + r.tag = &tag return r } -func (r ApiDcimDeviceTypesListRequest) SlugIsw(slugIsw []string) ApiDcimDeviceTypesListRequest { - r.slugIsw = &slugIsw +func (r ApiDcimDevicesListRequest) TagN(tagN []string) ApiDcimDevicesListRequest { + r.tagN = &tagN return r } -func (r ApiDcimDeviceTypesListRequest) SlugN(slugN []string) ApiDcimDeviceTypesListRequest { - r.slugN = &slugN +// Tenant (slug) +func (r ApiDcimDevicesListRequest) Tenant(tenant []string) ApiDcimDevicesListRequest { + r.tenant = &tenant return r } -func (r ApiDcimDeviceTypesListRequest) SlugNic(slugNic []string) ApiDcimDeviceTypesListRequest { - r.slugNic = &slugNic +// Tenant (slug) +func (r ApiDcimDevicesListRequest) TenantN(tenantN []string) ApiDcimDevicesListRequest { + r.tenantN = &tenantN return r } -func (r ApiDcimDeviceTypesListRequest) SlugNie(slugNie []string) ApiDcimDeviceTypesListRequest { - r.slugNie = &slugNie +func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []string) ApiDcimDevicesListRequest { + r.tenantGroup = &tenantGroup return r } -func (r ApiDcimDeviceTypesListRequest) SlugNiew(slugNiew []string) ApiDcimDeviceTypesListRequest { - r.slugNiew = &slugNiew +func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimDevicesListRequest { + r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimDeviceTypesListRequest) SlugNisw(slugNisw []string) ApiDcimDeviceTypesListRequest { - r.slugNisw = &slugNisw +func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimDevicesListRequest { + r.tenantGroupId = &tenantGroupId return r } -// 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 -func (r ApiDcimDeviceTypesListRequest) SubdeviceRole(subdeviceRole ParentChildStatus) ApiDcimDeviceTypesListRequest { - r.subdeviceRole = &subdeviceRole +func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimDevicesListRequest { + r.tenantGroupIdN = &tenantGroupIdN return r } -// 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 -func (r ApiDcimDeviceTypesListRequest) SubdeviceRoleN(subdeviceRoleN ParentChildStatus) ApiDcimDeviceTypesListRequest { - r.subdeviceRoleN = &subdeviceRoleN +// Tenant (ID) +func (r ApiDcimDevicesListRequest) TenantId(tenantId []*int32) ApiDcimDevicesListRequest { + r.tenantId = &tenantId return r } -func (r ApiDcimDeviceTypesListRequest) Tag(tag []string) ApiDcimDeviceTypesListRequest { - r.tag = &tag +// Tenant (ID) +func (r ApiDcimDevicesListRequest) TenantIdN(tenantIdN []*int32) ApiDcimDevicesListRequest { + r.tenantIdN = &tenantIdN return r } -func (r ApiDcimDeviceTypesListRequest) TagN(tagN []string) ApiDcimDeviceTypesListRequest { - r.tagN = &tagN +func (r ApiDcimDevicesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDevicesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimDeviceTypesListRequest) UHeight(uHeight []float64) ApiDcimDeviceTypesListRequest { - r.uHeight = &uHeight +func (r ApiDcimDevicesListRequest) VcPosition(vcPosition []int32) ApiDcimDevicesListRequest { + r.vcPosition = &vcPosition return r } -func (r ApiDcimDeviceTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimDeviceTypesListRequest { - r.uHeightEmpty = &uHeightEmpty +func (r ApiDcimDevicesListRequest) VcPositionEmpty(vcPositionEmpty bool) ApiDcimDevicesListRequest { + r.vcPositionEmpty = &vcPositionEmpty return r } -func (r ApiDcimDeviceTypesListRequest) UHeightGt(uHeightGt []float64) ApiDcimDeviceTypesListRequest { - r.uHeightGt = &uHeightGt +func (r ApiDcimDevicesListRequest) VcPositionGt(vcPositionGt []int32) ApiDcimDevicesListRequest { + r.vcPositionGt = &vcPositionGt return r } -func (r ApiDcimDeviceTypesListRequest) UHeightGte(uHeightGte []float64) ApiDcimDeviceTypesListRequest { - r.uHeightGte = &uHeightGte +func (r ApiDcimDevicesListRequest) VcPositionGte(vcPositionGte []int32) ApiDcimDevicesListRequest { + r.vcPositionGte = &vcPositionGte return r } -func (r ApiDcimDeviceTypesListRequest) UHeightLt(uHeightLt []float64) ApiDcimDeviceTypesListRequest { - r.uHeightLt = &uHeightLt +func (r ApiDcimDevicesListRequest) VcPositionLt(vcPositionLt []int32) ApiDcimDevicesListRequest { + r.vcPositionLt = &vcPositionLt return r } -func (r ApiDcimDeviceTypesListRequest) UHeightLte(uHeightLte []float64) ApiDcimDeviceTypesListRequest { - r.uHeightLte = &uHeightLte +func (r ApiDcimDevicesListRequest) VcPositionLte(vcPositionLte []int32) ApiDcimDevicesListRequest { + r.vcPositionLte = &vcPositionLte return r } -func (r ApiDcimDeviceTypesListRequest) UHeightN(uHeightN []float64) ApiDcimDeviceTypesListRequest { - r.uHeightN = &uHeightN +func (r ApiDcimDevicesListRequest) VcPositionN(vcPositionN []int32) ApiDcimDevicesListRequest { + r.vcPositionN = &vcPositionN return r } -func (r ApiDcimDeviceTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDeviceTypesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimDevicesListRequest) VcPriority(vcPriority []int32) ApiDcimDevicesListRequest { + r.vcPriority = &vcPriority return r } -func (r ApiDcimDeviceTypesListRequest) Weight(weight []float64) ApiDcimDeviceTypesListRequest { - r.weight = &weight +func (r ApiDcimDevicesListRequest) VcPriorityEmpty(vcPriorityEmpty bool) ApiDcimDevicesListRequest { + r.vcPriorityEmpty = &vcPriorityEmpty return r } -func (r ApiDcimDeviceTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimDeviceTypesListRequest { - r.weightEmpty = &weightEmpty +func (r ApiDcimDevicesListRequest) VcPriorityGt(vcPriorityGt []int32) ApiDcimDevicesListRequest { + r.vcPriorityGt = &vcPriorityGt return r } -func (r ApiDcimDeviceTypesListRequest) WeightGt(weightGt []float64) ApiDcimDeviceTypesListRequest { - r.weightGt = &weightGt +func (r ApiDcimDevicesListRequest) VcPriorityGte(vcPriorityGte []int32) ApiDcimDevicesListRequest { + r.vcPriorityGte = &vcPriorityGte return r } -func (r ApiDcimDeviceTypesListRequest) WeightGte(weightGte []float64) ApiDcimDeviceTypesListRequest { - r.weightGte = &weightGte +func (r ApiDcimDevicesListRequest) VcPriorityLt(vcPriorityLt []int32) ApiDcimDevicesListRequest { + r.vcPriorityLt = &vcPriorityLt return r } -func (r ApiDcimDeviceTypesListRequest) WeightLt(weightLt []float64) ApiDcimDeviceTypesListRequest { - r.weightLt = &weightLt +func (r ApiDcimDevicesListRequest) VcPriorityLte(vcPriorityLte []int32) ApiDcimDevicesListRequest { + r.vcPriorityLte = &vcPriorityLte return r } -func (r ApiDcimDeviceTypesListRequest) WeightLte(weightLte []float64) ApiDcimDeviceTypesListRequest { - r.weightLte = &weightLte +func (r ApiDcimDevicesListRequest) VcPriorityN(vcPriorityN []int32) ApiDcimDevicesListRequest { + r.vcPriorityN = &vcPriorityN return r } -func (r ApiDcimDeviceTypesListRequest) WeightN(weightN []float64) ApiDcimDeviceTypesListRequest { - r.weightN = &weightN +// Virtual chassis (ID) +func (r ApiDcimDevicesListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimDevicesListRequest { + r.virtualChassisId = &virtualChassisId return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimDeviceTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimDeviceTypesListRequest { - r.weightUnit = &weightUnit +// Virtual chassis (ID) +func (r ApiDcimDevicesListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimDevicesListRequest { + r.virtualChassisIdN = &virtualChassisIdN return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimDeviceTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimDeviceTypesListRequest { - r.weightUnitN = &weightUnitN +// Is a virtual chassis member +func (r ApiDcimDevicesListRequest) VirtualChassisMember(virtualChassisMember bool) ApiDcimDevicesListRequest { + r.virtualChassisMember = &virtualChassisMember return r } -func (r ApiDcimDeviceTypesListRequest) Execute() (*PaginatedDeviceTypeList, *http.Response, error) { - return r.ApiService.DcimDeviceTypesListExecute(r) +func (r ApiDcimDevicesListRequest) Execute() (*PaginatedDeviceWithConfigContextList, *http.Response, error) { + return r.ApiService.DcimDevicesListExecute(r) } /* -DcimDeviceTypesList Method for DcimDeviceTypesList +DcimDevicesList Method for DcimDevicesList -Get a list of device type objects. +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 ApiDcimDeviceTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesListRequest */ -func (a *DcimAPIService) DcimDeviceTypesList(ctx context.Context) ApiDcimDeviceTypesListRequest { - return ApiDcimDeviceTypesListRequest{ +func (a *DcimAPIService) DcimDevicesList(ctx context.Context) ApiDcimDevicesListRequest { + return ApiDcimDevicesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceTypeList -func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequest) (*PaginatedDeviceTypeList, *http.Response, error) { +// @return PaginatedDeviceWithConfigContextList +func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*PaginatedDeviceWithConfigContextList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceWithConfigContextList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/device-types/" + localVarPath := localBasePath + "/api/dcim/devices/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} if r.airflow != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "form", "") + } + if r.assetTag != nil { + t := *r.assetTag + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "form", "multi") + } + } + if r.assetTagEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "form", "") + } + if r.assetTagIc != nil { + t := *r.assetTagIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "form", "multi") + } + } + if r.assetTagIe != nil { + t := *r.assetTagIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "form", "multi") + } + } + if r.assetTagIew != nil { + t := *r.assetTagIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "form", "multi") + } + } + if r.assetTagIsw != nil { + t := *r.assetTagIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "form", "multi") + } + } + if r.assetTagN != nil { + t := *r.assetTagN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "form", "multi") + } + } + if r.assetTagNic != nil { + t := *r.assetTagNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "form", "multi") + } + } + if r.assetTagNie != nil { + t := *r.assetTagNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "form", "multi") + } + } + if r.assetTagNiew != nil { + t := *r.assetTagNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "form", "multi") + } + } + if r.assetTagNisw != nil { + t := *r.assetTagNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "form", "multi") + } + } + if r.consolePortCount != nil { + t := *r.consolePortCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count", t, "form", "multi") + } + } + if r.consolePortCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__empty", r.consolePortCountEmpty, "form", "") + } + if r.consolePortCountGt != nil { + t := *r.consolePortCountGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gt", t, "form", "multi") + } + } + if r.consolePortCountGte != nil { + t := *r.consolePortCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gte", t, "form", "multi") + } + } + if r.consolePortCountLt != nil { + t := *r.consolePortCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lt", t, "form", "multi") + } + } + if r.consolePortCountLte != nil { + t := *r.consolePortCountLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lte", t, "form", "multi") + } + } + if r.consolePortCountN != nil { + t := *r.consolePortCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__n", t, "form", "multi") + } + } + if r.consolePorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "form", "") + } + if r.consoleServerPortCount != nil { + t := *r.consoleServerPortCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count", t, "form", "multi") + } + } + if r.consoleServerPortCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__empty", r.consoleServerPortCountEmpty, "form", "") + } + if r.consoleServerPortCountGt != nil { + t := *r.consoleServerPortCountGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gt", t, "form", "multi") + } + } + if r.consoleServerPortCountGte != nil { + t := *r.consoleServerPortCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gte", t, "form", "multi") + } + } + if r.consoleServerPortCountLt != nil { + t := *r.consoleServerPortCountLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lt", t, "form", "multi") + } + } + if r.consoleServerPortCountLte != nil { + t := *r.consoleServerPortCountLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lte", t, "form", "multi") + } + } + if r.consoleServerPortCountN != nil { + t := *r.consoleServerPortCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__n", t, "form", "multi") + } + } + if r.consoleServerPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") + } + } + if r.contactN != nil { + t := *r.contactN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") + } + } + if r.contactGroup != nil { + t := *r.contactGroup + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") + } + } + if r.contactGroupN != nil { + t := *r.contactGroupN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") + } + } + if r.contactRole != nil { + t := *r.contactRole + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") + } + } + if r.contactRoleN != nil { + t := *r.contactRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.deviceBayCount != nil { + t := *r.deviceBayCount + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count", t, "form", "multi") + } } - if r.airflowN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") + if r.deviceBayCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__empty", r.deviceBayCountEmpty, "form", "") } - if r.consolePortTemplateCount != nil { - t := *r.consolePortTemplateCount + if r.deviceBayCountGt != nil { + t := *r.deviceBayCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__gt", t, "form", "multi") } } - if r.consolePortTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__empty", r.consolePortTemplateCountEmpty, "") + if r.deviceBayCountGte != nil { + t := *r.deviceBayCountGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__gte", t, "form", "multi") + } } - if r.consolePortTemplateCountGt != nil { - t := *r.consolePortTemplateCountGt + if r.deviceBayCountLt != nil { + t := *r.deviceBayCountLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__lt", t, "form", "multi") } } - if r.consolePortTemplateCountGte != nil { - t := *r.consolePortTemplateCountGte + if r.deviceBayCountLte != nil { + t := *r.deviceBayCountLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__lte", t, "form", "multi") } } - if r.consolePortTemplateCountLt != nil { - t := *r.consolePortTemplateCountLt + if r.deviceBayCountN != nil { + t := *r.deviceBayCountN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__n", t, "form", "multi") } } - if r.consolePortTemplateCountLte != nil { - t := *r.consolePortTemplateCountLte + if r.deviceBays != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "form", "") + } + if r.deviceType != nil { + t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") } } - if r.consolePortTemplateCountN != nil { - t := *r.consolePortTemplateCountN + if r.deviceTypeN != nil { + t := *r.deviceTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.consolePorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") + } } - if r.consoleServerPortTemplateCount != nil { - t := *r.consoleServerPortTemplateCount + 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, "console_server_port_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.consoleServerPortTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__empty", r.consoleServerPortTemplateCountEmpty, "") + if r.face != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "face", r.face, "form", "") } - if r.consoleServerPortTemplateCountGt != nil { - t := *r.consoleServerPortTemplateCountGt + if r.frontPortCount != nil { + t := *r.frontPortCount if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count", t, "form", "multi") } } - if r.consoleServerPortTemplateCountGte != nil { - t := *r.consoleServerPortTemplateCountGte + if r.frontPortCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__empty", r.frontPortCountEmpty, "form", "") + } + if r.frontPortCountGt != nil { + t := *r.frontPortCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gt", t, "form", "multi") } } - if r.consoleServerPortTemplateCountLt != nil { - t := *r.consoleServerPortTemplateCountLt + if r.frontPortCountGte != nil { + t := *r.frontPortCountGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gte", t, "form", "multi") } } - if r.consoleServerPortTemplateCountLte != nil { - t := *r.consoleServerPortTemplateCountLte + if r.frontPortCountLt != nil { + t := *r.frontPortCountLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__lt", t, "form", "multi") } } - if r.consoleServerPortTemplateCountN != nil { - t := *r.consoleServerPortTemplateCountN + if r.frontPortCountLte != nil { + t := *r.frontPortCountLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__lte", t, "form", "multi") } } - if r.consoleServerPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "") + if r.frontPortCountN != nil { + t := *r.frontPortCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__n", t, "form", "multi") + } } - if r.created != nil { - t := *r.created + if r.hasOobIp != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_oob_ip", r.hasOobIp, "form", "") + } + if r.hasPrimaryIp != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "form", "") + } + if r.hasVirtualDeviceContext != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_virtual_device_context", r.hasVirtualDeviceContext, "form", "") + } + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.interfaceCount != nil { + t := *r.interfaceCount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + if r.interfaceCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__empty", r.interfaceCountEmpty, "form", "") } - if r.defaultPlatform != nil { - t := *r.defaultPlatform + if r.interfaceCountGt != nil { + t := *r.interfaceCountGt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", t, "form", "multi") } } - if r.defaultPlatformN != nil { - t := *r.defaultPlatformN + if r.interfaceCountGte != nil { + t := *r.interfaceCountGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gte", t, "form", "multi") } } - if r.defaultPlatformId != nil { - t := *r.defaultPlatformId + if r.interfaceCountLt != nil { + t := *r.interfaceCountLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lt", t, "form", "multi") } } - if r.defaultPlatformIdN != nil { - t := *r.defaultPlatformIdN + if r.interfaceCountLte != nil { + t := *r.interfaceCountLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lte", t, "form", "multi") } } - if r.description != nil { - t := *r.description + if r.interfaceCountN != nil { + t := *r.interfaceCountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__n", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.interfaces != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "form", "") } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.inventoryItemCount != nil { + t := *r.inventoryItemCount 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.inventoryItemCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__empty", r.inventoryItemCountEmpty, "form", "") + } + if r.inventoryItemCountGt != nil { + t := *r.inventoryItemCountGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__gt", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.inventoryItemCountGte != nil { + t := *r.inventoryItemCountGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__gte", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.inventoryItemCountLt != nil { + t := *r.inventoryItemCountLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__lt", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.inventoryItemCountLte != nil { + t := *r.inventoryItemCountLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__lte", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.inventoryItemCountN != nil { + t := *r.inventoryItemCountN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__n", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.isFullDepth != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_full_depth", r.isFullDepth, "form", "") + } + 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.deviceBayTemplateCount != nil { - t := *r.deviceBayTemplateCount + 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, "device_bay_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.deviceBayTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__empty", r.deviceBayTemplateCountEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") + } } - if r.deviceBayTemplateCountGt != nil { - t := *r.deviceBayTemplateCountGt + 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, "device_bay_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.deviceBayTemplateCountGte != nil { - t := *r.deviceBayTemplateCountGte + 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, "device_bay_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.deviceBayTemplateCountLt != nil { - t := *r.deviceBayTemplateCountLt + 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, "device_bay_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", t, "form", "multi") } } - if r.deviceBayTemplateCountLte != nil { - t := *r.deviceBayTemplateCountLte + if r.latitudeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__empty", r.latitudeEmpty, "form", "") + } + 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, "device_bay_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", t, "form", "multi") } } - if r.deviceBayTemplateCountN != nil { - t := *r.deviceBayTemplateCountN + 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, "device_bay_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", t, "form", "multi") } } - if r.deviceBays != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", t, "form", "multi") + } } - if r.excludeFromUtilization != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "exclude_from_utilization", r.excludeFromUtilization, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", t, "form", "multi") + } } - if r.frontPortTemplateCount != nil { - t := *r.frontPortTemplateCount + 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, "front_port_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", t, "form", "multi") } } - if r.frontPortTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__empty", r.frontPortTemplateCountEmpty, "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.frontPortTemplateCountGt != nil { - t := *r.frontPortTemplateCountGt + if r.localContextData != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "local_context_data", r.localContextData, "form", "") + } + 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, "front_port_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } - if r.frontPortTemplateCountGte != nil { - t := *r.frontPortTemplateCountGte + 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, "front_port_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.frontPortTemplateCountLt != nil { - t := *r.frontPortTemplateCountLt + 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, "front_port_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", t, "form", "multi") } } - if r.frontPortTemplateCountLte != nil { - t := *r.frontPortTemplateCountLte + if r.longitudeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__empty", r.longitudeEmpty, "form", "") + } + 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, "front_port_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", t, "form", "multi") } } - if r.frontPortTemplateCountN != nil { - t := *r.frontPortTemplateCountN + 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, "front_port_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", t, "form", "multi") } } - if r.hasFrontImage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "has_front_image", r.hasFrontImage, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", t, "form", "multi") + } } - if r.hasRearImage != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "has_rear_image", r.hasRearImage, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", t, "form", "multi") + } } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "form", "multi") + } } - if r.idGt != nil { - t := *r.idGt + if r.macAddressIc != nil { + t := *r.macAddressIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.macAddressIe != nil { + t := *r.macAddressIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.macAddressIew != nil { + t := *r.macAddressIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.macAddressIsw != nil { + t := *r.macAddressIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.macAddressN != nil { + t := *r.macAddressN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "form", "multi") } } - if r.interfaceTemplateCount != nil { - t := *r.interfaceTemplateCount + if r.macAddressNic != nil { + t := *r.macAddressNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "form", "multi") } } - if r.interfaceTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__empty", r.interfaceTemplateCountEmpty, "") + if r.macAddressNie != nil { + t := *r.macAddressNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "form", "multi") + } } - if r.interfaceTemplateCountGt != nil { - t := *r.interfaceTemplateCountGt + if r.macAddressNiew != nil { + t := *r.macAddressNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "form", "multi") } } - if r.interfaceTemplateCountGte != nil { - t := *r.interfaceTemplateCountGte + if r.macAddressNisw != nil { + t := *r.macAddressNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "form", "multi") } } - if r.interfaceTemplateCountLt != nil { - t := *r.interfaceTemplateCountLt + if r.manufacturer != nil { + t := *r.manufacturer if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") } } - if r.interfaceTemplateCountLte != nil { - t := *r.interfaceTemplateCountLte + if r.manufacturerN != nil { + t := *r.manufacturerN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") } } - if r.interfaceTemplateCountN != nil { - t := *r.interfaceTemplateCountN + if r.manufacturerId != nil { + t := *r.manufacturerId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") } } - if r.interfaces != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "") + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") + } } - if r.inventoryItemTemplateCount != nil { - t := *r.inventoryItemTemplateCount + if r.model != nil { + t := *r.model if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "form", "multi") } } - if r.inventoryItemTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__empty", r.inventoryItemTemplateCountEmpty, "") + if r.modelN != nil { + t := *r.modelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "form", "multi") + } } - if r.inventoryItemTemplateCountGt != nil { - t := *r.inventoryItemTemplateCountGt + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.moduleBayCount != nil { + t := *r.moduleBayCount if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count", t, "form", "multi") } } - if r.inventoryItemTemplateCountGte != nil { - t := *r.inventoryItemTemplateCountGte + if r.moduleBayCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__empty", r.moduleBayCountEmpty, "form", "") + } + if r.moduleBayCountGt != nil { + t := *r.moduleBayCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gt", t, "form", "multi") } } - if r.inventoryItemTemplateCountLt != nil { - t := *r.inventoryItemTemplateCountLt + if r.moduleBayCountGte != nil { + t := *r.moduleBayCountGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gte", t, "form", "multi") } } - if r.inventoryItemTemplateCountLte != nil { - t := *r.inventoryItemTemplateCountLte + if r.moduleBayCountLt != nil { + t := *r.moduleBayCountLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lt", t, "form", "multi") } } - if r.inventoryItemTemplateCountN != nil { - t := *r.inventoryItemTemplateCountN + if r.moduleBayCountLte != nil { + t := *r.moduleBayCountLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lte", t, "form", "multi") } } - if r.inventoryItems != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_items", r.inventoryItems, "") + if r.moduleBayCountN != nil { + t := *r.moduleBayCountN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__n", t, "form", "multi") + } } - if r.isFullDepth != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_full_depth", r.isFullDepth, "") + if r.moduleBays != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "form", "") } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.manufacturer != nil { - t := *r.manufacturer + 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, "manufacturer", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.manufacturerN != nil { - t := *r.manufacturerN + 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, "manufacturer__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.manufacturerId != nil { - t := *r.manufacturerId + 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, "manufacturer_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.manufacturerIdN != nil { - t := *r.manufacturerIdN + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + 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, "manufacturer_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id", t, "form", "multi") } } - if r.model != nil { - t := *r.model + 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, "model", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id__n", t, "form", "multi") } } - if r.modelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "") + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.modelIc != nil { - t := *r.modelIc + if r.parentBayId != nil { + t := *r.parentBayId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id", t, "form", "multi") } } - if r.modelIe != nil { - t := *r.modelIe + if r.parentBayIdN != nil { + t := *r.parentBayIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id__n", t, "form", "multi") } } - if r.modelIew != nil { - t := *r.modelIew + if r.parentDeviceId != nil { + t := *r.parentDeviceId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id", t, "form", "multi") } } - if r.modelIsw != nil { - t := *r.modelIsw + if r.parentDeviceIdN != nil { + t := *r.parentDeviceIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id__n", t, "form", "multi") } } - if r.modelN != nil { - t := *r.modelN + if r.passThroughPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pass_through_ports", r.passThroughPorts, "form", "") + } + 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, "model__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "form", "multi") } } - if r.modelNic != nil { - t := *r.modelNic + 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, "model__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "form", "multi") } } - if r.modelNie != nil { - t := *r.modelNie + 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, "model__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "form", "multi") } } - if r.modelNiew != nil { - t := *r.modelNiew + 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, "model__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "form", "multi") } } - if r.modelNisw != nil { - t := *r.modelNisw + if r.position != nil { + t := *r.position + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "form", "multi") + } + } + if r.positionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "form", "") + } + 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, "model__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__gt", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.moduleBayTemplateCount != nil { - t := *r.moduleBayTemplateCount + if r.positionGte != nil { + t := *r.positionGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__gte", t, "form", "multi") } } - if r.moduleBayTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__empty", r.moduleBayTemplateCountEmpty, "") - } - if r.moduleBayTemplateCountGt != nil { - t := *r.moduleBayTemplateCountGt + if r.positionLt != nil { + t := *r.positionLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__lt", t, "form", "multi") } } - if r.moduleBayTemplateCountGte != nil { - t := *r.moduleBayTemplateCountGte + if r.positionLte != nil { + t := *r.positionLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__lte", t, "form", "multi") } } - if r.moduleBayTemplateCountLt != nil { - t := *r.moduleBayTemplateCountLt + if r.positionN != nil { + t := *r.positionN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "form", "multi") } } - if r.moduleBayTemplateCountLte != nil { - t := *r.moduleBayTemplateCountLte + if r.powerOutletCount != nil { + t := *r.powerOutletCount if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count", t, "form", "multi") } } - if r.moduleBayTemplateCountN != nil { - t := *r.moduleBayTemplateCountN + if r.powerOutletCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__empty", r.powerOutletCountEmpty, "form", "") + } + if r.powerOutletCountGt != nil { + t := *r.powerOutletCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gt", t, "form", "multi") } } - if r.moduleBays != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.partNumber != nil { - t := *r.partNumber + if r.powerOutletCountGte != nil { + t := *r.powerOutletCountGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gte", t, "form", "multi") } } - if r.partNumberEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__empty", r.partNumberEmpty, "") - } - if r.partNumberIc != nil { - t := *r.partNumberIc + if r.powerOutletCountLt != nil { + t := *r.powerOutletCountLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lt", t, "form", "multi") } } - if r.partNumberIe != nil { - t := *r.partNumberIe + if r.powerOutletCountLte != nil { + t := *r.powerOutletCountLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lte", t, "form", "multi") } } - if r.partNumberIew != nil { - t := *r.partNumberIew + if r.powerOutletCountN != nil { + t := *r.powerOutletCountN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__n", t, "form", "multi") } } - if r.partNumberIsw != nil { - t := *r.partNumberIsw + if r.powerOutlets != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "form", "") + } + if r.powerPortCount != nil { + t := *r.powerPortCount 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count", t, "form", "multi") } } - if r.partNumberN != nil { - t := *r.partNumberN + if r.powerPortCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__empty", r.powerPortCountEmpty, "form", "") + } + if r.powerPortCountGt != nil { + t := *r.powerPortCountGt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gt", t, "form", "multi") } } - if r.partNumberNic != nil { - t := *r.partNumberNic + if r.powerPortCountGte != nil { + t := *r.powerPortCountGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gte", t, "form", "multi") } } - if r.partNumberNie != nil { - t := *r.partNumberNie + if r.powerPortCountLt != nil { + t := *r.powerPortCountLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lt", t, "form", "multi") } } - if r.partNumberNiew != nil { - t := *r.partNumberNiew + if r.powerPortCountLte != nil { + t := *r.powerPortCountLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lte", t, "form", "multi") } } - if r.partNumberNisw != nil { - t := *r.partNumberNisw + if r.powerPortCountN != nil { + t := *r.powerPortCountN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__n", t, "form", "multi") } } - if r.passThroughPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "pass_through_ports", r.passThroughPorts, "") + if r.powerPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "form", "") } - if r.powerOutletTemplateCount != nil { - t := *r.powerOutletTemplateCount + if r.primaryIp4Id != nil { + t := *r.primaryIp4Id if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "form", "multi") } } - if r.powerOutletTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__empty", r.powerOutletTemplateCountEmpty, "") - } - if r.powerOutletTemplateCountGt != nil { - t := *r.powerOutletTemplateCountGt + if r.primaryIp4IdN != nil { + t := *r.primaryIp4IdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "form", "multi") } } - if r.powerOutletTemplateCountGte != nil { - t := *r.powerOutletTemplateCountGte + if r.primaryIp6Id != nil { + t := *r.primaryIp6Id if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "form", "multi") } } - if r.powerOutletTemplateCountLt != nil { - t := *r.powerOutletTemplateCountLt + if r.primaryIp6IdN != nil { + t := *r.primaryIp6IdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "form", "multi") } } - if r.powerOutletTemplateCountLte != nil { - t := *r.powerOutletTemplateCountLte + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rackId != nil { + t := *r.rackId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") } } - if r.powerOutletTemplateCountN != nil { - t := *r.powerOutletTemplateCountN + if r.rackIdN != nil { + t := *r.rackIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") } } - if r.powerOutlets != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "") - } - if r.powerPortTemplateCount != nil { - t := *r.powerPortTemplateCount + if r.rearPortCount != nil { + t := *r.rearPortCount if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count", t, "form", "multi") } } - if r.powerPortTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__empty", r.powerPortTemplateCountEmpty, "") + if r.rearPortCountEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__empty", r.rearPortCountEmpty, "form", "") } - if r.powerPortTemplateCountGt != nil { - t := *r.powerPortTemplateCountGt + if r.rearPortCountGt != nil { + t := *r.rearPortCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gt", t, "form", "multi") } } - if r.powerPortTemplateCountGte != nil { - t := *r.powerPortTemplateCountGte + if r.rearPortCountGte != nil { + t := *r.rearPortCountGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gte", t, "form", "multi") } } - if r.powerPortTemplateCountLt != nil { - t := *r.powerPortTemplateCountLt + if r.rearPortCountLt != nil { + t := *r.rearPortCountLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lt", t, "form", "multi") } } - if r.powerPortTemplateCountLte != nil { - t := *r.powerPortTemplateCountLte + if r.rearPortCountLte != nil { + t := *r.rearPortCountLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lte", t, "form", "multi") } } - if r.powerPortTemplateCountN != nil { - t := *r.powerPortTemplateCountN + if r.rearPortCountN != nil { + t := *r.rearPortCountN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__n", t, "form", "multi") } } - if r.powerPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rearPortTemplateCount != nil { - t := *r.rearPortTemplateCount + 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, "rear_port_template_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.rearPortTemplateCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__empty", r.rearPortTemplateCountEmpty, "") - } - if r.rearPortTemplateCountGt != nil { - t := *r.rearPortTemplateCountGt + 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, "rear_port_template_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } - if r.rearPortTemplateCountGte != nil { - t := *r.rearPortTemplateCountGte + 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, "rear_port_template_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.rearPortTemplateCountLt != nil { - t := *r.rearPortTemplateCountLt + 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, "rear_port_template_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.rearPortTemplateCountLte != nil { - t := *r.rearPortTemplateCountLte + 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, "rear_port_template_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } - if r.rearPortTemplateCountN != nil { - t := *r.rearPortTemplateCountN + 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, "rear_port_template_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_template_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } - if r.slug != nil { - t := *r.slug + 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, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc + 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, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + if r.serial != nil { + t := *r.serial 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + if r.serialEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "form", "") + } + if r.serialIc != nil { + t := *r.serialIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + if r.serialIe != nil { + t := *r.serialIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + if r.serialIew != nil { + t := *r.serialIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + if r.serialIsw != nil { + t := *r.serialIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + if r.serialN != nil { + t := *r.serialN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.serialNic != nil { + t := *r.serialNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.serialNie != nil { + t := *r.serialNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "form", "multi") } } - if r.subdeviceRole != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "subdevice_role", r.subdeviceRole, "") - } - if r.subdeviceRoleN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "subdevice_role__n", r.subdeviceRoleN, "") - } - if r.tag != nil { - t := *r.tag + if r.serialNiew != nil { + t := *r.serialNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.serialNisw != nil { + t := *r.serialNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "form", "multi") } } - if r.uHeight != nil { - t := *r.uHeight + 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, "u_height", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.uHeightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") - } - if r.uHeightGt != nil { - t := *r.uHeightGt + 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, "u_height__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.uHeightGte != nil { - t := *r.uHeightGte + 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, "u_height__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.uHeightLt != nil { - t := *r.uHeightLt + 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, "u_height__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.uHeightLte != nil { - t := *r.uHeightLte + 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, "u_height__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } - if r.uHeightN != nil { - t := *r.uHeightN + 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, "u_height__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.weight != nil { - t := *r.weight + 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, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt + 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, "weight__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.weightGte != nil { - t := *r.weightGte + 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, "weight__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.weightLt != nil { - t := *r.weightLt + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.weightLte != nil { - t := *r.weightLte + if r.statusIe != nil { + t := *r.statusIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.weightN != nil { - t := *r.weightN + if r.statusIew != nil { + t := *r.statusIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } - } - if r.weightUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") - } - if r.weightUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") - } - // 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(), + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimDeviceTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableDeviceTypeRequest *PatchedWritableDeviceTypeRequest -} - -func (r ApiDcimDeviceTypesPartialUpdateRequest) PatchedWritableDeviceTypeRequest(patchedWritableDeviceTypeRequest PatchedWritableDeviceTypeRequest) ApiDcimDeviceTypesPartialUpdateRequest { - r.patchedWritableDeviceTypeRequest = &patchedWritableDeviceTypeRequest - return r -} - -func (r ApiDcimDeviceTypesPartialUpdateRequest) Execute() (*DeviceType, *http.Response, error) { - return r.ApiService.DcimDeviceTypesPartialUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimDeviceTypesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesPartialUpdateRequest { - return ApiDcimDeviceTypesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DeviceType -func (a *DcimAPIService) DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceTypesPartialUpdateRequest) (*DeviceType, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/device-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{} - - // 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.patchedWritableDeviceTypeRequest - 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.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "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 ApiDcimDeviceTypesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimDeviceTypesRetrieveRequest) Execute() (*DeviceType, *http.Response, error) { - return r.ApiService.DcimDeviceTypesRetrieveExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimDeviceTypesRetrieve(ctx context.Context, id int32) ApiDcimDeviceTypesRetrieveRequest { - return ApiDcimDeviceTypesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return DeviceType -func (a *DcimAPIService) DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetrieveRequest) (*DeviceType, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/device-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{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.statusN != nil { + t := *r.statusN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "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.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimDeviceTypesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableDeviceTypeRequest *WritableDeviceTypeRequest -} - -func (r ApiDcimDeviceTypesUpdateRequest) WritableDeviceTypeRequest(writableDeviceTypeRequest WritableDeviceTypeRequest) ApiDcimDeviceTypesUpdateRequest { - r.writableDeviceTypeRequest = &writableDeviceTypeRequest - return r -} - -func (r ApiDcimDeviceTypesUpdateRequest) Execute() (*DeviceType, *http.Response, error) { - return r.ApiService.DcimDeviceTypesUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimDeviceTypesUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesUpdateRequest { - return ApiDcimDeviceTypesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return DeviceType -func (a *DcimAPIService) DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdateRequest) (*DeviceType, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/device-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.writableDeviceTypeRequest == nil { - return localVarReturnValue, nil, reportError("writableDeviceTypeRequest is required and must be specified") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") + } } - // body params - localVarPostBody = r.writableDeviceTypeRequest - 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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - - 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.vcPosition != nil { + t := *r.vcPosition + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.vcPositionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__empty", r.vcPositionEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gt", t, "form", "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.vcPositionGte != nil { + t := *r.vcPositionGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gte", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimDevicesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest -} - -func (r ApiDcimDevicesBulkDestroyRequest) DeviceWithConfigContextRequest(deviceWithConfigContextRequest []DeviceWithConfigContextRequest) ApiDcimDevicesBulkDestroyRequest { - r.deviceWithConfigContextRequest = &deviceWithConfigContextRequest - return r -} - -func (r ApiDcimDevicesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDevicesBulkDestroyExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimDevicesBulkDestroy(ctx context.Context) ApiDcimDevicesBulkDestroyRequest { - return ApiDcimDevicesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, + if r.vcPositionLt != nil { + t := *r.vcPositionLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lt", t, "form", "multi") + } } -} - -// Execute executes the request -func (a *DcimAPIService) DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + if r.vcPositionLte != nil { + t := *r.vcPositionLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lte", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/devices/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.deviceWithConfigContextRequest == nil { - return nil, reportError("deviceWithConfigContextRequest is required and must be specified") + if r.vcPositionN != nil { + t := *r.vcPositionN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__n", t, "form", "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.vcPriority != nil { + t := *r.vcPriority + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.vcPriorityEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__empty", r.vcPriorityEmpty, "form", "") } - // body params - localVarPostBody = r.deviceWithConfigContextRequest - 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.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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gt", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err + if r.vcPriorityGte != nil { + t := *r.vcPriorityGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gte", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + if r.vcPriorityLt != nil { + t := *r.vcPriorityLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lt", t, "form", "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.vcPriorityLte != nil { + t := *r.vcPriorityLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lte", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.vcPriorityN != nil { + t := *r.vcPriorityN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__n", t, "form", "multi") } - return localVarHTTPResponse, newErr } - - return localVarHTTPResponse, nil -} - -type ApiDcimDevicesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest -} - -func (r ApiDcimDevicesBulkPartialUpdateRequest) DeviceWithConfigContextRequest(deviceWithConfigContextRequest []DeviceWithConfigContextRequest) ApiDcimDevicesBulkPartialUpdateRequest { - r.deviceWithConfigContextRequest = &deviceWithConfigContextRequest - return r -} - -func (r ApiDcimDevicesBulkPartialUpdateRequest) Execute() ([]DeviceWithConfigContext, *http.Response, error) { - return r.ApiService.DcimDevicesBulkPartialUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimDevicesBulkPartialUpdate(ctx context.Context) ApiDcimDevicesBulkPartialUpdateRequest { - return ApiDcimDevicesBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return []DeviceWithConfigContext -func (a *DcimAPIService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBulkPartialUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceWithConfigContext - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/devices/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.deviceWithConfigContextRequest == nil { - return localVarReturnValue, nil, reportError("deviceWithConfigContextRequest is required and must be specified") + if r.virtualChassisMember != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member", r.virtualChassisMember, "form", "") } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -26162,8 +37742,6 @@ func (a *DcimAPIService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBul if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.deviceWithConfigContextRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -26215,60 +37793,60 @@ func (a *DcimAPIService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBul return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDevicesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest +type ApiDcimDevicesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableDeviceWithConfigContextRequest *PatchedWritableDeviceWithConfigContextRequest } -func (r ApiDcimDevicesBulkUpdateRequest) DeviceWithConfigContextRequest(deviceWithConfigContextRequest []DeviceWithConfigContextRequest) ApiDcimDevicesBulkUpdateRequest { - r.deviceWithConfigContextRequest = &deviceWithConfigContextRequest +func (r ApiDcimDevicesPartialUpdateRequest) PatchedWritableDeviceWithConfigContextRequest(patchedWritableDeviceWithConfigContextRequest PatchedWritableDeviceWithConfigContextRequest) ApiDcimDevicesPartialUpdateRequest { + r.patchedWritableDeviceWithConfigContextRequest = &patchedWritableDeviceWithConfigContextRequest return r } -func (r ApiDcimDevicesBulkUpdateRequest) Execute() ([]DeviceWithConfigContext, *http.Response, error) { - return r.ApiService.DcimDevicesBulkUpdateExecute(r) +func (r ApiDcimDevicesPartialUpdateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { + return r.ApiService.DcimDevicesPartialUpdateExecute(r) } /* -DcimDevicesBulkUpdate Method for DcimDevicesBulkUpdate +DcimDevicesPartialUpdate Method for DcimDevicesPartialUpdate -Put a list of device objects. +Patch a device object. - @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(). + @param id A unique integer value identifying this device. + @return ApiDcimDevicesPartialUpdateRequest */ -func (a *DcimAPIService) DcimDevicesBulkUpdate(ctx context.Context) ApiDcimDevicesBulkUpdateRequest { - return ApiDcimDevicesBulkUpdateRequest{ +func (a *DcimAPIService) DcimDevicesPartialUpdate(ctx context.Context, id int32) ApiDcimDevicesPartialUpdateRequest { + return ApiDcimDevicesPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []DeviceWithConfigContext -func (a *DcimAPIService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartialUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceWithConfigContext + localVarHTTPMethod = http.MethodPatch + 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.DcimDevicesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/devices/" + localVarPath := localBasePath + "/api/dcim/devices/{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.deviceWithConfigContextRequest == nil { - return localVarReturnValue, nil, reportError("deviceWithConfigContextRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -26288,7 +37866,7 @@ func (a *DcimAPIService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.deviceWithConfigContextRequest + localVarPostBody = r.patchedWritableDeviceWithConfigContextRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -26340,53 +37918,62 @@ func (a *DcimAPIService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDevicesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService +type ApiDcimDevicesRenderConfigCreateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest + format *DcimDevicesRenderConfigCreateFormatParameter } -func (r ApiDcimDevicesCreateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesCreateRequest { +func (r ApiDcimDevicesRenderConfigCreateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesRenderConfigCreateRequest { r.writableDeviceWithConfigContextRequest = &writableDeviceWithConfigContextRequest return r } -func (r ApiDcimDevicesCreateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { - return r.ApiService.DcimDevicesCreateExecute(r) +func (r ApiDcimDevicesRenderConfigCreateRequest) Format(format DcimDevicesRenderConfigCreateFormatParameter) ApiDcimDevicesRenderConfigCreateRequest { + r.format = &format + return r +} + +func (r ApiDcimDevicesRenderConfigCreateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { + return r.ApiService.DcimDevicesRenderConfigCreateExecute(r) } /* -DcimDevicesCreate Method for DcimDevicesCreate +DcimDevicesRenderConfigCreate Method for DcimDevicesRenderConfigCreate -Post a list of device objects. +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(). - @return ApiDcimDevicesCreateRequest + @param ctx 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) DcimDevicesCreate(ctx context.Context) ApiDcimDevicesCreateRequest { - return ApiDcimDevicesCreateRequest{ +func (a *DcimAPIService) DcimDevicesRenderConfigCreate(ctx context.Context, id int32) ApiDcimDevicesRenderConfigCreateRequest { + return ApiDcimDevicesRenderConfigCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceWithConfigContext -func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) (*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.DcimDevicesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRenderConfigCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/devices/" + localVarPath := localBasePath + "/api/dcim/devices/{id}/render-config/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -26395,6 +37982,9 @@ func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) return localVarReturnValue, nil, reportError("writableDeviceWithConfigContextRequest is required and must be specified") } + if r.format != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -26405,7 +37995,7 @@ func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -26465,44 +38055,46 @@ func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDevicesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimDevicesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDevicesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimDevicesDestroyExecute(r) +func (r ApiDcimDevicesRetrieveRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { + return r.ApiService.DcimDevicesRetrieveExecute(r) } /* -DcimDevicesDestroy Method for DcimDevicesDestroy +DcimDevicesRetrieve Method for DcimDevicesRetrieve -Delete a device object. +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 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 ApiDcimDevicesRetrieveRequest */ -func (a *DcimAPIService) DcimDevicesDestroy(ctx context.Context, id int32) ApiDcimDevicesDestroyRequest { - return ApiDcimDevicesDestroyRequest{ +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 -func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyRequest) (*http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRetrieve") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/dcim/devices/{id}/" @@ -26522,7 +38114,7 @@ func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyReques } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -26545,19 +38137,19 @@ func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyReques } 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 { @@ -26565,4398 +38157,5781 @@ func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyReques body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiDcimDevicesListRequest struct { - ctx context.Context - ApiService *DcimAPIService - airflow *DcimDeviceTypesListAirflowParameter - airflowN *DcimDeviceTypesListAirflowParameter - 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 - consolePortCount *[]int32 - consolePortCountEmpty *bool - consolePortCountGt *[]int32 - consolePortCountGte *[]int32 - consolePortCountLt *[]int32 - consolePortCountLte *[]int32 - consolePortCountN *[]int32 - consolePorts *bool - consoleServerPortCount *[]int32 - consoleServerPortCountEmpty *bool - consoleServerPortCountGt *[]int32 - consoleServerPortCountGte *[]int32 - consoleServerPortCountLt *[]int32 - consoleServerPortCountLte *[]int32 - consoleServerPortCountN *[]int32 - 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 - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - deviceBayCount *[]int32 - deviceBayCountEmpty *bool - deviceBayCountGt *[]int32 - deviceBayCountGte *[]int32 - deviceBayCountLt *[]int32 - deviceBayCountLte *[]int32 - deviceBayCountN *[]int32 - deviceBays *bool - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - face *RackFace - faceN *RackFace - frontPortCount *[]int32 - frontPortCountEmpty *bool - frontPortCountGt *[]int32 - frontPortCountGte *[]int32 - frontPortCountLt *[]int32 - frontPortCountLte *[]int32 - frontPortCountN *[]int32 - hasOobIp *bool - hasPrimaryIp *bool - hasVirtualDeviceContext *bool - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaceCount *[]int32 - interfaceCountEmpty *bool - interfaceCountGt *[]int32 - interfaceCountGte *[]int32 - interfaceCountLt *[]int32 - interfaceCountLte *[]int32 - interfaceCountN *[]int32 - interfaces *bool - inventoryItemCount *[]int32 - inventoryItemCountEmpty *bool - inventoryItemCountGt *[]int32 - inventoryItemCountGte *[]int32 - inventoryItemCountLt *[]int32 - inventoryItemCountLte *[]int32 - inventoryItemCountN *[]int32 - 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 - moduleBayCount *[]int32 - moduleBayCountEmpty *bool - moduleBayCountGt *[]int32 - moduleBayCountGte *[]int32 - moduleBayCountLt *[]int32 - moduleBayCountLte *[]int32 - moduleBayCountN *[]int32 - 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 - parentBayId *[]int32 - parentBayIdN *[]int32 - 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 - powerOutletCount *[]int32 - powerOutletCountEmpty *bool - powerOutletCountGt *[]int32 - powerOutletCountGte *[]int32 - powerOutletCountLt *[]int32 - powerOutletCountLte *[]int32 - powerOutletCountN *[]int32 - powerOutlets *bool - powerPortCount *[]int32 - powerPortCountEmpty *bool - powerPortCountGt *[]int32 - powerPortCountGte *[]int32 - powerPortCountLt *[]int32 - powerPortCountLte *[]int32 - powerPortCountN *[]int32 - powerPorts *bool - primaryIp4Id *[]int32 - primaryIp4IdN *[]int32 - primaryIp6Id *[]int32 - primaryIp6IdN *[]int32 - q *string - rackId *[]int32 - rackIdN *[]int32 - rearPortCount *[]int32 - rearPortCountEmpty *bool - rearPortCountGt *[]int32 - rearPortCountGte *[]int32 - rearPortCountLt *[]int32 - rearPortCountLte *[]int32 - rearPortCountN *[]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 -} - -// * `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 -func (r ApiDcimDevicesListRequest) Airflow(airflow DcimDeviceTypesListAirflowParameter) ApiDcimDevicesListRequest { - r.airflow = &airflow - return r -} - -// * `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 -func (r ApiDcimDevicesListRequest) AirflowN(airflowN DcimDeviceTypesListAirflowParameter) ApiDcimDevicesListRequest { - r.airflowN = &airflowN - return r -} - -func (r ApiDcimDevicesListRequest) AssetTag(assetTag []string) ApiDcimDevicesListRequest { - r.assetTag = &assetTag - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagEmpty(assetTagEmpty bool) ApiDcimDevicesListRequest { - r.assetTagEmpty = &assetTagEmpty - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagIc(assetTagIc []string) ApiDcimDevicesListRequest { - r.assetTagIc = &assetTagIc - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagIe(assetTagIe []string) ApiDcimDevicesListRequest { - r.assetTagIe = &assetTagIe - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagIew(assetTagIew []string) ApiDcimDevicesListRequest { - r.assetTagIew = &assetTagIew - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagIsw(assetTagIsw []string) ApiDcimDevicesListRequest { - r.assetTagIsw = &assetTagIsw - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagN(assetTagN []string) ApiDcimDevicesListRequest { - r.assetTagN = &assetTagN - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagNic(assetTagNic []string) ApiDcimDevicesListRequest { - r.assetTagNic = &assetTagNic - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagNie(assetTagNie []string) ApiDcimDevicesListRequest { - r.assetTagNie = &assetTagNie - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagNiew(assetTagNiew []string) ApiDcimDevicesListRequest { - r.assetTagNiew = &assetTagNiew - return r -} - -func (r ApiDcimDevicesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimDevicesListRequest { - r.assetTagNisw = &assetTagNisw - return r -} - -// VM cluster (ID) -func (r ApiDcimDevicesListRequest) ClusterId(clusterId []*int32) ApiDcimDevicesListRequest { - r.clusterId = &clusterId - return r -} - -// VM cluster (ID) -func (r ApiDcimDevicesListRequest) ClusterIdN(clusterIdN []*int32) ApiDcimDevicesListRequest { - r.clusterIdN = &clusterIdN - return r -} - -// Config template (ID) -func (r ApiDcimDevicesListRequest) ConfigTemplateId(configTemplateId []*int32) ApiDcimDevicesListRequest { - r.configTemplateId = &configTemplateId - return r -} - -// Config template (ID) -func (r ApiDcimDevicesListRequest) ConfigTemplateIdN(configTemplateIdN []*int32) ApiDcimDevicesListRequest { - r.configTemplateIdN = &configTemplateIdN - return r -} - -func (r ApiDcimDevicesListRequest) ConsolePortCount(consolePortCount []int32) ApiDcimDevicesListRequest { - r.consolePortCount = &consolePortCount - return r -} - -func (r ApiDcimDevicesListRequest) ConsolePortCountEmpty(consolePortCountEmpty bool) ApiDcimDevicesListRequest { - r.consolePortCountEmpty = &consolePortCountEmpty - return r -} - -func (r ApiDcimDevicesListRequest) ConsolePortCountGt(consolePortCountGt []int32) ApiDcimDevicesListRequest { - r.consolePortCountGt = &consolePortCountGt - return r -} - -func (r ApiDcimDevicesListRequest) ConsolePortCountGte(consolePortCountGte []int32) ApiDcimDevicesListRequest { - r.consolePortCountGte = &consolePortCountGte - return r -} - -func (r ApiDcimDevicesListRequest) ConsolePortCountLt(consolePortCountLt []int32) ApiDcimDevicesListRequest { - r.consolePortCountLt = &consolePortCountLt - return r -} - -func (r ApiDcimDevicesListRequest) ConsolePortCountLte(consolePortCountLte []int32) ApiDcimDevicesListRequest { - r.consolePortCountLte = &consolePortCountLte - return r -} - -func (r ApiDcimDevicesListRequest) ConsolePortCountN(consolePortCountN []int32) ApiDcimDevicesListRequest { - r.consolePortCountN = &consolePortCountN - return r -} - -// Has console ports -func (r ApiDcimDevicesListRequest) ConsolePorts(consolePorts bool) ApiDcimDevicesListRequest { - r.consolePorts = &consolePorts - return r -} - -func (r ApiDcimDevicesListRequest) ConsoleServerPortCount(consoleServerPortCount []int32) ApiDcimDevicesListRequest { - r.consoleServerPortCount = &consoleServerPortCount - return r -} - -func (r ApiDcimDevicesListRequest) ConsoleServerPortCountEmpty(consoleServerPortCountEmpty bool) ApiDcimDevicesListRequest { - r.consoleServerPortCountEmpty = &consoleServerPortCountEmpty - return r -} - -func (r ApiDcimDevicesListRequest) ConsoleServerPortCountGt(consoleServerPortCountGt []int32) ApiDcimDevicesListRequest { - r.consoleServerPortCountGt = &consoleServerPortCountGt - return r -} - -func (r ApiDcimDevicesListRequest) ConsoleServerPortCountGte(consoleServerPortCountGte []int32) ApiDcimDevicesListRequest { - r.consoleServerPortCountGte = &consoleServerPortCountGte - return r -} - -func (r ApiDcimDevicesListRequest) ConsoleServerPortCountLt(consoleServerPortCountLt []int32) ApiDcimDevicesListRequest { - r.consoleServerPortCountLt = &consoleServerPortCountLt - return r -} - -func (r ApiDcimDevicesListRequest) ConsoleServerPortCountLte(consoleServerPortCountLte []int32) ApiDcimDevicesListRequest { - r.consoleServerPortCountLte = &consoleServerPortCountLte - return r -} - -func (r ApiDcimDevicesListRequest) ConsoleServerPortCountN(consoleServerPortCountN []int32) ApiDcimDevicesListRequest { - r.consoleServerPortCountN = &consoleServerPortCountN - return r -} - -// Has console server ports -func (r ApiDcimDevicesListRequest) ConsoleServerPorts(consoleServerPorts bool) ApiDcimDevicesListRequest { - r.consoleServerPorts = &consoleServerPorts - return r -} - -// Contact -func (r ApiDcimDevicesListRequest) Contact(contact []int32) ApiDcimDevicesListRequest { - r.contact = &contact - return r -} - -// Contact -func (r ApiDcimDevicesListRequest) ContactN(contactN []int32) ApiDcimDevicesListRequest { - r.contactN = &contactN - return r -} - -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []int32) ApiDcimDevicesListRequest { - r.contactGroup = &contactGroup - return r -} - -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimDevicesListRequest { - r.contactGroupN = &contactGroupN - return r -} - -// Contact Role -func (r ApiDcimDevicesListRequest) ContactRole(contactRole []int32) ApiDcimDevicesListRequest { - r.contactRole = &contactRole - return r -} - -// Contact Role -func (r ApiDcimDevicesListRequest) ContactRoleN(contactRoleN []int32) ApiDcimDevicesListRequest { - r.contactRoleN = &contactRoleN - return r -} - -func (r ApiDcimDevicesListRequest) Created(created []time.Time) ApiDcimDevicesListRequest { - r.created = &created - 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 -} - -func (r ApiDcimDevicesListRequest) CreatedGte(createdGte []time.Time) ApiDcimDevicesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiDcimDevicesListRequest) CreatedLt(createdLt []time.Time) ApiDcimDevicesListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiDcimDevicesListRequest) CreatedLte(createdLte []time.Time) ApiDcimDevicesListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiDcimDevicesListRequest) CreatedN(createdN []time.Time) ApiDcimDevicesListRequest { - r.createdN = &createdN - return r -} - -func (r ApiDcimDevicesListRequest) CreatedByRequest(createdByRequest string) ApiDcimDevicesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiDcimDevicesListRequest) Description(description []string) ApiDcimDevicesListRequest { - r.description = &description - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimDevicesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionIc(descriptionIc []string) ApiDcimDevicesListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionIe(descriptionIe []string) ApiDcimDevicesListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionIew(descriptionIew []string) ApiDcimDevicesListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimDevicesListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionN(descriptionN []string) ApiDcimDevicesListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionNic(descriptionNic []string) ApiDcimDevicesListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionNie(descriptionNie []string) ApiDcimDevicesListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimDevicesListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiDcimDevicesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimDevicesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -func (r ApiDcimDevicesListRequest) DeviceBayCount(deviceBayCount []int32) ApiDcimDevicesListRequest { - r.deviceBayCount = &deviceBayCount - return r -} - -func (r ApiDcimDevicesListRequest) DeviceBayCountEmpty(deviceBayCountEmpty bool) ApiDcimDevicesListRequest { - r.deviceBayCountEmpty = &deviceBayCountEmpty - return r -} - -func (r ApiDcimDevicesListRequest) DeviceBayCountGt(deviceBayCountGt []int32) ApiDcimDevicesListRequest { - r.deviceBayCountGt = &deviceBayCountGt - return r -} - -func (r ApiDcimDevicesListRequest) DeviceBayCountGte(deviceBayCountGte []int32) ApiDcimDevicesListRequest { - r.deviceBayCountGte = &deviceBayCountGte - return r -} - -func (r ApiDcimDevicesListRequest) DeviceBayCountLt(deviceBayCountLt []int32) ApiDcimDevicesListRequest { - r.deviceBayCountLt = &deviceBayCountLt - return r -} - -func (r ApiDcimDevicesListRequest) DeviceBayCountLte(deviceBayCountLte []int32) ApiDcimDevicesListRequest { - r.deviceBayCountLte = &deviceBayCountLte - return r -} - -func (r ApiDcimDevicesListRequest) DeviceBayCountN(deviceBayCountN []int32) ApiDcimDevicesListRequest { - r.deviceBayCountN = &deviceBayCountN - 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 + } -// Has device bays -func (r ApiDcimDevicesListRequest) DeviceBays(deviceBays bool) ApiDcimDevicesListRequest { - r.deviceBays = &deviceBays - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Device type (slug) -func (r ApiDcimDevicesListRequest) DeviceType(deviceType []string) ApiDcimDevicesListRequest { - r.deviceType = &deviceType - return r +type ApiDcimDevicesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest } -// Device type (slug) -func (r ApiDcimDevicesListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimDevicesListRequest { - r.deviceTypeN = &deviceTypeN +func (r ApiDcimDevicesUpdateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesUpdateRequest { + r.writableDeviceWithConfigContextRequest = &writableDeviceWithConfigContextRequest return r } -// Device type (ID) -func (r ApiDcimDevicesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimDevicesListRequest { - r.deviceTypeId = &deviceTypeId - return r +func (r ApiDcimDevicesUpdateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { + return r.ApiService.DcimDevicesUpdateExecute(r) } -// Device type (ID) -func (r ApiDcimDevicesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimDevicesListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} +/* +DcimDevicesUpdate Method for DcimDevicesUpdate -// * `front` - Front * `rear` - Rear -func (r ApiDcimDevicesListRequest) Face(face RackFace) ApiDcimDevicesListRequest { - r.face = &face - return r -} +Put a device object. -// * `front` - Front * `rear` - Rear -func (r ApiDcimDevicesListRequest) FaceN(faceN RackFace) ApiDcimDevicesListRequest { - r.faceN = &faceN - 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 device. + @return ApiDcimDevicesUpdateRequest +*/ +func (a *DcimAPIService) DcimDevicesUpdate(ctx context.Context, id int32) ApiDcimDevicesUpdateRequest { + return ApiDcimDevicesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiDcimDevicesListRequest) FrontPortCount(frontPortCount []int32) ApiDcimDevicesListRequest { - r.frontPortCount = &frontPortCount - return r -} +// Execute executes the request +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext + ) -func (r ApiDcimDevicesListRequest) FrontPortCountEmpty(frontPortCountEmpty bool) ApiDcimDevicesListRequest { - r.frontPortCountEmpty = &frontPortCountEmpty - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimDevicesListRequest) FrontPortCountGt(frontPortCountGt []int32) ApiDcimDevicesListRequest { - r.frontPortCountGt = &frontPortCountGt - return r -} + localVarPath := localBasePath + "/api/dcim/devices/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiDcimDevicesListRequest) FrontPortCountGte(frontPortCountGte []int32) ApiDcimDevicesListRequest { - r.frontPortCountGte = &frontPortCountGte - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableDeviceWithConfigContextRequest == nil { + return localVarReturnValue, nil, reportError("writableDeviceWithConfigContextRequest is required and must be specified") + } -func (r ApiDcimDevicesListRequest) FrontPortCountLt(frontPortCountLt []int32) ApiDcimDevicesListRequest { - r.frontPortCountLt = &frontPortCountLt - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimDevicesListRequest) FrontPortCountLte(frontPortCountLte []int32) ApiDcimDevicesListRequest { - r.frontPortCountLte = &frontPortCountLte - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimDevicesListRequest) FrontPortCountN(frontPortCountN []int32) ApiDcimDevicesListRequest { - r.frontPortCountN = &frontPortCountN - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -// Has an out-of-band IP -func (r ApiDcimDevicesListRequest) HasOobIp(hasOobIp bool) ApiDcimDevicesListRequest { - r.hasOobIp = &hasOobIp - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableDeviceWithConfigContextRequest + 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 + } -// Has a primary IP -func (r ApiDcimDevicesListRequest) HasPrimaryIp(hasPrimaryIp bool) ApiDcimDevicesListRequest { - r.hasPrimaryIp = &hasPrimaryIp - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// Has virtual device context -func (r ApiDcimDevicesListRequest) HasVirtualDeviceContext(hasVirtualDeviceContext bool) ApiDcimDevicesListRequest { - r.hasVirtualDeviceContext = &hasVirtualDeviceContext - 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 + } -func (r ApiDcimDevicesListRequest) Id(id []int32) ApiDcimDevicesListRequest { - r.id = &id - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiDcimDevicesListRequest) IdEmpty(idEmpty bool) ApiDcimDevicesListRequest { - r.idEmpty = &idEmpty - 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 ApiDcimDevicesListRequest) IdGt(idGt []int32) ApiDcimDevicesListRequest { - r.idGt = &idGt - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiDcimDevicesListRequest) IdGte(idGte []int32) ApiDcimDevicesListRequest { - r.idGte = &idGte - return r +type ApiDcimFrontPortTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + frontPortTemplateRequest *[]FrontPortTemplateRequest } -func (r ApiDcimDevicesListRequest) IdLt(idLt []int32) ApiDcimDevicesListRequest { - r.idLt = &idLt +func (r ApiDcimFrontPortTemplatesBulkDestroyRequest) FrontPortTemplateRequest(frontPortTemplateRequest []FrontPortTemplateRequest) ApiDcimFrontPortTemplatesBulkDestroyRequest { + r.frontPortTemplateRequest = &frontPortTemplateRequest return r } -func (r ApiDcimDevicesListRequest) IdLte(idLte []int32) ApiDcimDevicesListRequest { - r.idLte = &idLte - return r +func (r ApiDcimFrontPortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesBulkDestroyExecute(r) } -func (r ApiDcimDevicesListRequest) IdN(idN []int32) ApiDcimDevicesListRequest { - r.idN = &idN - return r -} +/* +DcimFrontPortTemplatesBulkDestroy Method for DcimFrontPortTemplatesBulkDestroy -func (r ApiDcimDevicesListRequest) InterfaceCount(interfaceCount []int32) ApiDcimDevicesListRequest { - r.interfaceCount = &interfaceCount - return r -} +Delete a list of front port template objects. -func (r ApiDcimDevicesListRequest) InterfaceCountEmpty(interfaceCountEmpty bool) ApiDcimDevicesListRequest { - r.interfaceCountEmpty = &interfaceCountEmpty - return r + @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 { + return ApiDcimFrontPortTemplatesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiDcimDevicesListRequest) InterfaceCountGt(interfaceCountGt []int32) ApiDcimDevicesListRequest { - r.interfaceCountGt = &interfaceCountGt - return r -} +// Execute executes the request +func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFrontPortTemplatesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiDcimDevicesListRequest) InterfaceCountGte(interfaceCountGte []int32) ApiDcimDevicesListRequest { - r.interfaceCountGte = &interfaceCountGte - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimDevicesListRequest) InterfaceCountLt(interfaceCountLt []int32) ApiDcimDevicesListRequest { - r.interfaceCountLt = &interfaceCountLt - return r -} + localVarPath := localBasePath + "/api/dcim/front-port-templates/" -func (r ApiDcimDevicesListRequest) InterfaceCountLte(interfaceCountLte []int32) ApiDcimDevicesListRequest { - r.interfaceCountLte = &interfaceCountLte - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.frontPortTemplateRequest == nil { + return nil, reportError("frontPortTemplateRequest is required and must be specified") + } -func (r ApiDcimDevicesListRequest) InterfaceCountN(interfaceCountN []int32) ApiDcimDevicesListRequest { - r.interfaceCountN = &interfaceCountN - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -// Has interfaces -func (r ApiDcimDevicesListRequest) Interfaces(interfaces bool) ApiDcimDevicesListRequest { - r.interfaces = &interfaces - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimDevicesListRequest) InventoryItemCount(inventoryItemCount []int32) ApiDcimDevicesListRequest { - r.inventoryItemCount = &inventoryItemCount - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -func (r ApiDcimDevicesListRequest) InventoryItemCountEmpty(inventoryItemCountEmpty bool) ApiDcimDevicesListRequest { - r.inventoryItemCountEmpty = &inventoryItemCountEmpty - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.frontPortTemplateRequest + 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 + } -func (r ApiDcimDevicesListRequest) InventoryItemCountGt(inventoryItemCountGt []int32) ApiDcimDevicesListRequest { - r.inventoryItemCountGt = &inventoryItemCountGt - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiDcimDevicesListRequest) InventoryItemCountGte(inventoryItemCountGte []int32) ApiDcimDevicesListRequest { - r.inventoryItemCountGte = &inventoryItemCountGte - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -func (r ApiDcimDevicesListRequest) InventoryItemCountLt(inventoryItemCountLt []int32) ApiDcimDevicesListRequest { - r.inventoryItemCountLt = &inventoryItemCountLt - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -func (r ApiDcimDevicesListRequest) InventoryItemCountLte(inventoryItemCountLte []int32) ApiDcimDevicesListRequest { - r.inventoryItemCountLte = &inventoryItemCountLte - return r + return localVarHTTPResponse, nil } -func (r ApiDcimDevicesListRequest) InventoryItemCountN(inventoryItemCountN []int32) ApiDcimDevicesListRequest { - r.inventoryItemCountN = &inventoryItemCountN - return r +type ApiDcimFrontPortTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + frontPortTemplateRequest *[]FrontPortTemplateRequest } -// Is full depth -func (r ApiDcimDevicesListRequest) IsFullDepth(isFullDepth bool) ApiDcimDevicesListRequest { - r.isFullDepth = &isFullDepth +func (r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) FrontPortTemplateRequest(frontPortTemplateRequest []FrontPortTemplateRequest) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest { + r.frontPortTemplateRequest = &frontPortTemplateRequest return r } -func (r ApiDcimDevicesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimDevicesListRequest { - r.lastUpdated = &lastUpdated - return r +func (r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) Execute() ([]FrontPortTemplate, *http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesBulkPartialUpdateExecute(r) } -func (r ApiDcimDevicesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDevicesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} +/* +DcimFrontPortTemplatesBulkPartialUpdate Method for DcimFrontPortTemplatesBulkPartialUpdate -func (r ApiDcimDevicesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDevicesListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} +Patch a list of front port template objects. -func (r ApiDcimDevicesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimDevicesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r + @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 { + return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiDcimDevicesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimDevicesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} +// Execute executes the request +// @return []FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPortTemplate + ) -func (r ApiDcimDevicesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimDevicesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimDevicesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimDevicesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + localVarPath := localBasePath + "/api/dcim/front-port-templates/" -func (r ApiDcimDevicesListRequest) Latitude(latitude []float64) ApiDcimDevicesListRequest { - r.latitude = &latitude - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.frontPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("frontPortTemplateRequest is required and must be specified") + } -func (r ApiDcimDevicesListRequest) LatitudeEmpty(latitudeEmpty bool) ApiDcimDevicesListRequest { - r.latitudeEmpty = &latitudeEmpty - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimDevicesListRequest) LatitudeGt(latitudeGt []float64) ApiDcimDevicesListRequest { - r.latitudeGt = &latitudeGt - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimDevicesListRequest) LatitudeGte(latitudeGte []float64) ApiDcimDevicesListRequest { - r.latitudeGte = &latitudeGte - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimDevicesListRequest) LatitudeLt(latitudeLt []float64) ApiDcimDevicesListRequest { - r.latitudeLt = &latitudeLt - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.frontPortTemplateRequest + 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 ApiDcimDevicesListRequest) LatitudeLte(latitudeLte []float64) ApiDcimDevicesListRequest { - r.latitudeLte = &latitudeLte - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiDcimDevicesListRequest) LatitudeN(latitudeN []float64) ApiDcimDevicesListRequest { - r.latitudeN = &latitudeN - 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 + } -// Number of results to return per page. -func (r ApiDcimDevicesListRequest) Limit(limit int32) ApiDcimDevicesListRequest { - r.limit = &limit - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Has local config context data -func (r ApiDcimDevicesListRequest) LocalContextData(localContextData bool) ApiDcimDevicesListRequest { - r.localContextData = &localContextData - 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 + } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationId(locationId []int32) ApiDcimDevicesListRequest { - r.locationId = &locationId - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []int32) ApiDcimDevicesListRequest { - r.locationIdN = &locationIdN - return r +type ApiDcimFrontPortTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + frontPortTemplateRequest *[]FrontPortTemplateRequest } -func (r ApiDcimDevicesListRequest) Longitude(longitude []float64) ApiDcimDevicesListRequest { - r.longitude = &longitude +func (r ApiDcimFrontPortTemplatesBulkUpdateRequest) FrontPortTemplateRequest(frontPortTemplateRequest []FrontPortTemplateRequest) ApiDcimFrontPortTemplatesBulkUpdateRequest { + r.frontPortTemplateRequest = &frontPortTemplateRequest return r } -func (r ApiDcimDevicesListRequest) LongitudeEmpty(longitudeEmpty bool) ApiDcimDevicesListRequest { - r.longitudeEmpty = &longitudeEmpty - return r +func (r ApiDcimFrontPortTemplatesBulkUpdateRequest) Execute() ([]FrontPortTemplate, *http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesBulkUpdateExecute(r) } -func (r ApiDcimDevicesListRequest) LongitudeGt(longitudeGt []float64) ApiDcimDevicesListRequest { - r.longitudeGt = &longitudeGt - return r -} +/* +DcimFrontPortTemplatesBulkUpdate Method for DcimFrontPortTemplatesBulkUpdate -func (r ApiDcimDevicesListRequest) LongitudeGte(longitudeGte []float64) ApiDcimDevicesListRequest { - r.longitudeGte = &longitudeGte - return r -} +Put a list of front port template objects. -func (r ApiDcimDevicesListRequest) LongitudeLt(longitudeLt []float64) ApiDcimDevicesListRequest { - r.longitudeLt = &longitudeLt - return r + @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 { + return ApiDcimFrontPortTemplatesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiDcimDevicesListRequest) LongitudeLte(longitudeLte []float64) ApiDcimDevicesListRequest { - r.longitudeLte = &longitudeLte - return r -} +// Execute executes the request +// @return []FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontPortTemplatesBulkUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPortTemplate + ) -func (r ApiDcimDevicesListRequest) LongitudeN(longitudeN []float64) ApiDcimDevicesListRequest { - r.longitudeN = &longitudeN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimDevicesListRequest) MacAddress(macAddress []string) ApiDcimDevicesListRequest { - r.macAddress = &macAddress - return r -} + localVarPath := localBasePath + "/api/dcim/front-port-templates/" -func (r ApiDcimDevicesListRequest) MacAddressIc(macAddressIc []string) ApiDcimDevicesListRequest { - r.macAddressIc = &macAddressIc - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.frontPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("frontPortTemplateRequest is required and must be specified") + } -func (r ApiDcimDevicesListRequest) MacAddressIe(macAddressIe []string) ApiDcimDevicesListRequest { - r.macAddressIe = &macAddressIe - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimDevicesListRequest) MacAddressIew(macAddressIew []string) ApiDcimDevicesListRequest { - r.macAddressIew = &macAddressIew - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimDevicesListRequest) MacAddressIsw(macAddressIsw []string) ApiDcimDevicesListRequest { - r.macAddressIsw = &macAddressIsw - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.frontPortTemplateRequest + 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 ApiDcimDevicesListRequest) MacAddressN(macAddressN []string) ApiDcimDevicesListRequest { - r.macAddressN = &macAddressN - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiDcimDevicesListRequest) MacAddressNic(macAddressNic []string) ApiDcimDevicesListRequest { - r.macAddressNic = &macAddressNic - 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 + } -func (r ApiDcimDevicesListRequest) MacAddressNie(macAddressNie []string) ApiDcimDevicesListRequest { - r.macAddressNie = &macAddressNie - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiDcimDevicesListRequest) MacAddressNiew(macAddressNiew []string) ApiDcimDevicesListRequest { - r.macAddressNiew = &macAddressNiew - 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 ApiDcimDevicesListRequest) MacAddressNisw(macAddressNisw []string) ApiDcimDevicesListRequest { - r.macAddressNisw = &macAddressNisw - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Manufacturer (slug) -func (r ApiDcimDevicesListRequest) Manufacturer(manufacturer []string) ApiDcimDevicesListRequest { - r.manufacturer = &manufacturer - return r +type ApiDcimFrontPortTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest } -// Manufacturer (slug) -func (r ApiDcimDevicesListRequest) ManufacturerN(manufacturerN []string) ApiDcimDevicesListRequest { - r.manufacturerN = &manufacturerN +func (r ApiDcimFrontPortTemplatesCreateRequest) WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest WritableFrontPortTemplateRequest) ApiDcimFrontPortTemplatesCreateRequest { + r.writableFrontPortTemplateRequest = &writableFrontPortTemplateRequest return r } -// Manufacturer (ID) -func (r ApiDcimDevicesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimDevicesListRequest { - r.manufacturerId = &manufacturerId - return r +func (r ApiDcimFrontPortTemplatesCreateRequest) Execute() (*FrontPortTemplate, *http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesCreateExecute(r) } -// Manufacturer (ID) -func (r ApiDcimDevicesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimDevicesListRequest { - r.manufacturerIdN = &manufacturerIdN - return r -} +/* +DcimFrontPortTemplatesCreate Method for DcimFrontPortTemplatesCreate -// Device model (slug) -func (r ApiDcimDevicesListRequest) Model(model []string) ApiDcimDevicesListRequest { - r.model = &model - return r -} +Post a list of front port template objects. -// Device model (slug) -func (r ApiDcimDevicesListRequest) ModelN(modelN []string) ApiDcimDevicesListRequest { - r.modelN = &modelN - return r + @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 { + return ApiDcimFrontPortTemplatesCreateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiDcimDevicesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDevicesListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} +// Execute executes the request +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortTemplatesCreateRequest) (*FrontPortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate + ) -func (r ApiDcimDevicesListRequest) ModuleBayCount(moduleBayCount []int32) ApiDcimDevicesListRequest { - r.moduleBayCount = &moduleBayCount - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimDevicesListRequest) ModuleBayCountEmpty(moduleBayCountEmpty bool) ApiDcimDevicesListRequest { - r.moduleBayCountEmpty = &moduleBayCountEmpty - return r -} + localVarPath := localBasePath + "/api/dcim/front-port-templates/" -func (r ApiDcimDevicesListRequest) ModuleBayCountGt(moduleBayCountGt []int32) ApiDcimDevicesListRequest { - r.moduleBayCountGt = &moduleBayCountGt - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableFrontPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableFrontPortTemplateRequest is required and must be specified") + } -func (r ApiDcimDevicesListRequest) ModuleBayCountGte(moduleBayCountGte []int32) ApiDcimDevicesListRequest { - r.moduleBayCountGte = &moduleBayCountGte - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimDevicesListRequest) ModuleBayCountLt(moduleBayCountLt []int32) ApiDcimDevicesListRequest { - r.moduleBayCountLt = &moduleBayCountLt - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimDevicesListRequest) ModuleBayCountLte(moduleBayCountLte []int32) ApiDcimDevicesListRequest { - r.moduleBayCountLte = &moduleBayCountLte - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimDevicesListRequest) ModuleBayCountN(moduleBayCountN []int32) ApiDcimDevicesListRequest { - r.moduleBayCountN = &moduleBayCountN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableFrontPortTemplateRequest + 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 + } -// Has module bays -func (r ApiDcimDevicesListRequest) ModuleBays(moduleBays bool) ApiDcimDevicesListRequest { - r.moduleBays = &moduleBays - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiDcimDevicesListRequest) Name(name []string) ApiDcimDevicesListRequest { - r.name = &name - 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 + } -func (r ApiDcimDevicesListRequest) NameEmpty(nameEmpty bool) ApiDcimDevicesListRequest { - r.nameEmpty = &nameEmpty - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiDcimDevicesListRequest) NameIc(nameIc []string) ApiDcimDevicesListRequest { - r.nameIc = &nameIc - 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 ApiDcimDevicesListRequest) NameIe(nameIe []string) ApiDcimDevicesListRequest { - r.nameIe = &nameIe - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiDcimDevicesListRequest) NameIew(nameIew []string) ApiDcimDevicesListRequest { - r.nameIew = &nameIew - return r +type ApiDcimFrontPortTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDevicesListRequest) NameIsw(nameIsw []string) ApiDcimDevicesListRequest { - r.nameIsw = &nameIsw - return r +func (r ApiDcimFrontPortTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesDestroyExecute(r) } -func (r ApiDcimDevicesListRequest) NameN(nameN []string) ApiDcimDevicesListRequest { - r.nameN = &nameN - return r -} +/* +DcimFrontPortTemplatesDestroy Method for DcimFrontPortTemplatesDestroy -func (r ApiDcimDevicesListRequest) NameNic(nameNic []string) ApiDcimDevicesListRequest { - r.nameNic = &nameNic - return r -} +Delete a front port template object. -func (r ApiDcimDevicesListRequest) NameNie(nameNie []string) ApiDcimDevicesListRequest { - r.nameNie = &nameNie - 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 front port template. + @return ApiDcimFrontPortTemplatesDestroyRequest +*/ +func (a *DcimAPIService) DcimFrontPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimFrontPortTemplatesDestroyRequest { + return ApiDcimFrontPortTemplatesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiDcimDevicesListRequest) NameNiew(nameNiew []string) ApiDcimDevicesListRequest { - r.nameNiew = &nameNiew - return r -} +// Execute executes the request +func (a *DcimAPIService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPortTemplatesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiDcimDevicesListRequest) NameNisw(nameNisw []string) ApiDcimDevicesListRequest { - r.nameNisw = &nameNisw - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -// The initial index from which to return the results. -func (r ApiDcimDevicesListRequest) Offset(offset int32) ApiDcimDevicesListRequest { - r.offset = &offset - return r -} + localVarPath := localBasePath + "/api/dcim/front-port-templates/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -// OOB IP (ID) -func (r ApiDcimDevicesListRequest) OobIpId(oobIpId []int32) ApiDcimDevicesListRequest { - r.oobIpId = &oobIpId - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -// OOB IP (ID) -func (r ApiDcimDevicesListRequest) OobIpIdN(oobIpIdN []int32) ApiDcimDevicesListRequest { - r.oobIpIdN = &oobIpIdN - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -// Which field to use when ordering the results. -func (r ApiDcimDevicesListRequest) Ordering(ordering string) ApiDcimDevicesListRequest { - r.ordering = &ordering - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -// Parent bay (ID) -func (r ApiDcimDevicesListRequest) ParentBayId(parentBayId []int32) ApiDcimDevicesListRequest { - r.parentBayId = &parentBayId - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -// Parent bay (ID) -func (r ApiDcimDevicesListRequest) ParentBayIdN(parentBayIdN []int32) ApiDcimDevicesListRequest { - r.parentBayIdN = &parentBayIdN - 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 nil, err + } -// Parent Device (ID) -func (r ApiDcimDevicesListRequest) ParentDeviceId(parentDeviceId []int32) ApiDcimDevicesListRequest { - r.parentDeviceId = &parentDeviceId - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -// Parent Device (ID) -func (r ApiDcimDevicesListRequest) ParentDeviceIdN(parentDeviceIdN []int32) ApiDcimDevicesListRequest { - r.parentDeviceIdN = &parentDeviceIdN - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -// Has pass-through ports -func (r ApiDcimDevicesListRequest) PassThroughPorts(passThroughPorts bool) ApiDcimDevicesListRequest { - r.passThroughPorts = &passThroughPorts - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -// Platform (slug) -func (r ApiDcimDevicesListRequest) Platform(platform []string) ApiDcimDevicesListRequest { - r.platform = &platform - return r + return localVarHTTPResponse, nil } -// Platform (slug) -func (r ApiDcimDevicesListRequest) PlatformN(platformN []string) ApiDcimDevicesListRequest { - r.platformN = &platformN - return r +type ApiDcimFrontPortTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 + 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 + rearPortId *[]int32 + rearPortIdN *[]int32 + rearPortPosition *[]int32 + rearPortPositionEmpty *bool + rearPortPositionGt *[]int32 + rearPortPositionGte *[]int32 + rearPortPositionLt *[]int32 + rearPortPositionLte *[]int32 + rearPortPositionN *[]int32 + type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + updatedByRequest *string } -// Platform (ID) -func (r ApiDcimDevicesListRequest) PlatformId(platformId []*int32) ApiDcimDevicesListRequest { - r.platformId = &platformId +func (r ApiDcimFrontPortTemplatesListRequest) Color(color []string) ApiDcimFrontPortTemplatesListRequest { + r.color = &color return r } -// Platform (ID) -func (r ApiDcimDevicesListRequest) PlatformIdN(platformIdN []*int32) ApiDcimDevicesListRequest { - r.platformIdN = &platformIdN +func (r ApiDcimFrontPortTemplatesListRequest) ColorEmpty(colorEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.colorEmpty = &colorEmpty return r } -func (r ApiDcimDevicesListRequest) Position(position []float64) ApiDcimDevicesListRequest { - r.position = &position +func (r ApiDcimFrontPortTemplatesListRequest) ColorIc(colorIc []string) ApiDcimFrontPortTemplatesListRequest { + r.colorIc = &colorIc return r } -func (r ApiDcimDevicesListRequest) PositionEmpty(positionEmpty bool) ApiDcimDevicesListRequest { - r.positionEmpty = &positionEmpty +func (r ApiDcimFrontPortTemplatesListRequest) ColorIe(colorIe []string) ApiDcimFrontPortTemplatesListRequest { + r.colorIe = &colorIe return r } -func (r ApiDcimDevicesListRequest) PositionGt(positionGt []float64) ApiDcimDevicesListRequest { - r.positionGt = &positionGt +func (r ApiDcimFrontPortTemplatesListRequest) ColorIew(colorIew []string) ApiDcimFrontPortTemplatesListRequest { + r.colorIew = &colorIew return r } -func (r ApiDcimDevicesListRequest) PositionGte(positionGte []float64) ApiDcimDevicesListRequest { - r.positionGte = &positionGte +func (r ApiDcimFrontPortTemplatesListRequest) ColorIsw(colorIsw []string) ApiDcimFrontPortTemplatesListRequest { + r.colorIsw = &colorIsw return r } -func (r ApiDcimDevicesListRequest) PositionLt(positionLt []float64) ApiDcimDevicesListRequest { - r.positionLt = &positionLt +func (r ApiDcimFrontPortTemplatesListRequest) ColorN(colorN []string) ApiDcimFrontPortTemplatesListRequest { + r.colorN = &colorN return r } -func (r ApiDcimDevicesListRequest) PositionLte(positionLte []float64) ApiDcimDevicesListRequest { - r.positionLte = &positionLte +func (r ApiDcimFrontPortTemplatesListRequest) ColorNic(colorNic []string) ApiDcimFrontPortTemplatesListRequest { + r.colorNic = &colorNic return r } -func (r ApiDcimDevicesListRequest) PositionN(positionN []float64) ApiDcimDevicesListRequest { - r.positionN = &positionN +func (r ApiDcimFrontPortTemplatesListRequest) ColorNie(colorNie []string) ApiDcimFrontPortTemplatesListRequest { + r.colorNie = &colorNie return r } -func (r ApiDcimDevicesListRequest) PowerOutletCount(powerOutletCount []int32) ApiDcimDevicesListRequest { - r.powerOutletCount = &powerOutletCount +func (r ApiDcimFrontPortTemplatesListRequest) ColorNiew(colorNiew []string) ApiDcimFrontPortTemplatesListRequest { + r.colorNiew = &colorNiew return r } -func (r ApiDcimDevicesListRequest) PowerOutletCountEmpty(powerOutletCountEmpty bool) ApiDcimDevicesListRequest { - r.powerOutletCountEmpty = &powerOutletCountEmpty +func (r ApiDcimFrontPortTemplatesListRequest) ColorNisw(colorNisw []string) ApiDcimFrontPortTemplatesListRequest { + r.colorNisw = &colorNisw return r } -func (r ApiDcimDevicesListRequest) PowerOutletCountGt(powerOutletCountGt []int32) ApiDcimDevicesListRequest { - r.powerOutletCountGt = &powerOutletCountGt +func (r ApiDcimFrontPortTemplatesListRequest) Created(created []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.created = &created return r } -func (r ApiDcimDevicesListRequest) PowerOutletCountGte(powerOutletCountGte []int32) ApiDcimDevicesListRequest { - r.powerOutletCountGte = &powerOutletCountGte +func (r ApiDcimFrontPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiDcimDevicesListRequest) PowerOutletCountLt(powerOutletCountLt []int32) ApiDcimDevicesListRequest { - r.powerOutletCountLt = &powerOutletCountLt +func (r ApiDcimFrontPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.createdGt = &createdGt return r } -func (r ApiDcimDevicesListRequest) PowerOutletCountLte(powerOutletCountLte []int32) ApiDcimDevicesListRequest { - r.powerOutletCountLte = &powerOutletCountLte +func (r ApiDcimFrontPortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.createdGte = &createdGte return r } -func (r ApiDcimDevicesListRequest) PowerOutletCountN(powerOutletCountN []int32) ApiDcimDevicesListRequest { - r.powerOutletCountN = &powerOutletCountN +func (r ApiDcimFrontPortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.createdLt = &createdLt return r } -// Has power outlets -func (r ApiDcimDevicesListRequest) PowerOutlets(powerOutlets bool) ApiDcimDevicesListRequest { - r.powerOutlets = &powerOutlets +func (r ApiDcimFrontPortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.createdLte = &createdLte return r } -func (r ApiDcimDevicesListRequest) PowerPortCount(powerPortCount []int32) ApiDcimDevicesListRequest { - r.powerPortCount = &powerPortCount +func (r ApiDcimFrontPortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.createdN = &createdN return r } -func (r ApiDcimDevicesListRequest) PowerPortCountEmpty(powerPortCountEmpty bool) ApiDcimDevicesListRequest { - r.powerPortCountEmpty = &powerPortCountEmpty +func (r ApiDcimFrontPortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimFrontPortTemplatesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiDcimDevicesListRequest) PowerPortCountGt(powerPortCountGt []int32) ApiDcimDevicesListRequest { - r.powerPortCountGt = &powerPortCountGt +func (r ApiDcimFrontPortTemplatesListRequest) Description(description []string) ApiDcimFrontPortTemplatesListRequest { + r.description = &description return r } -func (r ApiDcimDevicesListRequest) PowerPortCountGte(powerPortCountGte []int32) ApiDcimDevicesListRequest { - r.powerPortCountGte = &powerPortCountGte +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimDevicesListRequest) PowerPortCountLt(powerPortCountLt []int32) ApiDcimDevicesListRequest { - r.powerPortCountLt = &powerPortCountLt +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiDcimDevicesListRequest) PowerPortCountLte(powerPortCountLte []int32) ApiDcimDevicesListRequest { - r.powerPortCountLte = &powerPortCountLte +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiDcimDevicesListRequest) PowerPortCountN(powerPortCountN []int32) ApiDcimDevicesListRequest { - r.powerPortCountN = &powerPortCountN +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionIew = &descriptionIew return r } -// Has power ports -func (r ApiDcimDevicesListRequest) PowerPorts(powerPorts bool) ApiDcimDevicesListRequest { - r.powerPorts = &powerPorts +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionIsw = &descriptionIsw return r } -// Primary IPv4 (ID) -func (r ApiDcimDevicesListRequest) PrimaryIp4Id(primaryIp4Id []int32) ApiDcimDevicesListRequest { - r.primaryIp4Id = &primaryIp4Id +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionN = &descriptionN return r } -// Primary IPv4 (ID) -func (r ApiDcimDevicesListRequest) PrimaryIp4IdN(primaryIp4IdN []int32) ApiDcimDevicesListRequest { - r.primaryIp4IdN = &primaryIp4IdN +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionNic = &descriptionNic return r } -// Primary IPv6 (ID) -func (r ApiDcimDevicesListRequest) PrimaryIp6Id(primaryIp6Id []int32) ApiDcimDevicesListRequest { - r.primaryIp6Id = &primaryIp6Id +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionNie = &descriptionNie return r } -// Primary IPv6 (ID) -func (r ApiDcimDevicesListRequest) PrimaryIp6IdN(primaryIp6IdN []int32) ApiDcimDevicesListRequest { - r.primaryIp6IdN = &primaryIp6IdN +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionNiew = &descriptionNiew return r } -// Search -func (r ApiDcimDevicesListRequest) Q(q string) ApiDcimDevicesListRequest { - r.q = &q +func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimFrontPortTemplatesListRequest { + r.descriptionNisw = &descriptionNisw return r } -// Rack (ID) -func (r ApiDcimDevicesListRequest) RackId(rackId []int32) ApiDcimDevicesListRequest { - r.rackId = &rackId +// Device type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimFrontPortTemplatesListRequest { + r.deviceTypeId = &deviceTypeId return r } - -// Rack (ID) -func (r ApiDcimDevicesListRequest) RackIdN(rackIdN []int32) ApiDcimDevicesListRequest { - r.rackIdN = &rackIdN + +// Device type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimDevicesListRequest) RearPortCount(rearPortCount []int32) ApiDcimDevicesListRequest { - r.rearPortCount = &rearPortCount +func (r ApiDcimFrontPortTemplatesListRequest) Id(id []int32) ApiDcimFrontPortTemplatesListRequest { + r.id = &id return r } -func (r ApiDcimDevicesListRequest) RearPortCountEmpty(rearPortCountEmpty bool) ApiDcimDevicesListRequest { - r.rearPortCountEmpty = &rearPortCountEmpty +func (r ApiDcimFrontPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiDcimDevicesListRequest) RearPortCountGt(rearPortCountGt []int32) ApiDcimDevicesListRequest { - r.rearPortCountGt = &rearPortCountGt +func (r ApiDcimFrontPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimFrontPortTemplatesListRequest { + r.idGt = &idGt return r } -func (r ApiDcimDevicesListRequest) RearPortCountGte(rearPortCountGte []int32) ApiDcimDevicesListRequest { - r.rearPortCountGte = &rearPortCountGte +func (r ApiDcimFrontPortTemplatesListRequest) IdGte(idGte []int32) ApiDcimFrontPortTemplatesListRequest { + r.idGte = &idGte return r } -func (r ApiDcimDevicesListRequest) RearPortCountLt(rearPortCountLt []int32) ApiDcimDevicesListRequest { - r.rearPortCountLt = &rearPortCountLt +func (r ApiDcimFrontPortTemplatesListRequest) IdLt(idLt []int32) ApiDcimFrontPortTemplatesListRequest { + r.idLt = &idLt return r } -func (r ApiDcimDevicesListRequest) RearPortCountLte(rearPortCountLte []int32) ApiDcimDevicesListRequest { - r.rearPortCountLte = &rearPortCountLte +func (r ApiDcimFrontPortTemplatesListRequest) IdLte(idLte []int32) ApiDcimFrontPortTemplatesListRequest { + r.idLte = &idLte return r } -func (r ApiDcimDevicesListRequest) RearPortCountN(rearPortCountN []int32) ApiDcimDevicesListRequest { - r.rearPortCountN = &rearPortCountN +func (r ApiDcimFrontPortTemplatesListRequest) IdN(idN []int32) ApiDcimFrontPortTemplatesListRequest { + r.idN = &idN return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) Region(region []int32) ApiDcimDevicesListRequest { - r.region = ®ion +func (r ApiDcimFrontPortTemplatesListRequest) Label(label []string) ApiDcimFrontPortTemplatesListRequest { + r.label = &label return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) RegionN(regionN []int32) ApiDcimDevicesListRequest { - r.regionN = ®ionN +func (r ApiDcimFrontPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.labelEmpty = &labelEmpty return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionId(regionId []int32) ApiDcimDevicesListRequest { - r.regionId = ®ionId +func (r ApiDcimFrontPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimFrontPortTemplatesListRequest { + r.labelIc = &labelIc return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []int32) ApiDcimDevicesListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimFrontPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimFrontPortTemplatesListRequest { + r.labelIe = &labelIe return r } -// Role (slug) -func (r ApiDcimDevicesListRequest) Role(role []string) ApiDcimDevicesListRequest { - r.role = &role +func (r ApiDcimFrontPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimFrontPortTemplatesListRequest { + r.labelIew = &labelIew return r } -// Role (slug) -func (r ApiDcimDevicesListRequest) RoleN(roleN []string) ApiDcimDevicesListRequest { - r.roleN = &roleN +func (r ApiDcimFrontPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimFrontPortTemplatesListRequest { + r.labelIsw = &labelIsw return r } -// Role (ID) -func (r ApiDcimDevicesListRequest) RoleId(roleId []int32) ApiDcimDevicesListRequest { - r.roleId = &roleId +func (r ApiDcimFrontPortTemplatesListRequest) LabelN(labelN []string) ApiDcimFrontPortTemplatesListRequest { + r.labelN = &labelN return r } -// Role (ID) -func (r ApiDcimDevicesListRequest) RoleIdN(roleIdN []int32) ApiDcimDevicesListRequest { - r.roleIdN = &roleIdN +func (r ApiDcimFrontPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimFrontPortTemplatesListRequest { + r.labelNic = &labelNic return r } -func (r ApiDcimDevicesListRequest) Serial(serial []string) ApiDcimDevicesListRequest { - r.serial = &serial +func (r ApiDcimFrontPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimFrontPortTemplatesListRequest { + r.labelNie = &labelNie return r } -func (r ApiDcimDevicesListRequest) SerialEmpty(serialEmpty bool) ApiDcimDevicesListRequest { - r.serialEmpty = &serialEmpty +func (r ApiDcimFrontPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimFrontPortTemplatesListRequest { + r.labelNiew = &labelNiew return r } -func (r ApiDcimDevicesListRequest) SerialIc(serialIc []string) ApiDcimDevicesListRequest { - r.serialIc = &serialIc +func (r ApiDcimFrontPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimFrontPortTemplatesListRequest { + r.labelNisw = &labelNisw return r } -func (r ApiDcimDevicesListRequest) SerialIe(serialIe []string) ApiDcimDevicesListRequest { - r.serialIe = &serialIe +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiDcimDevicesListRequest) SerialIew(serialIew []string) ApiDcimDevicesListRequest { - r.serialIew = &serialIew +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimDevicesListRequest) SerialIsw(serialIsw []string) ApiDcimDevicesListRequest { - r.serialIsw = &serialIsw +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimDevicesListRequest) SerialN(serialN []string) ApiDcimDevicesListRequest { - r.serialN = &serialN +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimDevicesListRequest) SerialNic(serialNic []string) ApiDcimDevicesListRequest { - r.serialNic = &serialNic +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimDevicesListRequest) SerialNie(serialNie []string) ApiDcimDevicesListRequest { - r.serialNie = &serialNie +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimDevicesListRequest) SerialNiew(serialNiew []string) ApiDcimDevicesListRequest { - r.serialNiew = &serialNiew +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiDcimDevicesListRequest) SerialNisw(serialNisw []string) ApiDcimDevicesListRequest { - r.serialNisw = &serialNisw +// Number of results to return per page. +func (r ApiDcimFrontPortTemplatesListRequest) Limit(limit int32) ApiDcimFrontPortTemplatesListRequest { + r.limit = &limit return r } -// Site name (slug) -func (r ApiDcimDevicesListRequest) Site(site []string) ApiDcimDevicesListRequest { - r.site = &site +func (r ApiDcimFrontPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimFrontPortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Site name (slug) -func (r ApiDcimDevicesListRequest) SiteN(siteN []string) ApiDcimDevicesListRequest { - r.siteN = &siteN +// Module type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimFrontPortTemplatesListRequest { + r.moduleTypeId = &moduleTypeId return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []int32) ApiDcimDevicesListRequest { - r.siteGroup = &siteGroup +// Module type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDevicesListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimFrontPortTemplatesListRequest) Name(name []string) ApiDcimFrontPortTemplatesListRequest { + r.name = &name return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDevicesListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimFrontPortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.nameEmpty = &nameEmpty return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDevicesListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimFrontPortTemplatesListRequest) NameIc(nameIc []string) ApiDcimFrontPortTemplatesListRequest { + r.nameIc = &nameIc return r } -// Site (ID) -func (r ApiDcimDevicesListRequest) SiteId(siteId []int32) ApiDcimDevicesListRequest { - r.siteId = &siteId +func (r ApiDcimFrontPortTemplatesListRequest) NameIe(nameIe []string) ApiDcimFrontPortTemplatesListRequest { + r.nameIe = &nameIe return r } -// Site (ID) -func (r ApiDcimDevicesListRequest) SiteIdN(siteIdN []int32) ApiDcimDevicesListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimFrontPortTemplatesListRequest) NameIew(nameIew []string) ApiDcimFrontPortTemplatesListRequest { + r.nameIew = &nameIew return r } -func (r ApiDcimDevicesListRequest) Status(status []string) ApiDcimDevicesListRequest { - r.status = &status +func (r ApiDcimFrontPortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimFrontPortTemplatesListRequest { + r.nameIsw = &nameIsw return r } -func (r ApiDcimDevicesListRequest) StatusN(statusN []string) ApiDcimDevicesListRequest { - r.statusN = &statusN +func (r ApiDcimFrontPortTemplatesListRequest) NameN(nameN []string) ApiDcimFrontPortTemplatesListRequest { + r.nameN = &nameN return r } -func (r ApiDcimDevicesListRequest) Tag(tag []string) ApiDcimDevicesListRequest { - r.tag = &tag +func (r ApiDcimFrontPortTemplatesListRequest) NameNic(nameNic []string) ApiDcimFrontPortTemplatesListRequest { + r.nameNic = &nameNic return r } -func (r ApiDcimDevicesListRequest) TagN(tagN []string) ApiDcimDevicesListRequest { - r.tagN = &tagN +func (r ApiDcimFrontPortTemplatesListRequest) NameNie(nameNie []string) ApiDcimFrontPortTemplatesListRequest { + r.nameNie = &nameNie return r } -// Tenant (slug) -func (r ApiDcimDevicesListRequest) Tenant(tenant []string) ApiDcimDevicesListRequest { - r.tenant = &tenant +func (r ApiDcimFrontPortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimFrontPortTemplatesListRequest { + r.nameNiew = &nameNiew return r } -// Tenant (slug) -func (r ApiDcimDevicesListRequest) TenantN(tenantN []string) ApiDcimDevicesListRequest { - r.tenantN = &tenantN +func (r ApiDcimFrontPortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimFrontPortTemplatesListRequest { + r.nameNisw = &nameNisw return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []int32) ApiDcimDevicesListRequest { - r.tenantGroup = &tenantGroup +// The initial index from which to return the results. +func (r ApiDcimFrontPortTemplatesListRequest) Offset(offset int32) ApiDcimFrontPortTemplatesListRequest { + r.offset = &offset return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimDevicesListRequest { - r.tenantGroupN = &tenantGroupN +// Which field to use when ordering the results. +func (r ApiDcimFrontPortTemplatesListRequest) Ordering(ordering string) ApiDcimFrontPortTemplatesListRequest { + r.ordering = &ordering return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimDevicesListRequest { - r.tenantGroupId = &tenantGroupId +// Search +func (r ApiDcimFrontPortTemplatesListRequest) Q(q string) ApiDcimFrontPortTemplatesListRequest { + r.q = &q return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimDevicesListRequest { - r.tenantGroupIdN = &tenantGroupIdN +func (r ApiDcimFrontPortTemplatesListRequest) RearPortId(rearPortId []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortId = &rearPortId return r } -// Tenant (ID) -func (r ApiDcimDevicesListRequest) TenantId(tenantId []*int32) ApiDcimDevicesListRequest { - r.tenantId = &tenantId +func (r ApiDcimFrontPortTemplatesListRequest) RearPortIdN(rearPortIdN []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortIdN = &rearPortIdN return r } -// Tenant (ID) -func (r ApiDcimDevicesListRequest) TenantIdN(tenantIdN []*int32) ApiDcimDevicesListRequest { - r.tenantIdN = &tenantIdN +func (r ApiDcimFrontPortTemplatesListRequest) RearPortPosition(rearPortPosition []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortPosition = &rearPortPosition return r } -func (r ApiDcimDevicesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimDevicesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionEmpty(rearPortPositionEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.rearPortPositionEmpty = &rearPortPositionEmpty return r } -func (r ApiDcimDevicesListRequest) VcPosition(vcPosition []int32) ApiDcimDevicesListRequest { - r.vcPosition = &vcPosition +func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionGt(rearPortPositionGt []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortPositionGt = &rearPortPositionGt return r } -func (r ApiDcimDevicesListRequest) VcPositionEmpty(vcPositionEmpty bool) ApiDcimDevicesListRequest { - r.vcPositionEmpty = &vcPositionEmpty +func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionGte(rearPortPositionGte []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortPositionGte = &rearPortPositionGte return r } -func (r ApiDcimDevicesListRequest) VcPositionGt(vcPositionGt []int32) ApiDcimDevicesListRequest { - r.vcPositionGt = &vcPositionGt +func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionLt(rearPortPositionLt []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortPositionLt = &rearPortPositionLt return r } -func (r ApiDcimDevicesListRequest) VcPositionGte(vcPositionGte []int32) ApiDcimDevicesListRequest { - r.vcPositionGte = &vcPositionGte +func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionLte(rearPortPositionLte []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortPositionLte = &rearPortPositionLte return r } -func (r ApiDcimDevicesListRequest) VcPositionLt(vcPositionLt []int32) ApiDcimDevicesListRequest { - r.vcPositionLt = &vcPositionLt +func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionN(rearPortPositionN []int32) ApiDcimFrontPortTemplatesListRequest { + r.rearPortPositionN = &rearPortPositionN return r } -func (r ApiDcimDevicesListRequest) VcPositionLte(vcPositionLte []int32) ApiDcimDevicesListRequest { - r.vcPositionLte = &vcPositionLte +func (r ApiDcimFrontPortTemplatesListRequest) Type_(type_ []string) ApiDcimFrontPortTemplatesListRequest { + r.type_ = &type_ return r } -func (r ApiDcimDevicesListRequest) VcPositionN(vcPositionN []int32) ApiDcimDevicesListRequest { - r.vcPositionN = &vcPositionN +func (r ApiDcimFrontPortTemplatesListRequest) TypeEmpty(typeEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.typeEmpty = &typeEmpty return r } -func (r ApiDcimDevicesListRequest) VcPriority(vcPriority []int32) ApiDcimDevicesListRequest { - r.vcPriority = &vcPriority +func (r ApiDcimFrontPortTemplatesListRequest) TypeIc(typeIc []string) ApiDcimFrontPortTemplatesListRequest { + r.typeIc = &typeIc return r } -func (r ApiDcimDevicesListRequest) VcPriorityEmpty(vcPriorityEmpty bool) ApiDcimDevicesListRequest { - r.vcPriorityEmpty = &vcPriorityEmpty +func (r ApiDcimFrontPortTemplatesListRequest) TypeIe(typeIe []string) ApiDcimFrontPortTemplatesListRequest { + r.typeIe = &typeIe return r } -func (r ApiDcimDevicesListRequest) VcPriorityGt(vcPriorityGt []int32) ApiDcimDevicesListRequest { - r.vcPriorityGt = &vcPriorityGt +func (r ApiDcimFrontPortTemplatesListRequest) TypeIew(typeIew []string) ApiDcimFrontPortTemplatesListRequest { + r.typeIew = &typeIew return r } -func (r ApiDcimDevicesListRequest) VcPriorityGte(vcPriorityGte []int32) ApiDcimDevicesListRequest { - r.vcPriorityGte = &vcPriorityGte +func (r ApiDcimFrontPortTemplatesListRequest) TypeIsw(typeIsw []string) ApiDcimFrontPortTemplatesListRequest { + r.typeIsw = &typeIsw return r } -func (r ApiDcimDevicesListRequest) VcPriorityLt(vcPriorityLt []int32) ApiDcimDevicesListRequest { - r.vcPriorityLt = &vcPriorityLt +func (r ApiDcimFrontPortTemplatesListRequest) TypeN(typeN []string) ApiDcimFrontPortTemplatesListRequest { + r.typeN = &typeN return r } -func (r ApiDcimDevicesListRequest) VcPriorityLte(vcPriorityLte []int32) ApiDcimDevicesListRequest { - r.vcPriorityLte = &vcPriorityLte +func (r ApiDcimFrontPortTemplatesListRequest) TypeNic(typeNic []string) ApiDcimFrontPortTemplatesListRequest { + r.typeNic = &typeNic return r } -func (r ApiDcimDevicesListRequest) VcPriorityN(vcPriorityN []int32) ApiDcimDevicesListRequest { - r.vcPriorityN = &vcPriorityN +func (r ApiDcimFrontPortTemplatesListRequest) TypeNie(typeNie []string) ApiDcimFrontPortTemplatesListRequest { + r.typeNie = &typeNie return r } -// Virtual chassis (ID) -func (r ApiDcimDevicesListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimDevicesListRequest { - r.virtualChassisId = &virtualChassisId +func (r ApiDcimFrontPortTemplatesListRequest) TypeNiew(typeNiew []string) ApiDcimFrontPortTemplatesListRequest { + r.typeNiew = &typeNiew return r } -// Virtual chassis (ID) -func (r ApiDcimDevicesListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimDevicesListRequest { - r.virtualChassisIdN = &virtualChassisIdN +func (r ApiDcimFrontPortTemplatesListRequest) TypeNisw(typeNisw []string) ApiDcimFrontPortTemplatesListRequest { + r.typeNisw = &typeNisw return r } -// Is a virtual chassis member -func (r ApiDcimDevicesListRequest) VirtualChassisMember(virtualChassisMember bool) ApiDcimDevicesListRequest { - r.virtualChassisMember = &virtualChassisMember +func (r ApiDcimFrontPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimFrontPortTemplatesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimDevicesListRequest) Execute() (*PaginatedDeviceWithConfigContextList, *http.Response, error) { - return r.ApiService.DcimDevicesListExecute(r) +func (r ApiDcimFrontPortTemplatesListRequest) Execute() (*PaginatedFrontPortTemplateList, *http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesListExecute(r) } /* -DcimDevicesList Method for DcimDevicesList +DcimFrontPortTemplatesList Method for DcimFrontPortTemplatesList -Get a list of device objects. +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 ApiDcimDevicesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortTemplatesListRequest */ -func (a *DcimAPIService) DcimDevicesList(ctx context.Context) ApiDcimDevicesListRequest { - return ApiDcimDevicesListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFrontPortTemplateList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/front-port-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.color != nil { + t := *r.color + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") + } + } + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") + } + if r.colorIc != nil { + t := *r.colorIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") + } + } + if r.colorIe != nil { + t := *r.colorIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") + } + } + if r.colorIew != nil { + t := *r.colorIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") + } + } + if r.colorIsw != nil { + t := *r.colorIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") + } + } + if r.colorN != nil { + t := *r.colorN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") + } + } + if r.colorNic != nil { + t := *r.colorNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") + } + } + if r.colorNie != nil { + t := *r.colorNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") + } + } + if r.colorNiew != nil { + t := *r.colorNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") + } + } + if r.colorNisw != nil { + t := *r.colorNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedDeviceWithConfigContextList -func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*PaginatedDeviceWithConfigContextList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceWithConfigContextList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/devices/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.airflow != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } } - if r.airflowN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") + } } - if r.assetTag != nil { - t := *r.assetTag + 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, "asset_tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.assetTagEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } } - if r.assetTagIc != nil { - t := *r.assetTagIc + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "asset_tag__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.assetTagIe != nil { - t := *r.assetTagIe + 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, "asset_tag__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.assetTagIew != nil { - t := *r.assetTagIew + 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, "asset_tag__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.assetTagIsw != nil { - t := *r.assetTagIsw + 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, "asset_tag__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.assetTagN != nil { - t := *r.assetTagN + 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, "asset_tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.assetTagNic != nil { - t := *r.assetTagNic + if r.label != nil { + t := *r.label 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } - if r.assetTagNie != nil { - t := *r.assetTagNie + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } - if r.assetTagNiew != nil { - t := *r.assetTagNiew + if r.labelIe != nil { + t := *r.labelIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } - if r.assetTagNisw != nil { - t := *r.assetTagNisw + if r.labelIew != nil { + t := *r.labelIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } - if r.clusterId != nil { - t := *r.clusterId + if r.labelIsw != nil { + t := *r.labelIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } - if r.clusterIdN != nil { - t := *r.clusterIdN + if r.labelN != nil { + t := *r.labelN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } - if r.configTemplateId != nil { - t := *r.configTemplateId + if r.labelNic != nil { + t := *r.labelNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.configTemplateIdN != nil { - t := *r.configTemplateIdN + if r.labelNie != nil { + t := *r.labelNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } - if r.consolePortCount != nil { - t := *r.consolePortCount + if r.labelNiew != nil { + t := *r.labelNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.consolePortCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__empty", r.consolePortCountEmpty, "") + if r.labelNisw != nil { + t := *r.labelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") + } } - if r.consolePortCountGt != nil { - t := *r.consolePortCountGt + 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, "console_port_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.consolePortCountGte != nil { - t := *r.consolePortCountGte + 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, "console_port_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.consolePortCountLt != nil { - t := *r.consolePortCountLt + 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, "console_port_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.consolePortCountLte != nil { - t := *r.consolePortCountLte + 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, "console_port_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.consolePortCountN != nil { - t := *r.consolePortCountN + 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, "console_port_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_port_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.consolePorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") + } } - if r.consoleServerPortCount != nil { - t := *r.consoleServerPortCount + 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, "console_server_port_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.consoleServerPortCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__empty", r.consoleServerPortCountEmpty, "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.consoleServerPortCountGt != nil { - t := *r.consoleServerPortCountGt + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "console_server_port_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } - if r.consoleServerPortCountGte != nil { - t := *r.consoleServerPortCountGte + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } - if r.consoleServerPortCountLt != nil { - t := *r.consoleServerPortCountLt + 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, "console_server_port_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.consoleServerPortCountLte != nil { - t := *r.consoleServerPortCountLte + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "console_server_port_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.consoleServerPortCountN != nil { - t := *r.consoleServerPortCountN + 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, "console_server_port_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_port_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.consoleServerPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") + } } - if r.contact != nil { - t := *r.contact + 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, "contact", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.contactN != nil { - t := *r.contactN + 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, "contact__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.contactGroup != nil { - t := *r.contactGroup + 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, "contact_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.contactGroupN != nil { - t := *r.contactGroupN + 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, "contact_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.contactRole != nil { - t := *r.contactRole + 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, "contact_role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.contactRoleN != nil { - t := *r.contactRoleN + 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, "contact_role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.created != nil { - t := *r.created + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rearPortId != nil { + t := *r.rearPortId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.rearPortIdN != nil { + t := *r.rearPortIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id__n", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.rearPortPosition != nil { + t := *r.rearPortPosition 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.rearPortPositionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__empty", r.rearPortPositionEmpty, "form", "") + } + if r.rearPortPositionGt != nil { + t := *r.rearPortPositionGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gt", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.rearPortPositionGte != nil { + t := *r.rearPortPositionGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", t, "form", "multi") + } + } + if r.rearPortPositionLt != nil { + t := *r.rearPortPositionLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lt", t, "form", "multi") + } + } + if r.rearPortPositionLte != nil { + t := *r.rearPortPositionLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lte", t, "form", "multi") + } + } + if r.rearPortPositionN != nil { + t := *r.rearPortPositionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") + } + } + if r.typeN != nil { + t := *r.typeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiDcimFrontPortTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableFrontPortTemplateRequest *PatchedWritableFrontPortTemplateRequest +} + +func (r ApiDcimFrontPortTemplatesPartialUpdateRequest) PatchedWritableFrontPortTemplateRequest(patchedWritableFrontPortTemplateRequest PatchedWritableFrontPortTemplateRequest) ApiDcimFrontPortTemplatesPartialUpdateRequest { + r.patchedWritableFrontPortTemplateRequest = &patchedWritableFrontPortTemplateRequest + return r +} + +func (r ApiDcimFrontPortTemplatesPartialUpdateRequest) Execute() (*FrontPortTemplate, *http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesPartialUpdateExecute(r) +} + +/* +DcimFrontPortTemplatesPartialUpdate Method for DcimFrontPortTemplatesPartialUpdate + +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 +*/ +func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesPartialUpdateRequest { + return ApiDcimFrontPortTemplatesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFrontPortTemplatesPartialUpdateRequest) (*FrontPortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/front-port-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{"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.patchedWritableFrontPortTemplateRequest + 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 } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimFrontPortTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimFrontPortTemplatesRetrieveRequest) Execute() (*FrontPortTemplate, *http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimFrontPortTemplatesRetrieveRequest { + return ApiDcimFrontPortTemplatesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") +} + +// Execute executes the request +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPortTemplatesRetrieveRequest) (*FrontPortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/front-port-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.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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__ic", t, "multi") } } - 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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimFrontPortTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest +} + +func (r ApiDcimFrontPortTemplatesUpdateRequest) WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest WritableFrontPortTemplateRequest) ApiDcimFrontPortTemplatesUpdateRequest { + r.writableFrontPortTemplateRequest = &writableFrontPortTemplateRequest + return r +} + +func (r ApiDcimFrontPortTemplatesUpdateRequest) Execute() (*FrontPortTemplate, *http.Response, error) { + return r.ApiService.DcimFrontPortTemplatesUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesUpdateRequest { + return ApiDcimFrontPortTemplatesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortTemplatesUpdateRequest) (*FrontPortTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/front-port-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.writableFrontPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableFrontPortTemplateRequest is required and must be specified") } - if r.deviceBayCount != nil { - t := *r.deviceBayCount - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count", 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.deviceBayCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__empty", r.deviceBayCountEmpty, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.deviceBayCountGt != nil { - t := *r.deviceBayCountGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__gt", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.writableFrontPortTemplateRequest + 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, "device_bay_count__gt", t, "multi") } } - if r.deviceBayCountGte != nil { - t := *r.deviceBayCountGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__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.deviceBayCountLt != nil { - t := *r.deviceBayCountLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.deviceBayCountLte != nil { - t := *r.deviceBayCountLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.deviceBayCountN != nil { - t := *r.deviceBayCountN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bay_count__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.deviceBays != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_bays", r.deviceBays, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimFrontPortsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + frontPortRequest *[]FrontPortRequest +} + +func (r ApiDcimFrontPortsBulkDestroyRequest) FrontPortRequest(frontPortRequest []FrontPortRequest) ApiDcimFrontPortsBulkDestroyRequest { + r.frontPortRequest = &frontPortRequest + return r +} + +func (r ApiDcimFrontPortsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimFrontPortsBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortsBulkDestroy(ctx context.Context) ApiDcimFrontPortsBulkDestroyRequest { + return ApiDcimFrontPortsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, } - if r.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } +} + +// Execute executes the request +func (a *DcimAPIService) DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/front-ports/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.frontPortRequest == nil { + return nil, reportError("frontPortRequest is required and must be specified") } - 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") - } + + // 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.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") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.frontPortRequest + 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, "device_type_id__n", t, "multi") } } - if r.face != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "face", r.face, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.faceN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "face__n", r.faceN, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.frontPortCount != nil { - t := *r.frontPortCount - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count", 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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.frontPortCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__empty", r.frontPortCountEmpty, "") + + return localVarHTTPResponse, nil +} + +type ApiDcimFrontPortsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + frontPortRequest *[]FrontPortRequest +} + +func (r ApiDcimFrontPortsBulkPartialUpdateRequest) FrontPortRequest(frontPortRequest []FrontPortRequest) ApiDcimFrontPortsBulkPartialUpdateRequest { + r.frontPortRequest = &frontPortRequest + return r +} + +func (r ApiDcimFrontPortsBulkPartialUpdateRequest) Execute() ([]FrontPort, *http.Response, error) { + return r.ApiService.DcimFrontPortsBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortsBulkPartialUpdateRequest { + return ApiDcimFrontPortsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []FrontPort +func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPortsBulkPartialUpdateRequest) ([]FrontPort, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPort + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.frontPortCountGt != nil { - t := *r.frontPortCountGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gt", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/front-ports/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.frontPortRequest == nil { + return localVarReturnValue, nil, reportError("frontPortRequest is required and must be specified") } - if r.frontPortCountGte != nil { - t := *r.frontPortCountGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__gte", 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.frontPortCountLt != nil { - t := *r.frontPortCountLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__lt", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.frontPortCountLte != nil { - t := *r.frontPortCountLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__lte", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.frontPortRequest + 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, "front_port_count__lte", t, "multi") } } - if r.frontPortCountN != nil { - t := *r.frontPortCountN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "front_port_count__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.hasOobIp != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "has_oob_ip", r.hasOobIp, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.hasPrimaryIp != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "") + + 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.hasVirtualDeviceContext != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "has_virtual_device_context", r.hasVirtualDeviceContext, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimFrontPortsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + frontPortRequest *[]FrontPortRequest +} + +func (r ApiDcimFrontPortsBulkUpdateRequest) FrontPortRequest(frontPortRequest []FrontPortRequest) ApiDcimFrontPortsBulkUpdateRequest { + r.frontPortRequest = &frontPortRequest + return r +} + +func (r ApiDcimFrontPortsBulkUpdateRequest) Execute() ([]FrontPort, *http.Response, error) { + return r.ApiService.DcimFrontPortsBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortsBulkUpdate(ctx context.Context) ApiDcimFrontPortsBulkUpdateRequest { + return ApiDcimFrontPortsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return []FrontPort +func (a *DcimAPIService) DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulkUpdateRequest) ([]FrontPort, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPort + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/front-ports/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.frontPortRequest == nil { + return localVarReturnValue, nil, reportError("frontPortRequest is required and must be specified") } - 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") - } + + // 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.frontPortRequest + 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.interfaceCount != nil { - t := *r.interfaceCount - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count", 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.interfaceCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__empty", r.interfaceCountEmpty, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.interfaceCountGt != nil { - t := *r.interfaceCountGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", 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.interfaceCountGte != nil { - t := *r.interfaceCountGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gte", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.interfaceCountLt != nil { - t := *r.interfaceCountLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lt", 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.interfaceCountLte != nil { - t := *r.interfaceCountLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lte", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimFrontPortsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableFrontPortRequest *WritableFrontPortRequest +} + +func (r ApiDcimFrontPortsCreateRequest) WritableFrontPortRequest(writableFrontPortRequest WritableFrontPortRequest) ApiDcimFrontPortsCreateRequest { + r.writableFrontPortRequest = &writableFrontPortRequest + return r +} + +func (r ApiDcimFrontPortsCreateRequest) Execute() (*FrontPort, *http.Response, error) { + return r.ApiService.DcimFrontPortsCreateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortsCreate(ctx context.Context) ApiDcimFrontPortsCreateRequest { + return ApiDcimFrontPortsCreateRequest{ + ApiService: a, + ctx: ctx, } - if r.interfaceCountN != nil { - t := *r.interfaceCountN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__n", t, "multi") - } +} + +// Execute executes the request +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRequest) (*FrontPort, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.interfaces != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "") + + localVarPath := localBasePath + "/api/dcim/front-ports/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableFrontPortRequest == nil { + return localVarReturnValue, nil, reportError("writableFrontPortRequest is required and must be specified") } - if r.inventoryItemCount != nil { - t := *r.inventoryItemCount - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count", 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.inventoryItemCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__empty", r.inventoryItemCountEmpty, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.inventoryItemCountGt != nil { - t := *r.inventoryItemCountGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__gt", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.writableFrontPortRequest + 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, "inventory_item_count__gt", t, "multi") } } - if r.inventoryItemCountGte != nil { - t := *r.inventoryItemCountGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__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.inventoryItemCountLt != nil { - t := *r.inventoryItemCountLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.inventoryItemCountLte != nil { - t := *r.inventoryItemCountLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__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.inventoryItemCountN != nil { - t := *r.inventoryItemCountN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "inventory_item_count__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.isFullDepth != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_full_depth", r.isFullDepth, "") - } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimFrontPortsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimFrontPortsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimFrontPortsDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortsDestroy(ctx context.Context, id int32) ApiDcimFrontPortsDestroyRequest { + return ApiDcimFrontPortsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +func (a *DcimAPIService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/front-ports/{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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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__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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.latitudeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__empty", r.latitudeEmpty, "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - 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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - 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") - } + + return localVarHTTPResponse, nil +} + +type ApiDcimFrontPortsListRequest struct { + ctx context.Context + ApiService DcimAPI + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + 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 + markConnected *bool + 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 + rearPortId *[]int32 + rearPortIdN *[]int32 + rearPortPosition *[]int32 + rearPortPositionEmpty *bool + rearPortPositionGt *[]int32 + rearPortPositionGte *[]int32 + rearPortPositionLt *[]int32 + rearPortPositionLte *[]int32 + rearPortPositionN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 +} + +// * `A` - A * `B` - B +func (r ApiDcimFrontPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimFrontPortsListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiDcimFrontPortsListRequest) CableId(cableId []*int32) ApiDcimFrontPortsListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiDcimFrontPortsListRequest) CableIdN(cableIdN []*int32) ApiDcimFrontPortsListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) Cabled(cabled bool) ApiDcimFrontPortsListRequest { + r.cabled = &cabled + return r +} + +func (r ApiDcimFrontPortsListRequest) Color(color []string) ApiDcimFrontPortsListRequest { + r.color = &color + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorEmpty(colorEmpty bool) ApiDcimFrontPortsListRequest { + r.colorEmpty = &colorEmpty + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorIc(colorIc []string) ApiDcimFrontPortsListRequest { + r.colorIc = &colorIc + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorIe(colorIe []string) ApiDcimFrontPortsListRequest { + r.colorIe = &colorIe + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorIew(colorIew []string) ApiDcimFrontPortsListRequest { + r.colorIew = &colorIew + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorIsw(colorIsw []string) ApiDcimFrontPortsListRequest { + r.colorIsw = &colorIsw + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorN(colorN []string) ApiDcimFrontPortsListRequest { + r.colorN = &colorN + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorNic(colorNic []string) ApiDcimFrontPortsListRequest { + r.colorNic = &colorNic + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorNie(colorNie []string) ApiDcimFrontPortsListRequest { + r.colorNie = &colorNie + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorNiew(colorNiew []string) ApiDcimFrontPortsListRequest { + r.colorNiew = &colorNiew + return r +} + +func (r ApiDcimFrontPortsListRequest) ColorNisw(colorNisw []string) ApiDcimFrontPortsListRequest { + r.colorNisw = &colorNisw + return r +} + +func (r ApiDcimFrontPortsListRequest) Created(created []time.Time) ApiDcimFrontPortsListRequest { + r.created = &created + 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 +} + +func (r ApiDcimFrontPortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimFrontPortsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimFrontPortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimFrontPortsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimFrontPortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimFrontPortsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimFrontPortsListRequest) CreatedN(createdN []time.Time) ApiDcimFrontPortsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimFrontPortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimFrontPortsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimFrontPortsListRequest) Description(description []string) ApiDcimFrontPortsListRequest { + r.description = &description + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimFrontPortsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimFrontPortsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimFrontPortsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimFrontPortsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimFrontPortsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionN(descriptionN []string) ApiDcimFrontPortsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimFrontPortsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimFrontPortsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimFrontPortsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimFrontPortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimFrontPortsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Device (name) +func (r ApiDcimFrontPortsListRequest) Device(device []*string) ApiDcimFrontPortsListRequest { + r.device = &device + return r +} + +// Device (name) +func (r ApiDcimFrontPortsListRequest) DeviceN(deviceN []*string) ApiDcimFrontPortsListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimFrontPortsListRequest) DeviceId(deviceId []int32) ApiDcimFrontPortsListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimFrontPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimFrontPortsListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRole(deviceRole []string) ApiDcimFrontPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimFrontPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimFrontPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimFrontPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimFrontPortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimFrontPortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimFrontPortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimFrontPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimFrontPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimFrontPortsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimFrontPortsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimFrontPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimFrontPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + +// Device type (model) +func (r ApiDcimFrontPortsListRequest) DeviceType(deviceType []string) ApiDcimFrontPortsListRequest { + r.deviceType = &deviceType + return r +} + +// Device type (model) +func (r ApiDcimFrontPortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimFrontPortsListRequest { + r.deviceTypeN = &deviceTypeN + return r +} + +// Device type (ID) +func (r ApiDcimFrontPortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimFrontPortsListRequest { + r.deviceTypeId = &deviceTypeId + return r +} + +// Device type (ID) +func (r ApiDcimFrontPortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimFrontPortsListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) Id(id []int32) ApiDcimFrontPortsListRequest { + r.id = &id + 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 +} + +func (r ApiDcimFrontPortsListRequest) IdGte(idGte []int32) ApiDcimFrontPortsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimFrontPortsListRequest) IdLt(idLt []int32) ApiDcimFrontPortsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimFrontPortsListRequest) IdLte(idLte []int32) ApiDcimFrontPortsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimFrontPortsListRequest) IdN(idN []int32) ApiDcimFrontPortsListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimFrontPortsListRequest) Label(label []string) ApiDcimFrontPortsListRequest { + r.label = &label + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimFrontPortsListRequest { + r.labelEmpty = &labelEmpty + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelIc(labelIc []string) ApiDcimFrontPortsListRequest { + r.labelIc = &labelIc + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelIe(labelIe []string) ApiDcimFrontPortsListRequest { + r.labelIe = &labelIe + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelIew(labelIew []string) ApiDcimFrontPortsListRequest { + r.labelIew = &labelIew + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelIsw(labelIsw []string) ApiDcimFrontPortsListRequest { + r.labelIsw = &labelIsw + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelN(labelN []string) ApiDcimFrontPortsListRequest { + r.labelN = &labelN + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelNic(labelNic []string) ApiDcimFrontPortsListRequest { + r.labelNic = &labelNic + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelNie(labelNie []string) ApiDcimFrontPortsListRequest { + r.labelNie = &labelNie + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelNiew(labelNiew []string) ApiDcimFrontPortsListRequest { + r.labelNiew = &labelNiew + return r +} + +func (r ApiDcimFrontPortsListRequest) LabelNisw(labelNisw []string) ApiDcimFrontPortsListRequest { + r.labelNisw = &labelNisw + return r +} + +func (r ApiDcimFrontPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimFrontPortsListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiDcimFrontPortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimFrontPortsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimFrontPortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimFrontPortsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimFrontPortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimFrontPortsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimFrontPortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimFrontPortsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimFrontPortsListRequest) Limit(limit int32) ApiDcimFrontPortsListRequest { + r.limit = &limit + return r +} + +// Location (slug) +func (r ApiDcimFrontPortsListRequest) Location(location []string) ApiDcimFrontPortsListRequest { + r.location = &location + return r +} + +// Location (slug) +func (r ApiDcimFrontPortsListRequest) LocationN(locationN []string) ApiDcimFrontPortsListRequest { + r.locationN = &locationN + return r +} + +// Location (ID) +func (r ApiDcimFrontPortsListRequest) LocationId(locationId []int32) ApiDcimFrontPortsListRequest { + r.locationId = &locationId + return r +} + +// Location (ID) +func (r ApiDcimFrontPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimFrontPortsListRequest { + r.locationIdN = &locationIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) MarkConnected(markConnected bool) ApiDcimFrontPortsListRequest { + r.markConnected = &markConnected + 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 + return r +} + +// Module (ID) +func (r ApiDcimFrontPortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimFrontPortsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) Name(name []string) ApiDcimFrontPortsListRequest { + r.name = &name + return r +} + +func (r ApiDcimFrontPortsListRequest) NameEmpty(nameEmpty bool) ApiDcimFrontPortsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiDcimFrontPortsListRequest) NameIc(nameIc []string) ApiDcimFrontPortsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiDcimFrontPortsListRequest) NameIe(nameIe []string) ApiDcimFrontPortsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiDcimFrontPortsListRequest) NameIew(nameIew []string) ApiDcimFrontPortsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiDcimFrontPortsListRequest) NameIsw(nameIsw []string) ApiDcimFrontPortsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiDcimFrontPortsListRequest) NameN(nameN []string) ApiDcimFrontPortsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiDcimFrontPortsListRequest) NameNic(nameNic []string) ApiDcimFrontPortsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiDcimFrontPortsListRequest) NameNie(nameNie []string) ApiDcimFrontPortsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiDcimFrontPortsListRequest) NameNiew(nameNiew []string) ApiDcimFrontPortsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiDcimFrontPortsListRequest) NameNisw(nameNisw []string) ApiDcimFrontPortsListRequest { + r.nameNisw = &nameNisw + return r +} + +func (r ApiDcimFrontPortsListRequest) Occupied(occupied bool) ApiDcimFrontPortsListRequest { + r.occupied = &occupied + return r +} + +// The initial index from which to return the results. +func (r ApiDcimFrontPortsListRequest) Offset(offset int32) ApiDcimFrontPortsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimFrontPortsListRequest) Ordering(ordering string) ApiDcimFrontPortsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiDcimFrontPortsListRequest) Q(q string) ApiDcimFrontPortsListRequest { + r.q = &q + return r +} + +// Rack (name) +func (r ApiDcimFrontPortsListRequest) Rack(rack []string) ApiDcimFrontPortsListRequest { + r.rack = &rack + return r +} + +// Rack (name) +func (r ApiDcimFrontPortsListRequest) RackN(rackN []string) ApiDcimFrontPortsListRequest { + r.rackN = &rackN + return r +} + +// Rack (ID) +func (r ApiDcimFrontPortsListRequest) RackId(rackId []int32) ApiDcimFrontPortsListRequest { + r.rackId = &rackId + return r +} + +// Rack (ID) +func (r ApiDcimFrontPortsListRequest) RackIdN(rackIdN []int32) ApiDcimFrontPortsListRequest { + r.rackIdN = &rackIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortId(rearPortId []int32) ApiDcimFrontPortsListRequest { + r.rearPortId = &rearPortId + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortIdN(rearPortIdN []int32) ApiDcimFrontPortsListRequest { + r.rearPortIdN = &rearPortIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortPosition(rearPortPosition []int32) ApiDcimFrontPortsListRequest { + r.rearPortPosition = &rearPortPosition + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortPositionEmpty(rearPortPositionEmpty bool) ApiDcimFrontPortsListRequest { + r.rearPortPositionEmpty = &rearPortPositionEmpty + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortPositionGt(rearPortPositionGt []int32) ApiDcimFrontPortsListRequest { + r.rearPortPositionGt = &rearPortPositionGt + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortPositionGte(rearPortPositionGte []int32) ApiDcimFrontPortsListRequest { + r.rearPortPositionGte = &rearPortPositionGte + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortPositionLt(rearPortPositionLt []int32) ApiDcimFrontPortsListRequest { + r.rearPortPositionLt = &rearPortPositionLt + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortPositionLte(rearPortPositionLte []int32) ApiDcimFrontPortsListRequest { + r.rearPortPositionLte = &rearPortPositionLte + return r +} + +func (r ApiDcimFrontPortsListRequest) RearPortPositionN(rearPortPositionN []int32) ApiDcimFrontPortsListRequest { + r.rearPortPositionN = &rearPortPositionN + return r +} + +func (r ApiDcimFrontPortsListRequest) Region(region []string) ApiDcimFrontPortsListRequest { + r.region = ®ion + return r +} + +func (r ApiDcimFrontPortsListRequest) RegionN(regionN []string) ApiDcimFrontPortsListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiDcimFrontPortsListRequest) RegionId(regionId []string) ApiDcimFrontPortsListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []string) ApiDcimFrontPortsListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site name (slug) +func (r ApiDcimFrontPortsListRequest) Site(site []string) ApiDcimFrontPortsListRequest { + r.site = &site + return r +} + +// Site name (slug) +func (r ApiDcimFrontPortsListRequest) SiteN(siteN []string) ApiDcimFrontPortsListRequest { + r.siteN = &siteN + return r +} + +func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []string) ApiDcimFrontPortsListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimFrontPortsListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimFrontPortsListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimFrontPortsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiDcimFrontPortsListRequest) SiteId(siteId []int32) ApiDcimFrontPortsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiDcimFrontPortsListRequest) SiteIdN(siteIdN []int32) ApiDcimFrontPortsListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) Tag(tag []string) ApiDcimFrontPortsListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimFrontPortsListRequest) TagN(tagN []string) ApiDcimFrontPortsListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimFrontPortsListRequest) Type_(type_ []string) ApiDcimFrontPortsListRequest { + r.type_ = &type_ + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimFrontPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeIc(typeIc []string) ApiDcimFrontPortsListRequest { + r.typeIc = &typeIc + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeIe(typeIe []string) ApiDcimFrontPortsListRequest { + r.typeIe = &typeIe + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeIew(typeIew []string) ApiDcimFrontPortsListRequest { + r.typeIew = &typeIew + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeIsw(typeIsw []string) ApiDcimFrontPortsListRequest { + r.typeIsw = &typeIsw + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeN(typeN []string) ApiDcimFrontPortsListRequest { + r.typeN = &typeN + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeNic(typeNic []string) ApiDcimFrontPortsListRequest { + r.typeNic = &typeNic + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeNie(typeNie []string) ApiDcimFrontPortsListRequest { + r.typeNie = &typeNie + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeNiew(typeNiew []string) ApiDcimFrontPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +func (r ApiDcimFrontPortsListRequest) TypeNisw(typeNisw []string) ApiDcimFrontPortsListRequest { + r.typeNisw = &typeNisw + return r +} + +func (r ApiDcimFrontPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimFrontPortsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +// Virtual Chassis +func (r ApiDcimFrontPortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimFrontPortsListRequest { + r.virtualChassis = &virtualChassis + return r +} + +// Virtual Chassis +func (r ApiDcimFrontPortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimFrontPortsListRequest { + r.virtualChassisN = &virtualChassisN + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimFrontPortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimFrontPortsListRequest { + r.virtualChassisId = &virtualChassisId + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimFrontPortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimFrontPortsListRequest { + r.virtualChassisIdN = &virtualChassisIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) Execute() (*PaginatedFrontPortList, *http.Response, error) { + return r.ApiService.DcimFrontPortsListExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimFrontPortsList(ctx context.Context) ApiDcimFrontPortsListRequest { + return ApiDcimFrontPortsListRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return PaginatedFrontPortList +func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListRequest) (*PaginatedFrontPortList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFrontPortList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/front-ports/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") } - if r.latitudeN != nil { - t := *r.latitudeN + if r.cableId != nil { + t := *r.cableId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.localContextData != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "local_context_data", r.localContextData, "") - } - if r.locationId != nil { - t := *r.locationId + if r.cableIdN != nil { + t := *r.cableIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "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.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") } - if r.longitude != nil { - t := *r.longitude + if r.color != nil { + t := *r.color 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") } } - if r.longitudeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__empty", r.longitudeEmpty, "") + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") } - if r.longitudeGt != nil { - t := *r.longitudeGt + if r.colorIc != nil { + t := *r.colorIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") } } - if r.longitudeGte != nil { - t := *r.longitudeGte + if r.colorIe != nil { + t := *r.colorIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") } } - if r.longitudeLt != nil { - t := *r.longitudeLt + if r.colorIew != nil { + t := *r.colorIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") } } - if r.longitudeLte != nil { - t := *r.longitudeLte + if r.colorIsw != nil { + t := *r.colorIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") } } - if r.longitudeN != nil { - t := *r.longitudeN + if r.colorN != nil { + t := *r.colorN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") } } - if r.macAddress != nil { - t := *r.macAddress + if r.colorNic != nil { + t := *r.colorNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") } } - if r.macAddressIc != nil { - t := *r.macAddressIc + if r.colorNie != nil { + t := *r.colorNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") } } - if r.macAddressIe != nil { - t := *r.macAddressIe + if r.colorNiew != nil { + t := *r.colorNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") } } - if r.macAddressIew != nil { - t := *r.macAddressIew + if r.colorNisw != nil { + t := *r.colorNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") } } - if r.macAddressIsw != nil { - t := *r.macAddressIsw + 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, "mac_address__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.macAddressN != nil { - t := *r.macAddressN + 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, "mac_address__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.macAddressNic != nil { - t := *r.macAddressNic + 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, "mac_address__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.macAddressNie != nil { - t := *r.macAddressNie + 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, "mac_address__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.macAddressNiew != nil { - t := *r.macAddressNiew + 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, "mac_address__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.macAddressNisw != nil { - t := *r.macAddressNisw + 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, "mac_address__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.manufacturer != nil { - t := *r.manufacturer + 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, "manufacturer", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.manufacturerN != nil { - t := *r.manufacturerN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") - } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.manufacturerId != nil { - t := *r.manufacturerId + 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, "manufacturer_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.manufacturerIdN != nil { - t := *r.manufacturerIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") - } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.model != nil { - t := *r.model + 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, "model", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.modelN != nil { - t := *r.modelN + 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, "model__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.moduleBayCount != nil { - t := *r.moduleBayCount + 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, "module_bay_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.moduleBayCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__empty", r.moduleBayCountEmpty, "") - } - if r.moduleBayCountGt != nil { - t := *r.moduleBayCountGt + 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, "module_bay_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.moduleBayCountGte != nil { - t := *r.moduleBayCountGte + 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, "module_bay_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.moduleBayCountLt != nil { - t := *r.moduleBayCountLt + 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, "module_bay_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.moduleBayCountLte != nil { - t := *r.moduleBayCountLte + 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, "module_bay_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.moduleBayCountN != nil { - t := *r.moduleBayCountN + 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, "module_bay_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.moduleBays != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "") - } - if r.name != nil { - t := *r.name + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + if r.device != nil { + t := *r.device 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + 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, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.deviceRoleN != nil { + t := *r.deviceRoleN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.deviceRoleId != nil { + t := *r.deviceRoleId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.deviceStatus != nil { + t := *r.deviceStatus 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") } - if r.oobIpId != nil { - t := *r.oobIpId + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") } } - if r.oobIpIdN != nil { - t := *r.oobIpIdN + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") } } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.parentBayId != nil { - t := *r.parentBayId + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") } } - if r.parentBayIdN != nil { - t := *r.parentBayIdN + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_bay_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") } } - if r.parentDeviceId != nil { - t := *r.parentDeviceId + if r.deviceStatusN != nil { + t := *r.deviceStatusN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") } } - if r.parentDeviceIdN != nil { - t := *r.parentDeviceIdN + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") } } - if r.passThroughPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "pass_through_ports", r.passThroughPorts, "") - } - if r.platform != nil { - t := *r.platform + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") } } - if r.platformN != nil { - t := *r.platformN + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") } } - if r.platformId != nil { - t := *r.platformId + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") } } - if r.platformIdN != nil { - t := *r.platformIdN + if r.deviceType != nil { + t := *r.deviceType 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") } } - if r.position != nil { - t := *r.position + if r.deviceTypeN != nil { + t := *r.deviceTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.positionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "") - } - if r.positionGt != nil { - t := *r.positionGt + 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, "position__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.positionGte != nil { - t := *r.positionGte + 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, "position__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.positionLt != nil { - t := *r.positionLt + 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, "position__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.positionLte != nil { - t := *r.positionLte + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "position__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.positionN != nil { - t := *r.positionN + 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, "position__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.powerOutletCount != nil { - t := *r.powerOutletCount + 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, "power_outlet_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.powerOutletCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__empty", r.powerOutletCountEmpty, "") - } - if r.powerOutletCountGt != nil { - t := *r.powerOutletCountGt + 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, "power_outlet_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.powerOutletCountGte != nil { - t := *r.powerOutletCountGte + 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, "power_outlet_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.powerOutletCountLt != nil { - t := *r.powerOutletCountLt + if r.label != nil { + t := *r.label if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } - if r.powerOutletCountLte != nil { - t := *r.powerOutletCountLte + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } - if r.powerOutletCountN != nil { - t := *r.powerOutletCountN + if r.labelIe != nil { + t := *r.labelIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlet_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } - if r.powerOutlets != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "") - } - if r.powerPortCount != nil { - t := *r.powerPortCount + if r.labelIew != nil { + t := *r.labelIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } - if r.powerPortCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__empty", r.powerPortCountEmpty, "") - } - if r.powerPortCountGt != nil { - t := *r.powerPortCountGt + if r.labelIsw != nil { + t := *r.labelIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } - if r.powerPortCountGte != nil { - t := *r.powerPortCountGte + if r.labelN != nil { + t := *r.labelN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } - if r.powerPortCountLt != nil { - t := *r.powerPortCountLt + if r.labelNic != nil { + t := *r.labelNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.powerPortCountLte != nil { - t := *r.powerPortCountLte + if r.labelNie != nil { + t := *r.labelNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } - if r.powerPortCountN != nil { - t := *r.powerPortCountN + if r.labelNiew != nil { + t := *r.labelNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.powerPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "") - } - if r.primaryIp4Id != nil { - t := *r.primaryIp4Id + if r.labelNisw != nil { + t := *r.labelNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } - if r.primaryIp4IdN != nil { - t := *r.primaryIp4IdN + 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, "primary_ip4_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.primaryIp6Id != nil { - t := *r.primaryIp6Id + 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, "primary_ip6_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.primaryIp6IdN != nil { - t := *r.primaryIp6IdN + 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, "primary_ip6_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rackId != nil { - t := *r.rackId + 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, "rack_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + 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, "rack_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.rearPortCount != nil { - t := *r.rearPortCount + 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, "rear_port_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.rearPortCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__empty", r.rearPortCountEmpty, "") - } - if r.rearPortCountGt != nil { - t := *r.rearPortCountGt + 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, "rear_port_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.rearPortCountGte != nil { - t := *r.rearPortCountGte + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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, "rear_port_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } - if r.rearPortCountLt != nil { - t := *r.rearPortCountLt + 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, "rear_port_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } - if r.rearPortCountLte != nil { - t := *r.rearPortCountLte + 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, "rear_port_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } - if r.rearPortCountN != nil { - t := *r.rearPortCountN + 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, "rear_port_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.region != nil { - t := *r.region + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.moduleIdN != nil { + t := *r.moduleIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.role != nil { - t := *r.role + 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, "role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.serial != nil { - t := *r.serial + 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, "serial", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.serialEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") - } - if r.serialIc != nil { - t := *r.serialIc + 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, "serial__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.serialIe != nil { - t := *r.serialIe + 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, "serial__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.serialIew != nil { - t := *r.serialIew + 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, "serial__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.serialIsw != nil { - t := *r.serialIsw + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") } } - if r.serialN != nil { - t := *r.serialN + if r.rackN != nil { + t := *r.rackN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") } } - if r.serialNic != nil { - t := *r.serialNic + if r.rackId != nil { + t := *r.rackId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") } } - if r.serialNie != nil { - t := *r.serialNie + if r.rackIdN != nil { + t := *r.rackIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") } } - if r.serialNiew != nil { - t := *r.serialNiew + if r.rearPortId != nil { + t := *r.rearPortId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", t, "form", "multi") } } - if r.serialNisw != nil { - t := *r.serialNisw + if r.rearPortIdN != nil { + t := *r.rearPortIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id__n", t, "form", "multi") } } - if r.site != nil { - t := *r.site + if r.rearPortPosition != nil { + t := *r.rearPortPosition 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + if r.rearPortPositionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__empty", r.rearPortPositionEmpty, "form", "") + } + if r.rearPortPositionGt != nil { + t := *r.rearPortPositionGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gt", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + if r.rearPortPositionGte != nil { + t := *r.rearPortPositionGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + if r.rearPortPositionLt != nil { + t := *r.rearPortPositionLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lt", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + if r.rearPortPositionLte != nil { + t := *r.rearPortPositionLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lte", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + if r.rearPortPositionN != nil { + t := *r.rearPortPositionN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__n", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } - if r.status != nil { - t := *r.status + 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, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + 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, "status__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.tenant != nil { - t := *r.tenant + 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, "tenant", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + 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, "tenant__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + 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, "tenant_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + 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, "tenant_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + 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, "tenant_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + 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, "tenant_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + 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, "tenant_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + 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, "tenant_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.vcPosition != nil { - t := *r.vcPosition + 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, "vc_position", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") } } - if r.vcPositionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__empty", r.vcPositionEmpty, "") + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") } - if r.vcPositionGt != nil { - t := *r.vcPositionGt + if r.typeIc != nil { + t := *r.typeIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") } } - if r.vcPositionGte != nil { - t := *r.vcPositionGte + if r.typeIe != nil { + t := *r.typeIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") } } - if r.vcPositionLt != nil { - t := *r.vcPositionLt + if r.typeIew != nil { + t := *r.typeIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") } } - if r.vcPositionLte != nil { - t := *r.vcPositionLte + if r.typeIsw != nil { + t := *r.typeIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") } } - if r.vcPositionN != nil { - t := *r.vcPositionN + if r.typeN != nil { + t := *r.typeN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") } } - if r.vcPriority != nil { - t := *r.vcPriority + if r.typeNic != nil { + t := *r.typeNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") } } - if r.vcPriorityEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__empty", r.vcPriorityEmpty, "") - } - if r.vcPriorityGt != nil { - t := *r.vcPriorityGt + if r.typeNie != nil { + t := *r.typeNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") } } - if r.vcPriorityGte != nil { - t := *r.vcPriorityGte + if r.typeNiew != nil { + t := *r.typeNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") } } - if r.vcPriorityLt != nil { - t := *r.vcPriorityLt + if r.typeNisw != nil { + t := *r.typeNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") } } - if r.vcPriorityLte != nil { - t := *r.vcPriorityLte + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") } } - if r.vcPriorityN != nil { - t := *r.vcPriorityN + if r.virtualChassisN != nil { + t := *r.virtualChassisN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") } } if r.virtualChassisId != nil { @@ -30964,10 +43939,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") } } if r.virtualChassisIdN != nil { @@ -30975,15 +43950,12 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") } } - if r.virtualChassisMember != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member", r.virtualChassisMember, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -31052,56 +44024,55 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDevicesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableDeviceWithConfigContextRequest *PatchedWritableDeviceWithConfigContextRequest +type ApiDcimFrontPortsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableFrontPortRequest *PatchedWritableFrontPortRequest } -func (r ApiDcimDevicesPartialUpdateRequest) PatchedWritableDeviceWithConfigContextRequest(patchedWritableDeviceWithConfigContextRequest PatchedWritableDeviceWithConfigContextRequest) ApiDcimDevicesPartialUpdateRequest { - r.patchedWritableDeviceWithConfigContextRequest = &patchedWritableDeviceWithConfigContextRequest +func (r ApiDcimFrontPortsPartialUpdateRequest) PatchedWritableFrontPortRequest(patchedWritableFrontPortRequest PatchedWritableFrontPortRequest) ApiDcimFrontPortsPartialUpdateRequest { + r.patchedWritableFrontPortRequest = &patchedWritableFrontPortRequest return r } -func (r ApiDcimDevicesPartialUpdateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { - return r.ApiService.DcimDevicesPartialUpdateExecute(r) +func (r ApiDcimFrontPortsPartialUpdateRequest) Execute() (*FrontPort, *http.Response, error) { + return r.ApiService.DcimFrontPortsPartialUpdateExecute(r) } /* -DcimDevicesPartialUpdate Method for DcimDevicesPartialUpdate +DcimFrontPortsPartialUpdate Method for DcimFrontPortsPartialUpdate -Patch a device object. +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 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 front port. + @return ApiDcimFrontPortsPartialUpdateRequest */ -func (a *DcimAPIService) DcimDevicesPartialUpdate(ctx context.Context, id int32) ApiDcimDevicesPartialUpdateRequest { - return ApiDcimDevicesPartialUpdateRequest{ +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 DeviceWithConfigContext -func (a *DcimAPIService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartialUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsPartialUpdateRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/devices/{id}/" + localVarPath := localBasePath + "/api/dcim/front-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -31126,7 +44097,7 @@ func (a *DcimAPIService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartial localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableDeviceWithConfigContextRequest + localVarPostBody = r.patchedWritableFrontPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -31178,76 +44149,57 @@ func (a *DcimAPIService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartial return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDevicesRenderConfigCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest - format *DcimDevicesRenderConfigCreateFormatParameter -} - -func (r ApiDcimDevicesRenderConfigCreateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesRenderConfigCreateRequest { - r.writableDeviceWithConfigContextRequest = &writableDeviceWithConfigContextRequest - return r -} - -func (r ApiDcimDevicesRenderConfigCreateRequest) Format(format DcimDevicesRenderConfigCreateFormatParameter) ApiDcimDevicesRenderConfigCreateRequest { - r.format = &format - return r +type ApiDcimFrontPortsPathsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDevicesRenderConfigCreateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { - return r.ApiService.DcimDevicesRenderConfigCreateExecute(r) +func (r ApiDcimFrontPortsPathsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) { + return r.ApiService.DcimFrontPortsPathsRetrieveExecute(r) } /* -DcimDevicesRenderConfigCreate Method for DcimDevicesRenderConfigCreate +DcimFrontPortsPathsRetrieve Method for DcimFrontPortsPathsRetrieve -Resolve and render the preferred ConfigTemplate for this Device. +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 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 front port. + @return ApiDcimFrontPortsPathsRetrieveRequest */ -func (a *DcimAPIService) DcimDevicesRenderConfigCreate(ctx context.Context, id int32) ApiDcimDevicesRenderConfigCreateRequest { - return ApiDcimDevicesRenderConfigCreateRequest{ +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 DeviceWithConfigContext -func (a *DcimAPIService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRenderConfigCreateRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsPathsRetrieveRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRenderConfigCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPathsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/devices/{id}/render-config/" + localVarPath := localBasePath + "/api/dcim/front-ports/{id}/paths/" 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.writableDeviceWithConfigContextRequest == nil { - return localVarReturnValue, nil, reportError("writableDeviceWithConfigContextRequest 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"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -31256,15 +44208,13 @@ func (a *DcimAPIService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRe } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.writableDeviceWithConfigContextRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -31316,50 +44266,49 @@ func (a *DcimAPIService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDevicesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimFrontPortsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimDevicesRetrieveRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { - return r.ApiService.DcimDevicesRetrieveExecute(r) +func (r ApiDcimFrontPortsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) { + return r.ApiService.DcimFrontPortsRetrieveExecute(r) } /* -DcimDevicesRetrieve Method for DcimDevicesRetrieve +DcimFrontPortsRetrieve Method for DcimFrontPortsRetrieve -Get a device object. +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 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 front port. + @return ApiDcimFrontPortsRetrieveRequest */ -func (a *DcimAPIService) DcimDevicesRetrieve(ctx context.Context, id int32) ApiDcimDevicesRetrieveRequest { - return ApiDcimDevicesRetrieveRequest{ +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 DeviceWithConfigContext -func (a *DcimAPIService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrieveRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/devices/{id}/" + localVarPath := localBasePath + "/api/dcim/front-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -31434,63 +44383,62 @@ func (a *DcimAPIService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimDevicesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest +type ApiDcimFrontPortsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableFrontPortRequest *WritableFrontPortRequest } -func (r ApiDcimDevicesUpdateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesUpdateRequest { - r.writableDeviceWithConfigContextRequest = &writableDeviceWithConfigContextRequest +func (r ApiDcimFrontPortsUpdateRequest) WritableFrontPortRequest(writableFrontPortRequest WritableFrontPortRequest) ApiDcimFrontPortsUpdateRequest { + r.writableFrontPortRequest = &writableFrontPortRequest return r } -func (r ApiDcimDevicesUpdateRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { - return r.ApiService.DcimDevicesUpdateExecute(r) +func (r ApiDcimFrontPortsUpdateRequest) Execute() (*FrontPort, *http.Response, error) { + return r.ApiService.DcimFrontPortsUpdateExecute(r) } /* -DcimDevicesUpdate Method for DcimDevicesUpdate +DcimFrontPortsUpdate Method for DcimFrontPortsUpdate -Put a device object. +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 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 front port. + @return ApiDcimFrontPortsUpdateRequest */ -func (a *DcimAPIService) DcimDevicesUpdate(ctx context.Context, id int32) ApiDcimDevicesUpdateRequest { - return ApiDcimDevicesUpdateRequest{ +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 DeviceWithConfigContext -func (a *DcimAPIService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/devices/{id}/" + localVarPath := localBasePath + "/api/dcim/front-ports/{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.writableDeviceWithConfigContextRequest == nil { - return localVarReturnValue, nil, reportError("writableDeviceWithConfigContextRequest is required and must be specified") + if r.writableFrontPortRequest == nil { + return localVarReturnValue, nil, reportError("writableFrontPortRequest is required and must be specified") } // to determine the Content-Type header @@ -31511,7 +44459,7 @@ func (a *DcimAPIService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableDeviceWithConfigContextRequest + localVarPostBody = r.writableFrontPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -31563,56 +44511,56 @@ func (a *DcimAPIService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - frontPortTemplateRequest *[]FrontPortTemplateRequest +type ApiDcimInterfaceTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + interfaceTemplateRequest *[]InterfaceTemplateRequest } -func (r ApiDcimFrontPortTemplatesBulkDestroyRequest) FrontPortTemplateRequest(frontPortTemplateRequest []FrontPortTemplateRequest) ApiDcimFrontPortTemplatesBulkDestroyRequest { - r.frontPortTemplateRequest = &frontPortTemplateRequest +func (r ApiDcimInterfaceTemplatesBulkDestroyRequest) InterfaceTemplateRequest(interfaceTemplateRequest []InterfaceTemplateRequest) ApiDcimInterfaceTemplatesBulkDestroyRequest { + r.interfaceTemplateRequest = &interfaceTemplateRequest return r } -func (r ApiDcimFrontPortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesBulkDestroyExecute(r) +func (r ApiDcimInterfaceTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesBulkDestroyExecute(r) } /* -DcimFrontPortTemplatesBulkDestroy Method for DcimFrontPortTemplatesBulkDestroy +DcimInterfaceTemplatesBulkDestroy Method for DcimInterfaceTemplatesBulkDestroy -Delete a list of front port template objects. +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 ApiDcimFrontPortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesBulkDestroyRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroy(ctx context.Context) ApiDcimFrontPortTemplatesBulkDestroyRequest { - return ApiDcimFrontPortTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroy(ctx context.Context) ApiDcimInterfaceTemplatesBulkDestroyRequest { + return ApiDcimInterfaceTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFrontPortTemplatesBulkDestroyRequest) (*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.DcimFrontPortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-port-templates/" + localVarPath := localBasePath + "/api/dcim/interface-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.frontPortTemplateRequest == nil { - return nil, reportError("frontPortTemplateRequest is required and must be specified") + if r.interfaceTemplateRequest == nil { + return nil, reportError("interfaceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -31633,7 +44581,7 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFront localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.frontPortTemplateRequest + localVarPostBody = r.interfaceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -31676,59 +44624,58 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFront return localVarHTTPResponse, nil } -type ApiDcimFrontPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - frontPortTemplateRequest *[]FrontPortTemplateRequest +type ApiDcimInterfaceTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + interfaceTemplateRequest *[]InterfaceTemplateRequest } -func (r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) FrontPortTemplateRequest(frontPortTemplateRequest []FrontPortTemplateRequest) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest { - r.frontPortTemplateRequest = &frontPortTemplateRequest +func (r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) InterfaceTemplateRequest(interfaceTemplateRequest []InterfaceTemplateRequest) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest { + r.interfaceTemplateRequest = &interfaceTemplateRequest return r } -func (r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) Execute() ([]FrontPortTemplate, *http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) Execute() ([]InterfaceTemplate, *http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesBulkPartialUpdateExecute(r) } /* -DcimFrontPortTemplatesBulkPartialUpdate Method for DcimFrontPortTemplatesBulkPartialUpdate +DcimInterfaceTemplatesBulkPartialUpdate Method for DcimInterfaceTemplatesBulkPartialUpdate -Patch a list of front port template objects. +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 ApiDcimFrontPortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest { - return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest { + return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FrontPortTemplate -func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { +// @return []InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-port-templates/" + localVarPath := localBasePath + "/api/dcim/interface-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.frontPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("frontPortTemplateRequest is required and must be specified") + if r.interfaceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("interfaceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -31749,7 +44696,7 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.frontPortTemplateRequest + localVarPostBody = r.interfaceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -31801,59 +44748,58 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDci return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - frontPortTemplateRequest *[]FrontPortTemplateRequest +type ApiDcimInterfaceTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + interfaceTemplateRequest *[]InterfaceTemplateRequest } -func (r ApiDcimFrontPortTemplatesBulkUpdateRequest) FrontPortTemplateRequest(frontPortTemplateRequest []FrontPortTemplateRequest) ApiDcimFrontPortTemplatesBulkUpdateRequest { - r.frontPortTemplateRequest = &frontPortTemplateRequest +func (r ApiDcimInterfaceTemplatesBulkUpdateRequest) InterfaceTemplateRequest(interfaceTemplateRequest []InterfaceTemplateRequest) ApiDcimInterfaceTemplatesBulkUpdateRequest { + r.interfaceTemplateRequest = &interfaceTemplateRequest return r } -func (r ApiDcimFrontPortTemplatesBulkUpdateRequest) Execute() ([]FrontPortTemplate, *http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesBulkUpdateExecute(r) +func (r ApiDcimInterfaceTemplatesBulkUpdateRequest) Execute() ([]InterfaceTemplate, *http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesBulkUpdateExecute(r) } /* -DcimFrontPortTemplatesBulkUpdate Method for DcimFrontPortTemplatesBulkUpdate +DcimInterfaceTemplatesBulkUpdate Method for DcimInterfaceTemplatesBulkUpdate -Put a list of front port template objects. +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 ApiDcimFrontPortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesBulkUpdateRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkUpdateRequest { - return ApiDcimFrontPortTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkUpdateRequest { + return ApiDcimInterfaceTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FrontPortTemplate -func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontPortTemplatesBulkUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { +// @return []InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterfaceTemplatesBulkUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-port-templates/" + localVarPath := localBasePath + "/api/dcim/interface-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.frontPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("frontPortTemplateRequest is required and must be specified") + if r.interfaceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("interfaceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -31874,7 +44820,7 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.frontPortTemplateRequest + localVarPostBody = r.interfaceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -31926,59 +44872,58 @@ func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest +type ApiDcimInterfaceTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest } -func (r ApiDcimFrontPortTemplatesCreateRequest) WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest WritableFrontPortTemplateRequest) ApiDcimFrontPortTemplatesCreateRequest { - r.writableFrontPortTemplateRequest = &writableFrontPortTemplateRequest +func (r ApiDcimInterfaceTemplatesCreateRequest) WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest WritableInterfaceTemplateRequest) ApiDcimInterfaceTemplatesCreateRequest { + r.writableInterfaceTemplateRequest = &writableInterfaceTemplateRequest return r } -func (r ApiDcimFrontPortTemplatesCreateRequest) Execute() (*FrontPortTemplate, *http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesCreateExecute(r) +func (r ApiDcimInterfaceTemplatesCreateRequest) Execute() (*InterfaceTemplate, *http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesCreateExecute(r) } /* -DcimFrontPortTemplatesCreate Method for DcimFrontPortTemplatesCreate +DcimInterfaceTemplatesCreate Method for DcimInterfaceTemplatesCreate -Post a list of front port template objects. +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 ApiDcimFrontPortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesCreateRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesCreate(ctx context.Context) ApiDcimFrontPortTemplatesCreateRequest { - return ApiDcimFrontPortTemplatesCreateRequest{ +func (a *DcimAPIService) DcimInterfaceTemplatesCreate(ctx context.Context) ApiDcimInterfaceTemplatesCreateRequest { + return ApiDcimInterfaceTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return FrontPortTemplate -func (a *DcimAPIService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortTemplatesCreateRequest) (*FrontPortTemplate, *http.Response, error) { +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceTemplatesCreateRequest) (*InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-port-templates/" + localVarPath := localBasePath + "/api/dcim/interface-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableFrontPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableFrontPortTemplateRequest is required and must be specified") + if r.writableInterfaceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableInterfaceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -31999,7 +44944,7 @@ func (a *DcimAPIService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableFrontPortTemplateRequest + localVarPostBody = r.writableInterfaceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -32051,47 +44996,47 @@ func (a *DcimAPIService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimInterfaceTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimFrontPortTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesDestroyExecute(r) +func (r ApiDcimInterfaceTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesDestroyExecute(r) } /* -DcimFrontPortTemplatesDestroy Method for DcimFrontPortTemplatesDestroy +DcimInterfaceTemplatesDestroy Method for DcimInterfaceTemplatesDestroy -Delete a front port template object. +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 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 interface template. + @return ApiDcimInterfaceTemplatesDestroyRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimFrontPortTemplatesDestroyRequest { - return ApiDcimFrontPortTemplatesDestroyRequest{ +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) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPortTemplatesDestroyRequest) (*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.DcimFrontPortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/interface-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -32157,1509 +45102,2575 @@ func (a *DcimAPIService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPort return localVarHTTPResponse, nil } -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 - 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 - deviceTypeId *[]*int32 - deviceTypeIdN *[]*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 - modifiedByRequest *string - moduleTypeId *[]*int32 - moduleTypeIdN *[]*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 - rearPortId *[]int32 - rearPortIdN *[]int32 - rearPortPosition *[]int32 - rearPortPositionEmpty *bool - rearPortPositionGt *[]int32 - rearPortPositionGte *[]int32 - rearPortPositionLt *[]int32 - rearPortPositionLte *[]int32 - rearPortPositionN *[]int32 - type_ *[]string - typeN *[]string - updatedByRequest *string +type ApiDcimInterfaceTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + deviceTypeId *[]*int32 + deviceTypeIdN *[]*int32 + enabled *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 + 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 + poeModeEmpty *bool + poeModeIc *[]*string + poeModeIe *[]*string + poeModeIew *[]*string + poeModeIsw *[]*string + poeModeN *[]*string + poeModeNic *[]*string + poeModeNie *[]*string + poeModeNiew *[]*string + poeModeNisw *[]*string + poeType *[]*string + poeTypeEmpty *bool + poeTypeIc *[]*string + poeTypeIe *[]*string + poeTypeIew *[]*string + poeTypeIsw *[]*string + poeTypeN *[]*string + poeTypeNic *[]*string + poeTypeNie *[]*string + poeTypeNiew *[]*string + poeTypeNisw *[]*string + q *string + rfRole *[]*string + rfRoleEmpty *bool + rfRoleIc *[]*string + rfRoleIe *[]*string + rfRoleIew *[]*string + rfRoleIsw *[]*string + rfRoleN *[]*string + rfRoleNic *[]*string + rfRoleNie *[]*string + rfRoleNiew *[]*string + rfRoleNisw *[]*string + type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + updatedByRequest *string } -func (r ApiDcimFrontPortTemplatesListRequest) Color(color []string) ApiDcimFrontPortTemplatesListRequest { - r.color = &color +func (r ApiDcimInterfaceTemplatesListRequest) BridgeId(bridgeId []int32) ApiDcimInterfaceTemplatesListRequest { + r.bridgeId = &bridgeId return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorEmpty(colorEmpty bool) ApiDcimFrontPortTemplatesListRequest { - r.colorEmpty = &colorEmpty +func (r ApiDcimInterfaceTemplatesListRequest) BridgeIdN(bridgeIdN []int32) ApiDcimInterfaceTemplatesListRequest { + r.bridgeIdN = &bridgeIdN return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorIc(colorIc []string) ApiDcimFrontPortTemplatesListRequest { - r.colorIc = &colorIc +func (r ApiDcimInterfaceTemplatesListRequest) Created(created []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.created = &created return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorIe(colorIe []string) ApiDcimFrontPortTemplatesListRequest { - r.colorIe = &colorIe +func (r ApiDcimInterfaceTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorIew(colorIew []string) ApiDcimFrontPortTemplatesListRequest { - r.colorIew = &colorIew +func (r ApiDcimInterfaceTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.createdGt = &createdGt return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorIsw(colorIsw []string) ApiDcimFrontPortTemplatesListRequest { - r.colorIsw = &colorIsw +func (r ApiDcimInterfaceTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.createdGte = &createdGte return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorN(colorN []string) ApiDcimFrontPortTemplatesListRequest { - r.colorN = &colorN +func (r ApiDcimInterfaceTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.createdLt = &createdLt return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorNic(colorNic []string) ApiDcimFrontPortTemplatesListRequest { - r.colorNic = &colorNic +func (r ApiDcimInterfaceTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.createdLte = &createdLte return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorNie(colorNie []string) ApiDcimFrontPortTemplatesListRequest { - r.colorNie = &colorNie +func (r ApiDcimInterfaceTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.createdN = &createdN return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorNiew(colorNiew []string) ApiDcimFrontPortTemplatesListRequest { - r.colorNiew = &colorNiew +func (r ApiDcimInterfaceTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInterfaceTemplatesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiDcimFrontPortTemplatesListRequest) ColorNisw(colorNisw []string) ApiDcimFrontPortTemplatesListRequest { - r.colorNisw = &colorNisw +func (r ApiDcimInterfaceTemplatesListRequest) Description(description []string) ApiDcimInterfaceTemplatesListRequest { + r.description = &description return r } -func (r ApiDcimFrontPortTemplatesListRequest) Created(created []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.created = &created +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.createdEmpty = &createdEmpty +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiDcimFrontPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.createdGt = &createdGt +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiDcimFrontPortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.createdGte = &createdGte +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiDcimFrontPortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.createdLt = &createdLt +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimFrontPortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.createdLte = &createdLte +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiDcimFrontPortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.createdN = &createdN +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiDcimFrontPortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimFrontPortTemplatesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiDcimFrontPortTemplatesListRequest) Description(description []string) ApiDcimFrontPortTemplatesListRequest { - r.description = &description +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimFrontPortTemplatesListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInterfaceTemplatesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionIc = &descriptionIc +// Device type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimInterfaceTemplatesListRequest { + r.deviceTypeId = &deviceTypeId return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionIe = &descriptionIe +// Device type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimInterfaceTemplatesListRequest) Enabled(enabled bool) ApiDcimInterfaceTemplatesListRequest { + r.enabled = &enabled return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimInterfaceTemplatesListRequest) Id(id []int32) ApiDcimInterfaceTemplatesListRequest { + r.id = &id return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimInterfaceTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimInterfaceTemplatesListRequest) IdGt(idGt []int32) ApiDcimInterfaceTemplatesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) IdGte(idGte []int32) ApiDcimInterfaceTemplatesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) IdLt(idLt []int32) ApiDcimInterfaceTemplatesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) IdLte(idLte []int32) ApiDcimInterfaceTemplatesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) IdN(idN []int32) ApiDcimInterfaceTemplatesListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) Label(label []string) ApiDcimInterfaceTemplatesListRequest { + r.label = &label + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.labelEmpty = &labelEmpty + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelIc(labelIc []string) ApiDcimInterfaceTemplatesListRequest { + r.labelIc = &labelIc + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelIe(labelIe []string) ApiDcimInterfaceTemplatesListRequest { + r.labelIe = &labelIe + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelIew(labelIew []string) ApiDcimInterfaceTemplatesListRequest { + r.labelIew = &labelIew + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimInterfaceTemplatesListRequest { + r.labelIsw = &labelIsw + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelN(labelN []string) ApiDcimInterfaceTemplatesListRequest { + r.labelN = &labelN + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelNic(labelNic []string) ApiDcimInterfaceTemplatesListRequest { + r.labelNic = &labelNic + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelNie(labelNie []string) ApiDcimInterfaceTemplatesListRequest { + r.labelNie = &labelNie + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimInterfaceTemplatesListRequest { + r.labelNiew = &labelNiew + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimInterfaceTemplatesListRequest { + r.labelNisw = &labelNisw + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionNie = &descriptionNie +// Number of results to return per page. +func (r ApiDcimInterfaceTemplatesListRequest) Limit(limit int32) ApiDcimInterfaceTemplatesListRequest { + r.limit = &limit return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimInterfaceTemplatesListRequest) MgmtOnly(mgmtOnly bool) ApiDcimInterfaceTemplatesListRequest { + r.mgmtOnly = &mgmtOnly return r } -func (r ApiDcimFrontPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimFrontPortTemplatesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimInterfaceTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfaceTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.deviceTypeId = &deviceTypeId +// Module type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimInterfaceTemplatesListRequest { + r.moduleTypeId = &moduleTypeId return r } -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN +// Module type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN return r } -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeId = &devicetypeId +func (r ApiDcimInterfaceTemplatesListRequest) Name(name []string) ApiDcimInterfaceTemplatesListRequest { + r.name = &name return r } -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimInterfaceTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.nameEmpty = &nameEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) Id(id []int32) ApiDcimFrontPortTemplatesListRequest { - r.id = &id +func (r ApiDcimInterfaceTemplatesListRequest) NameIc(nameIc []string) ApiDcimInterfaceTemplatesListRequest { + r.nameIc = &nameIc return r } -func (r ApiDcimFrontPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimFrontPortTemplatesListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimInterfaceTemplatesListRequest) NameIe(nameIe []string) ApiDcimInterfaceTemplatesListRequest { + r.nameIe = &nameIe return r } -func (r ApiDcimFrontPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimFrontPortTemplatesListRequest { - r.idGt = &idGt +func (r ApiDcimInterfaceTemplatesListRequest) NameIew(nameIew []string) ApiDcimInterfaceTemplatesListRequest { + r.nameIew = &nameIew return r } -func (r ApiDcimFrontPortTemplatesListRequest) IdGte(idGte []int32) ApiDcimFrontPortTemplatesListRequest { - r.idGte = &idGte +func (r ApiDcimInterfaceTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimInterfaceTemplatesListRequest { + r.nameIsw = &nameIsw return r } -func (r ApiDcimFrontPortTemplatesListRequest) IdLt(idLt []int32) ApiDcimFrontPortTemplatesListRequest { - r.idLt = &idLt +func (r ApiDcimInterfaceTemplatesListRequest) NameN(nameN []string) ApiDcimInterfaceTemplatesListRequest { + r.nameN = &nameN return r } -func (r ApiDcimFrontPortTemplatesListRequest) IdLte(idLte []int32) ApiDcimFrontPortTemplatesListRequest { - r.idLte = &idLte +func (r ApiDcimInterfaceTemplatesListRequest) NameNic(nameNic []string) ApiDcimInterfaceTemplatesListRequest { + r.nameNic = &nameNic return r } -func (r ApiDcimFrontPortTemplatesListRequest) IdN(idN []int32) ApiDcimFrontPortTemplatesListRequest { - r.idN = &idN +func (r ApiDcimInterfaceTemplatesListRequest) NameNie(nameNie []string) ApiDcimInterfaceTemplatesListRequest { + r.nameNie = &nameNie return r } -func (r ApiDcimFrontPortTemplatesListRequest) Label(label []string) ApiDcimFrontPortTemplatesListRequest { - r.label = &label +func (r ApiDcimInterfaceTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimInterfaceTemplatesListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimFrontPortTemplatesListRequest { - r.labelEmpty = &labelEmpty +func (r ApiDcimInterfaceTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimInterfaceTemplatesListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimFrontPortTemplatesListRequest { - r.labelIc = &labelIc +// The initial index from which to return the results. +func (r ApiDcimInterfaceTemplatesListRequest) Offset(offset int32) ApiDcimInterfaceTemplatesListRequest { + r.offset = &offset return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimFrontPortTemplatesListRequest { - r.labelIe = &labelIe +// Which field to use when ordering the results. +func (r ApiDcimInterfaceTemplatesListRequest) Ordering(ordering string) ApiDcimInterfaceTemplatesListRequest { + r.ordering = &ordering return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimFrontPortTemplatesListRequest { - r.labelIew = &labelIew +func (r ApiDcimInterfaceTemplatesListRequest) PoeMode(poeMode []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeMode = &poeMode return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimFrontPortTemplatesListRequest { - r.labelIsw = &labelIsw +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeEmpty(poeModeEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.poeModeEmpty = &poeModeEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelN(labelN []string) ApiDcimFrontPortTemplatesListRequest { - r.labelN = &labelN +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIc(poeModeIc []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIc = &poeModeIc return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimFrontPortTemplatesListRequest { - r.labelNic = &labelNic +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIe(poeModeIe []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIe = &poeModeIe return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimFrontPortTemplatesListRequest { - r.labelNie = &labelNie +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIew(poeModeIew []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIew = &poeModeIew return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimFrontPortTemplatesListRequest { - r.labelNiew = &labelNiew +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIsw(poeModeIsw []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIsw = &poeModeIsw return r } -func (r ApiDcimFrontPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimFrontPortTemplatesListRequest { - r.labelNisw = &labelNisw +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeN(poeModeN []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeN = &poeModeN return r } -func (r ApiDcimFrontPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.lastUpdated = &lastUpdated +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNic(poeModeNic []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNic = &poeModeNic return r } -func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNie(poeModeNie []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNie = &poeModeNie return r } -func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNiew(poeModeNiew []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNiew = &poeModeNiew return r } -func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNisw(poeModeNisw []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNisw = &poeModeNisw return r } -func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimInterfaceTemplatesListRequest) PoeType(poeType []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeType = &poeType return r } -func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeEmpty(poeTypeEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeEmpty = &poeTypeEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimFrontPortTemplatesListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIc(poeTypeIc []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIc = &poeTypeIc return r } -// Number of results to return per page. -func (r ApiDcimFrontPortTemplatesListRequest) Limit(limit int32) ApiDcimFrontPortTemplatesListRequest { - r.limit = &limit +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIe(poeTypeIe []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIe = &poeTypeIe return r } -func (r ApiDcimFrontPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimFrontPortTemplatesListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIew(poeTypeIew []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIew = &poeTypeIew return r } -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduleTypeId = &moduleTypeId +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIsw(poeTypeIsw []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIsw = &poeTypeIsw return r } -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduleTypeIdN = &moduleTypeIdN +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeN(poeTypeN []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeN = &poeTypeN return r } -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeId = &moduletypeId +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNic(poeTypeNic []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNic = &poeTypeNic return r } -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNie(poeTypeNie []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNie = &poeTypeNie return r } -func (r ApiDcimFrontPortTemplatesListRequest) Name(name []string) ApiDcimFrontPortTemplatesListRequest { - r.name = &name +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNiew(poeTypeNiew []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNiew = &poeTypeNiew return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimFrontPortTemplatesListRequest { - r.nameEmpty = &nameEmpty +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNisw(poeTypeNisw []*string) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNisw = &poeTypeNisw return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameIc(nameIc []string) ApiDcimFrontPortTemplatesListRequest { - r.nameIc = &nameIc +// Search +func (r ApiDcimInterfaceTemplatesListRequest) Q(q string) ApiDcimInterfaceTemplatesListRequest { + r.q = &q return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameIe(nameIe []string) ApiDcimFrontPortTemplatesListRequest { - r.nameIe = &nameIe +func (r ApiDcimInterfaceTemplatesListRequest) RfRole(rfRole []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRole = &rfRole return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameIew(nameIew []string) ApiDcimFrontPortTemplatesListRequest { - r.nameIew = &nameIew +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleEmpty(rfRoleEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleEmpty = &rfRoleEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimFrontPortTemplatesListRequest { - r.nameIsw = &nameIsw +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIc(rfRoleIc []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIc = &rfRoleIc return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameN(nameN []string) ApiDcimFrontPortTemplatesListRequest { - r.nameN = &nameN +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIe(rfRoleIe []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIe = &rfRoleIe return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameNic(nameNic []string) ApiDcimFrontPortTemplatesListRequest { - r.nameNic = &nameNic +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIew(rfRoleIew []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIew = &rfRoleIew return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameNie(nameNie []string) ApiDcimFrontPortTemplatesListRequest { - r.nameNie = &nameNie +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIsw(rfRoleIsw []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIsw = &rfRoleIsw return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimFrontPortTemplatesListRequest { - r.nameNiew = &nameNiew +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleN(rfRoleN []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleN = &rfRoleN return r } -func (r ApiDcimFrontPortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimFrontPortTemplatesListRequest { - r.nameNisw = &nameNisw +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNic(rfRoleNic []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNic = &rfRoleNic return r } -// The initial index from which to return the results. -func (r ApiDcimFrontPortTemplatesListRequest) Offset(offset int32) ApiDcimFrontPortTemplatesListRequest { - r.offset = &offset +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNie(rfRoleNie []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNie = &rfRoleNie return r } -// Which field to use when ordering the results. -func (r ApiDcimFrontPortTemplatesListRequest) Ordering(ordering string) ApiDcimFrontPortTemplatesListRequest { - r.ordering = &ordering +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNiew(rfRoleNiew []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNiew = &rfRoleNiew return r } -// Search -func (r ApiDcimFrontPortTemplatesListRequest) Q(q string) ApiDcimFrontPortTemplatesListRequest { - r.q = &q +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNisw(rfRoleNisw []*string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNisw = &rfRoleNisw return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortId(rearPortId []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortId = &rearPortId +func (r ApiDcimInterfaceTemplatesListRequest) Type_(type_ []string) ApiDcimInterfaceTemplatesListRequest { + r.type_ = &type_ return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortIdN(rearPortIdN []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortIdN = &rearPortIdN +func (r ApiDcimInterfaceTemplatesListRequest) TypeEmpty(typeEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.typeEmpty = &typeEmpty return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortPosition(rearPortPosition []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortPosition = &rearPortPosition +func (r ApiDcimInterfaceTemplatesListRequest) TypeIc(typeIc []string) ApiDcimInterfaceTemplatesListRequest { + r.typeIc = &typeIc return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionEmpty(rearPortPositionEmpty bool) ApiDcimFrontPortTemplatesListRequest { - r.rearPortPositionEmpty = &rearPortPositionEmpty +func (r ApiDcimInterfaceTemplatesListRequest) TypeIe(typeIe []string) ApiDcimInterfaceTemplatesListRequest { + r.typeIe = &typeIe return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionGt(rearPortPositionGt []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortPositionGt = &rearPortPositionGt +func (r ApiDcimInterfaceTemplatesListRequest) TypeIew(typeIew []string) ApiDcimInterfaceTemplatesListRequest { + r.typeIew = &typeIew return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionGte(rearPortPositionGte []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortPositionGte = &rearPortPositionGte +func (r ApiDcimInterfaceTemplatesListRequest) TypeIsw(typeIsw []string) ApiDcimInterfaceTemplatesListRequest { + r.typeIsw = &typeIsw return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionLt(rearPortPositionLt []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortPositionLt = &rearPortPositionLt +func (r ApiDcimInterfaceTemplatesListRequest) TypeN(typeN []string) ApiDcimInterfaceTemplatesListRequest { + r.typeN = &typeN return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionLte(rearPortPositionLte []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortPositionLte = &rearPortPositionLte +func (r ApiDcimInterfaceTemplatesListRequest) TypeNic(typeNic []string) ApiDcimInterfaceTemplatesListRequest { + r.typeNic = &typeNic return r } -func (r ApiDcimFrontPortTemplatesListRequest) RearPortPositionN(rearPortPositionN []int32) ApiDcimFrontPortTemplatesListRequest { - r.rearPortPositionN = &rearPortPositionN +func (r ApiDcimInterfaceTemplatesListRequest) TypeNie(typeNie []string) ApiDcimInterfaceTemplatesListRequest { + r.typeNie = &typeNie return r } -func (r ApiDcimFrontPortTemplatesListRequest) Type_(type_ []string) ApiDcimFrontPortTemplatesListRequest { - r.type_ = &type_ +func (r ApiDcimInterfaceTemplatesListRequest) TypeNiew(typeNiew []string) ApiDcimInterfaceTemplatesListRequest { + r.typeNiew = &typeNiew return r } -func (r ApiDcimFrontPortTemplatesListRequest) TypeN(typeN []string) ApiDcimFrontPortTemplatesListRequest { - r.typeN = &typeN +func (r ApiDcimInterfaceTemplatesListRequest) TypeNisw(typeNisw []string) ApiDcimInterfaceTemplatesListRequest { + r.typeNisw = &typeNisw return r } -func (r ApiDcimFrontPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimFrontPortTemplatesListRequest { +func (r ApiDcimInterfaceTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInterfaceTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimFrontPortTemplatesListRequest) Execute() (*PaginatedFrontPortTemplateList, *http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesListExecute(r) +func (r ApiDcimInterfaceTemplatesListRequest) Execute() (*PaginatedInterfaceTemplateList, *http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesListExecute(r) } /* -DcimFrontPortTemplatesList Method for DcimFrontPortTemplatesList +DcimInterfaceTemplatesList Method for DcimInterfaceTemplatesList -Get a list of front port template objects. +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 ApiDcimFrontPortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesListRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesList(ctx context.Context) ApiDcimFrontPortTemplatesListRequest { - return ApiDcimFrontPortTemplatesListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInterfaceTemplateList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/interface-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.bridgeId != nil { + t := *r.bridgeId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "form", "multi") + } + } + if r.bridgeIdN != nil { + t := *r.bridgeIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") + } + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.label != nil { + t := *r.label + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") + } + } + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") + } + } + if r.labelIe != nil { + t := *r.labelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") + } + } + if r.labelIew != nil { + t := *r.labelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") + } + } + if r.labelIsw != nil { + t := *r.labelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedFrontPortTemplateList -func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTemplatesListRequest) (*PaginatedFrontPortTemplateList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFrontPortTemplateList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.labelN != nil { + t := *r.labelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/front-port-templates/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.color != nil { - t := *r.color + if r.labelNic != nil { + t := *r.labelNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + if r.labelNie != nil { + t := *r.labelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") + } } - if r.colorIc != nil { - t := *r.colorIc + if r.labelNiew != nil { + t := *r.labelNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.colorIe != nil { - t := *r.colorIe + if r.labelNisw != nil { + t := *r.labelNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } - if r.colorIew != nil { - t := *r.colorIew + 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, "color__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.colorIsw != nil { - t := *r.colorIsw + 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, "color__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.colorN != nil { - t := *r.colorN + 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, "color__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.colorNic != nil { - t := *r.colorNic + 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, "color__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.colorNie != nil { - t := *r.colorNie + 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, "color__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.colorNiew != nil { - t := *r.colorNiew + 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, "color__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.colorNisw != nil { - t := *r.colorNisw + 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, "color__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.created != nil { - t := *r.created + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.mgmtOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_only", r.mgmtOnly, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") + } } - if r.description != nil { - t := *r.description + 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") + } } - if r.descriptionIc != nil { - t := *r.descriptionIc + 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, "description__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.poeMode != nil { + t := *r.poeMode 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.poeModeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__empty", r.poeModeEmpty, "form", "") + } + if r.poeModeIc != nil { + t := *r.poeModeIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.poeModeIe != nil { + t := *r.poeModeIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.poeModeIew != nil { + t := *r.poeModeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.poeModeIsw != nil { + t := *r.poeModeIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.poeModeN != nil { + t := *r.poeModeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.poeModeNic != nil { + t := *r.poeModeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.poeModeNie != nil { + t := *r.poeModeNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + if r.poeModeNiew != nil { + t := *r.poeModeNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + if r.poeModeNisw != nil { + t := *r.poeModeNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + if r.poeType != nil { + t := *r.poeType 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "form", "multi") } } - if r.id != nil { - t := *r.id + if r.poeTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__empty", r.poeTypeEmpty, "form", "") + } + if r.poeTypeIc != nil { + t := *r.poeTypeIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.poeTypeIe != nil { + t := *r.poeTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", t, "form", "multi") + } } - if r.idGt != nil { - t := *r.idGt + if r.poeTypeIew != nil { + t := *r.poeTypeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.poeTypeIsw != nil { + t := *r.poeTypeIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.poeTypeN != nil { + t := *r.poeTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.poeTypeNic != nil { + t := *r.poeTypeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.poeTypeNie != nil { + t := *r.poeTypeNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", t, "form", "multi") } } - if r.label != nil { - t := *r.label + if r.poeTypeNiew != nil { + t := *r.poeTypeNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", t, "form", "multi") } } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + if r.poeTypeNisw != nil { + t := *r.poeTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", t, "form", "multi") + } } - if r.labelIc != nil { - t := *r.labelIc + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "label__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "form", "multi") } } - if r.labelIe != nil { - t := *r.labelIe + if r.rfRoleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__empty", r.rfRoleEmpty, "form", "") + } + if r.rfRoleIc != nil { + t := *r.rfRoleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", t, "form", "multi") + } + } + if r.rfRoleIe != nil { + t := *r.rfRoleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", t, "form", "multi") + } + } + if r.rfRoleIew != nil { + t := *r.rfRoleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", t, "form", "multi") + } + } + if r.rfRoleIsw != nil { + t := *r.rfRoleIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "form", "multi") + } + } + if r.rfRoleNic != nil { + t := *r.rfRoleNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", t, "form", "multi") + } + } + if r.rfRoleNie != nil { + t := *r.rfRoleNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", t, "form", "multi") + } + } + if r.rfRoleNiew != nil { + t := *r.rfRoleNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", t, "form", "multi") + } + } + if r.rfRoleNisw != nil { + t := *r.rfRoleNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") + } + } + if r.typeN != nil { + t := *r.typeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiDcimInterfaceTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableInterfaceTemplateRequest *PatchedWritableInterfaceTemplateRequest +} + +func (r ApiDcimInterfaceTemplatesPartialUpdateRequest) PatchedWritableInterfaceTemplateRequest(patchedWritableInterfaceTemplateRequest PatchedWritableInterfaceTemplateRequest) ApiDcimInterfaceTemplatesPartialUpdateRequest { + r.patchedWritableInterfaceTemplateRequest = &patchedWritableInterfaceTemplateRequest + return r +} + +func (r ApiDcimInterfaceTemplatesPartialUpdateRequest) Execute() (*InterfaceTemplate, *http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesPartialUpdateExecute(r) +} + +/* +DcimInterfaceTemplatesPartialUpdate Method for DcimInterfaceTemplatesPartialUpdate + +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 +*/ +func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesPartialUpdateRequest { + return ApiDcimInterfaceTemplatesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInterfaceTemplatesPartialUpdateRequest) (*InterfaceTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/interface-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{"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.patchedWritableInterfaceTemplateRequest + 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 } - if r.labelIew != nil { - t := *r.labelIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", 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.labelIsw != nil { - t := *r.labelIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInterfaceTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimInterfaceTemplatesRetrieveRequest) Execute() (*InterfaceTemplate, *http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInterfaceTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInterfaceTemplatesRetrieveRequest { + return ApiDcimInterfaceTemplatesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.labelN != nil { - t := *r.labelN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") - } +} + +// Execute executes the request +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfaceTemplatesRetrieveRequest) (*InterfaceTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.labelNic != nil { - t := *r.labelNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/interface-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.labelNie != nil { - t := *r.labelNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__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.labelNiew != nil { - t := *r.labelNiew - 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).Interface(), "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, "label__niew", t, "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__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.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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInterfaceTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest +} + +func (r ApiDcimInterfaceTemplatesUpdateRequest) WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest WritableInterfaceTemplateRequest) ApiDcimInterfaceTemplatesUpdateRequest { + r.writableInterfaceTemplateRequest = &writableInterfaceTemplateRequest + return r +} + +func (r ApiDcimInterfaceTemplatesUpdateRequest) Execute() (*InterfaceTemplate, *http.Response, error) { + return r.ApiService.DcimInterfaceTemplatesUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInterfaceTemplatesUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesUpdateRequest { + return ApiDcimInterfaceTemplatesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceTemplatesUpdateRequest) (*InterfaceTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/interface-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.writableInterfaceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableInterfaceTemplateRequest is required and must be specified") } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + + // 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.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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, "module_type_id", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.writableInterfaceTemplateRequest + 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, "module_type_id", t, "multi") } } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_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.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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInterfacesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + interfaceRequest *[]InterfaceRequest +} + +func (r ApiDcimInterfacesBulkDestroyRequest) InterfaceRequest(interfaceRequest []InterfaceRequest) ApiDcimInterfacesBulkDestroyRequest { + r.interfaceRequest = &interfaceRequest + return r +} + +func (r ApiDcimInterfacesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInterfacesBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInterfacesBulkDestroy(ctx context.Context) ApiDcimInterfacesBulkDestroyRequest { + return ApiDcimInterfacesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/interfaces/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.interfaceRequest == nil { + return nil, reportError("interfaceRequest is required and must be specified") } - 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") - } + + // 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.interfaceRequest + 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__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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - 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") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - 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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + + return localVarHTTPResponse, nil +} + +type ApiDcimInterfacesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + interfaceRequest *[]InterfaceRequest +} + +func (r ApiDcimInterfacesBulkPartialUpdateRequest) InterfaceRequest(interfaceRequest []InterfaceRequest) ApiDcimInterfacesBulkPartialUpdateRequest { + r.interfaceRequest = &interfaceRequest + return r +} + +func (r ApiDcimInterfacesBulkPartialUpdateRequest) Execute() ([]Interface, *http.Response, error) { + return r.ApiService.DcimInterfacesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInterfacesBulkPartialUpdate(ctx context.Context) ApiDcimInterfacesBulkPartialUpdateRequest { + return ApiDcimInterfacesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") +} + +// Execute executes the request +// @return []Interface +func (a *DcimAPIService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfacesBulkPartialUpdateRequest) ([]Interface, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Interface + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + + localVarPath := localBasePath + "/api/dcim/interfaces/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.interfaceRequest == nil { + return localVarReturnValue, nil, reportError("interfaceRequest is required and must be specified") } - if r.rearPortId != nil { - t := *r.rearPortId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_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.rearPortIdN != nil { - t := *r.rearPortIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_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.rearPortPosition != nil { - t := *r.rearPortPosition - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.interfaceRequest + 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, "rear_port_position", t, "multi") } } - if r.rearPortPositionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__empty", r.rearPortPositionEmpty, "") - } - if r.rearPortPositionGt != nil { - t := *r.rearPortPositionGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__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.rearPortPositionGte != nil { - t := *r.rearPortPositionGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.rearPortPositionLt != nil { - t := *r.rearPortPositionLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__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.rearPortPositionLte != nil { - t := *r.rearPortPositionLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lte", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.rearPortPositionN != nil { - t := *r.rearPortPositionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__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.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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInterfacesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + interfaceRequest *[]InterfaceRequest +} + +func (r ApiDcimInterfacesBulkUpdateRequest) InterfaceRequest(interfaceRequest []InterfaceRequest) ApiDcimInterfacesBulkUpdateRequest { + r.interfaceRequest = &interfaceRequest + return r +} + +func (r ApiDcimInterfacesBulkUpdateRequest) Execute() ([]Interface, *http.Response, error) { + return r.ApiService.DcimInterfacesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInterfacesBulkUpdate(ctx context.Context) ApiDcimInterfacesBulkUpdateRequest { + return ApiDcimInterfacesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.typeN != nil { - t := *r.typeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") - } +} + +// Execute executes the request +// @return []Interface +func (a *DcimAPIService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulkUpdateRequest) ([]Interface, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Interface + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + + localVarPath := localBasePath + "/api/dcim/interfaces/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.interfaceRequest == nil { + return localVarReturnValue, nil, reportError("interfaceRequest 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) @@ -33675,6 +47686,8 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.interfaceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -33726,61 +47739,59 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableFrontPortTemplateRequest *PatchedWritableFrontPortTemplateRequest +type ApiDcimInterfacesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableInterfaceRequest *WritableInterfaceRequest } -func (r ApiDcimFrontPortTemplatesPartialUpdateRequest) PatchedWritableFrontPortTemplateRequest(patchedWritableFrontPortTemplateRequest PatchedWritableFrontPortTemplateRequest) ApiDcimFrontPortTemplatesPartialUpdateRequest { - r.patchedWritableFrontPortTemplateRequest = &patchedWritableFrontPortTemplateRequest +func (r ApiDcimInterfacesCreateRequest) WritableInterfaceRequest(writableInterfaceRequest WritableInterfaceRequest) ApiDcimInterfacesCreateRequest { + r.writableInterfaceRequest = &writableInterfaceRequest return r } -func (r ApiDcimFrontPortTemplatesPartialUpdateRequest) Execute() (*FrontPortTemplate, *http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesPartialUpdateExecute(r) +func (r ApiDcimInterfacesCreateRequest) Execute() (*Interface, *http.Response, error) { + return r.ApiService.DcimInterfacesCreateExecute(r) } /* -DcimFrontPortTemplatesPartialUpdate Method for DcimFrontPortTemplatesPartialUpdate +DcimInterfacesCreate Method for DcimInterfacesCreate -Patch a front port template object. +Post a list of interface 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 front port template. - @return ApiDcimFrontPortTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfacesCreateRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesPartialUpdateRequest { - return ApiDcimFrontPortTemplatesPartialUpdateRequest{ +func (a *DcimAPIService) DcimInterfacesCreate(ctx context.Context) ApiDcimInterfacesCreateRequest { + return ApiDcimInterfacesCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return FrontPortTemplate -func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFrontPortTemplatesPartialUpdateRequest) (*FrontPortTemplate, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-port-templates/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/dcim/interfaces/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.writableInterfaceRequest == nil { + return localVarReturnValue, nil, reportError("writableInterfaceRequest is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -33800,7 +47811,7 @@ func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFro localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableFrontPortTemplateRequest + localVarPostBody = r.writableInterfaceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -33852,50 +47863,47 @@ func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFro return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimInterfacesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimFrontPortTemplatesRetrieveRequest) Execute() (*FrontPortTemplate, *http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesRetrieveExecute(r) +func (r ApiDcimInterfacesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInterfacesDestroyExecute(r) } /* -DcimFrontPortTemplatesRetrieve Method for DcimFrontPortTemplatesRetrieve +DcimInterfacesDestroy Method for DcimInterfacesDestroy -Get a front port template object. +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 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 interface. + @return ApiDcimInterfacesDestroyRequest */ -func (a *DcimAPIService) DcimFrontPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimFrontPortTemplatesRetrieveRequest { - return ApiDcimFrontPortTemplatesRetrieveRequest{ +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 -// -// @return FrontPortTemplate -func (a *DcimAPIService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPortTemplatesRetrieveRequest) (*FrontPortTemplate, *http.Response, error) { +func (a *DcimAPIService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/interfaces/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -33912,7 +47920,7 @@ func (a *DcimAPIService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPor } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -33935,2920 +47943,4716 @@ func (a *DcimAPIService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPor } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + 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 } - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + return localVarHTTPResponse, nil +} + +type ApiDcimInterfacesListRequest struct { + ctx context.Context + ApiService DcimAPI + bridgeId *[]int32 + bridgeIdN *[]int32 + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + duplex *[]*string + duplexEmpty *bool + duplexIc *[]*string + duplexIe *[]*string + duplexIew *[]*string + duplexIsw *[]*string + duplexN *[]*string + duplexNic *[]*string + duplexNie *[]*string + duplexNiew *[]*string + duplexNisw *[]*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 + markConnected *bool + mgmtOnly *bool + mode *DcimInterfacesListModeParameter + 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 + poeModeEmpty *bool + poeModeIc *[]*string + poeModeIe *[]*string + poeModeIew *[]*string + poeModeIsw *[]*string + poeModeN *[]*string + poeModeNic *[]*string + poeModeNie *[]*string + poeModeNiew *[]*string + poeModeNisw *[]*string + poeType *[]*string + poeTypeEmpty *bool + poeTypeIc *[]*string + poeTypeIe *[]*string + poeTypeIew *[]*string + poeTypeIsw *[]*string + poeTypeN *[]*string + poeTypeNic *[]*string + poeTypeNie *[]*string + poeTypeNiew *[]*string + poeTypeNisw *[]*string + primaryMacAddress *[]string + primaryMacAddressN *[]string + primaryMacAddressId *[]int32 + primaryMacAddressIdN *[]int32 + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + rfChannel *[]*string + rfChannelEmpty *bool + rfChannelIc *[]*string + rfChannelIe *[]*string + rfChannelIew *[]*string + rfChannelIsw *[]*string + rfChannelN *[]*string + rfChannelNic *[]*string + rfChannelNie *[]*string + rfChannelNiew *[]*string + rfChannelNisw *[]*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 + rfChannelWidthLte *[]float64 + rfChannelWidthN *[]float64 + rfRole *[]*string + rfRoleEmpty *bool + rfRoleIc *[]*string + rfRoleIe *[]*string + rfRoleIew *[]*string + rfRoleIsw *[]*string + rfRoleN *[]*string + rfRoleNic *[]*string + rfRoleNie *[]*string + rfRoleNiew *[]*string + rfRoleNisw *[]*string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + 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 + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]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 + virtualCircuitId *[]int32 + virtualCircuitIdN *[]int32 + virtualCircuitTerminationId *[]int32 + virtualCircuitTerminationIdN *[]int32 + vlan *string + vlanId *string + vlanTranslationPolicy *[]string + vlanTranslationPolicyN *[]string + vlanTranslationPolicyId *[]int32 + vlanTranslationPolicyIdN *[]int32 + vrf *[]*string + vrfN *[]*string + vrfId *[]int32 + vrfIdN *[]int32 + wirelessLanId *[]int32 + wirelessLanIdN *[]int32 + wirelessLinkId *[]*int32 + wirelessLinkIdN *[]*int32 + wwn *[]string + wwnIc *[]string + wwnIe *[]string + wwnIew *[]string + wwnIsw *[]string + wwnN *[]string + wwnNic *[]string + wwnNie *[]string + wwnNiew *[]string + wwnNisw *[]string +} + +// Bridged interface (ID) +func (r ApiDcimInterfacesListRequest) BridgeId(bridgeId []int32) ApiDcimInterfacesListRequest { + r.bridgeId = &bridgeId + return r +} + +// Bridged interface (ID) +func (r ApiDcimInterfacesListRequest) BridgeIdN(bridgeIdN []int32) ApiDcimInterfacesListRequest { + r.bridgeIdN = &bridgeIdN + return r +} + +// * `A` - A * `B` - B +func (r ApiDcimInterfacesListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimInterfacesListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiDcimInterfacesListRequest) CableId(cableId []*int32) ApiDcimInterfacesListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiDcimInterfacesListRequest) CableIdN(cableIdN []*int32) ApiDcimInterfacesListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiDcimInterfacesListRequest) Cabled(cabled bool) ApiDcimInterfacesListRequest { + r.cabled = &cabled + return r +} + +func (r ApiDcimInterfacesListRequest) Connected(connected bool) ApiDcimInterfacesListRequest { + r.connected = &connected + return r +} + +func (r ApiDcimInterfacesListRequest) Created(created []time.Time) ApiDcimInterfacesListRequest { + r.created = &created + 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 +} + +func (r ApiDcimInterfacesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInterfacesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimInterfacesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInterfacesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimInterfacesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInterfacesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimInterfacesListRequest) CreatedN(createdN []time.Time) ApiDcimInterfacesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimInterfacesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInterfacesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimInterfacesListRequest) Description(description []string) ApiDcimInterfacesListRequest { + r.description = &description + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInterfacesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInterfacesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInterfacesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInterfacesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInterfacesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionN(descriptionN []string) ApiDcimInterfacesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInterfacesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInterfacesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInterfacesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimInterfacesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInterfacesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// 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 + return r +} + +// Device role (slug) +func (r ApiDcimInterfacesListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInterfacesListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInterfacesListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInterfacesListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatus(deviceStatus []string) ApiDcimInterfacesListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimInterfacesListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimInterfacesListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimInterfacesListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimInterfacesListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimInterfacesListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInterfacesListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimInterfacesListRequest { + r.deviceStatusNic = &deviceStatusNic + 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 - } +func (r ApiDcimInterfacesListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimInterfacesListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInterfacesListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimInterfacesListRequest { + r.deviceStatusNiew = &deviceStatusNiew + 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 ApiDcimInterfacesListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimInterfacesListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +// Device type (model) +func (r ApiDcimInterfacesListRequest) DeviceType(deviceType []string) ApiDcimInterfacesListRequest { + r.deviceType = &deviceType + return r } -type ApiDcimFrontPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest +// Device type (model) +func (r ApiDcimInterfacesListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimInterfacesListRequest { + r.deviceTypeN = &deviceTypeN + return r } -func (r ApiDcimFrontPortTemplatesUpdateRequest) WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest WritableFrontPortTemplateRequest) ApiDcimFrontPortTemplatesUpdateRequest { - r.writableFrontPortTemplateRequest = &writableFrontPortTemplateRequest +// Device type (ID) +func (r ApiDcimInterfacesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimInterfacesListRequest { + r.deviceTypeId = &deviceTypeId return r } -func (r ApiDcimFrontPortTemplatesUpdateRequest) Execute() (*FrontPortTemplate, *http.Response, error) { - return r.ApiService.DcimFrontPortTemplatesUpdateExecute(r) +// Device type (ID) +func (r ApiDcimInterfacesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimInterfacesListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r } -/* -DcimFrontPortTemplatesUpdate Method for DcimFrontPortTemplatesUpdate +func (r ApiDcimInterfacesListRequest) Duplex(duplex []*string) ApiDcimInterfacesListRequest { + r.duplex = &duplex + return r +} -Put a front port template object. +func (r ApiDcimInterfacesListRequest) DuplexEmpty(duplexEmpty bool) ApiDcimInterfacesListRequest { + r.duplexEmpty = &duplexEmpty + 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 front port template. - @return ApiDcimFrontPortTemplatesUpdateRequest -*/ -func (a *DcimAPIService) DcimFrontPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesUpdateRequest { - return ApiDcimFrontPortTemplatesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiDcimInterfacesListRequest) DuplexIc(duplexIc []*string) ApiDcimInterfacesListRequest { + r.duplexIc = &duplexIc + return r } -// Execute executes the request -// -// @return FrontPortTemplate -func (a *DcimAPIService) DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortTemplatesUpdateRequest) (*FrontPortTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate - ) +func (r ApiDcimInterfacesListRequest) DuplexIe(duplexIe []*string) ApiDcimInterfacesListRequest { + r.duplexIe = &duplexIe + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInterfacesListRequest) DuplexIew(duplexIew []*string) ApiDcimInterfacesListRequest { + r.duplexIew = &duplexIew + return r +} - localVarPath := localBasePath + "/api/dcim/front-port-templates/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimInterfacesListRequest) DuplexIsw(duplexIsw []*string) ApiDcimInterfacesListRequest { + r.duplexIsw = &duplexIsw + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableFrontPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableFrontPortTemplateRequest is required and must be specified") - } +func (r ApiDcimInterfacesListRequest) DuplexN(duplexN []*string) ApiDcimInterfacesListRequest { + r.duplexN = &duplexN + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiDcimInterfacesListRequest) DuplexNic(duplexNic []*string) ApiDcimInterfacesListRequest { + r.duplexNic = &duplexNic + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInterfacesListRequest) DuplexNie(duplexNie []*string) ApiDcimInterfacesListRequest { + r.duplexNie = &duplexNie + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiDcimInterfacesListRequest) DuplexNiew(duplexNiew []*string) ApiDcimInterfacesListRequest { + r.duplexNiew = &duplexNiew + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableFrontPortTemplateRequest - 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 ApiDcimInterfacesListRequest) DuplexNisw(duplexNisw []*string) ApiDcimInterfacesListRequest { + r.duplexNisw = &duplexNisw + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimInterfacesListRequest) Enabled(enabled bool) ApiDcimInterfacesListRequest { + r.enabled = &enabled + 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 - } +func (r ApiDcimInterfacesListRequest) Id(id []int32) ApiDcimInterfacesListRequest { + r.id = &id + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInterfacesListRequest) IdEmpty(idEmpty bool) ApiDcimInterfacesListRequest { + r.idEmpty = &idEmpty + 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 ApiDcimInterfacesListRequest) IdGt(idGt []int32) ApiDcimInterfacesListRequest { + r.idGt = &idGt + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimInterfacesListRequest) IdGte(idGte []int32) ApiDcimInterfacesListRequest { + r.idGte = &idGte + return r } -type ApiDcimFrontPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - frontPortRequest *[]FrontPortRequest +func (r ApiDcimInterfacesListRequest) IdLt(idLt []int32) ApiDcimInterfacesListRequest { + r.idLt = &idLt + return r } -func (r ApiDcimFrontPortsBulkDestroyRequest) FrontPortRequest(frontPortRequest []FrontPortRequest) ApiDcimFrontPortsBulkDestroyRequest { - r.frontPortRequest = &frontPortRequest +func (r ApiDcimInterfacesListRequest) IdLte(idLte []int32) ApiDcimInterfacesListRequest { + r.idLte = &idLte return r } -func (r ApiDcimFrontPortsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimFrontPortsBulkDestroyExecute(r) +func (r ApiDcimInterfacesListRequest) IdN(idN []int32) ApiDcimInterfacesListRequest { + r.idN = &idN + return r } -/* -DcimFrontPortsBulkDestroy Method for DcimFrontPortsBulkDestroy +// Kind of interface +func (r ApiDcimInterfacesListRequest) Kind(kind string) ApiDcimInterfacesListRequest { + r.kind = &kind + return r +} -Delete a list of front port objects. +// L2VPN +func (r ApiDcimInterfacesListRequest) L2vpn(l2vpn []*int64) ApiDcimInterfacesListRequest { + r.l2vpn = &l2vpn + return r +} - @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 { - return ApiDcimFrontPortsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } +// L2VPN +func (r ApiDcimInterfacesListRequest) L2vpnN(l2vpnN []*int64) ApiDcimInterfacesListRequest { + r.l2vpnN = &l2vpnN + return r } -// Execute executes the request -func (a *DcimAPIService) DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) +// L2VPN (ID) +func (r ApiDcimInterfacesListRequest) L2vpnId(l2vpnId []int32) ApiDcimInterfacesListRequest { + r.l2vpnId = &l2vpnId + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } +// L2VPN (ID) +func (r ApiDcimInterfacesListRequest) L2vpnIdN(l2vpnIdN []int32) ApiDcimInterfacesListRequest { + r.l2vpnIdN = &l2vpnIdN + return r +} - localVarPath := localBasePath + "/api/dcim/front-ports/" +func (r ApiDcimInterfacesListRequest) Label(label []string) ApiDcimInterfacesListRequest { + r.label = &label + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.frontPortRequest == nil { - return nil, reportError("frontPortRequest is required and must be specified") - } +func (r ApiDcimInterfacesListRequest) LabelEmpty(labelEmpty bool) ApiDcimInterfacesListRequest { + r.labelEmpty = &labelEmpty + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiDcimInterfacesListRequest) LabelIc(labelIc []string) ApiDcimInterfacesListRequest { + r.labelIc = &labelIc + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInterfacesListRequest) LabelIe(labelIe []string) ApiDcimInterfacesListRequest { + r.labelIe = &labelIe + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} +func (r ApiDcimInterfacesListRequest) LabelIew(labelIew []string) ApiDcimInterfacesListRequest { + r.labelIew = &labelIew + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.frontPortRequest - 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 - } +func (r ApiDcimInterfacesListRequest) LabelIsw(labelIsw []string) ApiDcimInterfacesListRequest { + r.labelIsw = &labelIsw + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } +func (r ApiDcimInterfacesListRequest) LabelN(labelN []string) ApiDcimInterfacesListRequest { + r.labelN = &labelN + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } +func (r ApiDcimInterfacesListRequest) LabelNic(labelNic []string) ApiDcimInterfacesListRequest { + r.labelNic = &labelNic + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } +func (r ApiDcimInterfacesListRequest) LabelNie(labelNie []string) ApiDcimInterfacesListRequest { + r.labelNie = &labelNie + return r +} - return localVarHTTPResponse, nil +func (r ApiDcimInterfacesListRequest) LabelNiew(labelNiew []string) ApiDcimInterfacesListRequest { + r.labelNiew = &labelNiew + return r } -type ApiDcimFrontPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - frontPortRequest *[]FrontPortRequest +func (r ApiDcimInterfacesListRequest) LabelNisw(labelNisw []string) ApiDcimInterfacesListRequest { + r.labelNisw = &labelNisw + return r } -func (r ApiDcimFrontPortsBulkPartialUpdateRequest) FrontPortRequest(frontPortRequest []FrontPortRequest) ApiDcimFrontPortsBulkPartialUpdateRequest { - r.frontPortRequest = &frontPortRequest +// LAG interface (ID) +func (r ApiDcimInterfacesListRequest) LagId(lagId []int32) ApiDcimInterfacesListRequest { + r.lagId = &lagId return r } -func (r ApiDcimFrontPortsBulkPartialUpdateRequest) Execute() ([]FrontPort, *http.Response, error) { - return r.ApiService.DcimFrontPortsBulkPartialUpdateExecute(r) +// LAG interface (ID) +func (r ApiDcimInterfacesListRequest) LagIdN(lagIdN []int32) ApiDcimInterfacesListRequest { + r.lagIdN = &lagIdN + return r } -/* -DcimFrontPortsBulkPartialUpdate Method for DcimFrontPortsBulkPartialUpdate +func (r ApiDcimInterfacesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdated = &lastUpdated + return r +} -Patch a list of front port objects. +func (r ApiDcimInterfacesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} - @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 { - return ApiDcimFrontPortsBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiDcimInterfacesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r } -// Execute executes the request -// -// @return []FrontPort -func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPortsBulkPartialUpdateRequest) ([]FrontPort, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPort - ) +func (r ApiDcimInterfacesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInterfacesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} - localVarPath := localBasePath + "/api/dcim/front-ports/" +func (r ApiDcimInterfacesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.frontPortRequest == nil { - return localVarReturnValue, nil, reportError("frontPortRequest is required and must be specified") - } +func (r ApiDcimInterfacesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +// Number of results to return per page. +func (r ApiDcimInterfacesListRequest) Limit(limit int32) ApiDcimInterfacesListRequest { + r.limit = &limit + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +// Location (slug) +func (r ApiDcimInterfacesListRequest) Location(location []string) ApiDcimInterfacesListRequest { + r.location = &location + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +// Location (slug) +func (r ApiDcimInterfacesListRequest) LocationN(locationN []string) ApiDcimInterfacesListRequest { + r.locationN = &locationN + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.frontPortRequest - 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 - } +// Location (ID) +func (r ApiDcimInterfacesListRequest) LocationId(locationId []int32) ApiDcimInterfacesListRequest { + r.locationId = &locationId + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +// Location (ID) +func (r ApiDcimInterfacesListRequest) LocationIdN(locationIdN []int32) ApiDcimInterfacesListRequest { + r.locationIdN = &locationIdN + 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 - } +func (r ApiDcimInterfacesListRequest) MacAddress(macAddress []string) ApiDcimInterfacesListRequest { + r.macAddress = &macAddress + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInterfacesListRequest) MacAddressIc(macAddressIc []string) ApiDcimInterfacesListRequest { + r.macAddressIc = &macAddressIc + 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 ApiDcimInterfacesListRequest) MacAddressIe(macAddressIe []string) ApiDcimInterfacesListRequest { + r.macAddressIe = &macAddressIe + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimInterfacesListRequest) MacAddressIew(macAddressIew []string) ApiDcimInterfacesListRequest { + r.macAddressIew = &macAddressIew + return r } -type ApiDcimFrontPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - frontPortRequest *[]FrontPortRequest +func (r ApiDcimInterfacesListRequest) MacAddressIsw(macAddressIsw []string) ApiDcimInterfacesListRequest { + r.macAddressIsw = &macAddressIsw + return r } -func (r ApiDcimFrontPortsBulkUpdateRequest) FrontPortRequest(frontPortRequest []FrontPortRequest) ApiDcimFrontPortsBulkUpdateRequest { - r.frontPortRequest = &frontPortRequest +func (r ApiDcimInterfacesListRequest) MacAddressN(macAddressN []string) ApiDcimInterfacesListRequest { + r.macAddressN = &macAddressN return r } -func (r ApiDcimFrontPortsBulkUpdateRequest) Execute() ([]FrontPort, *http.Response, error) { - return r.ApiService.DcimFrontPortsBulkUpdateExecute(r) +func (r ApiDcimInterfacesListRequest) MacAddressNic(macAddressNic []string) ApiDcimInterfacesListRequest { + r.macAddressNic = &macAddressNic + return r } -/* -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 -*/ -func (a *DcimAPIService) DcimFrontPortsBulkUpdate(ctx context.Context) ApiDcimFrontPortsBulkUpdateRequest { - return ApiDcimFrontPortsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiDcimInterfacesListRequest) MacAddressNie(macAddressNie []string) ApiDcimInterfacesListRequest { + r.macAddressNie = &macAddressNie + return r } -// Execute executes the request -// -// @return []FrontPort -func (a *DcimAPIService) DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulkUpdateRequest) ([]FrontPort, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPort - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/front-ports/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.frontPortRequest == nil { - return localVarReturnValue, nil, reportError("frontPortRequest is required and must be specified") - } +func (r ApiDcimInterfacesListRequest) MacAddressNiew(macAddressNiew []string) ApiDcimInterfacesListRequest { + r.macAddressNiew = &macAddressNiew + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiDcimInterfacesListRequest) MacAddressNisw(macAddressNisw []string) ApiDcimInterfacesListRequest { + r.macAddressNisw = &macAddressNisw + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInterfacesListRequest) MarkConnected(markConnected bool) ApiDcimInterfacesListRequest { + r.markConnected = &markConnected + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiDcimInterfacesListRequest) MgmtOnly(mgmtOnly bool) ApiDcimInterfacesListRequest { + r.mgmtOnly = &mgmtOnly + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.frontPortRequest - 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 - } +// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) +func (r ApiDcimInterfacesListRequest) Mode(mode DcimInterfacesListModeParameter) ApiDcimInterfacesListRequest { + r.mode = &mode + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfacesListRequest { + r.modifiedByRequest = &modifiedByRequest + 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 - } +// Module (ID) +func (r ApiDcimInterfacesListRequest) ModuleId(moduleId []*int32) ApiDcimInterfacesListRequest { + r.moduleId = &moduleId + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +// Module (ID) +func (r ApiDcimInterfacesListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimInterfacesListRequest { + r.moduleIdN = &moduleIdN + 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 ApiDcimInterfacesListRequest) Mtu(mtu []int32) ApiDcimInterfacesListRequest { + r.mtu = &mtu + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimInterfacesListRequest) MtuEmpty(mtuEmpty bool) ApiDcimInterfacesListRequest { + r.mtuEmpty = &mtuEmpty + return r } -type ApiDcimFrontPortsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableFrontPortRequest *WritableFrontPortRequest +func (r ApiDcimInterfacesListRequest) MtuGt(mtuGt []int32) ApiDcimInterfacesListRequest { + r.mtuGt = &mtuGt + return r } -func (r ApiDcimFrontPortsCreateRequest) WritableFrontPortRequest(writableFrontPortRequest WritableFrontPortRequest) ApiDcimFrontPortsCreateRequest { - r.writableFrontPortRequest = &writableFrontPortRequest +func (r ApiDcimInterfacesListRequest) MtuGte(mtuGte []int32) ApiDcimInterfacesListRequest { + r.mtuGte = &mtuGte return r } -func (r ApiDcimFrontPortsCreateRequest) Execute() (*FrontPort, *http.Response, error) { - return r.ApiService.DcimFrontPortsCreateExecute(r) +func (r ApiDcimInterfacesListRequest) MtuLt(mtuLt []int32) ApiDcimInterfacesListRequest { + r.mtuLt = &mtuLt + return r } -/* -DcimFrontPortsCreate Method for DcimFrontPortsCreate +func (r ApiDcimInterfacesListRequest) MtuLte(mtuLte []int32) ApiDcimInterfacesListRequest { + r.mtuLte = &mtuLte + return r +} -Post a list of front port objects. +func (r ApiDcimInterfacesListRequest) MtuN(mtuN []int32) ApiDcimInterfacesListRequest { + r.mtuN = &mtuN + return r +} - @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 { - return ApiDcimFrontPortsCreateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiDcimInterfacesListRequest) Name(name []string) ApiDcimInterfacesListRequest { + r.name = &name + return r } -// Execute executes the request -// -// @return FrontPort -func (a *DcimAPIService) DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRequest) (*FrontPort, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort - ) +func (r ApiDcimInterfacesListRequest) NameEmpty(nameEmpty bool) ApiDcimInterfacesListRequest { + r.nameEmpty = &nameEmpty + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInterfacesListRequest) NameIc(nameIc []string) ApiDcimInterfacesListRequest { + r.nameIc = &nameIc + return r +} - localVarPath := localBasePath + "/api/dcim/front-ports/" +func (r ApiDcimInterfacesListRequest) NameIe(nameIe []string) ApiDcimInterfacesListRequest { + r.nameIe = &nameIe + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableFrontPortRequest == nil { - return localVarReturnValue, nil, reportError("writableFrontPortRequest is required and must be specified") - } +func (r ApiDcimInterfacesListRequest) NameIew(nameIew []string) ApiDcimInterfacesListRequest { + r.nameIew = &nameIew + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiDcimInterfacesListRequest) NameIsw(nameIsw []string) ApiDcimInterfacesListRequest { + r.nameIsw = &nameIsw + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInterfacesListRequest) NameN(nameN []string) ApiDcimInterfacesListRequest { + r.nameN = &nameN + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiDcimInterfacesListRequest) NameNic(nameNic []string) ApiDcimInterfacesListRequest { + r.nameNic = &nameNic + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableFrontPortRequest - 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 ApiDcimInterfacesListRequest) NameNie(nameNie []string) ApiDcimInterfacesListRequest { + r.nameNie = &nameNie + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimInterfacesListRequest) NameNiew(nameNiew []string) ApiDcimInterfacesListRequest { + r.nameNiew = &nameNiew + 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 - } +func (r ApiDcimInterfacesListRequest) NameNisw(nameNisw []string) ApiDcimInterfacesListRequest { + r.nameNisw = &nameNisw + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInterfacesListRequest) Occupied(occupied bool) ApiDcimInterfacesListRequest { + r.occupied = &occupied + 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 - } +// The initial index from which to return the results. +func (r ApiDcimInterfacesListRequest) Offset(offset int32) ApiDcimInterfacesListRequest { + r.offset = &offset + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +// Which field to use when ordering the results. +func (r ApiDcimInterfacesListRequest) Ordering(ordering string) ApiDcimInterfacesListRequest { + r.ordering = &ordering + return r } -type ApiDcimFrontPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +// Parent interface (ID) +func (r ApiDcimInterfacesListRequest) ParentId(parentId []int32) ApiDcimInterfacesListRequest { + r.parentId = &parentId + return r } -func (r ApiDcimFrontPortsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimFrontPortsDestroyExecute(r) +// Parent interface (ID) +func (r ApiDcimInterfacesListRequest) ParentIdN(parentIdN []int32) ApiDcimInterfacesListRequest { + r.parentIdN = &parentIdN + return r } -/* -DcimFrontPortsDestroy Method for DcimFrontPortsDestroy +func (r ApiDcimInterfacesListRequest) PoeMode(poeMode []*string) ApiDcimInterfacesListRequest { + r.poeMode = &poeMode + return r +} -Delete a front port object. +func (r ApiDcimInterfacesListRequest) PoeModeEmpty(poeModeEmpty bool) ApiDcimInterfacesListRequest { + r.poeModeEmpty = &poeModeEmpty + 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 front port. - @return ApiDcimFrontPortsDestroyRequest -*/ -func (a *DcimAPIService) DcimFrontPortsDestroy(ctx context.Context, id int32) ApiDcimFrontPortsDestroyRequest { - return ApiDcimFrontPortsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiDcimInterfacesListRequest) PoeModeIc(poeModeIc []*string) ApiDcimInterfacesListRequest { + r.poeModeIc = &poeModeIc + return r } -// Execute executes the request -func (a *DcimAPIService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) +func (r ApiDcimInterfacesListRequest) PoeModeIe(poeModeIe []*string) ApiDcimInterfacesListRequest { + r.poeModeIe = &poeModeIe + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInterfacesListRequest) PoeModeIew(poeModeIew []*string) ApiDcimInterfacesListRequest { + r.poeModeIew = &poeModeIew + return r +} - localVarPath := localBasePath + "/api/dcim/front-ports/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimInterfacesListRequest) PoeModeIsw(poeModeIsw []*string) ApiDcimInterfacesListRequest { + r.poeModeIsw = &poeModeIsw + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiDcimInterfacesListRequest) PoeModeN(poeModeN []*string) ApiDcimInterfacesListRequest { + r.poeModeN = &poeModeN + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiDcimInterfacesListRequest) PoeModeNic(poeModeNic []*string) ApiDcimInterfacesListRequest { + r.poeModeNic = &poeModeNic + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInterfacesListRequest) PoeModeNie(poeModeNie []*string) ApiDcimInterfacesListRequest { + r.poeModeNie = &poeModeNie + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} +func (r ApiDcimInterfacesListRequest) PoeModeNiew(poeModeNiew []*string) ApiDcimInterfacesListRequest { + r.poeModeNiew = &poeModeNiew + 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 nil, err - } +func (r ApiDcimInterfacesListRequest) PoeModeNisw(poeModeNisw []*string) ApiDcimInterfacesListRequest { + r.poeModeNisw = &poeModeNisw + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } +func (r ApiDcimInterfacesListRequest) PoeType(poeType []*string) ApiDcimInterfacesListRequest { + r.poeType = &poeType + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } +func (r ApiDcimInterfacesListRequest) PoeTypeEmpty(poeTypeEmpty bool) ApiDcimInterfacesListRequest { + r.poeTypeEmpty = &poeTypeEmpty + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } +func (r ApiDcimInterfacesListRequest) PoeTypeIc(poeTypeIc []*string) ApiDcimInterfacesListRequest { + r.poeTypeIc = &poeTypeIc + return r +} - return localVarHTTPResponse, nil +func (r ApiDcimInterfacesListRequest) PoeTypeIe(poeTypeIe []*string) ApiDcimInterfacesListRequest { + r.poeTypeIe = &poeTypeIe + return r } -type ApiDcimFrontPortsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool - 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 - rearPortId *[]int32 - rearPortIdN *[]int32 - rearPortPosition *[]int32 - rearPortPositionEmpty *bool - rearPortPositionGt *[]int32 - rearPortPositionGte *[]int32 - rearPortPositionLt *[]int32 - rearPortPositionLte *[]int32 - rearPortPositionN *[]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 +func (r ApiDcimInterfacesListRequest) PoeTypeIew(poeTypeIew []*string) ApiDcimInterfacesListRequest { + r.poeTypeIew = &poeTypeIew + return r } -// * `A` - A * `B` - B -func (r ApiDcimFrontPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimFrontPortsListRequest { - r.cableEnd = &cableEnd +func (r ApiDcimInterfacesListRequest) PoeTypeIsw(poeTypeIsw []*string) ApiDcimInterfacesListRequest { + r.poeTypeIsw = &poeTypeIsw return r } -// * `A` - A * `B` - B -func (r ApiDcimFrontPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimFrontPortsListRequest { - r.cableEndN = &cableEndN +func (r ApiDcimInterfacesListRequest) PoeTypeN(poeTypeN []*string) ApiDcimInterfacesListRequest { + r.poeTypeN = &poeTypeN return r } -// Cable (ID) -func (r ApiDcimFrontPortsListRequest) CableId(cableId []*int32) ApiDcimFrontPortsListRequest { - r.cableId = &cableId +func (r ApiDcimInterfacesListRequest) PoeTypeNic(poeTypeNic []*string) ApiDcimInterfacesListRequest { + r.poeTypeNic = &poeTypeNic return r } -// Cable (ID) -func (r ApiDcimFrontPortsListRequest) CableIdN(cableIdN []*int32) ApiDcimFrontPortsListRequest { - r.cableIdN = &cableIdN +func (r ApiDcimInterfacesListRequest) PoeTypeNie(poeTypeNie []*string) ApiDcimInterfacesListRequest { + r.poeTypeNie = &poeTypeNie return r } -func (r ApiDcimFrontPortsListRequest) Cabled(cabled bool) ApiDcimFrontPortsListRequest { - r.cabled = &cabled +func (r ApiDcimInterfacesListRequest) PoeTypeNiew(poeTypeNiew []*string) ApiDcimInterfacesListRequest { + r.poeTypeNiew = &poeTypeNiew return r } -func (r ApiDcimFrontPortsListRequest) Color(color []string) ApiDcimFrontPortsListRequest { - r.color = &color +func (r ApiDcimInterfacesListRequest) PoeTypeNisw(poeTypeNisw []*string) ApiDcimInterfacesListRequest { + r.poeTypeNisw = &poeTypeNisw return r } -func (r ApiDcimFrontPortsListRequest) ColorEmpty(colorEmpty bool) ApiDcimFrontPortsListRequest { - r.colorEmpty = &colorEmpty +// Primary MAC address +func (r ApiDcimInterfacesListRequest) PrimaryMacAddress(primaryMacAddress []string) ApiDcimInterfacesListRequest { + r.primaryMacAddress = &primaryMacAddress return r } -func (r ApiDcimFrontPortsListRequest) ColorIc(colorIc []string) ApiDcimFrontPortsListRequest { - r.colorIc = &colorIc +// Primary MAC address +func (r ApiDcimInterfacesListRequest) PrimaryMacAddressN(primaryMacAddressN []string) ApiDcimInterfacesListRequest { + r.primaryMacAddressN = &primaryMacAddressN return r } -func (r ApiDcimFrontPortsListRequest) ColorIe(colorIe []string) ApiDcimFrontPortsListRequest { - r.colorIe = &colorIe +// Primary MAC address (ID) +func (r ApiDcimInterfacesListRequest) PrimaryMacAddressId(primaryMacAddressId []int32) ApiDcimInterfacesListRequest { + r.primaryMacAddressId = &primaryMacAddressId return r } -func (r ApiDcimFrontPortsListRequest) ColorIew(colorIew []string) ApiDcimFrontPortsListRequest { - r.colorIew = &colorIew +// Primary MAC address (ID) +func (r ApiDcimInterfacesListRequest) PrimaryMacAddressIdN(primaryMacAddressIdN []int32) ApiDcimInterfacesListRequest { + r.primaryMacAddressIdN = &primaryMacAddressIdN return r } -func (r ApiDcimFrontPortsListRequest) ColorIsw(colorIsw []string) ApiDcimFrontPortsListRequest { - r.colorIsw = &colorIsw +// Search +func (r ApiDcimInterfacesListRequest) Q(q string) ApiDcimInterfacesListRequest { + r.q = &q return r } -func (r ApiDcimFrontPortsListRequest) ColorN(colorN []string) ApiDcimFrontPortsListRequest { - r.colorN = &colorN +// Rack (name) +func (r ApiDcimInterfacesListRequest) Rack(rack []string) ApiDcimInterfacesListRequest { + r.rack = &rack return r } -func (r ApiDcimFrontPortsListRequest) ColorNic(colorNic []string) ApiDcimFrontPortsListRequest { - r.colorNic = &colorNic +// Rack (name) +func (r ApiDcimInterfacesListRequest) RackN(rackN []string) ApiDcimInterfacesListRequest { + r.rackN = &rackN return r } -func (r ApiDcimFrontPortsListRequest) ColorNie(colorNie []string) ApiDcimFrontPortsListRequest { - r.colorNie = &colorNie +// Rack (ID) +func (r ApiDcimInterfacesListRequest) RackId(rackId []int32) ApiDcimInterfacesListRequest { + r.rackId = &rackId return r } -func (r ApiDcimFrontPortsListRequest) ColorNiew(colorNiew []string) ApiDcimFrontPortsListRequest { - r.colorNiew = &colorNiew +// Rack (ID) +func (r ApiDcimInterfacesListRequest) RackIdN(rackIdN []int32) ApiDcimInterfacesListRequest { + r.rackIdN = &rackIdN return r } -func (r ApiDcimFrontPortsListRequest) ColorNisw(colorNisw []string) ApiDcimFrontPortsListRequest { - r.colorNisw = &colorNisw +func (r ApiDcimInterfacesListRequest) Region(region []string) ApiDcimInterfacesListRequest { + r.region = ®ion return r } -func (r ApiDcimFrontPortsListRequest) Created(created []time.Time) ApiDcimFrontPortsListRequest { - r.created = &created +func (r ApiDcimInterfacesListRequest) RegionN(regionN []string) ApiDcimInterfacesListRequest { + r.regionN = ®ionN return r } -func (r ApiDcimFrontPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimFrontPortsListRequest { - r.createdEmpty = &createdEmpty +func (r ApiDcimInterfacesListRequest) RegionId(regionId []string) ApiDcimInterfacesListRequest { + r.regionId = ®ionId return r } -func (r ApiDcimFrontPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimFrontPortsListRequest { - r.createdGt = &createdGt +func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []string) ApiDcimInterfacesListRequest { + r.regionIdN = ®ionIdN return r } -func (r ApiDcimFrontPortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimFrontPortsListRequest { - r.createdGte = &createdGte +func (r ApiDcimInterfacesListRequest) RfChannel(rfChannel []*string) ApiDcimInterfacesListRequest { + r.rfChannel = &rfChannel return r } -func (r ApiDcimFrontPortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimFrontPortsListRequest { - r.createdLt = &createdLt +func (r ApiDcimInterfacesListRequest) RfChannelEmpty(rfChannelEmpty bool) ApiDcimInterfacesListRequest { + r.rfChannelEmpty = &rfChannelEmpty return r } -func (r ApiDcimFrontPortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimFrontPortsListRequest { - r.createdLte = &createdLte +func (r ApiDcimInterfacesListRequest) RfChannelIc(rfChannelIc []*string) ApiDcimInterfacesListRequest { + r.rfChannelIc = &rfChannelIc return r } -func (r ApiDcimFrontPortsListRequest) CreatedN(createdN []time.Time) ApiDcimFrontPortsListRequest { - r.createdN = &createdN +func (r ApiDcimInterfacesListRequest) RfChannelIe(rfChannelIe []*string) ApiDcimInterfacesListRequest { + r.rfChannelIe = &rfChannelIe return r } -func (r ApiDcimFrontPortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimFrontPortsListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimInterfacesListRequest) RfChannelIew(rfChannelIew []*string) ApiDcimInterfacesListRequest { + r.rfChannelIew = &rfChannelIew return r } -func (r ApiDcimFrontPortsListRequest) Description(description []string) ApiDcimFrontPortsListRequest { - r.description = &description +func (r ApiDcimInterfacesListRequest) RfChannelIsw(rfChannelIsw []*string) ApiDcimInterfacesListRequest { + r.rfChannelIsw = &rfChannelIsw return r } -func (r ApiDcimFrontPortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimFrontPortsListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiDcimInterfacesListRequest) RfChannelN(rfChannelN []*string) ApiDcimInterfacesListRequest { + r.rfChannelN = &rfChannelN return r } -func (r ApiDcimFrontPortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimFrontPortsListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimInterfacesListRequest) RfChannelNic(rfChannelNic []*string) ApiDcimInterfacesListRequest { + r.rfChannelNic = &rfChannelNic return r } -func (r ApiDcimFrontPortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimFrontPortsListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimInterfacesListRequest) RfChannelNie(rfChannelNie []*string) ApiDcimInterfacesListRequest { + r.rfChannelNie = &rfChannelNie return r } -func (r ApiDcimFrontPortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimFrontPortsListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimInterfacesListRequest) RfChannelNiew(rfChannelNiew []*string) ApiDcimInterfacesListRequest { + r.rfChannelNiew = &rfChannelNiew return r } -func (r ApiDcimFrontPortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimFrontPortsListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimInterfacesListRequest) RfChannelNisw(rfChannelNisw []*string) ApiDcimInterfacesListRequest { + r.rfChannelNisw = &rfChannelNisw + return r +} + +func (r ApiDcimInterfacesListRequest) RfChannelFrequency(rfChannelFrequency []float64) ApiDcimInterfacesListRequest { + r.rfChannelFrequency = &rfChannelFrequency return r } -func (r ApiDcimFrontPortsListRequest) DescriptionN(descriptionN []string) ApiDcimFrontPortsListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimInterfacesListRequest) RfChannelFrequencyEmpty(rfChannelFrequencyEmpty bool) ApiDcimInterfacesListRequest { + r.rfChannelFrequencyEmpty = &rfChannelFrequencyEmpty return r } -func (r ApiDcimFrontPortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimFrontPortsListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimInterfacesListRequest) RfChannelFrequencyGt(rfChannelFrequencyGt []float64) ApiDcimInterfacesListRequest { + r.rfChannelFrequencyGt = &rfChannelFrequencyGt return r } -func (r ApiDcimFrontPortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimFrontPortsListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimInterfacesListRequest) RfChannelFrequencyGte(rfChannelFrequencyGte []float64) ApiDcimInterfacesListRequest { + r.rfChannelFrequencyGte = &rfChannelFrequencyGte return r } -func (r ApiDcimFrontPortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimFrontPortsListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimInterfacesListRequest) RfChannelFrequencyLt(rfChannelFrequencyLt []float64) ApiDcimInterfacesListRequest { + r.rfChannelFrequencyLt = &rfChannelFrequencyLt return r } -func (r ApiDcimFrontPortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimFrontPortsListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimInterfacesListRequest) RfChannelFrequencyLte(rfChannelFrequencyLte []float64) ApiDcimInterfacesListRequest { + r.rfChannelFrequencyLte = &rfChannelFrequencyLte return r } -// Device (name) -func (r ApiDcimFrontPortsListRequest) Device(device []*string) ApiDcimFrontPortsListRequest { - r.device = &device +func (r ApiDcimInterfacesListRequest) RfChannelFrequencyN(rfChannelFrequencyN []float64) ApiDcimInterfacesListRequest { + r.rfChannelFrequencyN = &rfChannelFrequencyN return r } -// Device (name) -func (r ApiDcimFrontPortsListRequest) DeviceN(deviceN []*string) ApiDcimFrontPortsListRequest { - r.deviceN = &deviceN +func (r ApiDcimInterfacesListRequest) RfChannelWidth(rfChannelWidth []float64) ApiDcimInterfacesListRequest { + r.rfChannelWidth = &rfChannelWidth return r } -// Device (ID) -func (r ApiDcimFrontPortsListRequest) DeviceId(deviceId []int32) ApiDcimFrontPortsListRequest { - r.deviceId = &deviceId +func (r ApiDcimInterfacesListRequest) RfChannelWidthEmpty(rfChannelWidthEmpty bool) ApiDcimInterfacesListRequest { + r.rfChannelWidthEmpty = &rfChannelWidthEmpty return r } -// Device (ID) -func (r ApiDcimFrontPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimFrontPortsListRequest { - r.deviceIdN = &deviceIdN +func (r ApiDcimInterfacesListRequest) RfChannelWidthGt(rfChannelWidthGt []float64) ApiDcimInterfacesListRequest { + r.rfChannelWidthGt = &rfChannelWidthGt return r } -// Device type (model) -func (r ApiDcimFrontPortsListRequest) DeviceType(deviceType []string) ApiDcimFrontPortsListRequest { - r.deviceType = &deviceType +func (r ApiDcimInterfacesListRequest) RfChannelWidthGte(rfChannelWidthGte []float64) ApiDcimInterfacesListRequest { + r.rfChannelWidthGte = &rfChannelWidthGte return r } -// Device type (model) -func (r ApiDcimFrontPortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimFrontPortsListRequest { - r.deviceTypeN = &deviceTypeN +func (r ApiDcimInterfacesListRequest) RfChannelWidthLt(rfChannelWidthLt []float64) ApiDcimInterfacesListRequest { + r.rfChannelWidthLt = &rfChannelWidthLt return r } -// Device type (ID) -func (r ApiDcimFrontPortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimFrontPortsListRequest { - r.deviceTypeId = &deviceTypeId +func (r ApiDcimInterfacesListRequest) RfChannelWidthLte(rfChannelWidthLte []float64) ApiDcimInterfacesListRequest { + r.rfChannelWidthLte = &rfChannelWidthLte return r } -// Device type (ID) -func (r ApiDcimFrontPortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimFrontPortsListRequest { - r.deviceTypeIdN = &deviceTypeIdN +func (r ApiDcimInterfacesListRequest) RfChannelWidthN(rfChannelWidthN []float64) ApiDcimInterfacesListRequest { + r.rfChannelWidthN = &rfChannelWidthN return r } -func (r ApiDcimFrontPortsListRequest) Id(id []int32) ApiDcimFrontPortsListRequest { - r.id = &id +func (r ApiDcimInterfacesListRequest) RfRole(rfRole []*string) ApiDcimInterfacesListRequest { + r.rfRole = &rfRole return r } -func (r ApiDcimFrontPortsListRequest) IdEmpty(idEmpty bool) ApiDcimFrontPortsListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimInterfacesListRequest) RfRoleEmpty(rfRoleEmpty bool) ApiDcimInterfacesListRequest { + r.rfRoleEmpty = &rfRoleEmpty return r } -func (r ApiDcimFrontPortsListRequest) IdGt(idGt []int32) ApiDcimFrontPortsListRequest { - r.idGt = &idGt +func (r ApiDcimInterfacesListRequest) RfRoleIc(rfRoleIc []*string) ApiDcimInterfacesListRequest { + r.rfRoleIc = &rfRoleIc return r } -func (r ApiDcimFrontPortsListRequest) IdGte(idGte []int32) ApiDcimFrontPortsListRequest { - r.idGte = &idGte +func (r ApiDcimInterfacesListRequest) RfRoleIe(rfRoleIe []*string) ApiDcimInterfacesListRequest { + r.rfRoleIe = &rfRoleIe return r } -func (r ApiDcimFrontPortsListRequest) IdLt(idLt []int32) ApiDcimFrontPortsListRequest { - r.idLt = &idLt +func (r ApiDcimInterfacesListRequest) RfRoleIew(rfRoleIew []*string) ApiDcimInterfacesListRequest { + r.rfRoleIew = &rfRoleIew return r } -func (r ApiDcimFrontPortsListRequest) IdLte(idLte []int32) ApiDcimFrontPortsListRequest { - r.idLte = &idLte +func (r ApiDcimInterfacesListRequest) RfRoleIsw(rfRoleIsw []*string) ApiDcimInterfacesListRequest { + r.rfRoleIsw = &rfRoleIsw return r } -func (r ApiDcimFrontPortsListRequest) IdN(idN []int32) ApiDcimFrontPortsListRequest { - r.idN = &idN +func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []*string) ApiDcimInterfacesListRequest { + r.rfRoleN = &rfRoleN return r } -func (r ApiDcimFrontPortsListRequest) Label(label []string) ApiDcimFrontPortsListRequest { - r.label = &label +func (r ApiDcimInterfacesListRequest) RfRoleNic(rfRoleNic []*string) ApiDcimInterfacesListRequest { + r.rfRoleNic = &rfRoleNic return r } -func (r ApiDcimFrontPortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimFrontPortsListRequest { - r.labelEmpty = &labelEmpty +func (r ApiDcimInterfacesListRequest) RfRoleNie(rfRoleNie []*string) ApiDcimInterfacesListRequest { + r.rfRoleNie = &rfRoleNie return r } -func (r ApiDcimFrontPortsListRequest) LabelIc(labelIc []string) ApiDcimFrontPortsListRequest { - r.labelIc = &labelIc +func (r ApiDcimInterfacesListRequest) RfRoleNiew(rfRoleNiew []*string) ApiDcimInterfacesListRequest { + r.rfRoleNiew = &rfRoleNiew return r } -func (r ApiDcimFrontPortsListRequest) LabelIe(labelIe []string) ApiDcimFrontPortsListRequest { - r.labelIe = &labelIe +func (r ApiDcimInterfacesListRequest) RfRoleNisw(rfRoleNisw []*string) ApiDcimInterfacesListRequest { + r.rfRoleNisw = &rfRoleNisw return r } -func (r ApiDcimFrontPortsListRequest) LabelIew(labelIew []string) ApiDcimFrontPortsListRequest { - r.labelIew = &labelIew +// Site name (slug) +func (r ApiDcimInterfacesListRequest) Site(site []string) ApiDcimInterfacesListRequest { + r.site = &site return r } -func (r ApiDcimFrontPortsListRequest) LabelIsw(labelIsw []string) ApiDcimFrontPortsListRequest { - r.labelIsw = &labelIsw +// Site name (slug) +func (r ApiDcimInterfacesListRequest) SiteN(siteN []string) ApiDcimInterfacesListRequest { + r.siteN = &siteN return r } -func (r ApiDcimFrontPortsListRequest) LabelN(labelN []string) ApiDcimFrontPortsListRequest { - r.labelN = &labelN +func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []string) ApiDcimInterfacesListRequest { + r.siteGroup = &siteGroup return r } -func (r ApiDcimFrontPortsListRequest) LabelNic(labelNic []string) ApiDcimFrontPortsListRequest { - r.labelNic = &labelNic +func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []string) ApiDcimInterfacesListRequest { + r.siteGroupN = &siteGroupN return r } -func (r ApiDcimFrontPortsListRequest) LabelNie(labelNie []string) ApiDcimFrontPortsListRequest { - r.labelNie = &labelNie +func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []string) ApiDcimInterfacesListRequest { + r.siteGroupId = &siteGroupId return r } -func (r ApiDcimFrontPortsListRequest) LabelNiew(labelNiew []string) ApiDcimFrontPortsListRequest { - r.labelNiew = &labelNiew +func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInterfacesListRequest { + r.siteGroupIdN = &siteGroupIdN return r } -func (r ApiDcimFrontPortsListRequest) LabelNisw(labelNisw []string) ApiDcimFrontPortsListRequest { - r.labelNisw = &labelNisw +// Site (ID) +func (r ApiDcimInterfacesListRequest) SiteId(siteId []int32) ApiDcimInterfacesListRequest { + r.siteId = &siteId return r } -func (r ApiDcimFrontPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimFrontPortsListRequest { - r.lastUpdated = &lastUpdated +// Site (ID) +func (r ApiDcimInterfacesListRequest) SiteIdN(siteIdN []int32) ApiDcimInterfacesListRequest { + r.siteIdN = &siteIdN return r } -func (r ApiDcimFrontPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimFrontPortsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiDcimInterfacesListRequest) Speed(speed []int32) ApiDcimInterfacesListRequest { + r.speed = &speed return r } -func (r ApiDcimFrontPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimFrontPortsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimInterfacesListRequest) SpeedEmpty(speedEmpty []int32) ApiDcimInterfacesListRequest { + r.speedEmpty = &speedEmpty return r } -func (r ApiDcimFrontPortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimFrontPortsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimInterfacesListRequest) SpeedGt(speedGt []int32) ApiDcimInterfacesListRequest { + r.speedGt = &speedGt return r } -func (r ApiDcimFrontPortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimFrontPortsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimInterfacesListRequest) SpeedGte(speedGte []int32) ApiDcimInterfacesListRequest { + r.speedGte = &speedGte return r } -func (r ApiDcimFrontPortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimFrontPortsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimInterfacesListRequest) SpeedLt(speedLt []int32) ApiDcimInterfacesListRequest { + r.speedLt = &speedLt return r } -func (r ApiDcimFrontPortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimFrontPortsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiDcimInterfacesListRequest) SpeedLte(speedLte []int32) ApiDcimInterfacesListRequest { + r.speedLte = &speedLte return r } -// Number of results to return per page. -func (r ApiDcimFrontPortsListRequest) Limit(limit int32) ApiDcimFrontPortsListRequest { - r.limit = &limit +func (r ApiDcimInterfacesListRequest) SpeedN(speedN []int32) ApiDcimInterfacesListRequest { + r.speedN = &speedN return r } -// Location (slug) -func (r ApiDcimFrontPortsListRequest) Location(location []string) ApiDcimFrontPortsListRequest { - r.location = &location +func (r ApiDcimInterfacesListRequest) Tag(tag []string) ApiDcimInterfacesListRequest { + r.tag = &tag return r } -// Location (slug) -func (r ApiDcimFrontPortsListRequest) LocationN(locationN []string) ApiDcimFrontPortsListRequest { - r.locationN = &locationN +func (r ApiDcimInterfacesListRequest) TagN(tagN []string) ApiDcimInterfacesListRequest { + r.tagN = &tagN return r } -// Location (ID) -func (r ApiDcimFrontPortsListRequest) LocationId(locationId []int32) ApiDcimFrontPortsListRequest { - r.locationId = &locationId +func (r ApiDcimInterfacesListRequest) TxPower(txPower []int32) ApiDcimInterfacesListRequest { + r.txPower = &txPower return r } -// Location (ID) -func (r ApiDcimFrontPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimFrontPortsListRequest { - r.locationIdN = &locationIdN +func (r ApiDcimInterfacesListRequest) TxPowerEmpty(txPowerEmpty bool) ApiDcimInterfacesListRequest { + r.txPowerEmpty = &txPowerEmpty return r } -func (r ApiDcimFrontPortsListRequest) MarkConnected(markConnected bool) ApiDcimFrontPortsListRequest { - r.markConnected = &markConnected +func (r ApiDcimInterfacesListRequest) TxPowerGt(txPowerGt []int32) ApiDcimInterfacesListRequest { + r.txPowerGt = &txPowerGt return r } -func (r ApiDcimFrontPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimFrontPortsListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiDcimInterfacesListRequest) TxPowerGte(txPowerGte []int32) ApiDcimInterfacesListRequest { + r.txPowerGte = &txPowerGte return r } -// Module (ID) -func (r ApiDcimFrontPortsListRequest) ModuleId(moduleId []*int32) ApiDcimFrontPortsListRequest { - r.moduleId = &moduleId +func (r ApiDcimInterfacesListRequest) TxPowerLt(txPowerLt []int32) ApiDcimInterfacesListRequest { + r.txPowerLt = &txPowerLt return r } -// Module (ID) -func (r ApiDcimFrontPortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimFrontPortsListRequest { - r.moduleIdN = &moduleIdN +func (r ApiDcimInterfacesListRequest) TxPowerLte(txPowerLte []int32) ApiDcimInterfacesListRequest { + r.txPowerLte = &txPowerLte return r } -func (r ApiDcimFrontPortsListRequest) Name(name []string) ApiDcimFrontPortsListRequest { - r.name = &name +func (r ApiDcimInterfacesListRequest) TxPowerN(txPowerN []int32) ApiDcimInterfacesListRequest { + r.txPowerN = &txPowerN return r } -func (r ApiDcimFrontPortsListRequest) NameEmpty(nameEmpty bool) ApiDcimFrontPortsListRequest { - r.nameEmpty = &nameEmpty +func (r ApiDcimInterfacesListRequest) Type_(type_ []string) ApiDcimInterfacesListRequest { + r.type_ = &type_ return r } -func (r ApiDcimFrontPortsListRequest) NameIc(nameIc []string) ApiDcimFrontPortsListRequest { - r.nameIc = &nameIc +func (r ApiDcimInterfacesListRequest) TypeEmpty(typeEmpty bool) ApiDcimInterfacesListRequest { + r.typeEmpty = &typeEmpty return r } -func (r ApiDcimFrontPortsListRequest) NameIe(nameIe []string) ApiDcimFrontPortsListRequest { - r.nameIe = &nameIe +func (r ApiDcimInterfacesListRequest) TypeIc(typeIc []string) ApiDcimInterfacesListRequest { + r.typeIc = &typeIc return r } -func (r ApiDcimFrontPortsListRequest) NameIew(nameIew []string) ApiDcimFrontPortsListRequest { - r.nameIew = &nameIew +func (r ApiDcimInterfacesListRequest) TypeIe(typeIe []string) ApiDcimInterfacesListRequest { + r.typeIe = &typeIe return r } -func (r ApiDcimFrontPortsListRequest) NameIsw(nameIsw []string) ApiDcimFrontPortsListRequest { - r.nameIsw = &nameIsw +func (r ApiDcimInterfacesListRequest) TypeIew(typeIew []string) ApiDcimInterfacesListRequest { + r.typeIew = &typeIew return r } -func (r ApiDcimFrontPortsListRequest) NameN(nameN []string) ApiDcimFrontPortsListRequest { - r.nameN = &nameN +func (r ApiDcimInterfacesListRequest) TypeIsw(typeIsw []string) ApiDcimInterfacesListRequest { + r.typeIsw = &typeIsw return r } -func (r ApiDcimFrontPortsListRequest) NameNic(nameNic []string) ApiDcimFrontPortsListRequest { - r.nameNic = &nameNic +func (r ApiDcimInterfacesListRequest) TypeN(typeN []string) ApiDcimInterfacesListRequest { + r.typeN = &typeN return r } -func (r ApiDcimFrontPortsListRequest) NameNie(nameNie []string) ApiDcimFrontPortsListRequest { - r.nameNie = &nameNie +func (r ApiDcimInterfacesListRequest) TypeNic(typeNic []string) ApiDcimInterfacesListRequest { + r.typeNic = &typeNic return r } -func (r ApiDcimFrontPortsListRequest) NameNiew(nameNiew []string) ApiDcimFrontPortsListRequest { - r.nameNiew = &nameNiew +func (r ApiDcimInterfacesListRequest) TypeNie(typeNie []string) ApiDcimInterfacesListRequest { + r.typeNie = &typeNie return r } -func (r ApiDcimFrontPortsListRequest) NameNisw(nameNisw []string) ApiDcimFrontPortsListRequest { - r.nameNisw = &nameNisw +func (r ApiDcimInterfacesListRequest) TypeNiew(typeNiew []string) ApiDcimInterfacesListRequest { + r.typeNiew = &typeNiew return r } -func (r ApiDcimFrontPortsListRequest) Occupied(occupied bool) ApiDcimFrontPortsListRequest { - r.occupied = &occupied +func (r ApiDcimInterfacesListRequest) TypeNisw(typeNisw []string) ApiDcimInterfacesListRequest { + r.typeNisw = &typeNisw return r } -// The initial index from which to return the results. -func (r ApiDcimFrontPortsListRequest) Offset(offset int32) ApiDcimFrontPortsListRequest { - r.offset = &offset +func (r ApiDcimInterfacesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInterfacesListRequest { + r.updatedByRequest = &updatedByRequest return r } -// Which field to use when ordering the results. -func (r ApiDcimFrontPortsListRequest) Ordering(ordering string) ApiDcimFrontPortsListRequest { - r.ordering = &ordering +// Virtual Device Context +func (r ApiDcimInterfacesListRequest) Vdc(vdc []string) ApiDcimInterfacesListRequest { + r.vdc = &vdc return r } -// Search -func (r ApiDcimFrontPortsListRequest) Q(q string) ApiDcimFrontPortsListRequest { - r.q = &q +// Virtual Device Context +func (r ApiDcimInterfacesListRequest) VdcN(vdcN []string) ApiDcimInterfacesListRequest { + r.vdcN = &vdcN return r } -// Rack (name) -func (r ApiDcimFrontPortsListRequest) Rack(rack []string) ApiDcimFrontPortsListRequest { - r.rack = &rack +// Virtual Device Context +func (r ApiDcimInterfacesListRequest) VdcId(vdcId []int32) ApiDcimInterfacesListRequest { + r.vdcId = &vdcId return r } -// Rack (name) -func (r ApiDcimFrontPortsListRequest) RackN(rackN []string) ApiDcimFrontPortsListRequest { - r.rackN = &rackN +// Virtual Device Context +func (r ApiDcimInterfacesListRequest) VdcIdN(vdcIdN []int32) ApiDcimInterfacesListRequest { + r.vdcIdN = &vdcIdN return r } -// Rack (ID) -func (r ApiDcimFrontPortsListRequest) RackId(rackId []int32) ApiDcimFrontPortsListRequest { - r.rackId = &rackId +// Virtual Device Context (Identifier) +func (r ApiDcimInterfacesListRequest) VdcIdentifier(vdcIdentifier []*int32) ApiDcimInterfacesListRequest { + r.vdcIdentifier = &vdcIdentifier return r } -// Rack (ID) -func (r ApiDcimFrontPortsListRequest) RackIdN(rackIdN []int32) ApiDcimFrontPortsListRequest { - r.rackIdN = &rackIdN +// Virtual Device Context (Identifier) +func (r ApiDcimInterfacesListRequest) VdcIdentifierN(vdcIdentifierN []*int32) ApiDcimInterfacesListRequest { + r.vdcIdentifierN = &vdcIdentifierN return r } -func (r ApiDcimFrontPortsListRequest) RearPortId(rearPortId []int32) ApiDcimFrontPortsListRequest { - r.rearPortId = &rearPortId +// Virtual Chassis +func (r ApiDcimInterfacesListRequest) VirtualChassis(virtualChassis []string) ApiDcimInterfacesListRequest { + r.virtualChassis = &virtualChassis return r } -func (r ApiDcimFrontPortsListRequest) RearPortIdN(rearPortIdN []int32) ApiDcimFrontPortsListRequest { - r.rearPortIdN = &rearPortIdN +// Virtual Chassis +func (r ApiDcimInterfacesListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimInterfacesListRequest { + r.virtualChassisN = &virtualChassisN return r } -func (r ApiDcimFrontPortsListRequest) RearPortPosition(rearPortPosition []int32) ApiDcimFrontPortsListRequest { - r.rearPortPosition = &rearPortPosition +// Virtual Chassis (ID) +func (r ApiDcimInterfacesListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimInterfacesListRequest { + r.virtualChassisId = &virtualChassisId return r } -func (r ApiDcimFrontPortsListRequest) RearPortPositionEmpty(rearPortPositionEmpty bool) ApiDcimFrontPortsListRequest { - r.rearPortPositionEmpty = &rearPortPositionEmpty +// Virtual Chassis (ID) +func (r ApiDcimInterfacesListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimInterfacesListRequest { + r.virtualChassisIdN = &virtualChassisIdN return r } -func (r ApiDcimFrontPortsListRequest) RearPortPositionGt(rearPortPositionGt []int32) ApiDcimFrontPortsListRequest { - r.rearPortPositionGt = &rearPortPositionGt +func (r ApiDcimInterfacesListRequest) VirtualChassisMember(virtualChassisMember []string) ApiDcimInterfacesListRequest { + r.virtualChassisMember = &virtualChassisMember return r } -func (r ApiDcimFrontPortsListRequest) RearPortPositionGte(rearPortPositionGte []int32) ApiDcimFrontPortsListRequest { - r.rearPortPositionGte = &rearPortPositionGte +func (r ApiDcimInterfacesListRequest) VirtualChassisMemberId(virtualChassisMemberId []int32) ApiDcimInterfacesListRequest { + r.virtualChassisMemberId = &virtualChassisMemberId return r } -func (r ApiDcimFrontPortsListRequest) RearPortPositionLt(rearPortPositionLt []int32) ApiDcimFrontPortsListRequest { - r.rearPortPositionLt = &rearPortPositionLt +// Virtual circuit (ID) +func (r ApiDcimInterfacesListRequest) VirtualCircuitId(virtualCircuitId []int32) ApiDcimInterfacesListRequest { + r.virtualCircuitId = &virtualCircuitId return r } -func (r ApiDcimFrontPortsListRequest) RearPortPositionLte(rearPortPositionLte []int32) ApiDcimFrontPortsListRequest { - r.rearPortPositionLte = &rearPortPositionLte +// Virtual circuit (ID) +func (r ApiDcimInterfacesListRequest) VirtualCircuitIdN(virtualCircuitIdN []int32) ApiDcimInterfacesListRequest { + r.virtualCircuitIdN = &virtualCircuitIdN return r } -func (r ApiDcimFrontPortsListRequest) RearPortPositionN(rearPortPositionN []int32) ApiDcimFrontPortsListRequest { - r.rearPortPositionN = &rearPortPositionN +// Virtual circuit termination (ID) +func (r ApiDcimInterfacesListRequest) VirtualCircuitTerminationId(virtualCircuitTerminationId []int32) ApiDcimInterfacesListRequest { + r.virtualCircuitTerminationId = &virtualCircuitTerminationId return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) Region(region []int32) ApiDcimFrontPortsListRequest { - r.region = ®ion +// Virtual circuit termination (ID) +func (r ApiDcimInterfacesListRequest) VirtualCircuitTerminationIdN(virtualCircuitTerminationIdN []int32) ApiDcimInterfacesListRequest { + r.virtualCircuitTerminationIdN = &virtualCircuitTerminationIdN return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) RegionN(regionN []int32) ApiDcimFrontPortsListRequest { - r.regionN = ®ionN +// Assigned VID +func (r ApiDcimInterfacesListRequest) Vlan(vlan string) ApiDcimInterfacesListRequest { + r.vlan = &vlan return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionId(regionId []int32) ApiDcimFrontPortsListRequest { - r.regionId = ®ionId +// Assigned VLAN +func (r ApiDcimInterfacesListRequest) VlanId(vlanId string) ApiDcimInterfacesListRequest { + r.vlanId = &vlanId return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimFrontPortsListRequest { - r.regionIdN = ®ionIdN +// VLAN Translation Policy +func (r ApiDcimInterfacesListRequest) VlanTranslationPolicy(vlanTranslationPolicy []string) ApiDcimInterfacesListRequest { + r.vlanTranslationPolicy = &vlanTranslationPolicy return r } -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) Role(role []string) ApiDcimFrontPortsListRequest { - r.role = &role +// VLAN Translation Policy +func (r ApiDcimInterfacesListRequest) VlanTranslationPolicyN(vlanTranslationPolicyN []string) ApiDcimInterfacesListRequest { + r.vlanTranslationPolicyN = &vlanTranslationPolicyN return r } -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) RoleN(roleN []string) ApiDcimFrontPortsListRequest { - r.roleN = &roleN +// VLAN Translation Policy (ID) +func (r ApiDcimInterfacesListRequest) VlanTranslationPolicyId(vlanTranslationPolicyId []int32) ApiDcimInterfacesListRequest { + r.vlanTranslationPolicyId = &vlanTranslationPolicyId return r } -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleId(roleId []int32) ApiDcimFrontPortsListRequest { - r.roleId = &roleId +// VLAN Translation Policy (ID) +func (r ApiDcimInterfacesListRequest) VlanTranslationPolicyIdN(vlanTranslationPolicyIdN []int32) ApiDcimInterfacesListRequest { + r.vlanTranslationPolicyIdN = &vlanTranslationPolicyIdN return r } -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimFrontPortsListRequest { - r.roleIdN = &roleIdN +// VRF (RD) +func (r ApiDcimInterfacesListRequest) Vrf(vrf []*string) ApiDcimInterfacesListRequest { + r.vrf = &vrf return r } -// Site name (slug) -func (r ApiDcimFrontPortsListRequest) Site(site []string) ApiDcimFrontPortsListRequest { - r.site = &site +// VRF (RD) +func (r ApiDcimInterfacesListRequest) VrfN(vrfN []*string) ApiDcimInterfacesListRequest { + r.vrfN = &vrfN return r } -// Site name (slug) -func (r ApiDcimFrontPortsListRequest) SiteN(siteN []string) ApiDcimFrontPortsListRequest { - r.siteN = &siteN +// VRF +func (r ApiDcimInterfacesListRequest) VrfId(vrfId []int32) ApiDcimInterfacesListRequest { + r.vrfId = &vrfId return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimFrontPortsListRequest { - r.siteGroup = &siteGroup +// VRF +func (r ApiDcimInterfacesListRequest) VrfIdN(vrfIdN []int32) ApiDcimInterfacesListRequest { + r.vrfIdN = &vrfIdN return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimFrontPortsListRequest { - r.siteGroupN = &siteGroupN +// Wireless LAN +func (r ApiDcimInterfacesListRequest) WirelessLanId(wirelessLanId []int32) ApiDcimInterfacesListRequest { + r.wirelessLanId = &wirelessLanId return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimFrontPortsListRequest { - r.siteGroupId = &siteGroupId +// Wireless LAN +func (r ApiDcimInterfacesListRequest) WirelessLanIdN(wirelessLanIdN []int32) ApiDcimInterfacesListRequest { + r.wirelessLanIdN = &wirelessLanIdN return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimFrontPortsListRequest { - r.siteGroupIdN = &siteGroupIdN +// Wireless link +func (r ApiDcimInterfacesListRequest) WirelessLinkId(wirelessLinkId []*int32) ApiDcimInterfacesListRequest { + r.wirelessLinkId = &wirelessLinkId return r } -// Site (ID) -func (r ApiDcimFrontPortsListRequest) SiteId(siteId []int32) ApiDcimFrontPortsListRequest { - r.siteId = &siteId +// Wireless link +func (r ApiDcimInterfacesListRequest) WirelessLinkIdN(wirelessLinkIdN []*int32) ApiDcimInterfacesListRequest { + r.wirelessLinkIdN = &wirelessLinkIdN return r } -// Site (ID) -func (r ApiDcimFrontPortsListRequest) SiteIdN(siteIdN []int32) ApiDcimFrontPortsListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimInterfacesListRequest) Wwn(wwn []string) ApiDcimInterfacesListRequest { + r.wwn = &wwn return r } -func (r ApiDcimFrontPortsListRequest) Tag(tag []string) ApiDcimFrontPortsListRequest { - r.tag = &tag +func (r ApiDcimInterfacesListRequest) WwnIc(wwnIc []string) ApiDcimInterfacesListRequest { + r.wwnIc = &wwnIc return r } -func (r ApiDcimFrontPortsListRequest) TagN(tagN []string) ApiDcimFrontPortsListRequest { - r.tagN = &tagN +func (r ApiDcimInterfacesListRequest) WwnIe(wwnIe []string) ApiDcimInterfacesListRequest { + r.wwnIe = &wwnIe return r } -func (r ApiDcimFrontPortsListRequest) Type_(type_ []string) ApiDcimFrontPortsListRequest { - r.type_ = &type_ +func (r ApiDcimInterfacesListRequest) WwnIew(wwnIew []string) ApiDcimInterfacesListRequest { + r.wwnIew = &wwnIew return r } -func (r ApiDcimFrontPortsListRequest) TypeN(typeN []string) ApiDcimFrontPortsListRequest { - r.typeN = &typeN +func (r ApiDcimInterfacesListRequest) WwnIsw(wwnIsw []string) ApiDcimInterfacesListRequest { + r.wwnIsw = &wwnIsw return r } -func (r ApiDcimFrontPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimFrontPortsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimInterfacesListRequest) WwnN(wwnN []string) ApiDcimInterfacesListRequest { + r.wwnN = &wwnN return r } -// Virtual Chassis -func (r ApiDcimFrontPortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimFrontPortsListRequest { - r.virtualChassis = &virtualChassis +func (r ApiDcimInterfacesListRequest) WwnNic(wwnNic []string) ApiDcimInterfacesListRequest { + r.wwnNic = &wwnNic return r } -// Virtual Chassis -func (r ApiDcimFrontPortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimFrontPortsListRequest { - r.virtualChassisN = &virtualChassisN +func (r ApiDcimInterfacesListRequest) WwnNie(wwnNie []string) ApiDcimInterfacesListRequest { + r.wwnNie = &wwnNie return r } -// Virtual Chassis (ID) -func (r ApiDcimFrontPortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimFrontPortsListRequest { - r.virtualChassisId = &virtualChassisId +func (r ApiDcimInterfacesListRequest) WwnNiew(wwnNiew []string) ApiDcimInterfacesListRequest { + r.wwnNiew = &wwnNiew return r } -// Virtual Chassis (ID) -func (r ApiDcimFrontPortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimFrontPortsListRequest { - r.virtualChassisIdN = &virtualChassisIdN +func (r ApiDcimInterfacesListRequest) WwnNisw(wwnNisw []string) ApiDcimInterfacesListRequest { + r.wwnNisw = &wwnNisw return r } -func (r ApiDcimFrontPortsListRequest) Execute() (*PaginatedFrontPortList, *http.Response, error) { - return r.ApiService.DcimFrontPortsListExecute(r) +func (r ApiDcimInterfacesListRequest) Execute() (*PaginatedInterfaceList, *http.Response, error) { + return r.ApiService.DcimInterfacesListExecute(r) } /* -DcimFrontPortsList Method for DcimFrontPortsList +DcimInterfacesList Method for DcimInterfacesList -Get a list of front port objects. +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 ApiDcimFrontPortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfacesListRequest */ -func (a *DcimAPIService) DcimFrontPortsList(ctx context.Context) ApiDcimFrontPortsListRequest { - return ApiDcimFrontPortsListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInterfaceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/interfaces/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.bridgeId != nil { + t := *r.bridgeId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "form", "multi") + } + } + if r.bridgeIdN != nil { + t := *r.bridgeIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "form", "multi") + } + } + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + if r.cableId != nil { + t := *r.cableId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") + } + } + if r.cableIdN != nil { + t := *r.cableIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") + } + } + if r.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") + } + if r.connected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.device != nil { + t := *r.device + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") + } + } + if r.deviceType != nil { + t := *r.deviceType + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") + } + } + if r.deviceTypeN != nil { + t := *r.deviceTypeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") + } + } + if r.duplex != nil { + t := *r.duplex + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", t, "form", "multi") + } + } + if r.duplexEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__empty", r.duplexEmpty, "form", "") + } + if r.duplexIc != nil { + t := *r.duplexIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ic", t, "form", "multi") + } + } + if r.duplexIe != nil { + t := *r.duplexIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ie", t, "form", "multi") + } + } + if r.duplexIew != nil { + t := *r.duplexIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__iew", t, "form", "multi") + } + } + if r.duplexIsw != nil { + t := *r.duplexIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__isw", t, "form", "multi") + } + } + if r.duplexN != nil { + t := *r.duplexN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__n", t, "form", "multi") + } + } + if r.duplexNic != nil { + t := *r.duplexNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nic", t, "form", "multi") + } + } + if r.duplexNie != nil { + t := *r.duplexNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nie", t, "form", "multi") + } + } + if r.duplexNiew != nil { + t := *r.duplexNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__niew", t, "form", "multi") + } + } + if r.duplexNisw != nil { + t := *r.duplexNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nisw", t, "form", "multi") + } + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.kind != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind", r.kind, "form", "") + } + if r.l2vpn != nil { + t := *r.l2vpn + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "form", "multi") + } + } + if r.l2vpnN != nil { + t := *r.l2vpnN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "form", "multi") + } + } + if r.l2vpnId != nil { + t := *r.l2vpnId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "form", "multi") + } + } + if r.l2vpnIdN != nil { + t := *r.l2vpnIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "form", "multi") + } + } + if r.label != nil { + t := *r.label + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") + } + } + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") + } + } + if r.labelIe != nil { + t := *r.labelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") + } + } + if r.labelIew != nil { + t := *r.labelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") + } + } + if r.labelIsw != nil { + t := *r.labelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") + } + } + if r.labelN != nil { + t := *r.labelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") + } + } + if r.labelNic != nil { + t := *r.labelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedFrontPortList -func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListRequest) (*PaginatedFrontPortList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFrontPortList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.labelNie != nil { + t := *r.labelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/front-ports/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") + if r.labelNiew != nil { + t := *r.labelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") + } + } + if r.labelNisw != nil { + t := *r.labelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") + } + } + if r.lagId != nil { + t := *r.lagId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id", t, "form", "multi") + } + } + if r.lagIdN != nil { + t := *r.lagIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "form", "multi") + } + } + if r.macAddressIc != nil { + t := *r.macAddressIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "form", "multi") + } + } + if r.macAddressIe != nil { + t := *r.macAddressIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "form", "multi") + } + } + if r.macAddressIew != nil { + t := *r.macAddressIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "form", "multi") + } + } + if r.macAddressIsw != nil { + t := *r.macAddressIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "form", "multi") + } + } + if r.macAddressN != nil { + t := *r.macAddressN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "form", "multi") + } + } + if r.macAddressNic != nil { + t := *r.macAddressNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "form", "multi") + } + } + if r.macAddressNie != nil { + t := *r.macAddressNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "form", "multi") + } + } + if r.macAddressNiew != nil { + t := *r.macAddressNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "form", "multi") + } + } + if r.macAddressNisw != nil { + t := *r.macAddressNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "form", "multi") + } + } + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.mgmtOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_only", r.mgmtOnly, "form", "") + } + if r.mode != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") + } + } + if r.moduleIdN != nil { + t := *r.moduleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") + } + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", t, "form", "multi") + } + } + if r.mtuEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__empty", r.mtuEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", t, "form", "multi") + } + } + if r.mtuGte != nil { + t := *r.mtuGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", t, "form", "multi") + } + } + if r.mtuLt != nil { + t := *r.mtuLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", t, "form", "multi") + } + } + if r.mtuLte != nil { + t := *r.mtuLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", t, "form", "multi") + } + } + if r.mtuN != nil { + t := *r.mtuN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.parentId != nil { + t := *r.parentId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") + } + } + if r.parentIdN != nil { + t := *r.parentIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") + } + } + if r.poeMode != nil { + t := *r.poeMode + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "form", "multi") + } + } + if r.poeModeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__empty", r.poeModeEmpty, "form", "") + } + if r.poeModeIc != nil { + t := *r.poeModeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", t, "form", "multi") + } + } + if r.poeModeIe != nil { + t := *r.poeModeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", t, "form", "multi") + } + } + if r.poeModeIew != nil { + t := *r.poeModeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", t, "form", "multi") + } + } + if r.poeModeIsw != nil { + t := *r.poeModeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", t, "form", "multi") + } + } + if r.poeModeN != nil { + t := *r.poeModeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "form", "multi") + } + } + if r.poeModeNic != nil { + t := *r.poeModeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", t, "form", "multi") + } + } + if r.poeModeNie != nil { + t := *r.poeModeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", t, "form", "multi") + } } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") + if r.poeModeNiew != nil { + t := *r.poeModeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", t, "form", "multi") + } } - if r.cableId != nil { - t := *r.cableId + if r.poeModeNisw != nil { + t := *r.poeModeNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", t, "form", "multi") } } - if r.cableIdN != nil { - t := *r.cableIdN + if r.poeType != nil { + t := *r.poeType if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "form", "multi") } } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") + if r.poeTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__empty", r.poeTypeEmpty, "form", "") } - if r.color != nil { - t := *r.color + if r.poeTypeIc != nil { + t := *r.poeTypeIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", t, "form", "multi") } } - if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + if r.poeTypeIe != nil { + t := *r.poeTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", t, "form", "multi") + } } - if r.colorIc != nil { - t := *r.colorIc + if r.poeTypeIew != nil { + t := *r.poeTypeIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", t, "form", "multi") } } - if r.colorIe != nil { - t := *r.colorIe + if r.poeTypeIsw != nil { + t := *r.poeTypeIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", t, "form", "multi") } } - if r.colorIew != nil { - t := *r.colorIew + if r.poeTypeN != nil { + t := *r.poeTypeN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "form", "multi") } } - if r.colorIsw != nil { - t := *r.colorIsw + if r.poeTypeNic != nil { + t := *r.poeTypeNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", t, "form", "multi") } } - if r.colorN != nil { - t := *r.colorN + if r.poeTypeNie != nil { + t := *r.poeTypeNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", t, "form", "multi") } } - if r.colorNic != nil { - t := *r.colorNic + if r.poeTypeNiew != nil { + t := *r.poeTypeNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", t, "form", "multi") } } - if r.colorNie != nil { - t := *r.colorNie + if r.poeTypeNisw != nil { + t := *r.poeTypeNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", t, "form", "multi") } } - if r.colorNiew != nil { - t := *r.colorNiew + if r.primaryMacAddress != nil { + t := *r.primaryMacAddress 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address", t, "form", "multi") } } - if r.colorNisw != nil { - t := *r.colorNisw + if r.primaryMacAddressN != nil { + t := *r.primaryMacAddressN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address__n", t, "form", "multi") } } - if r.created != nil { - t := *r.created + if r.primaryMacAddressId != nil { + t := *r.primaryMacAddressId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.primaryMacAddressIdN != nil { + t := *r.primaryMacAddressIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id__n", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.rackN != nil { + t := *r.rackN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.rackId != nil { + t := *r.rackId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + if r.rackIdN != nil { + t := *r.rackIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") + } } - if r.description != nil { - t := *r.description + 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") + } } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.rfChannel != nil { + t := *r.rfChannel 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.rfChannelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__empty", r.rfChannelEmpty, "form", "") + } + if r.rfChannelIc != nil { + t := *r.rfChannelIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ic", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.rfChannelIe != nil { + t := *r.rfChannelIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ie", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.rfChannelIew != nil { + t := *r.rfChannelIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__iew", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.rfChannelIsw != nil { + t := *r.rfChannelIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__isw", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.rfChannelN != nil { + t := *r.rfChannelN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__n", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.rfChannelNic != nil { + t := *r.rfChannelNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nic", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.rfChannelNie != nil { + t := *r.rfChannelNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nie", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.rfChannelNiew != nil { + t := *r.rfChannelNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__niew", t, "form", "multi") } } - if r.device != nil { - t := *r.device + if r.rfChannelNisw != nil { + t := *r.rfChannelNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nisw", t, "form", "multi") } } - if r.deviceN != nil { - t := *r.deviceN + if r.rfChannelFrequency != nil { + t := *r.rfChannelFrequency 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency", t, "form", "multi") } } - if r.deviceId != nil { - t := *r.deviceId + if r.rfChannelFrequencyEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__empty", r.rfChannelFrequencyEmpty, "form", "") + } + 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, "device_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gt", t, "form", "multi") } } - if r.deviceIdN != nil { - t := *r.deviceIdN + if r.rfChannelFrequencyGte != nil { + t := *r.rfChannelFrequencyGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gte", t, "form", "multi") } } - if r.deviceType != nil { - t := *r.deviceType + if r.rfChannelFrequencyLt != nil { + t := *r.rfChannelFrequencyLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lt", t, "form", "multi") } } - if r.deviceTypeN != nil { - t := *r.deviceTypeN + if r.rfChannelFrequencyLte != nil { + t := *r.rfChannelFrequencyLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lte", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.rfChannelFrequencyN != nil { + t := *r.rfChannelFrequencyN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__n", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + if r.rfChannelWidth != nil { + t := *r.rfChannelWidth 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width", t, "form", "multi") } } - if r.id != nil { - t := *r.id + if r.rfChannelWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__empty", r.rfChannelWidthEmpty, "form", "") + } + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gt", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.rfChannelWidthGte != nil { + t := *r.rfChannelWidthGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gte", t, "form", "multi") + } } - if r.idGt != nil { - t := *r.idGt + if r.rfChannelWidthLt != nil { + t := *r.rfChannelWidthLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lt", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.rfChannelWidthLte != nil { + t := *r.rfChannelWidthLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lte", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.rfChannelWidthN != nil { + t := *r.rfChannelWidthN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__n", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.rfRoleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__empty", r.rfRoleEmpty, "form", "") + } + if r.rfRoleIc != nil { + t := *r.rfRoleIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", t, "form", "multi") } } - if r.label != nil { - t := *r.label + if r.rfRoleIe != nil { + t := *r.rfRoleIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", t, "form", "multi") } } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + if r.rfRoleIew != nil { + t := *r.rfRoleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", t, "form", "multi") + } } - if r.labelIc != nil { - t := *r.labelIc + if r.rfRoleIsw != nil { + t := *r.rfRoleIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", t, "form", "multi") } } - if r.labelIe != nil { - t := *r.labelIe + 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "form", "multi") } } - if r.labelIew != nil { - t := *r.labelIew + if r.rfRoleNic != nil { + t := *r.rfRoleNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", t, "form", "multi") } } - if r.labelIsw != nil { - t := *r.labelIsw + if r.rfRoleNie != nil { + t := *r.rfRoleNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", t, "form", "multi") } } - if r.labelN != nil { - t := *r.labelN + if r.rfRoleNiew != nil { + t := *r.rfRoleNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + if r.rfRoleNisw != nil { + t := *r.rfRoleNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.speed != nil { + t := *r.speed 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__empty", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gt", t, "form", "multi") + } } - if r.location != nil { - t := *r.location + if r.speedGte != nil { + t := *r.speedGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gte", t, "form", "multi") } } - if r.locationN != nil { - t := *r.locationN + if r.speedLt != nil { + t := *r.speedLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lt", t, "form", "multi") } } - if r.locationId != nil { - t := *r.locationId + if r.speedLte != nil { + t := *r.speedLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lte", t, "form", "multi") } } - if r.locationIdN != nil { - t := *r.locationIdN + if r.speedN != nil { + t := *r.speedN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", t, "form", "multi") } } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") + } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } - if r.moduleId != nil { - t := *r.moduleId + if r.txPower != nil { + t := *r.txPower 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power", t, "form", "multi") } } - if r.moduleIdN != nil { - t := *r.moduleIdN + if r.txPowerEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__empty", r.txPowerEmpty, "form", "") + } + 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, "module_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gt", t, "form", "multi") } } - if r.name != nil { - t := *r.name + if r.txPowerGte != nil { + t := *r.txPowerGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gte", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.txPowerLt != nil { + t := *r.txPowerLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lt", t, "form", "multi") + } } - if r.nameIc != nil { - t := *r.nameIc + if r.txPowerLte != nil { + t := *r.txPowerLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lte", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.txPowerN != nil { + t := *r.txPowerN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__n", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.typeIe != nil { + t := *r.typeIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.typeIew != nil { + t := *r.typeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.typeIsw != nil { + t := *r.typeIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.typeN != nil { + t := *r.typeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.typeNic != nil { + t := *r.typeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") } } - if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - if r.rack != nil { - t := *r.rack + if r.vdc != nil { + t := *r.vdc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc", t, "form", "multi") } } - if r.rackN != nil { - t := *r.rackN + if r.vdcN != nil { + t := *r.vdcN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc__n", t, "form", "multi") } } - if r.rackId != nil { - t := *r.rackId + if r.vdcId != nil { + t := *r.vdcId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + if r.vdcIdN != nil { + t := *r.vdcIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id__n", t, "form", "multi") } } - if r.rearPortId != nil { - t := *r.rearPortId + if r.vdcIdentifier != nil { + t := *r.vdcIdentifier if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier", t, "form", "multi") } } - if r.rearPortIdN != nil { - t := *r.rearPortIdN + if r.vdcIdentifierN != nil { + t := *r.vdcIdentifierN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier__n", t, "form", "multi") } } - if r.rearPortPosition != nil { - t := *r.rearPortPosition + if r.virtualChassis != nil { + t := *r.virtualChassis if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") } } - if r.rearPortPositionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__empty", r.rearPortPositionEmpty, "") + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } } - if r.rearPortPositionGt != nil { - t := *r.rearPortPositionGt + if r.virtualChassisId != nil { + t := *r.virtualChassisId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") } } - if r.rearPortPositionGte != nil { - t := *r.rearPortPositionGte + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") } } - if r.rearPortPositionLt != nil { - t := *r.rearPortPositionLt + 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, "rear_port_position__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member", t, "form", "multi") } } - if r.rearPortPositionLte != nil { - t := *r.rearPortPositionLte + 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, "rear_port_position__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member_id", t, "form", "multi") } } - if r.rearPortPositionN != nil { - t := *r.rearPortPositionN + if r.virtualCircuitId != nil { + t := *r.virtualCircuitId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rear_port_position__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id", t, "form", "multi") } } - if r.region != nil { - t := *r.region + if r.virtualCircuitIdN != nil { + t := *r.virtualCircuitIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_id__n", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.virtualCircuitTerminationId != nil { + t := *r.virtualCircuitTerminationId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_termination_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_termination_id", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + if r.virtualCircuitTerminationIdN != nil { + t := *r.virtualCircuitTerminationIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_termination_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_circuit_termination_id__n", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + if r.vlan != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", r.vlan, "form", "") + } + if r.vlanId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", r.vlanId, "form", "") + } + if r.vlanTranslationPolicy != nil { + t := *r.vlanTranslationPolicy 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy", t, "form", "multi") } } - if r.role != nil { - t := *r.role + if r.vlanTranslationPolicyN != nil { + t := *r.vlanTranslationPolicyN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy__n", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + if r.vlanTranslationPolicyId != nil { + t := *r.vlanTranslationPolicyId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + if r.vlanTranslationPolicyIdN != nil { + t := *r.vlanTranslationPolicyIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id__n", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + if r.vrf != nil { + t := *r.vrf 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "form", "multi") } } - if r.site != nil { - t := *r.site + if r.vrfN != nil { + t := *r.vrfN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + if r.vrfId != nil { + t := *r.vrfId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + if r.vrfIdN != nil { + t := *r.vrfIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + if r.wirelessLanId != nil { + t := *r.wirelessLanId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + if r.wirelessLanIdN != nil { + t := *r.wirelessLanIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id__n", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + if r.wirelessLinkId != nil { + t := *r.wirelessLinkId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + if r.wirelessLinkIdN != nil { + t := *r.wirelessLinkIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id__n", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + if r.wwn != nil { + t := *r.wwn 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.wwnIc != nil { + t := *r.wwnIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ic", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.wwnIe != nil { + t := *r.wwnIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ie", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + if r.wwnIew != nil { + t := *r.wwnIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__iew", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + if r.wwnIsw != nil { + t := *r.wwnIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__isw", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + if r.wwnN != nil { + t := *r.wwnN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__n", t, "form", "multi") + } } - if r.virtualChassis != nil { - t := *r.virtualChassis + if r.wwnNic != nil { + t := *r.wwnNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nic", t, "form", "multi") } } - if r.virtualChassisN != nil { - t := *r.virtualChassisN + if r.wwnNie != nil { + t := *r.wwnNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nie", t, "form", "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId + if r.wwnNiew != nil { + t := *r.wwnNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__niew", t, "form", "multi") } } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN + if r.wwnNisw != nil { + t := *r.wwnNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nisw", t, "form", "multi") } } // to determine the Content-Type header @@ -36919,56 +52723,55 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableFrontPortRequest *PatchedWritableFrontPortRequest +type ApiDcimInterfacesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableInterfaceRequest *PatchedWritableInterfaceRequest } -func (r ApiDcimFrontPortsPartialUpdateRequest) PatchedWritableFrontPortRequest(patchedWritableFrontPortRequest PatchedWritableFrontPortRequest) ApiDcimFrontPortsPartialUpdateRequest { - r.patchedWritableFrontPortRequest = &patchedWritableFrontPortRequest +func (r ApiDcimInterfacesPartialUpdateRequest) PatchedWritableInterfaceRequest(patchedWritableInterfaceRequest PatchedWritableInterfaceRequest) ApiDcimInterfacesPartialUpdateRequest { + r.patchedWritableInterfaceRequest = &patchedWritableInterfaceRequest return r } -func (r ApiDcimFrontPortsPartialUpdateRequest) Execute() (*FrontPort, *http.Response, error) { - return r.ApiService.DcimFrontPortsPartialUpdateExecute(r) +func (r ApiDcimInterfacesPartialUpdateRequest) Execute() (*Interface, *http.Response, error) { + return r.ApiService.DcimInterfacesPartialUpdateExecute(r) } /* -DcimFrontPortsPartialUpdate Method for DcimFrontPortsPartialUpdate +DcimInterfacesPartialUpdate Method for DcimInterfacesPartialUpdate -Patch a front port object. +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 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 interface. + @return ApiDcimInterfacesPartialUpdateRequest */ -func (a *DcimAPIService) DcimFrontPortsPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortsPartialUpdateRequest { - return ApiDcimFrontPortsPartialUpdateRequest{ +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 FrontPort -func (a *DcimAPIService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsPartialUpdateRequest) (*FrontPort, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesPartialUpdateRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/interfaces/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -36993,7 +52796,7 @@ func (a *DcimAPIService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableFrontPortRequest + localVarPostBody = r.patchedWritableInterfaceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -37045,50 +52848,49 @@ func (a *DcimAPIService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortsPathsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimInterfacesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimFrontPortsPathsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) { - return r.ApiService.DcimFrontPortsPathsRetrieveExecute(r) +func (r ApiDcimInterfacesRetrieveRequest) Execute() (*Interface, *http.Response, error) { + return r.ApiService.DcimInterfacesRetrieveExecute(r) } /* -DcimFrontPortsPathsRetrieve Method for DcimFrontPortsPathsRetrieve +DcimInterfacesRetrieve Method for DcimInterfacesRetrieve -Return all CablePaths which traverse a given pass-through port. +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 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 interface. + @return ApiDcimInterfacesRetrieveRequest */ -func (a *DcimAPIService) DcimFrontPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsPathsRetrieveRequest { - return ApiDcimFrontPortsPathsRetrieveRequest{ +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 FrontPort -func (a *DcimAPIService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsPathsRetrieveRequest) (*FrontPort, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrieveRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPathsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-ports/{id}/paths/" + localVarPath := localBasePath + "/api/dcim/interfaces/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -37163,50 +52965,49 @@ func (a *DcimAPIService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimInterfacesTraceRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimFrontPortsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) { - return r.ApiService.DcimFrontPortsRetrieveExecute(r) +func (r ApiDcimInterfacesTraceRetrieveRequest) Execute() (*Interface, *http.Response, error) { + return r.ApiService.DcimInterfacesTraceRetrieveExecute(r) } /* -DcimFrontPortsRetrieve Method for DcimFrontPortsRetrieve +DcimInterfacesTraceRetrieve Method for DcimInterfacesTraceRetrieve -Get a front port object. +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 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 interface. + @return ApiDcimInterfacesTraceRetrieveRequest */ -func (a *DcimAPIService) DcimFrontPortsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsRetrieveRequest { - return ApiDcimFrontPortsRetrieveRequest{ +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 FrontPort -func (a *DcimAPIService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrieveRequest) (*FrontPort, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesTraceRetrieveRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesTraceRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/interfaces/{id}/trace/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -37281,63 +53082,62 @@ func (a *DcimAPIService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimFrontPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableFrontPortRequest *WritableFrontPortRequest +type ApiDcimInterfacesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableInterfaceRequest *WritableInterfaceRequest } -func (r ApiDcimFrontPortsUpdateRequest) WritableFrontPortRequest(writableFrontPortRequest WritableFrontPortRequest) ApiDcimFrontPortsUpdateRequest { - r.writableFrontPortRequest = &writableFrontPortRequest +func (r ApiDcimInterfacesUpdateRequest) WritableInterfaceRequest(writableInterfaceRequest WritableInterfaceRequest) ApiDcimInterfacesUpdateRequest { + r.writableInterfaceRequest = &writableInterfaceRequest return r } -func (r ApiDcimFrontPortsUpdateRequest) Execute() (*FrontPort, *http.Response, error) { - return r.ApiService.DcimFrontPortsUpdateExecute(r) +func (r ApiDcimInterfacesUpdateRequest) Execute() (*Interface, *http.Response, error) { + return r.ApiService.DcimInterfacesUpdateExecute(r) } /* -DcimFrontPortsUpdate Method for DcimFrontPortsUpdate +DcimInterfacesUpdate Method for DcimInterfacesUpdate -Put a front port object. +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 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 interface. + @return ApiDcimInterfacesUpdateRequest */ -func (a *DcimAPIService) DcimFrontPortsUpdate(ctx context.Context, id int32) ApiDcimFrontPortsUpdateRequest { - return ApiDcimFrontPortsUpdateRequest{ +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 FrontPort -func (a *DcimAPIService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRequest) (*FrontPort, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/front-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/interfaces/{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.writableFrontPortRequest == nil { - return localVarReturnValue, nil, reportError("writableFrontPortRequest is required and must be specified") + if r.writableInterfaceRequest == nil { + return localVarReturnValue, nil, reportError("writableInterfaceRequest is required and must be specified") } // to determine the Content-Type header @@ -37358,7 +53158,7 @@ func (a *DcimAPIService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableFrontPortRequest + localVarPostBody = r.writableInterfaceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -37410,56 +53210,56 @@ func (a *DcimAPIService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInterfaceTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - interfaceTemplateRequest *[]InterfaceTemplateRequest +type ApiDcimInventoryItemRolesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemRoleRequest *[]InventoryItemRoleRequest } -func (r ApiDcimInterfaceTemplatesBulkDestroyRequest) InterfaceTemplateRequest(interfaceTemplateRequest []InterfaceTemplateRequest) ApiDcimInterfaceTemplatesBulkDestroyRequest { - r.interfaceTemplateRequest = &interfaceTemplateRequest +func (r ApiDcimInventoryItemRolesBulkDestroyRequest) InventoryItemRoleRequest(inventoryItemRoleRequest []InventoryItemRoleRequest) ApiDcimInventoryItemRolesBulkDestroyRequest { + r.inventoryItemRoleRequest = &inventoryItemRoleRequest return r } -func (r ApiDcimInterfaceTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesBulkDestroyExecute(r) +func (r ApiDcimInventoryItemRolesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInventoryItemRolesBulkDestroyExecute(r) } /* -DcimInterfaceTemplatesBulkDestroy Method for DcimInterfaceTemplatesBulkDestroy +DcimInventoryItemRolesBulkDestroy Method for DcimInventoryItemRolesBulkDestroy -Delete a list of interface template objects. +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 ApiDcimInterfaceTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesBulkDestroyRequest */ -func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroy(ctx context.Context) ApiDcimInterfaceTemplatesBulkDestroyRequest { - return ApiDcimInterfaceTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroy(ctx context.Context) ApiDcimInventoryItemRolesBulkDestroyRequest { + return ApiDcimInventoryItemRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInterfaceTemplatesBulkDestroyRequest) (*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.DcimInterfaceTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interface-templates/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.interfaceTemplateRequest == nil { - return nil, reportError("interfaceTemplateRequest is required and must be specified") + if r.inventoryItemRoleRequest == nil { + return nil, reportError("inventoryItemRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -37480,7 +53280,7 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInter localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.interfaceTemplateRequest + localVarPostBody = r.inventoryItemRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -37523,59 +53323,58 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInter return localVarHTTPResponse, nil } -type ApiDcimInterfaceTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - interfaceTemplateRequest *[]InterfaceTemplateRequest +type ApiDcimInventoryItemRolesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemRoleRequest *[]InventoryItemRoleRequest } -func (r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) InterfaceTemplateRequest(interfaceTemplateRequest []InterfaceTemplateRequest) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest { - r.interfaceTemplateRequest = &interfaceTemplateRequest +func (r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest []InventoryItemRoleRequest) ApiDcimInventoryItemRolesBulkPartialUpdateRequest { + r.inventoryItemRoleRequest = &inventoryItemRoleRequest return r } -func (r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) Execute() ([]InterfaceTemplate, *http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) Execute() ([]InventoryItemRole, *http.Response, error) { + return r.ApiService.DcimInventoryItemRolesBulkPartialUpdateExecute(r) } /* -DcimInterfaceTemplatesBulkPartialUpdate Method for DcimInterfaceTemplatesBulkPartialUpdate +DcimInventoryItemRolesBulkPartialUpdate Method for DcimInventoryItemRolesBulkPartialUpdate -Patch a list of interface template objects. +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 ApiDcimInterfaceTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest { - return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkPartialUpdateRequest { + return ApiDcimInventoryItemRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InterfaceTemplate -func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { +// @return []InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) ([]InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InterfaceTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interface-templates/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.interfaceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("interfaceTemplateRequest is required and must be specified") + if r.inventoryItemRoleRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -37596,7 +53395,7 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.interfaceTemplateRequest + localVarPostBody = r.inventoryItemRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -37648,59 +53447,58 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDci return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInterfaceTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - interfaceTemplateRequest *[]InterfaceTemplateRequest +type ApiDcimInventoryItemRolesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemRoleRequest *[]InventoryItemRoleRequest } -func (r ApiDcimInterfaceTemplatesBulkUpdateRequest) InterfaceTemplateRequest(interfaceTemplateRequest []InterfaceTemplateRequest) ApiDcimInterfaceTemplatesBulkUpdateRequest { - r.interfaceTemplateRequest = &interfaceTemplateRequest +func (r ApiDcimInventoryItemRolesBulkUpdateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest []InventoryItemRoleRequest) ApiDcimInventoryItemRolesBulkUpdateRequest { + r.inventoryItemRoleRequest = &inventoryItemRoleRequest return r } -func (r ApiDcimInterfaceTemplatesBulkUpdateRequest) Execute() ([]InterfaceTemplate, *http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesBulkUpdateExecute(r) +func (r ApiDcimInventoryItemRolesBulkUpdateRequest) Execute() ([]InventoryItemRole, *http.Response, error) { + return r.ApiService.DcimInventoryItemRolesBulkUpdateExecute(r) } /* -DcimInterfaceTemplatesBulkUpdate Method for DcimInterfaceTemplatesBulkUpdate +DcimInventoryItemRolesBulkUpdate Method for DcimInventoryItemRolesBulkUpdate -Put a list of interface template objects. +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 ApiDcimInterfaceTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesBulkUpdateRequest */ -func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkUpdateRequest { - return ApiDcimInterfaceTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkUpdateRequest { + return ApiDcimInventoryItemRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InterfaceTemplate -func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterfaceTemplatesBulkUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { +// @return []InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInventoryItemRolesBulkUpdateRequest) ([]InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InterfaceTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interface-templates/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.interfaceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("interfaceTemplateRequest is required and must be specified") + if r.inventoryItemRoleRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -37721,7 +53519,7 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.interfaceTemplateRequest + localVarPostBody = r.inventoryItemRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -37773,59 +53571,58 @@ func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterf return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInterfaceTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest +type ApiDcimInventoryItemRolesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemRoleRequest *InventoryItemRoleRequest } -func (r ApiDcimInterfaceTemplatesCreateRequest) WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest WritableInterfaceTemplateRequest) ApiDcimInterfaceTemplatesCreateRequest { - r.writableInterfaceTemplateRequest = &writableInterfaceTemplateRequest +func (r ApiDcimInventoryItemRolesCreateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest InventoryItemRoleRequest) ApiDcimInventoryItemRolesCreateRequest { + r.inventoryItemRoleRequest = &inventoryItemRoleRequest return r } -func (r ApiDcimInterfaceTemplatesCreateRequest) Execute() (*InterfaceTemplate, *http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesCreateExecute(r) +func (r ApiDcimInventoryItemRolesCreateRequest) Execute() (*InventoryItemRole, *http.Response, error) { + return r.ApiService.DcimInventoryItemRolesCreateExecute(r) } /* -DcimInterfaceTemplatesCreate Method for DcimInterfaceTemplatesCreate +DcimInventoryItemRolesCreate Method for DcimInventoryItemRolesCreate -Post a list of interface template objects. +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 ApiDcimInterfaceTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesCreateRequest */ -func (a *DcimAPIService) DcimInterfaceTemplatesCreate(ctx context.Context) ApiDcimInterfaceTemplatesCreateRequest { - return ApiDcimInterfaceTemplatesCreateRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesCreate(ctx context.Context) ApiDcimInventoryItemRolesCreateRequest { + return ApiDcimInventoryItemRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimAPIService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceTemplatesCreateRequest) (*InterfaceTemplate, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryItemRolesCreateRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interface-templates/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableInterfaceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableInterfaceTemplateRequest is required and must be specified") + if r.inventoryItemRoleRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -37846,7 +53643,7 @@ func (a *DcimAPIService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableInterfaceTemplateRequest + localVarPostBody = r.inventoryItemRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -37898,47 +53695,47 @@ func (a *DcimAPIService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInterfaceTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimInventoryItemRolesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimInterfaceTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesDestroyExecute(r) +func (r ApiDcimInventoryItemRolesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInventoryItemRolesDestroyExecute(r) } /* -DcimInterfaceTemplatesDestroy Method for DcimInterfaceTemplatesDestroy - -Delete a interface template object. +DcimInventoryItemRolesDestroy Method for DcimInventoryItemRolesDestroy - @param ctx 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 +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 */ -func (a *DcimAPIService) DcimInterfaceTemplatesDestroy(ctx context.Context, id int32) ApiDcimInterfaceTemplatesDestroyRequest { - return ApiDcimInterfaceTemplatesDestroyRequest{ +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) DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterfaceTemplatesDestroyRequest) (*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.DcimInterfaceTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interface-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -38004,992 +53801,872 @@ func (a *DcimAPIService) DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterface return localVarHTTPResponse, nil } -type ApiDcimInterfaceTemplatesListRequest struct { - 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 - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - deviceTypeId *[]*int32 - deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - enabled *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 - mgmtOnly *bool +type ApiDcimInventoryItemRolesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 - 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 -} - -func (r ApiDcimInterfaceTemplatesListRequest) BridgeId(bridgeId []int32) ApiDcimInterfaceTemplatesListRequest { - r.bridgeId = &bridgeId - return r -} - -func (r ApiDcimInterfaceTemplatesListRequest) BridgeIdN(bridgeIdN []int32) ApiDcimInterfaceTemplatesListRequest { - r.bridgeIdN = &bridgeIdN - return r -} - -func (r ApiDcimInterfaceTemplatesListRequest) Created(created []time.Time) ApiDcimInterfaceTemplatesListRequest { - r.created = &created - 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 -} - -func (r ApiDcimInterfaceTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInterfaceTemplatesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiDcimInterfaceTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInterfaceTemplatesListRequest { - r.createdLt = &createdLt - return r + 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 } -func (r ApiDcimInterfaceTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInterfaceTemplatesListRequest { - r.createdLte = &createdLte +func (r ApiDcimInventoryItemRolesListRequest) Color(color []string) ApiDcimInventoryItemRolesListRequest { + r.color = &color return r } -func (r ApiDcimInterfaceTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimInterfaceTemplatesListRequest { - r.createdN = &createdN +func (r ApiDcimInventoryItemRolesListRequest) ColorEmpty(colorEmpty bool) ApiDcimInventoryItemRolesListRequest { + r.colorEmpty = &colorEmpty return r } -func (r ApiDcimInterfaceTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInterfaceTemplatesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimInventoryItemRolesListRequest) ColorIc(colorIc []string) ApiDcimInventoryItemRolesListRequest { + r.colorIc = &colorIc return r } -func (r ApiDcimInterfaceTemplatesListRequest) Description(description []string) ApiDcimInterfaceTemplatesListRequest { - r.description = &description +func (r ApiDcimInventoryItemRolesListRequest) ColorIe(colorIe []string) ApiDcimInventoryItemRolesListRequest { + r.colorIe = &colorIe return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInterfaceTemplatesListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiDcimInventoryItemRolesListRequest) ColorIew(colorIew []string) ApiDcimInventoryItemRolesListRequest { + r.colorIew = &colorIew return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimInventoryItemRolesListRequest) ColorIsw(colorIsw []string) ApiDcimInventoryItemRolesListRequest { + r.colorIsw = &colorIsw return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimInventoryItemRolesListRequest) ColorN(colorN []string) ApiDcimInventoryItemRolesListRequest { + r.colorN = &colorN return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimInventoryItemRolesListRequest) ColorNic(colorNic []string) ApiDcimInventoryItemRolesListRequest { + r.colorNic = &colorNic return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimInventoryItemRolesListRequest) ColorNie(colorNie []string) ApiDcimInventoryItemRolesListRequest { + r.colorNie = &colorNie return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimInventoryItemRolesListRequest) ColorNiew(colorNiew []string) ApiDcimInventoryItemRolesListRequest { + r.colorNiew = &colorNiew return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimInventoryItemRolesListRequest) ColorNisw(colorNisw []string) ApiDcimInventoryItemRolesListRequest { + r.colorNisw = &colorNisw return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimInventoryItemRolesListRequest) Created(created []time.Time) ApiDcimInventoryItemRolesListRequest { + r.created = &created return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimInventoryItemRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInventoryItemRolesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiDcimInterfaceTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInterfaceTemplatesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimInventoryItemRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInventoryItemRolesListRequest { + r.createdGt = &createdGt return r } -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.deviceTypeId = &deviceTypeId +func (r ApiDcimInventoryItemRolesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInventoryItemRolesListRequest { + r.createdGte = &createdGte return r } -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN +func (r ApiDcimInventoryItemRolesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInventoryItemRolesListRequest { + r.createdLt = &createdLt return r } -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeId = &devicetypeId +func (r ApiDcimInventoryItemRolesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInventoryItemRolesListRequest { + r.createdLte = &createdLte return r } -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimInventoryItemRolesListRequest) CreatedN(createdN []time.Time) ApiDcimInventoryItemRolesListRequest { + r.createdN = &createdN return r } -func (r ApiDcimInterfaceTemplatesListRequest) Enabled(enabled bool) ApiDcimInterfaceTemplatesListRequest { - r.enabled = &enabled +func (r ApiDcimInventoryItemRolesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInventoryItemRolesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiDcimInterfaceTemplatesListRequest) Id(id []int32) ApiDcimInterfaceTemplatesListRequest { - r.id = &id +func (r ApiDcimInventoryItemRolesListRequest) Description(description []string) ApiDcimInventoryItemRolesListRequest { + r.description = &description return r } -func (r ApiDcimInterfaceTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimInterfaceTemplatesListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimInventoryItemRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemRolesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimInterfaceTemplatesListRequest) IdGt(idGt []int32) ApiDcimInterfaceTemplatesListRequest { - r.idGt = &idGt +func (r ApiDcimInventoryItemRolesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiDcimInterfaceTemplatesListRequest) IdGte(idGte []int32) ApiDcimInterfaceTemplatesListRequest { - r.idGte = &idGte +func (r ApiDcimInventoryItemRolesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiDcimInterfaceTemplatesListRequest) IdLt(idLt []int32) ApiDcimInterfaceTemplatesListRequest { - r.idLt = &idLt +func (r ApiDcimInventoryItemRolesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiDcimInterfaceTemplatesListRequest) IdLte(idLte []int32) ApiDcimInterfaceTemplatesListRequest { - r.idLte = &idLte +func (r ApiDcimInventoryItemRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimInterfaceTemplatesListRequest) IdN(idN []int32) ApiDcimInterfaceTemplatesListRequest { - r.idN = &idN +func (r ApiDcimInventoryItemRolesListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiDcimInterfaceTemplatesListRequest) Label(label []string) ApiDcimInterfaceTemplatesListRequest { - r.label = &label +func (r ApiDcimInventoryItemRolesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimInterfaceTemplatesListRequest { - r.labelEmpty = &labelEmpty +func (r ApiDcimInventoryItemRolesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelIc(labelIc []string) ApiDcimInterfaceTemplatesListRequest { - r.labelIc = &labelIc +func (r ApiDcimInventoryItemRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelIe(labelIe []string) ApiDcimInterfaceTemplatesListRequest { - r.labelIe = &labelIe +func (r ApiDcimInventoryItemRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemRolesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelIew(labelIew []string) ApiDcimInterfaceTemplatesListRequest { - r.labelIew = &labelIew +func (r ApiDcimInventoryItemRolesListRequest) Id(id []int32) ApiDcimInventoryItemRolesListRequest { + r.id = &id return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimInterfaceTemplatesListRequest { - r.labelIsw = &labelIsw +func (r ApiDcimInventoryItemRolesListRequest) IdEmpty(idEmpty bool) ApiDcimInventoryItemRolesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelN(labelN []string) ApiDcimInterfaceTemplatesListRequest { - r.labelN = &labelN +func (r ApiDcimInventoryItemRolesListRequest) IdGt(idGt []int32) ApiDcimInventoryItemRolesListRequest { + r.idGt = &idGt return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelNic(labelNic []string) ApiDcimInterfaceTemplatesListRequest { - r.labelNic = &labelNic +func (r ApiDcimInventoryItemRolesListRequest) IdGte(idGte []int32) ApiDcimInventoryItemRolesListRequest { + r.idGte = &idGte return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelNie(labelNie []string) ApiDcimInterfaceTemplatesListRequest { - r.labelNie = &labelNie +func (r ApiDcimInventoryItemRolesListRequest) IdLt(idLt []int32) ApiDcimInventoryItemRolesListRequest { + r.idLt = &idLt return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimInterfaceTemplatesListRequest { - r.labelNiew = &labelNiew +func (r ApiDcimInventoryItemRolesListRequest) IdLte(idLte []int32) ApiDcimInventoryItemRolesListRequest { + r.idLte = &idLte return r } -func (r ApiDcimInterfaceTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimInterfaceTemplatesListRequest { - r.labelNisw = &labelNisw +func (r ApiDcimInventoryItemRolesListRequest) IdN(idN []int32) ApiDcimInventoryItemRolesListRequest { + r.idN = &idN return r } -func (r ApiDcimInterfaceTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimInterfaceTemplatesListRequest) Limit(limit int32) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) Limit(limit int32) ApiDcimInventoryItemRolesListRequest { r.limit = &limit return r } -func (r ApiDcimInterfaceTemplatesListRequest) MgmtOnly(mgmtOnly bool) ApiDcimInterfaceTemplatesListRequest { - r.mgmtOnly = &mgmtOnly - return r -} - -func (r ApiDcimInterfaceTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInventoryItemRolesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduleTypeId = &moduleTypeId - return r -} - -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduleTypeIdN = &moduleTypeIdN - return r -} - -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - -func (r ApiDcimInterfaceTemplatesListRequest) Name(name []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) Name(name []string) ApiDcimInventoryItemRolesListRequest { r.name = &name return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameEmpty(nameEmpty bool) ApiDcimInventoryItemRolesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameIc(nameIc []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameIc(nameIc []string) ApiDcimInventoryItemRolesListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameIe(nameIe []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameIe(nameIe []string) ApiDcimInventoryItemRolesListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameIew(nameIew []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameIew(nameIew []string) ApiDcimInventoryItemRolesListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameIsw(nameIsw []string) ApiDcimInventoryItemRolesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameN(nameN []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameN(nameN []string) ApiDcimInventoryItemRolesListRequest { r.nameN = &nameN return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameNic(nameNic []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameNic(nameNic []string) ApiDcimInventoryItemRolesListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameNie(nameNie []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameNie(nameNie []string) ApiDcimInventoryItemRolesListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameNiew(nameNiew []string) ApiDcimInventoryItemRolesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimInterfaceTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) NameNisw(nameNisw []string) ApiDcimInventoryItemRolesListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiDcimInterfaceTemplatesListRequest) Offset(offset int32) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) Offset(offset int32) ApiDcimInventoryItemRolesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimInterfaceTemplatesListRequest) Ordering(ordering string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) Ordering(ordering string) ApiDcimInventoryItemRolesListRequest { r.ordering = &ordering return r } -func (r ApiDcimInterfaceTemplatesListRequest) PoeMode(poeMode []string) ApiDcimInterfaceTemplatesListRequest { - r.poeMode = &poeMode +// Search +func (r ApiDcimInventoryItemRolesListRequest) Q(q string) ApiDcimInventoryItemRolesListRequest { + r.q = &q return r } -func (r ApiDcimInterfaceTemplatesListRequest) PoeModeN(poeModeN []string) ApiDcimInterfaceTemplatesListRequest { - r.poeModeN = &poeModeN +func (r ApiDcimInventoryItemRolesListRequest) Slug(slug []string) ApiDcimInventoryItemRolesListRequest { + r.slug = &slug return r } -func (r ApiDcimInterfaceTemplatesListRequest) PoeType(poeType []string) ApiDcimInterfaceTemplatesListRequest { - r.poeType = &poeType +func (r ApiDcimInventoryItemRolesListRequest) SlugEmpty(slugEmpty bool) ApiDcimInventoryItemRolesListRequest { + r.slugEmpty = &slugEmpty return r } -func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeN(poeTypeN []string) ApiDcimInterfaceTemplatesListRequest { - r.poeTypeN = &poeTypeN +func (r ApiDcimInventoryItemRolesListRequest) SlugIc(slugIc []string) ApiDcimInventoryItemRolesListRequest { + r.slugIc = &slugIc return r } -// Search -func (r ApiDcimInterfaceTemplatesListRequest) Q(q string) ApiDcimInterfaceTemplatesListRequest { - r.q = &q +func (r ApiDcimInventoryItemRolesListRequest) SlugIe(slugIe []string) ApiDcimInventoryItemRolesListRequest { + r.slugIe = &slugIe return r } -func (r ApiDcimInterfaceTemplatesListRequest) RfRole(rfRole []string) ApiDcimInterfaceTemplatesListRequest { - r.rfRole = &rfRole +func (r ApiDcimInventoryItemRolesListRequest) SlugIew(slugIew []string) ApiDcimInventoryItemRolesListRequest { + r.slugIew = &slugIew return r } -func (r ApiDcimInterfaceTemplatesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterfaceTemplatesListRequest { - r.rfRoleN = &rfRoleN +func (r ApiDcimInventoryItemRolesListRequest) SlugIsw(slugIsw []string) ApiDcimInventoryItemRolesListRequest { + r.slugIsw = &slugIsw return r } -func (r ApiDcimInterfaceTemplatesListRequest) Type_(type_ []string) ApiDcimInterfaceTemplatesListRequest { - r.type_ = &type_ +func (r ApiDcimInventoryItemRolesListRequest) SlugN(slugN []string) ApiDcimInventoryItemRolesListRequest { + r.slugN = &slugN return r } -func (r ApiDcimInterfaceTemplatesListRequest) TypeN(typeN []string) ApiDcimInterfaceTemplatesListRequest { - r.typeN = &typeN +func (r ApiDcimInventoryItemRolesListRequest) SlugNic(slugNic []string) ApiDcimInventoryItemRolesListRequest { + r.slugNic = &slugNic return r } -func (r ApiDcimInterfaceTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInventoryItemRolesListRequest) SlugNie(slugNie []string) ApiDcimInventoryItemRolesListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiDcimInventoryItemRolesListRequest) SlugNiew(slugNiew []string) ApiDcimInventoryItemRolesListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiDcimInventoryItemRolesListRequest) SlugNisw(slugNisw []string) ApiDcimInventoryItemRolesListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiDcimInventoryItemRolesListRequest) Tag(tag []string) ApiDcimInventoryItemRolesListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimInventoryItemRolesListRequest) TagN(tagN []string) ApiDcimInventoryItemRolesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimInventoryItemRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemRolesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimInterfaceTemplatesListRequest) Execute() (*PaginatedInterfaceTemplateList, *http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesListExecute(r) +func (r ApiDcimInventoryItemRolesListRequest) Execute() (*PaginatedInventoryItemRoleList, *http.Response, error) { + return r.ApiService.DcimInventoryItemRolesListExecute(r) } /* -DcimInterfaceTemplatesList Method for DcimInterfaceTemplatesList +DcimInventoryItemRolesList Method for DcimInventoryItemRolesList -Get a list of interface template objects. +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 ApiDcimInterfaceTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesListRequest */ -func (a *DcimAPIService) DcimInterfaceTemplatesList(ctx context.Context) ApiDcimInterfaceTemplatesListRequest { - return ApiDcimInterfaceTemplatesListRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesList(ctx context.Context) ApiDcimInventoryItemRolesListRequest { + return ApiDcimInventoryItemRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInterfaceTemplateList -func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTemplatesListRequest) (*PaginatedInterfaceTemplateList, *http.Response, error) { +// @return PaginatedInventoryItemRoleList +func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryItemRolesListRequest) (*PaginatedInventoryItemRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInterfaceTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInventoryItemRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interface-templates/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.bridgeId != nil { - t := *r.bridgeId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "multi") - } - } - if r.bridgeIdN != nil { - t := *r.bridgeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_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 r.color != nil { + t := *r.color 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "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.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") } - if r.createdLte != nil { - t := *r.createdLte + if r.colorIc != nil { + t := *r.colorIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.colorIe != nil { + t := *r.colorIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description + if r.colorIew != nil { + t := *r.colorIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.colorIsw != nil { + t := *r.colorIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.colorN != nil { + t := *r.colorN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.colorNic != nil { + t := *r.colorNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.colorNie != nil { + t := *r.colorNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.colorNiew != nil { + t := *r.colorNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.colorNisw != nil { + t := *r.colorNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + 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, "device_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + 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, "device_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + 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, "devicetype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + 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, "devicetype_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.idGt != nil { - t := *r.idGt + 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, "id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + 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, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + 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, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.label != nil { - t := *r.label + 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc + 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, "label__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.labelIe != nil { - t := *r.labelIe + 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.labelIew != nil { - t := *r.labelIew + 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.labelIsw != nil { - t := *r.labelIsw + 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.labelN != nil { - t := *r.labelN + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -38997,10 +54674,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -39008,10 +54685,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -39019,10 +54696,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -39030,10 +54707,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -39041,10 +54718,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -39052,10 +54729,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -39063,88 +54740,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.mgmtOnly != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_only", r.mgmtOnly, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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, "module_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") - } - } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -39152,10 +54782,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -39163,10 +54793,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -39174,10 +54804,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -39185,10 +54815,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -39196,10 +54826,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -39207,10 +54837,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -39218,10 +54848,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -39229,607 +54859,161 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.poeMode != nil { - t := *r.poeMode + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.slug != nil { + t := *r.slug 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } - if r.poeModeN != nil { - t := *r.poeModeN + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.poeType != nil { - t := *r.poeType + if r.slugIe != nil { + t := *r.slugIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.poeTypeN != nil { - t := *r.poeTypeN + if r.slugIew != nil { + t := *r.slugIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rfRole != nil { - t := *r.rfRole + if r.slugIsw != nil { + t := *r.slugIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.rfRoleN != nil { - t := *r.rfRoleN + if r.slugN != nil { + t := *r.slugN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + if r.slugNic != nil { + t := *r.slugNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + if r.slugNie != nil { + t := *r.slugNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__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 - } - } - } - 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 ApiDcimInterfaceTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableInterfaceTemplateRequest *PatchedWritableInterfaceTemplateRequest -} - -func (r ApiDcimInterfaceTemplatesPartialUpdateRequest) PatchedWritableInterfaceTemplateRequest(patchedWritableInterfaceTemplateRequest PatchedWritableInterfaceTemplateRequest) ApiDcimInterfaceTemplatesPartialUpdateRequest { - r.patchedWritableInterfaceTemplateRequest = &patchedWritableInterfaceTemplateRequest - return r -} - -func (r ApiDcimInterfaceTemplatesPartialUpdateRequest) Execute() (*InterfaceTemplate, *http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesPartialUpdateExecute(r) -} - -/* -DcimInterfaceTemplatesPartialUpdate Method for DcimInterfaceTemplatesPartialUpdate - -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 -*/ -func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesPartialUpdateRequest { - return ApiDcimInterfaceTemplatesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInterfaceTemplatesPartialUpdateRequest) (*InterfaceTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/interface-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{"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.patchedWritableInterfaceTemplateRequest - 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(), + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInterfaceTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimInterfaceTemplatesRetrieveRequest) Execute() (*InterfaceTemplate, *http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesRetrieveExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInterfaceTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInterfaceTemplatesRetrieveRequest { - return ApiDcimInterfaceTemplatesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimAPIService) DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfaceTemplatesRetrieveRequest) (*InterfaceTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/interface-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 - } - - // 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 + if r.slugNiew != nil { + t := *r.slugNiew + 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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "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 ApiDcimInterfaceTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest -} - -func (r ApiDcimInterfaceTemplatesUpdateRequest) WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest WritableInterfaceTemplateRequest) ApiDcimInterfaceTemplatesUpdateRequest { - r.writableInterfaceTemplateRequest = &writableInterfaceTemplateRequest - return r -} - -func (r ApiDcimInterfaceTemplatesUpdateRequest) Execute() (*InterfaceTemplate, *http.Response, error) { - return r.ApiService.DcimInterfaceTemplatesUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInterfaceTemplatesUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesUpdateRequest { - return ApiDcimInterfaceTemplatesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimAPIService) DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceTemplatesUpdateRequest) (*InterfaceTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/interface-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.writableInterfaceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableInterfaceTemplateRequest 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.writableInterfaceTemplateRequest - 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.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "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(), + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInterfacesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - interfaceRequest *[]InterfaceRequest -} - -func (r ApiDcimInterfacesBulkDestroyRequest) InterfaceRequest(interfaceRequest []InterfaceRequest) ApiDcimInterfacesBulkDestroyRequest { - r.interfaceRequest = &interfaceRequest - return r -} - -func (r ApiDcimInterfacesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInterfacesBulkDestroyExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInterfacesBulkDestroy(ctx context.Context) ApiDcimInterfacesBulkDestroyRequest { - return ApiDcimInterfacesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, } -} - -// Execute executes the request -func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/interfaces/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.interfaceRequest == nil { - return nil, reportError("interfaceRequest is required and must be specified") + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -39838,15 +55022,13 @@ func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBul } // 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.interfaceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -39863,19 +55045,19 @@ func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBul } 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 { @@ -39883,66 +55065,75 @@ func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBul body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiDcimInterfacesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - interfaceRequest *[]InterfaceRequest +type ApiDcimInventoryItemRolesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedInventoryItemRoleRequest *PatchedInventoryItemRoleRequest } -func (r ApiDcimInterfacesBulkPartialUpdateRequest) InterfaceRequest(interfaceRequest []InterfaceRequest) ApiDcimInterfacesBulkPartialUpdateRequest { - r.interfaceRequest = &interfaceRequest +func (r ApiDcimInventoryItemRolesPartialUpdateRequest) PatchedInventoryItemRoleRequest(patchedInventoryItemRoleRequest PatchedInventoryItemRoleRequest) ApiDcimInventoryItemRolesPartialUpdateRequest { + r.patchedInventoryItemRoleRequest = &patchedInventoryItemRoleRequest return r } -func (r ApiDcimInterfacesBulkPartialUpdateRequest) Execute() ([]Interface, *http.Response, error) { - return r.ApiService.DcimInterfacesBulkPartialUpdateExecute(r) +func (r ApiDcimInventoryItemRolesPartialUpdateRequest) Execute() (*InventoryItemRole, *http.Response, error) { + return r.ApiService.DcimInventoryItemRolesPartialUpdateExecute(r) } /* -DcimInterfacesBulkPartialUpdate Method for DcimInterfacesBulkPartialUpdate +DcimInventoryItemRolesPartialUpdate Method for DcimInventoryItemRolesPartialUpdate -Patch a list of interface objects. +Patch a inventory item role object. - @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(). + @param id A unique integer value identifying this inventory item role. + @return ApiDcimInventoryItemRolesPartialUpdateRequest */ -func (a *DcimAPIService) DcimInterfacesBulkPartialUpdate(ctx context.Context) ApiDcimInterfacesBulkPartialUpdateRequest { - return ApiDcimInterfacesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesPartialUpdateRequest { + return ApiDcimInventoryItemRolesPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []Interface -func (a *DcimAPIService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfacesBulkPartialUpdateRequest) ([]Interface, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInventoryItemRolesPartialUpdateRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Interface + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interfaces/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{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.interfaceRequest == nil { - return localVarReturnValue, nil, reportError("interfaceRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -39962,7 +55153,7 @@ func (a *DcimAPIService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfa localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.interfaceRequest + localVarPostBody = r.patchedInventoryItemRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -40014,63 +55205,57 @@ func (a *DcimAPIService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfa return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInterfacesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - interfaceRequest *[]InterfaceRequest -} - -func (r ApiDcimInterfacesBulkUpdateRequest) InterfaceRequest(interfaceRequest []InterfaceRequest) ApiDcimInterfacesBulkUpdateRequest { - r.interfaceRequest = &interfaceRequest - return r +type ApiDcimInventoryItemRolesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimInterfacesBulkUpdateRequest) Execute() ([]Interface, *http.Response, error) { - return r.ApiService.DcimInterfacesBulkUpdateExecute(r) +func (r ApiDcimInventoryItemRolesRetrieveRequest) Execute() (*InventoryItemRole, *http.Response, error) { + return r.ApiService.DcimInventoryItemRolesRetrieveExecute(r) } /* -DcimInterfacesBulkUpdate Method for DcimInterfacesBulkUpdate +DcimInventoryItemRolesRetrieve Method for DcimInventoryItemRolesRetrieve -Put a list of interface objects. +Get a inventory item role object. - @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(). + @param id A unique integer value identifying this inventory item role. + @return ApiDcimInventoryItemRolesRetrieveRequest */ -func (a *DcimAPIService) DcimInterfacesBulkUpdate(ctx context.Context) ApiDcimInterfacesBulkUpdateRequest { - return ApiDcimInterfacesBulkUpdateRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemRolesRetrieveRequest { + return ApiDcimInventoryItemRolesRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []Interface -func (a *DcimAPIService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulkUpdateRequest) ([]Interface, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventoryItemRolesRetrieveRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Interface + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interfaces/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{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.interfaceRequest == nil { - return localVarReturnValue, nil, reportError("interfaceRequest 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) @@ -40086,8 +55271,6 @@ func (a *DcimAPIService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulk if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.interfaceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -40139,59 +55322,62 @@ func (a *DcimAPIService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInterfacesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableInterfaceRequest *WritableInterfaceRequest +type ApiDcimInventoryItemRolesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + inventoryItemRoleRequest *InventoryItemRoleRequest } -func (r ApiDcimInterfacesCreateRequest) WritableInterfaceRequest(writableInterfaceRequest WritableInterfaceRequest) ApiDcimInterfacesCreateRequest { - r.writableInterfaceRequest = &writableInterfaceRequest +func (r ApiDcimInventoryItemRolesUpdateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest InventoryItemRoleRequest) ApiDcimInventoryItemRolesUpdateRequest { + r.inventoryItemRoleRequest = &inventoryItemRoleRequest return r } -func (r ApiDcimInterfacesCreateRequest) Execute() (*Interface, *http.Response, error) { - return r.ApiService.DcimInterfacesCreateExecute(r) +func (r ApiDcimInventoryItemRolesUpdateRequest) Execute() (*InventoryItemRole, *http.Response, error) { + return r.ApiService.DcimInventoryItemRolesUpdateExecute(r) } /* -DcimInterfacesCreate Method for DcimInterfacesCreate +DcimInventoryItemRolesUpdate Method for DcimInventoryItemRolesUpdate -Post a list of interface objects. +Put a inventory item role object. - @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(). + @param id A unique integer value identifying this inventory item role. + @return ApiDcimInventoryItemRolesUpdateRequest */ -func (a *DcimAPIService) DcimInterfacesCreate(ctx context.Context) ApiDcimInterfacesCreateRequest { - return ApiDcimInterfacesCreateRequest{ +func (a *DcimAPIService) DcimInventoryItemRolesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesUpdateRequest { + return ApiDcimInventoryItemRolesUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Interface -func (a *DcimAPIService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRequest) (*Interface, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryItemRolesUpdateRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interfaces/" + localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{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.writableInterfaceRequest == nil { - return localVarReturnValue, nil, reportError("writableInterfaceRequest is required and must be specified") + if r.inventoryItemRoleRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -40212,7 +55398,7 @@ func (a *DcimAPIService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableInterfaceRequest + localVarPostBody = r.inventoryItemRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -40264,55 +55450,60 @@ func (a *DcimAPIService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInterfacesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimInventoryItemTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemTemplateRequest *[]InventoryItemTemplateRequest } -func (r ApiDcimInterfacesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInterfacesDestroyExecute(r) +func (r ApiDcimInventoryItemTemplatesBulkDestroyRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest []InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesBulkDestroyRequest { + r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest + return r +} + +func (r ApiDcimInventoryItemTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesBulkDestroyExecute(r) } /* -DcimInterfacesDestroy Method for DcimInterfacesDestroy +DcimInventoryItemTemplatesBulkDestroy Method for DcimInventoryItemTemplatesBulkDestroy -Delete a interface object. +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(). - @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(). + @return ApiDcimInventoryItemTemplatesBulkDestroyRequest */ -func (a *DcimAPIService) DcimInterfacesDestroy(ctx context.Context, id int32) ApiDcimInterfacesDestroyRequest { - return ApiDcimInterfacesDestroyRequest{ +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroy(ctx context.Context) ApiDcimInventoryItemTemplatesBulkDestroyRequest { + return ApiDcimInventoryItemTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroyRequest) (*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.DcimInterfacesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interfaces/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.inventoryItemTemplateRequest == nil { + return nil, reportError("inventoryItemTemplateRequest 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) @@ -40328,6 +55519,8 @@ func (a *DcimAPIService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroy if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.inventoryItemTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -40367,1449 +55560,1198 @@ func (a *DcimAPIService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroy return localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiDcimInterfacesListRequest struct { - ctx context.Context - ApiService *DcimAPIService - bridgeId *[]int32 - bridgeIdN *[]int32 - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool - mgmtOnly *bool - mode *DcimInterfacesListModeParameter - modeN *DcimInterfacesListModeParameter - 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 - rfChannelFrequencyLte *[]float64 - 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 - wirelessLanId *[]int32 - wirelessLanIdN *[]int32 - wirelessLinkId *[]*int32 - wirelessLinkIdN *[]*int32 - wwn *[]string - wwnIc *[]string - wwnIe *[]string - wwnIew *[]string - wwnIsw *[]string - wwnN *[]string - wwnNic *[]string - wwnNie *[]string - wwnNiew *[]string - wwnNisw *[]string -} - -// Bridged interface (ID) -func (r ApiDcimInterfacesListRequest) BridgeId(bridgeId []int32) ApiDcimInterfacesListRequest { - r.bridgeId = &bridgeId - return r -} - -// Bridged interface (ID) -func (r ApiDcimInterfacesListRequest) BridgeIdN(bridgeIdN []int32) ApiDcimInterfacesListRequest { - r.bridgeIdN = &bridgeIdN - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimInterfacesListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimInterfacesListRequest { - r.cableEnd = &cableEnd - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimInterfacesListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimInterfacesListRequest { - r.cableEndN = &cableEndN - return r -} - -// Cable (ID) -func (r ApiDcimInterfacesListRequest) CableId(cableId []*int32) ApiDcimInterfacesListRequest { - r.cableId = &cableId - return r -} - -// Cable (ID) -func (r ApiDcimInterfacesListRequest) CableIdN(cableIdN []*int32) ApiDcimInterfacesListRequest { - r.cableIdN = &cableIdN - return r -} - -func (r ApiDcimInterfacesListRequest) Cabled(cabled bool) ApiDcimInterfacesListRequest { - r.cabled = &cabled - return r -} - -func (r ApiDcimInterfacesListRequest) Connected(connected bool) ApiDcimInterfacesListRequest { - r.connected = &connected - return r -} - -func (r ApiDcimInterfacesListRequest) Created(created []time.Time) ApiDcimInterfacesListRequest { - r.created = &created - 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 -} - -func (r ApiDcimInterfacesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInterfacesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiDcimInterfacesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInterfacesListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiDcimInterfacesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInterfacesListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiDcimInterfacesListRequest) CreatedN(createdN []time.Time) ApiDcimInterfacesListRequest { - r.createdN = &createdN - return r -} - -func (r ApiDcimInterfacesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInterfacesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiDcimInterfacesListRequest) Description(description []string) ApiDcimInterfacesListRequest { - r.description = &description - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInterfacesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInterfacesListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInterfacesListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInterfacesListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInterfacesListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionN(descriptionN []string) ApiDcimInterfacesListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInterfacesListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInterfacesListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInterfacesListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiDcimInterfacesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInterfacesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -// 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 type (model) -func (r ApiDcimInterfacesListRequest) DeviceType(deviceType []string) ApiDcimInterfacesListRequest { - r.deviceType = &deviceType - return r -} - -// Device type (model) -func (r ApiDcimInterfacesListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimInterfacesListRequest { - r.deviceTypeN = &deviceTypeN - return r -} - -// Device type (ID) -func (r ApiDcimInterfacesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimInterfacesListRequest { - r.deviceTypeId = &deviceTypeId - return r -} - -// Device type (ID) -func (r ApiDcimInterfacesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimInterfacesListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} - -func (r ApiDcimInterfacesListRequest) Duplex(duplex []*string) ApiDcimInterfacesListRequest { - r.duplex = &duplex - return r -} - -func (r ApiDcimInterfacesListRequest) DuplexN(duplexN []*string) ApiDcimInterfacesListRequest { - r.duplexN = &duplexN - return r -} - -func (r ApiDcimInterfacesListRequest) Enabled(enabled bool) ApiDcimInterfacesListRequest { - r.enabled = &enabled - return r -} - -func (r ApiDcimInterfacesListRequest) Id(id []int32) ApiDcimInterfacesListRequest { - r.id = &id - 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 -} - -func (r ApiDcimInterfacesListRequest) IdGte(idGte []int32) ApiDcimInterfacesListRequest { - r.idGte = &idGte - return r -} - -func (r ApiDcimInterfacesListRequest) IdLt(idLt []int32) ApiDcimInterfacesListRequest { - r.idLt = &idLt - return r -} - -func (r ApiDcimInterfacesListRequest) IdLte(idLte []int32) ApiDcimInterfacesListRequest { - r.idLte = &idLte - return r -} - -func (r ApiDcimInterfacesListRequest) IdN(idN []int32) ApiDcimInterfacesListRequest { - r.idN = &idN - return r -} - -// Kind of interface -func (r ApiDcimInterfacesListRequest) Kind(kind string) ApiDcimInterfacesListRequest { - r.kind = &kind - return r -} - -// L2VPN -func (r ApiDcimInterfacesListRequest) L2vpn(l2vpn []*int64) ApiDcimInterfacesListRequest { - r.l2vpn = &l2vpn - return r -} - -// L2VPN -func (r ApiDcimInterfacesListRequest) L2vpnN(l2vpnN []*int64) ApiDcimInterfacesListRequest { - r.l2vpnN = &l2vpnN - return r -} - -// L2VPN (ID) -func (r ApiDcimInterfacesListRequest) L2vpnId(l2vpnId []int32) ApiDcimInterfacesListRequest { - r.l2vpnId = &l2vpnId - return r -} - -// L2VPN (ID) -func (r ApiDcimInterfacesListRequest) L2vpnIdN(l2vpnIdN []int32) ApiDcimInterfacesListRequest { - r.l2vpnIdN = &l2vpnIdN - return r -} - -func (r ApiDcimInterfacesListRequest) Label(label []string) ApiDcimInterfacesListRequest { - r.label = &label - return r -} - -func (r ApiDcimInterfacesListRequest) LabelEmpty(labelEmpty bool) ApiDcimInterfacesListRequest { - r.labelEmpty = &labelEmpty - return r -} - -func (r ApiDcimInterfacesListRequest) LabelIc(labelIc []string) ApiDcimInterfacesListRequest { - r.labelIc = &labelIc - return r + return localVarHTTPResponse, nil } -func (r ApiDcimInterfacesListRequest) LabelIe(labelIe []string) ApiDcimInterfacesListRequest { - r.labelIe = &labelIe - return r +type ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemTemplateRequest *[]InventoryItemTemplateRequest } -func (r ApiDcimInterfacesListRequest) LabelIew(labelIew []string) ApiDcimInterfacesListRequest { - r.labelIew = &labelIew +func (r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest []InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest { + r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest return r } -func (r ApiDcimInterfacesListRequest) LabelIsw(labelIsw []string) ApiDcimInterfacesListRequest { - r.labelIsw = &labelIsw - return r +func (r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) Execute() ([]InventoryItemTemplate, *http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesBulkPartialUpdateExecute(r) } -func (r ApiDcimInterfacesListRequest) LabelN(labelN []string) ApiDcimInterfacesListRequest { - r.labelN = &labelN - return r -} +/* +DcimInventoryItemTemplatesBulkPartialUpdate Method for DcimInventoryItemTemplatesBulkPartialUpdate -func (r ApiDcimInterfacesListRequest) LabelNic(labelNic []string) ApiDcimInterfacesListRequest { - r.labelNic = &labelNic - return r -} +Patch a list of inventory item template objects. -func (r ApiDcimInterfacesListRequest) LabelNie(labelNie []string) ApiDcimInterfacesListRequest { - r.labelNie = &labelNie - return r + @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 { + return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiDcimInterfacesListRequest) LabelNiew(labelNiew []string) ApiDcimInterfacesListRequest { - r.labelNiew = &labelNiew - return r -} +// Execute executes the request +// @return []InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemTemplate + ) -func (r ApiDcimInterfacesListRequest) LabelNisw(labelNisw []string) ApiDcimInterfacesListRequest { - r.labelNisw = &labelNisw - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// LAG interface (ID) -func (r ApiDcimInterfacesListRequest) LagId(lagId []int32) ApiDcimInterfacesListRequest { - r.lagId = &lagId - return r -} + localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" -// LAG interface (ID) -func (r ApiDcimInterfacesListRequest) LagIdN(lagIdN []int32) ApiDcimInterfacesListRequest { - r.lagIdN = &lagIdN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.inventoryItemTemplateRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified") + } -func (r ApiDcimInterfacesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInterfacesListRequest { - r.lastUpdated = &lastUpdated - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimInterfacesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInterfacesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimInterfacesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInterfacesListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimInterfacesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInterfacesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.inventoryItemTemplateRequest + 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 ApiDcimInterfacesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInterfacesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiDcimInterfacesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInterfacesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - 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 + } -func (r ApiDcimInterfacesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInterfacesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Number of results to return per page. -func (r ApiDcimInterfacesListRequest) Limit(limit int32) ApiDcimInterfacesListRequest { - r.limit = &limit - 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 + } -// Location (slug) -func (r ApiDcimInterfacesListRequest) Location(location []string) ApiDcimInterfacesListRequest { - r.location = &location - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Location (slug) -func (r ApiDcimInterfacesListRequest) LocationN(locationN []string) ApiDcimInterfacesListRequest { - r.locationN = &locationN - return r +type ApiDcimInventoryItemTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemTemplateRequest *[]InventoryItemTemplateRequest } -// Location (ID) -func (r ApiDcimInterfacesListRequest) LocationId(locationId []int32) ApiDcimInterfacesListRequest { - r.locationId = &locationId +func (r ApiDcimInventoryItemTemplatesBulkUpdateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest []InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesBulkUpdateRequest { + r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest return r } -// Location (ID) -func (r ApiDcimInterfacesListRequest) LocationIdN(locationIdN []int32) ApiDcimInterfacesListRequest { - r.locationIdN = &locationIdN - return r +func (r ApiDcimInventoryItemTemplatesBulkUpdateRequest) Execute() ([]InventoryItemTemplate, *http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesBulkUpdateExecute(r) } -func (r ApiDcimInterfacesListRequest) MacAddress(macAddress []string) ApiDcimInterfacesListRequest { - r.macAddress = &macAddress - return r -} +/* +DcimInventoryItemTemplatesBulkUpdate Method for DcimInventoryItemTemplatesBulkUpdate -func (r ApiDcimInterfacesListRequest) MacAddressIc(macAddressIc []string) ApiDcimInterfacesListRequest { - r.macAddressIc = &macAddressIc - return r -} +Put a list of inventory item template objects. -func (r ApiDcimInterfacesListRequest) MacAddressIe(macAddressIe []string) ApiDcimInterfacesListRequest { - r.macAddressIe = &macAddressIe - return r + @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 { + return ApiDcimInventoryItemTemplatesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiDcimInterfacesListRequest) MacAddressIew(macAddressIew []string) ApiDcimInterfacesListRequest { - r.macAddressIew = &macAddressIew - return r -} +// Execute executes the request +// @return []InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimInventoryItemTemplatesBulkUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemTemplate + ) -func (r ApiDcimInterfacesListRequest) MacAddressIsw(macAddressIsw []string) ApiDcimInterfacesListRequest { - r.macAddressIsw = &macAddressIsw - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimInterfacesListRequest) MacAddressN(macAddressN []string) ApiDcimInterfacesListRequest { - r.macAddressN = &macAddressN - return r -} + localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" -func (r ApiDcimInterfacesListRequest) MacAddressNic(macAddressNic []string) ApiDcimInterfacesListRequest { - r.macAddressNic = &macAddressNic - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.inventoryItemTemplateRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified") + } -func (r ApiDcimInterfacesListRequest) MacAddressNie(macAddressNie []string) ApiDcimInterfacesListRequest { - r.macAddressNie = &macAddressNie - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimInterfacesListRequest) MacAddressNiew(macAddressNiew []string) ApiDcimInterfacesListRequest { - r.macAddressNiew = &macAddressNiew - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimInterfacesListRequest) MacAddressNisw(macAddressNisw []string) ApiDcimInterfacesListRequest { - r.macAddressNisw = &macAddressNisw - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimInterfacesListRequest) MarkConnected(markConnected bool) ApiDcimInterfacesListRequest { - r.markConnected = &markConnected - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.inventoryItemTemplateRequest + 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 ApiDcimInterfacesListRequest) MgmtOnly(mgmtOnly bool) ApiDcimInterfacesListRequest { - r.mgmtOnly = &mgmtOnly - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) -func (r ApiDcimInterfacesListRequest) Mode(mode DcimInterfacesListModeParameter) ApiDcimInterfacesListRequest { - r.mode = &mode - 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 + } -// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) -func (r ApiDcimInterfacesListRequest) ModeN(modeN DcimInterfacesListModeParameter) ApiDcimInterfacesListRequest { - r.modeN = &modeN - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiDcimInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfacesListRequest { - r.modifiedByRequest = &modifiedByRequest - 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 + } -// Module (ID) -func (r ApiDcimInterfacesListRequest) ModuleId(moduleId []*int32) ApiDcimInterfacesListRequest { - r.moduleId = &moduleId - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Module (ID) -func (r ApiDcimInterfacesListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimInterfacesListRequest { - r.moduleIdN = &moduleIdN - return r +type ApiDcimInventoryItemTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemTemplateRequest *InventoryItemTemplateRequest } -func (r ApiDcimInterfacesListRequest) Mtu(mtu []int32) ApiDcimInterfacesListRequest { - r.mtu = &mtu +func (r ApiDcimInventoryItemTemplatesCreateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesCreateRequest { + r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest return r } -func (r ApiDcimInterfacesListRequest) MtuEmpty(mtuEmpty bool) ApiDcimInterfacesListRequest { - r.mtuEmpty = &mtuEmpty - return r +func (r ApiDcimInventoryItemTemplatesCreateRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesCreateExecute(r) } -func (r ApiDcimInterfacesListRequest) MtuGt(mtuGt []int32) ApiDcimInterfacesListRequest { - r.mtuGt = &mtuGt - return r -} +/* +DcimInventoryItemTemplatesCreate Method for DcimInventoryItemTemplatesCreate -func (r ApiDcimInterfacesListRequest) MtuGte(mtuGte []int32) ApiDcimInterfacesListRequest { - r.mtuGte = &mtuGte - return r -} +Post a list of inventory item template objects. -func (r ApiDcimInterfacesListRequest) MtuLt(mtuLt []int32) ApiDcimInterfacesListRequest { - r.mtuLt = &mtuLt - return r + @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 { + return ApiDcimInventoryItemTemplatesCreateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiDcimInterfacesListRequest) MtuLte(mtuLte []int32) ApiDcimInterfacesListRequest { - r.mtuLte = &mtuLte - return r -} +// Execute executes the request +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInventoryItemTemplatesCreateRequest) (*InventoryItemTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate + ) -func (r ApiDcimInterfacesListRequest) MtuN(mtuN []int32) ApiDcimInterfacesListRequest { - r.mtuN = &mtuN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimInterfacesListRequest) Name(name []string) ApiDcimInterfacesListRequest { - r.name = &name - return r -} + localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" -func (r ApiDcimInterfacesListRequest) NameEmpty(nameEmpty bool) ApiDcimInterfacesListRequest { - r.nameEmpty = &nameEmpty - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.inventoryItemTemplateRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified") + } -func (r ApiDcimInterfacesListRequest) NameIc(nameIc []string) ApiDcimInterfacesListRequest { - r.nameIc = &nameIc - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimInterfacesListRequest) NameIe(nameIe []string) ApiDcimInterfacesListRequest { - r.nameIe = &nameIe - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimInterfacesListRequest) NameIew(nameIew []string) ApiDcimInterfacesListRequest { - r.nameIew = &nameIew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimInterfacesListRequest) NameIsw(nameIsw []string) ApiDcimInterfacesListRequest { - r.nameIsw = &nameIsw - return r + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.inventoryItemTemplateRequest + 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 ApiDcimInterfacesListRequest) NameN(nameN []string) ApiDcimInterfacesListRequest { - r.nameN = &nameN - return r +type ApiDcimInventoryItemTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimInterfacesListRequest) NameNic(nameNic []string) ApiDcimInterfacesListRequest { - r.nameNic = &nameNic - return r +func (r ApiDcimInventoryItemTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesDestroyExecute(r) } -func (r ApiDcimInterfacesListRequest) NameNie(nameNie []string) ApiDcimInterfacesListRequest { - r.nameNie = &nameNie - return r +/* +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 +*/ +func (a *DcimAPIService) DcimInventoryItemTemplatesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesDestroyRequest { + return ApiDcimInventoryItemTemplatesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiDcimInterfacesListRequest) NameNiew(nameNiew []string) ApiDcimInterfacesListRequest { - r.nameNiew = &nameNiew - return r -} +// Execute executes the request +func (a *DcimAPIService) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInventoryItemTemplatesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/inventory-item-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{} -func (r ApiDcimInterfacesListRequest) NameNisw(nameNisw []string) ApiDcimInterfacesListRequest { - r.nameNisw = &nameNisw - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimInterfacesListRequest) Occupied(occupied bool) ApiDcimInterfacesListRequest { - r.occupied = &occupied - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -// The initial index from which to return the results. -func (r ApiDcimInterfacesListRequest) Offset(offset int32) ApiDcimInterfacesListRequest { - r.offset = &offset - 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 nil, err + } -// Which field to use when ordering the results. -func (r ApiDcimInterfacesListRequest) Ordering(ordering string) ApiDcimInterfacesListRequest { - r.ordering = &ordering - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -// Parent interface (ID) -func (r ApiDcimInterfacesListRequest) ParentId(parentId []int32) ApiDcimInterfacesListRequest { - r.parentId = &parentId - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -// Parent interface (ID) -func (r ApiDcimInterfacesListRequest) ParentIdN(parentIdN []int32) ApiDcimInterfacesListRequest { - r.parentIdN = &parentIdN - return r + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil } -func (r ApiDcimInterfacesListRequest) PoeMode(poeMode []string) ApiDcimInterfacesListRequest { - r.poeMode = &poeMode - return r +type ApiDcimInventoryItemTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]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 + 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 } -func (r ApiDcimInterfacesListRequest) PoeModeN(poeModeN []string) ApiDcimInterfacesListRequest { - r.poeModeN = &poeModeN +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentId(componentId []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentId = &componentId return r } -func (r ApiDcimInterfacesListRequest) PoeType(poeType []string) ApiDcimInterfacesListRequest { - r.poeType = &poeType +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdEmpty(componentIdEmpty []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentIdEmpty = &componentIdEmpty return r } -func (r ApiDcimInterfacesListRequest) PoeTypeN(poeTypeN []string) ApiDcimInterfacesListRequest { - r.poeTypeN = &poeTypeN +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdGt(componentIdGt []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentIdGt = &componentIdGt return r } -// Search -func (r ApiDcimInterfacesListRequest) Q(q string) ApiDcimInterfacesListRequest { - r.q = &q +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdGte(componentIdGte []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentIdGte = &componentIdGte return r } -// Rack (name) -func (r ApiDcimInterfacesListRequest) Rack(rack []string) ApiDcimInterfacesListRequest { - r.rack = &rack +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdLt(componentIdLt []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentIdLt = &componentIdLt return r } -// Rack (name) -func (r ApiDcimInterfacesListRequest) RackN(rackN []string) ApiDcimInterfacesListRequest { - r.rackN = &rackN +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdLte(componentIdLte []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentIdLte = &componentIdLte return r } -// Rack (ID) -func (r ApiDcimInterfacesListRequest) RackId(rackId []int32) ApiDcimInterfacesListRequest { - r.rackId = &rackId +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdN(componentIdN []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentIdN = &componentIdN return r } -// Rack (ID) -func (r ApiDcimInterfacesListRequest) RackIdN(rackIdN []int32) ApiDcimInterfacesListRequest { - r.rackIdN = &rackIdN +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentType(componentType string) ApiDcimInventoryItemTemplatesListRequest { + r.componentType = &componentType return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) Region(region []int32) ApiDcimInterfacesListRequest { - r.region = ®ion +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentTypeN(componentTypeN string) ApiDcimInventoryItemTemplatesListRequest { + r.componentTypeN = &componentTypeN return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) RegionN(regionN []int32) ApiDcimInterfacesListRequest { - r.regionN = ®ionN +func (r ApiDcimInventoryItemTemplatesListRequest) Created(created []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.created = &created return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionId(regionId []int32) ApiDcimInterfacesListRequest { - r.regionId = ®ionId +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.createdEmpty = &createdEmpty return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []int32) ApiDcimInterfacesListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.createdGt = &createdGt return r } -func (r ApiDcimInterfacesListRequest) RfChannel(rfChannel []string) ApiDcimInterfacesListRequest { - r.rfChannel = &rfChannel +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.createdGte = &createdGte return r } -func (r ApiDcimInterfacesListRequest) RfChannelN(rfChannelN []string) ApiDcimInterfacesListRequest { - r.rfChannelN = &rfChannelN +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.createdLt = &createdLt return r } -func (r ApiDcimInterfacesListRequest) RfChannelFrequency(rfChannelFrequency []float64) ApiDcimInterfacesListRequest { - r.rfChannelFrequency = &rfChannelFrequency +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.createdLte = &createdLte return r } -func (r ApiDcimInterfacesListRequest) RfChannelFrequencyEmpty(rfChannelFrequencyEmpty bool) ApiDcimInterfacesListRequest { - r.rfChannelFrequencyEmpty = &rfChannelFrequencyEmpty +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.createdN = &createdN return r } -func (r ApiDcimInterfacesListRequest) RfChannelFrequencyGt(rfChannelFrequencyGt []float64) ApiDcimInterfacesListRequest { - r.rfChannelFrequencyGt = &rfChannelFrequencyGt +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInventoryItemTemplatesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiDcimInterfacesListRequest) RfChannelFrequencyGte(rfChannelFrequencyGte []float64) ApiDcimInterfacesListRequest { - r.rfChannelFrequencyGte = &rfChannelFrequencyGte +func (r ApiDcimInventoryItemTemplatesListRequest) Description(description []string) ApiDcimInventoryItemTemplatesListRequest { + r.description = &description return r } -func (r ApiDcimInterfacesListRequest) RfChannelFrequencyLt(rfChannelFrequencyLt []float64) ApiDcimInterfacesListRequest { - r.rfChannelFrequencyLt = &rfChannelFrequencyLt +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimInterfacesListRequest) RfChannelFrequencyLte(rfChannelFrequencyLte []float64) ApiDcimInterfacesListRequest { - r.rfChannelFrequencyLte = &rfChannelFrequencyLte +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiDcimInterfacesListRequest) RfChannelFrequencyN(rfChannelFrequencyN []float64) ApiDcimInterfacesListRequest { - r.rfChannelFrequencyN = &rfChannelFrequencyN +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiDcimInterfacesListRequest) RfChannelWidth(rfChannelWidth []float64) ApiDcimInterfacesListRequest { - r.rfChannelWidth = &rfChannelWidth +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiDcimInterfacesListRequest) RfChannelWidthEmpty(rfChannelWidthEmpty bool) ApiDcimInterfacesListRequest { - r.rfChannelWidthEmpty = &rfChannelWidthEmpty +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimInterfacesListRequest) RfChannelWidthGt(rfChannelWidthGt []float64) ApiDcimInterfacesListRequest { - r.rfChannelWidthGt = &rfChannelWidthGt +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiDcimInterfacesListRequest) RfChannelWidthGte(rfChannelWidthGte []float64) ApiDcimInterfacesListRequest { - r.rfChannelWidthGte = &rfChannelWidthGte +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiDcimInterfacesListRequest) RfChannelWidthLt(rfChannelWidthLt []float64) ApiDcimInterfacesListRequest { - r.rfChannelWidthLt = &rfChannelWidthLt +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiDcimInterfacesListRequest) RfChannelWidthLte(rfChannelWidthLte []float64) ApiDcimInterfacesListRequest { - r.rfChannelWidthLte = &rfChannelWidthLte +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimInterfacesListRequest) RfChannelWidthN(rfChannelWidthN []float64) ApiDcimInterfacesListRequest { - r.rfChannelWidthN = &rfChannelWidthN +func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemTemplatesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimInterfacesListRequest) RfRole(rfRole []string) ApiDcimInterfacesListRequest { - r.rfRole = &rfRole +// Device type (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimInventoryItemTemplatesListRequest { + r.deviceTypeId = &deviceTypeId return r } -func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterfacesListRequest { - r.rfRoleN = &rfRoleN +// Device type (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimInventoryItemTemplatesListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -// Device role (slug) -func (r ApiDcimInterfacesListRequest) Role(role []string) ApiDcimInterfacesListRequest { - r.role = &role +func (r ApiDcimInventoryItemTemplatesListRequest) Id(id []int32) ApiDcimInventoryItemTemplatesListRequest { + r.id = &id return r } -// Device role (slug) -func (r ApiDcimInterfacesListRequest) RoleN(roleN []string) ApiDcimInterfacesListRequest { - r.roleN = &roleN +func (r ApiDcimInventoryItemTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimInventoryItemTemplatesListRequest { + r.idEmpty = &idEmpty return r } -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleId(roleId []int32) ApiDcimInterfacesListRequest { - r.roleId = &roleId +func (r ApiDcimInventoryItemTemplatesListRequest) IdGt(idGt []int32) ApiDcimInventoryItemTemplatesListRequest { + r.idGt = &idGt return r } -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleIdN(roleIdN []int32) ApiDcimInterfacesListRequest { - r.roleIdN = &roleIdN +func (r ApiDcimInventoryItemTemplatesListRequest) IdGte(idGte []int32) ApiDcimInventoryItemTemplatesListRequest { + r.idGte = &idGte return r } -// Site name (slug) -func (r ApiDcimInterfacesListRequest) Site(site []string) ApiDcimInterfacesListRequest { - r.site = &site +func (r ApiDcimInventoryItemTemplatesListRequest) IdLt(idLt []int32) ApiDcimInventoryItemTemplatesListRequest { + r.idLt = &idLt return r } -// Site name (slug) -func (r ApiDcimInterfacesListRequest) SiteN(siteN []string) ApiDcimInterfacesListRequest { - r.siteN = &siteN +func (r ApiDcimInventoryItemTemplatesListRequest) IdLte(idLte []int32) ApiDcimInventoryItemTemplatesListRequest { + r.idLte = &idLte return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []int32) ApiDcimInterfacesListRequest { - r.siteGroup = &siteGroup +func (r ApiDcimInventoryItemTemplatesListRequest) IdN(idN []int32) ApiDcimInventoryItemTemplatesListRequest { + r.idN = &idN return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInterfacesListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimInventoryItemTemplatesListRequest) Label(label []string) ApiDcimInventoryItemTemplatesListRequest { + r.label = &label return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInterfacesListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimInventoryItemTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimInventoryItemTemplatesListRequest { + r.labelEmpty = &labelEmpty return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInterfacesListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimInventoryItemTemplatesListRequest) LabelIc(labelIc []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelIc = &labelIc return r } -// Site (ID) -func (r ApiDcimInterfacesListRequest) SiteId(siteId []int32) ApiDcimInterfacesListRequest { - r.siteId = &siteId +func (r ApiDcimInventoryItemTemplatesListRequest) LabelIe(labelIe []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelIe = &labelIe return r } -// Site (ID) -func (r ApiDcimInterfacesListRequest) SiteIdN(siteIdN []int32) ApiDcimInterfacesListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimInventoryItemTemplatesListRequest) LabelIew(labelIew []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelIew = &labelIew return r } -func (r ApiDcimInterfacesListRequest) Speed(speed []int32) ApiDcimInterfacesListRequest { - r.speed = &speed +func (r ApiDcimInventoryItemTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelIsw = &labelIsw return r } -func (r ApiDcimInterfacesListRequest) SpeedEmpty(speedEmpty []int32) ApiDcimInterfacesListRequest { - r.speedEmpty = &speedEmpty +func (r ApiDcimInventoryItemTemplatesListRequest) LabelN(labelN []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelN = &labelN return r } -func (r ApiDcimInterfacesListRequest) SpeedGt(speedGt []int32) ApiDcimInterfacesListRequest { - r.speedGt = &speedGt +func (r ApiDcimInventoryItemTemplatesListRequest) LabelNic(labelNic []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelNic = &labelNic return r } -func (r ApiDcimInterfacesListRequest) SpeedGte(speedGte []int32) ApiDcimInterfacesListRequest { - r.speedGte = &speedGte +func (r ApiDcimInventoryItemTemplatesListRequest) LabelNie(labelNie []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelNie = &labelNie return r } -func (r ApiDcimInterfacesListRequest) SpeedLt(speedLt []int32) ApiDcimInterfacesListRequest { - r.speedLt = &speedLt +func (r ApiDcimInventoryItemTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelNiew = &labelNiew return r } -func (r ApiDcimInterfacesListRequest) SpeedLte(speedLte []int32) ApiDcimInterfacesListRequest { - r.speedLte = &speedLte +func (r ApiDcimInventoryItemTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimInventoryItemTemplatesListRequest { + r.labelNisw = &labelNisw return r } -func (r ApiDcimInterfacesListRequest) SpeedN(speedN []int32) ApiDcimInterfacesListRequest { - r.speedN = &speedN +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiDcimInterfacesListRequest) Tag(tag []string) ApiDcimInterfacesListRequest { - r.tag = &tag +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimInterfacesListRequest) TagN(tagN []string) ApiDcimInterfacesListRequest { - r.tagN = &tagN +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimInterfacesListRequest) TxPower(txPower []int32) ApiDcimInterfacesListRequest { - r.txPower = &txPower +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimInterfacesListRequest) TxPowerEmpty(txPowerEmpty bool) ApiDcimInterfacesListRequest { - r.txPowerEmpty = &txPowerEmpty +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimInterfacesListRequest) TxPowerGt(txPowerGt []int32) ApiDcimInterfacesListRequest { - r.txPowerGt = &txPowerGt +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimInterfacesListRequest) TxPowerGte(txPowerGte []int32) ApiDcimInterfacesListRequest { - r.txPowerGte = &txPowerGte +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiDcimInterfacesListRequest) TxPowerLt(txPowerLt []int32) ApiDcimInterfacesListRequest { - r.txPowerLt = &txPowerLt +// Number of results to return per page. +func (r ApiDcimInventoryItemTemplatesListRequest) Limit(limit int32) ApiDcimInventoryItemTemplatesListRequest { + r.limit = &limit return r } -func (r ApiDcimInterfacesListRequest) TxPowerLte(txPowerLte []int32) ApiDcimInterfacesListRequest { - r.txPowerLte = &txPowerLte +// Manufacturer (slug) +func (r ApiDcimInventoryItemTemplatesListRequest) Manufacturer(manufacturer []string) ApiDcimInventoryItemTemplatesListRequest { + r.manufacturer = &manufacturer return r } -func (r ApiDcimInterfacesListRequest) TxPowerN(txPowerN []int32) ApiDcimInterfacesListRequest { - r.txPowerN = &txPowerN +// Manufacturer (slug) +func (r ApiDcimInventoryItemTemplatesListRequest) ManufacturerN(manufacturerN []string) ApiDcimInventoryItemTemplatesListRequest { + r.manufacturerN = &manufacturerN return r } -func (r ApiDcimInterfacesListRequest) Type_(type_ []string) ApiDcimInterfacesListRequest { - r.type_ = &type_ +// Manufacturer (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) ManufacturerId(manufacturerId []*int32) ApiDcimInventoryItemTemplatesListRequest { + r.manufacturerId = &manufacturerId return r } -func (r ApiDcimInterfacesListRequest) TypeN(typeN []string) ApiDcimInterfacesListRequest { - r.typeN = &typeN +// Manufacturer (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) ManufacturerIdN(manufacturerIdN []*int32) ApiDcimInventoryItemTemplatesListRequest { + r.manufacturerIdN = &manufacturerIdN return r } -func (r ApiDcimInterfacesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInterfacesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimInventoryItemTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInventoryItemTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Virtual Device Context -func (r ApiDcimInterfacesListRequest) Vdc(vdc []string) ApiDcimInterfacesListRequest { - r.vdc = &vdc +func (r ApiDcimInventoryItemTemplatesListRequest) Name(name []string) ApiDcimInventoryItemTemplatesListRequest { + r.name = &name return r } -// Virtual Device Context -func (r ApiDcimInterfacesListRequest) VdcN(vdcN []string) ApiDcimInterfacesListRequest { - r.vdcN = &vdcN +func (r ApiDcimInventoryItemTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimInventoryItemTemplatesListRequest { + r.nameEmpty = &nameEmpty return r } -// Virtual Device Context -func (r ApiDcimInterfacesListRequest) VdcId(vdcId []int32) ApiDcimInterfacesListRequest { - r.vdcId = &vdcId +func (r ApiDcimInventoryItemTemplatesListRequest) NameIc(nameIc []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameIc = &nameIc return r } -// Virtual Device Context -func (r ApiDcimInterfacesListRequest) VdcIdN(vdcIdN []int32) ApiDcimInterfacesListRequest { - r.vdcIdN = &vdcIdN +func (r ApiDcimInventoryItemTemplatesListRequest) NameIe(nameIe []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameIe = &nameIe return r } -// Virtual Device Context (Identifier) -func (r ApiDcimInterfacesListRequest) VdcIdentifier(vdcIdentifier []*int32) ApiDcimInterfacesListRequest { - r.vdcIdentifier = &vdcIdentifier +func (r ApiDcimInventoryItemTemplatesListRequest) NameIew(nameIew []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameIew = &nameIew return r } -// Virtual Device Context (Identifier) -func (r ApiDcimInterfacesListRequest) VdcIdentifierN(vdcIdentifierN []*int32) ApiDcimInterfacesListRequest { - r.vdcIdentifierN = &vdcIdentifierN +func (r ApiDcimInventoryItemTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameIsw = &nameIsw return r } -// Virtual Chassis -func (r ApiDcimInterfacesListRequest) VirtualChassis(virtualChassis []string) ApiDcimInterfacesListRequest { - r.virtualChassis = &virtualChassis +func (r ApiDcimInventoryItemTemplatesListRequest) NameN(nameN []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameN = &nameN return r } -// Virtual Chassis -func (r ApiDcimInterfacesListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimInterfacesListRequest { - r.virtualChassisN = &virtualChassisN +func (r ApiDcimInventoryItemTemplatesListRequest) NameNic(nameNic []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameNic = &nameNic return r } -// Virtual Chassis (ID) -func (r ApiDcimInterfacesListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimInterfacesListRequest { - r.virtualChassisId = &virtualChassisId +func (r ApiDcimInventoryItemTemplatesListRequest) NameNie(nameNie []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameNie = &nameNie return r } -// Virtual Chassis (ID) -func (r ApiDcimInterfacesListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimInterfacesListRequest { - r.virtualChassisIdN = &virtualChassisIdN +func (r ApiDcimInventoryItemTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiDcimInterfacesListRequest) VirtualChassisMember(virtualChassisMember []string) ApiDcimInterfacesListRequest { - r.virtualChassisMember = &virtualChassisMember +func (r ApiDcimInventoryItemTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimInventoryItemTemplatesListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiDcimInterfacesListRequest) VirtualChassisMemberId(virtualChassisMemberId []int32) ApiDcimInterfacesListRequest { - r.virtualChassisMemberId = &virtualChassisMemberId +// The initial index from which to return the results. +func (r ApiDcimInventoryItemTemplatesListRequest) Offset(offset int32) ApiDcimInventoryItemTemplatesListRequest { + r.offset = &offset return r } -// Assigned VID -func (r ApiDcimInterfacesListRequest) Vlan(vlan string) ApiDcimInterfacesListRequest { - r.vlan = &vlan +// Which field to use when ordering the results. +func (r ApiDcimInventoryItemTemplatesListRequest) Ordering(ordering string) ApiDcimInventoryItemTemplatesListRequest { + r.ordering = &ordering return r } -// Assigned VLAN -func (r ApiDcimInterfacesListRequest) VlanId(vlanId string) ApiDcimInterfacesListRequest { - r.vlanId = &vlanId +// Parent inventory item (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) ParentId(parentId []*int32) ApiDcimInventoryItemTemplatesListRequest { + r.parentId = &parentId return r } -// VRF (RD) -func (r ApiDcimInterfacesListRequest) Vrf(vrf []*string) ApiDcimInterfacesListRequest { - r.vrf = &vrf +// Parent inventory item (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) ParentIdN(parentIdN []*int32) ApiDcimInventoryItemTemplatesListRequest { + r.parentIdN = &parentIdN return r } -// VRF (RD) -func (r ApiDcimInterfacesListRequest) VrfN(vrfN []*string) ApiDcimInterfacesListRequest { - r.vrfN = &vrfN +func (r ApiDcimInventoryItemTemplatesListRequest) PartId(partId []string) ApiDcimInventoryItemTemplatesListRequest { + r.partId = &partId return r } -// VRF -func (r ApiDcimInterfacesListRequest) VrfId(vrfId []int32) ApiDcimInterfacesListRequest { - r.vrfId = &vrfId +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdEmpty(partIdEmpty bool) ApiDcimInventoryItemTemplatesListRequest { + r.partIdEmpty = &partIdEmpty return r } -// VRF -func (r ApiDcimInterfacesListRequest) VrfIdN(vrfIdN []int32) ApiDcimInterfacesListRequest { - r.vrfIdN = &vrfIdN +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIc(partIdIc []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdIc = &partIdIc return r } -// Wireless LAN -func (r ApiDcimInterfacesListRequest) WirelessLanId(wirelessLanId []int32) ApiDcimInterfacesListRequest { - r.wirelessLanId = &wirelessLanId +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIe(partIdIe []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdIe = &partIdIe return r } -// Wireless LAN -func (r ApiDcimInterfacesListRequest) WirelessLanIdN(wirelessLanIdN []int32) ApiDcimInterfacesListRequest { - r.wirelessLanIdN = &wirelessLanIdN +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIew(partIdIew []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdIew = &partIdIew return r } -// Wireless link -func (r ApiDcimInterfacesListRequest) WirelessLinkId(wirelessLinkId []*int32) ApiDcimInterfacesListRequest { - r.wirelessLinkId = &wirelessLinkId +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIsw(partIdIsw []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdIsw = &partIdIsw return r } -// Wireless link -func (r ApiDcimInterfacesListRequest) WirelessLinkIdN(wirelessLinkIdN []*int32) ApiDcimInterfacesListRequest { - r.wirelessLinkIdN = &wirelessLinkIdN +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdN(partIdN []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdN = &partIdN return r } -func (r ApiDcimInterfacesListRequest) Wwn(wwn []string) ApiDcimInterfacesListRequest { - r.wwn = &wwn +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNic(partIdNic []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdNic = &partIdNic return r } -func (r ApiDcimInterfacesListRequest) WwnIc(wwnIc []string) ApiDcimInterfacesListRequest { - r.wwnIc = &wwnIc +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNie(partIdNie []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdNie = &partIdNie return r } -func (r ApiDcimInterfacesListRequest) WwnIe(wwnIe []string) ApiDcimInterfacesListRequest { - r.wwnIe = &wwnIe +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNiew(partIdNiew []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdNiew = &partIdNiew return r } -func (r ApiDcimInterfacesListRequest) WwnIew(wwnIew []string) ApiDcimInterfacesListRequest { - r.wwnIew = &wwnIew +func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNisw(partIdNisw []string) ApiDcimInventoryItemTemplatesListRequest { + r.partIdNisw = &partIdNisw return r } -func (r ApiDcimInterfacesListRequest) WwnIsw(wwnIsw []string) ApiDcimInterfacesListRequest { - r.wwnIsw = &wwnIsw +// Search +func (r ApiDcimInventoryItemTemplatesListRequest) Q(q string) ApiDcimInventoryItemTemplatesListRequest { + r.q = &q return r } -func (r ApiDcimInterfacesListRequest) WwnN(wwnN []string) ApiDcimInterfacesListRequest { - r.wwnN = &wwnN +// Role (slug) +func (r ApiDcimInventoryItemTemplatesListRequest) Role(role []string) ApiDcimInventoryItemTemplatesListRequest { + r.role = &role return r } -func (r ApiDcimInterfacesListRequest) WwnNic(wwnNic []string) ApiDcimInterfacesListRequest { - r.wwnNic = &wwnNic +// Role (slug) +func (r ApiDcimInventoryItemTemplatesListRequest) RoleN(roleN []string) ApiDcimInventoryItemTemplatesListRequest { + r.roleN = &roleN return r } -func (r ApiDcimInterfacesListRequest) WwnNie(wwnNie []string) ApiDcimInterfacesListRequest { - r.wwnNie = &wwnNie +// Role (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) RoleId(roleId []*int32) ApiDcimInventoryItemTemplatesListRequest { + r.roleId = &roleId return r } -func (r ApiDcimInterfacesListRequest) WwnNiew(wwnNiew []string) ApiDcimInterfacesListRequest { - r.wwnNiew = &wwnNiew +// Role (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) RoleIdN(roleIdN []*int32) ApiDcimInventoryItemTemplatesListRequest { + r.roleIdN = &roleIdN return r } -func (r ApiDcimInterfacesListRequest) WwnNisw(wwnNisw []string) ApiDcimInterfacesListRequest { - r.wwnNisw = &wwnNisw +func (r ApiDcimInventoryItemTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemTemplatesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimInterfacesListRequest) Execute() (*PaginatedInterfaceList, *http.Response, error) { - return r.ApiService.DcimInterfacesListExecute(r) +func (r ApiDcimInventoryItemTemplatesListRequest) Execute() (*PaginatedInventoryItemTemplateList, *http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesListExecute(r) } /* -DcimInterfacesList Method for DcimInterfacesList +DcimInventoryItemTemplatesList Method for DcimInventoryItemTemplatesList -Get a list of interface objects. +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 ApiDcimInterfacesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemTemplatesListRequest */ -func (a *DcimAPIService) DcimInterfacesList(ctx context.Context) ApiDcimInterfacesListRequest { - return ApiDcimInterfacesListRequest{ +func (a *DcimAPIService) DcimInventoryItemTemplatesList(ctx context.Context) ApiDcimInventoryItemTemplatesListRequest { + return ApiDcimInventoryItemTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInterfaceList -func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListRequest) (*PaginatedInterfaceList, *http.Response, error) { +// @return PaginatedInventoryItemTemplateList +func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventoryItemTemplatesListRequest) (*PaginatedInventoryItemTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInterfaceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInventoryItemTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/interfaces/" + localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.bridgeId != nil { - t := *r.bridgeId + if r.componentId != nil { + t := *r.componentId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", t, "form", "multi") } } - if r.bridgeIdN != nil { - t := *r.bridgeIdN + 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, "bridge_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__empty", t, "form", "multi") } } - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", t, "form", "multi") + } } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") + if r.componentIdGte != nil { + t := *r.componentIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", t, "form", "multi") + } } - if r.cableId != nil { - t := *r.cableId + if r.componentIdLt != nil { + t := *r.componentIdLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", t, "form", "multi") } } - if r.cableIdN != nil { - t := *r.cableIdN + if r.componentIdLte != nil { + t := *r.componentIdLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", t, "form", "multi") } } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") + if r.componentIdN != nil { + t := *r.componentIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", t, "form", "multi") + } } - if r.connected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "") + if r.componentType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_type", r.componentType, "form", "") + } + if r.componentTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_type__n", r.componentTypeN, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -41817,10 +56759,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -41828,10 +56770,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -41839,10 +56781,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -41850,10 +56792,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -41861,10 +56803,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -41872,38 +56814,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -41911,10 +56853,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -41922,10 +56864,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -41933,10 +56875,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -41944,10 +56886,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -41955,10 +56897,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -41966,10 +56908,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -41977,10 +56919,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -41988,76 +56930,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } - } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.deviceTypeId != nil { @@ -42065,10 +56941,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } if r.deviceTypeIdN != nil { @@ -42076,60 +56952,35 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.duplex != nil { - t := *r.duplex - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", t, "multi") - } - } - if r.duplexN != nil { - t := *r.duplexN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__n", t, "multi") - } - } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -42137,10 +56988,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -42148,10 +56999,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -42159,10 +57010,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -42170,57 +57021,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.kind != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "kind", r.kind, "") - } - if r.l2vpn != nil { - t := *r.l2vpn - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") - } - } - if r.l2vpnN != nil { - t := *r.l2vpnN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") - } - } - if r.l2vpnId != nil { - t := *r.l2vpnId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") - } - } - if r.l2vpnIdN != nil { - t := *r.l2vpnIdN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.label != nil { @@ -42228,24 +57032,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -42253,10 +57057,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -42264,910 +57068,471 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") - } - } - if r.labelIsw != nil { - t := *r.labelIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") - } - } - if r.labelN != nil { - t := *r.labelN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") - } - } - if r.labelNic != nil { - t := *r.labelNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") - } - } - if r.labelNie != nil { - t := *r.labelNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") - } - } - if r.labelNiew != nil { - t := *r.labelNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") - } - } - if r.labelNisw != nil { - t := *r.labelNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") - } - } - if r.lagId != nil { - t := *r.lagId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id", t, "multi") - } - } - if r.lagIdN != nil { - t := *r.lagIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "lag_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.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.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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") - } - } - if r.macAddressIc != nil { - t := *r.macAddressIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") - } - } - if r.macAddressIe != nil { - t := *r.macAddressIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") - } - } - if r.macAddressIew != nil { - t := *r.macAddressIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") - } - } - if r.macAddressIsw != nil { - t := *r.macAddressIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") - } - } - if r.macAddressN != nil { - t := *r.macAddressN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") - } - } - if r.macAddressNic != nil { - t := *r.macAddressNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") - } - } - if r.macAddressNie != nil { - t := *r.macAddressNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") - } - } - if r.macAddressNiew != nil { - t := *r.macAddressNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") - } - } - if r.macAddressNisw != nil { - t := *r.macAddressNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") - } - } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") - } - if r.mgmtOnly != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_only", r.mgmtOnly, "") - } - if r.mode != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "") - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") - } - } - if r.moduleIdN != nil { - t := *r.moduleIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") - } - } - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", t, "multi") - } - } - if r.mtuGte != nil { - t := *r.mtuGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", t, "multi") - } - } - if r.mtuLt != nil { - t := *r.mtuLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", t, "multi") - } - } - if r.mtuLte != nil { - t := *r.mtuLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", t, "multi") - } - } - if r.mtuN != nil { - t := *r.mtuN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", t, "multi") - } - } - 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } - } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") + } } - if r.nameIc != nil { - t := *r.nameIc + if r.labelIsw != nil { + t := *r.labelIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.labelN != nil { + t := *r.labelN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.labelNic != nil { + t := *r.labelNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.labelNie != nil { + t := *r.labelNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.labelNiew != nil { + t := *r.labelNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.labelNisw != nil { + t := *r.labelNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.parentId != nil { - t := *r.parentId + 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, "parent_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.parentIdN != nil { - t := *r.parentIdN + 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, "parent_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.poeMode != nil { - t := *r.poeMode + 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, "poe_mode", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.poeModeN != nil { - t := *r.poeModeN + 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, "poe_mode__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.poeType != nil { - t := *r.poeType + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.manufacturer != nil { + t := *r.manufacturer 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") } } - if r.poeTypeN != nil { - t := *r.poeTypeN + if r.manufacturerN != nil { + t := *r.manufacturerN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rack != nil { - t := *r.rack + if r.manufacturerId != nil { + t := *r.manufacturerId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") } } - if r.rackN != nil { - t := *r.rackN + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") } } - if r.rackId != nil { - t := *r.rackId + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "rack_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "rack_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.region != nil { - t := *r.region + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.rfChannel != nil { - t := *r.rfChannel + 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, "rf_channel", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.rfChannelN != nil { - t := *r.rfChannelN + 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, "rf_channel__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.rfChannelFrequency != nil { - t := *r.rfChannelFrequency + 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, "rf_channel_frequency", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.rfChannelFrequencyEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__empty", r.rfChannelFrequencyEmpty, "") - } - if r.rfChannelFrequencyGt != nil { - t := *r.rfChannelFrequencyGt + 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, "rf_channel_frequency__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.rfChannelFrequencyGte != nil { - t := *r.rfChannelFrequencyGte + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.parentId != nil { + t := *r.parentId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } - if r.rfChannelFrequencyLt != nil { - t := *r.rfChannelFrequencyLt + if r.parentIdN != nil { + t := *r.parentIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") } } - if r.rfChannelFrequencyLte != nil { - t := *r.rfChannelFrequencyLte + if r.partId != nil { + t := *r.partId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", t, "form", "multi") } } - if r.rfChannelFrequencyN != nil { - t := *r.rfChannelFrequencyN + if r.partIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__empty", r.partIdEmpty, "form", "") + } + if r.partIdIc != nil { + t := *r.partIdIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", t, "form", "multi") } } - if r.rfChannelWidth != nil { - t := *r.rfChannelWidth + if r.partIdIe != nil { + t := *r.partIdIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", t, "form", "multi") } } - if r.rfChannelWidthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__empty", r.rfChannelWidthEmpty, "") - } - if r.rfChannelWidthGt != nil { - t := *r.rfChannelWidthGt + if r.partIdIew != nil { + t := *r.partIdIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", t, "form", "multi") } } - if r.rfChannelWidthGte != nil { - t := *r.rfChannelWidthGte + if r.partIdIsw != nil { + t := *r.partIdIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", t, "form", "multi") } } - if r.rfChannelWidthLt != nil { - t := *r.rfChannelWidthLt + if r.partIdN != nil { + t := *r.partIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", t, "form", "multi") } } - if r.rfChannelWidthLte != nil { - t := *r.rfChannelWidthLte + if r.partIdNic != nil { + t := *r.partIdNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", t, "form", "multi") } } - if r.rfChannelWidthN != nil { - t := *r.rfChannelWidthN + if r.partIdNie != nil { + t := *r.partIdNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", t, "form", "multi") } } - if r.rfRole != nil { - t := *r.rfRole + if r.partIdNiew != nil { + t := *r.partIdNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", t, "form", "multi") } } - if r.rfRoleN != nil { - t := *r.rfRoleN + if r.partIdNisw != nil { + t := *r.partIdNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", t, "form", "multi") } } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } if r.roleN != nil { @@ -43175,10 +57540,10 @@ 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } if r.roleId != nil { @@ -43186,10 +57551,10 @@ 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } if r.roleIdN != nil { @@ -43197,2967 +57562,3866 @@ 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "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") + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 } - } 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") - } + 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 ApiDcimInventoryItemTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedInventoryItemTemplateRequest *PatchedInventoryItemTemplateRequest +} + +func (r ApiDcimInventoryItemTemplatesPartialUpdateRequest) PatchedInventoryItemTemplateRequest(patchedInventoryItemTemplateRequest PatchedInventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesPartialUpdateRequest { + r.patchedInventoryItemTemplateRequest = &patchedInventoryItemTemplateRequest + return r +} + +func (r ApiDcimInventoryItemTemplatesPartialUpdateRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesPartialUpdateExecute(r) +} + +/* +DcimInventoryItemTemplatesPartialUpdate Method for DcimInventoryItemTemplatesPartialUpdate + +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 +*/ +func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesPartialUpdateRequest { + return ApiDcimInventoryItemTemplatesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDcimInventoryItemTemplatesPartialUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/inventory-item-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{"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.patchedInventoryItemTemplateRequest + 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 ApiDcimInventoryItemTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimInventoryItemTemplatesRetrieveRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesRetrieveRequest { + return ApiDcimInventoryItemTemplatesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInventoryItemTemplatesRetrieveRequest) (*InventoryItemTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/inventory-item-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 + } + + // 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 ApiDcimInventoryItemTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + inventoryItemTemplateRequest *InventoryItemTemplateRequest +} + +func (r ApiDcimInventoryItemTemplatesUpdateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesUpdateRequest { + r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest + return r +} + +func (r ApiDcimInventoryItemTemplatesUpdateRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { + return r.ApiService.DcimInventoryItemTemplatesUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInventoryItemTemplatesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesUpdateRequest { + return ApiDcimInventoryItemTemplatesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInventoryItemTemplatesUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/inventory-item-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.inventoryItemTemplateRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest 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 } - 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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.inventoryItemTemplateRequest + 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, "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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.speed != nil { - t := *r.speed - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed", 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInventoryItemsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemRequest *[]InventoryItemRequest +} + +func (r ApiDcimInventoryItemsBulkDestroyRequest) InventoryItemRequest(inventoryItemRequest []InventoryItemRequest) ApiDcimInventoryItemsBulkDestroyRequest { + r.inventoryItemRequest = &inventoryItemRequest + return r +} + +func (r ApiDcimInventoryItemsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInventoryItemsBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInventoryItemsBulkDestroy(ctx context.Context) ApiDcimInventoryItemsBulkDestroyRequest { + return ApiDcimInventoryItemsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gt", t, "multi") - } +} + +// Execute executes the request +func (a *DcimAPIService) DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventoryItemsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.speedGte != nil { - t := *r.speedGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gte", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/inventory-items/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.inventoryItemRequest == nil { + return nil, reportError("inventoryItemRequest is required and must be specified") } - if r.speedLt != nil { - t := *r.speedLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__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.speedLte != nil { - t := *r.speedLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lte", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.speedN != nil { - t := *r.speedN - 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).Interface(), "multi") + // body params + localVarPostBody = r.inventoryItemRequest + 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, "speed__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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.txPower != nil { - t := *r.txPower - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power", 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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.txPowerEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__empty", r.txPowerEmpty, "") + + return localVarHTTPResponse, nil +} + +type ApiDcimInventoryItemsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemRequest *[]InventoryItemRequest +} + +func (r ApiDcimInventoryItemsBulkPartialUpdateRequest) InventoryItemRequest(inventoryItemRequest []InventoryItemRequest) ApiDcimInventoryItemsBulkPartialUpdateRequest { + r.inventoryItemRequest = &inventoryItemRequest + return r +} + +func (r ApiDcimInventoryItemsBulkPartialUpdateRequest) Execute() ([]InventoryItem, *http.Response, error) { + return r.ApiService.DcimInventoryItemsBulkPartialUpdateExecute(r) +} + +/* +DcimInventoryItemsBulkPartialUpdate Method for DcimInventoryItemsBulkPartialUpdate + +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 +*/ +func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemsBulkPartialUpdateRequest { + return ApiDcimInventoryItemsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gt", t, "multi") - } +} + +// Execute executes the request +// @return []InventoryItem +func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInventoryItemsBulkPartialUpdateRequest) ([]InventoryItem, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItem + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.txPowerGte != nil { - t := *r.txPowerGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gte", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/inventory-items/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.inventoryItemRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified") } - if r.txPowerLt != nil { - t := *r.txPowerLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__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.txPowerLte != nil { - t := *r.txPowerLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__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.txPowerN != nil { - t := *r.txPowerN - 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).Interface(), "multi") + // body params + localVarPostBody = r.inventoryItemRequest + 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, "tx_power__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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", 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.typeN != nil { - t := *r.typeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + + 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.vdc != nil { - t := *r.vdc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.vdcN != nil { - t := *r.vdcN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc__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.vdcId != nil { - t := *r.vdcId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInventoryItemsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + inventoryItemRequest *[]InventoryItemRequest +} + +func (r ApiDcimInventoryItemsBulkUpdateRequest) InventoryItemRequest(inventoryItemRequest []InventoryItemRequest) ApiDcimInventoryItemsBulkUpdateRequest { + r.inventoryItemRequest = &inventoryItemRequest + return r +} + +func (r ApiDcimInventoryItemsBulkUpdateRequest) Execute() ([]InventoryItem, *http.Response, error) { + return r.ApiService.DcimInventoryItemsBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInventoryItemsBulkUpdate(ctx context.Context) ApiDcimInventoryItemsBulkUpdateRequest { + return ApiDcimInventoryItemsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.vdcIdN != nil { - t := *r.vdcIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id__n", t, "multi") - } +} + +// Execute executes the request +// @return []InventoryItem +func (a *DcimAPIService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryItemsBulkUpdateRequest) ([]InventoryItem, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItem + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.vdcIdentifier != nil { - t := *r.vdcIdentifier - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/inventory-items/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.inventoryItemRequest == nil { + return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified") } - if r.vdcIdentifierN != nil { - t := *r.vdcIdentifierN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier__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.virtualChassis != nil { - t := *r.virtualChassis - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.virtualChassisN != nil { - t := *r.virtualChassisN - 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).Interface(), "multi") + // body params + localVarPostBody = r.inventoryItemRequest + 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, "virtual_chassis__n", t, "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", 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.virtualChassisIdN != nil { - t := *r.virtualChassisIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") + + 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.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") + + 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.vlan != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", r.vlan, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInventoryItemsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableInventoryItemRequest *WritableInventoryItemRequest +} + +func (r ApiDcimInventoryItemsCreateRequest) WritableInventoryItemRequest(writableInventoryItemRequest WritableInventoryItemRequest) ApiDcimInventoryItemsCreateRequest { + r.writableInventoryItemRequest = &writableInventoryItemRequest + return r +} + +func (r ApiDcimInventoryItemsCreateRequest) Execute() (*InventoryItem, *http.Response, error) { + return r.ApiService.DcimInventoryItemsCreateExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInventoryItemsCreate(ctx context.Context) ApiDcimInventoryItemsCreateRequest { + return ApiDcimInventoryItemsCreateRequest{ + ApiService: a, + ctx: ctx, } - if r.vlanId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", r.vlanId, "") +} + +// Execute executes the request +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItemsCreateRequest) (*InventoryItem, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.vrf != nil { - t := *r.vrf - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/inventory-items/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableInventoryItemRequest == nil { + return localVarReturnValue, nil, reportError("writableInventoryItemRequest is required and must be specified") } - if r.vrfN != nil { - t := *r.vrfN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__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.vrfId != nil { - t := *r.vrfId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.vrfIdN != nil { - t := *r.vrfIdN - 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).Interface(), "multi") + // body params + localVarPostBody = r.writableInventoryItemRequest + 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, "vrf_id__n", t, "multi") } } - if r.wirelessLanId != nil { - t := *r.wirelessLanId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id", 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.wirelessLanIdN != nil { - t := *r.wirelessLanIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_lan_id__n", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.wirelessLinkId != nil { - t := *r.wirelessLinkId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id", 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.wirelessLinkIdN != nil { - t := *r.wirelessLinkIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wireless_link_id__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.wwn != nil { - t := *r.wwn - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn", 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.wwnIc != nil { - t := *r.wwnIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ic", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimInventoryItemsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimInventoryItemsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimInventoryItemsDestroyExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimInventoryItemsDestroy(ctx context.Context, id int32) ApiDcimInventoryItemsDestroyRequest { + return ApiDcimInventoryItemsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.wwnIe != nil { - t := *r.wwnIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ie", t, "multi") - } +} + +// Execute executes the request +func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItemsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.wwnIew != nil { - t := *r.wwnIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__iew", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/inventory-items/{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.wwnIsw != nil { - t := *r.wwnIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__isw", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.wwnN != nil { - t := *r.wwnN - 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).Interface(), "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, "wwn__n", t, "multi") } } - if r.wwnNic != nil { - t := *r.wwnNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nic", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.wwnNie != nil { - t := *r.wwnNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nie", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.wwnNiew != nil { - t := *r.wwnNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__niew", 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.wwnNisw != nil { - t := *r.wwnNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nisw", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + return localVarHTTPResponse, nil +} + +type ApiDcimInventoryItemsListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + 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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + 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 *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 +} + +func (r ApiDcimInventoryItemsListRequest) AssetTag(assetTag []string) ApiDcimInventoryItemsListRequest { + r.assetTag = &assetTag + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagEmpty(assetTagEmpty bool) ApiDcimInventoryItemsListRequest { + r.assetTagEmpty = &assetTagEmpty + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagIc(assetTagIc []string) ApiDcimInventoryItemsListRequest { + r.assetTagIc = &assetTagIc + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagIe(assetTagIe []string) ApiDcimInventoryItemsListRequest { + r.assetTagIe = &assetTagIe + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagIew(assetTagIew []string) ApiDcimInventoryItemsListRequest { + r.assetTagIew = &assetTagIew + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagIsw(assetTagIsw []string) ApiDcimInventoryItemsListRequest { + r.assetTagIsw = &assetTagIsw + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagN(assetTagN []string) ApiDcimInventoryItemsListRequest { + r.assetTagN = &assetTagN + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagNic(assetTagNic []string) ApiDcimInventoryItemsListRequest { + r.assetTagNic = &assetTagNic + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagNie(assetTagNie []string) ApiDcimInventoryItemsListRequest { + r.assetTagNie = &assetTagNie + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagNiew(assetTagNiew []string) ApiDcimInventoryItemsListRequest { + r.assetTagNiew = &assetTagNiew + return r +} + +func (r ApiDcimInventoryItemsListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimInventoryItemsListRequest { + r.assetTagNisw = &assetTagNisw + return r +} + +func (r ApiDcimInventoryItemsListRequest) ComponentId(componentId []int32) ApiDcimInventoryItemsListRequest { + r.componentId = &componentId + 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 +} + +func (r ApiDcimInventoryItemsListRequest) ComponentIdGte(componentIdGte []int32) ApiDcimInventoryItemsListRequest { + r.componentIdGte = &componentIdGte + return r +} + +func (r ApiDcimInventoryItemsListRequest) ComponentIdLt(componentIdLt []int32) ApiDcimInventoryItemsListRequest { + r.componentIdLt = &componentIdLt + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiDcimInventoryItemsListRequest) ComponentIdLte(componentIdLte []int32) ApiDcimInventoryItemsListRequest { + r.componentIdLte = &componentIdLte + 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 ApiDcimInventoryItemsListRequest) ComponentIdN(componentIdN []int32) ApiDcimInventoryItemsListRequest { + r.componentIdN = &componentIdN + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimInventoryItemsListRequest) ComponentType(componentType string) ApiDcimInventoryItemsListRequest { + r.componentType = &componentType + 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 - } +func (r ApiDcimInventoryItemsListRequest) ComponentTypeN(componentTypeN string) ApiDcimInventoryItemsListRequest { + r.componentTypeN = &componentTypeN + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInventoryItemsListRequest) Created(created []time.Time) ApiDcimInventoryItemsListRequest { + r.created = &created + 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 ApiDcimInventoryItemsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInventoryItemsListRequest { + r.createdEmpty = &createdEmpty + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimInventoryItemsListRequest) CreatedGt(createdGt []time.Time) ApiDcimInventoryItemsListRequest { + r.createdGt = &createdGt + return r } -type ApiDcimInterfacesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableInterfaceRequest *PatchedWritableInterfaceRequest +func (r ApiDcimInventoryItemsListRequest) CreatedGte(createdGte []time.Time) ApiDcimInventoryItemsListRequest { + r.createdGte = &createdGte + return r } -func (r ApiDcimInterfacesPartialUpdateRequest) PatchedWritableInterfaceRequest(patchedWritableInterfaceRequest PatchedWritableInterfaceRequest) ApiDcimInterfacesPartialUpdateRequest { - r.patchedWritableInterfaceRequest = &patchedWritableInterfaceRequest +func (r ApiDcimInventoryItemsListRequest) CreatedLt(createdLt []time.Time) ApiDcimInventoryItemsListRequest { + r.createdLt = &createdLt return r } -func (r ApiDcimInterfacesPartialUpdateRequest) Execute() (*Interface, *http.Response, error) { - return r.ApiService.DcimInterfacesPartialUpdateExecute(r) +func (r ApiDcimInventoryItemsListRequest) CreatedLte(createdLte []time.Time) ApiDcimInventoryItemsListRequest { + r.createdLte = &createdLte + return r } -/* -DcimInterfacesPartialUpdate Method for DcimInterfacesPartialUpdate +func (r ApiDcimInventoryItemsListRequest) CreatedN(createdN []time.Time) ApiDcimInventoryItemsListRequest { + r.createdN = &createdN + return r +} -Patch a interface object. +func (r ApiDcimInventoryItemsListRequest) CreatedByRequest(createdByRequest string) ApiDcimInventoryItemsListRequest { + r.createdByRequest = &createdByRequest + 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 interface. - @return ApiDcimInterfacesPartialUpdateRequest -*/ -func (a *DcimAPIService) DcimInterfacesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfacesPartialUpdateRequest { - return ApiDcimInterfacesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiDcimInventoryItemsListRequest) Description(description []string) ApiDcimInventoryItemsListRequest { + r.description = &description + return r } -// Execute executes the request -// -// @return Interface -func (a *DcimAPIService) DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesPartialUpdateRequest) (*Interface, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface - ) +func (r ApiDcimInventoryItemsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInventoryItemsListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemsListRequest { + r.descriptionIc = &descriptionIc + return r +} - localVarPath := localBasePath + "/api/dcim/interfaces/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimInventoryItemsListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemsListRequest { + r.descriptionIe = &descriptionIe + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiDcimInventoryItemsListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimInventoryItemsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimInventoryItemsListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimInventoryItemsListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimInventoryItemsListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimInventoryItemsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimInventoryItemsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Device (name) +func (r ApiDcimInventoryItemsListRequest) Device(device []*string) ApiDcimInventoryItemsListRequest { + r.device = &device + return r +} + +// Device (name) +func (r ApiDcimInventoryItemsListRequest) DeviceN(deviceN []*string) ApiDcimInventoryItemsListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceId(deviceId []int32) ApiDcimInventoryItemsListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInventoryItemsListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRole(deviceRole []string) ApiDcimInventoryItemsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInventoryItemsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatus(deviceStatus []string) ApiDcimInventoryItemsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimInventoryItemsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + +// Device type (model) +func (r ApiDcimInventoryItemsListRequest) DeviceType(deviceType []string) ApiDcimInventoryItemsListRequest { + r.deviceType = &deviceType + return r +} + +// Device type (model) +func (r ApiDcimInventoryItemsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimInventoryItemsListRequest { + r.deviceTypeN = &deviceTypeN + return r +} + +// Device type (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimInventoryItemsListRequest { + r.deviceTypeId = &deviceTypeId + return r +} + +// Device type (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimInventoryItemsListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r +} + +func (r ApiDcimInventoryItemsListRequest) Discovered(discovered bool) ApiDcimInventoryItemsListRequest { + r.discovered = &discovered + return r +} + +func (r ApiDcimInventoryItemsListRequest) Id(id []int32) ApiDcimInventoryItemsListRequest { + r.id = &id + 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 +} + +func (r ApiDcimInventoryItemsListRequest) IdGte(idGte []int32) ApiDcimInventoryItemsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimInventoryItemsListRequest) IdLt(idLt []int32) ApiDcimInventoryItemsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimInventoryItemsListRequest) IdLte(idLte []int32) ApiDcimInventoryItemsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimInventoryItemsListRequest) IdN(idN []int32) ApiDcimInventoryItemsListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimInventoryItemsListRequest) Label(label []string) ApiDcimInventoryItemsListRequest { + r.label = &label + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelEmpty(labelEmpty bool) ApiDcimInventoryItemsListRequest { + r.labelEmpty = &labelEmpty + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelIc(labelIc []string) ApiDcimInventoryItemsListRequest { + r.labelIc = &labelIc + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelIe(labelIe []string) ApiDcimInventoryItemsListRequest { + r.labelIe = &labelIe + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelIew(labelIew []string) ApiDcimInventoryItemsListRequest { + r.labelIew = &labelIew + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelIsw(labelIsw []string) ApiDcimInventoryItemsListRequest { + r.labelIsw = &labelIsw + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelN(labelN []string) ApiDcimInventoryItemsListRequest { + r.labelN = &labelN + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelNic(labelNic []string) ApiDcimInventoryItemsListRequest { + r.labelNic = &labelNic + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelNie(labelNie []string) ApiDcimInventoryItemsListRequest { + r.labelNie = &labelNie + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelNiew(labelNiew []string) ApiDcimInventoryItemsListRequest { + r.labelNiew = &labelNiew + return r +} + +func (r ApiDcimInventoryItemsListRequest) LabelNisw(labelNisw []string) ApiDcimInventoryItemsListRequest { + r.labelNisw = &labelNisw + return r +} + +func (r ApiDcimInventoryItemsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInventoryItemsListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiDcimInventoryItemsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInventoryItemsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimInventoryItemsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInventoryItemsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimInventoryItemsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInventoryItemsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimInventoryItemsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInventoryItemsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimInventoryItemsListRequest) Limit(limit int32) ApiDcimInventoryItemsListRequest { + r.limit = &limit + return r +} + +// Location (slug) +func (r ApiDcimInventoryItemsListRequest) Location(location []string) ApiDcimInventoryItemsListRequest { + r.location = &location + return r +} + +// Location (slug) +func (r ApiDcimInventoryItemsListRequest) LocationN(locationN []string) ApiDcimInventoryItemsListRequest { + r.locationN = &locationN + return r +} + +// Location (ID) +func (r ApiDcimInventoryItemsListRequest) LocationId(locationId []int32) ApiDcimInventoryItemsListRequest { + r.locationId = &locationId + return r +} + +// Location (ID) +func (r ApiDcimInventoryItemsListRequest) LocationIdN(locationIdN []int32) ApiDcimInventoryItemsListRequest { + r.locationIdN = &locationIdN + return r +} + +// Manufacturer (slug) +func (r ApiDcimInventoryItemsListRequest) Manufacturer(manufacturer []string) ApiDcimInventoryItemsListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimInventoryItemsListRequest) ManufacturerN(manufacturerN []string) ApiDcimInventoryItemsListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimInventoryItemsListRequest) ManufacturerId(manufacturerId []*int32) ApiDcimInventoryItemsListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimInventoryItemsListRequest) ManufacturerIdN(manufacturerIdN []*int32) ApiDcimInventoryItemsListRequest { + r.manufacturerIdN = &manufacturerIdN + 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 +} + +func (r ApiDcimInventoryItemsListRequest) NameEmpty(nameEmpty bool) ApiDcimInventoryItemsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiDcimInventoryItemsListRequest) NameIc(nameIc []string) ApiDcimInventoryItemsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiDcimInventoryItemsListRequest) NameIe(nameIe []string) ApiDcimInventoryItemsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiDcimInventoryItemsListRequest) NameIew(nameIew []string) ApiDcimInventoryItemsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiDcimInventoryItemsListRequest) NameIsw(nameIsw []string) ApiDcimInventoryItemsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiDcimInventoryItemsListRequest) NameN(nameN []string) ApiDcimInventoryItemsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiDcimInventoryItemsListRequest) NameNic(nameNic []string) ApiDcimInventoryItemsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiDcimInventoryItemsListRequest) NameNie(nameNie []string) ApiDcimInventoryItemsListRequest { + r.nameNie = &nameNie + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiDcimInventoryItemsListRequest) NameNiew(nameNiew []string) ApiDcimInventoryItemsListRequest { + r.nameNiew = &nameNiew + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInventoryItemsListRequest) NameNisw(nameNisw []string) ApiDcimInventoryItemsListRequest { + r.nameNisw = &nameNisw + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +// The initial index from which to return the results. +func (r ApiDcimInventoryItemsListRequest) Offset(offset int32) ApiDcimInventoryItemsListRequest { + r.offset = &offset + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedWritableInterfaceRequest - 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 - } +// Which field to use when ordering the results. +func (r ApiDcimInventoryItemsListRequest) Ordering(ordering string) ApiDcimInventoryItemsListRequest { + r.ordering = &ordering + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +// Parent inventory item (ID) +func (r ApiDcimInventoryItemsListRequest) ParentId(parentId []*int32) ApiDcimInventoryItemsListRequest { + r.parentId = &parentId + 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 - } +// Parent inventory item (ID) +func (r ApiDcimInventoryItemsListRequest) ParentIdN(parentIdN []*int32) ApiDcimInventoryItemsListRequest { + r.parentIdN = &parentIdN + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInventoryItemsListRequest) PartId(partId []string) ApiDcimInventoryItemsListRequest { + r.partId = &partId + 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 ApiDcimInventoryItemsListRequest) PartIdEmpty(partIdEmpty bool) ApiDcimInventoryItemsListRequest { + r.partIdEmpty = &partIdEmpty + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimInventoryItemsListRequest) PartIdIc(partIdIc []string) ApiDcimInventoryItemsListRequest { + r.partIdIc = &partIdIc + return r } -type ApiDcimInterfacesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +func (r ApiDcimInventoryItemsListRequest) PartIdIe(partIdIe []string) ApiDcimInventoryItemsListRequest { + r.partIdIe = &partIdIe + return r } -func (r ApiDcimInterfacesRetrieveRequest) Execute() (*Interface, *http.Response, error) { - return r.ApiService.DcimInterfacesRetrieveExecute(r) +func (r ApiDcimInventoryItemsListRequest) PartIdIew(partIdIew []string) ApiDcimInventoryItemsListRequest { + r.partIdIew = &partIdIew + return r } -/* -DcimInterfacesRetrieve Method for DcimInterfacesRetrieve +func (r ApiDcimInventoryItemsListRequest) PartIdIsw(partIdIsw []string) ApiDcimInventoryItemsListRequest { + r.partIdIsw = &partIdIsw + return r +} -Get a interface object. +func (r ApiDcimInventoryItemsListRequest) PartIdN(partIdN []string) ApiDcimInventoryItemsListRequest { + r.partIdN = &partIdN + 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 interface. - @return ApiDcimInterfacesRetrieveRequest -*/ -func (a *DcimAPIService) DcimInterfacesRetrieve(ctx context.Context, id int32) ApiDcimInterfacesRetrieveRequest { - return ApiDcimInterfacesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiDcimInventoryItemsListRequest) PartIdNic(partIdNic []string) ApiDcimInventoryItemsListRequest { + r.partIdNic = &partIdNic + return r } -// Execute executes the request -// -// @return Interface -func (a *DcimAPIService) DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrieveRequest) (*Interface, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface - ) +func (r ApiDcimInventoryItemsListRequest) PartIdNie(partIdNie []string) ApiDcimInventoryItemsListRequest { + r.partIdNie = &partIdNie + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInventoryItemsListRequest) PartIdNiew(partIdNiew []string) ApiDcimInventoryItemsListRequest { + r.partIdNiew = &partIdNiew + return r +} - localVarPath := localBasePath + "/api/dcim/interfaces/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimInventoryItemsListRequest) PartIdNisw(partIdNisw []string) ApiDcimInventoryItemsListRequest { + r.partIdNisw = &partIdNisw + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +// Search +func (r ApiDcimInventoryItemsListRequest) Q(q string) ApiDcimInventoryItemsListRequest { + r.q = &q + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +// Rack (name) +func (r ApiDcimInventoryItemsListRequest) Rack(rack []string) ApiDcimInventoryItemsListRequest { + r.rack = &rack + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +// Rack (name) +func (r ApiDcimInventoryItemsListRequest) RackN(rackN []string) ApiDcimInventoryItemsListRequest { + r.rackN = &rackN + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +// Rack (ID) +func (r ApiDcimInventoryItemsListRequest) RackId(rackId []int32) ApiDcimInventoryItemsListRequest { + r.rackId = &rackId + 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 - } +// Rack (ID) +func (r ApiDcimInventoryItemsListRequest) RackIdN(rackIdN []int32) ApiDcimInventoryItemsListRequest { + r.rackIdN = &rackIdN + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimInventoryItemsListRequest) Region(region []string) ApiDcimInventoryItemsListRequest { + r.region = ®ion + 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 - } +func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []string) ApiDcimInventoryItemsListRequest { + r.regionN = ®ionN + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []string) ApiDcimInventoryItemsListRequest { + r.regionId = ®ionId + 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 ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []string) ApiDcimInventoryItemsListRequest { + r.regionIdN = ®ionIdN + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +// Role (slug) +func (r ApiDcimInventoryItemsListRequest) Role(role []string) ApiDcimInventoryItemsListRequest { + r.role = &role + return r } -type ApiDcimInterfacesTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +// Role (slug) +func (r ApiDcimInventoryItemsListRequest) RoleN(roleN []string) ApiDcimInventoryItemsListRequest { + r.roleN = &roleN + return r } -func (r ApiDcimInterfacesTraceRetrieveRequest) Execute() (*Interface, *http.Response, error) { - return r.ApiService.DcimInterfacesTraceRetrieveExecute(r) +// Role (ID) +func (r ApiDcimInventoryItemsListRequest) RoleId(roleId []*int32) ApiDcimInventoryItemsListRequest { + r.roleId = &roleId + return r } -/* -DcimInterfacesTraceRetrieve Method for DcimInterfacesTraceRetrieve +// Role (ID) +func (r ApiDcimInventoryItemsListRequest) RoleIdN(roleIdN []*int32) ApiDcimInventoryItemsListRequest { + r.roleIdN = &roleIdN + return r +} -Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). +func (r ApiDcimInventoryItemsListRequest) Serial(serial []string) ApiDcimInventoryItemsListRequest { + r.serial = &serial + 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 interface. - @return ApiDcimInterfacesTraceRetrieveRequest -*/ -func (a *DcimAPIService) DcimInterfacesTraceRetrieve(ctx context.Context, id int32) ApiDcimInterfacesTraceRetrieveRequest { - return ApiDcimInterfacesTraceRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiDcimInventoryItemsListRequest) SerialEmpty(serialEmpty bool) ApiDcimInventoryItemsListRequest { + r.serialEmpty = &serialEmpty + return r } -// Execute executes the request -// -// @return Interface -func (a *DcimAPIService) DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesTraceRetrieveRequest) (*Interface, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface - ) +func (r ApiDcimInventoryItemsListRequest) SerialIc(serialIc []string) ApiDcimInventoryItemsListRequest { + r.serialIc = &serialIc + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesTraceRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInventoryItemsListRequest) SerialIe(serialIe []string) ApiDcimInventoryItemsListRequest { + r.serialIe = &serialIe + return r +} - localVarPath := localBasePath + "/api/dcim/interfaces/{id}/trace/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimInventoryItemsListRequest) SerialIew(serialIew []string) ApiDcimInventoryItemsListRequest { + r.serialIew = &serialIew + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiDcimInventoryItemsListRequest) SerialIsw(serialIsw []string) ApiDcimInventoryItemsListRequest { + r.serialIsw = &serialIsw + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiDcimInventoryItemsListRequest) SerialN(serialN []string) ApiDcimInventoryItemsListRequest { + r.serialN = &serialN + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInventoryItemsListRequest) SerialNic(serialNic []string) ApiDcimInventoryItemsListRequest { + r.serialNic = &serialNic + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiDcimInventoryItemsListRequest) SerialNie(serialNie []string) ApiDcimInventoryItemsListRequest { + r.serialNie = &serialNie + 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 ApiDcimInventoryItemsListRequest) SerialNiew(serialNiew []string) ApiDcimInventoryItemsListRequest { + r.serialNiew = &serialNiew + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimInventoryItemsListRequest) SerialNisw(serialNisw []string) ApiDcimInventoryItemsListRequest { + r.serialNisw = &serialNisw + 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 - } +// Site name (slug) +func (r ApiDcimInventoryItemsListRequest) Site(site []string) ApiDcimInventoryItemsListRequest { + r.site = &site + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +// Site name (slug) +func (r ApiDcimInventoryItemsListRequest) SiteN(siteN []string) ApiDcimInventoryItemsListRequest { + r.siteN = &siteN + 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 ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []string) ApiDcimInventoryItemsListRequest { + r.siteGroup = &siteGroup + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []string) ApiDcimInventoryItemsListRequest { + r.siteGroupN = &siteGroupN + return r } -type ApiDcimInterfacesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableInterfaceRequest *WritableInterfaceRequest +func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []string) ApiDcimInventoryItemsListRequest { + r.siteGroupId = &siteGroupId + return r } -func (r ApiDcimInterfacesUpdateRequest) WritableInterfaceRequest(writableInterfaceRequest WritableInterfaceRequest) ApiDcimInterfacesUpdateRequest { - r.writableInterfaceRequest = &writableInterfaceRequest +func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInventoryItemsListRequest { + r.siteGroupIdN = &siteGroupIdN return r } -func (r ApiDcimInterfacesUpdateRequest) Execute() (*Interface, *http.Response, error) { - return r.ApiService.DcimInterfacesUpdateExecute(r) +// Site (ID) +func (r ApiDcimInventoryItemsListRequest) SiteId(siteId []int32) ApiDcimInventoryItemsListRequest { + r.siteId = &siteId + return r } -/* -DcimInterfacesUpdate Method for DcimInterfacesUpdate +// Site (ID) +func (r ApiDcimInventoryItemsListRequest) SiteIdN(siteIdN []int32) ApiDcimInventoryItemsListRequest { + r.siteIdN = &siteIdN + return r +} -Put a interface object. +func (r ApiDcimInventoryItemsListRequest) Status(status []string) ApiDcimInventoryItemsListRequest { + r.status = &status + 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 interface. - @return ApiDcimInterfacesUpdateRequest -*/ -func (a *DcimAPIService) DcimInterfacesUpdate(ctx context.Context, id int32) ApiDcimInterfacesUpdateRequest { - return ApiDcimInterfacesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiDcimInventoryItemsListRequest) StatusEmpty(statusEmpty bool) ApiDcimInventoryItemsListRequest { + r.statusEmpty = &statusEmpty + return r } -// Execute executes the request -// -// @return Interface -func (a *DcimAPIService) DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRequest) (*Interface, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface - ) +func (r ApiDcimInventoryItemsListRequest) StatusIc(statusIc []string) ApiDcimInventoryItemsListRequest { + r.statusIc = &statusIc + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimInventoryItemsListRequest) StatusIe(statusIe []string) ApiDcimInventoryItemsListRequest { + r.statusIe = &statusIe + return r +} - localVarPath := localBasePath + "/api/dcim/interfaces/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiDcimInventoryItemsListRequest) StatusIew(statusIew []string) ApiDcimInventoryItemsListRequest { + r.statusIew = &statusIew + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableInterfaceRequest == nil { - return localVarReturnValue, nil, reportError("writableInterfaceRequest is required and must be specified") - } +func (r ApiDcimInventoryItemsListRequest) StatusIsw(statusIsw []string) ApiDcimInventoryItemsListRequest { + r.statusIsw = &statusIsw + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiDcimInventoryItemsListRequest) StatusN(statusN []string) ApiDcimInventoryItemsListRequest { + r.statusN = &statusN + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiDcimInventoryItemsListRequest) StatusNic(statusNic []string) ApiDcimInventoryItemsListRequest { + r.statusNic = &statusNic + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiDcimInventoryItemsListRequest) StatusNie(statusNie []string) ApiDcimInventoryItemsListRequest { + r.statusNie = &statusNie + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableInterfaceRequest - 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 ApiDcimInventoryItemsListRequest) StatusNiew(statusNiew []string) ApiDcimInventoryItemsListRequest { + r.statusNiew = &statusNiew + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiDcimInventoryItemsListRequest) StatusNisw(statusNisw []string) ApiDcimInventoryItemsListRequest { + r.statusNisw = &statusNisw + 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 - } +func (r ApiDcimInventoryItemsListRequest) Tag(tag []string) ApiDcimInventoryItemsListRequest { + r.tag = &tag + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiDcimInventoryItemsListRequest) TagN(tagN []string) ApiDcimInventoryItemsListRequest { + r.tagN = &tagN + 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 ApiDcimInventoryItemsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +// Virtual Chassis +func (r ApiDcimInventoryItemsListRequest) VirtualChassis(virtualChassis []string) ApiDcimInventoryItemsListRequest { + r.virtualChassis = &virtualChassis + return r } -type ApiDcimInventoryItemRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRoleRequest *[]InventoryItemRoleRequest +// Virtual Chassis +func (r ApiDcimInventoryItemsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimInventoryItemsListRequest { + r.virtualChassisN = &virtualChassisN + return r } -func (r ApiDcimInventoryItemRolesBulkDestroyRequest) InventoryItemRoleRequest(inventoryItemRoleRequest []InventoryItemRoleRequest) ApiDcimInventoryItemRolesBulkDestroyRequest { - r.inventoryItemRoleRequest = &inventoryItemRoleRequest +// Virtual Chassis (ID) +func (r ApiDcimInventoryItemsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimInventoryItemsListRequest { + r.virtualChassisId = &virtualChassisId return r } -func (r ApiDcimInventoryItemRolesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInventoryItemRolesBulkDestroyExecute(r) +// Virtual Chassis (ID) +func (r ApiDcimInventoryItemsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimInventoryItemsListRequest { + r.virtualChassisIdN = &virtualChassisIdN + return r +} + +func (r ApiDcimInventoryItemsListRequest) Execute() (*PaginatedInventoryItemList, *http.Response, error) { + return r.ApiService.DcimInventoryItemsListExecute(r) } /* -DcimInventoryItemRolesBulkDestroy Method for DcimInventoryItemRolesBulkDestroy +DcimInventoryItemsList Method for DcimInventoryItemsList -Delete a list of inventory item role objects. +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 ApiDcimInventoryItemRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemsListRequest */ -func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroy(ctx context.Context) ApiDcimInventoryItemRolesBulkDestroyRequest { - return ApiDcimInventoryItemRolesBulkDestroyRequest{ +func (a *DcimAPIService) DcimInventoryItemsList(ctx context.Context) ApiDcimInventoryItemsListRequest { + return ApiDcimInventoryItemsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInventoryItemRolesBulkDestroyRequest) (*http.Response, error) { +// @return PaginatedInventoryItemList +func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsListRequest) (*PaginatedInventoryItemList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInventoryItemList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsList") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" + localVarPath := localBasePath + "/api/dcim/inventory-items/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.inventoryItemRoleRequest == nil { - return nil, reportError("inventoryItemRoleRequest 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 + if r.assetTag != nil { + t := *r.assetTag + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.assetTagEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "form", "") } - // body params - localVarPostBody = r.inventoryItemRoleRequest - 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.assetTagIc != nil { + t := *r.assetTagIc + 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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err + if r.assetTagIe != nil { + t := *r.assetTagIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + if r.assetTagIew != nil { + t := *r.assetTagIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "form", "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.assetTagIsw != nil { + t := *r.assetTagIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.assetTagN != nil { + t := *r.assetTagN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "form", "multi") } - return localVarHTTPResponse, newErr } - - return localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRoleRequest *[]InventoryItemRoleRequest -} - -func (r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest []InventoryItemRoleRequest) ApiDcimInventoryItemRolesBulkPartialUpdateRequest { - r.inventoryItemRoleRequest = &inventoryItemRoleRequest - return r -} - -func (r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) Execute() ([]InventoryItemRole, *http.Response, error) { - return r.ApiService.DcimInventoryItemRolesBulkPartialUpdateExecute(r) -} - -/* -DcimInventoryItemRolesBulkPartialUpdate Method for DcimInventoryItemRolesBulkPartialUpdate - -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 -*/ -func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkPartialUpdateRequest { - return ApiDcimInventoryItemRolesBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, + if r.assetTagNic != nil { + t := *r.assetTagNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return []InventoryItemRole -func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) ([]InventoryItemRole, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemRole - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.assetTagNie != nil { + t := *r.assetTagNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "form", "multi") + } + } + if r.assetTagNiew != nil { + t := *r.assetTagNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "form", "multi") + } + } + if r.assetTagNisw != nil { + t := *r.assetTagNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "form", "multi") + } + } + if r.componentId != nil { + t := *r.componentId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__empty", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", t, "form", "multi") + } + } + if r.componentIdGte != nil { + t := *r.componentIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", t, "form", "multi") + } + } + if r.componentIdLt != nil { + t := *r.componentIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", t, "form", "multi") + } + } + if r.componentIdLte != nil { + t := *r.componentIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", t, "form", "multi") + } + } + if r.componentIdN != nil { + t := *r.componentIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", t, "form", "multi") + } + } + if r.componentType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_type", r.componentType, "form", "") + } + if r.componentTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_type__n", r.componentTypeN, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.device != nil { + t := *r.device + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inventoryItemRoleRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "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.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } } - // body params - localVarPostBody = r.inventoryItemRoleRequest - 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.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") } - - 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.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "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.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRoleRequest *[]InventoryItemRoleRequest -} - -func (r ApiDcimInventoryItemRolesBulkUpdateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest []InventoryItemRoleRequest) ApiDcimInventoryItemRolesBulkUpdateRequest { - r.inventoryItemRoleRequest = &inventoryItemRoleRequest - return r -} - -func (r ApiDcimInventoryItemRolesBulkUpdateRequest) Execute() ([]InventoryItemRole, *http.Response, error) { - return r.ApiService.DcimInventoryItemRolesBulkUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkUpdateRequest { - return ApiDcimInventoryItemRolesBulkUpdateRequest{ - ApiService: a, - ctx: ctx, + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return []InventoryItemRole -func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInventoryItemRolesBulkUpdateRequest) ([]InventoryItemRole, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemRole - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inventoryItemRoleRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "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.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") + } } - // body params - localVarPostBody = r.inventoryItemRoleRequest - 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.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.deviceType != nil { + t := *r.deviceType + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.deviceTypeN != nil { + t := *r.deviceTypeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "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.discovered != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "discovered", r.discovered, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemRolesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRoleRequest *InventoryItemRoleRequest -} - -func (r ApiDcimInventoryItemRolesCreateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest InventoryItemRoleRequest) ApiDcimInventoryItemRolesCreateRequest { - r.inventoryItemRoleRequest = &inventoryItemRoleRequest - return r -} - -func (r ApiDcimInventoryItemRolesCreateRequest) Execute() (*InventoryItemRole, *http.Response, error) { - return r.ApiService.DcimInventoryItemRolesCreateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemRolesCreate(ctx context.Context) ApiDcimInventoryItemRolesCreateRequest { - return ApiDcimInventoryItemRolesCreateRequest{ - ApiService: a, - ctx: ctx, + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } -} - -// Execute executes the request -// -// @return InventoryItemRole -func (a *DcimAPIService) DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryItemRolesCreateRequest) (*InventoryItemRole, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inventoryItemRoleRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") + } } - // body params - localVarPostBody = r.inventoryItemRoleRequest - 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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.label != nil { + t := *r.label + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } - - 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.labelIc != nil { + t := *r.labelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.labelIe != nil { + t := *r.labelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "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.labelIew != nil { + t := *r.labelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemRolesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimInventoryItemRolesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInventoryItemRolesDestroyExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemRolesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemRolesDestroyRequest { - return ApiDcimInventoryItemRolesDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.labelIsw != nil { + t := *r.labelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") + } } -} - -// Execute executes the request -func (a *DcimAPIService) DcimInventoryItemRolesDestroyExecute(r ApiDcimInventoryItemRolesDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + if r.labelN != nil { + t := *r.labelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") + } + } + if r.labelNic != nil { + t := *r.labelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") + } + } + if r.labelNie != nil { + t := *r.labelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{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.labelNiew != nil { + t := *r.labelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.labelNisw != nil { + t := *r.labelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } - return localVarHTTPResponse, newErr } - - return localVarHTTPResponse, nil -} - -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 - 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 -} - -func (r ApiDcimInventoryItemRolesListRequest) Color(color []string) ApiDcimInventoryItemRolesListRequest { - r.color = &color - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorEmpty(colorEmpty bool) ApiDcimInventoryItemRolesListRequest { - r.colorEmpty = &colorEmpty - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorIc(colorIc []string) ApiDcimInventoryItemRolesListRequest { - r.colorIc = &colorIc - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorIe(colorIe []string) ApiDcimInventoryItemRolesListRequest { - r.colorIe = &colorIe - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorIew(colorIew []string) ApiDcimInventoryItemRolesListRequest { - r.colorIew = &colorIew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorIsw(colorIsw []string) ApiDcimInventoryItemRolesListRequest { - r.colorIsw = &colorIsw - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorN(colorN []string) ApiDcimInventoryItemRolesListRequest { - r.colorN = &colorN - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorNic(colorNic []string) ApiDcimInventoryItemRolesListRequest { - r.colorNic = &colorNic - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorNie(colorNie []string) ApiDcimInventoryItemRolesListRequest { - r.colorNie = &colorNie - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorNiew(colorNiew []string) ApiDcimInventoryItemRolesListRequest { - r.colorNiew = &colorNiew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) ColorNisw(colorNisw []string) ApiDcimInventoryItemRolesListRequest { - r.colorNisw = &colorNisw - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) Created(created []time.Time) ApiDcimInventoryItemRolesListRequest { - r.created = &created - 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 -} - -func (r ApiDcimInventoryItemRolesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInventoryItemRolesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInventoryItemRolesListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInventoryItemRolesListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) CreatedN(createdN []time.Time) ApiDcimInventoryItemRolesListRequest { - r.createdN = &createdN - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInventoryItemRolesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) Description(description []string) ApiDcimInventoryItemRolesListRequest { - r.description = &description - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemRolesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemRolesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) Id(id []int32) ApiDcimInventoryItemRolesListRequest { - r.id = &id - 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 -} - -func (r ApiDcimInventoryItemRolesListRequest) IdGte(idGte []int32) ApiDcimInventoryItemRolesListRequest { - r.idGte = &idGte - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) IdLt(idLt []int32) ApiDcimInventoryItemRolesListRequest { - r.idLt = &idLt - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) IdLte(idLte []int32) ApiDcimInventoryItemRolesListRequest { - r.idLte = &idLte - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) IdN(idN []int32) ApiDcimInventoryItemRolesListRequest { - r.idN = &idN - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInventoryItemRolesListRequest { - r.lastUpdated = &lastUpdated - 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 -} - -func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInventoryItemRolesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInventoryItemRolesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInventoryItemRolesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInventoryItemRolesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiDcimInventoryItemRolesListRequest) Limit(limit int32) ApiDcimInventoryItemRolesListRequest { - r.limit = &limit - 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 -} - -func (r ApiDcimInventoryItemRolesListRequest) NameEmpty(nameEmpty bool) ApiDcimInventoryItemRolesListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameIc(nameIc []string) ApiDcimInventoryItemRolesListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameIe(nameIe []string) ApiDcimInventoryItemRolesListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameIew(nameIew []string) ApiDcimInventoryItemRolesListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameIsw(nameIsw []string) ApiDcimInventoryItemRolesListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameN(nameN []string) ApiDcimInventoryItemRolesListRequest { - r.nameN = &nameN - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameNic(nameNic []string) ApiDcimInventoryItemRolesListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameNie(nameNie []string) ApiDcimInventoryItemRolesListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameNiew(nameNiew []string) ApiDcimInventoryItemRolesListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) NameNisw(nameNisw []string) ApiDcimInventoryItemRolesListRequest { - r.nameNisw = &nameNisw - return r -} - -// The initial index from which to return the results. -func (r ApiDcimInventoryItemRolesListRequest) Offset(offset int32) ApiDcimInventoryItemRolesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiDcimInventoryItemRolesListRequest) Ordering(ordering string) ApiDcimInventoryItemRolesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiDcimInventoryItemRolesListRequest) Q(q string) ApiDcimInventoryItemRolesListRequest { - r.q = &q - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) Slug(slug []string) ApiDcimInventoryItemRolesListRequest { - r.slug = &slug - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugEmpty(slugEmpty bool) ApiDcimInventoryItemRolesListRequest { - r.slugEmpty = &slugEmpty - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugIc(slugIc []string) ApiDcimInventoryItemRolesListRequest { - r.slugIc = &slugIc - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugIe(slugIe []string) ApiDcimInventoryItemRolesListRequest { - r.slugIe = &slugIe - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugIew(slugIew []string) ApiDcimInventoryItemRolesListRequest { - r.slugIew = &slugIew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugIsw(slugIsw []string) ApiDcimInventoryItemRolesListRequest { - r.slugIsw = &slugIsw - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugN(slugN []string) ApiDcimInventoryItemRolesListRequest { - r.slugN = &slugN - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugNic(slugNic []string) ApiDcimInventoryItemRolesListRequest { - r.slugNic = &slugNic - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugNie(slugNie []string) ApiDcimInventoryItemRolesListRequest { - r.slugNie = &slugNie - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugNiew(slugNiew []string) ApiDcimInventoryItemRolesListRequest { - r.slugNiew = &slugNiew - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) SlugNisw(slugNisw []string) ApiDcimInventoryItemRolesListRequest { - r.slugNisw = &slugNisw - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) Tag(tag []string) ApiDcimInventoryItemRolesListRequest { - r.tag = &tag - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) TagN(tagN []string) ApiDcimInventoryItemRolesListRequest { - r.tagN = &tagN - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemRolesListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiDcimInventoryItemRolesListRequest) Execute() (*PaginatedInventoryItemRoleList, *http.Response, error) { - return r.ApiService.DcimInventoryItemRolesListExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemRolesList(ctx context.Context) ApiDcimInventoryItemRolesListRequest { - return ApiDcimInventoryItemRolesListRequest{ - ApiService: a, - ctx: ctx, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedInventoryItemRoleList -func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryItemRolesListRequest) (*PaginatedInventoryItemRoleList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInventoryItemRoleList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.color != nil { - t := *r.color + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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, "color", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } - if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") + } } - if r.colorIc != nil { - t := *r.colorIc + 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, "color__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } - if r.colorIe != nil { - t := *r.colorIe + 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, "color__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.colorIew != nil { - t := *r.colorIew + if r.manufacturer != nil { + t := *r.manufacturer 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") } } - if r.colorIsw != nil { - t := *r.colorIsw + if r.manufacturerN != nil { + t := *r.manufacturerN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") } } - if r.colorN != nil { - t := *r.colorN + if r.manufacturerId != nil { + t := *r.manufacturerId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") } } - if r.colorNic != nil { - t := *r.colorNic + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") } } - if r.colorNie != nil { - t := *r.colorNie + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "color__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.colorNiew != nil { - t := *r.colorNiew + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "color__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.colorNisw != nil { - t := *r.colorNisw + 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, "color__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.created != nil { - t := *r.created + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - if r.description != nil { - t := *r.description + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.parentId != nil { + t := *r.parentId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.parentIdN != nil { + t := *r.parentIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") + } } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.partId != nil { + t := *r.partId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.partIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__empty", r.partIdEmpty, "form", "") + } + if r.partIdIc != nil { + t := *r.partIdIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.partIdIe != nil { + t := *r.partIdIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.partIdIew != nil { + t := *r.partIdIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.partIdIsw != nil { + t := *r.partIdIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.partIdN != nil { + t := *r.partIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.partIdNic != nil { + t := *r.partIdNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.partIdNie != nil { + t := *r.partIdNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.partIdNiew != nil { + t := *r.partIdNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", t, "form", "multi") } } - if r.id != nil { - t := *r.id + if r.partIdNisw != nil { + t := *r.partIdNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.idGt != nil { - t := *r.idGt + if r.rack != nil { + t := *r.rack 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.rackN != nil { + t := *r.rackN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.rackId != nil { + t := *r.rackId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.rackIdN != nil { + t := *r.rackIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + if r.serial != nil { + t := *r.serial + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "form", "multi") + } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + if r.serialEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "form", "") } - if r.name != nil { - t := *r.name + if r.serialIc != nil { + t := *r.serialIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.serialIe != nil { + t := *r.serialIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "form", "multi") + } } - if r.nameIc != nil { - t := *r.nameIc + if r.serialIew != nil { + t := *r.serialIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.serialIsw != nil { + t := *r.serialIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.serialN != nil { + t := *r.serialN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.serialNic != nil { + t := *r.serialNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.serialNie != nil { + t := *r.serialNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.serialNiew != nil { + t := *r.serialNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.serialNisw != nil { + t := *r.serialNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") + } } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") + } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") + } } - if r.slug != nil { - t := *r.slug + 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, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") + } } - if r.slugIc != nil { - t := *r.slugIc + 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, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + 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, "slug__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + if r.statusIe != nil { + t := *r.statusIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + if r.statusIew != nil { + t := *r.statusIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + if r.statusIsw != nil { + t := *r.statusIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + if r.statusN != nil { + t := *r.statusN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.statusNic != nil { + t := *r.statusNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -46165,10 +61429,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -46176,14 +61440,58 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") + } + } + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } + } + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } + } + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -46253,56 +61561,55 @@ func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedInventoryItemRoleRequest *PatchedInventoryItemRoleRequest +type ApiDcimInventoryItemsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableInventoryItemRequest *PatchedWritableInventoryItemRequest } -func (r ApiDcimInventoryItemRolesPartialUpdateRequest) PatchedInventoryItemRoleRequest(patchedInventoryItemRoleRequest PatchedInventoryItemRoleRequest) ApiDcimInventoryItemRolesPartialUpdateRequest { - r.patchedInventoryItemRoleRequest = &patchedInventoryItemRoleRequest +func (r ApiDcimInventoryItemsPartialUpdateRequest) PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest PatchedWritableInventoryItemRequest) ApiDcimInventoryItemsPartialUpdateRequest { + r.patchedWritableInventoryItemRequest = &patchedWritableInventoryItemRequest return r } -func (r ApiDcimInventoryItemRolesPartialUpdateRequest) Execute() (*InventoryItemRole, *http.Response, error) { - return r.ApiService.DcimInventoryItemRolesPartialUpdateExecute(r) +func (r ApiDcimInventoryItemsPartialUpdateRequest) Execute() (*InventoryItem, *http.Response, error) { + return r.ApiService.DcimInventoryItemsPartialUpdateExecute(r) } /* -DcimInventoryItemRolesPartialUpdate Method for DcimInventoryItemRolesPartialUpdate +DcimInventoryItemsPartialUpdate Method for DcimInventoryItemsPartialUpdate -Patch a inventory item role object. +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 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. + @return ApiDcimInventoryItemsPartialUpdateRequest */ -func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesPartialUpdateRequest { - return ApiDcimInventoryItemRolesPartialUpdateRequest{ +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 InventoryItemRole -func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInventoryItemRolesPartialUpdateRequest) (*InventoryItemRole, *http.Response, error) { +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInventoryItemsPartialUpdateRequest) (*InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/inventory-items/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -46327,7 +61634,7 @@ func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedInventoryItemRoleRequest + localVarPostBody = r.patchedWritableInventoryItemRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -46379,50 +61686,49 @@ func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInv return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemRolesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimInventoryItemsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimInventoryItemRolesRetrieveRequest) Execute() (*InventoryItemRole, *http.Response, error) { - return r.ApiService.DcimInventoryItemRolesRetrieveExecute(r) +func (r ApiDcimInventoryItemsRetrieveRequest) Execute() (*InventoryItem, *http.Response, error) { + return r.ApiService.DcimInventoryItemsRetrieveExecute(r) } /* -DcimInventoryItemRolesRetrieve Method for DcimInventoryItemRolesRetrieve +DcimInventoryItemsRetrieve Method for DcimInventoryItemsRetrieve -Get a inventory item role object. +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 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. + @return ApiDcimInventoryItemsRetrieveRequest */ -func (a *DcimAPIService) DcimInventoryItemRolesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemRolesRetrieveRequest { - return ApiDcimInventoryItemRolesRetrieveRequest{ +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 InventoryItemRole -func (a *DcimAPIService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventoryItemRolesRetrieveRequest) (*InventoryItemRole, *http.Response, error) { +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryItemsRetrieveRequest) (*InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/inventory-items/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -46497,63 +61803,62 @@ func (a *DcimAPIService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventor return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - inventoryItemRoleRequest *InventoryItemRoleRequest +type ApiDcimInventoryItemsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableInventoryItemRequest *WritableInventoryItemRequest } -func (r ApiDcimInventoryItemRolesUpdateRequest) InventoryItemRoleRequest(inventoryItemRoleRequest InventoryItemRoleRequest) ApiDcimInventoryItemRolesUpdateRequest { - r.inventoryItemRoleRequest = &inventoryItemRoleRequest +func (r ApiDcimInventoryItemsUpdateRequest) WritableInventoryItemRequest(writableInventoryItemRequest WritableInventoryItemRequest) ApiDcimInventoryItemsUpdateRequest { + r.writableInventoryItemRequest = &writableInventoryItemRequest return r } -func (r ApiDcimInventoryItemRolesUpdateRequest) Execute() (*InventoryItemRole, *http.Response, error) { - return r.ApiService.DcimInventoryItemRolesUpdateExecute(r) +func (r ApiDcimInventoryItemsUpdateRequest) Execute() (*InventoryItem, *http.Response, error) { + return r.ApiService.DcimInventoryItemsUpdateExecute(r) } /* -DcimInventoryItemRolesUpdate Method for DcimInventoryItemRolesUpdate +DcimInventoryItemsUpdate Method for DcimInventoryItemsUpdate -Put a inventory item role object. +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 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. + @return ApiDcimInventoryItemsUpdateRequest */ -func (a *DcimAPIService) DcimInventoryItemRolesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesUpdateRequest { - return ApiDcimInventoryItemRolesUpdateRequest{ +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 InventoryItemRole -func (a *DcimAPIService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryItemRolesUpdateRequest) (*InventoryItemRole, *http.Response, error) { +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItemsUpdateRequest) (*InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/inventory-items/{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.inventoryItemRoleRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRoleRequest is required and must be specified") + if r.writableInventoryItemRequest == nil { + return localVarReturnValue, nil, reportError("writableInventoryItemRequest is required and must be specified") } // to determine the Content-Type header @@ -46574,7 +61879,7 @@ func (a *DcimAPIService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.inventoryItemRoleRequest + localVarPostBody = r.writableInventoryItemRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -46626,56 +61931,56 @@ func (a *DcimAPIService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryI return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemTemplateRequest *[]InventoryItemTemplateRequest +type ApiDcimLocationsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + locationRequest *[]LocationRequest } -func (r ApiDcimInventoryItemTemplatesBulkDestroyRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest []InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesBulkDestroyRequest { - r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest +func (r ApiDcimLocationsBulkDestroyRequest) LocationRequest(locationRequest []LocationRequest) ApiDcimLocationsBulkDestroyRequest { + r.locationRequest = &locationRequest return r } -func (r ApiDcimInventoryItemTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesBulkDestroyExecute(r) +func (r ApiDcimLocationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimLocationsBulkDestroyExecute(r) } /* -DcimInventoryItemTemplatesBulkDestroy Method for DcimInventoryItemTemplatesBulkDestroy +DcimLocationsBulkDestroy Method for DcimLocationsBulkDestroy -Delete a list of inventory item template objects. +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 ApiDcimInventoryItemTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsBulkDestroyRequest */ -func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroy(ctx context.Context) ApiDcimInventoryItemTemplatesBulkDestroyRequest { - return ApiDcimInventoryItemTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimLocationsBulkDestroy(ctx context.Context) ApiDcimLocationsBulkDestroyRequest { + return ApiDcimLocationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimInventoryItemTemplatesBulkDestroyRequest) (*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.DcimInventoryItemTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" + localVarPath := localBasePath + "/api/dcim/locations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.inventoryItemTemplateRequest == nil { - return nil, reportError("inventoryItemTemplateRequest is required and must be specified") + if r.locationRequest == nil { + return nil, reportError("locationRequest is required and must be specified") } // to determine the Content-Type header @@ -46696,7 +62001,7 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.inventoryItemTemplateRequest + localVarPostBody = r.locationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -46739,59 +62044,58 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimI return localVarHTTPResponse, nil } -type ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemTemplateRequest *[]InventoryItemTemplateRequest +type ApiDcimLocationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + locationRequest *[]LocationRequest } -func (r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest []InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest { - r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest +func (r ApiDcimLocationsBulkPartialUpdateRequest) LocationRequest(locationRequest []LocationRequest) ApiDcimLocationsBulkPartialUpdateRequest { + r.locationRequest = &locationRequest return r } -func (r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) Execute() ([]InventoryItemTemplate, *http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimLocationsBulkPartialUpdateRequest) Execute() ([]Location, *http.Response, error) { + return r.ApiService.DcimLocationsBulkPartialUpdateExecute(r) } /* -DcimInventoryItemTemplatesBulkPartialUpdate Method for DcimInventoryItemTemplatesBulkPartialUpdate +DcimLocationsBulkPartialUpdate Method for DcimLocationsBulkPartialUpdate -Patch a list of inventory item template objects. +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 ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest { - return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimLocationsBulkPartialUpdate(ctx context.Context) ApiDcimLocationsBulkPartialUpdateRequest { + return ApiDcimLocationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItemTemplate -func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { +// @return []Location +func (a *DcimAPIService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocationsBulkPartialUpdateRequest) ([]Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" + localVarPath := localBasePath + "/api/dcim/locations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.inventoryItemTemplateRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified") + if r.locationRequest == nil { + return localVarReturnValue, nil, reportError("locationRequest is required and must be specified") } // to determine the Content-Type header @@ -46812,7 +62116,7 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r Ap localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.inventoryItemTemplateRequest + localVarPostBody = r.locationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -46864,59 +62168,58 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemTemplateRequest *[]InventoryItemTemplateRequest +type ApiDcimLocationsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + locationRequest *[]LocationRequest } -func (r ApiDcimInventoryItemTemplatesBulkUpdateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest []InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesBulkUpdateRequest { - r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest +func (r ApiDcimLocationsBulkUpdateRequest) LocationRequest(locationRequest []LocationRequest) ApiDcimLocationsBulkUpdateRequest { + r.locationRequest = &locationRequest return r } -func (r ApiDcimInventoryItemTemplatesBulkUpdateRequest) Execute() ([]InventoryItemTemplate, *http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesBulkUpdateExecute(r) +func (r ApiDcimLocationsBulkUpdateRequest) Execute() ([]Location, *http.Response, error) { + return r.ApiService.DcimLocationsBulkUpdateExecute(r) } /* -DcimInventoryItemTemplatesBulkUpdate Method for DcimInventoryItemTemplatesBulkUpdate +DcimLocationsBulkUpdate Method for DcimLocationsBulkUpdate -Put a list of inventory item template objects. +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 ApiDcimInventoryItemTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsBulkUpdateRequest */ -func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkUpdateRequest { - return ApiDcimInventoryItemTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimLocationsBulkUpdate(ctx context.Context) ApiDcimLocationsBulkUpdateRequest { + return ApiDcimLocationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItemTemplate -func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimInventoryItemTemplatesBulkUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { +// @return []Location +func (a *DcimAPIService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUpdateRequest) ([]Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" + localVarPath := localBasePath + "/api/dcim/locations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.inventoryItemTemplateRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified") + if r.locationRequest == nil { + return localVarReturnValue, nil, reportError("locationRequest is required and must be specified") } // to determine the Content-Type header @@ -46937,7 +62240,7 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimIn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.inventoryItemTemplateRequest + localVarPostBody = r.locationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -46989,59 +62292,58 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimIn return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemTemplateRequest *InventoryItemTemplateRequest +type ApiDcimLocationsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableLocationRequest *WritableLocationRequest } -func (r ApiDcimInventoryItemTemplatesCreateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesCreateRequest { - r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest +func (r ApiDcimLocationsCreateRequest) WritableLocationRequest(writableLocationRequest WritableLocationRequest) ApiDcimLocationsCreateRequest { + r.writableLocationRequest = &writableLocationRequest return r } -func (r ApiDcimInventoryItemTemplatesCreateRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesCreateExecute(r) +func (r ApiDcimLocationsCreateRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.DcimLocationsCreateExecute(r) } /* -DcimInventoryItemTemplatesCreate Method for DcimInventoryItemTemplatesCreate +DcimLocationsCreate Method for DcimLocationsCreate -Post a list of inventory item template objects. +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 ApiDcimInventoryItemTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsCreateRequest */ -func (a *DcimAPIService) DcimInventoryItemTemplatesCreate(ctx context.Context) ApiDcimInventoryItemTemplatesCreateRequest { - return ApiDcimInventoryItemTemplatesCreateRequest{ +func (a *DcimAPIService) DcimLocationsCreate(ctx context.Context) ApiDcimLocationsCreateRequest { + return ApiDcimLocationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInventoryItemTemplatesCreateRequest) (*InventoryItemTemplate, *http.Response, error) { +// @return Location +func (a *DcimAPIService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" + localVarPath := localBasePath + "/api/dcim/locations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.inventoryItemTemplateRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified") + if r.writableLocationRequest == nil { + return localVarReturnValue, nil, reportError("writableLocationRequest is required and must be specified") } // to determine the Content-Type header @@ -47062,7 +62364,7 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInvent localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.inventoryItemTemplateRequest + localVarPostBody = r.writableLocationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -47114,47 +62416,47 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInvent return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimLocationsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimInventoryItemTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesDestroyExecute(r) +func (r ApiDcimLocationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimLocationsDestroyExecute(r) } /* -DcimInventoryItemTemplatesDestroy Method for DcimInventoryItemTemplatesDestroy +DcimLocationsDestroy Method for DcimLocationsDestroy -Delete a inventory item template object. +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 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 location. + @return ApiDcimLocationsDestroyRequest */ -func (a *DcimAPIService) DcimInventoryItemTemplatesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesDestroyRequest { - return ApiDcimInventoryItemTemplatesDestroyRequest{ +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) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInventoryItemTemplatesDestroyRequest) (*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.DcimInventoryItemTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-item-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/locations/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -47220,2549 +62522,1990 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInven return localVarHTTPResponse, nil } -type ApiDcimInventoryItemTemplatesListRequest struct { - 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 - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]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 +type ApiDcimLocationsListRequest struct { + ctx context.Context + ApiService DcimAPI + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + facility *[]string + facilityEmpty *bool + facilityIc *[]string + facilityIe *[]string + facilityIew *[]string + facilityIsw *[]string + facilityN *[]string + facilityNic *[]string + facilityNie *[]string + facilityNiew *[]string + facilityNisw *[]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 - 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 + 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 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + 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 + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiDcimLocationsListRequest) Ancestor(ancestor []string) ApiDcimLocationsListRequest { + r.ancestor = &ancestor + return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentId(componentId []int32) ApiDcimInventoryItemTemplatesListRequest { - r.componentId = &componentId +func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []string) ApiDcimLocationsListRequest { + r.ancestorN = &ancestorN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdEmpty(componentIdEmpty []int32) ApiDcimInventoryItemTemplatesListRequest { - r.componentIdEmpty = &componentIdEmpty +func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []string) ApiDcimLocationsListRequest { + r.ancestorId = &ancestorId return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdGt(componentIdGt []int32) ApiDcimInventoryItemTemplatesListRequest { - r.componentIdGt = &componentIdGt +func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimLocationsListRequest { + r.ancestorIdN = &ancestorIdN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdGte(componentIdGte []int32) ApiDcimInventoryItemTemplatesListRequest { - r.componentIdGte = &componentIdGte +// Contact +func (r ApiDcimLocationsListRequest) Contact(contact []int32) ApiDcimLocationsListRequest { + r.contact = &contact return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdLt(componentIdLt []int32) ApiDcimInventoryItemTemplatesListRequest { - r.componentIdLt = &componentIdLt +// Contact +func (r ApiDcimLocationsListRequest) ContactN(contactN []int32) ApiDcimLocationsListRequest { + r.contactN = &contactN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdLte(componentIdLte []int32) ApiDcimInventoryItemTemplatesListRequest { - r.componentIdLte = &componentIdLte +func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []string) ApiDcimLocationsListRequest { + r.contactGroup = &contactGroup return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdN(componentIdN []int32) ApiDcimInventoryItemTemplatesListRequest { - r.componentIdN = &componentIdN +func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []string) ApiDcimLocationsListRequest { + r.contactGroupN = &contactGroupN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentType(componentType string) ApiDcimInventoryItemTemplatesListRequest { - r.componentType = &componentType +// Contact Role +func (r ApiDcimLocationsListRequest) ContactRole(contactRole []int32) ApiDcimLocationsListRequest { + r.contactRole = &contactRole return r } -func (r ApiDcimInventoryItemTemplatesListRequest) ComponentTypeN(componentTypeN string) ApiDcimInventoryItemTemplatesListRequest { - r.componentTypeN = &componentTypeN +// Contact Role +func (r ApiDcimLocationsListRequest) ContactRoleN(contactRoleN []int32) ApiDcimLocationsListRequest { + r.contactRoleN = &contactRoleN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) Created(created []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) Created(created []time.Time) ApiDcimLocationsListRequest { r.created = &created return r } -func (r ApiDcimInventoryItemTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimLocationsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimInventoryItemTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimLocationsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimInventoryItemTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) CreatedGte(createdGte []time.Time) ApiDcimLocationsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimInventoryItemTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) CreatedLt(createdLt []time.Time) ApiDcimLocationsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimInventoryItemTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) CreatedLte(createdLte []time.Time) ApiDcimLocationsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimInventoryItemTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) CreatedN(createdN []time.Time) ApiDcimLocationsListRequest { r.createdN = &createdN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) CreatedByRequest(createdByRequest string) ApiDcimLocationsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimInventoryItemTemplatesListRequest) Description(description []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) Description(description []string) ApiDcimLocationsListRequest { r.description = &description return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimLocationsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionIc(descriptionIc []string) ApiDcimLocationsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionIe(descriptionIe []string) ApiDcimLocationsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionIew(descriptionIew []string) ApiDcimLocationsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimLocationsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionN(descriptionN []string) ApiDcimLocationsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionNic(descriptionNic []string) ApiDcimLocationsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionNie(descriptionNie []string) ApiDcimLocationsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimLocationsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimInventoryItemTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimLocationsListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimInventoryItemTemplatesListRequest { - r.deviceTypeId = &deviceTypeId - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimInventoryItemTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - -func (r ApiDcimInventoryItemTemplatesListRequest) Id(id []int32) ApiDcimInventoryItemTemplatesListRequest { - r.id = &id +func (r ApiDcimLocationsListRequest) Facility(facility []string) ApiDcimLocationsListRequest { + r.facility = &facility return r } -func (r ApiDcimInventoryItemTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimInventoryItemTemplatesListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimLocationsListRequest) FacilityEmpty(facilityEmpty bool) ApiDcimLocationsListRequest { + r.facilityEmpty = &facilityEmpty return r } -func (r ApiDcimInventoryItemTemplatesListRequest) IdGt(idGt []int32) ApiDcimInventoryItemTemplatesListRequest { - r.idGt = &idGt +func (r ApiDcimLocationsListRequest) FacilityIc(facilityIc []string) ApiDcimLocationsListRequest { + r.facilityIc = &facilityIc return r } -func (r ApiDcimInventoryItemTemplatesListRequest) IdGte(idGte []int32) ApiDcimInventoryItemTemplatesListRequest { - r.idGte = &idGte +func (r ApiDcimLocationsListRequest) FacilityIe(facilityIe []string) ApiDcimLocationsListRequest { + r.facilityIe = &facilityIe return r } -func (r ApiDcimInventoryItemTemplatesListRequest) IdLt(idLt []int32) ApiDcimInventoryItemTemplatesListRequest { - r.idLt = &idLt +func (r ApiDcimLocationsListRequest) FacilityIew(facilityIew []string) ApiDcimLocationsListRequest { + r.facilityIew = &facilityIew return r } -func (r ApiDcimInventoryItemTemplatesListRequest) IdLte(idLte []int32) ApiDcimInventoryItemTemplatesListRequest { - r.idLte = &idLte +func (r ApiDcimLocationsListRequest) FacilityIsw(facilityIsw []string) ApiDcimLocationsListRequest { + r.facilityIsw = &facilityIsw return r } -func (r ApiDcimInventoryItemTemplatesListRequest) IdN(idN []int32) ApiDcimInventoryItemTemplatesListRequest { - r.idN = &idN +func (r ApiDcimLocationsListRequest) FacilityN(facilityN []string) ApiDcimLocationsListRequest { + r.facilityN = &facilityN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) Label(label []string) ApiDcimInventoryItemTemplatesListRequest { - r.label = &label +func (r ApiDcimLocationsListRequest) FacilityNic(facilityNic []string) ApiDcimLocationsListRequest { + r.facilityNic = &facilityNic return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimInventoryItemTemplatesListRequest { - r.labelEmpty = &labelEmpty +func (r ApiDcimLocationsListRequest) FacilityNie(facilityNie []string) ApiDcimLocationsListRequest { + r.facilityNie = &facilityNie return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelIc(labelIc []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelIc = &labelIc +func (r ApiDcimLocationsListRequest) FacilityNiew(facilityNiew []string) ApiDcimLocationsListRequest { + r.facilityNiew = &facilityNiew return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelIe(labelIe []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelIe = &labelIe +func (r ApiDcimLocationsListRequest) FacilityNisw(facilityNisw []string) ApiDcimLocationsListRequest { + r.facilityNisw = &facilityNisw return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelIew(labelIew []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelIew = &labelIew +func (r ApiDcimLocationsListRequest) Id(id []int32) ApiDcimLocationsListRequest { + r.id = &id return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelIsw = &labelIsw +func (r ApiDcimLocationsListRequest) IdEmpty(idEmpty bool) ApiDcimLocationsListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelN(labelN []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelN = &labelN +func (r ApiDcimLocationsListRequest) IdGt(idGt []int32) ApiDcimLocationsListRequest { + r.idGt = &idGt return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelNic(labelNic []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelNic = &labelNic +func (r ApiDcimLocationsListRequest) IdGte(idGte []int32) ApiDcimLocationsListRequest { + r.idGte = &idGte return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelNie(labelNie []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelNie = &labelNie +func (r ApiDcimLocationsListRequest) IdLt(idLt []int32) ApiDcimLocationsListRequest { + r.idLt = &idLt return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelNiew = &labelNiew +func (r ApiDcimLocationsListRequest) IdLte(idLte []int32) ApiDcimLocationsListRequest { + r.idLte = &idLte return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimInventoryItemTemplatesListRequest { - r.labelNisw = &labelNisw +func (r ApiDcimLocationsListRequest) IdN(idN []int32) ApiDcimLocationsListRequest { + r.idN = &idN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimLocationsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimLocationsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimLocationsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimLocationsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimLocationsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimLocationsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimLocationsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimInventoryItemTemplatesListRequest) Limit(limit int32) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) Limit(limit int32) ApiDcimLocationsListRequest { r.limit = &limit return r } -// Manufacturer (slug) -func (r ApiDcimInventoryItemTemplatesListRequest) Manufacturer(manufacturer []string) ApiDcimInventoryItemTemplatesListRequest { - r.manufacturer = &manufacturer - return r -} - -// Manufacturer (slug) -func (r ApiDcimInventoryItemTemplatesListRequest) ManufacturerN(manufacturerN []string) ApiDcimInventoryItemTemplatesListRequest { - r.manufacturerN = &manufacturerN - return r -} - -// Manufacturer (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) ManufacturerId(manufacturerId []*int32) ApiDcimInventoryItemTemplatesListRequest { - r.manufacturerId = &manufacturerId - return r -} - -// Manufacturer (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) ManufacturerIdN(manufacturerIdN []*int32) ApiDcimInventoryItemTemplatesListRequest { - r.manufacturerIdN = &manufacturerIdN - return r -} - -func (r ApiDcimInventoryItemTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimLocationsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimInventoryItemTemplatesListRequest) Name(name []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) Name(name []string) ApiDcimLocationsListRequest { r.name = &name return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameEmpty(nameEmpty bool) ApiDcimLocationsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameIc(nameIc []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameIc(nameIc []string) ApiDcimLocationsListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameIe(nameIe []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameIe(nameIe []string) ApiDcimLocationsListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameIew(nameIew []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameIew(nameIew []string) ApiDcimLocationsListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameIsw(nameIsw []string) ApiDcimLocationsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameN(nameN []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameN(nameN []string) ApiDcimLocationsListRequest { r.nameN = &nameN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameNic(nameNic []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameNic(nameNic []string) ApiDcimLocationsListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameNie(nameNie []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameNie(nameNie []string) ApiDcimLocationsListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameNiew(nameNiew []string) ApiDcimLocationsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimInventoryItemTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) NameNisw(nameNisw []string) ApiDcimLocationsListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiDcimInventoryItemTemplatesListRequest) Offset(offset int32) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) Offset(offset int32) ApiDcimLocationsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimInventoryItemTemplatesListRequest) Ordering(ordering string) ApiDcimInventoryItemTemplatesListRequest { +func (r ApiDcimLocationsListRequest) Ordering(ordering string) ApiDcimLocationsListRequest { r.ordering = &ordering return r } -// Parent inventory item (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) ParentId(parentId []*int32) ApiDcimInventoryItemTemplatesListRequest { +// Parent location (slug) +func (r ApiDcimLocationsListRequest) Parent(parent []string) ApiDcimLocationsListRequest { + r.parent = &parent + return r +} + +// Parent location (slug) +func (r ApiDcimLocationsListRequest) ParentN(parentN []string) ApiDcimLocationsListRequest { + r.parentN = &parentN + return r +} + +// Parent location (ID) +func (r ApiDcimLocationsListRequest) ParentId(parentId []*int32) ApiDcimLocationsListRequest { r.parentId = &parentId return r } -// Parent inventory item (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) ParentIdN(parentIdN []*int32) ApiDcimInventoryItemTemplatesListRequest { +// Parent location (ID) +func (r ApiDcimLocationsListRequest) ParentIdN(parentIdN []*int32) ApiDcimLocationsListRequest { r.parentIdN = &parentIdN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartId(partId []string) ApiDcimInventoryItemTemplatesListRequest { - r.partId = &partId +// Search +func (r ApiDcimLocationsListRequest) Q(q string) ApiDcimLocationsListRequest { + r.q = &q return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdEmpty(partIdEmpty bool) ApiDcimInventoryItemTemplatesListRequest { - r.partIdEmpty = &partIdEmpty +func (r ApiDcimLocationsListRequest) Region(region []string) ApiDcimLocationsListRequest { + r.region = ®ion return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIc(partIdIc []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdIc = &partIdIc +func (r ApiDcimLocationsListRequest) RegionN(regionN []string) ApiDcimLocationsListRequest { + r.regionN = ®ionN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIe(partIdIe []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdIe = &partIdIe +func (r ApiDcimLocationsListRequest) RegionId(regionId []string) ApiDcimLocationsListRequest { + r.regionId = ®ionId return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIew(partIdIew []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdIew = &partIdIew +func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []string) ApiDcimLocationsListRequest { + r.regionIdN = ®ionIdN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdIsw(partIdIsw []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdIsw = &partIdIsw +// Site (slug) +func (r ApiDcimLocationsListRequest) Site(site []string) ApiDcimLocationsListRequest { + r.site = &site return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdN(partIdN []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdN = &partIdN +// Site (slug) +func (r ApiDcimLocationsListRequest) SiteN(siteN []string) ApiDcimLocationsListRequest { + r.siteN = &siteN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNic(partIdNic []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdNic = &partIdNic +func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []string) ApiDcimLocationsListRequest { + r.siteGroup = &siteGroup return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNie(partIdNie []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdNie = &partIdNie +func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimLocationsListRequest { + r.siteGroupN = &siteGroupN return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNiew(partIdNiew []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdNiew = &partIdNiew +func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimLocationsListRequest { + r.siteGroupId = &siteGroupId return r } -func (r ApiDcimInventoryItemTemplatesListRequest) PartIdNisw(partIdNisw []string) ApiDcimInventoryItemTemplatesListRequest { - r.partIdNisw = &partIdNisw +func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimLocationsListRequest { + r.siteGroupIdN = &siteGroupIdN return r } -// Search -func (r ApiDcimInventoryItemTemplatesListRequest) Q(q string) ApiDcimInventoryItemTemplatesListRequest { - r.q = &q +// Site (ID) +func (r ApiDcimLocationsListRequest) SiteId(siteId []int32) ApiDcimLocationsListRequest { + r.siteId = &siteId return r } -// Role (slug) -func (r ApiDcimInventoryItemTemplatesListRequest) Role(role []string) ApiDcimInventoryItemTemplatesListRequest { - r.role = &role +// Site (ID) +func (r ApiDcimLocationsListRequest) SiteIdN(siteIdN []int32) ApiDcimLocationsListRequest { + r.siteIdN = &siteIdN return r } -// Role (slug) -func (r ApiDcimInventoryItemTemplatesListRequest) RoleN(roleN []string) ApiDcimInventoryItemTemplatesListRequest { - r.roleN = &roleN +func (r ApiDcimLocationsListRequest) Slug(slug []string) ApiDcimLocationsListRequest { + r.slug = &slug return r } -// Role (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) RoleId(roleId []*int32) ApiDcimInventoryItemTemplatesListRequest { - r.roleId = &roleId +func (r ApiDcimLocationsListRequest) SlugEmpty(slugEmpty bool) ApiDcimLocationsListRequest { + r.slugEmpty = &slugEmpty return r } -// Role (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) RoleIdN(roleIdN []*int32) ApiDcimInventoryItemTemplatesListRequest { - r.roleIdN = &roleIdN +func (r ApiDcimLocationsListRequest) SlugIc(slugIc []string) ApiDcimLocationsListRequest { + r.slugIc = &slugIc return r } -func (r ApiDcimInventoryItemTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemTemplatesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimLocationsListRequest) SlugIe(slugIe []string) ApiDcimLocationsListRequest { + r.slugIe = &slugIe return r } -func (r ApiDcimInventoryItemTemplatesListRequest) Execute() (*PaginatedInventoryItemTemplateList, *http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesListExecute(r) +func (r ApiDcimLocationsListRequest) SlugIew(slugIew []string) ApiDcimLocationsListRequest { + r.slugIew = &slugIew + return r } -/* -DcimInventoryItemTemplatesList Method for DcimInventoryItemTemplatesList +func (r ApiDcimLocationsListRequest) SlugIsw(slugIsw []string) ApiDcimLocationsListRequest { + r.slugIsw = &slugIsw + return r +} -Get a list of inventory item template objects. +func (r ApiDcimLocationsListRequest) SlugN(slugN []string) ApiDcimLocationsListRequest { + r.slugN = &slugN + return r +} - @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 { - return ApiDcimInventoryItemTemplatesListRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiDcimLocationsListRequest) SlugNic(slugNic []string) ApiDcimLocationsListRequest { + r.slugNic = &slugNic + return r } -// Execute executes the request -// -// @return PaginatedInventoryItemTemplateList -func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventoryItemTemplatesListRequest) (*PaginatedInventoryItemTemplateList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInventoryItemTemplateList - ) +func (r ApiDcimLocationsListRequest) SlugNie(slugNie []string) ApiDcimLocationsListRequest { + r.slugNie = &slugNie + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiDcimLocationsListRequest) SlugNiew(slugNiew []string) ApiDcimLocationsListRequest { + r.slugNiew = &slugNiew + return r +} - localVarPath := localBasePath + "/api/dcim/inventory-item-templates/" +func (r ApiDcimLocationsListRequest) SlugNisw(slugNisw []string) ApiDcimLocationsListRequest { + r.slugNisw = &slugNisw + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiDcimLocationsListRequest) Status(status []string) ApiDcimLocationsListRequest { + r.status = &status + return r +} - if r.componentId != nil { - t := *r.componentId - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", t, "multi") - } - } - if r.componentIdGte != nil { - t := *r.componentIdGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", t, "multi") - } - } - if r.componentIdLt != nil { - t := *r.componentIdLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", t, "multi") - } - } - if r.componentIdLte != nil { - t := *r.componentIdLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", t, "multi") - } - } - if r.componentIdN != nil { - t := *r.componentIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", t, "multi") - } - } - if r.componentType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_type", r.componentType, "") - } - if r.componentTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_type__n", r.componentTypeN, "") - } - 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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.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.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, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_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, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_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") - } +func (r ApiDcimLocationsListRequest) StatusEmpty(statusEmpty bool) ApiDcimLocationsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiDcimLocationsListRequest) StatusIc(statusIc []string) ApiDcimLocationsListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiDcimLocationsListRequest) StatusIe(statusIe []string) ApiDcimLocationsListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiDcimLocationsListRequest) StatusIew(statusIew []string) ApiDcimLocationsListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiDcimLocationsListRequest) StatusIsw(statusIsw []string) ApiDcimLocationsListRequest { + r.statusIsw = &statusIsw + return r +} + +func (r ApiDcimLocationsListRequest) StatusN(statusN []string) ApiDcimLocationsListRequest { + r.statusN = &statusN + return r +} + +func (r ApiDcimLocationsListRequest) StatusNic(statusNic []string) ApiDcimLocationsListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiDcimLocationsListRequest) StatusNie(statusNie []string) ApiDcimLocationsListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiDcimLocationsListRequest) StatusNiew(statusNiew []string) ApiDcimLocationsListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiDcimLocationsListRequest) StatusNisw(statusNisw []string) ApiDcimLocationsListRequest { + r.statusNisw = &statusNisw + return r +} + +func (r ApiDcimLocationsListRequest) Tag(tag []string) ApiDcimLocationsListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimLocationsListRequest) TagN(tagN []string) ApiDcimLocationsListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiDcimLocationsListRequest) Tenant(tenant []string) ApiDcimLocationsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiDcimLocationsListRequest) TenantN(tenantN []string) ApiDcimLocationsListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []string) ApiDcimLocationsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimLocationsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimLocationsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimLocationsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiDcimLocationsListRequest) TenantId(tenantId []*int32) ApiDcimLocationsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiDcimLocationsListRequest) TenantIdN(tenantIdN []*int32) ApiDcimLocationsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiDcimLocationsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimLocationsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimLocationsListRequest) Execute() (*PaginatedLocationList, *http.Response, error) { + return r.ApiService.DcimLocationsListExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimLocationsList(ctx context.Context) ApiDcimLocationsListRequest { + return ApiDcimLocationsListRequest{ + ApiService: a, + ctx: ctx, } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") +} + +// Execute executes the request +// @return PaginatedLocationList +func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) (*PaginatedLocationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedLocationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.idGt != nil { - t := *r.idGt + + localVarPath := localBasePath + "/api/dcim/locations/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.ancestor != nil { + t := *r.ancestor 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.ancestorN != nil { + t := *r.ancestorN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.ancestorId != nil { + t := *r.ancestorId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.ancestorIdN != nil { + t := *r.ancestorIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } - if r.label != nil { - t := *r.label + if r.contactN != nil { + t := *r.contactN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc + if r.contactGroup != nil { + t := *r.contactGroup 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } - if r.labelIe != nil { - t := *r.labelIe + if r.contactGroupN != nil { + t := *r.contactGroupN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } - if r.labelIew != nil { - t := *r.labelIew + if r.contactRole != nil { + t := *r.contactRole 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } - if r.labelIsw != nil { - t := *r.labelIsw + if r.contactRoleN != nil { + t := *r.contactRoleN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } - if r.labelN != nil { - t := *r.labelN + 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "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.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.manufacturer != nil { - t := *r.manufacturer + 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, "manufacturer", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.manufacturerN != nil { - t := *r.manufacturerN + 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, "manufacturer__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.manufacturerId != nil { - t := *r.manufacturerId + 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, "manufacturer_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.manufacturerIdN != nil { - t := *r.manufacturerIdN + 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, "manufacturer_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.facility != nil { + t := *r.facility 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility", t, "form", "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.facilityEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__empty", r.facilityEmpty, "form", "") } - if r.nameN != nil { - t := *r.nameN + if r.facilityIc != nil { + t := *r.facilityIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.facilityIe != nil { + t := *r.facilityIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.facilityIew != nil { + t := *r.facilityIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.facilityIsw != nil { + t := *r.facilityIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.facilityN != nil { + t := *r.facilityN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", t, "form", "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.parentId != nil { - t := *r.parentId + if r.facilityNic != nil { + t := *r.facilityNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", t, "form", "multi") } } - if r.parentIdN != nil { - t := *r.parentIdN + if r.facilityNie != nil { + t := *r.facilityNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", t, "form", "multi") } } - if r.partId != nil { - t := *r.partId + if r.facilityNiew != nil { + t := *r.facilityNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", t, "form", "multi") } } - if r.partIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__empty", r.partIdEmpty, "") - } - if r.partIdIc != nil { - t := *r.partIdIc + if r.facilityNisw != nil { + t := *r.facilityNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", t, "form", "multi") } } - if r.partIdIe != nil { - t := *r.partIdIe + 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, "part_id__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.partIdIew != nil { - t := *r.partIdIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", t, "multi") - } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.partIdIsw != nil { - t := *r.partIdIsw + 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, "part_id__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.partIdN != nil { - t := *r.partIdN + 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, "part_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.partIdNic != nil { - t := *r.partIdNic + 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, "part_id__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.partIdNie != nil { - t := *r.partIdNie + 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, "part_id__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.partIdNiew != nil { - t := *r.partIdNiew + 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, "part_id__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.partIdNisw != nil { - t := *r.partIdNisw + 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, "part_id__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.role != nil { - t := *r.role + 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, "role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_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 - } - } - } - 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 ApiDcimInventoryItemTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedInventoryItemTemplateRequest *PatchedInventoryItemTemplateRequest -} - -func (r ApiDcimInventoryItemTemplatesPartialUpdateRequest) PatchedInventoryItemTemplateRequest(patchedInventoryItemTemplateRequest PatchedInventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesPartialUpdateRequest { - r.patchedInventoryItemTemplateRequest = &patchedInventoryItemTemplateRequest - return r -} - -func (r ApiDcimInventoryItemTemplatesPartialUpdateRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesPartialUpdateExecute(r) -} - -/* -DcimInventoryItemTemplatesPartialUpdate Method for DcimInventoryItemTemplatesPartialUpdate - -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 -*/ -func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesPartialUpdateRequest { - return ApiDcimInventoryItemTemplatesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDcimInventoryItemTemplatesPartialUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/inventory-item-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{"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.patchedInventoryItemTemplateRequest - 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, "last_updated__lt", s.Index(i).Interface(), "form", "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 + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimInventoryItemTemplatesRetrieveRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesRetrieveExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesRetrieveRequest { - return ApiDcimInventoryItemTemplatesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } -} - -// Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInventoryItemTemplatesRetrieveRequest) (*InventoryItemTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - - localVarPath := localBasePath + "/api/dcim/inventory-item-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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - 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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - inventoryItemTemplateRequest *InventoryItemTemplateRequest -} - -func (r ApiDcimInventoryItemTemplatesUpdateRequest) InventoryItemTemplateRequest(inventoryItemTemplateRequest InventoryItemTemplateRequest) ApiDcimInventoryItemTemplatesUpdateRequest { - r.inventoryItemTemplateRequest = &inventoryItemTemplateRequest - return r -} - -func (r ApiDcimInventoryItemTemplatesUpdateRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { - return r.ApiService.DcimInventoryItemTemplatesUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemTemplatesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesUpdateRequest { - return ApiDcimInventoryItemTemplatesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimAPIService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInventoryItemTemplatesUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-item-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.inventoryItemTemplateRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemTemplateRequest is required and must be specified") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "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.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - // body params - localVarPostBody = r.inventoryItemTemplateRequest - 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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "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 + if r.parentN != nil { + t := *r.parentN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "form", "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.parentId != nil { + t := *r.parentId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.parentIdN != nil { + t := *r.parentIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRequest *[]InventoryItemRequest -} - -func (r ApiDcimInventoryItemsBulkDestroyRequest) InventoryItemRequest(inventoryItemRequest []InventoryItemRequest) ApiDcimInventoryItemsBulkDestroyRequest { - r.inventoryItemRequest = &inventoryItemRequest - return r -} - -func (r ApiDcimInventoryItemsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInventoryItemsBulkDestroyExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemsBulkDestroy(ctx context.Context) ApiDcimInventoryItemsBulkDestroyRequest { - return ApiDcimInventoryItemsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") + } } -} - -// Execute executes the request -func (a *DcimAPIService) DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventoryItemsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-items/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inventoryItemRequest == nil { - return nil, reportError("inventoryItemRequest is required and must be specified") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") + } } - // body params - localVarPostBody = r.inventoryItemRequest - 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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRequest *[]InventoryItemRequest -} - -func (r ApiDcimInventoryItemsBulkPartialUpdateRequest) InventoryItemRequest(inventoryItemRequest []InventoryItemRequest) ApiDcimInventoryItemsBulkPartialUpdateRequest { - r.inventoryItemRequest = &inventoryItemRequest - return r -} - -func (r ApiDcimInventoryItemsBulkPartialUpdateRequest) Execute() ([]InventoryItem, *http.Response, error) { - return r.ApiService.DcimInventoryItemsBulkPartialUpdateExecute(r) -} - -/* -DcimInventoryItemsBulkPartialUpdate Method for DcimInventoryItemsBulkPartialUpdate - -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 -*/ -func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemsBulkPartialUpdateRequest { - return ApiDcimInventoryItemsBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, } -} - -// Execute executes the request -// -// @return []InventoryItem -func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInventoryItemsBulkPartialUpdateRequest) ([]InventoryItem, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItem - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-items/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inventoryItemRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified") + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "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.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.slugIc != nil { + t := *r.slugIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") + } } - // body params - localVarPostBody = r.inventoryItemRequest - 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.slugIe != nil { + t := *r.slugIe + 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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.slugIew != nil { + t := *r.slugIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.slugIsw != nil { + t := *r.slugIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "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.slugN != nil { + t := *r.slugN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.slugNic != nil { + t := *r.slugNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "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.slugNie != nil { + t := *r.slugNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRequest *[]InventoryItemRequest -} - -func (r ApiDcimInventoryItemsBulkUpdateRequest) InventoryItemRequest(inventoryItemRequest []InventoryItemRequest) ApiDcimInventoryItemsBulkUpdateRequest { - r.inventoryItemRequest = &inventoryItemRequest - return r -} - -func (r ApiDcimInventoryItemsBulkUpdateRequest) Execute() ([]InventoryItem, *http.Response, error) { - return r.ApiService.DcimInventoryItemsBulkUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemsBulkUpdate(ctx context.Context) ApiDcimInventoryItemsBulkUpdateRequest { - return ApiDcimInventoryItemsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, + if r.slugNiew != nil { + t := *r.slugNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return []InventoryItem -func (a *DcimAPIService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryItemsBulkUpdateRequest) ([]InventoryItem, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItem - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-items/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inventoryItemRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "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.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } } - // body params - localVarPostBody = r.inventoryItemRequest - 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.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "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.statusN != nil { + t := *r.statusN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "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.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - inventoryItemRequest *InventoryItemRequest -} - -func (r ApiDcimInventoryItemsCreateRequest) InventoryItemRequest(inventoryItemRequest InventoryItemRequest) ApiDcimInventoryItemsCreateRequest { - r.inventoryItemRequest = &inventoryItemRequest - return r -} - -func (r ApiDcimInventoryItemsCreateRequest) Execute() (*InventoryItem, *http.Response, error) { - return r.ApiService.DcimInventoryItemsCreateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemsCreate(ctx context.Context) ApiDcimInventoryItemsCreateRequest { - return ApiDcimInventoryItemsCreateRequest{ - ApiService: a, - ctx: ctx, + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return InventoryItem -func (a *DcimAPIService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItemsCreateRequest) (*InventoryItem, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/inventory-items/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inventoryItemRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") + } } - // body params - localVarPostBody = r.inventoryItemRequest - 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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimInventoryItemsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimInventoryItemsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimInventoryItemsDestroyExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimInventoryItemsDestroy(ctx context.Context, id int32) ApiDcimInventoryItemsDestroyRequest { - return ApiDcimInventoryItemsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } } -} - -// Execute executes the request -func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItemsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - - localVarPath := localBasePath + "/api/dcim/inventory-items/{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{} @@ -49773,7 +64516,7 @@ func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItem } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -49796,19 +64539,19 @@ func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItem } 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 { @@ -49816,2482 +64559,2165 @@ func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItem body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -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 - 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 - 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 - 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 -} - -func (r ApiDcimInventoryItemsListRequest) AssetTag(assetTag []string) ApiDcimInventoryItemsListRequest { - r.assetTag = &assetTag - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagEmpty(assetTagEmpty bool) ApiDcimInventoryItemsListRequest { - r.assetTagEmpty = &assetTagEmpty - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagIc(assetTagIc []string) ApiDcimInventoryItemsListRequest { - r.assetTagIc = &assetTagIc - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagIe(assetTagIe []string) ApiDcimInventoryItemsListRequest { - r.assetTagIe = &assetTagIe - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagIew(assetTagIew []string) ApiDcimInventoryItemsListRequest { - r.assetTagIew = &assetTagIew - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagIsw(assetTagIsw []string) ApiDcimInventoryItemsListRequest { - r.assetTagIsw = &assetTagIsw - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagN(assetTagN []string) ApiDcimInventoryItemsListRequest { - r.assetTagN = &assetTagN - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagNic(assetTagNic []string) ApiDcimInventoryItemsListRequest { - r.assetTagNic = &assetTagNic - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagNie(assetTagNie []string) ApiDcimInventoryItemsListRequest { - r.assetTagNie = &assetTagNie - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagNiew(assetTagNiew []string) ApiDcimInventoryItemsListRequest { - r.assetTagNiew = &assetTagNiew - return r -} - -func (r ApiDcimInventoryItemsListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimInventoryItemsListRequest { - r.assetTagNisw = &assetTagNisw - return r -} - -func (r ApiDcimInventoryItemsListRequest) ComponentId(componentId []int32) ApiDcimInventoryItemsListRequest { - r.componentId = &componentId - 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 -} - -func (r ApiDcimInventoryItemsListRequest) ComponentIdGte(componentIdGte []int32) ApiDcimInventoryItemsListRequest { - r.componentIdGte = &componentIdGte - return r -} - -func (r ApiDcimInventoryItemsListRequest) ComponentIdLt(componentIdLt []int32) ApiDcimInventoryItemsListRequest { - r.componentIdLt = &componentIdLt - return r -} - -func (r ApiDcimInventoryItemsListRequest) ComponentIdLte(componentIdLte []int32) ApiDcimInventoryItemsListRequest { - r.componentIdLte = &componentIdLte - return r -} - -func (r ApiDcimInventoryItemsListRequest) ComponentIdN(componentIdN []int32) ApiDcimInventoryItemsListRequest { - r.componentIdN = &componentIdN - return r -} - -func (r ApiDcimInventoryItemsListRequest) ComponentType(componentType string) ApiDcimInventoryItemsListRequest { - r.componentType = &componentType - return r -} - -func (r ApiDcimInventoryItemsListRequest) ComponentTypeN(componentTypeN string) ApiDcimInventoryItemsListRequest { - r.componentTypeN = &componentTypeN - return r -} - -func (r ApiDcimInventoryItemsListRequest) Created(created []time.Time) ApiDcimInventoryItemsListRequest { - r.created = &created - 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 -} - -func (r ApiDcimInventoryItemsListRequest) CreatedGte(createdGte []time.Time) ApiDcimInventoryItemsListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiDcimInventoryItemsListRequest) CreatedLt(createdLt []time.Time) ApiDcimInventoryItemsListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiDcimInventoryItemsListRequest) CreatedLte(createdLte []time.Time) ApiDcimInventoryItemsListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiDcimInventoryItemsListRequest) CreatedN(createdN []time.Time) ApiDcimInventoryItemsListRequest { - r.createdN = &createdN - return r -} - -func (r ApiDcimInventoryItemsListRequest) CreatedByRequest(createdByRequest string) ApiDcimInventoryItemsListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiDcimInventoryItemsListRequest) Description(description []string) ApiDcimInventoryItemsListRequest { - r.description = &description - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimInventoryItemsListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionIc(descriptionIc []string) ApiDcimInventoryItemsListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionIe(descriptionIe []string) ApiDcimInventoryItemsListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionIew(descriptionIew []string) ApiDcimInventoryItemsListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimInventoryItemsListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionN(descriptionN []string) ApiDcimInventoryItemsListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionNic(descriptionNic []string) ApiDcimInventoryItemsListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionNie(descriptionNie []string) ApiDcimInventoryItemsListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimInventoryItemsListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiDcimInventoryItemsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimInventoryItemsListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -// Device (name) -func (r ApiDcimInventoryItemsListRequest) Device(device []*string) ApiDcimInventoryItemsListRequest { - r.device = &device - return r -} - -// Device (name) -func (r ApiDcimInventoryItemsListRequest) DeviceN(deviceN []*string) ApiDcimInventoryItemsListRequest { - r.deviceN = &deviceN - return r -} - -// Device (ID) -func (r ApiDcimInventoryItemsListRequest) DeviceId(deviceId []int32) ApiDcimInventoryItemsListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiDcimInventoryItemsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInventoryItemsListRequest { - r.deviceIdN = &deviceIdN - return r -} - -// Device type (model) -func (r ApiDcimInventoryItemsListRequest) DeviceType(deviceType []string) ApiDcimInventoryItemsListRequest { - r.deviceType = &deviceType - return r -} - -// Device type (model) -func (r ApiDcimInventoryItemsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimInventoryItemsListRequest { - r.deviceTypeN = &deviceTypeN - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimInventoryItemsListRequest { - r.deviceTypeId = &deviceTypeId - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimInventoryItemsListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} - -func (r ApiDcimInventoryItemsListRequest) Discovered(discovered bool) ApiDcimInventoryItemsListRequest { - r.discovered = &discovered - return r -} - -func (r ApiDcimInventoryItemsListRequest) Id(id []int32) ApiDcimInventoryItemsListRequest { - r.id = &id - 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 -} - -func (r ApiDcimInventoryItemsListRequest) IdGte(idGte []int32) ApiDcimInventoryItemsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiDcimInventoryItemsListRequest) IdLt(idLt []int32) ApiDcimInventoryItemsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiDcimInventoryItemsListRequest) IdLte(idLte []int32) ApiDcimInventoryItemsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiDcimInventoryItemsListRequest) IdN(idN []int32) ApiDcimInventoryItemsListRequest { - r.idN = &idN - return r -} - -func (r ApiDcimInventoryItemsListRequest) Label(label []string) ApiDcimInventoryItemsListRequest { - r.label = &label - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelEmpty(labelEmpty bool) ApiDcimInventoryItemsListRequest { - r.labelEmpty = &labelEmpty - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelIc(labelIc []string) ApiDcimInventoryItemsListRequest { - r.labelIc = &labelIc - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelIe(labelIe []string) ApiDcimInventoryItemsListRequest { - r.labelIe = &labelIe - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelIew(labelIew []string) ApiDcimInventoryItemsListRequest { - r.labelIew = &labelIew - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelIsw(labelIsw []string) ApiDcimInventoryItemsListRequest { - r.labelIsw = &labelIsw - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelN(labelN []string) ApiDcimInventoryItemsListRequest { - r.labelN = &labelN - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelNic(labelNic []string) ApiDcimInventoryItemsListRequest { - r.labelNic = &labelNic - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelNie(labelNie []string) ApiDcimInventoryItemsListRequest { - r.labelNie = &labelNie - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelNiew(labelNiew []string) ApiDcimInventoryItemsListRequest { - r.labelNiew = &labelNiew - return r -} - -func (r ApiDcimInventoryItemsListRequest) LabelNisw(labelNisw []string) ApiDcimInventoryItemsListRequest { - r.labelNisw = &labelNisw - return r -} - -func (r ApiDcimInventoryItemsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimInventoryItemsListRequest { - r.lastUpdated = &lastUpdated - 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 -} - -func (r ApiDcimInventoryItemsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimInventoryItemsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiDcimInventoryItemsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimInventoryItemsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - 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 ApiDcimInventoryItemsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimInventoryItemsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiDcimInventoryItemsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimInventoryItemsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r +type ApiDcimLocationsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableLocationRequest *PatchedWritableLocationRequest } -// Number of results to return per page. -func (r ApiDcimInventoryItemsListRequest) Limit(limit int32) ApiDcimInventoryItemsListRequest { - r.limit = &limit +func (r ApiDcimLocationsPartialUpdateRequest) PatchedWritableLocationRequest(patchedWritableLocationRequest PatchedWritableLocationRequest) ApiDcimLocationsPartialUpdateRequest { + r.patchedWritableLocationRequest = &patchedWritableLocationRequest return r } -// Location (slug) -func (r ApiDcimInventoryItemsListRequest) Location(location []string) ApiDcimInventoryItemsListRequest { - r.location = &location - return r +func (r ApiDcimLocationsPartialUpdateRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.DcimLocationsPartialUpdateExecute(r) } -// Location (slug) -func (r ApiDcimInventoryItemsListRequest) LocationN(locationN []string) ApiDcimInventoryItemsListRequest { - r.locationN = &locationN - return r -} +/* +DcimLocationsPartialUpdate Method for DcimLocationsPartialUpdate -// Location (ID) -func (r ApiDcimInventoryItemsListRequest) LocationId(locationId []int32) ApiDcimInventoryItemsListRequest { - r.locationId = &locationId - return r -} +Patch a location object. -// Location (ID) -func (r ApiDcimInventoryItemsListRequest) LocationIdN(locationIdN []int32) ApiDcimInventoryItemsListRequest { - r.locationIdN = &locationIdN - 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 location. + @return ApiDcimLocationsPartialUpdateRequest +*/ +func (a *DcimAPIService) DcimLocationsPartialUpdate(ctx context.Context, id int32) ApiDcimLocationsPartialUpdateRequest { + return ApiDcimLocationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -// Manufacturer (slug) -func (r ApiDcimInventoryItemsListRequest) Manufacturer(manufacturer []string) ApiDcimInventoryItemsListRequest { - r.manufacturer = &manufacturer - return r -} +// Execute executes the request +// @return Location +func (a *DcimAPIService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPartialUpdateRequest) (*Location, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location + ) -// Manufacturer (slug) -func (r ApiDcimInventoryItemsListRequest) ManufacturerN(manufacturerN []string) ApiDcimInventoryItemsListRequest { - r.manufacturerN = &manufacturerN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// Manufacturer (ID) -func (r ApiDcimInventoryItemsListRequest) ManufacturerId(manufacturerId []*int32) ApiDcimInventoryItemsListRequest { - r.manufacturerId = &manufacturerId - return r -} + localVarPath := localBasePath + "/api/dcim/locations/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -// Manufacturer (ID) -func (r ApiDcimInventoryItemsListRequest) ManufacturerIdN(manufacturerIdN []*int32) ApiDcimInventoryItemsListRequest { - r.manufacturerIdN = &manufacturerIdN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiDcimInventoryItemsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInventoryItemsListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiDcimInventoryItemsListRequest) Name(name []string) ApiDcimInventoryItemsListRequest { - r.name = &name - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimInventoryItemsListRequest) NameEmpty(nameEmpty bool) ApiDcimInventoryItemsListRequest { - r.nameEmpty = &nameEmpty - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimInventoryItemsListRequest) NameIc(nameIc []string) ApiDcimInventoryItemsListRequest { - r.nameIc = &nameIc - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedWritableLocationRequest + 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 ApiDcimInventoryItemsListRequest) NameIe(nameIe []string) ApiDcimInventoryItemsListRequest { - r.nameIe = &nameIe - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiDcimInventoryItemsListRequest) NameIew(nameIew []string) ApiDcimInventoryItemsListRequest { - r.nameIew = &nameIew - 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 + } -func (r ApiDcimInventoryItemsListRequest) NameIsw(nameIsw []string) ApiDcimInventoryItemsListRequest { - r.nameIsw = &nameIsw - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiDcimInventoryItemsListRequest) NameN(nameN []string) ApiDcimInventoryItemsListRequest { - r.nameN = &nameN - 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 ApiDcimInventoryItemsListRequest) NameNic(nameNic []string) ApiDcimInventoryItemsListRequest { - r.nameNic = &nameNic - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiDcimInventoryItemsListRequest) NameNie(nameNie []string) ApiDcimInventoryItemsListRequest { - r.nameNie = &nameNie - return r +type ApiDcimLocationsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimInventoryItemsListRequest) NameNiew(nameNiew []string) ApiDcimInventoryItemsListRequest { - r.nameNiew = &nameNiew - return r +func (r ApiDcimLocationsRetrieveRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.DcimLocationsRetrieveExecute(r) } -func (r ApiDcimInventoryItemsListRequest) NameNisw(nameNisw []string) ApiDcimInventoryItemsListRequest { - r.nameNisw = &nameNisw - return r -} +/* +DcimLocationsRetrieve Method for DcimLocationsRetrieve -// The initial index from which to return the results. -func (r ApiDcimInventoryItemsListRequest) Offset(offset int32) ApiDcimInventoryItemsListRequest { - r.offset = &offset - return r -} +Get a location object. -// Which field to use when ordering the results. -func (r ApiDcimInventoryItemsListRequest) Ordering(ordering string) ApiDcimInventoryItemsListRequest { - r.ordering = &ordering - 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 location. + @return ApiDcimLocationsRetrieveRequest +*/ +func (a *DcimAPIService) DcimLocationsRetrieve(ctx context.Context, id int32) ApiDcimLocationsRetrieveRequest { + return ApiDcimLocationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -// Parent inventory item (ID) -func (r ApiDcimInventoryItemsListRequest) ParentId(parentId []*int32) ApiDcimInventoryItemsListRequest { - r.parentId = &parentId - return r -} +// Execute executes the request +// @return Location +func (a *DcimAPIService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieveRequest) (*Location, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location + ) -// Parent inventory item (ID) -func (r ApiDcimInventoryItemsListRequest) ParentIdN(parentIdN []*int32) ApiDcimInventoryItemsListRequest { - r.parentIdN = &parentIdN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiDcimInventoryItemsListRequest) PartId(partId []string) ApiDcimInventoryItemsListRequest { - r.partId = &partId - return r -} + localVarPath := localBasePath + "/api/dcim/locations/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiDcimInventoryItemsListRequest) PartIdEmpty(partIdEmpty bool) ApiDcimInventoryItemsListRequest { - r.partIdEmpty = &partIdEmpty - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiDcimInventoryItemsListRequest) PartIdIc(partIdIc []string) ApiDcimInventoryItemsListRequest { - r.partIdIc = &partIdIc - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiDcimInventoryItemsListRequest) PartIdIe(partIdIe []string) ApiDcimInventoryItemsListRequest { - r.partIdIe = &partIdIe - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiDcimInventoryItemsListRequest) PartIdIew(partIdIew []string) ApiDcimInventoryItemsListRequest { - r.partIdIew = &partIdIew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimInventoryItemsListRequest) PartIdIsw(partIdIsw []string) ApiDcimInventoryItemsListRequest { - r.partIdIsw = &partIdIsw - 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 ApiDcimInventoryItemsListRequest) PartIdN(partIdN []string) ApiDcimInventoryItemsListRequest { - r.partIdN = &partIdN - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiDcimInventoryItemsListRequest) PartIdNic(partIdNic []string) ApiDcimInventoryItemsListRequest { - r.partIdNic = &partIdNic - 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 + } -func (r ApiDcimInventoryItemsListRequest) PartIdNie(partIdNie []string) ApiDcimInventoryItemsListRequest { - r.partIdNie = &partIdNie - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiDcimInventoryItemsListRequest) PartIdNiew(partIdNiew []string) ApiDcimInventoryItemsListRequest { - r.partIdNiew = &partIdNiew - 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 ApiDcimInventoryItemsListRequest) PartIdNisw(partIdNisw []string) ApiDcimInventoryItemsListRequest { - r.partIdNisw = &partIdNisw - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Search -func (r ApiDcimInventoryItemsListRequest) Q(q string) ApiDcimInventoryItemsListRequest { - r.q = &q - return r +type ApiDcimLocationsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableLocationRequest *WritableLocationRequest } -// Rack (name) -func (r ApiDcimInventoryItemsListRequest) Rack(rack []string) ApiDcimInventoryItemsListRequest { - r.rack = &rack +func (r ApiDcimLocationsUpdateRequest) WritableLocationRequest(writableLocationRequest WritableLocationRequest) ApiDcimLocationsUpdateRequest { + r.writableLocationRequest = &writableLocationRequest return r } -// Rack (name) -func (r ApiDcimInventoryItemsListRequest) RackN(rackN []string) ApiDcimInventoryItemsListRequest { - r.rackN = &rackN - return r +func (r ApiDcimLocationsUpdateRequest) Execute() (*Location, *http.Response, error) { + return r.ApiService.DcimLocationsUpdateExecute(r) } -// Rack (ID) -func (r ApiDcimInventoryItemsListRequest) RackId(rackId []int32) ApiDcimInventoryItemsListRequest { - r.rackId = &rackId - return r -} +/* +DcimLocationsUpdate Method for DcimLocationsUpdate -// Rack (ID) -func (r ApiDcimInventoryItemsListRequest) RackIdN(rackIdN []int32) ApiDcimInventoryItemsListRequest { - r.rackIdN = &rackIdN - return r -} +Put a location object. -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) Region(region []int32) ApiDcimInventoryItemsListRequest { - r.region = ®ion - 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 location. + @return ApiDcimLocationsUpdateRequest +*/ +func (a *DcimAPIService) DcimLocationsUpdate(ctx context.Context, id int32) ApiDcimLocationsUpdateRequest { + return ApiDcimLocationsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []int32) ApiDcimInventoryItemsListRequest { - r.regionN = ®ionN - return r -} +// Execute executes the request +// @return Location +func (a *DcimAPIService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequest) (*Location, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location + ) -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []int32) ApiDcimInventoryItemsListRequest { - r.regionId = ®ionId - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []int32) ApiDcimInventoryItemsListRequest { - r.regionIdN = ®ionIdN - return r -} + localVarPath := localBasePath + "/api/dcim/locations/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -// Role (slug) -func (r ApiDcimInventoryItemsListRequest) Role(role []string) ApiDcimInventoryItemsListRequest { - r.role = &role - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableLocationRequest == nil { + return localVarReturnValue, nil, reportError("writableLocationRequest is required and must be specified") + } -// Role (slug) -func (r ApiDcimInventoryItemsListRequest) RoleN(roleN []string) ApiDcimInventoryItemsListRequest { - r.roleN = &roleN - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -// Role (ID) -func (r ApiDcimInventoryItemsListRequest) RoleId(roleId []*int32) ApiDcimInventoryItemsListRequest { - r.roleId = &roleId - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -// Role (ID) -func (r ApiDcimInventoryItemsListRequest) RoleIdN(roleIdN []*int32) ApiDcimInventoryItemsListRequest { - r.roleIdN = &roleIdN - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiDcimInventoryItemsListRequest) Serial(serial []string) ApiDcimInventoryItemsListRequest { - r.serial = &serial - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableLocationRequest + 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 ApiDcimInventoryItemsListRequest) SerialEmpty(serialEmpty bool) ApiDcimInventoryItemsListRequest { - r.serialEmpty = &serialEmpty - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiDcimInventoryItemsListRequest) SerialIc(serialIc []string) ApiDcimInventoryItemsListRequest { - r.serialIc = &serialIc - 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 + } -func (r ApiDcimInventoryItemsListRequest) SerialIe(serialIe []string) ApiDcimInventoryItemsListRequest { - r.serialIe = &serialIe - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiDcimInventoryItemsListRequest) SerialIew(serialIew []string) ApiDcimInventoryItemsListRequest { - r.serialIew = &serialIew - 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 ApiDcimInventoryItemsListRequest) SerialIsw(serialIsw []string) ApiDcimInventoryItemsListRequest { - r.serialIsw = &serialIsw - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiDcimInventoryItemsListRequest) SerialN(serialN []string) ApiDcimInventoryItemsListRequest { - r.serialN = &serialN - return r +type ApiDcimMacAddressesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + mACAddressRequest *[]MACAddressRequest } -func (r ApiDcimInventoryItemsListRequest) SerialNic(serialNic []string) ApiDcimInventoryItemsListRequest { - r.serialNic = &serialNic +func (r ApiDcimMacAddressesBulkDestroyRequest) MACAddressRequest(mACAddressRequest []MACAddressRequest) ApiDcimMacAddressesBulkDestroyRequest { + r.mACAddressRequest = &mACAddressRequest return r } -func (r ApiDcimInventoryItemsListRequest) SerialNie(serialNie []string) ApiDcimInventoryItemsListRequest { - r.serialNie = &serialNie - return r +func (r ApiDcimMacAddressesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimMacAddressesBulkDestroyExecute(r) } -func (r ApiDcimInventoryItemsListRequest) SerialNiew(serialNiew []string) ApiDcimInventoryItemsListRequest { - r.serialNiew = &serialNiew - return r -} +/* +DcimMacAddressesBulkDestroy Method for DcimMacAddressesBulkDestroy -func (r ApiDcimInventoryItemsListRequest) SerialNisw(serialNisw []string) ApiDcimInventoryItemsListRequest { - r.serialNisw = &serialNisw - return r -} +Delete a list of MAC address objects. -// Site name (slug) -func (r ApiDcimInventoryItemsListRequest) Site(site []string) ApiDcimInventoryItemsListRequest { - r.site = &site - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesBulkDestroyRequest +*/ +func (a *DcimAPIService) DcimMacAddressesBulkDestroy(ctx context.Context) ApiDcimMacAddressesBulkDestroyRequest { + return ApiDcimMacAddressesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } } -// Site name (slug) -func (r ApiDcimInventoryItemsListRequest) SiteN(siteN []string) ApiDcimInventoryItemsListRequest { - r.siteN = &siteN - return r -} +// Execute executes the request +func (a *DcimAPIService) DcimMacAddressesBulkDestroyExecute(r ApiDcimMacAddressesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []int32) ApiDcimInventoryItemsListRequest { - r.siteGroup = &siteGroup - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInventoryItemsListRequest { - r.siteGroupN = &siteGroupN - return r -} + localVarPath := localBasePath + "/api/dcim/mac-addresses/" -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInventoryItemsListRequest { - r.siteGroupId = &siteGroupId - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.mACAddressRequest == nil { + return nil, reportError("mACAddressRequest is required and must be specified") + } -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInventoryItemsListRequest { - r.siteGroupIdN = &siteGroupIdN - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -// Site (ID) -func (r ApiDcimInventoryItemsListRequest) SiteId(siteId []int32) ApiDcimInventoryItemsListRequest { - r.siteId = &siteId - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -// Site (ID) -func (r ApiDcimInventoryItemsListRequest) SiteIdN(siteIdN []int32) ApiDcimInventoryItemsListRequest { - r.siteIdN = &siteIdN - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -func (r ApiDcimInventoryItemsListRequest) Tag(tag []string) ApiDcimInventoryItemsListRequest { - r.tag = &tag - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.mACAddressRequest + 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 + } -func (r ApiDcimInventoryItemsListRequest) TagN(tagN []string) ApiDcimInventoryItemsListRequest { - r.tagN = &tagN - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiDcimInventoryItemsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInventoryItemsListRequest { - r.updatedByRequest = &updatedByRequest - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -// Virtual Chassis -func (r ApiDcimInventoryItemsListRequest) VirtualChassis(virtualChassis []string) ApiDcimInventoryItemsListRequest { - r.virtualChassis = &virtualChassis - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -// Virtual Chassis -func (r ApiDcimInventoryItemsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimInventoryItemsListRequest { - r.virtualChassisN = &virtualChassisN - return r + return localVarHTTPResponse, nil } -// Virtual Chassis (ID) -func (r ApiDcimInventoryItemsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimInventoryItemsListRequest { - r.virtualChassisId = &virtualChassisId - return r +type ApiDcimMacAddressesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + mACAddressRequest *[]MACAddressRequest } -// Virtual Chassis (ID) -func (r ApiDcimInventoryItemsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimInventoryItemsListRequest { - r.virtualChassisIdN = &virtualChassisIdN +func (r ApiDcimMacAddressesBulkPartialUpdateRequest) MACAddressRequest(mACAddressRequest []MACAddressRequest) ApiDcimMacAddressesBulkPartialUpdateRequest { + r.mACAddressRequest = &mACAddressRequest return r } -func (r ApiDcimInventoryItemsListRequest) Execute() (*PaginatedInventoryItemList, *http.Response, error) { - return r.ApiService.DcimInventoryItemsListExecute(r) +func (r ApiDcimMacAddressesBulkPartialUpdateRequest) Execute() ([]MACAddress, *http.Response, error) { + return r.ApiService.DcimMacAddressesBulkPartialUpdateExecute(r) } /* -DcimInventoryItemsList Method for DcimInventoryItemsList +DcimMacAddressesBulkPartialUpdate Method for DcimMacAddressesBulkPartialUpdate -Get a list of inventory item objects. +Patch a list of MAC address 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 ApiDcimMacAddressesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimInventoryItemsList(ctx context.Context) ApiDcimInventoryItemsListRequest { - return ApiDcimInventoryItemsListRequest{ +func (a *DcimAPIService) DcimMacAddressesBulkPartialUpdate(ctx context.Context) ApiDcimMacAddressesBulkPartialUpdateRequest { + return ApiDcimMacAddressesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInventoryItemList -func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsListRequest) (*PaginatedInventoryItemList, *http.Response, error) { +// @return []MACAddress +func (a *DcimAPIService) DcimMacAddressesBulkPartialUpdateExecute(r ApiDcimMacAddressesBulkPartialUpdateRequest) ([]MACAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInventoryItemList + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []MACAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-items/" + localVarPath := localBasePath + "/api/dcim/mac-addresses/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.assetTag != nil { - t := *r.assetTag - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") - } - } - if r.assetTagEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "") - } - if r.assetTagIc != nil { - t := *r.assetTagIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") - } - } - if r.assetTagIe != nil { - t := *r.assetTagIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") - } - } - if r.assetTagIew != nil { - t := *r.assetTagIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") - } - } - if r.assetTagIsw != nil { - t := *r.assetTagIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") - } - } - if r.assetTagN != nil { - t := *r.assetTagN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") - } - } - if r.assetTagNic != nil { - t := *r.assetTagNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") - } - } - if r.assetTagNie != nil { - t := *r.assetTagNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") - } - } - if r.assetTagNiew != nil { - t := *r.assetTagNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") - } - } - if r.assetTagNisw != nil { - t := *r.assetTagNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") - } - } - if r.componentId != nil { - t := *r.componentId - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", t, "multi") - } - } - if r.componentIdGte != nil { - t := *r.componentIdGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", t, "multi") - } - } - if r.componentIdLt != nil { - t := *r.componentIdLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", t, "multi") - } - } - if r.componentIdLte != nil { - t := *r.componentIdLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", t, "multi") - } - } - if r.componentIdN != nil { - t := *r.componentIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", t, "multi") - } - } - if r.componentType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_type", r.componentType, "") - } - if r.componentTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_type__n", r.componentTypeN, "") - } - 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.mACAddressRequest == nil { + return localVarReturnValue, nil, reportError("mACAddressRequest 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).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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.mACAddressRequest + 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__iew", t, "multi") } } - 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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimMacAddressesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + mACAddressRequest *[]MACAddressRequest +} + +func (r ApiDcimMacAddressesBulkUpdateRequest) MACAddressRequest(mACAddressRequest []MACAddressRequest) ApiDcimMacAddressesBulkUpdateRequest { + r.mACAddressRequest = &mACAddressRequest + return r +} + +func (r ApiDcimMacAddressesBulkUpdateRequest) Execute() ([]MACAddress, *http.Response, error) { + return r.ApiService.DcimMacAddressesBulkUpdateExecute(r) +} + +/* +DcimMacAddressesBulkUpdate Method for DcimMacAddressesBulkUpdate + +Put a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesBulkUpdateRequest +*/ +func (a *DcimAPIService) DcimMacAddressesBulkUpdate(ctx context.Context) ApiDcimMacAddressesBulkUpdateRequest { + return ApiDcimMacAddressesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") - } +} + +// Execute executes the request +// @return []MACAddress +func (a *DcimAPIService) DcimMacAddressesBulkUpdateExecute(r ApiDcimMacAddressesBulkUpdateRequest) ([]MACAddress, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []MACAddress + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/mac-addresses/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.mACAddressRequest == nil { + return localVarReturnValue, nil, reportError("mACAddressRequest is required and must be specified") } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") + // body params + localVarPostBody = r.mACAddressRequest + 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, "device_type", t, "multi") } } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__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.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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_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.discovered != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "discovered", r.discovered, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimMacAddressesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + mACAddressRequest *MACAddressRequest +} + +func (r ApiDcimMacAddressesCreateRequest) MACAddressRequest(mACAddressRequest MACAddressRequest) ApiDcimMacAddressesCreateRequest { + r.mACAddressRequest = &mACAddressRequest + return r +} + +func (r ApiDcimMacAddressesCreateRequest) Execute() (*MACAddress, *http.Response, error) { + return r.ApiService.DcimMacAddressesCreateExecute(r) +} + +/* +DcimMacAddressesCreate Method for DcimMacAddressesCreate + +Post a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesCreateRequest +*/ +func (a *DcimAPIService) DcimMacAddressesCreate(ctx context.Context) ApiDcimMacAddressesCreateRequest { + return ApiDcimMacAddressesCreateRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return MACAddress +func (a *DcimAPIService) DcimMacAddressesCreateExecute(r ApiDcimMacAddressesCreateRequest) (*MACAddress, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MACAddress + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/dcim/mac-addresses/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.mACAddressRequest == nil { + return localVarReturnValue, nil, reportError("mACAddressRequest is required and must be specified") } - 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") - } + + // 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.mACAddressRequest + 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.label != nil { - t := *r.label - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", 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.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.labelIc != nil { - t := *r.labelIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__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.labelIe != nil { - t := *r.labelIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.labelIew != nil { - t := *r.labelIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", 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.labelIsw != nil { - t := *r.labelIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimMacAddressesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 +} + +func (r ApiDcimMacAddressesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimMacAddressesDestroyExecute(r) +} + +/* +DcimMacAddressesDestroy Method for DcimMacAddressesDestroy + +Delete a MAC 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 MAC address. + @return ApiDcimMacAddressesDestroyRequest +*/ +func (a *DcimAPIService) DcimMacAddressesDestroy(ctx context.Context, id int32) ApiDcimMacAddressesDestroyRequest { + return ApiDcimMacAddressesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.labelN != nil { - t := *r.labelN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") - } +} + +// Execute executes the request +func (a *DcimAPIService) DcimMacAddressesDestroyExecute(r ApiDcimMacAddressesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.labelNic != nil { - t := *r.labelNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") - } + + localVarPath := localBasePath + "/api/dcim/mac-addresses/{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.labelNie != nil { - t := *r.labelNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.labelNiew != nil { - t := *r.labelNiew - 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).Interface(), "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, "label__niew", t, "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - 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") + + 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 ApiDcimMacAddressesListRequest struct { + ctx context.Context + ApiService DcimAPI + assignedObjectId *[]int32 + assignedObjectIdEmpty *bool + assignedObjectIdGt *[]int32 + assignedObjectIdGte *[]int32 + assignedObjectIdLt *[]int32 + assignedObjectIdLte *[]int32 + assignedObjectIdN *[]int32 + assignedObjectType *int32 + assignedObjectTypeN *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 + 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 + macAddress *[]string + macAddressIc *[]string + macAddressIe *[]string + macAddressIew *[]string + macAddressIsw *[]string + macAddressN *[]string + macAddressNic *[]string + macAddressNie *[]string + macAddressNiew *[]string + macAddressNisw *[]string + modifiedByRequest *string + offset *int32 + ordering *string + q *string + tag *[]string + tagN *[]string + updatedByRequest *string + virtualMachine *[]string + virtualMachineId *[]int32 + vminterface *[]string + vminterfaceN *[]string + vminterfaceId *[]int32 + vminterfaceIdN *[]int32 +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectId(assignedObjectId []int32) ApiDcimMacAddressesListRequest { + r.assignedObjectId = &assignedObjectId + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectIdEmpty(assignedObjectIdEmpty bool) ApiDcimMacAddressesListRequest { + r.assignedObjectIdEmpty = &assignedObjectIdEmpty + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectIdGt(assignedObjectIdGt []int32) ApiDcimMacAddressesListRequest { + r.assignedObjectIdGt = &assignedObjectIdGt + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectIdGte(assignedObjectIdGte []int32) ApiDcimMacAddressesListRequest { + r.assignedObjectIdGte = &assignedObjectIdGte + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectIdLt(assignedObjectIdLt []int32) ApiDcimMacAddressesListRequest { + r.assignedObjectIdLt = &assignedObjectIdLt + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectIdLte(assignedObjectIdLte []int32) ApiDcimMacAddressesListRequest { + r.assignedObjectIdLte = &assignedObjectIdLte + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectIdN(assignedObjectIdN []int32) ApiDcimMacAddressesListRequest { + r.assignedObjectIdN = &assignedObjectIdN + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectType(assignedObjectType int32) ApiDcimMacAddressesListRequest { + r.assignedObjectType = &assignedObjectType + return r +} + +func (r ApiDcimMacAddressesListRequest) AssignedObjectTypeN(assignedObjectTypeN int32) ApiDcimMacAddressesListRequest { + r.assignedObjectTypeN = &assignedObjectTypeN + return r +} + +func (r ApiDcimMacAddressesListRequest) Created(created []time.Time) ApiDcimMacAddressesListRequest { + r.created = &created + return r +} + +func (r ApiDcimMacAddressesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimMacAddressesListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiDcimMacAddressesListRequest) CreatedGt(createdGt []time.Time) ApiDcimMacAddressesListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiDcimMacAddressesListRequest) CreatedGte(createdGte []time.Time) ApiDcimMacAddressesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimMacAddressesListRequest) CreatedLt(createdLt []time.Time) ApiDcimMacAddressesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimMacAddressesListRequest) CreatedLte(createdLte []time.Time) ApiDcimMacAddressesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimMacAddressesListRequest) CreatedN(createdN []time.Time) ApiDcimMacAddressesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimMacAddressesListRequest) CreatedByRequest(createdByRequest string) ApiDcimMacAddressesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimMacAddressesListRequest) Description(description []string) ApiDcimMacAddressesListRequest { + r.description = &description + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimMacAddressesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionIc(descriptionIc []string) ApiDcimMacAddressesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionIe(descriptionIe []string) ApiDcimMacAddressesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionIew(descriptionIew []string) ApiDcimMacAddressesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimMacAddressesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionN(descriptionN []string) ApiDcimMacAddressesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionNic(descriptionNic []string) ApiDcimMacAddressesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionNie(descriptionNie []string) ApiDcimMacAddressesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimMacAddressesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimMacAddressesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimMacAddressesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiDcimMacAddressesListRequest) Device(device []string) ApiDcimMacAddressesListRequest { + r.device = &device + return r +} + +func (r ApiDcimMacAddressesListRequest) DeviceId(deviceId []int32) ApiDcimMacAddressesListRequest { + r.deviceId = &deviceId + return r +} + +func (r ApiDcimMacAddressesListRequest) Id(id []int32) ApiDcimMacAddressesListRequest { + r.id = &id + return r +} + +func (r ApiDcimMacAddressesListRequest) IdEmpty(idEmpty bool) ApiDcimMacAddressesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiDcimMacAddressesListRequest) IdGt(idGt []int32) ApiDcimMacAddressesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiDcimMacAddressesListRequest) IdGte(idGte []int32) ApiDcimMacAddressesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimMacAddressesListRequest) IdLt(idLt []int32) ApiDcimMacAddressesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimMacAddressesListRequest) IdLte(idLte []int32) ApiDcimMacAddressesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimMacAddressesListRequest) IdN(idN []int32) ApiDcimMacAddressesListRequest { + r.idN = &idN + return r +} + +// Interface (name) +func (r ApiDcimMacAddressesListRequest) Interface_(interface_ []string) ApiDcimMacAddressesListRequest { + r.interface_ = &interface_ + return r +} + +// Interface (name) +func (r ApiDcimMacAddressesListRequest) InterfaceN(interfaceN []string) ApiDcimMacAddressesListRequest { + r.interfaceN = &interfaceN + return r +} + +// Interface (ID) +func (r ApiDcimMacAddressesListRequest) InterfaceId(interfaceId []int32) ApiDcimMacAddressesListRequest { + r.interfaceId = &interfaceId + return r +} + +// Interface (ID) +func (r ApiDcimMacAddressesListRequest) InterfaceIdN(interfaceIdN []int32) ApiDcimMacAddressesListRequest { + r.interfaceIdN = &interfaceIdN + return r +} + +func (r ApiDcimMacAddressesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimMacAddressesListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiDcimMacAddressesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimMacAddressesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiDcimMacAddressesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimMacAddressesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiDcimMacAddressesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimMacAddressesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimMacAddressesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimMacAddressesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimMacAddressesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimMacAddressesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimMacAddressesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimMacAddressesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimMacAddressesListRequest) Limit(limit int32) ApiDcimMacAddressesListRequest { + r.limit = &limit + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddress(macAddress []string) ApiDcimMacAddressesListRequest { + r.macAddress = &macAddress + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressIc(macAddressIc []string) ApiDcimMacAddressesListRequest { + r.macAddressIc = &macAddressIc + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressIe(macAddressIe []string) ApiDcimMacAddressesListRequest { + r.macAddressIe = &macAddressIe + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressIew(macAddressIew []string) ApiDcimMacAddressesListRequest { + r.macAddressIew = &macAddressIew + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressIsw(macAddressIsw []string) ApiDcimMacAddressesListRequest { + r.macAddressIsw = &macAddressIsw + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressN(macAddressN []string) ApiDcimMacAddressesListRequest { + r.macAddressN = &macAddressN + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressNic(macAddressNic []string) ApiDcimMacAddressesListRequest { + r.macAddressNic = &macAddressNic + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressNie(macAddressNie []string) ApiDcimMacAddressesListRequest { + r.macAddressNie = &macAddressNie + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressNiew(macAddressNiew []string) ApiDcimMacAddressesListRequest { + r.macAddressNiew = &macAddressNiew + return r +} + +func (r ApiDcimMacAddressesListRequest) MacAddressNisw(macAddressNisw []string) ApiDcimMacAddressesListRequest { + r.macAddressNisw = &macAddressNisw + return r +} + +func (r ApiDcimMacAddressesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimMacAddressesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// The initial index from which to return the results. +func (r ApiDcimMacAddressesListRequest) Offset(offset int32) ApiDcimMacAddressesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimMacAddressesListRequest) Ordering(ordering string) ApiDcimMacAddressesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiDcimMacAddressesListRequest) Q(q string) ApiDcimMacAddressesListRequest { + r.q = &q + return r +} + +func (r ApiDcimMacAddressesListRequest) Tag(tag []string) ApiDcimMacAddressesListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimMacAddressesListRequest) TagN(tagN []string) ApiDcimMacAddressesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimMacAddressesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimMacAddressesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimMacAddressesListRequest) VirtualMachine(virtualMachine []string) ApiDcimMacAddressesListRequest { + r.virtualMachine = &virtualMachine + return r +} + +func (r ApiDcimMacAddressesListRequest) VirtualMachineId(virtualMachineId []int32) ApiDcimMacAddressesListRequest { + r.virtualMachineId = &virtualMachineId + return r +} + +// VM interface (name) +func (r ApiDcimMacAddressesListRequest) Vminterface(vminterface []string) ApiDcimMacAddressesListRequest { + r.vminterface = &vminterface + return r +} + +// VM interface (name) +func (r ApiDcimMacAddressesListRequest) VminterfaceN(vminterfaceN []string) ApiDcimMacAddressesListRequest { + r.vminterfaceN = &vminterfaceN + return r +} + +// VM interface (ID) +func (r ApiDcimMacAddressesListRequest) VminterfaceId(vminterfaceId []int32) ApiDcimMacAddressesListRequest { + r.vminterfaceId = &vminterfaceId + return r +} + +// VM interface (ID) +func (r ApiDcimMacAddressesListRequest) VminterfaceIdN(vminterfaceIdN []int32) ApiDcimMacAddressesListRequest { + r.vminterfaceIdN = &vminterfaceIdN + return r +} + +func (r ApiDcimMacAddressesListRequest) Execute() (*PaginatedMACAddressList, *http.Response, error) { + return r.ApiService.DcimMacAddressesListExecute(r) +} + +/* +DcimMacAddressesList Method for DcimMacAddressesList + +Get a list of MAC address objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimMacAddressesListRequest +*/ +func (a *DcimAPIService) DcimMacAddressesList(ctx context.Context) ApiDcimMacAddressesListRequest { + return ApiDcimMacAddressesListRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return PaginatedMACAddressList +func (a *DcimAPIService) DcimMacAddressesListExecute(r ApiDcimMacAddressesListRequest) (*PaginatedMACAddressList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedMACAddressList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + + localVarPath := localBasePath + "/api/dcim/mac-addresses/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.assignedObjectId != nil { + t := *r.assignedObjectId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", t, "form", "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.assignedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__empty", r.assignedObjectIdEmpty, "form", "") } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.assignedObjectIdGte != nil { + t := *r.assignedObjectIdGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.assignedObjectIdLt != nil { + t := *r.assignedObjectIdLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.location != nil { - t := *r.location + if r.assignedObjectIdLte != nil { + t := *r.assignedObjectIdLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "form", "multi") } } - if r.locationN != nil { - t := *r.locationN + if r.assignedObjectIdN != nil { + t := *r.assignedObjectIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "form", "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.assignedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type", r.assignedObjectType, "form", "") } - 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.assignedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type__n", r.assignedObjectTypeN, "form", "") } - if r.manufacturer != nil { - t := *r.manufacturer + 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, "manufacturer", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.manufacturerN != nil { - t := *r.manufacturerN + 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, "manufacturer__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.manufacturerId != nil { - t := *r.manufacturerId + 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, "manufacturer_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.manufacturerIdN != nil { - t := *r.manufacturerIdN + 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, "manufacturer_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.nameIsw != nil { - t := *r.nameIsw + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "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.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.parentId != nil { - t := *r.parentId + 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, "parent_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.parentIdN != nil { - t := *r.parentIdN + 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, "parent_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.partId != nil { - t := *r.partId + 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, "part_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.partIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__empty", r.partIdEmpty, "") - } - if r.partIdIc != nil { - t := *r.partIdIc + 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, "part_id__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.partIdIe != nil { - t := *r.partIdIe + 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, "part_id__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.partIdIew != nil { - t := *r.partIdIew + if r.device != nil { + t := *r.device 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } - if r.partIdIsw != nil { - t := *r.partIdIsw + 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, "part_id__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } - if r.partIdN != nil { - t := *r.partIdN + 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, "part_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.partIdNic != nil { - t := *r.partIdNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", t, "multi") - } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.partIdNie != nil { - t := *r.partIdNie + 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, "part_id__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.partIdNiew != nil { - t := *r.partIdNiew + 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, "part_id__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.partIdNisw != nil { - t := *r.partIdNisw + 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, "part_id__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rack != nil { - t := *r.rack + 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, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.rackN != nil { - t := *r.rackN + 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, "rack__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.rackId != nil { - t := *r.rackId + if r.interface_ != nil { + t := *r.interface_ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + if r.interfaceN != nil { + t := *r.interfaceN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "form", "multi") } } - if r.region != nil { - t := *r.region + if r.interfaceId != nil { + t := *r.interfaceId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.interfaceIdN != nil { + t := *r.interfaceIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.role != nil { - t := *r.role + 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, "role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.serial != nil { - t := *r.serial + 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, "serial", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.serialEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.serialIc != nil { - t := *r.serialIc + 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, "serial__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "form", "multi") } } - if r.serialIe != nil { - t := *r.serialIe + if r.macAddressIc != nil { + t := *r.macAddressIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "form", "multi") } } - if r.serialIew != nil { - t := *r.serialIew + if r.macAddressIe != nil { + t := *r.macAddressIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "form", "multi") } } - if r.serialIsw != nil { - t := *r.serialIsw + if r.macAddressIew != nil { + t := *r.macAddressIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "form", "multi") } } - if r.serialN != nil { - t := *r.serialN + if r.macAddressIsw != nil { + t := *r.macAddressIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "form", "multi") } } - if r.serialNic != nil { - t := *r.serialNic + if r.macAddressN != nil { + t := *r.macAddressN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "form", "multi") } } - if r.serialNie != nil { - t := *r.serialNie + if r.macAddressNic != nil { + t := *r.macAddressNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "form", "multi") } } - if r.serialNiew != nil { - t := *r.serialNiew + if r.macAddressNie != nil { + t := *r.macAddressNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "form", "multi") } } - if r.serialNisw != nil { - t := *r.serialNisw + if r.macAddressNiew != nil { + t := *r.macAddressNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "form", "multi") } } - if r.site != nil { - t := *r.site + if r.macAddressNisw != nil { + t := *r.macAddressNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "form", "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.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - 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.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - 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.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - 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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + 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, "site_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - if r.tag != nil { - t := *r.tag + if r.virtualMachine != nil { + t := *r.virtualMachine 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.virtualMachineId != nil { + t := *r.virtualMachineId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualChassis != nil { - t := *r.virtualChassis + if r.vminterface != nil { + t := *r.vminterface 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "form", "multi") } } - if r.virtualChassisN != nil { - t := *r.virtualChassisN + if r.vminterfaceN != nil { + t := *r.vminterfaceN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "form", "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId + if r.vminterfaceId != nil { + t := *r.vminterfaceId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "form", "multi") } } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN + if r.vminterfaceIdN != nil { + t := *r.vminterfaceIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -52362,56 +66788,55 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedInventoryItemRequest *PatchedInventoryItemRequest +type ApiDcimMacAddressesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedMACAddressRequest *PatchedMACAddressRequest } -func (r ApiDcimInventoryItemsPartialUpdateRequest) PatchedInventoryItemRequest(patchedInventoryItemRequest PatchedInventoryItemRequest) ApiDcimInventoryItemsPartialUpdateRequest { - r.patchedInventoryItemRequest = &patchedInventoryItemRequest +func (r ApiDcimMacAddressesPartialUpdateRequest) PatchedMACAddressRequest(patchedMACAddressRequest PatchedMACAddressRequest) ApiDcimMacAddressesPartialUpdateRequest { + r.patchedMACAddressRequest = &patchedMACAddressRequest return r } -func (r ApiDcimInventoryItemsPartialUpdateRequest) Execute() (*InventoryItem, *http.Response, error) { - return r.ApiService.DcimInventoryItemsPartialUpdateExecute(r) +func (r ApiDcimMacAddressesPartialUpdateRequest) Execute() (*MACAddress, *http.Response, error) { + return r.ApiService.DcimMacAddressesPartialUpdateExecute(r) } /* -DcimInventoryItemsPartialUpdate Method for DcimInventoryItemsPartialUpdate +DcimMacAddressesPartialUpdate Method for DcimMacAddressesPartialUpdate -Patch a inventory item object. +Patch a MAC 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 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 MAC address. + @return ApiDcimMacAddressesPartialUpdateRequest */ -func (a *DcimAPIService) DcimInventoryItemsPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsPartialUpdateRequest { - return ApiDcimInventoryItemsPartialUpdateRequest{ +func (a *DcimAPIService) DcimMacAddressesPartialUpdate(ctx context.Context, id int32) ApiDcimMacAddressesPartialUpdateRequest { + return ApiDcimMacAddressesPartialUpdateRequest{ 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 MACAddress +func (a *DcimAPIService) DcimMacAddressesPartialUpdateExecute(r ApiDcimMacAddressesPartialUpdateRequest) (*MACAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MACAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-items/{id}/" + localVarPath := localBasePath + "/api/dcim/mac-addresses/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -52436,7 +66861,7 @@ func (a *DcimAPIService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInvento localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedInventoryItemRequest + localVarPostBody = r.patchedMACAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -52488,50 +66913,49 @@ func (a *DcimAPIService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInvento return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimMacAddressesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimInventoryItemsRetrieveRequest) Execute() (*InventoryItem, *http.Response, error) { - return r.ApiService.DcimInventoryItemsRetrieveExecute(r) +func (r ApiDcimMacAddressesRetrieveRequest) Execute() (*MACAddress, *http.Response, error) { + return r.ApiService.DcimMacAddressesRetrieveExecute(r) } /* -DcimInventoryItemsRetrieve Method for DcimInventoryItemsRetrieve +DcimMacAddressesRetrieve Method for DcimMacAddressesRetrieve -Get a inventory item object. +Get a MAC 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 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 MAC address. + @return ApiDcimMacAddressesRetrieveRequest */ -func (a *DcimAPIService) DcimInventoryItemsRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemsRetrieveRequest { - return ApiDcimInventoryItemsRetrieveRequest{ +func (a *DcimAPIService) DcimMacAddressesRetrieve(ctx context.Context, id int32) ApiDcimMacAddressesRetrieveRequest { + return ApiDcimMacAddressesRetrieveRequest{ 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 MACAddress +func (a *DcimAPIService) DcimMacAddressesRetrieveExecute(r ApiDcimMacAddressesRetrieveRequest) (*MACAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MACAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-items/{id}/" + localVarPath := localBasePath + "/api/dcim/mac-addresses/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -52606,63 +67030,62 @@ func (a *DcimAPIService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryIte return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimInventoryItemsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - inventoryItemRequest *InventoryItemRequest +type ApiDcimMacAddressesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + mACAddressRequest *MACAddressRequest } -func (r ApiDcimInventoryItemsUpdateRequest) InventoryItemRequest(inventoryItemRequest InventoryItemRequest) ApiDcimInventoryItemsUpdateRequest { - r.inventoryItemRequest = &inventoryItemRequest +func (r ApiDcimMacAddressesUpdateRequest) MACAddressRequest(mACAddressRequest MACAddressRequest) ApiDcimMacAddressesUpdateRequest { + r.mACAddressRequest = &mACAddressRequest return r } -func (r ApiDcimInventoryItemsUpdateRequest) Execute() (*InventoryItem, *http.Response, error) { - return r.ApiService.DcimInventoryItemsUpdateExecute(r) +func (r ApiDcimMacAddressesUpdateRequest) Execute() (*MACAddress, *http.Response, error) { + return r.ApiService.DcimMacAddressesUpdateExecute(r) } /* -DcimInventoryItemsUpdate Method for DcimInventoryItemsUpdate +DcimMacAddressesUpdate Method for DcimMacAddressesUpdate -Put a inventory item object. +Put a MAC 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 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 MAC address. + @return ApiDcimMacAddressesUpdateRequest */ -func (a *DcimAPIService) DcimInventoryItemsUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsUpdateRequest { - return ApiDcimInventoryItemsUpdateRequest{ +func (a *DcimAPIService) DcimMacAddressesUpdate(ctx context.Context, id int32) ApiDcimMacAddressesUpdateRequest { + return ApiDcimMacAddressesUpdateRequest{ 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 MACAddress +func (a *DcimAPIService) DcimMacAddressesUpdateExecute(r ApiDcimMacAddressesUpdateRequest) (*MACAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MACAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimMacAddressesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/inventory-items/{id}/" + localVarPath := localBasePath + "/api/dcim/mac-addresses/{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.inventoryItemRequest == nil { - return localVarReturnValue, nil, reportError("inventoryItemRequest is required and must be specified") + if r.mACAddressRequest == nil { + return localVarReturnValue, nil, reportError("mACAddressRequest is required and must be specified") } // to determine the Content-Type header @@ -52683,7 +67106,7 @@ func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItems localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.inventoryItemRequest + localVarPostBody = r.mACAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -52735,56 +67158,56 @@ func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItems return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimLocationsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - locationRequest *[]LocationRequest +type ApiDcimManufacturersBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + manufacturerRequest *[]ManufacturerRequest } -func (r ApiDcimLocationsBulkDestroyRequest) LocationRequest(locationRequest []LocationRequest) ApiDcimLocationsBulkDestroyRequest { - r.locationRequest = &locationRequest +func (r ApiDcimManufacturersBulkDestroyRequest) ManufacturerRequest(manufacturerRequest []ManufacturerRequest) ApiDcimManufacturersBulkDestroyRequest { + r.manufacturerRequest = &manufacturerRequest return r } -func (r ApiDcimLocationsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimLocationsBulkDestroyExecute(r) +func (r ApiDcimManufacturersBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimManufacturersBulkDestroyExecute(r) } /* -DcimLocationsBulkDestroy Method for DcimLocationsBulkDestroy +DcimManufacturersBulkDestroy Method for DcimManufacturersBulkDestroy -Delete a list of location objects. +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 ApiDcimLocationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersBulkDestroyRequest */ -func (a *DcimAPIService) DcimLocationsBulkDestroy(ctx context.Context) ApiDcimLocationsBulkDestroyRequest { - return ApiDcimLocationsBulkDestroyRequest{ +func (a *DcimAPIService) DcimManufacturersBulkDestroy(ctx context.Context) ApiDcimManufacturersBulkDestroyRequest { + return ApiDcimManufacturersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkDestroyRequest) (*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.DcimLocationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/" + localVarPath := localBasePath + "/api/dcim/manufacturers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.locationRequest == nil { - return nil, reportError("locationRequest is required and must be specified") + if r.manufacturerRequest == nil { + return nil, reportError("manufacturerRequest is required and must be specified") } // to determine the Content-Type header @@ -52805,7 +67228,7 @@ func (a *DcimAPIService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.locationRequest + localVarPostBody = r.manufacturerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -52848,59 +67271,58 @@ func (a *DcimAPIService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkD return localVarHTTPResponse, nil } -type ApiDcimLocationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - locationRequest *[]LocationRequest +type ApiDcimManufacturersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + manufacturerRequest *[]ManufacturerRequest } -func (r ApiDcimLocationsBulkPartialUpdateRequest) LocationRequest(locationRequest []LocationRequest) ApiDcimLocationsBulkPartialUpdateRequest { - r.locationRequest = &locationRequest +func (r ApiDcimManufacturersBulkPartialUpdateRequest) ManufacturerRequest(manufacturerRequest []ManufacturerRequest) ApiDcimManufacturersBulkPartialUpdateRequest { + r.manufacturerRequest = &manufacturerRequest return r } -func (r ApiDcimLocationsBulkPartialUpdateRequest) Execute() ([]Location, *http.Response, error) { - return r.ApiService.DcimLocationsBulkPartialUpdateExecute(r) +func (r ApiDcimManufacturersBulkPartialUpdateRequest) Execute() ([]Manufacturer, *http.Response, error) { + return r.ApiService.DcimManufacturersBulkPartialUpdateExecute(r) } /* -DcimLocationsBulkPartialUpdate Method for DcimLocationsBulkPartialUpdate +DcimManufacturersBulkPartialUpdate Method for DcimManufacturersBulkPartialUpdate -Patch a list of location objects. +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 ApiDcimLocationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimLocationsBulkPartialUpdate(ctx context.Context) ApiDcimLocationsBulkPartialUpdateRequest { - return ApiDcimLocationsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimManufacturersBulkPartialUpdate(ctx context.Context) ApiDcimManufacturersBulkPartialUpdateRequest { + return ApiDcimManufacturersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Location -func (a *DcimAPIService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocationsBulkPartialUpdateRequest) ([]Location, *http.Response, error) { +// @return []Manufacturer +func (a *DcimAPIService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManufacturersBulkPartialUpdateRequest) ([]Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Location + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/" + localVarPath := localBasePath + "/api/dcim/manufacturers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.locationRequest == nil { - return localVarReturnValue, nil, reportError("locationRequest is required and must be specified") + if r.manufacturerRequest == nil { + return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") } // to determine the Content-Type header @@ -52921,7 +67343,7 @@ func (a *DcimAPIService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocation localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.locationRequest + localVarPostBody = r.manufacturerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -52973,59 +67395,58 @@ func (a *DcimAPIService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocation return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimLocationsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - locationRequest *[]LocationRequest +type ApiDcimManufacturersBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + manufacturerRequest *[]ManufacturerRequest } -func (r ApiDcimLocationsBulkUpdateRequest) LocationRequest(locationRequest []LocationRequest) ApiDcimLocationsBulkUpdateRequest { - r.locationRequest = &locationRequest +func (r ApiDcimManufacturersBulkUpdateRequest) ManufacturerRequest(manufacturerRequest []ManufacturerRequest) ApiDcimManufacturersBulkUpdateRequest { + r.manufacturerRequest = &manufacturerRequest return r } -func (r ApiDcimLocationsBulkUpdateRequest) Execute() ([]Location, *http.Response, error) { - return r.ApiService.DcimLocationsBulkUpdateExecute(r) +func (r ApiDcimManufacturersBulkUpdateRequest) Execute() ([]Manufacturer, *http.Response, error) { + return r.ApiService.DcimManufacturersBulkUpdateExecute(r) } /* -DcimLocationsBulkUpdate Method for DcimLocationsBulkUpdate +DcimManufacturersBulkUpdate Method for DcimManufacturersBulkUpdate -Put a list of location objects. +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 ApiDcimLocationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersBulkUpdateRequest */ -func (a *DcimAPIService) DcimLocationsBulkUpdate(ctx context.Context) ApiDcimLocationsBulkUpdateRequest { - return ApiDcimLocationsBulkUpdateRequest{ +func (a *DcimAPIService) DcimManufacturersBulkUpdate(ctx context.Context) ApiDcimManufacturersBulkUpdateRequest { + return ApiDcimManufacturersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Location -func (a *DcimAPIService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUpdateRequest) ([]Location, *http.Response, error) { +// @return []Manufacturer +func (a *DcimAPIService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacturersBulkUpdateRequest) ([]Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Location + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/" + localVarPath := localBasePath + "/api/dcim/manufacturers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.locationRequest == nil { - return localVarReturnValue, nil, reportError("locationRequest is required and must be specified") + if r.manufacturerRequest == nil { + return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") } // to determine the Content-Type header @@ -53046,7 +67467,7 @@ func (a *DcimAPIService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.locationRequest + localVarPostBody = r.manufacturerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -53098,59 +67519,58 @@ func (a *DcimAPIService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimLocationsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableLocationRequest *WritableLocationRequest +type ApiDcimManufacturersCreateRequest struct { + ctx context.Context + ApiService DcimAPI + manufacturerRequest *ManufacturerRequest } -func (r ApiDcimLocationsCreateRequest) WritableLocationRequest(writableLocationRequest WritableLocationRequest) ApiDcimLocationsCreateRequest { - r.writableLocationRequest = &writableLocationRequest +func (r ApiDcimManufacturersCreateRequest) ManufacturerRequest(manufacturerRequest ManufacturerRequest) ApiDcimManufacturersCreateRequest { + r.manufacturerRequest = &manufacturerRequest return r } -func (r ApiDcimLocationsCreateRequest) Execute() (*Location, *http.Response, error) { - return r.ApiService.DcimLocationsCreateExecute(r) +func (r ApiDcimManufacturersCreateRequest) Execute() (*Manufacturer, *http.Response, error) { + return r.ApiService.DcimManufacturersCreateExecute(r) } /* -DcimLocationsCreate Method for DcimLocationsCreate +DcimManufacturersCreate Method for DcimManufacturersCreate -Post a list of location objects. +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 ApiDcimLocationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersCreateRequest */ -func (a *DcimAPIService) DcimLocationsCreate(ctx context.Context) ApiDcimLocationsCreateRequest { - return ApiDcimLocationsCreateRequest{ +func (a *DcimAPIService) DcimManufacturersCreate(ctx context.Context) ApiDcimManufacturersCreateRequest { + return ApiDcimManufacturersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Location -func (a *DcimAPIService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequest) (*Location, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCreateRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/" + localVarPath := localBasePath + "/api/dcim/manufacturers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableLocationRequest == nil { - return localVarReturnValue, nil, reportError("writableLocationRequest is required and must be specified") + if r.manufacturerRequest == nil { + return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") } // to determine the Content-Type header @@ -53171,7 +67591,7 @@ func (a *DcimAPIService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableLocationRequest + localVarPostBody = r.manufacturerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -53223,47 +67643,47 @@ func (a *DcimAPIService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimLocationsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimManufacturersDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimLocationsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimLocationsDestroyExecute(r) +func (r ApiDcimManufacturersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimManufacturersDestroyExecute(r) } /* -DcimLocationsDestroy Method for DcimLocationsDestroy +DcimManufacturersDestroy Method for DcimManufacturersDestroy -Delete a location object. +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 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 manufacturer. + @return ApiDcimManufacturersDestroyRequest */ -func (a *DcimAPIService) DcimLocationsDestroy(ctx context.Context, id int32) ApiDcimLocationsDestroyRequest { - return ApiDcimLocationsDestroyRequest{ +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) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRequest) (*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.DcimLocationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/{id}/" + localVarPath := localBasePath + "/api/dcim/manufacturers/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -53329,803 +67749,482 @@ func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe return localVarHTTPResponse, nil } -type ApiDcimLocationsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]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 - facility *[]string - facilityEmpty *bool - facilityIc *[]string - facilityIe *[]string - facilityIew *[]string - facilityIsw *[]string - facilityN *[]string - facilityNic *[]string - facilityNie *[]string - facilityNiew *[]string - facilityNisw *[]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 +type ApiDcimManufacturersListRequest struct { + ctx context.Context + ApiService DcimAPI + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + 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 - 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 -} - -// Location (slug) -func (r ApiDcimLocationsListRequest) Ancestor(ancestor []int32) ApiDcimLocationsListRequest { - r.ancestor = &ancestor - return r -} - -// Location (slug) -func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []int32) ApiDcimLocationsListRequest { - r.ancestorN = &ancestorN - return r -} - -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []int32) ApiDcimLocationsListRequest { - r.ancestorId = &ancestorId - return r -} - -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimLocationsListRequest { - r.ancestorIdN = &ancestorIdN - return r + 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 } // Contact -func (r ApiDcimLocationsListRequest) Contact(contact []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Contact(contact []int32) ApiDcimManufacturersListRequest { r.contact = &contact return r } // Contact -func (r ApiDcimLocationsListRequest) ContactN(contactN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) ContactN(contactN []int32) ApiDcimManufacturersListRequest { r.contactN = &contactN return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []string) ApiDcimManufacturersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []string) ApiDcimManufacturersListRequest { r.contactGroupN = &contactGroupN return r } // Contact Role -func (r ApiDcimLocationsListRequest) ContactRole(contactRole []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) ContactRole(contactRole []int32) ApiDcimManufacturersListRequest { r.contactRole = &contactRole return r } // Contact Role -func (r ApiDcimLocationsListRequest) ContactRoleN(contactRoleN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) ContactRoleN(contactRoleN []int32) ApiDcimManufacturersListRequest { r.contactRoleN = &contactRoleN return r } -func (r ApiDcimLocationsListRequest) Created(created []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Created(created []time.Time) ApiDcimManufacturersListRequest { r.created = &created return r } -func (r ApiDcimLocationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimManufacturersListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimLocationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) CreatedGt(createdGt []time.Time) ApiDcimManufacturersListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimLocationsListRequest) CreatedGte(createdGte []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) CreatedGte(createdGte []time.Time) ApiDcimManufacturersListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimLocationsListRequest) CreatedLt(createdLt []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) CreatedLt(createdLt []time.Time) ApiDcimManufacturersListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimLocationsListRequest) CreatedLte(createdLte []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) CreatedLte(createdLte []time.Time) ApiDcimManufacturersListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimLocationsListRequest) CreatedN(createdN []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) CreatedN(createdN []time.Time) ApiDcimManufacturersListRequest { r.createdN = &createdN return r } -func (r ApiDcimLocationsListRequest) CreatedByRequest(createdByRequest string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) CreatedByRequest(createdByRequest string) ApiDcimManufacturersListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimLocationsListRequest) Description(description []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Description(description []string) ApiDcimManufacturersListRequest { r.description = &description return r } -func (r ApiDcimLocationsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimManufacturersListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimLocationsListRequest) DescriptionIc(descriptionIc []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionIc(descriptionIc []string) ApiDcimManufacturersListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimLocationsListRequest) DescriptionIe(descriptionIe []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionIe(descriptionIe []string) ApiDcimManufacturersListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimLocationsListRequest) DescriptionIew(descriptionIew []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionIew(descriptionIew []string) ApiDcimManufacturersListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimLocationsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimManufacturersListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimLocationsListRequest) DescriptionN(descriptionN []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionN(descriptionN []string) ApiDcimManufacturersListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimLocationsListRequest) DescriptionNic(descriptionNic []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionNic(descriptionNic []string) ApiDcimManufacturersListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimLocationsListRequest) DescriptionNie(descriptionNie []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionNie(descriptionNie []string) ApiDcimManufacturersListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimLocationsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimManufacturersListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimLocationsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimLocationsListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -func (r ApiDcimLocationsListRequest) Facility(facility []string) ApiDcimLocationsListRequest { - r.facility = &facility - return r -} - -func (r ApiDcimLocationsListRequest) FacilityEmpty(facilityEmpty bool) ApiDcimLocationsListRequest { - r.facilityEmpty = &facilityEmpty - return r -} - -func (r ApiDcimLocationsListRequest) FacilityIc(facilityIc []string) ApiDcimLocationsListRequest { - r.facilityIc = &facilityIc - return r -} - -func (r ApiDcimLocationsListRequest) FacilityIe(facilityIe []string) ApiDcimLocationsListRequest { - r.facilityIe = &facilityIe - return r -} - -func (r ApiDcimLocationsListRequest) FacilityIew(facilityIew []string) ApiDcimLocationsListRequest { - r.facilityIew = &facilityIew - return r -} - -func (r ApiDcimLocationsListRequest) FacilityIsw(facilityIsw []string) ApiDcimLocationsListRequest { - r.facilityIsw = &facilityIsw - return r -} - -func (r ApiDcimLocationsListRequest) FacilityN(facilityN []string) ApiDcimLocationsListRequest { - r.facilityN = &facilityN - return r -} - -func (r ApiDcimLocationsListRequest) FacilityNic(facilityNic []string) ApiDcimLocationsListRequest { - r.facilityNic = &facilityNic - return r -} - -func (r ApiDcimLocationsListRequest) FacilityNie(facilityNie []string) ApiDcimLocationsListRequest { - r.facilityNie = &facilityNie - return r -} - -func (r ApiDcimLocationsListRequest) FacilityNiew(facilityNiew []string) ApiDcimLocationsListRequest { - r.facilityNiew = &facilityNiew - return r -} - -func (r ApiDcimLocationsListRequest) FacilityNisw(facilityNisw []string) ApiDcimLocationsListRequest { - r.facilityNisw = &facilityNisw +func (r ApiDcimManufacturersListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimManufacturersListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimLocationsListRequest) Id(id []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Id(id []int32) ApiDcimManufacturersListRequest { r.id = &id return r } -func (r ApiDcimLocationsListRequest) IdEmpty(idEmpty bool) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) IdEmpty(idEmpty bool) ApiDcimManufacturersListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimLocationsListRequest) IdGt(idGt []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) IdGt(idGt []int32) ApiDcimManufacturersListRequest { r.idGt = &idGt return r } -func (r ApiDcimLocationsListRequest) IdGte(idGte []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) IdGte(idGte []int32) ApiDcimManufacturersListRequest { r.idGte = &idGte return r } -func (r ApiDcimLocationsListRequest) IdLt(idLt []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) IdLt(idLt []int32) ApiDcimManufacturersListRequest { r.idLt = &idLt return r } -func (r ApiDcimLocationsListRequest) IdLte(idLte []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) IdLte(idLte []int32) ApiDcimManufacturersListRequest { r.idLte = &idLte return r } -func (r ApiDcimLocationsListRequest) IdN(idN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) IdN(idN []int32) ApiDcimManufacturersListRequest { r.idN = &idN return r } -func (r ApiDcimLocationsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimManufacturersListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimLocationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimManufacturersListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimLocationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimManufacturersListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimLocationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimManufacturersListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimLocationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimManufacturersListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimLocationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimManufacturersListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimLocationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimManufacturersListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimLocationsListRequest) Limit(limit int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Limit(limit int32) ApiDcimManufacturersListRequest { r.limit = &limit return r } -func (r ApiDcimLocationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimManufacturersListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimLocationsListRequest) Name(name []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Name(name []string) ApiDcimManufacturersListRequest { r.name = &name return r } -func (r ApiDcimLocationsListRequest) NameEmpty(nameEmpty bool) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameEmpty(nameEmpty bool) ApiDcimManufacturersListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimLocationsListRequest) NameIc(nameIc []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameIc(nameIc []string) ApiDcimManufacturersListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimLocationsListRequest) NameIe(nameIe []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameIe(nameIe []string) ApiDcimManufacturersListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimLocationsListRequest) NameIew(nameIew []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameIew(nameIew []string) ApiDcimManufacturersListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimLocationsListRequest) NameIsw(nameIsw []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameIsw(nameIsw []string) ApiDcimManufacturersListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimLocationsListRequest) NameN(nameN []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameN(nameN []string) ApiDcimManufacturersListRequest { r.nameN = &nameN return r } -func (r ApiDcimLocationsListRequest) NameNic(nameNic []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameNic(nameNic []string) ApiDcimManufacturersListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimLocationsListRequest) NameNie(nameNie []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameNie(nameNie []string) ApiDcimManufacturersListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimLocationsListRequest) NameNiew(nameNiew []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameNiew(nameNiew []string) ApiDcimManufacturersListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimLocationsListRequest) NameNisw(nameNisw []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) NameNisw(nameNisw []string) ApiDcimManufacturersListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiDcimLocationsListRequest) Offset(offset int32) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Offset(offset int32) ApiDcimManufacturersListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimLocationsListRequest) Ordering(ordering string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Ordering(ordering string) ApiDcimManufacturersListRequest { r.ordering = &ordering return r } -// Parent location (slug) -func (r ApiDcimLocationsListRequest) Parent(parent []string) ApiDcimLocationsListRequest { - r.parent = &parent - return r -} - -// Parent location (slug) -func (r ApiDcimLocationsListRequest) ParentN(parentN []string) ApiDcimLocationsListRequest { - r.parentN = &parentN - return r -} - -// Parent location (ID) -func (r ApiDcimLocationsListRequest) ParentId(parentId []*int32) ApiDcimLocationsListRequest { - r.parentId = &parentId - return r -} - -// Parent location (ID) -func (r ApiDcimLocationsListRequest) ParentIdN(parentIdN []*int32) ApiDcimLocationsListRequest { - r.parentIdN = &parentIdN - return r -} - // Search -func (r ApiDcimLocationsListRequest) Q(q string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Q(q string) ApiDcimManufacturersListRequest { r.q = &q return r } -// Region (slug) -func (r ApiDcimLocationsListRequest) Region(region []int32) ApiDcimLocationsListRequest { - r.region = ®ion - return r -} - -// Region (slug) -func (r ApiDcimLocationsListRequest) RegionN(regionN []int32) ApiDcimLocationsListRequest { - r.regionN = ®ionN - return r -} - -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionId(regionId []int32) ApiDcimLocationsListRequest { - r.regionId = ®ionId - return r -} - -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []int32) ApiDcimLocationsListRequest { - r.regionIdN = ®ionIdN - return r -} - -// Site (slug) -func (r ApiDcimLocationsListRequest) Site(site []string) ApiDcimLocationsListRequest { - r.site = &site - return r -} - -// Site (slug) -func (r ApiDcimLocationsListRequest) SiteN(siteN []string) ApiDcimLocationsListRequest { - r.siteN = &siteN - return r -} - -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []int32) ApiDcimLocationsListRequest { - r.siteGroup = &siteGroup - return r -} - -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimLocationsListRequest { - r.siteGroupN = &siteGroupN - return r -} - -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimLocationsListRequest { - r.siteGroupId = &siteGroupId - return r -} - -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimLocationsListRequest { - r.siteGroupIdN = &siteGroupIdN - return r -} - -// Site (ID) -func (r ApiDcimLocationsListRequest) SiteId(siteId []int32) ApiDcimLocationsListRequest { - r.siteId = &siteId - return r -} - -// Site (ID) -func (r ApiDcimLocationsListRequest) SiteIdN(siteIdN []int32) ApiDcimLocationsListRequest { - r.siteIdN = &siteIdN - return r -} - -func (r ApiDcimLocationsListRequest) Slug(slug []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Slug(slug []string) ApiDcimManufacturersListRequest { r.slug = &slug return r } -func (r ApiDcimLocationsListRequest) SlugEmpty(slugEmpty bool) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugEmpty(slugEmpty bool) ApiDcimManufacturersListRequest { r.slugEmpty = &slugEmpty return r } -func (r ApiDcimLocationsListRequest) SlugIc(slugIc []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugIc(slugIc []string) ApiDcimManufacturersListRequest { r.slugIc = &slugIc return r } -func (r ApiDcimLocationsListRequest) SlugIe(slugIe []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugIe(slugIe []string) ApiDcimManufacturersListRequest { r.slugIe = &slugIe return r } -func (r ApiDcimLocationsListRequest) SlugIew(slugIew []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugIew(slugIew []string) ApiDcimManufacturersListRequest { r.slugIew = &slugIew return r } -func (r ApiDcimLocationsListRequest) SlugIsw(slugIsw []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugIsw(slugIsw []string) ApiDcimManufacturersListRequest { r.slugIsw = &slugIsw return r } -func (r ApiDcimLocationsListRequest) SlugN(slugN []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugN(slugN []string) ApiDcimManufacturersListRequest { r.slugN = &slugN return r } -func (r ApiDcimLocationsListRequest) SlugNic(slugNic []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugNic(slugNic []string) ApiDcimManufacturersListRequest { r.slugNic = &slugNic return r } -func (r ApiDcimLocationsListRequest) SlugNie(slugNie []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugNie(slugNie []string) ApiDcimManufacturersListRequest { r.slugNie = &slugNie return r } -func (r ApiDcimLocationsListRequest) SlugNiew(slugNiew []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugNiew(slugNiew []string) ApiDcimManufacturersListRequest { r.slugNiew = &slugNiew return r } -func (r ApiDcimLocationsListRequest) SlugNisw(slugNisw []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) SlugNisw(slugNisw []string) ApiDcimManufacturersListRequest { r.slugNisw = &slugNisw return r } -func (r ApiDcimLocationsListRequest) Status(status []string) ApiDcimLocationsListRequest { - r.status = &status - return r -} - -func (r ApiDcimLocationsListRequest) StatusN(statusN []string) ApiDcimLocationsListRequest { - r.statusN = &statusN - return r -} - -func (r ApiDcimLocationsListRequest) Tag(tag []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) Tag(tag []string) ApiDcimManufacturersListRequest { r.tag = &tag return r } -func (r ApiDcimLocationsListRequest) TagN(tagN []string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) TagN(tagN []string) ApiDcimManufacturersListRequest { r.tagN = &tagN return r } -// Tenant (slug) -func (r ApiDcimLocationsListRequest) Tenant(tenant []string) ApiDcimLocationsListRequest { - r.tenant = &tenant - return r -} - -// Tenant (slug) -func (r ApiDcimLocationsListRequest) TenantN(tenantN []string) ApiDcimLocationsListRequest { - r.tenantN = &tenantN - return r -} - -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimLocationsListRequest { - r.tenantGroup = &tenantGroup - return r -} - -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimLocationsListRequest { - r.tenantGroupN = &tenantGroupN - return r -} - -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimLocationsListRequest { - r.tenantGroupId = &tenantGroupId - return r -} - -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimLocationsListRequest { - r.tenantGroupIdN = &tenantGroupIdN - return r -} - -// Tenant (ID) -func (r ApiDcimLocationsListRequest) TenantId(tenantId []*int32) ApiDcimLocationsListRequest { - r.tenantId = &tenantId - return r -} - -// Tenant (ID) -func (r ApiDcimLocationsListRequest) TenantIdN(tenantIdN []*int32) ApiDcimLocationsListRequest { - r.tenantIdN = &tenantIdN - return r -} - -func (r ApiDcimLocationsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimLocationsListRequest { +func (r ApiDcimManufacturersListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimManufacturersListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimLocationsListRequest) Execute() (*PaginatedLocationList, *http.Response, error) { - return r.ApiService.DcimLocationsListExecute(r) +func (r ApiDcimManufacturersListRequest) Execute() (*PaginatedManufacturerList, *http.Response, error) { + return r.ApiService.DcimManufacturersListExecute(r) } /* -DcimLocationsList Method for DcimLocationsList +DcimManufacturersList Method for DcimManufacturersList -Get a list of location objects. +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 ApiDcimLocationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersListRequest */ -func (a *DcimAPIService) DcimLocationsList(ctx context.Context) ApiDcimLocationsListRequest { - return ApiDcimLocationsListRequest{ +func (a *DcimAPIService) DcimManufacturersList(ctx context.Context) ApiDcimManufacturersListRequest { + return ApiDcimManufacturersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedLocationList -func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) (*PaginatedLocationList, *http.Response, error) { +// @return PaginatedManufacturerList +func (a *DcimAPIService) DcimManufacturersListExecute(r ApiDcimManufacturersListRequest) (*PaginatedManufacturerList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedLocationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedManufacturerList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/" + localVarPath := localBasePath + "/api/dcim/manufacturers/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.ancestor != nil { - t := *r.ancestor - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "multi") - } - } - if r.ancestorN != nil { - t := *r.ancestorN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "multi") - } - } - if r.ancestorId != nil { - t := *r.ancestorId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "multi") - } - } - if r.ancestorIdN != nil { - t := *r.ancestorIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -54133,10 +68232,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -54144,10 +68243,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -54155,10 +68254,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -54166,10 +68265,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -54177,10 +68276,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -54188,10 +68287,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -54199,10 +68298,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -54210,10 +68309,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -54221,10 +68320,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -54232,10 +68331,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -54243,10 +68342,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -54254,38 +68353,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -54293,10 +68392,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -54304,10 +68403,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -54315,10 +68414,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -54326,10 +68425,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -54337,10 +68436,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -54348,10 +68447,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -54359,10 +68458,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -54370,123 +68469,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.facility != nil { - t := *r.facility - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility", t, "multi") - } - } - if r.facilityEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__empty", r.facilityEmpty, "") - } - if r.facilityIc != nil { - t := *r.facilityIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", t, "multi") - } - } - if r.facilityIe != nil { - t := *r.facilityIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", t, "multi") - } - } - if r.facilityIew != nil { - t := *r.facilityIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", t, "multi") - } - } - if r.facilityIsw != nil { - t := *r.facilityIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", t, "multi") - } - } - if r.facilityN != nil { - t := *r.facilityN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", t, "multi") - } - } - if r.facilityNic != nil { - t := *r.facilityNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", t, "multi") - } - } - if r.facilityNie != nil { - t := *r.facilityNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", t, "multi") - } - } - if r.facilityNiew != nil { - t := *r.facilityNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", t, "multi") - } - } - if r.facilityNisw != nil { - t := *r.facilityNisw - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -54494,24 +68480,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -54519,10 +68505,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -54530,10 +68516,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -54541,10 +68527,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -54552,10 +68538,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -54563,10 +68549,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -54574,10 +68560,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -54585,10 +68571,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -54596,10 +68582,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -54607,10 +68593,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -54618,10 +68604,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -54629,41 +68615,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -54671,10 +68657,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -54682,10 +68668,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -54693,10 +68679,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -54704,10 +68690,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -54715,10 +68701,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -54726,10 +68712,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -54737,10 +68723,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -54748,220 +68734,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } 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.parentN != nil { - t := *r.parentN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") - } - } - if r.parentId != nil { - t := *r.parentId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") - } - } - if r.parentIdN != nil { - t := *r.parentIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } 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.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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -54969,10 +68779,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -54980,10 +68790,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -54991,10 +68801,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -55002,10 +68812,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -55013,10 +68823,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -55024,10 +68834,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -55035,10 +68845,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -55046,32 +68856,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") - } - } - if r.statusN != nil { - t := *r.statusN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -55079,10 +68867,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -55090,102 +68878,14 @@ 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).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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -55255,56 +68955,55 @@ func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimLocationsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableLocationRequest *PatchedWritableLocationRequest +type ApiDcimManufacturersPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedManufacturerRequest *PatchedManufacturerRequest } -func (r ApiDcimLocationsPartialUpdateRequest) PatchedWritableLocationRequest(patchedWritableLocationRequest PatchedWritableLocationRequest) ApiDcimLocationsPartialUpdateRequest { - r.patchedWritableLocationRequest = &patchedWritableLocationRequest +func (r ApiDcimManufacturersPartialUpdateRequest) PatchedManufacturerRequest(patchedManufacturerRequest PatchedManufacturerRequest) ApiDcimManufacturersPartialUpdateRequest { + r.patchedManufacturerRequest = &patchedManufacturerRequest return r } -func (r ApiDcimLocationsPartialUpdateRequest) Execute() (*Location, *http.Response, error) { - return r.ApiService.DcimLocationsPartialUpdateExecute(r) +func (r ApiDcimManufacturersPartialUpdateRequest) Execute() (*Manufacturer, *http.Response, error) { + return r.ApiService.DcimManufacturersPartialUpdateExecute(r) } /* -DcimLocationsPartialUpdate Method for DcimLocationsPartialUpdate +DcimManufacturersPartialUpdate Method for DcimManufacturersPartialUpdate -Patch a location object. +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 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 manufacturer. + @return ApiDcimManufacturersPartialUpdateRequest */ -func (a *DcimAPIService) DcimLocationsPartialUpdate(ctx context.Context, id int32) ApiDcimLocationsPartialUpdateRequest { - return ApiDcimLocationsPartialUpdateRequest{ +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 Location -func (a *DcimAPIService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPartialUpdateRequest) (*Location, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufacturersPartialUpdateRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/{id}/" + localVarPath := localBasePath + "/api/dcim/manufacturers/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -55329,7 +69028,7 @@ func (a *DcimAPIService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableLocationRequest + localVarPostBody = r.patchedManufacturerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -55381,50 +69080,49 @@ func (a *DcimAPIService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimLocationsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimManufacturersRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimLocationsRetrieveRequest) Execute() (*Location, *http.Response, error) { - return r.ApiService.DcimLocationsRetrieveExecute(r) +func (r ApiDcimManufacturersRetrieveRequest) Execute() (*Manufacturer, *http.Response, error) { + return r.ApiService.DcimManufacturersRetrieveExecute(r) } /* -DcimLocationsRetrieve Method for DcimLocationsRetrieve +DcimManufacturersRetrieve Method for DcimManufacturersRetrieve -Get a location object. +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 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 manufacturer. + @return ApiDcimManufacturersRetrieveRequest */ -func (a *DcimAPIService) DcimLocationsRetrieve(ctx context.Context, id int32) ApiDcimLocationsRetrieveRequest { - return ApiDcimLocationsRetrieveRequest{ +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 Location -func (a *DcimAPIService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieveRequest) (*Location, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturersRetrieveRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/{id}/" + localVarPath := localBasePath + "/api/dcim/manufacturers/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -55499,63 +69197,62 @@ func (a *DcimAPIService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimLocationsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableLocationRequest *WritableLocationRequest +type ApiDcimManufacturersUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + manufacturerRequest *ManufacturerRequest } -func (r ApiDcimLocationsUpdateRequest) WritableLocationRequest(writableLocationRequest WritableLocationRequest) ApiDcimLocationsUpdateRequest { - r.writableLocationRequest = &writableLocationRequest +func (r ApiDcimManufacturersUpdateRequest) ManufacturerRequest(manufacturerRequest ManufacturerRequest) ApiDcimManufacturersUpdateRequest { + r.manufacturerRequest = &manufacturerRequest return r } -func (r ApiDcimLocationsUpdateRequest) Execute() (*Location, *http.Response, error) { - return r.ApiService.DcimLocationsUpdateExecute(r) +func (r ApiDcimManufacturersUpdateRequest) Execute() (*Manufacturer, *http.Response, error) { + return r.ApiService.DcimManufacturersUpdateExecute(r) } /* -DcimLocationsUpdate Method for DcimLocationsUpdate +DcimManufacturersUpdate Method for DcimManufacturersUpdate -Put a location object. +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 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 manufacturer. + @return ApiDcimManufacturersUpdateRequest */ -func (a *DcimAPIService) DcimLocationsUpdate(ctx context.Context, id int32) ApiDcimLocationsUpdateRequest { - return ApiDcimLocationsUpdateRequest{ +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 Location -func (a *DcimAPIService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequest) (*Location, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUpdateRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/locations/{id}/" + localVarPath := localBasePath + "/api/dcim/manufacturers/{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.writableLocationRequest == nil { - return localVarReturnValue, nil, reportError("writableLocationRequest is required and must be specified") + if r.manufacturerRequest == nil { + return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") } // to determine the Content-Type header @@ -55576,7 +69273,7 @@ func (a *DcimAPIService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableLocationRequest + localVarPostBody = r.manufacturerRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -55628,56 +69325,56 @@ func (a *DcimAPIService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimManufacturersBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - manufacturerRequest *[]ManufacturerRequest +type ApiDcimModuleBayTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayTemplateRequest *[]ModuleBayTemplateRequest } -func (r ApiDcimManufacturersBulkDestroyRequest) ManufacturerRequest(manufacturerRequest []ManufacturerRequest) ApiDcimManufacturersBulkDestroyRequest { - r.manufacturerRequest = &manufacturerRequest +func (r ApiDcimModuleBayTemplatesBulkDestroyRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest []ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesBulkDestroyRequest { + r.moduleBayTemplateRequest = &moduleBayTemplateRequest return r } -func (r ApiDcimManufacturersBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimManufacturersBulkDestroyExecute(r) +func (r ApiDcimModuleBayTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesBulkDestroyExecute(r) } /* -DcimManufacturersBulkDestroy Method for DcimManufacturersBulkDestroy +DcimModuleBayTemplatesBulkDestroy Method for DcimModuleBayTemplatesBulkDestroy -Delete a list of manufacturer objects. +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 ApiDcimManufacturersBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesBulkDestroyRequest */ -func (a *DcimAPIService) DcimManufacturersBulkDestroy(ctx context.Context) ApiDcimManufacturersBulkDestroyRequest { - return ApiDcimManufacturersBulkDestroyRequest{ +func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroy(ctx context.Context) ApiDcimModuleBayTemplatesBulkDestroyRequest { + return ApiDcimModuleBayTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufacturersBulkDestroyRequest) (*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.DcimManufacturersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.manufacturerRequest == nil { - return nil, reportError("manufacturerRequest is required and must be specified") + if r.moduleBayTemplateRequest == nil { + return nil, reportError("moduleBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -55698,7 +69395,7 @@ func (a *DcimAPIService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufactur localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.manufacturerRequest + localVarPostBody = r.moduleBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -55741,59 +69438,58 @@ func (a *DcimAPIService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufactur return localVarHTTPResponse, nil } -type ApiDcimManufacturersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - manufacturerRequest *[]ManufacturerRequest +type ApiDcimModuleBayTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayTemplateRequest *[]ModuleBayTemplateRequest } -func (r ApiDcimManufacturersBulkPartialUpdateRequest) ManufacturerRequest(manufacturerRequest []ManufacturerRequest) ApiDcimManufacturersBulkPartialUpdateRequest { - r.manufacturerRequest = &manufacturerRequest +func (r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest []ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest { + r.moduleBayTemplateRequest = &moduleBayTemplateRequest return r } -func (r ApiDcimManufacturersBulkPartialUpdateRequest) Execute() ([]Manufacturer, *http.Response, error) { - return r.ApiService.DcimManufacturersBulkPartialUpdateExecute(r) +func (r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) Execute() ([]ModuleBayTemplate, *http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesBulkPartialUpdateExecute(r) } /* -DcimManufacturersBulkPartialUpdate Method for DcimManufacturersBulkPartialUpdate +DcimModuleBayTemplatesBulkPartialUpdate Method for DcimModuleBayTemplatesBulkPartialUpdate -Patch a list of manufacturer objects. +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 ApiDcimManufacturersBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimManufacturersBulkPartialUpdate(ctx context.Context) ApiDcimManufacturersBulkPartialUpdateRequest { - return ApiDcimManufacturersBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest { + return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Manufacturer -func (a *DcimAPIService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManufacturersBulkPartialUpdateRequest) ([]Manufacturer, *http.Response, error) { +// @return []ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Manufacturer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.manufacturerRequest == nil { - return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") + if r.moduleBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -55814,7 +69510,7 @@ func (a *DcimAPIService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.manufacturerRequest + localVarPostBody = r.moduleBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -55866,59 +69562,58 @@ func (a *DcimAPIService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimManufacturersBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - manufacturerRequest *[]ManufacturerRequest +type ApiDcimModuleBayTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayTemplateRequest *[]ModuleBayTemplateRequest } -func (r ApiDcimManufacturersBulkUpdateRequest) ManufacturerRequest(manufacturerRequest []ManufacturerRequest) ApiDcimManufacturersBulkUpdateRequest { - r.manufacturerRequest = &manufacturerRequest +func (r ApiDcimModuleBayTemplatesBulkUpdateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest []ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesBulkUpdateRequest { + r.moduleBayTemplateRequest = &moduleBayTemplateRequest return r } -func (r ApiDcimManufacturersBulkUpdateRequest) Execute() ([]Manufacturer, *http.Response, error) { - return r.ApiService.DcimManufacturersBulkUpdateExecute(r) +func (r ApiDcimModuleBayTemplatesBulkUpdateRequest) Execute() ([]ModuleBayTemplate, *http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesBulkUpdateExecute(r) } /* -DcimManufacturersBulkUpdate Method for DcimManufacturersBulkUpdate +DcimModuleBayTemplatesBulkUpdate Method for DcimModuleBayTemplatesBulkUpdate -Put a list of manufacturer objects. +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 ApiDcimManufacturersBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesBulkUpdateRequest */ -func (a *DcimAPIService) DcimManufacturersBulkUpdate(ctx context.Context) ApiDcimManufacturersBulkUpdateRequest { - return ApiDcimManufacturersBulkUpdateRequest{ +func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkUpdateRequest { + return ApiDcimModuleBayTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Manufacturer -func (a *DcimAPIService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacturersBulkUpdateRequest) ([]Manufacturer, *http.Response, error) { +// @return []ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModuleBayTemplatesBulkUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Manufacturer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.manufacturerRequest == nil { - return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") + if r.moduleBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -55939,7 +69634,7 @@ func (a *DcimAPIService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacture localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.manufacturerRequest + localVarPostBody = r.moduleBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -55991,59 +69686,58 @@ func (a *DcimAPIService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacture return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimManufacturersCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - manufacturerRequest *ManufacturerRequest +type ApiDcimModuleBayTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayTemplateRequest *ModuleBayTemplateRequest } -func (r ApiDcimManufacturersCreateRequest) ManufacturerRequest(manufacturerRequest ManufacturerRequest) ApiDcimManufacturersCreateRequest { - r.manufacturerRequest = &manufacturerRequest +func (r ApiDcimModuleBayTemplatesCreateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesCreateRequest { + r.moduleBayTemplateRequest = &moduleBayTemplateRequest return r } -func (r ApiDcimManufacturersCreateRequest) Execute() (*Manufacturer, *http.Response, error) { - return r.ApiService.DcimManufacturersCreateExecute(r) +func (r ApiDcimModuleBayTemplatesCreateRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesCreateExecute(r) } /* -DcimManufacturersCreate Method for DcimManufacturersCreate +DcimModuleBayTemplatesCreate Method for DcimModuleBayTemplatesCreate -Post a list of manufacturer objects. +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 ApiDcimManufacturersCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesCreateRequest */ -func (a *DcimAPIService) DcimManufacturersCreate(ctx context.Context) ApiDcimManufacturersCreateRequest { - return ApiDcimManufacturersCreateRequest{ +func (a *DcimAPIService) DcimModuleBayTemplatesCreate(ctx context.Context) ApiDcimModuleBayTemplatesCreateRequest { + return ApiDcimModuleBayTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Manufacturer -func (a *DcimAPIService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCreateRequest) (*Manufacturer, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayTemplatesCreateRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.manufacturerRequest == nil { - return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") + if r.moduleBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -56064,7 +69758,7 @@ func (a *DcimAPIService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.manufacturerRequest + localVarPostBody = r.moduleBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -56116,47 +69810,47 @@ func (a *DcimAPIService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimManufacturersDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModuleBayTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimManufacturersDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimManufacturersDestroyExecute(r) +func (r ApiDcimModuleBayTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesDestroyExecute(r) } /* -DcimManufacturersDestroy Method for DcimManufacturersDestroy +DcimModuleBayTemplatesDestroy Method for DcimModuleBayTemplatesDestroy -Delete a manufacturer object. +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 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 module bay template. + @return ApiDcimModuleBayTemplatesDestroyRequest */ -func (a *DcimAPIService) DcimManufacturersDestroy(ctx context.Context, id int32) ApiDcimManufacturersDestroyRequest { - return ApiDcimManufacturersDestroyRequest{ +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) DcimManufacturersDestroyExecute(r ApiDcimManufacturersDestroyRequest) (*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.DcimManufacturersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -56222,551 +69916,524 @@ func (a *DcimAPIService) DcimManufacturersDestroyExecute(r ApiDcimManufacturersD return localVarHTTPResponse, nil } -type ApiDcimManufacturersListRequest struct { - 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 - 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 +type ApiDcimModuleBayTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 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 -} - -// Contact -func (r ApiDcimManufacturersListRequest) Contact(contact []int32) ApiDcimManufacturersListRequest { - r.contact = &contact - return r -} - -// Contact -func (r ApiDcimManufacturersListRequest) ContactN(contactN []int32) ApiDcimManufacturersListRequest { - r.contactN = &contactN - return r -} - -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []int32) ApiDcimManufacturersListRequest { - r.contactGroup = &contactGroup - return r -} - -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []int32) ApiDcimManufacturersListRequest { - r.contactGroupN = &contactGroupN - return r -} - -// Contact Role -func (r ApiDcimManufacturersListRequest) ContactRole(contactRole []int32) ApiDcimManufacturersListRequest { - r.contactRole = &contactRole - return r -} - -// Contact Role -func (r ApiDcimManufacturersListRequest) ContactRoleN(contactRoleN []int32) ApiDcimManufacturersListRequest { - r.contactRoleN = &contactRoleN - return r + 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 + position *[]string + positionEmpty *bool + positionIc *[]string + positionIe *[]string + positionIew *[]string + positionIsw *[]string + positionN *[]string + positionNic *[]string + positionNie *[]string + positionNiew *[]string + positionNisw *[]string + q *string + updatedByRequest *string } -func (r ApiDcimManufacturersListRequest) Created(created []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) Created(created []time.Time) ApiDcimModuleBayTemplatesListRequest { r.created = &created return r } -func (r ApiDcimManufacturersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleBayTemplatesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimManufacturersListRequest) CreatedGt(createdGt []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleBayTemplatesListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimManufacturersListRequest) CreatedGte(createdGte []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimModuleBayTemplatesListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimManufacturersListRequest) CreatedLt(createdLt []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimModuleBayTemplatesListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimManufacturersListRequest) CreatedLte(createdLte []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimModuleBayTemplatesListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimManufacturersListRequest) CreatedN(createdN []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimModuleBayTemplatesListRequest { r.createdN = &createdN return r } -func (r ApiDcimManufacturersListRequest) CreatedByRequest(createdByRequest string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimModuleBayTemplatesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimManufacturersListRequest) Description(description []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) Description(description []string) ApiDcimModuleBayTemplatesListRequest { r.description = &description return r } -func (r ApiDcimManufacturersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleBayTemplatesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimManufacturersListRequest) DescriptionIc(descriptionIc []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimManufacturersListRequest) DescriptionIe(descriptionIe []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimManufacturersListRequest) DescriptionIew(descriptionIew []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimManufacturersListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimManufacturersListRequest) DescriptionN(descriptionN []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimManufacturersListRequest) DescriptionNic(descriptionNic []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimManufacturersListRequest) DescriptionNie(descriptionNie []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimManufacturersListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimManufacturersListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleBayTemplatesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimManufacturersListRequest) Id(id []int32) ApiDcimManufacturersListRequest { +// Device type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { + r.deviceTypeId = &deviceTypeId + return r +} + +// Device type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) Id(id []int32) ApiDcimModuleBayTemplatesListRequest { r.id = &id return r } -func (r ApiDcimManufacturersListRequest) IdEmpty(idEmpty bool) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimModuleBayTemplatesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimManufacturersListRequest) IdGt(idGt []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) IdGt(idGt []int32) ApiDcimModuleBayTemplatesListRequest { r.idGt = &idGt return r } -func (r ApiDcimManufacturersListRequest) IdGte(idGte []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) IdGte(idGte []int32) ApiDcimModuleBayTemplatesListRequest { r.idGte = &idGte return r } -func (r ApiDcimManufacturersListRequest) IdLt(idLt []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) IdLt(idLt []int32) ApiDcimModuleBayTemplatesListRequest { r.idLt = &idLt return r } -func (r ApiDcimManufacturersListRequest) IdLte(idLte []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) IdLte(idLte []int32) ApiDcimModuleBayTemplatesListRequest { r.idLte = &idLte return r } -func (r ApiDcimManufacturersListRequest) IdN(idN []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) IdN(idN []int32) ApiDcimModuleBayTemplatesListRequest { r.idN = &idN return r } -func (r ApiDcimManufacturersListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) Label(label []string) ApiDcimModuleBayTemplatesListRequest { + r.label = &label + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimModuleBayTemplatesListRequest { + r.labelEmpty = &labelEmpty + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelIc(labelIc []string) ApiDcimModuleBayTemplatesListRequest { + r.labelIc = &labelIc + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelIe(labelIe []string) ApiDcimModuleBayTemplatesListRequest { + r.labelIe = &labelIe + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelIew(labelIew []string) ApiDcimModuleBayTemplatesListRequest { + r.labelIew = &labelIew + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimModuleBayTemplatesListRequest { + r.labelIsw = &labelIsw + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelN(labelN []string) ApiDcimModuleBayTemplatesListRequest { + r.labelN = &labelN + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelNic(labelNic []string) ApiDcimModuleBayTemplatesListRequest { + r.labelNic = &labelNic + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelNie(labelNie []string) ApiDcimModuleBayTemplatesListRequest { + r.labelNie = &labelNie + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimModuleBayTemplatesListRequest { + r.labelNiew = &labelNiew + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimModuleBayTemplatesListRequest { + r.labelNisw = &labelNisw + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimManufacturersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimManufacturersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimManufacturersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimManufacturersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimManufacturersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimManufacturersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimManufacturersListRequest) Limit(limit int32) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) Limit(limit int32) ApiDcimModuleBayTemplatesListRequest { r.limit = &limit return r } -func (r ApiDcimManufacturersListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleBayTemplatesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimManufacturersListRequest) Name(name []string) ApiDcimManufacturersListRequest { +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeId = &moduleTypeId + return r +} + +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN + return r +} + +func (r ApiDcimModuleBayTemplatesListRequest) Name(name []string) ApiDcimModuleBayTemplatesListRequest { r.name = &name return r } -func (r ApiDcimManufacturersListRequest) NameEmpty(nameEmpty bool) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimModuleBayTemplatesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimManufacturersListRequest) NameIc(nameIc []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameIc(nameIc []string) ApiDcimModuleBayTemplatesListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimManufacturersListRequest) NameIe(nameIe []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameIe(nameIe []string) ApiDcimModuleBayTemplatesListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimManufacturersListRequest) NameIew(nameIew []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameIew(nameIew []string) ApiDcimModuleBayTemplatesListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimManufacturersListRequest) NameIsw(nameIsw []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimModuleBayTemplatesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimManufacturersListRequest) NameN(nameN []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameN(nameN []string) ApiDcimModuleBayTemplatesListRequest { r.nameN = &nameN return r } -func (r ApiDcimManufacturersListRequest) NameNic(nameNic []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameNic(nameNic []string) ApiDcimModuleBayTemplatesListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimManufacturersListRequest) NameNie(nameNie []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameNie(nameNie []string) ApiDcimModuleBayTemplatesListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimManufacturersListRequest) NameNiew(nameNiew []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimModuleBayTemplatesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimManufacturersListRequest) NameNisw(nameNisw []string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimModuleBayTemplatesListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiDcimManufacturersListRequest) Offset(offset int32) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) Offset(offset int32) ApiDcimModuleBayTemplatesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimManufacturersListRequest) Ordering(ordering string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) Ordering(ordering string) ApiDcimModuleBayTemplatesListRequest { r.ordering = &ordering return r } -// Search -func (r ApiDcimManufacturersListRequest) Q(q string) ApiDcimManufacturersListRequest { - r.q = &q - return r -} - -func (r ApiDcimManufacturersListRequest) Slug(slug []string) ApiDcimManufacturersListRequest { - r.slug = &slug - return r -} - -func (r ApiDcimManufacturersListRequest) SlugEmpty(slugEmpty bool) ApiDcimManufacturersListRequest { - r.slugEmpty = &slugEmpty +func (r ApiDcimModuleBayTemplatesListRequest) Position(position []string) ApiDcimModuleBayTemplatesListRequest { + r.position = &position return r } -func (r ApiDcimManufacturersListRequest) SlugIc(slugIc []string) ApiDcimManufacturersListRequest { - r.slugIc = &slugIc +func (r ApiDcimModuleBayTemplatesListRequest) PositionEmpty(positionEmpty bool) ApiDcimModuleBayTemplatesListRequest { + r.positionEmpty = &positionEmpty return r } -func (r ApiDcimManufacturersListRequest) SlugIe(slugIe []string) ApiDcimManufacturersListRequest { - r.slugIe = &slugIe +func (r ApiDcimModuleBayTemplatesListRequest) PositionIc(positionIc []string) ApiDcimModuleBayTemplatesListRequest { + r.positionIc = &positionIc return r } -func (r ApiDcimManufacturersListRequest) SlugIew(slugIew []string) ApiDcimManufacturersListRequest { - r.slugIew = &slugIew +func (r ApiDcimModuleBayTemplatesListRequest) PositionIe(positionIe []string) ApiDcimModuleBayTemplatesListRequest { + r.positionIe = &positionIe return r } -func (r ApiDcimManufacturersListRequest) SlugIsw(slugIsw []string) ApiDcimManufacturersListRequest { - r.slugIsw = &slugIsw +func (r ApiDcimModuleBayTemplatesListRequest) PositionIew(positionIew []string) ApiDcimModuleBayTemplatesListRequest { + r.positionIew = &positionIew return r } -func (r ApiDcimManufacturersListRequest) SlugN(slugN []string) ApiDcimManufacturersListRequest { - r.slugN = &slugN +func (r ApiDcimModuleBayTemplatesListRequest) PositionIsw(positionIsw []string) ApiDcimModuleBayTemplatesListRequest { + r.positionIsw = &positionIsw return r } -func (r ApiDcimManufacturersListRequest) SlugNic(slugNic []string) ApiDcimManufacturersListRequest { - r.slugNic = &slugNic +func (r ApiDcimModuleBayTemplatesListRequest) PositionN(positionN []string) ApiDcimModuleBayTemplatesListRequest { + r.positionN = &positionN return r } -func (r ApiDcimManufacturersListRequest) SlugNie(slugNie []string) ApiDcimManufacturersListRequest { - r.slugNie = &slugNie +func (r ApiDcimModuleBayTemplatesListRequest) PositionNic(positionNic []string) ApiDcimModuleBayTemplatesListRequest { + r.positionNic = &positionNic return r } -func (r ApiDcimManufacturersListRequest) SlugNiew(slugNiew []string) ApiDcimManufacturersListRequest { - r.slugNiew = &slugNiew +func (r ApiDcimModuleBayTemplatesListRequest) PositionNie(positionNie []string) ApiDcimModuleBayTemplatesListRequest { + r.positionNie = &positionNie return r } -func (r ApiDcimManufacturersListRequest) SlugNisw(slugNisw []string) ApiDcimManufacturersListRequest { - r.slugNisw = &slugNisw +func (r ApiDcimModuleBayTemplatesListRequest) PositionNiew(positionNiew []string) ApiDcimModuleBayTemplatesListRequest { + r.positionNiew = &positionNiew return r } -func (r ApiDcimManufacturersListRequest) Tag(tag []string) ApiDcimManufacturersListRequest { - r.tag = &tag +func (r ApiDcimModuleBayTemplatesListRequest) PositionNisw(positionNisw []string) ApiDcimModuleBayTemplatesListRequest { + r.positionNisw = &positionNisw return r } -func (r ApiDcimManufacturersListRequest) TagN(tagN []string) ApiDcimManufacturersListRequest { - r.tagN = &tagN +// Search +func (r ApiDcimModuleBayTemplatesListRequest) Q(q string) ApiDcimModuleBayTemplatesListRequest { + r.q = &q return r } -func (r ApiDcimManufacturersListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimManufacturersListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleBayTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimManufacturersListRequest) Execute() (*PaginatedManufacturerList, *http.Response, error) { - return r.ApiService.DcimManufacturersListExecute(r) +func (r ApiDcimModuleBayTemplatesListRequest) Execute() (*PaginatedModuleBayTemplateList, *http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesListExecute(r) } /* -DcimManufacturersList Method for DcimManufacturersList +DcimModuleBayTemplatesList Method for DcimModuleBayTemplatesList -Get a list of manufacturer objects. +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 ApiDcimManufacturersListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesListRequest */ -func (a *DcimAPIService) DcimManufacturersList(ctx context.Context) ApiDcimManufacturersListRequest { - return ApiDcimManufacturersListRequest{ +func (a *DcimAPIService) DcimModuleBayTemplatesList(ctx context.Context) ApiDcimModuleBayTemplatesListRequest { + return ApiDcimModuleBayTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedManufacturerList -func (a *DcimAPIService) DcimManufacturersListExecute(r ApiDcimManufacturersListRequest) (*PaginatedManufacturerList, *http.Response, error) { +// @return PaginatedModuleBayTemplateList +func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTemplatesListRequest) (*PaginatedModuleBayTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedManufacturerList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleBayTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") - } - } - if r.contactN != nil { - t := *r.contactN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") - } - } - if r.contactGroup != nil { - t := *r.contactGroup - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") - } - } - if r.contactGroupN != nil { - t := *r.contactGroupN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") - } - } - if r.contactRole != nil { - t := *r.contactRole - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") - } - } - if r.contactRoleN != nil { - t := *r.contactRoleN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -56774,10 +70441,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -56785,10 +70452,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -56796,10 +70463,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -56807,10 +70474,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -56818,10 +70485,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -56829,38 +70496,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -56868,10 +70535,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -56879,10 +70546,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -56890,10 +70557,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -56901,10 +70568,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -56912,10 +70579,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -56923,10 +70590,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -56934,10 +70601,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -56945,10 +70612,32 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -56956,24 +70645,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -56981,10 +70670,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -56992,10 +70681,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -57003,10 +70692,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -57014,10 +70703,123 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.label != nil { + t := *r.label + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") + } + } + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") + } + } + if r.labelIe != nil { + t := *r.labelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") + } + } + if r.labelIew != nil { + t := *r.labelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") + } + } + if r.labelIsw != nil { + t := *r.labelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") + } + } + if r.labelN != nil { + t := *r.labelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") + } + } + if r.labelNic != nil { + t := *r.labelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") + } + } + if r.labelNie != nil { + t := *r.labelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") + } + } + if r.labelNiew != nil { + t := *r.labelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") + } + } + if r.labelNisw != nil { + t := *r.labelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -57025,10 +70827,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -57036,10 +70838,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -57047,10 +70849,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -57058,10 +70860,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -57069,10 +70871,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -57080,10 +70882,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -57091,41 +70893,63 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "module_type_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") + } + } + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") + } } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -57133,10 +70957,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -57144,10 +70968,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -57155,10 +70979,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -57166,10 +70990,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -57177,10 +71001,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -57188,10 +71012,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -57199,10 +71023,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -57210,158 +71034,136 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.slug != nil { - t := *r.slug + if r.position != nil { + t := *r.position if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") - } + if r.positionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "form", "") } - if r.slugIe != nil { - t := *r.slugIe + if r.positionIc != nil { + t := *r.positionIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + if r.positionIe != nil { + t := *r.positionIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + if r.positionIew != nil { + t := *r.positionIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + if r.positionIsw != nil { + t := *r.positionIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + if r.positionN != nil { + t := *r.positionN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + if r.positionNic != nil { + t := *r.positionNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.positionNie != nil { + t := *r.positionNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.positionNiew != nil { + t := *r.positionNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.positionNisw != nil { + t := *r.positionNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", t, "form", "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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -57431,56 +71233,55 @@ func (a *DcimAPIService) DcimManufacturersListExecute(r ApiDcimManufacturersList return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimManufacturersPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedManufacturerRequest *PatchedManufacturerRequest +type ApiDcimModuleBayTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedModuleBayTemplateRequest *PatchedModuleBayTemplateRequest } -func (r ApiDcimManufacturersPartialUpdateRequest) PatchedManufacturerRequest(patchedManufacturerRequest PatchedManufacturerRequest) ApiDcimManufacturersPartialUpdateRequest { - r.patchedManufacturerRequest = &patchedManufacturerRequest +func (r ApiDcimModuleBayTemplatesPartialUpdateRequest) PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest PatchedModuleBayTemplateRequest) ApiDcimModuleBayTemplatesPartialUpdateRequest { + r.patchedModuleBayTemplateRequest = &patchedModuleBayTemplateRequest return r } -func (r ApiDcimManufacturersPartialUpdateRequest) Execute() (*Manufacturer, *http.Response, error) { - return r.ApiService.DcimManufacturersPartialUpdateExecute(r) +func (r ApiDcimModuleBayTemplatesPartialUpdateRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesPartialUpdateExecute(r) } /* -DcimManufacturersPartialUpdate Method for DcimManufacturersPartialUpdate +DcimModuleBayTemplatesPartialUpdate Method for DcimModuleBayTemplatesPartialUpdate -Patch a manufacturer object. +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 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 module bay template. + @return ApiDcimModuleBayTemplatesPartialUpdateRequest */ -func (a *DcimAPIService) DcimManufacturersPartialUpdate(ctx context.Context, id int32) ApiDcimManufacturersPartialUpdateRequest { - return ApiDcimManufacturersPartialUpdateRequest{ +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 Manufacturer -func (a *DcimAPIService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufacturersPartialUpdateRequest) (*Manufacturer, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimModuleBayTemplatesPartialUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -57505,7 +71306,7 @@ func (a *DcimAPIService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufact localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedManufacturerRequest + localVarPostBody = r.patchedModuleBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -57557,50 +71358,49 @@ func (a *DcimAPIService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufact return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimManufacturersRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModuleBayTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimManufacturersRetrieveRequest) Execute() (*Manufacturer, *http.Response, error) { - return r.ApiService.DcimManufacturersRetrieveExecute(r) +func (r ApiDcimModuleBayTemplatesRetrieveRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesRetrieveExecute(r) } /* -DcimManufacturersRetrieve Method for DcimManufacturersRetrieve +DcimModuleBayTemplatesRetrieve Method for DcimModuleBayTemplatesRetrieve -Get a manufacturer object. +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 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 module bay template. + @return ApiDcimModuleBayTemplatesRetrieveRequest */ -func (a *DcimAPIService) DcimManufacturersRetrieve(ctx context.Context, id int32) ApiDcimManufacturersRetrieveRequest { - return ApiDcimManufacturersRetrieveRequest{ +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 Manufacturer -func (a *DcimAPIService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturersRetrieveRequest) (*Manufacturer, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBayTemplatesRetrieveRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bay-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -57675,63 +71475,62 @@ func (a *DcimAPIService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturers return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimManufacturersUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - manufacturerRequest *ManufacturerRequest +type ApiDcimModuleBayTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + moduleBayTemplateRequest *ModuleBayTemplateRequest } -func (r ApiDcimManufacturersUpdateRequest) ManufacturerRequest(manufacturerRequest ManufacturerRequest) ApiDcimManufacturersUpdateRequest { - r.manufacturerRequest = &manufacturerRequest +func (r ApiDcimModuleBayTemplatesUpdateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesUpdateRequest { + r.moduleBayTemplateRequest = &moduleBayTemplateRequest return r } -func (r ApiDcimManufacturersUpdateRequest) Execute() (*Manufacturer, *http.Response, error) { - return r.ApiService.DcimManufacturersUpdateExecute(r) +func (r ApiDcimModuleBayTemplatesUpdateRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { + return r.ApiService.DcimModuleBayTemplatesUpdateExecute(r) } /* -DcimManufacturersUpdate Method for DcimManufacturersUpdate +DcimModuleBayTemplatesUpdate Method for DcimModuleBayTemplatesUpdate -Put a manufacturer object. +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 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 module bay template. + @return ApiDcimModuleBayTemplatesUpdateRequest */ -func (a *DcimAPIService) DcimManufacturersUpdate(ctx context.Context, id int32) ApiDcimManufacturersUpdateRequest { - return ApiDcimManufacturersUpdateRequest{ +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 Manufacturer -func (a *DcimAPIService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUpdateRequest) (*Manufacturer, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayTemplatesUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/manufacturers/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bay-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.manufacturerRequest == nil { - return localVarReturnValue, nil, reportError("manufacturerRequest is required and must be specified") + if r.moduleBayTemplateRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -57752,7 +71551,7 @@ func (a *DcimAPIService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.manufacturerRequest + localVarPostBody = r.moduleBayTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -57804,56 +71603,56 @@ func (a *DcimAPIService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayTemplateRequest *[]ModuleBayTemplateRequest +type ApiDcimModuleBaysBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayRequest *[]ModuleBayRequest } -func (r ApiDcimModuleBayTemplatesBulkDestroyRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest []ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesBulkDestroyRequest { - r.moduleBayTemplateRequest = &moduleBayTemplateRequest +func (r ApiDcimModuleBaysBulkDestroyRequest) ModuleBayRequest(moduleBayRequest []ModuleBayRequest) ApiDcimModuleBaysBulkDestroyRequest { + r.moduleBayRequest = &moduleBayRequest return r } -func (r ApiDcimModuleBayTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesBulkDestroyExecute(r) +func (r ApiDcimModuleBaysBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModuleBaysBulkDestroyExecute(r) } /* -DcimModuleBayTemplatesBulkDestroy Method for DcimModuleBayTemplatesBulkDestroy +DcimModuleBaysBulkDestroy Method for DcimModuleBaysBulkDestroy -Delete a list of module bay template objects. +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 ApiDcimModuleBayTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysBulkDestroyRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroy(ctx context.Context) ApiDcimModuleBayTemplatesBulkDestroyRequest { - return ApiDcimModuleBayTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimModuleBaysBulkDestroy(ctx context.Context) ApiDcimModuleBaysBulkDestroyRequest { + return ApiDcimModuleBaysBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModuleBayTemplatesBulkDestroyRequest) (*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.DcimModuleBayTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/" + localVarPath := localBasePath + "/api/dcim/module-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayTemplateRequest == nil { - return nil, reportError("moduleBayTemplateRequest is required and must be specified") + if r.moduleBayRequest == nil { + return nil, reportError("moduleBayRequest is required and must be specified") } // to determine the Content-Type header @@ -57874,7 +71673,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayTemplateRequest + localVarPostBody = r.moduleBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -57917,59 +71716,58 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModul return localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayTemplateRequest *[]ModuleBayTemplateRequest +type ApiDcimModuleBaysBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayRequest *[]ModuleBayRequest } -func (r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest []ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest { - r.moduleBayTemplateRequest = &moduleBayTemplateRequest +func (r ApiDcimModuleBaysBulkPartialUpdateRequest) ModuleBayRequest(moduleBayRequest []ModuleBayRequest) ApiDcimModuleBaysBulkPartialUpdateRequest { + r.moduleBayRequest = &moduleBayRequest return r } -func (r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) Execute() ([]ModuleBayTemplate, *http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimModuleBaysBulkPartialUpdateRequest) Execute() ([]ModuleBay, *http.Response, error) { + return r.ApiService.DcimModuleBaysBulkPartialUpdateExecute(r) } /* -DcimModuleBayTemplatesBulkPartialUpdate Method for DcimModuleBayTemplatesBulkPartialUpdate +DcimModuleBaysBulkPartialUpdate Method for DcimModuleBaysBulkPartialUpdate -Patch a list of module bay template objects. +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 ApiDcimModuleBayTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest { - return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdate(ctx context.Context) ApiDcimModuleBaysBulkPartialUpdateRequest { + return ApiDcimModuleBaysBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBayTemplate -func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { +// @return []ModuleBay +func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleBaysBulkPartialUpdateRequest) ([]ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/" + localVarPath := localBasePath + "/api/dcim/module-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") + if r.moduleBayRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") } // to determine the Content-Type header @@ -57990,7 +71788,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayTemplateRequest + localVarPostBody = r.moduleBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -58042,59 +71840,58 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDci return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayTemplateRequest *[]ModuleBayTemplateRequest +type ApiDcimModuleBaysBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayRequest *[]ModuleBayRequest } -func (r ApiDcimModuleBayTemplatesBulkUpdateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest []ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesBulkUpdateRequest { - r.moduleBayTemplateRequest = &moduleBayTemplateRequest +func (r ApiDcimModuleBaysBulkUpdateRequest) ModuleBayRequest(moduleBayRequest []ModuleBayRequest) ApiDcimModuleBaysBulkUpdateRequest { + r.moduleBayRequest = &moduleBayRequest return r } -func (r ApiDcimModuleBayTemplatesBulkUpdateRequest) Execute() ([]ModuleBayTemplate, *http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesBulkUpdateExecute(r) +func (r ApiDcimModuleBaysBulkUpdateRequest) Execute() ([]ModuleBay, *http.Response, error) { + return r.ApiService.DcimModuleBaysBulkUpdateExecute(r) } /* -DcimModuleBayTemplatesBulkUpdate Method for DcimModuleBayTemplatesBulkUpdate +DcimModuleBaysBulkUpdate Method for DcimModuleBaysBulkUpdate -Put a list of module bay template objects. +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 ApiDcimModuleBayTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysBulkUpdateRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkUpdateRequest { - return ApiDcimModuleBayTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimModuleBaysBulkUpdate(ctx context.Context) ApiDcimModuleBaysBulkUpdateRequest { + return ApiDcimModuleBaysBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBayTemplate -func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModuleBayTemplatesBulkUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { +// @return []ModuleBay +func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulkUpdateRequest) ([]ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/" + localVarPath := localBasePath + "/api/dcim/module-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") + if r.moduleBayRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") } // to determine the Content-Type header @@ -58115,7 +71912,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModule localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayTemplateRequest + localVarPostBody = r.moduleBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -58167,59 +71964,58 @@ func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModule return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayTemplateRequest *ModuleBayTemplateRequest +type ApiDcimModuleBaysCreateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleBayRequest *ModuleBayRequest } -func (r ApiDcimModuleBayTemplatesCreateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesCreateRequest { - r.moduleBayTemplateRequest = &moduleBayTemplateRequest +func (r ApiDcimModuleBaysCreateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysCreateRequest { + r.moduleBayRequest = &moduleBayRequest return r } -func (r ApiDcimModuleBayTemplatesCreateRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesCreateExecute(r) +func (r ApiDcimModuleBaysCreateRequest) Execute() (*ModuleBay, *http.Response, error) { + return r.ApiService.DcimModuleBaysCreateExecute(r) } /* -DcimModuleBayTemplatesCreate Method for DcimModuleBayTemplatesCreate +DcimModuleBaysCreate Method for DcimModuleBaysCreate -Post a list of module bay template objects. +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 ApiDcimModuleBayTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysCreateRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesCreate(ctx context.Context) ApiDcimModuleBayTemplatesCreateRequest { - return ApiDcimModuleBayTemplatesCreateRequest{ +func (a *DcimAPIService) DcimModuleBaysCreate(ctx context.Context) ApiDcimModuleBaysCreateRequest { + return ApiDcimModuleBaysCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ModuleBayTemplate -func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayTemplatesCreateRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/" + localVarPath := localBasePath + "/api/dcim/module-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") + if r.moduleBayRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") } // to determine the Content-Type header @@ -58240,7 +72036,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayTemplateRequest + localVarPostBody = r.moduleBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -58292,47 +72088,47 @@ func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModuleBaysDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModuleBayTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesDestroyExecute(r) +func (r ApiDcimModuleBaysDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModuleBaysDestroyExecute(r) } /* -DcimModuleBayTemplatesDestroy Method for DcimModuleBayTemplatesDestroy +DcimModuleBaysDestroy Method for DcimModuleBaysDestroy -Delete a module bay template object. +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 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. + @return ApiDcimModuleBaysDestroyRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimModuleBayTemplatesDestroyRequest { - return ApiDcimModuleBayTemplatesDestroyRequest{ +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) DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBayTemplatesDestroyRequest) (*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.DcimModuleBayTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bays/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -58398,511 +72194,846 @@ func (a *DcimAPIService) DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBay return localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesListRequest struct { - 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 - deviceTypeId *[]int32 - deviceTypeIdN *[]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 +type ApiDcimModuleBaysListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + installedModuleId *[]int32 + installedModuleIdN *[]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 - position *[]string - positionEmpty *bool - positionIc *[]string - positionIe *[]string - positionIew *[]string - positionIsw *[]string - positionN *[]string - positionNic *[]string - positionNie *[]string - positionNiew *[]string - positionNisw *[]string - q *string - updatedByRequest *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 + offset *int32 + ordering *string + parentId *[]*int32 + parentIdN *[]*int32 + position *[]string + positionEmpty *bool + positionIc *[]string + positionIe *[]string + positionIew *[]string + positionIsw *[]string + positionN *[]string + positionNic *[]string + positionNie *[]string + positionNiew *[]string + positionNisw *[]string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 } -func (r ApiDcimModuleBayTemplatesListRequest) Created(created []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) Created(created []time.Time) ApiDcimModuleBaysListRequest { r.created = &created return r } -func (r ApiDcimModuleBayTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleBaysListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimModuleBayTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleBaysListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimModuleBayTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) CreatedGte(createdGte []time.Time) ApiDcimModuleBaysListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimModuleBayTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) CreatedLt(createdLt []time.Time) ApiDcimModuleBaysListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimModuleBayTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) CreatedLte(createdLte []time.Time) ApiDcimModuleBaysListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimModuleBayTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) CreatedN(createdN []time.Time) ApiDcimModuleBaysListRequest { r.createdN = &createdN return r } -func (r ApiDcimModuleBayTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) CreatedByRequest(createdByRequest string) ApiDcimModuleBaysListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimModuleBayTemplatesListRequest) Description(description []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) Description(description []string) ApiDcimModuleBaysListRequest { r.description = &description return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleBaysListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleBaysListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleBaysListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleBaysListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleBaysListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionN(descriptionN []string) ApiDcimModuleBaysListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleBaysListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleBaysListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleBaysListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleBaysListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimModuleBayTemplatesListRequest { - r.deviceTypeId = &deviceTypeId +// Device (name) +func (r ApiDcimModuleBaysListRequest) Device(device []*string) ApiDcimModuleBaysListRequest { + r.device = &device return r } -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN +// Device (name) +func (r ApiDcimModuleBaysListRequest) DeviceN(deviceN []*string) ApiDcimModuleBaysListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimModuleBaysListRequest) DeviceId(deviceId []int32) ApiDcimModuleBaysListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimModuleBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModuleBaysListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRole(deviceRole []string) ApiDcimModuleBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimModuleBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimModuleBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimModuleBaysListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimModuleBaysListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimModuleBaysListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimModuleBaysListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimModuleBaysListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimModuleBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimModuleBaysListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimModuleBaysListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimModuleBaysListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimModuleBaysListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + +// Device type (model) +func (r ApiDcimModuleBaysListRequest) DeviceType(deviceType []string) ApiDcimModuleBaysListRequest { + r.deviceType = &deviceType + return r +} + +// Device type (model) +func (r ApiDcimModuleBaysListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimModuleBaysListRequest { + r.deviceTypeN = &deviceTypeN return r } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeId = &devicetypeId +func (r ApiDcimModuleBaysListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimModuleBaysListRequest { + r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimModuleBaysListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimModuleBaysListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimModuleBayTemplatesListRequest) Id(id []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) Id(id []int32) ApiDcimModuleBaysListRequest { r.id = &id return r } -func (r ApiDcimModuleBayTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) IdEmpty(idEmpty bool) ApiDcimModuleBaysListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimModuleBayTemplatesListRequest) IdGt(idGt []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) IdGt(idGt []int32) ApiDcimModuleBaysListRequest { r.idGt = &idGt return r } -func (r ApiDcimModuleBayTemplatesListRequest) IdGte(idGte []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) IdGte(idGte []int32) ApiDcimModuleBaysListRequest { r.idGte = &idGte return r } -func (r ApiDcimModuleBayTemplatesListRequest) IdLt(idLt []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) IdLt(idLt []int32) ApiDcimModuleBaysListRequest { r.idLt = &idLt return r } -func (r ApiDcimModuleBayTemplatesListRequest) IdLte(idLte []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) IdLte(idLte []int32) ApiDcimModuleBaysListRequest { r.idLte = &idLte return r } -func (r ApiDcimModuleBayTemplatesListRequest) IdN(idN []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) IdN(idN []int32) ApiDcimModuleBaysListRequest { r.idN = &idN return r } -func (r ApiDcimModuleBayTemplatesListRequest) Label(label []string) ApiDcimModuleBayTemplatesListRequest { +// Installed module (ID) +func (r ApiDcimModuleBaysListRequest) InstalledModuleId(installedModuleId []int32) ApiDcimModuleBaysListRequest { + r.installedModuleId = &installedModuleId + return r +} + +// Installed module (ID) +func (r ApiDcimModuleBaysListRequest) InstalledModuleIdN(installedModuleIdN []int32) ApiDcimModuleBaysListRequest { + r.installedModuleIdN = &installedModuleIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) Label(label []string) ApiDcimModuleBaysListRequest { r.label = &label return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelEmpty(labelEmpty bool) ApiDcimModuleBaysListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelIc(labelIc []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelIc(labelIc []string) ApiDcimModuleBaysListRequest { r.labelIc = &labelIc return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelIe(labelIe []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelIe(labelIe []string) ApiDcimModuleBaysListRequest { r.labelIe = &labelIe return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelIew(labelIew []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelIew(labelIew []string) ApiDcimModuleBaysListRequest { r.labelIew = &labelIew return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelIsw(labelIsw []string) ApiDcimModuleBaysListRequest { r.labelIsw = &labelIsw return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelN(labelN []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelN(labelN []string) ApiDcimModuleBaysListRequest { r.labelN = &labelN return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelNic(labelNic []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelNic(labelNic []string) ApiDcimModuleBaysListRequest { r.labelNic = &labelNic return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelNie(labelNie []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelNie(labelNie []string) ApiDcimModuleBaysListRequest { r.labelNie = &labelNie return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelNiew(labelNiew []string) ApiDcimModuleBaysListRequest { r.labelNiew = &labelNiew return r } -func (r ApiDcimModuleBayTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LabelNisw(labelNisw []string) ApiDcimModuleBaysListRequest { r.labelNisw = &labelNisw return r } -func (r ApiDcimModuleBayTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimModuleBayTemplatesListRequest) Limit(limit int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) Limit(limit int32) ApiDcimModuleBaysListRequest { r.limit = &limit return r } -func (r ApiDcimModuleBayTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleBayTemplatesListRequest { +// Location (slug) +func (r ApiDcimModuleBaysListRequest) Location(location []string) ApiDcimModuleBaysListRequest { + r.location = &location + return r +} + +// Location (slug) +func (r ApiDcimModuleBaysListRequest) LocationN(locationN []string) ApiDcimModuleBaysListRequest { + r.locationN = &locationN + return r +} + +// Location (ID) +func (r ApiDcimModuleBaysListRequest) LocationId(locationId []int32) ApiDcimModuleBaysListRequest { + r.locationId = &locationId + return r +} + +// Location (ID) +func (r ApiDcimModuleBaysListRequest) LocationIdN(locationIdN []int32) ApiDcimModuleBaysListRequest { + r.locationIdN = &locationIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleBaysListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimModuleBayTemplatesListRequest) Name(name []string) ApiDcimModuleBayTemplatesListRequest { +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleId(moduleId []*int32) ApiDcimModuleBaysListRequest { + r.moduleId = &moduleId + return r +} + +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimModuleBaysListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) Name(name []string) ApiDcimModuleBaysListRequest { r.name = &name return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameEmpty(nameEmpty bool) ApiDcimModuleBaysListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameIc(nameIc []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameIc(nameIc []string) ApiDcimModuleBaysListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameIe(nameIe []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameIe(nameIe []string) ApiDcimModuleBaysListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameIew(nameIew []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameIew(nameIew []string) ApiDcimModuleBaysListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameIsw(nameIsw []string) ApiDcimModuleBaysListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameN(nameN []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameN(nameN []string) ApiDcimModuleBaysListRequest { r.nameN = &nameN return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameNic(nameNic []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameNic(nameNic []string) ApiDcimModuleBaysListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameNie(nameNie []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameNie(nameNie []string) ApiDcimModuleBaysListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameNiew(nameNiew []string) ApiDcimModuleBaysListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimModuleBayTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) NameNisw(nameNisw []string) ApiDcimModuleBaysListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiDcimModuleBayTemplatesListRequest) Offset(offset int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) Offset(offset int32) ApiDcimModuleBaysListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimModuleBayTemplatesListRequest) Ordering(ordering string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) Ordering(ordering string) ApiDcimModuleBaysListRequest { r.ordering = &ordering return r } -func (r ApiDcimModuleBayTemplatesListRequest) Position(position []string) ApiDcimModuleBayTemplatesListRequest { +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentId(parentId []*int32) ApiDcimModuleBaysListRequest { + r.parentId = &parentId + return r +} + +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentIdN(parentIdN []*int32) ApiDcimModuleBaysListRequest { + r.parentIdN = &parentIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) Position(position []string) ApiDcimModuleBaysListRequest { r.position = &position return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionEmpty(positionEmpty bool) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) PositionEmpty(positionEmpty bool) ApiDcimModuleBaysListRequest { r.positionEmpty = &positionEmpty return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionIc(positionIc []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) PositionIc(positionIc []string) ApiDcimModuleBaysListRequest { r.positionIc = &positionIc return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionIe(positionIe []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) PositionIe(positionIe []string) ApiDcimModuleBaysListRequest { r.positionIe = &positionIe return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionIew(positionIew []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) PositionIew(positionIew []string) ApiDcimModuleBaysListRequest { r.positionIew = &positionIew return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionIsw(positionIsw []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) PositionIsw(positionIsw []string) ApiDcimModuleBaysListRequest { r.positionIsw = &positionIsw return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionN(positionN []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) PositionN(positionN []string) ApiDcimModuleBaysListRequest { r.positionN = &positionN return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionNic(positionNic []string) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBaysListRequest) PositionNic(positionNic []string) ApiDcimModuleBaysListRequest { r.positionNic = &positionNic return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionNie(positionNie []string) ApiDcimModuleBayTemplatesListRequest { - r.positionNie = &positionNie +func (r ApiDcimModuleBaysListRequest) PositionNie(positionNie []string) ApiDcimModuleBaysListRequest { + r.positionNie = &positionNie + return r +} + +func (r ApiDcimModuleBaysListRequest) PositionNiew(positionNiew []string) ApiDcimModuleBaysListRequest { + r.positionNiew = &positionNiew + return r +} + +func (r ApiDcimModuleBaysListRequest) PositionNisw(positionNisw []string) ApiDcimModuleBaysListRequest { + r.positionNisw = &positionNisw + return r +} + +// Search +func (r ApiDcimModuleBaysListRequest) Q(q string) ApiDcimModuleBaysListRequest { + r.q = &q + return r +} + +// Rack (name) +func (r ApiDcimModuleBaysListRequest) Rack(rack []string) ApiDcimModuleBaysListRequest { + r.rack = &rack + return r +} + +// Rack (name) +func (r ApiDcimModuleBaysListRequest) RackN(rackN []string) ApiDcimModuleBaysListRequest { + r.rackN = &rackN + return r +} + +// Rack (ID) +func (r ApiDcimModuleBaysListRequest) RackId(rackId []int32) ApiDcimModuleBaysListRequest { + r.rackId = &rackId + return r +} + +// Rack (ID) +func (r ApiDcimModuleBaysListRequest) RackIdN(rackIdN []int32) ApiDcimModuleBaysListRequest { + r.rackIdN = &rackIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) Region(region []string) ApiDcimModuleBaysListRequest { + r.region = ®ion + return r +} + +func (r ApiDcimModuleBaysListRequest) RegionN(regionN []string) ApiDcimModuleBaysListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiDcimModuleBaysListRequest) RegionId(regionId []string) ApiDcimModuleBaysListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []string) ApiDcimModuleBaysListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site name (slug) +func (r ApiDcimModuleBaysListRequest) Site(site []string) ApiDcimModuleBaysListRequest { + r.site = &site + return r +} + +// Site name (slug) +func (r ApiDcimModuleBaysListRequest) SiteN(siteN []string) ApiDcimModuleBaysListRequest { + r.siteN = &siteN + return r +} + +func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []string) ApiDcimModuleBaysListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimModuleBaysListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimModuleBaysListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimModuleBaysListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiDcimModuleBaysListRequest) SiteId(siteId []int32) ApiDcimModuleBaysListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiDcimModuleBaysListRequest) SiteIdN(siteIdN []int32) ApiDcimModuleBaysListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) Tag(tag []string) ApiDcimModuleBaysListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimModuleBaysListRequest) TagN(tagN []string) ApiDcimModuleBaysListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimModuleBaysListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleBaysListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionNiew(positionNiew []string) ApiDcimModuleBayTemplatesListRequest { - r.positionNiew = &positionNiew +// Virtual Chassis +func (r ApiDcimModuleBaysListRequest) VirtualChassis(virtualChassis []string) ApiDcimModuleBaysListRequest { + r.virtualChassis = &virtualChassis return r } -func (r ApiDcimModuleBayTemplatesListRequest) PositionNisw(positionNisw []string) ApiDcimModuleBayTemplatesListRequest { - r.positionNisw = &positionNisw +// Virtual Chassis +func (r ApiDcimModuleBaysListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimModuleBaysListRequest { + r.virtualChassisN = &virtualChassisN return r } -// Search -func (r ApiDcimModuleBayTemplatesListRequest) Q(q string) ApiDcimModuleBayTemplatesListRequest { - r.q = &q +// Virtual Chassis (ID) +func (r ApiDcimModuleBaysListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimModuleBaysListRequest { + r.virtualChassisId = &virtualChassisId return r } -func (r ApiDcimModuleBayTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleBayTemplatesListRequest { - r.updatedByRequest = &updatedByRequest +// Virtual Chassis (ID) +func (r ApiDcimModuleBaysListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimModuleBaysListRequest { + r.virtualChassisIdN = &virtualChassisIdN return r } -func (r ApiDcimModuleBayTemplatesListRequest) Execute() (*PaginatedModuleBayTemplateList, *http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesListExecute(r) +func (r ApiDcimModuleBaysListRequest) Execute() (*PaginatedModuleBayList, *http.Response, error) { + return r.ApiService.DcimModuleBaysListExecute(r) } /* -DcimModuleBayTemplatesList Method for DcimModuleBayTemplatesList +DcimModuleBaysList Method for DcimModuleBaysList -Get a list of module bay template objects. +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 ApiDcimModuleBayTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysListRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesList(ctx context.Context) ApiDcimModuleBayTemplatesListRequest { - return ApiDcimModuleBayTemplatesListRequest{ +func (a *DcimAPIService) DcimModuleBaysList(ctx context.Context) ApiDcimModuleBaysListRequest { + return ApiDcimModuleBaysListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleBayTemplateList -func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTemplatesListRequest) (*PaginatedModuleBayTemplateList, *http.Response, error) { +// @return PaginatedModuleBayList +func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListRequest) (*PaginatedModuleBayList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleBayTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleBayList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/" + localVarPath := localBasePath + "/api/dcim/module-bays/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -58913,10 +73044,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -58924,10 +73055,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -58935,10 +73066,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -58946,10 +73077,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -58957,10 +73088,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -58968,10 +73099,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -58979,38 +73110,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -59018,10 +73149,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -59029,10 +73160,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -59040,10 +73171,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -59051,10 +73182,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -59062,10 +73193,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -59073,10 +73204,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -59084,10 +73215,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -59095,54 +73226,255 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.device != nil { + t := *r.device 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") + } + } + if r.deviceType != nil { + t := *r.deviceType + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") + } + } + if r.deviceTypeN != nil { + t := *r.deviceTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + 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, "devicetype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + 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, "devicetype_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -59150,24 +73482,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -59175,10 +73507,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -59186,10 +73518,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -59197,10 +73529,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -59208,10 +73540,32 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.installedModuleId != nil { + t := *r.installedModuleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id", t, "form", "multi") + } + } + if r.installedModuleIdN != nil { + t := *r.installedModuleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id__n", t, "form", "multi") } } if r.label != nil { @@ -59219,24 +73573,24 @@ 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -59244,10 +73598,10 @@ 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -59255,10 +73609,10 @@ 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -59266,10 +73620,10 @@ 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -59277,10 +73631,10 @@ 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -59288,10 +73642,10 @@ 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -59299,10 +73653,10 @@ 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -59310,10 +73664,10 @@ 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -59321,10 +73675,10 @@ 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -59332,10 +73686,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -59343,10 +73697,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -59354,10 +73708,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -59365,10 +73719,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -59376,10 +73730,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -59387,10 +73741,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -59398,41 +73752,107 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") + } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") + } + } + if r.moduleIdN != nil { + t := *r.moduleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") + } } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -59440,10 +73860,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -59451,10 +73871,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -59462,10 +73882,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -59473,10 +73893,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -59484,10 +73904,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -59495,10 +73915,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -59506,10 +73926,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -59517,41 +73937,63 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.parentId != nil { + t := *r.parentId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") + } + } + if r.parentIdN != nil { + t := *r.parentIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") + } } if r.position != nil { t := *r.position if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "form", "multi") } } if r.positionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "form", "") } if r.positionIc != nil { t := *r.positionIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", t, "form", "multi") } } if r.positionIe != nil { @@ -59559,10 +74001,10 @@ 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, "position__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", t, "form", "multi") } } if r.positionIew != nil { @@ -59570,10 +74012,10 @@ 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, "position__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", t, "form", "multi") } } if r.positionIsw != nil { @@ -59581,10 +74023,10 @@ 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, "position__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", t, "form", "multi") } } if r.positionN != nil { @@ -59592,10 +74034,10 @@ 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, "position__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "form", "multi") } } if r.positionNic != nil { @@ -59603,10 +74045,10 @@ 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, "position__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", t, "form", "multi") } } if r.positionNie != nil { @@ -59614,10 +74056,10 @@ 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, "position__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", t, "form", "multi") } } if r.positionNiew != nil { @@ -59625,10 +74067,10 @@ 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, "position__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", t, "form", "multi") } } if r.positionNisw != nil { @@ -59636,17 +74078,259 @@ 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, "position__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") + } + } + if r.rackN != nil { + t := *r.rackN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") + } + } + if r.rackId != nil { + t := *r.rackId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") + } + } + if r.rackIdN != nil { + t := *r.rackIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") + } + } + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } + } + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } + } + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -59716,56 +74400,55 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedModuleBayTemplateRequest *PatchedModuleBayTemplateRequest +type ApiDcimModuleBaysPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedModuleBayRequest *PatchedModuleBayRequest } -func (r ApiDcimModuleBayTemplatesPartialUpdateRequest) PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest PatchedModuleBayTemplateRequest) ApiDcimModuleBayTemplatesPartialUpdateRequest { - r.patchedModuleBayTemplateRequest = &patchedModuleBayTemplateRequest +func (r ApiDcimModuleBaysPartialUpdateRequest) PatchedModuleBayRequest(patchedModuleBayRequest PatchedModuleBayRequest) ApiDcimModuleBaysPartialUpdateRequest { + r.patchedModuleBayRequest = &patchedModuleBayRequest return r } -func (r ApiDcimModuleBayTemplatesPartialUpdateRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesPartialUpdateExecute(r) +func (r ApiDcimModuleBaysPartialUpdateRequest) Execute() (*ModuleBay, *http.Response, error) { + return r.ApiService.DcimModuleBaysPartialUpdateExecute(r) } /* -DcimModuleBayTemplatesPartialUpdate Method for DcimModuleBayTemplatesPartialUpdate +DcimModuleBaysPartialUpdate Method for DcimModuleBaysPartialUpdate -Patch a module bay template object. +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 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. + @return ApiDcimModuleBaysPartialUpdateRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesPartialUpdateRequest { - return ApiDcimModuleBayTemplatesPartialUpdateRequest{ +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 ModuleBayTemplate -func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimModuleBayTemplatesPartialUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bays/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -59790,7 +74473,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimMod localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedModuleBayTemplateRequest + localVarPostBody = r.patchedModuleBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -59842,50 +74525,49 @@ func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimMod return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModuleBaysRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModuleBayTemplatesRetrieveRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesRetrieveExecute(r) +func (r ApiDcimModuleBaysRetrieveRequest) Execute() (*ModuleBay, *http.Response, error) { + return r.ApiService.DcimModuleBaysRetrieveExecute(r) } /* -DcimModuleBayTemplatesRetrieve Method for DcimModuleBayTemplatesRetrieve +DcimModuleBaysRetrieve Method for DcimModuleBaysRetrieve -Get a module bay template object. +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 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. + @return ApiDcimModuleBaysRetrieveRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimModuleBayTemplatesRetrieveRequest { - return ApiDcimModuleBayTemplatesRetrieveRequest{ +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 ModuleBayTemplate -func (a *DcimAPIService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBayTemplatesRetrieveRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bays/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -59960,63 +74642,62 @@ func (a *DcimAPIService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBa return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBayTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - moduleBayTemplateRequest *ModuleBayTemplateRequest +type ApiDcimModuleBaysUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + moduleBayRequest *ModuleBayRequest } -func (r ApiDcimModuleBayTemplatesUpdateRequest) ModuleBayTemplateRequest(moduleBayTemplateRequest ModuleBayTemplateRequest) ApiDcimModuleBayTemplatesUpdateRequest { - r.moduleBayTemplateRequest = &moduleBayTemplateRequest +func (r ApiDcimModuleBaysUpdateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysUpdateRequest { + r.moduleBayRequest = &moduleBayRequest return r } -func (r ApiDcimModuleBayTemplatesUpdateRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { - return r.ApiService.DcimModuleBayTemplatesUpdateExecute(r) +func (r ApiDcimModuleBaysUpdateRequest) Execute() (*ModuleBay, *http.Response, error) { + return r.ApiService.DcimModuleBaysUpdateExecute(r) } /* -DcimModuleBayTemplatesUpdate Method for DcimModuleBayTemplatesUpdate +DcimModuleBaysUpdate Method for DcimModuleBaysUpdate -Put a module bay template object. +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 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. + @return ApiDcimModuleBaysUpdateRequest */ -func (a *DcimAPIService) DcimModuleBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesUpdateRequest { - return ApiDcimModuleBayTemplatesUpdateRequest{ +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 ModuleBayTemplate -func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayTemplatesUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bay-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/module-bays/{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.moduleBayTemplateRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayTemplateRequest is required and must be specified") + if r.moduleBayRequest == nil { + return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") } // to determine the Content-Type header @@ -60037,7 +74718,7 @@ func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayTemplateRequest + localVarPostBody = r.moduleBayRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -60089,56 +74770,56 @@ func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBaysBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayRequest *[]ModuleBayRequest +type ApiDcimModuleTypesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + moduleTypeRequest *[]ModuleTypeRequest } -func (r ApiDcimModuleBaysBulkDestroyRequest) ModuleBayRequest(moduleBayRequest []ModuleBayRequest) ApiDcimModuleBaysBulkDestroyRequest { - r.moduleBayRequest = &moduleBayRequest +func (r ApiDcimModuleTypesBulkDestroyRequest) ModuleTypeRequest(moduleTypeRequest []ModuleTypeRequest) ApiDcimModuleTypesBulkDestroyRequest { + r.moduleTypeRequest = &moduleTypeRequest return r } -func (r ApiDcimModuleBaysBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModuleBaysBulkDestroyExecute(r) +func (r ApiDcimModuleTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModuleTypesBulkDestroyExecute(r) } /* -DcimModuleBaysBulkDestroy Method for DcimModuleBaysBulkDestroy +DcimModuleTypesBulkDestroy Method for DcimModuleTypesBulkDestroy -Delete a list of module bay objects. +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 ApiDcimModuleBaysBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesBulkDestroyRequest */ -func (a *DcimAPIService) DcimModuleBaysBulkDestroy(ctx context.Context) ApiDcimModuleBaysBulkDestroyRequest { - return ApiDcimModuleBaysBulkDestroyRequest{ +func (a *DcimAPIService) DcimModuleTypesBulkDestroy(ctx context.Context) ApiDcimModuleTypesBulkDestroyRequest { + return ApiDcimModuleTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBulkDestroyRequest) (*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.DcimModuleBaysBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/" + localVarPath := localBasePath + "/api/dcim/module-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayRequest == nil { - return nil, reportError("moduleBayRequest is required and must be specified") + if r.moduleTypeRequest == nil { + return nil, reportError("moduleTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -60159,7 +74840,7 @@ func (a *DcimAPIService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayRequest + localVarPostBody = r.moduleTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -60202,59 +74883,58 @@ func (a *DcimAPIService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBul return localVarHTTPResponse, nil } -type ApiDcimModuleBaysBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayRequest *[]ModuleBayRequest +type ApiDcimModuleTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleTypeRequest *[]ModuleTypeRequest } -func (r ApiDcimModuleBaysBulkPartialUpdateRequest) ModuleBayRequest(moduleBayRequest []ModuleBayRequest) ApiDcimModuleBaysBulkPartialUpdateRequest { - r.moduleBayRequest = &moduleBayRequest +func (r ApiDcimModuleTypesBulkPartialUpdateRequest) ModuleTypeRequest(moduleTypeRequest []ModuleTypeRequest) ApiDcimModuleTypesBulkPartialUpdateRequest { + r.moduleTypeRequest = &moduleTypeRequest return r } -func (r ApiDcimModuleBaysBulkPartialUpdateRequest) Execute() ([]ModuleBay, *http.Response, error) { - return r.ApiService.DcimModuleBaysBulkPartialUpdateExecute(r) +func (r ApiDcimModuleTypesBulkPartialUpdateRequest) Execute() ([]ModuleType, *http.Response, error) { + return r.ApiService.DcimModuleTypesBulkPartialUpdateExecute(r) } /* -DcimModuleBaysBulkPartialUpdate Method for DcimModuleBaysBulkPartialUpdate +DcimModuleTypesBulkPartialUpdate Method for DcimModuleTypesBulkPartialUpdate -Patch a list of module bay objects. +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 ApiDcimModuleBaysBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdate(ctx context.Context) ApiDcimModuleBaysBulkPartialUpdateRequest { - return ApiDcimModuleBaysBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypesBulkPartialUpdateRequest { + return ApiDcimModuleTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBay -func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleBaysBulkPartialUpdateRequest) ([]ModuleBay, *http.Response, error) { +// @return []ModuleType +func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModuleTypesBulkPartialUpdateRequest) ([]ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/" + localVarPath := localBasePath + "/api/dcim/module-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") + if r.moduleTypeRequest == nil { + return localVarReturnValue, nil, reportError("moduleTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -60275,7 +74955,7 @@ func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayRequest + localVarPostBody = r.moduleTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -60327,59 +75007,58 @@ func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleB return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBaysBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayRequest *[]ModuleBayRequest +type ApiDcimModuleTypesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleTypeRequest *[]ModuleTypeRequest } -func (r ApiDcimModuleBaysBulkUpdateRequest) ModuleBayRequest(moduleBayRequest []ModuleBayRequest) ApiDcimModuleBaysBulkUpdateRequest { - r.moduleBayRequest = &moduleBayRequest +func (r ApiDcimModuleTypesBulkUpdateRequest) ModuleTypeRequest(moduleTypeRequest []ModuleTypeRequest) ApiDcimModuleTypesBulkUpdateRequest { + r.moduleTypeRequest = &moduleTypeRequest return r } -func (r ApiDcimModuleBaysBulkUpdateRequest) Execute() ([]ModuleBay, *http.Response, error) { - return r.ApiService.DcimModuleBaysBulkUpdateExecute(r) +func (r ApiDcimModuleTypesBulkUpdateRequest) Execute() ([]ModuleType, *http.Response, error) { + return r.ApiService.DcimModuleTypesBulkUpdateExecute(r) } /* -DcimModuleBaysBulkUpdate Method for DcimModuleBaysBulkUpdate +DcimModuleTypesBulkUpdate Method for DcimModuleTypesBulkUpdate -Put a list of module bay objects. +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 ApiDcimModuleBaysBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesBulkUpdateRequest */ -func (a *DcimAPIService) DcimModuleBaysBulkUpdate(ctx context.Context) ApiDcimModuleBaysBulkUpdateRequest { - return ApiDcimModuleBaysBulkUpdateRequest{ +func (a *DcimAPIService) DcimModuleTypesBulkUpdate(ctx context.Context) ApiDcimModuleTypesBulkUpdateRequest { + return ApiDcimModuleTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBay -func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulkUpdateRequest) ([]ModuleBay, *http.Response, error) { +// @return []ModuleType +func (a *DcimAPIService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBulkUpdateRequest) ([]ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/" + localVarPath := localBasePath + "/api/dcim/module-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") + if r.moduleTypeRequest == nil { + return localVarReturnValue, nil, reportError("moduleTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -60400,7 +75079,7 @@ func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayRequest + localVarPostBody = r.moduleTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -60452,59 +75131,58 @@ func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBaysCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleBayRequest *ModuleBayRequest +type ApiDcimModuleTypesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableModuleTypeRequest *WritableModuleTypeRequest } -func (r ApiDcimModuleBaysCreateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysCreateRequest { - r.moduleBayRequest = &moduleBayRequest +func (r ApiDcimModuleTypesCreateRequest) WritableModuleTypeRequest(writableModuleTypeRequest WritableModuleTypeRequest) ApiDcimModuleTypesCreateRequest { + r.writableModuleTypeRequest = &writableModuleTypeRequest return r } -func (r ApiDcimModuleBaysCreateRequest) Execute() (*ModuleBay, *http.Response, error) { - return r.ApiService.DcimModuleBaysCreateExecute(r) +func (r ApiDcimModuleTypesCreateRequest) Execute() (*ModuleType, *http.Response, error) { + return r.ApiService.DcimModuleTypesCreateExecute(r) } /* -DcimModuleBaysCreate Method for DcimModuleBaysCreate +DcimModuleTypesCreate Method for DcimModuleTypesCreate -Post a list of module bay objects. +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 ApiDcimModuleBaysCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesCreateRequest */ -func (a *DcimAPIService) DcimModuleBaysCreate(ctx context.Context) ApiDcimModuleBaysCreateRequest { - return ApiDcimModuleBaysCreateRequest{ +func (a *DcimAPIService) DcimModuleTypesCreate(ctx context.Context) ApiDcimModuleTypesCreateRequest { + return ApiDcimModuleTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ModuleBay -func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreateRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/" + localVarPath := localBasePath + "/api/dcim/module-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleBayRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") + if r.writableModuleTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableModuleTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -60525,7 +75203,7 @@ func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayRequest + localVarPostBody = r.writableModuleTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -60577,47 +75255,47 @@ func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBaysDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModuleTypesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModuleBaysDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModuleBaysDestroyExecute(r) +func (r ApiDcimModuleTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModuleTypesDestroyExecute(r) } /* -DcimModuleBaysDestroy Method for DcimModuleBaysDestroy +DcimModuleTypesDestroy Method for DcimModuleTypesDestroy -Delete a module bay object. +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 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 type. + @return ApiDcimModuleTypesDestroyRequest */ -func (a *DcimAPIService) DcimModuleBaysDestroy(ctx context.Context, id int32) ApiDcimModuleBaysDestroyRequest { - return ApiDcimModuleBaysDestroyRequest{ +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) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroyRequest) (*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.DcimModuleBaysDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/module-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -60683,775 +75361,577 @@ func (a *DcimAPIService) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroy return localVarHTTPResponse, nil } -type ApiDcimModuleBaysListRequest struct { - 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 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - installedModuleId *[]int32 - installedModuleIdN *[]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 - position *[]string - positionEmpty *bool - positionIc *[]string - positionIe *[]string - positionIew *[]string - positionIsw *[]string - positionN *[]string - positionNic *[]string - positionNie *[]string - positionNiew *[]string - positionNisw *[]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 +type ApiDcimModuleTypesListRequest struct { + ctx context.Context + ApiService DcimAPI + airflow *DcimModuleTypesListAirflowParameter + consolePorts *bool + consoleServerPorts *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 + 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 *DcimDeviceTypesListWeightUnitParameter +} + +// * `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 +func (r ApiDcimModuleTypesListRequest) Airflow(airflow DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { + r.airflow = &airflow + return r } -func (r ApiDcimModuleBaysListRequest) Created(created []time.Time) ApiDcimModuleBaysListRequest { +// Has console ports +func (r ApiDcimModuleTypesListRequest) ConsolePorts(consolePorts bool) ApiDcimModuleTypesListRequest { + r.consolePorts = &consolePorts + return r +} + +// Has console server ports +func (r ApiDcimModuleTypesListRequest) ConsoleServerPorts(consoleServerPorts bool) ApiDcimModuleTypesListRequest { + r.consoleServerPorts = &consoleServerPorts + return r +} + +func (r ApiDcimModuleTypesListRequest) Created(created []time.Time) ApiDcimModuleTypesListRequest { r.created = &created return r } -func (r ApiDcimModuleBaysListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleTypesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimModuleBaysListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleTypesListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimModuleBaysListRequest) CreatedGte(createdGte []time.Time) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimModuleTypesListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimModuleBaysListRequest) CreatedLt(createdLt []time.Time) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimModuleTypesListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimModuleBaysListRequest) CreatedLte(createdLte []time.Time) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimModuleTypesListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimModuleBaysListRequest) CreatedN(createdN []time.Time) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) CreatedN(createdN []time.Time) ApiDcimModuleTypesListRequest { r.createdN = &createdN return r } -func (r ApiDcimModuleBaysListRequest) CreatedByRequest(createdByRequest string) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimModuleTypesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimModuleBaysListRequest) Description(description []string) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleTypesListRequest) Description(description []string) ApiDcimModuleTypesListRequest { r.description = &description return r } - -func (r ApiDcimModuleBaysListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleBaysListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleBaysListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleBaysListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleBaysListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleBaysListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionN(descriptionN []string) ApiDcimModuleBaysListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleBaysListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleBaysListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleBaysListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiDcimModuleBaysListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleBaysListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -// Device (name) -func (r ApiDcimModuleBaysListRequest) Device(device []*string) ApiDcimModuleBaysListRequest { - r.device = &device - return r -} - -// Device (name) -func (r ApiDcimModuleBaysListRequest) DeviceN(deviceN []*string) ApiDcimModuleBaysListRequest { - r.deviceN = &deviceN - return r -} - -// Device (ID) -func (r ApiDcimModuleBaysListRequest) DeviceId(deviceId []int32) ApiDcimModuleBaysListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiDcimModuleBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModuleBaysListRequest { - r.deviceIdN = &deviceIdN - return r -} - -// Device type (model) -func (r ApiDcimModuleBaysListRequest) DeviceType(deviceType []string) ApiDcimModuleBaysListRequest { - r.deviceType = &deviceType - return r -} - -// Device type (model) -func (r ApiDcimModuleBaysListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimModuleBaysListRequest { - r.deviceTypeN = &deviceTypeN - return r -} - -// Device type (ID) -func (r ApiDcimModuleBaysListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimModuleBaysListRequest { - r.deviceTypeId = &deviceTypeId - return r -} - -// Device type (ID) -func (r ApiDcimModuleBaysListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimModuleBaysListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} - -func (r ApiDcimModuleBaysListRequest) Id(id []int32) ApiDcimModuleBaysListRequest { - r.id = &id - 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 -} - -func (r ApiDcimModuleBaysListRequest) IdGte(idGte []int32) ApiDcimModuleBaysListRequest { - r.idGte = &idGte - return r -} - -func (r ApiDcimModuleBaysListRequest) IdLt(idLt []int32) ApiDcimModuleBaysListRequest { - r.idLt = &idLt - return r -} - -func (r ApiDcimModuleBaysListRequest) IdLte(idLte []int32) ApiDcimModuleBaysListRequest { - r.idLte = &idLte - return r -} - -func (r ApiDcimModuleBaysListRequest) IdN(idN []int32) ApiDcimModuleBaysListRequest { - r.idN = &idN - return r -} - -// Installed module (ID) -func (r ApiDcimModuleBaysListRequest) InstalledModuleId(installedModuleId []int32) ApiDcimModuleBaysListRequest { - r.installedModuleId = &installedModuleId - return r -} - -// Installed module (ID) -func (r ApiDcimModuleBaysListRequest) InstalledModuleIdN(installedModuleIdN []int32) ApiDcimModuleBaysListRequest { - r.installedModuleIdN = &installedModuleIdN - return r -} - -func (r ApiDcimModuleBaysListRequest) Label(label []string) ApiDcimModuleBaysListRequest { - r.label = &label - return r -} - -func (r ApiDcimModuleBaysListRequest) LabelEmpty(labelEmpty bool) ApiDcimModuleBaysListRequest { - r.labelEmpty = &labelEmpty - return r -} - -func (r ApiDcimModuleBaysListRequest) LabelIc(labelIc []string) ApiDcimModuleBaysListRequest { - r.labelIc = &labelIc - return r -} - -func (r ApiDcimModuleBaysListRequest) LabelIe(labelIe []string) ApiDcimModuleBaysListRequest { - r.labelIe = &labelIe - return r -} - -func (r ApiDcimModuleBaysListRequest) LabelIew(labelIew []string) ApiDcimModuleBaysListRequest { - r.labelIew = &labelIew - return r -} - -func (r ApiDcimModuleBaysListRequest) LabelIsw(labelIsw []string) ApiDcimModuleBaysListRequest { - r.labelIsw = &labelIsw - return r -} - -func (r ApiDcimModuleBaysListRequest) LabelN(labelN []string) ApiDcimModuleBaysListRequest { - r.labelN = &labelN + +func (r ApiDcimModuleTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleTypesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimModuleBaysListRequest) LabelNic(labelNic []string) ApiDcimModuleBaysListRequest { - r.labelNic = &labelNic +func (r ApiDcimModuleTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleTypesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiDcimModuleBaysListRequest) LabelNie(labelNie []string) ApiDcimModuleBaysListRequest { - r.labelNie = &labelNie +func (r ApiDcimModuleTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleTypesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiDcimModuleBaysListRequest) LabelNiew(labelNiew []string) ApiDcimModuleBaysListRequest { - r.labelNiew = &labelNiew +func (r ApiDcimModuleTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleTypesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiDcimModuleBaysListRequest) LabelNisw(labelNisw []string) ApiDcimModuleBaysListRequest { - r.labelNisw = &labelNisw +func (r ApiDcimModuleTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleTypesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimModuleBaysListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModuleBaysListRequest { - r.lastUpdated = &lastUpdated +func (r ApiDcimModuleTypesListRequest) DescriptionN(descriptionN []string) ApiDcimModuleTypesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiDcimModuleBaysListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleBaysListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiDcimModuleTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleTypesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiDcimModuleBaysListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleBaysListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimModuleTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleTypesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiDcimModuleBaysListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModuleBaysListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimModuleTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleTypesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimModuleBaysListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModuleBaysListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimModuleTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleTypesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimModuleBaysListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModuleBaysListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimModuleTypesListRequest) Id(id []int32) ApiDcimModuleTypesListRequest { + r.id = &id return r } -func (r ApiDcimModuleBaysListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModuleBaysListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiDcimModuleTypesListRequest) IdEmpty(idEmpty bool) ApiDcimModuleTypesListRequest { + r.idEmpty = &idEmpty return r } -// Number of results to return per page. -func (r ApiDcimModuleBaysListRequest) Limit(limit int32) ApiDcimModuleBaysListRequest { - r.limit = &limit +func (r ApiDcimModuleTypesListRequest) IdGt(idGt []int32) ApiDcimModuleTypesListRequest { + r.idGt = &idGt return r } -// Location (slug) -func (r ApiDcimModuleBaysListRequest) Location(location []string) ApiDcimModuleBaysListRequest { - r.location = &location +func (r ApiDcimModuleTypesListRequest) IdGte(idGte []int32) ApiDcimModuleTypesListRequest { + r.idGte = &idGte return r } -// Location (slug) -func (r ApiDcimModuleBaysListRequest) LocationN(locationN []string) ApiDcimModuleBaysListRequest { - r.locationN = &locationN +func (r ApiDcimModuleTypesListRequest) IdLt(idLt []int32) ApiDcimModuleTypesListRequest { + r.idLt = &idLt return r } -// Location (ID) -func (r ApiDcimModuleBaysListRequest) LocationId(locationId []int32) ApiDcimModuleBaysListRequest { - r.locationId = &locationId +func (r ApiDcimModuleTypesListRequest) IdLte(idLte []int32) ApiDcimModuleTypesListRequest { + r.idLte = &idLte return r } -// Location (ID) -func (r ApiDcimModuleBaysListRequest) LocationIdN(locationIdN []int32) ApiDcimModuleBaysListRequest { - r.locationIdN = &locationIdN +func (r ApiDcimModuleTypesListRequest) IdN(idN []int32) ApiDcimModuleTypesListRequest { + r.idN = &idN return r } -func (r ApiDcimModuleBaysListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleBaysListRequest { - r.modifiedByRequest = &modifiedByRequest +// Has interfaces +func (r ApiDcimModuleTypesListRequest) Interfaces(interfaces bool) ApiDcimModuleTypesListRequest { + r.interfaces = &interfaces return r } -func (r ApiDcimModuleBaysListRequest) Name(name []string) ApiDcimModuleBaysListRequest { - r.name = &name +func (r ApiDcimModuleTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiDcimModuleBaysListRequest) NameEmpty(nameEmpty bool) ApiDcimModuleBaysListRequest { - r.nameEmpty = &nameEmpty +func (r ApiDcimModuleTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimModuleBaysListRequest) NameIc(nameIc []string) ApiDcimModuleBaysListRequest { - r.nameIc = &nameIc +func (r ApiDcimModuleTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimModuleBaysListRequest) NameIe(nameIe []string) ApiDcimModuleBaysListRequest { - r.nameIe = &nameIe +func (r ApiDcimModuleTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimModuleBaysListRequest) NameIew(nameIew []string) ApiDcimModuleBaysListRequest { - r.nameIew = &nameIew +func (r ApiDcimModuleTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimModuleBaysListRequest) NameIsw(nameIsw []string) ApiDcimModuleBaysListRequest { - r.nameIsw = &nameIsw +func (r ApiDcimModuleTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimModuleBaysListRequest) NameN(nameN []string) ApiDcimModuleBaysListRequest { - r.nameN = &nameN +func (r ApiDcimModuleTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiDcimModuleBaysListRequest) NameNic(nameNic []string) ApiDcimModuleBaysListRequest { - r.nameNic = &nameNic +// Number of results to return per page. +func (r ApiDcimModuleTypesListRequest) Limit(limit int32) ApiDcimModuleTypesListRequest { + r.limit = &limit return r } -func (r ApiDcimModuleBaysListRequest) NameNie(nameNie []string) ApiDcimModuleBaysListRequest { - r.nameNie = &nameNie +// Manufacturer (slug) +func (r ApiDcimModuleTypesListRequest) Manufacturer(manufacturer []string) ApiDcimModuleTypesListRequest { + r.manufacturer = &manufacturer return r } -func (r ApiDcimModuleBaysListRequest) NameNiew(nameNiew []string) ApiDcimModuleBaysListRequest { - r.nameNiew = &nameNiew +// Manufacturer (slug) +func (r ApiDcimModuleTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimModuleTypesListRequest { + r.manufacturerN = &manufacturerN return r } -func (r ApiDcimModuleBaysListRequest) NameNisw(nameNisw []string) ApiDcimModuleBaysListRequest { - r.nameNisw = &nameNisw +// Manufacturer (ID) +func (r ApiDcimModuleTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimModuleTypesListRequest { + r.manufacturerId = &manufacturerId return r } -// The initial index from which to return the results. -func (r ApiDcimModuleBaysListRequest) Offset(offset int32) ApiDcimModuleBaysListRequest { - r.offset = &offset +// Manufacturer (ID) +func (r ApiDcimModuleTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimModuleTypesListRequest { + r.manufacturerIdN = &manufacturerIdN return r } -// Which field to use when ordering the results. -func (r ApiDcimModuleBaysListRequest) Ordering(ordering string) ApiDcimModuleBaysListRequest { - r.ordering = &ordering +func (r ApiDcimModuleTypesListRequest) Model(model []string) ApiDcimModuleTypesListRequest { + r.model = &model return r } -func (r ApiDcimModuleBaysListRequest) Position(position []string) ApiDcimModuleBaysListRequest { - r.position = &position +func (r ApiDcimModuleTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimModuleTypesListRequest { + r.modelEmpty = &modelEmpty return r } -func (r ApiDcimModuleBaysListRequest) PositionEmpty(positionEmpty bool) ApiDcimModuleBaysListRequest { - r.positionEmpty = &positionEmpty +func (r ApiDcimModuleTypesListRequest) ModelIc(modelIc []string) ApiDcimModuleTypesListRequest { + r.modelIc = &modelIc return r } -func (r ApiDcimModuleBaysListRequest) PositionIc(positionIc []string) ApiDcimModuleBaysListRequest { - r.positionIc = &positionIc +func (r ApiDcimModuleTypesListRequest) ModelIe(modelIe []string) ApiDcimModuleTypesListRequest { + r.modelIe = &modelIe return r } -func (r ApiDcimModuleBaysListRequest) PositionIe(positionIe []string) ApiDcimModuleBaysListRequest { - r.positionIe = &positionIe +func (r ApiDcimModuleTypesListRequest) ModelIew(modelIew []string) ApiDcimModuleTypesListRequest { + r.modelIew = &modelIew return r } -func (r ApiDcimModuleBaysListRequest) PositionIew(positionIew []string) ApiDcimModuleBaysListRequest { - r.positionIew = &positionIew +func (r ApiDcimModuleTypesListRequest) ModelIsw(modelIsw []string) ApiDcimModuleTypesListRequest { + r.modelIsw = &modelIsw return r } -func (r ApiDcimModuleBaysListRequest) PositionIsw(positionIsw []string) ApiDcimModuleBaysListRequest { - r.positionIsw = &positionIsw +func (r ApiDcimModuleTypesListRequest) ModelN(modelN []string) ApiDcimModuleTypesListRequest { + r.modelN = &modelN return r } -func (r ApiDcimModuleBaysListRequest) PositionN(positionN []string) ApiDcimModuleBaysListRequest { - r.positionN = &positionN +func (r ApiDcimModuleTypesListRequest) ModelNic(modelNic []string) ApiDcimModuleTypesListRequest { + r.modelNic = &modelNic return r } -func (r ApiDcimModuleBaysListRequest) PositionNic(positionNic []string) ApiDcimModuleBaysListRequest { - r.positionNic = &positionNic +func (r ApiDcimModuleTypesListRequest) ModelNie(modelNie []string) ApiDcimModuleTypesListRequest { + r.modelNie = &modelNie return r } -func (r ApiDcimModuleBaysListRequest) PositionNie(positionNie []string) ApiDcimModuleBaysListRequest { - r.positionNie = &positionNie +func (r ApiDcimModuleTypesListRequest) ModelNiew(modelNiew []string) ApiDcimModuleTypesListRequest { + r.modelNiew = &modelNiew return r } -func (r ApiDcimModuleBaysListRequest) PositionNiew(positionNiew []string) ApiDcimModuleBaysListRequest { - r.positionNiew = &positionNiew +func (r ApiDcimModuleTypesListRequest) ModelNisw(modelNisw []string) ApiDcimModuleTypesListRequest { + r.modelNisw = &modelNisw return r } -func (r ApiDcimModuleBaysListRequest) PositionNisw(positionNisw []string) ApiDcimModuleBaysListRequest { - r.positionNisw = &positionNisw +func (r ApiDcimModuleTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleTypesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Search -func (r ApiDcimModuleBaysListRequest) Q(q string) ApiDcimModuleBaysListRequest { - r.q = &q +// The initial index from which to return the results. +func (r ApiDcimModuleTypesListRequest) Offset(offset int32) ApiDcimModuleTypesListRequest { + r.offset = &offset return r } -// Rack (name) -func (r ApiDcimModuleBaysListRequest) Rack(rack []string) ApiDcimModuleBaysListRequest { - r.rack = &rack +// Which field to use when ordering the results. +func (r ApiDcimModuleTypesListRequest) Ordering(ordering string) ApiDcimModuleTypesListRequest { + r.ordering = &ordering return r } -// Rack (name) -func (r ApiDcimModuleBaysListRequest) RackN(rackN []string) ApiDcimModuleBaysListRequest { - r.rackN = &rackN +func (r ApiDcimModuleTypesListRequest) PartNumber(partNumber []string) ApiDcimModuleTypesListRequest { + r.partNumber = &partNumber return r } -// Rack (ID) -func (r ApiDcimModuleBaysListRequest) RackId(rackId []int32) ApiDcimModuleBaysListRequest { - r.rackId = &rackId +func (r ApiDcimModuleTypesListRequest) PartNumberEmpty(partNumberEmpty bool) ApiDcimModuleTypesListRequest { + r.partNumberEmpty = &partNumberEmpty return r } -// Rack (ID) -func (r ApiDcimModuleBaysListRequest) RackIdN(rackIdN []int32) ApiDcimModuleBaysListRequest { - r.rackIdN = &rackIdN +func (r ApiDcimModuleTypesListRequest) PartNumberIc(partNumberIc []string) ApiDcimModuleTypesListRequest { + r.partNumberIc = &partNumberIc return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) Region(region []int32) ApiDcimModuleBaysListRequest { - r.region = ®ion +func (r ApiDcimModuleTypesListRequest) PartNumberIe(partNumberIe []string) ApiDcimModuleTypesListRequest { + r.partNumberIe = &partNumberIe return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) RegionN(regionN []int32) ApiDcimModuleBaysListRequest { - r.regionN = ®ionN +func (r ApiDcimModuleTypesListRequest) PartNumberIew(partNumberIew []string) ApiDcimModuleTypesListRequest { + r.partNumberIew = &partNumberIew return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionId(regionId []int32) ApiDcimModuleBaysListRequest { - r.regionId = ®ionId +func (r ApiDcimModuleTypesListRequest) PartNumberIsw(partNumberIsw []string) ApiDcimModuleTypesListRequest { + r.partNumberIsw = &partNumberIsw return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimModuleBaysListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimModuleTypesListRequest) PartNumberN(partNumberN []string) ApiDcimModuleTypesListRequest { + r.partNumberN = &partNumberN return r } -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) Role(role []string) ApiDcimModuleBaysListRequest { - r.role = &role +func (r ApiDcimModuleTypesListRequest) PartNumberNic(partNumberNic []string) ApiDcimModuleTypesListRequest { + r.partNumberNic = &partNumberNic return r } -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) RoleN(roleN []string) ApiDcimModuleBaysListRequest { - r.roleN = &roleN +func (r ApiDcimModuleTypesListRequest) PartNumberNie(partNumberNie []string) ApiDcimModuleTypesListRequest { + r.partNumberNie = &partNumberNie return r } -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleId(roleId []int32) ApiDcimModuleBaysListRequest { - r.roleId = &roleId +func (r ApiDcimModuleTypesListRequest) PartNumberNiew(partNumberNiew []string) ApiDcimModuleTypesListRequest { + r.partNumberNiew = &partNumberNiew return r } -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimModuleBaysListRequest { - r.roleIdN = &roleIdN +func (r ApiDcimModuleTypesListRequest) PartNumberNisw(partNumberNisw []string) ApiDcimModuleTypesListRequest { + r.partNumberNisw = &partNumberNisw return r } -// Site name (slug) -func (r ApiDcimModuleBaysListRequest) Site(site []string) ApiDcimModuleBaysListRequest { - r.site = &site +// Has pass-through ports +func (r ApiDcimModuleTypesListRequest) PassThroughPorts(passThroughPorts bool) ApiDcimModuleTypesListRequest { + r.passThroughPorts = &passThroughPorts return r } -// Site name (slug) -func (r ApiDcimModuleBaysListRequest) SiteN(siteN []string) ApiDcimModuleBaysListRequest { - r.siteN = &siteN +// Has power outlets +func (r ApiDcimModuleTypesListRequest) PowerOutlets(powerOutlets bool) ApiDcimModuleTypesListRequest { + r.powerOutlets = &powerOutlets return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimModuleBaysListRequest { - r.siteGroup = &siteGroup +// Has power ports +func (r ApiDcimModuleTypesListRequest) PowerPorts(powerPorts bool) ApiDcimModuleTypesListRequest { + r.powerPorts = &powerPorts return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimModuleBaysListRequest { - r.siteGroupN = &siteGroupN +// Search +func (r ApiDcimModuleTypesListRequest) Q(q string) ApiDcimModuleTypesListRequest { + r.q = &q return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimModuleBaysListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimModuleTypesListRequest) Tag(tag []string) ApiDcimModuleTypesListRequest { + r.tag = &tag return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimModuleBaysListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimModuleTypesListRequest) TagN(tagN []string) ApiDcimModuleTypesListRequest { + r.tagN = &tagN return r } -// Site (ID) -func (r ApiDcimModuleBaysListRequest) SiteId(siteId []int32) ApiDcimModuleBaysListRequest { - r.siteId = &siteId +func (r ApiDcimModuleTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleTypesListRequest { + r.updatedByRequest = &updatedByRequest return r } -// Site (ID) -func (r ApiDcimModuleBaysListRequest) SiteIdN(siteIdN []int32) ApiDcimModuleBaysListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimModuleTypesListRequest) Weight(weight []float64) ApiDcimModuleTypesListRequest { + r.weight = &weight return r } -func (r ApiDcimModuleBaysListRequest) Tag(tag []string) ApiDcimModuleBaysListRequest { - r.tag = &tag +func (r ApiDcimModuleTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimModuleTypesListRequest { + r.weightEmpty = &weightEmpty return r } -func (r ApiDcimModuleBaysListRequest) TagN(tagN []string) ApiDcimModuleBaysListRequest { - r.tagN = &tagN +func (r ApiDcimModuleTypesListRequest) WeightGt(weightGt []float64) ApiDcimModuleTypesListRequest { + r.weightGt = &weightGt return r } -func (r ApiDcimModuleBaysListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleBaysListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimModuleTypesListRequest) WeightGte(weightGte []float64) ApiDcimModuleTypesListRequest { + r.weightGte = &weightGte return r } -// Virtual Chassis -func (r ApiDcimModuleBaysListRequest) VirtualChassis(virtualChassis []string) ApiDcimModuleBaysListRequest { - r.virtualChassis = &virtualChassis +func (r ApiDcimModuleTypesListRequest) WeightLt(weightLt []float64) ApiDcimModuleTypesListRequest { + r.weightLt = &weightLt return r } -// Virtual Chassis -func (r ApiDcimModuleBaysListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimModuleBaysListRequest { - r.virtualChassisN = &virtualChassisN +func (r ApiDcimModuleTypesListRequest) WeightLte(weightLte []float64) ApiDcimModuleTypesListRequest { + r.weightLte = &weightLte return r } -// Virtual Chassis (ID) -func (r ApiDcimModuleBaysListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimModuleBaysListRequest { - r.virtualChassisId = &virtualChassisId +func (r ApiDcimModuleTypesListRequest) WeightN(weightN []float64) ApiDcimModuleTypesListRequest { + r.weightN = &weightN return r } -// Virtual Chassis (ID) -func (r ApiDcimModuleBaysListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimModuleBaysListRequest { - r.virtualChassisIdN = &virtualChassisIdN +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimModuleTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimModuleTypesListRequest { + r.weightUnit = &weightUnit return r } -func (r ApiDcimModuleBaysListRequest) Execute() (*PaginatedModuleBayList, *http.Response, error) { - return r.ApiService.DcimModuleBaysListExecute(r) +func (r ApiDcimModuleTypesListRequest) Execute() (*PaginatedModuleTypeList, *http.Response, error) { + return r.ApiService.DcimModuleTypesListExecute(r) } /* -DcimModuleBaysList Method for DcimModuleBaysList +DcimModuleTypesList Method for DcimModuleTypesList -Get a list of module bay objects. +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 ApiDcimModuleBaysListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesListRequest */ -func (a *DcimAPIService) DcimModuleBaysList(ctx context.Context) ApiDcimModuleBaysListRequest { - return ApiDcimModuleBaysListRequest{ +func (a *DcimAPIService) DcimModuleTypesList(ctx context.Context) ApiDcimModuleTypesListRequest { + return ApiDcimModuleTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleBayList -func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListRequest) (*PaginatedModuleBayList, *http.Response, error) { +// @return PaginatedModuleTypeList +func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequest) (*PaginatedModuleTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleBayList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/" + localVarPath := localBasePath + "/api/dcim/module-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "form", "") + } + if r.consolePorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "form", "") + } + if r.consoleServerPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -61459,10 +75939,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -61470,10 +75950,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -61481,10 +75961,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -61492,10 +75972,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -61503,10 +75983,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -61514,38 +75994,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -61553,10 +76033,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -61564,10 +76044,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -61575,10 +76055,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -61586,10 +76066,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -61597,10 +76077,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -61608,10 +76088,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -61619,10 +76099,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -61630,98 +76110,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } - } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -61729,24 +76121,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -61754,10 +76146,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -61765,10 +76157,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -61776,10 +76168,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -61787,156 +76179,24 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.installedModuleId != nil { - t := *r.installedModuleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id", t, "multi") - } - } - if r.installedModuleIdN != nil { - t := *r.installedModuleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "installed_module_id__n", t, "multi") - } - } - if r.label != nil { - t := *r.label - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") - } - } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") - } - } - if r.labelIe != nil { - t := *r.labelIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") - } - } - if r.labelIew != nil { - t := *r.labelIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") - } - } - if r.labelIsw != nil { - t := *r.labelIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") - } - } - if r.labelN != nil { - t := *r.labelN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") - } - } - if r.labelNic != nil { - t := *r.labelNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") - } - } - if r.labelNie != nil { - t := *r.labelNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") - } - } - if r.labelNiew != nil { - t := *r.labelNiew - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") - } + if r.interfaces != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -61944,10 +76204,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -61955,10 +76215,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -61966,10 +76226,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -61977,10 +76237,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -61988,10 +76248,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -61999,585 +76259,402 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.location != nil { - t := *r.location + if r.manufacturer != nil { + t := *r.manufacturer 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") } } - if r.locationN != nil { - t := *r.locationN + if r.manufacturerN != nil { + t := *r.manufacturerN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") } } - if r.locationId != nil { - t := *r.locationId + if r.manufacturerId != nil { + t := *r.manufacturerId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") } } - if r.locationIdN != nil { - t := *r.locationIdN + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + if r.model != nil { + t := *r.model 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.modelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "form", "") } - if r.nameIc != nil { - t := *r.nameIc + if r.modelIc != nil { + t := *r.modelIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.modelIe != nil { + t := *r.modelIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.modelIew != nil { + t := *r.modelIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.modelIsw != nil { + t := *r.modelIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.modelN != nil { + t := *r.modelN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.modelNic != nil { + t := *r.modelNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.modelNie != nil { + t := *r.modelNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.modelNiew != nil { + t := *r.modelNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.modelNisw != nil { + t := *r.modelNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "form", "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.position != nil { - t := *r.position - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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.positionIc != nil { - t := *r.positionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__ic", t, "multi") - } - } - if r.positionIe != nil { - t := *r.positionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__ie", t, "multi") - } - } - if r.positionIew != nil { - t := *r.positionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__iew", t, "multi") - } - } - if r.positionIsw != nil { - t := *r.positionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__isw", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.positionN != nil { - t := *r.positionN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "multi") - } - } - if r.positionNic != nil { - t := *r.positionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nic", t, "multi") - } - } - if r.positionNie != nil { - t := *r.positionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nie", t, "multi") - } - } - if r.positionNiew != nil { - t := *r.positionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__niew", t, "multi") - } - } - if r.positionNisw != nil { - t := *r.positionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__nisw", t, "multi") - } - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rack != nil { - t := *r.rack + if r.partNumber != nil { + t := *r.partNumber if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", t, "form", "multi") } } - if r.rackN != nil { - t := *r.rackN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") - } + if r.partNumberEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__empty", r.partNumberEmpty, "form", "") } - if r.rackId != nil { - t := *r.rackId + if r.partNumberIc != nil { + t := *r.partNumberIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + if r.partNumberIe != nil { + t := *r.partNumberIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", t, "form", "multi") } } - if r.region != nil { - t := *r.region + if r.partNumberIew != nil { + t := *r.partNumberIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + if r.partNumberIsw != nil { + t := *r.partNumberIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + if r.partNumberN != nil { + t := *r.partNumberN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + if r.partNumberNic != nil { + t := *r.partNumberNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", t, "form", "multi") } } - if r.role != nil { - t := *r.role + if r.partNumberNie != nil { + t := *r.partNumberNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + if r.partNumberNiew != nil { + t := *r.partNumberNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + if r.partNumberNisw != nil { + t := *r.partNumberNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", t, "form", "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.passThroughPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pass_through_ports", r.passThroughPorts, "form", "") } - 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.powerOutlets != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "form", "") } - 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.powerPorts != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "form", "") } - 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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - if r.siteId != nil { - t := *r.siteId + if r.weight != nil { + t := *r.weight 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "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.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.weightGte != nil { + t := *r.weightGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualChassis != nil { - t := *r.virtualChassis + if r.weightLt != nil { + t := *r.weightLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") } } - if r.virtualChassisN != nil { - t := *r.virtualChassisN + if r.weightLte != nil { + t := *r.weightLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId + if r.weightN != nil { + t := *r.weightN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") } } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") - } + if r.weightUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -62647,56 +76724,55 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBaysPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedModuleBayRequest *PatchedModuleBayRequest +type ApiDcimModuleTypesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableModuleTypeRequest *PatchedWritableModuleTypeRequest } -func (r ApiDcimModuleBaysPartialUpdateRequest) PatchedModuleBayRequest(patchedModuleBayRequest PatchedModuleBayRequest) ApiDcimModuleBaysPartialUpdateRequest { - r.patchedModuleBayRequest = &patchedModuleBayRequest +func (r ApiDcimModuleTypesPartialUpdateRequest) PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest PatchedWritableModuleTypeRequest) ApiDcimModuleTypesPartialUpdateRequest { + r.patchedWritableModuleTypeRequest = &patchedWritableModuleTypeRequest return r } -func (r ApiDcimModuleBaysPartialUpdateRequest) Execute() (*ModuleBay, *http.Response, error) { - return r.ApiService.DcimModuleBaysPartialUpdateExecute(r) +func (r ApiDcimModuleTypesPartialUpdateRequest) Execute() (*ModuleType, *http.Response, error) { + return r.ApiService.DcimModuleTypesPartialUpdateExecute(r) } /* -DcimModuleBaysPartialUpdate Method for DcimModuleBaysPartialUpdate +DcimModuleTypesPartialUpdate Method for DcimModuleTypesPartialUpdate -Patch a module bay object. +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 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 type. + @return ApiDcimModuleTypesPartialUpdateRequest */ -func (a *DcimAPIService) DcimModuleBaysPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBaysPartialUpdateRequest { - return ApiDcimModuleBaysPartialUpdateRequest{ +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 ModuleBay -func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleTypesPartialUpdateRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/module-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -62721,7 +76797,7 @@ func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedModuleBayRequest + localVarPostBody = r.patchedWritableModuleTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -62773,50 +76849,49 @@ func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBaysRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModuleTypesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModuleBaysRetrieveRequest) Execute() (*ModuleBay, *http.Response, error) { - return r.ApiService.DcimModuleBaysRetrieveExecute(r) +func (r ApiDcimModuleTypesRetrieveRequest) Execute() (*ModuleType, *http.Response, error) { + return r.ApiService.DcimModuleTypesRetrieveExecute(r) } /* -DcimModuleBaysRetrieve Method for DcimModuleBaysRetrieve +DcimModuleTypesRetrieve Method for DcimModuleTypesRetrieve -Get a module bay object. +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 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 type. + @return ApiDcimModuleTypesRetrieveRequest */ -func (a *DcimAPIService) DcimModuleBaysRetrieve(ctx context.Context, id int32) ApiDcimModuleBaysRetrieveRequest { - return ApiDcimModuleBaysRetrieveRequest{ +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 ModuleBay -func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetrieveRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/module-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -62891,63 +76966,62 @@ func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleBaysUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - moduleBayRequest *ModuleBayRequest +type ApiDcimModuleTypesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableModuleTypeRequest *WritableModuleTypeRequest } -func (r ApiDcimModuleBaysUpdateRequest) ModuleBayRequest(moduleBayRequest ModuleBayRequest) ApiDcimModuleBaysUpdateRequest { - r.moduleBayRequest = &moduleBayRequest +func (r ApiDcimModuleTypesUpdateRequest) WritableModuleTypeRequest(writableModuleTypeRequest WritableModuleTypeRequest) ApiDcimModuleTypesUpdateRequest { + r.writableModuleTypeRequest = &writableModuleTypeRequest return r } -func (r ApiDcimModuleBaysUpdateRequest) Execute() (*ModuleBay, *http.Response, error) { - return r.ApiService.DcimModuleBaysUpdateExecute(r) +func (r ApiDcimModuleTypesUpdateRequest) Execute() (*ModuleType, *http.Response, error) { + return r.ApiService.DcimModuleTypesUpdateExecute(r) } /* -DcimModuleBaysUpdate Method for DcimModuleBaysUpdate +DcimModuleTypesUpdate Method for DcimModuleTypesUpdate -Put a module bay object. +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 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 type. + @return ApiDcimModuleTypesUpdateRequest */ -func (a *DcimAPIService) DcimModuleBaysUpdate(ctx context.Context, id int32) ApiDcimModuleBaysUpdateRequest { - return ApiDcimModuleBaysUpdateRequest{ +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 ModuleBay -func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdateRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-bays/{id}/" + localVarPath := localBasePath + "/api/dcim/module-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.moduleBayRequest == nil { - return localVarReturnValue, nil, reportError("moduleBayRequest is required and must be specified") + if r.writableModuleTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableModuleTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -62968,7 +77042,7 @@ func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleBayRequest + localVarPostBody = r.writableModuleTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -63020,56 +77094,56 @@ func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleTypeRequest *[]ModuleTypeRequest +type ApiDcimModulesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + moduleRequest *[]ModuleRequest } -func (r ApiDcimModuleTypesBulkDestroyRequest) ModuleTypeRequest(moduleTypeRequest []ModuleTypeRequest) ApiDcimModuleTypesBulkDestroyRequest { - r.moduleTypeRequest = &moduleTypeRequest +func (r ApiDcimModulesBulkDestroyRequest) ModuleRequest(moduleRequest []ModuleRequest) ApiDcimModulesBulkDestroyRequest { + r.moduleRequest = &moduleRequest return r } -func (r ApiDcimModuleTypesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModuleTypesBulkDestroyExecute(r) +func (r ApiDcimModulesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModulesBulkDestroyExecute(r) } /* -DcimModuleTypesBulkDestroy Method for DcimModuleTypesBulkDestroy +DcimModulesBulkDestroy Method for DcimModulesBulkDestroy -Delete a list of module type objects. +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 ApiDcimModuleTypesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesBulkDestroyRequest */ -func (a *DcimAPIService) DcimModuleTypesBulkDestroy(ctx context.Context) ApiDcimModuleTypesBulkDestroyRequest { - return ApiDcimModuleTypesBulkDestroyRequest{ +func (a *DcimAPIService) DcimModulesBulkDestroy(ctx context.Context) ApiDcimModulesBulkDestroyRequest { + return ApiDcimModulesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesBulkDestroyRequest) (*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.DcimModuleTypesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/" + localVarPath := localBasePath + "/api/dcim/modules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleTypeRequest == nil { - return nil, reportError("moduleTypeRequest is required and must be specified") + if r.moduleRequest == nil { + return nil, reportError("moduleRequest is required and must be specified") } // to determine the Content-Type header @@ -63090,7 +77164,7 @@ func (a *DcimAPIService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleTypeRequest + localVarPostBody = r.moduleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -63133,59 +77207,58 @@ func (a *DcimAPIService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesB return localVarHTTPResponse, nil } -type ApiDcimModuleTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleTypeRequest *[]ModuleTypeRequest +type ApiDcimModulesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleRequest *[]ModuleRequest } -func (r ApiDcimModuleTypesBulkPartialUpdateRequest) ModuleTypeRequest(moduleTypeRequest []ModuleTypeRequest) ApiDcimModuleTypesBulkPartialUpdateRequest { - r.moduleTypeRequest = &moduleTypeRequest +func (r ApiDcimModulesBulkPartialUpdateRequest) ModuleRequest(moduleRequest []ModuleRequest) ApiDcimModulesBulkPartialUpdateRequest { + r.moduleRequest = &moduleRequest return r } -func (r ApiDcimModuleTypesBulkPartialUpdateRequest) Execute() ([]ModuleType, *http.Response, error) { - return r.ApiService.DcimModuleTypesBulkPartialUpdateExecute(r) +func (r ApiDcimModulesBulkPartialUpdateRequest) Execute() ([]Module, *http.Response, error) { + return r.ApiService.DcimModulesBulkPartialUpdateExecute(r) } /* -DcimModuleTypesBulkPartialUpdate Method for DcimModuleTypesBulkPartialUpdate +DcimModulesBulkPartialUpdate Method for DcimModulesBulkPartialUpdate -Patch a list of module type objects. +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 ApiDcimModuleTypesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypesBulkPartialUpdateRequest { - return ApiDcimModuleTypesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimModulesBulkPartialUpdate(ctx context.Context) ApiDcimModulesBulkPartialUpdateRequest { + return ApiDcimModulesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleType -func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModuleTypesBulkPartialUpdateRequest) ([]ModuleType, *http.Response, error) { +// @return []Module +func (a *DcimAPIService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBulkPartialUpdateRequest) ([]Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/" + localVarPath := localBasePath + "/api/dcim/modules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleTypeRequest == nil { - return localVarReturnValue, nil, reportError("moduleTypeRequest is required and must be specified") + if r.moduleRequest == nil { + return localVarReturnValue, nil, reportError("moduleRequest is required and must be specified") } // to determine the Content-Type header @@ -63206,7 +77279,7 @@ func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModule localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleTypeRequest + localVarPostBody = r.moduleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -63258,59 +77331,58 @@ func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModule return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleTypeRequest *[]ModuleTypeRequest +type ApiDcimModulesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + moduleRequest *[]ModuleRequest } -func (r ApiDcimModuleTypesBulkUpdateRequest) ModuleTypeRequest(moduleTypeRequest []ModuleTypeRequest) ApiDcimModuleTypesBulkUpdateRequest { - r.moduleTypeRequest = &moduleTypeRequest +func (r ApiDcimModulesBulkUpdateRequest) ModuleRequest(moduleRequest []ModuleRequest) ApiDcimModulesBulkUpdateRequest { + r.moduleRequest = &moduleRequest return r } -func (r ApiDcimModuleTypesBulkUpdateRequest) Execute() ([]ModuleType, *http.Response, error) { - return r.ApiService.DcimModuleTypesBulkUpdateExecute(r) +func (r ApiDcimModulesBulkUpdateRequest) Execute() ([]Module, *http.Response, error) { + return r.ApiService.DcimModulesBulkUpdateExecute(r) } /* -DcimModuleTypesBulkUpdate Method for DcimModuleTypesBulkUpdate - -Put a list of module type objects. +DcimModulesBulkUpdate Method for DcimModulesBulkUpdate - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleTypesBulkUpdateRequest +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 */ -func (a *DcimAPIService) DcimModuleTypesBulkUpdate(ctx context.Context) ApiDcimModuleTypesBulkUpdateRequest { - return ApiDcimModuleTypesBulkUpdateRequest{ +func (a *DcimAPIService) DcimModulesBulkUpdate(ctx context.Context) ApiDcimModulesBulkUpdateRequest { + return ApiDcimModulesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleType -func (a *DcimAPIService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBulkUpdateRequest) ([]ModuleType, *http.Response, error) { +// @return []Module +func (a *DcimAPIService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdateRequest) ([]Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/" + localVarPath := localBasePath + "/api/dcim/modules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleTypeRequest == nil { - return localVarReturnValue, nil, reportError("moduleTypeRequest is required and must be specified") + if r.moduleRequest == nil { + return localVarReturnValue, nil, reportError("moduleRequest is required and must be specified") } // to determine the Content-Type header @@ -63331,7 +77403,7 @@ func (a *DcimAPIService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleTypeRequest + localVarPostBody = r.moduleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -63383,59 +77455,58 @@ func (a *DcimAPIService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleTypesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableModuleTypeRequest *WritableModuleTypeRequest +type ApiDcimModulesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableModuleRequest *WritableModuleRequest } -func (r ApiDcimModuleTypesCreateRequest) WritableModuleTypeRequest(writableModuleTypeRequest WritableModuleTypeRequest) ApiDcimModuleTypesCreateRequest { - r.writableModuleTypeRequest = &writableModuleTypeRequest +func (r ApiDcimModulesCreateRequest) WritableModuleRequest(writableModuleRequest WritableModuleRequest) ApiDcimModulesCreateRequest { + r.writableModuleRequest = &writableModuleRequest return r } -func (r ApiDcimModuleTypesCreateRequest) Execute() (*ModuleType, *http.Response, error) { - return r.ApiService.DcimModuleTypesCreateExecute(r) +func (r ApiDcimModulesCreateRequest) Execute() (*Module, *http.Response, error) { + return r.ApiService.DcimModulesCreateExecute(r) } /* -DcimModuleTypesCreate Method for DcimModuleTypesCreate +DcimModulesCreate Method for DcimModulesCreate -Post a list of module type objects. +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 ApiDcimModuleTypesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesCreateRequest */ -func (a *DcimAPIService) DcimModuleTypesCreate(ctx context.Context) ApiDcimModuleTypesCreateRequest { - return ApiDcimModuleTypesCreateRequest{ +func (a *DcimAPIService) DcimModulesCreate(ctx context.Context) ApiDcimModulesCreateRequest { + return ApiDcimModulesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ModuleType -func (a *DcimAPIService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreateRequest) (*ModuleType, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/" + localVarPath := localBasePath + "/api/dcim/modules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableModuleTypeRequest == nil { - return localVarReturnValue, nil, reportError("writableModuleTypeRequest is required and must be specified") + if r.writableModuleRequest == nil { + return localVarReturnValue, nil, reportError("writableModuleRequest is required and must be specified") } // to determine the Content-Type header @@ -63456,7 +77527,7 @@ func (a *DcimAPIService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableModuleTypeRequest + localVarPostBody = r.writableModuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -63508,47 +77579,47 @@ func (a *DcimAPIService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleTypesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModulesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModuleTypesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModuleTypesDestroyExecute(r) +func (r ApiDcimModulesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimModulesDestroyExecute(r) } /* -DcimModuleTypesDestroy Method for DcimModuleTypesDestroy +DcimModulesDestroy Method for DcimModulesDestroy -Delete a module type object. +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 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. + @return ApiDcimModulesDestroyRequest */ -func (a *DcimAPIService) DcimModuleTypesDestroy(ctx context.Context, id int32) ApiDcimModuleTypesDestroyRequest { - return ApiDcimModuleTypesDestroyRequest{ +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) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestroyRequest) (*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.DcimModuleTypesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/{id}/" + localVarPath := localBasePath + "/api/dcim/modules/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -63614,575 +77685,703 @@ func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestr return localVarHTTPResponse, nil } -type ApiDcimModuleTypesListRequest struct { - ctx context.Context - ApiService *DcimAPIService - consolePorts *bool - consoleServerPorts *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 - 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 *DcimDeviceTypesListWeightUnitParameter - weightUnitN *DcimDeviceTypesListWeightUnitParameter +type ApiDcimModulesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]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 *[]string + moduleBayIdN *[]string + 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 + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + updatedByRequest *string } -// Has console ports -func (r ApiDcimModuleTypesListRequest) ConsolePorts(consolePorts bool) ApiDcimModuleTypesListRequest { - r.consolePorts = &consolePorts +func (r ApiDcimModulesListRequest) AssetTag(assetTag []string) ApiDcimModulesListRequest { + r.assetTag = &assetTag return r } -// Has console server ports -func (r ApiDcimModuleTypesListRequest) ConsoleServerPorts(consoleServerPorts bool) ApiDcimModuleTypesListRequest { - r.consoleServerPorts = &consoleServerPorts +func (r ApiDcimModulesListRequest) AssetTagEmpty(assetTagEmpty bool) ApiDcimModulesListRequest { + r.assetTagEmpty = &assetTagEmpty return r } -func (r ApiDcimModuleTypesListRequest) Created(created []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) AssetTagIc(assetTagIc []string) ApiDcimModulesListRequest { + r.assetTagIc = &assetTagIc + return r +} + +func (r ApiDcimModulesListRequest) AssetTagIe(assetTagIe []string) ApiDcimModulesListRequest { + r.assetTagIe = &assetTagIe + return r +} + +func (r ApiDcimModulesListRequest) AssetTagIew(assetTagIew []string) ApiDcimModulesListRequest { + r.assetTagIew = &assetTagIew + return r +} + +func (r ApiDcimModulesListRequest) AssetTagIsw(assetTagIsw []string) ApiDcimModulesListRequest { + r.assetTagIsw = &assetTagIsw + return r +} + +func (r ApiDcimModulesListRequest) AssetTagN(assetTagN []string) ApiDcimModulesListRequest { + r.assetTagN = &assetTagN + return r +} + +func (r ApiDcimModulesListRequest) AssetTagNic(assetTagNic []string) ApiDcimModulesListRequest { + r.assetTagNic = &assetTagNic + return r +} + +func (r ApiDcimModulesListRequest) AssetTagNie(assetTagNie []string) ApiDcimModulesListRequest { + r.assetTagNie = &assetTagNie + return r +} + +func (r ApiDcimModulesListRequest) AssetTagNiew(assetTagNiew []string) ApiDcimModulesListRequest { + r.assetTagNiew = &assetTagNiew + return r +} + +func (r ApiDcimModulesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimModulesListRequest { + r.assetTagNisw = &assetTagNisw + return r +} + +func (r ApiDcimModulesListRequest) Created(created []time.Time) ApiDcimModulesListRequest { r.created = &created return r } -func (r ApiDcimModuleTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModulesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimModuleTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModulesListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimModuleTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) CreatedGte(createdGte []time.Time) ApiDcimModulesListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimModuleTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) CreatedLt(createdLt []time.Time) ApiDcimModulesListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimModuleTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) CreatedLte(createdLte []time.Time) ApiDcimModulesListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimModuleTypesListRequest) CreatedN(createdN []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) CreatedN(createdN []time.Time) ApiDcimModulesListRequest { r.createdN = &createdN return r } -func (r ApiDcimModuleTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) CreatedByRequest(createdByRequest string) ApiDcimModulesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimModuleTypesListRequest) Description(description []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) Description(description []string) ApiDcimModulesListRequest { r.description = &description return r } -func (r ApiDcimModuleTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModulesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimModuleTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModulesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimModuleTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModulesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimModuleTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModulesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimModuleTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModulesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimModuleTypesListRequest) DescriptionN(descriptionN []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionN(descriptionN []string) ApiDcimModulesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimModuleTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModulesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimModuleTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModulesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimModuleTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModulesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimModuleTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModulesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimModuleTypesListRequest) Id(id []int32) ApiDcimModuleTypesListRequest { +// Device (ID) +func (r ApiDcimModulesListRequest) DeviceId(deviceId []int32) ApiDcimModulesListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimModulesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModulesListRequest { + r.deviceIdN = &deviceIdN + return r +} + +func (r ApiDcimModulesListRequest) Id(id []int32) ApiDcimModulesListRequest { r.id = &id return r } -func (r ApiDcimModuleTypesListRequest) IdEmpty(idEmpty bool) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) IdEmpty(idEmpty bool) ApiDcimModulesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimModuleTypesListRequest) IdGt(idGt []int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) IdGt(idGt []int32) ApiDcimModulesListRequest { r.idGt = &idGt return r } -func (r ApiDcimModuleTypesListRequest) IdGte(idGte []int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) IdGte(idGte []int32) ApiDcimModulesListRequest { r.idGte = &idGte return r } -func (r ApiDcimModuleTypesListRequest) IdLt(idLt []int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) IdLt(idLt []int32) ApiDcimModulesListRequest { r.idLt = &idLt return r } -func (r ApiDcimModuleTypesListRequest) IdLte(idLte []int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) IdLte(idLte []int32) ApiDcimModulesListRequest { r.idLte = &idLte return r } -func (r ApiDcimModuleTypesListRequest) IdN(idN []int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) IdN(idN []int32) ApiDcimModulesListRequest { r.idN = &idN return r } -// Has interfaces -func (r ApiDcimModuleTypesListRequest) Interfaces(interfaces bool) ApiDcimModuleTypesListRequest { - r.interfaces = &interfaces - return r -} - -func (r ApiDcimModuleTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModulesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimModuleTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModulesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimModuleTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModulesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimModuleTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModulesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimModuleTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModulesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimModuleTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModulesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimModuleTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModulesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimModuleTypesListRequest) Limit(limit int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) Limit(limit int32) ApiDcimModulesListRequest { r.limit = &limit return r } // Manufacturer (slug) -func (r ApiDcimModuleTypesListRequest) Manufacturer(manufacturer []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) Manufacturer(manufacturer []string) ApiDcimModulesListRequest { r.manufacturer = &manufacturer return r } // Manufacturer (slug) -func (r ApiDcimModuleTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) ManufacturerN(manufacturerN []string) ApiDcimModulesListRequest { r.manufacturerN = &manufacturerN return r } // Manufacturer (ID) -func (r ApiDcimModuleTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimModulesListRequest { r.manufacturerId = &manufacturerId return r } // Manufacturer (ID) -func (r ApiDcimModuleTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimModulesListRequest { r.manufacturerIdN = &manufacturerIdN return r } -func (r ApiDcimModuleTypesListRequest) Model(model []string) ApiDcimModuleTypesListRequest { - r.model = &model - return r -} - -func (r ApiDcimModuleTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimModuleTypesListRequest { - r.modelEmpty = &modelEmpty - return r -} - -func (r ApiDcimModuleTypesListRequest) ModelIc(modelIc []string) ApiDcimModuleTypesListRequest { - r.modelIc = &modelIc - return r -} - -func (r ApiDcimModuleTypesListRequest) ModelIe(modelIe []string) ApiDcimModuleTypesListRequest { - r.modelIe = &modelIe - return r -} - -func (r ApiDcimModuleTypesListRequest) ModelIew(modelIew []string) ApiDcimModuleTypesListRequest { - r.modelIew = &modelIew - return r -} - -func (r ApiDcimModuleTypesListRequest) ModelIsw(modelIsw []string) ApiDcimModuleTypesListRequest { - r.modelIsw = &modelIsw +func (r ApiDcimModulesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModulesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimModuleTypesListRequest) ModelN(modelN []string) ApiDcimModuleTypesListRequest { - r.modelN = &modelN +func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []string) ApiDcimModulesListRequest { + r.moduleBayId = &moduleBayId return r } -func (r ApiDcimModuleTypesListRequest) ModelNic(modelNic []string) ApiDcimModuleTypesListRequest { - r.modelNic = &modelNic +func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []string) ApiDcimModulesListRequest { + r.moduleBayIdN = &moduleBayIdN return r } -func (r ApiDcimModuleTypesListRequest) ModelNie(modelNie []string) ApiDcimModuleTypesListRequest { - r.modelNie = &modelNie +// Module type (model) +func (r ApiDcimModulesListRequest) ModuleType(moduleType []string) ApiDcimModulesListRequest { + r.moduleType = &moduleType return r } -func (r ApiDcimModuleTypesListRequest) ModelNiew(modelNiew []string) ApiDcimModuleTypesListRequest { - r.modelNiew = &modelNiew +// Module type (model) +func (r ApiDcimModulesListRequest) ModuleTypeN(moduleTypeN []string) ApiDcimModulesListRequest { + r.moduleTypeN = &moduleTypeN return r } -func (r ApiDcimModuleTypesListRequest) ModelNisw(modelNisw []string) ApiDcimModuleTypesListRequest { - r.modelNisw = &modelNisw +// Module type (ID) +func (r ApiDcimModulesListRequest) ModuleTypeId(moduleTypeId []int32) ApiDcimModulesListRequest { + r.moduleTypeId = &moduleTypeId return r } -func (r ApiDcimModuleTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleTypesListRequest { - r.modifiedByRequest = &modifiedByRequest +// Module type (ID) +func (r ApiDcimModulesListRequest) ModuleTypeIdN(moduleTypeIdN []int32) ApiDcimModulesListRequest { + r.moduleTypeIdN = &moduleTypeIdN return r } // The initial index from which to return the results. -func (r ApiDcimModuleTypesListRequest) Offset(offset int32) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) Offset(offset int32) ApiDcimModulesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimModuleTypesListRequest) Ordering(ordering string) ApiDcimModuleTypesListRequest { +func (r ApiDcimModulesListRequest) Ordering(ordering string) ApiDcimModulesListRequest { r.ordering = &ordering return r } -func (r ApiDcimModuleTypesListRequest) PartNumber(partNumber []string) ApiDcimModuleTypesListRequest { - r.partNumber = &partNumber - return r -} - -func (r ApiDcimModuleTypesListRequest) PartNumberEmpty(partNumberEmpty bool) ApiDcimModuleTypesListRequest { - r.partNumberEmpty = &partNumberEmpty +// Search +func (r ApiDcimModulesListRequest) Q(q string) ApiDcimModulesListRequest { + r.q = &q return r } -func (r ApiDcimModuleTypesListRequest) PartNumberIc(partNumberIc []string) ApiDcimModuleTypesListRequest { - r.partNumberIc = &partNumberIc +func (r ApiDcimModulesListRequest) Serial(serial []string) ApiDcimModulesListRequest { + r.serial = &serial return r } -func (r ApiDcimModuleTypesListRequest) PartNumberIe(partNumberIe []string) ApiDcimModuleTypesListRequest { - r.partNumberIe = &partNumberIe +func (r ApiDcimModulesListRequest) SerialEmpty(serialEmpty bool) ApiDcimModulesListRequest { + r.serialEmpty = &serialEmpty return r } -func (r ApiDcimModuleTypesListRequest) PartNumberIew(partNumberIew []string) ApiDcimModuleTypesListRequest { - r.partNumberIew = &partNumberIew +func (r ApiDcimModulesListRequest) SerialIc(serialIc []string) ApiDcimModulesListRequest { + r.serialIc = &serialIc return r } -func (r ApiDcimModuleTypesListRequest) PartNumberIsw(partNumberIsw []string) ApiDcimModuleTypesListRequest { - r.partNumberIsw = &partNumberIsw +func (r ApiDcimModulesListRequest) SerialIe(serialIe []string) ApiDcimModulesListRequest { + r.serialIe = &serialIe return r } -func (r ApiDcimModuleTypesListRequest) PartNumberN(partNumberN []string) ApiDcimModuleTypesListRequest { - r.partNumberN = &partNumberN +func (r ApiDcimModulesListRequest) SerialIew(serialIew []string) ApiDcimModulesListRequest { + r.serialIew = &serialIew return r } -func (r ApiDcimModuleTypesListRequest) PartNumberNic(partNumberNic []string) ApiDcimModuleTypesListRequest { - r.partNumberNic = &partNumberNic +func (r ApiDcimModulesListRequest) SerialIsw(serialIsw []string) ApiDcimModulesListRequest { + r.serialIsw = &serialIsw return r } -func (r ApiDcimModuleTypesListRequest) PartNumberNie(partNumberNie []string) ApiDcimModuleTypesListRequest { - r.partNumberNie = &partNumberNie +func (r ApiDcimModulesListRequest) SerialN(serialN []string) ApiDcimModulesListRequest { + r.serialN = &serialN return r } -func (r ApiDcimModuleTypesListRequest) PartNumberNiew(partNumberNiew []string) ApiDcimModuleTypesListRequest { - r.partNumberNiew = &partNumberNiew +func (r ApiDcimModulesListRequest) SerialNic(serialNic []string) ApiDcimModulesListRequest { + r.serialNic = &serialNic return r } -func (r ApiDcimModuleTypesListRequest) PartNumberNisw(partNumberNisw []string) ApiDcimModuleTypesListRequest { - r.partNumberNisw = &partNumberNisw +func (r ApiDcimModulesListRequest) SerialNie(serialNie []string) ApiDcimModulesListRequest { + r.serialNie = &serialNie return r } -// Has pass-through ports -func (r ApiDcimModuleTypesListRequest) PassThroughPorts(passThroughPorts bool) ApiDcimModuleTypesListRequest { - r.passThroughPorts = &passThroughPorts +func (r ApiDcimModulesListRequest) SerialNiew(serialNiew []string) ApiDcimModulesListRequest { + r.serialNiew = &serialNiew return r } -// Has power outlets -func (r ApiDcimModuleTypesListRequest) PowerOutlets(powerOutlets bool) ApiDcimModuleTypesListRequest { - r.powerOutlets = &powerOutlets +func (r ApiDcimModulesListRequest) SerialNisw(serialNisw []string) ApiDcimModulesListRequest { + r.serialNisw = &serialNisw return r } -// Has power ports -func (r ApiDcimModuleTypesListRequest) PowerPorts(powerPorts bool) ApiDcimModuleTypesListRequest { - r.powerPorts = &powerPorts +func (r ApiDcimModulesListRequest) Status(status []string) ApiDcimModulesListRequest { + r.status = &status return r } -// Search -func (r ApiDcimModuleTypesListRequest) Q(q string) ApiDcimModuleTypesListRequest { - r.q = &q +func (r ApiDcimModulesListRequest) StatusEmpty(statusEmpty bool) ApiDcimModulesListRequest { + r.statusEmpty = &statusEmpty return r } -func (r ApiDcimModuleTypesListRequest) Tag(tag []string) ApiDcimModuleTypesListRequest { - r.tag = &tag +func (r ApiDcimModulesListRequest) StatusIc(statusIc []string) ApiDcimModulesListRequest { + r.statusIc = &statusIc return r } -func (r ApiDcimModuleTypesListRequest) TagN(tagN []string) ApiDcimModuleTypesListRequest { - r.tagN = &tagN +func (r ApiDcimModulesListRequest) StatusIe(statusIe []string) ApiDcimModulesListRequest { + r.statusIe = &statusIe return r } -func (r ApiDcimModuleTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModuleTypesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimModulesListRequest) StatusIew(statusIew []string) ApiDcimModulesListRequest { + r.statusIew = &statusIew return r } -func (r ApiDcimModuleTypesListRequest) Weight(weight []float64) ApiDcimModuleTypesListRequest { - r.weight = &weight +func (r ApiDcimModulesListRequest) StatusIsw(statusIsw []string) ApiDcimModulesListRequest { + r.statusIsw = &statusIsw return r } -func (r ApiDcimModuleTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimModuleTypesListRequest { - r.weightEmpty = &weightEmpty +func (r ApiDcimModulesListRequest) StatusN(statusN []string) ApiDcimModulesListRequest { + r.statusN = &statusN return r } -func (r ApiDcimModuleTypesListRequest) WeightGt(weightGt []float64) ApiDcimModuleTypesListRequest { - r.weightGt = &weightGt +func (r ApiDcimModulesListRequest) StatusNic(statusNic []string) ApiDcimModulesListRequest { + r.statusNic = &statusNic return r } -func (r ApiDcimModuleTypesListRequest) WeightGte(weightGte []float64) ApiDcimModuleTypesListRequest { - r.weightGte = &weightGte +func (r ApiDcimModulesListRequest) StatusNie(statusNie []string) ApiDcimModulesListRequest { + r.statusNie = &statusNie return r } -func (r ApiDcimModuleTypesListRequest) WeightLt(weightLt []float64) ApiDcimModuleTypesListRequest { - r.weightLt = &weightLt +func (r ApiDcimModulesListRequest) StatusNiew(statusNiew []string) ApiDcimModulesListRequest { + r.statusNiew = &statusNiew return r } -func (r ApiDcimModuleTypesListRequest) WeightLte(weightLte []float64) ApiDcimModuleTypesListRequest { - r.weightLte = &weightLte +func (r ApiDcimModulesListRequest) StatusNisw(statusNisw []string) ApiDcimModulesListRequest { + r.statusNisw = &statusNisw return r } -func (r ApiDcimModuleTypesListRequest) WeightN(weightN []float64) ApiDcimModuleTypesListRequest { - r.weightN = &weightN +func (r ApiDcimModulesListRequest) Tag(tag []string) ApiDcimModulesListRequest { + r.tag = &tag return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimModuleTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimModuleTypesListRequest { - r.weightUnit = &weightUnit +func (r ApiDcimModulesListRequest) TagN(tagN []string) ApiDcimModulesListRequest { + r.tagN = &tagN return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimModuleTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimModuleTypesListRequest { - r.weightUnitN = &weightUnitN +func (r ApiDcimModulesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModulesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimModuleTypesListRequest) Execute() (*PaginatedModuleTypeList, *http.Response, error) { - return r.ApiService.DcimModuleTypesListExecute(r) +func (r ApiDcimModulesListRequest) Execute() (*PaginatedModuleList, *http.Response, error) { + return r.ApiService.DcimModulesListExecute(r) } /* -DcimModuleTypesList Method for DcimModuleTypesList +DcimModulesList Method for DcimModulesList -Get a list of module type objects. +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 ApiDcimModuleTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesListRequest */ -func (a *DcimAPIService) DcimModuleTypesList(ctx context.Context) ApiDcimModuleTypesListRequest { - return ApiDcimModuleTypesListRequest{ +func (a *DcimAPIService) DcimModulesList(ctx context.Context) ApiDcimModulesListRequest { + return ApiDcimModulesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleTypeList -func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequest) (*PaginatedModuleTypeList, *http.Response, error) { +// @return PaginatedModuleList +func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*PaginatedModuleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/" + localVarPath := localBasePath + "/api/dcim/modules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.consolePorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "") + if r.assetTag != nil { + t := *r.assetTag + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "form", "multi") + } } - if r.consoleServerPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "console_server_ports", r.consoleServerPorts, "") + if r.assetTagEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "form", "") + } + if r.assetTagIc != nil { + t := *r.assetTagIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "form", "multi") + } + } + if r.assetTagIe != nil { + t := *r.assetTagIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "form", "multi") + } + } + if r.assetTagIew != nil { + t := *r.assetTagIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "form", "multi") + } + } + if r.assetTagIsw != nil { + t := *r.assetTagIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "form", "multi") + } + } + if r.assetTagN != nil { + t := *r.assetTagN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "form", "multi") + } + } + if r.assetTagNic != nil { + t := *r.assetTagNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "form", "multi") + } + } + if r.assetTagNie != nil { + t := *r.assetTagNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "form", "multi") + } + } + if r.assetTagNiew != nil { + t := *r.assetTagNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "form", "multi") + } + } + if r.assetTagNisw != nil { + t := *r.assetTagNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -64190,10 +78389,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -64201,10 +78400,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -64212,10 +78411,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -64223,10 +78422,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -64234,10 +78433,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -64245,38 +78444,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -64284,10 +78483,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -64295,10 +78494,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -64306,10 +78505,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -64317,10 +78516,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -64328,10 +78527,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -64339,10 +78538,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -64350,10 +78549,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -64361,10 +78560,32 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") } } if r.id != nil { @@ -64372,24 +78593,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -64397,10 +78618,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -64408,10 +78629,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -64419,10 +78640,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -64430,24 +78651,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__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.interfaces != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interfaces", r.interfaces, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -64455,10 +78673,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -64466,10 +78684,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -64477,10 +78695,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -64488,10 +78706,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -64499,10 +78717,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -64510,24 +78728,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.manufacturer != nil { t := *r.manufacturer if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") } } if r.manufacturerN != nil { @@ -64535,10 +78753,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") } } if r.manufacturerId != nil { @@ -64546,10 +78764,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") } } if r.manufacturerIdN != nil { @@ -64557,358 +78775,340 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") } } - if r.model != nil { - t := *r.model + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "model", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id", t, "form", "multi") } } - if r.modelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "") - } - if r.modelIc != nil { - t := *r.modelIc + if r.moduleBayIdN != nil { + t := *r.moduleBayIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id__n", t, "form", "multi") } } - if r.modelIe != nil { - t := *r.modelIe + if r.moduleType != nil { + t := *r.moduleType 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type", t, "form", "multi") } } - if r.modelIew != nil { - t := *r.modelIew + if r.moduleTypeN != nil { + t := *r.moduleTypeN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type__n", t, "form", "multi") } } - if r.modelIsw != nil { - t := *r.modelIsw + 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, "model__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } - if r.modelN != nil { - t := *r.modelN + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } - if r.modelNic != nil { - t := *r.modelNic + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.serial != nil { + t := *r.serial 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "form", "multi") } } - if r.modelNie != nil { - t := *r.modelNie + if r.serialEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "form", "") + } + if r.serialIc != nil { + t := *r.serialIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "form", "multi") } } - if r.modelNiew != nil { - t := *r.modelNiew + if r.serialIe != nil { + t := *r.serialIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "form", "multi") } } - if r.modelNisw != nil { - t := *r.modelNisw + if r.serialIew != nil { + t := *r.serialIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "form", "multi") } } - 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.partNumber != nil { - t := *r.partNumber + if r.serialIsw != nil { + t := *r.serialIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "form", "multi") } } - if r.partNumberEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__empty", r.partNumberEmpty, "") - } - if r.partNumberIc != nil { - t := *r.partNumberIc + if r.serialN != nil { + t := *r.serialN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "form", "multi") } } - if r.partNumberIe != nil { - t := *r.partNumberIe + if r.serialNic != nil { + t := *r.serialNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "form", "multi") } } - if r.partNumberIew != nil { - t := *r.partNumberIew + if r.serialNie != nil { + t := *r.serialNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "form", "multi") } } - if r.partNumberIsw != nil { - t := *r.partNumberIsw + if r.serialNiew != nil { + t := *r.serialNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "form", "multi") } } - if r.partNumberN != nil { - t := *r.partNumberN + if r.serialNisw != nil { + t := *r.serialNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "form", "multi") } } - if r.partNumberNic != nil { - t := *r.partNumberNic + 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, "part_number__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.partNumberNie != nil { - t := *r.partNumberNie + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.partNumberNiew != nil { - t := *r.partNumberNiew + if r.statusIe != nil { + t := *r.statusIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.partNumberNisw != nil { - t := *r.partNumberNisw + if r.statusIew != nil { + t := *r.statusIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } } - if r.passThroughPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "pass_through_ports", r.passThroughPorts, "") - } - if r.powerOutlets != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_outlets", r.powerOutlets, "") - } - if r.powerPorts != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_ports", r.powerPorts, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.tag != nil { - t := *r.tag + if r.statusIsw != nil { + t := *r.statusIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.statusN != nil { + t := *r.statusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.weight != nil { - t := *r.weight + if r.statusNic != nil { + t := *r.statusNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt + if r.statusNie != nil { + t := *r.statusNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.weightGte != nil { - t := *r.weightGte + if r.statusNiew != nil { + t := *r.statusNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") } } - if r.weightLt != nil { - t := *r.weightLt + if r.statusNisw != nil { + t := *r.statusNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } - if r.weightLte != nil { - t := *r.weightLte + 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, "weight__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.weightN != nil { - t := *r.weightN + 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, "weight__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.weightUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") - } - if r.weightUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -64978,56 +79178,55 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableModuleTypeRequest *PatchedWritableModuleTypeRequest +type ApiDcimModulesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableModuleRequest *PatchedWritableModuleRequest } -func (r ApiDcimModuleTypesPartialUpdateRequest) PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest PatchedWritableModuleTypeRequest) ApiDcimModuleTypesPartialUpdateRequest { - r.patchedWritableModuleTypeRequest = &patchedWritableModuleTypeRequest +func (r ApiDcimModulesPartialUpdateRequest) PatchedWritableModuleRequest(patchedWritableModuleRequest PatchedWritableModuleRequest) ApiDcimModulesPartialUpdateRequest { + r.patchedWritableModuleRequest = &patchedWritableModuleRequest return r } -func (r ApiDcimModuleTypesPartialUpdateRequest) Execute() (*ModuleType, *http.Response, error) { - return r.ApiService.DcimModuleTypesPartialUpdateExecute(r) +func (r ApiDcimModulesPartialUpdateRequest) Execute() (*Module, *http.Response, error) { + return r.ApiService.DcimModulesPartialUpdateExecute(r) } /* -DcimModuleTypesPartialUpdate Method for DcimModuleTypesPartialUpdate +DcimModulesPartialUpdate Method for DcimModulesPartialUpdate -Patch a module type object. +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 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. + @return ApiDcimModulesPartialUpdateRequest */ -func (a *DcimAPIService) DcimModuleTypesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypesPartialUpdateRequest { - return ApiDcimModuleTypesPartialUpdateRequest{ +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 ModuleType -func (a *DcimAPIService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleTypesPartialUpdateRequest) (*ModuleType, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartialUpdateRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/{id}/" + localVarPath := localBasePath + "/api/dcim/modules/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -65052,7 +79251,7 @@ func (a *DcimAPIService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleType localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableModuleTypeRequest + localVarPostBody = r.patchedWritableModuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -65104,50 +79303,49 @@ func (a *DcimAPIService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleType return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleTypesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimModulesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModuleTypesRetrieveRequest) Execute() (*ModuleType, *http.Response, error) { - return r.ApiService.DcimModuleTypesRetrieveExecute(r) +func (r ApiDcimModulesRetrieveRequest) Execute() (*Module, *http.Response, error) { + return r.ApiService.DcimModulesRetrieveExecute(r) } /* -DcimModuleTypesRetrieve Method for DcimModuleTypesRetrieve +DcimModulesRetrieve Method for DcimModulesRetrieve -Get a module type object. +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 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. + @return ApiDcimModulesRetrieveRequest */ -func (a *DcimAPIService) DcimModuleTypesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypesRetrieveRequest { - return ApiDcimModuleTypesRetrieveRequest{ +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 ModuleType -func (a *DcimAPIService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetrieveRequest) (*ModuleType, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/{id}/" + localVarPath := localBasePath + "/api/dcim/modules/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -65222,63 +79420,62 @@ func (a *DcimAPIService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModuleTypesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableModuleTypeRequest *WritableModuleTypeRequest +type ApiDcimModulesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableModuleRequest *WritableModuleRequest } -func (r ApiDcimModuleTypesUpdateRequest) WritableModuleTypeRequest(writableModuleTypeRequest WritableModuleTypeRequest) ApiDcimModuleTypesUpdateRequest { - r.writableModuleTypeRequest = &writableModuleTypeRequest +func (r ApiDcimModulesUpdateRequest) WritableModuleRequest(writableModuleRequest WritableModuleRequest) ApiDcimModulesUpdateRequest { + r.writableModuleRequest = &writableModuleRequest return r } -func (r ApiDcimModuleTypesUpdateRequest) Execute() (*ModuleType, *http.Response, error) { - return r.ApiService.DcimModuleTypesUpdateExecute(r) +func (r ApiDcimModulesUpdateRequest) Execute() (*Module, *http.Response, error) { + return r.ApiService.DcimModulesUpdateExecute(r) } /* -DcimModuleTypesUpdate Method for DcimModuleTypesUpdate +DcimModulesUpdate Method for DcimModulesUpdate -Put a module type object. +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 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. + @return ApiDcimModulesUpdateRequest */ -func (a *DcimAPIService) DcimModuleTypesUpdate(ctx context.Context, id int32) ApiDcimModuleTypesUpdateRequest { - return ApiDcimModuleTypesUpdateRequest{ +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 ModuleType -func (a *DcimAPIService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdateRequest) (*ModuleType, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/module-types/{id}/" + localVarPath := localBasePath + "/api/dcim/modules/{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.writableModuleTypeRequest == nil { - return localVarReturnValue, nil, reportError("writableModuleTypeRequest is required and must be specified") + if r.writableModuleRequest == nil { + return localVarReturnValue, nil, reportError("writableModuleRequest is required and must be specified") } // to determine the Content-Type header @@ -65299,7 +79496,7 @@ func (a *DcimAPIService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableModuleTypeRequest + localVarPostBody = r.writableModuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -65351,56 +79548,56 @@ func (a *DcimAPIService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModulesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleRequest *[]ModuleRequest +type ApiDcimPlatformsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + platformRequest *[]PlatformRequest } -func (r ApiDcimModulesBulkDestroyRequest) ModuleRequest(moduleRequest []ModuleRequest) ApiDcimModulesBulkDestroyRequest { - r.moduleRequest = &moduleRequest +func (r ApiDcimPlatformsBulkDestroyRequest) PlatformRequest(platformRequest []PlatformRequest) ApiDcimPlatformsBulkDestroyRequest { + r.platformRequest = &platformRequest return r } -func (r ApiDcimModulesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModulesBulkDestroyExecute(r) +func (r ApiDcimPlatformsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPlatformsBulkDestroyExecute(r) } /* -DcimModulesBulkDestroy Method for DcimModulesBulkDestroy +DcimPlatformsBulkDestroy Method for DcimPlatformsBulkDestroy -Delete a list of module objects. +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 ApiDcimModulesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsBulkDestroyRequest */ -func (a *DcimAPIService) DcimModulesBulkDestroy(ctx context.Context) ApiDcimModulesBulkDestroyRequest { - return ApiDcimModulesBulkDestroyRequest{ +func (a *DcimAPIService) DcimPlatformsBulkDestroy(ctx context.Context) ApiDcimPlatformsBulkDestroyRequest { + return ApiDcimPlatformsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestroyRequest) (*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.DcimModulesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/" + localVarPath := localBasePath + "/api/dcim/platforms/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleRequest == nil { - return nil, reportError("moduleRequest is required and must be specified") + if r.platformRequest == nil { + return nil, reportError("platformRequest is required and must be specified") } // to determine the Content-Type header @@ -65421,7 +79618,7 @@ func (a *DcimAPIService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleRequest + localVarPostBody = r.platformRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -65464,59 +79661,58 @@ func (a *DcimAPIService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestr return localVarHTTPResponse, nil } -type ApiDcimModulesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleRequest *[]ModuleRequest +type ApiDcimPlatformsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + platformRequest *[]PlatformRequest } -func (r ApiDcimModulesBulkPartialUpdateRequest) ModuleRequest(moduleRequest []ModuleRequest) ApiDcimModulesBulkPartialUpdateRequest { - r.moduleRequest = &moduleRequest +func (r ApiDcimPlatformsBulkPartialUpdateRequest) PlatformRequest(platformRequest []PlatformRequest) ApiDcimPlatformsBulkPartialUpdateRequest { + r.platformRequest = &platformRequest return r } -func (r ApiDcimModulesBulkPartialUpdateRequest) Execute() ([]Module, *http.Response, error) { - return r.ApiService.DcimModulesBulkPartialUpdateExecute(r) +func (r ApiDcimPlatformsBulkPartialUpdateRequest) Execute() ([]Platform, *http.Response, error) { + return r.ApiService.DcimPlatformsBulkPartialUpdateExecute(r) } /* -DcimModulesBulkPartialUpdate Method for DcimModulesBulkPartialUpdate +DcimPlatformsBulkPartialUpdate Method for DcimPlatformsBulkPartialUpdate -Patch a list of module objects. +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 ApiDcimModulesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimModulesBulkPartialUpdate(ctx context.Context) ApiDcimModulesBulkPartialUpdateRequest { - return ApiDcimModulesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimPlatformsBulkPartialUpdate(ctx context.Context) ApiDcimPlatformsBulkPartialUpdateRequest { + return ApiDcimPlatformsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Module -func (a *DcimAPIService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBulkPartialUpdateRequest) ([]Module, *http.Response, error) { +// @return []Platform +func (a *DcimAPIService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatformsBulkPartialUpdateRequest) ([]Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Module + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/" + localVarPath := localBasePath + "/api/dcim/platforms/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleRequest == nil { - return localVarReturnValue, nil, reportError("moduleRequest is required and must be specified") + if r.platformRequest == nil { + return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") } // to determine the Content-Type header @@ -65537,7 +79733,7 @@ func (a *DcimAPIService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleRequest + localVarPostBody = r.platformRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -65589,59 +79785,58 @@ func (a *DcimAPIService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBul return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModulesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - moduleRequest *[]ModuleRequest +type ApiDcimPlatformsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + platformRequest *[]PlatformRequest } -func (r ApiDcimModulesBulkUpdateRequest) ModuleRequest(moduleRequest []ModuleRequest) ApiDcimModulesBulkUpdateRequest { - r.moduleRequest = &moduleRequest +func (r ApiDcimPlatformsBulkUpdateRequest) PlatformRequest(platformRequest []PlatformRequest) ApiDcimPlatformsBulkUpdateRequest { + r.platformRequest = &platformRequest return r } -func (r ApiDcimModulesBulkUpdateRequest) Execute() ([]Module, *http.Response, error) { - return r.ApiService.DcimModulesBulkUpdateExecute(r) +func (r ApiDcimPlatformsBulkUpdateRequest) Execute() ([]Platform, *http.Response, error) { + return r.ApiService.DcimPlatformsBulkUpdateExecute(r) } /* -DcimModulesBulkUpdate Method for DcimModulesBulkUpdate +DcimPlatformsBulkUpdate Method for DcimPlatformsBulkUpdate -Put a list of module objects. +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 ApiDcimModulesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsBulkUpdateRequest */ -func (a *DcimAPIService) DcimModulesBulkUpdate(ctx context.Context) ApiDcimModulesBulkUpdateRequest { - return ApiDcimModulesBulkUpdateRequest{ +func (a *DcimAPIService) DcimPlatformsBulkUpdate(ctx context.Context) ApiDcimPlatformsBulkUpdateRequest { + return ApiDcimPlatformsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Module -func (a *DcimAPIService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdateRequest) ([]Module, *http.Response, error) { +// @return []Platform +func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUpdateRequest) ([]Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Module + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/" + localVarPath := localBasePath + "/api/dcim/platforms/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.moduleRequest == nil { - return localVarReturnValue, nil, reportError("moduleRequest is required and must be specified") + if r.platformRequest == nil { + return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") } // to determine the Content-Type header @@ -65662,7 +79857,7 @@ func (a *DcimAPIService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.moduleRequest + localVarPostBody = r.platformRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -65714,59 +79909,58 @@ func (a *DcimAPIService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModulesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableModuleRequest *WritableModuleRequest +type ApiDcimPlatformsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + platformRequest *PlatformRequest } -func (r ApiDcimModulesCreateRequest) WritableModuleRequest(writableModuleRequest WritableModuleRequest) ApiDcimModulesCreateRequest { - r.writableModuleRequest = &writableModuleRequest +func (r ApiDcimPlatformsCreateRequest) PlatformRequest(platformRequest PlatformRequest) ApiDcimPlatformsCreateRequest { + r.platformRequest = &platformRequest return r } -func (r ApiDcimModulesCreateRequest) Execute() (*Module, *http.Response, error) { - return r.ApiService.DcimModulesCreateExecute(r) +func (r ApiDcimPlatformsCreateRequest) Execute() (*Platform, *http.Response, error) { + return r.ApiService.DcimPlatformsCreateExecute(r) } /* -DcimModulesCreate Method for DcimModulesCreate +DcimPlatformsCreate Method for DcimPlatformsCreate -Post a list of module objects. +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 ApiDcimModulesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsCreateRequest */ -func (a *DcimAPIService) DcimModulesCreate(ctx context.Context) ApiDcimModulesCreateRequest { - return ApiDcimModulesCreateRequest{ +func (a *DcimAPIService) DcimPlatformsCreate(ctx context.Context) ApiDcimPlatformsCreateRequest { + return ApiDcimPlatformsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Module -func (a *DcimAPIService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) (*Module, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/" + localVarPath := localBasePath + "/api/dcim/platforms/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableModuleRequest == nil { - return localVarReturnValue, nil, reportError("writableModuleRequest is required and must be specified") + if r.platformRequest == nil { + return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") } // to determine the Content-Type header @@ -65787,7 +79981,7 @@ func (a *DcimAPIService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableModuleRequest + localVarPostBody = r.platformRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -65839,47 +80033,47 @@ func (a *DcimAPIService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModulesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPlatformsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModulesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimModulesDestroyExecute(r) +func (r ApiDcimPlatformsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPlatformsDestroyExecute(r) } /* -DcimModulesDestroy Method for DcimModulesDestroy +DcimPlatformsDestroy Method for DcimPlatformsDestroy -Delete a module object. +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 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 platform. + @return ApiDcimPlatformsDestroyRequest */ -func (a *DcimAPIService) DcimModulesDestroy(ctx context.Context, id int32) ApiDcimModulesDestroyRequest { - return ApiDcimModulesDestroyRequest{ +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) DcimModulesDestroyExecute(r ApiDcimModulesDestroyRequest) (*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.DcimModulesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/{id}/" + localVarPath := localBasePath + "/api/dcim/platforms/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -65945,641 +80139,504 @@ func (a *DcimAPIService) DcimModulesDestroyExecute(r ApiDcimModulesDestroyReques return localVarHTTPResponse, nil } -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 - 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 - 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 +type ApiDcimPlatformsListRequest struct { + ctx context.Context + ApiService DcimAPI + availableForDeviceType *string + configTemplateId *[]*int32 + configTemplateIdN *[]*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 + 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 -} - -func (r ApiDcimModulesListRequest) AssetTag(assetTag []string) ApiDcimModulesListRequest { - r.assetTag = &assetTag - return r -} - -func (r ApiDcimModulesListRequest) AssetTagEmpty(assetTagEmpty bool) ApiDcimModulesListRequest { - r.assetTagEmpty = &assetTagEmpty - return r -} - -func (r ApiDcimModulesListRequest) AssetTagIc(assetTagIc []string) ApiDcimModulesListRequest { - r.assetTagIc = &assetTagIc - return r -} - -func (r ApiDcimModulesListRequest) AssetTagIe(assetTagIe []string) ApiDcimModulesListRequest { - r.assetTagIe = &assetTagIe - return r -} - -func (r ApiDcimModulesListRequest) AssetTagIew(assetTagIew []string) ApiDcimModulesListRequest { - r.assetTagIew = &assetTagIew - return r -} - -func (r ApiDcimModulesListRequest) AssetTagIsw(assetTagIsw []string) ApiDcimModulesListRequest { - r.assetTagIsw = &assetTagIsw - return r -} - -func (r ApiDcimModulesListRequest) AssetTagN(assetTagN []string) ApiDcimModulesListRequest { - r.assetTagN = &assetTagN - return r -} - -func (r ApiDcimModulesListRequest) AssetTagNic(assetTagNic []string) ApiDcimModulesListRequest { - r.assetTagNic = &assetTagNic - return r + 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 } -func (r ApiDcimModulesListRequest) AssetTagNie(assetTagNie []string) ApiDcimModulesListRequest { - r.assetTagNie = &assetTagNie +func (r ApiDcimPlatformsListRequest) AvailableForDeviceType(availableForDeviceType string) ApiDcimPlatformsListRequest { + r.availableForDeviceType = &availableForDeviceType return r } -func (r ApiDcimModulesListRequest) AssetTagNiew(assetTagNiew []string) ApiDcimModulesListRequest { - r.assetTagNiew = &assetTagNiew +// Config template (ID) +func (r ApiDcimPlatformsListRequest) ConfigTemplateId(configTemplateId []*int32) ApiDcimPlatformsListRequest { + r.configTemplateId = &configTemplateId return r } -func (r ApiDcimModulesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimModulesListRequest { - r.assetTagNisw = &assetTagNisw +// Config template (ID) +func (r ApiDcimPlatformsListRequest) ConfigTemplateIdN(configTemplateIdN []*int32) ApiDcimPlatformsListRequest { + r.configTemplateIdN = &configTemplateIdN return r } -func (r ApiDcimModulesListRequest) Created(created []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) Created(created []time.Time) ApiDcimPlatformsListRequest { r.created = &created return r } -func (r ApiDcimModulesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPlatformsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimModulesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPlatformsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimModulesListRequest) CreatedGte(createdGte []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPlatformsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimModulesListRequest) CreatedLt(createdLt []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPlatformsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimModulesListRequest) CreatedLte(createdLte []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPlatformsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimModulesListRequest) CreatedN(createdN []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) CreatedN(createdN []time.Time) ApiDcimPlatformsListRequest { r.createdN = &createdN return r } -func (r ApiDcimModulesListRequest) CreatedByRequest(createdByRequest string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPlatformsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimModulesListRequest) Description(description []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) Description(description []string) ApiDcimPlatformsListRequest { r.description = &description return r } -func (r ApiDcimModulesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPlatformsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimModulesListRequest) DescriptionIc(descriptionIc []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPlatformsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimModulesListRequest) DescriptionIe(descriptionIe []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPlatformsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimModulesListRequest) DescriptionIew(descriptionIew []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPlatformsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimModulesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPlatformsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimModulesListRequest) DescriptionN(descriptionN []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionN(descriptionN []string) ApiDcimPlatformsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimModulesListRequest) DescriptionNic(descriptionNic []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPlatformsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimModulesListRequest) DescriptionNie(descriptionNie []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPlatformsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimModulesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPlatformsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimModulesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPlatformsListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device (ID) -func (r ApiDcimModulesListRequest) DeviceId(deviceId []int32) ApiDcimModulesListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiDcimModulesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModulesListRequest { - r.deviceIdN = &deviceIdN - return r -} - -func (r ApiDcimModulesListRequest) Id(id []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) Id(id []int32) ApiDcimPlatformsListRequest { r.id = &id return r } -func (r ApiDcimModulesListRequest) IdEmpty(idEmpty bool) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) IdEmpty(idEmpty bool) ApiDcimPlatformsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimModulesListRequest) IdGt(idGt []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) IdGt(idGt []int32) ApiDcimPlatformsListRequest { r.idGt = &idGt return r } -func (r ApiDcimModulesListRequest) IdGte(idGte []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) IdGte(idGte []int32) ApiDcimPlatformsListRequest { r.idGte = &idGte return r } -func (r ApiDcimModulesListRequest) IdLt(idLt []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) IdLt(idLt []int32) ApiDcimPlatformsListRequest { r.idLt = &idLt return r } -func (r ApiDcimModulesListRequest) IdLte(idLte []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) IdLte(idLte []int32) ApiDcimPlatformsListRequest { r.idLte = &idLte return r } -func (r ApiDcimModulesListRequest) IdN(idN []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) IdN(idN []int32) ApiDcimPlatformsListRequest { r.idN = &idN return r } -func (r ApiDcimModulesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPlatformsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimModulesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPlatformsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimModulesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPlatformsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimModulesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPlatformsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimModulesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPlatformsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimModulesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPlatformsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimModulesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPlatformsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimModulesListRequest) Limit(limit int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) Limit(limit int32) ApiDcimPlatformsListRequest { r.limit = &limit return r } // Manufacturer (slug) -func (r ApiDcimModulesListRequest) Manufacturer(manufacturer []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) Manufacturer(manufacturer []string) ApiDcimPlatformsListRequest { r.manufacturer = &manufacturer return r } // Manufacturer (slug) -func (r ApiDcimModulesListRequest) ManufacturerN(manufacturerN []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) ManufacturerN(manufacturerN []string) ApiDcimPlatformsListRequest { r.manufacturerN = &manufacturerN return r } // Manufacturer (ID) -func (r ApiDcimModulesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) ManufacturerId(manufacturerId []int32) ApiDcimPlatformsListRequest { r.manufacturerId = &manufacturerId return r } // Manufacturer (ID) -func (r ApiDcimModulesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimPlatformsListRequest { r.manufacturerIdN = &manufacturerIdN return r } -func (r ApiDcimModulesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPlatformsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []int32) ApiDcimModulesListRequest { - r.moduleBayId = &moduleBayId +func (r ApiDcimPlatformsListRequest) Name(name []string) ApiDcimPlatformsListRequest { + r.name = &name return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []int32) ApiDcimModulesListRequest { - r.moduleBayIdN = &moduleBayIdN +func (r ApiDcimPlatformsListRequest) NameEmpty(nameEmpty bool) ApiDcimPlatformsListRequest { + r.nameEmpty = &nameEmpty return r } -// Module type (model) -func (r ApiDcimModulesListRequest) ModuleType(moduleType []string) ApiDcimModulesListRequest { - r.moduleType = &moduleType +func (r ApiDcimPlatformsListRequest) NameIc(nameIc []string) ApiDcimPlatformsListRequest { + r.nameIc = &nameIc return r } -// Module type (model) -func (r ApiDcimModulesListRequest) ModuleTypeN(moduleTypeN []string) ApiDcimModulesListRequest { - r.moduleTypeN = &moduleTypeN +func (r ApiDcimPlatformsListRequest) NameIe(nameIe []string) ApiDcimPlatformsListRequest { + r.nameIe = &nameIe return r } -// Module type (ID) -func (r ApiDcimModulesListRequest) ModuleTypeId(moduleTypeId []int32) ApiDcimModulesListRequest { - r.moduleTypeId = &moduleTypeId +func (r ApiDcimPlatformsListRequest) NameIew(nameIew []string) ApiDcimPlatformsListRequest { + r.nameIew = &nameIew return r } -// Module type (ID) -func (r ApiDcimModulesListRequest) ModuleTypeIdN(moduleTypeIdN []int32) ApiDcimModulesListRequest { - r.moduleTypeIdN = &moduleTypeIdN +func (r ApiDcimPlatformsListRequest) NameIsw(nameIsw []string) ApiDcimPlatformsListRequest { + r.nameIsw = &nameIsw return r } -// The initial index from which to return the results. -func (r ApiDcimModulesListRequest) Offset(offset int32) ApiDcimModulesListRequest { - r.offset = &offset +func (r ApiDcimPlatformsListRequest) NameN(nameN []string) ApiDcimPlatformsListRequest { + r.nameN = &nameN return r } -// Which field to use when ordering the results. -func (r ApiDcimModulesListRequest) Ordering(ordering string) ApiDcimModulesListRequest { - r.ordering = &ordering +func (r ApiDcimPlatformsListRequest) NameNic(nameNic []string) ApiDcimPlatformsListRequest { + r.nameNic = &nameNic return r } -// Search -func (r ApiDcimModulesListRequest) Q(q string) ApiDcimModulesListRequest { - r.q = &q +func (r ApiDcimPlatformsListRequest) NameNie(nameNie []string) ApiDcimPlatformsListRequest { + r.nameNie = &nameNie return r } -func (r ApiDcimModulesListRequest) Serial(serial []string) ApiDcimModulesListRequest { - r.serial = &serial +func (r ApiDcimPlatformsListRequest) NameNiew(nameNiew []string) ApiDcimPlatformsListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiDcimModulesListRequest) SerialEmpty(serialEmpty bool) ApiDcimModulesListRequest { - r.serialEmpty = &serialEmpty +func (r ApiDcimPlatformsListRequest) NameNisw(nameNisw []string) ApiDcimPlatformsListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiDcimModulesListRequest) SerialIc(serialIc []string) ApiDcimModulesListRequest { - r.serialIc = &serialIc +// The initial index from which to return the results. +func (r ApiDcimPlatformsListRequest) Offset(offset int32) ApiDcimPlatformsListRequest { + r.offset = &offset return r } -func (r ApiDcimModulesListRequest) SerialIe(serialIe []string) ApiDcimModulesListRequest { - r.serialIe = &serialIe +// Which field to use when ordering the results. +func (r ApiDcimPlatformsListRequest) Ordering(ordering string) ApiDcimPlatformsListRequest { + r.ordering = &ordering return r } -func (r ApiDcimModulesListRequest) SerialIew(serialIew []string) ApiDcimModulesListRequest { - r.serialIew = &serialIew +// Search +func (r ApiDcimPlatformsListRequest) Q(q string) ApiDcimPlatformsListRequest { + r.q = &q return r } -func (r ApiDcimModulesListRequest) SerialIsw(serialIsw []string) ApiDcimModulesListRequest { - r.serialIsw = &serialIsw +func (r ApiDcimPlatformsListRequest) Slug(slug []string) ApiDcimPlatformsListRequest { + r.slug = &slug return r } -func (r ApiDcimModulesListRequest) SerialN(serialN []string) ApiDcimModulesListRequest { - r.serialN = &serialN +func (r ApiDcimPlatformsListRequest) SlugEmpty(slugEmpty bool) ApiDcimPlatformsListRequest { + r.slugEmpty = &slugEmpty return r } -func (r ApiDcimModulesListRequest) SerialNic(serialNic []string) ApiDcimModulesListRequest { - r.serialNic = &serialNic +func (r ApiDcimPlatformsListRequest) SlugIc(slugIc []string) ApiDcimPlatformsListRequest { + r.slugIc = &slugIc return r } -func (r ApiDcimModulesListRequest) SerialNie(serialNie []string) ApiDcimModulesListRequest { - r.serialNie = &serialNie +func (r ApiDcimPlatformsListRequest) SlugIe(slugIe []string) ApiDcimPlatformsListRequest { + r.slugIe = &slugIe return r } -func (r ApiDcimModulesListRequest) SerialNiew(serialNiew []string) ApiDcimModulesListRequest { - r.serialNiew = &serialNiew +func (r ApiDcimPlatformsListRequest) SlugIew(slugIew []string) ApiDcimPlatformsListRequest { + r.slugIew = &slugIew return r } -func (r ApiDcimModulesListRequest) SerialNisw(serialNisw []string) ApiDcimModulesListRequest { - r.serialNisw = &serialNisw +func (r ApiDcimPlatformsListRequest) SlugIsw(slugIsw []string) ApiDcimPlatformsListRequest { + r.slugIsw = &slugIsw return r } -func (r ApiDcimModulesListRequest) Status(status []string) ApiDcimModulesListRequest { - r.status = &status +func (r ApiDcimPlatformsListRequest) SlugN(slugN []string) ApiDcimPlatformsListRequest { + r.slugN = &slugN return r } -func (r ApiDcimModulesListRequest) StatusN(statusN []string) ApiDcimModulesListRequest { - r.statusN = &statusN +func (r ApiDcimPlatformsListRequest) SlugNic(slugNic []string) ApiDcimPlatformsListRequest { + r.slugNic = &slugNic return r } -func (r ApiDcimModulesListRequest) Tag(tag []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) SlugNie(slugNie []string) ApiDcimPlatformsListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiDcimPlatformsListRequest) SlugNiew(slugNiew []string) ApiDcimPlatformsListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiDcimPlatformsListRequest) SlugNisw(slugNisw []string) ApiDcimPlatformsListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiDcimPlatformsListRequest) Tag(tag []string) ApiDcimPlatformsListRequest { r.tag = &tag return r } -func (r ApiDcimModulesListRequest) TagN(tagN []string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) TagN(tagN []string) ApiDcimPlatformsListRequest { r.tagN = &tagN return r } -func (r ApiDcimModulesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimModulesListRequest { +func (r ApiDcimPlatformsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPlatformsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimModulesListRequest) Execute() (*PaginatedModuleList, *http.Response, error) { - return r.ApiService.DcimModulesListExecute(r) +func (r ApiDcimPlatformsListRequest) Execute() (*PaginatedPlatformList, *http.Response, error) { + return r.ApiService.DcimPlatformsListExecute(r) } /* -DcimModulesList Method for DcimModulesList +DcimPlatformsList Method for DcimPlatformsList -Get a list of module objects. +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 ApiDcimModulesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsListRequest */ -func (a *DcimAPIService) DcimModulesList(ctx context.Context) ApiDcimModulesListRequest { - return ApiDcimModulesListRequest{ +func (a *DcimAPIService) DcimPlatformsList(ctx context.Context) ApiDcimPlatformsListRequest { + return ApiDcimPlatformsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleList -func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*PaginatedModuleList, *http.Response, error) { +// @return PaginatedPlatformList +func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) (*PaginatedPlatformList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPlatformList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/" + localVarPath := localBasePath + "/api/dcim/platforms/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.assetTag != nil { - t := *r.assetTag - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") - } - } - if r.assetTagEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "") - } - if r.assetTagIc != nil { - t := *r.assetTagIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") - } - } - if r.assetTagIe != nil { - t := *r.assetTagIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") - } - } - if r.assetTagIew != nil { - t := *r.assetTagIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") - } - } - if r.assetTagIsw != nil { - t := *r.assetTagIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") - } - } - if r.assetTagN != nil { - t := *r.assetTagN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") - } - } - if r.assetTagNic != nil { - t := *r.assetTagNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") - } - } - if r.assetTagNie != nil { - t := *r.assetTagNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") - } + if r.availableForDeviceType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_for_device_type", r.availableForDeviceType, "form", "") } - if r.assetTagNiew != nil { - t := *r.assetTagNiew + 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, "asset_tag__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "form", "multi") } } - if r.assetTagNisw != nil { - t := *r.assetTagNisw + 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, "asset_tag__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "form", "multi") } } if r.created != nil { @@ -66587,10 +80644,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -66598,10 +80655,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -66609,10 +80666,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -66620,10 +80677,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -66631,10 +80688,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -66642,10 +80699,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -66653,38 +80710,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -66692,10 +80749,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -66703,10 +80760,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -66714,10 +80771,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -66725,10 +80782,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -66736,10 +80793,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -66747,10 +80804,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -66758,10 +80815,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -66769,32 +80826,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", 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).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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -66802,24 +80837,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -66827,10 +80862,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -66838,10 +80873,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -66849,10 +80884,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -66860,10 +80895,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -66871,10 +80906,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -66882,10 +80917,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -66893,10 +80928,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -66904,10 +80939,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -66915,10 +80950,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -66926,10 +80961,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -66937,24 +80972,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.manufacturer != nil { t := *r.manufacturer if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") } } if r.manufacturerN != nil { @@ -66962,10 +80997,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") } } if r.manufacturerId != nil { @@ -66973,10 +81008,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") } } if r.manufacturerIdN != nil { @@ -66984,223 +81019,248 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.moduleBayId != nil { - t := *r.moduleBayId + 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, "module_bay_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.moduleBayIdN != nil { - t := *r.moduleBayIdN + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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, "module_bay_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.moduleType != nil { - t := *r.moduleType + 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, "module_type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.moduleTypeN != nil { - t := *r.moduleTypeN + 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, "module_type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.moduleTypeId != nil { - t := *r.moduleTypeId + 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, "module_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN + 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, "module_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - 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, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") + } } - if r.serial != nil { - t := *r.serial + 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, "serial", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.serialEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") + } } - if r.serialIc != nil { - t := *r.serialIc + 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, "serial__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.serialIe != nil { - t := *r.serialIe + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.slug != nil { + t := *r.slug 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } - if r.serialIew != nil { - t := *r.serialIew + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.serialIsw != nil { - t := *r.serialIsw + if r.slugIe != nil { + t := *r.slugIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.serialN != nil { - t := *r.serialN + if r.slugIew != nil { + t := *r.slugIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.serialNic != nil { - t := *r.serialNic + if r.slugIsw != nil { + t := *r.slugIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.serialNie != nil { - t := *r.serialNie + if r.slugN != nil { + t := *r.slugN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.serialNiew != nil { - t := *r.serialNiew + if r.slugNic != nil { + t := *r.slugNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.serialNisw != nil { - t := *r.serialNisw + if r.slugNie != nil { + t := *r.slugNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } - if r.status != nil { - t := *r.status + if r.slugNiew != nil { + t := *r.slugNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + if r.slugNisw != nil { + t := *r.slugNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -67208,10 +81268,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -67219,14 +81279,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -67296,56 +81356,55 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModulesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableModuleRequest *PatchedWritableModuleRequest +type ApiDcimPlatformsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedPlatformRequest *PatchedPlatformRequest } -func (r ApiDcimModulesPartialUpdateRequest) PatchedWritableModuleRequest(patchedWritableModuleRequest PatchedWritableModuleRequest) ApiDcimModulesPartialUpdateRequest { - r.patchedWritableModuleRequest = &patchedWritableModuleRequest +func (r ApiDcimPlatformsPartialUpdateRequest) PatchedPlatformRequest(patchedPlatformRequest PatchedPlatformRequest) ApiDcimPlatformsPartialUpdateRequest { + r.patchedPlatformRequest = &patchedPlatformRequest return r } -func (r ApiDcimModulesPartialUpdateRequest) Execute() (*Module, *http.Response, error) { - return r.ApiService.DcimModulesPartialUpdateExecute(r) +func (r ApiDcimPlatformsPartialUpdateRequest) Execute() (*Platform, *http.Response, error) { + return r.ApiService.DcimPlatformsPartialUpdateExecute(r) } /* -DcimModulesPartialUpdate Method for DcimModulesPartialUpdate +DcimPlatformsPartialUpdate Method for DcimPlatformsPartialUpdate -Patch a module object. +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 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 platform. + @return ApiDcimPlatformsPartialUpdateRequest */ -func (a *DcimAPIService) DcimModulesPartialUpdate(ctx context.Context, id int32) ApiDcimModulesPartialUpdateRequest { - return ApiDcimModulesPartialUpdateRequest{ +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 Module -func (a *DcimAPIService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartialUpdateRequest) (*Module, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPartialUpdateRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/{id}/" + localVarPath := localBasePath + "/api/dcim/platforms/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -67370,7 +81429,7 @@ func (a *DcimAPIService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartial localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableModuleRequest + localVarPostBody = r.patchedPlatformRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -67422,50 +81481,49 @@ func (a *DcimAPIService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartial return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModulesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPlatformsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimModulesRetrieveRequest) Execute() (*Module, *http.Response, error) { - return r.ApiService.DcimModulesRetrieveExecute(r) +func (r ApiDcimPlatformsRetrieveRequest) Execute() (*Platform, *http.Response, error) { + return r.ApiService.DcimPlatformsRetrieveExecute(r) } /* -DcimModulesRetrieve Method for DcimModulesRetrieve +DcimPlatformsRetrieve Method for DcimPlatformsRetrieve -Get a module object. +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 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 platform. + @return ApiDcimPlatformsRetrieveRequest */ -func (a *DcimAPIService) DcimModulesRetrieve(ctx context.Context, id int32) ApiDcimModulesRetrieveRequest { - return ApiDcimModulesRetrieveRequest{ +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 Module -func (a *DcimAPIService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequest) (*Module, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieveRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/{id}/" + localVarPath := localBasePath + "/api/dcim/platforms/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -67540,63 +81598,62 @@ func (a *DcimAPIService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimModulesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableModuleRequest *WritableModuleRequest +type ApiDcimPlatformsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + platformRequest *PlatformRequest } -func (r ApiDcimModulesUpdateRequest) WritableModuleRequest(writableModuleRequest WritableModuleRequest) ApiDcimModulesUpdateRequest { - r.writableModuleRequest = &writableModuleRequest +func (r ApiDcimPlatformsUpdateRequest) PlatformRequest(platformRequest PlatformRequest) ApiDcimPlatformsUpdateRequest { + r.platformRequest = &platformRequest return r } -func (r ApiDcimModulesUpdateRequest) Execute() (*Module, *http.Response, error) { - return r.ApiService.DcimModulesUpdateExecute(r) +func (r ApiDcimPlatformsUpdateRequest) Execute() (*Platform, *http.Response, error) { + return r.ApiService.DcimPlatformsUpdateExecute(r) } /* -DcimModulesUpdate Method for DcimModulesUpdate +DcimPlatformsUpdate Method for DcimPlatformsUpdate -Put a module object. +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 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 platform. + @return ApiDcimPlatformsUpdateRequest */ -func (a *DcimAPIService) DcimModulesUpdate(ctx context.Context, id int32) ApiDcimModulesUpdateRequest { - return ApiDcimModulesUpdateRequest{ +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 Module -func (a *DcimAPIService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) (*Module, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/modules/{id}/" + localVarPath := localBasePath + "/api/dcim/platforms/{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.writableModuleRequest == nil { - return localVarReturnValue, nil, reportError("writableModuleRequest is required and must be specified") + if r.platformRequest == nil { + return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") } // to determine the Content-Type header @@ -67617,7 +81674,7 @@ func (a *DcimAPIService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableModuleRequest + localVarPostBody = r.platformRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -67669,56 +81726,56 @@ func (a *DcimAPIService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPlatformsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - platformRequest *[]PlatformRequest +type ApiDcimPowerFeedsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + powerFeedRequest *[]PowerFeedRequest } -func (r ApiDcimPlatformsBulkDestroyRequest) PlatformRequest(platformRequest []PlatformRequest) ApiDcimPlatformsBulkDestroyRequest { - r.platformRequest = &platformRequest +func (r ApiDcimPowerFeedsBulkDestroyRequest) PowerFeedRequest(powerFeedRequest []PowerFeedRequest) ApiDcimPowerFeedsBulkDestroyRequest { + r.powerFeedRequest = &powerFeedRequest return r } -func (r ApiDcimPlatformsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPlatformsBulkDestroyExecute(r) +func (r ApiDcimPowerFeedsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerFeedsBulkDestroyExecute(r) } /* -DcimPlatformsBulkDestroy Method for DcimPlatformsBulkDestroy +DcimPowerFeedsBulkDestroy Method for DcimPowerFeedsBulkDestroy -Delete a list of platform objects. +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 ApiDcimPlatformsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsBulkDestroyRequest */ -func (a *DcimAPIService) DcimPlatformsBulkDestroy(ctx context.Context) ApiDcimPlatformsBulkDestroyRequest { - return ApiDcimPlatformsBulkDestroyRequest{ +func (a *DcimAPIService) DcimPowerFeedsBulkDestroy(ctx context.Context) ApiDcimPowerFeedsBulkDestroyRequest { + return ApiDcimPowerFeedsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkDestroyRequest) (*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.DcimPlatformsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/" + localVarPath := localBasePath + "/api/dcim/power-feeds/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.platformRequest == nil { - return nil, reportError("platformRequest is required and must be specified") + if r.powerFeedRequest == nil { + return nil, reportError("powerFeedRequest is required and must be specified") } // to determine the Content-Type header @@ -67739,7 +81796,7 @@ func (a *DcimAPIService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.platformRequest + localVarPostBody = r.powerFeedRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -67782,59 +81839,58 @@ func (a *DcimAPIService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkD return localVarHTTPResponse, nil } -type ApiDcimPlatformsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - platformRequest *[]PlatformRequest +type ApiDcimPowerFeedsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerFeedRequest *[]PowerFeedRequest } -func (r ApiDcimPlatformsBulkPartialUpdateRequest) PlatformRequest(platformRequest []PlatformRequest) ApiDcimPlatformsBulkPartialUpdateRequest { - r.platformRequest = &platformRequest +func (r ApiDcimPowerFeedsBulkPartialUpdateRequest) PowerFeedRequest(powerFeedRequest []PowerFeedRequest) ApiDcimPowerFeedsBulkPartialUpdateRequest { + r.powerFeedRequest = &powerFeedRequest return r } -func (r ApiDcimPlatformsBulkPartialUpdateRequest) Execute() ([]Platform, *http.Response, error) { - return r.ApiService.DcimPlatformsBulkPartialUpdateExecute(r) +func (r ApiDcimPowerFeedsBulkPartialUpdateRequest) Execute() ([]PowerFeed, *http.Response, error) { + return r.ApiService.DcimPowerFeedsBulkPartialUpdateExecute(r) } /* -DcimPlatformsBulkPartialUpdate Method for DcimPlatformsBulkPartialUpdate +DcimPowerFeedsBulkPartialUpdate Method for DcimPowerFeedsBulkPartialUpdate -Patch a list of platform objects. +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 ApiDcimPlatformsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimPlatformsBulkPartialUpdate(ctx context.Context) ApiDcimPlatformsBulkPartialUpdateRequest { - return ApiDcimPlatformsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdate(ctx context.Context) ApiDcimPowerFeedsBulkPartialUpdateRequest { + return ApiDcimPowerFeedsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Platform -func (a *DcimAPIService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatformsBulkPartialUpdateRequest) ([]Platform, *http.Response, error) { +// @return []PowerFeed +func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFeedsBulkPartialUpdateRequest) ([]PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Platform + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/" + localVarPath := localBasePath + "/api/dcim/power-feeds/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.platformRequest == nil { - return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") + if r.powerFeedRequest == nil { + return localVarReturnValue, nil, reportError("powerFeedRequest is required and must be specified") } // to determine the Content-Type header @@ -67855,7 +81911,7 @@ func (a *DcimAPIService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatform localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.platformRequest + localVarPostBody = r.powerFeedRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -67907,59 +81963,58 @@ func (a *DcimAPIService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatform return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPlatformsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - platformRequest *[]PlatformRequest +type ApiDcimPowerFeedsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerFeedRequest *[]PowerFeedRequest } -func (r ApiDcimPlatformsBulkUpdateRequest) PlatformRequest(platformRequest []PlatformRequest) ApiDcimPlatformsBulkUpdateRequest { - r.platformRequest = &platformRequest +func (r ApiDcimPowerFeedsBulkUpdateRequest) PowerFeedRequest(powerFeedRequest []PowerFeedRequest) ApiDcimPowerFeedsBulkUpdateRequest { + r.powerFeedRequest = &powerFeedRequest return r } -func (r ApiDcimPlatformsBulkUpdateRequest) Execute() ([]Platform, *http.Response, error) { - return r.ApiService.DcimPlatformsBulkUpdateExecute(r) +func (r ApiDcimPowerFeedsBulkUpdateRequest) Execute() ([]PowerFeed, *http.Response, error) { + return r.ApiService.DcimPowerFeedsBulkUpdateExecute(r) } /* -DcimPlatformsBulkUpdate Method for DcimPlatformsBulkUpdate +DcimPowerFeedsBulkUpdate Method for DcimPowerFeedsBulkUpdate -Put a list of platform objects. +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 ApiDcimPlatformsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsBulkUpdateRequest */ -func (a *DcimAPIService) DcimPlatformsBulkUpdate(ctx context.Context) ApiDcimPlatformsBulkUpdateRequest { - return ApiDcimPlatformsBulkUpdateRequest{ +func (a *DcimAPIService) DcimPowerFeedsBulkUpdate(ctx context.Context) ApiDcimPowerFeedsBulkUpdateRequest { + return ApiDcimPowerFeedsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Platform -func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUpdateRequest) ([]Platform, *http.Response, error) { +// @return []PowerFeed +func (a *DcimAPIService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulkUpdateRequest) ([]PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Platform + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/" + localVarPath := localBasePath + "/api/dcim/power-feeds/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.platformRequest == nil { - return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") + if r.powerFeedRequest == nil { + return localVarReturnValue, nil, reportError("powerFeedRequest is required and must be specified") } // to determine the Content-Type header @@ -67980,7 +82035,7 @@ func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.platformRequest + localVarPostBody = r.powerFeedRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -68032,59 +82087,58 @@ func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPlatformsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - platformRequest *PlatformRequest +type ApiDcimPowerFeedsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writablePowerFeedRequest *WritablePowerFeedRequest } -func (r ApiDcimPlatformsCreateRequest) PlatformRequest(platformRequest PlatformRequest) ApiDcimPlatformsCreateRequest { - r.platformRequest = &platformRequest +func (r ApiDcimPowerFeedsCreateRequest) WritablePowerFeedRequest(writablePowerFeedRequest WritablePowerFeedRequest) ApiDcimPowerFeedsCreateRequest { + r.writablePowerFeedRequest = &writablePowerFeedRequest return r } -func (r ApiDcimPlatformsCreateRequest) Execute() (*Platform, *http.Response, error) { - return r.ApiService.DcimPlatformsCreateExecute(r) +func (r ApiDcimPowerFeedsCreateRequest) Execute() (*PowerFeed, *http.Response, error) { + return r.ApiService.DcimPowerFeedsCreateExecute(r) } /* -DcimPlatformsCreate Method for DcimPlatformsCreate +DcimPowerFeedsCreate Method for DcimPowerFeedsCreate -Post a list of platform objects. +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 ApiDcimPlatformsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsCreateRequest */ -func (a *DcimAPIService) DcimPlatformsCreate(ctx context.Context) ApiDcimPlatformsCreateRequest { - return ApiDcimPlatformsCreateRequest{ +func (a *DcimAPIService) DcimPowerFeedsCreate(ctx context.Context) ApiDcimPowerFeedsCreateRequest { + return ApiDcimPowerFeedsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Platform -func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequest) (*Platform, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/" + localVarPath := localBasePath + "/api/dcim/power-feeds/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.platformRequest == nil { - return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") + if r.writablePowerFeedRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerFeedRequest is required and must be specified") } // to determine the Content-Type header @@ -68105,7 +82159,7 @@ func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.platformRequest + localVarPostBody = r.writablePowerFeedRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -68157,47 +82211,47 @@ func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPlatformsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerFeedsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPlatformsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPlatformsDestroyExecute(r) +func (r ApiDcimPowerFeedsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerFeedsDestroyExecute(r) } /* -DcimPlatformsDestroy Method for DcimPlatformsDestroy +DcimPowerFeedsDestroy Method for DcimPowerFeedsDestroy -Delete a platform object. +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 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 power feed. + @return ApiDcimPowerFeedsDestroyRequest */ -func (a *DcimAPIService) DcimPlatformsDestroy(ctx context.Context, id int32) ApiDcimPlatformsDestroyRequest { - return ApiDcimPlatformsDestroyRequest{ +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) DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRequest) (*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.DcimPlatformsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/{id}/" + localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -68263,516 +82317,1001 @@ func (a *DcimAPIService) DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRe return localVarHTTPResponse, nil } -type ApiDcimPlatformsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - availableForDeviceType *string - configTemplateId *[]*int32 - configTemplateIdN *[]*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 - 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 +type ApiDcimPowerFeedsListRequest struct { + ctx context.Context + ApiService DcimAPI + amperage *[]int32 + amperageEmpty *bool + amperageGt *[]int32 + amperageGte *[]int32 + amperageLt *[]int32 + amperageLte *[]int32 + amperageN *[]int32 + availablePower *[]int32 + availablePowerEmpty *bool + availablePowerGt *[]int32 + availablePowerGte *[]int32 + availablePowerLt *[]int32 + availablePowerLte *[]int32 + availablePowerN *[]int32 + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + 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 + markConnected *bool + maxUtilization *[]int32 + maxUtilizationEmpty *bool + maxUtilizationGt *[]int32 + maxUtilizationGte *[]int32 + maxUtilizationLt *[]int32 + maxUtilizationLte *[]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 *DcimPowerFeedsListPhaseParameter + powerPanelId *[]int32 + powerPanelIdN *[]int32 + q *string + rackId *[]int32 + rackIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + supply *DcimPowerFeedsListSupplyParameter + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *DcimPowerFeedsListTypeParameter + updatedByRequest *string + voltage *[]int32 + voltageEmpty *bool + voltageGt *[]int32 + voltageGte *[]int32 + voltageLt *[]int32 + voltageLte *[]int32 + voltageN *[]int32 } -func (r ApiDcimPlatformsListRequest) AvailableForDeviceType(availableForDeviceType string) ApiDcimPlatformsListRequest { - r.availableForDeviceType = &availableForDeviceType +func (r ApiDcimPowerFeedsListRequest) Amperage(amperage []int32) ApiDcimPowerFeedsListRequest { + r.amperage = &erage return r } -// Config template (ID) -func (r ApiDcimPlatformsListRequest) ConfigTemplateId(configTemplateId []*int32) ApiDcimPlatformsListRequest { - r.configTemplateId = &configTemplateId +func (r ApiDcimPowerFeedsListRequest) AmperageEmpty(amperageEmpty bool) ApiDcimPowerFeedsListRequest { + r.amperageEmpty = &erageEmpty return r } -// Config template (ID) -func (r ApiDcimPlatformsListRequest) ConfigTemplateIdN(configTemplateIdN []*int32) ApiDcimPlatformsListRequest { - r.configTemplateIdN = &configTemplateIdN +func (r ApiDcimPowerFeedsListRequest) AmperageGt(amperageGt []int32) ApiDcimPowerFeedsListRequest { + r.amperageGt = &erageGt return r } -func (r ApiDcimPlatformsListRequest) Created(created []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) AmperageGte(amperageGte []int32) ApiDcimPowerFeedsListRequest { + r.amperageGte = &erageGte + return r +} + +func (r ApiDcimPowerFeedsListRequest) AmperageLt(amperageLt []int32) ApiDcimPowerFeedsListRequest { + r.amperageLt = &erageLt + return r +} + +func (r ApiDcimPowerFeedsListRequest) AmperageLte(amperageLte []int32) ApiDcimPowerFeedsListRequest { + r.amperageLte = &erageLte + return r +} + +func (r ApiDcimPowerFeedsListRequest) AmperageN(amperageN []int32) ApiDcimPowerFeedsListRequest { + r.amperageN = &erageN + return r +} + +func (r ApiDcimPowerFeedsListRequest) AvailablePower(availablePower []int32) ApiDcimPowerFeedsListRequest { + r.availablePower = &availablePower + return r +} + +func (r ApiDcimPowerFeedsListRequest) AvailablePowerEmpty(availablePowerEmpty bool) ApiDcimPowerFeedsListRequest { + r.availablePowerEmpty = &availablePowerEmpty + return r +} + +func (r ApiDcimPowerFeedsListRequest) AvailablePowerGt(availablePowerGt []int32) ApiDcimPowerFeedsListRequest { + r.availablePowerGt = &availablePowerGt + return r +} + +func (r ApiDcimPowerFeedsListRequest) AvailablePowerGte(availablePowerGte []int32) ApiDcimPowerFeedsListRequest { + r.availablePowerGte = &availablePowerGte + return r +} + +func (r ApiDcimPowerFeedsListRequest) AvailablePowerLt(availablePowerLt []int32) ApiDcimPowerFeedsListRequest { + r.availablePowerLt = &availablePowerLt + return r +} + +func (r ApiDcimPowerFeedsListRequest) AvailablePowerLte(availablePowerLte []int32) ApiDcimPowerFeedsListRequest { + r.availablePowerLte = &availablePowerLte + return r +} + +func (r ApiDcimPowerFeedsListRequest) AvailablePowerN(availablePowerN []int32) ApiDcimPowerFeedsListRequest { + r.availablePowerN = &availablePowerN + return r +} + +// * `A` - A * `B` - B +func (r ApiDcimPowerFeedsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerFeedsListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiDcimPowerFeedsListRequest) CableId(cableId []*int32) ApiDcimPowerFeedsListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiDcimPowerFeedsListRequest) CableIdN(cableIdN []*int32) ApiDcimPowerFeedsListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiDcimPowerFeedsListRequest) Cabled(cabled bool) ApiDcimPowerFeedsListRequest { + r.cabled = &cabled + return r +} + +func (r ApiDcimPowerFeedsListRequest) Connected(connected bool) ApiDcimPowerFeedsListRequest { + r.connected = &connected + return r +} + +func (r ApiDcimPowerFeedsListRequest) Created(created []time.Time) ApiDcimPowerFeedsListRequest { r.created = &created return r } -func (r ApiDcimPlatformsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerFeedsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimPlatformsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerFeedsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimPlatformsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerFeedsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimPlatformsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerFeedsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimPlatformsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerFeedsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimPlatformsListRequest) CreatedN(createdN []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerFeedsListRequest { r.createdN = &createdN return r } -func (r ApiDcimPlatformsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerFeedsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimPlatformsListRequest) Description(description []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) Description(description []string) ApiDcimPowerFeedsListRequest { r.description = &description return r } -func (r ApiDcimPlatformsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerFeedsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimPlatformsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerFeedsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimPlatformsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerFeedsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimPlatformsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerFeedsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimPlatformsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerFeedsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimPlatformsListRequest) DescriptionN(descriptionN []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerFeedsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimPlatformsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerFeedsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimPlatformsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerFeedsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimPlatformsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerFeedsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimPlatformsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerFeedsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimPlatformsListRequest) Id(id []int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) Id(id []int32) ApiDcimPowerFeedsListRequest { r.id = &id return r } -func (r ApiDcimPlatformsListRequest) IdEmpty(idEmpty bool) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerFeedsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimPlatformsListRequest) IdGt(idGt []int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) IdGt(idGt []int32) ApiDcimPowerFeedsListRequest { r.idGt = &idGt return r } -func (r ApiDcimPlatformsListRequest) IdGte(idGte []int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) IdGte(idGte []int32) ApiDcimPowerFeedsListRequest { r.idGte = &idGte return r } -func (r ApiDcimPlatformsListRequest) IdLt(idLt []int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) IdLt(idLt []int32) ApiDcimPowerFeedsListRequest { r.idLt = &idLt return r } -func (r ApiDcimPlatformsListRequest) IdLte(idLte []int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) IdLte(idLte []int32) ApiDcimPowerFeedsListRequest { r.idLte = &idLte return r } -func (r ApiDcimPlatformsListRequest) IdN(idN []int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) IdN(idN []int32) ApiDcimPowerFeedsListRequest { r.idN = &idN return r } -func (r ApiDcimPlatformsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimPlatformsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimPlatformsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimPlatformsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimPlatformsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimPlatformsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimPlatformsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimPlatformsListRequest) Limit(limit int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) Limit(limit int32) ApiDcimPowerFeedsListRequest { r.limit = &limit return r } -// Manufacturer (slug) -func (r ApiDcimPlatformsListRequest) Manufacturer(manufacturer []string) ApiDcimPlatformsListRequest { - r.manufacturer = &manufacturer +func (r ApiDcimPowerFeedsListRequest) MarkConnected(markConnected bool) ApiDcimPowerFeedsListRequest { + r.markConnected = &markConnected return r } -// Manufacturer (slug) -func (r ApiDcimPlatformsListRequest) ManufacturerN(manufacturerN []string) ApiDcimPlatformsListRequest { - r.manufacturerN = &manufacturerN +func (r ApiDcimPowerFeedsListRequest) MaxUtilization(maxUtilization []int32) ApiDcimPowerFeedsListRequest { + r.maxUtilization = &maxUtilization return r } -// Manufacturer (ID) -func (r ApiDcimPlatformsListRequest) ManufacturerId(manufacturerId []int32) ApiDcimPlatformsListRequest { - r.manufacturerId = &manufacturerId +func (r ApiDcimPowerFeedsListRequest) MaxUtilizationEmpty(maxUtilizationEmpty bool) ApiDcimPowerFeedsListRequest { + r.maxUtilizationEmpty = &maxUtilizationEmpty return r } -// Manufacturer (ID) -func (r ApiDcimPlatformsListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimPlatformsListRequest { - r.manufacturerIdN = &manufacturerIdN +func (r ApiDcimPowerFeedsListRequest) MaxUtilizationGt(maxUtilizationGt []int32) ApiDcimPowerFeedsListRequest { + r.maxUtilizationGt = &maxUtilizationGt return r } -func (r ApiDcimPlatformsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) MaxUtilizationGte(maxUtilizationGte []int32) ApiDcimPowerFeedsListRequest { + r.maxUtilizationGte = &maxUtilizationGte + return r +} + +func (r ApiDcimPowerFeedsListRequest) MaxUtilizationLt(maxUtilizationLt []int32) ApiDcimPowerFeedsListRequest { + r.maxUtilizationLt = &maxUtilizationLt + return r +} + +func (r ApiDcimPowerFeedsListRequest) MaxUtilizationLte(maxUtilizationLte []int32) ApiDcimPowerFeedsListRequest { + r.maxUtilizationLte = &maxUtilizationLte + return r +} + +func (r ApiDcimPowerFeedsListRequest) MaxUtilizationN(maxUtilizationN []int32) ApiDcimPowerFeedsListRequest { + r.maxUtilizationN = &maxUtilizationN + return r +} + +func (r ApiDcimPowerFeedsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerFeedsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimPlatformsListRequest) Name(name []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) Name(name []string) ApiDcimPowerFeedsListRequest { r.name = &name return r } -func (r ApiDcimPlatformsListRequest) NameEmpty(nameEmpty bool) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerFeedsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimPlatformsListRequest) NameIc(nameIc []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameIc(nameIc []string) ApiDcimPowerFeedsListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimPlatformsListRequest) NameIe(nameIe []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameIe(nameIe []string) ApiDcimPowerFeedsListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimPlatformsListRequest) NameIew(nameIew []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameIew(nameIew []string) ApiDcimPowerFeedsListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimPlatformsListRequest) NameIsw(nameIsw []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameIsw(nameIsw []string) ApiDcimPowerFeedsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimPlatformsListRequest) NameN(nameN []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameN(nameN []string) ApiDcimPowerFeedsListRequest { r.nameN = &nameN return r } -func (r ApiDcimPlatformsListRequest) NameNic(nameNic []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameNic(nameNic []string) ApiDcimPowerFeedsListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimPlatformsListRequest) NameNie(nameNie []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameNie(nameNie []string) ApiDcimPowerFeedsListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimPlatformsListRequest) NameNiew(nameNiew []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameNiew(nameNiew []string) ApiDcimPowerFeedsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimPlatformsListRequest) NameNisw(nameNisw []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) NameNisw(nameNisw []string) ApiDcimPowerFeedsListRequest { r.nameNisw = &nameNisw return r } +func (r ApiDcimPowerFeedsListRequest) Occupied(occupied bool) ApiDcimPowerFeedsListRequest { + r.occupied = &occupied + return r +} + // The initial index from which to return the results. -func (r ApiDcimPlatformsListRequest) Offset(offset int32) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) Offset(offset int32) ApiDcimPowerFeedsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimPlatformsListRequest) Ordering(ordering string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) Ordering(ordering string) ApiDcimPowerFeedsListRequest { r.ordering = &ordering return r } +// * `single-phase` - Single phase * `three-phase` - Three-phase +func (r ApiDcimPowerFeedsListRequest) Phase(phase DcimPowerFeedsListPhaseParameter) ApiDcimPowerFeedsListRequest { + r.phase = &phase + return r +} + +// Power panel (ID) +func (r ApiDcimPowerFeedsListRequest) PowerPanelId(powerPanelId []int32) ApiDcimPowerFeedsListRequest { + r.powerPanelId = &powerPanelId + return r +} + +// Power panel (ID) +func (r ApiDcimPowerFeedsListRequest) PowerPanelIdN(powerPanelIdN []int32) ApiDcimPowerFeedsListRequest { + r.powerPanelIdN = &powerPanelIdN + return r +} + // Search -func (r ApiDcimPlatformsListRequest) Q(q string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) Q(q string) ApiDcimPowerFeedsListRequest { r.q = &q return r } -func (r ApiDcimPlatformsListRequest) Slug(slug []string) ApiDcimPlatformsListRequest { - r.slug = &slug +// Rack (ID) +func (r ApiDcimPowerFeedsListRequest) RackId(rackId []int32) ApiDcimPowerFeedsListRequest { + r.rackId = &rackId return r } -func (r ApiDcimPlatformsListRequest) SlugEmpty(slugEmpty bool) ApiDcimPlatformsListRequest { - r.slugEmpty = &slugEmpty +// Rack (ID) +func (r ApiDcimPowerFeedsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerFeedsListRequest { + r.rackIdN = &rackIdN return r } -func (r ApiDcimPlatformsListRequest) SlugIc(slugIc []string) ApiDcimPlatformsListRequest { - r.slugIc = &slugIc +func (r ApiDcimPowerFeedsListRequest) Region(region []string) ApiDcimPowerFeedsListRequest { + r.region = ®ion return r } -func (r ApiDcimPlatformsListRequest) SlugIe(slugIe []string) ApiDcimPlatformsListRequest { - r.slugIe = &slugIe +func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []string) ApiDcimPowerFeedsListRequest { + r.regionN = ®ionN return r } -func (r ApiDcimPlatformsListRequest) SlugIew(slugIew []string) ApiDcimPlatformsListRequest { - r.slugIew = &slugIew +func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []string) ApiDcimPowerFeedsListRequest { + r.regionId = ®ionId return r } -func (r ApiDcimPlatformsListRequest) SlugIsw(slugIsw []string) ApiDcimPlatformsListRequest { - r.slugIsw = &slugIsw +func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerFeedsListRequest { + r.regionIdN = ®ionIdN return r } -func (r ApiDcimPlatformsListRequest) SlugN(slugN []string) ApiDcimPlatformsListRequest { - r.slugN = &slugN +// Site name (slug) +func (r ApiDcimPowerFeedsListRequest) Site(site []string) ApiDcimPowerFeedsListRequest { + r.site = &site return r } -func (r ApiDcimPlatformsListRequest) SlugNic(slugNic []string) ApiDcimPlatformsListRequest { - r.slugNic = &slugNic +// Site name (slug) +func (r ApiDcimPowerFeedsListRequest) SiteN(siteN []string) ApiDcimPowerFeedsListRequest { + r.siteN = &siteN return r } -func (r ApiDcimPlatformsListRequest) SlugNie(slugNie []string) ApiDcimPlatformsListRequest { - r.slugNie = &slugNie +func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerFeedsListRequest { + r.siteGroup = &siteGroup return r } -func (r ApiDcimPlatformsListRequest) SlugNiew(slugNiew []string) ApiDcimPlatformsListRequest { - r.slugNiew = &slugNiew +func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerFeedsListRequest { + r.siteGroupN = &siteGroupN return r } -func (r ApiDcimPlatformsListRequest) SlugNisw(slugNisw []string) ApiDcimPlatformsListRequest { - r.slugNisw = &slugNisw +func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerFeedsListRequest { + r.siteGroupId = &siteGroupId return r } -func (r ApiDcimPlatformsListRequest) Tag(tag []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerFeedsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiDcimPowerFeedsListRequest) SiteId(siteId []int32) ApiDcimPowerFeedsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiDcimPowerFeedsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerFeedsListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiDcimPowerFeedsListRequest) Status(status []string) ApiDcimPowerFeedsListRequest { + r.status = &status + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusEmpty(statusEmpty bool) ApiDcimPowerFeedsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusIc(statusIc []string) ApiDcimPowerFeedsListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusIe(statusIe []string) ApiDcimPowerFeedsListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusIew(statusIew []string) ApiDcimPowerFeedsListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusIsw(statusIsw []string) ApiDcimPowerFeedsListRequest { + r.statusIsw = &statusIsw + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusN(statusN []string) ApiDcimPowerFeedsListRequest { + r.statusN = &statusN + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusNic(statusNic []string) ApiDcimPowerFeedsListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusNie(statusNie []string) ApiDcimPowerFeedsListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusNiew(statusNiew []string) ApiDcimPowerFeedsListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiDcimPowerFeedsListRequest) StatusNisw(statusNisw []string) ApiDcimPowerFeedsListRequest { + r.statusNisw = &statusNisw + return r +} + +// * `ac` - AC * `dc` - DC +func (r ApiDcimPowerFeedsListRequest) Supply(supply DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest { + r.supply = &supply + return r +} + +func (r ApiDcimPowerFeedsListRequest) Tag(tag []string) ApiDcimPowerFeedsListRequest { r.tag = &tag return r } -func (r ApiDcimPlatformsListRequest) TagN(tagN []string) ApiDcimPlatformsListRequest { +func (r ApiDcimPowerFeedsListRequest) TagN(tagN []string) ApiDcimPowerFeedsListRequest { r.tagN = &tagN return r } -func (r ApiDcimPlatformsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPlatformsListRequest { +// 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 +} + +func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []string) ApiDcimPowerFeedsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimPowerFeedsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimPowerFeedsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []string) 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 +} + +// * `primary` - Primary * `redundant` - Redundant +func (r ApiDcimPowerFeedsListRequest) Type_(type_ DcimPowerFeedsListTypeParameter) ApiDcimPowerFeedsListRequest { + r.type_ = &type_ + return r +} + +func (r ApiDcimPowerFeedsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerFeedsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimPlatformsListRequest) Execute() (*PaginatedPlatformList, *http.Response, error) { - return r.ApiService.DcimPlatformsListExecute(r) +func (r ApiDcimPowerFeedsListRequest) Voltage(voltage []int32) ApiDcimPowerFeedsListRequest { + r.voltage = &voltage + 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 +} + +func (r ApiDcimPowerFeedsListRequest) VoltageGte(voltageGte []int32) ApiDcimPowerFeedsListRequest { + r.voltageGte = &voltageGte + return r +} + +func (r ApiDcimPowerFeedsListRequest) VoltageLt(voltageLt []int32) ApiDcimPowerFeedsListRequest { + r.voltageLt = &voltageLt + return r +} + +func (r ApiDcimPowerFeedsListRequest) VoltageLte(voltageLte []int32) ApiDcimPowerFeedsListRequest { + r.voltageLte = &voltageLte + return r +} + +func (r ApiDcimPowerFeedsListRequest) VoltageN(voltageN []int32) ApiDcimPowerFeedsListRequest { + r.voltageN = &voltageN + return r +} + +func (r ApiDcimPowerFeedsListRequest) Execute() (*PaginatedPowerFeedList, *http.Response, error) { + return r.ApiService.DcimPowerFeedsListExecute(r) } /* -DcimPlatformsList Method for DcimPlatformsList +DcimPowerFeedsList Method for DcimPowerFeedsList -Get a list of platform objects. +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 ApiDcimPlatformsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsListRequest */ -func (a *DcimAPIService) DcimPlatformsList(ctx context.Context) ApiDcimPlatformsListRequest { - return ApiDcimPlatformsListRequest{ +func (a *DcimAPIService) DcimPowerFeedsList(ctx context.Context) ApiDcimPowerFeedsListRequest { + return ApiDcimPowerFeedsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPlatformList -func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) (*PaginatedPlatformList, *http.Response, error) { +// @return PaginatedPowerFeedList +func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListRequest) (*PaginatedPowerFeedList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPlatformList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerFeedList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/" + localVarPath := localBasePath + "/api/dcim/power-feeds/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.availableForDeviceType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_for_device_type", r.availableForDeviceType, "") + if r.amperage != nil { + t := *r.amperage + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage", t, "form", "multi") + } } - if r.configTemplateId != nil { - t := *r.configTemplateId + if r.amperageEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__empty", r.amperageEmpty, "form", "") + } + 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, "config_template_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gt", t, "form", "multi") } } - if r.configTemplateIdN != nil { - t := *r.configTemplateIdN + if r.amperageGte != nil { + t := *r.amperageGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gte", t, "form", "multi") + } + } + if r.amperageLt != nil { + t := *r.amperageLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lt", t, "form", "multi") + } + } + if r.amperageLte != nil { + t := *r.amperageLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lte", t, "form", "multi") + } + } + if r.amperageN != nil { + t := *r.amperageN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__n", t, "form", "multi") + } + } + if r.availablePower != nil { + t := *r.availablePower + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power", t, "form", "multi") + } + } + if r.availablePowerEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__empty", r.availablePowerEmpty, "form", "") + } + if r.availablePowerGt != nil { + t := *r.availablePowerGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gt", t, "form", "multi") + } + } + if r.availablePowerGte != nil { + t := *r.availablePowerGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gte", t, "form", "multi") + } + } + if r.availablePowerLt != nil { + t := *r.availablePowerLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lt", t, "form", "multi") + } + } + if r.availablePowerLte != nil { + t := *r.availablePowerLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lte", t, "form", "multi") + } + } + if r.availablePowerN != nil { + t := *r.availablePowerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__n", t, "form", "multi") + } + } + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + if r.cableId != nil { + t := *r.cableId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") + } + } + if r.cableIdN != nil { + t := *r.cableIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") } } + if r.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") + } + if r.connected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -68780,10 +83319,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -68791,10 +83330,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -68802,10 +83341,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -68813,10 +83352,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -68824,10 +83363,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -68835,38 +83374,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -68874,10 +83413,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -68885,10 +83424,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -68896,10 +83435,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -68907,10 +83446,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -68918,10 +83457,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -68929,10 +83468,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -68940,10 +83479,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -68951,10 +83490,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -68962,24 +83501,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -68987,10 +83526,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -68998,10 +83537,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -69009,10 +83548,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -69020,10 +83559,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -69031,10 +83570,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -69042,10 +83581,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -69053,10 +83592,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -69064,10 +83603,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -69075,10 +83614,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -69086,10 +83625,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -69097,85 +83636,113 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.manufacturer != nil { - t := *r.manufacturer + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.maxUtilization != nil { + t := *r.maxUtilization if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization", t, "form", "multi") } } - if r.manufacturerN != nil { - t := *r.manufacturerN + if r.maxUtilizationEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__empty", r.maxUtilizationEmpty, "form", "") + } + 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, "manufacturer__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gt", t, "form", "multi") } } - if r.manufacturerId != nil { - t := *r.manufacturerId + if r.maxUtilizationGte != nil { + t := *r.maxUtilizationGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gte", t, "form", "multi") } } - if r.manufacturerIdN != nil { - t := *r.manufacturerIdN + if r.maxUtilizationLt != nil { + t := *r.maxUtilizationLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lt", t, "form", "multi") + } + } + if r.maxUtilizationLte != nil { + t := *r.maxUtilizationLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lte", t, "form", "multi") + } + } + if r.maxUtilizationN != nil { + t := *r.maxUtilizationN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__n", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -69183,10 +83750,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -69194,10 +83761,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -69205,10 +83772,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -69216,10 +83783,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -69227,10 +83794,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -69238,10 +83805,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -69249,10 +83816,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -69260,143 +83827,328 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.phase != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "phase", r.phase, "form", "") + } + if r.powerPanelId != nil { + t := *r.powerPanelId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id", t, "form", "multi") + } + } + if r.powerPanelIdN != nil { + t := *r.powerPanelIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id__n", t, "form", "multi") + } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.slug != nil { - t := *r.slug + if r.rackId != nil { + t := *r.rackId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + if r.rackIdN != nil { + t := *r.rackIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") + } } - if r.slugIc != nil { - t := *r.slugIc + 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, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + 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, "slug__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + 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, "slug__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + 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, "slug__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + 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, "slug__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + 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, "slug__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + 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, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + 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, "slug__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") + } + } + if r.statusN != nil { + t := *r.statusN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") } } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") + } + } + if r.supply != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "supply", r.supply, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -69404,14 +84156,174 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") + } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.voltage != nil { + t := *r.voltage + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage", t, "form", "multi") + } + } + if r.voltageEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__empty", r.voltageEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gt", t, "form", "multi") + } + } + if r.voltageGte != nil { + t := *r.voltageGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gte", t, "form", "multi") + } + } + if r.voltageLt != nil { + t := *r.voltageLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lt", t, "form", "multi") + } + } + if r.voltageLte != nil { + t := *r.voltageLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lte", t, "form", "multi") + } + } + if r.voltageN != nil { + t := *r.voltageN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -69481,56 +84393,55 @@ func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPlatformsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedPlatformRequest *PatchedPlatformRequest +type ApiDcimPowerFeedsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritablePowerFeedRequest *PatchedWritablePowerFeedRequest } -func (r ApiDcimPlatformsPartialUpdateRequest) PatchedPlatformRequest(patchedPlatformRequest PatchedPlatformRequest) ApiDcimPlatformsPartialUpdateRequest { - r.patchedPlatformRequest = &patchedPlatformRequest +func (r ApiDcimPowerFeedsPartialUpdateRequest) PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest PatchedWritablePowerFeedRequest) ApiDcimPowerFeedsPartialUpdateRequest { + r.patchedWritablePowerFeedRequest = &patchedWritablePowerFeedRequest return r } -func (r ApiDcimPlatformsPartialUpdateRequest) Execute() (*Platform, *http.Response, error) { - return r.ApiService.DcimPlatformsPartialUpdateExecute(r) +func (r ApiDcimPowerFeedsPartialUpdateRequest) Execute() (*PowerFeed, *http.Response, error) { + return r.ApiService.DcimPowerFeedsPartialUpdateExecute(r) } /* -DcimPlatformsPartialUpdate Method for DcimPlatformsPartialUpdate +DcimPowerFeedsPartialUpdate Method for DcimPowerFeedsPartialUpdate -Patch a platform object. +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 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 power feed. + @return ApiDcimPowerFeedsPartialUpdateRequest */ -func (a *DcimAPIService) DcimPlatformsPartialUpdate(ctx context.Context, id int32) ApiDcimPlatformsPartialUpdateRequest { - return ApiDcimPlatformsPartialUpdateRequest{ +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 Platform -func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPartialUpdateRequest) (*Platform, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsPartialUpdateRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/{id}/" + localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -69555,7 +84466,7 @@ func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedPlatformRequest + localVarPostBody = r.patchedWritablePowerFeedRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -69607,50 +84518,49 @@ func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPlatformsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerFeedsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPlatformsRetrieveRequest) Execute() (*Platform, *http.Response, error) { - return r.ApiService.DcimPlatformsRetrieveExecute(r) +func (r ApiDcimPowerFeedsRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) { + return r.ApiService.DcimPowerFeedsRetrieveExecute(r) } /* -DcimPlatformsRetrieve Method for DcimPlatformsRetrieve +DcimPowerFeedsRetrieve Method for DcimPowerFeedsRetrieve -Get a platform object. +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 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 power feed. + @return ApiDcimPowerFeedsRetrieveRequest */ -func (a *DcimAPIService) DcimPlatformsRetrieve(ctx context.Context, id int32) ApiDcimPlatformsRetrieveRequest { - return ApiDcimPlatformsRetrieveRequest{ +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 Platform -func (a *DcimAPIService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieveRequest) (*Platform, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrieveRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/{id}/" + localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -69725,63 +84635,179 @@ func (a *DcimAPIService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPlatformsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - platformRequest *PlatformRequest +type ApiDcimPowerFeedsTraceRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPlatformsUpdateRequest) PlatformRequest(platformRequest PlatformRequest) ApiDcimPlatformsUpdateRequest { - r.platformRequest = &platformRequest +func (r ApiDcimPowerFeedsTraceRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) { + return r.ApiService.DcimPowerFeedsTraceRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimPowerFeedsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsTraceRetrieveRequest { + return ApiDcimPowerFeedsTraceRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsTraceRetrieveRequest) (*PowerFeed, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsTraceRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/trace/" + 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 ApiDcimPowerFeedsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writablePowerFeedRequest *WritablePowerFeedRequest +} + +func (r ApiDcimPowerFeedsUpdateRequest) WritablePowerFeedRequest(writablePowerFeedRequest WritablePowerFeedRequest) ApiDcimPowerFeedsUpdateRequest { + r.writablePowerFeedRequest = &writablePowerFeedRequest return r } -func (r ApiDcimPlatformsUpdateRequest) Execute() (*Platform, *http.Response, error) { - return r.ApiService.DcimPlatformsUpdateExecute(r) +func (r ApiDcimPowerFeedsUpdateRequest) Execute() (*PowerFeed, *http.Response, error) { + return r.ApiService.DcimPowerFeedsUpdateExecute(r) } /* -DcimPlatformsUpdate Method for DcimPlatformsUpdate +DcimPowerFeedsUpdate Method for DcimPowerFeedsUpdate -Put a platform object. +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 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 power feed. + @return ApiDcimPowerFeedsUpdateRequest */ -func (a *DcimAPIService) DcimPlatformsUpdate(ctx context.Context, id int32) ApiDcimPlatformsUpdateRequest { - return ApiDcimPlatformsUpdateRequest{ +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 Platform -func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequest) (*Platform, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/platforms/{id}/" + localVarPath := localBasePath + "/api/dcim/power-feeds/{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.platformRequest == nil { - return localVarReturnValue, nil, reportError("platformRequest is required and must be specified") + if r.writablePowerFeedRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerFeedRequest is required and must be specified") } // to determine the Content-Type header @@ -69802,7 +84828,7 @@ func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.platformRequest + localVarPostBody = r.writablePowerFeedRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -69854,56 +84880,56 @@ func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerFeedsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerFeedRequest *[]PowerFeedRequest +type ApiDcimPowerOutletTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + powerOutletTemplateRequest *[]PowerOutletTemplateRequest } -func (r ApiDcimPowerFeedsBulkDestroyRequest) PowerFeedRequest(powerFeedRequest []PowerFeedRequest) ApiDcimPowerFeedsBulkDestroyRequest { - r.powerFeedRequest = &powerFeedRequest +func (r ApiDcimPowerOutletTemplatesBulkDestroyRequest) PowerOutletTemplateRequest(powerOutletTemplateRequest []PowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesBulkDestroyRequest { + r.powerOutletTemplateRequest = &powerOutletTemplateRequest return r } -func (r ApiDcimPowerFeedsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerFeedsBulkDestroyExecute(r) +func (r ApiDcimPowerOutletTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesBulkDestroyExecute(r) } /* -DcimPowerFeedsBulkDestroy Method for DcimPowerFeedsBulkDestroy +DcimPowerOutletTemplatesBulkDestroy Method for DcimPowerOutletTemplatesBulkDestroy -Delete a list of power feed objects. +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 ApiDcimPowerFeedsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesBulkDestroyRequest */ -func (a *DcimAPIService) DcimPowerFeedsBulkDestroy(ctx context.Context) ApiDcimPowerFeedsBulkDestroyRequest { - return ApiDcimPowerFeedsBulkDestroyRequest{ +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerOutletTemplatesBulkDestroyRequest { + return ApiDcimPowerOutletTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBulkDestroyRequest) (*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.DcimPowerFeedsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerFeedRequest == nil { - return nil, reportError("powerFeedRequest is required and must be specified") + if r.powerOutletTemplateRequest == nil { + return nil, reportError("powerOutletTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -69924,7 +84950,7 @@ func (a *DcimAPIService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerFeedRequest + localVarPostBody = r.powerOutletTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -69967,59 +84993,58 @@ func (a *DcimAPIService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBul return localVarHTTPResponse, nil } -type ApiDcimPowerFeedsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerFeedRequest *[]PowerFeedRequest +type ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerOutletTemplateRequest *[]PowerOutletTemplateRequest } -func (r ApiDcimPowerFeedsBulkPartialUpdateRequest) PowerFeedRequest(powerFeedRequest []PowerFeedRequest) ApiDcimPowerFeedsBulkPartialUpdateRequest { - r.powerFeedRequest = &powerFeedRequest +func (r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) PowerOutletTemplateRequest(powerOutletTemplateRequest []PowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest { + r.powerOutletTemplateRequest = &powerOutletTemplateRequest return r } -func (r ApiDcimPowerFeedsBulkPartialUpdateRequest) Execute() ([]PowerFeed, *http.Response, error) { - return r.ApiService.DcimPowerFeedsBulkPartialUpdateExecute(r) +func (r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) Execute() ([]PowerOutletTemplate, *http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesBulkPartialUpdateExecute(r) } /* -DcimPowerFeedsBulkPartialUpdate Method for DcimPowerFeedsBulkPartialUpdate +DcimPowerOutletTemplatesBulkPartialUpdate Method for DcimPowerOutletTemplatesBulkPartialUpdate -Patch a list of power feed objects. +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 ApiDcimPowerFeedsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdate(ctx context.Context) ApiDcimPowerFeedsBulkPartialUpdateRequest { - return ApiDcimPowerFeedsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest { + return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerFeed -func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFeedsBulkPartialUpdateRequest) ([]PowerFeed, *http.Response, error) { +// @return []PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerFeed + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerFeedRequest == nil { - return localVarReturnValue, nil, reportError("powerFeedRequest is required and must be specified") + if r.powerOutletTemplateRequest == nil { + return localVarReturnValue, nil, reportError("powerOutletTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -70040,7 +85065,7 @@ func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerFeedRequest + localVarPostBody = r.powerOutletTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -70092,59 +85117,58 @@ func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerFeedsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerFeedRequest *[]PowerFeedRequest +type ApiDcimPowerOutletTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerOutletTemplateRequest *[]PowerOutletTemplateRequest } -func (r ApiDcimPowerFeedsBulkUpdateRequest) PowerFeedRequest(powerFeedRequest []PowerFeedRequest) ApiDcimPowerFeedsBulkUpdateRequest { - r.powerFeedRequest = &powerFeedRequest +func (r ApiDcimPowerOutletTemplatesBulkUpdateRequest) PowerOutletTemplateRequest(powerOutletTemplateRequest []PowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesBulkUpdateRequest { + r.powerOutletTemplateRequest = &powerOutletTemplateRequest return r } -func (r ApiDcimPowerFeedsBulkUpdateRequest) Execute() ([]PowerFeed, *http.Response, error) { - return r.ApiService.DcimPowerFeedsBulkUpdateExecute(r) +func (r ApiDcimPowerOutletTemplatesBulkUpdateRequest) Execute() ([]PowerOutletTemplate, *http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesBulkUpdateExecute(r) } /* -DcimPowerFeedsBulkUpdate Method for DcimPowerFeedsBulkUpdate +DcimPowerOutletTemplatesBulkUpdate Method for DcimPowerOutletTemplatesBulkUpdate -Put a list of power feed objects. +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 ApiDcimPowerFeedsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesBulkUpdateRequest */ -func (a *DcimAPIService) DcimPowerFeedsBulkUpdate(ctx context.Context) ApiDcimPowerFeedsBulkUpdateRequest { - return ApiDcimPowerFeedsBulkUpdateRequest{ +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkUpdateRequest { + return ApiDcimPowerOutletTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerFeed -func (a *DcimAPIService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulkUpdateRequest) ([]PowerFeed, *http.Response, error) { +// @return []PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowerOutletTemplatesBulkUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerFeed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerFeedRequest == nil { - return localVarReturnValue, nil, reportError("powerFeedRequest is required and must be specified") + if r.powerOutletTemplateRequest == nil { + return localVarReturnValue, nil, reportError("powerOutletTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -70165,7 +85189,7 @@ func (a *DcimAPIService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerFeedRequest + localVarPostBody = r.powerOutletTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -70217,59 +85241,58 @@ func (a *DcimAPIService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerFeedsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writablePowerFeedRequest *WritablePowerFeedRequest +type ApiDcimPowerOutletTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest } -func (r ApiDcimPowerFeedsCreateRequest) WritablePowerFeedRequest(writablePowerFeedRequest WritablePowerFeedRequest) ApiDcimPowerFeedsCreateRequest { - r.writablePowerFeedRequest = &writablePowerFeedRequest +func (r ApiDcimPowerOutletTemplatesCreateRequest) WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest WritablePowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesCreateRequest { + r.writablePowerOutletTemplateRequest = &writablePowerOutletTemplateRequest return r } -func (r ApiDcimPowerFeedsCreateRequest) Execute() (*PowerFeed, *http.Response, error) { - return r.ApiService.DcimPowerFeedsCreateExecute(r) +func (r ApiDcimPowerOutletTemplatesCreateRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesCreateExecute(r) } /* -DcimPowerFeedsCreate Method for DcimPowerFeedsCreate +DcimPowerOutletTemplatesCreate Method for DcimPowerOutletTemplatesCreate -Post a list of power feed objects. +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 ApiDcimPowerFeedsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesCreateRequest */ -func (a *DcimAPIService) DcimPowerFeedsCreate(ctx context.Context) ApiDcimPowerFeedsCreateRequest { - return ApiDcimPowerFeedsCreateRequest{ +func (a *DcimAPIService) DcimPowerOutletTemplatesCreate(ctx context.Context) ApiDcimPowerOutletTemplatesCreateRequest { + return ApiDcimPowerOutletTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerFeed -func (a *DcimAPIService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRequest) (*PowerFeed, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOutletTemplatesCreateRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writablePowerFeedRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerFeedRequest is required and must be specified") + if r.writablePowerOutletTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerOutletTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -70290,7 +85313,7 @@ func (a *DcimAPIService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerFeedRequest + localVarPostBody = r.writablePowerOutletTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -70342,47 +85365,47 @@ func (a *DcimAPIService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerFeedsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerOutletTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerFeedsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerFeedsDestroyExecute(r) +func (r ApiDcimPowerOutletTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesDestroyExecute(r) } /* -DcimPowerFeedsDestroy Method for DcimPowerFeedsDestroy +DcimPowerOutletTemplatesDestroy Method for DcimPowerOutletTemplatesDestroy -Delete a power feed object. +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 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 outlet template. + @return ApiDcimPowerOutletTemplatesDestroyRequest */ -func (a *DcimAPIService) DcimPowerFeedsDestroy(ctx context.Context, id int32) ApiDcimPowerFeedsDestroyRequest { - return ApiDcimPowerFeedsDestroyRequest{ +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) DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroyRequest) (*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.DcimPowerFeedsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -70448,991 +85471,555 @@ func (a *DcimAPIService) DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroy return localVarHTTPResponse, nil } -type ApiDcimPowerFeedsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - amperage *[]int32 - amperageEmpty *bool - amperageGt *[]int32 - amperageGte *[]int32 - amperageLt *[]int32 - amperageLte *[]int32 - amperageN *[]int32 - availablePower *[]int32 - availablePowerEmpty *bool - availablePowerGt *[]int32 - availablePowerGte *[]int32 - availablePowerLt *[]int32 - availablePowerLte *[]int32 - availablePowerN *[]int32 - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool - maxUtilization *[]int32 - maxUtilizationEmpty *bool - maxUtilizationGt *[]int32 - maxUtilizationGte *[]int32 - maxUtilizationLt *[]int32 - maxUtilizationLte *[]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 *DcimPowerFeedsListPhaseParameter - phaseN *DcimPowerFeedsListPhaseParameter - 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 *DcimPowerFeedsListSupplyParameter - supplyN *DcimPowerFeedsListSupplyParameter - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - type_ *DcimPowerFeedsListTypeParameter - typeN *DcimPowerFeedsListTypeParameter - updatedByRequest *string - voltage *[]int32 - voltageEmpty *bool - voltageGt *[]int32 - voltageGte *[]int32 - voltageLt *[]int32 - voltageLte *[]int32 - voltageN *[]int32 -} - -func (r ApiDcimPowerFeedsListRequest) Amperage(amperage []int32) ApiDcimPowerFeedsListRequest { - r.amperage = &erage - 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 -} - -func (r ApiDcimPowerFeedsListRequest) AmperageGte(amperageGte []int32) ApiDcimPowerFeedsListRequest { - r.amperageGte = &erageGte - return r -} - -func (r ApiDcimPowerFeedsListRequest) AmperageLt(amperageLt []int32) ApiDcimPowerFeedsListRequest { - r.amperageLt = &erageLt - return r -} - -func (r ApiDcimPowerFeedsListRequest) AmperageLte(amperageLte []int32) ApiDcimPowerFeedsListRequest { - r.amperageLte = &erageLte - return r -} - -func (r ApiDcimPowerFeedsListRequest) AmperageN(amperageN []int32) ApiDcimPowerFeedsListRequest { - r.amperageN = &erageN - return r -} - -func (r ApiDcimPowerFeedsListRequest) AvailablePower(availablePower []int32) ApiDcimPowerFeedsListRequest { - r.availablePower = &availablePower - return r -} - -func (r ApiDcimPowerFeedsListRequest) AvailablePowerEmpty(availablePowerEmpty bool) ApiDcimPowerFeedsListRequest { - r.availablePowerEmpty = &availablePowerEmpty - return r -} - -func (r ApiDcimPowerFeedsListRequest) AvailablePowerGt(availablePowerGt []int32) ApiDcimPowerFeedsListRequest { - r.availablePowerGt = &availablePowerGt - return r -} - -func (r ApiDcimPowerFeedsListRequest) AvailablePowerGte(availablePowerGte []int32) ApiDcimPowerFeedsListRequest { - r.availablePowerGte = &availablePowerGte - return r -} - -func (r ApiDcimPowerFeedsListRequest) AvailablePowerLt(availablePowerLt []int32) ApiDcimPowerFeedsListRequest { - r.availablePowerLt = &availablePowerLt - return r -} - -func (r ApiDcimPowerFeedsListRequest) AvailablePowerLte(availablePowerLte []int32) ApiDcimPowerFeedsListRequest { - r.availablePowerLte = &availablePowerLte - return r -} - -func (r ApiDcimPowerFeedsListRequest) AvailablePowerN(availablePowerN []int32) ApiDcimPowerFeedsListRequest { - r.availablePowerN = &availablePowerN - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimPowerFeedsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerFeedsListRequest { - r.cableEnd = &cableEnd - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimPowerFeedsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerFeedsListRequest { - r.cableEndN = &cableEndN - return r -} - -// Cable (ID) -func (r ApiDcimPowerFeedsListRequest) CableId(cableId []*int32) ApiDcimPowerFeedsListRequest { - r.cableId = &cableId - return r -} - -// Cable (ID) -func (r ApiDcimPowerFeedsListRequest) CableIdN(cableIdN []*int32) ApiDcimPowerFeedsListRequest { - r.cableIdN = &cableIdN - return r -} - -func (r ApiDcimPowerFeedsListRequest) Cabled(cabled bool) ApiDcimPowerFeedsListRequest { - r.cabled = &cabled - return r -} - -func (r ApiDcimPowerFeedsListRequest) Connected(connected bool) ApiDcimPowerFeedsListRequest { - r.connected = &connected - return r +type ApiDcimPowerOutletTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + deviceTypeId *[]*int32 + deviceTypeIdN *[]*int32 + feedLeg *[]*string + feedLegEmpty *bool + feedLegIc *[]*string + feedLegIe *[]*string + feedLegIew *[]*string + feedLegIsw *[]*string + feedLegN *[]*string + feedLegNic *[]*string + feedLegNie *[]*string + feedLegNiew *[]*string + feedLegNisw *[]*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 + 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 + powerPortId *[]*int32 + powerPortIdN *[]*int32 + q *string + type_ *DcimPowerOutletTemplatesListTypeParameter + updatedByRequest *string } -func (r ApiDcimPowerFeedsListRequest) Created(created []time.Time) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) Created(created []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.created = &created return r } -func (r ApiDcimPowerFeedsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimPowerFeedsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimPowerFeedsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimPowerFeedsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimPowerFeedsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimPowerFeedsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.createdN = &createdN return r } -func (r ApiDcimPowerFeedsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerOutletTemplatesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimPowerFeedsListRequest) Description(description []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) Description(description []string) ApiDcimPowerOutletTemplatesListRequest { r.description = &description return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerOutletTemplatesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimPowerFeedsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerOutletTemplatesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimPowerFeedsListRequest) Id(id []int32) ApiDcimPowerFeedsListRequest { - r.id = &id - 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 -} - -func (r ApiDcimPowerFeedsListRequest) IdGte(idGte []int32) ApiDcimPowerFeedsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiDcimPowerFeedsListRequest) IdLt(idLt []int32) ApiDcimPowerFeedsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiDcimPowerFeedsListRequest) IdLte(idLte []int32) ApiDcimPowerFeedsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiDcimPowerFeedsListRequest) IdN(idN []int32) ApiDcimPowerFeedsListRequest { - r.idN = &idN - return r -} - -func (r ApiDcimPowerFeedsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerFeedsListRequest { - r.lastUpdated = &lastUpdated - 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 -} - -func (r ApiDcimPowerFeedsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerFeedsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiDcimPowerFeedsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerFeedsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiDcimPowerFeedsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerFeedsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiDcimPowerFeedsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerFeedsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiDcimPowerFeedsListRequest) Limit(limit int32) ApiDcimPowerFeedsListRequest { - r.limit = &limit - return r -} - -func (r ApiDcimPowerFeedsListRequest) MarkConnected(markConnected bool) ApiDcimPowerFeedsListRequest { - r.markConnected = &markConnected - return r -} - -func (r ApiDcimPowerFeedsListRequest) MaxUtilization(maxUtilization []int32) ApiDcimPowerFeedsListRequest { - r.maxUtilization = &maxUtilization - 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 -} - -func (r ApiDcimPowerFeedsListRequest) MaxUtilizationGte(maxUtilizationGte []int32) ApiDcimPowerFeedsListRequest { - r.maxUtilizationGte = &maxUtilizationGte - return r -} - -func (r ApiDcimPowerFeedsListRequest) MaxUtilizationLt(maxUtilizationLt []int32) ApiDcimPowerFeedsListRequest { - r.maxUtilizationLt = &maxUtilizationLt - return r -} - -func (r ApiDcimPowerFeedsListRequest) MaxUtilizationLte(maxUtilizationLte []int32) ApiDcimPowerFeedsListRequest { - r.maxUtilizationLte = &maxUtilizationLte +// Device type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.deviceTypeId = &deviceTypeId return r } -func (r ApiDcimPowerFeedsListRequest) MaxUtilizationN(maxUtilizationN []int32) ApiDcimPowerFeedsListRequest { - r.maxUtilizationN = &maxUtilizationN +// Device type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimPowerFeedsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerFeedsListRequest { - r.modifiedByRequest = &modifiedByRequest +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLeg(feedLeg []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLeg = &feedLeg return r } -func (r ApiDcimPowerFeedsListRequest) Name(name []string) ApiDcimPowerFeedsListRequest { - r.name = &name +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegEmpty(feedLegEmpty bool) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegEmpty = &feedLegEmpty return r } -func (r ApiDcimPowerFeedsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerFeedsListRequest { - r.nameEmpty = &nameEmpty +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIc(feedLegIc []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIc = &feedLegIc return r } -func (r ApiDcimPowerFeedsListRequest) NameIc(nameIc []string) ApiDcimPowerFeedsListRequest { - r.nameIc = &nameIc +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIe(feedLegIe []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIe = &feedLegIe return r } -func (r ApiDcimPowerFeedsListRequest) NameIe(nameIe []string) ApiDcimPowerFeedsListRequest { - r.nameIe = &nameIe +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIew(feedLegIew []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIew = &feedLegIew return r } -func (r ApiDcimPowerFeedsListRequest) NameIew(nameIew []string) ApiDcimPowerFeedsListRequest { - r.nameIew = &nameIew +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIsw(feedLegIsw []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIsw = &feedLegIsw return r } -func (r ApiDcimPowerFeedsListRequest) NameIsw(nameIsw []string) ApiDcimPowerFeedsListRequest { - r.nameIsw = &nameIsw +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegN(feedLegN []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegN = &feedLegN return r } -func (r ApiDcimPowerFeedsListRequest) NameN(nameN []string) ApiDcimPowerFeedsListRequest { - r.nameN = &nameN +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNic(feedLegNic []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNic = &feedLegNic return r } -func (r ApiDcimPowerFeedsListRequest) NameNic(nameNic []string) ApiDcimPowerFeedsListRequest { - r.nameNic = &nameNic +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNie(feedLegNie []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNie = &feedLegNie return r } -func (r ApiDcimPowerFeedsListRequest) NameNie(nameNie []string) ApiDcimPowerFeedsListRequest { - r.nameNie = &nameNie +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNiew(feedLegNiew []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNiew = &feedLegNiew return r } -func (r ApiDcimPowerFeedsListRequest) NameNiew(nameNiew []string) ApiDcimPowerFeedsListRequest { - r.nameNiew = &nameNiew +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNisw(feedLegNisw []*string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNisw = &feedLegNisw return r } -func (r ApiDcimPowerFeedsListRequest) NameNisw(nameNisw []string) ApiDcimPowerFeedsListRequest { - r.nameNisw = &nameNisw +func (r ApiDcimPowerOutletTemplatesListRequest) Id(id []int32) ApiDcimPowerOutletTemplatesListRequest { + r.id = &id return r } -func (r ApiDcimPowerFeedsListRequest) Occupied(occupied bool) ApiDcimPowerFeedsListRequest { - r.occupied = &occupied +func (r ApiDcimPowerOutletTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimPowerOutletTemplatesListRequest { + r.idEmpty = &idEmpty return r } -// The initial index from which to return the results. -func (r ApiDcimPowerFeedsListRequest) Offset(offset int32) ApiDcimPowerFeedsListRequest { - r.offset = &offset +func (r ApiDcimPowerOutletTemplatesListRequest) IdGt(idGt []int32) ApiDcimPowerOutletTemplatesListRequest { + r.idGt = &idGt return r } -// Which field to use when ordering the results. -func (r ApiDcimPowerFeedsListRequest) Ordering(ordering string) ApiDcimPowerFeedsListRequest { - r.ordering = &ordering +func (r ApiDcimPowerOutletTemplatesListRequest) IdGte(idGte []int32) ApiDcimPowerOutletTemplatesListRequest { + r.idGte = &idGte return r } -// * `single-phase` - Single phase * `three-phase` - Three-phase -func (r ApiDcimPowerFeedsListRequest) Phase(phase DcimPowerFeedsListPhaseParameter) ApiDcimPowerFeedsListRequest { - r.phase = &phase +func (r ApiDcimPowerOutletTemplatesListRequest) IdLt(idLt []int32) ApiDcimPowerOutletTemplatesListRequest { + r.idLt = &idLt return r } -// * `single-phase` - Single phase * `three-phase` - Three-phase -func (r ApiDcimPowerFeedsListRequest) PhaseN(phaseN DcimPowerFeedsListPhaseParameter) ApiDcimPowerFeedsListRequest { - r.phaseN = &phaseN +func (r ApiDcimPowerOutletTemplatesListRequest) IdLte(idLte []int32) ApiDcimPowerOutletTemplatesListRequest { + r.idLte = &idLte return r } -// Power panel (ID) -func (r ApiDcimPowerFeedsListRequest) PowerPanelId(powerPanelId []int32) ApiDcimPowerFeedsListRequest { - r.powerPanelId = &powerPanelId +func (r ApiDcimPowerOutletTemplatesListRequest) IdN(idN []int32) ApiDcimPowerOutletTemplatesListRequest { + r.idN = &idN return r } -// Power panel (ID) -func (r ApiDcimPowerFeedsListRequest) PowerPanelIdN(powerPanelIdN []int32) ApiDcimPowerFeedsListRequest { - r.powerPanelIdN = &powerPanelIdN +func (r ApiDcimPowerOutletTemplatesListRequest) Label(label []string) ApiDcimPowerOutletTemplatesListRequest { + r.label = &label return r } -// Search -func (r ApiDcimPowerFeedsListRequest) Q(q string) ApiDcimPowerFeedsListRequest { - r.q = &q +func (r ApiDcimPowerOutletTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerOutletTemplatesListRequest { + r.labelEmpty = &labelEmpty return r } -// Rack (ID) -func (r ApiDcimPowerFeedsListRequest) RackId(rackId []int32) ApiDcimPowerFeedsListRequest { - r.rackId = &rackId +func (r ApiDcimPowerOutletTemplatesListRequest) LabelIc(labelIc []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelIc = &labelIc return r } -// Rack (ID) -func (r ApiDcimPowerFeedsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerFeedsListRequest { - r.rackIdN = &rackIdN +func (r ApiDcimPowerOutletTemplatesListRequest) LabelIe(labelIe []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelIe = &labelIe return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) Region(region []int32) ApiDcimPowerFeedsListRequest { - r.region = ®ion +func (r ApiDcimPowerOutletTemplatesListRequest) LabelIew(labelIew []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelIew = &labelIew return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []int32) ApiDcimPowerFeedsListRequest { - r.regionN = ®ionN +func (r ApiDcimPowerOutletTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelIsw = &labelIsw return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []int32) ApiDcimPowerFeedsListRequest { - r.regionId = ®ionId +func (r ApiDcimPowerOutletTemplatesListRequest) LabelN(labelN []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelN = &labelN return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerFeedsListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimPowerOutletTemplatesListRequest) LabelNic(labelNic []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelNic = &labelNic return r } -// Site name (slug) -func (r ApiDcimPowerFeedsListRequest) Site(site []string) ApiDcimPowerFeedsListRequest { - r.site = &site +func (r ApiDcimPowerOutletTemplatesListRequest) LabelNie(labelNie []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelNie = &labelNie return r } -// Site name (slug) -func (r ApiDcimPowerFeedsListRequest) SiteN(siteN []string) ApiDcimPowerFeedsListRequest { - r.siteN = &siteN +func (r ApiDcimPowerOutletTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelNiew = &labelNiew return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerFeedsListRequest { - r.siteGroup = &siteGroup +func (r ApiDcimPowerOutletTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimPowerOutletTemplatesListRequest { + r.labelNisw = &labelNisw return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerFeedsListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdated = &lastUpdated return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerFeedsListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerFeedsListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -// Site (ID) -func (r ApiDcimPowerFeedsListRequest) SiteId(siteId []int32) ApiDcimPowerFeedsListRequest { - r.siteId = &siteId +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -// Site (ID) -func (r ApiDcimPowerFeedsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerFeedsListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimPowerFeedsListRequest) Status(status []string) ApiDcimPowerFeedsListRequest { - r.status = &status +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimPowerFeedsListRequest) StatusN(statusN []string) ApiDcimPowerFeedsListRequest { - r.statusN = &statusN +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -// * `ac` - AC * `dc` - DC -func (r ApiDcimPowerFeedsListRequest) Supply(supply DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest { - r.supply = &supply +// Number of results to return per page. +func (r ApiDcimPowerOutletTemplatesListRequest) Limit(limit int32) ApiDcimPowerOutletTemplatesListRequest { + r.limit = &limit return r } -// * `ac` - AC * `dc` - DC -func (r ApiDcimPowerFeedsListRequest) SupplyN(supplyN DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest { - r.supplyN = &supplyN +func (r ApiDcimPowerOutletTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerOutletTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiDcimPowerFeedsListRequest) Tag(tag []string) ApiDcimPowerFeedsListRequest { - r.tag = &tag +// Module type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.moduleTypeId = &moduleTypeId return r } -func (r ApiDcimPowerFeedsListRequest) TagN(tagN []string) ApiDcimPowerFeedsListRequest { - r.tagN = &tagN +// Module type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN return r } -// Tenant (slug) -func (r ApiDcimPowerFeedsListRequest) Tenant(tenant []string) ApiDcimPowerFeedsListRequest { - r.tenant = &tenant +func (r ApiDcimPowerOutletTemplatesListRequest) Name(name []string) ApiDcimPowerOutletTemplatesListRequest { + r.name = &name return r } -// Tenant (slug) -func (r ApiDcimPowerFeedsListRequest) TenantN(tenantN []string) ApiDcimPowerFeedsListRequest { - r.tenantN = &tenantN +func (r ApiDcimPowerOutletTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerOutletTemplatesListRequest { + r.nameEmpty = &nameEmpty return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []int32) ApiDcimPowerFeedsListRequest { - r.tenantGroup = &tenantGroup +func (r ApiDcimPowerOutletTemplatesListRequest) NameIc(nameIc []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameIc = &nameIc return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimPowerFeedsListRequest { - r.tenantGroupN = &tenantGroupN +func (r ApiDcimPowerOutletTemplatesListRequest) NameIe(nameIe []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameIe = &nameIe return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimPowerFeedsListRequest { - r.tenantGroupId = &tenantGroupId +func (r ApiDcimPowerOutletTemplatesListRequest) NameIew(nameIew []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameIew = &nameIew return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimPowerFeedsListRequest { - r.tenantGroupIdN = &tenantGroupIdN +func (r ApiDcimPowerOutletTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameIsw = &nameIsw return r } -// Tenant (ID) -func (r ApiDcimPowerFeedsListRequest) TenantId(tenantId []*int32) ApiDcimPowerFeedsListRequest { - r.tenantId = &tenantId +func (r ApiDcimPowerOutletTemplatesListRequest) NameN(nameN []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameN = &nameN return r } -// Tenant (ID) -func (r ApiDcimPowerFeedsListRequest) TenantIdN(tenantIdN []*int32) ApiDcimPowerFeedsListRequest { - r.tenantIdN = &tenantIdN +func (r ApiDcimPowerOutletTemplatesListRequest) NameNic(nameNic []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameNic = &nameNic return r } -// * `primary` - Primary * `redundant` - Redundant -func (r ApiDcimPowerFeedsListRequest) Type_(type_ DcimPowerFeedsListTypeParameter) ApiDcimPowerFeedsListRequest { - r.type_ = &type_ +func (r ApiDcimPowerOutletTemplatesListRequest) NameNie(nameNie []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameNie = &nameNie return r } -// * `primary` - Primary * `redundant` - Redundant -func (r ApiDcimPowerFeedsListRequest) TypeN(typeN DcimPowerFeedsListTypeParameter) ApiDcimPowerFeedsListRequest { - r.typeN = &typeN +func (r ApiDcimPowerOutletTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiDcimPowerFeedsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerFeedsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimPowerOutletTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimPowerOutletTemplatesListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiDcimPowerFeedsListRequest) Voltage(voltage []int32) ApiDcimPowerFeedsListRequest { - r.voltage = &voltage +// The initial index from which to return the results. +func (r ApiDcimPowerOutletTemplatesListRequest) Offset(offset int32) ApiDcimPowerOutletTemplatesListRequest { + r.offset = &offset return r } -func (r ApiDcimPowerFeedsListRequest) VoltageEmpty(voltageEmpty bool) ApiDcimPowerFeedsListRequest { - r.voltageEmpty = &voltageEmpty +// Which field to use when ordering the results. +func (r ApiDcimPowerOutletTemplatesListRequest) Ordering(ordering string) ApiDcimPowerOutletTemplatesListRequest { + r.ordering = &ordering return r } -func (r ApiDcimPowerFeedsListRequest) VoltageGt(voltageGt []int32) ApiDcimPowerFeedsListRequest { - r.voltageGt = &voltageGt +// Power port (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) PowerPortId(powerPortId []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.powerPortId = &powerPortId return r } -func (r ApiDcimPowerFeedsListRequest) VoltageGte(voltageGte []int32) ApiDcimPowerFeedsListRequest { - r.voltageGte = &voltageGte +// Power port (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) PowerPortIdN(powerPortIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.powerPortIdN = &powerPortIdN return r } -func (r ApiDcimPowerFeedsListRequest) VoltageLt(voltageLt []int32) ApiDcimPowerFeedsListRequest { - r.voltageLt = &voltageLt +// Search +func (r ApiDcimPowerOutletTemplatesListRequest) Q(q string) ApiDcimPowerOutletTemplatesListRequest { + r.q = &q return r } -func (r ApiDcimPowerFeedsListRequest) VoltageLte(voltageLte []int32) ApiDcimPowerFeedsListRequest { - r.voltageLte = &voltageLte +// * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('eaton-c39', 'Eaton C39'), ('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +func (r ApiDcimPowerOutletTemplatesListRequest) Type_(type_ DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { + r.type_ = &type_ return r } -func (r ApiDcimPowerFeedsListRequest) VoltageN(voltageN []int32) ApiDcimPowerFeedsListRequest { - r.voltageN = &voltageN +func (r ApiDcimPowerOutletTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerOutletTemplatesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimPowerFeedsListRequest) Execute() (*PaginatedPowerFeedList, *http.Response, error) { - return r.ApiService.DcimPowerFeedsListExecute(r) +func (r ApiDcimPowerOutletTemplatesListRequest) Execute() (*PaginatedPowerOutletTemplateList, *http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesListExecute(r) } /* -DcimPowerFeedsList Method for DcimPowerFeedsList +DcimPowerOutletTemplatesList Method for DcimPowerOutletTemplatesList -Get a list of power feed objects. +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 ApiDcimPowerFeedsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesListRequest */ -func (a *DcimAPIService) DcimPowerFeedsList(ctx context.Context) ApiDcimPowerFeedsListRequest { - return ApiDcimPowerFeedsListRequest{ +func (a *DcimAPIService) DcimPowerOutletTemplatesList(ctx context.Context) ApiDcimPowerOutletTemplatesListRequest { + return ApiDcimPowerOutletTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerFeedList -func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListRequest) (*PaginatedPowerFeedList, *http.Response, error) { +// @return PaginatedPowerOutletTemplateList +func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutletTemplatesListRequest) (*PaginatedPowerOutletTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerFeedList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerOutletTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.amperage != nil { - t := *r.amperage - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gt", t, "multi") - } - } - if r.amperageGte != nil { - t := *r.amperageGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gte", t, "multi") - } - } - if r.amperageLt != nil { - t := *r.amperageLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lt", t, "multi") - } - } - if r.amperageLte != nil { - t := *r.amperageLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lte", t, "multi") - } - } - if r.amperageN != nil { - t := *r.amperageN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__n", t, "multi") - } - } - if r.availablePower != nil { - t := *r.availablePower - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power", t, "multi") - } - } - if r.availablePowerEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__empty", r.availablePowerEmpty, "") - } - if r.availablePowerGt != nil { - t := *r.availablePowerGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gt", t, "multi") - } - } - if r.availablePowerGte != nil { - t := *r.availablePowerGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__gte", t, "multi") - } - } - if r.availablePowerLt != nil { - t := *r.availablePowerLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lt", t, "multi") - } - } - if r.availablePowerLte != nil { - t := *r.availablePowerLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__lte", t, "multi") - } - } - if r.availablePowerN != nil { - t := *r.availablePowerN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_power__n", t, "multi") - } - } - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") - } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } - if r.cableId != nil { - t := *r.cableId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") - } - } - if r.cableIdN != nil { - t := *r.cableIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") - } - } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") - } - if r.connected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -71440,10 +86027,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -71451,10 +86038,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -71462,10 +86049,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -71473,10 +86060,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -71484,10 +86071,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -71495,38 +86082,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -71534,10 +86121,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -71545,10 +86132,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -71556,10 +86143,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -71567,10 +86154,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -71578,10 +86165,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -71589,10 +86176,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -71600,10 +86187,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -71611,758 +86198,583 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt + 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, "id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.feedLeg != nil { + t := *r.feedLeg 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "form", "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.feedLegEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__empty", r.feedLegEmpty, "form", "") } - if r.idLte != nil { - t := *r.idLte + if r.feedLegIc != nil { + t := *r.feedLegIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.feedLegIe != nil { + t := *r.feedLegIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.feedLegIew != nil { + t := *r.feedLegIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.feedLegIsw != nil { + t := *r.feedLegIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.feedLegN != nil { + t := *r.feedLegN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.feedLegNic != nil { + t := *r.feedLegNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.feedLegNie != nil { + t := *r.feedLegNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.feedLegNiew != nil { + t := *r.feedLegNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.feedLegNisw != nil { + t := *r.feedLegNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") - } - if r.maxUtilization != nil { - t := *r.maxUtilization + 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, "max_utilization", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.maxUtilizationEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__empty", r.maxUtilizationEmpty, "") + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.maxUtilizationGt != nil { - t := *r.maxUtilizationGt + 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, "max_utilization__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.maxUtilizationGte != nil { - t := *r.maxUtilizationGte + 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, "max_utilization__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.maxUtilizationLt != nil { - t := *r.maxUtilizationLt + 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, "max_utilization__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.maxUtilizationLte != nil { - t := *r.maxUtilizationLte + 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, "max_utilization__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.maxUtilizationN != nil { - t := *r.maxUtilizationN + 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, "max_utilization__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + if r.label != nil { + t := *r.label 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "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.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } - if r.nameIe != nil { - t := *r.nameIe + if r.labelIc != nil { + t := *r.labelIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.labelIe != nil { + t := *r.labelIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.labelIew != nil { + t := *r.labelIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.labelIsw != nil { + t := *r.labelIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.labelN != nil { + t := *r.labelN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.labelNic != nil { + t := *r.labelNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.labelNie != nil { + t := *r.labelNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.labelNiew != nil { + t := *r.labelNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } - if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.phase != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "phase", r.phase, "") - } - if r.phaseN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "phase__n", r.phaseN, "") - } - if r.powerPanelId != nil { - t := *r.powerPanelId + if r.labelNisw != nil { + t := *r.labelNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } - if r.powerPanelIdN != nil { - t := *r.powerPanelIdN + 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, "power_panel_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rackId != nil { - t := *r.rackId + 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, "rack_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN + 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, "rack_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.region != nil { - t := *r.region + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "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.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - 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.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "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.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.status != nil { - t := *r.status + 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, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + 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, "status__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.supply != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "supply", r.supply, "") - } - if r.supplyN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "supply__n", r.supplyN, "") - } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.tenant != nil { - t := *r.tenant + 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, "tenant", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + 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, "tenant__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + 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, "tenant_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "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.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - 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.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + if r.powerPortId != nil { + t := *r.powerPortId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + if r.powerPortIdN != nil { + t := *r.powerPortIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id__n", t, "form", "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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.type_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") - } - if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.voltage != nil { - t := *r.voltage - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gt", t, "multi") - } - } - if r.voltageGte != nil { - t := *r.voltageGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gte", t, "multi") - } - } - if r.voltageLt != nil { - t := *r.voltageLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lt", t, "multi") - } - } - if r.voltageLte != nil { - t := *r.voltageLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lte", t, "multi") - } - } - if r.voltageN != nil { - t := *r.voltageN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -72432,56 +86844,55 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerFeedsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritablePowerFeedRequest *PatchedWritablePowerFeedRequest +type ApiDcimPowerOutletTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritablePowerOutletTemplateRequest *PatchedWritablePowerOutletTemplateRequest } -func (r ApiDcimPowerFeedsPartialUpdateRequest) PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest PatchedWritablePowerFeedRequest) ApiDcimPowerFeedsPartialUpdateRequest { - r.patchedWritablePowerFeedRequest = &patchedWritablePowerFeedRequest +func (r ApiDcimPowerOutletTemplatesPartialUpdateRequest) PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest PatchedWritablePowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesPartialUpdateRequest { + r.patchedWritablePowerOutletTemplateRequest = &patchedWritablePowerOutletTemplateRequest return r } -func (r ApiDcimPowerFeedsPartialUpdateRequest) Execute() (*PowerFeed, *http.Response, error) { - return r.ApiService.DcimPowerFeedsPartialUpdateExecute(r) +func (r ApiDcimPowerOutletTemplatesPartialUpdateRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesPartialUpdateExecute(r) } /* -DcimPowerFeedsPartialUpdate Method for DcimPowerFeedsPartialUpdate +DcimPowerOutletTemplatesPartialUpdate Method for DcimPowerOutletTemplatesPartialUpdate -Patch a power feed object. +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 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 outlet template. + @return ApiDcimPowerOutletTemplatesPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerFeedsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsPartialUpdateRequest { - return ApiDcimPowerFeedsPartialUpdateRequest{ +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 PowerFeed -func (a *DcimAPIService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsPartialUpdateRequest) (*PowerFeed, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimPowerOutletTemplatesPartialUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -72506,125 +86917,7 @@ func (a *DcimAPIService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritablePowerFeedRequest - 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 ApiDcimPowerFeedsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimPowerFeedsRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) { - return r.ApiService.DcimPowerFeedsRetrieveExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimPowerFeedsRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsRetrieveRequest { - return ApiDcimPowerFeedsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return PowerFeed -func (a *DcimAPIService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrieveRequest) (*PowerFeed, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/power-feeds/{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 - } + localVarPostBody = r.patchedWritablePowerOutletTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -72676,50 +86969,49 @@ func (a *DcimAPIService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerFeedsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerOutletTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerFeedsTraceRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) { - return r.ApiService.DcimPowerFeedsTraceRetrieveExecute(r) +func (r ApiDcimPowerOutletTemplatesRetrieveRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesRetrieveExecute(r) } /* -DcimPowerFeedsTraceRetrieve Method for DcimPowerFeedsTraceRetrieve +DcimPowerOutletTemplatesRetrieve Method for DcimPowerOutletTemplatesRetrieve -Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). +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 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 outlet template. + @return ApiDcimPowerOutletTemplatesRetrieveRequest */ -func (a *DcimAPIService) DcimPowerFeedsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsTraceRetrieveRequest { - return ApiDcimPowerFeedsTraceRetrieveRequest{ +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 PowerFeed -func (a *DcimAPIService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsTraceRetrieveRequest) (*PowerFeed, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerOutletTemplatesRetrieveRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/trace/" + localVarPath := localBasePath + "/api/dcim/power-outlet-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -72794,63 +87086,62 @@ func (a *DcimAPIService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerFeedsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writablePowerFeedRequest *WritablePowerFeedRequest +type ApiDcimPowerOutletTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest } -func (r ApiDcimPowerFeedsUpdateRequest) WritablePowerFeedRequest(writablePowerFeedRequest WritablePowerFeedRequest) ApiDcimPowerFeedsUpdateRequest { - r.writablePowerFeedRequest = &writablePowerFeedRequest +func (r ApiDcimPowerOutletTemplatesUpdateRequest) WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest WritablePowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesUpdateRequest { + r.writablePowerOutletTemplateRequest = &writablePowerOutletTemplateRequest return r } -func (r ApiDcimPowerFeedsUpdateRequest) Execute() (*PowerFeed, *http.Response, error) { - return r.ApiService.DcimPowerFeedsUpdateExecute(r) +func (r ApiDcimPowerOutletTemplatesUpdateRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { + return r.ApiService.DcimPowerOutletTemplatesUpdateExecute(r) } /* -DcimPowerFeedsUpdate Method for DcimPowerFeedsUpdate +DcimPowerOutletTemplatesUpdate Method for DcimPowerOutletTemplatesUpdate -Put a power feed object. +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 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 outlet template. + @return ApiDcimPowerOutletTemplatesUpdateRequest */ -func (a *DcimAPIService) DcimPowerFeedsUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsUpdateRequest { - return ApiDcimPowerFeedsUpdateRequest{ +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 PowerFeed -func (a *DcimAPIService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRequest) (*PowerFeed, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOutletTemplatesUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-feeds/{id}/" + localVarPath := localBasePath + "/api/dcim/power-outlet-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.writablePowerFeedRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerFeedRequest is required and must be specified") + if r.writablePowerOutletTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerOutletTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -72871,7 +87162,7 @@ func (a *DcimAPIService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerFeedRequest + localVarPostBody = r.writablePowerOutletTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -72923,56 +87214,56 @@ func (a *DcimAPIService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerOutletTemplateRequest *[]PowerOutletTemplateRequest +type ApiDcimPowerOutletsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + powerOutletRequest *[]PowerOutletRequest } -func (r ApiDcimPowerOutletTemplatesBulkDestroyRequest) PowerOutletTemplateRequest(powerOutletTemplateRequest []PowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesBulkDestroyRequest { - r.powerOutletTemplateRequest = &powerOutletTemplateRequest +func (r ApiDcimPowerOutletsBulkDestroyRequest) PowerOutletRequest(powerOutletRequest []PowerOutletRequest) ApiDcimPowerOutletsBulkDestroyRequest { + r.powerOutletRequest = &powerOutletRequest return r } -func (r ApiDcimPowerOutletTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesBulkDestroyExecute(r) +func (r ApiDcimPowerOutletsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerOutletsBulkDestroyExecute(r) } /* -DcimPowerOutletTemplatesBulkDestroy Method for DcimPowerOutletTemplatesBulkDestroy +DcimPowerOutletsBulkDestroy Method for DcimPowerOutletsBulkDestroy -Delete a list of power outlet template objects. +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 ApiDcimPowerOutletTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsBulkDestroyRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerOutletTemplatesBulkDestroyRequest { - return ApiDcimPowerOutletTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimPowerOutletsBulkDestroy(ctx context.Context) ApiDcimPowerOutletsBulkDestroyRequest { + return ApiDcimPowerOutletsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPowerOutletTemplatesBulkDestroyRequest) (*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.DcimPowerOutletTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" + localVarPath := localBasePath + "/api/dcim/power-outlets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerOutletTemplateRequest == nil { - return nil, reportError("powerOutletTemplateRequest is required and must be specified") + if r.powerOutletRequest == nil { + return nil, reportError("powerOutletRequest is required and must be specified") } // to determine the Content-Type header @@ -72993,7 +87284,7 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPow localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerOutletTemplateRequest + localVarPostBody = r.powerOutletRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -73036,59 +87327,58 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPow return localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerOutletTemplateRequest *[]PowerOutletTemplateRequest +type ApiDcimPowerOutletsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerOutletRequest *[]PowerOutletRequest } -func (r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) PowerOutletTemplateRequest(powerOutletTemplateRequest []PowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest { - r.powerOutletTemplateRequest = &powerOutletTemplateRequest +func (r ApiDcimPowerOutletsBulkPartialUpdateRequest) PowerOutletRequest(powerOutletRequest []PowerOutletRequest) ApiDcimPowerOutletsBulkPartialUpdateRequest { + r.powerOutletRequest = &powerOutletRequest return r } -func (r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) Execute() ([]PowerOutletTemplate, *http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimPowerOutletsBulkPartialUpdateRequest) Execute() ([]PowerOutlet, *http.Response, error) { + return r.ApiService.DcimPowerOutletsBulkPartialUpdateExecute(r) } /* -DcimPowerOutletTemplatesBulkPartialUpdate Method for DcimPowerOutletTemplatesBulkPartialUpdate +DcimPowerOutletsBulkPartialUpdate Method for DcimPowerOutletsBulkPartialUpdate -Patch a list of power outlet template objects. +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 ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest { - return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletsBulkPartialUpdateRequest { + return ApiDcimPowerOutletsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutletTemplate -func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { +// @return []PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPowerOutletsBulkPartialUpdateRequest) ([]PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutletTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" + localVarPath := localBasePath + "/api/dcim/power-outlets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerOutletTemplateRequest == nil { - return localVarReturnValue, nil, reportError("powerOutletTemplateRequest is required and must be specified") + if r.powerOutletRequest == nil { + return localVarReturnValue, nil, reportError("powerOutletRequest is required and must be specified") } // to determine the Content-Type header @@ -73109,7 +87399,7 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerOutletTemplateRequest + localVarPostBody = r.powerOutletRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -73161,59 +87451,58 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiD return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerOutletTemplateRequest *[]PowerOutletTemplateRequest +type ApiDcimPowerOutletsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerOutletRequest *[]PowerOutletRequest } -func (r ApiDcimPowerOutletTemplatesBulkUpdateRequest) PowerOutletTemplateRequest(powerOutletTemplateRequest []PowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesBulkUpdateRequest { - r.powerOutletTemplateRequest = &powerOutletTemplateRequest +func (r ApiDcimPowerOutletsBulkUpdateRequest) PowerOutletRequest(powerOutletRequest []PowerOutletRequest) ApiDcimPowerOutletsBulkUpdateRequest { + r.powerOutletRequest = &powerOutletRequest return r } -func (r ApiDcimPowerOutletTemplatesBulkUpdateRequest) Execute() ([]PowerOutletTemplate, *http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesBulkUpdateExecute(r) +func (r ApiDcimPowerOutletsBulkUpdateRequest) Execute() ([]PowerOutlet, *http.Response, error) { + return r.ApiService.DcimPowerOutletsBulkUpdateExecute(r) } /* -DcimPowerOutletTemplatesBulkUpdate Method for DcimPowerOutletTemplatesBulkUpdate +DcimPowerOutletsBulkUpdate Method for DcimPowerOutletsBulkUpdate -Put a list of power outlet template objects. +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 ApiDcimPowerOutletTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsBulkUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkUpdateRequest { - return ApiDcimPowerOutletTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimPowerOutletsBulkUpdate(ctx context.Context) ApiDcimPowerOutletsBulkUpdateRequest { + return ApiDcimPowerOutletsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutletTemplate -func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowerOutletTemplatesBulkUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { +// @return []PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutletsBulkUpdateRequest) ([]PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutletTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" + localVarPath := localBasePath + "/api/dcim/power-outlets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerOutletTemplateRequest == nil { - return localVarReturnValue, nil, reportError("powerOutletTemplateRequest is required and must be specified") + if r.powerOutletRequest == nil { + return localVarReturnValue, nil, reportError("powerOutletRequest is required and must be specified") } // to determine the Content-Type header @@ -73234,7 +87523,7 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerOutletTemplateRequest + localVarPostBody = r.powerOutletRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -73286,59 +87575,58 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest +type ApiDcimPowerOutletsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writablePowerOutletRequest *WritablePowerOutletRequest } -func (r ApiDcimPowerOutletTemplatesCreateRequest) WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest WritablePowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesCreateRequest { - r.writablePowerOutletTemplateRequest = &writablePowerOutletTemplateRequest +func (r ApiDcimPowerOutletsCreateRequest) WritablePowerOutletRequest(writablePowerOutletRequest WritablePowerOutletRequest) ApiDcimPowerOutletsCreateRequest { + r.writablePowerOutletRequest = &writablePowerOutletRequest return r } -func (r ApiDcimPowerOutletTemplatesCreateRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesCreateExecute(r) +func (r ApiDcimPowerOutletsCreateRequest) Execute() (*PowerOutlet, *http.Response, error) { + return r.ApiService.DcimPowerOutletsCreateExecute(r) } /* -DcimPowerOutletTemplatesCreate Method for DcimPowerOutletTemplatesCreate +DcimPowerOutletsCreate Method for DcimPowerOutletsCreate -Post a list of power outlet template objects. +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 ApiDcimPowerOutletTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsCreateRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesCreate(ctx context.Context) ApiDcimPowerOutletTemplatesCreateRequest { - return ApiDcimPowerOutletTemplatesCreateRequest{ +func (a *DcimAPIService) DcimPowerOutletsCreate(ctx context.Context) ApiDcimPowerOutletsCreateRequest { + return ApiDcimPowerOutletsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerOutletTemplate -func (a *DcimAPIService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOutletTemplatesCreateRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCreateRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" + localVarPath := localBasePath + "/api/dcim/power-outlets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writablePowerOutletTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerOutletTemplateRequest is required and must be specified") + if r.writablePowerOutletRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerOutletRequest is required and must be specified") } // to determine the Content-Type header @@ -73359,7 +87647,7 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerOutletTemplateRequest + localVarPostBody = r.writablePowerOutletRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -73411,47 +87699,47 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOut return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerOutletsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerOutletTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesDestroyExecute(r) +func (r ApiDcimPowerOutletsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerOutletsDestroyExecute(r) } /* -DcimPowerOutletTemplatesDestroy Method for DcimPowerOutletTemplatesDestroy +DcimPowerOutletsDestroy Method for DcimPowerOutletsDestroy -Delete a power outlet template object. +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 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. + @return ApiDcimPowerOutletsDestroyRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesDestroyRequest { - return ApiDcimPowerOutletTemplatesDestroyRequest{ +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) DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOutletTemplatesDestroyRequest) (*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.DcimPowerOutletTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -73517,529 +87805,1187 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOu return localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesListRequest struct { - 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 - deviceTypeId *[]*int32 - deviceTypeIdN *[]*int32 - 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 +type ApiDcimPowerOutletsListRequest struct { + ctx context.Context + ApiService DcimAPI + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + cabled *bool + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + feedLeg *[]*string + feedLegEmpty *bool + feedLegIc *[]*string + feedLegIe *[]*string + feedLegIew *[]*string + feedLegIsw *[]*string + feedLegN *[]*string + feedLegNic *[]*string + feedLegNie *[]*string + feedLegNiew *[]*string + feedLegNisw *[]*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 + markConnected *bool modifiedByRequest *string - moduleTypeId *[]*int32 - moduleTypeIdN *[]*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 - powerPortId *[]*int32 - powerPortIdN *[]*int32 - q *string - type_ *DcimPowerOutletTemplatesListTypeParameter - typeN *DcimPowerOutletTemplatesListTypeParameter - updatedByRequest *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 + powerPortId *[]*int32 + powerPortIdN *[]*int32 + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]*string + typeEmpty *bool + typeIc *[]*string + typeIe *[]*string + typeIew *[]*string + typeIsw *[]*string + typeN *[]*string + typeNic *[]*string + typeNie *[]*string + typeNiew *[]*string + typeNisw *[]*string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 } -func (r ApiDcimPowerOutletTemplatesListRequest) Created(created []time.Time) ApiDcimPowerOutletTemplatesListRequest { +// * `A` - A * `B` - B +func (r ApiDcimPowerOutletsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerOutletsListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiDcimPowerOutletsListRequest) CableId(cableId []*int32) ApiDcimPowerOutletsListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiDcimPowerOutletsListRequest) CableIdN(cableIdN []*int32) ApiDcimPowerOutletsListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiDcimPowerOutletsListRequest) Cabled(cabled bool) ApiDcimPowerOutletsListRequest { + r.cabled = &cabled + return r +} + +func (r ApiDcimPowerOutletsListRequest) Color(color []string) ApiDcimPowerOutletsListRequest { + r.color = &color + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorEmpty(colorEmpty bool) ApiDcimPowerOutletsListRequest { + r.colorEmpty = &colorEmpty + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorIc(colorIc []string) ApiDcimPowerOutletsListRequest { + r.colorIc = &colorIc + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorIe(colorIe []string) ApiDcimPowerOutletsListRequest { + r.colorIe = &colorIe + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorIew(colorIew []string) ApiDcimPowerOutletsListRequest { + r.colorIew = &colorIew + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorIsw(colorIsw []string) ApiDcimPowerOutletsListRequest { + r.colorIsw = &colorIsw + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorN(colorN []string) ApiDcimPowerOutletsListRequest { + r.colorN = &colorN + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorNic(colorNic []string) ApiDcimPowerOutletsListRequest { + r.colorNic = &colorNic + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorNie(colorNie []string) ApiDcimPowerOutletsListRequest { + r.colorNie = &colorNie + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorNiew(colorNiew []string) ApiDcimPowerOutletsListRequest { + r.colorNiew = &colorNiew + return r +} + +func (r ApiDcimPowerOutletsListRequest) ColorNisw(colorNisw []string) ApiDcimPowerOutletsListRequest { + r.colorNisw = &colorNisw + return r +} + +func (r ApiDcimPowerOutletsListRequest) Connected(connected bool) ApiDcimPowerOutletsListRequest { + r.connected = &connected + return r +} + +func (r ApiDcimPowerOutletsListRequest) Created(created []time.Time) ApiDcimPowerOutletsListRequest { r.created = &created return r } -func (r ApiDcimPowerOutletTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerOutletsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimPowerOutletTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerOutletsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimPowerOutletTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerOutletsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimPowerOutletTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerOutletsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimPowerOutletTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerOutletsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimPowerOutletTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerOutletsListRequest { r.createdN = &createdN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerOutletsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimPowerOutletTemplatesListRequest) Description(description []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) Description(description []string) ApiDcimPowerOutletsListRequest { r.description = &description return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerOutletsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerOutletsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerOutletsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerOutletsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerOutletsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerOutletsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerOutletsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerOutletsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerOutletsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimPowerOutletTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerOutletsListRequest { r.descriptionNisw = &descriptionNisw return r } +// Device (name) +func (r ApiDcimPowerOutletsListRequest) Device(device []*string) ApiDcimPowerOutletsListRequest { + r.device = &device + return r +} + +// Device (name) +func (r ApiDcimPowerOutletsListRequest) DeviceN(deviceN []*string) ApiDcimPowerOutletsListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceId(deviceId []int32) ApiDcimPowerOutletsListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerOutletsListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerOutletsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerOutletsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerOutletsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimPowerOutletsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + +// Device type (model) +func (r ApiDcimPowerOutletsListRequest) DeviceType(deviceType []string) ApiDcimPowerOutletsListRequest { + r.deviceType = &deviceType + return r +} + +// Device type (model) +func (r ApiDcimPowerOutletsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimPowerOutletsListRequest { + r.deviceTypeN = &deviceTypeN + return r +} + // Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimPowerOutletsListRequest { r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimPowerOutletsListRequest { r.deviceTypeIdN = &deviceTypeIdN return r } -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeId = &devicetypeId +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLeg(feedLeg []*string) ApiDcimPowerOutletsListRequest { + r.feedLeg = &feedLeg return r } -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimPowerOutletsListRequest) FeedLegEmpty(feedLegEmpty bool) ApiDcimPowerOutletsListRequest { + r.feedLegEmpty = &feedLegEmpty return r } // Phase (for three-phase feeds) -func (r ApiDcimPowerOutletTemplatesListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOutletTemplatesListRequest { - r.feedLeg = &feedLeg +func (r ApiDcimPowerOutletsListRequest) FeedLegIc(feedLegIc []*string) ApiDcimPowerOutletsListRequest { + r.feedLegIc = &feedLegIc + return r +} + +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLegIe(feedLegIe []*string) ApiDcimPowerOutletsListRequest { + r.feedLegIe = &feedLegIe + return r +} + +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLegIew(feedLegIew []*string) ApiDcimPowerOutletsListRequest { + r.feedLegIew = &feedLegIew + return r +} + +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLegIsw(feedLegIsw []*string) ApiDcimPowerOutletsListRequest { + r.feedLegIsw = &feedLegIsw return r } // Phase (for three-phase feeds) -func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegN(feedLegN []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) FeedLegN(feedLegN []*string) ApiDcimPowerOutletsListRequest { r.feedLegN = &feedLegN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) Id(id []int32) ApiDcimPowerOutletTemplatesListRequest { +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLegNic(feedLegNic []*string) ApiDcimPowerOutletsListRequest { + r.feedLegNic = &feedLegNic + return r +} + +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLegNie(feedLegNie []*string) ApiDcimPowerOutletsListRequest { + r.feedLegNie = &feedLegNie + return r +} + +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLegNiew(feedLegNiew []*string) ApiDcimPowerOutletsListRequest { + r.feedLegNiew = &feedLegNiew + return r +} + +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletsListRequest) FeedLegNisw(feedLegNisw []*string) ApiDcimPowerOutletsListRequest { + r.feedLegNisw = &feedLegNisw + return r +} + +func (r ApiDcimPowerOutletsListRequest) Id(id []int32) ApiDcimPowerOutletsListRequest { r.id = &id return r } -func (r ApiDcimPowerOutletTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerOutletsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimPowerOutletTemplatesListRequest) IdGt(idGt []int32) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) IdGt(idGt []int32) ApiDcimPowerOutletsListRequest { r.idGt = &idGt return r } -func (r ApiDcimPowerOutletTemplatesListRequest) IdGte(idGte []int32) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) IdGte(idGte []int32) ApiDcimPowerOutletsListRequest { r.idGte = &idGte return r } -func (r ApiDcimPowerOutletTemplatesListRequest) IdLt(idLt []int32) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) IdLt(idLt []int32) ApiDcimPowerOutletsListRequest { r.idLt = &idLt return r } -func (r ApiDcimPowerOutletTemplatesListRequest) IdLte(idLte []int32) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) IdLte(idLte []int32) ApiDcimPowerOutletsListRequest { r.idLte = &idLte return r } -func (r ApiDcimPowerOutletTemplatesListRequest) IdN(idN []int32) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) IdN(idN []int32) ApiDcimPowerOutletsListRequest { r.idN = &idN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) Label(label []string) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) Label(label []string) ApiDcimPowerOutletsListRequest { r.label = &label return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerOutletTemplatesListRequest { +func (r ApiDcimPowerOutletsListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerOutletsListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelIc(labelIc []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelIc = &labelIc +func (r ApiDcimPowerOutletsListRequest) LabelIc(labelIc []string) ApiDcimPowerOutletsListRequest { + r.labelIc = &labelIc + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelIe(labelIe []string) ApiDcimPowerOutletsListRequest { + r.labelIe = &labelIe + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelIew(labelIew []string) ApiDcimPowerOutletsListRequest { + r.labelIew = &labelIew + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelIsw(labelIsw []string) ApiDcimPowerOutletsListRequest { + r.labelIsw = &labelIsw + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelN(labelN []string) ApiDcimPowerOutletsListRequest { + r.labelN = &labelN + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelNic(labelNic []string) ApiDcimPowerOutletsListRequest { + r.labelNic = &labelNic + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelNie(labelNie []string) ApiDcimPowerOutletsListRequest { + r.labelNie = &labelNie + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelNiew(labelNiew []string) ApiDcimPowerOutletsListRequest { + r.labelNiew = &labelNiew + return r +} + +func (r ApiDcimPowerOutletsListRequest) LabelNisw(labelNisw []string) ApiDcimPowerOutletsListRequest { + r.labelNisw = &labelNisw + return r +} + +func (r ApiDcimPowerOutletsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerOutletsListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiDcimPowerOutletsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerOutletsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimPowerOutletsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerOutletsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimPowerOutletsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerOutletsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimPowerOutletsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerOutletsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimPowerOutletsListRequest) Limit(limit int32) ApiDcimPowerOutletsListRequest { + r.limit = &limit + return r +} + +// Location (slug) +func (r ApiDcimPowerOutletsListRequest) Location(location []string) ApiDcimPowerOutletsListRequest { + r.location = &location + return r +} + +// Location (slug) +func (r ApiDcimPowerOutletsListRequest) LocationN(locationN []string) ApiDcimPowerOutletsListRequest { + r.locationN = &locationN + return r +} + +// Location (ID) +func (r ApiDcimPowerOutletsListRequest) LocationId(locationId []int32) ApiDcimPowerOutletsListRequest { + r.locationId = &locationId + return r +} + +// Location (ID) +func (r ApiDcimPowerOutletsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerOutletsListRequest { + r.locationIdN = &locationIdN + return r +} + +func (r ApiDcimPowerOutletsListRequest) MarkConnected(markConnected bool) ApiDcimPowerOutletsListRequest { + r.markConnected = &markConnected + 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 + return r +} + +// Module (ID) +func (r ApiDcimPowerOutletsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimPowerOutletsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiDcimPowerOutletsListRequest) Name(name []string) ApiDcimPowerOutletsListRequest { + r.name = &name + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerOutletsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameIc(nameIc []string) ApiDcimPowerOutletsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameIe(nameIe []string) ApiDcimPowerOutletsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameIew(nameIew []string) ApiDcimPowerOutletsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameIsw(nameIsw []string) ApiDcimPowerOutletsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameN(nameN []string) ApiDcimPowerOutletsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameNic(nameNic []string) ApiDcimPowerOutletsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameNie(nameNie []string) ApiDcimPowerOutletsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameNiew(nameNiew []string) ApiDcimPowerOutletsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiDcimPowerOutletsListRequest) NameNisw(nameNisw []string) ApiDcimPowerOutletsListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelIe(labelIe []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelIe = &labelIe +func (r ApiDcimPowerOutletsListRequest) Occupied(occupied bool) ApiDcimPowerOutletsListRequest { + r.occupied = &occupied return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelIew(labelIew []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelIew = &labelIew +// The initial index from which to return the results. +func (r ApiDcimPowerOutletsListRequest) Offset(offset int32) ApiDcimPowerOutletsListRequest { + r.offset = &offset return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelIsw = &labelIsw +// Which field to use when ordering the results. +func (r ApiDcimPowerOutletsListRequest) Ordering(ordering string) ApiDcimPowerOutletsListRequest { + r.ordering = &ordering return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelN(labelN []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelN = &labelN +// Power port (ID) +func (r ApiDcimPowerOutletsListRequest) PowerPortId(powerPortId []*int32) ApiDcimPowerOutletsListRequest { + r.powerPortId = &powerPortId return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelNic(labelNic []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelNic = &labelNic +// Power port (ID) +func (r ApiDcimPowerOutletsListRequest) PowerPortIdN(powerPortIdN []*int32) ApiDcimPowerOutletsListRequest { + r.powerPortIdN = &powerPortIdN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelNie(labelNie []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelNie = &labelNie +// Search +func (r ApiDcimPowerOutletsListRequest) Q(q string) ApiDcimPowerOutletsListRequest { + r.q = &q return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelNiew = &labelNiew +// Rack (name) +func (r ApiDcimPowerOutletsListRequest) Rack(rack []string) ApiDcimPowerOutletsListRequest { + r.rack = &rack return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimPowerOutletTemplatesListRequest { - r.labelNisw = &labelNisw +// Rack (name) +func (r ApiDcimPowerOutletsListRequest) RackN(rackN []string) ApiDcimPowerOutletsListRequest { + r.rackN = &rackN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerOutletTemplatesListRequest { - r.lastUpdated = &lastUpdated +// Rack (ID) +func (r ApiDcimPowerOutletsListRequest) RackId(rackId []int32) ApiDcimPowerOutletsListRequest { + r.rackId = &rackId return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerOutletTemplatesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +// Rack (ID) +func (r ApiDcimPowerOutletsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerOutletsListRequest { + r.rackIdN = &rackIdN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerOutletTemplatesListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimPowerOutletsListRequest) Region(region []string) ApiDcimPowerOutletsListRequest { + r.region = ®ion return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerOutletTemplatesListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []string) ApiDcimPowerOutletsListRequest { + r.regionN = ®ionN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerOutletTemplatesListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []string) ApiDcimPowerOutletsListRequest { + r.regionId = ®ionId return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerOutletTemplatesListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerOutletsListRequest { + r.regionIdN = ®ionIdN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerOutletTemplatesListRequest { - r.lastUpdatedN = &lastUpdatedN +// Site name (slug) +func (r ApiDcimPowerOutletsListRequest) Site(site []string) ApiDcimPowerOutletsListRequest { + r.site = &site return r } -// Number of results to return per page. -func (r ApiDcimPowerOutletTemplatesListRequest) Limit(limit int32) ApiDcimPowerOutletTemplatesListRequest { - r.limit = &limit +// Site name (slug) +func (r ApiDcimPowerOutletsListRequest) SiteN(siteN []string) ApiDcimPowerOutletsListRequest { + r.siteN = &siteN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerOutletTemplatesListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerOutletsListRequest { + r.siteGroup = &siteGroup return r } -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduleTypeId = &moduleTypeId +func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerOutletsListRequest { + r.siteGroupN = &siteGroupN return r } -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduleTypeIdN = &moduleTypeIdN +func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerOutletsListRequest { + r.siteGroupId = &siteGroupId return r } -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeId = &moduletypeId +func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerOutletsListRequest { + r.siteGroupIdN = &siteGroupIdN return r } -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN +// Site (ID) +func (r ApiDcimPowerOutletsListRequest) SiteId(siteId []int32) ApiDcimPowerOutletsListRequest { + r.siteId = &siteId return r } -func (r ApiDcimPowerOutletTemplatesListRequest) Name(name []string) ApiDcimPowerOutletTemplatesListRequest { - r.name = &name +// Site (ID) +func (r ApiDcimPowerOutletsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerOutletsListRequest { + r.siteIdN = &siteIdN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerOutletTemplatesListRequest { - r.nameEmpty = &nameEmpty +func (r ApiDcimPowerOutletsListRequest) Tag(tag []string) ApiDcimPowerOutletsListRequest { + r.tag = &tag return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameIc(nameIc []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameIc = &nameIc +func (r ApiDcimPowerOutletsListRequest) TagN(tagN []string) ApiDcimPowerOutletsListRequest { + r.tagN = &tagN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameIe(nameIe []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameIe = &nameIe +// Physical port type +func (r ApiDcimPowerOutletsListRequest) Type_(type_ []*string) ApiDcimPowerOutletsListRequest { + r.type_ = &type_ return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameIew(nameIew []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameIew = &nameIew +func (r ApiDcimPowerOutletsListRequest) TypeEmpty(typeEmpty bool) ApiDcimPowerOutletsListRequest { + r.typeEmpty = &typeEmpty return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameIsw = &nameIsw +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeIc(typeIc []*string) ApiDcimPowerOutletsListRequest { + r.typeIc = &typeIc return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameN(nameN []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameN = &nameN +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeIe(typeIe []*string) ApiDcimPowerOutletsListRequest { + r.typeIe = &typeIe return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameNic(nameNic []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameNic = &nameNic +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeIew(typeIew []*string) ApiDcimPowerOutletsListRequest { + r.typeIew = &typeIew return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameNie(nameNie []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameNie = &nameNie +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeIsw(typeIsw []*string) ApiDcimPowerOutletsListRequest { + r.typeIsw = &typeIsw return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameNiew = &nameNiew +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeN(typeN []*string) ApiDcimPowerOutletsListRequest { + r.typeN = &typeN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimPowerOutletTemplatesListRequest { - r.nameNisw = &nameNisw +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeNic(typeNic []*string) ApiDcimPowerOutletsListRequest { + r.typeNic = &typeNic return r } -// The initial index from which to return the results. -func (r ApiDcimPowerOutletTemplatesListRequest) Offset(offset int32) ApiDcimPowerOutletTemplatesListRequest { - r.offset = &offset +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeNie(typeNie []*string) ApiDcimPowerOutletsListRequest { + r.typeNie = &typeNie return r } -// Which field to use when ordering the results. -func (r ApiDcimPowerOutletTemplatesListRequest) Ordering(ordering string) ApiDcimPowerOutletTemplatesListRequest { - r.ordering = &ordering +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeNiew(typeNiew []*string) ApiDcimPowerOutletsListRequest { + r.typeNiew = &typeNiew return r } -// Power port (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) PowerPortId(powerPortId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.powerPortId = &powerPortId +// Physical port type +func (r ApiDcimPowerOutletsListRequest) TypeNisw(typeNisw []*string) ApiDcimPowerOutletsListRequest { + r.typeNisw = &typeNisw return r } -// Power port (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) PowerPortIdN(powerPortIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.powerPortIdN = &powerPortIdN +func (r ApiDcimPowerOutletsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerOutletsListRequest { + r.updatedByRequest = &updatedByRequest return r } -// Search -func (r ApiDcimPowerOutletTemplatesListRequest) Q(q string) ApiDcimPowerOutletTemplatesListRequest { - r.q = &q +// Virtual Chassis +func (r ApiDcimPowerOutletsListRequest) VirtualChassis(virtualChassis []string) ApiDcimPowerOutletsListRequest { + r.virtualChassis = &virtualChassis return r } -// * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] -func (r ApiDcimPowerOutletTemplatesListRequest) Type_(type_ DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { - r.type_ = &type_ +// Virtual Chassis +func (r ApiDcimPowerOutletsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimPowerOutletsListRequest { + r.virtualChassisN = &virtualChassisN return r } -// * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] -func (r ApiDcimPowerOutletTemplatesListRequest) TypeN(typeN DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { - r.typeN = &typeN +// Virtual Chassis (ID) +func (r ApiDcimPowerOutletsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimPowerOutletsListRequest { + r.virtualChassisId = &virtualChassisId return r } -func (r ApiDcimPowerOutletTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerOutletTemplatesListRequest { - r.updatedByRequest = &updatedByRequest +// Virtual Chassis (ID) +func (r ApiDcimPowerOutletsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimPowerOutletsListRequest { + r.virtualChassisIdN = &virtualChassisIdN return r } -func (r ApiDcimPowerOutletTemplatesListRequest) Execute() (*PaginatedPowerOutletTemplateList, *http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesListExecute(r) +func (r ApiDcimPowerOutletsListRequest) Execute() (*PaginatedPowerOutletList, *http.Response, error) { + return r.ApiService.DcimPowerOutletsListExecute(r) } /* -DcimPowerOutletTemplatesList Method for DcimPowerOutletTemplatesList +DcimPowerOutletsList Method for DcimPowerOutletsList -Get a list of power outlet template objects. +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 ApiDcimPowerOutletTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsListRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesList(ctx context.Context) ApiDcimPowerOutletTemplatesListRequest { - return ApiDcimPowerOutletTemplatesListRequest{ +func (a *DcimAPIService) DcimPowerOutletsList(ctx context.Context) ApiDcimPowerOutletsListRequest { + return ApiDcimPowerOutletsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerOutletTemplateList -func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutletTemplatesListRequest) (*PaginatedPowerOutletTemplateList, *http.Response, error) { +// @return PaginatedPowerOutletList +func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRequest) (*PaginatedPowerOutletList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerOutletTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerOutletList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/" + localVarPath := localBasePath + "/api/dcim/power-outlets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + if r.cableId != nil { + t := *r.cableId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") + } + } + if r.cableIdN != nil { + t := *r.cableIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") + } + } + if r.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") + } + if r.color != nil { + t := *r.color + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") + } + } + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") + } + if r.colorIc != nil { + t := *r.colorIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") + } + } + if r.colorIe != nil { + t := *r.colorIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") + } + } + if r.colorIew != nil { + t := *r.colorIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") + } + } + if r.colorIsw != nil { + t := *r.colorIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") + } + } + if r.colorN != nil { + t := *r.colorN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") + } + } + if r.colorNic != nil { + t := *r.colorNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") + } + } + if r.colorNie != nil { + t := *r.colorNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") + } + } + if r.colorNiew != nil { + t := *r.colorNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") + } + } + if r.colorNisw != nil { + t := *r.colorNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") + } + } + if r.connected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -74047,10 +88993,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -74058,10 +89004,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -74069,10 +89015,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -74080,10 +89026,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -74091,10 +89037,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -74102,38 +89048,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -74141,153 +89087,445 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.device != nil { + t := *r.device + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") + } + } + if r.deviceType != nil { + t := *r.deviceType + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.deviceTypeN != nil { + t := *r.deviceTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.feedLeg != nil { + t := *r.feedLeg 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.feedLegEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__empty", r.feedLegEmpty, "form", "") + } + if r.feedLegIc != nil { + t := *r.feedLegIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.feedLegIe != nil { + t := *r.feedLegIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.feedLegIew != nil { + t := *r.feedLegIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.feedLegIsw != nil { + t := *r.feedLegIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + if r.feedLegN != nil { + t := *r.feedLegN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + if r.feedLegNic != nil { + t := *r.feedLegNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + if r.feedLegNie != nil { + t := *r.feedLegNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", t, "form", "multi") } } - if r.feedLeg != nil { - t := *r.feedLeg + if r.feedLegNiew != nil { + t := *r.feedLegNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", t, "form", "multi") } } - if r.feedLegN != nil { - t := *r.feedLegN + if r.feedLegNisw != nil { + t := *r.feedLegNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", t, "form", "multi") } } if r.id != nil { @@ -74295,24 +89533,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -74320,10 +89558,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -74331,10 +89569,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -74342,10 +89580,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -74353,10 +89591,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.label != nil { @@ -74364,24 +89602,24 @@ 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -74389,10 +89627,10 @@ 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -74400,10 +89638,10 @@ 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -74411,10 +89649,10 @@ 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -74422,10 +89660,10 @@ 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -74433,10 +89671,10 @@ 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -74444,10 +89682,10 @@ 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -74455,10 +89693,10 @@ 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -74466,10 +89704,10 @@ 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -74477,10 +89715,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -74488,10 +89726,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -74499,10 +89737,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -74510,10 +89748,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -74521,10 +89759,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -74532,10 +89770,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -74543,60 +89781,85 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") + } } - if r.moduleTypeId != nil { - t := *r.moduleTypeId + 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, "module_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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, "module_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "moduletype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") } } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN + if r.moduleIdN != nil { + t := *r.moduleIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") } } if r.name != nil { @@ -74604,24 +89867,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -74629,10 +89892,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -74640,10 +89903,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -74651,10 +89914,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -74662,10 +89925,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -74673,10 +89936,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -74684,10 +89947,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -74695,10 +89958,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -74706,27 +89969,30 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.powerPortId != nil { t := *r.powerPortId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", t, "form", "multi") } } if r.powerPortIdN != nil { @@ -74734,23 +90000,372 @@ 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, "power_port_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") + } + } + if r.rackN != nil { + t := *r.rackN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") + } + } + if r.rackId != nil { + t := *r.rackId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") + } + } + if r.rackIdN != nil { + t := *r.rackIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } if r.type_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") + } } if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") + t := *r.typeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") + } + } + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } + } + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } + } + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -74820,56 +90435,55 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritablePowerOutletTemplateRequest *PatchedWritablePowerOutletTemplateRequest +type ApiDcimPowerOutletsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritablePowerOutletRequest *PatchedWritablePowerOutletRequest } -func (r ApiDcimPowerOutletTemplatesPartialUpdateRequest) PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest PatchedWritablePowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesPartialUpdateRequest { - r.patchedWritablePowerOutletTemplateRequest = &patchedWritablePowerOutletTemplateRequest +func (r ApiDcimPowerOutletsPartialUpdateRequest) PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest PatchedWritablePowerOutletRequest) ApiDcimPowerOutletsPartialUpdateRequest { + r.patchedWritablePowerOutletRequest = &patchedWritablePowerOutletRequest return r } -func (r ApiDcimPowerOutletTemplatesPartialUpdateRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesPartialUpdateExecute(r) +func (r ApiDcimPowerOutletsPartialUpdateRequest) Execute() (*PowerOutlet, *http.Response, error) { + return r.ApiService.DcimPowerOutletsPartialUpdateExecute(r) } /* -DcimPowerOutletTemplatesPartialUpdate Method for DcimPowerOutletTemplatesPartialUpdate +DcimPowerOutletsPartialUpdate Method for DcimPowerOutletsPartialUpdate -Patch a power outlet template object. +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 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. + @return ApiDcimPowerOutletsPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesPartialUpdateRequest { - return ApiDcimPowerOutletTemplatesPartialUpdateRequest{ +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 PowerOutletTemplate -func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimPowerOutletTemplatesPartialUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutletsPartialUpdateRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -74894,7 +90508,7 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritablePowerOutletTemplateRequest + localVarPostBody = r.patchedWritablePowerOutletRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -74946,50 +90560,49 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerOutletsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerOutletTemplatesRetrieveRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesRetrieveExecute(r) +func (r ApiDcimPowerOutletsRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) { + return r.ApiService.DcimPowerOutletsRetrieveExecute(r) } /* -DcimPowerOutletTemplatesRetrieve Method for DcimPowerOutletTemplatesRetrieve +DcimPowerOutletsRetrieve Method for DcimPowerOutletsRetrieve -Get a power outlet template object. +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 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. + @return ApiDcimPowerOutletsRetrieveRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesRetrieveRequest { - return ApiDcimPowerOutletTemplatesRetrieveRequest{ +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 PowerOutletTemplate -func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerOutletTemplatesRetrieveRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRetrieveRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -75064,63 +90677,179 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerO return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest +type ApiDcimPowerOutletsTraceRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerOutletTemplatesUpdateRequest) WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest WritablePowerOutletTemplateRequest) ApiDcimPowerOutletTemplatesUpdateRequest { - r.writablePowerOutletTemplateRequest = &writablePowerOutletTemplateRequest +func (r ApiDcimPowerOutletsTraceRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) { + return r.ApiService.DcimPowerOutletsTraceRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimPowerOutletsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsTraceRetrieveRequest { + return ApiDcimPowerOutletsTraceRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutletsTraceRetrieveRequest) (*PowerOutlet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsTraceRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/trace/" + 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 ApiDcimPowerOutletsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writablePowerOutletRequest *WritablePowerOutletRequest +} + +func (r ApiDcimPowerOutletsUpdateRequest) WritablePowerOutletRequest(writablePowerOutletRequest WritablePowerOutletRequest) ApiDcimPowerOutletsUpdateRequest { + r.writablePowerOutletRequest = &writablePowerOutletRequest return r } -func (r ApiDcimPowerOutletTemplatesUpdateRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { - return r.ApiService.DcimPowerOutletTemplatesUpdateExecute(r) +func (r ApiDcimPowerOutletsUpdateRequest) Execute() (*PowerOutlet, *http.Response, error) { + return r.ApiService.DcimPowerOutletsUpdateExecute(r) } /* -DcimPowerOutletTemplatesUpdate Method for DcimPowerOutletTemplatesUpdate +DcimPowerOutletsUpdate Method for DcimPowerOutletsUpdate -Put a power outlet template object. +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 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. + @return ApiDcimPowerOutletsUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesUpdateRequest { - return ApiDcimPowerOutletTemplatesUpdateRequest{ +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 PowerOutletTemplate -func (a *DcimAPIService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOutletTemplatesUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpdateRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlet-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-outlets/{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.writablePowerOutletTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerOutletTemplateRequest is required and must be specified") + if r.writablePowerOutletRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerOutletRequest is required and must be specified") } // to determine the Content-Type header @@ -75141,7 +90870,7 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOut localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerOutletTemplateRequest + localVarPostBody = r.writablePowerOutletRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -75193,56 +90922,56 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOut return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerOutletRequest *[]PowerOutletRequest +type ApiDcimPowerPanelsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + powerPanelRequest *[]PowerPanelRequest } -func (r ApiDcimPowerOutletsBulkDestroyRequest) PowerOutletRequest(powerOutletRequest []PowerOutletRequest) ApiDcimPowerOutletsBulkDestroyRequest { - r.powerOutletRequest = &powerOutletRequest +func (r ApiDcimPowerPanelsBulkDestroyRequest) PowerPanelRequest(powerPanelRequest []PowerPanelRequest) ApiDcimPowerPanelsBulkDestroyRequest { + r.powerPanelRequest = &powerPanelRequest return r } -func (r ApiDcimPowerOutletsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerOutletsBulkDestroyExecute(r) +func (r ApiDcimPowerPanelsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerPanelsBulkDestroyExecute(r) } /* -DcimPowerOutletsBulkDestroy Method for DcimPowerOutletsBulkDestroy +DcimPowerPanelsBulkDestroy Method for DcimPowerPanelsBulkDestroy -Delete a list of power outlet objects. +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 ApiDcimPowerOutletsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsBulkDestroyRequest */ -func (a *DcimAPIService) DcimPowerOutletsBulkDestroy(ctx context.Context) ApiDcimPowerOutletsBulkDestroyRequest { - return ApiDcimPowerOutletsBulkDestroyRequest{ +func (a *DcimAPIService) DcimPowerPanelsBulkDestroy(ctx context.Context) ApiDcimPowerPanelsBulkDestroyRequest { + return ApiDcimPowerPanelsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutletsBulkDestroyRequest) (*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.DcimPowerOutletsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/" + localVarPath := localBasePath + "/api/dcim/power-panels/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerOutletRequest == nil { - return nil, reportError("powerOutletRequest is required and must be specified") + if r.powerPanelRequest == nil { + return nil, reportError("powerPanelRequest is required and must be specified") } // to determine the Content-Type header @@ -75263,7 +90992,7 @@ func (a *DcimAPIService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutlet localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerOutletRequest + localVarPostBody = r.powerPanelRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -75306,59 +91035,58 @@ func (a *DcimAPIService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutlet return localVarHTTPResponse, nil } -type ApiDcimPowerOutletsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerOutletRequest *[]PowerOutletRequest +type ApiDcimPowerPanelsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerPanelRequest *[]PowerPanelRequest } -func (r ApiDcimPowerOutletsBulkPartialUpdateRequest) PowerOutletRequest(powerOutletRequest []PowerOutletRequest) ApiDcimPowerOutletsBulkPartialUpdateRequest { - r.powerOutletRequest = &powerOutletRequest +func (r ApiDcimPowerPanelsBulkPartialUpdateRequest) PowerPanelRequest(powerPanelRequest []PowerPanelRequest) ApiDcimPowerPanelsBulkPartialUpdateRequest { + r.powerPanelRequest = &powerPanelRequest return r } -func (r ApiDcimPowerOutletsBulkPartialUpdateRequest) Execute() ([]PowerOutlet, *http.Response, error) { - return r.ApiService.DcimPowerOutletsBulkPartialUpdateExecute(r) +func (r ApiDcimPowerPanelsBulkPartialUpdateRequest) Execute() ([]PowerPanel, *http.Response, error) { + return r.ApiService.DcimPowerPanelsBulkPartialUpdateExecute(r) } /* -DcimPowerOutletsBulkPartialUpdate Method for DcimPowerOutletsBulkPartialUpdate +DcimPowerPanelsBulkPartialUpdate Method for DcimPowerPanelsBulkPartialUpdate -Patch a list of power outlet objects. +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 ApiDcimPowerOutletsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletsBulkPartialUpdateRequest { - return ApiDcimPowerOutletsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPanelsBulkPartialUpdateRequest { + return ApiDcimPowerPanelsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutlet -func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPowerOutletsBulkPartialUpdateRequest) ([]PowerOutlet, *http.Response, error) { +// @return []PowerPanel +func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerPanelsBulkPartialUpdateRequest) ([]PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutlet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/" + localVarPath := localBasePath + "/api/dcim/power-panels/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerOutletRequest == nil { - return localVarReturnValue, nil, reportError("powerOutletRequest is required and must be specified") + if r.powerPanelRequest == nil { + return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") } // to determine the Content-Type header @@ -75379,7 +91107,7 @@ func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPower localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerOutletRequest + localVarPostBody = r.powerPanelRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -75431,59 +91159,58 @@ func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPower return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerOutletRequest *[]PowerOutletRequest +type ApiDcimPowerPanelsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerPanelRequest *[]PowerPanelRequest } -func (r ApiDcimPowerOutletsBulkUpdateRequest) PowerOutletRequest(powerOutletRequest []PowerOutletRequest) ApiDcimPowerOutletsBulkUpdateRequest { - r.powerOutletRequest = &powerOutletRequest +func (r ApiDcimPowerPanelsBulkUpdateRequest) PowerPanelRequest(powerPanelRequest []PowerPanelRequest) ApiDcimPowerPanelsBulkUpdateRequest { + r.powerPanelRequest = &powerPanelRequest return r } -func (r ApiDcimPowerOutletsBulkUpdateRequest) Execute() ([]PowerOutlet, *http.Response, error) { - return r.ApiService.DcimPowerOutletsBulkUpdateExecute(r) +func (r ApiDcimPowerPanelsBulkUpdateRequest) Execute() ([]PowerPanel, *http.Response, error) { + return r.ApiService.DcimPowerPanelsBulkUpdateExecute(r) } /* -DcimPowerOutletsBulkUpdate Method for DcimPowerOutletsBulkUpdate +DcimPowerPanelsBulkUpdate Method for DcimPowerPanelsBulkUpdate -Put a list of power outlet objects. +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 ApiDcimPowerOutletsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsBulkUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletsBulkUpdate(ctx context.Context) ApiDcimPowerOutletsBulkUpdateRequest { - return ApiDcimPowerOutletsBulkUpdateRequest{ +func (a *DcimAPIService) DcimPowerPanelsBulkUpdate(ctx context.Context) ApiDcimPowerPanelsBulkUpdateRequest { + return ApiDcimPowerPanelsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutlet -func (a *DcimAPIService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutletsBulkUpdateRequest) ([]PowerOutlet, *http.Response, error) { +// @return []PowerPanel +func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBulkUpdateRequest) ([]PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutlet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/" + localVarPath := localBasePath + "/api/dcim/power-panels/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerOutletRequest == nil { - return localVarReturnValue, nil, reportError("powerOutletRequest is required and must be specified") + if r.powerPanelRequest == nil { + return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") } // to determine the Content-Type header @@ -75504,7 +91231,7 @@ func (a *DcimAPIService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutlets localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerOutletRequest + localVarPostBody = r.powerPanelRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -75556,59 +91283,58 @@ func (a *DcimAPIService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutlets return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writablePowerOutletRequest *WritablePowerOutletRequest +type ApiDcimPowerPanelsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + powerPanelRequest *PowerPanelRequest } -func (r ApiDcimPowerOutletsCreateRequest) WritablePowerOutletRequest(writablePowerOutletRequest WritablePowerOutletRequest) ApiDcimPowerOutletsCreateRequest { - r.writablePowerOutletRequest = &writablePowerOutletRequest +func (r ApiDcimPowerPanelsCreateRequest) PowerPanelRequest(powerPanelRequest PowerPanelRequest) ApiDcimPowerPanelsCreateRequest { + r.powerPanelRequest = &powerPanelRequest return r } -func (r ApiDcimPowerOutletsCreateRequest) Execute() (*PowerOutlet, *http.Response, error) { - return r.ApiService.DcimPowerOutletsCreateExecute(r) +func (r ApiDcimPowerPanelsCreateRequest) Execute() (*PowerPanel, *http.Response, error) { + return r.ApiService.DcimPowerPanelsCreateExecute(r) } /* -DcimPowerOutletsCreate Method for DcimPowerOutletsCreate +DcimPowerPanelsCreate Method for DcimPowerPanelsCreate -Post a list of power outlet objects. +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 ApiDcimPowerOutletsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsCreateRequest */ -func (a *DcimAPIService) DcimPowerOutletsCreate(ctx context.Context) ApiDcimPowerOutletsCreateRequest { - return ApiDcimPowerOutletsCreateRequest{ +func (a *DcimAPIService) DcimPowerPanelsCreate(ctx context.Context) ApiDcimPowerPanelsCreateRequest { + return ApiDcimPowerPanelsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerOutlet -func (a *DcimAPIService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCreateRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreateRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/" + localVarPath := localBasePath + "/api/dcim/power-panels/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writablePowerOutletRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerOutletRequest is required and must be specified") + if r.powerPanelRequest == nil { + return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") } // to determine the Content-Type header @@ -75629,7 +91355,7 @@ func (a *DcimAPIService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerOutletRequest + localVarPostBody = r.powerPanelRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -75681,47 +91407,47 @@ func (a *DcimAPIService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCrea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerPanelsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerOutletsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerOutletsDestroyExecute(r) +func (r ApiDcimPowerPanelsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerPanelsDestroyExecute(r) } /* -DcimPowerOutletsDestroy Method for DcimPowerOutletsDestroy +DcimPowerPanelsDestroy Method for DcimPowerPanelsDestroy -Delete a power outlet object. +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 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 panel. + @return ApiDcimPowerPanelsDestroyRequest */ -func (a *DcimAPIService) DcimPowerOutletsDestroy(ctx context.Context, id int32) ApiDcimPowerOutletsDestroyRequest { - return ApiDcimPowerOutletsDestroyRequest{ +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) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDestroyRequest) (*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.DcimPowerOutletsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/" + localVarPath := localBasePath + "/api/dcim/power-panels/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -75787,837 +91513,570 @@ func (a *DcimAPIService) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDes return localVarHTTPResponse, nil } -type ApiDcimPowerOutletsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool +type ApiDcimPowerPanelsListRequest struct { + ctx context.Context + ApiService DcimAPI + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + locationId *[]string + locationIdN *[]string 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 - powerPortId *[]*int32 - powerPortIdN *[]*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 + 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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string } -// * `A` - A * `B` - B -func (r ApiDcimPowerOutletsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerOutletsListRequest { - r.cableEnd = &cableEnd +// Contact +func (r ApiDcimPowerPanelsListRequest) Contact(contact []int32) ApiDcimPowerPanelsListRequest { + r.contact = &contact return r } -// * `A` - A * `B` - B -func (r ApiDcimPowerOutletsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerOutletsListRequest { - r.cableEndN = &cableEndN +// Contact +func (r ApiDcimPowerPanelsListRequest) ContactN(contactN []int32) ApiDcimPowerPanelsListRequest { + r.contactN = &contactN return r } -// Cable (ID) -func (r ApiDcimPowerOutletsListRequest) CableId(cableId []*int32) ApiDcimPowerOutletsListRequest { - r.cableId = &cableId +func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []string) ApiDcimPowerPanelsListRequest { + r.contactGroup = &contactGroup return r } -// Cable (ID) -func (r ApiDcimPowerOutletsListRequest) CableIdN(cableIdN []*int32) ApiDcimPowerOutletsListRequest { - r.cableIdN = &cableIdN +func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []string) ApiDcimPowerPanelsListRequest { + r.contactGroupN = &contactGroupN return r } -func (r ApiDcimPowerOutletsListRequest) Cabled(cabled bool) ApiDcimPowerOutletsListRequest { - r.cabled = &cabled +// Contact Role +func (r ApiDcimPowerPanelsListRequest) ContactRole(contactRole []int32) ApiDcimPowerPanelsListRequest { + r.contactRole = &contactRole return r } -func (r ApiDcimPowerOutletsListRequest) Connected(connected bool) ApiDcimPowerOutletsListRequest { - r.connected = &connected +// Contact Role +func (r ApiDcimPowerPanelsListRequest) ContactRoleN(contactRoleN []int32) ApiDcimPowerPanelsListRequest { + r.contactRoleN = &contactRoleN return r } -func (r ApiDcimPowerOutletsListRequest) Created(created []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Created(created []time.Time) ApiDcimPowerPanelsListRequest { r.created = &created return r } -func (r ApiDcimPowerOutletsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPanelsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimPowerOutletsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPanelsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimPowerOutletsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerPanelsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimPowerOutletsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerPanelsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimPowerOutletsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerPanelsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimPowerOutletsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerPanelsListRequest { r.createdN = &createdN return r } -func (r ApiDcimPowerOutletsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerPanelsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimPowerOutletsListRequest) Description(description []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Description(description []string) ApiDcimPowerPanelsListRequest { r.description = &description return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPanelsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPanelsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPanelsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPanelsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPanelsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPanelsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPanelsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPanelsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPanelsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimPowerOutletsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPanelsListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device (name) -func (r ApiDcimPowerOutletsListRequest) Device(device []*string) ApiDcimPowerOutletsListRequest { - r.device = &device - return r -} - -// Device (name) -func (r ApiDcimPowerOutletsListRequest) DeviceN(deviceN []*string) ApiDcimPowerOutletsListRequest { - r.deviceN = &deviceN - return r -} - -// Device (ID) -func (r ApiDcimPowerOutletsListRequest) DeviceId(deviceId []int32) ApiDcimPowerOutletsListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiDcimPowerOutletsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerOutletsListRequest { - r.deviceIdN = &deviceIdN - return r -} - -// Device type (model) -func (r ApiDcimPowerOutletsListRequest) DeviceType(deviceType []string) ApiDcimPowerOutletsListRequest { - r.deviceType = &deviceType - return r -} - -// Device type (model) -func (r ApiDcimPowerOutletsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimPowerOutletsListRequest { - r.deviceTypeN = &deviceTypeN - return r -} - -// Device type (ID) -func (r ApiDcimPowerOutletsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimPowerOutletsListRequest { - r.deviceTypeId = &deviceTypeId - return r -} - -// Device type (ID) -func (r ApiDcimPowerOutletsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimPowerOutletsListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} - -// Phase (for three-phase feeds) -func (r ApiDcimPowerOutletsListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOutletsListRequest { - r.feedLeg = &feedLeg - return r -} - -// Phase (for three-phase feeds) -func (r ApiDcimPowerOutletsListRequest) FeedLegN(feedLegN []string) ApiDcimPowerOutletsListRequest { - r.feedLegN = &feedLegN - return r -} - -func (r ApiDcimPowerOutletsListRequest) Id(id []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Id(id []int32) ApiDcimPowerPanelsListRequest { r.id = &id return r } -func (r ApiDcimPowerOutletsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPanelsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimPowerOutletsListRequest) IdGt(idGt []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) IdGt(idGt []int32) ApiDcimPowerPanelsListRequest { r.idGt = &idGt return r } -func (r ApiDcimPowerOutletsListRequest) IdGte(idGte []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) IdGte(idGte []int32) ApiDcimPowerPanelsListRequest { r.idGte = &idGte return r } -func (r ApiDcimPowerOutletsListRequest) IdLt(idLt []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) IdLt(idLt []int32) ApiDcimPowerPanelsListRequest { r.idLt = &idLt return r } -func (r ApiDcimPowerOutletsListRequest) IdLte(idLte []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) IdLte(idLte []int32) ApiDcimPowerPanelsListRequest { r.idLte = &idLte return r } -func (r ApiDcimPowerOutletsListRequest) IdN(idN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) IdN(idN []int32) ApiDcimPowerPanelsListRequest { r.idN = &idN return r } -func (r ApiDcimPowerOutletsListRequest) Label(label []string) ApiDcimPowerOutletsListRequest { - r.label = &label - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerOutletsListRequest { - r.labelEmpty = &labelEmpty - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelIc(labelIc []string) ApiDcimPowerOutletsListRequest { - r.labelIc = &labelIc - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelIe(labelIe []string) ApiDcimPowerOutletsListRequest { - r.labelIe = &labelIe - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelIew(labelIew []string) ApiDcimPowerOutletsListRequest { - r.labelIew = &labelIew - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelIsw(labelIsw []string) ApiDcimPowerOutletsListRequest { - r.labelIsw = &labelIsw - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelN(labelN []string) ApiDcimPowerOutletsListRequest { - r.labelN = &labelN - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelNic(labelNic []string) ApiDcimPowerOutletsListRequest { - r.labelNic = &labelNic - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelNie(labelNie []string) ApiDcimPowerOutletsListRequest { - r.labelNie = &labelNie - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelNiew(labelNiew []string) ApiDcimPowerOutletsListRequest { - r.labelNiew = &labelNiew - return r -} - -func (r ApiDcimPowerOutletsListRequest) LabelNisw(labelNisw []string) ApiDcimPowerOutletsListRequest { - r.labelNisw = &labelNisw - return r -} - -func (r ApiDcimPowerOutletsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimPowerOutletsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimPowerOutletsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimPowerOutletsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimPowerOutletsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimPowerOutletsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimPowerOutletsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimPowerOutletsListRequest) Limit(limit int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Limit(limit int32) ApiDcimPowerPanelsListRequest { r.limit = &limit return r } -// Location (slug) -func (r ApiDcimPowerOutletsListRequest) Location(location []string) ApiDcimPowerOutletsListRequest { - r.location = &location - return r -} - -// Location (slug) -func (r ApiDcimPowerOutletsListRequest) LocationN(locationN []string) ApiDcimPowerOutletsListRequest { - r.locationN = &locationN - return r -} - -// Location (ID) -func (r ApiDcimPowerOutletsListRequest) LocationId(locationId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []string) ApiDcimPowerPanelsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimPowerOutletsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []string) ApiDcimPowerPanelsListRequest { r.locationIdN = &locationIdN return r } -func (r ApiDcimPowerOutletsListRequest) MarkConnected(markConnected bool) ApiDcimPowerOutletsListRequest { - r.markConnected = &markConnected - return r -} - -func (r ApiDcimPowerOutletsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPanelsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// Module (ID) -func (r ApiDcimPowerOutletsListRequest) ModuleId(moduleId []*int32) ApiDcimPowerOutletsListRequest { - r.moduleId = &moduleId - return r -} - -// Module (ID) -func (r ApiDcimPowerOutletsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimPowerOutletsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiDcimPowerOutletsListRequest) Name(name []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Name(name []string) ApiDcimPowerPanelsListRequest { r.name = &name return r } -func (r ApiDcimPowerOutletsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerPanelsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimPowerOutletsListRequest) NameIc(nameIc []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameIc(nameIc []string) ApiDcimPowerPanelsListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimPowerOutletsListRequest) NameIe(nameIe []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameIe(nameIe []string) ApiDcimPowerPanelsListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimPowerOutletsListRequest) NameIew(nameIew []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameIew(nameIew []string) ApiDcimPowerPanelsListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimPowerOutletsListRequest) NameIsw(nameIsw []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameIsw(nameIsw []string) ApiDcimPowerPanelsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimPowerOutletsListRequest) NameN(nameN []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameN(nameN []string) ApiDcimPowerPanelsListRequest { r.nameN = &nameN return r } -func (r ApiDcimPowerOutletsListRequest) NameNic(nameNic []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameNic(nameNic []string) ApiDcimPowerPanelsListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimPowerOutletsListRequest) NameNie(nameNie []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameNie(nameNie []string) ApiDcimPowerPanelsListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimPowerOutletsListRequest) NameNiew(nameNiew []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameNiew(nameNiew []string) ApiDcimPowerPanelsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimPowerOutletsListRequest) NameNisw(nameNisw []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) NameNisw(nameNisw []string) ApiDcimPowerPanelsListRequest { r.nameNisw = &nameNisw return r } -func (r ApiDcimPowerOutletsListRequest) Occupied(occupied bool) ApiDcimPowerOutletsListRequest { - r.occupied = &occupied - return r -} - // The initial index from which to return the results. -func (r ApiDcimPowerOutletsListRequest) Offset(offset int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Offset(offset int32) ApiDcimPowerPanelsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimPowerOutletsListRequest) Ordering(ordering string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Ordering(ordering string) ApiDcimPowerPanelsListRequest { r.ordering = &ordering return r } -// Power port (ID) -func (r ApiDcimPowerOutletsListRequest) PowerPortId(powerPortId []*int32) ApiDcimPowerOutletsListRequest { - r.powerPortId = &powerPortId - return r -} - -// Power port (ID) -func (r ApiDcimPowerOutletsListRequest) PowerPortIdN(powerPortIdN []*int32) ApiDcimPowerOutletsListRequest { - r.powerPortIdN = &powerPortIdN - return r -} - // Search -func (r ApiDcimPowerOutletsListRequest) Q(q string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Q(q string) ApiDcimPowerPanelsListRequest { r.q = &q return r } -// Rack (name) -func (r ApiDcimPowerOutletsListRequest) Rack(rack []string) ApiDcimPowerOutletsListRequest { - r.rack = &rack - return r -} - -// Rack (name) -func (r ApiDcimPowerOutletsListRequest) RackN(rackN []string) ApiDcimPowerOutletsListRequest { - r.rackN = &rackN - return r -} - -// Rack (ID) -func (r ApiDcimPowerOutletsListRequest) RackId(rackId []int32) ApiDcimPowerOutletsListRequest { - r.rackId = &rackId - return r -} - -// Rack (ID) -func (r ApiDcimPowerOutletsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerOutletsListRequest { - r.rackIdN = &rackIdN - return r -} - -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) Region(region []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Region(region []string) ApiDcimPowerPanelsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []string) ApiDcimPowerPanelsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []int32) ApiDcimPowerOutletsListRequest { - r.regionId = ®ionId - return r -} - -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerOutletsListRequest { - r.regionIdN = ®ionIdN - 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 +func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []string) ApiDcimPowerPanelsListRequest { + r.regionId = ®ionId return r } -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerOutletsListRequest { - r.roleIdN = &roleIdN +func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPanelsListRequest { + r.regionIdN = ®ionIdN return r } // Site name (slug) -func (r ApiDcimPowerOutletsListRequest) Site(site []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Site(site []string) ApiDcimPowerPanelsListRequest { r.site = &site return r } // Site name (slug) -func (r ApiDcimPowerOutletsListRequest) SiteN(siteN []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteN(siteN []string) ApiDcimPowerPanelsListRequest { r.siteN = &siteN return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPanelsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPanelsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPanelsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPanelsListRequest { r.siteGroupIdN = &siteGroupIdN return r } // Site (ID) -func (r ApiDcimPowerOutletsListRequest) SiteId(siteId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteId(siteId []int32) ApiDcimPowerPanelsListRequest { r.siteId = &siteId return r } // Site (ID) -func (r ApiDcimPowerOutletsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerPanelsListRequest { r.siteIdN = &siteIdN return r } -func (r ApiDcimPowerOutletsListRequest) Tag(tag []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) Tag(tag []string) ApiDcimPowerPanelsListRequest { r.tag = &tag return r } -func (r ApiDcimPowerOutletsListRequest) TagN(tagN []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) TagN(tagN []string) ApiDcimPowerPanelsListRequest { r.tagN = &tagN return r } -// Physical port type -func (r ApiDcimPowerOutletsListRequest) Type_(type_ []string) ApiDcimPowerOutletsListRequest { - r.type_ = &type_ - return r -} - -// Physical port type -func (r ApiDcimPowerOutletsListRequest) TypeN(typeN []string) ApiDcimPowerOutletsListRequest { - r.typeN = &typeN - return r -} - -func (r ApiDcimPowerOutletsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerPanelsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPanelsListRequest { r.updatedByRequest = &updatedByRequest return r } -// Virtual Chassis -func (r ApiDcimPowerOutletsListRequest) VirtualChassis(virtualChassis []string) ApiDcimPowerOutletsListRequest { - r.virtualChassis = &virtualChassis - return r -} - -// Virtual Chassis -func (r ApiDcimPowerOutletsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimPowerOutletsListRequest { - r.virtualChassisN = &virtualChassisN - return r -} - -// Virtual Chassis (ID) -func (r ApiDcimPowerOutletsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimPowerOutletsListRequest { - r.virtualChassisId = &virtualChassisId - return r -} - -// Virtual Chassis (ID) -func (r ApiDcimPowerOutletsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimPowerOutletsListRequest { - r.virtualChassisIdN = &virtualChassisIdN - return r -} - -func (r ApiDcimPowerOutletsListRequest) Execute() (*PaginatedPowerOutletList, *http.Response, error) { - return r.ApiService.DcimPowerOutletsListExecute(r) +func (r ApiDcimPowerPanelsListRequest) Execute() (*PaginatedPowerPanelList, *http.Response, error) { + return r.ApiService.DcimPowerPanelsListExecute(r) } /* -DcimPowerOutletsList Method for DcimPowerOutletsList +DcimPowerPanelsList Method for DcimPowerPanelsList -Get a list of power outlet objects. +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 ApiDcimPowerOutletsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsListRequest */ -func (a *DcimAPIService) DcimPowerOutletsList(ctx context.Context) ApiDcimPowerOutletsListRequest { - return ApiDcimPowerOutletsListRequest{ +func (a *DcimAPIService) DcimPowerPanelsList(ctx context.Context) ApiDcimPowerPanelsListRequest { + return ApiDcimPowerPanelsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerOutletList -func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRequest) (*PaginatedPowerOutletList, *http.Response, error) { +// @return PaginatedPowerPanelList +func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequest) (*PaginatedPowerPanelList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerOutletList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerPanelList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/" + localVarPath := localBasePath + "/api/dcim/power-panels/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") + } } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") + if r.contactN != nil { + t := *r.contactN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") + } } - if r.cableId != nil { - t := *r.cableId + if r.contactGroup != nil { + t := *r.contactGroup if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } - if r.cableIdN != nil { - t := *r.cableIdN + if r.contactGroupN != nil { + t := *r.contactGroupN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") + if r.contactRole != nil { + t := *r.contactRole + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") + } } - if r.connected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "") + if r.contactRoleN != nil { + t := *r.contactRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -76625,10 +92084,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -76636,10 +92095,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -76647,10 +92106,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -76658,10 +92117,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -76669,10 +92128,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -76680,38 +92139,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -76719,10 +92178,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -76730,10 +92189,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -76741,10 +92200,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -76752,10 +92211,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -76763,10 +92222,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -76774,10 +92233,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -76785,10 +92244,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -76796,120 +92255,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } - } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__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.feedLeg != nil { - t := *r.feedLeg - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "multi") - } - } - if r.feedLegN != nil { - t := *r.feedLegN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -76917,24 +92266,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -76942,10 +92291,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -76953,10 +92302,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -76964,10 +92313,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -76975,123 +92324,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.label != nil { - t := *r.label - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") - } - } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") - } - } - if r.labelIe != nil { - t := *r.labelIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") - } - } - if r.labelIew != nil { - t := *r.labelIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") - } - } - if r.labelIsw != nil { - t := *r.labelIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") - } - } - if r.labelN != nil { - t := *r.labelN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") - } - } - if r.labelNic != nil { - t := *r.labelNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") - } - } - if r.labelNie != nil { - t := *r.labelNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") - } - } - if r.labelNiew != nil { - t := *r.labelNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") - } - } - if r.labelNisw != nil { - t := *r.labelNisw - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -77099,10 +92335,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -77110,10 +92346,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -77121,10 +92357,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -77132,10 +92368,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -77143,10 +92379,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -77154,10 +92390,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -77165,46 +92401,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } if r.locationIdN != nil { @@ -77212,63 +92426,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") - } 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") - } - } - if r.moduleIdN != nil { - t := *r.moduleIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -77276,10 +92465,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -77287,10 +92476,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -77298,10 +92487,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -77309,10 +92498,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -77320,10 +92509,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -77331,10 +92520,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -77342,10 +92531,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -77353,99 +92542,30 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") - } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.powerPortId != nil { - t := *r.powerPortId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id", t, "multi") - } - } - if r.powerPortIdN != nil { - t := *r.powerPortIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_port_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rack != nil { - t := *r.rack - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") - } - } - if r.rackN != nil { - t := *r.rackN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") - } - } - if r.rackId != nil { - t := *r.rackId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") - } - } - if r.rackIdN != nil { - t := *r.rackIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -77453,10 +92573,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -77464,10 +92584,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -77475,54 +92595,10 @@ 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).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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } if r.site != nil { @@ -77530,10 +92606,10 @@ 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteN != nil { @@ -77541,10 +92617,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } if r.siteGroup != nil { @@ -77552,10 +92628,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } if r.siteGroupN != nil { @@ -77563,10 +92639,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } if r.siteGroupId != nil { @@ -77574,10 +92650,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } if r.siteGroupIdN != nil { @@ -77585,10 +92661,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } if r.siteId != nil { @@ -77596,10 +92672,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.siteIdN != nil { @@ -77607,10 +92683,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.tag != nil { @@ -77618,10 +92694,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -77629,80 +92705,14 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") - } - } - if r.typeN != nil { - t := *r.typeN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualChassis != nil { - t := *r.virtualChassis - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") - } - } - if r.virtualChassisN != nil { - t := *r.virtualChassisN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") - } - } - if r.virtualChassisId != nil { - t := *r.virtualChassisId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") - } - } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -77772,56 +92782,55 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritablePowerOutletRequest *PatchedWritablePowerOutletRequest +type ApiDcimPowerPanelsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedPowerPanelRequest *PatchedPowerPanelRequest } -func (r ApiDcimPowerOutletsPartialUpdateRequest) PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest PatchedWritablePowerOutletRequest) ApiDcimPowerOutletsPartialUpdateRequest { - r.patchedWritablePowerOutletRequest = &patchedWritablePowerOutletRequest +func (r ApiDcimPowerPanelsPartialUpdateRequest) PatchedPowerPanelRequest(patchedPowerPanelRequest PatchedPowerPanelRequest) ApiDcimPowerPanelsPartialUpdateRequest { + r.patchedPowerPanelRequest = &patchedPowerPanelRequest return r } -func (r ApiDcimPowerOutletsPartialUpdateRequest) Execute() (*PowerOutlet, *http.Response, error) { - return r.ApiService.DcimPowerOutletsPartialUpdateExecute(r) +func (r ApiDcimPowerPanelsPartialUpdateRequest) Execute() (*PowerPanel, *http.Response, error) { + return r.ApiService.DcimPowerPanelsPartialUpdateExecute(r) } /* -DcimPowerOutletsPartialUpdate Method for DcimPowerOutletsPartialUpdate +DcimPowerPanelsPartialUpdate Method for DcimPowerPanelsPartialUpdate -Patch a power outlet object. +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 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 panel. + @return ApiDcimPowerPanelsPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsPartialUpdateRequest { - return ApiDcimPowerOutletsPartialUpdateRequest{ +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 PowerOutlet -func (a *DcimAPIService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutletsPartialUpdateRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanelsPartialUpdateRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/" + localVarPath := localBasePath + "/api/dcim/power-panels/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -77846,125 +92855,7 @@ func (a *DcimAPIService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritablePowerOutletRequest - 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 ApiDcimPowerOutletsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimPowerOutletsRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) { - return r.ApiService.DcimPowerOutletsRetrieveExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimPowerOutletsRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsRetrieveRequest { - return ApiDcimPowerOutletsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return PowerOutlet -func (a *DcimAPIService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRetrieveRequest) (*PowerOutlet, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/power-outlets/{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 - } + localVarPostBody = r.patchedPowerPanelRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -78016,50 +92907,49 @@ func (a *DcimAPIService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerPanelsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerOutletsTraceRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) { - return r.ApiService.DcimPowerOutletsTraceRetrieveExecute(r) +func (r ApiDcimPowerPanelsRetrieveRequest) Execute() (*PowerPanel, *http.Response, error) { + return r.ApiService.DcimPowerPanelsRetrieveExecute(r) } /* -DcimPowerOutletsTraceRetrieve Method for DcimPowerOutletsTraceRetrieve +DcimPowerPanelsRetrieve Method for DcimPowerPanelsRetrieve -Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). +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 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 panel. + @return ApiDcimPowerPanelsRetrieveRequest */ -func (a *DcimAPIService) DcimPowerOutletsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsTraceRetrieveRequest { - return ApiDcimPowerOutletsTraceRetrieveRequest{ +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 PowerOutlet -func (a *DcimAPIService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutletsTraceRetrieveRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetrieveRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/trace/" + localVarPath := localBasePath + "/api/dcim/power-panels/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -78134,63 +93024,62 @@ func (a *DcimAPIService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutl return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerOutletsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writablePowerOutletRequest *WritablePowerOutletRequest +type ApiDcimPowerPanelsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + powerPanelRequest *PowerPanelRequest } -func (r ApiDcimPowerOutletsUpdateRequest) WritablePowerOutletRequest(writablePowerOutletRequest WritablePowerOutletRequest) ApiDcimPowerOutletsUpdateRequest { - r.writablePowerOutletRequest = &writablePowerOutletRequest +func (r ApiDcimPowerPanelsUpdateRequest) PowerPanelRequest(powerPanelRequest PowerPanelRequest) ApiDcimPowerPanelsUpdateRequest { + r.powerPanelRequest = &powerPanelRequest return r } -func (r ApiDcimPowerOutletsUpdateRequest) Execute() (*PowerOutlet, *http.Response, error) { - return r.ApiService.DcimPowerOutletsUpdateExecute(r) +func (r ApiDcimPowerPanelsUpdateRequest) Execute() (*PowerPanel, *http.Response, error) { + return r.ApiService.DcimPowerPanelsUpdateExecute(r) } /* -DcimPowerOutletsUpdate Method for DcimPowerOutletsUpdate +DcimPowerPanelsUpdate Method for DcimPowerPanelsUpdate -Put a power outlet object. +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 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 panel. + @return ApiDcimPowerPanelsUpdateRequest */ -func (a *DcimAPIService) DcimPowerOutletsUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsUpdateRequest { - return ApiDcimPowerOutletsUpdateRequest{ +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 PowerOutlet -func (a *DcimAPIService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpdateRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdateRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-outlets/{id}/" + localVarPath := localBasePath + "/api/dcim/power-panels/{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.writablePowerOutletRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerOutletRequest is required and must be specified") + if r.powerPanelRequest == nil { + return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") } // to determine the Content-Type header @@ -78211,7 +93100,7 @@ func (a *DcimAPIService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerOutletRequest + localVarPostBody = r.powerPanelRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -78263,56 +93152,56 @@ func (a *DcimAPIService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPanelsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPanelRequest *[]PowerPanelRequest +type ApiDcimPowerPortTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + powerPortTemplateRequest *[]PowerPortTemplateRequest } -func (r ApiDcimPowerPanelsBulkDestroyRequest) PowerPanelRequest(powerPanelRequest []PowerPanelRequest) ApiDcimPowerPanelsBulkDestroyRequest { - r.powerPanelRequest = &powerPanelRequest +func (r ApiDcimPowerPortTemplatesBulkDestroyRequest) PowerPortTemplateRequest(powerPortTemplateRequest []PowerPortTemplateRequest) ApiDcimPowerPortTemplatesBulkDestroyRequest { + r.powerPortTemplateRequest = &powerPortTemplateRequest return r } -func (r ApiDcimPowerPanelsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerPanelsBulkDestroyExecute(r) +func (r ApiDcimPowerPortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesBulkDestroyExecute(r) } /* -DcimPowerPanelsBulkDestroy Method for DcimPowerPanelsBulkDestroy +DcimPowerPortTemplatesBulkDestroy Method for DcimPowerPortTemplatesBulkDestroy -Delete a list of power panel objects. +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 ApiDcimPowerPanelsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesBulkDestroyRequest */ -func (a *DcimAPIService) DcimPowerPanelsBulkDestroy(ctx context.Context) ApiDcimPowerPanelsBulkDestroyRequest { - return ApiDcimPowerPanelsBulkDestroyRequest{ +func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerPortTemplatesBulkDestroyRequest { + return ApiDcimPowerPortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsBulkDestroyRequest) (*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.DcimPowerPanelsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPanelRequest == nil { - return nil, reportError("powerPanelRequest is required and must be specified") + if r.powerPortTemplateRequest == nil { + return nil, reportError("powerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -78333,7 +93222,7 @@ func (a *DcimAPIService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPanelRequest + localVarPostBody = r.powerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -78376,59 +93265,58 @@ func (a *DcimAPIService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsB return localVarHTTPResponse, nil } -type ApiDcimPowerPanelsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPanelRequest *[]PowerPanelRequest +type ApiDcimPowerPortTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerPortTemplateRequest *[]PowerPortTemplateRequest } -func (r ApiDcimPowerPanelsBulkPartialUpdateRequest) PowerPanelRequest(powerPanelRequest []PowerPanelRequest) ApiDcimPowerPanelsBulkPartialUpdateRequest { - r.powerPanelRequest = &powerPanelRequest +func (r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) PowerPortTemplateRequest(powerPortTemplateRequest []PowerPortTemplateRequest) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest { + r.powerPortTemplateRequest = &powerPortTemplateRequest return r } -func (r ApiDcimPowerPanelsBulkPartialUpdateRequest) Execute() ([]PowerPanel, *http.Response, error) { - return r.ApiService.DcimPowerPanelsBulkPartialUpdateExecute(r) +func (r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) Execute() ([]PowerPortTemplate, *http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesBulkPartialUpdateExecute(r) } /* -DcimPowerPanelsBulkPartialUpdate Method for DcimPowerPanelsBulkPartialUpdate +DcimPowerPortTemplatesBulkPartialUpdate Method for DcimPowerPortTemplatesBulkPartialUpdate -Patch a list of power panel objects. +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 ApiDcimPowerPanelsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPanelsBulkPartialUpdateRequest { - return ApiDcimPowerPanelsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest { + return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPanel -func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerPanelsBulkPartialUpdateRequest) ([]PowerPanel, *http.Response, error) { +// @return []PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPanel + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPanelRequest == nil { - return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") + if r.powerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("powerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -78449,7 +93337,7 @@ func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPanelRequest + localVarPostBody = r.powerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -78501,59 +93389,58 @@ func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPanelsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPanelRequest *[]PowerPanelRequest +type ApiDcimPowerPortTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerPortTemplateRequest *[]PowerPortTemplateRequest } -func (r ApiDcimPowerPanelsBulkUpdateRequest) PowerPanelRequest(powerPanelRequest []PowerPanelRequest) ApiDcimPowerPanelsBulkUpdateRequest { - r.powerPanelRequest = &powerPanelRequest +func (r ApiDcimPowerPortTemplatesBulkUpdateRequest) PowerPortTemplateRequest(powerPortTemplateRequest []PowerPortTemplateRequest) ApiDcimPowerPortTemplatesBulkUpdateRequest { + r.powerPortTemplateRequest = &powerPortTemplateRequest return r } -func (r ApiDcimPowerPanelsBulkUpdateRequest) Execute() ([]PowerPanel, *http.Response, error) { - return r.ApiService.DcimPowerPanelsBulkUpdateExecute(r) +func (r ApiDcimPowerPortTemplatesBulkUpdateRequest) Execute() ([]PowerPortTemplate, *http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesBulkUpdateExecute(r) } /* -DcimPowerPanelsBulkUpdate Method for DcimPowerPanelsBulkUpdate +DcimPowerPortTemplatesBulkUpdate Method for DcimPowerPortTemplatesBulkUpdate -Put a list of power panel objects. +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 ApiDcimPowerPanelsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesBulkUpdateRequest */ -func (a *DcimAPIService) DcimPowerPanelsBulkUpdate(ctx context.Context) ApiDcimPowerPanelsBulkUpdateRequest { - return ApiDcimPowerPanelsBulkUpdateRequest{ +func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkUpdateRequest { + return ApiDcimPowerPortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPanel -func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBulkUpdateRequest) ([]PowerPanel, *http.Response, error) { +// @return []PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerPortTemplatesBulkUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPanel + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPanelRequest == nil { - return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") + if r.powerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("powerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -78574,7 +93461,7 @@ func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPanelRequest + localVarPostBody = r.powerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -78626,59 +93513,58 @@ func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPanelsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPanelRequest *PowerPanelRequest +type ApiDcimPowerPortTemplatesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest } -func (r ApiDcimPowerPanelsCreateRequest) PowerPanelRequest(powerPanelRequest PowerPanelRequest) ApiDcimPowerPanelsCreateRequest { - r.powerPanelRequest = &powerPanelRequest +func (r ApiDcimPowerPortTemplatesCreateRequest) WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest WritablePowerPortTemplateRequest) ApiDcimPowerPortTemplatesCreateRequest { + r.writablePowerPortTemplateRequest = &writablePowerPortTemplateRequest return r } -func (r ApiDcimPowerPanelsCreateRequest) Execute() (*PowerPanel, *http.Response, error) { - return r.ApiService.DcimPowerPanelsCreateExecute(r) +func (r ApiDcimPowerPortTemplatesCreateRequest) Execute() (*PowerPortTemplate, *http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesCreateExecute(r) } /* -DcimPowerPanelsCreate Method for DcimPowerPanelsCreate +DcimPowerPortTemplatesCreate Method for DcimPowerPortTemplatesCreate -Post a list of power panel objects. +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 ApiDcimPowerPanelsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesCreateRequest */ -func (a *DcimAPIService) DcimPowerPanelsCreate(ctx context.Context) ApiDcimPowerPanelsCreateRequest { - return ApiDcimPowerPanelsCreateRequest{ +func (a *DcimAPIService) DcimPowerPortTemplatesCreate(ctx context.Context) ApiDcimPowerPortTemplatesCreateRequest { + return ApiDcimPowerPortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerPanel -func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreateRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortTemplatesCreateRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPanelRequest == nil { - return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") + if r.writablePowerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -78699,7 +93585,7 @@ func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPanelRequest + localVarPostBody = r.writablePowerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -78751,47 +93637,47 @@ func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPanelsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerPortTemplatesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerPanelsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerPanelsDestroyExecute(r) +func (r ApiDcimPowerPortTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesDestroyExecute(r) } /* -DcimPowerPanelsDestroy Method for DcimPowerPanelsDestroy +DcimPowerPortTemplatesDestroy Method for DcimPowerPortTemplatesDestroy -Delete a power panel object. +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 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 port template. + @return ApiDcimPowerPortTemplatesDestroyRequest */ -func (a *DcimAPIService) DcimPowerPanelsDestroy(ctx context.Context, id int32) ApiDcimPowerPanelsDestroyRequest { - return ApiDcimPowerPanelsDestroyRequest{ +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) DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestroyRequest) (*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.DcimPowerPanelsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/{id}/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -78857,572 +93743,607 @@ func (a *DcimAPIService) DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestr return localVarHTTPResponse, nil } -type ApiDcimPowerPanelsListRequest struct { - 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 - 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 - locationId *[]int32 - locationIdN *[]int32 +type ApiDcimPowerPortTemplatesListRequest struct { + ctx context.Context + ApiService DcimAPI + allocatedDraw *[]int32 + allocatedDrawEmpty *bool + allocatedDrawGt *[]int32 + allocatedDrawGte *[]int32 + allocatedDrawLt *[]int32 + allocatedDrawLte *[]int32 + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]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 + maximumDraw *[]int32 + maximumDrawEmpty *bool + maximumDrawGt *[]int32 + maximumDrawGte *[]int32 + maximumDrawLt *[]int32 + maximumDrawLte *[]int32 + maximumDrawN *[]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 + 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_ *DcimPowerPortTemplatesListTypeParameter + updatedByRequest *string } -// Contact -func (r ApiDcimPowerPanelsListRequest) Contact(contact []int32) ApiDcimPowerPanelsListRequest { - r.contact = &contact +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDraw(allocatedDraw []int32) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDraw = &allocatedDraw return r } -// Contact -func (r ApiDcimPowerPanelsListRequest) ContactN(contactN []int32) ApiDcimPowerPanelsListRequest { - r.contactN = &contactN +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawEmpty(allocatedDrawEmpty bool) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDrawEmpty = &allocatedDrawEmpty return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []int32) ApiDcimPowerPanelsListRequest { - r.contactGroup = &contactGroup +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawGt(allocatedDrawGt []int32) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDrawGt = &allocatedDrawGt return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimPowerPanelsListRequest { - r.contactGroupN = &contactGroupN +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawGte(allocatedDrawGte []int32) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDrawGte = &allocatedDrawGte return r } -// Contact Role -func (r ApiDcimPowerPanelsListRequest) ContactRole(contactRole []int32) ApiDcimPowerPanelsListRequest { - r.contactRole = &contactRole +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawLt(allocatedDrawLt []int32) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDrawLt = &allocatedDrawLt return r } -// Contact Role -func (r ApiDcimPowerPanelsListRequest) ContactRoleN(contactRoleN []int32) ApiDcimPowerPanelsListRequest { - r.contactRoleN = &contactRoleN +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawLte(allocatedDrawLte []int32) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDrawLte = &allocatedDrawLte return r } -func (r ApiDcimPowerPanelsListRequest) Created(created []time.Time) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawN(allocatedDrawN []int32) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDrawN = &allocatedDrawN + return r +} + +func (r ApiDcimPowerPortTemplatesListRequest) Created(created []time.Time) ApiDcimPowerPortTemplatesListRequest { r.created = &created return r } -func (r ApiDcimPowerPanelsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPortTemplatesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimPowerPanelsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPortTemplatesListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimPowerPanelsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerPortTemplatesListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimPowerPanelsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerPortTemplatesListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimPowerPanelsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerPortTemplatesListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimPowerPanelsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimPowerPortTemplatesListRequest { r.createdN = &createdN return r } -func (r ApiDcimPowerPanelsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerPortTemplatesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimPowerPanelsListRequest) Description(description []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) Description(description []string) ApiDcimPowerPortTemplatesListRequest { r.description = &description return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPortTemplatesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimPowerPanelsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPortTemplatesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimPowerPanelsListRequest) Id(id []int32) ApiDcimPowerPanelsListRequest { +// Device type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimPowerPortTemplatesListRequest { + r.deviceTypeId = &deviceTypeId + return r +} + +// Device type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r +} + +func (r ApiDcimPowerPortTemplatesListRequest) Id(id []int32) ApiDcimPowerPortTemplatesListRequest { r.id = &id return r } -func (r ApiDcimPowerPanelsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPortTemplatesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimPowerPanelsListRequest) IdGt(idGt []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimPowerPortTemplatesListRequest { r.idGt = &idGt return r } -func (r ApiDcimPowerPanelsListRequest) IdGte(idGte []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) IdGte(idGte []int32) ApiDcimPowerPortTemplatesListRequest { r.idGte = &idGte return r } -func (r ApiDcimPowerPanelsListRequest) IdLt(idLt []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) IdLt(idLt []int32) ApiDcimPowerPortTemplatesListRequest { r.idLt = &idLt return r } -func (r ApiDcimPowerPanelsListRequest) IdLte(idLte []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) IdLte(idLte []int32) ApiDcimPowerPortTemplatesListRequest { r.idLte = &idLte return r } -func (r ApiDcimPowerPanelsListRequest) IdN(idN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) IdN(idN []int32) ApiDcimPowerPortTemplatesListRequest { r.idN = &idN return r } -func (r ApiDcimPowerPanelsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerPanelsListRequest { - r.lastUpdated = &lastUpdated +func (r ApiDcimPowerPortTemplatesListRequest) Label(label []string) ApiDcimPowerPortTemplatesListRequest { + r.label = &label return r } -func (r ApiDcimPowerPanelsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPanelsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiDcimPowerPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerPortTemplatesListRequest { + r.labelEmpty = &labelEmpty return r } -func (r ApiDcimPowerPanelsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPanelsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimPowerPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimPowerPortTemplatesListRequest { + r.labelIc = &labelIc return r } -func (r ApiDcimPowerPanelsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerPanelsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimPowerPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimPowerPortTemplatesListRequest { + r.labelIe = &labelIe return r } -func (r ApiDcimPowerPanelsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerPanelsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimPowerPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimPowerPortTemplatesListRequest { + r.labelIew = &labelIew return r } -func (r ApiDcimPowerPanelsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerPanelsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimPowerPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimPowerPortTemplatesListRequest { + r.labelIsw = &labelIsw return r } -func (r ApiDcimPowerPanelsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerPanelsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiDcimPowerPortTemplatesListRequest) LabelN(labelN []string) ApiDcimPowerPortTemplatesListRequest { + r.labelN = &labelN return r } -// Number of results to return per page. -func (r ApiDcimPowerPanelsListRequest) Limit(limit int32) ApiDcimPowerPanelsListRequest { - r.limit = &limit +func (r ApiDcimPowerPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimPowerPortTemplatesListRequest { + r.labelNic = &labelNic return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []int32) ApiDcimPowerPanelsListRequest { - r.locationId = &locationId +func (r ApiDcimPowerPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimPowerPortTemplatesListRequest { + r.labelNie = &labelNie return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerPanelsListRequest { - r.locationIdN = &locationIdN +func (r ApiDcimPowerPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimPowerPortTemplatesListRequest { + r.labelNiew = &labelNiew return r } -func (r ApiDcimPowerPanelsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPanelsListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiDcimPowerPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimPowerPortTemplatesListRequest { + r.labelNisw = &labelNisw return r } -func (r ApiDcimPowerPanelsListRequest) Name(name []string) ApiDcimPowerPanelsListRequest { - r.name = &name +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiDcimPowerPanelsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerPanelsListRequest { - r.nameEmpty = &nameEmpty +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimPowerPanelsListRequest) NameIc(nameIc []string) ApiDcimPowerPanelsListRequest { - r.nameIc = &nameIc +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimPowerPanelsListRequest) NameIe(nameIe []string) ApiDcimPowerPanelsListRequest { - r.nameIe = &nameIe +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimPowerPanelsListRequest) NameIew(nameIew []string) ApiDcimPowerPanelsListRequest { - r.nameIew = &nameIew +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimPowerPanelsListRequest) NameIsw(nameIsw []string) ApiDcimPowerPanelsListRequest { - r.nameIsw = &nameIsw +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimPowerPanelsListRequest) NameN(nameN []string) ApiDcimPowerPanelsListRequest { - r.nameN = &nameN +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiDcimPowerPanelsListRequest) NameNic(nameNic []string) ApiDcimPowerPanelsListRequest { - r.nameNic = &nameNic +// Number of results to return per page. +func (r ApiDcimPowerPortTemplatesListRequest) Limit(limit int32) ApiDcimPowerPortTemplatesListRequest { + r.limit = &limit return r } -func (r ApiDcimPowerPanelsListRequest) NameNie(nameNie []string) ApiDcimPowerPanelsListRequest { - r.nameNie = &nameNie +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDraw(maximumDraw []int32) ApiDcimPowerPortTemplatesListRequest { + r.maximumDraw = &maximumDraw return r } -func (r ApiDcimPowerPanelsListRequest) NameNiew(nameNiew []string) ApiDcimPowerPanelsListRequest { - r.nameNiew = &nameNiew +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawEmpty(maximumDrawEmpty bool) ApiDcimPowerPortTemplatesListRequest { + r.maximumDrawEmpty = &maximumDrawEmpty return r } -func (r ApiDcimPowerPanelsListRequest) NameNisw(nameNisw []string) ApiDcimPowerPanelsListRequest { - r.nameNisw = &nameNisw +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawGt(maximumDrawGt []int32) ApiDcimPowerPortTemplatesListRequest { + r.maximumDrawGt = &maximumDrawGt return r } -// The initial index from which to return the results. -func (r ApiDcimPowerPanelsListRequest) Offset(offset int32) ApiDcimPowerPanelsListRequest { - r.offset = &offset +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawGte(maximumDrawGte []int32) ApiDcimPowerPortTemplatesListRequest { + r.maximumDrawGte = &maximumDrawGte return r } -// Which field to use when ordering the results. -func (r ApiDcimPowerPanelsListRequest) Ordering(ordering string) ApiDcimPowerPanelsListRequest { - r.ordering = &ordering +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawLt(maximumDrawLt []int32) ApiDcimPowerPortTemplatesListRequest { + r.maximumDrawLt = &maximumDrawLt return r } -// Search -func (r ApiDcimPowerPanelsListRequest) Q(q string) ApiDcimPowerPanelsListRequest { - r.q = &q +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawLte(maximumDrawLte []int32) ApiDcimPowerPortTemplatesListRequest { + r.maximumDrawLte = &maximumDrawLte return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) Region(region []int32) ApiDcimPowerPanelsListRequest { - r.region = ®ion +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawN(maximumDrawN []int32) ApiDcimPowerPortTemplatesListRequest { + r.maximumDrawN = &maximumDrawN return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []int32) ApiDcimPowerPanelsListRequest { - r.regionN = ®ionN +func (r ApiDcimPowerPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []int32) ApiDcimPowerPanelsListRequest { - r.regionId = ®ionId +// Module type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimPowerPortTemplatesListRequest { + r.moduleTypeId = &moduleTypeId return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPanelsListRequest { - r.regionIdN = ®ionIdN +// Module type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN return r } -// Site name (slug) -func (r ApiDcimPowerPanelsListRequest) Site(site []string) ApiDcimPowerPanelsListRequest { - r.site = &site +func (r ApiDcimPowerPortTemplatesListRequest) Name(name []string) ApiDcimPowerPortTemplatesListRequest { + r.name = &name return r } -// Site name (slug) -func (r ApiDcimPowerPanelsListRequest) SiteN(siteN []string) ApiDcimPowerPanelsListRequest { - r.siteN = &siteN +func (r ApiDcimPowerPortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerPortTemplatesListRequest { + r.nameEmpty = &nameEmpty return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPanelsListRequest { - r.siteGroup = &siteGroup +func (r ApiDcimPowerPortTemplatesListRequest) NameIc(nameIc []string) ApiDcimPowerPortTemplatesListRequest { + r.nameIc = &nameIc return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPanelsListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimPowerPortTemplatesListRequest) NameIe(nameIe []string) ApiDcimPowerPortTemplatesListRequest { + r.nameIe = &nameIe return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPanelsListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimPowerPortTemplatesListRequest) NameIew(nameIew []string) ApiDcimPowerPortTemplatesListRequest { + r.nameIew = &nameIew return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPanelsListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimPowerPortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimPowerPortTemplatesListRequest { + r.nameIsw = &nameIsw return r } -// Site (ID) -func (r ApiDcimPowerPanelsListRequest) SiteId(siteId []int32) ApiDcimPowerPanelsListRequest { - r.siteId = &siteId +func (r ApiDcimPowerPortTemplatesListRequest) NameN(nameN []string) ApiDcimPowerPortTemplatesListRequest { + r.nameN = &nameN return r } -// Site (ID) -func (r ApiDcimPowerPanelsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerPanelsListRequest { - r.siteIdN = &siteIdN +func (r ApiDcimPowerPortTemplatesListRequest) NameNic(nameNic []string) ApiDcimPowerPortTemplatesListRequest { + r.nameNic = &nameNic return r } -func (r ApiDcimPowerPanelsListRequest) Tag(tag []string) ApiDcimPowerPanelsListRequest { - r.tag = &tag +func (r ApiDcimPowerPortTemplatesListRequest) NameNie(nameNie []string) ApiDcimPowerPortTemplatesListRequest { + r.nameNie = &nameNie return r } -func (r ApiDcimPowerPanelsListRequest) TagN(tagN []string) ApiDcimPowerPanelsListRequest { - r.tagN = &tagN +func (r ApiDcimPowerPortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimPowerPortTemplatesListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiDcimPowerPanelsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimPowerPortTemplatesListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiDcimPowerPortTemplatesListRequest) Offset(offset int32) ApiDcimPowerPortTemplatesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimPowerPortTemplatesListRequest) Ordering(ordering string) ApiDcimPowerPortTemplatesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiDcimPowerPortTemplatesListRequest) Q(q string) ApiDcimPowerPortTemplatesListRequest { + r.q = &q + return r +} + +// * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +func (r ApiDcimPowerPortTemplatesListRequest) Type_(type_ DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { + r.type_ = &type_ + return r +} + +func (r ApiDcimPowerPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPortTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimPowerPanelsListRequest) Execute() (*PaginatedPowerPanelList, *http.Response, error) { - return r.ApiService.DcimPowerPanelsListExecute(r) +func (r ApiDcimPowerPortTemplatesListRequest) Execute() (*PaginatedPowerPortTemplateList, *http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesListExecute(r) } /* -DcimPowerPanelsList Method for DcimPowerPanelsList +DcimPowerPortTemplatesList Method for DcimPowerPortTemplatesList -Get a list of power panel objects. +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 ApiDcimPowerPanelsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesListRequest */ -func (a *DcimAPIService) DcimPowerPanelsList(ctx context.Context) ApiDcimPowerPanelsListRequest { - return ApiDcimPowerPanelsListRequest{ +func (a *DcimAPIService) DcimPowerPortTemplatesList(ctx context.Context) ApiDcimPowerPortTemplatesListRequest { + return ApiDcimPowerPortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerPanelList -func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequest) (*PaginatedPowerPanelList, *http.Response, error) { +// @return PaginatedPowerPortTemplateList +func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTemplatesListRequest) (*PaginatedPowerPortTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerPanelList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerPortTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.contact != nil { - t := *r.contact + if r.allocatedDraw != nil { + t := *r.allocatedDraw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", t, "form", "multi") } } - if r.contactN != nil { - t := *r.contactN + if r.allocatedDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__empty", r.allocatedDrawEmpty, "form", "") + } + 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, "contact__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", t, "form", "multi") } } - if r.contactGroup != nil { - t := *r.contactGroup + if r.allocatedDrawGte != nil { + t := *r.allocatedDrawGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", t, "form", "multi") } } - if r.contactGroupN != nil { - t := *r.contactGroupN + if r.allocatedDrawLt != nil { + t := *r.allocatedDrawLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", t, "form", "multi") } } - if r.contactRole != nil { - t := *r.contactRole + if r.allocatedDrawLte != nil { + t := *r.allocatedDrawLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", t, "form", "multi") } } - if r.contactRoleN != nil { - t := *r.contactRoleN + if r.allocatedDrawN != nil { + t := *r.allocatedDrawN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", t, "form", "multi") } } if r.created != nil { @@ -79430,10 +94351,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -79441,10 +94362,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -79452,10 +94373,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -79463,10 +94384,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -79474,10 +94395,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -79485,10 +94406,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -79496,38 +94417,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -79535,10 +94456,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -79546,10 +94467,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -79557,10 +94478,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -79568,10 +94489,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -79579,10 +94500,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -79590,10 +94511,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -79601,10 +94522,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -79612,10 +94533,32 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -79623,24 +94566,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -79648,10 +94591,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -79659,10 +94602,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -79670,10 +94613,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -79681,10 +94624,123 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.label != nil { + t := *r.label + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") + } + } + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") + } + } + if r.labelIe != nil { + t := *r.labelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") + } + } + if r.labelIew != nil { + t := *r.labelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") + } + } + if r.labelIsw != nil { + t := *r.labelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") + } + } + if r.labelN != nil { + t := *r.labelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") + } + } + if r.labelNic != nil { + t := *r.labelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") + } + } + if r.labelNie != nil { + t := *r.labelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") + } + } + if r.labelNiew != nil { + t := *r.labelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") + } + } + if r.labelNisw != nil { + t := *r.labelNisw + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -79692,10 +94748,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -79703,10 +94759,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -79714,10 +94770,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -79725,10 +94781,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -79736,10 +94792,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -79747,10 +94803,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -79758,318 +94814,236 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - 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 r.maximumDraw != nil { + t := *r.maximumDraw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.maximumDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__empty", r.maximumDrawEmpty, "form", "") } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.maximumDrawGte != nil { + t := *r.maximumDrawGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.maximumDrawLt != nil { + t := *r.maximumDrawLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.maximumDrawLte != nil { + t := *r.maximumDrawLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.maximumDrawN != nil { + t := *r.maximumDrawN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", t, "form", "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.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - 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, "") - } - 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.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.regionN != nil { - t := *r.regionN + 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + 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, "site_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "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.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - 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.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - 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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - 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.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "form", "") } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -80139,56 +95113,55 @@ func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPanelsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedPowerPanelRequest *PatchedPowerPanelRequest +type ApiDcimPowerPortTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritablePowerPortTemplateRequest *PatchedWritablePowerPortTemplateRequest } -func (r ApiDcimPowerPanelsPartialUpdateRequest) PatchedPowerPanelRequest(patchedPowerPanelRequest PatchedPowerPanelRequest) ApiDcimPowerPanelsPartialUpdateRequest { - r.patchedPowerPanelRequest = &patchedPowerPanelRequest +func (r ApiDcimPowerPortTemplatesPartialUpdateRequest) PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest PatchedWritablePowerPortTemplateRequest) ApiDcimPowerPortTemplatesPartialUpdateRequest { + r.patchedWritablePowerPortTemplateRequest = &patchedWritablePowerPortTemplateRequest return r } -func (r ApiDcimPowerPanelsPartialUpdateRequest) Execute() (*PowerPanel, *http.Response, error) { - return r.ApiService.DcimPowerPanelsPartialUpdateExecute(r) +func (r ApiDcimPowerPortTemplatesPartialUpdateRequest) Execute() (*PowerPortTemplate, *http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesPartialUpdateExecute(r) } /* -DcimPowerPanelsPartialUpdate Method for DcimPowerPanelsPartialUpdate +DcimPowerPortTemplatesPartialUpdate Method for DcimPowerPortTemplatesPartialUpdate -Patch a power panel object. +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 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 port template. + @return ApiDcimPowerPortTemplatesPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerPanelsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsPartialUpdateRequest { - return ApiDcimPowerPanelsPartialUpdateRequest{ +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 PowerPanel -func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanelsPartialUpdateRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPowerPortTemplatesPartialUpdateRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/{id}/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -80213,7 +95186,7 @@ func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanel localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedPowerPanelRequest + localVarPostBody = r.patchedWritablePowerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -80265,50 +95238,49 @@ func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanel return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPanelsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerPortTemplatesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerPanelsRetrieveRequest) Execute() (*PowerPanel, *http.Response, error) { - return r.ApiService.DcimPowerPanelsRetrieveExecute(r) +func (r ApiDcimPowerPortTemplatesRetrieveRequest) Execute() (*PowerPortTemplate, *http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesRetrieveExecute(r) } /* -DcimPowerPanelsRetrieve Method for DcimPowerPanelsRetrieve +DcimPowerPortTemplatesRetrieve Method for DcimPowerPortTemplatesRetrieve -Get a power panel object. +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 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 port template. + @return ApiDcimPowerPortTemplatesRetrieveRequest */ -func (a *DcimAPIService) DcimPowerPanelsRetrieve(ctx context.Context, id int32) ApiDcimPowerPanelsRetrieveRequest { - return ApiDcimPowerPanelsRetrieveRequest{ +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 PowerPanel -func (a *DcimAPIService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetrieveRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPortTemplatesRetrieveRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/{id}/" + localVarPath := localBasePath + "/api/dcim/power-port-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -80383,63 +95355,62 @@ func (a *DcimAPIService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPanelsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - powerPanelRequest *PowerPanelRequest +type ApiDcimPowerPortTemplatesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest } -func (r ApiDcimPowerPanelsUpdateRequest) PowerPanelRequest(powerPanelRequest PowerPanelRequest) ApiDcimPowerPanelsUpdateRequest { - r.powerPanelRequest = &powerPanelRequest +func (r ApiDcimPowerPortTemplatesUpdateRequest) WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest WritablePowerPortTemplateRequest) ApiDcimPowerPortTemplatesUpdateRequest { + r.writablePowerPortTemplateRequest = &writablePowerPortTemplateRequest return r } -func (r ApiDcimPowerPanelsUpdateRequest) Execute() (*PowerPanel, *http.Response, error) { - return r.ApiService.DcimPowerPanelsUpdateExecute(r) +func (r ApiDcimPowerPortTemplatesUpdateRequest) Execute() (*PowerPortTemplate, *http.Response, error) { + return r.ApiService.DcimPowerPortTemplatesUpdateExecute(r) } /* -DcimPowerPanelsUpdate Method for DcimPowerPanelsUpdate +DcimPowerPortTemplatesUpdate Method for DcimPowerPortTemplatesUpdate -Put a power panel object. +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 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 port template. + @return ApiDcimPowerPortTemplatesUpdateRequest */ -func (a *DcimAPIService) DcimPowerPanelsUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsUpdateRequest { - return ApiDcimPowerPanelsUpdateRequest{ +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 PowerPanel -func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdateRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortTemplatesUpdateRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-panels/{id}/" + localVarPath := localBasePath + "/api/dcim/power-port-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.powerPanelRequest == nil { - return localVarReturnValue, nil, reportError("powerPanelRequest is required and must be specified") + if r.writablePowerPortTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerPortTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -80460,7 +95431,7 @@ func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPanelRequest + localVarPostBody = r.writablePowerPortTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -80512,56 +95483,56 @@ func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPortTemplateRequest *[]PowerPortTemplateRequest +type ApiDcimPowerPortsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + powerPortRequest *[]PowerPortRequest } -func (r ApiDcimPowerPortTemplatesBulkDestroyRequest) PowerPortTemplateRequest(powerPortTemplateRequest []PowerPortTemplateRequest) ApiDcimPowerPortTemplatesBulkDestroyRequest { - r.powerPortTemplateRequest = &powerPortTemplateRequest +func (r ApiDcimPowerPortsBulkDestroyRequest) PowerPortRequest(powerPortRequest []PowerPortRequest) ApiDcimPowerPortsBulkDestroyRequest { + r.powerPortRequest = &powerPortRequest return r } -func (r ApiDcimPowerPortTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesBulkDestroyExecute(r) +func (r ApiDcimPowerPortsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerPortsBulkDestroyExecute(r) } /* -DcimPowerPortTemplatesBulkDestroy Method for DcimPowerPortTemplatesBulkDestroy +DcimPowerPortsBulkDestroy Method for DcimPowerPortsBulkDestroy -Delete a list of power port template objects. +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 ApiDcimPowerPortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsBulkDestroyRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerPortTemplatesBulkDestroyRequest { - return ApiDcimPowerPortTemplatesBulkDestroyRequest{ +func (a *DcimAPIService) DcimPowerPortsBulkDestroy(ctx context.Context) ApiDcimPowerPortsBulkDestroyRequest { + return ApiDcimPowerPortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPowerPortTemplatesBulkDestroyRequest) (*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.DcimPowerPortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/" + localVarPath := localBasePath + "/api/dcim/power-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPortTemplateRequest == nil { - return nil, reportError("powerPortTemplateRequest is required and must be specified") + if r.powerPortRequest == nil { + return nil, reportError("powerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -80582,7 +95553,7 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPower localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPortTemplateRequest + localVarPostBody = r.powerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -80625,59 +95596,58 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPower return localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPortTemplateRequest *[]PowerPortTemplateRequest +type ApiDcimPowerPortsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerPortRequest *[]PowerPortRequest } -func (r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) PowerPortTemplateRequest(powerPortTemplateRequest []PowerPortTemplateRequest) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest { - r.powerPortTemplateRequest = &powerPortTemplateRequest +func (r ApiDcimPowerPortsBulkPartialUpdateRequest) PowerPortRequest(powerPortRequest []PowerPortRequest) ApiDcimPowerPortsBulkPartialUpdateRequest { + r.powerPortRequest = &powerPortRequest return r } -func (r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) Execute() ([]PowerPortTemplate, *http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesBulkPartialUpdateExecute(r) +func (r ApiDcimPowerPortsBulkPartialUpdateRequest) Execute() ([]PowerPort, *http.Response, error) { + return r.ApiService.DcimPowerPortsBulkPartialUpdateExecute(r) } /* -DcimPowerPortTemplatesBulkPartialUpdate Method for DcimPowerPortTemplatesBulkPartialUpdate +DcimPowerPortsBulkPartialUpdate Method for DcimPowerPortsBulkPartialUpdate -Patch a list of power port template objects. +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 ApiDcimPowerPortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest { - return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortsBulkPartialUpdateRequest { + return ApiDcimPowerPortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPortTemplate -func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { +// @return []PowerPort +func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPortsBulkPartialUpdateRequest) ([]PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/" + localVarPath := localBasePath + "/api/dcim/power-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("powerPortTemplateRequest is required and must be specified") + if r.powerPortRequest == nil { + return localVarReturnValue, nil, reportError("powerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -80698,7 +95668,7 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDci localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPortTemplateRequest + localVarPostBody = r.powerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -80750,59 +95720,58 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDci return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPortTemplateRequest *[]PowerPortTemplateRequest +type ApiDcimPowerPortsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + powerPortRequest *[]PowerPortRequest } -func (r ApiDcimPowerPortTemplatesBulkUpdateRequest) PowerPortTemplateRequest(powerPortTemplateRequest []PowerPortTemplateRequest) ApiDcimPowerPortTemplatesBulkUpdateRequest { - r.powerPortTemplateRequest = &powerPortTemplateRequest +func (r ApiDcimPowerPortsBulkUpdateRequest) PowerPortRequest(powerPortRequest []PowerPortRequest) ApiDcimPowerPortsBulkUpdateRequest { + r.powerPortRequest = &powerPortRequest return r } -func (r ApiDcimPowerPortTemplatesBulkUpdateRequest) Execute() ([]PowerPortTemplate, *http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesBulkUpdateExecute(r) +func (r ApiDcimPowerPortsBulkUpdateRequest) Execute() ([]PowerPort, *http.Response, error) { + return r.ApiService.DcimPowerPortsBulkUpdateExecute(r) } /* -DcimPowerPortTemplatesBulkUpdate Method for DcimPowerPortTemplatesBulkUpdate +DcimPowerPortsBulkUpdate Method for DcimPowerPortsBulkUpdate -Put a list of power port template objects. +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 ApiDcimPowerPortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsBulkUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkUpdateRequest { - return ApiDcimPowerPortTemplatesBulkUpdateRequest{ +func (a *DcimAPIService) DcimPowerPortsBulkUpdate(ctx context.Context) ApiDcimPowerPortsBulkUpdateRequest { + return ApiDcimPowerPortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPortTemplate -func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerPortTemplatesBulkUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { +// @return []PowerPort +func (a *DcimAPIService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulkUpdateRequest) ([]PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/" + localVarPath := localBasePath + "/api/dcim/power-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("powerPortTemplateRequest is required and must be specified") + if r.powerPortRequest == nil { + return localVarReturnValue, nil, reportError("powerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -80823,7 +95792,7 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPortTemplateRequest + localVarPostBody = r.powerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -80875,59 +95844,58 @@ func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest +type ApiDcimPowerPortsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writablePowerPortRequest *WritablePowerPortRequest } -func (r ApiDcimPowerPortTemplatesCreateRequest) WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest WritablePowerPortTemplateRequest) ApiDcimPowerPortTemplatesCreateRequest { - r.writablePowerPortTemplateRequest = &writablePowerPortTemplateRequest +func (r ApiDcimPowerPortsCreateRequest) WritablePowerPortRequest(writablePowerPortRequest WritablePowerPortRequest) ApiDcimPowerPortsCreateRequest { + r.writablePowerPortRequest = &writablePowerPortRequest return r } -func (r ApiDcimPowerPortTemplatesCreateRequest) Execute() (*PowerPortTemplate, *http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesCreateExecute(r) +func (r ApiDcimPowerPortsCreateRequest) Execute() (*PowerPort, *http.Response, error) { + return r.ApiService.DcimPowerPortsCreateExecute(r) } /* -DcimPowerPortTemplatesCreate Method for DcimPowerPortTemplatesCreate +DcimPowerPortsCreate Method for DcimPowerPortsCreate -Post a list of power port template objects. +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 ApiDcimPowerPortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsCreateRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesCreate(ctx context.Context) ApiDcimPowerPortTemplatesCreateRequest { - return ApiDcimPowerPortTemplatesCreateRequest{ +func (a *DcimAPIService) DcimPowerPortsCreate(ctx context.Context) ApiDcimPowerPortsCreateRequest { + return ApiDcimPowerPortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerPortTemplate -func (a *DcimAPIService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortTemplatesCreateRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/" + localVarPath := localBasePath + "/api/dcim/power-ports/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writablePowerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerPortTemplateRequest is required and must be specified") + if r.writablePowerPortRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -80948,7 +95916,7 @@ func (a *DcimAPIService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerPortTemplateRequest + localVarPostBody = r.writablePowerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -81000,47 +95968,47 @@ func (a *DcimAPIService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerPortsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerPortTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesDestroyExecute(r) +func (r ApiDcimPowerPortsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimPowerPortsDestroyExecute(r) } /* -DcimPowerPortTemplatesDestroy Method for DcimPowerPortTemplatesDestroy +DcimPowerPortsDestroy Method for DcimPowerPortsDestroy -Delete a power port template object. +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 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. + @return ApiDcimPowerPortsDestroyRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerPortTemplatesDestroyRequest { - return ApiDcimPowerPortTemplatesDestroyRequest{ +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) DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPortTemplatesDestroyRequest) (*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.DcimPowerPortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -81106,880 +96074,1498 @@ func (a *DcimAPIService) DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPort return localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesListRequest struct { - ctx context.Context - ApiService *DcimAPIService - allocatedDraw *[]int32 +type ApiDcimPowerPortsListRequest struct { + ctx context.Context + ApiService DcimAPI + allocatedDraw *[]int32 allocatedDrawEmpty *bool - allocatedDrawGt *[]int32 - allocatedDrawGte *[]int32 - allocatedDrawLt *[]int32 - allocatedDrawLte *[]int32 - 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 - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - deviceTypeId *[]*int32 - deviceTypeIdN *[]*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 - maximumDraw *[]int32 - maximumDrawEmpty *bool - maximumDrawGt *[]int32 - maximumDrawGte *[]int32 - maximumDrawLt *[]int32 - maximumDrawLte *[]int32 - maximumDrawN *[]int32 - modifiedByRequest *string - moduleTypeId *[]*int32 - moduleTypeIdN *[]*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_ *DcimPowerPortTemplatesListTypeParameter - typeN *DcimPowerPortTemplatesListTypeParameter - updatedByRequest *string + allocatedDrawGt *[]int32 + allocatedDrawGte *[]int32 + allocatedDrawLt *[]int32 + allocatedDrawLte *[]int32 + allocatedDrawN *[]int32 + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + 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 + markConnected *bool + 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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]*string + typeEmpty *bool + typeIc *[]*string + typeIe *[]*string + typeIew *[]*string + typeIsw *[]*string + typeN *[]*string + typeNic *[]*string + typeNie *[]*string + typeNiew *[]*string + typeNisw *[]*string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 } -func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDraw(allocatedDraw []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) AllocatedDraw(allocatedDraw []int32) ApiDcimPowerPortsListRequest { r.allocatedDraw = &allocatedDraw return r } -func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawEmpty(allocatedDrawEmpty bool) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) AllocatedDrawEmpty(allocatedDrawEmpty bool) ApiDcimPowerPortsListRequest { r.allocatedDrawEmpty = &allocatedDrawEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawGt(allocatedDrawGt []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) AllocatedDrawGt(allocatedDrawGt []int32) ApiDcimPowerPortsListRequest { r.allocatedDrawGt = &allocatedDrawGt return r } -func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawGte(allocatedDrawGte []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) AllocatedDrawGte(allocatedDrawGte []int32) ApiDcimPowerPortsListRequest { r.allocatedDrawGte = &allocatedDrawGte return r } -func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawLt(allocatedDrawLt []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) AllocatedDrawLt(allocatedDrawLt []int32) ApiDcimPowerPortsListRequest { r.allocatedDrawLt = &allocatedDrawLt return r } -func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawLte(allocatedDrawLte []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) AllocatedDrawLte(allocatedDrawLte []int32) ApiDcimPowerPortsListRequest { r.allocatedDrawLte = &allocatedDrawLte return r } -func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawN(allocatedDrawN []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) AllocatedDrawN(allocatedDrawN []int32) ApiDcimPowerPortsListRequest { r.allocatedDrawN = &allocatedDrawN return r } -func (r ApiDcimPowerPortTemplatesListRequest) Created(created []time.Time) ApiDcimPowerPortTemplatesListRequest { +// * `A` - A * `B` - B +func (r ApiDcimPowerPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerPortsListRequest { + r.cableEnd = &cableEnd + return r +} + +// Cable (ID) +func (r ApiDcimPowerPortsListRequest) CableId(cableId []*int32) ApiDcimPowerPortsListRequest { + r.cableId = &cableId + return r +} + +// Cable (ID) +func (r ApiDcimPowerPortsListRequest) CableIdN(cableIdN []*int32) ApiDcimPowerPortsListRequest { + r.cableIdN = &cableIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) Cabled(cabled bool) ApiDcimPowerPortsListRequest { + r.cabled = &cabled + return r +} + +func (r ApiDcimPowerPortsListRequest) Connected(connected bool) ApiDcimPowerPortsListRequest { + r.connected = &connected + return r +} + +func (r ApiDcimPowerPortsListRequest) Created(created []time.Time) ApiDcimPowerPortsListRequest { r.created = &created return r } -func (r ApiDcimPowerPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPortsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPortsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimPowerPortTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerPortsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimPowerPortTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerPortsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimPowerPortTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerPortsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimPowerPortTemplatesListRequest) CreatedN(createdN []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerPortsListRequest { r.createdN = &createdN return r } -func (r ApiDcimPowerPortTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerPortTemplatesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimPowerPortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerPortsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimPowerPortsListRequest) Description(description []string) ApiDcimPowerPortsListRequest { + r.description = &description + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPortsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPortsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPortsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPortsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPortsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPortsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPortsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPortsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPortsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimPowerPortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPortsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Device (name) +func (r ApiDcimPowerPortsListRequest) Device(device []*string) ApiDcimPowerPortsListRequest { + r.device = &device + return r +} + +// Device (name) +func (r ApiDcimPowerPortsListRequest) DeviceN(deviceN []*string) ApiDcimPowerPortsListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) +func (r ApiDcimPowerPortsListRequest) DeviceId(deviceId []int32) ApiDcimPowerPortsListRequest { + r.deviceId = &deviceId + return r +} + +// Device (ID) +func (r ApiDcimPowerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerPortsListRequest { + r.deviceIdN = &deviceIdN + return r +} + +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN return r } -func (r ApiDcimPowerPortTemplatesListRequest) Description(description []string) ApiDcimPowerPortTemplatesListRequest { - r.description = &description +func (r ApiDcimPowerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerPortsListRequest { + r.deviceStatus = &deviceStatus return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPortTemplatesListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiDcimPowerPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimPowerPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimPowerPortsListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimPowerPortsListRequest { + r.deviceStatusIc = &deviceStatusIc return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimPowerPortsListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimPowerPortsListRequest { + r.deviceStatusIe = &deviceStatusIe return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimPowerPortsListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimPowerPortsListRequest { + r.deviceStatusIew = &deviceStatusIew return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimPowerPortsListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimPowerPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimPowerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerPortsListRequest { + r.deviceStatusN = &deviceStatusN return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimPowerPortsListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimPowerPortsListRequest { + r.deviceStatusNic = &deviceStatusNic return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimPowerPortsListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimPowerPortsListRequest { + r.deviceStatusNie = &deviceStatusNie return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimPowerPortsListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimPowerPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew return r } -func (r ApiDcimPowerPortTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPortTemplatesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimPowerPortsListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimPowerPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw return r } -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.deviceTypeId = &deviceTypeId +// Device type (model) +func (r ApiDcimPowerPortsListRequest) DeviceType(deviceType []string) ApiDcimPowerPortsListRequest { + r.deviceType = &deviceType return r } -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.deviceTypeIdN = &deviceTypeIdN +// Device type (model) +func (r ApiDcimPowerPortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimPowerPortsListRequest { + r.deviceTypeN = &deviceTypeN return r } // Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId +func (r ApiDcimPowerPortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimPowerPortsListRequest { + r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimPowerPortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimPowerPortsListRequest { + r.deviceTypeIdN = &deviceTypeIdN return r } -func (r ApiDcimPowerPortTemplatesListRequest) Id(id []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) Id(id []int32) ApiDcimPowerPortsListRequest { r.id = &id return r } -func (r ApiDcimPowerPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPortsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) IdGt(idGt []int32) ApiDcimPowerPortsListRequest { r.idGt = &idGt return r } -func (r ApiDcimPowerPortTemplatesListRequest) IdGte(idGte []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) IdGte(idGte []int32) ApiDcimPowerPortsListRequest { r.idGte = &idGte return r } -func (r ApiDcimPowerPortTemplatesListRequest) IdLt(idLt []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) IdLt(idLt []int32) ApiDcimPowerPortsListRequest { r.idLt = &idLt return r } -func (r ApiDcimPowerPortTemplatesListRequest) IdLte(idLte []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) IdLte(idLte []int32) ApiDcimPowerPortsListRequest { r.idLte = &idLte return r } -func (r ApiDcimPowerPortTemplatesListRequest) IdN(idN []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) IdN(idN []int32) ApiDcimPowerPortsListRequest { r.idN = &idN return r } -func (r ApiDcimPowerPortTemplatesListRequest) Label(label []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) Label(label []string) ApiDcimPowerPortsListRequest { r.label = &label return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerPortsListRequest { r.labelEmpty = &labelEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelIc(labelIc []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelIc(labelIc []string) ApiDcimPowerPortsListRequest { r.labelIc = &labelIc return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelIe(labelIe []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelIe(labelIe []string) ApiDcimPowerPortsListRequest { r.labelIe = &labelIe return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelIew(labelIew []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelIew(labelIew []string) ApiDcimPowerPortsListRequest { r.labelIew = &labelIew return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelIsw(labelIsw []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelIsw(labelIsw []string) ApiDcimPowerPortsListRequest { r.labelIsw = &labelIsw return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelN(labelN []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelN(labelN []string) ApiDcimPowerPortsListRequest { r.labelN = &labelN return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelNic(labelNic []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelNic(labelNic []string) ApiDcimPowerPortsListRequest { r.labelNic = &labelNic return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelNie(labelNie []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelNie(labelNie []string) ApiDcimPowerPortsListRequest { r.labelNie = &labelNie return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelNiew(labelNiew []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelNiew(labelNiew []string) ApiDcimPowerPortsListRequest { r.labelNiew = &labelNiew return r } -func (r ApiDcimPowerPortTemplatesListRequest) LabelNisw(labelNisw []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LabelNisw(labelNisw []string) ApiDcimPowerPortsListRequest { r.labelNisw = &labelNisw return r } -func (r ApiDcimPowerPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimPowerPortTemplatesListRequest) Limit(limit int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) Limit(limit int32) ApiDcimPowerPortsListRequest { r.limit = &limit return r } -func (r ApiDcimPowerPortTemplatesListRequest) MaximumDraw(maximumDraw []int32) ApiDcimPowerPortTemplatesListRequest { +// Location (slug) +func (r ApiDcimPowerPortsListRequest) Location(location []string) ApiDcimPowerPortsListRequest { + r.location = &location + return r +} + +// Location (slug) +func (r ApiDcimPowerPortsListRequest) LocationN(locationN []string) ApiDcimPowerPortsListRequest { + r.locationN = &locationN + return r +} + +// Location (ID) +func (r ApiDcimPowerPortsListRequest) LocationId(locationId []int32) ApiDcimPowerPortsListRequest { + r.locationId = &locationId + return r +} + +// Location (ID) +func (r ApiDcimPowerPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerPortsListRequest { + r.locationIdN = &locationIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) MarkConnected(markConnected bool) ApiDcimPowerPortsListRequest { + r.markConnected = &markConnected + return r +} + +func (r ApiDcimPowerPortsListRequest) MaximumDraw(maximumDraw []int32) ApiDcimPowerPortsListRequest { r.maximumDraw = &maximumDraw return r } -func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawEmpty(maximumDrawEmpty bool) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) MaximumDrawEmpty(maximumDrawEmpty bool) ApiDcimPowerPortsListRequest { r.maximumDrawEmpty = &maximumDrawEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawGt(maximumDrawGt []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) MaximumDrawGt(maximumDrawGt []int32) ApiDcimPowerPortsListRequest { r.maximumDrawGt = &maximumDrawGt return r } -func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawGte(maximumDrawGte []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) MaximumDrawGte(maximumDrawGte []int32) ApiDcimPowerPortsListRequest { r.maximumDrawGte = &maximumDrawGte return r } -func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawLt(maximumDrawLt []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) MaximumDrawLt(maximumDrawLt []int32) ApiDcimPowerPortsListRequest { r.maximumDrawLt = &maximumDrawLt return r } -func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawLte(maximumDrawLte []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) MaximumDrawLte(maximumDrawLte []int32) ApiDcimPowerPortsListRequest { r.maximumDrawLte = &maximumDrawLte return r } -func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawN(maximumDrawN []int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) MaximumDrawN(maximumDrawN []int32) ApiDcimPowerPortsListRequest { r.maximumDrawN = &maximumDrawN return r } -func (r ApiDcimPowerPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPortsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduleTypeId = &moduleTypeId - return r -} - -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduleTypeIdN = &moduleTypeIdN - return r -} - -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId +// Module (ID) +func (r ApiDcimPowerPortsListRequest) ModuleId(moduleId []*int32) ApiDcimPowerPortsListRequest { + r.moduleId = &moduleId return r } -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN +// Module (ID) +func (r ApiDcimPowerPortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimPowerPortsListRequest { + r.moduleIdN = &moduleIdN return r } -func (r ApiDcimPowerPortTemplatesListRequest) Name(name []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) Name(name []string) ApiDcimPowerPortsListRequest { r.name = &name return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerPortsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameIc(nameIc []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameIc(nameIc []string) ApiDcimPowerPortsListRequest { r.nameIc = &nameIc return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameIe(nameIe []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameIe(nameIe []string) ApiDcimPowerPortsListRequest { r.nameIe = &nameIe return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameIew(nameIew []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameIew(nameIew []string) ApiDcimPowerPortsListRequest { r.nameIew = &nameIew return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameIsw(nameIsw []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameIsw(nameIsw []string) ApiDcimPowerPortsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameN(nameN []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameN(nameN []string) ApiDcimPowerPortsListRequest { r.nameN = &nameN return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameNic(nameNic []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameNic(nameNic []string) ApiDcimPowerPortsListRequest { r.nameNic = &nameNic return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameNie(nameNie []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameNie(nameNie []string) ApiDcimPowerPortsListRequest { r.nameNie = &nameNie return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameNiew(nameNiew []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameNiew(nameNiew []string) ApiDcimPowerPortsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiDcimPowerPortTemplatesListRequest) NameNisw(nameNisw []string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) NameNisw(nameNisw []string) ApiDcimPowerPortsListRequest { r.nameNisw = &nameNisw return r } +func (r ApiDcimPowerPortsListRequest) Occupied(occupied bool) ApiDcimPowerPortsListRequest { + r.occupied = &occupied + return r +} + // The initial index from which to return the results. -func (r ApiDcimPowerPortTemplatesListRequest) Offset(offset int32) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) Offset(offset int32) ApiDcimPowerPortsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimPowerPortTemplatesListRequest) Ordering(ordering string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) Ordering(ordering string) ApiDcimPowerPortsListRequest { r.ordering = &ordering return r } // Search -func (r ApiDcimPowerPortTemplatesListRequest) Q(q string) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) Q(q string) ApiDcimPowerPortsListRequest { r.q = &q return r } -// * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] -func (r ApiDcimPowerPortTemplatesListRequest) Type_(type_ DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { +// Rack (name) +func (r ApiDcimPowerPortsListRequest) Rack(rack []string) ApiDcimPowerPortsListRequest { + r.rack = &rack + return r +} + +// Rack (name) +func (r ApiDcimPowerPortsListRequest) RackN(rackN []string) ApiDcimPowerPortsListRequest { + r.rackN = &rackN + return r +} + +// Rack (ID) +func (r ApiDcimPowerPortsListRequest) RackId(rackId []int32) ApiDcimPowerPortsListRequest { + r.rackId = &rackId + return r +} + +// Rack (ID) +func (r ApiDcimPowerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerPortsListRequest { + r.rackIdN = &rackIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) Region(region []string) ApiDcimPowerPortsListRequest { + r.region = ®ion + return r +} + +func (r ApiDcimPowerPortsListRequest) RegionN(regionN []string) ApiDcimPowerPortsListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiDcimPowerPortsListRequest) RegionId(regionId []string) ApiDcimPowerPortsListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPortsListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Site name (slug) +func (r ApiDcimPowerPortsListRequest) Site(site []string) ApiDcimPowerPortsListRequest { + r.site = &site + return r +} + +// Site name (slug) +func (r ApiDcimPowerPortsListRequest) SiteN(siteN []string) ApiDcimPowerPortsListRequest { + r.siteN = &siteN + return r +} + +func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPortsListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPortsListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPortsListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPortsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiDcimPowerPortsListRequest) SiteId(siteId []int32) ApiDcimPowerPortsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiDcimPowerPortsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerPortsListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) Tag(tag []string) ApiDcimPowerPortsListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimPowerPortsListRequest) TagN(tagN []string) ApiDcimPowerPortsListRequest { + r.tagN = &tagN + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) Type_(type_ []*string) ApiDcimPowerPortsListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] -func (r ApiDcimPowerPortTemplatesListRequest) TypeN(typeN DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { +func (r ApiDcimPowerPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimPowerPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeIc(typeIc []*string) ApiDcimPowerPortsListRequest { + r.typeIc = &typeIc + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeIe(typeIe []*string) ApiDcimPowerPortsListRequest { + r.typeIe = &typeIe + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeIew(typeIew []*string) ApiDcimPowerPortsListRequest { + r.typeIew = &typeIew + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeIsw(typeIsw []*string) ApiDcimPowerPortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeN(typeN []*string) ApiDcimPowerPortsListRequest { r.typeN = &typeN return r } -func (r ApiDcimPowerPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPortTemplatesListRequest { +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeNic(typeNic []*string) ApiDcimPowerPortsListRequest { + r.typeNic = &typeNic + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeNie(typeNie []*string) ApiDcimPowerPortsListRequest { + r.typeNie = &typeNie + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeNiew(typeNiew []*string) ApiDcimPowerPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// Physical port type +func (r ApiDcimPowerPortsListRequest) TypeNisw(typeNisw []*string) ApiDcimPowerPortsListRequest { + r.typeNisw = &typeNisw + return r +} + +func (r ApiDcimPowerPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPortsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimPowerPortTemplatesListRequest) Execute() (*PaginatedPowerPortTemplateList, *http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesListExecute(r) +// Virtual Chassis +func (r ApiDcimPowerPortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimPowerPortsListRequest { + r.virtualChassis = &virtualChassis + return r +} + +// Virtual Chassis +func (r ApiDcimPowerPortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimPowerPortsListRequest { + r.virtualChassisN = &virtualChassisN + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimPowerPortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimPowerPortsListRequest { + r.virtualChassisId = &virtualChassisId + return r +} + +// Virtual Chassis (ID) +func (r ApiDcimPowerPortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimPowerPortsListRequest { + r.virtualChassisIdN = &virtualChassisIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) Execute() (*PaginatedPowerPortList, *http.Response, error) { + return r.ApiService.DcimPowerPortsListExecute(r) } /* -DcimPowerPortTemplatesList Method for DcimPowerPortTemplatesList +DcimPowerPortsList Method for DcimPowerPortsList -Get a list of power port template objects. +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 ApiDcimPowerPortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsListRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesList(ctx context.Context) ApiDcimPowerPortTemplatesListRequest { - return ApiDcimPowerPortTemplatesListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerPortList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/power-ports/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allocatedDraw != nil { + t := *r.allocatedDraw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", t, "form", "multi") + } + } + if r.allocatedDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__empty", r.allocatedDrawEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", t, "form", "multi") + } + } + if r.allocatedDrawGte != nil { + t := *r.allocatedDrawGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", t, "form", "multi") + } + } + if r.allocatedDrawLt != nil { + t := *r.allocatedDrawLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", t, "form", "multi") + } + } + if r.allocatedDrawLte != nil { + t := *r.allocatedDrawLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", t, "form", "multi") + } + } + if r.allocatedDrawN != nil { + t := *r.allocatedDrawN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", t, "form", "multi") + } + } + if r.cableEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") + } + if r.cableId != nil { + t := *r.cableId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") + } + } + if r.cableIdN != nil { + t := *r.cableIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") + } + } + if r.cabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") + } + if r.connected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedPowerPortTemplateList -func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTemplatesListRequest) (*PaginatedPowerPortTemplateList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerPortTemplateList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/power-port-templates/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.allocatedDraw != nil { - t := *r.allocatedDraw + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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, "allocated_draw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.allocatedDrawEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__empty", r.allocatedDrawEmpty, "") + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.allocatedDrawGt != nil { - t := *r.allocatedDrawGt + 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, "allocated_draw__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.allocatedDrawGte != nil { - t := *r.allocatedDrawGte + 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, "allocated_draw__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.allocatedDrawLt != nil { - t := *r.allocatedDrawLt + 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, "allocated_draw__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.allocatedDrawLte != nil { - t := *r.allocatedDrawLte + 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, "allocated_draw__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.allocatedDrawN != nil { - t := *r.allocatedDrawN + 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, "allocated_draw__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.created != nil { - t := *r.created + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.device != nil { + t := *r.device 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") + } } - if r.description != nil { - t := *r.description + 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.deviceRoleId != nil { + t := *r.deviceRoleId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.deviceStatus != nil { + t := *r.deviceStatus 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.deviceStatusN != nil { + t := *r.deviceStatusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") } } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") + } + } + if r.deviceType != nil { + t := *r.deviceType + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") + } + } + if r.deviceTypeN != nil { + t := *r.deviceTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + 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, "devicetype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + 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, "devicetype_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -81987,24 +97573,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -82012,10 +97598,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -82023,10 +97609,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -82034,10 +97620,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -82045,10 +97631,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.label != nil { @@ -82056,24 +97642,24 @@ 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -82081,10 +97667,10 @@ 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -82092,10 +97678,10 @@ 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -82103,10 +97689,10 @@ 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -82114,10 +97700,10 @@ 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -82125,10 +97711,10 @@ 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -82136,10 +97722,10 @@ 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -82147,10 +97733,10 @@ 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -82158,10 +97744,10 @@ 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -82169,10 +97755,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -82180,10 +97766,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -82191,10 +97777,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -82202,10 +97788,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -82213,10 +97799,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -82224,10 +97810,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -82235,129 +97821,154 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.maximumDraw != nil { - t := *r.maximumDraw + 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, "maximum_draw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } - if r.maximumDrawEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__empty", r.maximumDrawEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") + } } - if r.maximumDrawGt != nil { - t := *r.maximumDrawGt + 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, "maximum_draw__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } - if r.maximumDrawGte != nil { - t := *r.maximumDrawGte + 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, "maximum_draw__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.maximumDrawLt != nil { - t := *r.maximumDrawLt + if r.markConnected != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") + } + if r.maximumDraw != nil { + t := *r.maximumDraw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", t, "form", "multi") } } - if r.maximumDrawLte != nil { - t := *r.maximumDrawLte + if r.maximumDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__empty", r.maximumDrawEmpty, "form", "") + } + 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__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", t, "form", "multi") } } - if r.maximumDrawN != nil { - t := *r.maximumDrawN + if r.maximumDrawGte != nil { + t := *r.maximumDrawGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + if r.maximumDrawLt != nil { + t := *r.maximumDrawLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", t, "form", "multi") + } } - if r.moduleTypeId != nil { - t := *r.moduleTypeId + if r.maximumDrawLte != nil { + t := *r.maximumDrawLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", t, "form", "multi") } } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN + if r.maximumDrawN != nil { + t := *r.maximumDrawN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", t, "form", "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "moduletype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") } } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN + if r.moduleIdN != nil { + t := *r.moduleIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") } } if r.name != nil { @@ -82365,24 +97976,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -82390,10 +98001,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -82401,10 +98012,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -82412,10 +98023,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -82423,10 +98034,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -82434,10 +98045,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -82445,10 +98056,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -82456,10 +98067,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -82467,29 +98078,381 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.occupied != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") + } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rack != nil { + t := *r.rack + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") + } + } + if r.rackN != nil { + t := *r.rackN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") + } + } + if r.rackId != nil { + t := *r.rackId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") + } + } + if r.rackIdN != nil { + t := *r.rackIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } if r.type_ != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") + } } if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") + t := *r.typeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") + } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualChassis != nil { + t := *r.virtualChassis + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") + } + } + if r.virtualChassisN != nil { + t := *r.virtualChassisN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") + } + } + if r.virtualChassisId != nil { + t := *r.virtualChassisId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") + } + } + if r.virtualChassisIdN != nil { + t := *r.virtualChassisIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -82559,56 +98522,55 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritablePowerPortTemplateRequest *PatchedWritablePowerPortTemplateRequest +type ApiDcimPowerPortsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritablePowerPortRequest *PatchedWritablePowerPortRequest } -func (r ApiDcimPowerPortTemplatesPartialUpdateRequest) PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest PatchedWritablePowerPortTemplateRequest) ApiDcimPowerPortTemplatesPartialUpdateRequest { - r.patchedWritablePowerPortTemplateRequest = &patchedWritablePowerPortTemplateRequest +func (r ApiDcimPowerPortsPartialUpdateRequest) PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest PatchedWritablePowerPortRequest) ApiDcimPowerPortsPartialUpdateRequest { + r.patchedWritablePowerPortRequest = &patchedWritablePowerPortRequest return r } -func (r ApiDcimPowerPortTemplatesPartialUpdateRequest) Execute() (*PowerPortTemplate, *http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesPartialUpdateExecute(r) +func (r ApiDcimPowerPortsPartialUpdateRequest) Execute() (*PowerPort, *http.Response, error) { + return r.ApiService.DcimPowerPortsPartialUpdateExecute(r) } /* -DcimPowerPortTemplatesPartialUpdate Method for DcimPowerPortTemplatesPartialUpdate +DcimPowerPortsPartialUpdate Method for DcimPowerPortsPartialUpdate -Patch a power port template object. +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 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. + @return ApiDcimPowerPortsPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesPartialUpdateRequest { - return ApiDcimPowerPortTemplatesPartialUpdateRequest{ +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 PowerPortTemplate -func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPowerPortTemplatesPartialUpdateRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsPartialUpdateRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -82633,7 +98595,7 @@ func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPow localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritablePowerPortTemplateRequest + localVarPostBody = r.patchedWritablePowerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -82685,50 +98647,49 @@ func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPow return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimPowerPortsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerPortTemplatesRetrieveRequest) Execute() (*PowerPortTemplate, *http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesRetrieveExecute(r) +func (r ApiDcimPowerPortsRetrieveRequest) Execute() (*PowerPort, *http.Response, error) { + return r.ApiService.DcimPowerPortsRetrieveExecute(r) } /* -DcimPowerPortTemplatesRetrieve Method for DcimPowerPortTemplatesRetrieve +DcimPowerPortsRetrieve Method for DcimPowerPortsRetrieve -Get a power port template object. +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 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. + @return ApiDcimPowerPortsRetrieveRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerPortTemplatesRetrieveRequest { - return ApiDcimPowerPortTemplatesRetrieveRequest{ +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 PowerPortTemplate -func (a *DcimAPIService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPortTemplatesRetrieveRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrieveRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-ports/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -82803,63 +98764,179 @@ func (a *DcimAPIService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPor return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest +type ApiDcimPowerPortsTraceRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerPortTemplatesUpdateRequest) WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest WritablePowerPortTemplateRequest) ApiDcimPowerPortTemplatesUpdateRequest { - r.writablePowerPortTemplateRequest = &writablePowerPortTemplateRequest +func (r ApiDcimPowerPortsTraceRetrieveRequest) Execute() (*PowerPort, *http.Response, error) { + return r.ApiService.DcimPowerPortsTraceRetrieveExecute(r) +} + +/* +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 +*/ +func (a *DcimAPIService) DcimPowerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsTraceRetrieveRequest { + return ApiDcimPowerPortsTraceRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsTraceRetrieveRequest) (*PowerPort, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsTraceRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/power-ports/{id}/trace/" + 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 ApiDcimPowerPortsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writablePowerPortRequest *WritablePowerPortRequest +} + +func (r ApiDcimPowerPortsUpdateRequest) WritablePowerPortRequest(writablePowerPortRequest WritablePowerPortRequest) ApiDcimPowerPortsUpdateRequest { + r.writablePowerPortRequest = &writablePowerPortRequest return r } -func (r ApiDcimPowerPortTemplatesUpdateRequest) Execute() (*PowerPortTemplate, *http.Response, error) { - return r.ApiService.DcimPowerPortTemplatesUpdateExecute(r) +func (r ApiDcimPowerPortsUpdateRequest) Execute() (*PowerPort, *http.Response, error) { + return r.ApiService.DcimPowerPortsUpdateExecute(r) } /* -DcimPowerPortTemplatesUpdate Method for DcimPowerPortTemplatesUpdate +DcimPowerPortsUpdate Method for DcimPowerPortsUpdate -Put a power port template object. +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 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. + @return ApiDcimPowerPortsUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesUpdateRequest { - return ApiDcimPowerPortTemplatesUpdateRequest{ +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 PowerPortTemplate -func (a *DcimAPIService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortTemplatesUpdateRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-port-templates/{id}/" + localVarPath := localBasePath + "/api/dcim/power-ports/{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.writablePowerPortTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerPortTemplateRequest is required and must be specified") + if r.writablePowerPortRequest == nil { + return localVarReturnValue, nil, reportError("writablePowerPortRequest is required and must be specified") } // to determine the Content-Type header @@ -82880,7 +98957,7 @@ func (a *DcimAPIService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerPortTemplateRequest + localVarPostBody = r.writablePowerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -82932,56 +99009,56 @@ func (a *DcimAPIService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPortRequest *[]PowerPortRequest +type ApiDcimRackReservationsBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + rackReservationRequest *[]RackReservationRequest } -func (r ApiDcimPowerPortsBulkDestroyRequest) PowerPortRequest(powerPortRequest []PowerPortRequest) ApiDcimPowerPortsBulkDestroyRequest { - r.powerPortRequest = &powerPortRequest +func (r ApiDcimRackReservationsBulkDestroyRequest) RackReservationRequest(rackReservationRequest []RackReservationRequest) ApiDcimRackReservationsBulkDestroyRequest { + r.rackReservationRequest = &rackReservationRequest return r } -func (r ApiDcimPowerPortsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerPortsBulkDestroyExecute(r) +func (r ApiDcimRackReservationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackReservationsBulkDestroyExecute(r) } /* -DcimPowerPortsBulkDestroy Method for DcimPowerPortsBulkDestroy +DcimRackReservationsBulkDestroy Method for DcimRackReservationsBulkDestroy -Delete a list of power port objects. +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 ApiDcimPowerPortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsBulkDestroyRequest */ -func (a *DcimAPIService) DcimPowerPortsBulkDestroy(ctx context.Context) ApiDcimPowerPortsBulkDestroyRequest { - return ApiDcimPowerPortsBulkDestroyRequest{ +func (a *DcimAPIService) DcimRackReservationsBulkDestroy(ctx context.Context) ApiDcimRackReservationsBulkDestroyRequest { + return ApiDcimRackReservationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBulkDestroyRequest) (*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.DcimPowerPortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPortRequest == nil { - return nil, reportError("powerPortRequest is required and must be specified") + if r.rackReservationRequest == nil { + return nil, reportError("rackReservationRequest is required and must be specified") } // to determine the Content-Type header @@ -83002,7 +99079,7 @@ func (a *DcimAPIService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPortRequest + localVarPostBody = r.rackReservationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -83045,59 +99122,58 @@ func (a *DcimAPIService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBul return localVarHTTPResponse, nil } -type ApiDcimPowerPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPortRequest *[]PowerPortRequest +type ApiDcimRackReservationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + rackReservationRequest *[]RackReservationRequest } -func (r ApiDcimPowerPortsBulkPartialUpdateRequest) PowerPortRequest(powerPortRequest []PowerPortRequest) ApiDcimPowerPortsBulkPartialUpdateRequest { - r.powerPortRequest = &powerPortRequest +func (r ApiDcimRackReservationsBulkPartialUpdateRequest) RackReservationRequest(rackReservationRequest []RackReservationRequest) ApiDcimRackReservationsBulkPartialUpdateRequest { + r.rackReservationRequest = &rackReservationRequest return r } -func (r ApiDcimPowerPortsBulkPartialUpdateRequest) Execute() ([]PowerPort, *http.Response, error) { - return r.ApiService.DcimPowerPortsBulkPartialUpdateExecute(r) +func (r ApiDcimRackReservationsBulkPartialUpdateRequest) Execute() ([]RackReservation, *http.Response, error) { + return r.ApiService.DcimRackReservationsBulkPartialUpdateExecute(r) } /* -DcimPowerPortsBulkPartialUpdate Method for DcimPowerPortsBulkPartialUpdate +DcimRackReservationsBulkPartialUpdate Method for DcimRackReservationsBulkPartialUpdate -Patch a list of power port objects. +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 ApiDcimPowerPortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortsBulkPartialUpdateRequest { - return ApiDcimPowerPortsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdate(ctx context.Context) ApiDcimRackReservationsBulkPartialUpdateRequest { + return ApiDcimRackReservationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPort -func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPortsBulkPartialUpdateRequest) ([]PowerPort, *http.Response, error) { +// @return []RackReservation +func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimRackReservationsBulkPartialUpdateRequest) ([]RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPortRequest == nil { - return localVarReturnValue, nil, reportError("powerPortRequest is required and must be specified") + if r.rackReservationRequest == nil { + return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") } // to determine the Content-Type header @@ -83118,7 +99194,7 @@ func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPortRequest + localVarPostBody = r.rackReservationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -83170,59 +99246,58 @@ func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - powerPortRequest *[]PowerPortRequest +type ApiDcimRackReservationsBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + rackReservationRequest *[]RackReservationRequest } -func (r ApiDcimPowerPortsBulkUpdateRequest) PowerPortRequest(powerPortRequest []PowerPortRequest) ApiDcimPowerPortsBulkUpdateRequest { - r.powerPortRequest = &powerPortRequest +func (r ApiDcimRackReservationsBulkUpdateRequest) RackReservationRequest(rackReservationRequest []RackReservationRequest) ApiDcimRackReservationsBulkUpdateRequest { + r.rackReservationRequest = &rackReservationRequest return r } -func (r ApiDcimPowerPortsBulkUpdateRequest) Execute() ([]PowerPort, *http.Response, error) { - return r.ApiService.DcimPowerPortsBulkUpdateExecute(r) +func (r ApiDcimRackReservationsBulkUpdateRequest) Execute() ([]RackReservation, *http.Response, error) { + return r.ApiService.DcimRackReservationsBulkUpdateExecute(r) } /* -DcimPowerPortsBulkUpdate Method for DcimPowerPortsBulkUpdate +DcimRackReservationsBulkUpdate Method for DcimRackReservationsBulkUpdate -Put a list of power port objects. +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 ApiDcimPowerPortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsBulkUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortsBulkUpdate(ctx context.Context) ApiDcimPowerPortsBulkUpdateRequest { - return ApiDcimPowerPortsBulkUpdateRequest{ +func (a *DcimAPIService) DcimRackReservationsBulkUpdate(ctx context.Context) ApiDcimRackReservationsBulkUpdateRequest { + return ApiDcimRackReservationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPort -func (a *DcimAPIService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulkUpdateRequest) ([]PowerPort, *http.Response, error) { +// @return []RackReservation +func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackReservationsBulkUpdateRequest) ([]RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.powerPortRequest == nil { - return localVarReturnValue, nil, reportError("powerPortRequest is required and must be specified") + if r.rackReservationRequest == nil { + return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") } // to determine the Content-Type header @@ -83243,7 +99318,7 @@ func (a *DcimAPIService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.powerPortRequest + localVarPostBody = r.rackReservationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -83295,59 +99370,58 @@ func (a *DcimAPIService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writablePowerPortRequest *WritablePowerPortRequest +type ApiDcimRackReservationsCreateRequest struct { + ctx context.Context + ApiService DcimAPI + rackReservationRequest *RackReservationRequest } -func (r ApiDcimPowerPortsCreateRequest) WritablePowerPortRequest(writablePowerPortRequest WritablePowerPortRequest) ApiDcimPowerPortsCreateRequest { - r.writablePowerPortRequest = &writablePowerPortRequest +func (r ApiDcimRackReservationsCreateRequest) RackReservationRequest(rackReservationRequest RackReservationRequest) ApiDcimRackReservationsCreateRequest { + r.rackReservationRequest = &rackReservationRequest return r } -func (r ApiDcimPowerPortsCreateRequest) Execute() (*PowerPort, *http.Response, error) { - return r.ApiService.DcimPowerPortsCreateExecute(r) +func (r ApiDcimRackReservationsCreateRequest) Execute() (*RackReservation, *http.Response, error) { + return r.ApiService.DcimRackReservationsCreateExecute(r) } /* -DcimPowerPortsCreate Method for DcimPowerPortsCreate +DcimRackReservationsCreate Method for DcimRackReservationsCreate -Post a list of power port objects. +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 ApiDcimPowerPortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsCreateRequest */ -func (a *DcimAPIService) DcimPowerPortsCreate(ctx context.Context) ApiDcimPowerPortsCreateRequest { - return ApiDcimPowerPortsCreateRequest{ +func (a *DcimAPIService) DcimRackReservationsCreate(ctx context.Context) ApiDcimRackReservationsCreateRequest { + return ApiDcimRackReservationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerPort -func (a *DcimAPIService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRequest) (*PowerPort, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservationsCreateRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writablePowerPortRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerPortRequest is required and must be specified") + if r.rackReservationRequest == nil { + return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") } // to determine the Content-Type header @@ -83368,7 +99442,7 @@ func (a *DcimAPIService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerPortRequest + localVarPostBody = r.rackReservationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -83420,47 +99494,47 @@ func (a *DcimAPIService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimRackReservationsDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerPortsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimPowerPortsDestroyExecute(r) +func (r ApiDcimRackReservationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackReservationsDestroyExecute(r) } /* -DcimPowerPortsDestroy Method for DcimPowerPortsDestroy +DcimRackReservationsDestroy Method for DcimRackReservationsDestroy -Delete a power port object. +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 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 rack reservation. + @return ApiDcimRackReservationsDestroyRequest */ -func (a *DcimAPIService) DcimPowerPortsDestroy(ctx context.Context, id int32) ApiDcimPowerPortsDestroyRequest { - return ApiDcimPowerPortsDestroyRequest{ +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) DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroyRequest) (*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.DcimPowerPortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -83526,962 +99600,510 @@ func (a *DcimAPIService) DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroy return localVarHTTPResponse, nil } -type ApiDcimPowerPortsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - allocatedDraw *[]int32 - allocatedDrawEmpty *bool - allocatedDrawGt *[]int32 - allocatedDrawGte *[]int32 - allocatedDrawLt *[]int32 - allocatedDrawLte *[]int32 - allocatedDrawN *[]int32 - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool - 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 -} - -func (r ApiDcimPowerPortsListRequest) AllocatedDraw(allocatedDraw []int32) ApiDcimPowerPortsListRequest { - r.allocatedDraw = &allocatedDraw - 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 -} - -func (r ApiDcimPowerPortsListRequest) AllocatedDrawGte(allocatedDrawGte []int32) ApiDcimPowerPortsListRequest { - r.allocatedDrawGte = &allocatedDrawGte - return r -} - -func (r ApiDcimPowerPortsListRequest) AllocatedDrawLt(allocatedDrawLt []int32) ApiDcimPowerPortsListRequest { - r.allocatedDrawLt = &allocatedDrawLt - return r -} - -func (r ApiDcimPowerPortsListRequest) AllocatedDrawLte(allocatedDrawLte []int32) ApiDcimPowerPortsListRequest { - r.allocatedDrawLte = &allocatedDrawLte - return r -} - -func (r ApiDcimPowerPortsListRequest) AllocatedDrawN(allocatedDrawN []int32) ApiDcimPowerPortsListRequest { - r.allocatedDrawN = &allocatedDrawN - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimPowerPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerPortsListRequest { - r.cableEnd = &cableEnd - return r -} - -// * `A` - A * `B` - B -func (r ApiDcimPowerPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerPortsListRequest { - r.cableEndN = &cableEndN - return r -} - -// Cable (ID) -func (r ApiDcimPowerPortsListRequest) CableId(cableId []*int32) ApiDcimPowerPortsListRequest { - r.cableId = &cableId - return r -} - -// Cable (ID) -func (r ApiDcimPowerPortsListRequest) CableIdN(cableIdN []*int32) ApiDcimPowerPortsListRequest { - r.cableIdN = &cableIdN - return r -} - -func (r ApiDcimPowerPortsListRequest) Cabled(cabled bool) ApiDcimPowerPortsListRequest { - r.cabled = &cabled - return r -} - -func (r ApiDcimPowerPortsListRequest) Connected(connected bool) ApiDcimPowerPortsListRequest { - r.connected = &connected - return r +type ApiDcimRackReservationsListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string + modifiedByRequest *string + offset *int32 + ordering *string + q *string + rackId *[]int32 + rackIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + unit *float32 + updatedByRequest *string + user *[]string + userN *[]string + userId *[]int32 + userIdN *[]int32 } -func (r ApiDcimPowerPortsListRequest) Created(created []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Created(created []time.Time) ApiDcimRackReservationsListRequest { r.created = &created return r } -func (r ApiDcimPowerPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackReservationsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiDcimPowerPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackReservationsListRequest { r.createdGt = &createdGt return r } -func (r ApiDcimPowerPortsListRequest) CreatedGte(createdGte []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackReservationsListRequest { r.createdGte = &createdGte return r } -func (r ApiDcimPowerPortsListRequest) CreatedLt(createdLt []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackReservationsListRequest { r.createdLt = &createdLt return r } -func (r ApiDcimPowerPortsListRequest) CreatedLte(createdLte []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackReservationsListRequest { r.createdLte = &createdLte return r } -func (r ApiDcimPowerPortsListRequest) CreatedN(createdN []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) CreatedN(createdN []time.Time) ApiDcimRackReservationsListRequest { r.createdN = &createdN return r } -func (r ApiDcimPowerPortsListRequest) CreatedByRequest(createdByRequest string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackReservationsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiDcimPowerPortsListRequest) Description(description []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Description(description []string) ApiDcimRackReservationsListRequest { r.description = &description return r } -func (r ApiDcimPowerPortsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackReservationsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimPowerPortsListRequest) DescriptionIc(descriptionIc []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackReservationsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiDcimPowerPortsListRequest) DescriptionIe(descriptionIe []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackReservationsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiDcimPowerPortsListRequest) DescriptionIew(descriptionIew []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackReservationsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiDcimPowerPortsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackReservationsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimPowerPortsListRequest) DescriptionN(descriptionN []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionN(descriptionN []string) ApiDcimRackReservationsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiDcimPowerPortsListRequest) DescriptionNic(descriptionNic []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackReservationsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiDcimPowerPortsListRequest) DescriptionNie(descriptionNie []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackReservationsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiDcimPowerPortsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackReservationsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimPowerPortsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackReservationsListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device (name) -func (r ApiDcimPowerPortsListRequest) Device(device []*string) ApiDcimPowerPortsListRequest { - r.device = &device - return r -} - -// Device (name) -func (r ApiDcimPowerPortsListRequest) DeviceN(deviceN []*string) ApiDcimPowerPortsListRequest { - r.deviceN = &deviceN - return r -} - -// Device (ID) -func (r ApiDcimPowerPortsListRequest) DeviceId(deviceId []int32) ApiDcimPowerPortsListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiDcimPowerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerPortsListRequest { - r.deviceIdN = &deviceIdN - return r -} - -// Device type (model) -func (r ApiDcimPowerPortsListRequest) DeviceType(deviceType []string) ApiDcimPowerPortsListRequest { - r.deviceType = &deviceType - return r -} - -// Device type (model) -func (r ApiDcimPowerPortsListRequest) DeviceTypeN(deviceTypeN []string) ApiDcimPowerPortsListRequest { - r.deviceTypeN = &deviceTypeN - return r -} - -// Device type (ID) -func (r ApiDcimPowerPortsListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimPowerPortsListRequest { - r.deviceTypeId = &deviceTypeId - return r -} - -// Device type (ID) -func (r ApiDcimPowerPortsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimPowerPortsListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} - -func (r ApiDcimPowerPortsListRequest) Id(id []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Id(id []int32) ApiDcimRackReservationsListRequest { r.id = &id return r } -func (r ApiDcimPowerPortsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) IdEmpty(idEmpty bool) ApiDcimRackReservationsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimPowerPortsListRequest) IdGt(idGt []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) IdGt(idGt []int32) ApiDcimRackReservationsListRequest { r.idGt = &idGt return r } -func (r ApiDcimPowerPortsListRequest) IdGte(idGte []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) IdGte(idGte []int32) ApiDcimRackReservationsListRequest { r.idGte = &idGte return r } -func (r ApiDcimPowerPortsListRequest) IdLt(idLt []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) IdLt(idLt []int32) ApiDcimRackReservationsListRequest { r.idLt = &idLt return r } -func (r ApiDcimPowerPortsListRequest) IdLte(idLte []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) IdLte(idLte []int32) ApiDcimRackReservationsListRequest { r.idLte = &idLte return r } -func (r ApiDcimPowerPortsListRequest) IdN(idN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) IdN(idN []int32) ApiDcimRackReservationsListRequest { r.idN = &idN return r } -func (r ApiDcimPowerPortsListRequest) Label(label []string) ApiDcimPowerPortsListRequest { - r.label = &label - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelEmpty(labelEmpty bool) ApiDcimPowerPortsListRequest { - r.labelEmpty = &labelEmpty - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelIc(labelIc []string) ApiDcimPowerPortsListRequest { - r.labelIc = &labelIc - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelIe(labelIe []string) ApiDcimPowerPortsListRequest { - r.labelIe = &labelIe - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelIew(labelIew []string) ApiDcimPowerPortsListRequest { - r.labelIew = &labelIew - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelIsw(labelIsw []string) ApiDcimPowerPortsListRequest { - r.labelIsw = &labelIsw - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelN(labelN []string) ApiDcimPowerPortsListRequest { - r.labelN = &labelN - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelNic(labelNic []string) ApiDcimPowerPortsListRequest { - r.labelNic = &labelNic - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelNie(labelNie []string) ApiDcimPowerPortsListRequest { - r.labelNie = &labelNie - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelNiew(labelNiew []string) ApiDcimPowerPortsListRequest { - r.labelNiew = &labelNiew - return r -} - -func (r ApiDcimPowerPortsListRequest) LabelNisw(labelNisw []string) ApiDcimPowerPortsListRequest { - r.labelNisw = &labelNisw - return r -} - -func (r ApiDcimPowerPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimPowerPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimPowerPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimPowerPortsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimPowerPortsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimPowerPortsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimPowerPortsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimPowerPortsListRequest) Limit(limit int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Limit(limit int32) ApiDcimRackReservationsListRequest { r.limit = &limit return r } -// Location (slug) -func (r ApiDcimPowerPortsListRequest) Location(location []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Location(location []string) ApiDcimRackReservationsListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimPowerPortsListRequest) LocationN(locationN []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationN(locationN []string) ApiDcimRackReservationsListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimPowerPortsListRequest) LocationId(locationId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationId(locationId []string) ApiDcimRackReservationsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimPowerPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []string) ApiDcimRackReservationsListRequest { r.locationIdN = &locationIdN return r } -func (r ApiDcimPowerPortsListRequest) MarkConnected(markConnected bool) ApiDcimPowerPortsListRequest { - r.markConnected = &markConnected - return r -} - -func (r ApiDcimPowerPortsListRequest) MaximumDraw(maximumDraw []int32) ApiDcimPowerPortsListRequest { - r.maximumDraw = &maximumDraw - 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 -} - -func (r ApiDcimPowerPortsListRequest) MaximumDrawGte(maximumDrawGte []int32) ApiDcimPowerPortsListRequest { - r.maximumDrawGte = &maximumDrawGte - return r -} - -func (r ApiDcimPowerPortsListRequest) MaximumDrawLt(maximumDrawLt []int32) ApiDcimPowerPortsListRequest { - r.maximumDrawLt = &maximumDrawLt - return r -} - -func (r ApiDcimPowerPortsListRequest) MaximumDrawLte(maximumDrawLte []int32) ApiDcimPowerPortsListRequest { - r.maximumDrawLte = &maximumDrawLte - return r -} - -func (r ApiDcimPowerPortsListRequest) MaximumDrawN(maximumDrawN []int32) ApiDcimPowerPortsListRequest { - r.maximumDrawN = &maximumDrawN - return r -} - -func (r ApiDcimPowerPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackReservationsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// Module (ID) -func (r ApiDcimPowerPortsListRequest) ModuleId(moduleId []*int32) ApiDcimPowerPortsListRequest { - r.moduleId = &moduleId - return r -} - -// Module (ID) -func (r ApiDcimPowerPortsListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimPowerPortsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiDcimPowerPortsListRequest) Name(name []string) ApiDcimPowerPortsListRequest { - r.name = &name - return r -} - -func (r ApiDcimPowerPortsListRequest) NameEmpty(nameEmpty bool) ApiDcimPowerPortsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiDcimPowerPortsListRequest) NameIc(nameIc []string) ApiDcimPowerPortsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiDcimPowerPortsListRequest) NameIe(nameIe []string) ApiDcimPowerPortsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiDcimPowerPortsListRequest) NameIew(nameIew []string) ApiDcimPowerPortsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiDcimPowerPortsListRequest) NameIsw(nameIsw []string) ApiDcimPowerPortsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiDcimPowerPortsListRequest) NameN(nameN []string) ApiDcimPowerPortsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiDcimPowerPortsListRequest) NameNic(nameNic []string) ApiDcimPowerPortsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiDcimPowerPortsListRequest) NameNie(nameNie []string) ApiDcimPowerPortsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiDcimPowerPortsListRequest) NameNiew(nameNiew []string) ApiDcimPowerPortsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiDcimPowerPortsListRequest) NameNisw(nameNisw []string) ApiDcimPowerPortsListRequest { - r.nameNisw = &nameNisw - return r -} - -func (r ApiDcimPowerPortsListRequest) Occupied(occupied bool) ApiDcimPowerPortsListRequest { - r.occupied = &occupied - return r -} - // The initial index from which to return the results. -func (r ApiDcimPowerPortsListRequest) Offset(offset int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Offset(offset int32) ApiDcimRackReservationsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiDcimPowerPortsListRequest) Ordering(ordering string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Ordering(ordering string) ApiDcimRackReservationsListRequest { r.ordering = &ordering return r } // Search -func (r ApiDcimPowerPortsListRequest) Q(q string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Q(q string) ApiDcimRackReservationsListRequest { r.q = &q return r } -// Rack (name) -func (r ApiDcimPowerPortsListRequest) Rack(rack []string) ApiDcimPowerPortsListRequest { - r.rack = &rack - return r -} - -// Rack (name) -func (r ApiDcimPowerPortsListRequest) RackN(rackN []string) ApiDcimPowerPortsListRequest { - r.rackN = &rackN - return r -} - // Rack (ID) -func (r ApiDcimPowerPortsListRequest) RackId(rackId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) RackId(rackId []int32) ApiDcimRackReservationsListRequest { r.rackId = &rackId return r } // Rack (ID) -func (r ApiDcimPowerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) RackIdN(rackIdN []int32) ApiDcimRackReservationsListRequest { r.rackIdN = &rackIdN return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) Region(region []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Region(region []string) ApiDcimRackReservationsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) RegionN(regionN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionN(regionN []string) ApiDcimRackReservationsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionId(regionId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionId(regionId []string) ApiDcimRackReservationsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []string) ApiDcimRackReservationsListRequest { r.regionIdN = ®ionIdN 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 { +// Site (slug) +func (r ApiDcimRackReservationsListRequest) Site(site []string) ApiDcimRackReservationsListRequest { r.site = &site return r } -// Site name (slug) -func (r ApiDcimPowerPortsListRequest) SiteN(siteN []string) ApiDcimPowerPortsListRequest { +// Site (slug) +func (r ApiDcimRackReservationsListRequest) SiteN(siteN []string) ApiDcimRackReservationsListRequest { r.siteN = &siteN return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []string) ApiDcimRackReservationsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRackReservationsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRackReservationsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRackReservationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } // Site (ID) -func (r ApiDcimPowerPortsListRequest) SiteId(siteId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteId(siteId []int32) ApiDcimRackReservationsListRequest { r.siteId = &siteId return r } // Site (ID) -func (r ApiDcimPowerPortsListRequest) SiteIdN(siteIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteIdN(siteIdN []int32) ApiDcimRackReservationsListRequest { r.siteIdN = &siteIdN return r } -func (r ApiDcimPowerPortsListRequest) Tag(tag []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) Tag(tag []string) ApiDcimRackReservationsListRequest { r.tag = &tag return r } -func (r ApiDcimPowerPortsListRequest) TagN(tagN []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimRackReservationsListRequest) TagN(tagN []string) ApiDcimRackReservationsListRequest { r.tagN = &tagN return r } -// Physical port type -func (r ApiDcimPowerPortsListRequest) Type_(type_ []string) ApiDcimPowerPortsListRequest { - r.type_ = &type_ +// Tenant (slug) +func (r ApiDcimRackReservationsListRequest) Tenant(tenant []string) ApiDcimRackReservationsListRequest { + r.tenant = &tenant return r } -// Physical port type -func (r ApiDcimPowerPortsListRequest) TypeN(typeN []string) ApiDcimPowerPortsListRequest { - r.typeN = &typeN +// Tenant (slug) +func (r ApiDcimRackReservationsListRequest) TenantN(tenantN []string) ApiDcimRackReservationsListRequest { + r.tenantN = &tenantN return r } -func (r ApiDcimPowerPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPortsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []string) ApiDcimRackReservationsListRequest { + r.tenantGroup = &tenantGroup return r } -// Virtual Chassis -func (r ApiDcimPowerPortsListRequest) VirtualChassis(virtualChassis []string) ApiDcimPowerPortsListRequest { - r.virtualChassis = &virtualChassis +func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRackReservationsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRackReservationsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRackReservationsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiDcimRackReservationsListRequest) TenantId(tenantId []*int32) ApiDcimRackReservationsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiDcimRackReservationsListRequest) TenantIdN(tenantIdN []*int32) ApiDcimRackReservationsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiDcimRackReservationsListRequest) Unit(unit float32) ApiDcimRackReservationsListRequest { + r.unit = &unit + return r +} + +func (r ApiDcimRackReservationsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackReservationsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +// User (name) +func (r ApiDcimRackReservationsListRequest) User(user []string) ApiDcimRackReservationsListRequest { + r.user = &user return r } -// Virtual Chassis -func (r ApiDcimPowerPortsListRequest) VirtualChassisN(virtualChassisN []string) ApiDcimPowerPortsListRequest { - r.virtualChassisN = &virtualChassisN +// User (name) +func (r ApiDcimRackReservationsListRequest) UserN(userN []string) ApiDcimRackReservationsListRequest { + r.userN = &userN return r } -// Virtual Chassis (ID) -func (r ApiDcimPowerPortsListRequest) VirtualChassisId(virtualChassisId []int32) ApiDcimPowerPortsListRequest { - r.virtualChassisId = &virtualChassisId +// User (ID) +func (r ApiDcimRackReservationsListRequest) UserId(userId []int32) ApiDcimRackReservationsListRequest { + r.userId = &userId return r } -// Virtual Chassis (ID) -func (r ApiDcimPowerPortsListRequest) VirtualChassisIdN(virtualChassisIdN []int32) ApiDcimPowerPortsListRequest { - r.virtualChassisIdN = &virtualChassisIdN +// User (ID) +func (r ApiDcimRackReservationsListRequest) UserIdN(userIdN []int32) ApiDcimRackReservationsListRequest { + r.userIdN = &userIdN return r } -func (r ApiDcimPowerPortsListRequest) Execute() (*PaginatedPowerPortList, *http.Response, error) { - return r.ApiService.DcimPowerPortsListExecute(r) +func (r ApiDcimRackReservationsListRequest) Execute() (*PaginatedRackReservationList, *http.Response, error) { + return r.ApiService.DcimRackReservationsListExecute(r) } /* -DcimPowerPortsList Method for DcimPowerPortsList +DcimRackReservationsList Method for DcimRackReservationsList -Get a list of power port objects. +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 ApiDcimPowerPortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsListRequest */ -func (a *DcimAPIService) DcimPowerPortsList(ctx context.Context) ApiDcimPowerPortsListRequest { - return ApiDcimPowerPortsListRequest{ +func (a *DcimAPIService) DcimRackReservationsList(ctx context.Context) ApiDcimRackReservationsListRequest { + return ApiDcimRackReservationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerPortList -func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListRequest) (*PaginatedPowerPortList, *http.Response, error) { +// @return PaginatedRackReservationList +func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservationsListRequest) (*PaginatedRackReservationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerPortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackReservationList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.allocatedDraw != nil { - t := *r.allocatedDraw - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", t, "multi") - } - } - if r.allocatedDrawGte != nil { - t := *r.allocatedDrawGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", t, "multi") - } - } - if r.allocatedDrawLt != nil { - t := *r.allocatedDrawLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", t, "multi") - } - } - if r.allocatedDrawLte != nil { - t := *r.allocatedDrawLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", t, "multi") - } - } - if r.allocatedDrawN != nil { - t := *r.allocatedDrawN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", t, "multi") - } - } - if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") - } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } - if r.cableId != nil { - t := *r.cableId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") - } - } - if r.cableIdN != nil { - t := *r.cableIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") - } - } - if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") - } - if r.connected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "connected", r.connected, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -84489,10 +100111,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -84500,10 +100122,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -84511,10 +100133,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -84522,10 +100144,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -84533,10 +100155,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -84544,38 +100166,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -84583,10 +100205,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -84594,10 +100216,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -84605,10 +100227,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -84616,10 +100238,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -84627,10 +100249,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -84638,10 +100260,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -84649,10 +100271,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -84660,98 +100282,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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.deviceType != nil { - t := *r.deviceType - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") - } - } - if r.deviceTypeN != nil { - t := *r.deviceTypeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -84759,24 +100293,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -84784,10 +100318,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -84795,10 +100329,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -84806,10 +100340,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -84817,123 +100351,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.label != nil { - t := *r.label - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") - } - } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") - } - } - if r.labelIe != nil { - t := *r.labelIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") - } - } - if r.labelIew != nil { - t := *r.labelIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") - } - } - if r.labelIsw != nil { - t := *r.labelIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") - } - } - if r.labelN != nil { - t := *r.labelN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") - } - } - if r.labelNic != nil { - t := *r.labelNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") - } - } - if r.labelNie != nil { - t := *r.labelNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") - } - } - if r.labelNiew != nil { - t := *r.labelNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") - } - } - if r.labelNisw != nil { - t := *r.labelNisw - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -84941,10 +100362,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -84952,10 +100373,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -84963,10 +100384,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -84974,10 +100395,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -84985,10 +100406,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -84996,10 +100417,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -85007,24 +100428,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } if r.locationN != nil { @@ -85032,10 +100453,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } if r.locationId != nil { @@ -85043,10 +100464,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } if r.locationIdN != nil { @@ -85054,265 +100475,33 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") - } - } - if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") - } - if r.maximumDraw != nil { - t := *r.maximumDraw - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", t, "multi") - } - } - if r.maximumDrawGte != nil { - t := *r.maximumDrawGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", t, "multi") - } - } - if r.maximumDrawLt != nil { - t := *r.maximumDrawLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", t, "multi") - } - } - if r.maximumDrawLte != nil { - t := *r.maximumDrawLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", t, "multi") - } - } - if r.maximumDrawN != nil { - t := *r.maximumDrawN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") - } - } - if r.moduleIdN != nil { - t := *r.moduleIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") - } - } - 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.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rack != nil { - t := *r.rack - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") - } - } - if r.rackN != nil { - t := *r.rackN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.rackId != nil { t := *r.rackId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") } } if r.rackIdN != nil { @@ -85320,10 +100509,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") } } if r.region != nil { @@ -85331,10 +100520,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -85342,10 +100531,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -85353,10 +100542,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -85364,54 +100553,10 @@ 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).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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } if r.site != nil { @@ -85419,10 +100564,10 @@ 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteN != nil { @@ -85430,10 +100575,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } if r.siteGroup != nil { @@ -85441,10 +100586,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } if r.siteGroupN != nil { @@ -85452,10 +100597,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } if r.siteGroupId != nil { @@ -85463,10 +100608,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } if r.siteGroupIdN != nil { @@ -85474,10 +100619,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } if r.siteId != nil { @@ -85485,10 +100630,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.siteIdN != nil { @@ -85496,10 +100641,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.tag != nil { @@ -85507,10 +100652,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -85518,207 +100663,152 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + 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, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } - if r.typeN != nil { - t := *r.typeN + 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, "type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualChassis != nil { - t := *r.virtualChassis + 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, "virtual_chassis", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } - if r.virtualChassisN != nil { - t := *r.virtualChassisN + 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, "virtual_chassis__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } - if r.virtualChassisId != nil { - t := *r.virtualChassisId + 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, "virtual_chassis_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } - if r.virtualChassisIdN != nil { - t := *r.virtualChassisIdN + 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, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } - // 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 + 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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.unit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unit", r.unit, "form", "") } - - 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.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimPowerPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritablePowerPortRequest *PatchedWritablePowerPortRequest -} - -func (r ApiDcimPowerPortsPartialUpdateRequest) PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest PatchedWritablePowerPortRequest) ApiDcimPowerPortsPartialUpdateRequest { - r.patchedWritablePowerPortRequest = &patchedWritablePowerPortRequest - return r -} - -func (r ApiDcimPowerPortsPartialUpdateRequest) Execute() (*PowerPort, *http.Response, error) { - return r.ApiService.DcimPowerPortsPartialUpdateExecute(r) -} - -/* -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 -*/ -func (a *DcimAPIService) DcimPowerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortsPartialUpdateRequest { - return ApiDcimPowerPortsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PowerPort -func (a *DcimAPIService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsPartialUpdateRequest) (*PowerPort, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/dcim/power-ports/{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"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -85734,8 +100824,6 @@ func (a *DcimAPIService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsP if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedWritablePowerPortRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -85787,50 +100875,55 @@ func (a *DcimAPIService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimRackReservationsPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedRackReservationRequest *PatchedRackReservationRequest } -func (r ApiDcimPowerPortsRetrieveRequest) Execute() (*PowerPort, *http.Response, error) { - return r.ApiService.DcimPowerPortsRetrieveExecute(r) +func (r ApiDcimRackReservationsPartialUpdateRequest) PatchedRackReservationRequest(patchedRackReservationRequest PatchedRackReservationRequest) ApiDcimRackReservationsPartialUpdateRequest { + r.patchedRackReservationRequest = &patchedRackReservationRequest + return r +} + +func (r ApiDcimRackReservationsPartialUpdateRequest) Execute() (*RackReservation, *http.Response, error) { + return r.ApiService.DcimRackReservationsPartialUpdateExecute(r) } /* -DcimPowerPortsRetrieve Method for DcimPowerPortsRetrieve +DcimRackReservationsPartialUpdate Method for DcimRackReservationsPartialUpdate -Get a power port object. +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 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 rack reservation. + @return ApiDcimRackReservationsPartialUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortsRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsRetrieveRequest { - return ApiDcimPowerPortsRetrieveRequest{ +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 PowerPort -func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrieveRequest) (*PowerPort, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackReservationsPartialUpdateRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -85838,7 +100931,7 @@ func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrie localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -85854,6 +100947,8 @@ func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrie if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedRackReservationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -85905,50 +101000,49 @@ func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimRackReservationsRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimPowerPortsTraceRetrieveRequest) Execute() (*PowerPort, *http.Response, error) { - return r.ApiService.DcimPowerPortsTraceRetrieveExecute(r) +func (r ApiDcimRackReservationsRetrieveRequest) Execute() (*RackReservation, *http.Response, error) { + return r.ApiService.DcimRackReservationsRetrieveExecute(r) } /* -DcimPowerPortsTraceRetrieve Method for DcimPowerPortsTraceRetrieve +DcimRackReservationsRetrieve Method for DcimRackReservationsRetrieve -Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). +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 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 rack reservation. + @return ApiDcimRackReservationsRetrieveRequest */ -func (a *DcimAPIService) DcimPowerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsTraceRetrieveRequest { - return ApiDcimPowerPortsTraceRetrieveRequest{ +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 PowerPort -func (a *DcimAPIService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsTraceRetrieveRequest) (*PowerPort, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReservationsRetrieveRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/{id}/trace/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -86023,63 +101117,62 @@ func (a *DcimAPIService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimPowerPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writablePowerPortRequest *WritablePowerPortRequest +type ApiDcimRackReservationsUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + rackReservationRequest *RackReservationRequest } -func (r ApiDcimPowerPortsUpdateRequest) WritablePowerPortRequest(writablePowerPortRequest WritablePowerPortRequest) ApiDcimPowerPortsUpdateRequest { - r.writablePowerPortRequest = &writablePowerPortRequest +func (r ApiDcimRackReservationsUpdateRequest) RackReservationRequest(rackReservationRequest RackReservationRequest) ApiDcimRackReservationsUpdateRequest { + r.rackReservationRequest = &rackReservationRequest return r } -func (r ApiDcimPowerPortsUpdateRequest) Execute() (*PowerPort, *http.Response, error) { - return r.ApiService.DcimPowerPortsUpdateExecute(r) +func (r ApiDcimRackReservationsUpdateRequest) Execute() (*RackReservation, *http.Response, error) { + return r.ApiService.DcimRackReservationsUpdateExecute(r) } /* -DcimPowerPortsUpdate Method for DcimPowerPortsUpdate +DcimRackReservationsUpdate Method for DcimRackReservationsUpdate -Put a power port object. +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 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 rack reservation. + @return ApiDcimRackReservationsUpdateRequest */ -func (a *DcimAPIService) DcimPowerPortsUpdate(ctx context.Context, id int32) ApiDcimPowerPortsUpdateRequest { - return ApiDcimPowerPortsUpdateRequest{ +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 PowerPort -func (a *DcimAPIService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRequest) (*PowerPort, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservationsUpdateRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/power-ports/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-reservations/{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.writablePowerPortRequest == nil { - return localVarReturnValue, nil, reportError("writablePowerPortRequest is required and must be specified") + if r.rackReservationRequest == nil { + return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") } // to determine the Content-Type header @@ -86100,7 +101193,7 @@ func (a *DcimAPIService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePowerPortRequest + localVarPostBody = r.rackReservationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -86152,56 +101245,56 @@ func (a *DcimAPIService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackReservationsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackReservationRequest *[]RackReservationRequest +type ApiDcimRackRolesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + rackRoleRequest *[]RackRoleRequest } -func (r ApiDcimRackReservationsBulkDestroyRequest) RackReservationRequest(rackReservationRequest []RackReservationRequest) ApiDcimRackReservationsBulkDestroyRequest { - r.rackReservationRequest = &rackReservationRequest +func (r ApiDcimRackRolesBulkDestroyRequest) RackRoleRequest(rackRoleRequest []RackRoleRequest) ApiDcimRackRolesBulkDestroyRequest { + r.rackRoleRequest = &rackRoleRequest return r } -func (r ApiDcimRackReservationsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimRackReservationsBulkDestroyExecute(r) +func (r ApiDcimRackRolesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackRolesBulkDestroyExecute(r) } /* -DcimRackReservationsBulkDestroy Method for DcimRackReservationsBulkDestroy +DcimRackRolesBulkDestroy Method for DcimRackRolesBulkDestroy -Delete a list of rack reservation objects. +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 ApiDcimRackReservationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesBulkDestroyRequest */ -func (a *DcimAPIService) DcimRackReservationsBulkDestroy(ctx context.Context) ApiDcimRackReservationsBulkDestroyRequest { - return ApiDcimRackReservationsBulkDestroyRequest{ +func (a *DcimAPIService) DcimRackRolesBulkDestroy(ctx context.Context) ApiDcimRackRolesBulkDestroyRequest { + return ApiDcimRackRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackReservationsBulkDestroyRequest) (*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.DcimRackReservationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/" + localVarPath := localBasePath + "/api/dcim/rack-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackReservationRequest == nil { - return nil, reportError("rackReservationRequest is required and must be specified") + if r.rackRoleRequest == nil { + return nil, reportError("rackRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -86222,7 +101315,7 @@ func (a *DcimAPIService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackRes localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackReservationRequest + localVarPostBody = r.rackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -86265,59 +101358,58 @@ func (a *DcimAPIService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackRes return localVarHTTPResponse, nil } -type ApiDcimRackReservationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackReservationRequest *[]RackReservationRequest +type ApiDcimRackRolesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + rackRoleRequest *[]RackRoleRequest } -func (r ApiDcimRackReservationsBulkPartialUpdateRequest) RackReservationRequest(rackReservationRequest []RackReservationRequest) ApiDcimRackReservationsBulkPartialUpdateRequest { - r.rackReservationRequest = &rackReservationRequest +func (r ApiDcimRackRolesBulkPartialUpdateRequest) RackRoleRequest(rackRoleRequest []RackRoleRequest) ApiDcimRackRolesBulkPartialUpdateRequest { + r.rackRoleRequest = &rackRoleRequest return r } -func (r ApiDcimRackReservationsBulkPartialUpdateRequest) Execute() ([]RackReservation, *http.Response, error) { - return r.ApiService.DcimRackReservationsBulkPartialUpdateExecute(r) +func (r ApiDcimRackRolesBulkPartialUpdateRequest) Execute() ([]RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesBulkPartialUpdateExecute(r) } /* -DcimRackReservationsBulkPartialUpdate Method for DcimRackReservationsBulkPartialUpdate +DcimRackRolesBulkPartialUpdate Method for DcimRackRolesBulkPartialUpdate -Patch a list of rack reservation objects. +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 ApiDcimRackReservationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdate(ctx context.Context) ApiDcimRackReservationsBulkPartialUpdateRequest { - return ApiDcimRackReservationsBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimRackRolesBulkPartialUpdate(ctx context.Context) ApiDcimRackRolesBulkPartialUpdateRequest { + return ApiDcimRackRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackReservation -func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimRackReservationsBulkPartialUpdateRequest) ([]RackReservation, *http.Response, error) { +// @return []RackRole +func (a *DcimAPIService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRolesBulkPartialUpdateRequest) ([]RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackReservation + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/" + localVarPath := localBasePath + "/api/dcim/rack-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackReservationRequest == nil { - return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -86338,7 +101430,7 @@ func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackReservationRequest + localVarPostBody = r.rackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -86390,59 +101482,58 @@ func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackReservationsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackReservationRequest *[]RackReservationRequest +type ApiDcimRackRolesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + rackRoleRequest *[]RackRoleRequest } -func (r ApiDcimRackReservationsBulkUpdateRequest) RackReservationRequest(rackReservationRequest []RackReservationRequest) ApiDcimRackReservationsBulkUpdateRequest { - r.rackReservationRequest = &rackReservationRequest +func (r ApiDcimRackRolesBulkUpdateRequest) RackRoleRequest(rackRoleRequest []RackRoleRequest) ApiDcimRackRolesBulkUpdateRequest { + r.rackRoleRequest = &rackRoleRequest return r } -func (r ApiDcimRackReservationsBulkUpdateRequest) Execute() ([]RackReservation, *http.Response, error) { - return r.ApiService.DcimRackReservationsBulkUpdateExecute(r) +func (r ApiDcimRackRolesBulkUpdateRequest) Execute() ([]RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesBulkUpdateExecute(r) } /* -DcimRackReservationsBulkUpdate Method for DcimRackReservationsBulkUpdate +DcimRackRolesBulkUpdate Method for DcimRackRolesBulkUpdate -Put a list of rack reservation objects. +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 ApiDcimRackReservationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesBulkUpdateRequest */ -func (a *DcimAPIService) DcimRackReservationsBulkUpdate(ctx context.Context) ApiDcimRackReservationsBulkUpdateRequest { - return ApiDcimRackReservationsBulkUpdateRequest{ +func (a *DcimAPIService) DcimRackRolesBulkUpdate(ctx context.Context) ApiDcimRackRolesBulkUpdateRequest { + return ApiDcimRackRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackReservation -func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackReservationsBulkUpdateRequest) ([]RackReservation, *http.Response, error) { +// @return []RackRole +func (a *DcimAPIService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUpdateRequest) ([]RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackReservation + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/" + localVarPath := localBasePath + "/api/dcim/rack-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackReservationRequest == nil { - return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -86463,7 +101554,7 @@ func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackRese localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackReservationRequest + localVarPostBody = r.rackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -86515,59 +101606,58 @@ func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackRese return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackReservationsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackReservationRequest *RackReservationRequest +type ApiDcimRackRolesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + rackRoleRequest *RackRoleRequest } -func (r ApiDcimRackReservationsCreateRequest) RackReservationRequest(rackReservationRequest RackReservationRequest) ApiDcimRackReservationsCreateRequest { - r.rackReservationRequest = &rackReservationRequest +func (r ApiDcimRackRolesCreateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesCreateRequest { + r.rackRoleRequest = &rackRoleRequest return r } -func (r ApiDcimRackReservationsCreateRequest) Execute() (*RackReservation, *http.Response, error) { - return r.ApiService.DcimRackReservationsCreateExecute(r) +func (r ApiDcimRackRolesCreateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesCreateExecute(r) } /* -DcimRackReservationsCreate Method for DcimRackReservationsCreate +DcimRackRolesCreate Method for DcimRackRolesCreate -Post a list of rack reservation objects. +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 ApiDcimRackReservationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesCreateRequest */ -func (a *DcimAPIService) DcimRackReservationsCreate(ctx context.Context) ApiDcimRackReservationsCreateRequest { - return ApiDcimRackReservationsCreateRequest{ +func (a *DcimAPIService) DcimRackRolesCreate(ctx context.Context) ApiDcimRackRolesCreateRequest { + return ApiDcimRackRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RackReservation -func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservationsCreateRequest) (*RackReservation, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/" + localVarPath := localBasePath + "/api/dcim/rack-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackReservationRequest == nil { - return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -86588,7 +101678,7 @@ func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackReservationRequest + localVarPostBody = r.rackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -86640,47 +101730,47 @@ func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackReservationsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimRackRolesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimRackReservationsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimRackReservationsDestroyExecute(r) +func (r ApiDcimRackRolesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackRolesDestroyExecute(r) } /* -DcimRackReservationsDestroy Method for DcimRackReservationsDestroy +DcimRackRolesDestroy Method for DcimRackRolesDestroy -Delete a rack reservation object. +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 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 role. + @return ApiDcimRackRolesDestroyRequest */ -func (a *DcimAPIService) DcimRackReservationsDestroy(ctx context.Context, id int32) ApiDcimRackReservationsDestroyRequest { - return ApiDcimRackReservationsDestroyRequest{ +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) DcimRackReservationsDestroyExecute(r ApiDcimRackReservationsDestroyRequest) (*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.DcimRackReservationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -86746,527 +101836,621 @@ func (a *DcimAPIService) DcimRackReservationsDestroyExecute(r ApiDcimRackReserva return localVarHTTPResponse, nil } -type ApiDcimRackReservationsListRequest struct { - 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 - 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 +type ApiDcimRackRolesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + 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 - 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 - unit *float32 - updatedByRequest *string - user *[]string - userN *[]string - userId *[]int32 - userIdN *[]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 } -func (r ApiDcimRackReservationsListRequest) Created(created []time.Time) ApiDcimRackReservationsListRequest { - r.created = &created +func (r ApiDcimRackRolesListRequest) Color(color []string) ApiDcimRackRolesListRequest { + r.color = &color return r } -func (r ApiDcimRackReservationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackReservationsListRequest { - r.createdEmpty = &createdEmpty +func (r ApiDcimRackRolesListRequest) ColorEmpty(colorEmpty bool) ApiDcimRackRolesListRequest { + r.colorEmpty = &colorEmpty return r } -func (r ApiDcimRackReservationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackReservationsListRequest { - r.createdGt = &createdGt +func (r ApiDcimRackRolesListRequest) ColorIc(colorIc []string) ApiDcimRackRolesListRequest { + r.colorIc = &colorIc return r } -func (r ApiDcimRackReservationsListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackReservationsListRequest { - r.createdGte = &createdGte +func (r ApiDcimRackRolesListRequest) ColorIe(colorIe []string) ApiDcimRackRolesListRequest { + r.colorIe = &colorIe return r } -func (r ApiDcimRackReservationsListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackReservationsListRequest { - r.createdLt = &createdLt +func (r ApiDcimRackRolesListRequest) ColorIew(colorIew []string) ApiDcimRackRolesListRequest { + r.colorIew = &colorIew return r } -func (r ApiDcimRackReservationsListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackReservationsListRequest { - r.createdLte = &createdLte +func (r ApiDcimRackRolesListRequest) ColorIsw(colorIsw []string) ApiDcimRackRolesListRequest { + r.colorIsw = &colorIsw return r } -func (r ApiDcimRackReservationsListRequest) CreatedN(createdN []time.Time) ApiDcimRackReservationsListRequest { - r.createdN = &createdN +func (r ApiDcimRackRolesListRequest) ColorN(colorN []string) ApiDcimRackRolesListRequest { + r.colorN = &colorN return r } -func (r ApiDcimRackReservationsListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackReservationsListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimRackRolesListRequest) ColorNic(colorNic []string) ApiDcimRackRolesListRequest { + r.colorNic = &colorNic return r } -func (r ApiDcimRackReservationsListRequest) Description(description []string) ApiDcimRackReservationsListRequest { - r.description = &description +func (r ApiDcimRackRolesListRequest) ColorNie(colorNie []string) ApiDcimRackRolesListRequest { + r.colorNie = &colorNie return r } -func (r ApiDcimRackReservationsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackReservationsListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiDcimRackRolesListRequest) ColorNiew(colorNiew []string) ApiDcimRackRolesListRequest { + r.colorNiew = &colorNiew return r } -func (r ApiDcimRackReservationsListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackReservationsListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimRackRolesListRequest) ColorNisw(colorNisw []string) ApiDcimRackRolesListRequest { + r.colorNisw = &colorNisw return r } -func (r ApiDcimRackReservationsListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackReservationsListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimRackRolesListRequest) Created(created []time.Time) ApiDcimRackRolesListRequest { + r.created = &created return r } -func (r ApiDcimRackReservationsListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackReservationsListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimRackRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackRolesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiDcimRackReservationsListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackReservationsListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimRackRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackRolesListRequest { + r.createdGt = &createdGt return r } -func (r ApiDcimRackReservationsListRequest) DescriptionN(descriptionN []string) ApiDcimRackReservationsListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimRackRolesListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackRolesListRequest { + r.createdGte = &createdGte return r } -func (r ApiDcimRackReservationsListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackReservationsListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimRackRolesListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackRolesListRequest { + r.createdLt = &createdLt return r } -func (r ApiDcimRackReservationsListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackReservationsListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimRackRolesListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackRolesListRequest { + r.createdLte = &createdLte return r } -func (r ApiDcimRackReservationsListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackReservationsListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimRackRolesListRequest) CreatedN(createdN []time.Time) ApiDcimRackRolesListRequest { + r.createdN = &createdN return r } -func (r ApiDcimRackReservationsListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackReservationsListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimRackRolesListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackRolesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiDcimRackReservationsListRequest) Id(id []int32) ApiDcimRackReservationsListRequest { - r.id = &id +func (r ApiDcimRackRolesListRequest) Description(description []string) ApiDcimRackRolesListRequest { + r.description = &description return r } -func (r ApiDcimRackReservationsListRequest) IdEmpty(idEmpty bool) ApiDcimRackReservationsListRequest { - r.idEmpty = &idEmpty +func (r ApiDcimRackRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackRolesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimRackReservationsListRequest) IdGt(idGt []int32) ApiDcimRackReservationsListRequest { - r.idGt = &idGt +func (r ApiDcimRackRolesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackRolesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiDcimRackReservationsListRequest) IdGte(idGte []int32) ApiDcimRackReservationsListRequest { - r.idGte = &idGte +func (r ApiDcimRackRolesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackRolesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiDcimRackReservationsListRequest) IdLt(idLt []int32) ApiDcimRackReservationsListRequest { - r.idLt = &idLt +func (r ApiDcimRackRolesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackRolesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiDcimRackReservationsListRequest) IdLte(idLte []int32) ApiDcimRackReservationsListRequest { - r.idLte = &idLte +func (r ApiDcimRackRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackRolesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimRackReservationsListRequest) IdN(idN []int32) ApiDcimRackReservationsListRequest { - r.idN = &idN +func (r ApiDcimRackRolesListRequest) DescriptionN(descriptionN []string) ApiDcimRackRolesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiDcimRackReservationsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackReservationsListRequest { - r.lastUpdated = &lastUpdated +func (r ApiDcimRackRolesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackRolesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiDcimRackReservationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackReservationsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiDcimRackRolesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackRolesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiDcimRackReservationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackReservationsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiDcimRackRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackRolesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimRackReservationsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackReservationsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiDcimRackRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackRolesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimRackReservationsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackReservationsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiDcimRackRolesListRequest) Id(id []int32) ApiDcimRackRolesListRequest { + r.id = &id return r } -func (r ApiDcimRackReservationsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackReservationsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiDcimRackRolesListRequest) IdEmpty(idEmpty bool) ApiDcimRackRolesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiDcimRackReservationsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackReservationsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiDcimRackRolesListRequest) IdGt(idGt []int32) ApiDcimRackRolesListRequest { + r.idGt = &idGt return r } -// Number of results to return per page. -func (r ApiDcimRackReservationsListRequest) Limit(limit int32) ApiDcimRackReservationsListRequest { - r.limit = &limit +func (r ApiDcimRackRolesListRequest) IdGte(idGte []int32) ApiDcimRackRolesListRequest { + r.idGte = &idGte return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) Location(location []int32) ApiDcimRackReservationsListRequest { - r.location = &location +func (r ApiDcimRackRolesListRequest) IdLt(idLt []int32) ApiDcimRackRolesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimRackRolesListRequest) IdLte(idLte []int32) ApiDcimRackRolesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimRackRolesListRequest) IdN(idN []int32) ApiDcimRackRolesListRequest { + r.idN = &idN return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) LocationN(locationN []int32) ApiDcimRackReservationsListRequest { - r.locationN = &locationN +func (r ApiDcimRackRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdated = &lastUpdated return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationId(locationId []int32) ApiDcimRackReservationsListRequest { - r.locationId = &locationId +func (r ApiDcimRackRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []int32) ApiDcimRackReservationsListRequest { - r.locationIdN = &locationIdN +func (r ApiDcimRackRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimRackReservationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackReservationsListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiDcimRackRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -// The initial index from which to return the results. -func (r ApiDcimRackReservationsListRequest) Offset(offset int32) ApiDcimRackReservationsListRequest { - r.offset = &offset +func (r ApiDcimRackRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -// Which field to use when ordering the results. -func (r ApiDcimRackReservationsListRequest) Ordering(ordering string) ApiDcimRackReservationsListRequest { - r.ordering = &ordering +func (r ApiDcimRackRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -// Search -func (r ApiDcimRackReservationsListRequest) Q(q string) ApiDcimRackReservationsListRequest { - r.q = &q +func (r ApiDcimRackRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -// Rack (ID) -func (r ApiDcimRackReservationsListRequest) RackId(rackId []int32) ApiDcimRackReservationsListRequest { - r.rackId = &rackId +// Number of results to return per page. +func (r ApiDcimRackRolesListRequest) Limit(limit int32) ApiDcimRackRolesListRequest { + r.limit = &limit return r } -// Rack (ID) -func (r ApiDcimRackReservationsListRequest) RackIdN(rackIdN []int32) ApiDcimRackReservationsListRequest { - r.rackIdN = &rackIdN +func (r ApiDcimRackRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackRolesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) Region(region []int32) ApiDcimRackReservationsListRequest { - r.region = ®ion +func (r ApiDcimRackRolesListRequest) Name(name []string) ApiDcimRackRolesListRequest { + r.name = &name return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) RegionN(regionN []int32) ApiDcimRackReservationsListRequest { - r.regionN = ®ionN +func (r ApiDcimRackRolesListRequest) NameEmpty(nameEmpty bool) ApiDcimRackRolesListRequest { + r.nameEmpty = &nameEmpty return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionId(regionId []int32) ApiDcimRackReservationsListRequest { - r.regionId = ®ionId +func (r ApiDcimRackRolesListRequest) NameIc(nameIc []string) ApiDcimRackRolesListRequest { + r.nameIc = &nameIc return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []int32) ApiDcimRackReservationsListRequest { - r.regionIdN = ®ionIdN +func (r ApiDcimRackRolesListRequest) NameIe(nameIe []string) ApiDcimRackRolesListRequest { + r.nameIe = &nameIe return r } -// Site (slug) -func (r ApiDcimRackReservationsListRequest) Site(site []string) ApiDcimRackReservationsListRequest { - r.site = &site +func (r ApiDcimRackRolesListRequest) NameIew(nameIew []string) ApiDcimRackRolesListRequest { + r.nameIew = &nameIew return r } -// Site (slug) -func (r ApiDcimRackReservationsListRequest) SiteN(siteN []string) ApiDcimRackReservationsListRequest { - r.siteN = &siteN +func (r ApiDcimRackRolesListRequest) NameIsw(nameIsw []string) ApiDcimRackRolesListRequest { + r.nameIsw = &nameIsw return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []int32) ApiDcimRackReservationsListRequest { - r.siteGroup = &siteGroup +func (r ApiDcimRackRolesListRequest) NameN(nameN []string) ApiDcimRackRolesListRequest { + r.nameN = &nameN return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRackReservationsListRequest { - r.siteGroupN = &siteGroupN +func (r ApiDcimRackRolesListRequest) NameNic(nameNic []string) ApiDcimRackRolesListRequest { + r.nameNic = &nameNic return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRackReservationsListRequest { - r.siteGroupId = &siteGroupId +func (r ApiDcimRackRolesListRequest) NameNie(nameNie []string) ApiDcimRackRolesListRequest { + r.nameNie = &nameNie return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRackReservationsListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiDcimRackRolesListRequest) NameNiew(nameNiew []string) ApiDcimRackRolesListRequest { + r.nameNiew = &nameNiew return r } -// Site (ID) -func (r ApiDcimRackReservationsListRequest) SiteId(siteId []int32) ApiDcimRackReservationsListRequest { - r.siteId = &siteId +func (r ApiDcimRackRolesListRequest) NameNisw(nameNisw []string) ApiDcimRackRolesListRequest { + r.nameNisw = &nameNisw return r } -// Site (ID) -func (r ApiDcimRackReservationsListRequest) SiteIdN(siteIdN []int32) ApiDcimRackReservationsListRequest { - r.siteIdN = &siteIdN +// The initial index from which to return the results. +func (r ApiDcimRackRolesListRequest) Offset(offset int32) ApiDcimRackRolesListRequest { + r.offset = &offset return r } -func (r ApiDcimRackReservationsListRequest) Tag(tag []string) ApiDcimRackReservationsListRequest { - r.tag = &tag +// Which field to use when ordering the results. +func (r ApiDcimRackRolesListRequest) Ordering(ordering string) ApiDcimRackRolesListRequest { + r.ordering = &ordering return r } -func (r ApiDcimRackReservationsListRequest) TagN(tagN []string) ApiDcimRackReservationsListRequest { - r.tagN = &tagN +// Search +func (r ApiDcimRackRolesListRequest) Q(q string) ApiDcimRackRolesListRequest { + r.q = &q return r } -// Tenant (slug) -func (r ApiDcimRackReservationsListRequest) Tenant(tenant []string) ApiDcimRackReservationsListRequest { - r.tenant = &tenant +func (r ApiDcimRackRolesListRequest) Slug(slug []string) ApiDcimRackRolesListRequest { + r.slug = &slug return r } -// Tenant (slug) -func (r ApiDcimRackReservationsListRequest) TenantN(tenantN []string) ApiDcimRackReservationsListRequest { - r.tenantN = &tenantN +func (r ApiDcimRackRolesListRequest) SlugEmpty(slugEmpty bool) ApiDcimRackRolesListRequest { + r.slugEmpty = &slugEmpty return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimRackReservationsListRequest { - r.tenantGroup = &tenantGroup +func (r ApiDcimRackRolesListRequest) SlugIc(slugIc []string) ApiDcimRackRolesListRequest { + r.slugIc = &slugIc return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRackReservationsListRequest { - r.tenantGroupN = &tenantGroupN +func (r ApiDcimRackRolesListRequest) SlugIe(slugIe []string) ApiDcimRackRolesListRequest { + r.slugIe = &slugIe return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRackReservationsListRequest { - r.tenantGroupId = &tenantGroupId +func (r ApiDcimRackRolesListRequest) SlugIew(slugIew []string) ApiDcimRackRolesListRequest { + r.slugIew = &slugIew return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRackReservationsListRequest { - r.tenantGroupIdN = &tenantGroupIdN +func (r ApiDcimRackRolesListRequest) SlugIsw(slugIsw []string) ApiDcimRackRolesListRequest { + r.slugIsw = &slugIsw return r } -// Tenant (ID) -func (r ApiDcimRackReservationsListRequest) TenantId(tenantId []*int32) ApiDcimRackReservationsListRequest { - r.tenantId = &tenantId +func (r ApiDcimRackRolesListRequest) SlugN(slugN []string) ApiDcimRackRolesListRequest { + r.slugN = &slugN return r } -// Tenant (ID) -func (r ApiDcimRackReservationsListRequest) TenantIdN(tenantIdN []*int32) ApiDcimRackReservationsListRequest { - r.tenantIdN = &tenantIdN +func (r ApiDcimRackRolesListRequest) SlugNic(slugNic []string) ApiDcimRackRolesListRequest { + r.slugNic = &slugNic return r } -func (r ApiDcimRackReservationsListRequest) Unit(unit float32) ApiDcimRackReservationsListRequest { - r.unit = &unit +func (r ApiDcimRackRolesListRequest) SlugNie(slugNie []string) ApiDcimRackRolesListRequest { + r.slugNie = &slugNie return r } -func (r ApiDcimRackReservationsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackReservationsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiDcimRackRolesListRequest) SlugNiew(slugNiew []string) ApiDcimRackRolesListRequest { + r.slugNiew = &slugNiew return r } -// User (name) -func (r ApiDcimRackReservationsListRequest) User(user []string) ApiDcimRackReservationsListRequest { - r.user = &user +func (r ApiDcimRackRolesListRequest) SlugNisw(slugNisw []string) ApiDcimRackRolesListRequest { + r.slugNisw = &slugNisw return r } -// User (name) -func (r ApiDcimRackReservationsListRequest) UserN(userN []string) ApiDcimRackReservationsListRequest { - r.userN = &userN +func (r ApiDcimRackRolesListRequest) Tag(tag []string) ApiDcimRackRolesListRequest { + r.tag = &tag return r } -// User (ID) -func (r ApiDcimRackReservationsListRequest) UserId(userId []int32) ApiDcimRackReservationsListRequest { - r.userId = &userId +func (r ApiDcimRackRolesListRequest) TagN(tagN []string) ApiDcimRackRolesListRequest { + r.tagN = &tagN return r } -// User (ID) -func (r ApiDcimRackReservationsListRequest) UserIdN(userIdN []int32) ApiDcimRackReservationsListRequest { - r.userIdN = &userIdN +func (r ApiDcimRackRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackRolesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimRackReservationsListRequest) Execute() (*PaginatedRackReservationList, *http.Response, error) { - return r.ApiService.DcimRackReservationsListExecute(r) +func (r ApiDcimRackRolesListRequest) Execute() (*PaginatedRackRoleList, *http.Response, error) { + return r.ApiService.DcimRackRolesListExecute(r) } /* -DcimRackReservationsList Method for DcimRackReservationsList +DcimRackRolesList Method for DcimRackRolesList -Get a list of rack reservation objects. +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 ApiDcimRackReservationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesListRequest */ -func (a *DcimAPIService) DcimRackReservationsList(ctx context.Context) ApiDcimRackReservationsListRequest { - return ApiDcimRackReservationsListRequest{ +func (a *DcimAPIService) DcimRackRolesList(ctx context.Context) ApiDcimRackRolesListRequest { + return ApiDcimRackRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRackReservationList -func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservationsListRequest) (*PaginatedRackReservationList, *http.Response, error) { +// @return PaginatedRackRoleList +func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) (*PaginatedRackRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRackReservationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/" + localVarPath := localBasePath + "/api/dcim/rack-roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.color != nil { + t := *r.color + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") + } + } + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") + } + if r.colorIc != nil { + t := *r.colorIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") + } + } + if r.colorIe != nil { + t := *r.colorIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") + } + } + if r.colorIew != nil { + t := *r.colorIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") + } + } + if r.colorIsw != nil { + t := *r.colorIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") + } + } + if r.colorN != nil { + t := *r.colorN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") + } + } + if r.colorNic != nil { + t := *r.colorNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") + } + } + if r.colorNie != nil { + t := *r.colorNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") + } + } + if r.colorNiew != nil { + t := *r.colorNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") + } + } + if r.colorNisw != nil { + t := *r.colorNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -87274,10 +102458,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -87285,10 +102469,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -87296,10 +102480,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -87307,10 +102491,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -87318,10 +102502,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -87329,38 +102513,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -87368,10 +102552,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -87379,10 +102563,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -87390,10 +102574,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -87401,10 +102585,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -87412,10 +102596,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -87423,10 +102607,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -87434,10 +102618,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -87445,10 +102629,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -87456,24 +102640,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -87481,10 +102665,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -87492,10 +102676,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -87503,10 +102687,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -87514,10 +102698,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -87525,10 +102709,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -87536,10 +102720,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -87547,10 +102731,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -87558,10 +102742,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -87569,10 +102753,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -87580,10 +102764,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -87591,384 +102775,277 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.rackId != nil { - t := *r.rackId + 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, "rack_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.rackIdN != nil { - t := *r.rackIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") - } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.region != nil { - t := *r.region + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "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.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - 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.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - 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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.tag != nil { - t := *r.tag + if r.slug != nil { + t := *r.slug 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "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.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } - if r.tenant != nil { - t := *r.tenant + if r.slugIc != nil { + t := *r.slugIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + if r.slugIe != nil { + t := *r.slugIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + if r.slugIew != nil { + t := *r.slugIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + if r.slugIsw != nil { + t := *r.slugIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + if r.slugN != nil { + t := *r.slugN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + if r.slugNic != nil { + t := *r.slugNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + if r.slugNie != nil { + t := *r.slugNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + if r.slugNiew != nil { + t := *r.slugNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.unit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "unit", r.unit, "") - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.user != nil { - t := *r.user + if r.slugNisw != nil { + t := *r.slugNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } - if r.userN != nil { - t := *r.userN + 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, "user__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.userId != nil { - t := *r.userId + 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, "user_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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") - } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -88038,56 +103115,55 @@ func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservatio return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackReservationsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedRackReservationRequest *PatchedRackReservationRequest +type ApiDcimRackRolesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedRackRoleRequest *PatchedRackRoleRequest } -func (r ApiDcimRackReservationsPartialUpdateRequest) PatchedRackReservationRequest(patchedRackReservationRequest PatchedRackReservationRequest) ApiDcimRackReservationsPartialUpdateRequest { - r.patchedRackReservationRequest = &patchedRackReservationRequest +func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { + r.patchedRackRoleRequest = &patchedRackRoleRequest return r } -func (r ApiDcimRackReservationsPartialUpdateRequest) Execute() (*RackReservation, *http.Response, error) { - return r.ApiService.DcimRackReservationsPartialUpdateExecute(r) +func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesPartialUpdateExecute(r) } /* -DcimRackReservationsPartialUpdate Method for DcimRackReservationsPartialUpdate +DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate -Patch a rack reservation object. +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 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 role. + @return ApiDcimRackRolesPartialUpdateRequest */ -func (a *DcimAPIService) DcimRackReservationsPartialUpdate(ctx context.Context, id int32) ApiDcimRackReservationsPartialUpdateRequest { - return ApiDcimRackReservationsPartialUpdateRequest{ +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 RackReservation -func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackReservationsPartialUpdateRequest) (*RackReservation, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -88112,7 +103188,7 @@ func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedRackReservationRequest + localVarPostBody = r.patchedRackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -88164,50 +103240,49 @@ func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackReservationsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimRackRolesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimRackReservationsRetrieveRequest) Execute() (*RackReservation, *http.Response, error) { - return r.ApiService.DcimRackReservationsRetrieveExecute(r) +func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesRetrieveExecute(r) } /* -DcimRackReservationsRetrieve Method for DcimRackReservationsRetrieve +DcimRackRolesRetrieve Method for DcimRackRolesRetrieve -Get a rack reservation object. +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 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 role. + @return ApiDcimRackRolesRetrieveRequest */ -func (a *DcimAPIService) DcimRackReservationsRetrieve(ctx context.Context, id int32) ApiDcimRackReservationsRetrieveRequest { - return ApiDcimRackReservationsRetrieveRequest{ +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 RackReservation -func (a *DcimAPIService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReservationsRetrieveRequest) (*RackReservation, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -88282,63 +103357,62 @@ func (a *DcimAPIService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReserv return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackReservationsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - rackReservationRequest *RackReservationRequest +type ApiDcimRackRolesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + rackRoleRequest *RackRoleRequest } -func (r ApiDcimRackReservationsUpdateRequest) RackReservationRequest(rackReservationRequest RackReservationRequest) ApiDcimRackReservationsUpdateRequest { - r.rackReservationRequest = &rackReservationRequest +func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { + r.rackRoleRequest = &rackRoleRequest return r } -func (r ApiDcimRackReservationsUpdateRequest) Execute() (*RackReservation, *http.Response, error) { - return r.ApiService.DcimRackReservationsUpdateExecute(r) +func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesUpdateExecute(r) } /* -DcimRackReservationsUpdate Method for DcimRackReservationsUpdate +DcimRackRolesUpdate Method for DcimRackRolesUpdate -Put a rack reservation object. +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 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 role. + @return ApiDcimRackRolesUpdateRequest */ -func (a *DcimAPIService) DcimRackReservationsUpdate(ctx context.Context, id int32) ApiDcimRackReservationsUpdateRequest { - return ApiDcimRackReservationsUpdateRequest{ +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 RackReservation -func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservationsUpdateRequest) (*RackReservation, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-reservations/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-roles/{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.rackReservationRequest == nil { - return localVarReturnValue, nil, reportError("rackReservationRequest is required and must be specified") + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -88359,7 +103433,7 @@ func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackReservationRequest + localVarPostBody = r.rackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -88411,56 +103485,56 @@ func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackRoleRequest *[]RackRoleRequest +type ApiDcimRackTypesBulkDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + rackTypeRequest *[]RackTypeRequest } -func (r ApiDcimRackRolesBulkDestroyRequest) RackRoleRequest(rackRoleRequest []RackRoleRequest) ApiDcimRackRolesBulkDestroyRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesBulkDestroyRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkDestroyRequest { + r.rackTypeRequest = &rackTypeRequest return r } -func (r ApiDcimRackRolesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimRackRolesBulkDestroyExecute(r) +func (r ApiDcimRackTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesBulkDestroyExecute(r) } /* -DcimRackRolesBulkDestroy Method for DcimRackRolesBulkDestroy +DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy -Delete a list of rack role objects. +Delete a list of rack type 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 ApiDcimRackTypesBulkDestroyRequest */ -func (a *DcimAPIService) DcimRackRolesBulkDestroy(ctx context.Context) ApiDcimRackRolesBulkDestroyRequest { - return ApiDcimRackRolesBulkDestroyRequest{ +func (a *DcimAPIService) DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest { + return ApiDcimRackTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimAPIService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*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.DcimRackTypesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/" + localVarPath := localBasePath + "/api/dcim/rack-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return nil, reportError("rackRoleRequest is required and must be specified") + if r.rackTypeRequest == nil { + return nil, reportError("rackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -88481,7 +103555,7 @@ func (a *DcimAPIService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.rackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -88524,59 +103598,58 @@ func (a *DcimAPIService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkD return localVarHTTPResponse, nil } -type ApiDcimRackRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackRoleRequest *[]RackRoleRequest +type ApiDcimRackTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + rackTypeRequest *[]RackTypeRequest } -func (r ApiDcimRackRolesBulkPartialUpdateRequest) RackRoleRequest(rackRoleRequest []RackRoleRequest) ApiDcimRackRolesBulkPartialUpdateRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesBulkPartialUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkPartialUpdateRequest { + r.rackTypeRequest = &rackTypeRequest return r } -func (r ApiDcimRackRolesBulkPartialUpdateRequest) Execute() ([]RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesBulkPartialUpdateExecute(r) +func (r ApiDcimRackTypesBulkPartialUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkPartialUpdateExecute(r) } /* -DcimRackRolesBulkPartialUpdate Method for DcimRackRolesBulkPartialUpdate +DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate -Patch a list of rack role objects. +Patch a list of rack type 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 ApiDcimRackTypesBulkPartialUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesBulkPartialUpdate(ctx context.Context) ApiDcimRackRolesBulkPartialUpdateRequest { - return ApiDcimRackRolesBulkPartialUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest { + return ApiDcimRackTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackRole -func (a *DcimAPIService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRolesBulkPartialUpdateRequest) ([]RackRole, *http.Response, error) { +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/" + localVarPath := localBasePath + "/api/dcim/rack-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -88597,7 +103670,7 @@ func (a *DcimAPIService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRole localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.rackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -88649,59 +103722,58 @@ func (a *DcimAPIService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRole return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackRoleRequest *[]RackRoleRequest +type ApiDcimRackTypesBulkUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + rackTypeRequest *[]RackTypeRequest } -func (r ApiDcimRackRolesBulkUpdateRequest) RackRoleRequest(rackRoleRequest []RackRoleRequest) ApiDcimRackRolesBulkUpdateRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesBulkUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkUpdateRequest { + r.rackTypeRequest = &rackTypeRequest return r } -func (r ApiDcimRackRolesBulkUpdateRequest) Execute() ([]RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesBulkUpdateExecute(r) +func (r ApiDcimRackTypesBulkUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkUpdateExecute(r) } /* -DcimRackRolesBulkUpdate Method for DcimRackRolesBulkUpdate +DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate -Put a list of rack role objects. +Put a list of rack type 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 ApiDcimRackTypesBulkUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesBulkUpdate(ctx context.Context) ApiDcimRackRolesBulkUpdateRequest { - return ApiDcimRackRolesBulkUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest { + return ApiDcimRackTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackRole -func (a *DcimAPIService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUpdateRequest) ([]RackRole, *http.Response, error) { +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/" + localVarPath := localBasePath + "/api/dcim/rack-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -88722,7 +103794,7 @@ func (a *DcimAPIService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.rackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -88774,59 +103846,58 @@ func (a *DcimAPIService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackRoleRequest *RackRoleRequest +type ApiDcimRackTypesCreateRequest struct { + ctx context.Context + ApiService DcimAPI + writableRackTypeRequest *WritableRackTypeRequest } -func (r ApiDcimRackRolesCreateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesCreateRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesCreateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesCreateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest return r } -func (r ApiDcimRackRolesCreateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesCreateExecute(r) +func (r ApiDcimRackTypesCreateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesCreateExecute(r) } /* -DcimRackRolesCreate Method for DcimRackRolesCreate +DcimRackTypesCreate Method for DcimRackTypesCreate -Post a list of rack role objects. +Post a list of rack type 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 ApiDcimRackTypesCreateRequest */ -func (a *DcimAPIService) DcimRackRolesCreate(ctx context.Context) ApiDcimRackRolesCreateRequest { - return ApiDcimRackRolesCreateRequest{ +func (a *DcimAPIService) DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest { + return ApiDcimRackTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RackRole -func (a *DcimAPIService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/" + localVarPath := localBasePath + "/api/dcim/rack-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -88847,7 +103918,7 @@ func (a *DcimAPIService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.writableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -88899,47 +103970,47 @@ func (a *DcimAPIService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimRackTypesDestroyRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimRackRolesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimRackRolesDestroyExecute(r) +func (r ApiDcimRackTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesDestroyExecute(r) } /* -DcimRackRolesDestroy Method for DcimRackRolesDestroy +DcimRackTypesDestroy Method for DcimRackTypesDestroy -Delete a rack role object. +Delete a rack 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 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 type. + @return ApiDcimRackTypesDestroyRequest */ -func (a *DcimAPIService) DcimRackRolesDestroy(ctx context.Context, id int32) ApiDcimRackRolesDestroyRequest { - return ApiDcimRackRolesDestroyRequest{ +func (a *DcimAPIService) DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest { + return ApiDcimRackTypesDestroyRequest{ 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) DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRequest) (*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.DcimRackTypesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -89005,804 +104076,1218 @@ func (a *DcimAPIService) DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRe return localVarHTTPResponse, nil } -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 - 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 +type ApiDcimRackTypesListRequest struct { + ctx context.Context + ApiService DcimAPI + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + formFactor *[]string + formFactorEmpty *bool + formFactorIc *[]string + formFactorIe *[]string + formFactorIew *[]string + formFactorIsw *[]string + formFactorN *[]string + formFactorNic *[]string + formFactorNie *[]string + formFactorNiew *[]string + formFactorNisw *[]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 + maxWeight *[]int32 + maxWeightEmpty *bool + maxWeightGt *[]int32 + maxWeightGte *[]int32 + maxWeightLt *[]int32 + maxWeightLte *[]int32 + maxWeightN *[]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 - 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 + mountingDepth *[]int32 + mountingDepthEmpty *bool + mountingDepthGt *[]int32 + mountingDepthGte *[]int32 + mountingDepthLt *[]int32 + mountingDepthLte *[]int32 + mountingDepthN *[]int32 + offset *int32 + ordering *string + outerDepth *[]int32 + outerDepthEmpty *bool + outerDepthGt *[]int32 + outerDepthGte *[]int32 + outerDepthLt *[]int32 + outerDepthLte *[]int32 + outerDepthN *[]int32 + outerUnit *DcimRackTypesListOuterUnitParameter + outerWidth *[]int32 + outerWidthEmpty *bool + outerWidthGt *[]int32 + outerWidthGte *[]int32 + outerWidthLt *[]int32 + outerWidthLte *[]int32 + outerWidthN *[]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 + startingUnit *[]int32 + startingUnitEmpty *bool + startingUnitGt *[]int32 + startingUnitGte *[]int32 + startingUnitLt *[]int32 + startingUnitLte *[]int32 + startingUnitN *[]int32 + tag *[]string + tagN *[]string + uHeight *[]int32 + uHeightEmpty *bool + uHeightGt *[]int32 + uHeightGte *[]int32 + uHeightLt *[]int32 + uHeightLte *[]int32 + uHeightN *[]int32 + updatedByRequest *string + weight *[]float64 + weightEmpty *bool + weightGt *[]float64 + weightGte *[]float64 + weightLt *[]float64 + weightLte *[]float64 + weightN *[]float64 + weightUnit *DcimDeviceTypesListWeightUnitParameter + width *[]int32 + widthIc *[]int32 + widthIe *[]int32 + widthIew *[]int32 + widthIsw *[]int32 + widthN *[]int32 + widthNic *[]int32 + widthNie *[]int32 + widthNiew *[]int32 + widthNisw *[]int32 +} + +func (r ApiDcimRackTypesListRequest) Created(created []time.Time) ApiDcimRackTypesListRequest { + r.created = &created + return r } -func (r ApiDcimRackRolesListRequest) Color(color []string) ApiDcimRackRolesListRequest { - r.color = &color +func (r ApiDcimRackTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackTypesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiDcimRackRolesListRequest) ColorEmpty(colorEmpty bool) ApiDcimRackRolesListRequest { - r.colorEmpty = &colorEmpty +func (r ApiDcimRackTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackTypesListRequest { + r.createdGt = &createdGt return r } -func (r ApiDcimRackRolesListRequest) ColorIc(colorIc []string) ApiDcimRackRolesListRequest { - r.colorIc = &colorIc +func (r ApiDcimRackTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackTypesListRequest { + r.createdGte = &createdGte return r } -func (r ApiDcimRackRolesListRequest) ColorIe(colorIe []string) ApiDcimRackRolesListRequest { - r.colorIe = &colorIe +func (r ApiDcimRackTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackTypesListRequest { + r.createdLt = &createdLt return r } -func (r ApiDcimRackRolesListRequest) ColorIew(colorIew []string) ApiDcimRackRolesListRequest { - r.colorIew = &colorIew +func (r ApiDcimRackTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackTypesListRequest { + r.createdLte = &createdLte return r } -func (r ApiDcimRackRolesListRequest) ColorIsw(colorIsw []string) ApiDcimRackRolesListRequest { - r.colorIsw = &colorIsw +func (r ApiDcimRackTypesListRequest) CreatedN(createdN []time.Time) ApiDcimRackTypesListRequest { + r.createdN = &createdN return r } -func (r ApiDcimRackRolesListRequest) ColorN(colorN []string) ApiDcimRackRolesListRequest { - r.colorN = &colorN +func (r ApiDcimRackTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackTypesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiDcimRackRolesListRequest) ColorNic(colorNic []string) ApiDcimRackRolesListRequest { - r.colorNic = &colorNic +func (r ApiDcimRackTypesListRequest) DescUnits(descUnits bool) ApiDcimRackTypesListRequest { + r.descUnits = &descUnits return r } -func (r ApiDcimRackRolesListRequest) ColorNie(colorNie []string) ApiDcimRackRolesListRequest { - r.colorNie = &colorNie +func (r ApiDcimRackTypesListRequest) Description(description []string) ApiDcimRackTypesListRequest { + r.description = &description return r } -func (r ApiDcimRackRolesListRequest) ColorNiew(colorNiew []string) ApiDcimRackRolesListRequest { - r.colorNiew = &colorNiew +func (r ApiDcimRackTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackTypesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiDcimRackRolesListRequest) ColorNisw(colorNisw []string) ApiDcimRackRolesListRequest { - r.colorNisw = &colorNisw +func (r ApiDcimRackTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackTypesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiDcimRackRolesListRequest) Created(created []time.Time) ApiDcimRackRolesListRequest { - r.created = &created +func (r ApiDcimRackTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackTypesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiDcimRackRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackRolesListRequest { - r.createdEmpty = &createdEmpty +func (r ApiDcimRackTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackTypesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiDcimRackRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackRolesListRequest { - r.createdGt = &createdGt +func (r ApiDcimRackTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackTypesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiDcimRackRolesListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackRolesListRequest { - r.createdGte = &createdGte +func (r ApiDcimRackTypesListRequest) DescriptionN(descriptionN []string) ApiDcimRackTypesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiDcimRackRolesListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackRolesListRequest { - r.createdLt = &createdLt +func (r ApiDcimRackTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackTypesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiDcimRackRolesListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackRolesListRequest { - r.createdLte = &createdLte +func (r ApiDcimRackTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackTypesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiDcimRackRolesListRequest) CreatedN(createdN []time.Time) ApiDcimRackRolesListRequest { - r.createdN = &createdN +func (r ApiDcimRackTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackTypesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiDcimRackRolesListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackRolesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiDcimRackTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackTypesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiDcimRackRolesListRequest) Description(description []string) ApiDcimRackRolesListRequest { - r.description = &description +func (r ApiDcimRackTypesListRequest) FormFactor(formFactor []string) ApiDcimRackTypesListRequest { + r.formFactor = &formFactor return r } -func (r ApiDcimRackRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackRolesListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiDcimRackTypesListRequest) FormFactorEmpty(formFactorEmpty bool) ApiDcimRackTypesListRequest { + r.formFactorEmpty = &formFactorEmpty return r } -func (r ApiDcimRackRolesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackRolesListRequest { - r.descriptionIc = &descriptionIc +func (r ApiDcimRackTypesListRequest) FormFactorIc(formFactorIc []string) ApiDcimRackTypesListRequest { + r.formFactorIc = &formFactorIc return r } -func (r ApiDcimRackRolesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackRolesListRequest { - r.descriptionIe = &descriptionIe +func (r ApiDcimRackTypesListRequest) FormFactorIe(formFactorIe []string) ApiDcimRackTypesListRequest { + r.formFactorIe = &formFactorIe return r } -func (r ApiDcimRackRolesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackRolesListRequest { - r.descriptionIew = &descriptionIew +func (r ApiDcimRackTypesListRequest) FormFactorIew(formFactorIew []string) ApiDcimRackTypesListRequest { + r.formFactorIew = &formFactorIew return r } -func (r ApiDcimRackRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackRolesListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiDcimRackTypesListRequest) FormFactorIsw(formFactorIsw []string) ApiDcimRackTypesListRequest { + r.formFactorIsw = &formFactorIsw return r } -func (r ApiDcimRackRolesListRequest) DescriptionN(descriptionN []string) ApiDcimRackRolesListRequest { - r.descriptionN = &descriptionN +func (r ApiDcimRackTypesListRequest) FormFactorN(formFactorN []string) ApiDcimRackTypesListRequest { + r.formFactorN = &formFactorN return r } -func (r ApiDcimRackRolesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackRolesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiDcimRackTypesListRequest) FormFactorNic(formFactorNic []string) ApiDcimRackTypesListRequest { + r.formFactorNic = &formFactorNic return r } -func (r ApiDcimRackRolesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackRolesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiDcimRackTypesListRequest) FormFactorNie(formFactorNie []string) ApiDcimRackTypesListRequest { + r.formFactorNie = &formFactorNie return r } -func (r ApiDcimRackRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackRolesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiDcimRackTypesListRequest) FormFactorNiew(formFactorNiew []string) ApiDcimRackTypesListRequest { + r.formFactorNiew = &formFactorNiew return r } -func (r ApiDcimRackRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackRolesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiDcimRackTypesListRequest) FormFactorNisw(formFactorNisw []string) ApiDcimRackTypesListRequest { + r.formFactorNisw = &formFactorNisw return r } -func (r ApiDcimRackRolesListRequest) Id(id []int32) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) Id(id []int32) ApiDcimRackTypesListRequest { r.id = &id return r } -func (r ApiDcimRackRolesListRequest) IdEmpty(idEmpty bool) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) IdEmpty(idEmpty bool) ApiDcimRackTypesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiDcimRackRolesListRequest) IdGt(idGt []int32) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) IdGt(idGt []int32) ApiDcimRackTypesListRequest { r.idGt = &idGt return r } -func (r ApiDcimRackRolesListRequest) IdGte(idGte []int32) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) IdGte(idGte []int32) ApiDcimRackTypesListRequest { r.idGte = &idGte return r } -func (r ApiDcimRackRolesListRequest) IdLt(idLt []int32) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) IdLt(idLt []int32) ApiDcimRackTypesListRequest { r.idLt = &idLt return r } -func (r ApiDcimRackRolesListRequest) IdLte(idLte []int32) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) IdLte(idLte []int32) ApiDcimRackTypesListRequest { r.idLte = &idLte return r } -func (r ApiDcimRackRolesListRequest) IdN(idN []int32) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) IdN(idN []int32) ApiDcimRackTypesListRequest { r.idN = &idN return r } -func (r ApiDcimRackRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackTypesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiDcimRackRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackTypesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiDcimRackRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackTypesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiDcimRackRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackTypesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiDcimRackRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackTypesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiDcimRackRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackTypesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiDcimRackRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackTypesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiDcimRackRolesListRequest) Limit(limit int32) ApiDcimRackRolesListRequest { +func (r ApiDcimRackTypesListRequest) Limit(limit int32) ApiDcimRackTypesListRequest { r.limit = &limit return r } -func (r ApiDcimRackRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackRolesListRequest { - r.modifiedByRequest = &modifiedByRequest +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) Manufacturer(manufacturer []string) ApiDcimRackTypesListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimRackTypesListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRackTypesListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRackTypesListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeight(maxWeight []int32) ApiDcimRackTypesListRequest { + r.maxWeight = &maxWeight + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightEmpty(maxWeightEmpty bool) ApiDcimRackTypesListRequest { + r.maxWeightEmpty = &maxWeightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGt(maxWeightGt []int32) ApiDcimRackTypesListRequest { + r.maxWeightGt = &maxWeightGt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGte(maxWeightGte []int32) ApiDcimRackTypesListRequest { + r.maxWeightGte = &maxWeightGte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLt(maxWeightLt []int32) ApiDcimRackTypesListRequest { + r.maxWeightLt = &maxWeightLt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLte(maxWeightLte []int32) ApiDcimRackTypesListRequest { + r.maxWeightLte = &maxWeightLte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightN(maxWeightN []int32) ApiDcimRackTypesListRequest { + r.maxWeightN = &maxWeightN + return r +} + +func (r ApiDcimRackTypesListRequest) Model(model []string) ApiDcimRackTypesListRequest { + r.model = &model + return r +} + +func (r ApiDcimRackTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimRackTypesListRequest { + r.modelEmpty = &modelEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIc(modelIc []string) ApiDcimRackTypesListRequest { + r.modelIc = &modelIc + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIe(modelIe []string) ApiDcimRackTypesListRequest { + r.modelIe = &modelIe + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIew(modelIew []string) ApiDcimRackTypesListRequest { + r.modelIew = &modelIew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIsw(modelIsw []string) ApiDcimRackTypesListRequest { + r.modelIsw = &modelIsw + return r +} + +func (r ApiDcimRackTypesListRequest) ModelN(modelN []string) ApiDcimRackTypesListRequest { + r.modelN = &modelN + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNic(modelNic []string) ApiDcimRackTypesListRequest { + r.modelNic = &modelNic + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNie(modelNie []string) ApiDcimRackTypesListRequest { + r.modelNie = &modelNie + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNiew(modelNiew []string) ApiDcimRackTypesListRequest { + r.modelNiew = &modelNiew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNisw(modelNisw []string) ApiDcimRackTypesListRequest { + r.modelNisw = &modelNisw + return r +} + +func (r ApiDcimRackTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepth(mountingDepth []int32) ApiDcimRackTypesListRequest { + r.mountingDepth = &mountingDepth + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthEmpty(mountingDepthEmpty bool) ApiDcimRackTypesListRequest { + r.mountingDepthEmpty = &mountingDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGt(mountingDepthGt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGt = &mountingDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGte(mountingDepthGte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGte = &mountingDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLt(mountingDepthLt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLt = &mountingDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLte(mountingDepthLte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLte = &mountingDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthN(mountingDepthN []int32) ApiDcimRackTypesListRequest { + r.mountingDepthN = &mountingDepthN + return r +} + +// The initial index from which to return the results. +func (r ApiDcimRackTypesListRequest) Offset(offset int32) ApiDcimRackTypesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimRackTypesListRequest) Ordering(ordering string) ApiDcimRackTypesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepth(outerDepth []int32) ApiDcimRackTypesListRequest { + r.outerDepth = &outerDepth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthEmpty(outerDepthEmpty bool) ApiDcimRackTypesListRequest { + r.outerDepthEmpty = &outerDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGt(outerDepthGt []int32) ApiDcimRackTypesListRequest { + r.outerDepthGt = &outerDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGte(outerDepthGte []int32) ApiDcimRackTypesListRequest { + r.outerDepthGte = &outerDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLt(outerDepthLt []int32) ApiDcimRackTypesListRequest { + r.outerDepthLt = &outerDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLte(outerDepthLte []int32) ApiDcimRackTypesListRequest { + r.outerDepthLte = &outerDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRackTypesListRequest { + r.outerDepthN = &outerDepthN + return r +} + +// * `mm` - Millimeters * `in` - Inches +func (r ApiDcimRackTypesListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { + r.outerUnit = &outerUnit + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidth(outerWidth []int32) ApiDcimRackTypesListRequest { + r.outerWidth = &outerWidth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthEmpty(outerWidthEmpty bool) ApiDcimRackTypesListRequest { + r.outerWidthEmpty = &outerWidthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGt(outerWidthGt []int32) ApiDcimRackTypesListRequest { + r.outerWidthGt = &outerWidthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGte(outerWidthGte []int32) ApiDcimRackTypesListRequest { + r.outerWidthGte = &outerWidthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLt(outerWidthLt []int32) ApiDcimRackTypesListRequest { + r.outerWidthLt = &outerWidthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLte(outerWidthLte []int32) ApiDcimRackTypesListRequest { + r.outerWidthLte = &outerWidthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthN(outerWidthN []int32) ApiDcimRackTypesListRequest { + r.outerWidthN = &outerWidthN + return r +} + +// Search +func (r ApiDcimRackTypesListRequest) Q(q string) ApiDcimRackTypesListRequest { + r.q = &q + return r +} + +func (r ApiDcimRackTypesListRequest) Slug(slug []string) ApiDcimRackTypesListRequest { + r.slug = &slug + return r +} + +func (r ApiDcimRackTypesListRequest) SlugEmpty(slugEmpty bool) ApiDcimRackTypesListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIc(slugIc []string) ApiDcimRackTypesListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIe(slugIe []string) ApiDcimRackTypesListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIew(slugIew []string) ApiDcimRackTypesListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIsw(slugIsw []string) ApiDcimRackTypesListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiDcimRackTypesListRequest) SlugN(slugN []string) ApiDcimRackTypesListRequest { + r.slugN = &slugN + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNic(slugNic []string) ApiDcimRackTypesListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNie(slugNie []string) ApiDcimRackTypesListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNiew(slugNiew []string) ApiDcimRackTypesListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNisw(slugNisw []string) ApiDcimRackTypesListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnit(startingUnit []int32) ApiDcimRackTypesListRequest { + r.startingUnit = &startingUnit + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitEmpty(startingUnitEmpty bool) ApiDcimRackTypesListRequest { + r.startingUnitEmpty = &startingUnitEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGt(startingUnitGt []int32) ApiDcimRackTypesListRequest { + r.startingUnitGt = &startingUnitGt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGte(startingUnitGte []int32) ApiDcimRackTypesListRequest { + r.startingUnitGte = &startingUnitGte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLt(startingUnitLt []int32) ApiDcimRackTypesListRequest { + r.startingUnitLt = &startingUnitLt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLte(startingUnitLte []int32) ApiDcimRackTypesListRequest { + r.startingUnitLte = &startingUnitLte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitN(startingUnitN []int32) ApiDcimRackTypesListRequest { + r.startingUnitN = &startingUnitN return r } -func (r ApiDcimRackRolesListRequest) Name(name []string) ApiDcimRackRolesListRequest { - r.name = &name +func (r ApiDcimRackTypesListRequest) Tag(tag []string) ApiDcimRackTypesListRequest { + r.tag = &tag return r } -func (r ApiDcimRackRolesListRequest) NameEmpty(nameEmpty bool) ApiDcimRackRolesListRequest { - r.nameEmpty = &nameEmpty +func (r ApiDcimRackTypesListRequest) TagN(tagN []string) ApiDcimRackTypesListRequest { + r.tagN = &tagN return r } -func (r ApiDcimRackRolesListRequest) NameIc(nameIc []string) ApiDcimRackRolesListRequest { - r.nameIc = &nameIc +func (r ApiDcimRackTypesListRequest) UHeight(uHeight []int32) ApiDcimRackTypesListRequest { + r.uHeight = &uHeight return r } -func (r ApiDcimRackRolesListRequest) NameIe(nameIe []string) ApiDcimRackRolesListRequest { - r.nameIe = &nameIe +func (r ApiDcimRackTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimRackTypesListRequest { + r.uHeightEmpty = &uHeightEmpty return r } -func (r ApiDcimRackRolesListRequest) NameIew(nameIew []string) ApiDcimRackRolesListRequest { - r.nameIew = &nameIew +func (r ApiDcimRackTypesListRequest) UHeightGt(uHeightGt []int32) ApiDcimRackTypesListRequest { + r.uHeightGt = &uHeightGt return r } -func (r ApiDcimRackRolesListRequest) NameIsw(nameIsw []string) ApiDcimRackRolesListRequest { - r.nameIsw = &nameIsw +func (r ApiDcimRackTypesListRequest) UHeightGte(uHeightGte []int32) ApiDcimRackTypesListRequest { + r.uHeightGte = &uHeightGte return r } -func (r ApiDcimRackRolesListRequest) NameN(nameN []string) ApiDcimRackRolesListRequest { - r.nameN = &nameN +func (r ApiDcimRackTypesListRequest) UHeightLt(uHeightLt []int32) ApiDcimRackTypesListRequest { + r.uHeightLt = &uHeightLt return r } -func (r ApiDcimRackRolesListRequest) NameNic(nameNic []string) ApiDcimRackRolesListRequest { - r.nameNic = &nameNic +func (r ApiDcimRackTypesListRequest) UHeightLte(uHeightLte []int32) ApiDcimRackTypesListRequest { + r.uHeightLte = &uHeightLte return r } -func (r ApiDcimRackRolesListRequest) NameNie(nameNie []string) ApiDcimRackRolesListRequest { - r.nameNie = &nameNie +func (r ApiDcimRackTypesListRequest) UHeightN(uHeightN []int32) ApiDcimRackTypesListRequest { + r.uHeightN = &uHeightN return r } -func (r ApiDcimRackRolesListRequest) NameNiew(nameNiew []string) ApiDcimRackRolesListRequest { - r.nameNiew = &nameNiew +func (r ApiDcimRackTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackTypesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiDcimRackRolesListRequest) NameNisw(nameNisw []string) ApiDcimRackRolesListRequest { - r.nameNisw = &nameNisw +func (r ApiDcimRackTypesListRequest) Weight(weight []float64) ApiDcimRackTypesListRequest { + r.weight = &weight return r } -// The initial index from which to return the results. -func (r ApiDcimRackRolesListRequest) Offset(offset int32) ApiDcimRackRolesListRequest { - r.offset = &offset +func (r ApiDcimRackTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimRackTypesListRequest { + r.weightEmpty = &weightEmpty return r } -// Which field to use when ordering the results. -func (r ApiDcimRackRolesListRequest) Ordering(ordering string) ApiDcimRackRolesListRequest { - r.ordering = &ordering +func (r ApiDcimRackTypesListRequest) WeightGt(weightGt []float64) ApiDcimRackTypesListRequest { + r.weightGt = &weightGt return r } -// Search -func (r ApiDcimRackRolesListRequest) Q(q string) ApiDcimRackRolesListRequest { - r.q = &q +func (r ApiDcimRackTypesListRequest) WeightGte(weightGte []float64) ApiDcimRackTypesListRequest { + r.weightGte = &weightGte return r } -func (r ApiDcimRackRolesListRequest) Slug(slug []string) ApiDcimRackRolesListRequest { - r.slug = &slug +func (r ApiDcimRackTypesListRequest) WeightLt(weightLt []float64) ApiDcimRackTypesListRequest { + r.weightLt = &weightLt return r } -func (r ApiDcimRackRolesListRequest) SlugEmpty(slugEmpty bool) ApiDcimRackRolesListRequest { - r.slugEmpty = &slugEmpty +func (r ApiDcimRackTypesListRequest) WeightLte(weightLte []float64) ApiDcimRackTypesListRequest { + r.weightLte = &weightLte return r } -func (r ApiDcimRackRolesListRequest) SlugIc(slugIc []string) ApiDcimRackRolesListRequest { - r.slugIc = &slugIc +func (r ApiDcimRackTypesListRequest) WeightN(weightN []float64) ApiDcimRackTypesListRequest { + r.weightN = &weightN return r } -func (r ApiDcimRackRolesListRequest) SlugIe(slugIe []string) ApiDcimRackRolesListRequest { - r.slugIe = &slugIe +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimRackTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { + r.weightUnit = &weightUnit return r } -func (r ApiDcimRackRolesListRequest) SlugIew(slugIew []string) ApiDcimRackRolesListRequest { - r.slugIew = &slugIew +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) Width(width []int32) ApiDcimRackTypesListRequest { + r.width = &width return r } -func (r ApiDcimRackRolesListRequest) SlugIsw(slugIsw []string) ApiDcimRackRolesListRequest { - r.slugIsw = &slugIsw +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthIc(widthIc []int32) ApiDcimRackTypesListRequest { + r.widthIc = &widthIc return r } -func (r ApiDcimRackRolesListRequest) SlugN(slugN []string) ApiDcimRackRolesListRequest { - r.slugN = &slugN +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthIe(widthIe []int32) ApiDcimRackTypesListRequest { + r.widthIe = &widthIe return r } -func (r ApiDcimRackRolesListRequest) SlugNic(slugNic []string) ApiDcimRackRolesListRequest { - r.slugNic = &slugNic +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthIew(widthIew []int32) ApiDcimRackTypesListRequest { + r.widthIew = &widthIew return r } -func (r ApiDcimRackRolesListRequest) SlugNie(slugNie []string) ApiDcimRackRolesListRequest { - r.slugNie = &slugNie +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthIsw(widthIsw []int32) ApiDcimRackTypesListRequest { + r.widthIsw = &widthIsw return r } -func (r ApiDcimRackRolesListRequest) SlugNiew(slugNiew []string) ApiDcimRackRolesListRequest { - r.slugNiew = &slugNiew +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthN(widthN []int32) ApiDcimRackTypesListRequest { + r.widthN = &widthN return r } -func (r ApiDcimRackRolesListRequest) SlugNisw(slugNisw []string) ApiDcimRackRolesListRequest { - r.slugNisw = &slugNisw +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthNic(widthNic []int32) ApiDcimRackTypesListRequest { + r.widthNic = &widthNic return r } -func (r ApiDcimRackRolesListRequest) Tag(tag []string) ApiDcimRackRolesListRequest { - r.tag = &tag +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthNie(widthNie []int32) ApiDcimRackTypesListRequest { + r.widthNie = &widthNie return r } -func (r ApiDcimRackRolesListRequest) TagN(tagN []string) ApiDcimRackRolesListRequest { - r.tagN = &tagN +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthNiew(widthNiew []int32) ApiDcimRackTypesListRequest { + r.widthNiew = &widthNiew return r } -func (r ApiDcimRackRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackRolesListRequest { - r.updatedByRequest = &updatedByRequest +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthNisw(widthNisw []int32) ApiDcimRackTypesListRequest { + r.widthNisw = &widthNisw return r } -func (r ApiDcimRackRolesListRequest) Execute() (*PaginatedRackRoleList, *http.Response, error) { - return r.ApiService.DcimRackRolesListExecute(r) +func (r ApiDcimRackTypesListRequest) Execute() (*PaginatedRackTypeList, *http.Response, error) { + return r.ApiService.DcimRackTypesListExecute(r) } /* -DcimRackRolesList Method for DcimRackRolesList +DcimRackTypesList Method for DcimRackTypesList -Get a list of rack role objects. +Get a list of rack type 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 ApiDcimRackTypesListRequest */ -func (a *DcimAPIService) DcimRackRolesList(ctx context.Context) ApiDcimRackRolesListRequest { - return ApiDcimRackRolesListRequest{ +func (a *DcimAPIService) DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest { + return ApiDcimRackTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRackRoleList -func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) (*PaginatedRackRoleList, *http.Response, error) { +// @return PaginatedRackTypeList +func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRackRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/" + localVarPath := localBasePath + "/api/dcim/rack-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.color != nil { - t := *r.color + 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, "color", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") - } - if r.colorIc != nil { - t := *r.colorIc + 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, "color__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.colorIe != nil { - t := *r.colorIe + 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, "color__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.colorIew != nil { - t := *r.colorIew + 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, "color__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.colorIsw != nil { - t := *r.colorIsw + 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, "color__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.colorN != nil { - t := *r.colorN + 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, "color__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.colorNic != nil { - t := *r.colorNic + 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, "color__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.colorNie != nil { - t := *r.colorNie + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + if r.descUnits != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "form", "") + } + 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, "color__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.colorNiew != nil { - t := *r.colorNiew + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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, "color__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.colorNisw != nil { - t := *r.colorNisw + 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, "color__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.created != nil { - t := *r.created + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description + if r.formFactor != nil { + t := *r.formFactor 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.formFactorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__empty", r.formFactorEmpty, "form", "") } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.formFactorIc != nil { + t := *r.formFactorIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.formFactorIe != nil { + t := *r.formFactorIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.formFactorIew != nil { + t := *r.formFactorIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.formFactorIsw != nil { + t := *r.formFactorIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.formFactorN != nil { + t := *r.formFactorN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.formFactorNic != nil { + t := *r.formFactorNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.formFactorNie != nil { + t := *r.formFactorNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.formFactorNiew != nil { + t := *r.formFactorNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.formFactorNisw != nil { + t := *r.formFactorNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", t, "form", "multi") } } if r.id != nil { @@ -89810,24 +105295,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -89835,10 +105320,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -89846,10 +105331,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -89857,10 +105342,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -89868,10 +105353,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -89879,10 +105364,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -89890,10 +105375,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -89901,10 +105386,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -89912,10 +105397,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -89923,10 +105408,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -89934,10 +105419,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -89945,163 +105430,486 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") + } } - if r.name != nil { - t := *r.name + if r.manufacturerN != nil { + t := *r.manufacturerN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.manufacturerId != nil { + t := *r.manufacturerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") + } } - if r.nameIc != nil { - t := *r.nameIc + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.maxWeight != nil { + t := *r.maxWeight 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.maxWeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "form", "") + } + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.maxWeightGte != nil { + t := *r.maxWeightGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.maxWeightLt != nil { + t := *r.maxWeightLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.maxWeightLte != nil { + t := *r.maxWeightLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.maxWeightN != nil { + t := *r.maxWeightN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.model != nil { + t := *r.model 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.modelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "form", "") + } + if r.modelIc != nil { + t := *r.modelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "form", "multi") + } + } + if r.modelIe != nil { + t := *r.modelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "form", "multi") + } + } + if r.modelIew != nil { + t := *r.modelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "form", "multi") + } + } + if r.modelIsw != nil { + t := *r.modelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "form", "multi") + } + } + if r.modelN != nil { + t := *r.modelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "form", "multi") + } + } + if r.modelNic != nil { + t := *r.modelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "form", "multi") + } + } + if r.modelNie != nil { + t := *r.modelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "form", "multi") + } + } + if r.modelNiew != nil { + t := *r.modelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "form", "multi") + } + } + if r.modelNisw != nil { + t := *r.modelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "form", "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "form", "multi") + } + } + if r.mountingDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "form", "multi") + } + } + if r.mountingDepthGte != nil { + t := *r.mountingDepthGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "form", "multi") + } + } + if r.mountingDepthLt != nil { + t := *r.mountingDepthLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "form", "multi") + } + } + if r.mountingDepthLte != nil { + t := *r.mountingDepthLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "form", "multi") + } + } + if r.mountingDepthN != nil { + t := *r.mountingDepthN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.outerDepth != nil { + t := *r.outerDepth + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "form", "multi") + } + } + if r.outerDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "form", "multi") + } + } + if r.outerDepthGte != nil { + t := *r.outerDepthGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "form", "multi") + } + } + if r.outerDepthLt != nil { + t := *r.outerDepthLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "form", "multi") + } + } + if r.outerDepthLte != nil { + t := *r.outerDepthLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "form", "multi") + } + } + if r.outerDepthN != nil { + t := *r.outerDepthN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "form", "multi") + } + } + if r.outerUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "form", "") + } + if r.outerWidth != nil { + t := *r.outerWidth + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "form", "multi") + } + } + if r.outerWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "form", "multi") + } + } + if r.outerWidthGte != nil { + t := *r.outerWidthGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "form", "multi") + } + } + if r.outerWidthLt != nil { + t := *r.outerWidthLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "form", "multi") + } + } + if r.outerWidthLte != nil { + t := *r.outerWidthLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "form", "multi") + } + } + if r.outerWidthN != nil { + t := *r.outerWidthN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "form", "multi") + } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -90109,10 +105917,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -90120,10 +105928,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -90131,10 +105939,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -90142,10 +105950,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -90153,10 +105961,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -90164,10 +105972,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -90175,10 +105983,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -90186,10 +105994,79 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "form", "multi") + } + } + if r.startingUnitEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "form", "multi") } } if r.tag != nil { @@ -90197,10 +106074,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -90208,14 +106085,265 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } + } + if r.uHeight != nil { + t := *r.uHeight + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "form", "multi") + } + } + if r.uHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "form", "multi") + } + } + if r.uHeightGte != nil { + t := *r.uHeightGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "form", "multi") + } + } + if r.uHeightLt != nil { + t := *r.uHeightLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "form", "multi") + } + } + if r.uHeightLte != nil { + t := *r.uHeightLte + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "form", "multi") + } + } + if r.uHeightN != nil { + t := *r.uHeightN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") + } + } + if r.weightN != nil { + t := *r.weightN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") + } + } + if r.weightUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "form", "") + } + if r.width != nil { + t := *r.width + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "form", "multi") + } + } + if r.widthIc != nil { + t := *r.widthIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", t, "form", "multi") + } + } + if r.widthIe != nil { + t := *r.widthIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", t, "form", "multi") + } + } + if r.widthIew != nil { + t := *r.widthIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", t, "form", "multi") + } + } + if r.widthIsw != nil { + t := *r.widthIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", t, "form", "multi") + } + } + if r.widthN != nil { + t := *r.widthN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "form", "multi") + } + } + if r.widthNic != nil { + t := *r.widthNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", t, "form", "multi") + } + } + if r.widthNie != nil { + t := *r.widthNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", t, "form", "multi") + } + } + if r.widthNiew != nil { + t := *r.widthNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", t, "form", "multi") + } + } + if r.widthNisw != nil { + t := *r.widthNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", t, "form", "multi") + } } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -90285,56 +106413,55 @@ func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedRackRoleRequest *PatchedRackRoleRequest +type ApiDcimRackTypesPartialUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + patchedWritableRackTypeRequest *PatchedWritableRackTypeRequest } -func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { - r.patchedRackRoleRequest = &patchedRackRoleRequest +func (r ApiDcimRackTypesPartialUpdateRequest) PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest PatchedWritableRackTypeRequest) ApiDcimRackTypesPartialUpdateRequest { + r.patchedWritableRackTypeRequest = &patchedWritableRackTypeRequest return r } -func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesPartialUpdateExecute(r) +func (r ApiDcimRackTypesPartialUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesPartialUpdateExecute(r) } /* -DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate +DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate -Patch a rack role object. +Patch a rack 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 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 type. + @return ApiDcimRackTypesPartialUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { - return ApiDcimRackRolesPartialUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest { + return ApiDcimRackTypesPartialUpdateRequest{ 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 RackType +func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -90359,7 +106486,7 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedRackRoleRequest + localVarPostBody = r.patchedWritableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -90411,50 +106538,49 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 +type ApiDcimRackTypesRetrieveRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 } -func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesRetrieveExecute(r) +func (r ApiDcimRackTypesRetrieveRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesRetrieveExecute(r) } /* -DcimRackRolesRetrieve Method for DcimRackRolesRetrieve +DcimRackTypesRetrieve Method for DcimRackTypesRetrieve -Get a rack role object. +Get a rack 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 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 type. + @return ApiDcimRackTypesRetrieveRequest */ -func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { - return ApiDcimRackRolesRetrieveRequest{ +func (a *DcimAPIService) DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest { + return ApiDcimRackTypesRetrieveRequest{ 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 RackType +func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -90529,63 +106655,62 @@ func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - rackRoleRequest *RackRoleRequest +type ApiDcimRackTypesUpdateRequest struct { + ctx context.Context + ApiService DcimAPI + id int32 + writableRackTypeRequest *WritableRackTypeRequest } -func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesUpdateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesUpdateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest return r } -func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesUpdateExecute(r) +func (r ApiDcimRackTypesUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesUpdateExecute(r) } /* -DcimRackRolesUpdate Method for DcimRackRolesUpdate +DcimRackTypesUpdate Method for DcimRackTypesUpdate -Put a rack role object. +Put a rack 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 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 type. + @return ApiDcimRackTypesUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { - return ApiDcimRackRolesUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest { + return ApiDcimRackTypesUpdateRequest{ 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 RackType +func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-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.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -90606,7 +106731,7 @@ func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.writableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -90659,8 +106784,8 @@ func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequ } type ApiDcimRacksBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rackRequest *[]RackRequest } @@ -90678,22 +106803,22 @@ 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 { return ApiDcimRacksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -90772,8 +106897,8 @@ func (a *DcimAPIService) DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRe } type ApiDcimRacksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rackRequest *[]RackRequest } @@ -90791,25 +106916,24 @@ 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 { return ApiDcimRacksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Rack +// @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") @@ -90897,8 +107021,8 @@ func (a *DcimAPIService) DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPar } type ApiDcimRacksBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rackRequest *[]RackRequest } @@ -90916,25 +107040,24 @@ 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 { return ApiDcimRacksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Rack +// @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") @@ -91022,8 +107145,8 @@ func (a *DcimAPIService) DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequ } type ApiDcimRacksCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableRackRequest *WritableRackRequest } @@ -91041,25 +107164,24 @@ 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 { return ApiDcimRacksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Rack +// @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") @@ -91147,9 +107269,9 @@ func (a *DcimAPIService) DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*R } type ApiDcimRacksDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRacksDestroyRequest) Execute() (*http.Response, error) { @@ -91161,24 +107283,24 @@ 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 { 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) { 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") @@ -91253,21 +107375,21 @@ func (a *DcimAPIService) DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) ( } type ApiDcimRacksElevationRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - exclude *int32 + ctx context.Context + ApiService DcimAPI + id int32 + exclude *int32 expandDevices *bool - face *DcimRacksElevationRetrieveFaceParameter + face *DcimRacksElevationRetrieveFaceParameter includeImages *bool - legendWidth *int32 - limit *int32 - marginWidth *int32 - offset *int32 - q *string - render *DcimRacksElevationRetrieveRenderParameter - unitHeight *int32 - unitWidth *int32 + legendWidth *int32 + limit *int32 + marginWidth *int32 + offset *int32 + q *string + render *DcimRacksElevationRetrieveRenderParameter + unitHeight *int32 + unitWidth *int32 } func (r ApiDcimRacksElevationRetrieveRequest) Exclude(exclude int32) ApiDcimRacksElevationRetrieveRequest { @@ -91343,27 +107465,26 @@ 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 { return ApiDcimRacksElevationRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PaginatedRackUnitList +// @return PaginatedRackUnitList func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevationRetrieveRequest) (*PaginatedRackUnitList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRackUnitList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackUnitList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksElevationRetrieve") @@ -91379,58 +107500,58 @@ func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevati localVarFormParams := url.Values{} if r.exclude != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "exclude", r.exclude, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "exclude", r.exclude, "form", "") } if r.expandDevices != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "expand_devices", r.expandDevices, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "expand_devices", r.expandDevices, "form", "") } else { var defaultValue bool = true r.expandDevices = &defaultValue } if r.face != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "face", r.face, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "face", r.face, "form", "") } else { var defaultValue DcimRacksElevationRetrieveFaceParameter = "front" r.face = &defaultValue } if r.includeImages != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "include_images", r.includeImages, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "include_images", r.includeImages, "form", "") } else { var defaultValue bool = true r.includeImages = &defaultValue } if r.legendWidth != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "legend_width", r.legendWidth, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "legend_width", r.legendWidth, "form", "") } else { var defaultValue int32 = 30 r.legendWidth = &defaultValue } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.marginWidth != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "margin_width", r.marginWidth, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "margin_width", r.marginWidth, "form", "") } else { var defaultValue int32 = 15 r.marginWidth = &defaultValue } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.render != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "render", r.render, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "render", r.render, "form", "") } else { var defaultValue DcimRacksElevationRetrieveRenderParameter = "json" r.render = &defaultValue } if r.unitHeight != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "unit_height", r.unitHeight, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "unit_height", r.unitHeight, "form", "") } if r.unitWidth != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "unit_width", r.unitWidth, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "unit_width", r.unitWidth, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -91501,187 +107622,226 @@ 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 - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - descUnits *bool - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - 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 + ctx context.Context + ApiService DcimAPI + airflow *DcimRacksListAirflowParameter + 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 *[]string + contactGroupN *[]string + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + facilityId *[]string + facilityIdEmpty *bool + facilityIdIc *[]string + facilityIdIe *[]string + facilityIdIew *[]string + facilityIdIsw *[]string + facilityIdN *[]string + facilityIdNic *[]string + facilityIdNie *[]string + facilityIdNiew *[]string + facilityIdNisw *[]string + formFactor *[]*string + formFactorEmpty *bool + formFactorIc *[]*string + formFactorIe *[]*string + formFactorIew *[]*string + formFactorIsw *[]*string + formFactorN *[]*string + formFactorNic *[]*string + formFactorNie *[]*string + formFactorNiew *[]*string + formFactorNisw *[]*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 *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]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 - 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 - outerDepthEmpty *bool - outerDepthGt *[]int32 - outerDepthGte *[]int32 - outerDepthLt *[]int32 - outerDepthLte *[]int32 - outerDepthN *[]int32 - outerUnit *DcimRacksListOuterUnitParameter - outerUnitN *DcimRacksListOuterUnitParameter - 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 - weightEmpty *bool - weightGt *[]float64 - weightGte *[]float64 - weightLt *[]float64 - weightLte *[]float64 - weightN *[]float64 - weightUnit *DcimDeviceTypesListWeightUnitParameter - weightUnitN *DcimDeviceTypesListWeightUnitParameter - width *[]int32 - widthN *[]int32 + mountingDepthGt *[]int32 + mountingDepthGte *[]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 + outerDepthEmpty *bool + outerDepthGt *[]int32 + outerDepthGte *[]int32 + outerDepthLt *[]int32 + outerDepthLte *[]int32 + outerDepthN *[]int32 + outerUnit *DcimRackTypesListOuterUnitParameter + outerWidth *[]int32 + outerWidthEmpty *bool + outerWidthGt *[]int32 + outerWidthGte *[]int32 + outerWidthLt *[]int32 + outerWidthLte *[]int32 + outerWidthN *[]int32 + q *string + rackType *[]string + rackTypeN *[]string + rackTypeId *[]*int32 + rackTypeIdN *[]*int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + 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 *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + startingUnit *[]int32 + startingUnitEmpty *bool + startingUnitGt *[]int32 + startingUnitGte *[]int32 + startingUnitLt *[]int32 + startingUnitLte *[]int32 + startingUnitN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + uHeight *[]int32 + uHeightEmpty *bool + uHeightGt *[]int32 + uHeightGte *[]int32 + uHeightLt *[]int32 + uHeightLte *[]int32 + uHeightN *[]int32 + updatedByRequest *string + weight *[]float64 + weightEmpty *bool + weightGt *[]float64 + weightGte *[]float64 + weightLt *[]float64 + weightLte *[]float64 + weightN *[]float64 + weightUnit *DcimDeviceTypesListWeightUnitParameter + width *[]int32 + widthIc *[]int32 + widthIe *[]int32 + widthIew *[]int32 + widthIsw *[]int32 + widthN *[]int32 + widthNic *[]int32 + widthNie *[]int32 + widthNiew *[]int32 + widthNisw *[]int32 +} + +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +func (r ApiDcimRacksListRequest) Airflow(airflow DcimRacksListAirflowParameter) ApiDcimRacksListRequest { + r.airflow = &airflow + return r } func (r ApiDcimRacksListRequest) AssetTag(assetTag []string) ApiDcimRacksListRequest { @@ -91751,14 +107911,12 @@ func (r ApiDcimRacksListRequest) ContactN(contactN []int32) ApiDcimRacksListRequ return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []string) ApiDcimRacksListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []string) ApiDcimRacksListRequest { r.contactGroupN = &contactGroupN return r } @@ -91930,6 +108088,61 @@ func (r ApiDcimRacksListRequest) FacilityIdNisw(facilityIdNisw []string) ApiDcim return r } +func (r ApiDcimRacksListRequest) FormFactor(formFactor []*string) ApiDcimRacksListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiDcimRacksListRequest) FormFactorEmpty(formFactorEmpty bool) ApiDcimRacksListRequest { + r.formFactorEmpty = &formFactorEmpty + return r +} + +func (r ApiDcimRacksListRequest) FormFactorIc(formFactorIc []*string) ApiDcimRacksListRequest { + r.formFactorIc = &formFactorIc + return r +} + +func (r ApiDcimRacksListRequest) FormFactorIe(formFactorIe []*string) ApiDcimRacksListRequest { + r.formFactorIe = &formFactorIe + return r +} + +func (r ApiDcimRacksListRequest) FormFactorIew(formFactorIew []*string) ApiDcimRacksListRequest { + r.formFactorIew = &formFactorIew + return r +} + +func (r ApiDcimRacksListRequest) FormFactorIsw(formFactorIsw []*string) ApiDcimRacksListRequest { + r.formFactorIsw = &formFactorIsw + return r +} + +func (r ApiDcimRacksListRequest) FormFactorN(formFactorN []*string) ApiDcimRacksListRequest { + r.formFactorN = &formFactorN + return r +} + +func (r ApiDcimRacksListRequest) FormFactorNic(formFactorNic []*string) ApiDcimRacksListRequest { + r.formFactorNic = &formFactorNic + return r +} + +func (r ApiDcimRacksListRequest) FormFactorNie(formFactorNie []*string) ApiDcimRacksListRequest { + r.formFactorNie = &formFactorNie + return r +} + +func (r ApiDcimRacksListRequest) FormFactorNiew(formFactorNiew []*string) ApiDcimRacksListRequest { + r.formFactorNiew = &formFactorNiew + return r +} + +func (r ApiDcimRacksListRequest) FormFactorNisw(formFactorNisw []*string) ApiDcimRacksListRequest { + r.formFactorNisw = &formFactorNisw + return r +} + func (r ApiDcimRacksListRequest) Id(id []int32) ApiDcimRacksListRequest { r.id = &id return r @@ -92006,30 +108219,50 @@ func (r ApiDcimRacksListRequest) Limit(limit int32) ApiDcimRacksListRequest { return r } -// Location (slug) -func (r ApiDcimRacksListRequest) Location(location []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) Location(location []string) ApiDcimRacksListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimRacksListRequest) LocationN(locationN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationN(locationN []string) ApiDcimRacksListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationId(locationId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationId(locationId []string) ApiDcimRacksListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []string) ApiDcimRacksListRequest { r.locationIdN = &locationIdN return r } +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) Manufacturer(manufacturer []string) ApiDcimRacksListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) ManufacturerN(manufacturerN []string) ApiDcimRacksListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRacksListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRacksListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + func (r ApiDcimRacksListRequest) MaxWeight(maxWeight []int32) ApiDcimRacksListRequest { r.maxWeight = &maxWeight return r @@ -92208,17 +108441,11 @@ func (r ApiDcimRacksListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRacksLi } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnit = &outerUnit return r } -// * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { - r.outerUnitN = &outerUnitN - return r -} - func (r ApiDcimRacksListRequest) OuterWidth(outerWidth []int32) ApiDcimRacksListRequest { r.outerWidth = &outerWidth return r @@ -92260,26 +108487,46 @@ func (r ApiDcimRacksListRequest) Q(q string) ApiDcimRacksListRequest { return r } -// Region (slug) -func (r ApiDcimRacksListRequest) Region(region []int32) ApiDcimRacksListRequest { +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackType(rackType []string) ApiDcimRacksListRequest { + r.rackType = &rackType + return r +} + +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackTypeN(rackTypeN []string) ApiDcimRacksListRequest { + r.rackTypeN = &rackTypeN + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeId(rackTypeId []*int32) ApiDcimRacksListRequest { + r.rackTypeId = &rackTypeId + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeIdN(rackTypeIdN []*int32) ApiDcimRacksListRequest { + r.rackTypeIdN = &rackTypeIdN + return r +} + +func (r ApiDcimRacksListRequest) Region(region []string) ApiDcimRacksListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRacksListRequest) RegionN(regionN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionN(regionN []string) ApiDcimRacksListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionId(regionId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionId(regionId []string) ApiDcimRacksListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []string) ApiDcimRacksListRequest { r.regionIdN = ®ionIdN return r } @@ -92375,26 +108622,22 @@ func (r ApiDcimRacksListRequest) SiteN(siteN []string) ApiDcimRacksListRequest { return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []string) ApiDcimRacksListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []string) ApiDcimRacksListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []string) ApiDcimRacksListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRacksListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -92451,11 +108694,56 @@ func (r ApiDcimRacksListRequest) Status(status []string) ApiDcimRacksListRequest return r } +func (r ApiDcimRacksListRequest) StatusEmpty(statusEmpty bool) ApiDcimRacksListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiDcimRacksListRequest) StatusIc(statusIc []string) ApiDcimRacksListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiDcimRacksListRequest) StatusIe(statusIe []string) ApiDcimRacksListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiDcimRacksListRequest) StatusIew(statusIew []string) ApiDcimRacksListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiDcimRacksListRequest) StatusIsw(statusIsw []string) ApiDcimRacksListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiDcimRacksListRequest) StatusN(statusN []string) ApiDcimRacksListRequest { r.statusN = &statusN return r } +func (r ApiDcimRacksListRequest) StatusNic(statusNic []string) ApiDcimRacksListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiDcimRacksListRequest) StatusNie(statusNie []string) ApiDcimRacksListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiDcimRacksListRequest) StatusNiew(statusNiew []string) ApiDcimRacksListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiDcimRacksListRequest) StatusNisw(statusNisw []string) ApiDcimRacksListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimRacksListRequest) Tag(tag []string) ApiDcimRacksListRequest { r.tag = &tag return r @@ -92478,26 +108766,22 @@ func (r ApiDcimRacksListRequest) TenantN(tenantN []string) ApiDcimRacksListReque return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []string) ApiDcimRacksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRacksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRacksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRacksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -92514,16 +108798,6 @@ func (r ApiDcimRacksListRequest) TenantIdN(tenantIdN []*int32) ApiDcimRacksListR return r } -func (r ApiDcimRacksListRequest) Type_(type_ []string) ApiDcimRacksListRequest { - r.type_ = &type_ - return r -} - -func (r ApiDcimRacksListRequest) TypeN(typeN []string) ApiDcimRacksListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimRacksListRequest) UHeight(uHeight []int32) ApiDcimRacksListRequest { r.uHeight = &uHeight return r @@ -92605,15 +108879,33 @@ func (r ApiDcimRacksListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeight return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimRacksListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimRacksListRequest { - r.weightUnitN = &weightUnitN +// Rail-to-rail width +func (r ApiDcimRacksListRequest) Width(width []int32) ApiDcimRacksListRequest { + r.width = &width return r } // Rail-to-rail width -func (r ApiDcimRacksListRequest) Width(width []int32) ApiDcimRacksListRequest { - r.width = &width +func (r ApiDcimRacksListRequest) WidthIc(widthIc []int32) ApiDcimRacksListRequest { + r.widthIc = &widthIc + return r +} + +// Rail-to-rail width +func (r ApiDcimRacksListRequest) WidthIe(widthIe []int32) ApiDcimRacksListRequest { + r.widthIe = &widthIe + return r +} + +// Rail-to-rail width +func (r ApiDcimRacksListRequest) WidthIew(widthIew []int32) ApiDcimRacksListRequest { + r.widthIew = &widthIew + return r +} + +// Rail-to-rail width +func (r ApiDcimRacksListRequest) WidthIsw(widthIsw []int32) ApiDcimRacksListRequest { + r.widthIsw = &widthIsw return r } @@ -92623,6 +108915,30 @@ func (r ApiDcimRacksListRequest) WidthN(widthN []int32) ApiDcimRacksListRequest return r } +// Rail-to-rail width +func (r ApiDcimRacksListRequest) WidthNic(widthNic []int32) ApiDcimRacksListRequest { + r.widthNic = &widthNic + return r +} + +// Rail-to-rail width +func (r ApiDcimRacksListRequest) WidthNie(widthNie []int32) ApiDcimRacksListRequest { + r.widthNie = &widthNie + return r +} + +// Rail-to-rail width +func (r ApiDcimRacksListRequest) WidthNiew(widthNiew []int32) ApiDcimRacksListRequest { + r.widthNiew = &widthNiew + return r +} + +// Rail-to-rail width +func (r ApiDcimRacksListRequest) WidthNisw(widthNisw []int32) ApiDcimRacksListRequest { + r.widthNisw = &widthNisw + return r +} + func (r ApiDcimRacksListRequest) Execute() (*PaginatedRackList, *http.Response, error) { return r.ApiService.DcimRacksListExecute(r) } @@ -92632,25 +108948,24 @@ 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 { return ApiDcimRacksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRackList +// @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") @@ -92664,29 +108979,32 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "form", "") + } if r.assetTag != nil { t := *r.assetTag 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "form", "multi") } } if r.assetTagEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__empty", r.assetTagEmpty, "form", "") } if r.assetTagIc != nil { t := *r.assetTagIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "form", "multi") } } if r.assetTagIe != nil { @@ -92694,10 +109012,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "form", "multi") } } if r.assetTagIew != nil { @@ -92705,10 +109023,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "form", "multi") } } if r.assetTagIsw != nil { @@ -92716,10 +109034,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "form", "multi") } } if r.assetTagN != nil { @@ -92727,10 +109045,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "form", "multi") } } if r.assetTagNic != nil { @@ -92738,10 +109056,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "form", "multi") } } if r.assetTagNie != nil { @@ -92749,10 +109067,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "form", "multi") } } if r.assetTagNiew != nil { @@ -92760,10 +109078,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "form", "multi") } } if r.assetTagNisw != nil { @@ -92771,10 +109089,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "form", "multi") } } if r.contact != nil { @@ -92782,10 +109100,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -92793,10 +109111,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -92804,10 +109122,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -92815,10 +109133,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -92826,10 +109144,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -92837,10 +109155,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -92848,10 +109166,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -92859,10 +109177,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -92870,10 +109188,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -92881,10 +109199,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -92892,10 +109210,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -92903,10 +109221,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -92914,41 +109232,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } if r.descUnits != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -92956,10 +109274,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -92967,10 +109285,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -92978,10 +109296,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -92989,10 +109307,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -93000,10 +109318,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -93011,10 +109329,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -93022,10 +109340,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -93033,10 +109351,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.facilityId != nil { @@ -93044,24 +109362,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id", t, "form", "multi") } } if r.facilityIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__empty", r.facilityIdEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__empty", r.facilityIdEmpty, "form", "") } if r.facilityIdIc != nil { t := *r.facilityIdIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ic", t, "form", "multi") } } if r.facilityIdIe != nil { @@ -93069,10 +109387,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ie", t, "form", "multi") } } if r.facilityIdIew != nil { @@ -93080,10 +109398,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__iew", t, "form", "multi") } } if r.facilityIdIsw != nil { @@ -93091,10 +109409,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__isw", t, "form", "multi") } } if r.facilityIdN != nil { @@ -93102,10 +109420,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__n", t, "form", "multi") } } if r.facilityIdNic != nil { @@ -93113,10 +109431,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nic", t, "form", "multi") } } if r.facilityIdNie != nil { @@ -93124,10 +109442,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nie", t, "form", "multi") } } if r.facilityIdNiew != nil { @@ -93135,10 +109453,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__niew", t, "form", "multi") } } if r.facilityIdNisw != nil { @@ -93146,10 +109464,123 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", t, "form", "multi") + } + } + if r.formFactor != nil { + t := *r.formFactor + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "form", "multi") + } + } + if r.formFactorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__empty", r.formFactorEmpty, "form", "") + } + if r.formFactorIc != nil { + t := *r.formFactorIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", t, "form", "multi") + } + } + if r.formFactorIe != nil { + t := *r.formFactorIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", t, "form", "multi") + } + } + if r.formFactorIew != nil { + t := *r.formFactorIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", t, "form", "multi") + } + } + if r.formFactorIsw != nil { + t := *r.formFactorIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", t, "form", "multi") + } + } + if r.formFactorN != nil { + t := *r.formFactorN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "form", "multi") + } + } + if r.formFactorNic != nil { + t := *r.formFactorNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", t, "form", "multi") + } + } + if r.formFactorNie != nil { + t := *r.formFactorNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", t, "form", "multi") + } + } + if r.formFactorNiew != nil { + t := *r.formFactorNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", t, "form", "multi") + } + } + if r.formFactorNisw != nil { + t := *r.formFactorNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", t, "form", "multi") } } if r.id != nil { @@ -93157,24 +109588,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -93182,10 +109613,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -93193,10 +109624,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -93204,10 +109635,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -93215,10 +109646,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -93226,10 +109657,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -93237,10 +109668,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -93248,10 +109679,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -93259,10 +109690,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -93270,10 +109701,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -93281,10 +109712,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -93292,24 +109723,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } if r.locationN != nil { @@ -93317,10 +109748,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } if r.locationId != nil { @@ -93328,10 +109759,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } if r.locationIdN != nil { @@ -93339,10 +109770,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") + } + } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "form", "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "form", "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "form", "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "form", "multi") } } if r.maxWeight != nil { @@ -93350,24 +109825,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "form", "multi") } } if r.maxWeightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "form", "multi") } } if r.maxWeightGte != nil { @@ -93375,10 +109850,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "form", "multi") } } if r.maxWeightLt != nil { @@ -93386,10 +109861,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "form", "multi") } } if r.maxWeightLte != nil { @@ -93397,10 +109872,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "form", "multi") } } if r.maxWeightN != nil { @@ -93408,38 +109883,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "form", "multi") } } if r.mountingDepthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "form", "multi") } } if r.mountingDepthGte != nil { @@ -93447,10 +109922,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "form", "multi") } } if r.mountingDepthLt != nil { @@ -93458,10 +109933,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "form", "multi") } } if r.mountingDepthLte != nil { @@ -93469,10 +109944,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "form", "multi") } } if r.mountingDepthN != nil { @@ -93480,10 +109955,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "form", "multi") } } if r.name != nil { @@ -93491,24 +109966,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -93516,10 +109991,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -93527,10 +110002,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -93538,10 +110013,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -93549,10 +110024,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -93560,10 +110035,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -93571,10 +110046,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -93582,10 +110057,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -93593,41 +110068,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.outerDepth != nil { t := *r.outerDepth 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "form", "multi") } } if r.outerDepthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "form", "multi") } } if r.outerDepthGte != nil { @@ -93635,10 +110110,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "form", "multi") } } if r.outerDepthLt != nil { @@ -93646,10 +110121,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "form", "multi") } } if r.outerDepthLte != nil { @@ -93657,10 +110132,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "form", "multi") } } if r.outerDepthN != nil { @@ -93668,41 +110143,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "form", "multi") } } if r.outerUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "") - } - if r.outerUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit__n", r.outerUnitN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "form", "") } if r.outerWidth != nil { t := *r.outerWidth 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "form", "multi") } } if r.outerWidthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "form", "multi") } } if r.outerWidthGte != nil { @@ -93710,10 +110182,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "form", "multi") } } if r.outerWidthLt != nil { @@ -93721,10 +110193,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "form", "multi") } } if r.outerWidthLte != nil { @@ -93732,10 +110204,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "form", "multi") } } if r.outerWidthN != nil { @@ -93743,24 +110215,68 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rackType != nil { + t := *r.rackType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", t, "form", "multi") + } + } + if r.rackTypeN != nil { + t := *r.rackTypeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", t, "form", "multi") + } + } + if r.rackTypeId != nil { + t := *r.rackTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", t, "form", "multi") + } + } + if r.rackTypeIdN != nil { + t := *r.rackTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", t, "form", "multi") + } } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -93768,10 +110284,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -93779,10 +110295,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -93790,10 +110306,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } if r.role != nil { @@ -93801,10 +110317,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } if r.roleN != nil { @@ -93812,10 +110328,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } if r.roleId != nil { @@ -93823,10 +110339,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } if r.roleIdN != nil { @@ -93834,10 +110350,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") } } if r.serial != nil { @@ -93845,24 +110361,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "form", "multi") } } if r.serialEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "form", "") } if r.serialIc != nil { t := *r.serialIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "form", "multi") } } if r.serialIe != nil { @@ -93870,10 +110386,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "form", "multi") } } if r.serialIew != nil { @@ -93881,10 +110397,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "form", "multi") } } if r.serialIsw != nil { @@ -93892,10 +110408,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "form", "multi") } } if r.serialN != nil { @@ -93903,10 +110419,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "form", "multi") } } if r.serialNic != nil { @@ -93914,10 +110430,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "form", "multi") } } if r.serialNie != nil { @@ -93925,10 +110441,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "form", "multi") } } if r.serialNiew != nil { @@ -93936,10 +110452,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "form", "multi") } } if r.serialNisw != nil { @@ -93947,10 +110463,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "form", "multi") } } if r.site != nil { @@ -93958,10 +110474,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteN != nil { @@ -93969,10 +110485,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } if r.siteGroup != nil { @@ -93980,10 +110496,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } if r.siteGroupN != nil { @@ -93991,10 +110507,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } if r.siteGroupId != nil { @@ -94002,10 +110518,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } if r.siteGroupIdN != nil { @@ -94013,10 +110529,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } if r.siteId != nil { @@ -94024,10 +110540,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.siteIdN != nil { @@ -94035,10 +110551,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.startingUnit != nil { @@ -94046,24 +110562,24 @@ 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, "starting_unit", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "form", "multi") } } if r.startingUnitEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "form", "multi") } } if r.startingUnitGte != nil { @@ -94071,10 +110587,10 @@ 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, "starting_unit__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "form", "multi") } } if r.startingUnitLt != nil { @@ -94082,10 +110598,10 @@ 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, "starting_unit__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "form", "multi") } } if r.startingUnitLte != nil { @@ -94093,10 +110609,10 @@ 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, "starting_unit__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "form", "multi") } } if r.startingUnitN != nil { @@ -94104,10 +110620,10 @@ 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, "starting_unit__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "form", "multi") } } if r.status != nil { @@ -94115,10 +110631,57 @@ 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -94126,10 +110689,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -94137,10 +110744,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -94148,10 +110755,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -94159,10 +110766,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -94170,10 +110777,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -94181,10 +110788,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -94192,10 +110799,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -94203,10 +110810,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -94214,10 +110821,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -94225,10 +110832,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -94236,32 +110843,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") - } - } - if r.typeN != nil { - t := *r.typeN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.uHeight != nil { @@ -94269,24 +110854,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "form", "multi") } } if r.uHeightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "form", "multi") } } if r.uHeightGte != nil { @@ -94294,10 +110879,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "form", "multi") } } if r.uHeightLt != nil { @@ -94305,10 +110890,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "form", "multi") } } if r.uHeightLte != nil { @@ -94316,10 +110901,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "form", "multi") } } if r.uHeightN != nil { @@ -94327,38 +110912,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.weight != nil { t := *r.weight if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") } } if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") } } if r.weightGte != nil { @@ -94366,10 +110951,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") } } if r.weightLt != nil { @@ -94377,10 +110962,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") } } if r.weightLte != nil { @@ -94388,10 +110973,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") } } if r.weightN != nil { @@ -94399,27 +110984,68 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") } } if r.weightUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") - } - if r.weightUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "form", "") } if r.width != nil { t := *r.width if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "form", "multi") + } + } + if r.widthIc != nil { + t := *r.widthIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", t, "form", "multi") + } + } + if r.widthIe != nil { + t := *r.widthIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", t, "form", "multi") + } + } + if r.widthIew != nil { + t := *r.widthIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", t, "form", "multi") + } + } + if r.widthIsw != nil { + t := *r.widthIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", t, "form", "multi") } } if r.widthN != nil { @@ -94427,10 +111053,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "form", "multi") + } + } + if r.widthNic != nil { + t := *r.widthNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", t, "form", "multi") + } + } + if r.widthNie != nil { + t := *r.widthNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", t, "form", "multi") + } + } + if r.widthNiew != nil { + t := *r.widthNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", t, "form", "multi") + } + } + if r.widthNisw != nil { + t := *r.widthNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", t, "form", "multi") } } // to determine the Content-Type header @@ -94502,9 +111172,9 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin } type ApiDcimRacksPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableRackRequest *PatchedWritableRackRequest } @@ -94522,27 +111192,26 @@ 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 { return ApiDcimRacksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Rack +// @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") @@ -94628,9 +111297,9 @@ func (a *DcimAPIService) DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpda } type ApiDcimRacksRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRacksRetrieveRequest) Execute() (*Rack, *http.Response, error) { @@ -94642,27 +111311,26 @@ 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 { return ApiDcimRacksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Rack +// @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") @@ -94746,9 +111414,9 @@ func (a *DcimAPIService) DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest) } type ApiDcimRacksUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableRackRequest *WritableRackRequest } @@ -94766,27 +111434,26 @@ 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 { return ApiDcimRacksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Rack +// @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") @@ -94875,8 +111542,8 @@ func (a *DcimAPIService) DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*R } type ApiDcimRearPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rearPortTemplateRequest *[]RearPortTemplateRequest } @@ -94894,22 +111561,22 @@ 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 { return ApiDcimRearPortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -94988,8 +111655,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPo } type ApiDcimRearPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rearPortTemplateRequest *[]RearPortTemplateRequest } @@ -95007,25 +111674,24 @@ 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 { return ApiDcimRearPortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPortTemplate +// @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") @@ -95113,8 +111779,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcim } type ApiDcimRearPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rearPortTemplateRequest *[]RearPortTemplateRequest } @@ -95132,25 +111798,24 @@ 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 { return ApiDcimRearPortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPortTemplate +// @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") @@ -95238,8 +111903,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPor } type ApiDcimRearPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableRearPortTemplateRequest *WritableRearPortTemplateRequest } @@ -95257,25 +111922,24 @@ 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 { return ApiDcimRearPortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RearPortTemplate +// @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") @@ -95363,9 +112027,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTem } type ApiDcimRearPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRearPortTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -95377,24 +112041,24 @@ 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 { 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) { 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") @@ -95469,97 +112133,102 @@ 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 - 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 - deviceTypeId *[]*int32 - deviceTypeIdN *[]*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 + ctx context.Context + ApiService DcimAPI + 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 + 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 modifiedByRequest *string - moduleTypeId *[]*int32 - moduleTypeIdN *[]*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 - positionsEmpty *bool - positionsGt *[]int32 - positionsGte *[]int32 - positionsLt *[]int32 - positionsLte *[]int32 - positionsN *[]int32 - q *string - type_ *[]string - typeN *[]string - updatedByRequest *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 + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + updatedByRequest *string } func (r ApiDcimRearPortTemplatesListRequest) Color(color []string) ApiDcimRearPortTemplatesListRequest { @@ -95724,18 +112393,6 @@ func (r ApiDcimRearPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int3 return r } -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Id(id []int32) ApiDcimRearPortTemplatesListRequest { r.id = &id return r @@ -95884,18 +112541,6 @@ func (r ApiDcimRearPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int3 return r } -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Name(name []string) ApiDcimRearPortTemplatesListRequest { r.name = &name return r @@ -96009,11 +112654,56 @@ func (r ApiDcimRearPortTemplatesListRequest) Type_(type_ []string) ApiDcimRearPo return r } +func (r ApiDcimRearPortTemplatesListRequest) TypeEmpty(typeEmpty bool) ApiDcimRearPortTemplatesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +func (r ApiDcimRearPortTemplatesListRequest) TypeIc(typeIc []string) ApiDcimRearPortTemplatesListRequest { + r.typeIc = &typeIc + return r +} + +func (r ApiDcimRearPortTemplatesListRequest) TypeIe(typeIe []string) ApiDcimRearPortTemplatesListRequest { + r.typeIe = &typeIe + return r +} + +func (r ApiDcimRearPortTemplatesListRequest) TypeIew(typeIew []string) ApiDcimRearPortTemplatesListRequest { + r.typeIew = &typeIew + return r +} + +func (r ApiDcimRearPortTemplatesListRequest) TypeIsw(typeIsw []string) ApiDcimRearPortTemplatesListRequest { + r.typeIsw = &typeIsw + return r +} + func (r ApiDcimRearPortTemplatesListRequest) TypeN(typeN []string) ApiDcimRearPortTemplatesListRequest { r.typeN = &typeN return r } +func (r ApiDcimRearPortTemplatesListRequest) TypeNic(typeNic []string) ApiDcimRearPortTemplatesListRequest { + r.typeNic = &typeNic + return r +} + +func (r ApiDcimRearPortTemplatesListRequest) TypeNie(typeNie []string) ApiDcimRearPortTemplatesListRequest { + r.typeNie = &typeNie + return r +} + +func (r ApiDcimRearPortTemplatesListRequest) TypeNiew(typeNiew []string) ApiDcimRearPortTemplatesListRequest { + r.typeNiew = &typeNiew + return r +} + +func (r ApiDcimRearPortTemplatesListRequest) TypeNisw(typeNisw []string) ApiDcimRearPortTemplatesListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimRearPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRearPortTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -96028,25 +112718,24 @@ 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 { return ApiDcimRearPortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRearPortTemplateList +// @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") @@ -96065,24 +112754,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") } } if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") } if r.colorIc != nil { t := *r.colorIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") } } if r.colorIe != nil { @@ -96090,10 +112779,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") } } if r.colorIew != nil { @@ -96101,10 +112790,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") } } if r.colorIsw != nil { @@ -96112,10 +112801,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") } } if r.colorN != nil { @@ -96123,10 +112812,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") } } if r.colorNic != nil { @@ -96134,10 +112823,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") } } if r.colorNie != nil { @@ -96145,10 +112834,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") } } if r.colorNiew != nil { @@ -96156,10 +112845,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") } } if r.colorNisw != nil { @@ -96167,10 +112856,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") } } if r.created != nil { @@ -96178,10 +112867,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -96189,10 +112878,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -96200,10 +112889,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -96211,10 +112900,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -96222,10 +112911,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -96233,10 +112922,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -96244,38 +112933,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -96283,10 +112972,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -96294,10 +112983,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -96305,10 +112994,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -96316,10 +113005,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -96327,10 +113016,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -96338,10 +113027,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -96349,10 +113038,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -96360,10 +113049,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.deviceTypeId != nil { @@ -96371,10 +113060,10 @@ 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, "device_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } if r.deviceTypeIdN != nil { @@ -96382,32 +113071,10 @@ 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, "device_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__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, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_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, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -96415,24 +113082,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -96440,10 +113107,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -96451,10 +113118,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -96462,10 +113129,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -96473,10 +113140,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.label != nil { @@ -96484,24 +113151,24 @@ 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, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -96509,10 +113176,10 @@ 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, "label__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -96520,10 +113187,10 @@ 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, "label__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -96531,10 +113198,10 @@ 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -96542,10 +113209,10 @@ 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -96553,10 +113220,10 @@ 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -96564,10 +113231,10 @@ 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -96575,10 +113242,10 @@ 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -96586,10 +113253,10 @@ 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -96597,10 +113264,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -96608,10 +113275,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -96619,10 +113286,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -96630,10 +113297,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -96641,10 +113308,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -96652,10 +113319,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -96663,27 +113330,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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, "module_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "form", "multi") } } if r.moduleTypeIdN != nil { @@ -96691,32 +113358,10 @@ 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, "module_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "form", "multi") } } if r.name != nil { @@ -96724,24 +113369,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -96749,10 +113394,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -96760,10 +113405,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -96771,10 +113416,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -96782,10 +113427,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -96793,10 +113438,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -96804,10 +113449,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -96815,10 +113460,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -96826,41 +113471,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.positions != nil { t := *r.positions if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions", t, "form", "multi") } } if r.positionsEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__empty", r.positionsEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__empty", r.positionsEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", t, "form", "multi") } } if r.positionsGte != nil { @@ -96868,10 +113513,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", t, "form", "multi") } } if r.positionsLt != nil { @@ -96879,10 +113524,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", t, "form", "multi") } } if r.positionsLte != nil { @@ -96890,10 +113535,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", t, "form", "multi") } } if r.positionsN != nil { @@ -96901,24 +113546,71 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") } } if r.typeN != nil { @@ -96926,14 +113618,58 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -97004,9 +113740,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl } type ApiDcimRearPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableRearPortTemplateRequest *PatchedWritableRearPortTemplateRequest } @@ -97024,27 +113760,26 @@ 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 { return ApiDcimRearPortTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPortTemplate +// @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") @@ -97130,9 +113865,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRear } type ApiDcimRearPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRearPortTemplatesRetrieveRequest) Execute() (*RearPortTemplate, *http.Response, error) { @@ -97144,27 +113879,26 @@ 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 { return ApiDcimRearPortTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPortTemplate +// @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") @@ -97248,9 +113982,9 @@ func (a *DcimAPIService) DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortT } type ApiDcimRearPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableRearPortTemplateRequest *WritableRearPortTemplateRequest } @@ -97268,27 +114002,26 @@ 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 { return ApiDcimRearPortTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPortTemplate +// @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") @@ -97377,8 +114110,8 @@ func (a *DcimAPIService) DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTem } type ApiDcimRearPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rearPortRequest *[]RearPortRequest } @@ -97396,22 +114129,22 @@ 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 { return ApiDcimRearPortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -97490,8 +114223,8 @@ func (a *DcimAPIService) DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkD } type ApiDcimRearPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rearPortRequest *[]RearPortRequest } @@ -97509,25 +114242,24 @@ 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 { return ApiDcimRearPortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPort +// @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") @@ -97615,8 +114347,8 @@ func (a *DcimAPIService) DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPort } type ApiDcimRearPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI rearPortRequest *[]RearPortRequest } @@ -97634,25 +114366,24 @@ 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 { return ApiDcimRearPortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPort +// @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") @@ -97740,8 +114471,8 @@ func (a *DcimAPIService) DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUp } type ApiDcimRearPortsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableRearPortRequest *WritableRearPortRequest } @@ -97759,25 +114490,24 @@ 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 { return ApiDcimRearPortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RearPort +// @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") @@ -97865,9 +114595,9 @@ func (a *DcimAPIService) DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequ } type ApiDcimRearPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRearPortsDestroyRequest) Execute() (*http.Response, error) { @@ -97879,24 +114609,24 @@ 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 { 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) { 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") @@ -97971,135 +114701,154 @@ func (a *DcimAPIService) DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRe } type ApiDcimRearPortsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter - cableId *[]*int32 - cableIdN *[]*int32 - 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 - 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 - markConnected *bool + ctx context.Context + ApiService DcimAPI + cableEnd *CircuitsCircuitTerminationsListCableEndParameter + cableId *[]*int32 + cableIdN *[]*int32 + 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 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]string + deviceStatusIe *[]string + deviceStatusIew *[]string + deviceStatusIsw *[]string + deviceStatusN *[]string + deviceStatusNic *[]string + deviceStatusNie *[]string + deviceStatusNiew *[]string + deviceStatusNisw *[]string + 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 + markConnected *bool 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 + 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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -98109,12 +114858,6 @@ func (r ApiDcimRearPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminatio return r } -// * `A` - A * `B` - B -func (r ApiDcimRearPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimRearPortsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimRearPortsListRequest) CableId(cableId []*int32) ApiDcimRearPortsListRequest { r.cableId = &cableId @@ -98306,6 +115049,85 @@ func (r ApiDcimRearPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimRearPor return r } +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRole(deviceRole []string) ApiDcimRearPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimRearPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimRearPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimRearPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimRearPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimRearPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusIc(deviceStatusIc []string) ApiDcimRearPortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusIe(deviceStatusIe []string) ApiDcimRearPortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusIew(deviceStatusIew []string) ApiDcimRearPortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusIsw(deviceStatusIsw []string) ApiDcimRearPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimRearPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusNic(deviceStatusNic []string) ApiDcimRearPortsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusNie(deviceStatusNie []string) ApiDcimRearPortsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusNiew(deviceStatusNiew []string) ApiDcimRearPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusNisw(deviceStatusNisw []string) ApiDcimRearPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimRearPortsListRequest) DeviceType(deviceType []string) ApiDcimRearPortsListRequest { r.deviceType = &deviceType @@ -98644,54 +115466,26 @@ func (r ApiDcimRearPortsListRequest) RackIdN(rackIdN []int32) ApiDcimRearPortsLi return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) Region(region []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) Region(region []string) ApiDcimRearPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) RegionN(regionN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionN(regionN []string) ApiDcimRearPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionId(regionId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionId(regionId []string) ApiDcimRearPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []string) ApiDcimRearPortsListRequest { r.regionIdN = ®ionIdN 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 @@ -98704,26 +115498,22 @@ func (r ApiDcimRearPortsListRequest) SiteN(siteN []string) ApiDcimRearPortsListR return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []string) ApiDcimRearPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRearPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRearPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRearPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -98755,11 +115545,56 @@ func (r ApiDcimRearPortsListRequest) Type_(type_ []string) ApiDcimRearPortsListR return r } +func (r ApiDcimRearPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimRearPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +func (r ApiDcimRearPortsListRequest) TypeIc(typeIc []string) ApiDcimRearPortsListRequest { + r.typeIc = &typeIc + return r +} + +func (r ApiDcimRearPortsListRequest) TypeIe(typeIe []string) ApiDcimRearPortsListRequest { + r.typeIe = &typeIe + return r +} + +func (r ApiDcimRearPortsListRequest) TypeIew(typeIew []string) ApiDcimRearPortsListRequest { + r.typeIew = &typeIew + return r +} + +func (r ApiDcimRearPortsListRequest) TypeIsw(typeIsw []string) ApiDcimRearPortsListRequest { + r.typeIsw = &typeIsw + return r +} + func (r ApiDcimRearPortsListRequest) TypeN(typeN []string) ApiDcimRearPortsListRequest { r.typeN = &typeN return r } +func (r ApiDcimRearPortsListRequest) TypeNic(typeNic []string) ApiDcimRearPortsListRequest { + r.typeNic = &typeNic + return r +} + +func (r ApiDcimRearPortsListRequest) TypeNie(typeNie []string) ApiDcimRearPortsListRequest { + r.typeNie = &typeNie + return r +} + +func (r ApiDcimRearPortsListRequest) TypeNiew(typeNiew []string) ApiDcimRearPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +func (r ApiDcimRearPortsListRequest) TypeNisw(typeNisw []string) ApiDcimRearPortsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimRearPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRearPortsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -98798,25 +115633,24 @@ 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 { return ApiDcimRearPortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRearPortList +// @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") @@ -98831,20 +115665,17 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) localVarFormParams := url.Values{} if r.cableEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") - } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "form", "") } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id", t, "form", "multi") } } if r.cableIdN != nil { @@ -98852,38 +115683,38 @@ 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, "cable_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cable_id__n", t, "form", "multi") } } if r.cabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "cabled", r.cabled, "form", "") } if r.color != nil { t := *r.color if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") } } if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") } if r.colorIc != nil { t := *r.colorIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") } } if r.colorIe != nil { @@ -98891,10 +115722,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") } } if r.colorIew != nil { @@ -98902,10 +115733,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") } } if r.colorIsw != nil { @@ -98913,10 +115744,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") } } if r.colorN != nil { @@ -98924,10 +115755,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") } } if r.colorNic != nil { @@ -98935,10 +115766,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") } } if r.colorNie != nil { @@ -98946,10 +115777,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") } } if r.colorNiew != nil { @@ -98957,10 +115788,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") } } if r.colorNisw != nil { @@ -98968,10 +115799,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") } } if r.created != nil { @@ -98979,10 +115810,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -98990,10 +115821,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -99001,10 +115832,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -99012,10 +115843,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -99023,10 +115854,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -99034,10 +115865,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -99045,38 +115876,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -99084,10 +115915,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -99095,10 +115926,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -99106,10 +115937,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -99117,10 +115948,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -99128,10 +115959,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -99139,10 +115970,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -99150,10 +115981,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -99161,10 +115992,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.device != nil { @@ -99172,10 +116003,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } if r.deviceN != nil { @@ -99183,10 +116014,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi") } } if r.deviceId != nil { @@ -99194,10 +116025,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } if r.deviceIdN != nil { @@ -99205,10 +116036,167 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "form", "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "form", "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "form", "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "form", "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "form", "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "form", "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "form", "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "form", "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "form", "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "form", "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "form", "multi") } } if r.deviceType != nil { @@ -99216,10 +116204,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "form", "multi") } } if r.deviceTypeN != nil { @@ -99227,10 +116215,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "form", "multi") } } if r.deviceTypeId != nil { @@ -99238,10 +116226,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "multi") } } if r.deviceTypeIdN != nil { @@ -99249,10 +116237,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "multi") } } if r.id != nil { @@ -99260,24 +116248,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -99285,10 +116273,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -99296,10 +116284,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -99307,10 +116295,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -99318,10 +116306,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.label != nil { @@ -99329,24 +116317,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") } } if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") } if r.labelIc != nil { t := *r.labelIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") } } if r.labelIe != nil { @@ -99354,10 +116342,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") } } if r.labelIew != nil { @@ -99365,10 +116353,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") } } if r.labelIsw != nil { @@ -99376,10 +116364,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") } } if r.labelN != nil { @@ -99387,10 +116375,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") } } if r.labelNic != nil { @@ -99398,10 +116386,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") } } if r.labelNie != nil { @@ -99409,10 +116397,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") } } if r.labelNiew != nil { @@ -99420,10 +116408,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") } } if r.labelNisw != nil { @@ -99431,10 +116419,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") } } if r.lastUpdated != nil { @@ -99442,10 +116430,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -99453,10 +116441,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -99464,10 +116452,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -99475,10 +116463,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -99486,10 +116474,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -99497,10 +116485,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -99508,24 +116496,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } if r.locationN != nil { @@ -99533,10 +116521,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } if r.locationId != nil { @@ -99544,10 +116532,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } if r.locationIdN != nil { @@ -99555,27 +116543,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } if r.markConnected != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_connected", r.markConnected, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") } } if r.moduleIdN != nil { @@ -99583,10 +116571,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") } } if r.name != nil { @@ -99594,24 +116582,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -99619,10 +116607,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -99630,10 +116618,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -99641,10 +116629,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -99652,10 +116640,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -99663,10 +116651,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -99674,10 +116662,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -99685,10 +116673,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -99696,44 +116684,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.occupied != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.positions != nil { t := *r.positions if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions", t, "form", "multi") } } if r.positionsEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__empty", r.positionsEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__empty", r.positionsEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", t, "form", "multi") } } if r.positionsGte != nil { @@ -99741,10 +116729,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", t, "form", "multi") } } if r.positionsLt != nil { @@ -99752,10 +116740,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", t, "form", "multi") } } if r.positionsLte != nil { @@ -99763,10 +116751,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", t, "form", "multi") } } if r.positionsN != nil { @@ -99774,24 +116762,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.rack != nil { t := *r.rack if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "form", "multi") } } if r.rackN != nil { @@ -99799,10 +116787,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "form", "multi") } } if r.rackId != nil { @@ -99810,10 +116798,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "form", "multi") } } if r.rackIdN != nil { @@ -99821,10 +116809,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "form", "multi") } } if r.region != nil { @@ -99832,10 +116820,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -99843,10 +116831,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -99854,10 +116842,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -99865,175 +116853,178 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.role != nil { - t := *r.role + 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, "role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + 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, "site_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.typeIe != nil { + t := *r.typeIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.typeIew != nil { + t := *r.typeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") } } - if r.type_ != nil { - t := *r.type_ + if r.typeIsw != nil { + t := *r.typeIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") } } if r.typeN != nil { @@ -100041,24 +117032,68 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.virtualChassis != nil { t := *r.virtualChassis 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "form", "multi") } } if r.virtualChassisN != nil { @@ -100066,10 +117101,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "form", "multi") } } if r.virtualChassisId != nil { @@ -100077,10 +117112,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "form", "multi") } } if r.virtualChassisIdN != nil { @@ -100088,10 +117123,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -100163,9 +117198,9 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) } type ApiDcimRearPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableRearPortRequest *PatchedWritableRearPortRequest } @@ -100183,27 +117218,26 @@ 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 { return ApiDcimRearPortsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort +// @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") @@ -100289,9 +117323,9 @@ func (a *DcimAPIService) DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPar } type ApiDcimRearPortsPathsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRearPortsPathsRetrieveRequest) Execute() (*RearPort, *http.Response, error) { @@ -100303,27 +117337,26 @@ 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 { return ApiDcimRearPortsPathsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort +// @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") @@ -100407,9 +117440,9 @@ func (a *DcimAPIService) DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPat } type ApiDcimRearPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRearPortsRetrieveRequest) Execute() (*RearPort, *http.Response, error) { @@ -100421,27 +117454,26 @@ 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 { return ApiDcimRearPortsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort +// @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") @@ -100525,9 +117557,9 @@ func (a *DcimAPIService) DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieve } type ApiDcimRearPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableRearPortRequest *WritableRearPortRequest } @@ -100545,27 +117577,26 @@ 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 { return ApiDcimRearPortsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort +// @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") @@ -100654,8 +117685,8 @@ func (a *DcimAPIService) DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequ } type ApiDcimRegionsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI regionRequest *[]RegionRequest } @@ -100673,22 +117704,22 @@ 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 { return ApiDcimRegionsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -100767,8 +117798,8 @@ func (a *DcimAPIService) DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestr } type ApiDcimRegionsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI regionRequest *[]RegionRequest } @@ -100786,25 +117817,24 @@ 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 { return ApiDcimRegionsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Region +// @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") @@ -100892,8 +117922,8 @@ func (a *DcimAPIService) DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBul } type ApiDcimRegionsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI regionRequest *[]RegionRequest } @@ -100911,25 +117941,24 @@ 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 { return ApiDcimRegionsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Region +// @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") @@ -101017,8 +118046,8 @@ func (a *DcimAPIService) DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdate } type ApiDcimRegionsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableRegionRequest *WritableRegionRequest } @@ -101036,25 +118065,24 @@ 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 { return ApiDcimRegionsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Region +// @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") @@ -101142,9 +118170,9 @@ func (a *DcimAPIService) DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest) } type ApiDcimRegionsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRegionsDestroyRequest) Execute() (*http.Response, error) { @@ -101156,24 +118184,24 @@ 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 { 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) { 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") @@ -101248,107 +118276,103 @@ func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyReques } type ApiDcimRegionsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]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 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 + ctx context.Context + ApiService DcimAPI + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + 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 -} - -// Region (slug) -func (r ApiDcimRegionsListRequest) Ancestor(ancestor []int32) ApiDcimRegionsListRequest { + 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 +} + +func (r ApiDcimRegionsListRequest) Ancestor(ancestor []string) ApiDcimRegionsListRequest { r.ancestor = &ancestor return r } -// Region (slug) -func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []string) ApiDcimRegionsListRequest { r.ancestorN = &ancestorN return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []string) ApiDcimRegionsListRequest { r.ancestorId = &ancestorId return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimRegionsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -101365,14 +118389,12 @@ func (r ApiDcimRegionsListRequest) ContactN(contactN []int32) ApiDcimRegionsList return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []string) ApiDcimRegionsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []string) ApiDcimRegionsListRequest { r.contactGroupN = &contactGroupN return r } @@ -101741,25 +118763,24 @@ 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 { return ApiDcimRegionsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRegionList +// @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") @@ -101778,10 +118799,10 @@ 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, "ancestor", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "form", "multi") } } if r.ancestorN != nil { @@ -101789,10 +118810,10 @@ 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, "ancestor__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "form", "multi") } } if r.ancestorId != nil { @@ -101800,10 +118821,10 @@ 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, "ancestor_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "form", "multi") } } if r.ancestorIdN != nil { @@ -101811,10 +118832,10 @@ 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, "ancestor_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi") } } if r.contact != nil { @@ -101822,10 +118843,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -101833,10 +118854,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -101844,10 +118865,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -101855,10 +118876,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -101866,10 +118887,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -101877,10 +118898,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -101888,10 +118909,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -101899,10 +118920,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -101910,10 +118931,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -101921,10 +118942,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -101932,10 +118953,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -101943,10 +118964,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -101954,38 +118975,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -101993,10 +119014,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -102004,10 +119025,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -102015,10 +119036,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -102026,10 +119047,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -102037,10 +119058,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -102048,10 +119069,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -102059,10 +119080,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -102070,10 +119091,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -102081,24 +119102,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -102106,10 +119127,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -102117,10 +119138,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -102128,10 +119149,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -102139,10 +119160,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -102150,10 +119171,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -102161,10 +119182,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -102172,10 +119193,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -102183,10 +119204,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -102194,10 +119215,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -102205,10 +119226,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -102216,41 +119237,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -102258,10 +119279,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -102269,10 +119290,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -102280,10 +119301,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -102291,10 +119312,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -102302,10 +119323,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -102313,10 +119334,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -102324,10 +119345,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -102335,27 +119356,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi") } } if r.parentN != nil { @@ -102363,10 +119384,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "form", "multi") } } if r.parentId != nil { @@ -102374,10 +119395,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } if r.parentIdN != nil { @@ -102385,38 +119406,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -102424,10 +119445,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -102435,10 +119456,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -102446,10 +119467,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -102457,10 +119478,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -102468,10 +119489,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -102479,10 +119500,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -102490,10 +119511,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -102501,10 +119522,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -102512,10 +119533,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -102523,14 +119544,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -102601,9 +119622,9 @@ func (a *DcimAPIService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P } type ApiDcimRegionsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableRegionRequest *PatchedWritableRegionRequest } @@ -102621,27 +119642,26 @@ 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 { return ApiDcimRegionsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Region +// @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") @@ -102727,9 +119747,9 @@ func (a *DcimAPIService) DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartial } type ApiDcimRegionsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimRegionsRetrieveRequest) Execute() (*Region, *http.Response, error) { @@ -102741,27 +119761,26 @@ 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 { return ApiDcimRegionsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Region +// @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") @@ -102845,9 +119864,9 @@ func (a *DcimAPIService) DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequ } type ApiDcimRegionsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableRegionRequest *WritableRegionRequest } @@ -102865,27 +119884,26 @@ 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 { return ApiDcimRegionsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Region +// @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") @@ -102974,8 +119992,8 @@ func (a *DcimAPIService) DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest) } type ApiDcimSiteGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI siteGroupRequest *[]SiteGroupRequest } @@ -102993,22 +120011,22 @@ 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 { return ApiDcimSiteGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -103087,8 +120105,8 @@ func (a *DcimAPIService) DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBul } type ApiDcimSiteGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI siteGroupRequest *[]SiteGroupRequest } @@ -103106,25 +120124,24 @@ 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 { return ApiDcimSiteGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SiteGroup +// @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") @@ -103212,8 +120229,8 @@ func (a *DcimAPIService) DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGro } type ApiDcimSiteGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI siteGroupRequest *[]SiteGroupRequest } @@ -103231,25 +120248,24 @@ 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 { return ApiDcimSiteGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SiteGroup +// @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") @@ -103337,8 +120353,8 @@ func (a *DcimAPIService) DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulk } type ApiDcimSiteGroupsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableSiteGroupRequest *WritableSiteGroupRequest } @@ -103356,25 +120372,24 @@ 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 { return ApiDcimSiteGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return SiteGroup +// @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") @@ -103462,9 +120477,9 @@ func (a *DcimAPIService) DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRe } type ApiDcimSiteGroupsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimSiteGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -103476,24 +120491,24 @@ 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 { 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) { 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") @@ -103568,107 +120583,103 @@ func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroy } type ApiDcimSiteGroupsListRequest struct { - ctx context.Context - ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]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 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 + ctx context.Context + ApiService DcimAPI + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + 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 -} - -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []int32) ApiDcimSiteGroupsListRequest { + 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 +} + +func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []string) ApiDcimSiteGroupsListRequest { r.ancestor = &ancestor return r } -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []string) ApiDcimSiteGroupsListRequest { r.ancestorN = &ancestorN return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []string) ApiDcimSiteGroupsListRequest { r.ancestorId = &ancestorId return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimSiteGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -103685,14 +120696,12 @@ func (r ApiDcimSiteGroupsListRequest) ContactN(contactN []int32) ApiDcimSiteGrou return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []string) ApiDcimSiteGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []string) ApiDcimSiteGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -104061,25 +121070,24 @@ 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 { return ApiDcimSiteGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedSiteGroupList +// @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") @@ -104098,10 +121106,10 @@ 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, "ancestor", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "form", "multi") } } if r.ancestorN != nil { @@ -104109,10 +121117,10 @@ 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, "ancestor__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "form", "multi") } } if r.ancestorId != nil { @@ -104120,10 +121128,10 @@ 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, "ancestor_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "form", "multi") } } if r.ancestorIdN != nil { @@ -104131,10 +121139,10 @@ 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, "ancestor_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi") } } if r.contact != nil { @@ -104142,10 +121150,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -104153,10 +121161,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -104164,10 +121172,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -104175,10 +121183,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -104186,10 +121194,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -104197,10 +121205,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -104208,10 +121216,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -104219,10 +121227,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -104230,10 +121238,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -104241,10 +121249,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -104252,10 +121260,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -104263,10 +121271,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -104274,38 +121282,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -104313,10 +121321,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -104324,10 +121332,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -104335,10 +121343,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -104346,10 +121354,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -104357,10 +121365,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -104368,10 +121376,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -104379,10 +121387,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -104390,10 +121398,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -104401,24 +121409,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -104426,10 +121434,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -104437,10 +121445,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -104448,10 +121456,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -104459,10 +121467,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -104470,10 +121478,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -104481,10 +121489,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -104492,10 +121500,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -104503,10 +121511,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -104514,10 +121522,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -104525,10 +121533,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -104536,41 +121544,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -104578,10 +121586,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -104589,10 +121597,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -104600,10 +121608,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -104611,10 +121619,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -104622,10 +121630,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -104633,10 +121641,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -104644,10 +121652,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -104655,27 +121663,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi") } } if r.parentN != nil { @@ -104683,10 +121691,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "form", "multi") } } if r.parentId != nil { @@ -104694,10 +121702,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } if r.parentIdN != nil { @@ -104705,38 +121713,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -104744,10 +121752,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -104755,10 +121763,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -104766,10 +121774,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -104777,10 +121785,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -104788,10 +121796,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -104799,10 +121807,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -104810,10 +121818,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -104821,10 +121829,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -104832,10 +121840,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -104843,14 +121851,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -104921,9 +121929,9 @@ func (a *DcimAPIService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques } type ApiDcimSiteGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableSiteGroupRequest *PatchedWritableSiteGroupRequest } @@ -104941,27 +121949,26 @@ 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 { return ApiDcimSiteGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SiteGroup +// @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") @@ -105047,9 +122054,9 @@ func (a *DcimAPIService) DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsP } type ApiDcimSiteGroupsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimSiteGroupsRetrieveRequest) Execute() (*SiteGroup, *http.Response, error) { @@ -105061,27 +122068,26 @@ 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 { return ApiDcimSiteGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SiteGroup +// @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") @@ -105165,9 +122171,9 @@ func (a *DcimAPIService) DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrie } type ApiDcimSiteGroupsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableSiteGroupRequest *WritableSiteGroupRequest } @@ -105185,27 +122191,26 @@ 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 { return ApiDcimSiteGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SiteGroup +// @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") @@ -105294,8 +122299,8 @@ func (a *DcimAPIService) DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRe } type ApiDcimSitesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI siteRequest *[]SiteRequest } @@ -105313,22 +122318,22 @@ 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 { return ApiDcimSitesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -105407,8 +122412,8 @@ func (a *DcimAPIService) DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRe } type ApiDcimSitesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI siteRequest *[]SiteRequest } @@ -105426,25 +122431,24 @@ 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 { return ApiDcimSitesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Site +// @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") @@ -105532,8 +122536,8 @@ func (a *DcimAPIService) DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPar } type ApiDcimSitesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI siteRequest *[]SiteRequest } @@ -105551,25 +122555,24 @@ 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 { return ApiDcimSitesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Site +// @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") @@ -105657,8 +122660,8 @@ func (a *DcimAPIService) DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequ } type ApiDcimSitesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableSiteRequest *WritableSiteRequest } @@ -105676,25 +122679,24 @@ 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 { return ApiDcimSitesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Site +// @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") @@ -105782,9 +122784,9 @@ func (a *DcimAPIService) DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*S } type ApiDcimSitesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimSitesDestroyRequest) Execute() (*http.Response, error) { @@ -105796,24 +122798,24 @@ 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 { 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) { 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") @@ -105888,134 +122890,143 @@ 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 - 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 - 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 + ctx context.Context + ApiService DcimAPI + asn *[]int64 + asnN *[]int64 + asnId *[]int32 + asnIdN *[]int32 + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + facility *[]string + facilityEmpty *bool + facilityIc *[]string + facilityIe *[]string + facilityIew *[]string + facilityIsw *[]string + facilityN *[]string + facilityNic *[]string + facilityNie *[]string + facilityNiew *[]string + facilityNisw *[]string + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]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 + 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 - timeZone *[]string - timeZoneIc *[]string - timeZoneIe *[]string - timeZoneIew *[]string - timeZoneIsw *[]string - timeZoneN *[]string - timeZoneNic *[]string - timeZoneNie *[]string - timeZoneNiew *[]string - timeZoneNisw *[]string - updatedByRequest *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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + timeZone *[]string + timeZoneIc *[]string + timeZoneIe *[]string + timeZoneIew *[]string + timeZoneIsw *[]string + timeZoneN *[]string + timeZoneNic *[]string + timeZoneNie *[]string + timeZoneNiew *[]string + timeZoneNisw *[]string + updatedByRequest *string } // AS (ID) @@ -106054,14 +123065,12 @@ func (r ApiDcimSitesListRequest) ContactN(contactN []int32) ApiDcimSitesListRequ return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []string) ApiDcimSitesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []string) ApiDcimSitesListRequest { r.contactGroupN = &contactGroupN return r } @@ -106228,26 +123237,22 @@ func (r ApiDcimSitesListRequest) FacilityNisw(facilityNisw []string) ApiDcimSite return r } -// Group (slug) -func (r ApiDcimSitesListRequest) Group(group []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Group(group []string) ApiDcimSitesListRequest { r.group = &group return r } -// Group (slug) -func (r ApiDcimSitesListRequest) GroupN(groupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupN(groupN []string) ApiDcimSitesListRequest { r.groupN = &groupN return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupId(groupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupId(groupId []string) ApiDcimSitesListRequest { r.groupId = &groupId return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []string) ApiDcimSitesListRequest { r.groupIdN = &groupIdN return r } @@ -106476,26 +123481,22 @@ func (r ApiDcimSitesListRequest) Q(q string) ApiDcimSitesListRequest { return r } -// Region (slug) -func (r ApiDcimSitesListRequest) Region(region []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Region(region []string) ApiDcimSitesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimSitesListRequest) RegionN(regionN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionN(regionN []string) ApiDcimSitesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionId(regionId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionId(regionId []string) ApiDcimSitesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []string) ApiDcimSitesListRequest { r.regionIdN = ®ionIdN return r } @@ -106560,11 +123561,56 @@ func (r ApiDcimSitesListRequest) Status(status []string) ApiDcimSitesListRequest return r } +func (r ApiDcimSitesListRequest) StatusEmpty(statusEmpty bool) ApiDcimSitesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiDcimSitesListRequest) StatusIc(statusIc []string) ApiDcimSitesListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiDcimSitesListRequest) StatusIe(statusIe []string) ApiDcimSitesListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiDcimSitesListRequest) StatusIew(statusIew []string) ApiDcimSitesListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiDcimSitesListRequest) StatusIsw(statusIsw []string) ApiDcimSitesListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiDcimSitesListRequest) StatusN(statusN []string) ApiDcimSitesListRequest { r.statusN = &statusN return r } +func (r ApiDcimSitesListRequest) StatusNic(statusNic []string) ApiDcimSitesListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiDcimSitesListRequest) StatusNie(statusNie []string) ApiDcimSitesListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiDcimSitesListRequest) StatusNiew(statusNiew []string) ApiDcimSitesListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiDcimSitesListRequest) StatusNisw(statusNisw []string) ApiDcimSitesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimSitesListRequest) Tag(tag []string) ApiDcimSitesListRequest { r.tag = &tag return r @@ -106587,26 +123633,22 @@ func (r ApiDcimSitesListRequest) TenantN(tenantN []string) ApiDcimSitesListReque return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []string) ApiDcimSitesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimSitesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimSitesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimSitesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -106687,25 +123729,24 @@ 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 { return ApiDcimSitesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedSiteList +// @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") @@ -106724,10 +123765,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "form", "multi") } } if r.asnN != nil { @@ -106735,10 +123776,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "form", "multi") } } if r.asnId != nil { @@ -106746,10 +123787,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", t, "form", "multi") } } if r.asnIdN != nil { @@ -106757,10 +123798,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", t, "form", "multi") } } if r.contact != nil { @@ -106768,10 +123809,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -106779,10 +123820,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -106790,10 +123831,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -106801,10 +123842,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -106812,10 +123853,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -106823,10 +123864,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -106834,10 +123875,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -106845,10 +123886,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -106856,10 +123897,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -106867,10 +123908,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -106878,10 +123919,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -106889,10 +123930,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -106900,38 +123941,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -106939,10 +123980,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -106950,10 +123991,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -106961,10 +124002,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -106972,10 +124013,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -106983,10 +124024,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -106994,10 +124035,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -107005,10 +124046,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -107016,10 +124057,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.facility != nil { @@ -107027,24 +124068,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility", t, "form", "multi") } } if r.facilityEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__empty", r.facilityEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__empty", r.facilityEmpty, "form", "") } if r.facilityIc != nil { t := *r.facilityIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", t, "form", "multi") } } if r.facilityIe != nil { @@ -107052,10 +124093,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", t, "form", "multi") } } if r.facilityIew != nil { @@ -107063,10 +124104,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", t, "form", "multi") } } if r.facilityIsw != nil { @@ -107074,10 +124115,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", t, "form", "multi") } } if r.facilityN != nil { @@ -107085,10 +124126,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", t, "form", "multi") } } if r.facilityNic != nil { @@ -107096,10 +124137,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", t, "form", "multi") } } if r.facilityNie != nil { @@ -107107,10 +124148,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", t, "form", "multi") } } if r.facilityNiew != nil { @@ -107118,10 +124159,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", t, "form", "multi") } } if r.facilityNisw != nil { @@ -107129,10 +124170,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", t, "form", "multi") } } if r.group != nil { @@ -107140,10 +124181,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -107151,10 +124192,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -107162,10 +124203,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -107173,10 +124214,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -107184,24 +124225,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -107209,10 +124250,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -107220,10 +124261,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -107231,10 +124272,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -107242,10 +124283,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -107253,10 +124294,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -107264,10 +124305,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -107275,10 +124316,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -107286,10 +124327,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -107297,10 +124338,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -107308,10 +124349,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -107319,10 +124360,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.latitude != nil { @@ -107330,24 +124371,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", t, "form", "multi") } } if r.latitudeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__empty", r.latitudeEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__empty", r.latitudeEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", t, "form", "multi") } } if r.latitudeGte != nil { @@ -107355,10 +124396,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", t, "form", "multi") } } if r.latitudeLt != nil { @@ -107366,10 +124407,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", t, "form", "multi") } } if r.latitudeLte != nil { @@ -107377,10 +124418,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", t, "form", "multi") } } if r.latitudeN != nil { @@ -107388,38 +124429,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", t, "form", "multi") } } if r.longitudeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__empty", r.longitudeEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__empty", r.longitudeEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", t, "form", "multi") } } if r.longitudeGte != nil { @@ -107427,10 +124468,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", t, "form", "multi") } } if r.longitudeLt != nil { @@ -107438,10 +124479,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", t, "form", "multi") } } if r.longitudeLte != nil { @@ -107449,10 +124490,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", t, "form", "multi") } } if r.longitudeN != nil { @@ -107460,38 +124501,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -107499,10 +124540,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -107510,10 +124551,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -107521,10 +124562,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -107532,10 +124573,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -107543,10 +124584,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -107554,10 +124595,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -107565,10 +124606,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -107576,30 +124617,30 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -107607,10 +124648,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -107618,10 +124659,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -107629,10 +124670,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } if r.slug != nil { @@ -107640,24 +124681,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -107665,10 +124706,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -107676,10 +124717,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -107687,10 +124728,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -107698,10 +124739,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -107709,10 +124750,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -107720,10 +124761,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -107731,10 +124772,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -107742,10 +124783,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.status != nil { @@ -107753,10 +124794,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -107764,10 +124852,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -107775,10 +124907,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -107786,10 +124918,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -107797,10 +124929,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -107808,10 +124940,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -107819,10 +124951,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -107830,10 +124962,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -107841,10 +124973,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -107852,10 +124984,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -107863,10 +124995,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -107874,10 +125006,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.timeZone != nil { @@ -107885,10 +125017,10 @@ 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, "time_zone", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone", t, "form", "multi") } } if r.timeZoneIc != nil { @@ -107896,10 +125028,10 @@ 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, "time_zone__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ic", t, "form", "multi") } } if r.timeZoneIe != nil { @@ -107907,10 +125039,10 @@ 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, "time_zone__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__ie", t, "form", "multi") } } if r.timeZoneIew != nil { @@ -107918,10 +125050,10 @@ 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, "time_zone__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__iew", t, "form", "multi") } } if r.timeZoneIsw != nil { @@ -107929,10 +125061,10 @@ 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, "time_zone__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__isw", t, "form", "multi") } } if r.timeZoneN != nil { @@ -107940,10 +125072,10 @@ 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, "time_zone__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__n", t, "form", "multi") } } if r.timeZoneNic != nil { @@ -107951,10 +125083,10 @@ 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, "time_zone__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nic", t, "form", "multi") } } if r.timeZoneNie != nil { @@ -107962,10 +125094,10 @@ 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, "time_zone__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nie", t, "form", "multi") } } if r.timeZoneNiew != nil { @@ -107973,10 +125105,10 @@ 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, "time_zone__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__niew", t, "form", "multi") } } if r.timeZoneNisw != nil { @@ -107984,14 +125116,14 @@ 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, "time_zone__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "time_zone__nisw", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -108062,9 +125194,9 @@ func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin } type ApiDcimSitesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableSiteRequest *PatchedWritableSiteRequest } @@ -108082,27 +125214,26 @@ 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 { return ApiDcimSitesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Site +// @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") @@ -108188,9 +125319,9 @@ func (a *DcimAPIService) DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpda } type ApiDcimSitesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimSitesRetrieveRequest) Execute() (*Site, *http.Response, error) { @@ -108202,27 +125333,26 @@ 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 { return ApiDcimSitesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Site +// @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") @@ -108306,9 +125436,9 @@ func (a *DcimAPIService) DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest) } type ApiDcimSitesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableSiteRequest *WritableSiteRequest } @@ -108326,27 +125456,26 @@ 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 { return ApiDcimSitesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Site +// @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") @@ -108435,8 +125564,8 @@ func (a *DcimAPIService) DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*S } type ApiDcimVirtualChassisBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI virtualChassisRequest *[]VirtualChassisRequest } @@ -108454,22 +125583,22 @@ 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 { return ApiDcimVirtualChassisBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -108548,8 +125677,8 @@ func (a *DcimAPIService) DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualCh } type ApiDcimVirtualChassisBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI virtualChassisRequest *[]VirtualChassisRequest } @@ -108567,25 +125696,24 @@ 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 { return ApiDcimVirtualChassisBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualChassis +// @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") @@ -108673,8 +125801,8 @@ func (a *DcimAPIService) DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVir } type ApiDcimVirtualChassisBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI virtualChassisRequest *[]VirtualChassisRequest } @@ -108692,25 +125820,24 @@ 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 { return ApiDcimVirtualChassisBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualChassis +// @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") @@ -108798,8 +125925,8 @@ func (a *DcimAPIService) DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualCha } type ApiDcimVirtualChassisCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableVirtualChassisRequest *WritableVirtualChassisRequest } @@ -108817,25 +125944,24 @@ 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 { return ApiDcimVirtualChassisCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VirtualChassis +// @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") @@ -108923,9 +126049,9 @@ func (a *DcimAPIService) DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassis } type ApiDcimVirtualChassisDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimVirtualChassisDestroyRequest) Execute() (*http.Response, error) { @@ -108937,24 +126063,24 @@ 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 { 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) { 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") @@ -109029,98 +126155,98 @@ func (a *DcimAPIService) DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassi } type ApiDcimVirtualChassisListRequest struct { - 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 - 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 - memberCount *[]int32 - memberCountEmpty *bool - memberCountGt *[]int32 - memberCountGte *[]int32 - memberCountLt *[]int32 - memberCountLte *[]int32 - memberCountN *[]int32 + ctx context.Context + ApiService DcimAPI + 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 + 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 + memberCount *[]int32 + memberCountEmpty *bool + memberCountGt *[]int32 + memberCountGte *[]int32 + memberCountLt *[]int32 + memberCountLte *[]int32 + memberCountN *[]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 + 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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantId *[]int32 + tenantIdN *[]int32 + updatedByRequest *string } func (r ApiDcimVirtualChassisListRequest) Created(created []time.Time) ApiDcimVirtualChassisListRequest { @@ -109486,26 +126612,22 @@ func (r ApiDcimVirtualChassisListRequest) Q(q string) ApiDcimVirtualChassisListR return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) Region(region []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) Region(region []string) ApiDcimVirtualChassisListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []string) ApiDcimVirtualChassisListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []string) ApiDcimVirtualChassisListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []string) ApiDcimVirtualChassisListRequest { r.regionIdN = ®ionIdN return r } @@ -109522,26 +126644,22 @@ func (r ApiDcimVirtualChassisListRequest) SiteN(siteN []string) ApiDcimVirtualCh return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []string) ApiDcimVirtualChassisListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []string) ApiDcimVirtualChassisListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []string) ApiDcimVirtualChassisListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimVirtualChassisListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -109606,25 +126724,24 @@ 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 { return ApiDcimVirtualChassisListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVirtualChassisList +// @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") @@ -109643,10 +126760,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -109654,10 +126771,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -109665,10 +126782,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -109676,10 +126793,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -109687,10 +126804,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -109698,10 +126815,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -109709,38 +126826,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -109748,10 +126865,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -109759,10 +126876,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -109770,10 +126887,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -109781,10 +126898,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -109792,10 +126909,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -109803,10 +126920,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -109814,10 +126931,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -109825,10 +126942,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.domain != nil { @@ -109836,24 +126953,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain", t, "form", "multi") } } if r.domainEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__empty", r.domainEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__empty", r.domainEmpty, "form", "") } if r.domainIc != nil { t := *r.domainIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ic", t, "form", "multi") } } if r.domainIe != nil { @@ -109861,10 +126978,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ie", t, "form", "multi") } } if r.domainIew != nil { @@ -109872,10 +126989,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__iew", t, "form", "multi") } } if r.domainIsw != nil { @@ -109883,10 +127000,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__isw", t, "form", "multi") } } if r.domainN != nil { @@ -109894,10 +127011,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__n", t, "form", "multi") } } if r.domainNic != nil { @@ -109905,10 +127022,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nic", t, "form", "multi") } } if r.domainNie != nil { @@ -109916,10 +127033,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nie", t, "form", "multi") } } if r.domainNiew != nil { @@ -109927,10 +127044,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__niew", t, "form", "multi") } } if r.domainNisw != nil { @@ -109938,10 +127055,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nisw", t, "form", "multi") } } if r.id != nil { @@ -109949,24 +127066,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -109974,10 +127091,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -109985,10 +127102,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -109996,10 +127113,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -110007,10 +127124,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -110018,10 +127135,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -110029,10 +127146,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -110040,10 +127157,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -110051,10 +127168,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -110062,10 +127179,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -110073,10 +127190,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -110084,24 +127201,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.master != nil { t := *r.master if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "master", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "master", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master", t, "form", "multi") } } if r.masterN != nil { @@ -110109,10 +127226,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "master__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master__n", t, "form", "multi") } } if r.masterId != nil { @@ -110120,10 +127237,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "master_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master_id", t, "form", "multi") } } if r.masterIdN != nil { @@ -110131,10 +127248,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "master_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master_id__n", t, "form", "multi") } } if r.memberCount != nil { @@ -110142,24 +127259,24 @@ 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, "member_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count", t, "form", "multi") } } if r.memberCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__empty", r.memberCountEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__empty", r.memberCountEmpty, "form", "") } if r.memberCountGt != nil { t := *r.memberCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gt", t, "form", "multi") } } if r.memberCountGte != nil { @@ -110167,10 +127284,10 @@ 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, "member_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__gte", t, "form", "multi") } } if r.memberCountLt != nil { @@ -110178,10 +127295,10 @@ 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, "member_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lt", t, "form", "multi") } } if r.memberCountLte != nil { @@ -110189,10 +127306,10 @@ 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, "member_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__lte", t, "form", "multi") } } if r.memberCountN != nil { @@ -110200,38 +127317,38 @@ 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, "member_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "member_count__n", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -110239,10 +127356,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -110250,10 +127367,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -110261,10 +127378,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -110272,10 +127389,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -110283,10 +127400,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -110294,10 +127411,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -110305,10 +127422,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -110316,30 +127433,30 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -110347,10 +127464,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -110358,10 +127475,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -110369,10 +127486,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } if r.site != nil { @@ -110380,10 +127497,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteN != nil { @@ -110391,10 +127508,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } if r.siteGroup != nil { @@ -110402,10 +127519,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } if r.siteGroupN != nil { @@ -110413,10 +127530,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } if r.siteGroupId != nil { @@ -110424,10 +127541,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } if r.siteGroupIdN != nil { @@ -110435,10 +127552,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } if r.siteId != nil { @@ -110446,10 +127563,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.siteIdN != nil { @@ -110457,10 +127574,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.tag != nil { @@ -110468,10 +127585,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -110479,10 +127596,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -110490,10 +127607,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -110501,10 +127618,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantId != nil { @@ -110512,10 +127629,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -110523,14 +127640,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -110601,9 +127718,9 @@ func (a *DcimAPIService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi } type ApiDcimVirtualChassisPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableVirtualChassisRequest *PatchedWritableVirtualChassisRequest } @@ -110621,27 +127738,26 @@ 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 { return ApiDcimVirtualChassisPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualChassis +// @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") @@ -110727,9 +127843,9 @@ func (a *DcimAPIService) DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtual } type ApiDcimVirtualChassisRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimVirtualChassisRetrieveRequest) Execute() (*VirtualChassis, *http.Response, error) { @@ -110741,27 +127857,26 @@ 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 { return ApiDcimVirtualChassisRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualChassis +// @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") @@ -110845,9 +127960,9 @@ func (a *DcimAPIService) DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChass } type ApiDcimVirtualChassisUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableVirtualChassisRequest *WritableVirtualChassisRequest } @@ -110865,27 +127980,26 @@ 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 { return ApiDcimVirtualChassisUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualChassis +// @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") @@ -110974,8 +128088,8 @@ func (a *DcimAPIService) DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassis } type ApiDcimVirtualDeviceContextsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI virtualDeviceContextRequest *[]VirtualDeviceContextRequest } @@ -110993,22 +128107,22 @@ 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 { return ApiDcimVirtualDeviceContextsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -111087,8 +128201,8 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVi } type ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI virtualDeviceContextRequest *[]VirtualDeviceContextRequest } @@ -111106,25 +128220,24 @@ 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 { return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualDeviceContext +// @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") @@ -111212,8 +128325,8 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsBulkPartialUpdateExecute(r Api } type ApiDcimVirtualDeviceContextsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI virtualDeviceContextRequest *[]VirtualDeviceContextRequest } @@ -111231,25 +128344,24 @@ 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 { return ApiDcimVirtualDeviceContextsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualDeviceContext +// @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") @@ -111337,8 +128449,8 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVir } type ApiDcimVirtualDeviceContextsCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService + ctx context.Context + ApiService DcimAPI writableVirtualDeviceContextRequest *WritableVirtualDeviceContextRequest } @@ -111356,25 +128468,24 @@ 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 { return ApiDcimVirtualDeviceContextsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VirtualDeviceContext +// @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") @@ -111462,9 +128573,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtual } type ApiDcimVirtualDeviceContextsDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimVirtualDeviceContextsDestroyRequest) Execute() (*http.Response, error) { @@ -111476,24 +128587,24 @@ 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 { 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) { 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") @@ -111568,88 +128679,97 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtua } type ApiDcimVirtualDeviceContextsListRequest struct { - 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 *[]int32 - deviceN *[]int32 - deviceId *[]int32 - deviceIdN *[]int32 - hasPrimaryIp *bool - 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 - 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 + ctx context.Context + ApiService DcimAPI + 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 *[]int32 + deviceN *[]int32 + deviceId *[]int32 + deviceIdN *[]int32 + hasPrimaryIp *bool + 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 + 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 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 - primaryIp4Id *[]int32 - primaryIp4IdN *[]int32 - primaryIp6Id *[]int32 - primaryIp6IdN *[]int32 - 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 + 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 + primaryIp4Id *[]int32 + primaryIp4IdN *[]int32 + primaryIp6Id *[]int32 + primaryIp6IdN *[]int32 + q *string + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string } func (r ApiDcimVirtualDeviceContextsListRequest) Created(created []time.Time) ApiDcimVirtualDeviceContextsListRequest { @@ -112007,11 +129127,56 @@ func (r ApiDcimVirtualDeviceContextsListRequest) Status(status []string) ApiDcim return r } +func (r ApiDcimVirtualDeviceContextsListRequest) StatusEmpty(statusEmpty bool) ApiDcimVirtualDeviceContextsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIc(statusIc []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIe(statusIe []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIew(statusIew []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIsw(statusIsw []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiDcimVirtualDeviceContextsListRequest) StatusN(statusN []string) ApiDcimVirtualDeviceContextsListRequest { r.statusN = &statusN return r } +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNic(statusNic []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNie(statusNie []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNiew(statusNiew []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNisw(statusNisw []string) ApiDcimVirtualDeviceContextsListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimVirtualDeviceContextsListRequest) Tag(tag []string) ApiDcimVirtualDeviceContextsListRequest { r.tag = &tag return r @@ -112034,26 +129199,22 @@ func (r ApiDcimVirtualDeviceContextsListRequest) TenantN(tenantN []string) ApiDc return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -112084,25 +129245,24 @@ 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 { return ApiDcimVirtualDeviceContextsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVirtualDeviceContextList +// @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") @@ -112121,10 +129281,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -112132,10 +129292,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -112143,10 +129303,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -112154,10 +129314,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -112165,10 +129325,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -112176,10 +129336,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -112187,38 +129347,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -112226,10 +129386,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -112237,10 +129397,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -112248,10 +129408,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -112259,10 +129419,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -112270,10 +129430,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -112281,10 +129441,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -112292,10 +129452,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -112303,10 +129463,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.device != nil { @@ -112314,10 +129474,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } if r.deviceN != nil { @@ -112325,10 +129485,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi") } } if r.deviceId != nil { @@ -112336,10 +129496,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } if r.deviceIdN != nil { @@ -112347,38 +129507,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") } } if r.hasPrimaryIp != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -112386,10 +129546,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -112397,10 +129557,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -112408,10 +129568,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -112419,10 +129579,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.identifier != nil { @@ -112430,24 +129590,24 @@ 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, "identifier", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", t, "form", "multi") } } if r.identifierEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__empty", r.identifierEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__empty", r.identifierEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", t, "form", "multi") } } if r.identifierGte != nil { @@ -112455,10 +129615,10 @@ 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, "identifier__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", t, "form", "multi") } } if r.identifierLt != nil { @@ -112466,10 +129626,10 @@ 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, "identifier__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", t, "form", "multi") } } if r.identifierLte != nil { @@ -112477,10 +129637,10 @@ 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, "identifier__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", t, "form", "multi") } } if r.identifierN != nil { @@ -112488,10 +129648,10 @@ 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, "identifier__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", t, "form", "multi") } } if r.interfaceId != nil { @@ -112499,10 +129659,10 @@ 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, "interface_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") } } if r.interfaceIdN != nil { @@ -112510,10 +129670,10 @@ 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, "interface_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -112521,10 +129681,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -112532,10 +129692,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -112543,10 +129703,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -112554,10 +129714,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -112565,10 +129725,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -112576,10 +129736,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -112587,41 +129747,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -112629,10 +129789,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -112640,10 +129800,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -112651,10 +129811,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -112662,10 +129822,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -112673,10 +129833,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -112684,10 +129844,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -112695,10 +129855,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -112706,27 +129866,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.primaryIp4Id != nil { t := *r.primaryIp4Id 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "form", "multi") } } if r.primaryIp4IdN != nil { @@ -112734,10 +129894,10 @@ 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, "primary_ip4_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "form", "multi") } } if r.primaryIp6Id != nil { @@ -112745,10 +129905,10 @@ 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, "primary_ip6_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "form", "multi") } } if r.primaryIp6IdN != nil { @@ -112756,24 +129916,71 @@ 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, "primary_ip6_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -112781,10 +129988,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -112792,10 +130043,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -112803,10 +130054,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -112814,10 +130065,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -112825,10 +130076,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -112836,10 +130087,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -112847,10 +130098,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -112858,10 +130109,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -112869,10 +130120,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -112880,10 +130131,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -112891,14 +130142,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -112969,9 +130220,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe } type ApiDcimVirtualDeviceContextsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 patchedWritableVirtualDeviceContextRequest *PatchedWritableVirtualDeviceContextRequest } @@ -112989,27 +130240,26 @@ 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 { return ApiDcimVirtualDeviceContextsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDeviceContext +// @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") @@ -113095,9 +130345,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcim } type ApiDcimVirtualDeviceContextsRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 } func (r ApiDcimVirtualDeviceContextsRetrieveRequest) Execute() (*VirtualDeviceContext, *http.Response, error) { @@ -113109,27 +130359,26 @@ 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 { return ApiDcimVirtualDeviceContextsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDeviceContext +// @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") @@ -113213,9 +130462,9 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtu } type ApiDcimVirtualDeviceContextsUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 + ctx context.Context + ApiService DcimAPI + id int32 writableVirtualDeviceContextRequest *WritableVirtualDeviceContextRequest } @@ -113233,27 +130482,26 @@ 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 { return ApiDcimVirtualDeviceContextsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDeviceContext +// @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") diff --git a/api_extras.go b/api_extras.go index 2b89c130c0..c4ed6f89e3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,4229 +16,8908 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" "time" + "reflect" ) -// ExtrasAPIService ExtrasAPI service -type ExtrasAPIService service - -type ApiExtrasBookmarksBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - bookmarkRequest *[]BookmarkRequest -} - -func (r ApiExtrasBookmarksBulkDestroyRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkDestroyRequest { - r.bookmarkRequest = &bookmarkRequest - return r -} -func (r ApiExtrasBookmarksBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasBookmarksBulkDestroyExecute(r) -} +type ExtrasAPI interface { -/* -ExtrasBookmarksBulkDestroy Method for ExtrasBookmarksBulkDestroy + /* + ExtrasBookmarksBulkDestroy Method for ExtrasBookmarksBulkDestroy -Delete a list of bookmark 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 ApiExtrasBookmarksBulkDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroy(ctx context.Context) ApiExtrasBookmarksBulkDestroyRequest { - return ApiExtrasBookmarksBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} + */ + ExtrasBookmarksBulkDestroy(ctx context.Context) ApiExtrasBookmarksBulkDestroyRequest -// Execute executes the request -func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroyExecute(r ApiExtrasBookmarksBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // ExtrasBookmarksBulkDestroyExecute executes the request + ExtrasBookmarksBulkDestroyExecute(r ApiExtrasBookmarksBulkDestroyRequest) (*http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasBookmarksBulkPartialUpdate Method for ExtrasBookmarksBulkPartialUpdate - localVarPath := localBasePath + "/api/extras/bookmarks/" + Patch a list of bookmark objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.bookmarkRequest == nil { - return nil, reportError("bookmarkRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksBulkPartialUpdateRequest + */ + ExtrasBookmarksBulkPartialUpdate(ctx context.Context) ApiExtrasBookmarksBulkPartialUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasBookmarksBulkPartialUpdateExecute executes the request + // @return []Bookmark + ExtrasBookmarksBulkPartialUpdateExecute(r ApiExtrasBookmarksBulkPartialUpdateRequest) ([]Bookmark, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasBookmarksBulkUpdate Method for ExtrasBookmarksBulkUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Put a list of bookmark objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.bookmarkRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksBulkUpdateRequest + */ + ExtrasBookmarksBulkUpdate(ctx context.Context) ApiExtrasBookmarksBulkUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // ExtrasBookmarksBulkUpdateExecute executes the request + // @return []Bookmark + ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarksBulkUpdateRequest) ([]Bookmark, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + ExtrasBookmarksCreate Method for ExtrasBookmarksCreate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Post a list of bookmark objects. - return localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksCreateRequest + */ + ExtrasBookmarksCreate(ctx context.Context) ApiExtrasBookmarksCreateRequest -type ApiExtrasBookmarksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - bookmarkRequest *[]BookmarkRequest -} + // ExtrasBookmarksCreateExecute executes the request + // @return Bookmark + ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCreateRequest) (*Bookmark, *http.Response, error) -func (r ApiExtrasBookmarksBulkPartialUpdateRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkPartialUpdateRequest { - r.bookmarkRequest = &bookmarkRequest - return r -} + /* + ExtrasBookmarksDestroy Method for ExtrasBookmarksDestroy -func (r ApiExtrasBookmarksBulkPartialUpdateRequest) Execute() ([]Bookmark, *http.Response, error) { - return r.ApiService.ExtrasBookmarksBulkPartialUpdateExecute(r) -} + Delete a bookmark object. -/* -ExtrasBookmarksBulkPartialUpdate Method for ExtrasBookmarksBulkPartialUpdate + @param ctx 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 + */ + ExtrasBookmarksDestroy(ctx context.Context, id int32) ApiExtrasBookmarksDestroyRequest -Patch a list of bookmark objects. + // ExtrasBookmarksDestroyExecute executes the request + ExtrasBookmarksDestroyExecute(r ApiExtrasBookmarksDestroyRequest) (*http.Response, error) + + /* + ExtrasBookmarksList Method for ExtrasBookmarksList + + Get a list of bookmark objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasBookmarksBulkPartialUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdate(ctx context.Context) ApiExtrasBookmarksBulkPartialUpdateRequest { - return ApiExtrasBookmarksBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiExtrasBookmarksListRequest + */ + ExtrasBookmarksList(ctx context.Context) ApiExtrasBookmarksListRequest -// Execute executes the request -// -// @return []Bookmark -func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdateExecute(r ApiExtrasBookmarksBulkPartialUpdateRequest) ([]Bookmark, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Bookmark - ) + // ExtrasBookmarksListExecute executes the request + // @return PaginatedBookmarkList + ExtrasBookmarksListExecute(r ApiExtrasBookmarksListRequest) (*PaginatedBookmarkList, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasBookmarksPartialUpdate Method for ExtrasBookmarksPartialUpdate - localVarPath := localBasePath + "/api/extras/bookmarks/" + Patch a bookmark object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.bookmarkRequest == nil { - return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified") - } + @param ctx 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 + */ + ExtrasBookmarksPartialUpdate(ctx context.Context, id int32) ApiExtrasBookmarksPartialUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasBookmarksPartialUpdateExecute executes the request + // @return Bookmark + ExtrasBookmarksPartialUpdateExecute(r ApiExtrasBookmarksPartialUpdateRequest) (*Bookmark, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasBookmarksRetrieve Method for ExtrasBookmarksRetrieve - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Get a bookmark object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.bookmarkRequest - 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 - } + @param ctx 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 + */ + ExtrasBookmarksRetrieve(ctx context.Context, id int32) ApiExtrasBookmarksRetrieveRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasBookmarksRetrieveExecute executes the request + // @return Bookmark + ExtrasBookmarksRetrieveExecute(r ApiExtrasBookmarksRetrieveRequest) (*Bookmark, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasBookmarksUpdate Method for ExtrasBookmarksUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Put a bookmark object. - 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 - } + @param ctx 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 + */ + ExtrasBookmarksUpdate(ctx context.Context, id int32) ApiExtrasBookmarksUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasBookmarksUpdateExecute executes the request + // @return Bookmark + ExtrasBookmarksUpdateExecute(r ApiExtrasBookmarksUpdateRequest) (*Bookmark, *http.Response, error) -type ApiExtrasBookmarksBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - bookmarkRequest *[]BookmarkRequest -} + /* + ExtrasConfigContextsBulkDestroy Method for ExtrasConfigContextsBulkDestroy -func (r ApiExtrasBookmarksBulkUpdateRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkUpdateRequest { - r.bookmarkRequest = &bookmarkRequest - return r -} + Delete a list of config context objects. -func (r ApiExtrasBookmarksBulkUpdateRequest) Execute() ([]Bookmark, *http.Response, error) { - return r.ApiService.ExtrasBookmarksBulkUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsBulkDestroyRequest + */ + ExtrasConfigContextsBulkDestroy(ctx context.Context) ApiExtrasConfigContextsBulkDestroyRequest -/* -ExtrasBookmarksBulkUpdate Method for ExtrasBookmarksBulkUpdate + // ExtrasConfigContextsBulkDestroyExecute executes the request + ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasConfigContextsBulkDestroyRequest) (*http.Response, error) -Put a list of bookmark objects. + /* + 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 ApiExtrasBookmarksBulkUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdate(ctx context.Context) ApiExtrasBookmarksBulkUpdateRequest { - return ApiExtrasBookmarksBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiExtrasConfigContextsBulkPartialUpdateRequest + */ + ExtrasConfigContextsBulkPartialUpdate(ctx context.Context) ApiExtrasConfigContextsBulkPartialUpdateRequest -// Execute executes the request -// -// @return []Bookmark -func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarksBulkUpdateRequest) ([]Bookmark, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Bookmark - ) + // ExtrasConfigContextsBulkPartialUpdateExecute executes the request + // @return []ConfigContext + ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExtrasConfigContextsBulkPartialUpdateRequest) ([]ConfigContext, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasConfigContextsBulkUpdate Method for ExtrasConfigContextsBulkUpdate - localVarPath := localBasePath + "/api/extras/bookmarks/" + Put a list of config context objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.bookmarkRequest == nil { - return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsBulkUpdateRequest + */ + ExtrasConfigContextsBulkUpdate(ctx context.Context) ApiExtrasConfigContextsBulkUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasConfigContextsBulkUpdateExecute executes the request + // @return []ConfigContext + ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConfigContextsBulkUpdateRequest) ([]ConfigContext, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasConfigContextsCreate Method for ExtrasConfigContextsCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Post a list of config context objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.bookmarkRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsCreateRequest + */ + ExtrasConfigContextsCreate(ctx context.Context) ApiExtrasConfigContextsCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasConfigContextsCreateExecute executes the request + // @return ConfigContext + ExtrasConfigContextsCreateExecute(r ApiExtrasConfigContextsCreateRequest) (*ConfigContext, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasConfigContextsDestroy Method for ExtrasConfigContextsDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a config context object. - 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 - } + @param ctx 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 + */ + ExtrasConfigContextsDestroy(ctx context.Context, id int32) ApiExtrasConfigContextsDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasConfigContextsDestroyExecute executes the request + ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigContextsDestroyRequest) (*http.Response, error) -type ApiExtrasBookmarksCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - bookmarkRequest *BookmarkRequest -} + /* + ExtrasConfigContextsList Method for ExtrasConfigContextsList -func (r ApiExtrasBookmarksCreateRequest) BookmarkRequest(bookmarkRequest BookmarkRequest) ApiExtrasBookmarksCreateRequest { - r.bookmarkRequest = &bookmarkRequest - return r -} + Get a list of config context objects. -func (r ApiExtrasBookmarksCreateRequest) Execute() (*Bookmark, *http.Response, error) { - return r.ApiService.ExtrasBookmarksCreateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsListRequest + */ + ExtrasConfigContextsList(ctx context.Context) ApiExtrasConfigContextsListRequest -/* -ExtrasBookmarksCreate Method for ExtrasBookmarksCreate + // ExtrasConfigContextsListExecute executes the request + // @return PaginatedConfigContextList + ExtrasConfigContextsListExecute(r ApiExtrasConfigContextsListRequest) (*PaginatedConfigContextList, *http.Response, error) -Post a list of bookmark objects. + /* + 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(). - @return ApiExtrasBookmarksCreateRequest -*/ -func (a *ExtrasAPIService) ExtrasBookmarksCreate(ctx context.Context) ApiExtrasBookmarksCreateRequest { - return ApiExtrasBookmarksCreateRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this config context. + @return ApiExtrasConfigContextsPartialUpdateRequest + */ + ExtrasConfigContextsPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsPartialUpdateRequest -// Execute executes the request -// -// @return Bookmark -func (a *ExtrasAPIService) ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCreateRequest) (*Bookmark, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Bookmark - ) + // ExtrasConfigContextsPartialUpdateExecute executes the request + // @return ConfigContext + ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasConfigContextsPartialUpdateRequest) (*ConfigContext, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasConfigContextsRetrieve Method for ExtrasConfigContextsRetrieve - localVarPath := localBasePath + "/api/extras/bookmarks/" + Get a config context object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.bookmarkRequest == nil { - return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified") - } + @param ctx 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 + */ + ExtrasConfigContextsRetrieve(ctx context.Context, id int32) ApiExtrasConfigContextsRetrieveRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasConfigContextsRetrieveExecute executes the request + // @return ConfigContext + ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfigContextsRetrieveRequest) (*ConfigContext, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasConfigContextsSyncCreate Method for ExtrasConfigContextsSyncCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.bookmarkRequest - 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 - } + @param ctx 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 + */ + ExtrasConfigContextsSyncCreate(ctx context.Context, id int32) ApiExtrasConfigContextsSyncCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasConfigContextsSyncCreateExecute executes the request + // @return ConfigContext + ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConfigContextsSyncCreateRequest) (*ConfigContext, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasConfigContextsUpdate Method for ExtrasConfigContextsUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Put a config context object. - 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 - } + @param ctx 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 + */ + ExtrasConfigContextsUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasConfigContextsUpdateExecute executes the request + // @return ConfigContext + ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigContextsUpdateRequest) (*ConfigContext, *http.Response, error) -type ApiExtrasBookmarksDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} + /* + ExtrasConfigTemplatesBulkDestroy Method for ExtrasConfigTemplatesBulkDestroy -func (r ApiExtrasBookmarksDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasBookmarksDestroyExecute(r) -} + Delete a list of config template objects. -/* -ExtrasBookmarksDestroy Method for ExtrasBookmarksDestroy + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesBulkDestroyRequest + */ + ExtrasConfigTemplatesBulkDestroy(ctx context.Context) ApiExtrasConfigTemplatesBulkDestroyRequest -Delete a bookmark object. + // ExtrasConfigTemplatesBulkDestroyExecute executes the request + ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasConfigTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + 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(). - @param id A unique integer value identifying this bookmark. - @return ApiExtrasBookmarksDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasBookmarksDestroy(ctx context.Context, id int32) ApiExtrasBookmarksDestroyRequest { - return ApiExtrasBookmarksDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @return ApiExtrasConfigTemplatesBulkPartialUpdateRequest + */ + ExtrasConfigTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkPartialUpdateRequest -// Execute executes the request -func (a *ExtrasAPIService) ExtrasBookmarksDestroyExecute(r ApiExtrasBookmarksDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // ExtrasConfigTemplatesBulkPartialUpdateExecute executes the request + // @return []ConfigTemplate + ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ([]ConfigTemplate, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasConfigTemplatesBulkUpdate Method for ExtrasConfigTemplatesBulkUpdate - localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Put a list of config template objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesBulkUpdateRequest + */ + ExtrasConfigTemplatesBulkUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // ExtrasConfigTemplatesBulkUpdateExecute executes the request + // @return []ConfigTemplate + ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasConfigTemplatesBulkUpdateRequest) ([]ConfigTemplate, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasConfigTemplatesCreate Method for ExtrasConfigTemplatesCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Post a list of config template objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesCreateRequest + */ + ExtrasConfigTemplatesCreate(ctx context.Context) ApiExtrasConfigTemplatesCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // ExtrasConfigTemplatesCreateExecute executes the request + // @return ConfigTemplate + ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigTemplatesCreateRequest) (*ConfigTemplate, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + ExtrasConfigTemplatesDestroy Method for ExtrasConfigTemplatesDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Delete a config template object. - return localVarHTTPResponse, nil -} + @param ctx 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 + */ + ExtrasConfigTemplatesDestroy(ctx context.Context, id int32) ApiExtrasConfigTemplatesDestroyRequest -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 -} + // ExtrasConfigTemplatesDestroyExecute executes the request + ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfigTemplatesDestroyRequest) (*http.Response, error) -func (r ApiExtrasBookmarksListRequest) Created(created time.Time) ApiExtrasBookmarksListRequest { - r.created = &created - return r -} + /* + ExtrasConfigTemplatesList Method for ExtrasConfigTemplatesList -func (r ApiExtrasBookmarksListRequest) Id(id []int32) ApiExtrasBookmarksListRequest { - r.id = &id - return r -} + Get a list of config template objects. -func (r ApiExtrasBookmarksListRequest) IdEmpty(idEmpty bool) ApiExtrasBookmarksListRequest { - r.idEmpty = &idEmpty - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesListRequest + */ + ExtrasConfigTemplatesList(ctx context.Context) ApiExtrasConfigTemplatesListRequest -func (r ApiExtrasBookmarksListRequest) IdGt(idGt []int32) ApiExtrasBookmarksListRequest { - r.idGt = &idGt - return r -} + // ExtrasConfigTemplatesListExecute executes the request + // @return PaginatedConfigTemplateList + ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTemplatesListRequest) (*PaginatedConfigTemplateList, *http.Response, error) -func (r ApiExtrasBookmarksListRequest) IdGte(idGte []int32) ApiExtrasBookmarksListRequest { - r.idGte = &idGte - return r -} + /* + ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate -func (r ApiExtrasBookmarksListRequest) IdLt(idLt []int32) ApiExtrasBookmarksListRequest { - r.idLt = &idLt - return r -} + Patch a config template object. -func (r ApiExtrasBookmarksListRequest) IdLte(idLte []int32) ApiExtrasBookmarksListRequest { - r.idLte = &idLte - 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 template. + @return ApiExtrasConfigTemplatesPartialUpdateRequest + */ + ExtrasConfigTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesPartialUpdateRequest -func (r ApiExtrasBookmarksListRequest) IdN(idN []int32) ApiExtrasBookmarksListRequest { - r.idN = &idN - return r -} + // ExtrasConfigTemplatesPartialUpdateExecute executes the request + // @return ConfigTemplate + ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtrasConfigTemplatesPartialUpdateRequest) (*ConfigTemplate, *http.Response, error) -// Number of results to return per page. -func (r ApiExtrasBookmarksListRequest) Limit(limit int32) ApiExtrasBookmarksListRequest { - r.limit = &limit - return r -} + /* + ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate -func (r ApiExtrasBookmarksListRequest) ObjectId(objectId []int32) ApiExtrasBookmarksListRequest { - r.objectId = &objectId - return r -} + 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. -func (r ApiExtrasBookmarksListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasBookmarksListRequest { - r.objectIdEmpty = &objectIdEmpty - 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 template. + @return ApiExtrasConfigTemplatesRenderCreateRequest + */ + ExtrasConfigTemplatesRenderCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesRenderCreateRequest -func (r ApiExtrasBookmarksListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasBookmarksListRequest { - r.objectIdGt = &objectIdGt - return r -} + // ExtrasConfigTemplatesRenderCreateExecute executes the request + // @return ConfigTemplate + ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasConfigTemplatesRenderCreateRequest) (*ConfigTemplate, *http.Response, error) -func (r ApiExtrasBookmarksListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasBookmarksListRequest { - r.objectIdGte = &objectIdGte - return r -} + /* + ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve -func (r ApiExtrasBookmarksListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasBookmarksListRequest { - r.objectIdLt = &objectIdLt - return r -} + Get a config template object. -func (r ApiExtrasBookmarksListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasBookmarksListRequest { - r.objectIdLte = &objectIdLte - 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 template. + @return ApiExtrasConfigTemplatesRetrieveRequest + */ + ExtrasConfigTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasConfigTemplatesRetrieveRequest -func (r ApiExtrasBookmarksListRequest) ObjectIdN(objectIdN []int32) ApiExtrasBookmarksListRequest { - r.objectIdN = &objectIdN - return r -} + // ExtrasConfigTemplatesRetrieveExecute executes the request + // @return ConfigTemplate + ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfigTemplatesRetrieveRequest) (*ConfigTemplate, *http.Response, error) -func (r ApiExtrasBookmarksListRequest) ObjectType(objectType string) ApiExtrasBookmarksListRequest { - r.objectType = &objectType - return r -} + /* + ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate -func (r ApiExtrasBookmarksListRequest) ObjectTypeN(objectTypeN string) ApiExtrasBookmarksListRequest { - r.objectTypeN = &objectTypeN - return r -} + Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). -func (r ApiExtrasBookmarksListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasBookmarksListRequest { - r.objectTypeId = &objectTypeId - 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 template. + @return ApiExtrasConfigTemplatesSyncCreateRequest + */ + ExtrasConfigTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesSyncCreateRequest -func (r ApiExtrasBookmarksListRequest) ObjectTypeIdEmpty(objectTypeIdEmpty []int32) ApiExtrasBookmarksListRequest { - r.objectTypeIdEmpty = &objectTypeIdEmpty - return r -} + // ExtrasConfigTemplatesSyncCreateExecute executes the request + // @return ConfigTemplate + ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasConfigTemplatesSyncCreateRequest) (*ConfigTemplate, *http.Response, error) -func (r ApiExtrasBookmarksListRequest) ObjectTypeIdGt(objectTypeIdGt []int32) ApiExtrasBookmarksListRequest { - r.objectTypeIdGt = &objectTypeIdGt - return r -} + /* + ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate -func (r ApiExtrasBookmarksListRequest) ObjectTypeIdGte(objectTypeIdGte []int32) ApiExtrasBookmarksListRequest { - r.objectTypeIdGte = &objectTypeIdGte - return r -} + Put a config template object. -func (r ApiExtrasBookmarksListRequest) ObjectTypeIdLt(objectTypeIdLt []int32) ApiExtrasBookmarksListRequest { - r.objectTypeIdLt = &objectTypeIdLt - 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 template. + @return ApiExtrasConfigTemplatesUpdateRequest + */ + ExtrasConfigTemplatesUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesUpdateRequest -func (r ApiExtrasBookmarksListRequest) ObjectTypeIdLte(objectTypeIdLte []int32) ApiExtrasBookmarksListRequest { - r.objectTypeIdLte = &objectTypeIdLte - return r -} + // ExtrasConfigTemplatesUpdateExecute executes the request + // @return ConfigTemplate + ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigTemplatesUpdateRequest) (*ConfigTemplate, *http.Response, error) -func (r ApiExtrasBookmarksListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasBookmarksListRequest { - r.objectTypeIdN = &objectTypeIdN - return r -} + /* + ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy -// The initial index from which to return the results. -func (r ApiExtrasBookmarksListRequest) Offset(offset int32) ApiExtrasBookmarksListRequest { - r.offset = &offset - return r -} + Delete a list of custom field choice set objects. -// Which field to use when ordering the results. -func (r ApiExtrasBookmarksListRequest) Ordering(ordering string) ApiExtrasBookmarksListRequest { - r.ordering = &ordering - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest + */ + ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest -// User (name) -func (r ApiExtrasBookmarksListRequest) User(user []string) ApiExtrasBookmarksListRequest { - r.user = &user - return r -} + // ExtrasCustomFieldChoiceSetsBulkDestroyExecute executes the request + ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, error) -// User (name) -func (r ApiExtrasBookmarksListRequest) UserN(userN []string) ApiExtrasBookmarksListRequest { - r.userN = &userN - return r -} + /* + ExtrasCustomFieldChoiceSetsBulkPartialUpdate Method for ExtrasCustomFieldChoiceSetsBulkPartialUpdate -// User (ID) -func (r ApiExtrasBookmarksListRequest) UserId(userId []int32) ApiExtrasBookmarksListRequest { - r.userId = &userId - return r -} + Patch a list of custom field choice set objects. -// User (ID) -func (r ApiExtrasBookmarksListRequest) UserIdN(userIdN []int32) ApiExtrasBookmarksListRequest { - r.userIdN = &userIdN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest + */ + ExtrasCustomFieldChoiceSetsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest -func (r ApiExtrasBookmarksListRequest) Execute() (*PaginatedBookmarkList, *http.Response, error) { - return r.ApiService.ExtrasBookmarksListExecute(r) -} + // ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute executes the request + // @return []CustomFieldChoiceSet + ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) -/* -ExtrasBookmarksList Method for ExtrasBookmarksList + /* + ExtrasCustomFieldChoiceSetsBulkUpdate Method for ExtrasCustomFieldChoiceSetsBulkUpdate -Get a list of bookmark objects. + 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 ApiExtrasBookmarksListRequest -*/ -func (a *ExtrasAPIService) ExtrasBookmarksList(ctx context.Context) ApiExtrasBookmarksListRequest { - return ApiExtrasBookmarksListRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest + */ + ExtrasCustomFieldChoiceSetsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest -// 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 - ) + // ExtrasCustomFieldChoiceSetsBulkUpdateExecute executes the request + // @return []CustomFieldChoiceSet + ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasCustomFieldChoiceSetsChoicesRetrieve Method for ExtrasCustomFieldChoiceSetsChoicesRetrieve - localVarPath := localBasePath + "/api/extras/bookmarks/" + Provides an endpoint to iterate through each choice in a set. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx 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 + */ + ExtrasCustomFieldChoiceSetsChoicesRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest - 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{} + // ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute executes the request + // @return CustomFieldChoiceSet + ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasCustomFieldChoiceSetsCreate Method for ExtrasCustomFieldChoiceSetsCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Post a list of custom field choice set objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsCreateRequest + */ + ExtrasCustomFieldChoiceSetsCreate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasCustomFieldChoiceSetsCreateExecute executes the request + // @return CustomFieldChoiceSet + ExtrasCustomFieldChoiceSetsCreateExecute(r ApiExtrasCustomFieldChoiceSetsCreateRequest) (*CustomFieldChoiceSet, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasCustomFieldChoiceSetsDestroy Method for ExtrasCustomFieldChoiceSetsDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a custom field choice set object. - 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 - } + @param ctx 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 + */ + ExtrasCustomFieldChoiceSetsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasCustomFieldChoiceSetsDestroyExecute executes the request + ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtrasCustomFieldChoiceSetsDestroyRequest) (*http.Response, error) -type ApiExtrasBookmarksPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedBookmarkRequest *PatchedBookmarkRequest -} + /* + ExtrasCustomFieldChoiceSetsList Method for ExtrasCustomFieldChoiceSetsList -func (r ApiExtrasBookmarksPartialUpdateRequest) PatchedBookmarkRequest(patchedBookmarkRequest PatchedBookmarkRequest) ApiExtrasBookmarksPartialUpdateRequest { - r.patchedBookmarkRequest = &patchedBookmarkRequest - return r -} + Get a list of custom field choice set objects. -func (r ApiExtrasBookmarksPartialUpdateRequest) Execute() (*Bookmark, *http.Response, error) { - return r.ApiService.ExtrasBookmarksPartialUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsListRequest + */ + ExtrasCustomFieldChoiceSetsList(ctx context.Context) ApiExtrasCustomFieldChoiceSetsListRequest -/* -ExtrasBookmarksPartialUpdate Method for ExtrasBookmarksPartialUpdate + // ExtrasCustomFieldChoiceSetsListExecute executes the request + // @return PaginatedCustomFieldChoiceSetList + ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCustomFieldChoiceSetsListRequest) (*PaginatedCustomFieldChoiceSetList, *http.Response, error) -Patch a bookmark object. + /* + ExtrasCustomFieldChoiceSetsPartialUpdate Method for ExtrasCustomFieldChoiceSetsPartialUpdate + + 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 bookmark. - @return ApiExtrasBookmarksPartialUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasBookmarksPartialUpdate(ctx context.Context, id int32) ApiExtrasBookmarksPartialUpdateRequest { - return ApiExtrasBookmarksPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @param id A unique integer value identifying this custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest + */ + ExtrasCustomFieldChoiceSetsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest -// 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 - ) + // ExtrasCustomFieldChoiceSetsPartialUpdateExecute executes the request + // @return CustomFieldChoiceSet + ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasCustomFieldChoiceSetsRetrieve Method for ExtrasCustomFieldChoiceSetsRetrieve - localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Get a custom field choice set object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx 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 + */ + ExtrasCustomFieldChoiceSetsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsRetrieveRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasCustomFieldChoiceSetsRetrieveExecute executes the request + // @return CustomFieldChoiceSet + ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasCustomFieldChoiceSetsUpdate Method for ExtrasCustomFieldChoiceSetsUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Put a custom field choice set object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedBookmarkRequest - 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 - } + @param ctx 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 + */ + ExtrasCustomFieldChoiceSetsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasCustomFieldChoiceSetsUpdateExecute executes the request + // @return CustomFieldChoiceSet + ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasCustomFieldChoiceSetsUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasCustomFieldsBulkDestroy Method for ExtrasCustomFieldsBulkDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a list of custom field objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsBulkDestroyRequest + */ + ExtrasCustomFieldsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldsBulkDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasCustomFieldsBulkDestroyExecute executes the request + ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCustomFieldsBulkDestroyRequest) (*http.Response, error) -type ApiExtrasBookmarksRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} + /* + ExtrasCustomFieldsBulkPartialUpdate Method for ExtrasCustomFieldsBulkPartialUpdate -func (r ApiExtrasBookmarksRetrieveRequest) Execute() (*Bookmark, *http.Response, error) { - return r.ApiService.ExtrasBookmarksRetrieveExecute(r) -} + Patch a list of custom field objects. -/* -ExtrasBookmarksRetrieve Method for ExtrasBookmarksRetrieve + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsBulkPartialUpdateRequest + */ + ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkPartialUpdateRequest -Get a bookmark object. + // ExtrasCustomFieldsBulkPartialUpdateExecute executes the request + // @return []CustomField + ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtrasCustomFieldsBulkPartialUpdateRequest) ([]CustomField, *http.Response, error) + + /* + 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(). - @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, - } -} + @return ApiExtrasCustomFieldsBulkUpdateRequest + */ + ExtrasCustomFieldsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkUpdateRequest -// 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 - ) + // ExtrasCustomFieldsBulkUpdateExecute executes the request + // @return []CustomField + ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustomFieldsBulkUpdateRequest) ([]CustomField, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasCustomFieldsCreate Method for ExtrasCustomFieldsCreate - localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Post a list of custom field objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsCreateRequest + */ + ExtrasCustomFieldsCreate(ctx context.Context) ApiExtrasCustomFieldsCreateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // ExtrasCustomFieldsCreateExecute executes the request + // @return CustomField + ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFieldsCreateRequest) (*CustomField, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasCustomFieldsDestroy Method for ExtrasCustomFieldsDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Delete a custom field object. - // 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 - } + @param ctx 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 + */ + ExtrasCustomFieldsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldsDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasCustomFieldsDestroyExecute executes the request + ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFieldsDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasCustomFieldsList Method for ExtrasCustomFieldsList - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Get a list of custom field objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsListRequest + */ + ExtrasCustomFieldsList(ctx context.Context) ApiExtrasCustomFieldsListRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasCustomFieldsListExecute executes the request + // @return PaginatedCustomFieldList + ExtrasCustomFieldsListExecute(r ApiExtrasCustomFieldsListRequest) (*PaginatedCustomFieldList, *http.Response, error) -type ApiExtrasBookmarksUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - bookmarkRequest *BookmarkRequest -} + /* + ExtrasCustomFieldsPartialUpdate Method for ExtrasCustomFieldsPartialUpdate -func (r ApiExtrasBookmarksUpdateRequest) BookmarkRequest(bookmarkRequest BookmarkRequest) ApiExtrasBookmarksUpdateRequest { - r.bookmarkRequest = &bookmarkRequest - return r -} + Patch a custom field object. -func (r ApiExtrasBookmarksUpdateRequest) Execute() (*Bookmark, *http.Response, error) { - return r.ApiService.ExtrasBookmarksUpdateExecute(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 custom field. + @return ApiExtrasCustomFieldsPartialUpdateRequest + */ + ExtrasCustomFieldsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsPartialUpdateRequest -/* -ExtrasBookmarksUpdate Method for ExtrasBookmarksUpdate + // ExtrasCustomFieldsPartialUpdateExecute executes the request + // @return CustomField + ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCustomFieldsPartialUpdateRequest) (*CustomField, *http.Response, error) -Put a bookmark object. + /* + ExtrasCustomFieldsRetrieve Method for ExtrasCustomFieldsRetrieve - @param ctx 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, - } -} + Get a custom field object. -// 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 - ) + @param ctx 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 + */ + ExtrasCustomFieldsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldsRetrieveRequest - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + // ExtrasCustomFieldsRetrieveExecute executes the request + // @return CustomField + ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFieldsRetrieveRequest) (*CustomField, *http.Response, error) - localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + /* + ExtrasCustomFieldsUpdate Method for ExtrasCustomFieldsUpdate - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.bookmarkRequest == nil { - return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified") - } + Put a custom field object. - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + @param ctx 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 + */ + ExtrasCustomFieldsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsUpdateRequest - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + // ExtrasCustomFieldsUpdateExecute executes the request + // @return CustomField + ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFieldsUpdateRequest) (*CustomField, *http.Response, error) - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + /* + ExtrasCustomLinksBulkDestroy Method for ExtrasCustomLinksBulkDestroy - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.bookmarkRequest - 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 - } + Delete a list of custom link objects. - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkDestroyRequest + */ + ExtrasCustomLinksBulkDestroy(ctx context.Context) ApiExtrasCustomLinksBulkDestroyRequest - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasCustomLinksBulkDestroyExecute executes the request + ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustomLinksBulkDestroyRequest) (*http.Response, error) - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + /* + ExtrasCustomLinksBulkPartialUpdate Method for ExtrasCustomLinksBulkPartialUpdate - 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 - } + Patch a list of custom link objects. - return localVarReturnValue, localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkPartialUpdateRequest + */ + ExtrasCustomLinksBulkPartialUpdate(ctx context.Context) ApiExtrasCustomLinksBulkPartialUpdateRequest -type ApiExtrasConfigContextsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - configContextRequest *[]ConfigContextRequest -} + // ExtrasCustomLinksBulkPartialUpdateExecute executes the request + // @return []CustomLink + ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtrasCustomLinksBulkPartialUpdateRequest) ([]CustomLink, *http.Response, error) -func (r ApiExtrasConfigContextsBulkDestroyRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkDestroyRequest { - r.configContextRequest = &configContextRequest - return r -} + /* + ExtrasCustomLinksBulkUpdate Method for ExtrasCustomLinksBulkUpdate -func (r ApiExtrasConfigContextsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigContextsBulkDestroyExecute(r) -} + Put a list of custom link objects. -/* -ExtrasConfigContextsBulkDestroy Method for ExtrasConfigContextsBulkDestroy + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkUpdateRequest + */ + ExtrasCustomLinksBulkUpdate(ctx context.Context) ApiExtrasCustomLinksBulkUpdateRequest -Delete a list of config context objects. + // ExtrasCustomLinksBulkUpdateExecute executes the request + // @return []CustomLink + ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomLinksBulkUpdateRequest) ([]CustomLink, *http.Response, error) - @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, - } -} + /* + ExtrasCustomLinksCreate Method for ExtrasCustomLinksCreate -// Execute executes the request -func (a *ExtrasAPIService) ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasConfigContextsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + Post a list of custom link objects. - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksCreateRequest + */ + ExtrasCustomLinksCreate(ctx context.Context) ApiExtrasCustomLinksCreateRequest - localVarPath := localBasePath + "/api/extras/config-contexts/" + // ExtrasCustomLinksCreateExecute executes the request + // @return CustomLink + ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinksCreateRequest) (*CustomLink, *http.Response, error) - 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") - } + /* + ExtrasCustomLinksDestroy Method for ExtrasCustomLinksDestroy - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + Delete a custom link object. - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + @param ctx 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 + */ + ExtrasCustomLinksDestroy(ctx context.Context, id int32) ApiExtrasCustomLinksDestroyRequest - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + // ExtrasCustomLinksDestroyExecute executes the request + ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLinksDestroyRequest) (*http.Response, error) - // 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 - } + /* + ExtrasCustomLinksList Method for ExtrasCustomLinksList - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + Get a list of custom link objects. - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksListRequest + */ + ExtrasCustomLinksList(ctx context.Context) ApiExtrasCustomLinksListRequest - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + // ExtrasCustomLinksListExecute executes the request + // @return PaginatedCustomLinkList + ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksListRequest) (*PaginatedCustomLinkList, *http.Response, error) - return localVarHTTPResponse, nil -} + /* + ExtrasCustomLinksPartialUpdate Method for ExtrasCustomLinksPartialUpdate -type ApiExtrasConfigContextsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - configContextRequest *[]ConfigContextRequest -} + Patch a custom link object. -func (r ApiExtrasConfigContextsBulkPartialUpdateRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkPartialUpdateRequest { - r.configContextRequest = &configContextRequest - 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 custom link. + @return ApiExtrasCustomLinksPartialUpdateRequest + */ + ExtrasCustomLinksPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksPartialUpdateRequest -func (r ApiExtrasConfigContextsBulkPartialUpdateRequest) Execute() ([]ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsBulkPartialUpdateExecute(r) -} + // ExtrasCustomLinksPartialUpdateExecute executes the request + // @return CustomLink + ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCustomLinksPartialUpdateRequest) (*CustomLink, *http.Response, error) -/* -ExtrasConfigContextsBulkPartialUpdate Method for ExtrasConfigContextsBulkPartialUpdate + /* + ExtrasCustomLinksRetrieve Method for ExtrasCustomLinksRetrieve -Patch a list of config context objects. + Get a custom link object. @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, - } -} + @param id A unique integer value identifying this custom link. + @return ApiExtrasCustomLinksRetrieveRequest + */ + ExtrasCustomLinksRetrieve(ctx context.Context, id int32) ApiExtrasCustomLinksRetrieveRequest -// 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 - ) + // ExtrasCustomLinksRetrieveExecute executes the request + // @return CustomLink + ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLinksRetrieveRequest) (*CustomLink, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasCustomLinksUpdate Method for ExtrasCustomLinksUpdate - localVarPath := localBasePath + "/api/extras/config-contexts/" + Put a custom link object. - 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") - } + @param ctx 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 + */ + ExtrasCustomLinksUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasCustomLinksUpdateExecute executes the request + // @return CustomLink + ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinksUpdateRequest) (*CustomLink, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasDashboardDestroy Method for ExtrasDashboardDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Delete a list of dashboard objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardDestroyRequest + */ + ExtrasDashboardDestroy(ctx context.Context) ApiExtrasDashboardDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasDashboardDestroyExecute executes the request + ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasDashboardPartialUpdate Method for ExtrasDashboardPartialUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Patch a list of dashboard objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardPartialUpdateRequest + */ + ExtrasDashboardPartialUpdate(ctx context.Context) ApiExtrasDashboardPartialUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasDashboardPartialUpdateExecute executes the request + // @return Dashboard + ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashboardPartialUpdateRequest) (*Dashboard, *http.Response, error) -type ApiExtrasConfigContextsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - configContextRequest *[]ConfigContextRequest -} + /* + ExtrasDashboardRetrieve Method for ExtrasDashboardRetrieve -func (r ApiExtrasConfigContextsBulkUpdateRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkUpdateRequest { - r.configContextRequest = &configContextRequest - return r -} + Get a list of dashboard objects. -func (r ApiExtrasConfigContextsBulkUpdateRequest) Execute() ([]ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsBulkUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardRetrieveRequest + */ + ExtrasDashboardRetrieve(ctx context.Context) ApiExtrasDashboardRetrieveRequest -/* -ExtrasConfigContextsBulkUpdate Method for ExtrasConfigContextsBulkUpdate + // ExtrasDashboardRetrieveExecute executes the request + // @return Dashboard + ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRetrieveRequest) (*Dashboard, *http.Response, error) -Put a list of config context objects. + /* + 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 ApiExtrasConfigContextsBulkUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasConfigContextsBulkUpdate(ctx context.Context) ApiExtrasConfigContextsBulkUpdateRequest { - return ApiExtrasConfigContextsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiExtrasDashboardUpdateRequest + */ + ExtrasDashboardUpdate(ctx context.Context) ApiExtrasDashboardUpdateRequest -// 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 - ) + // ExtrasDashboardUpdateExecute executes the request + // @return Dashboard + ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpdateRequest) (*Dashboard, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasEventRulesBulkDestroy Method for ExtrasEventRulesBulkDestroy - localVarPath := localBasePath + "/api/extras/config-contexts/" + Delete a list of event rule objects. - 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") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasEventRulesBulkDestroyRequest + */ + ExtrasEventRulesBulkDestroy(ctx context.Context) ApiExtrasEventRulesBulkDestroyRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasEventRulesBulkDestroyExecute executes the request + ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRulesBulkDestroyRequest) (*http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasEventRulesBulkPartialUpdate Method for ExtrasEventRulesBulkPartialUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Patch a list of event rule objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasEventRulesBulkPartialUpdateRequest + */ + ExtrasEventRulesBulkPartialUpdate(ctx context.Context) ApiExtrasEventRulesBulkPartialUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasEventRulesBulkPartialUpdateExecute executes the request + // @return []EventRule + ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasEventRulesBulkPartialUpdateRequest) ([]EventRule, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasEventRulesBulkUpdate Method for ExtrasEventRulesBulkUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Put a list of event rule objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasEventRulesBulkUpdateRequest + */ + ExtrasEventRulesBulkUpdate(ctx context.Context) ApiExtrasEventRulesBulkUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasEventRulesBulkUpdateExecute executes the request + // @return []EventRule + ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRulesBulkUpdateRequest) ([]EventRule, *http.Response, error) -type ApiExtrasConfigContextsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - configContextRequest *ConfigContextRequest -} + /* + ExtrasEventRulesCreate Method for ExtrasEventRulesCreate -func (r ApiExtrasConfigContextsCreateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsCreateRequest { - r.configContextRequest = &configContextRequest - return r -} + Post a list of event rule objects. -func (r ApiExtrasConfigContextsCreateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsCreateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasEventRulesCreateRequest + */ + ExtrasEventRulesCreate(ctx context.Context) ApiExtrasEventRulesCreateRequest -/* -ExtrasConfigContextsCreate Method for ExtrasConfigContextsCreate + // ExtrasEventRulesCreateExecute executes the request + // @return EventRule + ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCreateRequest) (*EventRule, *http.Response, error) -Post a list of config context objects. + /* + ExtrasEventRulesDestroy Method for ExtrasEventRulesDestroy + + Delete a event rule object. @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, - } -} + @param id A unique integer value identifying this event rule. + @return ApiExtrasEventRulesDestroyRequest + */ + ExtrasEventRulesDestroy(ctx context.Context, id int32) ApiExtrasEventRulesDestroyRequest -// 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 - ) + // ExtrasEventRulesDestroyExecute executes the request + ExtrasEventRulesDestroyExecute(r ApiExtrasEventRulesDestroyRequest) (*http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasEventRulesList Method for ExtrasEventRulesList - localVarPath := localBasePath + "/api/extras/config-contexts/" + Get a list of event rule objects. - 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") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasEventRulesListRequest + */ + ExtrasEventRulesList(ctx context.Context) ApiExtrasEventRulesListRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // ExtrasEventRulesListExecute executes the request + // @return PaginatedEventRuleList + ExtrasEventRulesListExecute(r ApiExtrasEventRulesListRequest) (*PaginatedEventRuleList, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasEventRulesPartialUpdate Method for ExtrasEventRulesPartialUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Patch a event rule object. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this event rule. + @return ApiExtrasEventRulesPartialUpdateRequest + */ + ExtrasEventRulesPartialUpdate(ctx context.Context, id int32) ApiExtrasEventRulesPartialUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // ExtrasEventRulesPartialUpdateExecute executes the request + // @return EventRule + ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEventRulesPartialUpdateRequest) (*EventRule, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + ExtrasEventRulesRetrieve Method for ExtrasEventRulesRetrieve - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Get a event rule object. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this event rule. + @return ApiExtrasEventRulesRetrieveRequest + */ + ExtrasEventRulesRetrieve(ctx context.Context, id int32) ApiExtrasEventRulesRetrieveRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // ExtrasEventRulesRetrieveExecute executes the request + // @return EventRule + ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRulesRetrieveRequest) (*EventRule, *http.Response, error) -type ApiExtrasConfigContextsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} + /* + ExtrasEventRulesUpdate Method for ExtrasEventRulesUpdate -func (r ApiExtrasConfigContextsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigContextsDestroyExecute(r) -} + Put a event rule object. -/* -ExtrasConfigContextsDestroy Method for ExtrasConfigContextsDestroy + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this event rule. + @return ApiExtrasEventRulesUpdateRequest + */ + ExtrasEventRulesUpdate(ctx context.Context, id int32) ApiExtrasEventRulesUpdateRequest -Delete a config context object. + // ExtrasEventRulesUpdateExecute executes the request + // @return EventRule + ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUpdateRequest) (*EventRule, *http.Response, error) + + /* + 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(). - @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, - } -} + @return ApiExtrasExportTemplatesBulkDestroyRequest + */ + ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest -// Execute executes the request -func (a *ExtrasAPIService) ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigContextsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // ExtrasExportTemplatesBulkDestroyExecute executes the request + ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkPartialUpdate - localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Patch a list of export template objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkPartialUpdateRequest + */ + ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // ExtrasExportTemplatesBulkPartialUpdateExecute executes the request + // @return []ExportTemplate + ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Put a list of export template objects. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkUpdateRequest + */ + ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // ExtrasExportTemplatesBulkUpdateExecute executes the request + // @return []ExportTemplate + ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Post a list of export template objects. - return localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesCreateRequest + */ + ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest -type ApiExtrasConfigContextsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - autoSyncEnabled *bool - 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 - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - 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 - weight *[]int32 - weightEmpty *bool - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 -} + // ExtrasExportTemplatesCreateExecute executes the request + // @return ExportTemplate + ExtrasExportTemplatesCreateExecute(r ApiExtrasExportTemplatesCreateRequest) (*ExportTemplate, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasConfigContextsListRequest { - r.autoSyncEnabled = &autoSyncEnabled - return r -} + /* + ExtrasExportTemplatesDestroy Method for ExtrasExportTemplatesDestroy -// Cluster group (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterGroup(clusterGroup []string) ApiExtrasConfigContextsListRequest { - r.clusterGroup = &clusterGroup - return r -} + Delete a export template object. -// Cluster group (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterGroupN(clusterGroupN []string) ApiExtrasConfigContextsListRequest { - r.clusterGroupN = &clusterGroupN - 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 export template. + @return ApiExtrasExportTemplatesDestroyRequest + */ + ExtrasExportTemplatesDestroy(ctx context.Context, id int32) ApiExtrasExportTemplatesDestroyRequest -// Cluster group -func (r ApiExtrasConfigContextsListRequest) ClusterGroupId(clusterGroupId []int32) ApiExtrasConfigContextsListRequest { - r.clusterGroupId = &clusterGroupId - return r -} + // ExtrasExportTemplatesDestroyExecute executes the request + ExtrasExportTemplatesDestroyExecute(r ApiExtrasExportTemplatesDestroyRequest) (*http.Response, error) -// Cluster group -func (r ApiExtrasConfigContextsListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiExtrasConfigContextsListRequest { - r.clusterGroupIdN = &clusterGroupIdN - return r -} + /* + ExtrasExportTemplatesList Method for ExtrasExportTemplatesList -// Cluster -func (r ApiExtrasConfigContextsListRequest) ClusterId(clusterId []int32) ApiExtrasConfigContextsListRequest { - r.clusterId = &clusterId - return r -} + Get a list of export template objects. -// Cluster -func (r ApiExtrasConfigContextsListRequest) ClusterIdN(clusterIdN []int32) ApiExtrasConfigContextsListRequest { - r.clusterIdN = &clusterIdN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesListRequest + */ + ExtrasExportTemplatesList(ctx context.Context) ApiExtrasExportTemplatesListRequest -// Cluster type (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterType(clusterType []string) ApiExtrasConfigContextsListRequest { - r.clusterType = &clusterType - return r -} + // ExtrasExportTemplatesListExecute executes the request + // @return PaginatedExportTemplateList + ExtrasExportTemplatesListExecute(r ApiExtrasExportTemplatesListRequest) (*PaginatedExportTemplateList, *http.Response, error) -// Cluster type (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterTypeN(clusterTypeN []string) ApiExtrasConfigContextsListRequest { - r.clusterTypeN = &clusterTypeN - return r -} + /* + ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate -// Cluster type -func (r ApiExtrasConfigContextsListRequest) ClusterTypeId(clusterTypeId []int32) ApiExtrasConfigContextsListRequest { - r.clusterTypeId = &clusterTypeId - return r -} + Patch a export template object. -// Cluster type -func (r ApiExtrasConfigContextsListRequest) ClusterTypeIdN(clusterTypeIdN []int32) ApiExtrasConfigContextsListRequest { - r.clusterTypeIdN = &clusterTypeIdN - 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 export template. + @return ApiExtrasExportTemplatesPartialUpdateRequest + */ + ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest -func (r ApiExtrasConfigContextsListRequest) Created(created []time.Time) ApiExtrasConfigContextsListRequest { - r.created = &created - return r -} + // ExtrasExportTemplatesPartialUpdateExecute executes the request + // @return ExportTemplate + ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasConfigContextsListRequest { - r.createdEmpty = &createdEmpty - return r -} + /* + ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve -func (r ApiExtrasConfigContextsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasConfigContextsListRequest { - r.createdGt = &createdGt - return r -} + Get a export template object. -func (r ApiExtrasConfigContextsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasConfigContextsListRequest { - r.createdGte = &createdGte - 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 export template. + @return ApiExtrasExportTemplatesRetrieveRequest + */ + ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest -func (r ApiExtrasConfigContextsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasConfigContextsListRequest { - r.createdLt = &createdLt - return r -} + // ExtrasExportTemplatesRetrieveExecute executes the request + // @return ExportTemplate + ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasConfigContextsListRequest { - r.createdLte = &createdLte - return r -} + /* + ExtrasExportTemplatesSyncCreate Method for ExtrasExportTemplatesSyncCreate -func (r ApiExtrasConfigContextsListRequest) CreatedN(createdN []time.Time) ApiExtrasConfigContextsListRequest { - r.createdN = &createdN - return r -} + Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). -func (r ApiExtrasConfigContextsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasConfigContextsListRequest { - r.createdByRequest = &createdByRequest - 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 export template. + @return ApiExtrasExportTemplatesSyncCreateRequest + */ + ExtrasExportTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasExportTemplatesSyncCreateRequest -// Data file (ID) -func (r ApiExtrasConfigContextsListRequest) DataFileId(dataFileId []*int32) ApiExtrasConfigContextsListRequest { - r.dataFileId = &dataFileId - return r -} + // ExtrasExportTemplatesSyncCreateExecute executes the request + // @return ExportTemplate + ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExportTemplatesSyncCreateRequest) (*ExportTemplate, *http.Response, error) -// Data file (ID) -func (r ApiExtrasConfigContextsListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasConfigContextsListRequest { - r.dataFileIdN = &dataFileIdN - return r -} + /* + ExtrasExportTemplatesUpdate Method for ExtrasExportTemplatesUpdate -// Data source (ID) -func (r ApiExtrasConfigContextsListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasConfigContextsListRequest { - r.dataSourceId = &dataSourceId - return r -} + Put a export template object. -// Data source (ID) -func (r ApiExtrasConfigContextsListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasConfigContextsListRequest { - r.dataSourceIdN = &dataSourceIdN - 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 export template. + @return ApiExtrasExportTemplatesUpdateRequest + */ + ExtrasExportTemplatesUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesUpdateRequest -func (r ApiExtrasConfigContextsListRequest) DataSynced(dataSynced []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSynced = &dataSynced - return r -} + // ExtrasExportTemplatesUpdateExecute executes the request + // @return ExportTemplate + ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportTemplatesUpdateRequest) (*ExportTemplate, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) DataSyncedEmpty(dataSyncedEmpty bool) ApiExtrasConfigContextsListRequest { - r.dataSyncedEmpty = &dataSyncedEmpty - return r -} + /* + ExtrasImageAttachmentsBulkDestroy Method for ExtrasImageAttachmentsBulkDestroy -func (r ApiExtrasConfigContextsListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedGt = &dataSyncedGt - return r -} + Delete a list of image attachment objects. -func (r ApiExtrasConfigContextsListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedGte = &dataSyncedGte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkDestroyRequest + */ + ExtrasImageAttachmentsBulkDestroy(ctx context.Context) ApiExtrasImageAttachmentsBulkDestroyRequest -func (r ApiExtrasConfigContextsListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedLt = &dataSyncedLt - return r -} + // ExtrasImageAttachmentsBulkDestroyExecute executes the request + ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasImageAttachmentsBulkDestroyRequest) (*http.Response, error) -func (r ApiExtrasConfigContextsListRequest) DataSyncedLte(dataSyncedLte []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedLte = &dataSyncedLte - return r -} + /* + ExtrasImageAttachmentsBulkPartialUpdate Method for ExtrasImageAttachmentsBulkPartialUpdate -func (r ApiExtrasConfigContextsListRequest) DataSyncedN(dataSyncedN []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedN = &dataSyncedN - return r -} + Patch a list of image attachment objects. -func (r ApiExtrasConfigContextsListRequest) Description(description []string) ApiExtrasConfigContextsListRequest { - r.description = &description - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest + */ + ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkPartialUpdateRequest -func (r ApiExtrasConfigContextsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasConfigContextsListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} + // ExtrasImageAttachmentsBulkPartialUpdateExecute executes the request + // @return []ImageAttachment + ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ([]ImageAttachment, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasConfigContextsListRequest { - r.descriptionIc = &descriptionIc - return r -} + /* + ExtrasImageAttachmentsBulkUpdate Method for ExtrasImageAttachmentsBulkUpdate -func (r ApiExtrasConfigContextsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasConfigContextsListRequest { - r.descriptionIe = &descriptionIe - return r -} + Put a list of image attachment objects. -func (r ApiExtrasConfigContextsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasConfigContextsListRequest { - r.descriptionIew = &descriptionIew - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkUpdateRequest + */ + ExtrasImageAttachmentsBulkUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkUpdateRequest -func (r ApiExtrasConfigContextsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasConfigContextsListRequest { - r.descriptionIsw = &descriptionIsw - return r -} + // ExtrasImageAttachmentsBulkUpdateExecute executes the request + // @return []ImageAttachment + ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasImageAttachmentsBulkUpdateRequest) ([]ImageAttachment, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) DescriptionN(descriptionN []string) ApiExtrasConfigContextsListRequest { - r.descriptionN = &descriptionN - return r -} + /* + ExtrasImageAttachmentsCreate Method for ExtrasImageAttachmentsCreate -func (r ApiExtrasConfigContextsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasConfigContextsListRequest { - r.descriptionNic = &descriptionNic - return r -} + Post a list of image attachment objects. -func (r ApiExtrasConfigContextsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasConfigContextsListRequest { - r.descriptionNie = &descriptionNie - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsCreateRequest + */ + ExtrasImageAttachmentsCreate(ctx context.Context) ApiExtrasImageAttachmentsCreateRequest -func (r ApiExtrasConfigContextsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasConfigContextsListRequest { - r.descriptionNiew = &descriptionNiew - return r -} + // ExtrasImageAttachmentsCreateExecute executes the request + // @return ImageAttachment + ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageAttachmentsCreateRequest) (*ImageAttachment, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasConfigContextsListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + /* + ExtrasImageAttachmentsDestroy Method for ExtrasImageAttachmentsDestroy -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) DeviceRole(deviceRole []string) ApiExtrasConfigContextsListRequest { - r.deviceRole = &deviceRole - return r -} + Delete a image attachment object. -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) DeviceRoleN(deviceRoleN []string) ApiExtrasConfigContextsListRequest { - r.deviceRoleN = &deviceRoleN - 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 image attachment. + @return ApiExtrasImageAttachmentsDestroyRequest + */ + ExtrasImageAttachmentsDestroy(ctx context.Context, id int32) ApiExtrasImageAttachmentsDestroyRequest -// Role -func (r ApiExtrasConfigContextsListRequest) DeviceRoleId(deviceRoleId []int32) ApiExtrasConfigContextsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} + // ExtrasImageAttachmentsDestroyExecute executes the request + ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImageAttachmentsDestroyRequest) (*http.Response, error) -// Role -func (r ApiExtrasConfigContextsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiExtrasConfigContextsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} + /* + ExtrasImageAttachmentsList Method for ExtrasImageAttachmentsList -// Device type -func (r ApiExtrasConfigContextsListRequest) DeviceTypeId(deviceTypeId []int32) ApiExtrasConfigContextsListRequest { - r.deviceTypeId = &deviceTypeId - return r -} + Get a list of image attachment objects. -// Device type -func (r ApiExtrasConfigContextsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiExtrasConfigContextsListRequest { - r.deviceTypeIdN = &deviceTypeIdN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsListRequest + */ + ExtrasImageAttachmentsList(ctx context.Context) ApiExtrasImageAttachmentsListRequest -func (r ApiExtrasConfigContextsListRequest) Id(id []int32) ApiExtrasConfigContextsListRequest { - r.id = &id - return r -} + // ExtrasImageAttachmentsListExecute executes the request + // @return PaginatedImageAttachmentList + ExtrasImageAttachmentsListExecute(r ApiExtrasImageAttachmentsListRequest) (*PaginatedImageAttachmentList, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) IdEmpty(idEmpty bool) ApiExtrasConfigContextsListRequest { - r.idEmpty = &idEmpty - return r -} + /* + ExtrasImageAttachmentsPartialUpdate Method for ExtrasImageAttachmentsPartialUpdate -func (r ApiExtrasConfigContextsListRequest) IdGt(idGt []int32) ApiExtrasConfigContextsListRequest { - r.idGt = &idGt - return r -} + Patch a image attachment object. -func (r ApiExtrasConfigContextsListRequest) IdGte(idGte []int32) ApiExtrasConfigContextsListRequest { - r.idGte = &idGte - 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 image attachment. + @return ApiExtrasImageAttachmentsPartialUpdateRequest + */ + ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsPartialUpdateRequest -func (r ApiExtrasConfigContextsListRequest) IdLt(idLt []int32) ApiExtrasConfigContextsListRequest { - r.idLt = &idLt - return r -} + // ExtrasImageAttachmentsPartialUpdateExecute executes the request + // @return ImageAttachment + ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtrasImageAttachmentsPartialUpdateRequest) (*ImageAttachment, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) IdLte(idLte []int32) ApiExtrasConfigContextsListRequest { - r.idLte = &idLte - return r -} + /* + ExtrasImageAttachmentsRetrieve Method for ExtrasImageAttachmentsRetrieve -func (r ApiExtrasConfigContextsListRequest) IdN(idN []int32) ApiExtrasConfigContextsListRequest { - r.idN = &idN - return r -} + Get a image attachment object. -func (r ApiExtrasConfigContextsListRequest) IsActive(isActive bool) ApiExtrasConfigContextsListRequest { - r.isActive = &isActive - 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 image attachment. + @return ApiExtrasImageAttachmentsRetrieveRequest + */ + ExtrasImageAttachmentsRetrieve(ctx context.Context, id int32) ApiExtrasImageAttachmentsRetrieveRequest -func (r ApiExtrasConfigContextsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdated = &lastUpdated - return r -} + // ExtrasImageAttachmentsRetrieveExecute executes the request + // @return ImageAttachment + ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImageAttachmentsRetrieveRequest) (*ImageAttachment, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + /* + ExtrasImageAttachmentsUpdate Method for ExtrasImageAttachmentsUpdate -func (r ApiExtrasConfigContextsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + Put a image attachment object. -func (r ApiExtrasConfigContextsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - 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 image attachment. + @return ApiExtrasImageAttachmentsUpdateRequest + */ + ExtrasImageAttachmentsUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsUpdateRequest -func (r ApiExtrasConfigContextsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + // ExtrasImageAttachmentsUpdateExecute executes the request + // @return ImageAttachment + ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageAttachmentsUpdateRequest) (*ImageAttachment, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + /* + ExtrasJournalEntriesBulkDestroy Method for ExtrasJournalEntriesBulkDestroy -func (r ApiExtrasConfigContextsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + Delete a list of journal entry objects. -// Number of results to return per page. -func (r ApiExtrasConfigContextsListRequest) Limit(limit int32) ApiExtrasConfigContextsListRequest { - r.limit = &limit - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkDestroyRequest + */ + ExtrasJournalEntriesBulkDestroy(ctx context.Context) ApiExtrasJournalEntriesBulkDestroyRequest -// Location (slug) -func (r ApiExtrasConfigContextsListRequest) Location(location []string) ApiExtrasConfigContextsListRequest { - r.location = &location - return r -} + // ExtrasJournalEntriesBulkDestroyExecute executes the request + ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJournalEntriesBulkDestroyRequest) (*http.Response, error) -// Location (slug) -func (r ApiExtrasConfigContextsListRequest) LocationN(locationN []string) ApiExtrasConfigContextsListRequest { - r.locationN = &locationN - return r -} + /* + ExtrasJournalEntriesBulkPartialUpdate Method for ExtrasJournalEntriesBulkPartialUpdate -// Location -func (r ApiExtrasConfigContextsListRequest) LocationId(locationId []int32) ApiExtrasConfigContextsListRequest { - r.locationId = &locationId - return r -} + Patch a list of journal entry objects. -// Location -func (r ApiExtrasConfigContextsListRequest) LocationIdN(locationIdN []int32) ApiExtrasConfigContextsListRequest { - r.locationIdN = &locationIdN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkPartialUpdateRequest + */ + ExtrasJournalEntriesBulkPartialUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkPartialUpdateRequest -func (r ApiExtrasConfigContextsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasConfigContextsListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + // ExtrasJournalEntriesBulkPartialUpdateExecute executes the request + // @return []JournalEntry + ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExtrasJournalEntriesBulkPartialUpdateRequest) ([]JournalEntry, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) Name(name []string) ApiExtrasConfigContextsListRequest { - r.name = &name - return r -} + /* + ExtrasJournalEntriesBulkUpdate Method for ExtrasJournalEntriesBulkUpdate -func (r ApiExtrasConfigContextsListRequest) NameEmpty(nameEmpty bool) ApiExtrasConfigContextsListRequest { - r.nameEmpty = &nameEmpty - return r -} + Put a list of journal entry objects. -func (r ApiExtrasConfigContextsListRequest) NameIc(nameIc []string) ApiExtrasConfigContextsListRequest { - r.nameIc = &nameIc - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkUpdateRequest + */ + ExtrasJournalEntriesBulkUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkUpdateRequest -func (r ApiExtrasConfigContextsListRequest) NameIe(nameIe []string) ApiExtrasConfigContextsListRequest { - r.nameIe = &nameIe - return r -} + // ExtrasJournalEntriesBulkUpdateExecute executes the request + // @return []JournalEntry + ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJournalEntriesBulkUpdateRequest) ([]JournalEntry, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) NameIew(nameIew []string) ApiExtrasConfigContextsListRequest { - r.nameIew = &nameIew - return r -} + /* + ExtrasJournalEntriesCreate Method for ExtrasJournalEntriesCreate -func (r ApiExtrasConfigContextsListRequest) NameIsw(nameIsw []string) ApiExtrasConfigContextsListRequest { - r.nameIsw = &nameIsw - return r -} + Post a list of journal entry objects. -func (r ApiExtrasConfigContextsListRequest) NameN(nameN []string) ApiExtrasConfigContextsListRequest { - r.nameN = &nameN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesCreateRequest + */ + ExtrasJournalEntriesCreate(ctx context.Context) ApiExtrasJournalEntriesCreateRequest -func (r ApiExtrasConfigContextsListRequest) NameNic(nameNic []string) ApiExtrasConfigContextsListRequest { - r.nameNic = &nameNic - return r -} + // ExtrasJournalEntriesCreateExecute executes the request + // @return JournalEntry + ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalEntriesCreateRequest) (*JournalEntry, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) NameNie(nameNie []string) ApiExtrasConfigContextsListRequest { - r.nameNie = &nameNie - return r -} + /* + ExtrasJournalEntriesDestroy Method for ExtrasJournalEntriesDestroy -func (r ApiExtrasConfigContextsListRequest) NameNiew(nameNiew []string) ApiExtrasConfigContextsListRequest { - r.nameNiew = &nameNiew - return r -} + Delete a journal entry object. -func (r ApiExtrasConfigContextsListRequest) NameNisw(nameNisw []string) ApiExtrasConfigContextsListRequest { - r.nameNisw = &nameNisw - 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 journal entry. + @return ApiExtrasJournalEntriesDestroyRequest + */ + ExtrasJournalEntriesDestroy(ctx context.Context, id int32) ApiExtrasJournalEntriesDestroyRequest -// The initial index from which to return the results. -func (r ApiExtrasConfigContextsListRequest) Offset(offset int32) ApiExtrasConfigContextsListRequest { - r.offset = &offset - return r -} + // ExtrasJournalEntriesDestroyExecute executes the request + ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournalEntriesDestroyRequest) (*http.Response, error) -// Which field to use when ordering the results. -func (r ApiExtrasConfigContextsListRequest) Ordering(ordering string) ApiExtrasConfigContextsListRequest { - r.ordering = &ordering - return r -} + /* + ExtrasJournalEntriesList Method for ExtrasJournalEntriesList -// Platform (slug) -func (r ApiExtrasConfigContextsListRequest) Platform(platform []string) ApiExtrasConfigContextsListRequest { - r.platform = &platform - return r -} + Get a list of journal entry objects. -// Platform (slug) -func (r ApiExtrasConfigContextsListRequest) PlatformN(platformN []string) ApiExtrasConfigContextsListRequest { - r.platformN = &platformN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesListRequest + */ + ExtrasJournalEntriesList(ctx context.Context) ApiExtrasJournalEntriesListRequest -// Platform -func (r ApiExtrasConfigContextsListRequest) PlatformId(platformId []int32) ApiExtrasConfigContextsListRequest { - r.platformId = &platformId - return r -} + // ExtrasJournalEntriesListExecute executes the request + // @return PaginatedJournalEntryList + ExtrasJournalEntriesListExecute(r ApiExtrasJournalEntriesListRequest) (*PaginatedJournalEntryList, *http.Response, error) -// Platform -func (r ApiExtrasConfigContextsListRequest) PlatformIdN(platformIdN []int32) ApiExtrasConfigContextsListRequest { - r.platformIdN = &platformIdN - return r -} + /* + ExtrasJournalEntriesPartialUpdate Method for ExtrasJournalEntriesPartialUpdate -// Search -func (r ApiExtrasConfigContextsListRequest) Q(q string) ApiExtrasConfigContextsListRequest { - r.q = &q - return r -} + Patch a journal entry object. -// Region (slug) -func (r ApiExtrasConfigContextsListRequest) Region(region []string) ApiExtrasConfigContextsListRequest { - r.region = ®ion - 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 journal entry. + @return ApiExtrasJournalEntriesPartialUpdateRequest + */ + ExtrasJournalEntriesPartialUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesPartialUpdateRequest -// Region (slug) -func (r ApiExtrasConfigContextsListRequest) RegionN(regionN []string) ApiExtrasConfigContextsListRequest { - r.regionN = ®ionN - return r -} + // ExtrasJournalEntriesPartialUpdateExecute executes the request + // @return JournalEntry + ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJournalEntriesPartialUpdateRequest) (*JournalEntry, *http.Response, error) -// Region -func (r ApiExtrasConfigContextsListRequest) RegionId(regionId []int32) ApiExtrasConfigContextsListRequest { - r.regionId = ®ionId - return r -} + /* + ExtrasJournalEntriesRetrieve Method for ExtrasJournalEntriesRetrieve -// Region -func (r ApiExtrasConfigContextsListRequest) RegionIdN(regionIdN []int32) ApiExtrasConfigContextsListRequest { - r.regionIdN = ®ionIdN - return r -} + Get a journal entry object. -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) Role(role []string) ApiExtrasConfigContextsListRequest { - r.role = &role - 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 journal entry. + @return ApiExtrasJournalEntriesRetrieveRequest + */ + ExtrasJournalEntriesRetrieve(ctx context.Context, id int32) ApiExtrasJournalEntriesRetrieveRequest -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) RoleN(roleN []string) ApiExtrasConfigContextsListRequest { - r.roleN = &roleN - return r -} + // ExtrasJournalEntriesRetrieveExecute executes the request + // @return JournalEntry + ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJournalEntriesRetrieveRequest) (*JournalEntry, *http.Response, error) -// Role -func (r ApiExtrasConfigContextsListRequest) RoleId(roleId []int32) ApiExtrasConfigContextsListRequest { - r.roleId = &roleId - return r -} + /* + ExtrasJournalEntriesUpdate Method for ExtrasJournalEntriesUpdate -// Role -func (r ApiExtrasConfigContextsListRequest) RoleIdN(roleIdN []int32) ApiExtrasConfigContextsListRequest { - r.roleIdN = &roleIdN - return r -} + Put a journal entry object. -// Site (slug) -func (r ApiExtrasConfigContextsListRequest) Site(site []string) ApiExtrasConfigContextsListRequest { - r.site = &site - 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 journal entry. + @return ApiExtrasJournalEntriesUpdateRequest + */ + ExtrasJournalEntriesUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesUpdateRequest -// Site (slug) -func (r ApiExtrasConfigContextsListRequest) SiteN(siteN []string) ApiExtrasConfigContextsListRequest { - r.siteN = &siteN - return r -} + // ExtrasJournalEntriesUpdateExecute executes the request + // @return JournalEntry + ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalEntriesUpdateRequest) (*JournalEntry, *http.Response, error) -// Site group (slug) -func (r ApiExtrasConfigContextsListRequest) SiteGroup(siteGroup []string) ApiExtrasConfigContextsListRequest { - r.siteGroup = &siteGroup - return r -} + /* + ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy -// Site group (slug) -func (r ApiExtrasConfigContextsListRequest) SiteGroupN(siteGroupN []string) ApiExtrasConfigContextsListRequest { - r.siteGroupN = &siteGroupN - return r -} + Delete a list of notification group objects. -// Site group -func (r ApiExtrasConfigContextsListRequest) SiteGroupId(siteGroupId []int32) ApiExtrasConfigContextsListRequest { - r.siteGroupId = &siteGroupId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkDestroyRequest + */ + ExtrasNotificationGroupsBulkDestroy(ctx context.Context) ApiExtrasNotificationGroupsBulkDestroyRequest -// Site group -func (r ApiExtrasConfigContextsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiExtrasConfigContextsListRequest { - r.siteGroupIdN = &siteGroupIdN - return r -} + // ExtrasNotificationGroupsBulkDestroyExecute executes the request + ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error) -// Site -func (r ApiExtrasConfigContextsListRequest) SiteId(siteId []int32) ApiExtrasConfigContextsListRequest { - r.siteId = &siteId - return r -} + /* + ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate -// Site -func (r ApiExtrasConfigContextsListRequest) SiteIdN(siteIdN []int32) ApiExtrasConfigContextsListRequest { - r.siteIdN = &siteIdN - return r -} + Patch a list of notification group objects. -// Tag (slug) -func (r ApiExtrasConfigContextsListRequest) Tag(tag []string) ApiExtrasConfigContextsListRequest { - r.tag = &tag - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest + */ + ExtrasNotificationGroupsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkPartialUpdateRequest -// Tag (slug) -func (r ApiExtrasConfigContextsListRequest) TagN(tagN []string) ApiExtrasConfigContextsListRequest { - r.tagN = &tagN - return r -} + // ExtrasNotificationGroupsBulkPartialUpdateExecute executes the request + // @return []NotificationGroup + ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error) -// Tag -func (r ApiExtrasConfigContextsListRequest) TagId(tagId []int32) ApiExtrasConfigContextsListRequest { - r.tagId = &tagId - return r -} + /* + ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate -// Tag -func (r ApiExtrasConfigContextsListRequest) TagIdN(tagIdN []int32) ApiExtrasConfigContextsListRequest { - r.tagIdN = &tagIdN - return r -} + Put a list of notification group objects. -// Tenant (slug) -func (r ApiExtrasConfigContextsListRequest) Tenant(tenant []string) ApiExtrasConfigContextsListRequest { - r.tenant = &tenant - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkUpdateRequest + */ + ExtrasNotificationGroupsBulkUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkUpdateRequest -// Tenant (slug) -func (r ApiExtrasConfigContextsListRequest) TenantN(tenantN []string) ApiExtrasConfigContextsListRequest { - r.tenantN = &tenantN - return r -} + // ExtrasNotificationGroupsBulkUpdateExecute executes the request + // @return []NotificationGroup + ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error) -// Tenant group (slug) -func (r ApiExtrasConfigContextsListRequest) TenantGroup(tenantGroup []string) ApiExtrasConfigContextsListRequest { - r.tenantGroup = &tenantGroup - return r -} + /* + ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate -// Tenant group (slug) -func (r ApiExtrasConfigContextsListRequest) TenantGroupN(tenantGroupN []string) ApiExtrasConfigContextsListRequest { - r.tenantGroupN = &tenantGroupN - return r -} + Post a list of notification group objects. -// Tenant group -func (r ApiExtrasConfigContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiExtrasConfigContextsListRequest { - r.tenantGroupId = &tenantGroupId - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsCreateRequest + */ + ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest -// Tenant group -func (r ApiExtrasConfigContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiExtrasConfigContextsListRequest { - r.tenantGroupIdN = &tenantGroupIdN - return r -} + // ExtrasNotificationGroupsCreateExecute executes the request + // @return NotificationGroup + ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error) -// Tenant -func (r ApiExtrasConfigContextsListRequest) TenantId(tenantId []int32) ApiExtrasConfigContextsListRequest { - r.tenantId = &tenantId - return r -} + /* + ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy -// Tenant -func (r ApiExtrasConfigContextsListRequest) TenantIdN(tenantIdN []int32) ApiExtrasConfigContextsListRequest { - r.tenantIdN = &tenantIdN - return r -} + Delete a notification group object. -func (r ApiExtrasConfigContextsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasConfigContextsListRequest { - r.updatedByRequest = &updatedByRequest - 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 notification group. + @return ApiExtrasNotificationGroupsDestroyRequest + */ + ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest -func (r ApiExtrasConfigContextsListRequest) Weight(weight []int32) ApiExtrasConfigContextsListRequest { - r.weight = &weight - return r -} + // ExtrasNotificationGroupsDestroyExecute executes the request + ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error) -func (r ApiExtrasConfigContextsListRequest) WeightEmpty(weightEmpty bool) ApiExtrasConfigContextsListRequest { - r.weightEmpty = &weightEmpty - return r -} + /* + ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList -func (r ApiExtrasConfigContextsListRequest) WeightGt(weightGt []int32) ApiExtrasConfigContextsListRequest { - r.weightGt = &weightGt - return r -} + Get a list of notification group objects. -func (r ApiExtrasConfigContextsListRequest) WeightGte(weightGte []int32) ApiExtrasConfigContextsListRequest { - r.weightGte = &weightGte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsListRequest + */ + ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest -func (r ApiExtrasConfigContextsListRequest) WeightLt(weightLt []int32) ApiExtrasConfigContextsListRequest { - r.weightLt = &weightLt - return r -} + // ExtrasNotificationGroupsListExecute executes the request + // @return PaginatedNotificationGroupList + ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error) -func (r ApiExtrasConfigContextsListRequest) WeightLte(weightLte []int32) ApiExtrasConfigContextsListRequest { - r.weightLte = &weightLte - return r -} + /* + ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate -func (r ApiExtrasConfigContextsListRequest) WeightN(weightN []int32) ApiExtrasConfigContextsListRequest { - r.weightN = &weightN - return r -} + Patch a notification group object. -func (r ApiExtrasConfigContextsListRequest) Execute() (*PaginatedConfigContextList, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsListExecute(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 notification group. + @return ApiExtrasNotificationGroupsPartialUpdateRequest + */ + ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest -/* -ExtrasConfigContextsList Method for ExtrasConfigContextsList + // ExtrasNotificationGroupsPartialUpdateExecute executes the request + // @return NotificationGroup + ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error) -Get a list of config context objects. + /* + ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve + + Get a notification group object. @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, - } -} + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsRetrieveRequest + */ + ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest -// 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 - ) + // ExtrasNotificationGroupsRetrieveExecute executes the request + // @return NotificationGroup + ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate - localVarPath := localBasePath + "/api/extras/config-contexts/" + Put a notification group object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsUpdateRequest + */ + ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest - if r.autoSyncEnabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auto_sync_enabled", r.autoSyncEnabled, "") - } - 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") - } + // ExtrasNotificationGroupsUpdateExecute executes the request + // @return NotificationGroup + ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error) + + /* + ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy + + Delete a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsBulkDestroyRequest + */ + ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest + + // ExtrasNotificationsBulkDestroyExecute executes the request + ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error) + + /* + ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate + + Patch a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsBulkPartialUpdateRequest + */ + ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest + + // ExtrasNotificationsBulkPartialUpdateExecute executes the request + // @return []Notification + ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error) + + /* + ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate + + Put a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsBulkUpdateRequest + */ + ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest + + // ExtrasNotificationsBulkUpdateExecute executes the request + // @return []Notification + ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error) + + /* + ExtrasNotificationsCreate Method for ExtrasNotificationsCreate + + Post a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsCreateRequest + */ + ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest + + // ExtrasNotificationsCreateExecute executes the request + // @return Notification + ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error) + + /* + ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy + + Delete a notification object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsDestroyRequest + */ + ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest + + // ExtrasNotificationsDestroyExecute executes the request + ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error) + + /* + ExtrasNotificationsList Method for ExtrasNotificationsList + + Get a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsListRequest + */ + ExtrasNotificationsList(ctx context.Context) ApiExtrasNotificationsListRequest + + // ExtrasNotificationsListExecute executes the request + // @return PaginatedNotificationList + ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error) + + /* + ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate + + Patch a notification object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsPartialUpdateRequest + */ + ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest + + // ExtrasNotificationsPartialUpdateExecute executes the request + // @return Notification + ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error) + + /* + ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve + + Get a notification object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsRetrieveRequest + */ + ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest + + // ExtrasNotificationsRetrieveExecute executes the request + // @return Notification + ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error) + + /* + ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate + + Put a notification object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsUpdateRequest + */ + ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest + + // ExtrasNotificationsUpdateExecute executes the request + // @return Notification + ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error) + + /* + ExtrasObjectTypesList Method for ExtrasObjectTypesList + + Read-only list of ObjectTypes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasObjectTypesListRequest + */ + ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest + + // ExtrasObjectTypesListExecute executes the request + // @return PaginatedObjectTypeList + ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) + + /* + ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve + + Read-only list of ObjectTypes. + + @param ctx 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 type. + @return ApiExtrasObjectTypesRetrieveRequest + */ + ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest + + // ExtrasObjectTypesRetrieveExecute executes the request + // @return ObjectType + ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest + + // ExtrasSavedFiltersBulkDestroyExecute executes the request + ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) + + /* + ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate + + 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 + */ + ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest + + // ExtrasSavedFiltersBulkPartialUpdateExecute executes the request + // @return []SavedFilter + ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest + + // ExtrasSavedFiltersBulkUpdateExecute executes the request + // @return []SavedFilter + ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest + + // ExtrasSavedFiltersCreateExecute executes the request + // @return SavedFilter + ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest + + // ExtrasSavedFiltersDestroyExecute executes the request + ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest + + // ExtrasSavedFiltersListExecute executes the request + // @return PaginatedSavedFilterList + ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest + + // ExtrasSavedFiltersPartialUpdateExecute executes the request + // @return SavedFilter + ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest + + // ExtrasSavedFiltersRetrieveExecute executes the request + // @return SavedFilter + ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) + + /* + 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 + */ + ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest + + // ExtrasSavedFiltersUpdateExecute executes the request + // @return SavedFilter + ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) + + /* + ExtrasScriptsCreate Method for ExtrasScriptsCreate + + Post a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsCreateRequest + */ + ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest + + // ExtrasScriptsCreateExecute executes the request + // @return Script + ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) + + /* + ExtrasScriptsDestroy Method for ExtrasScriptsDestroy + + Delete a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsDestroyRequest + */ + ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest + + // ExtrasScriptsDestroyExecute executes the request + ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) + + /* + ExtrasScriptsList Method for ExtrasScriptsList + + Get a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsListRequest + */ + ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest + + // ExtrasScriptsListExecute executes the request + // @return PaginatedScriptList + ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) + + /* + ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate + + Patch a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsPartialUpdateRequest + */ + ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest + + // ExtrasScriptsPartialUpdateExecute executes the request + // @return Script + ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) + + /* + ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve + + Get a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsRetrieveRequest + */ + ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest + + // ExtrasScriptsRetrieveExecute executes the request + // @return Script + ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) + + /* + ExtrasScriptsUpdate Method for ExtrasScriptsUpdate + + Put a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsUpdateRequest + */ + ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest + + // ExtrasScriptsUpdateExecute executes the request + // @return Script + ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) + + /* + ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy + + Delete a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkDestroyRequest + */ + ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest + + // ExtrasSubscriptionsBulkDestroyExecute executes the request + ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error) + + /* + ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate + + Patch a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkPartialUpdateRequest + */ + ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest + + // ExtrasSubscriptionsBulkPartialUpdateExecute executes the request + // @return []Subscription + ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error) + + /* + ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate + + Put a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkUpdateRequest + */ + ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest + + // ExtrasSubscriptionsBulkUpdateExecute executes the request + // @return []Subscription + ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error) + + /* + ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate + + Post a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsCreateRequest + */ + ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest + + // ExtrasSubscriptionsCreateExecute executes the request + // @return Subscription + ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error) + + /* + ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy + + Delete a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsDestroyRequest + */ + ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest + + // ExtrasSubscriptionsDestroyExecute executes the request + ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error) + + /* + ExtrasSubscriptionsList Method for ExtrasSubscriptionsList + + Get a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsListRequest + */ + ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest + + // ExtrasSubscriptionsListExecute executes the request + // @return PaginatedSubscriptionList + ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error) + + /* + ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate + + Patch a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsPartialUpdateRequest + */ + ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest + + // ExtrasSubscriptionsPartialUpdateExecute executes the request + // @return Subscription + ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error) + + /* + ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve + + Get a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsRetrieveRequest + */ + ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest + + // ExtrasSubscriptionsRetrieveExecute executes the request + // @return Subscription + ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) + + /* + ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate + + Put a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsUpdateRequest + */ + ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest + + // ExtrasSubscriptionsUpdateExecute executes the request + // @return Subscription + ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) + + /* + 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 + */ + ExtrasTagsBulkDestroy(ctx context.Context) ApiExtrasTagsBulkDestroyRequest + + // ExtrasTagsBulkDestroyExecute executes the request + ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + ExtrasTagsBulkPartialUpdate(ctx context.Context) ApiExtrasTagsBulkPartialUpdateRequest + + // ExtrasTagsBulkPartialUpdateExecute executes the request + // @return []Tag + ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBulkPartialUpdateRequest) ([]Tag, *http.Response, error) + + /* + 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 + */ + ExtrasTagsBulkUpdate(ctx context.Context) ApiExtrasTagsBulkUpdateRequest + + // ExtrasTagsBulkUpdateExecute executes the request + // @return []Tag + ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdateRequest) ([]Tag, *http.Response, error) + + /* + 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 + */ + ExtrasTagsCreate(ctx context.Context) ApiExtrasTagsCreateRequest + + // ExtrasTagsCreateExecute executes the request + // @return Tag + ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest) (*Tag, *http.Response, error) + + /* + 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 + */ + ExtrasTagsDestroy(ctx context.Context, id int32) ApiExtrasTagsDestroyRequest + + // ExtrasTagsDestroyExecute executes the request + ExtrasTagsDestroyExecute(r ApiExtrasTagsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + ExtrasTagsList(ctx context.Context) ApiExtrasTagsListRequest + + // ExtrasTagsListExecute executes the request + // @return PaginatedTagList + ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*PaginatedTagList, *http.Response, error) + + /* + 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 + */ + ExtrasTagsPartialUpdate(ctx context.Context, id int32) ApiExtrasTagsPartialUpdateRequest + + // ExtrasTagsPartialUpdateExecute executes the request + // @return Tag + ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartialUpdateRequest) (*Tag, *http.Response, error) + + /* + 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 + */ + ExtrasTagsRetrieve(ctx context.Context, id int32) ApiExtrasTagsRetrieveRequest + + // ExtrasTagsRetrieveExecute executes the request + // @return Tag + ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequest) (*Tag, *http.Response, error) + + /* + 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 + */ + ExtrasTagsUpdate(ctx context.Context, id int32) ApiExtrasTagsUpdateRequest + + // ExtrasTagsUpdateExecute executes the request + // @return Tag + ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest) (*Tag, *http.Response, error) + + /* + 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 + */ + ExtrasWebhooksBulkDestroy(ctx context.Context) ApiExtrasWebhooksBulkDestroyRequest + + // ExtrasWebhooksBulkDestroyExecute executes the request + ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + ExtrasWebhooksBulkPartialUpdate(ctx context.Context) ApiExtrasWebhooksBulkPartialUpdateRequest + + // ExtrasWebhooksBulkPartialUpdateExecute executes the request + // @return []Webhook + ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWebhooksBulkPartialUpdateRequest) ([]Webhook, *http.Response, error) + + /* + 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 + */ + ExtrasWebhooksBulkUpdate(ctx context.Context) ApiExtrasWebhooksBulkUpdateRequest + + // ExtrasWebhooksBulkUpdateExecute executes the request + // @return []Webhook + ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBulkUpdateRequest) ([]Webhook, *http.Response, error) + + /* + 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 + */ + ExtrasWebhooksCreate(ctx context.Context) ApiExtrasWebhooksCreateRequest + + // ExtrasWebhooksCreateExecute executes the request + // @return Webhook + ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreateRequest) (*Webhook, *http.Response, error) + + /* + 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 + */ + ExtrasWebhooksDestroy(ctx context.Context, id int32) ApiExtrasWebhooksDestroyRequest + + // ExtrasWebhooksDestroyExecute executes the request + ExtrasWebhooksDestroyExecute(r ApiExtrasWebhooksDestroyRequest) (*http.Response, error) + + /* + 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 + */ + ExtrasWebhooksList(ctx context.Context) ApiExtrasWebhooksListRequest + + // ExtrasWebhooksListExecute executes the request + // @return PaginatedWebhookList + ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequest) (*PaginatedWebhookList, *http.Response, error) + + /* + 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 + */ + ExtrasWebhooksPartialUpdate(ctx context.Context, id int32) ApiExtrasWebhooksPartialUpdateRequest + + // ExtrasWebhooksPartialUpdateExecute executes the request + // @return Webhook + ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhooksPartialUpdateRequest) (*Webhook, *http.Response, error) + + /* + 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 + */ + ExtrasWebhooksRetrieve(ctx context.Context, id int32) ApiExtrasWebhooksRetrieveRequest + + // ExtrasWebhooksRetrieveExecute executes the request + // @return Webhook + ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetrieveRequest) (*Webhook, *http.Response, error) + + /* + 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 + */ + ExtrasWebhooksUpdate(ctx context.Context, id int32) ApiExtrasWebhooksUpdateRequest + + // ExtrasWebhooksUpdateExecute executes the request + // @return Webhook + ExtrasWebhooksUpdateExecute(r ApiExtrasWebhooksUpdateRequest) (*Webhook, *http.Response, error) +} + +// ExtrasAPIService ExtrasAPI service +type ExtrasAPIService service + +type ApiExtrasBookmarksBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + bookmarkRequest *[]BookmarkRequest +} + +func (r ApiExtrasBookmarksBulkDestroyRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkDestroyRequest { + r.bookmarkRequest = &bookmarkRequest + return r +} + +func (r ApiExtrasBookmarksBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasBookmarksBulkDestroyExecute(r) +} + +/* +ExtrasBookmarksBulkDestroy Method for ExtrasBookmarksBulkDestroy + +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 ApiExtrasBookmarksBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroy(ctx context.Context) ApiExtrasBookmarksBulkDestroyRequest { + return ApiExtrasBookmarksBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroyExecute(r ApiExtrasBookmarksBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.bookmarkRequest == nil { + return nil, reportError("bookmarkRequest 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.bookmarkRequest + 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 ApiExtrasBookmarksBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + bookmarkRequest *[]BookmarkRequest +} + +func (r ApiExtrasBookmarksBulkPartialUpdateRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkPartialUpdateRequest { + r.bookmarkRequest = &bookmarkRequest + return r +} + +func (r ApiExtrasBookmarksBulkPartialUpdateRequest) Execute() ([]Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksBulkPartialUpdateExecute(r) +} + +/* +ExtrasBookmarksBulkPartialUpdate Method for ExtrasBookmarksBulkPartialUpdate + +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 ApiExtrasBookmarksBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdate(ctx context.Context) ApiExtrasBookmarksBulkPartialUpdateRequest { + return ApiExtrasBookmarksBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdateExecute(r ApiExtrasBookmarksBulkPartialUpdateRequest) ([]Bookmark, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Bookmark + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.bookmarkRequest == nil { + return localVarReturnValue, nil, reportError("bookmarkRequest 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.bookmarkRequest + 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 ApiExtrasBookmarksBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + bookmarkRequest *[]BookmarkRequest +} + +func (r ApiExtrasBookmarksBulkUpdateRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkUpdateRequest { + r.bookmarkRequest = &bookmarkRequest + return r +} + +func (r ApiExtrasBookmarksBulkUpdateRequest) Execute() ([]Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksBulkUpdateExecute(r) +} + +/* +ExtrasBookmarksBulkUpdate Method for ExtrasBookmarksBulkUpdate + +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 ApiExtrasBookmarksBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdate(ctx context.Context) ApiExtrasBookmarksBulkUpdateRequest { + return ApiExtrasBookmarksBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarksBulkUpdateRequest) ([]Bookmark, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Bookmark + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.bookmarkRequest == nil { + return localVarReturnValue, nil, reportError("bookmarkRequest 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.bookmarkRequest + 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 ApiExtrasBookmarksCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + bookmarkRequest *BookmarkRequest +} + +func (r ApiExtrasBookmarksCreateRequest) BookmarkRequest(bookmarkRequest BookmarkRequest) ApiExtrasBookmarksCreateRequest { + r.bookmarkRequest = &bookmarkRequest + return r +} + +func (r ApiExtrasBookmarksCreateRequest) Execute() (*Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksCreateExecute(r) +} + +/* +ExtrasBookmarksCreate Method for ExtrasBookmarksCreate + +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 ApiExtrasBookmarksCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksCreate(ctx context.Context) ApiExtrasBookmarksCreateRequest { + return ApiExtrasBookmarksCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCreateRequest) (*Bookmark, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Bookmark + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.bookmarkRequest == nil { + return localVarReturnValue, nil, reportError("bookmarkRequest 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.bookmarkRequest + 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 ApiExtrasBookmarksDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 +} + +func (r ApiExtrasBookmarksDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasBookmarksDestroyExecute(r) +} + +/* +ExtrasBookmarksDestroy Method for ExtrasBookmarksDestroy + +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 bookmark. + @return ApiExtrasBookmarksDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksDestroy(ctx context.Context, id int32) ApiExtrasBookmarksDestroyRequest { + return ApiExtrasBookmarksDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasBookmarksDestroyExecute(r ApiExtrasBookmarksDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksDestroy") + if err != nil { + return 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{} + + // 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 ApiExtrasBookmarksListRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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 +} + +func (r ApiExtrasBookmarksListRequest) Id(id []int32) ApiExtrasBookmarksListRequest { + r.id = &id + return r +} + +func (r ApiExtrasBookmarksListRequest) IdEmpty(idEmpty bool) ApiExtrasBookmarksListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasBookmarksListRequest) IdGt(idGt []int32) ApiExtrasBookmarksListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasBookmarksListRequest) IdGte(idGte []int32) ApiExtrasBookmarksListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasBookmarksListRequest) IdLt(idLt []int32) ApiExtrasBookmarksListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasBookmarksListRequest) IdLte(idLte []int32) ApiExtrasBookmarksListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasBookmarksListRequest) IdN(idN []int32) ApiExtrasBookmarksListRequest { + r.idN = &idN + return r +} + +// Number of results to return per page. +func (r ApiExtrasBookmarksListRequest) Limit(limit int32) ApiExtrasBookmarksListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectId(objectId []int32) ApiExtrasBookmarksListRequest { + r.objectId = &objectId + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasBookmarksListRequest { + r.objectIdEmpty = &objectIdEmpty + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasBookmarksListRequest { + r.objectIdGt = &objectIdGt + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasBookmarksListRequest { + r.objectIdGte = &objectIdGte + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasBookmarksListRequest { + r.objectIdLt = &objectIdLt + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasBookmarksListRequest { + r.objectIdLte = &objectIdLte + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectIdN(objectIdN []int32) ApiExtrasBookmarksListRequest { + r.objectIdN = &objectIdN + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectType(objectType string) ApiExtrasBookmarksListRequest { + r.objectType = &objectType + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeN(objectTypeN string) ApiExtrasBookmarksListRequest { + r.objectTypeN = &objectTypeN + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasBookmarksListRequest { + r.objectTypeId = &objectTypeId + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdEmpty(objectTypeIdEmpty []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdEmpty = &objectTypeIdEmpty + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdGt(objectTypeIdGt []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdGt = &objectTypeIdGt + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdGte(objectTypeIdGte []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdGte = &objectTypeIdGte + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdLt(objectTypeIdLt []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdLt = &objectTypeIdLt + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdLte(objectTypeIdLte []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdLte = &objectTypeIdLte + return r +} + +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdN = &objectTypeIdN + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasBookmarksListRequest) Offset(offset int32) ApiExtrasBookmarksListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasBookmarksListRequest) Ordering(ordering string) ApiExtrasBookmarksListRequest { + r.ordering = &ordering + return r +} + +// User (name) +func (r ApiExtrasBookmarksListRequest) User(user []string) ApiExtrasBookmarksListRequest { + r.user = &user + return r +} + +// User (name) +func (r ApiExtrasBookmarksListRequest) UserN(userN []string) ApiExtrasBookmarksListRequest { + r.userN = &userN + return r +} + +// User (ID) +func (r ApiExtrasBookmarksListRequest) UserId(userId []int32) ApiExtrasBookmarksListRequest { + r.userId = &userId + return r +} + +// User (ID) +func (r ApiExtrasBookmarksListRequest) UserIdN(userIdN []int32) ApiExtrasBookmarksListRequest { + r.userIdN = &userIdN + return r +} + +func (r ApiExtrasBookmarksListRequest) Execute() (*PaginatedBookmarkList, *http.Response, error) { + return r.ApiService.ExtrasBookmarksListExecute(r) +} + +/* +ExtrasBookmarksList Method for ExtrasBookmarksList + +Get a list of bookmark objects. + + @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, + } +} + +// 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 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", r.created, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "form", "multi") + } + } + if r.objectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "form", "multi") + } + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi") + } + } + // 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 ApiExtrasBookmarksPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedBookmarkRequest *PatchedBookmarkRequest +} + +func (r ApiExtrasBookmarksPartialUpdateRequest) PatchedBookmarkRequest(patchedBookmarkRequest PatchedBookmarkRequest) ApiExtrasBookmarksPartialUpdateRequest { + r.patchedBookmarkRequest = &patchedBookmarkRequest + return r +} + +func (r ApiExtrasBookmarksPartialUpdateRequest) Execute() (*Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksPartialUpdateExecute(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, + } +} + +// 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.patchedBookmarkRequest + 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 ApiExtrasBookmarksRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 +} + +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 ExtrasAPI + id int32 + bookmarkRequest *BookmarkRequest +} + +func (r ApiExtrasBookmarksUpdateRequest) BookmarkRequest(bookmarkRequest BookmarkRequest) ApiExtrasBookmarksUpdateRequest { + r.bookmarkRequest = &bookmarkRequest + 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.bookmarkRequest == nil { + return localVarReturnValue, nil, reportError("bookmarkRequest 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.bookmarkRequest + 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 ExtrasAPI + 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 ExtrasAPI + 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 ExtrasAPI + 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 ExtrasAPI + configContextRequest *ConfigContextRequest +} + +func (r ApiExtrasConfigContextsCreateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsCreateRequest { + r.configContextRequest = &configContextRequest + 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.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 ApiExtrasConfigContextsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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 ExtrasAPI + autoSyncEnabled *bool + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + 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 + 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 + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 +} + +func (r ApiExtrasConfigContextsListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasConfigContextsListRequest { + r.autoSyncEnabled = &autoSyncEnabled + return r +} + +// 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 +} + +func (r ApiExtrasConfigContextsListRequest) Description(description []string) ApiExtrasConfigContextsListRequest { + r.description = &description + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasConfigContextsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasConfigContextsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasConfigContextsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasConfigContextsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasConfigContextsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionN(descriptionN []string) ApiExtrasConfigContextsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasConfigContextsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasConfigContextsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasConfigContextsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiExtrasConfigContextsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasConfigContextsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Role (slug) +func (r ApiExtrasConfigContextsListRequest) DeviceRole(deviceRole []string) ApiExtrasConfigContextsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Role (slug) +func (r ApiExtrasConfigContextsListRequest) DeviceRoleN(deviceRoleN []string) ApiExtrasConfigContextsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Role +func (r ApiExtrasConfigContextsListRequest) DeviceRoleId(deviceRoleId []int32) ApiExtrasConfigContextsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Role +func (r ApiExtrasConfigContextsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiExtrasConfigContextsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + 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 +} + +// 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) Weight(weight []int32) ApiExtrasConfigContextsListRequest { + r.weight = &weight + return r +} + +func (r ApiExtrasConfigContextsListRequest) WeightEmpty(weightEmpty bool) ApiExtrasConfigContextsListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiExtrasConfigContextsListRequest) WeightGt(weightGt []int32) ApiExtrasConfigContextsListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiExtrasConfigContextsListRequest) WeightGte(weightGte []int32) ApiExtrasConfigContextsListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiExtrasConfigContextsListRequest) WeightLt(weightLt []int32) ApiExtrasConfigContextsListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiExtrasConfigContextsListRequest) WeightLte(weightLte []int32) ApiExtrasConfigContextsListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiExtrasConfigContextsListRequest) WeightN(weightN []int32) ApiExtrasConfigContextsListRequest { + r.weightN = &weightN + 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.autoSyncEnabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auto_sync_enabled", r.autoSyncEnabled, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "form", "multi") + } + } + if r.dataSyncedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "form", "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "form", "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "form", "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.isActive != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_active", r.isActive, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "form", "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") + } + } + if r.weightN != nil { + t := *r.weightN + 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).Interface(), "form", "multi") + } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") + } + } + // 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 ApiExtrasConfigContextsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedConfigContextRequest *PatchedConfigContextRequest +} + +func (r ApiExtrasConfigContextsPartialUpdateRequest) PatchedConfigContextRequest(patchedConfigContextRequest PatchedConfigContextRequest) ApiExtrasConfigContextsPartialUpdateRequest { + r.patchedConfigContextRequest = &patchedConfigContextRequest + 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.patchedConfigContextRequest + 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 ApiExtrasConfigContextsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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, + } +} + +// 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 + } + + 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 ApiExtrasConfigContextsSyncCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + configContextRequest *ConfigContextRequest +} + +func (r ApiExtrasConfigContextsSyncCreateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsSyncCreateRequest { + r.configContextRequest = &configContextRequest + 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, + } +} + +// 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()} + } + + 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.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 } - 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") + // 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 } - } 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") + 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 ApiExtrasConfigContextsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + configContextRequest *ConfigContextRequest +} + +func (r ApiExtrasConfigContextsUpdateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsUpdateRequest { + r.configContextRequest = &configContextRequest + 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, + } +} + +// 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()} + } + + 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.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 } - } 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") + 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 ApiExtrasConfigTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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, + } +} + +// 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 } - } 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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - 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") + + 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 } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + + return localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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.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") - } +} + +// 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.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") - } + + 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.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") - } + + // 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // 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", t, "multi") } } - if r.dataSyncedEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") + + 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.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") + + 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 ExtrasAPI + 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, + } +} + +// 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()} + } + + 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") + } + + // 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__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.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") + // 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.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, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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, nil +} + +type ApiExtrasConfigTemplatesCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + configTemplateRequest *ConfigTemplateRequest +} + +func (r ApiExtrasConfigTemplatesCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesCreateRequest { + r.configTemplateRequest = &configTemplateRequest + 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.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") - } +} + +// 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.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") - } + + 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.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") - } + + // 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // 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, "description__nisw", 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", 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.deviceRoleN != nil { - t := *r.deviceRoleN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", 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.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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.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") - } +} + +// 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.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + + 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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__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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - 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") + + 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 ApiExtrasConfigTemplatesListRequest struct { + ctx context.Context + ApiService ExtrasAPI + autoSyncEnabled *bool + 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 + 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 + tag *[]string + tagN *[]string + updatedByRequest *string +} + +func (r ApiExtrasConfigTemplatesListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasConfigTemplatesListRequest { + r.autoSyncEnabled = &autoSyncEnabled + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) Created(created []time.Time) ApiExtrasConfigTemplatesListRequest { + r.created = &created + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasConfigTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasConfigTemplatesListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasConfigTemplatesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasConfigTemplatesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasConfigTemplatesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) CreatedN(createdN []time.Time) ApiExtrasConfigTemplatesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasConfigTemplatesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +// 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 +} + +func (r ApiExtrasConfigTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasConfigTemplatesListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasConfigTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasConfigTemplatesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasConfigTemplatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasConfigTemplatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasConfigTemplatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasConfigTemplatesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiExtrasConfigTemplatesListRequest) Limit(limit int32) ApiExtrasConfigTemplatesListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasConfigTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + 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) UpdatedByRequest(updatedByRequest string) ApiExtrasConfigTemplatesListRequest { + r.updatedByRequest = &updatedByRequest + 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.isActive != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_active", r.isActive, "") +} + +// 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.lastUpdated != nil { - t := *r.lastUpdated + + localVarPath := localBasePath + "/api/extras/config-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.autoSyncEnabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auto_sync_enabled", r.autoSyncEnabled, "form", "") + } + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.location != nil { - t := *r.location + 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, "location", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "form", "multi") } } - if r.locationN != nil { - t := *r.locationN + 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, "location__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "form", "multi") } } - if r.locationId != nil { - t := *r.locationId + 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, "location_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "form", "multi") } } - if r.locationIdN != nil { - t := *r.locationIdN + 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, "location_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.dataSyncedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "form", "") } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + 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, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "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.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "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 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, "platform", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.platformN != nil { - t := *r.platformN + 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, "platform__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.platformId != nil { - t := *r.platformId + 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, "platform_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.platformIdN != nil { - t := *r.platformIdN + 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, "platform_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.region != nil { - t := *r.region + 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, "region", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.regionN != nil { - t := *r.regionN + 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.regionId != nil { - t := *r.regionId + 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, "region_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "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.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + 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, "site_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + 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, "site_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + 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, "site_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + 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, "site_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "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.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - 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.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.tagIdN != nil { - t := *r.tagIdN + 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, "tag_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "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.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.tenantN != nil { - t := *r.tenantN + 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, "tenant__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + 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, "tenant_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + 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, "tenant_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + 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, "tenant_group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + 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, "tenant_group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + 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, "tenant_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + 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, "tenant_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.weight != nil { - t := *r.weight + 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, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt + 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, "weight__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.weightGte != nil { - t := *r.weightGte + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "weight__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.weightLt != nil { - t := *r.weightLt + 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, "weight__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiExtrasConfigTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedConfigTemplateRequest *PatchedConfigTemplateRequest +} + +func (r ApiExtrasConfigTemplatesPartialUpdateRequest) PatchedConfigTemplateRequest(patchedConfigTemplateRequest PatchedConfigTemplateRequest) ApiExtrasConfigTemplatesPartialUpdateRequest { + r.patchedConfigTemplateRequest = &patchedConfigTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesPartialUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesPartialUpdateExecute(r) +} + +/* +ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate + +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 template. + @return ApiExtrasConfigTemplatesPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesPartialUpdateRequest { + return ApiExtrasConfigTemplatesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtrasConfigTemplatesPartialUpdateRequest) (*ConfigTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate + ) + + 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-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{"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.patchedConfigTemplateRequest + 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 ApiExtrasConfigTemplatesRenderCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + configTemplateRequest *ConfigTemplateRequest + format *DcimDevicesRenderConfigCreateFormatParameter +} + +func (r ApiExtrasConfigTemplatesRenderCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest { + r.configTemplateRequest = &configTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesRenderCreateRequest) Format(format DcimDevicesRenderConfigCreateFormatParameter) ApiExtrasConfigTemplatesRenderCreateRequest { + r.format = &format + return r +} + +func (r ApiExtrasConfigTemplatesRenderCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesRenderCreateExecute(r) +} + +/* +ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate + +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(). + @param id A unique integer value identifying this config template. + @return ApiExtrasConfigTemplatesRenderCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesRenderCreateRequest { + return ApiExtrasConfigTemplatesRenderCreateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasConfigTemplatesRenderCreateRequest) (*ConfigTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesRenderCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.weightLte != nil { - t := *r.weightLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") - } + + 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.weightN != nil { - t := *r.weightN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } + + if r.format != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "form", "") } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4247,13 +8926,15 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} // 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 { @@ -4305,56 +8986,49 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedConfigContextRequest *PatchedConfigContextRequest -} - -func (r ApiExtrasConfigContextsPartialUpdateRequest) PatchedConfigContextRequest(patchedConfigContextRequest PatchedConfigContextRequest) ApiExtrasConfigContextsPartialUpdateRequest { - r.patchedConfigContextRequest = &patchedConfigContextRequest - return r +type ApiExtrasConfigTemplatesRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasConfigContextsPartialUpdateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsPartialUpdateExecute(r) +func (r ApiExtrasConfigTemplatesRetrieveRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesRetrieveExecute(r) } /* -ExtrasConfigContextsPartialUpdate Method for ExtrasConfigContextsPartialUpdate +ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve -Patch a config context object. +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 context. - @return ApiExtrasConfigContextsPartialUpdateRequest + @param ctx 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) ExtrasConfigContextsPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsPartialUpdateRequest { - return ApiExtrasConfigContextsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasConfigTemplatesRetrieveRequest { + return ApiExtrasConfigTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConfigContext -func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasConfigContextsPartialUpdateRequest) (*ConfigContext, *http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfigTemplatesRetrieveRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsPartialUpdate") + 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-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) @@ -4362,7 +9036,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasC localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4378,8 +9052,6 @@ func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedConfigContextRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4431,58 +9103,66 @@ func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasConfigTemplatesSyncCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + configTemplateRequest *ConfigTemplateRequest } -func (r ApiExtrasConfigContextsRetrieveRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsRetrieveExecute(r) +func (r ApiExtrasConfigTemplatesSyncCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesSyncCreateRequest { + r.configTemplateRequest = &configTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesSyncCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesSyncCreateExecute(r) } /* -ExtrasConfigContextsRetrieve Method for ExtrasConfigContextsRetrieve +ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate -Get a config context object. +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 ApiExtrasConfigContextsRetrieveRequest + @param ctx 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) ExtrasConfigContextsRetrieve(ctx context.Context, id int32) ApiExtrasConfigContextsRetrieveRequest { - return ApiExtrasConfigContextsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesSyncCreateRequest { + return ApiExtrasConfigTemplatesSyncCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConfigContext -func (a *ExtrasAPIService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfigContextsRetrieveRequest) (*ConfigContext, *http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasConfigTemplatesSyncCreateRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsRetrieve") + 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-contexts/{id}/" + 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.configTemplateRequest == nil { + return localVarReturnValue, nil, reportError("configTemplateRequest 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) @@ -4498,6 +9178,8 @@ func (a *ExtrasAPIService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfig 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 { @@ -4549,63 +9231,62 @@ func (a *ExtrasAPIService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfig return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsSyncCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - configContextRequest *ConfigContextRequest +type ApiExtrasConfigTemplatesUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + configTemplateRequest *ConfigTemplateRequest } -func (r ApiExtrasConfigContextsSyncCreateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsSyncCreateRequest { - r.configContextRequest = &configContextRequest +func (r ApiExtrasConfigTemplatesUpdateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesUpdateRequest { + r.configTemplateRequest = &configTemplateRequest return r } -func (r ApiExtrasConfigContextsSyncCreateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsSyncCreateExecute(r) +func (r ApiExtrasConfigTemplatesUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesUpdateExecute(r) } /* -ExtrasConfigContextsSyncCreate Method for ExtrasConfigContextsSyncCreate +ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate -Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). +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 context. - @return ApiExtrasConfigContextsSyncCreateRequest + @param ctx 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) ExtrasConfigContextsSyncCreate(ctx context.Context, id int32) ApiExtrasConfigContextsSyncCreateRequest { - return ApiExtrasConfigContextsSyncCreateRequest{ +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 -// -// @return ConfigContext -func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConfigContextsSyncCreateRequest) (*ConfigContext, *http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigTemplatesUpdateRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsSyncCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/{id}/sync/" + 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.configContextRequest == nil { - return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified") + if r.configTemplateRequest == nil { + return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -4626,7 +9307,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configContextRequest + localVarPostBody = r.configTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4678,63 +9359,56 @@ func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - configContextRequest *ConfigContextRequest +type ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest } -func (r ApiExtrasConfigContextsUpdateRequest) ConfigContextRequest(configContextRequest ConfigContextRequest) ApiExtrasConfigContextsUpdateRequest { - r.configContextRequest = &configContextRequest +func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest { + r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest return r } -func (r ApiExtrasConfigContextsUpdateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsUpdateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r) } /* -ExtrasConfigContextsUpdate Method for ExtrasConfigContextsUpdate +ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy -Put a config context object. +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(). - @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(). + @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasConfigContextsUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsUpdateRequest { - return ApiExtrasConfigContextsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest { + return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigContext -func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigContextsUpdateRequest) (*ConfigContext, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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) + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" 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.customFieldChoiceSetRequest == nil { + return nil, reportError("customFieldChoiceSetRequest is required and must be specified") } // to determine the Content-Type header @@ -4747,7 +9421,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -4755,7 +9429,7 @@ func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configContextRequest + localVarPostBody = r.customFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4772,19 +9446,19 @@ func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -4792,71 +9466,64 @@ func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo 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 localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - configTemplateRequest *[]ConfigTemplateRequest +type ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest } -func (r ApiExtrasConfigTemplatesBulkDestroyRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkDestroyRequest { - r.configTemplateRequest = &configTemplateRequest +func (r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest { + r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest return r } -func (r ApiExtrasConfigTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesBulkDestroyExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) Execute() ([]CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r) } /* -ExtrasConfigTemplatesBulkDestroy Method for ExtrasConfigTemplatesBulkDestroy +ExtrasCustomFieldChoiceSetsBulkPartialUpdate Method for ExtrasCustomFieldChoiceSetsBulkPartialUpdate -Delete a list of config template objects. +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 ApiExtrasConfigTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroy(ctx context.Context) ApiExtrasConfigTemplatesBulkDestroyRequest { - return ApiExtrasConfigTemplatesBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest { + return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasConfigTemplatesBulkDestroyRequest) (*http.Response, error) { +// @return []CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkPartialUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/" + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" 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.customFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("customFieldChoiceSetRequest is required and must be specified") } // to determine the Content-Type header @@ -4869,7 +9536,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasCo } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -4877,7 +9544,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configTemplateRequest + localVarPostBody = r.customFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4894,19 +9561,19 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasCo } 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 { @@ -4914,65 +9581,73 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasCo body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiExtrasConfigTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - configTemplateRequest *[]ConfigTemplateRequest +type ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest } -func (r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkPartialUpdateRequest { - r.configTemplateRequest = &configTemplateRequest +func (r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest { + r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest return r } -func (r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) Execute() ([]ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesBulkPartialUpdateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) Execute() ([]CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r) } /* -ExtrasConfigTemplatesBulkPartialUpdate Method for ExtrasConfigTemplatesBulkPartialUpdate +ExtrasCustomFieldChoiceSetsBulkUpdate Method for ExtrasCustomFieldChoiceSetsBulkUpdate -Patch a list of config template objects. +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 ApiExtrasConfigTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkPartialUpdateRequest { - return ApiExtrasConfigTemplatesBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest { + return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConfigTemplate -func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ([]ConfigTemplate, *http.Response, error) { +// @return []CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConfigTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/" + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" 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.customFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("customFieldChoiceSetRequest is required and must be specified") } // to determine the Content-Type header @@ -4993,7 +9668,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configTemplateRequest + localVarPostBody = r.customFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5045,63 +9720,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 ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasConfigTemplatesBulkUpdateRequest) Execute() ([]ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesBulkUpdateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r) } /* -ExtrasConfigTemplatesBulkUpdate Method for ExtrasConfigTemplatesBulkUpdate +ExtrasCustomFieldChoiceSetsChoicesRetrieve Method for ExtrasCustomFieldChoiceSetsChoicesRetrieve -Put a list of config template objects. +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(). - @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 custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkUpdateRequest { - return ApiExtrasConfigTemplatesBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest { + return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest{ 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 CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConfigTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsChoicesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/" + 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{} - 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) @@ -5117,8 +9786,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 { @@ -5170,59 +9837,58 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasCon return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - configTemplateRequest *ConfigTemplateRequest +type ApiExtrasCustomFieldChoiceSetsCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest } -func (r ApiExtrasConfigTemplatesCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesCreateRequest { - r.configTemplateRequest = &configTemplateRequest +func (r ApiExtrasCustomFieldChoiceSetsCreateRequest) WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest WritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsCreateRequest { + r.writableCustomFieldChoiceSetRequest = &writableCustomFieldChoiceSetRequest return r } -func (r ApiExtrasConfigTemplatesCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesCreateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsCreateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsCreateExecute(r) } /* -ExtrasConfigTemplatesCreate Method for ExtrasConfigTemplatesCreate +ExtrasCustomFieldChoiceSetsCreate Method for ExtrasCustomFieldChoiceSetsCreate -Post a list of config template objects. +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(). - @return ApiExtrasConfigTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsCreateRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesCreate(ctx context.Context) ApiExtrasConfigTemplatesCreateRequest { - return ApiExtrasConfigTemplatesCreateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsCreateRequest { + return ApiExtrasCustomFieldChoiceSetsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigTemplatesCreateRequest) (*ConfigTemplate, *http.Response, error) { +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreateExecute(r ApiExtrasCustomFieldChoiceSetsCreateRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesCreate") + 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/" + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" 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.writableCustomFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("writableCustomFieldChoiceSetRequest is required and must be specified") } // to determine the Content-Type header @@ -5243,7 +9909,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configTemplateRequest + localVarPostBody = r.writableCustomFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5295,47 +9961,47 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasCustomFieldChoiceSetsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasConfigTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesDestroyExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsDestroyExecute(r) } /* -ExtrasConfigTemplatesDestroy Method for ExtrasConfigTemplatesDestroy +ExtrasCustomFieldChoiceSetsDestroy Method for ExtrasCustomFieldChoiceSetsDestroy -Delete a config template object. +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 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 custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroy(ctx context.Context, id int32) ApiExtrasConfigTemplatesDestroyRequest { - return ApiExtrasConfigTemplatesDestroyRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsDestroyRequest { + return ApiExtrasCustomFieldChoiceSetsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfigTemplatesDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtrasCustomFieldChoiceSetsDestroyRequest) (*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.ExtrasConfigTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsDestroy") if err != nil { return 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) @@ -5401,456 +10067,397 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfig return localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - autoSyncEnabled *bool - 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 - 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 +type ApiExtrasCustomFieldChoiceSetsListRequest struct { + ctx context.Context + ApiService ExtrasAPI + baseChoices *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter + choice *[]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 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 - updatedByRequest *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 + orderAlphabetically *bool + ordering *string + q *string + updatedByRequest *string } -func (r ApiExtrasConfigTemplatesListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasConfigTemplatesListRequest { - r.autoSyncEnabled = &autoSyncEnabled +// Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) +func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoices(baseChoices ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) ApiExtrasCustomFieldChoiceSetsListRequest { + r.baseChoices = &baseChoices return r } -func (r ApiExtrasConfigTemplatesListRequest) Created(created []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Choice(choice []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.choice = &choice + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Created(created []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.created = &created return r } -func (r ApiExtrasConfigTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiExtrasConfigTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.createdGt = &createdGt return r } -func (r ApiExtrasConfigTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.createdGte = &createdGte return r } -func (r ApiExtrasConfigTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.createdLt = &createdLt return r } -func (r ApiExtrasConfigTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.createdLte = &createdLte return r } -func (r ApiExtrasConfigTemplatesListRequest) CreatedN(createdN []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.createdN = &createdN return r } -func (r ApiExtrasConfigTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest { r.createdByRequest = &createdByRequest return r } -// 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 { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Description(description []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.description = &description return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionN(descriptionN []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionN(descriptionN []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiExtrasConfigTemplatesListRequest) Id(id []int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Id(id []int32) ApiExtrasCustomFieldChoiceSetsListRequest { r.id = &id return r } -func (r ApiExtrasConfigTemplatesListRequest) IdEmpty(idEmpty bool) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiExtrasConfigTemplatesListRequest) IdGt(idGt []int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdGt(idGt []int32) ApiExtrasCustomFieldChoiceSetsListRequest { r.idGt = &idGt return r } -func (r ApiExtrasConfigTemplatesListRequest) IdGte(idGte []int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdGte(idGte []int32) ApiExtrasCustomFieldChoiceSetsListRequest { r.idGte = &idGte return r } -func (r ApiExtrasConfigTemplatesListRequest) IdLt(idLt []int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdLt(idLt []int32) ApiExtrasCustomFieldChoiceSetsListRequest { r.idLt = &idLt return r } -func (r ApiExtrasConfigTemplatesListRequest) IdLte(idLte []int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdLte(idLte []int32) ApiExtrasCustomFieldChoiceSetsListRequest { r.idLte = &idLte return r } -func (r ApiExtrasConfigTemplatesListRequest) IdN(idN []int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdN(idN []int32) ApiExtrasCustomFieldChoiceSetsListRequest { r.idN = &idN return r } -func (r ApiExtrasConfigTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiExtrasConfigTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiExtrasConfigTemplatesListRequest) Limit(limit int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Limit(limit int32) ApiExtrasCustomFieldChoiceSetsListRequest { r.limit = &limit return r } -func (r ApiExtrasConfigTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiExtrasConfigTemplatesListRequest) Name(name []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Name(name []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.name = &name return r } -func (r ApiExtrasConfigTemplatesListRequest) NameEmpty(nameEmpty bool) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameEmpty(nameEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiExtrasConfigTemplatesListRequest) NameIc(nameIc []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIc(nameIc []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameIc = &nameIc return r } -func (r ApiExtrasConfigTemplatesListRequest) NameIe(nameIe []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIe(nameIe []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameIe = &nameIe return r } -func (r ApiExtrasConfigTemplatesListRequest) NameIew(nameIew []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIew(nameIew []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameIew = &nameIew return r } -func (r ApiExtrasConfigTemplatesListRequest) NameIsw(nameIsw []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIsw(nameIsw []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiExtrasConfigTemplatesListRequest) NameN(nameN []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameN(nameN []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameN = &nameN return r } -func (r ApiExtrasConfigTemplatesListRequest) NameNic(nameNic []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNic(nameNic []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameNic = &nameNic return r } -func (r ApiExtrasConfigTemplatesListRequest) NameNie(nameNie []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNie(nameNie []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameNie = &nameNie return r } -func (r ApiExtrasConfigTemplatesListRequest) NameNiew(nameNiew []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNiew(nameNiew []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiExtrasConfigTemplatesListRequest) NameNisw(nameNisw []string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNisw(nameNisw []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiExtrasConfigTemplatesListRequest) Offset(offset int32) ApiExtrasConfigTemplatesListRequest { +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 ApiExtrasConfigTemplatesListRequest) Ordering(ordering string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Ordering(ordering string) ApiExtrasCustomFieldChoiceSetsListRequest { r.ordering = &ordering return r } // Search -func (r ApiExtrasConfigTemplatesListRequest) Q(q string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Q(q string) ApiExtrasCustomFieldChoiceSetsListRequest { 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) UpdatedByRequest(updatedByRequest string) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasCustomFieldChoiceSetsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiExtrasConfigTemplatesListRequest) Execute() (*PaginatedConfigTemplateList, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesListExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Execute() (*PaginatedCustomFieldChoiceSetList, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsListExecute(r) } /* -ExtrasConfigTemplatesList Method for ExtrasConfigTemplatesList +ExtrasCustomFieldChoiceSetsList Method for ExtrasCustomFieldChoiceSetsList -Get a list of config template objects. +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(). - @return ApiExtrasConfigTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsListRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesList(ctx context.Context) ApiExtrasConfigTemplatesListRequest { - return ApiExtrasConfigTemplatesListRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsList(ctx context.Context) ApiExtrasCustomFieldChoiceSetsListRequest { + return ApiExtrasCustomFieldChoiceSetsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConfigTemplateList -func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTemplatesListRequest) (*PaginatedConfigTemplateList, *http.Response, error) { +// @return PaginatedCustomFieldChoiceSetList +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCustomFieldChoiceSetsListRequest) (*PaginatedCustomFieldChoiceSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConfigTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCustomFieldChoiceSetList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesList") + 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/" + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.autoSyncEnabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auto_sync_enabled", r.autoSyncEnabled, "") + if r.baseChoices != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "base_choices", r.baseChoices, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -5858,10 +10465,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -5869,10 +10476,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -5880,10 +10487,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -5891,10 +10498,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -5902,10 +10509,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -5913,151 +10520,38 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -6065,10 +10559,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -6076,10 +10570,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -6087,10 +10581,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -6098,10 +10592,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -6109,10 +10603,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -6120,10 +10614,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -6131,10 +10625,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -6142,10 +10636,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -6153,24 +10647,24 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -6178,10 +10672,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -6189,10 +10683,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -6200,10 +10694,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -6211,10 +10705,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -6222,10 +10716,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -6233,10 +10727,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -6244,10 +10738,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -6255,10 +10749,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -6266,10 +10760,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -6277,10 +10771,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -6288,41 +10782,41 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -6330,10 +10824,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -6341,10 +10835,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -6352,10 +10846,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -6363,10 +10857,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -6374,10 +10868,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -6385,10 +10879,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -6396,10 +10890,10 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -6407,48 +10901,152 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.orderAlphabetically != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_alphabetically", r.orderAlphabetically, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - 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") + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 } - } 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") + 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 ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedWritableCustomFieldChoiceSetRequest *PatchedWritableCustomFieldChoiceSetRequest +} + +func (r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) PatchedWritableCustomFieldChoiceSetRequest(patchedWritableCustomFieldChoiceSetRequest PatchedWritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest { + r.patchedWritableCustomFieldChoiceSetRequest = &patchedWritableCustomFieldChoiceSetRequest + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r) +} + +/* +ExtrasCustomFieldChoiceSetsPartialUpdate Method for ExtrasCustomFieldChoiceSetsPartialUpdate + +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 custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest { + return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") +} + +// Execute executes the request +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsPartialUpdate") + if err != nil { + return localVarReturnValue, 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{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -6464,6 +11062,8 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedWritableCustomFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6515,56 +11115,49 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedConfigTemplateRequest *PatchedConfigTemplateRequest -} - -func (r ApiExtrasConfigTemplatesPartialUpdateRequest) PatchedConfigTemplateRequest(patchedConfigTemplateRequest PatchedConfigTemplateRequest) ApiExtrasConfigTemplatesPartialUpdateRequest { - r.patchedConfigTemplateRequest = &patchedConfigTemplateRequest - return r +type ApiExtrasCustomFieldChoiceSetsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasConfigTemplatesPartialUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesPartialUpdateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsRetrieveExecute(r) } /* -ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate +ExtrasCustomFieldChoiceSetsRetrieve Method for ExtrasCustomFieldChoiceSetsRetrieve -Patch a config template object. +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(). - @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(). + @param id A unique integer value identifying this custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesPartialUpdateRequest { - return ApiExtrasConfigTemplatesPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsRetrieveRequest { + return ApiExtrasCustomFieldChoiceSetsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtrasConfigTemplatesPartialUpdateRequest) (*ConfigTemplate, *http.Response, error) { +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodGet + 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.ExtrasCustomFieldChoiceSetsRetrieve") 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) @@ -6572,7 +11165,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -6588,8 +11181,6 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedConfigTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6641,75 +11232,64 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesRenderCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - configTemplateRequest *ConfigTemplateRequest - format *DcimDevicesRenderConfigCreateFormatParameter -} - -func (r ApiExtrasConfigTemplatesRenderCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest { - r.configTemplateRequest = &configTemplateRequest - return r +type ApiExtrasCustomFieldChoiceSetsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest } -func (r ApiExtrasConfigTemplatesRenderCreateRequest) Format(format DcimDevicesRenderConfigCreateFormatParameter) ApiExtrasConfigTemplatesRenderCreateRequest { - r.format = &format +func (r ApiExtrasCustomFieldChoiceSetsUpdateRequest) WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest WritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsUpdateRequest { + r.writableCustomFieldChoiceSetRequest = &writableCustomFieldChoiceSetRequest return r } -func (r ApiExtrasConfigTemplatesRenderCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesRenderCreateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsUpdateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsUpdateExecute(r) } /* -ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate +ExtrasCustomFieldChoiceSetsUpdate Method for ExtrasCustomFieldChoiceSetsUpdate -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. +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 config template. - @return ApiExtrasConfigTemplatesRenderCreateRequest + @param ctx 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) ExtrasConfigTemplatesRenderCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesRenderCreateRequest { - return ApiExtrasConfigTemplatesRenderCreateRequest{ +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 ConfigTemplate -func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasConfigTemplatesRenderCreateRequest) (*ConfigTemplate, *http.Response, error) { +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasCustomFieldChoiceSetsUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesRenderCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/{id}/render/" + 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.configTemplateRequest == nil { - return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified") + if r.writableCustomFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("writableCustomFieldChoiceSetRequest 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"} @@ -6720,7 +11300,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasC } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -6728,7 +11308,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasC localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configTemplateRequest + localVarPostBody = r.writableCustomFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6780,58 +11360,60 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasCustomFieldsBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + customFieldRequest *[]CustomFieldRequest } -func (r ApiExtrasConfigTemplatesRetrieveRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesRetrieveExecute(r) +func (r ApiExtrasCustomFieldsBulkDestroyRequest) CustomFieldRequest(customFieldRequest []CustomFieldRequest) ApiExtrasCustomFieldsBulkDestroyRequest { + r.customFieldRequest = &customFieldRequest + return r +} + +func (r ApiExtrasCustomFieldsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomFieldsBulkDestroyExecute(r) } /* -ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve +ExtrasCustomFieldsBulkDestroy Method for ExtrasCustomFieldsBulkDestroy -Get a config template object. +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(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasConfigTemplatesRetrieveRequest { - return ApiExtrasConfigTemplatesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldsBulkDestroyRequest { + return ApiExtrasCustomFieldsBulkDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfigTemplatesRetrieveRequest) (*ConfigTemplate, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCustomFieldsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return 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-fields/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.customFieldRequest == nil { + return nil, reportError("customFieldRequest 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) @@ -6840,13 +11422,15 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfi } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.customFieldRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6863,19 +11447,19 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfi } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -6883,78 +11467,64 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfi 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 localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesSyncCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - configTemplateRequest *ConfigTemplateRequest +type ApiExtrasCustomFieldsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + customFieldRequest *[]CustomFieldRequest } -func (r ApiExtrasConfigTemplatesSyncCreateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesSyncCreateRequest { - r.configTemplateRequest = &configTemplateRequest +func (r ApiExtrasCustomFieldsBulkPartialUpdateRequest) CustomFieldRequest(customFieldRequest []CustomFieldRequest) ApiExtrasCustomFieldsBulkPartialUpdateRequest { + r.customFieldRequest = &customFieldRequest return r } -func (r ApiExtrasConfigTemplatesSyncCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesSyncCreateExecute(r) +func (r ApiExtrasCustomFieldsBulkPartialUpdateRequest) Execute() ([]CustomField, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldsBulkPartialUpdateExecute(r) } /* -ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate +ExtrasCustomFieldsBulkPartialUpdate Method for ExtrasCustomFieldsBulkPartialUpdate -Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). +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(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesSyncCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesSyncCreateRequest { - return ApiExtrasConfigTemplatesSyncCreateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkPartialUpdateRequest { + return ApiExtrasCustomFieldsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasConfigTemplatesSyncCreateRequest) (*ConfigTemplate, *http.Response, error) { +// @return []CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtrasCustomFieldsBulkPartialUpdateRequest) ([]CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesSyncCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/{id}/sync/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/custom-fields/" 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.customFieldRequest == nil { + return localVarReturnValue, nil, reportError("customFieldRequest is required and must be specified") } // to determine the Content-Type header @@ -6975,7 +11545,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configTemplateRequest + localVarPostBody = r.customFieldRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7027,63 +11597,58 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - configTemplateRequest *ConfigTemplateRequest +type ApiExtrasCustomFieldsBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + customFieldRequest *[]CustomFieldRequest } -func (r ApiExtrasConfigTemplatesUpdateRequest) ConfigTemplateRequest(configTemplateRequest ConfigTemplateRequest) ApiExtrasConfigTemplatesUpdateRequest { - r.configTemplateRequest = &configTemplateRequest +func (r ApiExtrasCustomFieldsBulkUpdateRequest) CustomFieldRequest(customFieldRequest []CustomFieldRequest) ApiExtrasCustomFieldsBulkUpdateRequest { + r.customFieldRequest = &customFieldRequest return r } -func (r ApiExtrasConfigTemplatesUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesUpdateExecute(r) +func (r ApiExtrasCustomFieldsBulkUpdateRequest) Execute() ([]CustomField, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldsBulkUpdateExecute(r) } /* -ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate +ExtrasCustomFieldsBulkUpdate Method for ExtrasCustomFieldsBulkUpdate -Put a config template object. +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(). - @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(). + @return ApiExtrasCustomFieldsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesUpdateRequest { - return ApiExtrasConfigTemplatesUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkUpdateRequest { + return ApiExtrasCustomFieldsBulkUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigTemplatesUpdateRequest) (*ConfigTemplate, *http.Response, error) { +// @return []CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustomFieldsBulkUpdateRequest) ([]CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkUpdate") 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-fields/" 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.customFieldRequest == nil { + return localVarReturnValue, nil, reportError("customFieldRequest is required and must be specified") } // to determine the Content-Type header @@ -7104,7 +11669,7 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configTemplateRequest + localVarPostBody = r.customFieldRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7156,56 +11721,58 @@ func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest +type ApiExtrasCustomFieldsCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + writableCustomFieldRequest *WritableCustomFieldRequest } -func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest { - r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest +func (r ApiExtrasCustomFieldsCreateRequest) WritableCustomFieldRequest(writableCustomFieldRequest WritableCustomFieldRequest) ApiExtrasCustomFieldsCreateRequest { + r.writableCustomFieldRequest = &writableCustomFieldRequest return r } -func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r) +func (r ApiExtrasCustomFieldsCreateRequest) Execute() (*CustomField, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldsCreateExecute(r) } /* -ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy +ExtrasCustomFieldsCreate Method for ExtrasCustomFieldsCreate -Delete a list of custom field choice set objects. +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 ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsCreateRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest { - return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldsCreate(ctx context.Context) ApiExtrasCustomFieldsCreateRequest { + return ApiExtrasCustomFieldsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFieldsCreateRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsCreate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" + localVarPath := localBasePath + "/api/extras/custom-fields/" 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.writableCustomFieldRequest == nil { + return localVarReturnValue, nil, reportError("writableCustomFieldRequest is required and must be specified") } // to determine the Content-Type header @@ -7218,7 +11785,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiEx } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -7226,7 +11793,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customFieldChoiceSetRequest + localVarPostBody = r.writableCustomFieldRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7243,19 +11810,19 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiEx } 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 { @@ -7263,69 +11830,70 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiEx body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} + 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 + } -type ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest { - r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest - return r +type ApiExtrasCustomFieldsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) Execute() ([]CustomFieldChoiceSet, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r) +func (r ApiExtrasCustomFieldsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomFieldsDestroyExecute(r) } /* -ExtrasCustomFieldChoiceSetsBulkPartialUpdate Method for ExtrasCustomFieldChoiceSetsBulkPartialUpdate +ExtrasCustomFieldsDestroy Method for ExtrasCustomFieldsDestroy -Patch a list of custom field choice set objects. +Delete a custom field object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest + @param ctx 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) ExtrasCustomFieldChoiceSetsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest { - return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldsDestroyRequest { + return ApiExtrasCustomFieldsDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []CustomFieldChoiceSet -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFieldsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomFieldChoiceSet + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" + localVarPath := localBasePath + "/api/extras/custom-fields/{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.customFieldChoiceSetRequest == nil { - return localVarReturnValue, nil, reportError("customFieldChoiceSetRequest 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) @@ -7334,15 +11902,13 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // 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 { @@ -7359,19 +11925,19 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -7379,1487 +11945,2304 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return 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 localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type ApiExtrasCustomFieldsListRequest struct { + ctx context.Context + ApiService ExtrasAPI + choiceSet *[]string + choiceSetN *[]string + choiceSetId *[]*int32 + choiceSetIdN *[]*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 + filterLogic *ExtrasCustomFieldsListFilterLogicParameter + 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 + 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 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + relatedObjectType *string + relatedObjectTypeN *string + relatedObjectTypeId *[]int32 + relatedObjectTypeIdN *[]int32 + required *bool + searchWeight *[]int32 + searchWeightEmpty *bool + searchWeightGt *[]int32 + searchWeightGte *[]int32 + searchWeightLt *[]int32 + searchWeightLte *[]int32 + searchWeightN *[]int32 + type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + uiEditable *ExtrasCustomFieldsListUiEditableParameter + uiVisible *ExtrasCustomFieldsListUiVisibleParameter + unique *bool + updatedByRequest *string + validationMaximum *[]int32 + validationMaximumEmpty *bool + validationMaximumGt *[]int32 + validationMaximumGte *[]int32 + validationMaximumLt *[]int32 + validationMaximumLte *[]int32 + validationMaximumN *[]int32 + validationMinimum *[]int32 + validationMinimumEmpty *bool + validationMinimumGt *[]int32 + validationMinimumGte *[]int32 + validationMinimumLt *[]int32 + validationMinimumLte *[]int32 + validationMinimumN *[]int32 + validationRegex *[]string + validationRegexEmpty *bool + validationRegexIc *[]string + validationRegexIe *[]string + validationRegexIew *[]string + validationRegexIsw *[]string + validationRegexN *[]string + validationRegexNic *[]string + validationRegexNie *[]string + validationRegexNiew *[]string + validationRegexNisw *[]string + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 } -type ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest +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) Created(created []time.Time) ApiExtrasCustomFieldsListRequest { + r.created = &created + return r +} + +func (r ApiExtrasCustomFieldsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomFieldsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiExtrasCustomFieldsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomFieldsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiExtrasCustomFieldsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomFieldsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiExtrasCustomFieldsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomFieldsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiExtrasCustomFieldsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomFieldsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiExtrasCustomFieldsListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomFieldsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiExtrasCustomFieldsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomFieldsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiExtrasCustomFieldsListRequest) Description(description []string) ApiExtrasCustomFieldsListRequest { + r.description = &description + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasCustomFieldsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasCustomFieldsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasCustomFieldsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasCustomFieldsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasCustomFieldsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionN(descriptionN []string) ApiExtrasCustomFieldsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasCustomFieldsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasCustomFieldsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasCustomFieldsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiExtrasCustomFieldsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasCustomFieldsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +// Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact +func (r ApiExtrasCustomFieldsListRequest) FilterLogic(filterLogic ExtrasCustomFieldsListFilterLogicParameter) ApiExtrasCustomFieldsListRequest { + r.filterLogic = &filterLogic + return r +} + +func (r ApiExtrasCustomFieldsListRequest) GroupName(groupName []string) ApiExtrasCustomFieldsListRequest { + r.groupName = &groupName + return r +} + +func (r ApiExtrasCustomFieldsListRequest) GroupNameEmpty(groupNameEmpty bool) ApiExtrasCustomFieldsListRequest { + r.groupNameEmpty = &groupNameEmpty + return r +} + +func (r ApiExtrasCustomFieldsListRequest) GroupNameIc(groupNameIc []string) ApiExtrasCustomFieldsListRequest { + r.groupNameIc = &groupNameIc + return r } -func (r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest { - r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest +func (r ApiExtrasCustomFieldsListRequest) GroupNameIe(groupNameIe []string) ApiExtrasCustomFieldsListRequest { + r.groupNameIe = &groupNameIe return r } -func (r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) Execute() ([]CustomFieldChoiceSet, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r) +func (r ApiExtrasCustomFieldsListRequest) GroupNameIew(groupNameIew []string) ApiExtrasCustomFieldsListRequest { + r.groupNameIew = &groupNameIew + return 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, - } +func (r ApiExtrasCustomFieldsListRequest) GroupNameIsw(groupNameIsw []string) ApiExtrasCustomFieldsListRequest { + r.groupNameIsw = &groupNameIsw + return r } -// 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()} - } - - 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") - } - - // 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"} +func (r ApiExtrasCustomFieldsListRequest) GroupNameN(groupNameN []string) ApiExtrasCustomFieldsListRequest { + r.groupNameN = &groupNameN + return r +} - // 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 - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +func (r ApiExtrasCustomFieldsListRequest) GroupNameNic(groupNameNic []string) ApiExtrasCustomFieldsListRequest { + r.groupNameNic = &groupNameNic + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasCustomFieldsListRequest) GroupNameNie(groupNameNie []string) ApiExtrasCustomFieldsListRequest { + r.groupNameNie = &groupNameNie + 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 - } +func (r ApiExtrasCustomFieldsListRequest) GroupNameNiew(groupNameNiew []string) ApiExtrasCustomFieldsListRequest { + r.groupNameNiew = &groupNameNiew + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasCustomFieldsListRequest) GroupNameNisw(groupNameNisw []string) ApiExtrasCustomFieldsListRequest { + r.groupNameNisw = &groupNameNisw + 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 ApiExtrasCustomFieldsListRequest) Id(id []int32) ApiExtrasCustomFieldsListRequest { + r.id = &id + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasCustomFieldsListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomFieldsListRequest { + r.idEmpty = &idEmpty + return r } -type ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +func (r ApiExtrasCustomFieldsListRequest) IdGt(idGt []int32) ApiExtrasCustomFieldsListRequest { + r.idGt = &idGt + return r } -func (r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r) +func (r ApiExtrasCustomFieldsListRequest) IdGte(idGte []int32) ApiExtrasCustomFieldsListRequest { + r.idGte = &idGte + return r } -/* -ExtrasCustomFieldChoiceSetsChoicesRetrieve Method for ExtrasCustomFieldChoiceSetsChoicesRetrieve +func (r ApiExtrasCustomFieldsListRequest) IdLt(idLt []int32) ApiExtrasCustomFieldsListRequest { + r.idLt = &idLt + return r +} -Provides an endpoint to iterate through each choice in a set. +func (r ApiExtrasCustomFieldsListRequest) IdLte(idLte []int32) ApiExtrasCustomFieldsListRequest { + r.idLte = &idLte + 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 custom field choice set. - @return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest -*/ -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest { - return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiExtrasCustomFieldsListRequest) IdN(idN []int32) ApiExtrasCustomFieldsListRequest { + r.idN = &idN + return r } -// 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 - ) +func (r ApiExtrasCustomFieldsListRequest) IsCloneable(isCloneable bool) ApiExtrasCustomFieldsListRequest { + r.isCloneable = &isCloneable + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsChoicesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasCustomFieldsListRequest) Label(label []string) ApiExtrasCustomFieldsListRequest { + r.label = &label + return r +} - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/choices/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiExtrasCustomFieldsListRequest) LabelEmpty(labelEmpty bool) ApiExtrasCustomFieldsListRequest { + r.labelEmpty = &labelEmpty + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiExtrasCustomFieldsListRequest) LabelIc(labelIc []string) ApiExtrasCustomFieldsListRequest { + r.labelIc = &labelIc + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiExtrasCustomFieldsListRequest) LabelIe(labelIe []string) ApiExtrasCustomFieldsListRequest { + r.labelIe = &labelIe + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasCustomFieldsListRequest) LabelIew(labelIew []string) ApiExtrasCustomFieldsListRequest { + r.labelIew = &labelIew + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiExtrasCustomFieldsListRequest) LabelIsw(labelIsw []string) ApiExtrasCustomFieldsListRequest { + r.labelIsw = &labelIsw + 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 ApiExtrasCustomFieldsListRequest) LabelN(labelN []string) ApiExtrasCustomFieldsListRequest { + r.labelN = &labelN + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasCustomFieldsListRequest) LabelNic(labelNic []string) ApiExtrasCustomFieldsListRequest { + r.labelNic = &labelNic + 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 - } +func (r ApiExtrasCustomFieldsListRequest) LabelNie(labelNie []string) ApiExtrasCustomFieldsListRequest { + r.labelNie = &labelNie + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasCustomFieldsListRequest) LabelNiew(labelNiew []string) ApiExtrasCustomFieldsListRequest { + r.labelNiew = &labelNiew + 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 ApiExtrasCustomFieldsListRequest) LabelNisw(labelNisw []string) ApiExtrasCustomFieldsListRequest { + r.labelNisw = &labelNisw + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasCustomFieldsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomFieldsListRequest { + r.lastUpdated = &lastUpdated + return r } -type ApiExtrasCustomFieldChoiceSetsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest +func (r ApiExtrasCustomFieldsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomFieldsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r } -func (r ApiExtrasCustomFieldChoiceSetsCreateRequest) WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest WritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsCreateRequest { - r.writableCustomFieldChoiceSetRequest = &writableCustomFieldChoiceSetRequest +func (r ApiExtrasCustomFieldsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomFieldsListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiExtrasCustomFieldChoiceSetsCreateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsCreateExecute(r) +func (r ApiExtrasCustomFieldsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomFieldsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r } -/* -ExtrasCustomFieldChoiceSetsCreate Method for ExtrasCustomFieldChoiceSetsCreate +func (r ApiExtrasCustomFieldsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomFieldsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} -Post a list of custom field choice set objects. +func (r ApiExtrasCustomFieldsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomFieldsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomFieldChoiceSetsCreateRequest -*/ -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsCreateRequest { - return ApiExtrasCustomFieldChoiceSetsCreateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiExtrasCustomFieldsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomFieldsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r } -// Execute executes the request -// -// @return CustomFieldChoiceSet -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreateExecute(r ApiExtrasCustomFieldChoiceSetsCreateRequest) (*CustomFieldChoiceSet, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomFieldChoiceSet - ) +// Number of results to return per page. +func (r ApiExtrasCustomFieldsListRequest) Limit(limit int32) ApiExtrasCustomFieldsListRequest { + r.limit = &limit + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasCustomFieldsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomFieldsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" +func (r ApiExtrasCustomFieldsListRequest) Name(name []string) ApiExtrasCustomFieldsListRequest { + r.name = &name + return r +} - 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") - } +func (r ApiExtrasCustomFieldsListRequest) NameEmpty(nameEmpty bool) ApiExtrasCustomFieldsListRequest { + r.nameEmpty = &nameEmpty + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiExtrasCustomFieldsListRequest) NameIc(nameIc []string) ApiExtrasCustomFieldsListRequest { + r.nameIc = &nameIc + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasCustomFieldsListRequest) NameIe(nameIe []string) ApiExtrasCustomFieldsListRequest { + r.nameIe = &nameIe + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiExtrasCustomFieldsListRequest) NameIew(nameIew []string) ApiExtrasCustomFieldsListRequest { + r.nameIew = &nameIew + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - 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 { - 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 ApiExtrasCustomFieldsListRequest) NameIsw(nameIsw []string) ApiExtrasCustomFieldsListRequest { + r.nameIsw = &nameIsw + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasCustomFieldsListRequest) NameN(nameN []string) ApiExtrasCustomFieldsListRequest { + r.nameN = &nameN + 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 - } +func (r ApiExtrasCustomFieldsListRequest) NameNic(nameNic []string) ApiExtrasCustomFieldsListRequest { + r.nameNic = &nameNic + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasCustomFieldsListRequest) NameNie(nameNie []string) ApiExtrasCustomFieldsListRequest { + r.nameNie = &nameNie + 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 ApiExtrasCustomFieldsListRequest) NameNiew(nameNiew []string) ApiExtrasCustomFieldsListRequest { + r.nameNiew = &nameNiew + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasCustomFieldsListRequest) NameNisw(nameNisw []string) ApiExtrasCustomFieldsListRequest { + r.nameNisw = &nameNisw + return r } -type ApiExtrasCustomFieldChoiceSetsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +func (r ApiExtrasCustomFieldsListRequest) ObjectType(objectType string) ApiExtrasCustomFieldsListRequest { + r.objectType = &objectType + return r } -func (r ApiExtrasCustomFieldChoiceSetsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsDestroyExecute(r) +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasCustomFieldsListRequest { + r.objectTypeIc = &objectTypeIc + return r } -/* -ExtrasCustomFieldChoiceSetsDestroy Method for ExtrasCustomFieldChoiceSetsDestroy +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasCustomFieldsListRequest { + r.objectTypeIe = &objectTypeIe + return r +} -Delete a custom field choice set object. +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasCustomFieldsListRequest { + r.objectTypeIew = &objectTypeIew + 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 custom field choice set. - @return ApiExtrasCustomFieldChoiceSetsDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsDestroyRequest { - return ApiExtrasCustomFieldChoiceSetsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasCustomFieldsListRequest { + r.objectTypeIsw = &objectTypeIsw + return r } -// Execute executes the request -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtrasCustomFieldChoiceSetsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasCustomFieldsListRequest { + r.objectTypeN = &objectTypeN + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasCustomFieldsListRequest { + r.objectTypeNic = &objectTypeNic + return r +} - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasCustomFieldsListRequest { + r.objectTypeNie = &objectTypeNie + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasCustomFieldsListRequest { + r.objectTypeNiew = &objectTypeNiew + return r +} + +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasCustomFieldsListRequest { + r.objectTypeNisw = &objectTypeNisw + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasCustomFieldsListRequest { + r.objectTypeId = &objectTypeId + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasCustomFieldsListRequest { + r.objectTypeIdN = &objectTypeIdN + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} +// The initial index from which to return the results. +func (r ApiExtrasCustomFieldsListRequest) Offset(offset int32) ApiExtrasCustomFieldsListRequest { + r.offset = &offset + 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 nil, err - } +// Which field to use when ordering the results. +func (r ApiExtrasCustomFieldsListRequest) Ordering(ordering string) ApiExtrasCustomFieldsListRequest { + r.ordering = &ordering + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } +// Search +func (r ApiExtrasCustomFieldsListRequest) Q(q string) ApiExtrasCustomFieldsListRequest { + r.q = &q + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } +func (r ApiExtrasCustomFieldsListRequest) RelatedObjectType(relatedObjectType string) ApiExtrasCustomFieldsListRequest { + r.relatedObjectType = &relatedObjectType + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } +func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeN(relatedObjectTypeN string) ApiExtrasCustomFieldsListRequest { + r.relatedObjectTypeN = &relatedObjectTypeN + return r +} - return localVarHTTPResponse, nil +func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeId(relatedObjectTypeId []int32) ApiExtrasCustomFieldsListRequest { + r.relatedObjectTypeId = &relatedObjectTypeId + return r } -type ApiExtrasCustomFieldChoiceSetsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - baseChoices *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter - baseChoicesN *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter - choice *[]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 - 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 - orderAlphabetically *bool - ordering *string - q *string - updatedByRequest *string +func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeIdN(relatedObjectTypeIdN []int32) ApiExtrasCustomFieldsListRequest { + r.relatedObjectTypeIdN = &relatedObjectTypeIdN + return r } -// Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) -func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoices(baseChoices ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) ApiExtrasCustomFieldChoiceSetsListRequest { - r.baseChoices = &baseChoices +func (r ApiExtrasCustomFieldsListRequest) Required(required bool) ApiExtrasCustomFieldsListRequest { + r.required = &required return r } -// Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) -func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoicesN(baseChoicesN ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) ApiExtrasCustomFieldChoiceSetsListRequest { - r.baseChoicesN = &baseChoicesN +func (r ApiExtrasCustomFieldsListRequest) SearchWeight(searchWeight []int32) ApiExtrasCustomFieldsListRequest { + r.searchWeight = &searchWeight return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Choice(choice []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.choice = &choice +func (r ApiExtrasCustomFieldsListRequest) SearchWeightEmpty(searchWeightEmpty bool) ApiExtrasCustomFieldsListRequest { + r.searchWeightEmpty = &searchWeightEmpty return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Created(created []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.created = &created +func (r ApiExtrasCustomFieldsListRequest) SearchWeightGt(searchWeightGt []int32) ApiExtrasCustomFieldsListRequest { + r.searchWeightGt = &searchWeightGt return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.createdEmpty = &createdEmpty +func (r ApiExtrasCustomFieldsListRequest) SearchWeightGte(searchWeightGte []int32) ApiExtrasCustomFieldsListRequest { + r.searchWeightGte = &searchWeightGte return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.createdGt = &createdGt +func (r ApiExtrasCustomFieldsListRequest) SearchWeightLt(searchWeightLt []int32) ApiExtrasCustomFieldsListRequest { + r.searchWeightLt = &searchWeightLt return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.createdGte = &createdGte +func (r ApiExtrasCustomFieldsListRequest) SearchWeightLte(searchWeightLte []int32) ApiExtrasCustomFieldsListRequest { + r.searchWeightLte = &searchWeightLte return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.createdLt = &createdLt +func (r ApiExtrasCustomFieldsListRequest) SearchWeightN(searchWeightN []int32) ApiExtrasCustomFieldsListRequest { + r.searchWeightN = &searchWeightN return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.createdLte = &createdLte +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) Type_(type_ []string) ApiExtrasCustomFieldsListRequest { + r.type_ = &type_ return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.createdN = &createdN +func (r ApiExtrasCustomFieldsListRequest) TypeEmpty(typeEmpty bool) ApiExtrasCustomFieldsListRequest { + r.typeEmpty = &typeEmpty return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.createdByRequest = &createdByRequest +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeIc(typeIc []string) ApiExtrasCustomFieldsListRequest { + r.typeIc = &typeIc return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Description(description []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.description = &description +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeIe(typeIe []string) ApiExtrasCustomFieldsListRequest { + r.typeIe = &typeIe return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionEmpty = &descriptionEmpty +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeIew(typeIew []string) ApiExtrasCustomFieldsListRequest { + r.typeIew = &typeIew return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionIc = &descriptionIc +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeIsw(typeIsw []string) ApiExtrasCustomFieldsListRequest { + r.typeIsw = &typeIsw return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionIe = &descriptionIe +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeN(typeN []string) ApiExtrasCustomFieldsListRequest { + r.typeN = &typeN return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionIew = &descriptionIew +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeNic(typeNic []string) ApiExtrasCustomFieldsListRequest { + r.typeNic = &typeNic return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionIsw = &descriptionIsw +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeNie(typeNie []string) ApiExtrasCustomFieldsListRequest { + r.typeNie = &typeNie return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionN(descriptionN []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionN = &descriptionN +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeNiew(typeNiew []string) ApiExtrasCustomFieldsListRequest { + r.typeNiew = &typeNiew return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionNic = &descriptionNic +// The type of data this custom field holds +func (r ApiExtrasCustomFieldsListRequest) TypeNisw(typeNisw []string) ApiExtrasCustomFieldsListRequest { + r.typeNisw = &typeNisw return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionNie = &descriptionNie +// Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden +func (r ApiExtrasCustomFieldsListRequest) UiEditable(uiEditable ExtrasCustomFieldsListUiEditableParameter) ApiExtrasCustomFieldsListRequest { + r.uiEditable = &uiEditable return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionNiew = &descriptionNiew +// Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden +func (r ApiExtrasCustomFieldsListRequest) UiVisible(uiVisible ExtrasCustomFieldsListUiVisibleParameter) ApiExtrasCustomFieldsListRequest { + r.uiVisible = &uiVisible return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiExtrasCustomFieldsListRequest) Unique(unique bool) ApiExtrasCustomFieldsListRequest { + r.unique = &unique return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Id(id []int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.id = &id +func (r ApiExtrasCustomFieldsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldsListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { - r.idEmpty = &idEmpty +func (r ApiExtrasCustomFieldsListRequest) ValidationMaximum(validationMaximum []int32) ApiExtrasCustomFieldsListRequest { + r.validationMaximum = &validationMaximum return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdGt(idGt []int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.idGt = &idGt +func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumEmpty(validationMaximumEmpty bool) ApiExtrasCustomFieldsListRequest { + r.validationMaximumEmpty = &validationMaximumEmpty return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdGte(idGte []int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.idGte = &idGte +func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumGt(validationMaximumGt []int32) ApiExtrasCustomFieldsListRequest { + r.validationMaximumGt = &validationMaximumGt return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdLt(idLt []int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.idLt = &idLt +func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumGte(validationMaximumGte []int32) ApiExtrasCustomFieldsListRequest { + r.validationMaximumGte = &validationMaximumGte return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdLte(idLte []int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.idLte = &idLte +func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumLt(validationMaximumLt []int32) ApiExtrasCustomFieldsListRequest { + r.validationMaximumLt = &validationMaximumLt return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdN(idN []int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.idN = &idN +func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumLte(validationMaximumLte []int32) ApiExtrasCustomFieldsListRequest { + r.validationMaximumLte = &validationMaximumLte return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.lastUpdated = &lastUpdated +func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumN(validationMaximumN []int32) ApiExtrasCustomFieldsListRequest { + r.validationMaximumN = &validationMaximumN return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiExtrasCustomFieldsListRequest) ValidationMinimum(validationMinimum []int32) ApiExtrasCustomFieldsListRequest { + r.validationMinimum = &validationMinimum return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumEmpty(validationMinimumEmpty bool) ApiExtrasCustomFieldsListRequest { + r.validationMinimumEmpty = &validationMinimumEmpty return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumGt(validationMinimumGt []int32) ApiExtrasCustomFieldsListRequest { + r.validationMinimumGt = &validationMinimumGt return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumGte(validationMinimumGte []int32) ApiExtrasCustomFieldsListRequest { + r.validationMinimumGte = &validationMinimumGte return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumLt(validationMinimumLt []int32) ApiExtrasCustomFieldsListRequest { + r.validationMinimumLt = &validationMinimumLt return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomFieldChoiceSetsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumLte(validationMinimumLte []int32) ApiExtrasCustomFieldsListRequest { + r.validationMinimumLte = &validationMinimumLte return r } -// Number of results to return per page. -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Limit(limit int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.limit = &limit +func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumN(validationMinimumN []int32) ApiExtrasCustomFieldsListRequest { + r.validationMinimumN = &validationMinimumN return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiExtrasCustomFieldsListRequest) ValidationRegex(validationRegex []string) ApiExtrasCustomFieldsListRequest { + r.validationRegex = &validationRegex return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Name(name []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.name = &name +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexEmpty(validationRegexEmpty bool) ApiExtrasCustomFieldsListRequest { + r.validationRegexEmpty = &validationRegexEmpty return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameEmpty(nameEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameEmpty = &nameEmpty +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIc(validationRegexIc []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexIc = &validationRegexIc return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIc(nameIc []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameIc = &nameIc +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIe(validationRegexIe []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexIe = &validationRegexIe return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIe(nameIe []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameIe = &nameIe +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIew(validationRegexIew []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexIew = &validationRegexIew return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIew(nameIew []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameIew = &nameIew +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIsw(validationRegexIsw []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexIsw = &validationRegexIsw + return r +} + +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexN(validationRegexN []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexN = &validationRegexN return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIsw(nameIsw []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameIsw = &nameIsw +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNic(validationRegexNic []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexNic = &validationRegexNic return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameN(nameN []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameN = &nameN +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNie(validationRegexNie []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexNie = &validationRegexNie return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNic(nameNic []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameNic = &nameNic +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNiew(validationRegexNiew []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexNiew = &validationRegexNiew return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNie(nameNie []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameNie = &nameNie +func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNisw(validationRegexNisw []string) ApiExtrasCustomFieldsListRequest { + r.validationRegexNisw = &validationRegexNisw return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNiew(nameNiew []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameNiew = &nameNiew +func (r ApiExtrasCustomFieldsListRequest) Weight(weight []int32) ApiExtrasCustomFieldsListRequest { + r.weight = &weight return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNisw(nameNisw []string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.nameNisw = &nameNisw +func (r ApiExtrasCustomFieldsListRequest) WeightEmpty(weightEmpty bool) ApiExtrasCustomFieldsListRequest { + r.weightEmpty = &weightEmpty return r } -// The initial index from which to return the results. -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Offset(offset int32) ApiExtrasCustomFieldChoiceSetsListRequest { - r.offset = &offset +func (r ApiExtrasCustomFieldsListRequest) WeightGt(weightGt []int32) ApiExtrasCustomFieldsListRequest { + r.weightGt = &weightGt return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) OrderAlphabetically(orderAlphabetically bool) ApiExtrasCustomFieldChoiceSetsListRequest { - r.orderAlphabetically = &orderAlphabetically +func (r ApiExtrasCustomFieldsListRequest) WeightGte(weightGte []int32) ApiExtrasCustomFieldsListRequest { + r.weightGte = &weightGte return r } -// Which field to use when ordering the results. -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Ordering(ordering string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.ordering = &ordering +func (r ApiExtrasCustomFieldsListRequest) WeightLt(weightLt []int32) ApiExtrasCustomFieldsListRequest { + r.weightLt = &weightLt return r } -// Search -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Q(q string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.q = &q +func (r ApiExtrasCustomFieldsListRequest) WeightLte(weightLte []int32) ApiExtrasCustomFieldsListRequest { + r.weightLte = &weightLte return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldChoiceSetsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiExtrasCustomFieldsListRequest) WeightN(weightN []int32) ApiExtrasCustomFieldsListRequest { + r.weightN = &weightN return r } -func (r ApiExtrasCustomFieldChoiceSetsListRequest) Execute() (*PaginatedCustomFieldChoiceSetList, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsListExecute(r) +func (r ApiExtrasCustomFieldsListRequest) Execute() (*PaginatedCustomFieldList, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldsListExecute(r) } /* -ExtrasCustomFieldChoiceSetsList Method for ExtrasCustomFieldChoiceSetsList +ExtrasCustomFieldsList Method for ExtrasCustomFieldsList -Get a list of custom field choice set objects. +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 ApiExtrasCustomFieldChoiceSetsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsListRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsList(ctx context.Context) ApiExtrasCustomFieldChoiceSetsListRequest { - return ApiExtrasCustomFieldChoiceSetsListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCustomFieldList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/custom-fields/" + + localVarHeaderParams := make(map[string]string) + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.filterLogic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filter_logic", r.filterLogic, "form", "") + } + if r.groupName != nil { + t := *r.groupName + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", t, "form", "multi") + } + } + if r.groupNameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__empty", r.groupNameEmpty, "form", "") + } + if r.groupNameIc != nil { + t := *r.groupNameIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", t, "form", "multi") + } + } + if r.groupNameIe != nil { + t := *r.groupNameIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", t, "form", "multi") + } + } + if r.groupNameIew != nil { + t := *r.groupNameIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", t, "form", "multi") + } + } + if r.groupNameIsw != nil { + t := *r.groupNameIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", t, "form", "multi") + } + } + if r.groupNameN != nil { + t := *r.groupNameN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", t, "form", "multi") + } + } + if r.groupNameNic != nil { + t := *r.groupNameNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", t, "form", "multi") + } + } + if r.groupNameNie != nil { + t := *r.groupNameNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", t, "form", "multi") + } + } + if r.groupNameNiew != nil { + t := *r.groupNameNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", t, "form", "multi") + } + } + if r.groupNameNisw != nil { + t := *r.groupNameNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.isCloneable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_cloneable", r.isCloneable, "form", "") + } + if r.label != nil { + t := *r.label + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "form", "multi") + } + } + if r.labelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "form", "") + } + if r.labelIc != nil { + t := *r.labelIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "form", "multi") + } + } + if r.labelIe != nil { + t := *r.labelIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "form", "multi") + } + } + if r.labelIew != nil { + t := *r.labelIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "form", "multi") + } + } + if r.labelIsw != nil { + t := *r.labelIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "form", "multi") + } + } + if r.labelN != nil { + t := *r.labelN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "form", "multi") + } + } + if r.labelNic != nil { + t := *r.labelNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "form", "multi") + } + } + if r.labelNie != nil { + t := *r.labelNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "form", "multi") + } + } + if r.labelNiew != nil { + t := *r.labelNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "form", "multi") + } + } + if r.labelNisw != nil { + t := *r.labelNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedCustomFieldChoiceSetList -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCustomFieldChoiceSetsListRequest) (*PaginatedCustomFieldChoiceSetList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCustomFieldChoiceSetList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.baseChoices != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "base_choices", r.baseChoices, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") + } } - if r.baseChoicesN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "base_choices__n", r.baseChoicesN, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") + } } - if r.choice != nil { - t := *r.choice + 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, "choice", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "choice", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.created != nil { - t := *r.created + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") + } + if r.objectTypeIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "form", "") + } + if r.objectTypeIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "form", "") + } + if r.objectTypeIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "form", "") + } + if r.objectTypeIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "form", "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") + } + if r.objectTypeNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "form", "") + } + if r.objectTypeNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "form", "") + } + if r.objectTypeNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "form", "") + } + if r.objectTypeNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.relatedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "form", "") + } + if r.relatedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "form", "") + } + if r.relatedObjectTypeId != nil { + t := *r.relatedObjectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id", t, "form", "multi") + } + } + if r.relatedObjectTypeIdN != nil { + t := *r.relatedObjectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id__n", t, "form", "multi") + } + } + if r.required != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "required", r.required, "form", "") + } + if r.searchWeight != nil { + t := *r.searchWeight + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight", t, "form", "multi") + } + } + if r.searchWeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__empty", r.searchWeightEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gt", t, "form", "multi") + } + } + if r.searchWeightGte != nil { + t := *r.searchWeightGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gte", t, "form", "multi") + } + } + if r.searchWeightLt != nil { + t := *r.searchWeightLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lt", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + if r.searchWeightLte != nil { + t := *r.searchWeightLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lte", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.searchWeightN != nil { + t := *r.searchWeightN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__n", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description + 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.typeIc != nil { + t := *r.typeIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.typeIe != nil { + t := *r.typeIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.typeIew != nil { + t := *r.typeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.typeIsw != nil { + t := *r.typeIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.typeN != nil { + t := *r.typeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.typeNic != nil { + t := *r.typeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.typeNie != nil { + t := *r.typeNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.typeNiew != nil { + t := *r.typeNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.typeNisw != nil { + t := *r.typeNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") } } - if r.id != nil { - t := *r.id + if r.uiEditable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ui_editable", r.uiEditable, "form", "") + } + if r.uiVisible != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible", r.uiVisible, "form", "") + } + if r.unique != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unique", r.unique, "form", "") + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.validationMaximum != nil { + t := *r.validationMaximum 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.validationMaximumEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__empty", r.validationMaximumEmpty, "form", "") } - if r.idGt != nil { - t := *r.idGt + if r.validationMaximumGt != nil { + t := *r.validationMaximumGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gt", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.validationMaximumGte != nil { + t := *r.validationMaximumGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gte", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.validationMaximumLt != nil { + t := *r.validationMaximumLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lt", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.validationMaximumLte != nil { + t := *r.validationMaximumLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lte", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.validationMaximumN != nil { + t := *r.validationMaximumN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__n", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.validationMinimum != nil { + t := *r.validationMinimum 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.validationMinimumEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__empty", r.validationMinimumEmpty, "form", "") + } + if r.validationMinimumGt != nil { + t := *r.validationMinimumGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gt", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.validationMinimumGte != nil { + t := *r.validationMinimumGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gte", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.validationMinimumLt != nil { + t := *r.validationMinimumLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__lt", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.validationMinimumLte != nil { + t := *r.validationMinimumLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__lte", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.validationMinimumN != nil { + t := *r.validationMinimumN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__n", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.validationRegex != nil { + t := *r.validationRegex 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + if r.validationRegexEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__empty", r.validationRegexEmpty, "form", "") } - if r.name != nil { - t := *r.name + if r.validationRegexIc != nil { + t := *r.validationRegexIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__ic", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + if r.validationRegexIe != nil { + t := *r.validationRegexIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__ie", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.validationRegexIew != nil { + t := *r.validationRegexIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__iew", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.validationRegexIsw != nil { + t := *r.validationRegexIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__isw", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.validationRegexN != nil { + t := *r.validationRegexN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__n", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.validationRegexNic != nil { + t := *r.validationRegexNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nic", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.validationRegexNie != nil { + t := *r.validationRegexNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nie", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.validationRegexNiew != nil { + t := *r.validationRegexNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__niew", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.validationRegexNisw != nil { + t := *r.validationRegexNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nisw", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.weight != nil { + t := *r.weight 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - 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, "") - } - 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.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") } - 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.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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "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 ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedWritableCustomFieldChoiceSetRequest *PatchedWritableCustomFieldChoiceSetRequest -} - -func (r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) PatchedWritableCustomFieldChoiceSetRequest(patchedWritableCustomFieldChoiceSetRequest PatchedWritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest { - r.patchedWritableCustomFieldChoiceSetRequest = &patchedWritableCustomFieldChoiceSetRequest - return r -} - -func (r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r) -} - -/* -ExtrasCustomFieldChoiceSetsPartialUpdate Method for ExtrasCustomFieldChoiceSetsPartialUpdate - -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 custom field choice set. - @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest { - return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.weightGte != nil { + t := *r.weightGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return CustomFieldChoiceSet -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomFieldChoiceSet - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.weightLt != nil { + t := *r.weightLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") + } + } + if r.weightN != nil { + t := *r.weightN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") + } } - - 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{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -8875,8 +14258,6 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r Api if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedWritableCustomFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8928,50 +14309,55 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r Api return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldChoiceSetsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasCustomFieldsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedWritableCustomFieldRequest *PatchedWritableCustomFieldRequest } -func (r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsRetrieveExecute(r) +func (r ApiExtrasCustomFieldsPartialUpdateRequest) PatchedWritableCustomFieldRequest(patchedWritableCustomFieldRequest PatchedWritableCustomFieldRequest) ApiExtrasCustomFieldsPartialUpdateRequest { + r.patchedWritableCustomFieldRequest = &patchedWritableCustomFieldRequest + return r +} + +func (r ApiExtrasCustomFieldsPartialUpdateRequest) Execute() (*CustomField, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldsPartialUpdateExecute(r) } /* -ExtrasCustomFieldChoiceSetsRetrieve Method for ExtrasCustomFieldChoiceSetsRetrieve +ExtrasCustomFieldsPartialUpdate Method for ExtrasCustomFieldsPartialUpdate -Get a custom field choice set object. +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 choice set. - @return ApiExtrasCustomFieldChoiceSetsRetrieveRequest + @param ctx 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) ExtrasCustomFieldChoiceSetsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsRetrieveRequest { - return ApiExtrasCustomFieldChoiceSetsRetrieveRequest{ +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 CustomFieldChoiceSet -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCustomFieldsPartialUpdateRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomFieldChoiceSet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/" + localVarPath := localBasePath + "/api/extras/custom-fields/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -8979,7 +14365,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtra localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -8995,6 +14381,8 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtra if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedWritableCustomFieldRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9046,67 +14434,57 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtra return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldChoiceSetsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest -} - -func (r ApiExtrasCustomFieldChoiceSetsUpdateRequest) WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest WritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsUpdateRequest { - r.writableCustomFieldChoiceSetRequest = &writableCustomFieldChoiceSetRequest - return r +type ApiExtrasCustomFieldsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasCustomFieldChoiceSetsUpdateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldChoiceSetsUpdateExecute(r) +func (r ApiExtrasCustomFieldsRetrieveRequest) Execute() (*CustomField, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldsRetrieveExecute(r) } /* -ExtrasCustomFieldChoiceSetsUpdate Method for ExtrasCustomFieldChoiceSetsUpdate +ExtrasCustomFieldsRetrieve Method for ExtrasCustomFieldsRetrieve -Put a custom field choice set object. +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 choice set. - @return ApiExtrasCustomFieldChoiceSetsUpdateRequest + @param ctx 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) ExtrasCustomFieldChoiceSetsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsUpdateRequest { - return ApiExtrasCustomFieldChoiceSetsUpdateRequest{ +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 CustomFieldChoiceSet -func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasCustomFieldChoiceSetsUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFieldsRetrieveRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomFieldChoiceSet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/" + localVarPath := localBasePath + "/api/extras/custom-fields/{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{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -9122,8 +14500,6 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasC 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 { @@ -9175,56 +14551,62 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customFieldRequest *[]CustomFieldRequest +type ApiExtrasCustomFieldsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + writableCustomFieldRequest *WritableCustomFieldRequest } -func (r ApiExtrasCustomFieldsBulkDestroyRequest) CustomFieldRequest(customFieldRequest []CustomFieldRequest) ApiExtrasCustomFieldsBulkDestroyRequest { - r.customFieldRequest = &customFieldRequest +func (r ApiExtrasCustomFieldsUpdateRequest) WritableCustomFieldRequest(writableCustomFieldRequest WritableCustomFieldRequest) ApiExtrasCustomFieldsUpdateRequest { + r.writableCustomFieldRequest = &writableCustomFieldRequest return r } -func (r ApiExtrasCustomFieldsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasCustomFieldsBulkDestroyExecute(r) +func (r ApiExtrasCustomFieldsUpdateRequest) Execute() (*CustomField, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldsUpdateExecute(r) } /* -ExtrasCustomFieldsBulkDestroy Method for ExtrasCustomFieldsBulkDestroy +ExtrasCustomFieldsUpdate Method for ExtrasCustomFieldsUpdate -Delete a list of custom field objects. +Put a custom field object. - @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(). + @param id A unique integer value identifying this custom field. + @return ApiExtrasCustomFieldsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldsBulkDestroyRequest { - return ApiExtrasCustomFieldsBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsUpdateRequest { + return ApiExtrasCustomFieldsUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCustomFieldsBulkDestroyRequest) (*http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFieldsUpdateRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/" + localVarPath := localBasePath + "/api/extras/custom-fields/{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.customFieldRequest == nil { - return nil, reportError("customFieldRequest is required and must be specified") + if r.writableCustomFieldRequest == nil { + return localVarReturnValue, nil, reportError("writableCustomFieldRequest is required and must be specified") } // to determine the Content-Type header @@ -9237,7 +14619,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCusto } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -9245,7 +14627,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCusto localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customFieldRequest + localVarPostBody = r.writableCustomFieldRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9262,19 +14644,19 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCusto } 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 { @@ -9282,65 +14664,71 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCusto body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiExtrasCustomFieldsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customFieldRequest *[]CustomFieldRequest +type ApiExtrasCustomLinksBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + customLinkRequest *[]CustomLinkRequest } -func (r ApiExtrasCustomFieldsBulkPartialUpdateRequest) CustomFieldRequest(customFieldRequest []CustomFieldRequest) ApiExtrasCustomFieldsBulkPartialUpdateRequest { - r.customFieldRequest = &customFieldRequest +func (r ApiExtrasCustomLinksBulkDestroyRequest) CustomLinkRequest(customLinkRequest []CustomLinkRequest) ApiExtrasCustomLinksBulkDestroyRequest { + r.customLinkRequest = &customLinkRequest return r } -func (r ApiExtrasCustomFieldsBulkPartialUpdateRequest) Execute() ([]CustomField, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldsBulkPartialUpdateExecute(r) +func (r ApiExtrasCustomLinksBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomLinksBulkDestroyExecute(r) } /* -ExtrasCustomFieldsBulkPartialUpdate Method for ExtrasCustomFieldsBulkPartialUpdate +ExtrasCustomLinksBulkDestroy Method for ExtrasCustomLinksBulkDestroy -Patch a list of custom field objects. +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 ApiExtrasCustomFieldsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkPartialUpdateRequest { - return ApiExtrasCustomFieldsBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroy(ctx context.Context) ApiExtrasCustomLinksBulkDestroyRequest { + return ApiExtrasCustomLinksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomField -func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtrasCustomFieldsBulkPartialUpdateRequest) ([]CustomField, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustomLinksBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomField + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/" + localVarPath := localBasePath + "/api/extras/custom-links/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.customFieldRequest == nil { - return localVarReturnValue, nil, reportError("customFieldRequest is required and must be specified") + if r.customLinkRequest == nil { + return nil, reportError("customLinkRequest is required and must be specified") } // to determine the Content-Type header @@ -9353,7 +14741,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtra } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -9361,7 +14749,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtra localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customFieldRequest + localVarPostBody = r.customLinkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9378,19 +14766,19 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtra } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -9398,74 +14786,64 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtra 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 localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiExtrasCustomFieldsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customFieldRequest *[]CustomFieldRequest +type ApiExtrasCustomLinksBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + customLinkRequest *[]CustomLinkRequest } -func (r ApiExtrasCustomFieldsBulkUpdateRequest) CustomFieldRequest(customFieldRequest []CustomFieldRequest) ApiExtrasCustomFieldsBulkUpdateRequest { - r.customFieldRequest = &customFieldRequest +func (r ApiExtrasCustomLinksBulkPartialUpdateRequest) CustomLinkRequest(customLinkRequest []CustomLinkRequest) ApiExtrasCustomLinksBulkPartialUpdateRequest { + r.customLinkRequest = &customLinkRequest return r } -func (r ApiExtrasCustomFieldsBulkUpdateRequest) Execute() ([]CustomField, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldsBulkUpdateExecute(r) +func (r ApiExtrasCustomLinksBulkPartialUpdateRequest) Execute() ([]CustomLink, *http.Response, error) { + return r.ApiService.ExtrasCustomLinksBulkPartialUpdateExecute(r) } /* -ExtrasCustomFieldsBulkUpdate Method for ExtrasCustomFieldsBulkUpdate +ExtrasCustomLinksBulkPartialUpdate Method for ExtrasCustomLinksBulkPartialUpdate -Put a list of custom field objects. +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 ApiExtrasCustomFieldsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkUpdateRequest { - return ApiExtrasCustomFieldsBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdate(ctx context.Context) ApiExtrasCustomLinksBulkPartialUpdateRequest { + return ApiExtrasCustomLinksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomField -func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustomFieldsBulkUpdateRequest) ([]CustomField, *http.Response, error) { +// @return []CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtrasCustomLinksBulkPartialUpdateRequest) ([]CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomField + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/" + localVarPath := localBasePath + "/api/extras/custom-links/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.customFieldRequest == nil { - return localVarReturnValue, nil, reportError("customFieldRequest is required and must be specified") + if r.customLinkRequest == nil { + return localVarReturnValue, nil, reportError("customLinkRequest is required and must be specified") } // to determine the Content-Type header @@ -9486,7 +14864,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustom localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customFieldRequest + localVarPostBody = r.customLinkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9538,59 +14916,58 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustom return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - writableCustomFieldRequest *WritableCustomFieldRequest +type ApiExtrasCustomLinksBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + customLinkRequest *[]CustomLinkRequest } -func (r ApiExtrasCustomFieldsCreateRequest) WritableCustomFieldRequest(writableCustomFieldRequest WritableCustomFieldRequest) ApiExtrasCustomFieldsCreateRequest { - r.writableCustomFieldRequest = &writableCustomFieldRequest +func (r ApiExtrasCustomLinksBulkUpdateRequest) CustomLinkRequest(customLinkRequest []CustomLinkRequest) ApiExtrasCustomLinksBulkUpdateRequest { + r.customLinkRequest = &customLinkRequest return r } -func (r ApiExtrasCustomFieldsCreateRequest) Execute() (*CustomField, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldsCreateExecute(r) +func (r ApiExtrasCustomLinksBulkUpdateRequest) Execute() ([]CustomLink, *http.Response, error) { + return r.ApiService.ExtrasCustomLinksBulkUpdateExecute(r) } /* -ExtrasCustomFieldsCreate Method for ExtrasCustomFieldsCreate +ExtrasCustomLinksBulkUpdate Method for ExtrasCustomLinksBulkUpdate -Post a list of custom field objects. +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 ApiExtrasCustomFieldsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsCreate(ctx context.Context) ApiExtrasCustomFieldsCreateRequest { - return ApiExtrasCustomFieldsCreateRequest{ +func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdate(ctx context.Context) ApiExtrasCustomLinksBulkUpdateRequest { + return ApiExtrasCustomLinksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasAPIService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFieldsCreateRequest) (*CustomField, *http.Response, error) { +// @return []CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomLinksBulkUpdateRequest) ([]CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/" + localVarPath := localBasePath + "/api/extras/custom-links/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableCustomFieldRequest == nil { - return localVarReturnValue, nil, reportError("writableCustomFieldRequest is required and must be specified") + if r.customLinkRequest == nil { + return localVarReturnValue, nil, reportError("customLinkRequest is required and must be specified") } // to determine the Content-Type header @@ -9611,7 +14988,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFiel localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableCustomFieldRequest + localVarPostBody = r.customLinkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9663,55 +15040,62 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFiel return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasCustomLinksCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + customLinkRequest *CustomLinkRequest } -func (r ApiExtrasCustomFieldsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasCustomFieldsDestroyExecute(r) +func (r ApiExtrasCustomLinksCreateRequest) CustomLinkRequest(customLinkRequest CustomLinkRequest) ApiExtrasCustomLinksCreateRequest { + r.customLinkRequest = &customLinkRequest + return r +} + +func (r ApiExtrasCustomLinksCreateRequest) Execute() (*CustomLink, *http.Response, error) { + return r.ApiService.ExtrasCustomLinksCreateExecute(r) } /* -ExtrasCustomFieldsDestroy Method for ExtrasCustomFieldsDestroy +ExtrasCustomLinksCreate Method for ExtrasCustomLinksCreate -Delete a custom field object. +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(). - @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(). + @return ApiExtrasCustomLinksCreateRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldsDestroyRequest { - return ApiExtrasCustomFieldsDestroyRequest{ +func (a *ExtrasAPIService) ExtrasCustomLinksCreate(ctx context.Context) ApiExtrasCustomLinksCreateRequest { + return ApiExtrasCustomLinksCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFieldsDestroyRequest) (*http.Response, error) { +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinksCreateRequest) (*CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksCreate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/custom-links/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.customLinkRequest == nil { + return localVarReturnValue, nil, reportError("customLinkRequest 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) @@ -9720,13 +15104,15 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFie } // 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.customLinkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9743,989 +15129,761 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFie } 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 { newErr := &GenericOpenAPIError{ body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiExtrasCustomFieldsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - choiceSet *[]string - choiceSetN *[]string - choiceSetId *[]*int32 - choiceSetIdN *[]*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 - filterLogic *ExtrasCustomFieldsListFilterLogicParameter - filterLogicN *ExtrasCustomFieldsListFilterLogicParameter - 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 - 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 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - relatedObjectType *string - relatedObjectTypeN *string - relatedObjectTypeId *[]int32 - relatedObjectTypeIdN *[]int32 - required *bool - searchWeight *[]int32 - searchWeightEmpty *bool - searchWeightGt *[]int32 - searchWeightGte *[]int32 - searchWeightLt *[]int32 - searchWeightLte *[]int32 - searchWeightN *[]int32 - type_ *[]string - typeN *[]string - uiEditable *ExtrasCustomFieldsListUiEditableParameter - uiEditableN *ExtrasCustomFieldsListUiEditableParameter - uiVisible *ExtrasCustomFieldsListUiVisibleParameter - uiVisibleN *ExtrasCustomFieldsListUiVisibleParameter - updatedByRequest *string - validationMaximum *[]int32 - validationMaximumEmpty *bool - validationMaximumGt *[]int32 - validationMaximumGte *[]int32 - validationMaximumLt *[]int32 - validationMaximumLte *[]int32 - validationMaximumN *[]int32 - validationMinimum *[]int32 - validationMinimumEmpty *bool - validationMinimumGt *[]int32 - validationMinimumGte *[]int32 - validationMinimumLt *[]int32 - validationMinimumLte *[]int32 - validationMinimumN *[]int32 - validationRegex *[]string - validationRegexEmpty *bool - validationRegexIc *[]string - validationRegexIe *[]string - validationRegexIew *[]string - validationRegexIsw *[]string - validationRegexN *[]string - validationRegexNic *[]string - validationRegexNie *[]string - validationRegexNiew *[]string - validationRegexNisw *[]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) Created(created []time.Time) ApiExtrasCustomFieldsListRequest { - r.created = &created - return r -} - -func (r ApiExtrasCustomFieldsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomFieldsListRequest { - r.createdEmpty = &createdEmpty - return r -} - -func (r ApiExtrasCustomFieldsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomFieldsListRequest { - r.createdGt = &createdGt - return r -} - -func (r ApiExtrasCustomFieldsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomFieldsListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiExtrasCustomFieldsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomFieldsListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiExtrasCustomFieldsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomFieldsListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiExtrasCustomFieldsListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomFieldsListRequest { - r.createdN = &createdN - return r -} - -func (r ApiExtrasCustomFieldsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomFieldsListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiExtrasCustomFieldsListRequest) Description(description []string) ApiExtrasCustomFieldsListRequest { - r.description = &description - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasCustomFieldsListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasCustomFieldsListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasCustomFieldsListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasCustomFieldsListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasCustomFieldsListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionN(descriptionN []string) ApiExtrasCustomFieldsListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasCustomFieldsListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasCustomFieldsListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasCustomFieldsListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiExtrasCustomFieldsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasCustomFieldsListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -// Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact -func (r ApiExtrasCustomFieldsListRequest) FilterLogic(filterLogic ExtrasCustomFieldsListFilterLogicParameter) ApiExtrasCustomFieldsListRequest { - r.filterLogic = &filterLogic - return r -} - -// Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact -func (r ApiExtrasCustomFieldsListRequest) FilterLogicN(filterLogicN ExtrasCustomFieldsListFilterLogicParameter) ApiExtrasCustomFieldsListRequest { - r.filterLogicN = &filterLogicN - return r -} - -func (r ApiExtrasCustomFieldsListRequest) GroupName(groupName []string) ApiExtrasCustomFieldsListRequest { - r.groupName = &groupName - return r -} - -func (r ApiExtrasCustomFieldsListRequest) GroupNameEmpty(groupNameEmpty bool) ApiExtrasCustomFieldsListRequest { - r.groupNameEmpty = &groupNameEmpty - return r -} - -func (r ApiExtrasCustomFieldsListRequest) GroupNameIc(groupNameIc []string) ApiExtrasCustomFieldsListRequest { - r.groupNameIc = &groupNameIc - return r -} - -func (r ApiExtrasCustomFieldsListRequest) GroupNameIe(groupNameIe []string) ApiExtrasCustomFieldsListRequest { - r.groupNameIe = &groupNameIe - return r -} - -func (r ApiExtrasCustomFieldsListRequest) GroupNameIew(groupNameIew []string) ApiExtrasCustomFieldsListRequest { - r.groupNameIew = &groupNameIew - return r -} + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasCustomFieldsListRequest) GroupNameIsw(groupNameIsw []string) ApiExtrasCustomFieldsListRequest { - r.groupNameIsw = &groupNameIsw - 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 ApiExtrasCustomFieldsListRequest) GroupNameN(groupNameN []string) ApiExtrasCustomFieldsListRequest { - r.groupNameN = &groupNameN - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasCustomFieldsListRequest) GroupNameNic(groupNameNic []string) ApiExtrasCustomFieldsListRequest { - r.groupNameNic = &groupNameNic - return r +type ApiExtrasCustomLinksDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasCustomFieldsListRequest) GroupNameNie(groupNameNie []string) ApiExtrasCustomFieldsListRequest { - r.groupNameNie = &groupNameNie - return r +func (r ApiExtrasCustomLinksDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomLinksDestroyExecute(r) } -func (r ApiExtrasCustomFieldsListRequest) GroupNameNiew(groupNameNiew []string) ApiExtrasCustomFieldsListRequest { - r.groupNameNiew = &groupNameNiew - return r -} +/* +ExtrasCustomLinksDestroy Method for ExtrasCustomLinksDestroy -func (r ApiExtrasCustomFieldsListRequest) GroupNameNisw(groupNameNisw []string) ApiExtrasCustomFieldsListRequest { - r.groupNameNisw = &groupNameNisw - return r -} +Delete a custom link object. -func (r ApiExtrasCustomFieldsListRequest) Id(id []int32) ApiExtrasCustomFieldsListRequest { - r.id = &id - 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 custom link. + @return ApiExtrasCustomLinksDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasCustomLinksDestroy(ctx context.Context, id int32) ApiExtrasCustomLinksDestroyRequest { + return ApiExtrasCustomLinksDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasCustomFieldsListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomFieldsListRequest { - r.idEmpty = &idEmpty - return r -} +// Execute executes the request +func (a *ExtrasAPIService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLinksDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiExtrasCustomFieldsListRequest) IdGt(idGt []int32) ApiExtrasCustomFieldsListRequest { - r.idGt = &idGt - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasCustomFieldsListRequest) IdGte(idGte []int32) ApiExtrasCustomFieldsListRequest { - r.idGte = &idGte - return r -} + localVarPath := localBasePath + "/api/extras/custom-links/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasCustomFieldsListRequest) IdLt(idLt []int32) ApiExtrasCustomFieldsListRequest { - r.idLt = &idLt - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasCustomFieldsListRequest) IdLte(idLte []int32) ApiExtrasCustomFieldsListRequest { - r.idLte = &idLte - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasCustomFieldsListRequest) IdN(idN []int32) ApiExtrasCustomFieldsListRequest { - r.idN = &idN - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasCustomFieldsListRequest) IsCloneable(isCloneable bool) ApiExtrasCustomFieldsListRequest { - r.isCloneable = &isCloneable - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -func (r ApiExtrasCustomFieldsListRequest) Label(label []string) ApiExtrasCustomFieldsListRequest { - r.label = &label - 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 nil, err + } -func (r ApiExtrasCustomFieldsListRequest) LabelEmpty(labelEmpty bool) ApiExtrasCustomFieldsListRequest { - r.labelEmpty = &labelEmpty - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasCustomFieldsListRequest) LabelIc(labelIc []string) ApiExtrasCustomFieldsListRequest { - r.labelIc = &labelIc - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasCustomFieldsListRequest) LabelIe(labelIe []string) ApiExtrasCustomFieldsListRequest { - r.labelIe = &labelIe - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -func (r ApiExtrasCustomFieldsListRequest) LabelIew(labelIew []string) ApiExtrasCustomFieldsListRequest { - r.labelIew = &labelIew - return r + return localVarHTTPResponse, nil } -func (r ApiExtrasCustomFieldsListRequest) LabelIsw(labelIsw []string) ApiExtrasCustomFieldsListRequest { - r.labelIsw = &labelIsw +type ApiExtrasCustomLinksListRequest struct { + ctx context.Context + ApiService ExtrasAPI + buttonClass *ExtrasCustomLinksListButtonClassParameter + 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 + 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 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + 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 + modifiedByRequest *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 + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + updatedByRequest *string + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 +} + +// The class of the first link in a group will be used for the dropdown button * `default` - 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 +func (r ApiExtrasCustomLinksListRequest) ButtonClass(buttonClass ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { + r.buttonClass = &buttonClass return r } -func (r ApiExtrasCustomFieldsListRequest) LabelN(labelN []string) ApiExtrasCustomFieldsListRequest { - r.labelN = &labelN +func (r ApiExtrasCustomLinksListRequest) Created(created []time.Time) ApiExtrasCustomLinksListRequest { + r.created = &created return r } -func (r ApiExtrasCustomFieldsListRequest) LabelNic(labelNic []string) ApiExtrasCustomFieldsListRequest { - r.labelNic = &labelNic +func (r ApiExtrasCustomLinksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomLinksListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiExtrasCustomFieldsListRequest) LabelNie(labelNie []string) ApiExtrasCustomFieldsListRequest { - r.labelNie = &labelNie +func (r ApiExtrasCustomLinksListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomLinksListRequest { + r.createdGt = &createdGt return r } -func (r ApiExtrasCustomFieldsListRequest) LabelNiew(labelNiew []string) ApiExtrasCustomFieldsListRequest { - r.labelNiew = &labelNiew +func (r ApiExtrasCustomLinksListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomLinksListRequest { + r.createdGte = &createdGte return r } -func (r ApiExtrasCustomFieldsListRequest) LabelNisw(labelNisw []string) ApiExtrasCustomFieldsListRequest { - r.labelNisw = &labelNisw +func (r ApiExtrasCustomLinksListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomLinksListRequest { + r.createdLt = &createdLt return r } -func (r ApiExtrasCustomFieldsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomFieldsListRequest { - r.lastUpdated = &lastUpdated +func (r ApiExtrasCustomLinksListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomLinksListRequest { + r.createdLte = &createdLte return r } -func (r ApiExtrasCustomFieldsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomFieldsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiExtrasCustomLinksListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomLinksListRequest { + r.createdN = &createdN return r } -func (r ApiExtrasCustomFieldsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomFieldsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiExtrasCustomLinksListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomLinksListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiExtrasCustomFieldsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomFieldsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiExtrasCustomLinksListRequest) Enabled(enabled bool) ApiExtrasCustomLinksListRequest { + r.enabled = &enabled return r } -func (r ApiExtrasCustomFieldsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomFieldsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiExtrasCustomLinksListRequest) GroupName(groupName []string) ApiExtrasCustomLinksListRequest { + r.groupName = &groupName return r } -func (r ApiExtrasCustomFieldsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomFieldsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiExtrasCustomLinksListRequest) GroupNameEmpty(groupNameEmpty bool) ApiExtrasCustomLinksListRequest { + r.groupNameEmpty = &groupNameEmpty return r } -func (r ApiExtrasCustomFieldsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomFieldsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiExtrasCustomLinksListRequest) GroupNameIc(groupNameIc []string) ApiExtrasCustomLinksListRequest { + r.groupNameIc = &groupNameIc return r } -// Number of results to return per page. -func (r ApiExtrasCustomFieldsListRequest) Limit(limit int32) ApiExtrasCustomFieldsListRequest { - r.limit = &limit +func (r ApiExtrasCustomLinksListRequest) GroupNameIe(groupNameIe []string) ApiExtrasCustomLinksListRequest { + r.groupNameIe = &groupNameIe return r } -func (r ApiExtrasCustomFieldsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomFieldsListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiExtrasCustomLinksListRequest) GroupNameIew(groupNameIew []string) ApiExtrasCustomLinksListRequest { + r.groupNameIew = &groupNameIew return r } -func (r ApiExtrasCustomFieldsListRequest) Name(name []string) ApiExtrasCustomFieldsListRequest { - r.name = &name +func (r ApiExtrasCustomLinksListRequest) GroupNameIsw(groupNameIsw []string) ApiExtrasCustomLinksListRequest { + r.groupNameIsw = &groupNameIsw return r } -func (r ApiExtrasCustomFieldsListRequest) NameEmpty(nameEmpty bool) ApiExtrasCustomFieldsListRequest { - r.nameEmpty = &nameEmpty +func (r ApiExtrasCustomLinksListRequest) GroupNameN(groupNameN []string) ApiExtrasCustomLinksListRequest { + r.groupNameN = &groupNameN return r } -func (r ApiExtrasCustomFieldsListRequest) NameIc(nameIc []string) ApiExtrasCustomFieldsListRequest { - r.nameIc = &nameIc +func (r ApiExtrasCustomLinksListRequest) GroupNameNic(groupNameNic []string) ApiExtrasCustomLinksListRequest { + r.groupNameNic = &groupNameNic return r } -func (r ApiExtrasCustomFieldsListRequest) NameIe(nameIe []string) ApiExtrasCustomFieldsListRequest { - r.nameIe = &nameIe +func (r ApiExtrasCustomLinksListRequest) GroupNameNie(groupNameNie []string) ApiExtrasCustomLinksListRequest { + r.groupNameNie = &groupNameNie return r } -func (r ApiExtrasCustomFieldsListRequest) NameIew(nameIew []string) ApiExtrasCustomFieldsListRequest { - r.nameIew = &nameIew +func (r ApiExtrasCustomLinksListRequest) GroupNameNiew(groupNameNiew []string) ApiExtrasCustomLinksListRequest { + r.groupNameNiew = &groupNameNiew return r } -func (r ApiExtrasCustomFieldsListRequest) NameIsw(nameIsw []string) ApiExtrasCustomFieldsListRequest { - r.nameIsw = &nameIsw +func (r ApiExtrasCustomLinksListRequest) GroupNameNisw(groupNameNisw []string) ApiExtrasCustomLinksListRequest { + r.groupNameNisw = &groupNameNisw return r } -func (r ApiExtrasCustomFieldsListRequest) NameN(nameN []string) ApiExtrasCustomFieldsListRequest { - r.nameN = &nameN +func (r ApiExtrasCustomLinksListRequest) Id(id []int32) ApiExtrasCustomLinksListRequest { + r.id = &id return r } -func (r ApiExtrasCustomFieldsListRequest) NameNic(nameNic []string) ApiExtrasCustomFieldsListRequest { - r.nameNic = &nameNic +func (r ApiExtrasCustomLinksListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomLinksListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiExtrasCustomFieldsListRequest) NameNie(nameNie []string) ApiExtrasCustomFieldsListRequest { - r.nameNie = &nameNie +func (r ApiExtrasCustomLinksListRequest) IdGt(idGt []int32) ApiExtrasCustomLinksListRequest { + r.idGt = &idGt return r } -func (r ApiExtrasCustomFieldsListRequest) NameNiew(nameNiew []string) ApiExtrasCustomFieldsListRequest { - r.nameNiew = &nameNiew +func (r ApiExtrasCustomLinksListRequest) IdGte(idGte []int32) ApiExtrasCustomLinksListRequest { + r.idGte = &idGte return r } -func (r ApiExtrasCustomFieldsListRequest) NameNisw(nameNisw []string) ApiExtrasCustomFieldsListRequest { - r.nameNisw = &nameNisw +func (r ApiExtrasCustomLinksListRequest) IdLt(idLt []int32) ApiExtrasCustomLinksListRequest { + r.idLt = &idLt return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectType(objectType string) ApiExtrasCustomFieldsListRequest { - r.objectType = &objectType +func (r ApiExtrasCustomLinksListRequest) IdLte(idLte []int32) ApiExtrasCustomLinksListRequest { + r.idLte = &idLte return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasCustomFieldsListRequest { - r.objectTypeIc = &objectTypeIc +func (r ApiExtrasCustomLinksListRequest) IdN(idN []int32) ApiExtrasCustomLinksListRequest { + r.idN = &idN return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasCustomFieldsListRequest { - r.objectTypeIe = &objectTypeIe +func (r ApiExtrasCustomLinksListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomLinksListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasCustomFieldsListRequest { - r.objectTypeIew = &objectTypeIew +func (r ApiExtrasCustomLinksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomLinksListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasCustomFieldsListRequest { - r.objectTypeIsw = &objectTypeIsw +func (r ApiExtrasCustomLinksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomLinksListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasCustomFieldsListRequest { - r.objectTypeN = &objectTypeN +func (r ApiExtrasCustomLinksListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomLinksListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasCustomFieldsListRequest { - r.objectTypeNic = &objectTypeNic +func (r ApiExtrasCustomLinksListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomLinksListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasCustomFieldsListRequest { - r.objectTypeNie = &objectTypeNie +func (r ApiExtrasCustomLinksListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomLinksListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasCustomFieldsListRequest { - r.objectTypeNiew = &objectTypeNiew +func (r ApiExtrasCustomLinksListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomLinksListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasCustomFieldsListRequest { - r.objectTypeNisw = &objectTypeNisw +// Number of results to return per page. +func (r ApiExtrasCustomLinksListRequest) Limit(limit int32) ApiExtrasCustomLinksListRequest { + r.limit = &limit return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasCustomFieldsListRequest { - r.objectTypeId = &objectTypeId +func (r ApiExtrasCustomLinksListRequest) LinkText(linkText string) ApiExtrasCustomLinksListRequest { + r.linkText = &linkText return r } -func (r ApiExtrasCustomFieldsListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasCustomFieldsListRequest { - r.objectTypeIdN = &objectTypeIdN +func (r ApiExtrasCustomLinksListRequest) LinkTextIc(linkTextIc string) ApiExtrasCustomLinksListRequest { + r.linkTextIc = &linkTextIc return r } -// The initial index from which to return the results. -func (r ApiExtrasCustomFieldsListRequest) Offset(offset int32) ApiExtrasCustomFieldsListRequest { - r.offset = &offset +func (r ApiExtrasCustomLinksListRequest) LinkTextIe(linkTextIe string) ApiExtrasCustomLinksListRequest { + r.linkTextIe = &linkTextIe return r } -// Which field to use when ordering the results. -func (r ApiExtrasCustomFieldsListRequest) Ordering(ordering string) ApiExtrasCustomFieldsListRequest { - r.ordering = &ordering +func (r ApiExtrasCustomLinksListRequest) LinkTextIew(linkTextIew string) ApiExtrasCustomLinksListRequest { + r.linkTextIew = &linkTextIew return r } -// Search -func (r ApiExtrasCustomFieldsListRequest) Q(q string) ApiExtrasCustomFieldsListRequest { - r.q = &q +func (r ApiExtrasCustomLinksListRequest) LinkTextIsw(linkTextIsw string) ApiExtrasCustomLinksListRequest { + r.linkTextIsw = &linkTextIsw return r } -func (r ApiExtrasCustomFieldsListRequest) RelatedObjectType(relatedObjectType string) ApiExtrasCustomFieldsListRequest { - r.relatedObjectType = &relatedObjectType +func (r ApiExtrasCustomLinksListRequest) LinkTextN(linkTextN string) ApiExtrasCustomLinksListRequest { + r.linkTextN = &linkTextN return r } -func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeN(relatedObjectTypeN string) ApiExtrasCustomFieldsListRequest { - r.relatedObjectTypeN = &relatedObjectTypeN +func (r ApiExtrasCustomLinksListRequest) LinkTextNic(linkTextNic string) ApiExtrasCustomLinksListRequest { + r.linkTextNic = &linkTextNic return r } -func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeId(relatedObjectTypeId []int32) ApiExtrasCustomFieldsListRequest { - r.relatedObjectTypeId = &relatedObjectTypeId +func (r ApiExtrasCustomLinksListRequest) LinkTextNie(linkTextNie string) ApiExtrasCustomLinksListRequest { + r.linkTextNie = &linkTextNie return r } -func (r ApiExtrasCustomFieldsListRequest) RelatedObjectTypeIdN(relatedObjectTypeIdN []int32) ApiExtrasCustomFieldsListRequest { - r.relatedObjectTypeIdN = &relatedObjectTypeIdN +func (r ApiExtrasCustomLinksListRequest) LinkTextNiew(linkTextNiew string) ApiExtrasCustomLinksListRequest { + r.linkTextNiew = &linkTextNiew return r } -func (r ApiExtrasCustomFieldsListRequest) Required(required bool) ApiExtrasCustomFieldsListRequest { - r.required = &required +func (r ApiExtrasCustomLinksListRequest) LinkTextNisw(linkTextNisw string) ApiExtrasCustomLinksListRequest { + r.linkTextNisw = &linkTextNisw return r } -func (r ApiExtrasCustomFieldsListRequest) SearchWeight(searchWeight []int32) ApiExtrasCustomFieldsListRequest { - r.searchWeight = &searchWeight +func (r ApiExtrasCustomLinksListRequest) LinkUrl(linkUrl string) ApiExtrasCustomLinksListRequest { + r.linkUrl = &linkUrl return r } -func (r ApiExtrasCustomFieldsListRequest) SearchWeightEmpty(searchWeightEmpty bool) ApiExtrasCustomFieldsListRequest { - r.searchWeightEmpty = &searchWeightEmpty +func (r ApiExtrasCustomLinksListRequest) LinkUrlIc(linkUrlIc string) ApiExtrasCustomLinksListRequest { + r.linkUrlIc = &linkUrlIc return r } -func (r ApiExtrasCustomFieldsListRequest) SearchWeightGt(searchWeightGt []int32) ApiExtrasCustomFieldsListRequest { - r.searchWeightGt = &searchWeightGt +func (r ApiExtrasCustomLinksListRequest) LinkUrlIe(linkUrlIe string) ApiExtrasCustomLinksListRequest { + r.linkUrlIe = &linkUrlIe return r } -func (r ApiExtrasCustomFieldsListRequest) SearchWeightGte(searchWeightGte []int32) ApiExtrasCustomFieldsListRequest { - r.searchWeightGte = &searchWeightGte +func (r ApiExtrasCustomLinksListRequest) LinkUrlIew(linkUrlIew string) ApiExtrasCustomLinksListRequest { + r.linkUrlIew = &linkUrlIew return r } -func (r ApiExtrasCustomFieldsListRequest) SearchWeightLt(searchWeightLt []int32) ApiExtrasCustomFieldsListRequest { - r.searchWeightLt = &searchWeightLt +func (r ApiExtrasCustomLinksListRequest) LinkUrlIsw(linkUrlIsw string) ApiExtrasCustomLinksListRequest { + r.linkUrlIsw = &linkUrlIsw return r } -func (r ApiExtrasCustomFieldsListRequest) SearchWeightLte(searchWeightLte []int32) ApiExtrasCustomFieldsListRequest { - r.searchWeightLte = &searchWeightLte +func (r ApiExtrasCustomLinksListRequest) LinkUrlN(linkUrlN string) ApiExtrasCustomLinksListRequest { + r.linkUrlN = &linkUrlN return r } -func (r ApiExtrasCustomFieldsListRequest) SearchWeightN(searchWeightN []int32) ApiExtrasCustomFieldsListRequest { - r.searchWeightN = &searchWeightN +func (r ApiExtrasCustomLinksListRequest) LinkUrlNic(linkUrlNic string) ApiExtrasCustomLinksListRequest { + r.linkUrlNic = &linkUrlNic return r } -// The type of data this custom field holds -func (r ApiExtrasCustomFieldsListRequest) Type_(type_ []string) ApiExtrasCustomFieldsListRequest { - r.type_ = &type_ +func (r ApiExtrasCustomLinksListRequest) LinkUrlNie(linkUrlNie string) ApiExtrasCustomLinksListRequest { + r.linkUrlNie = &linkUrlNie return r } -// The type of data this custom field holds -func (r ApiExtrasCustomFieldsListRequest) TypeN(typeN []string) ApiExtrasCustomFieldsListRequest { - r.typeN = &typeN +func (r ApiExtrasCustomLinksListRequest) LinkUrlNiew(linkUrlNiew string) ApiExtrasCustomLinksListRequest { + r.linkUrlNiew = &linkUrlNiew return r } -// Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden -func (r ApiExtrasCustomFieldsListRequest) UiEditable(uiEditable ExtrasCustomFieldsListUiEditableParameter) ApiExtrasCustomFieldsListRequest { - r.uiEditable = &uiEditable +func (r ApiExtrasCustomLinksListRequest) LinkUrlNisw(linkUrlNisw string) ApiExtrasCustomLinksListRequest { + r.linkUrlNisw = &linkUrlNisw return r } -// Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden -func (r ApiExtrasCustomFieldsListRequest) UiEditableN(uiEditableN ExtrasCustomFieldsListUiEditableParameter) ApiExtrasCustomFieldsListRequest { - r.uiEditableN = &uiEditableN +func (r ApiExtrasCustomLinksListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomLinksListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -// Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden -func (r ApiExtrasCustomFieldsListRequest) UiVisible(uiVisible ExtrasCustomFieldsListUiVisibleParameter) ApiExtrasCustomFieldsListRequest { - r.uiVisible = &uiVisible +func (r ApiExtrasCustomLinksListRequest) Name(name []string) ApiExtrasCustomLinksListRequest { + r.name = &name return r } -// Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden -func (r ApiExtrasCustomFieldsListRequest) UiVisibleN(uiVisibleN ExtrasCustomFieldsListUiVisibleParameter) ApiExtrasCustomFieldsListRequest { - r.uiVisibleN = &uiVisibleN +func (r ApiExtrasCustomLinksListRequest) NameEmpty(nameEmpty bool) ApiExtrasCustomLinksListRequest { + r.nameEmpty = &nameEmpty return r } -func (r ApiExtrasCustomFieldsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiExtrasCustomLinksListRequest) NameIc(nameIc []string) ApiExtrasCustomLinksListRequest { + r.nameIc = &nameIc return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMaximum(validationMaximum []int32) ApiExtrasCustomFieldsListRequest { - r.validationMaximum = &validationMaximum +func (r ApiExtrasCustomLinksListRequest) NameIe(nameIe []string) ApiExtrasCustomLinksListRequest { + r.nameIe = &nameIe return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumEmpty(validationMaximumEmpty bool) ApiExtrasCustomFieldsListRequest { - r.validationMaximumEmpty = &validationMaximumEmpty +func (r ApiExtrasCustomLinksListRequest) NameIew(nameIew []string) ApiExtrasCustomLinksListRequest { + r.nameIew = &nameIew return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumGt(validationMaximumGt []int32) ApiExtrasCustomFieldsListRequest { - r.validationMaximumGt = &validationMaximumGt +func (r ApiExtrasCustomLinksListRequest) NameIsw(nameIsw []string) ApiExtrasCustomLinksListRequest { + r.nameIsw = &nameIsw return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumGte(validationMaximumGte []int32) ApiExtrasCustomFieldsListRequest { - r.validationMaximumGte = &validationMaximumGte +func (r ApiExtrasCustomLinksListRequest) NameN(nameN []string) ApiExtrasCustomLinksListRequest { + r.nameN = &nameN return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumLt(validationMaximumLt []int32) ApiExtrasCustomFieldsListRequest { - r.validationMaximumLt = &validationMaximumLt +func (r ApiExtrasCustomLinksListRequest) NameNic(nameNic []string) ApiExtrasCustomLinksListRequest { + r.nameNic = &nameNic return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumLte(validationMaximumLte []int32) ApiExtrasCustomFieldsListRequest { - r.validationMaximumLte = &validationMaximumLte +func (r ApiExtrasCustomLinksListRequest) NameNie(nameNie []string) ApiExtrasCustomLinksListRequest { + r.nameNie = &nameNie return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMaximumN(validationMaximumN []int32) ApiExtrasCustomFieldsListRequest { - r.validationMaximumN = &validationMaximumN +func (r ApiExtrasCustomLinksListRequest) NameNiew(nameNiew []string) ApiExtrasCustomLinksListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMinimum(validationMinimum []int32) ApiExtrasCustomFieldsListRequest { - r.validationMinimum = &validationMinimum +func (r ApiExtrasCustomLinksListRequest) NameNisw(nameNisw []string) ApiExtrasCustomLinksListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumEmpty(validationMinimumEmpty bool) ApiExtrasCustomFieldsListRequest { - r.validationMinimumEmpty = &validationMinimumEmpty +func (r ApiExtrasCustomLinksListRequest) NewWindow(newWindow bool) ApiExtrasCustomLinksListRequest { + r.newWindow = &newWindow return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumGt(validationMinimumGt []int32) ApiExtrasCustomFieldsListRequest { - r.validationMinimumGt = &validationMinimumGt +func (r ApiExtrasCustomLinksListRequest) ObjectType(objectType string) ApiExtrasCustomLinksListRequest { + r.objectType = &objectType return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumGte(validationMinimumGte []int32) ApiExtrasCustomFieldsListRequest { - r.validationMinimumGte = &validationMinimumGte +func (r ApiExtrasCustomLinksListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasCustomLinksListRequest { + r.objectTypeIc = &objectTypeIc return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumLt(validationMinimumLt []int32) ApiExtrasCustomFieldsListRequest { - r.validationMinimumLt = &validationMinimumLt +func (r ApiExtrasCustomLinksListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasCustomLinksListRequest { + r.objectTypeIe = &objectTypeIe return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumLte(validationMinimumLte []int32) ApiExtrasCustomFieldsListRequest { - r.validationMinimumLte = &validationMinimumLte +func (r ApiExtrasCustomLinksListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasCustomLinksListRequest { + r.objectTypeIew = &objectTypeIew return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationMinimumN(validationMinimumN []int32) ApiExtrasCustomFieldsListRequest { - r.validationMinimumN = &validationMinimumN +func (r ApiExtrasCustomLinksListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasCustomLinksListRequest { + r.objectTypeIsw = &objectTypeIsw return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegex(validationRegex []string) ApiExtrasCustomFieldsListRequest { - r.validationRegex = &validationRegex +func (r ApiExtrasCustomLinksListRequest) ObjectTypeN(objectTypeN string) ApiExtrasCustomLinksListRequest { + r.objectTypeN = &objectTypeN return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexEmpty(validationRegexEmpty bool) ApiExtrasCustomFieldsListRequest { - r.validationRegexEmpty = &validationRegexEmpty +func (r ApiExtrasCustomLinksListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasCustomLinksListRequest { + r.objectTypeNic = &objectTypeNic return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIc(validationRegexIc []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexIc = &validationRegexIc +func (r ApiExtrasCustomLinksListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasCustomLinksListRequest { + r.objectTypeNie = &objectTypeNie return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIe(validationRegexIe []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexIe = &validationRegexIe +func (r ApiExtrasCustomLinksListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasCustomLinksListRequest { + r.objectTypeNiew = &objectTypeNiew return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIew(validationRegexIew []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexIew = &validationRegexIew +func (r ApiExtrasCustomLinksListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasCustomLinksListRequest { + r.objectTypeNisw = &objectTypeNisw return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexIsw(validationRegexIsw []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexIsw = &validationRegexIsw +func (r ApiExtrasCustomLinksListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasCustomLinksListRequest { + r.objectTypeId = &objectTypeId return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexN(validationRegexN []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexN = &validationRegexN +func (r ApiExtrasCustomLinksListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasCustomLinksListRequest { + r.objectTypeIdN = &objectTypeIdN return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNic(validationRegexNic []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexNic = &validationRegexNic +// The initial index from which to return the results. +func (r ApiExtrasCustomLinksListRequest) Offset(offset int32) ApiExtrasCustomLinksListRequest { + r.offset = &offset return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNie(validationRegexNie []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexNie = &validationRegexNie +// Which field to use when ordering the results. +func (r ApiExtrasCustomLinksListRequest) Ordering(ordering string) ApiExtrasCustomLinksListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNiew(validationRegexNiew []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexNiew = &validationRegexNiew +// Search +func (r ApiExtrasCustomLinksListRequest) Q(q string) ApiExtrasCustomLinksListRequest { + r.q = &q return r } -func (r ApiExtrasCustomFieldsListRequest) ValidationRegexNisw(validationRegexNisw []string) ApiExtrasCustomFieldsListRequest { - r.validationRegexNisw = &validationRegexNisw +func (r ApiExtrasCustomLinksListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomLinksListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiExtrasCustomFieldsListRequest) Weight(weight []int32) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomLinksListRequest) Weight(weight []int32) ApiExtrasCustomLinksListRequest { r.weight = &weight return r } -func (r ApiExtrasCustomFieldsListRequest) WeightEmpty(weightEmpty bool) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomLinksListRequest) WeightEmpty(weightEmpty bool) ApiExtrasCustomLinksListRequest { r.weightEmpty = &weightEmpty return r } -func (r ApiExtrasCustomFieldsListRequest) WeightGt(weightGt []int32) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomLinksListRequest) WeightGt(weightGt []int32) ApiExtrasCustomLinksListRequest { r.weightGt = &weightGt return r } -func (r ApiExtrasCustomFieldsListRequest) WeightGte(weightGte []int32) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomLinksListRequest) WeightGte(weightGte []int32) ApiExtrasCustomLinksListRequest { r.weightGte = &weightGte return r } -func (r ApiExtrasCustomFieldsListRequest) WeightLt(weightLt []int32) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomLinksListRequest) WeightLt(weightLt []int32) ApiExtrasCustomLinksListRequest { r.weightLt = &weightLt return r } -func (r ApiExtrasCustomFieldsListRequest) WeightLte(weightLte []int32) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomLinksListRequest) WeightLte(weightLte []int32) ApiExtrasCustomLinksListRequest { r.weightLte = &weightLte return r } -func (r ApiExtrasCustomFieldsListRequest) WeightN(weightN []int32) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomLinksListRequest) WeightN(weightN []int32) ApiExtrasCustomLinksListRequest { r.weightN = &weightN return r } -func (r ApiExtrasCustomFieldsListRequest) Execute() (*PaginatedCustomFieldList, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldsListExecute(r) +func (r ApiExtrasCustomLinksListRequest) Execute() (*PaginatedCustomLinkList, *http.Response, error) { + return r.ApiService.ExtrasCustomLinksListExecute(r) } /* -ExtrasCustomFieldsList Method for ExtrasCustomFieldsList +ExtrasCustomLinksList Method for ExtrasCustomLinksList -Get a list of custom field objects. +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 ApiExtrasCustomFieldsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksListRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsList(ctx context.Context) ApiExtrasCustomFieldsListRequest { - return ApiExtrasCustomFieldsListRequest{ +func (a *ExtrasAPIService) ExtrasCustomLinksList(ctx context.Context) ApiExtrasCustomLinksListRequest { + return ApiExtrasCustomLinksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCustomFieldList -func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFieldsListRequest) (*PaginatedCustomFieldList, *http.Response, error) { +// @return PaginatedCustomLinkList +func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksListRequest) (*PaginatedCustomLinkList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCustomFieldList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCustomLinkList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/" + localVarPath := localBasePath + "/api/extras/custom-links/" localVarHeaderParams := make(map[string]string) 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.buttonClass != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "button_class", r.buttonClass, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -10733,10 +15891,10 @@ 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -10744,10 +15902,10 @@ 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -10755,10 +15913,10 @@ 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -10766,10 +15924,10 @@ 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -10777,10 +15935,10 @@ 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -10788,430 +15946,198 @@ 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - 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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.filterLogic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter_logic", r.filterLogic, "") - } - if r.filterLogicN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter_logic__n", r.filterLogicN, "") + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") } if r.groupName != nil { t := *r.groupName 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", t, "form", "multi") } } if r.groupNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__empty", r.groupNameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__empty", r.groupNameEmpty, "form", "") } if r.groupNameIc != nil { - t := *r.groupNameIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", t, "multi") - } - } - if r.groupNameIe != nil { - t := *r.groupNameIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", t, "multi") - } - } - if r.groupNameIew != nil { - t := *r.groupNameIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", t, "multi") - } - } - if r.groupNameIsw != nil { - t := *r.groupNameIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", t, "multi") - } - } - if r.groupNameN != nil { - t := *r.groupNameN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", t, "multi") - } - } - if r.groupNameNic != nil { - t := *r.groupNameNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", t, "multi") - } - } - if r.groupNameNie != nil { - t := *r.groupNameNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", t, "multi") - } - } - if r.groupNameNiew != nil { - t := *r.groupNameNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", t, "multi") - } - } - if r.groupNameNisw != nil { - t := *r.groupNameNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__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 + t := *r.groupNameIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.groupNameIe != nil { + t := *r.groupNameIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.groupNameIew != nil { + t := *r.groupNameIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.groupNameIsw != nil { + t := *r.groupNameIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.groupNameN != nil { + t := *r.groupNameN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", t, "form", "multi") } } - if r.isCloneable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_cloneable", r.isCloneable, "") - } - if r.label != nil { - t := *r.label + if r.groupNameNic != nil { + t := *r.groupNameNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", t, "form", "multi") } } - if r.labelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__empty", r.labelEmpty, "") - } - if r.labelIc != nil { - t := *r.labelIc + if r.groupNameNie != nil { + t := *r.groupNameNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", t, "form", "multi") } } - if r.labelIe != nil { - t := *r.labelIe + if r.groupNameNiew != nil { + t := *r.groupNameNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", t, "form", "multi") } } - if r.labelIew != nil { - t := *r.labelIew + if r.groupNameNisw != nil { + t := *r.groupNameNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", t, "form", "multi") } } - if r.labelIsw != nil { - t := *r.labelIsw + 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, "label__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.labelN != nil { - t := *r.labelN + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "label__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.labelNic != nil { - t := *r.labelNic + 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, "label__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.labelNie != nil { - t := *r.labelNie + 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, "label__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.labelNiew != nil { - t := *r.labelNiew + 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, "label__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.labelNisw != nil { - t := *r.labelNisw + 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, "label__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -11219,10 +16145,10 @@ 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -11230,10 +16156,10 @@ 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -11241,10 +16167,10 @@ 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -11252,10 +16178,10 @@ 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -11263,10 +16189,10 @@ 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -11274,10 +16200,10 @@ 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -11285,41 +16211,101 @@ 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.linkText != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text", r.linkText, "form", "") + } + if r.linkTextIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__ic", r.linkTextIc, "form", "") + } + if r.linkTextIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__ie", r.linkTextIe, "form", "") + } + if r.linkTextIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__iew", r.linkTextIew, "form", "") + } + if r.linkTextIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__isw", r.linkTextIsw, "form", "") + } + if r.linkTextN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__n", r.linkTextN, "form", "") + } + if r.linkTextNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__nic", r.linkTextNic, "form", "") + } + if r.linkTextNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__nie", r.linkTextNie, "form", "") + } + if r.linkTextNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__niew", r.linkTextNiew, "form", "") + } + if r.linkTextNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__nisw", r.linkTextNisw, "form", "") + } + if r.linkUrl != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url", r.linkUrl, "form", "") + } + if r.linkUrlIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__ic", r.linkUrlIc, "form", "") + } + if r.linkUrlIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__ie", r.linkUrlIe, "form", "") + } + if r.linkUrlIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__iew", r.linkUrlIew, "form", "") + } + if r.linkUrlIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__isw", r.linkUrlIsw, "form", "") + } + if r.linkUrlN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__n", r.linkUrlN, "form", "") + } + if r.linkUrlNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__nic", r.linkUrlNic, "form", "") + } + if r.linkUrlNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__nie", r.linkUrlNie, "form", "") + } + if r.linkUrlNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__niew", r.linkUrlNiew, "form", "") + } + if r.linkUrlNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__nisw", r.linkUrlNisw, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -11327,10 +16313,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -11338,10 +16324,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -11349,10 +16335,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -11360,10 +16346,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -11371,10 +16357,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -11382,10 +16368,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -11393,10 +16379,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -11404,51 +16390,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } + if r.newWindow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "new_window", r.newWindow, "form", "") + } if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") } if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "form", "") } if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "form", "") } if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "form", "") } if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "form", "") } if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") } if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "form", "") } if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "form", "") } if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "form", "") } if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "multi") } } if r.objectTypeIdN != nil { @@ -11456,478 +16445,574 @@ 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, "object_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.relatedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") - } - if r.relatedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.relatedObjectTypeId != nil { - t := *r.relatedObjectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id", t, "multi") - } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - if r.relatedObjectTypeIdN != nil { - t := *r.relatedObjectTypeIdN + if r.weight != nil { + t := *r.weight if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") } } - if r.required != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "required", r.required, "") + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") } - if r.searchWeight != nil { - t := *r.searchWeight + 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, "search_weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") } } - if r.searchWeightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__empty", r.searchWeightEmpty, "") - } - if r.searchWeightGt != nil { - t := *r.searchWeightGt + if r.weightGte != nil { + t := *r.weightGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") } } - if r.searchWeightGte != nil { - t := *r.searchWeightGte + if r.weightLt != nil { + t := *r.weightLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") } } - if r.searchWeightLt != nil { - t := *r.searchWeightLt + if r.weightLte != nil { + t := *r.weightLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") } } - if r.searchWeightLte != nil { - t := *r.searchWeightLte + if r.weightN != nil { + t := *r.weightN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") } } - if r.searchWeightN != nil { - t := *r.searchWeightN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__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.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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.typeN != nil { - t := *r.typeN - 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).Interface(), "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, "type__n", t, "multi") } } - if r.uiEditable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ui_editable", r.uiEditable, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.uiEditableN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ui_editable__n", r.uiEditableN, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.uiVisible != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible", r.uiVisible, "") + + 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.uiVisibleN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible__n", r.uiVisibleN, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + + 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 ApiExtrasCustomLinksPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedCustomLinkRequest *PatchedCustomLinkRequest +} + +func (r ApiExtrasCustomLinksPartialUpdateRequest) PatchedCustomLinkRequest(patchedCustomLinkRequest PatchedCustomLinkRequest) ApiExtrasCustomLinksPartialUpdateRequest { + r.patchedCustomLinkRequest = &patchedCustomLinkRequest + return r +} + +func (r ApiExtrasCustomLinksPartialUpdateRequest) Execute() (*CustomLink, *http.Response, error) { + return r.ApiService.ExtrasCustomLinksPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksPartialUpdateRequest { + return ApiExtrasCustomLinksPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCustomLinksPartialUpdateRequest) (*CustomLink, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.validationMaximum != nil { - t := *r.validationMaximum - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/custom-links/{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 } - if r.validationMaximumEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__empty", r.validationMaximumEmpty, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.validationMaximumGt != nil { - t := *r.validationMaximumGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gt", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.patchedCustomLinkRequest + 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, "validation_maximum__gt", t, "multi") } } - if r.validationMaximumGte != nil { - t := *r.validationMaximumGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__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.validationMaximumLt != nil { - t := *r.validationMaximumLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.validationMaximumLte != nil { - t := *r.validationMaximumLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__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.validationMaximumN != nil { - t := *r.validationMaximumN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_maximum__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.validationMinimum != nil { - t := *r.validationMinimum - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum", 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.validationMinimumEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__empty", r.validationMinimumEmpty, "") - } - if r.validationMinimumGt != nil { - t := *r.validationMinimumGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gt", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasCustomLinksRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 +} + +func (r ApiExtrasCustomLinksRetrieveRequest) Execute() (*CustomLink, *http.Response, error) { + return r.ApiService.ExtrasCustomLinksRetrieveExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasCustomLinksRetrieve(ctx context.Context, id int32) ApiExtrasCustomLinksRetrieveRequest { + return ApiExtrasCustomLinksRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.validationMinimumGte != nil { - t := *r.validationMinimumGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__gte", t, "multi") - } +} + +// Execute executes the request +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLinksRetrieveRequest) (*CustomLink, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.validationMinimumLt != nil { - t := *r.validationMinimumLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__lt", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/custom-links/{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.validationMinimumLte != nil { - t := *r.validationMinimumLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__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.validationMinimumN != nil { - t := *r.validationMinimumN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_minimum__n", s.Index(i).Interface(), "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, "validation_minimum__n", t, "multi") } } - if r.validationRegex != nil { - t := *r.validationRegex - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex", 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.validationRegexEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__empty", r.validationRegexEmpty, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.validationRegexIc != nil { - t := *r.validationRegexIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__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.validationRegexIe != nil { - t := *r.validationRegexIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__ie", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.validationRegexIew != nil { - t := *r.validationRegexIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__iew", 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.validationRegexIsw != nil { - t := *r.validationRegexIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__isw", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasCustomLinksUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + customLinkRequest *CustomLinkRequest +} + +func (r ApiExtrasCustomLinksUpdateRequest) CustomLinkRequest(customLinkRequest CustomLinkRequest) ApiExtrasCustomLinksUpdateRequest { + r.customLinkRequest = &customLinkRequest + return r +} + +func (r ApiExtrasCustomLinksUpdateRequest) Execute() (*CustomLink, *http.Response, error) { + return r.ApiService.ExtrasCustomLinksUpdateExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasCustomLinksUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksUpdateRequest { + return ApiExtrasCustomLinksUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.validationRegexN != nil { - t := *r.validationRegexN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__n", t, "multi") - } +} + +// Execute executes the request +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinksUpdateRequest) (*CustomLink, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.validationRegexNic != nil { - t := *r.validationRegexNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nic", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/custom-links/{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.customLinkRequest == nil { + return localVarReturnValue, nil, reportError("customLinkRequest is required and must be specified") } - if r.validationRegexNie != nil { - t := *r.validationRegexNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nie", 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.validationRegexNiew != nil { - t := *r.validationRegexNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__niew", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.validationRegexNisw != nil { - t := *r.validationRegexNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "validation_regex__nisw", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.customLinkRequest + 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, "validation_regex__nisw", t, "multi") } } - if r.weight != nil { - t := *r.weight - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", 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.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", 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.weightGte != nil { - t := *r.weightGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.weightLt != nil { - t := *r.weightLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", 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.weightLte != nil { - t := *r.weightLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasDashboardDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI +} + +func (r ApiExtrasDashboardDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasDashboardDestroyExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasDashboardDestroy(ctx context.Context) ApiExtrasDashboardDestroyRequest { + return ApiExtrasDashboardDestroyRequest{ + ApiService: a, + ctx: ctx, } - if r.weightN != nil { - t := *r.weightN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } + + localVarPath := localBasePath + "/api/extras/dashboard/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11938,7 +17023,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -11961,19 +17046,19 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -11981,72 +17066,58 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields 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 localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiExtrasCustomFieldsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedWritableCustomFieldRequest *PatchedWritableCustomFieldRequest +type ApiExtrasDashboardPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + patchedDashboardRequest *PatchedDashboardRequest } -func (r ApiExtrasCustomFieldsPartialUpdateRequest) PatchedWritableCustomFieldRequest(patchedWritableCustomFieldRequest PatchedWritableCustomFieldRequest) ApiExtrasCustomFieldsPartialUpdateRequest { - r.patchedWritableCustomFieldRequest = &patchedWritableCustomFieldRequest +func (r ApiExtrasDashboardPartialUpdateRequest) PatchedDashboardRequest(patchedDashboardRequest PatchedDashboardRequest) ApiExtrasDashboardPartialUpdateRequest { + r.patchedDashboardRequest = &patchedDashboardRequest return r } -func (r ApiExtrasCustomFieldsPartialUpdateRequest) Execute() (*CustomField, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldsPartialUpdateExecute(r) +func (r ApiExtrasDashboardPartialUpdateRequest) Execute() (*Dashboard, *http.Response, error) { + return r.ApiService.ExtrasDashboardPartialUpdateExecute(r) } /* -ExtrasCustomFieldsPartialUpdate Method for ExtrasCustomFieldsPartialUpdate +ExtrasDashboardPartialUpdate Method for ExtrasDashboardPartialUpdate -Patch a custom field object. +Patch a list of dashboard 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 custom field. - @return ApiExtrasCustomFieldsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsPartialUpdateRequest { - return ApiExtrasCustomFieldsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasDashboardPartialUpdate(ctx context.Context) ApiExtrasDashboardPartialUpdateRequest { + return ApiExtrasDashboardPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCustomFieldsPartialUpdateRequest) (*CustomField, *http.Response, error) { +// @return Dashboard +func (a *ExtrasAPIService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashboardPartialUpdateRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Dashboard ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/dashboard/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12070,7 +17141,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCus localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableCustomFieldRequest + localVarPostBody = r.patchedDashboardRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12122,51 +17193,46 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCus return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasDashboardRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI } -func (r ApiExtrasCustomFieldsRetrieveRequest) Execute() (*CustomField, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldsRetrieveExecute(r) +func (r ApiExtrasDashboardRetrieveRequest) Execute() (*Dashboard, *http.Response, error) { + return r.ApiService.ExtrasDashboardRetrieveExecute(r) } /* -ExtrasCustomFieldsRetrieve Method for ExtrasCustomFieldsRetrieve +ExtrasDashboardRetrieve Method for ExtrasDashboardRetrieve -Get a custom field object. +Get a list of dashboard 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 custom field. - @return ApiExtrasCustomFieldsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldsRetrieveRequest { - return ApiExtrasCustomFieldsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasDashboardRetrieve(ctx context.Context) ApiExtrasDashboardRetrieveRequest { + return ApiExtrasDashboardRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFieldsRetrieveRequest) (*CustomField, *http.Response, error) { +// @return Dashboard +func (a *ExtrasAPIService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRetrieveRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Dashboard ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/dashboard/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12240,64 +17306,56 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomFieldsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - writableCustomFieldRequest *WritableCustomFieldRequest +type ApiExtrasDashboardUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + dashboardRequest *DashboardRequest } -func (r ApiExtrasCustomFieldsUpdateRequest) WritableCustomFieldRequest(writableCustomFieldRequest WritableCustomFieldRequest) ApiExtrasCustomFieldsUpdateRequest { - r.writableCustomFieldRequest = &writableCustomFieldRequest +func (r ApiExtrasDashboardUpdateRequest) DashboardRequest(dashboardRequest DashboardRequest) ApiExtrasDashboardUpdateRequest { + r.dashboardRequest = &dashboardRequest return r } -func (r ApiExtrasCustomFieldsUpdateRequest) Execute() (*CustomField, *http.Response, error) { - return r.ApiService.ExtrasCustomFieldsUpdateExecute(r) +func (r ApiExtrasDashboardUpdateRequest) Execute() (*Dashboard, *http.Response, error) { + return r.ApiService.ExtrasDashboardUpdateExecute(r) } /* -ExtrasCustomFieldsUpdate Method for ExtrasCustomFieldsUpdate +ExtrasDashboardUpdate Method for ExtrasDashboardUpdate -Put a custom field object. +Put a list of dashboard 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 custom field. - @return ApiExtrasCustomFieldsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardUpdateRequest */ -func (a *ExtrasAPIService) ExtrasCustomFieldsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsUpdateRequest { - return ApiExtrasCustomFieldsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasDashboardUpdate(ctx context.Context) ApiExtrasDashboardUpdateRequest { + return ApiExtrasDashboardUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasAPIService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFieldsUpdateRequest) (*CustomField, *http.Response, error) { +// @return Dashboard +func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpdateRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Dashboard ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-fields/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/dashboard/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableCustomFieldRequest == nil { - return localVarReturnValue, nil, reportError("writableCustomFieldRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -12317,7 +17375,7 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFiel localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableCustomFieldRequest + localVarPostBody = r.dashboardRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12369,56 +17427,56 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFiel return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomLinksBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customLinkRequest *[]CustomLinkRequest +type ApiExtrasEventRulesBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + eventRuleRequest *[]EventRuleRequest } -func (r ApiExtrasCustomLinksBulkDestroyRequest) CustomLinkRequest(customLinkRequest []CustomLinkRequest) ApiExtrasCustomLinksBulkDestroyRequest { - r.customLinkRequest = &customLinkRequest +func (r ApiExtrasEventRulesBulkDestroyRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkDestroyRequest { + r.eventRuleRequest = &eventRuleRequest return r } -func (r ApiExtrasCustomLinksBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasCustomLinksBulkDestroyExecute(r) +func (r ApiExtrasEventRulesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasEventRulesBulkDestroyExecute(r) } /* -ExtrasCustomLinksBulkDestroy Method for ExtrasCustomLinksBulkDestroy +ExtrasEventRulesBulkDestroy Method for ExtrasEventRulesBulkDestroy -Delete a list of custom link objects. +Delete a list of event rule 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 ApiExtrasEventRulesBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroy(ctx context.Context) ApiExtrasCustomLinksBulkDestroyRequest { - return ApiExtrasCustomLinksBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroy(ctx context.Context) ApiExtrasEventRulesBulkDestroyRequest { + return ApiExtrasEventRulesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustomLinksBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRulesBulkDestroyRequest) (*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.ExtrasEventRulesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-links/" + localVarPath := localBasePath + "/api/extras/event-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.customLinkRequest == nil { - return nil, reportError("customLinkRequest is required and must be specified") + if r.eventRuleRequest == nil { + return nil, reportError("eventRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -12439,7 +17497,7 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustom localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customLinkRequest + localVarPostBody = r.eventRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12482,59 +17540,58 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustom return localVarHTTPResponse, nil } -type ApiExtrasCustomLinksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customLinkRequest *[]CustomLinkRequest +type ApiExtrasEventRulesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + eventRuleRequest *[]EventRuleRequest } -func (r ApiExtrasCustomLinksBulkPartialUpdateRequest) CustomLinkRequest(customLinkRequest []CustomLinkRequest) ApiExtrasCustomLinksBulkPartialUpdateRequest { - r.customLinkRequest = &customLinkRequest +func (r ApiExtrasEventRulesBulkPartialUpdateRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkPartialUpdateRequest { + r.eventRuleRequest = &eventRuleRequest return r } -func (r ApiExtrasCustomLinksBulkPartialUpdateRequest) Execute() ([]CustomLink, *http.Response, error) { - return r.ApiService.ExtrasCustomLinksBulkPartialUpdateExecute(r) +func (r ApiExtrasEventRulesBulkPartialUpdateRequest) Execute() ([]EventRule, *http.Response, error) { + return r.ApiService.ExtrasEventRulesBulkPartialUpdateExecute(r) } /* -ExtrasCustomLinksBulkPartialUpdate Method for ExtrasCustomLinksBulkPartialUpdate +ExtrasEventRulesBulkPartialUpdate Method for ExtrasEventRulesBulkPartialUpdate -Patch a list of custom link objects. +Patch a list of event rule 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 ApiExtrasEventRulesBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdate(ctx context.Context) ApiExtrasCustomLinksBulkPartialUpdateRequest { - return ApiExtrasCustomLinksBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdate(ctx context.Context) ApiExtrasEventRulesBulkPartialUpdateRequest { + return ApiExtrasEventRulesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomLink -func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtrasCustomLinksBulkPartialUpdateRequest) ([]CustomLink, *http.Response, error) { +// @return []EventRule +func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasEventRulesBulkPartialUpdateRequest) ([]EventRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomLink + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []EventRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-links/" + localVarPath := localBasePath + "/api/extras/event-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.customLinkRequest == nil { - return localVarReturnValue, nil, reportError("customLinkRequest is required and must be specified") + if r.eventRuleRequest == nil { + return localVarReturnValue, nil, reportError("eventRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -12555,7 +17612,7 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtras localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customLinkRequest + localVarPostBody = r.eventRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12607,59 +17664,58 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtras return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomLinksBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customLinkRequest *[]CustomLinkRequest +type ApiExtrasEventRulesBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + eventRuleRequest *[]EventRuleRequest } -func (r ApiExtrasCustomLinksBulkUpdateRequest) CustomLinkRequest(customLinkRequest []CustomLinkRequest) ApiExtrasCustomLinksBulkUpdateRequest { - r.customLinkRequest = &customLinkRequest +func (r ApiExtrasEventRulesBulkUpdateRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkUpdateRequest { + r.eventRuleRequest = &eventRuleRequest return r } -func (r ApiExtrasCustomLinksBulkUpdateRequest) Execute() ([]CustomLink, *http.Response, error) { - return r.ApiService.ExtrasCustomLinksBulkUpdateExecute(r) +func (r ApiExtrasEventRulesBulkUpdateRequest) Execute() ([]EventRule, *http.Response, error) { + return r.ApiService.ExtrasEventRulesBulkUpdateExecute(r) } /* -ExtrasCustomLinksBulkUpdate Method for ExtrasCustomLinksBulkUpdate +ExtrasEventRulesBulkUpdate Method for ExtrasEventRulesBulkUpdate -Put a list of custom link objects. +Put a list of event rule 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 ApiExtrasEventRulesBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdate(ctx context.Context) ApiExtrasCustomLinksBulkUpdateRequest { - return ApiExtrasCustomLinksBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdate(ctx context.Context) ApiExtrasEventRulesBulkUpdateRequest { + return ApiExtrasEventRulesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomLink -func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomLinksBulkUpdateRequest) ([]CustomLink, *http.Response, error) { +// @return []EventRule +func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRulesBulkUpdateRequest) ([]EventRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomLink + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []EventRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-links/" + localVarPath := localBasePath + "/api/extras/event-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.customLinkRequest == nil { - return localVarReturnValue, nil, reportError("customLinkRequest is required and must be specified") + if r.eventRuleRequest == nil { + return localVarReturnValue, nil, reportError("eventRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -12680,7 +17736,7 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomL localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customLinkRequest + localVarPostBody = r.eventRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12732,59 +17788,58 @@ func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomL return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomLinksCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - customLinkRequest *CustomLinkRequest +type ApiExtrasEventRulesCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + writableEventRuleRequest *WritableEventRuleRequest } -func (r ApiExtrasCustomLinksCreateRequest) CustomLinkRequest(customLinkRequest CustomLinkRequest) ApiExtrasCustomLinksCreateRequest { - r.customLinkRequest = &customLinkRequest +func (r ApiExtrasEventRulesCreateRequest) WritableEventRuleRequest(writableEventRuleRequest WritableEventRuleRequest) ApiExtrasEventRulesCreateRequest { + r.writableEventRuleRequest = &writableEventRuleRequest return r } -func (r ApiExtrasCustomLinksCreateRequest) Execute() (*CustomLink, *http.Response, error) { - return r.ApiService.ExtrasCustomLinksCreateExecute(r) +func (r ApiExtrasEventRulesCreateRequest) Execute() (*EventRule, *http.Response, error) { + return r.ApiService.ExtrasEventRulesCreateExecute(r) } /* -ExtrasCustomLinksCreate Method for ExtrasCustomLinksCreate +ExtrasEventRulesCreate Method for ExtrasEventRulesCreate -Post a list of custom link objects. +Post a list of event rule 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 ApiExtrasEventRulesCreateRequest */ -func (a *ExtrasAPIService) ExtrasCustomLinksCreate(ctx context.Context) ApiExtrasCustomLinksCreateRequest { - return ApiExtrasCustomLinksCreateRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesCreate(ctx context.Context) ApiExtrasEventRulesCreateRequest { + return ApiExtrasEventRulesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CustomLink -func (a *ExtrasAPIService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinksCreateRequest) (*CustomLink, *http.Response, error) { +// @return EventRule +func (a *ExtrasAPIService) ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCreateRequest) (*EventRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-links/" + localVarPath := localBasePath + "/api/extras/event-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.customLinkRequest == nil { - return localVarReturnValue, nil, reportError("customLinkRequest is required and must be specified") + if r.writableEventRuleRequest == nil { + return localVarReturnValue, nil, reportError("writableEventRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -12805,7 +17860,7 @@ func (a *ExtrasAPIService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinks localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.customLinkRequest + localVarPostBody = r.writableEventRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -12857,47 +17912,47 @@ func (a *ExtrasAPIService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinks return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasCustomLinksDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasEventRulesDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasCustomLinksDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasCustomLinksDestroyExecute(r) +func (r ApiExtrasEventRulesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasEventRulesDestroyExecute(r) } /* -ExtrasCustomLinksDestroy Method for ExtrasCustomLinksDestroy +ExtrasEventRulesDestroy Method for ExtrasEventRulesDestroy -Delete a custom link object. +Delete a event rule object. - @param ctx 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 event rule. + @return ApiExtrasEventRulesDestroyRequest */ -func (a *ExtrasAPIService) ExtrasCustomLinksDestroy(ctx context.Context, id int32) ApiExtrasCustomLinksDestroyRequest { - return ApiExtrasCustomLinksDestroyRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesDestroy(ctx context.Context, id int32) ApiExtrasEventRulesDestroyRequest { + return ApiExtrasEventRulesDestroyRequest{ 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) ExtrasEventRulesDestroyExecute(r ApiExtrasEventRulesDestroyRequest) (*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.ExtrasEventRulesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-links/{id}/" + localVarPath := localBasePath + "/api/extras/event-rules/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -12963,1652 +18018,1327 @@ func (a *ExtrasAPIService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLink return localVarHTTPResponse, nil } -type ApiExtrasCustomLinksListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - buttonClass *ExtrasCustomLinksListButtonClassParameter - buttonClassN *ExtrasCustomLinksListButtonClassParameter - 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 - 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 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - 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 +type ApiExtrasEventRulesListRequest struct { + ctx context.Context + ApiService ExtrasAPI + actionObjectId *[]int32 + actionObjectIdEmpty *[]int32 + actionObjectIdGt *[]int32 + actionObjectIdGte *[]int32 + actionObjectIdLt *[]int32 + actionObjectIdLte *[]int32 + actionObjectIdN *[]int32 + actionObjectType *string + actionObjectTypeN *string + actionType *[]string + actionTypeEmpty *bool + actionTypeIc *[]string + actionTypeIe *[]string + actionTypeIew *[]string + actionTypeIsw *[]string + actionTypeN *[]string + actionTypeNic *[]string + actionTypeNie *[]string + actionTypeNiew *[]string + actionTypeNisw *[]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 + enabled *bool + eventType *[]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 - newWindow *bool - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - updatedByRequest *string - weight *[]int32 - weightEmpty *bool - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 -} - -// 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 -func (r ApiExtrasCustomLinksListRequest) ButtonClass(buttonClass ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { - r.buttonClass = &buttonClass - return r + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + tag *[]string + tagN *[]string + updatedByRequest *string } -// 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 -func (r ApiExtrasCustomLinksListRequest) ButtonClassN(buttonClassN ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { - r.buttonClassN = &buttonClassN +func (r ApiExtrasEventRulesListRequest) ActionObjectId(actionObjectId []int32) ApiExtrasEventRulesListRequest { + r.actionObjectId = &actionObjectId return r } -func (r ApiExtrasCustomLinksListRequest) Created(created []time.Time) ApiExtrasCustomLinksListRequest { - r.created = &created +func (r ApiExtrasEventRulesListRequest) ActionObjectIdEmpty(actionObjectIdEmpty []int32) ApiExtrasEventRulesListRequest { + r.actionObjectIdEmpty = &actionObjectIdEmpty return r } -func (r ApiExtrasCustomLinksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasCustomLinksListRequest { - r.createdEmpty = &createdEmpty +func (r ApiExtrasEventRulesListRequest) ActionObjectIdGt(actionObjectIdGt []int32) ApiExtrasEventRulesListRequest { + r.actionObjectIdGt = &actionObjectIdGt return r } -func (r ApiExtrasCustomLinksListRequest) CreatedGt(createdGt []time.Time) ApiExtrasCustomLinksListRequest { - r.createdGt = &createdGt +func (r ApiExtrasEventRulesListRequest) ActionObjectIdGte(actionObjectIdGte []int32) ApiExtrasEventRulesListRequest { + r.actionObjectIdGte = &actionObjectIdGte return r } -func (r ApiExtrasCustomLinksListRequest) CreatedGte(createdGte []time.Time) ApiExtrasCustomLinksListRequest { - r.createdGte = &createdGte +func (r ApiExtrasEventRulesListRequest) ActionObjectIdLt(actionObjectIdLt []int32) ApiExtrasEventRulesListRequest { + r.actionObjectIdLt = &actionObjectIdLt return r } -func (r ApiExtrasCustomLinksListRequest) CreatedLt(createdLt []time.Time) ApiExtrasCustomLinksListRequest { - r.createdLt = &createdLt +func (r ApiExtrasEventRulesListRequest) ActionObjectIdLte(actionObjectIdLte []int32) ApiExtrasEventRulesListRequest { + r.actionObjectIdLte = &actionObjectIdLte return r } -func (r ApiExtrasCustomLinksListRequest) CreatedLte(createdLte []time.Time) ApiExtrasCustomLinksListRequest { - r.createdLte = &createdLte +func (r ApiExtrasEventRulesListRequest) ActionObjectIdN(actionObjectIdN []int32) ApiExtrasEventRulesListRequest { + r.actionObjectIdN = &actionObjectIdN return r } -func (r ApiExtrasCustomLinksListRequest) CreatedN(createdN []time.Time) ApiExtrasCustomLinksListRequest { - r.createdN = &createdN +func (r ApiExtrasEventRulesListRequest) ActionObjectType(actionObjectType string) ApiExtrasEventRulesListRequest { + r.actionObjectType = &actionObjectType return r } -func (r ApiExtrasCustomLinksListRequest) CreatedByRequest(createdByRequest string) ApiExtrasCustomLinksListRequest { - r.createdByRequest = &createdByRequest +func (r ApiExtrasEventRulesListRequest) ActionObjectTypeN(actionObjectTypeN string) ApiExtrasEventRulesListRequest { + r.actionObjectTypeN = &actionObjectTypeN return r } -func (r ApiExtrasCustomLinksListRequest) Enabled(enabled bool) ApiExtrasCustomLinksListRequest { - r.enabled = &enabled +func (r ApiExtrasEventRulesListRequest) ActionType(actionType []string) ApiExtrasEventRulesListRequest { + r.actionType = &actionType return r } -func (r ApiExtrasCustomLinksListRequest) GroupName(groupName []string) ApiExtrasCustomLinksListRequest { - r.groupName = &groupName +func (r ApiExtrasEventRulesListRequest) ActionTypeEmpty(actionTypeEmpty bool) ApiExtrasEventRulesListRequest { + r.actionTypeEmpty = &actionTypeEmpty return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameEmpty(groupNameEmpty bool) ApiExtrasCustomLinksListRequest { - r.groupNameEmpty = &groupNameEmpty +func (r ApiExtrasEventRulesListRequest) ActionTypeIc(actionTypeIc []string) ApiExtrasEventRulesListRequest { + r.actionTypeIc = &actionTypeIc return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameIc(groupNameIc []string) ApiExtrasCustomLinksListRequest { - r.groupNameIc = &groupNameIc +func (r ApiExtrasEventRulesListRequest) ActionTypeIe(actionTypeIe []string) ApiExtrasEventRulesListRequest { + r.actionTypeIe = &actionTypeIe return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameIe(groupNameIe []string) ApiExtrasCustomLinksListRequest { - r.groupNameIe = &groupNameIe +func (r ApiExtrasEventRulesListRequest) ActionTypeIew(actionTypeIew []string) ApiExtrasEventRulesListRequest { + r.actionTypeIew = &actionTypeIew return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameIew(groupNameIew []string) ApiExtrasCustomLinksListRequest { - r.groupNameIew = &groupNameIew +func (r ApiExtrasEventRulesListRequest) ActionTypeIsw(actionTypeIsw []string) ApiExtrasEventRulesListRequest { + r.actionTypeIsw = &actionTypeIsw return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameIsw(groupNameIsw []string) ApiExtrasCustomLinksListRequest { - r.groupNameIsw = &groupNameIsw +func (r ApiExtrasEventRulesListRequest) ActionTypeN(actionTypeN []string) ApiExtrasEventRulesListRequest { + r.actionTypeN = &actionTypeN return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameN(groupNameN []string) ApiExtrasCustomLinksListRequest { - r.groupNameN = &groupNameN +func (r ApiExtrasEventRulesListRequest) ActionTypeNic(actionTypeNic []string) ApiExtrasEventRulesListRequest { + r.actionTypeNic = &actionTypeNic return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameNic(groupNameNic []string) ApiExtrasCustomLinksListRequest { - r.groupNameNic = &groupNameNic +func (r ApiExtrasEventRulesListRequest) ActionTypeNie(actionTypeNie []string) ApiExtrasEventRulesListRequest { + r.actionTypeNie = &actionTypeNie return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameNie(groupNameNie []string) ApiExtrasCustomLinksListRequest { - r.groupNameNie = &groupNameNie +func (r ApiExtrasEventRulesListRequest) ActionTypeNiew(actionTypeNiew []string) ApiExtrasEventRulesListRequest { + r.actionTypeNiew = &actionTypeNiew return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameNiew(groupNameNiew []string) ApiExtrasCustomLinksListRequest { - r.groupNameNiew = &groupNameNiew +func (r ApiExtrasEventRulesListRequest) ActionTypeNisw(actionTypeNisw []string) ApiExtrasEventRulesListRequest { + r.actionTypeNisw = &actionTypeNisw return r } -func (r ApiExtrasCustomLinksListRequest) GroupNameNisw(groupNameNisw []string) ApiExtrasCustomLinksListRequest { - r.groupNameNisw = &groupNameNisw +func (r ApiExtrasEventRulesListRequest) Created(created []time.Time) ApiExtrasEventRulesListRequest { + r.created = &created return r } -func (r ApiExtrasCustomLinksListRequest) Id(id []int32) ApiExtrasCustomLinksListRequest { - r.id = &id +func (r ApiExtrasEventRulesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasEventRulesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiExtrasCustomLinksListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomLinksListRequest { - r.idEmpty = &idEmpty +func (r ApiExtrasEventRulesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasEventRulesListRequest { + r.createdGt = &createdGt return r } -func (r ApiExtrasCustomLinksListRequest) IdGt(idGt []int32) ApiExtrasCustomLinksListRequest { - r.idGt = &idGt +func (r ApiExtrasEventRulesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasEventRulesListRequest { + r.createdGte = &createdGte return r } -func (r ApiExtrasCustomLinksListRequest) IdGte(idGte []int32) ApiExtrasCustomLinksListRequest { - r.idGte = &idGte +func (r ApiExtrasEventRulesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasEventRulesListRequest { + r.createdLt = &createdLt return r } -func (r ApiExtrasCustomLinksListRequest) IdLt(idLt []int32) ApiExtrasCustomLinksListRequest { - r.idLt = &idLt +func (r ApiExtrasEventRulesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasEventRulesListRequest { + r.createdLte = &createdLte return r } -func (r ApiExtrasCustomLinksListRequest) IdLte(idLte []int32) ApiExtrasCustomLinksListRequest { - r.idLte = &idLte +func (r ApiExtrasEventRulesListRequest) CreatedN(createdN []time.Time) ApiExtrasEventRulesListRequest { + r.createdN = &createdN return r } -func (r ApiExtrasCustomLinksListRequest) IdN(idN []int32) ApiExtrasCustomLinksListRequest { - r.idN = &idN +func (r ApiExtrasEventRulesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasEventRulesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiExtrasCustomLinksListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasCustomLinksListRequest { - r.lastUpdated = &lastUpdated +func (r ApiExtrasEventRulesListRequest) Description(description []string) ApiExtrasEventRulesListRequest { + r.description = &description return r } -func (r ApiExtrasCustomLinksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasCustomLinksListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiExtrasEventRulesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasEventRulesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiExtrasCustomLinksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasCustomLinksListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiExtrasEventRulesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasEventRulesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiExtrasCustomLinksListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasCustomLinksListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiExtrasEventRulesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasEventRulesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiExtrasCustomLinksListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasCustomLinksListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiExtrasEventRulesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasEventRulesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiExtrasCustomLinksListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasCustomLinksListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiExtrasEventRulesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasEventRulesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiExtrasCustomLinksListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasCustomLinksListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiExtrasEventRulesListRequest) DescriptionN(descriptionN []string) ApiExtrasEventRulesListRequest { + r.descriptionN = &descriptionN return r } -// Number of results to return per page. -func (r ApiExtrasCustomLinksListRequest) Limit(limit int32) ApiExtrasCustomLinksListRequest { - r.limit = &limit +func (r ApiExtrasEventRulesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasEventRulesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiExtrasCustomLinksListRequest) LinkText(linkText string) ApiExtrasCustomLinksListRequest { - r.linkText = &linkText +func (r ApiExtrasEventRulesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasEventRulesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextIc(linkTextIc string) ApiExtrasCustomLinksListRequest { - r.linkTextIc = &linkTextIc +func (r ApiExtrasEventRulesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasEventRulesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextIe(linkTextIe string) ApiExtrasCustomLinksListRequest { - r.linkTextIe = &linkTextIe +func (r ApiExtrasEventRulesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasEventRulesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextIew(linkTextIew string) ApiExtrasCustomLinksListRequest { - r.linkTextIew = &linkTextIew +func (r ApiExtrasEventRulesListRequest) Enabled(enabled bool) ApiExtrasEventRulesListRequest { + r.enabled = &enabled return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextIsw(linkTextIsw string) ApiExtrasCustomLinksListRequest { - r.linkTextIsw = &linkTextIsw +func (r ApiExtrasEventRulesListRequest) EventType(eventType []string) ApiExtrasEventRulesListRequest { + r.eventType = &eventType return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextN(linkTextN string) ApiExtrasCustomLinksListRequest { - r.linkTextN = &linkTextN +func (r ApiExtrasEventRulesListRequest) Id(id []int32) ApiExtrasEventRulesListRequest { + r.id = &id return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextNic(linkTextNic string) ApiExtrasCustomLinksListRequest { - r.linkTextNic = &linkTextNic +func (r ApiExtrasEventRulesListRequest) IdEmpty(idEmpty bool) ApiExtrasEventRulesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextNie(linkTextNie string) ApiExtrasCustomLinksListRequest { - r.linkTextNie = &linkTextNie +func (r ApiExtrasEventRulesListRequest) IdGt(idGt []int32) ApiExtrasEventRulesListRequest { + r.idGt = &idGt return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextNiew(linkTextNiew string) ApiExtrasCustomLinksListRequest { - r.linkTextNiew = &linkTextNiew +func (r ApiExtrasEventRulesListRequest) IdGte(idGte []int32) ApiExtrasEventRulesListRequest { + r.idGte = &idGte return r } -func (r ApiExtrasCustomLinksListRequest) LinkTextNisw(linkTextNisw string) ApiExtrasCustomLinksListRequest { - r.linkTextNisw = &linkTextNisw +func (r ApiExtrasEventRulesListRequest) IdLt(idLt []int32) ApiExtrasEventRulesListRequest { + r.idLt = &idLt return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrl(linkUrl string) ApiExtrasCustomLinksListRequest { - r.linkUrl = &linkUrl +func (r ApiExtrasEventRulesListRequest) IdLte(idLte []int32) ApiExtrasEventRulesListRequest { + r.idLte = &idLte return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlIc(linkUrlIc string) ApiExtrasCustomLinksListRequest { - r.linkUrlIc = &linkUrlIc +func (r ApiExtrasEventRulesListRequest) IdN(idN []int32) ApiExtrasEventRulesListRequest { + r.idN = &idN return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlIe(linkUrlIe string) ApiExtrasCustomLinksListRequest { - r.linkUrlIe = &linkUrlIe +func (r ApiExtrasEventRulesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasEventRulesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlIew(linkUrlIew string) ApiExtrasCustomLinksListRequest { - r.linkUrlIew = &linkUrlIew +func (r ApiExtrasEventRulesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasEventRulesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlIsw(linkUrlIsw string) ApiExtrasCustomLinksListRequest { - r.linkUrlIsw = &linkUrlIsw +func (r ApiExtrasEventRulesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasEventRulesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlN(linkUrlN string) ApiExtrasCustomLinksListRequest { - r.linkUrlN = &linkUrlN +func (r ApiExtrasEventRulesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasEventRulesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlNic(linkUrlNic string) ApiExtrasCustomLinksListRequest { - r.linkUrlNic = &linkUrlNic +func (r ApiExtrasEventRulesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasEventRulesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlNie(linkUrlNie string) ApiExtrasCustomLinksListRequest { - r.linkUrlNie = &linkUrlNie +func (r ApiExtrasEventRulesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasEventRulesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlNiew(linkUrlNiew string) ApiExtrasCustomLinksListRequest { - r.linkUrlNiew = &linkUrlNiew +func (r ApiExtrasEventRulesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasEventRulesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiExtrasCustomLinksListRequest) LinkUrlNisw(linkUrlNisw string) ApiExtrasCustomLinksListRequest { - r.linkUrlNisw = &linkUrlNisw +// Number of results to return per page. +func (r ApiExtrasEventRulesListRequest) Limit(limit int32) ApiExtrasEventRulesListRequest { + r.limit = &limit return r } -func (r ApiExtrasCustomLinksListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasEventRulesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiExtrasCustomLinksListRequest) Name(name []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) Name(name []string) ApiExtrasEventRulesListRequest { r.name = &name return r } -func (r ApiExtrasCustomLinksListRequest) NameEmpty(nameEmpty bool) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameEmpty(nameEmpty bool) ApiExtrasEventRulesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiExtrasCustomLinksListRequest) NameIc(nameIc []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameIc(nameIc []string) ApiExtrasEventRulesListRequest { r.nameIc = &nameIc return r } -func (r ApiExtrasCustomLinksListRequest) NameIe(nameIe []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameIe(nameIe []string) ApiExtrasEventRulesListRequest { r.nameIe = &nameIe return r } -func (r ApiExtrasCustomLinksListRequest) NameIew(nameIew []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameIew(nameIew []string) ApiExtrasEventRulesListRequest { r.nameIew = &nameIew return r } -func (r ApiExtrasCustomLinksListRequest) NameIsw(nameIsw []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameIsw(nameIsw []string) ApiExtrasEventRulesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiExtrasCustomLinksListRequest) NameN(nameN []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameN(nameN []string) ApiExtrasEventRulesListRequest { r.nameN = &nameN return r } -func (r ApiExtrasCustomLinksListRequest) NameNic(nameNic []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameNic(nameNic []string) ApiExtrasEventRulesListRequest { r.nameNic = &nameNic return r } -func (r ApiExtrasCustomLinksListRequest) NameNie(nameNie []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameNie(nameNie []string) ApiExtrasEventRulesListRequest { r.nameNie = &nameNie return r } -func (r ApiExtrasCustomLinksListRequest) NameNiew(nameNiew []string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) NameNiew(nameNiew []string) ApiExtrasEventRulesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiExtrasCustomLinksListRequest) NameNisw(nameNisw []string) ApiExtrasCustomLinksListRequest { - r.nameNisw = &nameNisw - return r -} - -func (r ApiExtrasCustomLinksListRequest) NewWindow(newWindow bool) ApiExtrasCustomLinksListRequest { - r.newWindow = &newWindow +func (r ApiExtrasEventRulesListRequest) NameNisw(nameNisw []string) ApiExtrasEventRulesListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiExtrasCustomLinksListRequest) ObjectType(objectType string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectType(objectType string) ApiExtrasEventRulesListRequest { r.objectType = &objectType return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasEventRulesListRequest { r.objectTypeIc = &objectTypeIc return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasEventRulesListRequest { r.objectTypeIe = &objectTypeIe return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasEventRulesListRequest { r.objectTypeIew = &objectTypeIew return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasEventRulesListRequest { r.objectTypeIsw = &objectTypeIsw return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeN(objectTypeN string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeN(objectTypeN string) ApiExtrasEventRulesListRequest { r.objectTypeN = &objectTypeN return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasEventRulesListRequest { r.objectTypeNic = &objectTypeNic return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasEventRulesListRequest { r.objectTypeNie = &objectTypeNie return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasEventRulesListRequest { r.objectTypeNiew = &objectTypeNiew return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasEventRulesListRequest { r.objectTypeNisw = &objectTypeNisw return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasEventRulesListRequest { r.objectTypeId = &objectTypeId return r } -func (r ApiExtrasCustomLinksListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasEventRulesListRequest { r.objectTypeIdN = &objectTypeIdN return r } // The initial index from which to return the results. -func (r ApiExtrasCustomLinksListRequest) Offset(offset int32) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) Offset(offset int32) ApiExtrasEventRulesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiExtrasCustomLinksListRequest) Ordering(ordering string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) Ordering(ordering string) ApiExtrasEventRulesListRequest { r.ordering = &ordering return r } // Search -func (r ApiExtrasCustomLinksListRequest) Q(q string) ApiExtrasCustomLinksListRequest { +func (r ApiExtrasEventRulesListRequest) Q(q string) ApiExtrasEventRulesListRequest { r.q = &q return r } -func (r ApiExtrasCustomLinksListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomLinksListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiExtrasCustomLinksListRequest) Weight(weight []int32) ApiExtrasCustomLinksListRequest { - r.weight = &weight - 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 -} - -func (r ApiExtrasCustomLinksListRequest) WeightGte(weightGte []int32) ApiExtrasCustomLinksListRequest { - r.weightGte = &weightGte - return r -} - -func (r ApiExtrasCustomLinksListRequest) WeightLt(weightLt []int32) ApiExtrasCustomLinksListRequest { - r.weightLt = &weightLt +func (r ApiExtrasEventRulesListRequest) Tag(tag []string) ApiExtrasEventRulesListRequest { + r.tag = &tag return r } -func (r ApiExtrasCustomLinksListRequest) WeightLte(weightLte []int32) ApiExtrasCustomLinksListRequest { - r.weightLte = &weightLte +func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesListRequest { + r.tagN = &tagN return r } -func (r ApiExtrasCustomLinksListRequest) WeightN(weightN []int32) ApiExtrasCustomLinksListRequest { - r.weightN = &weightN +func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiExtrasCustomLinksListRequest) Execute() (*PaginatedCustomLinkList, *http.Response, error) { - return r.ApiService.ExtrasCustomLinksListExecute(r) +func (r ApiExtrasEventRulesListRequest) Execute() (*PaginatedEventRuleList, *http.Response, error) { + return r.ApiService.ExtrasEventRulesListExecute(r) } /* -ExtrasCustomLinksList Method for ExtrasCustomLinksList +ExtrasEventRulesList Method for ExtrasEventRulesList -Get a list of custom link objects. +Get a list of event rule 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 ApiExtrasEventRulesListRequest */ -func (a *ExtrasAPIService) ExtrasCustomLinksList(ctx context.Context) ApiExtrasCustomLinksListRequest { - return ApiExtrasCustomLinksListRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesList(ctx context.Context) ApiExtrasEventRulesListRequest { + return ApiExtrasEventRulesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCustomLinkList -func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksListRequest) (*PaginatedCustomLinkList, *http.Response, error) { +// @return PaginatedEventRuleList +func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesListRequest) (*PaginatedEventRuleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCustomLinkList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedEventRuleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/custom-links/" + localVarPath := localBasePath + "/api/extras/event-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.buttonClass != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "button_class", r.buttonClass, "") - } - if r.buttonClassN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "button_class__n", r.buttonClassN, "") - } - if r.created != nil { - t := *r.created + if r.actionObjectId != nil { + t := *r.actionObjectId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.actionObjectIdEmpty != nil { + t := *r.actionObjectIdEmpty 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__empty", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.actionObjectIdGt != nil { + t := *r.actionObjectIdGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gt", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.actionObjectIdGte != nil { + t := *r.actionObjectIdGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gte", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.actionObjectIdLt != nil { + t := *r.actionObjectIdLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lt", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + if r.actionObjectIdLte != nil { + t := *r.actionObjectIdLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lte", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.actionObjectIdN != nil { + t := *r.actionObjectIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__n", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + if r.actionObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_type", r.actionObjectType, "form", "") } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + if r.actionObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_type__n", r.actionObjectTypeN, "form", "") } - if r.groupName != nil { - t := *r.groupName + if r.actionType != nil { + t := *r.actionType 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type", t, "form", "multi") } } - if r.groupNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__empty", r.groupNameEmpty, "") + if r.actionTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__empty", r.actionTypeEmpty, "form", "") } - if r.groupNameIc != nil { - t := *r.groupNameIc + if r.actionTypeIc != nil { + t := *r.actionTypeIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ic", t, "form", "multi") } } - if r.groupNameIe != nil { - t := *r.groupNameIe + if r.actionTypeIe != nil { + t := *r.actionTypeIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ie", t, "form", "multi") } } - if r.groupNameIew != nil { - t := *r.groupNameIew + if r.actionTypeIew != nil { + t := *r.actionTypeIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__iew", t, "form", "multi") } } - if r.groupNameIsw != nil { - t := *r.groupNameIsw + if r.actionTypeIsw != nil { + t := *r.actionTypeIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__isw", t, "form", "multi") } } - if r.groupNameN != nil { - t := *r.groupNameN + if r.actionTypeN != nil { + t := *r.actionTypeN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__n", t, "form", "multi") } } - if r.groupNameNic != nil { - t := *r.groupNameNic + if r.actionTypeNic != nil { + t := *r.actionTypeNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nic", t, "form", "multi") } } - if r.groupNameNie != nil { - t := *r.groupNameNie + if r.actionTypeNie != nil { + t := *r.actionTypeNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nie", t, "form", "multi") } } - if r.groupNameNiew != nil { - t := *r.groupNameNiew + if r.actionTypeNiew != nil { + t := *r.actionTypeNiew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__niew", t, "form", "multi") } } - if r.groupNameNisw != nil { - t := *r.groupNameNisw + if r.actionTypeNisw != nil { + t := *r.actionTypeNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nisw", t, "form", "multi") } } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt + 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, "id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + 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, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + 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, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.linkText != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text", r.linkText, "") - } - if r.linkTextIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__ic", r.linkTextIc, "") - } - if r.linkTextIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__ie", r.linkTextIe, "") - } - if r.linkTextIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__iew", r.linkTextIew, "") - } - if r.linkTextIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__isw", r.linkTextIsw, "") - } - if r.linkTextN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__n", r.linkTextN, "") - } - if r.linkTextNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__nic", r.linkTextNic, "") - } - if r.linkTextNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__nie", r.linkTextNie, "") - } - if r.linkTextNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__niew", r.linkTextNiew, "") - } - if r.linkTextNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_text__nisw", r.linkTextNisw, "") - } - if r.linkUrl != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url", r.linkUrl, "") - } - if r.linkUrlIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__ic", r.linkUrlIc, "") - } - if r.linkUrlIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__ie", r.linkUrlIe, "") - } - if r.linkUrlIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__iew", r.linkUrlIew, "") - } - if r.linkUrlIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__isw", r.linkUrlIsw, "") - } - if r.linkUrlN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__n", r.linkUrlN, "") - } - if r.linkUrlNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__nic", r.linkUrlNic, "") - } - if r.linkUrlNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__nie", r.linkUrlNie, "") - } - if r.linkUrlNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__niew", r.linkUrlNiew, "") - } - if r.linkUrlNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link_url__nisw", r.linkUrlNisw, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + } + 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + 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, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + if r.eventType != nil { + t := *r.eventType 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.newWindow != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "new_window", r.newWindow, "") - } - if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") - } - if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") - } - if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") - } - if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") - } - if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") - } - if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") - } - if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") - } - if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") - } - if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") - } - if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") - } - if r.objectTypeId != nil { - t := *r.objectTypeId + 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, "object_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.objectTypeIdN != nil { - t := *r.objectTypeIdN + 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, "object_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - 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, "") - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.weight != nil { - t := *r.weight + 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, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") + } } - if r.weightGt != nil { - t := *r.weightGt + 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, "weight__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.weightGte != nil { - t := *r.weightGte + 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, "weight__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.weightLt != nil { - t := *r.weightLt + 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, "weight__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.weightLte != nil { - t := *r.weightLte + 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, "weight__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.weightN != nil { - t := *r.weightN + 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, "weight__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - 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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "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 r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasCustomLinksPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedCustomLinkRequest *PatchedCustomLinkRequest -} - -func (r ApiExtrasCustomLinksPartialUpdateRequest) PatchedCustomLinkRequest(patchedCustomLinkRequest PatchedCustomLinkRequest) ApiExtrasCustomLinksPartialUpdateRequest { - r.patchedCustomLinkRequest = &patchedCustomLinkRequest - return r -} - -func (r ApiExtrasCustomLinksPartialUpdateRequest) Execute() (*CustomLink, *http.Response, error) { - return r.ApiService.ExtrasCustomLinksPartialUpdateExecute(r) -} - -/* -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 -*/ -func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksPartialUpdateRequest { - return ApiExtrasCustomLinksPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CustomLink -func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCustomLinksPartialUpdateRequest) (*CustomLink, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/custom-links/{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 + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") + } } - // body params - localVarPostBody = r.patchedCustomLinkRequest - 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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasCustomLinksRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} - -func (r ApiExtrasCustomLinksRetrieveRequest) Execute() (*CustomLink, *http.Response, error) { - return r.ApiService.ExtrasCustomLinksRetrieveExecute(r) -} - -/* -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 -*/ -func (a *ExtrasAPIService) ExtrasCustomLinksRetrieve(ctx context.Context, id int32) ApiExtrasCustomLinksRetrieveRequest { - return ApiExtrasCustomLinksRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") } -} - -// Execute executes the request -// -// @return CustomLink -func (a *ExtrasAPIService) ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLinksRetrieveRequest) (*CustomLink, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.objectTypeIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "form", "") } - - localVarPath := localBasePath + "/api/extras/custom-links/{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.objectTypeIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "form", "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.objectTypeIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "form", "") } - 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.objectTypeIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "form", "") } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.objectTypeNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "form", "") } - - 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.objectTypeNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "form", "") } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.objectTypeNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "form", "") + } + if r.objectTypeNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasCustomLinksUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - customLinkRequest *CustomLinkRequest -} - -func (r ApiExtrasCustomLinksUpdateRequest) CustomLinkRequest(customLinkRequest CustomLinkRequest) ApiExtrasCustomLinksUpdateRequest { - r.customLinkRequest = &customLinkRequest - return r -} - -func (r ApiExtrasCustomLinksUpdateRequest) Execute() (*CustomLink, *http.Response, error) { - return r.ApiService.ExtrasCustomLinksUpdateExecute(r) -} - -/* -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 -*/ -func (a *ExtrasAPIService) ExtrasCustomLinksUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksUpdateRequest { - return ApiExtrasCustomLinksUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } -} - -// Execute executes the request -// -// @return CustomLink -func (a *ExtrasAPIService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinksUpdateRequest) (*CustomLink, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/extras/custom-links/{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.customLinkRequest == nil { - return localVarReturnValue, nil, reportError("customLinkRequest 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -14624,8 +19354,6 @@ func (a *ExtrasAPIService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinks if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.customLinkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14677,155 +19405,56 @@ func (a *ExtrasAPIService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinks return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasDashboardDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService -} - -func (r ApiExtrasDashboardDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasDashboardDestroyExecute(r) -} - -/* -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 -*/ -func (a *ExtrasAPIService) ExtrasDashboardDestroy(ctx context.Context) ApiExtrasDashboardDestroyRequest { - return ApiExtrasDashboardDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *ExtrasAPIService) ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/dashboard/" - - 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 ApiExtrasDashboardPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - patchedDashboardRequest *PatchedDashboardRequest +type ApiExtrasEventRulesPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedWritableEventRuleRequest *PatchedWritableEventRuleRequest } -func (r ApiExtrasDashboardPartialUpdateRequest) PatchedDashboardRequest(patchedDashboardRequest PatchedDashboardRequest) ApiExtrasDashboardPartialUpdateRequest { - r.patchedDashboardRequest = &patchedDashboardRequest +func (r ApiExtrasEventRulesPartialUpdateRequest) PatchedWritableEventRuleRequest(patchedWritableEventRuleRequest PatchedWritableEventRuleRequest) ApiExtrasEventRulesPartialUpdateRequest { + r.patchedWritableEventRuleRequest = &patchedWritableEventRuleRequest return r } -func (r ApiExtrasDashboardPartialUpdateRequest) Execute() (*Dashboard, *http.Response, error) { - return r.ApiService.ExtrasDashboardPartialUpdateExecute(r) +func (r ApiExtrasEventRulesPartialUpdateRequest) Execute() (*EventRule, *http.Response, error) { + return r.ApiService.ExtrasEventRulesPartialUpdateExecute(r) } /* -ExtrasDashboardPartialUpdate Method for ExtrasDashboardPartialUpdate +ExtrasEventRulesPartialUpdate Method for ExtrasEventRulesPartialUpdate -Patch a list of dashboard objects. +Patch a event rule object. - @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(). + @param id A unique integer value identifying this event rule. + @return ApiExtrasEventRulesPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasDashboardPartialUpdate(ctx context.Context) ApiExtrasDashboardPartialUpdateRequest { - return ApiExtrasDashboardPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdate(ctx context.Context, id int32) ApiExtrasEventRulesPartialUpdateRequest { + return ApiExtrasEventRulesPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Dashboard -func (a *ExtrasAPIService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashboardPartialUpdateRequest) (*Dashboard, *http.Response, error) { +// @return EventRule +func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEventRulesPartialUpdateRequest) (*EventRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/dashboard/" + localVarPath := localBasePath + "/api/extras/event-rules/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14849,7 +19478,7 @@ func (a *ExtrasAPIService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashbo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedDashboardRequest + localVarPostBody = r.patchedWritableEventRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14901,47 +19530,50 @@ func (a *ExtrasAPIService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashbo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasDashboardRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService +type ApiExtrasEventRulesRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasDashboardRetrieveRequest) Execute() (*Dashboard, *http.Response, error) { - return r.ApiService.ExtrasDashboardRetrieveExecute(r) +func (r ApiExtrasEventRulesRetrieveRequest) Execute() (*EventRule, *http.Response, error) { + return r.ApiService.ExtrasEventRulesRetrieveExecute(r) } /* -ExtrasDashboardRetrieve Method for ExtrasDashboardRetrieve +ExtrasEventRulesRetrieve Method for ExtrasEventRulesRetrieve -Get a list of dashboard objects. +Get a event rule object. - @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(). + @param id A unique integer value identifying this event rule. + @return ApiExtrasEventRulesRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasDashboardRetrieve(ctx context.Context) ApiExtrasDashboardRetrieveRequest { - return ApiExtrasDashboardRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesRetrieve(ctx context.Context, id int32) ApiExtrasEventRulesRetrieveRequest { + return ApiExtrasEventRulesRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Dashboard -func (a *ExtrasAPIService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRetrieveRequest) (*Dashboard, *http.Response, error) { +// @return EventRule +func (a *ExtrasAPIService) ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRulesRetrieveRequest) (*EventRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/dashboard/" + localVarPath := localBasePath + "/api/extras/event-rules/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15015,57 +19647,63 @@ func (a *ExtrasAPIService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasDashboardUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - dashboardRequest *DashboardRequest +type ApiExtrasEventRulesUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + writableEventRuleRequest *WritableEventRuleRequest } -func (r ApiExtrasDashboardUpdateRequest) DashboardRequest(dashboardRequest DashboardRequest) ApiExtrasDashboardUpdateRequest { - r.dashboardRequest = &dashboardRequest +func (r ApiExtrasEventRulesUpdateRequest) WritableEventRuleRequest(writableEventRuleRequest WritableEventRuleRequest) ApiExtrasEventRulesUpdateRequest { + r.writableEventRuleRequest = &writableEventRuleRequest return r } -func (r ApiExtrasDashboardUpdateRequest) Execute() (*Dashboard, *http.Response, error) { - return r.ApiService.ExtrasDashboardUpdateExecute(r) +func (r ApiExtrasEventRulesUpdateRequest) Execute() (*EventRule, *http.Response, error) { + return r.ApiService.ExtrasEventRulesUpdateExecute(r) } /* -ExtrasDashboardUpdate Method for ExtrasDashboardUpdate +ExtrasEventRulesUpdate Method for ExtrasEventRulesUpdate -Put a list of dashboard objects. +Put a event rule object. - @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(). + @param id A unique integer value identifying this event rule. + @return ApiExtrasEventRulesUpdateRequest */ -func (a *ExtrasAPIService) ExtrasDashboardUpdate(ctx context.Context) ApiExtrasDashboardUpdateRequest { - return ApiExtrasDashboardUpdateRequest{ +func (a *ExtrasAPIService) ExtrasEventRulesUpdate(ctx context.Context, id int32) ApiExtrasEventRulesUpdateRequest { + return ApiExtrasEventRulesUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Dashboard -func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpdateRequest) (*Dashboard, *http.Response, error) { +// @return EventRule +func (a *ExtrasAPIService) ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUpdateRequest) (*EventRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/dashboard/" + localVarPath := localBasePath + "/api/extras/event-rules/{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.writableEventRuleRequest == nil { + return localVarReturnValue, nil, reportError("writableEventRuleRequest is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -15085,7 +19723,7 @@ func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.dashboardRequest + localVarPostBody = r.writableEventRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15137,56 +19775,56 @@ func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasEventRulesBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - eventRuleRequest *[]EventRuleRequest +type ApiExtrasExportTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + exportTemplateRequest *[]ExportTemplateRequest } -func (r ApiExtrasEventRulesBulkDestroyRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkDestroyRequest { - r.eventRuleRequest = &eventRuleRequest +func (r ApiExtrasExportTemplatesBulkDestroyRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkDestroyRequest { + r.exportTemplateRequest = &exportTemplateRequest return r } -func (r ApiExtrasEventRulesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasEventRulesBulkDestroyExecute(r) +func (r ApiExtrasExportTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasExportTemplatesBulkDestroyExecute(r) } /* -ExtrasEventRulesBulkDestroy Method for ExtrasEventRulesBulkDestroy +ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy -Delete a list of event rule objects. +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 ApiExtrasEventRulesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroy(ctx context.Context) ApiExtrasEventRulesBulkDestroyRequest { - return ApiExtrasEventRulesBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest { + return ApiExtrasExportTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRulesBulkDestroyRequest) (*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.ExtrasEventRulesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/" + localVarPath := localBasePath + "/api/extras/export-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.eventRuleRequest == nil { - return nil, reportError("eventRuleRequest is required and must be specified") + if r.exportTemplateRequest == nil { + return nil, reportError("exportTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -15207,7 +19845,7 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.eventRuleRequest + localVarPostBody = r.exportTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15250,59 +19888,58 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkDestroyExecute(r ApiExtrasEventRu return localVarHTTPResponse, nil } -type ApiExtrasEventRulesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - eventRuleRequest *[]EventRuleRequest +type ApiExtrasExportTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + exportTemplateRequest *[]ExportTemplateRequest } -func (r ApiExtrasEventRulesBulkPartialUpdateRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkPartialUpdateRequest { - r.eventRuleRequest = &eventRuleRequest +func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkPartialUpdateRequest { + r.exportTemplateRequest = &exportTemplateRequest return r } -func (r ApiExtrasEventRulesBulkPartialUpdateRequest) Execute() ([]EventRule, *http.Response, error) { - return r.ApiService.ExtrasEventRulesBulkPartialUpdateExecute(r) +func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesBulkPartialUpdateExecute(r) } /* -ExtrasEventRulesBulkPartialUpdate Method for ExtrasEventRulesBulkPartialUpdate +ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkPartialUpdate -Patch a list of event rule objects. +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 ApiExtrasEventRulesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdate(ctx context.Context) ApiExtrasEventRulesBulkPartialUpdateRequest { - return ApiExtrasEventRulesBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest { + return ApiExtrasExportTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []EventRule -func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasEventRulesBulkPartialUpdateRequest) ([]EventRule, *http.Response, error) { +// @return []ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []EventRule + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/" + localVarPath := localBasePath + "/api/extras/export-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.eventRuleRequest == nil { - return localVarReturnValue, nil, reportError("eventRuleRequest is required and must be specified") + if r.exportTemplateRequest == nil { + return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -15323,7 +19960,7 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.eventRuleRequest + localVarPostBody = r.exportTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15375,59 +20012,58 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkPartialUpdateExecute(r ApiExtrasE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasEventRulesBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - eventRuleRequest *[]EventRuleRequest +type ApiExtrasExportTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + exportTemplateRequest *[]ExportTemplateRequest } -func (r ApiExtrasEventRulesBulkUpdateRequest) EventRuleRequest(eventRuleRequest []EventRuleRequest) ApiExtrasEventRulesBulkUpdateRequest { - r.eventRuleRequest = &eventRuleRequest +func (r ApiExtrasExportTemplatesBulkUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkUpdateRequest { + r.exportTemplateRequest = &exportTemplateRequest return r } -func (r ApiExtrasEventRulesBulkUpdateRequest) Execute() ([]EventRule, *http.Response, error) { - return r.ApiService.ExtrasEventRulesBulkUpdateExecute(r) +func (r ApiExtrasExportTemplatesBulkUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesBulkUpdateExecute(r) } /* -ExtrasEventRulesBulkUpdate Method for ExtrasEventRulesBulkUpdate +ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate -Put a list of event rule objects. +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 ApiExtrasEventRulesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdate(ctx context.Context) ApiExtrasEventRulesBulkUpdateRequest { - return ApiExtrasEventRulesBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest { + return ApiExtrasExportTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []EventRule -func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRulesBulkUpdateRequest) ([]EventRule, *http.Response, error) { +// @return []ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []EventRule + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/" + localVarPath := localBasePath + "/api/extras/export-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.eventRuleRequest == nil { - return localVarReturnValue, nil, reportError("eventRuleRequest is required and must be specified") + if r.exportTemplateRequest == nil { + return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -15448,7 +20084,7 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.eventRuleRequest + localVarPostBody = r.exportTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15500,59 +20136,58 @@ func (a *ExtrasAPIService) ExtrasEventRulesBulkUpdateExecute(r ApiExtrasEventRul return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasEventRulesCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - writableEventRuleRequest *WritableEventRuleRequest +type ApiExtrasExportTemplatesCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + exportTemplateRequest *ExportTemplateRequest } -func (r ApiExtrasEventRulesCreateRequest) WritableEventRuleRequest(writableEventRuleRequest WritableEventRuleRequest) ApiExtrasEventRulesCreateRequest { - r.writableEventRuleRequest = &writableEventRuleRequest +func (r ApiExtrasExportTemplatesCreateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesCreateRequest { + r.exportTemplateRequest = &exportTemplateRequest return r } -func (r ApiExtrasEventRulesCreateRequest) Execute() (*EventRule, *http.Response, error) { - return r.ApiService.ExtrasEventRulesCreateExecute(r) +func (r ApiExtrasExportTemplatesCreateRequest) Execute() (*ExportTemplate, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesCreateExecute(r) } /* -ExtrasEventRulesCreate Method for ExtrasEventRulesCreate +ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate -Post a list of event rule objects. +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 ApiExtrasEventRulesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesCreateRequest */ -func (a *ExtrasAPIService) ExtrasEventRulesCreate(ctx context.Context) ApiExtrasEventRulesCreateRequest { - return ApiExtrasEventRulesCreateRequest{ +func (a *ExtrasAPIService) ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest { + return ApiExtrasExportTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return EventRule -func (a *ExtrasAPIService) ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCreateRequest) (*EventRule, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportTemplatesCreateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *EventRule + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/" + localVarPath := localBasePath + "/api/extras/export-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableEventRuleRequest == nil { - return localVarReturnValue, nil, reportError("writableEventRuleRequest is required and must be specified") + if r.exportTemplateRequest == nil { + return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -15573,7 +20208,7 @@ func (a *ExtrasAPIService) ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableEventRuleRequest + localVarPostBody = r.exportTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -15625,47 +20260,47 @@ func (a *ExtrasAPIService) ExtrasEventRulesCreateExecute(r ApiExtrasEventRulesCr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasEventRulesDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasExportTemplatesDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasEventRulesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasEventRulesDestroyExecute(r) +func (r ApiExtrasExportTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasExportTemplatesDestroyExecute(r) } /* -ExtrasEventRulesDestroy Method for ExtrasEventRulesDestroy +ExtrasExportTemplatesDestroy Method for ExtrasExportTemplatesDestroy -Delete a event rule object. +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 event rule. - @return ApiExtrasEventRulesDestroyRequest + @param ctx 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) ExtrasEventRulesDestroy(ctx context.Context, id int32) ApiExtrasEventRulesDestroyRequest { - return ApiExtrasEventRulesDestroyRequest{ +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) ExtrasEventRulesDestroyExecute(r ApiExtrasEventRulesDestroyRequest) (*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.ExtrasEventRulesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/{id}/" + localVarPath := localBasePath + "/api/extras/export-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -15731,750 +20366,863 @@ func (a *ExtrasAPIService) ExtrasEventRulesDestroyExecute(r ApiExtrasEventRulesD return localVarHTTPResponse, nil } -type ApiExtrasEventRulesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - actionObjectId *[]int32 - actionObjectIdEmpty *[]int32 - actionObjectIdGt *[]int32 - actionObjectIdGte *[]int32 - actionObjectIdLt *[]int32 - actionObjectIdLte *[]int32 - actionObjectIdN *[]int32 - actionObjectType *string - actionObjectTypeN *string - actionType *[]string - actionTypeN *[]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 - 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 - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - tag *[]string - tagN *[]string - typeCreate *bool - typeDelete *bool - typeJobEnd *bool - typeJobStart *bool - typeUpdate *bool - updatedByRequest *string +type ApiExtrasExportTemplatesListRequest struct { + ctx context.Context + ApiService ExtrasAPI + asAttachment *bool + autoSyncEnabled *bool + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + fileExtension *[]string + fileExtensionEmpty *bool + fileExtensionIc *[]string + fileExtensionIe *[]string + fileExtensionIew *[]string + fileExtensionIsw *[]string + fileExtensionN *[]string + fileExtensionNic *[]string + fileExtensionNie *[]string + fileExtensionNiew *[]string + fileExtensionNisw *[]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 + mimeType *[]string + mimeTypeEmpty *bool + mimeTypeIc *[]string + mimeTypeIe *[]string + mimeTypeIew *[]string + mimeTypeIsw *[]string + mimeTypeN *[]string + mimeTypeNic *[]string + mimeTypeNie *[]string + mimeTypeNiew *[]string + mimeTypeNisw *[]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 + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + updatedByRequest *string } -func (r ApiExtrasEventRulesListRequest) ActionObjectId(actionObjectId []int32) ApiExtrasEventRulesListRequest { - r.actionObjectId = &actionObjectId +func (r ApiExtrasExportTemplatesListRequest) AsAttachment(asAttachment bool) ApiExtrasExportTemplatesListRequest { + r.asAttachment = &asAttachment return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectIdEmpty(actionObjectIdEmpty []int32) ApiExtrasEventRulesListRequest { - r.actionObjectIdEmpty = &actionObjectIdEmpty +func (r ApiExtrasExportTemplatesListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasExportTemplatesListRequest { + r.autoSyncEnabled = &autoSyncEnabled return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectIdGt(actionObjectIdGt []int32) ApiExtrasEventRulesListRequest { - r.actionObjectIdGt = &actionObjectIdGt +func (r ApiExtrasExportTemplatesListRequest) Created(created []time.Time) ApiExtrasExportTemplatesListRequest { + r.created = &created return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectIdGte(actionObjectIdGte []int32) ApiExtrasEventRulesListRequest { - r.actionObjectIdGte = &actionObjectIdGte +func (r ApiExtrasExportTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasExportTemplatesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectIdLt(actionObjectIdLt []int32) ApiExtrasEventRulesListRequest { - r.actionObjectIdLt = &actionObjectIdLt +func (r ApiExtrasExportTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasExportTemplatesListRequest { + r.createdGt = &createdGt return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectIdLte(actionObjectIdLte []int32) ApiExtrasEventRulesListRequest { - r.actionObjectIdLte = &actionObjectIdLte +func (r ApiExtrasExportTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasExportTemplatesListRequest { + r.createdGte = &createdGte return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectIdN(actionObjectIdN []int32) ApiExtrasEventRulesListRequest { - r.actionObjectIdN = &actionObjectIdN +func (r ApiExtrasExportTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasExportTemplatesListRequest { + r.createdLt = &createdLt return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectType(actionObjectType string) ApiExtrasEventRulesListRequest { - r.actionObjectType = &actionObjectType +func (r ApiExtrasExportTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasExportTemplatesListRequest { + r.createdLte = &createdLte return r } -func (r ApiExtrasEventRulesListRequest) ActionObjectTypeN(actionObjectTypeN string) ApiExtrasEventRulesListRequest { - r.actionObjectTypeN = &actionObjectTypeN +func (r ApiExtrasExportTemplatesListRequest) CreatedN(createdN []time.Time) ApiExtrasExportTemplatesListRequest { + r.createdN = &createdN return r } -func (r ApiExtrasEventRulesListRequest) ActionType(actionType []string) ApiExtrasEventRulesListRequest { - r.actionType = &actionType +func (r ApiExtrasExportTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasExportTemplatesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiExtrasEventRulesListRequest) ActionTypeN(actionTypeN []string) ApiExtrasEventRulesListRequest { - r.actionTypeN = &actionTypeN +// Data file (ID) +func (r ApiExtrasExportTemplatesListRequest) DataFileId(dataFileId []*int32) ApiExtrasExportTemplatesListRequest { + r.dataFileId = &dataFileId return r } -func (r ApiExtrasEventRulesListRequest) Created(created []time.Time) ApiExtrasEventRulesListRequest { - r.created = &created +// Data file (ID) +func (r ApiExtrasExportTemplatesListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasExportTemplatesListRequest { + r.dataFileIdN = &dataFileIdN return r } -func (r ApiExtrasEventRulesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasEventRulesListRequest { - r.createdEmpty = &createdEmpty +// Data source (ID) +func (r ApiExtrasExportTemplatesListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasExportTemplatesListRequest { + r.dataSourceId = &dataSourceId return r } -func (r ApiExtrasEventRulesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasEventRulesListRequest { - r.createdGt = &createdGt +// Data source (ID) +func (r ApiExtrasExportTemplatesListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasExportTemplatesListRequest { + r.dataSourceIdN = &dataSourceIdN return r } -func (r ApiExtrasEventRulesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasEventRulesListRequest { - r.createdGte = &createdGte +func (r ApiExtrasExportTemplatesListRequest) DataSynced(dataSynced []time.Time) ApiExtrasExportTemplatesListRequest { + r.dataSynced = &dataSynced return r } -func (r ApiExtrasEventRulesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasEventRulesListRequest { - r.createdLt = &createdLt +func (r ApiExtrasExportTemplatesListRequest) DataSyncedEmpty(dataSyncedEmpty bool) ApiExtrasExportTemplatesListRequest { + r.dataSyncedEmpty = &dataSyncedEmpty return r } -func (r ApiExtrasEventRulesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasEventRulesListRequest { - r.createdLte = &createdLte +func (r ApiExtrasExportTemplatesListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasExportTemplatesListRequest { + r.dataSyncedGt = &dataSyncedGt + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasExportTemplatesListRequest { + r.dataSyncedGte = &dataSyncedGte + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasExportTemplatesListRequest { + r.dataSyncedLt = &dataSyncedLt + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DataSyncedLte(dataSyncedLte []time.Time) ApiExtrasExportTemplatesListRequest { + r.dataSyncedLte = &dataSyncedLte + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DataSyncedN(dataSyncedN []time.Time) ApiExtrasExportTemplatesListRequest { + r.dataSyncedN = &dataSyncedN + return r +} + +func (r ApiExtrasExportTemplatesListRequest) Description(description []string) ApiExtrasExportTemplatesListRequest { + r.description = &description + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasExportTemplatesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasExportTemplatesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasExportTemplatesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasExportTemplatesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasExportTemplatesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DescriptionN(descriptionN []string) ApiExtrasExportTemplatesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasExportTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasExportTemplatesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiExtrasEventRulesListRequest) CreatedN(createdN []time.Time) ApiExtrasEventRulesListRequest { - r.createdN = &createdN +func (r ApiExtrasExportTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasExportTemplatesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiExtrasEventRulesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasEventRulesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiExtrasExportTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasExportTemplatesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiExtrasEventRulesListRequest) Description(description []string) ApiExtrasEventRulesListRequest { - r.description = &description +func (r ApiExtrasExportTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasExportTemplatesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiExtrasEventRulesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasEventRulesListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiExtrasExportTemplatesListRequest) FileExtension(fileExtension []string) ApiExtrasExportTemplatesListRequest { + r.fileExtension = &fileExtension return r } -func (r ApiExtrasEventRulesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasEventRulesListRequest { - r.descriptionIc = &descriptionIc +func (r ApiExtrasExportTemplatesListRequest) FileExtensionEmpty(fileExtensionEmpty bool) ApiExtrasExportTemplatesListRequest { + r.fileExtensionEmpty = &fileExtensionEmpty return r } -func (r ApiExtrasEventRulesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasEventRulesListRequest { - r.descriptionIe = &descriptionIe +func (r ApiExtrasExportTemplatesListRequest) FileExtensionIc(fileExtensionIc []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionIc = &fileExtensionIc return r } -func (r ApiExtrasEventRulesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasEventRulesListRequest { - r.descriptionIew = &descriptionIew +func (r ApiExtrasExportTemplatesListRequest) FileExtensionIe(fileExtensionIe []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionIe = &fileExtensionIe return r } -func (r ApiExtrasEventRulesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasEventRulesListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiExtrasExportTemplatesListRequest) FileExtensionIew(fileExtensionIew []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionIew = &fileExtensionIew return r } -func (r ApiExtrasEventRulesListRequest) DescriptionN(descriptionN []string) ApiExtrasEventRulesListRequest { - r.descriptionN = &descriptionN +func (r ApiExtrasExportTemplatesListRequest) FileExtensionIsw(fileExtensionIsw []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionIsw = &fileExtensionIsw return r } -func (r ApiExtrasEventRulesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasEventRulesListRequest { - r.descriptionNic = &descriptionNic +func (r ApiExtrasExportTemplatesListRequest) FileExtensionN(fileExtensionN []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionN = &fileExtensionN return r } -func (r ApiExtrasEventRulesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasEventRulesListRequest { - r.descriptionNie = &descriptionNie +func (r ApiExtrasExportTemplatesListRequest) FileExtensionNic(fileExtensionNic []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionNic = &fileExtensionNic return r } -func (r ApiExtrasEventRulesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasEventRulesListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiExtrasExportTemplatesListRequest) FileExtensionNie(fileExtensionNie []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionNie = &fileExtensionNie return r } -func (r ApiExtrasEventRulesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasEventRulesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiExtrasExportTemplatesListRequest) FileExtensionNiew(fileExtensionNiew []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionNiew = &fileExtensionNiew return r } -func (r ApiExtrasEventRulesListRequest) Enabled(enabled bool) ApiExtrasEventRulesListRequest { - r.enabled = &enabled +func (r ApiExtrasExportTemplatesListRequest) FileExtensionNisw(fileExtensionNisw []string) ApiExtrasExportTemplatesListRequest { + r.fileExtensionNisw = &fileExtensionNisw return r } -func (r ApiExtrasEventRulesListRequest) Id(id []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) Id(id []int32) ApiExtrasExportTemplatesListRequest { r.id = &id return r } -func (r ApiExtrasEventRulesListRequest) IdEmpty(idEmpty bool) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) IdEmpty(idEmpty bool) ApiExtrasExportTemplatesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiExtrasEventRulesListRequest) IdGt(idGt []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) IdGt(idGt []int32) ApiExtrasExportTemplatesListRequest { r.idGt = &idGt return r } -func (r ApiExtrasEventRulesListRequest) IdGte(idGte []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) IdGte(idGte []int32) ApiExtrasExportTemplatesListRequest { r.idGte = &idGte return r } -func (r ApiExtrasEventRulesListRequest) IdLt(idLt []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) IdLt(idLt []int32) ApiExtrasExportTemplatesListRequest { r.idLt = &idLt return r } -func (r ApiExtrasEventRulesListRequest) IdLte(idLte []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) IdLte(idLte []int32) ApiExtrasExportTemplatesListRequest { r.idLte = &idLte return r } -func (r ApiExtrasEventRulesListRequest) IdN(idN []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) IdN(idN []int32) ApiExtrasExportTemplatesListRequest { r.idN = &idN return r } -func (r ApiExtrasEventRulesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasExportTemplatesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiExtrasEventRulesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasExportTemplatesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiExtrasEventRulesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasExportTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiExtrasEventRulesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasExportTemplatesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiExtrasEventRulesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasExportTemplatesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiExtrasEventRulesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasExportTemplatesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiExtrasEventRulesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasExportTemplatesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiExtrasEventRulesListRequest) Limit(limit int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) Limit(limit int32) ApiExtrasExportTemplatesListRequest { r.limit = &limit return r } -func (r ApiExtrasEventRulesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) MimeType(mimeType []string) ApiExtrasExportTemplatesListRequest { + r.mimeType = &mimeType + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeEmpty(mimeTypeEmpty bool) ApiExtrasExportTemplatesListRequest { + r.mimeTypeEmpty = &mimeTypeEmpty + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeIc(mimeTypeIc []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeIc = &mimeTypeIc + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeIe(mimeTypeIe []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeIe = &mimeTypeIe + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeIew(mimeTypeIew []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeIew = &mimeTypeIew + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeIsw(mimeTypeIsw []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeIsw = &mimeTypeIsw + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeN(mimeTypeN []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeN = &mimeTypeN + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeNic(mimeTypeNic []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeNic = &mimeTypeNic + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeNie(mimeTypeNie []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeNie = &mimeTypeNie + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeNiew(mimeTypeNiew []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeNiew = &mimeTypeNiew + return r +} + +func (r ApiExtrasExportTemplatesListRequest) MimeTypeNisw(mimeTypeNisw []string) ApiExtrasExportTemplatesListRequest { + r.mimeTypeNisw = &mimeTypeNisw + return r +} + +func (r ApiExtrasExportTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasExportTemplatesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiExtrasEventRulesListRequest) Name(name []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) Name(name []string) ApiExtrasExportTemplatesListRequest { r.name = &name return r } -func (r ApiExtrasEventRulesListRequest) NameEmpty(nameEmpty bool) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameEmpty(nameEmpty bool) ApiExtrasExportTemplatesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiExtrasEventRulesListRequest) NameIc(nameIc []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameIc(nameIc []string) ApiExtrasExportTemplatesListRequest { r.nameIc = &nameIc return r } -func (r ApiExtrasEventRulesListRequest) NameIe(nameIe []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameIe(nameIe []string) ApiExtrasExportTemplatesListRequest { r.nameIe = &nameIe return r } -func (r ApiExtrasEventRulesListRequest) NameIew(nameIew []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameIew(nameIew []string) ApiExtrasExportTemplatesListRequest { r.nameIew = &nameIew return r } -func (r ApiExtrasEventRulesListRequest) NameIsw(nameIsw []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameIsw(nameIsw []string) ApiExtrasExportTemplatesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiExtrasEventRulesListRequest) NameN(nameN []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameN(nameN []string) ApiExtrasExportTemplatesListRequest { r.nameN = &nameN return r } -func (r ApiExtrasEventRulesListRequest) NameNic(nameNic []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameNic(nameNic []string) ApiExtrasExportTemplatesListRequest { r.nameNic = &nameNic return r } -func (r ApiExtrasEventRulesListRequest) NameNie(nameNie []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameNie(nameNie []string) ApiExtrasExportTemplatesListRequest { r.nameNie = &nameNie return r } -func (r ApiExtrasEventRulesListRequest) NameNiew(nameNiew []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameNiew(nameNiew []string) ApiExtrasExportTemplatesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiExtrasEventRulesListRequest) NameNisw(nameNisw []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) NameNisw(nameNisw []string) ApiExtrasExportTemplatesListRequest { r.nameNisw = &nameNisw return r } -func (r ApiExtrasEventRulesListRequest) ObjectType(objectType string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectType(objectType string) ApiExtrasExportTemplatesListRequest { r.objectType = &objectType return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasExportTemplatesListRequest { r.objectTypeIc = &objectTypeIc return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasExportTemplatesListRequest { r.objectTypeIe = &objectTypeIe return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasExportTemplatesListRequest { r.objectTypeIew = &objectTypeIew return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasExportTemplatesListRequest { r.objectTypeIsw = &objectTypeIsw return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeN(objectTypeN string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeN(objectTypeN string) ApiExtrasExportTemplatesListRequest { r.objectTypeN = &objectTypeN return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasExportTemplatesListRequest { r.objectTypeNic = &objectTypeNic return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasExportTemplatesListRequest { r.objectTypeNie = &objectTypeNie return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasExportTemplatesListRequest { r.objectTypeNiew = &objectTypeNiew return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasExportTemplatesListRequest { r.objectTypeNisw = &objectTypeNisw return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasExportTemplatesListRequest { r.objectTypeId = &objectTypeId return r } -func (r ApiExtrasEventRulesListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasExportTemplatesListRequest { r.objectTypeIdN = &objectTypeIdN return r } // The initial index from which to return the results. -func (r ApiExtrasEventRulesListRequest) Offset(offset int32) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) Offset(offset int32) ApiExtrasExportTemplatesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiExtrasEventRulesListRequest) Ordering(ordering string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) Ordering(ordering string) ApiExtrasExportTemplatesListRequest { r.ordering = &ordering return r } // Search -func (r ApiExtrasEventRulesListRequest) Q(q string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) Q(q string) ApiExtrasExportTemplatesListRequest { r.q = &q return r } -func (r ApiExtrasEventRulesListRequest) Tag(tag []string) ApiExtrasEventRulesListRequest { - r.tag = &tag - return r -} - -func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesListRequest { - r.tagN = &tagN - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeCreate(typeCreate bool) ApiExtrasEventRulesListRequest { - r.typeCreate = &typeCreate - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeDelete(typeDelete bool) ApiExtrasEventRulesListRequest { - r.typeDelete = &typeDelete - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobEnd(typeJobEnd bool) ApiExtrasEventRulesListRequest { - r.typeJobEnd = &typeJobEnd - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobStart(typeJobStart bool) ApiExtrasEventRulesListRequest { - r.typeJobStart = &typeJobStart - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeUpdate(typeUpdate bool) ApiExtrasEventRulesListRequest { - r.typeUpdate = &typeUpdate - return r -} - -func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasExportTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasExportTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiExtrasEventRulesListRequest) Execute() (*PaginatedEventRuleList, *http.Response, error) { - return r.ApiService.ExtrasEventRulesListExecute(r) +func (r ApiExtrasExportTemplatesListRequest) Execute() (*PaginatedExportTemplateList, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesListExecute(r) } /* -ExtrasEventRulesList Method for ExtrasEventRulesList +ExtrasExportTemplatesList Method for ExtrasExportTemplatesList -Get a list of event rule objects. +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 ApiExtrasEventRulesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesListRequest */ -func (a *ExtrasAPIService) ExtrasEventRulesList(ctx context.Context) ApiExtrasEventRulesListRequest { - return ApiExtrasEventRulesListRequest{ +func (a *ExtrasAPIService) ExtrasExportTemplatesList(ctx context.Context) ApiExtrasExportTemplatesListRequest { + return ApiExtrasExportTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedEventRuleList -func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesListRequest) (*PaginatedEventRuleList, *http.Response, error) { +// @return PaginatedExportTemplateList +func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTemplatesListRequest) (*PaginatedExportTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedEventRuleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedExportTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/" + localVarPath := localBasePath + "/api/extras/export-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.actionObjectId != nil { - t := *r.actionObjectId + if r.asAttachment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "as_attachment", r.asAttachment, "form", "") + } + if r.autoSyncEnabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auto_sync_enabled", r.autoSyncEnabled, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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, "action_object_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.actionObjectIdEmpty != nil { - t := *r.actionObjectIdEmpty + 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, "action_object_id__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.actionObjectIdGt != nil { - t := *r.actionObjectIdGt + 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, "action_object_id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.actionObjectIdGte != nil { - t := *r.actionObjectIdGte + 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, "action_object_id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.actionObjectIdLt != nil { - t := *r.actionObjectIdLt + 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, "action_object_id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.actionObjectIdLte != nil { - t := *r.actionObjectIdLte + 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, "action_object_id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - if r.actionObjectIdN != nil { - t := *r.actionObjectIdN + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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, "action_object_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "form", "multi") } } - if r.actionObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_type", r.actionObjectType, "") - } - if r.actionObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_object_type__n", r.actionObjectTypeN, "") - } - if r.actionType != nil { - t := *r.actionType + 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, "action_type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "form", "multi") } } - if r.actionTypeN != nil { - t := *r.actionTypeN + 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, "action_type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "form", "multi") } } - if r.created != nil { - t := *r.created + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.dataSyncedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "form", "") + } + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -16482,10 +21230,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -16493,10 +21241,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -16504,10 +21252,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -16515,10 +21263,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -16526,10 +21274,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -16537,10 +21285,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -16548,10 +21296,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -16559,38 +21307,148 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + if r.fileExtension != nil { + t := *r.fileExtension + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension", t, "form", "multi") + } + } + if r.fileExtensionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__empty", r.fileExtensionEmpty, "form", "") + } + if r.fileExtensionIc != nil { + t := *r.fileExtensionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ic", t, "form", "multi") + } + } + if r.fileExtensionIe != nil { + t := *r.fileExtensionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ie", t, "form", "multi") + } + } + if r.fileExtensionIew != nil { + t := *r.fileExtensionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", t, "form", "multi") + } + } + if r.fileExtensionIsw != nil { + t := *r.fileExtensionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", t, "form", "multi") + } + } + if r.fileExtensionN != nil { + t := *r.fileExtensionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", t, "form", "multi") + } + } + if r.fileExtensionNic != nil { + t := *r.fileExtensionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", t, "form", "multi") + } + } + if r.fileExtensionNie != nil { + t := *r.fileExtensionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", t, "form", "multi") + } + } + if r.fileExtensionNiew != nil { + t := *r.fileExtensionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", t, "form", "multi") + } + } + if r.fileExtensionNisw != nil { + t := *r.fileExtensionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -16598,10 +21456,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -16609,10 +21467,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -16620,129 +21478,242 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.mimeType != nil { + t := *r.mimeType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type", t, "form", "multi") + } + } + if r.mimeTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__empty", r.mimeTypeEmpty, "form", "") + } + if r.mimeTypeIc != nil { + t := *r.mimeTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ic", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.mimeTypeIe != nil { + t := *r.mimeTypeIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ie", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.mimeTypeIew != nil { + t := *r.mimeTypeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__iew", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.mimeTypeIsw != nil { + t := *r.mimeTypeIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__isw", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.mimeTypeN != nil { + t := *r.mimeTypeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__n", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.mimeTypeNic != nil { + t := *r.mimeTypeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nic", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.mimeTypeNie != nil { + t := *r.mimeTypeNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nie", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.mimeTypeNiew != nil { + t := *r.mimeTypeNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__niew", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.mimeTypeNisw != nil { + t := *r.mimeTypeNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nisw", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -16750,10 +21721,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -16761,10 +21732,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -16772,10 +21743,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -16783,10 +21754,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -16794,10 +21765,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -16805,10 +21776,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -16816,10 +21787,10 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -16827,51 +21798,51 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") } if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "form", "") } if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "form", "") } if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "form", "") } if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "form", "") } if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") } if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "form", "") } if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "form", "") } if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "form", "") } if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "multi") } } if r.objectTypeIdN != nil { @@ -16879,60 +21850,23 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - 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, "") - } - if r.typeDelete != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_delete", r.typeDelete, "") - } - if r.typeJobEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_end", r.typeJobEnd, "") - } - if r.typeJobStart != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_start", r.typeJobStart, "") - } - if r.typeUpdate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17002,56 +21936,55 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasEventRulesPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedWritableEventRuleRequest *PatchedWritableEventRuleRequest +type ApiExtrasExportTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedExportTemplateRequest *PatchedExportTemplateRequest } -func (r ApiExtrasEventRulesPartialUpdateRequest) PatchedWritableEventRuleRequest(patchedWritableEventRuleRequest PatchedWritableEventRuleRequest) ApiExtrasEventRulesPartialUpdateRequest { - r.patchedWritableEventRuleRequest = &patchedWritableEventRuleRequest +func (r ApiExtrasExportTemplatesPartialUpdateRequest) PatchedExportTemplateRequest(patchedExportTemplateRequest PatchedExportTemplateRequest) ApiExtrasExportTemplatesPartialUpdateRequest { + r.patchedExportTemplateRequest = &patchedExportTemplateRequest return r } -func (r ApiExtrasEventRulesPartialUpdateRequest) Execute() (*EventRule, *http.Response, error) { - return r.ApiService.ExtrasEventRulesPartialUpdateExecute(r) +func (r ApiExtrasExportTemplatesPartialUpdateRequest) Execute() (*ExportTemplate, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesPartialUpdateExecute(r) } /* -ExtrasEventRulesPartialUpdate Method for ExtrasEventRulesPartialUpdate +ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate -Patch a event rule object. +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 event rule. - @return ApiExtrasEventRulesPartialUpdateRequest + @param ctx 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) ExtrasEventRulesPartialUpdate(ctx context.Context, id int32) ApiExtrasEventRulesPartialUpdateRequest { - return ApiExtrasEventRulesPartialUpdateRequest{ +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 EventRule -func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEventRulesPartialUpdateRequest) (*EventRule, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *EventRule + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/{id}/" + localVarPath := localBasePath + "/api/extras/export-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -17076,7 +22009,7 @@ func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEvent localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableEventRuleRequest + localVarPostBody = r.patchedExportTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17128,50 +22061,49 @@ func (a *ExtrasAPIService) ExtrasEventRulesPartialUpdateExecute(r ApiExtrasEvent return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasEventRulesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasExportTemplatesRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasEventRulesRetrieveRequest) Execute() (*EventRule, *http.Response, error) { - return r.ApiService.ExtrasEventRulesRetrieveExecute(r) +func (r ApiExtrasExportTemplatesRetrieveRequest) Execute() (*ExportTemplate, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesRetrieveExecute(r) } /* -ExtrasEventRulesRetrieve Method for ExtrasEventRulesRetrieve +ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve -Get a event rule object. +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 event rule. - @return ApiExtrasEventRulesRetrieveRequest + @param ctx 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) ExtrasEventRulesRetrieve(ctx context.Context, id int32) ApiExtrasEventRulesRetrieveRequest { - return ApiExtrasEventRulesRetrieveRequest{ +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 EventRule -func (a *ExtrasAPIService) ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRulesRetrieveRequest) (*EventRule, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *EventRule + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/{id}/" + localVarPath := localBasePath + "/api/extras/export-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -17246,63 +22178,62 @@ func (a *ExtrasAPIService) ExtrasEventRulesRetrieveExecute(r ApiExtrasEventRules return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasEventRulesUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - writableEventRuleRequest *WritableEventRuleRequest +type ApiExtrasExportTemplatesSyncCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + exportTemplateRequest *ExportTemplateRequest } -func (r ApiExtrasEventRulesUpdateRequest) WritableEventRuleRequest(writableEventRuleRequest WritableEventRuleRequest) ApiExtrasEventRulesUpdateRequest { - r.writableEventRuleRequest = &writableEventRuleRequest +func (r ApiExtrasExportTemplatesSyncCreateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesSyncCreateRequest { + r.exportTemplateRequest = &exportTemplateRequest return r } -func (r ApiExtrasEventRulesUpdateRequest) Execute() (*EventRule, *http.Response, error) { - return r.ApiService.ExtrasEventRulesUpdateExecute(r) +func (r ApiExtrasExportTemplatesSyncCreateRequest) Execute() (*ExportTemplate, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesSyncCreateExecute(r) } /* -ExtrasEventRulesUpdate Method for ExtrasEventRulesUpdate +ExtrasExportTemplatesSyncCreate Method for ExtrasExportTemplatesSyncCreate -Put a event rule object. +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 event rule. - @return ApiExtrasEventRulesUpdateRequest + @param ctx 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) ExtrasEventRulesUpdate(ctx context.Context, id int32) ApiExtrasEventRulesUpdateRequest { - return ApiExtrasEventRulesUpdateRequest{ +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 EventRule -func (a *ExtrasAPIService) ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUpdateRequest) (*EventRule, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExportTemplatesSyncCreateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *EventRule + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasEventRulesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesSyncCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/event-rules/{id}/" + localVarPath := localBasePath + "/api/extras/export-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.writableEventRuleRequest == nil { - return localVarReturnValue, nil, reportError("writableEventRuleRequest is required and must be specified") + if r.exportTemplateRequest == nil { + return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -17323,7 +22254,7 @@ func (a *ExtrasAPIService) ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableEventRuleRequest + localVarPostBody = r.exportTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17375,56 +22306,62 @@ func (a *ExtrasAPIService) ExtrasEventRulesUpdateExecute(r ApiExtrasEventRulesUp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasExportTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - exportTemplateRequest *[]ExportTemplateRequest +type ApiExtrasExportTemplatesUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + exportTemplateRequest *ExportTemplateRequest } -func (r ApiExtrasExportTemplatesBulkDestroyRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkDestroyRequest { +func (r ApiExtrasExportTemplatesUpdateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesUpdateRequest { r.exportTemplateRequest = &exportTemplateRequest return r } -func (r ApiExtrasExportTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasExportTemplatesBulkDestroyExecute(r) +func (r ApiExtrasExportTemplatesUpdateRequest) Execute() (*ExportTemplate, *http.Response, error) { + return r.ApiService.ExtrasExportTemplatesUpdateExecute(r) } /* -ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy +ExtrasExportTemplatesUpdate Method for ExtrasExportTemplatesUpdate -Delete a list of export template objects. +Put a export template object. - @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(). + @param id A unique integer value identifying this export template. + @return ApiExtrasExportTemplatesUpdateRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest { - return ApiExtrasExportTemplatesBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasExportTemplatesUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesUpdateRequest { + return ApiExtrasExportTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportTemplatesUpdateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/" + localVarPath := localBasePath + "/api/extras/export-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.exportTemplateRequest == nil { - return nil, reportError("exportTemplateRequest is required and must be specified") + return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -17437,7 +22374,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasEx } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -17462,19 +22399,19 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasEx } 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 { @@ -17482,65 +22419,71 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasEx body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiExtrasExportTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - exportTemplateRequest *[]ExportTemplateRequest +type ApiExtrasImageAttachmentsBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + imageAttachmentRequest *[]ImageAttachmentRequest } -func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkPartialUpdateRequest { - r.exportTemplateRequest = &exportTemplateRequest +func (r ApiExtrasImageAttachmentsBulkDestroyRequest) ImageAttachmentRequest(imageAttachmentRequest []ImageAttachmentRequest) ApiExtrasImageAttachmentsBulkDestroyRequest { + r.imageAttachmentRequest = &imageAttachmentRequest return r } -func (r ApiExtrasExportTemplatesBulkPartialUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesBulkPartialUpdateExecute(r) +func (r ApiExtrasImageAttachmentsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsBulkDestroyExecute(r) } /* -ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkPartialUpdate +ExtrasImageAttachmentsBulkDestroy Method for ExtrasImageAttachmentsBulkDestroy -Patch a list of export template objects. +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 ApiExtrasExportTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest { - return ApiExtrasExportTemplatesBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroy(ctx context.Context) ApiExtrasImageAttachmentsBulkDestroyRequest { + return ApiExtrasImageAttachmentsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ExportTemplate -func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasImageAttachmentsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ExportTemplate + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/" + localVarPath := localBasePath + "/api/extras/image-attachments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.exportTemplateRequest == nil { - return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") + if r.imageAttachmentRequest == nil { + return nil, reportError("imageAttachmentRequest is required and must be specified") } // to determine the Content-Type header @@ -17553,7 +22496,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -17561,7 +22504,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.exportTemplateRequest + localVarPostBody = r.imageAttachmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17578,19 +22521,19 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -17598,74 +22541,64 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx 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 localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiExtrasExportTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - exportTemplateRequest *[]ExportTemplateRequest +type ApiExtrasImageAttachmentsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + imageAttachmentRequest *[]ImageAttachmentRequest } -func (r ApiExtrasExportTemplatesBulkUpdateRequest) ExportTemplateRequest(exportTemplateRequest []ExportTemplateRequest) ApiExtrasExportTemplatesBulkUpdateRequest { - r.exportTemplateRequest = &exportTemplateRequest +func (r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ImageAttachmentRequest(imageAttachmentRequest []ImageAttachmentRequest) ApiExtrasImageAttachmentsBulkPartialUpdateRequest { + r.imageAttachmentRequest = &imageAttachmentRequest return r } -func (r ApiExtrasExportTemplatesBulkUpdateRequest) Execute() ([]ExportTemplate, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesBulkUpdateExecute(r) +func (r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) Execute() ([]ImageAttachment, *http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsBulkPartialUpdateExecute(r) } /* -ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate +ExtrasImageAttachmentsBulkPartialUpdate Method for ExtrasImageAttachmentsBulkPartialUpdate -Put a list of export template objects. +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 ApiExtrasExportTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest { - return ApiExtrasExportTemplatesBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkPartialUpdateRequest { + return ApiExtrasImageAttachmentsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ExportTemplate -func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) { +// @return []ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ([]ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ExportTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/" + localVarPath := localBasePath + "/api/extras/image-attachments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.exportTemplateRequest == nil { - return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") + if r.imageAttachmentRequest == nil { + return localVarReturnValue, nil, reportError("imageAttachmentRequest is required and must be specified") } // to determine the Content-Type header @@ -17686,7 +22619,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.exportTemplateRequest + localVarPostBody = r.imageAttachmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17738,59 +22671,58 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasExportTemplatesCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - exportTemplateRequest *ExportTemplateRequest +type ApiExtrasImageAttachmentsBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + imageAttachmentRequest *[]ImageAttachmentRequest } -func (r ApiExtrasExportTemplatesCreateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesCreateRequest { - r.exportTemplateRequest = &exportTemplateRequest +func (r ApiExtrasImageAttachmentsBulkUpdateRequest) ImageAttachmentRequest(imageAttachmentRequest []ImageAttachmentRequest) ApiExtrasImageAttachmentsBulkUpdateRequest { + r.imageAttachmentRequest = &imageAttachmentRequest return r } -func (r ApiExtrasExportTemplatesCreateRequest) Execute() (*ExportTemplate, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesCreateExecute(r) +func (r ApiExtrasImageAttachmentsBulkUpdateRequest) Execute() ([]ImageAttachment, *http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsBulkUpdateExecute(r) } /* -ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate +ExtrasImageAttachmentsBulkUpdate Method for ExtrasImageAttachmentsBulkUpdate -Post a list of export template objects. +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 ApiExtrasExportTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest { - return ApiExtrasExportTemplatesCreateRequest{ +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkUpdateRequest { + return ApiExtrasImageAttachmentsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ExportTemplate -func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportTemplatesCreateRequest) (*ExportTemplate, *http.Response, error) { +// @return []ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasImageAttachmentsBulkUpdateRequest) ([]ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/" + localVarPath := localBasePath + "/api/extras/image-attachments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.exportTemplateRequest == nil { - return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") + if r.imageAttachmentRequest == nil { + return localVarReturnValue, nil, reportError("imageAttachmentRequest is required and must be specified") } // to determine the Content-Type header @@ -17811,7 +22743,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.exportTemplateRequest + localVarPostBody = r.imageAttachmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17863,55 +22795,62 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasExportTemplatesDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasImageAttachmentsCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + imageAttachmentRequest *ImageAttachmentRequest } -func (r ApiExtrasExportTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasExportTemplatesDestroyExecute(r) +func (r ApiExtrasImageAttachmentsCreateRequest) ImageAttachmentRequest(imageAttachmentRequest ImageAttachmentRequest) ApiExtrasImageAttachmentsCreateRequest { + r.imageAttachmentRequest = &imageAttachmentRequest + return r +} + +func (r ApiExtrasImageAttachmentsCreateRequest) Execute() (*ImageAttachment, *http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsCreateExecute(r) } /* -ExtrasExportTemplatesDestroy Method for ExtrasExportTemplatesDestroy +ExtrasImageAttachmentsCreate Method for ExtrasImageAttachmentsCreate -Delete a export template object. +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(). - @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(). + @return ApiExtrasImageAttachmentsCreateRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesDestroy(ctx context.Context, id int32) ApiExtrasExportTemplatesDestroyRequest { - return ApiExtrasExportTemplatesDestroyRequest{ +func (a *ExtrasAPIService) ExtrasImageAttachmentsCreate(ctx context.Context) ApiExtrasImageAttachmentsCreateRequest { + return ApiExtrasImageAttachmentsCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExportTemplatesDestroyRequest) (*http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageAttachmentsCreateRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsCreate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/image-attachments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.imageAttachmentRequest == nil { + return localVarReturnValue, nil, reportError("imageAttachmentRequest 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) @@ -17920,13 +22859,15 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExport } // 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.imageAttachmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17943,19 +22884,19 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExport } 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 { @@ -17963,1140 +22904,845 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExport body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiExtrasExportTemplatesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - asAttachment *bool - autoSyncEnabled *bool - 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 - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - fileExtension *[]string - fileExtensionEmpty *bool - fileExtensionIc *[]string - fileExtensionIe *[]string - fileExtensionIew *[]string - fileExtensionIsw *[]string - fileExtensionN *[]string - fileExtensionNic *[]string - fileExtensionNie *[]string - fileExtensionNiew *[]string - fileExtensionNisw *[]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 - mimeType *[]string - mimeTypeEmpty *bool - mimeTypeIc *[]string - mimeTypeIe *[]string - mimeTypeIew *[]string - mimeTypeIsw *[]string - mimeTypeN *[]string - mimeTypeNic *[]string - mimeTypeNie *[]string - mimeTypeNiew *[]string - mimeTypeNisw *[]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 - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - updatedByRequest *string -} - -func (r ApiExtrasExportTemplatesListRequest) AsAttachment(asAttachment bool) ApiExtrasExportTemplatesListRequest { - r.asAttachment = &asAttachment - return r -} - -func (r ApiExtrasExportTemplatesListRequest) AutoSyncEnabled(autoSyncEnabled bool) ApiExtrasExportTemplatesListRequest { - r.autoSyncEnabled = &autoSyncEnabled - return r -} - -func (r ApiExtrasExportTemplatesListRequest) Created(created []time.Time) ApiExtrasExportTemplatesListRequest { - r.created = &created - return r -} - -func (r ApiExtrasExportTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasExportTemplatesListRequest { - r.createdEmpty = &createdEmpty - return r -} - -func (r ApiExtrasExportTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiExtrasExportTemplatesListRequest { - r.createdGt = &createdGt - return r -} - -func (r ApiExtrasExportTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiExtrasExportTemplatesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiExtrasExportTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiExtrasExportTemplatesListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiExtrasExportTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiExtrasExportTemplatesListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiExtrasExportTemplatesListRequest) CreatedN(createdN []time.Time) ApiExtrasExportTemplatesListRequest { - r.createdN = &createdN - return r -} - -func (r ApiExtrasExportTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasExportTemplatesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -// Data file (ID) -func (r ApiExtrasExportTemplatesListRequest) DataFileId(dataFileId []*int32) ApiExtrasExportTemplatesListRequest { - r.dataFileId = &dataFileId - return r -} - -// Data file (ID) -func (r ApiExtrasExportTemplatesListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasExportTemplatesListRequest { - r.dataFileIdN = &dataFileIdN - return r -} - -// Data source (ID) -func (r ApiExtrasExportTemplatesListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasExportTemplatesListRequest { - r.dataSourceId = &dataSourceId - return r -} - -// Data source (ID) -func (r ApiExtrasExportTemplatesListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasExportTemplatesListRequest { - r.dataSourceIdN = &dataSourceIdN - return r -} - -func (r ApiExtrasExportTemplatesListRequest) DataSynced(dataSynced []time.Time) ApiExtrasExportTemplatesListRequest { - r.dataSynced = &dataSynced - 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 -} - -func (r ApiExtrasExportTemplatesListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasExportTemplatesListRequest { - r.dataSyncedGte = &dataSyncedGte - return r -} - -func (r ApiExtrasExportTemplatesListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasExportTemplatesListRequest { - r.dataSyncedLt = &dataSyncedLt - return r -} - -func (r ApiExtrasExportTemplatesListRequest) DataSyncedLte(dataSyncedLte []time.Time) ApiExtrasExportTemplatesListRequest { - r.dataSyncedLte = &dataSyncedLte - return r -} - -func (r ApiExtrasExportTemplatesListRequest) DataSyncedN(dataSyncedN []time.Time) ApiExtrasExportTemplatesListRequest { - r.dataSyncedN = &dataSyncedN - return r -} - -func (r ApiExtrasExportTemplatesListRequest) Description(description []string) ApiExtrasExportTemplatesListRequest { - r.description = &description - return r -} - -func (r ApiExtrasExportTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasExportTemplatesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiExtrasExportTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasExportTemplatesListRequest { - r.descriptionIc = &descriptionIc - 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 ApiExtrasExportTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasExportTemplatesListRequest { - r.descriptionIe = &descriptionIe - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasExportTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasExportTemplatesListRequest { - r.descriptionIew = &descriptionIew - return r +type ApiExtrasImageAttachmentsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasExportTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasExportTemplatesListRequest { - r.descriptionIsw = &descriptionIsw - return r +func (r ApiExtrasImageAttachmentsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsDestroyExecute(r) } -func (r ApiExtrasExportTemplatesListRequest) DescriptionN(descriptionN []string) ApiExtrasExportTemplatesListRequest { - r.descriptionN = &descriptionN - return r -} +/* +ExtrasImageAttachmentsDestroy Method for ExtrasImageAttachmentsDestroy -func (r ApiExtrasExportTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasExportTemplatesListRequest { - r.descriptionNic = &descriptionNic - return r -} +Delete a image attachment object. -func (r ApiExtrasExportTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasExportTemplatesListRequest { - r.descriptionNie = &descriptionNie - 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 image attachment. + @return ApiExtrasImageAttachmentsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroy(ctx context.Context, id int32) ApiExtrasImageAttachmentsDestroyRequest { + return ApiExtrasImageAttachmentsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasExportTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasExportTemplatesListRequest { - r.descriptionNiew = &descriptionNiew - return r -} +// Execute executes the request +func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImageAttachmentsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiExtrasExportTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasExportTemplatesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasExportTemplatesListRequest) FileExtension(fileExtension []string) ApiExtrasExportTemplatesListRequest { - r.fileExtension = &fileExtension - return r -} + localVarPath := localBasePath + "/api/extras/image-attachments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasExportTemplatesListRequest) FileExtensionEmpty(fileExtensionEmpty bool) ApiExtrasExportTemplatesListRequest { - r.fileExtensionEmpty = &fileExtensionEmpty - return r + 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 } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionIc(fileExtensionIc []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionIc = &fileExtensionIc - return r +type ApiExtrasImageAttachmentsListRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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 + imageHeight *[]int32 + imageHeightEmpty *bool + imageHeightGt *[]int32 + imageHeightGte *[]int32 + imageHeightLt *[]int32 + imageHeightLte *[]int32 + imageHeightN *[]int32 + imageWidth *[]int32 + imageWidthEmpty *bool + imageWidthGt *[]int32 + imageWidthGte *[]int32 + imageWidthLt *[]int32 + imageWidthLte *[]int32 + imageWidthN *[]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 + objectId *[]int32 + objectIdEmpty *bool + objectIdGt *[]int32 + objectIdGte *[]int32 + objectIdLt *[]int32 + objectIdLte *[]int32 + objectIdN *[]int32 + objectType *string + objectTypeN *string + objectTypeId *int32 + objectTypeIdN *int32 + offset *int32 + ordering *string + q *string + updatedByRequest *string } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionIe(fileExtensionIe []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionIe = &fileExtensionIe +func (r ApiExtrasImageAttachmentsListRequest) Created(created []time.Time) ApiExtrasImageAttachmentsListRequest { + r.created = &created return r } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionIew(fileExtensionIew []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionIew = &fileExtensionIew +func (r ApiExtrasImageAttachmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasImageAttachmentsListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionIsw(fileExtensionIsw []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionIsw = &fileExtensionIsw +func (r ApiExtrasImageAttachmentsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasImageAttachmentsListRequest { + r.createdGt = &createdGt return r } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionN(fileExtensionN []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionN = &fileExtensionN +func (r ApiExtrasImageAttachmentsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasImageAttachmentsListRequest { + r.createdGte = &createdGte return r } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionNic(fileExtensionNic []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionNic = &fileExtensionNic +func (r ApiExtrasImageAttachmentsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasImageAttachmentsListRequest { + r.createdLt = &createdLt return r } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionNie(fileExtensionNie []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionNie = &fileExtensionNie +func (r ApiExtrasImageAttachmentsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasImageAttachmentsListRequest { + r.createdLte = &createdLte return r } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionNiew(fileExtensionNiew []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionNiew = &fileExtensionNiew +func (r ApiExtrasImageAttachmentsListRequest) CreatedN(createdN []time.Time) ApiExtrasImageAttachmentsListRequest { + r.createdN = &createdN return r } -func (r ApiExtrasExportTemplatesListRequest) FileExtensionNisw(fileExtensionNisw []string) ApiExtrasExportTemplatesListRequest { - r.fileExtensionNisw = &fileExtensionNisw +func (r ApiExtrasImageAttachmentsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasImageAttachmentsListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiExtrasExportTemplatesListRequest) Id(id []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) Id(id []int32) ApiExtrasImageAttachmentsListRequest { r.id = &id return r } -func (r ApiExtrasExportTemplatesListRequest) IdEmpty(idEmpty bool) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) IdEmpty(idEmpty bool) ApiExtrasImageAttachmentsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiExtrasExportTemplatesListRequest) IdGt(idGt []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) IdGt(idGt []int32) ApiExtrasImageAttachmentsListRequest { r.idGt = &idGt return r } -func (r ApiExtrasExportTemplatesListRequest) IdGte(idGte []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) IdGte(idGte []int32) ApiExtrasImageAttachmentsListRequest { r.idGte = &idGte return r } -func (r ApiExtrasExportTemplatesListRequest) IdLt(idLt []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) IdLt(idLt []int32) ApiExtrasImageAttachmentsListRequest { r.idLt = &idLt return r } -func (r ApiExtrasExportTemplatesListRequest) IdLte(idLte []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) IdLte(idLte []int32) ApiExtrasImageAttachmentsListRequest { r.idLte = &idLte return r } -func (r ApiExtrasExportTemplatesListRequest) IdN(idN []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) IdN(idN []int32) ApiExtrasImageAttachmentsListRequest { r.idN = &idN return r } -func (r ApiExtrasExportTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasExportTemplatesListRequest { - r.lastUpdated = &lastUpdated +func (r ApiExtrasImageAttachmentsListRequest) ImageHeight(imageHeight []int32) ApiExtrasImageAttachmentsListRequest { + r.imageHeight = &imageHeight return r } -func (r ApiExtrasExportTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasExportTemplatesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiExtrasImageAttachmentsListRequest) ImageHeightEmpty(imageHeightEmpty bool) ApiExtrasImageAttachmentsListRequest { + r.imageHeightEmpty = &imageHeightEmpty return r } -func (r ApiExtrasExportTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasExportTemplatesListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiExtrasImageAttachmentsListRequest) ImageHeightGt(imageHeightGt []int32) ApiExtrasImageAttachmentsListRequest { + r.imageHeightGt = &imageHeightGt return r } -func (r ApiExtrasExportTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasExportTemplatesListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiExtrasImageAttachmentsListRequest) ImageHeightGte(imageHeightGte []int32) ApiExtrasImageAttachmentsListRequest { + r.imageHeightGte = &imageHeightGte return r } -func (r ApiExtrasExportTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasExportTemplatesListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiExtrasImageAttachmentsListRequest) ImageHeightLt(imageHeightLt []int32) ApiExtrasImageAttachmentsListRequest { + r.imageHeightLt = &imageHeightLt return r } -func (r ApiExtrasExportTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasExportTemplatesListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiExtrasImageAttachmentsListRequest) ImageHeightLte(imageHeightLte []int32) ApiExtrasImageAttachmentsListRequest { + r.imageHeightLte = &imageHeightLte return r } -func (r ApiExtrasExportTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasExportTemplatesListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiExtrasImageAttachmentsListRequest) ImageHeightN(imageHeightN []int32) ApiExtrasImageAttachmentsListRequest { + r.imageHeightN = &imageHeightN return r } -// Number of results to return per page. -func (r ApiExtrasExportTemplatesListRequest) Limit(limit int32) ApiExtrasExportTemplatesListRequest { - r.limit = &limit +func (r ApiExtrasImageAttachmentsListRequest) ImageWidth(imageWidth []int32) ApiExtrasImageAttachmentsListRequest { + r.imageWidth = &imageWidth return r } -func (r ApiExtrasExportTemplatesListRequest) MimeType(mimeType []string) ApiExtrasExportTemplatesListRequest { - r.mimeType = &mimeType +func (r ApiExtrasImageAttachmentsListRequest) ImageWidthEmpty(imageWidthEmpty bool) ApiExtrasImageAttachmentsListRequest { + r.imageWidthEmpty = &imageWidthEmpty return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeEmpty(mimeTypeEmpty bool) ApiExtrasExportTemplatesListRequest { - r.mimeTypeEmpty = &mimeTypeEmpty +func (r ApiExtrasImageAttachmentsListRequest) ImageWidthGt(imageWidthGt []int32) ApiExtrasImageAttachmentsListRequest { + r.imageWidthGt = &imageWidthGt return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeIc(mimeTypeIc []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeIc = &mimeTypeIc +func (r ApiExtrasImageAttachmentsListRequest) ImageWidthGte(imageWidthGte []int32) ApiExtrasImageAttachmentsListRequest { + r.imageWidthGte = &imageWidthGte return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeIe(mimeTypeIe []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeIe = &mimeTypeIe +func (r ApiExtrasImageAttachmentsListRequest) ImageWidthLt(imageWidthLt []int32) ApiExtrasImageAttachmentsListRequest { + r.imageWidthLt = &imageWidthLt return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeIew(mimeTypeIew []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeIew = &mimeTypeIew +func (r ApiExtrasImageAttachmentsListRequest) ImageWidthLte(imageWidthLte []int32) ApiExtrasImageAttachmentsListRequest { + r.imageWidthLte = &imageWidthLte return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeIsw(mimeTypeIsw []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeIsw = &mimeTypeIsw +func (r ApiExtrasImageAttachmentsListRequest) ImageWidthN(imageWidthN []int32) ApiExtrasImageAttachmentsListRequest { + r.imageWidthN = &imageWidthN return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeN(mimeTypeN []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeN = &mimeTypeN +func (r ApiExtrasImageAttachmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasImageAttachmentsListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeNic(mimeTypeNic []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeNic = &mimeTypeNic +func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasImageAttachmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeNie(mimeTypeNie []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeNie = &mimeTypeNie +func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasImageAttachmentsListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeNiew(mimeTypeNiew []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeNiew = &mimeTypeNiew +func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasImageAttachmentsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasImageAttachmentsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasImageAttachmentsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasImageAttachmentsListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiExtrasExportTemplatesListRequest) MimeTypeNisw(mimeTypeNisw []string) ApiExtrasExportTemplatesListRequest { - r.mimeTypeNisw = &mimeTypeNisw +// Number of results to return per page. +func (r ApiExtrasImageAttachmentsListRequest) Limit(limit int32) ApiExtrasImageAttachmentsListRequest { + r.limit = &limit return r } -func (r ApiExtrasExportTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasImageAttachmentsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiExtrasExportTemplatesListRequest) Name(name []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) Name(name []string) ApiExtrasImageAttachmentsListRequest { r.name = &name return r } -func (r ApiExtrasExportTemplatesListRequest) NameEmpty(nameEmpty bool) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameEmpty(nameEmpty bool) ApiExtrasImageAttachmentsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiExtrasExportTemplatesListRequest) NameIc(nameIc []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameIc(nameIc []string) ApiExtrasImageAttachmentsListRequest { r.nameIc = &nameIc return r } -func (r ApiExtrasExportTemplatesListRequest) NameIe(nameIe []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameIe(nameIe []string) ApiExtrasImageAttachmentsListRequest { r.nameIe = &nameIe return r } -func (r ApiExtrasExportTemplatesListRequest) NameIew(nameIew []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameIew(nameIew []string) ApiExtrasImageAttachmentsListRequest { r.nameIew = &nameIew return r } -func (r ApiExtrasExportTemplatesListRequest) NameIsw(nameIsw []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameIsw(nameIsw []string) ApiExtrasImageAttachmentsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiExtrasExportTemplatesListRequest) NameN(nameN []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameN(nameN []string) ApiExtrasImageAttachmentsListRequest { r.nameN = &nameN return r } -func (r ApiExtrasExportTemplatesListRequest) NameNic(nameNic []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameNic(nameNic []string) ApiExtrasImageAttachmentsListRequest { r.nameNic = &nameNic return r } -func (r ApiExtrasExportTemplatesListRequest) NameNie(nameNie []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameNie(nameNie []string) ApiExtrasImageAttachmentsListRequest { r.nameNie = &nameNie return r } -func (r ApiExtrasExportTemplatesListRequest) NameNiew(nameNiew []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameNiew(nameNiew []string) ApiExtrasImageAttachmentsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiExtrasExportTemplatesListRequest) NameNisw(nameNisw []string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) NameNisw(nameNisw []string) ApiExtrasImageAttachmentsListRequest { r.nameNisw = &nameNisw return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectType(objectType string) ApiExtrasExportTemplatesListRequest { - r.objectType = &objectType - return r -} - -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasExportTemplatesListRequest { - r.objectTypeIc = &objectTypeIc +func (r ApiExtrasImageAttachmentsListRequest) ObjectId(objectId []int32) ApiExtrasImageAttachmentsListRequest { + r.objectId = &objectId return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasExportTemplatesListRequest { - r.objectTypeIe = &objectTypeIe +func (r ApiExtrasImageAttachmentsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasImageAttachmentsListRequest { + r.objectIdEmpty = &objectIdEmpty return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasExportTemplatesListRequest { - r.objectTypeIew = &objectTypeIew +func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasImageAttachmentsListRequest { + r.objectIdGt = &objectIdGt return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasExportTemplatesListRequest { - r.objectTypeIsw = &objectTypeIsw +func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasImageAttachmentsListRequest { + r.objectIdGte = &objectIdGte return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeN(objectTypeN string) ApiExtrasExportTemplatesListRequest { - r.objectTypeN = &objectTypeN +func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasImageAttachmentsListRequest { + r.objectIdLt = &objectIdLt return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasExportTemplatesListRequest { - r.objectTypeNic = &objectTypeNic +func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasImageAttachmentsListRequest { + r.objectIdLte = &objectIdLte return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasExportTemplatesListRequest { - r.objectTypeNie = &objectTypeNie +func (r ApiExtrasImageAttachmentsListRequest) ObjectIdN(objectIdN []int32) ApiExtrasImageAttachmentsListRequest { + r.objectIdN = &objectIdN return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasExportTemplatesListRequest { - r.objectTypeNiew = &objectTypeNiew +func (r ApiExtrasImageAttachmentsListRequest) ObjectType(objectType string) ApiExtrasImageAttachmentsListRequest { + r.objectType = &objectType return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasExportTemplatesListRequest { - r.objectTypeNisw = &objectTypeNisw +func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasImageAttachmentsListRequest { + r.objectTypeN = &objectTypeN return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeId(objectTypeId int32) ApiExtrasImageAttachmentsListRequest { r.objectTypeId = &objectTypeId return r } -func (r ApiExtrasExportTemplatesListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeIdN(objectTypeIdN int32) ApiExtrasImageAttachmentsListRequest { r.objectTypeIdN = &objectTypeIdN return r } // The initial index from which to return the results. -func (r ApiExtrasExportTemplatesListRequest) Offset(offset int32) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) Offset(offset int32) ApiExtrasImageAttachmentsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiExtrasExportTemplatesListRequest) Ordering(ordering string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) Ordering(ordering string) ApiExtrasImageAttachmentsListRequest { r.ordering = &ordering return r } // Search -func (r ApiExtrasExportTemplatesListRequest) Q(q string) ApiExtrasExportTemplatesListRequest { +func (r ApiExtrasImageAttachmentsListRequest) Q(q string) ApiExtrasImageAttachmentsListRequest { r.q = &q return r -} - -func (r ApiExtrasExportTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasExportTemplatesListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiExtrasExportTemplatesListRequest) Execute() (*PaginatedExportTemplateList, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesListExecute(r) -} - -/* -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 -*/ -func (a *ExtrasAPIService) ExtrasExportTemplatesList(ctx context.Context) ApiExtrasExportTemplatesListRequest { - return ApiExtrasExportTemplatesListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedExportTemplateList -func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTemplatesListRequest) (*PaginatedExportTemplateList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedExportTemplateList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/export-templates/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.asAttachment != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "as_attachment", r.asAttachment, "") - } - if r.autoSyncEnabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auto_sync_enabled", r.autoSyncEnabled, "") - } - 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") - } +} + +func (r ApiExtrasImageAttachmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasImageAttachmentsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiExtrasImageAttachmentsListRequest) Execute() (*PaginatedImageAttachmentList, *http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsListExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasImageAttachmentsList(ctx context.Context) ApiExtrasImageAttachmentsListRequest { + return ApiExtrasImageAttachmentsListRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return PaginatedImageAttachmentList +func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAttachmentsListRequest) (*PaginatedImageAttachmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedImageAttachmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.dataSyncedLte != nil { - t := *r.dataSyncedLte + + localVarPath := localBasePath + "/api/extras/image-attachments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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, "data_synced__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.dataSyncedN != nil { - t := *r.dataSyncedN + 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, "data_synced__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.description != nil { - t := *r.description + 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc + 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, "description__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } - 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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.descriptionNic != nil { - t := *r.descriptionNic + 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "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.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.fileExtension != nil { - t := *r.fileExtension + 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, "file_extension", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.fileExtensionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__empty", r.fileExtensionEmpty, "") - } - if r.fileExtensionIc != nil { - t := *r.fileExtensionIc + 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, "file_extension__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.fileExtensionIe != nil { - t := *r.fileExtensionIe + 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, "file_extension__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.fileExtensionIew != nil { - t := *r.fileExtensionIew + if r.imageHeight != nil { + t := *r.imageHeight if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height", t, "form", "multi") } } - if r.fileExtensionIsw != nil { - t := *r.fileExtensionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__isw", t, "multi") - } + if r.imageHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__empty", r.imageHeightEmpty, "form", "") } - if r.fileExtensionN != nil { - t := *r.fileExtensionN + if r.imageHeightGt != nil { + t := *r.imageHeightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gt", t, "form", "multi") } } - if r.fileExtensionNic != nil { - t := *r.fileExtensionNic + if r.imageHeightGte != nil { + t := *r.imageHeightGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gte", t, "form", "multi") } } - if r.fileExtensionNie != nil { - t := *r.fileExtensionNie + if r.imageHeightLt != nil { + t := *r.imageHeightLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lt", t, "form", "multi") } } - if r.fileExtensionNiew != nil { - t := *r.fileExtensionNiew + if r.imageHeightLte != nil { + t := *r.imageHeightLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lte", t, "form", "multi") } } - if r.fileExtensionNisw != nil { - t := *r.fileExtensionNisw + if r.imageHeightN != nil { + t := *r.imageHeightN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "file_extension__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__n", t, "form", "multi") } } - if r.id != nil { - t := *r.id + if r.imageWidth != nil { + t := *r.imageWidth 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.imageWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__empty", r.imageWidthEmpty, "form", "") } - if r.idGt != nil { - t := *r.idGt + if r.imageWidthGt != nil { + t := *r.imageWidthGt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gt", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.imageWidthGte != nil { + t := *r.imageWidthGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gte", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.imageWidthLt != nil { + t := *r.imageWidthLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lt", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.imageWidthLte != nil { + t := *r.imageWidthLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lte", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.imageWidthN != nil { + t := *r.imageWidthN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -19104,10 +23750,10 @@ 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -19115,10 +23761,10 @@ 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -19126,10 +23772,10 @@ 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -19137,10 +23783,10 @@ 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -19148,10 +23794,10 @@ 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -19159,10 +23805,10 @@ 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -19170,307 +23816,223 @@ 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.mimeType != nil { - t := *r.mimeType - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type", t, "multi") - } - } - if r.mimeTypeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__empty", r.mimeTypeEmpty, "") - } - if r.mimeTypeIc != nil { - t := *r.mimeTypeIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ic", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.mimeTypeIe != nil { - t := *r.mimeTypeIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__ie", t, "multi") - } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.mimeTypeIew != nil { - t := *r.mimeTypeIew + 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, "mime_type__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.mimeTypeIsw != nil { - t := *r.mimeTypeIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__isw", t, "multi") - } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.mimeTypeN != nil { - t := *r.mimeTypeN + 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, "mime_type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.mimeTypeNic != nil { - t := *r.mimeTypeNic + 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, "mime_type__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.mimeTypeNie != nil { - t := *r.mimeTypeNie + 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, "mime_type__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.mimeTypeNiew != nil { - t := *r.mimeTypeNiew + 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, "mime_type__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.mimeTypeNisw != nil { - t := *r.mimeTypeNisw + 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, "mime_type__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mime_type__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name + 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + 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__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + 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__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + 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, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.objectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "form", "") + } + 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, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "form", "multi") } } if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") - } - if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") - } - if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") - } - if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") - } - if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") } if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") - } - if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") - } - if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") - } - if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") - } - if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") } 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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", r.objectTypeId, "form", "") } 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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", r.objectTypeIdN, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19540,56 +24102,55 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasExportTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedExportTemplateRequest *PatchedExportTemplateRequest +type ApiExtrasImageAttachmentsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedImageAttachmentRequest *PatchedImageAttachmentRequest } -func (r ApiExtrasExportTemplatesPartialUpdateRequest) PatchedExportTemplateRequest(patchedExportTemplateRequest PatchedExportTemplateRequest) ApiExtrasExportTemplatesPartialUpdateRequest { - r.patchedExportTemplateRequest = &patchedExportTemplateRequest +func (r ApiExtrasImageAttachmentsPartialUpdateRequest) PatchedImageAttachmentRequest(patchedImageAttachmentRequest PatchedImageAttachmentRequest) ApiExtrasImageAttachmentsPartialUpdateRequest { + r.patchedImageAttachmentRequest = &patchedImageAttachmentRequest return r } -func (r ApiExtrasExportTemplatesPartialUpdateRequest) Execute() (*ExportTemplate, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesPartialUpdateExecute(r) +func (r ApiExtrasImageAttachmentsPartialUpdateRequest) Execute() (*ImageAttachment, *http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsPartialUpdateExecute(r) } /* -ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate +ExtrasImageAttachmentsPartialUpdate Method for ExtrasImageAttachmentsPartialUpdate -Patch a export template object. +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 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 image attachment. + @return ApiExtrasImageAttachmentsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest { - return ApiExtrasExportTemplatesPartialUpdateRequest{ +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 ExportTemplate -func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtrasImageAttachmentsPartialUpdateRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/{id}/" + localVarPath := localBasePath + "/api/extras/image-attachments/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -19614,7 +24175,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtras localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedExportTemplateRequest + localVarPostBody = r.patchedImageAttachmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19666,50 +24227,49 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtras return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasExportTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasImageAttachmentsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasExportTemplatesRetrieveRequest) Execute() (*ExportTemplate, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesRetrieveExecute(r) +func (r ApiExtrasImageAttachmentsRetrieveRequest) Execute() (*ImageAttachment, *http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsRetrieveExecute(r) } /* -ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve +ExtrasImageAttachmentsRetrieve Method for ExtrasImageAttachmentsRetrieve -Get a export template object. +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 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 image attachment. + @return ApiExtrasImageAttachmentsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest { - return ApiExtrasExportTemplatesRetrieveRequest{ +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 ExportTemplate -func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImageAttachmentsRetrieveRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/{id}/" + localVarPath := localBasePath + "/api/extras/image-attachments/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -19784,192 +24344,62 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExpor return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasExportTemplatesSyncCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - exportTemplateRequest *ExportTemplateRequest -} - -func (r ApiExtrasExportTemplatesSyncCreateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesSyncCreateRequest { - r.exportTemplateRequest = &exportTemplateRequest - return r -} - -func (r ApiExtrasExportTemplatesSyncCreateRequest) Execute() (*ExportTemplate, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesSyncCreateExecute(r) -} - -/* -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 -*/ -func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasExportTemplatesSyncCreateRequest { - return ApiExtrasExportTemplatesSyncCreateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return ExportTemplate -func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExportTemplatesSyncCreateRequest) (*ExportTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesSyncCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/export-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.exportTemplateRequest == nil { - return localVarReturnValue, nil, reportError("exportTemplateRequest 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.exportTemplateRequest - 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 ApiExtrasExportTemplatesUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - exportTemplateRequest *ExportTemplateRequest +type ApiExtrasImageAttachmentsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + imageAttachmentRequest *ImageAttachmentRequest } -func (r ApiExtrasExportTemplatesUpdateRequest) ExportTemplateRequest(exportTemplateRequest ExportTemplateRequest) ApiExtrasExportTemplatesUpdateRequest { - r.exportTemplateRequest = &exportTemplateRequest +func (r ApiExtrasImageAttachmentsUpdateRequest) ImageAttachmentRequest(imageAttachmentRequest ImageAttachmentRequest) ApiExtrasImageAttachmentsUpdateRequest { + r.imageAttachmentRequest = &imageAttachmentRequest return r } -func (r ApiExtrasExportTemplatesUpdateRequest) Execute() (*ExportTemplate, *http.Response, error) { - return r.ApiService.ExtrasExportTemplatesUpdateExecute(r) +func (r ApiExtrasImageAttachmentsUpdateRequest) Execute() (*ImageAttachment, *http.Response, error) { + return r.ApiService.ExtrasImageAttachmentsUpdateExecute(r) } /* -ExtrasExportTemplatesUpdate Method for ExtrasExportTemplatesUpdate +ExtrasImageAttachmentsUpdate Method for ExtrasImageAttachmentsUpdate -Put a export template object. +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 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 image attachment. + @return ApiExtrasImageAttachmentsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasExportTemplatesUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesUpdateRequest { - return ApiExtrasExportTemplatesUpdateRequest{ +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 ExportTemplate -func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportTemplatesUpdateRequest) (*ExportTemplate, *http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageAttachmentsUpdateRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/export-templates/{id}/" + localVarPath := localBasePath + "/api/extras/image-attachments/{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.exportTemplateRequest == nil { - return localVarReturnValue, nil, reportError("exportTemplateRequest is required and must be specified") + if r.imageAttachmentRequest == nil { + return localVarReturnValue, nil, reportError("imageAttachmentRequest is required and must be specified") } // to determine the Content-Type header @@ -19990,7 +24420,7 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.exportTemplateRequest + localVarPostBody = r.imageAttachmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20042,56 +24472,56 @@ func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - imageAttachmentRequest *[]ImageAttachmentRequest +type ApiExtrasJournalEntriesBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + journalEntryRequest *[]JournalEntryRequest } -func (r ApiExtrasImageAttachmentsBulkDestroyRequest) ImageAttachmentRequest(imageAttachmentRequest []ImageAttachmentRequest) ApiExtrasImageAttachmentsBulkDestroyRequest { - r.imageAttachmentRequest = &imageAttachmentRequest +func (r ApiExtrasJournalEntriesBulkDestroyRequest) JournalEntryRequest(journalEntryRequest []JournalEntryRequest) ApiExtrasJournalEntriesBulkDestroyRequest { + r.journalEntryRequest = &journalEntryRequest return r } -func (r ApiExtrasImageAttachmentsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsBulkDestroyExecute(r) +func (r ApiExtrasJournalEntriesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasJournalEntriesBulkDestroyExecute(r) } /* -ExtrasImageAttachmentsBulkDestroy Method for ExtrasImageAttachmentsBulkDestroy +ExtrasJournalEntriesBulkDestroy Method for ExtrasJournalEntriesBulkDestroy -Delete a list of image attachment objects. +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 ApiExtrasImageAttachmentsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroy(ctx context.Context) ApiExtrasImageAttachmentsBulkDestroyRequest { - return ApiExtrasImageAttachmentsBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroy(ctx context.Context) ApiExtrasJournalEntriesBulkDestroyRequest { + return ApiExtrasJournalEntriesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasImageAttachmentsBulkDestroyRequest) (*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.ExtrasImageAttachmentsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/" + localVarPath := localBasePath + "/api/extras/journal-entries/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.imageAttachmentRequest == nil { - return nil, reportError("imageAttachmentRequest is required and must be specified") + if r.journalEntryRequest == nil { + return nil, reportError("journalEntryRequest is required and must be specified") } // to determine the Content-Type header @@ -20112,7 +24542,7 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.imageAttachmentRequest + localVarPostBody = r.journalEntryRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20155,59 +24585,58 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasI return localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - imageAttachmentRequest *[]ImageAttachmentRequest +type ApiExtrasJournalEntriesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + journalEntryRequest *[]JournalEntryRequest } -func (r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ImageAttachmentRequest(imageAttachmentRequest []ImageAttachmentRequest) ApiExtrasImageAttachmentsBulkPartialUpdateRequest { - r.imageAttachmentRequest = &imageAttachmentRequest +func (r ApiExtrasJournalEntriesBulkPartialUpdateRequest) JournalEntryRequest(journalEntryRequest []JournalEntryRequest) ApiExtrasJournalEntriesBulkPartialUpdateRequest { + r.journalEntryRequest = &journalEntryRequest return r } -func (r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) Execute() ([]ImageAttachment, *http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsBulkPartialUpdateExecute(r) +func (r ApiExtrasJournalEntriesBulkPartialUpdateRequest) Execute() ([]JournalEntry, *http.Response, error) { + return r.ApiService.ExtrasJournalEntriesBulkPartialUpdateExecute(r) } /* -ExtrasImageAttachmentsBulkPartialUpdate Method for ExtrasImageAttachmentsBulkPartialUpdate +ExtrasJournalEntriesBulkPartialUpdate Method for ExtrasJournalEntriesBulkPartialUpdate -Patch a list of image attachment objects. +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 ApiExtrasImageAttachmentsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkPartialUpdateRequest { - return ApiExtrasImageAttachmentsBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkPartialUpdateRequest { + return ApiExtrasJournalEntriesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ImageAttachment -func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ([]ImageAttachment, *http.Response, error) { +// @return []JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExtrasJournalEntriesBulkPartialUpdateRequest) ([]JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ImageAttachment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/" + localVarPath := localBasePath + "/api/extras/journal-entries/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.imageAttachmentRequest == nil { - return localVarReturnValue, nil, reportError("imageAttachmentRequest is required and must be specified") + if r.journalEntryRequest == nil { + return localVarReturnValue, nil, reportError("journalEntryRequest is required and must be specified") } // to determine the Content-Type header @@ -20228,7 +24657,7 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.imageAttachmentRequest + localVarPostBody = r.journalEntryRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20280,59 +24709,58 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - imageAttachmentRequest *[]ImageAttachmentRequest +type ApiExtrasJournalEntriesBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + journalEntryRequest *[]JournalEntryRequest } -func (r ApiExtrasImageAttachmentsBulkUpdateRequest) ImageAttachmentRequest(imageAttachmentRequest []ImageAttachmentRequest) ApiExtrasImageAttachmentsBulkUpdateRequest { - r.imageAttachmentRequest = &imageAttachmentRequest +func (r ApiExtrasJournalEntriesBulkUpdateRequest) JournalEntryRequest(journalEntryRequest []JournalEntryRequest) ApiExtrasJournalEntriesBulkUpdateRequest { + r.journalEntryRequest = &journalEntryRequest return r } -func (r ApiExtrasImageAttachmentsBulkUpdateRequest) Execute() ([]ImageAttachment, *http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsBulkUpdateExecute(r) +func (r ApiExtrasJournalEntriesBulkUpdateRequest) Execute() ([]JournalEntry, *http.Response, error) { + return r.ApiService.ExtrasJournalEntriesBulkUpdateExecute(r) } /* -ExtrasImageAttachmentsBulkUpdate Method for ExtrasImageAttachmentsBulkUpdate +ExtrasJournalEntriesBulkUpdate Method for ExtrasJournalEntriesBulkUpdate -Put a list of image attachment objects. +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 ApiExtrasImageAttachmentsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkUpdateRequest { - return ApiExtrasImageAttachmentsBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkUpdateRequest { + return ApiExtrasJournalEntriesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ImageAttachment -func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasImageAttachmentsBulkUpdateRequest) ([]ImageAttachment, *http.Response, error) { +// @return []JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJournalEntriesBulkUpdateRequest) ([]JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ImageAttachment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/" + localVarPath := localBasePath + "/api/extras/journal-entries/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.imageAttachmentRequest == nil { - return localVarReturnValue, nil, reportError("imageAttachmentRequest is required and must be specified") + if r.journalEntryRequest == nil { + return localVarReturnValue, nil, reportError("journalEntryRequest is required and must be specified") } // to determine the Content-Type header @@ -20353,7 +24781,7 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasIm localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.imageAttachmentRequest + localVarPostBody = r.journalEntryRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20405,59 +24833,58 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasIm return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - imageAttachmentRequest *ImageAttachmentRequest +type ApiExtrasJournalEntriesCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + writableJournalEntryRequest *WritableJournalEntryRequest } -func (r ApiExtrasImageAttachmentsCreateRequest) ImageAttachmentRequest(imageAttachmentRequest ImageAttachmentRequest) ApiExtrasImageAttachmentsCreateRequest { - r.imageAttachmentRequest = &imageAttachmentRequest +func (r ApiExtrasJournalEntriesCreateRequest) WritableJournalEntryRequest(writableJournalEntryRequest WritableJournalEntryRequest) ApiExtrasJournalEntriesCreateRequest { + r.writableJournalEntryRequest = &writableJournalEntryRequest return r } -func (r ApiExtrasImageAttachmentsCreateRequest) Execute() (*ImageAttachment, *http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsCreateExecute(r) +func (r ApiExtrasJournalEntriesCreateRequest) Execute() (*JournalEntry, *http.Response, error) { + return r.ApiService.ExtrasJournalEntriesCreateExecute(r) } /* -ExtrasImageAttachmentsCreate Method for ExtrasImageAttachmentsCreate +ExtrasJournalEntriesCreate Method for ExtrasJournalEntriesCreate -Post a list of image attachment objects. +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 ApiExtrasImageAttachmentsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesCreateRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsCreate(ctx context.Context) ApiExtrasImageAttachmentsCreateRequest { - return ApiExtrasImageAttachmentsCreateRequest{ +func (a *ExtrasAPIService) ExtrasJournalEntriesCreate(ctx context.Context) ApiExtrasJournalEntriesCreateRequest { + return ApiExtrasJournalEntriesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ImageAttachment -func (a *ExtrasAPIService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageAttachmentsCreateRequest) (*ImageAttachment, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalEntriesCreateRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/" + localVarPath := localBasePath + "/api/extras/journal-entries/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.imageAttachmentRequest == nil { - return localVarReturnValue, nil, reportError("imageAttachmentRequest is required and must be specified") + if r.writableJournalEntryRequest == nil { + return localVarReturnValue, nil, reportError("writableJournalEntryRequest is required and must be specified") } // to determine the Content-Type header @@ -20478,7 +24905,7 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageA localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.imageAttachmentRequest + localVarPostBody = r.writableJournalEntryRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20530,47 +24957,47 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageA return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasJournalEntriesDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasImageAttachmentsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsDestroyExecute(r) +func (r ApiExtrasJournalEntriesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasJournalEntriesDestroyExecute(r) } /* -ExtrasImageAttachmentsDestroy Method for ExtrasImageAttachmentsDestroy +ExtrasJournalEntriesDestroy Method for ExtrasJournalEntriesDestroy -Delete a image attachment object. +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 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 journal entry. + @return ApiExtrasJournalEntriesDestroyRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroy(ctx context.Context, id int32) ApiExtrasImageAttachmentsDestroyRequest { - return ApiExtrasImageAttachmentsDestroyRequest{ +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) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImageAttachmentsDestroyRequest) (*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.ExtrasImageAttachmentsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/{id}/" + localVarPath := localBasePath + "/api/extras/journal-entries/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -20589,1062 +25016,860 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImage // 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 ApiExtrasImageAttachmentsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - 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 - imageHeight *[]int32 - imageHeightEmpty *bool - imageHeightGt *[]int32 - imageHeightGte *[]int32 - imageHeightLt *[]int32 - imageHeightLte *[]int32 - imageHeightN *[]int32 - imageWidth *[]int32 - imageWidthEmpty *bool - imageWidthGt *[]int32 - imageWidthGte *[]int32 - imageWidthLt *[]int32 - imageWidthLte *[]int32 - imageWidthN *[]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 - objectId *[]int32 - objectIdEmpty *bool - objectIdGt *[]int32 - objectIdGte *[]int32 - objectIdLt *[]int32 - objectIdLte *[]int32 - objectIdN *[]int32 - objectType *string - objectTypeN *string - objectTypeId *int32 - objectTypeIdN *int32 - offset *int32 - ordering *string - q *string - updatedByRequest *string -} - -func (r ApiExtrasImageAttachmentsListRequest) Created(created []time.Time) ApiExtrasImageAttachmentsListRequest { - r.created = &created - return r -} - -func (r ApiExtrasImageAttachmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasImageAttachmentsListRequest { - r.createdEmpty = &createdEmpty - return r -} - -func (r ApiExtrasImageAttachmentsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasImageAttachmentsListRequest { - r.createdGt = &createdGt - return r -} - -func (r ApiExtrasImageAttachmentsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasImageAttachmentsListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiExtrasImageAttachmentsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasImageAttachmentsListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiExtrasImageAttachmentsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasImageAttachmentsListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiExtrasImageAttachmentsListRequest) CreatedN(createdN []time.Time) ApiExtrasImageAttachmentsListRequest { - r.createdN = &createdN - return r -} - -func (r ApiExtrasImageAttachmentsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasImageAttachmentsListRequest { - r.createdByRequest = &createdByRequest - 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 nil, err + } -func (r ApiExtrasImageAttachmentsListRequest) Id(id []int32) ApiExtrasImageAttachmentsListRequest { - r.id = &id - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasImageAttachmentsListRequest) IdEmpty(idEmpty bool) ApiExtrasImageAttachmentsListRequest { - r.idEmpty = &idEmpty - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasImageAttachmentsListRequest) IdGt(idGt []int32) ApiExtrasImageAttachmentsListRequest { - r.idGt = &idGt - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -func (r ApiExtrasImageAttachmentsListRequest) IdGte(idGte []int32) ApiExtrasImageAttachmentsListRequest { - r.idGte = &idGte - return r + return localVarHTTPResponse, nil } -func (r ApiExtrasImageAttachmentsListRequest) IdLt(idLt []int32) ApiExtrasImageAttachmentsListRequest { - r.idLt = &idLt - return r +type ApiExtrasJournalEntriesListRequest struct { + ctx context.Context + ApiService ExtrasAPI + 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 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + kind *[]string + kindEmpty *bool + kindIc *[]string + kindIe *[]string + kindIew *[]string + kindIsw *[]string + kindN *[]string + kindNic *[]string + kindNie *[]string + kindNiew *[]string + kindNisw *[]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 ApiExtrasImageAttachmentsListRequest) IdLte(idLte []int32) ApiExtrasImageAttachmentsListRequest { - r.idLte = &idLte +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectId(assignedObjectId []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectId = &assignedObjectId return r } -func (r ApiExtrasImageAttachmentsListRequest) IdN(idN []int32) ApiExtrasImageAttachmentsListRequest { - r.idN = &idN +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdEmpty(assignedObjectIdEmpty bool) ApiExtrasJournalEntriesListRequest { + r.assignedObjectIdEmpty = &assignedObjectIdEmpty return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageHeight(imageHeight []int32) ApiExtrasImageAttachmentsListRequest { - r.imageHeight = &imageHeight +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdGt(assignedObjectIdGt []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectIdGt = &assignedObjectIdGt return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageHeightEmpty(imageHeightEmpty bool) ApiExtrasImageAttachmentsListRequest { - r.imageHeightEmpty = &imageHeightEmpty +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdGte(assignedObjectIdGte []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectIdGte = &assignedObjectIdGte return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageHeightGt(imageHeightGt []int32) ApiExtrasImageAttachmentsListRequest { - r.imageHeightGt = &imageHeightGt +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdLt(assignedObjectIdLt []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectIdLt = &assignedObjectIdLt return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageHeightGte(imageHeightGte []int32) ApiExtrasImageAttachmentsListRequest { - r.imageHeightGte = &imageHeightGte +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdLte(assignedObjectIdLte []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectIdLte = &assignedObjectIdLte return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageHeightLt(imageHeightLt []int32) ApiExtrasImageAttachmentsListRequest { - r.imageHeightLt = &imageHeightLt +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdN(assignedObjectIdN []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectIdN = &assignedObjectIdN return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageHeightLte(imageHeightLte []int32) ApiExtrasImageAttachmentsListRequest { - r.imageHeightLte = &imageHeightLte +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectType(assignedObjectType string) ApiExtrasJournalEntriesListRequest { + r.assignedObjectType = &assignedObjectType return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageHeightN(imageHeightN []int32) ApiExtrasImageAttachmentsListRequest { - r.imageHeightN = &imageHeightN +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectTypeN(assignedObjectTypeN string) ApiExtrasJournalEntriesListRequest { + r.assignedObjectTypeN = &assignedObjectTypeN return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageWidth(imageWidth []int32) ApiExtrasImageAttachmentsListRequest { - r.imageWidth = &imageWidth +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectTypeId(assignedObjectTypeId []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectTypeId = &assignedObjectTypeId return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageWidthEmpty(imageWidthEmpty bool) ApiExtrasImageAttachmentsListRequest { - r.imageWidthEmpty = &imageWidthEmpty +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectTypeIdN(assignedObjectTypeIdN []int32) ApiExtrasJournalEntriesListRequest { + r.assignedObjectTypeIdN = &assignedObjectTypeIdN return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageWidthGt(imageWidthGt []int32) ApiExtrasImageAttachmentsListRequest { - r.imageWidthGt = &imageWidthGt +func (r ApiExtrasJournalEntriesListRequest) CreatedAfter(createdAfter time.Time) ApiExtrasJournalEntriesListRequest { + r.createdAfter = &createdAfter return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageWidthGte(imageWidthGte []int32) ApiExtrasImageAttachmentsListRequest { - r.imageWidthGte = &imageWidthGte +func (r ApiExtrasJournalEntriesListRequest) CreatedBefore(createdBefore time.Time) ApiExtrasJournalEntriesListRequest { + r.createdBefore = &createdBefore return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageWidthLt(imageWidthLt []int32) ApiExtrasImageAttachmentsListRequest { - r.imageWidthLt = &imageWidthLt +// User (name) +func (r ApiExtrasJournalEntriesListRequest) CreatedBy(createdBy []string) ApiExtrasJournalEntriesListRequest { + r.createdBy = &createdBy return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageWidthLte(imageWidthLte []int32) ApiExtrasImageAttachmentsListRequest { - r.imageWidthLte = &imageWidthLte +// User (name) +func (r ApiExtrasJournalEntriesListRequest) CreatedByN(createdByN []string) ApiExtrasJournalEntriesListRequest { + r.createdByN = &createdByN return r } -func (r ApiExtrasImageAttachmentsListRequest) ImageWidthN(imageWidthN []int32) ApiExtrasImageAttachmentsListRequest { - r.imageWidthN = &imageWidthN +// User (ID) +func (r ApiExtrasJournalEntriesListRequest) CreatedById(createdById []*int32) ApiExtrasJournalEntriesListRequest { + r.createdById = &createdById return r } -func (r ApiExtrasImageAttachmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasImageAttachmentsListRequest { - r.lastUpdated = &lastUpdated +// User (ID) +func (r ApiExtrasJournalEntriesListRequest) CreatedByIdN(createdByIdN []*int32) ApiExtrasJournalEntriesListRequest { + r.createdByIdN = &createdByIdN return r } -func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasImageAttachmentsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiExtrasJournalEntriesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasJournalEntriesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasImageAttachmentsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiExtrasJournalEntriesListRequest) Id(id []int32) ApiExtrasJournalEntriesListRequest { + r.id = &id return r } -func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasImageAttachmentsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiExtrasJournalEntriesListRequest) IdEmpty(idEmpty bool) ApiExtrasJournalEntriesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasImageAttachmentsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiExtrasJournalEntriesListRequest) IdGt(idGt []int32) ApiExtrasJournalEntriesListRequest { + r.idGt = &idGt return r } -func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasImageAttachmentsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiExtrasJournalEntriesListRequest) IdGte(idGte []int32) ApiExtrasJournalEntriesListRequest { + r.idGte = &idGte return r } -func (r ApiExtrasImageAttachmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasImageAttachmentsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiExtrasJournalEntriesListRequest) IdLt(idLt []int32) ApiExtrasJournalEntriesListRequest { + r.idLt = &idLt return r } -// Number of results to return per page. -func (r ApiExtrasImageAttachmentsListRequest) Limit(limit int32) ApiExtrasImageAttachmentsListRequest { - r.limit = &limit +func (r ApiExtrasJournalEntriesListRequest) IdLte(idLte []int32) ApiExtrasJournalEntriesListRequest { + r.idLte = &idLte return r } -func (r ApiExtrasImageAttachmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasImageAttachmentsListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiExtrasJournalEntriesListRequest) IdN(idN []int32) ApiExtrasJournalEntriesListRequest { + r.idN = &idN return r } -func (r ApiExtrasImageAttachmentsListRequest) Name(name []string) ApiExtrasImageAttachmentsListRequest { - r.name = &name +func (r ApiExtrasJournalEntriesListRequest) Kind(kind []string) ApiExtrasJournalEntriesListRequest { + r.kind = &kind return r } -func (r ApiExtrasImageAttachmentsListRequest) NameEmpty(nameEmpty bool) ApiExtrasImageAttachmentsListRequest { - r.nameEmpty = &nameEmpty +func (r ApiExtrasJournalEntriesListRequest) KindEmpty(kindEmpty bool) ApiExtrasJournalEntriesListRequest { + r.kindEmpty = &kindEmpty return r } -func (r ApiExtrasImageAttachmentsListRequest) NameIc(nameIc []string) ApiExtrasImageAttachmentsListRequest { - r.nameIc = &nameIc +func (r ApiExtrasJournalEntriesListRequest) KindIc(kindIc []string) ApiExtrasJournalEntriesListRequest { + r.kindIc = &kindIc return r } -func (r ApiExtrasImageAttachmentsListRequest) NameIe(nameIe []string) ApiExtrasImageAttachmentsListRequest { - r.nameIe = &nameIe +func (r ApiExtrasJournalEntriesListRequest) KindIe(kindIe []string) ApiExtrasJournalEntriesListRequest { + r.kindIe = &kindIe return r } -func (r ApiExtrasImageAttachmentsListRequest) NameIew(nameIew []string) ApiExtrasImageAttachmentsListRequest { - r.nameIew = &nameIew +func (r ApiExtrasJournalEntriesListRequest) KindIew(kindIew []string) ApiExtrasJournalEntriesListRequest { + r.kindIew = &kindIew return r } -func (r ApiExtrasImageAttachmentsListRequest) NameIsw(nameIsw []string) ApiExtrasImageAttachmentsListRequest { - r.nameIsw = &nameIsw +func (r ApiExtrasJournalEntriesListRequest) KindIsw(kindIsw []string) ApiExtrasJournalEntriesListRequest { + r.kindIsw = &kindIsw return r } -func (r ApiExtrasImageAttachmentsListRequest) NameN(nameN []string) ApiExtrasImageAttachmentsListRequest { - r.nameN = &nameN +func (r ApiExtrasJournalEntriesListRequest) KindN(kindN []string) ApiExtrasJournalEntriesListRequest { + r.kindN = &kindN return r } -func (r ApiExtrasImageAttachmentsListRequest) NameNic(nameNic []string) ApiExtrasImageAttachmentsListRequest { - r.nameNic = &nameNic +func (r ApiExtrasJournalEntriesListRequest) KindNic(kindNic []string) ApiExtrasJournalEntriesListRequest { + r.kindNic = &kindNic return r } -func (r ApiExtrasImageAttachmentsListRequest) NameNie(nameNie []string) ApiExtrasImageAttachmentsListRequest { - r.nameNie = &nameNie +func (r ApiExtrasJournalEntriesListRequest) KindNie(kindNie []string) ApiExtrasJournalEntriesListRequest { + r.kindNie = &kindNie return r } -func (r ApiExtrasImageAttachmentsListRequest) NameNiew(nameNiew []string) ApiExtrasImageAttachmentsListRequest { - r.nameNiew = &nameNiew +func (r ApiExtrasJournalEntriesListRequest) KindNiew(kindNiew []string) ApiExtrasJournalEntriesListRequest { + r.kindNiew = &kindNiew return r } -func (r ApiExtrasImageAttachmentsListRequest) NameNisw(nameNisw []string) ApiExtrasImageAttachmentsListRequest { - r.nameNisw = &nameNisw +func (r ApiExtrasJournalEntriesListRequest) KindNisw(kindNisw []string) ApiExtrasJournalEntriesListRequest { + r.kindNisw = &kindNisw return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectId(objectId []int32) ApiExtrasImageAttachmentsListRequest { - r.objectId = &objectId +func (r ApiExtrasJournalEntriesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasImageAttachmentsListRequest { - r.objectIdEmpty = &objectIdEmpty +func (r ApiExtrasJournalEntriesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasImageAttachmentsListRequest { - r.objectIdGt = &objectIdGt +func (r ApiExtrasJournalEntriesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasImageAttachmentsListRequest { - r.objectIdGte = &objectIdGte +func (r ApiExtrasJournalEntriesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasImageAttachmentsListRequest { - r.objectIdLt = &objectIdLt +func (r ApiExtrasJournalEntriesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasImageAttachmentsListRequest { - r.objectIdLte = &objectIdLte +func (r ApiExtrasJournalEntriesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectIdN(objectIdN []int32) ApiExtrasImageAttachmentsListRequest { - r.objectIdN = &objectIdN +func (r ApiExtrasJournalEntriesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectType(objectType string) ApiExtrasImageAttachmentsListRequest { - r.objectType = &objectType +// Number of results to return per page. +func (r ApiExtrasJournalEntriesListRequest) Limit(limit int32) ApiExtrasJournalEntriesListRequest { + r.limit = &limit return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeN(objectTypeN string) ApiExtrasImageAttachmentsListRequest { - r.objectTypeN = &objectTypeN +func (r ApiExtrasJournalEntriesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasJournalEntriesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeId(objectTypeId int32) ApiExtrasImageAttachmentsListRequest { - r.objectTypeId = &objectTypeId +// The initial index from which to return the results. +func (r ApiExtrasJournalEntriesListRequest) Offset(offset int32) ApiExtrasJournalEntriesListRequest { + r.offset = &offset return r } -func (r ApiExtrasImageAttachmentsListRequest) ObjectTypeIdN(objectTypeIdN int32) ApiExtrasImageAttachmentsListRequest { - r.objectTypeIdN = &objectTypeIdN +// Which field to use when ordering the results. +func (r ApiExtrasJournalEntriesListRequest) Ordering(ordering string) ApiExtrasJournalEntriesListRequest { + r.ordering = &ordering return r } -// The initial index from which to return the results. -func (r ApiExtrasImageAttachmentsListRequest) Offset(offset int32) ApiExtrasImageAttachmentsListRequest { - r.offset = &offset +// Search +func (r ApiExtrasJournalEntriesListRequest) Q(q string) ApiExtrasJournalEntriesListRequest { + r.q = &q return r } -// Which field to use when ordering the results. -func (r ApiExtrasImageAttachmentsListRequest) Ordering(ordering string) ApiExtrasImageAttachmentsListRequest { - r.ordering = &ordering +func (r ApiExtrasJournalEntriesListRequest) Tag(tag []string) ApiExtrasJournalEntriesListRequest { + r.tag = &tag return r } -// Search -func (r ApiExtrasImageAttachmentsListRequest) Q(q string) ApiExtrasImageAttachmentsListRequest { - r.q = &q +func (r ApiExtrasJournalEntriesListRequest) TagN(tagN []string) ApiExtrasJournalEntriesListRequest { + r.tagN = &tagN return r } -func (r ApiExtrasImageAttachmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasImageAttachmentsListRequest { +func (r ApiExtrasJournalEntriesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasJournalEntriesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiExtrasImageAttachmentsListRequest) Execute() (*PaginatedImageAttachmentList, *http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsListExecute(r) +func (r ApiExtrasJournalEntriesListRequest) Execute() (*PaginatedJournalEntryList, *http.Response, error) { + return r.ApiService.ExtrasJournalEntriesListExecute(r) } /* -ExtrasImageAttachmentsList Method for ExtrasImageAttachmentsList +ExtrasJournalEntriesList Method for ExtrasJournalEntriesList -Get a list of image attachment objects. +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 ApiExtrasImageAttachmentsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesListRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsList(ctx context.Context) ApiExtrasImageAttachmentsListRequest { - return ApiExtrasImageAttachmentsListRequest{ +func (a *ExtrasAPIService) ExtrasJournalEntriesList(ctx context.Context) ApiExtrasJournalEntriesListRequest { + return ApiExtrasJournalEntriesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedImageAttachmentList -func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAttachmentsListRequest) (*PaginatedImageAttachmentList, *http.Response, error) { +// @return PaginatedJournalEntryList +func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEntriesListRequest) (*PaginatedJournalEntryList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedImageAttachmentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedJournalEntryList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/" + localVarPath := localBasePath + "/api/extras/journal-entries/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - 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.id != nil { - t := *r.id + if r.assignedObjectId != nil { + t := *r.assignedObjectId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", t, "form", "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.assignedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__empty", r.assignedObjectIdEmpty, "form", "") } - if r.idGte != nil { - t := *r.idGte + 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, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.assignedObjectIdGte != nil { + t := *r.assignedObjectIdGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.assignedObjectIdLt != nil { + t := *r.assignedObjectIdLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.assignedObjectIdLte != nil { + t := *r.assignedObjectIdLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "form", "multi") } } - if r.imageHeight != nil { - t := *r.imageHeight + if r.assignedObjectIdN != nil { + t := *r.assignedObjectIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "form", "multi") } } - if r.imageHeightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__empty", r.imageHeightEmpty, "") + if r.assignedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type", r.assignedObjectType, "form", "") } - if r.imageHeightGt != nil { - t := *r.imageHeightGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gt", t, "multi") - } + if r.assignedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type__n", r.assignedObjectTypeN, "form", "") } - if r.imageHeightGte != nil { - t := *r.imageHeightGte + if r.assignedObjectTypeId != nil { + t := *r.assignedObjectTypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id", t, "form", "multi") } } - if r.imageHeightLt != nil { - t := *r.imageHeightLt + if r.assignedObjectTypeIdN != nil { + t := *r.assignedObjectTypeIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id__n", t, "form", "multi") } } - if r.imageHeightLte != nil { - t := *r.imageHeightLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__lte", t, "multi") - } + if r.createdAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_after", r.createdAfter, "form", "") } - if r.imageHeightN != nil { - t := *r.imageHeightN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_height__n", t, "multi") - } + if r.createdBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_before", r.createdBefore, "form", "") } - if r.imageWidth != nil { - t := *r.imageWidth + if r.createdBy != nil { + t := *r.createdBy if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", t, "form", "multi") } } - if r.imageWidthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__empty", r.imageWidthEmpty, "") - } - if r.imageWidthGt != nil { - t := *r.imageWidthGt + if r.createdByN != nil { + t := *r.createdByN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by__n", t, "form", "multi") } } - if r.imageWidthGte != nil { - t := *r.imageWidthGte + if r.createdById != nil { + t := *r.createdById if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id", t, "form", "multi") } } - if r.imageWidthLt != nil { - t := *r.imageWidthLt + if r.createdByIdN != nil { + t := *r.createdByIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id__n", t, "form", "multi") } } - if r.imageWidthLte != nil { - t := *r.imageWidthLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__lte", t, "multi") - } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.imageWidthN != nil { - t := *r.imageWidthN + 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, "image_width__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "image_width__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "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.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.kind != nil { + t := *r.kind 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + if r.kindEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__empty", r.kindEmpty, "form", "") } - if r.name != nil { - t := *r.name + if r.kindIc != nil { + t := *r.kindIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ic", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + if r.kindIe != nil { + t := *r.kindIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ie", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.kindIew != nil { + t := *r.kindIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__iew", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.kindIsw != nil { + t := *r.kindIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__isw", t, "form", "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.kindN != nil { + t := *r.kindN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__n", t, "form", "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.kindNic != nil { + t := *r.kindNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nic", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.kindNie != nil { + t := *r.kindNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nie", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.kindNiew != nil { + t := *r.kindNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__niew", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.kindNisw != nil { + t := *r.kindNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nisw", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.objectId != nil { - t := *r.objectId + 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, "object_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.objectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "") - } - if r.objectIdGt != nil { - t := *r.objectIdGt + 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, "object_id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.objectIdGte != nil { - t := *r.objectIdGte + 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, "object_id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.objectIdLt != nil { - t := *r.objectIdLt + 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, "object_id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.objectIdLte != nil { - t := *r.objectIdLte + 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, "object_id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.objectIdN != nil { - t := *r.objectIdN + 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, "object_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "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 { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", r.objectTypeId, "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.objectTypeIdN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", r.objectTypeIdN, "") + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21714,56 +25939,55 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedImageAttachmentRequest *PatchedImageAttachmentRequest +type ApiExtrasJournalEntriesPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedWritableJournalEntryRequest *PatchedWritableJournalEntryRequest } -func (r ApiExtrasImageAttachmentsPartialUpdateRequest) PatchedImageAttachmentRequest(patchedImageAttachmentRequest PatchedImageAttachmentRequest) ApiExtrasImageAttachmentsPartialUpdateRequest { - r.patchedImageAttachmentRequest = &patchedImageAttachmentRequest +func (r ApiExtrasJournalEntriesPartialUpdateRequest) PatchedWritableJournalEntryRequest(patchedWritableJournalEntryRequest PatchedWritableJournalEntryRequest) ApiExtrasJournalEntriesPartialUpdateRequest { + r.patchedWritableJournalEntryRequest = &patchedWritableJournalEntryRequest return r } -func (r ApiExtrasImageAttachmentsPartialUpdateRequest) Execute() (*ImageAttachment, *http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsPartialUpdateExecute(r) +func (r ApiExtrasJournalEntriesPartialUpdateRequest) Execute() (*JournalEntry, *http.Response, error) { + return r.ApiService.ExtrasJournalEntriesPartialUpdateExecute(r) } /* -ExtrasImageAttachmentsPartialUpdate Method for ExtrasImageAttachmentsPartialUpdate +ExtrasJournalEntriesPartialUpdate Method for ExtrasJournalEntriesPartialUpdate -Patch a image attachment object. +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 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 journal entry. + @return ApiExtrasJournalEntriesPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsPartialUpdateRequest { - return ApiExtrasImageAttachmentsPartialUpdateRequest{ +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 ImageAttachment -func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtrasImageAttachmentsPartialUpdateRequest) (*ImageAttachment, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJournalEntriesPartialUpdateRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/{id}/" + localVarPath := localBasePath + "/api/extras/journal-entries/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -21788,7 +26012,7 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtra localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedImageAttachmentRequest + localVarPostBody = r.patchedWritableJournalEntryRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -21840,50 +26064,49 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtra return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasJournalEntriesRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasImageAttachmentsRetrieveRequest) Execute() (*ImageAttachment, *http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsRetrieveExecute(r) +func (r ApiExtrasJournalEntriesRetrieveRequest) Execute() (*JournalEntry, *http.Response, error) { + return r.ApiService.ExtrasJournalEntriesRetrieveExecute(r) } /* -ExtrasImageAttachmentsRetrieve Method for ExtrasImageAttachmentsRetrieve +ExtrasJournalEntriesRetrieve Method for ExtrasJournalEntriesRetrieve -Get a image attachment object. +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 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 journal entry. + @return ApiExtrasJournalEntriesRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieve(ctx context.Context, id int32) ApiExtrasImageAttachmentsRetrieveRequest { - return ApiExtrasImageAttachmentsRetrieveRequest{ +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 ImageAttachment -func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImageAttachmentsRetrieveRequest) (*ImageAttachment, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJournalEntriesRetrieveRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/{id}/" + localVarPath := localBasePath + "/api/extras/journal-entries/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -21958,185 +26181,62 @@ func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImag return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasImageAttachmentsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - imageAttachmentRequest *ImageAttachmentRequest +type ApiExtrasJournalEntriesUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + writableJournalEntryRequest *WritableJournalEntryRequest } -func (r ApiExtrasImageAttachmentsUpdateRequest) ImageAttachmentRequest(imageAttachmentRequest ImageAttachmentRequest) ApiExtrasImageAttachmentsUpdateRequest { - r.imageAttachmentRequest = &imageAttachmentRequest +func (r ApiExtrasJournalEntriesUpdateRequest) WritableJournalEntryRequest(writableJournalEntryRequest WritableJournalEntryRequest) ApiExtrasJournalEntriesUpdateRequest { + r.writableJournalEntryRequest = &writableJournalEntryRequest return r } -func (r ApiExtrasImageAttachmentsUpdateRequest) Execute() (*ImageAttachment, *http.Response, error) { - return r.ApiService.ExtrasImageAttachmentsUpdateExecute(r) +func (r ApiExtrasJournalEntriesUpdateRequest) Execute() (*JournalEntry, *http.Response, error) { + return r.ApiService.ExtrasJournalEntriesUpdateExecute(r) } /* -ExtrasImageAttachmentsUpdate Method for ExtrasImageAttachmentsUpdate +ExtrasJournalEntriesUpdate Method for ExtrasJournalEntriesUpdate -Put a image attachment object. +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 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 journal entry. + @return ApiExtrasJournalEntriesUpdateRequest */ -func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsUpdateRequest { - return ApiExtrasImageAttachmentsUpdateRequest{ +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 ImageAttachment -func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageAttachmentsUpdateRequest) (*ImageAttachment, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalEntriesUpdateRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/image-attachments/{id}/" + localVarPath := localBasePath + "/api/extras/journal-entries/{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.imageAttachmentRequest == nil { - return localVarReturnValue, nil, reportError("imageAttachmentRequest 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.imageAttachmentRequest - 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 ApiExtrasJournalEntriesBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - journalEntryRequest *[]JournalEntryRequest -} - -func (r ApiExtrasJournalEntriesBulkDestroyRequest) JournalEntryRequest(journalEntryRequest []JournalEntryRequest) ApiExtrasJournalEntriesBulkDestroyRequest { - r.journalEntryRequest = &journalEntryRequest - return r -} - -func (r ApiExtrasJournalEntriesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasJournalEntriesBulkDestroyExecute(r) -} - -/* -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 -*/ -func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroy(ctx context.Context) ApiExtrasJournalEntriesBulkDestroyRequest { - return ApiExtrasJournalEntriesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJournalEntriesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/journal-entries/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.journalEntryRequest == nil { - return nil, reportError("journalEntryRequest is required and must be specified") + if r.writableJournalEntryRequest == nil { + return localVarReturnValue, nil, reportError("writableJournalEntryRequest is required and must be specified") } // to determine the Content-Type header @@ -22149,7 +26249,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJou } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -22157,7 +26257,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJou localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.journalEntryRequest + localVarPostBody = r.writableJournalEntryRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22174,19 +26274,19 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJou } 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 { @@ -22194,65 +26294,71 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJou body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + 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 ApiExtrasJournalEntriesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - journalEntryRequest *[]JournalEntryRequest +type ApiExtrasNotificationGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasJournalEntriesBulkPartialUpdateRequest) JournalEntryRequest(journalEntryRequest []JournalEntryRequest) ApiExtrasJournalEntriesBulkPartialUpdateRequest { - r.journalEntryRequest = &journalEntryRequest +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkDestroyRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasJournalEntriesBulkPartialUpdateRequest) Execute() ([]JournalEntry, *http.Response, error) { - return r.ApiService.ExtrasJournalEntriesBulkPartialUpdateExecute(r) +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkDestroyExecute(r) } /* -ExtrasJournalEntriesBulkPartialUpdate Method for ExtrasJournalEntriesBulkPartialUpdate +ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy -Patch a list of journal entry objects. +Delete a list of notification group 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 ApiExtrasNotificationGroupsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkPartialUpdateRequest { - return ApiExtrasJournalEntriesBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroy(ctx context.Context) ApiExtrasNotificationGroupsBulkDestroyRequest { + return ApiExtrasNotificationGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []JournalEntry -func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExtrasJournalEntriesBulkPartialUpdateRequest) ([]JournalEntry, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []JournalEntry + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.journalEntryRequest == nil { - return localVarReturnValue, nil, reportError("journalEntryRequest is required and must be specified") + if r.notificationGroupRequest == nil { + return nil, reportError("notificationGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -22265,7 +26371,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExt } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -22273,7 +26379,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.journalEntryRequest + localVarPostBody = r.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22290,19 +26396,19 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExt } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -22310,74 +26416,64 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExt 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 localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiExtrasJournalEntriesBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - journalEntryRequest *[]JournalEntryRequest +type ApiExtrasNotificationGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasJournalEntriesBulkUpdateRequest) JournalEntryRequest(journalEntryRequest []JournalEntryRequest) ApiExtrasJournalEntriesBulkUpdateRequest { - r.journalEntryRequest = &journalEntryRequest +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasJournalEntriesBulkUpdateRequest) Execute() ([]JournalEntry, *http.Response, error) { - return r.ApiService.ExtrasJournalEntriesBulkUpdateExecute(r) +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkPartialUpdateExecute(r) } /* -ExtrasJournalEntriesBulkUpdate Method for ExtrasJournalEntriesBulkUpdate +ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate -Put a list of journal entry objects. +Patch a list of notification group 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 ApiExtrasNotificationGroupsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkUpdateRequest { - return ApiExtrasJournalEntriesBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { + return ApiExtrasNotificationGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []JournalEntry -func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJournalEntriesBulkUpdateRequest) ([]JournalEntry, *http.Response, error) { +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []JournalEntry + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.journalEntryRequest == nil { - return localVarReturnValue, nil, reportError("journalEntryRequest is required and must be specified") + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -22398,7 +26494,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJour localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.journalEntryRequest + localVarPostBody = r.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22450,59 +26546,58 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJour return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasJournalEntriesCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - writableJournalEntryRequest *WritableJournalEntryRequest +type ApiExtrasNotificationGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasJournalEntriesCreateRequest) WritableJournalEntryRequest(writableJournalEntryRequest WritableJournalEntryRequest) ApiExtrasJournalEntriesCreateRequest { - r.writableJournalEntryRequest = &writableJournalEntryRequest +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasJournalEntriesCreateRequest) Execute() (*JournalEntry, *http.Response, error) { - return r.ApiService.ExtrasJournalEntriesCreateExecute(r) +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkUpdateExecute(r) } /* -ExtrasJournalEntriesCreate Method for ExtrasJournalEntriesCreate +ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate -Post a list of journal entry objects. +Put a list of notification group 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 ApiExtrasNotificationGroupsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesCreate(ctx context.Context) ApiExtrasJournalEntriesCreateRequest { - return ApiExtrasJournalEntriesCreateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkUpdateRequest { + return ApiExtrasNotificationGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasAPIService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalEntriesCreateRequest) (*JournalEntry, *http.Response, error) { +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableJournalEntryRequest == nil { - return localVarReturnValue, nil, reportError("writableJournalEntryRequest is required and must be specified") + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -22523,7 +26618,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableJournalEntryRequest + localVarPostBody = r.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22575,55 +26670,62 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasJournalEntriesDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationGroupsCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationGroupRequest *NotificationGroupRequest } -func (r ApiExtrasJournalEntriesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasJournalEntriesDestroyExecute(r) +func (r ApiExtrasNotificationGroupsCreateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsCreateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest + return r +} + +func (r ApiExtrasNotificationGroupsCreateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsCreateExecute(r) } /* -ExtrasJournalEntriesDestroy Method for ExtrasJournalEntriesDestroy +ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate -Delete a journal entry object. +Post a list of notification group 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 journal entry. - @return ApiExtrasJournalEntriesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsCreateRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesDestroy(ctx context.Context, id int32) ApiExtrasJournalEntriesDestroyRequest { - return ApiExtrasJournalEntriesDestroyRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest { + return ApiExtrasNotificationGroupsCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournalEntriesDestroyRequest) (*http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsCreate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest 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) @@ -22632,13 +26734,15 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournal } // 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.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22655,19 +26759,19 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournal } 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 { @@ -22675,678 +26779,572 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournal body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiExtrasJournalEntriesListRequest struct { - 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 - 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 { - r.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 -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdGte(assignedObjectIdGte []int32) ApiExtrasJournalEntriesListRequest { - r.assignedObjectIdGte = &assignedObjectIdGte - return r -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdLt(assignedObjectIdLt []int32) ApiExtrasJournalEntriesListRequest { - r.assignedObjectIdLt = &assignedObjectIdLt - return r -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdLte(assignedObjectIdLte []int32) ApiExtrasJournalEntriesListRequest { - r.assignedObjectIdLte = &assignedObjectIdLte - return r -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdN(assignedObjectIdN []int32) ApiExtrasJournalEntriesListRequest { - r.assignedObjectIdN = &assignedObjectIdN - return r -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectType(assignedObjectType string) ApiExtrasJournalEntriesListRequest { - r.assignedObjectType = &assignedObjectType - return r -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectTypeN(assignedObjectTypeN string) ApiExtrasJournalEntriesListRequest { - r.assignedObjectTypeN = &assignedObjectTypeN - return r -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectTypeId(assignedObjectTypeId []int32) ApiExtrasJournalEntriesListRequest { - r.assignedObjectTypeId = &assignedObjectTypeId - return r -} - -func (r ApiExtrasJournalEntriesListRequest) AssignedObjectTypeIdN(assignedObjectTypeIdN []int32) ApiExtrasJournalEntriesListRequest { - r.assignedObjectTypeIdN = &assignedObjectTypeIdN - return r -} - -func (r ApiExtrasJournalEntriesListRequest) CreatedAfter(createdAfter time.Time) ApiExtrasJournalEntriesListRequest { - r.createdAfter = &createdAfter - return r -} - -func (r ApiExtrasJournalEntriesListRequest) CreatedBefore(createdBefore time.Time) ApiExtrasJournalEntriesListRequest { - r.createdBefore = &createdBefore - return r -} - -// User (name) -func (r ApiExtrasJournalEntriesListRequest) CreatedBy(createdBy []string) ApiExtrasJournalEntriesListRequest { - r.createdBy = &createdBy - return r -} - -// User (name) -func (r ApiExtrasJournalEntriesListRequest) CreatedByN(createdByN []string) ApiExtrasJournalEntriesListRequest { - r.createdByN = &createdByN - return r -} - -// User (ID) -func (r ApiExtrasJournalEntriesListRequest) CreatedById(createdById []*int32) ApiExtrasJournalEntriesListRequest { - r.createdById = &createdById - return r -} - -// User (ID) -func (r ApiExtrasJournalEntriesListRequest) CreatedByIdN(createdByIdN []*int32) ApiExtrasJournalEntriesListRequest { - r.createdByIdN = &createdByIdN - return r -} - -func (r ApiExtrasJournalEntriesListRequest) CreatedByRequest(createdByRequest string) ApiExtrasJournalEntriesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiExtrasJournalEntriesListRequest) Id(id []int32) ApiExtrasJournalEntriesListRequest { - r.id = &id - return r -} - -func (r ApiExtrasJournalEntriesListRequest) IdEmpty(idEmpty bool) ApiExtrasJournalEntriesListRequest { - r.idEmpty = &idEmpty - 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 ApiExtrasJournalEntriesListRequest) IdGt(idGt []int32) ApiExtrasJournalEntriesListRequest { - r.idGt = &idGt - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasJournalEntriesListRequest) IdGte(idGte []int32) ApiExtrasJournalEntriesListRequest { - r.idGte = &idGte - return r +type ApiExtrasNotificationGroupsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasJournalEntriesListRequest) IdLt(idLt []int32) ApiExtrasJournalEntriesListRequest { - r.idLt = &idLt - return r +func (r ApiExtrasNotificationGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsDestroyExecute(r) } -func (r ApiExtrasJournalEntriesListRequest) IdLte(idLte []int32) ApiExtrasJournalEntriesListRequest { - r.idLte = &idLte - return r -} +/* +ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy -func (r ApiExtrasJournalEntriesListRequest) IdN(idN []int32) ApiExtrasJournalEntriesListRequest { - r.idN = &idN - return r -} +Delete a notification group object. -func (r ApiExtrasJournalEntriesListRequest) Kind(kind []string) ApiExtrasJournalEntriesListRequest { - r.kind = &kind - 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 notification group. + @return ApiExtrasNotificationGroupsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest { + return ApiExtrasNotificationGroupsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasJournalEntriesListRequest) KindN(kindN []string) ApiExtrasJournalEntriesListRequest { - r.kindN = &kindN - return r -} +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiExtrasJournalEntriesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasJournalEntriesListRequest { - r.lastUpdated = &lastUpdated - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasJournalEntriesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasJournalEntriesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasJournalEntriesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasJournalEntriesListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasJournalEntriesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasJournalEntriesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasJournalEntriesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasJournalEntriesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasJournalEntriesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasJournalEntriesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r + // 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 } -func (r ApiExtrasJournalEntriesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasJournalEntriesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r +type ApiExtrasNotificationGroupsListRequest struct { + ctx context.Context + ApiService ExtrasAPI + limit *int32 + offset *int32 + ordering *string } // Number of results to return per page. -func (r ApiExtrasJournalEntriesListRequest) Limit(limit int32) ApiExtrasJournalEntriesListRequest { +func (r ApiExtrasNotificationGroupsListRequest) Limit(limit int32) ApiExtrasNotificationGroupsListRequest { r.limit = &limit 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 { +func (r ApiExtrasNotificationGroupsListRequest) Offset(offset int32) ApiExtrasNotificationGroupsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiExtrasJournalEntriesListRequest) Ordering(ordering string) ApiExtrasJournalEntriesListRequest { +func (r ApiExtrasNotificationGroupsListRequest) Ordering(ordering string) ApiExtrasNotificationGroupsListRequest { r.ordering = &ordering return r } -// Search -func (r ApiExtrasJournalEntriesListRequest) Q(q string) ApiExtrasJournalEntriesListRequest { - r.q = &q - return r -} - -func (r ApiExtrasJournalEntriesListRequest) Tag(tag []string) ApiExtrasJournalEntriesListRequest { - r.tag = &tag - return r -} - -func (r ApiExtrasJournalEntriesListRequest) TagN(tagN []string) ApiExtrasJournalEntriesListRequest { - r.tagN = &tagN - return r -} - -func (r ApiExtrasJournalEntriesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasJournalEntriesListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiExtrasJournalEntriesListRequest) Execute() (*PaginatedJournalEntryList, *http.Response, error) { - return r.ApiService.ExtrasJournalEntriesListExecute(r) +func (r ApiExtrasNotificationGroupsListRequest) Execute() (*PaginatedNotificationGroupList, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsListExecute(r) } /* -ExtrasJournalEntriesList Method for ExtrasJournalEntriesList +ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList -Get a list of journal entry objects. +Get a list of notification group 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 ApiExtrasNotificationGroupsListRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesList(ctx context.Context) ApiExtrasJournalEntriesListRequest { - return ApiExtrasJournalEntriesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest { + return ApiExtrasNotificationGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedJournalEntryList -func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEntriesListRequest) (*PaginatedJournalEntryList, *http.Response, error) { +// @return PaginatedNotificationGroupList +func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedJournalEntryList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNotificationGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.assignedObjectId != nil { - t := *r.assignedObjectId - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "multi") - } - } - if r.assignedObjectIdGte != nil { - t := *r.assignedObjectIdGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "multi") - } - } - if r.assignedObjectIdLt != nil { - t := *r.assignedObjectIdLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "multi") - } - } - if r.assignedObjectIdLte != nil { - t := *r.assignedObjectIdLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "multi") - } - } - if r.assignedObjectIdN != nil { - t := *r.assignedObjectIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "multi") - } - } - if r.assignedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type", r.assignedObjectType, "") - } - if r.assignedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type__n", r.assignedObjectTypeN, "") - } - if r.assignedObjectTypeId != nil { - t := *r.assignedObjectTypeId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id", t, "multi") - } - } - if r.assignedObjectTypeIdN != nil { - t := *r.assignedObjectTypeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id__n", t, "multi") - } - } - if r.createdAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_after", r.createdAfter, "") - } - if r.createdBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_before", r.createdBefore, "") - } - if r.createdBy != nil { - t := *r.createdBy - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", t, "multi") - } - } - if r.createdByN != nil { - t := *r.createdByN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by__n", t, "multi") - } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.createdById != nil { - t := *r.createdById - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id", t, "multi") - } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - if r.createdByIdN != nil { - t := *r.createdByIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id__n", t, "multi") - } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - 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") + + // 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 } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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, nil +} + +type ApiExtrasNotificationGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedNotificationGroupRequest *PatchedNotificationGroupRequest +} + +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) PatchedNotificationGroupRequest(patchedNotificationGroupRequest PatchedNotificationGroupRequest) ApiExtrasNotificationGroupsPartialUpdateRequest { + r.patchedNotificationGroupRequest = &patchedNotificationGroupRequest + return r +} + +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsPartialUpdateExecute(r) +} + +/* +ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate + +Patch a notification 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 notification group. + @return ApiExtrasNotificationGroupsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest { + return ApiExtrasNotificationGroupsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.kind != nil { - t := *r.kind - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "kind", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "kind", t, "multi") - } +} + +// Execute executes the request +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NotificationGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.kindN != nil { - t := *r.kindN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "kind__n", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/notification-groups/{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 } - 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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.patchedNotificationGroupRequest + 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__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") + 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 } - 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") + + 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 ApiExtrasNotificationGroupsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 +} + +func (r ApiExtrasNotificationGroupsRetrieveRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsRetrieveExecute(r) +} + +/* +ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve + +Get a notification 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 notification group. + @return ApiExtrasNotificationGroupsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest { + return ApiExtrasNotificationGroupsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NotificationGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/extras/notification-groups/{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.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") + + // 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 } - } 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.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationGroupsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + notificationGroupRequest *NotificationGroupRequest +} + +func (r ApiExtrasNotificationGroupsUpdateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest + return r +} + +func (r ApiExtrasNotificationGroupsUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsUpdateExecute(r) +} + +/* +ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate + +Put a notification 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 notification group. + @return ApiExtrasNotificationGroupsUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest { + return ApiExtrasNotificationGroupsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NotificationGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/notification-groups/{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.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest 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) @@ -23362,6 +27360,8 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -23413,61 +27413,172 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasJournalEntriesPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedWritableJournalEntryRequest *PatchedWritableJournalEntryRequest +type ApiExtrasNotificationsBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationRequest *[]NotificationRequest } -func (r ApiExtrasJournalEntriesPartialUpdateRequest) PatchedWritableJournalEntryRequest(patchedWritableJournalEntryRequest PatchedWritableJournalEntryRequest) ApiExtrasJournalEntriesPartialUpdateRequest { - r.patchedWritableJournalEntryRequest = &patchedWritableJournalEntryRequest +func (r ApiExtrasNotificationsBulkDestroyRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkDestroyRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasJournalEntriesPartialUpdateRequest) Execute() (*JournalEntry, *http.Response, error) { - return r.ApiService.ExtrasJournalEntriesPartialUpdateExecute(r) +func (r ApiExtrasNotificationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkDestroyExecute(r) } /* -ExtrasJournalEntriesPartialUpdate Method for ExtrasJournalEntriesPartialUpdate +ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy -Patch a journal entry object. +Delete a list of notification 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 journal entry. - @return ApiExtrasJournalEntriesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesPartialUpdateRequest { - return ApiExtrasJournalEntriesPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest { + return ApiExtrasNotificationsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/notifications/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationRequest == nil { + return nil, reportError("notificationRequest 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.notificationRequest + 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 ApiExtrasNotificationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationRequest *[]NotificationRequest +} + +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkPartialUpdateRequest { + r.notificationRequest = ¬ificationRequest + return r +} + +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkPartialUpdateExecute(r) +} + +/* +ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate + +Patch a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest { + return ApiExtrasNotificationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJournalEntriesPartialUpdateRequest) (*JournalEntry, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -23487,7 +27598,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableJournalEntryRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -23539,58 +27650,62 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasJournalEntriesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationsBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationRequest *[]NotificationRequest } -func (r ApiExtrasJournalEntriesRetrieveRequest) Execute() (*JournalEntry, *http.Response, error) { - return r.ApiService.ExtrasJournalEntriesRetrieveExecute(r) +func (r ApiExtrasNotificationsBulkUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkUpdateRequest { + r.notificationRequest = ¬ificationRequest + return r +} + +func (r ApiExtrasNotificationsBulkUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkUpdateExecute(r) } /* -ExtrasJournalEntriesRetrieve Method for ExtrasJournalEntriesRetrieve +ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate -Get a journal entry object. +Put a list of notification 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 journal entry. - @return ApiExtrasJournalEntriesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieve(ctx context.Context, id int32) ApiExtrasJournalEntriesRetrieveRequest { - return ApiExtrasJournalEntriesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest { + return ApiExtrasNotificationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJournalEntriesRetrieveRequest) (*JournalEntry, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest 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) @@ -23606,6 +27721,8 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJourna if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -23657,63 +27774,58 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJourna return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasJournalEntriesUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - writableJournalEntryRequest *WritableJournalEntryRequest +type ApiExtrasNotificationsCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + notificationRequest *NotificationRequest } -func (r ApiExtrasJournalEntriesUpdateRequest) WritableJournalEntryRequest(writableJournalEntryRequest WritableJournalEntryRequest) ApiExtrasJournalEntriesUpdateRequest { - r.writableJournalEntryRequest = &writableJournalEntryRequest +func (r ApiExtrasNotificationsCreateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsCreateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasJournalEntriesUpdateRequest) Execute() (*JournalEntry, *http.Response, error) { - return r.ApiService.ExtrasJournalEntriesUpdateExecute(r) +func (r ApiExtrasNotificationsCreateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsCreateExecute(r) } /* -ExtrasJournalEntriesUpdate Method for ExtrasJournalEntriesUpdate +ExtrasNotificationsCreate Method for ExtrasNotificationsCreate -Put a journal entry object. +Post a list of notification 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 journal entry. - @return ApiExtrasJournalEntriesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsCreateRequest */ -func (a *ExtrasAPIService) ExtrasJournalEntriesUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesUpdateRequest { - return ApiExtrasJournalEntriesUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest { + return ApiExtrasNotificationsCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalEntriesUpdateRequest) (*JournalEntry, *http.Response, error) { +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/journal-entries/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableJournalEntryRequest == nil { - return localVarReturnValue, nil, reportError("writableJournalEntryRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -23734,7 +27846,7 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableJournalEntryRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -23781,977 +27893,434 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE error: err.Error(), } return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasObjectChangesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - action *ExtrasObjectChangesListActionParameter - actionN *ExtrasObjectChangesListActionParameter - changedObjectId *[]int32 - changedObjectIdEmpty *bool - changedObjectIdGt *[]int32 - changedObjectIdGte *[]int32 - changedObjectIdLt *[]int32 - changedObjectIdLte *[]int32 - changedObjectIdN *[]int32 - changedObjectType *string - changedObjectTypeN *string - changedObjectTypeId *[]int32 - changedObjectTypeIdN *[]int32 - 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 - relatedObjectId *[]int32 - relatedObjectIdEmpty *bool - relatedObjectIdGt *[]int32 - relatedObjectIdGte *[]int32 - relatedObjectIdLt *[]int32 - relatedObjectIdLte *[]int32 - relatedObjectIdN *[]int32 - relatedObjectType *int32 - relatedObjectTypeN *int32 - 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 -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) Action(action ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.action = &action - return r -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) ActionN(actionN ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.actionN = &actionN - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectId = &changedObjectId - 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 -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdGte = &changedObjectIdGte - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLt = &changedObjectIdLt - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLte = &changedObjectIdLte - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdN = &changedObjectIdN - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiExtrasObjectChangesListRequest { - r.changedObjectType = &changedObjectType - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeN = &changedObjectTypeN - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeId = &changedObjectTypeId - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeIdN = &changedObjectTypeIdN - return r -} - -func (r ApiExtrasObjectChangesListRequest) Id(id []int32) ApiExtrasObjectChangesListRequest { - r.id = &id - 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 -} - -func (r ApiExtrasObjectChangesListRequest) IdGte(idGte []int32) ApiExtrasObjectChangesListRequest { - r.idGte = &idGte - return r -} - -func (r ApiExtrasObjectChangesListRequest) IdLt(idLt []int32) ApiExtrasObjectChangesListRequest { - r.idLt = &idLt - return r -} - -func (r ApiExtrasObjectChangesListRequest) IdLte(idLte []int32) ApiExtrasObjectChangesListRequest { - r.idLte = &idLte - return r -} - -func (r ApiExtrasObjectChangesListRequest) IdN(idN []int32) ApiExtrasObjectChangesListRequest { - r.idN = &idN - return r -} - -// Number of results to return per page. -func (r ApiExtrasObjectChangesListRequest) Limit(limit int32) ApiExtrasObjectChangesListRequest { - r.limit = &limit - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiExtrasObjectChangesListRequest { - r.objectRepr = &objectRepr - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiExtrasObjectChangesListRequest { - r.objectReprEmpty = &objectReprEmpty - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiExtrasObjectChangesListRequest { - r.objectReprIc = &objectReprIc - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiExtrasObjectChangesListRequest { - r.objectReprIe = &objectReprIe - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiExtrasObjectChangesListRequest { - r.objectReprIew = &objectReprIew - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiExtrasObjectChangesListRequest { - r.objectReprIsw = &objectReprIsw - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiExtrasObjectChangesListRequest { - r.objectReprN = &objectReprN - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiExtrasObjectChangesListRequest { - r.objectReprNic = &objectReprNic - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiExtrasObjectChangesListRequest { - r.objectReprNie = &objectReprNie - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiExtrasObjectChangesListRequest { - r.objectReprNiew = &objectReprNiew - return r -} - -func (r ApiExtrasObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiExtrasObjectChangesListRequest { - r.objectReprNisw = &objectReprNisw - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasObjectChangesListRequest) Offset(offset int32) ApiExtrasObjectChangesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasObjectChangesListRequest) Ordering(ordering string) ApiExtrasObjectChangesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasObjectChangesListRequest) Q(q string) ApiExtrasObjectChangesListRequest { - r.q = &q - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectId = &relatedObjectId - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdEmpty = &relatedObjectIdEmpty - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGt = &relatedObjectIdGt - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGte = &relatedObjectIdGte - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLt = &relatedObjectIdLt - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLte = &relatedObjectIdLte - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdN = &relatedObjectIdN - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectType = &relatedObjectType - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectTypeN = &relatedObjectTypeN - return r -} - -func (r ApiExtrasObjectChangesListRequest) RequestId(requestId string) ApiExtrasObjectChangesListRequest { - r.requestId = &requestId - return r -} - -func (r ApiExtrasObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiExtrasObjectChangesListRequest { - r.timeAfter = &timeAfter - return r -} - -func (r ApiExtrasObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiExtrasObjectChangesListRequest { - r.timeBefore = &timeBefore - return r -} - -// User name -func (r ApiExtrasObjectChangesListRequest) User(user []string) ApiExtrasObjectChangesListRequest { - r.user = &user - return r -} - -// User name -func (r ApiExtrasObjectChangesListRequest) UserN(userN []string) ApiExtrasObjectChangesListRequest { - r.userN = &userN - return r -} - -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserId(userId []*int32) ApiExtrasObjectChangesListRequest { - r.userId = &userId - return r -} - -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserIdN(userIdN []*int32) ApiExtrasObjectChangesListRequest { - r.userIdN = &userIdN - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserName(userName []string) ApiExtrasObjectChangesListRequest { - r.userName = &userName - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiExtrasObjectChangesListRequest { - r.userNameEmpty = &userNameEmpty - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameIc(userNameIc []string) ApiExtrasObjectChangesListRequest { - r.userNameIc = &userNameIc - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameIe(userNameIe []string) ApiExtrasObjectChangesListRequest { - r.userNameIe = &userNameIe - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameIew(userNameIew []string) ApiExtrasObjectChangesListRequest { - r.userNameIew = &userNameIew - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiExtrasObjectChangesListRequest { - r.userNameIsw = &userNameIsw - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameN(userNameN []string) ApiExtrasObjectChangesListRequest { - r.userNameN = &userNameN - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameNic(userNameNic []string) ApiExtrasObjectChangesListRequest { - r.userNameNic = &userNameNic - return r -} - -func (r ApiExtrasObjectChangesListRequest) UserNameNie(userNameNie []string) ApiExtrasObjectChangesListRequest { - r.userNameNie = &userNameNie - return r -} + } -func (r ApiExtrasObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiExtrasObjectChangesListRequest { - r.userNameNiew = &userNameNiew - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiExtrasObjectChangesListRequest { - r.userNameNisw = &userNameNisw - return r +type ApiExtrasNotificationsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesListExecute(r) +func (r ApiExtrasNotificationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsDestroyExecute(r) } /* -ExtrasObjectChangesList Method for ExtrasObjectChangesList +ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy -Retrieve a list of recent changes. +Delete a notification object. - @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(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtrasObjectChangesListRequest { - return ApiExtrasObjectChangesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest { + return ApiExtrasNotificationsDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PaginatedObjectChangeList -func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedObjectChangeList + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/" + localVarPath := localBasePath + "/api/extras/notifications/{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.action != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") - } - if r.actionN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") - } - if r.changedObjectId != nil { - t := *r.changedObjectId - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") - } - } - if r.changedObjectIdGte != nil { - t := *r.changedObjectIdGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") - } - } - if r.changedObjectIdLt != nil { - t := *r.changedObjectIdLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") - } - } - if r.changedObjectIdLte != nil { - t := *r.changedObjectIdLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") - } - } - if r.changedObjectIdN != nil { - t := *r.changedObjectIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") - } - } - if r.changedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") - } - if r.changedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") - } - if r.changedObjectTypeId != nil { - t := *r.changedObjectTypeId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") - } - } - if r.changedObjectTypeIdN != nil { - t := *r.changedObjectTypeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_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.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.objectRepr != nil { - t := *r.objectRepr - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") - } - } - if r.objectReprEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.objectReprIc != nil { - t := *r.objectReprIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.objectReprIe != nil { - t := *r.objectReprIe - 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).Interface(), "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, "object_repr__ie", t, "multi") } } - if r.objectReprIew != nil { - t := *r.objectReprIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.objectReprIsw != nil { - t := *r.objectReprIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.objectReprN != nil { - t := *r.objectReprN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", 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.objectReprNic != nil { - t := *r.objectReprNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.objectReprNie != nil { - t := *r.objectReprNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") - } + + return localVarHTTPResponse, nil +} + +type ApiExtrasNotificationsListRequest struct { + ctx context.Context + ApiService ExtrasAPI + limit *int32 + offset *int32 + ordering *string +} + +// Number of results to return per page. +func (r ApiExtrasNotificationsListRequest) Limit(limit int32) ApiExtrasNotificationsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasNotificationsListRequest) Offset(offset int32) ApiExtrasNotificationsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasNotificationsListRequest) Ordering(ordering string) ApiExtrasNotificationsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiExtrasNotificationsListRequest) Execute() (*PaginatedNotificationList, *http.Response, error) { + return r.ApiService.ExtrasNotificationsListExecute(r) +} + +/* +ExtrasNotificationsList Method for ExtrasNotificationsList + +Get a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsListRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsList(ctx context.Context) ApiExtrasNotificationsListRequest { + return ApiExtrasNotificationsListRequest{ + ApiService: a, + ctx: ctx, } - if r.objectReprNiew != nil { - t := *r.objectReprNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") - } +} + +// Execute executes the request +// @return PaginatedNotificationList +func (a *ExtrasAPIService) ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNotificationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.objectReprNisw != nil { - t := *r.objectReprNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/notifications/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.relatedObjectId != nil { - t := *r.relatedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") - } - } - if r.relatedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") - } - if r.relatedObjectIdGt != nil { - t := *r.relatedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") - } - } - if r.relatedObjectIdGte != nil { - t := *r.relatedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.relatedObjectIdLt != nil { - t := *r.relatedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", 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.relatedObjectIdLte != nil { - t := *r.relatedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__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.relatedObjectIdN != nil { - t := *r.relatedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "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, "related_object_id__n", t, "multi") } } - if r.relatedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") - } - if r.relatedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") - } - if r.requestId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") - } - if r.timeAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.timeBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedNotificationRequest *PatchedNotificationRequest +} + +func (r ApiExtrasNotificationsPartialUpdateRequest) PatchedNotificationRequest(patchedNotificationRequest PatchedNotificationRequest) ApiExtrasNotificationsPartialUpdateRequest { + r.patchedNotificationRequest = &patchedNotificationRequest + return r +} + +func (r ApiExtrasNotificationsPartialUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsPartialUpdateExecute(r) +} + +/* +ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate + +Patch a notification object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest { + return ApiExtrasNotificationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.userName != nil { - t := *r.userName - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") - } +} + +// Execute executes the request +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.userNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") + + localVarPath := localBasePath + "/api/extras/notifications/{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 } - if r.userNameIc != nil { - t := *r.userNameIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_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.userNameIe != nil { - t := *r.userNameIe - 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).Interface(), "multi") + // body params + localVarPostBody = r.patchedNotificationRequest + 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, "user_name__ie", t, "multi") } } - if r.userNameIew != nil { - t := *r.userNameIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_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.userNameIsw != nil { - t := *r.userNameIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.userNameN != nil { - t := *r.userNameN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_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.userNameNic != nil { - t := *r.userNameNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.userNameNie != nil { - t := *r.userNameNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", 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.userNameNiew != nil { - t := *r.userNameNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 +} + +func (r ApiExtrasNotificationsRetrieveRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsRetrieveExecute(r) +} + +/* +ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve + +Get a notification object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest { + return ApiExtrasNotificationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.userNameNisw != nil { - t := *r.userNameNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") - } +} + +// Execute executes the request +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } + + localVarPath := localBasePath + "/api/extras/notifications/{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{} @@ -24820,58 +28389,66 @@ func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectChangesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + notificationRequest *NotificationRequest } -func (r ApiExtrasObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesRetrieveExecute(r) +func (r ApiExtrasNotificationsUpdateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsUpdateRequest { + r.notificationRequest = ¬ificationRequest + return r +} + +func (r ApiExtrasNotificationsUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsUpdateExecute(r) } /* -ExtrasObjectChangesRetrieve Method for ExtrasObjectChangesRetrieve +ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate -Retrieve a list of recent changes. +Put a notification object. - @param ctx 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 notification. + @return ApiExtrasNotificationsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id int32) ApiExtrasObjectChangesRetrieveRequest { - return ApiExtrasObjectChangesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest { + return ApiExtrasNotificationsUpdateRequest{ 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 Notification +func (a *ExtrasAPIService) ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectChange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/{id}/" + localVarPath := localBasePath + "/api/extras/notifications/{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.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest 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) @@ -24887,6 +28464,8 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24939,15 +28518,15 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC } type ApiExtrasObjectTypesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - appLabel *string - id *int32 - limit *int32 - model *string - offset *int32 - ordering *string - q *string + ctx context.Context + ApiService ExtrasAPI + appLabel *string + id *int32 + limit *int32 + model *string + offset *int32 + ordering *string + q *string } func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { @@ -24998,25 +28577,24 @@ ExtrasObjectTypesList Method for ExtrasObjectTypesList Read-only list of ObjectTypes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasObjectTypesListRequest */ func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { return ApiExtrasObjectTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedObjectTypeList +// @return PaginatedObjectTypeList func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedObjectTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectTypeList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") @@ -25031,25 +28609,25 @@ func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesLi localVarFormParams := url.Values{} if r.appLabel != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "form", "") } if r.id != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.model != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25120,9 +28698,9 @@ func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesLi } type ApiExtrasObjectTypesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 } func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { @@ -25134,27 +28712,26 @@ ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve Read-only list of ObjectTypes. - @param ctx 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 type. - @return ApiExtrasObjectTypesRetrieveRequest + @param ctx 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 type. + @return ApiExtrasObjectTypesRetrieveRequest */ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { return ApiExtrasObjectTypesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectType +// @return ObjectType func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectType + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectType ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") @@ -25238,8 +28815,8 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp } type ApiExtrasSavedFiltersBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI savedFilterRequest *[]SavedFilterRequest } @@ -25257,22 +28834,22 @@ 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 { return ApiExtrasSavedFiltersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -25351,8 +28928,8 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved } type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI savedFilterRequest *[]SavedFilterRequest } @@ -25370,25 +28947,24 @@ 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 { return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SavedFilter +// @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") @@ -25476,8 +29052,8 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra } type ApiExtrasSavedFiltersBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI savedFilterRequest *[]SavedFilterRequest } @@ -25495,25 +29071,24 @@ 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 { return ApiExtrasSavedFiltersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SavedFilter +// @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") @@ -25601,8 +29176,8 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF } type ApiExtrasSavedFiltersCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI savedFilterRequest *SavedFilterRequest } @@ -25620,25 +29195,24 @@ 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 { return ApiExtrasSavedFiltersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return SavedFilter +// @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") @@ -25726,9 +29300,9 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte } type ApiExtrasSavedFiltersDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 } func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { @@ -25740,24 +29314,24 @@ 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 { 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) { 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") @@ -25832,95 +29406,95 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFilt } type ApiExtrasSavedFiltersListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - 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 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 + ctx context.Context + ApiService ExtrasAPI + 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 + 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 - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - 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 - updatedByRequest *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 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + 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 + updatedByRequest *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) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { @@ -26375,794 +29949,1870 @@ 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 { return ApiExtrasSavedFiltersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedSavedFilterList +func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSavedFilterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") + } + if r.objectTypeIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "form", "") + } + if r.objectTypeIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "form", "") + } + if r.objectTypeIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "form", "") + } + if r.objectTypeIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "form", "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") + } + if r.objectTypeNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "form", "") + } + if r.objectTypeNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "form", "") + } + if r.objectTypeNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "form", "") + } + if r.objectTypeNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedSavedFilterList -func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedSavedFilterList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - - localVarPath := localBasePath + "/api/extras/saved-filters/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.created != nil { - t := *r.created + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.shared != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "form", "") + } + if r.slug != nil { + t := *r.slug 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.slugIe != nil { + t := *r.slugIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.slugIew != nil { + t := *r.slugIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.slugIsw != nil { + t := *r.slugIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + if r.slugN != nil { + t := *r.slugN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.slugNic != nil { + t := *r.slugNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + if r.slugNie != nil { + t := *r.slugNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") + } } - if r.description != nil { - t := *r.description + if r.slugNiew != nil { + t := *r.slugNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + if r.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") + } } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.usable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "form", "") + } + 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, "description__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.weight != nil { + t := *r.weight 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") + } + 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.weightGte != nil { + t := *r.weightGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.weightLt != nil { + t := *r.weightLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.weightLte != nil { + t := *r.weightLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") + } + } + if r.weightN != nil { + t := *r.weightN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") + } + } + // 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 ApiExtrasSavedFiltersPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedSavedFilterRequest *PatchedSavedFilterRequest +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { + r.patchedSavedFilterRequest = &patchedSavedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { + return ApiExtrasSavedFiltersPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{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.patchedSavedFilterRequest + 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__nisw", t, "multi") } } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 +} + +func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { + return ApiExtrasSavedFiltersRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/extras/saved-filters/{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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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__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") - } + 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).Interface(), "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).Interface(), "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).Interface(), "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 ApiExtrasSavedFiltersUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + savedFilterRequest *SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +} + +/* +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 +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { + return ApiExtrasSavedFiltersUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/extras/saved-filters/{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.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + + // 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.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.savedFilterRequest + 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", t, "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI +} + +func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsCreateExecute(r) +} + +/* +ExtrasScriptsCreate Method for ExtrasScriptsCreate + +Post a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { + return ApiExtrasScriptsCreateRequest{ + ApiService: a, + ctx: ctx, } - 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") - } +} + +// Execute executes the request +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/extras/scripts/" + + 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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__nisw", t, "multi") } } - if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") - } - if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + + 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.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + + 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.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id string +} + +func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasScriptsDestroyExecute(r) +} + +/* +ExtrasScriptsDestroy Method for ExtrasScriptsDestroy + +Delete a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { + return ApiExtrasScriptsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + + localVarPath := localBasePath + "/api/extras/scripts/{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.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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, "object_type_id", 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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return 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 localVarHTTPResponse, err } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasScriptsListRequest struct { + ctx context.Context + ApiService ExtrasAPI + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isExecutable *bool + limit *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 + offset *int32 + ordering *string + q *string +} + +func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { + r.id = &id + return r +} + +func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { + r.isExecutable = &isExecutable + return r +} + +// Number of results to return per page. +func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { + r.limit = &limit + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { + r.moduleId = &moduleId + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { + r.name = &name + return r +} + +func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { + r.q = &q + return r +} + +func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { + return r.ApiService.ExtrasScriptsListExecute(r) +} + +/* +ExtrasScriptsList Method for ExtrasScriptsList + +Get a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsListRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { + return ApiExtrasScriptsListRequest{ + ApiService: a, + ctx: ctx, } - if r.shared != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") +} + +// Execute executes the request +// @return PaginatedScriptList +func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedScriptList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.slug != nil { - t := *r.slug + + localVarPath := localBasePath + "/api/extras/scripts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.slugIc != nil { - t := *r.slugIc + 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, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + 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, "slug__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + 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, "slug__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + 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, "slug__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + 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, "slug__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } + if r.isExecutable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "form", "") } - if r.slugNie != nil { - t := *r.slugNie + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.moduleIdN != nil { + t := *r.moduleIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + 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, "slug__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.usable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.user != nil { - t := *r.user + 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, "user", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.userN != nil { - t := *r.userN + 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, "user__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.userId != nil { - t := *r.userId + 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, "user_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.userIdN != nil { - t := *r.userIdN + 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, "user_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.weight != nil { - t := *r.weight + 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, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt + 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, "weight__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.weightGte != nil { - t := *r.weightGte + 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, "weight__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.weightLt != nil { - t := *r.weightLt + 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, "weight__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.weightLte != nil { - t := *r.weightLte + 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, "weight__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.weightN != nil { - t := *r.weightN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27232,56 +31882,55 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedSavedFilterRequest *PatchedSavedFilterRequest +type ApiExtrasScriptsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id string + patchedScriptInputRequest *PatchedScriptInputRequest } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { - r.patchedSavedFilterRequest = &patchedSavedFilterRequest +func (r ApiExtrasScriptsPartialUpdateRequest) PatchedScriptInputRequest(patchedScriptInputRequest PatchedScriptInputRequest) ApiExtrasScriptsPartialUpdateRequest { + r.patchedScriptInputRequest = &patchedScriptInputRequest return r } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) } /* -ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate +ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate -Patch a saved filter object. +Patch a script object. - @param ctx 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 + @return ApiExtrasScriptsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { - return ApiExtrasSavedFiltersPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { + return ApiExtrasScriptsPartialUpdateRequest{ 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 Script +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27306,7 +31955,124 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedSavedFilterRequest + localVarPostBody = r.patchedScriptInputRequest + 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 ApiExtrasScriptsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id string +} + +func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsRetrieveExecute(r) +} + +/* +ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve + +Get a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { + return ApiExtrasScriptsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/scripts/{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 { @@ -27358,58 +32124,66 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasScriptsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id string + scriptInputRequest *ScriptInputRequest +} + +func (r ApiExtrasScriptsUpdateRequest) ScriptInputRequest(scriptInputRequest ScriptInputRequest) ApiExtrasScriptsUpdateRequest { + r.scriptInputRequest = &scriptInputRequest + return r } -func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsUpdateExecute(r) } /* -ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve +ExtrasScriptsUpdate Method for ExtrasScriptsUpdate -Get a saved filter object. +Put a script object. - @param ctx 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 + @return ApiExtrasScriptsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { - return ApiExtrasSavedFiltersRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { + return ApiExtrasScriptsUpdateRequest{ 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 Script +func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{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.scriptInputRequest == nil { + return localVarReturnValue, nil, reportError("scriptInputRequest 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) @@ -27425,6 +32199,8 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.scriptInputRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27476,63 +32252,56 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - savedFilterRequest *SavedFilterRequest +type ApiExtrasSubscriptionsBulkDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + subscriptionRequest *[]SubscriptionRequest } -func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasSubscriptionsBulkDestroyRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkDestroyRequest { + r.subscriptionRequest = &subscriptionRequest return r } -func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +func (r ApiExtrasSubscriptionsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkDestroyExecute(r) } /* -ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate +ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy -Put a saved filter object. +Delete a list of subscription 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 saved filter. - @return ApiExtrasSavedFiltersUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { - return ApiExtrasSavedFiltersUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest { + return ApiExtrasSubscriptionsBulkDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.subscriptionRequest == nil { + return nil, reportError("subscriptionRequest is required and must be specified") } // to determine the Content-Type header @@ -27545,7 +32314,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -27553,7 +32322,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27570,19 +32339,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return 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 + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -27590,69 +32359,68 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return 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 localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type ApiExtrasSubscriptionsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + subscriptionRequest *[]SubscriptionRequest } -type ApiExtrasScriptsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r } -func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsCreateExecute(r) +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkPartialUpdateExecute(r) } /* -ExtrasScriptsCreate Method for ExtrasScriptsCreate +ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate -Post a list of script objects. +Patch a list of subscription objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { - return ApiExtrasScriptsCreateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + return ApiExtrasSubscriptionsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Script + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest 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) @@ -27668,6 +32436,8 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27719,55 +32489,62 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsBulkUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + subscriptionRequest *[]SubscriptionRequest } -func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasScriptsDestroyExecute(r) +func (r ApiExtrasSubscriptionsBulkUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsBulkUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkUpdateExecute(r) } /* -ExtrasScriptsDestroy Method for ExtrasScriptsDestroy +ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate -Delete a script object. +Put a list of subscription objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { - return ApiExtrasScriptsDestroyRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest { + return ApiExtrasSubscriptionsBulkUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest 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) @@ -27776,13 +32553,15 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } // 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.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27799,19 +32578,19 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } 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 { @@ -27819,432 +32598,325 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiExtrasScriptsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isExecutable *bool - limit *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 - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { - r.id = &id - return r -} - -func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { - r.idGt = &idGt - return r -} - -func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { - r.idN = &idN - return r -} - -func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { - r.isExecutable = &isExecutable - return r -} - -// Number of results to return per page. -func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { - r.limit = &limit - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { - r.moduleId = &moduleId - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { - r.name = &name - return r -} - -func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { - r.nameNisw = &nameNisw - 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 + } -// The initial index from which to return the results. -func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { - r.offset = &offset - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Which field to use when ordering the results. -func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { - r.ordering = &ordering - return r +type ApiExtrasSubscriptionsCreateRequest struct { + ctx context.Context + ApiService ExtrasAPI + subscriptionRequest *SubscriptionRequest } -// Search -func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { - r.q = &q +func (r ApiExtrasSubscriptionsCreateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsCreateRequest { + r.subscriptionRequest = &subscriptionRequest return r } -func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { - return r.ApiService.ExtrasScriptsListExecute(r) +func (r ApiExtrasSubscriptionsCreateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsCreateExecute(r) } /* -ExtrasScriptsList Method for ExtrasScriptsList +ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate -Get a list of script objects. +Post a list of subscription objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsCreateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { - return ApiExtrasScriptsListRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest { + return ApiExtrasSubscriptionsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedScriptList -func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedScriptList + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - 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.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") } - 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") - } + + // 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.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") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + // body params + localVarPostBody = r.subscriptionRequest + 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__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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.isExecutable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + + 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.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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.moduleIdN != nil { - t := *r.moduleIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_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.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, nil +} + +type ApiExtrasSubscriptionsDestroyRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 +} + +func (r ApiExtrasSubscriptionsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsDestroyExecute(r) +} + +/* +ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy + +Delete a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest { + return ApiExtrasSubscriptionsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsDestroy") + if err != nil { + return 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/subscriptions/{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{} + + // 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") + 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__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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return 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 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 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, } + return localVarHTTPResponse, newErr } - 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 localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsListRequest struct { + ctx context.Context + ApiService ExtrasAPI + limit *int32 + offset *int32 + ordering *string +} + +// Number of results to return per page. +func (r ApiExtrasSubscriptionsListRequest) Limit(limit int32) ApiExtrasSubscriptionsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasSubscriptionsListRequest) Offset(offset int32) ApiExtrasSubscriptionsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasSubscriptionsListRequest) Ordering(ordering string) ApiExtrasSubscriptionsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiExtrasSubscriptionsListRequest) Execute() (*PaginatedSubscriptionList, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsListExecute(r) +} + +/* +ExtrasSubscriptionsList Method for ExtrasSubscriptionsList + +Get a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsListRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest { + return ApiExtrasSubscriptionsListRequest{ + ApiService: a, + ctx: ctx, } - 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 PaginatedSubscriptionList +func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/subscriptions/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28314,50 +32986,55 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsPartialUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + patchedSubscriptionRequest *PatchedSubscriptionRequest } -func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) +func (r ApiExtrasSubscriptionsPartialUpdateRequest) PatchedSubscriptionRequest(patchedSubscriptionRequest PatchedSubscriptionRequest) ApiExtrasSubscriptionsPartialUpdateRequest { + r.patchedSubscriptionRequest = &patchedSubscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsPartialUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsPartialUpdateExecute(r) } /* -ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate +ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate -Patch a script object. +Patch a subscription object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { - return ApiExtrasScriptsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest { + return ApiExtrasSubscriptionsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Script + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28365,7 +33042,7 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28381,6 +33058,8 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedSubscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28432,50 +33111,49 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsRetrieveRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 } -func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsRetrieveExecute(r) +func (r ApiExtrasSubscriptionsRetrieveRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsRetrieveExecute(r) } /* -ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve +ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve -Get a script object. +Get a subscription object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { - return ApiExtrasScriptsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest { + return ApiExtrasSubscriptionsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Script + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28550,58 +33228,66 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsUpdateRequest struct { + ctx context.Context + ApiService ExtrasAPI + id int32 + subscriptionRequest *SubscriptionRequest } -func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsUpdateExecute(r) +func (r ApiExtrasSubscriptionsUpdateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsUpdateExecute(r) } /* -ExtrasScriptsUpdate Method for ExtrasScriptsUpdate +ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate -Put a script object. +Put a subscription object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { - return ApiExtrasScriptsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest { + return ApiExtrasSubscriptionsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Script + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{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.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest 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) @@ -28617,6 +33303,8 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28669,8 +33357,8 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRe } type ApiExtrasTagsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI tagRequest *[]TagRequest } @@ -28688,22 +33376,22 @@ 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 { return ApiExtrasTagsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -28782,8 +33470,8 @@ func (a *ExtrasAPIService) ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestr } type ApiExtrasTagsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI tagRequest *[]TagRequest } @@ -28801,25 +33489,24 @@ 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 { return ApiExtrasTagsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tag +// @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") @@ -28907,8 +33594,8 @@ func (a *ExtrasAPIService) ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBul } type ApiExtrasTagsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI tagRequest *[]TagRequest } @@ -28926,25 +33613,24 @@ 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 { return ApiExtrasTagsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tag +// @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") @@ -29032,8 +33718,8 @@ func (a *ExtrasAPIService) ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdate } type ApiExtrasTagsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI tagRequest *TagRequest } @@ -29051,25 +33737,24 @@ 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 { return ApiExtrasTagsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Tag +// @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") @@ -29157,9 +33842,9 @@ func (a *ExtrasAPIService) ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest) } type ApiExtrasTagsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 } func (r ApiExtrasTagsDestroyRequest) Execute() (*http.Response, error) { @@ -29171,24 +33856,24 @@ 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 { 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) { 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") @@ -29263,85 +33948,85 @@ 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 - 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 - 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 + ctx context.Context + ApiService ExtrasAPI + 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 + descriptionEmpty *bool + 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 + 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 } func (r ApiExtrasTagsListRequest) Color(color []string) ApiExtrasTagsListRequest { @@ -29742,25 +34427,24 @@ 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 { return ApiExtrasTagsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTagList +// @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") @@ -29779,24 +34463,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "form", "multi") } } if r.colorEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "form", "") } if r.colorIc != nil { t := *r.colorIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "form", "multi") } } if r.colorIe != nil { @@ -29804,10 +34488,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "form", "multi") } } if r.colorIew != nil { @@ -29815,10 +34499,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "form", "multi") } } if r.colorIsw != nil { @@ -29826,10 +34510,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "form", "multi") } } if r.colorN != nil { @@ -29837,10 +34521,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "form", "multi") } } if r.colorNic != nil { @@ -29848,10 +34532,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "form", "multi") } } if r.colorNie != nil { @@ -29859,10 +34543,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "form", "multi") } } if r.colorNiew != nil { @@ -29870,10 +34554,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "form", "multi") } } if r.colorNisw != nil { @@ -29881,10 +34565,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "form", "multi") } } if r.contentType != nil { @@ -29892,10 +34576,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", t, "form", "multi") } } if r.contentTypeId != nil { @@ -29903,10 +34587,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "form", "multi") } } if r.created != nil { @@ -29914,10 +34598,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -29925,10 +34609,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -29936,10 +34620,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -29947,10 +34631,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -29958,10 +34642,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -29969,10 +34653,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -29980,38 +34664,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -30019,10 +34703,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -30030,10 +34714,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -30041,10 +34725,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -30052,10 +34736,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -30063,10 +34747,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -30074,10 +34758,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -30085,10 +34769,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -30096,10 +34780,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.forObjectTypeId != nil { @@ -30107,10 +34791,10 @@ 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, "for_object_type_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "for_object_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "for_object_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "for_object_type_id", t, "form", "multi") } } if r.id != nil { @@ -30118,24 +34802,24 @@ 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -30143,10 +34827,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -30154,10 +34838,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -30165,10 +34849,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -30176,10 +34860,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -30187,10 +34871,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -30198,10 +34882,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -30209,10 +34893,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -30220,10 +34904,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -30231,10 +34915,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -30242,10 +34926,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -30253,41 +34937,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -30295,10 +34979,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -30306,10 +34990,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -30317,10 +35001,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -30328,10 +35012,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -30339,10 +35023,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -30350,10 +35034,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -30361,10 +35045,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -30372,10 +35056,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.objectTypes != nil { @@ -30383,10 +35067,10 @@ 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, "object_types", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", t, "form", "multi") } } if r.objectTypesN != nil { @@ -30394,44 +35078,44 @@ 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, "object_types__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -30439,10 +35123,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -30450,10 +35134,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -30461,10 +35145,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -30472,10 +35156,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -30483,10 +35167,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -30494,10 +35178,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -30505,10 +35189,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -30516,14 +35200,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30594,9 +35278,9 @@ func (a *ExtrasAPIService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P } type ApiExtrasTagsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 patchedTagRequest *PatchedTagRequest } @@ -30614,27 +35298,26 @@ 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 { return ApiExtrasTagsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tag +// @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") @@ -30720,9 +35403,9 @@ func (a *ExtrasAPIService) ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartial } type ApiExtrasTagsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 } func (r ApiExtrasTagsRetrieveRequest) Execute() (*Tag, *http.Response, error) { @@ -30734,27 +35417,26 @@ 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 { return ApiExtrasTagsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tag +// @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") @@ -30838,9 +35520,9 @@ func (a *ExtrasAPIService) ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequ } type ApiExtrasTagsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 tagRequest *TagRequest } @@ -30858,27 +35540,26 @@ 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 { return ApiExtrasTagsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tag +// @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") @@ -30967,8 +35648,8 @@ func (a *ExtrasAPIService) ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest) } type ApiExtrasWebhooksBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI webhookRequest *[]WebhookRequest } @@ -30986,22 +35667,22 @@ 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 { return ApiExtrasWebhooksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -31080,8 +35761,8 @@ func (a *ExtrasAPIService) ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksB } type ApiExtrasWebhooksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI webhookRequest *[]WebhookRequest } @@ -31099,25 +35780,24 @@ 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 { return ApiExtrasWebhooksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Webhook +// @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") @@ -31205,8 +35885,8 @@ func (a *ExtrasAPIService) ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWeb } type ApiExtrasWebhooksBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI webhookRequest *[]WebhookRequest } @@ -31224,25 +35904,24 @@ 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 { return ApiExtrasWebhooksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Webhook +// @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") @@ -31330,8 +36009,8 @@ func (a *ExtrasAPIService) ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBu } type ApiExtrasWebhooksCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService + ctx context.Context + ApiService ExtrasAPI webhookRequest *WebhookRequest } @@ -31349,25 +36028,24 @@ 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 { return ApiExtrasWebhooksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Webhook +// @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") @@ -31455,9 +36133,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreate } type ApiExtrasWebhooksDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 } func (r ApiExtrasWebhooksDestroyRequest) Execute() (*http.Response, error) { @@ -31469,24 +36147,24 @@ 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 { 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) { 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") @@ -31561,97 +36239,106 @@ 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 - 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 - httpContentType *[]string + ctx context.Context + ApiService ExtrasAPI + caFilePath *[]string + caFilePathEmpty *bool + caFilePathIc *[]string + caFilePathIe *[]string + caFilePathIew *[]string + caFilePathIsw *[]string + caFilePathN *[]string + caFilePathNic *[]string + caFilePathNie *[]string + caFilePathNiew *[]string + caFilePathNisw *[]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 + 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 - 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 - 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 - updatedByRequest *string + httpContentTypeIc *[]string + httpContentTypeIe *[]string + httpContentTypeIew *[]string + httpContentTypeIsw *[]string + httpContentTypeN *[]string + httpContentTypeNic *[]string + httpContentTypeNie *[]string + httpContentTypeNiew *[]string + httpContentTypeNisw *[]string + httpMethod *[]string + httpMethodEmpty *bool + httpMethodIc *[]string + httpMethodIe *[]string + httpMethodIew *[]string + httpMethodIsw *[]string + httpMethodN *[]string + httpMethodNic *[]string + httpMethodNie *[]string + httpMethodNiew *[]string + httpMethodNisw *[]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 + 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 + updatedByRequest *string } func (r ApiExtrasWebhooksListRequest) CaFilePath(caFilePath []string) ApiExtrasWebhooksListRequest { @@ -31864,11 +36551,56 @@ func (r ApiExtrasWebhooksListRequest) HttpMethod(httpMethod []string) ApiExtrasW return r } +func (r ApiExtrasWebhooksListRequest) HttpMethodEmpty(httpMethodEmpty bool) ApiExtrasWebhooksListRequest { + r.httpMethodEmpty = &httpMethodEmpty + return r +} + +func (r ApiExtrasWebhooksListRequest) HttpMethodIc(httpMethodIc []string) ApiExtrasWebhooksListRequest { + r.httpMethodIc = &httpMethodIc + return r +} + +func (r ApiExtrasWebhooksListRequest) HttpMethodIe(httpMethodIe []string) ApiExtrasWebhooksListRequest { + r.httpMethodIe = &httpMethodIe + return r +} + +func (r ApiExtrasWebhooksListRequest) HttpMethodIew(httpMethodIew []string) ApiExtrasWebhooksListRequest { + r.httpMethodIew = &httpMethodIew + return r +} + +func (r ApiExtrasWebhooksListRequest) HttpMethodIsw(httpMethodIsw []string) ApiExtrasWebhooksListRequest { + r.httpMethodIsw = &httpMethodIsw + return r +} + func (r ApiExtrasWebhooksListRequest) HttpMethodN(httpMethodN []string) ApiExtrasWebhooksListRequest { r.httpMethodN = &httpMethodN return r } +func (r ApiExtrasWebhooksListRequest) HttpMethodNic(httpMethodNic []string) ApiExtrasWebhooksListRequest { + r.httpMethodNic = &httpMethodNic + return r +} + +func (r ApiExtrasWebhooksListRequest) HttpMethodNie(httpMethodNie []string) ApiExtrasWebhooksListRequest { + r.httpMethodNie = &httpMethodNie + return r +} + +func (r ApiExtrasWebhooksListRequest) HttpMethodNiew(httpMethodNiew []string) ApiExtrasWebhooksListRequest { + r.httpMethodNiew = &httpMethodNiew + return r +} + +func (r ApiExtrasWebhooksListRequest) HttpMethodNisw(httpMethodNisw []string) ApiExtrasWebhooksListRequest { + r.httpMethodNisw = &httpMethodNisw + return r +} + func (r ApiExtrasWebhooksListRequest) Id(id []int32) ApiExtrasWebhooksListRequest { r.id = &id return r @@ -32112,25 +36844,24 @@ 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 { return ApiExtrasWebhooksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWebhookList +// @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") @@ -32149,24 +36880,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path", t, "form", "multi") } } if r.caFilePathEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__empty", r.caFilePathEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__empty", r.caFilePathEmpty, "form", "") } if r.caFilePathIc != nil { t := *r.caFilePathIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ic", t, "form", "multi") } } if r.caFilePathIe != nil { @@ -32174,10 +36905,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ie", t, "form", "multi") } } if r.caFilePathIew != nil { @@ -32185,10 +36916,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__iew", t, "form", "multi") } } if r.caFilePathIsw != nil { @@ -32196,10 +36927,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__isw", t, "form", "multi") } } if r.caFilePathN != nil { @@ -32207,10 +36938,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__n", t, "form", "multi") } } if r.caFilePathNic != nil { @@ -32218,10 +36949,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nic", t, "form", "multi") } } if r.caFilePathNie != nil { @@ -32229,10 +36960,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nie", t, "form", "multi") } } if r.caFilePathNiew != nil { @@ -32240,10 +36971,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__niew", t, "form", "multi") } } if r.caFilePathNisw != nil { @@ -32251,10 +36982,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nisw", t, "form", "multi") } } if r.created != nil { @@ -32262,10 +36993,10 @@ 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -32273,10 +37004,10 @@ 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -32284,10 +37015,10 @@ 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -32295,10 +37026,10 @@ 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -32306,10 +37037,10 @@ 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -32317,10 +37048,10 @@ 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -32328,38 +37059,38 @@ 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -32367,10 +37098,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -32378,10 +37109,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -32389,10 +37120,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -32400,10 +37131,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -32411,10 +37142,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -32422,10 +37153,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -32433,10 +37164,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -32444,10 +37175,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.httpContentType != nil { @@ -32455,24 +37186,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type", t, "form", "multi") } } if r.httpContentTypeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__empty", r.httpContentTypeEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__empty", r.httpContentTypeEmpty, "form", "") } if r.httpContentTypeIc != nil { t := *r.httpContentTypeIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ic", t, "form", "multi") } } if r.httpContentTypeIe != nil { @@ -32480,10 +37211,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ie", t, "form", "multi") } } if r.httpContentTypeIew != nil { @@ -32491,10 +37222,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__iew", t, "form", "multi") } } if r.httpContentTypeIsw != nil { @@ -32502,10 +37233,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__isw", t, "form", "multi") } } if r.httpContentTypeN != nil { @@ -32513,10 +37244,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__n", t, "form", "multi") } } if r.httpContentTypeNic != nil { @@ -32524,10 +37255,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nic", t, "form", "multi") } } if r.httpContentTypeNie != nil { @@ -32535,10 +37266,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nie", t, "form", "multi") } } if r.httpContentTypeNiew != nil { @@ -32546,10 +37277,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__niew", t, "form", "multi") } } if r.httpContentTypeNisw != nil { @@ -32557,10 +37288,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nisw", t, "form", "multi") } } if r.httpMethod != nil { @@ -32568,10 +37299,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method", t, "form", "multi") + } + } + if r.httpMethodEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__empty", r.httpMethodEmpty, "form", "") + } + if r.httpMethodIc != nil { + t := *r.httpMethodIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ic", t, "form", "multi") + } + } + if r.httpMethodIe != nil { + t := *r.httpMethodIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ie", t, "form", "multi") + } + } + if r.httpMethodIew != nil { + t := *r.httpMethodIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__iew", t, "form", "multi") + } + } + if r.httpMethodIsw != nil { + t := *r.httpMethodIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_method", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__isw", t, "form", "multi") } } if r.httpMethodN != nil { @@ -32579,10 +37357,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__n", t, "form", "multi") + } + } + if r.httpMethodNic != nil { + t := *r.httpMethodNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nic", t, "form", "multi") + } + } + if r.httpMethodNie != nil { + t := *r.httpMethodNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nie", t, "form", "multi") + } + } + if r.httpMethodNiew != nil { + t := *r.httpMethodNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__niew", t, "form", "multi") + } + } + if r.httpMethodNisw != nil { + t := *r.httpMethodNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nisw", t, "form", "multi") } } if r.id != nil { @@ -32590,24 +37412,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -32615,10 +37437,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -32626,10 +37448,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -32637,10 +37459,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -32648,10 +37470,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -32659,10 +37481,10 @@ 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -32670,10 +37492,10 @@ 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -32681,10 +37503,10 @@ 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -32692,10 +37514,10 @@ 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -32703,10 +37525,10 @@ 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -32714,10 +37536,10 @@ 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -32725,41 +37547,41 @@ 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -32767,10 +37589,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -32778,10 +37600,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -32789,10 +37611,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -32800,10 +37622,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -32811,10 +37633,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -32822,10 +37644,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -32833,10 +37655,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -32844,55 +37666,55 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.payloadUrl != nil { t := *r.payloadUrl 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.secret != nil { t := *r.secret if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret", t, "form", "multi") } } if r.secretEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__empty", r.secretEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__empty", r.secretEmpty, "form", "") } if r.secretIc != nil { t := *r.secretIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ic", t, "form", "multi") } } if r.secretIe != nil { @@ -32900,10 +37722,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ie", t, "form", "multi") } } if r.secretIew != nil { @@ -32911,10 +37733,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__iew", t, "form", "multi") } } if r.secretIsw != nil { @@ -32922,10 +37744,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__isw", t, "form", "multi") } } if r.secretN != nil { @@ -32933,10 +37755,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__n", t, "form", "multi") } } if r.secretNic != nil { @@ -32944,10 +37766,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nic", t, "form", "multi") } } if r.secretNie != nil { @@ -32955,10 +37777,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nie", t, "form", "multi") } } if r.secretNiew != nil { @@ -32966,10 +37788,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__niew", t, "form", "multi") } } if r.secretNisw != nil { @@ -32977,24 +37799,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nisw", t, "form", "multi") } } if r.sslVerification != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssl_verification", r.sslVerification, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssl_verification", r.sslVerification, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -33002,14 +37824,14 @@ 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -33080,9 +37902,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ } type ApiExtrasWebhooksPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 patchedWebhookRequest *PatchedWebhookRequest } @@ -33100,27 +37922,26 @@ 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 { return ApiExtrasWebhooksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Webhook +// @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") @@ -33206,9 +38027,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhook } type ApiExtrasWebhooksRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 } func (r ApiExtrasWebhooksRetrieveRequest) Execute() (*Webhook, *http.Response, error) { @@ -33220,27 +38041,26 @@ 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 { return ApiExtrasWebhooksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Webhook +// @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") @@ -33324,9 +38144,9 @@ func (a *ExtrasAPIService) ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetr } type ApiExtrasWebhooksUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 + ctx context.Context + ApiService ExtrasAPI + id int32 webhookRequest *WebhookRequest } @@ -33344,27 +38164,26 @@ 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 { return ApiExtrasWebhooksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Webhook +// @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") diff --git a/api_ipam.go b/api_ipam.go index 0e906f7521..9cec5c2079 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,64 +16,7307 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) -// IpamAPIService IpamAPI service -type IpamAPIService service -type ApiIpamAggregatesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - aggregateRequest *[]AggregateRequest +type IpamAPI interface { + + /* + 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 + */ + IpamAggregatesBulkDestroy(ctx context.Context) ApiIpamAggregatesBulkDestroyRequest + + // IpamAggregatesBulkDestroyExecute executes the request + IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamAggregatesBulkPartialUpdate(ctx context.Context) ApiIpamAggregatesBulkPartialUpdateRequest + + // IpamAggregatesBulkPartialUpdateExecute executes the request + // @return []Aggregate + IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggregatesBulkPartialUpdateRequest) ([]Aggregate, *http.Response, error) + + /* + 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 + */ + IpamAggregatesBulkUpdate(ctx context.Context) ApiIpamAggregatesBulkUpdateRequest + + // IpamAggregatesBulkUpdateExecute executes the request + // @return []Aggregate + IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulkUpdateRequest) ([]Aggregate, *http.Response, error) + + /* + 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 + */ + IpamAggregatesCreate(ctx context.Context) ApiIpamAggregatesCreateRequest + + // IpamAggregatesCreateExecute executes the request + // @return Aggregate + IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRequest) (*Aggregate, *http.Response, error) + + /* + 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 + */ + IpamAggregatesDestroy(ctx context.Context, id int32) ApiIpamAggregatesDestroyRequest + + // IpamAggregatesDestroyExecute executes the request + IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamAggregatesList(ctx context.Context) ApiIpamAggregatesListRequest + + // IpamAggregatesListExecute executes the request + // @return PaginatedAggregateList + IpamAggregatesListExecute(r ApiIpamAggregatesListRequest) (*PaginatedAggregateList, *http.Response, error) + + /* + 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 + */ + IpamAggregatesPartialUpdate(ctx context.Context, id int32) ApiIpamAggregatesPartialUpdateRequest + + // IpamAggregatesPartialUpdateExecute executes the request + // @return Aggregate + IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesPartialUpdateRequest) (*Aggregate, *http.Response, error) + + /* + 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 + */ + IpamAggregatesRetrieve(ctx context.Context, id int32) ApiIpamAggregatesRetrieveRequest + + // IpamAggregatesRetrieveExecute executes the request + // @return Aggregate + IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrieveRequest) (*Aggregate, *http.Response, error) + + /* + 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 + */ + IpamAggregatesUpdate(ctx context.Context, id int32) ApiIpamAggregatesUpdateRequest + + // IpamAggregatesUpdateExecute executes the request + // @return Aggregate + IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRequest) (*Aggregate, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesAvailableAsnsCreate(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsCreateRequest + + // IpamAsnRangesAvailableAsnsCreateExecute executes the request + // @return []ASN + IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRangesAvailableAsnsCreateRequest) ([]ASN, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesAvailableAsnsList(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsListRequest + + // IpamAsnRangesAvailableAsnsListExecute executes the request + // @return []AvailableASN + IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRangesAvailableAsnsListRequest) ([]AvailableASN, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesBulkDestroy(ctx context.Context) ApiIpamAsnRangesBulkDestroyRequest + + // IpamAsnRangesBulkDestroyExecute executes the request + IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamAsnRangesBulkPartialUpdate(ctx context.Context) ApiIpamAsnRangesBulkPartialUpdateRequest + + // IpamAsnRangesBulkPartialUpdateExecute executes the request + // @return []ASNRange + IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRangesBulkPartialUpdateRequest) ([]ASNRange, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesBulkUpdate(ctx context.Context) ApiIpamAsnRangesBulkUpdateRequest + + // IpamAsnRangesBulkUpdateExecute executes the request + // @return []ASNRange + IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUpdateRequest) ([]ASNRange, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesCreate(ctx context.Context) ApiIpamAsnRangesCreateRequest + + // IpamAsnRangesCreateExecute executes the request + // @return ASNRange + IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequest) (*ASNRange, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesDestroy(ctx context.Context, id int32) ApiIpamAsnRangesDestroyRequest + + // IpamAsnRangesDestroyExecute executes the request + IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamAsnRangesList(ctx context.Context) ApiIpamAsnRangesListRequest + + // IpamAsnRangesListExecute executes the request + // @return PaginatedASNRangeList + IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) (*PaginatedASNRangeList, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesPartialUpdate(ctx context.Context, id int32) ApiIpamAsnRangesPartialUpdateRequest + + // IpamAsnRangesPartialUpdateExecute executes the request + // @return ASNRange + IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPartialUpdateRequest) (*ASNRange, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesRetrieve(ctx context.Context, id int32) ApiIpamAsnRangesRetrieveRequest + + // IpamAsnRangesRetrieveExecute executes the request + // @return ASNRange + IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieveRequest) (*ASNRange, *http.Response, error) + + /* + 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 + */ + IpamAsnRangesUpdate(ctx context.Context, id int32) ApiIpamAsnRangesUpdateRequest + + // IpamAsnRangesUpdateExecute executes the request + // @return ASNRange + IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequest) (*ASNRange, *http.Response, error) + + /* + 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 + */ + IpamAsnsBulkDestroy(ctx context.Context) ApiIpamAsnsBulkDestroyRequest + + // IpamAsnsBulkDestroyExecute executes the request + IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamAsnsBulkPartialUpdate(ctx context.Context) ApiIpamAsnsBulkPartialUpdateRequest + + // IpamAsnsBulkPartialUpdateExecute executes the request + // @return []ASN + IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkPartialUpdateRequest) ([]ASN, *http.Response, error) + + /* + 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 + */ + IpamAsnsBulkUpdate(ctx context.Context) ApiIpamAsnsBulkUpdateRequest + + // IpamAsnsBulkUpdateExecute executes the request + // @return []ASN + IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateRequest) ([]ASN, *http.Response, error) + + /* + 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 + */ + IpamAsnsCreate(ctx context.Context) ApiIpamAsnsCreateRequest + + // IpamAsnsCreateExecute executes the request + // @return ASN + IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN, *http.Response, error) + + /* + 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 + */ + IpamAsnsDestroy(ctx context.Context, id int32) ApiIpamAsnsDestroyRequest + + // IpamAsnsDestroyExecute executes the request + IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamAsnsList(ctx context.Context) ApiIpamAsnsListRequest + + // IpamAsnsListExecute executes the request + // @return PaginatedASNList + IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*PaginatedASNList, *http.Response, error) + + /* + 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 + */ + IpamAsnsPartialUpdate(ctx context.Context, id int32) ApiIpamAsnsPartialUpdateRequest + + // IpamAsnsPartialUpdateExecute executes the request + // @return ASN + IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdateRequest) (*ASN, *http.Response, error) + + /* + 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 + */ + IpamAsnsRetrieve(ctx context.Context, id int32) ApiIpamAsnsRetrieveRequest + + // IpamAsnsRetrieveExecute executes the request + // @return ASN + IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (*ASN, *http.Response, error) + + /* + 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 + */ + IpamAsnsUpdate(ctx context.Context, id int32) ApiIpamAsnsUpdateRequest + + // IpamAsnsUpdateExecute executes the request + // @return ASN + IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN, *http.Response, error) + + /* + IpamFhrpGroupAssignmentsBulkDestroy Method for IpamFhrpGroupAssignmentsBulkDestroy + + 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 + */ + IpamFhrpGroupAssignmentsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest + + // IpamFhrpGroupAssignmentsBulkDestroyExecute executes the request + IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) (*http.Response, error) + + /* + IpamFhrpGroupAssignmentsBulkPartialUpdate Method for IpamFhrpGroupAssignmentsBulkPartialUpdate + + 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 + */ + IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest + + // IpamFhrpGroupAssignmentsBulkPartialUpdateExecute executes the request + // @return []FHRPGroupAssignment + IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupAssignmentsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest + + // IpamFhrpGroupAssignmentsBulkUpdateExecute executes the request + // @return []FHRPGroupAssignment + IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupAssignmentsCreate(ctx context.Context) ApiIpamFhrpGroupAssignmentsCreateRequest + + // IpamFhrpGroupAssignmentsCreateExecute executes the request + // @return FHRPGroupAssignment + IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGroupAssignmentsCreateRequest) (*FHRPGroupAssignment, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupAssignmentsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsDestroyRequest + + // IpamFhrpGroupAssignmentsDestroyExecute executes the request + IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGroupAssignmentsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamFhrpGroupAssignmentsList(ctx context.Context) ApiIpamFhrpGroupAssignmentsListRequest + + // IpamFhrpGroupAssignmentsListExecute executes the request + // @return PaginatedFHRPGroupAssignmentList + IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupAssignmentsListRequest) (*PaginatedFHRPGroupAssignmentList, *http.Response, error) + + /* + IpamFhrpGroupAssignmentsPartialUpdate Method for IpamFhrpGroupAssignmentsPartialUpdate + + 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 + */ + IpamFhrpGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest + + // IpamFhrpGroupAssignmentsPartialUpdateExecute executes the request + // @return FHRPGroupAssignment + IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsRetrieveRequest + + // IpamFhrpGroupAssignmentsRetrieveExecute executes the request + // @return FHRPGroupAssignment + IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGroupAssignmentsRetrieveRequest) (*FHRPGroupAssignment, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupAssignmentsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsUpdateRequest + + // IpamFhrpGroupAssignmentsUpdateExecute executes the request + // @return FHRPGroupAssignment + IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGroupAssignmentsUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupsBulkDestroyRequest + + // IpamFhrpGroupsBulkDestroyExecute executes the request + IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkPartialUpdateRequest + + // IpamFhrpGroupsBulkPartialUpdateExecute executes the request + // @return []FHRPGroup + IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGroupsBulkPartialUpdateRequest) ([]FHRPGroup, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkUpdateRequest + + // IpamFhrpGroupsBulkUpdateExecute executes the request + // @return []FHRPGroup + IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulkUpdateRequest) ([]FHRPGroup, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsCreate(ctx context.Context) ApiIpamFhrpGroupsCreateRequest + + // IpamFhrpGroupsCreateExecute executes the request + // @return FHRPGroup + IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRequest) (*FHRPGroup, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupsDestroyRequest + + // IpamFhrpGroupsDestroyExecute executes the request + IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsList(ctx context.Context) ApiIpamFhrpGroupsListRequest + + // IpamFhrpGroupsListExecute executes the request + // @return PaginatedFHRPGroupList + IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListRequest) (*PaginatedFHRPGroupList, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsPartialUpdateRequest + + // IpamFhrpGroupsPartialUpdateExecute executes the request + // @return FHRPGroup + IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsPartialUpdateRequest) (*FHRPGroup, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupsRetrieveRequest + + // IpamFhrpGroupsRetrieveExecute executes the request + // @return FHRPGroup + IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrieveRequest) (*FHRPGroup, *http.Response, error) + + /* + 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 + */ + IpamFhrpGroupsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsUpdateRequest + + // IpamFhrpGroupsUpdateExecute executes the request + // @return FHRPGroup + IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRequest) (*FHRPGroup, *http.Response, error) + + /* + 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 + */ + IpamIpAddressesBulkDestroy(ctx context.Context) ApiIpamIpAddressesBulkDestroyRequest + + // IpamIpAddressesBulkDestroyExecute executes the request + IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamIpAddressesBulkPartialUpdate(ctx context.Context) ApiIpamIpAddressesBulkPartialUpdateRequest + + // IpamIpAddressesBulkPartialUpdateExecute executes the request + // @return []IPAddress + IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddressesBulkPartialUpdateRequest) ([]IPAddress, *http.Response, error) + + /* + 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 + */ + IpamIpAddressesBulkUpdate(ctx context.Context) ApiIpamIpAddressesBulkUpdateRequest + + // IpamIpAddressesBulkUpdateExecute executes the request + // @return []IPAddress + IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBulkUpdateRequest) ([]IPAddress, *http.Response, error) + + /* + 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 + */ + IpamIpAddressesCreate(ctx context.Context) ApiIpamIpAddressesCreateRequest + + // IpamIpAddressesCreateExecute executes the request + // @return IPAddress + IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreateRequest) (*IPAddress, *http.Response, error) + + /* + 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 + */ + IpamIpAddressesDestroy(ctx context.Context, id int32) ApiIpamIpAddressesDestroyRequest + + // IpamIpAddressesDestroyExecute executes the request + IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamIpAddressesList(ctx context.Context) ApiIpamIpAddressesListRequest + + // IpamIpAddressesListExecute executes the request + // @return PaginatedIPAddressList + IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequest) (*PaginatedIPAddressList, *http.Response, error) + + /* + 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 + */ + IpamIpAddressesPartialUpdate(ctx context.Context, id int32) ApiIpamIpAddressesPartialUpdateRequest + + // IpamIpAddressesPartialUpdateExecute executes the request + // @return IPAddress + IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddressesPartialUpdateRequest) (*IPAddress, *http.Response, error) + + /* + 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 + */ + IpamIpAddressesRetrieve(ctx context.Context, id int32) ApiIpamIpAddressesRetrieveRequest + + // IpamIpAddressesRetrieveExecute executes the request + // @return IPAddress + IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetrieveRequest) (*IPAddress, *http.Response, error) + + /* + 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 + */ + IpamIpAddressesUpdate(ctx context.Context, id int32) ApiIpamIpAddressesUpdateRequest + + // IpamIpAddressesUpdateExecute executes the request + // @return IPAddress + IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdateRequest) (*IPAddress, *http.Response, error) + + /* + 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 + */ + IpamIpRangesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsCreateRequest + + // IpamIpRangesAvailableIpsCreateExecute executes the request + // @return []IPAddress + IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRangesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) + + /* + 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 + */ + IpamIpRangesAvailableIpsList(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsListRequest + + // IpamIpRangesAvailableIpsListExecute executes the request + // @return []AvailableIP + IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) + + /* + 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 + */ + IpamIpRangesBulkDestroy(ctx context.Context) ApiIpamIpRangesBulkDestroyRequest + + // IpamIpRangesBulkDestroyExecute executes the request + IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamIpRangesBulkPartialUpdate(ctx context.Context) ApiIpamIpRangesBulkPartialUpdateRequest + + // IpamIpRangesBulkPartialUpdateExecute executes the request + // @return []IPRange + IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesBulkPartialUpdateRequest) ([]IPRange, *http.Response, error) + + /* + 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 + */ + IpamIpRangesBulkUpdate(ctx context.Context) ApiIpamIpRangesBulkUpdateRequest + + // IpamIpRangesBulkUpdateExecute executes the request + // @return []IPRange + IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpdateRequest) ([]IPRange, *http.Response, error) + + /* + 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 + */ + IpamIpRangesCreate(ctx context.Context) ApiIpamIpRangesCreateRequest + + // IpamIpRangesCreateExecute executes the request + // @return IPRange + IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateRequest) (*IPRange, *http.Response, error) + + /* + 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 + */ + IpamIpRangesDestroy(ctx context.Context, id int32) ApiIpamIpRangesDestroyRequest + + // IpamIpRangesDestroyExecute executes the request + IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamIpRangesList(ctx context.Context) ApiIpamIpRangesListRequest + + // IpamIpRangesListExecute executes the request + // @return PaginatedIPRangeList + IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (*PaginatedIPRangeList, *http.Response, error) + + /* + 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 + */ + IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest + + // IpamIpRangesPartialUpdateExecute executes the request + // @return IPRange + IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) + + /* + 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 + */ + IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest + + // IpamIpRangesRetrieveExecute executes the request + // @return IPRange + IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) + + /* + 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 + */ + IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest + + // IpamIpRangesUpdateExecute executes the request + // @return IPRange + IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) + + /* + 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 + */ + IpamPrefixesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsCreateRequest + + // IpamPrefixesAvailableIpsCreateExecute executes the request + // @return []IPAddress + IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) + + /* + 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 + */ + IpamPrefixesAvailableIpsList(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsListRequest + + // IpamPrefixesAvailableIpsListExecute executes the request + // @return []AvailableIP + IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) + + /* + IpamPrefixesAvailablePrefixesCreate Method for IpamPrefixesAvailablePrefixesCreate + + 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 + */ + IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesCreateRequest + + // IpamPrefixesAvailablePrefixesCreateExecute executes the request + // @return []Prefix + IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPrefixesAvailablePrefixesCreateRequest) ([]Prefix, *http.Response, error) + + /* + 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 + */ + IpamPrefixesAvailablePrefixesList(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesListRequest + + // IpamPrefixesAvailablePrefixesListExecute executes the request + // @return []AvailablePrefix + IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefixesAvailablePrefixesListRequest) ([]AvailablePrefix, *http.Response, error) + + /* + 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 + */ + IpamPrefixesBulkDestroy(ctx context.Context) ApiIpamPrefixesBulkDestroyRequest + + // IpamPrefixesBulkDestroyExecute executes the request + IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamPrefixesBulkPartialUpdate(ctx context.Context) ApiIpamPrefixesBulkPartialUpdateRequest + + // IpamPrefixesBulkPartialUpdateExecute executes the request + // @return []Prefix + IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesBulkPartialUpdateRequest) ([]Prefix, *http.Response, error) + + /* + 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 + */ + IpamPrefixesBulkUpdate(ctx context.Context) ApiIpamPrefixesBulkUpdateRequest + + // IpamPrefixesBulkUpdateExecute executes the request + // @return []Prefix + IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpdateRequest) ([]Prefix, *http.Response, error) + + /* + 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 + */ + IpamPrefixesCreate(ctx context.Context) ApiIpamPrefixesCreateRequest + + // IpamPrefixesCreateExecute executes the request + // @return Prefix + IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateRequest) (*Prefix, *http.Response, error) + + /* + 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 + */ + IpamPrefixesDestroy(ctx context.Context, id int32) ApiIpamPrefixesDestroyRequest + + // IpamPrefixesDestroyExecute executes the request + IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamPrefixesList(ctx context.Context) ApiIpamPrefixesListRequest + + // IpamPrefixesListExecute executes the request + // @return PaginatedPrefixList + IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (*PaginatedPrefixList, *http.Response, error) + + /* + 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 + */ + IpamPrefixesPartialUpdate(ctx context.Context, id int32) ApiIpamPrefixesPartialUpdateRequest + + // IpamPrefixesPartialUpdateExecute executes the request + // @return Prefix + IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesPartialUpdateRequest) (*Prefix, *http.Response, error) + + /* + 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 + */ + IpamPrefixesRetrieve(ctx context.Context, id int32) ApiIpamPrefixesRetrieveRequest + + // IpamPrefixesRetrieveExecute executes the request + // @return Prefix + IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRequest) (*Prefix, *http.Response, error) + + /* + 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 + */ + IpamPrefixesUpdate(ctx context.Context, id int32) ApiIpamPrefixesUpdateRequest + + // IpamPrefixesUpdateExecute executes the request + // @return Prefix + IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateRequest) (*Prefix, *http.Response, error) + + /* + 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 + */ + IpamRirsBulkDestroy(ctx context.Context) ApiIpamRirsBulkDestroyRequest + + // IpamRirsBulkDestroyExecute executes the request + IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamRirsBulkPartialUpdate(ctx context.Context) ApiIpamRirsBulkPartialUpdateRequest + + // IpamRirsBulkPartialUpdateExecute executes the request + // @return []RIR + IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkPartialUpdateRequest) ([]RIR, *http.Response, error) + + /* + 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 + */ + IpamRirsBulkUpdate(ctx context.Context) ApiIpamRirsBulkUpdateRequest + + // IpamRirsBulkUpdateExecute executes the request + // @return []RIR + IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateRequest) ([]RIR, *http.Response, error) + + /* + 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 + */ + IpamRirsCreate(ctx context.Context) ApiIpamRirsCreateRequest + + // IpamRirsCreateExecute executes the request + // @return RIR + IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR, *http.Response, error) + + /* + 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 + */ + IpamRirsDestroy(ctx context.Context, id int32) ApiIpamRirsDestroyRequest + + // IpamRirsDestroyExecute executes the request + IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamRirsList(ctx context.Context) ApiIpamRirsListRequest + + // IpamRirsListExecute executes the request + // @return PaginatedRIRList + IpamRirsListExecute(r ApiIpamRirsListRequest) (*PaginatedRIRList, *http.Response, error) + + /* + 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 + */ + IpamRirsPartialUpdate(ctx context.Context, id int32) ApiIpamRirsPartialUpdateRequest + + // IpamRirsPartialUpdateExecute executes the request + // @return RIR + IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdateRequest) (*RIR, *http.Response, error) + + /* + 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 + */ + IpamRirsRetrieve(ctx context.Context, id int32) ApiIpamRirsRetrieveRequest + + // IpamRirsRetrieveExecute executes the request + // @return RIR + IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (*RIR, *http.Response, error) + + /* + 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 + */ + IpamRirsUpdate(ctx context.Context, id int32) ApiIpamRirsUpdateRequest + + // IpamRirsUpdateExecute executes the request + // @return RIR + IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR, *http.Response, error) + + /* + 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 + */ + IpamRolesBulkDestroy(ctx context.Context) ApiIpamRolesBulkDestroyRequest + + // IpamRolesBulkDestroyExecute executes the request + IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamRolesBulkPartialUpdate(ctx context.Context) ApiIpamRolesBulkPartialUpdateRequest + + // IpamRolesBulkPartialUpdateExecute executes the request + // @return []Role + IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPartialUpdateRequest) ([]Role, *http.Response, error) + + /* + 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 + */ + IpamRolesBulkUpdate(ctx context.Context) ApiIpamRolesBulkUpdateRequest + + // IpamRolesBulkUpdateExecute executes the request + // @return []Role + IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequest) ([]Role, *http.Response, error) + + /* + 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 + */ + IpamRolesCreate(ctx context.Context) ApiIpamRolesCreateRequest + + // IpamRolesCreateExecute executes the request + // @return Role + IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*Role, *http.Response, error) + + /* + 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 + */ + IpamRolesDestroy(ctx context.Context, id int32) ApiIpamRolesDestroyRequest + + // IpamRolesDestroyExecute executes the request + IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamRolesList(ctx context.Context) ApiIpamRolesListRequest + + // IpamRolesListExecute executes the request + // @return PaginatedRoleList + IpamRolesListExecute(r ApiIpamRolesListRequest) (*PaginatedRoleList, *http.Response, error) + + /* + 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 + */ + IpamRolesPartialUpdate(ctx context.Context, id int32) ApiIpamRolesPartialUpdateRequest + + // IpamRolesPartialUpdateExecute executes the request + // @return Role + IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpdateRequest) (*Role, *http.Response, error) + + /* + 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 + */ + IpamRolesRetrieve(ctx context.Context, id int32) ApiIpamRolesRetrieveRequest + + // IpamRolesRetrieveExecute executes the request + // @return Role + IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) (*Role, *http.Response, error) + + /* + 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 + */ + IpamRolesUpdate(ctx context.Context, id int32) ApiIpamRolesUpdateRequest + + // IpamRolesUpdateExecute executes the request + // @return Role + IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*Role, *http.Response, error) + + /* + 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 + */ + IpamRouteTargetsBulkDestroy(ctx context.Context) ApiIpamRouteTargetsBulkDestroyRequest + + // IpamRouteTargetsBulkDestroyExecute executes the request + IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTargetsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamRouteTargetsBulkPartialUpdate(ctx context.Context) ApiIpamRouteTargetsBulkPartialUpdateRequest + + // IpamRouteTargetsBulkPartialUpdateExecute executes the request + // @return []RouteTarget + IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRouteTargetsBulkPartialUpdateRequest) ([]RouteTarget, *http.Response, error) + + /* + 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 + */ + IpamRouteTargetsBulkUpdate(ctx context.Context) ApiIpamRouteTargetsBulkUpdateRequest + + // IpamRouteTargetsBulkUpdateExecute executes the request + // @return []RouteTarget + IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargetsBulkUpdateRequest) ([]RouteTarget, *http.Response, error) + + /* + 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 + */ + IpamRouteTargetsCreate(ctx context.Context) ApiIpamRouteTargetsCreateRequest + + // IpamRouteTargetsCreateExecute executes the request + // @return RouteTarget + IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCreateRequest) (*RouteTarget, *http.Response, error) + + /* + 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 + */ + IpamRouteTargetsDestroy(ctx context.Context, id int32) ApiIpamRouteTargetsDestroyRequest + + // IpamRouteTargetsDestroyExecute executes the request + IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamRouteTargetsList(ctx context.Context) ApiIpamRouteTargetsListRequest + + // IpamRouteTargetsListExecute executes the request + // @return PaginatedRouteTargetList + IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRequest) (*PaginatedRouteTargetList, *http.Response, error) + + /* + 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 + */ + IpamRouteTargetsPartialUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsPartialUpdateRequest + + // IpamRouteTargetsPartialUpdateExecute executes the request + // @return RouteTarget + IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTargetsPartialUpdateRequest) (*RouteTarget, *http.Response, error) + + /* + 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 + */ + IpamRouteTargetsRetrieve(ctx context.Context, id int32) ApiIpamRouteTargetsRetrieveRequest + + // IpamRouteTargetsRetrieveExecute executes the request + // @return RouteTarget + IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRetrieveRequest) (*RouteTarget, *http.Response, error) + + /* + 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 + */ + IpamRouteTargetsUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsUpdateRequest + + // IpamRouteTargetsUpdateExecute executes the request + // @return RouteTarget + IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpdateRequest) (*RouteTarget, *http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesBulkDestroy(ctx context.Context) ApiIpamServiceTemplatesBulkDestroyRequest + + // IpamServiceTemplatesBulkDestroyExecute executes the request + IpamServiceTemplatesBulkDestroyExecute(r ApiIpamServiceTemplatesBulkDestroyRequest) (*http.Response, error) + + /* + IpamServiceTemplatesBulkPartialUpdate Method for IpamServiceTemplatesBulkPartialUpdate + + 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 + */ + IpamServiceTemplatesBulkPartialUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkPartialUpdateRequest + + // IpamServiceTemplatesBulkPartialUpdateExecute executes the request + // @return []ServiceTemplate + IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ([]ServiceTemplate, *http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesBulkUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkUpdateRequest + + // IpamServiceTemplatesBulkUpdateExecute executes the request + // @return []ServiceTemplate + IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceTemplatesBulkUpdateRequest) ([]ServiceTemplate, *http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesCreate(ctx context.Context) ApiIpamServiceTemplatesCreateRequest + + // IpamServiceTemplatesCreateExecute executes the request + // @return ServiceTemplate + IpamServiceTemplatesCreateExecute(r ApiIpamServiceTemplatesCreateRequest) (*ServiceTemplate, *http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesDestroy(ctx context.Context, id int32) ApiIpamServiceTemplatesDestroyRequest + + // IpamServiceTemplatesDestroyExecute executes the request + IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemplatesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesList(ctx context.Context) ApiIpamServiceTemplatesListRequest + + // IpamServiceTemplatesListExecute executes the request + // @return PaginatedServiceTemplateList + IpamServiceTemplatesListExecute(r ApiIpamServiceTemplatesListRequest) (*PaginatedServiceTemplateList, *http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesPartialUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesPartialUpdateRequest + + // IpamServiceTemplatesPartialUpdateExecute executes the request + // @return ServiceTemplate + IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServiceTemplatesPartialUpdateRequest) (*ServiceTemplate, *http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesRetrieve(ctx context.Context, id int32) ApiIpamServiceTemplatesRetrieveRequest + + // IpamServiceTemplatesRetrieveExecute executes the request + // @return ServiceTemplate + IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTemplatesRetrieveRequest) (*ServiceTemplate, *http.Response, error) + + /* + 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 + */ + IpamServiceTemplatesUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesUpdateRequest + + // IpamServiceTemplatesUpdateExecute executes the request + // @return ServiceTemplate + IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTemplatesUpdateRequest) (*ServiceTemplate, *http.Response, error) + + /* + 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 + */ + IpamServicesBulkDestroy(ctx context.Context) ApiIpamServicesBulkDestroyRequest + + // IpamServicesBulkDestroyExecute executes the request + IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamServicesBulkPartialUpdate(ctx context.Context) ApiIpamServicesBulkPartialUpdateRequest + + // IpamServicesBulkPartialUpdateExecute executes the request + // @return []Service + IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesBulkPartialUpdateRequest) ([]Service, *http.Response, error) + + /* + 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 + */ + IpamServicesBulkUpdate(ctx context.Context) ApiIpamServicesBulkUpdateRequest + + // IpamServicesBulkUpdateExecute executes the request + // @return []Service + IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpdateRequest) ([]Service, *http.Response, error) + + /* + 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 + */ + IpamServicesCreate(ctx context.Context) ApiIpamServicesCreateRequest + + // IpamServicesCreateExecute executes the request + // @return Service + IpamServicesCreateExecute(r ApiIpamServicesCreateRequest) (*Service, *http.Response, error) + + /* + 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 + */ + IpamServicesDestroy(ctx context.Context, id int32) ApiIpamServicesDestroyRequest + + // IpamServicesDestroyExecute executes the request + IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamServicesList(ctx context.Context) ApiIpamServicesListRequest + + // IpamServicesListExecute executes the request + // @return PaginatedServiceList + IpamServicesListExecute(r ApiIpamServicesListRequest) (*PaginatedServiceList, *http.Response, error) + + /* + 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 + */ + IpamServicesPartialUpdate(ctx context.Context, id int32) ApiIpamServicesPartialUpdateRequest + + // IpamServicesPartialUpdateExecute executes the request + // @return Service + IpamServicesPartialUpdateExecute(r ApiIpamServicesPartialUpdateRequest) (*Service, *http.Response, error) + + /* + 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 + */ + IpamServicesRetrieve(ctx context.Context, id int32) ApiIpamServicesRetrieveRequest + + // IpamServicesRetrieveExecute executes the request + // @return Service + IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRequest) (*Service, *http.Response, error) + + /* + 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 + */ + IpamServicesUpdate(ctx context.Context, id int32) ApiIpamServicesUpdateRequest + + // IpamServicesUpdateExecute executes the request + // @return Service + IpamServicesUpdateExecute(r ApiIpamServicesUpdateRequest) (*Service, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsAvailableVlansCreate(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansCreateRequest + + // IpamVlanGroupsAvailableVlansCreateExecute executes the request + // @return []VLAN + IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlanGroupsAvailableVlansCreateRequest) ([]VLAN, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsAvailableVlansList(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansListRequest + + // IpamVlanGroupsAvailableVlansListExecute executes the request + // @return []AvailableVLAN + IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGroupsAvailableVlansListRequest) ([]AvailableVLAN, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsBulkDestroy(ctx context.Context) ApiIpamVlanGroupsBulkDestroyRequest + + // IpamVlanGroupsBulkDestroyExecute executes the request + IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamVlanGroupsBulkPartialUpdate(ctx context.Context) ApiIpamVlanGroupsBulkPartialUpdateRequest + + // IpamVlanGroupsBulkPartialUpdateExecute executes the request + // @return []VLANGroup + IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGroupsBulkPartialUpdateRequest) ([]VLANGroup, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsBulkUpdate(ctx context.Context) ApiIpamVlanGroupsBulkUpdateRequest + + // IpamVlanGroupsBulkUpdateExecute executes the request + // @return []VLANGroup + IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulkUpdateRequest) ([]VLANGroup, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsCreate(ctx context.Context) ApiIpamVlanGroupsCreateRequest + + // IpamVlanGroupsCreateExecute executes the request + // @return VLANGroup + IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRequest) (*VLANGroup, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsDestroy(ctx context.Context, id int32) ApiIpamVlanGroupsDestroyRequest + + // IpamVlanGroupsDestroyExecute executes the request + IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamVlanGroupsList(ctx context.Context) ApiIpamVlanGroupsListRequest + + // IpamVlanGroupsListExecute executes the request + // @return PaginatedVLANGroupList + IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListRequest) (*PaginatedVLANGroupList, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsPartialUpdateRequest + + // IpamVlanGroupsPartialUpdateExecute executes the request + // @return VLANGroup + IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsPartialUpdateRequest) (*VLANGroup, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsRetrieve(ctx context.Context, id int32) ApiIpamVlanGroupsRetrieveRequest + + // IpamVlanGroupsRetrieveExecute executes the request + // @return VLANGroup + IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrieveRequest) (*VLANGroup, *http.Response, error) + + /* + 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 + */ + IpamVlanGroupsUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsUpdateRequest + + // IpamVlanGroupsUpdateExecute executes the request + // @return VLANGroup + IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRequest) (*VLANGroup, *http.Response, error) + + /* + IpamVlanTranslationPoliciesBulkDestroy Method for IpamVlanTranslationPoliciesBulkDestroy + + Delete a list of VLAN translation policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationPoliciesBulkDestroyRequest + */ + IpamVlanTranslationPoliciesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkDestroyRequest + + // IpamVlanTranslationPoliciesBulkDestroyExecute executes the request + IpamVlanTranslationPoliciesBulkDestroyExecute(r ApiIpamVlanTranslationPoliciesBulkDestroyRequest) (*http.Response, error) + + /* + IpamVlanTranslationPoliciesBulkPartialUpdate Method for IpamVlanTranslationPoliciesBulkPartialUpdate + + Patch a list of VLAN translation policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest + */ + IpamVlanTranslationPoliciesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest + + // IpamVlanTranslationPoliciesBulkPartialUpdateExecute executes the request + // @return []VLANTranslationPolicy + IpamVlanTranslationPoliciesBulkPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error) + + /* + IpamVlanTranslationPoliciesBulkUpdate Method for IpamVlanTranslationPoliciesBulkUpdate + + Put a list of VLAN translation policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationPoliciesBulkUpdateRequest + */ + IpamVlanTranslationPoliciesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkUpdateRequest + + // IpamVlanTranslationPoliciesBulkUpdateExecute executes the request + // @return []VLANTranslationPolicy + IpamVlanTranslationPoliciesBulkUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error) + + /* + IpamVlanTranslationPoliciesCreate Method for IpamVlanTranslationPoliciesCreate + + Post a list of VLAN translation policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationPoliciesCreateRequest + */ + IpamVlanTranslationPoliciesCreate(ctx context.Context) ApiIpamVlanTranslationPoliciesCreateRequest + + // IpamVlanTranslationPoliciesCreateExecute executes the request + // @return VLANTranslationPolicy + IpamVlanTranslationPoliciesCreateExecute(r ApiIpamVlanTranslationPoliciesCreateRequest) (*VLANTranslationPolicy, *http.Response, error) + + /* + IpamVlanTranslationPoliciesDestroy Method for IpamVlanTranslationPoliciesDestroy + + Delete a VLAN translation policy object. + + @param ctx 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 translation policy. + @return ApiIpamVlanTranslationPoliciesDestroyRequest + */ + IpamVlanTranslationPoliciesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesDestroyRequest + + // IpamVlanTranslationPoliciesDestroyExecute executes the request + IpamVlanTranslationPoliciesDestroyExecute(r ApiIpamVlanTranslationPoliciesDestroyRequest) (*http.Response, error) + + /* + IpamVlanTranslationPoliciesList Method for IpamVlanTranslationPoliciesList + + Get a list of VLAN translation policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationPoliciesListRequest + */ + IpamVlanTranslationPoliciesList(ctx context.Context) ApiIpamVlanTranslationPoliciesListRequest + + // IpamVlanTranslationPoliciesListExecute executes the request + // @return PaginatedVLANTranslationPolicyList + IpamVlanTranslationPoliciesListExecute(r ApiIpamVlanTranslationPoliciesListRequest) (*PaginatedVLANTranslationPolicyList, *http.Response, error) + + /* + IpamVlanTranslationPoliciesPartialUpdate Method for IpamVlanTranslationPoliciesPartialUpdate + + Patch a VLAN translation policy object. + + @param ctx 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 translation policy. + @return ApiIpamVlanTranslationPoliciesPartialUpdateRequest + */ + IpamVlanTranslationPoliciesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesPartialUpdateRequest + + // IpamVlanTranslationPoliciesPartialUpdateExecute executes the request + // @return VLANTranslationPolicy + IpamVlanTranslationPoliciesPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesPartialUpdateRequest) (*VLANTranslationPolicy, *http.Response, error) + + /* + IpamVlanTranslationPoliciesRetrieve Method for IpamVlanTranslationPoliciesRetrieve + + Get a VLAN translation policy object. + + @param ctx 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 translation policy. + @return ApiIpamVlanTranslationPoliciesRetrieveRequest + */ + IpamVlanTranslationPoliciesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesRetrieveRequest + + // IpamVlanTranslationPoliciesRetrieveExecute executes the request + // @return VLANTranslationPolicy + IpamVlanTranslationPoliciesRetrieveExecute(r ApiIpamVlanTranslationPoliciesRetrieveRequest) (*VLANTranslationPolicy, *http.Response, error) + + /* + IpamVlanTranslationPoliciesUpdate Method for IpamVlanTranslationPoliciesUpdate + + Put a VLAN translation policy object. + + @param ctx 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 translation policy. + @return ApiIpamVlanTranslationPoliciesUpdateRequest + */ + IpamVlanTranslationPoliciesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesUpdateRequest + + // IpamVlanTranslationPoliciesUpdateExecute executes the request + // @return VLANTranslationPolicy + IpamVlanTranslationPoliciesUpdateExecute(r ApiIpamVlanTranslationPoliciesUpdateRequest) (*VLANTranslationPolicy, *http.Response, error) + + /* + IpamVlanTranslationRulesBulkDestroy Method for IpamVlanTranslationRulesBulkDestroy + + Delete a list of VLAN translation rule objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationRulesBulkDestroyRequest + */ + IpamVlanTranslationRulesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationRulesBulkDestroyRequest + + // IpamVlanTranslationRulesBulkDestroyExecute executes the request + IpamVlanTranslationRulesBulkDestroyExecute(r ApiIpamVlanTranslationRulesBulkDestroyRequest) (*http.Response, error) + + /* + IpamVlanTranslationRulesBulkPartialUpdate Method for IpamVlanTranslationRulesBulkPartialUpdate + + Patch a list of VLAN translation rule objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationRulesBulkPartialUpdateRequest + */ + IpamVlanTranslationRulesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkPartialUpdateRequest + + // IpamVlanTranslationRulesBulkPartialUpdateExecute executes the request + // @return []VLANTranslationRule + IpamVlanTranslationRulesBulkPartialUpdateExecute(r ApiIpamVlanTranslationRulesBulkPartialUpdateRequest) ([]VLANTranslationRule, *http.Response, error) + + /* + IpamVlanTranslationRulesBulkUpdate Method for IpamVlanTranslationRulesBulkUpdate + + Put a list of VLAN translation rule objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationRulesBulkUpdateRequest + */ + IpamVlanTranslationRulesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkUpdateRequest + + // IpamVlanTranslationRulesBulkUpdateExecute executes the request + // @return []VLANTranslationRule + IpamVlanTranslationRulesBulkUpdateExecute(r ApiIpamVlanTranslationRulesBulkUpdateRequest) ([]VLANTranslationRule, *http.Response, error) + + /* + IpamVlanTranslationRulesCreate Method for IpamVlanTranslationRulesCreate + + Post a list of VLAN translation rule objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationRulesCreateRequest + */ + IpamVlanTranslationRulesCreate(ctx context.Context) ApiIpamVlanTranslationRulesCreateRequest + + // IpamVlanTranslationRulesCreateExecute executes the request + // @return VLANTranslationRule + IpamVlanTranslationRulesCreateExecute(r ApiIpamVlanTranslationRulesCreateRequest) (*VLANTranslationRule, *http.Response, error) + + /* + IpamVlanTranslationRulesDestroy Method for IpamVlanTranslationRulesDestroy + + Delete a VLAN translation rule object. + + @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesDestroyRequest + */ + IpamVlanTranslationRulesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationRulesDestroyRequest + + // IpamVlanTranslationRulesDestroyExecute executes the request + IpamVlanTranslationRulesDestroyExecute(r ApiIpamVlanTranslationRulesDestroyRequest) (*http.Response, error) + + /* + IpamVlanTranslationRulesList Method for IpamVlanTranslationRulesList + + Get a list of VLAN translation rule objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanTranslationRulesListRequest + */ + IpamVlanTranslationRulesList(ctx context.Context) ApiIpamVlanTranslationRulesListRequest + + // IpamVlanTranslationRulesListExecute executes the request + // @return PaginatedVLANTranslationRuleList + IpamVlanTranslationRulesListExecute(r ApiIpamVlanTranslationRulesListRequest) (*PaginatedVLANTranslationRuleList, *http.Response, error) + + /* + IpamVlanTranslationRulesPartialUpdate Method for IpamVlanTranslationRulesPartialUpdate + + Patch a VLAN translation rule object. + + @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesPartialUpdateRequest + */ + IpamVlanTranslationRulesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesPartialUpdateRequest + + // IpamVlanTranslationRulesPartialUpdateExecute executes the request + // @return VLANTranslationRule + IpamVlanTranslationRulesPartialUpdateExecute(r ApiIpamVlanTranslationRulesPartialUpdateRequest) (*VLANTranslationRule, *http.Response, error) + + /* + IpamVlanTranslationRulesRetrieve Method for IpamVlanTranslationRulesRetrieve + + Get a VLAN translation rule object. + + @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesRetrieveRequest + */ + IpamVlanTranslationRulesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationRulesRetrieveRequest + + // IpamVlanTranslationRulesRetrieveExecute executes the request + // @return VLANTranslationRule + IpamVlanTranslationRulesRetrieveExecute(r ApiIpamVlanTranslationRulesRetrieveRequest) (*VLANTranslationRule, *http.Response, error) + + /* + IpamVlanTranslationRulesUpdate Method for IpamVlanTranslationRulesUpdate + + Put a VLAN translation rule object. + + @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesUpdateRequest + */ + IpamVlanTranslationRulesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesUpdateRequest + + // IpamVlanTranslationRulesUpdateExecute executes the request + // @return VLANTranslationRule + IpamVlanTranslationRulesUpdateExecute(r ApiIpamVlanTranslationRulesUpdateRequest) (*VLANTranslationRule, *http.Response, error) + + /* + 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 + */ + IpamVlansBulkDestroy(ctx context.Context) ApiIpamVlansBulkDestroyRequest + + // IpamVlansBulkDestroyExecute executes the request + IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamVlansBulkPartialUpdate(ctx context.Context) ApiIpamVlansBulkPartialUpdateRequest + + // IpamVlansBulkPartialUpdateExecute executes the request + // @return []VLAN + IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPartialUpdateRequest) ([]VLAN, *http.Response, error) + + /* + 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 + */ + IpamVlansBulkUpdate(ctx context.Context) ApiIpamVlansBulkUpdateRequest + + // IpamVlansBulkUpdateExecute executes the request + // @return []VLAN + IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequest) ([]VLAN, *http.Response, error) + + /* + 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 + */ + IpamVlansCreate(ctx context.Context) ApiIpamVlansCreateRequest + + // IpamVlansCreateExecute executes the request + // @return VLAN + IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*VLAN, *http.Response, error) + + /* + 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 + */ + IpamVlansDestroy(ctx context.Context, id int32) ApiIpamVlansDestroyRequest + + // IpamVlansDestroyExecute executes the request + IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamVlansList(ctx context.Context) ApiIpamVlansListRequest + + // IpamVlansListExecute executes the request + // @return PaginatedVLANList + IpamVlansListExecute(r ApiIpamVlansListRequest) (*PaginatedVLANList, *http.Response, error) + + /* + 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 + */ + IpamVlansPartialUpdate(ctx context.Context, id int32) ApiIpamVlansPartialUpdateRequest + + // IpamVlansPartialUpdateExecute executes the request + // @return VLAN + IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpdateRequest) (*VLAN, *http.Response, error) + + /* + 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 + */ + IpamVlansRetrieve(ctx context.Context, id int32) ApiIpamVlansRetrieveRequest + + // IpamVlansRetrieveExecute executes the request + // @return VLAN + IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest) (*VLAN, *http.Response, error) + + /* + 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 + */ + IpamVlansUpdate(ctx context.Context, id int32) ApiIpamVlansUpdateRequest + + // IpamVlansUpdateExecute executes the request + // @return VLAN + IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*VLAN, *http.Response, error) + + /* + 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 + */ + IpamVrfsBulkDestroy(ctx context.Context) ApiIpamVrfsBulkDestroyRequest + + // IpamVrfsBulkDestroyExecute executes the request + IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamVrfsBulkPartialUpdate(ctx context.Context) ApiIpamVrfsBulkPartialUpdateRequest + + // IpamVrfsBulkPartialUpdateExecute executes the request + // @return []VRF + IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkPartialUpdateRequest) ([]VRF, *http.Response, error) + + /* + 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 + */ + IpamVrfsBulkUpdate(ctx context.Context) ApiIpamVrfsBulkUpdateRequest + + // IpamVrfsBulkUpdateExecute executes the request + // @return []VRF + IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateRequest) ([]VRF, *http.Response, error) + + /* + 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 + */ + IpamVrfsCreate(ctx context.Context) ApiIpamVrfsCreateRequest + + // IpamVrfsCreateExecute executes the request + // @return VRF + IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF, *http.Response, error) + + /* + 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 + */ + IpamVrfsDestroy(ctx context.Context, id int32) ApiIpamVrfsDestroyRequest + + // IpamVrfsDestroyExecute executes the request + IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + IpamVrfsList(ctx context.Context) ApiIpamVrfsListRequest + + // IpamVrfsListExecute executes the request + // @return PaginatedVRFList + IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*PaginatedVRFList, *http.Response, error) + + /* + 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 + */ + IpamVrfsPartialUpdate(ctx context.Context, id int32) ApiIpamVrfsPartialUpdateRequest + + // IpamVrfsPartialUpdateExecute executes the request + // @return VRF + IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdateRequest) (*VRF, *http.Response, error) + + /* + 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 + */ + IpamVrfsRetrieve(ctx context.Context, id int32) ApiIpamVrfsRetrieveRequest + + // IpamVrfsRetrieveExecute executes the request + // @return VRF + IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) (*VRF, *http.Response, error) + + /* + 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 + */ + IpamVrfsUpdate(ctx context.Context, id int32) ApiIpamVrfsUpdateRequest + + // IpamVrfsUpdateExecute executes the request + // @return VRF + IpamVrfsUpdateExecute(r ApiIpamVrfsUpdateRequest) (*VRF, *http.Response, error) +} + +// IpamAPIService IpamAPI service +type IpamAPIService service + +type ApiIpamAggregatesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + aggregateRequest *[]AggregateRequest +} + +func (r ApiIpamAggregatesBulkDestroyRequest) AggregateRequest(aggregateRequest []AggregateRequest) ApiIpamAggregatesBulkDestroyRequest { + r.aggregateRequest = &aggregateRequest + return r +} + +func (r ApiIpamAggregatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamAggregatesBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesBulkDestroy(ctx context.Context) ApiIpamAggregatesBulkDestroyRequest { + return ApiIpamAggregatesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *IpamAPIService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aggregateRequest == nil { + return nil, reportError("aggregateRequest 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.aggregateRequest + 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 ApiIpamAggregatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + aggregateRequest *[]AggregateRequest +} + +func (r ApiIpamAggregatesBulkPartialUpdateRequest) AggregateRequest(aggregateRequest []AggregateRequest) ApiIpamAggregatesBulkPartialUpdateRequest { + r.aggregateRequest = &aggregateRequest + return r +} + +func (r ApiIpamAggregatesBulkPartialUpdateRequest) Execute() ([]Aggregate, *http.Response, error) { + return r.ApiService.IpamAggregatesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesBulkPartialUpdate(ctx context.Context) ApiIpamAggregatesBulkPartialUpdateRequest { + return ApiIpamAggregatesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Aggregate +func (a *IpamAPIService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggregatesBulkPartialUpdateRequest) ([]Aggregate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Aggregate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aggregateRequest == nil { + return localVarReturnValue, nil, reportError("aggregateRequest 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.aggregateRequest + 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 ApiIpamAggregatesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + aggregateRequest *[]AggregateRequest +} + +func (r ApiIpamAggregatesBulkUpdateRequest) AggregateRequest(aggregateRequest []AggregateRequest) ApiIpamAggregatesBulkUpdateRequest { + r.aggregateRequest = &aggregateRequest + return r +} + +func (r ApiIpamAggregatesBulkUpdateRequest) Execute() ([]Aggregate, *http.Response, error) { + return r.ApiService.IpamAggregatesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesBulkUpdate(ctx context.Context) ApiIpamAggregatesBulkUpdateRequest { + return ApiIpamAggregatesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []Aggregate +func (a *IpamAPIService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulkUpdateRequest) ([]Aggregate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Aggregate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aggregateRequest == nil { + return localVarReturnValue, nil, reportError("aggregateRequest 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.aggregateRequest + 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 ApiIpamAggregatesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + writableAggregateRequest *WritableAggregateRequest +} + +func (r ApiIpamAggregatesCreateRequest) WritableAggregateRequest(writableAggregateRequest WritableAggregateRequest) ApiIpamAggregatesCreateRequest { + r.writableAggregateRequest = &writableAggregateRequest + return r +} + +func (r ApiIpamAggregatesCreateRequest) Execute() (*Aggregate, *http.Response, error) { + return r.ApiService.IpamAggregatesCreateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesCreate(ctx context.Context) ApiIpamAggregatesCreateRequest { + return ApiIpamAggregatesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRequest) (*Aggregate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableAggregateRequest == nil { + return localVarReturnValue, nil, reportError("writableAggregateRequest 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.writableAggregateRequest + 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 ApiIpamAggregatesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 +} + +func (r ApiIpamAggregatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamAggregatesDestroyExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesDestroy(ctx context.Context, id int32) ApiIpamAggregatesDestroyRequest { + return ApiIpamAggregatesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *IpamAPIService) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/{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 ApiIpamAggregatesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + 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 + 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 *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiIpamAggregatesListRequest) Created(created []time.Time) ApiIpamAggregatesListRequest { + r.created = &created + 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 +} + +func (r ApiIpamAggregatesListRequest) CreatedGte(createdGte []time.Time) ApiIpamAggregatesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiIpamAggregatesListRequest) CreatedLt(createdLt []time.Time) ApiIpamAggregatesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiIpamAggregatesListRequest) CreatedLte(createdLte []time.Time) ApiIpamAggregatesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiIpamAggregatesListRequest) CreatedN(createdN []time.Time) ApiIpamAggregatesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiIpamAggregatesListRequest) CreatedByRequest(createdByRequest string) ApiIpamAggregatesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiIpamAggregatesListRequest) DateAdded(dateAdded []string) ApiIpamAggregatesListRequest { + r.dateAdded = &dateAdded + 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 +} + +func (r ApiIpamAggregatesListRequest) DateAddedGte(dateAddedGte []string) ApiIpamAggregatesListRequest { + r.dateAddedGte = &dateAddedGte + return r +} + +func (r ApiIpamAggregatesListRequest) DateAddedLt(dateAddedLt []string) ApiIpamAggregatesListRequest { + r.dateAddedLt = &dateAddedLt + return r +} + +func (r ApiIpamAggregatesListRequest) DateAddedLte(dateAddedLte []string) ApiIpamAggregatesListRequest { + r.dateAddedLte = &dateAddedLte + return r +} + +func (r ApiIpamAggregatesListRequest) DateAddedN(dateAddedN []string) ApiIpamAggregatesListRequest { + r.dateAddedN = &dateAddedN + return r +} + +func (r ApiIpamAggregatesListRequest) Description(description []string) ApiIpamAggregatesListRequest { + r.description = &description + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamAggregatesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionIc(descriptionIc []string) ApiIpamAggregatesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionIe(descriptionIe []string) ApiIpamAggregatesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionIew(descriptionIew []string) ApiIpamAggregatesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamAggregatesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionN(descriptionN []string) ApiIpamAggregatesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionNic(descriptionNic []string) ApiIpamAggregatesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionNie(descriptionNie []string) ApiIpamAggregatesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamAggregatesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiIpamAggregatesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamAggregatesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiIpamAggregatesListRequest) Family(family float32) ApiIpamAggregatesListRequest { + r.family = &family + return r +} + +func (r ApiIpamAggregatesListRequest) Id(id []int32) ApiIpamAggregatesListRequest { + r.id = &id + 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 +} + +func (r ApiIpamAggregatesListRequest) IdGte(idGte []int32) ApiIpamAggregatesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiIpamAggregatesListRequest) IdLt(idLt []int32) ApiIpamAggregatesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiIpamAggregatesListRequest) IdLte(idLte []int32) ApiIpamAggregatesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiIpamAggregatesListRequest) IdN(idN []int32) ApiIpamAggregatesListRequest { + r.idN = &idN + return r +} + +func (r ApiIpamAggregatesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamAggregatesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiIpamAggregatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamAggregatesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiIpamAggregatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamAggregatesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiIpamAggregatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamAggregatesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiIpamAggregatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamAggregatesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiIpamAggregatesListRequest) Limit(limit int32) ApiIpamAggregatesListRequest { + r.limit = &limit + 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 + return r +} + +// Which field to use when ordering the results. +func (r ApiIpamAggregatesListRequest) Ordering(ordering string) ApiIpamAggregatesListRequest { + r.ordering = &ordering + return r +} + +// Prefix +func (r ApiIpamAggregatesListRequest) Prefix(prefix string) ApiIpamAggregatesListRequest { + r.prefix = &prefix + return r +} + +// Search +func (r ApiIpamAggregatesListRequest) Q(q string) ApiIpamAggregatesListRequest { + r.q = &q + return r +} + +// RIR (slug) +func (r ApiIpamAggregatesListRequest) Rir(rir []string) ApiIpamAggregatesListRequest { + r.rir = &rir + return r +} + +// RIR (slug) +func (r ApiIpamAggregatesListRequest) RirN(rirN []string) ApiIpamAggregatesListRequest { + r.rirN = &rirN + return r +} + +// RIR (ID) +func (r ApiIpamAggregatesListRequest) RirId(rirId []int32) ApiIpamAggregatesListRequest { + r.rirId = &rirId + return r +} + +// RIR (ID) +func (r ApiIpamAggregatesListRequest) RirIdN(rirIdN []int32) ApiIpamAggregatesListRequest { + r.rirIdN = &rirIdN + return r +} + +func (r ApiIpamAggregatesListRequest) Tag(tag []string) ApiIpamAggregatesListRequest { + r.tag = &tag + return r +} + +func (r ApiIpamAggregatesListRequest) TagN(tagN []string) ApiIpamAggregatesListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiIpamAggregatesListRequest) Tenant(tenant []string) ApiIpamAggregatesListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiIpamAggregatesListRequest) TenantN(tenantN []string) ApiIpamAggregatesListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []string) ApiIpamAggregatesListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAggregatesListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAggregatesListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAggregatesListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiIpamAggregatesListRequest) TenantId(tenantId []*int32) ApiIpamAggregatesListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiIpamAggregatesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamAggregatesListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiIpamAggregatesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamAggregatesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiIpamAggregatesListRequest) Execute() (*PaginatedAggregateList, *http.Response, error) { + return r.ApiService.IpamAggregatesListExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesList(ctx context.Context) ApiIpamAggregatesListRequest { + return ApiIpamAggregatesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedAggregateList +func (a *IpamAPIService) IpamAggregatesListExecute(r ApiIpamAggregatesListRequest) (*PaginatedAggregateList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedAggregateList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + if r.dateAdded != nil { + t := *r.dateAdded + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added", t, "form", "multi") + } + } + if r.dateAddedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__empty", r.dateAddedEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gt", t, "form", "multi") + } + } + if r.dateAddedGte != nil { + t := *r.dateAddedGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gte", t, "form", "multi") + } + } + if r.dateAddedLt != nil { + t := *r.dateAddedLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lt", t, "form", "multi") + } + } + if r.dateAddedLte != nil { + t := *r.dateAddedLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lte", t, "form", "multi") + } + } + if r.dateAddedN != nil { + t := *r.dateAddedN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__n", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.family != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.prefix != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", r.prefix, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rir != nil { + t := *r.rir + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "form", "multi") + } + } + if r.rirN != nil { + t := *r.rirN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "form", "multi") + } + } + if r.rirId != nil { + t := *r.rirId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "form", "multi") + } + } + if r.rirIdN != nil { + t := *r.rirIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiIpamAggregatesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedWritableAggregateRequest *PatchedWritableAggregateRequest +} + +func (r ApiIpamAggregatesPartialUpdateRequest) PatchedWritableAggregateRequest(patchedWritableAggregateRequest PatchedWritableAggregateRequest) ApiIpamAggregatesPartialUpdateRequest { + r.patchedWritableAggregateRequest = &patchedWritableAggregateRequest + return r +} + +func (r ApiIpamAggregatesPartialUpdateRequest) Execute() (*Aggregate, *http.Response, error) { + return r.ApiService.IpamAggregatesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesPartialUpdate(ctx context.Context, id int32) ApiIpamAggregatesPartialUpdateRequest { + return ApiIpamAggregatesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesPartialUpdateRequest) (*Aggregate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/{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.patchedWritableAggregateRequest + 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 ApiIpamAggregatesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 +} + +func (r ApiIpamAggregatesRetrieveRequest) Execute() (*Aggregate, *http.Response, error) { + return r.ApiService.IpamAggregatesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesRetrieve(ctx context.Context, id int32) ApiIpamAggregatesRetrieveRequest { + return ApiIpamAggregatesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrieveRequest) (*Aggregate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/{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 ApiIpamAggregatesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + writableAggregateRequest *WritableAggregateRequest +} + +func (r ApiIpamAggregatesUpdateRequest) WritableAggregateRequest(writableAggregateRequest WritableAggregateRequest) ApiIpamAggregatesUpdateRequest { + r.writableAggregateRequest = &writableAggregateRequest + return r +} + +func (r ApiIpamAggregatesUpdateRequest) Execute() (*Aggregate, *http.Response, error) { + return r.ApiService.IpamAggregatesUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAggregatesUpdate(ctx context.Context, id int32) ApiIpamAggregatesUpdateRequest { + return ApiIpamAggregatesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRequest) (*Aggregate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/aggregates/{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.writableAggregateRequest == nil { + return localVarReturnValue, nil, reportError("writableAggregateRequest 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.writableAggregateRequest + 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 ApiIpamAsnRangesAvailableAsnsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + aSNRequest *[]ASNRequest +} + +func (r ApiIpamAsnRangesAvailableAsnsCreateRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnRangesAvailableAsnsCreateRequest { + r.aSNRequest = &aSNRequest + return r +} + +func (r ApiIpamAsnRangesAvailableAsnsCreateRequest) Execute() ([]ASN, *http.Response, error) { + return r.ApiService.IpamAsnRangesAvailableAsnsCreateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreate(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsCreateRequest { + return ApiIpamAsnRangesAvailableAsnsCreateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return []ASN +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRangesAvailableAsnsCreateRequest) ([]ASN, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASN + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesAvailableAsnsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/available-asns/" + 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.aSNRequest == nil { + return localVarReturnValue, nil, reportError("aSNRequest 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.aSNRequest + 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 ApiIpamAsnRangesAvailableAsnsListRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 +} + +func (r ApiIpamAsnRangesAvailableAsnsListRequest) Execute() ([]AvailableASN, *http.Response, error) { + return r.ApiService.IpamAsnRangesAvailableAsnsListExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsList(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsListRequest { + return ApiIpamAsnRangesAvailableAsnsListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return []AvailableASN +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRangesAvailableAsnsListRequest) ([]AvailableASN, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableASN + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesAvailableAsnsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/available-asns/" + 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 ApiIpamAsnRangesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRangeRequest *[]ASNRangeRequest +} + +func (r ApiIpamAsnRangesBulkDestroyRequest) ASNRangeRequest(aSNRangeRequest []ASNRangeRequest) ApiIpamAsnRangesBulkDestroyRequest { + r.aSNRangeRequest = &aSNRangeRequest + return r +} + +func (r ApiIpamAsnRangesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamAsnRangesBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesBulkDestroy(ctx context.Context) ApiIpamAsnRangesBulkDestroyRequest { + return ApiIpamAsnRangesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *IpamAPIService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aSNRangeRequest == nil { + return nil, reportError("aSNRangeRequest 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.aSNRangeRequest + 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 ApiIpamAsnRangesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRangeRequest *[]ASNRangeRequest +} + +func (r ApiIpamAsnRangesBulkPartialUpdateRequest) ASNRangeRequest(aSNRangeRequest []ASNRangeRequest) ApiIpamAsnRangesBulkPartialUpdateRequest { + r.aSNRangeRequest = &aSNRangeRequest + return r +} + +func (r ApiIpamAsnRangesBulkPartialUpdateRequest) Execute() ([]ASNRange, *http.Response, error) { + return r.ApiService.IpamAsnRangesBulkPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdate(ctx context.Context) ApiIpamAsnRangesBulkPartialUpdateRequest { + return ApiIpamAsnRangesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ASNRange +func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRangesBulkPartialUpdateRequest) ([]ASNRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASNRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aSNRangeRequest == nil { + return localVarReturnValue, nil, reportError("aSNRangeRequest 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.aSNRangeRequest + 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 ApiIpamAsnRangesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRangeRequest *[]ASNRangeRequest +} + +func (r ApiIpamAsnRangesBulkUpdateRequest) ASNRangeRequest(aSNRangeRequest []ASNRangeRequest) ApiIpamAsnRangesBulkUpdateRequest { + r.aSNRangeRequest = &aSNRangeRequest + return r +} + +func (r ApiIpamAsnRangesBulkUpdateRequest) Execute() ([]ASNRange, *http.Response, error) { + return r.ApiService.IpamAsnRangesBulkUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesBulkUpdate(ctx context.Context) ApiIpamAsnRangesBulkUpdateRequest { + return ApiIpamAsnRangesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ASNRange +func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUpdateRequest) ([]ASNRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASNRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aSNRangeRequest == nil { + return localVarReturnValue, nil, reportError("aSNRangeRequest 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.aSNRangeRequest + 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 ApiIpamAsnRangesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRangeRequest *ASNRangeRequest +} + +func (r ApiIpamAsnRangesCreateRequest) ASNRangeRequest(aSNRangeRequest ASNRangeRequest) ApiIpamAsnRangesCreateRequest { + r.aSNRangeRequest = &aSNRangeRequest + return r +} + +func (r ApiIpamAsnRangesCreateRequest) Execute() (*ASNRange, *http.Response, error) { + return r.ApiService.IpamAsnRangesCreateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesCreate(ctx context.Context) ApiIpamAsnRangesCreateRequest { + return ApiIpamAsnRangesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequest) (*ASNRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aSNRangeRequest == nil { + return localVarReturnValue, nil, reportError("aSNRangeRequest 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.aSNRangeRequest + 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 ApiIpamAsnRangesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 +} + +func (r ApiIpamAsnRangesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamAsnRangesDestroyExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesDestroy(ctx context.Context, id int32) ApiIpamAsnRangesDestroyRequest { + return ApiIpamAsnRangesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *IpamAPIService) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/{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 ApiIpamAsnRangesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + 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 + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + start *[]int32 + startEmpty *bool + startGt *[]int32 + startGte *[]int32 + startLt *[]int32 + startLte *[]int32 + startN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiIpamAsnRangesListRequest) Created(created []time.Time) ApiIpamAsnRangesListRequest { + r.created = &created + 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 +} + +func (r ApiIpamAsnRangesListRequest) CreatedGte(createdGte []time.Time) ApiIpamAsnRangesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiIpamAsnRangesListRequest) CreatedLt(createdLt []time.Time) ApiIpamAsnRangesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiIpamAsnRangesListRequest) CreatedLte(createdLte []time.Time) ApiIpamAsnRangesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiIpamAsnRangesListRequest) CreatedN(createdN []time.Time) ApiIpamAsnRangesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiIpamAsnRangesListRequest) CreatedByRequest(createdByRequest string) ApiIpamAsnRangesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiIpamAsnRangesListRequest) Description(description []string) ApiIpamAsnRangesListRequest { + r.description = &description + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamAsnRangesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionIc(descriptionIc []string) ApiIpamAsnRangesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionIe(descriptionIe []string) ApiIpamAsnRangesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionIew(descriptionIew []string) ApiIpamAsnRangesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamAsnRangesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionN(descriptionN []string) ApiIpamAsnRangesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionNic(descriptionNic []string) ApiIpamAsnRangesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionNie(descriptionNie []string) ApiIpamAsnRangesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamAsnRangesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiIpamAsnRangesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamAsnRangesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiIpamAsnRangesListRequest) End(end []int32) ApiIpamAsnRangesListRequest { + r.end = &end + 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 +} + +func (r ApiIpamAsnRangesListRequest) EndGte(endGte []int32) ApiIpamAsnRangesListRequest { + r.endGte = &endGte + return r +} + +func (r ApiIpamAsnRangesListRequest) EndLt(endLt []int32) ApiIpamAsnRangesListRequest { + r.endLt = &endLt + return r +} + +func (r ApiIpamAsnRangesListRequest) EndLte(endLte []int32) ApiIpamAsnRangesListRequest { + r.endLte = &endLte + return r +} + +func (r ApiIpamAsnRangesListRequest) EndN(endN []int32) ApiIpamAsnRangesListRequest { + r.endN = &endN + return r +} + +func (r ApiIpamAsnRangesListRequest) Id(id []int32) ApiIpamAsnRangesListRequest { + r.id = &id + 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 +} + +func (r ApiIpamAsnRangesListRequest) IdGte(idGte []int32) ApiIpamAsnRangesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiIpamAsnRangesListRequest) IdLt(idLt []int32) ApiIpamAsnRangesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiIpamAsnRangesListRequest) IdLte(idLte []int32) ApiIpamAsnRangesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiIpamAsnRangesListRequest) IdN(idN []int32) ApiIpamAsnRangesListRequest { + r.idN = &idN + return r +} + +func (r ApiIpamAsnRangesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamAsnRangesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiIpamAsnRangesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamAsnRangesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiIpamAsnRangesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamAsnRangesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiIpamAsnRangesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamAsnRangesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiIpamAsnRangesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamAsnRangesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiIpamAsnRangesListRequest) Limit(limit int32) ApiIpamAsnRangesListRequest { + r.limit = &limit + 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 +} + +func (r ApiIpamAsnRangesListRequest) NameEmpty(nameEmpty bool) ApiIpamAsnRangesListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiIpamAsnRangesListRequest) NameIc(nameIc []string) ApiIpamAsnRangesListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiIpamAsnRangesListRequest) NameIe(nameIe []string) ApiIpamAsnRangesListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiIpamAsnRangesListRequest) NameIew(nameIew []string) ApiIpamAsnRangesListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiIpamAsnRangesListRequest) NameIsw(nameIsw []string) ApiIpamAsnRangesListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiIpamAsnRangesListRequest) NameN(nameN []string) ApiIpamAsnRangesListRequest { + r.nameN = &nameN + return r +} + +func (r ApiIpamAsnRangesListRequest) NameNic(nameNic []string) ApiIpamAsnRangesListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiIpamAsnRangesListRequest) NameNie(nameNie []string) ApiIpamAsnRangesListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiIpamAsnRangesListRequest) NameNiew(nameNiew []string) ApiIpamAsnRangesListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiIpamAsnRangesListRequest) NameNisw(nameNisw []string) ApiIpamAsnRangesListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiIpamAsnRangesListRequest) Offset(offset int32) ApiIpamAsnRangesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiIpamAsnRangesListRequest) Ordering(ordering string) ApiIpamAsnRangesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiIpamAsnRangesListRequest) Q(q string) ApiIpamAsnRangesListRequest { + r.q = &q + return r +} + +// RIR (slug) +func (r ApiIpamAsnRangesListRequest) Rir(rir []string) ApiIpamAsnRangesListRequest { + r.rir = &rir + return r +} + +// RIR (slug) +func (r ApiIpamAsnRangesListRequest) RirN(rirN []string) ApiIpamAsnRangesListRequest { + r.rirN = &rirN + return r +} + +// RIR (ID) +func (r ApiIpamAsnRangesListRequest) RirId(rirId []int32) ApiIpamAsnRangesListRequest { + r.rirId = &rirId + return r +} + +// RIR (ID) +func (r ApiIpamAsnRangesListRequest) RirIdN(rirIdN []int32) ApiIpamAsnRangesListRequest { + r.rirIdN = &rirIdN + return r +} + +func (r ApiIpamAsnRangesListRequest) Slug(slug []string) ApiIpamAsnRangesListRequest { + r.slug = &slug + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugEmpty(slugEmpty bool) ApiIpamAsnRangesListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugIc(slugIc []string) ApiIpamAsnRangesListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugIe(slugIe []string) ApiIpamAsnRangesListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugIew(slugIew []string) ApiIpamAsnRangesListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugIsw(slugIsw []string) ApiIpamAsnRangesListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugN(slugN []string) ApiIpamAsnRangesListRequest { + r.slugN = &slugN + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugNic(slugNic []string) ApiIpamAsnRangesListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugNie(slugNie []string) ApiIpamAsnRangesListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugNiew(slugNiew []string) ApiIpamAsnRangesListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiIpamAsnRangesListRequest) SlugNisw(slugNisw []string) ApiIpamAsnRangesListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiIpamAsnRangesListRequest) Start(start []int32) ApiIpamAsnRangesListRequest { + r.start = &start + 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 +} + +func (r ApiIpamAsnRangesListRequest) StartGte(startGte []int32) ApiIpamAsnRangesListRequest { + r.startGte = &startGte + return r +} + +func (r ApiIpamAsnRangesListRequest) StartLt(startLt []int32) ApiIpamAsnRangesListRequest { + r.startLt = &startLt + return r +} + +func (r ApiIpamAsnRangesListRequest) StartLte(startLte []int32) ApiIpamAsnRangesListRequest { + r.startLte = &startLte + return r +} + +func (r ApiIpamAsnRangesListRequest) StartN(startN []int32) ApiIpamAsnRangesListRequest { + r.startN = &startN + return r +} + +func (r ApiIpamAsnRangesListRequest) Tag(tag []string) ApiIpamAsnRangesListRequest { + r.tag = &tag + return r +} + +func (r ApiIpamAsnRangesListRequest) TagN(tagN []string) ApiIpamAsnRangesListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiIpamAsnRangesListRequest) Tenant(tenant []string) ApiIpamAsnRangesListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiIpamAsnRangesListRequest) TenantN(tenantN []string) ApiIpamAsnRangesListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnRangesListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnRangesListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnRangesListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnRangesListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiIpamAsnRangesListRequest) TenantId(tenantId []*int32) ApiIpamAsnRangesListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiIpamAsnRangesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamAsnRangesListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiIpamAsnRangesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamAsnRangesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiIpamAsnRangesListRequest) Execute() (*PaginatedASNRangeList, *http.Response, error) { + return r.ApiService.IpamAsnRangesListExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesList(ctx context.Context) ApiIpamAsnRangesListRequest { + return ApiIpamAsnRangesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedASNRangeList +func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) (*PaginatedASNRangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedASNRangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.end != nil { + t := *r.end + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "end", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "end", t, "form", "multi") + } + } + if r.endEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "end__empty", r.endEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "end__gt", t, "form", "multi") + } + } + if r.endGte != nil { + t := *r.endGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "end__gte", t, "form", "multi") + } + } + if r.endLt != nil { + t := *r.endLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "end__lt", t, "form", "multi") + } + } + if r.endLte != nil { + t := *r.endLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "end__lte", t, "form", "multi") + } + } + if r.endN != nil { + t := *r.endN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "end__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.rir != nil { + t := *r.rir + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "form", "multi") + } + } + if r.rirN != nil { + t := *r.rirN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "form", "multi") + } + } + if r.rirId != nil { + t := *r.rirId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "form", "multi") + } + } + if r.rirIdN != nil { + t := *r.rirIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "form", "multi") + } + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") + } + } + if r.slugN != nil { + t := *r.slugN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") + } + } + if r.start != nil { + t := *r.start + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "start", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "start", t, "form", "multi") + } + } + if r.startEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "start__empty", r.startEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "start__gt", t, "form", "multi") + } + } + if r.startGte != nil { + t := *r.startGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "start__gte", t, "form", "multi") + } + } + if r.startLt != nil { + t := *r.startLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "start__lt", t, "form", "multi") + } + } + if r.startLte != nil { + t := *r.startLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "start__lte", t, "form", "multi") + } + } + if r.startN != nil { + t := *r.startN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "start__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + // 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 ApiIpamAsnRangesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedASNRangeRequest *PatchedASNRangeRequest +} + +func (r ApiIpamAsnRangesPartialUpdateRequest) PatchedASNRangeRequest(patchedASNRangeRequest PatchedASNRangeRequest) ApiIpamAsnRangesPartialUpdateRequest { + r.patchedASNRangeRequest = &patchedASNRangeRequest + return r +} + +func (r ApiIpamAsnRangesPartialUpdateRequest) Execute() (*ASNRange, *http.Response, error) { + return r.ApiService.IpamAsnRangesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesPartialUpdate(ctx context.Context, id int32) ApiIpamAsnRangesPartialUpdateRequest { + return ApiIpamAsnRangesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPartialUpdateRequest) (*ASNRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/{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.patchedASNRangeRequest + 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 ApiIpamAggregatesBulkDestroyRequest) AggregateRequest(aggregateRequest []AggregateRequest) ApiIpamAggregatesBulkDestroyRequest { - r.aggregateRequest = &aggregateRequest +type ApiIpamAsnRangesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 +} + +func (r ApiIpamAsnRangesRetrieveRequest) Execute() (*ASNRange, *http.Response, error) { + return r.ApiService.IpamAsnRangesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnRangesRetrieve(ctx context.Context, id int32) ApiIpamAsnRangesRetrieveRequest { + return ApiIpamAsnRangesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieveRequest) (*ASNRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/{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 ApiIpamAsnRangesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + aSNRangeRequest *ASNRangeRequest +} + +func (r ApiIpamAsnRangesUpdateRequest) ASNRangeRequest(aSNRangeRequest ASNRangeRequest) ApiIpamAsnRangesUpdateRequest { + r.aSNRangeRequest = &aSNRangeRequest return r } -func (r ApiIpamAggregatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamAggregatesBulkDestroyExecute(r) +func (r ApiIpamAsnRangesUpdateRequest) Execute() (*ASNRange, *http.Response, error) { + return r.ApiService.IpamAsnRangesUpdateExecute(r) } /* -IpamAggregatesBulkDestroy Method for IpamAggregatesBulkDestroy +IpamAsnRangesUpdate Method for IpamAsnRangesUpdate -Delete a list of aggregate objects. +Put a ASN range object. - @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(). + @param id A unique integer value identifying this ASN range. + @return ApiIpamAsnRangesUpdateRequest */ -func (a *IpamAPIService) IpamAggregatesBulkDestroy(ctx context.Context) ApiIpamAggregatesBulkDestroyRequest { - return ApiIpamAggregatesBulkDestroyRequest{ +func (a *IpamAPIService) IpamAsnRangesUpdate(ctx context.Context, id int32) ApiIpamAsnRangesUpdateRequest { + return ApiIpamAsnRangesUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamAPIService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBulkDestroyRequest) (*http.Response, error) { +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequest) (*ASNRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/asn-ranges/{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.aSNRangeRequest == nil { + return localVarReturnValue, nil, reportError("aSNRangeRequest 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.aSNRangeRequest + 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 ApiIpamAsnsBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRequest *[]ASNRequest +} + +func (r ApiIpamAsnsBulkDestroyRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnsBulkDestroyRequest { + r.aSNRequest = &aSNRequest + return r +} + +func (r ApiIpamAsnsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamAsnsBulkDestroyExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamAsnsBulkDestroy(ctx context.Context) ApiIpamAsnsBulkDestroyRequest { + return ApiIpamAsnsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *IpamAPIService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/aggregates/" + localVarPath := localBasePath + "/api/ipam/asns/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aggregateRequest == nil { - return nil, reportError("aggregateRequest is required and must be specified") + if r.aSNRequest == nil { + return nil, reportError("aSNRequest is required and must be specified") } // to determine the Content-Type header @@ -94,7 +7337,7 @@ func (a *IpamAPIService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aggregateRequest + localVarPostBody = r.aSNRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -137,59 +7380,58 @@ func (a *IpamAPIService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBul return localVarHTTPResponse, nil } -type ApiIpamAggregatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aggregateRequest *[]AggregateRequest +type ApiIpamAsnsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRequest *[]ASNRequest } -func (r ApiIpamAggregatesBulkPartialUpdateRequest) AggregateRequest(aggregateRequest []AggregateRequest) ApiIpamAggregatesBulkPartialUpdateRequest { - r.aggregateRequest = &aggregateRequest +func (r ApiIpamAsnsBulkPartialUpdateRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnsBulkPartialUpdateRequest { + r.aSNRequest = &aSNRequest return r } -func (r ApiIpamAggregatesBulkPartialUpdateRequest) Execute() ([]Aggregate, *http.Response, error) { - return r.ApiService.IpamAggregatesBulkPartialUpdateExecute(r) +func (r ApiIpamAsnsBulkPartialUpdateRequest) Execute() ([]ASN, *http.Response, error) { + return r.ApiService.IpamAsnsBulkPartialUpdateExecute(r) } /* -IpamAggregatesBulkPartialUpdate Method for IpamAggregatesBulkPartialUpdate +IpamAsnsBulkPartialUpdate Method for IpamAsnsBulkPartialUpdate -Patch a list of aggregate objects. +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 ApiIpamAggregatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamAggregatesBulkPartialUpdate(ctx context.Context) ApiIpamAggregatesBulkPartialUpdateRequest { - return ApiIpamAggregatesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamAsnsBulkPartialUpdate(ctx context.Context) ApiIpamAsnsBulkPartialUpdateRequest { + return ApiIpamAsnsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Aggregate -func (a *IpamAPIService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggregatesBulkPartialUpdateRequest) ([]Aggregate, *http.Response, error) { +// @return []ASN +func (a *IpamAPIService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkPartialUpdateRequest) ([]ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Aggregate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/aggregates/" + localVarPath := localBasePath + "/api/ipam/asns/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aggregateRequest == nil { - return localVarReturnValue, nil, reportError("aggregateRequest is required and must be specified") + if r.aSNRequest == nil { + return localVarReturnValue, nil, reportError("aSNRequest is required and must be specified") } // to determine the Content-Type header @@ -210,7 +7452,7 @@ func (a *IpamAPIService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggrega localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aggregateRequest + localVarPostBody = r.aSNRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -262,59 +7504,58 @@ func (a *IpamAPIService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggrega return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAggregatesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aggregateRequest *[]AggregateRequest +type ApiIpamAsnsBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRequest *[]ASNRequest } -func (r ApiIpamAggregatesBulkUpdateRequest) AggregateRequest(aggregateRequest []AggregateRequest) ApiIpamAggregatesBulkUpdateRequest { - r.aggregateRequest = &aggregateRequest +func (r ApiIpamAsnsBulkUpdateRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnsBulkUpdateRequest { + r.aSNRequest = &aSNRequest return r } -func (r ApiIpamAggregatesBulkUpdateRequest) Execute() ([]Aggregate, *http.Response, error) { - return r.ApiService.IpamAggregatesBulkUpdateExecute(r) +func (r ApiIpamAsnsBulkUpdateRequest) Execute() ([]ASN, *http.Response, error) { + return r.ApiService.IpamAsnsBulkUpdateExecute(r) } /* -IpamAggregatesBulkUpdate Method for IpamAggregatesBulkUpdate +IpamAsnsBulkUpdate Method for IpamAsnsBulkUpdate -Put a list of aggregate objects. +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 ApiIpamAggregatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsBulkUpdateRequest */ -func (a *IpamAPIService) IpamAggregatesBulkUpdate(ctx context.Context) ApiIpamAggregatesBulkUpdateRequest { - return ApiIpamAggregatesBulkUpdateRequest{ +func (a *IpamAPIService) IpamAsnsBulkUpdate(ctx context.Context) ApiIpamAsnsBulkUpdateRequest { + return ApiIpamAsnsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Aggregate -func (a *IpamAPIService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulkUpdateRequest) ([]Aggregate, *http.Response, error) { +// @return []ASN +func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateRequest) ([]ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Aggregate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/aggregates/" + localVarPath := localBasePath + "/api/ipam/asns/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aggregateRequest == nil { - return localVarReturnValue, nil, reportError("aggregateRequest is required and must be specified") + if r.aSNRequest == nil { + return localVarReturnValue, nil, reportError("aSNRequest is required and must be specified") } // to determine the Content-Type header @@ -335,7 +7576,7 @@ func (a *IpamAPIService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aggregateRequest + localVarPostBody = r.aSNRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -387,59 +7628,58 @@ func (a *IpamAPIService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAggregatesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - writableAggregateRequest *WritableAggregateRequest +type ApiIpamAsnsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + aSNRequest *ASNRequest } -func (r ApiIpamAggregatesCreateRequest) WritableAggregateRequest(writableAggregateRequest WritableAggregateRequest) ApiIpamAggregatesCreateRequest { - r.writableAggregateRequest = &writableAggregateRequest +func (r ApiIpamAsnsCreateRequest) ASNRequest(aSNRequest ASNRequest) ApiIpamAsnsCreateRequest { + r.aSNRequest = &aSNRequest return r } -func (r ApiIpamAggregatesCreateRequest) Execute() (*Aggregate, *http.Response, error) { - return r.ApiService.IpamAggregatesCreateExecute(r) +func (r ApiIpamAsnsCreateRequest) Execute() (*ASN, *http.Response, error) { + return r.ApiService.IpamAsnsCreateExecute(r) } /* -IpamAggregatesCreate Method for IpamAggregatesCreate +IpamAsnsCreate Method for IpamAsnsCreate -Post a list of aggregate objects. +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 ApiIpamAggregatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsCreateRequest */ -func (a *IpamAPIService) IpamAggregatesCreate(ctx context.Context) ApiIpamAggregatesCreateRequest { - return ApiIpamAggregatesCreateRequest{ +func (a *IpamAPIService) IpamAsnsCreate(ctx context.Context) ApiIpamAsnsCreateRequest { + return ApiIpamAsnsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Aggregate -func (a *IpamAPIService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRequest) (*Aggregate, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/aggregates/" + localVarPath := localBasePath + "/api/ipam/asns/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableAggregateRequest == nil { - return localVarReturnValue, nil, reportError("writableAggregateRequest is required and must be specified") + if r.aSNRequest == nil { + return localVarReturnValue, nil, reportError("aSNRequest is required and must be specified") } // to determine the Content-Type header @@ -460,7 +7700,7 @@ func (a *IpamAPIService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableAggregateRequest + localVarPostBody = r.aSNRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -512,47 +7752,47 @@ func (a *IpamAPIService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAggregatesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamAsnsDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamAggregatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamAggregatesDestroyExecute(r) +func (r ApiIpamAsnsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamAsnsDestroyExecute(r) } /* -IpamAggregatesDestroy Method for IpamAggregatesDestroy +IpamAsnsDestroy Method for IpamAsnsDestroy -Delete a aggregate object. +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 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 ASN. + @return ApiIpamAsnsDestroyRequest */ -func (a *IpamAPIService) IpamAggregatesDestroy(ctx context.Context, id int32) ApiIpamAggregatesDestroyRequest { - return ApiIpamAggregatesDestroyRequest{ +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) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroyRequest) (*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.IpamAggregatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/aggregates/{id}/" + localVarPath := localBasePath + "/api/ipam/asns/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -618,613 +7858,651 @@ func (a *IpamAPIService) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroy return localVarHTTPResponse, nil } -type ApiIpamAggregatesListRequest struct { - 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 - 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 - 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 +type ApiIpamAsnsListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + 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 - 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 + offset *int32 + ordering *string + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + 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 *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string } -func (r ApiIpamAggregatesListRequest) Created(created []time.Time) ApiIpamAggregatesListRequest { - r.created = &created +func (r ApiIpamAsnsListRequest) Asn(asn []int32) ApiIpamAsnsListRequest { + r.asn = &asn return r } -func (r ApiIpamAggregatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamAggregatesListRequest { - r.createdEmpty = &createdEmpty +func (r ApiIpamAsnsListRequest) AsnEmpty(asnEmpty bool) ApiIpamAsnsListRequest { + r.asnEmpty = &asnEmpty return r } -func (r ApiIpamAggregatesListRequest) CreatedGt(createdGt []time.Time) ApiIpamAggregatesListRequest { - r.createdGt = &createdGt +func (r ApiIpamAsnsListRequest) AsnGt(asnGt []int32) ApiIpamAsnsListRequest { + r.asnGt = &asnGt return r } -func (r ApiIpamAggregatesListRequest) CreatedGte(createdGte []time.Time) ApiIpamAggregatesListRequest { - r.createdGte = &createdGte +func (r ApiIpamAsnsListRequest) AsnGte(asnGte []int32) ApiIpamAsnsListRequest { + r.asnGte = &asnGte return r } -func (r ApiIpamAggregatesListRequest) CreatedLt(createdLt []time.Time) ApiIpamAggregatesListRequest { - r.createdLt = &createdLt +func (r ApiIpamAsnsListRequest) AsnLt(asnLt []int32) ApiIpamAsnsListRequest { + r.asnLt = &asnLt return r } -func (r ApiIpamAggregatesListRequest) CreatedLte(createdLte []time.Time) ApiIpamAggregatesListRequest { - r.createdLte = &createdLte +func (r ApiIpamAsnsListRequest) AsnLte(asnLte []int32) ApiIpamAsnsListRequest { + r.asnLte = &asnLte return r } -func (r ApiIpamAggregatesListRequest) CreatedN(createdN []time.Time) ApiIpamAggregatesListRequest { - r.createdN = &createdN +func (r ApiIpamAsnsListRequest) AsnN(asnN []int32) ApiIpamAsnsListRequest { + r.asnN = &asnN return r } -func (r ApiIpamAggregatesListRequest) CreatedByRequest(createdByRequest string) ApiIpamAggregatesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiIpamAsnsListRequest) Created(created []time.Time) ApiIpamAsnsListRequest { + r.created = &created return r } -func (r ApiIpamAggregatesListRequest) DateAdded(dateAdded []string) ApiIpamAggregatesListRequest { - r.dateAdded = &dateAdded +func (r ApiIpamAsnsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamAsnsListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiIpamAggregatesListRequest) DateAddedEmpty(dateAddedEmpty bool) ApiIpamAggregatesListRequest { - r.dateAddedEmpty = &dateAddedEmpty +func (r ApiIpamAsnsListRequest) CreatedGt(createdGt []time.Time) ApiIpamAsnsListRequest { + r.createdGt = &createdGt return r } -func (r ApiIpamAggregatesListRequest) DateAddedGt(dateAddedGt []string) ApiIpamAggregatesListRequest { - r.dateAddedGt = &dateAddedGt +func (r ApiIpamAsnsListRequest) CreatedGte(createdGte []time.Time) ApiIpamAsnsListRequest { + r.createdGte = &createdGte return r } -func (r ApiIpamAggregatesListRequest) DateAddedGte(dateAddedGte []string) ApiIpamAggregatesListRequest { - r.dateAddedGte = &dateAddedGte +func (r ApiIpamAsnsListRequest) CreatedLt(createdLt []time.Time) ApiIpamAsnsListRequest { + r.createdLt = &createdLt return r } -func (r ApiIpamAggregatesListRequest) DateAddedLt(dateAddedLt []string) ApiIpamAggregatesListRequest { - r.dateAddedLt = &dateAddedLt +func (r ApiIpamAsnsListRequest) CreatedLte(createdLte []time.Time) ApiIpamAsnsListRequest { + r.createdLte = &createdLte return r } - -func (r ApiIpamAggregatesListRequest) DateAddedLte(dateAddedLte []string) ApiIpamAggregatesListRequest { - r.dateAddedLte = &dateAddedLte + +func (r ApiIpamAsnsListRequest) CreatedN(createdN []time.Time) ApiIpamAsnsListRequest { + r.createdN = &createdN return r } -func (r ApiIpamAggregatesListRequest) DateAddedN(dateAddedN []string) ApiIpamAggregatesListRequest { - r.dateAddedN = &dateAddedN +func (r ApiIpamAsnsListRequest) CreatedByRequest(createdByRequest string) ApiIpamAsnsListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiIpamAggregatesListRequest) Description(description []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Description(description []string) ApiIpamAsnsListRequest { r.description = &description return r } -func (r ApiIpamAggregatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamAsnsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamAggregatesListRequest) DescriptionIc(descriptionIc []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionIc(descriptionIc []string) ApiIpamAsnsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamAggregatesListRequest) DescriptionIe(descriptionIe []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionIe(descriptionIe []string) ApiIpamAsnsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamAggregatesListRequest) DescriptionIew(descriptionIew []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionIew(descriptionIew []string) ApiIpamAsnsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamAggregatesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamAsnsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamAggregatesListRequest) DescriptionN(descriptionN []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionN(descriptionN []string) ApiIpamAsnsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamAggregatesListRequest) DescriptionNic(descriptionNic []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionNic(descriptionNic []string) ApiIpamAsnsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamAggregatesListRequest) DescriptionNie(descriptionNie []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionNie(descriptionNie []string) ApiIpamAsnsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamAggregatesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamAsnsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamAggregatesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamAsnsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamAggregatesListRequest) Family(family float32) ApiIpamAggregatesListRequest { - r.family = &family - return r -} - -func (r ApiIpamAggregatesListRequest) Id(id []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Id(id []int32) ApiIpamAsnsListRequest { r.id = &id return r } -func (r ApiIpamAggregatesListRequest) IdEmpty(idEmpty bool) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) IdEmpty(idEmpty bool) ApiIpamAsnsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamAggregatesListRequest) IdGt(idGt []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) IdGt(idGt []int32) ApiIpamAsnsListRequest { r.idGt = &idGt return r } -func (r ApiIpamAggregatesListRequest) IdGte(idGte []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) IdGte(idGte []int32) ApiIpamAsnsListRequest { r.idGte = &idGte return r } -func (r ApiIpamAggregatesListRequest) IdLt(idLt []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) IdLt(idLt []int32) ApiIpamAsnsListRequest { r.idLt = &idLt return r } -func (r ApiIpamAggregatesListRequest) IdLte(idLte []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) IdLte(idLte []int32) ApiIpamAsnsListRequest { r.idLte = &idLte return r } -func (r ApiIpamAggregatesListRequest) IdN(idN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) IdN(idN []int32) ApiIpamAsnsListRequest { r.idN = &idN return r } -func (r ApiIpamAggregatesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamAsnsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamAggregatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamAsnsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamAggregatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamAsnsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamAggregatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamAsnsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamAggregatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamAsnsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamAggregatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamAsnsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamAggregatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamAsnsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamAggregatesListRequest) Limit(limit int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Limit(limit int32) ApiIpamAsnsListRequest { r.limit = &limit return r } -func (r ApiIpamAggregatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamAsnsListRequest { r.modifiedByRequest = &modifiedByRequest return r } // The initial index from which to return the results. -func (r ApiIpamAggregatesListRequest) Offset(offset int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Offset(offset int32) ApiIpamAsnsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiIpamAggregatesListRequest) Ordering(ordering string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Ordering(ordering string) ApiIpamAsnsListRequest { r.ordering = &ordering return r } -// Prefix -func (r ApiIpamAggregatesListRequest) Prefix(prefix string) ApiIpamAggregatesListRequest { - r.prefix = &prefix +// Provider (slug) +func (r ApiIpamAsnsListRequest) Provider(provider []string) ApiIpamAsnsListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiIpamAsnsListRequest) ProviderN(providerN []string) ApiIpamAsnsListRequest { + r.providerN = &providerN + return r +} + +// Provider (ID) +func (r ApiIpamAsnsListRequest) ProviderId(providerId []int32) ApiIpamAsnsListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiIpamAsnsListRequest) ProviderIdN(providerIdN []int32) ApiIpamAsnsListRequest { + r.providerIdN = &providerIdN return r } // Search -func (r ApiIpamAggregatesListRequest) Q(q string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Q(q string) ApiIpamAsnsListRequest { r.q = &q return r } // RIR (slug) -func (r ApiIpamAggregatesListRequest) Rir(rir []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Rir(rir []string) ApiIpamAsnsListRequest { r.rir = &rir return r } // RIR (slug) -func (r ApiIpamAggregatesListRequest) RirN(rirN []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) RirN(rirN []string) ApiIpamAsnsListRequest { r.rirN = &rirN return r } // RIR (ID) -func (r ApiIpamAggregatesListRequest) RirId(rirId []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) RirId(rirId []int32) ApiIpamAsnsListRequest { r.rirId = &rirId return r } // RIR (ID) -func (r ApiIpamAggregatesListRequest) RirIdN(rirIdN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) RirIdN(rirIdN []int32) ApiIpamAsnsListRequest { r.rirIdN = &rirIdN return r } -func (r ApiIpamAggregatesListRequest) Tag(tag []string) ApiIpamAggregatesListRequest { +// Site (slug) +func (r ApiIpamAsnsListRequest) Site(site []string) ApiIpamAsnsListRequest { + r.site = &site + return r +} + +// Site (slug) +func (r ApiIpamAsnsListRequest) SiteN(siteN []string) ApiIpamAsnsListRequest { + r.siteN = &siteN + return r +} + +// Site (ID) +func (r ApiIpamAsnsListRequest) SiteId(siteId []int32) ApiIpamAsnsListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiIpamAsnsListRequest) SiteIdN(siteIdN []int32) ApiIpamAsnsListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiIpamAsnsListRequest) Tag(tag []string) ApiIpamAsnsListRequest { r.tag = &tag return r } -func (r ApiIpamAggregatesListRequest) TagN(tagN []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TagN(tagN []string) ApiIpamAsnsListRequest { r.tagN = &tagN return r } // Tenant (slug) -func (r ApiIpamAggregatesListRequest) Tenant(tenant []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) Tenant(tenant []string) ApiIpamAsnsListRequest { r.tenant = &tenant return r } // Tenant (slug) -func (r ApiIpamAggregatesListRequest) TenantN(tenantN []string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TenantN(tenantN []string) ApiIpamAsnsListRequest { r.tenantN = &tenantN return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } // Tenant (ID) -func (r ApiIpamAggregatesListRequest) TenantId(tenantId []*int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TenantId(tenantId []*int32) ApiIpamAsnsListRequest { r.tenantId = &tenantId return r } // Tenant (ID) -func (r ApiIpamAggregatesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) TenantIdN(tenantIdN []*int32) ApiIpamAsnsListRequest { r.tenantIdN = &tenantIdN return r } -func (r ApiIpamAggregatesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamAggregatesListRequest { +func (r ApiIpamAsnsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamAsnsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamAggregatesListRequest) Execute() (*PaginatedAggregateList, *http.Response, error) { - return r.ApiService.IpamAggregatesListExecute(r) +func (r ApiIpamAsnsListRequest) Execute() (*PaginatedASNList, *http.Response, error) { + return r.ApiService.IpamAsnsListExecute(r) } /* -IpamAggregatesList Method for IpamAggregatesList +IpamAsnsList Method for IpamAsnsList -Get a list of aggregate objects. +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 ApiIpamAggregatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsListRequest */ -func (a *IpamAPIService) IpamAggregatesList(ctx context.Context) ApiIpamAggregatesListRequest { - return ApiIpamAggregatesListRequest{ +func (a *IpamAPIService) IpamAsnsList(ctx context.Context) ApiIpamAsnsListRequest { + return ApiIpamAsnsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedAggregateList -func (a *IpamAPIService) IpamAggregatesListExecute(r ApiIpamAggregatesListRequest) (*PaginatedAggregateList, *http.Response, error) { +// @return PaginatedASNList +func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*PaginatedASNList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedAggregateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedASNList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/aggregates/" + localVarPath := localBasePath + "/api/ipam/asns/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.created != nil { - t := *r.created + if r.asn != nil { + t := *r.asn 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.asnEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__empty", r.asnEmpty, "form", "") + } + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gt", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.asnGte != nil { + t := *r.asnGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gte", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.asnLt != nil { + t := *r.asnLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lt", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.asnLte != nil { + t := *r.asnLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lte", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + if r.asnN != nil { + t := *r.asnN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.dateAdded != nil { - t := *r.dateAdded + 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, "date_added", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.dateAddedEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__empty", r.dateAddedEmpty, "") - } - if r.dateAddedGt != nil { - t := *r.dateAddedGt + 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, "date_added__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.dateAddedGte != nil { - t := *r.dateAddedGte + 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, "date_added__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.dateAddedLt != nil { - t := *r.dateAddedLt + 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, "date_added__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.dateAddedLte != nil { - t := *r.dateAddedLte + 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, "date_added__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.dateAddedN != nil { - t := *r.dateAddedN + 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, "date_added__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -1232,10 +8510,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -1243,10 +8521,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -1254,10 +8532,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -1265,10 +8543,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -1276,10 +8554,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -1287,10 +8565,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -1298,10 +8576,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -1309,38 +8587,35 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.family != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -1348,10 +8623,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -1359,10 +8634,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -1370,10 +8645,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -1381,10 +8656,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -1392,10 +8667,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -1403,10 +8678,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -1414,10 +8689,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -1425,10 +8700,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -1436,10 +8711,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -1447,10 +8722,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -1458,39 +8733,80 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.prefix != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", r.prefix, "") + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "form", "multi") + } + } + if r.providerN != nil { + t := *r.providerN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "form", "multi") + } + } + if r.providerId != nil { + t := *r.providerId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "form", "multi") + } + } + if r.providerIdN != nil { + t := *r.providerIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "form", "multi") + } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.rir != nil { t := *r.rir if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "form", "multi") } } if r.rirN != nil { @@ -1498,10 +8814,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "form", "multi") } } if r.rirId != nil { @@ -1509,10 +8825,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "form", "multi") } } if r.rirIdN != nil { @@ -1520,10 +8836,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.tag != nil { @@ -1531,10 +8891,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -1542,10 +8902,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -1553,10 +8913,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -1564,10 +8924,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -1575,10 +8935,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -1586,10 +8946,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -1597,10 +8957,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -1608,10 +8968,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -1619,270 +8979,26 @@ 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).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 - } - - // 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 ApiIpamAggregatesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedWritableAggregateRequest *PatchedWritableAggregateRequest -} - -func (r ApiIpamAggregatesPartialUpdateRequest) PatchedWritableAggregateRequest(patchedWritableAggregateRequest PatchedWritableAggregateRequest) ApiIpamAggregatesPartialUpdateRequest { - r.patchedWritableAggregateRequest = &patchedWritableAggregateRequest - return r -} - -func (r ApiIpamAggregatesPartialUpdateRequest) Execute() (*Aggregate, *http.Response, error) { - return r.ApiService.IpamAggregatesPartialUpdateExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamAggregatesPartialUpdate(ctx context.Context, id int32) ApiIpamAggregatesPartialUpdateRequest { - return ApiIpamAggregatesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return Aggregate -func (a *IpamAPIService) IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesPartialUpdateRequest) (*Aggregate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/ipam/aggregates/{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.patchedWritableAggregateRequest - 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, "tenant_id", s.Index(i).Interface(), "form", "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 ApiIpamAggregatesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 -} - -func (r ApiIpamAggregatesRetrieveRequest) Execute() (*Aggregate, *http.Response, error) { - return r.ApiService.IpamAggregatesRetrieveExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamAggregatesRetrieve(ctx context.Context, id int32) ApiIpamAggregatesRetrieveRequest { - return ApiIpamAggregatesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return Aggregate -func (a *IpamAPIService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrieveRequest) (*Aggregate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - - localVarPath := localBasePath + "/api/ipam/aggregates/{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{} @@ -1951,64 +9067,60 @@ func (a *IpamAPIService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAggregatesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - writableAggregateRequest *WritableAggregateRequest +type ApiIpamAsnsPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedASNRequest *PatchedASNRequest } -func (r ApiIpamAggregatesUpdateRequest) WritableAggregateRequest(writableAggregateRequest WritableAggregateRequest) ApiIpamAggregatesUpdateRequest { - r.writableAggregateRequest = &writableAggregateRequest +func (r ApiIpamAsnsPartialUpdateRequest) PatchedASNRequest(patchedASNRequest PatchedASNRequest) ApiIpamAsnsPartialUpdateRequest { + r.patchedASNRequest = &patchedASNRequest return r } -func (r ApiIpamAggregatesUpdateRequest) Execute() (*Aggregate, *http.Response, error) { - return r.ApiService.IpamAggregatesUpdateExecute(r) +func (r ApiIpamAsnsPartialUpdateRequest) Execute() (*ASN, *http.Response, error) { + return r.ApiService.IpamAsnsPartialUpdateExecute(r) } /* -IpamAggregatesUpdate Method for IpamAggregatesUpdate +IpamAsnsPartialUpdate Method for IpamAsnsPartialUpdate -Put a aggregate object. +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 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 ASN. + @return ApiIpamAsnsPartialUpdateRequest */ -func (a *IpamAPIService) IpamAggregatesUpdate(ctx context.Context, id int32) ApiIpamAggregatesUpdateRequest { - return ApiIpamAggregatesUpdateRequest{ +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 Aggregate -func (a *IpamAPIService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRequest) (*Aggregate, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdateRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/aggregates/{id}/" + localVarPath := localBasePath + "/api/ipam/asns/{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.writableAggregateRequest == nil { - return localVarReturnValue, nil, reportError("writableAggregateRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -2028,7 +9140,7 @@ func (a *IpamAPIService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableAggregateRequest + localVarPostBody = r.patchedASNRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2080,67 +9192,57 @@ func (a *IpamAPIService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesAvailableAsnsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - aSNRequest *[]ASNRequest -} - -func (r ApiIpamAsnRangesAvailableAsnsCreateRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnRangesAvailableAsnsCreateRequest { - r.aSNRequest = &aSNRequest - return r +type ApiIpamAsnsRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamAsnRangesAvailableAsnsCreateRequest) Execute() ([]ASN, *http.Response, error) { - return r.ApiService.IpamAsnRangesAvailableAsnsCreateExecute(r) +func (r ApiIpamAsnsRetrieveRequest) Execute() (*ASN, *http.Response, error) { + return r.ApiService.IpamAsnsRetrieveExecute(r) } /* -IpamAsnRangesAvailableAsnsCreate Method for IpamAsnRangesAvailableAsnsCreate +IpamAsnsRetrieve Method for IpamAsnsRetrieve -Post a ASN object. +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 ApiIpamAsnRangesAvailableAsnsCreateRequest + @param ctx 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) IpamAsnRangesAvailableAsnsCreate(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsCreateRequest { - return ApiIpamAsnRangesAvailableAsnsCreateRequest{ +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) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRangesAvailableAsnsCreateRequest) ([]ASN, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASN + localVarHTTPMethod = http.MethodGet + 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.IpamAsnsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/available-asns/" + localVarPath := localBasePath + "/api/ipam/asns/{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.aSNRequest == nil { - return localVarReturnValue, nil, reportError("aSNRequest 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) @@ -2156,8 +9258,6 @@ func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRan if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.aSNRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2209,58 +9309,66 @@ func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRan return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesAvailableAsnsListRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamAsnsUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + aSNRequest *ASNRequest } -func (r ApiIpamAsnRangesAvailableAsnsListRequest) Execute() ([]AvailableASN, *http.Response, error) { - return r.ApiService.IpamAsnRangesAvailableAsnsListExecute(r) +func (r ApiIpamAsnsUpdateRequest) ASNRequest(aSNRequest ASNRequest) ApiIpamAsnsUpdateRequest { + r.aSNRequest = &aSNRequest + return r +} + +func (r ApiIpamAsnsUpdateRequest) Execute() (*ASN, *http.Response, error) { + return r.ApiService.IpamAsnsUpdateExecute(r) } /* -IpamAsnRangesAvailableAsnsList Method for IpamAsnRangesAvailableAsnsList +IpamAsnsUpdate Method for IpamAsnsUpdate -Get a ASN object. +Put 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 A unique integer value identifying this ASN. + @return ApiIpamAsnsUpdateRequest */ -func (a *IpamAPIService) IpamAsnRangesAvailableAsnsList(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsListRequest { - return ApiIpamAsnRangesAvailableAsnsListRequest{ +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 []AvailableASN -func (a *IpamAPIService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRangesAvailableAsnsListRequest) ([]AvailableASN, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableASN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesAvailableAsnsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/available-asns/" + localVarPath := localBasePath + "/api/ipam/asns/{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.aSNRequest == nil { + return localVarReturnValue, nil, reportError("aSNRequest 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) @@ -2276,6 +9384,8 @@ func (a *IpamAPIService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRange if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.aSNRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2327,56 +9437,56 @@ func (a *IpamAPIService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRange return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRangeRequest *[]ASNRangeRequest +type ApiIpamFhrpGroupAssignmentsBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest } -func (r ApiIpamAsnRangesBulkDestroyRequest) ASNRangeRequest(aSNRangeRequest []ASNRangeRequest) ApiIpamAsnRangesBulkDestroyRequest { - r.aSNRangeRequest = &aSNRangeRequest +func (r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest []FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest { + r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest return r } -func (r ApiIpamAsnRangesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamAsnRangesBulkDestroyExecute(r) +func (r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsBulkDestroyExecute(r) } /* -IpamAsnRangesBulkDestroy Method for IpamAsnRangesBulkDestroy +IpamFhrpGroupAssignmentsBulkDestroy Method for IpamFhrpGroupAssignmentsBulkDestroy -Delete a list of ASN range objects. +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 ApiIpamAsnRangesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest */ -func (a *IpamAPIService) IpamAsnRangesBulkDestroy(ctx context.Context) ApiIpamAsnRangesBulkDestroyRequest { - return ApiIpamAsnRangesBulkDestroyRequest{ +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest { + return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkDestroyRequest) (*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.IpamAsnRangesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRangeRequest == nil { - return nil, reportError("aSNRangeRequest is required and must be specified") + if r.fHRPGroupAssignmentRequest == nil { + return nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") } // to determine the Content-Type header @@ -2397,7 +9507,7 @@ func (a *IpamAPIService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkD localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRangeRequest + localVarPostBody = r.fHRPGroupAssignmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2440,59 +9550,58 @@ func (a *IpamAPIService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkD return localVarHTTPResponse, nil } -type ApiIpamAsnRangesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRangeRequest *[]ASNRangeRequest +type ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest } -func (r ApiIpamAsnRangesBulkPartialUpdateRequest) ASNRangeRequest(aSNRangeRequest []ASNRangeRequest) ApiIpamAsnRangesBulkPartialUpdateRequest { - r.aSNRangeRequest = &aSNRangeRequest +func (r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest []FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest { + r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest return r } -func (r ApiIpamAsnRangesBulkPartialUpdateRequest) Execute() ([]ASNRange, *http.Response, error) { - return r.ApiService.IpamAsnRangesBulkPartialUpdateExecute(r) +func (r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) Execute() ([]FHRPGroupAssignment, *http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r) } /* -IpamAsnRangesBulkPartialUpdate Method for IpamAsnRangesBulkPartialUpdate +IpamFhrpGroupAssignmentsBulkPartialUpdate Method for IpamFhrpGroupAssignmentsBulkPartialUpdate -Patch a list of ASN range objects. +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 ApiIpamAsnRangesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdate(ctx context.Context) ApiIpamAsnRangesBulkPartialUpdateRequest { - return ApiIpamAsnRangesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest { + return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASNRange -func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRangesBulkPartialUpdateRequest) ([]ASNRange, *http.Response, error) { +// @return []FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASNRange + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRangeRequest == nil { - return localVarReturnValue, nil, reportError("aSNRangeRequest is required and must be specified") + if r.fHRPGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") } // to determine the Content-Type header @@ -2513,7 +9622,7 @@ func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRange localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRangeRequest + localVarPostBody = r.fHRPGroupAssignmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2565,59 +9674,58 @@ func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRange return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRangeRequest *[]ASNRangeRequest +type ApiIpamFhrpGroupAssignmentsBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest } -func (r ApiIpamAsnRangesBulkUpdateRequest) ASNRangeRequest(aSNRangeRequest []ASNRangeRequest) ApiIpamAsnRangesBulkUpdateRequest { - r.aSNRangeRequest = &aSNRangeRequest +func (r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest []FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest { + r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest return r } -func (r ApiIpamAsnRangesBulkUpdateRequest) Execute() ([]ASNRange, *http.Response, error) { - return r.ApiService.IpamAsnRangesBulkUpdateExecute(r) +func (r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) Execute() ([]FHRPGroupAssignment, *http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsBulkUpdateExecute(r) } /* -IpamAsnRangesBulkUpdate Method for IpamAsnRangesBulkUpdate +IpamFhrpGroupAssignmentsBulkUpdate Method for IpamFhrpGroupAssignmentsBulkUpdate -Put a list of ASN range objects. +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 ApiIpamAsnRangesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest */ -func (a *IpamAPIService) IpamAsnRangesBulkUpdate(ctx context.Context) ApiIpamAsnRangesBulkUpdateRequest { - return ApiIpamAsnRangesBulkUpdateRequest{ +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest { + return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASNRange -func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUpdateRequest) ([]ASNRange, *http.Response, error) { +// @return []FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASNRange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRangeRequest == nil { - return localVarReturnValue, nil, reportError("aSNRangeRequest is required and must be specified") + if r.fHRPGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") } // to determine the Content-Type header @@ -2638,7 +9746,7 @@ func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRangeRequest + localVarPostBody = r.fHRPGroupAssignmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2690,59 +9798,58 @@ func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRangeRequest *ASNRangeRequest +type ApiIpamFhrpGroupAssignmentsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest } -func (r ApiIpamAsnRangesCreateRequest) ASNRangeRequest(aSNRangeRequest ASNRangeRequest) ApiIpamAsnRangesCreateRequest { - r.aSNRangeRequest = &aSNRangeRequest +func (r ApiIpamFhrpGroupAssignmentsCreateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsCreateRequest { + r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest return r } -func (r ApiIpamAsnRangesCreateRequest) Execute() (*ASNRange, *http.Response, error) { - return r.ApiService.IpamAsnRangesCreateExecute(r) +func (r ApiIpamFhrpGroupAssignmentsCreateRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsCreateExecute(r) } /* -IpamAsnRangesCreate Method for IpamAsnRangesCreate +IpamFhrpGroupAssignmentsCreate Method for IpamFhrpGroupAssignmentsCreate -Post a list of ASN range objects. +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 ApiIpamAsnRangesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsCreateRequest */ -func (a *IpamAPIService) IpamAsnRangesCreate(ctx context.Context) ApiIpamAsnRangesCreateRequest { - return ApiIpamAsnRangesCreateRequest{ +func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreate(ctx context.Context) ApiIpamFhrpGroupAssignmentsCreateRequest { + return ApiIpamFhrpGroupAssignmentsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ASNRange -func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequest) (*ASNRange, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGroupAssignmentsCreateRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRangeRequest == nil { - return localVarReturnValue, nil, reportError("aSNRangeRequest is required and must be specified") + if r.fHRPGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") } // to determine the Content-Type header @@ -2763,7 +9870,7 @@ func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRangeRequest + localVarPostBody = r.fHRPGroupAssignmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2815,47 +9922,47 @@ func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamFhrpGroupAssignmentsDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamAsnRangesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamAsnRangesDestroyExecute(r) +func (r ApiIpamFhrpGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsDestroyExecute(r) } /* -IpamAsnRangesDestroy Method for IpamAsnRangesDestroy +IpamFhrpGroupAssignmentsDestroy Method for IpamFhrpGroupAssignmentsDestroy -Delete a ASN range object. +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 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 FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsDestroyRequest */ -func (a *IpamAPIService) IpamAsnRangesDestroy(ctx context.Context, id int32) ApiIpamAsnRangesDestroyRequest { - return ApiIpamAsnRangesDestroyRequest{ +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) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRequest) (*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.IpamAsnRangesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -2898,1500 +10005,824 @@ func (a *IpamAPIService) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRe 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 ApiIpamAsnRangesListRequest struct { - 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 - 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 - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - 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 -} - -func (r ApiIpamAsnRangesListRequest) Created(created []time.Time) ApiIpamAsnRangesListRequest { - r.created = &created - 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 -} - -func (r ApiIpamAsnRangesListRequest) CreatedGte(createdGte []time.Time) ApiIpamAsnRangesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiIpamAsnRangesListRequest) CreatedLt(createdLt []time.Time) ApiIpamAsnRangesListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiIpamAsnRangesListRequest) CreatedLte(createdLte []time.Time) ApiIpamAsnRangesListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiIpamAsnRangesListRequest) CreatedN(createdN []time.Time) ApiIpamAsnRangesListRequest { - r.createdN = &createdN - return r -} - -func (r ApiIpamAsnRangesListRequest) CreatedByRequest(createdByRequest string) ApiIpamAsnRangesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiIpamAsnRangesListRequest) Description(description []string) ApiIpamAsnRangesListRequest { - r.description = &description - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamAsnRangesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionIc(descriptionIc []string) ApiIpamAsnRangesListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionIe(descriptionIe []string) ApiIpamAsnRangesListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionIew(descriptionIew []string) ApiIpamAsnRangesListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamAsnRangesListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionN(descriptionN []string) ApiIpamAsnRangesListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionNic(descriptionNic []string) ApiIpamAsnRangesListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionNie(descriptionNie []string) ApiIpamAsnRangesListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamAsnRangesListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiIpamAsnRangesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamAsnRangesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -func (r ApiIpamAsnRangesListRequest) End(end []int32) ApiIpamAsnRangesListRequest { - r.end = &end - 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 -} - -func (r ApiIpamAsnRangesListRequest) EndGte(endGte []int32) ApiIpamAsnRangesListRequest { - r.endGte = &endGte - return r -} - -func (r ApiIpamAsnRangesListRequest) EndLt(endLt []int32) ApiIpamAsnRangesListRequest { - r.endLt = &endLt - return r -} - -func (r ApiIpamAsnRangesListRequest) EndLte(endLte []int32) ApiIpamAsnRangesListRequest { - r.endLte = &endLte - return r -} - -func (r ApiIpamAsnRangesListRequest) EndN(endN []int32) ApiIpamAsnRangesListRequest { - r.endN = &endN - return r -} - -func (r ApiIpamAsnRangesListRequest) Id(id []int32) ApiIpamAsnRangesListRequest { - r.id = &id - 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 -} - -func (r ApiIpamAsnRangesListRequest) IdGte(idGte []int32) ApiIpamAsnRangesListRequest { - r.idGte = &idGte - return r -} - -func (r ApiIpamAsnRangesListRequest) IdLt(idLt []int32) ApiIpamAsnRangesListRequest { - r.idLt = &idLt - return r -} - -func (r ApiIpamAsnRangesListRequest) IdLte(idLte []int32) ApiIpamAsnRangesListRequest { - r.idLte = &idLte - return r -} - -func (r ApiIpamAsnRangesListRequest) IdN(idN []int32) ApiIpamAsnRangesListRequest { - r.idN = &idN - return r -} - -func (r ApiIpamAsnRangesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamAsnRangesListRequest { - r.lastUpdated = &lastUpdated - 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 -} - -func (r ApiIpamAsnRangesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamAsnRangesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiIpamAsnRangesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamAsnRangesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiIpamAsnRangesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamAsnRangesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiIpamAsnRangesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamAsnRangesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -// Number of results to return per page. -func (r ApiIpamAsnRangesListRequest) Limit(limit int32) ApiIpamAsnRangesListRequest { - r.limit = &limit - return r + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil } -func (r ApiIpamAsnRangesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamAsnRangesListRequest { - r.modifiedByRequest = &modifiedByRequest - return r +type ApiIpamFhrpGroupAssignmentsListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + 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 + virtualMachineId *[]int32 } -func (r ApiIpamAsnRangesListRequest) Name(name []string) ApiIpamAsnRangesListRequest { - r.name = &name +func (r ApiIpamFhrpGroupAssignmentsListRequest) Created(created []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.created = &created return r } -func (r ApiIpamAsnRangesListRequest) NameEmpty(nameEmpty bool) ApiIpamAsnRangesListRequest { - r.nameEmpty = &nameEmpty +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiIpamAsnRangesListRequest) NameIc(nameIc []string) ApiIpamAsnRangesListRequest { - r.nameIc = &nameIc +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdGt = &createdGt return r } -func (r ApiIpamAsnRangesListRequest) NameIe(nameIe []string) ApiIpamAsnRangesListRequest { - r.nameIe = &nameIe +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedGte(createdGte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdGte = &createdGte return r } -func (r ApiIpamAsnRangesListRequest) NameIew(nameIew []string) ApiIpamAsnRangesListRequest { - r.nameIew = &nameIew +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedLt(createdLt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdLt = &createdLt return r } -func (r ApiIpamAsnRangesListRequest) NameIsw(nameIsw []string) ApiIpamAsnRangesListRequest { - r.nameIsw = &nameIsw +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedLte(createdLte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdLte = &createdLte return r } -func (r ApiIpamAsnRangesListRequest) NameN(nameN []string) ApiIpamAsnRangesListRequest { - r.nameN = &nameN +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedN(createdN []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdN = &createdN return r } -func (r ApiIpamAsnRangesListRequest) NameNic(nameNic []string) ApiIpamAsnRangesListRequest { - r.nameNic = &nameNic +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedByRequest(createdByRequest string) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiIpamAsnRangesListRequest) NameNie(nameNie []string) ApiIpamAsnRangesListRequest { - r.nameNie = &nameNie +func (r ApiIpamFhrpGroupAssignmentsListRequest) Device(device []string) ApiIpamFhrpGroupAssignmentsListRequest { + r.device = &device return r } -func (r ApiIpamAsnRangesListRequest) NameNiew(nameNiew []string) ApiIpamAsnRangesListRequest { - r.nameNiew = &nameNiew +func (r ApiIpamFhrpGroupAssignmentsListRequest) DeviceId(deviceId []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.deviceId = &deviceId return r } -func (r ApiIpamAsnRangesListRequest) NameNisw(nameNisw []string) ApiIpamAsnRangesListRequest { - r.nameNisw = &nameNisw +// Group (ID) +func (r ApiIpamFhrpGroupAssignmentsListRequest) GroupId(groupId []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.groupId = &groupId return r } -// The initial index from which to return the results. -func (r ApiIpamAsnRangesListRequest) Offset(offset int32) ApiIpamAsnRangesListRequest { - r.offset = &offset +// Group (ID) +func (r ApiIpamFhrpGroupAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.groupIdN = &groupIdN return r } -// Which field to use when ordering the results. -func (r ApiIpamAsnRangesListRequest) Ordering(ordering string) ApiIpamAsnRangesListRequest { - r.ordering = &ordering +func (r ApiIpamFhrpGroupAssignmentsListRequest) Id(id []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.id = &id return r } -// Search -func (r ApiIpamAsnRangesListRequest) Q(q string) ApiIpamAsnRangesListRequest { - r.q = &q +func (r ApiIpamFhrpGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { + r.idEmpty = &idEmpty return r } -// RIR (slug) -func (r ApiIpamAsnRangesListRequest) Rir(rir []string) ApiIpamAsnRangesListRequest { - r.rir = &rir +func (r ApiIpamFhrpGroupAssignmentsListRequest) IdGt(idGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.idGt = &idGt return r } -// RIR (slug) -func (r ApiIpamAsnRangesListRequest) RirN(rirN []string) ApiIpamAsnRangesListRequest { - r.rirN = &rirN +func (r ApiIpamFhrpGroupAssignmentsListRequest) IdGte(idGte []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.idGte = &idGte return r } -// RIR (ID) -func (r ApiIpamAsnRangesListRequest) RirId(rirId []int32) ApiIpamAsnRangesListRequest { - r.rirId = &rirId +func (r ApiIpamFhrpGroupAssignmentsListRequest) IdLt(idLt []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.idLt = &idLt return r } -// RIR (ID) -func (r ApiIpamAsnRangesListRequest) RirIdN(rirIdN []int32) ApiIpamAsnRangesListRequest { - r.rirIdN = &rirIdN +func (r ApiIpamFhrpGroupAssignmentsListRequest) IdLte(idLte []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.idLte = &idLte return r } -func (r ApiIpamAsnRangesListRequest) Slug(slug []string) ApiIpamAsnRangesListRequest { - r.slug = &slug +func (r ApiIpamFhrpGroupAssignmentsListRequest) IdN(idN []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.idN = &idN return r } -func (r ApiIpamAsnRangesListRequest) SlugEmpty(slugEmpty bool) ApiIpamAsnRangesListRequest { - r.slugEmpty = &slugEmpty +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceId(interfaceId []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceId = &interfaceId return r } -func (r ApiIpamAsnRangesListRequest) SlugIc(slugIc []string) ApiIpamAsnRangesListRequest { - r.slugIc = &slugIc +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdEmpty(interfaceIdEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceIdEmpty = &interfaceIdEmpty return r } -func (r ApiIpamAsnRangesListRequest) SlugIe(slugIe []string) ApiIpamAsnRangesListRequest { - r.slugIe = &slugIe +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdGt(interfaceIdGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceIdGt = &interfaceIdGt return r } -func (r ApiIpamAsnRangesListRequest) SlugIew(slugIew []string) ApiIpamAsnRangesListRequest { - r.slugIew = &slugIew +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdGte(interfaceIdGte []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceIdGte = &interfaceIdGte return r } -func (r ApiIpamAsnRangesListRequest) SlugIsw(slugIsw []string) ApiIpamAsnRangesListRequest { - r.slugIsw = &slugIsw +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdLt(interfaceIdLt []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceIdLt = &interfaceIdLt return r } -func (r ApiIpamAsnRangesListRequest) SlugN(slugN []string) ApiIpamAsnRangesListRequest { - r.slugN = &slugN +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdLte(interfaceIdLte []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceIdLte = &interfaceIdLte return r } -func (r ApiIpamAsnRangesListRequest) SlugNic(slugNic []string) ApiIpamAsnRangesListRequest { - r.slugNic = &slugNic +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdN(interfaceIdN []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceIdN = &interfaceIdN return r } -func (r ApiIpamAsnRangesListRequest) SlugNie(slugNie []string) ApiIpamAsnRangesListRequest { - r.slugNie = &slugNie +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceType(interfaceType string) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceType = &interfaceType return r } -func (r ApiIpamAsnRangesListRequest) SlugNiew(slugNiew []string) ApiIpamAsnRangesListRequest { - r.slugNiew = &slugNiew +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceTypeN(interfaceTypeN string) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceTypeN = &interfaceTypeN return r } -func (r ApiIpamAsnRangesListRequest) SlugNisw(slugNisw []string) ApiIpamAsnRangesListRequest { - r.slugNisw = &slugNisw +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiIpamAsnRangesListRequest) Start(start []int32) ApiIpamAsnRangesListRequest { - r.start = &start +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamAsnRangesListRequest) StartEmpty(startEmpty bool) ApiIpamAsnRangesListRequest { - r.startEmpty = &startEmpty +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamAsnRangesListRequest) StartGt(startGt []int32) ApiIpamAsnRangesListRequest { - r.startGt = &startGt +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamAsnRangesListRequest) StartGte(startGte []int32) ApiIpamAsnRangesListRequest { - r.startGte = &startGte +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamAsnRangesListRequest) StartLt(startLt []int32) ApiIpamAsnRangesListRequest { - r.startLt = &startLt +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamAsnRangesListRequest) StartLte(startLte []int32) ApiIpamAsnRangesListRequest { - r.startLte = &startLte +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiIpamAsnRangesListRequest) StartN(startN []int32) ApiIpamAsnRangesListRequest { - r.startN = &startN +// Number of results to return per page. +func (r ApiIpamFhrpGroupAssignmentsListRequest) Limit(limit int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.limit = &limit return r } -func (r ApiIpamAsnRangesListRequest) Tag(tag []string) ApiIpamAsnRangesListRequest { - r.tag = &tag +func (r ApiIpamFhrpGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamFhrpGroupAssignmentsListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamAsnRangesListRequest) TagN(tagN []string) ApiIpamAsnRangesListRequest { - r.tagN = &tagN +// The initial index from which to return the results. +func (r ApiIpamFhrpGroupAssignmentsListRequest) Offset(offset int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.offset = &offset return r } -// Tenant (slug) -func (r ApiIpamAsnRangesListRequest) Tenant(tenant []string) ApiIpamAsnRangesListRequest { - r.tenant = &tenant +// Which field to use when ordering the results. +func (r ApiIpamFhrpGroupAssignmentsListRequest) Ordering(ordering string) ApiIpamFhrpGroupAssignmentsListRequest { + r.ordering = &ordering return r } -// Tenant (slug) -func (r ApiIpamAsnRangesListRequest) TenantN(tenantN []string) ApiIpamAsnRangesListRequest { - r.tenantN = &tenantN +func (r ApiIpamFhrpGroupAssignmentsListRequest) Priority(priority []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.priority = &priority return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnRangesListRequest { - r.tenantGroup = &tenantGroup +func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityEmpty(priorityEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { + r.priorityEmpty = &priorityEmpty return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnRangesListRequest { - r.tenantGroupN = &tenantGroupN +func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityGt(priorityGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.priorityGt = &priorityGt return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnRangesListRequest { - r.tenantGroupId = &tenantGroupId +func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityGte(priorityGte []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.priorityGte = &priorityGte return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnRangesListRequest { - r.tenantGroupIdN = &tenantGroupIdN +func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityLt(priorityLt []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.priorityLt = &priorityLt return r } -// Tenant (ID) -func (r ApiIpamAsnRangesListRequest) TenantId(tenantId []*int32) ApiIpamAsnRangesListRequest { - r.tenantId = &tenantId +func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityLte(priorityLte []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.priorityLte = &priorityLte return r } -// Tenant (ID) -func (r ApiIpamAsnRangesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamAsnRangesListRequest { - r.tenantIdN = &tenantIdN +func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityN(priorityN []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.priorityN = &priorityN return r } -func (r ApiIpamAsnRangesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamAsnRangesListRequest { +func (r ApiIpamFhrpGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamFhrpGroupAssignmentsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamAsnRangesListRequest) Execute() (*PaginatedASNRangeList, *http.Response, error) { - return r.ApiService.IpamAsnRangesListExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamAsnRangesList(ctx context.Context) ApiIpamAsnRangesListRequest { - return ApiIpamAsnRangesListRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiIpamFhrpGroupAssignmentsListRequest) VirtualMachine(virtualMachine []string) ApiIpamFhrpGroupAssignmentsListRequest { + r.virtualMachine = &virtualMachine + return r } -// Execute executes the request -// -// @return PaginatedASNRangeList -func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) (*PaginatedASNRangeList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedASNRangeList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/ipam/asn-ranges/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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.end != nil { - t := *r.end - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__gt", t, "multi") - } - } - if r.endGte != nil { - t := *r.endGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__gte", t, "multi") - } - } - if r.endLt != nil { - t := *r.endLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__lt", t, "multi") - } - } - if r.endLte != nil { - t := *r.endLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__lte", t, "multi") - } - } - if r.endN != nil { - t := *r.endN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__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") - } +func (r ApiIpamFhrpGroupAssignmentsListRequest) VirtualMachineId(virtualMachineId []int32) ApiIpamFhrpGroupAssignmentsListRequest { + r.virtualMachineId = &virtualMachineId + return r +} + +func (r ApiIpamFhrpGroupAssignmentsListRequest) Execute() (*PaginatedFHRPGroupAssignmentList, *http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsListExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamFhrpGroupAssignmentsList(ctx context.Context) ApiIpamFhrpGroupAssignmentsListRequest { + return ApiIpamFhrpGroupAssignmentsListRequest{ + 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } +} + +// Execute executes the request +// @return PaginatedFHRPGroupAssignmentList +func (a *IpamAPIService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupAssignmentsListRequest) (*PaginatedFHRPGroupAssignmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFHRPGroupAssignmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.idLte != nil { - t := *r.idLte + + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "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.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.device != nil { + t := *r.device 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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 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, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc + if r.groupId != nil { + t := *r.groupId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.groupIdN != nil { + t := *r.groupIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } - if r.nameIew != nil { - t := *r.nameIew + 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, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "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.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } - if r.nameN != nil { - t := *r.nameN + 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, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.nameNic != nil { - t := *r.nameNic + 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, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.nameNie != nil { - t := *r.nameNie + 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, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + 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, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + 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, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - 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, "") - } - if r.rir != nil { - t := *r.rir + if r.interfaceId != nil { + t := *r.interfaceId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") } } - if r.rirN != nil { - t := *r.rirN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "multi") - } + if r.interfaceIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__empty", r.interfaceIdEmpty, "form", "") } - if r.rirId != nil { - t := *r.rirId + 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, "rir_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gt", t, "form", "multi") } } - if r.rirIdN != nil { - t := *r.rirIdN + if r.interfaceIdGte != nil { + t := *r.interfaceIdGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gte", t, "form", "multi") } } - if r.slug != nil { - t := *r.slug + if r.interfaceIdLt != nil { + t := *r.interfaceIdLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lt", t, "form", "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc + if r.interfaceIdLte != nil { + t := *r.interfaceIdLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lte", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe + if r.interfaceIdN != nil { + t := *r.interfaceIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") - } + if r.interfaceType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_type", r.interfaceType, "form", "") } - if r.slugIsw != nil { - t := *r.slugIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") - } + if r.interfaceTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_type__n", r.interfaceTypeN, "form", "") } - if r.slugN != nil { - t := *r.slugN + 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, "slug__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + 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, "slug__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + 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, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + 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, "slug__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + 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, "slug__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.start != nil { - t := *r.start + 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, "start", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "start", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.startEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__empty", r.startEmpty, "") - } - if r.startGt != nil { - t := *r.startGt + 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, "start__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.startGte != nil { - t := *r.startGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__gte", t, "multi") - } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.startLt != nil { - t := *r.startLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__lt", t, "multi") - } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.startLte != nil { - t := *r.startLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__lte", t, "multi") - } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - if r.startN != nil { - t := *r.startN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__n", t, "multi") - } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.tag != nil { - t := *r.tag + if r.priority != nil { + t := *r.priority 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", t, "form", "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.priorityEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__empty", r.priorityEmpty, "form", "") } - if r.tenant != nil { - t := *r.tenant + 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, "tenant", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gt", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + if r.priorityGte != nil { + t := *r.priorityGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gte", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + if r.priorityLt != nil { + t := *r.priorityLt 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lt", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + if r.priorityLte != nil { + t := *r.priorityLte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lte", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + if r.priorityN != nil { + t := *r.priorityN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", t, "form", "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.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - if r.tenantId != nil { - t := *r.tenantId + if r.virtualMachine != nil { + t := *r.virtualMachine 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + if r.virtualMachineId != nil { + t := *r.virtualMachineId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4460,56 +10891,55 @@ func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedASNRangeRequest *PatchedASNRangeRequest +type ApiIpamFhrpGroupAssignmentsPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedFHRPGroupAssignmentRequest *PatchedFHRPGroupAssignmentRequest } -func (r ApiIpamAsnRangesPartialUpdateRequest) PatchedASNRangeRequest(patchedASNRangeRequest PatchedASNRangeRequest) ApiIpamAsnRangesPartialUpdateRequest { - r.patchedASNRangeRequest = &patchedASNRangeRequest +func (r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) PatchedFHRPGroupAssignmentRequest(patchedFHRPGroupAssignmentRequest PatchedFHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest { + r.patchedFHRPGroupAssignmentRequest = &patchedFHRPGroupAssignmentRequest return r } -func (r ApiIpamAsnRangesPartialUpdateRequest) Execute() (*ASNRange, *http.Response, error) { - return r.ApiService.IpamAsnRangesPartialUpdateExecute(r) +func (r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsPartialUpdateExecute(r) } /* -IpamAsnRangesPartialUpdate Method for IpamAsnRangesPartialUpdate +IpamFhrpGroupAssignmentsPartialUpdate Method for IpamFhrpGroupAssignmentsPartialUpdate -Patch a ASN range object. +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 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 FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest */ -func (a *IpamAPIService) IpamAsnRangesPartialUpdate(ctx context.Context, id int32) ApiIpamAsnRangesPartialUpdateRequest { - return ApiIpamAsnRangesPartialUpdateRequest{ +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 ASNRange -func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPartialUpdateRequest) (*ASNRange, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -4534,7 +10964,7 @@ func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedASNRangeRequest + localVarPostBody = r.patchedFHRPGroupAssignmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4586,50 +11016,49 @@ func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamFhrpGroupAssignmentsRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamAsnRangesRetrieveRequest) Execute() (*ASNRange, *http.Response, error) { - return r.ApiService.IpamAsnRangesRetrieveExecute(r) +func (r ApiIpamFhrpGroupAssignmentsRetrieveRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsRetrieveExecute(r) } /* -IpamAsnRangesRetrieve Method for IpamAsnRangesRetrieve +IpamFhrpGroupAssignmentsRetrieve Method for IpamFhrpGroupAssignmentsRetrieve -Get a ASN range object. +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 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 FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsRetrieveRequest */ -func (a *IpamAPIService) IpamAsnRangesRetrieve(ctx context.Context, id int32) ApiIpamAsnRangesRetrieveRequest { - return ApiIpamAsnRangesRetrieveRequest{ +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 ASNRange -func (a *IpamAPIService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieveRequest) (*ASNRange, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGroupAssignmentsRetrieveRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -4704,63 +11133,62 @@ func (a *IpamAPIService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnRangesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - aSNRangeRequest *ASNRangeRequest +type ApiIpamFhrpGroupAssignmentsUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest } -func (r ApiIpamAsnRangesUpdateRequest) ASNRangeRequest(aSNRangeRequest ASNRangeRequest) ApiIpamAsnRangesUpdateRequest { - r.aSNRangeRequest = &aSNRangeRequest +func (r ApiIpamFhrpGroupAssignmentsUpdateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsUpdateRequest { + r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest return r } -func (r ApiIpamAsnRangesUpdateRequest) Execute() (*ASNRange, *http.Response, error) { - return r.ApiService.IpamAsnRangesUpdateExecute(r) +func (r ApiIpamFhrpGroupAssignmentsUpdateRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { + return r.ApiService.IpamFhrpGroupAssignmentsUpdateExecute(r) } /* -IpamAsnRangesUpdate Method for IpamAsnRangesUpdate +IpamFhrpGroupAssignmentsUpdate Method for IpamFhrpGroupAssignmentsUpdate -Put a ASN range object. +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 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 FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsUpdateRequest */ -func (a *IpamAPIService) IpamAsnRangesUpdate(ctx context.Context, id int32) ApiIpamAsnRangesUpdateRequest { - return ApiIpamAsnRangesUpdateRequest{ +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 ASNRange -func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequest) (*ASNRange, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGroupAssignmentsUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asn-ranges/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{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.aSNRangeRequest == nil { - return localVarReturnValue, nil, reportError("aSNRangeRequest is required and must be specified") + if r.fHRPGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") } // to determine the Content-Type header @@ -4781,7 +11209,7 @@ func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRangeRequest + localVarPostBody = r.fHRPGroupAssignmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4833,56 +11261,56 @@ func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRequest *[]ASNRequest +type ApiIpamFhrpGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupRequest *[]FHRPGroupRequest } -func (r ApiIpamAsnsBulkDestroyRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnsBulkDestroyRequest { - r.aSNRequest = &aSNRequest +func (r ApiIpamFhrpGroupsBulkDestroyRequest) FHRPGroupRequest(fHRPGroupRequest []FHRPGroupRequest) ApiIpamFhrpGroupsBulkDestroyRequest { + r.fHRPGroupRequest = &fHRPGroupRequest return r } -func (r ApiIpamAsnsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamAsnsBulkDestroyExecute(r) +func (r ApiIpamFhrpGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamFhrpGroupsBulkDestroyExecute(r) } /* -IpamAsnsBulkDestroy Method for IpamAsnsBulkDestroy +IpamFhrpGroupsBulkDestroy Method for IpamFhrpGroupsBulkDestroy -Delete a list of ASN objects. +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 ApiIpamAsnsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsBulkDestroyRequest */ -func (a *IpamAPIService) IpamAsnsBulkDestroy(ctx context.Context) ApiIpamAsnsBulkDestroyRequest { - return ApiIpamAsnsBulkDestroyRequest{ +func (a *IpamAPIService) IpamFhrpGroupsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupsBulkDestroyRequest { + return ApiIpamFhrpGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequest) (*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.IpamAsnsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRequest == nil { - return nil, reportError("aSNRequest is required and must be specified") + if r.fHRPGroupRequest == nil { + return nil, reportError("fHRPGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -4903,7 +11331,7 @@ func (a *IpamAPIService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRequest + localVarPostBody = r.fHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4946,59 +11374,58 @@ func (a *IpamAPIService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequ return localVarHTTPResponse, nil } -type ApiIpamAsnsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRequest *[]ASNRequest +type ApiIpamFhrpGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupRequest *[]FHRPGroupRequest } -func (r ApiIpamAsnsBulkPartialUpdateRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnsBulkPartialUpdateRequest { - r.aSNRequest = &aSNRequest +func (r ApiIpamFhrpGroupsBulkPartialUpdateRequest) FHRPGroupRequest(fHRPGroupRequest []FHRPGroupRequest) ApiIpamFhrpGroupsBulkPartialUpdateRequest { + r.fHRPGroupRequest = &fHRPGroupRequest return r } -func (r ApiIpamAsnsBulkPartialUpdateRequest) Execute() ([]ASN, *http.Response, error) { - return r.ApiService.IpamAsnsBulkPartialUpdateExecute(r) +func (r ApiIpamFhrpGroupsBulkPartialUpdateRequest) Execute() ([]FHRPGroup, *http.Response, error) { + return r.ApiService.IpamFhrpGroupsBulkPartialUpdateExecute(r) } /* -IpamAsnsBulkPartialUpdate Method for IpamAsnsBulkPartialUpdate +IpamFhrpGroupsBulkPartialUpdate Method for IpamFhrpGroupsBulkPartialUpdate -Patch a list of ASN objects. +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 ApiIpamAsnsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamAsnsBulkPartialUpdate(ctx context.Context) ApiIpamAsnsBulkPartialUpdateRequest { - return ApiIpamAsnsBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkPartialUpdateRequest { + return ApiIpamFhrpGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASN -func (a *IpamAPIService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkPartialUpdateRequest) ([]ASN, *http.Response, error) { +// @return []FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGroupsBulkPartialUpdateRequest) ([]FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRequest == nil { - return localVarReturnValue, nil, reportError("aSNRequest is required and must be specified") + if r.fHRPGroupRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -5019,7 +11446,7 @@ func (a *IpamAPIService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkParti localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRequest + localVarPostBody = r.fHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5071,59 +11498,58 @@ func (a *IpamAPIService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkParti return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRequest *[]ASNRequest +type ApiIpamFhrpGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupRequest *[]FHRPGroupRequest } -func (r ApiIpamAsnsBulkUpdateRequest) ASNRequest(aSNRequest []ASNRequest) ApiIpamAsnsBulkUpdateRequest { - r.aSNRequest = &aSNRequest +func (r ApiIpamFhrpGroupsBulkUpdateRequest) FHRPGroupRequest(fHRPGroupRequest []FHRPGroupRequest) ApiIpamFhrpGroupsBulkUpdateRequest { + r.fHRPGroupRequest = &fHRPGroupRequest return r } -func (r ApiIpamAsnsBulkUpdateRequest) Execute() ([]ASN, *http.Response, error) { - return r.ApiService.IpamAsnsBulkUpdateExecute(r) +func (r ApiIpamFhrpGroupsBulkUpdateRequest) Execute() ([]FHRPGroup, *http.Response, error) { + return r.ApiService.IpamFhrpGroupsBulkUpdateExecute(r) } /* -IpamAsnsBulkUpdate Method for IpamAsnsBulkUpdate +IpamFhrpGroupsBulkUpdate Method for IpamFhrpGroupsBulkUpdate -Put a list of ASN objects. +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 ApiIpamAsnsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsBulkUpdateRequest */ -func (a *IpamAPIService) IpamAsnsBulkUpdate(ctx context.Context) ApiIpamAsnsBulkUpdateRequest { - return ApiIpamAsnsBulkUpdateRequest{ +func (a *IpamAPIService) IpamFhrpGroupsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkUpdateRequest { + return ApiIpamFhrpGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASN -func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateRequest) ([]ASN, *http.Response, error) { +// @return []FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulkUpdateRequest) ([]FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRequest == nil { - return localVarReturnValue, nil, reportError("aSNRequest is required and must be specified") + if r.fHRPGroupRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -5144,7 +11570,7 @@ func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRequest + localVarPostBody = r.fHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5196,59 +11622,58 @@ func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - aSNRequest *ASNRequest +type ApiIpamFhrpGroupsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + fHRPGroupRequest *FHRPGroupRequest } -func (r ApiIpamAsnsCreateRequest) ASNRequest(aSNRequest ASNRequest) ApiIpamAsnsCreateRequest { - r.aSNRequest = &aSNRequest +func (r ApiIpamFhrpGroupsCreateRequest) FHRPGroupRequest(fHRPGroupRequest FHRPGroupRequest) ApiIpamFhrpGroupsCreateRequest { + r.fHRPGroupRequest = &fHRPGroupRequest return r } - -func (r ApiIpamAsnsCreateRequest) Execute() (*ASN, *http.Response, error) { - return r.ApiService.IpamAsnsCreateExecute(r) + +func (r ApiIpamFhrpGroupsCreateRequest) Execute() (*FHRPGroup, *http.Response, error) { + return r.ApiService.IpamFhrpGroupsCreateExecute(r) } /* -IpamAsnsCreate Method for IpamAsnsCreate +IpamFhrpGroupsCreate Method for IpamFhrpGroupsCreate -Post a list of ASN objects. +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 ApiIpamAsnsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsCreateRequest */ -func (a *IpamAPIService) IpamAsnsCreate(ctx context.Context) ApiIpamAsnsCreateRequest { - return ApiIpamAsnsCreateRequest{ +func (a *IpamAPIService) IpamFhrpGroupsCreate(ctx context.Context) ApiIpamFhrpGroupsCreateRequest { + return ApiIpamFhrpGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ASN -func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.aSNRequest == nil { - return localVarReturnValue, nil, reportError("aSNRequest is required and must be specified") + if r.fHRPGroupRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -5269,7 +11694,7 @@ func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRequest + localVarPostBody = r.fHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5321,47 +11746,47 @@ func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnsDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamFhrpGroupsDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamAsnsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamAsnsDestroyExecute(r) +func (r ApiIpamFhrpGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamFhrpGroupsDestroyExecute(r) } /* -IpamAsnsDestroy Method for IpamAsnsDestroy +IpamFhrpGroupsDestroy Method for IpamFhrpGroupsDestroy -Delete a ASN object. +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 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 FHRP group. + @return ApiIpamFhrpGroupsDestroyRequest */ -func (a *IpamAPIService) IpamAsnsDestroy(ctx context.Context, id int32) ApiIpamAsnsDestroyRequest { - return ApiIpamAsnsDestroyRequest{ +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) IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*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.IpamAsnsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -5427,551 +11852,837 @@ func (a *IpamAPIService) IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*h return localVarHTTPResponse, nil } -type ApiIpamAsnsListRequest struct { - 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 - 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 +type ApiIpamFhrpGroupsListRequest struct { + ctx context.Context + ApiService IpamAPI + authKey *[]string + authKeyEmpty *bool + authKeyIc *[]string + authKeyIe *[]string + authKeyIew *[]string + authKeyIsw *[]string + authKeyN *[]string + authKeyNic *[]string + authKeyNie *[]string + authKeyNiew *[]string + authKeyNisw *[]string + authType *[]*string + authTypeEmpty *bool + authTypeIc *[]*string + authTypeIe *[]*string + authTypeIew *[]*string + authTypeIsw *[]*string + authTypeN *[]*string + authTypeNic *[]*string + authTypeNie *[]*string + authTypeNiew *[]*string + authTypeNisw *[]*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 + 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 - offset *int32 - ordering *string - provider *[]string - providerN *[]string - providerId *[]int32 - providerIdN *[]int32 - 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 + 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 + protocolEmpty *bool + protocolIc *[]string + protocolIe *[]string + protocolIew *[]string + protocolIsw *[]string + protocolN *[]string + protocolNic *[]string + protocolNie *[]string + protocolNiew *[]string + protocolNisw *[]string + q *string + relatedIp *[]string + tag *[]string + tagN *[]string + updatedByRequest *string } -func (r ApiIpamAsnsListRequest) Asn(asn []int32) ApiIpamAsnsListRequest { - r.asn = &asn +func (r ApiIpamFhrpGroupsListRequest) AuthKey(authKey []string) ApiIpamFhrpGroupsListRequest { + r.authKey = &authKey return r } -func (r ApiIpamAsnsListRequest) AsnEmpty(asnEmpty bool) ApiIpamAsnsListRequest { - r.asnEmpty = &asnEmpty +func (r ApiIpamFhrpGroupsListRequest) AuthKeyEmpty(authKeyEmpty bool) ApiIpamFhrpGroupsListRequest { + r.authKeyEmpty = &authKeyEmpty return r } -func (r ApiIpamAsnsListRequest) AsnGt(asnGt []int32) ApiIpamAsnsListRequest { - r.asnGt = &asnGt +func (r ApiIpamFhrpGroupsListRequest) AuthKeyIc(authKeyIc []string) ApiIpamFhrpGroupsListRequest { + r.authKeyIc = &authKeyIc return r } -func (r ApiIpamAsnsListRequest) AsnGte(asnGte []int32) ApiIpamAsnsListRequest { - r.asnGte = &asnGte +func (r ApiIpamFhrpGroupsListRequest) AuthKeyIe(authKeyIe []string) ApiIpamFhrpGroupsListRequest { + r.authKeyIe = &authKeyIe return r } -func (r ApiIpamAsnsListRequest) AsnLt(asnLt []int32) ApiIpamAsnsListRequest { - r.asnLt = &asnLt +func (r ApiIpamFhrpGroupsListRequest) AuthKeyIew(authKeyIew []string) ApiIpamFhrpGroupsListRequest { + r.authKeyIew = &authKeyIew return r } -func (r ApiIpamAsnsListRequest) AsnLte(asnLte []int32) ApiIpamAsnsListRequest { - r.asnLte = &asnLte +func (r ApiIpamFhrpGroupsListRequest) AuthKeyIsw(authKeyIsw []string) ApiIpamFhrpGroupsListRequest { + r.authKeyIsw = &authKeyIsw return r } -func (r ApiIpamAsnsListRequest) AsnN(asnN []int32) ApiIpamAsnsListRequest { - r.asnN = &asnN +func (r ApiIpamFhrpGroupsListRequest) AuthKeyN(authKeyN []string) ApiIpamFhrpGroupsListRequest { + r.authKeyN = &authKeyN return r } -func (r ApiIpamAsnsListRequest) Created(created []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) AuthKeyNic(authKeyNic []string) ApiIpamFhrpGroupsListRequest { + r.authKeyNic = &authKeyNic + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthKeyNie(authKeyNie []string) ApiIpamFhrpGroupsListRequest { + r.authKeyNie = &authKeyNie + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthKeyNiew(authKeyNiew []string) ApiIpamFhrpGroupsListRequest { + r.authKeyNiew = &authKeyNiew + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthKeyNisw(authKeyNisw []string) ApiIpamFhrpGroupsListRequest { + r.authKeyNisw = &authKeyNisw + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthType(authType []*string) ApiIpamFhrpGroupsListRequest { + r.authType = &authType + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeEmpty(authTypeEmpty bool) ApiIpamFhrpGroupsListRequest { + r.authTypeEmpty = &authTypeEmpty + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIc(authTypeIc []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeIc = &authTypeIc + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIe(authTypeIe []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeIe = &authTypeIe + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIew(authTypeIew []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeIew = &authTypeIew + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIsw(authTypeIsw []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeIsw = &authTypeIsw + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeN(authTypeN []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeN = &authTypeN + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNic(authTypeNic []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeNic = &authTypeNic + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNie(authTypeNie []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeNie = &authTypeNie + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNiew(authTypeNiew []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeNiew = &authTypeNiew + return r +} + +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNisw(authTypeNisw []*string) ApiIpamFhrpGroupsListRequest { + r.authTypeNisw = &authTypeNisw + return r +} + +func (r ApiIpamFhrpGroupsListRequest) Created(created []time.Time) ApiIpamFhrpGroupsListRequest { r.created = &created return r } -func (r ApiIpamAsnsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamFhrpGroupsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamAsnsListRequest) CreatedGt(createdGt []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) CreatedGt(createdGt []time.Time) ApiIpamFhrpGroupsListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamAsnsListRequest) CreatedGte(createdGte []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) CreatedGte(createdGte []time.Time) ApiIpamFhrpGroupsListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamAsnsListRequest) CreatedLt(createdLt []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) CreatedLt(createdLt []time.Time) ApiIpamFhrpGroupsListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamAsnsListRequest) CreatedLte(createdLte []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) CreatedLte(createdLte []time.Time) ApiIpamFhrpGroupsListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamAsnsListRequest) CreatedN(createdN []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) CreatedN(createdN []time.Time) ApiIpamFhrpGroupsListRequest { r.createdN = &createdN return r } -func (r ApiIpamAsnsListRequest) CreatedByRequest(createdByRequest string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) CreatedByRequest(createdByRequest string) ApiIpamFhrpGroupsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamAsnsListRequest) Description(description []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) Description(description []string) ApiIpamFhrpGroupsListRequest { r.description = &description return r } -func (r ApiIpamAsnsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamFhrpGroupsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamAsnsListRequest) DescriptionIc(descriptionIc []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionIc(descriptionIc []string) ApiIpamFhrpGroupsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamAsnsListRequest) DescriptionIe(descriptionIe []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionIe(descriptionIe []string) ApiIpamFhrpGroupsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamAsnsListRequest) DescriptionIew(descriptionIew []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionIew(descriptionIew []string) ApiIpamFhrpGroupsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamAsnsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamFhrpGroupsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamAsnsListRequest) DescriptionN(descriptionN []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionN(descriptionN []string) ApiIpamFhrpGroupsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamAsnsListRequest) DescriptionNic(descriptionNic []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionNic(descriptionNic []string) ApiIpamFhrpGroupsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamAsnsListRequest) DescriptionNie(descriptionNie []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionNie(descriptionNie []string) ApiIpamFhrpGroupsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamAsnsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamFhrpGroupsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamAsnsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamFhrpGroupsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamAsnsListRequest) Id(id []int32) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) GroupId(groupId []int32) ApiIpamFhrpGroupsListRequest { + r.groupId = &groupId + 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 +} + +func (r ApiIpamFhrpGroupsListRequest) GroupIdGte(groupIdGte []int32) ApiIpamFhrpGroupsListRequest { + r.groupIdGte = &groupIdGte + return r +} + +func (r ApiIpamFhrpGroupsListRequest) GroupIdLt(groupIdLt []int32) ApiIpamFhrpGroupsListRequest { + r.groupIdLt = &groupIdLt + return r +} + +func (r ApiIpamFhrpGroupsListRequest) GroupIdLte(groupIdLte []int32) ApiIpamFhrpGroupsListRequest { + r.groupIdLte = &groupIdLte + return r +} + +func (r ApiIpamFhrpGroupsListRequest) GroupIdN(groupIdN []int32) ApiIpamFhrpGroupsListRequest { + r.groupIdN = &groupIdN + return r +} + +func (r ApiIpamFhrpGroupsListRequest) Id(id []int32) ApiIpamFhrpGroupsListRequest { r.id = &id return r } -func (r ApiIpamAsnsListRequest) IdEmpty(idEmpty bool) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) IdEmpty(idEmpty bool) ApiIpamFhrpGroupsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamAsnsListRequest) IdGt(idGt []int32) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) IdGt(idGt []int32) ApiIpamFhrpGroupsListRequest { r.idGt = &idGt return r } -func (r ApiIpamAsnsListRequest) IdGte(idGte []int32) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) IdGte(idGte []int32) ApiIpamFhrpGroupsListRequest { r.idGte = &idGte return r } -func (r ApiIpamAsnsListRequest) IdLt(idLt []int32) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) IdLt(idLt []int32) ApiIpamFhrpGroupsListRequest { r.idLt = &idLt return r } -func (r ApiIpamAsnsListRequest) IdLte(idLte []int32) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) IdLte(idLte []int32) ApiIpamFhrpGroupsListRequest { r.idLte = &idLte return r } -func (r ApiIpamAsnsListRequest) IdN(idN []int32) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) IdN(idN []int32) ApiIpamFhrpGroupsListRequest { r.idN = &idN return r } -func (r ApiIpamAsnsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamAsnsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamAsnsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamAsnsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamAsnsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamAsnsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamAsnsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamAsnsListRequest) Limit(limit int32) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) Limit(limit int32) ApiIpamFhrpGroupsListRequest { r.limit = &limit return r } -func (r ApiIpamAsnsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamFhrpGroupsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// The initial index from which to return the results. -func (r ApiIpamAsnsListRequest) Offset(offset int32) ApiIpamAsnsListRequest { - r.offset = &offset +func (r ApiIpamFhrpGroupsListRequest) Name(name []string) ApiIpamFhrpGroupsListRequest { + r.name = &name return r } -// Which field to use when ordering the results. -func (r ApiIpamAsnsListRequest) Ordering(ordering string) ApiIpamAsnsListRequest { - r.ordering = &ordering +func (r ApiIpamFhrpGroupsListRequest) NameEmpty(nameEmpty bool) ApiIpamFhrpGroupsListRequest { + r.nameEmpty = &nameEmpty return r } -// Provider (slug) -func (r ApiIpamAsnsListRequest) Provider(provider []string) ApiIpamAsnsListRequest { - r.provider = &provider +func (r ApiIpamFhrpGroupsListRequest) NameIc(nameIc []string) ApiIpamFhrpGroupsListRequest { + r.nameIc = &nameIc return r } -// Provider (slug) -func (r ApiIpamAsnsListRequest) ProviderN(providerN []string) ApiIpamAsnsListRequest { - r.providerN = &providerN +func (r ApiIpamFhrpGroupsListRequest) NameIe(nameIe []string) ApiIpamFhrpGroupsListRequest { + r.nameIe = &nameIe return r } -// Provider (ID) -func (r ApiIpamAsnsListRequest) ProviderId(providerId []int32) ApiIpamAsnsListRequest { - r.providerId = &providerId +func (r ApiIpamFhrpGroupsListRequest) NameIew(nameIew []string) ApiIpamFhrpGroupsListRequest { + r.nameIew = &nameIew return r } -// Provider (ID) -func (r ApiIpamAsnsListRequest) ProviderIdN(providerIdN []int32) ApiIpamAsnsListRequest { - r.providerIdN = &providerIdN +func (r ApiIpamFhrpGroupsListRequest) NameIsw(nameIsw []string) ApiIpamFhrpGroupsListRequest { + r.nameIsw = &nameIsw return r } -// Search -func (r ApiIpamAsnsListRequest) Q(q string) ApiIpamAsnsListRequest { - r.q = &q +func (r ApiIpamFhrpGroupsListRequest) NameN(nameN []string) ApiIpamFhrpGroupsListRequest { + r.nameN = &nameN return r } -// RIR (slug) -func (r ApiIpamAsnsListRequest) Rir(rir []string) ApiIpamAsnsListRequest { - r.rir = &rir +func (r ApiIpamFhrpGroupsListRequest) NameNic(nameNic []string) ApiIpamFhrpGroupsListRequest { + r.nameNic = &nameNic return r } -// RIR (slug) -func (r ApiIpamAsnsListRequest) RirN(rirN []string) ApiIpamAsnsListRequest { - r.rirN = &rirN +func (r ApiIpamFhrpGroupsListRequest) NameNie(nameNie []string) ApiIpamFhrpGroupsListRequest { + r.nameNie = &nameNie return r } -// RIR (ID) -func (r ApiIpamAsnsListRequest) RirId(rirId []int32) ApiIpamAsnsListRequest { - r.rirId = &rirId +func (r ApiIpamFhrpGroupsListRequest) NameNiew(nameNiew []string) ApiIpamFhrpGroupsListRequest { + r.nameNiew = &nameNiew return r } -// RIR (ID) -func (r ApiIpamAsnsListRequest) RirIdN(rirIdN []int32) ApiIpamAsnsListRequest { - r.rirIdN = &rirIdN +func (r ApiIpamFhrpGroupsListRequest) NameNisw(nameNisw []string) ApiIpamFhrpGroupsListRequest { + r.nameNisw = &nameNisw return r } -// Site (slug) -func (r ApiIpamAsnsListRequest) Site(site []string) ApiIpamAsnsListRequest { - r.site = &site +// The initial index from which to return the results. +func (r ApiIpamFhrpGroupsListRequest) Offset(offset int32) ApiIpamFhrpGroupsListRequest { + r.offset = &offset return r } -// Site (slug) -func (r ApiIpamAsnsListRequest) SiteN(siteN []string) ApiIpamAsnsListRequest { - r.siteN = &siteN +// Which field to use when ordering the results. +func (r ApiIpamFhrpGroupsListRequest) Ordering(ordering string) ApiIpamFhrpGroupsListRequest { + r.ordering = &ordering return r } -// Site (ID) -func (r ApiIpamAsnsListRequest) SiteId(siteId []int32) ApiIpamAsnsListRequest { - r.siteId = &siteId +func (r ApiIpamFhrpGroupsListRequest) Protocol(protocol []string) ApiIpamFhrpGroupsListRequest { + r.protocol = &protocol return r } -// Site (ID) -func (r ApiIpamAsnsListRequest) SiteIdN(siteIdN []int32) ApiIpamAsnsListRequest { - r.siteIdN = &siteIdN +func (r ApiIpamFhrpGroupsListRequest) ProtocolEmpty(protocolEmpty bool) ApiIpamFhrpGroupsListRequest { + r.protocolEmpty = &protocolEmpty return r } -func (r ApiIpamAsnsListRequest) Tag(tag []string) ApiIpamAsnsListRequest { - r.tag = &tag +func (r ApiIpamFhrpGroupsListRequest) ProtocolIc(protocolIc []string) ApiIpamFhrpGroupsListRequest { + r.protocolIc = &protocolIc return r } -func (r ApiIpamAsnsListRequest) TagN(tagN []string) ApiIpamAsnsListRequest { - r.tagN = &tagN +func (r ApiIpamFhrpGroupsListRequest) ProtocolIe(protocolIe []string) ApiIpamFhrpGroupsListRequest { + r.protocolIe = &protocolIe return r } -// Tenant (slug) -func (r ApiIpamAsnsListRequest) Tenant(tenant []string) ApiIpamAsnsListRequest { - r.tenant = &tenant +func (r ApiIpamFhrpGroupsListRequest) ProtocolIew(protocolIew []string) ApiIpamFhrpGroupsListRequest { + r.protocolIew = &protocolIew return r } -// Tenant (slug) -func (r ApiIpamAsnsListRequest) TenantN(tenantN []string) ApiIpamAsnsListRequest { - r.tenantN = &tenantN +func (r ApiIpamFhrpGroupsListRequest) ProtocolIsw(protocolIsw []string) ApiIpamFhrpGroupsListRequest { + r.protocolIsw = &protocolIsw return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnsListRequest { - r.tenantGroup = &tenantGroup +func (r ApiIpamFhrpGroupsListRequest) ProtocolN(protocolN []string) ApiIpamFhrpGroupsListRequest { + r.protocolN = &protocolN return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnsListRequest { - r.tenantGroupN = &tenantGroupN +func (r ApiIpamFhrpGroupsListRequest) ProtocolNic(protocolNic []string) ApiIpamFhrpGroupsListRequest { + r.protocolNic = &protocolNic return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnsListRequest { - r.tenantGroupId = &tenantGroupId +func (r ApiIpamFhrpGroupsListRequest) ProtocolNie(protocolNie []string) ApiIpamFhrpGroupsListRequest { + r.protocolNie = &protocolNie return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnsListRequest { - r.tenantGroupIdN = &tenantGroupIdN +func (r ApiIpamFhrpGroupsListRequest) ProtocolNiew(protocolNiew []string) ApiIpamFhrpGroupsListRequest { + r.protocolNiew = &protocolNiew return r } -// Tenant (ID) -func (r ApiIpamAsnsListRequest) TenantId(tenantId []*int32) ApiIpamAsnsListRequest { - r.tenantId = &tenantId +func (r ApiIpamFhrpGroupsListRequest) ProtocolNisw(protocolNisw []string) ApiIpamFhrpGroupsListRequest { + r.protocolNisw = &protocolNisw return r } -// Tenant (ID) -func (r ApiIpamAsnsListRequest) TenantIdN(tenantIdN []*int32) ApiIpamAsnsListRequest { - r.tenantIdN = &tenantIdN +// Search +func (r ApiIpamFhrpGroupsListRequest) Q(q string) ApiIpamFhrpGroupsListRequest { + r.q = &q return r } -func (r ApiIpamAsnsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamAsnsListRequest { +func (r ApiIpamFhrpGroupsListRequest) RelatedIp(relatedIp []string) ApiIpamFhrpGroupsListRequest { + r.relatedIp = &relatedIp + return r +} + +func (r ApiIpamFhrpGroupsListRequest) Tag(tag []string) ApiIpamFhrpGroupsListRequest { + r.tag = &tag + return r +} + +func (r ApiIpamFhrpGroupsListRequest) TagN(tagN []string) ApiIpamFhrpGroupsListRequest { + r.tagN = &tagN + return r +} + +func (r ApiIpamFhrpGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamFhrpGroupsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamAsnsListRequest) Execute() (*PaginatedASNList, *http.Response, error) { - return r.ApiService.IpamAsnsListExecute(r) +func (r ApiIpamFhrpGroupsListRequest) Execute() (*PaginatedFHRPGroupList, *http.Response, error) { + return r.ApiService.IpamFhrpGroupsListExecute(r) } /* -IpamAsnsList Method for IpamAsnsList +IpamFhrpGroupsList Method for IpamFhrpGroupsList -Get a list of ASN objects. +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 ApiIpamAsnsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsListRequest */ -func (a *IpamAPIService) IpamAsnsList(ctx context.Context) ApiIpamAsnsListRequest { - return ApiIpamAsnsListRequest{ +func (a *IpamAPIService) IpamFhrpGroupsList(ctx context.Context) ApiIpamFhrpGroupsListRequest { + return ApiIpamFhrpGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedASNList -func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*PaginatedASNList, *http.Response, error) { +// @return PaginatedFHRPGroupList +func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListRequest) (*PaginatedFHRPGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedASNList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFHRPGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.asn != nil { - t := *r.asn + if r.authKey != nil { + t := *r.authKey if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key", t, "form", "multi") } } - if r.asnEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__empty", r.asnEmpty, "") + if r.authKeyEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__empty", r.authKeyEmpty, "form", "") } - if r.asnGt != nil { - t := *r.asnGt + if r.authKeyIc != nil { + t := *r.authKeyIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ic", t, "form", "multi") } } - if r.asnGte != nil { - t := *r.asnGte + if r.authKeyIe != nil { + t := *r.authKeyIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ie", t, "form", "multi") } } - if r.asnLt != nil { - t := *r.asnLt + if r.authKeyIew != nil { + t := *r.authKeyIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__iew", t, "form", "multi") } } - if r.asnLte != nil { - t := *r.asnLte + if r.authKeyIsw != nil { + t := *r.authKeyIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__isw", t, "form", "multi") } } - if r.asnN != nil { - t := *r.asnN + if r.authKeyN != nil { + t := *r.authKeyN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__n", t, "form", "multi") + } + } + if r.authKeyNic != nil { + t := *r.authKeyNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nic", t, "form", "multi") + } + } + if r.authKeyNie != nil { + t := *r.authKeyNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nie", t, "form", "multi") + } + } + if r.authKeyNiew != nil { + t := *r.authKeyNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__niew", t, "form", "multi") + } + } + if r.authKeyNisw != nil { + t := *r.authKeyNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nisw", t, "form", "multi") + } + } + if r.authType != nil { + t := *r.authType + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "form", "multi") + } + } + if r.authTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__empty", r.authTypeEmpty, "form", "") + } + if r.authTypeIc != nil { + t := *r.authTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", t, "form", "multi") + } + } + if r.authTypeIe != nil { + t := *r.authTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", t, "form", "multi") + } + } + if r.authTypeIew != nil { + t := *r.authTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", t, "form", "multi") + } + } + if r.authTypeIsw != nil { + t := *r.authTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", t, "form", "multi") + } + } + if r.authTypeN != nil { + t := *r.authTypeN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "form", "multi") + } + } + if r.authTypeNic != nil { + t := *r.authTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", t, "form", "multi") + } + } + if r.authTypeNie != nil { + t := *r.authTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", t, "form", "multi") + } + } + if r.authTypeNiew != nil { + t := *r.authTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", t, "form", "multi") + } + } + if r.authTypeNisw != nil { + t := *r.authTypeNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", t, "form", "multi") } } if r.created != nil { @@ -5979,10 +12690,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -5990,10 +12701,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -6001,10 +12712,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -6012,10 +12723,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -6023,10 +12734,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -6034,10 +12745,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -6045,38 +12756,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -6084,10 +12795,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -6095,10 +12806,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -6106,10 +12817,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -6117,10 +12828,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -6128,10 +12839,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -6139,10 +12850,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -6150,10 +12861,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -6161,10 +12872,79 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.groupId != nil { + t := *r.groupId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") + } + } + if r.groupIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__empty", r.groupIdEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gt", t, "form", "multi") + } + } + if r.groupIdGte != nil { + t := *r.groupIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gte", t, "form", "multi") + } + } + if r.groupIdLt != nil { + t := *r.groupIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lt", t, "form", "multi") + } + } + if r.groupIdLte != nil { + t := *r.groupIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lte", t, "form", "multi") + } + } + if r.groupIdN != nil { + t := *r.groupIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -6172,24 +12952,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -6197,10 +12977,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -6208,10 +12988,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -6219,10 +12999,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -6230,10 +13010,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -6241,10 +13021,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -6252,10 +13032,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -6263,10 +13043,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -6274,10 +13054,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -6285,10 +13065,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -6296,10 +13076,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -6307,271 +13087,288 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") + } } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.provider != nil { - t := *r.provider + 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, "provider", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.providerN != nil { - t := *r.providerN + 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, "provider__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.providerId != nil { - t := *r.providerId + 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, "provider_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.providerIdN != nil { - t := *r.providerIdN + 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, "provider_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rir != nil { - t := *r.rir + 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, "rir", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.rirN != nil { - t := *r.rirN + 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, "rir__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.rirId != nil { - t := *r.rirId + 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, "rir_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.rirIdN != nil { - t := *r.rirIdN + 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, "rir_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.protocol != nil { + t := *r.protocol 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", t, "form", "multi") } } - if r.siteId != nil { - t := *r.siteId + if r.protocolEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__empty", r.protocolEmpty, "form", "") + } + if r.protocolIc != nil { + t := *r.protocolIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ic", t, "form", "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + if r.protocolIe != nil { + t := *r.protocolIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ie", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.protocolIew != nil { + t := *r.protocolIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__iew", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.protocolIsw != nil { + t := *r.protocolIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__isw", t, "form", "multi") } } - if r.tenant != nil { - t := *r.tenant + if r.protocolN != nil { + t := *r.protocolN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + if r.protocolNic != nil { + t := *r.protocolNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nic", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + if r.protocolNie != nil { + t := *r.protocolNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nie", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + if r.protocolNiew != nil { + t := *r.protocolNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__niew", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + if r.protocolNisw != nil { + t := *r.protocolNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nisw", t, "form", "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.relatedIp != nil { + t := *r.relatedIp 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_ip", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_ip", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + 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, "tenant_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + 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, "tenant_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6641,56 +13438,55 @@ func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedASNRequest *PatchedASNRequest +type ApiIpamFhrpGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedFHRPGroupRequest *PatchedFHRPGroupRequest } -func (r ApiIpamAsnsPartialUpdateRequest) PatchedASNRequest(patchedASNRequest PatchedASNRequest) ApiIpamAsnsPartialUpdateRequest { - r.patchedASNRequest = &patchedASNRequest +func (r ApiIpamFhrpGroupsPartialUpdateRequest) PatchedFHRPGroupRequest(patchedFHRPGroupRequest PatchedFHRPGroupRequest) ApiIpamFhrpGroupsPartialUpdateRequest { + r.patchedFHRPGroupRequest = &patchedFHRPGroupRequest return r } -func (r ApiIpamAsnsPartialUpdateRequest) Execute() (*ASN, *http.Response, error) { - return r.ApiService.IpamAsnsPartialUpdateExecute(r) +func (r ApiIpamFhrpGroupsPartialUpdateRequest) Execute() (*FHRPGroup, *http.Response, error) { + return r.ApiService.IpamFhrpGroupsPartialUpdateExecute(r) } /* -IpamAsnsPartialUpdate Method for IpamAsnsPartialUpdate +IpamFhrpGroupsPartialUpdate Method for IpamFhrpGroupsPartialUpdate -Patch a ASN object. +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 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 FHRP group. + @return ApiIpamFhrpGroupsPartialUpdateRequest */ -func (a *IpamAPIService) IpamAsnsPartialUpdate(ctx context.Context, id int32) ApiIpamAsnsPartialUpdateRequest { - return ApiIpamAsnsPartialUpdateRequest{ +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 ASN -func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdateRequest) (*ASN, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsPartialUpdateRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -6715,7 +13511,7 @@ func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedASNRequest + localVarPostBody = r.patchedFHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -6767,50 +13563,49 @@ func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnsRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamFhrpGroupsRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamAsnsRetrieveRequest) Execute() (*ASN, *http.Response, error) { - return r.ApiService.IpamAsnsRetrieveExecute(r) +func (r ApiIpamFhrpGroupsRetrieveRequest) Execute() (*FHRPGroup, *http.Response, error) { + return r.ApiService.IpamFhrpGroupsRetrieveExecute(r) } /* -IpamAsnsRetrieve Method for IpamAsnsRetrieve +IpamFhrpGroupsRetrieve Method for IpamFhrpGroupsRetrieve -Get a ASN object. +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 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 FHRP group. + @return ApiIpamFhrpGroupsRetrieveRequest */ -func (a *IpamAPIService) IpamAsnsRetrieve(ctx context.Context, id int32) ApiIpamAsnsRetrieveRequest { - return ApiIpamAsnsRetrieveRequest{ +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 ASN -func (a *IpamAPIService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (*ASN, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrieveRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -6885,63 +13680,62 @@ func (a *IpamAPIService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamAsnsUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - aSNRequest *ASNRequest +type ApiIpamFhrpGroupsUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + fHRPGroupRequest *FHRPGroupRequest } -func (r ApiIpamAsnsUpdateRequest) ASNRequest(aSNRequest ASNRequest) ApiIpamAsnsUpdateRequest { - r.aSNRequest = &aSNRequest +func (r ApiIpamFhrpGroupsUpdateRequest) FHRPGroupRequest(fHRPGroupRequest FHRPGroupRequest) ApiIpamFhrpGroupsUpdateRequest { + r.fHRPGroupRequest = &fHRPGroupRequest return r } -func (r ApiIpamAsnsUpdateRequest) Execute() (*ASN, *http.Response, error) { - return r.ApiService.IpamAsnsUpdateExecute(r) +func (r ApiIpamFhrpGroupsUpdateRequest) Execute() (*FHRPGroup, *http.Response, error) { + return r.ApiService.IpamFhrpGroupsUpdateExecute(r) } /* -IpamAsnsUpdate Method for IpamAsnsUpdate +IpamFhrpGroupsUpdate Method for IpamFhrpGroupsUpdate -Put a ASN object. +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 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 FHRP group. + @return ApiIpamFhrpGroupsUpdateRequest */ -func (a *IpamAPIService) IpamAsnsUpdate(ctx context.Context, id int32) ApiIpamAsnsUpdateRequest { - return ApiIpamAsnsUpdateRequest{ +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 ASN -func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/asns/{id}/" + localVarPath := localBasePath + "/api/ipam/fhrp-groups/{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.aSNRequest == nil { - return localVarReturnValue, nil, reportError("aSNRequest is required and must be specified") + if r.fHRPGroupRequest == nil { + return localVarReturnValue, nil, reportError("fHRPGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -6962,7 +13756,7 @@ func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.aSNRequest + localVarPostBody = r.fHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7014,56 +13808,56 @@ func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest +type ApiIpamIpAddressesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + iPAddressRequest *[]IPAddressRequest } -func (r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest []FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest { - r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest +func (r ApiIpamIpAddressesBulkDestroyRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpAddressesBulkDestroyRequest { + r.iPAddressRequest = &iPAddressRequest return r } -func (r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsBulkDestroyExecute(r) +func (r ApiIpamIpAddressesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamIpAddressesBulkDestroyExecute(r) } /* -IpamFhrpGroupAssignmentsBulkDestroy Method for IpamFhrpGroupAssignmentsBulkDestroy +IpamIpAddressesBulkDestroy Method for IpamIpAddressesBulkDestroy -Delete a list of FHRP group assignment objects. +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 ApiIpamFhrpGroupAssignmentsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesBulkDestroyRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest { - return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest{ +func (a *IpamAPIService) IpamIpAddressesBulkDestroy(ctx context.Context) ApiIpamIpAddressesBulkDestroyRequest { + return ApiIpamIpAddressesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) (*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.IpamFhrpGroupAssignmentsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" + localVarPath := localBasePath + "/api/ipam/ip-addresses/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupAssignmentRequest == nil { - return nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") + if r.iPAddressRequest == nil { + return nil, reportError("iPAddressRequest is required and must be specified") } // to determine the Content-Type header @@ -7084,7 +13878,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupAssignmentRequest + localVarPostBody = r.iPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7127,59 +13921,58 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhr return localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest +type ApiIpamIpAddressesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + iPAddressRequest *[]IPAddressRequest } -func (r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest []FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest { - r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest +func (r ApiIpamIpAddressesBulkPartialUpdateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpAddressesBulkPartialUpdateRequest { + r.iPAddressRequest = &iPAddressRequest return r } -func (r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) Execute() ([]FHRPGroupAssignment, *http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r) +func (r ApiIpamIpAddressesBulkPartialUpdateRequest) Execute() ([]IPAddress, *http.Response, error) { + return r.ApiService.IpamIpAddressesBulkPartialUpdateExecute(r) } /* -IpamFhrpGroupAssignmentsBulkPartialUpdate Method for IpamFhrpGroupAssignmentsBulkPartialUpdate +IpamIpAddressesBulkPartialUpdate Method for IpamIpAddressesBulkPartialUpdate -Patch a list of FHRP group assignment objects. +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 ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest { - return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdate(ctx context.Context) ApiIpamIpAddressesBulkPartialUpdateRequest { + return ApiIpamIpAddressesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroupAssignment -func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { +// @return []IPAddress +func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddressesBulkPartialUpdateRequest) ([]IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroupAssignment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" + localVarPath := localBasePath + "/api/ipam/ip-addresses/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") + if r.iPAddressRequest == nil { + return localVarReturnValue, nil, reportError("iPAddressRequest is required and must be specified") } // to determine the Content-Type header @@ -7200,7 +13993,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiI localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupAssignmentRequest + localVarPostBody = r.iPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7252,59 +14045,58 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiI return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest +type ApiIpamIpAddressesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + iPAddressRequest *[]IPAddressRequest } -func (r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest []FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest { - r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest +func (r ApiIpamIpAddressesBulkUpdateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpAddressesBulkUpdateRequest { + r.iPAddressRequest = &iPAddressRequest return r } -func (r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) Execute() ([]FHRPGroupAssignment, *http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsBulkUpdateExecute(r) +func (r ApiIpamIpAddressesBulkUpdateRequest) Execute() ([]IPAddress, *http.Response, error) { + return r.ApiService.IpamIpAddressesBulkUpdateExecute(r) } /* -IpamFhrpGroupAssignmentsBulkUpdate Method for IpamFhrpGroupAssignmentsBulkUpdate +IpamIpAddressesBulkUpdate Method for IpamIpAddressesBulkUpdate -Put a list of FHRP group assignment objects. +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 ApiIpamFhrpGroupAssignmentsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesBulkUpdateRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest { - return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest{ +func (a *IpamAPIService) IpamIpAddressesBulkUpdate(ctx context.Context) ApiIpamIpAddressesBulkUpdateRequest { + return ApiIpamIpAddressesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroupAssignment -func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { +// @return []IPAddress +func (a *IpamAPIService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBulkUpdateRequest) ([]IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroupAssignment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" + localVarPath := localBasePath + "/api/ipam/ip-addresses/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") + if r.iPAddressRequest == nil { + return localVarReturnValue, nil, reportError("iPAddressRequest is required and must be specified") } // to determine the Content-Type header @@ -7325,7 +14117,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrp localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupAssignmentRequest + localVarPostBody = r.iPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7377,59 +14169,58 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest +type ApiIpamIpAddressesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + writableIPAddressRequest *WritableIPAddressRequest } -func (r ApiIpamFhrpGroupAssignmentsCreateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsCreateRequest { - r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest +func (r ApiIpamIpAddressesCreateRequest) WritableIPAddressRequest(writableIPAddressRequest WritableIPAddressRequest) ApiIpamIpAddressesCreateRequest { + r.writableIPAddressRequest = &writableIPAddressRequest return r } -func (r ApiIpamFhrpGroupAssignmentsCreateRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsCreateExecute(r) +func (r ApiIpamIpAddressesCreateRequest) Execute() (*IPAddress, *http.Response, error) { + return r.ApiService.IpamIpAddressesCreateExecute(r) } /* -IpamFhrpGroupAssignmentsCreate Method for IpamFhrpGroupAssignmentsCreate +IpamIpAddressesCreate Method for IpamIpAddressesCreate -Post a list of FHRP group assignment objects. +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 ApiIpamFhrpGroupAssignmentsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesCreateRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreate(ctx context.Context) ApiIpamFhrpGroupAssignmentsCreateRequest { - return ApiIpamFhrpGroupAssignmentsCreateRequest{ +func (a *IpamAPIService) IpamIpAddressesCreate(ctx context.Context) ApiIpamIpAddressesCreateRequest { + return ApiIpamIpAddressesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return FHRPGroupAssignment -func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGroupAssignmentsCreateRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreateRequest) (*IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" + localVarPath := localBasePath + "/api/ipam/ip-addresses/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") + if r.writableIPAddressRequest == nil { + return localVarReturnValue, nil, reportError("writableIPAddressRequest is required and must be specified") } // to determine the Content-Type header @@ -7450,7 +14241,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGrou localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupAssignmentRequest + localVarPostBody = r.writableIPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -7502,47 +14293,47 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGrou return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamIpAddressesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamFhrpGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsDestroyExecute(r) +func (r ApiIpamIpAddressesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamIpAddressesDestroyExecute(r) } /* -IpamFhrpGroupAssignmentsDestroy Method for IpamFhrpGroupAssignmentsDestroy +IpamIpAddressesDestroy Method for IpamIpAddressesDestroy -Delete a FHRP group assignment object. +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 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 IP address. + @return ApiIpamIpAddressesDestroyRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsDestroyRequest { - return ApiIpamFhrpGroupAssignmentsDestroyRequest{ +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) IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGroupAssignmentsDestroyRequest) (*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.IpamFhrpGroupAssignmentsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{id}/" + localVarPath := localBasePath + "/api/ipam/ip-addresses/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -7608,789 +14399,1913 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGro return localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsListRequest struct { - 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 - 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 +type ApiIpamIpAddressesListRequest struct { + ctx context.Context + ApiService IpamAPI + address *[]string + assigned *bool + assignedObjectId *[]int32 + assignedObjectIdEmpty *bool + assignedObjectIdGt *[]int32 + assignedObjectIdGte *[]int32 + assignedObjectIdLt *[]int32 + assignedObjectIdLte *[]int32 + assignedObjectIdN *[]int32 + assignedObjectType *int32 + assignedObjectTypeN *int32 + assignedToInterface *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 + 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 *[]int32 + maskLengthGte *float32 + maskLengthLte *float32 modifiedByRequest *string - offset *int32 - ordering *string - priority *[]int32 - priorityEmpty *bool - priorityGt *[]int32 - priorityGte *[]int32 - priorityLt *[]int32 - priorityLte *[]int32 - priorityN *[]int32 - updatedByRequest *string - virtualMachine *[]string - virtualMachineId *[]int32 + natInsideId *[]int32 + natInsideIdN *[]int32 + offset *int32 + ordering *string + parent *[]string + presentInVrf *string + presentInVrfId *string + q *string + role *[]*string + roleEmpty *bool + roleIc *[]*string + roleIe *[]*string + roleIew *[]*string + roleIsw *[]*string + roleN *[]*string + roleNic *[]*string + roleNie *[]*string + roleNiew *[]*string + roleNisw *[]*string + serviceId *[]int32 + serviceIdN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + 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 ApiIpamFhrpGroupAssignmentsListRequest) Created(created []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) Address(address []string) ApiIpamIpAddressesListRequest { + r.address = &address + return r +} + +// Is assigned +func (r ApiIpamIpAddressesListRequest) Assigned(assigned bool) ApiIpamIpAddressesListRequest { + r.assigned = &assigned + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectId(assignedObjectId []int32) ApiIpamIpAddressesListRequest { + r.assignedObjectId = &assignedObjectId + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectIdEmpty(assignedObjectIdEmpty bool) ApiIpamIpAddressesListRequest { + r.assignedObjectIdEmpty = &assignedObjectIdEmpty + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectIdGt(assignedObjectIdGt []int32) ApiIpamIpAddressesListRequest { + r.assignedObjectIdGt = &assignedObjectIdGt + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectIdGte(assignedObjectIdGte []int32) ApiIpamIpAddressesListRequest { + r.assignedObjectIdGte = &assignedObjectIdGte + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectIdLt(assignedObjectIdLt []int32) ApiIpamIpAddressesListRequest { + r.assignedObjectIdLt = &assignedObjectIdLt + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectIdLte(assignedObjectIdLte []int32) ApiIpamIpAddressesListRequest { + r.assignedObjectIdLte = &assignedObjectIdLte + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectIdN(assignedObjectIdN []int32) ApiIpamIpAddressesListRequest { + r.assignedObjectIdN = &assignedObjectIdN + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectType(assignedObjectType int32) ApiIpamIpAddressesListRequest { + r.assignedObjectType = &assignedObjectType + return r +} + +func (r ApiIpamIpAddressesListRequest) AssignedObjectTypeN(assignedObjectTypeN int32) ApiIpamIpAddressesListRequest { + r.assignedObjectTypeN = &assignedObjectTypeN + return r +} + +// Is assigned to an interface +func (r ApiIpamIpAddressesListRequest) AssignedToInterface(assignedToInterface bool) ApiIpamIpAddressesListRequest { + r.assignedToInterface = &assignedToInterface + return r +} + +func (r ApiIpamIpAddressesListRequest) Created(created []time.Time) ApiIpamIpAddressesListRequest { r.created = &created return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamIpAddressesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) CreatedGt(createdGt []time.Time) ApiIpamIpAddressesListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedGte(createdGte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) CreatedGte(createdGte []time.Time) ApiIpamIpAddressesListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedLt(createdLt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) CreatedLt(createdLt []time.Time) ApiIpamIpAddressesListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedLte(createdLte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) CreatedLte(createdLte []time.Time) ApiIpamIpAddressesListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedN(createdN []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) CreatedN(createdN []time.Time) ApiIpamIpAddressesListRequest { r.createdN = &createdN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedByRequest(createdByRequest string) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) CreatedByRequest(createdByRequest string) ApiIpamIpAddressesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) Device(device []string) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) Description(description []string) ApiIpamIpAddressesListRequest { + r.description = &description + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamIpAddressesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionIc(descriptionIc []string) ApiIpamIpAddressesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionIe(descriptionIe []string) ApiIpamIpAddressesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionIew(descriptionIew []string) ApiIpamIpAddressesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamIpAddressesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionN(descriptionN []string) ApiIpamIpAddressesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionNic(descriptionNic []string) ApiIpamIpAddressesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionNie(descriptionNie []string) ApiIpamIpAddressesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamIpAddressesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiIpamIpAddressesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamIpAddressesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiIpamIpAddressesListRequest) Device(device []string) ApiIpamIpAddressesListRequest { r.device = &device return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) DeviceId(deviceId []int32) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) DeviceId(deviceId []int32) ApiIpamIpAddressesListRequest { r.deviceId = &deviceId return r } -// Group (ID) -func (r ApiIpamFhrpGroupAssignmentsListRequest) GroupId(groupId []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.groupId = &groupId +func (r ApiIpamIpAddressesListRequest) DnsName(dnsName []string) ApiIpamIpAddressesListRequest { + r.dnsName = &dnsName return r } -// Group (ID) -func (r ApiIpamFhrpGroupAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.groupIdN = &groupIdN +func (r ApiIpamIpAddressesListRequest) DnsNameEmpty(dnsNameEmpty bool) ApiIpamIpAddressesListRequest { + r.dnsNameEmpty = &dnsNameEmpty return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) Id(id []int32) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) DnsNameIc(dnsNameIc []string) ApiIpamIpAddressesListRequest { + r.dnsNameIc = &dnsNameIc + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameIe(dnsNameIe []string) ApiIpamIpAddressesListRequest { + r.dnsNameIe = &dnsNameIe + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameIew(dnsNameIew []string) ApiIpamIpAddressesListRequest { + r.dnsNameIew = &dnsNameIew + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameIsw(dnsNameIsw []string) ApiIpamIpAddressesListRequest { + r.dnsNameIsw = &dnsNameIsw + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameN(dnsNameN []string) ApiIpamIpAddressesListRequest { + r.dnsNameN = &dnsNameN + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameNic(dnsNameNic []string) ApiIpamIpAddressesListRequest { + r.dnsNameNic = &dnsNameNic + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameNie(dnsNameNie []string) ApiIpamIpAddressesListRequest { + r.dnsNameNie = &dnsNameNie + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameNiew(dnsNameNiew []string) ApiIpamIpAddressesListRequest { + r.dnsNameNiew = &dnsNameNiew + return r +} + +func (r ApiIpamIpAddressesListRequest) DnsNameNisw(dnsNameNisw []string) ApiIpamIpAddressesListRequest { + r.dnsNameNisw = &dnsNameNisw + return r +} + +func (r ApiIpamIpAddressesListRequest) Family(family float32) ApiIpamIpAddressesListRequest { + r.family = &family + return r +} + +// FHRP group (ID) +func (r ApiIpamIpAddressesListRequest) FhrpgroupId(fhrpgroupId []int32) ApiIpamIpAddressesListRequest { + r.fhrpgroupId = &fhrpgroupId + return r +} + +// FHRP group (ID) +func (r ApiIpamIpAddressesListRequest) FhrpgroupIdN(fhrpgroupIdN []int32) ApiIpamIpAddressesListRequest { + r.fhrpgroupIdN = &fhrpgroupIdN + return r +} + +func (r ApiIpamIpAddressesListRequest) Id(id []int32) ApiIpamIpAddressesListRequest { r.id = &id return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { +func (r ApiIpamIpAddressesListRequest) IdEmpty(idEmpty bool) ApiIpamIpAddressesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) IdGt(idGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.idGt = &idGt +func (r ApiIpamIpAddressesListRequest) IdGt(idGt []int32) ApiIpamIpAddressesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiIpamIpAddressesListRequest) IdGte(idGte []int32) ApiIpamIpAddressesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiIpamIpAddressesListRequest) IdLt(idLt []int32) ApiIpamIpAddressesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiIpamIpAddressesListRequest) IdLte(idLte []int32) ApiIpamIpAddressesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiIpamIpAddressesListRequest) IdN(idN []int32) ApiIpamIpAddressesListRequest { + r.idN = &idN + return r +} + +// Interface (name) +func (r ApiIpamIpAddressesListRequest) Interface_(interface_ []string) ApiIpamIpAddressesListRequest { + r.interface_ = &interface_ + return r +} + +// Interface (name) +func (r ApiIpamIpAddressesListRequest) InterfaceN(interfaceN []string) ApiIpamIpAddressesListRequest { + r.interfaceN = &interfaceN + return r +} + +// Interface (ID) +func (r ApiIpamIpAddressesListRequest) InterfaceId(interfaceId []int32) ApiIpamIpAddressesListRequest { + r.interfaceId = &interfaceId + return r +} + +// Interface (ID) +func (r ApiIpamIpAddressesListRequest) InterfaceIdN(interfaceIdN []int32) ApiIpamIpAddressesListRequest { + r.interfaceIdN = &interfaceIdN + return r +} + +func (r ApiIpamIpAddressesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamIpAddressesListRequest { + r.lastUpdated = &lastUpdated + 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 +} + +func (r ApiIpamIpAddressesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamIpAddressesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiIpamIpAddressesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamIpAddressesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiIpamIpAddressesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamIpAddressesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiIpamIpAddressesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamIpAddressesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiIpamIpAddressesListRequest) Limit(limit int32) ApiIpamIpAddressesListRequest { + r.limit = &limit + return r +} + +func (r ApiIpamIpAddressesListRequest) MaskLength(maskLength []int32) ApiIpamIpAddressesListRequest { + r.maskLength = &maskLength + return r +} + +func (r ApiIpamIpAddressesListRequest) MaskLengthGte(maskLengthGte float32) ApiIpamIpAddressesListRequest { + r.maskLengthGte = &maskLengthGte + return r +} + +func (r ApiIpamIpAddressesListRequest) MaskLengthLte(maskLengthLte float32) ApiIpamIpAddressesListRequest { + r.maskLengthLte = &maskLengthLte + return r +} + +func (r ApiIpamIpAddressesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamIpAddressesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// NAT inside IP address (ID) +func (r ApiIpamIpAddressesListRequest) NatInsideId(natInsideId []int32) ApiIpamIpAddressesListRequest { + r.natInsideId = &natInsideId + return r +} + +// NAT inside IP address (ID) +func (r ApiIpamIpAddressesListRequest) NatInsideIdN(natInsideIdN []int32) ApiIpamIpAddressesListRequest { + r.natInsideIdN = &natInsideIdN + return r +} + +// The initial index from which to return the results. +func (r ApiIpamIpAddressesListRequest) Offset(offset int32) ApiIpamIpAddressesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiIpamIpAddressesListRequest) Ordering(ordering string) ApiIpamIpAddressesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiIpamIpAddressesListRequest) Parent(parent []string) ApiIpamIpAddressesListRequest { + r.parent = &parent + return r +} + +func (r ApiIpamIpAddressesListRequest) PresentInVrf(presentInVrf string) ApiIpamIpAddressesListRequest { + r.presentInVrf = &presentInVrf + return r +} + +func (r ApiIpamIpAddressesListRequest) PresentInVrfId(presentInVrfId string) ApiIpamIpAddressesListRequest { + r.presentInVrfId = &presentInVrfId + return r +} + +// Search +func (r ApiIpamIpAddressesListRequest) Q(q string) ApiIpamIpAddressesListRequest { + r.q = &q + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) Role(role []*string) ApiIpamIpAddressesListRequest { + r.role = &role + return r +} + +func (r ApiIpamIpAddressesListRequest) RoleEmpty(roleEmpty bool) ApiIpamIpAddressesListRequest { + r.roleEmpty = &roleEmpty + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleIc(roleIc []*string) ApiIpamIpAddressesListRequest { + r.roleIc = &roleIc + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleIe(roleIe []*string) ApiIpamIpAddressesListRequest { + r.roleIe = &roleIe + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleIew(roleIew []*string) ApiIpamIpAddressesListRequest { + r.roleIew = &roleIew + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleIsw(roleIsw []*string) ApiIpamIpAddressesListRequest { + r.roleIsw = &roleIsw + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleN(roleN []*string) ApiIpamIpAddressesListRequest { + r.roleN = &roleN + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleNic(roleNic []*string) ApiIpamIpAddressesListRequest { + r.roleNic = &roleNic + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleNie(roleNie []*string) ApiIpamIpAddressesListRequest { + r.roleNie = &roleNie + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleNiew(roleNiew []*string) ApiIpamIpAddressesListRequest { + r.roleNiew = &roleNiew + return r +} + +// The functional role of this IP +func (r ApiIpamIpAddressesListRequest) RoleNisw(roleNisw []*string) ApiIpamIpAddressesListRequest { + r.roleNisw = &roleNisw return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) IdGte(idGte []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.idGte = &idGte +// Service (ID) +func (r ApiIpamIpAddressesListRequest) ServiceId(serviceId []int32) ApiIpamIpAddressesListRequest { + r.serviceId = &serviceId return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) IdLt(idLt []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.idLt = &idLt +// Service (ID) +func (r ApiIpamIpAddressesListRequest) ServiceIdN(serviceIdN []int32) ApiIpamIpAddressesListRequest { + r.serviceIdN = &serviceIdN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) IdLte(idLte []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.idLte = &idLte +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) Status(status []string) ApiIpamIpAddressesListRequest { + r.status = &status return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) IdN(idN []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.idN = &idN +func (r ApiIpamIpAddressesListRequest) StatusEmpty(statusEmpty bool) ApiIpamIpAddressesListRequest { + r.statusEmpty = &statusEmpty return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceId(interfaceId []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceId = &interfaceId +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusIc(statusIc []string) ApiIpamIpAddressesListRequest { + r.statusIc = &statusIc return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdEmpty(interfaceIdEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceIdEmpty = &interfaceIdEmpty +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusIe(statusIe []string) ApiIpamIpAddressesListRequest { + r.statusIe = &statusIe return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdGt(interfaceIdGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceIdGt = &interfaceIdGt +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusIew(statusIew []string) ApiIpamIpAddressesListRequest { + r.statusIew = &statusIew return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdGte(interfaceIdGte []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceIdGte = &interfaceIdGte +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusIsw(statusIsw []string) ApiIpamIpAddressesListRequest { + r.statusIsw = &statusIsw return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdLt(interfaceIdLt []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceIdLt = &interfaceIdLt +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusN(statusN []string) ApiIpamIpAddressesListRequest { + r.statusN = &statusN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdLte(interfaceIdLte []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceIdLte = &interfaceIdLte +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusNic(statusNic []string) ApiIpamIpAddressesListRequest { + r.statusNic = &statusNic return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdN(interfaceIdN []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceIdN = &interfaceIdN +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusNie(statusNie []string) ApiIpamIpAddressesListRequest { + r.statusNie = &statusNie return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceType(interfaceType string) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceType = &interfaceType +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusNiew(statusNiew []string) ApiIpamIpAddressesListRequest { + r.statusNiew = &statusNiew return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceTypeN(interfaceTypeN string) ApiIpamFhrpGroupAssignmentsListRequest { - r.interfaceTypeN = &interfaceTypeN +// The operational status of this IP +func (r ApiIpamIpAddressesListRequest) StatusNisw(statusNisw []string) ApiIpamIpAddressesListRequest { + r.statusNisw = &statusNisw return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { - r.lastUpdated = &lastUpdated +func (r ApiIpamIpAddressesListRequest) Tag(tag []string) ApiIpamIpAddressesListRequest { + r.tag = &tag return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiIpamIpAddressesListRequest) TagN(tagN []string) ApiIpamIpAddressesListRequest { + r.tagN = &tagN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +// Tenant (slug) +func (r ApiIpamIpAddressesListRequest) Tenant(tenant []string) ApiIpamIpAddressesListRequest { + r.tenant = &tenant return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +// Tenant (slug) +func (r ApiIpamIpAddressesListRequest) TenantN(tenantN []string) ApiIpamIpAddressesListRequest { + r.tenantN = &tenantN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpAddressesListRequest { + r.tenantGroup = &tenantGroup return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpAddressesListRequest { + r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpAddressesListRequest { + r.tenantGroupId = &tenantGroupId return r } -// Number of results to return per page. -func (r ApiIpamFhrpGroupAssignmentsListRequest) Limit(limit int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.limit = &limit +func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpAddressesListRequest { + r.tenantGroupIdN = &tenantGroupIdN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamFhrpGroupAssignmentsListRequest { - r.modifiedByRequest = &modifiedByRequest +// Tenant (ID) +func (r ApiIpamIpAddressesListRequest) TenantId(tenantId []*int32) ApiIpamIpAddressesListRequest { + r.tenantId = &tenantId return r } -// The initial index from which to return the results. -func (r ApiIpamFhrpGroupAssignmentsListRequest) Offset(offset int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.offset = &offset +// Tenant (ID) +func (r ApiIpamIpAddressesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamIpAddressesListRequest { + r.tenantIdN = &tenantIdN return r } -// Which field to use when ordering the results. -func (r ApiIpamFhrpGroupAssignmentsListRequest) Ordering(ordering string) ApiIpamFhrpGroupAssignmentsListRequest { - r.ordering = &ordering +func (r ApiIpamIpAddressesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamIpAddressesListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) Priority(priority []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.priority = &priority +func (r ApiIpamIpAddressesListRequest) VirtualMachine(virtualMachine []string) ApiIpamIpAddressesListRequest { + r.virtualMachine = &virtualMachine return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityEmpty(priorityEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { - r.priorityEmpty = &priorityEmpty +func (r ApiIpamIpAddressesListRequest) VirtualMachineId(virtualMachineId []int32) ApiIpamIpAddressesListRequest { + r.virtualMachineId = &virtualMachineId return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityGt(priorityGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.priorityGt = &priorityGt +// VM interface (name) +func (r ApiIpamIpAddressesListRequest) Vminterface(vminterface []string) ApiIpamIpAddressesListRequest { + r.vminterface = &vminterface return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityGte(priorityGte []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.priorityGte = &priorityGte +// VM interface (name) +func (r ApiIpamIpAddressesListRequest) VminterfaceN(vminterfaceN []string) ApiIpamIpAddressesListRequest { + r.vminterfaceN = &vminterfaceN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityLt(priorityLt []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.priorityLt = &priorityLt +// VM interface (ID) +func (r ApiIpamIpAddressesListRequest) VminterfaceId(vminterfaceId []int32) ApiIpamIpAddressesListRequest { + r.vminterfaceId = &vminterfaceId return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityLte(priorityLte []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.priorityLte = &priorityLte +// VM interface (ID) +func (r ApiIpamIpAddressesListRequest) VminterfaceIdN(vminterfaceIdN []int32) ApiIpamIpAddressesListRequest { + r.vminterfaceIdN = &vminterfaceIdN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityN(priorityN []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.priorityN = &priorityN +// VRF (RD) +func (r ApiIpamIpAddressesListRequest) Vrf(vrf []*string) ApiIpamIpAddressesListRequest { + r.vrf = &vrf return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamFhrpGroupAssignmentsListRequest { - r.updatedByRequest = &updatedByRequest +// VRF (RD) +func (r ApiIpamIpAddressesListRequest) VrfN(vrfN []*string) ApiIpamIpAddressesListRequest { + r.vrfN = &vrfN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) VirtualMachine(virtualMachine []string) ApiIpamFhrpGroupAssignmentsListRequest { - r.virtualMachine = &virtualMachine +// VRF +func (r ApiIpamIpAddressesListRequest) VrfId(vrfId []*int32) ApiIpamIpAddressesListRequest { + r.vrfId = &vrfId return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) VirtualMachineId(virtualMachineId []int32) ApiIpamFhrpGroupAssignmentsListRequest { - r.virtualMachineId = &virtualMachineId +// VRF +func (r ApiIpamIpAddressesListRequest) VrfIdN(vrfIdN []*int32) ApiIpamIpAddressesListRequest { + r.vrfIdN = &vrfIdN return r } -func (r ApiIpamFhrpGroupAssignmentsListRequest) Execute() (*PaginatedFHRPGroupAssignmentList, *http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsListExecute(r) +func (r ApiIpamIpAddressesListRequest) Execute() (*PaginatedIPAddressList, *http.Response, error) { + return r.ApiService.IpamIpAddressesListExecute(r) } /* -IpamFhrpGroupAssignmentsList Method for IpamFhrpGroupAssignmentsList +IpamIpAddressesList Method for IpamIpAddressesList -Get a list of FHRP group assignment objects. +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 ApiIpamFhrpGroupAssignmentsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesListRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsList(ctx context.Context) ApiIpamFhrpGroupAssignmentsListRequest { - return ApiIpamFhrpGroupAssignmentsListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIPAddressList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/ip-addresses/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.address != nil { + t := *r.address + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "address", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "address", t, "form", "multi") + } + } + if r.assigned != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned", r.assigned, "form", "") + } + if r.assignedObjectId != nil { + t := *r.assignedObjectId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", t, "form", "multi") + } + } + if r.assignedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__empty", r.assignedObjectIdEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "form", "multi") + } + } + if r.assignedObjectIdGte != nil { + t := *r.assignedObjectIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "form", "multi") + } + } + if r.assignedObjectIdLt != nil { + t := *r.assignedObjectIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "form", "multi") + } + } + if r.assignedObjectIdLte != nil { + t := *r.assignedObjectIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "form", "multi") + } + } + if r.assignedObjectIdN != nil { + t := *r.assignedObjectIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "form", "multi") + } + } + if r.assignedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type", r.assignedObjectType, "form", "") + } + if r.assignedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type__n", r.assignedObjectTypeN, "form", "") + } + if r.assignedToInterface != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_to_interface", r.assignedToInterface, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.device != nil { + t := *r.device + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") + } + } + if r.dnsName != nil { + t := *r.dnsName + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name", t, "form", "multi") + } + } + if r.dnsNameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__empty", r.dnsNameEmpty, "form", "") + } + if r.dnsNameIc != nil { + t := *r.dnsNameIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ic", t, "form", "multi") + } + } + if r.dnsNameIe != nil { + t := *r.dnsNameIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ie", t, "form", "multi") + } + } + if r.dnsNameIew != nil { + t := *r.dnsNameIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__iew", t, "form", "multi") + } + } + if r.dnsNameIsw != nil { + t := *r.dnsNameIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__isw", t, "form", "multi") + } + } + if r.dnsNameN != nil { + t := *r.dnsNameN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__n", t, "form", "multi") + } + } + if r.dnsNameNic != nil { + t := *r.dnsNameNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nic", t, "form", "multi") + } + } + if r.dnsNameNie != nil { + t := *r.dnsNameNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nie", t, "form", "multi") + } + } + if r.dnsNameNiew != nil { + t := *r.dnsNameNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__niew", t, "form", "multi") + } + } + if r.dnsNameNisw != nil { + t := *r.dnsNameNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nisw", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedFHRPGroupAssignmentList -func (a *IpamAPIService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupAssignmentsListRequest) (*PaginatedFHRPGroupAssignmentList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFHRPGroupAssignmentList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.family != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "form", "") } - - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.created != nil { - t := *r.created + if r.fhrpgroupId != nil { + t := *r.fhrpgroupId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.fhrpgroupIdN != nil { + t := *r.fhrpgroupIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id__n", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } } - if r.device != nil { - t := *r.device + if r.interface_ != nil { + t := *r.interface_ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "form", "multi") } } - if r.deviceId != nil { - t := *r.deviceId + if r.interfaceN != nil { + t := *r.interfaceN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "form", "multi") } } - if r.groupId != nil { - t := *r.groupId + if r.interfaceId != nil { + t := *r.interfaceId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") } } - if r.groupIdN != nil { - t := *r.groupIdN + if r.interfaceIdN != nil { + t := *r.interfaceIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "multi") } } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") + } } - if r.idGt != nil { - t := *r.idGt + 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, "id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + 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, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + 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, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.interfaceId != nil { - t := *r.interfaceId + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.maskLength != nil { + t := *r.maskLength 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", t, "form", "multi") } } - if r.interfaceIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__empty", r.interfaceIdEmpty, "") + if r.maskLengthGte != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__gte", r.maskLengthGte, "form", "") } - if r.interfaceIdGt != nil { - t := *r.interfaceIdGt + if r.maskLengthLte != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__lte", r.maskLengthLte, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.natInsideId != nil { + t := *r.natInsideId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id", t, "form", "multi") } } - if r.interfaceIdGte != nil { - t := *r.interfaceIdGte + if r.natInsideIdN != nil { + t := *r.natInsideIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id__n", t, "form", "multi") } } - if r.interfaceIdLt != nil { - t := *r.interfaceIdLt + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + 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, "interface_id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi") } } - if r.interfaceIdLte != nil { - t := *r.interfaceIdLte + if r.presentInVrf != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf", r.presentInVrf, "form", "") + } + if r.presentInVrfId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf_id", r.presentInVrfId, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "interface_id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } - if r.interfaceIdN != nil { - t := *r.interfaceIdN + if r.roleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__empty", r.roleEmpty, "form", "") + } + if r.roleIc != nil { + t := *r.roleIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", t, "form", "multi") } } - if r.interfaceType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_type", r.interfaceType, "") + if r.roleIe != nil { + t := *r.roleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", t, "form", "multi") + } } - if r.interfaceTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_type__n", r.interfaceTypeN, "") + if r.roleIew != nil { + t := *r.roleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", t, "form", "multi") + } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.roleIsw != nil { + t := *r.roleIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.roleNic != nil { + t := *r.roleNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.roleNie != nil { + t := *r.roleNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.roleNiew != nil { + t := *r.roleNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.roleNisw != nil { + t := *r.roleNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.serviceId != nil { + t := *r.serviceId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + if r.serviceIdN != nil { + t := *r.serviceIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", t, "form", "multi") + } } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } } - if r.priority != nil { - t := *r.priority + if r.statusIe != nil { + t := *r.statusIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.priorityEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__empty", r.priorityEmpty, "") + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } } - if r.priorityGt != nil { - t := *r.priorityGt + if r.statusIsw != nil { + t := *r.statusIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.priorityGte != nil { - t := *r.priorityGte + if r.statusN != nil { + t := *r.statusN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.priorityLt != nil { - t := *r.priorityLt + if r.statusNic != nil { + t := *r.statusNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.priorityLte != nil { - t := *r.priorityLte + if r.statusNie != nil { + t := *r.statusNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.priorityN != nil { - t := *r.priorityN + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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, "priority__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.virtualMachine != nil { t := *r.virtualMachine 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi") } } if r.virtualMachineId != nil { @@ -8398,10 +16313,98 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi") + } + } + if r.vminterface != nil { + t := *r.vminterface + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "form", "multi") + } + } + if r.vminterfaceN != nil { + t := *r.vminterfaceN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "form", "multi") + } + } + if r.vminterfaceId != nil { + t := *r.vminterfaceId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "form", "multi") + } + } + if r.vminterfaceIdN != nil { + t := *r.vminterfaceIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "form", "multi") + } + } + if r.vrf != nil { + t := *r.vrf + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "form", "multi") + } + } + if r.vrfN != nil { + t := *r.vrfN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "form", "multi") + } + } + if r.vrfId != nil { + t := *r.vrfId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "form", "multi") + } + } + if r.vrfIdN != nil { + t := *r.vrfIdN + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -8472,56 +16475,174 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedFHRPGroupAssignmentRequest *PatchedFHRPGroupAssignmentRequest -} - -func (r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) PatchedFHRPGroupAssignmentRequest(patchedFHRPGroupAssignmentRequest PatchedFHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest { - r.patchedFHRPGroupAssignmentRequest = &patchedFHRPGroupAssignmentRequest - return r +type ApiIpamIpAddressesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedWritableIPAddressRequest *PatchedWritableIPAddressRequest +} + +func (r ApiIpamIpAddressesPartialUpdateRequest) PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest PatchedWritableIPAddressRequest) ApiIpamIpAddressesPartialUpdateRequest { + r.patchedWritableIPAddressRequest = &patchedWritableIPAddressRequest + return r +} + +func (r ApiIpamIpAddressesPartialUpdateRequest) Execute() (*IPAddress, *http.Response, error) { + return r.ApiService.IpamIpAddressesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamIpAddressesPartialUpdate(ctx context.Context, id int32) ApiIpamIpAddressesPartialUpdateRequest { + return ApiIpamIpAddressesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddressesPartialUpdateRequest) (*IPAddress, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/ip-addresses/{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.patchedWritableIPAddressRequest + 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 ApiIpamIpAddressesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsPartialUpdateExecute(r) +func (r ApiIpamIpAddressesRetrieveRequest) Execute() (*IPAddress, *http.Response, error) { + return r.ApiService.IpamIpAddressesRetrieveExecute(r) } /* -IpamFhrpGroupAssignmentsPartialUpdate Method for IpamFhrpGroupAssignmentsPartialUpdate +IpamIpAddressesRetrieve Method for IpamIpAddressesRetrieve -Patch a FHRP group assignment object. +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 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 IP address. + @return ApiIpamIpAddressesRetrieveRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest { - return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest{ +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 FHRPGroupAssignment -func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetrieveRequest) (*IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{id}/" + localVarPath := localBasePath + "/api/ipam/ip-addresses/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -8529,7 +16650,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamF localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -8545,8 +16666,6 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamF if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedFHRPGroupAssignmentRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8598,58 +16717,66 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamF return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamIpAddressesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + writableIPAddressRequest *WritableIPAddressRequest } -func (r ApiIpamFhrpGroupAssignmentsRetrieveRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsRetrieveExecute(r) +func (r ApiIpamIpAddressesUpdateRequest) WritableIPAddressRequest(writableIPAddressRequest WritableIPAddressRequest) ApiIpamIpAddressesUpdateRequest { + r.writableIPAddressRequest = &writableIPAddressRequest + return r +} + +func (r ApiIpamIpAddressesUpdateRequest) Execute() (*IPAddress, *http.Response, error) { + return r.ApiService.IpamIpAddressesUpdateExecute(r) } /* -IpamFhrpGroupAssignmentsRetrieve Method for IpamFhrpGroupAssignmentsRetrieve +IpamIpAddressesUpdate Method for IpamIpAddressesUpdate -Get a FHRP group assignment object. +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 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 IP address. + @return ApiIpamIpAddressesUpdateRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsRetrieveRequest { - return ApiIpamFhrpGroupAssignmentsRetrieveRequest{ +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 FHRPGroupAssignment -func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGroupAssignmentsRetrieveRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdateRequest) (*IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{id}/" + localVarPath := localBasePath + "/api/ipam/ip-addresses/{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.writableIPAddressRequest == nil { + return localVarReturnValue, nil, reportError("writableIPAddressRequest 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) @@ -8665,6 +16792,8 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.writableIPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8716,63 +16845,62 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupAssignmentsUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - fHRPGroupAssignmentRequest *FHRPGroupAssignmentRequest +type ApiIpamIpRangesAvailableIpsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + iPAddressRequest *[]IPAddressRequest } -func (r ApiIpamFhrpGroupAssignmentsUpdateRequest) FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest FHRPGroupAssignmentRequest) ApiIpamFhrpGroupAssignmentsUpdateRequest { - r.fHRPGroupAssignmentRequest = &fHRPGroupAssignmentRequest +func (r ApiIpamIpRangesAvailableIpsCreateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpRangesAvailableIpsCreateRequest { + r.iPAddressRequest = &iPAddressRequest return r } -func (r ApiIpamFhrpGroupAssignmentsUpdateRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { - return r.ApiService.IpamFhrpGroupAssignmentsUpdateExecute(r) +func (r ApiIpamIpRangesAvailableIpsCreateRequest) Execute() ([]IPAddress, *http.Response, error) { + return r.ApiService.IpamIpRangesAvailableIpsCreateExecute(r) } /* -IpamFhrpGroupAssignmentsUpdate Method for IpamFhrpGroupAssignmentsUpdate +IpamIpRangesAvailableIpsCreate Method for IpamIpRangesAvailableIpsCreate -Put a FHRP group assignment object. +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 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 + @return ApiIpamIpRangesAvailableIpsCreateRequest */ -func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsUpdateRequest { - return ApiIpamFhrpGroupAssignmentsUpdateRequest{ +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 FHRPGroupAssignment -func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGroupAssignmentsUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return []IPAddress +func (a *IpamAPIService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRangesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-group-assignments/{id}/" + localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/available-ips/" 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.fHRPGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupAssignmentRequest is required and must be specified") + if r.iPAddressRequest == nil { + return localVarReturnValue, nil, reportError("iPAddressRequest is required and must be specified") } // to determine the Content-Type header @@ -8793,7 +16921,7 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGrou localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupAssignmentRequest + localVarPostBody = r.iPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8845,56 +16973,173 @@ func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGrou return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupRequest *[]FHRPGroupRequest +type ApiIpamIpRangesAvailableIpsListRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamFhrpGroupsBulkDestroyRequest) FHRPGroupRequest(fHRPGroupRequest []FHRPGroupRequest) ApiIpamFhrpGroupsBulkDestroyRequest { - r.fHRPGroupRequest = &fHRPGroupRequest +func (r ApiIpamIpRangesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) { + return r.ApiService.IpamIpRangesAvailableIpsListExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamIpRangesAvailableIpsList(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsListRequest { + return ApiIpamIpRangesAvailableIpsListRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return []AvailableIP +func (a *IpamAPIService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableIP + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/available-ips/" + 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 ApiIpamIpRangesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + iPRangeRequest *[]IPRangeRequest +} + +func (r ApiIpamIpRangesBulkDestroyRequest) IPRangeRequest(iPRangeRequest []IPRangeRequest) ApiIpamIpRangesBulkDestroyRequest { + r.iPRangeRequest = &iPRangeRequest return r } -func (r ApiIpamFhrpGroupsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamFhrpGroupsBulkDestroyExecute(r) +func (r ApiIpamIpRangesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamIpRangesBulkDestroyExecute(r) } /* -IpamFhrpGroupsBulkDestroy Method for IpamFhrpGroupsBulkDestroy +IpamIpRangesBulkDestroy Method for IpamIpRangesBulkDestroy -Delete a list of FHRP group objects. +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 ApiIpamFhrpGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesBulkDestroyRequest */ -func (a *IpamAPIService) IpamFhrpGroupsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupsBulkDestroyRequest { - return ApiIpamFhrpGroupsBulkDestroyRequest{ +func (a *IpamAPIService) IpamIpRangesBulkDestroy(ctx context.Context) ApiIpamIpRangesBulkDestroyRequest { + return ApiIpamIpRangesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBulkDestroyRequest) (*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.IpamFhrpGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/" + localVarPath := localBasePath + "/api/ipam/ip-ranges/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupRequest == nil { - return nil, reportError("fHRPGroupRequest is required and must be specified") + if r.iPRangeRequest == nil { + return nil, reportError("iPRangeRequest is required and must be specified") } // to determine the Content-Type header @@ -8915,7 +17160,7 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupRequest + localVarPostBody = r.iPRangeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -8958,59 +17203,58 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBul return localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupRequest *[]FHRPGroupRequest +type ApiIpamIpRangesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + iPRangeRequest *[]IPRangeRequest } -func (r ApiIpamFhrpGroupsBulkPartialUpdateRequest) FHRPGroupRequest(fHRPGroupRequest []FHRPGroupRequest) ApiIpamFhrpGroupsBulkPartialUpdateRequest { - r.fHRPGroupRequest = &fHRPGroupRequest +func (r ApiIpamIpRangesBulkPartialUpdateRequest) IPRangeRequest(iPRangeRequest []IPRangeRequest) ApiIpamIpRangesBulkPartialUpdateRequest { + r.iPRangeRequest = &iPRangeRequest return r } -func (r ApiIpamFhrpGroupsBulkPartialUpdateRequest) Execute() ([]FHRPGroup, *http.Response, error) { - return r.ApiService.IpamFhrpGroupsBulkPartialUpdateExecute(r) +func (r ApiIpamIpRangesBulkPartialUpdateRequest) Execute() ([]IPRange, *http.Response, error) { + return r.ApiService.IpamIpRangesBulkPartialUpdateExecute(r) } /* -IpamFhrpGroupsBulkPartialUpdate Method for IpamFhrpGroupsBulkPartialUpdate +IpamIpRangesBulkPartialUpdate Method for IpamIpRangesBulkPartialUpdate -Patch a list of FHRP group objects. +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 ApiIpamFhrpGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkPartialUpdateRequest { - return ApiIpamFhrpGroupsBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamIpRangesBulkPartialUpdate(ctx context.Context) ApiIpamIpRangesBulkPartialUpdateRequest { + return ApiIpamIpRangesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroup -func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGroupsBulkPartialUpdateRequest) ([]FHRPGroup, *http.Response, error) { +// @return []IPRange +func (a *IpamAPIService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesBulkPartialUpdateRequest) ([]IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/" + localVarPath := localBasePath + "/api/ipam/ip-ranges/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupRequest is required and must be specified") + if r.iPRangeRequest == nil { + return localVarReturnValue, nil, reportError("iPRangeRequest is required and must be specified") } // to determine the Content-Type header @@ -9031,7 +17275,7 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGro localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupRequest + localVarPostBody = r.iPRangeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9083,59 +17327,58 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGro return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupRequest *[]FHRPGroupRequest +type ApiIpamIpRangesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + iPRangeRequest *[]IPRangeRequest } -func (r ApiIpamFhrpGroupsBulkUpdateRequest) FHRPGroupRequest(fHRPGroupRequest []FHRPGroupRequest) ApiIpamFhrpGroupsBulkUpdateRequest { - r.fHRPGroupRequest = &fHRPGroupRequest +func (r ApiIpamIpRangesBulkUpdateRequest) IPRangeRequest(iPRangeRequest []IPRangeRequest) ApiIpamIpRangesBulkUpdateRequest { + r.iPRangeRequest = &iPRangeRequest return r } -func (r ApiIpamFhrpGroupsBulkUpdateRequest) Execute() ([]FHRPGroup, *http.Response, error) { - return r.ApiService.IpamFhrpGroupsBulkUpdateExecute(r) +func (r ApiIpamIpRangesBulkUpdateRequest) Execute() ([]IPRange, *http.Response, error) { + return r.ApiService.IpamIpRangesBulkUpdateExecute(r) } /* -IpamFhrpGroupsBulkUpdate Method for IpamFhrpGroupsBulkUpdate +IpamIpRangesBulkUpdate Method for IpamIpRangesBulkUpdate -Put a list of FHRP group objects. +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 ApiIpamFhrpGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesBulkUpdateRequest */ -func (a *IpamAPIService) IpamFhrpGroupsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkUpdateRequest { - return ApiIpamFhrpGroupsBulkUpdateRequest{ +func (a *IpamAPIService) IpamIpRangesBulkUpdate(ctx context.Context) ApiIpamIpRangesBulkUpdateRequest { + return ApiIpamIpRangesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroup -func (a *IpamAPIService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulkUpdateRequest) ([]FHRPGroup, *http.Response, error) { +// @return []IPRange +func (a *IpamAPIService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpdateRequest) ([]IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/" + localVarPath := localBasePath + "/api/ipam/ip-ranges/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupRequest is required and must be specified") + if r.iPRangeRequest == nil { + return localVarReturnValue, nil, reportError("iPRangeRequest is required and must be specified") } // to determine the Content-Type header @@ -9156,7 +17399,7 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupRequest + localVarPostBody = r.iPRangeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9208,59 +17451,58 @@ func (a *IpamAPIService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - fHRPGroupRequest *FHRPGroupRequest +type ApiIpamIpRangesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + writableIPRangeRequest *WritableIPRangeRequest } -func (r ApiIpamFhrpGroupsCreateRequest) FHRPGroupRequest(fHRPGroupRequest FHRPGroupRequest) ApiIpamFhrpGroupsCreateRequest { - r.fHRPGroupRequest = &fHRPGroupRequest +func (r ApiIpamIpRangesCreateRequest) WritableIPRangeRequest(writableIPRangeRequest WritableIPRangeRequest) ApiIpamIpRangesCreateRequest { + r.writableIPRangeRequest = &writableIPRangeRequest return r } -func (r ApiIpamFhrpGroupsCreateRequest) Execute() (*FHRPGroup, *http.Response, error) { - return r.ApiService.IpamFhrpGroupsCreateExecute(r) +func (r ApiIpamIpRangesCreateRequest) Execute() (*IPRange, *http.Response, error) { + return r.ApiService.IpamIpRangesCreateExecute(r) } /* -IpamFhrpGroupsCreate Method for IpamFhrpGroupsCreate +IpamIpRangesCreate Method for IpamIpRangesCreate -Post a list of FHRP group objects. +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 ApiIpamFhrpGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesCreateRequest */ -func (a *IpamAPIService) IpamFhrpGroupsCreate(ctx context.Context) ApiIpamFhrpGroupsCreateRequest { - return ApiIpamFhrpGroupsCreateRequest{ +func (a *IpamAPIService) IpamIpRangesCreate(ctx context.Context) ApiIpamIpRangesCreateRequest { + return ApiIpamIpRangesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return FHRPGroup -func (a *IpamAPIService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRequest) (*FHRPGroup, *http.Response, error) { +// @return IPRange +func (a *IpamAPIService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateRequest) (*IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/" + localVarPath := localBasePath + "/api/ipam/ip-ranges/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.fHRPGroupRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupRequest is required and must be specified") + if r.writableIPRangeRequest == nil { + return localVarReturnValue, nil, reportError("writableIPRangeRequest is required and must be specified") } // to determine the Content-Type header @@ -9281,7 +17523,7 @@ func (a *IpamAPIService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.fHRPGroupRequest + localVarPostBody = r.writableIPRangeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -9333,47 +17575,47 @@ func (a *IpamAPIService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamIpRangesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamFhrpGroupsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamFhrpGroupsDestroyExecute(r) +func (r ApiIpamIpRangesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamIpRangesDestroyExecute(r) } /* -IpamFhrpGroupsDestroy Method for IpamFhrpGroupsDestroy +IpamIpRangesDestroy Method for IpamIpRangesDestroy -Delete a FHRP group object. +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 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 IP range. + @return ApiIpamIpRangesDestroyRequest */ -func (a *IpamAPIService) IpamFhrpGroupsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupsDestroyRequest { - return ApiIpamFhrpGroupsDestroyRequest{ +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) IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroyRequest) (*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.IpamFhrpGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -9439,1237 +17681,1841 @@ func (a *IpamAPIService) IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroy return localVarHTTPResponse, nil } -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 - 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 - 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 +type ApiIpamIpRangesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + 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 + 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 - 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 + offset *int32 + ordering *string + parent *[]string + q *string + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + size *[]int32 + sizeEmpty *bool + sizeGt *[]int32 + sizeGte *[]int32 + sizeLt *[]int32 + sizeLte *[]int32 + sizeN *[]int32 + startAddress *[]string + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string + vrf *[]*string + vrfN *[]*string + vrfId *[]*int32 + vrfIdN *[]*int32 } -func (r ApiIpamFhrpGroupsListRequest) AuthKey(authKey []string) ApiIpamFhrpGroupsListRequest { - r.authKey = &authKey +// Ranges which contain this prefix or IP +func (r ApiIpamIpRangesListRequest) Contains(contains string) ApiIpamIpRangesListRequest { + r.contains = &contains return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyEmpty(authKeyEmpty bool) ApiIpamFhrpGroupsListRequest { - r.authKeyEmpty = &authKeyEmpty +func (r ApiIpamIpRangesListRequest) Created(created []time.Time) ApiIpamIpRangesListRequest { + r.created = &created return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyIc(authKeyIc []string) ApiIpamFhrpGroupsListRequest { - r.authKeyIc = &authKeyIc +func (r ApiIpamIpRangesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamIpRangesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyIe(authKeyIe []string) ApiIpamFhrpGroupsListRequest { - r.authKeyIe = &authKeyIe +func (r ApiIpamIpRangesListRequest) CreatedGt(createdGt []time.Time) ApiIpamIpRangesListRequest { + r.createdGt = &createdGt return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyIew(authKeyIew []string) ApiIpamFhrpGroupsListRequest { - r.authKeyIew = &authKeyIew +func (r ApiIpamIpRangesListRequest) CreatedGte(createdGte []time.Time) ApiIpamIpRangesListRequest { + r.createdGte = &createdGte return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyIsw(authKeyIsw []string) ApiIpamFhrpGroupsListRequest { - r.authKeyIsw = &authKeyIsw +func (r ApiIpamIpRangesListRequest) CreatedLt(createdLt []time.Time) ApiIpamIpRangesListRequest { + r.createdLt = &createdLt return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyN(authKeyN []string) ApiIpamFhrpGroupsListRequest { - r.authKeyN = &authKeyN +func (r ApiIpamIpRangesListRequest) CreatedLte(createdLte []time.Time) ApiIpamIpRangesListRequest { + r.createdLte = &createdLte return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyNic(authKeyNic []string) ApiIpamFhrpGroupsListRequest { - r.authKeyNic = &authKeyNic +func (r ApiIpamIpRangesListRequest) CreatedN(createdN []time.Time) ApiIpamIpRangesListRequest { + r.createdN = &createdN return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyNie(authKeyNie []string) ApiIpamFhrpGroupsListRequest { - r.authKeyNie = &authKeyNie +func (r ApiIpamIpRangesListRequest) CreatedByRequest(createdByRequest string) ApiIpamIpRangesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyNiew(authKeyNiew []string) ApiIpamFhrpGroupsListRequest { - r.authKeyNiew = &authKeyNiew +func (r ApiIpamIpRangesListRequest) Description(description []string) ApiIpamIpRangesListRequest { + r.description = &description return r } -func (r ApiIpamFhrpGroupsListRequest) AuthKeyNisw(authKeyNisw []string) ApiIpamFhrpGroupsListRequest { - r.authKeyNisw = &authKeyNisw +func (r ApiIpamIpRangesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamIpRangesListRequest { + r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamFhrpGroupsListRequest) AuthType(authType []string) ApiIpamFhrpGroupsListRequest { - r.authType = &authType +func (r ApiIpamIpRangesListRequest) DescriptionIc(descriptionIc []string) ApiIpamIpRangesListRequest { + r.descriptionIc = &descriptionIc return r } -func (r ApiIpamFhrpGroupsListRequest) AuthTypeN(authTypeN []string) ApiIpamFhrpGroupsListRequest { - r.authTypeN = &authTypeN +func (r ApiIpamIpRangesListRequest) DescriptionIe(descriptionIe []string) ApiIpamIpRangesListRequest { + r.descriptionIe = &descriptionIe return r } -func (r ApiIpamFhrpGroupsListRequest) Created(created []time.Time) ApiIpamFhrpGroupsListRequest { - r.created = &created +func (r ApiIpamIpRangesListRequest) DescriptionIew(descriptionIew []string) ApiIpamIpRangesListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiIpamFhrpGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamFhrpGroupsListRequest { - r.createdEmpty = &createdEmpty +func (r ApiIpamIpRangesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamIpRangesListRequest { + r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamFhrpGroupsListRequest) CreatedGt(createdGt []time.Time) ApiIpamFhrpGroupsListRequest { - r.createdGt = &createdGt +func (r ApiIpamIpRangesListRequest) DescriptionN(descriptionN []string) ApiIpamIpRangesListRequest { + r.descriptionN = &descriptionN return r } -func (r ApiIpamFhrpGroupsListRequest) CreatedGte(createdGte []time.Time) ApiIpamFhrpGroupsListRequest { - r.createdGte = &createdGte +func (r ApiIpamIpRangesListRequest) DescriptionNic(descriptionNic []string) ApiIpamIpRangesListRequest { + r.descriptionNic = &descriptionNic return r } -func (r ApiIpamFhrpGroupsListRequest) CreatedLt(createdLt []time.Time) ApiIpamFhrpGroupsListRequest { - r.createdLt = &createdLt +func (r ApiIpamIpRangesListRequest) DescriptionNie(descriptionNie []string) ApiIpamIpRangesListRequest { + r.descriptionNie = &descriptionNie return r } -func (r ApiIpamFhrpGroupsListRequest) CreatedLte(createdLte []time.Time) ApiIpamFhrpGroupsListRequest { - r.createdLte = &createdLte +func (r ApiIpamIpRangesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamIpRangesListRequest { + r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamFhrpGroupsListRequest) CreatedN(createdN []time.Time) ApiIpamFhrpGroupsListRequest { - r.createdN = &createdN +func (r ApiIpamIpRangesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamIpRangesListRequest { + r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamFhrpGroupsListRequest) CreatedByRequest(createdByRequest string) ApiIpamFhrpGroupsListRequest { - r.createdByRequest = &createdByRequest +func (r ApiIpamIpRangesListRequest) EndAddress(endAddress []string) ApiIpamIpRangesListRequest { + r.endAddress = &endAddress return r } -func (r ApiIpamFhrpGroupsListRequest) Description(description []string) ApiIpamFhrpGroupsListRequest { - r.description = &description +func (r ApiIpamIpRangesListRequest) Family(family float32) ApiIpamIpRangesListRequest { + r.family = &family return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamFhrpGroupsListRequest { - r.descriptionEmpty = &descriptionEmpty +func (r ApiIpamIpRangesListRequest) Id(id []int32) ApiIpamIpRangesListRequest { + r.id = &id return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionIc(descriptionIc []string) ApiIpamFhrpGroupsListRequest { - r.descriptionIc = &descriptionIc +func (r ApiIpamIpRangesListRequest) IdEmpty(idEmpty bool) ApiIpamIpRangesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionIe(descriptionIe []string) ApiIpamFhrpGroupsListRequest { - r.descriptionIe = &descriptionIe +func (r ApiIpamIpRangesListRequest) IdGt(idGt []int32) ApiIpamIpRangesListRequest { + r.idGt = &idGt return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionIew(descriptionIew []string) ApiIpamFhrpGroupsListRequest { - r.descriptionIew = &descriptionIew +func (r ApiIpamIpRangesListRequest) IdGte(idGte []int32) ApiIpamIpRangesListRequest { + r.idGte = &idGte return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamFhrpGroupsListRequest { - r.descriptionIsw = &descriptionIsw +func (r ApiIpamIpRangesListRequest) IdLt(idLt []int32) ApiIpamIpRangesListRequest { + r.idLt = &idLt return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionN(descriptionN []string) ApiIpamFhrpGroupsListRequest { - r.descriptionN = &descriptionN +func (r ApiIpamIpRangesListRequest) IdLte(idLte []int32) ApiIpamIpRangesListRequest { + r.idLte = &idLte return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionNic(descriptionNic []string) ApiIpamFhrpGroupsListRequest { - r.descriptionNic = &descriptionNic +func (r ApiIpamIpRangesListRequest) IdN(idN []int32) ApiIpamIpRangesListRequest { + r.idN = &idN return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionNie(descriptionNie []string) ApiIpamFhrpGroupsListRequest { - r.descriptionNie = &descriptionNie +func (r ApiIpamIpRangesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamFhrpGroupsListRequest { - r.descriptionNiew = &descriptionNiew +func (r ApiIpamIpRangesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamFhrpGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamFhrpGroupsListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiIpamIpRangesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamFhrpGroupsListRequest) GroupId(groupId []int32) ApiIpamFhrpGroupsListRequest { - r.groupId = &groupId +func (r ApiIpamIpRangesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamFhrpGroupsListRequest) GroupIdEmpty(groupIdEmpty bool) ApiIpamFhrpGroupsListRequest { - r.groupIdEmpty = &groupIdEmpty +func (r ApiIpamIpRangesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamFhrpGroupsListRequest) GroupIdGt(groupIdGt []int32) ApiIpamFhrpGroupsListRequest { - r.groupIdGt = &groupIdGt +func (r ApiIpamIpRangesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamFhrpGroupsListRequest) GroupIdGte(groupIdGte []int32) ApiIpamFhrpGroupsListRequest { - r.groupIdGte = &groupIdGte +func (r ApiIpamIpRangesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiIpamFhrpGroupsListRequest) GroupIdLt(groupIdLt []int32) ApiIpamFhrpGroupsListRequest { - r.groupIdLt = &groupIdLt +// Number of results to return per page. +func (r ApiIpamIpRangesListRequest) Limit(limit int32) ApiIpamIpRangesListRequest { + r.limit = &limit return r } -func (r ApiIpamFhrpGroupsListRequest) GroupIdLte(groupIdLte []int32) ApiIpamFhrpGroupsListRequest { - r.groupIdLte = &groupIdLte +func (r ApiIpamIpRangesListRequest) MarkUtilized(markUtilized bool) ApiIpamIpRangesListRequest { + r.markUtilized = &markUtilized return r } -func (r ApiIpamFhrpGroupsListRequest) GroupIdN(groupIdN []int32) ApiIpamFhrpGroupsListRequest { - r.groupIdN = &groupIdN +func (r ApiIpamIpRangesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamIpRangesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamFhrpGroupsListRequest) Id(id []int32) ApiIpamFhrpGroupsListRequest { - r.id = &id +// The initial index from which to return the results. +func (r ApiIpamIpRangesListRequest) Offset(offset int32) ApiIpamIpRangesListRequest { + r.offset = &offset return r } -func (r ApiIpamFhrpGroupsListRequest) IdEmpty(idEmpty bool) ApiIpamFhrpGroupsListRequest { - r.idEmpty = &idEmpty +// Which field to use when ordering the results. +func (r ApiIpamIpRangesListRequest) Ordering(ordering string) ApiIpamIpRangesListRequest { + r.ordering = &ordering return r } -func (r ApiIpamFhrpGroupsListRequest) IdGt(idGt []int32) ApiIpamFhrpGroupsListRequest { - r.idGt = &idGt +func (r ApiIpamIpRangesListRequest) Parent(parent []string) ApiIpamIpRangesListRequest { + r.parent = &parent return r } -func (r ApiIpamFhrpGroupsListRequest) IdGte(idGte []int32) ApiIpamFhrpGroupsListRequest { - r.idGte = &idGte +// Search +func (r ApiIpamIpRangesListRequest) Q(q string) ApiIpamIpRangesListRequest { + r.q = &q return r } -func (r ApiIpamFhrpGroupsListRequest) IdLt(idLt []int32) ApiIpamFhrpGroupsListRequest { - r.idLt = &idLt +// Role (slug) +func (r ApiIpamIpRangesListRequest) Role(role []string) ApiIpamIpRangesListRequest { + r.role = &role return r } -func (r ApiIpamFhrpGroupsListRequest) IdLte(idLte []int32) ApiIpamFhrpGroupsListRequest { - r.idLte = &idLte +// Role (slug) +func (r ApiIpamIpRangesListRequest) RoleN(roleN []string) ApiIpamIpRangesListRequest { + r.roleN = &roleN return r } -func (r ApiIpamFhrpGroupsListRequest) IdN(idN []int32) ApiIpamFhrpGroupsListRequest { - r.idN = &idN +// Role (ID) +func (r ApiIpamIpRangesListRequest) RoleId(roleId []*int32) ApiIpamIpRangesListRequest { + r.roleId = &roleId return r } -func (r ApiIpamFhrpGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamFhrpGroupsListRequest { - r.lastUpdated = &lastUpdated +// Role (ID) +func (r ApiIpamIpRangesListRequest) RoleIdN(roleIdN []*int32) ApiIpamIpRangesListRequest { + r.roleIdN = &roleIdN return r } -func (r ApiIpamFhrpGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamFhrpGroupsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiIpamIpRangesListRequest) Size(size []int32) ApiIpamIpRangesListRequest { + r.size = &size return r } -func (r ApiIpamFhrpGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamFhrpGroupsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiIpamIpRangesListRequest) SizeEmpty(sizeEmpty bool) ApiIpamIpRangesListRequest { + r.sizeEmpty = &sizeEmpty return r } -func (r ApiIpamFhrpGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamFhrpGroupsListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiIpamIpRangesListRequest) SizeGt(sizeGt []int32) ApiIpamIpRangesListRequest { + r.sizeGt = &sizeGt return r } -func (r ApiIpamFhrpGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamFhrpGroupsListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiIpamIpRangesListRequest) SizeGte(sizeGte []int32) ApiIpamIpRangesListRequest { + r.sizeGte = &sizeGte return r } -func (r ApiIpamFhrpGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamFhrpGroupsListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiIpamIpRangesListRequest) SizeLt(sizeLt []int32) ApiIpamIpRangesListRequest { + r.sizeLt = &sizeLt return r } -func (r ApiIpamFhrpGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamFhrpGroupsListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiIpamIpRangesListRequest) SizeLte(sizeLte []int32) ApiIpamIpRangesListRequest { + r.sizeLte = &sizeLte return r } -// Number of results to return per page. -func (r ApiIpamFhrpGroupsListRequest) Limit(limit int32) ApiIpamFhrpGroupsListRequest { - r.limit = &limit +func (r ApiIpamIpRangesListRequest) SizeN(sizeN []int32) ApiIpamIpRangesListRequest { + r.sizeN = &sizeN return r } -func (r ApiIpamFhrpGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamFhrpGroupsListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiIpamIpRangesListRequest) StartAddress(startAddress []string) ApiIpamIpRangesListRequest { + r.startAddress = &startAddress return r } -func (r ApiIpamFhrpGroupsListRequest) Name(name []string) ApiIpamFhrpGroupsListRequest { - r.name = &name +// Operational status of this range +func (r ApiIpamIpRangesListRequest) Status(status []string) ApiIpamIpRangesListRequest { + r.status = &status return r } -func (r ApiIpamFhrpGroupsListRequest) NameEmpty(nameEmpty bool) ApiIpamFhrpGroupsListRequest { - r.nameEmpty = &nameEmpty +func (r ApiIpamIpRangesListRequest) StatusEmpty(statusEmpty bool) ApiIpamIpRangesListRequest { + r.statusEmpty = &statusEmpty return r } -func (r ApiIpamFhrpGroupsListRequest) NameIc(nameIc []string) ApiIpamFhrpGroupsListRequest { - r.nameIc = &nameIc +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusIc(statusIc []string) ApiIpamIpRangesListRequest { + r.statusIc = &statusIc return r } -func (r ApiIpamFhrpGroupsListRequest) NameIe(nameIe []string) ApiIpamFhrpGroupsListRequest { - r.nameIe = &nameIe +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusIe(statusIe []string) ApiIpamIpRangesListRequest { + r.statusIe = &statusIe return r } -func (r ApiIpamFhrpGroupsListRequest) NameIew(nameIew []string) ApiIpamFhrpGroupsListRequest { - r.nameIew = &nameIew +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusIew(statusIew []string) ApiIpamIpRangesListRequest { + r.statusIew = &statusIew return r } -func (r ApiIpamFhrpGroupsListRequest) NameIsw(nameIsw []string) ApiIpamFhrpGroupsListRequest { - r.nameIsw = &nameIsw +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusIsw(statusIsw []string) ApiIpamIpRangesListRequest { + r.statusIsw = &statusIsw return r } -func (r ApiIpamFhrpGroupsListRequest) NameN(nameN []string) ApiIpamFhrpGroupsListRequest { - r.nameN = &nameN +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusN(statusN []string) ApiIpamIpRangesListRequest { + r.statusN = &statusN return r } -func (r ApiIpamFhrpGroupsListRequest) NameNic(nameNic []string) ApiIpamFhrpGroupsListRequest { - r.nameNic = &nameNic +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusNic(statusNic []string) ApiIpamIpRangesListRequest { + r.statusNic = &statusNic return r } -func (r ApiIpamFhrpGroupsListRequest) NameNie(nameNie []string) ApiIpamFhrpGroupsListRequest { - r.nameNie = &nameNie +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusNie(statusNie []string) ApiIpamIpRangesListRequest { + r.statusNie = &statusNie return r } -func (r ApiIpamFhrpGroupsListRequest) NameNiew(nameNiew []string) ApiIpamFhrpGroupsListRequest { - r.nameNiew = &nameNiew +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusNiew(statusNiew []string) ApiIpamIpRangesListRequest { + r.statusNiew = &statusNiew return r } -func (r ApiIpamFhrpGroupsListRequest) NameNisw(nameNisw []string) ApiIpamFhrpGroupsListRequest { - r.nameNisw = &nameNisw +// Operational status of this range +func (r ApiIpamIpRangesListRequest) StatusNisw(statusNisw []string) ApiIpamIpRangesListRequest { + r.statusNisw = &statusNisw return r } -// The initial index from which to return the results. -func (r ApiIpamFhrpGroupsListRequest) Offset(offset int32) ApiIpamFhrpGroupsListRequest { - r.offset = &offset +func (r ApiIpamIpRangesListRequest) Tag(tag []string) ApiIpamIpRangesListRequest { + r.tag = &tag return r } -// Which field to use when ordering the results. -func (r ApiIpamFhrpGroupsListRequest) Ordering(ordering string) ApiIpamFhrpGroupsListRequest { - r.ordering = &ordering +func (r ApiIpamIpRangesListRequest) TagN(tagN []string) ApiIpamIpRangesListRequest { + r.tagN = &tagN return r } -func (r ApiIpamFhrpGroupsListRequest) Protocol(protocol []string) ApiIpamFhrpGroupsListRequest { - r.protocol = &protocol +// Tenant (slug) +func (r ApiIpamIpRangesListRequest) Tenant(tenant []string) ApiIpamIpRangesListRequest { + r.tenant = &tenant return r } -func (r ApiIpamFhrpGroupsListRequest) ProtocolN(protocolN []string) ApiIpamFhrpGroupsListRequest { - r.protocolN = &protocolN +// Tenant (slug) +func (r ApiIpamIpRangesListRequest) TenantN(tenantN []string) ApiIpamIpRangesListRequest { + r.tenantN = &tenantN return r } -// Search -func (r ApiIpamFhrpGroupsListRequest) Q(q string) ApiIpamFhrpGroupsListRequest { - r.q = &q +func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpRangesListRequest { + r.tenantGroup = &tenantGroup return r } -func (r ApiIpamFhrpGroupsListRequest) RelatedIp(relatedIp []string) ApiIpamFhrpGroupsListRequest { - r.relatedIp = &relatedIp +func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpRangesListRequest { + r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamFhrpGroupsListRequest) Tag(tag []string) ApiIpamFhrpGroupsListRequest { - r.tag = &tag +func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpRangesListRequest { + r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamFhrpGroupsListRequest) TagN(tagN []string) ApiIpamFhrpGroupsListRequest { - r.tagN = &tagN +func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpRangesListRequest { + r.tenantGroupIdN = &tenantGroupIdN return r } -func (r ApiIpamFhrpGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamFhrpGroupsListRequest { +// Tenant (ID) +func (r ApiIpamIpRangesListRequest) TenantId(tenantId []*int32) ApiIpamIpRangesListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiIpamIpRangesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamIpRangesListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiIpamIpRangesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamIpRangesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamFhrpGroupsListRequest) Execute() (*PaginatedFHRPGroupList, *http.Response, error) { - return r.ApiService.IpamFhrpGroupsListExecute(r) +// VRF (RD) +func (r ApiIpamIpRangesListRequest) Vrf(vrf []*string) ApiIpamIpRangesListRequest { + r.vrf = &vrf + return r +} + +// VRF (RD) +func (r ApiIpamIpRangesListRequest) VrfN(vrfN []*string) ApiIpamIpRangesListRequest { + r.vrfN = &vrfN + return r +} + +// VRF +func (r ApiIpamIpRangesListRequest) VrfId(vrfId []*int32) ApiIpamIpRangesListRequest { + r.vrfId = &vrfId + return r +} + +// VRF +func (r ApiIpamIpRangesListRequest) VrfIdN(vrfIdN []*int32) ApiIpamIpRangesListRequest { + r.vrfIdN = &vrfIdN + return r +} + +func (r ApiIpamIpRangesListRequest) Execute() (*PaginatedIPRangeList, *http.Response, error) { + return r.ApiService.IpamIpRangesListExecute(r) } /* -IpamFhrpGroupsList Method for IpamFhrpGroupsList +IpamIpRangesList Method for IpamIpRangesList -Get a list of FHRP group objects. +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 ApiIpamFhrpGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesListRequest */ -func (a *IpamAPIService) IpamFhrpGroupsList(ctx context.Context) ApiIpamFhrpGroupsListRequest { - return ApiIpamFhrpGroupsListRequest{ +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) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIPRangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/ip-ranges/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.contains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "contains", r.contains, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedFHRPGroupList -func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListRequest) (*PaginatedFHRPGroupList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFHRPGroupList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/ipam/fhrp-groups/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.authKey != nil { - t := *r.authKey + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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, "auth_key", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } - if r.authKeyEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__empty", r.authKeyEmpty, "") + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } - if r.authKeyIc != nil { - t := *r.authKeyIc + 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, "auth_key__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } - if r.authKeyIe != nil { - t := *r.authKeyIe + 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, "auth_key__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } - if r.authKeyIew != nil { - t := *r.authKeyIew + 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, "auth_key__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.authKeyIsw != nil { - t := *r.authKeyIsw + 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, "auth_key__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.authKeyN != nil { - t := *r.authKeyN + 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, "auth_key__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.authKeyNic != nil { - t := *r.authKeyNic + 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, "auth_key__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.authKeyNie != nil { - t := *r.authKeyNie + 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, "auth_key__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.authKeyNiew != nil { - t := *r.authKeyNiew + 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, "auth_key__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.authKeyNisw != nil { - t := *r.authKeyNisw + 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, "auth_key__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.authType != nil { - t := *r.authType + if r.endAddress != nil { + t := *r.endAddress 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end_address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end_address", t, "form", "multi") } } - if r.authTypeN != nil { - t := *r.authTypeN + if r.family != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "form", "") + } + 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, "auth_type__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.created != nil { - t := *r.created + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + 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, "created__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + 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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") + } } - if r.description != nil { - t := *r.description + 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") + } } - if r.descriptionIc != nil { - t := *r.descriptionIc + 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, "description__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.markUtilized != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_utilized", r.markUtilized, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.size != nil { + t := *r.size 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "size", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.sizeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__empty", r.sizeEmpty, "form", "") + } + 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", t, "form", "multi") } } - if r.groupId != nil { - t := *r.groupId + if r.sizeGte != nil { + t := *r.sizeGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", t, "form", "multi") } } - if r.groupIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__empty", r.groupIdEmpty, "") + if r.sizeLt != nil { + t := *r.sizeLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", t, "form", "multi") + } } - if r.groupIdGt != nil { - t := *r.groupIdGt + if r.sizeLte != nil { + t := *r.sizeLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", t, "form", "multi") } } - if r.groupIdGte != nil { - t := *r.groupIdGte + if r.sizeN != nil { + t := *r.sizeN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", t, "form", "multi") } } - if r.groupIdLt != nil { - t := *r.groupIdLt + if r.startAddress != nil { + t := *r.startAddress 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start_address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start_address", t, "form", "multi") } } - if r.groupIdLte != nil { - t := *r.groupIdLte + 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, "group_id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.groupIdN != nil { - t := *r.groupIdN + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.id != nil { - t := *r.id + if r.statusIe != nil { + t := *r.statusIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } } - if r.idGt != nil { - t := *r.idGt + if r.statusIsw != nil { + t := *r.statusIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.statusN != nil { + t := *r.statusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.statusNic != nil { + t := *r.statusNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.statusNie != nil { + t := *r.statusNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.vrf != nil { + t := *r.vrf + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "form", "multi") + } + } + if r.vrfN != nil { + t := *r.vrfN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "form", "multi") + } + } + if r.vrfId != nil { + t := *r.vrfId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "form", "multi") + } + } + if r.vrfIdN != nil { + t := *r.vrfIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "form", "multi") + } + } + // 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 ApiIpamIpRangesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedWritableIPRangeRequest *PatchedWritableIPRangeRequest +} + +func (r ApiIpamIpRangesPartialUpdateRequest) PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest PatchedWritableIPRangeRequest) ApiIpamIpRangesPartialUpdateRequest { + r.patchedWritableIPRangeRequest = &patchedWritableIPRangeRequest + return r +} + +func (r ApiIpamIpRangesPartialUpdateRequest) Execute() (*IPRange, *http.Response, error) { + return r.ApiService.IpamIpRangesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest { + return ApiIpamIpRangesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return IPRange +func (a *IpamAPIService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/ip-ranges/{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.patchedWritableIPRangeRequest + 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.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") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - 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") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiIpamIpRangesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 +} + +func (r ApiIpamIpRangesRetrieveRequest) Execute() (*IPRange, *http.Response, error) { + return r.ApiService.IpamIpRangesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest { + return ApiIpamIpRangesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +// @return IPRange +func (a *IpamAPIService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + + localVarPath := localBasePath + "/api/ipam/ip-ranges/{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.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - 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") + 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", t, "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - 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") - } + + 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.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 localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - 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") + + 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiIpamIpRangesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + writableIPRangeRequest *WritableIPRangeRequest +} + +func (r ApiIpamIpRangesUpdateRequest) WritableIPRangeRequest(writableIPRangeRequest WritableIPRangeRequest) ApiIpamIpRangesUpdateRequest { + r.writableIPRangeRequest = &writableIPRangeRequest + return r +} + +func (r ApiIpamIpRangesUpdateRequest) Execute() (*IPRange, *http.Response, error) { + return r.ApiService.IpamIpRangesUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest { + return ApiIpamIpRangesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - 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") - } +} + +// Execute executes the request +// @return IPRange +func (a *IpamAPIService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - 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") - } + + localVarPath := localBasePath + "/api/ipam/ip-ranges/{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.writableIPRangeRequest == nil { + return localVarReturnValue, nil, reportError("writableIPRangeRequest is required and must be specified") } - 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") - } + + // 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.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") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableIPRangeRequest + 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__nisw", t, "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.protocol != nil { - t := *r.protocol - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", 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.protocolN != nil { - t := *r.protocolN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.relatedIp != nil { - t := *r.relatedIp - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_ip", 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.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") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiIpamPrefixesAvailableIpsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + iPAddressRequest *[]IPAddressRequest +} + +func (r ApiIpamPrefixesAvailableIpsCreateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamPrefixesAvailableIpsCreateRequest { + r.iPAddressRequest = &iPAddressRequest + return r +} + +func (r ApiIpamPrefixesAvailableIpsCreateRequest) Execute() ([]IPAddress, *http.Response, error) { + return r.ApiService.IpamPrefixesAvailableIpsCreateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamPrefixesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsCreateRequest { + return ApiIpamPrefixesAvailableIpsCreateRequest{ + 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") - } +} + +// Execute executes the request +// @return []IPAddress +func (a *IpamAPIService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + + localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-ips/" + 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.iPAddressRequest == nil { + return localVarReturnValue, nil, reportError("iPAddressRequest 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) @@ -10685,6 +19531,8 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.iPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10736,56 +19584,49 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedFHRPGroupRequest *PatchedFHRPGroupRequest -} - -func (r ApiIpamFhrpGroupsPartialUpdateRequest) PatchedFHRPGroupRequest(patchedFHRPGroupRequest PatchedFHRPGroupRequest) ApiIpamFhrpGroupsPartialUpdateRequest { - r.patchedFHRPGroupRequest = &patchedFHRPGroupRequest - return r +type ApiIpamPrefixesAvailableIpsListRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamFhrpGroupsPartialUpdateRequest) Execute() (*FHRPGroup, *http.Response, error) { - return r.ApiService.IpamFhrpGroupsPartialUpdateExecute(r) +func (r ApiIpamPrefixesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) { + return r.ApiService.IpamPrefixesAvailableIpsListExecute(r) } /* -IpamFhrpGroupsPartialUpdate Method for IpamFhrpGroupsPartialUpdate +IpamPrefixesAvailableIpsList Method for IpamPrefixesAvailableIpsList -Patch a FHRP group object. +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 FHRP group. - @return ApiIpamFhrpGroupsPartialUpdateRequest + @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) IpamFhrpGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsPartialUpdateRequest { - return ApiIpamFhrpGroupsPartialUpdateRequest{ +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 FHRPGroup -func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsPartialUpdateRequest) (*FHRPGroup, *http.Response, error) { +// @return []AvailableIP +func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableIP ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-ips/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -10793,7 +19634,7 @@ func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsP localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -10809,8 +19650,6 @@ func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsP if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedFHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10862,58 +19701,66 @@ func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamPrefixesAvailablePrefixesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + prefixRequest *[]PrefixRequest } -func (r ApiIpamFhrpGroupsRetrieveRequest) Execute() (*FHRPGroup, *http.Response, error) { - return r.ApiService.IpamFhrpGroupsRetrieveExecute(r) +func (r ApiIpamPrefixesAvailablePrefixesCreateRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesAvailablePrefixesCreateRequest { + r.prefixRequest = &prefixRequest + return r +} + +func (r ApiIpamPrefixesAvailablePrefixesCreateRequest) Execute() ([]Prefix, *http.Response, error) { + return r.ApiService.IpamPrefixesAvailablePrefixesCreateExecute(r) } /* -IpamFhrpGroupsRetrieve Method for IpamFhrpGroupsRetrieve +IpamPrefixesAvailablePrefixesCreate Method for IpamPrefixesAvailablePrefixesCreate -Get a FHRP group object. +Post 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 FHRP group. - @return ApiIpamFhrpGroupsRetrieveRequest + @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) IpamFhrpGroupsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupsRetrieveRequest { - return ApiIpamFhrpGroupsRetrieveRequest{ +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 FHRPGroup -func (a *IpamAPIService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrieveRequest) (*FHRPGroup, *http.Response, error) { +// @return []Prefix +func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPrefixesAvailablePrefixesCreateRequest) ([]Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-prefixes/" 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.prefixRequest == nil { + return localVarReturnValue, nil, reportError("prefixRequest 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) @@ -10929,6 +19776,8 @@ func (a *IpamAPIService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrie if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.prefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -10980,67 +19829,57 @@ func (a *IpamAPIService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamFhrpGroupsUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - fHRPGroupRequest *FHRPGroupRequest -} - -func (r ApiIpamFhrpGroupsUpdateRequest) FHRPGroupRequest(fHRPGroupRequest FHRPGroupRequest) ApiIpamFhrpGroupsUpdateRequest { - r.fHRPGroupRequest = &fHRPGroupRequest - return r +type ApiIpamPrefixesAvailablePrefixesListRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamFhrpGroupsUpdateRequest) Execute() (*FHRPGroup, *http.Response, error) { - return r.ApiService.IpamFhrpGroupsUpdateExecute(r) +func (r ApiIpamPrefixesAvailablePrefixesListRequest) Execute() ([]AvailablePrefix, *http.Response, error) { + return r.ApiService.IpamPrefixesAvailablePrefixesListExecute(r) } /* -IpamFhrpGroupsUpdate Method for IpamFhrpGroupsUpdate +IpamPrefixesAvailablePrefixesList Method for IpamPrefixesAvailablePrefixesList -Put a FHRP group object. +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 FHRP group. - @return ApiIpamFhrpGroupsUpdateRequest + @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) IpamFhrpGroupsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsUpdateRequest { - return ApiIpamFhrpGroupsUpdateRequest{ +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 FHRPGroup -func (a *IpamAPIService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRequest) (*FHRPGroup, *http.Response, error) { +// @return []AvailablePrefix +func (a *IpamAPIService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefixesAvailablePrefixesListRequest) ([]AvailablePrefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailablePrefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/fhrp-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-prefixes/" 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.fHRPGroupRequest == nil { - return localVarReturnValue, nil, reportError("fHRPGroupRequest 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) @@ -11056,8 +19895,6 @@ func (a *IpamAPIService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.fHRPGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11109,56 +19946,56 @@ func (a *IpamAPIService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpAddressesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - iPAddressRequest *[]IPAddressRequest +type ApiIpamPrefixesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + prefixRequest *[]PrefixRequest } -func (r ApiIpamIpAddressesBulkDestroyRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpAddressesBulkDestroyRequest { - r.iPAddressRequest = &iPAddressRequest +func (r ApiIpamPrefixesBulkDestroyRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesBulkDestroyRequest { + r.prefixRequest = &prefixRequest return r } -func (r ApiIpamIpAddressesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamIpAddressesBulkDestroyExecute(r) +func (r ApiIpamPrefixesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamPrefixesBulkDestroyExecute(r) } /* -IpamIpAddressesBulkDestroy Method for IpamIpAddressesBulkDestroy +IpamPrefixesBulkDestroy Method for IpamPrefixesBulkDestroy -Delete a list of IP address objects. +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 ApiIpamIpAddressesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesBulkDestroyRequest */ -func (a *IpamAPIService) IpamIpAddressesBulkDestroy(ctx context.Context) ApiIpamIpAddressesBulkDestroyRequest { - return ApiIpamIpAddressesBulkDestroyRequest{ +func (a *IpamAPIService) IpamPrefixesBulkDestroy(ctx context.Context) ApiIpamPrefixesBulkDestroyRequest { + return ApiIpamPrefixesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesBulkDestroyRequest) (*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.IpamIpAddressesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/" + localVarPath := localBasePath + "/api/ipam/prefixes/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.iPAddressRequest == nil { - return nil, reportError("iPAddressRequest is required and must be specified") + if r.prefixRequest == nil { + return nil, reportError("prefixRequest is required and must be specified") } // to determine the Content-Type header @@ -11179,7 +20016,7 @@ func (a *IpamAPIService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.iPAddressRequest + localVarPostBody = r.prefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11222,59 +20059,58 @@ func (a *IpamAPIService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesB return localVarHTTPResponse, nil } -type ApiIpamIpAddressesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - iPAddressRequest *[]IPAddressRequest +type ApiIpamPrefixesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + prefixRequest *[]PrefixRequest } -func (r ApiIpamIpAddressesBulkPartialUpdateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpAddressesBulkPartialUpdateRequest { - r.iPAddressRequest = &iPAddressRequest +func (r ApiIpamPrefixesBulkPartialUpdateRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesBulkPartialUpdateRequest { + r.prefixRequest = &prefixRequest return r } -func (r ApiIpamIpAddressesBulkPartialUpdateRequest) Execute() ([]IPAddress, *http.Response, error) { - return r.ApiService.IpamIpAddressesBulkPartialUpdateExecute(r) +func (r ApiIpamPrefixesBulkPartialUpdateRequest) Execute() ([]Prefix, *http.Response, error) { + return r.ApiService.IpamPrefixesBulkPartialUpdateExecute(r) } /* -IpamIpAddressesBulkPartialUpdate Method for IpamIpAddressesBulkPartialUpdate +IpamPrefixesBulkPartialUpdate Method for IpamPrefixesBulkPartialUpdate -Patch a list of IP address objects. +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 ApiIpamIpAddressesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdate(ctx context.Context) ApiIpamIpAddressesBulkPartialUpdateRequest { - return ApiIpamIpAddressesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamPrefixesBulkPartialUpdate(ctx context.Context) ApiIpamPrefixesBulkPartialUpdateRequest { + return ApiIpamPrefixesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPAddress -func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddressesBulkPartialUpdateRequest) ([]IPAddress, *http.Response, error) { +// @return []Prefix +func (a *IpamAPIService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesBulkPartialUpdateRequest) ([]Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/" + localVarPath := localBasePath + "/api/ipam/prefixes/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.iPAddressRequest == nil { - return localVarReturnValue, nil, reportError("iPAddressRequest is required and must be specified") + if r.prefixRequest == nil { + return localVarReturnValue, nil, reportError("prefixRequest is required and must be specified") } // to determine the Content-Type header @@ -11295,7 +20131,7 @@ func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.iPAddressRequest + localVarPostBody = r.prefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11347,59 +20183,58 @@ func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpAddressesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - iPAddressRequest *[]IPAddressRequest +type ApiIpamPrefixesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + prefixRequest *[]PrefixRequest } -func (r ApiIpamIpAddressesBulkUpdateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpAddressesBulkUpdateRequest { - r.iPAddressRequest = &iPAddressRequest +func (r ApiIpamPrefixesBulkUpdateRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesBulkUpdateRequest { + r.prefixRequest = &prefixRequest return r } -func (r ApiIpamIpAddressesBulkUpdateRequest) Execute() ([]IPAddress, *http.Response, error) { - return r.ApiService.IpamIpAddressesBulkUpdateExecute(r) +func (r ApiIpamPrefixesBulkUpdateRequest) Execute() ([]Prefix, *http.Response, error) { + return r.ApiService.IpamPrefixesBulkUpdateExecute(r) } /* -IpamIpAddressesBulkUpdate Method for IpamIpAddressesBulkUpdate +IpamPrefixesBulkUpdate Method for IpamPrefixesBulkUpdate -Put a list of IP address objects. +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 ApiIpamIpAddressesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesBulkUpdateRequest */ -func (a *IpamAPIService) IpamIpAddressesBulkUpdate(ctx context.Context) ApiIpamIpAddressesBulkUpdateRequest { - return ApiIpamIpAddressesBulkUpdateRequest{ +func (a *IpamAPIService) IpamPrefixesBulkUpdate(ctx context.Context) ApiIpamPrefixesBulkUpdateRequest { + return ApiIpamPrefixesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPAddress -func (a *IpamAPIService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBulkUpdateRequest) ([]IPAddress, *http.Response, error) { +// @return []Prefix +func (a *IpamAPIService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpdateRequest) ([]Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/" + localVarPath := localBasePath + "/api/ipam/prefixes/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.iPAddressRequest == nil { - return localVarReturnValue, nil, reportError("iPAddressRequest is required and must be specified") + if r.prefixRequest == nil { + return localVarReturnValue, nil, reportError("prefixRequest is required and must be specified") } // to determine the Content-Type header @@ -11420,7 +20255,7 @@ func (a *IpamAPIService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.iPAddressRequest + localVarPostBody = r.prefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11472,59 +20307,58 @@ func (a *IpamAPIService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpAddressesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - writableIPAddressRequest *WritableIPAddressRequest +type ApiIpamPrefixesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + writablePrefixRequest *WritablePrefixRequest } -func (r ApiIpamIpAddressesCreateRequest) WritableIPAddressRequest(writableIPAddressRequest WritableIPAddressRequest) ApiIpamIpAddressesCreateRequest { - r.writableIPAddressRequest = &writableIPAddressRequest +func (r ApiIpamPrefixesCreateRequest) WritablePrefixRequest(writablePrefixRequest WritablePrefixRequest) ApiIpamPrefixesCreateRequest { + r.writablePrefixRequest = &writablePrefixRequest return r } -func (r ApiIpamIpAddressesCreateRequest) Execute() (*IPAddress, *http.Response, error) { - return r.ApiService.IpamIpAddressesCreateExecute(r) +func (r ApiIpamPrefixesCreateRequest) Execute() (*Prefix, *http.Response, error) { + return r.ApiService.IpamPrefixesCreateExecute(r) } /* -IpamIpAddressesCreate Method for IpamIpAddressesCreate +IpamPrefixesCreate Method for IpamPrefixesCreate -Post a list of IP address objects. +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 ApiIpamIpAddressesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesCreateRequest */ -func (a *IpamAPIService) IpamIpAddressesCreate(ctx context.Context) ApiIpamIpAddressesCreateRequest { - return ApiIpamIpAddressesCreateRequest{ +func (a *IpamAPIService) IpamPrefixesCreate(ctx context.Context) ApiIpamPrefixesCreateRequest { + return ApiIpamPrefixesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IPAddress -func (a *IpamAPIService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreateRequest) (*IPAddress, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/" + localVarPath := localBasePath + "/api/ipam/prefixes/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableIPAddressRequest == nil { - return localVarReturnValue, nil, reportError("writableIPAddressRequest is required and must be specified") + if r.writablePrefixRequest == nil { + return localVarReturnValue, nil, reportError("writablePrefixRequest is required and must be specified") } // to determine the Content-Type header @@ -11545,7 +20379,7 @@ func (a *IpamAPIService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableIPAddressRequest + localVarPostBody = r.writablePrefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -11597,47 +20431,47 @@ func (a *IpamAPIService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpAddressesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamPrefixesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamIpAddressesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamIpAddressesDestroyExecute(r) +func (r ApiIpamPrefixesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamPrefixesDestroyExecute(r) } /* -IpamIpAddressesDestroy Method for IpamIpAddressesDestroy +IpamPrefixesDestroy Method for IpamPrefixesDestroy -Delete a IP address object. +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 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 prefix. + @return ApiIpamPrefixesDestroyRequest */ -func (a *IpamAPIService) IpamIpAddressesDestroy(ctx context.Context, id int32) ApiIpamIpAddressesDestroyRequest { - return ApiIpamIpAddressesDestroyRequest{ +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) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestroyRequest) (*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.IpamIpAddressesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/{id}/" + localVarPath := localBasePath + "/api/ipam/prefixes/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -11703,819 +20537,950 @@ func (a *IpamAPIService) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestr return localVarHTTPResponse, nil } -type ApiIpamIpAddressesListRequest struct { - ctx context.Context - ApiService *IpamAPIService - address *[]string - assigned *bool - assignedObjectId *[]int32 - assignedObjectIdEmpty *bool - assignedObjectIdGt *[]int32 - assignedObjectIdGte *[]int32 - assignedObjectIdLt *[]int32 - assignedObjectIdLte *[]int32 - assignedObjectIdN *[]int32 - assignedObjectType *int32 - assignedObjectTypeN *int32 - assignedToInterface *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 - 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 *[]int32 - maskLengthGte *float32 - maskLengthLte *float32 - modifiedByRequest *string - natInsideId *[]int32 - natInsideIdN *[]int32 - offset *int32 - ordering *string - parent *[]string - presentInVrf *string - presentInVrfId *string - q *string - role *[]string - roleN *[]string - serviceId *[]int32 - serviceIdN *[]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 - virtualMachine *[]string - virtualMachineId *[]int32 - vminterface *[]string - vminterfaceN *[]string - vminterfaceId *[]int32 - vminterfaceIdN *[]int32 - vrf *[]*string - vrfN *[]*string - vrfId *[]*int32 - vrfIdN *[]*int32 +type ApiIpamPrefixesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + 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 + 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 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string + markUtilized *bool + maskLength *[]int32 + maskLengthGte *float32 + maskLengthLte *float32 + modifiedByRequest *string + offset *int32 + ordering *string + prefix *[]string + presentInVrf *string + presentInVrfId *string + q *string + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + scopeId *[]int32 + scopeIdEmpty *bool + scopeIdGt *[]int32 + scopeIdGte *[]int32 + scopeIdLt *[]int32 + scopeIdLte *[]int32 + scopeIdN *[]int32 + scopeType *string + scopeTypeN *string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *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 ApiIpamIpAddressesListRequest) Address(address []string) ApiIpamIpAddressesListRequest { - r.address = &address +func (r ApiIpamPrefixesListRequest) Children(children []int32) ApiIpamPrefixesListRequest { + r.children = &children return r } -// Is assigned -func (r ApiIpamIpAddressesListRequest) Assigned(assigned bool) ApiIpamIpAddressesListRequest { - r.assigned = &assigned +func (r ApiIpamPrefixesListRequest) ChildrenEmpty(childrenEmpty []int32) ApiIpamPrefixesListRequest { + r.childrenEmpty = &childrenEmpty return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectId(assignedObjectId []int32) ApiIpamIpAddressesListRequest { - r.assignedObjectId = &assignedObjectId +func (r ApiIpamPrefixesListRequest) ChildrenGt(childrenGt []int32) ApiIpamPrefixesListRequest { + r.childrenGt = &childrenGt return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectIdEmpty(assignedObjectIdEmpty bool) ApiIpamIpAddressesListRequest { - r.assignedObjectIdEmpty = &assignedObjectIdEmpty +func (r ApiIpamPrefixesListRequest) ChildrenGte(childrenGte []int32) ApiIpamPrefixesListRequest { + r.childrenGte = &childrenGte return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectIdGt(assignedObjectIdGt []int32) ApiIpamIpAddressesListRequest { - r.assignedObjectIdGt = &assignedObjectIdGt +func (r ApiIpamPrefixesListRequest) ChildrenLt(childrenLt []int32) ApiIpamPrefixesListRequest { + r.childrenLt = &childrenLt return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectIdGte(assignedObjectIdGte []int32) ApiIpamIpAddressesListRequest { - r.assignedObjectIdGte = &assignedObjectIdGte +func (r ApiIpamPrefixesListRequest) ChildrenLte(childrenLte []int32) ApiIpamPrefixesListRequest { + r.childrenLte = &childrenLte return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectIdLt(assignedObjectIdLt []int32) ApiIpamIpAddressesListRequest { - r.assignedObjectIdLt = &assignedObjectIdLt +func (r ApiIpamPrefixesListRequest) ChildrenN(childrenN []int32) ApiIpamPrefixesListRequest { + r.childrenN = &childrenN return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectIdLte(assignedObjectIdLte []int32) ApiIpamIpAddressesListRequest { - r.assignedObjectIdLte = &assignedObjectIdLte +// Prefixes which contain this prefix or IP +func (r ApiIpamPrefixesListRequest) Contains(contains string) ApiIpamPrefixesListRequest { + r.contains = &contains return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectIdN(assignedObjectIdN []int32) ApiIpamIpAddressesListRequest { - r.assignedObjectIdN = &assignedObjectIdN +func (r ApiIpamPrefixesListRequest) Created(created []time.Time) ApiIpamPrefixesListRequest { + r.created = &created return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectType(assignedObjectType int32) ApiIpamIpAddressesListRequest { - r.assignedObjectType = &assignedObjectType +func (r ApiIpamPrefixesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamPrefixesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiIpamIpAddressesListRequest) AssignedObjectTypeN(assignedObjectTypeN int32) ApiIpamIpAddressesListRequest { - r.assignedObjectTypeN = &assignedObjectTypeN +func (r ApiIpamPrefixesListRequest) CreatedGt(createdGt []time.Time) ApiIpamPrefixesListRequest { + r.createdGt = &createdGt return r } -// Is assigned to an interface -func (r ApiIpamIpAddressesListRequest) AssignedToInterface(assignedToInterface bool) ApiIpamIpAddressesListRequest { - r.assignedToInterface = &assignedToInterface +func (r ApiIpamPrefixesListRequest) CreatedGte(createdGte []time.Time) ApiIpamPrefixesListRequest { + r.createdGte = &createdGte return r } -func (r ApiIpamIpAddressesListRequest) Created(created []time.Time) ApiIpamIpAddressesListRequest { - r.created = &created +func (r ApiIpamPrefixesListRequest) CreatedLt(createdLt []time.Time) ApiIpamPrefixesListRequest { + r.createdLt = &createdLt return r } -func (r ApiIpamIpAddressesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamIpAddressesListRequest { - r.createdEmpty = &createdEmpty +func (r ApiIpamPrefixesListRequest) CreatedLte(createdLte []time.Time) ApiIpamPrefixesListRequest { + r.createdLte = &createdLte return r } -func (r ApiIpamIpAddressesListRequest) CreatedGt(createdGt []time.Time) ApiIpamIpAddressesListRequest { - r.createdGt = &createdGt +func (r ApiIpamPrefixesListRequest) CreatedN(createdN []time.Time) ApiIpamPrefixesListRequest { + r.createdN = &createdN return r } -func (r ApiIpamIpAddressesListRequest) CreatedGte(createdGte []time.Time) ApiIpamIpAddressesListRequest { - r.createdGte = &createdGte +func (r ApiIpamPrefixesListRequest) CreatedByRequest(createdByRequest string) ApiIpamPrefixesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiIpamIpAddressesListRequest) CreatedLt(createdLt []time.Time) ApiIpamIpAddressesListRequest { - r.createdLt = &createdLt +func (r ApiIpamPrefixesListRequest) Depth(depth []int32) ApiIpamPrefixesListRequest { + r.depth = &depth return r } -func (r ApiIpamIpAddressesListRequest) CreatedLte(createdLte []time.Time) ApiIpamIpAddressesListRequest { - r.createdLte = &createdLte +func (r ApiIpamPrefixesListRequest) DepthEmpty(depthEmpty []int32) ApiIpamPrefixesListRequest { + r.depthEmpty = &depthEmpty return r } -func (r ApiIpamIpAddressesListRequest) CreatedN(createdN []time.Time) ApiIpamIpAddressesListRequest { - r.createdN = &createdN +func (r ApiIpamPrefixesListRequest) DepthGt(depthGt []int32) ApiIpamPrefixesListRequest { + r.depthGt = &depthGt return r } -func (r ApiIpamIpAddressesListRequest) CreatedByRequest(createdByRequest string) ApiIpamIpAddressesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiIpamPrefixesListRequest) DepthGte(depthGte []int32) ApiIpamPrefixesListRequest { + r.depthGte = &depthGte return r } -func (r ApiIpamIpAddressesListRequest) Description(description []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DepthLt(depthLt []int32) ApiIpamPrefixesListRequest { + r.depthLt = &depthLt + return r +} + +func (r ApiIpamPrefixesListRequest) DepthLte(depthLte []int32) ApiIpamPrefixesListRequest { + r.depthLte = &depthLte + return r +} + +func (r ApiIpamPrefixesListRequest) DepthN(depthN []int32) ApiIpamPrefixesListRequest { + r.depthN = &depthN + return r +} + +func (r ApiIpamPrefixesListRequest) Description(description []string) ApiIpamPrefixesListRequest { r.description = &description return r } -func (r ApiIpamIpAddressesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamPrefixesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamIpAddressesListRequest) DescriptionIc(descriptionIc []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionIc(descriptionIc []string) ApiIpamPrefixesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamIpAddressesListRequest) DescriptionIe(descriptionIe []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionIe(descriptionIe []string) ApiIpamPrefixesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamIpAddressesListRequest) DescriptionIew(descriptionIew []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionIew(descriptionIew []string) ApiIpamPrefixesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamIpAddressesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamPrefixesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamIpAddressesListRequest) DescriptionN(descriptionN []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionN(descriptionN []string) ApiIpamPrefixesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamIpAddressesListRequest) DescriptionNic(descriptionNic []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionNic(descriptionNic []string) ApiIpamPrefixesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamIpAddressesListRequest) DescriptionNie(descriptionNie []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionNie(descriptionNie []string) ApiIpamPrefixesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamIpAddressesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamPrefixesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamIpAddressesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamPrefixesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamIpAddressesListRequest) Device(device []string) ApiIpamIpAddressesListRequest { - r.device = &device +func (r ApiIpamPrefixesListRequest) Family(family float32) ApiIpamPrefixesListRequest { + r.family = &family return r } -func (r ApiIpamIpAddressesListRequest) DeviceId(deviceId []int32) ApiIpamIpAddressesListRequest { - r.deviceId = &deviceId +func (r ApiIpamPrefixesListRequest) Id(id []int32) ApiIpamPrefixesListRequest { + r.id = &id return r } -func (r ApiIpamIpAddressesListRequest) DnsName(dnsName []string) ApiIpamIpAddressesListRequest { - r.dnsName = &dnsName +func (r ApiIpamPrefixesListRequest) IdEmpty(idEmpty bool) ApiIpamPrefixesListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiIpamIpAddressesListRequest) DnsNameEmpty(dnsNameEmpty bool) ApiIpamIpAddressesListRequest { - r.dnsNameEmpty = &dnsNameEmpty +func (r ApiIpamPrefixesListRequest) IdGt(idGt []int32) ApiIpamPrefixesListRequest { + r.idGt = &idGt return r } -func (r ApiIpamIpAddressesListRequest) DnsNameIc(dnsNameIc []string) ApiIpamIpAddressesListRequest { - r.dnsNameIc = &dnsNameIc +func (r ApiIpamPrefixesListRequest) IdGte(idGte []int32) ApiIpamPrefixesListRequest { + r.idGte = &idGte return r } -func (r ApiIpamIpAddressesListRequest) DnsNameIe(dnsNameIe []string) ApiIpamIpAddressesListRequest { - r.dnsNameIe = &dnsNameIe +func (r ApiIpamPrefixesListRequest) IdLt(idLt []int32) ApiIpamPrefixesListRequest { + r.idLt = &idLt return r } -func (r ApiIpamIpAddressesListRequest) DnsNameIew(dnsNameIew []string) ApiIpamIpAddressesListRequest { - r.dnsNameIew = &dnsNameIew +func (r ApiIpamPrefixesListRequest) IdLte(idLte []int32) ApiIpamPrefixesListRequest { + r.idLte = &idLte return r } -func (r ApiIpamIpAddressesListRequest) DnsNameIsw(dnsNameIsw []string) ApiIpamIpAddressesListRequest { - r.dnsNameIsw = &dnsNameIsw +func (r ApiIpamPrefixesListRequest) IdN(idN []int32) ApiIpamPrefixesListRequest { + r.idN = &idN return r } -func (r ApiIpamIpAddressesListRequest) DnsNameN(dnsNameN []string) ApiIpamIpAddressesListRequest { - r.dnsNameN = &dnsNameN +func (r ApiIpamPrefixesListRequest) IsPool(isPool bool) ApiIpamPrefixesListRequest { + r.isPool = &isPool return r } -func (r ApiIpamIpAddressesListRequest) DnsNameNic(dnsNameNic []string) ApiIpamIpAddressesListRequest { - r.dnsNameNic = &dnsNameNic +func (r ApiIpamPrefixesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdated = &lastUpdated return r } -func (r ApiIpamIpAddressesListRequest) DnsNameNie(dnsNameNie []string) ApiIpamIpAddressesListRequest { - r.dnsNameNie = &dnsNameNie +func (r ApiIpamPrefixesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamIpAddressesListRequest) DnsNameNiew(dnsNameNiew []string) ApiIpamIpAddressesListRequest { - r.dnsNameNiew = &dnsNameNiew +func (r ApiIpamPrefixesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamIpAddressesListRequest) DnsNameNisw(dnsNameNisw []string) ApiIpamIpAddressesListRequest { - r.dnsNameNisw = &dnsNameNisw +func (r ApiIpamPrefixesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamIpAddressesListRequest) Family(family float32) ApiIpamIpAddressesListRequest { - r.family = &family +func (r ApiIpamPrefixesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdatedLt = &lastUpdatedLt return r } -// FHRP group (ID) -func (r ApiIpamIpAddressesListRequest) FhrpgroupId(fhrpgroupId []int32) ApiIpamIpAddressesListRequest { - r.fhrpgroupId = &fhrpgroupId +func (r ApiIpamPrefixesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdatedLte = &lastUpdatedLte return r } -// FHRP group (ID) -func (r ApiIpamIpAddressesListRequest) FhrpgroupIdN(fhrpgroupIdN []int32) ApiIpamIpAddressesListRequest { - r.fhrpgroupIdN = &fhrpgroupIdN +func (r ApiIpamPrefixesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdatedN = &lastUpdatedN return r } -func (r ApiIpamIpAddressesListRequest) Id(id []int32) ApiIpamIpAddressesListRequest { - r.id = &id +// Number of results to return per page. +func (r ApiIpamPrefixesListRequest) Limit(limit int32) ApiIpamPrefixesListRequest { + r.limit = &limit return r } -func (r ApiIpamIpAddressesListRequest) IdEmpty(idEmpty bool) ApiIpamIpAddressesListRequest { - r.idEmpty = &idEmpty +func (r ApiIpamPrefixesListRequest) Location(location []string) ApiIpamPrefixesListRequest { + r.location = &location return r } -func (r ApiIpamIpAddressesListRequest) IdGt(idGt []int32) ApiIpamIpAddressesListRequest { - r.idGt = &idGt +func (r ApiIpamPrefixesListRequest) LocationN(locationN []string) ApiIpamPrefixesListRequest { + r.locationN = &locationN return r } -func (r ApiIpamIpAddressesListRequest) IdGte(idGte []int32) ApiIpamIpAddressesListRequest { - r.idGte = &idGte +func (r ApiIpamPrefixesListRequest) LocationId(locationId []string) ApiIpamPrefixesListRequest { + r.locationId = &locationId return r } -func (r ApiIpamIpAddressesListRequest) IdLt(idLt []int32) ApiIpamIpAddressesListRequest { - r.idLt = &idLt +func (r ApiIpamPrefixesListRequest) LocationIdN(locationIdN []string) ApiIpamPrefixesListRequest { + r.locationIdN = &locationIdN return r } -func (r ApiIpamIpAddressesListRequest) IdLte(idLte []int32) ApiIpamIpAddressesListRequest { - r.idLte = &idLte +func (r ApiIpamPrefixesListRequest) MarkUtilized(markUtilized bool) ApiIpamPrefixesListRequest { + r.markUtilized = &markUtilized return r } -func (r ApiIpamIpAddressesListRequest) IdN(idN []int32) ApiIpamIpAddressesListRequest { - r.idN = &idN +func (r ApiIpamPrefixesListRequest) MaskLength(maskLength []int32) ApiIpamPrefixesListRequest { + r.maskLength = &maskLength return r } -// Interface (name) -func (r ApiIpamIpAddressesListRequest) Interface_(interface_ []string) ApiIpamIpAddressesListRequest { - r.interface_ = &interface_ +func (r ApiIpamPrefixesListRequest) MaskLengthGte(maskLengthGte float32) ApiIpamPrefixesListRequest { + r.maskLengthGte = &maskLengthGte return r } -// Interface (name) -func (r ApiIpamIpAddressesListRequest) InterfaceN(interfaceN []string) ApiIpamIpAddressesListRequest { - r.interfaceN = &interfaceN +func (r ApiIpamPrefixesListRequest) MaskLengthLte(maskLengthLte float32) ApiIpamPrefixesListRequest { + r.maskLengthLte = &maskLengthLte return r } -// Interface (ID) -func (r ApiIpamIpAddressesListRequest) InterfaceId(interfaceId []int32) ApiIpamIpAddressesListRequest { - r.interfaceId = &interfaceId +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 + return r +} + +// Which field to use when ordering the results. +func (r ApiIpamPrefixesListRequest) Ordering(ordering string) ApiIpamPrefixesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiIpamPrefixesListRequest) Prefix(prefix []string) ApiIpamPrefixesListRequest { + r.prefix = &prefix + return r +} + +func (r ApiIpamPrefixesListRequest) PresentInVrf(presentInVrf string) ApiIpamPrefixesListRequest { + r.presentInVrf = &presentInVrf + return r +} + +func (r ApiIpamPrefixesListRequest) PresentInVrfId(presentInVrfId string) ApiIpamPrefixesListRequest { + r.presentInVrfId = &presentInVrfId + return r +} + +// Search +func (r ApiIpamPrefixesListRequest) Q(q string) ApiIpamPrefixesListRequest { + r.q = &q + return r +} + +func (r ApiIpamPrefixesListRequest) Region(region []string) ApiIpamPrefixesListRequest { + r.region = ®ion + return r +} + +func (r ApiIpamPrefixesListRequest) RegionN(regionN []string) ApiIpamPrefixesListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiIpamPrefixesListRequest) RegionId(regionId []string) ApiIpamPrefixesListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []string) ApiIpamPrefixesListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Role (slug) +func (r ApiIpamPrefixesListRequest) Role(role []string) ApiIpamPrefixesListRequest { + r.role = &role + return r +} + +// Role (slug) +func (r ApiIpamPrefixesListRequest) RoleN(roleN []string) ApiIpamPrefixesListRequest { + r.roleN = &roleN + return r +} + +// Role (ID) +func (r ApiIpamPrefixesListRequest) RoleId(roleId []*int32) ApiIpamPrefixesListRequest { + r.roleId = &roleId + return r +} + +// Role (ID) +func (r ApiIpamPrefixesListRequest) RoleIdN(roleIdN []*int32) ApiIpamPrefixesListRequest { + r.roleIdN = &roleIdN + return r +} + +func (r ApiIpamPrefixesListRequest) ScopeId(scopeId []int32) ApiIpamPrefixesListRequest { + r.scopeId = &scopeId return r } -// Interface (ID) -func (r ApiIpamIpAddressesListRequest) InterfaceIdN(interfaceIdN []int32) ApiIpamIpAddressesListRequest { - r.interfaceIdN = &interfaceIdN +func (r ApiIpamPrefixesListRequest) ScopeIdEmpty(scopeIdEmpty bool) ApiIpamPrefixesListRequest { + r.scopeIdEmpty = &scopeIdEmpty return r } -func (r ApiIpamIpAddressesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamIpAddressesListRequest { - r.lastUpdated = &lastUpdated +func (r ApiIpamPrefixesListRequest) ScopeIdGt(scopeIdGt []int32) ApiIpamPrefixesListRequest { + r.scopeIdGt = &scopeIdGt return r } -func (r ApiIpamIpAddressesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamIpAddressesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty +func (r ApiIpamPrefixesListRequest) ScopeIdGte(scopeIdGte []int32) ApiIpamPrefixesListRequest { + r.scopeIdGte = &scopeIdGte return r } -func (r ApiIpamIpAddressesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamIpAddressesListRequest { - r.lastUpdatedGt = &lastUpdatedGt +func (r ApiIpamPrefixesListRequest) ScopeIdLt(scopeIdLt []int32) ApiIpamPrefixesListRequest { + r.scopeIdLt = &scopeIdLt return r } -func (r ApiIpamIpAddressesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamIpAddressesListRequest { - r.lastUpdatedGte = &lastUpdatedGte +func (r ApiIpamPrefixesListRequest) ScopeIdLte(scopeIdLte []int32) ApiIpamPrefixesListRequest { + r.scopeIdLte = &scopeIdLte return r } -func (r ApiIpamIpAddressesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamIpAddressesListRequest { - r.lastUpdatedLt = &lastUpdatedLt +func (r ApiIpamPrefixesListRequest) ScopeIdN(scopeIdN []int32) ApiIpamPrefixesListRequest { + r.scopeIdN = &scopeIdN return r } -func (r ApiIpamIpAddressesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamIpAddressesListRequest { - r.lastUpdatedLte = &lastUpdatedLte +func (r ApiIpamPrefixesListRequest) ScopeType(scopeType string) ApiIpamPrefixesListRequest { + r.scopeType = &scopeType return r } -func (r ApiIpamIpAddressesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamIpAddressesListRequest { - r.lastUpdatedN = &lastUpdatedN +func (r ApiIpamPrefixesListRequest) ScopeTypeN(scopeTypeN string) ApiIpamPrefixesListRequest { + r.scopeTypeN = &scopeTypeN return r } -// Number of results to return per page. -func (r ApiIpamIpAddressesListRequest) Limit(limit int32) ApiIpamIpAddressesListRequest { - r.limit = &limit +// Site (slug) +func (r ApiIpamPrefixesListRequest) Site(site []string) ApiIpamPrefixesListRequest { + r.site = &site return r } -func (r ApiIpamIpAddressesListRequest) MaskLength(maskLength []int32) ApiIpamIpAddressesListRequest { - r.maskLength = &maskLength +// Site (slug) +func (r ApiIpamPrefixesListRequest) SiteN(siteN []string) ApiIpamPrefixesListRequest { + r.siteN = &siteN return r } -func (r ApiIpamIpAddressesListRequest) MaskLengthGte(maskLengthGte float32) ApiIpamIpAddressesListRequest { - r.maskLengthGte = &maskLengthGte +func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []string) ApiIpamPrefixesListRequest { + r.siteGroup = &siteGroup return r } -func (r ApiIpamIpAddressesListRequest) MaskLengthLte(maskLengthLte float32) ApiIpamIpAddressesListRequest { - r.maskLengthLte = &maskLengthLte +func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []string) ApiIpamPrefixesListRequest { + r.siteGroupN = &siteGroupN return r } -func (r ApiIpamIpAddressesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamIpAddressesListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []string) ApiIpamPrefixesListRequest { + r.siteGroupId = &siteGroupId return r } -// NAT inside IP address (ID) -func (r ApiIpamIpAddressesListRequest) NatInsideId(natInsideId []int32) ApiIpamIpAddressesListRequest { - r.natInsideId = &natInsideId +func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamPrefixesListRequest { + r.siteGroupIdN = &siteGroupIdN return r } -// NAT inside IP address (ID) -func (r ApiIpamIpAddressesListRequest) NatInsideIdN(natInsideIdN []int32) ApiIpamIpAddressesListRequest { - r.natInsideIdN = &natInsideIdN +// Site (ID) +func (r ApiIpamPrefixesListRequest) SiteId(siteId []int32) ApiIpamPrefixesListRequest { + r.siteId = &siteId return r } -// The initial index from which to return the results. -func (r ApiIpamIpAddressesListRequest) Offset(offset int32) ApiIpamIpAddressesListRequest { - r.offset = &offset +// Site (ID) +func (r ApiIpamPrefixesListRequest) SiteIdN(siteIdN []int32) ApiIpamPrefixesListRequest { + r.siteIdN = &siteIdN return r } -// Which field to use when ordering the results. -func (r ApiIpamIpAddressesListRequest) Ordering(ordering string) ApiIpamIpAddressesListRequest { - r.ordering = &ordering +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) Status(status []string) ApiIpamPrefixesListRequest { + r.status = &status return r } -func (r ApiIpamIpAddressesListRequest) Parent(parent []string) ApiIpamIpAddressesListRequest { - r.parent = &parent +func (r ApiIpamPrefixesListRequest) StatusEmpty(statusEmpty bool) ApiIpamPrefixesListRequest { + r.statusEmpty = &statusEmpty return r } -func (r ApiIpamIpAddressesListRequest) PresentInVrf(presentInVrf string) ApiIpamIpAddressesListRequest { - r.presentInVrf = &presentInVrf +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusIc(statusIc []string) ApiIpamPrefixesListRequest { + r.statusIc = &statusIc return r } -func (r ApiIpamIpAddressesListRequest) PresentInVrfId(presentInVrfId string) ApiIpamIpAddressesListRequest { - r.presentInVrfId = &presentInVrfId +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusIe(statusIe []string) ApiIpamPrefixesListRequest { + r.statusIe = &statusIe return r } -// Search -func (r ApiIpamIpAddressesListRequest) Q(q string) ApiIpamIpAddressesListRequest { - r.q = &q +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusIew(statusIew []string) ApiIpamPrefixesListRequest { + r.statusIew = &statusIew return r } -// The functional role of this IP -func (r ApiIpamIpAddressesListRequest) Role(role []string) ApiIpamIpAddressesListRequest { - r.role = &role +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusIsw(statusIsw []string) ApiIpamPrefixesListRequest { + r.statusIsw = &statusIsw return r } -// The functional role of this IP -func (r ApiIpamIpAddressesListRequest) RoleN(roleN []string) ApiIpamIpAddressesListRequest { - r.roleN = &roleN +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusN(statusN []string) ApiIpamPrefixesListRequest { + r.statusN = &statusN return r } -// Service (ID) -func (r ApiIpamIpAddressesListRequest) ServiceId(serviceId []int32) ApiIpamIpAddressesListRequest { - r.serviceId = &serviceId +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusNic(statusNic []string) ApiIpamPrefixesListRequest { + r.statusNic = &statusNic return r } -// Service (ID) -func (r ApiIpamIpAddressesListRequest) ServiceIdN(serviceIdN []int32) ApiIpamIpAddressesListRequest { - r.serviceIdN = &serviceIdN +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusNie(statusNie []string) ApiIpamPrefixesListRequest { + r.statusNie = &statusNie return r } -// The operational status of this IP -func (r ApiIpamIpAddressesListRequest) Status(status []string) ApiIpamIpAddressesListRequest { - r.status = &status +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusNiew(statusNiew []string) ApiIpamPrefixesListRequest { + r.statusNiew = &statusNiew return r } -// The operational status of this IP -func (r ApiIpamIpAddressesListRequest) StatusN(statusN []string) ApiIpamIpAddressesListRequest { - r.statusN = &statusN +// Operational status of this prefix +func (r ApiIpamPrefixesListRequest) StatusNisw(statusNisw []string) ApiIpamPrefixesListRequest { + r.statusNisw = &statusNisw return r } -func (r ApiIpamIpAddressesListRequest) Tag(tag []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) Tag(tag []string) ApiIpamPrefixesListRequest { r.tag = &tag return r } -func (r ApiIpamIpAddressesListRequest) TagN(tagN []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TagN(tagN []string) ApiIpamPrefixesListRequest { r.tagN = &tagN return r } // Tenant (slug) -func (r ApiIpamIpAddressesListRequest) Tenant(tenant []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) Tenant(tenant []string) ApiIpamPrefixesListRequest { r.tenant = &tenant return r } // Tenant (slug) -func (r ApiIpamIpAddressesListRequest) TenantN(tenantN []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TenantN(tenantN []string) ApiIpamPrefixesListRequest { r.tenantN = &tenantN return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []string) ApiIpamPrefixesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamPrefixesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamPrefixesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamPrefixesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } // Tenant (ID) -func (r ApiIpamIpAddressesListRequest) TenantId(tenantId []*int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TenantId(tenantId []*int32) ApiIpamPrefixesListRequest { r.tenantId = &tenantId return r } // Tenant (ID) -func (r ApiIpamIpAddressesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamPrefixesListRequest { r.tenantIdN = &tenantIdN return r } -func (r ApiIpamIpAddressesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamPrefixesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamIpAddressesListRequest) VirtualMachine(virtualMachine []string) ApiIpamIpAddressesListRequest { - r.virtualMachine = &virtualMachine +// VLAN (ID) +func (r ApiIpamPrefixesListRequest) VlanId(vlanId []*int32) ApiIpamPrefixesListRequest { + r.vlanId = &vlanId return r } -func (r ApiIpamIpAddressesListRequest) VirtualMachineId(virtualMachineId []int32) ApiIpamIpAddressesListRequest { - r.virtualMachineId = &virtualMachineId +// VLAN (ID) +func (r ApiIpamPrefixesListRequest) VlanIdN(vlanIdN []*int32) ApiIpamPrefixesListRequest { + r.vlanIdN = &vlanIdN return r } -// VM interface (name) -func (r ApiIpamIpAddressesListRequest) Vminterface(vminterface []string) ApiIpamIpAddressesListRequest { - r.vminterface = &vminterface +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVid(vlanVid int32) ApiIpamPrefixesListRequest { + r.vlanVid = &vlanVid return r } -// VM interface (name) -func (r ApiIpamIpAddressesListRequest) VminterfaceN(vminterfaceN []string) ApiIpamIpAddressesListRequest { - r.vminterfaceN = &vminterfaceN +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVidEmpty(vlanVidEmpty int32) ApiIpamPrefixesListRequest { + r.vlanVidEmpty = &vlanVidEmpty return r } -// VM interface (ID) -func (r ApiIpamIpAddressesListRequest) VminterfaceId(vminterfaceId []int32) ApiIpamIpAddressesListRequest { - r.vminterfaceId = &vminterfaceId +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVidGt(vlanVidGt int32) ApiIpamPrefixesListRequest { + r.vlanVidGt = &vlanVidGt return r } -// VM interface (ID) -func (r ApiIpamIpAddressesListRequest) VminterfaceIdN(vminterfaceIdN []int32) ApiIpamIpAddressesListRequest { - r.vminterfaceIdN = &vminterfaceIdN +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVidGte(vlanVidGte int32) ApiIpamPrefixesListRequest { + r.vlanVidGte = &vlanVidGte + return r +} + +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVidLt(vlanVidLt int32) ApiIpamPrefixesListRequest { + r.vlanVidLt = &vlanVidLt + return r +} + +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVidLte(vlanVidLte int32) ApiIpamPrefixesListRequest { + r.vlanVidLte = &vlanVidLte + return r +} + +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVidN(vlanVidN int32) ApiIpamPrefixesListRequest { + r.vlanVidN = &vlanVidN return r } // VRF (RD) -func (r ApiIpamIpAddressesListRequest) Vrf(vrf []*string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) Vrf(vrf []*string) ApiIpamPrefixesListRequest { r.vrf = &vrf return r } // VRF (RD) -func (r ApiIpamIpAddressesListRequest) VrfN(vrfN []*string) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) VrfN(vrfN []*string) ApiIpamPrefixesListRequest { r.vrfN = &vrfN return r } // VRF -func (r ApiIpamIpAddressesListRequest) VrfId(vrfId []*int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) VrfId(vrfId []*int32) ApiIpamPrefixesListRequest { r.vrfId = &vrfId return r } // VRF -func (r ApiIpamIpAddressesListRequest) VrfIdN(vrfIdN []*int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamPrefixesListRequest) VrfIdN(vrfIdN []*int32) ApiIpamPrefixesListRequest { r.vrfIdN = &vrfIdN return r } -func (r ApiIpamIpAddressesListRequest) Execute() (*PaginatedIPAddressList, *http.Response, error) { - return r.ApiService.IpamIpAddressesListExecute(r) +// Within prefix +func (r ApiIpamPrefixesListRequest) Within(within string) ApiIpamPrefixesListRequest { + r.within = &within + return r +} + +// Within and including prefix +func (r ApiIpamPrefixesListRequest) WithinInclude(withinInclude string) ApiIpamPrefixesListRequest { + r.withinInclude = &withinInclude + return r +} + +func (r ApiIpamPrefixesListRequest) Execute() (*PaginatedPrefixList, *http.Response, error) { + return r.ApiService.IpamPrefixesListExecute(r) } /* -IpamIpAddressesList Method for IpamIpAddressesList +IpamPrefixesList Method for IpamPrefixesList -Get a list of IP address objects. +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 ApiIpamIpAddressesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesListRequest */ -func (a *IpamAPIService) IpamIpAddressesList(ctx context.Context) ApiIpamIpAddressesListRequest { - return ApiIpamIpAddressesListRequest{ +func (a *IpamAPIService) IpamPrefixesList(ctx context.Context) ApiIpamPrefixesListRequest { + return ApiIpamPrefixesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedIPAddressList -func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequest) (*PaginatedIPAddressList, *http.Response, error) { +// @return PaginatedPrefixList +func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (*PaginatedPrefixList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIPAddressList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPrefixList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/" + localVarPath := localBasePath + "/api/ipam/prefixes/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.address != nil { - t := *r.address + if r.children != nil { + t := *r.children if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children", t, "form", "multi") } } - if r.assigned != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned", r.assigned, "") - } - if r.assignedObjectId != nil { - t := *r.assignedObjectId + 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, "assigned_object_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__empty", t, "form", "multi") } } - if r.assignedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__empty", r.assignedObjectIdEmpty, "") - } - if r.assignedObjectIdGt != nil { - t := *r.assignedObjectIdGt + 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, "assigned_object_id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__gt", t, "form", "multi") } } - if r.assignedObjectIdGte != nil { - t := *r.assignedObjectIdGte + if r.childrenGte != nil { + t := *r.childrenGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__gte", t, "form", "multi") } } - if r.assignedObjectIdLt != nil { - t := *r.assignedObjectIdLt + if r.childrenLt != nil { + t := *r.childrenLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__lt", t, "form", "multi") } } - if r.assignedObjectIdLte != nil { - t := *r.assignedObjectIdLte + if r.childrenLte != nil { + t := *r.childrenLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__lte", t, "form", "multi") } } - if r.assignedObjectIdN != nil { - t := *r.assignedObjectIdN + if r.childrenN != nil { + t := *r.childrenN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__n", t, "form", "multi") } } - if r.assignedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type", r.assignedObjectType, "") - } - if r.assignedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type__n", r.assignedObjectTypeN, "") - } - if r.assignedToInterface != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_to_interface", r.assignedToInterface, "") + if r.contains != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "contains", r.contains, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -12523,10 +21488,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -12534,10 +21499,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -12545,10 +21510,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -12556,10 +21521,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -12567,10 +21532,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -12578,38 +21543,115 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + if r.depth != nil { + t := *r.depth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__empty", t, "form", "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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gt", t, "form", "multi") + } + } + if r.depthGte != nil { + t := *r.depthGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gte", t, "form", "multi") + } + } + if r.depthLt != nil { + t := *r.depthLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lt", t, "form", "multi") + } + } + if r.depthLte != nil { + t := *r.depthLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lte", t, "form", "multi") + } + } + if r.depthN != nil { + t := *r.depthN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__n", t, "form", "multi") + } } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -12617,10 +21659,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -12628,10 +21670,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -12639,10 +21681,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -12650,10 +21692,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -12661,10 +21703,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -12672,10 +21714,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -12683,10 +21725,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -12694,497 +21736,622 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.device != nil { - t := *r.device + if r.family != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "form", "") + } + 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, "device", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } - if r.deviceId != nil { - t := *r.deviceId + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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, "device_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } - if r.dnsName != nil { - t := *r.dnsName + 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, "dns_name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } - if r.dnsNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__empty", r.dnsNameEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") + } } - if r.dnsNameIc != nil { - t := *r.dnsNameIc + 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, "dns_name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } - if r.dnsNameIe != nil { - t := *r.dnsNameIe + 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, "dns_name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.dnsNameIew != nil { - t := *r.dnsNameIew + if r.isPool != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_pool", r.isPool, "form", "") + } + 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, "dns_name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } - if r.dnsNameIsw != nil { - t := *r.dnsNameIsw + 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, "dns_name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } - if r.dnsNameN != nil { - t := *r.dnsNameN + 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, "dns_name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.dnsNameNic != nil { - t := *r.dnsNameNic + 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, "dns_name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.dnsNameNie != nil { - t := *r.dnsNameNie + 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, "dns_name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.dnsNameNiew != nil { - t := *r.dnsNameNiew + 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, "dns_name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.dnsNameNisw != nil { - t := *r.dnsNameNisw + 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, "dns_name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.family != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "") + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.fhrpgroupId != nil { - t := *r.fhrpgroupId + 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, "fhrpgroup_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } - if r.fhrpgroupIdN != nil { - t := *r.fhrpgroupIdN + 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, "fhrpgroup_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") + } } - if r.idGt != nil { - t := *r.idGt + if r.markUtilized != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mark_utilized", r.markUtilized, "form", "") + } + if r.maskLength != nil { + t := *r.maskLength 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.maskLengthGte != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__gte", r.maskLengthGte, "form", "") + } + if r.maskLengthLte != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__lte", r.maskLengthLte, "form", "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.prefix != nil { + t := *r.prefix 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.presentInVrf != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf", r.presentInVrf, "form", "") + } + if r.presentInVrfId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf_id", r.presentInVrfId, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.interface_ != nil { - t := *r.interface_ + 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, "interface", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.interfaceN != nil { - t := *r.interfaceN + 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, "interface__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } - if r.interfaceId != nil { - t := *r.interfaceId + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") + } + } + if r.scopeId != nil { + t := *r.scopeId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", t, "form", "multi") + } + } + if r.scopeIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__empty", r.scopeIdEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", t, "form", "multi") + } + } + if r.scopeIdGte != nil { + t := *r.scopeIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", t, "form", "multi") + } + } + if r.scopeIdLt != nil { + t := *r.scopeIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", t, "form", "multi") + } + } + if r.scopeIdLte != nil { + t := *r.scopeIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", t, "form", "multi") + } + } + if r.scopeIdN != nil { + t := *r.scopeIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", t, "form", "multi") } } - if r.interfaceIdN != nil { - t := *r.interfaceIdN + if r.scopeType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type", r.scopeType, "form", "") + } + if r.scopeTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type__n", r.scopeTypeN, "form", "") + } + 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, "interface_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + 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, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + 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, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + 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, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + 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, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + 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, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + 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, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + 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, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.maskLength != nil { - t := *r.maskLength + 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, "mask_length", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.maskLengthGte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__gte", r.maskLengthGte, "") - } - if r.maskLengthLte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__lte", r.maskLengthLte, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") } - if r.natInsideId != nil { - t := *r.natInsideId + if r.statusIc != nil { + t := *r.statusIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.natInsideIdN != nil { - t := *r.natInsideIdN + if r.statusIe != nil { + t := *r.statusIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "nat_inside_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - 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 r.statusIew != nil { + t := *r.statusIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } } - if r.presentInVrf != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf", r.presentInVrf, "") - } - if r.presentInVrfId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf_id", r.presentInVrfId, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.role != nil { - t := *r.role + if r.statusIsw != nil { + t := *r.statusIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + if r.statusN != nil { + t := *r.statusN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.serviceId != nil { - t := *r.serviceId + if r.statusNic != nil { + t := *r.statusNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.serviceIdN != nil { - t := *r.serviceIdN + if r.statusNie != nil { + t := *r.statusNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.status != nil { - t := *r.status + if r.statusNiew != nil { + t := *r.statusNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + if r.statusNisw != nil { + t := *r.statusNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -13192,10 +22359,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -13203,10 +22370,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -13214,10 +22381,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -13225,10 +22392,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -13236,10 +22403,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -13247,10 +22414,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -13258,10 +22425,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -13269,10 +22436,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -13280,10 +22447,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -13291,90 +22458,67 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - if r.virtualMachine != nil { - t := *r.virtualMachine + if r.vlanId != nil { + t := *r.vlanId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "form", "multi") } } - if r.virtualMachineId != nil { - t := *r.virtualMachineId + if r.vlanIdN != nil { + t := *r.vlanIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "form", "multi") } } - if r.vminterface != nil { - t := *r.vminterface - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi") - } + if r.vlanVid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid", r.vlanVid, "form", "") } - if r.vminterfaceN != nil { - t := *r.vminterfaceN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi") - } + if r.vlanVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__empty", r.vlanVidEmpty, "form", "") } - if r.vminterfaceId != nil { - t := *r.vminterfaceId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi") - } + if r.vlanVidGt != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gt", r.vlanVidGt, "form", "") } - if r.vminterfaceIdN != nil { - t := *r.vminterfaceIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi") - } + if r.vlanVidGte != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gte", r.vlanVidGte, "form", "") + } + if r.vlanVidLt != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lt", r.vlanVidLt, "form", "") + } + if r.vlanVidLte != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lte", r.vlanVidLte, "form", "") + } + if r.vlanVidN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__n", r.vlanVidN, "form", "") } if r.vrf != nil { t := *r.vrf if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "form", "multi") } } if r.vrfN != nil { @@ -13382,10 +22526,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "form", "multi") } } if r.vrfId != nil { @@ -13393,10 +22537,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "form", "multi") } } if r.vrfIdN != nil { @@ -13404,12 +22548,18 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "form", "multi") } } + if r.within != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "within", r.within, "form", "") + } + if r.withinInclude != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "within_include", r.withinInclude, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13478,56 +22628,55 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpAddressesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedWritableIPAddressRequest *PatchedWritableIPAddressRequest +type ApiIpamPrefixesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedWritablePrefixRequest *PatchedWritablePrefixRequest } -func (r ApiIpamIpAddressesPartialUpdateRequest) PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest PatchedWritableIPAddressRequest) ApiIpamIpAddressesPartialUpdateRequest { - r.patchedWritableIPAddressRequest = &patchedWritableIPAddressRequest +func (r ApiIpamPrefixesPartialUpdateRequest) PatchedWritablePrefixRequest(patchedWritablePrefixRequest PatchedWritablePrefixRequest) ApiIpamPrefixesPartialUpdateRequest { + r.patchedWritablePrefixRequest = &patchedWritablePrefixRequest return r } -func (r ApiIpamIpAddressesPartialUpdateRequest) Execute() (*IPAddress, *http.Response, error) { - return r.ApiService.IpamIpAddressesPartialUpdateExecute(r) +func (r ApiIpamPrefixesPartialUpdateRequest) Execute() (*Prefix, *http.Response, error) { + return r.ApiService.IpamPrefixesPartialUpdateExecute(r) } /* -IpamIpAddressesPartialUpdate Method for IpamIpAddressesPartialUpdate +IpamPrefixesPartialUpdate Method for IpamPrefixesPartialUpdate -Patch a IP address object. +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 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 prefix. + @return ApiIpamPrefixesPartialUpdateRequest */ -func (a *IpamAPIService) IpamIpAddressesPartialUpdate(ctx context.Context, id int32) ApiIpamIpAddressesPartialUpdateRequest { - return ApiIpamIpAddressesPartialUpdateRequest{ +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 IPAddress -func (a *IpamAPIService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddressesPartialUpdateRequest) (*IPAddress, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesPartialUpdateRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/{id}/" + localVarPath := localBasePath + "/api/ipam/prefixes/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -13552,7 +22701,7 @@ func (a *IpamAPIService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddresse localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableIPAddressRequest + localVarPostBody = r.patchedWritablePrefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -13604,50 +22753,49 @@ func (a *IpamAPIService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddresse return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpAddressesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamPrefixesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamIpAddressesRetrieveRequest) Execute() (*IPAddress, *http.Response, error) { - return r.ApiService.IpamIpAddressesRetrieveExecute(r) +func (r ApiIpamPrefixesRetrieveRequest) Execute() (*Prefix, *http.Response, error) { + return r.ApiService.IpamPrefixesRetrieveExecute(r) } /* -IpamIpAddressesRetrieve Method for IpamIpAddressesRetrieve +IpamPrefixesRetrieve Method for IpamPrefixesRetrieve -Get a IP address object. +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 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 prefix. + @return ApiIpamPrefixesRetrieveRequest */ -func (a *IpamAPIService) IpamIpAddressesRetrieve(ctx context.Context, id int32) ApiIpamIpAddressesRetrieveRequest { - return ApiIpamIpAddressesRetrieveRequest{ +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 IPAddress -func (a *IpamAPIService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetrieveRequest) (*IPAddress, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-addresses/{id}/" + localVarPath := localBasePath + "/api/ipam/prefixes/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -13722,192 +22870,62 @@ func (a *IpamAPIService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpAddressesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - writableIPAddressRequest *WritableIPAddressRequest -} - -func (r ApiIpamIpAddressesUpdateRequest) WritableIPAddressRequest(writableIPAddressRequest WritableIPAddressRequest) ApiIpamIpAddressesUpdateRequest { - r.writableIPAddressRequest = &writableIPAddressRequest - return r -} - -func (r ApiIpamIpAddressesUpdateRequest) Execute() (*IPAddress, *http.Response, error) { - return r.ApiService.IpamIpAddressesUpdateExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamIpAddressesUpdate(ctx context.Context, id int32) ApiIpamIpAddressesUpdateRequest { - return ApiIpamIpAddressesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return IPAddress -func (a *IpamAPIService) IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdateRequest) (*IPAddress, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/ipam/ip-addresses/{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.writableIPAddressRequest == nil { - return localVarReturnValue, nil, reportError("writableIPAddressRequest 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.writableIPAddressRequest - 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 ApiIpamIpRangesAvailableIpsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - iPAddressRequest *[]IPAddressRequest +type ApiIpamPrefixesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + writablePrefixRequest *WritablePrefixRequest } -func (r ApiIpamIpRangesAvailableIpsCreateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamIpRangesAvailableIpsCreateRequest { - r.iPAddressRequest = &iPAddressRequest +func (r ApiIpamPrefixesUpdateRequest) WritablePrefixRequest(writablePrefixRequest WritablePrefixRequest) ApiIpamPrefixesUpdateRequest { + r.writablePrefixRequest = &writablePrefixRequest return r } -func (r ApiIpamIpRangesAvailableIpsCreateRequest) Execute() ([]IPAddress, *http.Response, error) { - return r.ApiService.IpamIpRangesAvailableIpsCreateExecute(r) +func (r ApiIpamPrefixesUpdateRequest) Execute() (*Prefix, *http.Response, error) { + return r.ApiService.IpamPrefixesUpdateExecute(r) } /* -IpamIpRangesAvailableIpsCreate Method for IpamIpRangesAvailableIpsCreate +IpamPrefixesUpdate Method for IpamPrefixesUpdate -Post a IP address object. +Put a prefix 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 A unique integer value identifying this prefix. + @return ApiIpamPrefixesUpdateRequest */ -func (a *IpamAPIService) IpamIpRangesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsCreateRequest { - return ApiIpamIpRangesAvailableIpsCreateRequest{ +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 []IPAddress -func (a *IpamAPIService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRangesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/available-ips/" + localVarPath := localBasePath + "/api/ipam/prefixes/{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.iPAddressRequest == nil { - return localVarReturnValue, nil, reportError("iPAddressRequest is required and must be specified") + if r.writablePrefixRequest == nil { + return localVarReturnValue, nil, reportError("writablePrefixRequest is required and must be specified") } // to determine the Content-Type header @@ -13928,125 +22946,7 @@ func (a *IpamAPIService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRanges localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.iPAddressRequest - 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 ApiIpamIpRangesAvailableIpsListRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 -} - -func (r ApiIpamIpRangesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) { - return r.ApiService.IpamIpRangesAvailableIpsListExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamIpRangesAvailableIpsList(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsListRequest { - return ApiIpamIpRangesAvailableIpsListRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []AvailableIP -func (a *IpamAPIService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableIP - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/available-ips/" - 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 - } + localVarPostBody = r.writablePrefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14098,56 +22998,56 @@ func (a *IpamAPIService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAv return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpRangesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - iPRangeRequest *[]IPRangeRequest +type ApiIpamRirsBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + rIRRequest *[]RIRRequest } -func (r ApiIpamIpRangesBulkDestroyRequest) IPRangeRequest(iPRangeRequest []IPRangeRequest) ApiIpamIpRangesBulkDestroyRequest { - r.iPRangeRequest = &iPRangeRequest +func (r ApiIpamRirsBulkDestroyRequest) RIRRequest(rIRRequest []RIRRequest) ApiIpamRirsBulkDestroyRequest { + r.rIRRequest = &rIRRequest return r } -func (r ApiIpamIpRangesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamIpRangesBulkDestroyExecute(r) +func (r ApiIpamRirsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamRirsBulkDestroyExecute(r) } /* -IpamIpRangesBulkDestroy Method for IpamIpRangesBulkDestroy +IpamRirsBulkDestroy Method for IpamRirsBulkDestroy -Delete a list of IP range objects. +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 ApiIpamIpRangesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsBulkDestroyRequest */ -func (a *IpamAPIService) IpamIpRangesBulkDestroy(ctx context.Context) ApiIpamIpRangesBulkDestroyRequest { - return ApiIpamIpRangesBulkDestroyRequest{ +func (a *IpamAPIService) IpamRirsBulkDestroy(ctx context.Context) ApiIpamRirsBulkDestroyRequest { + return ApiIpamRirsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDestroyRequest) (*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.IpamIpRangesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-ranges/" + localVarPath := localBasePath + "/api/ipam/rirs/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.iPRangeRequest == nil { - return nil, reportError("iPRangeRequest is required and must be specified") + if r.rIRRequest == nil { + return nil, reportError("rIRRequest is required and must be specified") } // to determine the Content-Type header @@ -14168,7 +23068,7 @@ func (a *IpamAPIService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDes localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.iPRangeRequest + localVarPostBody = r.rIRRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14211,59 +23111,58 @@ func (a *IpamAPIService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDes return localVarHTTPResponse, nil } -type ApiIpamIpRangesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - iPRangeRequest *[]IPRangeRequest +type ApiIpamRirsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + rIRRequest *[]RIRRequest } -func (r ApiIpamIpRangesBulkPartialUpdateRequest) IPRangeRequest(iPRangeRequest []IPRangeRequest) ApiIpamIpRangesBulkPartialUpdateRequest { - r.iPRangeRequest = &iPRangeRequest +func (r ApiIpamRirsBulkPartialUpdateRequest) RIRRequest(rIRRequest []RIRRequest) ApiIpamRirsBulkPartialUpdateRequest { + r.rIRRequest = &rIRRequest return r } -func (r ApiIpamIpRangesBulkPartialUpdateRequest) Execute() ([]IPRange, *http.Response, error) { - return r.ApiService.IpamIpRangesBulkPartialUpdateExecute(r) +func (r ApiIpamRirsBulkPartialUpdateRequest) Execute() ([]RIR, *http.Response, error) { + return r.ApiService.IpamRirsBulkPartialUpdateExecute(r) } /* -IpamIpRangesBulkPartialUpdate Method for IpamIpRangesBulkPartialUpdate +IpamRirsBulkPartialUpdate Method for IpamRirsBulkPartialUpdate -Patch a list of IP range objects. +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 ApiIpamIpRangesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamIpRangesBulkPartialUpdate(ctx context.Context) ApiIpamIpRangesBulkPartialUpdateRequest { - return ApiIpamIpRangesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamRirsBulkPartialUpdate(ctx context.Context) ApiIpamRirsBulkPartialUpdateRequest { + return ApiIpamRirsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPRange -func (a *IpamAPIService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesBulkPartialUpdateRequest) ([]IPRange, *http.Response, error) { +// @return []RIR +func (a *IpamAPIService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkPartialUpdateRequest) ([]RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPRange + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-ranges/" + localVarPath := localBasePath + "/api/ipam/rirs/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.iPRangeRequest == nil { - return localVarReturnValue, nil, reportError("iPRangeRequest is required and must be specified") + if r.rIRRequest == nil { + return localVarReturnValue, nil, reportError("rIRRequest is required and must be specified") } // to determine the Content-Type header @@ -14284,7 +23183,7 @@ func (a *IpamAPIService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.iPRangeRequest + localVarPostBody = r.rIRRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14336,59 +23235,58 @@ func (a *IpamAPIService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesB return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpRangesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - iPRangeRequest *[]IPRangeRequest +type ApiIpamRirsBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + rIRRequest *[]RIRRequest } -func (r ApiIpamIpRangesBulkUpdateRequest) IPRangeRequest(iPRangeRequest []IPRangeRequest) ApiIpamIpRangesBulkUpdateRequest { - r.iPRangeRequest = &iPRangeRequest +func (r ApiIpamRirsBulkUpdateRequest) RIRRequest(rIRRequest []RIRRequest) ApiIpamRirsBulkUpdateRequest { + r.rIRRequest = &rIRRequest return r } -func (r ApiIpamIpRangesBulkUpdateRequest) Execute() ([]IPRange, *http.Response, error) { - return r.ApiService.IpamIpRangesBulkUpdateExecute(r) +func (r ApiIpamRirsBulkUpdateRequest) Execute() ([]RIR, *http.Response, error) { + return r.ApiService.IpamRirsBulkUpdateExecute(r) } /* -IpamIpRangesBulkUpdate Method for IpamIpRangesBulkUpdate +IpamRirsBulkUpdate Method for IpamRirsBulkUpdate -Put a list of IP range objects. +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 ApiIpamIpRangesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsBulkUpdateRequest */ -func (a *IpamAPIService) IpamIpRangesBulkUpdate(ctx context.Context) ApiIpamIpRangesBulkUpdateRequest { - return ApiIpamIpRangesBulkUpdateRequest{ +func (a *IpamAPIService) IpamRirsBulkUpdate(ctx context.Context) ApiIpamRirsBulkUpdateRequest { + return ApiIpamRirsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPRange -func (a *IpamAPIService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpdateRequest) ([]IPRange, *http.Response, error) { +// @return []RIR +func (a *IpamAPIService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateRequest) ([]RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPRange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-ranges/" + localVarPath := localBasePath + "/api/ipam/rirs/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.iPRangeRequest == nil { - return localVarReturnValue, nil, reportError("iPRangeRequest is required and must be specified") + if r.rIRRequest == nil { + return localVarReturnValue, nil, reportError("rIRRequest is required and must be specified") } // to determine the Content-Type header @@ -14409,7 +23307,7 @@ func (a *IpamAPIService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.iPRangeRequest + localVarPostBody = r.rIRRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14461,59 +23359,58 @@ func (a *IpamAPIService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpRangesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - writableIPRangeRequest *WritableIPRangeRequest +type ApiIpamRirsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + rIRRequest *RIRRequest } -func (r ApiIpamIpRangesCreateRequest) WritableIPRangeRequest(writableIPRangeRequest WritableIPRangeRequest) ApiIpamIpRangesCreateRequest { - r.writableIPRangeRequest = &writableIPRangeRequest +func (r ApiIpamRirsCreateRequest) RIRRequest(rIRRequest RIRRequest) ApiIpamRirsCreateRequest { + r.rIRRequest = &rIRRequest return r } -func (r ApiIpamIpRangesCreateRequest) Execute() (*IPRange, *http.Response, error) { - return r.ApiService.IpamIpRangesCreateExecute(r) +func (r ApiIpamRirsCreateRequest) Execute() (*RIR, *http.Response, error) { + return r.ApiService.IpamRirsCreateExecute(r) } /* -IpamIpRangesCreate Method for IpamIpRangesCreate +IpamRirsCreate Method for IpamRirsCreate -Post a list of IP range objects. +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 ApiIpamIpRangesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsCreateRequest */ -func (a *IpamAPIService) IpamIpRangesCreate(ctx context.Context) ApiIpamIpRangesCreateRequest { - return ApiIpamIpRangesCreateRequest{ +func (a *IpamAPIService) IpamRirsCreate(ctx context.Context) ApiIpamRirsCreateRequest { + return ApiIpamRirsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IPRange -func (a *IpamAPIService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateRequest) (*IPRange, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-ranges/" + localVarPath := localBasePath + "/api/ipam/rirs/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableIPRangeRequest == nil { - return localVarReturnValue, nil, reportError("writableIPRangeRequest is required and must be specified") + if r.rIRRequest == nil { + return localVarReturnValue, nil, reportError("rIRRequest is required and must be specified") } // to determine the Content-Type header @@ -14534,7 +23431,7 @@ func (a *IpamAPIService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableIPRangeRequest + localVarPostBody = r.rIRRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -14586,47 +23483,47 @@ func (a *IpamAPIService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamIpRangesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamRirsDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamIpRangesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamIpRangesDestroyExecute(r) +func (r ApiIpamRirsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamRirsDestroyExecute(r) } /* -IpamIpRangesDestroy Method for IpamIpRangesDestroy +IpamRirsDestroy Method for IpamRirsDestroy -Delete a IP range object. +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 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 RIR. + @return ApiIpamRirsDestroyRequest */ -func (a *IpamAPIService) IpamIpRangesDestroy(ctx context.Context, id int32) ApiIpamIpRangesDestroyRequest { - return ApiIpamIpRangesDestroyRequest{ +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) IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequest) (*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.IpamIpRangesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-ranges/{id}/" + localVarPath := localBasePath + "/api/ipam/rirs/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -14692,519 +23589,448 @@ func (a *IpamAPIService) IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequ return localVarHTTPResponse, nil } -type ApiIpamIpRangesListRequest struct { - 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 - 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 - 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 +type ApiIpamRirsListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + 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 - offset *int32 - ordering *string - parent *[]string - q *string - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 - size *[]int32 - sizeEmpty *bool - sizeGt *[]int32 - sizeGte *[]int32 - sizeLt *[]int32 - sizeLte *[]int32 - sizeN *[]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 + 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 } -// Ranges which contain this prefix or IP -func (r ApiIpamIpRangesListRequest) Contains(contains string) ApiIpamIpRangesListRequest { - r.contains = &contains - return r -} - -func (r ApiIpamIpRangesListRequest) Created(created []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) Created(created []time.Time) ApiIpamRirsListRequest { r.created = &created return r } -func (r ApiIpamIpRangesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRirsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamIpRangesListRequest) CreatedGt(createdGt []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) CreatedGt(createdGt []time.Time) ApiIpamRirsListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamIpRangesListRequest) CreatedGte(createdGte []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) CreatedGte(createdGte []time.Time) ApiIpamRirsListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamIpRangesListRequest) CreatedLt(createdLt []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) CreatedLt(createdLt []time.Time) ApiIpamRirsListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamIpRangesListRequest) CreatedLte(createdLte []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) CreatedLte(createdLte []time.Time) ApiIpamRirsListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamIpRangesListRequest) CreatedN(createdN []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) CreatedN(createdN []time.Time) ApiIpamRirsListRequest { r.createdN = &createdN return r } -func (r ApiIpamIpRangesListRequest) CreatedByRequest(createdByRequest string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) CreatedByRequest(createdByRequest string) ApiIpamRirsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamIpRangesListRequest) Description(description []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) Description(description []string) ApiIpamRirsListRequest { r.description = &description return r } -func (r ApiIpamIpRangesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamRirsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamIpRangesListRequest) DescriptionIc(descriptionIc []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionIc(descriptionIc []string) ApiIpamRirsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamIpRangesListRequest) DescriptionIe(descriptionIe []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionIe(descriptionIe []string) ApiIpamRirsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamIpRangesListRequest) DescriptionIew(descriptionIew []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionIew(descriptionIew []string) ApiIpamRirsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamIpRangesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamRirsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamIpRangesListRequest) DescriptionN(descriptionN []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionN(descriptionN []string) ApiIpamRirsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamIpRangesListRequest) DescriptionNic(descriptionNic []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionNic(descriptionNic []string) ApiIpamRirsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamIpRangesListRequest) DescriptionNie(descriptionNie []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionNie(descriptionNie []string) ApiIpamRirsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamIpRangesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamRirsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamIpRangesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamRirsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamIpRangesListRequest) EndAddress(endAddress []string) ApiIpamIpRangesListRequest { - r.endAddress = &endAddress - return r -} - -func (r ApiIpamIpRangesListRequest) Family(family float32) ApiIpamIpRangesListRequest { - r.family = &family - return r -} - -func (r ApiIpamIpRangesListRequest) Id(id []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) Id(id []int32) ApiIpamRirsListRequest { r.id = &id return r } -func (r ApiIpamIpRangesListRequest) IdEmpty(idEmpty bool) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) IdEmpty(idEmpty bool) ApiIpamRirsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamIpRangesListRequest) IdGt(idGt []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) IdGt(idGt []int32) ApiIpamRirsListRequest { r.idGt = &idGt return r } -func (r ApiIpamIpRangesListRequest) IdGte(idGte []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) IdGte(idGte []int32) ApiIpamRirsListRequest { r.idGte = &idGte return r } -func (r ApiIpamIpRangesListRequest) IdLt(idLt []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) IdLt(idLt []int32) ApiIpamRirsListRequest { r.idLt = &idLt return r } -func (r ApiIpamIpRangesListRequest) IdLte(idLte []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) IdLte(idLte []int32) ApiIpamRirsListRequest { r.idLte = &idLte return r } -func (r ApiIpamIpRangesListRequest) IdN(idN []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) IdN(idN []int32) ApiIpamRirsListRequest { r.idN = &idN return r } -func (r ApiIpamIpRangesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) IsPrivate(isPrivate bool) ApiIpamRirsListRequest { + r.isPrivate = &isPrivate + return r +} + +func (r ApiIpamRirsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRirsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamIpRangesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRirsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamIpRangesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRirsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamIpRangesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamRirsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamIpRangesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamRirsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamIpRangesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamRirsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamIpRangesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamRirsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamIpRangesListRequest) Limit(limit int32) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) Limit(limit int32) ApiIpamRirsListRequest { r.limit = &limit return r } -func (r ApiIpamIpRangesListRequest) MarkUtilized(markUtilized bool) ApiIpamIpRangesListRequest { - r.markUtilized = &markUtilized - return r -} - -func (r ApiIpamIpRangesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamIpRangesListRequest { +func (r ApiIpamRirsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRirsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -// The initial index from which to return the results. -func (r ApiIpamIpRangesListRequest) Offset(offset int32) ApiIpamIpRangesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiIpamIpRangesListRequest) Ordering(ordering string) ApiIpamIpRangesListRequest { - r.ordering = &ordering - 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 - return r -} - -// Role (slug) -func (r ApiIpamIpRangesListRequest) Role(role []string) ApiIpamIpRangesListRequest { - r.role = &role - return r -} - -// Role (slug) -func (r ApiIpamIpRangesListRequest) RoleN(roleN []string) ApiIpamIpRangesListRequest { - r.roleN = &roleN +func (r ApiIpamRirsListRequest) Name(name []string) ApiIpamRirsListRequest { + r.name = &name return r } -// Role (ID) -func (r ApiIpamIpRangesListRequest) RoleId(roleId []*int32) ApiIpamIpRangesListRequest { - r.roleId = &roleId +func (r ApiIpamRirsListRequest) NameEmpty(nameEmpty bool) ApiIpamRirsListRequest { + r.nameEmpty = &nameEmpty return r } -// Role (ID) -func (r ApiIpamIpRangesListRequest) RoleIdN(roleIdN []*int32) ApiIpamIpRangesListRequest { - r.roleIdN = &roleIdN +func (r ApiIpamRirsListRequest) NameIc(nameIc []string) ApiIpamRirsListRequest { + r.nameIc = &nameIc return r } -func (r ApiIpamIpRangesListRequest) Size(size []int32) ApiIpamIpRangesListRequest { - r.size = &size +func (r ApiIpamRirsListRequest) NameIe(nameIe []string) ApiIpamRirsListRequest { + r.nameIe = &nameIe return r } -func (r ApiIpamIpRangesListRequest) SizeEmpty(sizeEmpty bool) ApiIpamIpRangesListRequest { - r.sizeEmpty = &sizeEmpty +func (r ApiIpamRirsListRequest) NameIew(nameIew []string) ApiIpamRirsListRequest { + r.nameIew = &nameIew return r } -func (r ApiIpamIpRangesListRequest) SizeGt(sizeGt []int32) ApiIpamIpRangesListRequest { - r.sizeGt = &sizeGt +func (r ApiIpamRirsListRequest) NameIsw(nameIsw []string) ApiIpamRirsListRequest { + r.nameIsw = &nameIsw return r } -func (r ApiIpamIpRangesListRequest) SizeGte(sizeGte []int32) ApiIpamIpRangesListRequest { - r.sizeGte = &sizeGte +func (r ApiIpamRirsListRequest) NameN(nameN []string) ApiIpamRirsListRequest { + r.nameN = &nameN return r } -func (r ApiIpamIpRangesListRequest) SizeLt(sizeLt []int32) ApiIpamIpRangesListRequest { - r.sizeLt = &sizeLt +func (r ApiIpamRirsListRequest) NameNic(nameNic []string) ApiIpamRirsListRequest { + r.nameNic = &nameNic return r } -func (r ApiIpamIpRangesListRequest) SizeLte(sizeLte []int32) ApiIpamIpRangesListRequest { - r.sizeLte = &sizeLte +func (r ApiIpamRirsListRequest) NameNie(nameNie []string) ApiIpamRirsListRequest { + r.nameNie = &nameNie return r } -func (r ApiIpamIpRangesListRequest) SizeN(sizeN []int32) ApiIpamIpRangesListRequest { - r.sizeN = &sizeN +func (r ApiIpamRirsListRequest) NameNiew(nameNiew []string) ApiIpamRirsListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiIpamIpRangesListRequest) StartAddress(startAddress []string) ApiIpamIpRangesListRequest { - r.startAddress = &startAddress +func (r ApiIpamRirsListRequest) NameNisw(nameNisw []string) ApiIpamRirsListRequest { + r.nameNisw = &nameNisw return r } -// Operational status of this range -func (r ApiIpamIpRangesListRequest) Status(status []string) ApiIpamIpRangesListRequest { - r.status = &status +// The initial index from which to return the results. +func (r ApiIpamRirsListRequest) Offset(offset int32) ApiIpamRirsListRequest { + r.offset = &offset return r } -// Operational status of this range -func (r ApiIpamIpRangesListRequest) StatusN(statusN []string) ApiIpamIpRangesListRequest { - r.statusN = &statusN +// Which field to use when ordering the results. +func (r ApiIpamRirsListRequest) Ordering(ordering string) ApiIpamRirsListRequest { + r.ordering = &ordering return r } -func (r ApiIpamIpRangesListRequest) Tag(tag []string) ApiIpamIpRangesListRequest { - r.tag = &tag +// Search +func (r ApiIpamRirsListRequest) Q(q string) ApiIpamRirsListRequest { + r.q = &q return r } -func (r ApiIpamIpRangesListRequest) TagN(tagN []string) ApiIpamIpRangesListRequest { - r.tagN = &tagN +func (r ApiIpamRirsListRequest) Slug(slug []string) ApiIpamRirsListRequest { + r.slug = &slug return r } -// Tenant (slug) -func (r ApiIpamIpRangesListRequest) Tenant(tenant []string) ApiIpamIpRangesListRequest { - r.tenant = &tenant +func (r ApiIpamRirsListRequest) SlugEmpty(slugEmpty bool) ApiIpamRirsListRequest { + r.slugEmpty = &slugEmpty return r } -// Tenant (slug) -func (r ApiIpamIpRangesListRequest) TenantN(tenantN []string) ApiIpamIpRangesListRequest { - r.tenantN = &tenantN +func (r ApiIpamRirsListRequest) SlugIc(slugIc []string) ApiIpamRirsListRequest { + r.slugIc = &slugIc return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpRangesListRequest { - r.tenantGroup = &tenantGroup +func (r ApiIpamRirsListRequest) SlugIe(slugIe []string) ApiIpamRirsListRequest { + r.slugIe = &slugIe return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpRangesListRequest { - r.tenantGroupN = &tenantGroupN +func (r ApiIpamRirsListRequest) SlugIew(slugIew []string) ApiIpamRirsListRequest { + r.slugIew = &slugIew return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpRangesListRequest { - r.tenantGroupId = &tenantGroupId +func (r ApiIpamRirsListRequest) SlugIsw(slugIsw []string) ApiIpamRirsListRequest { + r.slugIsw = &slugIsw return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpRangesListRequest { - r.tenantGroupIdN = &tenantGroupIdN +func (r ApiIpamRirsListRequest) SlugN(slugN []string) ApiIpamRirsListRequest { + r.slugN = &slugN return r } -// Tenant (ID) -func (r ApiIpamIpRangesListRequest) TenantId(tenantId []*int32) ApiIpamIpRangesListRequest { - r.tenantId = &tenantId +func (r ApiIpamRirsListRequest) SlugNic(slugNic []string) ApiIpamRirsListRequest { + r.slugNic = &slugNic return r } -// Tenant (ID) -func (r ApiIpamIpRangesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamIpRangesListRequest { - r.tenantIdN = &tenantIdN +func (r ApiIpamRirsListRequest) SlugNie(slugNie []string) ApiIpamRirsListRequest { + r.slugNie = &slugNie return r } -func (r ApiIpamIpRangesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamIpRangesListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiIpamRirsListRequest) SlugNiew(slugNiew []string) ApiIpamRirsListRequest { + r.slugNiew = &slugNiew return r } -// VRF (RD) -func (r ApiIpamIpRangesListRequest) Vrf(vrf []*string) ApiIpamIpRangesListRequest { - r.vrf = &vrf +func (r ApiIpamRirsListRequest) SlugNisw(slugNisw []string) ApiIpamRirsListRequest { + r.slugNisw = &slugNisw return r } -// VRF (RD) -func (r ApiIpamIpRangesListRequest) VrfN(vrfN []*string) ApiIpamIpRangesListRequest { - r.vrfN = &vrfN +func (r ApiIpamRirsListRequest) Tag(tag []string) ApiIpamRirsListRequest { + r.tag = &tag return r } -// VRF -func (r ApiIpamIpRangesListRequest) VrfId(vrfId []*int32) ApiIpamIpRangesListRequest { - r.vrfId = &vrfId +func (r ApiIpamRirsListRequest) TagN(tagN []string) ApiIpamRirsListRequest { + r.tagN = &tagN return r } -// VRF -func (r ApiIpamIpRangesListRequest) VrfIdN(vrfIdN []*int32) ApiIpamIpRangesListRequest { - r.vrfIdN = &vrfIdN +func (r ApiIpamRirsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRirsListRequest { + r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamIpRangesListRequest) Execute() (*PaginatedIPRangeList, *http.Response, error) { - return r.ApiService.IpamIpRangesListExecute(r) +func (r ApiIpamRirsListRequest) Execute() (*PaginatedRIRList, *http.Response, error) { + return r.ApiService.IpamRirsListExecute(r) } /* -IpamIpRangesList Method for IpamIpRangesList +IpamRirsList Method for IpamRirsList -Get a list of IP range objects. +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 ApiIpamIpRangesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsListRequest */ -func (a *IpamAPIService) IpamIpRangesList(ctx context.Context) ApiIpamIpRangesListRequest { - return ApiIpamIpRangesListRequest{ +func (a *IpamAPIService) IpamRirsList(ctx context.Context) ApiIpamRirsListRequest { + return ApiIpamRirsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedIPRangeList -func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (*PaginatedIPRangeList, *http.Response, error) { +// @return PaginatedRIRList +func (a *IpamAPIService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*PaginatedRIRList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIPRangeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRIRList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/ip-ranges/" + localVarPath := localBasePath + "/api/ipam/rirs/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.contains != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "contains", r.contains, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -15212,10 +24038,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -15223,10 +24049,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -15234,10 +24060,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -15245,10 +24071,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -15256,10 +24082,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -15267,38 +24093,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -15306,10 +24132,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -15317,10 +24143,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -15328,10 +24154,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -15339,10 +24165,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -15350,10 +24176,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -15361,10 +24187,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -15372,10 +24198,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -15383,49 +24209,35 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.endAddress != nil { - t := *r.endAddress - 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "end_address", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.family != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -15433,10 +24245,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -15444,10 +24256,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -15455,10 +24267,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -15466,21 +24278,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } + if r.isPrivate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_private", r.isPrivate, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -15488,10 +24303,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -15499,10 +24314,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -15510,10 +24325,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -15521,10 +24336,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -15532,10 +24347,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -15543,846 +24358,280 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.markUtilized != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_utilized", r.markUtilized, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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, "") - } - 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.size != nil { - t := *r.size - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", t, "multi") - } - } - if r.sizeGte != nil { - t := *r.sizeGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", t, "multi") - } - } - if r.sizeLt != nil { - t := *r.sizeLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", t, "multi") - } - } - if r.sizeLte != nil { - t := *r.sizeLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", t, "multi") - } - } - if r.sizeN != nil { - t := *r.sizeN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", t, "multi") - } - } - if r.startAddress != nil { - t := *r.startAddress - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "start_address", 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") - } - } - if r.statusN != nil { - t := *r.statusN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__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.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, "") - } - if r.vrf != nil { - t := *r.vrf - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") - } - } - if r.vrfN != nil { - t := *r.vrfN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") - } - } - if r.vrfId != nil { - t := *r.vrfId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.vrfIdN != nil { - t := *r.vrfIdN + 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, "vrf_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_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 - } - - // 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 ApiIpamIpRangesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedWritableIPRangeRequest *PatchedWritableIPRangeRequest -} - -func (r ApiIpamIpRangesPartialUpdateRequest) PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest PatchedWritableIPRangeRequest) ApiIpamIpRangesPartialUpdateRequest { - r.patchedWritableIPRangeRequest = &patchedWritableIPRangeRequest - return r -} - -func (r ApiIpamIpRangesPartialUpdateRequest) Execute() (*IPRange, *http.Response, error) { - return r.ApiService.IpamIpRangesPartialUpdateExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest { - return ApiIpamIpRangesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return IPRange -func (a *IpamAPIService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/ipam/ip-ranges/{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.patchedWritableIPRangeRequest - 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, "name", t, "form", "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 + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - - 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiIpamIpRangesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 -} - -func (r ApiIpamIpRangesRetrieveRequest) Execute() (*IPRange, *http.Response, error) { - return r.ApiService.IpamIpRangesRetrieveExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest { - return ApiIpamIpRangesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return IPRange -func (a *IpamAPIService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesRetrieve") - 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/ipam/ip-ranges/{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.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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "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.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(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - - 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.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiIpamIpRangesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - writableIPRangeRequest *WritableIPRangeRequest -} - -func (r ApiIpamIpRangesUpdateRequest) WritableIPRangeRequest(writableIPRangeRequest WritableIPRangeRequest) ApiIpamIpRangesUpdateRequest { - r.writableIPRangeRequest = &writableIPRangeRequest - return r -} - -func (r ApiIpamIpRangesUpdateRequest) Execute() (*IPRange, *http.Response, error) { - return r.ApiService.IpamIpRangesUpdateExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest { - return ApiIpamIpRangesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, } -} - -// Execute executes the request -// -// @return IPRange -func (a *IpamAPIService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } - - localVarPath := localBasePath + "/api/ipam/ip-ranges/{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.writableIPRangeRequest == nil { - return localVarReturnValue, nil, reportError("writableIPRangeRequest is required and must be specified") + if r.slugIc != nil { + t := *r.slugIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "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.slugIe != nil { + t := *r.slugIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.slugIew != nil { + t := *r.slugIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") + } } - // body params - localVarPostBody = r.writableIPRangeRequest - 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.slugIsw != nil { + t := *r.slugIsw + 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).Interface(), "form", "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.slugN != nil { + t := *r.slugN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.slugNic != nil { + t := *r.slugNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "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.slugNie != nil { + t := *r.slugNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.slugNiew != nil { + t := *r.slugNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "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.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiIpamPrefixesAvailableIpsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - iPAddressRequest *[]IPAddressRequest -} - -func (r ApiIpamPrefixesAvailableIpsCreateRequest) IPAddressRequest(iPAddressRequest []IPAddressRequest) ApiIpamPrefixesAvailableIpsCreateRequest { - r.iPAddressRequest = &iPAddressRequest - return r -} - -func (r ApiIpamPrefixesAvailableIpsCreateRequest) Execute() ([]IPAddress, *http.Response, error) { - return r.ApiService.IpamPrefixesAvailableIpsCreateExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamPrefixesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsCreateRequest { - return ApiIpamPrefixesAvailableIpsCreateRequest{ - ApiService: a, - ctx: ctx, - id: id, + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return []IPAddress -func (a *IpamAPIService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-ips/" - 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.iPAddressRequest == nil { - return localVarReturnValue, nil, reportError("iPAddressRequest is required and must be specified") + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -16398,8 +24647,6 @@ func (a *IpamAPIService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixes if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.iPAddressRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -16451,50 +24698,55 @@ func (a *IpamAPIService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixes return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesAvailableIpsListRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamRirsPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedRIRRequest *PatchedRIRRequest } -func (r ApiIpamPrefixesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) { - return r.ApiService.IpamPrefixesAvailableIpsListExecute(r) +func (r ApiIpamRirsPartialUpdateRequest) PatchedRIRRequest(patchedRIRRequest PatchedRIRRequest) ApiIpamRirsPartialUpdateRequest { + r.patchedRIRRequest = &patchedRIRRequest + return r +} + +func (r ApiIpamRirsPartialUpdateRequest) Execute() (*RIR, *http.Response, error) { + return r.ApiService.IpamRirsPartialUpdateExecute(r) } /* -IpamPrefixesAvailableIpsList Method for IpamPrefixesAvailableIpsList +IpamRirsPartialUpdate Method for IpamRirsPartialUpdate -Get a IP address object. +Patch a RIR 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 A unique integer value identifying this RIR. + @return ApiIpamRirsPartialUpdateRequest */ -func (a *IpamAPIService) IpamPrefixesAvailableIpsList(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsListRequest { - return ApiIpamPrefixesAvailableIpsListRequest{ +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 []AvailableIP -func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdateRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableIP + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-ips/" + localVarPath := localBasePath + "/api/ipam/rirs/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -16502,7 +24754,7 @@ func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAv localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -16518,6 +24770,8 @@ func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAv if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedRIRRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -16569,67 +24823,57 @@ func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAv return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesAvailablePrefixesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - prefixRequest *[]PrefixRequest -} - -func (r ApiIpamPrefixesAvailablePrefixesCreateRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesAvailablePrefixesCreateRequest { - r.prefixRequest = &prefixRequest - return r +type ApiIpamRirsRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamPrefixesAvailablePrefixesCreateRequest) Execute() ([]Prefix, *http.Response, error) { - return r.ApiService.IpamPrefixesAvailablePrefixesCreateExecute(r) +func (r ApiIpamRirsRetrieveRequest) Execute() (*RIR, *http.Response, error) { + return r.ApiService.IpamRirsRetrieveExecute(r) } /* -IpamPrefixesAvailablePrefixesCreate Method for IpamPrefixesAvailablePrefixesCreate +IpamRirsRetrieve Method for IpamRirsRetrieve -Post a prefix object. +Get a RIR 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 A unique integer value identifying this RIR. + @return ApiIpamRirsRetrieveRequest */ -func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesCreateRequest { - return ApiIpamPrefixesAvailablePrefixesCreateRequest{ +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 []Prefix -func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPrefixesAvailablePrefixesCreateRequest) ([]Prefix, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Prefix + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-prefixes/" + localVarPath := localBasePath + "/api/ipam/rirs/{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.prefixRequest == nil { - return localVarReturnValue, nil, reportError("prefixRequest 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) @@ -16645,8 +24889,6 @@ func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPre if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.prefixRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -16698,58 +24940,66 @@ func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPre return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesAvailablePrefixesListRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamRirsUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + rIRRequest *RIRRequest } -func (r ApiIpamPrefixesAvailablePrefixesListRequest) Execute() ([]AvailablePrefix, *http.Response, error) { - return r.ApiService.IpamPrefixesAvailablePrefixesListExecute(r) +func (r ApiIpamRirsUpdateRequest) RIRRequest(rIRRequest RIRRequest) ApiIpamRirsUpdateRequest { + r.rIRRequest = &rIRRequest + return r +} + +func (r ApiIpamRirsUpdateRequest) Execute() (*RIR, *http.Response, error) { + return r.ApiService.IpamRirsUpdateExecute(r) } /* -IpamPrefixesAvailablePrefixesList Method for IpamPrefixesAvailablePrefixesList +IpamRirsUpdate Method for IpamRirsUpdate -Get a prefix object. +Put a RIR 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 A unique integer value identifying this RIR. + @return ApiIpamRirsUpdateRequest */ -func (a *IpamAPIService) IpamPrefixesAvailablePrefixesList(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesListRequest { - return ApiIpamPrefixesAvailablePrefixesListRequest{ +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 []AvailablePrefix -func (a *IpamAPIService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefixesAvailablePrefixesListRequest) ([]AvailablePrefix, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailablePrefix + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/available-prefixes/" + localVarPath := localBasePath + "/api/ipam/rirs/{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.rIRRequest == nil { + return localVarReturnValue, nil, reportError("rIRRequest 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) @@ -16765,6 +25015,8 @@ func (a *IpamAPIService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.rIRRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -16816,56 +25068,56 @@ func (a *IpamAPIService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - prefixRequest *[]PrefixRequest +type ApiIpamRolesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + roleRequest *[]RoleRequest } -func (r ApiIpamPrefixesBulkDestroyRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesBulkDestroyRequest { - r.prefixRequest = &prefixRequest +func (r ApiIpamRolesBulkDestroyRequest) RoleRequest(roleRequest []RoleRequest) ApiIpamRolesBulkDestroyRequest { + r.roleRequest = &roleRequest return r } -func (r ApiIpamPrefixesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamPrefixesBulkDestroyExecute(r) +func (r ApiIpamRolesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamRolesBulkDestroyExecute(r) } /* -IpamPrefixesBulkDestroy Method for IpamPrefixesBulkDestroy +IpamRolesBulkDestroy Method for IpamRolesBulkDestroy -Delete a list of prefix objects. +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 ApiIpamPrefixesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesBulkDestroyRequest */ -func (a *IpamAPIService) IpamPrefixesBulkDestroy(ctx context.Context) ApiIpamPrefixesBulkDestroyRequest { - return ApiIpamPrefixesBulkDestroyRequest{ +func (a *IpamAPIService) IpamRolesBulkDestroy(ctx context.Context) ApiIpamRolesBulkDestroyRequest { + return ApiIpamRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDestroyRequest) (*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.IpamPrefixesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/" + localVarPath := localBasePath + "/api/ipam/roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.prefixRequest == nil { - return nil, reportError("prefixRequest is required and must be specified") + if r.roleRequest == nil { + return nil, reportError("roleRequest is required and must be specified") } // to determine the Content-Type header @@ -16886,7 +25138,7 @@ func (a *IpamAPIService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDes localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.prefixRequest + localVarPostBody = r.roleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -16929,59 +25181,58 @@ func (a *IpamAPIService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDes return localVarHTTPResponse, nil } -type ApiIpamPrefixesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - prefixRequest *[]PrefixRequest +type ApiIpamRolesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + roleRequest *[]RoleRequest } -func (r ApiIpamPrefixesBulkPartialUpdateRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesBulkPartialUpdateRequest { - r.prefixRequest = &prefixRequest +func (r ApiIpamRolesBulkPartialUpdateRequest) RoleRequest(roleRequest []RoleRequest) ApiIpamRolesBulkPartialUpdateRequest { + r.roleRequest = &roleRequest return r } -func (r ApiIpamPrefixesBulkPartialUpdateRequest) Execute() ([]Prefix, *http.Response, error) { - return r.ApiService.IpamPrefixesBulkPartialUpdateExecute(r) +func (r ApiIpamRolesBulkPartialUpdateRequest) Execute() ([]Role, *http.Response, error) { + return r.ApiService.IpamRolesBulkPartialUpdateExecute(r) } /* -IpamPrefixesBulkPartialUpdate Method for IpamPrefixesBulkPartialUpdate +IpamRolesBulkPartialUpdate Method for IpamRolesBulkPartialUpdate -Patch a list of prefix objects. +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 ApiIpamPrefixesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamPrefixesBulkPartialUpdate(ctx context.Context) ApiIpamPrefixesBulkPartialUpdateRequest { - return ApiIpamPrefixesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamRolesBulkPartialUpdate(ctx context.Context) ApiIpamRolesBulkPartialUpdateRequest { + return ApiIpamRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Prefix -func (a *IpamAPIService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesBulkPartialUpdateRequest) ([]Prefix, *http.Response, error) { +// @return []Role +func (a *IpamAPIService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPartialUpdateRequest) ([]Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Prefix + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/" + localVarPath := localBasePath + "/api/ipam/roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.prefixRequest == nil { - return localVarReturnValue, nil, reportError("prefixRequest is required and must be specified") + if r.roleRequest == nil { + return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") } // to determine the Content-Type header @@ -17002,7 +25253,7 @@ func (a *IpamAPIService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.prefixRequest + localVarPostBody = r.roleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17054,59 +25305,58 @@ func (a *IpamAPIService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesB return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - prefixRequest *[]PrefixRequest +type ApiIpamRolesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + roleRequest *[]RoleRequest } -func (r ApiIpamPrefixesBulkUpdateRequest) PrefixRequest(prefixRequest []PrefixRequest) ApiIpamPrefixesBulkUpdateRequest { - r.prefixRequest = &prefixRequest +func (r ApiIpamRolesBulkUpdateRequest) RoleRequest(roleRequest []RoleRequest) ApiIpamRolesBulkUpdateRequest { + r.roleRequest = &roleRequest return r } -func (r ApiIpamPrefixesBulkUpdateRequest) Execute() ([]Prefix, *http.Response, error) { - return r.ApiService.IpamPrefixesBulkUpdateExecute(r) +func (r ApiIpamRolesBulkUpdateRequest) Execute() ([]Role, *http.Response, error) { + return r.ApiService.IpamRolesBulkUpdateExecute(r) } /* -IpamPrefixesBulkUpdate Method for IpamPrefixesBulkUpdate +IpamRolesBulkUpdate Method for IpamRolesBulkUpdate -Put a list of prefix objects. +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 ApiIpamPrefixesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesBulkUpdateRequest */ -func (a *IpamAPIService) IpamPrefixesBulkUpdate(ctx context.Context) ApiIpamPrefixesBulkUpdateRequest { - return ApiIpamPrefixesBulkUpdateRequest{ +func (a *IpamAPIService) IpamRolesBulkUpdate(ctx context.Context) ApiIpamRolesBulkUpdateRequest { + return ApiIpamRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Prefix -func (a *IpamAPIService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpdateRequest) ([]Prefix, *http.Response, error) { +// @return []Role +func (a *IpamAPIService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequest) ([]Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Prefix + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/" + localVarPath := localBasePath + "/api/ipam/roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.prefixRequest == nil { - return localVarReturnValue, nil, reportError("prefixRequest is required and must be specified") + if r.roleRequest == nil { + return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") } // to determine the Content-Type header @@ -17127,7 +25377,7 @@ func (a *IpamAPIService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.prefixRequest + localVarPostBody = r.roleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17179,59 +25429,58 @@ func (a *IpamAPIService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - writablePrefixRequest *WritablePrefixRequest +type ApiIpamRolesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + roleRequest *RoleRequest } -func (r ApiIpamPrefixesCreateRequest) WritablePrefixRequest(writablePrefixRequest WritablePrefixRequest) ApiIpamPrefixesCreateRequest { - r.writablePrefixRequest = &writablePrefixRequest +func (r ApiIpamRolesCreateRequest) RoleRequest(roleRequest RoleRequest) ApiIpamRolesCreateRequest { + r.roleRequest = &roleRequest return r } -func (r ApiIpamPrefixesCreateRequest) Execute() (*Prefix, *http.Response, error) { - return r.ApiService.IpamPrefixesCreateExecute(r) +func (r ApiIpamRolesCreateRequest) Execute() (*Role, *http.Response, error) { + return r.ApiService.IpamRolesCreateExecute(r) } /* -IpamPrefixesCreate Method for IpamPrefixesCreate +IpamRolesCreate Method for IpamRolesCreate -Post a list of prefix objects. +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 ApiIpamPrefixesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesCreateRequest */ -func (a *IpamAPIService) IpamPrefixesCreate(ctx context.Context) ApiIpamPrefixesCreateRequest { - return ApiIpamPrefixesCreateRequest{ +func (a *IpamAPIService) IpamRolesCreate(ctx context.Context) ApiIpamRolesCreateRequest { + return ApiIpamRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Prefix -func (a *IpamAPIService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateRequest) (*Prefix, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/" + localVarPath := localBasePath + "/api/ipam/roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writablePrefixRequest == nil { - return localVarReturnValue, nil, reportError("writablePrefixRequest is required and must be specified") + if r.roleRequest == nil { + return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") } // to determine the Content-Type header @@ -17252,7 +25501,7 @@ func (a *IpamAPIService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePrefixRequest + localVarPostBody = r.roleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -17304,47 +25553,47 @@ func (a *IpamAPIService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamRolesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamPrefixesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamPrefixesDestroyExecute(r) +func (r ApiIpamRolesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamRolesDestroyExecute(r) } /* -IpamPrefixesDestroy Method for IpamPrefixesDestroy +IpamRolesDestroy Method for IpamRolesDestroy -Delete a prefix object. +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 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 role. + @return ApiIpamRolesDestroyRequest */ -func (a *IpamAPIService) IpamPrefixesDestroy(ctx context.Context, id int32) ApiIpamPrefixesDestroyRequest { - return ApiIpamPrefixesDestroyRequest{ +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) IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequest) (*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.IpamPrefixesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/" + localVarPath := localBasePath + "/api/ipam/roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -17403,830 +25652,491 @@ func (a *IpamAPIService) IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequ newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiIpamPrefixesListRequest struct { - 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 - 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 - 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 - 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 { - r.children = &children - 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 -} - -func (r ApiIpamPrefixesListRequest) ChildrenGte(childrenGte []int32) ApiIpamPrefixesListRequest { - r.childrenGte = &childrenGte - return r -} - -func (r ApiIpamPrefixesListRequest) ChildrenLt(childrenLt []int32) ApiIpamPrefixesListRequest { - r.childrenLt = &childrenLt - return r -} - -func (r ApiIpamPrefixesListRequest) ChildrenLte(childrenLte []int32) ApiIpamPrefixesListRequest { - r.childrenLte = &childrenLte - return r -} - -func (r ApiIpamPrefixesListRequest) ChildrenN(childrenN []int32) ApiIpamPrefixesListRequest { - r.childrenN = &childrenN - return r -} - -// Prefixes which contain this prefix or IP -func (r ApiIpamPrefixesListRequest) Contains(contains string) ApiIpamPrefixesListRequest { - r.contains = &contains - return r -} - -func (r ApiIpamPrefixesListRequest) Created(created []time.Time) ApiIpamPrefixesListRequest { - r.created = &created - 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 -} - -func (r ApiIpamPrefixesListRequest) CreatedGte(createdGte []time.Time) ApiIpamPrefixesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiIpamPrefixesListRequest) CreatedLt(createdLt []time.Time) ApiIpamPrefixesListRequest { - r.createdLt = &createdLt - return r -} + } + return localVarHTTPResponse, newErr + } -func (r ApiIpamPrefixesListRequest) CreatedLte(createdLte []time.Time) ApiIpamPrefixesListRequest { - r.createdLte = &createdLte - return r + return localVarHTTPResponse, nil } -func (r ApiIpamPrefixesListRequest) CreatedN(createdN []time.Time) ApiIpamPrefixesListRequest { - r.createdN = &createdN - return r +type ApiIpamRolesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 } -func (r ApiIpamPrefixesListRequest) CreatedByRequest(createdByRequest string) ApiIpamPrefixesListRequest { - r.createdByRequest = &createdByRequest +func (r ApiIpamRolesListRequest) Created(created []time.Time) ApiIpamRolesListRequest { + r.created = &created return r } -func (r ApiIpamPrefixesListRequest) Depth(depth []int32) ApiIpamPrefixesListRequest { - r.depth = &depth +func (r ApiIpamRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRolesListRequest { + r.createdEmpty = &createdEmpty return r } -func (r ApiIpamPrefixesListRequest) DepthEmpty(depthEmpty []int32) ApiIpamPrefixesListRequest { - r.depthEmpty = &depthEmpty +func (r ApiIpamRolesListRequest) CreatedGt(createdGt []time.Time) ApiIpamRolesListRequest { + r.createdGt = &createdGt return r } -func (r ApiIpamPrefixesListRequest) DepthGt(depthGt []int32) ApiIpamPrefixesListRequest { - r.depthGt = &depthGt +func (r ApiIpamRolesListRequest) CreatedGte(createdGte []time.Time) ApiIpamRolesListRequest { + r.createdGte = &createdGte return r } -func (r ApiIpamPrefixesListRequest) DepthGte(depthGte []int32) ApiIpamPrefixesListRequest { - r.depthGte = &depthGte +func (r ApiIpamRolesListRequest) CreatedLt(createdLt []time.Time) ApiIpamRolesListRequest { + r.createdLt = &createdLt return r } -func (r ApiIpamPrefixesListRequest) DepthLt(depthLt []int32) ApiIpamPrefixesListRequest { - r.depthLt = &depthLt +func (r ApiIpamRolesListRequest) CreatedLte(createdLte []time.Time) ApiIpamRolesListRequest { + r.createdLte = &createdLte return r } -func (r ApiIpamPrefixesListRequest) DepthLte(depthLte []int32) ApiIpamPrefixesListRequest { - r.depthLte = &depthLte +func (r ApiIpamRolesListRequest) CreatedN(createdN []time.Time) ApiIpamRolesListRequest { + r.createdN = &createdN return r } -func (r ApiIpamPrefixesListRequest) DepthN(depthN []int32) ApiIpamPrefixesListRequest { - r.depthN = &depthN +func (r ApiIpamRolesListRequest) CreatedByRequest(createdByRequest string) ApiIpamRolesListRequest { + r.createdByRequest = &createdByRequest return r } -func (r ApiIpamPrefixesListRequest) Description(description []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) Description(description []string) ApiIpamRolesListRequest { r.description = &description return r } -func (r ApiIpamPrefixesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamRolesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamPrefixesListRequest) DescriptionIc(descriptionIc []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionIc(descriptionIc []string) ApiIpamRolesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamPrefixesListRequest) DescriptionIe(descriptionIe []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionIe(descriptionIe []string) ApiIpamRolesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamPrefixesListRequest) DescriptionIew(descriptionIew []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionIew(descriptionIew []string) ApiIpamRolesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamPrefixesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamRolesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamPrefixesListRequest) DescriptionN(descriptionN []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionN(descriptionN []string) ApiIpamRolesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamPrefixesListRequest) DescriptionNic(descriptionNic []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionNic(descriptionNic []string) ApiIpamRolesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamPrefixesListRequest) DescriptionNie(descriptionNie []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionNie(descriptionNie []string) ApiIpamRolesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamPrefixesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamRolesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamPrefixesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamRolesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamPrefixesListRequest) Family(family float32) ApiIpamPrefixesListRequest { - r.family = &family - return r -} - -func (r ApiIpamPrefixesListRequest) Id(id []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) Id(id []int32) ApiIpamRolesListRequest { r.id = &id return r } -func (r ApiIpamPrefixesListRequest) IdEmpty(idEmpty bool) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) IdEmpty(idEmpty bool) ApiIpamRolesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamPrefixesListRequest) IdGt(idGt []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) IdGt(idGt []int32) ApiIpamRolesListRequest { r.idGt = &idGt return r } -func (r ApiIpamPrefixesListRequest) IdGte(idGte []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) IdGte(idGte []int32) ApiIpamRolesListRequest { r.idGte = &idGte return r } -func (r ApiIpamPrefixesListRequest) IdLt(idLt []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) IdLt(idLt []int32) ApiIpamRolesListRequest { r.idLt = &idLt return r } -func (r ApiIpamPrefixesListRequest) IdLte(idLte []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) IdLte(idLte []int32) ApiIpamRolesListRequest { r.idLte = &idLte return r } -func (r ApiIpamPrefixesListRequest) IdN(idN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) IdN(idN []int32) ApiIpamRolesListRequest { r.idN = &idN return r } -func (r ApiIpamPrefixesListRequest) IsPool(isPool bool) ApiIpamPrefixesListRequest { - r.isPool = &isPool - return r -} - -func (r ApiIpamPrefixesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRolesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamPrefixesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRolesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamPrefixesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamPrefixesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamRolesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamPrefixesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamRolesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamPrefixesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamRolesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamPrefixesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamRolesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamPrefixesListRequest) Limit(limit int32) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) Limit(limit int32) ApiIpamRolesListRequest { r.limit = &limit return r } -func (r ApiIpamPrefixesListRequest) MarkUtilized(markUtilized bool) ApiIpamPrefixesListRequest { - r.markUtilized = &markUtilized - return r -} - -func (r ApiIpamPrefixesListRequest) MaskLength(maskLength []int32) ApiIpamPrefixesListRequest { - r.maskLength = &maskLength - return r -} - -func (r ApiIpamPrefixesListRequest) MaskLengthGte(maskLengthGte float32) ApiIpamPrefixesListRequest { - r.maskLengthGte = &maskLengthGte - return r -} - -func (r ApiIpamPrefixesListRequest) MaskLengthLte(maskLengthLte float32) ApiIpamPrefixesListRequest { - r.maskLengthLte = &maskLengthLte +func (r ApiIpamRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRolesListRequest { + r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamPrefixesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamPrefixesListRequest { - r.modifiedByRequest = &modifiedByRequest +func (r ApiIpamRolesListRequest) Name(name []string) ApiIpamRolesListRequest { + r.name = &name return r } -// The initial index from which to return the results. -func (r ApiIpamPrefixesListRequest) Offset(offset int32) ApiIpamPrefixesListRequest { - r.offset = &offset +func (r ApiIpamRolesListRequest) NameEmpty(nameEmpty bool) ApiIpamRolesListRequest { + r.nameEmpty = &nameEmpty return r } -// Which field to use when ordering the results. -func (r ApiIpamPrefixesListRequest) Ordering(ordering string) ApiIpamPrefixesListRequest { - r.ordering = &ordering +func (r ApiIpamRolesListRequest) NameIc(nameIc []string) ApiIpamRolesListRequest { + r.nameIc = &nameIc return r } -func (r ApiIpamPrefixesListRequest) Prefix(prefix []string) ApiIpamPrefixesListRequest { - r.prefix = &prefix +func (r ApiIpamRolesListRequest) NameIe(nameIe []string) ApiIpamRolesListRequest { + r.nameIe = &nameIe return r } -func (r ApiIpamPrefixesListRequest) PresentInVrf(presentInVrf string) ApiIpamPrefixesListRequest { - r.presentInVrf = &presentInVrf +func (r ApiIpamRolesListRequest) NameIew(nameIew []string) ApiIpamRolesListRequest { + r.nameIew = &nameIew return r } -func (r ApiIpamPrefixesListRequest) PresentInVrfId(presentInVrfId string) ApiIpamPrefixesListRequest { - r.presentInVrfId = &presentInVrfId +func (r ApiIpamRolesListRequest) NameIsw(nameIsw []string) ApiIpamRolesListRequest { + r.nameIsw = &nameIsw return r } -// Search -func (r ApiIpamPrefixesListRequest) Q(q string) ApiIpamPrefixesListRequest { - r.q = &q +func (r ApiIpamRolesListRequest) NameN(nameN []string) ApiIpamRolesListRequest { + r.nameN = &nameN return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) Region(region []int32) ApiIpamPrefixesListRequest { - r.region = ®ion +func (r ApiIpamRolesListRequest) NameNic(nameNic []string) ApiIpamRolesListRequest { + r.nameNic = &nameNic return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) RegionN(regionN []int32) ApiIpamPrefixesListRequest { - r.regionN = ®ionN +func (r ApiIpamRolesListRequest) NameNie(nameNie []string) ApiIpamRolesListRequest { + r.nameNie = &nameNie return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionId(regionId []int32) ApiIpamPrefixesListRequest { - r.regionId = ®ionId +func (r ApiIpamRolesListRequest) NameNiew(nameNiew []string) ApiIpamRolesListRequest { + r.nameNiew = &nameNiew return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []int32) ApiIpamPrefixesListRequest { - r.regionIdN = ®ionIdN +func (r ApiIpamRolesListRequest) NameNisw(nameNisw []string) ApiIpamRolesListRequest { + r.nameNisw = &nameNisw return r } -// Role (slug) -func (r ApiIpamPrefixesListRequest) Role(role []string) ApiIpamPrefixesListRequest { - r.role = &role +// The initial index from which to return the results. +func (r ApiIpamRolesListRequest) Offset(offset int32) ApiIpamRolesListRequest { + r.offset = &offset return r } -// Role (slug) -func (r ApiIpamPrefixesListRequest) RoleN(roleN []string) ApiIpamPrefixesListRequest { - r.roleN = &roleN +// Which field to use when ordering the results. +func (r ApiIpamRolesListRequest) Ordering(ordering string) ApiIpamRolesListRequest { + r.ordering = &ordering return r } -// Role (ID) -func (r ApiIpamPrefixesListRequest) RoleId(roleId []*int32) ApiIpamPrefixesListRequest { - r.roleId = &roleId +// Search +func (r ApiIpamRolesListRequest) Q(q string) ApiIpamRolesListRequest { + r.q = &q return r } -// Role (ID) -func (r ApiIpamPrefixesListRequest) RoleIdN(roleIdN []*int32) ApiIpamPrefixesListRequest { - r.roleIdN = &roleIdN +func (r ApiIpamRolesListRequest) Slug(slug []string) ApiIpamRolesListRequest { + r.slug = &slug return r } -// Site (slug) -func (r ApiIpamPrefixesListRequest) Site(site []string) ApiIpamPrefixesListRequest { - r.site = &site +func (r ApiIpamRolesListRequest) SlugEmpty(slugEmpty bool) ApiIpamRolesListRequest { + r.slugEmpty = &slugEmpty return r } -// Site (slug) -func (r ApiIpamPrefixesListRequest) SiteN(siteN []string) ApiIpamPrefixesListRequest { - r.siteN = &siteN +func (r ApiIpamRolesListRequest) SlugIc(slugIc []string) ApiIpamRolesListRequest { + r.slugIc = &slugIc return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []int32) ApiIpamPrefixesListRequest { - r.siteGroup = &siteGroup +func (r ApiIpamRolesListRequest) SlugIe(slugIe []string) ApiIpamRolesListRequest { + r.slugIe = &slugIe return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []int32) ApiIpamPrefixesListRequest { - r.siteGroupN = &siteGroupN +func (r ApiIpamRolesListRequest) SlugIew(slugIew []string) ApiIpamRolesListRequest { + r.slugIew = &slugIew return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []int32) ApiIpamPrefixesListRequest { - r.siteGroupId = &siteGroupId +func (r ApiIpamRolesListRequest) SlugIsw(slugIsw []string) ApiIpamRolesListRequest { + r.slugIsw = &slugIsw return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamPrefixesListRequest { - r.siteGroupIdN = &siteGroupIdN +func (r ApiIpamRolesListRequest) SlugN(slugN []string) ApiIpamRolesListRequest { + r.slugN = &slugN return r } -// Site (ID) -func (r ApiIpamPrefixesListRequest) SiteId(siteId []*int32) ApiIpamPrefixesListRequest { - r.siteId = &siteId +func (r ApiIpamRolesListRequest) SlugNic(slugNic []string) ApiIpamRolesListRequest { + r.slugNic = &slugNic return r } -// Site (ID) -func (r ApiIpamPrefixesListRequest) SiteIdN(siteIdN []*int32) ApiIpamPrefixesListRequest { - r.siteIdN = &siteIdN +func (r ApiIpamRolesListRequest) SlugNie(slugNie []string) ApiIpamRolesListRequest { + r.slugNie = &slugNie return r } -// Operational status of this prefix -func (r ApiIpamPrefixesListRequest) Status(status []string) ApiIpamPrefixesListRequest { - r.status = &status +func (r ApiIpamRolesListRequest) SlugNiew(slugNiew []string) ApiIpamRolesListRequest { + r.slugNiew = &slugNiew return r } -// Operational status of this prefix -func (r ApiIpamPrefixesListRequest) StatusN(statusN []string) ApiIpamPrefixesListRequest { - r.statusN = &statusN +func (r ApiIpamRolesListRequest) SlugNisw(slugNisw []string) ApiIpamRolesListRequest { + r.slugNisw = &slugNisw return r } -func (r ApiIpamPrefixesListRequest) Tag(tag []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) Tag(tag []string) ApiIpamRolesListRequest { r.tag = &tag return r } -func (r ApiIpamPrefixesListRequest) TagN(tagN []string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) TagN(tagN []string) ApiIpamRolesListRequest { r.tagN = &tagN return r } -// Tenant (slug) -func (r ApiIpamPrefixesListRequest) Tenant(tenant []string) ApiIpamPrefixesListRequest { - r.tenant = &tenant - return r -} - -// Tenant (slug) -func (r ApiIpamPrefixesListRequest) TenantN(tenantN []string) ApiIpamPrefixesListRequest { - r.tenantN = &tenantN - return r -} - -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []int32) ApiIpamPrefixesListRequest { - r.tenantGroup = &tenantGroup - return r -} - -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamPrefixesListRequest { - r.tenantGroupN = &tenantGroupN - return r -} - -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamPrefixesListRequest { - r.tenantGroupId = &tenantGroupId - return r -} - -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamPrefixesListRequest { - r.tenantGroupIdN = &tenantGroupIdN - return r -} - -// Tenant (ID) -func (r ApiIpamPrefixesListRequest) TenantId(tenantId []*int32) ApiIpamPrefixesListRequest { - r.tenantId = &tenantId - return r -} - -// Tenant (ID) -func (r ApiIpamPrefixesListRequest) TenantIdN(tenantIdN []*int32) ApiIpamPrefixesListRequest { - r.tenantIdN = &tenantIdN - return r -} - -func (r ApiIpamPrefixesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamPrefixesListRequest { +func (r ApiIpamRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRolesListRequest { r.updatedByRequest = &updatedByRequest return r } -// VLAN (ID) -func (r ApiIpamPrefixesListRequest) VlanId(vlanId []*int32) ApiIpamPrefixesListRequest { - r.vlanId = &vlanId - return r -} - -// VLAN (ID) -func (r ApiIpamPrefixesListRequest) VlanIdN(vlanIdN []*int32) ApiIpamPrefixesListRequest { - r.vlanIdN = &vlanIdN - return r -} - -// VLAN number (1-4094) -func (r ApiIpamPrefixesListRequest) VlanVid(vlanVid int32) ApiIpamPrefixesListRequest { - r.vlanVid = &vlanVid - 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 - return r -} - -// VLAN number (1-4094) -func (r ApiIpamPrefixesListRequest) VlanVidGte(vlanVidGte int32) ApiIpamPrefixesListRequest { - r.vlanVidGte = &vlanVidGte - return r -} - -// VLAN number (1-4094) -func (r ApiIpamPrefixesListRequest) VlanVidLt(vlanVidLt int32) ApiIpamPrefixesListRequest { - r.vlanVidLt = &vlanVidLt - return r -} - -// VLAN number (1-4094) -func (r ApiIpamPrefixesListRequest) VlanVidLte(vlanVidLte int32) ApiIpamPrefixesListRequest { - r.vlanVidLte = &vlanVidLte - return r -} - -// VLAN number (1-4094) -func (r ApiIpamPrefixesListRequest) VlanVidN(vlanVidN int32) ApiIpamPrefixesListRequest { - r.vlanVidN = &vlanVidN +func (r ApiIpamRolesListRequest) Weight(weight []int32) ApiIpamRolesListRequest { + r.weight = &weight return r } -// VRF (RD) -func (r ApiIpamPrefixesListRequest) Vrf(vrf []*string) ApiIpamPrefixesListRequest { - r.vrf = &vrf +func (r ApiIpamRolesListRequest) WeightEmpty(weightEmpty bool) ApiIpamRolesListRequest { + r.weightEmpty = &weightEmpty return r } -// VRF (RD) -func (r ApiIpamPrefixesListRequest) VrfN(vrfN []*string) ApiIpamPrefixesListRequest { - r.vrfN = &vrfN +func (r ApiIpamRolesListRequest) WeightGt(weightGt []int32) ApiIpamRolesListRequest { + r.weightGt = &weightGt return r } -// VRF -func (r ApiIpamPrefixesListRequest) VrfId(vrfId []*int32) ApiIpamPrefixesListRequest { - r.vrfId = &vrfId +func (r ApiIpamRolesListRequest) WeightGte(weightGte []int32) ApiIpamRolesListRequest { + r.weightGte = &weightGte return r } -// VRF -func (r ApiIpamPrefixesListRequest) VrfIdN(vrfIdN []*int32) ApiIpamPrefixesListRequest { - r.vrfIdN = &vrfIdN +func (r ApiIpamRolesListRequest) WeightLt(weightLt []int32) ApiIpamRolesListRequest { + r.weightLt = &weightLt return r } -// Within prefix -func (r ApiIpamPrefixesListRequest) Within(within string) ApiIpamPrefixesListRequest { - r.within = &within +func (r ApiIpamRolesListRequest) WeightLte(weightLte []int32) ApiIpamRolesListRequest { + r.weightLte = &weightLte return r } -// Within and including prefix -func (r ApiIpamPrefixesListRequest) WithinInclude(withinInclude string) ApiIpamPrefixesListRequest { - r.withinInclude = &withinInclude +func (r ApiIpamRolesListRequest) WeightN(weightN []int32) ApiIpamRolesListRequest { + r.weightN = &weightN return r } -func (r ApiIpamPrefixesListRequest) Execute() (*PaginatedPrefixList, *http.Response, error) { - return r.ApiService.IpamPrefixesListExecute(r) +func (r ApiIpamRolesListRequest) Execute() (*PaginatedRoleList, *http.Response, error) { + return r.ApiService.IpamRolesListExecute(r) } /* -IpamPrefixesList Method for IpamPrefixesList +IpamRolesList Method for IpamRolesList -Get a list of prefix objects. +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 ApiIpamPrefixesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesListRequest */ -func (a *IpamAPIService) IpamPrefixesList(ctx context.Context) ApiIpamPrefixesListRequest { - return ApiIpamPrefixesListRequest{ +func (a *IpamAPIService) IpamRolesList(ctx context.Context) ApiIpamRolesListRequest { + return ApiIpamRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPrefixList -func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (*PaginatedPrefixList, *http.Response, error) { +// @return PaginatedRoleList +func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*PaginatedRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPrefixList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/" + localVarPath := localBasePath + "/api/ipam/roles/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.children != nil { - t := *r.children - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__gt", t, "multi") - } - } - if r.childrenGte != nil { - t := *r.childrenGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__gte", t, "multi") - } - } - if r.childrenLt != nil { - t := *r.childrenLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__lt", t, "multi") - } - } - if r.childrenLte != nil { - t := *r.childrenLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__lte", t, "multi") - } - } - if r.childrenN != nil { - t := *r.childrenN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__n", t, "multi") - } - } - if r.contains != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "contains", r.contains, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -18234,10 +26144,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -18245,10 +26155,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -18256,10 +26166,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -18267,10 +26177,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -18278,10 +26188,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -18289,115 +26199,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.depth != nil { - t := *r.depth - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gt", t, "multi") - } - } - if r.depthGte != nil { - t := *r.depthGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gte", t, "multi") - } - } - if r.depthLt != nil { - t := *r.depthLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lt", t, "multi") - } - } - if r.depthLte != nil { - t := *r.depthLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lte", t, "multi") - } - } - if r.depthN != nil { - t := *r.depthN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -18405,10 +26238,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -18416,10 +26249,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -18427,10 +26260,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -18438,10 +26271,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -18449,10 +26282,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -18460,10 +26293,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -18471,10 +26304,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -18482,38 +26315,35 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.family != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "family", r.family, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -18521,10 +26351,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -18532,10 +26362,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -18543,10 +26373,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -18554,24 +26384,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__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.isPool != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_pool", r.isPool, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -18579,10 +26406,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -18590,10 +26417,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -18601,10 +26428,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -18612,10 +26439,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -18623,10 +26450,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -18634,468 +26461,347 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.markUtilized != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mark_utilized", r.markUtilized, "") - } - if r.maskLength != nil { - t := *r.maskLength - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", t, "multi") - } - } - if r.maskLengthGte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__gte", r.maskLengthGte, "") - } - if r.maskLengthLte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__lte", r.maskLengthLte, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } - if r.prefix != nil { - t := *r.prefix - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", t, "multi") - } - } - if r.presentInVrf != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf", r.presentInVrf, "") - } - if r.presentInVrfId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "present_in_vrf_id", r.presentInVrfId, "") - } - 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 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, "region__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "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.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } - if r.regionIdN != nil { - t := *r.regionIdN + 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, "region_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } - if r.role != nil { - t := *r.role + 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, "role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } - if r.roleN != nil { - t := *r.roleN + 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, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } - if r.roleId != nil { - t := *r.roleId + 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, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + 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, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } - if r.site != nil { - t := *r.site + 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, "site", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } - if r.siteN != nil { - t := *r.siteN + 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, "site__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + 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, "site_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + 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, "site_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "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.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } - 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.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - 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.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.siteIdN != nil { - t := *r.siteIdN + if r.slug != nil { + t := *r.slug 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") - } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } - if r.statusN != nil { - t := *r.statusN + if r.slugIc != nil { + t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + if r.slugIe != nil { + t := *r.slugIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.slugIew != nil { + t := *r.slugIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } - if r.tenant != nil { - t := *r.tenant + if r.slugIsw != nil { + t := *r.slugIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + if r.slugN != nil { + t := *r.slugN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + if r.slugNic != nil { + t := *r.slugNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + if r.slugNie != nil { + t := *r.slugNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + if r.slugNiew != nil { + t := *r.slugNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + if r.slugNisw != nil { + t := *r.slugNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } - if r.tenantId != nil { - t := *r.tenantId + 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, "tenant_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + 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, "tenant_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } - if r.vlanId != nil { - t := *r.vlanId + if r.weight != nil { + t := *r.weight 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "form", "multi") } } - if r.vlanIdN != nil { - t := *r.vlanIdN + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "form", "") + } + 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, "vlan_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "form", "multi") } } - 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, "") - } - if r.vlanVidGte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gte", r.vlanVidGte, "") - } - if r.vlanVidLt != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lt", r.vlanVidLt, "") - } - if r.vlanVidLte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lte", r.vlanVidLte, "") - } - if r.vlanVidN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__n", r.vlanVidN, "") - } - if r.vrf != nil { - t := *r.vrf + if r.weightGte != nil { + t := *r.weightGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "form", "multi") } } - if r.vrfN != nil { - t := *r.vrfN + if r.weightLt != nil { + t := *r.weightLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "form", "multi") } } - if r.vrfId != nil { - t := *r.vrfId + if r.weightLte != nil { + t := *r.weightLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "form", "multi") } } - if r.vrfIdN != nil { - t := *r.vrfIdN + if r.weightN != nil { + t := *r.weightN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "form", "multi") } } - if r.within != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "within", r.within, "") - } - if r.withinInclude != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "within_include", r.withinInclude, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -19164,56 +26870,55 @@ func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedWritablePrefixRequest *PatchedWritablePrefixRequest +type ApiIpamRolesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedRoleRequest *PatchedRoleRequest } -func (r ApiIpamPrefixesPartialUpdateRequest) PatchedWritablePrefixRequest(patchedWritablePrefixRequest PatchedWritablePrefixRequest) ApiIpamPrefixesPartialUpdateRequest { - r.patchedWritablePrefixRequest = &patchedWritablePrefixRequest +func (r ApiIpamRolesPartialUpdateRequest) PatchedRoleRequest(patchedRoleRequest PatchedRoleRequest) ApiIpamRolesPartialUpdateRequest { + r.patchedRoleRequest = &patchedRoleRequest return r } -func (r ApiIpamPrefixesPartialUpdateRequest) Execute() (*Prefix, *http.Response, error) { - return r.ApiService.IpamPrefixesPartialUpdateExecute(r) +func (r ApiIpamRolesPartialUpdateRequest) Execute() (*Role, *http.Response, error) { + return r.ApiService.IpamRolesPartialUpdateExecute(r) } /* -IpamPrefixesPartialUpdate Method for IpamPrefixesPartialUpdate +IpamRolesPartialUpdate Method for IpamRolesPartialUpdate -Patch a prefix object. +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 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 role. + @return ApiIpamRolesPartialUpdateRequest */ -func (a *IpamAPIService) IpamPrefixesPartialUpdate(ctx context.Context, id int32) ApiIpamPrefixesPartialUpdateRequest { - return ApiIpamPrefixesPartialUpdateRequest{ +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 Prefix -func (a *IpamAPIService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesPartialUpdateRequest) (*Prefix, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpdateRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/" + localVarPath := localBasePath + "/api/ipam/roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -19238,7 +26943,7 @@ func (a *IpamAPIService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesParti localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritablePrefixRequest + localVarPostBody = r.patchedRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19290,50 +26995,49 @@ func (a *IpamAPIService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesParti return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamRolesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamPrefixesRetrieveRequest) Execute() (*Prefix, *http.Response, error) { - return r.ApiService.IpamPrefixesRetrieveExecute(r) +func (r ApiIpamRolesRetrieveRequest) Execute() (*Role, *http.Response, error) { + return r.ApiService.IpamRolesRetrieveExecute(r) } /* -IpamPrefixesRetrieve Method for IpamPrefixesRetrieve +IpamRolesRetrieve Method for IpamRolesRetrieve -Get a prefix object. +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 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 role. + @return ApiIpamRolesRetrieveRequest */ -func (a *IpamAPIService) IpamPrefixesRetrieve(ctx context.Context, id int32) ApiIpamPrefixesRetrieveRequest { - return ApiIpamPrefixesRetrieveRequest{ +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 Prefix -func (a *IpamAPIService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRequest) (*Prefix, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/" + localVarPath := localBasePath + "/api/ipam/roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -19408,63 +27112,62 @@ func (a *IpamAPIService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamPrefixesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - writablePrefixRequest *WritablePrefixRequest +type ApiIpamRolesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + roleRequest *RoleRequest } -func (r ApiIpamPrefixesUpdateRequest) WritablePrefixRequest(writablePrefixRequest WritablePrefixRequest) ApiIpamPrefixesUpdateRequest { - r.writablePrefixRequest = &writablePrefixRequest +func (r ApiIpamRolesUpdateRequest) RoleRequest(roleRequest RoleRequest) ApiIpamRolesUpdateRequest { + r.roleRequest = &roleRequest return r } -func (r ApiIpamPrefixesUpdateRequest) Execute() (*Prefix, *http.Response, error) { - return r.ApiService.IpamPrefixesUpdateExecute(r) +func (r ApiIpamRolesUpdateRequest) Execute() (*Role, *http.Response, error) { + return r.ApiService.IpamRolesUpdateExecute(r) } /* -IpamPrefixesUpdate Method for IpamPrefixesUpdate +IpamRolesUpdate Method for IpamRolesUpdate -Put a prefix object. +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 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 role. + @return ApiIpamRolesUpdateRequest */ -func (a *IpamAPIService) IpamPrefixesUpdate(ctx context.Context, id int32) ApiIpamPrefixesUpdateRequest { - return ApiIpamPrefixesUpdateRequest{ +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 Prefix -func (a *IpamAPIService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateRequest) (*Prefix, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/prefixes/{id}/" + localVarPath := localBasePath + "/api/ipam/roles/{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.writablePrefixRequest == nil { - return localVarReturnValue, nil, reportError("writablePrefixRequest is required and must be specified") + if r.roleRequest == nil { + return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") } // to determine the Content-Type header @@ -19485,7 +27188,7 @@ func (a *IpamAPIService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writablePrefixRequest + localVarPostBody = r.roleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19537,56 +27240,56 @@ func (a *IpamAPIService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRirsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - rIRRequest *[]RIRRequest +type ApiIpamRouteTargetsBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + routeTargetRequest *[]RouteTargetRequest } -func (r ApiIpamRirsBulkDestroyRequest) RIRRequest(rIRRequest []RIRRequest) ApiIpamRirsBulkDestroyRequest { - r.rIRRequest = &rIRRequest +func (r ApiIpamRouteTargetsBulkDestroyRequest) RouteTargetRequest(routeTargetRequest []RouteTargetRequest) ApiIpamRouteTargetsBulkDestroyRequest { + r.routeTargetRequest = &routeTargetRequest return r } -func (r ApiIpamRirsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamRirsBulkDestroyExecute(r) +func (r ApiIpamRouteTargetsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamRouteTargetsBulkDestroyExecute(r) } /* -IpamRirsBulkDestroy Method for IpamRirsBulkDestroy +IpamRouteTargetsBulkDestroy Method for IpamRouteTargetsBulkDestroy -Delete a list of RIR objects. +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 ApiIpamRirsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsBulkDestroyRequest */ -func (a *IpamAPIService) IpamRirsBulkDestroy(ctx context.Context) ApiIpamRirsBulkDestroyRequest { - return ApiIpamRirsBulkDestroyRequest{ +func (a *IpamAPIService) IpamRouteTargetsBulkDestroy(ctx context.Context) ApiIpamRouteTargetsBulkDestroyRequest { + return ApiIpamRouteTargetsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequest) (*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.IpamRirsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/" + localVarPath := localBasePath + "/api/ipam/route-targets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rIRRequest == nil { - return nil, reportError("rIRRequest is required and must be specified") + if r.routeTargetRequest == nil { + return nil, reportError("routeTargetRequest is required and must be specified") } // to determine the Content-Type header @@ -19607,7 +27310,7 @@ func (a *IpamAPIService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rIRRequest + localVarPostBody = r.routeTargetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19650,59 +27353,58 @@ func (a *IpamAPIService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequ return localVarHTTPResponse, nil } -type ApiIpamRirsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - rIRRequest *[]RIRRequest +type ApiIpamRouteTargetsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + routeTargetRequest *[]RouteTargetRequest } -func (r ApiIpamRirsBulkPartialUpdateRequest) RIRRequest(rIRRequest []RIRRequest) ApiIpamRirsBulkPartialUpdateRequest { - r.rIRRequest = &rIRRequest +func (r ApiIpamRouteTargetsBulkPartialUpdateRequest) RouteTargetRequest(routeTargetRequest []RouteTargetRequest) ApiIpamRouteTargetsBulkPartialUpdateRequest { + r.routeTargetRequest = &routeTargetRequest return r } -func (r ApiIpamRirsBulkPartialUpdateRequest) Execute() ([]RIR, *http.Response, error) { - return r.ApiService.IpamRirsBulkPartialUpdateExecute(r) +func (r ApiIpamRouteTargetsBulkPartialUpdateRequest) Execute() ([]RouteTarget, *http.Response, error) { + return r.ApiService.IpamRouteTargetsBulkPartialUpdateExecute(r) } /* -IpamRirsBulkPartialUpdate Method for IpamRirsBulkPartialUpdate +IpamRouteTargetsBulkPartialUpdate Method for IpamRouteTargetsBulkPartialUpdate -Patch a list of RIR objects. +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 ApiIpamRirsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamRirsBulkPartialUpdate(ctx context.Context) ApiIpamRirsBulkPartialUpdateRequest { - return ApiIpamRirsBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdate(ctx context.Context) ApiIpamRouteTargetsBulkPartialUpdateRequest { + return ApiIpamRouteTargetsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RIR -func (a *IpamAPIService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkPartialUpdateRequest) ([]RIR, *http.Response, error) { +// @return []RouteTarget +func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRouteTargetsBulkPartialUpdateRequest) ([]RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RIR + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/" + localVarPath := localBasePath + "/api/ipam/route-targets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rIRRequest == nil { - return localVarReturnValue, nil, reportError("rIRRequest is required and must be specified") + if r.routeTargetRequest == nil { + return localVarReturnValue, nil, reportError("routeTargetRequest is required and must be specified") } // to determine the Content-Type header @@ -19723,7 +27425,7 @@ func (a *IpamAPIService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkParti localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rIRRequest + localVarPostBody = r.routeTargetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19775,59 +27477,58 @@ func (a *IpamAPIService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkParti return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRirsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - rIRRequest *[]RIRRequest +type ApiIpamRouteTargetsBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + routeTargetRequest *[]RouteTargetRequest } -func (r ApiIpamRirsBulkUpdateRequest) RIRRequest(rIRRequest []RIRRequest) ApiIpamRirsBulkUpdateRequest { - r.rIRRequest = &rIRRequest +func (r ApiIpamRouteTargetsBulkUpdateRequest) RouteTargetRequest(routeTargetRequest []RouteTargetRequest) ApiIpamRouteTargetsBulkUpdateRequest { + r.routeTargetRequest = &routeTargetRequest return r } -func (r ApiIpamRirsBulkUpdateRequest) Execute() ([]RIR, *http.Response, error) { - return r.ApiService.IpamRirsBulkUpdateExecute(r) +func (r ApiIpamRouteTargetsBulkUpdateRequest) Execute() ([]RouteTarget, *http.Response, error) { + return r.ApiService.IpamRouteTargetsBulkUpdateExecute(r) } /* -IpamRirsBulkUpdate Method for IpamRirsBulkUpdate +IpamRouteTargetsBulkUpdate Method for IpamRouteTargetsBulkUpdate -Put a list of RIR objects. +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 ApiIpamRirsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsBulkUpdateRequest */ -func (a *IpamAPIService) IpamRirsBulkUpdate(ctx context.Context) ApiIpamRirsBulkUpdateRequest { - return ApiIpamRirsBulkUpdateRequest{ +func (a *IpamAPIService) IpamRouteTargetsBulkUpdate(ctx context.Context) ApiIpamRouteTargetsBulkUpdateRequest { + return ApiIpamRouteTargetsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RIR -func (a *IpamAPIService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateRequest) ([]RIR, *http.Response, error) { +// @return []RouteTarget +func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargetsBulkUpdateRequest) ([]RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RIR + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/" + localVarPath := localBasePath + "/api/ipam/route-targets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rIRRequest == nil { - return localVarReturnValue, nil, reportError("rIRRequest is required and must be specified") + if r.routeTargetRequest == nil { + return localVarReturnValue, nil, reportError("routeTargetRequest is required and must be specified") } // to determine the Content-Type header @@ -19848,7 +27549,7 @@ func (a *IpamAPIService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rIRRequest + localVarPostBody = r.routeTargetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -19900,59 +27601,58 @@ func (a *IpamAPIService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRirsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - rIRRequest *RIRRequest +type ApiIpamRouteTargetsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + routeTargetRequest *RouteTargetRequest } -func (r ApiIpamRirsCreateRequest) RIRRequest(rIRRequest RIRRequest) ApiIpamRirsCreateRequest { - r.rIRRequest = &rIRRequest +func (r ApiIpamRouteTargetsCreateRequest) RouteTargetRequest(routeTargetRequest RouteTargetRequest) ApiIpamRouteTargetsCreateRequest { + r.routeTargetRequest = &routeTargetRequest return r } -func (r ApiIpamRirsCreateRequest) Execute() (*RIR, *http.Response, error) { - return r.ApiService.IpamRirsCreateExecute(r) +func (r ApiIpamRouteTargetsCreateRequest) Execute() (*RouteTarget, *http.Response, error) { + return r.ApiService.IpamRouteTargetsCreateExecute(r) } /* -IpamRirsCreate Method for IpamRirsCreate +IpamRouteTargetsCreate Method for IpamRouteTargetsCreate -Post a list of RIR objects. +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 ApiIpamRirsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsCreateRequest */ -func (a *IpamAPIService) IpamRirsCreate(ctx context.Context) ApiIpamRirsCreateRequest { - return ApiIpamRirsCreateRequest{ +func (a *IpamAPIService) IpamRouteTargetsCreate(ctx context.Context) ApiIpamRouteTargetsCreateRequest { + return ApiIpamRouteTargetsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RIR -func (a *IpamAPIService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCreateRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/" + localVarPath := localBasePath + "/api/ipam/route-targets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rIRRequest == nil { - return localVarReturnValue, nil, reportError("rIRRequest is required and must be specified") + if r.routeTargetRequest == nil { + return localVarReturnValue, nil, reportError("routeTargetRequest is required and must be specified") } // to determine the Content-Type header @@ -19973,7 +27673,7 @@ func (a *IpamAPIService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rIRRequest + localVarPostBody = r.routeTargetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -20025,47 +27725,47 @@ func (a *IpamAPIService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRirsDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamRouteTargetsDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamRirsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamRirsDestroyExecute(r) +func (r ApiIpamRouteTargetsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamRouteTargetsDestroyExecute(r) } /* -IpamRirsDestroy Method for IpamRirsDestroy +IpamRouteTargetsDestroy Method for IpamRouteTargetsDestroy -Delete a RIR object. +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 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 route target. + @return ApiIpamRouteTargetsDestroyRequest */ -func (a *IpamAPIService) IpamRirsDestroy(ctx context.Context, id int32) ApiIpamRirsDestroyRequest { - return ApiIpamRirsDestroyRequest{ +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) IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*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.IpamRirsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/{id}/" + localVarPath := localBasePath + "/api/ipam/route-targets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -20131,435 +27831,526 @@ func (a *IpamAPIService) IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*h return localVarHTTPResponse, nil } -type ApiIpamRirsListRequest struct { - 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 - 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 +type ApiIpamRouteTargetsListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + exportingL2vpn *[]*int64 + exportingL2vpnN *[]*int64 + exportingL2vpnId *[]int32 + exportingL2vpnIdN *[]int32 + exportingVrf *[]*string + exportingVrfN *[]*string + exportingVrfId *[]int32 + exportingVrfIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + importingL2vpn *[]*int64 + importingL2vpnN *[]*int64 + importingL2vpnId *[]int32 + importingL2vpnIdN *[]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 - 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 + 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 *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string } -func (r ApiIpamRirsListRequest) Created(created []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) Created(created []time.Time) ApiIpamRouteTargetsListRequest { r.created = &created return r } -func (r ApiIpamRirsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRouteTargetsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamRirsListRequest) CreatedGt(createdGt []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) CreatedGt(createdGt []time.Time) ApiIpamRouteTargetsListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamRirsListRequest) CreatedGte(createdGte []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) CreatedGte(createdGte []time.Time) ApiIpamRouteTargetsListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamRirsListRequest) CreatedLt(createdLt []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) CreatedLt(createdLt []time.Time) ApiIpamRouteTargetsListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamRirsListRequest) CreatedLte(createdLte []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) CreatedLte(createdLte []time.Time) ApiIpamRouteTargetsListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamRirsListRequest) CreatedN(createdN []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) CreatedN(createdN []time.Time) ApiIpamRouteTargetsListRequest { r.createdN = &createdN return r } -func (r ApiIpamRirsListRequest) CreatedByRequest(createdByRequest string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) CreatedByRequest(createdByRequest string) ApiIpamRouteTargetsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamRirsListRequest) Description(description []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) Description(description []string) ApiIpamRouteTargetsListRequest { r.description = &description return r } -func (r ApiIpamRirsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamRouteTargetsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamRirsListRequest) DescriptionIc(descriptionIc []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionIc(descriptionIc []string) ApiIpamRouteTargetsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamRirsListRequest) DescriptionIe(descriptionIe []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionIe(descriptionIe []string) ApiIpamRouteTargetsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamRirsListRequest) DescriptionIew(descriptionIew []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionIew(descriptionIew []string) ApiIpamRouteTargetsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamRirsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamRouteTargetsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamRirsListRequest) DescriptionN(descriptionN []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionN(descriptionN []string) ApiIpamRouteTargetsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamRirsListRequest) DescriptionNic(descriptionNic []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionNic(descriptionNic []string) ApiIpamRouteTargetsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamRirsListRequest) DescriptionNie(descriptionNie []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionNie(descriptionNie []string) ApiIpamRouteTargetsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamRirsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamRouteTargetsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamRirsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamRouteTargetsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamRirsListRequest) Id(id []int32) ApiIpamRirsListRequest { +// Exporting L2VPN (identifier) +func (r ApiIpamRouteTargetsListRequest) ExportingL2vpn(exportingL2vpn []*int64) ApiIpamRouteTargetsListRequest { + r.exportingL2vpn = &exportingL2vpn + return r +} + +// Exporting L2VPN (identifier) +func (r ApiIpamRouteTargetsListRequest) ExportingL2vpnN(exportingL2vpnN []*int64) ApiIpamRouteTargetsListRequest { + r.exportingL2vpnN = &exportingL2vpnN + return r +} + +// Exporting L2VPN +func (r ApiIpamRouteTargetsListRequest) ExportingL2vpnId(exportingL2vpnId []int32) ApiIpamRouteTargetsListRequest { + r.exportingL2vpnId = &exportingL2vpnId + return r +} + +// Exporting L2VPN +func (r ApiIpamRouteTargetsListRequest) ExportingL2vpnIdN(exportingL2vpnIdN []int32) ApiIpamRouteTargetsListRequest { + r.exportingL2vpnIdN = &exportingL2vpnIdN + return r +} + +// Export VRF (RD) +func (r ApiIpamRouteTargetsListRequest) ExportingVrf(exportingVrf []*string) ApiIpamRouteTargetsListRequest { + r.exportingVrf = &exportingVrf + return r +} + +// Export VRF (RD) +func (r ApiIpamRouteTargetsListRequest) ExportingVrfN(exportingVrfN []*string) ApiIpamRouteTargetsListRequest { + r.exportingVrfN = &exportingVrfN + return r +} + +// Exporting VRF +func (r ApiIpamRouteTargetsListRequest) ExportingVrfId(exportingVrfId []int32) ApiIpamRouteTargetsListRequest { + r.exportingVrfId = &exportingVrfId + return r +} + +// Exporting VRF +func (r ApiIpamRouteTargetsListRequest) ExportingVrfIdN(exportingVrfIdN []int32) ApiIpamRouteTargetsListRequest { + r.exportingVrfIdN = &exportingVrfIdN + return r +} + +func (r ApiIpamRouteTargetsListRequest) Id(id []int32) ApiIpamRouteTargetsListRequest { r.id = &id return r } -func (r ApiIpamRirsListRequest) IdEmpty(idEmpty bool) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) IdEmpty(idEmpty bool) ApiIpamRouteTargetsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamRirsListRequest) IdGt(idGt []int32) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) IdGt(idGt []int32) ApiIpamRouteTargetsListRequest { r.idGt = &idGt return r } -func (r ApiIpamRirsListRequest) IdGte(idGte []int32) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) IdGte(idGte []int32) ApiIpamRouteTargetsListRequest { r.idGte = &idGte return r } -func (r ApiIpamRirsListRequest) IdLt(idLt []int32) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) IdLt(idLt []int32) ApiIpamRouteTargetsListRequest { r.idLt = &idLt return r } -func (r ApiIpamRirsListRequest) IdLte(idLte []int32) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) IdLte(idLte []int32) ApiIpamRouteTargetsListRequest { r.idLte = &idLte return r } -func (r ApiIpamRirsListRequest) IdN(idN []int32) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) IdN(idN []int32) ApiIpamRouteTargetsListRequest { r.idN = &idN return r } -func (r ApiIpamRirsListRequest) IsPrivate(isPrivate bool) ApiIpamRirsListRequest { - r.isPrivate = &isPrivate +// Importing L2VPN (identifier) +func (r ApiIpamRouteTargetsListRequest) ImportingL2vpn(importingL2vpn []*int64) ApiIpamRouteTargetsListRequest { + r.importingL2vpn = &importingL2vpn return r } -func (r ApiIpamRirsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRirsListRequest { +// Importing L2VPN (identifier) +func (r ApiIpamRouteTargetsListRequest) ImportingL2vpnN(importingL2vpnN []*int64) ApiIpamRouteTargetsListRequest { + r.importingL2vpnN = &importingL2vpnN + return r +} + +// Importing L2VPN +func (r ApiIpamRouteTargetsListRequest) ImportingL2vpnId(importingL2vpnId []int32) ApiIpamRouteTargetsListRequest { + r.importingL2vpnId = &importingL2vpnId + return r +} + +// Importing L2VPN +func (r ApiIpamRouteTargetsListRequest) ImportingL2vpnIdN(importingL2vpnIdN []int32) ApiIpamRouteTargetsListRequest { + r.importingL2vpnIdN = &importingL2vpnIdN + return r +} + +// Import VRF (RD) +func (r ApiIpamRouteTargetsListRequest) ImportingVrf(importingVrf []*string) ApiIpamRouteTargetsListRequest { + r.importingVrf = &importingVrf + return r +} + +// Import VRF (RD) +func (r ApiIpamRouteTargetsListRequest) ImportingVrfN(importingVrfN []*string) ApiIpamRouteTargetsListRequest { + r.importingVrfN = &importingVrfN + return r +} + +// Importing VRF +func (r ApiIpamRouteTargetsListRequest) ImportingVrfId(importingVrfId []int32) ApiIpamRouteTargetsListRequest { + r.importingVrfId = &importingVrfId + return r +} + +// Importing VRF +func (r ApiIpamRouteTargetsListRequest) ImportingVrfIdN(importingVrfIdN []int32) ApiIpamRouteTargetsListRequest { + r.importingVrfIdN = &importingVrfIdN + return r +} + +func (r ApiIpamRouteTargetsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamRirsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamRirsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamRirsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamRirsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamRirsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamRirsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamRirsListRequest) Limit(limit int32) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) Limit(limit int32) ApiIpamRouteTargetsListRequest { r.limit = &limit return r } -func (r ApiIpamRirsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRouteTargetsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamRirsListRequest) Name(name []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) Name(name []string) ApiIpamRouteTargetsListRequest { r.name = &name return r } -func (r ApiIpamRirsListRequest) NameEmpty(nameEmpty bool) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameEmpty(nameEmpty bool) ApiIpamRouteTargetsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiIpamRirsListRequest) NameIc(nameIc []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameIc(nameIc []string) ApiIpamRouteTargetsListRequest { r.nameIc = &nameIc return r } -func (r ApiIpamRirsListRequest) NameIe(nameIe []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameIe(nameIe []string) ApiIpamRouteTargetsListRequest { r.nameIe = &nameIe return r } -func (r ApiIpamRirsListRequest) NameIew(nameIew []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameIew(nameIew []string) ApiIpamRouteTargetsListRequest { r.nameIew = &nameIew return r } -func (r ApiIpamRirsListRequest) NameIsw(nameIsw []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameIsw(nameIsw []string) ApiIpamRouteTargetsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiIpamRirsListRequest) NameN(nameN []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameN(nameN []string) ApiIpamRouteTargetsListRequest { r.nameN = &nameN return r } -func (r ApiIpamRirsListRequest) NameNic(nameNic []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameNic(nameNic []string) ApiIpamRouteTargetsListRequest { r.nameNic = &nameNic return r } -func (r ApiIpamRirsListRequest) NameNie(nameNie []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameNie(nameNie []string) ApiIpamRouteTargetsListRequest { r.nameNie = &nameNie return r } -func (r ApiIpamRirsListRequest) NameNiew(nameNiew []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameNiew(nameNiew []string) ApiIpamRouteTargetsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiIpamRirsListRequest) NameNisw(nameNisw []string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) NameNisw(nameNisw []string) ApiIpamRouteTargetsListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiIpamRirsListRequest) Offset(offset int32) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) Offset(offset int32) ApiIpamRouteTargetsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiIpamRirsListRequest) Ordering(ordering string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) Ordering(ordering string) ApiIpamRouteTargetsListRequest { r.ordering = &ordering return r } // Search -func (r ApiIpamRirsListRequest) Q(q string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) Q(q string) ApiIpamRouteTargetsListRequest { r.q = &q return r } -func (r ApiIpamRirsListRequest) Slug(slug []string) ApiIpamRirsListRequest { - r.slug = &slug - return r -} - -func (r ApiIpamRirsListRequest) SlugEmpty(slugEmpty bool) ApiIpamRirsListRequest { - r.slugEmpty = &slugEmpty - return r -} - -func (r ApiIpamRirsListRequest) SlugIc(slugIc []string) ApiIpamRirsListRequest { - r.slugIc = &slugIc - return r -} - -func (r ApiIpamRirsListRequest) SlugIe(slugIe []string) ApiIpamRirsListRequest { - r.slugIe = &slugIe +func (r ApiIpamRouteTargetsListRequest) Tag(tag []string) ApiIpamRouteTargetsListRequest { + r.tag = &tag return r } -func (r ApiIpamRirsListRequest) SlugIew(slugIew []string) ApiIpamRirsListRequest { - r.slugIew = &slugIew +func (r ApiIpamRouteTargetsListRequest) TagN(tagN []string) ApiIpamRouteTargetsListRequest { + r.tagN = &tagN return r } -func (r ApiIpamRirsListRequest) SlugIsw(slugIsw []string) ApiIpamRirsListRequest { - r.slugIsw = &slugIsw +// Tenant (slug) +func (r ApiIpamRouteTargetsListRequest) Tenant(tenant []string) ApiIpamRouteTargetsListRequest { + r.tenant = &tenant return r } -func (r ApiIpamRirsListRequest) SlugN(slugN []string) ApiIpamRirsListRequest { - r.slugN = &slugN +// Tenant (slug) +func (r ApiIpamRouteTargetsListRequest) TenantN(tenantN []string) ApiIpamRouteTargetsListRequest { + r.tenantN = &tenantN return r } -func (r ApiIpamRirsListRequest) SlugNic(slugNic []string) ApiIpamRirsListRequest { - r.slugNic = &slugNic +func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []string) ApiIpamRouteTargetsListRequest { + r.tenantGroup = &tenantGroup return r } -func (r ApiIpamRirsListRequest) SlugNie(slugNie []string) ApiIpamRirsListRequest { - r.slugNie = &slugNie +func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamRouteTargetsListRequest { + r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamRirsListRequest) SlugNiew(slugNiew []string) ApiIpamRirsListRequest { - r.slugNiew = &slugNiew +func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamRouteTargetsListRequest { + r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamRirsListRequest) SlugNisw(slugNisw []string) ApiIpamRirsListRequest { - r.slugNisw = &slugNisw +func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamRouteTargetsListRequest { + r.tenantGroupIdN = &tenantGroupIdN return r } -func (r ApiIpamRirsListRequest) Tag(tag []string) ApiIpamRirsListRequest { - r.tag = &tag +// Tenant (ID) +func (r ApiIpamRouteTargetsListRequest) TenantId(tenantId []*int32) ApiIpamRouteTargetsListRequest { + r.tenantId = &tenantId return r } -func (r ApiIpamRirsListRequest) TagN(tagN []string) ApiIpamRirsListRequest { - r.tagN = &tagN +// Tenant (ID) +func (r ApiIpamRouteTargetsListRequest) TenantIdN(tenantIdN []*int32) ApiIpamRouteTargetsListRequest { + r.tenantIdN = &tenantIdN return r } -func (r ApiIpamRirsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRirsListRequest { +func (r ApiIpamRouteTargetsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRouteTargetsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamRirsListRequest) Execute() (*PaginatedRIRList, *http.Response, error) { - return r.ApiService.IpamRirsListExecute(r) +func (r ApiIpamRouteTargetsListRequest) Execute() (*PaginatedRouteTargetList, *http.Response, error) { + return r.ApiService.IpamRouteTargetsListExecute(r) } /* -IpamRirsList Method for IpamRirsList +IpamRouteTargetsList Method for IpamRouteTargetsList -Get a list of RIR objects. +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 ApiIpamRirsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsListRequest */ -func (a *IpamAPIService) IpamRirsList(ctx context.Context) ApiIpamRirsListRequest { - return ApiIpamRirsListRequest{ +func (a *IpamAPIService) IpamRouteTargetsList(ctx context.Context) ApiIpamRouteTargetsListRequest { + return ApiIpamRouteTargetsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRIRList -func (a *IpamAPIService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*PaginatedRIRList, *http.Response, error) { +// @return PaginatedRouteTargetList +func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRequest) (*PaginatedRouteTargetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRIRList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRouteTargetList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/" + localVarPath := localBasePath + "/api/ipam/route-targets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -20570,10 +28361,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -20581,10 +28372,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -20592,10 +28383,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -20603,10 +28394,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -20614,10 +28405,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -20625,10 +28416,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -20636,38 +28427,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -20675,10 +28466,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -20686,10 +28477,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -20697,10 +28488,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -20708,10 +28499,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -20719,10 +28510,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -20730,10 +28521,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -20741,10 +28532,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -20752,10 +28543,98 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.exportingL2vpn != nil { + t := *r.exportingL2vpn + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn", t, "form", "multi") + } + } + if r.exportingL2vpnN != nil { + t := *r.exportingL2vpnN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn__n", t, "form", "multi") + } + } + if r.exportingL2vpnId != nil { + t := *r.exportingL2vpnId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id", t, "form", "multi") + } + } + if r.exportingL2vpnIdN != nil { + t := *r.exportingL2vpnIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id__n", t, "form", "multi") + } + } + if r.exportingVrf != nil { + t := *r.exportingVrf + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf", t, "form", "multi") + } + } + if r.exportingVrfN != nil { + t := *r.exportingVrfN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf__n", t, "form", "multi") + } + } + if r.exportingVrfId != nil { + t := *r.exportingVrfId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id", t, "form", "multi") + } + } + if r.exportingVrfIdN != nil { + t := *r.exportingVrfIdN + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id__n", t, "form", "multi") } } if r.id != nil { @@ -20763,24 +28642,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -20788,10 +28667,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -20799,10 +28678,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -20810,10 +28689,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -20821,24 +28700,109 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.isPrivate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_private", r.isPrivate, "") + if r.importingL2vpn != nil { + t := *r.importingL2vpn + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn", t, "form", "multi") + } + } + if r.importingL2vpnN != nil { + t := *r.importingL2vpnN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn__n", t, "form", "multi") + } + } + if r.importingL2vpnId != nil { + t := *r.importingL2vpnId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id", t, "form", "multi") + } + } + if r.importingL2vpnIdN != nil { + t := *r.importingL2vpnIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id__n", t, "form", "multi") + } + } + if r.importingVrf != nil { + t := *r.importingVrf + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf", t, "form", "multi") + } + } + if r.importingVrfN != nil { + t := *r.importingVrfN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf__n", t, "form", "multi") + } + } + if r.importingVrfId != nil { + t := *r.importingVrfId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id", t, "form", "multi") + } + } + if r.importingVrfIdN != nil { + t := *r.importingVrfIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id__n", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -20846,10 +28810,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -20857,10 +28821,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -20868,10 +28832,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -20879,10 +28843,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -20890,10 +28854,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -20901,41 +28865,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -20943,10 +28907,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -20954,10 +28918,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -20965,10 +28929,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -20976,10 +28940,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -20987,10 +28951,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -20998,10 +28962,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -21009,10 +28973,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -21020,158 +28984,133 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.slug != nil { - t := *r.slug - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") - } - } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") - } - } - if r.slugIe != nil { - t := *r.slugIe + 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, "slug__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.slugIew != nil { - t := *r.slugIew + 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, "slug__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + 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, "slug__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } - if r.slugN != nil { - t := *r.slugN + 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, "slug__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + 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, "slug__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + 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, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + 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, "slug__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + 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, "slug__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } - if r.tag != nil { - t := *r.tag + 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21241,56 +29180,55 @@ func (a *IpamAPIService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRirsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedRIRRequest *PatchedRIRRequest +type ApiIpamRouteTargetsPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedRouteTargetRequest *PatchedRouteTargetRequest } -func (r ApiIpamRirsPartialUpdateRequest) PatchedRIRRequest(patchedRIRRequest PatchedRIRRequest) ApiIpamRirsPartialUpdateRequest { - r.patchedRIRRequest = &patchedRIRRequest +func (r ApiIpamRouteTargetsPartialUpdateRequest) PatchedRouteTargetRequest(patchedRouteTargetRequest PatchedRouteTargetRequest) ApiIpamRouteTargetsPartialUpdateRequest { + r.patchedRouteTargetRequest = &patchedRouteTargetRequest return r } -func (r ApiIpamRirsPartialUpdateRequest) Execute() (*RIR, *http.Response, error) { - return r.ApiService.IpamRirsPartialUpdateExecute(r) +func (r ApiIpamRouteTargetsPartialUpdateRequest) Execute() (*RouteTarget, *http.Response, error) { + return r.ApiService.IpamRouteTargetsPartialUpdateExecute(r) } /* -IpamRirsPartialUpdate Method for IpamRirsPartialUpdate +IpamRouteTargetsPartialUpdate Method for IpamRouteTargetsPartialUpdate -Patch a RIR object. +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 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 route target. + @return ApiIpamRouteTargetsPartialUpdateRequest */ -func (a *IpamAPIService) IpamRirsPartialUpdate(ctx context.Context, id int32) ApiIpamRirsPartialUpdateRequest { - return ApiIpamRirsPartialUpdateRequest{ +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 RIR -func (a *IpamAPIService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdateRequest) (*RIR, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTargetsPartialUpdateRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/{id}/" + localVarPath := localBasePath + "/api/ipam/route-targets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -21315,7 +29253,7 @@ func (a *IpamAPIService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdate localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedRIRRequest + localVarPostBody = r.patchedRouteTargetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -21367,50 +29305,49 @@ func (a *IpamAPIService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdate return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRirsRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamRouteTargetsRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamRirsRetrieveRequest) Execute() (*RIR, *http.Response, error) { - return r.ApiService.IpamRirsRetrieveExecute(r) +func (r ApiIpamRouteTargetsRetrieveRequest) Execute() (*RouteTarget, *http.Response, error) { + return r.ApiService.IpamRouteTargetsRetrieveExecute(r) } /* -IpamRirsRetrieve Method for IpamRirsRetrieve +IpamRouteTargetsRetrieve Method for IpamRouteTargetsRetrieve -Get a RIR object. +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 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 route target. + @return ApiIpamRouteTargetsRetrieveRequest */ -func (a *IpamAPIService) IpamRirsRetrieve(ctx context.Context, id int32) ApiIpamRirsRetrieveRequest { - return ApiIpamRirsRetrieveRequest{ +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 RIR -func (a *IpamAPIService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (*RIR, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRetrieveRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/{id}/" + localVarPath := localBasePath + "/api/ipam/route-targets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -21485,63 +29422,62 @@ func (a *IpamAPIService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRirsUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - rIRRequest *RIRRequest +type ApiIpamRouteTargetsUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + routeTargetRequest *RouteTargetRequest } -func (r ApiIpamRirsUpdateRequest) RIRRequest(rIRRequest RIRRequest) ApiIpamRirsUpdateRequest { - r.rIRRequest = &rIRRequest +func (r ApiIpamRouteTargetsUpdateRequest) RouteTargetRequest(routeTargetRequest RouteTargetRequest) ApiIpamRouteTargetsUpdateRequest { + r.routeTargetRequest = &routeTargetRequest return r } -func (r ApiIpamRirsUpdateRequest) Execute() (*RIR, *http.Response, error) { - return r.ApiService.IpamRirsUpdateExecute(r) +func (r ApiIpamRouteTargetsUpdateRequest) Execute() (*RouteTarget, *http.Response, error) { + return r.ApiService.IpamRouteTargetsUpdateExecute(r) } /* -IpamRirsUpdate Method for IpamRirsUpdate +IpamRouteTargetsUpdate Method for IpamRouteTargetsUpdate -Put a RIR object. +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 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 route target. + @return ApiIpamRouteTargetsUpdateRequest */ -func (a *IpamAPIService) IpamRirsUpdate(ctx context.Context, id int32) ApiIpamRirsUpdateRequest { - return ApiIpamRirsUpdateRequest{ +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 RIR -func (a *IpamAPIService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpdateRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/rirs/{id}/" + localVarPath := localBasePath + "/api/ipam/route-targets/{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.rIRRequest == nil { - return localVarReturnValue, nil, reportError("rIRRequest is required and must be specified") + if r.routeTargetRequest == nil { + return localVarReturnValue, nil, reportError("routeTargetRequest is required and must be specified") } // to determine the Content-Type header @@ -21562,7 +29498,7 @@ func (a *IpamAPIService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rIRRequest + localVarPostBody = r.routeTargetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -21614,56 +29550,56 @@ func (a *IpamAPIService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - roleRequest *[]RoleRequest +type ApiIpamServiceTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + serviceTemplateRequest *[]ServiceTemplateRequest } -func (r ApiIpamRolesBulkDestroyRequest) RoleRequest(roleRequest []RoleRequest) ApiIpamRolesBulkDestroyRequest { - r.roleRequest = &roleRequest +func (r ApiIpamServiceTemplatesBulkDestroyRequest) ServiceTemplateRequest(serviceTemplateRequest []ServiceTemplateRequest) ApiIpamServiceTemplatesBulkDestroyRequest { + r.serviceTemplateRequest = &serviceTemplateRequest return r } -func (r ApiIpamRolesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamRolesBulkDestroyExecute(r) +func (r ApiIpamServiceTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamServiceTemplatesBulkDestroyExecute(r) } /* -IpamRolesBulkDestroy Method for IpamRolesBulkDestroy +IpamServiceTemplatesBulkDestroy Method for IpamServiceTemplatesBulkDestroy -Delete a list of role objects. +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 ApiIpamRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesBulkDestroyRequest */ -func (a *IpamAPIService) IpamRolesBulkDestroy(ctx context.Context) ApiIpamRolesBulkDestroyRequest { - return ApiIpamRolesBulkDestroyRequest{ +func (a *IpamAPIService) IpamServiceTemplatesBulkDestroy(ctx context.Context) ApiIpamServiceTemplatesBulkDestroyRequest { + return ApiIpamServiceTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRequest) (*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.IpamRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/" + localVarPath := localBasePath + "/api/ipam/service-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.roleRequest == nil { - return nil, reportError("roleRequest is required and must be specified") + if r.serviceTemplateRequest == nil { + return nil, reportError("serviceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -21684,7 +29620,7 @@ func (a *IpamAPIService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.roleRequest + localVarPostBody = r.serviceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -21727,59 +29663,58 @@ func (a *IpamAPIService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRe return localVarHTTPResponse, nil } -type ApiIpamRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - roleRequest *[]RoleRequest +type ApiIpamServiceTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + serviceTemplateRequest *[]ServiceTemplateRequest } -func (r ApiIpamRolesBulkPartialUpdateRequest) RoleRequest(roleRequest []RoleRequest) ApiIpamRolesBulkPartialUpdateRequest { - r.roleRequest = &roleRequest +func (r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ServiceTemplateRequest(serviceTemplateRequest []ServiceTemplateRequest) ApiIpamServiceTemplatesBulkPartialUpdateRequest { + r.serviceTemplateRequest = &serviceTemplateRequest return r } -func (r ApiIpamRolesBulkPartialUpdateRequest) Execute() ([]Role, *http.Response, error) { - return r.ApiService.IpamRolesBulkPartialUpdateExecute(r) +func (r ApiIpamServiceTemplatesBulkPartialUpdateRequest) Execute() ([]ServiceTemplate, *http.Response, error) { + return r.ApiService.IpamServiceTemplatesBulkPartialUpdateExecute(r) } /* -IpamRolesBulkPartialUpdate Method for IpamRolesBulkPartialUpdate +IpamServiceTemplatesBulkPartialUpdate Method for IpamServiceTemplatesBulkPartialUpdate -Patch a list of role objects. +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 ApiIpamRolesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamRolesBulkPartialUpdate(ctx context.Context) ApiIpamRolesBulkPartialUpdateRequest { - return ApiIpamRolesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkPartialUpdateRequest { + return ApiIpamServiceTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Role -func (a *IpamAPIService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPartialUpdateRequest) ([]Role, *http.Response, error) { +// @return []ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ([]ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Role + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/" + localVarPath := localBasePath + "/api/ipam/service-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.roleRequest == nil { - return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") + if r.serviceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("serviceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -21800,7 +29735,7 @@ func (a *IpamAPIService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.roleRequest + localVarPostBody = r.serviceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -21852,59 +29787,58 @@ func (a *IpamAPIService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - roleRequest *[]RoleRequest +type ApiIpamServiceTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + serviceTemplateRequest *[]ServiceTemplateRequest } -func (r ApiIpamRolesBulkUpdateRequest) RoleRequest(roleRequest []RoleRequest) ApiIpamRolesBulkUpdateRequest { - r.roleRequest = &roleRequest +func (r ApiIpamServiceTemplatesBulkUpdateRequest) ServiceTemplateRequest(serviceTemplateRequest []ServiceTemplateRequest) ApiIpamServiceTemplatesBulkUpdateRequest { + r.serviceTemplateRequest = &serviceTemplateRequest return r } -func (r ApiIpamRolesBulkUpdateRequest) Execute() ([]Role, *http.Response, error) { - return r.ApiService.IpamRolesBulkUpdateExecute(r) +func (r ApiIpamServiceTemplatesBulkUpdateRequest) Execute() ([]ServiceTemplate, *http.Response, error) { + return r.ApiService.IpamServiceTemplatesBulkUpdateExecute(r) } /* -IpamRolesBulkUpdate Method for IpamRolesBulkUpdate +IpamServiceTemplatesBulkUpdate Method for IpamServiceTemplatesBulkUpdate -Put a list of role objects. +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 ApiIpamRolesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesBulkUpdateRequest */ -func (a *IpamAPIService) IpamRolesBulkUpdate(ctx context.Context) ApiIpamRolesBulkUpdateRequest { - return ApiIpamRolesBulkUpdateRequest{ +func (a *IpamAPIService) IpamServiceTemplatesBulkUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkUpdateRequest { + return ApiIpamServiceTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Role -func (a *IpamAPIService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequest) ([]Role, *http.Response, error) { +// @return []ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceTemplatesBulkUpdateRequest) ([]ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Role + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/" + localVarPath := localBasePath + "/api/ipam/service-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.roleRequest == nil { - return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") + if r.serviceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("serviceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -21925,7 +29859,7 @@ func (a *IpamAPIService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.roleRequest + localVarPostBody = r.serviceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -21977,59 +29911,58 @@ func (a *IpamAPIService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequ return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRolesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - roleRequest *RoleRequest +type ApiIpamServiceTemplatesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + writableServiceTemplateRequest *WritableServiceTemplateRequest } -func (r ApiIpamRolesCreateRequest) RoleRequest(roleRequest RoleRequest) ApiIpamRolesCreateRequest { - r.roleRequest = &roleRequest +func (r ApiIpamServiceTemplatesCreateRequest) WritableServiceTemplateRequest(writableServiceTemplateRequest WritableServiceTemplateRequest) ApiIpamServiceTemplatesCreateRequest { + r.writableServiceTemplateRequest = &writableServiceTemplateRequest return r } -func (r ApiIpamRolesCreateRequest) Execute() (*Role, *http.Response, error) { - return r.ApiService.IpamRolesCreateExecute(r) +func (r ApiIpamServiceTemplatesCreateRequest) Execute() (*ServiceTemplate, *http.Response, error) { + return r.ApiService.IpamServiceTemplatesCreateExecute(r) } /* -IpamRolesCreate Method for IpamRolesCreate +IpamServiceTemplatesCreate Method for IpamServiceTemplatesCreate -Post a list of role objects. +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 ApiIpamRolesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesCreateRequest */ -func (a *IpamAPIService) IpamRolesCreate(ctx context.Context) ApiIpamRolesCreateRequest { - return ApiIpamRolesCreateRequest{ +func (a *IpamAPIService) IpamServiceTemplatesCreate(ctx context.Context) ApiIpamServiceTemplatesCreateRequest { + return ApiIpamServiceTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Role -func (a *IpamAPIService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*Role, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTemplatesCreateRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/" + localVarPath := localBasePath + "/api/ipam/service-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.roleRequest == nil { - return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") + if r.writableServiceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableServiceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -22050,7 +29983,7 @@ func (a *IpamAPIService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*R localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.roleRequest + localVarPostBody = r.writableServiceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -22102,47 +30035,47 @@ func (a *IpamAPIService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*R return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRolesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamServiceTemplatesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamRolesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamRolesDestroyExecute(r) +func (r ApiIpamServiceTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamServiceTemplatesDestroyExecute(r) } /* -IpamRolesDestroy Method for IpamRolesDestroy +IpamServiceTemplatesDestroy Method for IpamServiceTemplatesDestroy -Delete a role object. +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 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 service template. + @return ApiIpamServiceTemplatesDestroyRequest */ -func (a *IpamAPIService) IpamRolesDestroy(ctx context.Context, id int32) ApiIpamRolesDestroyRequest { - return ApiIpamRolesDestroyRequest{ +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) IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) (*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.IpamRolesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/{id}/" + localVarPath := localBasePath + "/api/ipam/service-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -22208,471 +30141,375 @@ func (a *IpamAPIService) IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) ( return localVarHTTPResponse, nil } -type ApiIpamRolesListRequest struct { - 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 - 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 +type ApiIpamServiceTemplatesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 - weight *[]int32 - weightEmpty *bool - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]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 *IpamServiceTemplatesListProtocolParameter + q *string + tag *[]string + tagN *[]string + updatedByRequest *string } -func (r ApiIpamRolesListRequest) Created(created []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Created(created []time.Time) ApiIpamServiceTemplatesListRequest { r.created = &created return r } -func (r ApiIpamRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamServiceTemplatesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamRolesListRequest) CreatedGt(createdGt []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiIpamServiceTemplatesListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamRolesListRequest) CreatedGte(createdGte []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiIpamServiceTemplatesListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamRolesListRequest) CreatedLt(createdLt []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiIpamServiceTemplatesListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamRolesListRequest) CreatedLte(createdLte []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiIpamServiceTemplatesListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamRolesListRequest) CreatedN(createdN []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) CreatedN(createdN []time.Time) ApiIpamServiceTemplatesListRequest { r.createdN = &createdN return r } -func (r ApiIpamRolesListRequest) CreatedByRequest(createdByRequest string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiIpamServiceTemplatesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamRolesListRequest) Description(description []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Description(description []string) ApiIpamServiceTemplatesListRequest { r.description = &description return r } -func (r ApiIpamRolesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamServiceTemplatesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamRolesListRequest) DescriptionIc(descriptionIc []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiIpamServiceTemplatesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamRolesListRequest) DescriptionIe(descriptionIe []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiIpamServiceTemplatesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamRolesListRequest) DescriptionIew(descriptionIew []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiIpamServiceTemplatesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamRolesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamServiceTemplatesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamRolesListRequest) DescriptionN(descriptionN []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionN(descriptionN []string) ApiIpamServiceTemplatesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamRolesListRequest) DescriptionNic(descriptionNic []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiIpamServiceTemplatesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamRolesListRequest) DescriptionNie(descriptionNie []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiIpamServiceTemplatesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamRolesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamServiceTemplatesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamRolesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamServiceTemplatesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamRolesListRequest) Id(id []int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Id(id []int32) ApiIpamServiceTemplatesListRequest { r.id = &id return r } -func (r ApiIpamRolesListRequest) IdEmpty(idEmpty bool) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) IdEmpty(idEmpty bool) ApiIpamServiceTemplatesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamRolesListRequest) IdGt(idGt []int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) IdGt(idGt []int32) ApiIpamServiceTemplatesListRequest { r.idGt = &idGt return r } -func (r ApiIpamRolesListRequest) IdGte(idGte []int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) IdGte(idGte []int32) ApiIpamServiceTemplatesListRequest { r.idGte = &idGte return r } -func (r ApiIpamRolesListRequest) IdLt(idLt []int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) IdLt(idLt []int32) ApiIpamServiceTemplatesListRequest { r.idLt = &idLt return r } -func (r ApiIpamRolesListRequest) IdLte(idLte []int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) IdLte(idLte []int32) ApiIpamServiceTemplatesListRequest { r.idLte = &idLte return r } -func (r ApiIpamRolesListRequest) IdN(idN []int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) IdN(idN []int32) ApiIpamServiceTemplatesListRequest { r.idN = &idN return r } -func (r ApiIpamRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamRolesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamRolesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamRolesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamRolesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamRolesListRequest) Limit(limit int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Limit(limit int32) ApiIpamServiceTemplatesListRequest { r.limit = &limit return r } -func (r ApiIpamRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamServiceTemplatesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamRolesListRequest) Name(name []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Name(name []string) ApiIpamServiceTemplatesListRequest { r.name = &name return r } -func (r ApiIpamRolesListRequest) NameEmpty(nameEmpty bool) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameEmpty(nameEmpty bool) ApiIpamServiceTemplatesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiIpamRolesListRequest) NameIc(nameIc []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameIc(nameIc []string) ApiIpamServiceTemplatesListRequest { r.nameIc = &nameIc return r } -func (r ApiIpamRolesListRequest) NameIe(nameIe []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameIe(nameIe []string) ApiIpamServiceTemplatesListRequest { r.nameIe = &nameIe return r } -func (r ApiIpamRolesListRequest) NameIew(nameIew []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameIew(nameIew []string) ApiIpamServiceTemplatesListRequest { r.nameIew = &nameIew return r } -func (r ApiIpamRolesListRequest) NameIsw(nameIsw []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameIsw(nameIsw []string) ApiIpamServiceTemplatesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiIpamRolesListRequest) NameN(nameN []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameN(nameN []string) ApiIpamServiceTemplatesListRequest { r.nameN = &nameN return r } -func (r ApiIpamRolesListRequest) NameNic(nameNic []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameNic(nameNic []string) ApiIpamServiceTemplatesListRequest { r.nameNic = &nameNic return r } -func (r ApiIpamRolesListRequest) NameNie(nameNie []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameNie(nameNie []string) ApiIpamServiceTemplatesListRequest { r.nameNie = &nameNie return r } -func (r ApiIpamRolesListRequest) NameNiew(nameNiew []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameNiew(nameNiew []string) ApiIpamServiceTemplatesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiIpamRolesListRequest) NameNisw(nameNisw []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) NameNisw(nameNisw []string) ApiIpamServiceTemplatesListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiIpamRolesListRequest) Offset(offset int32) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Offset(offset int32) ApiIpamServiceTemplatesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiIpamRolesListRequest) Ordering(ordering string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Ordering(ordering string) ApiIpamServiceTemplatesListRequest { r.ordering = &ordering return r } -// Search -func (r ApiIpamRolesListRequest) Q(q string) ApiIpamRolesListRequest { - r.q = &q - return r -} - -func (r ApiIpamRolesListRequest) Slug(slug []string) ApiIpamRolesListRequest { - r.slug = &slug - return r -} - -func (r ApiIpamRolesListRequest) SlugEmpty(slugEmpty bool) ApiIpamRolesListRequest { - r.slugEmpty = &slugEmpty - return r -} - -func (r ApiIpamRolesListRequest) SlugIc(slugIc []string) ApiIpamRolesListRequest { - r.slugIc = &slugIc - return r -} - -func (r ApiIpamRolesListRequest) SlugIe(slugIe []string) ApiIpamRolesListRequest { - r.slugIe = &slugIe - return r -} - -func (r ApiIpamRolesListRequest) SlugIew(slugIew []string) ApiIpamRolesListRequest { - r.slugIew = &slugIew - return r -} - -func (r ApiIpamRolesListRequest) SlugIsw(slugIsw []string) ApiIpamRolesListRequest { - r.slugIsw = &slugIsw - return r -} - -func (r ApiIpamRolesListRequest) SlugN(slugN []string) ApiIpamRolesListRequest { - r.slugN = &slugN - return r -} - -func (r ApiIpamRolesListRequest) SlugNic(slugNic []string) ApiIpamRolesListRequest { - r.slugNic = &slugNic - return r -} - -func (r ApiIpamRolesListRequest) SlugNie(slugNie []string) ApiIpamRolesListRequest { - r.slugNie = &slugNie +func (r ApiIpamServiceTemplatesListRequest) Port(port float32) ApiIpamServiceTemplatesListRequest { + r.port = &port return r } -func (r ApiIpamRolesListRequest) SlugNiew(slugNiew []string) ApiIpamRolesListRequest { - r.slugNiew = &slugNiew +// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP +func (r ApiIpamServiceTemplatesListRequest) Protocol(protocol IpamServiceTemplatesListProtocolParameter) ApiIpamServiceTemplatesListRequest { + r.protocol = &protocol return r } -func (r ApiIpamRolesListRequest) SlugNisw(slugNisw []string) ApiIpamRolesListRequest { - r.slugNisw = &slugNisw +// Search +func (r ApiIpamServiceTemplatesListRequest) Q(q string) ApiIpamServiceTemplatesListRequest { + r.q = &q return r } -func (r ApiIpamRolesListRequest) Tag(tag []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) Tag(tag []string) ApiIpamServiceTemplatesListRequest { r.tag = &tag return r } -func (r ApiIpamRolesListRequest) TagN(tagN []string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) TagN(tagN []string) ApiIpamServiceTemplatesListRequest { r.tagN = &tagN return r } -func (r ApiIpamRolesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRolesListRequest { +func (r ApiIpamServiceTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamServiceTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamRolesListRequest) Weight(weight []int32) ApiIpamRolesListRequest { - r.weight = &weight - return r -} - -func (r ApiIpamRolesListRequest) WeightEmpty(weightEmpty bool) ApiIpamRolesListRequest { - r.weightEmpty = &weightEmpty - return r -} - -func (r ApiIpamRolesListRequest) WeightGt(weightGt []int32) ApiIpamRolesListRequest { - r.weightGt = &weightGt - return r -} - -func (r ApiIpamRolesListRequest) WeightGte(weightGte []int32) ApiIpamRolesListRequest { - r.weightGte = &weightGte - return r -} - -func (r ApiIpamRolesListRequest) WeightLt(weightLt []int32) ApiIpamRolesListRequest { - r.weightLt = &weightLt - return r -} - -func (r ApiIpamRolesListRequest) WeightLte(weightLte []int32) ApiIpamRolesListRequest { - r.weightLte = &weightLte - return r -} - -func (r ApiIpamRolesListRequest) WeightN(weightN []int32) ApiIpamRolesListRequest { - r.weightN = &weightN - return r -} - -func (r ApiIpamRolesListRequest) Execute() (*PaginatedRoleList, *http.Response, error) { - return r.ApiService.IpamRolesListExecute(r) +func (r ApiIpamServiceTemplatesListRequest) Execute() (*PaginatedServiceTemplateList, *http.Response, error) { + return r.ApiService.IpamServiceTemplatesListExecute(r) } /* -IpamRolesList Method for IpamRolesList +IpamServiceTemplatesList Method for IpamServiceTemplatesList -Get a list of role objects. +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 ApiIpamRolesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesListRequest */ -func (a *IpamAPIService) IpamRolesList(ctx context.Context) ApiIpamRolesListRequest { - return ApiIpamRolesListRequest{ +func (a *IpamAPIService) IpamServiceTemplatesList(ctx context.Context) ApiIpamServiceTemplatesListRequest { + return ApiIpamServiceTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRoleList -func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*PaginatedRoleList, *http.Response, error) { +// @return PaginatedServiceTemplateList +func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplatesListRequest) (*PaginatedServiceTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedServiceTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/" + localVarPath := localBasePath + "/api/ipam/service-templates/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -22683,10 +30520,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -22694,10 +30531,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -22705,10 +30542,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -22716,10 +30553,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -22727,10 +30564,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -22738,10 +30575,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -22749,38 +30586,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -22788,10 +30625,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -22799,10 +30636,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -22810,10 +30647,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -22821,10 +30658,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -22832,10 +30669,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -22843,10 +30680,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -22854,10 +30691,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -22865,10 +30702,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -22876,24 +30713,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -22901,10 +30738,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -22912,10 +30749,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -22923,10 +30760,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -22934,10 +30771,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -22945,10 +30782,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -22956,10 +30793,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -22967,10 +30804,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -22978,10 +30815,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -22989,10 +30826,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -23000,10 +30837,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -23011,41 +30848,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -23053,10 +30890,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -23064,10 +30901,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -23075,10 +30912,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -23086,10 +30923,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -23097,10 +30934,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -23108,10 +30945,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -23119,10 +30956,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -23130,143 +30967,36 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.slug != nil { - t := *r.slug - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") - } - } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") - } - } - if r.slugIe != nil { - t := *r.slugIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") - } - } - if r.slugIew != nil { - t := *r.slugIew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.slugIsw != nil { - t := *r.slugIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") - } - } - if r.slugN != nil { - t := *r.slugN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") - } - } - if r.slugNic != nil { - t := *r.slugNic - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } - } - if r.slugNie != nil { - t := *r.slugNie - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") - } + if r.port != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "port", r.port, "form", "") } - if r.slugNiew != nil { - t := *r.slugNiew - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") - } + if r.protocol != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "form", "") } - if r.slugNisw != nil { - t := *r.slugNisw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") - } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -23274,83 +31004,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.weight != nil { - t := *r.weight - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") - } - } - if r.weightGte != nil { - t := *r.weightGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") - } - } - if r.weightLt != nil { - t := *r.weightLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") - } - } - if r.weightLte != nil { - t := *r.weightLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") - } - } - if r.weightN != nil { - t := *r.weightN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -23420,56 +31081,55 @@ func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedRoleRequest *PatchedRoleRequest +type ApiIpamServiceTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedWritableServiceTemplateRequest *PatchedWritableServiceTemplateRequest } -func (r ApiIpamRolesPartialUpdateRequest) PatchedRoleRequest(patchedRoleRequest PatchedRoleRequest) ApiIpamRolesPartialUpdateRequest { - r.patchedRoleRequest = &patchedRoleRequest +func (r ApiIpamServiceTemplatesPartialUpdateRequest) PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest PatchedWritableServiceTemplateRequest) ApiIpamServiceTemplatesPartialUpdateRequest { + r.patchedWritableServiceTemplateRequest = &patchedWritableServiceTemplateRequest return r } -func (r ApiIpamRolesPartialUpdateRequest) Execute() (*Role, *http.Response, error) { - return r.ApiService.IpamRolesPartialUpdateExecute(r) +func (r ApiIpamServiceTemplatesPartialUpdateRequest) Execute() (*ServiceTemplate, *http.Response, error) { + return r.ApiService.IpamServiceTemplatesPartialUpdateExecute(r) } /* -IpamRolesPartialUpdate Method for IpamRolesPartialUpdate +IpamServiceTemplatesPartialUpdate Method for IpamServiceTemplatesPartialUpdate -Patch a role object. +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 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 service template. + @return ApiIpamServiceTemplatesPartialUpdateRequest */ -func (a *IpamAPIService) IpamRolesPartialUpdate(ctx context.Context, id int32) ApiIpamRolesPartialUpdateRequest { - return ApiIpamRolesPartialUpdateRequest{ +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 Role -func (a *IpamAPIService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpdateRequest) (*Role, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServiceTemplatesPartialUpdateRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/{id}/" + localVarPath := localBasePath + "/api/ipam/service-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -23494,7 +31154,7 @@ func (a *IpamAPIService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedRoleRequest + localVarPostBody = r.patchedWritableServiceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -23546,50 +31206,49 @@ func (a *IpamAPIService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRolesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamServiceTemplatesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamRolesRetrieveRequest) Execute() (*Role, *http.Response, error) { - return r.ApiService.IpamRolesRetrieveExecute(r) +func (r ApiIpamServiceTemplatesRetrieveRequest) Execute() (*ServiceTemplate, *http.Response, error) { + return r.ApiService.IpamServiceTemplatesRetrieveExecute(r) } /* -IpamRolesRetrieve Method for IpamRolesRetrieve +IpamServiceTemplatesRetrieve Method for IpamServiceTemplatesRetrieve -Get a role object. +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 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 service template. + @return ApiIpamServiceTemplatesRetrieveRequest */ -func (a *IpamAPIService) IpamRolesRetrieve(ctx context.Context, id int32) ApiIpamRolesRetrieveRequest { - return ApiIpamRolesRetrieveRequest{ +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 Role -func (a *IpamAPIService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) (*Role, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTemplatesRetrieveRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/{id}/" + localVarPath := localBasePath + "/api/ipam/service-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -23664,63 +31323,62 @@ func (a *IpamAPIService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRolesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - roleRequest *RoleRequest +type ApiIpamServiceTemplatesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + writableServiceTemplateRequest *WritableServiceTemplateRequest } -func (r ApiIpamRolesUpdateRequest) RoleRequest(roleRequest RoleRequest) ApiIpamRolesUpdateRequest { - r.roleRequest = &roleRequest +func (r ApiIpamServiceTemplatesUpdateRequest) WritableServiceTemplateRequest(writableServiceTemplateRequest WritableServiceTemplateRequest) ApiIpamServiceTemplatesUpdateRequest { + r.writableServiceTemplateRequest = &writableServiceTemplateRequest return r } -func (r ApiIpamRolesUpdateRequest) Execute() (*Role, *http.Response, error) { - return r.ApiService.IpamRolesUpdateExecute(r) +func (r ApiIpamServiceTemplatesUpdateRequest) Execute() (*ServiceTemplate, *http.Response, error) { + return r.ApiService.IpamServiceTemplatesUpdateExecute(r) } /* -IpamRolesUpdate Method for IpamRolesUpdate +IpamServiceTemplatesUpdate Method for IpamServiceTemplatesUpdate -Put a role object. +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 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 service template. + @return ApiIpamServiceTemplatesUpdateRequest */ -func (a *IpamAPIService) IpamRolesUpdate(ctx context.Context, id int32) ApiIpamRolesUpdateRequest { - return ApiIpamRolesUpdateRequest{ +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 Role -func (a *IpamAPIService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*Role, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTemplatesUpdateRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/roles/{id}/" + localVarPath := localBasePath + "/api/ipam/service-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.roleRequest == nil { - return localVarReturnValue, nil, reportError("roleRequest is required and must be specified") + if r.writableServiceTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableServiceTemplateRequest is required and must be specified") } // to determine the Content-Type header @@ -23741,7 +31399,7 @@ func (a *IpamAPIService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*R localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.roleRequest + localVarPostBody = r.writableServiceTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -23793,56 +31451,56 @@ func (a *IpamAPIService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*R return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRouteTargetsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - routeTargetRequest *[]RouteTargetRequest +type ApiIpamServicesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + serviceRequest *[]ServiceRequest } -func (r ApiIpamRouteTargetsBulkDestroyRequest) RouteTargetRequest(routeTargetRequest []RouteTargetRequest) ApiIpamRouteTargetsBulkDestroyRequest { - r.routeTargetRequest = &routeTargetRequest +func (r ApiIpamServicesBulkDestroyRequest) ServiceRequest(serviceRequest []ServiceRequest) ApiIpamServicesBulkDestroyRequest { + r.serviceRequest = &serviceRequest return r } -func (r ApiIpamRouteTargetsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamRouteTargetsBulkDestroyExecute(r) +func (r ApiIpamServicesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamServicesBulkDestroyExecute(r) } /* -IpamRouteTargetsBulkDestroy Method for IpamRouteTargetsBulkDestroy +IpamServicesBulkDestroy Method for IpamServicesBulkDestroy -Delete a list of route target objects. +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 ApiIpamRouteTargetsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesBulkDestroyRequest */ -func (a *IpamAPIService) IpamRouteTargetsBulkDestroy(ctx context.Context) ApiIpamRouteTargetsBulkDestroyRequest { - return ApiIpamRouteTargetsBulkDestroyRequest{ +func (a *IpamAPIService) IpamServicesBulkDestroy(ctx context.Context) ApiIpamServicesBulkDestroyRequest { + return ApiIpamServicesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTargetsBulkDestroyRequest) (*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.IpamRouteTargetsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/" + localVarPath := localBasePath + "/api/ipam/services/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.routeTargetRequest == nil { - return nil, reportError("routeTargetRequest is required and must be specified") + if r.serviceRequest == nil { + return nil, reportError("serviceRequest is required and must be specified") } // to determine the Content-Type header @@ -23863,7 +31521,7 @@ func (a *IpamAPIService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTarget localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.routeTargetRequest + localVarPostBody = r.serviceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -23906,59 +31564,58 @@ func (a *IpamAPIService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTarget return localVarHTTPResponse, nil } -type ApiIpamRouteTargetsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - routeTargetRequest *[]RouteTargetRequest +type ApiIpamServicesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + serviceRequest *[]ServiceRequest } -func (r ApiIpamRouteTargetsBulkPartialUpdateRequest) RouteTargetRequest(routeTargetRequest []RouteTargetRequest) ApiIpamRouteTargetsBulkPartialUpdateRequest { - r.routeTargetRequest = &routeTargetRequest +func (r ApiIpamServicesBulkPartialUpdateRequest) ServiceRequest(serviceRequest []ServiceRequest) ApiIpamServicesBulkPartialUpdateRequest { + r.serviceRequest = &serviceRequest return r } -func (r ApiIpamRouteTargetsBulkPartialUpdateRequest) Execute() ([]RouteTarget, *http.Response, error) { - return r.ApiService.IpamRouteTargetsBulkPartialUpdateExecute(r) +func (r ApiIpamServicesBulkPartialUpdateRequest) Execute() ([]Service, *http.Response, error) { + return r.ApiService.IpamServicesBulkPartialUpdateExecute(r) } /* -IpamRouteTargetsBulkPartialUpdate Method for IpamRouteTargetsBulkPartialUpdate +IpamServicesBulkPartialUpdate Method for IpamServicesBulkPartialUpdate -Patch a list of route target objects. +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 ApiIpamRouteTargetsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdate(ctx context.Context) ApiIpamRouteTargetsBulkPartialUpdateRequest { - return ApiIpamRouteTargetsBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamServicesBulkPartialUpdate(ctx context.Context) ApiIpamServicesBulkPartialUpdateRequest { + return ApiIpamServicesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RouteTarget -func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRouteTargetsBulkPartialUpdateRequest) ([]RouteTarget, *http.Response, error) { +// @return []Service +func (a *IpamAPIService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesBulkPartialUpdateRequest) ([]Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RouteTarget + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/" + localVarPath := localBasePath + "/api/ipam/services/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.routeTargetRequest == nil { - return localVarReturnValue, nil, reportError("routeTargetRequest is required and must be specified") + if r.serviceRequest == nil { + return localVarReturnValue, nil, reportError("serviceRequest is required and must be specified") } // to determine the Content-Type header @@ -23979,7 +31636,7 @@ func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRoute localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.routeTargetRequest + localVarPostBody = r.serviceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24031,59 +31688,58 @@ func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRoute return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRouteTargetsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - routeTargetRequest *[]RouteTargetRequest +type ApiIpamServicesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + serviceRequest *[]ServiceRequest } -func (r ApiIpamRouteTargetsBulkUpdateRequest) RouteTargetRequest(routeTargetRequest []RouteTargetRequest) ApiIpamRouteTargetsBulkUpdateRequest { - r.routeTargetRequest = &routeTargetRequest +func (r ApiIpamServicesBulkUpdateRequest) ServiceRequest(serviceRequest []ServiceRequest) ApiIpamServicesBulkUpdateRequest { + r.serviceRequest = &serviceRequest return r } -func (r ApiIpamRouteTargetsBulkUpdateRequest) Execute() ([]RouteTarget, *http.Response, error) { - return r.ApiService.IpamRouteTargetsBulkUpdateExecute(r) +func (r ApiIpamServicesBulkUpdateRequest) Execute() ([]Service, *http.Response, error) { + return r.ApiService.IpamServicesBulkUpdateExecute(r) } /* -IpamRouteTargetsBulkUpdate Method for IpamRouteTargetsBulkUpdate +IpamServicesBulkUpdate Method for IpamServicesBulkUpdate -Put a list of route target objects. +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 ApiIpamRouteTargetsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesBulkUpdateRequest */ -func (a *IpamAPIService) IpamRouteTargetsBulkUpdate(ctx context.Context) ApiIpamRouteTargetsBulkUpdateRequest { - return ApiIpamRouteTargetsBulkUpdateRequest{ +func (a *IpamAPIService) IpamServicesBulkUpdate(ctx context.Context) ApiIpamServicesBulkUpdateRequest { + return ApiIpamServicesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RouteTarget -func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargetsBulkUpdateRequest) ([]RouteTarget, *http.Response, error) { +// @return []Service +func (a *IpamAPIService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpdateRequest) ([]Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RouteTarget + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/" + localVarPath := localBasePath + "/api/ipam/services/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.routeTargetRequest == nil { - return localVarReturnValue, nil, reportError("routeTargetRequest is required and must be specified") + if r.serviceRequest == nil { + return localVarReturnValue, nil, reportError("serviceRequest is required and must be specified") } // to determine the Content-Type header @@ -24104,7 +31760,7 @@ func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargets localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.routeTargetRequest + localVarPostBody = r.serviceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24156,59 +31812,58 @@ func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargets return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRouteTargetsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - routeTargetRequest *RouteTargetRequest +type ApiIpamServicesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + writableServiceRequest *WritableServiceRequest } -func (r ApiIpamRouteTargetsCreateRequest) RouteTargetRequest(routeTargetRequest RouteTargetRequest) ApiIpamRouteTargetsCreateRequest { - r.routeTargetRequest = &routeTargetRequest +func (r ApiIpamServicesCreateRequest) WritableServiceRequest(writableServiceRequest WritableServiceRequest) ApiIpamServicesCreateRequest { + r.writableServiceRequest = &writableServiceRequest return r } -func (r ApiIpamRouteTargetsCreateRequest) Execute() (*RouteTarget, *http.Response, error) { - return r.ApiService.IpamRouteTargetsCreateExecute(r) +func (r ApiIpamServicesCreateRequest) Execute() (*Service, *http.Response, error) { + return r.ApiService.IpamServicesCreateExecute(r) } /* -IpamRouteTargetsCreate Method for IpamRouteTargetsCreate +IpamServicesCreate Method for IpamServicesCreate -Post a list of route target objects. +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 ApiIpamRouteTargetsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesCreateRequest */ -func (a *IpamAPIService) IpamRouteTargetsCreate(ctx context.Context) ApiIpamRouteTargetsCreateRequest { - return ApiIpamRouteTargetsCreateRequest{ +func (a *IpamAPIService) IpamServicesCreate(ctx context.Context) ApiIpamServicesCreateRequest { + return ApiIpamServicesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RouteTarget -func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCreateRequest) (*RouteTarget, *http.Response, error) { +// @return Service +func (a *IpamAPIService) IpamServicesCreateExecute(r ApiIpamServicesCreateRequest) (*Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/" + localVarPath := localBasePath + "/api/ipam/services/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.routeTargetRequest == nil { - return localVarReturnValue, nil, reportError("routeTargetRequest is required and must be specified") + if r.writableServiceRequest == nil { + return localVarReturnValue, nil, reportError("writableServiceRequest is required and must be specified") } // to determine the Content-Type header @@ -24229,7 +31884,7 @@ func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCrea localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.routeTargetRequest + localVarPostBody = r.writableServiceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24281,47 +31936,47 @@ func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCrea return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRouteTargetsDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamServicesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamRouteTargetsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamRouteTargetsDestroyExecute(r) +func (r ApiIpamServicesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamServicesDestroyExecute(r) } /* -IpamRouteTargetsDestroy Method for IpamRouteTargetsDestroy +IpamServicesDestroy Method for IpamServicesDestroy -Delete a route target object. +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 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 service. + @return ApiIpamServicesDestroyRequest */ -func (a *IpamAPIService) IpamRouteTargetsDestroy(ctx context.Context, id int32) ApiIpamRouteTargetsDestroyRequest { - return ApiIpamRouteTargetsDestroyRequest{ +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) IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDestroyRequest) (*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.IpamRouteTargetsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/{id}/" + localVarPath := localBasePath + "/api/ipam/services/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -24387,531 +32042,459 @@ func (a *IpamAPIService) IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDes return localVarHTTPResponse, nil } -type ApiIpamRouteTargetsListRequest struct { - 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 - exportingL2vpn *[]*int64 - exportingL2vpnN *[]*int64 - exportingL2vpnId *[]int32 - exportingL2vpnIdN *[]int32 - exportingVrf *[]*string - exportingVrfN *[]*string - exportingVrfId *[]int32 - exportingVrfIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - importingL2vpn *[]*int64 - importingL2vpnN *[]*int64 - importingL2vpnId *[]int32 - importingL2vpnIdN *[]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 +type ApiIpamServicesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 - q *string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - updatedByRequest *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 *IpamServiceTemplatesListProtocolParameter + q *string + tag *[]string + tagN *[]string + updatedByRequest *string + virtualMachine *[]string + virtualMachineN *[]string + virtualMachineId *[]*int32 + virtualMachineIdN *[]*int32 } -func (r ApiIpamRouteTargetsListRequest) Created(created []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) Created(created []time.Time) ApiIpamServicesListRequest { r.created = &created return r } -func (r ApiIpamRouteTargetsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamServicesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamRouteTargetsListRequest) CreatedGt(createdGt []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) CreatedGt(createdGt []time.Time) ApiIpamServicesListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamRouteTargetsListRequest) CreatedGte(createdGte []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) CreatedGte(createdGte []time.Time) ApiIpamServicesListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamRouteTargetsListRequest) CreatedLt(createdLt []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) CreatedLt(createdLt []time.Time) ApiIpamServicesListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamRouteTargetsListRequest) CreatedLte(createdLte []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) CreatedLte(createdLte []time.Time) ApiIpamServicesListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamRouteTargetsListRequest) CreatedN(createdN []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) CreatedN(createdN []time.Time) ApiIpamServicesListRequest { r.createdN = &createdN return r } -func (r ApiIpamRouteTargetsListRequest) CreatedByRequest(createdByRequest string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) CreatedByRequest(createdByRequest string) ApiIpamServicesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamRouteTargetsListRequest) Description(description []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) Description(description []string) ApiIpamServicesListRequest { r.description = &description return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamServicesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionIc(descriptionIc []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionIc(descriptionIc []string) ApiIpamServicesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionIe(descriptionIe []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionIe(descriptionIe []string) ApiIpamServicesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionIew(descriptionIew []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionIew(descriptionIew []string) ApiIpamServicesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamServicesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionN(descriptionN []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionN(descriptionN []string) ApiIpamServicesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionNic(descriptionNic []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionNic(descriptionNic []string) ApiIpamServicesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionNie(descriptionNie []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionNie(descriptionNie []string) ApiIpamServicesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamServicesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamRouteTargetsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamServicesListRequest { r.descriptionNisw = &descriptionNisw return r } -// Exporting L2VPN (identifier) -func (r ApiIpamRouteTargetsListRequest) ExportingL2vpn(exportingL2vpn []*int64) ApiIpamRouteTargetsListRequest { - r.exportingL2vpn = &exportingL2vpn - return r -} - -// Exporting L2VPN (identifier) -func (r ApiIpamRouteTargetsListRequest) ExportingL2vpnN(exportingL2vpnN []*int64) ApiIpamRouteTargetsListRequest { - r.exportingL2vpnN = &exportingL2vpnN - return r -} - -// Exporting L2VPN -func (r ApiIpamRouteTargetsListRequest) ExportingL2vpnId(exportingL2vpnId []int32) ApiIpamRouteTargetsListRequest { - r.exportingL2vpnId = &exportingL2vpnId - return r -} - -// Exporting L2VPN -func (r ApiIpamRouteTargetsListRequest) ExportingL2vpnIdN(exportingL2vpnIdN []int32) ApiIpamRouteTargetsListRequest { - r.exportingL2vpnIdN = &exportingL2vpnIdN - return r -} - -// Export VRF (RD) -func (r ApiIpamRouteTargetsListRequest) ExportingVrf(exportingVrf []*string) ApiIpamRouteTargetsListRequest { - r.exportingVrf = &exportingVrf +// Device (name) +func (r ApiIpamServicesListRequest) Device(device []*string) ApiIpamServicesListRequest { + r.device = &device return r } -// Export VRF (RD) -func (r ApiIpamRouteTargetsListRequest) ExportingVrfN(exportingVrfN []*string) ApiIpamRouteTargetsListRequest { - r.exportingVrfN = &exportingVrfN +// Device (name) +func (r ApiIpamServicesListRequest) DeviceN(deviceN []*string) ApiIpamServicesListRequest { + r.deviceN = &deviceN return r } -// Exporting VRF -func (r ApiIpamRouteTargetsListRequest) ExportingVrfId(exportingVrfId []int32) ApiIpamRouteTargetsListRequest { - r.exportingVrfId = &exportingVrfId +// Device (ID) +func (r ApiIpamServicesListRequest) DeviceId(deviceId []*int32) ApiIpamServicesListRequest { + r.deviceId = &deviceId return r } -// Exporting VRF -func (r ApiIpamRouteTargetsListRequest) ExportingVrfIdN(exportingVrfIdN []int32) ApiIpamRouteTargetsListRequest { - r.exportingVrfIdN = &exportingVrfIdN +// Device (ID) +func (r ApiIpamServicesListRequest) DeviceIdN(deviceIdN []*int32) ApiIpamServicesListRequest { + r.deviceIdN = &deviceIdN return r } -func (r ApiIpamRouteTargetsListRequest) Id(id []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) Id(id []int32) ApiIpamServicesListRequest { r.id = &id return r } -func (r ApiIpamRouteTargetsListRequest) IdEmpty(idEmpty bool) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) IdEmpty(idEmpty bool) ApiIpamServicesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamRouteTargetsListRequest) IdGt(idGt []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) IdGt(idGt []int32) ApiIpamServicesListRequest { r.idGt = &idGt return r } -func (r ApiIpamRouteTargetsListRequest) IdGte(idGte []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) IdGte(idGte []int32) ApiIpamServicesListRequest { r.idGte = &idGte return r } -func (r ApiIpamRouteTargetsListRequest) IdLt(idLt []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) IdLt(idLt []int32) ApiIpamServicesListRequest { r.idLt = &idLt return r -} - -func (r ApiIpamRouteTargetsListRequest) IdLte(idLte []int32) ApiIpamRouteTargetsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiIpamRouteTargetsListRequest) IdN(idN []int32) ApiIpamRouteTargetsListRequest { - r.idN = &idN - return r -} - -// Importing L2VPN (identifier) -func (r ApiIpamRouteTargetsListRequest) ImportingL2vpn(importingL2vpn []*int64) ApiIpamRouteTargetsListRequest { - r.importingL2vpn = &importingL2vpn - return r -} - -// Importing L2VPN (identifier) -func (r ApiIpamRouteTargetsListRequest) ImportingL2vpnN(importingL2vpnN []*int64) ApiIpamRouteTargetsListRequest { - r.importingL2vpnN = &importingL2vpnN - return r -} - -// Importing L2VPN -func (r ApiIpamRouteTargetsListRequest) ImportingL2vpnId(importingL2vpnId []int32) ApiIpamRouteTargetsListRequest { - r.importingL2vpnId = &importingL2vpnId +} + +func (r ApiIpamServicesListRequest) IdLte(idLte []int32) ApiIpamServicesListRequest { + r.idLte = &idLte return r } -// Importing L2VPN -func (r ApiIpamRouteTargetsListRequest) ImportingL2vpnIdN(importingL2vpnIdN []int32) ApiIpamRouteTargetsListRequest { - r.importingL2vpnIdN = &importingL2vpnIdN +func (r ApiIpamServicesListRequest) IdN(idN []int32) ApiIpamServicesListRequest { + r.idN = &idN return r } -// Import VRF (RD) -func (r ApiIpamRouteTargetsListRequest) ImportingVrf(importingVrf []*string) ApiIpamRouteTargetsListRequest { - r.importingVrf = &importingVrf +// IP address +func (r ApiIpamServicesListRequest) IpAddress(ipAddress []string) ApiIpamServicesListRequest { + r.ipAddress = &ipAddress return r } -// Import VRF (RD) -func (r ApiIpamRouteTargetsListRequest) ImportingVrfN(importingVrfN []*string) ApiIpamRouteTargetsListRequest { - r.importingVrfN = &importingVrfN +// IP address +func (r ApiIpamServicesListRequest) IpAddressN(ipAddressN []string) ApiIpamServicesListRequest { + r.ipAddressN = &ipAddressN return r } -// Importing VRF -func (r ApiIpamRouteTargetsListRequest) ImportingVrfId(importingVrfId []int32) ApiIpamRouteTargetsListRequest { - r.importingVrfId = &importingVrfId +// IP address (ID) +func (r ApiIpamServicesListRequest) IpAddressId(ipAddressId []int32) ApiIpamServicesListRequest { + r.ipAddressId = &ipAddressId return r } -// Importing VRF -func (r ApiIpamRouteTargetsListRequest) ImportingVrfIdN(importingVrfIdN []int32) ApiIpamRouteTargetsListRequest { - r.importingVrfIdN = &importingVrfIdN +// IP address (ID) +func (r ApiIpamServicesListRequest) IpAddressIdN(ipAddressIdN []int32) ApiIpamServicesListRequest { + r.ipAddressIdN = &ipAddressIdN return r } -func (r ApiIpamRouteTargetsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServicesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamRouteTargetsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamServicesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamRouteTargetsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamServicesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamRouteTargetsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamServicesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamRouteTargetsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamServicesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamRouteTargetsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamServicesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamRouteTargetsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamServicesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamRouteTargetsListRequest) Limit(limit int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) Limit(limit int32) ApiIpamServicesListRequest { r.limit = &limit return r } -func (r ApiIpamRouteTargetsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamServicesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamRouteTargetsListRequest) Name(name []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) Name(name []string) ApiIpamServicesListRequest { r.name = &name return r } -func (r ApiIpamRouteTargetsListRequest) NameEmpty(nameEmpty bool) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameEmpty(nameEmpty bool) ApiIpamServicesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiIpamRouteTargetsListRequest) NameIc(nameIc []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameIc(nameIc []string) ApiIpamServicesListRequest { r.nameIc = &nameIc return r } -func (r ApiIpamRouteTargetsListRequest) NameIe(nameIe []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameIe(nameIe []string) ApiIpamServicesListRequest { r.nameIe = &nameIe return r } -func (r ApiIpamRouteTargetsListRequest) NameIew(nameIew []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameIew(nameIew []string) ApiIpamServicesListRequest { r.nameIew = &nameIew return r } -func (r ApiIpamRouteTargetsListRequest) NameIsw(nameIsw []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameIsw(nameIsw []string) ApiIpamServicesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiIpamRouteTargetsListRequest) NameN(nameN []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameN(nameN []string) ApiIpamServicesListRequest { r.nameN = &nameN return r } -func (r ApiIpamRouteTargetsListRequest) NameNic(nameNic []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameNic(nameNic []string) ApiIpamServicesListRequest { r.nameNic = &nameNic return r } -func (r ApiIpamRouteTargetsListRequest) NameNie(nameNie []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameNie(nameNie []string) ApiIpamServicesListRequest { r.nameNie = &nameNie return r } -func (r ApiIpamRouteTargetsListRequest) NameNiew(nameNiew []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameNiew(nameNiew []string) ApiIpamServicesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiIpamRouteTargetsListRequest) NameNisw(nameNisw []string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) NameNisw(nameNisw []string) ApiIpamServicesListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiIpamRouteTargetsListRequest) Offset(offset int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) Offset(offset int32) ApiIpamServicesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiIpamRouteTargetsListRequest) Ordering(ordering string) ApiIpamRouteTargetsListRequest { +func (r ApiIpamServicesListRequest) Ordering(ordering string) ApiIpamServicesListRequest { r.ordering = &ordering return r } -// Search -func (r ApiIpamRouteTargetsListRequest) Q(q string) ApiIpamRouteTargetsListRequest { - r.q = &q - return r -} - -func (r ApiIpamRouteTargetsListRequest) Tag(tag []string) ApiIpamRouteTargetsListRequest { - r.tag = &tag - return r -} - -func (r ApiIpamRouteTargetsListRequest) TagN(tagN []string) ApiIpamRouteTargetsListRequest { - r.tagN = &tagN +func (r ApiIpamServicesListRequest) Port(port float32) ApiIpamServicesListRequest { + r.port = &port return r } -// Tenant (slug) -func (r ApiIpamRouteTargetsListRequest) Tenant(tenant []string) ApiIpamRouteTargetsListRequest { - r.tenant = &tenant +// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP +func (r ApiIpamServicesListRequest) Protocol(protocol IpamServiceTemplatesListProtocolParameter) ApiIpamServicesListRequest { + r.protocol = &protocol return r } -// Tenant (slug) -func (r ApiIpamRouteTargetsListRequest) TenantN(tenantN []string) ApiIpamRouteTargetsListRequest { - r.tenantN = &tenantN +// Search +func (r ApiIpamServicesListRequest) Q(q string) ApiIpamServicesListRequest { + r.q = &q return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []int32) ApiIpamRouteTargetsListRequest { - r.tenantGroup = &tenantGroup +func (r ApiIpamServicesListRequest) Tag(tag []string) ApiIpamServicesListRequest { + r.tag = &tag return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamRouteTargetsListRequest { - r.tenantGroupN = &tenantGroupN +func (r ApiIpamServicesListRequest) TagN(tagN []string) ApiIpamServicesListRequest { + r.tagN = &tagN return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamRouteTargetsListRequest { - r.tenantGroupId = &tenantGroupId +func (r ApiIpamServicesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamServicesListRequest { + r.updatedByRequest = &updatedByRequest return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamRouteTargetsListRequest { - r.tenantGroupIdN = &tenantGroupIdN +// Virtual machine (name) +func (r ApiIpamServicesListRequest) VirtualMachine(virtualMachine []string) ApiIpamServicesListRequest { + r.virtualMachine = &virtualMachine return r } -// Tenant (ID) -func (r ApiIpamRouteTargetsListRequest) TenantId(tenantId []*int32) ApiIpamRouteTargetsListRequest { - r.tenantId = &tenantId +// Virtual machine (name) +func (r ApiIpamServicesListRequest) VirtualMachineN(virtualMachineN []string) ApiIpamServicesListRequest { + r.virtualMachineN = &virtualMachineN return r } -// Tenant (ID) -func (r ApiIpamRouteTargetsListRequest) TenantIdN(tenantIdN []*int32) ApiIpamRouteTargetsListRequest { - r.tenantIdN = &tenantIdN +// Virtual machine (ID) +func (r ApiIpamServicesListRequest) VirtualMachineId(virtualMachineId []*int32) ApiIpamServicesListRequest { + r.virtualMachineId = &virtualMachineId return r } -func (r ApiIpamRouteTargetsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamRouteTargetsListRequest { - r.updatedByRequest = &updatedByRequest +// Virtual machine (ID) +func (r ApiIpamServicesListRequest) VirtualMachineIdN(virtualMachineIdN []*int32) ApiIpamServicesListRequest { + r.virtualMachineIdN = &virtualMachineIdN return r } -func (r ApiIpamRouteTargetsListRequest) Execute() (*PaginatedRouteTargetList, *http.Response, error) { - return r.ApiService.IpamRouteTargetsListExecute(r) +func (r ApiIpamServicesListRequest) Execute() (*PaginatedServiceList, *http.Response, error) { + return r.ApiService.IpamServicesListExecute(r) } /* -IpamRouteTargetsList Method for IpamRouteTargetsList +IpamServicesList Method for IpamServicesList -Get a list of route target objects. +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 ApiIpamRouteTargetsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesListRequest */ -func (a *IpamAPIService) IpamRouteTargetsList(ctx context.Context) ApiIpamRouteTargetsListRequest { - return ApiIpamRouteTargetsListRequest{ +func (a *IpamAPIService) IpamServicesList(ctx context.Context) ApiIpamServicesListRequest { + return ApiIpamServicesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRouteTargetList -func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRequest) (*PaginatedRouteTargetList, *http.Response, error) { +// @return PaginatedServiceList +func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (*PaginatedServiceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRouteTargetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedServiceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/" + localVarPath := localBasePath + "/api/ipam/services/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -24922,10 +32505,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -24933,10 +32516,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -24944,10 +32527,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -24955,10 +32538,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -24966,10 +32549,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -24977,10 +32560,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -24988,38 +32571,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -25027,10 +32610,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -25038,10 +32621,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -25049,10 +32632,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -25060,10 +32643,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -25071,10 +32654,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -25082,10 +32665,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -25093,10 +32676,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -25104,98 +32687,54 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.exportingL2vpn != nil { - t := *r.exportingL2vpn - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn", t, "multi") - } - } - if r.exportingL2vpnN != nil { - t := *r.exportingL2vpnN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn__n", t, "multi") - } - } - if r.exportingL2vpnId != nil { - t := *r.exportingL2vpnId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id", t, "multi") - } - } - if r.exportingL2vpnIdN != nil { - t := *r.exportingL2vpnIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_l2vpn_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.exportingVrf != nil { - t := *r.exportingVrf + if r.device != nil { + t := *r.device 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } - if r.exportingVrfN != nil { - t := *r.exportingVrfN + 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, "exporting_vrf__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi") } } - if r.exportingVrfId != nil { - t := *r.exportingVrfId + 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, "exporting_vrf_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } - if r.exportingVrfIdN != nil { - t := *r.exportingVrfIdN + 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, "exporting_vrf_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") } } if r.id != nil { @@ -25203,24 +32742,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -25228,10 +32767,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -25239,10 +32778,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -25250,10 +32789,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -25261,98 +32800,54 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.importingL2vpn != nil { - t := *r.importingL2vpn - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn", t, "multi") - } - } - if r.importingL2vpnN != nil { - t := *r.importingL2vpnN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } - if r.importingL2vpnId != nil { - t := *r.importingL2vpnId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id", t, "multi") - } - } - if r.importingL2vpnIdN != nil { - t := *r.importingL2vpnIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_l2vpn_id__n", t, "multi") - } - } - if r.importingVrf != nil { - t := *r.importingVrf + if r.ipAddress != nil { + t := *r.ipAddress 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address", t, "form", "multi") } } - if r.importingVrfN != nil { - t := *r.importingVrfN + if r.ipAddressN != nil { + t := *r.ipAddressN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address__n", t, "form", "multi") } } - if r.importingVrfId != nil { - t := *r.importingVrfId + if r.ipAddressId != nil { + t := *r.ipAddressId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id", t, "form", "multi") } } - if r.importingVrfIdN != nil { - t := *r.importingVrfIdN + if r.ipAddressIdN != nil { + t := *r.ipAddressIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -25360,10 +32855,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -25371,10 +32866,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -25382,10 +32877,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -25393,10 +32888,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -25404,10 +32899,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -25415,10 +32910,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -25426,41 +32921,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -25468,10 +32963,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -25479,10 +32974,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -25490,10 +32985,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -25501,10 +32996,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -25512,10 +33007,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -25523,10 +33018,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -25534,10 +33029,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -25545,30 +33040,36 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.port != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "port", r.port, "form", "") + } + if r.protocol != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -25576,103 +33077,301 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.tenant != nil { - t := *r.tenant + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.virtualMachine != nil { + t := *r.virtualMachine 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi") } } - if r.tenantN != nil { - t := *r.tenantN + if r.virtualMachineN != nil { + t := *r.virtualMachineN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "form", "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + if r.virtualMachineId != nil { + t := *r.virtualMachineId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + if r.virtualMachineIdN != nil { + t := *r.virtualMachineIdN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "form", "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") + // 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 } - } 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") + 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 } - 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") + + 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.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") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiIpamServicesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedWritableServiceRequest *PatchedWritableServiceRequest +} + +func (r ApiIpamServicesPartialUpdateRequest) PatchedWritableServiceRequest(patchedWritableServiceRequest PatchedWritableServiceRequest) ApiIpamServicesPartialUpdateRequest { + r.patchedWritableServiceRequest = &patchedWritableServiceRequest + return r +} + +func (r ApiIpamServicesPartialUpdateRequest) Execute() (*Service, *http.Response, error) { + return r.ApiService.IpamServicesPartialUpdateExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamServicesPartialUpdate(ctx context.Context, id int32) ApiIpamServicesPartialUpdateRequest { + return ApiIpamServicesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Service +func (a *IpamAPIService) IpamServicesPartialUpdateExecute(r ApiIpamServicesPartialUpdateRequest) (*Service, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/services/{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.patchedWritableServiceRequest + 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, "tenant_id__n", t, "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + 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 ApiIpamServicesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 +} + +func (r ApiIpamServicesRetrieveRequest) Execute() (*Service, *http.Response, error) { + return r.ApiService.IpamServicesRetrieveExecute(r) +} + +/* +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 +*/ +func (a *IpamAPIService) IpamServicesRetrieve(ctx context.Context, id int32) ApiIpamServicesRetrieveRequest { + return ApiIpamServicesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Service +func (a *IpamAPIService) IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRequest) (*Service, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/ipam/services/{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{} @@ -25741,61 +33440,63 @@ func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRouteTargetsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedRouteTargetRequest *PatchedRouteTargetRequest +type ApiIpamServicesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + writableServiceRequest *WritableServiceRequest } -func (r ApiIpamRouteTargetsPartialUpdateRequest) PatchedRouteTargetRequest(patchedRouteTargetRequest PatchedRouteTargetRequest) ApiIpamRouteTargetsPartialUpdateRequest { - r.patchedRouteTargetRequest = &patchedRouteTargetRequest +func (r ApiIpamServicesUpdateRequest) WritableServiceRequest(writableServiceRequest WritableServiceRequest) ApiIpamServicesUpdateRequest { + r.writableServiceRequest = &writableServiceRequest return r } -func (r ApiIpamRouteTargetsPartialUpdateRequest) Execute() (*RouteTarget, *http.Response, error) { - return r.ApiService.IpamRouteTargetsPartialUpdateExecute(r) +func (r ApiIpamServicesUpdateRequest) Execute() (*Service, *http.Response, error) { + return r.ApiService.IpamServicesUpdateExecute(r) } /* -IpamRouteTargetsPartialUpdate Method for IpamRouteTargetsPartialUpdate +IpamServicesUpdate Method for IpamServicesUpdate -Patch a route target object. +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 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 service. + @return ApiIpamServicesUpdateRequest */ -func (a *IpamAPIService) IpamRouteTargetsPartialUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsPartialUpdateRequest { - return ApiIpamRouteTargetsPartialUpdateRequest{ +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 RouteTarget -func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTargetsPartialUpdateRequest) (*RouteTarget, *http.Response, error) { +// @return Service +func (a *IpamAPIService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateRequest) (*Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/{id}/" + localVarPath := localBasePath + "/api/ipam/services/{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.writableServiceRequest == nil { + return localVarReturnValue, nil, reportError("writableServiceRequest is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -25815,7 +33516,7 @@ func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTarg localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedRouteTargetRequest + localVarPostBody = r.writableServiceRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25867,58 +33568,66 @@ func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTarg return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRouteTargetsRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamVlanGroupsAvailableVlansCreateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + vLANRequest *[]VLANRequest } -func (r ApiIpamRouteTargetsRetrieveRequest) Execute() (*RouteTarget, *http.Response, error) { - return r.ApiService.IpamRouteTargetsRetrieveExecute(r) +func (r ApiIpamVlanGroupsAvailableVlansCreateRequest) VLANRequest(vLANRequest []VLANRequest) ApiIpamVlanGroupsAvailableVlansCreateRequest { + r.vLANRequest = &vLANRequest + return r +} + +func (r ApiIpamVlanGroupsAvailableVlansCreateRequest) Execute() ([]VLAN, *http.Response, error) { + return r.ApiService.IpamVlanGroupsAvailableVlansCreateExecute(r) } /* -IpamRouteTargetsRetrieve Method for IpamRouteTargetsRetrieve +IpamVlanGroupsAvailableVlansCreate Method for IpamVlanGroupsAvailableVlansCreate -Get a route target object. +Post 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 route target. - @return ApiIpamRouteTargetsRetrieveRequest + @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) IpamRouteTargetsRetrieve(ctx context.Context, id int32) ApiIpamRouteTargetsRetrieveRequest { - return ApiIpamRouteTargetsRetrieveRequest{ +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 RouteTarget -func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRetrieveRequest) (*RouteTarget, *http.Response, error) { +// @return []VLAN +func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlanGroupsAvailableVlansCreateRequest) ([]VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/available-vlans/" 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.vLANRequest == nil { + return localVarReturnValue, nil, reportError("vLANRequest 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) @@ -25934,6 +33643,8 @@ func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.vLANRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25985,67 +33696,57 @@ func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamRouteTargetsUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - routeTargetRequest *RouteTargetRequest -} - -func (r ApiIpamRouteTargetsUpdateRequest) RouteTargetRequest(routeTargetRequest RouteTargetRequest) ApiIpamRouteTargetsUpdateRequest { - r.routeTargetRequest = &routeTargetRequest - return r +type ApiIpamVlanGroupsAvailableVlansListRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamRouteTargetsUpdateRequest) Execute() (*RouteTarget, *http.Response, error) { - return r.ApiService.IpamRouteTargetsUpdateExecute(r) +func (r ApiIpamVlanGroupsAvailableVlansListRequest) Execute() ([]AvailableVLAN, *http.Response, error) { + return r.ApiService.IpamVlanGroupsAvailableVlansListExecute(r) } /* -IpamRouteTargetsUpdate Method for IpamRouteTargetsUpdate +IpamVlanGroupsAvailableVlansList Method for IpamVlanGroupsAvailableVlansList -Put a route target object. +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 route target. - @return ApiIpamRouteTargetsUpdateRequest + @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) IpamRouteTargetsUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsUpdateRequest { - return ApiIpamRouteTargetsUpdateRequest{ +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 RouteTarget -func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpdateRequest) (*RouteTarget, *http.Response, error) { +// @return []AvailableVLAN +func (a *IpamAPIService) IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGroupsAvailableVlansListRequest) ([]AvailableVLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableVLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/route-targets/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/available-vlans/" 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.routeTargetRequest == nil { - return localVarReturnValue, nil, reportError("routeTargetRequest 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) @@ -26061,8 +33762,6 @@ func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpda if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.routeTargetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -26114,56 +33813,56 @@ func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - serviceTemplateRequest *[]ServiceTemplateRequest +type ApiIpamVlanGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + vLANGroupRequest *[]VLANGroupRequest } -func (r ApiIpamServiceTemplatesBulkDestroyRequest) ServiceTemplateRequest(serviceTemplateRequest []ServiceTemplateRequest) ApiIpamServiceTemplatesBulkDestroyRequest { - r.serviceTemplateRequest = &serviceTemplateRequest +func (r ApiIpamVlanGroupsBulkDestroyRequest) VLANGroupRequest(vLANGroupRequest []VLANGroupRequest) ApiIpamVlanGroupsBulkDestroyRequest { + r.vLANGroupRequest = &vLANGroupRequest return r } -func (r ApiIpamServiceTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamServiceTemplatesBulkDestroyExecute(r) +func (r ApiIpamVlanGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamVlanGroupsBulkDestroyExecute(r) } /* -IpamServiceTemplatesBulkDestroy Method for IpamServiceTemplatesBulkDestroy +IpamVlanGroupsBulkDestroy Method for IpamVlanGroupsBulkDestroy -Delete a list of service template objects. +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 ApiIpamServiceTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsBulkDestroyRequest */ -func (a *IpamAPIService) IpamServiceTemplatesBulkDestroy(ctx context.Context) ApiIpamServiceTemplatesBulkDestroyRequest { - return ApiIpamServiceTemplatesBulkDestroyRequest{ +func (a *IpamAPIService) IpamVlanGroupsBulkDestroy(ctx context.Context) ApiIpamVlanGroupsBulkDestroyRequest { + return ApiIpamVlanGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamServiceTemplatesBulkDestroyRequest) (*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.IpamServiceTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.serviceTemplateRequest == nil { - return nil, reportError("serviceTemplateRequest is required and must be specified") + if r.vLANGroupRequest == nil { + return nil, reportError("vLANGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -26184,7 +33883,7 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamService localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.serviceTemplateRequest + localVarPostBody = r.vLANGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -26227,59 +33926,58 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamService return localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - serviceTemplateRequest *[]ServiceTemplateRequest +type ApiIpamVlanGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANGroupRequest *[]VLANGroupRequest } -func (r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ServiceTemplateRequest(serviceTemplateRequest []ServiceTemplateRequest) ApiIpamServiceTemplatesBulkPartialUpdateRequest { - r.serviceTemplateRequest = &serviceTemplateRequest +func (r ApiIpamVlanGroupsBulkPartialUpdateRequest) VLANGroupRequest(vLANGroupRequest []VLANGroupRequest) ApiIpamVlanGroupsBulkPartialUpdateRequest { + r.vLANGroupRequest = &vLANGroupRequest return r } -func (r ApiIpamServiceTemplatesBulkPartialUpdateRequest) Execute() ([]ServiceTemplate, *http.Response, error) { - return r.ApiService.IpamServiceTemplatesBulkPartialUpdateExecute(r) +func (r ApiIpamVlanGroupsBulkPartialUpdateRequest) Execute() ([]VLANGroup, *http.Response, error) { + return r.ApiService.IpamVlanGroupsBulkPartialUpdateExecute(r) } /* -IpamServiceTemplatesBulkPartialUpdate Method for IpamServiceTemplatesBulkPartialUpdate +IpamVlanGroupsBulkPartialUpdate Method for IpamVlanGroupsBulkPartialUpdate -Patch a list of service template objects. +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 ApiIpamServiceTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkPartialUpdateRequest { - return ApiIpamServiceTemplatesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdate(ctx context.Context) ApiIpamVlanGroupsBulkPartialUpdateRequest { + return ApiIpamVlanGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ServiceTemplate -func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ([]ServiceTemplate, *http.Response, error) { +// @return []VLANGroup +func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGroupsBulkPartialUpdateRequest) ([]VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ServiceTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.serviceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("serviceTemplateRequest is required and must be specified") + if r.vLANGroupRequest == nil { + return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -26300,7 +33998,7 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamS localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.serviceTemplateRequest + localVarPostBody = r.vLANGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -26352,59 +34050,58 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamS return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - serviceTemplateRequest *[]ServiceTemplateRequest +type ApiIpamVlanGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANGroupRequest *[]VLANGroupRequest } -func (r ApiIpamServiceTemplatesBulkUpdateRequest) ServiceTemplateRequest(serviceTemplateRequest []ServiceTemplateRequest) ApiIpamServiceTemplatesBulkUpdateRequest { - r.serviceTemplateRequest = &serviceTemplateRequest +func (r ApiIpamVlanGroupsBulkUpdateRequest) VLANGroupRequest(vLANGroupRequest []VLANGroupRequest) ApiIpamVlanGroupsBulkUpdateRequest { + r.vLANGroupRequest = &vLANGroupRequest return r } -func (r ApiIpamServiceTemplatesBulkUpdateRequest) Execute() ([]ServiceTemplate, *http.Response, error) { - return r.ApiService.IpamServiceTemplatesBulkUpdateExecute(r) +func (r ApiIpamVlanGroupsBulkUpdateRequest) Execute() ([]VLANGroup, *http.Response, error) { + return r.ApiService.IpamVlanGroupsBulkUpdateExecute(r) } /* -IpamServiceTemplatesBulkUpdate Method for IpamServiceTemplatesBulkUpdate +IpamVlanGroupsBulkUpdate Method for IpamVlanGroupsBulkUpdate -Put a list of service template objects. +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 ApiIpamServiceTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsBulkUpdateRequest */ -func (a *IpamAPIService) IpamServiceTemplatesBulkUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkUpdateRequest { - return ApiIpamServiceTemplatesBulkUpdateRequest{ +func (a *IpamAPIService) IpamVlanGroupsBulkUpdate(ctx context.Context) ApiIpamVlanGroupsBulkUpdateRequest { + return ApiIpamVlanGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ServiceTemplate -func (a *IpamAPIService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceTemplatesBulkUpdateRequest) ([]ServiceTemplate, *http.Response, error) { +// @return []VLANGroup +func (a *IpamAPIService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulkUpdateRequest) ([]VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ServiceTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.serviceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("serviceTemplateRequest is required and must be specified") + if r.vLANGroupRequest == nil { + return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -26425,7 +34122,7 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.serviceTemplateRequest + localVarPostBody = r.vLANGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -26477,59 +34174,58 @@ func (a *IpamAPIService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - writableServiceTemplateRequest *WritableServiceTemplateRequest +type ApiIpamVlanGroupsCreateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANGroupRequest *VLANGroupRequest } -func (r ApiIpamServiceTemplatesCreateRequest) WritableServiceTemplateRequest(writableServiceTemplateRequest WritableServiceTemplateRequest) ApiIpamServiceTemplatesCreateRequest { - r.writableServiceTemplateRequest = &writableServiceTemplateRequest +func (r ApiIpamVlanGroupsCreateRequest) VLANGroupRequest(vLANGroupRequest VLANGroupRequest) ApiIpamVlanGroupsCreateRequest { + r.vLANGroupRequest = &vLANGroupRequest return r } -func (r ApiIpamServiceTemplatesCreateRequest) Execute() (*ServiceTemplate, *http.Response, error) { - return r.ApiService.IpamServiceTemplatesCreateExecute(r) +func (r ApiIpamVlanGroupsCreateRequest) Execute() (*VLANGroup, *http.Response, error) { + return r.ApiService.IpamVlanGroupsCreateExecute(r) } /* -IpamServiceTemplatesCreate Method for IpamServiceTemplatesCreate +IpamVlanGroupsCreate Method for IpamVlanGroupsCreate -Post a list of service template objects. +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 ApiIpamServiceTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsCreateRequest */ -func (a *IpamAPIService) IpamServiceTemplatesCreate(ctx context.Context) ApiIpamServiceTemplatesCreateRequest { - return ApiIpamServiceTemplatesCreateRequest{ +func (a *IpamAPIService) IpamVlanGroupsCreate(ctx context.Context) ApiIpamVlanGroupsCreateRequest { + return ApiIpamVlanGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ServiceTemplate -func (a *IpamAPIService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTemplatesCreateRequest) (*ServiceTemplate, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableServiceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableServiceTemplateRequest is required and must be specified") + if r.vLANGroupRequest == nil { + return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -26550,7 +34246,7 @@ func (a *IpamAPIService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTempl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableServiceTemplateRequest + localVarPostBody = r.vLANGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -26602,47 +34298,47 @@ func (a *IpamAPIService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTempl return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamVlanGroupsDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamServiceTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamServiceTemplatesDestroyExecute(r) +func (r ApiIpamVlanGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamVlanGroupsDestroyExecute(r) } /* -IpamServiceTemplatesDestroy Method for IpamServiceTemplatesDestroy +IpamVlanGroupsDestroy Method for IpamVlanGroupsDestroy -Delete a service template object. +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 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 VLAN group. + @return ApiIpamVlanGroupsDestroyRequest */ -func (a *IpamAPIService) IpamServiceTemplatesDestroy(ctx context.Context, id int32) ApiIpamServiceTemplatesDestroyRequest { - return ApiIpamServiceTemplatesDestroyRequest{ +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) IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemplatesDestroyRequest) (*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.IpamServiceTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -26708,397 +34404,553 @@ func (a *IpamAPIService) IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemp return localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesListRequest struct { - 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 - 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 +type ApiIpamVlanGroupsListRequest struct { + ctx context.Context + ApiService IpamAPI + cluster *int32 + clusterGroup *int32 + containsVid *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 + 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 + location *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 *IpamServiceTemplatesListProtocolParameter - protocolN *IpamServiceTemplatesListProtocolParameter - q *string - tag *[]string - tagN *[]string - updatedByRequest *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 *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 } -func (r ApiIpamServiceTemplatesListRequest) Created(created []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Cluster(cluster int32) ApiIpamVlanGroupsListRequest { + r.cluster = &cluster + return r +} + +func (r ApiIpamVlanGroupsListRequest) ClusterGroup(clusterGroup int32) ApiIpamVlanGroupsListRequest { + r.clusterGroup = &clusterGroup + return r +} + +func (r ApiIpamVlanGroupsListRequest) ContainsVid(containsVid float32) ApiIpamVlanGroupsListRequest { + r.containsVid = &containsVid + return r +} + +func (r ApiIpamVlanGroupsListRequest) Created(created []time.Time) ApiIpamVlanGroupsListRequest { r.created = &created return r } -func (r ApiIpamServiceTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamVlanGroupsListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamServiceTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) CreatedGt(createdGt []time.Time) ApiIpamVlanGroupsListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamServiceTemplatesListRequest) CreatedGte(createdGte []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) CreatedGte(createdGte []time.Time) ApiIpamVlanGroupsListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamServiceTemplatesListRequest) CreatedLt(createdLt []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) CreatedLt(createdLt []time.Time) ApiIpamVlanGroupsListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamServiceTemplatesListRequest) CreatedLte(createdLte []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) CreatedLte(createdLte []time.Time) ApiIpamVlanGroupsListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamServiceTemplatesListRequest) CreatedN(createdN []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) CreatedN(createdN []time.Time) ApiIpamVlanGroupsListRequest { r.createdN = &createdN return r } -func (r ApiIpamServiceTemplatesListRequest) CreatedByRequest(createdByRequest string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) CreatedByRequest(createdByRequest string) ApiIpamVlanGroupsListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamServiceTemplatesListRequest) Description(description []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Description(description []string) ApiIpamVlanGroupsListRequest { r.description = &description return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamVlanGroupsListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionIc(descriptionIc []string) ApiIpamVlanGroupsListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionIe(descriptionIe []string) ApiIpamVlanGroupsListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionIew(descriptionIew []string) ApiIpamVlanGroupsListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamVlanGroupsListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionN(descriptionN []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionN(descriptionN []string) ApiIpamVlanGroupsListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionNic(descriptionNic []string) ApiIpamVlanGroupsListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionNie(descriptionNie []string) ApiIpamVlanGroupsListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamVlanGroupsListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamServiceTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamVlanGroupsListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamServiceTemplatesListRequest) Id(id []int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Id(id []int32) ApiIpamVlanGroupsListRequest { r.id = &id return r } -func (r ApiIpamServiceTemplatesListRequest) IdEmpty(idEmpty bool) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) IdEmpty(idEmpty bool) ApiIpamVlanGroupsListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamServiceTemplatesListRequest) IdGt(idGt []int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) IdGt(idGt []int32) ApiIpamVlanGroupsListRequest { r.idGt = &idGt return r } -func (r ApiIpamServiceTemplatesListRequest) IdGte(idGte []int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) IdGte(idGte []int32) ApiIpamVlanGroupsListRequest { r.idGte = &idGte return r } -func (r ApiIpamServiceTemplatesListRequest) IdLt(idLt []int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) IdLt(idLt []int32) ApiIpamVlanGroupsListRequest { r.idLt = &idLt return r } -func (r ApiIpamServiceTemplatesListRequest) IdLte(idLte []int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) IdLte(idLte []int32) ApiIpamVlanGroupsListRequest { r.idLte = &idLte return r } -func (r ApiIpamServiceTemplatesListRequest) IdN(idN []int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) IdN(idN []int32) ApiIpamVlanGroupsListRequest { r.idN = &idN return r } -func (r ApiIpamServiceTemplatesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamServiceTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamServiceTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamServiceTemplatesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamServiceTemplatesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamServiceTemplatesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamServiceTemplatesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamServiceTemplatesListRequest) Limit(limit int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Limit(limit int32) ApiIpamVlanGroupsListRequest { r.limit = &limit return r } -func (r ApiIpamServiceTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Location(location int32) ApiIpamVlanGroupsListRequest { + r.location = &location + return r +} + +func (r ApiIpamVlanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanGroupsListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamServiceTemplatesListRequest) Name(name []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Name(name []string) ApiIpamVlanGroupsListRequest { r.name = &name return r } -func (r ApiIpamServiceTemplatesListRequest) NameEmpty(nameEmpty bool) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameEmpty(nameEmpty bool) ApiIpamVlanGroupsListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiIpamServiceTemplatesListRequest) NameIc(nameIc []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameIc(nameIc []string) ApiIpamVlanGroupsListRequest { r.nameIc = &nameIc return r } -func (r ApiIpamServiceTemplatesListRequest) NameIe(nameIe []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameIe(nameIe []string) ApiIpamVlanGroupsListRequest { r.nameIe = &nameIe return r } -func (r ApiIpamServiceTemplatesListRequest) NameIew(nameIew []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameIew(nameIew []string) ApiIpamVlanGroupsListRequest { r.nameIew = &nameIew return r } -func (r ApiIpamServiceTemplatesListRequest) NameIsw(nameIsw []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameIsw(nameIsw []string) ApiIpamVlanGroupsListRequest { r.nameIsw = &nameIsw return r } -func (r ApiIpamServiceTemplatesListRequest) NameN(nameN []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameN(nameN []string) ApiIpamVlanGroupsListRequest { r.nameN = &nameN return r } -func (r ApiIpamServiceTemplatesListRequest) NameNic(nameNic []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameNic(nameNic []string) ApiIpamVlanGroupsListRequest { r.nameNic = &nameNic return r } -func (r ApiIpamServiceTemplatesListRequest) NameNie(nameNie []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameNie(nameNie []string) ApiIpamVlanGroupsListRequest { r.nameNie = &nameNie return r } -func (r ApiIpamServiceTemplatesListRequest) NameNiew(nameNiew []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameNiew(nameNiew []string) ApiIpamVlanGroupsListRequest { r.nameNiew = &nameNiew return r } -func (r ApiIpamServiceTemplatesListRequest) NameNisw(nameNisw []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) NameNisw(nameNisw []string) ApiIpamVlanGroupsListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiIpamServiceTemplatesListRequest) Offset(offset int32) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Offset(offset int32) ApiIpamVlanGroupsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiIpamServiceTemplatesListRequest) Ordering(ordering string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) Ordering(ordering string) ApiIpamVlanGroupsListRequest { r.ordering = &ordering return r } -func (r ApiIpamServiceTemplatesListRequest) Port(port float32) ApiIpamServiceTemplatesListRequest { - r.port = &port +// Search +func (r ApiIpamVlanGroupsListRequest) Q(q string) ApiIpamVlanGroupsListRequest { + r.q = &q return r } -// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP -func (r ApiIpamServiceTemplatesListRequest) Protocol(protocol IpamServiceTemplatesListProtocolParameter) ApiIpamServiceTemplatesListRequest { - r.protocol = &protocol +func (r ApiIpamVlanGroupsListRequest) Rack(rack int32) ApiIpamVlanGroupsListRequest { + r.rack = &rack return r } -// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP -func (r ApiIpamServiceTemplatesListRequest) ProtocolN(protocolN IpamServiceTemplatesListProtocolParameter) ApiIpamServiceTemplatesListRequest { - r.protocolN = &protocolN +func (r ApiIpamVlanGroupsListRequest) Region(region int32) ApiIpamVlanGroupsListRequest { + r.region = ®ion return r } -// Search -func (r ApiIpamServiceTemplatesListRequest) Q(q string) ApiIpamServiceTemplatesListRequest { - r.q = &q +func (r ApiIpamVlanGroupsListRequest) ScopeId(scopeId []int32) ApiIpamVlanGroupsListRequest { + r.scopeId = &scopeId return r } -func (r ApiIpamServiceTemplatesListRequest) Tag(tag []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) ScopeIdEmpty(scopeIdEmpty bool) ApiIpamVlanGroupsListRequest { + r.scopeIdEmpty = &scopeIdEmpty + return r +} + +func (r ApiIpamVlanGroupsListRequest) ScopeIdGt(scopeIdGt []int32) ApiIpamVlanGroupsListRequest { + r.scopeIdGt = &scopeIdGt + return r +} + +func (r ApiIpamVlanGroupsListRequest) ScopeIdGte(scopeIdGte []int32) ApiIpamVlanGroupsListRequest { + r.scopeIdGte = &scopeIdGte + return r +} + +func (r ApiIpamVlanGroupsListRequest) ScopeIdLt(scopeIdLt []int32) ApiIpamVlanGroupsListRequest { + r.scopeIdLt = &scopeIdLt + return r +} + +func (r ApiIpamVlanGroupsListRequest) ScopeIdLte(scopeIdLte []int32) ApiIpamVlanGroupsListRequest { + r.scopeIdLte = &scopeIdLte + return r +} + +func (r ApiIpamVlanGroupsListRequest) ScopeIdN(scopeIdN []int32) ApiIpamVlanGroupsListRequest { + r.scopeIdN = &scopeIdN + return r +} + +func (r ApiIpamVlanGroupsListRequest) ScopeType(scopeType string) ApiIpamVlanGroupsListRequest { + r.scopeType = &scopeType + return r +} + +func (r ApiIpamVlanGroupsListRequest) ScopeTypeN(scopeTypeN string) ApiIpamVlanGroupsListRequest { + r.scopeTypeN = &scopeTypeN + return r +} + +func (r ApiIpamVlanGroupsListRequest) Site(site int32) ApiIpamVlanGroupsListRequest { + r.site = &site + return r +} + +func (r ApiIpamVlanGroupsListRequest) SiteGroup(siteGroup int32) ApiIpamVlanGroupsListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiIpamVlanGroupsListRequest) Slug(slug []string) ApiIpamVlanGroupsListRequest { + r.slug = &slug + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugEmpty(slugEmpty bool) ApiIpamVlanGroupsListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugIc(slugIc []string) ApiIpamVlanGroupsListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugIe(slugIe []string) ApiIpamVlanGroupsListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugIew(slugIew []string) ApiIpamVlanGroupsListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugIsw(slugIsw []string) ApiIpamVlanGroupsListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugN(slugN []string) ApiIpamVlanGroupsListRequest { + r.slugN = &slugN + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugNic(slugNic []string) ApiIpamVlanGroupsListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugNie(slugNie []string) ApiIpamVlanGroupsListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugNiew(slugNiew []string) ApiIpamVlanGroupsListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiIpamVlanGroupsListRequest) SlugNisw(slugNisw []string) ApiIpamVlanGroupsListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiIpamVlanGroupsListRequest) Tag(tag []string) ApiIpamVlanGroupsListRequest { r.tag = &tag return r } -func (r ApiIpamServiceTemplatesListRequest) TagN(tagN []string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) TagN(tagN []string) ApiIpamVlanGroupsListRequest { r.tagN = &tagN return r } -func (r ApiIpamServiceTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamServiceTemplatesListRequest { +func (r ApiIpamVlanGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamVlanGroupsListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamServiceTemplatesListRequest) Execute() (*PaginatedServiceTemplateList, *http.Response, error) { - return r.ApiService.IpamServiceTemplatesListExecute(r) +func (r ApiIpamVlanGroupsListRequest) Execute() (*PaginatedVLANGroupList, *http.Response, error) { + return r.ApiService.IpamVlanGroupsListExecute(r) } /* -IpamServiceTemplatesList Method for IpamServiceTemplatesList +IpamVlanGroupsList Method for IpamVlanGroupsList -Get a list of service template objects. +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 ApiIpamServiceTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsListRequest */ -func (a *IpamAPIService) IpamServiceTemplatesList(ctx context.Context) ApiIpamServiceTemplatesListRequest { - return ApiIpamServiceTemplatesListRequest{ +func (a *IpamAPIService) IpamVlanGroupsList(ctx context.Context) ApiIpamVlanGroupsListRequest { + return ApiIpamVlanGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedServiceTemplateList -func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplatesListRequest) (*PaginatedServiceTemplateList, *http.Response, error) { +// @return PaginatedVLANGroupList +func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListRequest) (*PaginatedVLANGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedServiceTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVLANGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.cluster != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", r.cluster, "form", "") + } + if r.clusterGroup != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", r.clusterGroup, "form", "") + } + if r.containsVid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "contains_vid", r.containsVid, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -27106,10 +34958,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -27117,10 +34969,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -27128,10 +34980,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -27139,10 +34991,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -27150,10 +35002,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -27161,38 +35013,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -27200,10 +35052,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -27211,10 +35063,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -27222,10 +35074,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -27233,10 +35085,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -27244,10 +35096,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -27255,10 +35107,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -27266,10 +35118,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -27277,10 +35129,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -27288,24 +35140,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -27313,10 +35165,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -27324,10 +35176,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -27335,10 +35187,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -27346,10 +35198,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -27357,10 +35209,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -27368,10 +35220,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -27379,10 +35231,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -27390,10 +35242,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -27401,10 +35253,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -27412,10 +35264,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -27423,41 +35275,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.location != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -27465,10 +35320,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -27476,10 +35331,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -27487,10 +35342,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -27498,10 +35353,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -27509,10 +35364,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -27520,10 +35375,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -27531,10 +35386,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -27542,39 +35397,230 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.port != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "port", r.port, "") + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.protocol != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "") + if r.rack != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", r.rack, "form", "") } - if r.protocolN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", r.protocolN, "") + if r.region != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", r.region, "form", "") } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + if r.scopeId != nil { + t := *r.scopeId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", t, "form", "multi") + } + } + if r.scopeIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__empty", r.scopeIdEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", t, "form", "multi") + } + } + if r.scopeIdGte != nil { + t := *r.scopeIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", t, "form", "multi") + } + } + if r.scopeIdLt != nil { + t := *r.scopeIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", t, "form", "multi") + } + } + if r.scopeIdLte != nil { + t := *r.scopeIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", t, "form", "multi") + } + } + if r.scopeIdN != nil { + t := *r.scopeIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", t, "form", "multi") + } + } + if r.scopeType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type", r.scopeType, "form", "") + } + if r.scopeTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type__n", r.scopeTypeN, "form", "") + } + if r.site != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", r.site, "form", "") + } + if r.siteGroup != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", r.siteGroup, "form", "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") + } + if r.slugIc != nil { + t := *r.slugIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") + } + } + if r.slugN != nil { + t := *r.slugN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -27582,14 +35628,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27659,56 +35705,55 @@ func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedWritableServiceTemplateRequest *PatchedWritableServiceTemplateRequest +type ApiIpamVlanGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedVLANGroupRequest *PatchedVLANGroupRequest } -func (r ApiIpamServiceTemplatesPartialUpdateRequest) PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest PatchedWritableServiceTemplateRequest) ApiIpamServiceTemplatesPartialUpdateRequest { - r.patchedWritableServiceTemplateRequest = &patchedWritableServiceTemplateRequest +func (r ApiIpamVlanGroupsPartialUpdateRequest) PatchedVLANGroupRequest(patchedVLANGroupRequest PatchedVLANGroupRequest) ApiIpamVlanGroupsPartialUpdateRequest { + r.patchedVLANGroupRequest = &patchedVLANGroupRequest return r } -func (r ApiIpamServiceTemplatesPartialUpdateRequest) Execute() (*ServiceTemplate, *http.Response, error) { - return r.ApiService.IpamServiceTemplatesPartialUpdateExecute(r) +func (r ApiIpamVlanGroupsPartialUpdateRequest) Execute() (*VLANGroup, *http.Response, error) { + return r.ApiService.IpamVlanGroupsPartialUpdateExecute(r) } /* -IpamServiceTemplatesPartialUpdate Method for IpamServiceTemplatesPartialUpdate +IpamVlanGroupsPartialUpdate Method for IpamVlanGroupsPartialUpdate -Patch a service template object. +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 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 VLAN group. + @return ApiIpamVlanGroupsPartialUpdateRequest */ -func (a *IpamAPIService) IpamServiceTemplatesPartialUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesPartialUpdateRequest { - return ApiIpamServiceTemplatesPartialUpdateRequest{ +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 ServiceTemplate -func (a *IpamAPIService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServiceTemplatesPartialUpdateRequest) (*ServiceTemplate, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsPartialUpdateRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27733,7 +35778,7 @@ func (a *IpamAPIService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServi localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableServiceTemplateRequest + localVarPostBody = r.patchedVLANGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27785,50 +35830,49 @@ func (a *IpamAPIService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamVlanGroupsRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamServiceTemplatesRetrieveRequest) Execute() (*ServiceTemplate, *http.Response, error) { - return r.ApiService.IpamServiceTemplatesRetrieveExecute(r) +func (r ApiIpamVlanGroupsRetrieveRequest) Execute() (*VLANGroup, *http.Response, error) { + return r.ApiService.IpamVlanGroupsRetrieveExecute(r) } /* -IpamServiceTemplatesRetrieve Method for IpamServiceTemplatesRetrieve +IpamVlanGroupsRetrieve Method for IpamVlanGroupsRetrieve -Get a service template object. +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 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 VLAN group. + @return ApiIpamVlanGroupsRetrieveRequest */ -func (a *IpamAPIService) IpamServiceTemplatesRetrieve(ctx context.Context, id int32) ApiIpamServiceTemplatesRetrieveRequest { - return ApiIpamServiceTemplatesRetrieveRequest{ +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 ServiceTemplate -func (a *IpamAPIService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTemplatesRetrieveRequest) (*ServiceTemplate, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrieveRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27903,63 +35947,62 @@ func (a *IpamAPIService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServiceTemplatesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - writableServiceTemplateRequest *WritableServiceTemplateRequest +type ApiIpamVlanGroupsUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + vLANGroupRequest *VLANGroupRequest } -func (r ApiIpamServiceTemplatesUpdateRequest) WritableServiceTemplateRequest(writableServiceTemplateRequest WritableServiceTemplateRequest) ApiIpamServiceTemplatesUpdateRequest { - r.writableServiceTemplateRequest = &writableServiceTemplateRequest +func (r ApiIpamVlanGroupsUpdateRequest) VLANGroupRequest(vLANGroupRequest VLANGroupRequest) ApiIpamVlanGroupsUpdateRequest { + r.vLANGroupRequest = &vLANGroupRequest return r } -func (r ApiIpamServiceTemplatesUpdateRequest) Execute() (*ServiceTemplate, *http.Response, error) { - return r.ApiService.IpamServiceTemplatesUpdateExecute(r) +func (r ApiIpamVlanGroupsUpdateRequest) Execute() (*VLANGroup, *http.Response, error) { + return r.ApiService.IpamVlanGroupsUpdateExecute(r) } /* -IpamServiceTemplatesUpdate Method for IpamServiceTemplatesUpdate +IpamVlanGroupsUpdate Method for IpamVlanGroupsUpdate -Put a service template object. +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 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 VLAN group. + @return ApiIpamVlanGroupsUpdateRequest */ -func (a *IpamAPIService) IpamServiceTemplatesUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesUpdateRequest { - return ApiIpamServiceTemplatesUpdateRequest{ +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 ServiceTemplate -func (a *IpamAPIService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTemplatesUpdateRequest) (*ServiceTemplate, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/service-templates/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-groups/{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.writableServiceTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableServiceTemplateRequest is required and must be specified") + if r.vLANGroupRequest == nil { + return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") } // to determine the Content-Type header @@ -27980,7 +36023,7 @@ func (a *IpamAPIService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTempl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableServiceTemplateRequest + localVarPostBody = r.vLANGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28032,56 +36075,56 @@ func (a *IpamAPIService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTempl return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServicesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - serviceRequest *[]ServiceRequest +type ApiIpamVlanTranslationPoliciesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationPolicyRequest *[]VLANTranslationPolicyRequest } -func (r ApiIpamServicesBulkDestroyRequest) ServiceRequest(serviceRequest []ServiceRequest) ApiIpamServicesBulkDestroyRequest { - r.serviceRequest = &serviceRequest +func (r ApiIpamVlanTranslationPoliciesBulkDestroyRequest) VLANTranslationPolicyRequest(vLANTranslationPolicyRequest []VLANTranslationPolicyRequest) ApiIpamVlanTranslationPoliciesBulkDestroyRequest { + r.vLANTranslationPolicyRequest = &vLANTranslationPolicyRequest return r } -func (r ApiIpamServicesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamServicesBulkDestroyExecute(r) +func (r ApiIpamVlanTranslationPoliciesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesBulkDestroyExecute(r) } /* -IpamServicesBulkDestroy Method for IpamServicesBulkDestroy +IpamVlanTranslationPoliciesBulkDestroy Method for IpamVlanTranslationPoliciesBulkDestroy -Delete a list of service objects. +Delete a list of VLAN translation policy 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 ApiIpamVlanTranslationPoliciesBulkDestroyRequest */ -func (a *IpamAPIService) IpamServicesBulkDestroy(ctx context.Context) ApiIpamServicesBulkDestroyRequest { - return ApiIpamServicesBulkDestroyRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkDestroyRequest { + return ApiIpamVlanTranslationPoliciesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamAPIService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkDestroyExecute(r ApiIpamVlanTranslationPoliciesBulkDestroyRequest) (*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.IpamVlanTranslationPoliciesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.serviceRequest == nil { - return nil, reportError("serviceRequest is required and must be specified") + if r.vLANTranslationPolicyRequest == nil { + return nil, reportError("vLANTranslationPolicyRequest is required and must be specified") } // to determine the Content-Type header @@ -28102,7 +36145,7 @@ func (a *IpamAPIService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDes localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.serviceRequest + localVarPostBody = r.vLANTranslationPolicyRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28145,59 +36188,58 @@ func (a *IpamAPIService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDes return localVarHTTPResponse, nil } -type ApiIpamServicesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - serviceRequest *[]ServiceRequest +type ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationPolicyRequest *[]VLANTranslationPolicyRequest } -func (r ApiIpamServicesBulkPartialUpdateRequest) ServiceRequest(serviceRequest []ServiceRequest) ApiIpamServicesBulkPartialUpdateRequest { - r.serviceRequest = &serviceRequest +func (r ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest) VLANTranslationPolicyRequest(vLANTranslationPolicyRequest []VLANTranslationPolicyRequest) ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest { + r.vLANTranslationPolicyRequest = &vLANTranslationPolicyRequest return r } -func (r ApiIpamServicesBulkPartialUpdateRequest) Execute() ([]Service, *http.Response, error) { - return r.ApiService.IpamServicesBulkPartialUpdateExecute(r) +func (r ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest) Execute() ([]VLANTranslationPolicy, *http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesBulkPartialUpdateExecute(r) } /* -IpamServicesBulkPartialUpdate Method for IpamServicesBulkPartialUpdate +IpamVlanTranslationPoliciesBulkPartialUpdate Method for IpamVlanTranslationPoliciesBulkPartialUpdate -Patch a list of service objects. +Patch a list of VLAN translation policy 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 ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamServicesBulkPartialUpdate(ctx context.Context) ApiIpamServicesBulkPartialUpdateRequest { - return ApiIpamServicesBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest { + return ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Service -func (a *IpamAPIService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesBulkPartialUpdateRequest) ([]Service, *http.Response, error) { +// @return []VLANTranslationPolicy +func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkPartialUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Service + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANTranslationPolicy ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.serviceRequest == nil { - return localVarReturnValue, nil, reportError("serviceRequest is required and must be specified") + if r.vLANTranslationPolicyRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationPolicyRequest is required and must be specified") } // to determine the Content-Type header @@ -28218,7 +36260,7 @@ func (a *IpamAPIService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesB localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.serviceRequest + localVarPostBody = r.vLANTranslationPolicyRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28270,59 +36312,58 @@ func (a *IpamAPIService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesB return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServicesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - serviceRequest *[]ServiceRequest +type ApiIpamVlanTranslationPoliciesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationPolicyRequest *[]VLANTranslationPolicyRequest } -func (r ApiIpamServicesBulkUpdateRequest) ServiceRequest(serviceRequest []ServiceRequest) ApiIpamServicesBulkUpdateRequest { - r.serviceRequest = &serviceRequest +func (r ApiIpamVlanTranslationPoliciesBulkUpdateRequest) VLANTranslationPolicyRequest(vLANTranslationPolicyRequest []VLANTranslationPolicyRequest) ApiIpamVlanTranslationPoliciesBulkUpdateRequest { + r.vLANTranslationPolicyRequest = &vLANTranslationPolicyRequest return r } -func (r ApiIpamServicesBulkUpdateRequest) Execute() ([]Service, *http.Response, error) { - return r.ApiService.IpamServicesBulkUpdateExecute(r) +func (r ApiIpamVlanTranslationPoliciesBulkUpdateRequest) Execute() ([]VLANTranslationPolicy, *http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesBulkUpdateExecute(r) } /* -IpamServicesBulkUpdate Method for IpamServicesBulkUpdate +IpamVlanTranslationPoliciesBulkUpdate Method for IpamVlanTranslationPoliciesBulkUpdate -Put a list of service objects. +Put a list of VLAN translation policy 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 ApiIpamVlanTranslationPoliciesBulkUpdateRequest */ -func (a *IpamAPIService) IpamServicesBulkUpdate(ctx context.Context) ApiIpamServicesBulkUpdateRequest { - return ApiIpamServicesBulkUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationPoliciesBulkUpdateRequest { + return ApiIpamVlanTranslationPoliciesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Service -func (a *IpamAPIService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpdateRequest) ([]Service, *http.Response, error) { +// @return []VLANTranslationPolicy +func (a *IpamAPIService) IpamVlanTranslationPoliciesBulkUpdateExecute(r ApiIpamVlanTranslationPoliciesBulkUpdateRequest) ([]VLANTranslationPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Service + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANTranslationPolicy ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.serviceRequest == nil { - return localVarReturnValue, nil, reportError("serviceRequest is required and must be specified") + if r.vLANTranslationPolicyRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationPolicyRequest is required and must be specified") } // to determine the Content-Type header @@ -28343,7 +36384,7 @@ func (a *IpamAPIService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpda localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.serviceRequest + localVarPostBody = r.vLANTranslationPolicyRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28395,59 +36436,58 @@ func (a *IpamAPIService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpda return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServicesCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - writableServiceRequest *WritableServiceRequest +type ApiIpamVlanTranslationPoliciesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationPolicyRequest *VLANTranslationPolicyRequest } -func (r ApiIpamServicesCreateRequest) WritableServiceRequest(writableServiceRequest WritableServiceRequest) ApiIpamServicesCreateRequest { - r.writableServiceRequest = &writableServiceRequest +func (r ApiIpamVlanTranslationPoliciesCreateRequest) VLANTranslationPolicyRequest(vLANTranslationPolicyRequest VLANTranslationPolicyRequest) ApiIpamVlanTranslationPoliciesCreateRequest { + r.vLANTranslationPolicyRequest = &vLANTranslationPolicyRequest return r } -func (r ApiIpamServicesCreateRequest) Execute() (*Service, *http.Response, error) { - return r.ApiService.IpamServicesCreateExecute(r) +func (r ApiIpamVlanTranslationPoliciesCreateRequest) Execute() (*VLANTranslationPolicy, *http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesCreateExecute(r) } /* -IpamServicesCreate Method for IpamServicesCreate +IpamVlanTranslationPoliciesCreate Method for IpamVlanTranslationPoliciesCreate -Post a list of service objects. +Post a list of VLAN translation policy 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 ApiIpamVlanTranslationPoliciesCreateRequest */ -func (a *IpamAPIService) IpamServicesCreate(ctx context.Context) ApiIpamServicesCreateRequest { - return ApiIpamServicesCreateRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesCreate(ctx context.Context) ApiIpamVlanTranslationPoliciesCreateRequest { + return ApiIpamVlanTranslationPoliciesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Service -func (a *IpamAPIService) IpamServicesCreateExecute(r ApiIpamServicesCreateRequest) (*Service, *http.Response, error) { +// @return VLANTranslationPolicy +func (a *IpamAPIService) IpamVlanTranslationPoliciesCreateExecute(r ApiIpamVlanTranslationPoliciesCreateRequest) (*VLANTranslationPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationPolicy ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableServiceRequest == nil { - return localVarReturnValue, nil, reportError("writableServiceRequest is required and must be specified") + if r.vLANTranslationPolicyRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationPolicyRequest is required and must be specified") } // to determine the Content-Type header @@ -28468,7 +36508,7 @@ func (a *IpamAPIService) IpamServicesCreateExecute(r ApiIpamServicesCreateReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableServiceRequest + localVarPostBody = r.vLANTranslationPolicyRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28520,47 +36560,47 @@ func (a *IpamAPIService) IpamServicesCreateExecute(r ApiIpamServicesCreateReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServicesDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamVlanTranslationPoliciesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamServicesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamServicesDestroyExecute(r) +func (r ApiIpamVlanTranslationPoliciesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesDestroyExecute(r) } /* -IpamServicesDestroy Method for IpamServicesDestroy +IpamVlanTranslationPoliciesDestroy Method for IpamVlanTranslationPoliciesDestroy -Delete a service object. +Delete a VLAN translation policy object. - @param ctx 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 VLAN translation policy. + @return ApiIpamVlanTranslationPoliciesDestroyRequest */ -func (a *IpamAPIService) IpamServicesDestroy(ctx context.Context, id int32) ApiIpamServicesDestroyRequest { - return ApiIpamServicesDestroyRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesDestroyRequest { + return ApiIpamVlanTranslationPoliciesDestroyRequest{ 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) IpamVlanTranslationPoliciesDestroyExecute(r ApiIpamVlanTranslationPoliciesDestroyRequest) (*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.IpamVlanTranslationPoliciesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28626,495 +36666,362 @@ func (a *IpamAPIService) IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequ return localVarHTTPResponse, nil } -type ApiIpamServicesListRequest struct { - 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 - 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 +type ApiIpamVlanTranslationPoliciesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 - port *float32 - protocol *IpamServiceTemplatesListProtocolParameter - protocolN *IpamServiceTemplatesListProtocolParameter - q *string - tag *[]string - tagN *[]string - updatedByRequest *string - virtualMachine *[]string - virtualMachineN *[]string - virtualMachineId *[]*int32 - virtualMachineIdN *[]*int32 -} - -func (r ApiIpamServicesListRequest) Created(created []time.Time) ApiIpamServicesListRequest { + 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 + updatedByRequest *string +} + +func (r ApiIpamVlanTranslationPoliciesListRequest) Created(created []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.created = &created return r } -func (r ApiIpamServicesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamServicesListRequest) CreatedGt(createdGt []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) CreatedGt(createdGt []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamServicesListRequest) CreatedGte(createdGte []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) CreatedGte(createdGte []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamServicesListRequest) CreatedLt(createdLt []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) CreatedLt(createdLt []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamServicesListRequest) CreatedLte(createdLte []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) CreatedLte(createdLte []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamServicesListRequest) CreatedN(createdN []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) CreatedN(createdN []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.createdN = &createdN return r } -func (r ApiIpamServicesListRequest) CreatedByRequest(createdByRequest string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) CreatedByRequest(createdByRequest string) ApiIpamVlanTranslationPoliciesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamServicesListRequest) Description(description []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Description(description []string) ApiIpamVlanTranslationPoliciesListRequest { r.description = &description return r } -func (r ApiIpamServicesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamServicesListRequest) DescriptionIc(descriptionIc []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionIc(descriptionIc []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamServicesListRequest) DescriptionIe(descriptionIe []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionIe(descriptionIe []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamServicesListRequest) DescriptionIew(descriptionIew []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionIew(descriptionIew []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamServicesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamServicesListRequest) DescriptionN(descriptionN []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionN(descriptionN []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamServicesListRequest) DescriptionNic(descriptionNic []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionNic(descriptionNic []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamServicesListRequest) DescriptionNie(descriptionNie []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionNie(descriptionNie []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamServicesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamServicesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamVlanTranslationPoliciesListRequest { r.descriptionNisw = &descriptionNisw return r } -// Device (name) -func (r ApiIpamServicesListRequest) Device(device []*string) ApiIpamServicesListRequest { - r.device = &device - return r -} - -// Device (name) -func (r ApiIpamServicesListRequest) DeviceN(deviceN []*string) ApiIpamServicesListRequest { - r.deviceN = &deviceN - return r -} - -// Device (ID) -func (r ApiIpamServicesListRequest) DeviceId(deviceId []*int32) ApiIpamServicesListRequest { - r.deviceId = &deviceId - return r -} - -// Device (ID) -func (r ApiIpamServicesListRequest) DeviceIdN(deviceIdN []*int32) ApiIpamServicesListRequest { - r.deviceIdN = &deviceIdN - return r -} - -func (r ApiIpamServicesListRequest) Id(id []int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Id(id []int32) ApiIpamVlanTranslationPoliciesListRequest { r.id = &id return r } -func (r ApiIpamServicesListRequest) IdEmpty(idEmpty bool) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) IdEmpty(idEmpty bool) ApiIpamVlanTranslationPoliciesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamServicesListRequest) IdGt(idGt []int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) IdGt(idGt []int32) ApiIpamVlanTranslationPoliciesListRequest { r.idGt = &idGt return r } -func (r ApiIpamServicesListRequest) IdGte(idGte []int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) IdGte(idGte []int32) ApiIpamVlanTranslationPoliciesListRequest { r.idGte = &idGte return r } -func (r ApiIpamServicesListRequest) IdLt(idLt []int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) IdLt(idLt []int32) ApiIpamVlanTranslationPoliciesListRequest { r.idLt = &idLt return r } -func (r ApiIpamServicesListRequest) IdLte(idLte []int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) IdLte(idLte []int32) ApiIpamVlanTranslationPoliciesListRequest { r.idLte = &idLte return r } -func (r ApiIpamServicesListRequest) IdN(idN []int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) IdN(idN []int32) ApiIpamVlanTranslationPoliciesListRequest { r.idN = &idN return r } -// IP address -func (r ApiIpamServicesListRequest) IpAddress(ipAddress []string) ApiIpamServicesListRequest { - r.ipAddress = &ipAddress - return r -} - -// IP address -func (r ApiIpamServicesListRequest) IpAddressN(ipAddressN []string) ApiIpamServicesListRequest { - r.ipAddressN = &ipAddressN - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpAddressId(ipAddressId []int32) ApiIpamServicesListRequest { - r.ipAddressId = &ipAddressId - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpAddressIdN(ipAddressIdN []int32) ApiIpamServicesListRequest { - r.ipAddressIdN = &ipAddressIdN - return r -} - -// IP address -func (r ApiIpamServicesListRequest) Ipaddress(ipaddress []string) ApiIpamServicesListRequest { - r.ipaddress = &ipaddress - return r -} - -// IP address -func (r ApiIpamServicesListRequest) IpaddressN(ipaddressN []string) ApiIpamServicesListRequest { - r.ipaddressN = &ipaddressN - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressId(ipaddressId []int32) ApiIpamServicesListRequest { - r.ipaddressId = &ipaddressId - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressIdN(ipaddressIdN []int32) ApiIpamServicesListRequest { - r.ipaddressIdN = &ipaddressIdN - return r -} - -func (r ApiIpamServicesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamServicesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamServicesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamServicesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamServicesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamServicesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamServicesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamVlanTranslationPoliciesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamServicesListRequest) Limit(limit int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Limit(limit int32) ApiIpamVlanTranslationPoliciesListRequest { r.limit = &limit return r } -func (r ApiIpamServicesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanTranslationPoliciesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamServicesListRequest) Name(name []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Name(name []string) ApiIpamVlanTranslationPoliciesListRequest { r.name = &name return r } -func (r ApiIpamServicesListRequest) NameEmpty(nameEmpty bool) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameEmpty(nameEmpty bool) ApiIpamVlanTranslationPoliciesListRequest { r.nameEmpty = &nameEmpty return r } -func (r ApiIpamServicesListRequest) NameIc(nameIc []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameIc(nameIc []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameIc = &nameIc return r } -func (r ApiIpamServicesListRequest) NameIe(nameIe []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameIe(nameIe []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameIe = &nameIe return r } -func (r ApiIpamServicesListRequest) NameIew(nameIew []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameIew(nameIew []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameIew = &nameIew return r } -func (r ApiIpamServicesListRequest) NameIsw(nameIsw []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameIsw(nameIsw []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameIsw = &nameIsw return r } -func (r ApiIpamServicesListRequest) NameN(nameN []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameN(nameN []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameN = &nameN return r } -func (r ApiIpamServicesListRequest) NameNic(nameNic []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameNic(nameNic []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameNic = &nameNic return r } -func (r ApiIpamServicesListRequest) NameNie(nameNie []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameNie(nameNie []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameNie = &nameNie return r } -func (r ApiIpamServicesListRequest) NameNiew(nameNiew []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameNiew(nameNiew []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameNiew = &nameNiew return r } -func (r ApiIpamServicesListRequest) NameNisw(nameNisw []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) NameNisw(nameNisw []string) ApiIpamVlanTranslationPoliciesListRequest { r.nameNisw = &nameNisw return r } // The initial index from which to return the results. -func (r ApiIpamServicesListRequest) Offset(offset int32) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Offset(offset int32) ApiIpamVlanTranslationPoliciesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiIpamServicesListRequest) Ordering(ordering string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Ordering(ordering string) ApiIpamVlanTranslationPoliciesListRequest { r.ordering = &ordering return r } -func (r ApiIpamServicesListRequest) Port(port float32) ApiIpamServicesListRequest { - r.port = &port - return r -} - -// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP -func (r ApiIpamServicesListRequest) Protocol(protocol IpamServiceTemplatesListProtocolParameter) ApiIpamServicesListRequest { - r.protocol = &protocol - return r -} - -// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP -func (r ApiIpamServicesListRequest) ProtocolN(protocolN IpamServiceTemplatesListProtocolParameter) ApiIpamServicesListRequest { - r.protocolN = &protocolN - return r -} - // Search -func (r ApiIpamServicesListRequest) Q(q string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Q(q string) ApiIpamVlanTranslationPoliciesListRequest { r.q = &q return r } -func (r ApiIpamServicesListRequest) Tag(tag []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) Tag(tag []string) ApiIpamVlanTranslationPoliciesListRequest { r.tag = &tag return r } -func (r ApiIpamServicesListRequest) TagN(tagN []string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) TagN(tagN []string) ApiIpamVlanTranslationPoliciesListRequest { r.tagN = &tagN return r } -func (r ApiIpamServicesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamServicesListRequest { +func (r ApiIpamVlanTranslationPoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamVlanTranslationPoliciesListRequest { r.updatedByRequest = &updatedByRequest return r } -// Virtual machine (name) -func (r ApiIpamServicesListRequest) VirtualMachine(virtualMachine []string) ApiIpamServicesListRequest { - r.virtualMachine = &virtualMachine - return r -} - -// Virtual machine (name) -func (r ApiIpamServicesListRequest) VirtualMachineN(virtualMachineN []string) ApiIpamServicesListRequest { - r.virtualMachineN = &virtualMachineN - return r -} - -// Virtual machine (ID) -func (r ApiIpamServicesListRequest) VirtualMachineId(virtualMachineId []*int32) ApiIpamServicesListRequest { - r.virtualMachineId = &virtualMachineId - return r -} - -// Virtual machine (ID) -func (r ApiIpamServicesListRequest) VirtualMachineIdN(virtualMachineIdN []*int32) ApiIpamServicesListRequest { - r.virtualMachineIdN = &virtualMachineIdN - return r -} - -func (r ApiIpamServicesListRequest) Execute() (*PaginatedServiceList, *http.Response, error) { - return r.ApiService.IpamServicesListExecute(r) +func (r ApiIpamVlanTranslationPoliciesListRequest) Execute() (*PaginatedVLANTranslationPolicyList, *http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesListExecute(r) } /* -IpamServicesList Method for IpamServicesList +IpamVlanTranslationPoliciesList Method for IpamVlanTranslationPoliciesList -Get a list of service objects. +Get a list of VLAN translation policy 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 ApiIpamVlanTranslationPoliciesListRequest */ -func (a *IpamAPIService) IpamServicesList(ctx context.Context) ApiIpamServicesListRequest { - return ApiIpamServicesListRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesList(ctx context.Context) ApiIpamVlanTranslationPoliciesListRequest { + return ApiIpamVlanTranslationPoliciesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedServiceList -func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (*PaginatedServiceList, *http.Response, error) { +// @return PaginatedVLANTranslationPolicyList +func (a *IpamAPIService) IpamVlanTranslationPoliciesListExecute(r ApiIpamVlanTranslationPoliciesListRequest) (*PaginatedVLANTranslationPolicyList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedServiceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVLANTranslationPolicyList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -29125,10 +37032,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -29136,10 +37043,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -29147,10 +37054,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -29158,10 +37065,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -29169,10 +37076,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -29180,10 +37087,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -29191,38 +37098,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -29230,10 +37137,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -29241,10 +37148,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -29252,10 +37159,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -29263,10 +37170,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -29274,10 +37181,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -29285,10 +37192,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -29296,10 +37203,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -29307,54 +37214,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.device != nil { - t := *r.device - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - 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).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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -29362,24 +37225,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -29387,10 +37250,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -29398,10 +37261,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -29409,10 +37272,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -29420,98 +37283,10 @@ 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.ipAddress != nil { - t := *r.ipAddress - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address", t, "multi") - } - } - if r.ipAddressN != nil { - t := *r.ipAddressN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address__n", t, "multi") - } - } - if r.ipAddressId != nil { - t := *r.ipAddressId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id", t, "multi") - } - } - if r.ipAddressIdN != nil { - t := *r.ipAddressIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", t, "multi") - } - } - if r.ipaddress != nil { - t := *r.ipaddress - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", t, "multi") - } - } - if r.ipaddressN != nil { - t := *r.ipaddressN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", t, "multi") - } - } - if r.ipaddressId != nil { - t := *r.ipaddressId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", t, "multi") - } - } - if r.ipaddressIdN != nil { - t := *r.ipaddressIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -29519,10 +37294,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -29530,10 +37305,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -29541,10 +37316,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -29552,10 +37327,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -29563,10 +37338,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -29574,10 +37349,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -29585,41 +37360,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -29627,10 +37402,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -29638,10 +37413,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -29649,10 +37424,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -29660,10 +37435,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -29671,10 +37446,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -29682,10 +37457,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -29693,10 +37468,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -29704,39 +37479,30 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.port != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "port", r.port, "") - } - if r.protocol != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "") - } - if r.protocolN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", r.protocolN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -29744,58 +37510,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.virtualMachine != nil { - t := *r.virtualMachine - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") - } - } - if r.virtualMachineN != nil { - t := *r.virtualMachineN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi") - } - } - if r.virtualMachineId != nil { - t := *r.virtualMachineId - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") - } - } - if r.virtualMachineIdN != nil { - t := *r.virtualMachineIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29865,56 +37587,55 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServicesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedWritableServiceRequest *PatchedWritableServiceRequest +type ApiIpamVlanTranslationPoliciesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedVLANTranslationPolicyRequest *PatchedVLANTranslationPolicyRequest } -func (r ApiIpamServicesPartialUpdateRequest) PatchedWritableServiceRequest(patchedWritableServiceRequest PatchedWritableServiceRequest) ApiIpamServicesPartialUpdateRequest { - r.patchedWritableServiceRequest = &patchedWritableServiceRequest +func (r ApiIpamVlanTranslationPoliciesPartialUpdateRequest) PatchedVLANTranslationPolicyRequest(patchedVLANTranslationPolicyRequest PatchedVLANTranslationPolicyRequest) ApiIpamVlanTranslationPoliciesPartialUpdateRequest { + r.patchedVLANTranslationPolicyRequest = &patchedVLANTranslationPolicyRequest return r } -func (r ApiIpamServicesPartialUpdateRequest) Execute() (*Service, *http.Response, error) { - return r.ApiService.IpamServicesPartialUpdateExecute(r) +func (r ApiIpamVlanTranslationPoliciesPartialUpdateRequest) Execute() (*VLANTranslationPolicy, *http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesPartialUpdateExecute(r) } /* -IpamServicesPartialUpdate Method for IpamServicesPartialUpdate +IpamVlanTranslationPoliciesPartialUpdate Method for IpamVlanTranslationPoliciesPartialUpdate -Patch a service object. +Patch a VLAN translation policy object. - @param ctx 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 VLAN translation policy. + @return ApiIpamVlanTranslationPoliciesPartialUpdateRequest */ -func (a *IpamAPIService) IpamServicesPartialUpdate(ctx context.Context, id int32) ApiIpamServicesPartialUpdateRequest { - return ApiIpamServicesPartialUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesPartialUpdateRequest { + return ApiIpamVlanTranslationPoliciesPartialUpdateRequest{ 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 VLANTranslationPolicy +func (a *IpamAPIService) IpamVlanTranslationPoliciesPartialUpdateExecute(r ApiIpamVlanTranslationPoliciesPartialUpdateRequest) (*VLANTranslationPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationPolicy ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -29939,7 +37660,7 @@ func (a *IpamAPIService) IpamServicesPartialUpdateExecute(r ApiIpamServicesParti localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableServiceRequest + localVarPostBody = r.patchedVLANTranslationPolicyRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -29991,50 +37712,49 @@ func (a *IpamAPIService) IpamServicesPartialUpdateExecute(r ApiIpamServicesParti return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServicesRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamVlanTranslationPoliciesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamServicesRetrieveRequest) Execute() (*Service, *http.Response, error) { - return r.ApiService.IpamServicesRetrieveExecute(r) +func (r ApiIpamVlanTranslationPoliciesRetrieveRequest) Execute() (*VLANTranslationPolicy, *http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesRetrieveExecute(r) } /* -IpamServicesRetrieve Method for IpamServicesRetrieve +IpamVlanTranslationPoliciesRetrieve Method for IpamVlanTranslationPoliciesRetrieve -Get a service object. +Get a VLAN translation policy object. - @param ctx 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 VLAN translation policy. + @return ApiIpamVlanTranslationPoliciesRetrieveRequest */ -func (a *IpamAPIService) IpamServicesRetrieve(ctx context.Context, id int32) ApiIpamServicesRetrieveRequest { - return ApiIpamServicesRetrieveRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesRetrieveRequest { + return ApiIpamVlanTranslationPoliciesRetrieveRequest{ 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 VLANTranslationPolicy +func (a *IpamAPIService) IpamVlanTranslationPoliciesRetrieveExecute(r ApiIpamVlanTranslationPoliciesRetrieveRequest) (*VLANTranslationPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationPolicy ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -30109,63 +37829,62 @@ func (a *IpamAPIService) IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamServicesUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - writableServiceRequest *WritableServiceRequest +type ApiIpamVlanTranslationPoliciesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + vLANTranslationPolicyRequest *VLANTranslationPolicyRequest } -func (r ApiIpamServicesUpdateRequest) WritableServiceRequest(writableServiceRequest WritableServiceRequest) ApiIpamServicesUpdateRequest { - r.writableServiceRequest = &writableServiceRequest +func (r ApiIpamVlanTranslationPoliciesUpdateRequest) VLANTranslationPolicyRequest(vLANTranslationPolicyRequest VLANTranslationPolicyRequest) ApiIpamVlanTranslationPoliciesUpdateRequest { + r.vLANTranslationPolicyRequest = &vLANTranslationPolicyRequest return r } -func (r ApiIpamServicesUpdateRequest) Execute() (*Service, *http.Response, error) { - return r.ApiService.IpamServicesUpdateExecute(r) +func (r ApiIpamVlanTranslationPoliciesUpdateRequest) Execute() (*VLANTranslationPolicy, *http.Response, error) { + return r.ApiService.IpamVlanTranslationPoliciesUpdateExecute(r) } /* -IpamServicesUpdate Method for IpamServicesUpdate +IpamVlanTranslationPoliciesUpdate Method for IpamVlanTranslationPoliciesUpdate -Put a service object. +Put a VLAN translation policy object. - @param ctx 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 VLAN translation policy. + @return ApiIpamVlanTranslationPoliciesUpdateRequest */ -func (a *IpamAPIService) IpamServicesUpdate(ctx context.Context, id int32) ApiIpamServicesUpdateRequest { - return ApiIpamServicesUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationPoliciesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationPoliciesUpdateRequest { + return ApiIpamVlanTranslationPoliciesUpdateRequest{ 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 VLANTranslationPolicy +func (a *IpamAPIService) IpamVlanTranslationPoliciesUpdateExecute(r ApiIpamVlanTranslationPoliciesUpdateRequest) (*VLANTranslationPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationPolicy ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationPoliciesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/services/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-policies/{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.writableServiceRequest == nil { - return localVarReturnValue, nil, reportError("writableServiceRequest is required and must be specified") + if r.vLANTranslationPolicyRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationPolicyRequest is required and must be specified") } // to determine the Content-Type header @@ -30186,7 +37905,7 @@ func (a *IpamAPIService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateReques localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableServiceRequest + localVarPostBody = r.vLANTranslationPolicyRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -30238,303 +37957,56 @@ func (a *IpamAPIService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamVlanGroupsAvailableVlansCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - vLANRequest *[]VLANRequest +type ApiIpamVlanTranslationRulesBulkDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationRuleRequest *[]VLANTranslationRuleRequest } -func (r ApiIpamVlanGroupsAvailableVlansCreateRequest) VLANRequest(vLANRequest []VLANRequest) ApiIpamVlanGroupsAvailableVlansCreateRequest { - r.vLANRequest = &vLANRequest +func (r ApiIpamVlanTranslationRulesBulkDestroyRequest) VLANTranslationRuleRequest(vLANTranslationRuleRequest []VLANTranslationRuleRequest) ApiIpamVlanTranslationRulesBulkDestroyRequest { + r.vLANTranslationRuleRequest = &vLANTranslationRuleRequest return r } -func (r ApiIpamVlanGroupsAvailableVlansCreateRequest) Execute() ([]VLAN, *http.Response, error) { - return r.ApiService.IpamVlanGroupsAvailableVlansCreateExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreate(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansCreateRequest { - return ApiIpamVlanGroupsAvailableVlansCreateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return []VLAN -func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlanGroupsAvailableVlansCreateRequest) ([]VLAN, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLAN - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/available-vlans/" - 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.vLANRequest == nil { - return localVarReturnValue, nil, reportError("vLANRequest 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.vLANRequest - 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 ApiIpamVlanGroupsAvailableVlansListRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 -} - -func (r ApiIpamVlanGroupsAvailableVlansListRequest) Execute() ([]AvailableVLAN, *http.Response, error) { - return r.ApiService.IpamVlanGroupsAvailableVlansListExecute(r) +func (r ApiIpamVlanTranslationRulesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesBulkDestroyExecute(r) } /* -IpamVlanGroupsAvailableVlansList Method for IpamVlanGroupsAvailableVlansList +IpamVlanTranslationRulesBulkDestroy Method for IpamVlanTranslationRulesBulkDestroy -Get a VLAN object. +Delete a list of VLAN translation rule objects. - @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(). + @return ApiIpamVlanTranslationRulesBulkDestroyRequest */ -func (a *IpamAPIService) IpamVlanGroupsAvailableVlansList(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansListRequest { - return ApiIpamVlanGroupsAvailableVlansListRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesBulkDestroy(ctx context.Context) ApiIpamVlanTranslationRulesBulkDestroyRequest { + return ApiIpamVlanTranslationRulesBulkDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return []AvailableVLAN -func (a *IpamAPIService) IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGroupsAvailableVlansListRequest) ([]AvailableVLAN, *http.Response, error) { +func (a *IpamAPIService) IpamVlanTranslationRulesBulkDestroyExecute(r ApiIpamVlanTranslationRulesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableVLAN + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/available-vlans/" - 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 ApiIpamVlanGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - vLANGroupRequest *[]VLANGroupRequest -} - -func (r ApiIpamVlanGroupsBulkDestroyRequest) VLANGroupRequest(vLANGroupRequest []VLANGroupRequest) ApiIpamVlanGroupsBulkDestroyRequest { - r.vLANGroupRequest = &vLANGroupRequest - return r -} - -func (r ApiIpamVlanGroupsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamVlanGroupsBulkDestroyExecute(r) -} - -/* -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 -*/ -func (a *IpamAPIService) IpamVlanGroupsBulkDestroy(ctx context.Context) ApiIpamVlanGroupsBulkDestroyRequest { - return ApiIpamVlanGroupsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *IpamAPIService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBulkDestroyRequest) (*http.Response, error) { - var ( - 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.IpamVlanTranslationRulesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.vLANGroupRequest == nil { - return nil, reportError("vLANGroupRequest is required and must be specified") + if r.vLANTranslationRuleRequest == nil { + return nil, reportError("vLANTranslationRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -30555,7 +38027,7 @@ func (a *IpamAPIService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBul localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.vLANGroupRequest + localVarPostBody = r.vLANTranslationRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -30598,59 +38070,58 @@ func (a *IpamAPIService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBul return localVarHTTPResponse, nil } -type ApiIpamVlanGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - vLANGroupRequest *[]VLANGroupRequest +type ApiIpamVlanTranslationRulesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationRuleRequest *[]VLANTranslationRuleRequest } -func (r ApiIpamVlanGroupsBulkPartialUpdateRequest) VLANGroupRequest(vLANGroupRequest []VLANGroupRequest) ApiIpamVlanGroupsBulkPartialUpdateRequest { - r.vLANGroupRequest = &vLANGroupRequest +func (r ApiIpamVlanTranslationRulesBulkPartialUpdateRequest) VLANTranslationRuleRequest(vLANTranslationRuleRequest []VLANTranslationRuleRequest) ApiIpamVlanTranslationRulesBulkPartialUpdateRequest { + r.vLANTranslationRuleRequest = &vLANTranslationRuleRequest return r } -func (r ApiIpamVlanGroupsBulkPartialUpdateRequest) Execute() ([]VLANGroup, *http.Response, error) { - return r.ApiService.IpamVlanGroupsBulkPartialUpdateExecute(r) +func (r ApiIpamVlanTranslationRulesBulkPartialUpdateRequest) Execute() ([]VLANTranslationRule, *http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesBulkPartialUpdateExecute(r) } /* -IpamVlanGroupsBulkPartialUpdate Method for IpamVlanGroupsBulkPartialUpdate +IpamVlanTranslationRulesBulkPartialUpdate Method for IpamVlanTranslationRulesBulkPartialUpdate -Patch a list of VLAN group objects. +Patch a list of VLAN translation rule 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 ApiIpamVlanTranslationRulesBulkPartialUpdateRequest */ -func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdate(ctx context.Context) ApiIpamVlanGroupsBulkPartialUpdateRequest { - return ApiIpamVlanGroupsBulkPartialUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesBulkPartialUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkPartialUpdateRequest { + return ApiIpamVlanTranslationRulesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLANGroup -func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGroupsBulkPartialUpdateRequest) ([]VLANGroup, *http.Response, error) { +// @return []VLANTranslationRule +func (a *IpamAPIService) IpamVlanTranslationRulesBulkPartialUpdateExecute(r ApiIpamVlanTranslationRulesBulkPartialUpdateRequest) ([]VLANTranslationRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLANGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANTranslationRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.vLANGroupRequest == nil { - return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") + if r.vLANTranslationRuleRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -30671,7 +38142,7 @@ func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGro localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.vLANGroupRequest + localVarPostBody = r.vLANTranslationRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -30723,59 +38194,58 @@ func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGro return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamVlanGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - vLANGroupRequest *[]VLANGroupRequest +type ApiIpamVlanTranslationRulesBulkUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationRuleRequest *[]VLANTranslationRuleRequest } -func (r ApiIpamVlanGroupsBulkUpdateRequest) VLANGroupRequest(vLANGroupRequest []VLANGroupRequest) ApiIpamVlanGroupsBulkUpdateRequest { - r.vLANGroupRequest = &vLANGroupRequest +func (r ApiIpamVlanTranslationRulesBulkUpdateRequest) VLANTranslationRuleRequest(vLANTranslationRuleRequest []VLANTranslationRuleRequest) ApiIpamVlanTranslationRulesBulkUpdateRequest { + r.vLANTranslationRuleRequest = &vLANTranslationRuleRequest return r } -func (r ApiIpamVlanGroupsBulkUpdateRequest) Execute() ([]VLANGroup, *http.Response, error) { - return r.ApiService.IpamVlanGroupsBulkUpdateExecute(r) +func (r ApiIpamVlanTranslationRulesBulkUpdateRequest) Execute() ([]VLANTranslationRule, *http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesBulkUpdateExecute(r) } /* -IpamVlanGroupsBulkUpdate Method for IpamVlanGroupsBulkUpdate +IpamVlanTranslationRulesBulkUpdate Method for IpamVlanTranslationRulesBulkUpdate -Put a list of VLAN group objects. +Put a list of VLAN translation rule 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 ApiIpamVlanTranslationRulesBulkUpdateRequest */ -func (a *IpamAPIService) IpamVlanGroupsBulkUpdate(ctx context.Context) ApiIpamVlanGroupsBulkUpdateRequest { - return ApiIpamVlanGroupsBulkUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesBulkUpdate(ctx context.Context) ApiIpamVlanTranslationRulesBulkUpdateRequest { + return ApiIpamVlanTranslationRulesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLANGroup -func (a *IpamAPIService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulkUpdateRequest) ([]VLANGroup, *http.Response, error) { +// @return []VLANTranslationRule +func (a *IpamAPIService) IpamVlanTranslationRulesBulkUpdateExecute(r ApiIpamVlanTranslationRulesBulkUpdateRequest) ([]VLANTranslationRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLANGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANTranslationRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.vLANGroupRequest == nil { - return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") + if r.vLANTranslationRuleRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -30796,7 +38266,7 @@ func (a *IpamAPIService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulk localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.vLANGroupRequest + localVarPostBody = r.vLANTranslationRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -30848,59 +38318,58 @@ func (a *IpamAPIService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulk return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamVlanGroupsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService - vLANGroupRequest *VLANGroupRequest +type ApiIpamVlanTranslationRulesCreateRequest struct { + ctx context.Context + ApiService IpamAPI + vLANTranslationRuleRequest *VLANTranslationRuleRequest } -func (r ApiIpamVlanGroupsCreateRequest) VLANGroupRequest(vLANGroupRequest VLANGroupRequest) ApiIpamVlanGroupsCreateRequest { - r.vLANGroupRequest = &vLANGroupRequest +func (r ApiIpamVlanTranslationRulesCreateRequest) VLANTranslationRuleRequest(vLANTranslationRuleRequest VLANTranslationRuleRequest) ApiIpamVlanTranslationRulesCreateRequest { + r.vLANTranslationRuleRequest = &vLANTranslationRuleRequest return r } -func (r ApiIpamVlanGroupsCreateRequest) Execute() (*VLANGroup, *http.Response, error) { - return r.ApiService.IpamVlanGroupsCreateExecute(r) +func (r ApiIpamVlanTranslationRulesCreateRequest) Execute() (*VLANTranslationRule, *http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesCreateExecute(r) } /* -IpamVlanGroupsCreate Method for IpamVlanGroupsCreate +IpamVlanTranslationRulesCreate Method for IpamVlanTranslationRulesCreate -Post a list of VLAN group objects. +Post a list of VLAN translation rule 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 ApiIpamVlanTranslationRulesCreateRequest */ -func (a *IpamAPIService) IpamVlanGroupsCreate(ctx context.Context) ApiIpamVlanGroupsCreateRequest { - return ApiIpamVlanGroupsCreateRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesCreate(ctx context.Context) ApiIpamVlanTranslationRulesCreateRequest { + return ApiIpamVlanTranslationRulesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VLANGroup -func (a *IpamAPIService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRequest) (*VLANGroup, *http.Response, error) { +// @return VLANTranslationRule +func (a *IpamAPIService) IpamVlanTranslationRulesCreateExecute(r ApiIpamVlanTranslationRulesCreateRequest) (*VLANTranslationRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.vLANGroupRequest == nil { - return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") + if r.vLANTranslationRuleRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -30921,7 +38390,7 @@ func (a *IpamAPIService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.vLANGroupRequest + localVarPostBody = r.vLANTranslationRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -30973,47 +38442,47 @@ func (a *IpamAPIService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamVlanGroupsDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamVlanTranslationRulesDestroyRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamVlanGroupsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.IpamVlanGroupsDestroyExecute(r) +func (r ApiIpamVlanTranslationRulesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesDestroyExecute(r) } /* -IpamVlanGroupsDestroy Method for IpamVlanGroupsDestroy +IpamVlanTranslationRulesDestroy Method for IpamVlanTranslationRulesDestroy -Delete a VLAN group object. +Delete a VLAN translation rule object. - @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesDestroyRequest */ -func (a *IpamAPIService) IpamVlanGroupsDestroy(ctx context.Context, id int32) ApiIpamVlanGroupsDestroyRequest { - return ApiIpamVlanGroupsDestroyRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesDestroy(ctx context.Context, id int32) ApiIpamVlanTranslationRulesDestroyRequest { + return ApiIpamVlanTranslationRulesDestroyRequest{ 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) IpamVlanTranslationRulesDestroyExecute(r ApiIpamVlanTranslationRulesDestroyRequest) (*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.IpamVlanTranslationRulesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -31079,644 +38548,422 @@ func (a *IpamAPIService) IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroy return localVarHTTPResponse, nil } -type ApiIpamVlanGroupsListRequest struct { - ctx context.Context - ApiService *IpamAPIService - cluster *int32 - clusterGroup *int32 - clustergroup *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 - 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 +type ApiIpamVlanTranslationRulesListRequest struct { + ctx context.Context + ApiService IpamAPI + 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 + localVid *[]int32 + localVidEmpty *bool + localVidGt *[]int32 + localVidGte *[]int32 + localVidLt *[]int32 + localVidLte *[]int32 + localVidN *[]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 *int32 - sitegroup *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 -} - -func (r ApiIpamVlanGroupsListRequest) Cluster(cluster int32) ApiIpamVlanGroupsListRequest { - r.cluster = &cluster - return r -} - -func (r ApiIpamVlanGroupsListRequest) ClusterGroup(clusterGroup int32) ApiIpamVlanGroupsListRequest { - r.clusterGroup = &clusterGroup - return r -} - -func (r ApiIpamVlanGroupsListRequest) Clustergroup(clustergroup int32) ApiIpamVlanGroupsListRequest { - r.clustergroup = &clustergroup - return r -} - -func (r ApiIpamVlanGroupsListRequest) Created(created []time.Time) ApiIpamVlanGroupsListRequest { + offset *int32 + ordering *string + policy *[]string + policyN *[]string + policyId *[]int32 + policyIdN *[]int32 + q *string + remoteVid *[]int32 + remoteVidEmpty *bool + remoteVidGt *[]int32 + remoteVidGte *[]int32 + remoteVidLt *[]int32 + remoteVidLte *[]int32 + remoteVidN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string +} + +func (r ApiIpamVlanTranslationRulesListRequest) Created(created []time.Time) ApiIpamVlanTranslationRulesListRequest { r.created = &created return r } -func (r ApiIpamVlanGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamVlanTranslationRulesListRequest { r.createdEmpty = &createdEmpty return r } -func (r ApiIpamVlanGroupsListRequest) CreatedGt(createdGt []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) CreatedGt(createdGt []time.Time) ApiIpamVlanTranslationRulesListRequest { r.createdGt = &createdGt return r } -func (r ApiIpamVlanGroupsListRequest) CreatedGte(createdGte []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) CreatedGte(createdGte []time.Time) ApiIpamVlanTranslationRulesListRequest { r.createdGte = &createdGte return r } -func (r ApiIpamVlanGroupsListRequest) CreatedLt(createdLt []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) CreatedLt(createdLt []time.Time) ApiIpamVlanTranslationRulesListRequest { r.createdLt = &createdLt return r } -func (r ApiIpamVlanGroupsListRequest) CreatedLte(createdLte []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) CreatedLte(createdLte []time.Time) ApiIpamVlanTranslationRulesListRequest { r.createdLte = &createdLte return r } -func (r ApiIpamVlanGroupsListRequest) CreatedN(createdN []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) CreatedN(createdN []time.Time) ApiIpamVlanTranslationRulesListRequest { r.createdN = &createdN return r } -func (r ApiIpamVlanGroupsListRequest) CreatedByRequest(createdByRequest string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) CreatedByRequest(createdByRequest string) ApiIpamVlanTranslationRulesListRequest { r.createdByRequest = &createdByRequest return r } -func (r ApiIpamVlanGroupsListRequest) Description(description []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) Description(description []string) ApiIpamVlanTranslationRulesListRequest { r.description = &description return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiIpamVlanTranslationRulesListRequest { r.descriptionEmpty = &descriptionEmpty return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionIc(descriptionIc []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionIc(descriptionIc []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionIc = &descriptionIc return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionIe(descriptionIe []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionIe(descriptionIe []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionIe = &descriptionIe return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionIew(descriptionIew []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionIew(descriptionIew []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionIew = &descriptionIew return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionIsw(descriptionIsw []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionIsw = &descriptionIsw return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionN(descriptionN []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionN(descriptionN []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionN = &descriptionN return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionNic(descriptionNic []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionNic(descriptionNic []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionNic = &descriptionNic return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionNie(descriptionNie []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionNie(descriptionNie []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionNie = &descriptionNie return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionNiew(descriptionNiew []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionNiew = &descriptionNiew return r } -func (r ApiIpamVlanGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) DescriptionNisw(descriptionNisw []string) ApiIpamVlanTranslationRulesListRequest { r.descriptionNisw = &descriptionNisw return r } -func (r ApiIpamVlanGroupsListRequest) Id(id []int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) Id(id []int32) ApiIpamVlanTranslationRulesListRequest { r.id = &id return r } -func (r ApiIpamVlanGroupsListRequest) IdEmpty(idEmpty bool) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) IdEmpty(idEmpty bool) ApiIpamVlanTranslationRulesListRequest { r.idEmpty = &idEmpty return r } -func (r ApiIpamVlanGroupsListRequest) IdGt(idGt []int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) IdGt(idGt []int32) ApiIpamVlanTranslationRulesListRequest { r.idGt = &idGt return r } -func (r ApiIpamVlanGroupsListRequest) IdGte(idGte []int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) IdGte(idGte []int32) ApiIpamVlanTranslationRulesListRequest { r.idGte = &idGte return r } -func (r ApiIpamVlanGroupsListRequest) IdLt(idLt []int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) IdLt(idLt []int32) ApiIpamVlanTranslationRulesListRequest { r.idLt = &idLt return r } -func (r ApiIpamVlanGroupsListRequest) IdLte(idLte []int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) IdLte(idLte []int32) ApiIpamVlanTranslationRulesListRequest { r.idLte = &idLte return r } -func (r ApiIpamVlanGroupsListRequest) IdN(idN []int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) IdN(idN []int32) ApiIpamVlanTranslationRulesListRequest { r.idN = &idN return r } -func (r ApiIpamVlanGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamVlanTranslationRulesListRequest { r.lastUpdated = &lastUpdated return r } -func (r ApiIpamVlanGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamVlanTranslationRulesListRequest { r.lastUpdatedEmpty = &lastUpdatedEmpty return r } -func (r ApiIpamVlanGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamVlanTranslationRulesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r } -func (r ApiIpamVlanGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiIpamVlanTranslationRulesListRequest { r.lastUpdatedGte = &lastUpdatedGte return r } -func (r ApiIpamVlanGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiIpamVlanTranslationRulesListRequest { r.lastUpdatedLt = &lastUpdatedLt return r } -func (r ApiIpamVlanGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiIpamVlanTranslationRulesListRequest { r.lastUpdatedLte = &lastUpdatedLte return r } -func (r ApiIpamVlanGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiIpamVlanTranslationRulesListRequest { r.lastUpdatedN = &lastUpdatedN return r } // Number of results to return per page. -func (r ApiIpamVlanGroupsListRequest) Limit(limit int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) Limit(limit int32) ApiIpamVlanTranslationRulesListRequest { r.limit = &limit return r } -func (r ApiIpamVlanGroupsListRequest) Location(location int32) ApiIpamVlanGroupsListRequest { - r.location = &location +func (r ApiIpamVlanTranslationRulesListRequest) LocalVid(localVid []int32) ApiIpamVlanTranslationRulesListRequest { + r.localVid = &localVid return r } -func (r ApiIpamVlanGroupsListRequest) MaxVid(maxVid []int32) ApiIpamVlanGroupsListRequest { - r.maxVid = &maxVid +func (r ApiIpamVlanTranslationRulesListRequest) LocalVidEmpty(localVidEmpty bool) ApiIpamVlanTranslationRulesListRequest { + r.localVidEmpty = &localVidEmpty return r } -func (r ApiIpamVlanGroupsListRequest) MaxVidEmpty(maxVidEmpty bool) ApiIpamVlanGroupsListRequest { - r.maxVidEmpty = &maxVidEmpty +func (r ApiIpamVlanTranslationRulesListRequest) LocalVidGt(localVidGt []int32) ApiIpamVlanTranslationRulesListRequest { + r.localVidGt = &localVidGt return r } -func (r ApiIpamVlanGroupsListRequest) MaxVidGt(maxVidGt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGt = &maxVidGt +func (r ApiIpamVlanTranslationRulesListRequest) LocalVidGte(localVidGte []int32) ApiIpamVlanTranslationRulesListRequest { + r.localVidGte = &localVidGte return r } -func (r ApiIpamVlanGroupsListRequest) MaxVidGte(maxVidGte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGte = &maxVidGte +func (r ApiIpamVlanTranslationRulesListRequest) LocalVidLt(localVidLt []int32) ApiIpamVlanTranslationRulesListRequest { + r.localVidLt = &localVidLt return r } -func (r ApiIpamVlanGroupsListRequest) MaxVidLt(maxVidLt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLt = &maxVidLt +func (r ApiIpamVlanTranslationRulesListRequest) LocalVidLte(localVidLte []int32) ApiIpamVlanTranslationRulesListRequest { + r.localVidLte = &localVidLte return r } -func (r ApiIpamVlanGroupsListRequest) MaxVidLte(maxVidLte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLte = &maxVidLte +func (r ApiIpamVlanTranslationRulesListRequest) LocalVidN(localVidN []int32) ApiIpamVlanTranslationRulesListRequest { + r.localVidN = &localVidN return r } -func (r ApiIpamVlanGroupsListRequest) MaxVidN(maxVidN []int32) ApiIpamVlanGroupsListRequest { - r.maxVidN = &maxVidN - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVid(minVid []int32) ApiIpamVlanGroupsListRequest { - r.minVid = &minVid - 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 -} - -func (r ApiIpamVlanGroupsListRequest) MinVidGte(minVidGte []int32) ApiIpamVlanGroupsListRequest { - r.minVidGte = &minVidGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLt(minVidLt []int32) ApiIpamVlanGroupsListRequest { - r.minVidLt = &minVidLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLte(minVidLte []int32) ApiIpamVlanGroupsListRequest { - r.minVidLte = &minVidLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidN(minVidN []int32) ApiIpamVlanGroupsListRequest { - r.minVidN = &minVidN - return r -} - -func (r ApiIpamVlanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanTranslationRulesListRequest { r.modifiedByRequest = &modifiedByRequest return r } -func (r ApiIpamVlanGroupsListRequest) Name(name []string) ApiIpamVlanGroupsListRequest { - r.name = &name - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameEmpty(nameEmpty bool) ApiIpamVlanGroupsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameIc(nameIc []string) ApiIpamVlanGroupsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameIe(nameIe []string) ApiIpamVlanGroupsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameIew(nameIew []string) ApiIpamVlanGroupsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameIsw(nameIsw []string) ApiIpamVlanGroupsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameN(nameN []string) ApiIpamVlanGroupsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameNic(nameNic []string) ApiIpamVlanGroupsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameNie(nameNie []string) ApiIpamVlanGroupsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameNiew(nameNiew []string) ApiIpamVlanGroupsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiIpamVlanGroupsListRequest) NameNisw(nameNisw []string) ApiIpamVlanGroupsListRequest { - r.nameNisw = &nameNisw - return r -} - // The initial index from which to return the results. -func (r ApiIpamVlanGroupsListRequest) Offset(offset int32) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) Offset(offset int32) ApiIpamVlanTranslationRulesListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiIpamVlanGroupsListRequest) Ordering(ordering string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) Ordering(ordering string) ApiIpamVlanTranslationRulesListRequest { r.ordering = &ordering return r } -// Search -func (r ApiIpamVlanGroupsListRequest) Q(q string) ApiIpamVlanGroupsListRequest { - r.q = &q +// VLAN Translation Policy (name) +func (r ApiIpamVlanTranslationRulesListRequest) Policy(policy []string) ApiIpamVlanTranslationRulesListRequest { + r.policy = &policy return r } -func (r ApiIpamVlanGroupsListRequest) Rack(rack int32) ApiIpamVlanGroupsListRequest { - r.rack = &rack +// VLAN Translation Policy (name) +func (r ApiIpamVlanTranslationRulesListRequest) PolicyN(policyN []string) ApiIpamVlanTranslationRulesListRequest { + r.policyN = &policyN return r } -func (r ApiIpamVlanGroupsListRequest) Region(region int32) ApiIpamVlanGroupsListRequest { - r.region = ®ion +// VLAN Translation Policy (ID) +func (r ApiIpamVlanTranslationRulesListRequest) PolicyId(policyId []int32) ApiIpamVlanTranslationRulesListRequest { + r.policyId = &policyId return r } -func (r ApiIpamVlanGroupsListRequest) ScopeId(scopeId []int32) ApiIpamVlanGroupsListRequest { - r.scopeId = &scopeId +// VLAN Translation Policy (ID) +func (r ApiIpamVlanTranslationRulesListRequest) PolicyIdN(policyIdN []int32) ApiIpamVlanTranslationRulesListRequest { + r.policyIdN = &policyIdN 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 -} - -func (r ApiIpamVlanGroupsListRequest) ScopeIdGte(scopeIdGte []int32) ApiIpamVlanGroupsListRequest { - r.scopeIdGte = &scopeIdGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) ScopeIdLt(scopeIdLt []int32) ApiIpamVlanGroupsListRequest { - r.scopeIdLt = &scopeIdLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) ScopeIdLte(scopeIdLte []int32) ApiIpamVlanGroupsListRequest { - r.scopeIdLte = &scopeIdLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) ScopeIdN(scopeIdN []int32) ApiIpamVlanGroupsListRequest { - r.scopeIdN = &scopeIdN - return r -} - -func (r ApiIpamVlanGroupsListRequest) ScopeType(scopeType string) ApiIpamVlanGroupsListRequest { - r.scopeType = &scopeType - return r -} - -func (r ApiIpamVlanGroupsListRequest) ScopeTypeN(scopeTypeN string) ApiIpamVlanGroupsListRequest { - r.scopeTypeN = &scopeTypeN - return r -} - -func (r ApiIpamVlanGroupsListRequest) Site(site int32) ApiIpamVlanGroupsListRequest { - r.site = &site - return r -} - -func (r ApiIpamVlanGroupsListRequest) SiteGroup(siteGroup int32) ApiIpamVlanGroupsListRequest { - r.siteGroup = &siteGroup - return r -} - -func (r ApiIpamVlanGroupsListRequest) Sitegroup(sitegroup int32) ApiIpamVlanGroupsListRequest { - r.sitegroup = &sitegroup - return r -} - -func (r ApiIpamVlanGroupsListRequest) Slug(slug []string) ApiIpamVlanGroupsListRequest { - r.slug = &slug - return r -} - -func (r ApiIpamVlanGroupsListRequest) SlugEmpty(slugEmpty bool) ApiIpamVlanGroupsListRequest { - r.slugEmpty = &slugEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) SlugIc(slugIc []string) ApiIpamVlanGroupsListRequest { - r.slugIc = &slugIc - return r -} - -func (r ApiIpamVlanGroupsListRequest) SlugIe(slugIe []string) ApiIpamVlanGroupsListRequest { - r.slugIe = &slugIe +// Search +func (r ApiIpamVlanTranslationRulesListRequest) Q(q string) ApiIpamVlanTranslationRulesListRequest { + r.q = &q return r } -func (r ApiIpamVlanGroupsListRequest) SlugIew(slugIew []string) ApiIpamVlanGroupsListRequest { - r.slugIew = &slugIew +func (r ApiIpamVlanTranslationRulesListRequest) RemoteVid(remoteVid []int32) ApiIpamVlanTranslationRulesListRequest { + r.remoteVid = &remoteVid return r } -func (r ApiIpamVlanGroupsListRequest) SlugIsw(slugIsw []string) ApiIpamVlanGroupsListRequest { - r.slugIsw = &slugIsw +func (r ApiIpamVlanTranslationRulesListRequest) RemoteVidEmpty(remoteVidEmpty bool) ApiIpamVlanTranslationRulesListRequest { + r.remoteVidEmpty = &remoteVidEmpty return r } -func (r ApiIpamVlanGroupsListRequest) SlugN(slugN []string) ApiIpamVlanGroupsListRequest { - r.slugN = &slugN +func (r ApiIpamVlanTranslationRulesListRequest) RemoteVidGt(remoteVidGt []int32) ApiIpamVlanTranslationRulesListRequest { + r.remoteVidGt = &remoteVidGt return r } -func (r ApiIpamVlanGroupsListRequest) SlugNic(slugNic []string) ApiIpamVlanGroupsListRequest { - r.slugNic = &slugNic +func (r ApiIpamVlanTranslationRulesListRequest) RemoteVidGte(remoteVidGte []int32) ApiIpamVlanTranslationRulesListRequest { + r.remoteVidGte = &remoteVidGte return r } -func (r ApiIpamVlanGroupsListRequest) SlugNie(slugNie []string) ApiIpamVlanGroupsListRequest { - r.slugNie = &slugNie +func (r ApiIpamVlanTranslationRulesListRequest) RemoteVidLt(remoteVidLt []int32) ApiIpamVlanTranslationRulesListRequest { + r.remoteVidLt = &remoteVidLt return r } -func (r ApiIpamVlanGroupsListRequest) SlugNiew(slugNiew []string) ApiIpamVlanGroupsListRequest { - r.slugNiew = &slugNiew +func (r ApiIpamVlanTranslationRulesListRequest) RemoteVidLte(remoteVidLte []int32) ApiIpamVlanTranslationRulesListRequest { + r.remoteVidLte = &remoteVidLte return r } -func (r ApiIpamVlanGroupsListRequest) SlugNisw(slugNisw []string) ApiIpamVlanGroupsListRequest { - r.slugNisw = &slugNisw +func (r ApiIpamVlanTranslationRulesListRequest) RemoteVidN(remoteVidN []int32) ApiIpamVlanTranslationRulesListRequest { + r.remoteVidN = &remoteVidN return r } -func (r ApiIpamVlanGroupsListRequest) Tag(tag []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) Tag(tag []string) ApiIpamVlanTranslationRulesListRequest { r.tag = &tag return r } -func (r ApiIpamVlanGroupsListRequest) TagN(tagN []string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) TagN(tagN []string) ApiIpamVlanTranslationRulesListRequest { r.tagN = &tagN return r } -func (r ApiIpamVlanGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamVlanGroupsListRequest { +func (r ApiIpamVlanTranslationRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiIpamVlanTranslationRulesListRequest { r.updatedByRequest = &updatedByRequest return r } -func (r ApiIpamVlanGroupsListRequest) Execute() (*PaginatedVLANGroupList, *http.Response, error) { - return r.ApiService.IpamVlanGroupsListExecute(r) +func (r ApiIpamVlanTranslationRulesListRequest) Execute() (*PaginatedVLANTranslationRuleList, *http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesListExecute(r) } /* -IpamVlanGroupsList Method for IpamVlanGroupsList +IpamVlanTranslationRulesList Method for IpamVlanTranslationRulesList -Get a list of VLAN group objects. +Get a list of VLAN translation rule 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 ApiIpamVlanTranslationRulesListRequest */ -func (a *IpamAPIService) IpamVlanGroupsList(ctx context.Context) ApiIpamVlanGroupsListRequest { - return ApiIpamVlanGroupsListRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesList(ctx context.Context) ApiIpamVlanTranslationRulesListRequest { + return ApiIpamVlanTranslationRulesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVLANGroupList -func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListRequest) (*PaginatedVLANGroupList, *http.Response, error) { +// @return PaginatedVLANTranslationRuleList +func (a *IpamAPIService) IpamVlanTranslationRulesListExecute(r ApiIpamVlanTranslationRulesListRequest) (*PaginatedVLANTranslationRuleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVLANGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVLANTranslationRuleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.cluster != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", r.cluster, "") - } - if r.clusterGroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", r.clusterGroup, "") - } - if r.clustergroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "clustergroup", r.clustergroup, "") - } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -31724,10 +38971,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -31735,10 +38982,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -31746,10 +38993,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -31757,10 +39004,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -31768,10 +39015,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -31779,38 +39026,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -31818,10 +39065,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -31829,10 +39076,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -31840,10 +39087,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -31851,10 +39098,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -31862,10 +39109,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -31873,10 +39120,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -31884,10 +39131,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -31895,10 +39142,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -31906,24 +39153,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -31931,10 +39178,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -31942,10 +39189,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -31953,10 +39200,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -31964,10 +39211,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -31975,10 +39222,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -31986,10 +39233,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -31997,10 +39244,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -32008,10 +39255,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -32019,10 +39266,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -32030,10 +39277,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -32041,482 +39288,207 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.location != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "") - } - if r.maxVid != nil { - t := *r.maxVid - 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).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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", t, "multi") - } - } - if r.maxVidGte != nil { - t := *r.maxVidGte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", t, "multi") - } - } - if r.maxVidLt != nil { - t := *r.maxVidLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", t, "multi") - } - } - if r.maxVidLte != nil { - t := *r.maxVidLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", t, "multi") - } - } - if r.maxVidN != nil { - t := *r.maxVidN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", t, "multi") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } - if r.minVid != nil { - t := *r.minVid + if r.localVid != nil { + t := *r.localVid 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid", t, "form", "multi") } } - if r.minVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__empty", r.minVidEmpty, "") + if r.localVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__empty", r.localVidEmpty, "form", "") } - if r.minVidGt != nil { - t := *r.minVidGt + if r.localVidGt != nil { + t := *r.localVidGt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__gt", t, "form", "multi") } } - if r.minVidGte != nil { - t := *r.minVidGte + if r.localVidGte != nil { + t := *r.localVidGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__gte", t, "form", "multi") } } - if r.minVidLt != nil { - t := *r.minVidLt + if r.localVidLt != nil { + t := *r.localVidLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__lt", t, "form", "multi") } } - if r.minVidLte != nil { - t := *r.minVidLte + if r.localVidLte != nil { + t := *r.localVidLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__lte", t, "form", "multi") } } - if r.minVidN != nil { - t := *r.minVidN + if r.localVidN != nil { + t := *r.localVidN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_vid__n", t, "form", "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") - } + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.rack != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", r.rack, "") - } - if r.region != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", r.region, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } - if r.scopeId != nil { - t := *r.scopeId + if r.policy != nil { + t := *r.policy 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy", t, "form", "multi") } } - if r.scopeIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__empty", r.scopeIdEmpty, "") - } - if r.scopeIdGt != nil { - t := *r.scopeIdGt + if r.policyN != nil { + t := *r.policyN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy__n", t, "form", "multi") } } - if r.scopeIdGte != nil { - t := *r.scopeIdGte + if r.policyId != nil { + t := *r.policyId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_id", t, "form", "multi") } } - if r.scopeIdLt != nil { - t := *r.scopeIdLt - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", t, "multi") - } - } - if r.scopeIdLte != nil { - t := *r.scopeIdLte - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", t, "multi") - } - } - if r.scopeIdN != nil { - t := *r.scopeIdN - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", t, "multi") - } - } - if r.scopeType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type", r.scopeType, "") - } - if r.scopeTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type__n", r.scopeTypeN, "") - } - if r.site != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", r.site, "") - } - if r.siteGroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", r.siteGroup, "") - } - if r.sitegroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sitegroup", r.sitegroup, "") - } - if r.slug != nil { - t := *r.slug - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") - } - } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc + if r.policyIdN != nil { + t := *r.policyIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "policy_id__n", t, "form", "multi") } } - if r.slugIe != nil { - t := *r.slugIe - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") - } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.slugIew != nil { - t := *r.slugIew + if r.remoteVid != nil { + t := *r.remoteVid 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid", t, "form", "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") - } + if r.remoteVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__empty", r.remoteVidEmpty, "form", "") } - if r.slugN != nil { - t := *r.slugN + if r.remoteVidGt != nil { + t := *r.remoteVidGt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__gt", t, "form", "multi") } } - if r.slugNic != nil { - t := *r.slugNic + if r.remoteVidGte != nil { + t := *r.remoteVidGte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__gte", t, "form", "multi") } } - if r.slugNie != nil { - t := *r.slugNie + if r.remoteVidLt != nil { + t := *r.remoteVidLt 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__lt", t, "form", "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.remoteVidLte != nil { + t := *r.remoteVidLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__lte", t, "form", "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.remoteVidN != nil { + t := *r.remoteVidN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_vid__n", t, "form", "multi") } } if r.tag != nil { @@ -32524,10 +39496,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -32535,14 +39507,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -32612,56 +39584,55 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamVlanGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - patchedVLANGroupRequest *PatchedVLANGroupRequest +type ApiIpamVlanTranslationRulesPartialUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + patchedVLANTranslationRuleRequest *PatchedVLANTranslationRuleRequest } -func (r ApiIpamVlanGroupsPartialUpdateRequest) PatchedVLANGroupRequest(patchedVLANGroupRequest PatchedVLANGroupRequest) ApiIpamVlanGroupsPartialUpdateRequest { - r.patchedVLANGroupRequest = &patchedVLANGroupRequest +func (r ApiIpamVlanTranslationRulesPartialUpdateRequest) PatchedVLANTranslationRuleRequest(patchedVLANTranslationRuleRequest PatchedVLANTranslationRuleRequest) ApiIpamVlanTranslationRulesPartialUpdateRequest { + r.patchedVLANTranslationRuleRequest = &patchedVLANTranslationRuleRequest return r } -func (r ApiIpamVlanGroupsPartialUpdateRequest) Execute() (*VLANGroup, *http.Response, error) { - return r.ApiService.IpamVlanGroupsPartialUpdateExecute(r) +func (r ApiIpamVlanTranslationRulesPartialUpdateRequest) Execute() (*VLANTranslationRule, *http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesPartialUpdateExecute(r) } /* -IpamVlanGroupsPartialUpdate Method for IpamVlanGroupsPartialUpdate +IpamVlanTranslationRulesPartialUpdate Method for IpamVlanTranslationRulesPartialUpdate -Patch a VLAN group object. +Patch a VLAN translation rule object. - @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesPartialUpdateRequest */ -func (a *IpamAPIService) IpamVlanGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsPartialUpdateRequest { - return ApiIpamVlanGroupsPartialUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesPartialUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesPartialUpdateRequest { + return ApiIpamVlanTranslationRulesPartialUpdateRequest{ 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 VLANTranslationRule +func (a *IpamAPIService) IpamVlanTranslationRulesPartialUpdateExecute(r ApiIpamVlanTranslationRulesPartialUpdateRequest) (*VLANTranslationRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -32686,7 +39657,7 @@ func (a *IpamAPIService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedVLANGroupRequest + localVarPostBody = r.patchedVLANTranslationRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -32738,50 +39709,49 @@ func (a *IpamAPIService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamVlanGroupsRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 +type ApiIpamVlanTranslationRulesRetrieveRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 } -func (r ApiIpamVlanGroupsRetrieveRequest) Execute() (*VLANGroup, *http.Response, error) { - return r.ApiService.IpamVlanGroupsRetrieveExecute(r) +func (r ApiIpamVlanTranslationRulesRetrieveRequest) Execute() (*VLANTranslationRule, *http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesRetrieveExecute(r) } /* -IpamVlanGroupsRetrieve Method for IpamVlanGroupsRetrieve +IpamVlanTranslationRulesRetrieve Method for IpamVlanTranslationRulesRetrieve -Get a VLAN group object. +Get a VLAN translation rule object. - @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesRetrieveRequest */ -func (a *IpamAPIService) IpamVlanGroupsRetrieve(ctx context.Context, id int32) ApiIpamVlanGroupsRetrieveRequest { - return ApiIpamVlanGroupsRetrieveRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesRetrieve(ctx context.Context, id int32) ApiIpamVlanTranslationRulesRetrieveRequest { + return ApiIpamVlanTranslationRulesRetrieveRequest{ 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 VLANTranslationRule +func (a *IpamAPIService) IpamVlanTranslationRulesRetrieveExecute(r ApiIpamVlanTranslationRulesRetrieveRequest) (*VLANTranslationRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -32856,63 +39826,62 @@ func (a *IpamAPIService) IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiIpamVlanGroupsUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 - vLANGroupRequest *VLANGroupRequest +type ApiIpamVlanTranslationRulesUpdateRequest struct { + ctx context.Context + ApiService IpamAPI + id int32 + vLANTranslationRuleRequest *VLANTranslationRuleRequest } -func (r ApiIpamVlanGroupsUpdateRequest) VLANGroupRequest(vLANGroupRequest VLANGroupRequest) ApiIpamVlanGroupsUpdateRequest { - r.vLANGroupRequest = &vLANGroupRequest +func (r ApiIpamVlanTranslationRulesUpdateRequest) VLANTranslationRuleRequest(vLANTranslationRuleRequest VLANTranslationRuleRequest) ApiIpamVlanTranslationRulesUpdateRequest { + r.vLANTranslationRuleRequest = &vLANTranslationRuleRequest return r } -func (r ApiIpamVlanGroupsUpdateRequest) Execute() (*VLANGroup, *http.Response, error) { - return r.ApiService.IpamVlanGroupsUpdateExecute(r) +func (r ApiIpamVlanTranslationRulesUpdateRequest) Execute() (*VLANTranslationRule, *http.Response, error) { + return r.ApiService.IpamVlanTranslationRulesUpdateExecute(r) } /* -IpamVlanGroupsUpdate Method for IpamVlanGroupsUpdate +IpamVlanTranslationRulesUpdate Method for IpamVlanTranslationRulesUpdate -Put a VLAN group object. +Put a VLAN translation rule object. - @param ctx 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 translation rule. + @return ApiIpamVlanTranslationRulesUpdateRequest */ -func (a *IpamAPIService) IpamVlanGroupsUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsUpdateRequest { - return ApiIpamVlanGroupsUpdateRequest{ +func (a *IpamAPIService) IpamVlanTranslationRulesUpdate(ctx context.Context, id int32) ApiIpamVlanTranslationRulesUpdateRequest { + return ApiIpamVlanTranslationRulesUpdateRequest{ 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 VLANTranslationRule +func (a *IpamAPIService) IpamVlanTranslationRulesUpdateExecute(r ApiIpamVlanTranslationRulesUpdateRequest) (*VLANTranslationRule, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANTranslationRule ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanTranslationRulesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/ipam/vlan-groups/{id}/" + localVarPath := localBasePath + "/api/ipam/vlan-translation-rules/{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.vLANGroupRequest == nil { - return localVarReturnValue, nil, reportError("vLANGroupRequest is required and must be specified") + if r.vLANTranslationRuleRequest == nil { + return localVarReturnValue, nil, reportError("vLANTranslationRuleRequest is required and must be specified") } // to determine the Content-Type header @@ -32933,7 +39902,7 @@ func (a *IpamAPIService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRe localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.vLANGroupRequest + localVarPostBody = r.vLANTranslationRuleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -32986,8 +39955,8 @@ func (a *IpamAPIService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRe } type ApiIpamVlansBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI vLANRequest *[]VLANRequest } @@ -33005,22 +39974,22 @@ 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 { return ApiIpamVlansBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -33099,8 +40068,8 @@ func (a *IpamAPIService) IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRe } type ApiIpamVlansBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI vLANRequest *[]VLANRequest } @@ -33118,25 +40087,24 @@ 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 { return ApiIpamVlansBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLAN +// @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") @@ -33224,8 +40192,8 @@ func (a *IpamAPIService) IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPar } type ApiIpamVlansBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI vLANRequest *[]VLANRequest } @@ -33243,25 +40211,24 @@ 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 { return ApiIpamVlansBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLAN +// @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") @@ -33349,8 +40316,8 @@ func (a *IpamAPIService) IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequ } type ApiIpamVlansCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI writableVLANRequest *WritableVLANRequest } @@ -33368,25 +40335,24 @@ 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 { return ApiIpamVlansCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VLAN +// @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") @@ -33474,9 +40440,9 @@ func (a *IpamAPIService) IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*V } type ApiIpamVlansDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 } func (r ApiIpamVlansDestroyRequest) Execute() (*http.Response, error) { @@ -33488,24 +40454,24 @@ 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 { 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) { 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") @@ -33580,104 +40546,135 @@ func (a *IpamAPIService) IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) ( } type ApiIpamVlansListRequest struct { - ctx context.Context - ApiService *IpamAPIService - availableAtSite *string - availableOnDevice *string + ctx context.Context + ApiService IpamAPI + availableAtSite *string + availableOnDevice *string availableOnVirtualmachine *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 - 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 + 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 + interfaceId *string + 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 + qinqRole *[]*string + qinqRoleEmpty *bool + qinqRoleIc *[]*string + qinqRoleIe *[]*string + qinqRoleIew *[]*string + qinqRoleIsw *[]*string + qinqRoleN *[]*string + qinqRoleNic *[]*string + qinqRoleNie *[]*string + qinqRoleNiew *[]*string + qinqRoleNisw *[]*string + qinqSvlanId *[]*int32 + qinqSvlanIdN *[]*int32 + qinqSvlanVid *[]int32 + qinqSvlanVidEmpty *[]int32 + qinqSvlanVidGt *[]int32 + qinqSvlanVidGte *[]int32 + qinqSvlanVidLt *[]int32 + qinqSvlanVidLte *[]int32 + qinqSvlanVidN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]*int32 + siteIdN *[]*int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string + vid *[]int32 + vidEmpty *bool + vidGt *[]int32 + vidGte *[]int32 + vidLt *[]int32 + vidLte *[]int32 + vidN *[]int32 + vminterfaceId *string } func (r ApiIpamVlansListRequest) AvailableAtSite(availableAtSite string) ApiIpamVlansListRequest { @@ -33849,6 +40846,12 @@ func (r ApiIpamVlansListRequest) IdN(idN []int32) ApiIpamVlansListRequest { return r } +// Assigned interface +func (r ApiIpamVlansListRequest) InterfaceId(interfaceId string) ApiIpamVlansListRequest { + r.interfaceId = &interfaceId + return r +} + // L2VPN func (r ApiIpamVlansListRequest) L2vpn(l2vpn []*int64) ApiIpamVlansListRequest { r.l2vpn = &l2vpn @@ -33992,26 +40995,134 @@ func (r ApiIpamVlansListRequest) Q(q string) ApiIpamVlansListRequest { return r } -// Region (slug) -func (r ApiIpamVlansListRequest) Region(region []int32) ApiIpamVlansListRequest { +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRole(qinqRole []*string) ApiIpamVlansListRequest { + r.qinqRole = &qinqRole + return r +} + +func (r ApiIpamVlansListRequest) QinqRoleEmpty(qinqRoleEmpty bool) ApiIpamVlansListRequest { + r.qinqRoleEmpty = &qinqRoleEmpty + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleIc(qinqRoleIc []*string) ApiIpamVlansListRequest { + r.qinqRoleIc = &qinqRoleIc + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleIe(qinqRoleIe []*string) ApiIpamVlansListRequest { + r.qinqRoleIe = &qinqRoleIe + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleIew(qinqRoleIew []*string) ApiIpamVlansListRequest { + r.qinqRoleIew = &qinqRoleIew + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleIsw(qinqRoleIsw []*string) ApiIpamVlansListRequest { + r.qinqRoleIsw = &qinqRoleIsw + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleN(qinqRoleN []*string) ApiIpamVlansListRequest { + r.qinqRoleN = &qinqRoleN + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleNic(qinqRoleNic []*string) ApiIpamVlansListRequest { + r.qinqRoleNic = &qinqRoleNic + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleNie(qinqRoleNie []*string) ApiIpamVlansListRequest { + r.qinqRoleNie = &qinqRoleNie + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleNiew(qinqRoleNiew []*string) ApiIpamVlansListRequest { + r.qinqRoleNiew = &qinqRoleNiew + return r +} + +// Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) +func (r ApiIpamVlansListRequest) QinqRoleNisw(qinqRoleNisw []*string) ApiIpamVlansListRequest { + r.qinqRoleNisw = &qinqRoleNisw + return r +} + +// Q-in-Q SVLAN (ID) +func (r ApiIpamVlansListRequest) QinqSvlanId(qinqSvlanId []*int32) ApiIpamVlansListRequest { + r.qinqSvlanId = &qinqSvlanId + return r +} + +// Q-in-Q SVLAN (ID) +func (r ApiIpamVlansListRequest) QinqSvlanIdN(qinqSvlanIdN []*int32) ApiIpamVlansListRequest { + r.qinqSvlanIdN = &qinqSvlanIdN + return r +} + +func (r ApiIpamVlansListRequest) QinqSvlanVid(qinqSvlanVid []int32) ApiIpamVlansListRequest { + r.qinqSvlanVid = &qinqSvlanVid + return r +} + +func (r ApiIpamVlansListRequest) QinqSvlanVidEmpty(qinqSvlanVidEmpty []int32) ApiIpamVlansListRequest { + r.qinqSvlanVidEmpty = &qinqSvlanVidEmpty + return r +} + +func (r ApiIpamVlansListRequest) QinqSvlanVidGt(qinqSvlanVidGt []int32) ApiIpamVlansListRequest { + r.qinqSvlanVidGt = &qinqSvlanVidGt + return r +} + +func (r ApiIpamVlansListRequest) QinqSvlanVidGte(qinqSvlanVidGte []int32) ApiIpamVlansListRequest { + r.qinqSvlanVidGte = &qinqSvlanVidGte + return r +} + +func (r ApiIpamVlansListRequest) QinqSvlanVidLt(qinqSvlanVidLt []int32) ApiIpamVlansListRequest { + r.qinqSvlanVidLt = &qinqSvlanVidLt + return r +} + +func (r ApiIpamVlansListRequest) QinqSvlanVidLte(qinqSvlanVidLte []int32) ApiIpamVlansListRequest { + r.qinqSvlanVidLte = &qinqSvlanVidLte + return r +} + +func (r ApiIpamVlansListRequest) QinqSvlanVidN(qinqSvlanVidN []int32) ApiIpamVlansListRequest { + r.qinqSvlanVidN = &qinqSvlanVidN + return r +} + +func (r ApiIpamVlansListRequest) Region(region []string) ApiIpamVlansListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiIpamVlansListRequest) RegionN(regionN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionN(regionN []string) ApiIpamVlansListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionId(regionId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionId(regionId []string) ApiIpamVlansListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []string) ApiIpamVlansListRequest { r.regionIdN = ®ionIdN return r } @@ -34052,26 +41163,22 @@ func (r ApiIpamVlansListRequest) SiteN(siteN []string) ApiIpamVlansListRequest { return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []string) ApiIpamVlansListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []string) ApiIpamVlansListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []string) ApiIpamVlansListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamVlansListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -34094,12 +41201,65 @@ func (r ApiIpamVlansListRequest) Status(status []string) ApiIpamVlansListRequest return r } +func (r ApiIpamVlansListRequest) StatusEmpty(statusEmpty bool) ApiIpamVlansListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusIc(statusIc []string) ApiIpamVlansListRequest { + r.statusIc = &statusIc + return r +} + +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusIe(statusIe []string) ApiIpamVlansListRequest { + r.statusIe = &statusIe + return r +} + +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusIew(statusIew []string) ApiIpamVlansListRequest { + r.statusIew = &statusIew + return r +} + +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusIsw(statusIsw []string) ApiIpamVlansListRequest { + r.statusIsw = &statusIsw + return r +} + // Operational status of this VLAN func (r ApiIpamVlansListRequest) StatusN(statusN []string) ApiIpamVlansListRequest { r.statusN = &statusN return r } +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusNic(statusNic []string) ApiIpamVlansListRequest { + r.statusNic = &statusNic + return r +} + +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusNie(statusNie []string) ApiIpamVlansListRequest { + r.statusNie = &statusNie + return r +} + +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusNiew(statusNiew []string) ApiIpamVlansListRequest { + r.statusNiew = &statusNiew + return r +} + +// Operational status of this VLAN +func (r ApiIpamVlansListRequest) StatusNisw(statusNisw []string) ApiIpamVlansListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiIpamVlansListRequest) Tag(tag []string) ApiIpamVlansListRequest { r.tag = &tag return r @@ -34122,26 +41282,22 @@ func (r ApiIpamVlansListRequest) TenantN(tenantN []string) ApiIpamVlansListReque return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []string) ApiIpamVlansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVlansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVlansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVlansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -34198,6 +41354,12 @@ func (r ApiIpamVlansListRequest) VidN(vidN []int32) ApiIpamVlansListRequest { return r } +// Assigned VM interface +func (r ApiIpamVlansListRequest) VminterfaceId(vminterfaceId string) ApiIpamVlansListRequest { + r.vminterfaceId = &vminterfaceId + return r +} + func (r ApiIpamVlansListRequest) Execute() (*PaginatedVLANList, *http.Response, error) { return r.ApiService.IpamVlansListExecute(r) } @@ -34207,25 +41369,24 @@ 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 { return ApiIpamVlansListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVLANList +// @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") @@ -34240,23 +41401,23 @@ func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin localVarFormParams := url.Values{} if r.availableAtSite != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_at_site", r.availableAtSite, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "available_at_site", r.availableAtSite, "form", "") } if r.availableOnDevice != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_on_device", r.availableOnDevice, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "available_on_device", r.availableOnDevice, "form", "") } if r.availableOnVirtualmachine != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "available_on_virtualmachine", r.availableOnVirtualmachine, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "available_on_virtualmachine", r.availableOnVirtualmachine, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -34264,10 +41425,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -34275,10 +41436,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -34286,10 +41447,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -34297,10 +41458,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -34308,10 +41469,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -34319,38 +41480,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -34358,10 +41519,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -34369,10 +41530,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -34380,10 +41541,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -34391,10 +41552,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -34402,10 +41563,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -34413,10 +41574,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -34424,10 +41585,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -34435,10 +41596,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.group != nil { @@ -34446,10 +41607,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -34457,10 +41618,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -34468,10 +41629,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -34479,10 +41640,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -34490,24 +41651,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -34515,10 +41676,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -34526,10 +41687,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -34537,10 +41698,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -34548,21 +41709,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } + if r.interfaceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", r.interfaceId, "form", "") + } if r.l2vpn != nil { t := *r.l2vpn if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "form", "multi") } } if r.l2vpnN != nil { @@ -34570,10 +41734,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "form", "multi") } } if r.l2vpnId != nil { @@ -34581,10 +41745,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "form", "multi") } } if r.l2vpnIdN != nil { @@ -34592,10 +41756,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -34603,10 +41767,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -34614,10 +41778,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -34625,10 +41789,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -34636,10 +41800,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -34647,10 +41811,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -34658,10 +41822,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -34669,41 +41833,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -34711,10 +41875,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -34722,10 +41886,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -34733,10 +41897,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -34744,10 +41908,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -34755,10 +41919,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -34766,10 +41930,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -34777,10 +41941,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -34788,30 +41952,242 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + if r.qinqRole != nil { + t := *r.qinqRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role", t, "form", "multi") + } + } + if r.qinqRoleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__empty", r.qinqRoleEmpty, "form", "") + } + if r.qinqRoleIc != nil { + t := *r.qinqRoleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__ic", t, "form", "multi") + } + } + if r.qinqRoleIe != nil { + t := *r.qinqRoleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__ie", t, "form", "multi") + } + } + if r.qinqRoleIew != nil { + t := *r.qinqRoleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__iew", t, "form", "multi") + } + } + if r.qinqRoleIsw != nil { + t := *r.qinqRoleIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__isw", t, "form", "multi") + } + } + if r.qinqRoleN != nil { + t := *r.qinqRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__n", t, "form", "multi") + } + } + if r.qinqRoleNic != nil { + t := *r.qinqRoleNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__nic", t, "form", "multi") + } + } + if r.qinqRoleNie != nil { + t := *r.qinqRoleNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__nie", t, "form", "multi") + } + } + if r.qinqRoleNiew != nil { + t := *r.qinqRoleNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__niew", t, "form", "multi") + } + } + if r.qinqRoleNisw != nil { + t := *r.qinqRoleNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_role__nisw", t, "form", "multi") + } + } + if r.qinqSvlanId != nil { + t := *r.qinqSvlanId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_id", t, "form", "multi") + } + } + if r.qinqSvlanIdN != nil { + t := *r.qinqSvlanIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_id__n", t, "form", "multi") + } + } + if r.qinqSvlanVid != nil { + t := *r.qinqSvlanVid + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid", t, "form", "multi") + } + } + if r.qinqSvlanVidEmpty != nil { + t := *r.qinqSvlanVidEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__empty", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__empty", t, "form", "multi") + } + } + if r.qinqSvlanVidGt != nil { + t := *r.qinqSvlanVidGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__gt", t, "form", "multi") + } + } + if r.qinqSvlanVidGte != nil { + t := *r.qinqSvlanVidGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__gte", t, "form", "multi") + } + } + if r.qinqSvlanVidLt != nil { + t := *r.qinqSvlanVidLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__lt", t, "form", "multi") + } + } + if r.qinqSvlanVidLte != nil { + t := *r.qinqSvlanVidLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__lte", t, "form", "multi") + } + } + if r.qinqSvlanVidN != nil { + t := *r.qinqSvlanVidN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "qinq_svlan_vid__n", t, "form", "multi") + } } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -34819,10 +42195,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -34830,10 +42206,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -34841,10 +42217,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } if r.role != nil { @@ -34852,10 +42228,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } if r.roleN != nil { @@ -34863,10 +42239,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } if r.roleId != nil { @@ -34874,10 +42250,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } if r.roleIdN != nil { @@ -34885,10 +42261,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") } } if r.site != nil { @@ -34896,10 +42272,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteN != nil { @@ -34907,10 +42283,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } if r.siteGroup != nil { @@ -34918,10 +42294,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } if r.siteGroupN != nil { @@ -34929,10 +42305,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } if r.siteGroupId != nil { @@ -34940,10 +42316,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } if r.siteGroupIdN != nil { @@ -34951,10 +42327,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } if r.siteId != nil { @@ -34962,10 +42338,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.siteIdN != nil { @@ -34973,10 +42349,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.status != nil { @@ -34984,10 +42360,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -34995,10 +42418,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -35006,10 +42473,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -35017,10 +42484,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -35028,10 +42495,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -35039,10 +42506,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -35050,10 +42517,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -35061,10 +42528,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -35072,10 +42539,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -35083,10 +42550,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -35094,10 +42561,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -35105,38 +42572,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.vid != nil { t := *r.vid if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid", t, "form", "multi") } } if r.vidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__empty", r.vidEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__empty", r.vidEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gt", t, "form", "multi") } } if r.vidGte != nil { @@ -35144,10 +42611,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gte", t, "form", "multi") } } if r.vidLt != nil { @@ -35155,10 +42622,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lt", t, "form", "multi") } } if r.vidLte != nil { @@ -35166,10 +42633,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lte", t, "form", "multi") } } if r.vidN != nil { @@ -35177,12 +42644,15 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__n", t, "form", "multi") } } + if r.vminterfaceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", r.vminterfaceId, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -35252,9 +42722,9 @@ func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin } type ApiIpamVlansPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 patchedWritableVLANRequest *PatchedWritableVLANRequest } @@ -35272,27 +42742,26 @@ 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 { return ApiIpamVlansPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLAN +// @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") @@ -35378,9 +42847,9 @@ func (a *IpamAPIService) IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpda } type ApiIpamVlansRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 } func (r ApiIpamVlansRetrieveRequest) Execute() (*VLAN, *http.Response, error) { @@ -35392,27 +42861,26 @@ 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 { return ApiIpamVlansRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLAN +// @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") @@ -35496,9 +42964,9 @@ func (a *IpamAPIService) IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest) } type ApiIpamVlansUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 writableVLANRequest *WritableVLANRequest } @@ -35516,27 +42984,26 @@ 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 { return ApiIpamVlansUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLAN +// @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") @@ -35625,8 +43092,8 @@ func (a *IpamAPIService) IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*V } type ApiIpamVrfsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI vRFRequest *[]VRFRequest } @@ -35644,22 +43111,22 @@ 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 { return ApiIpamVrfsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -35738,8 +43205,8 @@ func (a *IpamAPIService) IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequ } type ApiIpamVrfsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI vRFRequest *[]VRFRequest } @@ -35757,25 +43224,24 @@ 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 { return ApiIpamVrfsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VRF +// @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") @@ -35863,8 +43329,8 @@ func (a *IpamAPIService) IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkParti } type ApiIpamVrfsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI vRFRequest *[]VRFRequest } @@ -35882,25 +43348,24 @@ 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 { return ApiIpamVrfsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VRF +// @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") @@ -35988,8 +43453,8 @@ func (a *IpamAPIService) IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateReques } type ApiIpamVrfsCreateRequest struct { - ctx context.Context - ApiService *IpamAPIService + ctx context.Context + ApiService IpamAPI vRFRequest *VRFRequest } @@ -36007,25 +43472,24 @@ 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 { return ApiIpamVrfsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VRF +// @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") @@ -36113,9 +43577,9 @@ func (a *IpamAPIService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF } type ApiIpamVrfsDestroyRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 } func (r ApiIpamVrfsDestroyRequest) Execute() (*http.Response, error) { @@ -36127,24 +43591,24 @@ 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 { 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) { 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") @@ -36219,88 +43683,88 @@ func (a *IpamAPIService) IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*h } type ApiIpamVrfsListRequest struct { - 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 - 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 + ctx context.Context + ApiService IpamAPI + 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 + 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 + 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 *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string } func (r ApiIpamVrfsListRequest) Created(created []time.Time) ApiIpamVrfsListRequest { @@ -36682,26 +44146,22 @@ func (r ApiIpamVrfsListRequest) TenantN(tenantN []string) ApiIpamVrfsListRequest return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []string) ApiIpamVrfsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVrfsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVrfsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVrfsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -36732,25 +44192,24 @@ 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 { return ApiIpamVrfsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVRFList +// @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") @@ -36769,10 +44228,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -36780,10 +44239,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -36791,10 +44250,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -36802,10 +44261,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -36813,10 +44272,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -36824,10 +44283,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -36835,38 +44294,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -36874,10 +44333,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -36885,10 +44344,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -36896,10 +44355,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -36907,10 +44366,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -36918,10 +44377,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -36929,10 +44388,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -36940,10 +44399,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -36951,24 +44410,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.enforceUnique != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enforce_unique", r.enforceUnique, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "enforce_unique", r.enforceUnique, "form", "") } if r.exportTarget != nil { t := *r.exportTarget 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "form", "multi") } } if r.exportTargetN != nil { @@ -36976,10 +44435,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "form", "multi") } } if r.exportTargetId != nil { @@ -36987,10 +44446,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "form", "multi") } } if r.exportTargetIdN != nil { @@ -36998,10 +44457,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "form", "multi") } } if r.id != nil { @@ -37009,24 +44468,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -37034,10 +44493,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -37045,10 +44504,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -37056,10 +44515,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -37067,10 +44526,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.importTarget != nil { @@ -37078,10 +44537,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "form", "multi") } } if r.importTargetN != nil { @@ -37089,10 +44548,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "form", "multi") } } if r.importTargetId != nil { @@ -37100,10 +44559,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "form", "multi") } } if r.importTargetIdN != nil { @@ -37111,10 +44570,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -37122,10 +44581,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -37133,10 +44592,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -37144,10 +44603,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -37155,10 +44614,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -37166,10 +44625,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -37177,10 +44636,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -37188,41 +44647,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -37230,10 +44689,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -37241,10 +44700,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -37252,10 +44711,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -37263,10 +44722,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -37274,10 +44733,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -37285,10 +44744,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -37296,10 +44755,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -37307,44 +44766,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.rd != nil { t := *r.rd if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd", t, "form", "multi") } } if r.rdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__empty", r.rdEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__empty", r.rdEmpty, "form", "") } if r.rdIc != nil { t := *r.rdIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ic", t, "form", "multi") } } if r.rdIe != nil { @@ -37352,10 +44811,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ie", t, "form", "multi") } } if r.rdIew != nil { @@ -37363,10 +44822,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__iew", t, "form", "multi") } } if r.rdIsw != nil { @@ -37374,10 +44833,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__isw", t, "form", "multi") } } if r.rdN != nil { @@ -37385,10 +44844,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__n", t, "form", "multi") } } if r.rdNic != nil { @@ -37396,10 +44855,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nic", t, "form", "multi") } } if r.rdNie != nil { @@ -37407,10 +44866,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nie", t, "form", "multi") } } if r.rdNiew != nil { @@ -37418,10 +44877,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__niew", t, "form", "multi") } } if r.rdNisw != nil { @@ -37429,10 +44888,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nisw", t, "form", "multi") } } if r.tag != nil { @@ -37440,10 +44899,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -37451,10 +44910,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -37462,10 +44921,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -37473,10 +44932,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -37484,10 +44943,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -37495,10 +44954,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -37506,10 +44965,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -37517,10 +44976,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -37528,10 +44987,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -37539,14 +44998,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -37617,9 +45076,9 @@ func (a *IpamAPIService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat } type ApiIpamVrfsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 patchedVRFRequest *PatchedVRFRequest } @@ -37637,27 +45096,26 @@ 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 { return ApiIpamVrfsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VRF +// @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") @@ -37743,9 +45201,9 @@ func (a *IpamAPIService) IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdate } type ApiIpamVrfsRetrieveRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 } func (r ApiIpamVrfsRetrieveRequest) Execute() (*VRF, *http.Response, error) { @@ -37757,27 +45215,26 @@ 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 { return ApiIpamVrfsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VRF +// @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") @@ -37861,9 +45318,9 @@ func (a *IpamAPIService) IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) ( } type ApiIpamVrfsUpdateRequest struct { - ctx context.Context - ApiService *IpamAPIService - id int32 + ctx context.Context + ApiService IpamAPI + id int32 vRFRequest *VRFRequest } @@ -37881,27 +45338,26 @@ 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 { return ApiIpamVrfsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VRF +// @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") diff --git a/api_prefix_test.go b/api_prefix_test.go new file mode 100644 index 0000000000..647d5f700c --- /dev/null +++ b/api_prefix_test.go @@ -0,0 +1,18 @@ +package netbox + +import ( + "context" + "testing" +) + +func TestListPrefixes(t *testing.T) { + client := HGetClient(t) + + _, r, err := client.IpamAPI.IpamPrefixesList(context.TODO()).Execute() + if err != nil { + if r != nil { + t.Fatal(r) + } + t.Fatal(err) + } +} diff --git a/api_schema.go b/api_schema.go index 5394105aa6..c06b7abc49 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,14 +18,35 @@ import ( "net/url" ) + +type SchemaAPI interface { + + /* + SchemaRetrieve Method for SchemaRetrieve + + 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 + */ + SchemaRetrieve(ctx context.Context) ApiSchemaRetrieveRequest + + // SchemaRetrieveExecute executes the request + // @return map[string]interface{} + SchemaRetrieveExecute(r ApiSchemaRetrieveRequest) (map[string]interface{}, *http.Response, error) +} + // SchemaAPIService SchemaAPI service type SchemaAPIService service type ApiSchemaRetrieveRequest struct { - ctx context.Context - ApiService *SchemaAPIService - format *SchemaRetrieveFormatParameter - lang *SchemaRetrieveLangParameter + ctx context.Context + ApiService SchemaAPI + format *SchemaRetrieveFormatParameter + lang *SchemaRetrieveLangParameter } func (r ApiSchemaRetrieveRequest) Format(format SchemaRetrieveFormatParameter) ApiSchemaRetrieveRequest { @@ -50,25 +71,24 @@ 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 { return ApiSchemaRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return map[string]interface{} +// @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") @@ -83,10 +103,10 @@ func (a *SchemaAPIService) SchemaRetrieveExecute(r ApiSchemaRetrieveRequest) (ma localVarFormParams := url.Values{} if r.format != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "form", "") } if r.lang != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "lang", r.lang, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "lang", r.lang, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_sites_test.go b/api_sites_test.go new file mode 100644 index 0000000000..fca52c4bb9 --- /dev/null +++ b/api_sites_test.go @@ -0,0 +1,20 @@ +package netbox + +import ( + "context" + "io" + "testing" +) + +func TestListNetboxSites(t *testing.T) { + client := HGetClient(t) + + _, r, err := client.DcimAPI.DcimSitesList(context.TODO()).Execute() + if err != nil { + if r != nil { + bodyBytes, _ := io.ReadAll(r.Body) + t.Error(string(bodyBytes)) + t.Fatal(err) + } + } +} diff --git a/api_status.go b/api_status.go index 9f266f5234..d38e3811c1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,12 +18,30 @@ import ( "net/url" ) + +type StatusAPI interface { + + /* + 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 + */ + StatusRetrieve(ctx context.Context) ApiStatusRetrieveRequest + + // StatusRetrieveExecute executes the request + // @return map[string]interface{} + StatusRetrieveExecute(r ApiStatusRetrieveRequest) (map[string]interface{}, *http.Response, error) +} + // StatusAPIService StatusAPI service type StatusAPIService service type ApiStatusRetrieveRequest struct { - ctx context.Context - ApiService *StatusAPIService + ctx context.Context + ApiService StatusAPI } func (r ApiStatusRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -35,25 +53,24 @@ 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 { return ApiStatusRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return map[string]interface{} +// @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") diff --git a/api_tenancy.go b/api_tenancy.go index 0b17b4c3a9..b54c45a5df 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,789 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) + +type TenancyAPI interface { + + /* + TenancyContactAssignmentsBulkDestroy Method for TenancyContactAssignmentsBulkDestroy + + 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 + */ + TenancyContactAssignmentsBulkDestroy(ctx context.Context) ApiTenancyContactAssignmentsBulkDestroyRequest + + // TenancyContactAssignmentsBulkDestroyExecute executes the request + TenancyContactAssignmentsBulkDestroyExecute(r ApiTenancyContactAssignmentsBulkDestroyRequest) (*http.Response, error) + + /* + TenancyContactAssignmentsBulkPartialUpdate Method for TenancyContactAssignmentsBulkPartialUpdate + + 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 + */ + TenancyContactAssignmentsBulkPartialUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkPartialUpdateRequest + + // TenancyContactAssignmentsBulkPartialUpdateExecute executes the request + // @return []ContactAssignment + TenancyContactAssignmentsBulkPartialUpdateExecute(r ApiTenancyContactAssignmentsBulkPartialUpdateRequest) ([]ContactAssignment, *http.Response, error) + + /* + TenancyContactAssignmentsBulkUpdate Method for TenancyContactAssignmentsBulkUpdate + + 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 + */ + TenancyContactAssignmentsBulkUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkUpdateRequest + + // TenancyContactAssignmentsBulkUpdateExecute executes the request + // @return []ContactAssignment + TenancyContactAssignmentsBulkUpdateExecute(r ApiTenancyContactAssignmentsBulkUpdateRequest) ([]ContactAssignment, *http.Response, error) + + /* + 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 + */ + TenancyContactAssignmentsCreate(ctx context.Context) ApiTenancyContactAssignmentsCreateRequest + + // TenancyContactAssignmentsCreateExecute executes the request + // @return ContactAssignment + TenancyContactAssignmentsCreateExecute(r ApiTenancyContactAssignmentsCreateRequest) (*ContactAssignment, *http.Response, error) + + /* + 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 + */ + TenancyContactAssignmentsDestroy(ctx context.Context, id int32) ApiTenancyContactAssignmentsDestroyRequest + + // TenancyContactAssignmentsDestroyExecute executes the request + TenancyContactAssignmentsDestroyExecute(r ApiTenancyContactAssignmentsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyContactAssignmentsList(ctx context.Context) ApiTenancyContactAssignmentsListRequest + + // TenancyContactAssignmentsListExecute executes the request + // @return PaginatedContactAssignmentList + TenancyContactAssignmentsListExecute(r ApiTenancyContactAssignmentsListRequest) (*PaginatedContactAssignmentList, *http.Response, error) + + /* + TenancyContactAssignmentsPartialUpdate Method for TenancyContactAssignmentsPartialUpdate + + 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 + */ + TenancyContactAssignmentsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsPartialUpdateRequest + + // TenancyContactAssignmentsPartialUpdateExecute executes the request + // @return ContactAssignment + TenancyContactAssignmentsPartialUpdateExecute(r ApiTenancyContactAssignmentsPartialUpdateRequest) (*ContactAssignment, *http.Response, error) + + /* + 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 + */ + TenancyContactAssignmentsRetrieve(ctx context.Context, id int32) ApiTenancyContactAssignmentsRetrieveRequest + + // TenancyContactAssignmentsRetrieveExecute executes the request + // @return ContactAssignment + TenancyContactAssignmentsRetrieveExecute(r ApiTenancyContactAssignmentsRetrieveRequest) (*ContactAssignment, *http.Response, error) + + /* + 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 + */ + TenancyContactAssignmentsUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsUpdateRequest + + // TenancyContactAssignmentsUpdateExecute executes the request + // @return ContactAssignment + TenancyContactAssignmentsUpdateExecute(r ApiTenancyContactAssignmentsUpdateRequest) (*ContactAssignment, *http.Response, error) + + /* + 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 + */ + TenancyContactGroupsBulkDestroy(ctx context.Context) ApiTenancyContactGroupsBulkDestroyRequest + + // TenancyContactGroupsBulkDestroyExecute executes the request + TenancyContactGroupsBulkDestroyExecute(r ApiTenancyContactGroupsBulkDestroyRequest) (*http.Response, error) + + /* + TenancyContactGroupsBulkPartialUpdate Method for TenancyContactGroupsBulkPartialUpdate + + 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 + */ + TenancyContactGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyContactGroupsBulkPartialUpdateRequest + + // TenancyContactGroupsBulkPartialUpdateExecute executes the request + // @return []ContactGroup + TenancyContactGroupsBulkPartialUpdateExecute(r ApiTenancyContactGroupsBulkPartialUpdateRequest) ([]ContactGroup, *http.Response, error) + + /* + 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 + */ + TenancyContactGroupsBulkUpdate(ctx context.Context) ApiTenancyContactGroupsBulkUpdateRequest + + // TenancyContactGroupsBulkUpdateExecute executes the request + // @return []ContactGroup + TenancyContactGroupsBulkUpdateExecute(r ApiTenancyContactGroupsBulkUpdateRequest) ([]ContactGroup, *http.Response, error) + + /* + 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 + */ + TenancyContactGroupsCreate(ctx context.Context) ApiTenancyContactGroupsCreateRequest + + // TenancyContactGroupsCreateExecute executes the request + // @return ContactGroup + TenancyContactGroupsCreateExecute(r ApiTenancyContactGroupsCreateRequest) (*ContactGroup, *http.Response, error) + + /* + 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 + */ + TenancyContactGroupsDestroy(ctx context.Context, id int32) ApiTenancyContactGroupsDestroyRequest + + // TenancyContactGroupsDestroyExecute executes the request + TenancyContactGroupsDestroyExecute(r ApiTenancyContactGroupsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyContactGroupsList(ctx context.Context) ApiTenancyContactGroupsListRequest + + // TenancyContactGroupsListExecute executes the request + // @return PaginatedContactGroupList + TenancyContactGroupsListExecute(r ApiTenancyContactGroupsListRequest) (*PaginatedContactGroupList, *http.Response, error) + + /* + 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 + */ + TenancyContactGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsPartialUpdateRequest + + // TenancyContactGroupsPartialUpdateExecute executes the request + // @return ContactGroup + TenancyContactGroupsPartialUpdateExecute(r ApiTenancyContactGroupsPartialUpdateRequest) (*ContactGroup, *http.Response, error) + + /* + 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 + */ + TenancyContactGroupsRetrieve(ctx context.Context, id int32) ApiTenancyContactGroupsRetrieveRequest + + // TenancyContactGroupsRetrieveExecute executes the request + // @return ContactGroup + TenancyContactGroupsRetrieveExecute(r ApiTenancyContactGroupsRetrieveRequest) (*ContactGroup, *http.Response, error) + + /* + 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 + */ + TenancyContactGroupsUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsUpdateRequest + + // TenancyContactGroupsUpdateExecute executes the request + // @return ContactGroup + TenancyContactGroupsUpdateExecute(r ApiTenancyContactGroupsUpdateRequest) (*ContactGroup, *http.Response, error) + + /* + 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 + */ + TenancyContactRolesBulkDestroy(ctx context.Context) ApiTenancyContactRolesBulkDestroyRequest + + // TenancyContactRolesBulkDestroyExecute executes the request + TenancyContactRolesBulkDestroyExecute(r ApiTenancyContactRolesBulkDestroyRequest) (*http.Response, error) + + /* + TenancyContactRolesBulkPartialUpdate Method for TenancyContactRolesBulkPartialUpdate + + 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 + */ + TenancyContactRolesBulkPartialUpdate(ctx context.Context) ApiTenancyContactRolesBulkPartialUpdateRequest + + // TenancyContactRolesBulkPartialUpdateExecute executes the request + // @return []ContactRole + TenancyContactRolesBulkPartialUpdateExecute(r ApiTenancyContactRolesBulkPartialUpdateRequest) ([]ContactRole, *http.Response, error) + + /* + 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 + */ + TenancyContactRolesBulkUpdate(ctx context.Context) ApiTenancyContactRolesBulkUpdateRequest + + // TenancyContactRolesBulkUpdateExecute executes the request + // @return []ContactRole + TenancyContactRolesBulkUpdateExecute(r ApiTenancyContactRolesBulkUpdateRequest) ([]ContactRole, *http.Response, error) + + /* + 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 + */ + TenancyContactRolesCreate(ctx context.Context) ApiTenancyContactRolesCreateRequest + + // TenancyContactRolesCreateExecute executes the request + // @return ContactRole + TenancyContactRolesCreateExecute(r ApiTenancyContactRolesCreateRequest) (*ContactRole, *http.Response, error) + + /* + 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 + */ + TenancyContactRolesDestroy(ctx context.Context, id int32) ApiTenancyContactRolesDestroyRequest + + // TenancyContactRolesDestroyExecute executes the request + TenancyContactRolesDestroyExecute(r ApiTenancyContactRolesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyContactRolesList(ctx context.Context) ApiTenancyContactRolesListRequest + + // TenancyContactRolesListExecute executes the request + // @return PaginatedContactRoleList + TenancyContactRolesListExecute(r ApiTenancyContactRolesListRequest) (*PaginatedContactRoleList, *http.Response, error) + + /* + 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 + */ + TenancyContactRolesPartialUpdate(ctx context.Context, id int32) ApiTenancyContactRolesPartialUpdateRequest + + // TenancyContactRolesPartialUpdateExecute executes the request + // @return ContactRole + TenancyContactRolesPartialUpdateExecute(r ApiTenancyContactRolesPartialUpdateRequest) (*ContactRole, *http.Response, error) + + /* + 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 + */ + TenancyContactRolesRetrieve(ctx context.Context, id int32) ApiTenancyContactRolesRetrieveRequest + + // TenancyContactRolesRetrieveExecute executes the request + // @return ContactRole + TenancyContactRolesRetrieveExecute(r ApiTenancyContactRolesRetrieveRequest) (*ContactRole, *http.Response, error) + + /* + 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 + */ + TenancyContactRolesUpdate(ctx context.Context, id int32) ApiTenancyContactRolesUpdateRequest + + // TenancyContactRolesUpdateExecute executes the request + // @return ContactRole + TenancyContactRolesUpdateExecute(r ApiTenancyContactRolesUpdateRequest) (*ContactRole, *http.Response, error) + + /* + 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 + */ + TenancyContactsBulkDestroy(ctx context.Context) ApiTenancyContactsBulkDestroyRequest + + // TenancyContactsBulkDestroyExecute executes the request + TenancyContactsBulkDestroyExecute(r ApiTenancyContactsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyContactsBulkPartialUpdate(ctx context.Context) ApiTenancyContactsBulkPartialUpdateRequest + + // TenancyContactsBulkPartialUpdateExecute executes the request + // @return []Contact + TenancyContactsBulkPartialUpdateExecute(r ApiTenancyContactsBulkPartialUpdateRequest) ([]Contact, *http.Response, error) + + /* + 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 + */ + TenancyContactsBulkUpdate(ctx context.Context) ApiTenancyContactsBulkUpdateRequest + + // TenancyContactsBulkUpdateExecute executes the request + // @return []Contact + TenancyContactsBulkUpdateExecute(r ApiTenancyContactsBulkUpdateRequest) ([]Contact, *http.Response, error) + + /* + 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 + */ + TenancyContactsCreate(ctx context.Context) ApiTenancyContactsCreateRequest + + // TenancyContactsCreateExecute executes the request + // @return Contact + TenancyContactsCreateExecute(r ApiTenancyContactsCreateRequest) (*Contact, *http.Response, error) + + /* + 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 + */ + TenancyContactsDestroy(ctx context.Context, id int32) ApiTenancyContactsDestroyRequest + + // TenancyContactsDestroyExecute executes the request + TenancyContactsDestroyExecute(r ApiTenancyContactsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyContactsList(ctx context.Context) ApiTenancyContactsListRequest + + // TenancyContactsListExecute executes the request + // @return PaginatedContactList + TenancyContactsListExecute(r ApiTenancyContactsListRequest) (*PaginatedContactList, *http.Response, error) + + /* + 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 + */ + TenancyContactsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactsPartialUpdateRequest + + // TenancyContactsPartialUpdateExecute executes the request + // @return Contact + TenancyContactsPartialUpdateExecute(r ApiTenancyContactsPartialUpdateRequest) (*Contact, *http.Response, error) + + /* + 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 + */ + TenancyContactsRetrieve(ctx context.Context, id int32) ApiTenancyContactsRetrieveRequest + + // TenancyContactsRetrieveExecute executes the request + // @return Contact + TenancyContactsRetrieveExecute(r ApiTenancyContactsRetrieveRequest) (*Contact, *http.Response, error) + + /* + 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 + */ + TenancyContactsUpdate(ctx context.Context, id int32) ApiTenancyContactsUpdateRequest + + // TenancyContactsUpdateExecute executes the request + // @return Contact + TenancyContactsUpdateExecute(r ApiTenancyContactsUpdateRequest) (*Contact, *http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsBulkDestroy(ctx context.Context) ApiTenancyTenantGroupsBulkDestroyRequest + + // TenancyTenantGroupsBulkDestroyExecute executes the request + TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTenantGroupsBulkDestroyRequest) (*http.Response, error) + + /* + TenancyTenantGroupsBulkPartialUpdate Method for TenancyTenantGroupsBulkPartialUpdate + + 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 + */ + TenancyTenantGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkPartialUpdateRequest + + // TenancyTenantGroupsBulkPartialUpdateExecute executes the request + // @return []TenantGroup + TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTenancyTenantGroupsBulkPartialUpdateRequest) ([]TenantGroup, *http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsBulkUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkUpdateRequest + + // TenancyTenantGroupsBulkUpdateExecute executes the request + // @return []TenantGroup + TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTenantGroupsBulkUpdateRequest) ([]TenantGroup, *http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsCreate(ctx context.Context) ApiTenancyTenantGroupsCreateRequest + + // TenancyTenantGroupsCreateExecute executes the request + // @return TenantGroup + TenancyTenantGroupsCreateExecute(r ApiTenancyTenantGroupsCreateRequest) (*TenantGroup, *http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsDestroy(ctx context.Context, id int32) ApiTenancyTenantGroupsDestroyRequest + + // TenancyTenantGroupsDestroyExecute executes the request + TenancyTenantGroupsDestroyExecute(r ApiTenancyTenantGroupsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsList(ctx context.Context) ApiTenancyTenantGroupsListRequest + + // TenancyTenantGroupsListExecute executes the request + // @return PaginatedTenantGroupList + TenancyTenantGroupsListExecute(r ApiTenancyTenantGroupsListRequest) (*PaginatedTenantGroupList, *http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsPartialUpdateRequest + + // TenancyTenantGroupsPartialUpdateExecute executes the request + // @return TenantGroup + TenancyTenantGroupsPartialUpdateExecute(r ApiTenancyTenantGroupsPartialUpdateRequest) (*TenantGroup, *http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsRetrieve(ctx context.Context, id int32) ApiTenancyTenantGroupsRetrieveRequest + + // TenancyTenantGroupsRetrieveExecute executes the request + // @return TenantGroup + TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenantGroupsRetrieveRequest) (*TenantGroup, *http.Response, error) + + /* + 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 + */ + TenancyTenantGroupsUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsUpdateRequest + + // TenancyTenantGroupsUpdateExecute executes the request + // @return TenantGroup + TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantGroupsUpdateRequest) (*TenantGroup, *http.Response, error) + + /* + 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 + */ + TenancyTenantsBulkDestroy(ctx context.Context) ApiTenancyTenantsBulkDestroyRequest + + // TenancyTenantsBulkDestroyExecute executes the request + TenancyTenantsBulkDestroyExecute(r ApiTenancyTenantsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyTenantsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantsBulkPartialUpdateRequest + + // TenancyTenantsBulkPartialUpdateExecute executes the request + // @return []Tenant + TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyTenantsBulkPartialUpdateRequest) ([]Tenant, *http.Response, error) + + /* + 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 + */ + TenancyTenantsBulkUpdate(ctx context.Context) ApiTenancyTenantsBulkUpdateRequest + + // TenancyTenantsBulkUpdateExecute executes the request + // @return []Tenant + TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsBulkUpdateRequest) ([]Tenant, *http.Response, error) + + /* + 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 + */ + TenancyTenantsCreate(ctx context.Context) ApiTenancyTenantsCreateRequest + + // TenancyTenantsCreateExecute executes the request + // @return Tenant + TenancyTenantsCreateExecute(r ApiTenancyTenantsCreateRequest) (*Tenant, *http.Response, error) + + /* + 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 + */ + TenancyTenantsDestroy(ctx context.Context, id int32) ApiTenancyTenantsDestroyRequest + + // TenancyTenantsDestroyExecute executes the request + TenancyTenantsDestroyExecute(r ApiTenancyTenantsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + TenancyTenantsList(ctx context.Context) ApiTenancyTenantsListRequest + + // TenancyTenantsListExecute executes the request + // @return PaginatedTenantList + TenancyTenantsListExecute(r ApiTenancyTenantsListRequest) (*PaginatedTenantList, *http.Response, error) + + /* + 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 + */ + TenancyTenantsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantsPartialUpdateRequest + + // TenancyTenantsPartialUpdateExecute executes the request + // @return Tenant + TenancyTenantsPartialUpdateExecute(r ApiTenancyTenantsPartialUpdateRequest) (*Tenant, *http.Response, error) + + /* + 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 + */ + TenancyTenantsRetrieve(ctx context.Context, id int32) ApiTenancyTenantsRetrieveRequest + + // TenancyTenantsRetrieveExecute executes the request + // @return Tenant + TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRetrieveRequest) (*Tenant, *http.Response, error) + + /* + 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 + */ + TenancyTenantsUpdate(ctx context.Context, id int32) ApiTenancyTenantsUpdateRequest + + // TenancyTenantsUpdateExecute executes the request + // @return Tenant + TenancyTenantsUpdateExecute(r ApiTenancyTenantsUpdateRequest) (*Tenant, *http.Response, error) +} + // TenancyAPIService TenancyAPI service type TenancyAPIService service type ApiTenancyContactAssignmentsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactAssignmentRequest *[]ContactAssignmentRequest } @@ -44,22 +816,22 @@ 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 { return ApiTenancyContactAssignmentsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -138,8 +910,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsBulkDestroyExecute(r ApiTen } type ApiTenancyContactAssignmentsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactAssignmentRequest *[]ContactAssignmentRequest } @@ -157,25 +929,24 @@ 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 { return ApiTenancyContactAssignmentsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactAssignment +// @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") @@ -263,8 +1034,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsBulkPartialUpdateExecute(r } type ApiTenancyContactAssignmentsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactAssignmentRequest *[]ContactAssignmentRequest } @@ -282,25 +1053,24 @@ 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 { return ApiTenancyContactAssignmentsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactAssignment +// @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") @@ -388,8 +1158,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsBulkUpdateExecute(r ApiTena } type ApiTenancyContactAssignmentsCreateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI writableContactAssignmentRequest *WritableContactAssignmentRequest } @@ -407,25 +1177,24 @@ 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 { return ApiTenancyContactAssignmentsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ContactAssignment +// @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") @@ -513,9 +1282,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsCreateExecute(r ApiTenancyC } type ApiTenancyContactAssignmentsDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactAssignmentsDestroyRequest) Execute() (*http.Response, error) { @@ -527,24 +1296,24 @@ 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 { 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) { 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") @@ -619,61 +1388,60 @@ func (a *TenancyAPIService) TenancyContactAssignmentsDestroyExecute(r ApiTenancy } type ApiTenancyContactAssignmentsListRequest struct { - ctx context.Context - ApiService *TenancyAPIService - contactId *[]int32 - contactIdN *[]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 *[]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 + ctx context.Context + ApiService TenancyAPI + contactId *[]int32 + contactIdN *[]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 *[]string + groupIdN *[]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 - objectId *[]int32 - objectIdEmpty *bool - objectIdGt *[]int32 - objectIdGte *[]int32 - objectIdLt *[]int32 - objectIdLte *[]int32 - objectIdN *[]int32 - objectType *string - objectTypeN *string - objectTypeId *int32 - objectTypeIdN *int32 - offset *int32 - ordering *string - priority *TenancyContactAssignmentsListPriorityParameter - priorityN *TenancyContactAssignmentsListPriorityParameter - q *string - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string + objectId *[]int32 + objectIdEmpty *bool + objectIdGt *[]int32 + objectIdGte *[]int32 + objectIdLt *[]int32 + objectIdLte *[]int32 + objectIdN *[]int32 + objectType *string + objectTypeN *string + objectTypeId *int32 + objectTypeIdN *int32 + offset *int32 + ordering *string + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter + q *string + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string } // Contact (ID) @@ -728,26 +1496,22 @@ func (r ApiTenancyContactAssignmentsListRequest) CreatedByRequest(createdByReque return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) Group(group []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Group(group []string) ApiTenancyContactAssignmentsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []string) ApiTenancyContactAssignmentsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []string) ApiTenancyContactAssignmentsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactAssignmentsListRequest { r.groupIdN = &groupIdN return r } @@ -901,17 +1665,11 @@ func (r ApiTenancyContactAssignmentsListRequest) Ordering(ordering string) ApiTe } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) Priority(priority TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priority = &priority return r } -// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { - r.priorityN = &priorityN - return r -} - // Search func (r ApiTenancyContactAssignmentsListRequest) Q(q string) ApiTenancyContactAssignmentsListRequest { r.q = &q @@ -966,25 +1724,24 @@ 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 { return ApiTenancyContactAssignmentsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactAssignmentList +// @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") @@ -1003,10 +1760,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", t, "form", "multi") } } if r.contactIdN != nil { @@ -1014,10 +1771,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", t, "form", "multi") } } if r.created != nil { @@ -1025,10 +1782,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -1036,10 +1793,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -1047,10 +1804,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -1058,10 +1815,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -1069,10 +1826,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -1080,10 +1837,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -1091,24 +1848,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } if r.group != nil { t := *r.group if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -1116,10 +1873,10 @@ 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, "group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -1127,10 +1884,10 @@ 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, "group_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -1138,10 +1895,10 @@ 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, "group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -1149,24 +1906,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -1174,10 +1931,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -1185,10 +1942,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -1196,10 +1953,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -1207,10 +1964,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -1218,10 +1975,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -1229,10 +1986,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -1240,10 +1997,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -1251,10 +2008,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -1262,10 +2019,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -1273,10 +2030,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -1284,41 +2041,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "form", "multi") } } if r.objectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "form", "multi") } } if r.objectIdGte != nil { @@ -1326,10 +2083,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "form", "multi") } } if r.objectIdLt != nil { @@ -1337,10 +2094,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "form", "multi") } } if r.objectIdLte != nil { @@ -1348,10 +2105,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "form", "multi") } } if r.objectIdN != nil { @@ -1359,48 +2116,45 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "form", "multi") } } if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") } if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") } if r.objectTypeId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", r.objectTypeId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", r.objectTypeId, "form", "") } if r.objectTypeIdN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", r.objectTypeIdN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", r.objectTypeIdN, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.priority != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "") - } - if r.priorityN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", r.priorityN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } if r.roleN != nil { @@ -1408,10 +2162,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } if r.roleId != nil { @@ -1419,10 +2173,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } if r.roleIdN != nil { @@ -1430,10 +2184,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") } } if r.tag != nil { @@ -1441,10 +2195,10 @@ 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, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -1452,14 +2206,14 @@ 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, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1530,9 +2284,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyCon } type ApiTenancyContactAssignmentsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 patchedWritableContactAssignmentRequest *PatchedWritableContactAssignmentRequest } @@ -1550,27 +2304,26 @@ 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 { return ApiTenancyContactAssignmentsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactAssignment +// @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") @@ -1656,9 +2409,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsPartialUpdateExecute(r ApiT } type ApiTenancyContactAssignmentsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactAssignmentsRetrieveRequest) Execute() (*ContactAssignment, *http.Response, error) { @@ -1670,27 +2423,26 @@ 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 { return ApiTenancyContactAssignmentsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactAssignment +// @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") @@ -1774,9 +2526,9 @@ func (a *TenancyAPIService) TenancyContactAssignmentsRetrieveExecute(r ApiTenanc } type ApiTenancyContactAssignmentsUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 writableContactAssignmentRequest *WritableContactAssignmentRequest } @@ -1794,27 +2546,26 @@ 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 { return ApiTenancyContactAssignmentsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactAssignment +// @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") @@ -1903,8 +2654,8 @@ func (a *TenancyAPIService) TenancyContactAssignmentsUpdateExecute(r ApiTenancyC } type ApiTenancyContactGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactGroupRequest *[]ContactGroupRequest } @@ -1922,22 +2673,22 @@ 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 { return ApiTenancyContactGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -2016,8 +2767,8 @@ func (a *TenancyAPIService) TenancyContactGroupsBulkDestroyExecute(r ApiTenancyC } type ApiTenancyContactGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactGroupRequest *[]ContactGroupRequest } @@ -2035,25 +2786,24 @@ 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 { return ApiTenancyContactGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactGroup +// @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") @@ -2141,8 +2891,8 @@ func (a *TenancyAPIService) TenancyContactGroupsBulkPartialUpdateExecute(r ApiTe } type ApiTenancyContactGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactGroupRequest *[]ContactGroupRequest } @@ -2160,25 +2910,24 @@ 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 { return ApiTenancyContactGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactGroup +// @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") @@ -2266,8 +3015,8 @@ func (a *TenancyAPIService) TenancyContactGroupsBulkUpdateExecute(r ApiTenancyCo } type ApiTenancyContactGroupsCreateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI writableContactGroupRequest *WritableContactGroupRequest } @@ -2285,25 +3034,24 @@ 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 { return ApiTenancyContactGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ContactGroup +// @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") @@ -2391,9 +3139,9 @@ func (a *TenancyAPIService) TenancyContactGroupsCreateExecute(r ApiTenancyContac } type ApiTenancyContactGroupsDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -2405,24 +3153,24 @@ 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 { 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) { 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") @@ -2497,101 +3245,97 @@ func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyConta } type ApiTenancyContactGroupsListRequest struct { - ctx context.Context - ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]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 + ctx context.Context + ApiService TenancyAPI + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]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 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 -} - -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyContactGroupsListRequest { + 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 +} + +func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []string) ApiTenancyContactGroupsListRequest { r.ancestor = &ancestor return r } -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyContactGroupsListRequest { r.ancestorN = &ancestorN return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyContactGroupsListRequest { r.ancestorId = &ancestorId return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyContactGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -2948,25 +3692,24 @@ 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 { return ApiTenancyContactGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactGroupList +// @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") @@ -2985,10 +3728,10 @@ 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, "ancestor", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "form", "multi") } } if r.ancestorN != nil { @@ -2996,10 +3739,10 @@ 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, "ancestor__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "form", "multi") } } if r.ancestorId != nil { @@ -3007,10 +3750,10 @@ 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, "ancestor_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "form", "multi") } } if r.ancestorIdN != nil { @@ -3018,10 +3761,10 @@ 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, "ancestor_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi") } } if r.created != nil { @@ -3029,10 +3772,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -3040,10 +3783,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -3051,10 +3794,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -3062,10 +3805,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -3073,10 +3816,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -3084,10 +3827,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -3095,38 +3838,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -3134,10 +3877,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -3145,10 +3888,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -3156,10 +3899,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -3167,10 +3910,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -3178,10 +3921,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -3189,10 +3932,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -3200,10 +3943,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -3211,10 +3954,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -3222,24 +3965,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -3247,10 +3990,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -3258,10 +4001,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -3269,10 +4012,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -3280,10 +4023,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -3291,10 +4034,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -3302,10 +4045,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -3313,10 +4056,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -3324,10 +4067,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -3335,10 +4078,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -3346,10 +4089,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -3357,41 +4100,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -3399,10 +4142,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -3410,10 +4153,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -3421,10 +4164,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -3432,10 +4175,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -3443,10 +4186,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -3454,10 +4197,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -3465,10 +4208,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -3476,27 +4219,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi") } } if r.parentN != nil { @@ -3504,10 +4247,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "form", "multi") } } if r.parentId != nil { @@ -3515,10 +4258,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } if r.parentIdN != nil { @@ -3526,38 +4269,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -3565,10 +4308,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -3576,10 +4319,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -3587,10 +4330,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -3598,10 +4341,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -3609,10 +4352,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -3620,10 +4363,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -3631,10 +4374,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -3642,10 +4385,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -3653,10 +4396,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -3664,14 +4407,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3742,9 +4485,9 @@ func (a *TenancyAPIService) TenancyContactGroupsListExecute(r ApiTenancyContactG } type ApiTenancyContactGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 patchedWritableContactGroupRequest *PatchedWritableContactGroupRequest } @@ -3762,27 +4505,26 @@ 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 { return ApiTenancyContactGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactGroup +// @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") @@ -3868,9 +4610,9 @@ func (a *TenancyAPIService) TenancyContactGroupsPartialUpdateExecute(r ApiTenanc } type ApiTenancyContactGroupsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactGroupsRetrieveRequest) Execute() (*ContactGroup, *http.Response, error) { @@ -3882,27 +4624,26 @@ 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 { return ApiTenancyContactGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactGroup +// @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") @@ -3986,9 +4727,9 @@ func (a *TenancyAPIService) TenancyContactGroupsRetrieveExecute(r ApiTenancyCont } type ApiTenancyContactGroupsUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 writableContactGroupRequest *WritableContactGroupRequest } @@ -4006,27 +4747,26 @@ 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 { return ApiTenancyContactGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactGroup +// @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") @@ -4115,8 +4855,8 @@ func (a *TenancyAPIService) TenancyContactGroupsUpdateExecute(r ApiTenancyContac } type ApiTenancyContactRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRoleRequest *[]ContactRoleRequest } @@ -4134,22 +4874,22 @@ 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 { return ApiTenancyContactRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -4228,8 +4968,8 @@ func (a *TenancyAPIService) TenancyContactRolesBulkDestroyExecute(r ApiTenancyCo } type ApiTenancyContactRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRoleRequest *[]ContactRoleRequest } @@ -4247,25 +4987,24 @@ 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 { return ApiTenancyContactRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactRole +// @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") @@ -4353,8 +5092,8 @@ func (a *TenancyAPIService) TenancyContactRolesBulkPartialUpdateExecute(r ApiTen } type ApiTenancyContactRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRoleRequest *[]ContactRoleRequest } @@ -4372,25 +5111,24 @@ 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 { return ApiTenancyContactRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactRole +// @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") @@ -4478,8 +5216,8 @@ func (a *TenancyAPIService) TenancyContactRolesBulkUpdateExecute(r ApiTenancyCon } type ApiTenancyContactRolesCreateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRoleRequest *ContactRoleRequest } @@ -4497,25 +5235,24 @@ 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 { return ApiTenancyContactRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ContactRole +// @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") @@ -4603,9 +5340,9 @@ func (a *TenancyAPIService) TenancyContactRolesCreateExecute(r ApiTenancyContact } type ApiTenancyContactRolesDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactRolesDestroyRequest) Execute() (*http.Response, error) { @@ -4617,24 +5354,24 @@ 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 { 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) { 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") @@ -4709,71 +5446,71 @@ func (a *TenancyAPIService) TenancyContactRolesDestroyExecute(r ApiTenancyContac } type ApiTenancyContactRolesListRequest struct { - 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 - 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 + ctx context.Context + ApiService TenancyAPI + 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 + 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 } func (r ApiTenancyContactRolesListRequest) Created(created []time.Time) ApiTenancyContactRolesListRequest { @@ -5104,25 +5841,24 @@ 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 { return ApiTenancyContactRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactRoleList +// @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") @@ -5141,10 +5877,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -5152,10 +5888,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -5163,10 +5899,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -5174,10 +5910,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -5185,10 +5921,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -5196,10 +5932,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -5207,38 +5943,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -5246,10 +5982,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -5257,10 +5993,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -5268,10 +6004,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -5279,10 +6015,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -5290,10 +6026,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -5301,10 +6037,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -5312,10 +6048,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -5323,10 +6059,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -5334,24 +6070,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -5359,10 +6095,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -5370,10 +6106,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -5381,10 +6117,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -5392,10 +6128,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -5403,10 +6139,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -5414,10 +6150,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -5425,10 +6161,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -5436,10 +6172,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -5447,10 +6183,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -5458,10 +6194,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -5469,41 +6205,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -5511,10 +6247,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -5522,10 +6258,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -5533,10 +6269,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -5544,10 +6280,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -5555,10 +6291,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -5566,10 +6302,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -5577,10 +6313,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -5588,44 +6324,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -5633,10 +6369,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -5644,10 +6380,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -5655,10 +6391,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -5666,10 +6402,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -5677,10 +6413,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -5688,10 +6424,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -5699,10 +6435,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -5710,10 +6446,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -5721,10 +6457,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -5732,14 +6468,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5810,9 +6546,9 @@ func (a *TenancyAPIService) TenancyContactRolesListExecute(r ApiTenancyContactRo } type ApiTenancyContactRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 patchedContactRoleRequest *PatchedContactRoleRequest } @@ -5830,27 +6566,26 @@ 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 { return ApiTenancyContactRolesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactRole +// @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") @@ -5936,9 +6671,9 @@ func (a *TenancyAPIService) TenancyContactRolesPartialUpdateExecute(r ApiTenancy } type ApiTenancyContactRolesRetrieveRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactRolesRetrieveRequest) Execute() (*ContactRole, *http.Response, error) { @@ -5950,27 +6685,26 @@ 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 { return ApiTenancyContactRolesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactRole +// @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") @@ -6054,9 +6788,9 @@ func (a *TenancyAPIService) TenancyContactRolesRetrieveExecute(r ApiTenancyConta } type ApiTenancyContactRolesUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 contactRoleRequest *ContactRoleRequest } @@ -6074,27 +6808,26 @@ 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 { return ApiTenancyContactRolesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactRole +// @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") @@ -6183,8 +6916,8 @@ func (a *TenancyAPIService) TenancyContactRolesUpdateExecute(r ApiTenancyContact } type ApiTenancyContactsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRequest *[]ContactRequest } @@ -6202,22 +6935,22 @@ 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 { return ApiTenancyContactsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -6296,8 +7029,8 @@ func (a *TenancyAPIService) TenancyContactsBulkDestroyExecute(r ApiTenancyContac } type ApiTenancyContactsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRequest *[]ContactRequest } @@ -6315,25 +7048,24 @@ 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 { return ApiTenancyContactsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Contact +// @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") @@ -6421,8 +7153,8 @@ func (a *TenancyAPIService) TenancyContactsBulkPartialUpdateExecute(r ApiTenancy } type ApiTenancyContactsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRequest *[]ContactRequest } @@ -6440,25 +7172,24 @@ 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 { return ApiTenancyContactsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Contact +// @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") @@ -6546,8 +7277,8 @@ func (a *TenancyAPIService) TenancyContactsBulkUpdateExecute(r ApiTenancyContact } type ApiTenancyContactsCreateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI contactRequest *ContactRequest } @@ -6565,25 +7296,24 @@ 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 { return ApiTenancyContactsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Contact +// @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") @@ -6671,9 +7401,9 @@ func (a *TenancyAPIService) TenancyContactsCreateExecute(r ApiTenancyContactsCre } type ApiTenancyContactsDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactsDestroyRequest) Execute() (*http.Response, error) { @@ -6685,24 +7415,24 @@ 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 { 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) { 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") @@ -6777,119 +7507,119 @@ 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 - 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 - 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 + ctx context.Context + ApiService TenancyAPI + 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 + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + email *[]string + emailEmpty *bool + emailIc *[]string + emailIe *[]string + emailIew *[]string + emailIsw *[]string + emailN *[]string + emailNic *[]string + emailNie *[]string + emailNiew *[]string + emailNisw *[]string + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]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 + 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 + 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 } func (r ApiTenancyContactsListRequest) Address(address []string) ApiTenancyContactsListRequest { @@ -7097,26 +7827,22 @@ func (r ApiTenancyContactsListRequest) EmailNisw(emailNisw []string) ApiTenancyC return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) Group(group []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) Group(group []string) ApiTenancyContactsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) GroupN(groupN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupN(groupN []string) ApiTenancyContactsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupId(groupId []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupId(groupId []string) ApiTenancyContactsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactsListRequest { r.groupIdN = &groupIdN return r } @@ -7464,25 +8190,24 @@ 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 { return ApiTenancyContactsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactList +// @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") @@ -7501,24 +8226,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address", t, "form", "multi") } } if r.addressEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__empty", r.addressEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__empty", r.addressEmpty, "form", "") } if r.addressIc != nil { t := *r.addressIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__ic", t, "form", "multi") } } if r.addressIe != nil { @@ -7526,10 +8251,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__ie", t, "form", "multi") } } if r.addressIew != nil { @@ -7537,10 +8262,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__iew", t, "form", "multi") } } if r.addressIsw != nil { @@ -7548,10 +8273,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__isw", t, "form", "multi") } } if r.addressN != nil { @@ -7559,10 +8284,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__n", t, "form", "multi") } } if r.addressNic != nil { @@ -7570,10 +8295,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nic", t, "form", "multi") } } if r.addressNie != nil { @@ -7581,10 +8306,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nie", t, "form", "multi") } } if r.addressNiew != nil { @@ -7592,10 +8317,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__niew", t, "form", "multi") } } if r.addressNisw != nil { @@ -7603,10 +8328,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nisw", t, "form", "multi") } } if r.created != nil { @@ -7614,10 +8339,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -7625,10 +8350,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -7636,10 +8361,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -7647,10 +8372,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -7658,10 +8383,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -7669,10 +8394,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -7680,38 +8405,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -7719,10 +8444,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -7730,10 +8455,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -7741,10 +8466,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -7752,10 +8477,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -7763,10 +8488,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -7774,10 +8499,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -7785,10 +8510,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -7796,10 +8521,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.email != nil { @@ -7807,24 +8532,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email", t, "form", "multi") } } if r.emailEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__empty", r.emailEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__empty", r.emailEmpty, "form", "") } if r.emailIc != nil { t := *r.emailIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", t, "form", "multi") } } if r.emailIe != nil { @@ -7832,10 +8557,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", t, "form", "multi") } } if r.emailIew != nil { @@ -7843,10 +8568,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", t, "form", "multi") } } if r.emailIsw != nil { @@ -7854,10 +8579,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", t, "form", "multi") } } if r.emailN != nil { @@ -7865,10 +8590,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", t, "form", "multi") } } if r.emailNic != nil { @@ -7876,10 +8601,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", t, "form", "multi") } } if r.emailNie != nil { @@ -7887,10 +8612,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", t, "form", "multi") } } if r.emailNiew != nil { @@ -7898,10 +8623,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", t, "form", "multi") } } if r.emailNisw != nil { @@ -7909,10 +8634,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", t, "form", "multi") } } if r.group != nil { @@ -7920,10 +8645,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -7931,10 +8656,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -7942,10 +8667,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -7953,10 +8678,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -7964,24 +8689,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -7989,10 +8714,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -8000,10 +8725,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -8011,10 +8736,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -8022,10 +8747,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -8033,10 +8758,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -8044,10 +8769,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -8055,10 +8780,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -8066,10 +8791,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -8077,10 +8802,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -8088,10 +8813,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -8099,38 +8824,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.link != nil { t := *r.link if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link", t, "form", "multi") } } if r.linkEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__empty", r.linkEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__empty", r.linkEmpty, "form", "") } if r.linkIc != nil { t := *r.linkIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__ic", t, "form", "multi") } } if r.linkIe != nil { @@ -8138,10 +8863,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__ie", t, "form", "multi") } } if r.linkIew != nil { @@ -8149,10 +8874,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__iew", t, "form", "multi") } } if r.linkIsw != nil { @@ -8160,10 +8885,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__isw", t, "form", "multi") } } if r.linkN != nil { @@ -8171,10 +8896,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__n", t, "form", "multi") } } if r.linkNic != nil { @@ -8182,10 +8907,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nic", t, "form", "multi") } } if r.linkNie != nil { @@ -8193,10 +8918,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nie", t, "form", "multi") } } if r.linkNiew != nil { @@ -8204,10 +8929,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__niew", t, "form", "multi") } } if r.linkNisw != nil { @@ -8215,38 +8940,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nisw", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -8254,10 +8979,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -8265,10 +8990,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -8276,10 +9001,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -8287,10 +9012,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -8298,10 +9023,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -8309,10 +9034,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -8320,10 +9045,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -8331,41 +9056,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.phone != nil { t := *r.phone if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone", t, "form", "multi") } } if r.phoneEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__empty", r.phoneEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__empty", r.phoneEmpty, "form", "") } if r.phoneIc != nil { t := *r.phoneIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ic", t, "form", "multi") } } if r.phoneIe != nil { @@ -8373,10 +9098,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ie", t, "form", "multi") } } if r.phoneIew != nil { @@ -8384,10 +9109,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__iew", t, "form", "multi") } } if r.phoneIsw != nil { @@ -8395,10 +9120,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__isw", t, "form", "multi") } } if r.phoneN != nil { @@ -8406,10 +9131,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__n", t, "form", "multi") } } if r.phoneNic != nil { @@ -8417,10 +9142,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nic", t, "form", "multi") } } if r.phoneNie != nil { @@ -8428,10 +9153,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nie", t, "form", "multi") } } if r.phoneNiew != nil { @@ -8439,10 +9164,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__niew", t, "form", "multi") } } if r.phoneNisw != nil { @@ -8450,24 +9175,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nisw", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -8475,10 +9200,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.title != nil { @@ -8486,24 +9211,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title", t, "form", "multi") } } if r.titleEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__empty", r.titleEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__empty", r.titleEmpty, "form", "") } if r.titleIc != nil { t := *r.titleIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__ic", t, "form", "multi") } } if r.titleIe != nil { @@ -8511,10 +9236,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__ie", t, "form", "multi") } } if r.titleIew != nil { @@ -8522,10 +9247,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__iew", t, "form", "multi") } } if r.titleIsw != nil { @@ -8533,10 +9258,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__isw", t, "form", "multi") } } if r.titleN != nil { @@ -8544,10 +9269,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__n", t, "form", "multi") } } if r.titleNic != nil { @@ -8555,10 +9280,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nic", t, "form", "multi") } } if r.titleNie != nil { @@ -8566,10 +9291,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nie", t, "form", "multi") } } if r.titleNiew != nil { @@ -8577,10 +9302,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__niew", t, "form", "multi") } } if r.titleNisw != nil { @@ -8588,14 +9313,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nisw", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8666,9 +9391,9 @@ func (a *TenancyAPIService) TenancyContactsListExecute(r ApiTenancyContactsListR } type ApiTenancyContactsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 patchedContactRequest *PatchedContactRequest } @@ -8686,27 +9411,26 @@ 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 { return ApiTenancyContactsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Contact +// @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") @@ -8792,9 +9516,9 @@ func (a *TenancyAPIService) TenancyContactsPartialUpdateExecute(r ApiTenancyCont } type ApiTenancyContactsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyContactsRetrieveRequest) Execute() (*Contact, *http.Response, error) { @@ -8806,27 +9530,26 @@ 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 { return ApiTenancyContactsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Contact +// @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") @@ -8910,9 +9633,9 @@ func (a *TenancyAPIService) TenancyContactsRetrieveExecute(r ApiTenancyContactsR } type ApiTenancyContactsUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 contactRequest *ContactRequest } @@ -8930,27 +9653,26 @@ 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 { return ApiTenancyContactsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Contact +// @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") @@ -9039,8 +9761,8 @@ func (a *TenancyAPIService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpd } type ApiTenancyTenantGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI tenantGroupRequest *[]TenantGroupRequest } @@ -9058,22 +9780,22 @@ 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 { return ApiTenancyTenantGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -9152,8 +9874,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTe } type ApiTenancyTenantGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI tenantGroupRequest *[]TenantGroupRequest } @@ -9171,25 +9893,24 @@ 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 { return ApiTenancyTenantGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TenantGroup +// @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") @@ -9277,8 +9998,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTen } type ApiTenancyTenantGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI tenantGroupRequest *[]TenantGroupRequest } @@ -9296,25 +10017,24 @@ 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 { return ApiTenancyTenantGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TenantGroup +// @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") @@ -9402,8 +10122,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTen } type ApiTenancyTenantGroupsCreateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI writableTenantGroupRequest *WritableTenantGroupRequest } @@ -9421,25 +10141,24 @@ 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 { return ApiTenancyTenantGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return TenantGroup +// @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") @@ -9527,9 +10246,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsCreateExecute(r ApiTenancyTenantG } type ApiTenancyTenantGroupsDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyTenantGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -9541,24 +10260,24 @@ 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 { 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) { 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") @@ -9633,101 +10352,97 @@ func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenant } type ApiTenancyTenantGroupsListRequest struct { - ctx context.Context - ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]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 + ctx context.Context + ApiService TenancyAPI + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]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 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 -} - -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyTenantGroupsListRequest { + 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 +} + +func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []string) ApiTenancyTenantGroupsListRequest { r.ancestor = &ancestor return r } -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyTenantGroupsListRequest { r.ancestorN = &ancestorN return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyTenantGroupsListRequest { r.ancestorId = &ancestorId return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyTenantGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -10084,25 +10799,24 @@ 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 { return ApiTenancyTenantGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTenantGroupList +// @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") @@ -10121,10 +10835,10 @@ 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, "ancestor", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "form", "multi") } } if r.ancestorN != nil { @@ -10132,10 +10846,10 @@ 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, "ancestor__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "form", "multi") } } if r.ancestorId != nil { @@ -10143,10 +10857,10 @@ 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, "ancestor_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "form", "multi") } } if r.ancestorIdN != nil { @@ -10154,10 +10868,10 @@ 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, "ancestor_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi") } } if r.created != nil { @@ -10165,10 +10879,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -10176,10 +10890,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -10187,10 +10901,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -10198,10 +10912,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -10209,10 +10923,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -10220,10 +10934,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -10231,38 +10945,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -10270,10 +10984,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -10281,10 +10995,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -10292,10 +11006,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -10303,10 +11017,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -10314,10 +11028,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -10325,10 +11039,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -10336,10 +11050,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -10347,10 +11061,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -10358,24 +11072,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -10383,10 +11097,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -10394,10 +11108,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -10405,10 +11119,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -10416,10 +11130,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -10427,10 +11141,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -10438,10 +11152,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -10449,10 +11163,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -10460,10 +11174,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -10471,10 +11185,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -10482,10 +11196,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -10493,41 +11207,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -10535,10 +11249,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -10546,10 +11260,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -10557,10 +11271,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -10568,10 +11282,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -10579,10 +11293,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -10590,10 +11304,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -10601,10 +11315,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -10612,27 +11326,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi") } } if r.parentN != nil { @@ -10640,10 +11354,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "form", "multi") } } if r.parentId != nil { @@ -10651,10 +11365,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } if r.parentIdN != nil { @@ -10662,38 +11376,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -10701,10 +11415,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -10712,10 +11426,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -10723,10 +11437,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -10734,10 +11448,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -10745,10 +11459,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -10756,10 +11470,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -10767,10 +11481,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -10778,10 +11492,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -10789,10 +11503,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -10800,14 +11514,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10878,9 +11592,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro } type ApiTenancyTenantGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 patchedWritableTenantGroupRequest *PatchedWritableTenantGroupRequest } @@ -10898,27 +11612,26 @@ 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 { return ApiTenancyTenantGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TenantGroup +// @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") @@ -11004,9 +11717,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsPartialUpdateExecute(r ApiTenancy } type ApiTenancyTenantGroupsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyTenantGroupsRetrieveRequest) Execute() (*TenantGroup, *http.Response, error) { @@ -11018,27 +11731,26 @@ 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 { return ApiTenancyTenantGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TenantGroup +// @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") @@ -11122,9 +11834,9 @@ func (a *TenancyAPIService) TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenan } type ApiTenancyTenantGroupsUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 writableTenantGroupRequest *WritableTenantGroupRequest } @@ -11142,27 +11854,26 @@ 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 { return ApiTenancyTenantGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TenantGroup +// @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") @@ -11251,8 +11962,8 @@ func (a *TenancyAPIService) TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantG } type ApiTenancyTenantsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI tenantRequest *[]TenantRequest } @@ -11270,22 +11981,22 @@ 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 { return ApiTenancyTenantsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -11364,8 +12075,8 @@ func (a *TenancyAPIService) TenancyTenantsBulkDestroyExecute(r ApiTenancyTenants } type ApiTenancyTenantsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI tenantRequest *[]TenantRequest } @@ -11383,25 +12094,24 @@ 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 { return ApiTenancyTenantsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tenant +// @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") @@ -11489,8 +12199,8 @@ func (a *TenancyAPIService) TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyT } type ApiTenancyTenantsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI tenantRequest *[]TenantRequest } @@ -11508,25 +12218,24 @@ 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 { return ApiTenancyTenantsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tenant +// @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") @@ -11614,8 +12323,8 @@ func (a *TenancyAPIService) TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsB } type ApiTenancyTenantsCreateRequest struct { - ctx context.Context - ApiService *TenancyAPIService + ctx context.Context + ApiService TenancyAPI tenantRequest *TenantRequest } @@ -11633,25 +12342,24 @@ 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 { return ApiTenancyTenantsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Tenant +// @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") @@ -11739,9 +12447,9 @@ func (a *TenancyAPIService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreat } type ApiTenancyTenantsDestroyRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyTenantsDestroyRequest) Execute() (*http.Response, error) { @@ -11753,24 +12461,24 @@ 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 { 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) { 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") @@ -11845,81 +12553,81 @@ 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 - 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 *[]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 + ctx context.Context + ApiService TenancyAPI + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]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 + 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 } // Contact @@ -11934,14 +12642,12 @@ func (r ApiTenancyTenantsListRequest) ContactN(contactN []int32) ApiTenancyTenan return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []string) ApiTenancyTenantsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []string) ApiTenancyTenantsListRequest { r.contactGroupN = &contactGroupN return r } @@ -12053,26 +12759,22 @@ func (r ApiTenancyTenantsListRequest) DescriptionNisw(descriptionNisw []string) return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) Group(group []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) Group(group []string) ApiTenancyTenantsListRequest { r.group = &group return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) GroupN(groupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupN(groupN []string) ApiTenancyTenantsListRequest { r.groupN = &groupN return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupId(groupId []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupId(groupId []string) ApiTenancyTenantsListRequest { r.groupId = &groupId return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []string) ApiTenancyTenantsListRequest { r.groupIdN = &groupIdN return r } @@ -12310,25 +13012,24 @@ 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 { return ApiTenancyTenantsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTenantList +// @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") @@ -12347,10 +13048,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -12358,10 +13059,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -12369,10 +13070,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -12380,10 +13081,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -12391,10 +13092,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -12402,10 +13103,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -12413,10 +13114,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -12424,10 +13125,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -12435,10 +13136,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -12446,10 +13147,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -12457,10 +13158,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -12468,10 +13169,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -12479,38 +13180,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -12518,10 +13219,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -12529,10 +13230,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -12540,10 +13241,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -12551,10 +13252,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -12562,10 +13263,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -12573,10 +13274,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -12584,10 +13285,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -12595,10 +13296,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.group != nil { @@ -12606,10 +13307,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -12617,10 +13318,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -12628,10 +13329,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -12639,10 +13340,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -12650,24 +13351,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -12675,10 +13376,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -12686,10 +13387,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -12697,10 +13398,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -12708,10 +13409,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -12719,10 +13420,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -12730,10 +13431,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -12741,10 +13442,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -12752,10 +13453,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -12763,10 +13464,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -12774,10 +13475,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -12785,41 +13486,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -12827,10 +13528,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -12838,10 +13539,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -12849,10 +13550,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -12860,10 +13561,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -12871,10 +13572,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -12882,10 +13583,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -12893,10 +13594,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -12904,44 +13605,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -12949,10 +13650,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -12960,10 +13661,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -12971,10 +13672,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -12982,10 +13683,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -12993,10 +13694,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -13004,10 +13705,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -13015,10 +13716,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -13026,10 +13727,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -13037,10 +13738,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -13048,14 +13749,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13126,9 +13827,9 @@ func (a *TenancyAPIService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq } type ApiTenancyTenantsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 patchedTenantRequest *PatchedTenantRequest } @@ -13146,27 +13847,26 @@ 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 { return ApiTenancyTenantsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tenant +// @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") @@ -13252,9 +13952,9 @@ func (a *TenancyAPIService) TenancyTenantsPartialUpdateExecute(r ApiTenancyTenan } type ApiTenancyTenantsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 } func (r ApiTenancyTenantsRetrieveRequest) Execute() (*Tenant, *http.Response, error) { @@ -13266,27 +13966,26 @@ 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 { return ApiTenancyTenantsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tenant +// @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") @@ -13370,9 +14069,9 @@ func (a *TenancyAPIService) TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRet } type ApiTenancyTenantsUpdateRequest struct { - ctx context.Context - ApiService *TenancyAPIService - id int32 + ctx context.Context + ApiService TenancyAPI + id int32 tenantRequest *TenantRequest } @@ -13390,27 +14089,26 @@ 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 { return ApiTenancyTenantsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tenant +// @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") diff --git a/api_tenant_test.go b/api_tenant_test.go new file mode 100644 index 0000000000..bda7635bae --- /dev/null +++ b/api_tenant_test.go @@ -0,0 +1,18 @@ +package netbox + +import ( + "context" + "testing" +) + +func TestListTenants(t *testing.T) { + client := HGetClient(t) + + _, r, err := client.TenancyAPI.TenancyTenantsList(context.TODO()).Execute() + if err != nil { + if r != nil { + t.Fatal(r) + } + t.Fatal(err) + } +} diff --git a/api_users.go b/api_users.go index f872d1a93a..7a24b31dd6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,561 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) + +type UsersAPI interface { + + /* + 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 + */ + UsersConfigRetrieve(ctx context.Context) ApiUsersConfigRetrieveRequest + + // UsersConfigRetrieveExecute executes the request + // @return map[string]interface{} + UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveRequest) (map[string]interface{}, *http.Response, error) + + /* + 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 + */ + UsersGroupsBulkDestroy(ctx context.Context) ApiUsersGroupsBulkDestroyRequest + + // UsersGroupsBulkDestroyExecute executes the request + UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersGroupsBulkPartialUpdate(ctx context.Context) ApiUsersGroupsBulkPartialUpdateRequest + + // UsersGroupsBulkPartialUpdateExecute executes the request + // @return []Group + UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBulkPartialUpdateRequest) ([]Group, *http.Response, error) + + /* + 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 + */ + UsersGroupsBulkUpdate(ctx context.Context) ApiUsersGroupsBulkUpdateRequest + + // UsersGroupsBulkUpdateExecute executes the request + // @return []Group + UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdateRequest) ([]Group, *http.Response, error) + + /* + 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 + */ + UsersGroupsCreate(ctx context.Context) ApiUsersGroupsCreateRequest + + // UsersGroupsCreateExecute executes the request + // @return Group + UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest) (*Group, *http.Response, error) + + /* + 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 + */ + UsersGroupsDestroy(ctx context.Context, id int32) ApiUsersGroupsDestroyRequest + + // UsersGroupsDestroyExecute executes the request + UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersGroupsList(ctx context.Context) ApiUsersGroupsListRequest + + // UsersGroupsListExecute executes the request + // @return PaginatedGroupList + UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*PaginatedGroupList, *http.Response, error) + + /* + 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 + */ + UsersGroupsPartialUpdate(ctx context.Context, id int32) ApiUsersGroupsPartialUpdateRequest + + // UsersGroupsPartialUpdateExecute executes the request + // @return Group + UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartialUpdateRequest) (*Group, *http.Response, error) + + /* + 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 + */ + UsersGroupsRetrieve(ctx context.Context, id int32) ApiUsersGroupsRetrieveRequest + + // UsersGroupsRetrieveExecute executes the request + // @return Group + UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveRequest) (*Group, *http.Response, error) + + /* + 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 + */ + UsersGroupsUpdate(ctx context.Context, id int32) ApiUsersGroupsUpdateRequest + + // UsersGroupsUpdateExecute executes the request + // @return Group + UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest) (*Group, *http.Response, error) + + /* + 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 + */ + UsersPermissionsBulkDestroy(ctx context.Context) ApiUsersPermissionsBulkDestroyRequest + + // UsersPermissionsBulkDestroyExecute executes the request + UsersPermissionsBulkDestroyExecute(r ApiUsersPermissionsBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersPermissionsBulkPartialUpdate(ctx context.Context) ApiUsersPermissionsBulkPartialUpdateRequest + + // UsersPermissionsBulkPartialUpdateExecute executes the request + // @return []ObjectPermission + UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPermissionsBulkPartialUpdateRequest) ([]ObjectPermission, *http.Response, error) + + /* + 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 + */ + UsersPermissionsBulkUpdate(ctx context.Context) ApiUsersPermissionsBulkUpdateRequest + + // UsersPermissionsBulkUpdateExecute executes the request + // @return []ObjectPermission + UsersPermissionsBulkUpdateExecute(r ApiUsersPermissionsBulkUpdateRequest) ([]ObjectPermission, *http.Response, error) + + /* + 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 + */ + UsersPermissionsCreate(ctx context.Context) ApiUsersPermissionsCreateRequest + + // UsersPermissionsCreateExecute executes the request + // @return ObjectPermission + UsersPermissionsCreateExecute(r ApiUsersPermissionsCreateRequest) (*ObjectPermission, *http.Response, error) + + /* + 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 + */ + UsersPermissionsDestroy(ctx context.Context, id int32) ApiUsersPermissionsDestroyRequest + + // UsersPermissionsDestroyExecute executes the request + UsersPermissionsDestroyExecute(r ApiUsersPermissionsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersPermissionsList(ctx context.Context) ApiUsersPermissionsListRequest + + // UsersPermissionsListExecute executes the request + // @return PaginatedObjectPermissionList + UsersPermissionsListExecute(r ApiUsersPermissionsListRequest) (*PaginatedObjectPermissionList, *http.Response, error) + + /* + 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 + */ + UsersPermissionsPartialUpdate(ctx context.Context, id int32) ApiUsersPermissionsPartialUpdateRequest + + // UsersPermissionsPartialUpdateExecute executes the request + // @return ObjectPermission + UsersPermissionsPartialUpdateExecute(r ApiUsersPermissionsPartialUpdateRequest) (*ObjectPermission, *http.Response, error) + + /* + 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 + */ + UsersPermissionsRetrieve(ctx context.Context, id int32) ApiUsersPermissionsRetrieveRequest + + // UsersPermissionsRetrieveExecute executes the request + // @return ObjectPermission + UsersPermissionsRetrieveExecute(r ApiUsersPermissionsRetrieveRequest) (*ObjectPermission, *http.Response, error) + + /* + 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 + */ + UsersPermissionsUpdate(ctx context.Context, id int32) ApiUsersPermissionsUpdateRequest + + // UsersPermissionsUpdateExecute executes the request + // @return ObjectPermission + UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpdateRequest) (*ObjectPermission, *http.Response, error) + + /* + 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 + */ + UsersTokensBulkDestroy(ctx context.Context) ApiUsersTokensBulkDestroyRequest + + // UsersTokensBulkDestroyExecute executes the request + UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersTokensBulkPartialUpdate(ctx context.Context) ApiUsersTokensBulkPartialUpdateRequest + + // UsersTokensBulkPartialUpdateExecute executes the request + // @return []Token + UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBulkPartialUpdateRequest) ([]Token, *http.Response, error) + + /* + 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 + */ + UsersTokensBulkUpdate(ctx context.Context) ApiUsersTokensBulkUpdateRequest + + // UsersTokensBulkUpdateExecute executes the request + // @return []Token + UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdateRequest) ([]Token, *http.Response, error) + + /* + 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 + */ + UsersTokensCreate(ctx context.Context) ApiUsersTokensCreateRequest + + // UsersTokensCreateExecute executes the request + // @return Token + UsersTokensCreateExecute(r ApiUsersTokensCreateRequest) (*Token, *http.Response, error) + + /* + 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 + */ + UsersTokensDestroy(ctx context.Context, id int32) ApiUsersTokensDestroyRequest + + // UsersTokensDestroyExecute executes the request + UsersTokensDestroyExecute(r ApiUsersTokensDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersTokensList(ctx context.Context) ApiUsersTokensListRequest + + // UsersTokensListExecute executes the request + // @return PaginatedTokenList + UsersTokensListExecute(r ApiUsersTokensListRequest) (*PaginatedTokenList, *http.Response, error) + + /* + 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 + */ + UsersTokensPartialUpdate(ctx context.Context, id int32) ApiUsersTokensPartialUpdateRequest + + // UsersTokensPartialUpdateExecute executes the request + // @return Token + UsersTokensPartialUpdateExecute(r ApiUsersTokensPartialUpdateRequest) (*Token, *http.Response, error) + + /* + 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 + */ + UsersTokensProvisionCreate(ctx context.Context) ApiUsersTokensProvisionCreateRequest + + // UsersTokensProvisionCreateExecute executes the request + // @return TokenProvision + UsersTokensProvisionCreateExecute(r ApiUsersTokensProvisionCreateRequest) (*TokenProvision, *http.Response, error) + + /* + 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 + */ + UsersTokensRetrieve(ctx context.Context, id int32) ApiUsersTokensRetrieveRequest + + // UsersTokensRetrieveExecute executes the request + // @return Token + UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveRequest) (*Token, *http.Response, error) + + /* + 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 + */ + UsersTokensUpdate(ctx context.Context, id int32) ApiUsersTokensUpdateRequest + + // UsersTokensUpdateExecute executes the request + // @return Token + UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest) (*Token, *http.Response, error) + + /* + 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 + */ + UsersUsersBulkDestroy(ctx context.Context) ApiUsersUsersBulkDestroyRequest + + // UsersUsersBulkDestroyExecute executes the request + UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersUsersBulkPartialUpdate(ctx context.Context) ApiUsersUsersBulkPartialUpdateRequest + + // UsersUsersBulkPartialUpdateExecute executes the request + // @return []User + UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulkPartialUpdateRequest) ([]User, *http.Response, error) + + /* + 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 + */ + UsersUsersBulkUpdate(ctx context.Context) ApiUsersUsersBulkUpdateRequest + + // UsersUsersBulkUpdateExecute executes the request + // @return []User + UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateRequest) ([]User, *http.Response, error) + + /* + 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 + */ + UsersUsersCreate(ctx context.Context) ApiUsersUsersCreateRequest + + // UsersUsersCreateExecute executes the request + // @return User + UsersUsersCreateExecute(r ApiUsersUsersCreateRequest) (*User, *http.Response, error) + + /* + 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 + */ + UsersUsersDestroy(ctx context.Context, id int32) ApiUsersUsersDestroyRequest + + // UsersUsersDestroyExecute executes the request + UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest) (*http.Response, error) + + /* + 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 + */ + UsersUsersList(ctx context.Context) ApiUsersUsersListRequest + + // UsersUsersListExecute executes the request + // @return PaginatedUserList + UsersUsersListExecute(r ApiUsersUsersListRequest) (*PaginatedUserList, *http.Response, error) + + /* + 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 + */ + UsersUsersPartialUpdate(ctx context.Context, id int32) ApiUsersUsersPartialUpdateRequest + + // UsersUsersPartialUpdateExecute executes the request + // @return User + UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialUpdateRequest) (*User, *http.Response, error) + + /* + 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 + */ + UsersUsersRetrieve(ctx context.Context, id int32) ApiUsersUsersRetrieveRequest + + // UsersUsersRetrieveExecute executes the request + // @return User + UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveRequest) (*User, *http.Response, error) + + /* + 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 + */ + UsersUsersUpdate(ctx context.Context, id int32) ApiUsersUsersUpdateRequest + + // UsersUsersUpdateExecute executes the request + // @return User + UsersUsersUpdateExecute(r ApiUsersUsersUpdateRequest) (*User, *http.Response, error) +} + // UsersAPIService UsersAPI service type UsersAPIService service type ApiUsersConfigRetrieveRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI } func (r ApiUsersConfigRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -38,25 +582,24 @@ 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 { return ApiUsersConfigRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return map[string]interface{} +// @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") @@ -139,8 +682,8 @@ func (a *UsersAPIService) UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveReq } type ApiUsersGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI groupRequest *[]GroupRequest } @@ -158,22 +701,22 @@ 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 { return ApiUsersGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -252,8 +795,8 @@ func (a *UsersAPIService) UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDest } type ApiUsersGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI groupRequest *[]GroupRequest } @@ -271,25 +814,24 @@ 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 { return ApiUsersGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Group +// @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") @@ -377,8 +919,8 @@ func (a *UsersAPIService) UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBu } type ApiUsersGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI groupRequest *[]GroupRequest } @@ -396,25 +938,24 @@ 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 { return ApiUsersGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Group +// @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") @@ -502,8 +1043,8 @@ func (a *UsersAPIService) UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdat } type ApiUsersGroupsCreateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI groupRequest *GroupRequest } @@ -521,25 +1062,24 @@ 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 { return ApiUsersGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Group +// @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") @@ -627,9 +1167,9 @@ func (a *UsersAPIService) UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest } type ApiUsersGroupsDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -641,24 +1181,24 @@ 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 { 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) { 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") @@ -733,45 +1273,47 @@ func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque } type ApiUsersGroupsListRequest struct { - ctx context.Context - ApiService *UsersAPIService - description *[]string + ctx context.Context + ApiService UsersAPI + 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 - permissionId *[]int32 - permissionIdN *[]int32 - q *string - userId *[]int32 - userIdN *[]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 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + userId *[]int32 + userIdN *[]int32 } func (r ApiUsersGroupsListRequest) Description(description []string) ApiUsersGroupsListRequest { @@ -925,6 +1467,18 @@ func (r ApiUsersGroupsListRequest) NameNisw(nameNisw []string) ApiUsersGroupsLis return r } +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersGroupsListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersGroupsListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersGroupsListRequest) Offset(offset int32) ApiUsersGroupsListRequest { r.offset = &offset @@ -976,25 +1530,24 @@ 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 { return ApiUsersGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedGroupList +// @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") @@ -1013,24 +1566,24 @@ 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -1038,10 +1591,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -1049,10 +1602,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -1060,10 +1613,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -1071,10 +1624,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -1082,10 +1635,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -1093,10 +1646,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -1104,10 +1657,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -1115,10 +1668,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -1126,24 +1679,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -1151,10 +1704,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -1162,10 +1715,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -1173,10 +1726,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -1184,38 +1737,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -1223,10 +1776,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -1234,10 +1787,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -1245,10 +1798,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -1256,10 +1809,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -1267,10 +1820,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -1278,10 +1831,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -1289,10 +1842,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -1300,27 +1853,49 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") + } + } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "form", "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.permissionId != nil { t := *r.permissionId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", t, "form", "multi") } } if r.permissionIdN != nil { @@ -1328,24 +1903,24 @@ 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, "permission_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi") } } if r.userIdN != nil { @@ -1353,10 +1928,10 @@ 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, "user_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -1428,9 +2003,9 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* } type ApiUsersGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 patchedGroupRequest *PatchedGroupRequest } @@ -1448,27 +2023,26 @@ 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 { return ApiUsersGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Group +// @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") @@ -1554,9 +2128,9 @@ func (a *UsersAPIService) UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartia } type ApiUsersGroupsRetrieveRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersGroupsRetrieveRequest) Execute() (*Group, *http.Response, error) { @@ -1568,27 +2142,26 @@ 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 { return ApiUsersGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Group +// @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") @@ -1672,9 +2245,9 @@ func (a *UsersAPIService) UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveReq } type ApiUsersGroupsUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 groupRequest *GroupRequest } @@ -1692,27 +2265,26 @@ 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 { return ApiUsersGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Group +// @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") @@ -1801,8 +2373,8 @@ func (a *UsersAPIService) UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest } type ApiUsersPermissionsBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI objectPermissionRequest *[]ObjectPermissionRequest } @@ -1820,22 +2392,22 @@ 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 { return ApiUsersPermissionsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -1914,8 +2486,8 @@ func (a *UsersAPIService) UsersPermissionsBulkDestroyExecute(r ApiUsersPermissio } type ApiUsersPermissionsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI objectPermissionRequest *[]ObjectPermissionRequest } @@ -1933,25 +2505,24 @@ 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 { return ApiUsersPermissionsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ObjectPermission +// @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") @@ -2039,8 +2610,8 @@ func (a *UsersAPIService) UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPer } type ApiUsersPermissionsBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI objectPermissionRequest *[]ObjectPermissionRequest } @@ -2058,25 +2629,24 @@ 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 { return ApiUsersPermissionsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ObjectPermission +// @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") @@ -2164,8 +2734,8 @@ func (a *UsersAPIService) UsersPermissionsBulkUpdateExecute(r ApiUsersPermission } type ApiUsersPermissionsCreateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI objectPermissionRequest *ObjectPermissionRequest } @@ -2183,25 +2753,24 @@ 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 { return ApiUsersPermissionsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ObjectPermission +// @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") @@ -2289,9 +2858,9 @@ func (a *UsersAPIService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCre } type ApiUsersPermissionsDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersPermissionsDestroyRequest) Execute() (*http.Response, error) { @@ -2303,24 +2872,24 @@ 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 { 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) { 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") @@ -2395,68 +2964,68 @@ func (a *UsersAPIService) UsersPermissionsDestroyExecute(r ApiUsersPermissionsDe } type ApiUsersPermissionsListRequest struct { - ctx context.Context - ApiService *UsersAPIService - canAdd *bool - canChange *bool - canDelete *bool - canView *bool - description *[]string + ctx context.Context + ApiService UsersAPI + 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 - 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 - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - 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 + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + 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 { @@ -2780,25 +3349,24 @@ 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 { return ApiUsersPermissionsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedObjectPermissionList +// @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") @@ -2813,40 +3381,40 @@ func (a *UsersAPIService) UsersPermissionsListExecute(r ApiUsersPermissionsListR localVarFormParams := url.Values{} if r.canAdd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "can_add", r.canAdd, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "can_add", r.canAdd, "form", "") } if r.canChange != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "can_change", r.canChange, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "can_change", r.canChange, "form", "") } if r.canDelete != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "can_delete", r.canDelete, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "can_delete", r.canDelete, "form", "") } if r.canView != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "can_view", r.canView, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "can_view", r.canView, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -2854,10 +3422,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -2865,10 +3433,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -2876,10 +3444,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -2887,10 +3455,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -2898,10 +3466,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -2909,10 +3477,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -2920,10 +3488,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -2931,24 +3499,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") } if r.group != nil { t := *r.group if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -2956,10 +3524,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -2967,10 +3535,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -2978,10 +3546,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -2989,24 +3557,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -3014,10 +3582,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -3025,10 +3593,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -3036,10 +3604,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -3047,38 +3615,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -3086,10 +3654,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -3097,10 +3665,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -3108,10 +3676,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -3119,10 +3687,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -3130,10 +3698,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -3141,10 +3709,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -3152,10 +3720,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -3163,51 +3731,51 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "form", "") } if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "form", "") } if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "form", "") } if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "form", "") } if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "form", "") } if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "form", "") } if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "form", "") } if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "form", "") } if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "form", "") } if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "form", "multi") } } if r.objectTypeIdN != nil { @@ -3215,10 +3783,10 @@ 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_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "form", "multi") } } if r.objectTypes != nil { @@ -3226,10 +3794,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", t, "form", "multi") } } if r.objectTypesN != nil { @@ -3237,30 +3805,30 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "form", "multi") } } if r.userN != nil { @@ -3268,10 +3836,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "form", "multi") } } if r.userId != nil { @@ -3279,10 +3847,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi") } } if r.userIdN != nil { @@ -3290,10 +3858,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -3365,9 +3933,9 @@ func (a *UsersAPIService) UsersPermissionsListExecute(r ApiUsersPermissionsListR } type ApiUsersPermissionsPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 patchedObjectPermissionRequest *PatchedObjectPermissionRequest } @@ -3385,27 +3953,26 @@ 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 { return ApiUsersPermissionsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectPermission +// @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") @@ -3491,9 +4058,9 @@ func (a *UsersAPIService) UsersPermissionsPartialUpdateExecute(r ApiUsersPermiss } type ApiUsersPermissionsRetrieveRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersPermissionsRetrieveRequest) Execute() (*ObjectPermission, *http.Response, error) { @@ -3505,27 +4072,26 @@ 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 { return ApiUsersPermissionsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectPermission +// @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") @@ -3609,9 +4175,9 @@ func (a *UsersAPIService) UsersPermissionsRetrieveExecute(r ApiUsersPermissionsR } type ApiUsersPermissionsUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 objectPermissionRequest *ObjectPermissionRequest } @@ -3629,27 +4195,26 @@ 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 { return ApiUsersPermissionsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectPermission +// @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") @@ -3738,8 +4303,8 @@ func (a *UsersAPIService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpd } type ApiUsersTokensBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI tokenRequest *[]TokenRequest } @@ -3757,22 +4322,22 @@ 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 { return ApiUsersTokensBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -3851,8 +4416,8 @@ func (a *UsersAPIService) UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDest } type ApiUsersTokensBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI tokenRequest *[]TokenRequest } @@ -3870,25 +4435,24 @@ 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 { return ApiUsersTokensBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Token +// @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") @@ -3976,8 +4540,8 @@ func (a *UsersAPIService) UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBu } type ApiUsersTokensBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI tokenRequest *[]TokenRequest } @@ -3995,25 +4559,24 @@ 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 { return ApiUsersTokensBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Token +// @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") @@ -4101,8 +4664,8 @@ func (a *UsersAPIService) UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdat } type ApiUsersTokensCreateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI tokenRequest *TokenRequest } @@ -4120,25 +4683,24 @@ 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 { return ApiUsersTokensCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Token +// @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") @@ -4226,9 +4788,9 @@ func (a *UsersAPIService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest } type ApiUsersTokensDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersTokensDestroyRequest) Execute() (*http.Response, error) { @@ -4240,24 +4802,24 @@ 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 { 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) { 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") @@ -4332,59 +4894,59 @@ 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 UsersAPI + 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 - 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 - lastUsed *[]time.Time - lastUsedEmpty *bool - lastUsedGt *[]time.Time - lastUsedGte *[]time.Time - lastUsedLt *[]time.Time - lastUsedLte *[]time.Time - lastUsedN *[]time.Time - 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 + lastUsed *[]time.Time + lastUsedEmpty *bool + lastUsedGt *[]time.Time + lastUsedGte *[]time.Time + lastUsedLt *[]time.Time + lastUsedLte *[]time.Time + lastUsedN *[]time.Time + 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 { @@ -4659,25 +5221,24 @@ 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 { return ApiUsersTokensListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTokenList +// @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") @@ -4692,37 +5253,37 @@ func (a *UsersAPIService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* localVarFormParams := url.Values{} if r.created != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", r.created, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", r.created, "form", "") } if r.createdGte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", r.createdGte, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", r.createdGte, "form", "") } if r.createdLte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", r.createdLte, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", r.createdLte, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -4730,10 +5291,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -4741,10 +5302,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -4752,10 +5313,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -4763,10 +5324,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -4774,10 +5335,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -4785,10 +5346,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -4796,10 +5357,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -4807,44 +5368,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.expires != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "expires", r.expires, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "expires", r.expires, "form", "") } if r.expiresGte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "expires__gte", r.expiresGte, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "expires__gte", r.expiresGte, "form", "") } if r.expiresLte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "expires__lte", r.expiresLte, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "expires__lte", r.expiresLte, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -4852,10 +5413,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -4863,10 +5424,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -4874,10 +5435,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -4885,10 +5446,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.key != nil { @@ -4896,24 +5457,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key", t, "form", "multi") } } if r.keyEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__empty", r.keyEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__empty", r.keyEmpty, "form", "") } if r.keyIc != nil { t := *r.keyIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__ic", t, "form", "multi") } } if r.keyIe != nil { @@ -4921,10 +5482,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__ie", t, "form", "multi") } } if r.keyIew != nil { @@ -4932,10 +5493,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__iew", t, "form", "multi") } } if r.keyIsw != nil { @@ -4943,10 +5504,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__isw", t, "form", "multi") } } if r.keyN != nil { @@ -4954,10 +5515,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__n", t, "form", "multi") } } if r.keyNic != nil { @@ -4965,10 +5526,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nic", t, "form", "multi") } } if r.keyNie != nil { @@ -4976,10 +5537,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nie", t, "form", "multi") } } if r.keyNiew != nil { @@ -4987,10 +5548,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__niew", t, "form", "multi") } } if r.keyNisw != nil { @@ -4998,10 +5559,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nisw", t, "form", "multi") } } if r.lastUsed != nil { @@ -5009,24 +5570,24 @@ 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, "last_used", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used", t, "form", "multi") } } if r.lastUsedEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__empty", r.lastUsedEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__empty", r.lastUsedEmpty, "form", "") } if r.lastUsedGt != nil { t := *r.lastUsedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gt", t, "form", "multi") } } if r.lastUsedGte != nil { @@ -5034,10 +5595,10 @@ 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, "last_used__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__gte", t, "form", "multi") } } if r.lastUsedLt != nil { @@ -5045,10 +5606,10 @@ 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, "last_used__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lt", t, "form", "multi") } } if r.lastUsedLte != nil { @@ -5056,10 +5617,10 @@ 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, "last_used__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__lte", t, "form", "multi") } } if r.lastUsedN != nil { @@ -5067,33 +5628,33 @@ 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, "last_used__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_used__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "form", "multi") } } if r.userN != nil { @@ -5101,10 +5662,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "form", "multi") } } if r.userId != nil { @@ -5112,10 +5673,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi") } } if r.userIdN != nil { @@ -5123,14 +5684,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "form", "multi") } } if r.writeEnabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "write_enabled", r.writeEnabled, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "write_enabled", r.writeEnabled, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5201,9 +5762,9 @@ func (a *UsersAPIService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* } type ApiUsersTokensPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 patchedTokenRequest *PatchedTokenRequest } @@ -5221,27 +5782,26 @@ 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 { return ApiUsersTokensPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Token +// @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") @@ -5327,8 +5887,8 @@ func (a *UsersAPIService) UsersTokensPartialUpdateExecute(r ApiUsersTokensPartia } type ApiUsersTokensProvisionCreateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI tokenProvisionRequest *TokenProvisionRequest } @@ -5346,25 +5906,24 @@ 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 { return ApiUsersTokensProvisionCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return TokenProvision +// @return TokenProvision func (a *UsersAPIService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProvisionCreateRequest) (*TokenProvision, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TokenProvision + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TokenProvision ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensProvisionCreate") @@ -5443,8 +6002,8 @@ func (a *UsersAPIService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5462,9 +6021,9 @@ func (a *UsersAPIService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv } type ApiUsersTokensRetrieveRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersTokensRetrieveRequest) Execute() (*Token, *http.Response, error) { @@ -5476,27 +6035,26 @@ 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 { return ApiUsersTokensRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Token +// @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") @@ -5580,9 +6138,9 @@ func (a *UsersAPIService) UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveReq } type ApiUsersTokensUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 tokenRequest *TokenRequest } @@ -5600,27 +6158,26 @@ 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 { return ApiUsersTokensUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Token +// @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") @@ -5709,8 +6266,8 @@ func (a *UsersAPIService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest } type ApiUsersUsersBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI userRequest *[]UserRequest } @@ -5728,22 +6285,22 @@ 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 { return ApiUsersUsersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -5822,8 +6379,8 @@ func (a *UsersAPIService) UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestro } type ApiUsersUsersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI userRequest *[]UserRequest } @@ -5841,25 +6398,24 @@ 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 { return ApiUsersUsersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []User +// @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") @@ -5947,8 +6503,8 @@ func (a *UsersAPIService) UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulk } type ApiUsersUsersBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI userRequest *[]UserRequest } @@ -5966,25 +6522,24 @@ 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 { return ApiUsersUsersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []User +// @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") @@ -6072,8 +6627,8 @@ func (a *UsersAPIService) UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateR } type ApiUsersUsersCreateRequest struct { - ctx context.Context - ApiService *UsersAPIService + ctx context.Context + ApiService UsersAPI userRequest *UserRequest } @@ -6091,25 +6646,24 @@ 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 { return ApiUsersUsersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return User +// @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") @@ -6197,9 +6751,9 @@ func (a *UsersAPIService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest) } type ApiUsersUsersDestroyRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersUsersDestroyRequest) Execute() (*http.Response, error) { @@ -6211,24 +6765,24 @@ 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 { 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) { 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") @@ -6303,86 +6857,88 @@ func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest } type ApiUsersUsersListRequest struct { - ctx context.Context - ApiService *UsersAPIService - dateJoined *[]time.Time + ctx context.Context + ApiService UsersAPI + dateJoined *[]time.Time dateJoinedEmpty *bool - dateJoinedGt *[]time.Time - dateJoinedGte *[]time.Time - dateJoinedLt *[]time.Time - dateJoinedLte *[]time.Time - dateJoinedN *[]time.Time - 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 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isActive *bool - isStaff *bool - isSuperuser *bool - lastLogin *[]time.Time - lastLoginEmpty *bool - lastLoginGt *[]time.Time - lastLoginGte *[]time.Time - lastLoginLt *[]time.Time - lastLoginLte *[]time.Time - lastLoginN *[]time.Time - 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 - permissionId *[]int32 - permissionIdN *[]int32 - q *string - username *[]string - usernameEmpty *bool - usernameIc *[]string - usernameIe *[]string - usernameIew *[]string - usernameIsw *[]string - usernameN *[]string - usernameNic *[]string - usernameNie *[]string - usernameNiew *[]string - usernameNisw *[]string + dateJoinedGt *[]time.Time + dateJoinedGte *[]time.Time + dateJoinedLt *[]time.Time + dateJoinedLte *[]time.Time + dateJoinedN *[]time.Time + 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 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isActive *bool + isStaff *bool + isSuperuser *bool + lastLogin *[]time.Time + lastLoginEmpty *bool + lastLoginGt *[]time.Time + lastLoginGte *[]time.Time + lastLoginLt *[]time.Time + lastLoginLte *[]time.Time + lastLoginN *[]time.Time + lastName *[]string + lastNameEmpty *bool + lastNameIc *[]string + lastNameIe *[]string + lastNameIew *[]string + lastNameIsw *[]string + lastNameN *[]string + lastNameNic *[]string + lastNameNie *[]string + lastNameNiew *[]string + lastNameNisw *[]string + limit *int32 + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + 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) DateJoined(dateJoined []time.Time) ApiUsersUsersListRequest { @@ -6700,6 +7256,18 @@ func (r ApiUsersUsersListRequest) Limit(limit int32) ApiUsersUsersListRequest { return r } +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersUsersListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersUsersListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersUsersListRequest) Offset(offset int32) ApiUsersUsersListRequest { r.offset = &offset @@ -6794,25 +7362,24 @@ 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 { return ApiUsersUsersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedUserList +// @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") @@ -6831,24 +7398,24 @@ 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, "date_joined", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined", t, "form", "multi") } } if r.dateJoinedEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__empty", r.dateJoinedEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__empty", r.dateJoinedEmpty, "form", "") } if r.dateJoinedGt != nil { t := *r.dateJoinedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gt", t, "form", "multi") } } if r.dateJoinedGte != nil { @@ -6856,10 +7423,10 @@ 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, "date_joined__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__gte", t, "form", "multi") } } if r.dateJoinedLt != nil { @@ -6867,10 +7434,10 @@ 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, "date_joined__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lt", t, "form", "multi") } } if r.dateJoinedLte != nil { @@ -6878,10 +7445,10 @@ 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, "date_joined__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__lte", t, "form", "multi") } } if r.dateJoinedN != nil { @@ -6889,10 +7456,10 @@ 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, "date_joined__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_joined__n", t, "form", "multi") } } if r.email != nil { @@ -6900,24 +7467,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email", t, "form", "multi") } } if r.emailEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__empty", r.emailEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__empty", r.emailEmpty, "form", "") } if r.emailIc != nil { t := *r.emailIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", t, "form", "multi") } } if r.emailIe != nil { @@ -6925,10 +7492,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", t, "form", "multi") } } if r.emailIew != nil { @@ -6936,10 +7503,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", t, "form", "multi") } } if r.emailIsw != nil { @@ -6947,10 +7514,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", t, "form", "multi") } } if r.emailN != nil { @@ -6958,10 +7525,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", t, "form", "multi") } } if r.emailNic != nil { @@ -6969,10 +7536,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", t, "form", "multi") } } if r.emailNie != nil { @@ -6980,10 +7547,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", t, "form", "multi") } } if r.emailNiew != nil { @@ -6991,10 +7558,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", t, "form", "multi") } } if r.emailNisw != nil { @@ -7002,10 +7569,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", t, "form", "multi") } } if r.firstName != nil { @@ -7013,24 +7580,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name", t, "form", "multi") } } if r.firstNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__empty", r.firstNameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__empty", r.firstNameEmpty, "form", "") } if r.firstNameIc != nil { t := *r.firstNameIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ic", t, "form", "multi") } } if r.firstNameIe != nil { @@ -7038,10 +7605,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ie", t, "form", "multi") } } if r.firstNameIew != nil { @@ -7049,10 +7616,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__iew", t, "form", "multi") } } if r.firstNameIsw != nil { @@ -7060,10 +7627,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__isw", t, "form", "multi") } } if r.firstNameN != nil { @@ -7071,10 +7638,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__n", t, "form", "multi") } } if r.firstNameNic != nil { @@ -7082,10 +7649,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nic", t, "form", "multi") } } if r.firstNameNie != nil { @@ -7093,10 +7660,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nie", t, "form", "multi") } } if r.firstNameNiew != nil { @@ -7104,10 +7671,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__niew", t, "form", "multi") } } if r.firstNameNisw != nil { @@ -7115,10 +7682,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nisw", t, "form", "multi") } } if r.group != nil { @@ -7126,10 +7693,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -7137,10 +7704,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -7148,10 +7715,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -7159,10 +7726,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -7170,24 +7737,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -7195,10 +7762,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -7206,10 +7773,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -7217,10 +7784,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -7228,44 +7795,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.isActive != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_active", r.isActive, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "is_active", r.isActive, "form", "") } if r.isStaff != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_staff", r.isStaff, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "is_staff", r.isStaff, "form", "") } if r.isSuperuser != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_superuser", r.isSuperuser, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "is_superuser", r.isSuperuser, "form", "") } if r.lastLogin != nil { t := *r.lastLogin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login", t, "form", "multi") } } if r.lastLoginEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__empty", r.lastLoginEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__empty", r.lastLoginEmpty, "form", "") } if r.lastLoginGt != nil { t := *r.lastLoginGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gt", t, "form", "multi") } } if r.lastLoginGte != nil { @@ -7273,10 +7840,10 @@ 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_login__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__gte", t, "form", "multi") } } if r.lastLoginLt != nil { @@ -7284,10 +7851,10 @@ 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_login__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lt", t, "form", "multi") } } if r.lastLoginLte != nil { @@ -7295,10 +7862,10 @@ 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_login__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__lte", t, "form", "multi") } } if r.lastLoginN != nil { @@ -7306,10 +7873,10 @@ 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_login__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_login__n", t, "form", "multi") } } if r.lastName != nil { @@ -7317,24 +7884,24 @@ 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name", t, "form", "multi") } } if r.lastNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__empty", r.lastNameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__empty", r.lastNameEmpty, "form", "") } if r.lastNameIc != nil { t := *r.lastNameIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ic", t, "form", "multi") } } if r.lastNameIe != nil { @@ -7342,10 +7909,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ie", t, "form", "multi") } } if r.lastNameIew != nil { @@ -7353,10 +7920,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__iew", t, "form", "multi") } } if r.lastNameIsw != nil { @@ -7364,10 +7931,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__isw", t, "form", "multi") } } if r.lastNameN != nil { @@ -7375,10 +7942,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__n", t, "form", "multi") } } if r.lastNameNic != nil { @@ -7386,10 +7953,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nic", t, "form", "multi") } } if r.lastNameNie != nil { @@ -7397,10 +7964,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nie", t, "form", "multi") } } if r.lastNameNiew != nil { @@ -7408,10 +7975,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__niew", t, "form", "multi") } } if r.lastNameNisw != nil { @@ -7419,30 +7986,52 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nisw", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "form", "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "form", "multi") + } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.permissionId != nil { t := *r.permissionId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id", t, "form", "multi") } } if r.permissionIdN != nil { @@ -7450,38 +8039,38 @@ 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, "permission_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "permission_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.username != nil { t := *r.username if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username", t, "form", "multi") } } if r.usernameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__empty", r.usernameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__empty", r.usernameEmpty, "form", "") } if r.usernameIc != nil { t := *r.usernameIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__ic", t, "form", "multi") } } if r.usernameIe != nil { @@ -7489,10 +8078,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__ie", t, "form", "multi") } } if r.usernameIew != nil { @@ -7500,10 +8089,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__iew", t, "form", "multi") } } if r.usernameIsw != nil { @@ -7511,10 +8100,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__isw", t, "form", "multi") } } if r.usernameN != nil { @@ -7522,10 +8111,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__n", t, "form", "multi") } } if r.usernameNic != nil { @@ -7533,10 +8122,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nic", t, "form", "multi") } } if r.usernameNie != nil { @@ -7544,10 +8133,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nie", t, "form", "multi") } } if r.usernameNiew != nil { @@ -7555,10 +8144,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__niew", t, "form", "multi") } } if r.usernameNisw != nil { @@ -7566,10 +8155,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nisw", t, "form", "multi") } } // to determine the Content-Type header @@ -7641,9 +8230,9 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa } type ApiUsersUsersPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 patchedUserRequest *PatchedUserRequest } @@ -7661,27 +8250,26 @@ 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 { return ApiUsersUsersPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return User +// @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") @@ -7767,9 +8355,9 @@ func (a *UsersAPIService) UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialU } type ApiUsersUsersRetrieveRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 } func (r ApiUsersUsersRetrieveRequest) Execute() (*User, *http.Response, error) { @@ -7781,27 +8369,26 @@ 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 { return ApiUsersUsersRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return User +// @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") @@ -7885,9 +8472,9 @@ func (a *UsersAPIService) UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveReque } type ApiUsersUsersUpdateRequest struct { - ctx context.Context - ApiService *UsersAPIService - id int32 + ctx context.Context + ApiService UsersAPI + id int32 userRequest *UserRequest } @@ -7905,27 +8492,26 @@ 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 { return ApiUsersUsersUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return User +// @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") diff --git a/api_utils_test.go b/api_utils_test.go new file mode 100644 index 0000000000..121d4116a6 --- /dev/null +++ b/api_utils_test.go @@ -0,0 +1,27 @@ +package netbox + +import ( + "os" + "testing" +) + +func HGetClient(t *testing.T) *APIClient { + t.Helper() + srv := os.Getenv("NETBOX_URL") + token := os.Getenv("NETBOX_TOKEN") + + if srv == "" { + t.Fatal("NETBOX_URL is not set") + } + if token == "" { + t.Fatal("NETBOX_TOKEN is not set") + } + + cfg := NewConfiguration() + cfg.Servers[0].URL = srv + cfg.AddDefaultHeader("Authorization", "Token "+token) + + client := NewAPIClient(cfg) + return client + +} diff --git a/api_virtualization.go b/api_virtualization.go index 2216c43f9d..96d80278b0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,804 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) + +type VirtualizationAPI interface { + + /* + VirtualizationClusterGroupsBulkDestroy Method for VirtualizationClusterGroupsBulkDestroy + + 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 + */ + VirtualizationClusterGroupsBulkDestroy(ctx context.Context) ApiVirtualizationClusterGroupsBulkDestroyRequest + + // VirtualizationClusterGroupsBulkDestroyExecute executes the request + VirtualizationClusterGroupsBulkDestroyExecute(r ApiVirtualizationClusterGroupsBulkDestroyRequest) (*http.Response, error) + + /* + VirtualizationClusterGroupsBulkPartialUpdate Method for VirtualizationClusterGroupsBulkPartialUpdate + + 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 + */ + VirtualizationClusterGroupsBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkPartialUpdateRequest + + // VirtualizationClusterGroupsBulkPartialUpdateExecute executes the request + // @return []ClusterGroup + VirtualizationClusterGroupsBulkPartialUpdateExecute(r ApiVirtualizationClusterGroupsBulkPartialUpdateRequest) ([]ClusterGroup, *http.Response, error) + + /* + VirtualizationClusterGroupsBulkUpdate Method for VirtualizationClusterGroupsBulkUpdate + + 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 + */ + VirtualizationClusterGroupsBulkUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkUpdateRequest + + // VirtualizationClusterGroupsBulkUpdateExecute executes the request + // @return []ClusterGroup + VirtualizationClusterGroupsBulkUpdateExecute(r ApiVirtualizationClusterGroupsBulkUpdateRequest) ([]ClusterGroup, *http.Response, error) + + /* + 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 + */ + VirtualizationClusterGroupsCreate(ctx context.Context) ApiVirtualizationClusterGroupsCreateRequest + + // VirtualizationClusterGroupsCreateExecute executes the request + // @return ClusterGroup + VirtualizationClusterGroupsCreateExecute(r ApiVirtualizationClusterGroupsCreateRequest) (*ClusterGroup, *http.Response, error) + + /* + 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 + */ + VirtualizationClusterGroupsDestroy(ctx context.Context, id int32) ApiVirtualizationClusterGroupsDestroyRequest + + // VirtualizationClusterGroupsDestroyExecute executes the request + VirtualizationClusterGroupsDestroyExecute(r ApiVirtualizationClusterGroupsDestroyRequest) (*http.Response, error) + + /* + 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 + */ + VirtualizationClusterGroupsList(ctx context.Context) ApiVirtualizationClusterGroupsListRequest + + // VirtualizationClusterGroupsListExecute executes the request + // @return PaginatedClusterGroupList + VirtualizationClusterGroupsListExecute(r ApiVirtualizationClusterGroupsListRequest) (*PaginatedClusterGroupList, *http.Response, error) + + /* + VirtualizationClusterGroupsPartialUpdate Method for VirtualizationClusterGroupsPartialUpdate + + 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 + */ + VirtualizationClusterGroupsPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsPartialUpdateRequest + + // VirtualizationClusterGroupsPartialUpdateExecute executes the request + // @return ClusterGroup + VirtualizationClusterGroupsPartialUpdateExecute(r ApiVirtualizationClusterGroupsPartialUpdateRequest) (*ClusterGroup, *http.Response, error) + + /* + VirtualizationClusterGroupsRetrieve Method for VirtualizationClusterGroupsRetrieve + + 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 + */ + VirtualizationClusterGroupsRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterGroupsRetrieveRequest + + // VirtualizationClusterGroupsRetrieveExecute executes the request + // @return ClusterGroup + VirtualizationClusterGroupsRetrieveExecute(r ApiVirtualizationClusterGroupsRetrieveRequest) (*ClusterGroup, *http.Response, error) + + /* + 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 + */ + VirtualizationClusterGroupsUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsUpdateRequest + + // VirtualizationClusterGroupsUpdateExecute executes the request + // @return ClusterGroup + VirtualizationClusterGroupsUpdateExecute(r ApiVirtualizationClusterGroupsUpdateRequest) (*ClusterGroup, *http.Response, error) + + /* + VirtualizationClusterTypesBulkDestroy Method for VirtualizationClusterTypesBulkDestroy + + 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 + */ + VirtualizationClusterTypesBulkDestroy(ctx context.Context) ApiVirtualizationClusterTypesBulkDestroyRequest + + // VirtualizationClusterTypesBulkDestroyExecute executes the request + VirtualizationClusterTypesBulkDestroyExecute(r ApiVirtualizationClusterTypesBulkDestroyRequest) (*http.Response, error) + + /* + VirtualizationClusterTypesBulkPartialUpdate Method for VirtualizationClusterTypesBulkPartialUpdate + + 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 + */ + VirtualizationClusterTypesBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkPartialUpdateRequest + + // VirtualizationClusterTypesBulkPartialUpdateExecute executes the request + // @return []ClusterType + VirtualizationClusterTypesBulkPartialUpdateExecute(r ApiVirtualizationClusterTypesBulkPartialUpdateRequest) ([]ClusterType, *http.Response, error) + + /* + VirtualizationClusterTypesBulkUpdate Method for VirtualizationClusterTypesBulkUpdate + + 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 + */ + VirtualizationClusterTypesBulkUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkUpdateRequest + + // VirtualizationClusterTypesBulkUpdateExecute executes the request + // @return []ClusterType + VirtualizationClusterTypesBulkUpdateExecute(r ApiVirtualizationClusterTypesBulkUpdateRequest) ([]ClusterType, *http.Response, error) + + /* + 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 + */ + VirtualizationClusterTypesCreate(ctx context.Context) ApiVirtualizationClusterTypesCreateRequest + + // VirtualizationClusterTypesCreateExecute executes the request + // @return ClusterType + VirtualizationClusterTypesCreateExecute(r ApiVirtualizationClusterTypesCreateRequest) (*ClusterType, *http.Response, error) + + /* + 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 + */ + VirtualizationClusterTypesDestroy(ctx context.Context, id int32) ApiVirtualizationClusterTypesDestroyRequest + + // VirtualizationClusterTypesDestroyExecute executes the request + VirtualizationClusterTypesDestroyExecute(r ApiVirtualizationClusterTypesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + VirtualizationClusterTypesList(ctx context.Context) ApiVirtualizationClusterTypesListRequest + + // VirtualizationClusterTypesListExecute executes the request + // @return PaginatedClusterTypeList + VirtualizationClusterTypesListExecute(r ApiVirtualizationClusterTypesListRequest) (*PaginatedClusterTypeList, *http.Response, error) + + /* + VirtualizationClusterTypesPartialUpdate Method for VirtualizationClusterTypesPartialUpdate + + 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 + */ + VirtualizationClusterTypesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesPartialUpdateRequest + + // VirtualizationClusterTypesPartialUpdateExecute executes the request + // @return ClusterType + VirtualizationClusterTypesPartialUpdateExecute(r ApiVirtualizationClusterTypesPartialUpdateRequest) (*ClusterType, *http.Response, error) + + /* + 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 + */ + VirtualizationClusterTypesRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterTypesRetrieveRequest + + // VirtualizationClusterTypesRetrieveExecute executes the request + // @return ClusterType + VirtualizationClusterTypesRetrieveExecute(r ApiVirtualizationClusterTypesRetrieveRequest) (*ClusterType, *http.Response, error) + + /* + 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 + */ + VirtualizationClusterTypesUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesUpdateRequest + + // VirtualizationClusterTypesUpdateExecute executes the request + // @return ClusterType + VirtualizationClusterTypesUpdateExecute(r ApiVirtualizationClusterTypesUpdateRequest) (*ClusterType, *http.Response, error) + + /* + 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 + */ + VirtualizationClustersBulkDestroy(ctx context.Context) ApiVirtualizationClustersBulkDestroyRequest + + // VirtualizationClustersBulkDestroyExecute executes the request + VirtualizationClustersBulkDestroyExecute(r ApiVirtualizationClustersBulkDestroyRequest) (*http.Response, error) + + /* + VirtualizationClustersBulkPartialUpdate Method for VirtualizationClustersBulkPartialUpdate + + 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 + */ + VirtualizationClustersBulkPartialUpdate(ctx context.Context) ApiVirtualizationClustersBulkPartialUpdateRequest + + // VirtualizationClustersBulkPartialUpdateExecute executes the request + // @return []Cluster + VirtualizationClustersBulkPartialUpdateExecute(r ApiVirtualizationClustersBulkPartialUpdateRequest) ([]Cluster, *http.Response, error) + + /* + 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 + */ + VirtualizationClustersBulkUpdate(ctx context.Context) ApiVirtualizationClustersBulkUpdateRequest + + // VirtualizationClustersBulkUpdateExecute executes the request + // @return []Cluster + VirtualizationClustersBulkUpdateExecute(r ApiVirtualizationClustersBulkUpdateRequest) ([]Cluster, *http.Response, error) + + /* + 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 + */ + VirtualizationClustersCreate(ctx context.Context) ApiVirtualizationClustersCreateRequest + + // VirtualizationClustersCreateExecute executes the request + // @return Cluster + VirtualizationClustersCreateExecute(r ApiVirtualizationClustersCreateRequest) (*Cluster, *http.Response, error) + + /* + 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 + */ + VirtualizationClustersDestroy(ctx context.Context, id int32) ApiVirtualizationClustersDestroyRequest + + // VirtualizationClustersDestroyExecute executes the request + VirtualizationClustersDestroyExecute(r ApiVirtualizationClustersDestroyRequest) (*http.Response, error) + + /* + 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 + */ + VirtualizationClustersList(ctx context.Context) ApiVirtualizationClustersListRequest + + // VirtualizationClustersListExecute executes the request + // @return PaginatedClusterList + VirtualizationClustersListExecute(r ApiVirtualizationClustersListRequest) (*PaginatedClusterList, *http.Response, error) + + /* + VirtualizationClustersPartialUpdate Method for VirtualizationClustersPartialUpdate + + 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 + */ + VirtualizationClustersPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClustersPartialUpdateRequest + + // VirtualizationClustersPartialUpdateExecute executes the request + // @return Cluster + VirtualizationClustersPartialUpdateExecute(r ApiVirtualizationClustersPartialUpdateRequest) (*Cluster, *http.Response, error) + + /* + 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 + */ + VirtualizationClustersRetrieve(ctx context.Context, id int32) ApiVirtualizationClustersRetrieveRequest + + // VirtualizationClustersRetrieveExecute executes the request + // @return Cluster + VirtualizationClustersRetrieveExecute(r ApiVirtualizationClustersRetrieveRequest) (*Cluster, *http.Response, error) + + /* + 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 + */ + VirtualizationClustersUpdate(ctx context.Context, id int32) ApiVirtualizationClustersUpdateRequest + + // VirtualizationClustersUpdateExecute executes the request + // @return Cluster + VirtualizationClustersUpdateExecute(r ApiVirtualizationClustersUpdateRequest) (*Cluster, *http.Response, error) + + /* + VirtualizationInterfacesBulkDestroy Method for VirtualizationInterfacesBulkDestroy + + 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 + */ + VirtualizationInterfacesBulkDestroy(ctx context.Context) ApiVirtualizationInterfacesBulkDestroyRequest + + // VirtualizationInterfacesBulkDestroyExecute executes the request + VirtualizationInterfacesBulkDestroyExecute(r ApiVirtualizationInterfacesBulkDestroyRequest) (*http.Response, error) + + /* + VirtualizationInterfacesBulkPartialUpdate Method for VirtualizationInterfacesBulkPartialUpdate + + 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 + */ + VirtualizationInterfacesBulkPartialUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkPartialUpdateRequest + + // VirtualizationInterfacesBulkPartialUpdateExecute executes the request + // @return []VMInterface + VirtualizationInterfacesBulkPartialUpdateExecute(r ApiVirtualizationInterfacesBulkPartialUpdateRequest) ([]VMInterface, *http.Response, error) + + /* + 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 + */ + VirtualizationInterfacesBulkUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkUpdateRequest + + // VirtualizationInterfacesBulkUpdateExecute executes the request + // @return []VMInterface + VirtualizationInterfacesBulkUpdateExecute(r ApiVirtualizationInterfacesBulkUpdateRequest) ([]VMInterface, *http.Response, error) + + /* + 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 + */ + VirtualizationInterfacesCreate(ctx context.Context) ApiVirtualizationInterfacesCreateRequest + + // VirtualizationInterfacesCreateExecute executes the request + // @return VMInterface + VirtualizationInterfacesCreateExecute(r ApiVirtualizationInterfacesCreateRequest) (*VMInterface, *http.Response, error) + + /* + 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 + */ + VirtualizationInterfacesDestroy(ctx context.Context, id int32) ApiVirtualizationInterfacesDestroyRequest + + // VirtualizationInterfacesDestroyExecute executes the request + VirtualizationInterfacesDestroyExecute(r ApiVirtualizationInterfacesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + VirtualizationInterfacesList(ctx context.Context) ApiVirtualizationInterfacesListRequest + + // VirtualizationInterfacesListExecute executes the request + // @return PaginatedVMInterfaceList + VirtualizationInterfacesListExecute(r ApiVirtualizationInterfacesListRequest) (*PaginatedVMInterfaceList, *http.Response, error) + + /* + VirtualizationInterfacesPartialUpdate Method for VirtualizationInterfacesPartialUpdate + + 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 + */ + VirtualizationInterfacesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesPartialUpdateRequest + + // VirtualizationInterfacesPartialUpdateExecute executes the request + // @return VMInterface + VirtualizationInterfacesPartialUpdateExecute(r ApiVirtualizationInterfacesPartialUpdateRequest) (*VMInterface, *http.Response, error) + + /* + 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 + */ + VirtualizationInterfacesRetrieve(ctx context.Context, id int32) ApiVirtualizationInterfacesRetrieveRequest + + // VirtualizationInterfacesRetrieveExecute executes the request + // @return VMInterface + VirtualizationInterfacesRetrieveExecute(r ApiVirtualizationInterfacesRetrieveRequest) (*VMInterface, *http.Response, error) + + /* + 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 + */ + VirtualizationInterfacesUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesUpdateRequest + + // VirtualizationInterfacesUpdateExecute executes the request + // @return VMInterface + VirtualizationInterfacesUpdateExecute(r ApiVirtualizationInterfacesUpdateRequest) (*VMInterface, *http.Response, error) + + /* + VirtualizationVirtualDisksBulkDestroy Method for VirtualizationVirtualDisksBulkDestroy + + Delete a list of virtual disk objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksBulkDestroyRequest + */ + VirtualizationVirtualDisksBulkDestroy(ctx context.Context) ApiVirtualizationVirtualDisksBulkDestroyRequest + + // VirtualizationVirtualDisksBulkDestroyExecute executes the request + VirtualizationVirtualDisksBulkDestroyExecute(r ApiVirtualizationVirtualDisksBulkDestroyRequest) (*http.Response, error) + + /* + VirtualizationVirtualDisksBulkPartialUpdate Method for VirtualizationVirtualDisksBulkPartialUpdate + + Patch a list of virtual disk objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest + */ + VirtualizationVirtualDisksBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkPartialUpdateRequest + + // VirtualizationVirtualDisksBulkPartialUpdateExecute executes the request + // @return []VirtualDisk + VirtualizationVirtualDisksBulkPartialUpdateExecute(r ApiVirtualizationVirtualDisksBulkPartialUpdateRequest) ([]VirtualDisk, *http.Response, error) + + /* + VirtualizationVirtualDisksBulkUpdate Method for VirtualizationVirtualDisksBulkUpdate + + Put a list of virtual disk objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksBulkUpdateRequest + */ + VirtualizationVirtualDisksBulkUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkUpdateRequest + + // VirtualizationVirtualDisksBulkUpdateExecute executes the request + // @return []VirtualDisk + VirtualizationVirtualDisksBulkUpdateExecute(r ApiVirtualizationVirtualDisksBulkUpdateRequest) ([]VirtualDisk, *http.Response, error) + + /* + VirtualizationVirtualDisksCreate Method for VirtualizationVirtualDisksCreate + + Post a list of virtual disk objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksCreateRequest + */ + VirtualizationVirtualDisksCreate(ctx context.Context) ApiVirtualizationVirtualDisksCreateRequest + + // VirtualizationVirtualDisksCreateExecute executes the request + // @return VirtualDisk + VirtualizationVirtualDisksCreateExecute(r ApiVirtualizationVirtualDisksCreateRequest) (*VirtualDisk, *http.Response, error) + + /* + VirtualizationVirtualDisksDestroy Method for VirtualizationVirtualDisksDestroy + + Delete a virtual disk object. + + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksDestroyRequest + */ + VirtualizationVirtualDisksDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualDisksDestroyRequest + + // VirtualizationVirtualDisksDestroyExecute executes the request + VirtualizationVirtualDisksDestroyExecute(r ApiVirtualizationVirtualDisksDestroyRequest) (*http.Response, error) + + /* + VirtualizationVirtualDisksList Method for VirtualizationVirtualDisksList + + Get a list of virtual disk objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksListRequest + */ + VirtualizationVirtualDisksList(ctx context.Context) ApiVirtualizationVirtualDisksListRequest + + // VirtualizationVirtualDisksListExecute executes the request + // @return PaginatedVirtualDiskList + VirtualizationVirtualDisksListExecute(r ApiVirtualizationVirtualDisksListRequest) (*PaginatedVirtualDiskList, *http.Response, error) + + /* + VirtualizationVirtualDisksPartialUpdate Method for VirtualizationVirtualDisksPartialUpdate + + Patch a virtual disk object. + + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksPartialUpdateRequest + */ + VirtualizationVirtualDisksPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksPartialUpdateRequest + + // VirtualizationVirtualDisksPartialUpdateExecute executes the request + // @return VirtualDisk + VirtualizationVirtualDisksPartialUpdateExecute(r ApiVirtualizationVirtualDisksPartialUpdateRequest) (*VirtualDisk, *http.Response, error) + + /* + VirtualizationVirtualDisksRetrieve Method for VirtualizationVirtualDisksRetrieve + + Get a virtual disk object. + + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksRetrieveRequest + */ + VirtualizationVirtualDisksRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualDisksRetrieveRequest + + // VirtualizationVirtualDisksRetrieveExecute executes the request + // @return VirtualDisk + VirtualizationVirtualDisksRetrieveExecute(r ApiVirtualizationVirtualDisksRetrieveRequest) (*VirtualDisk, *http.Response, error) + + /* + VirtualizationVirtualDisksUpdate Method for VirtualizationVirtualDisksUpdate + + Put a virtual disk object. + + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksUpdateRequest + */ + VirtualizationVirtualDisksUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksUpdateRequest + + // VirtualizationVirtualDisksUpdateExecute executes the request + // @return VirtualDisk + VirtualizationVirtualDisksUpdateExecute(r ApiVirtualizationVirtualDisksUpdateRequest) (*VirtualDisk, *http.Response, error) + + /* + VirtualizationVirtualMachinesBulkDestroy Method for VirtualizationVirtualMachinesBulkDestroy + + 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 + */ + VirtualizationVirtualMachinesBulkDestroy(ctx context.Context) ApiVirtualizationVirtualMachinesBulkDestroyRequest + + // VirtualizationVirtualMachinesBulkDestroyExecute executes the request + VirtualizationVirtualMachinesBulkDestroyExecute(r ApiVirtualizationVirtualMachinesBulkDestroyRequest) (*http.Response, error) + + /* + VirtualizationVirtualMachinesBulkPartialUpdate Method for VirtualizationVirtualMachinesBulkPartialUpdate + + 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 + */ + VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest + + // VirtualizationVirtualMachinesBulkPartialUpdateExecute executes the request + // @return []VirtualMachineWithConfigContext + VirtualizationVirtualMachinesBulkPartialUpdateExecute(r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) + + /* + VirtualizationVirtualMachinesBulkUpdate Method for VirtualizationVirtualMachinesBulkUpdate + + 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 + */ + VirtualizationVirtualMachinesBulkUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkUpdateRequest + + // VirtualizationVirtualMachinesBulkUpdateExecute executes the request + // @return []VirtualMachineWithConfigContext + VirtualizationVirtualMachinesBulkUpdateExecute(r ApiVirtualizationVirtualMachinesBulkUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) + + /* + VirtualizationVirtualMachinesCreate Method for VirtualizationVirtualMachinesCreate + + 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 + */ + VirtualizationVirtualMachinesCreate(ctx context.Context) ApiVirtualizationVirtualMachinesCreateRequest + + // VirtualizationVirtualMachinesCreateExecute executes the request + // @return VirtualMachineWithConfigContext + VirtualizationVirtualMachinesCreateExecute(r ApiVirtualizationVirtualMachinesCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) + + /* + VirtualizationVirtualMachinesDestroy Method for VirtualizationVirtualMachinesDestroy + + 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 + */ + VirtualizationVirtualMachinesDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesDestroyRequest + + // VirtualizationVirtualMachinesDestroyExecute executes the request + VirtualizationVirtualMachinesDestroyExecute(r ApiVirtualizationVirtualMachinesDestroyRequest) (*http.Response, error) + + /* + 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 + */ + VirtualizationVirtualMachinesList(ctx context.Context) ApiVirtualizationVirtualMachinesListRequest + + // VirtualizationVirtualMachinesListExecute executes the request + // @return PaginatedVirtualMachineWithConfigContextList + VirtualizationVirtualMachinesListExecute(r ApiVirtualizationVirtualMachinesListRequest) (*PaginatedVirtualMachineWithConfigContextList, *http.Response, error) + + /* + VirtualizationVirtualMachinesPartialUpdate Method for VirtualizationVirtualMachinesPartialUpdate + + 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 + */ + VirtualizationVirtualMachinesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesPartialUpdateRequest + + // VirtualizationVirtualMachinesPartialUpdateExecute executes the request + // @return VirtualMachineWithConfigContext + VirtualizationVirtualMachinesPartialUpdateExecute(r ApiVirtualizationVirtualMachinesPartialUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) + + /* + VirtualizationVirtualMachinesRenderConfigCreate Method for VirtualizationVirtualMachinesRenderConfigCreate + + 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 virtual machine. + @return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest + */ + VirtualizationVirtualMachinesRenderConfigCreate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest + + // VirtualizationVirtualMachinesRenderConfigCreateExecute executes the request + // @return VirtualMachineWithConfigContext + VirtualizationVirtualMachinesRenderConfigCreateExecute(r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) + + /* + VirtualizationVirtualMachinesRetrieve Method for VirtualizationVirtualMachinesRetrieve + + 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 + */ + VirtualizationVirtualMachinesRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRetrieveRequest + + // VirtualizationVirtualMachinesRetrieveExecute executes the request + // @return VirtualMachineWithConfigContext + VirtualizationVirtualMachinesRetrieveExecute(r ApiVirtualizationVirtualMachinesRetrieveRequest) (*VirtualMachineWithConfigContext, *http.Response, error) + + /* + VirtualizationVirtualMachinesUpdate Method for VirtualizationVirtualMachinesUpdate + + 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 + */ + VirtualizationVirtualMachinesUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesUpdateRequest + + // VirtualizationVirtualMachinesUpdateExecute executes the request + // @return VirtualMachineWithConfigContext + VirtualizationVirtualMachinesUpdateExecute(r ApiVirtualizationVirtualMachinesUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) +} + // VirtualizationAPIService VirtualizationAPI service type VirtualizationAPIService service type ApiVirtualizationClusterGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterGroupRequest *[]ClusterGroupRequest } @@ -44,22 +831,22 @@ 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 { return ApiVirtualizationClusterGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -138,8 +925,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkDestroyExecute } type ApiVirtualizationClusterGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterGroupRequest *[]ClusterGroupRequest } @@ -157,25 +944,24 @@ 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 { return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterGroup +// @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") @@ -263,8 +1049,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkPartialUpdateE } type ApiVirtualizationClusterGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterGroupRequest *[]ClusterGroupRequest } @@ -282,25 +1068,24 @@ 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 { return ApiVirtualizationClusterGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterGroup +// @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") @@ -388,8 +1173,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkUpdateExecute( } type ApiVirtualizationClusterGroupsCreateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterGroupRequest *ClusterGroupRequest } @@ -407,25 +1192,24 @@ 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 { return ApiVirtualizationClusterGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ClusterGroup +// @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") @@ -513,9 +1297,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsCreateExecute(r Ap } type ApiVirtualizationClusterGroupsDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationClusterGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -527,24 +1311,24 @@ 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 { 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) { 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") @@ -619,77 +1403,77 @@ 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 - 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 + ctx context.Context + ApiService VirtualizationAPI + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + 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 + 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 } // Contact @@ -704,14 +1488,12 @@ func (r ApiVirtualizationClusterGroupsListRequest) ContactN(contactN []int32) Ap return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -1056,25 +1838,24 @@ 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 { return ApiVirtualizationClusterGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedClusterGroupList +// @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") @@ -1093,10 +1874,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -1104,10 +1885,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -1115,10 +1896,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -1126,10 +1907,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -1137,10 +1918,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -1148,10 +1929,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -1159,10 +1940,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -1170,10 +1951,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -1181,10 +1962,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -1192,10 +1973,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -1203,10 +1984,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -1214,10 +1995,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -1225,38 +2006,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -1264,10 +2045,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -1275,10 +2056,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -1286,10 +2067,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -1297,10 +2078,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -1308,10 +2089,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -1319,10 +2100,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -1330,10 +2111,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -1341,10 +2122,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -1352,24 +2133,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -1377,10 +2158,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -1388,10 +2169,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -1399,10 +2180,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -1410,10 +2191,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -1421,10 +2202,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -1432,10 +2213,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -1443,10 +2224,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -1454,10 +2235,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -1465,10 +2246,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -1476,10 +2257,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -1487,41 +2268,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -1529,10 +2310,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -1540,10 +2321,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -1551,10 +2332,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -1562,10 +2343,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -1573,10 +2354,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -1584,10 +2365,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -1595,10 +2376,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -1606,44 +2387,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -1651,10 +2432,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -1662,10 +2443,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -1673,10 +2454,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -1684,10 +2465,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -1695,10 +2476,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -1706,10 +2487,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -1717,10 +2498,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -1728,10 +2509,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -1739,10 +2520,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -1750,14 +2531,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1828,9 +2609,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsListExecute(r ApiV } type ApiVirtualizationClusterGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 patchedClusterGroupRequest *PatchedClusterGroupRequest } @@ -1848,27 +2629,26 @@ 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 { return ApiVirtualizationClusterGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterGroup +// @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") @@ -1954,9 +2734,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsPartialUpdateExecu } type ApiVirtualizationClusterGroupsRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationClusterGroupsRetrieveRequest) Execute() (*ClusterGroup, *http.Response, error) { @@ -1968,27 +2748,26 @@ 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 { return ApiVirtualizationClusterGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterGroup +// @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") @@ -2072,9 +2851,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsRetrieveExecute(r } type ApiVirtualizationClusterGroupsUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 clusterGroupRequest *ClusterGroupRequest } @@ -2092,27 +2871,26 @@ 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 { return ApiVirtualizationClusterGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterGroup +// @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") @@ -2201,8 +2979,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterGroupsUpdateExecute(r Ap } type ApiVirtualizationClusterTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterTypeRequest *[]ClusterTypeRequest } @@ -2220,22 +2998,22 @@ 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 { return ApiVirtualizationClusterTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -2314,8 +3092,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkDestroyExecute( } type ApiVirtualizationClusterTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterTypeRequest *[]ClusterTypeRequest } @@ -2333,25 +3111,24 @@ 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 { return ApiVirtualizationClusterTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterType +// @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") @@ -2439,8 +3216,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkPartialUpdateEx } type ApiVirtualizationClusterTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterTypeRequest *[]ClusterTypeRequest } @@ -2458,25 +3235,24 @@ 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 { return ApiVirtualizationClusterTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterType +// @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") @@ -2564,8 +3340,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkUpdateExecute(r } type ApiVirtualizationClusterTypesCreateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterTypeRequest *ClusterTypeRequest } @@ -2583,25 +3359,24 @@ 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 { return ApiVirtualizationClusterTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ClusterType +// @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") @@ -2689,9 +3464,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesCreateExecute(r Api } type ApiVirtualizationClusterTypesDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationClusterTypesDestroyRequest) Execute() (*http.Response, error) { @@ -2703,24 +3478,24 @@ 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 { 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) { 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") @@ -2795,71 +3570,71 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesDestroyExecute(r Ap } type ApiVirtualizationClusterTypesListRequest struct { - 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 - 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 + ctx context.Context + ApiService VirtualizationAPI + 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 + 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 } func (r ApiVirtualizationClusterTypesListRequest) Created(created []time.Time) ApiVirtualizationClusterTypesListRequest { @@ -3190,25 +3965,24 @@ 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 { return ApiVirtualizationClusterTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedClusterTypeList +// @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") @@ -3227,10 +4001,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -3238,10 +4012,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -3249,10 +4023,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -3260,10 +4034,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -3271,10 +4045,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -3282,10 +4056,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -3293,38 +4067,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -3332,10 +4106,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -3343,10 +4117,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -3354,10 +4128,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -3365,10 +4139,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -3376,10 +4150,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -3387,10 +4161,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -3398,10 +4172,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -3409,10 +4183,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -3420,24 +4194,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -3445,10 +4219,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -3456,10 +4230,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -3467,10 +4241,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -3478,10 +4252,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -3489,10 +4263,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -3500,10 +4274,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -3511,10 +4285,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -3522,10 +4296,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -3533,10 +4307,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -3544,10 +4318,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -3555,41 +4329,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -3597,10 +4371,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -3608,10 +4382,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -3619,10 +4393,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -3630,10 +4404,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -3641,10 +4415,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -3652,10 +4426,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -3663,10 +4437,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -3674,44 +4448,44 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -3719,10 +4493,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -3730,10 +4504,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -3741,10 +4515,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -3752,10 +4526,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -3763,10 +4537,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -3774,10 +4548,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -3785,10 +4559,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -3796,10 +4570,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -3807,10 +4581,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -3818,14 +4592,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3896,9 +4670,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesListExecute(r ApiVi } type ApiVirtualizationClusterTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 patchedClusterTypeRequest *PatchedClusterTypeRequest } @@ -3916,27 +4690,26 @@ 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 { return ApiVirtualizationClusterTypesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterType +// @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") @@ -4022,9 +4795,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesPartialUpdateExecut } type ApiVirtualizationClusterTypesRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationClusterTypesRetrieveRequest) Execute() (*ClusterType, *http.Response, error) { @@ -4036,27 +4809,26 @@ 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 { return ApiVirtualizationClusterTypesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterType +// @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") @@ -4140,9 +4912,9 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesRetrieveExecute(r A } type ApiVirtualizationClusterTypesUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 clusterTypeRequest *ClusterTypeRequest } @@ -4160,27 +4932,26 @@ 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 { return ApiVirtualizationClusterTypesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterType +// @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") @@ -4269,8 +5040,8 @@ func (a *VirtualizationAPIService) VirtualizationClusterTypesUpdateExecute(r Api } type ApiVirtualizationClustersBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterRequest *[]ClusterRequest } @@ -4288,22 +5059,22 @@ 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 { return ApiVirtualizationClustersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -4382,8 +5153,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersBulkDestroyExecute(r Ap } type ApiVirtualizationClustersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterRequest *[]ClusterRequest } @@ -4401,25 +5172,24 @@ 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 { return ApiVirtualizationClustersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Cluster +// @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") @@ -4507,8 +5277,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersBulkPartialUpdateExecut } type ApiVirtualizationClustersBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI clusterRequest *[]ClusterRequest } @@ -4526,25 +5296,24 @@ 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 { return ApiVirtualizationClustersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Cluster +// @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") @@ -4632,8 +5401,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersBulkUpdateExecute(r Api } type ApiVirtualizationClustersCreateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI writableClusterRequest *WritableClusterRequest } @@ -4651,25 +5420,24 @@ 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 { return ApiVirtualizationClustersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Cluster +// @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") @@ -4757,9 +5525,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersCreateExecute(r ApiVirt } type ApiVirtualizationClustersDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationClustersDestroyRequest) Execute() (*http.Response, error) { @@ -4771,24 +5539,24 @@ 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 { 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) { 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") @@ -4863,96 +5631,118 @@ 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 - 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 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 + ctx context.Context + ApiService VirtualizationAPI + contact *[]int32 + contactN *[]int32 + contactGroup *[]string + contactGroupN *[]string + 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 + 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 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]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 - 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 + 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 *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + scopeId *[]int32 + scopeIdEmpty *bool + scopeIdGt *[]int32 + scopeIdGte *[]int32 + scopeIdLt *[]int32 + scopeIdLte *[]int32 + scopeIdN *[]int32 + scopeType *string + scopeTypeN *string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *[]string + typeN *[]string + typeId *[]int32 + typeIdN *[]int32 + updatedByRequest *string } // Contact @@ -4967,14 +5757,12 @@ func (r ApiVirtualizationClustersListRequest) ContactN(contactN []int32) ApiVirt return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClustersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClustersListRequest { r.contactGroupN = &contactGroupN return r } @@ -5186,6 +5974,26 @@ func (r ApiVirtualizationClustersListRequest) Limit(limit int32) ApiVirtualizati return r } +func (r ApiVirtualizationClustersListRequest) Location(location []string) ApiVirtualizationClustersListRequest { + r.location = &location + return r +} + +func (r ApiVirtualizationClustersListRequest) LocationN(locationN []string) ApiVirtualizationClustersListRequest { + r.locationN = &locationN + return r +} + +func (r ApiVirtualizationClustersListRequest) LocationId(locationId []string) ApiVirtualizationClustersListRequest { + r.locationId = &locationId + return r +} + +func (r ApiVirtualizationClustersListRequest) LocationIdN(locationIdN []string) ApiVirtualizationClustersListRequest { + r.locationIdN = &locationIdN + return r +} + func (r ApiVirtualizationClustersListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationClustersListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -5264,30 +6072,71 @@ func (r ApiVirtualizationClustersListRequest) Q(q string) ApiVirtualizationClust return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) Region(region []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) Region(region []string) ApiVirtualizationClustersListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) RegionN(regionN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionN(regionN []string) ApiVirtualizationClustersListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionId(regionId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionId(regionId []string) ApiVirtualizationClustersListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []string) ApiVirtualizationClustersListRequest { r.regionIdN = ®ionIdN return r } +func (r ApiVirtualizationClustersListRequest) ScopeId(scopeId []int32) ApiVirtualizationClustersListRequest { + r.scopeId = &scopeId + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeIdEmpty(scopeIdEmpty bool) ApiVirtualizationClustersListRequest { + r.scopeIdEmpty = &scopeIdEmpty + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeIdGt(scopeIdGt []int32) ApiVirtualizationClustersListRequest { + r.scopeIdGt = &scopeIdGt + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeIdGte(scopeIdGte []int32) ApiVirtualizationClustersListRequest { + r.scopeIdGte = &scopeIdGte + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeIdLt(scopeIdLt []int32) ApiVirtualizationClustersListRequest { + r.scopeIdLt = &scopeIdLt + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeIdLte(scopeIdLte []int32) ApiVirtualizationClustersListRequest { + r.scopeIdLte = &scopeIdLte + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeIdN(scopeIdN []int32) ApiVirtualizationClustersListRequest { + r.scopeIdN = &scopeIdN + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeType(scopeType string) ApiVirtualizationClustersListRequest { + r.scopeType = &scopeType + return r +} + +func (r ApiVirtualizationClustersListRequest) ScopeTypeN(scopeTypeN string) ApiVirtualizationClustersListRequest { + r.scopeTypeN = &scopeTypeN + return r +} + // Site (slug) func (r ApiVirtualizationClustersListRequest) Site(site []string) ApiVirtualizationClustersListRequest { r.site = &site @@ -5300,49 +6149,90 @@ func (r ApiVirtualizationClustersListRequest) SiteN(siteN []string) ApiVirtualiz return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []string) ApiVirtualizationClustersListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationClustersListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationClustersListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationClustersListRequest { r.siteGroupIdN = &siteGroupIdN return r } -// Site (ID) -func (r ApiVirtualizationClustersListRequest) SiteId(siteId []*int32) ApiVirtualizationClustersListRequest { - r.siteId = &siteId +// Site (ID) +func (r ApiVirtualizationClustersListRequest) SiteId(siteId []int32) ApiVirtualizationClustersListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiVirtualizationClustersListRequest) SiteIdN(siteIdN []int32) ApiVirtualizationClustersListRequest { + r.siteIdN = &siteIdN + return r +} + +func (r ApiVirtualizationClustersListRequest) Status(status []string) ApiVirtualizationClustersListRequest { + r.status = &status + return r +} + +func (r ApiVirtualizationClustersListRequest) StatusEmpty(statusEmpty bool) ApiVirtualizationClustersListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiVirtualizationClustersListRequest) StatusIc(statusIc []string) ApiVirtualizationClustersListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiVirtualizationClustersListRequest) StatusIe(statusIe []string) ApiVirtualizationClustersListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiVirtualizationClustersListRequest) StatusIew(statusIew []string) ApiVirtualizationClustersListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiVirtualizationClustersListRequest) StatusIsw(statusIsw []string) ApiVirtualizationClustersListRequest { + r.statusIsw = &statusIsw + return r +} + +func (r ApiVirtualizationClustersListRequest) StatusN(statusN []string) ApiVirtualizationClustersListRequest { + r.statusN = &statusN + return r +} + +func (r ApiVirtualizationClustersListRequest) StatusNic(statusNic []string) ApiVirtualizationClustersListRequest { + r.statusNic = &statusNic return r } -// Site (ID) -func (r ApiVirtualizationClustersListRequest) SiteIdN(siteIdN []*int32) ApiVirtualizationClustersListRequest { - r.siteIdN = &siteIdN +func (r ApiVirtualizationClustersListRequest) StatusNie(statusNie []string) ApiVirtualizationClustersListRequest { + r.statusNie = &statusNie return r } -func (r ApiVirtualizationClustersListRequest) Status(status []string) ApiVirtualizationClustersListRequest { - r.status = &status +func (r ApiVirtualizationClustersListRequest) StatusNiew(statusNiew []string) ApiVirtualizationClustersListRequest { + r.statusNiew = &statusNiew return r } -func (r ApiVirtualizationClustersListRequest) StatusN(statusN []string) ApiVirtualizationClustersListRequest { - r.statusN = &statusN +func (r ApiVirtualizationClustersListRequest) StatusNisw(statusNisw []string) ApiVirtualizationClustersListRequest { + r.statusNisw = &statusNisw return r } @@ -5368,26 +6258,22 @@ func (r ApiVirtualizationClustersListRequest) TenantN(tenantN []string) ApiVirtu return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationClustersListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationClustersListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationClustersListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationClustersListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5442,25 +6328,24 @@ 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 { return ApiVirtualizationClustersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedClusterList +// @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") @@ -5479,10 +6364,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -5490,10 +6375,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -5501,10 +6386,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -5512,10 +6397,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -5523,10 +6408,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -5534,10 +6419,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -5545,10 +6430,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -5556,10 +6441,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -5567,10 +6452,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -5578,10 +6463,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -5589,10 +6474,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -5600,10 +6485,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -5611,38 +6496,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -5650,10 +6535,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -5661,10 +6546,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -5672,10 +6557,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -5683,10 +6568,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -5694,10 +6579,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -5705,10 +6590,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -5716,10 +6601,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -5727,10 +6612,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.group != nil { @@ -5738,10 +6623,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -5749,10 +6634,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -5760,10 +6645,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -5771,10 +6656,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -5782,24 +6667,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -5807,10 +6692,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -5818,10 +6703,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -5829,10 +6714,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -5840,10 +6725,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -5851,10 +6736,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -5862,10 +6747,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -5873,10 +6758,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -5884,10 +6769,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -5895,10 +6780,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -5906,10 +6791,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -5917,41 +6802,85 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") + } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -5959,10 +6888,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -5970,10 +6899,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -5981,10 +6910,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -5992,10 +6921,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -6003,10 +6932,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -6014,10 +6943,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -6025,10 +6954,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -6036,30 +6965,30 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -6067,10 +6996,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -6078,10 +7007,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -6089,21 +7018,96 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") + } + } + if r.scopeId != nil { + t := *r.scopeId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", t, "form", "multi") + } + } + if r.scopeIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__empty", r.scopeIdEmpty, "form", "") + } + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", t, "form", "multi") + } + } + if r.scopeIdGte != nil { + t := *r.scopeIdGte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", t, "form", "multi") + } + } + if r.scopeIdLt != nil { + t := *r.scopeIdLt + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", t, "form", "multi") + } + } + if r.scopeIdLte != nil { + t := *r.scopeIdLte + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", t, "form", "multi") + } + } + if r.scopeIdN != nil { + t := *r.scopeIdN + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", t, "form", "multi") } } + if r.scopeType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type", r.scopeType, "form", "") + } + if r.scopeTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type__n", r.scopeTypeN, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteN != nil { @@ -6111,10 +7115,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } if r.siteGroup != nil { @@ -6122,10 +7126,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } if r.siteGroupN != nil { @@ -6133,10 +7137,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } if r.siteGroupId != nil { @@ -6144,10 +7148,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } if r.siteGroupIdN != nil { @@ -6155,10 +7159,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } if r.siteId != nil { @@ -6166,10 +7170,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.siteIdN != nil { @@ -6177,10 +7181,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.status != nil { @@ -6188,10 +7192,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -6199,10 +7250,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -6210,10 +7305,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -6221,10 +7316,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -6232,10 +7327,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -6243,10 +7338,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -6254,10 +7349,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -6265,10 +7360,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -6276,10 +7371,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -6287,10 +7382,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -6298,10 +7393,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -6309,10 +7404,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.type_ != nil { @@ -6320,10 +7415,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") } } if r.typeN != nil { @@ -6331,10 +7426,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") } } if r.typeId != nil { @@ -6342,10 +7437,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", t, "form", "multi") } } if r.typeIdN != nil { @@ -6353,14 +7448,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6431,9 +7526,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtua } type ApiVirtualizationClustersPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 patchedWritableClusterRequest *PatchedWritableClusterRequest } @@ -6451,27 +7546,26 @@ 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 { return ApiVirtualizationClustersPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cluster +// @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") @@ -6557,9 +7651,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersPartialUpdateExecute(r } type ApiVirtualizationClustersRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationClustersRetrieveRequest) Execute() (*Cluster, *http.Response, error) { @@ -6571,27 +7665,26 @@ 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 { return ApiVirtualizationClustersRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cluster +// @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") @@ -6675,9 +7768,9 @@ func (a *VirtualizationAPIService) VirtualizationClustersRetrieveExecute(r ApiVi } type ApiVirtualizationClustersUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 writableClusterRequest *WritableClusterRequest } @@ -6695,27 +7788,26 @@ 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 { return ApiVirtualizationClustersUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cluster +// @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") @@ -6804,8 +7896,8 @@ func (a *VirtualizationAPIService) VirtualizationClustersUpdateExecute(r ApiVirt } type ApiVirtualizationInterfacesBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI vMInterfaceRequest *[]VMInterfaceRequest } @@ -6823,22 +7915,22 @@ 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 { return ApiVirtualizationInterfacesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -6917,8 +8009,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesBulkDestroyExecute(r } type ApiVirtualizationInterfacesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI vMInterfaceRequest *[]VMInterfaceRequest } @@ -6936,25 +8028,24 @@ 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 { return ApiVirtualizationInterfacesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VMInterface +// @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") @@ -7042,8 +8133,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesBulkPartialUpdateExec } type ApiVirtualizationInterfacesBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI vMInterfaceRequest *[]VMInterfaceRequest } @@ -7061,25 +8152,24 @@ 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 { return ApiVirtualizationInterfacesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VMInterface +// @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") @@ -7167,8 +8257,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesBulkUpdateExecute(r A } type ApiVirtualizationInterfacesCreateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI writableVMInterfaceRequest *WritableVMInterfaceRequest } @@ -7186,25 +8276,24 @@ 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 { return ApiVirtualizationInterfacesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VMInterface +// @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") @@ -7292,9 +8381,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesCreateExecute(r ApiVi } type ApiVirtualizationInterfacesDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationInterfacesDestroyRequest) Execute() (*http.Response, error) { @@ -7306,24 +8395,24 @@ 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 { 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) { 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") @@ -7398,102 +8487,109 @@ 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 - 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 - mode *DcimInterfacesListModeParameter - modeN *DcimInterfacesListModeParameter + ctx context.Context + ApiService VirtualizationAPI + 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 + mode *DcimInterfacesListModeParameter 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 + 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 + primaryMacAddress *[]string + primaryMacAddressN *[]string + primaryMacAddressId *[]int32 + primaryMacAddressIdN *[]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 + vlanTranslationPolicy *[]string + vlanTranslationPolicyN *[]string + vlanTranslationPolicyId *[]int32 + vlanTranslationPolicyIdN *[]int32 + vrf *[]*string + vrfN *[]*string + vrfId *[]int32 + vrfIdN *[]int32 } // Bridged interface (ID) @@ -7782,18 +8878,12 @@ func (r ApiVirtualizationInterfacesListRequest) MacAddressNisw(macAddressNisw [] return r } -// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) +// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) func (r ApiVirtualizationInterfacesListRequest) Mode(mode DcimInterfacesListModeParameter) ApiVirtualizationInterfacesListRequest { r.mode = &mode return r } -// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) -func (r ApiVirtualizationInterfacesListRequest) ModeN(modeN DcimInterfacesListModeParameter) ApiVirtualizationInterfacesListRequest { - r.modeN = &modeN - return r -} - func (r ApiVirtualizationInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationInterfacesListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -7913,6 +9003,30 @@ func (r ApiVirtualizationInterfacesListRequest) ParentIdN(parentIdN []int32) Api return r } +// Primary MAC address +func (r ApiVirtualizationInterfacesListRequest) PrimaryMacAddress(primaryMacAddress []string) ApiVirtualizationInterfacesListRequest { + r.primaryMacAddress = &primaryMacAddress + return r +} + +// Primary MAC address +func (r ApiVirtualizationInterfacesListRequest) PrimaryMacAddressN(primaryMacAddressN []string) ApiVirtualizationInterfacesListRequest { + r.primaryMacAddressN = &primaryMacAddressN + return r +} + +// Primary MAC address (ID) +func (r ApiVirtualizationInterfacesListRequest) PrimaryMacAddressId(primaryMacAddressId []int32) ApiVirtualizationInterfacesListRequest { + r.primaryMacAddressId = &primaryMacAddressId + return r +} + +// Primary MAC address (ID) +func (r ApiVirtualizationInterfacesListRequest) PrimaryMacAddressIdN(primaryMacAddressIdN []int32) ApiVirtualizationInterfacesListRequest { + r.primaryMacAddressIdN = &primaryMacAddressIdN + return r +} + // Search func (r ApiVirtualizationInterfacesListRequest) Q(q string) ApiVirtualizationInterfacesListRequest { r.q = &q @@ -7970,6 +9084,30 @@ func (r ApiVirtualizationInterfacesListRequest) VlanId(vlanId string) ApiVirtual return r } +// VLAN Translation Policy +func (r ApiVirtualizationInterfacesListRequest) VlanTranslationPolicy(vlanTranslationPolicy []string) ApiVirtualizationInterfacesListRequest { + r.vlanTranslationPolicy = &vlanTranslationPolicy + return r +} + +// VLAN Translation Policy +func (r ApiVirtualizationInterfacesListRequest) VlanTranslationPolicyN(vlanTranslationPolicyN []string) ApiVirtualizationInterfacesListRequest { + r.vlanTranslationPolicyN = &vlanTranslationPolicyN + return r +} + +// VLAN Translation Policy (ID) +func (r ApiVirtualizationInterfacesListRequest) VlanTranslationPolicyId(vlanTranslationPolicyId []int32) ApiVirtualizationInterfacesListRequest { + r.vlanTranslationPolicyId = &vlanTranslationPolicyId + return r +} + +// VLAN Translation Policy (ID) +func (r ApiVirtualizationInterfacesListRequest) VlanTranslationPolicyIdN(vlanTranslationPolicyIdN []int32) ApiVirtualizationInterfacesListRequest { + r.vlanTranslationPolicyIdN = &vlanTranslationPolicyIdN + return r +} + // VRF (RD) func (r ApiVirtualizationInterfacesListRequest) Vrf(vrf []*string) ApiVirtualizationInterfacesListRequest { r.vrf = &vrf @@ -8003,25 +9141,24 @@ 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 { return ApiVirtualizationInterfacesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVMInterfaceList +// @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") @@ -8040,10 +9177,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "form", "multi") } } if r.bridgeIdN != nil { @@ -8051,10 +9188,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "form", "multi") } } if r.cluster != nil { @@ -8062,10 +9199,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", t, "form", "multi") } } if r.clusterN != nil { @@ -8073,10 +9210,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", t, "form", "multi") } } if r.clusterId != nil { @@ -8084,10 +9221,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "form", "multi") } } if r.clusterIdN != nil { @@ -8095,10 +9232,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "form", "multi") } } if r.created != nil { @@ -8106,10 +9243,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -8117,10 +9254,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -8128,10 +9265,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -8139,10 +9276,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -8150,10 +9287,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -8161,10 +9298,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -8172,38 +9309,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -8211,10 +9348,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -8222,10 +9359,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -8233,10 +9370,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -8244,10 +9381,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -8255,10 +9392,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -8266,10 +9403,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -8277,10 +9414,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -8288,38 +9425,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -8327,10 +9464,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -8338,10 +9475,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -8349,10 +9486,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -8360,10 +9497,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.l2vpn != nil { @@ -8371,10 +9508,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "form", "multi") } } if r.l2vpnN != nil { @@ -8382,10 +9519,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "form", "multi") } } if r.l2vpnId != nil { @@ -8393,10 +9530,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "form", "multi") } } if r.l2vpnIdN != nil { @@ -8404,10 +9541,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -8415,10 +9552,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -8426,10 +9563,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -8437,10 +9574,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -8448,10 +9585,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -8459,10 +9596,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -8470,10 +9607,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -8481,24 +9618,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "form", "multi") } } if r.macAddressIc != nil { @@ -8506,10 +9643,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "form", "multi") } } if r.macAddressIe != nil { @@ -8517,10 +9654,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "form", "multi") } } if r.macAddressIew != nil { @@ -8528,10 +9665,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "form", "multi") } } if r.macAddressIsw != nil { @@ -8539,10 +9676,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "form", "multi") } } if r.macAddressN != nil { @@ -8550,10 +9687,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "form", "multi") } } if r.macAddressNic != nil { @@ -8561,10 +9698,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "form", "multi") } } if r.macAddressNie != nil { @@ -8572,10 +9709,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "form", "multi") } } if r.macAddressNiew != nil { @@ -8583,10 +9720,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "form", "multi") } } if r.macAddressNisw != nil { @@ -8594,44 +9731,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "form", "multi") } } if r.mode != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "") - } - if r.modeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", r.modeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", t, "form", "multi") } } if r.mtuEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__empty", r.mtuEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__empty", r.mtuEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", t, "form", "multi") } } if r.mtuGte != nil { @@ -8639,10 +9773,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", t, "form", "multi") } } if r.mtuLt != nil { @@ -8650,10 +9784,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", t, "form", "multi") } } if r.mtuLte != nil { @@ -8661,10 +9795,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", t, "form", "multi") } } if r.mtuN != nil { @@ -8672,10 +9806,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", t, "form", "multi") } } if r.name != nil { @@ -8683,24 +9817,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -8708,10 +9842,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -8719,10 +9853,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -8730,10 +9864,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -8741,10 +9875,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -8752,10 +9886,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -8763,10 +9897,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -8774,10 +9908,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -8785,27 +9919,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.parentId != nil { t := *r.parentId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } if r.parentIdN != nil { @@ -8813,24 +9947,68 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") + } + } + if r.primaryMacAddress != nil { + t := *r.primaryMacAddress + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address", t, "form", "multi") + } + } + if r.primaryMacAddressN != nil { + t := *r.primaryMacAddressN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address__n", t, "form", "multi") + } + } + if r.primaryMacAddressId != nil { + t := *r.primaryMacAddressId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id", t, "form", "multi") + } + } + if r.primaryMacAddressIdN != nil { + t := *r.primaryMacAddressIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_mac_address_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -8838,74 +10016,118 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.virtualMachine != nil { t := *r.virtualMachine 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi") + } + } + if r.virtualMachineN != nil { + t := *r.virtualMachineN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "form", "multi") + } + } + if r.virtualMachineId != nil { + t := *r.virtualMachineId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi") + } + } + if r.virtualMachineIdN != nil { + t := *r.virtualMachineIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "form", "multi") + } + } + if r.vlan != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", r.vlan, "form", "") + } + if r.vlanId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", r.vlanId, "form", "") + } + if r.vlanTranslationPolicy != nil { + t := *r.vlanTranslationPolicy + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy", t, "form", "multi") } } - if r.virtualMachineN != nil { - t := *r.virtualMachineN + if r.vlanTranslationPolicyN != nil { + t := *r.vlanTranslationPolicyN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy__n", t, "form", "multi") } } - if r.virtualMachineId != nil { - t := *r.virtualMachineId + if r.vlanTranslationPolicyId != nil { + t := *r.vlanTranslationPolicyId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id", t, "form", "multi") } } - if r.virtualMachineIdN != nil { - t := *r.virtualMachineIdN + if r.vlanTranslationPolicyIdN != nil { + t := *r.vlanTranslationPolicyIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_translation_policy_id__n", t, "form", "multi") } } - if r.vlan != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", r.vlan, "") - } - if r.vlanId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", r.vlanId, "") - } if r.vrf != nil { t := *r.vrf if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "form", "multi") } } if r.vrfN != nil { @@ -8913,10 +10135,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "form", "multi") } } if r.vrfId != nil { @@ -8924,10 +10146,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "form", "multi") } } if r.vrfIdN != nil { @@ -8935,10 +10157,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -9010,9 +10232,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirt } type ApiVirtualizationInterfacesPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 patchedWritableVMInterfaceRequest *PatchedWritableVMInterfaceRequest } @@ -9030,27 +10252,26 @@ 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 { return ApiVirtualizationInterfacesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VMInterface +// @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") @@ -9136,9 +10357,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesPartialUpdateExecute( } type ApiVirtualizationInterfacesRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationInterfacesRetrieveRequest) Execute() (*VMInterface, *http.Response, error) { @@ -9150,27 +10371,26 @@ 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 { return ApiVirtualizationInterfacesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VMInterface +// @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") @@ -9254,9 +10474,9 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesRetrieveExecute(r Api } type ApiVirtualizationInterfacesUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 writableVMInterfaceRequest *WritableVMInterfaceRequest } @@ -9274,27 +10494,26 @@ 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 { return ApiVirtualizationInterfacesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VMInterface +// @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") @@ -9383,8 +10602,8 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesUpdateExecute(r ApiVi } type ApiVirtualizationVirtualDisksBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI virtualDiskRequest *[]VirtualDiskRequest } @@ -9402,22 +10621,22 @@ VirtualizationVirtualDisksBulkDestroy Method for VirtualizationVirtualDisksBulkD Delete a list of virtual disk objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualDisksBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksBulkDestroyRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroy(ctx context.Context) ApiVirtualizationVirtualDisksBulkDestroyRequest { return ApiVirtualizationVirtualDisksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroyExecute(r ApiVirtualizationVirtualDisksBulkDestroyRequest) (*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.VirtualizationVirtualDisksBulkDestroy") @@ -9496,8 +10715,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkDestroyExecute( } type ApiVirtualizationVirtualDisksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI virtualDiskRequest *[]VirtualDiskRequest } @@ -9515,25 +10734,24 @@ VirtualizationVirtualDisksBulkPartialUpdate Method for VirtualizationVirtualDisk Patch a list of virtual disk objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkPartialUpdateRequest { return ApiVirtualizationVirtualDisksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualDisk +// @return []VirtualDisk func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdateExecute(r ApiVirtualizationVirtualDisksBulkPartialUpdateRequest) ([]VirtualDisk, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualDisk + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualDisk ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkPartialUpdate") @@ -9621,8 +10839,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkPartialUpdateEx } type ApiVirtualizationVirtualDisksBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI virtualDiskRequest *[]VirtualDiskRequest } @@ -9640,25 +10858,24 @@ VirtualizationVirtualDisksBulkUpdate Method for VirtualizationVirtualDisksBulkUp Put a list of virtual disk objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualDisksBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksBulkUpdateRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdate(ctx context.Context) ApiVirtualizationVirtualDisksBulkUpdateRequest { return ApiVirtualizationVirtualDisksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualDisk +// @return []VirtualDisk func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdateExecute(r ApiVirtualizationVirtualDisksBulkUpdateRequest) ([]VirtualDisk, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualDisk + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualDisk ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksBulkUpdate") @@ -9746,8 +10963,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksBulkUpdateExecute(r } type ApiVirtualizationVirtualDisksCreateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI virtualDiskRequest *VirtualDiskRequest } @@ -9765,25 +10982,24 @@ VirtualizationVirtualDisksCreate Method for VirtualizationVirtualDisksCreate Post a list of virtual disk objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualDisksCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksCreateRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreate(ctx context.Context) ApiVirtualizationVirtualDisksCreateRequest { return ApiVirtualizationVirtualDisksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VirtualDisk +// @return VirtualDisk func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreateExecute(r ApiVirtualizationVirtualDisksCreateRequest) (*VirtualDisk, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDisk + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDisk ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksCreate") @@ -9871,9 +11087,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksCreateExecute(r Api } type ApiVirtualizationVirtualDisksDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationVirtualDisksDestroyRequest) Execute() (*http.Response, error) { @@ -9885,24 +11101,24 @@ VirtualizationVirtualDisksDestroy Method for VirtualizationVirtualDisksDestroy Delete a virtual disk object. - @param ctx 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 disk. - @return ApiVirtualizationVirtualDisksDestroyRequest + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksDestroyRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualDisksDestroyRequest { return ApiVirtualizationVirtualDisksDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroyExecute(r ApiVirtualizationVirtualDisksDestroyRequest) (*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.VirtualizationVirtualDisksDestroy") @@ -9977,70 +11193,70 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksDestroyExecute(r Ap } type ApiVirtualizationVirtualDisksListRequest struct { - 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 - 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 + ctx context.Context + ApiService VirtualizationAPI + 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 - size *[]int32 - sizeEmpty *bool - sizeGt *[]int32 - sizeGte *[]int32 - sizeLt *[]int32 - sizeLte *[]int32 - sizeN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string - virtualMachine *[]string - virtualMachineN *[]string - virtualMachineId *[]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 + size *[]int32 + sizeEmpty *bool + sizeGt *[]int32 + sizeGte *[]int32 + sizeLt *[]int32 + sizeLte *[]int32 + sizeN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string + virtualMachine *[]string + virtualMachineN *[]string + virtualMachineId *[]int32 virtualMachineIdN *[]int32 } @@ -10376,25 +11592,24 @@ VirtualizationVirtualDisksList Method for VirtualizationVirtualDisksList Get a list of virtual disk objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualDisksListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualDisksListRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksList(ctx context.Context) ApiVirtualizationVirtualDisksListRequest { return ApiVirtualizationVirtualDisksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVirtualDiskList +// @return PaginatedVirtualDiskList func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVirtualizationVirtualDisksListRequest) (*PaginatedVirtualDiskList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVirtualDiskList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVirtualDiskList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksList") @@ -10413,10 +11628,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -10424,10 +11639,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -10435,10 +11650,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -10446,10 +11661,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -10457,10 +11672,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -10468,10 +11683,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -10479,38 +11694,38 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -10518,10 +11733,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -10529,10 +11744,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -10540,10 +11755,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -10551,10 +11766,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -10562,10 +11777,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -10573,10 +11788,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -10584,10 +11799,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -10595,10 +11810,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -10606,24 +11821,24 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -10631,10 +11846,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -10642,10 +11857,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -10653,10 +11868,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -10664,10 +11879,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -10675,10 +11890,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -10686,10 +11901,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -10697,10 +11912,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -10708,10 +11923,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -10719,10 +11934,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -10730,10 +11945,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -10741,41 +11956,41 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -10783,10 +11998,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -10794,10 +12009,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -10805,10 +12020,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -10816,10 +12031,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -10827,10 +12042,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -10838,10 +12053,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -10849,10 +12064,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -10860,44 +12075,44 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.size != nil { t := *r.size if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size", t, "form", "multi") } } if r.sizeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__empty", r.sizeEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__empty", r.sizeEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", t, "form", "multi") } } if r.sizeGte != nil { @@ -10905,10 +12120,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", t, "form", "multi") } } if r.sizeLt != nil { @@ -10916,10 +12131,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", t, "form", "multi") } } if r.sizeLte != nil { @@ -10927,10 +12142,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", t, "form", "multi") } } if r.sizeN != nil { @@ -10938,10 +12153,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", t, "form", "multi") } } if r.tag != nil { @@ -10949,10 +12164,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -10960,24 +12175,24 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.virtualMachine != nil { t := *r.virtualMachine 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi") } } if r.virtualMachineN != nil { @@ -10985,10 +12200,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "form", "multi") } } if r.virtualMachineId != nil { @@ -10996,10 +12211,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi") } } if r.virtualMachineIdN != nil { @@ -11007,10 +12222,10 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -11082,9 +12297,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksListExecute(r ApiVi } type ApiVirtualizationVirtualDisksPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 patchedVirtualDiskRequest *PatchedVirtualDiskRequest } @@ -11102,27 +12317,26 @@ VirtualizationVirtualDisksPartialUpdate Method for VirtualizationVirtualDisksPar Patch a virtual disk object. - @param ctx 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 disk. - @return ApiVirtualizationVirtualDisksPartialUpdateRequest + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksPartialUpdateRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksPartialUpdateRequest { return ApiVirtualizationVirtualDisksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDisk +// @return VirtualDisk func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdateExecute(r ApiVirtualizationVirtualDisksPartialUpdateRequest) (*VirtualDisk, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDisk + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDisk ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksPartialUpdate") @@ -11208,9 +12422,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksPartialUpdateExecut } type ApiVirtualizationVirtualDisksRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationVirtualDisksRetrieveRequest) Execute() (*VirtualDisk, *http.Response, error) { @@ -11222,27 +12436,26 @@ VirtualizationVirtualDisksRetrieve Method for VirtualizationVirtualDisksRetrieve Get a virtual disk object. - @param ctx 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 disk. - @return ApiVirtualizationVirtualDisksRetrieveRequest + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksRetrieveRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualDisksRetrieveRequest { return ApiVirtualizationVirtualDisksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDisk +// @return VirtualDisk func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieveExecute(r ApiVirtualizationVirtualDisksRetrieveRequest) (*VirtualDisk, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDisk + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDisk ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksRetrieve") @@ -11326,9 +12539,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksRetrieveExecute(r A } type ApiVirtualizationVirtualDisksUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 virtualDiskRequest *VirtualDiskRequest } @@ -11346,27 +12559,26 @@ VirtualizationVirtualDisksUpdate Method for VirtualizationVirtualDisksUpdate Put a virtual disk object. - @param ctx 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 disk. - @return ApiVirtualizationVirtualDisksUpdateRequest + @param ctx 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 disk. + @return ApiVirtualizationVirtualDisksUpdateRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualDisksUpdateRequest { return ApiVirtualizationVirtualDisksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDisk +// @return VirtualDisk func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdateExecute(r ApiVirtualizationVirtualDisksUpdateRequest) (*VirtualDisk, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDisk + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDisk ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualDisksUpdate") @@ -11455,8 +12667,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualDisksUpdateExecute(r Api } type ApiVirtualizationVirtualMachinesBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest } @@ -11474,22 +12686,22 @@ 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 { return ApiVirtualizationVirtualMachinesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -11568,8 +12780,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecu } type ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest } @@ -11587,25 +12799,24 @@ 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 { return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualMachineWithConfigContext +// @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") @@ -11693,8 +12904,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdat } type ApiVirtualizationVirtualMachinesBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest } @@ -11712,25 +12923,24 @@ 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 { return ApiVirtualizationVirtualMachinesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualMachineWithConfigContext +// @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") @@ -11818,8 +13028,8 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecut } type ApiVirtualizationVirtualMachinesCreateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService + ctx context.Context + ApiService VirtualizationAPI writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest } @@ -11837,25 +13047,24 @@ 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 { return ApiVirtualizationVirtualMachinesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext +// @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") @@ -11943,9 +13152,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreateExecute(r } type ApiVirtualizationVirtualMachinesDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationVirtualMachinesDestroyRequest) Execute() (*http.Response, error) { @@ -11957,24 +13166,24 @@ 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 { 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) { 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") @@ -12049,165 +13258,185 @@ 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 - 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 - 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 - 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 - interfaceCount *[]int32 - interfaceCountEmpty *bool - interfaceCountGt *[]int32 - interfaceCountGte *[]int32 - interfaceCountLt *[]int32 - interfaceCountLte *[]int32 - interfaceCountN *[]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 - 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 - primaryIp4Id *[]int32 - primaryIp4IdN *[]int32 - primaryIp6Id *[]int32 - primaryIp6IdN *[]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 - vcpusEmpty *bool - vcpusGt *[]float64 - vcpusGte *[]float64 - vcpusLt *[]float64 - vcpusLte *[]float64 - vcpusN *[]float64 - virtualDiskCount *[]int32 + ctx context.Context + ApiService VirtualizationAPI + 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 *[]string + contactGroupN *[]string + 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 + 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 + interfaceCount *[]int32 + interfaceCountEmpty *bool + interfaceCountGt *[]int32 + interfaceCountGte *[]int32 + interfaceCountLt *[]int32 + interfaceCountLte *[]int32 + interfaceCountN *[]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 + 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 + primaryIp4Id *[]int32 + primaryIp4IdN *[]int32 + primaryIp6Id *[]int32 + primaryIp6IdN *[]int32 + q *string + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + 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 *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]*int32 + siteIdN *[]*int32 + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string + vcpus *[]float64 + vcpusEmpty *bool + vcpusGt *[]float64 + vcpusGte *[]float64 + vcpusLt *[]float64 + vcpusLte *[]float64 + vcpusN *[]float64 + virtualDiskCount *[]int32 virtualDiskCountEmpty *bool - virtualDiskCountGt *[]int32 - virtualDiskCountGte *[]int32 - virtualDiskCountLt *[]int32 - virtualDiskCountLte *[]int32 - virtualDiskCountN *[]int32 + virtualDiskCountGt *[]int32 + virtualDiskCountGte *[]int32 + virtualDiskCountLt *[]int32 + virtualDiskCountLte *[]int32 + virtualDiskCountN *[]int32 } // Cluster @@ -12306,14 +13535,12 @@ func (r ApiVirtualizationVirtualMachinesListRequest) ContactN(contactN []int32) return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroupN = &contactGroupN return r } @@ -12818,26 +14045,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Q(q string) ApiVirtualizati return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []string) ApiVirtualizationVirtualMachinesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []string) ApiVirtualizationVirtualMachinesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionIdN = ®ionIdN return r } @@ -12866,6 +14089,61 @@ func (r ApiVirtualizationVirtualMachinesListRequest) RoleIdN(roleIdN []*int32) A return r } +func (r ApiVirtualizationVirtualMachinesListRequest) Serial(serial []string) ApiVirtualizationVirtualMachinesListRequest { + r.serial = &serial + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialEmpty(serialEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.serialEmpty = &serialEmpty + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIc(serialIc []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIc = &serialIc + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIe(serialIe []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIe = &serialIe + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIew(serialIew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIew = &serialIew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIsw(serialIsw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIsw = &serialIsw + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialN(serialN []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialN = &serialN + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNic(serialNic []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNic = &serialNic + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNie(serialNie []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNie = &serialNie + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNiew(serialNiew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNiew = &serialNiew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNisw(serialNisw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNisw = &serialNisw + return r +} + // Site (slug) func (r ApiVirtualizationVirtualMachinesListRequest) Site(site []string) ApiVirtualizationVirtualMachinesListRequest { r.site = &site @@ -12878,26 +14156,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) SiteN(siteN []string) ApiVi return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -12919,11 +14193,56 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Status(status []string) Api return r } +func (r ApiVirtualizationVirtualMachinesListRequest) StatusEmpty(statusEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIc(statusIc []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIe(statusIe []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIew(statusIew []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIsw(statusIsw []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) StatusN(statusN []string) ApiVirtualizationVirtualMachinesListRequest { r.statusN = &statusN return r } +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNic(statusNic []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNie(statusNie []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNiew(statusNiew []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNisw(statusNisw []string) ApiVirtualizationVirtualMachinesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) Tag(tag []string) ApiVirtualizationVirtualMachinesListRequest { r.tag = &tag return r @@ -12946,26 +14265,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) TenantN(tenantN []string) A return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -13066,25 +14381,24 @@ 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 { return ApiVirtualizationVirtualMachinesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVirtualMachineWithConfigContextList +// @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") @@ -13103,10 +14417,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", t, "form", "multi") } } if r.clusterN != nil { @@ -13114,10 +14428,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", t, "form", "multi") } } if r.clusterGroup != nil { @@ -13125,10 +14439,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "form", "multi") } } if r.clusterGroupN != nil { @@ -13136,10 +14450,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "form", "multi") } } if r.clusterGroupId != nil { @@ -13147,10 +14461,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "form", "multi") } } if r.clusterGroupIdN != nil { @@ -13158,10 +14472,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "form", "multi") } } if r.clusterId != nil { @@ -13169,10 +14483,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "form", "multi") } } if r.clusterIdN != nil { @@ -13180,10 +14494,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "form", "multi") } } if r.clusterType != nil { @@ -13191,10 +14505,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", t, "form", "multi") } } if r.clusterTypeN != nil { @@ -13202,10 +14516,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", t, "form", "multi") } } if r.clusterTypeId != nil { @@ -13213,10 +14527,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", t, "form", "multi") } } if r.clusterTypeIdN != nil { @@ -13224,10 +14538,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", t, "form", "multi") } } if r.configTemplateId != nil { @@ -13235,10 +14549,10 @@ 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, "config_template_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "form", "multi") } } if r.configTemplateIdN != nil { @@ -13246,10 +14560,10 @@ 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, "config_template_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "form", "multi") } } if r.contact != nil { @@ -13257,10 +14571,10 @@ 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "form", "multi") } } if r.contactN != nil { @@ -13268,10 +14582,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "form", "multi") } } if r.contactGroup != nil { @@ -13279,10 +14593,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "form", "multi") } } if r.contactGroupN != nil { @@ -13290,10 +14604,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "form", "multi") } } if r.contactRole != nil { @@ -13301,10 +14615,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "form", "multi") } } if r.contactRoleN != nil { @@ -13312,10 +14626,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "form", "multi") } } if r.created != nil { @@ -13323,10 +14637,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -13334,10 +14648,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -13345,10 +14659,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -13356,10 +14670,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -13367,10 +14681,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -13378,10 +14692,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -13389,38 +14703,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -13428,10 +14742,10 @@ 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -13439,10 +14753,10 @@ 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -13450,10 +14764,10 @@ 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -13461,10 +14775,10 @@ 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -13472,10 +14786,10 @@ 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -13483,10 +14797,10 @@ 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, "description__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -13494,10 +14808,10 @@ 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -13505,10 +14819,10 @@ 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, "description__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.device != nil { @@ -13516,10 +14830,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } if r.deviceN != nil { @@ -13527,10 +14841,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi") } } if r.deviceId != nil { @@ -13538,10 +14852,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } if r.deviceIdN != nil { @@ -13549,10 +14863,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") } } if r.disk != nil { @@ -13560,24 +14874,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk", t, "form", "multi") } } if r.diskEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__empty", r.diskEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__empty", r.diskEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gt", t, "form", "multi") } } if r.diskGte != nil { @@ -13585,10 +14899,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gte", t, "form", "multi") } } if r.diskLt != nil { @@ -13596,10 +14910,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lt", t, "form", "multi") } } if r.diskLte != nil { @@ -13607,10 +14921,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lte", t, "form", "multi") } } if r.diskN != nil { @@ -13618,38 +14932,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__n", t, "form", "multi") } } if r.hasPrimaryIp != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -13657,10 +14971,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -13668,10 +14982,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -13679,10 +14993,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -13690,10 +15004,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.interfaceCount != nil { @@ -13701,24 +15015,24 @@ 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, "interface_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count", t, "form", "multi") } } if r.interfaceCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__empty", r.interfaceCountEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__empty", r.interfaceCountEmpty, "form", "") } if r.interfaceCountGt != nil { t := *r.interfaceCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gt", t, "form", "multi") } } if r.interfaceCountGte != nil { @@ -13726,10 +15040,10 @@ 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, "interface_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__gte", t, "form", "multi") } } if r.interfaceCountLt != nil { @@ -13737,10 +15051,10 @@ 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, "interface_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lt", t, "form", "multi") } } if r.interfaceCountLte != nil { @@ -13748,10 +15062,10 @@ 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, "interface_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__lte", t, "form", "multi") } } if r.interfaceCountN != nil { @@ -13759,10 +15073,10 @@ 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, "interface_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_count__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -13770,10 +15084,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -13781,10 +15095,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -13792,10 +15106,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -13803,10 +15117,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -13814,10 +15128,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -13825,10 +15139,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -13836,27 +15150,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.localContextData != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "local_context_data", r.localContextData, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "local_context_data", r.localContextData, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "form", "multi") } } if r.macAddressIc != nil { @@ -13864,10 +15178,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "form", "multi") } } if r.macAddressIe != nil { @@ -13875,10 +15189,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "form", "multi") } } if r.macAddressIew != nil { @@ -13886,10 +15200,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "form", "multi") } } if r.macAddressIsw != nil { @@ -13897,10 +15211,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "form", "multi") } } if r.macAddressN != nil { @@ -13908,10 +15222,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "form", "multi") } } if r.macAddressNic != nil { @@ -13919,10 +15233,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "form", "multi") } } if r.macAddressNie != nil { @@ -13930,10 +15244,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "form", "multi") } } if r.macAddressNiew != nil { @@ -13941,10 +15255,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "form", "multi") } } if r.macAddressNisw != nil { @@ -13952,10 +15266,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "form", "multi") } } if r.memory != nil { @@ -13963,24 +15277,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory", t, "form", "multi") } } if r.memoryEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__empty", r.memoryEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__empty", r.memoryEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gt", t, "form", "multi") } } if r.memoryGte != nil { @@ -13988,10 +15302,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gte", t, "form", "multi") } } if r.memoryLt != nil { @@ -13999,10 +15313,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lt", t, "form", "multi") } } if r.memoryLte != nil { @@ -14010,10 +15324,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lte", t, "form", "multi") } } if r.memoryN != nil { @@ -14021,38 +15335,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__n", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -14060,10 +15374,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -14071,10 +15385,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -14082,10 +15396,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -14093,10 +15407,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -14104,10 +15418,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -14115,10 +15429,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -14126,10 +15440,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -14137,27 +15451,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "form", "multi") } } if r.platformN != nil { @@ -14165,10 +15479,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "form", "multi") } } if r.platformId != nil { @@ -14176,10 +15490,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "form", "multi") } } if r.platformIdN != nil { @@ -14187,10 +15501,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "form", "multi") } } if r.primaryIp4Id != nil { @@ -14198,10 +15512,10 @@ 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, "primary_ip4_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "form", "multi") } } if r.primaryIp4IdN != nil { @@ -14209,10 +15523,10 @@ 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, "primary_ip4_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "form", "multi") } } if r.primaryIp6Id != nil { @@ -14220,10 +15534,10 @@ 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, "primary_ip6_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "form", "multi") } } if r.primaryIp6IdN != nil { @@ -14231,24 +15545,24 @@ 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, "primary_ip6_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionN != nil { @@ -14256,10 +15570,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } if r.regionId != nil { @@ -14267,10 +15581,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.regionIdN != nil { @@ -14278,10 +15592,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } if r.role != nil { @@ -14289,10 +15603,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") } } if r.roleN != nil { @@ -14300,10 +15614,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") } } if r.roleId != nil { @@ -14311,10 +15625,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "form", "multi") } } if r.roleIdN != nil { @@ -14322,10 +15636,123 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "form", "multi") + } + } + if r.serial != nil { + t := *r.serial + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "form", "multi") + } + } + if r.serialEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "form", "") + } + if r.serialIc != nil { + t := *r.serialIc + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "form", "multi") + } + } + if r.serialIe != nil { + t := *r.serialIe + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "form", "multi") + } + } + if r.serialIew != nil { + t := *r.serialIew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "form", "multi") + } + } + if r.serialIsw != nil { + t := *r.serialIsw + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "form", "multi") + } + } + if r.serialN != nil { + t := *r.serialN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "form", "multi") + } + } + if r.serialNic != nil { + t := *r.serialNic + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "form", "multi") + } + } + if r.serialNie != nil { + t := *r.serialNie + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "form", "multi") + } + } + if r.serialNiew != nil { + t := *r.serialNiew + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "form", "multi") + } + } + if r.serialNisw != nil { + t := *r.serialNisw + 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).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "form", "multi") } } if r.site != nil { @@ -14333,10 +15760,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteN != nil { @@ -14344,10 +15771,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } if r.siteGroup != nil { @@ -14355,10 +15782,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } if r.siteGroupN != nil { @@ -14366,10 +15793,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } if r.siteGroupId != nil { @@ -14377,10 +15804,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } if r.siteGroupIdN != nil { @@ -14388,10 +15815,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } if r.siteId != nil { @@ -14399,10 +15826,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.siteIdN != nil { @@ -14410,10 +15837,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } if r.status != nil { @@ -14421,10 +15848,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -14432,10 +15906,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -14443,10 +15961,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -14454,10 +15972,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -14465,10 +15983,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -14476,10 +15994,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -14487,10 +16005,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -14498,10 +16016,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -14509,10 +16027,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -14520,10 +16038,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -14531,10 +16049,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -14542,38 +16060,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.vcpus != nil { t := *r.vcpus if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus", t, "form", "multi") } } if r.vcpusEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__empty", r.vcpusEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__empty", r.vcpusEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gt", t, "form", "multi") } } if r.vcpusGte != nil { @@ -14581,10 +16099,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gte", t, "form", "multi") } } if r.vcpusLt != nil { @@ -14592,10 +16110,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lt", t, "form", "multi") } } if r.vcpusLte != nil { @@ -14603,10 +16121,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lte", t, "form", "multi") } } if r.vcpusN != nil { @@ -14614,10 +16132,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__n", t, "form", "multi") } } if r.virtualDiskCount != nil { @@ -14625,24 +16143,24 @@ 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, "virtual_disk_count", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count", t, "form", "multi") } } if r.virtualDiskCountEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__empty", r.virtualDiskCountEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__empty", r.virtualDiskCountEmpty, "form", "") } if r.virtualDiskCountGt != nil { t := *r.virtualDiskCountGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gt", t, "form", "multi") } } if r.virtualDiskCountGte != nil { @@ -14650,10 +16168,10 @@ 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, "virtual_disk_count__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__gte", t, "form", "multi") } } if r.virtualDiskCountLt != nil { @@ -14661,10 +16179,10 @@ 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, "virtual_disk_count__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lt", t, "form", "multi") } } if r.virtualDiskCountLte != nil { @@ -14672,10 +16190,10 @@ 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, "virtual_disk_count__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__lte", t, "form", "multi") } } if r.virtualDiskCountN != nil { @@ -14683,10 +16201,10 @@ 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, "virtual_disk_count__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_disk_count__n", t, "form", "multi") } } // to determine the Content-Type header @@ -14758,9 +16276,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap } type ApiVirtualizationVirtualMachinesPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 patchedWritableVirtualMachineWithConfigContextRequest *PatchedWritableVirtualMachineWithConfigContextRequest } @@ -14778,27 +16296,26 @@ 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 { return ApiVirtualizationVirtualMachinesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext +// @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") @@ -14884,11 +16401,11 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesPartialUpdateExe } type ApiVirtualizationVirtualMachinesRenderConfigCreateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest - format *DcimDevicesRenderConfigCreateFormatParameter + format *DcimDevicesRenderConfigCreateFormatParameter } func (r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest WritableVirtualMachineWithConfigContextRequest) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest { @@ -14910,27 +16427,26 @@ VirtualizationVirtualMachinesRenderConfigCreate Method for VirtualizationVirtual 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 virtual machine. - @return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest + @param ctx 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 ApiVirtualizationVirtualMachinesRenderConfigCreateRequest */ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCreate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRenderConfigCreateRequest { return ApiVirtualizationVirtualMachinesRenderConfigCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext +// @return VirtualMachineWithConfigContext func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCreateExecute(r ApiVirtualizationVirtualMachinesRenderConfigCreateRequest) (*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.VirtualizationVirtualMachinesRenderConfigCreate") @@ -14949,7 +16465,7 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCrea } if r.format != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -15022,9 +16538,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRenderConfigCrea } type ApiVirtualizationVirtualMachinesRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 } func (r ApiVirtualizationVirtualMachinesRetrieveRequest) Execute() (*VirtualMachineWithConfigContext, *http.Response, error) { @@ -15036,27 +16552,26 @@ 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 { return ApiVirtualizationVirtualMachinesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext +// @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") @@ -15140,9 +16655,9 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRetrieveExecute( } type ApiVirtualizationVirtualMachinesUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationAPIService - id int32 + ctx context.Context + ApiService VirtualizationAPI + id int32 writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest } @@ -15160,27 +16675,26 @@ 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 { return ApiVirtualizationVirtualMachinesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext +// @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") diff --git a/api_vm_test.go b/api_vm_test.go new file mode 100644 index 0000000000..86466baa71 --- /dev/null +++ b/api_vm_test.go @@ -0,0 +1,18 @@ +package netbox + +import ( + "context" + "testing" +) + +func TestVirtualMachineList(t *testing.T) { + client := HGetClient(t) + + _, r, err := client.VirtualizationAPI.VirtualizationVirtualMachinesList(context.TODO()).Execute() + if err != nil { + if r != nil || r.StatusCode != 200 { + t.Fatal(r) + } + t.Fatal(err) + } +} diff --git a/api_vpn.go b/api_vpn.go index 6893f11ad3..b10461912f 100644 --- a/api_vpn.go +++ b/api_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,1271 +16,2629 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) -// VpnAPIService VpnAPI service -type VpnAPIService service - -type ApiVpnIkePoliciesBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - iKEPolicyRequest *[]IKEPolicyRequest -} - -func (r ApiVpnIkePoliciesBulkDestroyRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkDestroyRequest { - r.iKEPolicyRequest = &iKEPolicyRequest - return r -} -func (r ApiVpnIkePoliciesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.VpnIkePoliciesBulkDestroyExecute(r) -} +type VpnAPI interface { -/* -VpnIkePoliciesBulkDestroy Method for VpnIkePoliciesBulkDestroy + /* + VpnIkePoliciesBulkDestroy Method for VpnIkePoliciesBulkDestroy -Delete a list of IKE policy objects. + Delete a list of IKE policy objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiVpnIkePoliciesBulkDestroyRequest -*/ -func (a *VpnAPIService) VpnIkePoliciesBulkDestroy(ctx context.Context) ApiVpnIkePoliciesBulkDestroyRequest { - return ApiVpnIkePoliciesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} + */ + VpnIkePoliciesBulkDestroy(ctx context.Context) ApiVpnIkePoliciesBulkDestroyRequest -// Execute executes the request -func (a *VpnAPIService) VpnIkePoliciesBulkDestroyExecute(r ApiVpnIkePoliciesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // VpnIkePoliciesBulkDestroyExecute executes the request + VpnIkePoliciesBulkDestroyExecute(r ApiVpnIkePoliciesBulkDestroyRequest) (*http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + VpnIkePoliciesBulkPartialUpdate Method for VpnIkePoliciesBulkPartialUpdate - localVarPath := localBasePath + "/api/vpn/ike-policies/" + Patch a list of IKE policy objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.iKEPolicyRequest == nil { - return nil, reportError("iKEPolicyRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesBulkPartialUpdateRequest + */ + VpnIkePoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIkePoliciesBulkPartialUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // VpnIkePoliciesBulkPartialUpdateExecute executes the request + // @return []IKEPolicy + VpnIkePoliciesBulkPartialUpdateExecute(r ApiVpnIkePoliciesBulkPartialUpdateRequest) ([]IKEPolicy, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + VpnIkePoliciesBulkUpdate Method for VpnIkePoliciesBulkUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Put a list of IKE policy objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.iKEPolicyRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesBulkUpdateRequest + */ + VpnIkePoliciesBulkUpdate(ctx context.Context) ApiVpnIkePoliciesBulkUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // VpnIkePoliciesBulkUpdateExecute executes the request + // @return []IKEPolicy + VpnIkePoliciesBulkUpdateExecute(r ApiVpnIkePoliciesBulkUpdateRequest) ([]IKEPolicy, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + VpnIkePoliciesCreate Method for VpnIkePoliciesCreate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Post a list of IKE policy objects. - return localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesCreateRequest + */ + VpnIkePoliciesCreate(ctx context.Context) ApiVpnIkePoliciesCreateRequest -type ApiVpnIkePoliciesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - iKEPolicyRequest *[]IKEPolicyRequest -} + // VpnIkePoliciesCreateExecute executes the request + // @return IKEPolicy + VpnIkePoliciesCreateExecute(r ApiVpnIkePoliciesCreateRequest) (*IKEPolicy, *http.Response, error) -func (r ApiVpnIkePoliciesBulkPartialUpdateRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkPartialUpdateRequest { - r.iKEPolicyRequest = &iKEPolicyRequest - return r -} + /* + VpnIkePoliciesDestroy Method for VpnIkePoliciesDestroy -func (r ApiVpnIkePoliciesBulkPartialUpdateRequest) Execute() ([]IKEPolicy, *http.Response, error) { - return r.ApiService.VpnIkePoliciesBulkPartialUpdateExecute(r) -} + Delete a IKE policy object. -/* -VpnIkePoliciesBulkPartialUpdate Method for VpnIkePoliciesBulkPartialUpdate + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesDestroyRequest + */ + VpnIkePoliciesDestroy(ctx context.Context, id int32) ApiVpnIkePoliciesDestroyRequest -Patch a list of IKE policy objects. + // VpnIkePoliciesDestroyExecute executes the request + VpnIkePoliciesDestroyExecute(r ApiVpnIkePoliciesDestroyRequest) (*http.Response, error) + + /* + VpnIkePoliciesList Method for VpnIkePoliciesList + + Get a list of IKE policy objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkePoliciesBulkPartialUpdateRequest -*/ -func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIkePoliciesBulkPartialUpdateRequest { - return ApiVpnIkePoliciesBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiVpnIkePoliciesListRequest + */ + VpnIkePoliciesList(ctx context.Context) ApiVpnIkePoliciesListRequest -// Execute executes the request -// -// @return []IKEPolicy -func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdateExecute(r ApiVpnIkePoliciesBulkPartialUpdateRequest) ([]IKEPolicy, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IKEPolicy - ) + // VpnIkePoliciesListExecute executes the request + // @return PaginatedIKEPolicyList + VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest) (*PaginatedIKEPolicyList, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + VpnIkePoliciesPartialUpdate Method for VpnIkePoliciesPartialUpdate - localVarPath := localBasePath + "/api/vpn/ike-policies/" + Patch a IKE policy object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.iKEPolicyRequest == nil { - return localVarReturnValue, nil, reportError("iKEPolicyRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesPartialUpdateRequest + */ + VpnIkePoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesPartialUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // VpnIkePoliciesPartialUpdateExecute executes the request + // @return IKEPolicy + VpnIkePoliciesPartialUpdateExecute(r ApiVpnIkePoliciesPartialUpdateRequest) (*IKEPolicy, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + VpnIkePoliciesRetrieve Method for VpnIkePoliciesRetrieve - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Get a IKE policy object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.iKEPolicyRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesRetrieveRequest + */ + VpnIkePoliciesRetrieve(ctx context.Context, id int32) ApiVpnIkePoliciesRetrieveRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // VpnIkePoliciesRetrieveExecute executes the request + // @return IKEPolicy + VpnIkePoliciesRetrieveExecute(r ApiVpnIkePoliciesRetrieveRequest) (*IKEPolicy, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + VpnIkePoliciesUpdate Method for VpnIkePoliciesUpdate - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Put a IKE policy object. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesUpdateRequest + */ + VpnIkePoliciesUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesUpdateRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // VpnIkePoliciesUpdateExecute executes the request + // @return IKEPolicy + VpnIkePoliciesUpdateExecute(r ApiVpnIkePoliciesUpdateRequest) (*IKEPolicy, *http.Response, error) -type ApiVpnIkePoliciesBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - iKEPolicyRequest *[]IKEPolicyRequest -} + /* + VpnIkeProposalsBulkDestroy Method for VpnIkeProposalsBulkDestroy -func (r ApiVpnIkePoliciesBulkUpdateRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkUpdateRequest { - r.iKEPolicyRequest = &iKEPolicyRequest - return r -} + Delete a list of IKE proposal objects. -func (r ApiVpnIkePoliciesBulkUpdateRequest) Execute() ([]IKEPolicy, *http.Response, error) { - return r.ApiService.VpnIkePoliciesBulkUpdateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsBulkDestroyRequest + */ + VpnIkeProposalsBulkDestroy(ctx context.Context) ApiVpnIkeProposalsBulkDestroyRequest -/* -VpnIkePoliciesBulkUpdate Method for VpnIkePoliciesBulkUpdate + // VpnIkeProposalsBulkDestroyExecute executes the request + VpnIkeProposalsBulkDestroyExecute(r ApiVpnIkeProposalsBulkDestroyRequest) (*http.Response, error) -Put a list of IKE policy objects. + /* + VpnIkeProposalsBulkPartialUpdate Method for VpnIkeProposalsBulkPartialUpdate + + Patch a list of IKE proposal objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkePoliciesBulkUpdateRequest -*/ -func (a *VpnAPIService) VpnIkePoliciesBulkUpdate(ctx context.Context) ApiVpnIkePoliciesBulkUpdateRequest { - return ApiVpnIkePoliciesBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} + @return ApiVpnIkeProposalsBulkPartialUpdateRequest + */ + VpnIkeProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIkeProposalsBulkPartialUpdateRequest -// Execute executes the request -// -// @return []IKEPolicy -func (a *VpnAPIService) VpnIkePoliciesBulkUpdateExecute(r ApiVpnIkePoliciesBulkUpdateRequest) ([]IKEPolicy, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IKEPolicy - ) + // VpnIkeProposalsBulkPartialUpdateExecute executes the request + // @return []IKEProposal + VpnIkeProposalsBulkPartialUpdateExecute(r ApiVpnIkeProposalsBulkPartialUpdateRequest) ([]IKEProposal, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + VpnIkeProposalsBulkUpdate Method for VpnIkeProposalsBulkUpdate - localVarPath := localBasePath + "/api/vpn/ike-policies/" + Put a list of IKE proposal objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.iKEPolicyRequest == nil { - return localVarReturnValue, nil, reportError("iKEPolicyRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsBulkUpdateRequest + */ + VpnIkeProposalsBulkUpdate(ctx context.Context) ApiVpnIkeProposalsBulkUpdateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // VpnIkeProposalsBulkUpdateExecute executes the request + // @return []IKEProposal + VpnIkeProposalsBulkUpdateExecute(r ApiVpnIkeProposalsBulkUpdateRequest) ([]IKEProposal, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + VpnIkeProposalsCreate Method for VpnIkeProposalsCreate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Post a list of IKE proposal objects. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.iKEPolicyRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsCreateRequest + */ + VpnIkeProposalsCreate(ctx context.Context) ApiVpnIkeProposalsCreateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // VpnIkeProposalsCreateExecute executes the request + // @return IKEProposal + VpnIkeProposalsCreateExecute(r ApiVpnIkeProposalsCreateRequest) (*IKEProposal, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + VpnIkeProposalsDestroy Method for VpnIkeProposalsDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a IKE proposal object. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsDestroyRequest + */ + VpnIkeProposalsDestroy(ctx context.Context, id int32) ApiVpnIkeProposalsDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // VpnIkeProposalsDestroyExecute executes the request + VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestroyRequest) (*http.Response, error) -type ApiVpnIkePoliciesCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService - writableIKEPolicyRequest *WritableIKEPolicyRequest -} + /* + VpnIkeProposalsList Method for VpnIkeProposalsList -func (r ApiVpnIkePoliciesCreateRequest) WritableIKEPolicyRequest(writableIKEPolicyRequest WritableIKEPolicyRequest) ApiVpnIkePoliciesCreateRequest { - r.writableIKEPolicyRequest = &writableIKEPolicyRequest - return r -} + Get a list of IKE proposal objects. -func (r ApiVpnIkePoliciesCreateRequest) Execute() (*IKEPolicy, *http.Response, error) { - return r.ApiService.VpnIkePoliciesCreateExecute(r) -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsListRequest + */ + VpnIkeProposalsList(ctx context.Context) ApiVpnIkeProposalsListRequest -/* -VpnIkePoliciesCreate Method for VpnIkePoliciesCreate + // VpnIkeProposalsListExecute executes the request + // @return PaginatedIKEProposalList + VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListRequest) (*PaginatedIKEProposalList, *http.Response, error) -Post a list of IKE policy objects. + /* + VpnIkeProposalsPartialUpdate Method for VpnIkeProposalsPartialUpdate + + Patch a IKE proposal object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkePoliciesCreateRequest -*/ -func (a *VpnAPIService) VpnIkePoliciesCreate(ctx context.Context) ApiVpnIkePoliciesCreateRequest { - return ApiVpnIkePoliciesCreateRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsPartialUpdateRequest + */ + VpnIkeProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsPartialUpdateRequest -// Execute executes the request -// -// @return IKEPolicy -func (a *VpnAPIService) VpnIkePoliciesCreateExecute(r ApiVpnIkePoliciesCreateRequest) (*IKEPolicy, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEPolicy - ) + // VpnIkeProposalsPartialUpdateExecute executes the request + // @return IKEProposal + VpnIkeProposalsPartialUpdateExecute(r ApiVpnIkeProposalsPartialUpdateRequest) (*IKEProposal, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + VpnIkeProposalsRetrieve Method for VpnIkeProposalsRetrieve - localVarPath := localBasePath + "/api/vpn/ike-policies/" + Get a IKE proposal object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableIKEPolicyRequest == nil { - return localVarReturnValue, nil, reportError("writableIKEPolicyRequest is required and must be specified") - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsRetrieveRequest + */ + VpnIkeProposalsRetrieve(ctx context.Context, id int32) ApiVpnIkeProposalsRetrieveRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + // VpnIkeProposalsRetrieveExecute executes the request + // @return IKEProposal + VpnIkeProposalsRetrieveExecute(r ApiVpnIkeProposalsRetrieveRequest) (*IKEProposal, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + VpnIkeProposalsUpdate Method for VpnIkeProposalsUpdate - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + Put a IKE proposal object. - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableIKEPolicyRequest - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsUpdateRequest + */ + VpnIkeProposalsUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsUpdateRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } + // VpnIkeProposalsUpdateExecute executes the request + // @return IKEProposal + VpnIkeProposalsUpdateExecute(r ApiVpnIkeProposalsUpdateRequest) (*IKEProposal, *http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + /* + VpnIpsecPoliciesBulkDestroy Method for VpnIpsecPoliciesBulkDestroy - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + Delete a list of IPSec policy objects. - 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesBulkDestroyRequest + */ + VpnIpsecPoliciesBulkDestroy(ctx context.Context) ApiVpnIpsecPoliciesBulkDestroyRequest - return localVarReturnValue, localVarHTTPResponse, nil -} + // VpnIpsecPoliciesBulkDestroyExecute executes the request + VpnIpsecPoliciesBulkDestroyExecute(r ApiVpnIpsecPoliciesBulkDestroyRequest) (*http.Response, error) -type ApiVpnIkePoliciesDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 -} + /* + VpnIpsecPoliciesBulkPartialUpdate Method for VpnIpsecPoliciesBulkPartialUpdate -func (r ApiVpnIkePoliciesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.VpnIkePoliciesDestroyExecute(r) -} + Patch a list of IPSec policy objects. -/* -VpnIkePoliciesDestroy Method for VpnIkePoliciesDestroy + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest + */ + VpnIpsecPoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkPartialUpdateRequest -Delete a IKE policy object. + // VpnIpsecPoliciesBulkPartialUpdateExecute executes the request + // @return []IPSecPolicy + VpnIpsecPoliciesBulkPartialUpdateExecute(r ApiVpnIpsecPoliciesBulkPartialUpdateRequest) ([]IPSecPolicy, *http.Response, error) + + /* + VpnIpsecPoliciesBulkUpdate Method for VpnIpsecPoliciesBulkUpdate + + Put a list of IPSec policy 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 IKE policy. - @return ApiVpnIkePoliciesDestroyRequest -*/ -func (a *VpnAPIService) VpnIkePoliciesDestroy(ctx context.Context, id int32) ApiVpnIkePoliciesDestroyRequest { - return ApiVpnIkePoliciesDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} + @return ApiVpnIpsecPoliciesBulkUpdateRequest + */ + VpnIpsecPoliciesBulkUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkUpdateRequest -// Execute executes the request -func (a *VpnAPIService) VpnIkePoliciesDestroyExecute(r ApiVpnIkePoliciesDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) + // VpnIpsecPoliciesBulkUpdateExecute executes the request + // @return []IPSecPolicy + VpnIpsecPoliciesBulkUpdateExecute(r ApiVpnIpsecPoliciesBulkUpdateRequest) ([]IPSecPolicy, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } + /* + VpnIpsecPoliciesCreate Method for VpnIpsecPoliciesCreate - localVarPath := localBasePath + "/api/vpn/ike-policies/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + Post a list of IPSec policy objects. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesCreateRequest + */ + VpnIpsecPoliciesCreate(ctx context.Context) ApiVpnIpsecPoliciesCreateRequest - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + // VpnIpsecPoliciesCreateExecute executes the request + // @return IPSecPolicy + VpnIpsecPoliciesCreateExecute(r ApiVpnIpsecPoliciesCreateRequest) (*IPSecPolicy, *http.Response, error) - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } + /* + VpnIpsecPoliciesDestroy Method for VpnIpsecPoliciesDestroy - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + Delete a IPSec policy object. - // 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 - } + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec policy. + @return ApiVpnIpsecPoliciesDestroyRequest + */ + VpnIpsecPoliciesDestroy(ctx context.Context, id int32) ApiVpnIpsecPoliciesDestroyRequest - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } + // VpnIpsecPoliciesDestroyExecute executes the request + VpnIpsecPoliciesDestroyExecute(r ApiVpnIpsecPoliciesDestroyRequest) (*http.Response, error) - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } + /* + VpnIpsecPoliciesList Method for VpnIpsecPoliciesList - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } + Get a list of IPSec policy objects. - return localVarHTTPResponse, nil -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesListRequest + */ + VpnIpsecPoliciesList(ctx context.Context) ApiVpnIpsecPoliciesListRequest -type ApiVpnIkePoliciesListRequest struct { - ctx context.Context - ApiService *VpnAPIService - 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 - ikeProposal *[]string - ikeProposalN *[]string - ikeProposalId *[]int32 - ikeProposalIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - mode *[]string - modeN *[]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 - presharedKey *string - presharedKeyIc *string - presharedKeyIe *string - presharedKeyIew *string - presharedKeyIsw *string - presharedKeyN *string - presharedKeyNic *string - presharedKeyNie *string - presharedKeyNiew *string - presharedKeyNisw *string - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 - q *string - tag *[]string - tagN *[]string - updatedByRequest *string - version *[]int32 - versionN *[]int32 -} + // VpnIpsecPoliciesListExecute executes the request + // @return PaginatedIPSecPolicyList + VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListRequest) (*PaginatedIPSecPolicyList, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) Created(created []time.Time) ApiVpnIkePoliciesListRequest { - r.created = &created - return r -} + /* + VpnIpsecPoliciesPartialUpdate Method for VpnIpsecPoliciesPartialUpdate -func (r ApiVpnIkePoliciesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnIkePoliciesListRequest { - r.createdEmpty = &createdEmpty - return r -} + Patch a IPSec policy object. -func (r ApiVpnIkePoliciesListRequest) CreatedGt(createdGt []time.Time) ApiVpnIkePoliciesListRequest { - r.createdGt = &createdGt - 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 IPSec policy. + @return ApiVpnIpsecPoliciesPartialUpdateRequest + */ + VpnIpsecPoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesPartialUpdateRequest -func (r ApiVpnIkePoliciesListRequest) CreatedGte(createdGte []time.Time) ApiVpnIkePoliciesListRequest { - r.createdGte = &createdGte - return r -} + // VpnIpsecPoliciesPartialUpdateExecute executes the request + // @return IPSecPolicy + VpnIpsecPoliciesPartialUpdateExecute(r ApiVpnIpsecPoliciesPartialUpdateRequest) (*IPSecPolicy, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) CreatedLt(createdLt []time.Time) ApiVpnIkePoliciesListRequest { - r.createdLt = &createdLt - return r -} + /* + VpnIpsecPoliciesRetrieve Method for VpnIpsecPoliciesRetrieve -func (r ApiVpnIkePoliciesListRequest) CreatedLte(createdLte []time.Time) ApiVpnIkePoliciesListRequest { - r.createdLte = &createdLte - return r -} + Get a IPSec policy object. -func (r ApiVpnIkePoliciesListRequest) CreatedN(createdN []time.Time) ApiVpnIkePoliciesListRequest { - r.createdN = &createdN - 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 IPSec policy. + @return ApiVpnIpsecPoliciesRetrieveRequest + */ + VpnIpsecPoliciesRetrieve(ctx context.Context, id int32) ApiVpnIpsecPoliciesRetrieveRequest -func (r ApiVpnIkePoliciesListRequest) CreatedByRequest(createdByRequest string) ApiVpnIkePoliciesListRequest { - r.createdByRequest = &createdByRequest - return r -} + // VpnIpsecPoliciesRetrieveExecute executes the request + // @return IPSecPolicy + VpnIpsecPoliciesRetrieveExecute(r ApiVpnIpsecPoliciesRetrieveRequest) (*IPSecPolicy, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) Description(description []string) ApiVpnIkePoliciesListRequest { - r.description = &description - return r -} + /* + VpnIpsecPoliciesUpdate Method for VpnIpsecPoliciesUpdate -func (r ApiVpnIkePoliciesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnIkePoliciesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} + Put a IPSec policy object. -func (r ApiVpnIkePoliciesListRequest) DescriptionIc(descriptionIc []string) ApiVpnIkePoliciesListRequest { - r.descriptionIc = &descriptionIc - 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 IPSec policy. + @return ApiVpnIpsecPoliciesUpdateRequest + */ + VpnIpsecPoliciesUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesUpdateRequest -func (r ApiVpnIkePoliciesListRequest) DescriptionIe(descriptionIe []string) ApiVpnIkePoliciesListRequest { - r.descriptionIe = &descriptionIe - return r -} + // VpnIpsecPoliciesUpdateExecute executes the request + // @return IPSecPolicy + VpnIpsecPoliciesUpdateExecute(r ApiVpnIpsecPoliciesUpdateRequest) (*IPSecPolicy, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) DescriptionIew(descriptionIew []string) ApiVpnIkePoliciesListRequest { - r.descriptionIew = &descriptionIew - return r -} + /* + VpnIpsecProfilesBulkDestroy Method for VpnIpsecProfilesBulkDestroy -func (r ApiVpnIkePoliciesListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnIkePoliciesListRequest { - r.descriptionIsw = &descriptionIsw - return r -} + Delete a list of IPSec profile objects. -func (r ApiVpnIkePoliciesListRequest) DescriptionN(descriptionN []string) ApiVpnIkePoliciesListRequest { - r.descriptionN = &descriptionN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesBulkDestroyRequest + */ + VpnIpsecProfilesBulkDestroy(ctx context.Context) ApiVpnIpsecProfilesBulkDestroyRequest -func (r ApiVpnIkePoliciesListRequest) DescriptionNic(descriptionNic []string) ApiVpnIkePoliciesListRequest { - r.descriptionNic = &descriptionNic - return r -} + // VpnIpsecProfilesBulkDestroyExecute executes the request + VpnIpsecProfilesBulkDestroyExecute(r ApiVpnIpsecProfilesBulkDestroyRequest) (*http.Response, error) -func (r ApiVpnIkePoliciesListRequest) DescriptionNie(descriptionNie []string) ApiVpnIkePoliciesListRequest { - r.descriptionNie = &descriptionNie - return r -} + /* + VpnIpsecProfilesBulkPartialUpdate Method for VpnIpsecProfilesBulkPartialUpdate -func (r ApiVpnIkePoliciesListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnIkePoliciesListRequest { - r.descriptionNiew = &descriptionNiew - return r -} + Patch a list of IPSec profile objects. -func (r ApiVpnIkePoliciesListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnIkePoliciesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesBulkPartialUpdateRequest + */ + VpnIpsecProfilesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkPartialUpdateRequest -func (r ApiVpnIkePoliciesListRequest) Id(id []int32) ApiVpnIkePoliciesListRequest { - r.id = &id - return r -} + // VpnIpsecProfilesBulkPartialUpdateExecute executes the request + // @return []IPSecProfile + VpnIpsecProfilesBulkPartialUpdateExecute(r ApiVpnIpsecProfilesBulkPartialUpdateRequest) ([]IPSecProfile, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) IdEmpty(idEmpty bool) ApiVpnIkePoliciesListRequest { - r.idEmpty = &idEmpty - return r -} + /* + VpnIpsecProfilesBulkUpdate Method for VpnIpsecProfilesBulkUpdate -func (r ApiVpnIkePoliciesListRequest) IdGt(idGt []int32) ApiVpnIkePoliciesListRequest { - r.idGt = &idGt - return r -} + Put a list of IPSec profile objects. -func (r ApiVpnIkePoliciesListRequest) IdGte(idGte []int32) ApiVpnIkePoliciesListRequest { - r.idGte = &idGte - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesBulkUpdateRequest + */ + VpnIpsecProfilesBulkUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkUpdateRequest -func (r ApiVpnIkePoliciesListRequest) IdLt(idLt []int32) ApiVpnIkePoliciesListRequest { - r.idLt = &idLt - return r -} + // VpnIpsecProfilesBulkUpdateExecute executes the request + // @return []IPSecProfile + VpnIpsecProfilesBulkUpdateExecute(r ApiVpnIpsecProfilesBulkUpdateRequest) ([]IPSecProfile, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) IdLte(idLte []int32) ApiVpnIkePoliciesListRequest { - r.idLte = &idLte - return r -} + /* + VpnIpsecProfilesCreate Method for VpnIpsecProfilesCreate -func (r ApiVpnIkePoliciesListRequest) IdN(idN []int32) ApiVpnIkePoliciesListRequest { - r.idN = &idN - return r -} + Post a list of IPSec profile objects. -func (r ApiVpnIkePoliciesListRequest) IkeProposal(ikeProposal []string) ApiVpnIkePoliciesListRequest { - r.ikeProposal = &ikeProposal - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesCreateRequest + */ + VpnIpsecProfilesCreate(ctx context.Context) ApiVpnIpsecProfilesCreateRequest -func (r ApiVpnIkePoliciesListRequest) IkeProposalN(ikeProposalN []string) ApiVpnIkePoliciesListRequest { - r.ikeProposalN = &ikeProposalN - return r -} + // VpnIpsecProfilesCreateExecute executes the request + // @return IPSecProfile + VpnIpsecProfilesCreateExecute(r ApiVpnIpsecProfilesCreateRequest) (*IPSecProfile, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) IkeProposalId(ikeProposalId []int32) ApiVpnIkePoliciesListRequest { - r.ikeProposalId = &ikeProposalId - return r -} + /* + VpnIpsecProfilesDestroy Method for VpnIpsecProfilesDestroy -func (r ApiVpnIkePoliciesListRequest) IkeProposalIdN(ikeProposalIdN []int32) ApiVpnIkePoliciesListRequest { - r.ikeProposalIdN = &ikeProposalIdN - return r -} + Delete a IPSec profile object. -func (r ApiVpnIkePoliciesListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIkePoliciesListRequest { - r.lastUpdated = &lastUpdated - 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 IPSec profile. + @return ApiVpnIpsecProfilesDestroyRequest + */ + VpnIpsecProfilesDestroy(ctx context.Context, id int32) ApiVpnIpsecProfilesDestroyRequest -func (r ApiVpnIkePoliciesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnIkePoliciesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + // VpnIpsecProfilesDestroyExecute executes the request + VpnIpsecProfilesDestroyExecute(r ApiVpnIpsecProfilesDestroyRequest) (*http.Response, error) -func (r ApiVpnIkePoliciesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnIkePoliciesListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + /* + VpnIpsecProfilesList Method for VpnIpsecProfilesList -func (r ApiVpnIkePoliciesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnIkePoliciesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + Get a list of IPSec profile objects. -func (r ApiVpnIkePoliciesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnIkePoliciesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesListRequest + */ + VpnIpsecProfilesList(ctx context.Context) ApiVpnIpsecProfilesListRequest -func (r ApiVpnIkePoliciesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnIkePoliciesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + // VpnIpsecProfilesListExecute executes the request + // @return PaginatedIPSecProfileList + VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListRequest) (*PaginatedIPSecProfileList, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnIkePoliciesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + /* + VpnIpsecProfilesPartialUpdate Method for VpnIpsecProfilesPartialUpdate -// Number of results to return per page. -func (r ApiVpnIkePoliciesListRequest) Limit(limit int32) ApiVpnIkePoliciesListRequest { - r.limit = &limit - return r -} + Patch a IPSec profile object. -func (r ApiVpnIkePoliciesListRequest) Mode(mode []string) ApiVpnIkePoliciesListRequest { - r.mode = &mode - 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 IPSec profile. + @return ApiVpnIpsecProfilesPartialUpdateRequest + */ + VpnIpsecProfilesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesPartialUpdateRequest -func (r ApiVpnIkePoliciesListRequest) ModeN(modeN []string) ApiVpnIkePoliciesListRequest { - r.modeN = &modeN - return r -} + // VpnIpsecProfilesPartialUpdateExecute executes the request + // @return IPSecProfile + VpnIpsecProfilesPartialUpdateExecute(r ApiVpnIpsecProfilesPartialUpdateRequest) (*IPSecProfile, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIkePoliciesListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + /* + VpnIpsecProfilesRetrieve Method for VpnIpsecProfilesRetrieve -func (r ApiVpnIkePoliciesListRequest) Name(name []string) ApiVpnIkePoliciesListRequest { - r.name = &name - return r -} + Get a IPSec profile object. -func (r ApiVpnIkePoliciesListRequest) NameEmpty(nameEmpty bool) ApiVpnIkePoliciesListRequest { - r.nameEmpty = &nameEmpty - 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 IPSec profile. + @return ApiVpnIpsecProfilesRetrieveRequest + */ + VpnIpsecProfilesRetrieve(ctx context.Context, id int32) ApiVpnIpsecProfilesRetrieveRequest -func (r ApiVpnIkePoliciesListRequest) NameIc(nameIc []string) ApiVpnIkePoliciesListRequest { - r.nameIc = &nameIc - return r -} + // VpnIpsecProfilesRetrieveExecute executes the request + // @return IPSecProfile + VpnIpsecProfilesRetrieveExecute(r ApiVpnIpsecProfilesRetrieveRequest) (*IPSecProfile, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) NameIe(nameIe []string) ApiVpnIkePoliciesListRequest { - r.nameIe = &nameIe - return r -} + /* + VpnIpsecProfilesUpdate Method for VpnIpsecProfilesUpdate -func (r ApiVpnIkePoliciesListRequest) NameIew(nameIew []string) ApiVpnIkePoliciesListRequest { - r.nameIew = &nameIew - return r -} + Put a IPSec profile object. -func (r ApiVpnIkePoliciesListRequest) NameIsw(nameIsw []string) ApiVpnIkePoliciesListRequest { - r.nameIsw = &nameIsw - 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 IPSec profile. + @return ApiVpnIpsecProfilesUpdateRequest + */ + VpnIpsecProfilesUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesUpdateRequest -func (r ApiVpnIkePoliciesListRequest) NameN(nameN []string) ApiVpnIkePoliciesListRequest { - r.nameN = &nameN - return r -} + // VpnIpsecProfilesUpdateExecute executes the request + // @return IPSecProfile + VpnIpsecProfilesUpdateExecute(r ApiVpnIpsecProfilesUpdateRequest) (*IPSecProfile, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) NameNic(nameNic []string) ApiVpnIkePoliciesListRequest { - r.nameNic = &nameNic - return r -} + /* + VpnIpsecProposalsBulkDestroy Method for VpnIpsecProposalsBulkDestroy -func (r ApiVpnIkePoliciesListRequest) NameNie(nameNie []string) ApiVpnIkePoliciesListRequest { - r.nameNie = &nameNie - return r -} + Delete a list of IPSec proposal objects. -func (r ApiVpnIkePoliciesListRequest) NameNiew(nameNiew []string) ApiVpnIkePoliciesListRequest { - r.nameNiew = &nameNiew - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsBulkDestroyRequest + */ + VpnIpsecProposalsBulkDestroy(ctx context.Context) ApiVpnIpsecProposalsBulkDestroyRequest -func (r ApiVpnIkePoliciesListRequest) NameNisw(nameNisw []string) ApiVpnIkePoliciesListRequest { - r.nameNisw = &nameNisw - return r -} + // VpnIpsecProposalsBulkDestroyExecute executes the request + VpnIpsecProposalsBulkDestroyExecute(r ApiVpnIpsecProposalsBulkDestroyRequest) (*http.Response, error) -// The initial index from which to return the results. -func (r ApiVpnIkePoliciesListRequest) Offset(offset int32) ApiVpnIkePoliciesListRequest { - r.offset = &offset - return r -} + /* + VpnIpsecProposalsBulkPartialUpdate Method for VpnIpsecProposalsBulkPartialUpdate -// Which field to use when ordering the results. -func (r ApiVpnIkePoliciesListRequest) Ordering(ordering string) ApiVpnIkePoliciesListRequest { - r.ordering = &ordering - return r -} + Patch a list of IPSec proposal objects. -func (r ApiVpnIkePoliciesListRequest) PresharedKey(presharedKey string) ApiVpnIkePoliciesListRequest { - r.presharedKey = &presharedKey - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsBulkPartialUpdateRequest + */ + VpnIpsecProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkPartialUpdateRequest -func (r ApiVpnIkePoliciesListRequest) PresharedKeyIc(presharedKeyIc string) ApiVpnIkePoliciesListRequest { - r.presharedKeyIc = &presharedKeyIc - return r -} + // VpnIpsecProposalsBulkPartialUpdateExecute executes the request + // @return []IPSecProposal + VpnIpsecProposalsBulkPartialUpdateExecute(r ApiVpnIpsecProposalsBulkPartialUpdateRequest) ([]IPSecProposal, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) PresharedKeyIe(presharedKeyIe string) ApiVpnIkePoliciesListRequest { - r.presharedKeyIe = &presharedKeyIe - return r -} + /* + VpnIpsecProposalsBulkUpdate Method for VpnIpsecProposalsBulkUpdate -func (r ApiVpnIkePoliciesListRequest) PresharedKeyIew(presharedKeyIew string) ApiVpnIkePoliciesListRequest { - r.presharedKeyIew = &presharedKeyIew - return r -} + Put a list of IPSec proposal objects. -func (r ApiVpnIkePoliciesListRequest) PresharedKeyIsw(presharedKeyIsw string) ApiVpnIkePoliciesListRequest { - r.presharedKeyIsw = &presharedKeyIsw - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsBulkUpdateRequest + */ + VpnIpsecProposalsBulkUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkUpdateRequest -func (r ApiVpnIkePoliciesListRequest) PresharedKeyN(presharedKeyN string) ApiVpnIkePoliciesListRequest { - r.presharedKeyN = &presharedKeyN - return r -} + // VpnIpsecProposalsBulkUpdateExecute executes the request + // @return []IPSecProposal + VpnIpsecProposalsBulkUpdateExecute(r ApiVpnIpsecProposalsBulkUpdateRequest) ([]IPSecProposal, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) PresharedKeyNic(presharedKeyNic string) ApiVpnIkePoliciesListRequest { - r.presharedKeyNic = &presharedKeyNic - return r -} + /* + VpnIpsecProposalsCreate Method for VpnIpsecProposalsCreate -func (r ApiVpnIkePoliciesListRequest) PresharedKeyNie(presharedKeyNie string) ApiVpnIkePoliciesListRequest { - r.presharedKeyNie = &presharedKeyNie - return r -} + Post a list of IPSec proposal objects. -func (r ApiVpnIkePoliciesListRequest) PresharedKeyNiew(presharedKeyNiew string) ApiVpnIkePoliciesListRequest { - r.presharedKeyNiew = &presharedKeyNiew - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsCreateRequest + */ + VpnIpsecProposalsCreate(ctx context.Context) ApiVpnIpsecProposalsCreateRequest -func (r ApiVpnIkePoliciesListRequest) PresharedKeyNisw(presharedKeyNisw string) ApiVpnIkePoliciesListRequest { - r.presharedKeyNisw = &presharedKeyNisw - return r -} + // VpnIpsecProposalsCreateExecute executes the request + // @return IPSecProposal + VpnIpsecProposalsCreateExecute(r ApiVpnIpsecProposalsCreateRequest) (*IPSecProposal, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) Proposal(proposal []string) ApiVpnIkePoliciesListRequest { - r.proposal = &proposal - return r -} + /* + VpnIpsecProposalsDestroy Method for VpnIpsecProposalsDestroy -func (r ApiVpnIkePoliciesListRequest) ProposalN(proposalN []string) ApiVpnIkePoliciesListRequest { - r.proposalN = &proposalN - return r -} + Delete a IPSec proposal object. -func (r ApiVpnIkePoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIkePoliciesListRequest { - r.proposalId = &proposalId - 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 IPSec proposal. + @return ApiVpnIpsecProposalsDestroyRequest + */ + VpnIpsecProposalsDestroy(ctx context.Context, id int32) ApiVpnIpsecProposalsDestroyRequest -func (r ApiVpnIkePoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIkePoliciesListRequest { - r.proposalIdN = &proposalIdN - return r -} + // VpnIpsecProposalsDestroyExecute executes the request + VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDestroyRequest) (*http.Response, error) -// Search -func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest { - r.q = &q - return r -} + /* + VpnIpsecProposalsList Method for VpnIpsecProposalsList -func (r ApiVpnIkePoliciesListRequest) Tag(tag []string) ApiVpnIkePoliciesListRequest { - r.tag = &tag - return r -} + Get a list of IPSec proposal objects. -func (r ApiVpnIkePoliciesListRequest) TagN(tagN []string) ApiVpnIkePoliciesListRequest { - r.tagN = &tagN - return r -} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsListRequest + */ + VpnIpsecProposalsList(ctx context.Context) ApiVpnIpsecProposalsListRequest -func (r ApiVpnIkePoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkePoliciesListRequest { - r.updatedByRequest = &updatedByRequest - return r -} + // VpnIpsecProposalsListExecute executes the request + // @return PaginatedIPSecProposalList + VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListRequest) (*PaginatedIPSecProposalList, *http.Response, error) -func (r ApiVpnIkePoliciesListRequest) Version(version []int32) ApiVpnIkePoliciesListRequest { - r.version = &version - return r -} + /* + VpnIpsecProposalsPartialUpdate Method for VpnIpsecProposalsPartialUpdate -func (r ApiVpnIkePoliciesListRequest) VersionN(versionN []int32) ApiVpnIkePoliciesListRequest { - r.versionN = &versionN - return r -} + Patch a IPSec proposal object. -func (r ApiVpnIkePoliciesListRequest) Execute() (*PaginatedIKEPolicyList, *http.Response, error) { - return r.ApiService.VpnIkePoliciesListExecute(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 IPSec proposal. + @return ApiVpnIpsecProposalsPartialUpdateRequest + */ + VpnIpsecProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsPartialUpdateRequest -/* -VpnIkePoliciesList Method for VpnIkePoliciesList + // VpnIpsecProposalsPartialUpdateExecute executes the request + // @return IPSecProposal + VpnIpsecProposalsPartialUpdateExecute(r ApiVpnIpsecProposalsPartialUpdateRequest) (*IPSecProposal, *http.Response, error) -Get a list of IKE policy objects. + /* + VpnIpsecProposalsRetrieve Method for VpnIpsecProposalsRetrieve + + Get a IPSec proposal object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkePoliciesListRequest -*/ -func (a *VpnAPIService) VpnIkePoliciesList(ctx context.Context) ApiVpnIkePoliciesListRequest { - return ApiVpnIkePoliciesListRequest{ - ApiService: a, - ctx: ctx, - } -} + @param id A unique integer value identifying this IPSec proposal. + @return ApiVpnIpsecProposalsRetrieveRequest + */ + VpnIpsecProposalsRetrieve(ctx context.Context, id int32) ApiVpnIpsecProposalsRetrieveRequest -// Execute executes the request -// -// @return PaginatedIKEPolicyList -func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest) (*PaginatedIKEPolicyList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIKEPolicyList - ) + // VpnIpsecProposalsRetrieveExecute executes the request + // @return IPSecProposal + VpnIpsecProposalsRetrieveExecute(r ApiVpnIpsecProposalsRetrieveRequest) (*IPSecProposal, *http.Response, error) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } + /* + VpnIpsecProposalsUpdate Method for VpnIpsecProposalsUpdate - localVarPath := localBasePath + "/api/vpn/ike-policies/" + Put a IPSec proposal object. - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec proposal. + @return ApiVpnIpsecProposalsUpdateRequest + */ + VpnIpsecProposalsUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsUpdateRequest - 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.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") - } - } - 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).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - 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 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") - } - } - 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") - } - } - 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") + // VpnIpsecProposalsUpdateExecute executes the request + // @return IPSecProposal + VpnIpsecProposalsUpdateExecute(r ApiVpnIpsecProposalsUpdateRequest) (*IPSecProposal, *http.Response, error) + + /* + VpnL2vpnTerminationsBulkDestroy Method for VpnL2vpnTerminationsBulkDestroy + + 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 ApiVpnL2vpnTerminationsBulkDestroyRequest + */ + VpnL2vpnTerminationsBulkDestroy(ctx context.Context) ApiVpnL2vpnTerminationsBulkDestroyRequest + + // VpnL2vpnTerminationsBulkDestroyExecute executes the request + VpnL2vpnTerminationsBulkDestroyExecute(r ApiVpnL2vpnTerminationsBulkDestroyRequest) (*http.Response, error) + + /* + VpnL2vpnTerminationsBulkPartialUpdate Method for VpnL2vpnTerminationsBulkPartialUpdate + + 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 ApiVpnL2vpnTerminationsBulkPartialUpdateRequest + */ + VpnL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkPartialUpdateRequest + + // VpnL2vpnTerminationsBulkPartialUpdateExecute executes the request + // @return []L2VPNTermination + VpnL2vpnTerminationsBulkPartialUpdateExecute(r ApiVpnL2vpnTerminationsBulkPartialUpdateRequest) ([]L2VPNTermination, *http.Response, error) + + /* + VpnL2vpnTerminationsBulkUpdate Method for VpnL2vpnTerminationsBulkUpdate + + 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 ApiVpnL2vpnTerminationsBulkUpdateRequest + */ + VpnL2vpnTerminationsBulkUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkUpdateRequest + + // VpnL2vpnTerminationsBulkUpdateExecute executes the request + // @return []L2VPNTermination + VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTerminationsBulkUpdateRequest) ([]L2VPNTermination, *http.Response, error) + + /* + VpnL2vpnTerminationsCreate Method for VpnL2vpnTerminationsCreate + + 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 ApiVpnL2vpnTerminationsCreateRequest + */ + VpnL2vpnTerminationsCreate(ctx context.Context) ApiVpnL2vpnTerminationsCreateRequest + + // VpnL2vpnTerminationsCreateExecute executes the request + // @return L2VPNTermination + VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminationsCreateRequest) (*L2VPNTermination, *http.Response, error) + + /* + VpnL2vpnTerminationsDestroy Method for VpnL2vpnTerminationsDestroy + + 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 ApiVpnL2vpnTerminationsDestroyRequest + */ + VpnL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiVpnL2vpnTerminationsDestroyRequest + + // VpnL2vpnTerminationsDestroyExecute executes the request + VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminationsDestroyRequest) (*http.Response, error) + + /* + VpnL2vpnTerminationsList Method for VpnL2vpnTerminationsList + + 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 ApiVpnL2vpnTerminationsListRequest + */ + VpnL2vpnTerminationsList(ctx context.Context) ApiVpnL2vpnTerminationsListRequest + + // VpnL2vpnTerminationsListExecute executes the request + // @return PaginatedL2VPNTerminationList + VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTerminationsListRequest) (*PaginatedL2VPNTerminationList, *http.Response, error) + + /* + VpnL2vpnTerminationsPartialUpdate Method for VpnL2vpnTerminationsPartialUpdate + + 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 ApiVpnL2vpnTerminationsPartialUpdateRequest + */ + VpnL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsPartialUpdateRequest + + // VpnL2vpnTerminationsPartialUpdateExecute executes the request + // @return L2VPNTermination + VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTerminationsPartialUpdateRequest) (*L2VPNTermination, *http.Response, error) + + /* + VpnL2vpnTerminationsRetrieve Method for VpnL2vpnTerminationsRetrieve + + 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 ApiVpnL2vpnTerminationsRetrieveRequest + */ + VpnL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnTerminationsRetrieveRequest + + // VpnL2vpnTerminationsRetrieveExecute executes the request + // @return L2VPNTermination + VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTerminationsRetrieveRequest) (*L2VPNTermination, *http.Response, error) + + /* + VpnL2vpnTerminationsUpdate Method for VpnL2vpnTerminationsUpdate + + 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 ApiVpnL2vpnTerminationsUpdateRequest + */ + VpnL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsUpdateRequest + + // VpnL2vpnTerminationsUpdateExecute executes the request + // @return L2VPNTermination + VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminationsUpdateRequest) (*L2VPNTermination, *http.Response, error) + + /* + VpnL2vpnsBulkDestroy Method for VpnL2vpnsBulkDestroy + + 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 ApiVpnL2vpnsBulkDestroyRequest + */ + VpnL2vpnsBulkDestroy(ctx context.Context) ApiVpnL2vpnsBulkDestroyRequest + + // VpnL2vpnsBulkDestroyExecute executes the request + VpnL2vpnsBulkDestroyExecute(r ApiVpnL2vpnsBulkDestroyRequest) (*http.Response, error) + + /* + VpnL2vpnsBulkPartialUpdate Method for VpnL2vpnsBulkPartialUpdate + + 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 ApiVpnL2vpnsBulkPartialUpdateRequest + */ + VpnL2vpnsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnsBulkPartialUpdateRequest + + // VpnL2vpnsBulkPartialUpdateExecute executes the request + // @return []L2VPN + VpnL2vpnsBulkPartialUpdateExecute(r ApiVpnL2vpnsBulkPartialUpdateRequest) ([]L2VPN, *http.Response, error) + + /* + VpnL2vpnsBulkUpdate Method for VpnL2vpnsBulkUpdate + + 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 ApiVpnL2vpnsBulkUpdateRequest + */ + VpnL2vpnsBulkUpdate(ctx context.Context) ApiVpnL2vpnsBulkUpdateRequest + + // VpnL2vpnsBulkUpdateExecute executes the request + // @return []L2VPN + VpnL2vpnsBulkUpdateExecute(r ApiVpnL2vpnsBulkUpdateRequest) ([]L2VPN, *http.Response, error) + + /* + VpnL2vpnsCreate Method for VpnL2vpnsCreate + + 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 ApiVpnL2vpnsCreateRequest + */ + VpnL2vpnsCreate(ctx context.Context) ApiVpnL2vpnsCreateRequest + + // VpnL2vpnsCreateExecute executes the request + // @return L2VPN + VpnL2vpnsCreateExecute(r ApiVpnL2vpnsCreateRequest) (*L2VPN, *http.Response, error) + + /* + VpnL2vpnsDestroy Method for VpnL2vpnsDestroy + + 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 ApiVpnL2vpnsDestroyRequest + */ + VpnL2vpnsDestroy(ctx context.Context, id int32) ApiVpnL2vpnsDestroyRequest + + // VpnL2vpnsDestroyExecute executes the request + VpnL2vpnsDestroyExecute(r ApiVpnL2vpnsDestroyRequest) (*http.Response, error) + + /* + VpnL2vpnsList Method for VpnL2vpnsList + + 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 ApiVpnL2vpnsListRequest + */ + VpnL2vpnsList(ctx context.Context) ApiVpnL2vpnsListRequest + + // VpnL2vpnsListExecute executes the request + // @return PaginatedL2VPNList + VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*PaginatedL2VPNList, *http.Response, error) + + /* + VpnL2vpnsPartialUpdate Method for VpnL2vpnsPartialUpdate + + 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 ApiVpnL2vpnsPartialUpdateRequest + */ + VpnL2vpnsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnsPartialUpdateRequest + + // VpnL2vpnsPartialUpdateExecute executes the request + // @return L2VPN + VpnL2vpnsPartialUpdateExecute(r ApiVpnL2vpnsPartialUpdateRequest) (*L2VPN, *http.Response, error) + + /* + VpnL2vpnsRetrieve Method for VpnL2vpnsRetrieve + + 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 ApiVpnL2vpnsRetrieveRequest + */ + VpnL2vpnsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnsRetrieveRequest + + // VpnL2vpnsRetrieveExecute executes the request + // @return L2VPN + VpnL2vpnsRetrieveExecute(r ApiVpnL2vpnsRetrieveRequest) (*L2VPN, *http.Response, error) + + /* + VpnL2vpnsUpdate Method for VpnL2vpnsUpdate + + 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 ApiVpnL2vpnsUpdateRequest + */ + VpnL2vpnsUpdate(ctx context.Context, id int32) ApiVpnL2vpnsUpdateRequest + + // VpnL2vpnsUpdateExecute executes the request + // @return L2VPN + VpnL2vpnsUpdateExecute(r ApiVpnL2vpnsUpdateRequest) (*L2VPN, *http.Response, error) + + /* + VpnTunnelGroupsBulkDestroy Method for VpnTunnelGroupsBulkDestroy + + Delete a list of tunnel group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsBulkDestroyRequest + */ + VpnTunnelGroupsBulkDestroy(ctx context.Context) ApiVpnTunnelGroupsBulkDestroyRequest + + // VpnTunnelGroupsBulkDestroyExecute executes the request + VpnTunnelGroupsBulkDestroyExecute(r ApiVpnTunnelGroupsBulkDestroyRequest) (*http.Response, error) + + /* + VpnTunnelGroupsBulkPartialUpdate Method for VpnTunnelGroupsBulkPartialUpdate + + Patch a list of tunnel group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsBulkPartialUpdateRequest + */ + VpnTunnelGroupsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkPartialUpdateRequest + + // VpnTunnelGroupsBulkPartialUpdateExecute executes the request + // @return []TunnelGroup + VpnTunnelGroupsBulkPartialUpdateExecute(r ApiVpnTunnelGroupsBulkPartialUpdateRequest) ([]TunnelGroup, *http.Response, error) + + /* + VpnTunnelGroupsBulkUpdate Method for VpnTunnelGroupsBulkUpdate + + Put a list of tunnel group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsBulkUpdateRequest + */ + VpnTunnelGroupsBulkUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkUpdateRequest + + // VpnTunnelGroupsBulkUpdateExecute executes the request + // @return []TunnelGroup + VpnTunnelGroupsBulkUpdateExecute(r ApiVpnTunnelGroupsBulkUpdateRequest) ([]TunnelGroup, *http.Response, error) + + /* + VpnTunnelGroupsCreate Method for VpnTunnelGroupsCreate + + Post a list of tunnel group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsCreateRequest + */ + VpnTunnelGroupsCreate(ctx context.Context) ApiVpnTunnelGroupsCreateRequest + + // VpnTunnelGroupsCreateExecute executes the request + // @return TunnelGroup + VpnTunnelGroupsCreateExecute(r ApiVpnTunnelGroupsCreateRequest) (*TunnelGroup, *http.Response, error) + + /* + VpnTunnelGroupsDestroy Method for VpnTunnelGroupsDestroy + + Delete a tunnel 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 tunnel group. + @return ApiVpnTunnelGroupsDestroyRequest + */ + VpnTunnelGroupsDestroy(ctx context.Context, id int32) ApiVpnTunnelGroupsDestroyRequest + + // VpnTunnelGroupsDestroyExecute executes the request + VpnTunnelGroupsDestroyExecute(r ApiVpnTunnelGroupsDestroyRequest) (*http.Response, error) + + /* + VpnTunnelGroupsList Method for VpnTunnelGroupsList + + Get a list of tunnel group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsListRequest + */ + VpnTunnelGroupsList(ctx context.Context) ApiVpnTunnelGroupsListRequest + + // VpnTunnelGroupsListExecute executes the request + // @return PaginatedTunnelGroupList + VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListRequest) (*PaginatedTunnelGroupList, *http.Response, error) + + /* + VpnTunnelGroupsPartialUpdate Method for VpnTunnelGroupsPartialUpdate + + Patch a tunnel 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 tunnel group. + @return ApiVpnTunnelGroupsPartialUpdateRequest + */ + VpnTunnelGroupsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsPartialUpdateRequest + + // VpnTunnelGroupsPartialUpdateExecute executes the request + // @return TunnelGroup + VpnTunnelGroupsPartialUpdateExecute(r ApiVpnTunnelGroupsPartialUpdateRequest) (*TunnelGroup, *http.Response, error) + + /* + VpnTunnelGroupsRetrieve Method for VpnTunnelGroupsRetrieve + + Get a tunnel 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 tunnel group. + @return ApiVpnTunnelGroupsRetrieveRequest + */ + VpnTunnelGroupsRetrieve(ctx context.Context, id int32) ApiVpnTunnelGroupsRetrieveRequest + + // VpnTunnelGroupsRetrieveExecute executes the request + // @return TunnelGroup + VpnTunnelGroupsRetrieveExecute(r ApiVpnTunnelGroupsRetrieveRequest) (*TunnelGroup, *http.Response, error) + + /* + VpnTunnelGroupsUpdate Method for VpnTunnelGroupsUpdate + + Put a tunnel 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 tunnel group. + @return ApiVpnTunnelGroupsUpdateRequest + */ + VpnTunnelGroupsUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsUpdateRequest + + // VpnTunnelGroupsUpdateExecute executes the request + // @return TunnelGroup + VpnTunnelGroupsUpdateExecute(r ApiVpnTunnelGroupsUpdateRequest) (*TunnelGroup, *http.Response, error) + + /* + VpnTunnelTerminationsBulkDestroy Method for VpnTunnelTerminationsBulkDestroy + + Delete a list of tunnel termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsBulkDestroyRequest + */ + VpnTunnelTerminationsBulkDestroy(ctx context.Context) ApiVpnTunnelTerminationsBulkDestroyRequest + + // VpnTunnelTerminationsBulkDestroyExecute executes the request + VpnTunnelTerminationsBulkDestroyExecute(r ApiVpnTunnelTerminationsBulkDestroyRequest) (*http.Response, error) + + /* + VpnTunnelTerminationsBulkPartialUpdate Method for VpnTunnelTerminationsBulkPartialUpdate + + Patch a list of tunnel termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest + */ + VpnTunnelTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkPartialUpdateRequest + + // VpnTunnelTerminationsBulkPartialUpdateExecute executes the request + // @return []TunnelTermination + VpnTunnelTerminationsBulkPartialUpdateExecute(r ApiVpnTunnelTerminationsBulkPartialUpdateRequest) ([]TunnelTermination, *http.Response, error) + + /* + VpnTunnelTerminationsBulkUpdate Method for VpnTunnelTerminationsBulkUpdate + + Put a list of tunnel termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsBulkUpdateRequest + */ + VpnTunnelTerminationsBulkUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkUpdateRequest + + // VpnTunnelTerminationsBulkUpdateExecute executes the request + // @return []TunnelTermination + VpnTunnelTerminationsBulkUpdateExecute(r ApiVpnTunnelTerminationsBulkUpdateRequest) ([]TunnelTermination, *http.Response, error) + + /* + VpnTunnelTerminationsCreate Method for VpnTunnelTerminationsCreate + + Post a list of tunnel termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsCreateRequest + */ + VpnTunnelTerminationsCreate(ctx context.Context) ApiVpnTunnelTerminationsCreateRequest + + // VpnTunnelTerminationsCreateExecute executes the request + // @return TunnelTermination + VpnTunnelTerminationsCreateExecute(r ApiVpnTunnelTerminationsCreateRequest) (*TunnelTermination, *http.Response, error) + + /* + VpnTunnelTerminationsDestroy Method for VpnTunnelTerminationsDestroy + + Delete a tunnel 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 tunnel termination. + @return ApiVpnTunnelTerminationsDestroyRequest + */ + VpnTunnelTerminationsDestroy(ctx context.Context, id int32) ApiVpnTunnelTerminationsDestroyRequest + + // VpnTunnelTerminationsDestroyExecute executes the request + VpnTunnelTerminationsDestroyExecute(r ApiVpnTunnelTerminationsDestroyRequest) (*http.Response, error) + + /* + VpnTunnelTerminationsList Method for VpnTunnelTerminationsList + + Get a list of tunnel termination objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsListRequest + */ + VpnTunnelTerminationsList(ctx context.Context) ApiVpnTunnelTerminationsListRequest + + // VpnTunnelTerminationsListExecute executes the request + // @return PaginatedTunnelTerminationList + VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminationsListRequest) (*PaginatedTunnelTerminationList, *http.Response, error) + + /* + VpnTunnelTerminationsPartialUpdate Method for VpnTunnelTerminationsPartialUpdate + + Patch a tunnel 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 tunnel termination. + @return ApiVpnTunnelTerminationsPartialUpdateRequest + */ + VpnTunnelTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsPartialUpdateRequest + + // VpnTunnelTerminationsPartialUpdateExecute executes the request + // @return TunnelTermination + VpnTunnelTerminationsPartialUpdateExecute(r ApiVpnTunnelTerminationsPartialUpdateRequest) (*TunnelTermination, *http.Response, error) + + /* + VpnTunnelTerminationsRetrieve Method for VpnTunnelTerminationsRetrieve + + Get a tunnel 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 tunnel termination. + @return ApiVpnTunnelTerminationsRetrieveRequest + */ + VpnTunnelTerminationsRetrieve(ctx context.Context, id int32) ApiVpnTunnelTerminationsRetrieveRequest + + // VpnTunnelTerminationsRetrieveExecute executes the request + // @return TunnelTermination + VpnTunnelTerminationsRetrieveExecute(r ApiVpnTunnelTerminationsRetrieveRequest) (*TunnelTermination, *http.Response, error) + + /* + VpnTunnelTerminationsUpdate Method for VpnTunnelTerminationsUpdate + + Put a tunnel 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 tunnel termination. + @return ApiVpnTunnelTerminationsUpdateRequest + */ + VpnTunnelTerminationsUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsUpdateRequest + + // VpnTunnelTerminationsUpdateExecute executes the request + // @return TunnelTermination + VpnTunnelTerminationsUpdateExecute(r ApiVpnTunnelTerminationsUpdateRequest) (*TunnelTermination, *http.Response, error) + + /* + VpnTunnelsBulkDestroy Method for VpnTunnelsBulkDestroy + + Delete a list of tunnel objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsBulkDestroyRequest + */ + VpnTunnelsBulkDestroy(ctx context.Context) ApiVpnTunnelsBulkDestroyRequest + + // VpnTunnelsBulkDestroyExecute executes the request + VpnTunnelsBulkDestroyExecute(r ApiVpnTunnelsBulkDestroyRequest) (*http.Response, error) + + /* + VpnTunnelsBulkPartialUpdate Method for VpnTunnelsBulkPartialUpdate + + Patch a list of tunnel objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsBulkPartialUpdateRequest + */ + VpnTunnelsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelsBulkPartialUpdateRequest + + // VpnTunnelsBulkPartialUpdateExecute executes the request + // @return []Tunnel + VpnTunnelsBulkPartialUpdateExecute(r ApiVpnTunnelsBulkPartialUpdateRequest) ([]Tunnel, *http.Response, error) + + /* + VpnTunnelsBulkUpdate Method for VpnTunnelsBulkUpdate + + Put a list of tunnel objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsBulkUpdateRequest + */ + VpnTunnelsBulkUpdate(ctx context.Context) ApiVpnTunnelsBulkUpdateRequest + + // VpnTunnelsBulkUpdateExecute executes the request + // @return []Tunnel + VpnTunnelsBulkUpdateExecute(r ApiVpnTunnelsBulkUpdateRequest) ([]Tunnel, *http.Response, error) + + /* + VpnTunnelsCreate Method for VpnTunnelsCreate + + Post a list of tunnel objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsCreateRequest + */ + VpnTunnelsCreate(ctx context.Context) ApiVpnTunnelsCreateRequest + + // VpnTunnelsCreateExecute executes the request + // @return Tunnel + VpnTunnelsCreateExecute(r ApiVpnTunnelsCreateRequest) (*Tunnel, *http.Response, error) + + /* + VpnTunnelsDestroy Method for VpnTunnelsDestroy + + Delete a tunnel object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsDestroyRequest + */ + VpnTunnelsDestroy(ctx context.Context, id int32) ApiVpnTunnelsDestroyRequest + + // VpnTunnelsDestroyExecute executes the request + VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest) (*http.Response, error) + + /* + VpnTunnelsList Method for VpnTunnelsList + + Get a list of tunnel objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsListRequest + */ + VpnTunnelsList(ctx context.Context) ApiVpnTunnelsListRequest + + // VpnTunnelsListExecute executes the request + // @return PaginatedTunnelList + VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*PaginatedTunnelList, *http.Response, error) + + /* + VpnTunnelsPartialUpdate Method for VpnTunnelsPartialUpdate + + Patch a tunnel object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsPartialUpdateRequest + */ + VpnTunnelsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelsPartialUpdateRequest + + // VpnTunnelsPartialUpdateExecute executes the request + // @return Tunnel + VpnTunnelsPartialUpdateExecute(r ApiVpnTunnelsPartialUpdateRequest) (*Tunnel, *http.Response, error) + + /* + VpnTunnelsRetrieve Method for VpnTunnelsRetrieve + + Get a tunnel object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsRetrieveRequest + */ + VpnTunnelsRetrieve(ctx context.Context, id int32) ApiVpnTunnelsRetrieveRequest + + // VpnTunnelsRetrieveExecute executes the request + // @return Tunnel + VpnTunnelsRetrieveExecute(r ApiVpnTunnelsRetrieveRequest) (*Tunnel, *http.Response, error) + + /* + VpnTunnelsUpdate Method for VpnTunnelsUpdate + + Put a tunnel object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsUpdateRequest + */ + VpnTunnelsUpdate(ctx context.Context, id int32) ApiVpnTunnelsUpdateRequest + + // VpnTunnelsUpdateExecute executes the request + // @return Tunnel + VpnTunnelsUpdateExecute(r ApiVpnTunnelsUpdateRequest) (*Tunnel, *http.Response, error) +} + +// VpnAPIService VpnAPI service +type VpnAPIService service + +type ApiVpnIkePoliciesBulkDestroyRequest struct { + ctx context.Context + ApiService VpnAPI + iKEPolicyRequest *[]IKEPolicyRequest +} + +func (r ApiVpnIkePoliciesBulkDestroyRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkDestroyRequest { + r.iKEPolicyRequest = &iKEPolicyRequest + return r +} + +func (r ApiVpnIkePoliciesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.VpnIkePoliciesBulkDestroyExecute(r) +} + +/* +VpnIkePoliciesBulkDestroy Method for VpnIkePoliciesBulkDestroy + +Delete a list of IKE policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesBulkDestroyRequest +*/ +func (a *VpnAPIService) VpnIkePoliciesBulkDestroy(ctx context.Context) ApiVpnIkePoliciesBulkDestroyRequest { + return ApiVpnIkePoliciesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *VpnAPIService) VpnIkePoliciesBulkDestroyExecute(r ApiVpnIkePoliciesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/vpn/ike-policies/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.iKEPolicyRequest == nil { + return nil, reportError("iKEPolicyRequest 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.iKEPolicyRequest + 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 ApiVpnIkePoliciesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService VpnAPI + iKEPolicyRequest *[]IKEPolicyRequest +} + +func (r ApiVpnIkePoliciesBulkPartialUpdateRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkPartialUpdateRequest { + r.iKEPolicyRequest = &iKEPolicyRequest + return r +} + +func (r ApiVpnIkePoliciesBulkPartialUpdateRequest) Execute() ([]IKEPolicy, *http.Response, error) { + return r.ApiService.VpnIkePoliciesBulkPartialUpdateExecute(r) +} + +/* +VpnIkePoliciesBulkPartialUpdate Method for VpnIkePoliciesBulkPartialUpdate + +Patch a list of IKE policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesBulkPartialUpdateRequest +*/ +func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIkePoliciesBulkPartialUpdateRequest { + return ApiVpnIkePoliciesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []IKEPolicy +func (a *VpnAPIService) VpnIkePoliciesBulkPartialUpdateExecute(r ApiVpnIkePoliciesBulkPartialUpdateRequest) ([]IKEPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IKEPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/vpn/ike-policies/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.iKEPolicyRequest == nil { + return localVarReturnValue, nil, reportError("iKEPolicyRequest 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.iKEPolicyRequest + 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 ApiVpnIkePoliciesBulkUpdateRequest struct { + ctx context.Context + ApiService VpnAPI + iKEPolicyRequest *[]IKEPolicyRequest +} + +func (r ApiVpnIkePoliciesBulkUpdateRequest) IKEPolicyRequest(iKEPolicyRequest []IKEPolicyRequest) ApiVpnIkePoliciesBulkUpdateRequest { + r.iKEPolicyRequest = &iKEPolicyRequest + return r +} + +func (r ApiVpnIkePoliciesBulkUpdateRequest) Execute() ([]IKEPolicy, *http.Response, error) { + return r.ApiService.VpnIkePoliciesBulkUpdateExecute(r) +} + +/* +VpnIkePoliciesBulkUpdate Method for VpnIkePoliciesBulkUpdate + +Put a list of IKE policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesBulkUpdateRequest +*/ +func (a *VpnAPIService) VpnIkePoliciesBulkUpdate(ctx context.Context) ApiVpnIkePoliciesBulkUpdateRequest { + return ApiVpnIkePoliciesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []IKEPolicy +func (a *VpnAPIService) VpnIkePoliciesBulkUpdateExecute(r ApiVpnIkePoliciesBulkUpdateRequest) ([]IKEPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IKEPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/vpn/ike-policies/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.iKEPolicyRequest == nil { + return localVarReturnValue, nil, reportError("iKEPolicyRequest 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.iKEPolicyRequest + 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 ApiVpnIkePoliciesCreateRequest struct { + ctx context.Context + ApiService VpnAPI + writableIKEPolicyRequest *WritableIKEPolicyRequest +} + +func (r ApiVpnIkePoliciesCreateRequest) WritableIKEPolicyRequest(writableIKEPolicyRequest WritableIKEPolicyRequest) ApiVpnIkePoliciesCreateRequest { + r.writableIKEPolicyRequest = &writableIKEPolicyRequest + return r +} + +func (r ApiVpnIkePoliciesCreateRequest) Execute() (*IKEPolicy, *http.Response, error) { + return r.ApiService.VpnIkePoliciesCreateExecute(r) +} + +/* +VpnIkePoliciesCreate Method for VpnIkePoliciesCreate + +Post a list of IKE policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesCreateRequest +*/ +func (a *VpnAPIService) VpnIkePoliciesCreate(ctx context.Context) ApiVpnIkePoliciesCreateRequest { + return ApiVpnIkePoliciesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return IKEPolicy +func (a *VpnAPIService) VpnIkePoliciesCreateExecute(r ApiVpnIkePoliciesCreateRequest) (*IKEPolicy, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEPolicy + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/vpn/ike-policies/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableIKEPolicyRequest == nil { + return localVarReturnValue, nil, reportError("writableIKEPolicyRequest 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.writableIKEPolicyRequest + 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 ApiVpnIkePoliciesDestroyRequest struct { + ctx context.Context + ApiService VpnAPI + id int32 +} + +func (r ApiVpnIkePoliciesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.VpnIkePoliciesDestroyExecute(r) +} + +/* +VpnIkePoliciesDestroy Method for VpnIkePoliciesDestroy + +Delete a IKE policy object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesDestroyRequest +*/ +func (a *VpnAPIService) VpnIkePoliciesDestroy(ctx context.Context, id int32) ApiVpnIkePoliciesDestroyRequest { + return ApiVpnIkePoliciesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *VpnAPIService) VpnIkePoliciesDestroyExecute(r ApiVpnIkePoliciesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/vpn/ike-policies/{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 ApiVpnIkePoliciesListRequest struct { + ctx context.Context + ApiService VpnAPI + 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 + ikeProposal *[]string + ikeProposalN *[]string + ikeProposalId *[]int32 + ikeProposalIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + mode *[]*string + modeEmpty *bool + modeIc *[]*string + modeIe *[]*string + modeIew *[]*string + modeIsw *[]*string + modeN *[]*string + modeNic *[]*string + modeNie *[]*string + modeNiew *[]*string + modeNisw *[]*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 + presharedKey *string + presharedKeyIc *string + presharedKeyIe *string + presharedKeyIew *string + presharedKeyIsw *string + presharedKeyN *string + presharedKeyNic *string + presharedKeyNie *string + presharedKeyNiew *string + presharedKeyNisw *string + q *string + tag *[]string + tagN *[]string + updatedByRequest *string + version *[]int32 + versionIc *[]int32 + versionIe *[]int32 + versionIew *[]int32 + versionIsw *[]int32 + versionN *[]int32 + versionNic *[]int32 + versionNie *[]int32 + versionNiew *[]int32 + versionNisw *[]int32 +} + +func (r ApiVpnIkePoliciesListRequest) Created(created []time.Time) ApiVpnIkePoliciesListRequest { + r.created = &created + return r +} + +func (r ApiVpnIkePoliciesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVpnIkePoliciesListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiVpnIkePoliciesListRequest) CreatedGt(createdGt []time.Time) ApiVpnIkePoliciesListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiVpnIkePoliciesListRequest) CreatedGte(createdGte []time.Time) ApiVpnIkePoliciesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiVpnIkePoliciesListRequest) CreatedLt(createdLt []time.Time) ApiVpnIkePoliciesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiVpnIkePoliciesListRequest) CreatedLte(createdLte []time.Time) ApiVpnIkePoliciesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiVpnIkePoliciesListRequest) CreatedN(createdN []time.Time) ApiVpnIkePoliciesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiVpnIkePoliciesListRequest) CreatedByRequest(createdByRequest string) ApiVpnIkePoliciesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiVpnIkePoliciesListRequest) Description(description []string) ApiVpnIkePoliciesListRequest { + r.description = &description + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiVpnIkePoliciesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionIc(descriptionIc []string) ApiVpnIkePoliciesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionIe(descriptionIe []string) ApiVpnIkePoliciesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionIew(descriptionIew []string) ApiVpnIkePoliciesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionIsw(descriptionIsw []string) ApiVpnIkePoliciesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionN(descriptionN []string) ApiVpnIkePoliciesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionNic(descriptionNic []string) ApiVpnIkePoliciesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionNie(descriptionNie []string) ApiVpnIkePoliciesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionNiew(descriptionNiew []string) ApiVpnIkePoliciesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiVpnIkePoliciesListRequest) DescriptionNisw(descriptionNisw []string) ApiVpnIkePoliciesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiVpnIkePoliciesListRequest) Id(id []int32) ApiVpnIkePoliciesListRequest { + r.id = &id + return r +} + +func (r ApiVpnIkePoliciesListRequest) IdEmpty(idEmpty bool) ApiVpnIkePoliciesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiVpnIkePoliciesListRequest) IdGt(idGt []int32) ApiVpnIkePoliciesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiVpnIkePoliciesListRequest) IdGte(idGte []int32) ApiVpnIkePoliciesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiVpnIkePoliciesListRequest) IdLt(idLt []int32) ApiVpnIkePoliciesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiVpnIkePoliciesListRequest) IdLte(idLte []int32) ApiVpnIkePoliciesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiVpnIkePoliciesListRequest) IdN(idN []int32) ApiVpnIkePoliciesListRequest { + r.idN = &idN + return r +} + +func (r ApiVpnIkePoliciesListRequest) IkeProposal(ikeProposal []string) ApiVpnIkePoliciesListRequest { + r.ikeProposal = &ikeProposal + return r +} + +func (r ApiVpnIkePoliciesListRequest) IkeProposalN(ikeProposalN []string) ApiVpnIkePoliciesListRequest { + r.ikeProposalN = &ikeProposalN + return r +} + +func (r ApiVpnIkePoliciesListRequest) IkeProposalId(ikeProposalId []int32) ApiVpnIkePoliciesListRequest { + r.ikeProposalId = &ikeProposalId + return r +} + +func (r ApiVpnIkePoliciesListRequest) IkeProposalIdN(ikeProposalIdN []int32) ApiVpnIkePoliciesListRequest { + r.ikeProposalIdN = &ikeProposalIdN + return r +} + +func (r ApiVpnIkePoliciesListRequest) LastUpdated(lastUpdated []time.Time) ApiVpnIkePoliciesListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiVpnIkePoliciesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVpnIkePoliciesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiVpnIkePoliciesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVpnIkePoliciesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiVpnIkePoliciesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiVpnIkePoliciesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiVpnIkePoliciesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiVpnIkePoliciesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiVpnIkePoliciesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiVpnIkePoliciesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiVpnIkePoliciesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiVpnIkePoliciesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiVpnIkePoliciesListRequest) Limit(limit int32) ApiVpnIkePoliciesListRequest { + r.limit = &limit + return r +} + +func (r ApiVpnIkePoliciesListRequest) Mode(mode []*string) ApiVpnIkePoliciesListRequest { + r.mode = &mode + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeEmpty(modeEmpty bool) ApiVpnIkePoliciesListRequest { + r.modeEmpty = &modeEmpty + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeIc(modeIc []*string) ApiVpnIkePoliciesListRequest { + r.modeIc = &modeIc + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeIe(modeIe []*string) ApiVpnIkePoliciesListRequest { + r.modeIe = &modeIe + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeIew(modeIew []*string) ApiVpnIkePoliciesListRequest { + r.modeIew = &modeIew + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeIsw(modeIsw []*string) ApiVpnIkePoliciesListRequest { + r.modeIsw = &modeIsw + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeN(modeN []*string) ApiVpnIkePoliciesListRequest { + r.modeN = &modeN + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeNic(modeNic []*string) ApiVpnIkePoliciesListRequest { + r.modeNic = &modeNic + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeNie(modeNie []*string) ApiVpnIkePoliciesListRequest { + r.modeNie = &modeNie + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeNiew(modeNiew []*string) ApiVpnIkePoliciesListRequest { + r.modeNiew = &modeNiew + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModeNisw(modeNisw []*string) ApiVpnIkePoliciesListRequest { + r.modeNisw = &modeNisw + return r +} + +func (r ApiVpnIkePoliciesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIkePoliciesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiVpnIkePoliciesListRequest) Name(name []string) ApiVpnIkePoliciesListRequest { + r.name = &name + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameEmpty(nameEmpty bool) ApiVpnIkePoliciesListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameIc(nameIc []string) ApiVpnIkePoliciesListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameIe(nameIe []string) ApiVpnIkePoliciesListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameIew(nameIew []string) ApiVpnIkePoliciesListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameIsw(nameIsw []string) ApiVpnIkePoliciesListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameN(nameN []string) ApiVpnIkePoliciesListRequest { + r.nameN = &nameN + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameNic(nameNic []string) ApiVpnIkePoliciesListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameNie(nameNie []string) ApiVpnIkePoliciesListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameNiew(nameNiew []string) ApiVpnIkePoliciesListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiVpnIkePoliciesListRequest) NameNisw(nameNisw []string) ApiVpnIkePoliciesListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiVpnIkePoliciesListRequest) Offset(offset int32) ApiVpnIkePoliciesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiVpnIkePoliciesListRequest) Ordering(ordering string) ApiVpnIkePoliciesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKey(presharedKey string) ApiVpnIkePoliciesListRequest { + r.presharedKey = &presharedKey + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyIc(presharedKeyIc string) ApiVpnIkePoliciesListRequest { + r.presharedKeyIc = &presharedKeyIc + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyIe(presharedKeyIe string) ApiVpnIkePoliciesListRequest { + r.presharedKeyIe = &presharedKeyIe + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyIew(presharedKeyIew string) ApiVpnIkePoliciesListRequest { + r.presharedKeyIew = &presharedKeyIew + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyIsw(presharedKeyIsw string) ApiVpnIkePoliciesListRequest { + r.presharedKeyIsw = &presharedKeyIsw + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyN(presharedKeyN string) ApiVpnIkePoliciesListRequest { + r.presharedKeyN = &presharedKeyN + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyNic(presharedKeyNic string) ApiVpnIkePoliciesListRequest { + r.presharedKeyNic = &presharedKeyNic + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyNie(presharedKeyNie string) ApiVpnIkePoliciesListRequest { + r.presharedKeyNie = &presharedKeyNie + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyNiew(presharedKeyNiew string) ApiVpnIkePoliciesListRequest { + r.presharedKeyNiew = &presharedKeyNiew + return r +} + +func (r ApiVpnIkePoliciesListRequest) PresharedKeyNisw(presharedKeyNisw string) ApiVpnIkePoliciesListRequest { + r.presharedKeyNisw = &presharedKeyNisw + return r +} + +// Search +func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest { + r.q = &q + return r +} + +func (r ApiVpnIkePoliciesListRequest) Tag(tag []string) ApiVpnIkePoliciesListRequest { + r.tag = &tag + return r +} + +func (r ApiVpnIkePoliciesListRequest) TagN(tagN []string) ApiVpnIkePoliciesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiVpnIkePoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkePoliciesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiVpnIkePoliciesListRequest) Version(version []int32) ApiVpnIkePoliciesListRequest { + r.version = &version + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionIc(versionIc []int32) ApiVpnIkePoliciesListRequest { + r.versionIc = &versionIc + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionIe(versionIe []int32) ApiVpnIkePoliciesListRequest { + r.versionIe = &versionIe + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionIew(versionIew []int32) ApiVpnIkePoliciesListRequest { + r.versionIew = &versionIew + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionIsw(versionIsw []int32) ApiVpnIkePoliciesListRequest { + r.versionIsw = &versionIsw + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionN(versionN []int32) ApiVpnIkePoliciesListRequest { + r.versionN = &versionN + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionNic(versionNic []int32) ApiVpnIkePoliciesListRequest { + r.versionNic = &versionNic + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionNie(versionNie []int32) ApiVpnIkePoliciesListRequest { + r.versionNie = &versionNie + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionNiew(versionNiew []int32) ApiVpnIkePoliciesListRequest { + r.versionNiew = &versionNiew + return r +} + +func (r ApiVpnIkePoliciesListRequest) VersionNisw(versionNisw []int32) ApiVpnIkePoliciesListRequest { + r.versionNisw = &versionNisw + return r +} + +func (r ApiVpnIkePoliciesListRequest) Execute() (*PaginatedIKEPolicyList, *http.Response, error) { + return r.ApiService.VpnIkePoliciesListExecute(r) +} + +/* +VpnIkePoliciesList Method for VpnIkePoliciesList + +Get a list of IKE policy objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkePoliciesListRequest +*/ +func (a *VpnAPIService) VpnIkePoliciesList(ctx context.Context) ApiVpnIkePoliciesListRequest { + return ApiVpnIkePoliciesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedIKEPolicyList +func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest) (*PaginatedIKEPolicyList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIKEPolicyList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/vpn/ike-policies/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -1288,10 +2646,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -1299,10 +2657,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -1310,24 +2668,24 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -1335,10 +2693,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -1346,10 +2704,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -1357,10 +2715,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -1368,10 +2726,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.ikeProposal != nil { @@ -1379,10 +2737,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal", t, "form", "multi") } } if r.ikeProposalN != nil { @@ -1390,10 +2748,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal__n", t, "form", "multi") } } if r.ikeProposalId != nil { @@ -1401,151 +2759,242 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id", t, "form", "multi") + } + } + if r.ikeProposalIdN != nil { + t := *r.ikeProposalIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.ikeProposalIdN != nil { - t := *r.ikeProposalIdN + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.mode != nil { + t := *r.mode if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_proposal_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.modeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__empty", r.modeEmpty, "form", "") + } + if r.modeIc != nil { + t := *r.modeIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.modeIe != nil { + t := *r.modeIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.modeIew != nil { + t := *r.modeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.modeIsw != nil { + t := *r.modeIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.modeN != nil { + t := *r.modeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.modeNic != nil { + t := *r.modeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.modeNie != nil { + t := *r.modeNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.mode != nil { - t := *r.mode + if r.modeNiew != nil { + t := *r.modeNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", t, "form", "multi") } } - if r.modeN != nil { - t := *r.modeN + if r.modeNisw != nil { + t := *r.modeNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -1553,10 +3002,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -1564,10 +3013,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -1575,10 +3024,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -1586,10 +3035,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -1597,10 +3046,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -1608,10 +3057,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -1619,10 +3068,10 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -1630,129 +3079,129 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.presharedKey != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key", r.presharedKey, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key", r.presharedKey, "form", "") } if r.presharedKeyIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__ic", r.presharedKeyIc, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__ic", r.presharedKeyIc, "form", "") } if r.presharedKeyIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__ie", r.presharedKeyIe, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__ie", r.presharedKeyIe, "form", "") } if r.presharedKeyIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__iew", r.presharedKeyIew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__iew", r.presharedKeyIew, "form", "") } if r.presharedKeyIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__isw", r.presharedKeyIsw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__isw", r.presharedKeyIsw, "form", "") } if r.presharedKeyN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__n", r.presharedKeyN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__n", r.presharedKeyN, "form", "") } if r.presharedKeyNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nic", r.presharedKeyNic, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nic", r.presharedKeyNic, "form", "") } if r.presharedKeyNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nie", r.presharedKeyNie, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nie", r.presharedKeyNie, "form", "") } if r.presharedKeyNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__niew", r.presharedKeyNiew, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__niew", r.presharedKeyNiew, "form", "") } if r.presharedKeyNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nisw", r.presharedKeyNisw, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nisw", r.presharedKeyNisw, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } - if r.proposal != nil { - t := *r.proposal + 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, "proposal", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } - if r.proposalN != nil { - t := *r.proposalN + 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, "proposal__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } - if r.proposalId != nil { - t := *r.proposalId + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") + } + if r.version != nil { + t := *r.version if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version", t, "form", "multi") } } - if r.proposalIdN != nil { - t := *r.proposalIdN + if r.versionIc != nil { + t := *r.versionIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ic", t, "form", "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.tag != nil { - t := *r.tag + if r.versionIe != nil { + t := *r.versionIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ie", t, "form", "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.versionIew != nil { + t := *r.versionIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__iew", t, "form", "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.version != nil { - t := *r.version + if r.versionIsw != nil { + t := *r.versionIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "version", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "version", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__isw", t, "form", "multi") } } if r.versionN != nil { @@ -1760,10 +3209,54 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "version__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__n", t, "form", "multi") + } + } + if r.versionNic != nil { + t := *r.versionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nic", t, "form", "multi") + } + } + if r.versionNie != nil { + t := *r.versionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nie", t, "form", "multi") + } + } + if r.versionNiew != nil { + t := *r.versionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "version__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__niew", t, "form", "multi") + } + } + if r.versionNisw != nil { + t := *r.versionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nisw", t, "form", "multi") } } // to determine the Content-Type header @@ -1835,9 +3328,9 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest } type ApiVpnIkePoliciesPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableIKEPolicyRequest *PatchedWritableIKEPolicyRequest } @@ -1855,27 +3348,26 @@ VpnIkePoliciesPartialUpdate Method for VpnIkePoliciesPartialUpdate Patch a IKE policy object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IKE policy. - @return ApiVpnIkePoliciesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesPartialUpdateRequest */ func (a *VpnAPIService) VpnIkePoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesPartialUpdateRequest { return ApiVpnIkePoliciesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IKEPolicy +// @return IKEPolicy func (a *VpnAPIService) VpnIkePoliciesPartialUpdateExecute(r ApiVpnIkePoliciesPartialUpdateRequest) (*IKEPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEPolicy + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesPartialUpdate") @@ -1961,9 +3453,9 @@ func (a *VpnAPIService) VpnIkePoliciesPartialUpdateExecute(r ApiVpnIkePoliciesPa } type ApiVpnIkePoliciesRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIkePoliciesRetrieveRequest) Execute() (*IKEPolicy, *http.Response, error) { @@ -1975,27 +3467,26 @@ VpnIkePoliciesRetrieve Method for VpnIkePoliciesRetrieve Get a IKE policy object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IKE policy. - @return ApiVpnIkePoliciesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesRetrieveRequest */ func (a *VpnAPIService) VpnIkePoliciesRetrieve(ctx context.Context, id int32) ApiVpnIkePoliciesRetrieveRequest { return ApiVpnIkePoliciesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IKEPolicy +// @return IKEPolicy func (a *VpnAPIService) VpnIkePoliciesRetrieveExecute(r ApiVpnIkePoliciesRetrieveRequest) (*IKEPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEPolicy + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesRetrieve") @@ -2079,9 +3570,9 @@ func (a *VpnAPIService) VpnIkePoliciesRetrieveExecute(r ApiVpnIkePoliciesRetriev } type ApiVpnIkePoliciesUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableIKEPolicyRequest *WritableIKEPolicyRequest } @@ -2099,27 +3590,26 @@ VpnIkePoliciesUpdate Method for VpnIkePoliciesUpdate Put a IKE policy object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IKE policy. - @return ApiVpnIkePoliciesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE policy. + @return ApiVpnIkePoliciesUpdateRequest */ func (a *VpnAPIService) VpnIkePoliciesUpdate(ctx context.Context, id int32) ApiVpnIkePoliciesUpdateRequest { return ApiVpnIkePoliciesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IKEPolicy +// @return IKEPolicy func (a *VpnAPIService) VpnIkePoliciesUpdateExecute(r ApiVpnIkePoliciesUpdateRequest) (*IKEPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEPolicy + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkePoliciesUpdate") @@ -2208,8 +3698,8 @@ func (a *VpnAPIService) VpnIkePoliciesUpdateExecute(r ApiVpnIkePoliciesUpdateReq } type ApiVpnIkeProposalsBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iKEProposalRequest *[]IKEProposalRequest } @@ -2227,22 +3717,22 @@ VpnIkeProposalsBulkDestroy Method for VpnIkeProposalsBulkDestroy Delete a list of IKE proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkeProposalsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsBulkDestroyRequest */ func (a *VpnAPIService) VpnIkeProposalsBulkDestroy(ctx context.Context) ApiVpnIkeProposalsBulkDestroyRequest { return ApiVpnIkeProposalsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnIkeProposalsBulkDestroyExecute(r ApiVpnIkeProposalsBulkDestroyRequest) (*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, "VpnAPIService.VpnIkeProposalsBulkDestroy") @@ -2321,8 +3811,8 @@ func (a *VpnAPIService) VpnIkeProposalsBulkDestroyExecute(r ApiVpnIkeProposalsBu } type ApiVpnIkeProposalsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iKEProposalRequest *[]IKEProposalRequest } @@ -2340,25 +3830,24 @@ VpnIkeProposalsBulkPartialUpdate Method for VpnIkeProposalsBulkPartialUpdate Patch a list of IKE proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkeProposalsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIkeProposalsBulkPartialUpdateRequest { return ApiVpnIkeProposalsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IKEProposal +// @return []IKEProposal func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdateExecute(r ApiVpnIkeProposalsBulkPartialUpdateRequest) ([]IKEProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IKEProposal + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IKEProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkPartialUpdate") @@ -2446,8 +3935,8 @@ func (a *VpnAPIService) VpnIkeProposalsBulkPartialUpdateExecute(r ApiVpnIkePropo } type ApiVpnIkeProposalsBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iKEProposalRequest *[]IKEProposalRequest } @@ -2465,25 +3954,24 @@ VpnIkeProposalsBulkUpdate Method for VpnIkeProposalsBulkUpdate Put a list of IKE proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkeProposalsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsBulkUpdateRequest */ func (a *VpnAPIService) VpnIkeProposalsBulkUpdate(ctx context.Context) ApiVpnIkeProposalsBulkUpdateRequest { return ApiVpnIkeProposalsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IKEProposal +// @return []IKEProposal func (a *VpnAPIService) VpnIkeProposalsBulkUpdateExecute(r ApiVpnIkeProposalsBulkUpdateRequest) ([]IKEProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IKEProposal + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IKEProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsBulkUpdate") @@ -2571,8 +4059,8 @@ func (a *VpnAPIService) VpnIkeProposalsBulkUpdateExecute(r ApiVpnIkeProposalsBul } type ApiVpnIkeProposalsCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI writableIKEProposalRequest *WritableIKEProposalRequest } @@ -2590,25 +4078,24 @@ VpnIkeProposalsCreate Method for VpnIkeProposalsCreate Post a list of IKE proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkeProposalsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsCreateRequest */ func (a *VpnAPIService) VpnIkeProposalsCreate(ctx context.Context) ApiVpnIkeProposalsCreateRequest { return ApiVpnIkeProposalsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IKEProposal +// @return IKEProposal func (a *VpnAPIService) VpnIkeProposalsCreateExecute(r ApiVpnIkeProposalsCreateRequest) (*IKEProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEProposal + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsCreate") @@ -2696,9 +4183,9 @@ func (a *VpnAPIService) VpnIkeProposalsCreateExecute(r ApiVpnIkeProposalsCreateR } type ApiVpnIkeProposalsDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIkeProposalsDestroyRequest) Execute() (*http.Response, error) { @@ -2710,24 +4197,24 @@ VpnIkeProposalsDestroy Method for VpnIkeProposalsDestroy Delete a IKE proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IKE proposal. - @return ApiVpnIkeProposalsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsDestroyRequest */ func (a *VpnAPIService) VpnIkeProposalsDestroy(ctx context.Context, id int32) ApiVpnIkeProposalsDestroyRequest { return ApiVpnIkeProposalsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestroyRequest) (*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, "VpnAPIService.VpnIkeProposalsDestroy") @@ -2802,101 +4289,226 @@ func (a *VpnAPIService) VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestro } type ApiVpnIkeProposalsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - authenticationAlgorithm *[]string - authenticationAlgorithmN *[]string - authenticationMethod *[]string - authenticationMethodN *[]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 - encryptionAlgorithm *[]string - encryptionAlgorithmN *[]string - group *[]int32 - groupN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - ikePolicy *[]string - ikePolicyN *[]string - ikePolicyId *[]int32 - ikePolicyIdN *[]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 - saLifetime *[]int32 - saLifetimeEmpty *bool - saLifetimeGt *[]int32 - saLifetimeGte *[]int32 - saLifetimeLt *[]int32 - saLifetimeLte *[]int32 - saLifetimeN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string -} - -func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []string) ApiVpnIkeProposalsListRequest { + ctx context.Context + ApiService VpnAPI + authenticationAlgorithm *[]*string + authenticationAlgorithmEmpty *bool + authenticationAlgorithmIc *[]*string + authenticationAlgorithmIe *[]*string + authenticationAlgorithmIew *[]*string + authenticationAlgorithmIsw *[]*string + authenticationAlgorithmN *[]*string + authenticationAlgorithmNic *[]*string + authenticationAlgorithmNie *[]*string + authenticationAlgorithmNiew *[]*string + authenticationAlgorithmNisw *[]*string + authenticationMethod *[]string + authenticationMethodEmpty *bool + authenticationMethodIc *[]string + authenticationMethodIe *[]string + authenticationMethodIew *[]string + authenticationMethodIsw *[]string + authenticationMethodN *[]string + authenticationMethodNic *[]string + authenticationMethodNie *[]string + authenticationMethodNiew *[]string + authenticationMethodNisw *[]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 + encryptionAlgorithm *[]string + encryptionAlgorithmEmpty *bool + encryptionAlgorithmIc *[]string + encryptionAlgorithmIe *[]string + encryptionAlgorithmIew *[]string + encryptionAlgorithmIsw *[]string + encryptionAlgorithmN *[]string + encryptionAlgorithmNic *[]string + encryptionAlgorithmNie *[]string + encryptionAlgorithmNiew *[]string + encryptionAlgorithmNisw *[]string + group *[]int32 + groupIc *[]int32 + groupIe *[]int32 + groupIew *[]int32 + groupIsw *[]int32 + groupN *[]int32 + groupNic *[]int32 + groupNie *[]int32 + groupNiew *[]int32 + groupNisw *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + ikePolicy *[]string + ikePolicyN *[]string + ikePolicyId *[]int32 + ikePolicyIdN *[]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 + saLifetime *[]int32 + saLifetimeEmpty *bool + saLifetimeGt *[]int32 + saLifetimeGte *[]int32 + saLifetimeLt *[]int32 + saLifetimeLte *[]int32 + saLifetimeN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []*string) ApiVpnIkeProposalsListRequest { r.authenticationAlgorithm = &authenticationAlgorithm return r } -func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []string) ApiVpnIkeProposalsListRequest { +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty bool) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmEmpty = &authenticationAlgorithmEmpty + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIc(authenticationAlgorithmIc []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIc = &authenticationAlgorithmIc + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIe(authenticationAlgorithmIe []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIe = &authenticationAlgorithmIe + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIew(authenticationAlgorithmIew []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIew = &authenticationAlgorithmIew + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIsw(authenticationAlgorithmIsw []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIsw = &authenticationAlgorithmIsw + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []*string) ApiVpnIkeProposalsListRequest { r.authenticationAlgorithmN = &authenticationAlgorithmN return r } +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNic(authenticationAlgorithmNic []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNic = &authenticationAlgorithmNic + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNie(authenticationAlgorithmNie []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNie = &authenticationAlgorithmNie + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNiew(authenticationAlgorithmNiew []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNiew = &authenticationAlgorithmNiew + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNisw(authenticationAlgorithmNisw []*string) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNisw = &authenticationAlgorithmNisw + return r +} + func (r ApiVpnIkeProposalsListRequest) AuthenticationMethod(authenticationMethod []string) ApiVpnIkeProposalsListRequest { r.authenticationMethod = &authenticationMethod return r } +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodEmpty(authenticationMethodEmpty bool) ApiVpnIkeProposalsListRequest { + r.authenticationMethodEmpty = &authenticationMethodEmpty + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIc(authenticationMethodIc []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIc = &authenticationMethodIc + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIe(authenticationMethodIe []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIe = &authenticationMethodIe + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIew(authenticationMethodIew []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIew = &authenticationMethodIew + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIsw(authenticationMethodIsw []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIsw = &authenticationMethodIsw + return r +} + func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodN(authenticationMethodN []string) ApiVpnIkeProposalsListRequest { r.authenticationMethodN = &authenticationMethodN return r } +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNic(authenticationMethodNic []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNic = &authenticationMethodNic + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNie(authenticationMethodNie []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNie = &authenticationMethodNie + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNiew(authenticationMethodNiew []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNiew = &authenticationMethodNiew + return r +} + +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNisw(authenticationMethodNisw []string) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNisw = &authenticationMethodNisw + return r +} + func (r ApiVpnIkeProposalsListRequest) Created(created []time.Time) ApiVpnIkeProposalsListRequest { r.created = &created return r @@ -2997,23 +4609,116 @@ func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithm(encryptionAlgorithm [ return r } +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty bool) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmEmpty = &encryptionAlgorithmEmpty + return r +} + +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIc(encryptionAlgorithmIc []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIc = &encryptionAlgorithmIc + return r +} + +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIe(encryptionAlgorithmIe []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIe = &encryptionAlgorithmIe + return r +} + +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIew(encryptionAlgorithmIew []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIew = &encryptionAlgorithmIew + return r +} + +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIsw(encryptionAlgorithmIsw []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIsw = &encryptionAlgorithmIsw + return r +} + func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []string) ApiVpnIkeProposalsListRequest { r.encryptionAlgorithmN = &encryptionAlgorithmN return r } +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNic(encryptionAlgorithmNic []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNic = &encryptionAlgorithmNic + return r +} + +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNie(encryptionAlgorithmNie []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNie = &encryptionAlgorithmNie + return r +} + +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNiew(encryptionAlgorithmNiew []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNiew = &encryptionAlgorithmNiew + return r +} + +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNisw(encryptionAlgorithmNisw []string) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNisw = &encryptionAlgorithmNisw + return r +} + // Diffie-Hellman group ID func (r ApiVpnIkeProposalsListRequest) Group(group []int32) ApiVpnIkeProposalsListRequest { r.group = &group return r } +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupIc(groupIc []int32) ApiVpnIkeProposalsListRequest { + r.groupIc = &groupIc + return r +} + +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupIe(groupIe []int32) ApiVpnIkeProposalsListRequest { + r.groupIe = &groupIe + return r +} + +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupIew(groupIew []int32) ApiVpnIkeProposalsListRequest { + r.groupIew = &groupIew + return r +} + +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupIsw(groupIsw []int32) ApiVpnIkeProposalsListRequest { + r.groupIsw = &groupIsw + return r +} + // Diffie-Hellman group ID func (r ApiVpnIkeProposalsListRequest) GroupN(groupN []int32) ApiVpnIkeProposalsListRequest { r.groupN = &groupN return r } +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupNic(groupNic []int32) ApiVpnIkeProposalsListRequest { + r.groupNic = &groupNic + return r +} + +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupNie(groupNie []int32) ApiVpnIkeProposalsListRequest { + r.groupNie = &groupNie + return r +} + +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupNiew(groupNiew []int32) ApiVpnIkeProposalsListRequest { + r.groupNiew = &groupNiew + return r +} + +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) GroupNisw(groupNisw []int32) ApiVpnIkeProposalsListRequest { + r.groupNisw = &groupNisw + return r +} + func (r ApiVpnIkeProposalsListRequest) Id(id []int32) ApiVpnIkeProposalsListRequest { r.id = &id return r @@ -3251,47 +4956,93 @@ VpnIkeProposalsList Method for VpnIkeProposalsList Get a list of IKE proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIkeProposalsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIkeProposalsListRequest */ func (a *VpnAPIService) VpnIkeProposalsList(ctx context.Context) ApiVpnIkeProposalsListRequest { return ApiVpnIkeProposalsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedIKEProposalList +func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListRequest) (*PaginatedIKEProposalList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIKEProposalList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/vpn/ike-proposals/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.authenticationAlgorithm != nil { + t := *r.authenticationAlgorithm + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "form", "multi") + } + } + if r.authenticationAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__empty", r.authenticationAlgorithmEmpty, "form", "") + } + if r.authenticationAlgorithmIc != nil { + t := *r.authenticationAlgorithmIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", t, "form", "multi") + } + } + if r.authenticationAlgorithmIe != nil { + t := *r.authenticationAlgorithmIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", t, "form", "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedIKEProposalList -func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListRequest) (*PaginatedIKEProposalList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIKEProposalList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.authenticationAlgorithmIew != nil { + t := *r.authenticationAlgorithmIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", t, "form", "multi") + } } - - localVarPath := localBasePath + "/api/vpn/ike-proposals/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.authenticationAlgorithm != nil { - t := *r.authenticationAlgorithm + if r.authenticationAlgorithmIsw != nil { + t := *r.authenticationAlgorithmIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", t, "form", "multi") } } if r.authenticationAlgorithmN != nil { @@ -3299,269 +5050,583 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "form", "multi") + } + } + if r.authenticationAlgorithmNic != nil { + t := *r.authenticationAlgorithmNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", t, "form", "multi") + } + } + if r.authenticationAlgorithmNie != nil { + t := *r.authenticationAlgorithmNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", t, "form", "multi") + } + } + if r.authenticationAlgorithmNiew != nil { + t := *r.authenticationAlgorithmNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", t, "form", "multi") + } + } + if r.authenticationAlgorithmNisw != nil { + t := *r.authenticationAlgorithmNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", t, "form", "multi") + } + } + if r.authenticationMethod != nil { + t := *r.authenticationMethod + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method", t, "form", "multi") + } + } + if r.authenticationMethodEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__empty", r.authenticationMethodEmpty, "form", "") + } + if r.authenticationMethodIc != nil { + t := *r.authenticationMethodIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ic", t, "form", "multi") + } + } + if r.authenticationMethodIe != nil { + t := *r.authenticationMethodIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ie", t, "form", "multi") + } + } + if r.authenticationMethodIew != nil { + t := *r.authenticationMethodIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__iew", t, "form", "multi") + } + } + if r.authenticationMethodIsw != nil { + t := *r.authenticationMethodIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__isw", t, "form", "multi") + } + } + if r.authenticationMethodN != nil { + t := *r.authenticationMethodN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__n", t, "form", "multi") + } + } + if r.authenticationMethodNic != nil { + t := *r.authenticationMethodNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nic", t, "form", "multi") + } + } + if r.authenticationMethodNie != nil { + t := *r.authenticationMethodNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nie", t, "form", "multi") + } + } + if r.authenticationMethodNiew != nil { + t := *r.authenticationMethodNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__niew", t, "form", "multi") + } + } + if r.authenticationMethodNisw != nil { + t := *r.authenticationMethodNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.authenticationMethod != nil { - t := *r.authenticationMethod + 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, "authentication_method", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.authenticationMethodN != nil { - t := *r.authenticationMethodN + 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, "authentication_method__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.created != nil { - t := *r.created + 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, "created", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.encryptionAlgorithm != nil { + t := *r.encryptionAlgorithm 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.encryptionAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__empty", r.encryptionAlgorithmEmpty, "form", "") + } + if r.encryptionAlgorithmIc != nil { + t := *r.encryptionAlgorithmIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + if r.encryptionAlgorithmIe != nil { + t := *r.encryptionAlgorithmIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + if r.encryptionAlgorithmIew != nil { + t := *r.encryptionAlgorithmIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + if r.encryptionAlgorithmIsw != nil { + t := *r.encryptionAlgorithmIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.encryptionAlgorithmN != nil { + t := *r.encryptionAlgorithmN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description + if r.encryptionAlgorithmNic != nil { + t := *r.encryptionAlgorithmNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc + if r.encryptionAlgorithmNie != nil { + t := *r.encryptionAlgorithmNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.encryptionAlgorithmNiew != nil { + t := *r.encryptionAlgorithmNiew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.encryptionAlgorithmNisw != nil { + t := *r.encryptionAlgorithmNisw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.group != nil { + t := *r.group 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.groupIc != nil { + t := *r.groupIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ic", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.groupIe != nil { + t := *r.groupIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ie", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.groupIew != nil { + t := *r.groupIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__iew", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.groupIsw != nil { + t := *r.groupIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__isw", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.groupN != nil { + t := *r.groupN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } - if r.encryptionAlgorithm != nil { - t := *r.encryptionAlgorithm + if r.groupNic != nil { + t := *r.groupNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nic", t, "form", "multi") } } - if r.encryptionAlgorithmN != nil { - t := *r.encryptionAlgorithmN + if r.groupNie != nil { + t := *r.groupNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nie", t, "form", "multi") } } - if r.group != nil { - t := *r.group + if r.groupNiew != nil { + t := *r.groupNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__niew", t, "form", "multi") } } - if r.groupN != nil { - t := *r.groupN + if r.groupNisw != nil { + t := *r.groupNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nisw", t, "form", "multi") } } if r.id != nil { @@ -3569,24 +5634,24 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -3594,10 +5659,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -3605,10 +5670,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -3616,10 +5681,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -3627,10 +5692,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.ikePolicy != nil { @@ -3638,10 +5703,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", t, "form", "multi") } } if r.ikePolicyN != nil { @@ -3649,10 +5714,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", t, "form", "multi") } } if r.ikePolicyId != nil { @@ -3660,10 +5725,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", t, "form", "multi") } } if r.ikePolicyIdN != nil { @@ -3671,10 +5736,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -3682,10 +5747,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -3693,10 +5758,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -3704,10 +5769,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -3715,10 +5780,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -3726,10 +5791,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -3737,10 +5802,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -3748,41 +5813,41 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -3790,10 +5855,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -3801,10 +5866,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -3812,10 +5877,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -3823,10 +5888,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -3834,10 +5899,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -3845,10 +5910,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -3856,10 +5921,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -3867,44 +5932,44 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.saLifetime != nil { t := *r.saLifetime if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime", t, "form", "multi") } } if r.saLifetimeEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__empty", r.saLifetimeEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__empty", r.saLifetimeEmpty, "form", "") } if r.saLifetimeGt != nil { t := *r.saLifetimeGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gt", t, "form", "multi") } } if r.saLifetimeGte != nil { @@ -3912,10 +5977,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__gte", t, "form", "multi") } } if r.saLifetimeLt != nil { @@ -3923,10 +5988,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lt", t, "form", "multi") } } if r.saLifetimeLte != nil { @@ -3934,10 +5999,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__lte", t, "form", "multi") } } if r.saLifetimeN != nil { @@ -3945,10 +6010,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime__n", t, "form", "multi") } } if r.tag != nil { @@ -3956,10 +6021,10 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -3967,14 +6032,14 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4045,9 +6110,9 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque } type ApiVpnIkeProposalsPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableIKEProposalRequest *PatchedWritableIKEProposalRequest } @@ -4065,27 +6130,26 @@ VpnIkeProposalsPartialUpdate Method for VpnIkeProposalsPartialUpdate Patch a IKE proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IKE proposal. - @return ApiVpnIkeProposalsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsPartialUpdateRequest */ func (a *VpnAPIService) VpnIkeProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsPartialUpdateRequest { return ApiVpnIkeProposalsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IKEProposal +// @return IKEProposal func (a *VpnAPIService) VpnIkeProposalsPartialUpdateExecute(r ApiVpnIkeProposalsPartialUpdateRequest) (*IKEProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEProposal + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsPartialUpdate") @@ -4171,9 +6235,9 @@ func (a *VpnAPIService) VpnIkeProposalsPartialUpdateExecute(r ApiVpnIkeProposals } type ApiVpnIkeProposalsRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIkeProposalsRetrieveRequest) Execute() (*IKEProposal, *http.Response, error) { @@ -4185,27 +6249,26 @@ VpnIkeProposalsRetrieve Method for VpnIkeProposalsRetrieve Get a IKE proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IKE proposal. - @return ApiVpnIkeProposalsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsRetrieveRequest */ func (a *VpnAPIService) VpnIkeProposalsRetrieve(ctx context.Context, id int32) ApiVpnIkeProposalsRetrieveRequest { return ApiVpnIkeProposalsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IKEProposal +// @return IKEProposal func (a *VpnAPIService) VpnIkeProposalsRetrieveExecute(r ApiVpnIkeProposalsRetrieveRequest) (*IKEProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEProposal + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsRetrieve") @@ -4289,9 +6352,9 @@ func (a *VpnAPIService) VpnIkeProposalsRetrieveExecute(r ApiVpnIkeProposalsRetri } type ApiVpnIkeProposalsUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableIKEProposalRequest *WritableIKEProposalRequest } @@ -4309,27 +6372,26 @@ VpnIkeProposalsUpdate Method for VpnIkeProposalsUpdate Put a IKE proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IKE proposal. - @return ApiVpnIkeProposalsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IKE proposal. + @return ApiVpnIkeProposalsUpdateRequest */ func (a *VpnAPIService) VpnIkeProposalsUpdate(ctx context.Context, id int32) ApiVpnIkeProposalsUpdateRequest { return ApiVpnIkeProposalsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IKEProposal +// @return IKEProposal func (a *VpnAPIService) VpnIkeProposalsUpdateExecute(r ApiVpnIkeProposalsUpdateRequest) (*IKEProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IKEProposal + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IKEProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIkeProposalsUpdate") @@ -4418,8 +6480,8 @@ func (a *VpnAPIService) VpnIkeProposalsUpdateExecute(r ApiVpnIkeProposalsUpdateR } type ApiVpnIpsecPoliciesBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecPolicyRequest *[]IPSecPolicyRequest } @@ -4437,22 +6499,22 @@ VpnIpsecPoliciesBulkDestroy Method for VpnIpsecPoliciesBulkDestroy Delete a list of IPSec policy objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecPoliciesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesBulkDestroyRequest */ func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroy(ctx context.Context) ApiVpnIpsecPoliciesBulkDestroyRequest { return ApiVpnIpsecPoliciesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroyExecute(r ApiVpnIpsecPoliciesBulkDestroyRequest) (*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, "VpnAPIService.VpnIpsecPoliciesBulkDestroy") @@ -4531,8 +6593,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesBulkDestroyExecute(r ApiVpnIpsecPolicies } type ApiVpnIpsecPoliciesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecPolicyRequest *[]IPSecPolicyRequest } @@ -4550,25 +6612,24 @@ VpnIpsecPoliciesBulkPartialUpdate Method for VpnIpsecPoliciesBulkPartialUpdate Patch a list of IPSec policy objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkPartialUpdateRequest { return ApiVpnIpsecPoliciesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPSecPolicy +// @return []IPSecPolicy func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdateExecute(r ApiVpnIpsecPoliciesBulkPartialUpdateRequest) ([]IPSecPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPSecPolicy + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPSecPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkPartialUpdate") @@ -4656,8 +6717,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesBulkPartialUpdateExecute(r ApiVpnIpsecPo } type ApiVpnIpsecPoliciesBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecPolicyRequest *[]IPSecPolicyRequest } @@ -4675,25 +6736,24 @@ VpnIpsecPoliciesBulkUpdate Method for VpnIpsecPoliciesBulkUpdate Put a list of IPSec policy objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecPoliciesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesBulkUpdateRequest */ func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdate(ctx context.Context) ApiVpnIpsecPoliciesBulkUpdateRequest { return ApiVpnIpsecPoliciesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPSecPolicy +// @return []IPSecPolicy func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdateExecute(r ApiVpnIpsecPoliciesBulkUpdateRequest) ([]IPSecPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPSecPolicy + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPSecPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesBulkUpdate") @@ -4781,8 +6841,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesBulkUpdateExecute(r ApiVpnIpsecPoliciesB } type ApiVpnIpsecPoliciesCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI writableIPSecPolicyRequest *WritableIPSecPolicyRequest } @@ -4800,25 +6860,24 @@ VpnIpsecPoliciesCreate Method for VpnIpsecPoliciesCreate Post a list of IPSec policy objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecPoliciesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesCreateRequest */ func (a *VpnAPIService) VpnIpsecPoliciesCreate(ctx context.Context) ApiVpnIpsecPoliciesCreateRequest { return ApiVpnIpsecPoliciesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IPSecPolicy +// @return IPSecPolicy func (a *VpnAPIService) VpnIpsecPoliciesCreateExecute(r ApiVpnIpsecPoliciesCreateRequest) (*IPSecPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecPolicy + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesCreate") @@ -4906,9 +6965,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesCreateExecute(r ApiVpnIpsecPoliciesCreat } type ApiVpnIpsecPoliciesDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIpsecPoliciesDestroyRequest) Execute() (*http.Response, error) { @@ -4920,24 +6979,24 @@ VpnIpsecPoliciesDestroy Method for VpnIpsecPoliciesDestroy Delete a IPSec policy object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec policy. - @return ApiVpnIpsecPoliciesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec policy. + @return ApiVpnIpsecPoliciesDestroyRequest */ func (a *VpnAPIService) VpnIpsecPoliciesDestroy(ctx context.Context, id int32) ApiVpnIpsecPoliciesDestroyRequest { return ApiVpnIpsecPoliciesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnIpsecPoliciesDestroyExecute(r ApiVpnIpsecPoliciesDestroyRequest) (*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, "VpnAPIService.VpnIpsecPoliciesDestroy") @@ -5012,70 +7071,74 @@ func (a *VpnAPIService) VpnIpsecPoliciesDestroyExecute(r ApiVpnIpsecPoliciesDest } type ApiVpnIpsecPoliciesListRequest struct { - ctx context.Context - ApiService *VpnAPIService - 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 - ipsecProposal *[]string - ipsecProposalN *[]string - ipsecProposalId *[]int32 - ipsecProposalIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 + ctx context.Context + ApiService VpnAPI + 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 + ipsecProposal *[]string + ipsecProposalN *[]string + ipsecProposalId *[]int32 + ipsecProposalIdN *[]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 - pfsGroup *[]*int32 - pfsGroupN *[]*int32 - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 - q *string - tag *[]string - tagN *[]string - updatedByRequest *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 + pfsGroup *[]*int32 + pfsGroupIc *[]*int32 + pfsGroupIe *[]*int32 + pfsGroupIew *[]*int32 + pfsGroupIsw *[]*int32 + pfsGroupN *[]*int32 + pfsGroupNic *[]*int32 + pfsGroupNie *[]*int32 + pfsGroupNiew *[]*int32 + pfsGroupNisw *[]*int32 + q *string + tag *[]string + tagN *[]string + updatedByRequest *string } func (r ApiVpnIpsecPoliciesListRequest) Created(created []time.Time) ApiVpnIpsecPoliciesListRequest { @@ -5347,29 +7410,57 @@ func (r ApiVpnIpsecPoliciesListRequest) PfsGroup(pfsGroup []*int32) ApiVpnIpsecP return r } +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIc(pfsGroupIc []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIc = &pfsGroupIc + return r +} + +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIe(pfsGroupIe []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIe = &pfsGroupIe + return r +} + +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIew(pfsGroupIew []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIew = &pfsGroupIew + return r +} + +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIsw(pfsGroupIsw []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIsw = &pfsGroupIsw + return r +} + // Diffie-Hellman group for Perfect Forward Secrecy func (r ApiVpnIpsecPoliciesListRequest) PfsGroupN(pfsGroupN []*int32) ApiVpnIpsecPoliciesListRequest { r.pfsGroupN = &pfsGroupN return r } -func (r ApiVpnIpsecPoliciesListRequest) Proposal(proposal []string) ApiVpnIpsecPoliciesListRequest { - r.proposal = &proposal +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNic(pfsGroupNic []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNic = &pfsGroupNic return r } -func (r ApiVpnIpsecPoliciesListRequest) ProposalN(proposalN []string) ApiVpnIpsecPoliciesListRequest { - r.proposalN = &proposalN +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNie(pfsGroupNie []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNie = &pfsGroupNie return r } -func (r ApiVpnIpsecPoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalId = &proposalId +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNiew(pfsGroupNiew []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNiew = &pfsGroupNiew return r } -func (r ApiVpnIpsecPoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalIdN = &proposalIdN +// Diffie-Hellman group for Perfect Forward Secrecy +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNisw(pfsGroupNisw []*int32) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNisw = &pfsGroupNisw return r } @@ -5403,25 +7494,24 @@ VpnIpsecPoliciesList Method for VpnIpsecPoliciesList Get a list of IPSec policy objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecPoliciesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecPoliciesListRequest */ func (a *VpnAPIService) VpnIpsecPoliciesList(ctx context.Context) ApiVpnIpsecPoliciesListRequest { return ApiVpnIpsecPoliciesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedIPSecPolicyList +// @return PaginatedIPSecPolicyList func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListRequest) (*PaginatedIPSecPolicyList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIPSecPolicyList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIPSecPolicyList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesList") @@ -5440,10 +7530,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -5451,10 +7541,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -5462,10 +7552,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -5473,10 +7563,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -5484,10 +7574,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -5495,10 +7585,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -5506,38 +7596,38 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -5545,10 +7635,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -5556,10 +7646,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -5567,10 +7657,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -5578,10 +7668,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -5589,10 +7679,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -5600,10 +7690,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -5611,10 +7701,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -5622,10 +7712,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -5633,24 +7723,24 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -5658,10 +7748,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -5669,10 +7759,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -5680,10 +7770,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -5691,10 +7781,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.ipsecProposal != nil { @@ -5702,10 +7792,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal", t, "form", "multi") } } if r.ipsecProposalN != nil { @@ -5713,10 +7803,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal__n", t, "form", "multi") } } if r.ipsecProposalId != nil { @@ -5724,10 +7814,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id", t, "form", "multi") } } if r.ipsecProposalIdN != nil { @@ -5735,10 +7825,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_proposal_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -5746,10 +7836,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -5757,10 +7847,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -5768,10 +7858,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -5779,10 +7869,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -5790,10 +7880,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -5801,10 +7891,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -5812,41 +7902,41 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -5854,10 +7944,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -5865,10 +7955,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -5876,10 +7966,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -5887,10 +7977,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -5898,10 +7988,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -5909,10 +7999,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -5920,10 +8010,10 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -5931,27 +8021,71 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.pfsGroup != nil { t := *r.pfsGroup if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group", t, "form", "multi") + } + } + if r.pfsGroupIc != nil { + t := *r.pfsGroupIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ic", t, "form", "multi") + } + } + if r.pfsGroupIe != nil { + t := *r.pfsGroupIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ie", t, "form", "multi") + } + } + if r.pfsGroupIew != nil { + t := *r.pfsGroupIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__iew", t, "form", "multi") + } + } + if r.pfsGroupIsw != nil { + t := *r.pfsGroupIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__isw", t, "form", "multi") } } if r.pfsGroupN != nil { @@ -5959,68 +8093,68 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", t, "form", "multi") } } - if r.proposal != nil { - t := *r.proposal + if r.pfsGroupNic != nil { + t := *r.pfsGroupNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nic", t, "form", "multi") } } - if r.proposalN != nil { - t := *r.proposalN + if r.pfsGroupNie != nil { + t := *r.pfsGroupNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nie", t, "form", "multi") } } - if r.proposalId != nil { - t := *r.proposalId + if r.pfsGroupNiew != nil { + t := *r.pfsGroupNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__niew", t, "form", "multi") } } - if r.proposalIdN != nil { - t := *r.proposalIdN + if r.pfsGroupNisw != nil { + t := *r.pfsGroupNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nisw", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -6028,14 +8162,14 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6106,9 +8240,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq } type ApiVpnIpsecPoliciesPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableIPSecPolicyRequest *PatchedWritableIPSecPolicyRequest } @@ -6126,27 +8260,26 @@ VpnIpsecPoliciesPartialUpdate Method for VpnIpsecPoliciesPartialUpdate Patch a IPSec policy object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec policy. - @return ApiVpnIpsecPoliciesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec policy. + @return ApiVpnIpsecPoliciesPartialUpdateRequest */ func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesPartialUpdateRequest { return ApiVpnIpsecPoliciesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecPolicy +// @return IPSecPolicy func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdateExecute(r ApiVpnIpsecPoliciesPartialUpdateRequest) (*IPSecPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecPolicy + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesPartialUpdate") @@ -6232,9 +8365,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesPartialUpdateExecute(r ApiVpnIpsecPolici } type ApiVpnIpsecPoliciesRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIpsecPoliciesRetrieveRequest) Execute() (*IPSecPolicy, *http.Response, error) { @@ -6246,27 +8379,26 @@ VpnIpsecPoliciesRetrieve Method for VpnIpsecPoliciesRetrieve Get a IPSec policy object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec policy. - @return ApiVpnIpsecPoliciesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec policy. + @return ApiVpnIpsecPoliciesRetrieveRequest */ func (a *VpnAPIService) VpnIpsecPoliciesRetrieve(ctx context.Context, id int32) ApiVpnIpsecPoliciesRetrieveRequest { return ApiVpnIpsecPoliciesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecPolicy +// @return IPSecPolicy func (a *VpnAPIService) VpnIpsecPoliciesRetrieveExecute(r ApiVpnIpsecPoliciesRetrieveRequest) (*IPSecPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecPolicy + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesRetrieve") @@ -6350,9 +8482,9 @@ func (a *VpnAPIService) VpnIpsecPoliciesRetrieveExecute(r ApiVpnIpsecPoliciesRet } type ApiVpnIpsecPoliciesUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableIPSecPolicyRequest *WritableIPSecPolicyRequest } @@ -6370,27 +8502,26 @@ VpnIpsecPoliciesUpdate Method for VpnIpsecPoliciesUpdate Put a IPSec policy object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec policy. - @return ApiVpnIpsecPoliciesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec policy. + @return ApiVpnIpsecPoliciesUpdateRequest */ func (a *VpnAPIService) VpnIpsecPoliciesUpdate(ctx context.Context, id int32) ApiVpnIpsecPoliciesUpdateRequest { return ApiVpnIpsecPoliciesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecPolicy +// @return IPSecPolicy func (a *VpnAPIService) VpnIpsecPoliciesUpdateExecute(r ApiVpnIpsecPoliciesUpdateRequest) (*IPSecPolicy, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecPolicy + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecPolicy ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecPoliciesUpdate") @@ -6479,8 +8610,8 @@ func (a *VpnAPIService) VpnIpsecPoliciesUpdateExecute(r ApiVpnIpsecPoliciesUpdat } type ApiVpnIpsecProfilesBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecProfileRequest *[]IPSecProfileRequest } @@ -6498,22 +8629,22 @@ VpnIpsecProfilesBulkDestroy Method for VpnIpsecProfilesBulkDestroy Delete a list of IPSec profile objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProfilesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesBulkDestroyRequest */ func (a *VpnAPIService) VpnIpsecProfilesBulkDestroy(ctx context.Context) ApiVpnIpsecProfilesBulkDestroyRequest { return ApiVpnIpsecProfilesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnIpsecProfilesBulkDestroyExecute(r ApiVpnIpsecProfilesBulkDestroyRequest) (*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, "VpnAPIService.VpnIpsecProfilesBulkDestroy") @@ -6592,8 +8723,8 @@ func (a *VpnAPIService) VpnIpsecProfilesBulkDestroyExecute(r ApiVpnIpsecProfiles } type ApiVpnIpsecProfilesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecProfileRequest *[]IPSecProfileRequest } @@ -6611,25 +8742,24 @@ VpnIpsecProfilesBulkPartialUpdate Method for VpnIpsecProfilesBulkPartialUpdate Patch a list of IPSec profile objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProfilesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkPartialUpdateRequest { return ApiVpnIpsecProfilesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPSecProfile +// @return []IPSecProfile func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdateExecute(r ApiVpnIpsecProfilesBulkPartialUpdateRequest) ([]IPSecProfile, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPSecProfile + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPSecProfile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkPartialUpdate") @@ -6717,8 +8847,8 @@ func (a *VpnAPIService) VpnIpsecProfilesBulkPartialUpdateExecute(r ApiVpnIpsecPr } type ApiVpnIpsecProfilesBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecProfileRequest *[]IPSecProfileRequest } @@ -6736,25 +8866,24 @@ VpnIpsecProfilesBulkUpdate Method for VpnIpsecProfilesBulkUpdate Put a list of IPSec profile objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProfilesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesBulkUpdateRequest */ func (a *VpnAPIService) VpnIpsecProfilesBulkUpdate(ctx context.Context) ApiVpnIpsecProfilesBulkUpdateRequest { return ApiVpnIpsecProfilesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPSecProfile +// @return []IPSecProfile func (a *VpnAPIService) VpnIpsecProfilesBulkUpdateExecute(r ApiVpnIpsecProfilesBulkUpdateRequest) ([]IPSecProfile, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPSecProfile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPSecProfile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesBulkUpdate") @@ -6842,8 +8971,8 @@ func (a *VpnAPIService) VpnIpsecProfilesBulkUpdateExecute(r ApiVpnIpsecProfilesB } type ApiVpnIpsecProfilesCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI writableIPSecProfileRequest *WritableIPSecProfileRequest } @@ -6861,25 +8990,24 @@ VpnIpsecProfilesCreate Method for VpnIpsecProfilesCreate Post a list of IPSec profile objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProfilesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesCreateRequest */ func (a *VpnAPIService) VpnIpsecProfilesCreate(ctx context.Context) ApiVpnIpsecProfilesCreateRequest { return ApiVpnIpsecProfilesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IPSecProfile +// @return IPSecProfile func (a *VpnAPIService) VpnIpsecProfilesCreateExecute(r ApiVpnIpsecProfilesCreateRequest) (*IPSecProfile, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProfile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProfile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesCreate") @@ -6967,9 +9095,9 @@ func (a *VpnAPIService) VpnIpsecProfilesCreateExecute(r ApiVpnIpsecProfilesCreat } type ApiVpnIpsecProfilesDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIpsecProfilesDestroyRequest) Execute() (*http.Response, error) { @@ -6981,24 +9109,24 @@ VpnIpsecProfilesDestroy Method for VpnIpsecProfilesDestroy Delete a IPSec profile object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec profile. - @return ApiVpnIpsecProfilesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec profile. + @return ApiVpnIpsecProfilesDestroyRequest */ func (a *VpnAPIService) VpnIpsecProfilesDestroy(ctx context.Context, id int32) ApiVpnIpsecProfilesDestroyRequest { return ApiVpnIpsecProfilesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnIpsecProfilesDestroyExecute(r ApiVpnIpsecProfilesDestroyRequest) (*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, "VpnAPIService.VpnIpsecProfilesDestroy") @@ -7073,70 +9201,79 @@ func (a *VpnAPIService) VpnIpsecProfilesDestroyExecute(r ApiVpnIpsecProfilesDest } type ApiVpnIpsecProfilesListRequest struct { - ctx context.Context - ApiService *VpnAPIService - 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 - ikePolicy *[]string - ikePolicyN *[]string - ikePolicyId *[]int32 - ikePolicyIdN *[]int32 - ipsecPolicy *[]string - ipsecPolicyN *[]string - ipsecPolicyId *[]int32 - ipsecPolicyIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - mode *[]string - modeN *[]string + ctx context.Context + ApiService VpnAPI + 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 + ikePolicy *[]string + ikePolicyN *[]string + ikePolicyId *[]int32 + ikePolicyIdN *[]int32 + ipsecPolicy *[]string + ipsecPolicyN *[]string + ipsecPolicyId *[]int32 + ipsecPolicyIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + mode *[]string + modeEmpty *bool + modeIc *[]string + modeIe *[]string + modeIew *[]string + modeIsw *[]string + modeN *[]string + modeNic *[]string + modeNie *[]string + modeNiew *[]string + modeNisw *[]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 - q *string - tag *[]string - tagN *[]string - updatedByRequest *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 + updatedByRequest *string } func (r ApiVpnIpsecProfilesListRequest) Created(created []time.Time) ApiVpnIpsecProfilesListRequest { @@ -7363,11 +9500,56 @@ func (r ApiVpnIpsecProfilesListRequest) Mode(mode []string) ApiVpnIpsecProfilesL return r } +func (r ApiVpnIpsecProfilesListRequest) ModeEmpty(modeEmpty bool) ApiVpnIpsecProfilesListRequest { + r.modeEmpty = &modeEmpty + return r +} + +func (r ApiVpnIpsecProfilesListRequest) ModeIc(modeIc []string) ApiVpnIpsecProfilesListRequest { + r.modeIc = &modeIc + return r +} + +func (r ApiVpnIpsecProfilesListRequest) ModeIe(modeIe []string) ApiVpnIpsecProfilesListRequest { + r.modeIe = &modeIe + return r +} + +func (r ApiVpnIpsecProfilesListRequest) ModeIew(modeIew []string) ApiVpnIpsecProfilesListRequest { + r.modeIew = &modeIew + return r +} + +func (r ApiVpnIpsecProfilesListRequest) ModeIsw(modeIsw []string) ApiVpnIpsecProfilesListRequest { + r.modeIsw = &modeIsw + return r +} + func (r ApiVpnIpsecProfilesListRequest) ModeN(modeN []string) ApiVpnIpsecProfilesListRequest { r.modeN = &modeN return r } +func (r ApiVpnIpsecProfilesListRequest) ModeNic(modeNic []string) ApiVpnIpsecProfilesListRequest { + r.modeNic = &modeNic + return r +} + +func (r ApiVpnIpsecProfilesListRequest) ModeNie(modeNie []string) ApiVpnIpsecProfilesListRequest { + r.modeNie = &modeNie + return r +} + +func (r ApiVpnIpsecProfilesListRequest) ModeNiew(modeNiew []string) ApiVpnIpsecProfilesListRequest { + r.modeNiew = &modeNiew + return r +} + +func (r ApiVpnIpsecProfilesListRequest) ModeNisw(modeNisw []string) ApiVpnIpsecProfilesListRequest { + r.modeNisw = &modeNisw + return r +} + func (r ApiVpnIpsecProfilesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIpsecProfilesListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -7470,25 +9652,24 @@ VpnIpsecProfilesList Method for VpnIpsecProfilesList Get a list of IPSec profile objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProfilesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProfilesListRequest */ func (a *VpnAPIService) VpnIpsecProfilesList(ctx context.Context) ApiVpnIpsecProfilesListRequest { return ApiVpnIpsecProfilesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedIPSecProfileList +// @return PaginatedIPSecProfileList func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListRequest) (*PaginatedIPSecProfileList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIPSecProfileList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIPSecProfileList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesList") @@ -7507,10 +9688,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -7518,10 +9699,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -7529,10 +9710,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -7540,10 +9721,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -7551,10 +9732,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -7562,10 +9743,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -7573,38 +9754,38 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -7612,10 +9793,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -7623,10 +9804,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -7634,10 +9815,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -7645,10 +9826,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -7656,10 +9837,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -7667,10 +9848,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -7678,10 +9859,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -7689,10 +9870,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -7700,24 +9881,24 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -7725,10 +9906,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -7736,10 +9917,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -7747,10 +9928,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -7758,10 +9939,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.ikePolicy != nil { @@ -7769,10 +9950,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy", t, "form", "multi") } } if r.ikePolicyN != nil { @@ -7780,10 +9961,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy__n", t, "form", "multi") } } if r.ikePolicyId != nil { @@ -7791,195 +9972,286 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", t, "form", "multi") + } + } + if r.ikePolicyIdN != nil { + t := *r.ikePolicyIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", t, "form", "multi") + } + } + if r.ipsecPolicy != nil { + t := *r.ipsecPolicy + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", t, "form", "multi") + } + } + if r.ipsecPolicyN != nil { + t := *r.ipsecPolicyN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", t, "form", "multi") + } + } + if r.ipsecPolicyId != nil { + t := *r.ipsecPolicyId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", t, "form", "multi") + } + } + if r.ipsecPolicyIdN != nil { + t := *r.ipsecPolicyIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } - if r.ikePolicyIdN != nil { - t := *r.ikePolicyIdN + 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, "ike_policy_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ike_policy_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.ipsecPolicy != nil { - t := *r.ipsecPolicy + 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, "ipsec_policy", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.ipsecPolicyN != nil { - t := *r.ipsecPolicyN + 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, "ipsec_policy__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.ipsecPolicyId != nil { - t := *r.ipsecPolicyId + 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, "ipsec_policy_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.ipsecPolicyIdN != nil { - t := *r.ipsecPolicyIdN + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.mode != nil { + t := *r.mode if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.modeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__empty", r.modeEmpty, "form", "") + } + if r.modeIc != nil { + t := *r.modeIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.modeIe != nil { + t := *r.modeIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.modeIew != nil { + t := *r.modeIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.modeIsw != nil { + t := *r.modeIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.modeN != nil { + t := *r.modeN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.modeNic != nil { + t := *r.modeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.modeNie != nil { + t := *r.modeNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", t, "form", "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.mode != nil { - t := *r.mode + if r.modeNiew != nil { + t := *r.modeNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", t, "form", "multi") } } - if r.modeN != nil { - t := *r.modeN + if r.modeNisw != nil { + t := *r.modeNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", t, "form", "multi") } } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -7987,10 +10259,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -7998,10 +10270,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -8009,10 +10281,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -8020,10 +10292,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -8031,10 +10303,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -8042,10 +10314,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -8053,10 +10325,10 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -8064,30 +10336,30 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -8095,14 +10367,14 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -8173,9 +10445,9 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq } type ApiVpnIpsecProfilesPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableIPSecProfileRequest *PatchedWritableIPSecProfileRequest } @@ -8193,27 +10465,26 @@ VpnIpsecProfilesPartialUpdate Method for VpnIpsecProfilesPartialUpdate Patch a IPSec profile object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec profile. - @return ApiVpnIpsecProfilesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec profile. + @return ApiVpnIpsecProfilesPartialUpdateRequest */ func (a *VpnAPIService) VpnIpsecProfilesPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesPartialUpdateRequest { return ApiVpnIpsecProfilesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecProfile +// @return IPSecProfile func (a *VpnAPIService) VpnIpsecProfilesPartialUpdateExecute(r ApiVpnIpsecProfilesPartialUpdateRequest) (*IPSecProfile, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProfile + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProfile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesPartialUpdate") @@ -8299,9 +10570,9 @@ func (a *VpnAPIService) VpnIpsecProfilesPartialUpdateExecute(r ApiVpnIpsecProfil } type ApiVpnIpsecProfilesRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIpsecProfilesRetrieveRequest) Execute() (*IPSecProfile, *http.Response, error) { @@ -8313,27 +10584,26 @@ VpnIpsecProfilesRetrieve Method for VpnIpsecProfilesRetrieve Get a IPSec profile object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec profile. - @return ApiVpnIpsecProfilesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec profile. + @return ApiVpnIpsecProfilesRetrieveRequest */ func (a *VpnAPIService) VpnIpsecProfilesRetrieve(ctx context.Context, id int32) ApiVpnIpsecProfilesRetrieveRequest { return ApiVpnIpsecProfilesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecProfile +// @return IPSecProfile func (a *VpnAPIService) VpnIpsecProfilesRetrieveExecute(r ApiVpnIpsecProfilesRetrieveRequest) (*IPSecProfile, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProfile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProfile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesRetrieve") @@ -8417,9 +10687,9 @@ func (a *VpnAPIService) VpnIpsecProfilesRetrieveExecute(r ApiVpnIpsecProfilesRet } type ApiVpnIpsecProfilesUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableIPSecProfileRequest *WritableIPSecProfileRequest } @@ -8437,27 +10707,26 @@ VpnIpsecProfilesUpdate Method for VpnIpsecProfilesUpdate Put a IPSec profile object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec profile. - @return ApiVpnIpsecProfilesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec profile. + @return ApiVpnIpsecProfilesUpdateRequest */ func (a *VpnAPIService) VpnIpsecProfilesUpdate(ctx context.Context, id int32) ApiVpnIpsecProfilesUpdateRequest { return ApiVpnIpsecProfilesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecProfile +// @return IPSecProfile func (a *VpnAPIService) VpnIpsecProfilesUpdateExecute(r ApiVpnIpsecProfilesUpdateRequest) (*IPSecProfile, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProfile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProfile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProfilesUpdate") @@ -8546,8 +10815,8 @@ func (a *VpnAPIService) VpnIpsecProfilesUpdateExecute(r ApiVpnIpsecProfilesUpdat } type ApiVpnIpsecProposalsBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecProposalRequest *[]IPSecProposalRequest } @@ -8565,22 +10834,22 @@ VpnIpsecProposalsBulkDestroy Method for VpnIpsecProposalsBulkDestroy Delete a list of IPSec proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProposalsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsBulkDestroyRequest */ func (a *VpnAPIService) VpnIpsecProposalsBulkDestroy(ctx context.Context) ApiVpnIpsecProposalsBulkDestroyRequest { return ApiVpnIpsecProposalsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnIpsecProposalsBulkDestroyExecute(r ApiVpnIpsecProposalsBulkDestroyRequest) (*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, "VpnAPIService.VpnIpsecProposalsBulkDestroy") @@ -8659,8 +10928,8 @@ func (a *VpnAPIService) VpnIpsecProposalsBulkDestroyExecute(r ApiVpnIpsecProposa } type ApiVpnIpsecProposalsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecProposalRequest *[]IPSecProposalRequest } @@ -8678,25 +10947,24 @@ VpnIpsecProposalsBulkPartialUpdate Method for VpnIpsecProposalsBulkPartialUpdate Patch a list of IPSec proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProposalsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkPartialUpdateRequest { return ApiVpnIpsecProposalsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPSecProposal +// @return []IPSecProposal func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdateExecute(r ApiVpnIpsecProposalsBulkPartialUpdateRequest) ([]IPSecProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPSecProposal + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPSecProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkPartialUpdate") @@ -8784,8 +11052,8 @@ func (a *VpnAPIService) VpnIpsecProposalsBulkPartialUpdateExecute(r ApiVpnIpsecP } type ApiVpnIpsecProposalsBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI iPSecProposalRequest *[]IPSecProposalRequest } @@ -8803,25 +11071,24 @@ VpnIpsecProposalsBulkUpdate Method for VpnIpsecProposalsBulkUpdate Put a list of IPSec proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProposalsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsBulkUpdateRequest */ func (a *VpnAPIService) VpnIpsecProposalsBulkUpdate(ctx context.Context) ApiVpnIpsecProposalsBulkUpdateRequest { return ApiVpnIpsecProposalsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPSecProposal +// @return []IPSecProposal func (a *VpnAPIService) VpnIpsecProposalsBulkUpdateExecute(r ApiVpnIpsecProposalsBulkUpdateRequest) ([]IPSecProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPSecProposal + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPSecProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsBulkUpdate") @@ -8909,8 +11176,8 @@ func (a *VpnAPIService) VpnIpsecProposalsBulkUpdateExecute(r ApiVpnIpsecProposal } type ApiVpnIpsecProposalsCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI writableIPSecProposalRequest *WritableIPSecProposalRequest } @@ -8928,25 +11195,24 @@ VpnIpsecProposalsCreate Method for VpnIpsecProposalsCreate Post a list of IPSec proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProposalsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsCreateRequest */ func (a *VpnAPIService) VpnIpsecProposalsCreate(ctx context.Context) ApiVpnIpsecProposalsCreateRequest { return ApiVpnIpsecProposalsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IPSecProposal +// @return IPSecProposal func (a *VpnAPIService) VpnIpsecProposalsCreateExecute(r ApiVpnIpsecProposalsCreateRequest) (*IPSecProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProposal + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsCreate") @@ -9034,9 +11300,9 @@ func (a *VpnAPIService) VpnIpsecProposalsCreateExecute(r ApiVpnIpsecProposalsCre } type ApiVpnIpsecProposalsDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIpsecProposalsDestroyRequest) Execute() (*http.Response, error) { @@ -9048,24 +11314,24 @@ VpnIpsecProposalsDestroy Method for VpnIpsecProposalsDestroy Delete a IPSec proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec proposal. - @return ApiVpnIpsecProposalsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec proposal. + @return ApiVpnIpsecProposalsDestroyRequest */ func (a *VpnAPIService) VpnIpsecProposalsDestroy(ctx context.Context, id int32) ApiVpnIpsecProposalsDestroyRequest { return ApiVpnIpsecProposalsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDestroyRequest) (*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, "VpnAPIService.VpnIpsecProposalsDestroy") @@ -9140,94 +11406,157 @@ func (a *VpnAPIService) VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDe } type ApiVpnIpsecProposalsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - authenticationAlgorithm *[]string - authenticationAlgorithmN *[]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 - encryptionAlgorithm *[]string - encryptionAlgorithmN *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - ipsecPolicy *[]string - ipsecPolicyN *[]string - ipsecPolicyId *[]int32 - ipsecPolicyIdN *[]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 - saLifetimeData *[]int32 - saLifetimeDataEmpty *bool - saLifetimeDataGt *[]int32 - saLifetimeDataGte *[]int32 - saLifetimeDataLt *[]int32 - saLifetimeDataLte *[]int32 - saLifetimeDataN *[]int32 - saLifetimeSeconds *[]int32 - saLifetimeSecondsEmpty *bool - saLifetimeSecondsGt *[]int32 - saLifetimeSecondsGte *[]int32 - saLifetimeSecondsLt *[]int32 - saLifetimeSecondsLte *[]int32 - saLifetimeSecondsN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string -} - -func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []string) ApiVpnIpsecProposalsListRequest { + ctx context.Context + ApiService VpnAPI + authenticationAlgorithm *[]*string + authenticationAlgorithmEmpty *bool + authenticationAlgorithmIc *[]*string + authenticationAlgorithmIe *[]*string + authenticationAlgorithmIew *[]*string + authenticationAlgorithmIsw *[]*string + authenticationAlgorithmN *[]*string + authenticationAlgorithmNic *[]*string + authenticationAlgorithmNie *[]*string + authenticationAlgorithmNiew *[]*string + authenticationAlgorithmNisw *[]*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 + encryptionAlgorithm *[]*string + encryptionAlgorithmEmpty *bool + encryptionAlgorithmIc *[]*string + encryptionAlgorithmIe *[]*string + encryptionAlgorithmIew *[]*string + encryptionAlgorithmIsw *[]*string + encryptionAlgorithmN *[]*string + encryptionAlgorithmNic *[]*string + encryptionAlgorithmNie *[]*string + encryptionAlgorithmNiew *[]*string + encryptionAlgorithmNisw *[]*string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + ipsecPolicy *[]string + ipsecPolicyN *[]string + ipsecPolicyId *[]int32 + ipsecPolicyIdN *[]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 + saLifetimeData *[]int32 + saLifetimeDataEmpty *bool + saLifetimeDataGt *[]int32 + saLifetimeDataGte *[]int32 + saLifetimeDataLt *[]int32 + saLifetimeDataLte *[]int32 + saLifetimeDataN *[]int32 + saLifetimeSeconds *[]int32 + saLifetimeSecondsEmpty *bool + saLifetimeSecondsGt *[]int32 + saLifetimeSecondsGte *[]int32 + saLifetimeSecondsLt *[]int32 + saLifetimeSecondsLte *[]int32 + saLifetimeSecondsN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []*string) ApiVpnIpsecProposalsListRequest { r.authenticationAlgorithm = &authenticationAlgorithm return r } -func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []string) ApiVpnIpsecProposalsListRequest { +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty bool) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmEmpty = &authenticationAlgorithmEmpty + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIc(authenticationAlgorithmIc []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIc = &authenticationAlgorithmIc + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIe(authenticationAlgorithmIe []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIe = &authenticationAlgorithmIe + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIew(authenticationAlgorithmIew []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIew = &authenticationAlgorithmIew + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIsw(authenticationAlgorithmIsw []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIsw = &authenticationAlgorithmIsw + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []*string) ApiVpnIpsecProposalsListRequest { r.authenticationAlgorithmN = &authenticationAlgorithmN return r } +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNic(authenticationAlgorithmNic []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNic = &authenticationAlgorithmNic + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNie(authenticationAlgorithmNie []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNie = &authenticationAlgorithmNie + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNiew(authenticationAlgorithmNiew []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNiew = &authenticationAlgorithmNiew + return r +} + +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNisw(authenticationAlgorithmNisw []*string) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNisw = &authenticationAlgorithmNisw + return r +} + func (r ApiVpnIpsecProposalsListRequest) Created(created []time.Time) ApiVpnIpsecProposalsListRequest { r.created = &created return r @@ -9323,16 +11652,61 @@ func (r ApiVpnIpsecProposalsListRequest) DescriptionNisw(descriptionNisw []strin return r } -func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithm(encryptionAlgorithm []string) ApiVpnIpsecProposalsListRequest { +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithm(encryptionAlgorithm []*string) ApiVpnIpsecProposalsListRequest { r.encryptionAlgorithm = &encryptionAlgorithm return r } -func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []string) ApiVpnIpsecProposalsListRequest { +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty bool) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmEmpty = &encryptionAlgorithmEmpty + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIc(encryptionAlgorithmIc []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIc = &encryptionAlgorithmIc + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIe(encryptionAlgorithmIe []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIe = &encryptionAlgorithmIe + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIew(encryptionAlgorithmIew []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIew = &encryptionAlgorithmIew + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIsw(encryptionAlgorithmIsw []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIsw = &encryptionAlgorithmIsw + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []*string) ApiVpnIpsecProposalsListRequest { r.encryptionAlgorithmN = &encryptionAlgorithmN return r } +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNic(encryptionAlgorithmNic []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNic = &encryptionAlgorithmNic + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNie(encryptionAlgorithmNie []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNie = &encryptionAlgorithmNie + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNiew(encryptionAlgorithmNiew []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNiew = &encryptionAlgorithmNiew + return r +} + +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNisw(encryptionAlgorithmNisw []*string) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNisw = &encryptionAlgorithmNisw + return r +} + func (r ApiVpnIpsecProposalsListRequest) Id(id []int32) ApiVpnIpsecProposalsListRequest { r.id = &id return r @@ -9605,25 +11979,24 @@ VpnIpsecProposalsList Method for VpnIpsecProposalsList Get a list of IPSec proposal objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnIpsecProposalsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnIpsecProposalsListRequest */ func (a *VpnAPIService) VpnIpsecProposalsList(ctx context.Context) ApiVpnIpsecProposalsListRequest { return ApiVpnIpsecProposalsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedIPSecProposalList +// @return PaginatedIPSecProposalList func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListRequest) (*PaginatedIPSecProposalList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIPSecProposalList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIPSecProposalList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsList") @@ -9642,10 +12015,57 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "form", "multi") + } + } + if r.authenticationAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__empty", r.authenticationAlgorithmEmpty, "form", "") + } + if r.authenticationAlgorithmIc != nil { + t := *r.authenticationAlgorithmIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", t, "form", "multi") + } + } + if r.authenticationAlgorithmIe != nil { + t := *r.authenticationAlgorithmIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", t, "form", "multi") + } + } + if r.authenticationAlgorithmIew != nil { + t := *r.authenticationAlgorithmIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", t, "form", "multi") + } + } + if r.authenticationAlgorithmIsw != nil { + t := *r.authenticationAlgorithmIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", t, "form", "multi") } } if r.authenticationAlgorithmN != nil { @@ -9653,10 +12073,54 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "form", "multi") + } + } + if r.authenticationAlgorithmNic != nil { + t := *r.authenticationAlgorithmNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", t, "form", "multi") + } + } + if r.authenticationAlgorithmNie != nil { + t := *r.authenticationAlgorithmNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", t, "form", "multi") + } + } + if r.authenticationAlgorithmNiew != nil { + t := *r.authenticationAlgorithmNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", t, "form", "multi") + } + } + if r.authenticationAlgorithmNisw != nil { + t := *r.authenticationAlgorithmNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", t, "form", "multi") } } if r.created != nil { @@ -9664,10 +12128,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -9675,10 +12139,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -9686,192 +12150,283 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description + 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", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc + 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__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + if r.encryptionAlgorithm != nil { + t := *r.encryptionAlgorithm 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.encryptionAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__empty", r.encryptionAlgorithmEmpty, "form", "") + } + if r.encryptionAlgorithmIc != nil { + t := *r.encryptionAlgorithmIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + if r.encryptionAlgorithmIe != nil { + t := *r.encryptionAlgorithmIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + if r.encryptionAlgorithmIew != nil { + t := *r.encryptionAlgorithmIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + if r.encryptionAlgorithmIsw != nil { + t := *r.encryptionAlgorithmIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.encryptionAlgorithmN != nil { + t := *r.encryptionAlgorithmN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.encryptionAlgorithmNic != nil { + t := *r.encryptionAlgorithmNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.encryptionAlgorithmNie != nil { + t := *r.encryptionAlgorithmNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", t, "form", "multi") } } - if r.encryptionAlgorithm != nil { - t := *r.encryptionAlgorithm + if r.encryptionAlgorithmNiew != nil { + t := *r.encryptionAlgorithmNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", t, "form", "multi") } } - if r.encryptionAlgorithmN != nil { - t := *r.encryptionAlgorithmN + if r.encryptionAlgorithmNisw != nil { + t := *r.encryptionAlgorithmNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", t, "form", "multi") } } if r.id != nil { @@ -9879,24 +12434,24 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -9904,10 +12459,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -9915,10 +12470,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -9926,10 +12481,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -9937,10 +12492,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.ipsecPolicy != nil { @@ -9948,10 +12503,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy", t, "form", "multi") } } if r.ipsecPolicyN != nil { @@ -9959,10 +12514,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy__n", t, "form", "multi") } } if r.ipsecPolicyId != nil { @@ -9970,10 +12525,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", t, "form", "multi") } } if r.ipsecPolicyIdN != nil { @@ -9981,10 +12536,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -9992,10 +12547,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -10003,10 +12558,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -10014,10 +12569,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -10025,10 +12580,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -10036,10 +12591,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -10047,10 +12602,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -10058,41 +12613,41 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -10100,10 +12655,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -10111,10 +12666,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -10122,10 +12677,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -10133,10 +12688,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -10144,10 +12699,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -10155,10 +12710,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -10166,10 +12721,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -10177,44 +12732,44 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.saLifetimeData != nil { t := *r.saLifetimeData if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data", t, "form", "multi") } } if r.saLifetimeDataEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__empty", r.saLifetimeDataEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__empty", r.saLifetimeDataEmpty, "form", "") } if r.saLifetimeDataGt != nil { t := *r.saLifetimeDataGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gt", t, "form", "multi") } } if r.saLifetimeDataGte != nil { @@ -10222,10 +12777,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__gte", t, "form", "multi") } } if r.saLifetimeDataLt != nil { @@ -10233,10 +12788,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lt", t, "form", "multi") } } if r.saLifetimeDataLte != nil { @@ -10244,10 +12799,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__lte", t, "form", "multi") } } if r.saLifetimeDataN != nil { @@ -10255,10 +12810,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_data__n", t, "form", "multi") } } if r.saLifetimeSeconds != nil { @@ -10266,24 +12821,24 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds", t, "form", "multi") } } if r.saLifetimeSecondsEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__empty", r.saLifetimeSecondsEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__empty", r.saLifetimeSecondsEmpty, "form", "") } if r.saLifetimeSecondsGt != nil { t := *r.saLifetimeSecondsGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gt", t, "form", "multi") } } if r.saLifetimeSecondsGte != nil { @@ -10291,10 +12846,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__gte", t, "form", "multi") } } if r.saLifetimeSecondsLt != nil { @@ -10302,10 +12857,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lt", t, "form", "multi") } } if r.saLifetimeSecondsLte != nil { @@ -10313,10 +12868,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__lte", t, "form", "multi") } } if r.saLifetimeSecondsN != nil { @@ -10324,10 +12879,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "sa_lifetime_seconds__n", t, "form", "multi") } } if r.tag != nil { @@ -10335,10 +12890,10 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -10346,14 +12901,14 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10424,9 +12979,9 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR } type ApiVpnIpsecProposalsPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableIPSecProposalRequest *PatchedWritableIPSecProposalRequest } @@ -10444,27 +12999,26 @@ VpnIpsecProposalsPartialUpdate Method for VpnIpsecProposalsPartialUpdate Patch a IPSec proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec proposal. - @return ApiVpnIpsecProposalsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec proposal. + @return ApiVpnIpsecProposalsPartialUpdateRequest */ func (a *VpnAPIService) VpnIpsecProposalsPartialUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsPartialUpdateRequest { return ApiVpnIpsecProposalsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecProposal +// @return IPSecProposal func (a *VpnAPIService) VpnIpsecProposalsPartialUpdateExecute(r ApiVpnIpsecProposalsPartialUpdateRequest) (*IPSecProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProposal + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsPartialUpdate") @@ -10550,9 +13104,9 @@ func (a *VpnAPIService) VpnIpsecProposalsPartialUpdateExecute(r ApiVpnIpsecPropo } type ApiVpnIpsecProposalsRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnIpsecProposalsRetrieveRequest) Execute() (*IPSecProposal, *http.Response, error) { @@ -10564,27 +13118,26 @@ VpnIpsecProposalsRetrieve Method for VpnIpsecProposalsRetrieve Get a IPSec proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec proposal. - @return ApiVpnIpsecProposalsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec proposal. + @return ApiVpnIpsecProposalsRetrieveRequest */ func (a *VpnAPIService) VpnIpsecProposalsRetrieve(ctx context.Context, id int32) ApiVpnIpsecProposalsRetrieveRequest { return ApiVpnIpsecProposalsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecProposal +// @return IPSecProposal func (a *VpnAPIService) VpnIpsecProposalsRetrieveExecute(r ApiVpnIpsecProposalsRetrieveRequest) (*IPSecProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProposal + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsRetrieve") @@ -10668,9 +13221,9 @@ func (a *VpnAPIService) VpnIpsecProposalsRetrieveExecute(r ApiVpnIpsecProposalsR } type ApiVpnIpsecProposalsUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableIPSecProposalRequest *WritableIPSecProposalRequest } @@ -10688,27 +13241,26 @@ VpnIpsecProposalsUpdate Method for VpnIpsecProposalsUpdate Put a IPSec proposal object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IPSec proposal. - @return ApiVpnIpsecProposalsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IPSec proposal. + @return ApiVpnIpsecProposalsUpdateRequest */ func (a *VpnAPIService) VpnIpsecProposalsUpdate(ctx context.Context, id int32) ApiVpnIpsecProposalsUpdateRequest { return ApiVpnIpsecProposalsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPSecProposal +// @return IPSecProposal func (a *VpnAPIService) VpnIpsecProposalsUpdateExecute(r ApiVpnIpsecProposalsUpdateRequest) (*IPSecProposal, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPSecProposal + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPSecProposal ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnIpsecProposalsUpdate") @@ -10797,8 +13349,8 @@ func (a *VpnAPIService) VpnIpsecProposalsUpdateExecute(r ApiVpnIpsecProposalsUpd } type ApiVpnL2vpnTerminationsBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI l2VPNTerminationRequest *[]L2VPNTerminationRequest } @@ -10816,22 +13368,22 @@ VpnL2vpnTerminationsBulkDestroy Method for VpnL2vpnTerminationsBulkDestroy 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 ApiVpnL2vpnTerminationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnTerminationsBulkDestroyRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroy(ctx context.Context) ApiVpnL2vpnTerminationsBulkDestroyRequest { return ApiVpnL2vpnTerminationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroyExecute(r ApiVpnL2vpnTerminationsBulkDestroyRequest) (*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, "VpnAPIService.VpnL2vpnTerminationsBulkDestroy") @@ -10910,8 +13462,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsBulkDestroyExecute(r ApiVpnL2vpnTerm } type ApiVpnL2vpnTerminationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI l2VPNTerminationRequest *[]L2VPNTerminationRequest } @@ -10929,25 +13481,24 @@ VpnL2vpnTerminationsBulkPartialUpdate Method for VpnL2vpnTerminationsBulkPartial 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 ApiVpnL2vpnTerminationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkPartialUpdateRequest { return ApiVpnL2vpnTerminationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPNTermination +// @return []L2VPNTermination func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdateExecute(r ApiVpnL2vpnTerminationsBulkPartialUpdateRequest) ([]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, "VpnAPIService.VpnL2vpnTerminationsBulkPartialUpdate") @@ -11035,8 +13586,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsBulkPartialUpdateExecute(r ApiVpnL2v } type ApiVpnL2vpnTerminationsBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI l2VPNTerminationRequest *[]L2VPNTerminationRequest } @@ -11054,25 +13605,24 @@ VpnL2vpnTerminationsBulkUpdate Method for VpnL2vpnTerminationsBulkUpdate 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 ApiVpnL2vpnTerminationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnTerminationsBulkUpdateRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdate(ctx context.Context) ApiVpnL2vpnTerminationsBulkUpdateRequest { return ApiVpnL2vpnTerminationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPNTermination +// @return []L2VPNTermination func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTerminationsBulkUpdateRequest) ([]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, "VpnAPIService.VpnL2vpnTerminationsBulkUpdate") @@ -11160,8 +13710,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsBulkUpdateExecute(r ApiVpnL2vpnTermi } type ApiVpnL2vpnTerminationsCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI l2VPNTerminationRequest *L2VPNTerminationRequest } @@ -11179,25 +13729,24 @@ VpnL2vpnTerminationsCreate Method for VpnL2vpnTerminationsCreate 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 ApiVpnL2vpnTerminationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnTerminationsCreateRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsCreate(ctx context.Context) ApiVpnL2vpnTerminationsCreateRequest { return ApiVpnL2vpnTerminationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return L2VPNTermination +// @return L2VPNTermination func (a *VpnAPIService) VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminationsCreateRequest) (*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, "VpnAPIService.VpnL2vpnTerminationsCreate") @@ -11285,9 +13834,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsCreateExecute(r ApiVpnL2vpnTerminati } type ApiVpnL2vpnTerminationsDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnL2vpnTerminationsDestroyRequest) Execute() (*http.Response, error) { @@ -11299,24 +13848,24 @@ VpnL2vpnTerminationsDestroy Method for VpnL2vpnTerminationsDestroy 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 ApiVpnL2vpnTerminationsDestroyRequest + @param ctx 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 ApiVpnL2vpnTerminationsDestroyRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiVpnL2vpnTerminationsDestroyRequest { return ApiVpnL2vpnTerminationsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminationsDestroyRequest) (*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, "VpnAPIService.VpnL2vpnTerminationsDestroy") @@ -11391,82 +13940,82 @@ func (a *VpnAPIService) VpnL2vpnTerminationsDestroyExecute(r ApiVpnL2vpnTerminat } type ApiVpnL2vpnTerminationsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - assignedObjectId *[]int32 + ctx context.Context + ApiService VpnAPI + assignedObjectId *[]int32 assignedObjectIdEmpty *bool - assignedObjectIdGt *[]int32 - assignedObjectIdGte *[]int32 - assignedObjectIdLt *[]int32 - assignedObjectIdLte *[]int32 - assignedObjectIdN *[]int32 - assignedObjectType *string - assignedObjectTypeN *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 - 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 + assignedObjectIdGt *[]int32 + assignedObjectIdGte *[]int32 + assignedObjectIdLt *[]int32 + assignedObjectIdLte *[]int32 + assignedObjectIdN *[]int32 + assignedObjectType *string + assignedObjectTypeN *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 + 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 ApiVpnL2vpnTerminationsListRequest) AssignedObjectId(assignedObjectId []int32) ApiVpnL2vpnTerminationsListRequest { @@ -11883,25 +14432,24 @@ VpnL2vpnTerminationsList Method for VpnL2vpnTerminationsList 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 ApiVpnL2vpnTerminationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnTerminationsListRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsList(ctx context.Context) ApiVpnL2vpnTerminationsListRequest { return ApiVpnL2vpnTerminationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedL2VPNTerminationList +// @return PaginatedL2VPNTerminationList func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTerminationsListRequest) (*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, "VpnAPIService.VpnL2vpnTerminationsList") @@ -11920,24 +14468,24 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", t, "form", "multi") } } if r.assignedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__empty", r.assignedObjectIdEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__empty", r.assignedObjectIdEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "form", "multi") } } if r.assignedObjectIdGte != nil { @@ -11945,10 +14493,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "form", "multi") } } if r.assignedObjectIdLt != nil { @@ -11956,10 +14504,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "form", "multi") } } if r.assignedObjectIdLte != nil { @@ -11967,10 +14515,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "form", "multi") } } if r.assignedObjectIdN != nil { @@ -11978,27 +14526,27 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "form", "multi") } } if r.assignedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type", r.assignedObjectType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type", r.assignedObjectType, "form", "") } if r.assignedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type__n", r.assignedObjectTypeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type__n", r.assignedObjectTypeN, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -12006,10 +14554,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -12017,10 +14565,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -12028,10 +14576,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -12039,10 +14587,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -12050,10 +14598,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -12061,24 +14609,24 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } if r.device != nil { t := *r.device if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "form", "multi") } } if r.deviceN != nil { @@ -12086,10 +14634,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "form", "multi") } } if r.deviceId != nil { @@ -12097,10 +14645,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "form", "multi") } } if r.deviceIdN != nil { @@ -12108,10 +14656,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "form", "multi") } } if r.id != nil { @@ -12119,24 +14667,24 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -12144,10 +14692,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -12155,10 +14703,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -12166,10 +14714,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -12177,10 +14725,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.interface_ != nil { @@ -12188,10 +14736,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "form", "multi") } } if r.interfaceN != nil { @@ -12199,10 +14747,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "form", "multi") } } if r.interfaceId != nil { @@ -12210,10 +14758,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") } } if r.interfaceIdN != nil { @@ -12221,10 +14769,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "multi") } } if r.l2vpn != nil { @@ -12232,10 +14780,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "form", "multi") } } if r.l2vpnN != nil { @@ -12243,10 +14791,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "form", "multi") } } if r.l2vpnId != nil { @@ -12254,10 +14802,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "form", "multi") } } if r.l2vpnIdN != nil { @@ -12265,10 +14813,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -12276,10 +14824,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -12287,10 +14835,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -12298,10 +14846,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -12309,10 +14857,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -12320,10 +14868,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -12331,10 +14879,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -12342,36 +14890,36 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } if r.regionId != nil { @@ -12379,10 +14927,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } if r.site != nil { @@ -12390,10 +14938,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } if r.siteId != nil { @@ -12401,10 +14949,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } if r.tag != nil { @@ -12412,10 +14960,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -12423,24 +14971,24 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.virtualMachine != nil { t := *r.virtualMachine 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "form", "multi") } } if r.virtualMachineN != nil { @@ -12448,10 +14996,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "form", "multi") } } if r.virtualMachineId != nil { @@ -12459,10 +15007,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "form", "multi") } } if r.virtualMachineIdN != nil { @@ -12470,10 +15018,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "form", "multi") } } if r.vlan != nil { @@ -12481,10 +15029,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", t, "form", "multi") } } if r.vlanN != nil { @@ -12492,10 +15040,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", t, "form", "multi") } } if r.vlanId != nil { @@ -12503,10 +15051,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "form", "multi") } } if r.vlanIdN != nil { @@ -12514,42 +15062,42 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "form", "multi") } } if r.vlanVid != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid", r.vlanVid, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid", r.vlanVid, "form", "") } if r.vlanVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__empty", r.vlanVidEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__empty", r.vlanVidEmpty, "form", "") } if r.vlanVidGt != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gt", r.vlanVidGt, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gt", r.vlanVidGt, "form", "") } if r.vlanVidGte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gte", r.vlanVidGte, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gte", r.vlanVidGte, "form", "") } if r.vlanVidLt != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lt", r.vlanVidLt, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lt", r.vlanVidLt, "form", "") } if r.vlanVidLte != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lte", r.vlanVidLte, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__lte", r.vlanVidLte, "form", "") } if r.vlanVidN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__n", r.vlanVidN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__n", r.vlanVidN, "form", "") } if r.vminterface != nil { t := *r.vminterface if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "form", "multi") } } if r.vminterfaceN != nil { @@ -12557,10 +15105,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "form", "multi") } } if r.vminterfaceId != nil { @@ -12568,10 +15116,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "form", "multi") } } if r.vminterfaceIdN != nil { @@ -12579,10 +15127,10 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -12654,9 +15202,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsListExecute(r ApiVpnL2vpnTermination } type ApiVpnL2vpnTerminationsPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedL2VPNTerminationRequest *PatchedL2VPNTerminationRequest } @@ -12674,27 +15222,26 @@ VpnL2vpnTerminationsPartialUpdate Method for VpnL2vpnTerminationsPartialUpdate 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 ApiVpnL2vpnTerminationsPartialUpdateRequest + @param ctx 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 ApiVpnL2vpnTerminationsPartialUpdateRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsPartialUpdateRequest { return ApiVpnL2vpnTerminationsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPNTermination +// @return L2VPNTermination func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTerminationsPartialUpdateRequest) (*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, "VpnAPIService.VpnL2vpnTerminationsPartialUpdate") @@ -12780,9 +15327,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsPartialUpdateExecute(r ApiVpnL2vpnTe } type ApiVpnL2vpnTerminationsRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnL2vpnTerminationsRetrieveRequest) Execute() (*L2VPNTermination, *http.Response, error) { @@ -12794,27 +15341,26 @@ VpnL2vpnTerminationsRetrieve Method for VpnL2vpnTerminationsRetrieve 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 ApiVpnL2vpnTerminationsRetrieveRequest + @param ctx 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 ApiVpnL2vpnTerminationsRetrieveRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnTerminationsRetrieveRequest { return ApiVpnL2vpnTerminationsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPNTermination +// @return L2VPNTermination func (a *VpnAPIService) VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTerminationsRetrieveRequest) (*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, "VpnAPIService.VpnL2vpnTerminationsRetrieve") @@ -12898,9 +15444,9 @@ func (a *VpnAPIService) VpnL2vpnTerminationsRetrieveExecute(r ApiVpnL2vpnTermina } type ApiVpnL2vpnTerminationsUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 l2VPNTerminationRequest *L2VPNTerminationRequest } @@ -12918,27 +15464,26 @@ VpnL2vpnTerminationsUpdate Method for VpnL2vpnTerminationsUpdate 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 ApiVpnL2vpnTerminationsUpdateRequest + @param ctx 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 ApiVpnL2vpnTerminationsUpdateRequest */ func (a *VpnAPIService) VpnL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiVpnL2vpnTerminationsUpdateRequest { return ApiVpnL2vpnTerminationsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPNTermination +// @return L2VPNTermination func (a *VpnAPIService) VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminationsUpdateRequest) (*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, "VpnAPIService.VpnL2vpnTerminationsUpdate") @@ -13027,8 +15572,8 @@ func (a *VpnAPIService) VpnL2vpnTerminationsUpdateExecute(r ApiVpnL2vpnTerminati } type ApiVpnL2vpnsBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI l2VPNRequest *[]L2VPNRequest } @@ -13046,22 +15591,22 @@ VpnL2vpnsBulkDestroy Method for VpnL2vpnsBulkDestroy 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 ApiVpnL2vpnsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnsBulkDestroyRequest */ func (a *VpnAPIService) VpnL2vpnsBulkDestroy(ctx context.Context) ApiVpnL2vpnsBulkDestroyRequest { return ApiVpnL2vpnsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnL2vpnsBulkDestroyExecute(r ApiVpnL2vpnsBulkDestroyRequest) (*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, "VpnAPIService.VpnL2vpnsBulkDestroy") @@ -13140,8 +15685,8 @@ func (a *VpnAPIService) VpnL2vpnsBulkDestroyExecute(r ApiVpnL2vpnsBulkDestroyReq } type ApiVpnL2vpnsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI l2VPNRequest *[]L2VPNRequest } @@ -13159,25 +15704,24 @@ VpnL2vpnsBulkPartialUpdate Method for VpnL2vpnsBulkPartialUpdate 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 ApiVpnL2vpnsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnsBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdate(ctx context.Context) ApiVpnL2vpnsBulkPartialUpdateRequest { return ApiVpnL2vpnsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPN +// @return []L2VPN func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdateExecute(r ApiVpnL2vpnsBulkPartialUpdateRequest) ([]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, "VpnAPIService.VpnL2vpnsBulkPartialUpdate") @@ -13265,8 +15809,8 @@ func (a *VpnAPIService) VpnL2vpnsBulkPartialUpdateExecute(r ApiVpnL2vpnsBulkPart } type ApiVpnL2vpnsBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI l2VPNRequest *[]L2VPNRequest } @@ -13284,25 +15828,24 @@ VpnL2vpnsBulkUpdate Method for VpnL2vpnsBulkUpdate 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 ApiVpnL2vpnsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnsBulkUpdateRequest */ func (a *VpnAPIService) VpnL2vpnsBulkUpdate(ctx context.Context) ApiVpnL2vpnsBulkUpdateRequest { return ApiVpnL2vpnsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPN +// @return []L2VPN func (a *VpnAPIService) VpnL2vpnsBulkUpdateExecute(r ApiVpnL2vpnsBulkUpdateRequest) ([]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, "VpnAPIService.VpnL2vpnsBulkUpdate") @@ -13390,8 +15933,8 @@ func (a *VpnAPIService) VpnL2vpnsBulkUpdateExecute(r ApiVpnL2vpnsBulkUpdateReque } type ApiVpnL2vpnsCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI writableL2VPNRequest *WritableL2VPNRequest } @@ -13409,25 +15952,24 @@ VpnL2vpnsCreate Method for VpnL2vpnsCreate 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 ApiVpnL2vpnsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnsCreateRequest */ func (a *VpnAPIService) VpnL2vpnsCreate(ctx context.Context) ApiVpnL2vpnsCreateRequest { return ApiVpnL2vpnsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return L2VPN +// @return L2VPN func (a *VpnAPIService) VpnL2vpnsCreateExecute(r ApiVpnL2vpnsCreateRequest) (*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, "VpnAPIService.VpnL2vpnsCreate") @@ -13515,9 +16057,9 @@ func (a *VpnAPIService) VpnL2vpnsCreateExecute(r ApiVpnL2vpnsCreateRequest) (*L2 } type ApiVpnL2vpnsDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnL2vpnsDestroyRequest) Execute() (*http.Response, error) { @@ -13529,24 +16071,24 @@ VpnL2vpnsDestroy Method for VpnL2vpnsDestroy 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 ApiVpnL2vpnsDestroyRequest + @param ctx 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 ApiVpnL2vpnsDestroyRequest */ func (a *VpnAPIService) VpnL2vpnsDestroy(ctx context.Context, id int32) ApiVpnL2vpnsDestroyRequest { return ApiVpnL2vpnsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnL2vpnsDestroyExecute(r ApiVpnL2vpnsDestroyRequest) (*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, "VpnAPIService.VpnL2vpnsDestroy") @@ -13621,96 +16163,105 @@ func (a *VpnAPIService) VpnL2vpnsDestroyExecute(r ApiVpnL2vpnsDestroyRequest) (* } type ApiVpnL2vpnsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - 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 - 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 + ctx context.Context + ApiService VpnAPI + 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 + 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 + 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 *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string + typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string + updatedByRequest *string } func (r ApiVpnL2vpnsListRequest) Created(created []time.Time) ApiVpnL2vpnsListRequest { @@ -14122,26 +16673,22 @@ func (r ApiVpnL2vpnsListRequest) TenantN(tenantN []string) ApiVpnL2vpnsListReque return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []string) ApiVpnL2vpnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnL2vpnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnL2vpnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnL2vpnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14163,11 +16710,56 @@ func (r ApiVpnL2vpnsListRequest) Type_(type_ []string) ApiVpnL2vpnsListRequest { return r } +func (r ApiVpnL2vpnsListRequest) TypeEmpty(typeEmpty bool) ApiVpnL2vpnsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeIc(typeIc []string) ApiVpnL2vpnsListRequest { + r.typeIc = &typeIc + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeIe(typeIe []string) ApiVpnL2vpnsListRequest { + r.typeIe = &typeIe + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeIew(typeIew []string) ApiVpnL2vpnsListRequest { + r.typeIew = &typeIew + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeIsw(typeIsw []string) ApiVpnL2vpnsListRequest { + r.typeIsw = &typeIsw + return r +} + func (r ApiVpnL2vpnsListRequest) TypeN(typeN []string) ApiVpnL2vpnsListRequest { r.typeN = &typeN return r } +func (r ApiVpnL2vpnsListRequest) TypeNic(typeNic []string) ApiVpnL2vpnsListRequest { + r.typeNic = &typeNic + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeNie(typeNie []string) ApiVpnL2vpnsListRequest { + r.typeNie = &typeNie + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeNiew(typeNiew []string) ApiVpnL2vpnsListRequest { + r.typeNiew = &typeNiew + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeNisw(typeNisw []string) ApiVpnL2vpnsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiVpnL2vpnsListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnL2vpnsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -14182,25 +16774,24 @@ VpnL2vpnsList Method for VpnL2vpnsList 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 ApiVpnL2vpnsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnL2vpnsListRequest */ func (a *VpnAPIService) VpnL2vpnsList(ctx context.Context) ApiVpnL2vpnsListRequest { return ApiVpnL2vpnsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedL2VPNList +// @return PaginatedL2VPNList func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*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, "VpnAPIService.VpnL2vpnsList") @@ -14219,10 +16810,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -14230,10 +16821,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -14241,10 +16832,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -14252,10 +16843,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -14263,10 +16854,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -14274,10 +16865,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -14285,38 +16876,38 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -14324,10 +16915,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -14335,10 +16926,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -14346,10 +16937,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -14357,10 +16948,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -14368,10 +16959,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -14379,10 +16970,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -14390,10 +16981,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -14401,10 +16992,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.exportTarget != nil { @@ -14412,10 +17003,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "form", "multi") } } if r.exportTargetN != nil { @@ -14423,10 +17014,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "form", "multi") } } if r.exportTargetId != nil { @@ -14434,10 +17025,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "form", "multi") } } if r.exportTargetIdN != nil { @@ -14445,10 +17036,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "form", "multi") } } if r.id != nil { @@ -14456,24 +17047,24 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -14481,10 +17072,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -14492,10 +17083,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -14503,10 +17094,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -14514,10 +17105,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.identifier != nil { @@ -14525,24 +17116,24 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", t, "form", "multi") } } if r.identifierEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__empty", r.identifierEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__empty", r.identifierEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", t, "form", "multi") } } if r.identifierGte != nil { @@ -14550,10 +17141,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", t, "form", "multi") } } if r.identifierLt != nil { @@ -14561,10 +17152,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", t, "form", "multi") } } if r.identifierLte != nil { @@ -14572,10 +17163,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", t, "form", "multi") } } if r.identifierN != nil { @@ -14583,10 +17174,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", t, "form", "multi") } } if r.importTarget != nil { @@ -14594,10 +17185,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "form", "multi") } } if r.importTargetN != nil { @@ -14605,10 +17196,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "form", "multi") } } if r.importTargetId != nil { @@ -14616,10 +17207,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "form", "multi") } } if r.importTargetIdN != nil { @@ -14627,10 +17218,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -14638,10 +17229,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -14649,10 +17240,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -14660,10 +17251,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -14671,10 +17262,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -14682,10 +17273,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -14693,10 +17284,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -14704,41 +17295,41 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -14746,10 +17337,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -14757,10 +17348,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -14768,10 +17359,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -14779,10 +17370,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -14790,10 +17381,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -14801,10 +17392,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -14812,10 +17403,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -14823,44 +17414,44 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -14868,10 +17459,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -14879,10 +17470,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -14890,10 +17481,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -14901,10 +17492,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -14912,10 +17503,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -14923,10 +17514,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -14934,10 +17525,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -14945,10 +17536,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -14956,10 +17547,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -14967,10 +17558,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -14978,10 +17569,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -14989,10 +17580,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -15000,10 +17591,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -15011,10 +17602,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -15022,10 +17613,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -15033,10 +17624,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -15044,10 +17635,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -15055,10 +17646,10 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.type_ != nil { @@ -15066,10 +17657,57 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "form", "multi") + } + } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "form", "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "form", "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "form", "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "form", "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "form", "multi") } } if r.typeN != nil { @@ -15077,14 +17715,58 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "form", "multi") + } + } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "form", "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "form", "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "form", "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -15155,9 +17837,9 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina } type ApiVpnL2vpnsPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableL2VPNRequest *PatchedWritableL2VPNRequest } @@ -15175,27 +17857,26 @@ VpnL2vpnsPartialUpdate Method for VpnL2vpnsPartialUpdate 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 ApiVpnL2vpnsPartialUpdateRequest + @param ctx 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 ApiVpnL2vpnsPartialUpdateRequest */ func (a *VpnAPIService) VpnL2vpnsPartialUpdate(ctx context.Context, id int32) ApiVpnL2vpnsPartialUpdateRequest { return ApiVpnL2vpnsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPN +// @return L2VPN func (a *VpnAPIService) VpnL2vpnsPartialUpdateExecute(r ApiVpnL2vpnsPartialUpdateRequest) (*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, "VpnAPIService.VpnL2vpnsPartialUpdate") @@ -15281,9 +17962,9 @@ func (a *VpnAPIService) VpnL2vpnsPartialUpdateExecute(r ApiVpnL2vpnsPartialUpdat } type ApiVpnL2vpnsRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnL2vpnsRetrieveRequest) Execute() (*L2VPN, *http.Response, error) { @@ -15295,27 +17976,26 @@ VpnL2vpnsRetrieve Method for VpnL2vpnsRetrieve 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 ApiVpnL2vpnsRetrieveRequest + @param ctx 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 ApiVpnL2vpnsRetrieveRequest */ func (a *VpnAPIService) VpnL2vpnsRetrieve(ctx context.Context, id int32) ApiVpnL2vpnsRetrieveRequest { return ApiVpnL2vpnsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPN +// @return L2VPN func (a *VpnAPIService) VpnL2vpnsRetrieveExecute(r ApiVpnL2vpnsRetrieveRequest) (*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, "VpnAPIService.VpnL2vpnsRetrieve") @@ -15399,9 +18079,9 @@ func (a *VpnAPIService) VpnL2vpnsRetrieveExecute(r ApiVpnL2vpnsRetrieveRequest) } type ApiVpnL2vpnsUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableL2VPNRequest *WritableL2VPNRequest } @@ -15419,27 +18099,26 @@ VpnL2vpnsUpdate Method for VpnL2vpnsUpdate 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 ApiVpnL2vpnsUpdateRequest + @param ctx 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 ApiVpnL2vpnsUpdateRequest */ func (a *VpnAPIService) VpnL2vpnsUpdate(ctx context.Context, id int32) ApiVpnL2vpnsUpdateRequest { return ApiVpnL2vpnsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPN +// @return L2VPN func (a *VpnAPIService) VpnL2vpnsUpdateExecute(r ApiVpnL2vpnsUpdateRequest) (*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, "VpnAPIService.VpnL2vpnsUpdate") @@ -15528,8 +18207,8 @@ func (a *VpnAPIService) VpnL2vpnsUpdateExecute(r ApiVpnL2vpnsUpdateRequest) (*L2 } type ApiVpnTunnelGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelGroupRequest *[]TunnelGroupRequest } @@ -15547,22 +18226,22 @@ VpnTunnelGroupsBulkDestroy Method for VpnTunnelGroupsBulkDestroy Delete a list of tunnel group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsBulkDestroyRequest */ func (a *VpnAPIService) VpnTunnelGroupsBulkDestroy(ctx context.Context) ApiVpnTunnelGroupsBulkDestroyRequest { return ApiVpnTunnelGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnTunnelGroupsBulkDestroyExecute(r ApiVpnTunnelGroupsBulkDestroyRequest) (*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, "VpnAPIService.VpnTunnelGroupsBulkDestroy") @@ -15641,8 +18320,8 @@ func (a *VpnAPIService) VpnTunnelGroupsBulkDestroyExecute(r ApiVpnTunnelGroupsBu } type ApiVpnTunnelGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelGroupRequest *[]TunnelGroupRequest } @@ -15660,25 +18339,24 @@ VpnTunnelGroupsBulkPartialUpdate Method for VpnTunnelGroupsBulkPartialUpdate Patch a list of tunnel group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkPartialUpdateRequest { return ApiVpnTunnelGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TunnelGroup +// @return []TunnelGroup func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdateExecute(r ApiVpnTunnelGroupsBulkPartialUpdateRequest) ([]TunnelGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TunnelGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TunnelGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkPartialUpdate") @@ -15766,8 +18444,8 @@ func (a *VpnAPIService) VpnTunnelGroupsBulkPartialUpdateExecute(r ApiVpnTunnelGr } type ApiVpnTunnelGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelGroupRequest *[]TunnelGroupRequest } @@ -15785,25 +18463,24 @@ VpnTunnelGroupsBulkUpdate Method for VpnTunnelGroupsBulkUpdate Put a list of tunnel group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsBulkUpdateRequest */ func (a *VpnAPIService) VpnTunnelGroupsBulkUpdate(ctx context.Context) ApiVpnTunnelGroupsBulkUpdateRequest { return ApiVpnTunnelGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TunnelGroup +// @return []TunnelGroup func (a *VpnAPIService) VpnTunnelGroupsBulkUpdateExecute(r ApiVpnTunnelGroupsBulkUpdateRequest) ([]TunnelGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TunnelGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TunnelGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsBulkUpdate") @@ -15891,8 +18568,8 @@ func (a *VpnAPIService) VpnTunnelGroupsBulkUpdateExecute(r ApiVpnTunnelGroupsBul } type ApiVpnTunnelGroupsCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelGroupRequest *TunnelGroupRequest } @@ -15910,25 +18587,24 @@ VpnTunnelGroupsCreate Method for VpnTunnelGroupsCreate Post a list of tunnel group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsCreateRequest */ func (a *VpnAPIService) VpnTunnelGroupsCreate(ctx context.Context) ApiVpnTunnelGroupsCreateRequest { return ApiVpnTunnelGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return TunnelGroup +// @return TunnelGroup func (a *VpnAPIService) VpnTunnelGroupsCreateExecute(r ApiVpnTunnelGroupsCreateRequest) (*TunnelGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsCreate") @@ -16016,9 +18692,9 @@ func (a *VpnAPIService) VpnTunnelGroupsCreateExecute(r ApiVpnTunnelGroupsCreateR } type ApiVpnTunnelGroupsDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnTunnelGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -16030,24 +18706,24 @@ VpnTunnelGroupsDestroy Method for VpnTunnelGroupsDestroy Delete a tunnel 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 tunnel group. - @return ApiVpnTunnelGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel group. + @return ApiVpnTunnelGroupsDestroyRequest */ func (a *VpnAPIService) VpnTunnelGroupsDestroy(ctx context.Context, id int32) ApiVpnTunnelGroupsDestroyRequest { return ApiVpnTunnelGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnTunnelGroupsDestroyExecute(r ApiVpnTunnelGroupsDestroyRequest) (*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, "VpnAPIService.VpnTunnelGroupsDestroy") @@ -16122,71 +18798,71 @@ func (a *VpnAPIService) VpnTunnelGroupsDestroyExecute(r ApiVpnTunnelGroupsDestro } type ApiVpnTunnelGroupsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - 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 + ctx context.Context + ApiService VpnAPI + 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 + 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 } func (r ApiVpnTunnelGroupsListRequest) Created(created []time.Time) ApiVpnTunnelGroupsListRequest { @@ -16517,25 +19193,24 @@ VpnTunnelGroupsList Method for VpnTunnelGroupsList Get a list of tunnel group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelGroupsListRequest */ func (a *VpnAPIService) VpnTunnelGroupsList(ctx context.Context) ApiVpnTunnelGroupsListRequest { return ApiVpnTunnelGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTunnelGroupList +// @return PaginatedTunnelGroupList func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListRequest) (*PaginatedTunnelGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedTunnelGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTunnelGroupList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsList") @@ -16554,10 +19229,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -16565,10 +19240,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -16576,10 +19251,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -16587,10 +19262,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -16598,10 +19273,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -16609,10 +19284,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -16620,38 +19295,38 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -16659,10 +19334,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -16670,10 +19345,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -16681,10 +19356,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -16692,10 +19367,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -16703,10 +19378,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -16714,10 +19389,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -16725,10 +19400,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -16736,10 +19411,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -16747,24 +19422,24 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -16772,10 +19447,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -16783,10 +19458,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -16794,10 +19469,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -16805,10 +19480,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -16816,10 +19491,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -16827,10 +19502,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -16838,10 +19513,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -16849,10 +19524,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -16860,10 +19535,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -16871,10 +19546,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -16882,41 +19557,41 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -16924,10 +19599,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -16935,10 +19610,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -16946,10 +19621,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -16957,10 +19632,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -16968,10 +19643,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -16979,10 +19654,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -16990,10 +19665,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -17001,44 +19676,44 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -17046,10 +19721,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -17057,10 +19732,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -17068,10 +19743,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -17079,10 +19754,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -17090,10 +19765,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -17101,10 +19776,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -17112,10 +19787,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -17123,10 +19798,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -17134,10 +19809,10 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -17145,14 +19820,14 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -17223,9 +19898,9 @@ func (a *VpnAPIService) VpnTunnelGroupsListExecute(r ApiVpnTunnelGroupsListReque } type ApiVpnTunnelGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedTunnelGroupRequest *PatchedTunnelGroupRequest } @@ -17243,27 +19918,26 @@ VpnTunnelGroupsPartialUpdate Method for VpnTunnelGroupsPartialUpdate Patch a tunnel 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 tunnel group. - @return ApiVpnTunnelGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel group. + @return ApiVpnTunnelGroupsPartialUpdateRequest */ func (a *VpnAPIService) VpnTunnelGroupsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsPartialUpdateRequest { return ApiVpnTunnelGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TunnelGroup +// @return TunnelGroup func (a *VpnAPIService) VpnTunnelGroupsPartialUpdateExecute(r ApiVpnTunnelGroupsPartialUpdateRequest) (*TunnelGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsPartialUpdate") @@ -17349,9 +20023,9 @@ func (a *VpnAPIService) VpnTunnelGroupsPartialUpdateExecute(r ApiVpnTunnelGroups } type ApiVpnTunnelGroupsRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnTunnelGroupsRetrieveRequest) Execute() (*TunnelGroup, *http.Response, error) { @@ -17363,27 +20037,26 @@ VpnTunnelGroupsRetrieve Method for VpnTunnelGroupsRetrieve Get a tunnel 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 tunnel group. - @return ApiVpnTunnelGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel group. + @return ApiVpnTunnelGroupsRetrieveRequest */ func (a *VpnAPIService) VpnTunnelGroupsRetrieve(ctx context.Context, id int32) ApiVpnTunnelGroupsRetrieveRequest { return ApiVpnTunnelGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TunnelGroup +// @return TunnelGroup func (a *VpnAPIService) VpnTunnelGroupsRetrieveExecute(r ApiVpnTunnelGroupsRetrieveRequest) (*TunnelGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsRetrieve") @@ -17467,9 +20140,9 @@ func (a *VpnAPIService) VpnTunnelGroupsRetrieveExecute(r ApiVpnTunnelGroupsRetri } type ApiVpnTunnelGroupsUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 tunnelGroupRequest *TunnelGroupRequest } @@ -17487,27 +20160,26 @@ VpnTunnelGroupsUpdate Method for VpnTunnelGroupsUpdate Put a tunnel 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 tunnel group. - @return ApiVpnTunnelGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel group. + @return ApiVpnTunnelGroupsUpdateRequest */ func (a *VpnAPIService) VpnTunnelGroupsUpdate(ctx context.Context, id int32) ApiVpnTunnelGroupsUpdateRequest { return ApiVpnTunnelGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TunnelGroup +// @return TunnelGroup func (a *VpnAPIService) VpnTunnelGroupsUpdateExecute(r ApiVpnTunnelGroupsUpdateRequest) (*TunnelGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelGroupsUpdate") @@ -17596,8 +20268,8 @@ func (a *VpnAPIService) VpnTunnelGroupsUpdateExecute(r ApiVpnTunnelGroupsUpdateR } type ApiVpnTunnelTerminationsBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelTerminationRequest *[]TunnelTerminationRequest } @@ -17615,22 +20287,22 @@ VpnTunnelTerminationsBulkDestroy Method for VpnTunnelTerminationsBulkDestroy Delete a list of tunnel termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelTerminationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsBulkDestroyRequest */ func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroy(ctx context.Context) ApiVpnTunnelTerminationsBulkDestroyRequest { return ApiVpnTunnelTerminationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroyExecute(r ApiVpnTunnelTerminationsBulkDestroyRequest) (*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, "VpnAPIService.VpnTunnelTerminationsBulkDestroy") @@ -17709,8 +20381,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsBulkDestroyExecute(r ApiVpnTunnelTe } type ApiVpnTunnelTerminationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelTerminationRequest *[]TunnelTerminationRequest } @@ -17728,25 +20400,24 @@ VpnTunnelTerminationsBulkPartialUpdate Method for VpnTunnelTerminationsBulkParti Patch a list of tunnel termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkPartialUpdateRequest { return ApiVpnTunnelTerminationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TunnelTermination +// @return []TunnelTermination func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdateExecute(r ApiVpnTunnelTerminationsBulkPartialUpdateRequest) ([]TunnelTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TunnelTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TunnelTermination ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkPartialUpdate") @@ -17834,8 +20505,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsBulkPartialUpdateExecute(r ApiVpnTu } type ApiVpnTunnelTerminationsBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelTerminationRequest *[]TunnelTerminationRequest } @@ -17853,25 +20524,24 @@ VpnTunnelTerminationsBulkUpdate Method for VpnTunnelTerminationsBulkUpdate Put a list of tunnel termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelTerminationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsBulkUpdateRequest */ func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdate(ctx context.Context) ApiVpnTunnelTerminationsBulkUpdateRequest { return ApiVpnTunnelTerminationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TunnelTermination +// @return []TunnelTermination func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdateExecute(r ApiVpnTunnelTerminationsBulkUpdateRequest) ([]TunnelTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TunnelTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TunnelTermination ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsBulkUpdate") @@ -17959,8 +20629,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsBulkUpdateExecute(r ApiVpnTunnelTer } type ApiVpnTunnelTerminationsCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI writableTunnelTerminationRequest *WritableTunnelTerminationRequest } @@ -17978,25 +20648,24 @@ VpnTunnelTerminationsCreate Method for VpnTunnelTerminationsCreate Post a list of tunnel termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelTerminationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsCreateRequest */ func (a *VpnAPIService) VpnTunnelTerminationsCreate(ctx context.Context) ApiVpnTunnelTerminationsCreateRequest { return ApiVpnTunnelTerminationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return TunnelTermination +// @return TunnelTermination func (a *VpnAPIService) VpnTunnelTerminationsCreateExecute(r ApiVpnTunnelTerminationsCreateRequest) (*TunnelTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelTermination + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelTermination ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsCreate") @@ -18084,9 +20753,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsCreateExecute(r ApiVpnTunnelTermina } type ApiVpnTunnelTerminationsDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnTunnelTerminationsDestroyRequest) Execute() (*http.Response, error) { @@ -18098,24 +20767,24 @@ VpnTunnelTerminationsDestroy Method for VpnTunnelTerminationsDestroy Delete a tunnel 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 tunnel termination. - @return ApiVpnTunnelTerminationsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel termination. + @return ApiVpnTunnelTerminationsDestroyRequest */ func (a *VpnAPIService) VpnTunnelTerminationsDestroy(ctx context.Context, id int32) ApiVpnTunnelTerminationsDestroyRequest { return ApiVpnTunnelTerminationsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnTunnelTerminationsDestroyExecute(r ApiVpnTunnelTerminationsDestroyRequest) (*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, "VpnAPIService.VpnTunnelTerminationsDestroy") @@ -18190,63 +20859,72 @@ func (a *VpnAPIService) VpnTunnelTerminationsDestroyExecute(r ApiVpnTunnelTermin } type ApiVpnTunnelTerminationsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - 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 - 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 - modifiedByRequest *string - offset *int32 - ordering *string - outsideIpId *[]int32 - outsideIpIdN *[]int32 - q *string - role *[]string - roleN *[]string - tag *[]string - tagN *[]string - terminationId *[]int32 + ctx context.Context + ApiService VpnAPI + 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 + 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 + modifiedByRequest *string + offset *int32 + ordering *string + outsideIpId *[]int32 + outsideIpIdN *[]int32 + q *string + role *[]string + roleEmpty *bool + roleIc *[]string + roleIe *[]string + roleIew *[]string + roleIsw *[]string + roleN *[]string + roleNic *[]string + roleNie *[]string + roleNiew *[]string + roleNisw *[]string + tag *[]string + tagN *[]string + terminationId *[]int32 terminationIdEmpty *bool - terminationIdGt *[]int32 - terminationIdGte *[]int32 - terminationIdLt *[]int32 - terminationIdLte *[]int32 - terminationIdN *[]int32 - terminationType *string - terminationTypeN *string - tunnel *[]string - tunnelN *[]string - tunnelId *[]int32 - tunnelIdN *[]int32 - updatedByRequest *string - vminterface *[]string - vminterfaceN *[]string - vminterfaceId *[]int32 - vminterfaceIdN *[]int32 + terminationIdGt *[]int32 + terminationIdGte *[]int32 + terminationIdLt *[]int32 + terminationIdLte *[]int32 + terminationIdN *[]int32 + terminationType *string + terminationTypeN *string + tunnel *[]string + tunnelN *[]string + tunnelId *[]int32 + tunnelIdN *[]int32 + updatedByRequest *string + vminterface *[]string + vminterfaceN *[]string + vminterfaceId *[]int32 + vminterfaceIdN *[]int32 } func (r ApiVpnTunnelTerminationsListRequest) Created(created []time.Time) ApiVpnTunnelTerminationsListRequest { @@ -18429,11 +21107,56 @@ func (r ApiVpnTunnelTerminationsListRequest) Role(role []string) ApiVpnTunnelTer return r } +func (r ApiVpnTunnelTerminationsListRequest) RoleEmpty(roleEmpty bool) ApiVpnTunnelTerminationsListRequest { + r.roleEmpty = &roleEmpty + return r +} + +func (r ApiVpnTunnelTerminationsListRequest) RoleIc(roleIc []string) ApiVpnTunnelTerminationsListRequest { + r.roleIc = &roleIc + return r +} + +func (r ApiVpnTunnelTerminationsListRequest) RoleIe(roleIe []string) ApiVpnTunnelTerminationsListRequest { + r.roleIe = &roleIe + return r +} + +func (r ApiVpnTunnelTerminationsListRequest) RoleIew(roleIew []string) ApiVpnTunnelTerminationsListRequest { + r.roleIew = &roleIew + return r +} + +func (r ApiVpnTunnelTerminationsListRequest) RoleIsw(roleIsw []string) ApiVpnTunnelTerminationsListRequest { + r.roleIsw = &roleIsw + return r +} + func (r ApiVpnTunnelTerminationsListRequest) RoleN(roleN []string) ApiVpnTunnelTerminationsListRequest { r.roleN = &roleN return r } +func (r ApiVpnTunnelTerminationsListRequest) RoleNic(roleNic []string) ApiVpnTunnelTerminationsListRequest { + r.roleNic = &roleNic + return r +} + +func (r ApiVpnTunnelTerminationsListRequest) RoleNie(roleNie []string) ApiVpnTunnelTerminationsListRequest { + r.roleNie = &roleNie + return r +} + +func (r ApiVpnTunnelTerminationsListRequest) RoleNiew(roleNiew []string) ApiVpnTunnelTerminationsListRequest { + r.roleNiew = &roleNiew + return r +} + +func (r ApiVpnTunnelTerminationsListRequest) RoleNisw(roleNisw []string) ApiVpnTunnelTerminationsListRequest { + r.roleNisw = &roleNisw + return r +} + func (r ApiVpnTunnelTerminationsListRequest) Tag(tag []string) ApiVpnTunnelTerminationsListRequest { r.tag = &tag return r @@ -18551,25 +21274,24 @@ VpnTunnelTerminationsList Method for VpnTunnelTerminationsList Get a list of tunnel termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelTerminationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelTerminationsListRequest */ func (a *VpnAPIService) VpnTunnelTerminationsList(ctx context.Context) ApiVpnTunnelTerminationsListRequest { return ApiVpnTunnelTerminationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTunnelTerminationList +// @return PaginatedTunnelTerminationList func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminationsListRequest) (*PaginatedTunnelTerminationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedTunnelTerminationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTunnelTerminationList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsList") @@ -18588,10 +21310,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -18599,10 +21321,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -18610,10 +21332,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -18621,10 +21343,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -18632,10 +21354,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -18643,10 +21365,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -18654,38 +21376,38 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -18693,10 +21415,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -18704,10 +21426,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -18715,10 +21437,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -18726,10 +21448,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.interface_ != nil { @@ -18737,10 +21459,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "form", "multi") } } if r.interfaceN != nil { @@ -18748,10 +21470,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "form", "multi") } } if r.interfaceId != nil { @@ -18759,10 +21481,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") } } if r.interfaceIdN != nil { @@ -18770,10 +21492,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -18781,10 +21503,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -18792,10 +21514,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -18803,10 +21525,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -18814,10 +21536,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -18825,10 +21547,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -18836,10 +21558,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -18847,33 +21569,33 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.outsideIpId != nil { t := *r.outsideIpId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id", t, "form", "multi") } } if r.outsideIpIdN != nil { @@ -18881,24 +21603,71 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outside_ip_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "form", "multi") + } + } + if r.roleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__empty", r.roleEmpty, "form", "") + } + if r.roleIc != nil { + t := *r.roleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", t, "form", "multi") + } + } + if r.roleIe != nil { + t := *r.roleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", t, "form", "multi") + } + } + if r.roleIew != nil { + t := *r.roleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", t, "form", "multi") + } + } + if r.roleIsw != nil { + t := *r.roleIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", t, "form", "multi") } } if r.roleN != nil { @@ -18906,10 +21675,54 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "form", "multi") + } + } + if r.roleNic != nil { + t := *r.roleNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", t, "form", "multi") + } + } + if r.roleNie != nil { + t := *r.roleNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", t, "form", "multi") + } + } + if r.roleNiew != nil { + t := *r.roleNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", t, "form", "multi") + } + } + if r.roleNisw != nil { + t := *r.roleNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", t, "form", "multi") } } if r.tag != nil { @@ -18917,10 +21730,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -18928,10 +21741,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.terminationId != nil { @@ -18939,24 +21752,24 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", t, "form", "multi") } } if r.terminationIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__empty", r.terminationIdEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__empty", r.terminationIdEmpty, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", t, "form", "multi") } } if r.terminationIdGte != nil { @@ -18964,10 +21777,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", t, "form", "multi") } } if r.terminationIdLt != nil { @@ -18975,10 +21788,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", t, "form", "multi") } } if r.terminationIdLte != nil { @@ -18986,10 +21799,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", t, "form", "multi") } } if r.terminationIdN != nil { @@ -18997,27 +21810,27 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", t, "form", "multi") } } if r.terminationType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type", r.terminationType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type", r.terminationType, "form", "") } if r.terminationTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type__n", r.terminationTypeN, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_type__n", r.terminationTypeN, "form", "") } if r.tunnel != nil { t := *r.tunnel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel", t, "form", "multi") } } if r.tunnelN != nil { @@ -19025,10 +21838,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel__n", t, "form", "multi") } } if r.tunnelId != nil { @@ -19036,10 +21849,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", t, "form", "multi") } } if r.tunnelIdN != nil { @@ -19047,24 +21860,24 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.vminterface != nil { t := *r.vminterface if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "form", "multi") } } if r.vminterfaceN != nil { @@ -19072,10 +21885,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "form", "multi") } } if r.vminterfaceId != nil { @@ -19083,10 +21896,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "form", "multi") } } if r.vminterfaceIdN != nil { @@ -19094,10 +21907,10 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -19169,9 +21982,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati } type ApiVpnTunnelTerminationsPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableTunnelTerminationRequest *PatchedWritableTunnelTerminationRequest } @@ -19189,27 +22002,26 @@ VpnTunnelTerminationsPartialUpdate Method for VpnTunnelTerminationsPartialUpdate Patch a tunnel 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 tunnel termination. - @return ApiVpnTunnelTerminationsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel termination. + @return ApiVpnTunnelTerminationsPartialUpdateRequest */ func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsPartialUpdateRequest { return ApiVpnTunnelTerminationsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TunnelTermination +// @return TunnelTermination func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdateExecute(r ApiVpnTunnelTerminationsPartialUpdateRequest) (*TunnelTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelTermination ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsPartialUpdate") @@ -19295,9 +22107,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsPartialUpdateExecute(r ApiVpnTunnel } type ApiVpnTunnelTerminationsRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnTunnelTerminationsRetrieveRequest) Execute() (*TunnelTermination, *http.Response, error) { @@ -19309,27 +22121,26 @@ VpnTunnelTerminationsRetrieve Method for VpnTunnelTerminationsRetrieve Get a tunnel 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 tunnel termination. - @return ApiVpnTunnelTerminationsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel termination. + @return ApiVpnTunnelTerminationsRetrieveRequest */ func (a *VpnAPIService) VpnTunnelTerminationsRetrieve(ctx context.Context, id int32) ApiVpnTunnelTerminationsRetrieveRequest { return ApiVpnTunnelTerminationsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TunnelTermination +// @return TunnelTermination func (a *VpnAPIService) VpnTunnelTerminationsRetrieveExecute(r ApiVpnTunnelTerminationsRetrieveRequest) (*TunnelTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelTermination + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelTermination ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsRetrieve") @@ -19413,9 +22224,9 @@ func (a *VpnAPIService) VpnTunnelTerminationsRetrieveExecute(r ApiVpnTunnelTermi } type ApiVpnTunnelTerminationsUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableTunnelTerminationRequest *WritableTunnelTerminationRequest } @@ -19433,27 +22244,26 @@ VpnTunnelTerminationsUpdate Method for VpnTunnelTerminationsUpdate Put a tunnel 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 tunnel termination. - @return ApiVpnTunnelTerminationsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel termination. + @return ApiVpnTunnelTerminationsUpdateRequest */ func (a *VpnAPIService) VpnTunnelTerminationsUpdate(ctx context.Context, id int32) ApiVpnTunnelTerminationsUpdateRequest { return ApiVpnTunnelTerminationsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TunnelTermination +// @return TunnelTermination func (a *VpnAPIService) VpnTunnelTerminationsUpdateExecute(r ApiVpnTunnelTerminationsUpdateRequest) (*TunnelTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TunnelTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TunnelTermination ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelTerminationsUpdate") @@ -19542,8 +22352,8 @@ func (a *VpnAPIService) VpnTunnelTerminationsUpdateExecute(r ApiVpnTunnelTermina } type ApiVpnTunnelsBulkDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelRequest *[]TunnelRequest } @@ -19561,22 +22371,22 @@ VpnTunnelsBulkDestroy Method for VpnTunnelsBulkDestroy Delete a list of tunnel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsBulkDestroyRequest */ func (a *VpnAPIService) VpnTunnelsBulkDestroy(ctx context.Context) ApiVpnTunnelsBulkDestroyRequest { return ApiVpnTunnelsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *VpnAPIService) VpnTunnelsBulkDestroyExecute(r ApiVpnTunnelsBulkDestroyRequest) (*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, "VpnAPIService.VpnTunnelsBulkDestroy") @@ -19655,8 +22465,8 @@ func (a *VpnAPIService) VpnTunnelsBulkDestroyExecute(r ApiVpnTunnelsBulkDestroyR } type ApiVpnTunnelsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelRequest *[]TunnelRequest } @@ -19674,25 +22484,24 @@ VpnTunnelsBulkPartialUpdate Method for VpnTunnelsBulkPartialUpdate Patch a list of tunnel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsBulkPartialUpdateRequest */ func (a *VpnAPIService) VpnTunnelsBulkPartialUpdate(ctx context.Context) ApiVpnTunnelsBulkPartialUpdateRequest { return ApiVpnTunnelsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tunnel +// @return []Tunnel func (a *VpnAPIService) VpnTunnelsBulkPartialUpdateExecute(r ApiVpnTunnelsBulkPartialUpdateRequest) ([]Tunnel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Tunnel + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Tunnel ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkPartialUpdate") @@ -19780,8 +22589,8 @@ func (a *VpnAPIService) VpnTunnelsBulkPartialUpdateExecute(r ApiVpnTunnelsBulkPa } type ApiVpnTunnelsBulkUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI tunnelRequest *[]TunnelRequest } @@ -19799,25 +22608,24 @@ VpnTunnelsBulkUpdate Method for VpnTunnelsBulkUpdate Put a list of tunnel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsBulkUpdateRequest */ func (a *VpnAPIService) VpnTunnelsBulkUpdate(ctx context.Context) ApiVpnTunnelsBulkUpdateRequest { return ApiVpnTunnelsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tunnel +// @return []Tunnel func (a *VpnAPIService) VpnTunnelsBulkUpdateExecute(r ApiVpnTunnelsBulkUpdateRequest) ([]Tunnel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Tunnel + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Tunnel ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsBulkUpdate") @@ -19905,8 +22713,8 @@ func (a *VpnAPIService) VpnTunnelsBulkUpdateExecute(r ApiVpnTunnelsBulkUpdateReq } type ApiVpnTunnelsCreateRequest struct { - ctx context.Context - ApiService *VpnAPIService + ctx context.Context + ApiService VpnAPI writableTunnelRequest *WritableTunnelRequest } @@ -19924,25 +22732,24 @@ VpnTunnelsCreate Method for VpnTunnelsCreate Post a list of tunnel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsCreateRequest */ func (a *VpnAPIService) VpnTunnelsCreate(ctx context.Context) ApiVpnTunnelsCreateRequest { return ApiVpnTunnelsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Tunnel +// @return Tunnel func (a *VpnAPIService) VpnTunnelsCreateExecute(r ApiVpnTunnelsCreateRequest) (*Tunnel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tunnel + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tunnel ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsCreate") @@ -20030,9 +22837,9 @@ func (a *VpnAPIService) VpnTunnelsCreateExecute(r ApiVpnTunnelsCreateRequest) (* } type ApiVpnTunnelsDestroyRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnTunnelsDestroyRequest) Execute() (*http.Response, error) { @@ -20044,24 +22851,24 @@ VpnTunnelsDestroy Method for VpnTunnelsDestroy Delete a tunnel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tunnel. - @return ApiVpnTunnelsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsDestroyRequest */ func (a *VpnAPIService) VpnTunnelsDestroy(ctx context.Context, id int32) ApiVpnTunnelsDestroyRequest { return ApiVpnTunnelsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *VpnAPIService) VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest) (*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, "VpnAPIService.VpnTunnelsDestroy") @@ -20136,87 +22943,105 @@ func (a *VpnAPIService) VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest) } type ApiVpnTunnelsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - 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 - encapsulation *[]string - encapsulationN *[]string - group *[]string - groupN *[]string - groupId *[]*int32 - groupIdN *[]*int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - ipsecProfile *[]string - ipsecProfileN *[]string - ipsecProfileId *[]*int32 - ipsecProfileIdN *[]*int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 + ctx context.Context + ApiService VpnAPI + 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 + encapsulation *[]string + encapsulationEmpty *bool + encapsulationIc *[]string + encapsulationIe *[]string + encapsulationIew *[]string + encapsulationIsw *[]string + encapsulationN *[]string + encapsulationNic *[]string + encapsulationNie *[]string + encapsulationNiew *[]string + encapsulationNisw *[]string + group *[]string + groupN *[]string + groupId *[]*int32 + groupIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + ipsecProfile *[]string + ipsecProfileN *[]string + ipsecProfileId *[]*int32 + ipsecProfileIdN *[]*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 - tunnelId *[]int32 - tunnelIdEmpty *bool - tunnelIdGt *[]int32 - tunnelIdGte *[]int32 - tunnelIdLt *[]int32 - tunnelIdLte *[]int32 - tunnelIdN *[]int32 - updatedByRequest *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 + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + tunnelId *[]int32 + tunnelIdEmpty *bool + tunnelIdGt *[]int32 + tunnelIdGte *[]int32 + tunnelIdLt *[]int32 + tunnelIdLte *[]int32 + tunnelIdN *[]int32 + updatedByRequest *string } func (r ApiVpnTunnelsListRequest) Created(created []time.Time) ApiVpnTunnelsListRequest { @@ -20319,11 +23144,56 @@ func (r ApiVpnTunnelsListRequest) Encapsulation(encapsulation []string) ApiVpnTu return r } +func (r ApiVpnTunnelsListRequest) EncapsulationEmpty(encapsulationEmpty bool) ApiVpnTunnelsListRequest { + r.encapsulationEmpty = &encapsulationEmpty + return r +} + +func (r ApiVpnTunnelsListRequest) EncapsulationIc(encapsulationIc []string) ApiVpnTunnelsListRequest { + r.encapsulationIc = &encapsulationIc + return r +} + +func (r ApiVpnTunnelsListRequest) EncapsulationIe(encapsulationIe []string) ApiVpnTunnelsListRequest { + r.encapsulationIe = &encapsulationIe + return r +} + +func (r ApiVpnTunnelsListRequest) EncapsulationIew(encapsulationIew []string) ApiVpnTunnelsListRequest { + r.encapsulationIew = &encapsulationIew + return r +} + +func (r ApiVpnTunnelsListRequest) EncapsulationIsw(encapsulationIsw []string) ApiVpnTunnelsListRequest { + r.encapsulationIsw = &encapsulationIsw + return r +} + func (r ApiVpnTunnelsListRequest) EncapsulationN(encapsulationN []string) ApiVpnTunnelsListRequest { r.encapsulationN = &encapsulationN return r } +func (r ApiVpnTunnelsListRequest) EncapsulationNic(encapsulationNic []string) ApiVpnTunnelsListRequest { + r.encapsulationNic = &encapsulationNic + return r +} + +func (r ApiVpnTunnelsListRequest) EncapsulationNie(encapsulationNie []string) ApiVpnTunnelsListRequest { + r.encapsulationNie = &encapsulationNie + return r +} + +func (r ApiVpnTunnelsListRequest) EncapsulationNiew(encapsulationNiew []string) ApiVpnTunnelsListRequest { + r.encapsulationNiew = &encapsulationNiew + return r +} + +func (r ApiVpnTunnelsListRequest) EncapsulationNisw(encapsulationNisw []string) ApiVpnTunnelsListRequest { + r.encapsulationNisw = &encapsulationNisw + return r +} + // Tunnel group (slug) func (r ApiVpnTunnelsListRequest) Group(group []string) ApiVpnTunnelsListRequest { r.group = &group @@ -20531,11 +23401,56 @@ func (r ApiVpnTunnelsListRequest) Status(status []string) ApiVpnTunnelsListReque return r } +func (r ApiVpnTunnelsListRequest) StatusEmpty(statusEmpty bool) ApiVpnTunnelsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiVpnTunnelsListRequest) StatusIc(statusIc []string) ApiVpnTunnelsListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiVpnTunnelsListRequest) StatusIe(statusIe []string) ApiVpnTunnelsListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiVpnTunnelsListRequest) StatusIew(statusIew []string) ApiVpnTunnelsListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiVpnTunnelsListRequest) StatusIsw(statusIsw []string) ApiVpnTunnelsListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiVpnTunnelsListRequest) StatusN(statusN []string) ApiVpnTunnelsListRequest { r.statusN = &statusN return r } +func (r ApiVpnTunnelsListRequest) StatusNic(statusNic []string) ApiVpnTunnelsListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiVpnTunnelsListRequest) StatusNie(statusNie []string) ApiVpnTunnelsListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiVpnTunnelsListRequest) StatusNiew(statusNiew []string) ApiVpnTunnelsListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiVpnTunnelsListRequest) StatusNisw(statusNisw []string) ApiVpnTunnelsListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiVpnTunnelsListRequest) Tag(tag []string) ApiVpnTunnelsListRequest { r.tag = &tag return r @@ -20558,26 +23473,22 @@ func (r ApiVpnTunnelsListRequest) TenantN(tenantN []string) ApiVpnTunnelsListReq return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []string) ApiVpnTunnelsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnTunnelsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnTunnelsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnTunnelsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -20643,25 +23554,24 @@ VpnTunnelsList Method for VpnTunnelsList Get a list of tunnel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVpnTunnelsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVpnTunnelsListRequest */ func (a *VpnAPIService) VpnTunnelsList(ctx context.Context) ApiVpnTunnelsListRequest { return ApiVpnTunnelsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTunnelList +// @return PaginatedTunnelList func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*PaginatedTunnelList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedTunnelList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTunnelList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsList") @@ -20680,10 +23590,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -20691,10 +23601,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -20702,10 +23612,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -20713,10 +23623,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -20724,10 +23634,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -20735,10 +23645,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -20746,38 +23656,38 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -20785,10 +23695,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -20796,10 +23706,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -20807,10 +23717,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -20818,10 +23728,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -20829,10 +23739,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -20840,10 +23750,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -20851,10 +23761,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -20862,10 +23772,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.encapsulation != nil { @@ -20873,10 +23783,57 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation", t, "form", "multi") + } + } + if r.encapsulationEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__empty", r.encapsulationEmpty, "form", "") + } + if r.encapsulationIc != nil { + t := *r.encapsulationIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ic", t, "form", "multi") + } + } + if r.encapsulationIe != nil { + t := *r.encapsulationIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ie", t, "form", "multi") + } + } + if r.encapsulationIew != nil { + t := *r.encapsulationIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__iew", t, "form", "multi") + } + } + if r.encapsulationIsw != nil { + t := *r.encapsulationIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__isw", t, "form", "multi") } } if r.encapsulationN != nil { @@ -20884,10 +23841,54 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__n", t, "form", "multi") + } + } + if r.encapsulationNic != nil { + t := *r.encapsulationNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nic", t, "form", "multi") + } + } + if r.encapsulationNie != nil { + t := *r.encapsulationNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nie", t, "form", "multi") + } + } + if r.encapsulationNiew != nil { + t := *r.encapsulationNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__niew", t, "form", "multi") + } + } + if r.encapsulationNisw != nil { + t := *r.encapsulationNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nisw", t, "form", "multi") } } if r.group != nil { @@ -20895,10 +23896,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") } } if r.groupN != nil { @@ -20906,10 +23907,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") } } if r.groupId != nil { @@ -20917,10 +23918,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") } } if r.groupIdN != nil { @@ -20928,10 +23929,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "multi") } } if r.id != nil { @@ -20939,24 +23940,24 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -20964,10 +23965,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -20975,10 +23976,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -20986,10 +23987,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -20997,10 +23998,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.ipsecProfile != nil { @@ -21008,10 +24009,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile", t, "form", "multi") } } if r.ipsecProfileN != nil { @@ -21019,10 +24020,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile__n", t, "form", "multi") } } if r.ipsecProfileId != nil { @@ -21030,10 +24031,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id", t, "form", "multi") } } if r.ipsecProfileIdN != nil { @@ -21041,10 +24042,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_profile_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -21052,10 +24053,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -21063,10 +24064,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -21074,10 +24075,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -21085,10 +24086,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -21096,10 +24097,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -21107,10 +24108,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -21118,41 +24119,41 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -21160,10 +24161,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -21171,10 +24172,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -21182,10 +24183,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -21193,10 +24194,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -21204,10 +24205,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -21215,10 +24216,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -21226,10 +24227,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -21237,30 +24238,77 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -21268,10 +24316,54 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -21279,10 +24371,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -21290,10 +24382,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -21301,10 +24393,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -21312,10 +24404,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -21323,10 +24415,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -21334,10 +24426,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -21345,10 +24437,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -21356,10 +24448,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -21367,10 +24459,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -21378,10 +24470,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.tunnelId != nil { @@ -21389,24 +24481,24 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id", t, "form", "multi") } } if r.tunnelIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__empty", r.tunnelIdEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__empty", r.tunnelIdEmpty, "form", "") } if r.tunnelIdGt != nil { t := *r.tunnelIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gt", t, "form", "multi") } } if r.tunnelIdGte != nil { @@ -21414,10 +24506,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__gte", t, "form", "multi") } } if r.tunnelIdLt != nil { @@ -21425,10 +24517,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lt", t, "form", "multi") } } if r.tunnelIdLte != nil { @@ -21436,10 +24528,10 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__lte", t, "form", "multi") } } if r.tunnelIdN != nil { @@ -21447,14 +24539,14 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tunnel_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -21525,9 +24617,9 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi } type ApiVpnTunnelsPartialUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 patchedWritableTunnelRequest *PatchedWritableTunnelRequest } @@ -21545,27 +24637,26 @@ VpnTunnelsPartialUpdate Method for VpnTunnelsPartialUpdate Patch a tunnel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tunnel. - @return ApiVpnTunnelsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsPartialUpdateRequest */ func (a *VpnAPIService) VpnTunnelsPartialUpdate(ctx context.Context, id int32) ApiVpnTunnelsPartialUpdateRequest { return ApiVpnTunnelsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tunnel +// @return Tunnel func (a *VpnAPIService) VpnTunnelsPartialUpdateExecute(r ApiVpnTunnelsPartialUpdateRequest) (*Tunnel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tunnel + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tunnel ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsPartialUpdate") @@ -21651,9 +24742,9 @@ func (a *VpnAPIService) VpnTunnelsPartialUpdateExecute(r ApiVpnTunnelsPartialUpd } type ApiVpnTunnelsRetrieveRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 } func (r ApiVpnTunnelsRetrieveRequest) Execute() (*Tunnel, *http.Response, error) { @@ -21665,27 +24756,26 @@ VpnTunnelsRetrieve Method for VpnTunnelsRetrieve Get a tunnel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tunnel. - @return ApiVpnTunnelsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsRetrieveRequest */ func (a *VpnAPIService) VpnTunnelsRetrieve(ctx context.Context, id int32) ApiVpnTunnelsRetrieveRequest { return ApiVpnTunnelsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tunnel +// @return Tunnel func (a *VpnAPIService) VpnTunnelsRetrieveExecute(r ApiVpnTunnelsRetrieveRequest) (*Tunnel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tunnel + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tunnel ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsRetrieve") @@ -21769,9 +24859,9 @@ func (a *VpnAPIService) VpnTunnelsRetrieveExecute(r ApiVpnTunnelsRetrieveRequest } type ApiVpnTunnelsUpdateRequest struct { - ctx context.Context - ApiService *VpnAPIService - id int32 + ctx context.Context + ApiService VpnAPI + id int32 writableTunnelRequest *WritableTunnelRequest } @@ -21789,27 +24879,26 @@ VpnTunnelsUpdate Method for VpnTunnelsUpdate Put a tunnel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tunnel. - @return ApiVpnTunnelsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tunnel. + @return ApiVpnTunnelsUpdateRequest */ func (a *VpnAPIService) VpnTunnelsUpdate(ctx context.Context, id int32) ApiVpnTunnelsUpdateRequest { return ApiVpnTunnelsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tunnel +// @return Tunnel func (a *VpnAPIService) VpnTunnelsUpdateExecute(r ApiVpnTunnelsUpdateRequest) (*Tunnel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tunnel + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tunnel ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VpnAPIService.VpnTunnelsUpdate") diff --git a/api_wireless.go b/api_wireless.go index ac16ccf584..995f2c17dd 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,405 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) + +type WirelessAPI interface { + + /* + WirelessWirelessLanGroupsBulkDestroy Method for WirelessWirelessLanGroupsBulkDestroy + + 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 + */ + WirelessWirelessLanGroupsBulkDestroy(ctx context.Context) ApiWirelessWirelessLanGroupsBulkDestroyRequest + + // WirelessWirelessLanGroupsBulkDestroyExecute executes the request + WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWirelessWirelessLanGroupsBulkDestroyRequest) (*http.Response, error) + + /* + WirelessWirelessLanGroupsBulkPartialUpdate Method for WirelessWirelessLanGroupsBulkPartialUpdate + + 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 + */ + WirelessWirelessLanGroupsBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest + + // WirelessWirelessLanGroupsBulkPartialUpdateExecute executes the request + // @return []WirelessLANGroup + WirelessWirelessLanGroupsBulkPartialUpdateExecute(r ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest) ([]WirelessLANGroup, *http.Response, error) + + /* + WirelessWirelessLanGroupsBulkUpdate Method for WirelessWirelessLanGroupsBulkUpdate + + 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 + */ + WirelessWirelessLanGroupsBulkUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkUpdateRequest + + // WirelessWirelessLanGroupsBulkUpdateExecute executes the request + // @return []WirelessLANGroup + WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWirelessWirelessLanGroupsBulkUpdateRequest) ([]WirelessLANGroup, *http.Response, error) + + /* + WirelessWirelessLanGroupsCreate Method for WirelessWirelessLanGroupsCreate + + 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 + */ + WirelessWirelessLanGroupsCreate(ctx context.Context) ApiWirelessWirelessLanGroupsCreateRequest + + // WirelessWirelessLanGroupsCreateExecute executes the request + // @return WirelessLANGroup + WirelessWirelessLanGroupsCreateExecute(r ApiWirelessWirelessLanGroupsCreateRequest) (*WirelessLANGroup, *http.Response, error) + + /* + WirelessWirelessLanGroupsDestroy Method for WirelessWirelessLanGroupsDestroy + + 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 + */ + WirelessWirelessLanGroupsDestroy(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsDestroyRequest + + // WirelessWirelessLanGroupsDestroyExecute executes the request + WirelessWirelessLanGroupsDestroyExecute(r ApiWirelessWirelessLanGroupsDestroyRequest) (*http.Response, error) + + /* + WirelessWirelessLanGroupsList Method for WirelessWirelessLanGroupsList + + 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 + */ + WirelessWirelessLanGroupsList(ctx context.Context) ApiWirelessWirelessLanGroupsListRequest + + // WirelessWirelessLanGroupsListExecute executes the request + // @return PaginatedWirelessLANGroupList + WirelessWirelessLanGroupsListExecute(r ApiWirelessWirelessLanGroupsListRequest) (*PaginatedWirelessLANGroupList, *http.Response, error) + + /* + WirelessWirelessLanGroupsPartialUpdate Method for WirelessWirelessLanGroupsPartialUpdate + + 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 + */ + WirelessWirelessLanGroupsPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsPartialUpdateRequest + + // WirelessWirelessLanGroupsPartialUpdateExecute executes the request + // @return WirelessLANGroup + WirelessWirelessLanGroupsPartialUpdateExecute(r ApiWirelessWirelessLanGroupsPartialUpdateRequest) (*WirelessLANGroup, *http.Response, error) + + /* + WirelessWirelessLanGroupsRetrieve Method for WirelessWirelessLanGroupsRetrieve + + 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 + */ + WirelessWirelessLanGroupsRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsRetrieveRequest + + // WirelessWirelessLanGroupsRetrieveExecute executes the request + // @return WirelessLANGroup + WirelessWirelessLanGroupsRetrieveExecute(r ApiWirelessWirelessLanGroupsRetrieveRequest) (*WirelessLANGroup, *http.Response, error) + + /* + WirelessWirelessLanGroupsUpdate Method for WirelessWirelessLanGroupsUpdate + + 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 + */ + WirelessWirelessLanGroupsUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsUpdateRequest + + // WirelessWirelessLanGroupsUpdateExecute executes the request + // @return WirelessLANGroup + WirelessWirelessLanGroupsUpdateExecute(r ApiWirelessWirelessLanGroupsUpdateRequest) (*WirelessLANGroup, *http.Response, error) + + /* + WirelessWirelessLansBulkDestroy Method for WirelessWirelessLansBulkDestroy + + 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 + */ + WirelessWirelessLansBulkDestroy(ctx context.Context) ApiWirelessWirelessLansBulkDestroyRequest + + // WirelessWirelessLansBulkDestroyExecute executes the request + WirelessWirelessLansBulkDestroyExecute(r ApiWirelessWirelessLansBulkDestroyRequest) (*http.Response, error) + + /* + WirelessWirelessLansBulkPartialUpdate Method for WirelessWirelessLansBulkPartialUpdate + + 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 + */ + WirelessWirelessLansBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLansBulkPartialUpdateRequest + + // WirelessWirelessLansBulkPartialUpdateExecute executes the request + // @return []WirelessLAN + WirelessWirelessLansBulkPartialUpdateExecute(r ApiWirelessWirelessLansBulkPartialUpdateRequest) ([]WirelessLAN, *http.Response, error) + + /* + WirelessWirelessLansBulkUpdate Method for WirelessWirelessLansBulkUpdate + + 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 + */ + WirelessWirelessLansBulkUpdate(ctx context.Context) ApiWirelessWirelessLansBulkUpdateRequest + + // WirelessWirelessLansBulkUpdateExecute executes the request + // @return []WirelessLAN + WirelessWirelessLansBulkUpdateExecute(r ApiWirelessWirelessLansBulkUpdateRequest) ([]WirelessLAN, *http.Response, error) + + /* + WirelessWirelessLansCreate Method for WirelessWirelessLansCreate + + 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 + */ + WirelessWirelessLansCreate(ctx context.Context) ApiWirelessWirelessLansCreateRequest + + // WirelessWirelessLansCreateExecute executes the request + // @return WirelessLAN + WirelessWirelessLansCreateExecute(r ApiWirelessWirelessLansCreateRequest) (*WirelessLAN, *http.Response, error) + + /* + WirelessWirelessLansDestroy Method for WirelessWirelessLansDestroy + + 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 + */ + WirelessWirelessLansDestroy(ctx context.Context, id int32) ApiWirelessWirelessLansDestroyRequest + + // WirelessWirelessLansDestroyExecute executes the request + WirelessWirelessLansDestroyExecute(r ApiWirelessWirelessLansDestroyRequest) (*http.Response, error) + + /* + WirelessWirelessLansList Method for WirelessWirelessLansList + + 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 + */ + WirelessWirelessLansList(ctx context.Context) ApiWirelessWirelessLansListRequest + + // WirelessWirelessLansListExecute executes the request + // @return PaginatedWirelessLANList + WirelessWirelessLansListExecute(r ApiWirelessWirelessLansListRequest) (*PaginatedWirelessLANList, *http.Response, error) + + /* + WirelessWirelessLansPartialUpdate Method for WirelessWirelessLansPartialUpdate + + 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 + */ + WirelessWirelessLansPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansPartialUpdateRequest + + // WirelessWirelessLansPartialUpdateExecute executes the request + // @return WirelessLAN + WirelessWirelessLansPartialUpdateExecute(r ApiWirelessWirelessLansPartialUpdateRequest) (*WirelessLAN, *http.Response, error) + + /* + WirelessWirelessLansRetrieve Method for WirelessWirelessLansRetrieve + + 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 + */ + WirelessWirelessLansRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLansRetrieveRequest + + // WirelessWirelessLansRetrieveExecute executes the request + // @return WirelessLAN + WirelessWirelessLansRetrieveExecute(r ApiWirelessWirelessLansRetrieveRequest) (*WirelessLAN, *http.Response, error) + + /* + WirelessWirelessLansUpdate Method for WirelessWirelessLansUpdate + + 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 + */ + WirelessWirelessLansUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansUpdateRequest + + // WirelessWirelessLansUpdateExecute executes the request + // @return WirelessLAN + WirelessWirelessLansUpdateExecute(r ApiWirelessWirelessLansUpdateRequest) (*WirelessLAN, *http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksBulkDestroy(ctx context.Context) ApiWirelessWirelessLinksBulkDestroyRequest + + // WirelessWirelessLinksBulkDestroyExecute executes the request + WirelessWirelessLinksBulkDestroyExecute(r ApiWirelessWirelessLinksBulkDestroyRequest) (*http.Response, error) + + /* + WirelessWirelessLinksBulkPartialUpdate Method for WirelessWirelessLinksBulkPartialUpdate + + 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 + */ + WirelessWirelessLinksBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkPartialUpdateRequest + + // WirelessWirelessLinksBulkPartialUpdateExecute executes the request + // @return []WirelessLink + WirelessWirelessLinksBulkPartialUpdateExecute(r ApiWirelessWirelessLinksBulkPartialUpdateRequest) ([]WirelessLink, *http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksBulkUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkUpdateRequest + + // WirelessWirelessLinksBulkUpdateExecute executes the request + // @return []WirelessLink + WirelessWirelessLinksBulkUpdateExecute(r ApiWirelessWirelessLinksBulkUpdateRequest) ([]WirelessLink, *http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksCreate(ctx context.Context) ApiWirelessWirelessLinksCreateRequest + + // WirelessWirelessLinksCreateExecute executes the request + // @return WirelessLink + WirelessWirelessLinksCreateExecute(r ApiWirelessWirelessLinksCreateRequest) (*WirelessLink, *http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksDestroy(ctx context.Context, id int32) ApiWirelessWirelessLinksDestroyRequest + + // WirelessWirelessLinksDestroyExecute executes the request + WirelessWirelessLinksDestroyExecute(r ApiWirelessWirelessLinksDestroyRequest) (*http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksList(ctx context.Context) ApiWirelessWirelessLinksListRequest + + // WirelessWirelessLinksListExecute executes the request + // @return PaginatedWirelessLinkList + WirelessWirelessLinksListExecute(r ApiWirelessWirelessLinksListRequest) (*PaginatedWirelessLinkList, *http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksPartialUpdateRequest + + // WirelessWirelessLinksPartialUpdateExecute executes the request + // @return WirelessLink + WirelessWirelessLinksPartialUpdateExecute(r ApiWirelessWirelessLinksPartialUpdateRequest) (*WirelessLink, *http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLinksRetrieveRequest + + // WirelessWirelessLinksRetrieveExecute executes the request + // @return WirelessLink + WirelessWirelessLinksRetrieveExecute(r ApiWirelessWirelessLinksRetrieveRequest) (*WirelessLink, *http.Response, error) + + /* + 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 + */ + WirelessWirelessLinksUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksUpdateRequest + + // WirelessWirelessLinksUpdateExecute executes the request + // @return WirelessLink + WirelessWirelessLinksUpdateExecute(r ApiWirelessWirelessLinksUpdateRequest) (*WirelessLink, *http.Response, error) +} + // WirelessAPIService WirelessAPI service type WirelessAPIService service type ApiWirelessWirelessLanGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLANGroupRequest *[]WirelessLANGroupRequest } @@ -44,22 +432,22 @@ WirelessWirelessLanGroupsBulkDestroy Method for WirelessWirelessLanGroupsBulkDes 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 { return ApiWirelessWirelessLanGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -138,8 +526,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWi } type ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLANGroupRequest *[]WirelessLANGroupRequest } @@ -157,25 +545,24 @@ WirelessWirelessLanGroupsBulkPartialUpdate Method for WirelessWirelessLanGroupsB 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 { return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLANGroup +// @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") @@ -263,8 +650,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkPartialUpdateExecute(r } type ApiWirelessWirelessLanGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLANGroupRequest *[]WirelessLANGroupRequest } @@ -282,25 +669,24 @@ WirelessWirelessLanGroupsBulkUpdate Method for WirelessWirelessLanGroupsBulkUpda 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 { return ApiWirelessWirelessLanGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLANGroup +// @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") @@ -388,8 +774,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWir } type ApiWirelessWirelessLanGroupsCreateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI writableWirelessLANGroupRequest *WritableWirelessLANGroupRequest } @@ -407,25 +793,24 @@ WirelessWirelessLanGroupsCreate Method for WirelessWirelessLanGroupsCreate 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 { return ApiWirelessWirelessLanGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return WirelessLANGroup +// @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") @@ -513,9 +898,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsCreateExecute(r ApiWireles } type ApiWirelessWirelessLanGroupsDestroyRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 } func (r ApiWirelessWirelessLanGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -527,24 +912,24 @@ WirelessWirelessLanGroupsDestroy Method for WirelessWirelessLanGroupsDestroy 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 { 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) { 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") @@ -619,97 +1004,97 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirele } type ApiWirelessWirelessLanGroupsListRequest struct { - ctx context.Context - ApiService *WirelessAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]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 + ctx context.Context + ApiService WirelessAPI + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]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 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 -} - -func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []int32) ApiWirelessWirelessLanGroupsListRequest { + 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 +} + +func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -1062,25 +1447,24 @@ WirelessWirelessLanGroupsList Method for WirelessWirelessLanGroupsList 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 { return ApiWirelessWirelessLanGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWirelessLANGroupList +// @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") @@ -1099,10 +1483,10 @@ 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, "ancestor", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor", t, "form", "multi") } } if r.ancestorN != nil { @@ -1110,10 +1494,10 @@ 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, "ancestor__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor__n", t, "form", "multi") } } if r.ancestorId != nil { @@ -1121,10 +1505,10 @@ 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, "ancestor_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id", t, "form", "multi") } } if r.ancestorIdN != nil { @@ -1132,10 +1516,10 @@ 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, "ancestor_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_id__n", t, "form", "multi") } } if r.created != nil { @@ -1143,10 +1527,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -1154,10 +1538,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -1165,10 +1549,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -1176,10 +1560,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -1187,10 +1571,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -1198,10 +1582,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -1209,38 +1593,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -1248,10 +1632,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -1259,10 +1643,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -1270,10 +1654,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -1281,10 +1665,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -1292,10 +1676,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -1303,10 +1687,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -1314,10 +1698,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -1325,10 +1709,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") } } if r.id != nil { @@ -1336,24 +1720,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -1361,10 +1745,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -1372,10 +1756,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -1383,10 +1767,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -1394,10 +1778,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -1405,10 +1789,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -1416,10 +1800,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -1427,10 +1811,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -1438,10 +1822,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -1449,10 +1833,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -1460,10 +1844,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -1471,41 +1855,41 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "form", "multi") } } if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "form", "multi") } } if r.nameIe != nil { @@ -1513,10 +1897,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "form", "multi") } } if r.nameIew != nil { @@ -1524,10 +1908,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "form", "multi") } } if r.nameIsw != nil { @@ -1535,10 +1919,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "form", "multi") } } if r.nameN != nil { @@ -1546,10 +1930,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "form", "multi") } } if r.nameNic != nil { @@ -1557,10 +1941,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "form", "multi") } } if r.nameNie != nil { @@ -1568,10 +1952,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "form", "multi") } } if r.nameNiew != nil { @@ -1579,10 +1963,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "form", "multi") } } if r.nameNisw != nil { @@ -1590,27 +1974,27 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "form", "multi") } } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "form", "multi") } } if r.parentN != nil { @@ -1618,10 +2002,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "form", "multi") } } if r.parentId != nil { @@ -1629,10 +2013,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "form", "multi") } } if r.parentIdN != nil { @@ -1640,38 +2024,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "form", "multi") } } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "form", "multi") } } if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "form", "") } if r.slugIc != nil { t := *r.slugIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "form", "multi") } } if r.slugIe != nil { @@ -1679,10 +2063,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "form", "multi") } } if r.slugIew != nil { @@ -1690,10 +2074,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "form", "multi") } } if r.slugIsw != nil { @@ -1701,10 +2085,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "form", "multi") } } if r.slugN != nil { @@ -1712,10 +2096,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "form", "multi") } } if r.slugNic != nil { @@ -1723,10 +2107,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "form", "multi") } } if r.slugNie != nil { @@ -1734,10 +2118,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "form", "multi") } } if r.slugNiew != nil { @@ -1745,10 +2129,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "form", "multi") } } if r.slugNisw != nil { @@ -1756,10 +2140,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "form", "multi") } } if r.tag != nil { @@ -1767,10 +2151,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -1778,14 +2162,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1856,9 +2240,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW } type ApiWirelessWirelessLanGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 patchedWritableWirelessLANGroupRequest *PatchedWritableWirelessLANGroupRequest } @@ -1876,27 +2260,26 @@ WirelessWirelessLanGroupsPartialUpdate Method for WirelessWirelessLanGroupsParti 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 { return ApiWirelessWirelessLanGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLANGroup +// @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") @@ -1982,9 +2365,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsPartialUpdateExecute(r Api } type ApiWirelessWirelessLanGroupsRetrieveRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 } func (r ApiWirelessWirelessLanGroupsRetrieveRequest) Execute() (*WirelessLANGroup, *http.Response, error) { @@ -1996,27 +2379,26 @@ WirelessWirelessLanGroupsRetrieve Method for WirelessWirelessLanGroupsRetrieve 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 { return ApiWirelessWirelessLanGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLANGroup +// @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") @@ -2100,9 +2482,9 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsRetrieveExecute(r ApiWirel } type ApiWirelessWirelessLanGroupsUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 writableWirelessLANGroupRequest *WritableWirelessLANGroupRequest } @@ -2120,27 +2502,26 @@ WirelessWirelessLanGroupsUpdate Method for WirelessWirelessLanGroupsUpdate 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 { return ApiWirelessWirelessLanGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLANGroup +// @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") @@ -2229,8 +2610,8 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsUpdateExecute(r ApiWireles } type ApiWirelessWirelessLansBulkDestroyRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLANRequest *[]WirelessLANRequest } @@ -2248,22 +2629,22 @@ WirelessWirelessLansBulkDestroy Method for WirelessWirelessLansBulkDestroy 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 { return ApiWirelessWirelessLansBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -2342,8 +2723,8 @@ func (a *WirelessAPIService) WirelessWirelessLansBulkDestroyExecute(r ApiWireles } type ApiWirelessWirelessLansBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLANRequest *[]WirelessLANRequest } @@ -2361,25 +2742,24 @@ WirelessWirelessLansBulkPartialUpdate Method for WirelessWirelessLansBulkPartial 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 { return ApiWirelessWirelessLansBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLAN +// @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") @@ -2467,8 +2847,8 @@ func (a *WirelessAPIService) WirelessWirelessLansBulkPartialUpdateExecute(r ApiW } type ApiWirelessWirelessLansBulkUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLANRequest *[]WirelessLANRequest } @@ -2486,25 +2866,24 @@ WirelessWirelessLansBulkUpdate Method for WirelessWirelessLansBulkUpdate 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 { return ApiWirelessWirelessLansBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLAN +// @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") @@ -2592,8 +2971,8 @@ func (a *WirelessAPIService) WirelessWirelessLansBulkUpdateExecute(r ApiWireless } type ApiWirelessWirelessLansCreateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI writableWirelessLANRequest *WritableWirelessLANRequest } @@ -2611,25 +2990,24 @@ WirelessWirelessLansCreate Method for WirelessWirelessLansCreate 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 { return ApiWirelessWirelessLansCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return WirelessLAN +// @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") @@ -2717,9 +3095,9 @@ func (a *WirelessAPIService) WirelessWirelessLansCreateExecute(r ApiWirelessWire } type ApiWirelessWirelessLansDestroyRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 } func (r ApiWirelessWirelessLansDestroyRequest) Execute() (*http.Response, error) { @@ -2731,24 +3109,24 @@ WirelessWirelessLansDestroy Method for WirelessWirelessLansDestroy 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 { 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) { 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") @@ -2823,105 +3201,202 @@ 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 - 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 *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - 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 + ctx context.Context + ApiService WirelessAPI + authCipher *[]*string + authCipherEmpty *bool + authCipherIc *[]*string + authCipherIe *[]*string + authCipherIew *[]*string + authCipherIsw *[]*string + authCipherN *[]*string + authCipherNic *[]*string + authCipherNie *[]*string + authCipherNiew *[]*string + authCipherNisw *[]*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 + authTypeEmpty *bool + authTypeIc *[]*string + authTypeIe *[]*string + authTypeIew *[]*string + authTypeIsw *[]*string + authTypeN *[]*string + authTypeNic *[]*string + authTypeNie *[]*string + authTypeNiew *[]*string + authTypeNisw *[]*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 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + 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 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string 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 -} - -func (r ApiWirelessWirelessLansListRequest) AuthCipher(authCipher []string) ApiWirelessWirelessLansListRequest { + offset *int32 + ordering *string + q *string + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string + scopeId *[]int32 + scopeIdEmpty *bool + scopeIdGt *[]int32 + scopeIdGte *[]int32 + scopeIdLt *[]int32 + scopeIdLte *[]int32 + scopeIdN *[]int32 + scopeType *string + scopeTypeN *string + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string + siteId *[]int32 + siteIdN *[]int32 + ssid *[]string + ssidEmpty *bool + ssidIc *[]string + ssidIe *[]string + ssidIew *[]string + ssidIsw *[]string + ssidN *[]string + ssidNic *[]string + ssidNie *[]string + ssidNiew *[]string + ssidNisw *[]string + status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string + vlanId *[]*int32 + vlanIdN *[]*int32 +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipher(authCipher []*string) ApiWirelessWirelessLansListRequest { r.authCipher = &authCipher return r } -func (r ApiWirelessWirelessLansListRequest) AuthCipherN(authCipherN []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) AuthCipherEmpty(authCipherEmpty bool) ApiWirelessWirelessLansListRequest { + r.authCipherEmpty = &authCipherEmpty + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherIc(authCipherIc []*string) ApiWirelessWirelessLansListRequest { + r.authCipherIc = &authCipherIc + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherIe(authCipherIe []*string) ApiWirelessWirelessLansListRequest { + r.authCipherIe = &authCipherIe + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherIew(authCipherIew []*string) ApiWirelessWirelessLansListRequest { + r.authCipherIew = &authCipherIew + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherIsw(authCipherIsw []*string) ApiWirelessWirelessLansListRequest { + r.authCipherIsw = &authCipherIsw + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherN(authCipherN []*string) ApiWirelessWirelessLansListRequest { r.authCipherN = &authCipherN return r } +func (r ApiWirelessWirelessLansListRequest) AuthCipherNic(authCipherNic []*string) ApiWirelessWirelessLansListRequest { + r.authCipherNic = &authCipherNic + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherNie(authCipherNie []*string) ApiWirelessWirelessLansListRequest { + r.authCipherNie = &authCipherNie + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherNiew(authCipherNiew []*string) ApiWirelessWirelessLansListRequest { + r.authCipherNiew = &authCipherNiew + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthCipherNisw(authCipherNisw []*string) ApiWirelessWirelessLansListRequest { + r.authCipherNisw = &authCipherNisw + return r +} + func (r ApiWirelessWirelessLansListRequest) AuthPsk(authPsk []string) ApiWirelessWirelessLansListRequest { r.authPsk = &authPsk return r @@ -2977,52 +3452,97 @@ func (r ApiWirelessWirelessLansListRequest) AuthPskNisw(authPskNisw []string) Ap return r } -func (r ApiWirelessWirelessLansListRequest) AuthType(authType []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) AuthType(authType []*string) ApiWirelessWirelessLansListRequest { r.authType = &authType return r } -func (r ApiWirelessWirelessLansListRequest) AuthTypeN(authTypeN []string) ApiWirelessWirelessLansListRequest { - r.authTypeN = &authTypeN +func (r ApiWirelessWirelessLansListRequest) AuthTypeEmpty(authTypeEmpty bool) ApiWirelessWirelessLansListRequest { + r.authTypeEmpty = &authTypeEmpty return r } -func (r ApiWirelessWirelessLansListRequest) Created(created []time.Time) ApiWirelessWirelessLansListRequest { - r.created = &created +func (r ApiWirelessWirelessLansListRequest) AuthTypeIc(authTypeIc []*string) ApiWirelessWirelessLansListRequest { + r.authTypeIc = &authTypeIc return r } -func (r ApiWirelessWirelessLansListRequest) CreatedEmpty(createdEmpty []time.Time) ApiWirelessWirelessLansListRequest { - r.createdEmpty = &createdEmpty +func (r ApiWirelessWirelessLansListRequest) AuthTypeIe(authTypeIe []*string) ApiWirelessWirelessLansListRequest { + r.authTypeIe = &authTypeIe return r } -func (r ApiWirelessWirelessLansListRequest) CreatedGt(createdGt []time.Time) ApiWirelessWirelessLansListRequest { - r.createdGt = &createdGt +func (r ApiWirelessWirelessLansListRequest) AuthTypeIew(authTypeIew []*string) ApiWirelessWirelessLansListRequest { + r.authTypeIew = &authTypeIew return r } -func (r ApiWirelessWirelessLansListRequest) CreatedGte(createdGte []time.Time) ApiWirelessWirelessLansListRequest { - r.createdGte = &createdGte +func (r ApiWirelessWirelessLansListRequest) AuthTypeIsw(authTypeIsw []*string) ApiWirelessWirelessLansListRequest { + r.authTypeIsw = &authTypeIsw return r } -func (r ApiWirelessWirelessLansListRequest) CreatedLt(createdLt []time.Time) ApiWirelessWirelessLansListRequest { - r.createdLt = &createdLt +func (r ApiWirelessWirelessLansListRequest) AuthTypeN(authTypeN []*string) ApiWirelessWirelessLansListRequest { + r.authTypeN = &authTypeN return r } -func (r ApiWirelessWirelessLansListRequest) CreatedLte(createdLte []time.Time) ApiWirelessWirelessLansListRequest { - r.createdLte = &createdLte +func (r ApiWirelessWirelessLansListRequest) AuthTypeNic(authTypeNic []*string) ApiWirelessWirelessLansListRequest { + r.authTypeNic = &authTypeNic return r } -func (r ApiWirelessWirelessLansListRequest) CreatedN(createdN []time.Time) ApiWirelessWirelessLansListRequest { - r.createdN = &createdN +func (r ApiWirelessWirelessLansListRequest) AuthTypeNie(authTypeNie []*string) ApiWirelessWirelessLansListRequest { + r.authTypeNie = &authTypeNie return r } -func (r ApiWirelessWirelessLansListRequest) CreatedByRequest(createdByRequest string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) AuthTypeNiew(authTypeNiew []*string) ApiWirelessWirelessLansListRequest { + r.authTypeNiew = &authTypeNiew + return r +} + +func (r ApiWirelessWirelessLansListRequest) AuthTypeNisw(authTypeNisw []*string) ApiWirelessWirelessLansListRequest { + r.authTypeNisw = &authTypeNisw + return r +} + +func (r ApiWirelessWirelessLansListRequest) Created(created []time.Time) ApiWirelessWirelessLansListRequest { + r.created = &created + 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 +} + +func (r ApiWirelessWirelessLansListRequest) CreatedGte(createdGte []time.Time) ApiWirelessWirelessLansListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiWirelessWirelessLansListRequest) CreatedLt(createdLt []time.Time) ApiWirelessWirelessLansListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiWirelessWirelessLansListRequest) CreatedLte(createdLte []time.Time) ApiWirelessWirelessLansListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiWirelessWirelessLansListRequest) CreatedN(createdN []time.Time) ApiWirelessWirelessLansListRequest { + r.createdN = &createdN + return r +} + +func (r ApiWirelessWirelessLansListRequest) CreatedByRequest(createdByRequest string) ApiWirelessWirelessLansListRequest { r.createdByRequest = &createdByRequest return r } @@ -3082,22 +3602,22 @@ func (r ApiWirelessWirelessLansListRequest) DescriptionNisw(descriptionNisw []st return r } -func (r ApiWirelessWirelessLansListRequest) Group(group []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) Group(group []string) ApiWirelessWirelessLansListRequest { r.group = &group return r } -func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []string) ApiWirelessWirelessLansListRequest { r.groupN = &groupN return r } -func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []string) ApiWirelessWirelessLansListRequest { r.groupId = &groupId return r } -func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []string) ApiWirelessWirelessLansListRequest { r.groupIdN = &groupIdN return r } @@ -3188,6 +3708,26 @@ func (r ApiWirelessWirelessLansListRequest) Limit(limit int32) ApiWirelessWirele return r } +func (r ApiWirelessWirelessLansListRequest) Location(location []string) ApiWirelessWirelessLansListRequest { + r.location = &location + return r +} + +func (r ApiWirelessWirelessLansListRequest) LocationN(locationN []string) ApiWirelessWirelessLansListRequest { + r.locationN = &locationN + return r +} + +func (r ApiWirelessWirelessLansListRequest) LocationId(locationId []string) ApiWirelessWirelessLansListRequest { + r.locationId = &locationId + return r +} + +func (r ApiWirelessWirelessLansListRequest) LocationIdN(locationIdN []string) ApiWirelessWirelessLansListRequest { + r.locationIdN = &locationIdN + return r +} + func (r ApiWirelessWirelessLansListRequest) ModifiedByRequest(modifiedByRequest string) ApiWirelessWirelessLansListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -3211,6 +3751,115 @@ func (r ApiWirelessWirelessLansListRequest) Q(q string) ApiWirelessWirelessLansL return r } +func (r ApiWirelessWirelessLansListRequest) Region(region []string) ApiWirelessWirelessLansListRequest { + r.region = ®ion + return r +} + +func (r ApiWirelessWirelessLansListRequest) RegionN(regionN []string) ApiWirelessWirelessLansListRequest { + r.regionN = ®ionN + return r +} + +func (r ApiWirelessWirelessLansListRequest) RegionId(regionId []string) ApiWirelessWirelessLansListRequest { + r.regionId = ®ionId + return r +} + +func (r ApiWirelessWirelessLansListRequest) RegionIdN(regionIdN []string) ApiWirelessWirelessLansListRequest { + r.regionIdN = ®ionIdN + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeId(scopeId []int32) ApiWirelessWirelessLansListRequest { + r.scopeId = &scopeId + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeIdEmpty(scopeIdEmpty bool) ApiWirelessWirelessLansListRequest { + r.scopeIdEmpty = &scopeIdEmpty + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeIdGt(scopeIdGt []int32) ApiWirelessWirelessLansListRequest { + r.scopeIdGt = &scopeIdGt + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeIdGte(scopeIdGte []int32) ApiWirelessWirelessLansListRequest { + r.scopeIdGte = &scopeIdGte + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeIdLt(scopeIdLt []int32) ApiWirelessWirelessLansListRequest { + r.scopeIdLt = &scopeIdLt + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeIdLte(scopeIdLte []int32) ApiWirelessWirelessLansListRequest { + r.scopeIdLte = &scopeIdLte + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeIdN(scopeIdN []int32) ApiWirelessWirelessLansListRequest { + r.scopeIdN = &scopeIdN + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeType(scopeType string) ApiWirelessWirelessLansListRequest { + r.scopeType = &scopeType + return r +} + +func (r ApiWirelessWirelessLansListRequest) ScopeTypeN(scopeTypeN string) ApiWirelessWirelessLansListRequest { + r.scopeTypeN = &scopeTypeN + return r +} + +// Site (slug) +func (r ApiWirelessWirelessLansListRequest) Site(site []string) ApiWirelessWirelessLansListRequest { + r.site = &site + return r +} + +// Site (slug) +func (r ApiWirelessWirelessLansListRequest) SiteN(siteN []string) ApiWirelessWirelessLansListRequest { + r.siteN = &siteN + return r +} + +func (r ApiWirelessWirelessLansListRequest) SiteGroup(siteGroup []string) ApiWirelessWirelessLansListRequest { + r.siteGroup = &siteGroup + return r +} + +func (r ApiWirelessWirelessLansListRequest) SiteGroupN(siteGroupN []string) ApiWirelessWirelessLansListRequest { + r.siteGroupN = &siteGroupN + return r +} + +func (r ApiWirelessWirelessLansListRequest) SiteGroupId(siteGroupId []string) ApiWirelessWirelessLansListRequest { + r.siteGroupId = &siteGroupId + return r +} + +func (r ApiWirelessWirelessLansListRequest) SiteGroupIdN(siteGroupIdN []string) ApiWirelessWirelessLansListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site (ID) +func (r ApiWirelessWirelessLansListRequest) SiteId(siteId []int32) ApiWirelessWirelessLansListRequest { + r.siteId = &siteId + return r +} + +// Site (ID) +func (r ApiWirelessWirelessLansListRequest) SiteIdN(siteIdN []int32) ApiWirelessWirelessLansListRequest { + r.siteIdN = &siteIdN + return r +} + func (r ApiWirelessWirelessLansListRequest) Ssid(ssid []string) ApiWirelessWirelessLansListRequest { r.ssid = &ssid return r @@ -3271,11 +3920,56 @@ func (r ApiWirelessWirelessLansListRequest) Status(status []string) ApiWirelessW return r } +func (r ApiWirelessWirelessLansListRequest) StatusEmpty(statusEmpty bool) ApiWirelessWirelessLansListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiWirelessWirelessLansListRequest) StatusIc(statusIc []string) ApiWirelessWirelessLansListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiWirelessWirelessLansListRequest) StatusIe(statusIe []string) ApiWirelessWirelessLansListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiWirelessWirelessLansListRequest) StatusIew(statusIew []string) ApiWirelessWirelessLansListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiWirelessWirelessLansListRequest) StatusIsw(statusIsw []string) ApiWirelessWirelessLansListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiWirelessWirelessLansListRequest) StatusN(statusN []string) ApiWirelessWirelessLansListRequest { r.statusN = &statusN return r } +func (r ApiWirelessWirelessLansListRequest) StatusNic(statusNic []string) ApiWirelessWirelessLansListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiWirelessWirelessLansListRequest) StatusNie(statusNie []string) ApiWirelessWirelessLansListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiWirelessWirelessLansListRequest) StatusNiew(statusNiew []string) ApiWirelessWirelessLansListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiWirelessWirelessLansListRequest) StatusNisw(statusNisw []string) ApiWirelessWirelessLansListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiWirelessWirelessLansListRequest) Tag(tag []string) ApiWirelessWirelessLansListRequest { r.tag = &tag return r @@ -3298,26 +3992,22 @@ func (r ApiWirelessWirelessLansListRequest) TenantN(tenantN []string) ApiWireles return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -3358,25 +4048,24 @@ WirelessWirelessLansList Method for WirelessWirelessLansList 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 { return ApiWirelessWirelessLansListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWirelessLANList +// @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") @@ -3395,10 +4084,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "form", "multi") + } + } + if r.authCipherEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__empty", r.authCipherEmpty, "form", "") + } + if r.authCipherIc != nil { + t := *r.authCipherIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", t, "form", "multi") + } + } + if r.authCipherIe != nil { + t := *r.authCipherIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", t, "form", "multi") + } + } + if r.authCipherIew != nil { + t := *r.authCipherIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", t, "form", "multi") + } + } + if r.authCipherIsw != nil { + t := *r.authCipherIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", t, "form", "multi") } } if r.authCipherN != nil { @@ -3406,10 +4142,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "form", "multi") + } + } + if r.authCipherNic != nil { + t := *r.authCipherNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", t, "form", "multi") + } + } + if r.authCipherNie != nil { + t := *r.authCipherNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", t, "form", "multi") + } + } + if r.authCipherNiew != nil { + t := *r.authCipherNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", t, "form", "multi") + } + } + if r.authCipherNisw != nil { + t := *r.authCipherNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", t, "form", "multi") } } if r.authPsk != nil { @@ -3417,24 +4197,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", t, "form", "multi") } } if r.authPskEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__empty", r.authPskEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__empty", r.authPskEmpty, "form", "") } if r.authPskIc != nil { t := *r.authPskIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", t, "form", "multi") } } if r.authPskIe != nil { @@ -3442,10 +4222,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", t, "form", "multi") } } if r.authPskIew != nil { @@ -3453,10 +4233,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", t, "form", "multi") } } if r.authPskIsw != nil { @@ -3464,10 +4244,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", t, "form", "multi") } } if r.authPskN != nil { @@ -3475,10 +4255,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", t, "form", "multi") } } if r.authPskNic != nil { @@ -3486,10 +4266,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", t, "form", "multi") } } if r.authPskNie != nil { @@ -3497,10 +4277,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", t, "form", "multi") } } if r.authPskNiew != nil { @@ -3508,10 +4288,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", t, "form", "multi") } } if r.authPskNisw != nil { @@ -3519,10 +4299,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", t, "form", "multi") } } if r.authType != nil { @@ -3530,10 +4310,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "form", "multi") + } + } + if r.authTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__empty", r.authTypeEmpty, "form", "") + } + if r.authTypeIc != nil { + t := *r.authTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", t, "form", "multi") + } + } + if r.authTypeIe != nil { + t := *r.authTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", t, "form", "multi") + } + } + if r.authTypeIew != nil { + t := *r.authTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", t, "form", "multi") + } + } + if r.authTypeIsw != nil { + t := *r.authTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", t, "form", "multi") } } if r.authTypeN != nil { @@ -3541,565 +4368,951 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "form", "multi") } } - if r.created != nil { - t := *r.created + if r.authTypeNic != nil { + t := *r.authTypeNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", t, "form", "multi") } } - if r.createdEmpty != nil { - t := *r.createdEmpty + if r.authTypeNie != nil { + t := *r.authTypeNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", t, "form", "multi") } } - if r.createdGt != nil { - t := *r.createdGt + if r.authTypeNiew != nil { + t := *r.authTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", t, "form", "multi") + } + } + if r.authTypeNisw != nil { + t := *r.authTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") + } + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.group != nil { + t := *r.group + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "form", "multi") + } + } + if r.groupN != nil { + t := *r.groupN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "form", "multi") + } + } + if r.groupId != nil { + t := *r.groupId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "form", "multi") + } + } + if r.groupIdN != nil { + t := *r.groupIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") + } + 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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") + } + } + if r.interfaceId != nil { + t := *r.interfaceId + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "form", "multi") + } + } + if r.interfaceIdN != nil { + t := *r.interfaceIdN + 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).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "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(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "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, "created__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } - if r.createdGte != nil { - t := *r.createdGte + 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, "created__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } - if r.createdLt != nil { - t := *r.createdLt + 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, "created__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } - if r.createdLte != nil { - t := *r.createdLte + 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, "created__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } - if r.createdN != nil { - t := *r.createdN + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + 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, "created__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "form", "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description + 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, "description", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "form", "multi") } } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc + 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, "description__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "form", "multi") } } - if r.descriptionIe != nil { - t := *r.descriptionIe + 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, "description__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "form", "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") + } + 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, "description__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "form", "multi") } } - if r.descriptionIsw != nil { - t := *r.descriptionIsw + 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, "description__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "form", "multi") } } - if r.descriptionN != nil { - t := *r.descriptionN + 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, "description__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "form", "multi") } } - if r.descriptionNic != nil { - t := *r.descriptionNic + 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, "description__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "form", "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie + if r.scopeId != nil { + t := *r.scopeId 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", t, "form", "multi") } } - if r.descriptionNiew != nil { - t := *r.descriptionNiew + if r.scopeIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__empty", r.scopeIdEmpty, "form", "") + } + 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, "description__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", t, "form", "multi") } } - if r.descriptionNisw != nil { - t := *r.descriptionNisw + if r.scopeIdGte != nil { + t := *r.scopeIdGte 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", t, "form", "multi") } } - if r.group != nil { - t := *r.group + if r.scopeIdLt != nil { + t := *r.scopeIdLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", t, "form", "multi") } } - if r.groupN != nil { - t := *r.groupN + if r.scopeIdLte != nil { + t := *r.scopeIdLte 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", t, "form", "multi") } } - if r.groupId != nil { - t := *r.groupId + if r.scopeIdN != nil { + t := *r.scopeIdN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", t, "form", "multi") } } - if r.groupIdN != nil { - t := *r.groupIdN + if r.scopeType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type", r.scopeType, "form", "") + } + if r.scopeTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_type__n", r.scopeTypeN, "form", "") + } + 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, "group_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "form", "multi") } } - if r.id != nil { - t := *r.id + 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, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "form", "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt + 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, "id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "form", "multi") } } - if r.idGte != nil { - t := *r.idGte + 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, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "form", "multi") } } - if r.idLt != nil { - t := *r.idLt + 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, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "form", "multi") } } - if r.idLte != nil { - t := *r.idLte + 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, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "form", "multi") } } - if r.idN != nil { - t := *r.idN + 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, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "form", "multi") } } - if r.interfaceId != nil { - t := *r.interfaceId + 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, "interface_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "form", "multi") } } - if r.interfaceIdN != nil { - t := *r.interfaceIdN + if r.ssid != nil { + t := *r.ssid 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", t, "form", "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.ssidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__empty", r.ssidEmpty, "form", "") + } + if r.ssidIc != nil { + t := *r.ssidIc 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", t, "form", "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.ssidIe != nil { + t := *r.ssidIe 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", t, "form", "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.ssidIew != nil { + t := *r.ssidIew 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", t, "form", "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.ssidIsw != nil { + t := *r.ssidIsw 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", t, "form", "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.ssidN != nil { + t := *r.ssidN 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", t, "form", "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.ssidNic != nil { + t := *r.ssidNic 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", t, "form", "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.ssidNie != nil { + t := *r.ssidNie 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", t, "form", "multi") } } - 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, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.ssid != nil { - t := *r.ssid + if r.ssidNiew != nil { + t := *r.ssidNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", t, "form", "multi") } } - if r.ssidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__empty", r.ssidEmpty, "") - } - if r.ssidIc != nil { - t := *r.ssidIc + if r.ssidNisw != nil { + t := *r.ssidNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", t, "form", "multi") } } - if r.ssidIe != nil { - t := *r.ssidIe + 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, "ssid__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") } } - if r.ssidIew != nil { - t := *r.ssidIew + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") } } - if r.ssidIsw != nil { - t := *r.ssidIsw + if r.statusIe != nil { + t := *r.statusIe 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") } } - if r.ssidN != nil { - t := *r.ssidN + if r.statusIew != nil { + t := *r.statusIew 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") } } - if r.ssidNic != nil { - t := *r.ssidNic + if r.statusIsw != nil { + t := *r.statusIsw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } - if r.ssidNie != nil { - t := *r.ssidNie + if r.statusN != nil { + t := *r.statusN 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") } } - if r.ssidNiew != nil { - t := *r.ssidNiew + if r.statusNic != nil { + t := *r.statusNic 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") } } - if r.ssidNisw != nil { - t := *r.ssidNisw + if r.statusNie != nil { + t := *r.statusNie 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") } } - if r.status != nil { - t := *r.status + if r.statusNiew != nil { + t := *r.statusNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") } } - if r.statusN != nil { - t := *r.statusN + if r.statusNisw != nil { + t := *r.statusNisw 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -4107,10 +5320,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -4118,10 +5331,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -4129,10 +5342,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -4140,10 +5353,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -4151,10 +5364,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -4162,10 +5375,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -4173,10 +5386,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -4184,10 +5397,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -4195,10 +5408,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -4206,24 +5419,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } if r.vlanId != nil { t := *r.vlanId 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "form", "multi") } } if r.vlanIdN != nil { @@ -4231,10 +5444,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "form", "multi") } } // to determine the Content-Type header @@ -4306,9 +5519,9 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele } type ApiWirelessWirelessLansPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 patchedWritableWirelessLANRequest *PatchedWritableWirelessLANRequest } @@ -4326,27 +5539,26 @@ WirelessWirelessLansPartialUpdate Method for WirelessWirelessLansPartialUpdate 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 { return ApiWirelessWirelessLansPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLAN +// @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") @@ -4432,9 +5644,9 @@ func (a *WirelessAPIService) WirelessWirelessLansPartialUpdateExecute(r ApiWirel } type ApiWirelessWirelessLansRetrieveRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 } func (r ApiWirelessWirelessLansRetrieveRequest) Execute() (*WirelessLAN, *http.Response, error) { @@ -4446,27 +5658,26 @@ WirelessWirelessLansRetrieve Method for WirelessWirelessLansRetrieve 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 { return ApiWirelessWirelessLansRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLAN +// @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") @@ -4550,9 +5761,9 @@ func (a *WirelessAPIService) WirelessWirelessLansRetrieveExecute(r ApiWirelessWi } type ApiWirelessWirelessLansUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 writableWirelessLANRequest *WritableWirelessLANRequest } @@ -4570,27 +5781,26 @@ WirelessWirelessLansUpdate Method for WirelessWirelessLansUpdate 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 { return ApiWirelessWirelessLansUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLAN +// @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") @@ -4679,8 +5889,8 @@ func (a *WirelessAPIService) WirelessWirelessLansUpdateExecute(r ApiWirelessWire } type ApiWirelessWirelessLinksBulkDestroyRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLinkRequest *[]WirelessLinkRequest } @@ -4698,22 +5908,22 @@ 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 { return ApiWirelessWirelessLinksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request 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") @@ -4792,8 +6002,8 @@ func (a *WirelessAPIService) WirelessWirelessLinksBulkDestroyExecute(r ApiWirele } type ApiWirelessWirelessLinksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLinkRequest *[]WirelessLinkRequest } @@ -4811,25 +6021,24 @@ 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 { return ApiWirelessWirelessLinksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLink +// @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") @@ -4917,8 +6126,8 @@ func (a *WirelessAPIService) WirelessWirelessLinksBulkPartialUpdateExecute(r Api } type ApiWirelessWirelessLinksBulkUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI wirelessLinkRequest *[]WirelessLinkRequest } @@ -4936,25 +6145,24 @@ 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 { return ApiWirelessWirelessLinksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLink +// @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") @@ -5042,8 +6250,8 @@ func (a *WirelessAPIService) WirelessWirelessLinksBulkUpdateExecute(r ApiWireles } type ApiWirelessWirelessLinksCreateRequest struct { - ctx context.Context - ApiService *WirelessAPIService + ctx context.Context + ApiService WirelessAPI writableWirelessLinkRequest *WritableWirelessLinkRequest } @@ -5061,25 +6269,24 @@ 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 { return ApiWirelessWirelessLinksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return WirelessLink +// @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") @@ -5167,9 +6374,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksCreateExecute(r ApiWirelessWir } type ApiWirelessWirelessLinksDestroyRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 } func (r ApiWirelessWirelessLinksDestroyRequest) Execute() (*http.Response, error) { @@ -5181,24 +6388,24 @@ 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 { 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) { 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") @@ -5273,101 +6480,181 @@ 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 - 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 - interfaceAId *[]int32 - interfaceAIdN *[]int32 - interfaceBId *[]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 + ctx context.Context + ApiService WirelessAPI + authCipher *[]*string + authCipherEmpty *bool + authCipherIc *[]*string + authCipherIe *[]*string + authCipherIew *[]*string + authCipherIsw *[]*string + authCipherN *[]*string + authCipherNic *[]*string + authCipherNie *[]*string + authCipherNiew *[]*string + authCipherNisw *[]*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 + authTypeEmpty *bool + authTypeIc *[]*string + authTypeIe *[]*string + authTypeIew *[]*string + authTypeIsw *[]*string + authTypeN *[]*string + authTypeNic *[]*string + authTypeNie *[]*string + authTypeNiew *[]*string + authTypeNisw *[]*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 + distance *[]float64 + distanceEmpty *bool + distanceGt *[]float64 + distanceGte *[]float64 + distanceLt *[]float64 + distanceLte *[]float64 + distanceN *[]float64 + distanceUnit *CircuitsCircuitsListDistanceUnitParameter + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaceAId *[]int32 + interfaceAIdN *[]int32 + interfaceBId *[]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 -} - -func (r ApiWirelessWirelessLinksListRequest) AuthCipher(authCipher []string) ApiWirelessWirelessLinksListRequest { + 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 + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string + statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipher(authCipher []*string) ApiWirelessWirelessLinksListRequest { r.authCipher = &authCipher return r } -func (r ApiWirelessWirelessLinksListRequest) AuthCipherN(authCipherN []string) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) AuthCipherEmpty(authCipherEmpty bool) ApiWirelessWirelessLinksListRequest { + r.authCipherEmpty = &authCipherEmpty + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIc(authCipherIc []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherIc = &authCipherIc + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIe(authCipherIe []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherIe = &authCipherIe + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIew(authCipherIew []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherIew = &authCipherIew + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIsw(authCipherIsw []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherIsw = &authCipherIsw + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherN(authCipherN []*string) ApiWirelessWirelessLinksListRequest { r.authCipherN = &authCipherN return r } +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNic(authCipherNic []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherNic = &authCipherNic + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNie(authCipherNie []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherNie = &authCipherNie + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNiew(authCipherNiew []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherNiew = &authCipherNiew + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNisw(authCipherNisw []*string) ApiWirelessWirelessLinksListRequest { + r.authCipherNisw = &authCipherNisw + return r +} + func (r ApiWirelessWirelessLinksListRequest) AuthPsk(authPsk []string) ApiWirelessWirelessLinksListRequest { r.authPsk = &authPsk return r @@ -5423,16 +6710,61 @@ func (r ApiWirelessWirelessLinksListRequest) AuthPskNisw(authPskNisw []string) A return r } -func (r ApiWirelessWirelessLinksListRequest) AuthType(authType []string) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) AuthType(authType []*string) ApiWirelessWirelessLinksListRequest { r.authType = &authType return r } -func (r ApiWirelessWirelessLinksListRequest) AuthTypeN(authTypeN []string) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) AuthTypeEmpty(authTypeEmpty bool) ApiWirelessWirelessLinksListRequest { + r.authTypeEmpty = &authTypeEmpty + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIc(authTypeIc []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeIc = &authTypeIc + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIe(authTypeIe []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeIe = &authTypeIe + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIew(authTypeIew []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeIew = &authTypeIew + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIsw(authTypeIsw []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeIsw = &authTypeIsw + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeN(authTypeN []*string) ApiWirelessWirelessLinksListRequest { r.authTypeN = &authTypeN return r } +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNic(authTypeNic []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeNic = &authTypeNic + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNie(authTypeNie []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeNie = &authTypeNie + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNiew(authTypeNiew []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeNiew = &authTypeNiew + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNisw(authTypeNisw []*string) ApiWirelessWirelessLinksListRequest { + r.authTypeNisw = &authTypeNisw + return r +} + func (r ApiWirelessWirelessLinksListRequest) Created(created []time.Time) ApiWirelessWirelessLinksListRequest { r.created = &created return r @@ -5523,8 +6855,49 @@ func (r ApiWirelessWirelessLinksListRequest) DescriptionNiew(descriptionNiew []s return r } -func (r ApiWirelessWirelessLinksListRequest) DescriptionNisw(descriptionNisw []string) ApiWirelessWirelessLinksListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiWirelessWirelessLinksListRequest) DescriptionNisw(descriptionNisw []string) ApiWirelessWirelessLinksListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiWirelessWirelessLinksListRequest) Distance(distance []float64) ApiWirelessWirelessLinksListRequest { + r.distance = &distance + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceEmpty(distanceEmpty bool) ApiWirelessWirelessLinksListRequest { + r.distanceEmpty = &distanceEmpty + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGt(distanceGt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGt = &distanceGt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGte(distanceGte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGte = &distanceGte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLt(distanceLt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLt = &distanceLt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLte(distanceLte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLte = &distanceLte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceN(distanceN []float64) ApiWirelessWirelessLinksListRequest { + r.distanceN = &distanceN + return r +} + +// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +func (r ApiWirelessWirelessLinksListRequest) DistanceUnit(distanceUnit CircuitsCircuitsListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { + r.distanceUnit = &distanceUnit return r } @@ -5707,11 +7080,56 @@ func (r ApiWirelessWirelessLinksListRequest) Status(status []string) ApiWireless return r } +func (r ApiWirelessWirelessLinksListRequest) StatusEmpty(statusEmpty bool) ApiWirelessWirelessLinksListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiWirelessWirelessLinksListRequest) StatusIc(statusIc []string) ApiWirelessWirelessLinksListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiWirelessWirelessLinksListRequest) StatusIe(statusIe []string) ApiWirelessWirelessLinksListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiWirelessWirelessLinksListRequest) StatusIew(statusIew []string) ApiWirelessWirelessLinksListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiWirelessWirelessLinksListRequest) StatusIsw(statusIsw []string) ApiWirelessWirelessLinksListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiWirelessWirelessLinksListRequest) StatusN(statusN []string) ApiWirelessWirelessLinksListRequest { r.statusN = &statusN return r } +func (r ApiWirelessWirelessLinksListRequest) StatusNic(statusNic []string) ApiWirelessWirelessLinksListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiWirelessWirelessLinksListRequest) StatusNie(statusNie []string) ApiWirelessWirelessLinksListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiWirelessWirelessLinksListRequest) StatusNiew(statusNiew []string) ApiWirelessWirelessLinksListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiWirelessWirelessLinksListRequest) StatusNisw(statusNisw []string) ApiWirelessWirelessLinksListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiWirelessWirelessLinksListRequest) Tag(tag []string) ApiWirelessWirelessLinksListRequest { r.tag = &tag return r @@ -5734,26 +7152,22 @@ func (r ApiWirelessWirelessLinksListRequest) TenantN(tenantN []string) ApiWirele return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLinksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5784,25 +7198,24 @@ 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 { return ApiWirelessWirelessLinksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWirelessLinkList +// @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") @@ -5821,10 +7234,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "form", "multi") + } + } + if r.authCipherEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__empty", r.authCipherEmpty, "form", "") + } + if r.authCipherIc != nil { + t := *r.authCipherIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", t, "form", "multi") + } + } + if r.authCipherIe != nil { + t := *r.authCipherIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", t, "form", "multi") + } + } + if r.authCipherIew != nil { + t := *r.authCipherIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", t, "form", "multi") + } + } + if r.authCipherIsw != nil { + t := *r.authCipherIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", t, "form", "multi") } } if r.authCipherN != nil { @@ -5832,10 +7292,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "form", "multi") + } + } + if r.authCipherNic != nil { + t := *r.authCipherNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", t, "form", "multi") + } + } + if r.authCipherNie != nil { + t := *r.authCipherNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", t, "form", "multi") + } + } + if r.authCipherNiew != nil { + t := *r.authCipherNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", t, "form", "multi") + } + } + if r.authCipherNisw != nil { + t := *r.authCipherNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", t, "form", "multi") } } if r.authPsk != nil { @@ -5843,24 +7347,24 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", t, "form", "multi") } } if r.authPskEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__empty", r.authPskEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__empty", r.authPskEmpty, "form", "") } if r.authPskIc != nil { t := *r.authPskIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", t, "form", "multi") } } if r.authPskIe != nil { @@ -5868,10 +7372,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", t, "form", "multi") } } if r.authPskIew != nil { @@ -5879,10 +7383,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", t, "form", "multi") } } if r.authPskIsw != nil { @@ -5890,10 +7394,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", t, "form", "multi") } } if r.authPskN != nil { @@ -5901,10 +7405,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", t, "form", "multi") } } if r.authPskNic != nil { @@ -5912,10 +7416,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", t, "form", "multi") } } if r.authPskNie != nil { @@ -5923,10 +7427,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", t, "form", "multi") } } if r.authPskNiew != nil { @@ -5934,10 +7438,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", t, "form", "multi") } } if r.authPskNisw != nil { @@ -5945,10 +7449,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", t, "form", "multi") } } if r.authType != nil { @@ -5956,10 +7460,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "form", "multi") + } + } + if r.authTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__empty", r.authTypeEmpty, "form", "") + } + if r.authTypeIc != nil { + t := *r.authTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", t, "form", "multi") + } + } + if r.authTypeIe != nil { + t := *r.authTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", t, "form", "multi") + } + } + if r.authTypeIew != nil { + t := *r.authTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", t, "form", "multi") + } + } + if r.authTypeIsw != nil { + t := *r.authTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", t, "form", "multi") } } if r.authTypeN != nil { @@ -5967,10 +7518,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "form", "multi") + } + } + if r.authTypeNic != nil { + t := *r.authTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", t, "form", "multi") + } + } + if r.authTypeNie != nil { + t := *r.authTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", t, "form", "multi") + } + } + if r.authTypeNiew != nil { + t := *r.authTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", t, "form", "multi") + } + } + if r.authTypeNisw != nil { + t := *r.authTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", t, "form", "multi") } } if r.created != nil { @@ -5978,10 +7573,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "form", "multi") } } if r.createdEmpty != nil { @@ -5989,10 +7584,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "form", "multi") } } if r.createdGt != nil { @@ -6000,10 +7595,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "form", "multi") } } if r.createdGte != nil { @@ -6011,10 +7606,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "form", "multi") } } if r.createdLt != nil { @@ -6022,10 +7617,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "form", "multi") } } if r.createdLte != nil { @@ -6033,10 +7628,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "form", "multi") } } if r.createdN != nil { @@ -6044,38 +7639,38 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "form", "multi") } } if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "form", "multi") } } if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "form", "multi") } } if r.descriptionIe != nil { @@ -6083,10 +7678,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "form", "multi") } } if r.descriptionIew != nil { @@ -6094,10 +7689,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "form", "multi") } } if r.descriptionIsw != nil { @@ -6105,10 +7700,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "form", "multi") } } if r.descriptionN != nil { @@ -6116,10 +7711,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "form", "multi") } } if r.descriptionNic != nil { @@ -6127,10 +7722,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "form", "multi") } } if r.descriptionNie != nil { @@ -6138,10 +7733,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "form", "multi") } } if r.descriptionNiew != nil { @@ -6149,10 +7744,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "form", "multi") } } if r.descriptionNisw != nil { @@ -6160,35 +7755,107 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "form", "multi") + } + } + if r.distance != nil { + t := *r.distance + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", t, "form", "multi") + } + } + if r.distanceEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__empty", r.distanceEmpty, "form", "") + } + if r.distanceGt != nil { + t := *r.distanceGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", t, "form", "multi") + } + } + if r.distanceGte != nil { + t := *r.distanceGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", t, "form", "multi") + } + } + if r.distanceLt != nil { + t := *r.distanceLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", t, "form", "multi") + } + } + if r.distanceLte != nil { + t := *r.distanceLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", t, "form", "multi") + } + } + if r.distanceN != nil { + t := *r.distanceN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", t, "form", "multi") } } + if r.distanceUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit", r.distanceUnit, "form", "") + } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "form", "multi") } } if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "form", "") } 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") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "form", "multi") } } if r.idGte != nil { @@ -6196,10 +7863,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "form", "multi") } } if r.idLt != nil { @@ -6207,10 +7874,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "form", "multi") } } if r.idLte != nil { @@ -6218,10 +7885,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "form", "multi") } } if r.idN != nil { @@ -6229,10 +7896,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "form", "multi") } } if r.interfaceAId != nil { @@ -6240,10 +7907,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id", t, "form", "multi") } } if r.interfaceAIdN != nil { @@ -6251,10 +7918,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__n", t, "form", "multi") } } if r.interfaceBId != nil { @@ -6262,10 +7929,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id", t, "form", "multi") } } if r.interfaceBIdN != nil { @@ -6273,10 +7940,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__n", t, "form", "multi") } } if r.lastUpdated != nil { @@ -6284,10 +7951,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "form", "multi") } } if r.lastUpdatedEmpty != nil { @@ -6295,10 +7962,10 @@ 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__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "form", "multi") } } if r.lastUpdatedGt != nil { @@ -6306,10 +7973,10 @@ 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__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "form", "multi") } } if r.lastUpdatedGte != nil { @@ -6317,10 +7984,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "form", "multi") } } if r.lastUpdatedLt != nil { @@ -6328,10 +7995,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "form", "multi") } } if r.lastUpdatedLte != nil { @@ -6339,10 +8006,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "form", "multi") } } if r.lastUpdatedN != nil { @@ -6350,50 +8017,50 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "form", "multi") } } if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") } if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "form", "") } if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "form", "") } if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "form", "") } if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "form", "") } if r.ssid != nil { t := *r.ssid if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", t, "form", "multi") } } if r.ssidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__empty", r.ssidEmpty, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__empty", r.ssidEmpty, "form", "") } if r.ssidIc != nil { t := *r.ssidIc 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", t, "form", "multi") } } if r.ssidIe != nil { @@ -6401,10 +8068,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", t, "form", "multi") } } if r.ssidIew != nil { @@ -6412,10 +8079,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", t, "form", "multi") } } if r.ssidIsw != nil { @@ -6423,10 +8090,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", t, "form", "multi") } } if r.ssidN != nil { @@ -6434,10 +8101,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", t, "form", "multi") } } if r.ssidNic != nil { @@ -6445,10 +8112,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", t, "form", "multi") } } if r.ssidNie != nil { @@ -6456,10 +8123,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", t, "form", "multi") } } if r.ssidNiew != nil { @@ -6467,10 +8134,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", t, "form", "multi") } } if r.ssidNisw != nil { @@ -6478,10 +8145,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", t, "form", "multi") } } if r.status != nil { @@ -6489,10 +8156,57 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "form", "multi") + } + } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "form", "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "form", "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "form", "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "form", "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "form", "multi") } } if r.statusN != nil { @@ -6500,10 +8214,54 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "form", "multi") + } + } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "form", "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "form", "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "form", "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "form", "multi") } } if r.tag != nil { @@ -6511,10 +8269,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "form", "multi") } } if r.tagN != nil { @@ -6522,10 +8280,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "form", "multi") } } if r.tenant != nil { @@ -6533,10 +8291,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "form", "multi") } } if r.tenantN != nil { @@ -6544,10 +8302,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "form", "multi") } } if r.tenantGroup != nil { @@ -6555,10 +8313,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "form", "multi") } } if r.tenantGroupN != nil { @@ -6566,10 +8324,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "form", "multi") } } if r.tenantGroupId != nil { @@ -6577,10 +8335,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "form", "multi") } } if r.tenantGroupIdN != nil { @@ -6588,10 +8346,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "form", "multi") } } if r.tenantId != nil { @@ -6599,10 +8357,10 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "form", "multi") } } if r.tenantIdN != nil { @@ -6610,14 +8368,14 @@ 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).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "form", "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "form", "multi") } } if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "form", "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6688,9 +8446,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel } type ApiWirelessWirelessLinksPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 patchedWritableWirelessLinkRequest *PatchedWritableWirelessLinkRequest } @@ -6708,27 +8466,26 @@ 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 { return ApiWirelessWirelessLinksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLink +// @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") @@ -6814,9 +8571,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksPartialUpdateExecute(r ApiWire } type ApiWirelessWirelessLinksRetrieveRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 } func (r ApiWirelessWirelessLinksRetrieveRequest) Execute() (*WirelessLink, *http.Response, error) { @@ -6828,27 +8585,26 @@ 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 { return ApiWirelessWirelessLinksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLink +// @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") @@ -6932,9 +8688,9 @@ func (a *WirelessAPIService) WirelessWirelessLinksRetrieveExecute(r ApiWirelessW } type ApiWirelessWirelessLinksUpdateRequest struct { - ctx context.Context - ApiService *WirelessAPIService - id int32 + ctx context.Context + ApiService WirelessAPI + id int32 writableWirelessLinkRequest *WritableWirelessLinkRequest } @@ -6952,27 +8708,26 @@ 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 { return ApiWirelessWirelessLinksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLink +// @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") diff --git a/client.go b/client.go index 7ced10a114..0fb996e949 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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)/(?:[^;]+\+)?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 v4.0.3 (4.0) +// APIClient manages communication with the NetBox REST API API v4.2.2 (4.2) // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -48,29 +49,29 @@ type APIClient struct { // API Services - CircuitsAPI *CircuitsAPIService + CircuitsAPI CircuitsAPI - CoreAPI *CoreAPIService + CoreAPI CoreAPI - DcimAPI *DcimAPIService + DcimAPI DcimAPI - ExtrasAPI *ExtrasAPIService + ExtrasAPI ExtrasAPI - IpamAPI *IpamAPIService + IpamAPI IpamAPI - SchemaAPI *SchemaAPIService + SchemaAPI SchemaAPI - StatusAPI *StatusAPIService + StatusAPI StatusAPI - TenancyAPI *TenancyAPIService + TenancyAPI TenancyAPI - UsersAPI *UsersAPIService + UsersAPI UsersAPI - VirtualizationAPI *VirtualizationAPIService + VirtualizationAPI VirtualizationAPI - VpnAPI *VpnAPIService + VpnAPI VpnAPI - WirelessAPI *WirelessAPIService + WirelessAPI WirelessAPI } type service struct { @@ -157,15 +158,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 "" } @@ -174,88 +175,92 @@ func parameterValueToString(obj interface{}, key string) string { // parameterAddToHeaderOrQuery adds the provided object to the request header or url query // supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { var v = reflect.ValueOf(obj) var value = "" if v == reflect.ValueOf(nil) { 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, style, collectionType) return } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), 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.RFC3339Nano), style, 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 CircuitsCircuitTerminationsBulkDestroy(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() +> CircuitsCircuitGroupAssignmentsBulkDestroy(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() @@ -83,13 +129,13 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), "MemberType_example", int64(123))} // []CircuitGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -101,12 +147,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTerminationRequest** | [**[]CircuitTerminationRequest**](CircuitTerminationRequest.md) | | + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | ### Return type @@ -126,9 +172,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsBulkPartialUpdate +## CircuitsCircuitGroupAssignmentsBulkPartialUpdate -> []CircuitTermination CircuitsCircuitTerminationsBulkPartialUpdate(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() @@ -147,17 +193,17 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), "MemberType_example", int64(123))} // []CircuitGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CircuitsCircuitTerminationsBulkPartialUpdate`: []CircuitTermination - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate`: %v\n", resp) + // response from `CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: %v\n", resp) } ``` @@ -167,16 +213,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTerminationRequest** | [**[]CircuitTerminationRequest**](CircuitTerminationRequest.md) | | + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | ### Return type -[**[]CircuitTermination**](CircuitTermination.md) +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) ### Authorization @@ -192,9 +238,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsBulkUpdate +## CircuitsCircuitGroupAssignmentsBulkUpdate -> []CircuitTermination CircuitsCircuitTerminationsBulkUpdate(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() @@ -213,17 +259,17 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), "MemberType_example", int64(123))} // []CircuitGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CircuitsCircuitTerminationsBulkUpdate`: []CircuitTermination - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate`: %v\n", resp) + // response from `CircuitsCircuitGroupAssignmentsBulkUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate`: %v\n", resp) } ``` @@ -233,16 +279,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTerminationRequest** | [**[]CircuitTerminationRequest**](CircuitTerminationRequest.md) | | + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | ### Return type -[**[]CircuitTermination**](CircuitTermination.md) +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) ### Authorization @@ -258,9 +304,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsCreate +## CircuitsCircuitGroupAssignmentsCreate -> CircuitTermination CircuitsCircuitTerminationsCreate(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsCreate(ctx).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() @@ -279,17 +325,17 @@ import ( ) func main() { - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), "MemberType_example", int64(123)) // WritableCircuitGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate(context.Background()).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CircuitsCircuitTerminationsCreate`: CircuitTermination - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsCreate`: %v\n", resp) + // response from `CircuitsCircuitGroupAssignmentsCreate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate`: %v\n", resp) } ``` @@ -299,16 +345,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTerminationRequest** | [**CircuitTerminationRequest**](CircuitTerminationRequest.md) | | + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | ### Return type -[**CircuitTermination**](CircuitTermination.md) +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) ### Authorization @@ -324,9 +370,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsDestroy +## CircuitsCircuitGroupAssignmentsDestroy -> CircuitsCircuitTerminationsDestroy(ctx, id).Execute() +> CircuitsCircuitGroupAssignmentsDestroy(ctx, id).Execute() @@ -345,13 +391,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit termination. + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -363,11 +409,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 circuit termination. | +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -392,9 +438,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsList +## CircuitsCircuitGroupAssignmentsList -> PaginatedCircuitTerminationList CircuitsCircuitTerminationsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).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() +> PaginatedCircuitGroupAssignmentList CircuitsCircuitGroupAssignmentsList(ctx).Circuit(circuit).CircuitId(circuitId).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).MemberId(memberId).MemberIdEmpty(memberIdEmpty).MemberIdGt(memberIdGt).MemberIdGte(memberIdGte).MemberIdLt(memberIdLt).MemberIdLte(memberIdLte).MemberIdN(memberIdN).MemberType(memberType).MemberTypeN(memberTypeN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).Provider(provider).ProviderId(providerId).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualCircuit(virtualCircuit).VirtualCircuitId(virtualCircuitId).Execute() @@ -414,13 +460,8 @@ import ( ) func main() { - cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - cabled := true // bool | (optional) - circuitId := []int32{int32(123)} // []int32 | Circuit (optional) - circuitIdN := []int32{int32(123)} // []int32 | Circuit (optional) + circuit := []string{"Inner_example"} // []string | (optional) + circuitId := []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) @@ -429,17 +470,10 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + group := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupN := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -455,73 +489,37 @@ func main() { 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) - markConnected := true // bool | (optional) + memberId := []int32{int32(123)} // []int32 | (optional) + memberIdEmpty := true // bool | (optional) + memberIdGt := []int32{int32(123)} // []int32 | (optional) + memberIdGte := []int32{int32(123)} // []int32 | (optional) + memberIdLt := []int32{int32(123)} // []int32 | (optional) + memberIdLte := []int32{int32(123)} // []int32 | (optional) + memberIdN := []int32{int32(123)} // []int32 | (optional) + memberType := "memberType_example" // string | (optional) + memberTypeN := "memberTypeN_example" // string | (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) - portSpeedLte := []int32{int32(123)} // []int32 | (optional) - portSpeedN := []int32{int32(123)} // []int32 | (optional) - ppInfo := []string{"Inner_example"} // []string | (optional) - ppInfoEmpty := true // bool | (optional) - ppInfoIc := []string{"Inner_example"} // []string | (optional) - ppInfoIe := []string{"Inner_example"} // []string | (optional) - ppInfoIew := []string{"Inner_example"} // []string | (optional) - ppInfoIsw := []string{"Inner_example"} // []string | (optional) - ppInfoN := []string{"Inner_example"} // []string | (optional) - ppInfoNic := []string{"Inner_example"} // []string | (optional) - ppInfoNie := []string{"Inner_example"} // []string | (optional) - ppInfoNiew := []string{"Inner_example"} // []string | (optional) - ppInfoNisw := []string{"Inner_example"} // []string | (optional) - provider := []string{"Inner_example"} // []string | Provider (slug) (optional) - providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) - providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) - providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) - providerNetworkId := []*int32{int32(123)} // []*int32 | ProviderNetwork (ID) (optional) - providerNetworkIdN := []*int32{int32(123)} // []*int32 | ProviderNetwork (ID) (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + provider := []string{"Inner_example"} // []string | (optional) + providerId := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) - site := []string{"Inner_example"} // []string | Site (slug) (optional) - siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) - siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - termSide := openapiclient.Termination("A") // Termination | * `A` - A * `Z` - Z (optional) - termSideN := openapiclient.Termination("A") // Termination | * `A` - A * `Z` - Z (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) - upstreamSpeedLte := []int32{int32(123)} // []int32 | (optional) - upstreamSpeedN := []int32{int32(123)} // []int32 | (optional) - xconnectId := []string{"Inner_example"} // []string | (optional) - xconnectIdEmpty := true // bool | (optional) - xconnectIdIc := []string{"Inner_example"} // []string | (optional) - xconnectIdIe := []string{"Inner_example"} // []string | (optional) - xconnectIdIew := []string{"Inner_example"} // []string | (optional) - xconnectIdIsw := []string{"Inner_example"} // []string | (optional) - xconnectIdN := []string{"Inner_example"} // []string | (optional) - xconnectIdNic := []string{"Inner_example"} // []string | (optional) - xconnectIdNie := []string{"Inner_example"} // []string | (optional) - xconnectIdNiew := []string{"Inner_example"} // []string | (optional) - xconnectIdNisw := []string{"Inner_example"} // []string | (optional) + virtualCircuit := []string{"Inner_example"} // []string | (optional) + virtualCircuitId := []int32{int32(123)} // []int32 | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).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() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsList(context.Background()).Circuit(circuit).CircuitId(circuitId).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).MemberId(memberId).MemberIdEmpty(memberIdEmpty).MemberIdGt(memberIdGt).MemberIdGte(memberIdGte).MemberIdLt(memberIdLt).MemberIdLte(memberIdLte).MemberIdN(memberIdN).MemberType(memberType).MemberTypeN(memberTypeN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).Provider(provider).ProviderId(providerId).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualCircuit(virtualCircuit).VirtualCircuitId(virtualCircuitId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsList``: %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) + // response from `CircuitsCircuitGroupAssignmentsList`: PaginatedCircuitGroupAssignmentList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsList`: %v\n", resp) } ``` @@ -531,18 +529,13 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableId** | **[]int32** | Cable (ID) | - **cableIdN** | **[]int32** | Cable (ID) | - **cabled** | **bool** | | - **circuitId** | **[]int32** | Circuit | - **circuitIdN** | **[]int32** | Circuit | + **circuit** | **[]string** | | + **circuitId** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -551,17 +544,10 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **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** | Circuit group (slug) | + **groupN** | **[]string** | Circuit group (slug) | + **groupId** | **[]int32** | Circuit group (ID) | + **groupIdN** | **[]int32** | Circuit group (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -577,67 +563,31 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **markConnected** | **bool** | | + **memberId** | **[]int32** | | + **memberIdEmpty** | **bool** | | + **memberIdGt** | **[]int32** | | + **memberIdGte** | **[]int32** | | + **memberIdLt** | **[]int32** | | + **memberIdLte** | **[]int32** | | + **memberIdN** | **[]int32** | | + **memberType** | **string** | | + **memberTypeN** | **string** | | **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** | | - **portSpeedLte** | **[]int32** | | - **portSpeedN** | **[]int32** | | - **ppInfo** | **[]string** | | - **ppInfoEmpty** | **bool** | | - **ppInfoIc** | **[]string** | | - **ppInfoIe** | **[]string** | | - **ppInfoIew** | **[]string** | | - **ppInfoIsw** | **[]string** | | - **ppInfoN** | **[]string** | | - **ppInfoNic** | **[]string** | | - **ppInfoNie** | **[]string** | | - **ppInfoNiew** | **[]string** | | - **ppInfoNisw** | **[]string** | | - **provider** | **[]string** | Provider (slug) | - **providerN** | **[]string** | Provider (slug) | - **providerId** | **[]int32** | Provider (ID) | - **providerIdN** | **[]int32** | Provider (ID) | - **providerNetworkId** | **[]int32** | ProviderNetwork (ID) | - **providerNetworkIdN** | **[]int32** | ProviderNetwork (ID) | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **provider** | **[]string** | | + **providerId** | **[]int32** | | **q** | **string** | Search | - **site** | **[]string** | Site (slug) | - **siteN** | **[]string** | Site (slug) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | - **termSide** | [**Termination**](Termination.md) | * `A` - A * `Z` - Z | - **termSideN** | [**Termination**](Termination.md) | * `A` - A * `Z` - Z | **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** | | + **virtualCircuit** | **[]string** | | + **virtualCircuitId** | **[]int32** | | ### Return type -[**PaginatedCircuitTerminationList**](PaginatedCircuitTerminationList.md) +[**PaginatedCircuitGroupAssignmentList**](PaginatedCircuitGroupAssignmentList.md) ### Authorization @@ -653,9 +603,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsPartialUpdate +## CircuitsCircuitGroupAssignmentsPartialUpdate -> CircuitTermination CircuitsCircuitTerminationsPartialUpdate(ctx, id).PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest).Execute() +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() @@ -674,18 +624,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit termination. - patchedCircuitTerminationRequest := *openapiclient.NewPatchedCircuitTerminationRequest() // PatchedCircuitTerminationRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + patchedWritableCircuitGroupAssignmentRequest := *openapiclient.NewPatchedWritableCircuitGroupAssignmentRequest() // PatchedWritableCircuitGroupAssignmentRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate``: %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) + // response from `CircuitsCircuitGroupAssignmentsPartialUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate`: %v\n", resp) } ``` @@ -695,21 +645,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 circuit termination. | +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedCircuitTerminationRequest** | [**PatchedCircuitTerminationRequest**](PatchedCircuitTerminationRequest.md) | | + **patchedWritableCircuitGroupAssignmentRequest** | [**PatchedWritableCircuitGroupAssignmentRequest**](PatchedWritableCircuitGroupAssignmentRequest.md) | | ### Return type -[**CircuitTermination**](CircuitTermination.md) +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) ### Authorization @@ -725,9 +675,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsPathsRetrieve +## CircuitsCircuitGroupAssignmentsRetrieve -> CircuitTermination CircuitsCircuitTerminationsPathsRetrieve(ctx, id).Execute() +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsRetrieve(ctx, id).Execute() @@ -746,17 +696,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit termination. + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve(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.CircuitsCircuitGroupAssignmentsRetrieve``: %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) + // response from `CircuitsCircuitGroupAssignmentsRetrieve`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve`: %v\n", resp) } ``` @@ -766,11 +716,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 circuit termination. | +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsPathsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -779,7 +729,7 @@ Name | Type | Description | Notes ### Return type -[**CircuitTermination**](CircuitTermination.md) +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) ### Authorization @@ -795,9 +745,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsRetrieve +## CircuitsCircuitGroupAssignmentsUpdate -> CircuitTermination CircuitsCircuitTerminationsRetrieve(ctx, id).Execute() +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsUpdate(ctx, id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() @@ -816,17 +766,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit termination. + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), "MemberType_example", int64(123)) // WritableCircuitGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate(context.Background(), id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate``: %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) + // response from `CircuitsCircuitGroupAssignmentsUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate`: %v\n", resp) } ``` @@ -836,20 +787,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 circuit termination. | +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | ### Return type -[**CircuitTermination**](CircuitTermination.md) +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) ### Authorization @@ -857,7 +809,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) @@ -865,9 +817,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTerminationsUpdate +## CircuitsCircuitGroupsBulkDestroy -> CircuitTermination CircuitsCircuitTerminationsUpdate(ctx, id).CircuitTerminationRequest(circuitTerminationRequest).Execute() +> CircuitsCircuitGroupsBulkDestroy(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() @@ -886,42 +838,34 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit termination. - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).CircuitTerminationRequest(circuitTerminationRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkDestroy(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkDestroy``: %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) } ``` ### 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 circuit termination. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **circuitTerminationRequest** | [**CircuitTerminationRequest**](CircuitTerminationRequest.md) | | + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | ### Return type -[**CircuitTermination**](CircuitTermination.md) + (empty response body) ### Authorization @@ -930,16 +874,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **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) -## CircuitsCircuitTypesBulkDestroy +## CircuitsCircuitGroupsBulkPartialUpdate -> CircuitsCircuitTypesBulkDestroy(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() +> []CircuitGroup CircuitsCircuitGroupsBulkPartialUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() @@ -958,15 +902,17 @@ import ( ) func main() { - circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest | + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkDestroy(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `CircuitsCircuitGroupsBulkPartialUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -976,16 +922,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTypeRequest** | [**[]CircuitTypeRequest**](CircuitTypeRequest.md) | | + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | ### Return type - (empty response body) +[**[]CircuitGroup**](CircuitGroup.md) ### Authorization @@ -994,16 +940,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) -## CircuitsCircuitTypesBulkPartialUpdate +## CircuitsCircuitGroupsBulkUpdate -> []CircuitType CircuitsCircuitTypesBulkPartialUpdate(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() +> []CircuitGroup CircuitsCircuitGroupsBulkUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() @@ -1022,17 +968,17 @@ import ( ) func main() { - circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest | + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate``: %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) + // response from `CircuitsCircuitGroupsBulkUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate`: %v\n", resp) } ``` @@ -1042,16 +988,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTypeRequest** | [**[]CircuitTypeRequest**](CircuitTypeRequest.md) | | + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | ### Return type -[**[]CircuitType**](CircuitType.md) +[**[]CircuitGroup**](CircuitGroup.md) ### Authorization @@ -1067,9 +1013,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTypesBulkUpdate +## CircuitsCircuitGroupsCreate -> []CircuitType CircuitsCircuitTypesBulkUpdate(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() +> CircuitGroup CircuitsCircuitGroupsCreate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() @@ -1088,17 +1034,17 @@ import ( ) func main() { - circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest | + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsCreate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsCreate``: %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) + // response from `CircuitsCircuitGroupsCreate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsCreate`: %v\n", resp) } ``` @@ -1108,16 +1054,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTypeRequest** | [**[]CircuitTypeRequest**](CircuitTypeRequest.md) | | + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | ### Return type -[**[]CircuitType**](CircuitType.md) +[**CircuitGroup**](CircuitGroup.md) ### Authorization @@ -1133,9 +1079,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTypesCreate +## CircuitsCircuitGroupsDestroy -> CircuitType CircuitsCircuitTypesCreate(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() +> CircuitsCircuitGroupsDestroy(ctx, id).Execute() @@ -1154,79 +1100,13 @@ import ( ) func main() { - circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - 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, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitTypesCreate`: CircuitType - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesCreate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesCreateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitTypeRequest** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | - -### Return type - -[**CircuitType**](CircuitType.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) - - -## CircuitsCircuitTypesDestroy - -> CircuitsCircuitTypesDestroy(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit type. + id := int32(56) // int32 | A unique integer value identifying this circuit group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsDestroy(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.CircuitsCircuitGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1238,11 +1118,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 circuit type. | +**id** | **int32** | A unique integer value identifying this circuit group. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -1267,9 +1147,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTypesList +## CircuitsCircuitGroupsList -> PaginatedCircuitTypeList CircuitsCircuitTypesList(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() +> PaginatedCircuitGroupList CircuitsCircuitGroupsList(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).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1289,17 +1169,6 @@ import ( ) func main() { - color := []string{"Inner_example"} // []string | (optional) - colorEmpty := true // bool | (optional) - colorIc := []string{"Inner_example"} // []string | (optional) - colorIe := []string{"Inner_example"} // []string | (optional) - colorIew := []string{"Inner_example"} // []string | (optional) - colorIsw := []string{"Inner_example"} // []string | (optional) - colorN := []string{"Inner_example"} // []string | (optional) - colorNic := []string{"Inner_example"} // []string | (optional) - colorNie := []string{"Inner_example"} // []string | (optional) - 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) @@ -1362,17 +1231,25 @@ func main() { slugNisw := []string{"Inner_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 := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesList(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() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsList(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).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 `CircuitsAPI.CircuitsCircuitTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsList``: %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) + // response from `CircuitsCircuitGroupsList`: PaginatedCircuitGroupList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsList`: %v\n", resp) } ``` @@ -1382,22 +1259,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1460,11 +1326,19 @@ Name | Type | Description | Notes **slugNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | ### Return type -[**PaginatedCircuitTypeList**](PaginatedCircuitTypeList.md) +[**PaginatedCircuitGroupList**](PaginatedCircuitGroupList.md) ### Authorization @@ -1480,9 +1354,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTypesPartialUpdate +## CircuitsCircuitGroupsPartialUpdate -> CircuitType CircuitsCircuitTypesPartialUpdate(ctx, id).PatchedCircuitTypeRequest(patchedCircuitTypeRequest).Execute() +> CircuitGroup CircuitsCircuitGroupsPartialUpdate(ctx, id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() @@ -1501,18 +1375,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit type. - patchedCircuitTypeRequest := *openapiclient.NewPatchedCircuitTypeRequest() // PatchedCircuitTypeRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this circuit group. + patchedCircuitGroupRequest := *openapiclient.NewPatchedCircuitGroupRequest() // PatchedCircuitGroupRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesPartialUpdate(context.Background(), id).PatchedCircuitTypeRequest(patchedCircuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsPartialUpdate(context.Background(), id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate``: %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) + // response from `CircuitsCircuitGroupsPartialUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate`: %v\n", resp) } ``` @@ -1522,21 +1396,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 circuit type. | +**id** | **int32** | A unique integer value identifying this circuit group. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedCircuitTypeRequest** | [**PatchedCircuitTypeRequest**](PatchedCircuitTypeRequest.md) | | + **patchedCircuitGroupRequest** | [**PatchedCircuitGroupRequest**](PatchedCircuitGroupRequest.md) | | ### Return type -[**CircuitType**](CircuitType.md) +[**CircuitGroup**](CircuitGroup.md) ### Authorization @@ -1552,9 +1426,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTypesRetrieve +## CircuitsCircuitGroupsRetrieve -> CircuitType CircuitsCircuitTypesRetrieve(ctx, id).Execute() +> CircuitGroup CircuitsCircuitGroupsRetrieve(ctx, id).Execute() @@ -1573,17 +1447,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit type. + id := int32(56) // int32 | A unique integer value identifying this circuit group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsRetrieve(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.CircuitsCircuitGroupsRetrieve``: %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) + // response from `CircuitsCircuitGroupsRetrieve`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsRetrieve`: %v\n", resp) } ``` @@ -1593,11 +1467,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 circuit type. | +**id** | **int32** | A unique integer value identifying this circuit group. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -1606,7 +1480,7 @@ Name | Type | Description | Notes ### Return type -[**CircuitType**](CircuitType.md) +[**CircuitGroup**](CircuitGroup.md) ### Authorization @@ -1622,9 +1496,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitTypesUpdate +## CircuitsCircuitGroupsUpdate -> CircuitType CircuitsCircuitTypesUpdate(ctx, id).CircuitTypeRequest(circuitTypeRequest).Execute() +> CircuitGroup CircuitsCircuitGroupsUpdate(ctx, id).CircuitGroupRequest(circuitGroupRequest).Execute() @@ -1643,18 +1517,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit type. - circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest | + id := int32(56) // int32 | A unique integer value identifying this circuit group. + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesUpdate(context.Background(), id).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsUpdate(context.Background(), id).CircuitGroupRequest(circuitGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsUpdate``: %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) + // response from `CircuitsCircuitGroupsUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsUpdate`: %v\n", resp) } ``` @@ -1664,21 +1538,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 circuit type. | +**id** | **int32** | A unique integer value identifying this circuit group. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitTypesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitTypeRequest** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | ### Return type -[**CircuitType**](CircuitType.md) +[**CircuitGroup**](CircuitGroup.md) ### Authorization @@ -1694,9 +1568,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsBulkDestroy +## CircuitsCircuitTerminationsBulkDestroy -> CircuitsCircuitsBulkDestroy(ctx).CircuitRequest(circuitRequest).Execute() +> CircuitsCircuitTerminationsBulkDestroy(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -1715,13 +1589,13 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_side_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkDestroy(context.Background()).CircuitRequest(circuitRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1733,12 +1607,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitRequest** | [**[]CircuitRequest**](CircuitRequest.md) | | + **circuitTerminationRequest** | [**[]CircuitTerminationRequest**](CircuitTerminationRequest.md) | | ### Return type @@ -1758,9 +1632,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsBulkPartialUpdate +## CircuitsCircuitTerminationsBulkPartialUpdate -> []Circuit CircuitsCircuitsBulkPartialUpdate(ctx).CircuitRequest(circuitRequest).Execute() +> []CircuitTermination CircuitsCircuitTerminationsBulkPartialUpdate(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -1779,17 +1653,17 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_side_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkPartialUpdate(context.Background()).CircuitRequest(circuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate``: %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) + // response from `CircuitsCircuitTerminationsBulkPartialUpdate`: []CircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate`: %v\n", resp) } ``` @@ -1799,16 +1673,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitRequest** | [**[]CircuitRequest**](CircuitRequest.md) | | + **circuitTerminationRequest** | [**[]CircuitTerminationRequest**](CircuitTerminationRequest.md) | | ### Return type -[**[]Circuit**](Circuit.md) +[**[]CircuitTermination**](CircuitTermination.md) ### Authorization @@ -1824,9 +1698,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsBulkUpdate +## CircuitsCircuitTerminationsBulkUpdate -> []Circuit CircuitsCircuitsBulkUpdate(ctx).CircuitRequest(circuitRequest).Execute() +> []CircuitTermination CircuitsCircuitTerminationsBulkUpdate(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -1845,17 +1719,17 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_side_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkUpdate(context.Background()).CircuitRequest(circuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate``: %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) + // response from `CircuitsCircuitTerminationsBulkUpdate`: []CircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate`: %v\n", resp) } ``` @@ -1865,16 +1739,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **circuitRequest** | [**[]CircuitRequest**](CircuitRequest.md) | | + **circuitTerminationRequest** | [**[]CircuitTerminationRequest**](CircuitTerminationRequest.md) | | ### Return type -[**[]Circuit**](Circuit.md) +[**[]CircuitTermination**](CircuitTermination.md) ### Authorization @@ -1890,9 +1764,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsCreate +## CircuitsCircuitTerminationsCreate -> Circuit CircuitsCircuitsCreate(ctx).WritableCircuitRequest(writableCircuitRequest).Execute() +> CircuitTermination CircuitsCircuitTerminationsCreate(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -1911,17 +1785,17 @@ import ( ) func main() { - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_side_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsCreate(context.Background()).WritableCircuitRequest(writableCircuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).CircuitTerminationRequest(circuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsCreate``: %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) + // response from `CircuitsCircuitTerminationsCreate`: CircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsCreate`: %v\n", resp) } ``` @@ -1931,16 +1805,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableCircuitRequest** | [**WritableCircuitRequest**](WritableCircuitRequest.md) | | + **circuitTerminationRequest** | [**CircuitTerminationRequest**](CircuitTerminationRequest.md) | | ### Return type -[**Circuit**](Circuit.md) +[**CircuitTermination**](CircuitTermination.md) ### Authorization @@ -1956,9 +1830,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsDestroy +## CircuitsCircuitTerminationsDestroy -> CircuitsCircuitsDestroy(ctx, id).Execute() +> CircuitsCircuitTerminationsDestroy(ctx, id).Execute() @@ -1977,13 +1851,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit. + id := int32(56) // int32 | A unique integer value identifying this circuit termination. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitsDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsDestroy(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.CircuitsCircuitTerminationsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1995,11 +1869,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 circuit. | +**id** | **int32** | A unique integer value identifying this circuit termination. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -2024,9 +1898,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsList +## CircuitsCircuitTerminationsList -> 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).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).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).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCircuitTerminationList CircuitsCircuitTerminationsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).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).Tag(tag).TagN(tagN).TermSide(termSide).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).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() @@ -2046,30 +1920,12 @@ import ( ) func main() { - cid := []string{"Inner_example"} // []string | (optional) - cidEmpty := true // bool | (optional) - cidIc := []string{"Inner_example"} // []string | (optional) - cidIe := []string{"Inner_example"} // []string | (optional) - cidIew := []string{"Inner_example"} // []string | (optional) - cidIsw := []string{"Inner_example"} // []string | (optional) - cidN := []string{"Inner_example"} // []string | (optional) - cidNic := []string{"Inner_example"} // []string | (optional) - cidNie := []string{"Inner_example"} // []string | (optional) - 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) - commitRateLte := []int32{int32(123)} // []int32 | (optional) - commitRateN := []int32{int32(123)} // []int32 | (optional) - contact := []int32{int32(123)} // []int32 | Contact (optional) - contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) - contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) - contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) + cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) + cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + cabled := true // bool | (optional) + 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) @@ -2096,13 +1952,6 @@ func main() { 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) @@ -2111,70 +1960,4098 @@ func main() { 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 | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) + markConnected := true // bool | (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) + portSpeedLte := []int32{int32(123)} // []int32 | (optional) + portSpeedN := []int32{int32(123)} // []int32 | (optional) + ppInfo := []string{"Inner_example"} // []string | (optional) + ppInfoEmpty := true // bool | (optional) + ppInfoIc := []string{"Inner_example"} // []string | (optional) + ppInfoIe := []string{"Inner_example"} // []string | (optional) + ppInfoIew := []string{"Inner_example"} // []string | (optional) + ppInfoIsw := []string{"Inner_example"} // []string | (optional) + ppInfoN := []string{"Inner_example"} // []string | (optional) + ppInfoNic := []string{"Inner_example"} // []string | (optional) + ppInfoNie := []string{"Inner_example"} // []string | (optional) + ppInfoNiew := []string{"Inner_example"} // []string | (optional) + ppInfoNisw := []string{"Inner_example"} // []string | (optional) provider := []string{"Inner_example"} // []string | Provider (slug) (optional) providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) - providerAccount := []string{"Inner_example"} // []string | Provider account (account) (optional) - providerAccountN := []string{"Inner_example"} // []string | Provider account (account) (optional) - providerAccountId := []int32{int32(123)} // []int32 | Provider account (ID) (optional) - providerAccountIdN := []int32{int32(123)} // []int32 | Provider account (ID) (optional) providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) - providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) - providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) + providerNetworkId := []int32{int32(123)} // []int32 | ProviderNetwork (ID) (optional) + providerNetworkIdN := []int32{int32(123)} // []int32 | ProviderNetwork (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) - status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_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) - terminationAId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) - terminationAIdN := []*int32{int32(123)} // []*int32 | Termination A (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) - terminationDateLte := []string{time.Now()} // []string | (optional) - terminationDateN := []string{time.Now()} // []string | (optional) - terminationZId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) - terminationZIdN := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) - type_ := []string{"Inner_example"} // []string | Circuit type (slug) (optional) - typeN := []string{"Inner_example"} // []string | Circuit type (slug) (optional) - typeId := []int32{int32(123)} // []int32 | Circuit type (ID) (optional) - typeIdN := []int32{int32(123)} // []int32 | Circuit type (ID) (optional) + termSide := openapiclient.Termination_side("A") // TerminationSide | * `A` - A * `Z` - Z (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) + terminationIdLte := []int32{int32(123)} // []int32 | (optional) + terminationIdN := []int32{int32(123)} // []int32 | (optional) + terminationType := "terminationType_example" // string | (optional) + terminationTypeN := "terminationTypeN_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) + upstreamSpeedLte := []int32{int32(123)} // []int32 | (optional) + upstreamSpeedN := []int32{int32(123)} // []int32 | (optional) + xconnectId := []string{"Inner_example"} // []string | (optional) + xconnectIdEmpty := true // bool | (optional) + xconnectIdIc := []string{"Inner_example"} // []string | (optional) + xconnectIdIe := []string{"Inner_example"} // []string | (optional) + xconnectIdIew := []string{"Inner_example"} // []string | (optional) + xconnectIdIsw := []string{"Inner_example"} // []string | (optional) + xconnectIdN := []string{"Inner_example"} // []string | (optional) + xconnectIdNic := []string{"Inner_example"} // []string | (optional) + xconnectIdNie := []string{"Inner_example"} // []string | (optional) + xconnectIdNiew := []string{"Inner_example"} // []string | (optional) + xconnectIdNisw := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).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).Tag(tag).TagN(tagN).TermSide(termSide).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTerminationsList`: PaginatedCircuitTerminationList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | + **cableId** | **[]int32** | Cable (ID) | + **cableIdN** | **[]int32** | Cable (ID) | + **cabled** | **bool** | | + **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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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**](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** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | + **markConnected** | **bool** | | + **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** | | + **portSpeedLte** | **[]int32** | | + **portSpeedN** | **[]int32** | | + **ppInfo** | **[]string** | | + **ppInfoEmpty** | **bool** | | + **ppInfoIc** | **[]string** | | + **ppInfoIe** | **[]string** | | + **ppInfoIew** | **[]string** | | + **ppInfoIsw** | **[]string** | | + **ppInfoN** | **[]string** | | + **ppInfoNic** | **[]string** | | + **ppInfoNie** | **[]string** | | + **ppInfoNiew** | **[]string** | | + **ppInfoNisw** | **[]string** | | + **provider** | **[]string** | Provider (slug) | + **providerN** | **[]string** | Provider (slug) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **providerNetworkId** | **[]int32** | ProviderNetwork (ID) | + **providerNetworkIdN** | **[]int32** | ProviderNetwork (ID) | + **q** | **string** | Search | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **termSide** | [**TerminationSide**](TerminationSide.md) | * `A` - A * `Z` - Z | + **terminationId** | **[]int32** | | + **terminationIdEmpty** | **bool** | | + **terminationIdGt** | **[]int32** | | + **terminationIdGte** | **[]int32** | | + **terminationIdLt** | **[]int32** | | + **terminationIdLte** | **[]int32** | | + **terminationIdN** | **[]int32** | | + **terminationType** | **string** | | + **terminationTypeN** | **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** | | + +### Return type + +[**PaginatedCircuitTerminationList**](PaginatedCircuitTerminationList.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) + + +## CircuitsCircuitTerminationsPartialUpdate + +> CircuitTermination CircuitsCircuitTerminationsPartialUpdate(ctx, id).PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit termination. + patchedCircuitTerminationRequest := *openapiclient.NewPatchedCircuitTerminationRequest() // PatchedCircuitTerminationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).PatchedCircuitTerminationRequest(patchedCircuitTerminationRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 circuit termination. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedCircuitTerminationRequest** | [**PatchedCircuitTerminationRequest**](PatchedCircuitTerminationRequest.md) | | + +### Return type + +[**CircuitTermination**](CircuitTermination.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) + + +## CircuitsCircuitTerminationsPathsRetrieve + +> CircuitTermination CircuitsCircuitTerminationsPathsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit termination. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTerminationsPathsRetrieve`: CircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve`: %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 circuit termination. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsPathsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitTermination**](CircuitTermination.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) + + +## CircuitsCircuitTerminationsRetrieve + +> CircuitTermination CircuitsCircuitTerminationsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit termination. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTerminationsRetrieve`: CircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsRetrieve`: %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 circuit termination. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitTermination**](CircuitTermination.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) + + +## CircuitsCircuitTerminationsUpdate + +> CircuitTermination CircuitsCircuitTerminationsUpdate(ctx, id).CircuitTerminationRequest(circuitTerminationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit termination. + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_side_1("A")) // CircuitTerminationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).CircuitTerminationRequest(circuitTerminationRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 circuit termination. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTerminationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **circuitTerminationRequest** | [**CircuitTerminationRequest**](CircuitTerminationRequest.md) | | + +### Return type + +[**CircuitTermination**](CircuitTermination.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) + + +## CircuitsCircuitTypesBulkDestroy + +> CircuitsCircuitTypesBulkDestroy(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitTypeRequest** | [**[]CircuitTypeRequest**](CircuitTypeRequest.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) + + +## CircuitsCircuitTypesBulkPartialUpdate + +> []CircuitType CircuitsCircuitTypesBulkPartialUpdate(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTypesBulkPartialUpdate`: []CircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitTypeRequest** | [**[]CircuitTypeRequest**](CircuitTypeRequest.md) | | + +### Return type + +[**[]CircuitType**](CircuitType.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) + + +## CircuitsCircuitTypesBulkUpdate + +> []CircuitType CircuitsCircuitTypesBulkUpdate(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitTypeRequest := []openapiclient.CircuitTypeRequest{*openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")} // []CircuitTypeRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTypesBulkUpdate`: []CircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitTypeRequest** | [**[]CircuitTypeRequest**](CircuitTypeRequest.md) | | + +### Return type + +[**[]CircuitType**](CircuitType.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) + + +## CircuitsCircuitTypesCreate + +> CircuitType CircuitsCircuitTypesCreate(ctx).CircuitTypeRequest(circuitTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTypesCreate`: CircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitTypeRequest** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | + +### Return type + +[**CircuitType**](CircuitType.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) + + +## CircuitsCircuitTypesDestroy + +> CircuitsCircuitTypesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit type. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 circuit type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesDestroyRequest 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) + + +## CircuitsCircuitTypesList + +> PaginatedCircuitTypeList CircuitsCircuitTypesList(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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) + colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + 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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + 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) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (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.CircuitsAPI.CircuitsCircuitTypesList(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 `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) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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**](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** | | + **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**](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** | | + **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 | + **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** | | + +### Return type + +[**PaginatedCircuitTypeList**](PaginatedCircuitTypeList.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) + + +## CircuitsCircuitTypesPartialUpdate + +> CircuitType CircuitsCircuitTypesPartialUpdate(ctx, id).PatchedCircuitTypeRequest(patchedCircuitTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit type. + patchedCircuitTypeRequest := *openapiclient.NewPatchedCircuitTypeRequest() // PatchedCircuitTypeRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTypesPartialUpdate`: CircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesPartialUpdate`: %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 circuit type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedCircuitTypeRequest** | [**PatchedCircuitTypeRequest**](PatchedCircuitTypeRequest.md) | | + +### Return type + +[**CircuitType**](CircuitType.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) + + +## CircuitsCircuitTypesRetrieve + +> CircuitType CircuitsCircuitTypesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit type. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTypesRetrieve`: CircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesRetrieve`: %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 circuit type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitType**](CircuitType.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) + + +## CircuitsCircuitTypesUpdate + +> CircuitType CircuitsCircuitTypesUpdate(ctx, id).CircuitTypeRequest(circuitTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit type. + circuitTypeRequest := *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example") // CircuitTypeRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitTypesUpdate`: CircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesUpdate`: %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 circuit type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitTypesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **circuitTypeRequest** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | + +### Return type + +[**CircuitType**](CircuitType.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) + + +## CircuitsCircuitsBulkDestroy + +> CircuitsCircuitsBulkDestroy(ctx).CircuitRequest(circuitRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitRequest** | [**[]CircuitRequest**](CircuitRequest.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) + + +## CircuitsCircuitsBulkPartialUpdate + +> []Circuit CircuitsCircuitsBulkPartialUpdate(ctx).CircuitRequest(circuitRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitsBulkPartialUpdate`: []Circuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitRequest** | [**[]CircuitRequest**](CircuitRequest.md) | | + +### Return type + +[**[]Circuit**](Circuit.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) + + +## CircuitsCircuitsBulkUpdate + +> []Circuit CircuitsCircuitsBulkUpdate(ctx).CircuitRequest(circuitRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitsBulkUpdate`: []Circuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitRequest** | [**[]CircuitRequest**](CircuitRequest.md) | | + +### Return type + +[**[]Circuit**](Circuit.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) + + +## CircuitsCircuitsCreate + +> Circuit CircuitsCircuitsCreate(ctx).WritableCircuitRequest(writableCircuitRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitsCreate`: Circuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableCircuitRequest** | [**WritableCircuitRequest**](WritableCircuitRequest.md) | | + +### Return type + +[**Circuit**](Circuit.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) + + +## CircuitsCircuitsDestroy + +> CircuitsCircuitsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 circuit. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsDestroyRequest 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) + + +## 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).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).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).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).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + cid := []string{"Inner_example"} // []string | (optional) + cidEmpty := true // bool | (optional) + cidIc := []string{"Inner_example"} // []string | (optional) + cidIe := []string{"Inner_example"} // []string | (optional) + cidIew := []string{"Inner_example"} // []string | (optional) + cidIsw := []string{"Inner_example"} // []string | (optional) + cidN := []string{"Inner_example"} // []string | (optional) + cidNic := []string{"Inner_example"} // []string | (optional) + cidNie := []string{"Inner_example"} // []string | (optional) + 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) + commitRateLte := []int32{int32(123)} // []int32 | (optional) + commitRateN := []int32{int32(123)} // []int32 | (optional) + contact := []int32{int32(123)} // []int32 | Contact (optional) + contactN := []int32{int32(123)} // []int32 | Contact (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) + 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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + distance := []float64{float64(123)} // []float64 | (optional) + distanceEmpty := true // bool | (optional) + distanceGt := []float64{float64(123)} // []float64 | (optional) + distanceGte := []float64{float64(123)} // []float64 | (optional) + distanceLt := []float64{float64(123)} // []float64 | (optional) + distanceLte := []float64{float64(123)} // []float64 | (optional) + distanceN := []float64{float64(123)} // []float64 | (optional) + distanceUnit := openapiclient.circuits_circuits_list_distance_unit_parameter("ft") // CircuitsCircuitsListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (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) + providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerAccount := []string{"Inner_example"} // []string | Provider account (account) (optional) + providerAccountN := []string{"Inner_example"} // []string | Provider account (account) (optional) + providerAccountId := []int32{int32(123)} // []int32 | Provider account (ID) (optional) + providerAccountIdN := []int32{int32(123)} // []int32 | Provider account (ID) (optional) + providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) + providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) + q := "q_example" // string | Search (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) + statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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 := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + terminationAId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) + terminationAIdN := []*int32{int32(123)} // []*int32 | Termination A (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) + terminationDateLte := []string{time.Now()} // []string | (optional) + terminationDateN := []string{time.Now()} // []string | (optional) + terminationZId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) + terminationZIdN := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) + type_ := []string{"Inner_example"} // []string | Circuit type (slug) (optional) + typeN := []string{"Inner_example"} // []string | Circuit type (slug) (optional) + typeId := []int32{int32(123)} // []int32 | Circuit type (ID) (optional) + typeIdN := []int32{int32(123)} // []int32 | Circuit type (ID) (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + 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).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).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).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).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitsList`: PaginatedCircuitList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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** | Contact | + **contactN** | **[]int32** | Contact | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | + **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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **distance** | **[]float64** | | + **distanceEmpty** | **bool** | | + **distanceGt** | **[]float64** | | + **distanceGte** | **[]float64** | | + **distanceLt** | **[]float64** | | + **distanceLte** | **[]float64** | | + **distanceN** | **[]float64** | | + **distanceUnit** | [**CircuitsCircuitsListDistanceUnitParameter**](CircuitsCircuitsListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | + **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) | + **providerN** | **[]string** | Provider (slug) | + **providerAccount** | **[]string** | Provider account (account) | + **providerAccountN** | **[]string** | Provider account (account) | + **providerAccountId** | **[]int32** | Provider account (ID) | + **providerAccountIdN** | **[]int32** | Provider account (ID) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **providerNetworkId** | **[]int32** | Provider network (ID) | + **providerNetworkIdN** | **[]int32** | Provider network (ID) | + **q** | **string** | Search | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | + **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | + **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **terminationAId** | **[]int32** | Termination A (ID) | + **terminationAIdN** | **[]int32** | Termination A (ID) | + **terminationDate** | **[]string** | | + **terminationDateEmpty** | **bool** | | + **terminationDateGt** | **[]string** | | + **terminationDateGte** | **[]string** | | + **terminationDateLt** | **[]string** | | + **terminationDateLte** | **[]string** | | + **terminationDateN** | **[]string** | | + **terminationZId** | **[]int32** | Termination A (ID) | + **terminationZIdN** | **[]int32** | Termination A (ID) | + **type_** | **[]string** | Circuit type (slug) | + **typeN** | **[]string** | Circuit type (slug) | + **typeId** | **[]int32** | Circuit type (ID) | + **typeIdN** | **[]int32** | Circuit type (ID) | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedCircuitList**](PaginatedCircuitList.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) + + +## CircuitsCircuitsPartialUpdate + +> Circuit CircuitsCircuitsPartialUpdate(ctx, id).PatchedWritableCircuitRequest(patchedWritableCircuitRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit. + patchedWritableCircuitRequest := *openapiclient.NewPatchedWritableCircuitRequest() // PatchedWritableCircuitRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitsPartialUpdate`: Circuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsPartialUpdate`: %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 circuit. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableCircuitRequest** | [**PatchedWritableCircuitRequest**](PatchedWritableCircuitRequest.md) | | + +### Return type + +[**Circuit**](Circuit.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) + + +## CircuitsCircuitsRetrieve + +> Circuit CircuitsCircuitsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitsRetrieve`: Circuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsRetrieve`: %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 circuit. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Circuit**](Circuit.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) + + +## CircuitsCircuitsUpdate + +> Circuit CircuitsCircuitsUpdate(ctx, id).WritableCircuitRequest(writableCircuitRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit. + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitsUpdate`: Circuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsUpdate`: %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 circuit. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableCircuitRequest** | [**WritableCircuitRequest**](WritableCircuitRequest.md) | | + +### Return type + +[**Circuit**](Circuit.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) + + +## CircuitsProviderAccountsBulkDestroy + +> CircuitsProviderAccountsBulkDestroy(ctx).ProviderAccountRequest(providerAccountRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerAccountRequest** | [**[]ProviderAccountRequest**](ProviderAccountRequest.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) + + +## CircuitsProviderAccountsBulkPartialUpdate + +> []ProviderAccount CircuitsProviderAccountsBulkPartialUpdate(ctx).ProviderAccountRequest(providerAccountRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderAccountsBulkPartialUpdate`: []ProviderAccount + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerAccountRequest** | [**[]ProviderAccountRequest**](ProviderAccountRequest.md) | | + +### Return type + +[**[]ProviderAccount**](ProviderAccount.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) + + +## CircuitsProviderAccountsBulkUpdate + +> []ProviderAccount CircuitsProviderAccountsBulkUpdate(ctx).ProviderAccountRequest(providerAccountRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderAccountsBulkUpdate`: []ProviderAccount + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerAccountRequest** | [**[]ProviderAccountRequest**](ProviderAccountRequest.md) | | + +### Return type + +[**[]ProviderAccount**](ProviderAccount.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) + + +## CircuitsProviderAccountsCreate + +> ProviderAccount CircuitsProviderAccountsCreate(ctx).ProviderAccountRequest(providerAccountRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerAccountRequest** | [**ProviderAccountRequest**](ProviderAccountRequest.md) | | + +### Return type + +[**ProviderAccount**](ProviderAccount.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) + + +## CircuitsProviderAccountsDestroy + +> CircuitsProviderAccountsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider account. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 provider account. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsDestroyRequest 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) + + +## 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).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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + account := []string{"Inner_example"} // []string | (optional) + accountEmpty := true // bool | (optional) + accountIc := []string{"Inner_example"} // []string | (optional) + accountIe := []string{"Inner_example"} // []string | (optional) + accountIew := []string{"Inner_example"} // []string | (optional) + accountIsw := []string{"Inner_example"} // []string | (optional) + accountN := []string{"Inner_example"} // []string | (optional) + accountNic := []string{"Inner_example"} // []string | (optional) + accountNie := []string{"Inner_example"} // []string | (optional) + 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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + 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) + provider := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + q := "q_example" // string | Search (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.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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderAccountsList`: PaginatedProviderAccountList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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**](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** | | + **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**](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** | | + **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. | + **provider** | **[]string** | Provider (slug) | + **providerN** | **[]string** | Provider (slug) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **q** | **string** | Search | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedProviderAccountList**](PaginatedProviderAccountList.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) + + +## CircuitsProviderAccountsPartialUpdate + +> ProviderAccount CircuitsProviderAccountsPartialUpdate(ctx, id).PatchedProviderAccountRequest(patchedProviderAccountRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider account. + patchedProviderAccountRequest := *openapiclient.NewPatchedProviderAccountRequest() // PatchedProviderAccountRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).PatchedProviderAccountRequest(patchedProviderAccountRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 provider account. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedProviderAccountRequest** | [**PatchedProviderAccountRequest**](PatchedProviderAccountRequest.md) | | + +### Return type + +[**ProviderAccount**](ProviderAccount.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) + + +## CircuitsProviderAccountsRetrieve + +> ProviderAccount CircuitsProviderAccountsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider account. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderAccountsRetrieve`: ProviderAccount + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsRetrieve`: %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 provider account. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ProviderAccount**](ProviderAccount.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) + + +## CircuitsProviderAccountsUpdate + +> ProviderAccount CircuitsProviderAccountsUpdate(ctx, id).ProviderAccountRequest(providerAccountRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider account. + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).ProviderAccountRequest(providerAccountRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 provider account. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderAccountsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **providerAccountRequest** | [**ProviderAccountRequest**](ProviderAccountRequest.md) | | + +### Return type + +[**ProviderAccount**](ProviderAccount.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) + + +## CircuitsProviderNetworksBulkDestroy + +> CircuitsProviderNetworksBulkDestroy(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerNetworkRequest** | [**[]ProviderNetworkRequest**](ProviderNetworkRequest.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) + + +## CircuitsProviderNetworksBulkPartialUpdate + +> []ProviderNetwork CircuitsProviderNetworksBulkPartialUpdate(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderNetworksBulkPartialUpdate`: []ProviderNetwork + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerNetworkRequest** | [**[]ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + +### Return type + +[**[]ProviderNetwork**](ProviderNetwork.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) + + +## CircuitsProviderNetworksBulkUpdate + +> []ProviderNetwork CircuitsProviderNetworksBulkUpdate(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderNetworksBulkUpdate`: []ProviderNetwork + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerNetworkRequest** | [**[]ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + +### Return type + +[**[]ProviderNetwork**](ProviderNetwork.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) + + +## CircuitsProviderNetworksCreate + +> ProviderNetwork CircuitsProviderNetworksCreate(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerNetworkRequest** | [**ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + +### Return type + +[**ProviderNetwork**](ProviderNetwork.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) + + +## CircuitsProviderNetworksDestroy + +> CircuitsProviderNetworksDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider network. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 provider network. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksDestroyRequest 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) + + +## CircuitsProviderNetworksList + +> 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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + 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) + provider := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + q := "q_example" // string | Search (optional) + serviceId := []string{"Inner_example"} // []string | (optional) + serviceIdEmpty := true // bool | (optional) + serviceIdIc := []string{"Inner_example"} // []string | (optional) + serviceIdIe := []string{"Inner_example"} // []string | (optional) + serviceIdIew := []string{"Inner_example"} // []string | (optional) + serviceIdIsw := []string{"Inner_example"} // []string | (optional) + serviceIdN := []string{"Inner_example"} // []string | (optional) + serviceIdNic := []string{"Inner_example"} // []string | (optional) + serviceIdNie := []string{"Inner_example"} // []string | (optional) + serviceIdNiew := []string{"Inner_example"} // []string | (optional) + serviceIdNisw := []string{"Inner_example"} // []string | (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.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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderNetworksList`: PaginatedProviderNetworkList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksListRequest struct via the builder pattern + + +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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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**](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** | | + **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. | + **provider** | **[]string** | Provider (slug) | + **providerN** | **[]string** | Provider (slug) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **q** | **string** | Search | + **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** | | + +### Return type + +[**PaginatedProviderNetworkList**](PaginatedProviderNetworkList.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) + + +## CircuitsProviderNetworksPartialUpdate + +> ProviderNetwork CircuitsProviderNetworksPartialUpdate(ctx, id).PatchedProviderNetworkRequest(patchedProviderNetworkRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider network. + patchedProviderNetworkRequest := *openapiclient.NewPatchedProviderNetworkRequest() // PatchedProviderNetworkRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).PatchedProviderNetworkRequest(patchedProviderNetworkRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 provider network. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedProviderNetworkRequest** | [**PatchedProviderNetworkRequest**](PatchedProviderNetworkRequest.md) | | + +### Return type + +[**ProviderNetwork**](ProviderNetwork.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) + + +## CircuitsProviderNetworksRetrieve + +> ProviderNetwork CircuitsProviderNetworksRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider network. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProviderNetworksRetrieve`: ProviderNetwork + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksRetrieve`: %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 provider network. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ProviderNetwork**](ProviderNetwork.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) + + +## CircuitsProviderNetworksUpdate + +> ProviderNetwork CircuitsProviderNetworksUpdate(ctx, id).ProviderNetworkRequest(providerNetworkRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider network. + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).ProviderNetworkRequest(providerNetworkRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 provider network. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProviderNetworksUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **providerNetworkRequest** | [**ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + +### Return type + +[**ProviderNetwork**](ProviderNetwork.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) + + +## CircuitsProvidersBulkDestroy + +> CircuitsProvidersBulkDestroy(ctx).ProviderRequest(providerRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProvidersBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerRequest** | [**[]ProviderRequest**](ProviderRequest.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) + + +## CircuitsProvidersBulkPartialUpdate + +> []Provider CircuitsProvidersBulkPartialUpdate(ctx).ProviderRequest(providerRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProvidersBulkPartialUpdate`: []Provider + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProvidersBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerRequest** | [**[]ProviderRequest**](ProviderRequest.md) | | + +### Return type + +[**[]Provider**](Provider.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) + + +## CircuitsProvidersBulkUpdate + +> []Provider CircuitsProvidersBulkUpdate(ctx).ProviderRequest(providerRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CircuitsProvidersBulkUpdate`: []Provider + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProvidersBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerRequest** | [**[]ProviderRequest**](ProviderRequest.md) | | + +### Return type + +[**[]Provider**](Provider.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) + + +## CircuitsProvidersCreate + +> Provider CircuitsProvidersCreate(ctx).ProviderRequest(providerRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + providerRequest := *openapiclient.NewProviderRequest("Name_example", "Slug_example") // ProviderRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).ProviderRequest(providerRequest).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProvidersCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **providerRequest** | [**ProviderRequest**](ProviderRequest.md) | | + +### Return type + +[**Provider**](Provider.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) + + +## CircuitsProvidersDestroy + +> CircuitsProvidersDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this provider. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 provider. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsProvidersDestroyRequest 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) + + +## CircuitsProvidersList + +> PaginatedProviderList CircuitsProvidersList(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).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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + asn := []int64{int64(123)} // []int64 | ASN (optional) + asnN := []int64{int64(123)} // []int64 | ASN (optional) + asnId := []int32{int32(123)} // []int32 | ASN (ID) (optional) + asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional) + contact := []int32{int32(123)} // []int32 | Contact (optional) + contactN := []int32{int32(123)} // []int32 | Contact (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) + 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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + 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) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (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.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).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).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).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersList(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).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.CircuitsCircuitsList``: %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 `CircuitsCircuitsList`: PaginatedCircuitList - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsList`: %v\n", resp) + // response from `CircuitsProvidersList`: PaginatedProviderList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersList`: %v\n", resp) } ``` @@ -2184,33 +6061,19 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsProvidersListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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** | | + **asn** | **[]int64** | ASN | + **asnN** | **[]int64** | ASN | + **asnId** | **[]int32** | ASN (ID) | + **asnIdN** | **[]int32** | ASN (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2239,13 +6102,6 @@ Name | Type | Description | Notes **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) | | @@ -2255,63 +6111,50 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **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. | - **provider** | **[]string** | Provider (slug) | - **providerN** | **[]string** | Provider (slug) | - **providerAccount** | **[]string** | Provider account (account) | - **providerAccountN** | **[]string** | Provider account (account) | - **providerAccountId** | **[]int32** | Provider account (ID) | - **providerAccountIdN** | **[]int32** | Provider account (ID) | - **providerId** | **[]int32** | Provider (ID) | - **providerIdN** | **[]int32** | Provider (ID) | - **providerNetworkId** | **[]int32** | Provider network (ID) | - **providerNetworkIdN** | **[]int32** | Provider network (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | - **status** | **[]string** | | - **statusN** | **[]string** | | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site | + **siteIdN** | **[]int32** | Site | + **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** | 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) | - **terminationAId** | **[]int32** | Termination A (ID) | - **terminationAIdN** | **[]int32** | Termination A (ID) | - **terminationDate** | **[]string** | | - **terminationDateEmpty** | **bool** | | - **terminationDateGt** | **[]string** | | - **terminationDateGte** | **[]string** | | - **terminationDateLt** | **[]string** | | - **terminationDateLte** | **[]string** | | - **terminationDateN** | **[]string** | | - **terminationZId** | **[]int32** | Termination A (ID) | - **terminationZIdN** | **[]int32** | Termination A (ID) | - **type_** | **[]string** | Circuit type (slug) | - **typeN** | **[]string** | Circuit type (slug) | - **typeId** | **[]int32** | Circuit type (ID) | - **typeIdN** | **[]int32** | Circuit type (ID) | **updatedByRequest** | **string** | | ### Return type -[**PaginatedCircuitList**](PaginatedCircuitList.md) +[**PaginatedProviderList**](PaginatedProviderList.md) ### Authorization @@ -2327,9 +6170,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsPartialUpdate +## CircuitsProvidersPartialUpdate -> Circuit CircuitsCircuitsPartialUpdate(ctx, id).PatchedWritableCircuitRequest(patchedWritableCircuitRequest).Execute() +> Provider CircuitsProvidersPartialUpdate(ctx, id).PatchedProviderRequest(patchedProviderRequest).Execute() @@ -2348,18 +6191,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit. - patchedWritableCircuitRequest := *openapiclient.NewPatchedWritableCircuitRequest() // PatchedWritableCircuitRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this provider. + patchedProviderRequest := *openapiclient.NewPatchedProviderRequest() // PatchedProviderRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsPartialUpdate(context.Background(), id).PatchedWritableCircuitRequest(patchedWritableCircuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedProviderRequest(patchedProviderRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsPartialUpdate``: %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 `CircuitsCircuitsPartialUpdate`: Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsPartialUpdate`: %v\n", resp) + // response from `CircuitsProvidersPartialUpdate`: Provider + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersPartialUpdate`: %v\n", resp) } ``` @@ -2369,21 +6212,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 circuit. | +**id** | **int32** | A unique integer value identifying this provider. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsProvidersPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritableCircuitRequest** | [**PatchedWritableCircuitRequest**](PatchedWritableCircuitRequest.md) | | + **patchedProviderRequest** | [**PatchedProviderRequest**](PatchedProviderRequest.md) | | ### Return type -[**Circuit**](Circuit.md) +[**Provider**](Provider.md) ### Authorization @@ -2399,9 +6242,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsRetrieve +## CircuitsProvidersRetrieve -> Circuit CircuitsCircuitsRetrieve(ctx, id).Execute() +> Provider CircuitsProvidersRetrieve(ctx, id).Execute() @@ -2420,17 +6263,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit. + id := int32(56) // int32 | A unique integer value identifying this provider. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsRetrieve(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.CircuitsCircuitsRetrieve``: %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 `CircuitsCircuitsRetrieve`: Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsRetrieve`: %v\n", resp) + // response from `CircuitsProvidersRetrieve`: Provider + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersRetrieve`: %v\n", resp) } ``` @@ -2440,11 +6283,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 circuit. | +**id** | **int32** | A unique integer value identifying this provider. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsProvidersRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -2453,7 +6296,7 @@ Name | Type | Description | Notes ### Return type -[**Circuit**](Circuit.md) +[**Provider**](Provider.md) ### Authorization @@ -2469,9 +6312,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsCircuitsUpdate +## CircuitsProvidersUpdate -> Circuit CircuitsCircuitsUpdate(ctx, id).WritableCircuitRequest(writableCircuitRequest).Execute() +> Provider CircuitsProvidersUpdate(ctx, id).ProviderRequest(providerRequest).Execute() @@ -2490,18 +6333,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit. - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + id := int32(56) // int32 | A unique integer value identifying this provider. + providerRequest := *openapiclient.NewProviderRequest("Name_example", "Slug_example") // ProviderRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsUpdate(context.Background(), id).WritableCircuitRequest(writableCircuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).ProviderRequest(providerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsUpdate``: %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 `CircuitsCircuitsUpdate`: Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsUpdate`: %v\n", resp) + // response from `CircuitsProvidersUpdate`: Provider + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersUpdate`: %v\n", resp) } ``` @@ -2511,21 +6354,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 circuit. | +**id** | **int32** | A unique integer value identifying this provider. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsCircuitsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsProvidersUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableCircuitRequest** | [**WritableCircuitRequest**](WritableCircuitRequest.md) | | + **providerRequest** | [**ProviderRequest**](ProviderRequest.md) | | ### Return type -[**Circuit**](Circuit.md) +[**Provider**](Provider.md) ### Authorization @@ -2541,9 +6384,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsBulkDestroy +## CircuitsVirtualCircuitTerminationsBulkDestroy -> CircuitsProviderAccountsBulkDestroy(ctx).ProviderAccountRequest(providerAccountRequest).Execute() +> CircuitsVirtualCircuitTerminationsBulkDestroy(ctx).VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest).Execute() @@ -2562,13 +6405,13 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + virtualCircuitTerminationRequest := []openapiclient.VirtualCircuitTerminationRequest{*openapiclient.NewVirtualCircuitTerminationRequest(*openapiclient.NewBriefVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example")), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []VirtualCircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkDestroy(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkDestroy(context.Background()).VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2580,12 +6423,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerAccountRequest** | [**[]ProviderAccountRequest**](ProviderAccountRequest.md) | | + **virtualCircuitTerminationRequest** | [**[]VirtualCircuitTerminationRequest**](VirtualCircuitTerminationRequest.md) | | ### Return type @@ -2605,9 +6448,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsBulkPartialUpdate +## CircuitsVirtualCircuitTerminationsBulkPartialUpdate -> []ProviderAccount CircuitsProviderAccountsBulkPartialUpdate(ctx).ProviderAccountRequest(providerAccountRequest).Execute() +> []VirtualCircuitTermination CircuitsVirtualCircuitTerminationsBulkPartialUpdate(ctx).VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest).Execute() @@ -2626,17 +6469,17 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + virtualCircuitTerminationRequest := []openapiclient.VirtualCircuitTerminationRequest{*openapiclient.NewVirtualCircuitTerminationRequest(*openapiclient.NewBriefVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example")), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []VirtualCircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkPartialUpdate(context.Background()).VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkPartialUpdate``: %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) + // response from `CircuitsVirtualCircuitTerminationsBulkPartialUpdate`: []VirtualCircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkPartialUpdate`: %v\n", resp) } ``` @@ -2646,16 +6489,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerAccountRequest** | [**[]ProviderAccountRequest**](ProviderAccountRequest.md) | | + **virtualCircuitTerminationRequest** | [**[]VirtualCircuitTerminationRequest**](VirtualCircuitTerminationRequest.md) | | ### Return type -[**[]ProviderAccount**](ProviderAccount.md) +[**[]VirtualCircuitTermination**](VirtualCircuitTermination.md) ### Authorization @@ -2671,9 +6514,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsBulkUpdate +## CircuitsVirtualCircuitTerminationsBulkUpdate -> []ProviderAccount CircuitsProviderAccountsBulkUpdate(ctx).ProviderAccountRequest(providerAccountRequest).Execute() +> []VirtualCircuitTermination CircuitsVirtualCircuitTerminationsBulkUpdate(ctx).VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest).Execute() @@ -2692,17 +6535,17 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + virtualCircuitTerminationRequest := []openapiclient.VirtualCircuitTerminationRequest{*openapiclient.NewVirtualCircuitTerminationRequest(*openapiclient.NewBriefVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example")), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []VirtualCircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkUpdate(context.Background()).VirtualCircuitTerminationRequest(virtualCircuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkUpdate``: %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) + // response from `CircuitsVirtualCircuitTerminationsBulkUpdate`: []VirtualCircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkUpdate`: %v\n", resp) } ``` @@ -2712,16 +6555,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerAccountRequest** | [**[]ProviderAccountRequest**](ProviderAccountRequest.md) | | + **virtualCircuitTerminationRequest** | [**[]VirtualCircuitTerminationRequest**](VirtualCircuitTerminationRequest.md) | | ### Return type -[**[]ProviderAccount**](ProviderAccount.md) +[**[]VirtualCircuitTermination**](VirtualCircuitTermination.md) ### Authorization @@ -2737,9 +6580,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsCreate +## CircuitsVirtualCircuitTerminationsCreate -> ProviderAccount CircuitsProviderAccountsCreate(ctx).ProviderAccountRequest(providerAccountRequest).Execute() +> VirtualCircuitTermination CircuitsVirtualCircuitTerminationsCreate(ctx).WritableVirtualCircuitTerminationRequest(writableVirtualCircuitTerminationRequest).Execute() @@ -2758,17 +6601,17 @@ import ( ) func main() { - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + writableVirtualCircuitTerminationRequest := *openapiclient.NewWritableVirtualCircuitTerminationRequest(*openapiclient.NewBriefVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example")), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableVirtualCircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsCreate(context.Background()).WritableVirtualCircuitTerminationRequest(writableVirtualCircuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsCreate``: %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) + // response from `CircuitsVirtualCircuitTerminationsCreate`: VirtualCircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsCreate`: %v\n", resp) } ``` @@ -2778,16 +6621,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerAccountRequest** | [**ProviderAccountRequest**](ProviderAccountRequest.md) | | + **writableVirtualCircuitTerminationRequest** | [**WritableVirtualCircuitTerminationRequest**](WritableVirtualCircuitTerminationRequest.md) | | ### Return type -[**ProviderAccount**](ProviderAccount.md) +[**VirtualCircuitTermination**](VirtualCircuitTermination.md) ### Authorization @@ -2803,9 +6646,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsDestroy +## CircuitsVirtualCircuitTerminationsDestroy -> CircuitsProviderAccountsDestroy(ctx, id).Execute() +> CircuitsVirtualCircuitTerminationsDestroy(ctx, id).Execute() @@ -2824,13 +6667,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider account. + id := int32(56) // int32 | A unique integer value identifying this virtual circuit termination. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsDestroy(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.CircuitsVirtualCircuitTerminationsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2842,11 +6685,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 provider account. | +**id** | **int32** | A unique integer value identifying this virtual circuit termination. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -2871,9 +6714,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsList +## CircuitsVirtualCircuitTerminationsList -> 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() +> PaginatedVirtualCircuitTerminationList CircuitsVirtualCircuitTerminationsList(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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualCircuitId(virtualCircuitId).VirtualCircuitIdN(virtualCircuitIdN).Execute() @@ -2893,17 +6736,6 @@ import ( ) func main() { - account := []string{"Inner_example"} // []string | (optional) - accountEmpty := true // bool | (optional) - accountIc := []string{"Inner_example"} // []string | (optional) - accountIe := []string{"Inner_example"} // []string | (optional) - accountIew := []string{"Inner_example"} // []string | (optional) - accountIsw := []string{"Inner_example"} // []string | (optional) - accountN := []string{"Inner_example"} // []string | (optional) - accountNic := []string{"Inner_example"} // []string | (optional) - accountNie := []string{"Inner_example"} // []string | (optional) - 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) @@ -2929,47 +6761,57 @@ func main() { 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) - 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) + idN := []int32{int32(123)} // []int32 | (optional) + 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) + 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) providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerAccount := []string{"Inner_example"} // []string | Provider account (account) (optional) + providerAccountN := []string{"Inner_example"} // []string | Provider account (account) (optional) + providerAccountId := []int32{int32(123)} // []int32 | Provider account (ID) (optional) + providerAccountIdN := []int32{int32(123)} // []int32 | Provider account (ID) (optional) providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) + providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) q := "q_example" // string | Search (optional) + role := []string{"Inner_example"} // []string | (optional) + roleEmpty := true // bool | (optional) + roleIc := []string{"Inner_example"} // []string | (optional) + roleIe := []string{"Inner_example"} // []string | (optional) + roleIew := []string{"Inner_example"} // []string | (optional) + roleIsw := []string{"Inner_example"} // []string | (optional) + roleN := []string{"Inner_example"} // []string | (optional) + roleNic := []string{"Inner_example"} // []string | (optional) + roleNie := []string{"Inner_example"} // []string | (optional) + roleNiew := []string{"Inner_example"} // []string | (optional) + roleNisw := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + virtualCircuitId := []int32{int32(123)} // []int32 | Virtual circuit (optional) + virtualCircuitIdN := []int32{int32(123)} // []int32 | Virtual circuit (optional) 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).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() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsList(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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualCircuitId(virtualCircuitId).VirtualCircuitIdN(virtualCircuitIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsList``: %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) + // response from `CircuitsVirtualCircuitTerminationsList`: PaginatedVirtualCircuitTerminationList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsList`: %v\n", resp) } ``` @@ -2979,22 +6821,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -3021,6 +6852,8 @@ Name | Type | Description | Notes **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | + **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) | | @@ -3030,31 +6863,39 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **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. | **provider** | **[]string** | Provider (slug) | **providerN** | **[]string** | Provider (slug) | + **providerAccount** | **[]string** | Provider account (account) | + **providerAccountN** | **[]string** | Provider account (account) | + **providerAccountId** | **[]int32** | Provider account (ID) | + **providerAccountIdN** | **[]int32** | Provider account (ID) | **providerId** | **[]int32** | Provider (ID) | **providerIdN** | **[]int32** | Provider (ID) | + **providerNetworkId** | **[]int32** | Provider network (ID) | + **providerNetworkIdN** | **[]int32** | Provider network (ID) | **q** | **string** | Search | + **role** | **[]string** | | + **roleEmpty** | **bool** | | + **roleIc** | **[]string** | | + **roleIe** | **[]string** | | + **roleIew** | **[]string** | | + **roleIsw** | **[]string** | | + **roleN** | **[]string** | | + **roleNic** | **[]string** | | + **roleNie** | **[]string** | | + **roleNiew** | **[]string** | | + **roleNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | **updatedByRequest** | **string** | | + **virtualCircuitId** | **[]int32** | Virtual circuit | + **virtualCircuitIdN** | **[]int32** | Virtual circuit | ### Return type -[**PaginatedProviderAccountList**](PaginatedProviderAccountList.md) +[**PaginatedVirtualCircuitTerminationList**](PaginatedVirtualCircuitTerminationList.md) ### Authorization @@ -3070,9 +6911,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsPartialUpdate +## CircuitsVirtualCircuitTerminationsPartialUpdate -> ProviderAccount CircuitsProviderAccountsPartialUpdate(ctx, id).PatchedProviderAccountRequest(patchedProviderAccountRequest).Execute() +> VirtualCircuitTermination CircuitsVirtualCircuitTerminationsPartialUpdate(ctx, id).PatchedWritableVirtualCircuitTerminationRequest(patchedWritableVirtualCircuitTerminationRequest).Execute() @@ -3091,18 +6932,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider account. - patchedProviderAccountRequest := *openapiclient.NewPatchedProviderAccountRequest() // PatchedProviderAccountRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this virtual circuit termination. + patchedWritableVirtualCircuitTerminationRequest := *openapiclient.NewPatchedWritableVirtualCircuitTerminationRequest() // PatchedWritableVirtualCircuitTerminationRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).PatchedProviderAccountRequest(patchedProviderAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsPartialUpdate(context.Background(), id).PatchedWritableVirtualCircuitTerminationRequest(patchedWritableVirtualCircuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsPartialUpdate``: %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) + // response from `CircuitsVirtualCircuitTerminationsPartialUpdate`: VirtualCircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsPartialUpdate`: %v\n", resp) } ``` @@ -3112,21 +6953,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 provider account. | +**id** | **int32** | A unique integer value identifying this virtual circuit termination. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedProviderAccountRequest** | [**PatchedProviderAccountRequest**](PatchedProviderAccountRequest.md) | | + **patchedWritableVirtualCircuitTerminationRequest** | [**PatchedWritableVirtualCircuitTerminationRequest**](PatchedWritableVirtualCircuitTerminationRequest.md) | | ### Return type -[**ProviderAccount**](ProviderAccount.md) +[**VirtualCircuitTermination**](VirtualCircuitTermination.md) ### Authorization @@ -3142,9 +6983,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsRetrieve +## CircuitsVirtualCircuitTerminationsPathsRetrieve -> ProviderAccount CircuitsProviderAccountsRetrieve(ctx, id).Execute() +> VirtualCircuitTermination CircuitsVirtualCircuitTerminationsPathsRetrieve(ctx, id).Execute() @@ -3163,17 +7004,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider account. + id := int32(56) // int32 | A unique integer value identifying this virtual circuit termination. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsPathsRetrieve(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.CircuitsVirtualCircuitTerminationsPathsRetrieve``: %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) + // response from `CircuitsVirtualCircuitTerminationsPathsRetrieve`: VirtualCircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsPathsRetrieve`: %v\n", resp) } ``` @@ -3183,11 +7024,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 provider account. | +**id** | **int32** | A unique integer value identifying this virtual circuit termination. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsPathsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -3196,7 +7037,7 @@ Name | Type | Description | Notes ### Return type -[**ProviderAccount**](ProviderAccount.md) +[**VirtualCircuitTermination**](VirtualCircuitTermination.md) ### Authorization @@ -3212,9 +7053,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderAccountsUpdate +## CircuitsVirtualCircuitTerminationsRetrieve -> ProviderAccount CircuitsProviderAccountsUpdate(ctx, id).ProviderAccountRequest(providerAccountRequest).Execute() +> VirtualCircuitTermination CircuitsVirtualCircuitTerminationsRetrieve(ctx, id).Execute() @@ -3233,18 +7074,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider account. - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + id := int32(56) // int32 | A unique integer value identifying this virtual circuit termination. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).ProviderAccountRequest(providerAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsRetrieve``: %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) + // response from `CircuitsVirtualCircuitTerminationsRetrieve`: VirtualCircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsRetrieve`: %v\n", resp) } ``` @@ -3254,21 +7094,92 @@ 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 provider account. | +**id** | **int32** | A unique integer value identifying this virtual circuit termination. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderAccountsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerAccountRequest** | [**ProviderAccountRequest**](ProviderAccountRequest.md) | | ### Return type -[**ProviderAccount**](ProviderAccount.md) +[**VirtualCircuitTermination**](VirtualCircuitTermination.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) + + +## CircuitsVirtualCircuitTerminationsUpdate + +> VirtualCircuitTermination CircuitsVirtualCircuitTerminationsUpdate(ctx, id).WritableVirtualCircuitTerminationRequest(writableVirtualCircuitTerminationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this virtual circuit termination. + writableVirtualCircuitTerminationRequest := *openapiclient.NewWritableVirtualCircuitTerminationRequest(*openapiclient.NewBriefVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example")), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableVirtualCircuitTerminationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsUpdate(context.Background(), id).WritableVirtualCircuitTerminationRequest(writableVirtualCircuitTerminationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTerminationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsVirtualCircuitTerminationsUpdate`: VirtualCircuitTermination + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTerminationsUpdate`: %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 virtual circuit termination. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTerminationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableVirtualCircuitTerminationRequest** | [**WritableVirtualCircuitTerminationRequest**](WritableVirtualCircuitTerminationRequest.md) | | + +### Return type + +[**VirtualCircuitTermination**](VirtualCircuitTermination.md) ### Authorization @@ -3284,9 +7195,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksBulkDestroy +## CircuitsVirtualCircuitTypesBulkDestroy -> CircuitsProviderNetworksBulkDestroy(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() +> CircuitsVirtualCircuitTypesBulkDestroy(ctx).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() @@ -3305,13 +7216,13 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + virtualCircuitTypeRequest := []openapiclient.VirtualCircuitTypeRequest{*openapiclient.NewVirtualCircuitTypeRequest("Name_example", "Slug_example")} // []VirtualCircuitTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkDestroy(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesBulkDestroy(context.Background()).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3323,12 +7234,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerNetworkRequest** | [**[]ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + **virtualCircuitTypeRequest** | [**[]VirtualCircuitTypeRequest**](VirtualCircuitTypeRequest.md) | | ### Return type @@ -3348,9 +7259,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksBulkPartialUpdate +## CircuitsVirtualCircuitTypesBulkPartialUpdate -> []ProviderNetwork CircuitsProviderNetworksBulkPartialUpdate(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() +> []VirtualCircuitType CircuitsVirtualCircuitTypesBulkPartialUpdate(ctx).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() @@ -3369,17 +7280,17 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + virtualCircuitTypeRequest := []openapiclient.VirtualCircuitTypeRequest{*openapiclient.NewVirtualCircuitTypeRequest("Name_example", "Slug_example")} // []VirtualCircuitTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesBulkPartialUpdate(context.Background()).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTypesBulkPartialUpdate``: %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) + // response from `CircuitsVirtualCircuitTypesBulkPartialUpdate`: []VirtualCircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -3389,16 +7300,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerNetworkRequest** | [**[]ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + **virtualCircuitTypeRequest** | [**[]VirtualCircuitTypeRequest**](VirtualCircuitTypeRequest.md) | | ### Return type -[**[]ProviderNetwork**](ProviderNetwork.md) +[**[]VirtualCircuitType**](VirtualCircuitType.md) ### Authorization @@ -3414,9 +7325,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksBulkUpdate +## CircuitsVirtualCircuitTypesBulkUpdate -> []ProviderNetwork CircuitsProviderNetworksBulkUpdate(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() +> []VirtualCircuitType CircuitsVirtualCircuitTypesBulkUpdate(ctx).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() @@ -3435,17 +7346,17 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + virtualCircuitTypeRequest := []openapiclient.VirtualCircuitTypeRequest{*openapiclient.NewVirtualCircuitTypeRequest("Name_example", "Slug_example")} // []VirtualCircuitTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesBulkUpdate(context.Background()).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTypesBulkUpdate``: %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) + // response from `CircuitsVirtualCircuitTypesBulkUpdate`: []VirtualCircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTypesBulkUpdate`: %v\n", resp) } ``` @@ -3455,16 +7366,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerNetworkRequest** | [**[]ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + **virtualCircuitTypeRequest** | [**[]VirtualCircuitTypeRequest**](VirtualCircuitTypeRequest.md) | | ### Return type -[**[]ProviderNetwork**](ProviderNetwork.md) +[**[]VirtualCircuitType**](VirtualCircuitType.md) ### Authorization @@ -3480,9 +7391,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksCreate +## CircuitsVirtualCircuitTypesCreate -> ProviderNetwork CircuitsProviderNetworksCreate(ctx).ProviderNetworkRequest(providerNetworkRequest).Execute() +> VirtualCircuitType CircuitsVirtualCircuitTypesCreate(ctx).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() @@ -3501,17 +7412,17 @@ import ( ) func main() { - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + virtualCircuitTypeRequest := *openapiclient.NewVirtualCircuitTypeRequest("Name_example", "Slug_example") // VirtualCircuitTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesCreate(context.Background()).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTypesCreate``: %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) + // response from `CircuitsVirtualCircuitTypesCreate`: VirtualCircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTypesCreate`: %v\n", resp) } ``` @@ -3521,16 +7432,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerNetworkRequest** | [**ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + **virtualCircuitTypeRequest** | [**VirtualCircuitTypeRequest**](VirtualCircuitTypeRequest.md) | | ### Return type -[**ProviderNetwork**](ProviderNetwork.md) +[**VirtualCircuitType**](VirtualCircuitType.md) ### Authorization @@ -3546,9 +7457,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksDestroy +## CircuitsVirtualCircuitTypesDestroy -> CircuitsProviderNetworksDestroy(ctx, id).Execute() +> CircuitsVirtualCircuitTypesDestroy(ctx, id).Execute() @@ -3567,13 +7478,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider network. + id := int32(56) // int32 | A unique integer value identifying this virtual circuit type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesDestroy(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.CircuitsVirtualCircuitTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3585,11 +7496,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 provider network. | +**id** | **int32** | A unique integer value identifying this virtual circuit type. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -3614,9 +7525,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksList +## CircuitsVirtualCircuitTypesList -> 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() +> PaginatedVirtualCircuitTypeList CircuitsVirtualCircuitTypesList(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() @@ -3636,6 +7547,17 @@ import ( ) func main() { + color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) + colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + 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) @@ -3684,35 +7606,31 @@ func main() { 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) - provider := []string{"Inner_example"} // []string | Provider (slug) (optional) - providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) - providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) - providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) q := "q_example" // string | Search (optional) - serviceId := []string{"Inner_example"} // []string | (optional) - serviceIdEmpty := true // bool | (optional) - serviceIdIc := []string{"Inner_example"} // []string | (optional) - serviceIdIe := []string{"Inner_example"} // []string | (optional) - serviceIdIew := []string{"Inner_example"} // []string | (optional) - serviceIdIsw := []string{"Inner_example"} // []string | (optional) - serviceIdN := []string{"Inner_example"} // []string | (optional) - serviceIdNic := []string{"Inner_example"} // []string | (optional) - serviceIdNie := []string{"Inner_example"} // []string | (optional) - serviceIdNiew := []string{"Inner_example"} // []string | (optional) - serviceIdNisw := []string{"Inner_example"} // []string | (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (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.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() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesList(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 `CircuitsAPI.CircuitsProviderNetworksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTypesList``: %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) + // response from `CircuitsVirtualCircuitTypesList`: PaginatedVirtualCircuitTypeList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTypesList`: %v\n", resp) } ``` @@ -3722,11 +7640,22 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **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**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -3773,31 +7702,27 @@ Name | Type | Description | Notes **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. | - **provider** | **[]string** | Provider (slug) | - **providerN** | **[]string** | Provider (slug) | - **providerId** | **[]int32** | Provider (ID) | - **providerIdN** | **[]int32** | Provider (ID) | - **q** | **string** | Search | - **serviceId** | **[]string** | | - **serviceIdEmpty** | **bool** | | - **serviceIdIc** | **[]string** | | - **serviceIdIe** | **[]string** | | - **serviceIdIew** | **[]string** | | - **serviceIdIsw** | **[]string** | | - **serviceIdN** | **[]string** | | - **serviceIdNic** | **[]string** | | - **serviceIdNie** | **[]string** | | - **serviceIdNiew** | **[]string** | | - **serviceIdNisw** | **[]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 | + **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** | | ### Return type -[**PaginatedProviderNetworkList**](PaginatedProviderNetworkList.md) +[**PaginatedVirtualCircuitTypeList**](PaginatedVirtualCircuitTypeList.md) ### Authorization @@ -3813,9 +7738,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksPartialUpdate +## CircuitsVirtualCircuitTypesPartialUpdate -> ProviderNetwork CircuitsProviderNetworksPartialUpdate(ctx, id).PatchedProviderNetworkRequest(patchedProviderNetworkRequest).Execute() +> VirtualCircuitType CircuitsVirtualCircuitTypesPartialUpdate(ctx, id).PatchedVirtualCircuitTypeRequest(patchedVirtualCircuitTypeRequest).Execute() @@ -3834,18 +7759,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider network. - patchedProviderNetworkRequest := *openapiclient.NewPatchedProviderNetworkRequest() // PatchedProviderNetworkRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this virtual circuit type. + patchedVirtualCircuitTypeRequest := *openapiclient.NewPatchedVirtualCircuitTypeRequest() // PatchedVirtualCircuitTypeRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).PatchedProviderNetworkRequest(patchedProviderNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesPartialUpdate(context.Background(), id).PatchedVirtualCircuitTypeRequest(patchedVirtualCircuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTypesPartialUpdate``: %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) + // response from `CircuitsVirtualCircuitTypesPartialUpdate`: VirtualCircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTypesPartialUpdate`: %v\n", resp) } ``` @@ -3855,21 +7780,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 provider network. | +**id** | **int32** | A unique integer value identifying this virtual circuit type. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedProviderNetworkRequest** | [**PatchedProviderNetworkRequest**](PatchedProviderNetworkRequest.md) | | + **patchedVirtualCircuitTypeRequest** | [**PatchedVirtualCircuitTypeRequest**](PatchedVirtualCircuitTypeRequest.md) | | ### Return type -[**ProviderNetwork**](ProviderNetwork.md) +[**VirtualCircuitType**](VirtualCircuitType.md) ### Authorization @@ -3885,9 +7810,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksRetrieve +## CircuitsVirtualCircuitTypesRetrieve -> ProviderNetwork CircuitsProviderNetworksRetrieve(ctx, id).Execute() +> VirtualCircuitType CircuitsVirtualCircuitTypesRetrieve(ctx, id).Execute() @@ -3906,17 +7831,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider network. + id := int32(56) // int32 | A unique integer value identifying this virtual circuit type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesRetrieve(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.CircuitsVirtualCircuitTypesRetrieve``: %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) + // response from `CircuitsVirtualCircuitTypesRetrieve`: VirtualCircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTypesRetrieve`: %v\n", resp) } ``` @@ -3926,11 +7851,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 provider network. | +**id** | **int32** | A unique integer value identifying this virtual circuit type. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -3939,7 +7864,7 @@ Name | Type | Description | Notes ### Return type -[**ProviderNetwork**](ProviderNetwork.md) +[**VirtualCircuitType**](VirtualCircuitType.md) ### Authorization @@ -3955,9 +7880,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProviderNetworksUpdate +## CircuitsVirtualCircuitTypesUpdate -> ProviderNetwork CircuitsProviderNetworksUpdate(ctx, id).ProviderNetworkRequest(providerNetworkRequest).Execute() +> VirtualCircuitType CircuitsVirtualCircuitTypesUpdate(ctx, id).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() @@ -3976,18 +7901,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider network. - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + id := int32(56) // int32 | A unique integer value identifying this virtual circuit type. + virtualCircuitTypeRequest := *openapiclient.NewVirtualCircuitTypeRequest("Name_example", "Slug_example") // VirtualCircuitTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).ProviderNetworkRequest(providerNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesUpdate(context.Background(), id).VirtualCircuitTypeRequest(virtualCircuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitTypesUpdate``: %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) + // response from `CircuitsVirtualCircuitTypesUpdate`: VirtualCircuitType + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitTypesUpdate`: %v\n", resp) } ``` @@ -3997,21 +7922,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 provider network. | +**id** | **int32** | A unique integer value identifying this virtual circuit type. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProviderNetworksUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitTypesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerNetworkRequest** | [**ProviderNetworkRequest**](ProviderNetworkRequest.md) | | + **virtualCircuitTypeRequest** | [**VirtualCircuitTypeRequest**](VirtualCircuitTypeRequest.md) | | ### Return type -[**ProviderNetwork**](ProviderNetwork.md) +[**VirtualCircuitType**](VirtualCircuitType.md) ### Authorization @@ -4027,9 +7952,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersBulkDestroy +## CircuitsVirtualCircuitsBulkDestroy -> CircuitsProvidersBulkDestroy(ctx).ProviderRequest(providerRequest).Execute() +> CircuitsVirtualCircuitsBulkDestroy(ctx).VirtualCircuitRequest(virtualCircuitRequest).Execute() @@ -4048,13 +7973,13 @@ import ( ) func main() { - providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest | + virtualCircuitRequest := []openapiclient.VirtualCircuitRequest{*openapiclient.NewVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example"), *openapiclient.NewBriefVirtualCircuitTypeRequest("Name_example", "Slug_example"))} // []VirtualCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkDestroy(context.Background()).ProviderRequest(providerRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsBulkDestroy(context.Background()).VirtualCircuitRequest(virtualCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4066,12 +7991,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerRequest** | [**[]ProviderRequest**](ProviderRequest.md) | | + **virtualCircuitRequest** | [**[]VirtualCircuitRequest**](VirtualCircuitRequest.md) | | ### Return type @@ -4091,9 +8016,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersBulkPartialUpdate +## CircuitsVirtualCircuitsBulkPartialUpdate -> []Provider CircuitsProvidersBulkPartialUpdate(ctx).ProviderRequest(providerRequest).Execute() +> []VirtualCircuit CircuitsVirtualCircuitsBulkPartialUpdate(ctx).VirtualCircuitRequest(virtualCircuitRequest).Execute() @@ -4112,17 +8037,17 @@ import ( ) func main() { - providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest | + virtualCircuitRequest := []openapiclient.VirtualCircuitRequest{*openapiclient.NewVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example"), *openapiclient.NewBriefVirtualCircuitTypeRequest("Name_example", "Slug_example"))} // []VirtualCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkPartialUpdate(context.Background()).ProviderRequest(providerRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsBulkPartialUpdate(context.Background()).VirtualCircuitRequest(virtualCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitsBulkPartialUpdate``: %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) + // response from `CircuitsVirtualCircuitsBulkPartialUpdate`: []VirtualCircuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitsBulkPartialUpdate`: %v\n", resp) } ``` @@ -4132,16 +8057,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerRequest** | [**[]ProviderRequest**](ProviderRequest.md) | | + **virtualCircuitRequest** | [**[]VirtualCircuitRequest**](VirtualCircuitRequest.md) | | ### Return type -[**[]Provider**](Provider.md) +[**[]VirtualCircuit**](VirtualCircuit.md) ### Authorization @@ -4157,9 +8082,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersBulkUpdate +## CircuitsVirtualCircuitsBulkUpdate -> []Provider CircuitsProvidersBulkUpdate(ctx).ProviderRequest(providerRequest).Execute() +> []VirtualCircuit CircuitsVirtualCircuitsBulkUpdate(ctx).VirtualCircuitRequest(virtualCircuitRequest).Execute() @@ -4178,17 +8103,17 @@ import ( ) func main() { - providerRequest := []openapiclient.ProviderRequest{*openapiclient.NewProviderRequest("Name_example", "Slug_example")} // []ProviderRequest | + virtualCircuitRequest := []openapiclient.VirtualCircuitRequest{*openapiclient.NewVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example"), *openapiclient.NewBriefVirtualCircuitTypeRequest("Name_example", "Slug_example"))} // []VirtualCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkUpdate(context.Background()).ProviderRequest(providerRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsBulkUpdate(context.Background()).VirtualCircuitRequest(virtualCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitsBulkUpdate``: %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) + // response from `CircuitsVirtualCircuitsBulkUpdate`: []VirtualCircuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitsBulkUpdate`: %v\n", resp) } ``` @@ -4198,16 +8123,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerRequest** | [**[]ProviderRequest**](ProviderRequest.md) | | + **virtualCircuitRequest** | [**[]VirtualCircuitRequest**](VirtualCircuitRequest.md) | | ### Return type -[**[]Provider**](Provider.md) +[**[]VirtualCircuit**](VirtualCircuit.md) ### Authorization @@ -4223,9 +8148,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersCreate +## CircuitsVirtualCircuitsCreate -> Provider CircuitsProvidersCreate(ctx).ProviderRequest(providerRequest).Execute() +> VirtualCircuit CircuitsVirtualCircuitsCreate(ctx).WritableVirtualCircuitRequest(writableVirtualCircuitRequest).Execute() @@ -4244,17 +8169,17 @@ import ( ) func main() { - providerRequest := *openapiclient.NewProviderRequest("Name_example", "Slug_example") // ProviderRequest | + writableVirtualCircuitRequest := *openapiclient.NewWritableVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example"), *openapiclient.NewBriefVirtualCircuitTypeRequest("Name_example", "Slug_example")) // WritableVirtualCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).ProviderRequest(providerRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsCreate(context.Background()).WritableVirtualCircuitRequest(writableVirtualCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitsCreate``: %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) + // response from `CircuitsVirtualCircuitsCreate`: VirtualCircuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitsCreate`: %v\n", resp) } ``` @@ -4264,16 +8189,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerRequest** | [**ProviderRequest**](ProviderRequest.md) | | + **writableVirtualCircuitRequest** | [**WritableVirtualCircuitRequest**](WritableVirtualCircuitRequest.md) | | ### Return type -[**Provider**](Provider.md) +[**VirtualCircuit**](VirtualCircuit.md) ### Authorization @@ -4289,9 +8214,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersDestroy +## CircuitsVirtualCircuitsDestroy -> CircuitsProvidersDestroy(ctx, id).Execute() +> CircuitsVirtualCircuitsDestroy(ctx, id).Execute() @@ -4310,13 +8235,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider. + id := int32(56) // int32 | A unique integer value identifying this virtual circuit. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsProvidersDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsDestroy(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.CircuitsVirtualCircuitsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4328,11 +8253,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 provider. | +**id** | **int32** | A unique integer value identifying this virtual circuit. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -4357,9 +8282,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersList +## CircuitsVirtualCircuitsList -> PaginatedProviderList CircuitsProvidersList(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).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() +> PaginatedVirtualCircuitList CircuitsVirtualCircuitsList(ctx).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).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).Provider(provider).ProviderN(providerN).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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() @@ -4379,16 +8304,17 @@ import ( ) func main() { - asn := []int64{int64(123)} // []int64 | ASN (optional) - asnN := []int64{int64(123)} // []int64 | ASN (optional) - asnId := []int32{int32(123)} // []int32 | ASN (ID) (optional) - asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional) - contact := []int32{int32(123)} // []int32 | Contact (optional) - contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) - contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) - contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) + cid := []string{"Inner_example"} // []string | (optional) + cidEmpty := true // bool | (optional) + cidIc := []string{"Inner_example"} // []string | (optional) + cidIe := []string{"Inner_example"} // []string | (optional) + cidIew := []string{"Inner_example"} // []string | (optional) + cidIsw := []string{"Inner_example"} // []string | (optional) + cidN := []string{"Inner_example"} // []string | (optional) + cidNic := []string{"Inner_example"} // []string | (optional) + cidNie := []string{"Inner_example"} // []string | (optional) + cidNiew := []string{"Inner_example"} // []string | (optional) + cidNisw := []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) @@ -4424,56 +8350,55 @@ func main() { 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) - 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) + provider := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerAccount := []string{"Inner_example"} // []string | Provider account (account) (optional) + providerAccountN := []string{"Inner_example"} // []string | Provider account (account) (optional) + providerAccountId := []int32{int32(123)} // []int32 | Provider account (ID) (optional) + providerAccountIdN := []int32{int32(123)} // []int32 | Provider account (ID) (optional) + providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) + providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - site := []string{"Inner_example"} // []string | Site (slug) (optional) - siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteId := []int32{int32(123)} // []int32 | Site (optional) - siteIdN := []int32{int32(123)} // []int32 | Site (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) + status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) + statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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 := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + type_ := []string{"Inner_example"} // []string | Virtual circuit type (slug) (optional) + typeN := []string{"Inner_example"} // []string | Virtual circuit type (slug) (optional) + typeId := []int32{int32(123)} // []int32 | Virtual circuit type (ID) (optional) + typeIdN := []int32{int32(123)} // []int32 | Virtual circuit type (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersList(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).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() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).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).Provider(provider).ProviderN(providerN).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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 `CircuitsAPI.CircuitsProvidersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitsList``: %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) + // response from `CircuitsVirtualCircuitsList`: PaginatedVirtualCircuitList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitsList`: %v\n", resp) } ``` @@ -4483,21 +8408,22 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **asn** | **[]int64** | ASN | - **asnN** | **[]int64** | ASN | - **asnId** | **[]int32** | ASN (ID) | - **asnIdN** | **[]int32** | ASN (ID) | - **contact** | **[]int32** | Contact | - **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | - **contactRole** | **[]int32** | Contact Role | - **contactRoleN** | **[]int32** | Contact Role | + **cid** | **[]string** | | + **cidEmpty** | **bool** | | + **cidIc** | **[]string** | | + **cidIe** | **[]string** | | + **cidIew** | **[]string** | | + **cidIsw** | **[]string** | | + **cidN** | **[]string** | | + **cidNic** | **[]string** | | + **cidNie** | **[]string** | | + **cidNiew** | **[]string** | | + **cidNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -4533,50 +8459,49 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **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. | + **provider** | **[]string** | Provider (slug) | + **providerN** | **[]string** | Provider (slug) | + **providerAccount** | **[]string** | Provider account (account) | + **providerAccountN** | **[]string** | Provider account (account) | + **providerAccountId** | **[]int32** | Provider account (ID) | + **providerAccountIdN** | **[]int32** | Provider account (ID) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **providerNetworkId** | **[]int32** | Provider network (ID) | + **providerNetworkIdN** | **[]int32** | Provider network (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **site** | **[]string** | Site (slug) | - **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site | - **siteIdN** | **[]int32** | Site | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | + **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | + **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **type_** | **[]string** | Virtual circuit type (slug) | + **typeN** | **[]string** | Virtual circuit type (slug) | + **typeId** | **[]int32** | Virtual circuit type (ID) | + **typeIdN** | **[]int32** | Virtual circuit type (ID) | **updatedByRequest** | **string** | | ### Return type -[**PaginatedProviderList**](PaginatedProviderList.md) +[**PaginatedVirtualCircuitList**](PaginatedVirtualCircuitList.md) ### Authorization @@ -4592,9 +8517,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersPartialUpdate +## CircuitsVirtualCircuitsPartialUpdate -> Provider CircuitsProvidersPartialUpdate(ctx, id).PatchedProviderRequest(patchedProviderRequest).Execute() +> VirtualCircuit CircuitsVirtualCircuitsPartialUpdate(ctx, id).PatchedWritableVirtualCircuitRequest(patchedWritableVirtualCircuitRequest).Execute() @@ -4613,18 +8538,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider. - patchedProviderRequest := *openapiclient.NewPatchedProviderRequest() // PatchedProviderRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this virtual circuit. + patchedWritableVirtualCircuitRequest := *openapiclient.NewPatchedWritableVirtualCircuitRequest() // PatchedWritableVirtualCircuitRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedProviderRequest(patchedProviderRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsPartialUpdate(context.Background(), id).PatchedWritableVirtualCircuitRequest(patchedWritableVirtualCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitsPartialUpdate``: %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) + // response from `CircuitsVirtualCircuitsPartialUpdate`: VirtualCircuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitsPartialUpdate`: %v\n", resp) } ``` @@ -4634,21 +8559,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 provider. | +**id** | **int32** | A unique integer value identifying this virtual circuit. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedProviderRequest** | [**PatchedProviderRequest**](PatchedProviderRequest.md) | | + **patchedWritableVirtualCircuitRequest** | [**PatchedWritableVirtualCircuitRequest**](PatchedWritableVirtualCircuitRequest.md) | | ### Return type -[**Provider**](Provider.md) +[**VirtualCircuit**](VirtualCircuit.md) ### Authorization @@ -4664,9 +8589,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersRetrieve +## CircuitsVirtualCircuitsRetrieve -> Provider CircuitsProvidersRetrieve(ctx, id).Execute() +> VirtualCircuit CircuitsVirtualCircuitsRetrieve(ctx, id).Execute() @@ -4685,17 +8610,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider. + id := int32(56) // int32 | A unique integer value identifying this virtual circuit. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsRetrieve(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.CircuitsVirtualCircuitsRetrieve``: %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) + // response from `CircuitsVirtualCircuitsRetrieve`: VirtualCircuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitsRetrieve`: %v\n", resp) } ``` @@ -4705,11 +8630,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 provider. | +**id** | **int32** | A unique integer value identifying this virtual circuit. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -4718,7 +8643,7 @@ Name | Type | Description | Notes ### Return type -[**Provider**](Provider.md) +[**VirtualCircuit**](VirtualCircuit.md) ### Authorization @@ -4734,9 +8659,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CircuitsProvidersUpdate +## CircuitsVirtualCircuitsUpdate -> Provider CircuitsProvidersUpdate(ctx, id).ProviderRequest(providerRequest).Execute() +> VirtualCircuit CircuitsVirtualCircuitsUpdate(ctx, id).WritableVirtualCircuitRequest(writableVirtualCircuitRequest).Execute() @@ -4755,18 +8680,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this provider. - providerRequest := *openapiclient.NewProviderRequest("Name_example", "Slug_example") // ProviderRequest | + id := int32(56) // int32 | A unique integer value identifying this virtual circuit. + writableVirtualCircuitRequest := *openapiclient.NewWritableVirtualCircuitRequest("Cid_example", *openapiclient.NewBriefProviderNetworkRequest("Name_example"), *openapiclient.NewBriefVirtualCircuitTypeRequest("Name_example", "Slug_example")) // WritableVirtualCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).ProviderRequest(providerRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsUpdate(context.Background(), id).WritableVirtualCircuitRequest(writableVirtualCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsVirtualCircuitsUpdate``: %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) + // response from `CircuitsVirtualCircuitsUpdate`: VirtualCircuit + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsVirtualCircuitsUpdate`: %v\n", resp) } ``` @@ -4776,21 +8701,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 provider. | +**id** | **int32** | A unique integer value identifying this virtual circuit. | ### Other Parameters -Other parameters are passed through a pointer to a apiCircuitsProvidersUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiCircuitsVirtualCircuitsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerRequest** | [**ProviderRequest**](ProviderRequest.md) | | + **writableVirtualCircuitRequest** | [**WritableVirtualCircuitRequest**](WritableVirtualCircuitRequest.md) | | ### Return type -[**Provider**](Provider.md) +[**VirtualCircuit**](VirtualCircuit.md) ### Authorization diff --git a/docs/TenancyContactAssignmentsListPriorityParameter.md b/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md similarity index 85% rename from docs/TenancyContactAssignmentsListPriorityParameter.md rename to docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md index df7264eac4..b8be447a25 100644 --- a/docs/TenancyContactAssignmentsListPriorityParameter.md +++ b/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md @@ -1,4 +1,4 @@ -# TenancyContactAssignmentsListPriorityParameter +# CircuitsCircuitGroupAssignmentsListPriorityParameter ## Enum diff --git a/docs/CircuitsCircuitTerminationsListCableEndParameter 2.md b/docs/CircuitsCircuitTerminationsListCableEndParameter 2.md new file mode 100644 index 0000000000..32e38fbd92 --- /dev/null +++ b/docs/CircuitsCircuitTerminationsListCableEndParameter 2.md @@ -0,0 +1,13 @@ +# CircuitsCircuitTerminationsListCableEndParameter + +## Enum + + +* `A` (value: `"A"`) + +* `B` (value: `"B"`) + + +[[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/CircuitsCircuitsListDistanceUnitParameter.md b/docs/CircuitsCircuitsListDistanceUnitParameter.md new file mode 100644 index 0000000000..068d33c7ad --- /dev/null +++ b/docs/CircuitsCircuitsListDistanceUnitParameter.md @@ -0,0 +1,17 @@ +# CircuitsCircuitsListDistanceUnitParameter + +## Enum + + +* `FT` (value: `"ft"`) + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + + +[[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/Cluster.md b/docs/Cluster.md index 53f6ac8f25..96c45a7b42 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -6,16 +6,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**BriefClusterType**](BriefClusterType.md) | | +**Group** | Pointer to [**NullableBriefClusterGroup**](BriefClusterGroup.md) | | [optional] +**Status** | Pointer to [**ClusterStatus**](ClusterStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Scope** | Pointer to **interface{}** | | [optional] [readonly] **Description** | Pointer to **string** | | [optional] -**VirtualmachineCount** | **int64** | | [readonly] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] +**AllocatedVcpus** | **float64** | | [readonly] +**AllocatedMemory** | **int32** | | [readonly] +**AllocatedDisk** | **int32** | | [readonly] ## Methods ### NewCluster -`func NewCluster(id int32, url string, display string, name string, virtualmachineCount int64, ) *Cluster` +`func NewCluster(id int32, url string, display string, name string, type_ BriefClusterType, allocatedVcpus float64, allocatedMemory int32, allocatedDisk int32, ) *Cluster` NewCluster instantiates a new Cluster object This constructor will assign default values to properties that have it defined, @@ -70,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Cluster) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Cluster) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Cluster) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Cluster) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Cluster) GetDisplay() string` @@ -110,6 +152,226 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *Cluster) GetType() BriefClusterType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cluster) GetTypeOk() (*BriefClusterType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cluster) SetType(v BriefClusterType)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *Cluster) GetGroup() BriefClusterGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Cluster) SetGroup(v BriefClusterGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Cluster) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Cluster) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Cluster) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *Cluster) GetStatus() ClusterStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Cluster) GetStatusOk() (*ClusterStatus, 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 *Cluster) SetStatus(v ClusterStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Cluster) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Cluster) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Cluster) GetTenantOk() (*BriefTenant, 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 *Cluster) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Cluster) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Cluster) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Cluster) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetScopeType + +`func (o *Cluster) GetScopeType() string` + +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. + +### GetScopeTypeOk + +`func (o *Cluster) GetScopeTypeOk() (*string, bool)` + +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeType + +`func (o *Cluster) SetScopeType(v string)` + +SetScopeType sets ScopeType field to given value. + +### HasScopeType + +`func (o *Cluster) HasScopeType() bool` + +HasScopeType returns a boolean if a field has been set. + +### SetScopeTypeNil + +`func (o *Cluster) SetScopeTypeNil(b bool)` + + SetScopeTypeNil sets the value for ScopeType to be an explicit nil + +### UnsetScopeType +`func (o *Cluster) UnsetScopeType()` + +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *Cluster) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *Cluster) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *Cluster) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *Cluster) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *Cluster) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *Cluster) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +### GetScope + +`func (o *Cluster) GetScope() interface{}` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *Cluster) GetScopeOk() (*interface{}, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *Cluster) SetScope(v interface{})` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *Cluster) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *Cluster) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *Cluster) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil ### GetDescription `func (o *Cluster) GetDescription() string` @@ -135,6 +397,176 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Cluster) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Cluster) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Cluster) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Cluster) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Cluster) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Cluster) 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 *Cluster) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Cluster) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Cluster) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Cluster) 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 *Cluster) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Cluster) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Cluster) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cluster) 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 *Cluster) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Cluster) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Cluster) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Cluster) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Cluster) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Cluster) 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 *Cluster) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Cluster) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Cluster) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Cluster) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetDeviceCount + +`func (o *Cluster) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Cluster) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Cluster) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Cluster) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + ### GetVirtualmachineCount `func (o *Cluster) GetVirtualmachineCount() int64` @@ -154,6 +586,71 @@ and a boolean to check if the value has been set. SetVirtualmachineCount sets VirtualmachineCount field to given value. +### HasVirtualmachineCount + +`func (o *Cluster) HasVirtualmachineCount() bool` + +HasVirtualmachineCount returns a boolean if a field has been set. + +### GetAllocatedVcpus + +`func (o *Cluster) GetAllocatedVcpus() float64` + +GetAllocatedVcpus returns the AllocatedVcpus field if non-nil, zero value otherwise. + +### GetAllocatedVcpusOk + +`func (o *Cluster) GetAllocatedVcpusOk() (*float64, bool)` + +GetAllocatedVcpusOk returns a tuple with the AllocatedVcpus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedVcpus + +`func (o *Cluster) SetAllocatedVcpus(v float64)` + +SetAllocatedVcpus sets AllocatedVcpus field to given value. + + +### GetAllocatedMemory + +`func (o *Cluster) GetAllocatedMemory() int32` + +GetAllocatedMemory returns the AllocatedMemory field if non-nil, zero value otherwise. + +### GetAllocatedMemoryOk + +`func (o *Cluster) GetAllocatedMemoryOk() (*int32, bool)` + +GetAllocatedMemoryOk returns a tuple with the AllocatedMemory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedMemory + +`func (o *Cluster) SetAllocatedMemory(v int32)` + +SetAllocatedMemory sets AllocatedMemory field to given value. + + +### GetAllocatedDisk + +`func (o *Cluster) GetAllocatedDisk() int32` + +GetAllocatedDisk returns the AllocatedDisk field if non-nil, zero value otherwise. + +### GetAllocatedDiskOk + +`func (o *Cluster) GetAllocatedDiskOk() (*int32, bool)` + +GetAllocatedDiskOk returns a tuple with the AllocatedDisk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDisk + +`func (o *Cluster) SetAllocatedDisk(v int32)` + +SetAllocatedDisk sets AllocatedDisk 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/ClusterGroup.md b/docs/ClusterGroup.md index ce837f38ca..f2e7a0d0cb 100644 --- a/docs/ClusterGroup.md +++ b/docs/ClusterGroup.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**ClusterCount** | **int64** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**ClusterCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewClusterGroup -`func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup` +`func NewClusterGroup(id int32, url string, display string, name string, slug string, ) *ClusterGroup` NewClusterGroup instantiates a new ClusterGroup object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ClusterGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ClusterGroup) GetDisplay() string` @@ -229,6 +255,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ClusterGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -259,6 +290,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ClusterGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -289,6 +325,11 @@ and a boolean to check if the value has been set. SetClusterCount sets ClusterCount field to given value. +### HasClusterCount + +`func (o *ClusterGroup) HasClusterCount() bool` + +HasClusterCount 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/ClusterRequest.md b/docs/ClusterRequest.md index bfe754ce80..a96625e5ad 100644 --- a/docs/ClusterRequest.md +++ b/docs/ClusterRequest.md @@ -5,13 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewClusterRequest -`func NewClusterRequest(name string, ) *ClusterRequest` +`func NewClusterRequest(name string, type_ BriefClusterTypeRequest, ) *ClusterRequest` NewClusterRequest instantiates a new ClusterRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +55,191 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *ClusterRequest) GetType() BriefClusterTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ClusterRequest) SetType(v BriefClusterTypeRequest)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ClusterRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ClusterRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ClusterRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *ClusterRequest) GetStatus() ClusterStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, 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 *ClusterRequest) SetStatus(v ClusterStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ClusterRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *ClusterRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, 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 *ClusterRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *ClusterRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *ClusterRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *ClusterRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetScopeType + +`func (o *ClusterRequest) GetScopeType() string` + +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. + +### GetScopeTypeOk + +`func (o *ClusterRequest) GetScopeTypeOk() (*string, bool)` + +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeType + +`func (o *ClusterRequest) SetScopeType(v string)` + +SetScopeType sets ScopeType field to given value. + +### HasScopeType + +`func (o *ClusterRequest) HasScopeType() bool` + +HasScopeType returns a boolean if a field has been set. + +### SetScopeTypeNil + +`func (o *ClusterRequest) SetScopeTypeNil(b bool)` + + SetScopeTypeNil sets the value for ScopeType to be an explicit nil + +### UnsetScopeType +`func (o *ClusterRequest) UnsetScopeType()` + +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *ClusterRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *ClusterRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *ClusterRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *ClusterRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *ClusterRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *ClusterRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetDescription `func (o *ClusterRequest) GetDescription() string` @@ -71,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ClusterRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ClusterRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ClusterRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ClusterRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ClusterRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ClusterRequest) 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 *ClusterRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ClusterRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ClusterRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ClusterRequest) 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 *ClusterRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ClusterRequest) HasCustomFields() bool` + +HasCustomFields 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/ClusterStatus.md b/docs/ClusterStatus.md new file mode 100644 index 0000000000..0753edae9e --- /dev/null +++ b/docs/ClusterStatus.md @@ -0,0 +1,82 @@ +# ClusterStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Label** | Pointer to [**ClusterStatusLabel**](ClusterStatusLabel.md) | | [optional] + +## Methods + +### NewClusterStatus + +`func NewClusterStatus() *ClusterStatus` + +NewClusterStatus instantiates a new ClusterStatus 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 + +### NewClusterStatusWithDefaults + +`func NewClusterStatusWithDefaults() *ClusterStatus` + +NewClusterStatusWithDefaults instantiates a new ClusterStatus 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 *ClusterStatus) GetValue() ClusterStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ClusterStatus) GetValueOk() (*ClusterStatusValue, 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 *ClusterStatus) SetValue(v ClusterStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ClusterStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ClusterStatus) GetLabel() ClusterStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ClusterStatus) GetLabelOk() (*ClusterStatusLabel, 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 *ClusterStatus) SetLabel(v ClusterStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ClusterStatus) 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/ClusterStatusLabel.md b/docs/ClusterStatusLabel.md new file mode 100644 index 0000000000..7a03fab9a0 --- /dev/null +++ b/docs/ClusterStatusLabel.md @@ -0,0 +1,19 @@ +# ClusterStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `STAGING` (value: `"Staging"`) + +* `ACTIVE` (value: `"Active"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + +* `OFFLINE` (value: `"Offline"`) + + +[[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/PatchedWritableClusterRequestStatus.md b/docs/ClusterStatusValue.md similarity index 90% rename from docs/PatchedWritableClusterRequestStatus.md rename to docs/ClusterStatusValue.md index 167a47dbdb..f68d48cacf 100644 --- a/docs/PatchedWritableClusterRequestStatus.md +++ b/docs/ClusterStatusValue.md @@ -1,4 +1,4 @@ -# PatchedWritableClusterRequestStatus +# ClusterStatusValue ## Enum diff --git a/docs/ClusterType.md b/docs/ClusterType.md index c759403edd..238cecb634 100644 --- a/docs/ClusterType.md +++ b/docs/ClusterType.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**ClusterCount** | **int64** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**ClusterCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewClusterType -`func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType` +`func NewClusterType(id int32, url string, display string, name string, slug string, ) *ClusterType` NewClusterType instantiates a new ClusterType object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ClusterType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ClusterType) GetDisplay() string` @@ -229,6 +255,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ClusterType) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -259,6 +290,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ClusterType) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -289,6 +325,11 @@ and a boolean to check if the value has been set. SetClusterCount sets ClusterCount field to given value. +### HasClusterCount + +`func (o *ClusterType) HasClusterCount() bool` + +HasClusterCount 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/ClusterTypeRequest 2.md b/docs/ClusterTypeRequest 2.md new file mode 100644 index 0000000000..0dbb83784a --- /dev/null +++ b/docs/ClusterTypeRequest 2.md @@ -0,0 +1,150 @@ +# ClusterTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewClusterTypeRequest + +`func NewClusterTypeRequest(name string, slug string, ) *ClusterTypeRequest` + +NewClusterTypeRequest instantiates a new ClusterTypeRequest 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 + +### NewClusterTypeRequestWithDefaults + +`func NewClusterTypeRequestWithDefaults() *ClusterTypeRequest` + +NewClusterTypeRequestWithDefaults instantiates a new ClusterTypeRequest 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 *ClusterTypeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ClusterTypeRequest) 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 *ClusterTypeRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *ClusterTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *ClusterTypeRequest) 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 *ClusterTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *ClusterTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ClusterTypeRequest) 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 *ClusterTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ClusterTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *ClusterTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ClusterTypeRequest) 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 *ClusterTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ClusterTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ClusterTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ClusterTypeRequest) 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 *ClusterTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ClusterTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/ConfigContext.md b/docs/ConfigContext.md index 3d27ad7edd..e1bb7e90e1 100644 --- a/docs/ConfigContext.md +++ b/docs/ConfigContext.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Weight** | Pointer to **int32** | | [optional] @@ -24,19 +25,19 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to [**[]TenantGroup**](TenantGroup.md) | | [optional] **Tenants** | Pointer to [**[]Tenant**](Tenant.md) | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] -**DataSynced** | **NullableTime** | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] +**DataSynced** | Pointer to **NullableTime** | | [optional] [readonly] **Data** | **interface{}** | | -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewConfigContext -`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` +`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile BriefDataFile, data interface{}, ) *ConfigContext` NewConfigContext instantiates a new ConfigContext object This constructor will assign default values to properties that have it defined, @@ -91,6 +92,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConfigContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConfigContext) GetDisplay() string` @@ -533,20 +559,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContext) GetDataSource() DataSource` +`func (o *ConfigContext) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool)` +`func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContext) SetDataSource(v DataSource)` +`func (o *ConfigContext) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -578,20 +604,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ConfigContext) GetDataFile() DataFile` +`func (o *ConfigContext) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ConfigContext) GetDataFileOk() (*DataFile, bool)` +`func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ConfigContext) SetDataFile(v DataFile)` +`func (o *ConfigContext) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. @@ -615,6 +641,11 @@ and a boolean to check if the value has been set. SetDataSynced sets DataSynced field to given value. +### HasDataSynced + +`func (o *ConfigContext) HasDataSynced() bool` + +HasDataSynced returns a boolean if a field has been set. ### SetDataSyncedNil @@ -675,6 +706,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ConfigContext) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -705,6 +741,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ConfigContext) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ConfigContextRequest.md b/docs/ConfigContextRequest.md index 298074ebfa..a42d2482ad 100644 --- a/docs/ConfigContextRequest.md +++ b/docs/ConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | **interface{}** | | ## Methods @@ -465,20 +465,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ConfigTemplate.md b/docs/ConfigTemplate.md index e87b659909..a411845246 100644 --- a/docs/ConfigTemplate.md +++ b/docs/ConfigTemplate.md @@ -6,15 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] +**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] +**DataFile** | Pointer to [**BriefDataFile**](BriefDataFile.md) | | [optional] +**DataSynced** | Pointer to **NullableTime** | | [optional] [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewConfigTemplate -`func NewConfigTemplate(id int32, url string, display string, name string, ) *ConfigTemplate` +`func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string, ) *ConfigTemplate` NewConfigTemplate instantiates a new ConfigTemplate object This constructor will assign default values to properties that have it defined, @@ -69,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConfigTemplate) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConfigTemplate) GetDisplay() string` @@ -134,6 +169,261 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplate) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplate) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplate) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplate) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplate) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplate) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplate) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplate) GetDataSource() BriefDataSource` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplate) SetDataSource(v BriefDataSource)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplate) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetDataPath + +`func (o *ConfigTemplate) GetDataPath() string` + +GetDataPath returns the DataPath field if non-nil, zero value otherwise. + +### GetDataPathOk + +`func (o *ConfigTemplate) GetDataPathOk() (*string, bool)` + +GetDataPathOk returns a tuple with the DataPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataPath + +`func (o *ConfigTemplate) SetDataPath(v string)` + +SetDataPath sets DataPath field to given value. + + +### GetDataFile + +`func (o *ConfigTemplate) GetDataFile() BriefDataFile` + +GetDataFile returns the DataFile field if non-nil, zero value otherwise. + +### GetDataFileOk + +`func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool)` + +GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataFile + +`func (o *ConfigTemplate) SetDataFile(v BriefDataFile)` + +SetDataFile sets DataFile field to given value. + +### HasDataFile + +`func (o *ConfigTemplate) HasDataFile() bool` + +HasDataFile returns a boolean if a field has been set. + +### GetDataSynced + +`func (o *ConfigTemplate) GetDataSynced() time.Time` + +GetDataSynced returns the DataSynced field if non-nil, zero value otherwise. + +### GetDataSyncedOk + +`func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool)` + +GetDataSyncedOk returns a tuple with the DataSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSynced + +`func (o *ConfigTemplate) SetDataSynced(v time.Time)` + +SetDataSynced sets DataSynced field to given value. + +### HasDataSynced + +`func (o *ConfigTemplate) HasDataSynced() bool` + +HasDataSynced returns a boolean if a field has been set. + +### SetDataSyncedNil + +`func (o *ConfigTemplate) SetDataSyncedNil(b bool)` + + SetDataSyncedNil sets the value for DataSynced to be an explicit nil + +### UnsetDataSynced +`func (o *ConfigTemplate) UnsetDataSynced()` + +UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil +### GetTags + +`func (o *ConfigTemplate) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplate) 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 *ConfigTemplate) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCreated + +`func (o *ConfigTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ConfigTemplate) 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 *ConfigTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *ConfigTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *ConfigTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ConfigTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ConfigTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ConfigTemplate) 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 *ConfigTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *ConfigTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *ConfigTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ConfigTemplate) 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/ConfigTemplateRequest.md b/docs/ConfigTemplateRequest.md index 2c1540c0d7..6865ade797 100644 --- a/docs/ConfigTemplateRequest.md +++ b/docs/ConfigTemplateRequest.md @@ -6,12 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods ### NewConfigTemplateRequest -`func NewConfigTemplateRequest(name string, ) *ConfigTemplateRequest` +`func NewConfigTemplateRequest(name string, templateCode string, ) *ConfigTemplateRequest` NewConfigTemplateRequest instantiates a new ConfigTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -71,6 +75,111 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplateRequest) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplateRequest) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplateRequest) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplateRequest) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplateRequest) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplateRequest) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetTags + +`func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplateRequest) 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 *ConfigTemplateRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplateRequest) 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/ConsolePort.md b/docs/ConsolePort.md index 165ccf7784..d0ac9d7865 100644 --- a/docs/ConsolePort.md +++ b/docs/ConsolePort.md @@ -6,33 +6,34 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] -**ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] +**ConnectedEndpoints** | Pointer to **[]interface{}** | | [optional] [readonly] +**ConnectedEndpointsType** | Pointer to **NullableString** | | [optional] [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewConsolePort -`func NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` +`func NewConsolePort(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool, ) *ConsolePort` NewConsolePort instantiates a new ConsolePort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsolePort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsolePort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsolePort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConsolePort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConsolePort) GetDisplay() string` @@ -109,40 +135,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsolePort) GetDevice() Device` +`func (o *ConsolePort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePort) GetDeviceOk() (*Device, bool)` +`func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePort) SetDevice(v Device)` +`func (o *ConsolePort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePort) GetModule() Module` +`func (o *ConsolePort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePort) GetModuleOk() (*Module, bool)` +`func (o *ConsolePort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePort) SetModule(v Module)` +`func (o *ConsolePort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,23 +345,28 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsolePort) GetCable() Cable` +`func (o *ConsolePort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsolePort) GetCableOk() (*Cable, bool)` +`func (o *ConsolePort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsolePort) SetCable(v Cable)` +`func (o *ConsolePort) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *ConsolePort) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -406,7 +437,22 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### HasLinkPeersType + +`func (o *ConsolePort) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *ConsolePort) SetLinkPeersTypeNil(b bool)` + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsolePort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsolePort) GetConnectedEndpoints() []interface{}` @@ -426,7 +472,22 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### HasConnectedEndpoints + +`func (o *ConsolePort) HasConnectedEndpoints() bool` + +HasConnectedEndpoints returns a boolean if a field has been set. + +### SetConnectedEndpointsNil +`func (o *ConsolePort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsolePort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsolePort) GetConnectedEndpointsType() string` @@ -446,7 +507,22 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### HasConnectedEndpointsType + +`func (o *ConsolePort) HasConnectedEndpointsType() bool` +HasConnectedEndpointsType returns a boolean if a field has been set. + +### SetConnectedEndpointsTypeNil + +`func (o *ConsolePort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsolePort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsolePort) GetConnectedEndpointsReachable() bool` @@ -536,6 +612,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ConsolePort) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -566,6 +647,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ConsolePort) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ConsolePortRequest.md b/docs/ConsolePortRequest.md index 3c9fe81767..4fdb86baec 100644 --- a/docs/ConsolePortRequest.md +++ b/docs/ConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsolePortRequest -`func NewConsolePortRequest(device DeviceRequest, name string, ) *ConsolePortRequest` +`func NewConsolePortRequest(device BriefDeviceRequest, name string, ) *ConsolePortRequest` NewConsolePortRequest instantiates a new ConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsolePortRequest) GetDevice() DeviceRequest` +`func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePortRequest) GetModule() ModuleRequest` +`func (o *ConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *ConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsolePortTemplate.md b/docs/ConsolePortTemplate.md index d37560677d..f46ed71fc6 100644 --- a/docs/ConsolePortTemplate.md +++ b/docs/ConsolePortTemplate.md @@ -7,20 +7,20 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewConsolePortTemplate -`func NewConsolePortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *ConsolePortTemplate` +`func NewConsolePortTemplate(id int32, url string, display string, name string, ) *ConsolePortTemplate` NewConsolePortTemplate instantiates a new ConsolePortTemplate object This constructor will assign default values to properties that have it defined, @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsolePortTemplate) GetDeviceType() DeviceType` +`func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplate) GetModuleType() ModuleType` +`func (o *ConsolePortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -279,6 +279,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ConsolePortTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -309,6 +314,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ConsolePortTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md index bdd1627ea0..33af6cae00 100644 --- a/docs/ConsolePortTemplateRequest.md +++ b/docs/ConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsolePortTypeValue 2.md b/docs/ConsolePortTypeValue 2.md new file mode 100644 index 0000000000..e4584fb465 --- /dev/null +++ b/docs/ConsolePortTypeValue 2.md @@ -0,0 +1,41 @@ +# ConsolePortTypeValue + +## Enum + + +* `DE_9` (value: `"de-9"`) + +* `DB_25` (value: `"db-25"`) + +* `RJ_11` (value: `"rj-11"`) + +* `RJ_12` (value: `"rj-12"`) + +* `RJ_45` (value: `"rj-45"`) + +* `MINI_DIN_8` (value: `"mini-din-8"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `OTHER` (value: `"other"`) + +* `EMPTY` (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/ConsoleServerPort.md b/docs/ConsoleServerPort.md index 7686dfe90a..98df9a5e2f 100644 --- a/docs/ConsoleServerPort.md +++ b/docs/ConsoleServerPort.md @@ -6,33 +6,34 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] -**ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] +**ConnectedEndpoints** | Pointer to **[]interface{}** | | [optional] [readonly] +**ConnectedEndpointsType** | Pointer to **NullableString** | | [optional] [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewConsoleServerPort -`func NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` +`func NewConsoleServerPort(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool, ) *ConsoleServerPort` NewConsoleServerPort instantiates a new ConsoleServerPort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsoleServerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsoleServerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConsoleServerPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConsoleServerPort) GetDisplay() string` @@ -109,40 +135,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsoleServerPort) GetDevice() Device` +`func (o *ConsoleServerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool)` +`func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPort) SetDevice(v Device)` +`func (o *ConsoleServerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPort) GetModule() Module` +`func (o *ConsoleServerPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPort) GetModuleOk() (*Module, bool)` +`func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPort) SetModule(v Module)` +`func (o *ConsoleServerPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,23 +345,28 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsoleServerPort) GetCable() Cable` +`func (o *ConsoleServerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsoleServerPort) GetCableOk() (*Cable, bool)` +`func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsoleServerPort) SetCable(v Cable)` +`func (o *ConsoleServerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *ConsoleServerPort) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -406,7 +437,22 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### HasLinkPeersType + +`func (o *ConsoleServerPort) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *ConsoleServerPort) SetLinkPeersTypeNil(b bool)` + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsoleServerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{}` @@ -426,7 +472,22 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### HasConnectedEndpoints + +`func (o *ConsoleServerPort) HasConnectedEndpoints() bool` + +HasConnectedEndpoints returns a boolean if a field has been set. + +### SetConnectedEndpointsNil +`func (o *ConsoleServerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsoleServerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsoleServerPort) GetConnectedEndpointsType() string` @@ -446,7 +507,22 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### HasConnectedEndpointsType + +`func (o *ConsoleServerPort) HasConnectedEndpointsType() bool` +HasConnectedEndpointsType returns a boolean if a field has been set. + +### SetConnectedEndpointsTypeNil + +`func (o *ConsoleServerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsoleServerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsoleServerPort) GetConnectedEndpointsReachable() bool` @@ -536,6 +612,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ConsoleServerPort) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -566,6 +647,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ConsoleServerPort) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ConsoleServerPortRequest 2.md b/docs/ConsoleServerPortRequest 2.md new file mode 100644 index 0000000000..995610c634 --- /dev/null +++ b/docs/ConsoleServerPortRequest 2.md @@ -0,0 +1,300 @@ +# ConsoleServerPortRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] +**Speed** | Pointer to [**NullableConsolePortRequestSpeed**](ConsolePortRequestSpeed.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewConsoleServerPortRequest + +`func NewConsoleServerPortRequest(device DeviceRequest, name string, ) *ConsoleServerPortRequest` + +NewConsoleServerPortRequest instantiates a new ConsoleServerPortRequest 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 + +### NewConsoleServerPortRequestWithDefaults + +`func NewConsoleServerPortRequestWithDefaults() *ConsoleServerPortRequest` + +NewConsoleServerPortRequestWithDefaults instantiates a new ConsoleServerPortRequest 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 + +### GetDevice + +`func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest)` + +SetDevice sets Device field to given value. + + +### GetModule + +`func (o *ConsoleServerPortRequest) GetModule() ModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ConsoleServerPortRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ConsoleServerPortRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ConsoleServerPortRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil +### GetName + +`func (o *ConsoleServerPortRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ConsoleServerPortRequest) 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 *ConsoleServerPortRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *ConsoleServerPortRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ConsoleServerPortRequest) 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 *ConsoleServerPortRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ConsoleServerPortRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *ConsoleServerPortRequest) GetType() ConsolePortTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ConsoleServerPortRequest) GetTypeOk() (*ConsolePortTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ConsoleServerPortRequest) SetType(v ConsolePortTypeValue)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ConsoleServerPortRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetSpeed + +`func (o *ConsoleServerPortRequest) GetSpeed() ConsolePortRequestSpeed` + +GetSpeed returns the Speed field if non-nil, zero value otherwise. + +### GetSpeedOk + +`func (o *ConsoleServerPortRequest) GetSpeedOk() (*ConsolePortRequestSpeed, bool)` + +GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeed + +`func (o *ConsoleServerPortRequest) SetSpeed(v ConsolePortRequestSpeed)` + +SetSpeed sets Speed field to given value. + +### HasSpeed + +`func (o *ConsoleServerPortRequest) HasSpeed() bool` + +HasSpeed returns a boolean if a field has been set. + +### SetSpeedNil + +`func (o *ConsoleServerPortRequest) SetSpeedNil(b bool)` + + SetSpeedNil sets the value for Speed to be an explicit nil + +### UnsetSpeed +`func (o *ConsoleServerPortRequest) UnsetSpeed()` + +UnsetSpeed ensures that no value is present for Speed, not even an explicit nil +### GetDescription + +`func (o *ConsoleServerPortRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ConsoleServerPortRequest) 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 *ConsoleServerPortRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ConsoleServerPortRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMarkConnected + +`func (o *ConsoleServerPortRequest) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *ConsoleServerPortRequest) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *ConsoleServerPortRequest) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *ConsoleServerPortRequest) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetTags + +`func (o *ConsoleServerPortRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConsoleServerPortRequest) 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 *ConsoleServerPortRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConsoleServerPortRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ConsoleServerPortRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ConsoleServerPortRequest) 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 *ConsoleServerPortRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ConsoleServerPortRequest) HasCustomFields() bool` + +HasCustomFields 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/ConsoleServerPortRequest.md b/docs/ConsoleServerPortRequest.md index 995610c634..3e59314af6 100644 --- a/docs/ConsoleServerPortRequest.md +++ b/docs/ConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsoleServerPortRequest -`func NewConsoleServerPortRequest(device DeviceRequest, name string, ) *ConsoleServerPortRequest` +`func NewConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *ConsoleServerPortRequest` NewConsoleServerPortRequest instantiates a new ConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsoleServerPortTemplate.md b/docs/ConsoleServerPortTemplate.md index dfc96440fd..900d1d2280 100644 --- a/docs/ConsoleServerPortTemplate.md +++ b/docs/ConsoleServerPortTemplate.md @@ -7,20 +7,20 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewConsoleServerPortTemplate -`func NewConsoleServerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *ConsoleServerPortTemplate` +`func NewConsoleServerPortTemplate(id int32, url string, display string, name string, ) *ConsoleServerPortTemplate` NewConsoleServerPortTemplate instantiates a new ConsoleServerPortTemplate object This constructor will assign default values to properties that have it defined, @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType` +`func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType` +`func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -279,6 +279,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ConsoleServerPortTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -309,6 +314,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ConsoleServerPortTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md index 6c677fcc53..2fe0e692eb 100644 --- a/docs/ConsoleServerPortTemplateRequest.md +++ b/docs/ConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/Contact.md b/docs/Contact.md index d3701de383..472828eb6e 100644 --- a/docs/Contact.md +++ b/docs/Contact.md @@ -6,9 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Group** | Pointer to [**NullableBriefContactGroup**](BriefContactGroup.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods @@ -69,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Contact) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Contact) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Contact) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Contact) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Contact) GetDisplay() string` @@ -89,6 +126,41 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetGroup + +`func (o *Contact) GetGroup() BriefContactGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Contact) GetGroupOk() (*BriefContactGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Contact) SetGroup(v BriefContactGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Contact) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Contact) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Contact) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *Contact) GetName() string` @@ -109,6 +181,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *Contact) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *Contact) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *Contact) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *Contact) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *Contact) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *Contact) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *Contact) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *Contact) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *Contact) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *Contact) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *Contact) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *Contact) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *Contact) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *Contact) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *Contact) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *Contact) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *Contact) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *Contact) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *Contact) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *Contact) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *Contact) GetDescription() string` @@ -134,6 +331,151 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Contact) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Contact) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Contact) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Contact) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Contact) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Contact) 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 *Contact) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Contact) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Contact) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Contact) 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 *Contact) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Contact) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Contact) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Contact) 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 *Contact) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Contact) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Contact) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Contact) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Contact) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Contact) 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 *Contact) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Contact) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Contact) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Contact) 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/ContactAssignment.md b/docs/ContactAssignment.md index 26a003baba..a0dacffed1 100644 --- a/docs/ContactAssignment.md +++ b/docs/ContactAssignment.md @@ -10,19 +10,19 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **map[string]interface{}** | | [readonly] -**Contact** | [**Contact**](Contact.md) | | -**Role** | Pointer to [**NullableContactRole**](ContactRole.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional] +**Contact** | [**BriefContact**](BriefContact.md) | | +**Role** | Pointer to [**NullableBriefContactRole**](BriefContactRole.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewContactAssignment -`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` +`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, ) *ContactAssignment` NewContactAssignment instantiates a new ContactAssignment object This constructor will assign default values to properties that have it defined, @@ -159,40 +159,40 @@ SetObject sets Object field to given value. ### GetContact -`func (o *ContactAssignment) GetContact() Contact` +`func (o *ContactAssignment) GetContact() BriefContact` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignment) GetContactOk() (*Contact, bool)` +`func (o *ContactAssignment) GetContactOk() (*BriefContact, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignment) SetContact(v Contact)` +`func (o *ContactAssignment) SetContact(v BriefContact)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignment) GetRole() ContactRole` +`func (o *ContactAssignment) GetRole() BriefContactRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool)` +`func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, 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 *ContactAssignment) SetRole(v ContactRole)` +`func (o *ContactAssignment) SetRole(v BriefContactRole)` SetRole sets Role field to given value. @@ -214,20 +214,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignment) GetPriority() ContactAssignmentPriority` +`func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool)` +`func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority)` +`func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` SetPriority sets Priority field to given value. @@ -306,6 +306,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ContactAssignment) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -336,6 +341,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ContactAssignment) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md index de146e2f6f..5ca6e4a625 100644 --- a/docs/ContactAssignmentRequest.md +++ b/docs/ContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewContactAssignmentRequest -`func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *ContactAssignmentRequest` +`func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *ContactAssignmentRequest` NewContactAssignmentRequest instantiates a new ContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *ContactAssignmentRequest) GetContact() ContactRequest` +`func (o *ContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, 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 *ContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/ContactGroup.md b/docs/ContactGroup.md index 42b960ec33..da026a8152 100644 --- a/docs/ContactGroup.md +++ b/docs/ContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -13,8 +14,8 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **ContactCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewContactGroup -`func NewContactGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32, ) *ContactGroup` +`func NewContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32, ) *ContactGroup` NewContactGroup instantiates a new ContactGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ContactGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ContactGroup) GetDisplay() string` @@ -266,6 +292,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ContactGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -296,6 +327,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ContactGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ContactRequest.md b/docs/ContactRequest.md index 050fa6fb1f..13eead0d4c 100644 --- a/docs/ContactRequest.md +++ b/docs/ContactRequest.md @@ -4,8 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -26,6 +35,41 @@ NewContactRequestWithDefaults instantiates a new ContactRequest 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 +### GetGroup + +`func (o *ContactRequest) GetGroup() BriefContactGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ContactRequest) SetGroup(v BriefContactGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ContactRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ContactRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ContactRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *ContactRequest) GetName() string` @@ -46,6 +90,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *ContactRequest) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ContactRequest) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ContactRequest) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ContactRequest) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *ContactRequest) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *ContactRequest) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *ContactRequest) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *ContactRequest) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *ContactRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ContactRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ContactRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *ContactRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *ContactRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *ContactRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *ContactRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *ContactRequest) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *ContactRequest) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *ContactRequest) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *ContactRequest) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *ContactRequest) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *ContactRequest) GetDescription() string` @@ -71,6 +240,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ContactRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ContactRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ContactRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ContactRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ContactRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRequest) 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 *ContactRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRequest) 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 *ContactRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRequest) HasCustomFields() bool` + +HasCustomFields 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/ContactRole 2.md b/docs/ContactRole 2.md new file mode 100644 index 0000000000..66937cee41 --- /dev/null +++ b/docs/ContactRole 2.md @@ -0,0 +1,161 @@ +# ContactRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewContactRole + +`func NewContactRole(id int32, url string, display string, name string, slug string, ) *ContactRole` + +NewContactRole instantiates a new ContactRole 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 + +### NewContactRoleWithDefaults + +`func NewContactRoleWithDefaults() *ContactRole` + +NewContactRoleWithDefaults instantiates a new ContactRole 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 *ContactRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ContactRole) 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 *ContactRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *ContactRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ContactRole) 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 *ContactRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *ContactRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *ContactRole) 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 *ContactRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *ContactRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ContactRole) 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 *ContactRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *ContactRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *ContactRole) 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 *ContactRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *ContactRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ContactRole) 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 *ContactRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ContactRole) 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/ContactRole.md b/docs/ContactRole.md index 66937cee41..aaa2f85672 100644 --- a/docs/ContactRole.md +++ b/docs/ContactRole.md @@ -6,10 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods @@ -70,6 +75,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ContactRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ContactRole) GetDisplay() string` @@ -155,6 +185,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRole) 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 *ContactRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRole) 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 *ContactRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ContactRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ContactRole) 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 *ContactRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *ContactRole) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *ContactRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ContactRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ContactRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ContactRole) 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 *ContactRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *ContactRole) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *ContactRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ContactRole) 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/ContactRoleRequest.md b/docs/ContactRoleRequest.md index 615000a632..dce32edeee 100644 --- a/docs/ContactRoleRequest.md +++ b/docs/ContactRoleRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRoleRequest) 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 *ContactRoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRoleRequest) 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 *ContactRoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRoleRequest) HasCustomFields() bool` + +HasCustomFields 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 2.md b/docs/CoreAPI 2.md new file mode 100644 index 0000000000..18791cb42b --- /dev/null +++ b/docs/CoreAPI 2.md @@ -0,0 +1,1355 @@ +# \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 + +> 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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + hash := []string{"Inner_example"} // []string | (optional) + hashEmpty := true // bool | (optional) + hashIc := []string{"Inner_example"} // []string | (optional) + hashIe := []string{"Inner_example"} // []string | (optional) + hashIew := []string{"Inner_example"} // []string | (optional) + hashIsw := []string{"Inner_example"} // []string | (optional) + hashN := []string{"Inner_example"} // []string | (optional) + hashNic := []string{"Inner_example"} // []string | (optional) + hashNie := []string{"Inner_example"} // []string | (optional) + 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) + pathEmpty := true // bool | (optional) + pathIc := []string{"Inner_example"} // []string | (optional) + pathIe := []string{"Inner_example"} // []string | (optional) + pathIew := []string{"Inner_example"} // []string | (optional) + pathIsw := []string{"Inner_example"} // []string | (optional) + pathN := []string{"Inner_example"} // []string | (optional) + pathNic := []string{"Inner_example"} // []string | (optional) + pathNie := []string{"Inner_example"} // []string | (optional) + pathNiew := []string{"Inner_example"} // []string | (optional) + 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) + sizeLte := []int32{int32(123)} // []int32 | (optional) + sizeN := []int32{int32(123)} // []int32 | (optional) + source := []string{"Inner_example"} // []string | Data source (name) (optional) + sourceN := []string{"Inner_example"} // []string | Data source (name) (optional) + sourceId := []int32{int32(123)} // []int32 | Data source (ID) (optional) + sourceIdN := []int32{int32(123)} // []int32 | Data source (ID) (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataFilesList`: PaginatedDataFileList + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataFilesListRequest struct via the builder pattern + + +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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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** | | + **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** | | + **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** | Data source (name) | + **sourceN** | **[]string** | Data source (name) | + **sourceId** | **[]int32** | Data source (ID) | + **sourceIdN** | **[]int32** | Data source (ID) | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedDataFileList**](PaginatedDataFileList.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) + + +## CoreDataFilesRetrieve + +> DataFile CoreDataFilesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this data file. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataFilesRetrieve`: DataFile + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesRetrieve`: %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 data file. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataFilesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DataFile**](DataFile.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) + + +## CoreDataSourcesBulkDestroy + +> CoreDataSourcesBulkDestroy(ctx).DataSourceRequest(dataSourceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dataSourceRequest** | [**[]DataSourceRequest**](DataSourceRequest.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) + + +## CoreDataSourcesBulkPartialUpdate + +> []DataSource CoreDataSourcesBulkPartialUpdate(ctx).DataSourceRequest(dataSourceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesBulkPartialUpdate`: []DataSource + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dataSourceRequest** | [**[]DataSourceRequest**](DataSourceRequest.md) | | + +### Return type + +[**[]DataSource**](DataSource.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) + + +## CoreDataSourcesBulkUpdate + +> []DataSource CoreDataSourcesBulkUpdate(ctx).DataSourceRequest(dataSourceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesBulkUpdate`: []DataSource + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dataSourceRequest** | [**[]DataSourceRequest**](DataSourceRequest.md) | | + +### Return type + +[**[]DataSource**](DataSource.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) + + +## CoreDataSourcesCreate + +> DataSource CoreDataSourcesCreate(ctx).WritableDataSourceRequest(writableDataSourceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "Type_example", "SourceUrl_example") // WritableDataSourceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesCreate`: DataSource + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableDataSourceRequest** | [**WritableDataSourceRequest**](WritableDataSourceRequest.md) | | + +### Return type + +[**DataSource**](DataSource.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) + + +## CoreDataSourcesDestroy + +> CoreDataSourcesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this data source. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 data source. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesDestroyRequest 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) + + +## CoreDataSourcesList + +> PaginatedDataSourceList CoreDataSourcesList(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).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).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).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + lastSynced := []time.Time{time.Now()} // []time.Time | (optional) + lastSyncedEmpty := true // bool | (optional) + lastSyncedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastSyncedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastSyncedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastSyncedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastSyncedN := []time.Time{time.Now()} // []time.Time | (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) + 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) + sourceUrl := []string{"Inner_example"} // []string | (optional) + sourceUrlEmpty := true // bool | (optional) + sourceUrlIc := []string{"Inner_example"} // []string | (optional) + sourceUrlIe := []string{"Inner_example"} // []string | (optional) + sourceUrlIew := []string{"Inner_example"} // []string | (optional) + sourceUrlIsw := []string{"Inner_example"} // []string | (optional) + sourceUrlN := []string{"Inner_example"} // []string | (optional) + sourceUrlNic := []string{"Inner_example"} // []string | (optional) + sourceUrlNie := []string{"Inner_example"} // []string | (optional) + sourceUrlNiew := []string{"Inner_example"} // []string | (optional) + sourceUrlNisw := []string{"Inner_example"} // []string | (optional) + status := []string{"Inner_example"} // []string | (optional) + statusN := []string{"Inner_example"} // []string | (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []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.CoreAPI.CoreDataSourcesList(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).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).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).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesList`: PaginatedDataSourceList + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesListRequest struct via the builder pattern + + +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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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** | | + **lastSynced** | [**[]time.Time**](time.Time.md) | | + **lastSyncedEmpty** | **bool** | | + **lastSyncedGt** | [**[]time.Time**](time.Time.md) | | + **lastSyncedGte** | [**[]time.Time**](time.Time.md) | | + **lastSyncedLt** | [**[]time.Time**](time.Time.md) | | + **lastSyncedLte** | [**[]time.Time**](time.Time.md) | | + **lastSyncedN** | [**[]time.Time**](time.Time.md) | | + **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** | | + **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 | + **sourceUrl** | **[]string** | | + **sourceUrlEmpty** | **bool** | | + **sourceUrlIc** | **[]string** | | + **sourceUrlIe** | **[]string** | | + **sourceUrlIew** | **[]string** | | + **sourceUrlIsw** | **[]string** | | + **sourceUrlN** | **[]string** | | + **sourceUrlNic** | **[]string** | | + **sourceUrlNie** | **[]string** | | + **sourceUrlNiew** | **[]string** | | + **sourceUrlNisw** | **[]string** | | + **status** | **[]string** | | + **statusN** | **[]string** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **type_** | **[]string** | | + **typeN** | **[]string** | | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedDataSourceList**](PaginatedDataSourceList.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) + + +## CoreDataSourcesPartialUpdate + +> DataSource CoreDataSourcesPartialUpdate(ctx, id).PatchedWritableDataSourceRequest(patchedWritableDataSourceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this data source. + patchedWritableDataSourceRequest := *openapiclient.NewPatchedWritableDataSourceRequest() // PatchedWritableDataSourceRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesPartialUpdate`: DataSource + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesPartialUpdate`: %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 data source. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableDataSourceRequest** | [**PatchedWritableDataSourceRequest**](PatchedWritableDataSourceRequest.md) | | + +### Return type + +[**DataSource**](DataSource.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) + + +## CoreDataSourcesRetrieve + +> DataSource CoreDataSourcesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this data source. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesRetrieve`: DataSource + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesRetrieve`: %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 data source. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DataSource**](DataSource.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) + + +## CoreDataSourcesSyncCreate + +> DataSource CoreDataSourcesSyncCreate(ctx, id).WritableDataSourceRequest(writableDataSourceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this data source. + writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "Type_example", "SourceUrl_example") // WritableDataSourceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesSyncCreate`: DataSource + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesSyncCreate`: %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 data source. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesSyncCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableDataSourceRequest** | [**WritableDataSourceRequest**](WritableDataSourceRequest.md) | | + +### Return type + +[**DataSource**](DataSource.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) + + +## CoreDataSourcesUpdate + +> DataSource CoreDataSourcesUpdate(ctx, id).WritableDataSourceRequest(writableDataSourceRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this data source. + writableDataSourceRequest := *openapiclient.NewWritableDataSourceRequest("Name_example", "Type_example", "SourceUrl_example") // WritableDataSourceRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreDataSourcesUpdate`: DataSource + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesUpdate`: %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 data source. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreDataSourcesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableDataSourceRequest** | [**WritableDataSourceRequest**](WritableDataSourceRequest.md) | | + +### Return type + +[**DataSource**](DataSource.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) + + +## CoreJobsList + +> 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).JobId(jobId).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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + completed := time.Now() // time.Time | (optional) + completedAfter := time.Now() // time.Time | (optional) + completedBefore := time.Now() // time.Time | (optional) + created := time.Now() // time.Time | (optional) + 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) + intervalLte := []int32{int32(123)} // []int32 | (optional) + intervalN := []int32{int32(123)} // []int32 | (optional) + jobId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (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) + 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 := int32(56) // int32 | (optional) + objectTypeN := int32(56) // 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) + scheduled := time.Now() // time.Time | (optional) + scheduledAfter := time.Now() // time.Time | (optional) + scheduledBefore := time.Now() // time.Time | (optional) + started := time.Now() // time.Time | (optional) + startedAfter := time.Now() // time.Time | (optional) + startedBefore := time.Now() // time.Time | (optional) + status := []string{"Inner_example"} // []string | (optional) + statusN := []string{"Inner_example"} // []string | (optional) + user := int32(56) // int32 | (optional) + userN := int32(56) // int32 | (optional) + + 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).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).JobId(jobId).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, "Full HTTP response: %v\n", r) + } + // response from `CoreJobsList`: PaginatedJobList + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreJobsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **completed** | **time.Time** | | + **completedAfter** | **time.Time** | | + **completedBefore** | **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** | | + **jobId** | **string** | | + **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** | | + **objectId** | **[]int32** | | + **objectIdEmpty** | **bool** | | + **objectIdGt** | **[]int32** | | + **objectIdGte** | **[]int32** | | + **objectIdLt** | **[]int32** | | + **objectIdLte** | **[]int32** | | + **objectIdN** | **[]int32** | | + **objectType** | **int32** | | + **objectTypeN** | **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 | + **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** | | + +### Return type + +[**PaginatedJobList**](PaginatedJobList.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) + + +## CoreJobsRetrieve + +> Job CoreJobsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this job. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `CoreJobsRetrieve`: Job + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsRetrieve`: %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 job. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreJobsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Job**](Job.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) + diff --git a/docs/CoreAPI.md b/docs/CoreAPI.md index 18791cb42b..55dc884040 100644 --- a/docs/CoreAPI.md +++ b/docs/CoreAPI.md @@ -4,6 +4,16 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CoreBackgroundQueuesRetrieve**](CoreAPI.md#CoreBackgroundQueuesRetrieve) | **Get** /api/core/background-queues/ | +[**CoreBackgroundQueuesRetrieve2**](CoreAPI.md#CoreBackgroundQueuesRetrieve2) | **Get** /api/core/background-queues/{name}/ | +[**CoreBackgroundTasksDeleteCreate**](CoreAPI.md#CoreBackgroundTasksDeleteCreate) | **Post** /api/core/background-tasks/{id}/delete/ | +[**CoreBackgroundTasksEnqueueCreate**](CoreAPI.md#CoreBackgroundTasksEnqueueCreate) | **Post** /api/core/background-tasks/{id}/enqueue/ | +[**CoreBackgroundTasksRequeueCreate**](CoreAPI.md#CoreBackgroundTasksRequeueCreate) | **Post** /api/core/background-tasks/{id}/requeue/ | +[**CoreBackgroundTasksRetrieve**](CoreAPI.md#CoreBackgroundTasksRetrieve) | **Get** /api/core/background-tasks/ | +[**CoreBackgroundTasksRetrieve2**](CoreAPI.md#CoreBackgroundTasksRetrieve2) | **Get** /api/core/background-tasks/{id}/ | +[**CoreBackgroundTasksStopCreate**](CoreAPI.md#CoreBackgroundTasksStopCreate) | **Post** /api/core/background-tasks/{id}/stop/ | +[**CoreBackgroundWorkersRetrieve**](CoreAPI.md#CoreBackgroundWorkersRetrieve) | **Get** /api/core/background-workers/ | +[**CoreBackgroundWorkersRetrieve2**](CoreAPI.md#CoreBackgroundWorkersRetrieve2) | **Get** /api/core/background-workers/{name}/ | [**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/ | @@ -18,9 +28,674 @@ Method | HTTP request | Description [**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}/ | +[**CoreObjectChangesList**](CoreAPI.md#CoreObjectChangesList) | **Get** /api/core/object-changes/ | +[**CoreObjectChangesRetrieve**](CoreAPI.md#CoreObjectChangesRetrieve) | **Get** /api/core/object-changes/{id}/ | +## CoreBackgroundQueuesRetrieve + +> map[string]interface{} CoreBackgroundQueuesRetrieve(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreBackgroundQueuesRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundQueuesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreBackgroundQueuesRetrieve`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreBackgroundQueuesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundQueuesRetrieveRequest struct via the builder pattern + + +### Return type + +**map[string]interface{}** + +### 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) + + +## CoreBackgroundQueuesRetrieve2 + +> map[string]interface{} CoreBackgroundQueuesRetrieve2(ctx, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + name := "name_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreBackgroundQueuesRetrieve2(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundQueuesRetrieve2``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreBackgroundQueuesRetrieve2`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreBackgroundQueuesRetrieve2`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundQueuesRetrieve2Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### 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) + + +## CoreBackgroundTasksDeleteCreate + +> CoreBackgroundTasksDeleteCreate(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CoreAPI.CoreBackgroundTasksDeleteCreate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundTasksDeleteCreate``: %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** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundTasksDeleteCreateRequest 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) + + +## CoreBackgroundTasksEnqueueCreate + +> CoreBackgroundTasksEnqueueCreate(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CoreAPI.CoreBackgroundTasksEnqueueCreate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundTasksEnqueueCreate``: %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** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundTasksEnqueueCreateRequest 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) + + +## CoreBackgroundTasksRequeueCreate + +> CoreBackgroundTasksRequeueCreate(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CoreAPI.CoreBackgroundTasksRequeueCreate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundTasksRequeueCreate``: %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** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundTasksRequeueCreateRequest 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) + + +## CoreBackgroundTasksRetrieve + +> map[string]interface{} CoreBackgroundTasksRetrieve(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreBackgroundTasksRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundTasksRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreBackgroundTasksRetrieve`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreBackgroundTasksRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundTasksRetrieveRequest struct via the builder pattern + + +### Return type + +**map[string]interface{}** + +### 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) + + +## CoreBackgroundTasksRetrieve2 + +> map[string]interface{} CoreBackgroundTasksRetrieve2(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreBackgroundTasksRetrieve2(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundTasksRetrieve2``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreBackgroundTasksRetrieve2`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreBackgroundTasksRetrieve2`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundTasksRetrieve2Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]interface{}** + +### 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) + + +## CoreBackgroundTasksStopCreate + +> CoreBackgroundTasksStopCreate(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CoreAPI.CoreBackgroundTasksStopCreate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundTasksStopCreate``: %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** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundTasksStopCreateRequest 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) + + +## CoreBackgroundWorkersRetrieve + +> map[string]interface{} CoreBackgroundWorkersRetrieve(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreBackgroundWorkersRetrieve(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundWorkersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreBackgroundWorkersRetrieve`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreBackgroundWorkersRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundWorkersRetrieveRequest struct via the builder pattern + + +### Return type + +**map[string]interface{}** + +### 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) + + +## CoreBackgroundWorkersRetrieve2 + +> CoreBackgroundWorkersRetrieve2(ctx, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + name := "name_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CoreAPI.CoreBackgroundWorkersRetrieve2(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreBackgroundWorkersRetrieve2``: %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. +**name** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreBackgroundWorkersRetrieve2Request 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) + + ## CoreDataFilesList > 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() @@ -299,7 +974,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -363,7 +1038,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +1104,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -610,7 +1285,7 @@ Name | Type | Description | Notes ## CoreDataSourcesList -> PaginatedDataSourceList CoreDataSourcesList(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).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).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).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).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).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).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).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).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -699,16 +1374,34 @@ func main() { sourceUrlNiew := []string{"Inner_example"} // []string | (optional) sourceUrlNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreAPI.CoreDataSourcesList(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).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).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).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).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).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).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).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).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -798,11 +1491,29 @@ Name | Type | Description | Notes **sourceUrlNiew** | **[]string** | | **sourceUrlNisw** | **[]string** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | ### Return type @@ -1111,7 +1822,7 @@ Name | Type | Description | Notes ## CoreJobsList -> 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).JobId(jobId).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() +> 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).JobId(jobId).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).User(user).UserN(userN).Execute() @@ -1183,13 +1894,22 @@ func main() { startedAfter := time.Now() // time.Time | (optional) startedBefore := time.Now() // time.Time | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_example"} // []string | (optional) user := int32(56) // int32 | (optional) userN := int32(56) // int32 | (optional) 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).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).JobId(jobId).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() + 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).JobId(jobId).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).User(user).UserN(userN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1262,7 +1982,16 @@ Name | Type | Description | Notes **startedAfter** | **time.Time** | | **startedBefore** | **time.Time** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | **user** | **int32** | | **userN** | **int32** | | @@ -1353,3 +2082,260 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## CoreObjectChangesList + +> PaginatedObjectChangeList CoreObjectChangesList(ctx).Action(action).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).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + action := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (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) + changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdN := []int32{int32(123)} // []int32 | (optional) + changedObjectType := "changedObjectType_example" // string | (optional) + changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) + 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) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + objectRepr := []string{"Inner_example"} // []string | (optional) + objectReprEmpty := true // bool | (optional) + objectReprIc := []string{"Inner_example"} // []string | (optional) + objectReprIe := []string{"Inner_example"} // []string | (optional) + objectReprIew := []string{"Inner_example"} // []string | (optional) + objectReprIsw := []string{"Inner_example"} // []string | (optional) + objectReprN := []string{"Inner_example"} // []string | (optional) + objectReprNic := []string{"Inner_example"} // []string | (optional) + objectReprNie := []string{"Inner_example"} // []string | (optional) + objectReprNiew := []string{"Inner_example"} // []string | (optional) + objectReprNisw := []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) + relatedObjectId := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdEmpty := true // bool | (optional) + relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) + relatedObjectType := int32(56) // int32 | (optional) + relatedObjectTypeN := int32(56) // int32 | (optional) + requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + timeAfter := time.Now() // time.Time | (optional) + timeBefore := time.Now() // time.Time | (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) + userName := []string{"Inner_example"} // []string | (optional) + userNameEmpty := true // bool | (optional) + userNameIc := []string{"Inner_example"} // []string | (optional) + userNameIe := []string{"Inner_example"} // []string | (optional) + userNameIew := []string{"Inner_example"} // []string | (optional) + userNameIsw := []string{"Inner_example"} // []string | (optional) + userNameN := []string{"Inner_example"} // []string | (optional) + userNameNic := []string{"Inner_example"} // []string | (optional) + userNameNie := []string{"Inner_example"} // []string | (optional) + userNameNiew := []string{"Inner_example"} // []string | (optional) + userNameNisw := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesList(context.Background()).Action(action).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).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).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 `CoreAPI.CoreObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesList`: PaginatedObjectChangeList + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **action** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **changedObjectId** | **[]int32** | | + **changedObjectIdEmpty** | **bool** | | + **changedObjectIdGt** | **[]int32** | | + **changedObjectIdGte** | **[]int32** | | + **changedObjectIdLt** | **[]int32** | | + **changedObjectIdLte** | **[]int32** | | + **changedObjectIdN** | **[]int32** | | + **changedObjectType** | **string** | | + **changedObjectTypeN** | **string** | | + **changedObjectTypeId** | **[]int32** | | + **changedObjectTypeIdN** | **[]int32** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **limit** | **int32** | Number of results to return per page. | + **objectRepr** | **[]string** | | + **objectReprEmpty** | **bool** | | + **objectReprIc** | **[]string** | | + **objectReprIe** | **[]string** | | + **objectReprIew** | **[]string** | | + **objectReprIsw** | **[]string** | | + **objectReprN** | **[]string** | | + **objectReprNic** | **[]string** | | + **objectReprNie** | **[]string** | | + **objectReprNiew** | **[]string** | | + **objectReprNisw** | **[]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 | + **relatedObjectId** | **[]int32** | | + **relatedObjectIdEmpty** | **bool** | | + **relatedObjectIdGt** | **[]int32** | | + **relatedObjectIdGte** | **[]int32** | | + **relatedObjectIdLt** | **[]int32** | | + **relatedObjectIdLte** | **[]int32** | | + **relatedObjectIdN** | **[]int32** | | + **relatedObjectType** | **int32** | | + **relatedObjectTypeN** | **int32** | | + **requestId** | **string** | | + **timeAfter** | **time.Time** | | + **timeBefore** | **time.Time** | | + **user** | **[]string** | User name | + **userN** | **[]string** | User name | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **userName** | **[]string** | | + **userNameEmpty** | **bool** | | + **userNameIc** | **[]string** | | + **userNameIe** | **[]string** | | + **userNameIew** | **[]string** | | + **userNameIsw** | **[]string** | | + **userNameN** | **[]string** | | + **userNameNic** | **[]string** | | + **userNameNie** | **[]string** | | + **userNameNiew** | **[]string** | | + **userNameNisw** | **[]string** | | + +### Return type + +[**PaginatedObjectChangeList**](PaginatedObjectChangeList.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) + + +## CoreObjectChangesRetrieve + +> ObjectChange CoreObjectChangesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object change. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesRetrieve`: ObjectChange + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesRetrieve`: %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 object change. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectChange**](ObjectChange.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) + diff --git a/docs/ExtrasObjectChangesListActionParameter.md b/docs/CoreObjectChangesListActionParameter.md similarity index 86% rename from docs/ExtrasObjectChangesListActionParameter.md rename to docs/CoreObjectChangesListActionParameter.md index bfa030c686..3e5e393d73 100644 --- a/docs/ExtrasObjectChangesListActionParameter.md +++ b/docs/CoreObjectChangesListActionParameter.md @@ -1,4 +1,4 @@ -# ExtrasObjectChangesListActionParameter +# CoreObjectChangesListActionParameter ## Enum diff --git a/docs/CustomField.md b/docs/CustomField.md index 58a8f87713..74e7b6f282 100644 --- a/docs/CustomField.md +++ b/docs/CustomField.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Type** | [**CustomFieldType**](CustomFieldType.md) | | @@ -15,27 +16,29 @@ Name | Type | Description | Notes **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] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned 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 [**CustomFieldFilterLogic**](CustomFieldFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisible**](CustomFieldUiVisible.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditable**](CustomFieldUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (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 **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | 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] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSet**](BriefCustomFieldChoiceSet.md) | | [optional] **Comments** | Pointer to **string** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewCustomField -`func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime, ) *CustomField` +`func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, ) *CustomField` NewCustomField instantiates a new CustomField object This constructor will assign default values to properties that have it defined, @@ -90,6 +93,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomField) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomField) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomField) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CustomField) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CustomField) GetDisplay() string` @@ -325,6 +353,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomField) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomField) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomField) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomField) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomField) GetSearchWeight() int32` @@ -485,6 +538,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomField) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomField) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomField) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomField) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomField) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomField) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomField) GetWeight() int32` @@ -607,20 +695,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet` +`func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool)` +`func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool)` 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. ### SetChoiceSet -`func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet)` +`func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet)` SetChoiceSet sets ChoiceSet field to given value. @@ -684,6 +772,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *CustomField) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -714,6 +807,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *CustomField) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/CustomFieldChoiceSet.md b/docs/CustomFieldChoiceSet.md index ebc8229ca5..35f731d81d 100644 --- a/docs/CustomFieldChoiceSet.md +++ b/docs/CustomFieldChoiceSet.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -13,14 +14,14 @@ Name | Type | Description | Notes **ExtraChoices** | **[][]interface{}** | | **OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] **ChoicesCount** | **string** | | [readonly] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewCustomFieldChoiceSet -`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` +`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, ) *CustomFieldChoiceSet` NewCustomFieldChoiceSet instantiates a new CustomFieldChoiceSet object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomFieldChoiceSet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomFieldChoiceSet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CustomFieldChoiceSet) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CustomFieldChoiceSet) GetDisplay() string` @@ -249,6 +275,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *CustomFieldChoiceSet) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -279,6 +310,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *CustomFieldChoiceSet) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/CustomFieldChoiceSetBaseChoicesValue 2.md b/docs/CustomFieldChoiceSetBaseChoicesValue 2.md new file mode 100644 index 0000000000..30b434e9e3 --- /dev/null +++ b/docs/CustomFieldChoiceSetBaseChoicesValue 2.md @@ -0,0 +1,15 @@ +# CustomFieldChoiceSetBaseChoicesValue + +## Enum + + +* `IATA` (value: `"IATA"`) + +* `ISO_3166` (value: `"ISO_3166"`) + +* `UN_LOCODE` (value: `"UN_LOCODE"`) + + +[[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 2.md b/docs/CustomFieldChoiceSetRequest 2.md new file mode 100644 index 0000000000..fe10b58806 --- /dev/null +++ b/docs/CustomFieldChoiceSetRequest 2.md @@ -0,0 +1,150 @@ +# CustomFieldChoiceSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**BaseChoices** | Pointer to [**CustomFieldChoiceSetBaseChoicesValue**](CustomFieldChoiceSetBaseChoicesValue.md) | | [optional] +**ExtraChoices** | **[][]interface{}** | | +**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] + +## Methods + +### NewCustomFieldChoiceSetRequest + +`func NewCustomFieldChoiceSetRequest(name string, extraChoices [][]interface{}, ) *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() CustomFieldChoiceSetBaseChoicesValue` + +GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise. + +### GetBaseChoicesOk + +`func (o *CustomFieldChoiceSetRequest) GetBaseChoicesOk() (*CustomFieldChoiceSetBaseChoicesValue, 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 CustomFieldChoiceSetBaseChoicesValue)` + +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() [][]interface{}` + +GetExtraChoices returns the ExtraChoices field if non-nil, zero value otherwise. + +### GetExtraChoicesOk + +`func (o *CustomFieldChoiceSetRequest) GetExtraChoicesOk() (*[][]interface{}, 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 [][]interface{})` + +SetExtraChoices sets ExtraChoices field to given value. + + +### 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/CustomFieldFilterLogicValue 2.md b/docs/CustomFieldFilterLogicValue 2.md new file mode 100644 index 0000000000..805c1cc6cb --- /dev/null +++ b/docs/CustomFieldFilterLogicValue 2.md @@ -0,0 +1,15 @@ +# CustomFieldFilterLogicValue + +## Enum + + +* `DISABLED` (value: `"disabled"`) + +* `LOOSE` (value: `"loose"`) + +* `EXACT` (value: `"exact"`) + + +[[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 ab9dfbfd1c..e9b2185ecf 100644 --- a/docs/CustomFieldRequest.md +++ b/docs/CustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **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] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned 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 [**CustomFieldFilterLogicValue**](CustomFieldFilterLogicValue.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisibleValue**](CustomFieldUiVisibleValue.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (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 **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | 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] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -239,6 +241,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomFieldRequest) GetSearchWeight() int32` @@ -399,6 +426,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomFieldRequest) GetWeight() int32` @@ -521,20 +583,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` 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. ### SetChoiceSet -`func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomFieldUiEditable 2.md b/docs/CustomFieldUiEditable 2.md new file mode 100644 index 0000000000..e8f5271631 --- /dev/null +++ b/docs/CustomFieldUiEditable 2.md @@ -0,0 +1,82 @@ +# CustomFieldUiEditable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional] +**Label** | Pointer to [**CustomFieldUiEditableLabel**](CustomFieldUiEditableLabel.md) | | [optional] + +## Methods + +### NewCustomFieldUiEditable + +`func NewCustomFieldUiEditable() *CustomFieldUiEditable` + +NewCustomFieldUiEditable instantiates a new CustomFieldUiEditable 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 + +### NewCustomFieldUiEditableWithDefaults + +`func NewCustomFieldUiEditableWithDefaults() *CustomFieldUiEditable` + +NewCustomFieldUiEditableWithDefaults instantiates a new CustomFieldUiEditable 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 *CustomFieldUiEditable) GetValue() CustomFieldUiEditableValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CustomFieldUiEditable) GetValueOk() (*CustomFieldUiEditableValue, 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 *CustomFieldUiEditable) SetValue(v CustomFieldUiEditableValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CustomFieldUiEditable) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CustomFieldUiEditable) GetLabel() CustomFieldUiEditableLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CustomFieldUiEditable) GetLabelOk() (*CustomFieldUiEditableLabel, 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 *CustomFieldUiEditable) SetLabel(v CustomFieldUiEditableLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CustomFieldUiEditable) 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/CustomFieldUiVisibleValue 2.md b/docs/CustomFieldUiVisibleValue 2.md new file mode 100644 index 0000000000..13f2532737 --- /dev/null +++ b/docs/CustomFieldUiVisibleValue 2.md @@ -0,0 +1,15 @@ +# CustomFieldUiVisibleValue + +## Enum + + +* `ALWAYS` (value: `"always"`) + +* `IF_SET` (value: `"if-set"`) + +* `HIDDEN` (value: `"hidden"`) + + +[[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/CustomLink.md b/docs/CustomLink.md index c2b8e12eac..cae13994d6 100644 --- a/docs/CustomLink.md +++ b/docs/CustomLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -16,14 +17,14 @@ Name | Type | Description | Notes **GroupName** | Pointer to **string** | Links with the same group will appear as a dropdown menu | [optional] **ButtonClass** | Pointer to [**CustomLinkButtonClass**](CustomLinkButtonClass.md) | | [optional] **NewWindow** | Pointer to **bool** | Force link to open in a new window | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewCustomLink -`func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime, ) *CustomLink` +`func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, ) *CustomLink` NewCustomLink instantiates a new CustomLink object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CustomLink) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CustomLink) GetDisplay() string` @@ -322,6 +348,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *CustomLink) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -352,6 +383,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *CustomLink) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/CustomLinkButtonClass.md b/docs/CustomLinkButtonClass.md index f62db6217b..bf68c5956e 100644 --- a/docs/CustomLinkButtonClass.md +++ b/docs/CustomLinkButtonClass.md @@ -3,7 +3,7 @@ ## Enum -* `OUTLINE_DARK` (value: `"outline-dark"`) +* `DEFAULT` (value: `"default"`) * `BLUE` (value: `"blue"`) diff --git a/docs/DataFile.md b/docs/DataFile.md index a332d29cbd..81f2e0f936 100644 --- a/docs/DataFile.md +++ b/docs/DataFile.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Source** | [**DataSource**](DataSource.md) | | [readonly] +**Source** | [**BriefDataSource**](BriefDataSource.md) | | [readonly] **Path** | **string** | File path relative to the data source's root | [readonly] **LastUpdated** | **time.Time** | | [readonly] **Size** | **int32** | | [readonly] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewDataFile -`func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` +`func NewDataFile(id int32, url string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` NewDataFile instantiates a new DataFile object This constructor will assign default values to properties that have it defined, @@ -72,6 +73,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataFile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataFile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataFile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DataFile) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DataFile) GetDisplay() string` @@ -94,20 +120,20 @@ SetDisplay sets Display field to given value. ### GetSource -`func (o *DataFile) GetSource() DataSource` +`func (o *DataFile) GetSource() BriefDataSource` GetSource returns the Source field if non-nil, zero value otherwise. ### GetSourceOk -`func (o *DataFile) GetSourceOk() (*DataSource, bool)` +`func (o *DataFile) GetSourceOk() (*BriefDataSource, bool)` GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSource -`func (o *DataFile) SetSource(v DataSource)` +`func (o *DataFile) SetSource(v BriefDataSource)` SetSource sets Source field to given value. diff --git a/docs/DataSource.md b/docs/DataSource.md index 0768fd476e..c06448dc77 100644 --- a/docs/DataSource.md +++ b/docs/DataSource.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**DataSourceType**](DataSourceType.md) | | +**SourceUrl** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**Status** | [**DataSourceStatus**](DataSourceStatus.md) | | **Description** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **interface{}** | | [optional] +**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**LastSynced** | Pointer to **NullableTime** | | [optional] [readonly] +**FileCount** | **int64** | | [readonly] ## Methods ### NewDataSource -`func NewDataSource(id int32, url string, display string, name string, ) *DataSource` +`func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, fileCount int64, ) *DataSource` NewDataSource instantiates a new DataSource object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataSource) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataSource) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataSource) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DataSource) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DataSource) GetDisplay() string` @@ -109,6 +147,91 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *DataSource) GetType() DataSourceType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DataSource) GetTypeOk() (*DataSourceType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DataSource) SetType(v DataSourceType)` + +SetType sets Type field to given value. + + +### GetSourceUrl + +`func (o *DataSource) GetSourceUrl() string` + +GetSourceUrl returns the SourceUrl field if non-nil, zero value otherwise. + +### GetSourceUrlOk + +`func (o *DataSource) GetSourceUrlOk() (*string, bool)` + +GetSourceUrlOk returns a tuple with the SourceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceUrl + +`func (o *DataSource) SetSourceUrl(v string)` + +SetSourceUrl sets SourceUrl field to given value. + + +### GetEnabled + +`func (o *DataSource) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *DataSource) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *DataSource) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *DataSource) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetStatus + +`func (o *DataSource) GetStatus() DataSourceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DataSource) GetStatusOk() (*DataSourceStatus, 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 *DataSource) SetStatus(v DataSourceStatus)` + +SetStatus sets Status field to given value. + + ### GetDescription `func (o *DataSource) GetDescription() string` @@ -134,6 +257,241 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetParameters + +`func (o *DataSource) GetParameters() interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *DataSource) GetParametersOk() (*interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *DataSource) SetParameters(v interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *DataSource) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *DataSource) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *DataSource) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetIgnoreRules + +`func (o *DataSource) GetIgnoreRules() string` + +GetIgnoreRules returns the IgnoreRules field if non-nil, zero value otherwise. + +### GetIgnoreRulesOk + +`func (o *DataSource) GetIgnoreRulesOk() (*string, bool)` + +GetIgnoreRulesOk returns a tuple with the IgnoreRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreRules + +`func (o *DataSource) SetIgnoreRules(v string)` + +SetIgnoreRules sets IgnoreRules field to given value. + +### HasIgnoreRules + +`func (o *DataSource) HasIgnoreRules() bool` + +HasIgnoreRules returns a boolean if a field has been set. + +### GetComments + +`func (o *DataSource) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSource) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSource) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSource) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DataSource) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DataSource) 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 *DataSource) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DataSource) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DataSource) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DataSource) 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 *DataSource) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *DataSource) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *DataSource) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DataSource) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DataSource) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DataSource) 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 *DataSource) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *DataSource) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *DataSource) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DataSource) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetLastSynced + +`func (o *DataSource) GetLastSynced() time.Time` + +GetLastSynced returns the LastSynced field if non-nil, zero value otherwise. + +### GetLastSyncedOk + +`func (o *DataSource) GetLastSyncedOk() (*time.Time, bool)` + +GetLastSyncedOk returns a tuple with the LastSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSynced + +`func (o *DataSource) SetLastSynced(v time.Time)` + +SetLastSynced sets LastSynced field to given value. + +### HasLastSynced + +`func (o *DataSource) HasLastSynced() bool` + +HasLastSynced returns a boolean if a field has been set. + +### SetLastSyncedNil + +`func (o *DataSource) SetLastSyncedNil(b bool)` + + SetLastSyncedNil sets the value for LastSynced to be an explicit nil + +### UnsetLastSynced +`func (o *DataSource) UnsetLastSynced()` + +UnsetLastSynced ensures that no value is present for LastSynced, not even an explicit nil +### GetFileCount + +`func (o *DataSource) GetFileCount() int64` + +GetFileCount returns the FileCount field if non-nil, zero value otherwise. + +### GetFileCountOk + +`func (o *DataSource) GetFileCountOk() (*int64, bool)` + +GetFileCountOk returns a tuple with the FileCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileCount + +`func (o *DataSource) SetFileCount(v int64)` + +SetFileCount sets FileCount 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/DataSourceRequest 2.md b/docs/DataSourceRequest 2.md new file mode 100644 index 0000000000..f9f23e2557 --- /dev/null +++ b/docs/DataSourceRequest 2.md @@ -0,0 +1,259 @@ +# DataSourceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Type** | [**DataSourceRequestType**](DataSourceRequestType.md) | | +**SourceUrl** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **interface{}** | | [optional] +**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewDataSourceRequest + +`func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string, ) *DataSourceRequest` + +NewDataSourceRequest instantiates a new DataSourceRequest 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 + +### NewDataSourceRequestWithDefaults + +`func NewDataSourceRequestWithDefaults() *DataSourceRequest` + +NewDataSourceRequestWithDefaults instantiates a new DataSourceRequest 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 *DataSourceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DataSourceRequest) 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 *DataSourceRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetType + +`func (o *DataSourceRequest) GetType() DataSourceRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DataSourceRequest) SetType(v DataSourceRequestType)` + +SetType sets Type field to given value. + + +### GetSourceUrl + +`func (o *DataSourceRequest) GetSourceUrl() string` + +GetSourceUrl returns the SourceUrl field if non-nil, zero value otherwise. + +### GetSourceUrlOk + +`func (o *DataSourceRequest) GetSourceUrlOk() (*string, bool)` + +GetSourceUrlOk returns a tuple with the SourceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceUrl + +`func (o *DataSourceRequest) SetSourceUrl(v string)` + +SetSourceUrl sets SourceUrl field to given value. + + +### GetEnabled + +`func (o *DataSourceRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *DataSourceRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *DataSourceRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *DataSourceRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetDescription + +`func (o *DataSourceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DataSourceRequest) 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 *DataSourceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *DataSourceRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *DataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetParameters + +`func (o *DataSourceRequest) GetParameters() interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *DataSourceRequest) GetParametersOk() (*interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *DataSourceRequest) SetParameters(v interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *DataSourceRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *DataSourceRequest) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *DataSourceRequest) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetIgnoreRules + +`func (o *DataSourceRequest) GetIgnoreRules() string` + +GetIgnoreRules returns the IgnoreRules field if non-nil, zero value otherwise. + +### GetIgnoreRulesOk + +`func (o *DataSourceRequest) GetIgnoreRulesOk() (*string, bool)` + +GetIgnoreRulesOk returns a tuple with the IgnoreRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreRules + +`func (o *DataSourceRequest) SetIgnoreRules(v string)` + +SetIgnoreRules sets IgnoreRules field to given value. + +### HasIgnoreRules + +`func (o *DataSourceRequest) HasIgnoreRules() bool` + +HasIgnoreRules returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DataSourceRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DataSourceRequest) 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 *DataSourceRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DataSourceRequest) HasCustomFields() bool` + +HasCustomFields 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/DataSourceRequest.md b/docs/DataSourceRequest.md index f9f23e2557..8aad888e3e 100644 --- a/docs/DataSourceRequest.md +++ b/docs/DataSourceRequest.md @@ -5,20 +5,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**DataSourceRequestType**](DataSourceRequestType.md) | | +**Type** | [**DataSourceTypeValue**](DataSourceTypeValue.md) | | **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDataSourceRequest -`func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string, ) *DataSourceRequest` +`func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string, ) *DataSourceRequest` NewDataSourceRequest instantiates a new DataSourceRequest object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetName sets Name field to given value. ### GetType -`func (o *DataSourceRequest) GetType() DataSourceRequestType` +`func (o *DataSourceRequest) GetType() DataSourceTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool)` +`func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *DataSourceRequest) SetType(v DataSourceRequestType)` +`func (o *DataSourceRequest) SetType(v DataSourceTypeValue)` SetType sets Type field to given value. @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *DataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *DataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *DataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *DataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/DataSourceStatus.md b/docs/DataSourceStatus.md new file mode 100644 index 0000000000..bb83baf4a3 --- /dev/null +++ b/docs/DataSourceStatus.md @@ -0,0 +1,82 @@ +# DataSourceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DataSourceStatusValue**](DataSourceStatusValue.md) | | [optional] +**Label** | Pointer to [**DataSourceStatusLabel**](DataSourceStatusLabel.md) | | [optional] + +## Methods + +### NewDataSourceStatus + +`func NewDataSourceStatus() *DataSourceStatus` + +NewDataSourceStatus instantiates a new DataSourceStatus 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 + +### NewDataSourceStatusWithDefaults + +`func NewDataSourceStatusWithDefaults() *DataSourceStatus` + +NewDataSourceStatusWithDefaults instantiates a new DataSourceStatus 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 *DataSourceStatus) GetValue() DataSourceStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, 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 *DataSourceStatus) SetValue(v DataSourceStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DataSourceStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, 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 *DataSourceStatus) SetLabel(v DataSourceStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DataSourceStatus) 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/DataSourceStatusLabel.md b/docs/DataSourceStatusLabel.md new file mode 100644 index 0000000000..09a777b52c --- /dev/null +++ b/docs/DataSourceStatusLabel.md @@ -0,0 +1,19 @@ +# DataSourceStatusLabel + +## Enum + + +* `NEW` (value: `"New"`) + +* `QUEUED` (value: `"Queued"`) + +* `SYNCING` (value: `"Syncing"`) + +* `COMPLETED` (value: `"Completed"`) + +* `FAILED` (value: `"Failed"`) + + +[[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/DataSourceStatusValue.md b/docs/DataSourceStatusValue.md new file mode 100644 index 0000000000..a46091ab0a --- /dev/null +++ b/docs/DataSourceStatusValue.md @@ -0,0 +1,19 @@ +# DataSourceStatusValue + +## Enum + + +* `NEW` (value: `"new"`) + +* `QUEUED` (value: `"queued"`) + +* `SYNCING` (value: `"syncing"`) + +* `COMPLETED` (value: `"completed"`) + +* `FAILED` (value: `"failed"`) + + +[[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/DataSourceType.md b/docs/DataSourceType.md new file mode 100644 index 0000000000..a5d2f0be04 --- /dev/null +++ b/docs/DataSourceType.md @@ -0,0 +1,82 @@ +# DataSourceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DataSourceTypeValue**](DataSourceTypeValue.md) | | [optional] +**Label** | Pointer to [**DataSourceTypeLabel**](DataSourceTypeLabel.md) | | [optional] + +## Methods + +### NewDataSourceType + +`func NewDataSourceType() *DataSourceType` + +NewDataSourceType instantiates a new DataSourceType 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 + +### NewDataSourceTypeWithDefaults + +`func NewDataSourceTypeWithDefaults() *DataSourceType` + +NewDataSourceTypeWithDefaults instantiates a new DataSourceType 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 *DataSourceType) GetValue() DataSourceTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DataSourceType) GetValueOk() (*DataSourceTypeValue, 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 *DataSourceType) SetValue(v DataSourceTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DataSourceType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DataSourceType) GetLabel() DataSourceTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DataSourceType) GetLabelOk() (*DataSourceTypeLabel, 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 *DataSourceType) SetLabel(v DataSourceTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DataSourceType) 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/DataSourceTypeLabel.md b/docs/DataSourceTypeLabel.md new file mode 100644 index 0000000000..067bf53d6f --- /dev/null +++ b/docs/DataSourceTypeLabel.md @@ -0,0 +1,17 @@ +# DataSourceTypeLabel + +## Enum + + +* `_______` (value: `"---------"`) + +* `LOCAL` (value: `"Local"`) + +* `GIT` (value: `"Git"`) + +* `AMAZON_S3` (value: `"Amazon S3"`) + + +[[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/DataSourceRequestType.md b/docs/DataSourceTypeValue.md similarity index 91% rename from docs/DataSourceRequestType.md rename to docs/DataSourceTypeValue.md index 64f6be0a84..8d051f27cc 100644 --- a/docs/DataSourceRequestType.md +++ b/docs/DataSourceTypeValue.md @@ -1,4 +1,4 @@ -# DataSourceRequestType +# DataSourceTypeValue ## Enum diff --git a/docs/DcimAPI.md b/docs/DcimAPI.md index 2e73f244a9..511185e91a 100644 --- a/docs/DcimAPI.md +++ b/docs/DcimAPI.md @@ -181,6 +181,15 @@ Method | HTTP request | Description [**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}/ | +[**DcimMacAddressesBulkDestroy**](DcimAPI.md#DcimMacAddressesBulkDestroy) | **Delete** /api/dcim/mac-addresses/ | +[**DcimMacAddressesBulkPartialUpdate**](DcimAPI.md#DcimMacAddressesBulkPartialUpdate) | **Patch** /api/dcim/mac-addresses/ | +[**DcimMacAddressesBulkUpdate**](DcimAPI.md#DcimMacAddressesBulkUpdate) | **Put** /api/dcim/mac-addresses/ | +[**DcimMacAddressesCreate**](DcimAPI.md#DcimMacAddressesCreate) | **Post** /api/dcim/mac-addresses/ | +[**DcimMacAddressesDestroy**](DcimAPI.md#DcimMacAddressesDestroy) | **Delete** /api/dcim/mac-addresses/{id}/ | +[**DcimMacAddressesList**](DcimAPI.md#DcimMacAddressesList) | **Get** /api/dcim/mac-addresses/ | +[**DcimMacAddressesPartialUpdate**](DcimAPI.md#DcimMacAddressesPartialUpdate) | **Patch** /api/dcim/mac-addresses/{id}/ | +[**DcimMacAddressesRetrieve**](DcimAPI.md#DcimMacAddressesRetrieve) | **Get** /api/dcim/mac-addresses/{id}/ | +[**DcimMacAddressesUpdate**](DcimAPI.md#DcimMacAddressesUpdate) | **Put** /api/dcim/mac-addresses/{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/ | @@ -310,6 +319,15 @@ Method | HTTP request | Description [**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}/ | +[**DcimRackTypesBulkDestroy**](DcimAPI.md#DcimRackTypesBulkDestroy) | **Delete** /api/dcim/rack-types/ | +[**DcimRackTypesBulkPartialUpdate**](DcimAPI.md#DcimRackTypesBulkPartialUpdate) | **Patch** /api/dcim/rack-types/ | +[**DcimRackTypesBulkUpdate**](DcimAPI.md#DcimRackTypesBulkUpdate) | **Put** /api/dcim/rack-types/ | +[**DcimRackTypesCreate**](DcimAPI.md#DcimRackTypesCreate) | **Post** /api/dcim/rack-types/ | +[**DcimRackTypesDestroy**](DcimAPI.md#DcimRackTypesDestroy) | **Delete** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesList**](DcimAPI.md#DcimRackTypesList) | **Get** /api/dcim/rack-types/ | +[**DcimRackTypesPartialUpdate**](DcimAPI.md#DcimRackTypesPartialUpdate) | **Patch** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesRetrieve**](DcimAPI.md#DcimRackTypesRetrieve) | **Get** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesUpdate**](DcimAPI.md#DcimRackTypesUpdate) | **Put** /api/dcim/rack-types/{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/ | @@ -719,7 +737,7 @@ Name | Type | Description | Notes ## DcimCableTerminationsList -> PaginatedCableTerminationList DcimCableTerminationsList(ctx).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).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).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCableTerminationList DcimCableTerminationsList(ctx).Cable(cable).CableN(cableN).CableEnd(cableEnd).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).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() @@ -742,7 +760,6 @@ func main() { cable := int32(56) // int32 | (optional) cableN := int32(56) // int32 | (optional) cableEnd := openapiclient.End("A") // End | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.End("A") // End | * `A` - A * `B` - B (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) @@ -782,7 +799,7 @@ 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).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).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Cable(cable).CableN(cableN).CableEnd(cableEnd).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).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -806,7 +823,6 @@ Name | Type | Description | Notes **cable** | **int32** | | **cableN** | **int32** | | **cableEnd** | [**End**](End.md) | * `A` - A * `B` - B | - **cableEndN** | [**End**](End.md) | * `A` - A * `B` - B | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1408,7 +1424,7 @@ Name | Type | Description | Notes ## DcimCablesList -> PaginatedCableList DcimCablesList(ctx).CircuitterminationId(circuitterminationId).Color(color).ColorN(colorN).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).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).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).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).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).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).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCableList DcimCablesList(ctx).CircuitterminationId(circuitterminationId).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).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).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).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).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() @@ -1430,7 +1446,16 @@ import ( func main() { circuitterminationId := []int32{int32(123)} // []int32 | (optional) color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + colorNiew := []string{"Inner_example"} // []string | (optional) + colorNisw := []string{"Inner_example"} // []string | (optional) consoleportId := []int32{int32(123)} // []int32 | (optional) consoleserverportId := []int32{int32(123)} // []int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -1489,7 +1514,6 @@ func main() { lengthLte := []float64{float64(123)} // []float64 | (optional) lengthN := []float64{float64(123)} // []float64 | (optional) lengthUnit := openapiclient.dcim_cables_list_length_unit_parameter("cm") // DcimCablesListLengthUnitParameter | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches (optional) - lengthUnitN := openapiclient.dcim_cables_list_length_unit_parameter("cm") // DcimCablesListLengthUnitParameter | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) location := []string{"Inner_example"} // []string | (optional) locationId := []int32{int32(123)} // []int32 | (optional) @@ -1506,15 +1530,24 @@ func main() { site := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []int32{int32(123)} // []int32 | (optional) @@ -1523,14 +1556,23 @@ func main() { terminationBId := []int32{int32(123)} // []int32 | (optional) terminationBType := "terminationBType_example" // string | (optional) terminationBTypeN := "terminationBTypeN_example" // string | (optional) - type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + type_ := []*string{"Inner_example"} // []*string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []*string{"Inner_example"} // []*string | (optional) + typeIe := []*string{"Inner_example"} // []*string | (optional) + typeIew := []*string{"Inner_example"} // []*string | (optional) + typeIsw := []*string{"Inner_example"} // []*string | (optional) + typeN := []*string{"Inner_example"} // []*string | (optional) + typeNic := []*string{"Inner_example"} // []*string | (optional) + typeNie := []*string{"Inner_example"} // []*string | (optional) + typeNiew := []*string{"Inner_example"} // []*string | (optional) + typeNisw := []*string{"Inner_example"} // []*string | (optional) unterminated := true // bool | Unterminated (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimCablesList(context.Background()).CircuitterminationId(circuitterminationId).Color(color).ColorN(colorN).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).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).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).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).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).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).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesList(context.Background()).CircuitterminationId(circuitterminationId).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).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).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).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).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1553,7 +1595,16 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **circuitterminationId** | **[]int32** | | **color** | **[]string** | | + **colorEmpty** | **bool** | | + **colorIc** | **[]string** | | + **colorIe** | **[]string** | | + **colorIew** | **[]string** | | + **colorIsw** | **[]string** | | **colorN** | **[]string** | | + **colorNic** | **[]string** | | + **colorNie** | **[]string** | | + **colorNiew** | **[]string** | | + **colorNisw** | **[]string** | | **consoleportId** | **[]int32** | | **consoleserverportId** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | @@ -1612,7 +1663,6 @@ Name | Type | Description | Notes **lengthLte** | **[]float64** | | **lengthN** | **[]float64** | | **lengthUnit** | [**DcimCablesListLengthUnitParameter**](DcimCablesListLengthUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | - **lengthUnitN** | [**DcimCablesListLengthUnitParameter**](DcimCablesListLengthUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | **limit** | **int32** | Number of results to return per page. | **location** | **[]string** | | **locationId** | **[]int32** | | @@ -1629,15 +1679,24 @@ Name | Type | Description | Notes **site** | **[]string** | | **siteId** | **[]int32** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | | @@ -1647,7 +1706,16 @@ Name | Type | Description | Notes **terminationBType** | **string** | | **terminationBTypeN** | **string** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **unterminated** | **bool** | Unterminated | **updatedByRequest** | **string** | | @@ -2283,7 +2351,7 @@ Name | Type | Description | Notes ## DcimConsolePortTemplatesList -> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).UpdatedByRequest(updatedByRequest).Execute() @@ -2324,8 +2392,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - 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) @@ -2355,8 +2421,6 @@ func main() { 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) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -2372,12 +2436,11 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) type_ := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('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` - [('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', 'Other')] (optional) - typeN := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('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` - [('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', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2419,8 +2482,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2450,8 +2511,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2467,7 +2526,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **type_** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('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` - [('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', 'Other')] | - **typeN** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('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` - [('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', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -2723,7 +2781,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2787,7 +2845,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2853,7 +2911,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2919,7 +2977,7 @@ import ( ) func main() { - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3034,7 +3092,7 @@ Name | Type | Description | Notes ## DcimConsolePortsList -> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -3055,7 +3113,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -3083,6 +3140,21 @@ func main() { 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -3140,28 +3212,32 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | 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 (optional) - speedN := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | 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 (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) + type_ := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIe := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIsw := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeN := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNic := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNie := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNiew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNisw := []*string{"Inner_example"} // []*string | Physical port type (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -3170,7 +3246,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).Speed(speed).SpeedN(speedN).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).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).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, "Full HTTP response: %v\n", r) @@ -3192,7 +3268,6 @@ Other parameters are passed through a pointer to a apiDcimConsolePortsListReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -3220,6 +3295,21 @@ Name | Type | Description | Notes **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -3277,28 +3367,32 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **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) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | 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 | - **speedN** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | 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 | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | Physical port type | + **typeIe** | **[]string** | Physical port type | + **typeIew** | **[]string** | Physical port type | + **typeIsw** | **[]string** | Physical port type | **typeN** | **[]string** | Physical port type | + **typeNic** | **[]string** | Physical port type | + **typeNie** | **[]string** | Physical port type | + **typeNiew** | **[]string** | Physical port type | + **typeNisw** | **[]string** | Physical port type | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -3557,7 +3651,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console port. - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3939,7 +4033,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortTemplatesList -> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).UpdatedByRequest(updatedByRequest).Execute() @@ -3980,8 +4074,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - 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) @@ -4011,8 +4103,6 @@ func main() { 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) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -4028,12 +4118,11 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) type_ := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('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` - [('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', 'Other')] (optional) - typeN := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('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` - [('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', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4075,8 +4164,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -4106,8 +4193,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -4123,7 +4208,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **type_** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('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` - [('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', 'Other')] | - **typeN** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('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` - [('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', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -4379,7 +4463,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4443,7 +4527,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4509,7 +4593,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4575,7 +4659,7 @@ import ( ) func main() { - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4690,7 +4774,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortsList -> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -4711,7 +4795,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -4739,6 +4822,21 @@ func main() { 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -4796,28 +4894,32 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | 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 (optional) - speedN := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | 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 (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) + type_ := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIe := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIsw := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeN := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNic := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNie := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNiew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNisw := []*string{"Inner_example"} // []*string | Physical port type (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -4826,7 +4928,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).Speed(speed).SpeedN(speedN).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).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).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, "Full HTTP response: %v\n", r) @@ -4848,7 +4950,6 @@ Other parameters are passed through a pointer to a apiDcimConsoleServerPortsList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -4876,6 +4977,21 @@ Name | Type | Description | Notes **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -4933,28 +5049,32 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **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) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | 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 | - **speedN** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | 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 | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | Physical port type | + **typeIe** | **[]string** | Physical port type | + **typeIew** | **[]string** | Physical port type | + **typeIsw** | **[]string** | Physical port type | **typeN** | **[]string** | Physical port type | + **typeNic** | **[]string** | Physical port type | + **typeNie** | **[]string** | Physical port type | + **typeNiew** | **[]string** | Physical port type | + **typeNisw** | **[]string** | Physical port type | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -5213,7 +5333,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console server port. - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5284,7 +5404,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5348,7 +5468,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5414,7 +5534,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5480,7 +5600,7 @@ import ( ) func main() { - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5595,7 +5715,7 @@ Name | Type | Description | Notes ## DcimDeviceBayTemplatesList -> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).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() +> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(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).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).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() @@ -5636,8 +5756,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - 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) @@ -5683,7 +5801,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).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() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(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).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).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, "Full HTTP response: %v\n", r) @@ -5725,8 +5843,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5952,7 +6068,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay template. - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6023,7 +6139,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6087,7 +6203,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6153,7 +6269,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6219,7 +6335,7 @@ import ( ) func main() { - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6334,7 +6450,7 @@ Name | Type | Description | Notes ## DcimDeviceBaysList -> 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).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).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() +> 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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).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).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() @@ -6377,6 +6493,21 @@ func main() { 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -6434,20 +6565,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -6460,7 +6587,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).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() + 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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).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).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, "Full HTTP response: %v\n", r) @@ -6504,6 +6631,21 @@ Name | Type | Description | Notes **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -6561,20 +6703,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **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) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -6767,7 +6905,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay. - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7601,7 +7739,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7665,7 +7803,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7731,7 +7869,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7797,7 +7935,7 @@ import ( ) func main() { - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7912,7 +8050,7 @@ Name | Type | Description | Notes ## DcimDeviceTypesList -> PaginatedDeviceTypeList DcimDeviceTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).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).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).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).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).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() +> PaginatedDeviceTypeList DcimDeviceTypesList(ctx).Airflow(airflow).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).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).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).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).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).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).Execute() @@ -7932,8 +8070,7 @@ import ( ) func main() { - airflow := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `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) - airflowN := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `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) + airflow := openapiclient.dcim_device_types_list_airflow_parameter("bottom-to-top") // DcimDeviceTypesListAirflowParameter | * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed (optional) consolePortTemplateCount := []int32{int32(123)} // []int32 | (optional) consolePortTemplateCountEmpty := true // bool | (optional) consolePortTemplateCountGt := []int32{int32(123)} // []int32 | (optional) @@ -8097,7 +8234,6 @@ func main() { slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) subdeviceRole := openapiclient.Parent_child_status("child") // ParentChildStatus | 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 (optional) - subdeviceRoleN := openapiclient.Parent_child_status("child") // ParentChildStatus | 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 (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) uHeight := []float64{float64(123)} // []float64 | (optional) @@ -8116,11 +8252,10 @@ func main() { weightLte := []float64{float64(123)} // []float64 | (optional) weightN := []float64{float64(123)} // []float64 | (optional) weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Airflow(airflow).AirflowN(airflowN).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).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).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).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).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).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() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Airflow(airflow).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).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).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).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).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).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).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8141,8 +8276,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceTypesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **airflow** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `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 | - **airflowN** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `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** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed | **consolePortTemplateCount** | **[]int32** | | **consolePortTemplateCountEmpty** | **bool** | | **consolePortTemplateCountGt** | **[]int32** | | @@ -8306,7 +8440,6 @@ Name | Type | Description | Notes **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | **subdeviceRole** | [**ParentChildStatus**](ParentChildStatus.md) | 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 | - **subdeviceRoleN** | [**ParentChildStatus**](ParentChildStatus.md) | 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 | **tag** | **[]string** | | **tagN** | **[]string** | | **uHeight** | **[]float64** | | @@ -8325,7 +8458,6 @@ Name | Type | Description | Notes **weightLte** | **[]float64** | | **weightN** | **[]float64** | | **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | ### Return type @@ -8509,7 +8641,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device type. - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8580,7 +8712,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8644,7 +8776,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8710,7 +8842,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8776,7 +8908,7 @@ import ( ) func main() { - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8891,7 +9023,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).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).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).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).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).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).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).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).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() +> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).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).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).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).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).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).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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() @@ -8911,8 +9043,7 @@ import ( ) func main() { - airflow := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `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) - airflowN := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `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) + airflow := openapiclient.dcim_device_types_list_airflow_parameter("bottom-to-top") // DcimDeviceTypesListAirflowParameter | * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed (optional) assetTag := []string{"Inner_example"} // []string | (optional) assetTagEmpty := true // bool | (optional) assetTagIc := []string{"Inner_example"} // []string | (optional) @@ -8924,6 +9055,10 @@ func main() { assetTagNie := []string{"Inner_example"} // []string | (optional) assetTagNiew := []string{"Inner_example"} // []string | (optional) assetTagNisw := []string{"Inner_example"} // []string | (optional) + 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 (ID) (optional) + clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) clusterId := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) @@ -8946,8 +9081,8 @@ func main() { consoleServerPorts := true // bool | Has console server ports (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -8982,7 +9117,6 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) face := openapiclient.Rack_face("front") // RackFace | * `front` - Front * `rear` - Rear (optional) - faceN := openapiclient.Rack_face("front") // RackFace | * `front` - Front * `rear` - Rear (optional) frontPortCount := []int32{int32(123)} // []int32 | (optional) frontPortCountEmpty := true // bool | (optional) frontPortCountGt := []int32{int32(123)} // []int32 | (optional) @@ -9032,8 +9166,8 @@ func main() { 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) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) longitude := []float64{float64(123)} // []float64 | (optional) longitudeEmpty := true // bool | (optional) longitudeGt := []float64{float64(123)} // []float64 | (optional) @@ -9127,10 +9261,10 @@ func main() { rearPortCountLt := []int32{int32(123)} // []int32 | (optional) rearPortCountLte := []int32{int32(123)} // []int32 | (optional) rearPortCountN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []int32{int32(123)} // []int32 | Role (ID) (optional) @@ -9148,22 +9282,31 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -9187,7 +9330,7 @@ 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).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).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).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).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).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).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).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).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() + resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).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).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).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).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).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).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -9208,8 +9351,7 @@ Other parameters are passed through a pointer to a apiDcimDevicesListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **airflow** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `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 | - **airflowN** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `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** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed | **assetTag** | **[]string** | | **assetTagEmpty** | **bool** | | **assetTagIc** | **[]string** | | @@ -9221,6 +9363,10 @@ Name | Type | Description | Notes **assetTagNie** | **[]string** | | **assetTagNiew** | **[]string** | | **assetTagNisw** | **[]string** | | + **clusterGroup** | **[]string** | Cluster group (slug) | + **clusterGroupN** | **[]string** | Cluster group (slug) | + **clusterGroupId** | **[]int32** | Cluster group (ID) | + **clusterGroupIdN** | **[]int32** | Cluster group (ID) | **clusterId** | **[]int32** | VM cluster (ID) | **clusterIdN** | **[]int32** | VM cluster (ID) | **configTemplateId** | **[]int32** | Config template (ID) | @@ -9243,8 +9389,8 @@ Name | Type | Description | Notes **consoleServerPorts** | **bool** | Has console server ports | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -9279,7 +9425,6 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **face** | [**RackFace**](RackFace.md) | * `front` - Front * `rear` - Rear | - **faceN** | [**RackFace**](RackFace.md) | * `front` - Front * `rear` - Rear | **frontPortCount** | **[]int32** | | **frontPortCountEmpty** | **bool** | | **frontPortCountGt** | **[]int32** | | @@ -9329,8 +9474,8 @@ Name | Type | Description | Notes **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) | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **longitude** | **[]float64** | | **longitudeEmpty** | **bool** | | **longitudeGt** | **[]float64** | | @@ -9424,10 +9569,10 @@ Name | Type | Description | Notes **rearPortCountLt** | **[]int32** | | **rearPortCountLte** | **[]int32** | | **rearPortCountN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -9445,22 +9590,31 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -9594,7 +9748,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableDeviceWithConfigContextRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -9738,7 +9892,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9809,7 +9963,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9873,7 +10027,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9939,7 +10093,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10005,7 +10159,7 @@ import ( ) func main() { - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10120,7 +10274,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).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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -10172,8 +10326,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - 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) @@ -10203,8 +10355,6 @@ func main() { 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) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -10229,12 +10379,21 @@ func main() { rearPortPositionLte := []int32{int32(123)} // []int32 | (optional) rearPortPositionN := []int32{int32(123)} // []int32 | (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []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.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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10287,8 +10446,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -10318,8 +10475,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -10344,7 +10499,16 @@ Name | Type | Description | Notes **rearPortPositionLte** | **[]int32** | | **rearPortPositionN** | **[]int32** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | ### Return type @@ -10529,7 +10693,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port template. - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10600,7 +10764,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10664,7 +10828,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10730,7 +10894,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10796,7 +10960,7 @@ import ( ) func main() { - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10911,7 +11075,7 @@ Name | Type | Description | Notes ## DcimFrontPortsList -> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).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() +> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -10932,7 +11096,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -10970,6 +11133,21 @@ func main() { 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -11036,26 +11214,31 @@ func main() { rearPortPositionLt := []int32{int32(123)} // []int32 | (optional) rearPortPositionLte := []int32{int32(123)} // []int32 | (optional) rearPortPositionN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -11064,7 +11247,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).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() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).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, "Full HTTP response: %v\n", r) @@ -11086,7 +11269,6 @@ Other parameters are passed through a pointer to a apiDcimFrontPortsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -11124,6 +11306,21 @@ Name | Type | Description | Notes **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -11190,26 +11387,31 @@ Name | Type | Description | Notes **rearPortPositionLt** | **[]int32** | | **rearPortPositionLte** | **[]int32** | | **rearPortPositionN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **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) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -11468,7 +11670,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port. - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -11850,7 +12052,7 @@ Name | Type | Description | Notes ## DcimInterfaceTemplatesList -> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).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).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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() +> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).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).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).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).Q(q).RfRole(rfRole).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -11893,8 +12095,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) @@ -11926,8 +12126,6 @@ func main() { 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) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -11941,20 +12139,56 @@ func main() { 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) - poeMode := []string{"Inner_example"} // []string | (optional) - poeModeN := []string{"Inner_example"} // []string | (optional) - poeType := []string{"Inner_example"} // []string | (optional) - poeTypeN := []string{"Inner_example"} // []string | (optional) + poeMode := []*string{"Inner_example"} // []*string | (optional) + poeModeEmpty := true // bool | (optional) + poeModeIc := []*string{"Inner_example"} // []*string | (optional) + poeModeIe := []*string{"Inner_example"} // []*string | (optional) + poeModeIew := []*string{"Inner_example"} // []*string | (optional) + poeModeIsw := []*string{"Inner_example"} // []*string | (optional) + poeModeN := []*string{"Inner_example"} // []*string | (optional) + poeModeNic := []*string{"Inner_example"} // []*string | (optional) + poeModeNie := []*string{"Inner_example"} // []*string | (optional) + poeModeNiew := []*string{"Inner_example"} // []*string | (optional) + poeModeNisw := []*string{"Inner_example"} // []*string | (optional) + poeType := []*string{"Inner_example"} // []*string | (optional) + poeTypeEmpty := true // bool | (optional) + poeTypeIc := []*string{"Inner_example"} // []*string | (optional) + poeTypeIe := []*string{"Inner_example"} // []*string | (optional) + poeTypeIew := []*string{"Inner_example"} // []*string | (optional) + poeTypeIsw := []*string{"Inner_example"} // []*string | (optional) + poeTypeN := []*string{"Inner_example"} // []*string | (optional) + poeTypeNic := []*string{"Inner_example"} // []*string | (optional) + poeTypeNie := []*string{"Inner_example"} // []*string | (optional) + poeTypeNiew := []*string{"Inner_example"} // []*string | (optional) + poeTypeNisw := []*string{"Inner_example"} // []*string | (optional) q := "q_example" // string | Search (optional) - rfRole := []string{"Inner_example"} // []string | (optional) - rfRoleN := []string{"Inner_example"} // []string | (optional) + rfRole := []*string{"Inner_example"} // []*string | (optional) + rfRoleEmpty := true // bool | (optional) + rfRoleIc := []*string{"Inner_example"} // []*string | (optional) + rfRoleIe := []*string{"Inner_example"} // []*string | (optional) + rfRoleIew := []*string{"Inner_example"} // []*string | (optional) + rfRoleIsw := []*string{"Inner_example"} // []*string | (optional) + rfRoleN := []*string{"Inner_example"} // []*string | (optional) + rfRoleNic := []*string{"Inner_example"} // []*string | (optional) + rfRoleNie := []*string{"Inner_example"} // []*string | (optional) + rfRoleNiew := []*string{"Inner_example"} // []*string | (optional) + rfRoleNisw := []*string{"Inner_example"} // []*string | (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []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).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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).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).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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() + 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).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).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).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).Q(q).RfRole(rfRole).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11998,8 +12232,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **enabled** | **bool** | | **id** | **[]int32** | | **idEmpty** | **bool** | | @@ -12031,8 +12263,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -12047,14 +12277,50 @@ 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. | **poeMode** | **[]string** | | + **poeModeEmpty** | **bool** | | + **poeModeIc** | **[]string** | | + **poeModeIe** | **[]string** | | + **poeModeIew** | **[]string** | | + **poeModeIsw** | **[]string** | | **poeModeN** | **[]string** | | + **poeModeNic** | **[]string** | | + **poeModeNie** | **[]string** | | + **poeModeNiew** | **[]string** | | + **poeModeNisw** | **[]string** | | **poeType** | **[]string** | | + **poeTypeEmpty** | **bool** | | + **poeTypeIc** | **[]string** | | + **poeTypeIe** | **[]string** | | + **poeTypeIew** | **[]string** | | + **poeTypeIsw** | **[]string** | | **poeTypeN** | **[]string** | | + **poeTypeNic** | **[]string** | | + **poeTypeNie** | **[]string** | | + **poeTypeNiew** | **[]string** | | + **poeTypeNisw** | **[]string** | | **q** | **string** | Search | **rfRole** | **[]string** | | + **rfRoleEmpty** | **bool** | | + **rfRoleIc** | **[]string** | | + **rfRoleIe** | **[]string** | | + **rfRoleIew** | **[]string** | | + **rfRoleIsw** | **[]string** | | **rfRoleN** | **[]string** | | + **rfRoleNic** | **[]string** | | + **rfRoleNie** | **[]string** | | + **rfRoleNiew** | **[]string** | | + **rfRoleNisw** | **[]string** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | ### Return type @@ -12310,7 +12576,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12374,7 +12640,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12440,7 +12706,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12506,7 +12772,7 @@ import ( ) func main() { - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12621,7 +12887,7 @@ Name | Type | Description | Notes ## DcimInterfacesList -> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).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).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexEmpty(duplexEmpty).DuplexIc(duplexIc).DuplexIe(duplexIe).DuplexIew(duplexIew).DuplexIsw(duplexIsw).DuplexN(duplexN).DuplexNic(duplexNic).DuplexNie(duplexNie).DuplexNiew(duplexNiew).DuplexNisw(duplexNisw).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).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).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).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).PrimaryMacAddress(primaryMacAddress).PrimaryMacAddressN(primaryMacAddressN).PrimaryMacAddressId(primaryMacAddressId).PrimaryMacAddressIdN(primaryMacAddressIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelEmpty(rfChannelEmpty).RfChannelIc(rfChannelIc).RfChannelIe(rfChannelIe).RfChannelIew(rfChannelIew).RfChannelIsw(rfChannelIsw).RfChannelN(rfChannelN).RfChannelNic(rfChannelNic).RfChannelNie(rfChannelNie).RfChannelNiew(rfChannelNiew).RfChannelNisw(rfChannelNisw).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).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).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).VirtualCircuitId(virtualCircuitId).VirtualCircuitIdN(virtualCircuitIdN).VirtualCircuitTerminationId(virtualCircuitTerminationId).VirtualCircuitTerminationIdN(virtualCircuitTerminationIdN).Vlan(vlan).VlanId(vlanId).VlanTranslationPolicy(vlanTranslationPolicy).VlanTranslationPolicyN(vlanTranslationPolicyN).VlanTranslationPolicyId(vlanTranslationPolicyId).VlanTranslationPolicyIdN(vlanTranslationPolicyIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() @@ -12644,7 +12910,6 @@ func main() { bridgeId := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional) bridgeIdN := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional) cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -12672,12 +12937,36 @@ func main() { 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) duplex := []*string{"Inner_example"} // []*string | (optional) + duplexEmpty := true // bool | (optional) + duplexIc := []*string{"Inner_example"} // []*string | (optional) + duplexIe := []*string{"Inner_example"} // []*string | (optional) + duplexIew := []*string{"Inner_example"} // []*string | (optional) + duplexIsw := []*string{"Inner_example"} // []*string | (optional) duplexN := []*string{"Inner_example"} // []*string | (optional) + duplexNic := []*string{"Inner_example"} // []*string | (optional) + duplexNie := []*string{"Inner_example"} // []*string | (optional) + duplexNiew := []*string{"Inner_example"} // []*string | (optional) + duplexNisw := []*string{"Inner_example"} // []*string | (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) @@ -12728,8 +13017,7 @@ func main() { macAddressNisw := []string{"Inner_example"} // []string | (optional) markConnected := true // bool | (optional) mgmtOnly := true // bool | (optional) - mode := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) - modeN := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) + mode := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) (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) @@ -12756,21 +13044,52 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) parentId := []int32{int32(123)} // []int32 | Parent interface (ID) (optional) parentIdN := []int32{int32(123)} // []int32 | Parent interface (ID) (optional) - poeMode := []string{"Inner_example"} // []string | (optional) - poeModeN := []string{"Inner_example"} // []string | (optional) - poeType := []string{"Inner_example"} // []string | (optional) - poeTypeN := []string{"Inner_example"} // []string | (optional) + poeMode := []*string{"Inner_example"} // []*string | (optional) + poeModeEmpty := true // bool | (optional) + poeModeIc := []*string{"Inner_example"} // []*string | (optional) + poeModeIe := []*string{"Inner_example"} // []*string | (optional) + poeModeIew := []*string{"Inner_example"} // []*string | (optional) + poeModeIsw := []*string{"Inner_example"} // []*string | (optional) + poeModeN := []*string{"Inner_example"} // []*string | (optional) + poeModeNic := []*string{"Inner_example"} // []*string | (optional) + poeModeNie := []*string{"Inner_example"} // []*string | (optional) + poeModeNiew := []*string{"Inner_example"} // []*string | (optional) + poeModeNisw := []*string{"Inner_example"} // []*string | (optional) + poeType := []*string{"Inner_example"} // []*string | (optional) + poeTypeEmpty := true // bool | (optional) + poeTypeIc := []*string{"Inner_example"} // []*string | (optional) + poeTypeIe := []*string{"Inner_example"} // []*string | (optional) + poeTypeIew := []*string{"Inner_example"} // []*string | (optional) + poeTypeIsw := []*string{"Inner_example"} // []*string | (optional) + poeTypeN := []*string{"Inner_example"} // []*string | (optional) + poeTypeNic := []*string{"Inner_example"} // []*string | (optional) + poeTypeNie := []*string{"Inner_example"} // []*string | (optional) + poeTypeNiew := []*string{"Inner_example"} // []*string | (optional) + poeTypeNisw := []*string{"Inner_example"} // []*string | (optional) + primaryMacAddress := []string{"Inner_example"} // []string | Primary MAC address (optional) + primaryMacAddressN := []string{"Inner_example"} // []string | Primary MAC address (optional) + primaryMacAddressId := []int32{int32(123)} // []int32 | Primary MAC address (ID) (optional) + primaryMacAddressIdN := []int32{int32(123)} // []int32 | Primary MAC address (ID) (optional) q := "q_example" // string | Search (optional) rack := []string{"Inner_example"} // []string | Rack (name) (optional) rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - rfChannel := []string{"Inner_example"} // []string | (optional) - rfChannelN := []string{"Inner_example"} // []string | (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + rfChannel := []*string{"Inner_example"} // []*string | (optional) + rfChannelEmpty := true // bool | (optional) + rfChannelIc := []*string{"Inner_example"} // []*string | (optional) + rfChannelIe := []*string{"Inner_example"} // []*string | (optional) + rfChannelIew := []*string{"Inner_example"} // []*string | (optional) + rfChannelIsw := []*string{"Inner_example"} // []*string | (optional) + rfChannelN := []*string{"Inner_example"} // []*string | (optional) + rfChannelNic := []*string{"Inner_example"} // []*string | (optional) + rfChannelNie := []*string{"Inner_example"} // []*string | (optional) + rfChannelNiew := []*string{"Inner_example"} // []*string | (optional) + rfChannelNisw := []*string{"Inner_example"} // []*string | (optional) rfChannelFrequency := []float64{float64(123)} // []float64 | (optional) rfChannelFrequencyEmpty := true // bool | (optional) rfChannelFrequencyGt := []float64{float64(123)} // []float64 | (optional) @@ -12785,18 +13104,23 @@ func main() { rfChannelWidthLt := []float64{float64(123)} // []float64 | (optional) rfChannelWidthLte := []float64{float64(123)} // []float64 | (optional) 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) + rfRole := []*string{"Inner_example"} // []*string | (optional) + rfRoleEmpty := true // bool | (optional) + rfRoleIc := []*string{"Inner_example"} // []*string | (optional) + rfRoleIe := []*string{"Inner_example"} // []*string | (optional) + rfRoleIew := []*string{"Inner_example"} // []*string | (optional) + rfRoleIsw := []*string{"Inner_example"} // []*string | (optional) + rfRoleN := []*string{"Inner_example"} // []*string | (optional) + rfRoleNic := []*string{"Inner_example"} // []*string | (optional) + rfRoleNie := []*string{"Inner_example"} // []*string | (optional) + rfRoleNiew := []*string{"Inner_example"} // []*string | (optional) + rfRoleNisw := []*string{"Inner_example"} // []*string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := []int32{int32(123)} // []int32 | (optional) @@ -12816,7 +13140,16 @@ func main() { txPowerLte := []int32{int32(123)} // []int32 | (optional) txPowerN := []int32{int32(123)} // []int32 | (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) vdc := []string{"Inner_example"} // []string | Virtual Device Context (optional) vdcN := []string{"Inner_example"} // []string | Virtual Device Context (optional) @@ -12830,8 +13163,16 @@ func main() { virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional) virtualChassisMember := []string{"Inner_example"} // []string | (optional) virtualChassisMemberId := []int32{int32(123)} // []int32 | (optional) + virtualCircuitId := []int32{int32(123)} // []int32 | Virtual circuit (ID) (optional) + virtualCircuitIdN := []int32{int32(123)} // []int32 | Virtual circuit (ID) (optional) + virtualCircuitTerminationId := []int32{int32(123)} // []int32 | Virtual circuit termination (ID) (optional) + virtualCircuitTerminationIdN := []int32{int32(123)} // []int32 | Virtual circuit termination (ID) (optional) vlan := "vlan_example" // string | Assigned VID (optional) vlanId := "vlanId_example" // string | Assigned VLAN (optional) + vlanTranslationPolicy := []string{"Inner_example"} // []string | VLAN Translation Policy (optional) + vlanTranslationPolicyN := []string{"Inner_example"} // []string | VLAN Translation Policy (optional) + vlanTranslationPolicyId := []int32{int32(123)} // []int32 | VLAN Translation Policy (ID) (optional) + vlanTranslationPolicyIdN := []int32{int32(123)} // []int32 | VLAN Translation Policy (ID) (optional) vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional) vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional) vrfId := []int32{int32(123)} // []int32 | VRF (optional) @@ -12853,7 +13194,7 @@ 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).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).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).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexEmpty(duplexEmpty).DuplexIc(duplexIc).DuplexIe(duplexIe).DuplexIew(duplexIew).DuplexIsw(duplexIsw).DuplexN(duplexN).DuplexNic(duplexNic).DuplexNie(duplexNie).DuplexNiew(duplexNiew).DuplexNisw(duplexNisw).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).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).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).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).PrimaryMacAddress(primaryMacAddress).PrimaryMacAddressN(primaryMacAddressN).PrimaryMacAddressId(primaryMacAddressId).PrimaryMacAddressIdN(primaryMacAddressIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelEmpty(rfChannelEmpty).RfChannelIc(rfChannelIc).RfChannelIe(rfChannelIe).RfChannelIew(rfChannelIew).RfChannelIsw(rfChannelIsw).RfChannelN(rfChannelN).RfChannelNic(rfChannelNic).RfChannelNie(rfChannelNie).RfChannelNiew(rfChannelNiew).RfChannelNisw(rfChannelNisw).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).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).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).VirtualCircuitId(virtualCircuitId).VirtualCircuitIdN(virtualCircuitIdN).VirtualCircuitTerminationId(virtualCircuitTerminationId).VirtualCircuitTerminationIdN(virtualCircuitTerminationIdN).Vlan(vlan).VlanId(vlanId).VlanTranslationPolicy(vlanTranslationPolicy).VlanTranslationPolicyN(vlanTranslationPolicyN).VlanTranslationPolicyId(vlanTranslationPolicyId).VlanTranslationPolicyIdN(vlanTranslationPolicyIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).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, "Full HTTP response: %v\n", r) @@ -12877,7 +13218,6 @@ Name | Type | Description | Notes **bridgeId** | **[]int32** | Bridged interface (ID) | **bridgeIdN** | **[]int32** | Bridged interface (ID) | **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -12905,12 +13245,36 @@ Name | Type | Description | Notes **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **duplex** | **[]string** | | + **duplexEmpty** | **bool** | | + **duplexIc** | **[]string** | | + **duplexIe** | **[]string** | | + **duplexIew** | **[]string** | | + **duplexIsw** | **[]string** | | **duplexN** | **[]string** | | + **duplexNic** | **[]string** | | + **duplexNie** | **[]string** | | + **duplexNiew** | **[]string** | | + **duplexNisw** | **[]string** | | **enabled** | **bool** | | **id** | **[]int32** | | **idEmpty** | **bool** | | @@ -12961,8 +13325,7 @@ Name | Type | Description | Notes **macAddressNisw** | **[]string** | | **markConnected** | **bool** | | **mgmtOnly** | **bool** | | - **mode** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | - **modeN** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | + **mode** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) | **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | @@ -12990,20 +13353,51 @@ Name | Type | Description | Notes **parentId** | **[]int32** | Parent interface (ID) | **parentIdN** | **[]int32** | Parent interface (ID) | **poeMode** | **[]string** | | + **poeModeEmpty** | **bool** | | + **poeModeIc** | **[]string** | | + **poeModeIe** | **[]string** | | + **poeModeIew** | **[]string** | | + **poeModeIsw** | **[]string** | | **poeModeN** | **[]string** | | + **poeModeNic** | **[]string** | | + **poeModeNie** | **[]string** | | + **poeModeNiew** | **[]string** | | + **poeModeNisw** | **[]string** | | **poeType** | **[]string** | | + **poeTypeEmpty** | **bool** | | + **poeTypeIc** | **[]string** | | + **poeTypeIe** | **[]string** | | + **poeTypeIew** | **[]string** | | + **poeTypeIsw** | **[]string** | | **poeTypeN** | **[]string** | | + **poeTypeNic** | **[]string** | | + **poeTypeNie** | **[]string** | | + **poeTypeNiew** | **[]string** | | + **poeTypeNisw** | **[]string** | | + **primaryMacAddress** | **[]string** | Primary MAC address | + **primaryMacAddressN** | **[]string** | Primary MAC address | + **primaryMacAddressId** | **[]int32** | Primary MAC address (ID) | + **primaryMacAddressIdN** | **[]int32** | Primary MAC address (ID) | **q** | **string** | Search | **rack** | **[]string** | Rack (name) | **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **rfChannel** | **[]string** | | + **rfChannelEmpty** | **bool** | | + **rfChannelIc** | **[]string** | | + **rfChannelIe** | **[]string** | | + **rfChannelIew** | **[]string** | | + **rfChannelIsw** | **[]string** | | **rfChannelN** | **[]string** | | + **rfChannelNic** | **[]string** | | + **rfChannelNie** | **[]string** | | + **rfChannelNiew** | **[]string** | | + **rfChannelNisw** | **[]string** | | **rfChannelFrequency** | **[]float64** | | **rfChannelFrequencyEmpty** | **bool** | | **rfChannelFrequencyGt** | **[]float64** | | @@ -13019,17 +13413,22 @@ Name | Type | Description | Notes **rfChannelWidthLte** | **[]float64** | | **rfChannelWidthN** | **[]float64** | | **rfRole** | **[]string** | | + **rfRoleEmpty** | **bool** | | + **rfRoleIc** | **[]string** | | + **rfRoleIe** | **[]string** | | + **rfRoleIew** | **[]string** | | + **rfRoleIsw** | **[]string** | | **rfRoleN** | **[]string** | | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **rfRoleNic** | **[]string** | | + **rfRoleNie** | **[]string** | | + **rfRoleNiew** | **[]string** | | + **rfRoleNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | **[]int32** | | @@ -13049,7 +13448,16 @@ Name | Type | Description | Notes **txPowerLte** | **[]int32** | | **txPowerN** | **[]int32** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | **vdc** | **[]string** | Virtual Device Context | **vdcN** | **[]string** | Virtual Device Context | @@ -13063,8 +13471,16 @@ Name | Type | Description | Notes **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | **virtualChassisMember** | **[]string** | | **virtualChassisMemberId** | **[]int32** | | + **virtualCircuitId** | **[]int32** | Virtual circuit (ID) | + **virtualCircuitIdN** | **[]int32** | Virtual circuit (ID) | + **virtualCircuitTerminationId** | **[]int32** | Virtual circuit termination (ID) | + **virtualCircuitTerminationIdN** | **[]int32** | Virtual circuit termination (ID) | **vlan** | **string** | Assigned VID | **vlanId** | **string** | Assigned VLAN | + **vlanTranslationPolicy** | **[]string** | VLAN Translation Policy | + **vlanTranslationPolicyN** | **[]string** | VLAN Translation Policy | + **vlanTranslationPolicyId** | **[]int32** | VLAN Translation Policy (ID) | + **vlanTranslationPolicyIdN** | **[]int32** | VLAN Translation Policy (ID) | **vrf** | **[]string** | VRF (RD) | **vrfN** | **[]string** | VRF (RD) | **vrfId** | **[]int32** | VRF | @@ -13336,7 +13752,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14164,7 +14580,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14228,7 +14644,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14294,7 +14710,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14360,7 +14776,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14475,7 +14891,7 @@ Name | Type | Description | Notes ## DcimInventoryItemTemplatesList -> 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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() +> 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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() @@ -14525,8 +14941,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - 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) @@ -14593,7 +15007,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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() + 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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, "Full HTTP response: %v\n", r) @@ -14644,8 +15058,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -14892,7 +15304,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item template. - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14963,7 +15375,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15027,7 +15439,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15093,7 +15505,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15140,7 +15552,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsCreate -> InventoryItem DcimInventoryItemsCreate(ctx).InventoryItemRequest(inventoryItemRequest).Execute() +> InventoryItem DcimInventoryItemsCreate(ctx).WritableInventoryItemRequest(writableInventoryItemRequest).Execute() @@ -15159,11 +15571,11 @@ import ( ) func main() { - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableInventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).InventoryItemRequest(inventoryItemRequest).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, "Full HTTP response: %v\n", r) @@ -15184,7 +15596,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemsCreateRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **inventoryItemRequest** | [**InventoryItemRequest**](InventoryItemRequest.md) | | + **writableInventoryItemRequest** | [**WritableInventoryItemRequest**](WritableInventoryItemRequest.md) | | ### Return type @@ -15274,7 +15686,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).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).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).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() +> 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).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -15337,6 +15749,21 @@ func main() { 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -15408,10 +15835,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -15429,12 +15856,23 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) + statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -15445,7 +15883,7 @@ 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).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).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).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() + 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).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -15509,6 +15947,21 @@ Name | Type | Description | Notes **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -15580,10 +16033,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -15601,12 +16054,23 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | + **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | + **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | **updatedByRequest** | **string** | | @@ -15635,7 +16099,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsPartialUpdate -> InventoryItem DcimInventoryItemsPartialUpdate(ctx, id).PatchedInventoryItemRequest(patchedInventoryItemRequest).Execute() +> InventoryItem DcimInventoryItemsPartialUpdate(ctx, id).PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest).Execute() @@ -15655,11 +16119,11 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item. - patchedInventoryItemRequest := *openapiclient.NewPatchedInventoryItemRequest() // PatchedInventoryItemRequest | (optional) + patchedWritableInventoryItemRequest := *openapiclient.NewPatchedWritableInventoryItemRequest() // PatchedWritableInventoryItemRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).PatchedInventoryItemRequest(patchedInventoryItemRequest).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, "Full HTTP response: %v\n", r) @@ -15685,7 +16149,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemsPartialU Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedInventoryItemRequest** | [**PatchedInventoryItemRequest**](PatchedInventoryItemRequest.md) | | + **patchedWritableInventoryItemRequest** | [**PatchedWritableInventoryItemRequest**](PatchedWritableInventoryItemRequest.md) | | ### Return type @@ -15777,7 +16241,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsUpdate -> InventoryItem DcimInventoryItemsUpdate(ctx, id).InventoryItemRequest(inventoryItemRequest).Execute() +> InventoryItem DcimInventoryItemsUpdate(ctx, id).WritableInventoryItemRequest(writableInventoryItemRequest).Execute() @@ -15797,11 +16261,11 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item. - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + writableInventoryItemRequest := *openapiclient.NewWritableInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableInventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).InventoryItemRequest(inventoryItemRequest).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, "Full HTTP response: %v\n", r) @@ -15827,7 +16291,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemsUpdateRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **inventoryItemRequest** | [**InventoryItemRequest**](InventoryItemRequest.md) | | + **writableInventoryItemRequest** | [**WritableInventoryItemRequest**](WritableInventoryItemRequest.md) | | ### Return type @@ -15868,7 +16332,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15932,7 +16396,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15998,7 +16462,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16064,7 +16528,7 @@ import ( ) func main() { - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16179,7 +16643,7 @@ Name | Type | Description | Notes ## DcimLocationsList -> PaginatedLocationList DcimLocationsList(ctx).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).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).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() +> PaginatedLocationList DcimLocationsList(ctx).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).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).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -16199,14 +16663,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Location (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -16273,16 +16737,16 @@ func main() { parentId := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) parentIdN := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -16297,22 +16761,31 @@ func main() { slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).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).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() + resp, r, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).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).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -16333,14 +16806,14 @@ Other parameters are passed through a pointer to a apiDcimLocationsListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Location (slug) | - **ancestorN** | **[]int32** | Location (slug) | - **ancestorId** | **[]int32** | Location (ID) | - **ancestorIdN** | **[]int32** | Location (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -16407,16 +16880,16 @@ Name | Type | Description | Notes **parentId** | **[]int32** | Parent location (ID) | **parentIdN** | **[]int32** | Parent location (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **slug** | **[]string** | | @@ -16431,15 +16904,24 @@ Name | Type | Description | Notes **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -16626,7 +17108,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this location. - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16676,9 +17158,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersBulkDestroy +## DcimMacAddressesBulkDestroy -> DcimManufacturersBulkDestroy(ctx).ManufacturerRequest(manufacturerRequest).Execute() +> DcimMacAddressesBulkDestroy(ctx).MACAddressRequest(mACAddressRequest).Execute() @@ -16697,13 +17179,13 @@ import ( ) func main() { - manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest | + mACAddressRequest := []openapiclient.MACAddressRequest{*openapiclient.NewMACAddressRequest("MacAddress_example")} // []MACAddressRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimManufacturersBulkDestroy(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + r, err := apiClient.DcimAPI.DcimMacAddressesBulkDestroy(context.Background()).MACAddressRequest(mACAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimMacAddressesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -16715,12 +17197,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **manufacturerRequest** | [**[]ManufacturerRequest**](ManufacturerRequest.md) | | + **mACAddressRequest** | [**[]MACAddressRequest**](MACAddressRequest.md) | | ### Return type @@ -16740,9 +17222,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersBulkPartialUpdate +## DcimMacAddressesBulkPartialUpdate -> []Manufacturer DcimManufacturersBulkPartialUpdate(ctx).ManufacturerRequest(manufacturerRequest).Execute() +> []MACAddress DcimMacAddressesBulkPartialUpdate(ctx).MACAddressRequest(mACAddressRequest).Execute() @@ -16761,17 +17243,17 @@ import ( ) func main() { - manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest | + mACAddressRequest := []openapiclient.MACAddressRequest{*openapiclient.NewMACAddressRequest("MacAddress_example")} // []MACAddressRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimMacAddressesBulkPartialUpdate(context.Background()).MACAddressRequest(mACAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimMacAddressesBulkPartialUpdate``: %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) + // response from `DcimMacAddressesBulkPartialUpdate`: []MACAddress + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimMacAddressesBulkPartialUpdate`: %v\n", resp) } ``` @@ -16781,16 +17263,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **manufacturerRequest** | [**[]ManufacturerRequest**](ManufacturerRequest.md) | | + **mACAddressRequest** | [**[]MACAddressRequest**](MACAddressRequest.md) | | ### Return type -[**[]Manufacturer**](Manufacturer.md) +[**[]MACAddress**](MACAddress.md) ### Authorization @@ -16806,9 +17288,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersBulkUpdate +## DcimMacAddressesBulkUpdate -> []Manufacturer DcimManufacturersBulkUpdate(ctx).ManufacturerRequest(manufacturerRequest).Execute() +> []MACAddress DcimMacAddressesBulkUpdate(ctx).MACAddressRequest(mACAddressRequest).Execute() @@ -16827,17 +17309,17 @@ import ( ) func main() { - manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest | + mACAddressRequest := []openapiclient.MACAddressRequest{*openapiclient.NewMACAddressRequest("MacAddress_example")} // []MACAddressRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimMacAddressesBulkUpdate(context.Background()).MACAddressRequest(mACAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimMacAddressesBulkUpdate``: %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) + // response from `DcimMacAddressesBulkUpdate`: []MACAddress + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimMacAddressesBulkUpdate`: %v\n", resp) } ``` @@ -16847,16 +17329,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **manufacturerRequest** | [**[]ManufacturerRequest**](ManufacturerRequest.md) | | + **mACAddressRequest** | [**[]MACAddressRequest**](MACAddressRequest.md) | | ### Return type -[**[]Manufacturer**](Manufacturer.md) +[**[]MACAddress**](MACAddress.md) ### Authorization @@ -16872,9 +17354,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersCreate +## DcimMacAddressesCreate -> Manufacturer DcimManufacturersCreate(ctx).ManufacturerRequest(manufacturerRequest).Execute() +> MACAddress DcimMacAddressesCreate(ctx).MACAddressRequest(mACAddressRequest).Execute() @@ -16893,17 +17375,17 @@ import ( ) func main() { - manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest | + mACAddressRequest := *openapiclient.NewMACAddressRequest("MacAddress_example") // MACAddressRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimMacAddressesCreate(context.Background()).MACAddressRequest(mACAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimMacAddressesCreate``: %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) + // response from `DcimMacAddressesCreate`: MACAddress + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimMacAddressesCreate`: %v\n", resp) } ``` @@ -16913,16 +17395,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **manufacturerRequest** | [**ManufacturerRequest**](ManufacturerRequest.md) | | + **mACAddressRequest** | [**MACAddressRequest**](MACAddressRequest.md) | | ### Return type -[**Manufacturer**](Manufacturer.md) +[**MACAddress**](MACAddress.md) ### Authorization @@ -16938,9 +17420,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersDestroy +## DcimMacAddressesDestroy -> DcimManufacturersDestroy(ctx, id).Execute() +> DcimMacAddressesDestroy(ctx, id).Execute() @@ -16959,13 +17441,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this manufacturer. + id := int32(56) // int32 | A unique integer value identifying this MAC address. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimManufacturersDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimMacAddressesDestroy(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.DcimMacAddressesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -16977,11 +17459,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 manufacturer. | +**id** | **int32** | A unique integer value identifying this MAC address. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -17006,9 +17488,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersList +## DcimMacAddressesList -> 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() +> PaginatedMACAddressList DcimMacAddressesList(ctx).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).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).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).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() @@ -17028,12 +17510,15 @@ import ( ) func main() { - contact := []int32{int32(123)} // []int32 | Contact (optional) - contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) - contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) - contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) + 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) + assignedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + assignedObjectIdN := []int32{int32(123)} // []int32 | (optional) + assignedObjectType := int32(56) // int32 | (optional) + assignedObjectTypeN := 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) @@ -17053,6 +17538,8 @@ 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) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -17060,6 +17547,10 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) + interface_ := []string{"Inner_example"} // []string | Interface (name) (optional) + interfaceN := []string{"Inner_example"} // []string | Interface (name) (optional) + 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) @@ -17068,45 +17559,39 @@ func main() { 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) + macAddress := []string{"Inner_example"} // []string | (optional) + macAddressIc := []string{"Inner_example"} // []string | (optional) + macAddressIe := []string{"Inner_example"} // []string | (optional) + macAddressIew := []string{"Inner_example"} // []string | (optional) + macAddressIsw := []string{"Inner_example"} // []string | (optional) + macAddressN := []string{"Inner_example"} // []string | (optional) + macAddressNic := []string{"Inner_example"} // []string | (optional) + 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) - 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) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + virtualMachine := []string{"Inner_example"} // []string | (optional) + virtualMachineId := []int32{int32(123)} // []int32 | (optional) + vminterface := []string{"Inner_example"} // []string | VM interface (name) (optional) + vminterfaceN := []string{"Inner_example"} // []string | VM interface (name) (optional) + vminterfaceId := []int32{int32(123)} // []int32 | VM interface (ID) (optional) + vminterfaceIdN := []int32{int32(123)} // []int32 | VM interface (ID) (optional) 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).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() + resp, r, err := apiClient.DcimAPI.DcimMacAddressesList(context.Background()).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).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).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).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimMacAddressesList``: %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) + // response from `DcimMacAddressesList`: PaginatedMACAddressList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimMacAddressesList`: %v\n", resp) } ``` @@ -17116,17 +17601,20 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contact** | **[]int32** | Contact | - **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | - **contactRole** | **[]int32** | Contact Role | - **contactRoleN** | **[]int32** | Contact Role | + **assignedObjectId** | **[]int32** | | + **assignedObjectIdEmpty** | **bool** | | + **assignedObjectIdGt** | **[]int32** | | + **assignedObjectIdGte** | **[]int32** | | + **assignedObjectIdLt** | **[]int32** | | + **assignedObjectIdLte** | **[]int32** | | + **assignedObjectIdN** | **[]int32** | | + **assignedObjectType** | **int32** | | + **assignedObjectTypeN** | **int32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -17146,6 +17634,8 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **device** | **[]string** | | + **deviceId** | **[]int32** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -17153,6 +17643,10 @@ Name | Type | Description | Notes **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | + **interface_** | **[]string** | Interface (name) | + **interfaceN** | **[]string** | Interface (name) | + **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) | | @@ -17161,39 +17655,33 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **macAddress** | **[]string** | | + **macAddressIc** | **[]string** | | + **macAddressIe** | **[]string** | | + **macAddressIew** | **[]string** | | + **macAddressIsw** | **[]string** | | + **macAddressN** | **[]string** | | + **macAddressNic** | **[]string** | | + **macAddressNie** | **[]string** | | + **macAddressNiew** | **[]string** | | + **macAddressNisw** | **[]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** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **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** | | + **virtualMachine** | **[]string** | | + **virtualMachineId** | **[]int32** | | + **vminterface** | **[]string** | VM interface (name) | + **vminterfaceN** | **[]string** | VM interface (name) | + **vminterfaceId** | **[]int32** | VM interface (ID) | + **vminterfaceIdN** | **[]int32** | VM interface (ID) | ### Return type -[**PaginatedManufacturerList**](PaginatedManufacturerList.md) +[**PaginatedMACAddressList**](PaginatedMACAddressList.md) ### Authorization @@ -17209,9 +17697,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersPartialUpdate +## DcimMacAddressesPartialUpdate -> Manufacturer DcimManufacturersPartialUpdate(ctx, id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute() +> MACAddress DcimMacAddressesPartialUpdate(ctx, id).PatchedMACAddressRequest(patchedMACAddressRequest).Execute() @@ -17230,18 +17718,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this manufacturer. - patchedManufacturerRequest := *openapiclient.NewPatchedManufacturerRequest() // PatchedManufacturerRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this MAC address. + patchedMACAddressRequest := *openapiclient.NewPatchedMACAddressRequest() // PatchedMACAddressRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimMacAddressesPartialUpdate(context.Background(), id).PatchedMACAddressRequest(patchedMACAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimMacAddressesPartialUpdate``: %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) + // response from `DcimMacAddressesPartialUpdate`: MACAddress + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimMacAddressesPartialUpdate`: %v\n", resp) } ``` @@ -17251,21 +17739,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 manufacturer. | +**id** | **int32** | A unique integer value identifying this MAC address. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedManufacturerRequest** | [**PatchedManufacturerRequest**](PatchedManufacturerRequest.md) | | + **patchedMACAddressRequest** | [**PatchedMACAddressRequest**](PatchedMACAddressRequest.md) | | ### Return type -[**Manufacturer**](Manufacturer.md) +[**MACAddress**](MACAddress.md) ### Authorization @@ -17281,9 +17769,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersRetrieve +## DcimMacAddressesRetrieve -> Manufacturer DcimManufacturersRetrieve(ctx, id).Execute() +> MACAddress DcimMacAddressesRetrieve(ctx, id).Execute() @@ -17302,17 +17790,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this manufacturer. + id := int32(56) // int32 | A unique integer value identifying this MAC address. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimManufacturersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimMacAddressesRetrieve(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.DcimMacAddressesRetrieve``: %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) + // response from `DcimMacAddressesRetrieve`: MACAddress + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimMacAddressesRetrieve`: %v\n", resp) } ``` @@ -17322,11 +17810,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 manufacturer. | +**id** | **int32** | A unique integer value identifying this MAC address. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -17335,7 +17823,7 @@ Name | Type | Description | Notes ### Return type -[**Manufacturer**](Manufacturer.md) +[**MACAddress**](MACAddress.md) ### Authorization @@ -17351,9 +17839,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimManufacturersUpdate +## DcimMacAddressesUpdate -> Manufacturer DcimManufacturersUpdate(ctx, id).ManufacturerRequest(manufacturerRequest).Execute() +> MACAddress DcimMacAddressesUpdate(ctx, id).MACAddressRequest(mACAddressRequest).Execute() @@ -17372,18 +17860,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this manufacturer. - manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest | + id := int32(56) // int32 | A unique integer value identifying this MAC address. + mACAddressRequest := *openapiclient.NewMACAddressRequest("MacAddress_example") // MACAddressRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimMacAddressesUpdate(context.Background(), id).MACAddressRequest(mACAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimMacAddressesUpdate``: %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) + // response from `DcimMacAddressesUpdate`: MACAddress + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimMacAddressesUpdate`: %v\n", resp) } ``` @@ -17393,21 +17881,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 manufacturer. | +**id** | **int32** | A unique integer value identifying this MAC address. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimManufacturersUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimMacAddressesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **manufacturerRequest** | [**ManufacturerRequest**](ManufacturerRequest.md) | | + **mACAddressRequest** | [**MACAddressRequest**](MACAddressRequest.md) | | ### Return type -[**Manufacturer**](Manufacturer.md) +[**MACAddress**](MACAddress.md) ### Authorization @@ -17423,9 +17911,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesBulkDestroy +## DcimManufacturersBulkDestroy -> DcimModuleBayTemplatesBulkDestroy(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() +> DcimManufacturersBulkDestroy(ctx).ManufacturerRequest(manufacturerRequest).Execute() @@ -17444,13 +17932,13 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkDestroy(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimManufacturersBulkDestroy(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkDestroy``: %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) } } @@ -17462,12 +17950,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayTemplateRequest** | [**[]ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | + **manufacturerRequest** | [**[]ManufacturerRequest**](ManufacturerRequest.md) | | ### Return type @@ -17487,9 +17975,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesBulkPartialUpdate +## DcimManufacturersBulkPartialUpdate -> []ModuleBayTemplate DcimModuleBayTemplatesBulkPartialUpdate(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() +> []Manufacturer DcimManufacturersBulkPartialUpdate(ctx).ManufacturerRequest(manufacturerRequest).Execute() @@ -17508,17 +17996,17 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate``: %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 `DcimModuleBayTemplatesBulkPartialUpdate`: []ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate`: %v\n", resp) + // response from `DcimManufacturersBulkPartialUpdate`: []Manufacturer + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkPartialUpdate`: %v\n", resp) } ``` @@ -17528,16 +18016,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayTemplateRequest** | [**[]ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | + **manufacturerRequest** | [**[]ManufacturerRequest**](ManufacturerRequest.md) | | ### Return type -[**[]ModuleBayTemplate**](ModuleBayTemplate.md) +[**[]Manufacturer**](Manufacturer.md) ### Authorization @@ -17553,9 +18041,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesBulkUpdate +## DcimManufacturersBulkUpdate -> []ModuleBayTemplate DcimModuleBayTemplatesBulkUpdate(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() +> []Manufacturer DcimManufacturersBulkUpdate(ctx).ManufacturerRequest(manufacturerRequest).Execute() @@ -17574,17 +18062,17 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + manufacturerRequest := []openapiclient.ManufacturerRequest{*openapiclient.NewManufacturerRequest("Name_example", "Slug_example")} // []ManufacturerRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkUpdate``: %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 `DcimModuleBayTemplatesBulkUpdate`: []ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkUpdate`: %v\n", resp) + // response from `DcimManufacturersBulkUpdate`: []Manufacturer + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkUpdate`: %v\n", resp) } ``` @@ -17594,16 +18082,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayTemplateRequest** | [**[]ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | + **manufacturerRequest** | [**[]ManufacturerRequest**](ManufacturerRequest.md) | | ### Return type -[**[]ModuleBayTemplate**](ModuleBayTemplate.md) +[**[]Manufacturer**](Manufacturer.md) ### Authorization @@ -17619,9 +18107,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesCreate +## DcimManufacturersCreate -> ModuleBayTemplate DcimModuleBayTemplatesCreate(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() +> Manufacturer DcimManufacturersCreate(ctx).ManufacturerRequest(manufacturerRequest).Execute() @@ -17640,17 +18128,17 @@ import ( ) func main() { - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesCreate``: %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 `DcimModuleBayTemplatesCreate`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesCreate`: %v\n", resp) + // response from `DcimManufacturersCreate`: Manufacturer + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersCreate`: %v\n", resp) } ``` @@ -17660,16 +18148,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayTemplateRequest** | [**ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | + **manufacturerRequest** | [**ManufacturerRequest**](ManufacturerRequest.md) | | ### Return type -[**ModuleBayTemplate**](ModuleBayTemplate.md) +[**Manufacturer**](Manufacturer.md) ### Authorization @@ -17685,9 +18173,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesDestroy +## DcimManufacturersDestroy -> DcimModuleBayTemplatesDestroy(ctx, id).Execute() +> DcimManufacturersDestroy(ctx, id).Execute() @@ -17706,13 +18194,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay template. + id := int32(56) // int32 | A unique integer value identifying this manufacturer. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModuleBayTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimManufacturersDestroy(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.DcimManufacturersDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -17724,11 +18212,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 module bay template. | +**id** | **int32** | A unique integer value identifying this manufacturer. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -17753,9 +18241,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesList +## DcimManufacturersList -> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).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).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).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() @@ -17775,6 +18263,12 @@ import ( ) func main() { + contact := []int32{int32(123)} // []int32 | Contact (optional) + contactN := []int32{int32(123)} // []int32 | Contact (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) + 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) @@ -17794,10 +18288,6 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - 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) @@ -17805,17 +18295,6 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) - label := []string{"Inner_example"} // []string | (optional) - labelEmpty := true // bool | (optional) - labelIc := []string{"Inner_example"} // []string | (optional) - labelIe := []string{"Inner_example"} // []string | (optional) - labelIew := []string{"Inner_example"} // []string | (optional) - labelIsw := []string{"Inner_example"} // []string | (optional) - labelN := []string{"Inner_example"} // []string | (optional) - labelNic := []string{"Inner_example"} // []string | (optional) - labelNie := []string{"Inner_example"} // []string | (optional) - 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) @@ -17838,29 +18317,31 @@ func main() { 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) - position := []string{"Inner_example"} // []string | (optional) - positionEmpty := true // bool | (optional) - positionIc := []string{"Inner_example"} // []string | (optional) - positionIe := []string{"Inner_example"} // []string | (optional) - positionIew := []string{"Inner_example"} // []string | (optional) - positionIsw := []string{"Inner_example"} // []string | (optional) - positionN := []string{"Inner_example"} // []string | (optional) - positionNic := []string{"Inner_example"} // []string | (optional) - positionNie := []string{"Inner_example"} // []string | (optional) - positionNiew := []string{"Inner_example"} // []string | (optional) - positionNisw := []string{"Inner_example"} // []string | (optional) q := "q_example" // string | Search (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (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.DcimAPI.DcimModuleBayTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).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).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).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.DcimModuleBayTemplatesList``: %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 `DcimModuleBayTemplatesList`: PaginatedModuleBayTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesList`: %v\n", resp) + // response from `DcimManufacturersList`: PaginatedManufacturerList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersList`: %v\n", resp) } ``` @@ -17870,11 +18351,17 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **contact** | **[]int32** | Contact | + **contactN** | **[]int32** | Contact | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | + **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) | | @@ -17894,10 +18381,6 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **deviceTypeId** | **[]int32** | Device type (ID) | - **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -17905,17 +18388,6 @@ Name | Type | Description | Notes **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**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -17938,23 +18410,25 @@ Name | Type | Description | Notes **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **position** | **[]string** | | - **positionEmpty** | **bool** | | - **positionIc** | **[]string** | | - **positionIe** | **[]string** | | - **positionIew** | **[]string** | | - **positionIsw** | **[]string** | | - **positionN** | **[]string** | | - **positionNic** | **[]string** | | - **positionNie** | **[]string** | | - **positionNiew** | **[]string** | | - **positionNisw** | **[]string** | | **q** | **string** | Search | + **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** | | ### Return type -[**PaginatedModuleBayTemplateList**](PaginatedModuleBayTemplateList.md) +[**PaginatedManufacturerList**](PaginatedManufacturerList.md) ### Authorization @@ -17970,9 +18444,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesPartialUpdate +## DcimManufacturersPartialUpdate -> ModuleBayTemplate DcimModuleBayTemplatesPartialUpdate(ctx, id).PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest).Execute() +> Manufacturer DcimManufacturersPartialUpdate(ctx, id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute() @@ -17991,18 +18465,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay template. - patchedModuleBayTemplateRequest := *openapiclient.NewPatchedModuleBayTemplateRequest() // PatchedModuleBayTemplateRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this manufacturer. + patchedManufacturerRequest := *openapiclient.NewPatchedManufacturerRequest() // PatchedManufacturerRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesPartialUpdate``: %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 `DcimModuleBayTemplatesPartialUpdate`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesPartialUpdate`: %v\n", resp) + // response from `DcimManufacturersPartialUpdate`: Manufacturer + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersPartialUpdate`: %v\n", resp) } ``` @@ -18012,21 +18486,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 module bay template. | +**id** | **int32** | A unique integer value identifying this manufacturer. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedModuleBayTemplateRequest** | [**PatchedModuleBayTemplateRequest**](PatchedModuleBayTemplateRequest.md) | | + **patchedManufacturerRequest** | [**PatchedManufacturerRequest**](PatchedManufacturerRequest.md) | | ### Return type -[**ModuleBayTemplate**](ModuleBayTemplate.md) +[**Manufacturer**](Manufacturer.md) ### Authorization @@ -18042,9 +18516,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesRetrieve +## DcimManufacturersRetrieve -> ModuleBayTemplate DcimModuleBayTemplatesRetrieve(ctx, id).Execute() +> Manufacturer DcimManufacturersRetrieve(ctx, id).Execute() @@ -18063,17 +18537,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay template. + id := int32(56) // int32 | A unique integer value identifying this manufacturer. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesRetrieve(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.DcimModuleBayTemplatesRetrieve``: %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 `DcimModuleBayTemplatesRetrieve`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesRetrieve`: %v\n", resp) + // response from `DcimManufacturersRetrieve`: Manufacturer + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersRetrieve`: %v\n", resp) } ``` @@ -18083,11 +18557,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 module bay template. | +**id** | **int32** | A unique integer value identifying this manufacturer. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -18096,7 +18570,7 @@ Name | Type | Description | Notes ### Return type -[**ModuleBayTemplate**](ModuleBayTemplate.md) +[**Manufacturer**](Manufacturer.md) ### Authorization @@ -18112,9 +18586,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBayTemplatesUpdate +## DcimManufacturersUpdate -> ModuleBayTemplate DcimModuleBayTemplatesUpdate(ctx, id).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() +> Manufacturer DcimManufacturersUpdate(ctx, id).ManufacturerRequest(manufacturerRequest).Execute() @@ -18133,18 +18607,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay template. - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + id := int32(56) // int32 | A unique integer value identifying this manufacturer. + manufacturerRequest := *openapiclient.NewManufacturerRequest("Name_example", "Slug_example") // ManufacturerRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesUpdate``: %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 `DcimModuleBayTemplatesUpdate`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesUpdate`: %v\n", resp) + // response from `DcimManufacturersUpdate`: Manufacturer + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersUpdate`: %v\n", resp) } ``` @@ -18154,21 +18628,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 module bay template. | +**id** | **int32** | A unique integer value identifying this manufacturer. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimManufacturersUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayTemplateRequest** | [**ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | + **manufacturerRequest** | [**ManufacturerRequest**](ManufacturerRequest.md) | | ### Return type -[**ModuleBayTemplate**](ModuleBayTemplate.md) +[**Manufacturer**](Manufacturer.md) ### Authorization @@ -18184,9 +18658,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysBulkDestroy +## DcimModuleBayTemplatesBulkDestroy -> DcimModuleBaysBulkDestroy(ctx).ModuleBayRequest(moduleBayRequest).Execute() +> DcimModuleBayTemplatesBulkDestroy(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() @@ -18205,13 +18679,13 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModuleBaysBulkDestroy(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() + r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkDestroy(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkDestroy``: %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) } } @@ -18223,12 +18697,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayRequest** | [**[]ModuleBayRequest**](ModuleBayRequest.md) | | + **moduleBayTemplateRequest** | [**[]ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | ### Return type @@ -18248,9 +18722,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysBulkPartialUpdate +## DcimModuleBayTemplatesBulkPartialUpdate -> []ModuleBay DcimModuleBaysBulkPartialUpdate(ctx).ModuleBayRequest(moduleBayRequest).Execute() +> []ModuleBayTemplate DcimModuleBayTemplatesBulkPartialUpdate(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() @@ -18269,17 +18743,17 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkPartialUpdate``: %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 `DcimModuleBaysBulkPartialUpdate`: []ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkPartialUpdate`: %v\n", resp) + // response from `DcimModuleBayTemplatesBulkPartialUpdate`: []ModuleBayTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -18289,16 +18763,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayRequest** | [**[]ModuleBayRequest**](ModuleBayRequest.md) | | + **moduleBayTemplateRequest** | [**[]ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | ### Return type -[**[]ModuleBay**](ModuleBay.md) +[**[]ModuleBayTemplate**](ModuleBayTemplate.md) ### Authorization @@ -18314,9 +18788,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysBulkUpdate +## DcimModuleBayTemplatesBulkUpdate -> []ModuleBay DcimModuleBaysBulkUpdate(ctx).ModuleBayRequest(moduleBayRequest).Execute() +> []ModuleBayTemplate DcimModuleBayTemplatesBulkUpdate(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() @@ -18335,17 +18809,17 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkUpdate``: %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 `DcimModuleBaysBulkUpdate`: []ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkUpdate`: %v\n", resp) + // response from `DcimModuleBayTemplatesBulkUpdate`: []ModuleBayTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -18355,16 +18829,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayRequest** | [**[]ModuleBayRequest**](ModuleBayRequest.md) | | + **moduleBayTemplateRequest** | [**[]ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | ### Return type -[**[]ModuleBay**](ModuleBay.md) +[**[]ModuleBayTemplate**](ModuleBayTemplate.md) ### Authorization @@ -18380,9 +18854,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysCreate +## DcimModuleBayTemplatesCreate -> ModuleBay DcimModuleBaysCreate(ctx).ModuleBayRequest(moduleBayRequest).Execute() +> ModuleBayTemplate DcimModuleBayTemplatesCreate(ctx).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() @@ -18401,17 +18875,17 @@ import ( ) func main() { - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysCreate``: %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 `DcimModuleBaysCreate`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysCreate`: %v\n", resp) + // response from `DcimModuleBayTemplatesCreate`: ModuleBayTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesCreate`: %v\n", resp) } ``` @@ -18421,16 +18895,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayRequest** | [**ModuleBayRequest**](ModuleBayRequest.md) | | + **moduleBayTemplateRequest** | [**ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | ### Return type -[**ModuleBay**](ModuleBay.md) +[**ModuleBayTemplate**](ModuleBayTemplate.md) ### Authorization @@ -18446,9 +18920,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysDestroy +## DcimModuleBayTemplatesDestroy -> DcimModuleBaysDestroy(ctx, id).Execute() +> DcimModuleBayTemplatesDestroy(ctx, id).Execute() @@ -18467,13 +18941,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay. + id := int32(56) // int32 | A unique integer value identifying this module bay template. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModuleBaysDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModuleBayTemplatesDestroy(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.DcimModuleBayTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -18485,11 +18959,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 module bay. | +**id** | **int32** | A unique integer value identifying this module bay template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -18514,9 +18988,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysList +## DcimModuleBayTemplatesList -> 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).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).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).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).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() +> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(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).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).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).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -18555,14 +19029,8 @@ 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 | 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) - deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) - deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) - deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + 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) @@ -18570,8 +19038,6 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) - installedModuleId := []int32{int32(123)} // []int32 | Installed module (ID) (optional) - installedModuleIdN := []int32{int32(123)} // []int32 | Installed module (ID) (optional) label := []string{"Inner_example"} // []string | (optional) labelEmpty := true // bool | (optional) labelIc := []string{"Inner_example"} // []string | (optional) @@ -18591,11 +19057,9 @@ func main() { 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 (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (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) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -18621,43 +19085,17 @@ func main() { positionNiew := []string{"Inner_example"} // []string | (optional) positionNisw := []string{"Inner_example"} // []string | (optional) q := "q_example" // string | Search (optional) - rack := []string{"Inner_example"} // []string | Rack (name) (optional) - rackN := []string{"Inner_example"} // []string | Rack (name) (optional) - rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) - rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - 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) - tag := []string{"Inner_example"} // []string | (optional) - tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) - 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) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).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).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).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() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(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).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).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).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %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 `DcimModuleBaysList`: PaginatedModuleBayList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysList`: %v\n", resp) + // response from `DcimModuleBayTemplatesList`: PaginatedModuleBayTemplateList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesList`: %v\n", resp) } ``` @@ -18667,7 +19105,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesListRequest struct via the builder pattern Name | Type | Description | Notes @@ -18691,12 +19129,6 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **device** | **[]string** | Device (name) | - **deviceN** | **[]string** | Device (name) | - **deviceId** | **[]int32** | Device (ID) | - **deviceIdN** | **[]int32** | Device (ID) | - **deviceType** | **[]string** | Device type (model) | - **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | @@ -18706,8 +19138,6 @@ Name | Type | Description | Notes **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | - **installedModuleId** | **[]int32** | Installed module (ID) | - **installedModuleIdN** | **[]int32** | Installed module (ID) | **label** | **[]string** | | **labelEmpty** | **bool** | | **labelIc** | **[]string** | | @@ -18727,11 +19157,9 @@ Name | Type | Description | Notes **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 (ID) | - **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | + **moduleTypeId** | **[]int32** | Module type (ID) | + **moduleTypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18757,37 +19185,11 @@ Name | Type | Description | Notes **positionNiew** | **[]string** | | **positionNisw** | **[]string** | | **q** | **string** | Search | - **rack** | **[]string** | Rack (name) | - **rackN** | **[]string** | Rack (name) | - **rackId** | **[]int32** | Rack (ID) | - **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **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) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | - **tag** | **[]string** | | - **tagN** | **[]string** | | **updatedByRequest** | **string** | | - **virtualChassis** | **[]string** | Virtual Chassis | - **virtualChassisN** | **[]string** | Virtual Chassis | - **virtualChassisId** | **[]int32** | Virtual Chassis (ID) | - **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | ### Return type -[**PaginatedModuleBayList**](PaginatedModuleBayList.md) +[**PaginatedModuleBayTemplateList**](PaginatedModuleBayTemplateList.md) ### Authorization @@ -18803,9 +19205,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysPartialUpdate +## DcimModuleBayTemplatesPartialUpdate -> ModuleBay DcimModuleBaysPartialUpdate(ctx, id).PatchedModuleBayRequest(patchedModuleBayRequest).Execute() +> ModuleBayTemplate DcimModuleBayTemplatesPartialUpdate(ctx, id).PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest).Execute() @@ -18824,18 +19226,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay. - patchedModuleBayRequest := *openapiclient.NewPatchedModuleBayRequest() // PatchedModuleBayRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this module bay template. + patchedModuleBayTemplateRequest := *openapiclient.NewPatchedModuleBayTemplateRequest() // PatchedModuleBayTemplateRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedModuleBayRequest(patchedModuleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedModuleBayTemplateRequest(patchedModuleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysPartialUpdate``: %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 `DcimModuleBaysPartialUpdate`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysPartialUpdate`: %v\n", resp) + // response from `DcimModuleBayTemplatesPartialUpdate`: ModuleBayTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -18845,21 +19247,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 module bay. | +**id** | **int32** | A unique integer value identifying this module bay template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedModuleBayRequest** | [**PatchedModuleBayRequest**](PatchedModuleBayRequest.md) | | + **patchedModuleBayTemplateRequest** | [**PatchedModuleBayTemplateRequest**](PatchedModuleBayTemplateRequest.md) | | ### Return type -[**ModuleBay**](ModuleBay.md) +[**ModuleBayTemplate**](ModuleBayTemplate.md) ### Authorization @@ -18875,9 +19277,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysRetrieve +## DcimModuleBayTemplatesRetrieve -> ModuleBay DcimModuleBaysRetrieve(ctx, id).Execute() +> ModuleBayTemplate DcimModuleBayTemplatesRetrieve(ctx, id).Execute() @@ -18896,17 +19298,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay. + id := int32(56) // int32 | A unique integer value identifying this module bay template. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysRetrieve(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.DcimModuleBaysRetrieve``: %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 `DcimModuleBaysRetrieve`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysRetrieve`: %v\n", resp) + // response from `DcimModuleBayTemplatesRetrieve`: ModuleBayTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesRetrieve`: %v\n", resp) } ``` @@ -18916,11 +19318,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 module bay. | +**id** | **int32** | A unique integer value identifying this module bay template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -18929,7 +19331,7 @@ Name | Type | Description | Notes ### Return type -[**ModuleBay**](ModuleBay.md) +[**ModuleBayTemplate**](ModuleBayTemplate.md) ### Authorization @@ -18945,9 +19347,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleBaysUpdate +## DcimModuleBayTemplatesUpdate -> ModuleBay DcimModuleBaysUpdate(ctx, id).ModuleBayRequest(moduleBayRequest).Execute() +> ModuleBayTemplate DcimModuleBayTemplatesUpdate(ctx, id).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() @@ -18966,18 +19368,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module bay. - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + id := int32(56) // int32 | A unique integer value identifying this module bay template. + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).ModuleBayRequest(moduleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysUpdate``: %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 `DcimModuleBaysUpdate`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysUpdate`: %v\n", resp) + // response from `DcimModuleBayTemplatesUpdate`: ModuleBayTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesUpdate`: %v\n", resp) } ``` @@ -18987,21 +19389,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 module bay. | +**id** | **int32** | A unique integer value identifying this module bay template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleBaysUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleBayRequest** | [**ModuleBayRequest**](ModuleBayRequest.md) | | + **moduleBayTemplateRequest** | [**ModuleBayTemplateRequest**](ModuleBayTemplateRequest.md) | | ### Return type -[**ModuleBay**](ModuleBay.md) +[**ModuleBayTemplate**](ModuleBayTemplate.md) ### Authorization @@ -19017,9 +19419,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesBulkDestroy +## DcimModuleBaysBulkDestroy -> DcimModuleTypesBulkDestroy(ctx).ModuleTypeRequest(moduleTypeRequest).Execute() +> DcimModuleBaysBulkDestroy(ctx).ModuleBayRequest(moduleBayRequest).Execute() @@ -19038,13 +19440,13 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModuleTypesBulkDestroy(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() + r, err := apiClient.DcimAPI.DcimModuleBaysBulkDestroy(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkDestroy``: %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) } } @@ -19056,12 +19458,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleTypeRequest** | [**[]ModuleTypeRequest**](ModuleTypeRequest.md) | | + **moduleBayRequest** | [**[]ModuleBayRequest**](ModuleBayRequest.md) | | ### Return type @@ -19081,9 +19483,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesBulkPartialUpdate +## DcimModuleBaysBulkPartialUpdate -> []ModuleType DcimModuleTypesBulkPartialUpdate(ctx).ModuleTypeRequest(moduleTypeRequest).Execute() +> []ModuleBay DcimModuleBaysBulkPartialUpdate(ctx).ModuleBayRequest(moduleBayRequest).Execute() @@ -19102,17 +19504,17 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkPartialUpdate``: %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 `DcimModuleTypesBulkPartialUpdate`: []ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkPartialUpdate`: %v\n", resp) + // response from `DcimModuleBaysBulkPartialUpdate`: []ModuleBay + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkPartialUpdate`: %v\n", resp) } ``` @@ -19122,16 +19524,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleTypeRequest** | [**[]ModuleTypeRequest**](ModuleTypeRequest.md) | | + **moduleBayRequest** | [**[]ModuleBayRequest**](ModuleBayRequest.md) | | ### Return type -[**[]ModuleType**](ModuleType.md) +[**[]ModuleBay**](ModuleBay.md) ### Authorization @@ -19147,9 +19549,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesBulkUpdate +## DcimModuleBaysBulkUpdate -> []ModuleType DcimModuleTypesBulkUpdate(ctx).ModuleTypeRequest(moduleTypeRequest).Execute() +> []ModuleBay DcimModuleBaysBulkUpdate(ctx).ModuleBayRequest(moduleBayRequest).Execute() @@ -19168,17 +19570,17 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkUpdate``: %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 `DcimModuleTypesBulkUpdate`: []ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkUpdate`: %v\n", resp) + // response from `DcimModuleBaysBulkUpdate`: []ModuleBay + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkUpdate`: %v\n", resp) } ``` @@ -19188,16 +19590,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleTypeRequest** | [**[]ModuleTypeRequest**](ModuleTypeRequest.md) | | + **moduleBayRequest** | [**[]ModuleBayRequest**](ModuleBayRequest.md) | | ### Return type -[**[]ModuleType**](ModuleType.md) +[**[]ModuleBay**](ModuleBay.md) ### Authorization @@ -19213,9 +19615,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesCreate +## DcimModuleBaysCreate -> ModuleType DcimModuleTypesCreate(ctx).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() +> ModuleBay DcimModuleBaysCreate(ctx).ModuleBayRequest(moduleBayRequest).Execute() @@ -19234,17 +19636,17 @@ import ( ) func main() { - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesCreate``: %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 `DcimModuleTypesCreate`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesCreate`: %v\n", resp) + // response from `DcimModuleBaysCreate`: ModuleBay + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysCreate`: %v\n", resp) } ``` @@ -19254,16 +19656,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableModuleTypeRequest** | [**WritableModuleTypeRequest**](WritableModuleTypeRequest.md) | | + **moduleBayRequest** | [**ModuleBayRequest**](ModuleBayRequest.md) | | ### Return type -[**ModuleType**](ModuleType.md) +[**ModuleBay**](ModuleBay.md) ### Authorization @@ -19279,9 +19681,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesDestroy +## DcimModuleBaysDestroy -> DcimModuleTypesDestroy(ctx, id).Execute() +> DcimModuleBaysDestroy(ctx, id).Execute() @@ -19300,13 +19702,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module type. + id := int32(56) // int32 | A unique integer value identifying this module bay. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModuleTypesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModuleBaysDestroy(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.DcimModuleBaysDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -19318,11 +19720,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 module type. | +**id** | **int32** | A unique integer value identifying this module bay. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -19347,9 +19749,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesList +## DcimModuleBaysList -> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).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).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() +> 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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).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).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).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() @@ -19369,8 +19771,6 @@ import ( ) 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) @@ -19390,6 +19790,29 @@ 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 | 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) + deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) + deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) + 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) @@ -19397,7 +19820,19 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) - interfaces := true // bool | Has interfaces (optional) + installedModuleId := []int32{int32(123)} // []int32 | Installed module (ID) (optional) + installedModuleIdN := []int32{int32(123)} // []int32 | Installed module (ID) (optional) + label := []string{"Inner_example"} // []string | (optional) + labelEmpty := true // bool | (optional) + labelIc := []string{"Inner_example"} // []string | (optional) + labelIe := []string{"Inner_example"} // []string | (optional) + labelIew := []string{"Inner_example"} // []string | (optional) + labelIsw := []string{"Inner_example"} // []string | (optional) + labelN := []string{"Inner_example"} // []string | (optional) + labelNic := []string{"Inner_example"} // []string | (optional) + labelNie := []string{"Inner_example"} // []string | (optional) + 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) @@ -19406,61 +19841,73 @@ func main() { 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) - manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) - manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) - manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) - manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) - model := []string{"Inner_example"} // []string | (optional) - modelEmpty := true // bool | (optional) - modelIc := []string{"Inner_example"} // []string | (optional) - modelIe := []string{"Inner_example"} // []string | (optional) - modelIew := []string{"Inner_example"} // []string | (optional) - modelIsw := []string{"Inner_example"} // []string | (optional) - modelN := []string{"Inner_example"} // []string | (optional) - modelNic := []string{"Inner_example"} // []string | (optional) - modelNie := []string{"Inner_example"} // []string | (optional) - modelNiew := []string{"Inner_example"} // []string | (optional) - modelNisw := []string{"Inner_example"} // []string | (optional) + location := []string{"Inner_example"} // []string | Location (slug) (optional) + 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) + 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) - partNumber := []string{"Inner_example"} // []string | (optional) - partNumberEmpty := true // bool | (optional) - partNumberIc := []string{"Inner_example"} // []string | (optional) - partNumberIe := []string{"Inner_example"} // []string | (optional) - partNumberIew := []string{"Inner_example"} // []string | (optional) - partNumberIsw := []string{"Inner_example"} // []string | (optional) - partNumberN := []string{"Inner_example"} // []string | (optional) - partNumberNic := []string{"Inner_example"} // []string | (optional) - partNumberNie := []string{"Inner_example"} // []string | (optional) - partNumberNiew := []string{"Inner_example"} // []string | (optional) - partNumberNisw := []string{"Inner_example"} // []string | (optional) - passThroughPorts := true // bool | Has pass-through ports (optional) - powerOutlets := true // bool | Has power outlets (optional) - powerPorts := true // bool | Has power ports (optional) + parentId := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) + parentIdN := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) + position := []string{"Inner_example"} // []string | (optional) + positionEmpty := true // bool | (optional) + positionIc := []string{"Inner_example"} // []string | (optional) + positionIe := []string{"Inner_example"} // []string | (optional) + positionIew := []string{"Inner_example"} // []string | (optional) + positionIsw := []string{"Inner_example"} // []string | (optional) + positionN := []string{"Inner_example"} // []string | (optional) + positionNic := []string{"Inner_example"} // []string | (optional) + positionNie := []string{"Inner_example"} // []string | (optional) + positionNiew := []string{"Inner_example"} // []string | (optional) + positionNisw := []string{"Inner_example"} // []string | (optional) q := "q_example" // string | Search (optional) + rack := []string{"Inner_example"} // []string | Rack (name) (optional) + rackN := []string{"Inner_example"} // []string | Rack (name) (optional) + rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) + rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) 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) - weightLte := []float64{float64(123)} // []float64 | (optional) - weightN := []float64{float64(123)} // []float64 | (optional) - weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) + virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) + 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) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).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).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() + 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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).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).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).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() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %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 `DcimModuleTypesList`: PaginatedModuleTypeList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesList`: %v\n", resp) + // response from `DcimModuleBaysList`: PaginatedModuleBayList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysList`: %v\n", resp) } ``` @@ -19470,13 +19917,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysListRequest struct via the builder pattern 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) | | @@ -19496,6 +19941,29 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | + **deviceType** | **[]string** | Device type (model) | + **deviceTypeN** | **[]string** | Device type (model) | + **deviceTypeId** | **[]int32** | Device type (ID) | + **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -19503,7 +19971,19 @@ Name | Type | Description | Notes **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | - **interfaces** | **bool** | Has interfaces | + **installedModuleId** | **[]int32** | Installed module (ID) | + **installedModuleIdN** | **[]int32** | Installed module (ID) | + **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**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -19512,55 +19992,67 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **manufacturer** | **[]string** | Manufacturer (slug) | - **manufacturerN** | **[]string** | Manufacturer (slug) | - **manufacturerId** | **[]int32** | Manufacturer (ID) | - **manufacturerIdN** | **[]int32** | Manufacturer (ID) | - **model** | **[]string** | | - **modelEmpty** | **bool** | | - **modelIc** | **[]string** | | - **modelIe** | **[]string** | | - **modelIew** | **[]string** | | - **modelIsw** | **[]string** | | - **modelN** | **[]string** | | - **modelNic** | **[]string** | | - **modelNie** | **[]string** | | - **modelNiew** | **[]string** | | - **modelNisw** | **[]string** | | + **location** | **[]string** | Location (slug) | + **locationN** | **[]string** | Location (slug) | + **locationId** | **[]int32** | Location (ID) | + **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | + **moduleId** | **[]int32** | Module (ID) | + **moduleIdN** | **[]int32** | Module (ID) | + **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. | - **partNumber** | **[]string** | | - **partNumberEmpty** | **bool** | | - **partNumberIc** | **[]string** | | - **partNumberIe** | **[]string** | | - **partNumberIew** | **[]string** | | - **partNumberIsw** | **[]string** | | - **partNumberN** | **[]string** | | - **partNumberNic** | **[]string** | | - **partNumberNie** | **[]string** | | - **partNumberNiew** | **[]string** | | - **partNumberNisw** | **[]string** | | - **passThroughPorts** | **bool** | Has pass-through ports | - **powerOutlets** | **bool** | Has power outlets | - **powerPorts** | **bool** | Has power ports | + **parentId** | **[]int32** | Parent module bay (ID) | + **parentIdN** | **[]int32** | Parent module bay (ID) | + **position** | **[]string** | | + **positionEmpty** | **bool** | | + **positionIc** | **[]string** | | + **positionIe** | **[]string** | | + **positionIew** | **[]string** | | + **positionIsw** | **[]string** | | + **positionN** | **[]string** | | + **positionNic** | **[]string** | | + **positionNie** | **[]string** | | + **positionNiew** | **[]string** | | + **positionNisw** | **[]string** | | **q** | **string** | Search | + **rack** | **[]string** | Rack (name) | + **rackN** | **[]string** | Rack (name) | + **rackId** | **[]int32** | Rack (ID) | + **rackIdN** | **[]int32** | Rack (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site name (slug) | + **siteN** | **[]string** | Site name (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **updatedByRequest** | **string** | | - **weight** | **[]float64** | | - **weightEmpty** | **bool** | | - **weightGt** | **[]float64** | | - **weightGte** | **[]float64** | | - **weightLt** | **[]float64** | | - **weightLte** | **[]float64** | | - **weightN** | **[]float64** | | - **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | + **virtualChassis** | **[]string** | Virtual Chassis | + **virtualChassisN** | **[]string** | Virtual Chassis | + **virtualChassisId** | **[]int32** | Virtual Chassis (ID) | + **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | ### Return type -[**PaginatedModuleTypeList**](PaginatedModuleTypeList.md) +[**PaginatedModuleBayList**](PaginatedModuleBayList.md) ### Authorization @@ -19576,9 +20068,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesPartialUpdate +## DcimModuleBaysPartialUpdate -> ModuleType DcimModuleTypesPartialUpdate(ctx, id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute() +> ModuleBay DcimModuleBaysPartialUpdate(ctx, id).PatchedModuleBayRequest(patchedModuleBayRequest).Execute() @@ -19597,18 +20089,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module type. - patchedWritableModuleTypeRequest := *openapiclient.NewPatchedWritableModuleTypeRequest() // PatchedWritableModuleTypeRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this module bay. + patchedModuleBayRequest := *openapiclient.NewPatchedModuleBayRequest() // PatchedModuleBayRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedModuleBayRequest(patchedModuleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesPartialUpdate``: %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 `DcimModuleTypesPartialUpdate`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesPartialUpdate`: %v\n", resp) + // response from `DcimModuleBaysPartialUpdate`: ModuleBay + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysPartialUpdate`: %v\n", resp) } ``` @@ -19618,21 +20110,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 module type. | +**id** | **int32** | A unique integer value identifying this module bay. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritableModuleTypeRequest** | [**PatchedWritableModuleTypeRequest**](PatchedWritableModuleTypeRequest.md) | | + **patchedModuleBayRequest** | [**PatchedModuleBayRequest**](PatchedModuleBayRequest.md) | | ### Return type -[**ModuleType**](ModuleType.md) +[**ModuleBay**](ModuleBay.md) ### Authorization @@ -19648,9 +20140,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesRetrieve +## DcimModuleBaysRetrieve -> ModuleType DcimModuleTypesRetrieve(ctx, id).Execute() +> ModuleBay DcimModuleBaysRetrieve(ctx, id).Execute() @@ -19669,17 +20161,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module type. + id := int32(56) // int32 | A unique integer value identifying this module bay. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesRetrieve(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.DcimModuleTypesRetrieve``: %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 `DcimModuleTypesRetrieve`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesRetrieve`: %v\n", resp) + // response from `DcimModuleBaysRetrieve`: ModuleBay + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysRetrieve`: %v\n", resp) } ``` @@ -19689,11 +20181,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 module type. | +**id** | **int32** | A unique integer value identifying this module bay. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -19702,7 +20194,7 @@ Name | Type | Description | Notes ### Return type -[**ModuleType**](ModuleType.md) +[**ModuleBay**](ModuleBay.md) ### Authorization @@ -19718,9 +20210,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModuleTypesUpdate +## DcimModuleBaysUpdate -> ModuleType DcimModuleTypesUpdate(ctx, id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() +> ModuleBay DcimModuleBaysUpdate(ctx, id).ModuleBayRequest(moduleBayRequest).Execute() @@ -19739,18 +20231,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module type. - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + id := int32(56) // int32 | A unique integer value identifying this module bay. + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesUpdate``: %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 `DcimModuleTypesUpdate`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesUpdate`: %v\n", resp) + // response from `DcimModuleBaysUpdate`: ModuleBay + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysUpdate`: %v\n", resp) } ``` @@ -19760,21 +20252,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 module type. | +**id** | **int32** | A unique integer value identifying this module bay. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModuleTypesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleBaysUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableModuleTypeRequest** | [**WritableModuleTypeRequest**](WritableModuleTypeRequest.md) | | + **moduleBayRequest** | [**ModuleBayRequest**](ModuleBayRequest.md) | | ### Return type -[**ModuleType**](ModuleType.md) +[**ModuleBay**](ModuleBay.md) ### Authorization @@ -19790,9 +20282,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesBulkDestroy +## DcimModuleTypesBulkDestroy -> DcimModulesBulkDestroy(ctx).ModuleRequest(moduleRequest).Execute() +> DcimModuleTypesBulkDestroy(ctx).ModuleTypeRequest(moduleTypeRequest).Execute() @@ -19811,13 +20303,13 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModulesBulkDestroy(context.Background()).ModuleRequest(moduleRequest).Execute() + r, err := apiClient.DcimAPI.DcimModuleTypesBulkDestroy(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkDestroy``: %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) } } @@ -19829,12 +20321,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleRequest** | [**[]ModuleRequest**](ModuleRequest.md) | | + **moduleTypeRequest** | [**[]ModuleTypeRequest**](ModuleTypeRequest.md) | | ### Return type @@ -19854,9 +20346,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesBulkPartialUpdate +## DcimModuleTypesBulkPartialUpdate -> []Module DcimModulesBulkPartialUpdate(ctx).ModuleRequest(moduleRequest).Execute() +> []ModuleType DcimModuleTypesBulkPartialUpdate(ctx).ModuleTypeRequest(moduleTypeRequest).Execute() @@ -19875,17 +20367,17 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkPartialUpdate``: %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 `DcimModulesBulkPartialUpdate`: []Module - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkPartialUpdate`: %v\n", resp) + // response from `DcimModuleTypesBulkPartialUpdate`: []ModuleType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -19895,16 +20387,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleRequest** | [**[]ModuleRequest**](ModuleRequest.md) | | + **moduleTypeRequest** | [**[]ModuleTypeRequest**](ModuleTypeRequest.md) | | ### Return type -[**[]Module**](Module.md) +[**[]ModuleType**](ModuleType.md) ### Authorization @@ -19920,9 +20412,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesBulkUpdate +## DcimModuleTypesBulkUpdate -> []Module DcimModulesBulkUpdate(ctx).ModuleRequest(moduleRequest).Execute() +> []ModuleType DcimModuleTypesBulkUpdate(ctx).ModuleTypeRequest(moduleTypeRequest).Execute() @@ -19941,17 +20433,17 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkUpdate``: %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 `DcimModulesBulkUpdate`: []Module - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkUpdate`: %v\n", resp) + // response from `DcimModuleTypesBulkUpdate`: []ModuleType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkUpdate`: %v\n", resp) } ``` @@ -19961,16 +20453,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **moduleRequest** | [**[]ModuleRequest**](ModuleRequest.md) | | + **moduleTypeRequest** | [**[]ModuleTypeRequest**](ModuleTypeRequest.md) | | ### Return type -[**[]Module**](Module.md) +[**[]ModuleType**](ModuleType.md) ### Authorization @@ -19986,9 +20478,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesCreate +## DcimModuleTypesCreate -> Module DcimModulesCreate(ctx).WritableModuleRequest(writableModuleRequest).Execute() +> ModuleType DcimModuleTypesCreate(ctx).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() @@ -20007,17 +20499,17 @@ import ( ) func main() { - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).WritableModuleRequest(writableModuleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesCreate``: %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 `DcimModulesCreate`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesCreate`: %v\n", resp) + // response from `DcimModuleTypesCreate`: ModuleType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesCreate`: %v\n", resp) } ``` @@ -20027,16 +20519,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableModuleRequest** | [**WritableModuleRequest**](WritableModuleRequest.md) | | + **writableModuleTypeRequest** | [**WritableModuleTypeRequest**](WritableModuleTypeRequest.md) | | ### Return type -[**Module**](Module.md) +[**ModuleType**](ModuleType.md) ### Authorization @@ -20052,9 +20544,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesDestroy +## DcimModuleTypesDestroy -> DcimModulesDestroy(ctx, id).Execute() +> DcimModuleTypesDestroy(ctx, id).Execute() @@ -20073,13 +20565,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module. + id := int32(56) // int32 | A unique integer value identifying this module type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimModulesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModuleTypesDestroy(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.DcimModuleTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -20091,11 +20583,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 module. | +**id** | **int32** | A unique integer value identifying this module type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -20120,9 +20612,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesList +## DcimModuleTypesList -> 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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() +> PaginatedModuleTypeList DcimModuleTypesList(ctx).Airflow(airflow).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).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).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).Execute() @@ -20142,17 +20634,9 @@ import ( ) func main() { - assetTag := []string{"Inner_example"} // []string | (optional) - assetTagEmpty := true // bool | (optional) - assetTagIc := []string{"Inner_example"} // []string | (optional) - assetTagIe := []string{"Inner_example"} // []string | (optional) - assetTagIew := []string{"Inner_example"} // []string | (optional) - assetTagIsw := []string{"Inner_example"} // []string | (optional) - assetTagN := []string{"Inner_example"} // []string | (optional) - assetTagNic := []string{"Inner_example"} // []string | (optional) - assetTagNie := []string{"Inner_example"} // []string | (optional) - assetTagNiew := []string{"Inner_example"} // []string | (optional) - assetTagNisw := []string{"Inner_example"} // []string | (optional) + airflow := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `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 (optional) + 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) @@ -20172,8 +20656,6 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - 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) @@ -20181,6 +20663,7 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) 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) @@ -20193,42 +20676,56 @@ 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) + model := []string{"Inner_example"} // []string | (optional) + modelEmpty := true // bool | (optional) + modelIc := []string{"Inner_example"} // []string | (optional) + modelIe := []string{"Inner_example"} // []string | (optional) + modelIew := []string{"Inner_example"} // []string | (optional) + modelIsw := []string{"Inner_example"} // []string | (optional) + modelN := []string{"Inner_example"} // []string | (optional) + modelNic := []string{"Inner_example"} // []string | (optional) + 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) - 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) - moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional) - moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional) - moduleTypeIdN := []int32{int32(123)} // []int32 | Module type (ID) (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) + partNumberEmpty := true // bool | (optional) + partNumberIc := []string{"Inner_example"} // []string | (optional) + partNumberIe := []string{"Inner_example"} // []string | (optional) + partNumberIew := []string{"Inner_example"} // []string | (optional) + partNumberIsw := []string{"Inner_example"} // []string | (optional) + partNumberN := []string{"Inner_example"} // []string | (optional) + partNumberNic := []string{"Inner_example"} // []string | (optional) + partNumberNie := []string{"Inner_example"} // []string | (optional) + partNumberNiew := []string{"Inner_example"} // []string | (optional) + partNumberNisw := []string{"Inner_example"} // []string | (optional) + passThroughPorts := true // bool | Has pass-through ports (optional) + powerOutlets := true // bool | Has power outlets (optional) + powerPorts := true // bool | Has power ports (optional) q := "q_example" // string | Search (optional) - serial := []string{"Inner_example"} // []string | (optional) - serialEmpty := true // bool | (optional) - serialIc := []string{"Inner_example"} // []string | (optional) - serialIe := []string{"Inner_example"} // []string | (optional) - serialIew := []string{"Inner_example"} // []string | (optional) - serialIsw := []string{"Inner_example"} // []string | (optional) - serialN := []string{"Inner_example"} // []string | (optional) - serialNic := []string{"Inner_example"} // []string | (optional) - serialNie := []string{"Inner_example"} // []string | (optional) - serialNiew := []string{"Inner_example"} // []string | (optional) - serialNisw := []string{"Inner_example"} // []string | (optional) - status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) 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) + weightLte := []float64{float64(123)} // []float64 | (optional) + weightN := []float64{float64(123)} // []float64 | (optional) + weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) 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).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).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() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Airflow(airflow).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).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).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).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesList``: %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 `DcimModulesList`: PaginatedModuleList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesList`: %v\n", resp) + // response from `DcimModuleTypesList`: PaginatedModuleTypeList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesList`: %v\n", resp) } ``` @@ -20238,22 +20735,14 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assetTag** | **[]string** | | - **assetTagEmpty** | **bool** | | - **assetTagIc** | **[]string** | | - **assetTagIe** | **[]string** | | - **assetTagIew** | **[]string** | | - **assetTagIsw** | **[]string** | | - **assetTagN** | **[]string** | | - **assetTagNic** | **[]string** | | - **assetTagNie** | **[]string** | | - **assetTagNiew** | **[]string** | | - **assetTagNisw** | **[]string** | | + **airflow** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `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 | + **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) | | @@ -20273,8 +20762,6 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **deviceId** | **[]int32** | Device (ID) | - **deviceIdN** | **[]int32** | Device (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -20282,6 +20769,7 @@ Name | Type | Description | Notes **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | + **interfaces** | **bool** | Has interfaces | **lastUpdated** | [**[]time.Time**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -20294,36 +20782,50 @@ Name | Type | Description | Notes **manufacturerN** | **[]string** | Manufacturer (slug) | **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **model** | **[]string** | | + **modelEmpty** | **bool** | | + **modelIc** | **[]string** | | + **modelIe** | **[]string** | | + **modelIew** | **[]string** | | + **modelIsw** | **[]string** | | + **modelN** | **[]string** | | + **modelNic** | **[]string** | | + **modelNie** | **[]string** | | + **modelNiew** | **[]string** | | + **modelNisw** | **[]string** | | **modifiedByRequest** | **string** | | - **moduleBayId** | **[]int32** | Module Bay (ID) | - **moduleBayIdN** | **[]int32** | Module Bay (ID) | - **moduleType** | **[]string** | Module type (model) | - **moduleTypeN** | **[]string** | Module type (model) | - **moduleTypeId** | **[]int32** | Module type (ID) | - **moduleTypeIdN** | **[]int32** | Module type (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **partNumber** | **[]string** | | + **partNumberEmpty** | **bool** | | + **partNumberIc** | **[]string** | | + **partNumberIe** | **[]string** | | + **partNumberIew** | **[]string** | | + **partNumberIsw** | **[]string** | | + **partNumberN** | **[]string** | | + **partNumberNic** | **[]string** | | + **partNumberNie** | **[]string** | | + **partNumberNiew** | **[]string** | | + **partNumberNisw** | **[]string** | | + **passThroughPorts** | **bool** | Has pass-through ports | + **powerOutlets** | **bool** | Has power outlets | + **powerPorts** | **bool** | Has power ports | **q** | **string** | Search | - **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** | | + **weight** | **[]float64** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]float64** | | + **weightGte** | **[]float64** | | + **weightLt** | **[]float64** | | + **weightLte** | **[]float64** | | + **weightN** | **[]float64** | | + **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | ### Return type -[**PaginatedModuleList**](PaginatedModuleList.md) +[**PaginatedModuleTypeList**](PaginatedModuleTypeList.md) ### Authorization @@ -20339,9 +20841,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesPartialUpdate +## DcimModuleTypesPartialUpdate -> Module DcimModulesPartialUpdate(ctx, id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute() +> ModuleType DcimModuleTypesPartialUpdate(ctx, id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute() @@ -20360,18 +20862,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module. - patchedWritableModuleRequest := *openapiclient.NewPatchedWritableModuleRequest() // PatchedWritableModuleRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this module type. + patchedWritableModuleTypeRequest := *openapiclient.NewPatchedWritableModuleTypeRequest() // PatchedWritableModuleTypeRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesPartialUpdate``: %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 `DcimModulesPartialUpdate`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesPartialUpdate`: %v\n", resp) + // response from `DcimModuleTypesPartialUpdate`: ModuleType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesPartialUpdate`: %v\n", resp) } ``` @@ -20381,21 +20883,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 module. | +**id** | **int32** | A unique integer value identifying this module type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritableModuleRequest** | [**PatchedWritableModuleRequest**](PatchedWritableModuleRequest.md) | | + **patchedWritableModuleTypeRequest** | [**PatchedWritableModuleTypeRequest**](PatchedWritableModuleTypeRequest.md) | | ### Return type -[**Module**](Module.md) +[**ModuleType**](ModuleType.md) ### Authorization @@ -20411,9 +20913,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesRetrieve +## DcimModuleTypesRetrieve -> Module DcimModulesRetrieve(ctx, id).Execute() +> ModuleType DcimModuleTypesRetrieve(ctx, id).Execute() @@ -20432,17 +20934,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module. + id := int32(56) // int32 | A unique integer value identifying this module type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModulesRetrieve(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.DcimModulesRetrieve``: %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 `DcimModulesRetrieve`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesRetrieve`: %v\n", resp) + // response from `DcimModuleTypesRetrieve`: ModuleType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesRetrieve`: %v\n", resp) } ``` @@ -20452,11 +20954,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 module. | +**id** | **int32** | A unique integer value identifying this module type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -20465,7 +20967,7 @@ Name | Type | Description | Notes ### Return type -[**Module**](Module.md) +[**ModuleType**](ModuleType.md) ### Authorization @@ -20481,9 +20983,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimModulesUpdate +## DcimModuleTypesUpdate -> Module DcimModulesUpdate(ctx, id).WritableModuleRequest(writableModuleRequest).Execute() +> ModuleType DcimModuleTypesUpdate(ctx, id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() @@ -20502,18 +21004,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this module. - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + id := int32(56) // int32 | A unique integer value identifying this module type. + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).WritableModuleRequest(writableModuleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesUpdate``: %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 `DcimModulesUpdate`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesUpdate`: %v\n", resp) + // response from `DcimModuleTypesUpdate`: ModuleType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesUpdate`: %v\n", resp) } ``` @@ -20523,21 +21025,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 module. | +**id** | **int32** | A unique integer value identifying this module type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimModulesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModuleTypesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableModuleRequest** | [**WritableModuleRequest**](WritableModuleRequest.md) | | + **writableModuleTypeRequest** | [**WritableModuleTypeRequest**](WritableModuleTypeRequest.md) | | ### Return type -[**Module**](Module.md) +[**ModuleType**](ModuleType.md) ### Authorization @@ -20553,9 +21055,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsBulkDestroy +## DcimModulesBulkDestroy -> DcimPlatformsBulkDestroy(ctx).PlatformRequest(platformRequest).Execute() +> DcimModulesBulkDestroy(ctx).ModuleRequest(moduleRequest).Execute() @@ -20574,13 +21076,13 @@ import ( ) func main() { - platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPlatformsBulkDestroy(context.Background()).PlatformRequest(platformRequest).Execute() + r, err := apiClient.DcimAPI.DcimModulesBulkDestroy(context.Background()).ModuleRequest(moduleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkDestroy``: %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) } } @@ -20592,12 +21094,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **platformRequest** | [**[]PlatformRequest**](PlatformRequest.md) | | + **moduleRequest** | [**[]ModuleRequest**](ModuleRequest.md) | | ### Return type @@ -20617,9 +21119,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsBulkPartialUpdate +## DcimModulesBulkPartialUpdate -> []Platform DcimPlatformsBulkPartialUpdate(ctx).PlatformRequest(platformRequest).Execute() +> []Module DcimModulesBulkPartialUpdate(ctx).ModuleRequest(moduleRequest).Execute() @@ -20638,17 +21140,17 @@ import ( ) func main() { - platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).PlatformRequest(platformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkPartialUpdate``: %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 `DcimPlatformsBulkPartialUpdate`: []Platform - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkPartialUpdate`: %v\n", resp) + // response from `DcimModulesBulkPartialUpdate`: []Module + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkPartialUpdate`: %v\n", resp) } ``` @@ -20658,16 +21160,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **platformRequest** | [**[]PlatformRequest**](PlatformRequest.md) | | + **moduleRequest** | [**[]ModuleRequest**](ModuleRequest.md) | | ### Return type -[**[]Platform**](Platform.md) +[**[]Module**](Module.md) ### Authorization @@ -20683,9 +21185,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsBulkUpdate +## DcimModulesBulkUpdate -> []Platform DcimPlatformsBulkUpdate(ctx).PlatformRequest(platformRequest).Execute() +> []Module DcimModulesBulkUpdate(ctx).ModuleRequest(moduleRequest).Execute() @@ -20704,17 +21206,17 @@ import ( ) func main() { - platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).PlatformRequest(platformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkUpdate``: %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 `DcimPlatformsBulkUpdate`: []Platform - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkUpdate`: %v\n", resp) + // response from `DcimModulesBulkUpdate`: []Module + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkUpdate`: %v\n", resp) } ``` @@ -20724,16 +21226,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **platformRequest** | [**[]PlatformRequest**](PlatformRequest.md) | | + **moduleRequest** | [**[]ModuleRequest**](ModuleRequest.md) | | ### Return type -[**[]Platform**](Platform.md) +[**[]Module**](Module.md) ### Authorization @@ -20749,9 +21251,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsCreate +## DcimModulesCreate -> Platform DcimPlatformsCreate(ctx).PlatformRequest(platformRequest).Execute() +> Module DcimModulesCreate(ctx).WritableModuleRequest(writableModuleRequest).Execute() @@ -20770,17 +21272,17 @@ import ( ) func main() { - platformRequest := *openapiclient.NewPlatformRequest("Name_example", "Slug_example") // PlatformRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).PlatformRequest(platformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).WritableModuleRequest(writableModuleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsCreate``: %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 `DcimPlatformsCreate`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsCreate`: %v\n", resp) + // response from `DcimModulesCreate`: Module + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesCreate`: %v\n", resp) } ``` @@ -20790,16 +21292,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **platformRequest** | [**PlatformRequest**](PlatformRequest.md) | | + **writableModuleRequest** | [**WritableModuleRequest**](WritableModuleRequest.md) | | ### Return type -[**Platform**](Platform.md) +[**Module**](Module.md) ### Authorization @@ -20815,9 +21317,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsDestroy +## DcimModulesDestroy -> DcimPlatformsDestroy(ctx, id).Execute() +> DcimModulesDestroy(ctx, id).Execute() @@ -20836,13 +21338,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this platform. + id := int32(56) // int32 | A unique integer value identifying this module. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPlatformsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModulesDestroy(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.DcimModulesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -20854,11 +21356,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 platform. | +**id** | **int32** | A unique integer value identifying this module. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -20883,9 +21385,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsList +## DcimModulesList -> PaginatedPlatformList DcimPlatformsList(ctx).AvailableForDeviceType(availableForDeviceType).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() +> 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -20905,9 +21407,17 @@ import ( ) func main() { - availableForDeviceType := "availableForDeviceType_example" // string | (optional) - configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) - configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) + assetTag := []string{"Inner_example"} // []string | (optional) + assetTagEmpty := true // bool | (optional) + assetTagIc := []string{"Inner_example"} // []string | (optional) + assetTagIe := []string{"Inner_example"} // []string | (optional) + assetTagIew := []string{"Inner_example"} // []string | (optional) + assetTagIsw := []string{"Inner_example"} // []string | (optional) + assetTagN := []string{"Inner_example"} // []string | (optional) + assetTagNic := []string{"Inner_example"} // []string | (optional) + assetTagNie := []string{"Inner_example"} // []string | (optional) + 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) @@ -20927,6 +21437,8 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + 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) @@ -20947,44 +21459,50 @@ func main() { 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) - 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) + moduleBayId := []string{"Inner_example"} // []string | (optional) + moduleBayIdN := []string{"Inner_example"} // []string | (optional) + moduleType := []string{"Inner_example"} // []string | Module type (model) (optional) + moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional) + moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional) + moduleTypeIdN := []int32{int32(123)} // []int32 | Module type (ID) (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) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) + serial := []string{"Inner_example"} // []string | (optional) + serialEmpty := true // bool | (optional) + serialIc := []string{"Inner_example"} // []string | (optional) + serialIe := []string{"Inner_example"} // []string | (optional) + serialIew := []string{"Inner_example"} // []string | (optional) + serialIsw := []string{"Inner_example"} // []string | (optional) + serialN := []string{"Inner_example"} // []string | (optional) + serialNic := []string{"Inner_example"} // []string | (optional) + serialNie := []string{"Inner_example"} // []string | (optional) + serialNiew := []string{"Inner_example"} // []string | (optional) + serialNisw := []string{"Inner_example"} // []string | (optional) + status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) + statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_example"} // []string | (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.DcimAPI.DcimPlatformsList(context.Background()).AvailableForDeviceType(availableForDeviceType).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() + 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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.DcimModulesList``: %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) + // response from `DcimModulesList`: PaginatedModuleList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesList`: %v\n", resp) } ``` @@ -20994,14 +21512,22 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **availableForDeviceType** | **string** | | - **configTemplateId** | **[]int32** | Config template (ID) | - **configTemplateIdN** | **[]int32** | Config template (ID) | + **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**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -21021,6 +21547,8 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **deviceId** | **[]int32** | Device (ID) | + **deviceIdN** | **[]int32** | Device (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -21041,38 +21569,44 @@ Name | Type | Description | Notes **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | + **moduleBayId** | **[]string** | | + **moduleBayIdN** | **[]string** | | + **moduleType** | **[]string** | Module type (model) | + **moduleTypeN** | **[]string** | Module type (model) | + **moduleTypeId** | **[]int32** | Module type (ID) | + **moduleTypeIdN** | **[]int32** | Module type (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]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** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | + **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | **updatedByRequest** | **string** | | ### Return type -[**PaginatedPlatformList**](PaginatedPlatformList.md) +[**PaginatedModuleList**](PaginatedModuleList.md) ### Authorization @@ -21088,9 +21622,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsPartialUpdate +## DcimModulesPartialUpdate -> Platform DcimPlatformsPartialUpdate(ctx, id).PatchedPlatformRequest(patchedPlatformRequest).Execute() +> Module DcimModulesPartialUpdate(ctx, id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute() @@ -21109,18 +21643,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this platform. - patchedPlatformRequest := *openapiclient.NewPatchedPlatformRequest() // PatchedPlatformRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this module. + patchedWritableModuleRequest := *openapiclient.NewPatchedWritableModuleRequest() // PatchedWritableModuleRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).PatchedPlatformRequest(patchedPlatformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsPartialUpdate``: %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 `DcimPlatformsPartialUpdate`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsPartialUpdate`: %v\n", resp) + // response from `DcimModulesPartialUpdate`: Module + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesPartialUpdate`: %v\n", resp) } ``` @@ -21130,21 +21664,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 platform. | +**id** | **int32** | A unique integer value identifying this module. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedPlatformRequest** | [**PatchedPlatformRequest**](PatchedPlatformRequest.md) | | + **patchedWritableModuleRequest** | [**PatchedWritableModuleRequest**](PatchedWritableModuleRequest.md) | | ### Return type -[**Platform**](Platform.md) +[**Module**](Module.md) ### Authorization @@ -21160,9 +21694,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsRetrieve +## DcimModulesRetrieve -> Platform DcimPlatformsRetrieve(ctx, id).Execute() +> Module DcimModulesRetrieve(ctx, id).Execute() @@ -21181,17 +21715,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this platform. + id := int32(56) // int32 | A unique integer value identifying this module. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPlatformsRetrieve(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.DcimPlatformsRetrieve``: %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 `DcimPlatformsRetrieve`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsRetrieve`: %v\n", resp) + // response from `DcimModulesRetrieve`: Module + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesRetrieve`: %v\n", resp) } ``` @@ -21201,11 +21735,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 platform. | +**id** | **int32** | A unique integer value identifying this module. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -21214,7 +21748,7 @@ Name | Type | Description | Notes ### Return type -[**Platform**](Platform.md) +[**Module**](Module.md) ### Authorization @@ -21230,9 +21764,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPlatformsUpdate +## DcimModulesUpdate -> Platform DcimPlatformsUpdate(ctx, id).PlatformRequest(platformRequest).Execute() +> Module DcimModulesUpdate(ctx, id).WritableModuleRequest(writableModuleRequest).Execute() @@ -21251,18 +21785,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this platform. - platformRequest := *openapiclient.NewPlatformRequest("Name_example", "Slug_example") // PlatformRequest | + id := int32(56) // int32 | A unique integer value identifying this module. + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).PlatformRequest(platformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).WritableModuleRequest(writableModuleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsUpdate``: %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 `DcimPlatformsUpdate`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsUpdate`: %v\n", resp) + // response from `DcimModulesUpdate`: Module + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesUpdate`: %v\n", resp) } ``` @@ -21272,21 +21806,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 platform. | +**id** | **int32** | A unique integer value identifying this module. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPlatformsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimModulesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **platformRequest** | [**PlatformRequest**](PlatformRequest.md) | | + **writableModuleRequest** | [**WritableModuleRequest**](WritableModuleRequest.md) | | ### Return type -[**Platform**](Platform.md) +[**Module**](Module.md) ### Authorization @@ -21302,9 +21836,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsBulkDestroy +## DcimPlatformsBulkDestroy -> DcimPowerFeedsBulkDestroy(ctx).PowerFeedRequest(powerFeedRequest).Execute() +> DcimPlatformsBulkDestroy(ctx).PlatformRequest(platformRequest).Execute() @@ -21323,13 +21857,13 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerFeedsBulkDestroy(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() + r, err := apiClient.DcimAPI.DcimPlatformsBulkDestroy(context.Background()).PlatformRequest(platformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkDestroy``: %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) } } @@ -21341,12 +21875,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPlatformsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerFeedRequest** | [**[]PowerFeedRequest**](PowerFeedRequest.md) | | + **platformRequest** | [**[]PlatformRequest**](PlatformRequest.md) | | ### Return type @@ -21366,9 +21900,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsBulkPartialUpdate +## DcimPlatformsBulkPartialUpdate -> []PowerFeed DcimPowerFeedsBulkPartialUpdate(ctx).PowerFeedRequest(powerFeedRequest).Execute() +> []Platform DcimPlatformsBulkPartialUpdate(ctx).PlatformRequest(platformRequest).Execute() @@ -21387,17 +21921,17 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkPartialUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).PlatformRequest(platformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkPartialUpdate``: %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 `DcimPowerFeedsBulkPartialUpdate`: []PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkPartialUpdate`: %v\n", resp) + // response from `DcimPlatformsBulkPartialUpdate`: []Platform + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkPartialUpdate`: %v\n", resp) } ``` @@ -21407,16 +21941,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPlatformsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerFeedRequest** | [**[]PowerFeedRequest**](PowerFeedRequest.md) | | + **platformRequest** | [**[]PlatformRequest**](PlatformRequest.md) | | ### Return type -[**[]PowerFeed**](PowerFeed.md) +[**[]Platform**](Platform.md) ### Authorization @@ -21432,9 +21966,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsBulkUpdate +## DcimPlatformsBulkUpdate -> []PowerFeed DcimPowerFeedsBulkUpdate(ctx).PowerFeedRequest(powerFeedRequest).Execute() +> []Platform DcimPlatformsBulkUpdate(ctx).PlatformRequest(platformRequest).Execute() @@ -21453,17 +21987,17 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + platformRequest := []openapiclient.PlatformRequest{*openapiclient.NewPlatformRequest("Name_example", "Slug_example")} // []PlatformRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).PlatformRequest(platformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkUpdate``: %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 `DcimPowerFeedsBulkUpdate`: []PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkUpdate`: %v\n", resp) + // response from `DcimPlatformsBulkUpdate`: []Platform + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkUpdate`: %v\n", resp) } ``` @@ -21473,16 +22007,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPlatformsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerFeedRequest** | [**[]PowerFeedRequest**](PowerFeedRequest.md) | | + **platformRequest** | [**[]PlatformRequest**](PlatformRequest.md) | | ### Return type -[**[]PowerFeed**](PowerFeed.md) +[**[]Platform**](Platform.md) ### Authorization @@ -21498,9 +22032,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsCreate +## DcimPlatformsCreate -> PowerFeed DcimPowerFeedsCreate(ctx).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() +> Platform DcimPlatformsCreate(ctx).PlatformRequest(platformRequest).Execute() @@ -21519,17 +22053,17 @@ import ( ) func main() { - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + platformRequest := *openapiclient.NewPlatformRequest("Name_example", "Slug_example") // PlatformRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsCreate(context.Background()).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).PlatformRequest(platformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsCreate``: %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 `DcimPowerFeedsCreate`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsCreate`: %v\n", resp) + // response from `DcimPlatformsCreate`: Platform + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsCreate`: %v\n", resp) } ``` @@ -21539,16 +22073,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPlatformsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerFeedRequest** | [**WritablePowerFeedRequest**](WritablePowerFeedRequest.md) | | + **platformRequest** | [**PlatformRequest**](PlatformRequest.md) | | ### Return type -[**PowerFeed**](PowerFeed.md) +[**Platform**](Platform.md) ### Authorization @@ -21564,9 +22098,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsDestroy +## DcimPlatformsDestroy -> DcimPowerFeedsDestroy(ctx, id).Execute() +> DcimPlatformsDestroy(ctx, id).Execute() @@ -21585,13 +22119,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power feed. + id := int32(56) // int32 | A unique integer value identifying this platform. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerFeedsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPlatformsDestroy(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.DcimPlatformsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -21603,11 +22137,760 @@ 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 power feed. | +**id** | **int32** | A unique integer value identifying this platform. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPlatformsDestroyRequest 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) + + +## DcimPlatformsList + +> PaginatedPlatformList DcimPlatformsList(ctx).AvailableForDeviceType(availableForDeviceType).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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + availableForDeviceType := "availableForDeviceType_example" // string | (optional) + 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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + 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) + 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) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (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.DcimAPI.DcimPlatformsList(context.Background()).AvailableForDeviceType(availableForDeviceType).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, "Full HTTP response: %v\n", r) + } + // response from `DcimPlatformsList`: PaginatedPlatformList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPlatformsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **availableForDeviceType** | **string** | | + **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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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**](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. | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **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. | + **q** | **string** | Search | + **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** | | + +### Return type + +[**PaginatedPlatformList**](PaginatedPlatformList.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) + + +## DcimPlatformsPartialUpdate + +> Platform DcimPlatformsPartialUpdate(ctx, id).PatchedPlatformRequest(patchedPlatformRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this platform. + patchedPlatformRequest := *openapiclient.NewPatchedPlatformRequest() // PatchedPlatformRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).PatchedPlatformRequest(patchedPlatformRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 platform. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPlatformsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedPlatformRequest** | [**PatchedPlatformRequest**](PatchedPlatformRequest.md) | | + +### Return type + +[**Platform**](Platform.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) + + +## DcimPlatformsRetrieve + +> Platform DcimPlatformsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this platform. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPlatformsRetrieve`: Platform + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsRetrieve`: %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 platform. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPlatformsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Platform**](Platform.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) + + +## DcimPlatformsUpdate + +> Platform DcimPlatformsUpdate(ctx, id).PlatformRequest(platformRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this platform. + platformRequest := *openapiclient.NewPlatformRequest("Name_example", "Slug_example") // PlatformRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).PlatformRequest(platformRequest).Execute() + if err != nil { + 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) +} +``` + +### 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 platform. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPlatformsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **platformRequest** | [**PlatformRequest**](PlatformRequest.md) | | + +### Return type + +[**Platform**](Platform.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) + + +## DcimPowerFeedsBulkDestroy + +> DcimPowerFeedsBulkDestroy(ctx).PowerFeedRequest(powerFeedRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **powerFeedRequest** | [**[]PowerFeedRequest**](PowerFeedRequest.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) + + +## DcimPowerFeedsBulkPartialUpdate + +> []PowerFeed DcimPowerFeedsBulkPartialUpdate(ctx).PowerFeedRequest(powerFeedRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsBulkPartialUpdate`: []PowerFeed + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **powerFeedRequest** | [**[]PowerFeedRequest**](PowerFeedRequest.md) | | + +### Return type + +[**[]PowerFeed**](PowerFeed.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) + + +## DcimPowerFeedsBulkUpdate + +> []PowerFeed DcimPowerFeedsBulkUpdate(ctx).PowerFeedRequest(powerFeedRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsBulkUpdate`: []PowerFeed + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **powerFeedRequest** | [**[]PowerFeedRequest**](PowerFeedRequest.md) | | + +### Return type + +[**[]PowerFeed**](PowerFeed.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) + + +## DcimPowerFeedsCreate + +> PowerFeed DcimPowerFeedsCreate(ctx).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsCreate`: PowerFeed + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writablePowerFeedRequest** | [**WritablePowerFeedRequest**](WritablePowerFeedRequest.md) | | + +### Return type + +[**PowerFeed**](PowerFeed.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) + + +## DcimPowerFeedsDestroy + +> DcimPowerFeedsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power feed. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 power feed. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -21634,7 +22917,936 @@ Name | Type | Description | Notes ## DcimPowerFeedsList -> PaginatedPowerFeedList DcimPowerFeedsList(ctx).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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() +> PaginatedPowerFeedList DcimPowerFeedsList(ctx).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Supply(supply).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + amperageLte := []int32{int32(123)} // []int32 | (optional) + amperageN := []int32{int32(123)} // []int32 | (optional) + availablePower := []int32{int32(123)} // []int32 | (optional) + availablePowerEmpty := true // bool | (optional) + availablePowerGt := []int32{int32(123)} // []int32 | (optional) + availablePowerGte := []int32{int32(123)} // []int32 | (optional) + availablePowerLt := []int32{int32(123)} // []int32 | (optional) + availablePowerLte := []int32{int32(123)} // []int32 | (optional) + availablePowerN := []int32{int32(123)} // []int32 | (optional) + cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) + cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + 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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + markConnected := true // bool | (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) + 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) + 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) + phase := openapiclient.dcim_power_feeds_list_phase_parameter("single-phase") // DcimPowerFeedsListPhaseParameter | * `single-phase` - Single phase * `three-phase` - Three-phase (optional) + powerPanelId := []int32{int32(123)} // []int32 | Power panel (ID) (optional) + powerPanelIdN := []int32{int32(123)} // []int32 | Power panel (ID) (optional) + q := "q_example" // string | Search (optional) + rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) + rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) + statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_example"} // []string | (optional) + supply := openapiclient.dcim_power_feeds_list_supply_parameter("ac") // DcimPowerFeedsListSupplyParameter | * `ac` - AC * `dc` - DC (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 := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + type_ := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (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) + voltageLte := []int32{int32(123)} // []int32 | (optional) + voltageN := []int32{int32(123)} // []int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Supply(supply).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsList`: PaginatedPowerFeedList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **amperage** | **[]int32** | | + **amperageEmpty** | **bool** | | + **amperageGt** | **[]int32** | | + **amperageGte** | **[]int32** | | + **amperageLt** | **[]int32** | | + **amperageLte** | **[]int32** | | + **amperageN** | **[]int32** | | + **availablePower** | **[]int32** | | + **availablePowerEmpty** | **bool** | | + **availablePowerGt** | **[]int32** | | + **availablePowerGte** | **[]int32** | | + **availablePowerLt** | **[]int32** | | + **availablePowerLte** | **[]int32** | | + **availablePowerN** | **[]int32** | | + **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | + **cableId** | **[]int32** | Cable (ID) | + **cableIdN** | **[]int32** | Cable (ID) | + **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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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**](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. | + **markConnected** | **bool** | | + **maxUtilization** | **[]int32** | | + **maxUtilizationEmpty** | **bool** | | + **maxUtilizationGt** | **[]int32** | | + **maxUtilizationGte** | **[]int32** | | + **maxUtilizationLt** | **[]int32** | | + **maxUtilizationLte** | **[]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** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **phase** | [**DcimPowerFeedsListPhaseParameter**](DcimPowerFeedsListPhaseParameter.md) | * `single-phase` - Single phase * `three-phase` - Three-phase | + **powerPanelId** | **[]int32** | Power panel (ID) | + **powerPanelIdN** | **[]int32** | Power panel (ID) | + **q** | **string** | Search | + **rackId** | **[]int32** | Rack (ID) | + **rackIdN** | **[]int32** | Rack (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site name (slug) | + **siteN** | **[]string** | Site name (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | + **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | + **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | + **supply** | [**DcimPowerFeedsListSupplyParameter**](DcimPowerFeedsListSupplyParameter.md) | * `ac` - AC * `dc` - DC | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **type_** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | + **updatedByRequest** | **string** | | + **voltage** | **[]int32** | | + **voltageEmpty** | **bool** | | + **voltageGt** | **[]int32** | | + **voltageGte** | **[]int32** | | + **voltageLt** | **[]int32** | | + **voltageLte** | **[]int32** | | + **voltageN** | **[]int32** | | + +### Return type + +[**PaginatedPowerFeedList**](PaginatedPowerFeedList.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) + + +## DcimPowerFeedsPartialUpdate + +> PowerFeed DcimPowerFeedsPartialUpdate(ctx, id).PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power feed. + patchedWritablePowerFeedRequest := *openapiclient.NewPatchedWritablePowerFeedRequest() // PatchedWritablePowerFeedRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsPartialUpdate`: PowerFeed + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsPartialUpdate`: %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 power feed. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritablePowerFeedRequest** | [**PatchedWritablePowerFeedRequest**](PatchedWritablePowerFeedRequest.md) | | + +### Return type + +[**PowerFeed**](PowerFeed.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) + + +## DcimPowerFeedsRetrieve + +> PowerFeed DcimPowerFeedsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power feed. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsRetrieve`: PowerFeed + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsRetrieve`: %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 power feed. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**PowerFeed**](PowerFeed.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) + + +## DcimPowerFeedsTraceRetrieve + +> PowerFeed DcimPowerFeedsTraceRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power feed. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsTraceRetrieve`: PowerFeed + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsTraceRetrieve`: %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 power feed. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsTraceRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**PowerFeed**](PowerFeed.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) + + +## DcimPowerFeedsUpdate + +> PowerFeed DcimPowerFeedsUpdate(ctx, id).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power feed. + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerFeedsUpdate`: PowerFeed + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsUpdate`: %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 power feed. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerFeedsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writablePowerFeedRequest** | [**WritablePowerFeedRequest**](WritablePowerFeedRequest.md) | | + +### Return type + +[**PowerFeed**](PowerFeed.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) + + +## DcimPowerOutletTemplatesBulkDestroy + +> DcimPowerOutletTemplatesBulkDestroy(ctx).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **powerOutletTemplateRequest** | [**[]PowerOutletTemplateRequest**](PowerOutletTemplateRequest.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) + + +## DcimPowerOutletTemplatesBulkPartialUpdate + +> []PowerOutletTemplate DcimPowerOutletTemplatesBulkPartialUpdate(ctx).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerOutletTemplatesBulkPartialUpdate`: []PowerOutletTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **powerOutletTemplateRequest** | [**[]PowerOutletTemplateRequest**](PowerOutletTemplateRequest.md) | | + +### Return type + +[**[]PowerOutletTemplate**](PowerOutletTemplate.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) + + +## DcimPowerOutletTemplatesBulkUpdate + +> []PowerOutletTemplate DcimPowerOutletTemplatesBulkUpdate(ctx).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerOutletTemplatesBulkUpdate`: []PowerOutletTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **powerOutletTemplateRequest** | [**[]PowerOutletTemplateRequest**](PowerOutletTemplateRequest.md) | | + +### Return type + +[**[]PowerOutletTemplate**](PowerOutletTemplate.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) + + +## DcimPowerOutletTemplatesCreate + +> PowerOutletTemplate DcimPowerOutletTemplatesCreate(ctx).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerOutletTemplatesCreate`: PowerOutletTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writablePowerOutletTemplateRequest** | [**WritablePowerOutletTemplateRequest**](WritablePowerOutletTemplateRequest.md) | | + +### Return type + +[**PowerOutletTemplate**](PowerOutletTemplate.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) + + +## DcimPowerOutletTemplatesDestroy + +> DcimPowerOutletTemplatesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power outlet template. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 power outlet template. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesDestroyRequest 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) + + +## DcimPowerOutletTemplatesList + +> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).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).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() @@ -21654,26 +23866,6 @@ 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) - amperageLte := []int32{int32(123)} // []int32 | (optional) - amperageN := []int32{int32(123)} // []int32 | (optional) - availablePower := []int32{int32(123)} // []int32 | (optional) - availablePowerEmpty := true // bool | (optional) - availablePowerGt := []int32{int32(123)} // []int32 | (optional) - availablePowerGte := []int32{int32(123)} // []int32 | (optional) - availablePowerLt := []int32{int32(123)} // []int32 | (optional) - availablePowerLte := []int32{int32(123)} // []int32 | (optional) - availablePowerN := []int32{int32(123)} // []int32 | (optional) - cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - 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) @@ -21693,6 +23885,19 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + feedLeg := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegEmpty := true // bool | (optional) + feedLegIc := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegIe := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegIew := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegIsw := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegN := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNic := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNie := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNiew := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNisw := []*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) @@ -21700,6 +23905,17 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) + label := []string{"Inner_example"} // []string | (optional) + labelEmpty := true // bool | (optional) + labelIc := []string{"Inner_example"} // []string | (optional) + labelIe := []string{"Inner_example"} // []string | (optional) + labelIew := []string{"Inner_example"} // []string | (optional) + labelIsw := []string{"Inner_example"} // []string | (optional) + labelN := []string{"Inner_example"} // []string | (optional) + labelNic := []string{"Inner_example"} // []string | (optional) + labelNie := []string{"Inner_example"} // []string | (optional) + 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) @@ -21708,15 +23924,9 @@ func main() { 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) - markConnected := true // bool | (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) + moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -21728,62 +23938,23 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []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) - phase := openapiclient.dcim_power_feeds_list_phase_parameter("single-phase") // DcimPowerFeedsListPhaseParameter | * `single-phase` - Single phase * `three-phase` - Three-phase (optional) - phaseN := openapiclient.dcim_power_feeds_list_phase_parameter("single-phase") // DcimPowerFeedsListPhaseParameter | * `single-phase` - Single phase * `three-phase` - Three-phase (optional) - powerPanelId := []int32{int32(123)} // []int32 | Power panel (ID) (optional) - powerPanelIdN := []int32{int32(123)} // []int32 | Power panel (ID) (optional) + powerPortId := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) + powerPortIdN := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) q := "q_example" // string | Search (optional) - rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) - rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - 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) - status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) - supply := openapiclient.dcim_power_feeds_list_supply_parameter("ac") // DcimPowerFeedsListSupplyParameter | * `ac` - AC * `dc` - DC (optional) - supplyN := openapiclient.dcim_power_feeds_list_supply_parameter("ac") // DcimPowerFeedsListSupplyParameter | * `ac` - AC * `dc` - DC (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_ := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (optional) - typeN := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (optional) + type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('eaton-c39', 'Eaton C39'), ('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (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) - voltageLte := []int32{int32(123)} // []int32 | (optional) - voltageN := []int32{int32(123)} // []int32 | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).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).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsList``: %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 `DcimPowerFeedsList`: PaginatedPowerFeedList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsList`: %v\n", resp) + // response from `DcimPowerOutletTemplatesList`: PaginatedPowerOutletTemplateList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesList`: %v\n", resp) } ``` @@ -21793,31 +23964,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **amperage** | **[]int32** | | - **amperageEmpty** | **bool** | | - **amperageGt** | **[]int32** | | - **amperageGte** | **[]int32** | | - **amperageLt** | **[]int32** | | - **amperageLte** | **[]int32** | | - **amperageN** | **[]int32** | | - **availablePower** | **[]int32** | | - **availablePowerEmpty** | **bool** | | - **availablePowerGt** | **[]int32** | | - **availablePowerGte** | **[]int32** | | - **availablePowerLt** | **[]int32** | | - **availablePowerLte** | **[]int32** | | - **availablePowerN** | **[]int32** | | - **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableId** | **[]int32** | Cable (ID) | - **cableIdN** | **[]int32** | Cable (ID) | - **cabled** | **bool** | | - **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -21837,6 +23988,19 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **deviceTypeId** | **[]int32** | Device type (ID) | + **deviceTypeIdN** | **[]int32** | Device type (ID) | + **feedLeg** | **[]string** | Phase (for three-phase feeds) | + **feedLegEmpty** | **bool** | | + **feedLegIc** | **[]string** | Phase (for three-phase feeds) | + **feedLegIe** | **[]string** | Phase (for three-phase feeds) | + **feedLegIew** | **[]string** | Phase (for three-phase feeds) | + **feedLegIsw** | **[]string** | Phase (for three-phase feeds) | + **feedLegN** | **[]string** | Phase (for three-phase feeds) | + **feedLegNic** | **[]string** | Phase (for three-phase feeds) | + **feedLegNie** | **[]string** | Phase (for three-phase feeds) | + **feedLegNiew** | **[]string** | Phase (for three-phase feeds) | + **feedLegNisw** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -21844,6 +24008,17 @@ Name | Type | Description | Notes **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**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -21852,15 +24027,9 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **markConnected** | **bool** | | - **maxUtilization** | **[]int32** | | - **maxUtilizationEmpty** | **bool** | | - **maxUtilizationGt** | **[]int32** | | - **maxUtilizationGte** | **[]int32** | | - **maxUtilizationLt** | **[]int32** | | - **maxUtilizationLte** | **[]int32** | | - **maxUtilizationN** | **[]int32** | | **modifiedByRequest** | **string** | | + **moduleTypeId** | **[]int32** | Module type (ID) | + **moduleTypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -21872,56 +24041,17 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | - **occupied** | **bool** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **phase** | [**DcimPowerFeedsListPhaseParameter**](DcimPowerFeedsListPhaseParameter.md) | * `single-phase` - Single phase * `three-phase` - Three-phase | - **phaseN** | [**DcimPowerFeedsListPhaseParameter**](DcimPowerFeedsListPhaseParameter.md) | * `single-phase` - Single phase * `three-phase` - Three-phase | - **powerPanelId** | **[]int32** | Power panel (ID) | - **powerPanelIdN** | **[]int32** | Power panel (ID) | + **powerPortId** | **[]int32** | Power port (ID) | + **powerPortIdN** | **[]int32** | Power port (ID) | **q** | **string** | Search | - **rackId** | **[]int32** | Rack (ID) | - **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **site** | **[]string** | Site name (slug) | - **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | - **status** | **[]string** | | - **statusN** | **[]string** | | - **supply** | [**DcimPowerFeedsListSupplyParameter**](DcimPowerFeedsListSupplyParameter.md) | * `ac` - AC * `dc` - DC | - **supplyN** | [**DcimPowerFeedsListSupplyParameter**](DcimPowerFeedsListSupplyParameter.md) | * `ac` - AC * `dc` - DC | - **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_** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | - **typeN** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | + **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('eaton-c39', 'Eaton C39'), ('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | - **voltage** | **[]int32** | | - **voltageEmpty** | **bool** | | - **voltageGt** | **[]int32** | | - **voltageGte** | **[]int32** | | - **voltageLt** | **[]int32** | | - **voltageLte** | **[]int32** | | - **voltageN** | **[]int32** | | ### Return type -[**PaginatedPowerFeedList**](PaginatedPowerFeedList.md) +[**PaginatedPowerOutletTemplateList**](PaginatedPowerOutletTemplateList.md) ### Authorization @@ -21937,9 +24067,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsPartialUpdate +## DcimPowerOutletTemplatesPartialUpdate -> PowerFeed DcimPowerFeedsPartialUpdate(ctx, id).PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest).Execute() +> PowerOutletTemplate DcimPowerOutletTemplatesPartialUpdate(ctx, id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute() @@ -21958,18 +24088,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power feed. - patchedWritablePowerFeedRequest := *openapiclient.NewPatchedWritablePowerFeedRequest() // PatchedWritablePowerFeedRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this power outlet template. + patchedWritablePowerOutletTemplateRequest := *openapiclient.NewPatchedWritablePowerOutletTemplateRequest() // PatchedWritablePowerOutletTemplateRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsPartialUpdate(context.Background(), id).PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsPartialUpdate``: %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 `DcimPowerFeedsPartialUpdate`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsPartialUpdate`: %v\n", resp) + // response from `DcimPowerOutletTemplatesPartialUpdate`: PowerOutletTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -21979,21 +24109,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 power feed. | +**id** | **int32** | A unique integer value identifying this power outlet template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritablePowerFeedRequest** | [**PatchedWritablePowerFeedRequest**](PatchedWritablePowerFeedRequest.md) | | + **patchedWritablePowerOutletTemplateRequest** | [**PatchedWritablePowerOutletTemplateRequest**](PatchedWritablePowerOutletTemplateRequest.md) | | ### Return type -[**PowerFeed**](PowerFeed.md) +[**PowerOutletTemplate**](PowerOutletTemplate.md) ### Authorization @@ -22009,79 +24139,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsRetrieve - -> PowerFeed DcimPowerFeedsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this power feed. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - 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, "Full HTTP response: %v\n", r) - } - // response from `DcimPowerFeedsRetrieve`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsRetrieve`: %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 power feed. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimPowerFeedsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**PowerFeed**](PowerFeed.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) - - -## DcimPowerFeedsTraceRetrieve +## DcimPowerOutletTemplatesRetrieve -> PowerFeed DcimPowerFeedsTraceRetrieve(ctx, id).Execute() +> PowerOutletTemplate DcimPowerOutletTemplatesRetrieve(ctx, id).Execute() @@ -22100,17 +24160,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power feed. + id := int32(56) // int32 | A unique integer value identifying this power outlet template. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsTraceRetrieve(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.DcimPowerFeedsTraceRetrieve``: %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 `DcimPowerFeedsTraceRetrieve`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsTraceRetrieve`: %v\n", resp) + // response from `DcimPowerOutletTemplatesRetrieve`: PowerOutletTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesRetrieve`: %v\n", resp) } ``` @@ -22120,11 +24180,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 power feed. | +**id** | **int32** | A unique integer value identifying this power outlet template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsTraceRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -22133,7 +24193,7 @@ Name | Type | Description | Notes ### Return type -[**PowerFeed**](PowerFeed.md) +[**PowerOutletTemplate**](PowerOutletTemplate.md) ### Authorization @@ -22149,9 +24209,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerFeedsUpdate +## DcimPowerOutletTemplatesUpdate -> PowerFeed DcimPowerFeedsUpdate(ctx, id).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() +> PowerOutletTemplate DcimPowerOutletTemplatesUpdate(ctx, id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() @@ -22170,18 +24230,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power feed. - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + id := int32(56) // int32 | A unique integer value identifying this power outlet template. + writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsUpdate(context.Background(), id).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsUpdate``: %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 `DcimPowerFeedsUpdate`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsUpdate`: %v\n", resp) + // response from `DcimPowerOutletTemplatesUpdate`: PowerOutletTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesUpdate`: %v\n", resp) } ``` @@ -22191,21 +24251,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 power feed. | +**id** | **int32** | A unique integer value identifying this power outlet template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerFeedsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerFeedRequest** | [**WritablePowerFeedRequest**](WritablePowerFeedRequest.md) | | + **writablePowerOutletTemplateRequest** | [**WritablePowerOutletTemplateRequest**](WritablePowerOutletTemplateRequest.md) | | ### Return type -[**PowerFeed**](PowerFeed.md) +[**PowerOutletTemplate**](PowerOutletTemplate.md) ### Authorization @@ -22221,9 +24281,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesBulkDestroy +## DcimPowerOutletsBulkDestroy -> DcimPowerOutletTemplatesBulkDestroy(ctx).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() +> DcimPowerOutletsBulkDestroy(ctx).PowerOutletRequest(powerOutletRequest).Execute() @@ -22242,13 +24302,13 @@ import ( ) func main() { - powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkDestroy(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerOutletsBulkDestroy(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkDestroy``: %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) } } @@ -22260,12 +24320,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerOutletTemplateRequest** | [**[]PowerOutletTemplateRequest**](PowerOutletTemplateRequest.md) | | + **powerOutletRequest** | [**[]PowerOutletRequest**](PowerOutletRequest.md) | | ### Return type @@ -22285,9 +24345,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesBulkPartialUpdate +## DcimPowerOutletsBulkPartialUpdate -> []PowerOutletTemplate DcimPowerOutletTemplatesBulkPartialUpdate(ctx).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() +> []PowerOutlet DcimPowerOutletsBulkPartialUpdate(ctx).PowerOutletRequest(powerOutletRequest).Execute() @@ -22306,17 +24366,17 @@ import ( ) func main() { - powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate``: %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 `DcimPowerOutletTemplatesBulkPartialUpdate`: []PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate`: %v\n", resp) + // response from `DcimPowerOutletsBulkPartialUpdate`: []PowerOutlet + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkPartialUpdate`: %v\n", resp) } ``` @@ -22326,16 +24386,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerOutletTemplateRequest** | [**[]PowerOutletTemplateRequest**](PowerOutletTemplateRequest.md) | | + **powerOutletRequest** | [**[]PowerOutletRequest**](PowerOutletRequest.md) | | ### Return type -[**[]PowerOutletTemplate**](PowerOutletTemplate.md) +[**[]PowerOutlet**](PowerOutlet.md) ### Authorization @@ -22351,9 +24411,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesBulkUpdate +## DcimPowerOutletsBulkUpdate -> []PowerOutletTemplate DcimPowerOutletTemplatesBulkUpdate(ctx).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() +> []PowerOutlet DcimPowerOutletsBulkUpdate(ctx).PowerOutletRequest(powerOutletRequest).Execute() @@ -22372,17 +24432,17 @@ import ( ) func main() { - powerOutletTemplateRequest := []openapiclient.PowerOutletTemplateRequest{*openapiclient.NewPowerOutletTemplateRequest("Name_example")} // []PowerOutletTemplateRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkUpdate``: %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 `DcimPowerOutletTemplatesBulkUpdate`: []PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkUpdate`: %v\n", resp) + // response from `DcimPowerOutletsBulkUpdate`: []PowerOutlet + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkUpdate`: %v\n", resp) } ``` @@ -22392,16 +24452,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerOutletTemplateRequest** | [**[]PowerOutletTemplateRequest**](PowerOutletTemplateRequest.md) | | + **powerOutletRequest** | [**[]PowerOutletRequest**](PowerOutletRequest.md) | | ### Return type -[**[]PowerOutletTemplate**](PowerOutletTemplate.md) +[**[]PowerOutlet**](PowerOutlet.md) ### Authorization @@ -22417,9 +24477,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesCreate +## DcimPowerOutletsCreate -> PowerOutletTemplate DcimPowerOutletTemplatesCreate(ctx).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() +> PowerOutlet DcimPowerOutletsCreate(ctx).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() @@ -22438,17 +24498,17 @@ import ( ) func main() { - writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesCreate(context.Background()).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesCreate``: %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 `DcimPowerOutletTemplatesCreate`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesCreate`: %v\n", resp) + // response from `DcimPowerOutletsCreate`: PowerOutlet + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsCreate`: %v\n", resp) } ``` @@ -22458,16 +24518,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerOutletTemplateRequest** | [**WritablePowerOutletTemplateRequest**](WritablePowerOutletTemplateRequest.md) | | + **writablePowerOutletRequest** | [**WritablePowerOutletRequest**](WritablePowerOutletRequest.md) | | ### Return type -[**PowerOutletTemplate**](PowerOutletTemplate.md) +[**PowerOutlet**](PowerOutlet.md) ### Authorization @@ -22483,9 +24543,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesDestroy +## DcimPowerOutletsDestroy -> DcimPowerOutletTemplatesDestroy(ctx, id).Execute() +> DcimPowerOutletsDestroy(ctx, id).Execute() @@ -22504,13 +24564,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet template. + id := int32(56) // int32 | A unique integer value identifying this power outlet. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerOutletsDestroy(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.DcimPowerOutletsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -22522,11 +24582,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 power outlet template. | +**id** | **int32** | A unique integer value identifying this power outlet. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -22551,9 +24611,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesList +## DcimPowerOutletsList -> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).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).MarkConnected(markConnected).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -22573,6 +24633,22 @@ import ( ) func main() { + cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) + cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + cabled := true // bool | (optional) + color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) + colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + colorNiew := []string{"Inner_example"} // []string | (optional) + colorNisw := []string{"Inner_example"} // []string | (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) @@ -22592,12 +24668,40 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) - feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) + deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) + deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) + deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) + deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + feedLeg := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegEmpty := true // bool | (optional) + feedLegIc := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegIe := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegIew := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegIsw := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegN := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNic := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNie := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNiew := []*string{"Inner_example"} // []*string | Phase (for three-phase feeds) (optional) + feedLegNisw := []*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) @@ -22624,11 +24728,14 @@ func main() { 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 (ID) (optional) + locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + markConnected := 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) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) + moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -22640,24 +24747,56 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []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) powerPortId := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) powerPortIdN := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + rack := []string{"Inner_example"} // []string | Rack (name) (optional) + rackN := []string{"Inner_example"} // []string | Rack (name) (optional) + rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) + rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + type_ := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIe := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIsw := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeN := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNic := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNie := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNiew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNisw := []*string{"Inner_example"} // []*string | Physical port type (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) + 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) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).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).MarkConnected(markConnected).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %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 `DcimPowerOutletTemplatesList`: PaginatedPowerOutletTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesList`: %v\n", resp) + // response from `DcimPowerOutletsList`: PaginatedPowerOutletList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsList`: %v\n", resp) } ``` @@ -22667,11 +24806,27 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | + **cableId** | **[]int32** | Cable (ID) | + **cableIdN** | **[]int32** | Cable (ID) | + **cabled** | **bool** | | + **color** | **[]string** | | + **colorEmpty** | **bool** | | + **colorIc** | **[]string** | | + **colorIe** | **[]string** | | + **colorIew** | **[]string** | | + **colorIsw** | **[]string** | | + **colorN** | **[]string** | | + **colorNic** | **[]string** | | + **colorNie** | **[]string** | | + **colorNiew** | **[]string** | | + **colorNisw** | **[]string** | | + **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -22691,12 +24846,40 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | + **deviceType** | **[]string** | Device type (model) | + **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **feedLeg** | **[]string** | Phase (for three-phase feeds) | + **feedLegEmpty** | **bool** | | + **feedLegIc** | **[]string** | Phase (for three-phase feeds) | + **feedLegIe** | **[]string** | Phase (for three-phase feeds) | + **feedLegIew** | **[]string** | Phase (for three-phase feeds) | + **feedLegIsw** | **[]string** | Phase (for three-phase feeds) | **feedLegN** | **[]string** | Phase (for three-phase feeds) | + **feedLegNic** | **[]string** | Phase (for three-phase feeds) | + **feedLegNie** | **[]string** | Phase (for three-phase feeds) | + **feedLegNiew** | **[]string** | Phase (for three-phase feeds) | + **feedLegNisw** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -22723,11 +24906,14 @@ Name | Type | Description | Notes **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 (ID) | + **locationIdN** | **[]int32** | Location (ID) | + **markConnected** | **bool** | | **modifiedByRequest** | **string** | | - **moduleTypeId** | **[]int32** | Module type (ID) | - **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | + **moduleId** | **[]int32** | Module (ID) | + **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -22739,18 +24925,50 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | + **occupied** | **bool** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **powerPortId** | **[]int32** | Power port (ID) | **powerPortIdN** | **[]int32** | Power port (ID) | **q** | **string** | Search | - **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('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` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **rack** | **[]string** | Rack (name) | + **rackN** | **[]string** | Rack (name) | + **rackId** | **[]int32** | Rack (ID) | + **rackIdN** | **[]int32** | Rack (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site name (slug) | + **siteN** | **[]string** | Site name (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **type_** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | Physical port type | + **typeIe** | **[]string** | Physical port type | + **typeIew** | **[]string** | Physical port type | + **typeIsw** | **[]string** | Physical port type | + **typeN** | **[]string** | Physical port type | + **typeNic** | **[]string** | Physical port type | + **typeNie** | **[]string** | Physical port type | + **typeNiew** | **[]string** | Physical port type | + **typeNisw** | **[]string** | Physical port type | **updatedByRequest** | **string** | | + **virtualChassis** | **[]string** | Virtual Chassis | + **virtualChassisN** | **[]string** | Virtual Chassis | + **virtualChassisId** | **[]int32** | Virtual Chassis (ID) | + **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | ### Return type -[**PaginatedPowerOutletTemplateList**](PaginatedPowerOutletTemplateList.md) +[**PaginatedPowerOutletList**](PaginatedPowerOutletList.md) ### Authorization @@ -22766,9 +24984,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesPartialUpdate +## DcimPowerOutletsPartialUpdate -> PowerOutletTemplate DcimPowerOutletTemplatesPartialUpdate(ctx, id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute() +> PowerOutlet DcimPowerOutletsPartialUpdate(ctx, id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute() @@ -22787,18 +25005,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet template. - patchedWritablePowerOutletTemplateRequest := *openapiclient.NewPatchedWritablePowerOutletTemplateRequest() // PatchedWritablePowerOutletTemplateRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this power outlet. + patchedWritablePowerOutletRequest := *openapiclient.NewPatchedWritablePowerOutletRequest() // PatchedWritablePowerOutletRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesPartialUpdate``: %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 `DcimPowerOutletTemplatesPartialUpdate`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesPartialUpdate`: %v\n", resp) + // response from `DcimPowerOutletsPartialUpdate`: PowerOutlet + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsPartialUpdate`: %v\n", resp) } ``` @@ -22808,21 +25026,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 power outlet template. | +**id** | **int32** | A unique integer value identifying this power outlet. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritablePowerOutletTemplateRequest** | [**PatchedWritablePowerOutletTemplateRequest**](PatchedWritablePowerOutletTemplateRequest.md) | | + **patchedWritablePowerOutletRequest** | [**PatchedWritablePowerOutletRequest**](PatchedWritablePowerOutletRequest.md) | | ### Return type -[**PowerOutletTemplate**](PowerOutletTemplate.md) +[**PowerOutlet**](PowerOutlet.md) ### Authorization @@ -22838,9 +25056,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesRetrieve +## DcimPowerOutletsRetrieve -> PowerOutletTemplate DcimPowerOutletTemplatesRetrieve(ctx, id).Execute() +> PowerOutlet DcimPowerOutletsRetrieve(ctx, id).Execute() @@ -22859,17 +25077,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet template. + id := int32(56) // int32 | A unique integer value identifying this power outlet. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesRetrieve(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.DcimPowerOutletTemplatesRetrieve``: %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 `DcimPowerOutletTemplatesRetrieve`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesRetrieve`: %v\n", resp) + // response from `DcimPowerOutletsRetrieve`: PowerOutlet + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsRetrieve`: %v\n", resp) } ``` @@ -22879,11 +25097,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 power outlet template. | +**id** | **int32** | A unique integer value identifying this power outlet. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -22892,7 +25110,7 @@ Name | Type | Description | Notes ### Return type -[**PowerOutletTemplate**](PowerOutletTemplate.md) +[**PowerOutlet**](PowerOutlet.md) ### Authorization @@ -22908,9 +25126,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletTemplatesUpdate +## DcimPowerOutletsTraceRetrieve -> PowerOutletTemplate DcimPowerOutletTemplatesUpdate(ctx, id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() +> PowerOutlet DcimPowerOutletsTraceRetrieve(ctx, id).Execute() @@ -22929,18 +25147,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet template. - writablePowerOutletTemplateRequest := *openapiclient.NewWritablePowerOutletTemplateRequest("Name_example") // WritablePowerOutletTemplateRequest | + id := int32(56) // int32 | A unique integer value identifying this power outlet. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesUpdate``: %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 `DcimPowerOutletTemplatesUpdate`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesUpdate`: %v\n", resp) + // response from `DcimPowerOutletsTraceRetrieve`: PowerOutlet + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsTraceRetrieve`: %v\n", resp) } ``` @@ -22950,21 +25167,92 @@ 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 power outlet template. | +**id** | **int32** | A unique integer value identifying this power outlet. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerOutletsTraceRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerOutletTemplateRequest** | [**WritablePowerOutletTemplateRequest**](WritablePowerOutletTemplateRequest.md) | | ### Return type -[**PowerOutletTemplate**](PowerOutletTemplate.md) +[**PowerOutlet**](PowerOutlet.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) + + +## DcimPowerOutletsUpdate + +> PowerOutlet DcimPowerOutletsUpdate(ctx, id).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power outlet. + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerOutletsUpdate`: PowerOutlet + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsUpdate`: %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 power outlet. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerOutletsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writablePowerOutletRequest** | [**WritablePowerOutletRequest**](WritablePowerOutletRequest.md) | | + +### Return type + +[**PowerOutlet**](PowerOutlet.md) ### Authorization @@ -22980,9 +25268,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsBulkDestroy +## DcimPowerPanelsBulkDestroy -> DcimPowerOutletsBulkDestroy(ctx).PowerOutletRequest(powerOutletRequest).Execute() +> DcimPowerPanelsBulkDestroy(ctx).PowerPanelRequest(powerPanelRequest).Execute() @@ -23001,13 +25289,13 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerOutletsBulkDestroy(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerPanelsBulkDestroy(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkDestroy``: %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) } } @@ -23019,12 +25307,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerOutletRequest** | [**[]PowerOutletRequest**](PowerOutletRequest.md) | | + **powerPanelRequest** | [**[]PowerPanelRequest**](PowerPanelRequest.md) | | ### Return type @@ -23044,9 +25332,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsBulkPartialUpdate +## DcimPowerPanelsBulkPartialUpdate -> []PowerOutlet DcimPowerOutletsBulkPartialUpdate(ctx).PowerOutletRequest(powerOutletRequest).Execute() +> []PowerPanel DcimPowerPanelsBulkPartialUpdate(ctx).PowerPanelRequest(powerPanelRequest).Execute() @@ -23065,17 +25353,17 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkPartialUpdate``: %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 `DcimPowerOutletsBulkPartialUpdate`: []PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkPartialUpdate`: %v\n", resp) + // response from `DcimPowerPanelsBulkPartialUpdate`: []PowerPanel + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkPartialUpdate`: %v\n", resp) } ``` @@ -23085,16 +25373,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerOutletRequest** | [**[]PowerOutletRequest**](PowerOutletRequest.md) | | + **powerPanelRequest** | [**[]PowerPanelRequest**](PowerPanelRequest.md) | | ### Return type -[**[]PowerOutlet**](PowerOutlet.md) +[**[]PowerPanel**](PowerPanel.md) ### Authorization @@ -23110,9 +25398,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsBulkUpdate +## DcimPowerPanelsBulkUpdate -> []PowerOutlet DcimPowerOutletsBulkUpdate(ctx).PowerOutletRequest(powerOutletRequest).Execute() +> []PowerPanel DcimPowerPanelsBulkUpdate(ctx).PowerPanelRequest(powerPanelRequest).Execute() @@ -23131,17 +25419,17 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkUpdate``: %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 `DcimPowerOutletsBulkUpdate`: []PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkUpdate`: %v\n", resp) + // response from `DcimPowerPanelsBulkUpdate`: []PowerPanel + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkUpdate`: %v\n", resp) } ``` @@ -23151,16 +25439,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerOutletRequest** | [**[]PowerOutletRequest**](PowerOutletRequest.md) | | + **powerPanelRequest** | [**[]PowerPanelRequest**](PowerPanelRequest.md) | | ### Return type -[**[]PowerOutlet**](PowerOutlet.md) +[**[]PowerPanel**](PowerPanel.md) ### Authorization @@ -23176,9 +25464,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsCreate +## DcimPowerPanelsCreate -> PowerOutlet DcimPowerOutletsCreate(ctx).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() +> PowerPanel DcimPowerPanelsCreate(ctx).PowerPanelRequest(powerPanelRequest).Execute() @@ -23197,17 +25485,17 @@ import ( ) func main() { - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsCreate``: %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 `DcimPowerOutletsCreate`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsCreate`: %v\n", resp) + // response from `DcimPowerPanelsCreate`: PowerPanel + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsCreate`: %v\n", resp) } ``` @@ -23217,16 +25505,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerOutletRequest** | [**WritablePowerOutletRequest**](WritablePowerOutletRequest.md) | | + **powerPanelRequest** | [**PowerPanelRequest**](PowerPanelRequest.md) | | ### Return type -[**PowerOutlet**](PowerOutlet.md) +[**PowerPanel**](PowerPanel.md) ### Authorization @@ -23242,9 +25530,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsDestroy +## DcimPowerPanelsDestroy -> DcimPowerOutletsDestroy(ctx, id).Execute() +> DcimPowerPanelsDestroy(ctx, id).Execute() @@ -23263,13 +25551,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet. + id := int32(56) // int32 | A unique integer value identifying this power panel. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerOutletsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerPanelsDestroy(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.DcimPowerPanelsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -23281,11 +25569,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 power outlet. | +**id** | **int32** | A unique integer value identifying this power panel. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -23310,9 +25598,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsList +## DcimPowerPanelsList -> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).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() +> 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).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).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() @@ -23332,12 +25620,12 @@ import ( ) func main() { - cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - cabled := true // bool | (optional) - connected := true // bool | (optional) + contact := []int32{int32(123)} // []int32 | Contact (optional) + contactN := []int32{int32(123)} // []int32 | Contact (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) + 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) @@ -23357,16 +25645,6 @@ 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 | 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) - deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) - deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) - deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - 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) @@ -23374,17 +25652,6 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) - label := []string{"Inner_example"} // []string | (optional) - labelEmpty := true // bool | (optional) - labelIc := []string{"Inner_example"} // []string | (optional) - labelIe := []string{"Inner_example"} // []string | (optional) - labelIew := []string{"Inner_example"} // []string | (optional) - labelIsw := []string{"Inner_example"} // []string | (optional) - labelN := []string{"Inner_example"} // []string | (optional) - labelNic := []string{"Inner_example"} // []string | (optional) - labelNie := []string{"Inner_example"} // []string | (optional) - 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) @@ -23393,14 +25660,9 @@ func main() { 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 (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) - markConnected := true // bool | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (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) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -23412,51 +25674,34 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []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) - powerPortId := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) - powerPortIdN := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) q := "q_example" // string | Search (optional) - rack := []string{"Inner_example"} // []string | Rack (name) (optional) - rackN := []string{"Inner_example"} // []string | Rack (name) (optional) - rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) - rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) - 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) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).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() + 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).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).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.DcimPowerOutletsList``: %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 `DcimPowerOutletsList`: PaginatedPowerOutletList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsList`: %v\n", resp) + // response from `DcimPowerPanelsList`: PaginatedPowerPanelList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsList`: %v\n", resp) } ``` @@ -23466,17 +25711,17 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableId** | **[]int32** | Cable (ID) | - **cableIdN** | **[]int32** | Cable (ID) | - **cabled** | **bool** | | - **connected** | **bool** | | + **contact** | **[]int32** | Contact | + **contactN** | **[]int32** | Contact | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | + **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) | | @@ -23496,16 +25741,6 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **device** | **[]string** | Device (name) | - **deviceN** | **[]string** | Device (name) | - **deviceId** | **[]int32** | Device (ID) | - **deviceIdN** | **[]int32** | Device (ID) | - **deviceType** | **[]string** | Device type (model) | - **deviceTypeN** | **[]string** | Device type (model) | - **deviceTypeId** | **[]int32** | Device type (ID) | - **deviceTypeIdN** | **[]int32** | Device type (ID) | - **feedLeg** | **[]string** | Phase (for three-phase feeds) | - **feedLegN** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -23513,17 +25748,6 @@ Name | Type | Description | Notes **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**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -23532,14 +25756,9 @@ Name | Type | Description | Notes **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 (ID) | - **locationIdN** | **[]int32** | Location (ID) | - **markConnected** | **bool** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **modifiedByRequest** | **string** | | - **moduleId** | **[]int32** | Module (ID) | - **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -23551,45 +25770,28 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | - **occupied** | **bool** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **powerPortId** | **[]int32** | Power port (ID) | - **powerPortIdN** | **[]int32** | Power port (ID) | **q** | **string** | Search | - **rack** | **[]string** | Rack (name) | - **rackN** | **[]string** | Rack (name) | - **rackId** | **[]int32** | Rack (ID) | - **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **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) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | - **type_** | **[]string** | Physical port type | - **typeN** | **[]string** | Physical port type | **updatedByRequest** | **string** | | - **virtualChassis** | **[]string** | Virtual Chassis | - **virtualChassisN** | **[]string** | Virtual Chassis | - **virtualChassisId** | **[]int32** | Virtual Chassis (ID) | - **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | ### Return type -[**PaginatedPowerOutletList**](PaginatedPowerOutletList.md) +[**PaginatedPowerPanelList**](PaginatedPowerPanelList.md) ### Authorization @@ -23605,9 +25807,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsPartialUpdate +## DcimPowerPanelsPartialUpdate -> PowerOutlet DcimPowerOutletsPartialUpdate(ctx, id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute() +> PowerPanel DcimPowerPanelsPartialUpdate(ctx, id).PatchedPowerPanelRequest(patchedPowerPanelRequest).Execute() @@ -23626,18 +25828,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet. - patchedWritablePowerOutletRequest := *openapiclient.NewPatchedWritablePowerOutletRequest() // PatchedWritablePowerOutletRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this power panel. + patchedPowerPanelRequest := *openapiclient.NewPatchedPowerPanelRequest() // PatchedPowerPanelRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedPowerPanelRequest(patchedPowerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsPartialUpdate``: %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 `DcimPowerOutletsPartialUpdate`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsPartialUpdate`: %v\n", resp) + // response from `DcimPowerPanelsPartialUpdate`: PowerPanel + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsPartialUpdate`: %v\n", resp) } ``` @@ -23647,21 +25849,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 power outlet. | +**id** | **int32** | A unique integer value identifying this power panel. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritablePowerOutletRequest** | [**PatchedWritablePowerOutletRequest**](PatchedWritablePowerOutletRequest.md) | | + **patchedPowerPanelRequest** | [**PatchedPowerPanelRequest**](PatchedPowerPanelRequest.md) | | ### Return type -[**PowerOutlet**](PowerOutlet.md) +[**PowerPanel**](PowerPanel.md) ### Authorization @@ -23677,79 +25879,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsRetrieve - -> PowerOutlet DcimPowerOutletsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - 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, "Full HTTP response: %v\n", r) - } - // response from `DcimPowerOutletsRetrieve`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsRetrieve`: %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 power outlet. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimPowerOutletsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**PowerOutlet**](PowerOutlet.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) - - -## DcimPowerOutletsTraceRetrieve +## DcimPowerPanelsRetrieve -> PowerOutlet DcimPowerOutletsTraceRetrieve(ctx, id).Execute() +> PowerPanel DcimPowerPanelsRetrieve(ctx, id).Execute() @@ -23768,17 +25900,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet. + id := int32(56) // int32 | A unique integer value identifying this power panel. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(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.DcimPowerOutletsTraceRetrieve``: %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 `DcimPowerOutletsTraceRetrieve`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsTraceRetrieve`: %v\n", resp) + // response from `DcimPowerPanelsRetrieve`: PowerPanel + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsRetrieve`: %v\n", resp) } ``` @@ -23788,11 +25920,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 power outlet. | +**id** | **int32** | A unique integer value identifying this power panel. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsTraceRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -23801,7 +25933,7 @@ Name | Type | Description | Notes ### Return type -[**PowerOutlet**](PowerOutlet.md) +[**PowerPanel**](PowerPanel.md) ### Authorization @@ -23817,9 +25949,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerOutletsUpdate +## DcimPowerPanelsUpdate -> PowerOutlet DcimPowerOutletsUpdate(ctx, id).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() +> PowerPanel DcimPowerPanelsUpdate(ctx, id).PowerPanelRequest(powerPanelRequest).Execute() @@ -23838,18 +25970,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power outlet. - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + id := int32(56) // int32 | A unique integer value identifying this power panel. + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsUpdate(context.Background(), id).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsUpdate``: %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 `DcimPowerOutletsUpdate`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsUpdate`: %v\n", resp) + // response from `DcimPowerPanelsUpdate`: PowerPanel + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsUpdate`: %v\n", resp) } ``` @@ -23859,21 +25991,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 power outlet. | +**id** | **int32** | A unique integer value identifying this power panel. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerOutletsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPanelsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerOutletRequest** | [**WritablePowerOutletRequest**](WritablePowerOutletRequest.md) | | + **powerPanelRequest** | [**PowerPanelRequest**](PowerPanelRequest.md) | | ### Return type -[**PowerOutlet**](PowerOutlet.md) +[**PowerPanel**](PowerPanel.md) ### Authorization @@ -23889,9 +26021,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsBulkDestroy +## DcimPowerPortTemplatesBulkDestroy -> DcimPowerPanelsBulkDestroy(ctx).PowerPanelRequest(powerPanelRequest).Execute() +> DcimPowerPortTemplatesBulkDestroy(ctx).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() @@ -23910,13 +26042,13 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerPanelsBulkDestroy(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkDestroy(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkDestroy``: %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) } } @@ -23928,12 +26060,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPanelRequest** | [**[]PowerPanelRequest**](PowerPanelRequest.md) | | + **powerPortTemplateRequest** | [**[]PowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | ### Return type @@ -23953,9 +26085,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsBulkPartialUpdate +## DcimPowerPortTemplatesBulkPartialUpdate -> []PowerPanel DcimPowerPanelsBulkPartialUpdate(ctx).PowerPanelRequest(powerPanelRequest).Execute() +> []PowerPortTemplate DcimPowerPortTemplatesBulkPartialUpdate(ctx).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() @@ -23974,17 +26106,17 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkPartialUpdate``: %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 `DcimPowerPanelsBulkPartialUpdate`: []PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkPartialUpdate`: %v\n", resp) + // response from `DcimPowerPortTemplatesBulkPartialUpdate`: []PowerPortTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -23994,16 +26126,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPanelRequest** | [**[]PowerPanelRequest**](PowerPanelRequest.md) | | + **powerPortTemplateRequest** | [**[]PowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | ### Return type -[**[]PowerPanel**](PowerPanel.md) +[**[]PowerPortTemplate**](PowerPortTemplate.md) ### Authorization @@ -24019,9 +26151,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsBulkUpdate +## DcimPowerPortTemplatesBulkUpdate -> []PowerPanel DcimPowerPanelsBulkUpdate(ctx).PowerPanelRequest(powerPanelRequest).Execute() +> []PowerPortTemplate DcimPowerPortTemplatesBulkUpdate(ctx).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() @@ -24040,17 +26172,17 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkUpdate``: %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 `DcimPowerPanelsBulkUpdate`: []PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkUpdate`: %v\n", resp) + // response from `DcimPowerPortTemplatesBulkUpdate`: []PowerPortTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -24060,16 +26192,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPanelRequest** | [**[]PowerPanelRequest**](PowerPanelRequest.md) | | + **powerPortTemplateRequest** | [**[]PowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | ### Return type -[**[]PowerPanel**](PowerPanel.md) +[**[]PowerPortTemplate**](PowerPortTemplate.md) ### Authorization @@ -24085,9 +26217,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsCreate +## DcimPowerPortTemplatesCreate -> PowerPanel DcimPowerPanelsCreate(ctx).PowerPanelRequest(powerPanelRequest).Execute() +> PowerPortTemplate DcimPowerPortTemplatesCreate(ctx).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() @@ -24106,17 +26238,17 @@ import ( ) func main() { - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsCreate``: %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 `DcimPowerPanelsCreate`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsCreate`: %v\n", resp) + // response from `DcimPowerPortTemplatesCreate`: PowerPortTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesCreate`: %v\n", resp) } ``` @@ -24126,16 +26258,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPanelRequest** | [**PowerPanelRequest**](PowerPanelRequest.md) | | + **writablePowerPortTemplateRequest** | [**WritablePowerPortTemplateRequest**](WritablePowerPortTemplateRequest.md) | | ### Return type -[**PowerPanel**](PowerPanel.md) +[**PowerPortTemplate**](PowerPortTemplate.md) ### Authorization @@ -24151,9 +26283,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsDestroy +## DcimPowerPortTemplatesDestroy -> DcimPowerPanelsDestroy(ctx, id).Execute() +> DcimPowerPortTemplatesDestroy(ctx, id).Execute() @@ -24172,13 +26304,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power panel. + id := int32(56) // int32 | A unique integer value identifying this power port template. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerPanelsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortTemplatesDestroy(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.DcimPowerPortTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -24190,11 +26322,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 power panel. | +**id** | **int32** | A unique integer value identifying this power port template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -24219,9 +26351,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsList +## DcimPowerPortTemplatesList -> 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).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).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() +> 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).UpdatedByRequest(updatedByRequest).Execute() @@ -24241,12 +26373,13 @@ import ( ) func main() { - contact := []int32{int32(123)} // []int32 | Contact (optional) - contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) - contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) - contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) + 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) @@ -24266,6 +26399,8 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + 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) @@ -24273,6 +26408,17 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) + label := []string{"Inner_example"} // []string | (optional) + labelEmpty := true // bool | (optional) + labelIc := []string{"Inner_example"} // []string | (optional) + labelIe := []string{"Inner_example"} // []string | (optional) + labelIew := []string{"Inner_example"} // []string | (optional) + labelIsw := []string{"Inner_example"} // []string | (optional) + labelN := []string{"Inner_example"} // []string | (optional) + labelNic := []string{"Inner_example"} // []string | (optional) + labelNie := []string{"Inner_example"} // []string | (optional) + 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) @@ -24281,9 +26427,16 @@ func main() { 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) - 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) + moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -24298,31 +26451,18 @@ 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) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - 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) - tag := []string{"Inner_example"} // []string | (optional) - tagN := []string{"Inner_example"} // []string | (optional) + type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) 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).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).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() + 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).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.DcimPowerPortTemplatesList``: %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) + // response from `DcimPowerPortTemplatesList`: PaginatedPowerPortTemplateList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesList`: %v\n", resp) } ``` @@ -24332,17 +26472,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contact** | **[]int32** | Contact | - **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | - **contactRole** | **[]int32** | Contact Role | - **contactRoleN** | **[]int32** | Contact Role | + **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) | | @@ -24362,6 +26503,8 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **deviceTypeId** | **[]int32** | Device type (ID) | + **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -24369,6 +26512,17 @@ Name | Type | Description | Notes **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**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -24377,9 +26531,16 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **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** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -24394,25 +26555,12 @@ 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. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **site** | **[]string** | Site name (slug) | - **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | - **tag** | **[]string** | | - **tagN** | **[]string** | | + **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type -[**PaginatedPowerPanelList**](PaginatedPowerPanelList.md) +[**PaginatedPowerPortTemplateList**](PaginatedPowerPortTemplateList.md) ### Authorization @@ -24428,9 +26576,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsPartialUpdate +## DcimPowerPortTemplatesPartialUpdate -> PowerPanel DcimPowerPanelsPartialUpdate(ctx, id).PatchedPowerPanelRequest(patchedPowerPanelRequest).Execute() +> PowerPortTemplate DcimPowerPortTemplatesPartialUpdate(ctx, id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute() @@ -24449,18 +26597,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power panel. - patchedPowerPanelRequest := *openapiclient.NewPatchedPowerPanelRequest() // PatchedPowerPanelRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this power port template. + patchedWritablePowerPortTemplateRequest := *openapiclient.NewPatchedWritablePowerPortTemplateRequest() // PatchedWritablePowerPortTemplateRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedPowerPanelRequest(patchedPowerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsPartialUpdate``: %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 `DcimPowerPanelsPartialUpdate`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsPartialUpdate`: %v\n", resp) + // response from `DcimPowerPortTemplatesPartialUpdate`: PowerPortTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -24470,21 +26618,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 power panel. | +**id** | **int32** | A unique integer value identifying this power port template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedPowerPanelRequest** | [**PatchedPowerPanelRequest**](PatchedPowerPanelRequest.md) | | + **patchedWritablePowerPortTemplateRequest** | [**PatchedWritablePowerPortTemplateRequest**](PatchedWritablePowerPortTemplateRequest.md) | | ### Return type -[**PowerPanel**](PowerPanel.md) +[**PowerPortTemplate**](PowerPortTemplate.md) ### Authorization @@ -24500,9 +26648,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsRetrieve +## DcimPowerPortTemplatesRetrieve -> PowerPanel DcimPowerPanelsRetrieve(ctx, id).Execute() +> PowerPortTemplate DcimPowerPortTemplatesRetrieve(ctx, id).Execute() @@ -24521,17 +26669,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power panel. + id := int32(56) // int32 | A unique integer value identifying this power port template. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPanelsRetrieve(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.DcimPowerPanelsRetrieve``: %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 `DcimPowerPanelsRetrieve`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsRetrieve`: %v\n", resp) + // response from `DcimPowerPortTemplatesRetrieve`: PowerPortTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesRetrieve`: %v\n", resp) } ``` @@ -24541,11 +26689,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 power panel. | +**id** | **int32** | A unique integer value identifying this power port template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -24554,7 +26702,7 @@ Name | Type | Description | Notes ### Return type -[**PowerPanel**](PowerPanel.md) +[**PowerPortTemplate**](PowerPortTemplate.md) ### Authorization @@ -24570,9 +26718,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPanelsUpdate +## DcimPowerPortTemplatesUpdate -> PowerPanel DcimPowerPanelsUpdate(ctx, id).PowerPanelRequest(powerPanelRequest).Execute() +> PowerPortTemplate DcimPowerPortTemplatesUpdate(ctx, id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() @@ -24591,18 +26739,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power panel. - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + id := int32(56) // int32 | A unique integer value identifying this power port template. + writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).PowerPanelRequest(powerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsUpdate``: %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 `DcimPowerPanelsUpdate`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsUpdate`: %v\n", resp) + // response from `DcimPowerPortTemplatesUpdate`: PowerPortTemplate + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesUpdate`: %v\n", resp) } ``` @@ -24612,21 +26760,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 power panel. | +**id** | **int32** | A unique integer value identifying this power port template. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPanelsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPanelRequest** | [**PowerPanelRequest**](PowerPanelRequest.md) | | + **writablePowerPortTemplateRequest** | [**WritablePowerPortTemplateRequest**](WritablePowerPortTemplateRequest.md) | | ### Return type -[**PowerPanel**](PowerPanel.md) +[**PowerPortTemplate**](PowerPortTemplate.md) ### Authorization @@ -24642,9 +26790,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesBulkDestroy +## DcimPowerPortsBulkDestroy -> DcimPowerPortTemplatesBulkDestroy(ctx).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() +> DcimPowerPortsBulkDestroy(ctx).PowerPortRequest(powerPortRequest).Execute() @@ -24663,13 +26811,13 @@ import ( ) func main() { - powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkDestroy(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortsBulkDestroy(context.Background()).PowerPortRequest(powerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkDestroy``: %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) } } @@ -24681,12 +26829,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPortTemplateRequest** | [**[]PowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | + **powerPortRequest** | [**[]PowerPortRequest**](PowerPortRequest.md) | | ### Return type @@ -24706,9 +26854,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesBulkPartialUpdate +## DcimPowerPortsBulkPartialUpdate -> []PowerPortTemplate DcimPowerPortTemplatesBulkPartialUpdate(ctx).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() +> []PowerPort DcimPowerPortsBulkPartialUpdate(ctx).PowerPortRequest(powerPortRequest).Execute() @@ -24727,17 +26875,17 @@ import ( ) func main() { - powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate``: %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 `DcimPowerPortTemplatesBulkPartialUpdate`: []PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate`: %v\n", resp) + // response from `DcimPowerPortsBulkPartialUpdate`: []PowerPort + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkPartialUpdate`: %v\n", resp) } ``` @@ -24747,16 +26895,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPortTemplateRequest** | [**[]PowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | + **powerPortRequest** | [**[]PowerPortRequest**](PowerPortRequest.md) | | ### Return type -[**[]PowerPortTemplate**](PowerPortTemplate.md) +[**[]PowerPort**](PowerPort.md) ### Authorization @@ -24772,9 +26920,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesBulkUpdate +## DcimPowerPortsBulkUpdate -> []PowerPortTemplate DcimPowerPortTemplatesBulkUpdate(ctx).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() +> []PowerPort DcimPowerPortsBulkUpdate(ctx).PowerPortRequest(powerPortRequest).Execute() @@ -24793,17 +26941,17 @@ import ( ) func main() { - powerPortTemplateRequest := []openapiclient.PowerPortTemplateRequest{*openapiclient.NewPowerPortTemplateRequest("Name_example")} // []PowerPortTemplateRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkUpdate``: %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 `DcimPowerPortTemplatesBulkUpdate`: []PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkUpdate`: %v\n", resp) + // response from `DcimPowerPortsBulkUpdate`: []PowerPort + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkUpdate`: %v\n", resp) } ``` @@ -24813,16 +26961,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPortTemplateRequest** | [**[]PowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | + **powerPortRequest** | [**[]PowerPortRequest**](PowerPortRequest.md) | | ### Return type -[**[]PowerPortTemplate**](PowerPortTemplate.md) +[**[]PowerPort**](PowerPort.md) ### Authorization @@ -24838,9 +26986,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesCreate +## DcimPowerPortsCreate -> PowerPortTemplate DcimPowerPortTemplatesCreate(ctx).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() +> PowerPort DcimPowerPortsCreate(ctx).WritablePowerPortRequest(writablePowerPortRequest).Execute() @@ -24859,17 +27007,17 @@ import ( ) func main() { - writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).WritablePowerPortRequest(writablePowerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesCreate``: %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 `DcimPowerPortTemplatesCreate`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesCreate`: %v\n", resp) + // response from `DcimPowerPortsCreate`: PowerPort + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsCreate`: %v\n", resp) } ``` @@ -24879,16 +27027,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerPortTemplateRequest** | [**WritablePowerPortTemplateRequest**](WritablePowerPortTemplateRequest.md) | | + **writablePowerPortRequest** | [**WritablePowerPortRequest**](WritablePowerPortRequest.md) | | ### Return type -[**PowerPortTemplate**](PowerPortTemplate.md) +[**PowerPort**](PowerPort.md) ### Authorization @@ -24904,9 +27052,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesDestroy +## DcimPowerPortsDestroy -> DcimPowerPortTemplatesDestroy(ctx, id).Execute() +> DcimPowerPortsDestroy(ctx, id).Execute() @@ -24925,13 +27073,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port template. + id := int32(56) // int32 | A unique integer value identifying this power port. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerPortTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortsDestroy(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.DcimPowerPortsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -24943,11 +27091,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 power port template. | +**id** | **int32** | A unique integer value identifying this power port. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -24972,9 +27120,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesList +## DcimPowerPortsList -> 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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() +> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -25001,6 +27149,11 @@ func main() { allocatedDrawLt := []int32{int32(123)} // []int32 | (optional) allocatedDrawLte := []int32{int32(123)} // []int32 | (optional) allocatedDrawN := []int32{int32(123)} // []int32 | (optional) + cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) + cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) + 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) @@ -25020,10 +27173,29 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) + deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) + deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) + 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) @@ -25050,6 +27222,11 @@ func main() { 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 (ID) (optional) + locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + markConnected := true // bool | (optional) maximumDraw := []int32{int32(123)} // []int32 | (optional) maximumDrawEmpty := true // bool | (optional) maximumDrawGt := []int32{int32(123)} // []int32 | (optional) @@ -25058,10 +27235,8 @@ func main() { 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) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) + moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -25073,22 +27248,54 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []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) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + rack := []string{"Inner_example"} // []string | Rack (name) (optional) + rackN := []string{"Inner_example"} // []string | Rack (name) (optional) + rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) + rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + type_ := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIe := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeIsw := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeN := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNic := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNie := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNiew := []*string{"Inner_example"} // []*string | Physical port type (optional) + typeNisw := []*string{"Inner_example"} // []*string | Physical port type (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) + 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) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %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 `DcimPowerPortTemplatesList`: PaginatedPowerPortTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesList`: %v\n", resp) + // response from `DcimPowerPortsList`: PaginatedPowerPortList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsList`: %v\n", resp) } ``` @@ -25098,7 +27305,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsListRequest struct via the builder pattern Name | Type | Description | Notes @@ -25110,6 +27317,11 @@ Name | Type | Description | Notes **allocatedDrawLt** | **[]int32** | | **allocatedDrawLte** | **[]int32** | | **allocatedDrawN** | **[]int32** | | + **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | + **cableId** | **[]int32** | Cable (ID) | + **cableIdN** | **[]int32** | Cable (ID) | + **cabled** | **bool** | | + **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -25129,10 +27341,29 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | + **deviceType** | **[]string** | Device type (model) | + **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -25159,6 +27390,11 @@ Name | Type | Description | Notes **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 (ID) | + **locationIdN** | **[]int32** | Location (ID) | + **markConnected** | **bool** | | **maximumDraw** | **[]int32** | | **maximumDrawEmpty** | **bool** | | **maximumDrawGt** | **[]int32** | | @@ -25167,10 +27403,8 @@ Name | Type | Description | Notes **maximumDrawLte** | **[]int32** | | **maximumDrawN** | **[]int32** | | **modifiedByRequest** | **string** | | - **moduleTypeId** | **[]int32** | Module type (ID) | - **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | + **moduleId** | **[]int32** | Module (ID) | + **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -25182,16 +27416,48 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | + **occupied** | **bool** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('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` - [('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', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('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 (Locking)` - [('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')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('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` - [('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')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('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')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **rack** | **[]string** | Rack (name) | + **rackN** | **[]string** | Rack (name) | + **rackId** | **[]int32** | Rack (ID) | + **rackIdN** | **[]int32** | Rack (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site name (slug) | + **siteN** | **[]string** | Site name (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **type_** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | Physical port type | + **typeIe** | **[]string** | Physical port type | + **typeIew** | **[]string** | Physical port type | + **typeIsw** | **[]string** | Physical port type | + **typeN** | **[]string** | Physical port type | + **typeNic** | **[]string** | Physical port type | + **typeNie** | **[]string** | Physical port type | + **typeNiew** | **[]string** | Physical port type | + **typeNisw** | **[]string** | Physical port type | **updatedByRequest** | **string** | | + **virtualChassis** | **[]string** | Virtual Chassis | + **virtualChassisN** | **[]string** | Virtual Chassis | + **virtualChassisId** | **[]int32** | Virtual Chassis (ID) | + **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | ### Return type -[**PaginatedPowerPortTemplateList**](PaginatedPowerPortTemplateList.md) +[**PaginatedPowerPortList**](PaginatedPowerPortList.md) ### Authorization @@ -25207,9 +27473,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesPartialUpdate +## DcimPowerPortsPartialUpdate -> PowerPortTemplate DcimPowerPortTemplatesPartialUpdate(ctx, id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute() +> PowerPort DcimPowerPortsPartialUpdate(ctx, id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute() @@ -25228,18 +27494,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port template. - patchedWritablePowerPortTemplateRequest := *openapiclient.NewPatchedWritablePowerPortTemplateRequest() // PatchedWritablePowerPortTemplateRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this power port. + patchedWritablePowerPortRequest := *openapiclient.NewPatchedWritablePowerPortRequest() // PatchedWritablePowerPortRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesPartialUpdate``: %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 `DcimPowerPortTemplatesPartialUpdate`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesPartialUpdate`: %v\n", resp) + // response from `DcimPowerPortsPartialUpdate`: PowerPort + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsPartialUpdate`: %v\n", resp) } ``` @@ -25249,21 +27515,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 power port template. | +**id** | **int32** | A unique integer value identifying this power port. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritablePowerPortTemplateRequest** | [**PatchedWritablePowerPortTemplateRequest**](PatchedWritablePowerPortTemplateRequest.md) | | + **patchedWritablePowerPortRequest** | [**PatchedWritablePowerPortRequest**](PatchedWritablePowerPortRequest.md) | | ### Return type -[**PowerPortTemplate**](PowerPortTemplate.md) +[**PowerPort**](PowerPort.md) ### Authorization @@ -25279,9 +27545,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesRetrieve +## DcimPowerPortsRetrieve -> PowerPortTemplate DcimPowerPortTemplatesRetrieve(ctx, id).Execute() +> PowerPort DcimPowerPortsRetrieve(ctx, id).Execute() @@ -25300,17 +27566,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port template. + id := int32(56) // int32 | A unique integer value identifying this power port. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesRetrieve(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.DcimPowerPortTemplatesRetrieve``: %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 `DcimPowerPortTemplatesRetrieve`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesRetrieve`: %v\n", resp) + // response from `DcimPowerPortsRetrieve`: PowerPort + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsRetrieve`: %v\n", resp) } ``` @@ -25320,11 +27586,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 power port template. | +**id** | **int32** | A unique integer value identifying this power port. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -25333,7 +27599,7 @@ Name | Type | Description | Notes ### Return type -[**PowerPortTemplate**](PowerPortTemplate.md) +[**PowerPort**](PowerPort.md) ### Authorization @@ -25349,9 +27615,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortTemplatesUpdate +## DcimPowerPortsTraceRetrieve -> PowerPortTemplate DcimPowerPortTemplatesUpdate(ctx, id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() +> PowerPort DcimPowerPortsTraceRetrieve(ctx, id).Execute() @@ -25370,18 +27636,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port template. - writablePowerPortTemplateRequest := *openapiclient.NewWritablePowerPortTemplateRequest("Name_example") // WritablePowerPortTemplateRequest | + id := int32(56) // int32 | A unique integer value identifying this power port. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesUpdate``: %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 `DcimPowerPortTemplatesUpdate`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesUpdate`: %v\n", resp) + // response from `DcimPowerPortsTraceRetrieve`: PowerPort + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsTraceRetrieve`: %v\n", resp) } ``` @@ -25391,21 +27656,92 @@ 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 power port template. | +**id** | **int32** | A unique integer value identifying this power port. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimPowerPortsTraceRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerPortTemplateRequest** | [**WritablePowerPortTemplateRequest**](WritablePowerPortTemplateRequest.md) | | ### Return type -[**PowerPortTemplate**](PowerPortTemplate.md) +[**PowerPort**](PowerPort.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) + + +## DcimPowerPortsUpdate + +> PowerPort DcimPowerPortsUpdate(ctx, id).WritablePowerPortRequest(writablePowerPortRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this power port. + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `DcimPowerPortsUpdate`: PowerPort + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsUpdate`: %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 power port. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimPowerPortsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writablePowerPortRequest** | [**WritablePowerPortRequest**](WritablePowerPortRequest.md) | | + +### Return type + +[**PowerPort**](PowerPort.md) ### Authorization @@ -25421,9 +27757,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsBulkDestroy +## DcimRackReservationsBulkDestroy -> DcimPowerPortsBulkDestroy(ctx).PowerPortRequest(powerPortRequest).Execute() +> DcimRackReservationsBulkDestroy(ctx).RackReservationRequest(rackReservationRequest).Execute() @@ -25442,13 +27778,13 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerPortsBulkDestroy(context.Background()).PowerPortRequest(powerPortRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackReservationsBulkDestroy(context.Background()).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkDestroy``: %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) } } @@ -25460,12 +27796,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPortRequest** | [**[]PowerPortRequest**](PowerPortRequest.md) | | + **rackReservationRequest** | [**[]RackReservationRequest**](RackReservationRequest.md) | | ### Return type @@ -25485,9 +27821,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsBulkPartialUpdate +## DcimRackReservationsBulkPartialUpdate -> []PowerPort DcimPowerPortsBulkPartialUpdate(ctx).PowerPortRequest(powerPortRequest).Execute() +> []RackReservation DcimRackReservationsBulkPartialUpdate(ctx).RackReservationRequest(rackReservationRequest).Execute() @@ -25506,17 +27842,17 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkPartialUpdate``: %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 `DcimPowerPortsBulkPartialUpdate`: []PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkPartialUpdate`: %v\n", resp) + // response from `DcimRackReservationsBulkPartialUpdate`: []RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkPartialUpdate`: %v\n", resp) } ``` @@ -25526,16 +27862,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPortRequest** | [**[]PowerPortRequest**](PowerPortRequest.md) | | + **rackReservationRequest** | [**[]RackReservationRequest**](RackReservationRequest.md) | | ### Return type -[**[]PowerPort**](PowerPort.md) +[**[]RackReservation**](RackReservation.md) ### Authorization @@ -25551,9 +27887,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsBulkUpdate +## DcimRackReservationsBulkUpdate -> []PowerPort DcimPowerPortsBulkUpdate(ctx).PowerPortRequest(powerPortRequest).Execute() +> []RackReservation DcimRackReservationsBulkUpdate(ctx).RackReservationRequest(rackReservationRequest).Execute() @@ -25572,17 +27908,17 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkUpdate``: %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 `DcimPowerPortsBulkUpdate`: []PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkUpdate`: %v\n", resp) + // response from `DcimRackReservationsBulkUpdate`: []RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkUpdate`: %v\n", resp) } ``` @@ -25592,16 +27928,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **powerPortRequest** | [**[]PowerPortRequest**](PowerPortRequest.md) | | + **rackReservationRequest** | [**[]RackReservationRequest**](RackReservationRequest.md) | | ### Return type -[**[]PowerPort**](PowerPort.md) +[**[]RackReservation**](RackReservation.md) ### Authorization @@ -25617,9 +27953,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsCreate +## DcimRackReservationsCreate -> PowerPort DcimPowerPortsCreate(ctx).WritablePowerPortRequest(writablePowerPortRequest).Execute() +> RackReservation DcimRackReservationsCreate(ctx).RackReservationRequest(rackReservationRequest).Execute() @@ -25638,17 +27974,17 @@ import ( ) func main() { - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).WritablePowerPortRequest(writablePowerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsCreate``: %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 `DcimPowerPortsCreate`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsCreate`: %v\n", resp) + // response from `DcimRackReservationsCreate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsCreate`: %v\n", resp) } ``` @@ -25658,16 +27994,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerPortRequest** | [**WritablePowerPortRequest**](WritablePowerPortRequest.md) | | + **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | ### Return type -[**PowerPort**](PowerPort.md) +[**RackReservation**](RackReservation.md) ### Authorization @@ -25683,9 +28019,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsDestroy +## DcimRackReservationsDestroy -> DcimPowerPortsDestroy(ctx, id).Execute() +> DcimRackReservationsDestroy(ctx, id).Execute() @@ -25704,13 +28040,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port. + id := int32(56) // int32 | A unique integer value identifying this rack reservation. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimPowerPortsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackReservationsDestroy(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.DcimRackReservationsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -25722,11 +28058,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 power port. | +**id** | **int32** | A unique integer value identifying this rack reservation. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -25751,9 +28087,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsList +## DcimRackReservationsList -> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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() +> 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).Unit(unit).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() @@ -25773,19 +28109,6 @@ 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) - cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) - 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) @@ -25805,14 +28128,6 @@ 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 | 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) - deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) - deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) - 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) @@ -25820,17 +28135,6 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) - label := []string{"Inner_example"} // []string | (optional) - labelEmpty := true // bool | (optional) - labelIc := []string{"Inner_example"} // []string | (optional) - labelIe := []string{"Inner_example"} // []string | (optional) - labelIew := []string{"Inner_example"} // []string | (optional) - labelIsw := []string{"Inner_example"} // []string | (optional) - labelN := []string{"Inner_example"} // []string | (optional) - labelNic := []string{"Inner_example"} // []string | (optional) - labelNie := []string{"Inner_example"} // []string | (optional) - 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) @@ -25839,75 +28143,54 @@ func main() { 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 (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) - markConnected := true // bool | (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) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (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) - 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) - 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) q := "q_example" // string | Search (optional) - rack := []string{"Inner_example"} // []string | Rack (name) (optional) - rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) + tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + unit := float32(8.14) // float32 | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) - 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) + 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.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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() + 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).Unit(unit).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %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 `DcimPowerPortsList`: PaginatedPowerPortList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsList`: %v\n", resp) + // response from `DcimRackReservationsList`: PaginatedRackReservationList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsList`: %v\n", resp) } ``` @@ -25917,24 +28200,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **allocatedDraw** | **[]int32** | | - **allocatedDrawEmpty** | **bool** | | - **allocatedDrawGt** | **[]int32** | | - **allocatedDrawGte** | **[]int32** | | - **allocatedDrawLt** | **[]int32** | | - **allocatedDrawLte** | **[]int32** | | - **allocatedDrawN** | **[]int32** | | - **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableId** | **[]int32** | Cable (ID) | - **cableIdN** | **[]int32** | Cable (ID) | - **cabled** | **bool** | | - **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -25954,14 +28224,6 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **device** | **[]string** | Device (name) | - **deviceN** | **[]string** | Device (name) | - **deviceId** | **[]int32** | Device (ID) | - **deviceIdN** | **[]int32** | Device (ID) | - **deviceType** | **[]string** | Device type (model) | - **deviceTypeN** | **[]string** | Device type (model) | - **deviceTypeId** | **[]int32** | Device type (ID) | - **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -25969,17 +28231,6 @@ Name | Type | Description | Notes **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**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -25988,69 +28239,48 @@ Name | Type | Description | Notes **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 (ID) | - **locationIdN** | **[]int32** | Location (ID) | - **markConnected** | **bool** | | - **maximumDraw** | **[]int32** | | - **maximumDrawEmpty** | **bool** | | - **maximumDrawGt** | **[]int32** | | - **maximumDrawGte** | **[]int32** | | - **maximumDrawLt** | **[]int32** | | - **maximumDrawLte** | **[]int32** | | - **maximumDrawN** | **[]int32** | | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **modifiedByRequest** | **string** | | - **moduleId** | **[]int32** | Module (ID) | - **moduleIdN** | **[]int32** | Module (ID) | - **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** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **rack** | **[]string** | Rack (name) | - **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **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) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | - **type_** | **[]string** | Physical port type | - **typeN** | **[]string** | Physical port type | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **unit** | **float32** | | **updatedByRequest** | **string** | | - **virtualChassis** | **[]string** | Virtual Chassis | - **virtualChassisN** | **[]string** | Virtual Chassis | - **virtualChassisId** | **[]int32** | Virtual Chassis (ID) | - **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | ### Return type -[**PaginatedPowerPortList**](PaginatedPowerPortList.md) +[**PaginatedRackReservationList**](PaginatedRackReservationList.md) ### Authorization @@ -26066,9 +28296,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsPartialUpdate +## DcimRackReservationsPartialUpdate -> PowerPort DcimPowerPortsPartialUpdate(ctx, id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute() +> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() @@ -26087,18 +28317,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port. - patchedWritablePowerPortRequest := *openapiclient.NewPatchedWritablePowerPortRequest() // PatchedWritablePowerPortRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsPartialUpdate``: %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 `DcimPowerPortsPartialUpdate`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsPartialUpdate`: %v\n", resp) + // response from `DcimRackReservationsPartialUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) } ``` @@ -26108,21 +28338,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 power port. | +**id** | **int32** | A unique integer value identifying this rack reservation. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritablePowerPortRequest** | [**PatchedWritablePowerPortRequest**](PatchedWritablePowerPortRequest.md) | | + **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | ### Return type -[**PowerPort**](PowerPort.md) +[**RackReservation**](RackReservation.md) ### Authorization @@ -26138,79 +28368,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsRetrieve - -> PowerPort DcimPowerPortsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this power port. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - 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, "Full HTTP response: %v\n", r) - } - // response from `DcimPowerPortsRetrieve`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsRetrieve`: %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 power port. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimPowerPortsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**PowerPort**](PowerPort.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) - - -## DcimPowerPortsTraceRetrieve +## DcimRackReservationsRetrieve -> PowerPort DcimPowerPortsTraceRetrieve(ctx, id).Execute() +> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() @@ -26229,17 +28389,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port. + id := int32(56) // int32 | A unique integer value identifying this rack reservation. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(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.DcimPowerPortsTraceRetrieve``: %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 `DcimPowerPortsTraceRetrieve`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsTraceRetrieve`: %v\n", resp) + // response from `DcimRackReservationsRetrieve`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) } ``` @@ -26249,11 +28409,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 power port. | +**id** | **int32** | A unique integer value identifying this rack reservation. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsTraceRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -26262,7 +28422,7 @@ Name | Type | Description | Notes ### Return type -[**PowerPort**](PowerPort.md) +[**RackReservation**](RackReservation.md) ### Authorization @@ -26278,9 +28438,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimPowerPortsUpdate +## DcimRackReservationsUpdate -> PowerPort DcimPowerPortsUpdate(ctx, id).WritablePowerPortRequest(writablePowerPortRequest).Execute() +> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() @@ -26299,18 +28459,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this power port. - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsUpdate(context.Background(), id).WritablePowerPortRequest(writablePowerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsUpdate``: %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 `DcimPowerPortsUpdate`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsUpdate`: %v\n", resp) + // response from `DcimRackReservationsUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) } ``` @@ -26320,21 +28480,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 power port. | +**id** | **int32** | A unique integer value identifying this rack reservation. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimPowerPortsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writablePowerPortRequest** | [**WritablePowerPortRequest**](WritablePowerPortRequest.md) | | + **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | ### Return type -[**PowerPort**](PowerPort.md) +[**RackReservation**](RackReservation.md) ### Authorization @@ -26350,9 +28510,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsBulkDestroy +## DcimRackRolesBulkDestroy -> DcimRackReservationsBulkDestroy(ctx).RackReservationRequest(rackReservationRequest).Execute() +> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -26371,13 +28531,13 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackReservationsBulkDestroy(context.Background()).RackReservationRequest(rackReservationRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkDestroy``: %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) } } @@ -26389,12 +28549,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackReservationRequest** | [**[]RackReservationRequest**](RackReservationRequest.md) | | + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | ### Return type @@ -26414,9 +28574,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsBulkPartialUpdate +## DcimRackRolesBulkPartialUpdate -> []RackReservation DcimRackReservationsBulkPartialUpdate(ctx).RackReservationRequest(rackReservationRequest).Execute() +> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -26435,17 +28595,17 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkPartialUpdate``: %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 `DcimRackReservationsBulkPartialUpdate`: []RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkPartialUpdate`: %v\n", resp) + // response from `DcimRackRolesBulkPartialUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) } ``` @@ -26455,16 +28615,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackReservationRequest** | [**[]RackReservationRequest**](RackReservationRequest.md) | | + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**[]RackReservation**](RackReservation.md) +[**[]RackRole**](RackRole.md) ### Authorization @@ -26480,9 +28640,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsBulkUpdate +## DcimRackRolesBulkUpdate -> []RackReservation DcimRackReservationsBulkUpdate(ctx).RackReservationRequest(rackReservationRequest).Execute() +> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -26501,17 +28661,17 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkUpdate``: %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 `DcimRackReservationsBulkUpdate`: []RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkUpdate`: %v\n", resp) + // response from `DcimRackRolesBulkUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) } ``` @@ -26521,16 +28681,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackReservationRequest** | [**[]RackReservationRequest**](RackReservationRequest.md) | | + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**[]RackReservation**](RackReservation.md) +[**[]RackRole**](RackRole.md) ### Authorization @@ -26546,9 +28706,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsCreate +## DcimRackRolesCreate -> RackReservation DcimRackReservationsCreate(ctx).RackReservationRequest(rackReservationRequest).Execute() +> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -26567,17 +28727,17 @@ import ( ) func main() { - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsCreate``: %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 `DcimRackReservationsCreate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsCreate`: %v\n", resp) + // response from `DcimRackRolesCreate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) } ``` @@ -26587,16 +28747,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -26612,9 +28772,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsDestroy +## DcimRackRolesDestroy -> DcimRackReservationsDestroy(ctx, id).Execute() +> DcimRackRolesDestroy(ctx, id).Execute() @@ -26633,13 +28793,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. + id := int32(56) // int32 | A unique integer value identifying this rack role. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackReservationsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackRolesDestroy(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.DcimRackRolesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -26651,11 +28811,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 rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -26680,9 +28840,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsList +## DcimRackRolesList -> 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).Unit(unit).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).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() @@ -26702,6 +28862,17 @@ import ( ) func main() { + color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) + colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + 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) @@ -26736,54 +28907,45 @@ func main() { 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 := []int32{int32(123)} // []int32 | Location (slug) (optional) - 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) + 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) - rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) - rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - site := []string{"Inner_example"} // []string | Site (slug) (optional) - siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - 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) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_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) - unit := float32(8.14) // float32 | (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.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).Unit(unit).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).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.DcimRackReservationsList``: %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 `DcimRackReservationsList`: PaginatedRackReservationList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsList`: %v\n", resp) + // response from `DcimRackRolesList`: PaginatedRackRoleList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) } ``` @@ -26793,11 +28955,22 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **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**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -26832,48 +29005,39 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | **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. | **q** | **string** | Search | - **rackId** | **[]int32** | Rack (ID) | - **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **site** | **[]string** | Site (slug) | - **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | + **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** | 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) | - **unit** | **float32** | | **updatedByRequest** | **string** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | ### Return type -[**PaginatedRackReservationList**](PaginatedRackReservationList.md) +[**PaginatedRackRoleList**](PaginatedRackRoleList.md) ### Authorization @@ -26889,9 +29053,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsPartialUpdate +## DcimRackRolesPartialUpdate -> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() +> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() @@ -26910,18 +29074,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack role. + patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %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 `DcimRackReservationsPartialUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) + // response from `DcimRackRolesPartialUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) } ``` @@ -26931,21 +29095,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 rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | + **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -26961,9 +29125,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsRetrieve +## DcimRackRolesRetrieve -> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() +> RackRole DcimRackRolesRetrieve(ctx, id).Execute() @@ -26982,17 +29146,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. + id := int32(56) // int32 | A unique integer value identifying this rack role. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(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.DcimRackReservationsRetrieve``: %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 `DcimRackReservationsRetrieve`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) + // response from `DcimRackRolesRetrieve`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) } ``` @@ -27002,11 +29166,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 rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -27015,7 +29179,7 @@ Name | Type | Description | Notes ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -27031,9 +29195,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsUpdate +## DcimRackRolesUpdate -> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() +> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() @@ -27052,18 +29216,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + id := int32(56) // int32 | A unique integer value identifying this rack role. + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %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 `DcimRackReservationsUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) + // response from `DcimRackRolesUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) } ``` @@ -27073,21 +29237,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 rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -27103,9 +29267,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkDestroy +## DcimRackTypesBulkDestroy -> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() +> DcimRackTypesBulkDestroy(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27124,13 +29288,13 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesBulkDestroy(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27142,12 +29306,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type @@ -27167,9 +29331,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkPartialUpdate +## DcimRackTypesBulkPartialUpdate -> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> []RackType DcimRackTypesBulkPartialUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27188,17 +29352,17 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkPartialUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkPartialUpdate``: %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) + // response from `DcimRackTypesBulkPartialUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -27208,16 +29372,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]RackRole**](RackRole.md) +[**[]RackType**](RackType.md) ### Authorization @@ -27233,9 +29397,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkUpdate +## DcimRackTypesBulkUpdate -> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> []RackType DcimRackTypesBulkUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27254,17 +29418,17 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkUpdate``: %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) + // response from `DcimRackTypesBulkUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkUpdate`: %v\n", resp) } ``` @@ -27274,16 +29438,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]RackRole**](RackRole.md) +[**[]RackType**](RackType.md) ### Authorization @@ -27299,9 +29463,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesCreate +## DcimRackTypesCreate -> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> RackType DcimRackTypesCreate(ctx).WritableRackTypeRequest(writableRackTypeRequest).Execute() @@ -27320,17 +29484,17 @@ import ( ) func main() { - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesCreate(context.Background()).WritableRackTypeRequest(writableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesCreate``: %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) + // response from `DcimRackTypesCreate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesCreate`: %v\n", resp) } ``` @@ -27340,16 +29504,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27365,9 +29529,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesDestroy +## DcimRackTypesDestroy -> DcimRackRolesDestroy(ctx, id).Execute() +> DcimRackTypesDestroy(ctx, id).Execute() @@ -27386,13 +29550,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. + id := int32(56) // int32 | A unique integer value identifying this rack type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesDestroy(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.DcimRackTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27404,11 +29568,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 rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -27433,9 +29597,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesList +## DcimRackTypesList -> 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() +> PaginatedRackTypeList DcimRackTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).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).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).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).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() @@ -27455,17 +29619,6 @@ import ( ) func main() { - color := []string{"Inner_example"} // []string | (optional) - colorEmpty := true // bool | (optional) - colorIc := []string{"Inner_example"} // []string | (optional) - colorIe := []string{"Inner_example"} // []string | (optional) - colorIew := []string{"Inner_example"} // []string | (optional) - colorIsw := []string{"Inner_example"} // []string | (optional) - colorN := []string{"Inner_example"} // []string | (optional) - colorNic := []string{"Inner_example"} // []string | (optional) - colorNie := []string{"Inner_example"} // []string | (optional) - 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) @@ -27474,6 +29627,7 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + descUnits := true // bool | (optional) description := []string{"Inner_example"} // []string | (optional) descriptionEmpty := true // bool | (optional) descriptionIc := []string{"Inner_example"} // []string | (optional) @@ -27485,6 +29639,17 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []string{"Inner_example"} // []string | (optional) + formFactorEmpty := true // bool | (optional) + formFactorIc := []string{"Inner_example"} // []string | (optional) + formFactorIe := []string{"Inner_example"} // []string | (optional) + formFactorIew := []string{"Inner_example"} // []string | (optional) + formFactorIsw := []string{"Inner_example"} // []string | (optional) + formFactorN := []string{"Inner_example"} // []string | (optional) + formFactorNic := []string{"Inner_example"} // []string | (optional) + formFactorNie := []string{"Inner_example"} // []string | (optional) + formFactorNiew := []string{"Inner_example"} // []string | (optional) + formFactorNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -27500,20 +29665,53 @@ func main() { 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) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (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) + model := []string{"Inner_example"} // []string | (optional) + modelEmpty := true // bool | (optional) + modelIc := []string{"Inner_example"} // []string | (optional) + modelIe := []string{"Inner_example"} // []string | (optional) + modelIew := []string{"Inner_example"} // []string | (optional) + modelIsw := []string{"Inner_example"} // []string | (optional) + modelN := []string{"Inner_example"} // []string | (optional) + modelNic := []string{"Inner_example"} // []string | (optional) + 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) - 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) + 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) + mountingDepthLte := []int32{int32(123)} // []int32 | (optional) + mountingDepthN := []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) + 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) + outerDepthLte := []int32{int32(123)} // []int32 | (optional) + outerDepthN := []int32{int32(123)} // []int32 | (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (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) + outerWidthLte := []int32{int32(123)} // []int32 | (optional) + outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) @@ -27526,19 +29724,51 @@ func main() { slugNie := []string{"Inner_example"} // []string | (optional) slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (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) tag := []string{"Inner_example"} // []string | (optional) tagN := []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) + uHeightLte := []int32{int32(123)} // []int32 | (optional) + 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) + weightLte := []float64{float64(123)} // []float64 | (optional) + weightN := []float64{float64(123)} // []float64 | (optional) + weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) + width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIc := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIe := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIew := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIsw := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNic := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNie := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNiew := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNisw := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) 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).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() + resp, r, err := apiClient.DcimAPI.DcimRackTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).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).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).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).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesList``: %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) + // response from `DcimRackTypesList`: PaginatedRackTypeList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesList`: %v\n", resp) } ``` @@ -27548,22 +29778,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **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**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -27572,6 +29791,7 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | + **descUnits** | **bool** | | **description** | **[]string** | | **descriptionEmpty** | **bool** | | **descriptionIc** | **[]string** | | @@ -27583,6 +29803,17 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorEmpty** | **bool** | | + **formFactorIc** | **[]string** | | + **formFactorIe** | **[]string** | | + **formFactorIew** | **[]string** | | + **formFactorIsw** | **[]string** | | + **formFactorN** | **[]string** | | + **formFactorNic** | **[]string** | | + **formFactorNie** | **[]string** | | + **formFactorNiew** | **[]string** | | + **formFactorNisw** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -27598,20 +29829,53 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **maxWeight** | **[]int32** | | + **maxWeightEmpty** | **bool** | | + **maxWeightGt** | **[]int32** | | + **maxWeightGte** | **[]int32** | | + **maxWeightLt** | **[]int32** | | + **maxWeightLte** | **[]int32** | | + **maxWeightN** | **[]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** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | + **mountingDepth** | **[]int32** | | + **mountingDepthEmpty** | **bool** | | + **mountingDepthGt** | **[]int32** | | + **mountingDepthGte** | **[]int32** | | + **mountingDepthLt** | **[]int32** | | + **mountingDepthLte** | **[]int32** | | + **mountingDepthN** | **[]int32** | | **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** | | + **outerDepthLte** | **[]int32** | | + **outerDepthN** | **[]int32** | | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerWidth** | **[]int32** | | + **outerWidthEmpty** | **bool** | | + **outerWidthGt** | **[]int32** | | + **outerWidthGte** | **[]int32** | | + **outerWidthLt** | **[]int32** | | + **outerWidthLte** | **[]int32** | | + **outerWidthN** | **[]int32** | | **q** | **string** | Search | **slug** | **[]string** | | **slugEmpty** | **bool** | | @@ -27624,13 +29888,45 @@ Name | Type | Description | Notes **slugNie** | **[]string** | | **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | + **startingUnit** | **[]int32** | | + **startingUnitEmpty** | **bool** | | + **startingUnitGt** | **[]int32** | | + **startingUnitGte** | **[]int32** | | + **startingUnitLt** | **[]int32** | | + **startingUnitLte** | **[]int32** | | + **startingUnitN** | **[]int32** | | **tag** | **[]string** | | **tagN** | **[]string** | | + **uHeight** | **[]int32** | | + **uHeightEmpty** | **bool** | | + **uHeightGt** | **[]int32** | | + **uHeightGte** | **[]int32** | | + **uHeightLt** | **[]int32** | | + **uHeightLte** | **[]int32** | | + **uHeightN** | **[]int32** | | **updatedByRequest** | **string** | | + **weight** | **[]float64** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]float64** | | + **weightGte** | **[]float64** | | + **weightLt** | **[]float64** | | + **weightLte** | **[]float64** | | + **weightN** | **[]float64** | | + **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | + **width** | **[]int32** | Rail-to-rail width | + **widthIc** | **[]int32** | Rail-to-rail width | + **widthIe** | **[]int32** | Rail-to-rail width | + **widthIew** | **[]int32** | Rail-to-rail width | + **widthIsw** | **[]int32** | Rail-to-rail width | + **widthN** | **[]int32** | Rail-to-rail width | + **widthNic** | **[]int32** | Rail-to-rail width | + **widthNie** | **[]int32** | Rail-to-rail width | + **widthNiew** | **[]int32** | Rail-to-rail width | + **widthNisw** | **[]int32** | Rail-to-rail width | ### Return type -[**PaginatedRackRoleList**](PaginatedRackRoleList.md) +[**PaginatedRackTypeList**](PaginatedRackTypeList.md) ### Authorization @@ -27646,9 +29942,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesPartialUpdate +## DcimRackTypesPartialUpdate -> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() +> RackType DcimRackTypesPartialUpdate(ctx, id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() @@ -27667,18 +29963,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack type. + patchedWritableRackTypeRequest := *openapiclient.NewPatchedWritableRackTypeRequest() // PatchedWritableRackTypeRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesPartialUpdate(context.Background(), id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesPartialUpdate``: %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) + // response from `DcimRackTypesPartialUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesPartialUpdate`: %v\n", resp) } ``` @@ -27688,21 +29984,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 rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | + **patchedWritableRackTypeRequest** | [**PatchedWritableRackTypeRequest**](PatchedWritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27718,9 +30014,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesRetrieve +## DcimRackTypesRetrieve -> RackRole DcimRackRolesRetrieve(ctx, id).Execute() +> RackType DcimRackTypesRetrieve(ctx, id).Execute() @@ -27739,17 +30035,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. + id := int32(56) // int32 | A unique integer value identifying this rack type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesRetrieve(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.DcimRackTypesRetrieve``: %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) + // response from `DcimRackTypesRetrieve`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesRetrieve`: %v\n", resp) } ``` @@ -27759,11 +30055,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 rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -27772,7 +30068,7 @@ Name | Type | Description | Notes ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27788,9 +30084,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesUpdate +## DcimRackTypesUpdate -> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() +> RackType DcimRackTypesUpdate(ctx, id).WritableRackTypeRequest(writableRackTypeRequest).Execute() @@ -27809,18 +30105,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + id := int32(56) // int32 | A unique integer value identifying this rack type. + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesUpdate(context.Background(), id).WritableRackTypeRequest(writableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesUpdate``: %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) + // response from `DcimRackTypesUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesUpdate`: %v\n", resp) } ``` @@ -27830,21 +30126,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 rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27881,7 +30177,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -27945,7 +30241,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28011,7 +30307,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28077,7 +30373,7 @@ import ( ) func main() { - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28286,7 +30582,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).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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() +> PaginatedRackList DcimRacksList(ctx).Airflow(airflow).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).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).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).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).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).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).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() @@ -28306,6 +30602,7 @@ import ( ) func main() { + airflow := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) assetTag := []string{"Inner_example"} // []string | (optional) assetTagEmpty := true // bool | (optional) assetTagIc := []string{"Inner_example"} // []string | (optional) @@ -28319,8 +30616,8 @@ func main() { assetTagNisw := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -28354,6 +30651,17 @@ func main() { facilityIdNie := []string{"Inner_example"} // []string | (optional) facilityIdNiew := []string{"Inner_example"} // []string | (optional) facilityIdNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []*string{"Inner_example"} // []*string | (optional) + formFactorEmpty := true // bool | (optional) + formFactorIc := []*string{"Inner_example"} // []*string | (optional) + formFactorIe := []*string{"Inner_example"} // []*string | (optional) + formFactorIew := []*string{"Inner_example"} // []*string | (optional) + formFactorIsw := []*string{"Inner_example"} // []*string | (optional) + formFactorN := []*string{"Inner_example"} // []*string | (optional) + formFactorNic := []*string{"Inner_example"} // []*string | (optional) + formFactorNie := []*string{"Inner_example"} // []*string | (optional) + formFactorNiew := []*string{"Inner_example"} // []*string | (optional) + formFactorNisw := []*string{"Inner_example"} // []*string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -28369,10 +30677,14 @@ func main() { 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 := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) maxWeight := []int32{int32(123)} // []int32 | (optional) maxWeightEmpty := true // bool | (optional) maxWeightGt := []int32{int32(123)} // []int32 | (optional) @@ -28408,8 +30720,7 @@ func main() { outerDepthLt := []int32{int32(123)} // []int32 | (optional) outerDepthLte := []int32{int32(123)} // []int32 | (optional) outerDepthN := []int32{int32(123)} // []int32 | (optional) - outerUnit := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) - outerUnitN := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) outerWidth := []int32{int32(123)} // []int32 | (optional) outerWidthEmpty := true // bool | (optional) outerWidthGt := []int32{int32(123)} // []int32 | (optional) @@ -28418,10 +30729,14 @@ func main() { outerWidthLte := []int32{int32(123)} // []int32 | (optional) outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + rackType := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeN := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeId := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + rackTypeIdN := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -28439,10 +30754,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) startingUnit := []int32{int32(123)} // []int32 | (optional) @@ -28453,19 +30768,26 @@ func main() { startingUnitLte := []int32{int32(123)} // []int32 | (optional) startingUnitN := []int32{int32(123)} // []int32 | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) - 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) @@ -28482,13 +30804,20 @@ func main() { weightLte := []float64{float64(123)} // []float64 | (optional) weightN := []float64{float64(123)} // []float64 | (optional) weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIc := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIe := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIew := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIsw := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNic := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNie := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNiew := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthNisw := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) 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).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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() + resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Airflow(airflow).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).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).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).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).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).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).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -28509,6 +30838,7 @@ Other parameters are passed through a pointer to a apiDcimRacksListRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **airflow** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | **assetTag** | **[]string** | | **assetTagEmpty** | **bool** | | **assetTagIc** | **[]string** | | @@ -28522,8 +30852,8 @@ Name | Type | Description | Notes **assetTagNisw** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -28557,6 +30887,17 @@ Name | Type | Description | Notes **facilityIdNie** | **[]string** | | **facilityIdNiew** | **[]string** | | **facilityIdNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorEmpty** | **bool** | | + **formFactorIc** | **[]string** | | + **formFactorIe** | **[]string** | | + **formFactorIew** | **[]string** | | + **formFactorIsw** | **[]string** | | + **formFactorN** | **[]string** | | + **formFactorNic** | **[]string** | | + **formFactorNie** | **[]string** | | + **formFactorNiew** | **[]string** | | + **formFactorNisw** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -28572,10 +30913,14 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **maxWeight** | **[]int32** | | **maxWeightEmpty** | **bool** | | **maxWeightGt** | **[]int32** | | @@ -28611,8 +30956,7 @@ Name | Type | Description | Notes **outerDepthLt** | **[]int32** | | **outerDepthLte** | **[]int32** | | **outerDepthN** | **[]int32** | | - **outerUnit** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | - **outerUnitN** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | **outerWidth** | **[]int32** | | **outerWidthEmpty** | **bool** | | **outerWidthGt** | **[]int32** | | @@ -28621,10 +30965,14 @@ Name | Type | Description | Notes **outerWidthLte** | **[]int32** | | **outerWidthN** | **[]int32** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **rackType** | **[]string** | Rack type (slug) | + **rackTypeN** | **[]string** | Rack type (slug) | + **rackTypeId** | **[]int32** | Rack type (ID) | + **rackTypeIdN** | **[]int32** | Rack type (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -28642,10 +30990,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **startingUnit** | **[]int32** | | @@ -28656,19 +31004,26 @@ Name | Type | Description | Notes **startingUnitLte** | **[]int32** | | **startingUnitN** | **[]int32** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | - **type_** | **[]string** | | - **typeN** | **[]string** | | **uHeight** | **[]int32** | | **uHeightEmpty** | **bool** | | **uHeightGt** | **[]int32** | | @@ -28685,9 +31040,16 @@ Name | Type | Description | Notes **weightLte** | **[]float64** | | **weightN** | **[]float64** | | **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | **width** | **[]int32** | Rail-to-rail width | + **widthIc** | **[]int32** | Rail-to-rail width | + **widthIe** | **[]int32** | Rail-to-rail width | + **widthIew** | **[]int32** | Rail-to-rail width | + **widthIsw** | **[]int32** | Rail-to-rail width | **widthN** | **[]int32** | Rail-to-rail width | + **widthNic** | **[]int32** | Rail-to-rail width | + **widthNie** | **[]int32** | Rail-to-rail width | + **widthNiew** | **[]int32** | Rail-to-rail width | + **widthNisw** | **[]int32** | Rail-to-rail width | ### Return type @@ -28871,7 +31233,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rack. - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28942,7 +31304,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29006,7 +31368,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29072,7 +31434,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29253,7 +31615,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).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).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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() +> 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -29305,8 +31667,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - 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) @@ -29336,8 +31696,6 @@ func main() { 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) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -29360,12 +31718,21 @@ func main() { positionsN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []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.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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).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).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).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() + 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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).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).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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -29418,8 +31785,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -29449,8 +31814,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -29473,7 +31836,16 @@ Name | Type | Description | Notes **positionsN** | **[]int32** | | **q** | **string** | Search | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | ### Return type @@ -29729,7 +32101,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29793,7 +32165,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29859,7 +32231,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29925,7 +32297,7 @@ import ( ) func main() { - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30040,7 +32412,7 @@ Name | Type | Description | Notes ## DcimRearPortsList -> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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() +> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -30061,7 +32433,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -30099,6 +32470,21 @@ func main() { 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) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []string{"Inner_example"} // []string | (optional) + deviceStatusIe := []string{"Inner_example"} // []string | (optional) + deviceStatusIew := []string{"Inner_example"} // []string | (optional) + deviceStatusIsw := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) + deviceStatusNic := []string{"Inner_example"} // []string | (optional) + deviceStatusNie := []string{"Inner_example"} // []string | (optional) + deviceStatusNiew := []string{"Inner_example"} // []string | (optional) + deviceStatusNisw := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -30163,26 +32549,31 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - 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) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -30191,7 +32582,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).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).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).MarkConnected(markConnected).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() + resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).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).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).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).MarkConnected(markConnected).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).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).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, "Full HTTP response: %v\n", r) @@ -30213,7 +32604,6 @@ Other parameters are passed through a pointer to a apiDcimRearPortsListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -30251,6 +32641,21 @@ Name | Type | Description | Notes **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) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | **[]string** | | + **deviceStatusIe** | **[]string** | | + **deviceStatusIew** | **[]string** | | + **deviceStatusIsw** | **[]string** | | + **deviceStatusN** | **[]string** | | + **deviceStatusNic** | **[]string** | | + **deviceStatusNie** | **[]string** | | + **deviceStatusNiew** | **[]string** | | + **deviceStatusNisw** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -30315,26 +32720,31 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **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) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -30593,7 +33003,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rear port. - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30860,7 +33270,7 @@ import ( ) func main() { - writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableRegionRequest | + writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30995,14 +33405,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Region (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31096,14 +33506,14 @@ Other parameters are passed through a pointer to a apiDcimRegionsListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Region (slug) | - **ancestorN** | **[]int32** | Region (slug) | - **ancestorId** | **[]int32** | Region (ID) | - **ancestorIdN** | **[]int32** | Region (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -31356,7 +33766,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this region. - writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableRegionRequest | + writableRegionRequest := *openapiclient.NewWritableRegionRequest("Name_example", "Slug_example") // WritableRegionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -31623,7 +34033,7 @@ import ( ) func main() { - writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableSiteGroupRequest | + writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -31758,14 +34168,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31859,14 +34269,14 @@ Other parameters are passed through a pointer to a apiDcimSiteGroupsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Site group (slug) | - **ancestorN** | **[]int32** | Site group (slug) | - **ancestorId** | **[]int32** | Site group (ID) | - **ancestorIdN** | **[]int32** | Site group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32119,7 +34529,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this site group. - writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableSiteGroupRequest | + writableSiteGroupRequest := *openapiclient.NewWritableSiteGroupRequest("Name_example", "Slug_example") // WritableSiteGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -32501,7 +34911,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).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).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -32527,8 +34937,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | AS (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -32561,10 +34971,10 @@ func main() { facilityNie := []string{"Inner_example"} // []string | (optional) facilityNiew := []string{"Inner_example"} // []string | (optional) facilityNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -32609,10 +35019,10 @@ 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) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -32625,15 +35035,24 @@ func main() { slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) timeZone := []string{"Inner_example"} // []string | (optional) @@ -32650,7 +35069,7 @@ 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).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).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -32677,8 +35096,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | AS (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32711,10 +35130,10 @@ Name | Type | Description | Notes **facilityNie** | **[]string** | | **facilityNiew** | **[]string** | | **facilityNisw** | **[]string** | | - **group** | **[]int32** | Group (slug) | - **groupN** | **[]int32** | Group (slug) | - **groupId** | **[]int32** | Group (ID) | - **groupIdN** | **[]int32** | Group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -32759,10 +35178,10 @@ 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. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -32775,15 +35194,24 @@ Name | Type | Description | Notes **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **timeZone** | **[]string** | | @@ -33453,16 +35881,16 @@ 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) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -33567,16 +35995,16 @@ 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. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -33840,7 +36268,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33904,7 +36332,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33970,7 +36398,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34036,7 +36464,7 @@ import ( ) func main() { - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34151,7 +36579,7 @@ Name | Type | Description | Notes ## DcimVirtualDeviceContextsList -> PaginatedVirtualDeviceContextList DcimVirtualDeviceContextsList(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).HasPrimaryIp(hasPrimaryIp).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).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).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).HasPrimaryIp(hasPrimaryIp).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -34239,22 +36667,31 @@ func main() { primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) q := "q_example" // string | Search (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(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).HasPrimaryIp(hasPrimaryIp).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).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).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).HasPrimaryIp(hasPrimaryIp).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -34343,15 +36780,24 @@ Name | Type | Description | Notes **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) | **q** | **string** | Search | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -34538,7 +36984,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual device context. - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/DcimCablesListLengthUnitParameter 2.md b/docs/DcimCablesListLengthUnitParameter 2.md new file mode 100644 index 0000000000..0d589ca573 --- /dev/null +++ b/docs/DcimCablesListLengthUnitParameter 2.md @@ -0,0 +1,21 @@ +# DcimCablesListLengthUnitParameter + +## Enum + + +* `CM` (value: `"cm"`) + +* `FT` (value: `"ft"`) + +* `IN` (value: `"in"`) + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + + +[[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/DcimDeviceTypesListAirflowParameter.md b/docs/DcimDeviceTypesListAirflowParameter.md index 751e27ff1e..662f0bed6a 100644 --- a/docs/DcimDeviceTypesListAirflowParameter.md +++ b/docs/DcimDeviceTypesListAirflowParameter.md @@ -3,6 +3,8 @@ ## Enum +* `BOTTOM_TO_TOP` (value: `"bottom-to-top"`) + * `FRONT_TO_REAR` (value: `"front-to-rear"`) * `LEFT_TO_RIGHT` (value: `"left-to-right"`) @@ -13,10 +15,14 @@ * `REAR_TO_FRONT` (value: `"rear-to-front"`) +* `REAR_TO_SIDE` (value: `"rear-to-side"`) + * `RIGHT_TO_LEFT` (value: `"right-to-left"`) * `SIDE_TO_REAR` (value: `"side-to-rear"`) +* `TOP_TO_BOTTOM` (value: `"top-to-bottom"`) + [[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/DcimDevicesRenderConfigCreateFormatParameter 2.md b/docs/DcimDevicesRenderConfigCreateFormatParameter 2.md new file mode 100644 index 0000000000..e20cb439ff --- /dev/null +++ b/docs/DcimDevicesRenderConfigCreateFormatParameter 2.md @@ -0,0 +1,13 @@ +# DcimDevicesRenderConfigCreateFormatParameter + +## Enum + + +* `JSON` (value: `"json"`) + +* `TXT` (value: `"txt"`) + + +[[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/DcimInterfacesListModeParameter.md b/docs/DcimInterfacesListModeParameter.md index 363b5abf81..51c342f20f 100644 --- a/docs/DcimInterfacesListModeParameter.md +++ b/docs/DcimInterfacesListModeParameter.md @@ -5,6 +5,8 @@ * `ACCESS` (value: `"access"`) +* `Q_IN_Q` (value: `"q-in-q"`) + * `TAGGED` (value: `"tagged"`) * `TAGGED_ALL` (value: `"tagged-all"`) diff --git a/docs/DcimModuleTypesListAirflowParameter.md b/docs/DcimModuleTypesListAirflowParameter.md new file mode 100644 index 0000000000..25d66316cb --- /dev/null +++ b/docs/DcimModuleTypesListAirflowParameter.md @@ -0,0 +1,21 @@ +# DcimModuleTypesListAirflowParameter + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `PASSIVE` (value: `"passive"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + + +[[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/DcimPowerFeedsListSupplyParameter 2.md b/docs/DcimPowerFeedsListSupplyParameter 2.md new file mode 100644 index 0000000000..23febc42fa --- /dev/null +++ b/docs/DcimPowerFeedsListSupplyParameter 2.md @@ -0,0 +1,13 @@ +# DcimPowerFeedsListSupplyParameter + +## Enum + + +* `AC` (value: `"ac"`) + +* `DC` (value: `"dc"`) + + +[[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/DcimPowerFeedsListTypeParameter 2.md b/docs/DcimPowerFeedsListTypeParameter 2.md new file mode 100644 index 0000000000..2505a92e41 --- /dev/null +++ b/docs/DcimPowerFeedsListTypeParameter 2.md @@ -0,0 +1,13 @@ +# DcimPowerFeedsListTypeParameter + +## Enum + + +* `PRIMARY` (value: `"primary"`) + +* `REDUNDANT` (value: `"redundant"`) + + +[[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/DcimRacksListOuterUnitParameter.md b/docs/DcimRackTypesListOuterUnitParameter.md similarity index 85% rename from docs/DcimRacksListOuterUnitParameter.md rename to docs/DcimRackTypesListOuterUnitParameter.md index 56e4754ebc..3807d0a4c8 100644 --- a/docs/DcimRacksListOuterUnitParameter.md +++ b/docs/DcimRackTypesListOuterUnitParameter.md @@ -1,4 +1,4 @@ -# DcimRacksListOuterUnitParameter +# DcimRackTypesListOuterUnitParameter ## Enum diff --git a/docs/DcimRacksListAirflowParameter.md b/docs/DcimRacksListAirflowParameter.md new file mode 100644 index 0000000000..f063ab875a --- /dev/null +++ b/docs/DcimRacksListAirflowParameter.md @@ -0,0 +1,13 @@ +# DcimRacksListAirflowParameter + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + + +[[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/Device 2.md b/docs/Device 2.md new file mode 100644 index 0000000000..ee4593df23 --- /dev/null +++ b/docs/Device 2.md @@ -0,0 +1,1346 @@ +# Device + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **NullableString** | | [optional] +**DeviceType** | [**DeviceType**](DeviceType.md) | | +**Role** | [**DeviceRole**](DeviceRole.md) | | +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Site** | [**Site**](Site.md) | | +**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] +**Rack** | Pointer to [**NullableRack**](Rack.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** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] +**Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] +**Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] +**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.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 [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**LocalContextData** | Pointer to **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] +**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 DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, 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, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceWithDefaults + +`func NewDeviceWithDefaults() *Device` + +NewDeviceWithDefaults instantiates a new Device 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 *Device) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Device) 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 *Device) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Device) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Device) 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 *Device) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Device) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Device) 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 *Device) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *Device) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Device) 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 *Device) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Device) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *Device) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *Device) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDeviceType + +`func (o *Device) GetDeviceType() DeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *Device) GetDeviceTypeOk() (*DeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *Device) SetDeviceType(v DeviceType)` + +SetDeviceType sets DeviceType field to given value. + + +### GetRole + +`func (o *Device) GetRole() DeviceRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *Device) GetRoleOk() (*DeviceRole, 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 DeviceRole)` + +SetRole sets Role field to given value. + + +### GetTenant + +`func (o *Device) GetTenant() Tenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Device) GetTenantOk() (*Tenant, 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 *Device) SetTenant(v Tenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Device) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Device) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Device) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetPlatform + +`func (o *Device) GetPlatform() Platform` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *Device) GetPlatformOk() (*Platform, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *Device) SetPlatform(v Platform)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *Device) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### SetPlatformNil + +`func (o *Device) SetPlatformNil(b bool)` + + SetPlatformNil sets the value for Platform to be an explicit nil + +### UnsetPlatform +`func (o *Device) UnsetPlatform()` + +UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +### GetSerial + +`func (o *Device) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Device) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Device) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Device) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Device) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Device) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Device) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Device) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Device) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Device) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetSite + +`func (o *Device) GetSite() Site` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Device) GetSiteOk() (*Site, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Device) SetSite(v Site)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *Device) GetLocation() Location` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *Device) GetLocationOk() (*Location, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *Device) SetLocation(v Location)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *Device) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *Device) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *Device) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetRack + +`func (o *Device) GetRack() Rack` + +GetRack returns the Rack field if non-nil, zero value otherwise. + +### GetRackOk + +`func (o *Device) GetRackOk() (*Rack, bool)` + +GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRack + +`func (o *Device) SetRack(v Rack)` + +SetRack sets Rack field to given value. + +### HasRack + +`func (o *Device) HasRack() bool` + +HasRack returns a boolean if a field has been set. + +### SetRackNil + +`func (o *Device) SetRackNil(b bool)` + + SetRackNil sets the value for Rack to be an explicit nil + +### UnsetRack +`func (o *Device) UnsetRack()` + +UnsetRack ensures that no value is present for Rack, not even an explicit nil +### GetPosition + +`func (o *Device) GetPosition() float64` + +GetPosition returns the Position field if non-nil, zero value otherwise. + +### GetPositionOk + +`func (o *Device) GetPositionOk() (*float64, bool)` + +GetPositionOk returns a tuple with the Position field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPosition + +`func (o *Device) SetPosition(v float64)` + +SetPosition sets Position field to given value. + +### HasPosition + +`func (o *Device) HasPosition() bool` + +HasPosition returns a boolean if a field has been set. + +### SetPositionNil + +`func (o *Device) SetPositionNil(b bool)` + + SetPositionNil sets the value for Position to be an explicit nil + +### UnsetPosition +`func (o *Device) UnsetPosition()` + +UnsetPosition ensures that no value is present for Position, not even an explicit nil +### GetFace + +`func (o *Device) GetFace() DeviceFace` + +GetFace returns the Face field if non-nil, zero value otherwise. + +### GetFaceOk + +`func (o *Device) GetFaceOk() (*DeviceFace, bool)` + +GetFaceOk returns a tuple with the Face field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFace + +`func (o *Device) SetFace(v DeviceFace)` + +SetFace sets Face field to given value. + +### HasFace + +`func (o *Device) HasFace() bool` + +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` + +GetParentDevice returns the ParentDevice field if non-nil, zero value otherwise. + +### GetParentDeviceOk + +`func (o *Device) GetParentDeviceOk() (*NestedDevice, bool)` + +GetParentDeviceOk returns a tuple with the ParentDevice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentDevice + +`func (o *Device) SetParentDevice(v NestedDevice)` + +SetParentDevice sets ParentDevice field to given value. + + +### SetParentDeviceNil + +`func (o *Device) SetParentDeviceNil(b bool)` + + SetParentDeviceNil sets the value for ParentDevice to be an explicit nil + +### UnsetParentDevice +`func (o *Device) UnsetParentDevice()` + +UnsetParentDevice ensures that no value is present for ParentDevice, not even an explicit nil +### GetStatus + +`func (o *Device) GetStatus() DeviceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Device) GetStatusOk() (*DeviceStatus, 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 *Device) SetStatus(v DeviceStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Device) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAirflow + +`func (o *Device) GetAirflow() DeviceAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *Device) GetAirflowOk() (*DeviceAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *Device) SetAirflow(v DeviceAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *Device) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### GetPrimaryIp + +`func (o *Device) GetPrimaryIp() IPAddress` + +GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. + +### GetPrimaryIpOk + +`func (o *Device) GetPrimaryIpOk() (*IPAddress, bool)` + +GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryIp + +`func (o *Device) SetPrimaryIp(v IPAddress)` + +SetPrimaryIp sets PrimaryIp field to given value. + + +### SetPrimaryIpNil + +`func (o *Device) SetPrimaryIpNil(b bool)` + + SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil + +### UnsetPrimaryIp +`func (o *Device) UnsetPrimaryIp()` + +UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil +### GetPrimaryIp4 + +`func (o *Device) GetPrimaryIp4() IPAddress` + +GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. + +### GetPrimaryIp4Ok + +`func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool)` + +GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryIp4 + +`func (o *Device) SetPrimaryIp4(v IPAddress)` + +SetPrimaryIp4 sets PrimaryIp4 field to given value. + +### HasPrimaryIp4 + +`func (o *Device) HasPrimaryIp4() bool` + +HasPrimaryIp4 returns a boolean if a field has been set. + +### SetPrimaryIp4Nil + +`func (o *Device) SetPrimaryIp4Nil(b bool)` + + SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil + +### UnsetPrimaryIp4 +`func (o *Device) UnsetPrimaryIp4()` + +UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil +### GetPrimaryIp6 + +`func (o *Device) GetPrimaryIp6() IPAddress` + +GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. + +### GetPrimaryIp6Ok + +`func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool)` + +GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryIp6 + +`func (o *Device) SetPrimaryIp6(v IPAddress)` + +SetPrimaryIp6 sets PrimaryIp6 field to given value. + +### HasPrimaryIp6 + +`func (o *Device) HasPrimaryIp6() bool` + +HasPrimaryIp6 returns a boolean if a field has been set. + +### SetPrimaryIp6Nil + +`func (o *Device) SetPrimaryIp6Nil(b bool)` + + SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil + +### UnsetPrimaryIp6 +`func (o *Device) UnsetPrimaryIp6()` + +UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil +### GetOobIp + +`func (o *Device) GetOobIp() IPAddress` + +GetOobIp returns the OobIp field if non-nil, zero value otherwise. + +### GetOobIpOk + +`func (o *Device) GetOobIpOk() (*IPAddress, 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 IPAddress)` + +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() Cluster` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *Device) GetClusterOk() (*Cluster, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *Device) SetCluster(v Cluster)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *Device) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### SetClusterNil + +`func (o *Device) SetClusterNil(b bool)` + + SetClusterNil sets the value for Cluster to be an explicit nil + +### UnsetCluster +`func (o *Device) UnsetCluster()` + +UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +### GetVirtualChassis + +`func (o *Device) GetVirtualChassis() VirtualChassis` + +GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. + +### GetVirtualChassisOk + +`func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool)` + +GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualChassis + +`func (o *Device) SetVirtualChassis(v VirtualChassis)` + +SetVirtualChassis sets VirtualChassis field to given value. + +### HasVirtualChassis + +`func (o *Device) HasVirtualChassis() bool` + +HasVirtualChassis returns a boolean if a field has been set. + +### SetVirtualChassisNil + +`func (o *Device) SetVirtualChassisNil(b bool)` + + SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil + +### UnsetVirtualChassis +`func (o *Device) UnsetVirtualChassis()` + +UnsetVirtualChassis ensures that no value is present for VirtualChassis, not even an explicit nil +### GetVcPosition + +`func (o *Device) GetVcPosition() int32` + +GetVcPosition returns the VcPosition field if non-nil, zero value otherwise. + +### GetVcPositionOk + +`func (o *Device) GetVcPositionOk() (*int32, bool)` + +GetVcPositionOk returns a tuple with the VcPosition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVcPosition + +`func (o *Device) SetVcPosition(v int32)` + +SetVcPosition sets VcPosition field to given value. + +### HasVcPosition + +`func (o *Device) HasVcPosition() bool` + +HasVcPosition returns a boolean if a field has been set. + +### SetVcPositionNil + +`func (o *Device) SetVcPositionNil(b bool)` + + SetVcPositionNil sets the value for VcPosition to be an explicit nil + +### UnsetVcPosition +`func (o *Device) UnsetVcPosition()` + +UnsetVcPosition ensures that no value is present for VcPosition, not even an explicit nil +### GetVcPriority + +`func (o *Device) GetVcPriority() int32` + +GetVcPriority returns the VcPriority field if non-nil, zero value otherwise. + +### GetVcPriorityOk + +`func (o *Device) GetVcPriorityOk() (*int32, bool)` + +GetVcPriorityOk returns a tuple with the VcPriority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVcPriority + +`func (o *Device) SetVcPriority(v int32)` + +SetVcPriority sets VcPriority field to given value. + +### HasVcPriority + +`func (o *Device) HasVcPriority() bool` + +HasVcPriority returns a boolean if a field has been set. + +### SetVcPriorityNil + +`func (o *Device) SetVcPriorityNil(b bool)` + + SetVcPriorityNil sets the value for VcPriority to be an explicit nil + +### UnsetVcPriority +`func (o *Device) UnsetVcPriority()` + +UnsetVcPriority ensures that no value is present for VcPriority, not even an explicit nil +### GetDescription + +`func (o *Device) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Device) 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 *Device) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Device) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *Device) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Device) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Device) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Device) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetConfigTemplate + +`func (o *Device) GetConfigTemplate() ConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, 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 *Device) SetConfigTemplate(v ConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *Device) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *Device) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *Device) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +### GetLocalContextData + +`func (o *Device) GetLocalContextData() interface{}` + +GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise. + +### GetLocalContextDataOk + +`func (o *Device) GetLocalContextDataOk() (*interface{}, bool)` + +GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalContextData + +`func (o *Device) SetLocalContextData(v interface{})` + +SetLocalContextData sets LocalContextData field to given value. + +### HasLocalContextData + +`func (o *Device) HasLocalContextData() bool` + +HasLocalContextData returns a boolean if a field has been set. + +### SetLocalContextDataNil + +`func (o *Device) SetLocalContextDataNil(b bool)` + + SetLocalContextDataNil sets the value for LocalContextData to be an explicit nil + +### UnsetLocalContextData +`func (o *Device) UnsetLocalContextData()` + +UnsetLocalContextData ensures that no value is present for LocalContextData, not even an explicit nil +### GetTags + +`func (o *Device) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Device) 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 *Device) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Device) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Device) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Device) 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 *Device) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Device) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Device) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Device) 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 *Device) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Device) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Device) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Device) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Device) 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 *Device) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Device) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`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/Device.md b/docs/Device.md index ee4593df23..34c0a81b80 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -6,56 +6,57 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceType**](DeviceType.md) | | -**Role** | [**DeviceRole**](DeviceRole.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**Name** | **NullableString** | | +**DeviceType** | Pointer to [**BriefDeviceType**](BriefDeviceType.md) | | [optional] +**Role** | Pointer to [**BriefDeviceRole**](BriefDeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**Site**](Site.md) | | -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | Pointer to [**BriefSite**](BriefSite.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.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** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] +**ParentDevice** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] -**Description** | Pointer to **string** | | [optional] +**Description** | **string** | | **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **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] -**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] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**ConsolePortCount** | Pointer to **int32** | | [optional] [readonly] +**ConsoleServerPortCount** | Pointer to **int32** | | [optional] [readonly] +**PowerPortCount** | Pointer to **int32** | | [optional] [readonly] +**PowerOutletCount** | Pointer to **int32** | | [optional] [readonly] +**InterfaceCount** | Pointer to **int32** | | [optional] [readonly] +**FrontPortCount** | Pointer to **int32** | | [optional] [readonly] +**RearPortCount** | Pointer to **int32** | | [optional] [readonly] +**DeviceBayCount** | Pointer to **int32** | | [optional] [readonly] +**ModuleBayCount** | Pointer to **int32** | | [optional] [readonly] +**InventoryItemCount** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewDevice -`func NewDevice(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, 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` +`func NewDevice(id int32, url string, display string, name NullableString, description string, ) *Device` NewDevice instantiates a new Device object This constructor will assign default values to properties that have it defined, @@ -110,6 +111,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Device) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Device) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Device) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Device) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Device) GetDisplay() string` @@ -149,11 +175,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### HasName - -`func (o *Device) HasName() bool` - -HasName returns a boolean if a field has been set. ### SetNameNil @@ -167,60 +188,70 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *Device) GetDeviceType() DeviceType` +`func (o *Device) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *Device) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *Device) SetDeviceType(v DeviceType)` +`func (o *Device) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType + +`func (o *Device) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *Device) GetRole() DeviceRole` +`func (o *Device) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Device) GetRoleOk() (*DeviceRole, bool)` +`func (o *Device) GetRoleOk() (*BriefDeviceRole, 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 DeviceRole)` +`func (o *Device) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. +### HasRole + +`func (o *Device) HasRole() bool` + +HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *Device) GetTenant() Tenant` +`func (o *Device) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Device) GetTenantOk() (*Tenant, bool)` +`func (o *Device) GetTenantOk() (*BriefTenant, 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 *Device) SetTenant(v Tenant)` +`func (o *Device) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -242,20 +273,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *Device) GetPlatform() Platform` +`func (o *Device) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *Device) GetPlatformOk() (*Platform, bool)` +`func (o *Device) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *Device) SetPlatform(v Platform)` +`func (o *Device) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -337,40 +368,45 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *Device) GetSite() Site` +`func (o *Device) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Device) GetSiteOk() (*Site, bool)` +`func (o *Device) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Device) SetSite(v Site)` +`func (o *Device) SetSite(v BriefSite)` SetSite sets Site field to given value. +### HasSite + +`func (o *Device) HasSite() bool` + +HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *Device) GetLocation() Location` +`func (o *Device) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *Device) GetLocationOk() (*Location, bool)` +`func (o *Device) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *Device) SetLocation(v Location)` +`func (o *Device) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -392,20 +428,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *Device) GetRack() Rack` +`func (o *Device) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *Device) GetRackOk() (*Rack, bool)` +`func (o *Device) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *Device) SetRack(v Rack)` +`func (o *Device) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -574,6 +610,11 @@ and a boolean to check if the value has been set. SetParentDevice sets ParentDevice field to given value. +### HasParentDevice + +`func (o *Device) HasParentDevice() bool` + +HasParentDevice returns a boolean if a field has been set. ### SetParentDeviceNil @@ -637,23 +678,28 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *Device) GetPrimaryIp() IPAddress` +`func (o *Device) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *Device) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *Device) SetPrimaryIp(v IPAddress)` +`func (o *Device) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. +### HasPrimaryIp + +`func (o *Device) HasPrimaryIp() bool` + +HasPrimaryIp returns a boolean if a field has been set. ### SetPrimaryIpNil @@ -667,20 +713,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *Device) GetPrimaryIp4() IPAddress` +`func (o *Device) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *Device) SetPrimaryIp4(v IPAddress)` +`func (o *Device) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -702,20 +748,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *Device) GetPrimaryIp6() IPAddress` +`func (o *Device) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *Device) SetPrimaryIp6(v IPAddress)` +`func (o *Device) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -737,20 +783,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 ### GetOobIp -`func (o *Device) GetOobIp() IPAddress` +`func (o *Device) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *Device) GetOobIpOk() (*IPAddress, bool)` +`func (o *Device) GetOobIpOk() (*BriefIPAddress, 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 IPAddress)` +`func (o *Device) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -772,20 +818,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *Device) GetCluster() Cluster` +`func (o *Device) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *Device) GetClusterOk() (*Cluster, bool)` +`func (o *Device) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *Device) SetCluster(v Cluster)` +`func (o *Device) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -807,20 +853,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *Device) GetVirtualChassis() VirtualChassis` +`func (o *Device) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *Device) SetVirtualChassis(v VirtualChassis)` +`func (o *Device) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -929,11 +975,6 @@ and a boolean to check if the value has been set. SetDescription sets Description field to given value. -### HasDescription - -`func (o *Device) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. ### GetComments @@ -962,20 +1003,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *Device) GetConfigTemplate() ConfigTemplate` +`func (o *Device) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, 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 *Device) SetConfigTemplate(v ConfigTemplate)` +`func (o *Device) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. @@ -1099,6 +1140,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Device) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -1129,6 +1175,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Device) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -1159,6 +1210,11 @@ and a boolean to check if the value has been set. SetConsolePortCount sets ConsolePortCount field to given value. +### HasConsolePortCount + +`func (o *Device) HasConsolePortCount() bool` + +HasConsolePortCount returns a boolean if a field has been set. ### GetConsoleServerPortCount @@ -1179,6 +1235,11 @@ and a boolean to check if the value has been set. SetConsoleServerPortCount sets ConsoleServerPortCount field to given value. +### HasConsoleServerPortCount + +`func (o *Device) HasConsoleServerPortCount() bool` + +HasConsoleServerPortCount returns a boolean if a field has been set. ### GetPowerPortCount @@ -1199,6 +1260,11 @@ and a boolean to check if the value has been set. SetPowerPortCount sets PowerPortCount field to given value. +### HasPowerPortCount + +`func (o *Device) HasPowerPortCount() bool` + +HasPowerPortCount returns a boolean if a field has been set. ### GetPowerOutletCount @@ -1219,6 +1285,11 @@ and a boolean to check if the value has been set. SetPowerOutletCount sets PowerOutletCount field to given value. +### HasPowerOutletCount + +`func (o *Device) HasPowerOutletCount() bool` + +HasPowerOutletCount returns a boolean if a field has been set. ### GetInterfaceCount @@ -1239,6 +1310,11 @@ and a boolean to check if the value has been set. SetInterfaceCount sets InterfaceCount field to given value. +### HasInterfaceCount + +`func (o *Device) HasInterfaceCount() bool` + +HasInterfaceCount returns a boolean if a field has been set. ### GetFrontPortCount @@ -1259,6 +1335,11 @@ and a boolean to check if the value has been set. SetFrontPortCount sets FrontPortCount field to given value. +### HasFrontPortCount + +`func (o *Device) HasFrontPortCount() bool` + +HasFrontPortCount returns a boolean if a field has been set. ### GetRearPortCount @@ -1279,6 +1360,11 @@ and a boolean to check if the value has been set. SetRearPortCount sets RearPortCount field to given value. +### HasRearPortCount + +`func (o *Device) HasRearPortCount() bool` + +HasRearPortCount returns a boolean if a field has been set. ### GetDeviceBayCount @@ -1299,6 +1385,11 @@ and a boolean to check if the value has been set. SetDeviceBayCount sets DeviceBayCount field to given value. +### HasDeviceBayCount + +`func (o *Device) HasDeviceBayCount() bool` + +HasDeviceBayCount returns a boolean if a field has been set. ### GetModuleBayCount @@ -1319,6 +1410,11 @@ and a boolean to check if the value has been set. SetModuleBayCount sets ModuleBayCount field to given value. +### HasModuleBayCount + +`func (o *Device) HasModuleBayCount() bool` + +HasModuleBayCount returns a boolean if a field has been set. ### GetInventoryItemCount @@ -1339,6 +1435,11 @@ and a boolean to check if the value has been set. SetInventoryItemCount sets InventoryItemCount field to given value. +### HasInventoryItemCount + +`func (o *Device) HasInventoryItemCount() bool` + +HasInventoryItemCount 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/DeviceAirflowLabel 2.md b/docs/DeviceAirflowLabel 2.md new file mode 100644 index 0000000000..5cbc469ad6 --- /dev/null +++ b/docs/DeviceAirflowLabel 2.md @@ -0,0 +1,23 @@ +# DeviceAirflowLabel + +## Enum + + +* `FRONT_TO_REAR` (value: `"Front to rear"`) + +* `REAR_TO_FRONT` (value: `"Rear to front"`) + +* `LEFT_TO_RIGHT` (value: `"Left to right"`) + +* `RIGHT_TO_LEFT` (value: `"Right to left"`) + +* `SIDE_TO_REAR` (value: `"Side to rear"`) + +* `PASSIVE` (value: `"Passive"`) + +* `MIXED` (value: `"Mixed"`) + + +[[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/DeviceAirflowLabel.md b/docs/DeviceAirflowLabel.md index 5cbc469ad6..b35bc90481 100644 --- a/docs/DeviceAirflowLabel.md +++ b/docs/DeviceAirflowLabel.md @@ -13,6 +13,12 @@ * `SIDE_TO_REAR` (value: `"Side to rear"`) +* `REAR_TO_SIDE` (value: `"Rear to side"`) + +* `BOTTOM_TO_TOP` (value: `"Bottom to top"`) + +* `TOP_TO_BOTTOM` (value: `"Top to bottom"`) + * `PASSIVE` (value: `"Passive"`) * `MIXED` (value: `"Mixed"`) diff --git a/docs/DeviceAirflowValue.md b/docs/DeviceAirflowValue.md index 9b26719a04..f336656e5c 100644 --- a/docs/DeviceAirflowValue.md +++ b/docs/DeviceAirflowValue.md @@ -13,6 +13,12 @@ * `SIDE_TO_REAR` (value: `"side-to-rear"`) +* `REAR_TO_SIDE` (value: `"rear-to-side"`) + +* `BOTTOM_TO_TOP` (value: `"bottom-to-top"`) + +* `TOP_TO_BOTTOM` (value: `"top-to-bottom"`) + * `PASSIVE` (value: `"passive"`) * `MIXED` (value: `"mixed"`) diff --git a/docs/DeviceBay.md b/docs/DeviceBay.md index e19772ad5d..1b8457429c 100644 --- a/docs/DeviceBay.md +++ b/docs/DeviceBay.md @@ -6,22 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDevice**](Device.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewDeviceBay -`func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` +`func NewDeviceBay(id int32, url string, display string, device BriefDevice, name string, ) *DeviceBay` NewDeviceBay instantiates a new DeviceBay object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceBay) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceBay) GetDisplay() string` @@ -98,20 +124,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *DeviceBay) GetDevice() Device` +`func (o *DeviceBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBay) GetDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBay) SetDevice(v Device)` +`func (o *DeviceBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -188,20 +214,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBay) GetInstalledDevice() Device` +`func (o *DeviceBay) GetInstalledDevice() BriefDevice` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBay) SetInstalledDevice(v Device)` +`func (o *DeviceBay) SetInstalledDevice(v BriefDevice)` SetInstalledDevice sets InstalledDevice field to given value. @@ -290,6 +316,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *DeviceBay) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -320,6 +351,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *DeviceBay) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/DeviceBayRequest.md b/docs/DeviceBayRequest.md index 9229313f33..78e056c6da 100644 --- a/docs/DeviceBayRequest.md +++ b/docs/DeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewDeviceBayRequest -`func NewDeviceBayRequest(device DeviceRequest, name string, ) *DeviceBayRequest` +`func NewDeviceBayRequest(device BriefDeviceRequest, name string, ) *DeviceBayRequest` NewDeviceBayRequest instantiates a new DeviceBayRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *DeviceBayRequest) GetDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -123,20 +123,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayTemplate.md b/docs/DeviceBayTemplate.md index ffb6fdad4c..2a4b3e1f87 100644 --- a/docs/DeviceBayTemplate.md +++ b/docs/DeviceBayTemplate.md @@ -7,18 +7,18 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | **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] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewDeviceBayTemplate -`func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` +`func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, ) *DeviceBayTemplate` NewDeviceBayTemplate instantiates a new DeviceBayTemplate object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *DeviceBayTemplate) GetDeviceType() DeviceType` +`func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplate) SetDeviceType(v DeviceType)` +`func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -202,6 +202,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *DeviceBayTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -232,6 +237,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *DeviceBayTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/DeviceBayTemplateRequest.md b/docs/DeviceBayTemplateRequest.md index 48b82be6aa..3dcbe76461 100644 --- a/docs/DeviceBayTemplateRequest.md +++ b/docs/DeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | **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] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplateRequest -`func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` +`func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` NewDeviceBayTemplateRequest instantiates a new DeviceBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceRole.md b/docs/DeviceRole.md index 69757a60f2..dc16c75887 100644 --- a/docs/DeviceRole.md +++ b/docs/DeviceRole.md @@ -6,18 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Color** | Pointer to **string** | | [optional] +**VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] -**VirtualmachineCount** | **int64** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewDeviceRole -`func NewDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -72,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceRole) GetDisplay() string` @@ -132,6 +165,91 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetColor + +`func (o *DeviceRole) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *DeviceRole) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *DeviceRole) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *DeviceRole) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetVmRole + +`func (o *DeviceRole) GetVmRole() bool` + +GetVmRole returns the VmRole field if non-nil, zero value otherwise. + +### GetVmRoleOk + +`func (o *DeviceRole) GetVmRoleOk() (*bool, bool)` + +GetVmRoleOk returns a tuple with the VmRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVmRole + +`func (o *DeviceRole) SetVmRole(v bool)` + +SetVmRole sets VmRole field to given value. + +### HasVmRole + +`func (o *DeviceRole) HasVmRole() bool` + +HasVmRole returns a boolean if a field has been set. + +### GetConfigTemplate + +`func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, 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 *DeviceRole) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *DeviceRole) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *DeviceRole) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *DeviceRole) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *DeviceRole) GetDescription() string` @@ -157,6 +275,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *DeviceRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceRole) 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 *DeviceRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceRole) 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 *DeviceRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceRole) 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 *DeviceRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *DeviceRole) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *DeviceRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceRole) 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 *DeviceRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *DeviceRole) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *DeviceRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceRole) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceRole) GetDeviceCount() int64` @@ -176,6 +414,11 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *DeviceRole) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. ### GetVirtualmachineCount @@ -196,6 +439,11 @@ and a boolean to check if the value has been set. SetVirtualmachineCount sets VirtualmachineCount field to given value. +### HasVirtualmachineCount + +`func (o *DeviceRole) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/DeviceRoleRequest.md b/docs/DeviceRoleRequest.md index 63022acb94..05cd2213c4 100644 --- a/docs/DeviceRoleRequest.md +++ b/docs/DeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | **string** | | **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -124,20 +124,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceType.md b/docs/DeviceType.md index 0fd8ee2280..939d903716 100644 --- a/docs/DeviceType.md +++ b/docs/DeviceType.md @@ -6,18 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeSubdeviceRole**](DeviceTypeSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeAirflow**](DeviceTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**FrontImage** | Pointer to **NullableString** | | [optional] +**RearImage** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [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 Manufacturer, model string, slug string, deviceCount int64, ) *DeviceType` +`func NewDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, 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, @@ -72,6 +99,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceType) GetDisplay() string` @@ -94,24 +146,59 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *DeviceType) GetManufacturer() Manufacturer` +`func (o *DeviceType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceType) SetManufacturer(v Manufacturer)` +`func (o *DeviceType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceType) GetDefaultPlatform() BriefPlatform` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceType) SetDefaultPlatform(v BriefPlatform)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceType) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceType) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceType) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceType) GetModel() string` @@ -152,6 +239,316 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceType) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceType) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceType) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceType) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceType) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceType) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceType) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceType) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceType) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceType) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceType) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceType) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceType) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceType) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceType) GetAirflow() DeviceTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceType) SetAirflow(v DeviceTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceType) GetFrontImage() string` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceType) GetFrontImageOk() (*string, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceType) SetFrontImage(v string)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceType) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### SetFrontImageNil + +`func (o *DeviceType) SetFrontImageNil(b bool)` + + SetFrontImageNil sets the value for FrontImage to be an explicit nil + +### UnsetFrontImage +`func (o *DeviceType) UnsetFrontImage()` + +UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +### GetRearImage + +`func (o *DeviceType) GetRearImage() string` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceType) GetRearImageOk() (*string, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceType) SetRearImage(v string)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceType) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + +### SetRearImageNil + +`func (o *DeviceType) SetRearImageNil(b bool)` + + SetRearImageNil sets the value for RearImage to be an explicit nil + +### UnsetRearImage +`func (o *DeviceType) UnsetRearImage()` + +UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil ### GetDescription `func (o *DeviceType) GetDescription() string` @@ -177,6 +574,151 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceType) 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 *DeviceType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceType) 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 *DeviceType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceType) 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 *DeviceType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *DeviceType) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *DeviceType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceType) 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 *DeviceType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *DeviceType) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *DeviceType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceType) GetDeviceCount() int64` @@ -196,6 +738,211 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *DeviceType) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### 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/DeviceTypeAirflow.md b/docs/DeviceTypeAirflow.md new file mode 100644 index 0000000000..fab620ce56 --- /dev/null +++ b/docs/DeviceTypeAirflow.md @@ -0,0 +1,82 @@ +# DeviceTypeAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] +**Label** | Pointer to [**DeviceAirflowLabel**](DeviceAirflowLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeAirflow + +`func NewDeviceTypeAirflow() *DeviceTypeAirflow` + +NewDeviceTypeAirflow instantiates a new DeviceTypeAirflow 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 + +### NewDeviceTypeAirflowWithDefaults + +`func NewDeviceTypeAirflowWithDefaults() *DeviceTypeAirflow` + +NewDeviceTypeAirflowWithDefaults instantiates a new DeviceTypeAirflow 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 *DeviceTypeAirflow) GetValue() DeviceAirflowValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeAirflow) GetValueOk() (*DeviceAirflowValue, 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 *DeviceTypeAirflow) SetValue(v DeviceAirflowValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeAirflow) GetLabelOk() (*DeviceAirflowLabel, 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 *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeAirflow) 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/DeviceTypeRequest.md b/docs/DeviceTypeRequest.md index a5e6c3addc..8f7d9822f4 100644 --- a/docs/DeviceTypeRequest.md +++ b/docs/DeviceTypeRequest.md @@ -4,16 +4,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeRequestSubdeviceRole**](DeviceTypeRequestSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**FrontImage** | Pointer to ***os.File** | | [optional] +**RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDeviceTypeRequest -`func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` +`func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` NewDeviceTypeRequest instantiates a new DeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -30,24 +44,59 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceTypeRequest) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceTypeRequest) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceTypeRequest) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceTypeRequest) GetModel() string` @@ -88,6 +137,296 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceTypeRequest) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceTypeRequest) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceTypeRequest) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceTypeRequest) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceTypeRequest) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceTypeRequest) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceTypeRequest) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceTypeRequest) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceTypeRequest) GetFrontImage() *os.File` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceTypeRequest) SetFrontImage(v *os.File)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceTypeRequest) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### GetRearImage + +`func (o *DeviceTypeRequest) GetRearImage() *os.File` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceTypeRequest) SetRearImage(v *os.File)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceTypeRequest) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + ### GetDescription `func (o *DeviceTypeRequest) GetDescription() string` @@ -113,6 +452,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceTypeRequest) 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 *DeviceTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceTypeRequest) 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 *DeviceTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/DeviceTypeRequestAirflow.md b/docs/DeviceTypeRequestAirflow.md new file mode 100644 index 0000000000..f6a8ed3bb0 --- /dev/null +++ b/docs/DeviceTypeRequestAirflow.md @@ -0,0 +1,31 @@ +# DeviceTypeRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `REAR_TO_SIDE` (value: `"rear-to-side"`) + +* `BOTTOM_TO_TOP` (value: `"bottom-to-top"`) + +* `TOP_TO_BOTTOM` (value: `"top-to-bottom"`) + +* `PASSIVE` (value: `"passive"`) + +* `MIXED` (value: `"mixed"`) + +* `EMPTY` (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/DeviceTypeRequestSubdeviceRole.md b/docs/DeviceTypeRequestSubdeviceRole.md new file mode 100644 index 0000000000..b25ddf7650 --- /dev/null +++ b/docs/DeviceTypeRequestSubdeviceRole.md @@ -0,0 +1,15 @@ +# DeviceTypeRequestSubdeviceRole + +## Enum + + +* `PARENT` (value: `"parent"`) + +* `CHILD` (value: `"child"`) + +* `EMPTY` (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/PatchedWritableDeviceTypeRequestWeightUnit.md b/docs/DeviceTypeRequestWeightUnit.md similarity index 86% rename from docs/PatchedWritableDeviceTypeRequestWeightUnit.md rename to docs/DeviceTypeRequestWeightUnit.md index 4fb52e1274..ea9ac170d3 100644 --- a/docs/PatchedWritableDeviceTypeRequestWeightUnit.md +++ b/docs/DeviceTypeRequestWeightUnit.md @@ -1,4 +1,4 @@ -# PatchedWritableDeviceTypeRequestWeightUnit +# DeviceTypeRequestWeightUnit ## Enum diff --git a/docs/DeviceTypeSubdeviceRole.md b/docs/DeviceTypeSubdeviceRole.md new file mode 100644 index 0000000000..f1209e70ac --- /dev/null +++ b/docs/DeviceTypeSubdeviceRole.md @@ -0,0 +1,82 @@ +# DeviceTypeSubdeviceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceTypeSubdeviceRoleValue**](DeviceTypeSubdeviceRoleValue.md) | | [optional] +**Label** | Pointer to [**DeviceTypeSubdeviceRoleLabel**](DeviceTypeSubdeviceRoleLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeSubdeviceRole + +`func NewDeviceTypeSubdeviceRole() *DeviceTypeSubdeviceRole` + +NewDeviceTypeSubdeviceRole instantiates a new DeviceTypeSubdeviceRole 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 + +### NewDeviceTypeSubdeviceRoleWithDefaults + +`func NewDeviceTypeSubdeviceRoleWithDefaults() *DeviceTypeSubdeviceRole` + +NewDeviceTypeSubdeviceRoleWithDefaults instantiates a new DeviceTypeSubdeviceRole 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 *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeSubdeviceRole) GetValueOk() (*DeviceTypeSubdeviceRoleValue, 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 *DeviceTypeSubdeviceRole) SetValue(v DeviceTypeSubdeviceRoleValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeSubdeviceRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeSubdeviceRole) GetLabelOk() (*DeviceTypeSubdeviceRoleLabel, 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 *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeSubdeviceRole) 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/DeviceTypeSubdeviceRoleLabel.md b/docs/DeviceTypeSubdeviceRoleLabel.md new file mode 100644 index 0000000000..0df3e3f7ff --- /dev/null +++ b/docs/DeviceTypeSubdeviceRoleLabel.md @@ -0,0 +1,13 @@ +# DeviceTypeSubdeviceRoleLabel + +## Enum + + +* `PARENT` (value: `"Parent"`) + +* `CHILD` (value: `"Child"`) + + +[[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/DeviceTypeSubdeviceRoleValue.md b/docs/DeviceTypeSubdeviceRoleValue.md new file mode 100644 index 0000000000..21912d5303 --- /dev/null +++ b/docs/DeviceTypeSubdeviceRoleValue.md @@ -0,0 +1,15 @@ +# DeviceTypeSubdeviceRoleValue + +## Enum + + +* `PARENT` (value: `"parent"`) + +* `CHILD` (value: `"child"`) + +* `EMPTY` (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/DeviceTypeWeightUnit.md b/docs/DeviceTypeWeightUnit.md new file mode 100644 index 0000000000..a4ff2942b8 --- /dev/null +++ b/docs/DeviceTypeWeightUnit.md @@ -0,0 +1,82 @@ +# DeviceTypeWeightUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**Label** | Pointer to [**DeviceTypeWeightUnitLabel**](DeviceTypeWeightUnitLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeWeightUnit + +`func NewDeviceTypeWeightUnit() *DeviceTypeWeightUnit` + +NewDeviceTypeWeightUnit instantiates a new DeviceTypeWeightUnit 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 + +### NewDeviceTypeWeightUnitWithDefaults + +`func NewDeviceTypeWeightUnitWithDefaults() *DeviceTypeWeightUnit` + +NewDeviceTypeWeightUnitWithDefaults instantiates a new DeviceTypeWeightUnit 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 *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeWeightUnit) GetValueOk() (*DeviceTypeWeightUnitValue, 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 *DeviceTypeWeightUnit) SetValue(v DeviceTypeWeightUnitValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeWeightUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeWeightUnit) GetLabelOk() (*DeviceTypeWeightUnitLabel, 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 *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeWeightUnit) 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/DeviceTypeWeightUnitLabel.md b/docs/DeviceTypeWeightUnitLabel.md new file mode 100644 index 0000000000..ccc9d2c7ab --- /dev/null +++ b/docs/DeviceTypeWeightUnitLabel.md @@ -0,0 +1,17 @@ +# DeviceTypeWeightUnitLabel + +## Enum + + +* `KILOGRAMS` (value: `"Kilograms"`) + +* `GRAMS` (value: `"Grams"`) + +* `POUNDS` (value: `"Pounds"`) + +* `OUNCES` (value: `"Ounces"`) + + +[[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/DeviceTypeWeightUnitValue.md b/docs/DeviceTypeWeightUnitValue.md new file mode 100644 index 0000000000..4d8026e601 --- /dev/null +++ b/docs/DeviceTypeWeightUnitValue.md @@ -0,0 +1,19 @@ +# DeviceTypeWeightUnitValue + +## Enum + + +* `KG` (value: `"kg"`) + +* `G` (value: `"g"`) + +* `LB` (value: `"lb"`) + +* `OZ` (value: `"oz"`) + +* `EMPTY` (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 570136c0db..1cda88844f 100644 --- a/docs/DeviceWithConfigContext.md +++ b/docs/DeviceWithConfigContext.md @@ -6,41 +6,42 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceType**](DeviceType.md) | | -**Role** | [**DeviceRole**](DeviceRole.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | +**Role** | [**BriefDeviceRole**](BriefDeviceRole.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**Site**](Site.md) | | -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.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** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] +**ParentDevice** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.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 [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] -**ConfigContext** | **interface{}** | | [readonly] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] +**ConfigContext** | Pointer to **interface{}** | | [optional] [readonly] **LocalContextData** | Pointer to **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] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **ConsolePortCount** | **int32** | | [readonly] **ConsoleServerPortCount** | **int32** | | [readonly] **PowerPortCount** | **int32** | | [readonly] @@ -56,7 +57,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContext -`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext 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` +`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, 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, @@ -111,6 +112,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceWithConfigContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceWithConfigContext) GetDisplay() string` @@ -168,60 +194,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContext) GetDeviceType() DeviceType` +`func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType)` +`func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContext) GetRole() DeviceRole` +`func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, 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 DeviceRole)` +`func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContext) GetTenant() Tenant` +`func (o *DeviceWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, 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 *DeviceWithConfigContext) SetTenant(v Tenant)` +`func (o *DeviceWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -243,20 +269,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContext) GetPlatform() Platform` +`func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContext) SetPlatform(v Platform)` +`func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -338,40 +364,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContext) GetSite() Site` +`func (o *DeviceWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContext) SetSite(v Site)` +`func (o *DeviceWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContext) GetLocation() Location` +`func (o *DeviceWithConfigContext) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool)` +`func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContext) SetLocation(v Location)` +`func (o *DeviceWithConfigContext) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -393,20 +419,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContext) GetRack() Rack` +`func (o *DeviceWithConfigContext) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool)` +`func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContext) SetRack(v Rack)` +`func (o *DeviceWithConfigContext) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -575,6 +601,11 @@ and a boolean to check if the value has been set. SetParentDevice sets ParentDevice field to given value. +### HasParentDevice + +`func (o *DeviceWithConfigContext) HasParentDevice() bool` + +HasParentDevice returns a boolean if a field has been set. ### SetParentDeviceNil @@ -638,23 +669,28 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. +### HasPrimaryIp + +`func (o *DeviceWithConfigContext) HasPrimaryIp() bool` + +HasPrimaryIp returns a boolean if a field has been set. ### SetPrimaryIpNil @@ -668,20 +704,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -703,20 +739,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -738,20 +774,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 ### GetOobIp -`func (o *DeviceWithConfigContext) GetOobIp() IPAddress` +`func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, 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 IPAddress)` +`func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -773,20 +809,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContext) GetCluster() Cluster` +`func (o *DeviceWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContext) SetCluster(v Cluster)` +`func (o *DeviceWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -808,20 +844,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis` +`func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis)` +`func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -963,20 +999,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, 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 ConfigTemplate)` +`func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. @@ -1015,6 +1051,11 @@ and a boolean to check if the value has been set. SetConfigContext sets ConfigContext field to given value. +### HasConfigContext + +`func (o *DeviceWithConfigContext) HasConfigContext() bool` + +HasConfigContext returns a boolean if a field has been set. ### SetConfigContextNil @@ -1130,6 +1171,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *DeviceWithConfigContext) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -1160,6 +1206,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *DeviceWithConfigContext) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md index 6d521edef4..d32891dde9 100644 --- a/docs/DeviceWithConfigContextRequest.md +++ b/docs/DeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFaceValue**](DeviceFaceValue.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] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.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 [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **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] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContextRequest -`func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, ) *DeviceWithConfigContextRequest` +`func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, ) *DeviceWithConfigContextRequest` NewDeviceWithConfigContextRequest instantiates a new DeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, 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 *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *DeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -530,20 +530,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -565,20 +565,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -600,20 +600,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 ### GetOobIp -`func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, 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 IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -635,20 +635,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -670,20 +670,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -825,20 +825,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 ConfigTemplateRequest)` +`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/Event.md b/docs/Event.md new file mode 100644 index 0000000000..7a5163f0b5 --- /dev/null +++ b/docs/Event.md @@ -0,0 +1,23 @@ +# Event + +## Enum + + +* `OBJECT_CREATED` (value: `"object_created"`) + +* `OBJECT_UPDATED` (value: `"object_updated"`) + +* `OBJECT_DELETED` (value: `"object_deleted"`) + +* `JOB_STARTED` (value: `"job_started"`) + +* `JOB_COMPLETED` (value: `"job_completed"`) + +* `JOB_FAILED` (value: `"job_failed"`) + +* `JOB_ERRORED` (value: `"job_errored"`) + + +[[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/EventRule 2.md b/docs/EventRule 2.md new file mode 100644 index 0000000000..fa879bc560 --- /dev/null +++ b/docs/EventRule 2.md @@ -0,0 +1,566 @@ +# EventRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectTypes** | **[]string** | | +**Name** | **string** | | +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] +**ActionType** | [**EventRuleActionType**](EventRuleActionType.md) | | +**ActionObjectType** | **string** | | +**ActionObjectId** | Pointer to **NullableInt64** | | [optional] +**ActionObject** | **map[string]interface{}** | | [readonly] +**Description** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] + +## Methods + +### NewEventRule + +`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` + +NewEventRule instantiates a new EventRule 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 + +### NewEventRuleWithDefaults + +`func NewEventRuleWithDefaults() *EventRule` + +NewEventRuleWithDefaults instantiates a new EventRule 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 *EventRule) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EventRule) 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 *EventRule) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *EventRule) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *EventRule) 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 *EventRule) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *EventRule) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *EventRule) 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 *EventRule) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectTypes + +`func (o *EventRule) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *EventRule) 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 *EventRule) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + + +### GetName + +`func (o *EventRule) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EventRule) 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 *EventRule) SetName(v string)` + +SetName sets Name field to given value. + + +### GetTypeCreate + +`func (o *EventRule) GetTypeCreate() bool` + +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. + +### GetTypeCreateOk + +`func (o *EventRule) GetTypeCreateOk() (*bool, bool)` + +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeCreate + +`func (o *EventRule) SetTypeCreate(v bool)` + +SetTypeCreate sets TypeCreate field to given value. + +### HasTypeCreate + +`func (o *EventRule) HasTypeCreate() bool` + +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *EventRule) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *EventRule) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *EventRule) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *EventRule) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *EventRule) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *EventRule) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *EventRule) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *EventRule) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. + +### GetTypeJobStart + +`func (o *EventRule) GetTypeJobStart() bool` + +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. + +### GetTypeJobStartOk + +`func (o *EventRule) GetTypeJobStartOk() (*bool, bool)` + +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobStart + +`func (o *EventRule) SetTypeJobStart(v bool)` + +SetTypeJobStart sets TypeJobStart field to given value. + +### HasTypeJobStart + +`func (o *EventRule) HasTypeJobStart() bool` + +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *EventRule) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *EventRule) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *EventRule) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *EventRule) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + +### GetEnabled + +`func (o *EventRule) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *EventRule) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *EventRule) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *EventRule) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConditions + +`func (o *EventRule) GetConditions() interface{}` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *EventRule) GetConditionsOk() (*interface{}, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *EventRule) SetConditions(v interface{})` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *EventRule) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### SetConditionsNil + +`func (o *EventRule) SetConditionsNil(b bool)` + + SetConditionsNil sets the value for Conditions to be an explicit nil + +### UnsetConditions +`func (o *EventRule) UnsetConditions()` + +UnsetConditions ensures that no value is present for Conditions, not even an explicit nil +### GetActionType + +`func (o *EventRule) GetActionType() EventRuleActionType` + +GetActionType returns the ActionType field if non-nil, zero value otherwise. + +### GetActionTypeOk + +`func (o *EventRule) GetActionTypeOk() (*EventRuleActionType, bool)` + +GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionType + +`func (o *EventRule) SetActionType(v EventRuleActionType)` + +SetActionType sets ActionType field to given value. + + +### GetActionObjectType + +`func (o *EventRule) GetActionObjectType() string` + +GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise. + +### GetActionObjectTypeOk + +`func (o *EventRule) GetActionObjectTypeOk() (*string, bool)` + +GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectType + +`func (o *EventRule) SetActionObjectType(v string)` + +SetActionObjectType sets ActionObjectType field to given value. + + +### GetActionObjectId + +`func (o *EventRule) GetActionObjectId() int64` + +GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise. + +### GetActionObjectIdOk + +`func (o *EventRule) GetActionObjectIdOk() (*int64, bool)` + +GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectId + +`func (o *EventRule) SetActionObjectId(v int64)` + +SetActionObjectId sets ActionObjectId field to given value. + +### HasActionObjectId + +`func (o *EventRule) HasActionObjectId() bool` + +HasActionObjectId returns a boolean if a field has been set. + +### SetActionObjectIdNil + +`func (o *EventRule) SetActionObjectIdNil(b bool)` + + SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil + +### UnsetActionObjectId +`func (o *EventRule) UnsetActionObjectId()` + +UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil +### GetActionObject + +`func (o *EventRule) GetActionObject() map[string]interface{}` + +GetActionObject returns the ActionObject field if non-nil, zero value otherwise. + +### GetActionObjectOk + +`func (o *EventRule) GetActionObjectOk() (*map[string]interface{}, bool)` + +GetActionObjectOk returns a tuple with the ActionObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObject + +`func (o *EventRule) SetActionObject(v map[string]interface{})` + +SetActionObject sets ActionObject field to given value. + + +### GetDescription + +`func (o *EventRule) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *EventRule) 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 *EventRule) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *EventRule) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *EventRule) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *EventRule) 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 *EventRule) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *EventRule) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetTags + +`func (o *EventRule) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *EventRule) 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 *EventRule) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *EventRule) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCreated + +`func (o *EventRule) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *EventRule) 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 *EventRule) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *EventRule) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *EventRule) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *EventRule) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *EventRule) 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 *EventRule) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *EventRule) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *EventRule) 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/EventRule.md b/docs/EventRule.md index fa879bc560..520ca3cf87 100644 --- a/docs/EventRule.md +++ b/docs/EventRule.md @@ -6,15 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionType**](EventRuleActionType.md) | | **ActionObjectType** | **string** | | @@ -23,14 +20,14 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewEventRule -`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` +`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, ) *EventRule` NewEventRule instantiates a new EventRule object This constructor will assign default values to properties that have it defined, @@ -85,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *EventRule) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *EventRule) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *EventRule) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *EventRule) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *EventRule) GetDisplay() string` @@ -145,131 +167,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRule) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRule) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRule) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRule) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRule) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRule) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRule) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRule) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRule) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRule) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRule) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRule) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRule) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRule) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRule) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRule) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRule) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRule) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRule) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRule) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRule) GetEnabled() bool` @@ -295,6 +192,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRule) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRule) GetConditions() interface{}` @@ -519,6 +436,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *EventRule) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -549,6 +471,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *EventRule) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/EventRuleActionTypeLabel.md b/docs/EventRuleActionTypeLabel.md index 7c1a6f4597..5c6ede1748 100644 --- a/docs/EventRuleActionTypeLabel.md +++ b/docs/EventRuleActionTypeLabel.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"Script"`) +* `NOTIFICATION` (value: `"Notification"`) + [[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/EventRuleActionTypeValue.md b/docs/EventRuleActionTypeValue.md index 73ad2faee3..95b9781eb8 100644 --- a/docs/EventRuleActionTypeValue.md +++ b/docs/EventRuleActionTypeValue.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"script"`) +* `NOTIFICATION` (value: `"notification"`) + [[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/EventRuleEventTypesInner.md b/docs/EventRuleEventTypesInner.md new file mode 100644 index 0000000000..88b16acda8 --- /dev/null +++ b/docs/EventRuleEventTypesInner.md @@ -0,0 +1,23 @@ +# EventRuleEventTypesInner + +## Enum + + +* `OBJECT_CREATED` (value: `"object_created"`) + +* `OBJECT_UPDATED` (value: `"object_updated"`) + +* `OBJECT_DELETED` (value: `"object_deleted"`) + +* `JOB_STARTED` (value: `"job_started"`) + +* `JOB_COMPLETED` (value: `"job_completed"`) + +* `JOB_FAILED` (value: `"job_failed"`) + +* `JOB_ERRORED` (value: `"job_errored"`) + + +[[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/EventRuleRequest 2.md b/docs/EventRuleRequest 2.md new file mode 100644 index 0000000000..68df12155d --- /dev/null +++ b/docs/EventRuleRequest 2.md @@ -0,0 +1,420 @@ +# EventRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectTypes** | **[]string** | | +**Name** | **string** | | +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] +**ActionType** | [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | +**ActionObjectType** | **string** | | +**ActionObjectId** | Pointer to **NullableInt64** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewEventRuleRequest + +`func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` + +NewEventRuleRequest instantiates a new EventRuleRequest 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 + +### NewEventRuleRequestWithDefaults + +`func NewEventRuleRequestWithDefaults() *EventRuleRequest` + +NewEventRuleRequestWithDefaults instantiates a new EventRuleRequest 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 + +### GetObjectTypes + +`func (o *EventRuleRequest) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *EventRuleRequest) 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 *EventRuleRequest) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + + +### GetName + +`func (o *EventRuleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EventRuleRequest) 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 *EventRuleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetTypeCreate + +`func (o *EventRuleRequest) GetTypeCreate() bool` + +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. + +### GetTypeCreateOk + +`func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool)` + +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeCreate + +`func (o *EventRuleRequest) SetTypeCreate(v bool)` + +SetTypeCreate sets TypeCreate field to given value. + +### HasTypeCreate + +`func (o *EventRuleRequest) HasTypeCreate() bool` + +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *EventRuleRequest) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *EventRuleRequest) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *EventRuleRequest) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *EventRuleRequest) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *EventRuleRequest) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *EventRuleRequest) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. + +### GetTypeJobStart + +`func (o *EventRuleRequest) GetTypeJobStart() bool` + +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. + +### GetTypeJobStartOk + +`func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool)` + +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobStart + +`func (o *EventRuleRequest) SetTypeJobStart(v bool)` + +SetTypeJobStart sets TypeJobStart field to given value. + +### HasTypeJobStart + +`func (o *EventRuleRequest) HasTypeJobStart() bool` + +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *EventRuleRequest) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *EventRuleRequest) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *EventRuleRequest) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + +### GetEnabled + +`func (o *EventRuleRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *EventRuleRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *EventRuleRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *EventRuleRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConditions + +`func (o *EventRuleRequest) GetConditions() interface{}` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *EventRuleRequest) GetConditionsOk() (*interface{}, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *EventRuleRequest) SetConditions(v interface{})` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *EventRuleRequest) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### SetConditionsNil + +`func (o *EventRuleRequest) SetConditionsNil(b bool)` + + SetConditionsNil sets the value for Conditions to be an explicit nil + +### UnsetConditions +`func (o *EventRuleRequest) UnsetConditions()` + +UnsetConditions ensures that no value is present for Conditions, not even an explicit nil +### GetActionType + +`func (o *EventRuleRequest) GetActionType() EventRuleActionTypeValue` + +GetActionType returns the ActionType field if non-nil, zero value otherwise. + +### GetActionTypeOk + +`func (o *EventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool)` + +GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionType + +`func (o *EventRuleRequest) SetActionType(v EventRuleActionTypeValue)` + +SetActionType sets ActionType field to given value. + + +### GetActionObjectType + +`func (o *EventRuleRequest) GetActionObjectType() string` + +GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise. + +### GetActionObjectTypeOk + +`func (o *EventRuleRequest) GetActionObjectTypeOk() (*string, bool)` + +GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectType + +`func (o *EventRuleRequest) SetActionObjectType(v string)` + +SetActionObjectType sets ActionObjectType field to given value. + + +### GetActionObjectId + +`func (o *EventRuleRequest) GetActionObjectId() int64` + +GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise. + +### GetActionObjectIdOk + +`func (o *EventRuleRequest) GetActionObjectIdOk() (*int64, bool)` + +GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectId + +`func (o *EventRuleRequest) SetActionObjectId(v int64)` + +SetActionObjectId sets ActionObjectId field to given value. + +### HasActionObjectId + +`func (o *EventRuleRequest) HasActionObjectId() bool` + +HasActionObjectId returns a boolean if a field has been set. + +### SetActionObjectIdNil + +`func (o *EventRuleRequest) SetActionObjectIdNil(b bool)` + + SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil + +### UnsetActionObjectId +`func (o *EventRuleRequest) UnsetActionObjectId()` + +UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil +### GetDescription + +`func (o *EventRuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *EventRuleRequest) 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 *EventRuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *EventRuleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *EventRuleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *EventRuleRequest) 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 *EventRuleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *EventRuleRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetTags + +`func (o *EventRuleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *EventRuleRequest) 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 *EventRuleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *EventRuleRequest) 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/EventRuleRequest.md b/docs/EventRuleRequest.md index 68df12155d..1d3cd30448 100644 --- a/docs/EventRuleRequest.md +++ b/docs/EventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewEventRuleRequest -`func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` +`func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` NewEventRuleRequest instantiates a new EventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRuleRequest) GetConditions() interface{}` diff --git a/docs/ExportTemplate.md b/docs/ExportTemplate.md index 0371ebe2e9..1e9cc103d5 100644 --- a/docs/ExportTemplate.md +++ b/docs/ExportTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -14,18 +15,18 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] -**DataSynced** | **NullableTime** | | [readonly] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] +**DataSynced** | Pointer to **NullableTime** | | [optional] [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewExportTemplate -`func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` +`func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, ) *ExportTemplate` NewExportTemplate instantiates a new ExportTemplate object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ExportTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ExportTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ExportTemplate) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ExportTemplate) GetDisplay() string` @@ -262,20 +288,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplate) GetDataSource() DataSource` +`func (o *ExportTemplate) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool)` +`func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplate) SetDataSource(v DataSource)` +`func (o *ExportTemplate) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -307,20 +333,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ExportTemplate) GetDataFile() DataFile` +`func (o *ExportTemplate) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool)` +`func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ExportTemplate) SetDataFile(v DataFile)` +`func (o *ExportTemplate) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. @@ -344,6 +370,11 @@ and a boolean to check if the value has been set. SetDataSynced sets DataSynced field to given value. +### HasDataSynced + +`func (o *ExportTemplate) HasDataSynced() bool` + +HasDataSynced returns a boolean if a field has been set. ### SetDataSyncedNil @@ -374,6 +405,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ExportTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -404,6 +440,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ExportTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ExportTemplateRequest.md b/docs/ExportTemplateRequest.md index 1a7beb1a24..392c93a2c9 100644 --- a/docs/ExportTemplateRequest.md +++ b/docs/ExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -194,20 +194,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ExtrasAPI.md b/docs/ExtrasAPI.md index ed3040e29b..c75322cd57 100644 --- a/docs/ExtrasAPI.md +++ b/docs/ExtrasAPI.md @@ -103,8 +103,24 @@ Method | HTTP request | Description [**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}/ | +[**ExtrasNotificationGroupsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsBulkDestroy) | **Delete** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkPartialUpdate) | **Patch** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkUpdate) | **Put** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsCreate**](ExtrasAPI.md#ExtrasNotificationGroupsCreate) | **Post** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsDestroy) | **Delete** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsList**](ExtrasAPI.md#ExtrasNotificationGroupsList) | **Get** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsPartialUpdate) | **Patch** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsRetrieve**](ExtrasAPI.md#ExtrasNotificationGroupsRetrieve) | **Get** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsUpdate) | **Put** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationsBulkDestroy) | **Delete** /api/extras/notifications/ | +[**ExtrasNotificationsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkPartialUpdate) | **Patch** /api/extras/notifications/ | +[**ExtrasNotificationsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkUpdate) | **Put** /api/extras/notifications/ | +[**ExtrasNotificationsCreate**](ExtrasAPI.md#ExtrasNotificationsCreate) | **Post** /api/extras/notifications/ | +[**ExtrasNotificationsDestroy**](ExtrasAPI.md#ExtrasNotificationsDestroy) | **Delete** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsList**](ExtrasAPI.md#ExtrasNotificationsList) | **Get** /api/extras/notifications/ | +[**ExtrasNotificationsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsPartialUpdate) | **Patch** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsRetrieve**](ExtrasAPI.md#ExtrasNotificationsRetrieve) | **Get** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsUpdate**](ExtrasAPI.md#ExtrasNotificationsUpdate) | **Put** /api/extras/notifications/{id}/ | [**ExtrasObjectTypesList**](ExtrasAPI.md#ExtrasObjectTypesList) | **Get** /api/extras/object-types/ | [**ExtrasObjectTypesRetrieve**](ExtrasAPI.md#ExtrasObjectTypesRetrieve) | **Get** /api/extras/object-types/{id}/ | [**ExtrasSavedFiltersBulkDestroy**](ExtrasAPI.md#ExtrasSavedFiltersBulkDestroy) | **Delete** /api/extras/saved-filters/ | @@ -122,6 +138,15 @@ Method | HTTP request | Description [**ExtrasScriptsPartialUpdate**](ExtrasAPI.md#ExtrasScriptsPartialUpdate) | **Patch** /api/extras/scripts/{id}/ | [**ExtrasScriptsRetrieve**](ExtrasAPI.md#ExtrasScriptsRetrieve) | **Get** /api/extras/scripts/{id}/ | [**ExtrasScriptsUpdate**](ExtrasAPI.md#ExtrasScriptsUpdate) | **Put** /api/extras/scripts/{id}/ | +[**ExtrasSubscriptionsBulkDestroy**](ExtrasAPI.md#ExtrasSubscriptionsBulkDestroy) | **Delete** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkPartialUpdate) | **Patch** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkUpdate) | **Put** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsCreate**](ExtrasAPI.md#ExtrasSubscriptionsCreate) | **Post** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsDestroy**](ExtrasAPI.md#ExtrasSubscriptionsDestroy) | **Delete** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsList**](ExtrasAPI.md#ExtrasSubscriptionsList) | **Get** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsPartialUpdate) | **Patch** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsRetrieve**](ExtrasAPI.md#ExtrasSubscriptionsRetrieve) | **Get** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsUpdate**](ExtrasAPI.md#ExtrasSubscriptionsUpdate) | **Put** /api/extras/subscriptions/{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/ | @@ -164,7 +189,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -228,7 +253,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -294,7 +319,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -360,7 +385,7 @@ import ( ) func main() { - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -764,7 +789,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this bookmark. - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1146,7 +1171,7 @@ Name | Type | Description | Notes ## ExtrasConfigContextsList -> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).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).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).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).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).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -1256,10 +1281,6 @@ func main() { 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) @@ -1291,7 +1312,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).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).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).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).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).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).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).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.ExtrasConfigContextsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1402,10 +1423,6 @@ Name | Type | Description | Notes **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) | @@ -1760,7 +1777,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1824,7 +1841,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1890,7 +1907,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1956,7 +1973,7 @@ import ( ) func main() { - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2356,7 +2373,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -2500,7 +2517,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2572,7 +2589,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3024,7 +3041,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldChoiceSetsList -> PaginatedCustomFieldChoiceSetList ExtrasCustomFieldChoiceSetsList(ctx).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).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).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCustomFieldChoiceSetList ExtrasCustomFieldChoiceSetsList(ctx).BaseChoices(baseChoices).Choice(choice).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).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -3045,7 +3062,6 @@ import ( func main() { baseChoices := openapiclient.extras_custom_field_choice_sets_list_base_choices_parameter("IATA") // ExtrasCustomFieldChoiceSetsListBaseChoicesParameter | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) (optional) - baseChoicesN := openapiclient.extras_custom_field_choice_sets_list_base_choices_parameter("IATA") // ExtrasCustomFieldChoiceSetsListBaseChoicesParameter | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) (optional) choice := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) @@ -3101,7 +3117,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).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).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).Choice(choice).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).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3123,7 +3139,6 @@ Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **baseChoices** | [**ExtrasCustomFieldChoiceSetsListBaseChoicesParameter**](ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md) | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | - **baseChoicesN** | [**ExtrasCustomFieldChoiceSetsListBaseChoicesParameter**](ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md) | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | **choice** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | @@ -3741,7 +3756,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldsList -> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).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).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).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).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).FilterLogic(filterLogic).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).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UiEditable(uiEditable).UiVisible(uiVisible).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -3785,7 +3800,6 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) filterLogic := openapiclient.extras_custom_fields_list_filter_logic_parameter("disabled") // ExtrasCustomFieldsListFilterLogicParameter | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact (optional) - filterLogicN := openapiclient.extras_custom_fields_list_filter_logic_parameter("disabled") // ExtrasCustomFieldsListFilterLogicParameter | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact (optional) groupName := []string{"Inner_example"} // []string | (optional) groupNameEmpty := true // bool | (optional) groupNameIc := []string{"Inner_example"} // []string | (optional) @@ -3864,11 +3878,19 @@ func main() { searchWeightLte := []int32{int32(123)} // []int32 | (optional) searchWeightN := []int32{int32(123)} // []int32 | (optional) type_ := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeIe := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeIew := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeIsw := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) typeN := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeNic := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeNie := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeNiew := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeNisw := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) uiEditable := openapiclient.extras_custom_fields_list_ui_editable_parameter("hidden") // ExtrasCustomFieldsListUiEditableParameter | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden (optional) - uiEditableN := openapiclient.extras_custom_fields_list_ui_editable_parameter("hidden") // ExtrasCustomFieldsListUiEditableParameter | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden (optional) uiVisible := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) - uiVisibleN := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) + unique := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) validationMaximum := []int32{int32(123)} // []int32 | (optional) validationMaximumEmpty := true // bool | (optional) @@ -3905,7 +3927,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).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).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).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).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).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).FilterLogic(filterLogic).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).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UiEditable(uiEditable).UiVisible(uiVisible).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).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, "Full HTTP response: %v\n", r) @@ -3950,7 +3972,6 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **filterLogic** | [**ExtrasCustomFieldsListFilterLogicParameter**](ExtrasCustomFieldsListFilterLogicParameter.md) | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | - **filterLogicN** | [**ExtrasCustomFieldsListFilterLogicParameter**](ExtrasCustomFieldsListFilterLogicParameter.md) | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | **groupName** | **[]string** | | **groupNameEmpty** | **bool** | | **groupNameIc** | **[]string** | | @@ -4029,11 +4050,19 @@ Name | Type | Description | Notes **searchWeightLte** | **[]int32** | | **searchWeightN** | **[]int32** | | **type_** | **[]string** | The type of data this custom field holds | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | The type of data this custom field holds | + **typeIe** | **[]string** | The type of data this custom field holds | + **typeIew** | **[]string** | The type of data this custom field holds | + **typeIsw** | **[]string** | The type of data this custom field holds | **typeN** | **[]string** | The type of data this custom field holds | + **typeNic** | **[]string** | The type of data this custom field holds | + **typeNie** | **[]string** | The type of data this custom field holds | + **typeNiew** | **[]string** | The type of data this custom field holds | + **typeNisw** | **[]string** | The type of data this custom field holds | **uiEditable** | [**ExtrasCustomFieldsListUiEditableParameter**](ExtrasCustomFieldsListUiEditableParameter.md) | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden | - **uiEditableN** | [**ExtrasCustomFieldsListUiEditableParameter**](ExtrasCustomFieldsListUiEditableParameter.md) | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden | **uiVisible** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | - **uiVisibleN** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | + **unique** | **bool** | | **updatedByRequest** | **string** | | **validationMaximum** | **[]int32** | | **validationMaximumEmpty** | **bool** | | @@ -4632,7 +4661,7 @@ Name | Type | Description | Notes ## ExtrasCustomLinksList -> PaginatedCustomLinkList ExtrasCustomLinksList(ctx).ButtonClass(buttonClass).ButtonClassN(buttonClassN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomLinkList ExtrasCustomLinksList(ctx).ButtonClass(buttonClass).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -4652,8 +4681,7 @@ import ( ) func main() { - buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | 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 (optional) - buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | 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 (optional) + buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - 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 (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) @@ -4748,7 +4776,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).ButtonClass(buttonClass).ButtonClassN(buttonClassN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).ButtonClass(buttonClass).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).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).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).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).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).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, "Full HTTP response: %v\n", r) @@ -4769,8 +4797,7 @@ Other parameters are passed through a pointer to a apiExtrasCustomLinksListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | 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 | - **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | 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** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - 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 | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -5368,7 +5395,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5432,7 +5459,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5498,7 +5525,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5564,7 +5591,7 @@ import ( ) func main() { - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5679,7 +5706,7 @@ Name | Type | Description | Notes ## ExtrasEventRulesList -> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).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).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeEmpty(actionTypeEmpty).ActionTypeIc(actionTypeIc).ActionTypeIe(actionTypeIe).ActionTypeIew(actionTypeIew).ActionTypeIsw(actionTypeIsw).ActionTypeN(actionTypeN).ActionTypeNic(actionTypeNic).ActionTypeNie(actionTypeNie).ActionTypeNiew(actionTypeNiew).ActionTypeNisw(actionTypeNisw).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).EventType(eventType).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -5709,7 +5736,16 @@ func main() { actionObjectType := "actionObjectType_example" // string | (optional) actionObjectTypeN := "actionObjectTypeN_example" // string | (optional) actionType := []string{"Inner_example"} // []string | (optional) + actionTypeEmpty := true // bool | (optional) + actionTypeIc := []string{"Inner_example"} // []string | (optional) + actionTypeIe := []string{"Inner_example"} // []string | (optional) + actionTypeIew := []string{"Inner_example"} // []string | (optional) + actionTypeIsw := []string{"Inner_example"} // []string | (optional) actionTypeN := []string{"Inner_example"} // []string | (optional) + actionTypeNic := []string{"Inner_example"} // []string | (optional) + actionTypeNie := []string{"Inner_example"} // []string | (optional) + actionTypeNiew := []string{"Inner_example"} // []string | (optional) + actionTypeNisw := []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) @@ -5730,6 +5766,7 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) enabled := true // bool | (optional) + eventType := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5774,16 +5811,11 @@ func main() { q := "q_example" // string | Search (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.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).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).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeEmpty(actionTypeEmpty).ActionTypeIc(actionTypeIc).ActionTypeIe(actionTypeIe).ActionTypeIew(actionTypeIew).ActionTypeIsw(actionTypeIsw).ActionTypeN(actionTypeN).ActionTypeNic(actionTypeNic).ActionTypeNie(actionTypeNie).ActionTypeNiew(actionTypeNiew).ActionTypeNisw(actionTypeNisw).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).EventType(eventType).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5814,7 +5846,16 @@ Name | Type | Description | Notes **actionObjectType** | **string** | | **actionObjectTypeN** | **string** | | **actionType** | **[]string** | | + **actionTypeEmpty** | **bool** | | + **actionTypeIc** | **[]string** | | + **actionTypeIe** | **[]string** | | + **actionTypeIew** | **[]string** | | + **actionTypeIsw** | **[]string** | | **actionTypeN** | **[]string** | | + **actionTypeNic** | **[]string** | | + **actionTypeNie** | **[]string** | | + **actionTypeNiew** | **[]string** | | + **actionTypeNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -5835,6 +5876,7 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **enabled** | **bool** | | + **eventType** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5879,11 +5921,6 @@ Name | Type | Description | Notes **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | - **typeCreate** | **bool** | | - **typeDelete** | **bool** | | - **typeJobEnd** | **bool** | | - **typeJobStart** | **bool** | | - **typeUpdate** | **bool** | | **updatedByRequest** | **string** | | ### Return type @@ -6068,7 +6105,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this event rule. - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7014,7 +7051,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7078,7 +7115,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7144,7 +7181,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7210,7 +7247,7 @@ import ( ) func main() { - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7680,7 +7717,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this image attachment. - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8062,7 +8099,7 @@ Name | Type | Description | Notes ## ExtrasJournalEntriesList -> 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() +> 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).KindEmpty(kindEmpty).KindIc(kindIc).KindIe(kindIe).KindIew(kindIew).KindIsw(kindIsw).KindN(kindN).KindNic(kindNic).KindNie(kindNie).KindNiew(kindNiew).KindNisw(kindNisw).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() @@ -8108,7 +8145,16 @@ func main() { idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) kind := []string{"Inner_example"} // []string | (optional) + kindEmpty := true // bool | (optional) + kindIc := []string{"Inner_example"} // []string | (optional) + kindIe := []string{"Inner_example"} // []string | (optional) + kindIew := []string{"Inner_example"} // []string | (optional) + kindIsw := []string{"Inner_example"} // []string | (optional) kindN := []string{"Inner_example"} // []string | (optional) + kindNic := []string{"Inner_example"} // []string | (optional) + kindNie := []string{"Inner_example"} // []string | (optional) + kindNiew := []string{"Inner_example"} // []string | (optional) + kindNisw := []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) @@ -8127,7 +8173,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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() + 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).KindEmpty(kindEmpty).KindIc(kindIc).KindIe(kindIe).KindIew(kindIew).KindIsw(kindIsw).KindN(kindN).KindNic(kindNic).KindNie(kindNie).KindNiew(kindNiew).KindNisw(kindNisw).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, "Full HTTP response: %v\n", r) @@ -8174,7 +8220,16 @@ Name | Type | Description | Notes **idLte** | **[]int32** | | **idN** | **[]int32** | | **kind** | **[]string** | | + **kindEmpty** | **bool** | | + **kindIc** | **[]string** | | + **kindIe** | **[]string** | | + **kindIew** | **[]string** | | + **kindIsw** | **[]string** | | **kindN** | **[]string** | | + **kindNic** | **[]string** | | + **kindNie** | **[]string** | | + **kindNiew** | **[]string** | | + **kindNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -8423,9 +8478,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectChangesList +## ExtrasNotificationGroupsBulkDestroy -> 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).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).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() +> ExtrasNotificationGroupsBulkDestroy(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8440,83 +8495,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - action := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - actionN := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (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) - changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdN := []int32{int32(123)} // []int32 | (optional) - changedObjectType := "changedObjectType_example" // string | (optional) - changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) - 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) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - objectRepr := []string{"Inner_example"} // []string | (optional) - objectReprEmpty := true // bool | (optional) - objectReprIc := []string{"Inner_example"} // []string | (optional) - objectReprIe := []string{"Inner_example"} // []string | (optional) - objectReprIew := []string{"Inner_example"} // []string | (optional) - objectReprIsw := []string{"Inner_example"} // []string | (optional) - objectReprN := []string{"Inner_example"} // []string | (optional) - objectReprNic := []string{"Inner_example"} // []string | (optional) - objectReprNie := []string{"Inner_example"} // []string | (optional) - objectReprNiew := []string{"Inner_example"} // []string | (optional) - objectReprNisw := []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) - relatedObjectId := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdEmpty := true // bool | (optional) - relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) - relatedObjectType := int32(56) // int32 | (optional) - relatedObjectTypeN := int32(56) // int32 | (optional) - requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - timeAfter := time.Now() // time.Time | (optional) - timeBefore := time.Now() // time.Time | (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) - userName := []string{"Inner_example"} // []string | (optional) - userNameEmpty := true // bool | (optional) - userNameIc := []string{"Inner_example"} // []string | (optional) - userNameIe := []string{"Inner_example"} // []string | (optional) - userNameIew := []string{"Inner_example"} // []string | (optional) - userNameIsw := []string{"Inner_example"} // []string | (optional) - userNameN := []string{"Inner_example"} // []string | (optional) - userNameNic := []string{"Inner_example"} // []string | (optional) - userNameNie := []string{"Inner_example"} // []string | (optional) - userNameNiew := []string{"Inner_example"} // []string | (optional) - userNameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).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() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkDestroy(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkDestroy``: %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) } ``` @@ -8526,77 +8517,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **action** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **actionN** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **changedObjectId** | **[]int32** | | - **changedObjectIdEmpty** | **bool** | | - **changedObjectIdGt** | **[]int32** | | - **changedObjectIdGte** | **[]int32** | | - **changedObjectIdLt** | **[]int32** | | - **changedObjectIdLte** | **[]int32** | | - **changedObjectIdN** | **[]int32** | | - **changedObjectType** | **string** | | - **changedObjectTypeN** | **string** | | - **changedObjectTypeId** | **[]int32** | | - **changedObjectTypeIdN** | **[]int32** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **limit** | **int32** | Number of results to return per page. | - **objectRepr** | **[]string** | | - **objectReprEmpty** | **bool** | | - **objectReprIc** | **[]string** | | - **objectReprIe** | **[]string** | | - **objectReprIew** | **[]string** | | - **objectReprIsw** | **[]string** | | - **objectReprN** | **[]string** | | - **objectReprNic** | **[]string** | | - **objectReprNie** | **[]string** | | - **objectReprNiew** | **[]string** | | - **objectReprNisw** | **[]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 | - **relatedObjectId** | **[]int32** | | - **relatedObjectIdEmpty** | **bool** | | - **relatedObjectIdGt** | **[]int32** | | - **relatedObjectIdGte** | **[]int32** | | - **relatedObjectIdLt** | **[]int32** | | - **relatedObjectIdLte** | **[]int32** | | - **relatedObjectIdN** | **[]int32** | | - **relatedObjectType** | **int32** | | - **relatedObjectTypeN** | **int32** | | - **requestId** | **string** | | - **timeAfter** | **time.Time** | | - **timeBefore** | **time.Time** | | - **user** | **[]string** | User name | - **userN** | **[]string** | User name | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **userName** | **[]string** | | - **userNameEmpty** | **bool** | | - **userNameIc** | **[]string** | | - **userNameIe** | **[]string** | | - **userNameIew** | **[]string** | | - **userNameIsw** | **[]string** | | - **userNameN** | **[]string** | | - **userNameNic** | **[]string** | | - **userNameNie** | **[]string** | | - **userNameNiew** | **[]string** | | - **userNameNisw** | **[]string** | | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) + (empty response body) ### Authorization @@ -8604,17 +8534,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +- **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) -## ExtrasObjectChangesRetrieve +## ExtrasNotificationGroupsBulkPartialUpdate -> ObjectChange ExtrasObjectChangesRetrieve(ctx, id).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkPartialUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8633,40 +8563,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object change. + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate``: %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) + // response from `ExtrasNotificationGroupsBulkPartialUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate`: %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 object change. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectChange**](ObjectChange.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8674,7 +8600,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) @@ -8682,9 +8608,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesList +## ExtrasNotificationGroupsBulkUpdate -> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8703,23 +8629,17 @@ 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) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) + // response from `ExtrasNotificationGroupsBulkUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate`: %v\n", resp) } ``` @@ -8729,22 +8649,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkUpdateRequest 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 | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8752,7 +8666,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) @@ -8760,9 +8674,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesRetrieve +## ExtrasNotificationGroupsCreate -> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsCreate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8781,40 +8695,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object type. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsCreate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesRetrieve`: ObjectType - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) + // response from `ExtrasNotificationGroupsCreate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsCreate`: %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 object type. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectType**](ObjectType.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8822,7 +8732,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) @@ -8830,9 +8740,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkDestroy +## ExtrasNotificationGroupsDestroy -> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> ExtrasNotificationGroupsDestroy(ctx, id).Execute() @@ -8851,13 +8761,13 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8866,15 +8776,19 @@ 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 notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type @@ -8886,7 +8800,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8894,9 +8808,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkPartialUpdate +## ExtrasNotificationGroupsList -> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> PaginatedNotificationGroupList ExtrasNotificationGroupsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -8915,17 +8829,19 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + limit := int32(56) // int32 | Number of results to return per page. (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) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsList``: %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) + // response from `ExtrasNotificationGroupsList`: PaginatedNotificationGroupList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsList`: %v\n", resp) } ``` @@ -8935,16 +8851,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**PaginatedNotificationGroupList**](PaginatedNotificationGroupList.md) ### Authorization @@ -8952,7 +8870,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) @@ -8960,9 +8878,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkUpdate +## ExtrasNotificationGroupsPartialUpdate -> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsPartialUpdate(ctx, id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() @@ -8981,36 +8899,42 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. + patchedNotificationGroupRequest := *openapiclient.NewPatchedNotificationGroupRequest() // PatchedNotificationGroupRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsPartialUpdate(context.Background(), id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate``: %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) + // response from `ExtrasNotificationGroupsPartialUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate`: %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 notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + + **patchedNotificationGroupRequest** | [**PatchedNotificationGroupRequest**](PatchedNotificationGroupRequest.md) | | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9026,9 +8950,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersCreate +## ExtrasNotificationGroupsRetrieve -> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsRetrieve(ctx, id).Execute() @@ -9047,36 +8971,40 @@ import ( ) func main() { - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsRetrieve``: %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) + // response from `ExtrasNotificationGroupsRetrieve`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsRetrieve`: %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 notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type -[**SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9084,7 +9012,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) @@ -9092,9 +9020,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersDestroy +## ExtrasNotificationGroupsUpdate -> ExtrasSavedFiltersDestroy(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsUpdate(ctx, id).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -9113,15 +9041,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + id := int32(56) // int32 | A unique integer value identifying this notification group. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsUpdate(context.Background(), id).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ExtrasNotificationGroupsUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsUpdate`: %v\n", resp) } ``` @@ -9131,20 +9062,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 saved filter. | +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type - (empty response body) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9152,17 +9084,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: 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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSavedFiltersList +## ExtrasNotificationsBulkDestroy -> PaginatedSavedFilterList ExtrasSavedFiltersList(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).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).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).UpdatedByRequest(updatedByRequest).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() +> ExtrasNotificationsBulkDestroy(ctx).NotificationRequest(notificationRequest).Execute() @@ -9177,108 +9109,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) 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) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) - 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) - 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) - objectType := "objectType_example" // string | (optional) - objectTypeIc := "objectTypeIc_example" // string | (optional) - objectTypeIe := "objectTypeIe_example" // string | (optional) - objectTypeIew := "objectTypeIew_example" // string | (optional) - objectTypeIsw := "objectTypeIsw_example" // string | (optional) - objectTypeN := "objectTypeN_example" // string | (optional) - objectTypeNic := "objectTypeNic_example" // string | (optional) - objectTypeNie := "objectTypeNie_example" // string | (optional) - objectTypeNiew := "objectTypeNiew_example" // string | (optional) - objectTypeNisw := "objectTypeNisw_example" // string | (optional) - objectTypeId := []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) - q := "q_example" // string | Search (optional) - shared := true // bool | (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - usable := true // bool | (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) - 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) - weightLte := []int32{int32(123)} // []int32 | (optional) - weightN := []int32{int32(123)} // []int32 | (optional) + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(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).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).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).UpdatedByRequest(updatedByRequest).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() + r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkDestroy(context.Background()).NotificationRequest(notificationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkDestroy``: %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) } ``` @@ -9288,102 +9131,1954 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.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) + + +## ExtrasNotificationsBulkPartialUpdate + +> []Notification ExtrasNotificationsBulkPartialUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkPartialUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkPartialUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.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) + + +## ExtrasNotificationsBulkUpdate + +> []Notification ExtrasNotificationsBulkUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.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) + + +## ExtrasNotificationsCreate + +> Notification ExtrasNotificationsCreate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsCreate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsCreate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.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) + + +## ExtrasNotificationsDestroy + +> ExtrasNotificationsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasNotificationsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsDestroy``: %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 notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsDestroyRequest 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) + + +## ExtrasNotificationsList + +> PaginatedNotificationList ExtrasNotificationsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + limit := int32(56) // int32 | Number of results to return per page. (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) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsList`: PaginatedNotificationList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + +### Return type + +[**PaginatedNotificationList**](PaginatedNotificationList.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) + + +## ExtrasNotificationsPartialUpdate + +> Notification ExtrasNotificationsPartialUpdate(ctx, id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + patchedNotificationRequest := *openapiclient.NewPatchedNotificationRequest() // PatchedNotificationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsPartialUpdate(context.Background(), id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsPartialUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsPartialUpdate`: %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 notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedNotificationRequest** | [**PatchedNotificationRequest**](PatchedNotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.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) + + +## ExtrasNotificationsRetrieve + +> Notification ExtrasNotificationsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsRetrieve`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsRetrieve`: %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 notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Notification**](Notification.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) + + +## ExtrasNotificationsUpdate + +> Notification ExtrasNotificationsUpdate(ctx, id).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsUpdate(context.Background(), id).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsUpdate`: %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 notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.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) + + +## ExtrasObjectTypesList + +> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(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.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest 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 + +[**PaginatedObjectTypeList**](PaginatedObjectTypeList.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) + + +## ExtrasObjectTypesRetrieve + +> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object type. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesRetrieve`: ObjectType + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %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 object type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectType**](ObjectType.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) + + +## ExtrasSavedFiltersBulkDestroy + +> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.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) + + +## ExtrasSavedFiltersBulkPartialUpdate + +> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.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) + + +## ExtrasSavedFiltersBulkUpdate + +> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.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) + + +## ExtrasSavedFiltersCreate + +> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersCreate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.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) + + +## ExtrasSavedFiltersDestroy + +> ExtrasSavedFiltersDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "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 saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest 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) + + +## ExtrasSavedFiltersList + +> PaginatedSavedFilterList ExtrasSavedFiltersList(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).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).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).UpdatedByRequest(updatedByRequest).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() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + 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) + objectType := "objectType_example" // string | (optional) + objectTypeIc := "objectTypeIc_example" // string | (optional) + objectTypeIe := "objectTypeIe_example" // string | (optional) + objectTypeIew := "objectTypeIew_example" // string | (optional) + objectTypeIsw := "objectTypeIsw_example" // string | (optional) + objectTypeN := "objectTypeN_example" // string | (optional) + objectTypeNic := "objectTypeNic_example" // string | (optional) + objectTypeNie := "objectTypeNie_example" // string | (optional) + objectTypeNiew := "objectTypeNiew_example" // string | (optional) + objectTypeNisw := "objectTypeNisw_example" // string | (optional) + objectTypeId := []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) + q := "q_example" // string | Search (optional) + shared := true // bool | (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + usable := true // bool | (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) + 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) + weightLte := []int32{int32(123)} // []int32 | (optional) + weightN := []int32{int32(123)} // []int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(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).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).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).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).UpdatedByRequest(updatedByRequest).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, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern + + +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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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** | | + **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** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **objectType** | **string** | | + **objectTypeIc** | **string** | | + **objectTypeIe** | **string** | | + **objectTypeIew** | **string** | | + **objectTypeIsw** | **string** | | + **objectTypeN** | **string** | | + **objectTypeNic** | **string** | | + **objectTypeNie** | **string** | | + **objectTypeNiew** | **string** | | + **objectTypeNisw** | **string** | | + **objectTypeId** | **[]int32** | | + **objectTypeIdN** | **[]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 | + **shared** | **bool** | | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **updatedByRequest** | **string** | | + **usable** | **bool** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **weight** | **[]int32** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]int32** | | + **weightGte** | **[]int32** | | + **weightLt** | **[]int32** | | + **weightLte** | **[]int32** | | + **weightN** | **[]int32** | | + +### Return type + +[**PaginatedSavedFilterList**](PaginatedSavedFilterList.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) + + +## ExtrasSavedFiltersPartialUpdate + +> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %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 saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.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) + + +## ExtrasSavedFiltersRetrieve + +> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersRetrieve`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %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 saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SavedFilter**](SavedFilter.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) + + +## ExtrasSavedFiltersUpdate + +> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %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 saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.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) + + +## ExtrasScriptsCreate + +> Script ExtrasScriptsCreate(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsCreate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern + + +### Return type + +[**Script**](Script.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) + + +## ExtrasScriptsDestroy + +> ExtrasScriptsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %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** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest 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) + + +## ExtrasScriptsList + +> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).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).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + isExecutable := true // bool | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) + moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (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) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).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).Offset(offset).Ordering(ordering).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsList`: PaginatedScriptList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **isExecutable** | **bool** | | + **limit** | **int32** | Number of results to return per page. | + **moduleId** | **[]int32** | Script module (ID) | + **moduleIdN** | **[]int32** | Script module (ID) | + **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 | + +### Return type + +[**PaginatedScriptList**](PaginatedScriptList.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) + + +## ExtrasScriptsPartialUpdate + +> Script ExtrasScriptsPartialUpdate(ctx, id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + patchedScriptInputRequest := *openapiclient.NewPatchedScriptInputRequest() // PatchedScriptInputRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsPartialUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedScriptInputRequest** | [**PatchedScriptInputRequest**](PatchedScriptInputRequest.md) | | + +### Return type + +[**Script**](Script.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) + + +## ExtrasScriptsRetrieve + +> Script ExtrasScriptsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsRetrieve`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Script**](Script.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) + + +## ExtrasScriptsUpdate + +> Script ExtrasScriptsUpdate(ctx, id).ScriptInputRequest(scriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + scriptInputRequest := *openapiclient.NewScriptInputRequest(interface{}(123), false) // ScriptInputRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).ScriptInputRequest(scriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern 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) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **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** | | - **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** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **objectType** | **string** | | - **objectTypeIc** | **string** | | - **objectTypeIe** | **string** | | - **objectTypeIew** | **string** | | - **objectTypeIsw** | **string** | | - **objectTypeN** | **string** | | - **objectTypeNic** | **string** | | - **objectTypeNie** | **string** | | - **objectTypeNiew** | **string** | | - **objectTypeNisw** | **string** | | - **objectTypeId** | **[]int32** | | - **objectTypeIdN** | **[]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 | - **shared** | **bool** | | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | - **updatedByRequest** | **string** | | - **usable** | **bool** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **weight** | **[]int32** | | - **weightEmpty** | **bool** | | - **weightGt** | **[]int32** | | - **weightGte** | **[]int32** | | - **weightLt** | **[]int32** | | - **weightLte** | **[]int32** | | - **weightN** | **[]int32** | | + + **scriptInputRequest** | [**ScriptInputRequest**](ScriptInputRequest.md) | | ### Return type -[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) +[**Script**](Script.md) ### Authorization @@ -9391,7 +11086,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) @@ -9399,9 +11094,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersPartialUpdate +## ExtrasSubscriptionsBulkDestroy -> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() +> ExtrasSubscriptionsBulkDestroy(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9420,42 +11115,34 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkDestroy(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkDestroy``: %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) } ``` ### 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 saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) + (empty response body) ### Authorization @@ -9464,16 +11151,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **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) -## ExtrasSavedFiltersRetrieve +## ExtrasSubscriptionsBulkPartialUpdate -> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() +> []Subscription ExtrasSubscriptionsBulkPartialUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9492,40 +11179,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate``: %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) + // response from `ExtrasSubscriptionsBulkPartialUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate`: %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 saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9533,7 +11216,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) @@ -9541,9 +11224,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersUpdate +## ExtrasSubscriptionsBulkUpdate -> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() +> []Subscription ExtrasSubscriptionsBulkUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9562,42 +11245,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkUpdate``: %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) + // response from `ExtrasSubscriptionsBulkUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkUpdate`: %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 saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9613,9 +11290,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsCreate +## ExtrasSubscriptionsCreate -> Script ExtrasScriptsCreate(ctx).Execute() +> Subscription ExtrasSubscriptionsCreate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9634,31 +11311,36 @@ import ( ) func main() { + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsCreate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsCreate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) + // response from `ExtrasSubscriptionsCreate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsCreate`: %v\n", resp) } ``` ### Path Parameters -This endpoint does not need any parameter. + ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsCreateRequest struct via the builder pattern + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9666,7 +11348,7 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest ### 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) @@ -9674,9 +11356,9 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest [[Back to README]](../README.md) -## ExtrasScriptsDestroy +## ExtrasSubscriptionsDestroy -> ExtrasScriptsDestroy(ctx, id).Execute() +> ExtrasSubscriptionsDestroy(ctx, id).Execute() @@ -9695,13 +11377,13 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9713,11 +11395,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -9742,9 +11424,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsList +## ExtrasSubscriptionsList -> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).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).Offset(offset).Ordering(ordering).Q(q).Execute() +> PaginatedSubscriptionList ExtrasSubscriptionsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -9763,41 +11445,19 @@ 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) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - isExecutable := true // bool | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) - moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (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) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).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).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsList`: PaginatedScriptList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) + // response from `ExtrasSubscriptionsList`: PaginatedSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsList`: %v\n", resp) } ``` @@ -9807,40 +11467,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **isExecutable** | **bool** | | **limit** | **int32** | Number of results to return per page. | - **moduleId** | **[]int32** | Script module (ID) | - **moduleIdN** | **[]int32** | Script module (ID) | - **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 | ### Return type -[**PaginatedScriptList**](PaginatedScriptList.md) +[**PaginatedSubscriptionList**](PaginatedSubscriptionList.md) ### Authorization @@ -9856,9 +11494,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsPartialUpdate +## ExtrasSubscriptionsPartialUpdate -> Script ExtrasScriptsPartialUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsPartialUpdate(ctx, id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() @@ -9877,17 +11515,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + patchedSubscriptionRequest := *openapiclient.NewPatchedSubscriptionRequest() // PatchedSubscriptionRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsPartialUpdate(context.Background(), id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsPartialUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsPartialUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsPartialUpdate`: %v\n", resp) } ``` @@ -9897,20 +11536,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **patchedSubscriptionRequest** | [**PatchedSubscriptionRequest**](PatchedSubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9918,7 +11558,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) @@ -9926,9 +11566,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsRetrieve +## ExtrasSubscriptionsRetrieve -> Script ExtrasScriptsRetrieve(ctx, id).Execute() +> Subscription ExtrasSubscriptionsRetrieve(ctx, id).Execute() @@ -9947,17 +11587,17 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsRetrieve`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) + // response from `ExtrasSubscriptionsRetrieve`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsRetrieve`: %v\n", resp) } ``` @@ -9967,11 +11607,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -9980,7 +11620,7 @@ Name | Type | Description | Notes ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9996,9 +11636,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsUpdate +## ExtrasSubscriptionsUpdate -> Script ExtrasScriptsUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsUpdate(ctx, id).SubscriptionRequest(subscriptionRequest).Execute() @@ -10017,17 +11657,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsUpdate(context.Background(), id).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsUpdate`: %v\n", resp) } ``` @@ -10037,20 +11678,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -10058,7 +11700,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) @@ -11161,7 +12803,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).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).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).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).UpdatedByRequest(updatedByRequest).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).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).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodEmpty(httpMethodEmpty).HttpMethodIc(httpMethodIc).HttpMethodIe(httpMethodIe).HttpMethodIew(httpMethodIew).HttpMethodIsw(httpMethodIsw).HttpMethodN(httpMethodN).HttpMethodNic(httpMethodNic).HttpMethodNie(httpMethodNie).HttpMethodNiew(httpMethodNiew).HttpMethodNisw(httpMethodNisw).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).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).UpdatedByRequest(updatedByRequest).Execute() @@ -11223,7 +12865,16 @@ func main() { httpContentTypeNiew := []string{"Inner_example"} // []string | (optional) httpContentTypeNisw := []string{"Inner_example"} // []string | (optional) httpMethod := []string{"Inner_example"} // []string | (optional) + httpMethodEmpty := true // bool | (optional) + httpMethodIc := []string{"Inner_example"} // []string | (optional) + httpMethodIe := []string{"Inner_example"} // []string | (optional) + httpMethodIew := []string{"Inner_example"} // []string | (optional) + httpMethodIsw := []string{"Inner_example"} // []string | (optional) httpMethodN := []string{"Inner_example"} // []string | (optional) + httpMethodNic := []string{"Inner_example"} // []string | (optional) + httpMethodNie := []string{"Inner_example"} // []string | (optional) + httpMethodNiew := []string{"Inner_example"} // []string | (optional) + httpMethodNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -11273,7 +12924,7 @@ func main() { 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).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).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).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).UpdatedByRequest(updatedByRequest).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).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).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodEmpty(httpMethodEmpty).HttpMethodIc(httpMethodIc).HttpMethodIe(httpMethodIe).HttpMethodIew(httpMethodIew).HttpMethodIsw(httpMethodIsw).HttpMethodN(httpMethodN).HttpMethodNic(httpMethodNic).HttpMethodNie(httpMethodNie).HttpMethodNiew(httpMethodNiew).HttpMethodNisw(httpMethodNisw).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).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).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11336,7 +12987,16 @@ Name | Type | Description | Notes **httpContentTypeNiew** | **[]string** | | **httpContentTypeNisw** | **[]string** | | **httpMethod** | **[]string** | | + **httpMethodEmpty** | **bool** | | + **httpMethodIc** | **[]string** | | + **httpMethodIe** | **[]string** | | + **httpMethodIew** | **[]string** | | + **httpMethodIsw** | **[]string** | | **httpMethodN** | **[]string** | | + **httpMethodNic** | **[]string** | | + **httpMethodNie** | **[]string** | | + **httpMethodNiew** | **[]string** | | + **httpMethodNisw** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | diff --git a/docs/ExtrasCustomLinksListButtonClassParameter.md b/docs/ExtrasCustomLinksListButtonClassParameter.md index f0207ccf5d..5540c98b8c 100644 --- a/docs/ExtrasCustomLinksListButtonClassParameter.md +++ b/docs/ExtrasCustomLinksListButtonClassParameter.md @@ -9,6 +9,8 @@ * `CYAN` (value: `"cyan"`) +* `DEFAULT` (value: `"default"`) + * `GHOST_DARK` (value: `"ghost-dark"`) * `GRAY` (value: `"gray"`) @@ -19,8 +21,6 @@ * `ORANGE` (value: `"orange"`) -* `OUTLINE_DARK` (value: `"outline-dark"`) - * `PINK` (value: `"pink"`) * `PURPLE` (value: `"purple"`) diff --git a/docs/FHRPGroup.md b/docs/FHRPGroup.md index 1b55f2fa80..05206e4992 100644 --- a/docs/FHRPGroup.md +++ b/docs/FHRPGroup.md @@ -5,17 +5,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] +**Name** | Pointer to **string** | | [optional] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**NullableAuthenticationType**](AuthenticationType.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**IpAddresses** | [**[]BriefIPAddress**](BriefIPAddress.md) | | [readonly] ## Methods ### NewFHRPGroup -`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroup` +`func NewFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32, ipAddresses []BriefIPAddress, ) *FHRPGroup` NewFHRPGroup instantiates a new FHRPGroup object This constructor will assign default values to properties that have it defined, @@ -50,6 +60,31 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. +### GetName + +`func (o *FHRPGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroup) 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 *FHRPGroup) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroup) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetUrl `func (o *FHRPGroup) GetUrl() string` @@ -70,6 +105,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FHRPGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FHRPGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *FHRPGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *FHRPGroup) GetDisplay() string` @@ -92,20 +152,20 @@ SetDisplay sets Display field to given value. ### GetProtocol -`func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -130,6 +190,66 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroup) GetAuthType() AuthenticationType` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroup) SetAuthType(v AuthenticationType)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroup) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### SetAuthTypeNil + +`func (o *FHRPGroup) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *FHRPGroup) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +### GetAuthKey + +`func (o *FHRPGroup) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroup) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroup) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroup) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroup) GetDescription() string` @@ -155,6 +275,171 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroup) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroup) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroup) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroup) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroup) 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 *FHRPGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroup) 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 *FHRPGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *FHRPGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *FHRPGroup) 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 *FHRPGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *FHRPGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *FHRPGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *FHRPGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *FHRPGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *FHRPGroup) 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 *FHRPGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *FHRPGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *FHRPGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *FHRPGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpAddresses + +`func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress` + +GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise. + +### GetIpAddressesOk + +`func (o *FHRPGroup) GetIpAddressesOk() (*[]BriefIPAddress, bool)` + +GetIpAddressesOk returns a tuple with the IpAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddresses + +`func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress)` + +SetIpAddresses sets IpAddresses 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/FHRPGroupAssignment.md b/docs/FHRPGroupAssignment.md index c6fa9037f7..bf0d543732 100644 --- a/docs/FHRPGroupAssignment.md +++ b/docs/FHRPGroupAssignment.md @@ -7,19 +7,19 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Group** | [**FHRPGroup**](FHRPGroup.md) | | +**Group** | [**BriefFHRPGroup**](BriefFHRPGroup.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | -**Interface** | **interface{}** | | [readonly] +**Interface** | Pointer to **interface{}** | | [optional] [readonly] **Priority** | **int32** | | -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewFHRPGroupAssignment -`func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` +`func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignment` NewFHRPGroupAssignment instantiates a new FHRPGroupAssignment object This constructor will assign default values to properties that have it defined, @@ -96,20 +96,20 @@ SetDisplay sets Display field to given value. ### GetGroup -`func (o *FHRPGroupAssignment) GetGroup() FHRPGroup` +`func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool)` +`func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup)` +`func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup)` SetGroup sets Group field to given value. @@ -173,6 +173,11 @@ and a boolean to check if the value has been set. SetInterface sets Interface field to given value. +### HasInterface + +`func (o *FHRPGroupAssignment) HasInterface() bool` + +HasInterface returns a boolean if a field has been set. ### SetInterfaceNil @@ -223,6 +228,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *FHRPGroupAssignment) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -253,6 +263,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *FHRPGroupAssignment) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/FHRPGroupAssignmentRequest.md b/docs/FHRPGroupAssignmentRequest.md index b589eac9d8..89a52663c8 100644 --- a/docs/FHRPGroupAssignmentRequest.md +++ b/docs/FHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | | +**Group** | [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Priority** | **int32** | | @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignmentRequest -`func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` +`func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` NewFHRPGroupAssignmentRequest instantiates a new FHRPGroupAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupRequest.md b/docs/FHRPGroupRequest.md index f7572c47f5..6f404fa86e 100644 --- a/docs/FHRPGroupRequest.md +++ b/docs/FHRPGroupRequest.md @@ -4,15 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Name** | Pointer to **string** | | [optional] +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**NullableAuthenticationType**](AuthenticationType.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewFHRPGroupRequest -`func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` +`func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` NewFHRPGroupRequest instantiates a new FHRPGroupRequest object This constructor will assign default values to properties that have it defined, @@ -27,22 +33,47 @@ NewFHRPGroupRequestWithDefaults instantiates a new FHRPGroupRequest 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 *FHRPGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroupRequest) 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 *FHRPGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetProtocol -`func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -67,6 +98,66 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroupRequest) GetAuthType() AuthenticationType` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroupRequest) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### SetAuthTypeNil + +`func (o *FHRPGroupRequest) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *FHRPGroupRequest) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +### GetAuthKey + +`func (o *FHRPGroupRequest) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroupRequest) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroupRequest) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroupRequest) GetDescription() string` @@ -92,6 +183,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroupRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroupRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroupRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroupRequest) 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 *FHRPGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroupRequest) 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 *FHRPGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/FrontPort.md b/docs/FrontPort.md index 5cba25bc85..065a36cd5f 100644 --- a/docs/FrontPort.md +++ b/docs/FrontPort.md @@ -6,32 +6,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | **Color** | Pointer to **string** | | [optional] **RearPort** | [**FrontPortRearPort**](FrontPortRearPort.md) | | -**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] +**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewFrontPort -`func NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` +`func NewFrontPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cableEnd string, linkPeers []interface{}, occupied bool, ) *FrontPort` NewFrontPort instantiates a new FrontPort object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *FrontPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *FrontPort) GetDisplay() string` @@ -108,40 +134,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *FrontPort) GetDevice() Device` +`func (o *FrontPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPort) GetDeviceOk() (*Device, bool)` +`func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPort) SetDevice(v Device)` +`func (o *FrontPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPort) GetModule() Module` +`func (o *FrontPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPort) GetModuleOk() (*Module, bool)` +`func (o *FrontPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPort) SetModule(v Module)` +`func (o *FrontPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -348,23 +374,28 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *FrontPort) GetCable() Cable` +`func (o *FrontPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *FrontPort) GetCableOk() (*Cable, bool)` +`func (o *FrontPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *FrontPort) SetCable(v Cable)` +`func (o *FrontPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *FrontPort) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -435,7 +466,22 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### HasLinkPeersType + +`func (o *FrontPort) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *FrontPort) SetLinkPeersTypeNil(b bool)` + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *FrontPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *FrontPort) GetTags() []NestedTag` @@ -505,6 +551,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *FrontPort) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -535,6 +586,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *FrontPort) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/FrontPortRearPort.md b/docs/FrontPortRearPort.md index 59db5e9c0f..257054d3b2 100644 --- a/docs/FrontPortRearPort.md +++ b/docs/FrontPortRearPort.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPortRearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPortRearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *FrontPortRearPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *FrontPortRearPort) GetDisplay() string` diff --git a/docs/FrontPortRequest.md b/docs/FrontPortRequest.md index 91c8194b7a..a322554d9b 100644 --- a/docs/FrontPortRequest.md +++ b/docs/FrontPortRequest.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] **RearPort** | [**FrontPortRearPortRequest**](FrontPortRearPortRequest.md) | | -**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] +**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewFrontPortRequest -`func NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` +`func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` NewFrontPortRequest instantiates a new FrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *FrontPortRequest) GetDevice() DeviceRequest` +`func (o *FrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPortRequest) GetModule() ModuleRequest` +`func (o *FrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPortRequest) SetModule(v ModuleRequest)` +`func (o *FrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/FrontPortTemplate.md b/docs/FrontPortTemplate.md index 31aa9d758e..c63c095515 100644 --- a/docs/FrontPortTemplate.md +++ b/docs/FrontPortTemplate.md @@ -7,23 +7,23 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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] -**RearPort** | [**RearPortTemplate**](RearPortTemplate.md) | | -**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] +**RearPort** | [**BriefRearPortTemplate**](BriefRearPortTemplate.md) | | +**RearPortPosition** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewFrontPortTemplate -`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` +`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, ) *FrontPortTemplate` NewFrontPortTemplate instantiates a new FrontPortTemplate object This constructor will assign default values to properties that have it defined, @@ -100,20 +100,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *FrontPortTemplate) GetDeviceType() DeviceType` +`func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplate) SetDeviceType(v DeviceType)` +`func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -135,20 +135,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplate) GetModuleType() ModuleType` +`func (o *FrontPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplate) SetModuleType(v ModuleType)` +`func (o *FrontPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -260,20 +260,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplate) GetRearPort() RearPortTemplate` +`func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool)` +`func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate)` +`func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate)` SetRearPort sets RearPort field to given value. @@ -347,6 +347,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *FrontPortTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -377,6 +382,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *FrontPortTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md index 08dc1ef798..12d51f27b7 100644 --- a/docs/FrontPortTemplateRequest.md +++ b/docs/FrontPortTemplateRequest.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | -**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | +**RearPortPosition** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods ### NewFrontPortTemplateRequest -`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *FrontPortTemplateRequest` +`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *FrontPortTemplateRequest` NewFrontPortTemplateRequest instantiates a new FrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortType 2.md b/docs/FrontPortType 2.md new file mode 100644 index 0000000000..73c767d397 --- /dev/null +++ b/docs/FrontPortType 2.md @@ -0,0 +1,82 @@ +# FrontPortType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] +**Label** | Pointer to [**FrontPortTypeLabel**](FrontPortTypeLabel.md) | | [optional] + +## Methods + +### NewFrontPortType + +`func NewFrontPortType() *FrontPortType` + +NewFrontPortType instantiates a new FrontPortType 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 + +### NewFrontPortTypeWithDefaults + +`func NewFrontPortTypeWithDefaults() *FrontPortType` + +NewFrontPortTypeWithDefaults instantiates a new FrontPortType 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 *FrontPortType) GetValue() FrontPortTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *FrontPortType) GetValueOk() (*FrontPortTypeValue, 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 *FrontPortType) SetValue(v FrontPortTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *FrontPortType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *FrontPortType) GetLabel() FrontPortTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *FrontPortType) GetLabelOk() (*FrontPortTypeLabel, 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 *FrontPortType) SetLabel(v FrontPortTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *FrontPortType) 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/FrontPortTypeLabel.md b/docs/FrontPortTypeLabel.md index 767d7d0ef3..0024e2bae5 100644 --- a/docs/FrontPortTypeLabel.md +++ b/docs/FrontPortTypeLabel.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"Splice"`) +* `USB_TYPE_A` (value: `"USB Type A"`) + +* `USB_TYPE_B` (value: `"USB Type B"`) + +* `USB_TYPE_C` (value: `"USB Type C"`) + +* `USB_MINI_A` (value: `"USB Mini A"`) + +* `USB_MINI_B` (value: `"USB Mini B"`) + +* `USB_MICRO_A` (value: `"USB Micro A"`) + +* `USB_MICRO_B` (value: `"USB Micro B"`) + +* `USB_MICRO_AB` (value: `"USB Micro AB"`) + * `OTHER` (value: `"Other"`) diff --git a/docs/FrontPortTypeValue.md b/docs/FrontPortTypeValue.md index c6ac181220..6265dfe24d 100644 --- a/docs/FrontPortTypeValue.md +++ b/docs/FrontPortTypeValue.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"splice"`) +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + * `OTHER` (value: `"other"`) diff --git a/docs/GenericObject.md b/docs/GenericObject.md new file mode 100644 index 0000000000..d1beff45eb --- /dev/null +++ b/docs/GenericObject.md @@ -0,0 +1,108 @@ +# GenericObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int32** | | +**Object** | Pointer to **interface{}** | | [optional] [readonly] + +## Methods + +### NewGenericObject + +`func NewGenericObject(objectType string, objectId int32, ) *GenericObject` + +NewGenericObject instantiates a new GenericObject 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 + +### NewGenericObjectWithDefaults + +`func NewGenericObjectWithDefaults() *GenericObject` + +NewGenericObjectWithDefaults instantiates a new GenericObject 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 *GenericObject) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *GenericObject) 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 *GenericObject) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *GenericObject) GetObjectId() int32` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *GenericObject) GetObjectIdOk() (*int32, 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 *GenericObject) SetObjectId(v int32)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *GenericObject) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *GenericObject) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *GenericObject) SetObject(v interface{})` + +SetObject sets Object field to given value. + +### HasObject + +`func (o *GenericObject) HasObject() bool` + +HasObject returns a boolean if a field has been set. + +### SetObjectNil + +`func (o *GenericObject) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *GenericObject) UnsetObject()` + +UnsetObject ensures that no value is present for Object, 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/Group.md b/docs/Group.md index c9ac7b587d..9ca5c3a4b9 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Group) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Group) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Group) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Group) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Group) GetDisplay() string` diff --git a/docs/IKEPolicy.md b/docs/IKEPolicy.md index 91c8a8e58b..d90907f282 100644 --- a/docs/IKEPolicy.md +++ b/docs/IKEPolicy.md @@ -6,24 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersion**](IKEPolicyVersion.md) | | -**Mode** | [**IKEPolicyMode**](IKEPolicyMode.md) | | +**Mode** | Pointer to [**IKEPolicyMode**](IKEPolicyMode.md) | | [optional] **Proposals** | Pointer to [**[]IKEProposal**](IKEProposal.md) | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewIKEPolicy -`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` +`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, ) *IKEPolicy` NewIKEPolicy instantiates a new IKEPolicy object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IKEPolicy) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IKEPolicy) GetDisplay() string` @@ -182,6 +208,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicy) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals @@ -327,6 +358,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *IKEPolicy) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -357,6 +393,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *IKEPolicy) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/IKEPolicyMode 2.md b/docs/IKEPolicyMode 2.md new file mode 100644 index 0000000000..0d0455baf4 --- /dev/null +++ b/docs/IKEPolicyMode 2.md @@ -0,0 +1,82 @@ +# IKEPolicyMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional] +**Label** | Pointer to [**IKEPolicyModeLabel**](IKEPolicyModeLabel.md) | | [optional] + +## Methods + +### NewIKEPolicyMode + +`func NewIKEPolicyMode() *IKEPolicyMode` + +NewIKEPolicyMode instantiates a new IKEPolicyMode 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 + +### NewIKEPolicyModeWithDefaults + +`func NewIKEPolicyModeWithDefaults() *IKEPolicyMode` + +NewIKEPolicyModeWithDefaults instantiates a new IKEPolicyMode 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 *IKEPolicyMode) GetValue() IKEPolicyModeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IKEPolicyMode) GetValueOk() (*IKEPolicyModeValue, 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 *IKEPolicyMode) SetValue(v IKEPolicyModeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IKEPolicyMode) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IKEPolicyMode) GetLabel() IKEPolicyModeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IKEPolicyMode) GetLabelOk() (*IKEPolicyModeLabel, 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 *IKEPolicyMode) SetLabel(v IKEPolicyModeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IKEPolicyMode) 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/IKEPolicyRequest 2.md b/docs/IKEPolicyRequest 2.md new file mode 100644 index 0000000000..9a18d7f6dd --- /dev/null +++ b/docs/IKEPolicyRequest 2.md @@ -0,0 +1,249 @@ +# IKEPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Version** | [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | | +**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | +**Proposals** | Pointer to **[]int32** | | [optional] +**PresharedKey** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewIKEPolicyRequest + +`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue, ) *IKEPolicyRequest` + +NewIKEPolicyRequest instantiates a new IKEPolicyRequest 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 + +### NewIKEPolicyRequestWithDefaults + +`func NewIKEPolicyRequestWithDefaults() *IKEPolicyRequest` + +NewIKEPolicyRequestWithDefaults instantiates a new IKEPolicyRequest 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 *IKEPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *IKEPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *IKEPolicyRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVersion + +`func (o *IKEPolicyRequest) GetVersion() IKEPolicyVersionValue` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *IKEPolicyRequest) GetVersionOk() (*IKEPolicyVersionValue, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue)` + +SetVersion sets Version field to given value. + + +### GetMode + +`func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue)` + +SetMode sets Mode field to given value. + + +### GetProposals + +`func (o *IKEPolicyRequest) GetProposals() []int32` + +GetProposals returns the Proposals field if non-nil, zero value otherwise. + +### GetProposalsOk + +`func (o *IKEPolicyRequest) GetProposalsOk() (*[]int32, bool)` + +GetProposalsOk returns a tuple with the Proposals field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProposals + +`func (o *IKEPolicyRequest) SetProposals(v []int32)` + +SetProposals sets Proposals field to given value. + +### HasProposals + +`func (o *IKEPolicyRequest) HasProposals() bool` + +HasProposals returns a boolean if a field has been set. + +### GetPresharedKey + +`func (o *IKEPolicyRequest) GetPresharedKey() string` + +GetPresharedKey returns the PresharedKey field if non-nil, zero value otherwise. + +### GetPresharedKeyOk + +`func (o *IKEPolicyRequest) GetPresharedKeyOk() (*string, bool)` + +GetPresharedKeyOk returns a tuple with the PresharedKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPresharedKey + +`func (o *IKEPolicyRequest) SetPresharedKey(v string)` + +SetPresharedKey sets PresharedKey field to given value. + +### HasPresharedKey + +`func (o *IKEPolicyRequest) HasPresharedKey() bool` + +HasPresharedKey returns a boolean if a field has been set. + +### GetComments + +`func (o *IKEPolicyRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IKEPolicyRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IKEPolicyRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IKEPolicyRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IKEPolicyRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IKEPolicyRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IKEPolicyRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IKEPolicyRequest) 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 *IKEPolicyRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IKEPolicyRequest) HasCustomFields() bool` + +HasCustomFields 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/IKEPolicyRequest.md b/docs/IKEPolicyRequest.md index 9a18d7f6dd..919cb92b90 100644 --- a/docs/IKEPolicyRequest.md +++ b/docs/IKEPolicyRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | | -**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | +**Mode** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional] **Proposals** | Pointer to **[]int32** | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewIKEPolicyRequest -`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue, ) *IKEPolicyRequest` +`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, ) *IKEPolicyRequest` NewIKEPolicyRequest instantiates a new IKEPolicyRequest object This constructor will assign default values to properties that have it defined, @@ -117,6 +117,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicyRequest) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEPolicyVersionLabel 2.md b/docs/IKEPolicyVersionLabel 2.md new file mode 100644 index 0000000000..49e1a64150 --- /dev/null +++ b/docs/IKEPolicyVersionLabel 2.md @@ -0,0 +1,13 @@ +# IKEPolicyVersionLabel + +## Enum + + +* `IKEV1` (value: `"IKEv1"`) + +* `IKEV2` (value: `"IKEv2"`) + + +[[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/IKEProposal.md b/docs/IKEProposal.md index ee499984d3..aa43b8c3fb 100644 --- a/docs/IKEProposal.md +++ b/docs/IKEProposal.md @@ -6,25 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethod**](IKEProposalAuthenticationMethod.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | [optional] **Group** | [**IKEProposalGroup**](IKEProposalGroup.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewIKEProposal -`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` +`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, ) *IKEProposal` NewIKEProposal instantiates a new IKEProposal object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IKEProposal) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IKEProposal) GetDisplay() string` @@ -203,6 +229,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposal) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup @@ -353,6 +384,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *IKEProposal) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -383,6 +419,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *IKEProposal) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/IKEProposalAuthenticationAlgorithm 2.md b/docs/IKEProposalAuthenticationAlgorithm 2.md new file mode 100644 index 0000000000..c3924ab846 --- /dev/null +++ b/docs/IKEProposalAuthenticationAlgorithm 2.md @@ -0,0 +1,82 @@ +# IKEProposalAuthenticationAlgorithm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional] +**Label** | Pointer to [**IKEProposalAuthenticationAlgorithmLabel**](IKEProposalAuthenticationAlgorithmLabel.md) | | [optional] + +## Methods + +### NewIKEProposalAuthenticationAlgorithm + +`func NewIKEProposalAuthenticationAlgorithm() *IKEProposalAuthenticationAlgorithm` + +NewIKEProposalAuthenticationAlgorithm instantiates a new IKEProposalAuthenticationAlgorithm 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 + +### NewIKEProposalAuthenticationAlgorithmWithDefaults + +`func NewIKEProposalAuthenticationAlgorithmWithDefaults() *IKEProposalAuthenticationAlgorithm` + +NewIKEProposalAuthenticationAlgorithmWithDefaults instantiates a new IKEProposalAuthenticationAlgorithm 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 *IKEProposalAuthenticationAlgorithm) GetValue() IKEProposalAuthenticationAlgorithmValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IKEProposalAuthenticationAlgorithm) GetValueOk() (*IKEProposalAuthenticationAlgorithmValue, 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 *IKEProposalAuthenticationAlgorithm) SetValue(v IKEProposalAuthenticationAlgorithmValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IKEProposalAuthenticationAlgorithm) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IKEProposalAuthenticationAlgorithm) GetLabel() IKEProposalAuthenticationAlgorithmLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IKEProposalAuthenticationAlgorithm) GetLabelOk() (*IKEProposalAuthenticationAlgorithmLabel, 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 *IKEProposalAuthenticationAlgorithm) SetLabel(v IKEProposalAuthenticationAlgorithmLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IKEProposalAuthenticationAlgorithm) 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/IKEProposalAuthenticationAlgorithmValue 2.md b/docs/IKEProposalAuthenticationAlgorithmValue 2.md new file mode 100644 index 0000000000..4b3cbb9a4b --- /dev/null +++ b/docs/IKEProposalAuthenticationAlgorithmValue 2.md @@ -0,0 +1,19 @@ +# IKEProposalAuthenticationAlgorithmValue + +## Enum + + +* `SHA1` (value: `"hmac-sha1"`) + +* `SHA256` (value: `"hmac-sha256"`) + +* `SHA384` (value: `"hmac-sha384"`) + +* `SHA512` (value: `"hmac-sha512"`) + +* `MD5` (value: `"hmac-md5"`) + + +[[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/IKEProposalAuthenticationAlgorithmValue.md b/docs/IKEProposalAuthenticationAlgorithmValue.md index 4b3cbb9a4b..d7890c8de9 100644 --- a/docs/IKEProposalAuthenticationAlgorithmValue.md +++ b/docs/IKEProposalAuthenticationAlgorithmValue.md @@ -3,15 +3,15 @@ ## Enum -* `SHA1` (value: `"hmac-sha1"`) +* `HMAC_SHA1` (value: `"hmac-sha1"`) -* `SHA256` (value: `"hmac-sha256"`) +* `HMAC_SHA256` (value: `"hmac-sha256"`) -* `SHA384` (value: `"hmac-sha384"`) +* `HMAC_SHA384` (value: `"hmac-sha384"`) -* `SHA512` (value: `"hmac-sha512"`) +* `HMAC_SHA512` (value: `"hmac-sha512"`) -* `MD5` (value: `"hmac-md5"`) +* `HMAC_MD5` (value: `"hmac-md5"`) [[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/IKEProposalGroupLabel.md b/docs/IKEProposalGroupLabel.md index cffb6cf4cc..6bfa4f9a5c 100644 --- a/docs/IKEProposalGroupLabel.md +++ b/docs/IKEProposalGroupLabel.md @@ -3,53 +3,53 @@ ## Enum -* `_1` (value: `"Group 1"`) +* `GROUP_1` (value: `"Group 1"`) -* `_2` (value: `"Group 2"`) +* `GROUP_2` (value: `"Group 2"`) -* `_5` (value: `"Group 5"`) +* `GROUP_5` (value: `"Group 5"`) -* `_14` (value: `"Group 14"`) +* `GROUP_14` (value: `"Group 14"`) -* `_15` (value: `"Group 15"`) +* `GROUP_15` (value: `"Group 15"`) -* `_16` (value: `"Group 16"`) +* `GROUP_16` (value: `"Group 16"`) -* `_17` (value: `"Group 17"`) +* `GROUP_17` (value: `"Group 17"`) -* `_18` (value: `"Group 18"`) +* `GROUP_18` (value: `"Group 18"`) -* `_19` (value: `"Group 19"`) +* `GROUP_19` (value: `"Group 19"`) -* `_20` (value: `"Group 20"`) +* `GROUP_20` (value: `"Group 20"`) -* `_21` (value: `"Group 21"`) +* `GROUP_21` (value: `"Group 21"`) -* `_22` (value: `"Group 22"`) +* `GROUP_22` (value: `"Group 22"`) -* `_23` (value: `"Group 23"`) +* `GROUP_23` (value: `"Group 23"`) -* `_24` (value: `"Group 24"`) +* `GROUP_24` (value: `"Group 24"`) -* `_25` (value: `"Group 25"`) +* `GROUP_25` (value: `"Group 25"`) -* `_26` (value: `"Group 26"`) +* `GROUP_26` (value: `"Group 26"`) -* `_27` (value: `"Group 27"`) +* `GROUP_27` (value: `"Group 27"`) -* `_28` (value: `"Group 28"`) +* `GROUP_28` (value: `"Group 28"`) -* `_29` (value: `"Group 29"`) +* `GROUP_29` (value: `"Group 29"`) -* `_30` (value: `"Group 30"`) +* `GROUP_30` (value: `"Group 30"`) -* `_31` (value: `"Group 31"`) +* `GROUP_31` (value: `"Group 31"`) -* `_32` (value: `"Group 32"`) +* `GROUP_32` (value: `"Group 32"`) -* `_33` (value: `"Group 33"`) +* `GROUP_33` (value: `"Group 33"`) -* `_34` (value: `"Group 34"`) +* `GROUP_34` (value: `"Group 34"`) [[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/IKEProposalRequest 2.md b/docs/IKEProposalRequest 2.md new file mode 100644 index 0000000000..d61d24fd8a --- /dev/null +++ b/docs/IKEProposalRequest 2.md @@ -0,0 +1,275 @@ +# IKEProposalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | +**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | +**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | +**Group** | [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | +**SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewIKEProposalRequest + +`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` + +NewIKEProposalRequest instantiates a new IKEProposalRequest 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 + +### NewIKEProposalRequestWithDefaults + +`func NewIKEProposalRequestWithDefaults() *IKEProposalRequest` + +NewIKEProposalRequestWithDefaults instantiates a new IKEProposalRequest 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 *IKEProposalRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *IKEProposalRequest) 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 *IKEProposalRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *IKEProposalRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *IKEProposalRequest) 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 *IKEProposalRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *IKEProposalRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetAuthenticationMethod + +`func (o *IKEProposalRequest) GetAuthenticationMethod() IKEProposalAuthenticationMethodValue` + +GetAuthenticationMethod returns the AuthenticationMethod field if non-nil, zero value otherwise. + +### GetAuthenticationMethodOk + +`func (o *IKEProposalRequest) GetAuthenticationMethodOk() (*IKEProposalAuthenticationMethodValue, bool)` + +GetAuthenticationMethodOk returns a tuple with the AuthenticationMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationMethod + +`func (o *IKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthenticationMethodValue)` + +SetAuthenticationMethod sets AuthenticationMethod field to given value. + + +### GetEncryptionAlgorithm + +`func (o *IKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue` + +GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise. + +### GetEncryptionAlgorithmOk + +`func (o *IKEProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool)` + +GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncryptionAlgorithm + +`func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue)` + +SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value. + + +### GetAuthenticationAlgorithm + +`func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue` + +GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise. + +### GetAuthenticationAlgorithmOk + +`func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool)` + +GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthenticationAlgorithm + +`func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue)` + +SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. + + +### GetGroup + +`func (o *IKEProposalRequest) GetGroup() IKEProposalGroupValue` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *IKEProposalRequest) GetGroupOk() (*IKEProposalGroupValue, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *IKEProposalRequest) SetGroup(v IKEProposalGroupValue)` + +SetGroup sets Group field to given value. + + +### GetSaLifetime + +`func (o *IKEProposalRequest) GetSaLifetime() int32` + +GetSaLifetime returns the SaLifetime field if non-nil, zero value otherwise. + +### GetSaLifetimeOk + +`func (o *IKEProposalRequest) GetSaLifetimeOk() (*int32, bool)` + +GetSaLifetimeOk returns a tuple with the SaLifetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaLifetime + +`func (o *IKEProposalRequest) SetSaLifetime(v int32)` + +SetSaLifetime sets SaLifetime field to given value. + +### HasSaLifetime + +`func (o *IKEProposalRequest) HasSaLifetime() bool` + +HasSaLifetime returns a boolean if a field has been set. + +### SetSaLifetimeNil + +`func (o *IKEProposalRequest) SetSaLifetimeNil(b bool)` + + SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil + +### UnsetSaLifetime +`func (o *IKEProposalRequest) UnsetSaLifetime()` + +UnsetSaLifetime ensures that no value is present for SaLifetime, not even an explicit nil +### GetComments + +`func (o *IKEProposalRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IKEProposalRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IKEProposalRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IKEProposalRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IKEProposalRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IKEProposalRequest) 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 *IKEProposalRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IKEProposalRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IKEProposalRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IKEProposalRequest) 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 *IKEProposalRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IKEProposalRequest) HasCustomFields() bool` + +HasCustomFields 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/IKEProposalRequest.md b/docs/IKEProposalRequest.md index d61d24fd8a..a96502c8ad 100644 --- a/docs/IKEProposalRequest.md +++ b/docs/IKEProposalRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional] **Group** | [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewIKEProposalRequest -`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` +`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` NewIKEProposalRequest instantiates a new IKEProposalRequest object This constructor will assign default values to properties that have it defined, @@ -138,6 +138,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IPAddress.md b/docs/IPAddress.md index ed004ef146..97f78af9cc 100644 --- a/docs/IPAddress.md +++ b/docs/IPAddress.md @@ -6,16 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPAddressStatus**](IPAddressStatus.md) | | [optional] +**Role** | Pointer to [**IPAddressRole**](IPAddressRole.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**AssignedObject** | Pointer to **interface{}** | | [optional] [readonly] +**NatInside** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] +**NatOutside** | [**[]NestedIPAddress**](NestedIPAddress.md) | | [readonly] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewIPAddress -`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *IPAddress` +`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, natOutside []NestedIPAddress, ) *IPAddress` NewIPAddress instantiates a new IPAddress object This constructor will assign default values to properties that have it defined, @@ -70,6 +86,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPAddress) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPAddress) GetDisplay() string` @@ -130,6 +171,311 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddress) GetVrf() BriefVRF` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddress) GetVrfOk() (*BriefVRF, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddress) SetVrf(v BriefVRF)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddress) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddress) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddress) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddress) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddress) GetTenantOk() (*BriefTenant, 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 *IPAddress) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddress) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddress) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddress) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddress) GetStatus() IPAddressStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddress) GetStatusOk() (*IPAddressStatus, 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 *IPAddress) SetStatus(v IPAddressStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddress) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddress) GetRole() IPAddressRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddress) GetRoleOk() (*IPAddressRole, 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 *IPAddress) SetRole(v IPAddressRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddress) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddress) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddress) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddress) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddress) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddress) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddress) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddress) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddress) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddress) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddress) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetAssignedObject + +`func (o *IPAddress) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *IPAddress) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + +### HasAssignedObject + +`func (o *IPAddress) HasAssignedObject() bool` + +HasAssignedObject returns a boolean if a field has been set. + +### SetAssignedObjectNil + +`func (o *IPAddress) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *IPAddress) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetNatInside + +`func (o *IPAddress) GetNatInside() NestedIPAddress` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddress) SetNatInside(v NestedIPAddress)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddress) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddress) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddress) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetNatOutside + +`func (o *IPAddress) GetNatOutside() []NestedIPAddress` + +GetNatOutside returns the NatOutside field if non-nil, zero value otherwise. + +### GetNatOutsideOk + +`func (o *IPAddress) GetNatOutsideOk() (*[]NestedIPAddress, bool)` + +GetNatOutsideOk returns a tuple with the NatOutside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatOutside + +`func (o *IPAddress) SetNatOutside(v []NestedIPAddress)` + +SetNatOutside sets NatOutside field to given value. + + +### GetDnsName + +`func (o *IPAddress) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddress) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddress) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddress) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddress) GetDescription() string` @@ -155,6 +501,151 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddress) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddress) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddress) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddress) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddress) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddress) 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 *IPAddress) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddress) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddress) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddress) 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 *IPAddress) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddress) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *IPAddress) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *IPAddress) 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 *IPAddress) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *IPAddress) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *IPAddress) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *IPAddress) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *IPAddress) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *IPAddress) 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 *IPAddress) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *IPAddress) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *IPAddress) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *IPAddress) 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/IPAddressRequest.md b/docs/IPAddressRequest.md index 7944d1cf99..808e934b22 100644 --- a/docs/IPAddressRequest.md +++ b/docs/IPAddressRequest.md @@ -5,7 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] +**Role** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**NatInside** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -46,6 +57,256 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddressRequest) GetVrf() BriefVRFRequest` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddressRequest) SetVrf(v BriefVRFRequest)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddressRequest) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddressRequest) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddressRequest) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddressRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, 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 *IPAddressRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddressRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddressRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddressRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddressRequest) GetStatus() IPAddressStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, 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 *IPAddressRequest) SetStatus(v IPAddressStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddressRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddressRequest) GetRole() IPAddressRoleValue` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, 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 *IPAddressRequest) SetRole(v IPAddressRoleValue)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddressRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddressRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddressRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddressRequest) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddressRequest) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddressRequest) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddressRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddressRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddressRequest) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddressRequest) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddressRequest) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetNatInside + +`func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddressRequest) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddressRequest) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddressRequest) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetDnsName + +`func (o *IPAddressRequest) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddressRequest) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddressRequest) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddressRequest) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddressRequest) GetDescription() string` @@ -71,6 +332,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddressRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddressRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddressRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddressRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddressRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddressRequest) 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 *IPAddressRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddressRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddressRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddressRequest) 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 *IPAddressRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddressRequest) HasCustomFields() bool` + +HasCustomFields 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/IPAddressRole.md b/docs/IPAddressRole.md new file mode 100644 index 0000000000..a3556e5953 --- /dev/null +++ b/docs/IPAddressRole.md @@ -0,0 +1,82 @@ +# IPAddressRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] +**Label** | Pointer to [**IPAddressRoleLabel**](IPAddressRoleLabel.md) | | [optional] + +## Methods + +### NewIPAddressRole + +`func NewIPAddressRole() *IPAddressRole` + +NewIPAddressRole instantiates a new IPAddressRole 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 + +### NewIPAddressRoleWithDefaults + +`func NewIPAddressRoleWithDefaults() *IPAddressRole` + +NewIPAddressRoleWithDefaults instantiates a new IPAddressRole 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 *IPAddressRole) GetValue() IPAddressRoleValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, 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 *IPAddressRole) SetValue(v IPAddressRoleValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IPAddressRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IPAddressRole) GetLabel() IPAddressRoleLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, 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 *IPAddressRole) SetLabel(v IPAddressRoleLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IPAddressRole) 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/IPAddressRoleLabel.md b/docs/IPAddressRoleLabel.md new file mode 100644 index 0000000000..57453cb719 --- /dev/null +++ b/docs/IPAddressRoleLabel.md @@ -0,0 +1,25 @@ +# IPAddressRoleLabel + +## Enum + + +* `LOOPBACK` (value: `"Loopback"`) + +* `SECONDARY` (value: `"Secondary"`) + +* `ANYCAST` (value: `"Anycast"`) + +* `VIP` (value: `"VIP"`) + +* `VRRP` (value: `"VRRP"`) + +* `HSRP` (value: `"HSRP"`) + +* `GLBP` (value: `"GLBP"`) + +* `CARP` (value: `"CARP"`) + + +[[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/IPAddressRoleValue.md b/docs/IPAddressRoleValue.md new file mode 100644 index 0000000000..fe031504fc --- /dev/null +++ b/docs/IPAddressRoleValue.md @@ -0,0 +1,27 @@ +# IPAddressRoleValue + +## Enum + + +* `LOOPBACK` (value: `"loopback"`) + +* `SECONDARY` (value: `"secondary"`) + +* `ANYCAST` (value: `"anycast"`) + +* `VIP` (value: `"vip"`) + +* `VRRP` (value: `"vrrp"`) + +* `HSRP` (value: `"hsrp"`) + +* `GLBP` (value: `"glbp"`) + +* `CARP` (value: `"carp"`) + +* `EMPTY` (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/IPAddressStatus.md b/docs/IPAddressStatus.md new file mode 100644 index 0000000000..961c2b0d10 --- /dev/null +++ b/docs/IPAddressStatus.md @@ -0,0 +1,82 @@ +# IPAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] +**Label** | Pointer to [**IPAddressStatusLabel**](IPAddressStatusLabel.md) | | [optional] + +## Methods + +### NewIPAddressStatus + +`func NewIPAddressStatus() *IPAddressStatus` + +NewIPAddressStatus instantiates a new IPAddressStatus 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 + +### NewIPAddressStatusWithDefaults + +`func NewIPAddressStatusWithDefaults() *IPAddressStatus` + +NewIPAddressStatusWithDefaults instantiates a new IPAddressStatus 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 *IPAddressStatus) GetValue() IPAddressStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IPAddressStatus) GetValueOk() (*IPAddressStatusValue, 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 *IPAddressStatus) SetValue(v IPAddressStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IPAddressStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IPAddressStatus) GetLabelOk() (*IPAddressStatusLabel, 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 *IPAddressStatus) SetLabel(v IPAddressStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IPAddressStatus) 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/IPAddressStatusLabel.md b/docs/IPAddressStatusLabel.md new file mode 100644 index 0000000000..85c0415725 --- /dev/null +++ b/docs/IPAddressStatusLabel.md @@ -0,0 +1,19 @@ +# IPAddressStatusLabel + +## Enum + + +* `ACTIVE` (value: `"Active"`) + +* `RESERVED` (value: `"Reserved"`) + +* `DEPRECATED` (value: `"Deprecated"`) + +* `DHCP` (value: `"DHCP"`) + +* `SLAAC` (value: `"SLAAC"`) + + +[[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/IPAddressStatusValue.md b/docs/IPAddressStatusValue.md new file mode 100644 index 0000000000..8794985a82 --- /dev/null +++ b/docs/IPAddressStatusValue.md @@ -0,0 +1,19 @@ +# IPAddressStatusValue + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `RESERVED` (value: `"reserved"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `DHCP` (value: `"dhcp"`) + +* `SLAAC` (value: `"slaac"`) + + +[[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/IPRange 2.md b/docs/IPRange 2.md new file mode 100644 index 0000000000..4d6a50ec04 --- /dev/null +++ b/docs/IPRange 2.md @@ -0,0 +1,503 @@ +# IPRange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Family** | [**AggregateFamily**](AggregateFamily.md) | | +**StartAddress** | **string** | | +**EndAddress** | **string** | | +**Size** | **int32** | | [readonly] +**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] +**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] + +## Methods + +### NewIPRange + +`func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` + +NewIPRange instantiates a new IPRange 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 + +### NewIPRangeWithDefaults + +`func NewIPRangeWithDefaults() *IPRange` + +NewIPRangeWithDefaults instantiates a new IPRange 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 *IPRange) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *IPRange) 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 *IPRange) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *IPRange) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *IPRange) 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 *IPRange) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *IPRange) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *IPRange) 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 *IPRange) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetFamily + +`func (o *IPRange) GetFamily() AggregateFamily` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *IPRange) GetFamilyOk() (*AggregateFamily, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *IPRange) SetFamily(v AggregateFamily)` + +SetFamily sets Family field to given value. + + +### GetStartAddress + +`func (o *IPRange) GetStartAddress() string` + +GetStartAddress returns the StartAddress field if non-nil, zero value otherwise. + +### GetStartAddressOk + +`func (o *IPRange) GetStartAddressOk() (*string, bool)` + +GetStartAddressOk returns a tuple with the StartAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartAddress + +`func (o *IPRange) SetStartAddress(v string)` + +SetStartAddress sets StartAddress field to given value. + + +### GetEndAddress + +`func (o *IPRange) GetEndAddress() string` + +GetEndAddress returns the EndAddress field if non-nil, zero value otherwise. + +### GetEndAddressOk + +`func (o *IPRange) GetEndAddressOk() (*string, bool)` + +GetEndAddressOk returns a tuple with the EndAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndAddress + +`func (o *IPRange) SetEndAddress(v string)` + +SetEndAddress sets EndAddress field to given value. + + +### GetSize + +`func (o *IPRange) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *IPRange) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *IPRange) SetSize(v int32)` + +SetSize sets Size field to given value. + + +### GetVrf + +`func (o *IPRange) GetVrf() VRF` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPRange) GetVrfOk() (*VRF, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPRange) SetVrf(v VRF)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPRange) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPRange) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPRange) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPRange) GetTenant() Tenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPRange) GetTenantOk() (*Tenant, 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 *IPRange) SetTenant(v Tenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPRange) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPRange) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPRange) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPRange) GetStatus() IPRangeStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPRange) GetStatusOk() (*IPRangeStatus, 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 *IPRange) SetStatus(v IPRangeStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPRange) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPRange) GetRole() Role` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPRange) GetRoleOk() (*Role, 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 *IPRange) SetRole(v Role)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPRange) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *IPRange) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *IPRange) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetDescription + +`func (o *IPRange) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *IPRange) 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 *IPRange) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *IPRange) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *IPRange) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPRange) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPRange) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPRange) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPRange) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPRange) 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 *IPRange) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPRange) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPRange) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPRange) 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 *IPRange) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPRange) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *IPRange) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *IPRange) 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 *IPRange) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *IPRange) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *IPRange) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *IPRange) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *IPRange) 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 *IPRange) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *IPRange) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *IPRange) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetMarkUtilized + +`func (o *IPRange) GetMarkUtilized() bool` + +GetMarkUtilized returns the MarkUtilized field if non-nil, zero value otherwise. + +### GetMarkUtilizedOk + +`func (o *IPRange) GetMarkUtilizedOk() (*bool, bool)` + +GetMarkUtilizedOk returns a tuple with the MarkUtilized field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkUtilized + +`func (o *IPRange) SetMarkUtilized(v bool)` + +SetMarkUtilized sets MarkUtilized field to given value. + +### HasMarkUtilized + +`func (o *IPRange) HasMarkUtilized() bool` + +HasMarkUtilized 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/IPRange.md b/docs/IPRange.md index 4d6a50ec04..b8180a44f9 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -6,28 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **StartAddress** | **string** | | **EndAddress** | **string** | | **Size** | **int32** | | [readonly] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] ## Methods ### NewIPRange -`func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` +`func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, ) *IPRange` NewIPRange instantiates a new IPRange object This constructor will assign default values to properties that have it defined, @@ -82,6 +83,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPRange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPRange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPRange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPRange) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPRange) GetDisplay() string` @@ -184,20 +210,20 @@ SetSize sets Size field to given value. ### GetVrf -`func (o *IPRange) GetVrf() VRF` +`func (o *IPRange) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRange) GetVrfOk() (*VRF, bool)` +`func (o *IPRange) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRange) SetVrf(v VRF)` +`func (o *IPRange) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -219,20 +245,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRange) GetTenant() Tenant` +`func (o *IPRange) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRange) GetTenantOk() (*Tenant, bool)` +`func (o *IPRange) GetTenantOk() (*BriefTenant, 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 *IPRange) SetTenant(v Tenant)` +`func (o *IPRange) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -279,20 +305,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRange) GetRole() Role` +`func (o *IPRange) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRange) GetRoleOk() (*Role, bool)` +`func (o *IPRange) GetRoleOk() (*BriefRole, 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 *IPRange) SetRole(v Role)` +`func (o *IPRange) SetRole(v BriefRole)` SetRole sets Role field to given value. @@ -431,6 +457,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *IPRange) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -461,6 +492,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *IPRange) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/IPRangeRequest.md b/docs/IPRangeRequest.md index 35f6cc2210..11d861c010 100644 --- a/docs/IPRangeRequest.md +++ b/docs/IPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *IPRangeRequest) GetVrf() VRFRequest` +`func (o *IPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRangeRequest) SetVrf(v VRFRequest)` +`func (o *IPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRangeRequest) GetTenant() TenantRequest` +`func (o *IPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, 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 *IPRangeRequest) SetTenant(v TenantRequest)` +`func (o *IPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRangeRequest) GetRole() RoleRequest` +`func (o *IPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, 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 *IPRangeRequest) SetRole(v RoleRequest)` +`func (o *IPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/IPRangeStatusLabel 2.md b/docs/IPRangeStatusLabel 2.md new file mode 100644 index 0000000000..4a47b7fafb --- /dev/null +++ b/docs/IPRangeStatusLabel 2.md @@ -0,0 +1,15 @@ +# IPRangeStatusLabel + +## Enum + + +* `ACTIVE` (value: `"Active"`) + +* `RESERVED` (value: `"Reserved"`) + +* `DEPRECATED` (value: `"Deprecated"`) + + +[[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/IPSecPolicy.md b/docs/IPSecPolicy.md index 7d7e216e5a..416371b144 100644 --- a/docs/IPSecPolicy.md +++ b/docs/IPSecPolicy.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -14,14 +15,14 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewIPSecPolicy -`func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy` +`func NewIPSecPolicy(id int32, url string, display string, name string, ) *IPSecPolicy` NewIPSecPolicy instantiates a new IPSecPolicy object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPSecPolicy) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPSecPolicy) GetDisplay() string` @@ -285,6 +311,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *IPSecPolicy) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -315,6 +346,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *IPSecPolicy) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/IPSecProfile.md b/docs/IPSecProfile.md index 9582c52588..cb4e410edb 100644 --- a/docs/IPSecProfile.md +++ b/docs/IPSecProfile.md @@ -6,23 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileMode**](IPSecProfileMode.md) | | -**IkePolicy** | [**IKEPolicy**](IKEPolicy.md) | | -**IpsecPolicy** | [**IPSecPolicy**](IPSecPolicy.md) | | +**IkePolicy** | [**BriefIKEPolicy**](BriefIKEPolicy.md) | | +**IpsecPolicy** | [**BriefIPSecPolicy**](BriefIPSecPolicy.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewIPSecProfile -`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` +`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, ) *IPSecProfile` NewIPSecProfile instantiates a new IPSecProfile object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProfile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProfile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPSecProfile) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPSecProfile) GetDisplay() string` @@ -164,40 +190,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfile) GetIkePolicy() IKEPolicy` +`func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool)` +`func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfile) SetIkePolicy(v IKEPolicy)` +`func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy` +`func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool)` +`func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy)` +`func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy)` SetIpsecPolicy sets IpsecPolicy field to given value. @@ -296,6 +322,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *IPSecProfile) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -326,6 +357,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *IPSecProfile) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/IPSecProfileMode 2.md b/docs/IPSecProfileMode 2.md new file mode 100644 index 0000000000..d7a86a6b81 --- /dev/null +++ b/docs/IPSecProfileMode 2.md @@ -0,0 +1,82 @@ +# IPSecProfileMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | [optional] +**Label** | Pointer to [**IPSecProfileModeLabel**](IPSecProfileModeLabel.md) | | [optional] + +## Methods + +### NewIPSecProfileMode + +`func NewIPSecProfileMode() *IPSecProfileMode` + +NewIPSecProfileMode instantiates a new IPSecProfileMode 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 + +### NewIPSecProfileModeWithDefaults + +`func NewIPSecProfileModeWithDefaults() *IPSecProfileMode` + +NewIPSecProfileModeWithDefaults instantiates a new IPSecProfileMode 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 *IPSecProfileMode) GetValue() IPSecProfileModeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IPSecProfileMode) GetValueOk() (*IPSecProfileModeValue, 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 *IPSecProfileMode) SetValue(v IPSecProfileModeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IPSecProfileMode) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IPSecProfileMode) GetLabel() IPSecProfileModeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IPSecProfileMode) GetLabelOk() (*IPSecProfileModeLabel, 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 *IPSecProfileMode) SetLabel(v IPSecProfileModeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IPSecProfileMode) 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/IPSecProfileRequest.md b/docs/IPSecProfileRequest.md index 74f1a9171d..35d915482e 100644 --- a/docs/IPSecProfileRequest.md +++ b/docs/IPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewIPSecProfileRequest -`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *IPSecProfileRequest` +`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *IPSecProfileRequest` NewIPSecProfileRequest instantiates a new IPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProposal.md b/docs/IPSecProposal.md index 6664ca6a23..b01475721d 100644 --- a/docs/IPSecProposal.md +++ b/docs/IPSecProposal.md @@ -6,24 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | +**EncryptionAlgorithm** | Pointer to [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | [optional] **SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional] **SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewIPSecProposal -`func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal` +`func NewIPSecProposal(id int32, url string, display string, name string, ) *IPSecProposal` NewIPSecProposal instantiates a new IPSecProposal object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPSecProposal) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPSecProposal) GetDisplay() string` @@ -162,6 +188,11 @@ and a boolean to check if the value has been set. SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value. +### HasEncryptionAlgorithm + +`func (o *IPSecProposal) HasEncryptionAlgorithm() bool` + +HasEncryptionAlgorithm returns a boolean if a field has been set. ### GetAuthenticationAlgorithm @@ -182,6 +213,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IPSecProposal) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetSaLifetimeSeconds @@ -347,6 +383,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *IPSecProposal) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -377,6 +418,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *IPSecProposal) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/IPSecProposalRequest.md b/docs/IPSecProposalRequest.md index b32e9687a6..c64b9d4118 100644 --- a/docs/IPSecProposalRequest.md +++ b/docs/IPSecProposalRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | +**EncryptionAlgorithm** | Pointer to [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional] **SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional] **SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewIPSecProposalRequest -`func NewIPSecProposalRequest(name string, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, ) *IPSecProposalRequest` +`func NewIPSecProposalRequest(name string, ) *IPSecProposalRequest` NewIPSecProposalRequest instantiates a new IPSecProposalRequest object This constructor will assign default values to properties that have it defined, @@ -97,6 +97,11 @@ and a boolean to check if the value has been set. SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value. +### HasEncryptionAlgorithm + +`func (o *IPSecProposalRequest) HasEncryptionAlgorithm() bool` + +HasEncryptionAlgorithm returns a boolean if a field has been set. ### GetAuthenticationAlgorithm @@ -117,6 +122,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IPSecProposalRequest) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetSaLifetimeSeconds diff --git a/docs/ImageAttachment.md b/docs/ImageAttachment.md index 254d230c2f..a1dd2411da 100644 --- a/docs/ImageAttachment.md +++ b/docs/ImageAttachment.md @@ -9,19 +9,19 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Parent** | **interface{}** | | [readonly] +**Parent** | Pointer to **interface{}** | | [optional] [readonly] **Name** | Pointer to **string** | | [optional] **Image** | **string** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**ImageHeight** | **int32** | | [readonly] +**ImageWidth** | **int32** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewImageAttachment -`func NewImageAttachment(id int32, url string, display string, objectType string, objectId int64, parent interface{}, image string, imageHeight int32, imageWidth int32, created NullableTime, lastUpdated NullableTime, ) *ImageAttachment` +`func NewImageAttachment(id int32, url string, display string, objectType string, objectId int64, image string, imageHeight int32, imageWidth int32, ) *ImageAttachment` NewImageAttachment instantiates a new ImageAttachment object This constructor will assign default values to properties that have it defined, @@ -155,6 +155,11 @@ and a boolean to check if the value has been set. SetParent sets Parent field to given value. +### HasParent + +`func (o *ImageAttachment) HasParent() bool` + +HasParent returns a boolean if a field has been set. ### SetParentNil @@ -270,6 +275,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ImageAttachment) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -300,6 +310,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ImageAttachment) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ImageAttachmentRequest 2.md b/docs/ImageAttachmentRequest 2.md new file mode 100644 index 0000000000..7728d54e5a --- /dev/null +++ b/docs/ImageAttachmentRequest 2.md @@ -0,0 +1,161 @@ +# ImageAttachmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**Name** | Pointer to **string** | | [optional] +**Image** | ***os.File** | | +**ImageHeight** | **int32** | | +**ImageWidth** | **int32** | | + +## Methods + +### NewImageAttachmentRequest + +`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32, ) *ImageAttachmentRequest` + +NewImageAttachmentRequest instantiates a new ImageAttachmentRequest 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 + +### NewImageAttachmentRequestWithDefaults + +`func NewImageAttachmentRequestWithDefaults() *ImageAttachmentRequest` + +NewImageAttachmentRequestWithDefaults instantiates a new ImageAttachmentRequest 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 *ImageAttachmentRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *ImageAttachmentRequest) 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 *ImageAttachmentRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *ImageAttachmentRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *ImageAttachmentRequest) 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 *ImageAttachmentRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetName + +`func (o *ImageAttachmentRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ImageAttachmentRequest) 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 *ImageAttachmentRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ImageAttachmentRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetImage + +`func (o *ImageAttachmentRequest) GetImage() *os.File` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *ImageAttachmentRequest) GetImageOk() (**os.File, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *ImageAttachmentRequest) SetImage(v *os.File)` + +SetImage sets Image field to given value. + + +### GetImageHeight + +`func (o *ImageAttachmentRequest) GetImageHeight() int32` + +GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. + +### GetImageHeightOk + +`func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` + +GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageHeight + +`func (o *ImageAttachmentRequest) SetImageHeight(v int32)` + +SetImageHeight sets ImageHeight field to given value. + + +### GetImageWidth + +`func (o *ImageAttachmentRequest) GetImageWidth() int32` + +GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. + +### GetImageWidthOk + +`func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` + +GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageWidth + +`func (o *ImageAttachmentRequest) SetImageWidth(v int32)` + +SetImageWidth sets ImageWidth 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/ImageAttachmentRequest.md b/docs/ImageAttachmentRequest.md index 7728d54e5a..b79b8f76ea 100644 --- a/docs/ImageAttachmentRequest.md +++ b/docs/ImageAttachmentRequest.md @@ -8,14 +8,12 @@ Name | Type | Description | Notes **ObjectId** | **int64** | | **Name** | Pointer to **string** | | [optional] **Image** | ***os.File** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | ## Methods ### NewImageAttachmentRequest -`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32, ) *ImageAttachmentRequest` +`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, ) *ImageAttachmentRequest` NewImageAttachmentRequest instantiates a new ImageAttachmentRequest object This constructor will assign default values to properties that have it defined, @@ -115,46 +113,6 @@ and a boolean to check if the value has been set. SetImage sets Image field to given value. -### GetImageHeight - -`func (o *ImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *ImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - - -### GetImageWidth - -`func (o *ImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *ImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth 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/Interface 2.md b/docs/Interface 2.md new file mode 100644 index 0000000000..222d4907da --- /dev/null +++ b/docs/Interface 2.md @@ -0,0 +1,1394 @@ +# Interface + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**Device**](Device.md) | | +**Vdcs** | Pointer to [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | | [optional] +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | [**InterfaceType**](InterfaceType.md) | | +**Enabled** | Pointer to **bool** | | [optional] +**Parent** | Pointer to [**NullableNestedInterface**](NestedInterface.md) | | [optional] +**Bridge** | Pointer to [**NullableNestedInterface**](NestedInterface.md) | | [optional] +**Lag** | Pointer to [**NullableNestedInterface**](NestedInterface.md) | | [optional] +**Mtu** | Pointer to **NullableInt32** | | [optional] +**MacAddress** | Pointer to **NullableString** | | [optional] +**Speed** | Pointer to **NullableInt32** | | [optional] +**Duplex** | Pointer to [**NullableInterfaceDuplex**](InterfaceDuplex.md) | | [optional] +**Wwn** | Pointer to **NullableString** | | [optional] +**MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional] +**Description** | Pointer to **string** | | [optional] +**Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional] +**RfRole** | Pointer to [**InterfaceRfRole**](InterfaceRfRole.md) | | [optional] +**RfChannel** | Pointer to [**InterfaceRfChannel**](InterfaceRfChannel.md) | | [optional] +**PoeMode** | Pointer to [**InterfacePoeMode**](InterfacePoeMode.md) | | [optional] +**PoeType** | Pointer to [**InterfacePoeType**](InterfacePoeType.md) | | [optional] +**RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] +**RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] +**TxPower** | Pointer to **NullableInt32** | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**CableEnd** | **string** | | [readonly] +**WirelessLink** | [**NullableNestedWirelessLink**](NestedWirelessLink.md) | | [readonly] +**LinkPeers** | **[]interface{}** | | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**WirelessLans** | Pointer to [**[]WirelessLAN**](WirelessLAN.md) | | [optional] +**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] +**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**ConnectedEndpoints** | **[]interface{}** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsReachable** | **bool** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CountIpaddresses** | **int32** | | [readonly] +**CountFhrpGroups** | **int32** | | [readonly] +**Occupied** | **bool** | | [readonly] + +## Methods + +### NewInterface + +`func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` + +NewInterface instantiates a new Interface 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 + +### NewInterfaceWithDefaults + +`func NewInterfaceWithDefaults() *Interface` + +NewInterfaceWithDefaults instantiates a new Interface 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 *Interface) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Interface) 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 *Interface) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Interface) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Interface) 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 *Interface) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Interface) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Interface) 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 *Interface) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *Interface) GetDevice() Device` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *Interface) GetDeviceOk() (*Device, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *Interface) SetDevice(v Device)` + +SetDevice sets Device field to given value. + + +### GetVdcs + +`func (o *Interface) GetVdcs() []VirtualDeviceContext` + +GetVdcs returns the Vdcs field if non-nil, zero value otherwise. + +### GetVdcsOk + +`func (o *Interface) GetVdcsOk() (*[]VirtualDeviceContext, bool)` + +GetVdcsOk returns a tuple with the Vdcs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVdcs + +`func (o *Interface) SetVdcs(v []VirtualDeviceContext)` + +SetVdcs sets Vdcs field to given value. + +### HasVdcs + +`func (o *Interface) HasVdcs() bool` + +HasVdcs returns a boolean if a field has been set. + +### GetModule + +`func (o *Interface) GetModule() Module` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *Interface) GetModuleOk() (*Module, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *Interface) SetModule(v Module)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *Interface) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *Interface) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *Interface) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil +### GetName + +`func (o *Interface) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Interface) 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 *Interface) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *Interface) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *Interface) 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 *Interface) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *Interface) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *Interface) GetType() InterfaceType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Interface) GetTypeOk() (*InterfaceType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Interface) SetType(v InterfaceType)` + +SetType sets Type field to given value. + + +### GetEnabled + +`func (o *Interface) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *Interface) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *Interface) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *Interface) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetParent + +`func (o *Interface) GetParent() NestedInterface` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *Interface) GetParentOk() (*NestedInterface, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *Interface) SetParent(v NestedInterface)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *Interface) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *Interface) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *Interface) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetBridge + +`func (o *Interface) GetBridge() NestedInterface` + +GetBridge returns the Bridge field if non-nil, zero value otherwise. + +### GetBridgeOk + +`func (o *Interface) GetBridgeOk() (*NestedInterface, bool)` + +GetBridgeOk returns a tuple with the Bridge field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBridge + +`func (o *Interface) SetBridge(v NestedInterface)` + +SetBridge sets Bridge field to given value. + +### HasBridge + +`func (o *Interface) HasBridge() bool` + +HasBridge returns a boolean if a field has been set. + +### SetBridgeNil + +`func (o *Interface) SetBridgeNil(b bool)` + + SetBridgeNil sets the value for Bridge to be an explicit nil + +### UnsetBridge +`func (o *Interface) UnsetBridge()` + +UnsetBridge ensures that no value is present for Bridge, not even an explicit nil +### GetLag + +`func (o *Interface) GetLag() NestedInterface` + +GetLag returns the Lag field if non-nil, zero value otherwise. + +### GetLagOk + +`func (o *Interface) GetLagOk() (*NestedInterface, bool)` + +GetLagOk returns a tuple with the Lag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLag + +`func (o *Interface) SetLag(v NestedInterface)` + +SetLag sets Lag field to given value. + +### HasLag + +`func (o *Interface) HasLag() bool` + +HasLag returns a boolean if a field has been set. + +### SetLagNil + +`func (o *Interface) SetLagNil(b bool)` + + SetLagNil sets the value for Lag to be an explicit nil + +### UnsetLag +`func (o *Interface) UnsetLag()` + +UnsetLag ensures that no value is present for Lag, not even an explicit nil +### GetMtu + +`func (o *Interface) GetMtu() int32` + +GetMtu returns the Mtu field if non-nil, zero value otherwise. + +### GetMtuOk + +`func (o *Interface) GetMtuOk() (*int32, bool)` + +GetMtuOk returns a tuple with the Mtu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMtu + +`func (o *Interface) SetMtu(v int32)` + +SetMtu sets Mtu field to given value. + +### HasMtu + +`func (o *Interface) HasMtu() bool` + +HasMtu returns a boolean if a field has been set. + +### SetMtuNil + +`func (o *Interface) SetMtuNil(b bool)` + + SetMtuNil sets the value for Mtu to be an explicit nil + +### UnsetMtu +`func (o *Interface) UnsetMtu()` + +UnsetMtu ensures that no value is present for Mtu, not even an explicit nil +### GetMacAddress + +`func (o *Interface) GetMacAddress() string` + +GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. + +### GetMacAddressOk + +`func (o *Interface) GetMacAddressOk() (*string, bool)` + +GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddress + +`func (o *Interface) SetMacAddress(v string)` + +SetMacAddress sets MacAddress field to given value. + +### HasMacAddress + +`func (o *Interface) HasMacAddress() bool` + +HasMacAddress returns a boolean if a field has been set. + +### SetMacAddressNil + +`func (o *Interface) SetMacAddressNil(b bool)` + + SetMacAddressNil sets the value for MacAddress to be an explicit nil + +### UnsetMacAddress +`func (o *Interface) UnsetMacAddress()` + +UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +### GetSpeed + +`func (o *Interface) GetSpeed() int32` + +GetSpeed returns the Speed field if non-nil, zero value otherwise. + +### GetSpeedOk + +`func (o *Interface) GetSpeedOk() (*int32, bool)` + +GetSpeedOk returns a tuple with the Speed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpeed + +`func (o *Interface) SetSpeed(v int32)` + +SetSpeed sets Speed field to given value. + +### HasSpeed + +`func (o *Interface) HasSpeed() bool` + +HasSpeed returns a boolean if a field has been set. + +### SetSpeedNil + +`func (o *Interface) SetSpeedNil(b bool)` + + SetSpeedNil sets the value for Speed to be an explicit nil + +### UnsetSpeed +`func (o *Interface) UnsetSpeed()` + +UnsetSpeed ensures that no value is present for Speed, not even an explicit nil +### GetDuplex + +`func (o *Interface) GetDuplex() InterfaceDuplex` + +GetDuplex returns the Duplex field if non-nil, zero value otherwise. + +### GetDuplexOk + +`func (o *Interface) GetDuplexOk() (*InterfaceDuplex, bool)` + +GetDuplexOk returns a tuple with the Duplex field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuplex + +`func (o *Interface) SetDuplex(v InterfaceDuplex)` + +SetDuplex sets Duplex field to given value. + +### HasDuplex + +`func (o *Interface) HasDuplex() bool` + +HasDuplex returns a boolean if a field has been set. + +### SetDuplexNil + +`func (o *Interface) SetDuplexNil(b bool)` + + SetDuplexNil sets the value for Duplex to be an explicit nil + +### UnsetDuplex +`func (o *Interface) UnsetDuplex()` + +UnsetDuplex ensures that no value is present for Duplex, not even an explicit nil +### GetWwn + +`func (o *Interface) GetWwn() string` + +GetWwn returns the Wwn field if non-nil, zero value otherwise. + +### GetWwnOk + +`func (o *Interface) GetWwnOk() (*string, bool)` + +GetWwnOk returns a tuple with the Wwn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWwn + +`func (o *Interface) SetWwn(v string)` + +SetWwn sets Wwn field to given value. + +### HasWwn + +`func (o *Interface) HasWwn() bool` + +HasWwn returns a boolean if a field has been set. + +### SetWwnNil + +`func (o *Interface) SetWwnNil(b bool)` + + SetWwnNil sets the value for Wwn to be an explicit nil + +### UnsetWwn +`func (o *Interface) UnsetWwn()` + +UnsetWwn ensures that no value is present for Wwn, not even an explicit nil +### GetMgmtOnly + +`func (o *Interface) GetMgmtOnly() bool` + +GetMgmtOnly returns the MgmtOnly field if non-nil, zero value otherwise. + +### GetMgmtOnlyOk + +`func (o *Interface) GetMgmtOnlyOk() (*bool, bool)` + +GetMgmtOnlyOk returns a tuple with the MgmtOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMgmtOnly + +`func (o *Interface) SetMgmtOnly(v bool)` + +SetMgmtOnly sets MgmtOnly field to given value. + +### HasMgmtOnly + +`func (o *Interface) HasMgmtOnly() bool` + +HasMgmtOnly returns a boolean if a field has been set. + +### GetDescription + +`func (o *Interface) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Interface) 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 *Interface) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Interface) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMode + +`func (o *Interface) GetMode() InterfaceMode` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *Interface) GetModeOk() (*InterfaceMode, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *Interface) SetMode(v InterfaceMode)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *Interface) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetRfRole + +`func (o *Interface) GetRfRole() InterfaceRfRole` + +GetRfRole returns the RfRole field if non-nil, zero value otherwise. + +### GetRfRoleOk + +`func (o *Interface) GetRfRoleOk() (*InterfaceRfRole, 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 *Interface) SetRfRole(v InterfaceRfRole)` + +SetRfRole sets RfRole field to given value. + +### HasRfRole + +`func (o *Interface) HasRfRole() bool` + +HasRfRole returns a boolean if a field has been set. + +### GetRfChannel + +`func (o *Interface) GetRfChannel() InterfaceRfChannel` + +GetRfChannel returns the RfChannel field if non-nil, zero value otherwise. + +### GetRfChannelOk + +`func (o *Interface) GetRfChannelOk() (*InterfaceRfChannel, bool)` + +GetRfChannelOk returns a tuple with the RfChannel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfChannel + +`func (o *Interface) SetRfChannel(v InterfaceRfChannel)` + +SetRfChannel sets RfChannel field to given value. + +### HasRfChannel + +`func (o *Interface) HasRfChannel() bool` + +HasRfChannel returns a boolean if a field has been set. + +### GetPoeMode + +`func (o *Interface) GetPoeMode() InterfacePoeMode` + +GetPoeMode returns the PoeMode field if non-nil, zero value otherwise. + +### GetPoeModeOk + +`func (o *Interface) GetPoeModeOk() (*InterfacePoeMode, bool)` + +GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoeMode + +`func (o *Interface) SetPoeMode(v InterfacePoeMode)` + +SetPoeMode sets PoeMode field to given value. + +### HasPoeMode + +`func (o *Interface) HasPoeMode() bool` + +HasPoeMode returns a boolean if a field has been set. + +### GetPoeType + +`func (o *Interface) GetPoeType() InterfacePoeType` + +GetPoeType returns the PoeType field if non-nil, zero value otherwise. + +### GetPoeTypeOk + +`func (o *Interface) GetPoeTypeOk() (*InterfacePoeType, bool)` + +GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoeType + +`func (o *Interface) SetPoeType(v InterfacePoeType)` + +SetPoeType sets PoeType field to given value. + +### HasPoeType + +`func (o *Interface) HasPoeType() bool` + +HasPoeType returns a boolean if a field has been set. + +### GetRfChannelFrequency + +`func (o *Interface) GetRfChannelFrequency() float64` + +GetRfChannelFrequency returns the RfChannelFrequency field if non-nil, zero value otherwise. + +### GetRfChannelFrequencyOk + +`func (o *Interface) GetRfChannelFrequencyOk() (*float64, bool)` + +GetRfChannelFrequencyOk returns a tuple with the RfChannelFrequency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfChannelFrequency + +`func (o *Interface) SetRfChannelFrequency(v float64)` + +SetRfChannelFrequency sets RfChannelFrequency field to given value. + +### HasRfChannelFrequency + +`func (o *Interface) HasRfChannelFrequency() bool` + +HasRfChannelFrequency returns a boolean if a field has been set. + +### SetRfChannelFrequencyNil + +`func (o *Interface) SetRfChannelFrequencyNil(b bool)` + + SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil + +### UnsetRfChannelFrequency +`func (o *Interface) UnsetRfChannelFrequency()` + +UnsetRfChannelFrequency ensures that no value is present for RfChannelFrequency, not even an explicit nil +### GetRfChannelWidth + +`func (o *Interface) GetRfChannelWidth() float64` + +GetRfChannelWidth returns the RfChannelWidth field if non-nil, zero value otherwise. + +### GetRfChannelWidthOk + +`func (o *Interface) GetRfChannelWidthOk() (*float64, bool)` + +GetRfChannelWidthOk returns a tuple with the RfChannelWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfChannelWidth + +`func (o *Interface) SetRfChannelWidth(v float64)` + +SetRfChannelWidth sets RfChannelWidth field to given value. + +### HasRfChannelWidth + +`func (o *Interface) HasRfChannelWidth() bool` + +HasRfChannelWidth returns a boolean if a field has been set. + +### SetRfChannelWidthNil + +`func (o *Interface) SetRfChannelWidthNil(b bool)` + + SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil + +### UnsetRfChannelWidth +`func (o *Interface) UnsetRfChannelWidth()` + +UnsetRfChannelWidth ensures that no value is present for RfChannelWidth, not even an explicit nil +### GetTxPower + +`func (o *Interface) GetTxPower() int32` + +GetTxPower returns the TxPower field if non-nil, zero value otherwise. + +### GetTxPowerOk + +`func (o *Interface) GetTxPowerOk() (*int32, bool)` + +GetTxPowerOk returns a tuple with the TxPower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxPower + +`func (o *Interface) SetTxPower(v int32)` + +SetTxPower sets TxPower field to given value. + +### HasTxPower + +`func (o *Interface) HasTxPower() bool` + +HasTxPower returns a boolean if a field has been set. + +### SetTxPowerNil + +`func (o *Interface) SetTxPowerNil(b bool)` + + SetTxPowerNil sets the value for TxPower to be an explicit nil + +### UnsetTxPower +`func (o *Interface) UnsetTxPower()` + +UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil +### GetUntaggedVlan + +`func (o *Interface) GetUntaggedVlan() VLAN` + +GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. + +### GetUntaggedVlanOk + +`func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool)` + +GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUntaggedVlan + +`func (o *Interface) SetUntaggedVlan(v VLAN)` + +SetUntaggedVlan sets UntaggedVlan field to given value. + +### HasUntaggedVlan + +`func (o *Interface) HasUntaggedVlan() bool` + +HasUntaggedVlan returns a boolean if a field has been set. + +### SetUntaggedVlanNil + +`func (o *Interface) SetUntaggedVlanNil(b bool)` + + SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil + +### UnsetUntaggedVlan +`func (o *Interface) UnsetUntaggedVlan()` + +UnsetUntaggedVlan ensures that no value is present for UntaggedVlan, not even an explicit nil +### GetTaggedVlans + +`func (o *Interface) GetTaggedVlans() []VLAN` + +GetTaggedVlans returns the TaggedVlans field if non-nil, zero value otherwise. + +### GetTaggedVlansOk + +`func (o *Interface) GetTaggedVlansOk() (*[]VLAN, bool)` + +GetTaggedVlansOk returns a tuple with the TaggedVlans field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaggedVlans + +`func (o *Interface) SetTaggedVlans(v []VLAN)` + +SetTaggedVlans sets TaggedVlans field to given value. + +### HasTaggedVlans + +`func (o *Interface) HasTaggedVlans() bool` + +HasTaggedVlans returns a boolean if a field has been set. + +### GetMarkConnected + +`func (o *Interface) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *Interface) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *Interface) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *Interface) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetCable + +`func (o *Interface) GetCable() Cable` + +GetCable returns the Cable field if non-nil, zero value otherwise. + +### GetCableOk + +`func (o *Interface) GetCableOk() (*Cable, bool)` + +GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCable + +`func (o *Interface) SetCable(v Cable)` + +SetCable sets Cable field to given value. + + +### SetCableNil + +`func (o *Interface) SetCableNil(b bool)` + + SetCableNil sets the value for Cable to be an explicit nil + +### UnsetCable +`func (o *Interface) UnsetCable()` + +UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetCableEnd + +`func (o *Interface) GetCableEnd() string` + +GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. + +### GetCableEndOk + +`func (o *Interface) GetCableEndOk() (*string, bool)` + +GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCableEnd + +`func (o *Interface) SetCableEnd(v string)` + +SetCableEnd sets CableEnd field to given value. + + +### GetWirelessLink + +`func (o *Interface) GetWirelessLink() NestedWirelessLink` + +GetWirelessLink returns the WirelessLink field if non-nil, zero value otherwise. + +### GetWirelessLinkOk + +`func (o *Interface) GetWirelessLinkOk() (*NestedWirelessLink, bool)` + +GetWirelessLinkOk returns a tuple with the WirelessLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWirelessLink + +`func (o *Interface) SetWirelessLink(v NestedWirelessLink)` + +SetWirelessLink sets WirelessLink field to given value. + + +### SetWirelessLinkNil + +`func (o *Interface) SetWirelessLinkNil(b bool)` + + SetWirelessLinkNil sets the value for WirelessLink to be an explicit nil + +### UnsetWirelessLink +`func (o *Interface) UnsetWirelessLink()` + +UnsetWirelessLink ensures that no value is present for WirelessLink, not even an explicit nil +### GetLinkPeers + +`func (o *Interface) GetLinkPeers() []interface{}` + +GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. + +### GetLinkPeersOk + +`func (o *Interface) GetLinkPeersOk() (*[]interface{}, bool)` + +GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeers + +`func (o *Interface) SetLinkPeers(v []interface{})` + +SetLinkPeers sets LinkPeers field to given value. + + +### GetLinkPeersType + +`func (o *Interface) GetLinkPeersType() string` + +GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. + +### GetLinkPeersTypeOk + +`func (o *Interface) GetLinkPeersTypeOk() (*string, bool)` + +GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeersType + +`func (o *Interface) SetLinkPeersType(v string)` + +SetLinkPeersType sets LinkPeersType field to given value. + + +### GetWirelessLans + +`func (o *Interface) GetWirelessLans() []WirelessLAN` + +GetWirelessLans returns the WirelessLans field if non-nil, zero value otherwise. + +### GetWirelessLansOk + +`func (o *Interface) GetWirelessLansOk() (*[]WirelessLAN, bool)` + +GetWirelessLansOk returns a tuple with the WirelessLans field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWirelessLans + +`func (o *Interface) SetWirelessLans(v []WirelessLAN)` + +SetWirelessLans sets WirelessLans field to given value. + +### HasWirelessLans + +`func (o *Interface) HasWirelessLans() bool` + +HasWirelessLans returns a boolean if a field has been set. + +### GetVrf + +`func (o *Interface) GetVrf() VRF` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *Interface) GetVrfOk() (*VRF, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *Interface) SetVrf(v VRF)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *Interface) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *Interface) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *Interface) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetL2vpnTermination + +`func (o *Interface) GetL2vpnTermination() L2VPNTermination` + +GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. + +### GetL2vpnTerminationOk + +`func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` + +GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpnTermination + +`func (o *Interface) SetL2vpnTermination(v L2VPNTermination)` + +SetL2vpnTermination sets L2vpnTermination field to given value. + + +### SetL2vpnTerminationNil + +`func (o *Interface) SetL2vpnTerminationNil(b bool)` + + SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil + +### UnsetL2vpnTermination +`func (o *Interface) UnsetL2vpnTermination()` + +UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +### GetConnectedEndpoints + +`func (o *Interface) GetConnectedEndpoints() []interface{}` + +GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. + +### GetConnectedEndpointsOk + +`func (o *Interface) GetConnectedEndpointsOk() (*[]interface{}, bool)` + +GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpoints + +`func (o *Interface) SetConnectedEndpoints(v []interface{})` + +SetConnectedEndpoints sets ConnectedEndpoints field to given value. + + +### GetConnectedEndpointsType + +`func (o *Interface) GetConnectedEndpointsType() string` + +GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. + +### GetConnectedEndpointsTypeOk + +`func (o *Interface) GetConnectedEndpointsTypeOk() (*string, bool)` + +GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsType + +`func (o *Interface) SetConnectedEndpointsType(v string)` + +SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. + + +### GetConnectedEndpointsReachable + +`func (o *Interface) GetConnectedEndpointsReachable() bool` + +GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. + +### GetConnectedEndpointsReachableOk + +`func (o *Interface) GetConnectedEndpointsReachableOk() (*bool, bool)` + +GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsReachable + +`func (o *Interface) SetConnectedEndpointsReachable(v bool)` + +SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. + + +### GetTags + +`func (o *Interface) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Interface) 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 *Interface) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Interface) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Interface) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Interface) 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 *Interface) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Interface) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Interface) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Interface) 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 *Interface) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Interface) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Interface) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Interface) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Interface) 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 *Interface) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Interface) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Interface) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCountIpaddresses + +`func (o *Interface) GetCountIpaddresses() int32` + +GetCountIpaddresses returns the CountIpaddresses field if non-nil, zero value otherwise. + +### GetCountIpaddressesOk + +`func (o *Interface) GetCountIpaddressesOk() (*int32, bool)` + +GetCountIpaddressesOk returns a tuple with the CountIpaddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountIpaddresses + +`func (o *Interface) SetCountIpaddresses(v int32)` + +SetCountIpaddresses sets CountIpaddresses field to given value. + + +### GetCountFhrpGroups + +`func (o *Interface) GetCountFhrpGroups() int32` + +GetCountFhrpGroups returns the CountFhrpGroups field if non-nil, zero value otherwise. + +### GetCountFhrpGroupsOk + +`func (o *Interface) GetCountFhrpGroupsOk() (*int32, bool)` + +GetCountFhrpGroupsOk returns a tuple with the CountFhrpGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountFhrpGroups + +`func (o *Interface) SetCountFhrpGroups(v int32)` + +SetCountFhrpGroups sets CountFhrpGroups field to given value. + + +### GetOccupied + +`func (o *Interface) GetOccupied() bool` + +GetOccupied returns the Occupied field if non-nil, zero value otherwise. + +### GetOccupiedOk + +`func (o *Interface) GetOccupiedOk() (*bool, bool)` + +GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOccupied + +`func (o *Interface) SetOccupied(v bool)` + +SetOccupied sets Occupied 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/Interface.md b/docs/Interface.md index 222d4907da..284430d7b3 100644 --- a/docs/Interface.md +++ b/docs/Interface.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Vdcs** | Pointer to [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | | [optional] -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -18,7 +19,9 @@ Name | Type | Description | Notes **Bridge** | Pointer to [**NullableNestedInterface**](NestedInterface.md) | | [optional] **Lag** | Pointer to [**NullableNestedInterface**](NestedInterface.md) | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**MacAddress** | Pointer to **NullableString** | | [optional] [readonly] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddress**](BriefMACAddress.md) | | [optional] +**MacAddresses** | Pointer to [**[]BriefMACAddress**](BriefMACAddress.md) | | [optional] [readonly] **Speed** | Pointer to **NullableInt32** | | [optional] **Duplex** | Pointer to [**NullableInterfaceDuplex**](InterfaceDuplex.md) | | [optional] **Wwn** | Pointer to **NullableString** | | [optional] @@ -32,24 +35,26 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] +**QinqSvlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicy**](BriefVLANTranslationPolicy.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] **CableEnd** | **string** | | [readonly] -**WirelessLink** | [**NullableNestedWirelessLink**](NestedWirelessLink.md) | | [readonly] +**WirelessLink** | Pointer to [**NullableNestedWirelessLink**](NestedWirelessLink.md) | | [optional] [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] **WirelessLans** | Pointer to [**[]WirelessLAN**](WirelessLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] -**ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | Pointer to [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [optional] [readonly] +**ConnectedEndpoints** | Pointer to **[]interface{}** | | [optional] [readonly] +**ConnectedEndpointsType** | Pointer to **NullableString** | | [optional] [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **CountIpaddresses** | **int32** | | [readonly] **CountFhrpGroups** | **int32** | | [readonly] **Occupied** | **bool** | | [readonly] @@ -58,7 +63,7 @@ Name | Type | Description | Notes ### NewInterface -`func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` +`func NewInterface(id int32, url string, display string, device BriefDevice, name string, type_ InterfaceType, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` NewInterface instantiates a new Interface object This constructor will assign default values to properties that have it defined, @@ -113,6 +118,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Interface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Interface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Interface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Interface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Interface) GetDisplay() string` @@ -135,20 +165,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Interface) GetDevice() Device` +`func (o *Interface) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Interface) GetDeviceOk() (*Device, bool)` +`func (o *Interface) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Interface) SetDevice(v Device)` +`func (o *Interface) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -180,20 +210,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *Interface) GetModule() Module` +`func (o *Interface) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *Interface) GetModuleOk() (*Module, bool)` +`func (o *Interface) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *Interface) SetModule(v Module)` +`func (o *Interface) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -478,6 +508,76 @@ HasMacAddress returns a boolean if a field has been set. `func (o *Interface) UnsetMacAddress()` UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +### GetPrimaryMacAddress + +`func (o *Interface) GetPrimaryMacAddress() BriefMACAddress` + +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. + +### GetPrimaryMacAddressOk + +`func (o *Interface) GetPrimaryMacAddressOk() (*BriefMACAddress, bool)` + +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryMacAddress + +`func (o *Interface) SetPrimaryMacAddress(v BriefMACAddress)` + +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. + +### HasPrimaryMacAddress + +`func (o *Interface) HasPrimaryMacAddress() bool` + +HasPrimaryMacAddress returns a boolean if a field has been set. + +### SetPrimaryMacAddressNil + +`func (o *Interface) SetPrimaryMacAddressNil(b bool)` + + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil + +### UnsetPrimaryMacAddress +`func (o *Interface) UnsetPrimaryMacAddress()` + +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +### GetMacAddresses + +`func (o *Interface) GetMacAddresses() []BriefMACAddress` + +GetMacAddresses returns the MacAddresses field if non-nil, zero value otherwise. + +### GetMacAddressesOk + +`func (o *Interface) GetMacAddressesOk() (*[]BriefMACAddress, bool)` + +GetMacAddressesOk returns a tuple with the MacAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddresses + +`func (o *Interface) SetMacAddresses(v []BriefMACAddress)` + +SetMacAddresses sets MacAddresses field to given value. + +### HasMacAddresses + +`func (o *Interface) HasMacAddresses() bool` + +HasMacAddresses returns a boolean if a field has been set. + +### SetMacAddressesNil + +`func (o *Interface) SetMacAddressesNil(b bool)` + + SetMacAddressesNil sets the value for MacAddresses to be an explicit nil + +### UnsetMacAddresses +`func (o *Interface) UnsetMacAddresses()` + +UnsetMacAddresses ensures that no value is present for MacAddresses, not even an explicit nil ### GetSpeed `func (o *Interface) GetSpeed() int32` @@ -865,20 +965,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *Interface) GetUntaggedVlan() VLAN` +`func (o *Interface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *Interface) SetUntaggedVlan(v VLAN)` +`func (o *Interface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -923,6 +1023,76 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *Interface) GetQinqSvlan() BriefVLAN` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *Interface) GetQinqSvlanOk() (*BriefVLAN, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *Interface) SetQinqSvlan(v BriefVLAN)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *Interface) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *Interface) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *Interface) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *Interface) GetVlanTranslationPolicy() BriefVLANTranslationPolicy` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *Interface) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicy, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *Interface) SetVlanTranslationPolicy(v BriefVLANTranslationPolicy)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *Interface) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *Interface) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *Interface) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetMarkConnected `func (o *Interface) GetMarkConnected() bool` @@ -950,23 +1120,28 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *Interface) GetCable() Cable` +`func (o *Interface) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *Interface) GetCableOk() (*Cable, bool)` +`func (o *Interface) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *Interface) SetCable(v Cable)` +`func (o *Interface) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *Interface) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -1017,6 +1192,11 @@ and a boolean to check if the value has been set. SetWirelessLink sets WirelessLink field to given value. +### HasWirelessLink + +`func (o *Interface) HasWirelessLink() bool` + +HasWirelessLink returns a boolean if a field has been set. ### SetWirelessLinkNil @@ -1067,7 +1247,22 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### HasLinkPeersType + +`func (o *Interface) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *Interface) SetLinkPeersTypeNil(b bool)` + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *Interface) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetWirelessLans `func (o *Interface) GetWirelessLans() []WirelessLAN` @@ -1095,20 +1290,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *Interface) GetVrf() VRF` +`func (o *Interface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Interface) GetVrfOk() (*VRF, bool)` +`func (o *Interface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Interface) SetVrf(v VRF)` +`func (o *Interface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -1130,23 +1325,28 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *Interface) GetL2vpnTermination() L2VPNTermination` +`func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *Interface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. +### HasL2vpnTermination + +`func (o *Interface) HasL2vpnTermination() bool` + +HasL2vpnTermination returns a boolean if a field has been set. ### SetL2vpnTerminationNil @@ -1177,7 +1377,22 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### HasConnectedEndpoints + +`func (o *Interface) HasConnectedEndpoints() bool` + +HasConnectedEndpoints returns a boolean if a field has been set. + +### SetConnectedEndpointsNil +`func (o *Interface) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *Interface) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *Interface) GetConnectedEndpointsType() string` @@ -1197,7 +1412,22 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### HasConnectedEndpointsType + +`func (o *Interface) HasConnectedEndpointsType() bool` + +HasConnectedEndpointsType returns a boolean if a field has been set. + +### SetConnectedEndpointsTypeNil + +`func (o *Interface) SetConnectedEndpointsTypeNil(b bool)` + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *Interface) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *Interface) GetConnectedEndpointsReachable() bool` @@ -1287,6 +1517,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Interface) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -1317,6 +1552,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Interface) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/InterfaceDuplex 2.md b/docs/InterfaceDuplex 2.md new file mode 100644 index 0000000000..6ce177ec9c --- /dev/null +++ b/docs/InterfaceDuplex 2.md @@ -0,0 +1,82 @@ +# InterfaceDuplex + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**InterfaceDuplexValue**](InterfaceDuplexValue.md) | | [optional] +**Label** | Pointer to [**InterfaceDuplexLabel**](InterfaceDuplexLabel.md) | | [optional] + +## Methods + +### NewInterfaceDuplex + +`func NewInterfaceDuplex() *InterfaceDuplex` + +NewInterfaceDuplex instantiates a new InterfaceDuplex 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 + +### NewInterfaceDuplexWithDefaults + +`func NewInterfaceDuplexWithDefaults() *InterfaceDuplex` + +NewInterfaceDuplexWithDefaults instantiates a new InterfaceDuplex 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 *InterfaceDuplex) GetValue() InterfaceDuplexValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InterfaceDuplex) GetValueOk() (*InterfaceDuplexValue, 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 *InterfaceDuplex) SetValue(v InterfaceDuplexValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InterfaceDuplex) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *InterfaceDuplex) GetLabel() InterfaceDuplexLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *InterfaceDuplex) GetLabelOk() (*InterfaceDuplexLabel, 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 *InterfaceDuplex) SetLabel(v InterfaceDuplexLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *InterfaceDuplex) 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/InterfaceDuplexLabel 2.md b/docs/InterfaceDuplexLabel 2.md new file mode 100644 index 0000000000..1e762ac92c --- /dev/null +++ b/docs/InterfaceDuplexLabel 2.md @@ -0,0 +1,15 @@ +# InterfaceDuplexLabel + +## Enum + + +* `HALF` (value: `"Half"`) + +* `FULL` (value: `"Full"`) + +* `AUTO` (value: `"Auto"`) + + +[[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/InterfaceModeLabel.md b/docs/InterfaceModeLabel.md index ebacbf5d7b..1c6a44cb67 100644 --- a/docs/InterfaceModeLabel.md +++ b/docs/InterfaceModeLabel.md @@ -9,6 +9,8 @@ * `TAGGED__ALL` (value: `"Tagged (All)"`) +* `Q_IN_Q__802_1AD` (value: `"Q-in-Q (802.1ad)"`) + [[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/InterfaceModeValue.md b/docs/InterfaceModeValue.md index 9a41444a04..a99c92e0f4 100644 --- a/docs/InterfaceModeValue.md +++ b/docs/InterfaceModeValue.md @@ -9,6 +9,8 @@ * `TAGGED_ALL` (value: `"tagged-all"`) +* `Q_IN_Q` (value: `"q-in-q"`) + * `EMPTY` (value: `""`) diff --git a/docs/InterfaceRequest.md b/docs/InterfaceRequest.md index 9a58216f3f..646c7f0e28 100644 --- a/docs/InterfaceRequest.md +++ b/docs/InterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes **Bridge** | Pointer to [**NullableNestedInterfaceRequest**](NestedInterfaceRequest.md) | | [optional] **Lag** | Pointer to [**NullableNestedInterfaceRequest**](NestedInterfaceRequest.md) | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddressRequest**](BriefMACAddressRequest.md) | | [optional] **Speed** | Pointer to **NullableInt32** | | [optional] **Duplex** | Pointer to [**NullableInterfaceRequestDuplex**](InterfaceRequestDuplex.md) | | [optional] **Wwn** | Pointer to **NullableString** | | [optional] @@ -29,11 +29,13 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] +**QinqSvlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicyRequest**](BriefVLANTranslationPolicyRequest.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +43,7 @@ Name | Type | Description | Notes ### NewInterfaceRequest -`func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` +`func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` NewInterfaceRequest instantiates a new InterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +60,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InterfaceRequest) GetDevice() DeviceRequest` +`func (o *InterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +105,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *InterfaceRequest) GetModule() ModuleRequest` +`func (o *InterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *InterfaceRequest) SetModule(v ModuleRequest)` +`func (o *InterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -366,41 +368,41 @@ HasMtu returns a boolean if a field has been set. `func (o *InterfaceRequest) UnsetMtu()` UnsetMtu ensures that no value is present for Mtu, not even an explicit nil -### GetMacAddress +### GetPrimaryMacAddress -`func (o *InterfaceRequest) GetMacAddress() string` +`func (o *InterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest` -GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. -### GetMacAddressOk +### GetPrimaryMacAddressOk -`func (o *InterfaceRequest) GetMacAddressOk() (*string, bool)` +`func (o *InterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool)` -GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMacAddress +### SetPrimaryMacAddress -`func (o *InterfaceRequest) SetMacAddress(v string)` +`func (o *InterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest)` -SetMacAddress sets MacAddress field to given value. +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. -### HasMacAddress +### HasPrimaryMacAddress -`func (o *InterfaceRequest) HasMacAddress() bool` +`func (o *InterfaceRequest) HasPrimaryMacAddress() bool` -HasMacAddress returns a boolean if a field has been set. +HasPrimaryMacAddress returns a boolean if a field has been set. -### SetMacAddressNil +### SetPrimaryMacAddressNil -`func (o *InterfaceRequest) SetMacAddressNil(b bool)` +`func (o *InterfaceRequest) SetPrimaryMacAddressNil(b bool)` - SetMacAddressNil sets the value for MacAddress to be an explicit nil + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil -### UnsetMacAddress -`func (o *InterfaceRequest) UnsetMacAddress()` +### UnsetPrimaryMacAddress +`func (o *InterfaceRequest) UnsetPrimaryMacAddress()` -UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil ### GetSpeed `func (o *InterfaceRequest) GetSpeed() int32` @@ -788,20 +790,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -846,6 +848,76 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *InterfaceRequest) GetQinqSvlan() BriefVLANRequest` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *InterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *InterfaceRequest) SetQinqSvlan(v BriefVLANRequest)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *InterfaceRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *InterfaceRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *InterfaceRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *InterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *InterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *InterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *InterfaceRequest) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *InterfaceRequest) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *InterfaceRequest) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetMarkConnected `func (o *InterfaceRequest) GetMarkConnected() bool` @@ -898,20 +970,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *InterfaceRequest) GetVrf() VRFRequest` +`func (o *InterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *InterfaceRequest) SetVrf(v VRFRequest)` +`func (o *InterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/InterfaceRequestDuplex 2.md b/docs/InterfaceRequestDuplex 2.md new file mode 100644 index 0000000000..73dfae4513 --- /dev/null +++ b/docs/InterfaceRequestDuplex 2.md @@ -0,0 +1,17 @@ +# InterfaceRequestDuplex + +## Enum + + +* `HALF` (value: `"half"`) + +* `FULL` (value: `"full"`) + +* `AUTO` (value: `"auto"`) + +* `EMPTY` (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/InterfaceRfChannelLabel 2.md b/docs/InterfaceRfChannelLabel 2.md new file mode 100644 index 0000000000..f7a937b73d --- /dev/null +++ b/docs/InterfaceRfChannelLabel 2.md @@ -0,0 +1,403 @@ +# InterfaceRfChannelLabel + +## Enum + + +* `_1__2412_MHZ` (value: `"1 (2412 MHz)"`) + +* `_2__2417_MHZ` (value: `"2 (2417 MHz)"`) + +* `_3__2422_MHZ` (value: `"3 (2422 MHz)"`) + +* `_4__2427_MHZ` (value: `"4 (2427 MHz)"`) + +* `_5__2432_MHZ` (value: `"5 (2432 MHz)"`) + +* `_6__2437_MHZ` (value: `"6 (2437 MHz)"`) + +* `_7__2442_MHZ` (value: `"7 (2442 MHz)"`) + +* `_8__2447_MHZ` (value: `"8 (2447 MHz)"`) + +* `_9__2452_MHZ` (value: `"9 (2452 MHz)"`) + +* `_10__2457_MHZ` (value: `"10 (2457 MHz)"`) + +* `_11__2462_MHZ` (value: `"11 (2462 MHz)"`) + +* `_12__2467_MHZ` (value: `"12 (2467 MHz)"`) + +* `_13__2472_MHZ` (value: `"13 (2472 MHz)"`) + +* `_32__5160_20_MHZ` (value: `"32 (5160/20 MHz)"`) + +* `_34__5170_40_MHZ` (value: `"34 (5170/40 MHz)"`) + +* `_36__5180_20_MHZ` (value: `"36 (5180/20 MHz)"`) + +* `_38__5190_40_MHZ` (value: `"38 (5190/40 MHz)"`) + +* `_40__5200_20_MHZ` (value: `"40 (5200/20 MHz)"`) + +* `_42__5210_80_MHZ` (value: `"42 (5210/80 MHz)"`) + +* `_44__5220_20_MHZ` (value: `"44 (5220/20 MHz)"`) + +* `_46__5230_40_MHZ` (value: `"46 (5230/40 MHz)"`) + +* `_48__5240_20_MHZ` (value: `"48 (5240/20 MHz)"`) + +* `_50__5250_160_MHZ` (value: `"50 (5250/160 MHz)"`) + +* `_52__5260_20_MHZ` (value: `"52 (5260/20 MHz)"`) + +* `_54__5270_40_MHZ` (value: `"54 (5270/40 MHz)"`) + +* `_56__5280_20_MHZ` (value: `"56 (5280/20 MHz)"`) + +* `_58__5290_80_MHZ` (value: `"58 (5290/80 MHz)"`) + +* `_60__5300_20_MHZ` (value: `"60 (5300/20 MHz)"`) + +* `_62__5310_40_MHZ` (value: `"62 (5310/40 MHz)"`) + +* `_64__5320_20_MHZ` (value: `"64 (5320/20 MHz)"`) + +* `_100__5500_20_MHZ` (value: `"100 (5500/20 MHz)"`) + +* `_102__5510_40_MHZ` (value: `"102 (5510/40 MHz)"`) + +* `_104__5520_20_MHZ` (value: `"104 (5520/20 MHz)"`) + +* `_106__5530_80_MHZ` (value: `"106 (5530/80 MHz)"`) + +* `_108__5540_20_MHZ` (value: `"108 (5540/20 MHz)"`) + +* `_110__5550_40_MHZ` (value: `"110 (5550/40 MHz)"`) + +* `_112__5560_20_MHZ` (value: `"112 (5560/20 MHz)"`) + +* `_114__5570_160_MHZ` (value: `"114 (5570/160 MHz)"`) + +* `_116__5580_20_MHZ` (value: `"116 (5580/20 MHz)"`) + +* `_118__5590_40_MHZ` (value: `"118 (5590/40 MHz)"`) + +* `_120__5600_20_MHZ` (value: `"120 (5600/20 MHz)"`) + +* `_122__5610_80_MHZ` (value: `"122 (5610/80 MHz)"`) + +* `_124__5620_20_MHZ` (value: `"124 (5620/20 MHz)"`) + +* `_126__5630_40_MHZ` (value: `"126 (5630/40 MHz)"`) + +* `_128__5640_20_MHZ` (value: `"128 (5640/20 MHz)"`) + +* `_132__5660_20_MHZ` (value: `"132 (5660/20 MHz)"`) + +* `_134__5670_40_MHZ` (value: `"134 (5670/40 MHz)"`) + +* `_136__5680_20_MHZ` (value: `"136 (5680/20 MHz)"`) + +* `_138__5690_80_MHZ` (value: `"138 (5690/80 MHz)"`) + +* `_140__5700_20_MHZ` (value: `"140 (5700/20 MHz)"`) + +* `_142__5710_40_MHZ` (value: `"142 (5710/40 MHz)"`) + +* `_144__5720_20_MHZ` (value: `"144 (5720/20 MHz)"`) + +* `_149__5745_20_MHZ` (value: `"149 (5745/20 MHz)"`) + +* `_151__5755_40_MHZ` (value: `"151 (5755/40 MHz)"`) + +* `_153__5765_20_MHZ` (value: `"153 (5765/20 MHz)"`) + +* `_155__5775_80_MHZ` (value: `"155 (5775/80 MHz)"`) + +* `_157__5785_20_MHZ` (value: `"157 (5785/20 MHz)"`) + +* `_159__5795_40_MHZ` (value: `"159 (5795/40 MHz)"`) + +* `_161__5805_20_MHZ` (value: `"161 (5805/20 MHz)"`) + +* `_163__5815_160_MHZ` (value: `"163 (5815/160 MHz)"`) + +* `_165__5825_20_MHZ` (value: `"165 (5825/20 MHz)"`) + +* `_167__5835_40_MHZ` (value: `"167 (5835/40 MHz)"`) + +* `_169__5845_20_MHZ` (value: `"169 (5845/20 MHz)"`) + +* `_171__5855_80_MHZ` (value: `"171 (5855/80 MHz)"`) + +* `_173__5865_20_MHZ` (value: `"173 (5865/20 MHz)"`) + +* `_175__5875_40_MHZ` (value: `"175 (5875/40 MHz)"`) + +* `_177__5885_20_MHZ` (value: `"177 (5885/20 MHz)"`) + +* `_1__5955_20_MHZ` (value: `"1 (5955/20 MHz)"`) + +* `_3__5965_40_MHZ` (value: `"3 (5965/40 MHz)"`) + +* `_5__5975_20_MHZ` (value: `"5 (5975/20 MHz)"`) + +* `_7__5985_80_MHZ` (value: `"7 (5985/80 MHz)"`) + +* `_9__5995_20_MHZ` (value: `"9 (5995/20 MHz)"`) + +* `_11__6005_40_MHZ` (value: `"11 (6005/40 MHz)"`) + +* `_13__6015_20_MHZ` (value: `"13 (6015/20 MHz)"`) + +* `_15__6025_160_MHZ` (value: `"15 (6025/160 MHz)"`) + +* `_17__6035_20_MHZ` (value: `"17 (6035/20 MHz)"`) + +* `_19__6045_40_MHZ` (value: `"19 (6045/40 MHz)"`) + +* `_21__6055_20_MHZ` (value: `"21 (6055/20 MHz)"`) + +* `_23__6065_80_MHZ` (value: `"23 (6065/80 MHz)"`) + +* `_25__6075_20_MHZ` (value: `"25 (6075/20 MHz)"`) + +* `_27__6085_40_MHZ` (value: `"27 (6085/40 MHz)"`) + +* `_29__6095_20_MHZ` (value: `"29 (6095/20 MHz)"`) + +* `_31__6105_320_MHZ` (value: `"31 (6105/320 MHz)"`) + +* `_33__6115_20_MHZ` (value: `"33 (6115/20 MHz)"`) + +* `_35__6125_40_MHZ` (value: `"35 (6125/40 MHz)"`) + +* `_37__6135_20_MHZ` (value: `"37 (6135/20 MHz)"`) + +* `_39__6145_80_MHZ` (value: `"39 (6145/80 MHz)"`) + +* `_41__6155_20_MHZ` (value: `"41 (6155/20 MHz)"`) + +* `_43__6165_40_MHZ` (value: `"43 (6165/40 MHz)"`) + +* `_45__6175_20_MHZ` (value: `"45 (6175/20 MHz)"`) + +* `_47__6185_160_MHZ` (value: `"47 (6185/160 MHz)"`) + +* `_49__6195_20_MHZ` (value: `"49 (6195/20 MHz)"`) + +* `_51__6205_40_MHZ` (value: `"51 (6205/40 MHz)"`) + +* `_53__6215_20_MHZ` (value: `"53 (6215/20 MHz)"`) + +* `_55__6225_80_MHZ` (value: `"55 (6225/80 MHz)"`) + +* `_57__6235_20_MHZ` (value: `"57 (6235/20 MHz)"`) + +* `_59__6245_40_MHZ` (value: `"59 (6245/40 MHz)"`) + +* `_61__6255_20_MHZ` (value: `"61 (6255/20 MHz)"`) + +* `_65__6275_20_MHZ` (value: `"65 (6275/20 MHz)"`) + +* `_67__6285_40_MHZ` (value: `"67 (6285/40 MHz)"`) + +* `_69__6295_20_MHZ` (value: `"69 (6295/20 MHz)"`) + +* `_71__6305_80_MHZ` (value: `"71 (6305/80 MHz)"`) + +* `_73__6315_20_MHZ` (value: `"73 (6315/20 MHz)"`) + +* `_75__6325_40_MHZ` (value: `"75 (6325/40 MHz)"`) + +* `_77__6335_20_MHZ` (value: `"77 (6335/20 MHz)"`) + +* `_79__6345_160_MHZ` (value: `"79 (6345/160 MHz)"`) + +* `_81__6355_20_MHZ` (value: `"81 (6355/20 MHz)"`) + +* `_83__6365_40_MHZ` (value: `"83 (6365/40 MHz)"`) + +* `_85__6375_20_MHZ` (value: `"85 (6375/20 MHz)"`) + +* `_87__6385_80_MHZ` (value: `"87 (6385/80 MHz)"`) + +* `_89__6395_20_MHZ` (value: `"89 (6395/20 MHz)"`) + +* `_91__6405_40_MHZ` (value: `"91 (6405/40 MHz)"`) + +* `_93__6415_20_MHZ` (value: `"93 (6415/20 MHz)"`) + +* `_95__6425_320_MHZ` (value: `"95 (6425/320 MHz)"`) + +* `_97__6435_20_MHZ` (value: `"97 (6435/20 MHz)"`) + +* `_99__6445_40_MHZ` (value: `"99 (6445/40 MHz)"`) + +* `_101__6455_20_MHZ` (value: `"101 (6455/20 MHz)"`) + +* `_103__6465_80_MHZ` (value: `"103 (6465/80 MHz)"`) + +* `_105__6475_20_MHZ` (value: `"105 (6475/20 MHz)"`) + +* `_107__6485_40_MHZ` (value: `"107 (6485/40 MHz)"`) + +* `_109__6495_20_MHZ` (value: `"109 (6495/20 MHz)"`) + +* `_111__6505_160_MHZ` (value: `"111 (6505/160 MHz)"`) + +* `_113__6515_20_MHZ` (value: `"113 (6515/20 MHz)"`) + +* `_115__6525_40_MHZ` (value: `"115 (6525/40 MHz)"`) + +* `_117__6535_20_MHZ` (value: `"117 (6535/20 MHz)"`) + +* `_119__6545_80_MHZ` (value: `"119 (6545/80 MHz)"`) + +* `_121__6555_20_MHZ` (value: `"121 (6555/20 MHz)"`) + +* `_123__6565_40_MHZ` (value: `"123 (6565/40 MHz)"`) + +* `_125__6575_20_MHZ` (value: `"125 (6575/20 MHz)"`) + +* `_129__6595_20_MHZ` (value: `"129 (6595/20 MHz)"`) + +* `_131__6605_40_MHZ` (value: `"131 (6605/40 MHz)"`) + +* `_133__6615_20_MHZ` (value: `"133 (6615/20 MHz)"`) + +* `_135__6625_80_MHZ` (value: `"135 (6625/80 MHz)"`) + +* `_137__6635_20_MHZ` (value: `"137 (6635/20 MHz)"`) + +* `_139__6645_40_MHZ` (value: `"139 (6645/40 MHz)"`) + +* `_141__6655_20_MHZ` (value: `"141 (6655/20 MHz)"`) + +* `_143__6665_160_MHZ` (value: `"143 (6665/160 MHz)"`) + +* `_145__6675_20_MHZ` (value: `"145 (6675/20 MHz)"`) + +* `_147__6685_40_MHZ` (value: `"147 (6685/40 MHz)"`) + +* `_149__6695_20_MHZ` (value: `"149 (6695/20 MHz)"`) + +* `_151__6705_80_MHZ` (value: `"151 (6705/80 MHz)"`) + +* `_153__6715_20_MHZ` (value: `"153 (6715/20 MHz)"`) + +* `_155__6725_40_MHZ` (value: `"155 (6725/40 MHz)"`) + +* `_157__6735_20_MHZ` (value: `"157 (6735/20 MHz)"`) + +* `_159__6745_320_MHZ` (value: `"159 (6745/320 MHz)"`) + +* `_161__6755_20_MHZ` (value: `"161 (6755/20 MHz)"`) + +* `_163__6765_40_MHZ` (value: `"163 (6765/40 MHz)"`) + +* `_165__6775_20_MHZ` (value: `"165 (6775/20 MHz)"`) + +* `_167__6785_80_MHZ` (value: `"167 (6785/80 MHz)"`) + +* `_169__6795_20_MHZ` (value: `"169 (6795/20 MHz)"`) + +* `_171__6805_40_MHZ` (value: `"171 (6805/40 MHz)"`) + +* `_173__6815_20_MHZ` (value: `"173 (6815/20 MHz)"`) + +* `_175__6825_160_MHZ` (value: `"175 (6825/160 MHz)"`) + +* `_177__6835_20_MHZ` (value: `"177 (6835/20 MHz)"`) + +* `_179__6845_40_MHZ` (value: `"179 (6845/40 MHz)"`) + +* `_181__6855_20_MHZ` (value: `"181 (6855/20 MHz)"`) + +* `_183__6865_80_MHZ` (value: `"183 (6865/80 MHz)"`) + +* `_185__6875_20_MHZ` (value: `"185 (6875/20 MHz)"`) + +* `_187__6885_40_MHZ` (value: `"187 (6885/40 MHz)"`) + +* `_189__6895_20_MHZ` (value: `"189 (6895/20 MHz)"`) + +* `_193__6915_20_MHZ` (value: `"193 (6915/20 MHz)"`) + +* `_195__6925_40_MHZ` (value: `"195 (6925/40 MHz)"`) + +* `_197__6935_20_MHZ` (value: `"197 (6935/20 MHz)"`) + +* `_199__6945_80_MHZ` (value: `"199 (6945/80 MHz)"`) + +* `_201__6955_20_MHZ` (value: `"201 (6955/20 MHz)"`) + +* `_203__6965_40_MHZ` (value: `"203 (6965/40 MHz)"`) + +* `_205__6975_20_MHZ` (value: `"205 (6975/20 MHz)"`) + +* `_207__6985_160_MHZ` (value: `"207 (6985/160 MHz)"`) + +* `_209__6995_20_MHZ` (value: `"209 (6995/20 MHz)"`) + +* `_211__7005_40_MHZ` (value: `"211 (7005/40 MHz)"`) + +* `_213__7015_20_MHZ` (value: `"213 (7015/20 MHz)"`) + +* `_215__7025_80_MHZ` (value: `"215 (7025/80 MHz)"`) + +* `_217__7035_20_MHZ` (value: `"217 (7035/20 MHz)"`) + +* `_219__7045_40_MHZ` (value: `"219 (7045/40 MHz)"`) + +* `_221__7055_20_MHZ` (value: `"221 (7055/20 MHz)"`) + +* `_225__7075_20_MHZ` (value: `"225 (7075/20 MHz)"`) + +* `_227__7085_40_MHZ` (value: `"227 (7085/40 MHz)"`) + +* `_229__7095_20_MHZ` (value: `"229 (7095/20 MHz)"`) + +* `_233__7115_20_MHZ` (value: `"233 (7115/20 MHz)"`) + +* `_1__58_32_2_16_GHZ` (value: `"1 (58.32/2.16 GHz)"`) + +* `_2__60_48_2_16_GHZ` (value: `"2 (60.48/2.16 GHz)"`) + +* `_3__62_64_2_16_GHZ` (value: `"3 (62.64/2.16 GHz)"`) + +* `_4__64_80_2_16_GHZ` (value: `"4 (64.80/2.16 GHz)"`) + +* `_5__66_96_2_16_GHZ` (value: `"5 (66.96/2.16 GHz)"`) + +* `_6__69_12_2_16_GHZ` (value: `"6 (69.12/2.16 GHz)"`) + +* `_9__59_40_4_32_GHZ` (value: `"9 (59.40/4.32 GHz)"`) + +* `_10__61_56_4_32_GHZ` (value: `"10 (61.56/4.32 GHz)"`) + +* `_11__63_72_4_32_GHZ` (value: `"11 (63.72/4.32 GHz)"`) + +* `_12__65_88_4_32_GHZ` (value: `"12 (65.88/4.32 GHz)"`) + +* `_13__68_04_4_32_GHZ` (value: `"13 (68.04/4.32 GHz)"`) + +* `_17__60_48_6_48_GHZ` (value: `"17 (60.48/6.48 GHz)"`) + +* `_18__62_64_6_48_GHZ` (value: `"18 (62.64/6.48 GHz)"`) + +* `_19__64_80_6_48_GHZ` (value: `"19 (64.80/6.48 GHz)"`) + +* `_20__66_96_6_48_GHZ` (value: `"20 (66.96/6.48 GHz)"`) + +* `_25__61_56_8_64_GHZ` (value: `"25 (61.56/8.64 GHz)"`) + +* `_26__63_72_8_64_GHZ` (value: `"26 (63.72/8.64 GHz)"`) + +* `_27__65_88_8_64_GHZ` (value: `"27 (65.88/8.64 GHz)"`) + + +[[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/InterfaceTemplate.md b/docs/InterfaceTemplate.md index fe7c519cdc..bd19fe0f91 100644 --- a/docs/InterfaceTemplate.md +++ b/docs/InterfaceTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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) | | @@ -19,14 +19,14 @@ Name | Type | Description | Notes **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] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewInterfaceTemplate -`func NewInterfaceTemplate(id int32, url string, display string, name string, type_ InterfaceType, created NullableTime, lastUpdated NullableTime, ) *InterfaceTemplate` +`func NewInterfaceTemplate(id int32, url string, display string, name string, type_ InterfaceType, ) *InterfaceTemplate` NewInterfaceTemplate instantiates a new InterfaceTemplate object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InterfaceTemplate) GetDeviceType() DeviceType` +`func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplate) SetDeviceType(v DeviceType)` +`func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -138,20 +138,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplate) GetModuleType() ModuleType` +`func (o *InterfaceTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplate) SetModuleType(v ModuleType)` +`func (o *InterfaceTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -470,6 +470,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *InterfaceTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -500,6 +505,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *InterfaceTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/InterfaceTemplatePoeMode 2.md b/docs/InterfaceTemplatePoeMode 2.md new file mode 100644 index 0000000000..7f10494fa6 --- /dev/null +++ b/docs/InterfaceTemplatePoeMode 2.md @@ -0,0 +1,82 @@ +# InterfaceTemplatePoeMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] +**Label** | Pointer to [**InterfacePoeModeLabel**](InterfacePoeModeLabel.md) | | [optional] + +## Methods + +### NewInterfaceTemplatePoeMode + +`func NewInterfaceTemplatePoeMode() *InterfaceTemplatePoeMode` + +NewInterfaceTemplatePoeMode instantiates a new InterfaceTemplatePoeMode 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 + +### NewInterfaceTemplatePoeModeWithDefaults + +`func NewInterfaceTemplatePoeModeWithDefaults() *InterfaceTemplatePoeMode` + +NewInterfaceTemplatePoeModeWithDefaults instantiates a new InterfaceTemplatePoeMode 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 *InterfaceTemplatePoeMode) GetValue() InterfacePoeModeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InterfaceTemplatePoeMode) GetValueOk() (*InterfacePoeModeValue, 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 *InterfaceTemplatePoeMode) SetValue(v InterfacePoeModeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InterfaceTemplatePoeMode) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *InterfaceTemplatePoeMode) GetLabel() InterfacePoeModeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *InterfaceTemplatePoeMode) GetLabelOk() (*InterfacePoeModeLabel, 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 *InterfaceTemplatePoeMode) SetLabel(v InterfacePoeModeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *InterfaceTemplatePoeMode) 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/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md index e916c81165..5646cf9a6a 100644 --- a/docs/InterfaceTemplateRequest.md +++ b/docs/InterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTemplateRequestRfRole 2.md b/docs/InterfaceTemplateRequestRfRole 2.md new file mode 100644 index 0000000000..ac35a98c96 --- /dev/null +++ b/docs/InterfaceTemplateRequestRfRole 2.md @@ -0,0 +1,15 @@ +# InterfaceTemplateRequestRfRole + +## Enum + + +* `AP` (value: `"ap"`) + +* `STATION` (value: `"station"`) + +* `EMPTY` (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/InterfaceTypeLabel.md b/docs/InterfaceTypeLabel.md index 74891e8c26..c0219b4cfa 100644 --- a/docs/InterfaceTypeLabel.md +++ b/docs/InterfaceTypeLabel.md @@ -19,6 +19,10 @@ * `_1000_BASE_T__1_GE` (value: `"1000BASE-T (1GE)"`) +* `_1000_BASE_LX__1_GE` (value: `"1000BASE-LX (1GE)"`) + +* `_1000_BASE_TX__1_GE` (value: `"1000BASE-TX (1GE)"`) + * `_2_5_GBASE_T__2_5_GE` (value: `"2.5GBASE-T (2.5GE)"`) * `_5_GBASE_T__5_GE` (value: `"5GBASE-T (5GE)"`) @@ -27,6 +31,8 @@ * `_10_GBASE_CX4__10_GE` (value: `"10GBASE-CX4 (10GE)"`) +* `SFP__100_ME` (value: `"SFP (100ME)"`) + * `GBIC__1_GE` (value: `"GBIC (1GE)"`) * `SFP__1_GE` (value: `"SFP (1GE)"`) @@ -125,8 +131,12 @@ * `IEEE_802_11AY` (value: `"IEEE 802.11ay"`) +* `IEEE_802_11BE` (value: `"IEEE 802.11be"`) + * `IEEE_802_15_1__BLUETOOTH` (value: `"IEEE 802.15.1 (Bluetooth)"`) +* `IEEE_802_15_4__LR_WPAN` (value: `"IEEE 802.15.4 (LR-WPAN)"`) + * `OTHER__WIRELESS` (value: `"Other (Wireless)"`) * `GSM` (value: `"GSM"`) diff --git a/docs/InterfaceTypeValue.md b/docs/InterfaceTypeValue.md index 4d0b0417fd..f57b773289 100644 --- a/docs/InterfaceTypeValue.md +++ b/docs/InterfaceTypeValue.md @@ -19,6 +19,10 @@ * `_1000BASE_T` (value: `"1000base-t"`) +* `_1000BASE_LX` (value: `"1000base-lx"`) + +* `_1000BASE_TX` (value: `"1000base-tx"`) + * `_2_5GBASE_T` (value: `"2.5gbase-t"`) * `_5GBASE_T` (value: `"5gbase-t"`) @@ -27,6 +31,8 @@ * `_10GBASE_CX4` (value: `"10gbase-cx4"`) +* `_100BASE_X_SFP` (value: `"100base-x-sfp"`) + * `_1000BASE_X_GBIC` (value: `"1000base-x-gbic"`) * `_1000BASE_X_SFP` (value: `"1000base-x-sfp"`) @@ -125,8 +131,12 @@ * `IEEE802_11AY` (value: `"ieee802.11ay"`) +* `IEEE802_11BE` (value: `"ieee802.11be"`) + * `IEEE802_15_1` (value: `"ieee802.15.1"`) +* `IEEE802_15_4` (value: `"ieee802.15.4"`) + * `OTHER_WIRELESS` (value: `"other-wireless"`) * `GSM` (value: `"gsm"`) diff --git a/docs/InventoryItem.md b/docs/InventoryItem.md index 899e554b9d..f701a3a318 100644 --- a/docs/InventoryItem.md +++ b/docs/InventoryItem.md @@ -6,13 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatus**](InventoryItemStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -20,18 +22,18 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] **ComponentId** | Pointer to **NullableInt64** | | [optional] -**Component** | **interface{}** | | [readonly] +**Component** | Pointer to **interface{}** | | [optional] [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Depth** | **int32** | | [readonly] ## Methods ### NewInventoryItem -`func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` +`func NewInventoryItem(id int32, url string, display string, device BriefDevice, name string, depth int32, ) *InventoryItem` NewInventoryItem instantiates a new InventoryItem object This constructor will assign default values to properties that have it defined, @@ -86,6 +88,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItem) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItem) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItem) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *InventoryItem) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *InventoryItem) GetDisplay() string` @@ -108,20 +135,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *InventoryItem) GetDevice() Device` +`func (o *InventoryItem) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItem) GetDeviceOk() (*Device, bool)` +`func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItem) SetDevice(v Device)` +`func (o *InventoryItem) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -206,22 +233,47 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetStatus + +`func (o *InventoryItem) GetStatus() InventoryItemStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InventoryItem) GetStatusOk() (*InventoryItemStatus, 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 *InventoryItem) SetStatus(v InventoryItemStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *InventoryItem) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + ### GetRole -`func (o *InventoryItem) GetRole() InventoryItemRole` +`func (o *InventoryItem) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, 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 *InventoryItem) SetRole(v InventoryItemRole)` +`func (o *InventoryItem) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -243,20 +295,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItem) GetManufacturer() Manufacturer` +`func (o *InventoryItem) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItem) SetManufacturer(v Manufacturer)` +`func (o *InventoryItem) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. @@ -500,6 +552,11 @@ and a boolean to check if the value has been set. SetComponent sets Component field to given value. +### HasComponent + +`func (o *InventoryItem) HasComponent() bool` + +HasComponent returns a boolean if a field has been set. ### SetComponentNil @@ -580,6 +637,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *InventoryItem) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -610,6 +672,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *InventoryItem) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/InventoryItemRequest.md b/docs/InventoryItemRequest.md index 580df6b263..b6d38a246f 100644 --- a/docs/InventoryItemRequest.md +++ b/docs/InventoryItemRequest.md @@ -4,12 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewInventoryItemRequest -`func NewInventoryItemRequest(device DeviceRequest, name string, ) *InventoryItemRequest` +`func NewInventoryItemRequest(device BriefDeviceRequest, name string, ) *InventoryItemRequest` NewInventoryItemRequest instantiates a new InventoryItemRequest object This constructor will assign default values to properties that have it defined, @@ -41,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InventoryItemRequest) GetDevice() DeviceRequest` +`func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -139,22 +140,47 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetStatus + +`func (o *InventoryItemRequest) GetStatus() InventoryItemStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *InventoryItemRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *InventoryItemRequest) SetStatus(v InventoryItemStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *InventoryItemRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + ### GetRole -`func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, 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 *InventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -176,20 +202,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRole.md b/docs/InventoryItemRole.md index ffd538ba16..18f666a191 100644 --- a/docs/InventoryItemRole.md +++ b/docs/InventoryItemRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -13,15 +14,15 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **InventoryitemCount** | **int64** | | [readonly] ## Methods ### NewInventoryItemRole -`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole` +`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64, ) *InventoryItemRole` NewInventoryItemRole instantiates a new InventoryItemRole object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItemRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItemRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *InventoryItemRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *InventoryItemRole) GetDisplay() string` @@ -255,6 +281,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *InventoryItemRole) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -285,6 +316,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *InventoryItemRole) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/InventoryItemStatus.md b/docs/InventoryItemStatus.md new file mode 100644 index 0000000000..54624c319f --- /dev/null +++ b/docs/InventoryItemStatus.md @@ -0,0 +1,82 @@ +# InventoryItemStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Label** | Pointer to [**InventoryItemStatusLabel**](InventoryItemStatusLabel.md) | | [optional] + +## Methods + +### NewInventoryItemStatus + +`func NewInventoryItemStatus() *InventoryItemStatus` + +NewInventoryItemStatus instantiates a new InventoryItemStatus 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 + +### NewInventoryItemStatusWithDefaults + +`func NewInventoryItemStatusWithDefaults() *InventoryItemStatus` + +NewInventoryItemStatusWithDefaults instantiates a new InventoryItemStatus 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 *InventoryItemStatus) GetValue() InventoryItemStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InventoryItemStatus) GetValueOk() (*InventoryItemStatusValue, 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 *InventoryItemStatus) SetValue(v InventoryItemStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InventoryItemStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *InventoryItemStatus) GetLabel() InventoryItemStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *InventoryItemStatus) GetLabelOk() (*InventoryItemStatusLabel, 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 *InventoryItemStatus) SetLabel(v InventoryItemStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *InventoryItemStatus) 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/VirtualMachineWithConfigContextStatusLabel.md b/docs/InventoryItemStatusLabel.md similarity index 89% rename from docs/VirtualMachineWithConfigContextStatusLabel.md rename to docs/InventoryItemStatusLabel.md index 7889f8e494..8c32621981 100644 --- a/docs/VirtualMachineWithConfigContextStatusLabel.md +++ b/docs/InventoryItemStatusLabel.md @@ -1,4 +1,4 @@ -# VirtualMachineWithConfigContextStatusLabel +# InventoryItemStatusLabel ## Enum diff --git a/docs/PatchedWritableModuleRequestStatus.md b/docs/InventoryItemStatusValue.md similarity index 91% rename from docs/PatchedWritableModuleRequestStatus.md rename to docs/InventoryItemStatusValue.md index f9b39154d7..0b88ef171b 100644 --- a/docs/PatchedWritableModuleRequestStatus.md +++ b/docs/InventoryItemStatusValue.md @@ -1,4 +1,4 @@ -# PatchedWritableModuleRequestStatus +# InventoryItemStatusValue ## Enum diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md index 94833b0ef3..548cd3eff5 100644 --- a/docs/InventoryItemTemplate.md +++ b/docs/InventoryItemTemplate.md @@ -7,26 +7,26 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.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. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] **ComponentId** | Pointer to **NullableInt64** | | [optional] -**Component** | **interface{}** | | [readonly] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Component** | Pointer to **interface{}** | | [optional] [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Depth** | **int32** | | [readonly] ## Methods ### NewInventoryItemTemplate -`func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` +`func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, depth int32, ) *InventoryItemTemplate` NewInventoryItemTemplate instantiates a new InventoryItemTemplate object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InventoryItemTemplate) GetDeviceType() DeviceType` +`func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplate) SetDeviceType(v DeviceType)` +`func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -203,20 +203,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplate) GetRole() InventoryItemRole` +`func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, 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 *InventoryItemTemplate) SetRole(v InventoryItemRole)` +`func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -238,20 +238,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplate) GetManufacturer() Manufacturer` +`func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer)` +`func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. @@ -410,6 +410,11 @@ and a boolean to check if the value has been set. SetComponent sets Component field to given value. +### HasComponent + +`func (o *InventoryItemTemplate) HasComponent() bool` + +HasComponent returns a boolean if a field has been set. ### SetComponentNil @@ -440,6 +445,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *InventoryItemTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -470,6 +480,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *InventoryItemTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/InventoryItemTemplateRequest.md b/docs/InventoryItemTemplateRequest.md index fb68460d1e..c73bbf2c3a 100644 --- a/docs/InventoryItemTemplateRequest.md +++ b/docs/InventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.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. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplateRequest -`func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` +`func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` NewInventoryItemTemplateRequest instantiates a new InventoryItemTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, 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 *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -171,20 +171,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/IpamAPI.md b/docs/IpamAPI.md index 3113766dae..da7d1a4e8a 100644 --- a/docs/IpamAPI.md +++ b/docs/IpamAPI.md @@ -140,6 +140,24 @@ Method | HTTP request | Description [**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}/ | +[**IpamVlanTranslationPoliciesBulkDestroy**](IpamAPI.md#IpamVlanTranslationPoliciesBulkDestroy) | **Delete** /api/ipam/vlan-translation-policies/ | +[**IpamVlanTranslationPoliciesBulkPartialUpdate**](IpamAPI.md#IpamVlanTranslationPoliciesBulkPartialUpdate) | **Patch** /api/ipam/vlan-translation-policies/ | +[**IpamVlanTranslationPoliciesBulkUpdate**](IpamAPI.md#IpamVlanTranslationPoliciesBulkUpdate) | **Put** /api/ipam/vlan-translation-policies/ | +[**IpamVlanTranslationPoliciesCreate**](IpamAPI.md#IpamVlanTranslationPoliciesCreate) | **Post** /api/ipam/vlan-translation-policies/ | +[**IpamVlanTranslationPoliciesDestroy**](IpamAPI.md#IpamVlanTranslationPoliciesDestroy) | **Delete** /api/ipam/vlan-translation-policies/{id}/ | +[**IpamVlanTranslationPoliciesList**](IpamAPI.md#IpamVlanTranslationPoliciesList) | **Get** /api/ipam/vlan-translation-policies/ | +[**IpamVlanTranslationPoliciesPartialUpdate**](IpamAPI.md#IpamVlanTranslationPoliciesPartialUpdate) | **Patch** /api/ipam/vlan-translation-policies/{id}/ | +[**IpamVlanTranslationPoliciesRetrieve**](IpamAPI.md#IpamVlanTranslationPoliciesRetrieve) | **Get** /api/ipam/vlan-translation-policies/{id}/ | +[**IpamVlanTranslationPoliciesUpdate**](IpamAPI.md#IpamVlanTranslationPoliciesUpdate) | **Put** /api/ipam/vlan-translation-policies/{id}/ | +[**IpamVlanTranslationRulesBulkDestroy**](IpamAPI.md#IpamVlanTranslationRulesBulkDestroy) | **Delete** /api/ipam/vlan-translation-rules/ | +[**IpamVlanTranslationRulesBulkPartialUpdate**](IpamAPI.md#IpamVlanTranslationRulesBulkPartialUpdate) | **Patch** /api/ipam/vlan-translation-rules/ | +[**IpamVlanTranslationRulesBulkUpdate**](IpamAPI.md#IpamVlanTranslationRulesBulkUpdate) | **Put** /api/ipam/vlan-translation-rules/ | +[**IpamVlanTranslationRulesCreate**](IpamAPI.md#IpamVlanTranslationRulesCreate) | **Post** /api/ipam/vlan-translation-rules/ | +[**IpamVlanTranslationRulesDestroy**](IpamAPI.md#IpamVlanTranslationRulesDestroy) | **Delete** /api/ipam/vlan-translation-rules/{id}/ | +[**IpamVlanTranslationRulesList**](IpamAPI.md#IpamVlanTranslationRulesList) | **Get** /api/ipam/vlan-translation-rules/ | +[**IpamVlanTranslationRulesPartialUpdate**](IpamAPI.md#IpamVlanTranslationRulesPartialUpdate) | **Patch** /api/ipam/vlan-translation-rules/{id}/ | +[**IpamVlanTranslationRulesRetrieve**](IpamAPI.md#IpamVlanTranslationRulesRetrieve) | **Get** /api/ipam/vlan-translation-rules/{id}/ | +[**IpamVlanTranslationRulesUpdate**](IpamAPI.md#IpamVlanTranslationRulesUpdate) | **Put** /api/ipam/vlan-translation-rules/{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/ | @@ -182,7 +200,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -246,7 +264,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -312,7 +330,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -378,7 +396,7 @@ import ( ) func main() { - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -568,10 +586,10 @@ func main() { 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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -654,10 +672,10 @@ Name | Type | Description | Notes **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -844,7 +862,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this aggregate. - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1057,7 +1075,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1121,7 +1139,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1187,7 +1205,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1253,7 +1271,7 @@ import ( ) func main() { - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1470,10 +1488,10 @@ func main() { 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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1583,10 +1601,10 @@ Name | Type | Description | Notes **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1773,7 +1791,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this ASN range. - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2236,10 +2254,10 @@ func main() { 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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -2328,10 +2346,10 @@ Name | Type | Description | Notes **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2589,7 +2607,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2653,7 +2671,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2719,7 +2737,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2785,7 +2803,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3225,7 +3243,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group assignment. - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3296,7 +3314,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3360,7 +3378,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3426,7 +3444,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3492,7 +3510,7 @@ import ( ) func main() { - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3607,7 +3625,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).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).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() +> 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).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).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).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).ProtocolEmpty(protocolEmpty).ProtocolIc(protocolIc).ProtocolIe(protocolIe).ProtocolIew(protocolIew).ProtocolIsw(protocolIsw).ProtocolN(protocolN).ProtocolNic(protocolNic).ProtocolNie(protocolNie).ProtocolNiew(protocolNiew).ProtocolNisw(protocolNisw).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -3638,8 +3656,17 @@ func main() { authKeyNie := []string{"Inner_example"} // []string | (optional) authKeyNiew := []string{"Inner_example"} // []string | (optional) authKeyNisw := []string{"Inner_example"} // []string | (optional) - authType := []string{"Inner_example"} // []string | (optional) - authTypeN := []string{"Inner_example"} // []string | (optional) + authType := []*string{"Inner_example"} // []*string | (optional) + authTypeEmpty := true // bool | (optional) + authTypeIc := []*string{"Inner_example"} // []*string | (optional) + authTypeIe := []*string{"Inner_example"} // []*string | (optional) + authTypeIew := []*string{"Inner_example"} // []*string | (optional) + authTypeIsw := []*string{"Inner_example"} // []*string | (optional) + authTypeN := []*string{"Inner_example"} // []*string | (optional) + authTypeNic := []*string{"Inner_example"} // []*string | (optional) + authTypeNie := []*string{"Inner_example"} // []*string | (optional) + authTypeNiew := []*string{"Inner_example"} // []*string | (optional) + authTypeNisw := []*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) @@ -3696,7 +3723,16 @@ 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) protocol := []string{"Inner_example"} // []string | (optional) + protocolEmpty := true // bool | (optional) + protocolIc := []string{"Inner_example"} // []string | (optional) + protocolIe := []string{"Inner_example"} // []string | (optional) + protocolIew := []string{"Inner_example"} // []string | (optional) + protocolIsw := []string{"Inner_example"} // []string | (optional) protocolN := []string{"Inner_example"} // []string | (optional) + protocolNic := []string{"Inner_example"} // []string | (optional) + protocolNie := []string{"Inner_example"} // []string | (optional) + protocolNiew := []string{"Inner_example"} // []string | (optional) + protocolNisw := []string{"Inner_example"} // []string | (optional) q := "q_example" // string | Search (optional) relatedIp := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -3705,7 +3741,7 @@ 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).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).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() + 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).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).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).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).ProtocolEmpty(protocolEmpty).ProtocolIc(protocolIc).ProtocolIe(protocolIe).ProtocolIew(protocolIew).ProtocolIsw(protocolIsw).ProtocolN(protocolN).ProtocolNic(protocolNic).ProtocolNie(protocolNie).ProtocolNiew(protocolNiew).ProtocolNisw(protocolNisw).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, "Full HTTP response: %v\n", r) @@ -3738,7 +3774,16 @@ Name | Type | Description | Notes **authKeyNiew** | **[]string** | | **authKeyNisw** | **[]string** | | **authType** | **[]string** | | + **authTypeEmpty** | **bool** | | + **authTypeIc** | **[]string** | | + **authTypeIe** | **[]string** | | + **authTypeIew** | **[]string** | | + **authTypeIsw** | **[]string** | | **authTypeN** | **[]string** | | + **authTypeNic** | **[]string** | | + **authTypeNie** | **[]string** | | + **authTypeNiew** | **[]string** | | + **authTypeNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -3795,7 +3840,16 @@ 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. | **protocol** | **[]string** | | + **protocolEmpty** | **bool** | | + **protocolIc** | **[]string** | | + **protocolIe** | **[]string** | | + **protocolIew** | **[]string** | | + **protocolIsw** | **[]string** | | **protocolN** | **[]string** | | + **protocolNic** | **[]string** | | + **protocolNie** | **[]string** | | + **protocolNiew** | **[]string** | | + **protocolNisw** | **[]string** | | **q** | **string** | Search | **relatedIp** | **[]string** | | **tag** | **[]string** | | @@ -3984,7 +4038,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group. - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4366,7 +4420,7 @@ Name | Type | Description | Notes ## IpamIpAddressesList -> PaginatedIPAddressList IpamIpAddressesList(ctx).Address(address).Assigned(assigned).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).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).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).ServiceId(serviceId).ServiceIdN(serviceIdN).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).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).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).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).ServiceId(serviceId).ServiceIdN(serviceIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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() @@ -4464,20 +4518,38 @@ func main() { presentInVrf := "presentInVrf_example" // string | (optional) presentInVrfId := "presentInVrfId_example" // string | (optional) q := "q_example" // string | Search (optional) - role := []string{"Inner_example"} // []string | The functional role of this IP (optional) - roleN := []string{"Inner_example"} // []string | The functional role of this IP (optional) + role := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleEmpty := true // bool | (optional) + roleIc := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleIe := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleIew := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleIsw := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleN := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleNic := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleNie := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleNiew := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) + roleNisw := []*string{"Inner_example"} // []*string | The functional role of this IP (optional) serviceId := []int32{int32(123)} // []int32 | Service (ID) (optional) serviceIdN := []int32{int32(123)} // []int32 | Service (ID) (optional) status := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusIe := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusIew := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusIsw := []string{"Inner_example"} // []string | The operational status of this IP (optional) statusN := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusNic := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusNie := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusNiew := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusNisw := []string{"Inner_example"} // []string | The operational status of this IP (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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4494,7 +4566,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Address(address).Assigned(assigned).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).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).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).ServiceId(serviceId).ServiceIdN(serviceIdN).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).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).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).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).ServiceId(serviceId).ServiceIdN(serviceIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -4594,19 +4666,37 @@ Name | Type | Description | Notes **presentInVrfId** | **string** | | **q** | **string** | Search | **role** | **[]string** | The functional role of this IP | + **roleEmpty** | **bool** | | + **roleIc** | **[]string** | The functional role of this IP | + **roleIe** | **[]string** | The functional role of this IP | + **roleIew** | **[]string** | The functional role of this IP | + **roleIsw** | **[]string** | The functional role of this IP | **roleN** | **[]string** | The functional role of this IP | + **roleNic** | **[]string** | The functional role of this IP | + **roleNie** | **[]string** | The functional role of this IP | + **roleNiew** | **[]string** | The functional role of this IP | + **roleNisw** | **[]string** | The functional role of this IP | **serviceId** | **[]int32** | Service (ID) | **serviceIdN** | **[]int32** | Service (ID) | **status** | **[]string** | The operational status of this IP | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | The operational status of this IP | + **statusIe** | **[]string** | The operational status of this IP | + **statusIew** | **[]string** | The operational status of this IP | + **statusIsw** | **[]string** | The operational status of this IP | **statusN** | **[]string** | The operational status of this IP | + **statusNic** | **[]string** | The operational status of this IP | + **statusNie** | **[]string** | The operational status of this IP | + **statusNiew** | **[]string** | The operational status of this IP | + **statusNisw** | **[]string** | The operational status of this IP | **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -5327,7 +5417,7 @@ Name | Type | Description | Notes ## IpamIpRangesList -> 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).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).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).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).StartAddress(startAddress).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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() @@ -5403,15 +5493,24 @@ func main() { sizeN := []int32{int32(123)} // []int32 | (optional) startAddress := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusIe := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusIew := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusIsw := []string{"Inner_example"} // []string | Operational status of this range (optional) statusN := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusNic := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusNie := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusNiew := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusNisw := []string{"Inner_example"} // []string | Operational status of this range (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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -5422,7 +5521,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).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).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).StartAddress(startAddress).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -5499,15 +5598,24 @@ Name | Type | Description | Notes **sizeN** | **[]int32** | | **startAddress** | **[]string** | | **status** | **[]string** | Operational status of this range | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | Operational status of this range | + **statusIe** | **[]string** | Operational status of this range | + **statusIew** | **[]string** | Operational status of this range | + **statusIsw** | **[]string** | Operational status of this range | **statusN** | **[]string** | Operational status of this range | + **statusNic** | **[]string** | Operational status of this range | + **statusNie** | **[]string** | Operational status of this range | + **statusNiew** | **[]string** | Operational status of this range | + **statusNisw** | **[]string** | Operational status of this range | **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -6364,7 +6472,7 @@ Name | Type | Description | Notes ## IpamPrefixesList -> 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() +> 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).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).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).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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() @@ -6435,6 +6543,10 @@ func main() { 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 | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) markUtilized := true // bool | (optional) maskLength := []int32{int32(123)} // []int32 | (optional) maskLengthGte := float32(8.14) // float32 | (optional) @@ -6446,32 +6558,50 @@ func main() { presentInVrf := "presentInVrf_example" // string | (optional) presentInVrfId := "presentInVrfId_example" // string | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (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) + scopeIdLte := []int32{int32(123)} // []int32 | (optional) + scopeIdN := []int32{int32(123)} // []int32 | (optional) + scopeType := "scopeType_example" // string | (optional) + scopeTypeN := "scopeTypeN_example" // string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - 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) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusIe := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusIew := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusIsw := []string{"Inner_example"} // []string | Operational status of this prefix (optional) statusN := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusNic := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusNie := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusNiew := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusNisw := []string{"Inner_example"} // []string | Operational status of this prefix (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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -6493,7 +6623,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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() + 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).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).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).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -6565,6 +6695,10 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **markUtilized** | **bool** | | **maskLength** | **[]int32** | | **maskLengthGte** | **float32** | | @@ -6576,32 +6710,50 @@ Name | Type | Description | Notes **presentInVrf** | **string** | | **presentInVrfId** | **string** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | + **scopeId** | **[]int32** | | + **scopeIdEmpty** | **bool** | | + **scopeIdGt** | **[]int32** | | + **scopeIdGte** | **[]int32** | | + **scopeIdLt** | **[]int32** | | + **scopeIdLte** | **[]int32** | | + **scopeIdN** | **[]int32** | | + **scopeType** | **string** | | + **scopeTypeN** | **string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this prefix | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | Operational status of this prefix | + **statusIe** | **[]string** | Operational status of this prefix | + **statusIew** | **[]string** | Operational status of this prefix | + **statusIsw** | **[]string** | Operational status of this prefix | **statusN** | **[]string** | Operational status of this prefix | + **statusNic** | **[]string** | Operational status of this prefix | + **statusNie** | **[]string** | Operational status of this prefix | + **statusNiew** | **[]string** | Operational status of this prefix | + **statusNisw** | **[]string** | Operational status of this prefix | **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -8760,10 +8912,10 @@ func main() { 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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -8860,10 +9012,10 @@ Name | Type | Description | Notes **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -9432,7 +9584,7 @@ Name | Type | Description | Notes ## IpamServiceTemplatesList -> PaginatedServiceTemplateList IpamServiceTemplatesList(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).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).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).Port(port).Protocol(protocol).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -9502,7 +9654,6 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) port := float32(8.14) // float32 | (optional) protocol := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) - protocolN := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -9510,7 +9661,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesList(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).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).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).Port(port).Protocol(protocol).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, "Full HTTP response: %v\n", r) @@ -9581,7 +9732,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **port** | **float32** | | **protocol** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | - **protocolN** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -10151,7 +10301,7 @@ Name | Type | Description | Notes ## IpamServicesList -> 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).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() +> 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).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() @@ -10205,10 +10355,6 @@ func main() { ipAddressN := []string{"Inner_example"} // []string | IP address (optional) ipAddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) ipAddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) - ipaddress := []string{"Inner_example"} // []string | IP address (optional) - ipaddressN := []string{"Inner_example"} // []string | IP address (optional) - 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) @@ -10233,7 +10379,6 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) port := float32(8.14) // float32 | (optional) protocol := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) - protocolN := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -10245,7 +10390,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - 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).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() + 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).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, "Full HTTP response: %v\n", r) @@ -10300,10 +10445,6 @@ Name | Type | Description | Notes **ipAddressN** | **[]string** | IP address | **ipAddressId** | **[]int32** | IP address (ID) | **ipAddressIdN** | **[]int32** | IP address (ID) | - **ipaddress** | **[]string** | IP address | - **ipaddressN** | **[]string** | IP address | - **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) | | @@ -10328,7 +10469,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **port** | **float32** | | **protocol** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | - **protocolN** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -11044,7 +11184,7 @@ Name | Type | Description | Notes ## IpamVlanGroupsList -> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).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).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).ContainsVid(containsVid).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).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() @@ -11066,7 +11206,7 @@ import ( func main() { cluster := int32(56) // int32 | (optional) clusterGroup := int32(56) // int32 | (optional) - clustergroup := int32(56) // int32 | (optional) + containsVid := 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) @@ -11102,20 +11242,6 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) 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) @@ -11144,7 +11270,6 @@ func main() { scopeTypeN := "scopeTypeN_example" // string | (optional) site := int32(56) // int32 | (optional) siteGroup := int32(56) // int32 | (optional) - sitegroup := int32(56) // int32 | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -11162,7 +11287,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).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).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).ContainsVid(containsVid).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).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, "Full HTTP response: %v\n", r) @@ -11185,7 +11310,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster** | **int32** | | **clusterGroup** | **int32** | | - **clustergroup** | **int32** | | + **containsVid** | **float32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -11221,20 +11346,6 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **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** | | @@ -11263,7 +11374,6 @@ Name | Type | Description | Notes **scopeTypeN** | **string** | | **site** | **int32** | | **siteGroup** | **int32** | | - **sitegroup** | **int32** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -11511,6 +11621,1446 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## IpamVlanTranslationPoliciesBulkDestroy + +> IpamVlanTranslationPoliciesBulkDestroy(ctx).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationPolicyRequest := []openapiclient.VLANTranslationPolicyRequest{*openapiclient.NewVLANTranslationPolicyRequest("Name_example")} // []VLANTranslationPolicyRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesBulkDestroy(context.Background()).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesBulkDestroy``: %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 apiIpamVlanTranslationPoliciesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationPolicyRequest** | [**[]VLANTranslationPolicyRequest**](VLANTranslationPolicyRequest.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) + + +## IpamVlanTranslationPoliciesBulkPartialUpdate + +> []VLANTranslationPolicy IpamVlanTranslationPoliciesBulkPartialUpdate(ctx).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationPolicyRequest := []openapiclient.VLANTranslationPolicyRequest{*openapiclient.NewVLANTranslationPolicyRequest("Name_example")} // []VLANTranslationPolicyRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesBulkPartialUpdate(context.Background()).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationPoliciesBulkPartialUpdate`: []VLANTranslationPolicy + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationPoliciesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationPolicyRequest** | [**[]VLANTranslationPolicyRequest**](VLANTranslationPolicyRequest.md) | | + +### Return type + +[**[]VLANTranslationPolicy**](VLANTranslationPolicy.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) + + +## IpamVlanTranslationPoliciesBulkUpdate + +> []VLANTranslationPolicy IpamVlanTranslationPoliciesBulkUpdate(ctx).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationPolicyRequest := []openapiclient.VLANTranslationPolicyRequest{*openapiclient.NewVLANTranslationPolicyRequest("Name_example")} // []VLANTranslationPolicyRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesBulkUpdate(context.Background()).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationPoliciesBulkUpdate`: []VLANTranslationPolicy + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationPoliciesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationPolicyRequest** | [**[]VLANTranslationPolicyRequest**](VLANTranslationPolicyRequest.md) | | + +### Return type + +[**[]VLANTranslationPolicy**](VLANTranslationPolicy.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) + + +## IpamVlanTranslationPoliciesCreate + +> VLANTranslationPolicy IpamVlanTranslationPoliciesCreate(ctx).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationPolicyRequest := *openapiclient.NewVLANTranslationPolicyRequest("Name_example") // VLANTranslationPolicyRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesCreate(context.Background()).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationPoliciesCreate`: VLANTranslationPolicy + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationPoliciesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationPolicyRequest** | [**VLANTranslationPolicyRequest**](VLANTranslationPolicyRequest.md) | | + +### Return type + +[**VLANTranslationPolicy**](VLANTranslationPolicy.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) + + +## IpamVlanTranslationPoliciesDestroy + +> IpamVlanTranslationPoliciesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation policy. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesDestroy``: %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 VLAN translation policy. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesDestroyRequest 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) + + +## IpamVlanTranslationPoliciesList + +> PaginatedVLANTranslationPolicyList IpamVlanTranslationPoliciesList(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).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + 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) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesList(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).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationPoliciesList`: PaginatedVLANTranslationPolicyList + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationPoliciesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesListRequest struct via the builder pattern + + +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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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**](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** | | + **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** | | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedVLANTranslationPolicyList**](PaginatedVLANTranslationPolicyList.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) + + +## IpamVlanTranslationPoliciesPartialUpdate + +> VLANTranslationPolicy IpamVlanTranslationPoliciesPartialUpdate(ctx, id).PatchedVLANTranslationPolicyRequest(patchedVLANTranslationPolicyRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation policy. + patchedVLANTranslationPolicyRequest := *openapiclient.NewPatchedVLANTranslationPolicyRequest() // PatchedVLANTranslationPolicyRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesPartialUpdate(context.Background(), id).PatchedVLANTranslationPolicyRequest(patchedVLANTranslationPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationPoliciesPartialUpdate`: VLANTranslationPolicy + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationPoliciesPartialUpdate`: %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 VLAN translation policy. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedVLANTranslationPolicyRequest** | [**PatchedVLANTranslationPolicyRequest**](PatchedVLANTranslationPolicyRequest.md) | | + +### Return type + +[**VLANTranslationPolicy**](VLANTranslationPolicy.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) + + +## IpamVlanTranslationPoliciesRetrieve + +> VLANTranslationPolicy IpamVlanTranslationPoliciesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation policy. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationPoliciesRetrieve`: VLANTranslationPolicy + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationPoliciesRetrieve`: %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 VLAN translation policy. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**VLANTranslationPolicy**](VLANTranslationPolicy.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) + + +## IpamVlanTranslationPoliciesUpdate + +> VLANTranslationPolicy IpamVlanTranslationPoliciesUpdate(ctx, id).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation policy. + vLANTranslationPolicyRequest := *openapiclient.NewVLANTranslationPolicyRequest("Name_example") // VLANTranslationPolicyRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesUpdate(context.Background(), id).VLANTranslationPolicyRequest(vLANTranslationPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationPoliciesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationPoliciesUpdate`: VLANTranslationPolicy + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationPoliciesUpdate`: %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 VLAN translation policy. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationPoliciesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **vLANTranslationPolicyRequest** | [**VLANTranslationPolicyRequest**](VLANTranslationPolicyRequest.md) | | + +### Return type + +[**VLANTranslationPolicy**](VLANTranslationPolicy.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) + + +## IpamVlanTranslationRulesBulkDestroy + +> IpamVlanTranslationRulesBulkDestroy(ctx).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationRuleRequest := []openapiclient.VLANTranslationRuleRequest{*openapiclient.NewVLANTranslationRuleRequest(int32(123), int32(123), int32(123))} // []VLANTranslationRuleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IpamAPI.IpamVlanTranslationRulesBulkDestroy(context.Background()).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesBulkDestroy``: %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 apiIpamVlanTranslationRulesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationRuleRequest** | [**[]VLANTranslationRuleRequest**](VLANTranslationRuleRequest.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) + + +## IpamVlanTranslationRulesBulkPartialUpdate + +> []VLANTranslationRule IpamVlanTranslationRulesBulkPartialUpdate(ctx).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationRuleRequest := []openapiclient.VLANTranslationRuleRequest{*openapiclient.NewVLANTranslationRuleRequest(int32(123), int32(123), int32(123))} // []VLANTranslationRuleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationRulesBulkPartialUpdate(context.Background()).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationRulesBulkPartialUpdate`: []VLANTranslationRule + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationRulesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationRuleRequest** | [**[]VLANTranslationRuleRequest**](VLANTranslationRuleRequest.md) | | + +### Return type + +[**[]VLANTranslationRule**](VLANTranslationRule.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) + + +## IpamVlanTranslationRulesBulkUpdate + +> []VLANTranslationRule IpamVlanTranslationRulesBulkUpdate(ctx).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationRuleRequest := []openapiclient.VLANTranslationRuleRequest{*openapiclient.NewVLANTranslationRuleRequest(int32(123), int32(123), int32(123))} // []VLANTranslationRuleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationRulesBulkUpdate(context.Background()).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationRulesBulkUpdate`: []VLANTranslationRule + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationRulesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationRuleRequest** | [**[]VLANTranslationRuleRequest**](VLANTranslationRuleRequest.md) | | + +### Return type + +[**[]VLANTranslationRule**](VLANTranslationRule.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) + + +## IpamVlanTranslationRulesCreate + +> VLANTranslationRule IpamVlanTranslationRulesCreate(ctx).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + vLANTranslationRuleRequest := *openapiclient.NewVLANTranslationRuleRequest(int32(123), int32(123), int32(123)) // VLANTranslationRuleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationRulesCreate(context.Background()).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationRulesCreate`: VLANTranslationRule + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationRulesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vLANTranslationRuleRequest** | [**VLANTranslationRuleRequest**](VLANTranslationRuleRequest.md) | | + +### Return type + +[**VLANTranslationRule**](VLANTranslationRule.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) + + +## IpamVlanTranslationRulesDestroy + +> IpamVlanTranslationRulesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation rule. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.IpamAPI.IpamVlanTranslationRulesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesDestroy``: %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 VLAN translation rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesDestroyRequest 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) + + +## IpamVlanTranslationRulesList + +> PaginatedVLANTranslationRuleList IpamVlanTranslationRulesList(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).LocalVid(localVid).LocalVidEmpty(localVidEmpty).LocalVidGt(localVidGt).LocalVidGte(localVidGte).LocalVidLt(localVidLt).LocalVidLte(localVidLte).LocalVidN(localVidN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Policy(policy).PolicyN(policyN).PolicyId(policyId).PolicyIdN(policyIdN).Q(q).RemoteVid(remoteVid).RemoteVidEmpty(remoteVidEmpty).RemoteVidGt(remoteVidGt).RemoteVidGte(remoteVidGte).RemoteVidLt(remoteVidLt).RemoteVidLte(remoteVidLte).RemoteVidN(remoteVidN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +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) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // 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) + 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) + localVid := []int32{int32(123)} // []int32 | (optional) + localVidEmpty := true // bool | (optional) + localVidGt := []int32{int32(123)} // []int32 | (optional) + localVidGte := []int32{int32(123)} // []int32 | (optional) + localVidLt := []int32{int32(123)} // []int32 | (optional) + localVidLte := []int32{int32(123)} // []int32 | (optional) + localVidN := []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) + policy := []string{"Inner_example"} // []string | VLAN Translation Policy (name) (optional) + policyN := []string{"Inner_example"} // []string | VLAN Translation Policy (name) (optional) + policyId := []int32{int32(123)} // []int32 | VLAN Translation Policy (ID) (optional) + policyIdN := []int32{int32(123)} // []int32 | VLAN Translation Policy (ID) (optional) + q := "q_example" // string | Search (optional) + remoteVid := []int32{int32(123)} // []int32 | (optional) + remoteVidEmpty := true // bool | (optional) + remoteVidGt := []int32{int32(123)} // []int32 | (optional) + remoteVidGte := []int32{int32(123)} // []int32 | (optional) + remoteVidLt := []int32{int32(123)} // []int32 | (optional) + remoteVidLte := []int32{int32(123)} // []int32 | (optional) + remoteVidN := []int32{int32(123)} // []int32 | (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.IpamAPI.IpamVlanTranslationRulesList(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).LocalVid(localVid).LocalVidEmpty(localVidEmpty).LocalVidGt(localVidGt).LocalVidGte(localVidGte).LocalVidLt(localVidLt).LocalVidLte(localVidLte).LocalVidN(localVidN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Policy(policy).PolicyN(policyN).PolicyId(policyId).PolicyIdN(policyIdN).Q(q).RemoteVid(remoteVid).RemoteVidEmpty(remoteVidEmpty).RemoteVidGt(remoteVidGt).RemoteVidGte(remoteVidGte).RemoteVidLt(remoteVidLt).RemoteVidLte(remoteVidLte).RemoteVidN(remoteVidN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationRulesList`: PaginatedVLANTranslationRuleList + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationRulesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesListRequest struct via the builder pattern + + +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) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **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**](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. | + **localVid** | **[]int32** | | + **localVidEmpty** | **bool** | | + **localVidGt** | **[]int32** | | + **localVidGte** | **[]int32** | | + **localVidLt** | **[]int32** | | + **localVidLte** | **[]int32** | | + **localVidN** | **[]int32** | | + **modifiedByRequest** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **policy** | **[]string** | VLAN Translation Policy (name) | + **policyN** | **[]string** | VLAN Translation Policy (name) | + **policyId** | **[]int32** | VLAN Translation Policy (ID) | + **policyIdN** | **[]int32** | VLAN Translation Policy (ID) | + **q** | **string** | Search | + **remoteVid** | **[]int32** | | + **remoteVidEmpty** | **bool** | | + **remoteVidGt** | **[]int32** | | + **remoteVidGte** | **[]int32** | | + **remoteVidLt** | **[]int32** | | + **remoteVidLte** | **[]int32** | | + **remoteVidN** | **[]int32** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedVLANTranslationRuleList**](PaginatedVLANTranslationRuleList.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) + + +## IpamVlanTranslationRulesPartialUpdate + +> VLANTranslationRule IpamVlanTranslationRulesPartialUpdate(ctx, id).PatchedVLANTranslationRuleRequest(patchedVLANTranslationRuleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation rule. + patchedVLANTranslationRuleRequest := *openapiclient.NewPatchedVLANTranslationRuleRequest() // PatchedVLANTranslationRuleRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationRulesPartialUpdate(context.Background(), id).PatchedVLANTranslationRuleRequest(patchedVLANTranslationRuleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationRulesPartialUpdate`: VLANTranslationRule + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationRulesPartialUpdate`: %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 VLAN translation rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedVLANTranslationRuleRequest** | [**PatchedVLANTranslationRuleRequest**](PatchedVLANTranslationRuleRequest.md) | | + +### Return type + +[**VLANTranslationRule**](VLANTranslationRule.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) + + +## IpamVlanTranslationRulesRetrieve + +> VLANTranslationRule IpamVlanTranslationRulesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation rule. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationRulesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationRulesRetrieve`: VLANTranslationRule + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationRulesRetrieve`: %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 VLAN translation rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**VLANTranslationRule**](VLANTranslationRule.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) + + +## IpamVlanTranslationRulesUpdate + +> VLANTranslationRule IpamVlanTranslationRulesUpdate(ctx, id).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this VLAN translation rule. + vLANTranslationRuleRequest := *openapiclient.NewVLANTranslationRuleRequest(int32(123), int32(123), int32(123)) // VLANTranslationRuleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IpamAPI.IpamVlanTranslationRulesUpdate(context.Background(), id).VLANTranslationRuleRequest(vLANTranslationRuleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanTranslationRulesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `IpamVlanTranslationRulesUpdate`: VLANTranslationRule + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanTranslationRulesUpdate`: %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 VLAN translation rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiIpamVlanTranslationRulesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **vLANTranslationRuleRequest** | [**VLANTranslationRuleRequest**](VLANTranslationRuleRequest.md) | | + +### Return type + +[**VLANTranslationRule**](VLANTranslationRule.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) + + ## IpamVlansBulkDestroy > IpamVlansBulkDestroy(ctx).VLANRequest(vLANRequest).Execute() @@ -11843,7 +13393,7 @@ Name | Type | Description | Notes ## IpamVlansList -> PaginatedVLANList IpamVlansList(ctx).AvailableAtSite(availableAtSite).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() +> PaginatedVLANList IpamVlansList(ctx).AvailableAtSite(availableAtSite).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).InterfaceId(interfaceId).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).QinqRole(qinqRole).QinqRoleEmpty(qinqRoleEmpty).QinqRoleIc(qinqRoleIc).QinqRoleIe(qinqRoleIe).QinqRoleIew(qinqRoleIew).QinqRoleIsw(qinqRoleIsw).QinqRoleN(qinqRoleN).QinqRoleNic(qinqRoleNic).QinqRoleNie(qinqRoleNie).QinqRoleNiew(qinqRoleNiew).QinqRoleNisw(qinqRoleNisw).QinqSvlanId(qinqSvlanId).QinqSvlanIdN(qinqSvlanIdN).QinqSvlanVid(qinqSvlanVid).QinqSvlanVidEmpty(qinqSvlanVidEmpty).QinqSvlanVidGt(qinqSvlanVidGt).QinqSvlanVidGte(qinqSvlanVidGte).QinqSvlanVidLt(qinqSvlanVidLt).QinqSvlanVidLte(qinqSvlanVidLte).QinqSvlanVidN(qinqSvlanVidN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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).VminterfaceId(vminterfaceId).Execute() @@ -11896,6 +13446,7 @@ func main() { idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) + interfaceId := "interfaceId_example" // string | Assigned interface (optional) l2vpn := []*int64{int64(123)} // []*int64 | L2VPN (optional) l2vpnN := []*int64{int64(123)} // []*int64 | L2VPN (optional) l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional) @@ -11923,32 +13474,61 @@ 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) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + qinqRole := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleEmpty := true // bool | (optional) + qinqRoleIc := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleIe := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleIew := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleIsw := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleN := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleNic := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleNie := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleNiew := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqRoleNisw := []*string{"Inner_example"} // []*string | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) (optional) + qinqSvlanId := []*int32{int32(123)} // []*int32 | Q-in-Q SVLAN (ID) (optional) + qinqSvlanIdN := []*int32{int32(123)} // []*int32 | Q-in-Q SVLAN (ID) (optional) + qinqSvlanVid := []int32{int32(123)} // []int32 | (optional) + qinqSvlanVidEmpty := []int32{int32(123)} // []int32 | (optional) + qinqSvlanVidGt := []int32{int32(123)} // []int32 | (optional) + qinqSvlanVidGte := []int32{int32(123)} // []int32 | (optional) + qinqSvlanVidLt := []int32{int32(123)} // []int32 | (optional) + qinqSvlanVidLte := []int32{int32(123)} // []int32 | (optional) + qinqSvlanVidN := []int32{int32(123)} // []int32 | (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusIe := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusIew := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusIsw := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) statusN := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusNic := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusNie := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusNiew := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusNisw := []string{"Inner_example"} // []string | Operational status of this VLAN (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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -11959,10 +13539,11 @@ func main() { vidLt := []int32{int32(123)} // []int32 | (optional) vidLte := []int32{int32(123)} // []int32 | (optional) vidN := []int32{int32(123)} // []int32 | (optional) + vminterfaceId := "vminterfaceId_example" // string | Assigned VM interface (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamVlansList(context.Background()).AvailableAtSite(availableAtSite).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() + resp, r, err := apiClient.IpamAPI.IpamVlansList(context.Background()).AvailableAtSite(availableAtSite).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).InterfaceId(interfaceId).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).QinqRole(qinqRole).QinqRoleEmpty(qinqRoleEmpty).QinqRoleIc(qinqRoleIc).QinqRoleIe(qinqRoleIe).QinqRoleIew(qinqRoleIew).QinqRoleIsw(qinqRoleIsw).QinqRoleN(qinqRoleN).QinqRoleNic(qinqRoleNic).QinqRoleNie(qinqRoleNie).QinqRoleNiew(qinqRoleNiew).QinqRoleNisw(qinqRoleNisw).QinqSvlanId(qinqSvlanId).QinqSvlanIdN(qinqSvlanIdN).QinqSvlanVid(qinqSvlanVid).QinqSvlanVidEmpty(qinqSvlanVidEmpty).QinqSvlanVidGt(qinqSvlanVidGt).QinqSvlanVidGte(qinqSvlanVidGte).QinqSvlanVidLt(qinqSvlanVidLt).QinqSvlanVidLte(qinqSvlanVidLte).QinqSvlanVidN(qinqSvlanVidN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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).VminterfaceId(vminterfaceId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -12016,6 +13597,7 @@ Name | Type | Description | Notes **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | + **interfaceId** | **string** | Assigned interface | **l2vpn** | **[]int64** | L2VPN | **l2vpnN** | **[]int64** | L2VPN | **l2vpnId** | **[]int32** | L2VPN (ID) | @@ -12043,32 +13625,61 @@ 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. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **qinqRole** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleEmpty** | **bool** | | + **qinqRoleIc** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleIe** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleIew** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleIsw** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleN** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleNic** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleNie** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleNiew** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqRoleNisw** | **[]string** | Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) | + **qinqSvlanId** | **[]int32** | Q-in-Q SVLAN (ID) | + **qinqSvlanIdN** | **[]int32** | Q-in-Q SVLAN (ID) | + **qinqSvlanVid** | **[]int32** | | + **qinqSvlanVidEmpty** | **[]int32** | | + **qinqSvlanVidGt** | **[]int32** | | + **qinqSvlanVidGte** | **[]int32** | | + **qinqSvlanVidLt** | **[]int32** | | + **qinqSvlanVidLte** | **[]int32** | | + **qinqSvlanVidN** | **[]int32** | | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this VLAN | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | Operational status of this VLAN | + **statusIe** | **[]string** | Operational status of this VLAN | + **statusIew** | **[]string** | Operational status of this VLAN | + **statusIsw** | **[]string** | Operational status of this VLAN | **statusN** | **[]string** | Operational status of this VLAN | + **statusNic** | **[]string** | Operational status of this VLAN | + **statusNie** | **[]string** | Operational status of this VLAN | + **statusNiew** | **[]string** | Operational status of this VLAN | + **statusNisw** | **[]string** | Operational status of this VLAN | **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -12079,6 +13690,7 @@ Name | Type | Description | Notes **vidLt** | **[]int32** | | **vidLte** | **[]int32** | | **vidN** | **[]int32** | | + **vminterfaceId** | **string** | Assigned VM interface | ### Return type @@ -12737,10 +14349,10 @@ func main() { 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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12841,10 +14453,10 @@ Name | Type | Description | Notes **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/Job 2.md b/docs/Job 2.md new file mode 100644 index 0000000000..1366c59151 --- /dev/null +++ b/docs/Job 2.md @@ -0,0 +1,456 @@ +# Job + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectType** | **string** | | [readonly] +**ObjectId** | Pointer to **NullableInt64** | | [optional] +**Name** | **string** | | +**Status** | [**JobStatus**](JobStatus.md) | | +**Created** | **time.Time** | | [readonly] +**Scheduled** | Pointer to **NullableTime** | | [optional] +**Interval** | Pointer to **NullableInt32** | Recurrence interval (in minutes) | [optional] +**Started** | Pointer to **NullableTime** | | [optional] +**Completed** | Pointer to **NullableTime** | | [optional] +**User** | [**User**](User.md) | | [readonly] +**Data** | Pointer to **interface{}** | | [optional] +**Error** | **string** | | [readonly] +**JobId** | **string** | | + +## Methods + +### NewJob + +`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string, ) *Job` + +NewJob instantiates a new Job 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 + +### NewJobWithDefaults + +`func NewJobWithDefaults() *Job` + +NewJobWithDefaults instantiates a new Job 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 *Job) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Job) 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 *Job) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Job) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Job) 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 *Job) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Job) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Job) 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 *Job) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectType + +`func (o *Job) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Job) 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 *Job) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *Job) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *Job) 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 *Job) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *Job) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### SetObjectIdNil + +`func (o *Job) SetObjectIdNil(b bool)` + + SetObjectIdNil sets the value for ObjectId to be an explicit nil + +### UnsetObjectId +`func (o *Job) UnsetObjectId()` + +UnsetObjectId ensures that no value is present for ObjectId, not even an explicit nil +### GetName + +`func (o *Job) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Job) 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 *Job) SetName(v string)` + +SetName sets Name field to given value. + + +### GetStatus + +`func (o *Job) GetStatus() JobStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Job) GetStatusOk() (*JobStatus, 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 *Job) SetStatus(v JobStatus)` + +SetStatus sets Status field to given value. + + +### GetCreated + +`func (o *Job) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Job) 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 *Job) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetScheduled + +`func (o *Job) GetScheduled() time.Time` + +GetScheduled returns the Scheduled field if non-nil, zero value otherwise. + +### GetScheduledOk + +`func (o *Job) GetScheduledOk() (*time.Time, bool)` + +GetScheduledOk returns a tuple with the Scheduled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduled + +`func (o *Job) SetScheduled(v time.Time)` + +SetScheduled sets Scheduled field to given value. + +### HasScheduled + +`func (o *Job) HasScheduled() bool` + +HasScheduled returns a boolean if a field has been set. + +### SetScheduledNil + +`func (o *Job) SetScheduledNil(b bool)` + + SetScheduledNil sets the value for Scheduled to be an explicit nil + +### UnsetScheduled +`func (o *Job) UnsetScheduled()` + +UnsetScheduled ensures that no value is present for Scheduled, not even an explicit nil +### GetInterval + +`func (o *Job) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *Job) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *Job) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *Job) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *Job) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *Job) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil +### GetStarted + +`func (o *Job) GetStarted() time.Time` + +GetStarted returns the Started field if non-nil, zero value otherwise. + +### GetStartedOk + +`func (o *Job) GetStartedOk() (*time.Time, bool)` + +GetStartedOk returns a tuple with the Started field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStarted + +`func (o *Job) SetStarted(v time.Time)` + +SetStarted sets Started field to given value. + +### HasStarted + +`func (o *Job) HasStarted() bool` + +HasStarted returns a boolean if a field has been set. + +### SetStartedNil + +`func (o *Job) SetStartedNil(b bool)` + + SetStartedNil sets the value for Started to be an explicit nil + +### UnsetStarted +`func (o *Job) UnsetStarted()` + +UnsetStarted ensures that no value is present for Started, not even an explicit nil +### GetCompleted + +`func (o *Job) GetCompleted() time.Time` + +GetCompleted returns the Completed field if non-nil, zero value otherwise. + +### GetCompletedOk + +`func (o *Job) GetCompletedOk() (*time.Time, bool)` + +GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompleted + +`func (o *Job) SetCompleted(v time.Time)` + +SetCompleted sets Completed field to given value. + +### HasCompleted + +`func (o *Job) HasCompleted() bool` + +HasCompleted returns a boolean if a field has been set. + +### SetCompletedNil + +`func (o *Job) SetCompletedNil(b bool)` + + SetCompletedNil sets the value for Completed to be an explicit nil + +### UnsetCompleted +`func (o *Job) UnsetCompleted()` + +UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +### GetUser + +`func (o *Job) GetUser() User` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Job) GetUserOk() (*User, 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 *Job) SetUser(v User)` + +SetUser sets User field to given value. + + +### GetData + +`func (o *Job) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *Job) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *Job) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *Job) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *Job) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *Job) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetError + +`func (o *Job) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *Job) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *Job) SetError(v string)` + +SetError sets Error field to given value. + + +### GetJobId + +`func (o *Job) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *Job) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *Job) SetJobId(v string)` + +SetJobId sets JobId 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/Job.md b/docs/Job.md index 1366c59151..e00c39e3d6 100644 --- a/docs/Job.md +++ b/docs/Job.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectType** | **string** | | [readonly] **ObjectId** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | -**Status** | [**JobStatus**](JobStatus.md) | | -**Created** | **time.Time** | | [readonly] +**Status** | [**BriefJobStatus**](BriefJobStatus.md) | | +**Created** | Pointer to **time.Time** | | [optional] [readonly] **Scheduled** | Pointer to **NullableTime** | | [optional] **Interval** | Pointer to **NullableInt32** | Recurrence interval (in minutes) | [optional] **Started** | Pointer to **NullableTime** | | [optional] **Completed** | Pointer to **NullableTime** | | [optional] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **Data** | Pointer to **interface{}** | | [optional] **Error** | **string** | | [readonly] **JobId** | **string** | | @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewJob -`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string, ) *Job` +`func NewJob(id int32, url string, display string, objectType string, name string, status BriefJobStatus, user BriefUser, error_ string, jobId string, ) *Job` NewJob instantiates a new Job object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Job) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Job) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Job) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Job) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Job) GetDisplay() string` @@ -177,20 +203,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *Job) GetStatus() JobStatus` +`func (o *Job) GetStatus() BriefJobStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *Job) GetStatusOk() (*JobStatus, bool)` +`func (o *Job) GetStatusOk() (*BriefJobStatus, 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 *Job) SetStatus(v JobStatus)` +`func (o *Job) SetStatus(v BriefJobStatus)` SetStatus sets Status field to given value. @@ -214,6 +240,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Job) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### GetScheduled @@ -357,20 +388,20 @@ HasCompleted returns a boolean if a field has been set. UnsetCompleted ensures that no value is present for Completed, not even an explicit nil ### GetUser -`func (o *Job) GetUser() User` +`func (o *Job) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Job) GetUserOk() (*User, bool)` +`func (o *Job) GetUserOk() (*BriefUser, 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 *Job) SetUser(v User)` +`func (o *Job) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/JournalEntry.md b/docs/JournalEntry.md index de511cc13b..9210a103ab 100644 --- a/docs/JournalEntry.md +++ b/docs/JournalEntry.md @@ -6,23 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **AssignedObjectType** | **string** | | **AssignedObjectId** | **int64** | | -**AssignedObject** | **interface{}** | | [readonly] -**Created** | **NullableTime** | | [readonly] +**AssignedObject** | Pointer to **interface{}** | | [optional] [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] **CreatedBy** | Pointer to **NullableInt32** | | [optional] **Kind** | Pointer to [**JournalEntryKind**](JournalEntryKind.md) | | [optional] **Comments** | **string** | | **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**LastUpdated** | **NullableTime** | | [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewJournalEntry -`func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry` +`func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, comments string, ) *JournalEntry` NewJournalEntry instantiates a new JournalEntry object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *JournalEntry) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *JournalEntry) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *JournalEntry) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *JournalEntry) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *JournalEntry) GetDisplay() string` @@ -156,6 +182,11 @@ and a boolean to check if the value has been set. SetAssignedObject sets AssignedObject field to given value. +### HasAssignedObject + +`func (o *JournalEntry) HasAssignedObject() bool` + +HasAssignedObject returns a boolean if a field has been set. ### SetAssignedObjectNil @@ -186,6 +217,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *JournalEntry) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -346,6 +382,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *JournalEntry) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/L2VPN.md b/docs/L2VPN.md index 85cc2783ea..9bb0b6d683 100644 --- a/docs/L2VPN.md +++ b/docs/L2VPN.md @@ -6,12 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNType**](L2VPNType.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNType**](BriefL2VPNType.md) | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods @@ -72,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *L2VPN) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *L2VPN) GetDisplay() string` @@ -169,20 +203,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPN) GetType() L2VPNType` +`func (o *L2VPN) GetType() BriefL2VPNType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPN) GetTypeOk() (*L2VPNType, bool)` +`func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPN) SetType(v L2VPNType)` +`func (o *L2VPN) SetType(v BriefL2VPNType)` SetType sets Type field to given value. @@ -192,6 +226,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPN) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPN) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPN) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPN) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPN) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPN) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPN) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPN) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPN) GetDescription() string` @@ -217,6 +301,186 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPN) GetTenantOk() (*BriefTenant, 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 *L2VPN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPN) 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 *L2VPN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPN) 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 *L2VPN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPN) 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 *L2VPN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *L2VPN) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *L2VPN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPN) 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 *L2VPN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *L2VPN) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *L2VPN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPN) 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/L2VPNRequest.md b/docs/L2VPNRequest.md index 7c5fb24c8c..22f327eb13 100644 --- a/docs/L2VPNRequest.md +++ b/docs/L2VPNRequest.md @@ -7,8 +7,14 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -106,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPNRequest) GetType() L2VPNTypeValue` +`func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -129,6 +135,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPNRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPNRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPNRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPNRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPNRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPNRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPNRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPNRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPNRequest) GetDescription() string` @@ -154,6 +210,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPNRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPNRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPNRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPNRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPNRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, 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 *L2VPNRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPNRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPNRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPNRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPNRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNRequest) 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 *L2VPNRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNRequest) 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 *L2VPNRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNRequest) HasCustomFields() bool` + +HasCustomFields 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/L2VPNTermination.md b/docs/L2VPNTermination.md index 4c558a8e62..7317c7eb2a 100644 --- a/docs/L2VPNTermination.md +++ b/docs/L2VPNTermination.md @@ -6,14 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**L2vpn** | [**L2VPN**](L2VPN.md) | | +**L2vpn** | [**BriefL2VPN**](BriefL2VPN.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**AssignedObject** | Pointer to **interface{}** | | [optional] [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewL2VPNTermination -`func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN, ) *L2VPNTermination` +`func NewL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, ) *L2VPNTermination` NewL2VPNTermination instantiates a new L2VPNTermination object This constructor will assign default values to properties that have it defined, @@ -68,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPNTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPNTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *L2VPNTermination) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *L2VPNTermination) GetDisplay() string` @@ -90,24 +123,219 @@ SetDisplay sets Display field to given value. ### GetL2vpn -`func (o *L2VPNTermination) GetL2vpn() L2VPN` +`func (o *L2VPNTermination) GetL2vpn() BriefL2VPN` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool)` +`func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTermination) SetL2vpn(v L2VPN)` +`func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTermination) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTermination) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTermination) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTermination) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetAssignedObject + +`func (o *L2VPNTermination) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *L2VPNTermination) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + +### HasAssignedObject + +`func (o *L2VPNTermination) HasAssignedObject() bool` + +HasAssignedObject returns a boolean if a field has been set. + +### SetAssignedObjectNil + +`func (o *L2VPNTermination) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *L2VPNTermination) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetTags + +`func (o *L2VPNTermination) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTermination) 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 *L2VPNTermination) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTermination) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTermination) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTermination) 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 *L2VPNTermination) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTermination) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPNTermination) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPNTermination) 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 *L2VPNTermination) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *L2VPNTermination) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *L2VPNTermination) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPNTermination) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPNTermination) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPNTermination) 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 *L2VPNTermination) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *L2VPNTermination) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *L2VPNTermination) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPNTermination) 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/L2VPNTerminationRequest.md b/docs/L2VPNTerminationRequest.md index 06ee7633d1..2fb1317c5f 100644 --- a/docs/L2VPNTerminationRequest.md +++ b/docs/L2VPNTerminationRequest.md @@ -4,13 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | [**L2VPNRequest**](L2VPNRequest.md) | | +**L2vpn** | [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewL2VPNTerminationRequest -`func NewL2VPNTerminationRequest(l2vpn L2VPNRequest, ) *L2VPNTerminationRequest` +`func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64, ) *L2VPNTerminationRequest` NewL2VPNTerminationRequest instantiates a new L2VPNTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -27,24 +31,114 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTerminationRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetTags + +`func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTerminationRequest) HasCustomFields() bool` + +HasCustomFields 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/Location.md b/docs/Location.md index 4130ec5473..ccc490887d 100644 --- a/docs/Location.md +++ b/docs/Location.md @@ -6,18 +6,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSite**](BriefSite.md) | | +**Parent** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional] +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] -**RackCount** | **int32** | | [readonly] [default to 0] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**RackCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] +**DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Depth** | **int32** | | [readonly] ## Methods ### NewLocation -`func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *Location` +`func NewLocation(id int32, url string, display string, name string, slug string, site BriefSite, depth int32, ) *Location` NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, @@ -72,6 +84,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Location) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Location) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Location) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Location) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Location) GetDisplay() string` @@ -132,6 +169,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *Location) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Location) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Location) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *Location) GetParent() NestedLocation` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *Location) GetParentOk() (*NestedLocation, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *Location) SetParent(v NestedLocation)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *Location) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *Location) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *Location) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *Location) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Location) GetStatusOk() (*LocationStatus, 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 *Location) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Location) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Location) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Location) GetTenantOk() (*BriefTenant, 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 *Location) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Location) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Location) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Location) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Location) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Location) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Location) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Location) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *Location) GetDescription() string` @@ -157,6 +334,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Location) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Location) 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 *Location) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Location) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Location) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Location) 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 *Location) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Location) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Location) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Location) 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 *Location) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Location) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Location) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Location) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Location) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Location) 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 *Location) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Location) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Location) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Location) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetRackCount `func (o *Location) GetRackCount() int32` @@ -176,6 +473,61 @@ and a boolean to check if the value has been set. SetRackCount sets RackCount field to given value. +### HasRackCount + +`func (o *Location) HasRackCount() bool` + +HasRackCount returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *Location) GetDeviceCount() int32` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Location) GetDeviceCountOk() (*int32, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Location) SetDeviceCount(v int32)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Location) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *Location) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Location) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Location) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Location) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/LocationRequest.md b/docs/LocationRequest.md index f23f111fd2..0dd6b179cd 100644 --- a/docs/LocationRequest.md +++ b/docs/LocationRequest.md @@ -6,13 +6,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Parent** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewLocationRequest -`func NewLocationRequest(name string, slug string, ) *LocationRequest` +`func NewLocationRequest(name string, slug string, site BriefSiteRequest, ) *LocationRequest` NewLocationRequest instantiates a new LocationRequest object This constructor will assign default values to properties that have it defined, @@ -67,6 +74,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *LocationRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *LocationRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *LocationRequest) GetParent() NestedLocationRequest` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *LocationRequest) SetParent(v NestedLocationRequest)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *LocationRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *LocationRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *LocationRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *LocationRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, 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 *LocationRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LocationRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *LocationRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, 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 *LocationRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *LocationRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *LocationRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *LocationRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *LocationRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *LocationRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *LocationRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *LocationRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *LocationRequest) GetDescription() string` @@ -92,6 +239,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *LocationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LocationRequest) 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 *LocationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LocationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *LocationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *LocationRequest) 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 *LocationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *LocationRequest) HasCustomFields() bool` + +HasCustomFields 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/LocationStatus.md b/docs/LocationStatus.md new file mode 100644 index 0000000000..817680af33 --- /dev/null +++ b/docs/LocationStatus.md @@ -0,0 +1,82 @@ +# LocationStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Label** | Pointer to [**LocationStatusLabel**](LocationStatusLabel.md) | | [optional] + +## Methods + +### NewLocationStatus + +`func NewLocationStatus() *LocationStatus` + +NewLocationStatus instantiates a new LocationStatus 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 + +### NewLocationStatusWithDefaults + +`func NewLocationStatusWithDefaults() *LocationStatus` + +NewLocationStatusWithDefaults instantiates a new LocationStatus 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 *LocationStatus) GetValue() LocationStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *LocationStatus) GetValueOk() (*LocationStatusValue, 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 *LocationStatus) SetValue(v LocationStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *LocationStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *LocationStatus) GetLabel() LocationStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *LocationStatus) GetLabelOk() (*LocationStatusLabel, 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 *LocationStatus) SetLabel(v LocationStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *LocationStatus) 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/LocationStatusLabel.md b/docs/LocationStatusLabel.md new file mode 100644 index 0000000000..611c91d2be --- /dev/null +++ b/docs/LocationStatusLabel.md @@ -0,0 +1,19 @@ +# LocationStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `STAGING` (value: `"Staging"`) + +* `ACTIVE` (value: `"Active"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + +* `RETIRED` (value: `"Retired"`) + + +[[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/PatchedWritableLocationRequestStatus.md b/docs/LocationStatusValue.md similarity index 90% rename from docs/PatchedWritableLocationRequestStatus.md rename to docs/LocationStatusValue.md index 371493058f..37cbbe607b 100644 --- a/docs/PatchedWritableLocationRequestStatus.md +++ b/docs/LocationStatusValue.md @@ -1,4 +1,4 @@ -# PatchedWritableLocationRequestStatus +# LocationStatusValue ## Enum diff --git a/docs/MACAddress.md b/docs/MACAddress.md new file mode 100644 index 0000000000..8cc146b34c --- /dev/null +++ b/docs/MACAddress.md @@ -0,0 +1,424 @@ +# MACAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**MacAddress** | **string** | | +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**AssignedObject** | Pointer to **interface{}** | | [optional] [readonly] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] + +## Methods + +### NewMACAddress + +`func NewMACAddress(id int32, url string, display string, macAddress string, ) *MACAddress` + +NewMACAddress instantiates a new MACAddress 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 + +### NewMACAddressWithDefaults + +`func NewMACAddressWithDefaults() *MACAddress` + +NewMACAddressWithDefaults instantiates a new MACAddress 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 *MACAddress) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MACAddress) 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 *MACAddress) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *MACAddress) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *MACAddress) 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 *MACAddress) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *MACAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *MACAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *MACAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *MACAddress) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *MACAddress) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *MACAddress) 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 *MACAddress) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetMacAddress + +`func (o *MACAddress) GetMacAddress() string` + +GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. + +### GetMacAddressOk + +`func (o *MACAddress) GetMacAddressOk() (*string, bool)` + +GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddress + +`func (o *MACAddress) SetMacAddress(v string)` + +SetMacAddress sets MacAddress field to given value. + + +### GetAssignedObjectType + +`func (o *MACAddress) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *MACAddress) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *MACAddress) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *MACAddress) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *MACAddress) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *MACAddress) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *MACAddress) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *MACAddress) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *MACAddress) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *MACAddress) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *MACAddress) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *MACAddress) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetAssignedObject + +`func (o *MACAddress) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *MACAddress) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *MACAddress) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + +### HasAssignedObject + +`func (o *MACAddress) HasAssignedObject() bool` + +HasAssignedObject returns a boolean if a field has been set. + +### SetAssignedObjectNil + +`func (o *MACAddress) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *MACAddress) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetDescription + +`func (o *MACAddress) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MACAddress) 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 *MACAddress) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *MACAddress) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *MACAddress) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *MACAddress) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *MACAddress) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *MACAddress) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *MACAddress) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *MACAddress) 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 *MACAddress) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *MACAddress) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *MACAddress) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *MACAddress) 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 *MACAddress) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *MACAddress) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *MACAddress) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *MACAddress) 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 *MACAddress) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *MACAddress) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *MACAddress) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *MACAddress) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *MACAddress) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *MACAddress) 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 *MACAddress) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *MACAddress) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *MACAddress) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *MACAddress) 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/MACAddressRequest.md b/docs/MACAddressRequest.md new file mode 100644 index 0000000000..0a374de8b8 --- /dev/null +++ b/docs/MACAddressRequest.md @@ -0,0 +1,227 @@ +# MACAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MacAddress** | **string** | | +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewMACAddressRequest + +`func NewMACAddressRequest(macAddress string, ) *MACAddressRequest` + +NewMACAddressRequest instantiates a new MACAddressRequest 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 + +### NewMACAddressRequestWithDefaults + +`func NewMACAddressRequestWithDefaults() *MACAddressRequest` + +NewMACAddressRequestWithDefaults instantiates a new MACAddressRequest 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 + +### GetMacAddress + +`func (o *MACAddressRequest) GetMacAddress() string` + +GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. + +### GetMacAddressOk + +`func (o *MACAddressRequest) GetMacAddressOk() (*string, bool)` + +GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddress + +`func (o *MACAddressRequest) SetMacAddress(v string)` + +SetMacAddress sets MacAddress field to given value. + + +### GetAssignedObjectType + +`func (o *MACAddressRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *MACAddressRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *MACAddressRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *MACAddressRequest) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *MACAddressRequest) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *MACAddressRequest) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *MACAddressRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *MACAddressRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *MACAddressRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *MACAddressRequest) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *MACAddressRequest) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *MACAddressRequest) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetDescription + +`func (o *MACAddressRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MACAddressRequest) 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 *MACAddressRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *MACAddressRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *MACAddressRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *MACAddressRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *MACAddressRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *MACAddressRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *MACAddressRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *MACAddressRequest) 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 *MACAddressRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *MACAddressRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *MACAddressRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *MACAddressRequest) 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 *MACAddressRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *MACAddressRequest) HasCustomFields() bool` + +HasCustomFields 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/Manufacturer.md b/docs/Manufacturer.md index c4c2211adc..e5996912ba 100644 --- a/docs/Manufacturer.md +++ b/docs/Manufacturer.md @@ -6,17 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**DevicetypeCount** | **int64** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**DevicetypeCount** | Pointer to **int64** | | [optional] [readonly] +**InventoryitemCount** | **int64** | | [readonly] +**PlatformCount** | **int64** | | [readonly] ## Methods ### NewManufacturer -`func NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64, ) *Manufacturer` +`func NewManufacturer(id int32, url string, display string, name string, slug string, inventoryitemCount int64, platformCount int64, ) *Manufacturer` NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, @@ -71,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Manufacturer) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Manufacturer) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Manufacturer) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Manufacturer) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Manufacturer) GetDisplay() string` @@ -156,6 +188,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Manufacturer) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Manufacturer) 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 *Manufacturer) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Manufacturer) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Manufacturer) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Manufacturer) 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 *Manufacturer) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Manufacturer) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Manufacturer) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Manufacturer) 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 *Manufacturer) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Manufacturer) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Manufacturer) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Manufacturer) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Manufacturer) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Manufacturer) 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 *Manufacturer) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Manufacturer) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Manufacturer) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Manufacturer) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDevicetypeCount `func (o *Manufacturer) GetDevicetypeCount() int64` @@ -175,6 +327,51 @@ and a boolean to check if the value has been set. SetDevicetypeCount sets DevicetypeCount field to given value. +### HasDevicetypeCount + +`func (o *Manufacturer) HasDevicetypeCount() bool` + +HasDevicetypeCount returns a boolean if a field has been set. + +### GetInventoryitemCount + +`func (o *Manufacturer) GetInventoryitemCount() int64` + +GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise. + +### GetInventoryitemCountOk + +`func (o *Manufacturer) GetInventoryitemCountOk() (*int64, 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 *Manufacturer) SetInventoryitemCount(v int64)` + +SetInventoryitemCount sets InventoryitemCount field to given value. + + +### GetPlatformCount + +`func (o *Manufacturer) GetPlatformCount() int64` + +GetPlatformCount returns the PlatformCount field if non-nil, zero value otherwise. + +### GetPlatformCountOk + +`func (o *Manufacturer) GetPlatformCountOk() (*int64, bool)` + +GetPlatformCountOk returns a tuple with the PlatformCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformCount + +`func (o *Manufacturer) SetPlatformCount(v int64)` + +SetPlatformCount sets PlatformCount 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/ManufacturerRequest 2.md b/docs/ManufacturerRequest 2.md new file mode 100644 index 0000000000..669fe23896 --- /dev/null +++ b/docs/ManufacturerRequest 2.md @@ -0,0 +1,98 @@ +# ManufacturerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewManufacturerRequest + +`func NewManufacturerRequest(name string, slug string, ) *ManufacturerRequest` + +NewManufacturerRequest instantiates a new ManufacturerRequest 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 + +### NewManufacturerRequestWithDefaults + +`func NewManufacturerRequestWithDefaults() *ManufacturerRequest` + +NewManufacturerRequestWithDefaults instantiates a new ManufacturerRequest 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 *ManufacturerRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ManufacturerRequest) 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 *ManufacturerRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *ManufacturerRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *ManufacturerRequest) 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 *ManufacturerRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *ManufacturerRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ManufacturerRequest) 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 *ManufacturerRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ManufacturerRequest) 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/ManufacturerRequest.md b/docs/ManufacturerRequest.md index 669fe23896..6f878526ba 100644 --- a/docs/ManufacturerRequest.md +++ b/docs/ManufacturerRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ManufacturerRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ManufacturerRequest) 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 *ManufacturerRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ManufacturerRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ManufacturerRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ManufacturerRequest) 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 *ManufacturerRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ManufacturerRequest) HasCustomFields() bool` + +HasCustomFields 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/Module.md b/docs/Module.md index a9257180a8..e5ab72b2d7 100644 --- a/docs/Module.md +++ b/docs/Module.md @@ -6,15 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | | +**ModuleType** | [**BriefModuleType**](BriefModuleType.md) | | +**Status** | Pointer to [**InventoryItemStatus**](InventoryItemStatus.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewModule -`func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay, ) *Module` +`func NewModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, ) *Module` NewModule instantiates a new Module object This constructor will assign default values to properties that have it defined, @@ -69,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Module) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Module) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Module) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Module) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Module) GetDisplay() string` @@ -91,20 +127,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Module) GetDevice() Device` +`func (o *Module) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Module) GetDeviceOk() (*Device, bool)` +`func (o *Module) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Module) SetDevice(v Device)` +`func (o *Module) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -129,6 +165,281 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *Module) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *Module) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *Module) GetStatus() InventoryItemStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Module) GetStatusOk() (*InventoryItemStatus, 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 *Module) SetStatus(v InventoryItemStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Module) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *Module) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Module) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Module) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Module) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Module) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Module) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Module) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Module) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Module) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Module) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *Module) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Module) 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 *Module) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Module) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *Module) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Module) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Module) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Module) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Module) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Module) 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 *Module) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Module) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Module) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Module) 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 *Module) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Module) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Module) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Module) 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 *Module) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Module) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Module) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Module) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Module) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Module) 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 *Module) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Module) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Module) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Module) 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/ModuleBay.md b/docs/ModuleBay.md index 71f7349397..a85baae822 100644 --- a/docs/ModuleBay.md +++ b/docs/ModuleBay.md @@ -6,23 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModule**](Module.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [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] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewModuleBay -`func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` +`func NewModuleBay(id int32, url string, display string, device BriefDevice, name string, ) *ModuleBay` NewModuleBay instantiates a new ModuleBay object This constructor will assign default values to properties that have it defined, @@ -77,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ModuleBay) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ModuleBay) GetDisplay() string` @@ -99,24 +126,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ModuleBay) GetDevice() Device` +`func (o *ModuleBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBay) GetDeviceOk() (*Device, bool)` +`func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBay) SetDevice(v Device)` +`func (o *ModuleBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBay) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBay) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBay) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBay) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBay) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBay) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBay) GetName() string` @@ -139,20 +201,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBay) GetInstalledModule() Module` +`func (o *ModuleBay) GetInstalledModule() BriefModule` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool)` +`func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBay) SetInstalledModule(v Module)` +`func (o *ModuleBay) SetInstalledModule(v BriefModule)` SetInstalledModule sets InstalledModule field to given value. @@ -316,6 +378,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ModuleBay) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -346,6 +413,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ModuleBay) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ModuleBayNestedModuleRequest.md b/docs/ModuleBayNestedModuleRequest.md deleted file mode 100644 index 021f05340c..0000000000 --- a/docs/ModuleBayNestedModuleRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# ModuleBayNestedModuleRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Serial** | Pointer to **string** | | [optional] - -## Methods - -### NewModuleBayNestedModuleRequest - -`func NewModuleBayNestedModuleRequest() *ModuleBayNestedModuleRequest` - -NewModuleBayNestedModuleRequest instantiates a new ModuleBayNestedModuleRequest 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 - -### NewModuleBayNestedModuleRequestWithDefaults - -`func NewModuleBayNestedModuleRequestWithDefaults() *ModuleBayNestedModuleRequest` - -NewModuleBayNestedModuleRequestWithDefaults instantiates a new ModuleBayNestedModuleRequest 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 - -### GetSerial - -`func (o *ModuleBayNestedModuleRequest) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *ModuleBayNestedModuleRequest) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *ModuleBayNestedModuleRequest) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *ModuleBayNestedModuleRequest) HasSerial() bool` - -HasSerial 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/ModuleBayRequest.md b/docs/ModuleBayRequest.md index aa37cbe9d9..2062d984b4 100644 --- a/docs/ModuleBayRequest.md +++ b/docs/ModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [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] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewModuleBayRequest -`func NewModuleBayRequest(device DeviceRequest, name string, ) *ModuleBayRequest` +`func NewModuleBayRequest(device BriefDeviceRequest, name string, ) *ModuleBayRequest` NewModuleBayRequest instantiates a new ModuleBayRequest object This constructor will assign default values to properties that have it defined, @@ -34,24 +35,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleBayRequest) GetDevice() DeviceRequest` +`func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBayRequest) GetName() string` @@ -74,20 +110,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayTemplate.md b/docs/ModuleBayTemplate.md index 237edfcafb..24e58c9d55 100644 --- a/docs/ModuleBayTemplate.md +++ b/docs/ModuleBayTemplate.md @@ -7,19 +7,20 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewModuleBayTemplate -`func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` +`func NewModuleBayTemplate(id int32, url string, display string, name string, ) *ModuleBayTemplate` NewModuleBayTemplate instantiates a new ModuleBayTemplate object This constructor will assign default values to properties that have it defined, @@ -96,24 +97,74 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ModuleBayTemplate) GetDeviceType() DeviceType` +`func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplate) SetDeviceType(v DeviceType)` +`func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplate) GetName() string` @@ -228,6 +279,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ModuleBayTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -258,6 +314,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ModuleBayTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ModuleBayTemplateRequest 2.md b/docs/ModuleBayTemplateRequest 2.md new file mode 100644 index 0000000000..75345ace9c --- /dev/null +++ b/docs/ModuleBayTemplateRequest 2.md @@ -0,0 +1,150 @@ +# ModuleBayTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**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] + +## Methods + +### NewModuleBayTemplateRequest + +`func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *ModuleBayTemplateRequest` + +NewModuleBayTemplateRequest instantiates a new ModuleBayTemplateRequest 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 + +### NewModuleBayTemplateRequestWithDefaults + +`func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest` + +NewModuleBayTemplateRequestWithDefaults instantiates a new ModuleBayTemplateRequest 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 + +### GetDeviceType + +`func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + + +### GetName + +`func (o *ModuleBayTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ModuleBayTemplateRequest) 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 *ModuleBayTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *ModuleBayTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ModuleBayTemplateRequest) 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 *ModuleBayTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ModuleBayTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetPosition + +`func (o *ModuleBayTemplateRequest) GetPosition() string` + +GetPosition returns the Position field if non-nil, zero value otherwise. + +### GetPositionOk + +`func (o *ModuleBayTemplateRequest) GetPositionOk() (*string, bool)` + +GetPositionOk returns a tuple with the Position field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPosition + +`func (o *ModuleBayTemplateRequest) SetPosition(v string)` + +SetPosition sets Position field to given value. + +### HasPosition + +`func (o *ModuleBayTemplateRequest) HasPosition() bool` + +HasPosition returns a boolean if a field has been set. + +### GetDescription + +`func (o *ModuleBayTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModuleBayTemplateRequest) 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 *ModuleBayTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModuleBayTemplateRequest) 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/ModuleBayTemplateRequest.md b/docs/ModuleBayTemplateRequest.md index 75345ace9c..96ce2a4374 100644 --- a/docs/ModuleBayTemplateRequest.md +++ b/docs/ModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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] @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplateRequest -`func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *ModuleBayTemplateRequest` +`func NewModuleBayTemplateRequest(name string, ) *ModuleBayTemplateRequest` NewModuleBayTemplateRequest instantiates a new ModuleBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -31,24 +32,74 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplateRequest) GetName() string` diff --git a/docs/ModuleRequest.md b/docs/ModuleRequest.md index 648ff41f3d..47cf7034a5 100644 --- a/docs/ModuleRequest.md +++ b/docs/ModuleRequest.md @@ -4,14 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | | +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleRequest -`func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest, ) *ModuleRequest` +`func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest, ) *ModuleRequest` NewModuleRequest instantiates a new ModuleRequest object This constructor will assign default values to properties that have it defined, @@ -28,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleRequest) GetDevice() DeviceRequest` +`func (o *ModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -66,6 +74,211 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *ModuleRequest) GetStatus() InventoryItemStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModuleRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *ModuleRequest) SetStatus(v InventoryItemStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ModuleRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *ModuleRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *ModuleRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *ModuleRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *ModuleRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *ModuleRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *ModuleRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *ModuleRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *ModuleRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *ModuleRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *ModuleRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *ModuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModuleRequest) 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 *ModuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModuleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *ModuleRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleRequest) 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 *ModuleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleRequest) 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 *ModuleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleRequest) HasCustomFields() bool` + +HasCustomFields 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/ModuleType.md b/docs/ModuleType.md index 2c09e327c6..8f530087df 100644 --- a/docs/ModuleType.md +++ b/docs/ModuleType.md @@ -6,16 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeAirflow**](ModuleTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewModuleType -`func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string, ) *ModuleType` +`func NewModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string, ) *ModuleType` NewModuleType instantiates a new ModuleType object This constructor will assign default values to properties that have it defined, @@ -70,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ModuleType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ModuleType) GetDisplay() string` @@ -92,20 +127,20 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *ModuleType) GetManufacturer() Manufacturer` +`func (o *ModuleType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleType) SetManufacturer(v Manufacturer)` +`func (o *ModuleType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. @@ -130,6 +165,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleType) GetAirflow() ModuleTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleType) SetAirflow(v ModuleTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleType) GetDescription() string` @@ -155,6 +320,151 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleType) 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 *ModuleType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleType) 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 *ModuleType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ModuleType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ModuleType) 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 *ModuleType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *ModuleType) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *ModuleType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ModuleType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ModuleType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ModuleType) 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 *ModuleType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *ModuleType) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *ModuleType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ModuleType) 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/ModuleTypeAirflow.md b/docs/ModuleTypeAirflow.md new file mode 100644 index 0000000000..2d957066bb --- /dev/null +++ b/docs/ModuleTypeAirflow.md @@ -0,0 +1,82 @@ +# ModuleTypeAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] +**Label** | Pointer to [**ModuleTypeAirflowLabel**](ModuleTypeAirflowLabel.md) | | [optional] + +## Methods + +### NewModuleTypeAirflow + +`func NewModuleTypeAirflow() *ModuleTypeAirflow` + +NewModuleTypeAirflow instantiates a new ModuleTypeAirflow 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 + +### NewModuleTypeAirflowWithDefaults + +`func NewModuleTypeAirflowWithDefaults() *ModuleTypeAirflow` + +NewModuleTypeAirflowWithDefaults instantiates a new ModuleTypeAirflow 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 *ModuleTypeAirflow) GetValue() ModuleTypeAirflowValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModuleTypeAirflow) GetValueOk() (*ModuleTypeAirflowValue, 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 *ModuleTypeAirflow) SetValue(v ModuleTypeAirflowValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModuleTypeAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ModuleTypeAirflow) GetLabel() ModuleTypeAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ModuleTypeAirflow) GetLabelOk() (*ModuleTypeAirflowLabel, 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 *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ModuleTypeAirflow) 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/ModuleTypeAirflowLabel.md b/docs/ModuleTypeAirflowLabel.md new file mode 100644 index 0000000000..fc30c3c585 --- /dev/null +++ b/docs/ModuleTypeAirflowLabel.md @@ -0,0 +1,21 @@ +# ModuleTypeAirflowLabel + +## Enum + + +* `FRONT_TO_REAR` (value: `"Front to rear"`) + +* `REAR_TO_FRONT` (value: `"Rear to front"`) + +* `LEFT_TO_RIGHT` (value: `"Left to right"`) + +* `RIGHT_TO_LEFT` (value: `"Right to left"`) + +* `SIDE_TO_REAR` (value: `"Side to rear"`) + +* `PASSIVE` (value: `"Passive"`) + + +[[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/ModuleTypeAirflowValue.md b/docs/ModuleTypeAirflowValue.md new file mode 100644 index 0000000000..4656d11972 --- /dev/null +++ b/docs/ModuleTypeAirflowValue.md @@ -0,0 +1,23 @@ +# ModuleTypeAirflowValue + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `EMPTY` (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/ModuleTypeRequest.md b/docs/ModuleTypeRequest.md index 53185cdf3a..ad422214ba 100644 --- a/docs/ModuleTypeRequest.md +++ b/docs/ModuleTypeRequest.md @@ -4,15 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeRequestAirflow**](ModuleTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleTypeRequest -`func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *ModuleTypeRequest` +`func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *ModuleTypeRequest` NewModuleTypeRequest instantiates a new ModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -29,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -67,6 +74,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleTypeRequest) GetDescription() string` @@ -92,6 +229,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleTypeRequest) 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 *ModuleTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleTypeRequest) 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 *ModuleTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/ModuleTypeRequestAirflow.md b/docs/ModuleTypeRequestAirflow.md new file mode 100644 index 0000000000..25efc1b85d --- /dev/null +++ b/docs/ModuleTypeRequestAirflow.md @@ -0,0 +1,23 @@ +# ModuleTypeRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `EMPTY` (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/NestedContactGroup.md b/docs/NestedContactGroup.md index 57a1c07f43..aeca08a095 100644 --- a/docs/NestedContactGroup.md +++ b/docs/NestedContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedContactGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedContactGroup) GetDisplay() string` diff --git a/docs/NestedDevice.md b/docs/NestedDevice.md index ef9a0807e9..21ac91b7ba 100644 --- a/docs/NestedDevice.md +++ b/docs/NestedDevice.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedDevice) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedDevice) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedDevice) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedDevice) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedDevice) GetDisplay() string` diff --git a/docs/NestedGroup 2.md b/docs/NestedGroup 2.md new file mode 100644 index 0000000000..2510f7a46f --- /dev/null +++ b/docs/NestedGroup 2.md @@ -0,0 +1,114 @@ +# NestedGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | + +## Methods + +### NewNestedGroup + +`func NewNestedGroup(id int32, url string, display string, name string, ) *NestedGroup` + +NewNestedGroup instantiates a new NestedGroup 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 + +### NewNestedGroupWithDefaults + +`func NewNestedGroupWithDefaults() *NestedGroup` + +NewNestedGroupWithDefaults instantiates a new NestedGroup 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 *NestedGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedGroup) 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 *NestedGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedGroup) 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 *NestedGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NestedGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedGroup) 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 *NestedGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedGroup) 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 *NestedGroup) 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/NestedGroup.md b/docs/NestedGroup.md index 2510f7a46f..dc35c4ab1d 100644 --- a/docs/NestedGroup.md +++ b/docs/NestedGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedGroup) GetDisplay() string` diff --git a/docs/NestedIPAddress.md b/docs/NestedIPAddress.md new file mode 100644 index 0000000000..0b45f584c8 --- /dev/null +++ b/docs/NestedIPAddress.md @@ -0,0 +1,161 @@ +# NestedIPAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**Family** | **int32** | | [readonly] +**Address** | **string** | | + +## Methods + +### NewNestedIPAddress + +`func NewNestedIPAddress(id int32, url string, display string, family int32, address string, ) *NestedIPAddress` + +NewNestedIPAddress instantiates a new NestedIPAddress 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 + +### NewNestedIPAddressWithDefaults + +`func NewNestedIPAddressWithDefaults() *NestedIPAddress` + +NewNestedIPAddressWithDefaults instantiates a new NestedIPAddress 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 *NestedIPAddress) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedIPAddress) 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 *NestedIPAddress) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedIPAddress) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedIPAddress) 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 *NestedIPAddress) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedIPAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedIPAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedIPAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedIPAddress) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *NestedIPAddress) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedIPAddress) 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 *NestedIPAddress) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetFamily + +`func (o *NestedIPAddress) GetFamily() int32` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *NestedIPAddress) GetFamilyOk() (*int32, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *NestedIPAddress) SetFamily(v int32)` + +SetFamily sets Family field to given value. + + +### GetAddress + +`func (o *NestedIPAddress) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *NestedIPAddress) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *NestedIPAddress) SetAddress(v string)` + +SetAddress sets Address 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/NestedIPAddressRequest.md b/docs/NestedIPAddressRequest.md new file mode 100644 index 0000000000..731329f5bd --- /dev/null +++ b/docs/NestedIPAddressRequest.md @@ -0,0 +1,51 @@ +# NestedIPAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | + +## Methods + +### NewNestedIPAddressRequest + +`func NewNestedIPAddressRequest(address string, ) *NestedIPAddressRequest` + +NewNestedIPAddressRequest instantiates a new NestedIPAddressRequest 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 + +### NewNestedIPAddressRequestWithDefaults + +`func NewNestedIPAddressRequestWithDefaults() *NestedIPAddressRequest` + +NewNestedIPAddressRequestWithDefaults instantiates a new NestedIPAddressRequest 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 + +### GetAddress + +`func (o *NestedIPAddressRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *NestedIPAddressRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *NestedIPAddressRequest) SetAddress(v string)` + +SetAddress sets Address 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/NestedInterface.md b/docs/NestedInterface.md index f5bc6feec8..76a1684d06 100644 --- a/docs/NestedInterface.md +++ b/docs/NestedInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Device** | [**NestedDevice**](NestedDevice.md) | | [readonly] **Name** | **string** | | @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedInterface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedInterface) GetDisplay() string` diff --git a/docs/NestedLocation.md b/docs/NestedLocation.md new file mode 100644 index 0000000000..45dd66c708 --- /dev/null +++ b/docs/NestedLocation.md @@ -0,0 +1,182 @@ +# NestedLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedLocation + +`func NewNestedLocation(id int32, url string, display string, name string, slug string, depth int32, ) *NestedLocation` + +NewNestedLocation instantiates a new NestedLocation 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 + +### NewNestedLocationWithDefaults + +`func NewNestedLocationWithDefaults() *NestedLocation` + +NewNestedLocationWithDefaults instantiates a new NestedLocation 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 *NestedLocation) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedLocation) 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 *NestedLocation) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedLocation) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedLocation) 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 *NestedLocation) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedLocation) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedLocation) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedLocation) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedLocation) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *NestedLocation) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedLocation) 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 *NestedLocation) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedLocation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedLocation) 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 *NestedLocation) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedLocation) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedLocation) 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 *NestedLocation) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedLocation) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedLocation) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedLocation) SetDepth(v int32)` + +SetDepth sets Depth 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/NestedLocationRequest.md b/docs/NestedLocationRequest.md new file mode 100644 index 0000000000..d3b0a011eb --- /dev/null +++ b/docs/NestedLocationRequest.md @@ -0,0 +1,72 @@ +# NestedLocationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | + +## Methods + +### NewNestedLocationRequest + +`func NewNestedLocationRequest(name string, slug string, ) *NestedLocationRequest` + +NewNestedLocationRequest instantiates a new NestedLocationRequest 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 + +### NewNestedLocationRequestWithDefaults + +`func NewNestedLocationRequestWithDefaults() *NestedLocationRequest` + +NewNestedLocationRequestWithDefaults instantiates a new NestedLocationRequest 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 *NestedLocationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedLocationRequest) 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 *NestedLocationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedLocationRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedLocationRequest) 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 *NestedLocationRequest) 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/NestedModuleBay.md b/docs/NestedModuleBay.md index fd92789c2a..8eaf9f1934 100644 --- a/docs/NestedModuleBay.md +++ b/docs/NestedModuleBay.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**InstalledModule** | Pointer to [**NullableModuleBayNestedModule**](ModuleBayNestedModule.md) | | [optional] **Name** | **string** | | ## Methods @@ -69,61 +69,51 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplay +### GetDisplayUrl -`func (o *NestedModuleBay) GetDisplay() string` +`func (o *NestedModuleBay) GetDisplayUrl() string` -GetDisplay returns the Display field if non-nil, zero value otherwise. +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. -### GetDisplayOk +### GetDisplayUrlOk -`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` +`func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool)` -GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplay - -`func (o *NestedModuleBay) SetDisplay(v string)` - -SetDisplay sets Display field to given value. - +### SetDisplayUrl -### GetInstalledModule +`func (o *NestedModuleBay) SetDisplayUrl(v string)` -`func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule` +SetDisplayUrl sets DisplayUrl field to given value. -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. +### HasDisplayUrl -### GetInstalledModuleOk +`func (o *NestedModuleBay) HasDisplayUrl() bool` -`func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool)` +HasDisplayUrl returns a boolean if a field has been set. -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstalledModule +### GetDisplay -`func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule)` +`func (o *NestedModuleBay) GetDisplay() string` -SetInstalledModule sets InstalledModule field to given value. +GetDisplay returns the Display field if non-nil, zero value otherwise. -### HasInstalledModule +### GetDisplayOk -`func (o *NestedModuleBay) HasInstalledModule() bool` +`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` -HasInstalledModule returns a boolean if a field has been set. +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. -### SetInstalledModuleNil +### SetDisplay -`func (o *NestedModuleBay) SetInstalledModuleNil(b bool)` +`func (o *NestedModuleBay) SetDisplay(v string)` - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil +SetDisplay sets Display field to given value. -### UnsetInstalledModule -`func (o *NestedModuleBay) UnsetInstalledModule()` -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBay) GetName() string` diff --git a/docs/NestedModuleBayRequest.md b/docs/NestedModuleBayRequest.md index e23d88b560..abf39c21c4 100644 --- a/docs/NestedModuleBayRequest.md +++ b/docs/NestedModuleBayRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InstalledModule** | Pointer to [**NullableModuleBayNestedModuleRequest**](ModuleBayNestedModuleRequest.md) | | [optional] **Name** | **string** | | ## Methods @@ -26,41 +25,6 @@ NewNestedModuleBayRequestWithDefaults instantiates a new NestedModuleBayRequest 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 -### GetInstalledModule - -`func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest` - -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. - -### GetInstalledModuleOk - -`func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool)` - -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstalledModule - -`func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest)` - -SetInstalledModule sets InstalledModule field to given value. - -### HasInstalledModule - -`func (o *NestedModuleBayRequest) HasInstalledModule() bool` - -HasInstalledModule returns a boolean if a field has been set. - -### SetInstalledModuleNil - -`func (o *NestedModuleBayRequest) SetInstalledModuleNil(b bool)` - - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil - -### UnsetInstalledModule -`func (o *NestedModuleBayRequest) UnsetInstalledModule()` - -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBayRequest) GetName() string` diff --git a/docs/NestedProviderAccount.md b/docs/NestedProviderAccount.md new file mode 100644 index 0000000000..c5a4898008 --- /dev/null +++ b/docs/NestedProviderAccount.md @@ -0,0 +1,166 @@ +# NestedProviderAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **string** | | [optional] +**Account** | **string** | | + +## Methods + +### NewNestedProviderAccount + +`func NewNestedProviderAccount(id int32, url string, display string, account string, ) *NestedProviderAccount` + +NewNestedProviderAccount instantiates a new NestedProviderAccount 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 + +### NewNestedProviderAccountWithDefaults + +`func NewNestedProviderAccountWithDefaults() *NestedProviderAccount` + +NewNestedProviderAccountWithDefaults instantiates a new NestedProviderAccount 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 *NestedProviderAccount) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedProviderAccount) 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 *NestedProviderAccount) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedProviderAccount) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedProviderAccount) 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 *NestedProviderAccount) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedProviderAccount) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedProviderAccount) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedProviderAccount) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedProviderAccount) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *NestedProviderAccount) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedProviderAccount) 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 *NestedProviderAccount) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedProviderAccount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedProviderAccount) 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 *NestedProviderAccount) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *NestedProviderAccount) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccount + +`func (o *NestedProviderAccount) GetAccount() string` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *NestedProviderAccount) GetAccountOk() (*string, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *NestedProviderAccount) SetAccount(v string)` + +SetAccount sets Account 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/NestedRegion.md b/docs/NestedRegion.md index eb6f37ed61..b38b44dda2 100644 --- a/docs/NestedRegion.md +++ b/docs/NestedRegion.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedRegion) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedRegion) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedRegion) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedRegion) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedRegion) GetDisplay() string` diff --git a/docs/NestedSiteGroup 2.md b/docs/NestedSiteGroup 2.md new file mode 100644 index 0000000000..0dd67ab6dd --- /dev/null +++ b/docs/NestedSiteGroup 2.md @@ -0,0 +1,156 @@ +# NestedSiteGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedSiteGroup + +`func NewNestedSiteGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedSiteGroup` + +NewNestedSiteGroup instantiates a new NestedSiteGroup 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 + +### NewNestedSiteGroupWithDefaults + +`func NewNestedSiteGroupWithDefaults() *NestedSiteGroup` + +NewNestedSiteGroupWithDefaults instantiates a new NestedSiteGroup 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 *NestedSiteGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedSiteGroup) 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 *NestedSiteGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedSiteGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedSiteGroup) 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 *NestedSiteGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NestedSiteGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedSiteGroup) 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 *NestedSiteGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedSiteGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedSiteGroup) 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 *NestedSiteGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedSiteGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedSiteGroup) 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 *NestedSiteGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedSiteGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedSiteGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedSiteGroup) SetDepth(v int32)` + +SetDepth sets Depth 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/NestedSiteGroup.md b/docs/NestedSiteGroup.md index 0dd67ab6dd..5f1e5666f3 100644 --- a/docs/NestedSiteGroup.md +++ b/docs/NestedSiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedSiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedSiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedSiteGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedSiteGroup) GetDisplay() string` diff --git a/docs/NestedTag.md b/docs/NestedTag.md index f87362fdc0..ab6ab10f93 100644 --- a/docs/NestedTag.md +++ b/docs/NestedTag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedTag) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedTag) GetDisplay() string` diff --git a/docs/NestedTenantGroup 2.md b/docs/NestedTenantGroup 2.md new file mode 100644 index 0000000000..3acbe4a236 --- /dev/null +++ b/docs/NestedTenantGroup 2.md @@ -0,0 +1,156 @@ +# NestedTenantGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedTenantGroup + +`func NewNestedTenantGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedTenantGroup` + +NewNestedTenantGroup instantiates a new NestedTenantGroup 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 + +### NewNestedTenantGroupWithDefaults + +`func NewNestedTenantGroupWithDefaults() *NestedTenantGroup` + +NewNestedTenantGroupWithDefaults instantiates a new NestedTenantGroup 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 *NestedTenantGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedTenantGroup) 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 *NestedTenantGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedTenantGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedTenantGroup) 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 *NestedTenantGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NestedTenantGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedTenantGroup) 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 *NestedTenantGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedTenantGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedTenantGroup) 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 *NestedTenantGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedTenantGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedTenantGroup) 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 *NestedTenantGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedTenantGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedTenantGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedTenantGroup) SetDepth(v int32)` + +SetDepth sets Depth 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/NestedTenantGroup.md b/docs/NestedTenantGroup.md index 3acbe4a236..89a881a3e8 100644 --- a/docs/NestedTenantGroup.md +++ b/docs/NestedTenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedTenantGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedTenantGroup) GetDisplay() string` diff --git a/docs/NestedUser.md b/docs/NestedUser.md index f4d0be09f4..fe03ad724b 100644 --- a/docs/NestedUser.md +++ b/docs/NestedUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedUser) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedUser) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedUser) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedUser) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedUser) GetDisplay() string` diff --git a/docs/NestedVLAN.md b/docs/NestedVLAN.md new file mode 100644 index 0000000000..5eed21bcd7 --- /dev/null +++ b/docs/NestedVLAN.md @@ -0,0 +1,161 @@ +# NestedVLAN + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Vid** | **int32** | Numeric VLAN ID (1-4094) | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewNestedVLAN + +`func NewNestedVLAN(id int32, url string, display string, vid int32, name string, ) *NestedVLAN` + +NewNestedVLAN instantiates a new NestedVLAN 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 + +### NewNestedVLANWithDefaults + +`func NewNestedVLANWithDefaults() *NestedVLAN` + +NewNestedVLANWithDefaults instantiates a new NestedVLAN 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 *NestedVLAN) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedVLAN) 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 *NestedVLAN) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedVLAN) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedVLAN) 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 *NestedVLAN) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NestedVLAN) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedVLAN) 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 *NestedVLAN) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetVid + +`func (o *NestedVLAN) GetVid() int32` + +GetVid returns the Vid field if non-nil, zero value otherwise. + +### GetVidOk + +`func (o *NestedVLAN) GetVidOk() (*int32, bool)` + +GetVidOk returns a tuple with the Vid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVid + +`func (o *NestedVLAN) SetVid(v int32)` + +SetVid sets Vid field to given value. + + +### GetName + +`func (o *NestedVLAN) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedVLAN) 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 *NestedVLAN) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NestedVLAN) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NestedVLAN) 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 *NestedVLAN) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NestedVLAN) 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/NestedVLANRequest.md b/docs/NestedVLANRequest.md new file mode 100644 index 0000000000..27bd6286a0 --- /dev/null +++ b/docs/NestedVLANRequest.md @@ -0,0 +1,98 @@ +# NestedVLANRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Vid** | **int32** | Numeric VLAN ID (1-4094) | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewNestedVLANRequest + +`func NewNestedVLANRequest(vid int32, name string, ) *NestedVLANRequest` + +NewNestedVLANRequest instantiates a new NestedVLANRequest 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 + +### NewNestedVLANRequestWithDefaults + +`func NewNestedVLANRequestWithDefaults() *NestedVLANRequest` + +NewNestedVLANRequestWithDefaults instantiates a new NestedVLANRequest 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 + +### GetVid + +`func (o *NestedVLANRequest) GetVid() int32` + +GetVid returns the Vid field if non-nil, zero value otherwise. + +### GetVidOk + +`func (o *NestedVLANRequest) GetVidOk() (*int32, bool)` + +GetVidOk returns a tuple with the Vid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVid + +`func (o *NestedVLANRequest) SetVid(v int32)` + +SetVid sets Vid field to given value. + + +### GetName + +`func (o *NestedVLANRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedVLANRequest) 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 *NestedVLANRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NestedVLANRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NestedVLANRequest) 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 *NestedVLANRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NestedVLANRequest) 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/NestedVMInterface.md b/docs/NestedVMInterface.md index bdc94d495c..37d3cc6777 100644 --- a/docs/NestedVMInterface.md +++ b/docs/NestedVMInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | | [readonly] **Name** | **string** | | @@ -69,6 +70,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedVMInterface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedVMInterface) GetDisplay() string` diff --git a/docs/NestedVirtualMachine.md b/docs/NestedVirtualMachine.md index 95a5a65aa9..0de9f4e721 100644 --- a/docs/NestedVirtualMachine.md +++ b/docs/NestedVirtualMachine.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVirtualMachine) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVirtualMachine) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedVirtualMachine) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedVirtualMachine) GetDisplay() string` diff --git a/docs/NestedWirelessLANGroup.md b/docs/NestedWirelessLANGroup.md new file mode 100644 index 0000000000..490a342a94 --- /dev/null +++ b/docs/NestedWirelessLANGroup.md @@ -0,0 +1,182 @@ +# NestedWirelessLANGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedWirelessLANGroup + +`func NewNestedWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedWirelessLANGroup` + +NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup 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 + +### NewNestedWirelessLANGroupWithDefaults + +`func NewNestedWirelessLANGroupWithDefaults() *NestedWirelessLANGroup` + +NewNestedWirelessLANGroupWithDefaults instantiates a new NestedWirelessLANGroup 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 *NestedWirelessLANGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedWirelessLANGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedWirelessLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedWirelessLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedWirelessLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedWirelessLANGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *NestedWirelessLANGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedWirelessLANGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedWirelessLANGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedWirelessLANGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedWirelessLANGroup) SetDepth(v int32)` + +SetDepth sets Depth 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/NestedWirelessLink.md b/docs/NestedWirelessLink.md index 3eeb8edced..477deae532 100644 --- a/docs/NestedWirelessLink.md +++ b/docs/NestedWirelessLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Ssid** | Pointer to **string** | | [optional] @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedWirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedWirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedWirelessLink) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedWirelessLink) GetDisplay() string` diff --git a/docs/Notification.md b/docs/Notification.md new file mode 100644 index 0000000000..4f7ec69e2e --- /dev/null +++ b/docs/Notification.md @@ -0,0 +1,275 @@ +# Notification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**Object** | Pointer to **interface{}** | | [optional] [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Created** | Pointer to **time.Time** | | [optional] [readonly] +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | [**Event**](Event.md) | | + +## Methods + +### NewNotification + +`func NewNotification(id int32, url string, display string, objectType string, objectId int64, user BriefUser, eventType Event, ) *Notification` + +NewNotification instantiates a new Notification 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 + +### NewNotificationWithDefaults + +`func NewNotificationWithDefaults() *Notification` + +NewNotificationWithDefaults instantiates a new Notification 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 *Notification) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Notification) 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 *Notification) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Notification) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Notification) 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 *Notification) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Notification) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Notification) 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 *Notification) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectType + +`func (o *Notification) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Notification) 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 *Notification) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *Notification) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *Notification) 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 *Notification) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *Notification) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *Notification) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *Notification) SetObject(v interface{})` + +SetObject sets Object field to given value. + +### HasObject + +`func (o *Notification) HasObject() bool` + +HasObject returns a boolean if a field has been set. + +### SetObjectNil + +`func (o *Notification) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *Notification) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil +### GetUser + +`func (o *Notification) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Notification) GetUserOk() (*BriefUser, 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 *Notification) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *Notification) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Notification) 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 *Notification) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Notification) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### GetRead + +`func (o *Notification) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *Notification) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *Notification) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *Notification) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *Notification) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *Notification) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *Notification) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *Notification) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *Notification) SetEventType(v Event)` + +SetEventType sets EventType 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/NotificationGroup.md b/docs/NotificationGroup.md new file mode 100644 index 0000000000..411bf0dcfa --- /dev/null +++ b/docs/NotificationGroup.md @@ -0,0 +1,218 @@ +# NotificationGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] +**Users** | Pointer to [**[]User**](User.md) | | [optional] + +## Methods + +### NewNotificationGroup + +`func NewNotificationGroup(id int32, url string, display string, name string, ) *NotificationGroup` + +NewNotificationGroup instantiates a new NotificationGroup 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 + +### NewNotificationGroupWithDefaults + +`func NewNotificationGroupWithDefaults() *NotificationGroup` + +NewNotificationGroupWithDefaults instantiates a new NotificationGroup 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 *NotificationGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NotificationGroup) 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 *NotificationGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NotificationGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NotificationGroup) 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 *NotificationGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NotificationGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NotificationGroup) 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 *NotificationGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDisplayUrl + +`func (o *NotificationGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NotificationGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NotificationGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NotificationGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetName + +`func (o *NotificationGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NotificationGroup) 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 *NotificationGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NotificationGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NotificationGroup) 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 *NotificationGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NotificationGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *NotificationGroup) GetGroups() []Group` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *NotificationGroup) GetGroupsOk() (*[]Group, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *NotificationGroup) SetGroups(v []Group)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *NotificationGroup) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *NotificationGroup) GetUsers() []User` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *NotificationGroup) GetUsersOk() (*[]User, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *NotificationGroup) SetUsers(v []User)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *NotificationGroup) HasUsers() bool` + +HasUsers 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/NotificationGroupRequest.md b/docs/NotificationGroupRequest.md new file mode 100644 index 0000000000..0d437c2e10 --- /dev/null +++ b/docs/NotificationGroupRequest.md @@ -0,0 +1,129 @@ +# NotificationGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Users** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewNotificationGroupRequest + +`func NewNotificationGroupRequest(name string, ) *NotificationGroupRequest` + +NewNotificationGroupRequest instantiates a new NotificationGroupRequest 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 + +### NewNotificationGroupRequestWithDefaults + +`func NewNotificationGroupRequestWithDefaults() *NotificationGroupRequest` + +NewNotificationGroupRequestWithDefaults instantiates a new NotificationGroupRequest 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 *NotificationGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NotificationGroupRequest) 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 *NotificationGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NotificationGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NotificationGroupRequest) 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 *NotificationGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NotificationGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *NotificationGroupRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *NotificationGroupRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *NotificationGroupRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *NotificationGroupRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *NotificationGroupRequest) GetUsers() []int32` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *NotificationGroupRequest) GetUsersOk() (*[]int32, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *NotificationGroupRequest) SetUsers(v []int32)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *NotificationGroupRequest) HasUsers() bool` + +HasUsers 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/NotificationRequest.md b/docs/NotificationRequest.md new file mode 100644 index 0000000000..9524f70d17 --- /dev/null +++ b/docs/NotificationRequest.md @@ -0,0 +1,150 @@ +# NotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | [**Event**](Event.md) | | + +## Methods + +### NewNotificationRequest + +`func NewNotificationRequest(objectType string, objectId int64, user BriefUserRequest, eventType Event, ) *NotificationRequest` + +NewNotificationRequest instantiates a new NotificationRequest 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 + +### NewNotificationRequestWithDefaults + +`func NewNotificationRequestWithDefaults() *NotificationRequest` + +NewNotificationRequestWithDefaults instantiates a new NotificationRequest 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 *NotificationRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *NotificationRequest) 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 *NotificationRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *NotificationRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *NotificationRequest) 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 *NotificationRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetUser + +`func (o *NotificationRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *NotificationRequest) GetUserOk() (*BriefUserRequest, 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 *NotificationRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + + +### GetRead + +`func (o *NotificationRequest) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *NotificationRequest) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *NotificationRequest) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *NotificationRequest) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *NotificationRequest) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *NotificationRequest) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *NotificationRequest) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *NotificationRequest) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *NotificationRequest) SetEventType(v Event)` + +SetEventType sets EventType 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/ObjectChange 2.md b/docs/ObjectChange 2.md new file mode 100644 index 0000000000..574ef3fe50 --- /dev/null +++ b/docs/ObjectChange 2.md @@ -0,0 +1,333 @@ +# ObjectChange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Time** | **time.Time** | | [readonly] +**User** | [**User**](User.md) | | [readonly] +**UserName** | **string** | | [readonly] +**RequestId** | **string** | | [readonly] +**Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | | +**ChangedObjectType** | **string** | | [readonly] +**ChangedObjectId** | **int64** | | +**ChangedObject** | **interface{}** | | [readonly] +**PrechangeData** | **interface{}** | | [readonly] +**PostchangeData** | **interface{}** | | [readonly] + +## Methods + +### NewObjectChange + +`func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` + +NewObjectChange instantiates a new ObjectChange 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 + +### NewObjectChangeWithDefaults + +`func NewObjectChangeWithDefaults() *ObjectChange` + +NewObjectChangeWithDefaults instantiates a new ObjectChange 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 *ObjectChange) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ObjectChange) 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 *ObjectChange) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *ObjectChange) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ObjectChange) 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 *ObjectChange) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *ObjectChange) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *ObjectChange) 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 *ObjectChange) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetTime + +`func (o *ObjectChange) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *ObjectChange) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *ObjectChange) SetTime(v time.Time)` + +SetTime sets Time field to given value. + + +### GetUser + +`func (o *ObjectChange) GetUser() User` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *ObjectChange) GetUserOk() (*User, 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 *ObjectChange) SetUser(v User)` + +SetUser sets User field to given value. + + +### GetUserName + +`func (o *ObjectChange) GetUserName() string` + +GetUserName returns the UserName field if non-nil, zero value otherwise. + +### GetUserNameOk + +`func (o *ObjectChange) 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 *ObjectChange) SetUserName(v string)` + +SetUserName sets UserName field to given value. + + +### GetRequestId + +`func (o *ObjectChange) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *ObjectChange) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *ObjectChange) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + + +### GetAction + +`func (o *ObjectChange) GetAction() ObjectChangeAction` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *ObjectChange) GetActionOk() (*ObjectChangeAction, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *ObjectChange) SetAction(v ObjectChangeAction)` + +SetAction sets Action field to given value. + + +### GetChangedObjectType + +`func (o *ObjectChange) GetChangedObjectType() string` + +GetChangedObjectType returns the ChangedObjectType field if non-nil, zero value otherwise. + +### GetChangedObjectTypeOk + +`func (o *ObjectChange) GetChangedObjectTypeOk() (*string, bool)` + +GetChangedObjectTypeOk returns a tuple with the ChangedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangedObjectType + +`func (o *ObjectChange) SetChangedObjectType(v string)` + +SetChangedObjectType sets ChangedObjectType field to given value. + + +### GetChangedObjectId + +`func (o *ObjectChange) GetChangedObjectId() int64` + +GetChangedObjectId returns the ChangedObjectId field if non-nil, zero value otherwise. + +### GetChangedObjectIdOk + +`func (o *ObjectChange) GetChangedObjectIdOk() (*int64, bool)` + +GetChangedObjectIdOk returns a tuple with the ChangedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangedObjectId + +`func (o *ObjectChange) SetChangedObjectId(v int64)` + +SetChangedObjectId sets ChangedObjectId field to given value. + + +### GetChangedObject + +`func (o *ObjectChange) GetChangedObject() interface{}` + +GetChangedObject returns the ChangedObject field if non-nil, zero value otherwise. + +### GetChangedObjectOk + +`func (o *ObjectChange) GetChangedObjectOk() (*interface{}, bool)` + +GetChangedObjectOk returns a tuple with the ChangedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChangedObject + +`func (o *ObjectChange) SetChangedObject(v interface{})` + +SetChangedObject sets ChangedObject field to given value. + + +### SetChangedObjectNil + +`func (o *ObjectChange) SetChangedObjectNil(b bool)` + + SetChangedObjectNil sets the value for ChangedObject to be an explicit nil + +### UnsetChangedObject +`func (o *ObjectChange) UnsetChangedObject()` + +UnsetChangedObject ensures that no value is present for ChangedObject, not even an explicit nil +### GetPrechangeData + +`func (o *ObjectChange) GetPrechangeData() interface{}` + +GetPrechangeData returns the PrechangeData field if non-nil, zero value otherwise. + +### GetPrechangeDataOk + +`func (o *ObjectChange) GetPrechangeDataOk() (*interface{}, bool)` + +GetPrechangeDataOk returns a tuple with the PrechangeData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrechangeData + +`func (o *ObjectChange) SetPrechangeData(v interface{})` + +SetPrechangeData sets PrechangeData field to given value. + + +### SetPrechangeDataNil + +`func (o *ObjectChange) SetPrechangeDataNil(b bool)` + + SetPrechangeDataNil sets the value for PrechangeData to be an explicit nil + +### UnsetPrechangeData +`func (o *ObjectChange) UnsetPrechangeData()` + +UnsetPrechangeData ensures that no value is present for PrechangeData, not even an explicit nil +### GetPostchangeData + +`func (o *ObjectChange) GetPostchangeData() interface{}` + +GetPostchangeData returns the PostchangeData field if non-nil, zero value otherwise. + +### GetPostchangeDataOk + +`func (o *ObjectChange) GetPostchangeDataOk() (*interface{}, bool)` + +GetPostchangeDataOk returns a tuple with the PostchangeData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostchangeData + +`func (o *ObjectChange) SetPostchangeData(v interface{})` + +SetPostchangeData sets PostchangeData field to given value. + + +### SetPostchangeDataNil + +`func (o *ObjectChange) SetPostchangeDataNil(b bool)` + + SetPostchangeDataNil sets the value for PostchangeData to be an explicit nil + +### UnsetPostchangeData +`func (o *ObjectChange) UnsetPostchangeData()` + +UnsetPostchangeData ensures that no value is present for PostchangeData, 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/ObjectChange.md b/docs/ObjectChange.md index 574ef3fe50..67f6d2f71f 100644 --- a/docs/ObjectChange.md +++ b/docs/ObjectChange.md @@ -6,23 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Time** | **time.Time** | | [readonly] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **UserName** | **string** | | [readonly] **RequestId** | **string** | | [readonly] **Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | | **ChangedObjectType** | **string** | | [readonly] **ChangedObjectId** | **int64** | | -**ChangedObject** | **interface{}** | | [readonly] -**PrechangeData** | **interface{}** | | [readonly] -**PostchangeData** | **interface{}** | | [readonly] +**ChangedObject** | Pointer to **interface{}** | | [optional] [readonly] +**PrechangeData** | Pointer to **interface{}** | | [optional] [readonly] +**PostchangeData** | Pointer to **interface{}** | | [optional] [readonly] ## Methods ### NewObjectChange -`func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` +`func NewObjectChange(id int32, url string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, ) *ObjectChange` NewObjectChange instantiates a new ObjectChange object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectChange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectChange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectChange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ObjectChange) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ObjectChange) GetDisplay() string` @@ -119,20 +145,20 @@ SetTime sets Time field to given value. ### GetUser -`func (o *ObjectChange) GetUser() User` +`func (o *ObjectChange) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *ObjectChange) GetUserOk() (*User, bool)` +`func (o *ObjectChange) GetUserOk() (*BriefUser, 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 *ObjectChange) SetUser(v User)` +`func (o *ObjectChange) SetUser(v BriefUser)` SetUser sets User field to given value. @@ -256,6 +282,11 @@ and a boolean to check if the value has been set. SetChangedObject sets ChangedObject field to given value. +### HasChangedObject + +`func (o *ObjectChange) HasChangedObject() bool` + +HasChangedObject returns a boolean if a field has been set. ### SetChangedObjectNil @@ -286,6 +317,11 @@ and a boolean to check if the value has been set. SetPrechangeData sets PrechangeData field to given value. +### HasPrechangeData + +`func (o *ObjectChange) HasPrechangeData() bool` + +HasPrechangeData returns a boolean if a field has been set. ### SetPrechangeDataNil @@ -316,6 +352,11 @@ and a boolean to check if the value has been set. SetPostchangeData sets PostchangeData field to given value. +### HasPostchangeData + +`func (o *ObjectChange) HasPostchangeData() bool` + +HasPostchangeData returns a boolean if a field has been set. ### SetPostchangeDataNil diff --git a/docs/ObjectChangeActionLabel 2.md b/docs/ObjectChangeActionLabel 2.md new file mode 100644 index 0000000000..b1a4a59d10 --- /dev/null +++ b/docs/ObjectChangeActionLabel 2.md @@ -0,0 +1,15 @@ +# ObjectChangeActionLabel + +## Enum + + +* `CREATED` (value: `"Created"`) + +* `UPDATED` (value: `"Updated"`) + +* `DELETED` (value: `"Deleted"`) + + +[[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/ObjectPermission.md b/docs/ObjectPermission.md index fec4199e46..6f9a087638 100644 --- a/docs/ObjectPermission.md +++ b/docs/ObjectPermission.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectPermission) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectPermission) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ObjectPermission) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ObjectPermission) GetDisplay() string` diff --git a/docs/PaginatedCableList 2.md b/docs/PaginatedCableList 2.md new file mode 100644 index 0000000000..4e867038c9 --- /dev/null +++ b/docs/PaginatedCableList 2.md @@ -0,0 +1,144 @@ +# PaginatedCableList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Cable**](Cable.md) | | + +## Methods + +### NewPaginatedCableList + +`func NewPaginatedCableList(count int32, results []Cable, ) *PaginatedCableList` + +NewPaginatedCableList instantiates a new PaginatedCableList 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 + +### NewPaginatedCableListWithDefaults + +`func NewPaginatedCableListWithDefaults() *PaginatedCableList` + +NewPaginatedCableListWithDefaults instantiates a new PaginatedCableList 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 *PaginatedCableList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCableList) 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 *PaginatedCableList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCableList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCableList) 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 *PaginatedCableList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCableList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCableList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCableList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCableList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCableList) 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 *PaginatedCableList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCableList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCableList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCableList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCableList) GetResults() []Cable` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCableList) GetResultsOk() (*[]Cable, 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 *PaginatedCableList) SetResults(v []Cable)` + +SetResults sets Results 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/PaginatedCircuitGroupAssignmentList.md b/docs/PaginatedCircuitGroupAssignmentList.md new file mode 100644 index 0000000000..cc8cc812c7 --- /dev/null +++ b/docs/PaginatedCircuitGroupAssignmentList.md @@ -0,0 +1,144 @@ +# PaginatedCircuitGroupAssignmentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) | | + +## Methods + +### NewPaginatedCircuitGroupAssignmentList + +`func NewPaginatedCircuitGroupAssignmentList(count int32, results []CircuitGroupAssignment, ) *PaginatedCircuitGroupAssignmentList` + +NewPaginatedCircuitGroupAssignmentList instantiates a new PaginatedCircuitGroupAssignmentList 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 + +### NewPaginatedCircuitGroupAssignmentListWithDefaults + +`func NewPaginatedCircuitGroupAssignmentListWithDefaults() *PaginatedCircuitGroupAssignmentList` + +NewPaginatedCircuitGroupAssignmentListWithDefaults instantiates a new PaginatedCircuitGroupAssignmentList 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 *PaginatedCircuitGroupAssignmentList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCircuitGroupAssignmentList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCircuitGroupAssignmentList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCircuitGroupAssignmentList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCircuitGroupAssignmentList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCircuitGroupAssignmentList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCircuitGroupAssignmentList) GetResults() []CircuitGroupAssignment` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetResultsOk() (*[]CircuitGroupAssignment, 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 *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignment)` + +SetResults sets Results 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/PaginatedCircuitGroupList.md b/docs/PaginatedCircuitGroupList.md new file mode 100644 index 0000000000..943619ff52 --- /dev/null +++ b/docs/PaginatedCircuitGroupList.md @@ -0,0 +1,144 @@ +# PaginatedCircuitGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]CircuitGroup**](CircuitGroup.md) | | + +## Methods + +### NewPaginatedCircuitGroupList + +`func NewPaginatedCircuitGroupList(count int32, results []CircuitGroup, ) *PaginatedCircuitGroupList` + +NewPaginatedCircuitGroupList instantiates a new PaginatedCircuitGroupList 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 + +### NewPaginatedCircuitGroupListWithDefaults + +`func NewPaginatedCircuitGroupListWithDefaults() *PaginatedCircuitGroupList` + +NewPaginatedCircuitGroupListWithDefaults instantiates a new PaginatedCircuitGroupList 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 *PaginatedCircuitGroupList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCircuitGroupList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCircuitGroupList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCircuitGroupList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCircuitGroupList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCircuitGroupList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCircuitGroupList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCircuitGroupList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCircuitGroupList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCircuitGroupList) GetResults() []CircuitGroup` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCircuitGroupList) GetResultsOk() (*[]CircuitGroup, 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 *PaginatedCircuitGroupList) SetResults(v []CircuitGroup)` + +SetResults sets Results 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/PaginatedConsolePortTemplateList 2.md b/docs/PaginatedConsolePortTemplateList 2.md new file mode 100644 index 0000000000..580b455c7e --- /dev/null +++ b/docs/PaginatedConsolePortTemplateList 2.md @@ -0,0 +1,144 @@ +# PaginatedConsolePortTemplateList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]ConsolePortTemplate**](ConsolePortTemplate.md) | | + +## Methods + +### NewPaginatedConsolePortTemplateList + +`func NewPaginatedConsolePortTemplateList(count int32, results []ConsolePortTemplate, ) *PaginatedConsolePortTemplateList` + +NewPaginatedConsolePortTemplateList instantiates a new PaginatedConsolePortTemplateList 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 + +### NewPaginatedConsolePortTemplateListWithDefaults + +`func NewPaginatedConsolePortTemplateListWithDefaults() *PaginatedConsolePortTemplateList` + +NewPaginatedConsolePortTemplateListWithDefaults instantiates a new PaginatedConsolePortTemplateList 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 *PaginatedConsolePortTemplateList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedConsolePortTemplateList) 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 *PaginatedConsolePortTemplateList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedConsolePortTemplateList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedConsolePortTemplateList) 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 *PaginatedConsolePortTemplateList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedConsolePortTemplateList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedConsolePortTemplateList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedConsolePortTemplateList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedConsolePortTemplateList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedConsolePortTemplateList) 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 *PaginatedConsolePortTemplateList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedConsolePortTemplateList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedConsolePortTemplateList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedConsolePortTemplateList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedConsolePortTemplateList) GetResults() []ConsolePortTemplate` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedConsolePortTemplateList) GetResultsOk() (*[]ConsolePortTemplate, 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 *PaginatedConsolePortTemplateList) SetResults(v []ConsolePortTemplate)` + +SetResults sets Results 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/PaginatedCustomLinkList 2.md b/docs/PaginatedCustomLinkList 2.md new file mode 100644 index 0000000000..c0d9bfef0f --- /dev/null +++ b/docs/PaginatedCustomLinkList 2.md @@ -0,0 +1,144 @@ +# PaginatedCustomLinkList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]CustomLink**](CustomLink.md) | | + +## Methods + +### NewPaginatedCustomLinkList + +`func NewPaginatedCustomLinkList(count int32, results []CustomLink, ) *PaginatedCustomLinkList` + +NewPaginatedCustomLinkList instantiates a new PaginatedCustomLinkList 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 + +### NewPaginatedCustomLinkListWithDefaults + +`func NewPaginatedCustomLinkListWithDefaults() *PaginatedCustomLinkList` + +NewPaginatedCustomLinkListWithDefaults instantiates a new PaginatedCustomLinkList 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 *PaginatedCustomLinkList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCustomLinkList) 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 *PaginatedCustomLinkList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCustomLinkList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCustomLinkList) 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 *PaginatedCustomLinkList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCustomLinkList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCustomLinkList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCustomLinkList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCustomLinkList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCustomLinkList) 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 *PaginatedCustomLinkList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCustomLinkList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCustomLinkList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCustomLinkList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCustomLinkList) GetResults() []CustomLink` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCustomLinkList) GetResultsOk() (*[]CustomLink, 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 *PaginatedCustomLinkList) SetResults(v []CustomLink)` + +SetResults sets Results 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/PaginatedDeviceTypeList 2.md b/docs/PaginatedDeviceTypeList 2.md new file mode 100644 index 0000000000..e338cef1c3 --- /dev/null +++ b/docs/PaginatedDeviceTypeList 2.md @@ -0,0 +1,144 @@ +# PaginatedDeviceTypeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]DeviceType**](DeviceType.md) | | + +## Methods + +### NewPaginatedDeviceTypeList + +`func NewPaginatedDeviceTypeList(count int32, results []DeviceType, ) *PaginatedDeviceTypeList` + +NewPaginatedDeviceTypeList instantiates a new PaginatedDeviceTypeList 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 + +### NewPaginatedDeviceTypeListWithDefaults + +`func NewPaginatedDeviceTypeListWithDefaults() *PaginatedDeviceTypeList` + +NewPaginatedDeviceTypeListWithDefaults instantiates a new PaginatedDeviceTypeList 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 *PaginatedDeviceTypeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedDeviceTypeList) 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 *PaginatedDeviceTypeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedDeviceTypeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDeviceTypeList) 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 *PaginatedDeviceTypeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDeviceTypeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedDeviceTypeList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedDeviceTypeList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedDeviceTypeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDeviceTypeList) 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 *PaginatedDeviceTypeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDeviceTypeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedDeviceTypeList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedDeviceTypeList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedDeviceTypeList) GetResults() []DeviceType` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDeviceTypeList) GetResultsOk() (*[]DeviceType, 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 *PaginatedDeviceTypeList) SetResults(v []DeviceType)` + +SetResults sets Results 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/PaginatedImageAttachmentList 2.md b/docs/PaginatedImageAttachmentList 2.md new file mode 100644 index 0000000000..1bdca57db5 --- /dev/null +++ b/docs/PaginatedImageAttachmentList 2.md @@ -0,0 +1,144 @@ +# PaginatedImageAttachmentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]ImageAttachment**](ImageAttachment.md) | | + +## Methods + +### NewPaginatedImageAttachmentList + +`func NewPaginatedImageAttachmentList(count int32, results []ImageAttachment, ) *PaginatedImageAttachmentList` + +NewPaginatedImageAttachmentList instantiates a new PaginatedImageAttachmentList 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 + +### NewPaginatedImageAttachmentListWithDefaults + +`func NewPaginatedImageAttachmentListWithDefaults() *PaginatedImageAttachmentList` + +NewPaginatedImageAttachmentListWithDefaults instantiates a new PaginatedImageAttachmentList 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 *PaginatedImageAttachmentList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedImageAttachmentList) 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 *PaginatedImageAttachmentList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedImageAttachmentList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedImageAttachmentList) 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 *PaginatedImageAttachmentList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedImageAttachmentList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedImageAttachmentList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedImageAttachmentList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedImageAttachmentList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedImageAttachmentList) 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 *PaginatedImageAttachmentList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedImageAttachmentList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedImageAttachmentList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedImageAttachmentList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedImageAttachmentList) GetResults() []ImageAttachment` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedImageAttachmentList) GetResultsOk() (*[]ImageAttachment, 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 *PaginatedImageAttachmentList) SetResults(v []ImageAttachment)` + +SetResults sets Results 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/PaginatedL2VPNList 2.md b/docs/PaginatedL2VPNList 2.md new file mode 100644 index 0000000000..6951b6291e --- /dev/null +++ b/docs/PaginatedL2VPNList 2.md @@ -0,0 +1,144 @@ +# PaginatedL2VPNList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]L2VPN**](L2VPN.md) | | + +## Methods + +### NewPaginatedL2VPNList + +`func NewPaginatedL2VPNList(count int32, results []L2VPN, ) *PaginatedL2VPNList` + +NewPaginatedL2VPNList instantiates a new PaginatedL2VPNList 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 + +### NewPaginatedL2VPNListWithDefaults + +`func NewPaginatedL2VPNListWithDefaults() *PaginatedL2VPNList` + +NewPaginatedL2VPNListWithDefaults instantiates a new PaginatedL2VPNList 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 *PaginatedL2VPNList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedL2VPNList) 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 *PaginatedL2VPNList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedL2VPNList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedL2VPNList) 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 *PaginatedL2VPNList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedL2VPNList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedL2VPNList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedL2VPNList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedL2VPNList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedL2VPNList) 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 *PaginatedL2VPNList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedL2VPNList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedL2VPNList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedL2VPNList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedL2VPNList) GetResults() []L2VPN` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedL2VPNList) GetResultsOk() (*[]L2VPN, 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 *PaginatedL2VPNList) SetResults(v []L2VPN)` + +SetResults sets Results 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/PaginatedMACAddressList.md b/docs/PaginatedMACAddressList.md new file mode 100644 index 0000000000..a98ce28421 --- /dev/null +++ b/docs/PaginatedMACAddressList.md @@ -0,0 +1,144 @@ +# PaginatedMACAddressList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]MACAddress**](MACAddress.md) | | + +## Methods + +### NewPaginatedMACAddressList + +`func NewPaginatedMACAddressList(count int32, results []MACAddress, ) *PaginatedMACAddressList` + +NewPaginatedMACAddressList instantiates a new PaginatedMACAddressList 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 + +### NewPaginatedMACAddressListWithDefaults + +`func NewPaginatedMACAddressListWithDefaults() *PaginatedMACAddressList` + +NewPaginatedMACAddressListWithDefaults instantiates a new PaginatedMACAddressList 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 *PaginatedMACAddressList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedMACAddressList) 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 *PaginatedMACAddressList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedMACAddressList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedMACAddressList) 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 *PaginatedMACAddressList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedMACAddressList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedMACAddressList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedMACAddressList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedMACAddressList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedMACAddressList) 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 *PaginatedMACAddressList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedMACAddressList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedMACAddressList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedMACAddressList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedMACAddressList) GetResults() []MACAddress` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedMACAddressList) GetResultsOk() (*[]MACAddress, 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 *PaginatedMACAddressList) SetResults(v []MACAddress)` + +SetResults sets Results 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/PaginatedModuleBayTemplateList 2.md b/docs/PaginatedModuleBayTemplateList 2.md new file mode 100644 index 0000000000..275fe4cb82 --- /dev/null +++ b/docs/PaginatedModuleBayTemplateList 2.md @@ -0,0 +1,144 @@ +# PaginatedModuleBayTemplateList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]ModuleBayTemplate**](ModuleBayTemplate.md) | | + +## Methods + +### NewPaginatedModuleBayTemplateList + +`func NewPaginatedModuleBayTemplateList(count int32, results []ModuleBayTemplate, ) *PaginatedModuleBayTemplateList` + +NewPaginatedModuleBayTemplateList instantiates a new PaginatedModuleBayTemplateList 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 + +### NewPaginatedModuleBayTemplateListWithDefaults + +`func NewPaginatedModuleBayTemplateListWithDefaults() *PaginatedModuleBayTemplateList` + +NewPaginatedModuleBayTemplateListWithDefaults instantiates a new PaginatedModuleBayTemplateList 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 *PaginatedModuleBayTemplateList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedModuleBayTemplateList) 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 *PaginatedModuleBayTemplateList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedModuleBayTemplateList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedModuleBayTemplateList) 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 *PaginatedModuleBayTemplateList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedModuleBayTemplateList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedModuleBayTemplateList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedModuleBayTemplateList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedModuleBayTemplateList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedModuleBayTemplateList) 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 *PaginatedModuleBayTemplateList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedModuleBayTemplateList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedModuleBayTemplateList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedModuleBayTemplateList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedModuleBayTemplateList) GetResults() []ModuleBayTemplate` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedModuleBayTemplateList) GetResultsOk() (*[]ModuleBayTemplate, 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 *PaginatedModuleBayTemplateList) SetResults(v []ModuleBayTemplate)` + +SetResults sets Results 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/PaginatedNotificationGroupList.md b/docs/PaginatedNotificationGroupList.md new file mode 100644 index 0000000000..d183730282 --- /dev/null +++ b/docs/PaginatedNotificationGroupList.md @@ -0,0 +1,144 @@ +# PaginatedNotificationGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]NotificationGroup**](NotificationGroup.md) | | + +## Methods + +### NewPaginatedNotificationGroupList + +`func NewPaginatedNotificationGroupList(count int32, results []NotificationGroup, ) *PaginatedNotificationGroupList` + +NewPaginatedNotificationGroupList instantiates a new PaginatedNotificationGroupList 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 + +### NewPaginatedNotificationGroupListWithDefaults + +`func NewPaginatedNotificationGroupListWithDefaults() *PaginatedNotificationGroupList` + +NewPaginatedNotificationGroupListWithDefaults instantiates a new PaginatedNotificationGroupList 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 *PaginatedNotificationGroupList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedNotificationGroupList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedNotificationGroupList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedNotificationGroupList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedNotificationGroupList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedNotificationGroupList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedNotificationGroupList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedNotificationGroupList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedNotificationGroupList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedNotificationGroupList) GetResults() []NotificationGroup` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedNotificationGroupList) GetResultsOk() (*[]NotificationGroup, 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 *PaginatedNotificationGroupList) SetResults(v []NotificationGroup)` + +SetResults sets Results 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/PaginatedNotificationList.md b/docs/PaginatedNotificationList.md new file mode 100644 index 0000000000..2baadd8328 --- /dev/null +++ b/docs/PaginatedNotificationList.md @@ -0,0 +1,144 @@ +# PaginatedNotificationList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Notification**](Notification.md) | | + +## Methods + +### NewPaginatedNotificationList + +`func NewPaginatedNotificationList(count int32, results []Notification, ) *PaginatedNotificationList` + +NewPaginatedNotificationList instantiates a new PaginatedNotificationList 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 + +### NewPaginatedNotificationListWithDefaults + +`func NewPaginatedNotificationListWithDefaults() *PaginatedNotificationList` + +NewPaginatedNotificationListWithDefaults instantiates a new PaginatedNotificationList 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 *PaginatedNotificationList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedNotificationList) 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 *PaginatedNotificationList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedNotificationList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedNotificationList) 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 *PaginatedNotificationList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedNotificationList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedNotificationList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedNotificationList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedNotificationList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedNotificationList) 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 *PaginatedNotificationList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedNotificationList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedNotificationList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedNotificationList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedNotificationList) GetResults() []Notification` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedNotificationList) GetResultsOk() (*[]Notification, 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 *PaginatedNotificationList) SetResults(v []Notification)` + +SetResults sets Results 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/PaginatedPowerOutletList 2.md b/docs/PaginatedPowerOutletList 2.md new file mode 100644 index 0000000000..46ab3493d7 --- /dev/null +++ b/docs/PaginatedPowerOutletList 2.md @@ -0,0 +1,144 @@ +# PaginatedPowerOutletList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]PowerOutlet**](PowerOutlet.md) | | + +## Methods + +### NewPaginatedPowerOutletList + +`func NewPaginatedPowerOutletList(count int32, results []PowerOutlet, ) *PaginatedPowerOutletList` + +NewPaginatedPowerOutletList instantiates a new PaginatedPowerOutletList 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 + +### NewPaginatedPowerOutletListWithDefaults + +`func NewPaginatedPowerOutletListWithDefaults() *PaginatedPowerOutletList` + +NewPaginatedPowerOutletListWithDefaults instantiates a new PaginatedPowerOutletList 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 *PaginatedPowerOutletList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedPowerOutletList) 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 *PaginatedPowerOutletList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedPowerOutletList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedPowerOutletList) 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 *PaginatedPowerOutletList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedPowerOutletList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedPowerOutletList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedPowerOutletList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedPowerOutletList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedPowerOutletList) 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 *PaginatedPowerOutletList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedPowerOutletList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedPowerOutletList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedPowerOutletList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedPowerOutletList) GetResults() []PowerOutlet` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedPowerOutletList) GetResultsOk() (*[]PowerOutlet, 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 *PaginatedPowerOutletList) SetResults(v []PowerOutlet)` + +SetResults sets Results 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/PaginatedPowerPortList 2.md b/docs/PaginatedPowerPortList 2.md new file mode 100644 index 0000000000..f850d78d3f --- /dev/null +++ b/docs/PaginatedPowerPortList 2.md @@ -0,0 +1,144 @@ +# PaginatedPowerPortList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]PowerPort**](PowerPort.md) | | + +## Methods + +### NewPaginatedPowerPortList + +`func NewPaginatedPowerPortList(count int32, results []PowerPort, ) *PaginatedPowerPortList` + +NewPaginatedPowerPortList instantiates a new PaginatedPowerPortList 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 + +### NewPaginatedPowerPortListWithDefaults + +`func NewPaginatedPowerPortListWithDefaults() *PaginatedPowerPortList` + +NewPaginatedPowerPortListWithDefaults instantiates a new PaginatedPowerPortList 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 *PaginatedPowerPortList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedPowerPortList) 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 *PaginatedPowerPortList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedPowerPortList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedPowerPortList) 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 *PaginatedPowerPortList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedPowerPortList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedPowerPortList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedPowerPortList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedPowerPortList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedPowerPortList) 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 *PaginatedPowerPortList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedPowerPortList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedPowerPortList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedPowerPortList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedPowerPortList) GetResults() []PowerPort` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedPowerPortList) GetResultsOk() (*[]PowerPort, 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 *PaginatedPowerPortList) SetResults(v []PowerPort)` + +SetResults sets Results 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/PaginatedPrefixList 2.md b/docs/PaginatedPrefixList 2.md new file mode 100644 index 0000000000..20a94c5f3b --- /dev/null +++ b/docs/PaginatedPrefixList 2.md @@ -0,0 +1,144 @@ +# PaginatedPrefixList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Prefix**](Prefix.md) | | + +## Methods + +### NewPaginatedPrefixList + +`func NewPaginatedPrefixList(count int32, results []Prefix, ) *PaginatedPrefixList` + +NewPaginatedPrefixList instantiates a new PaginatedPrefixList 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 + +### NewPaginatedPrefixListWithDefaults + +`func NewPaginatedPrefixListWithDefaults() *PaginatedPrefixList` + +NewPaginatedPrefixListWithDefaults instantiates a new PaginatedPrefixList 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 *PaginatedPrefixList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedPrefixList) 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 *PaginatedPrefixList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedPrefixList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedPrefixList) 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 *PaginatedPrefixList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedPrefixList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedPrefixList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedPrefixList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedPrefixList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedPrefixList) 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 *PaginatedPrefixList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedPrefixList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedPrefixList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedPrefixList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedPrefixList) GetResults() []Prefix` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedPrefixList) GetResultsOk() (*[]Prefix, 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 *PaginatedPrefixList) SetResults(v []Prefix)` + +SetResults sets Results 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/PaginatedProviderList 2.md b/docs/PaginatedProviderList 2.md new file mode 100644 index 0000000000..b9f56aaab9 --- /dev/null +++ b/docs/PaginatedProviderList 2.md @@ -0,0 +1,144 @@ +# PaginatedProviderList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Provider**](Provider.md) | | + +## Methods + +### NewPaginatedProviderList + +`func NewPaginatedProviderList(count int32, results []Provider, ) *PaginatedProviderList` + +NewPaginatedProviderList instantiates a new PaginatedProviderList 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 + +### NewPaginatedProviderListWithDefaults + +`func NewPaginatedProviderListWithDefaults() *PaginatedProviderList` + +NewPaginatedProviderListWithDefaults instantiates a new PaginatedProviderList 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 *PaginatedProviderList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedProviderList) 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 *PaginatedProviderList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedProviderList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedProviderList) 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 *PaginatedProviderList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedProviderList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedProviderList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedProviderList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedProviderList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedProviderList) 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 *PaginatedProviderList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedProviderList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedProviderList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedProviderList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedProviderList) GetResults() []Provider` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedProviderList) GetResultsOk() (*[]Provider, 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 *PaginatedProviderList) SetResults(v []Provider)` + +SetResults sets Results 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/PaginatedRackRoleList 2.md b/docs/PaginatedRackRoleList 2.md new file mode 100644 index 0000000000..2e2cc8167b --- /dev/null +++ b/docs/PaginatedRackRoleList 2.md @@ -0,0 +1,144 @@ +# PaginatedRackRoleList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]RackRole**](RackRole.md) | | + +## Methods + +### NewPaginatedRackRoleList + +`func NewPaginatedRackRoleList(count int32, results []RackRole, ) *PaginatedRackRoleList` + +NewPaginatedRackRoleList instantiates a new PaginatedRackRoleList 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 + +### NewPaginatedRackRoleListWithDefaults + +`func NewPaginatedRackRoleListWithDefaults() *PaginatedRackRoleList` + +NewPaginatedRackRoleListWithDefaults instantiates a new PaginatedRackRoleList 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 *PaginatedRackRoleList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedRackRoleList) 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 *PaginatedRackRoleList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedRackRoleList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedRackRoleList) 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 *PaginatedRackRoleList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedRackRoleList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedRackRoleList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedRackRoleList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedRackRoleList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedRackRoleList) 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 *PaginatedRackRoleList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedRackRoleList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedRackRoleList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedRackRoleList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedRackRoleList) GetResults() []RackRole` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedRackRoleList) GetResultsOk() (*[]RackRole, 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 *PaginatedRackRoleList) SetResults(v []RackRole)` + +SetResults sets Results 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/PaginatedRackTypeList.md b/docs/PaginatedRackTypeList.md new file mode 100644 index 0000000000..bb3f5780a2 --- /dev/null +++ b/docs/PaginatedRackTypeList.md @@ -0,0 +1,144 @@ +# PaginatedRackTypeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]RackType**](RackType.md) | | + +## Methods + +### NewPaginatedRackTypeList + +`func NewPaginatedRackTypeList(count int32, results []RackType, ) *PaginatedRackTypeList` + +NewPaginatedRackTypeList instantiates a new PaginatedRackTypeList 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 + +### NewPaginatedRackTypeListWithDefaults + +`func NewPaginatedRackTypeListWithDefaults() *PaginatedRackTypeList` + +NewPaginatedRackTypeListWithDefaults instantiates a new PaginatedRackTypeList 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 *PaginatedRackTypeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedRackTypeList) 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 *PaginatedRackTypeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedRackTypeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedRackTypeList) 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 *PaginatedRackTypeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedRackTypeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedRackTypeList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedRackTypeList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedRackTypeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedRackTypeList) 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 *PaginatedRackTypeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedRackTypeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedRackTypeList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedRackTypeList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedRackTypeList) GetResults() []RackType` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedRackTypeList) GetResultsOk() (*[]RackType, 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 *PaginatedRackTypeList) SetResults(v []RackType)` + +SetResults sets Results 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/PaginatedSubscriptionList.md b/docs/PaginatedSubscriptionList.md new file mode 100644 index 0000000000..f8dc4ddaab --- /dev/null +++ b/docs/PaginatedSubscriptionList.md @@ -0,0 +1,144 @@ +# PaginatedSubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Subscription**](Subscription.md) | | + +## Methods + +### NewPaginatedSubscriptionList + +`func NewPaginatedSubscriptionList(count int32, results []Subscription, ) *PaginatedSubscriptionList` + +NewPaginatedSubscriptionList instantiates a new PaginatedSubscriptionList 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 + +### NewPaginatedSubscriptionListWithDefaults + +`func NewPaginatedSubscriptionListWithDefaults() *PaginatedSubscriptionList` + +NewPaginatedSubscriptionListWithDefaults instantiates a new PaginatedSubscriptionList 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 *PaginatedSubscriptionList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedSubscriptionList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedSubscriptionList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedSubscriptionList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedSubscriptionList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedSubscriptionList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedSubscriptionList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedSubscriptionList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedSubscriptionList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedSubscriptionList) GetResults() []Subscription` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedSubscriptionList) GetResultsOk() (*[]Subscription, 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 *PaginatedSubscriptionList) SetResults(v []Subscription)` + +SetResults sets Results 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/PaginatedTokenList 2.md b/docs/PaginatedTokenList 2.md new file mode 100644 index 0000000000..e45ec67dc1 --- /dev/null +++ b/docs/PaginatedTokenList 2.md @@ -0,0 +1,144 @@ +# PaginatedTokenList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Token**](Token.md) | | + +## Methods + +### NewPaginatedTokenList + +`func NewPaginatedTokenList(count int32, results []Token, ) *PaginatedTokenList` + +NewPaginatedTokenList instantiates a new PaginatedTokenList 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 + +### NewPaginatedTokenListWithDefaults + +`func NewPaginatedTokenListWithDefaults() *PaginatedTokenList` + +NewPaginatedTokenListWithDefaults instantiates a new PaginatedTokenList 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 *PaginatedTokenList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedTokenList) 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 *PaginatedTokenList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedTokenList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedTokenList) 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 *PaginatedTokenList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedTokenList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedTokenList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedTokenList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedTokenList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedTokenList) 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 *PaginatedTokenList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedTokenList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedTokenList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedTokenList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedTokenList) GetResults() []Token` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedTokenList) GetResultsOk() (*[]Token, 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 *PaginatedTokenList) SetResults(v []Token)` + +SetResults sets Results 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/PaginatedVLANTranslationPolicyList.md b/docs/PaginatedVLANTranslationPolicyList.md new file mode 100644 index 0000000000..974f10f45a --- /dev/null +++ b/docs/PaginatedVLANTranslationPolicyList.md @@ -0,0 +1,144 @@ +# PaginatedVLANTranslationPolicyList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]VLANTranslationPolicy**](VLANTranslationPolicy.md) | | + +## Methods + +### NewPaginatedVLANTranslationPolicyList + +`func NewPaginatedVLANTranslationPolicyList(count int32, results []VLANTranslationPolicy, ) *PaginatedVLANTranslationPolicyList` + +NewPaginatedVLANTranslationPolicyList instantiates a new PaginatedVLANTranslationPolicyList 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 + +### NewPaginatedVLANTranslationPolicyListWithDefaults + +`func NewPaginatedVLANTranslationPolicyListWithDefaults() *PaginatedVLANTranslationPolicyList` + +NewPaginatedVLANTranslationPolicyListWithDefaults instantiates a new PaginatedVLANTranslationPolicyList 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 *PaginatedVLANTranslationPolicyList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedVLANTranslationPolicyList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedVLANTranslationPolicyList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedVLANTranslationPolicyList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedVLANTranslationPolicyList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedVLANTranslationPolicyList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedVLANTranslationPolicyList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedVLANTranslationPolicyList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedVLANTranslationPolicyList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedVLANTranslationPolicyList) GetResults() []VLANTranslationPolicy` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedVLANTranslationPolicyList) GetResultsOk() (*[]VLANTranslationPolicy, 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 *PaginatedVLANTranslationPolicyList) SetResults(v []VLANTranslationPolicy)` + +SetResults sets Results 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/PaginatedVLANTranslationRuleList.md b/docs/PaginatedVLANTranslationRuleList.md new file mode 100644 index 0000000000..64ef57b705 --- /dev/null +++ b/docs/PaginatedVLANTranslationRuleList.md @@ -0,0 +1,144 @@ +# PaginatedVLANTranslationRuleList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]VLANTranslationRule**](VLANTranslationRule.md) | | + +## Methods + +### NewPaginatedVLANTranslationRuleList + +`func NewPaginatedVLANTranslationRuleList(count int32, results []VLANTranslationRule, ) *PaginatedVLANTranslationRuleList` + +NewPaginatedVLANTranslationRuleList instantiates a new PaginatedVLANTranslationRuleList 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 + +### NewPaginatedVLANTranslationRuleListWithDefaults + +`func NewPaginatedVLANTranslationRuleListWithDefaults() *PaginatedVLANTranslationRuleList` + +NewPaginatedVLANTranslationRuleListWithDefaults instantiates a new PaginatedVLANTranslationRuleList 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 *PaginatedVLANTranslationRuleList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedVLANTranslationRuleList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedVLANTranslationRuleList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedVLANTranslationRuleList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedVLANTranslationRuleList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedVLANTranslationRuleList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedVLANTranslationRuleList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedVLANTranslationRuleList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedVLANTranslationRuleList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedVLANTranslationRuleList) GetResults() []VLANTranslationRule` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedVLANTranslationRuleList) GetResultsOk() (*[]VLANTranslationRule, 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 *PaginatedVLANTranslationRuleList) SetResults(v []VLANTranslationRule)` + +SetResults sets Results 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/PaginatedVMInterfaceList 2.md b/docs/PaginatedVMInterfaceList 2.md new file mode 100644 index 0000000000..451bdc9c23 --- /dev/null +++ b/docs/PaginatedVMInterfaceList 2.md @@ -0,0 +1,144 @@ +# PaginatedVMInterfaceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]VMInterface**](VMInterface.md) | | + +## Methods + +### NewPaginatedVMInterfaceList + +`func NewPaginatedVMInterfaceList(count int32, results []VMInterface, ) *PaginatedVMInterfaceList` + +NewPaginatedVMInterfaceList instantiates a new PaginatedVMInterfaceList 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 + +### NewPaginatedVMInterfaceListWithDefaults + +`func NewPaginatedVMInterfaceListWithDefaults() *PaginatedVMInterfaceList` + +NewPaginatedVMInterfaceListWithDefaults instantiates a new PaginatedVMInterfaceList 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 *PaginatedVMInterfaceList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedVMInterfaceList) 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 *PaginatedVMInterfaceList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedVMInterfaceList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedVMInterfaceList) 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 *PaginatedVMInterfaceList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedVMInterfaceList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedVMInterfaceList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedVMInterfaceList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedVMInterfaceList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedVMInterfaceList) 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 *PaginatedVMInterfaceList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedVMInterfaceList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedVMInterfaceList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedVMInterfaceList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedVMInterfaceList) GetResults() []VMInterface` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedVMInterfaceList) GetResultsOk() (*[]VMInterface, 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 *PaginatedVMInterfaceList) SetResults(v []VMInterface)` + +SetResults sets Results 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/PaginatedVRFList 2.md b/docs/PaginatedVRFList 2.md new file mode 100644 index 0000000000..2cf4cb417f --- /dev/null +++ b/docs/PaginatedVRFList 2.md @@ -0,0 +1,144 @@ +# PaginatedVRFList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]VRF**](VRF.md) | | + +## Methods + +### NewPaginatedVRFList + +`func NewPaginatedVRFList(count int32, results []VRF, ) *PaginatedVRFList` + +NewPaginatedVRFList instantiates a new PaginatedVRFList 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 + +### NewPaginatedVRFListWithDefaults + +`func NewPaginatedVRFListWithDefaults() *PaginatedVRFList` + +NewPaginatedVRFListWithDefaults instantiates a new PaginatedVRFList 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 *PaginatedVRFList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedVRFList) 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 *PaginatedVRFList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedVRFList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedVRFList) 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 *PaginatedVRFList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedVRFList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedVRFList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedVRFList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedVRFList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedVRFList) 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 *PaginatedVRFList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedVRFList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedVRFList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedVRFList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedVRFList) GetResults() []VRF` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedVRFList) GetResultsOk() (*[]VRF, 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 *PaginatedVRFList) SetResults(v []VRF)` + +SetResults sets Results 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/PaginatedVirtualCircuitList.md b/docs/PaginatedVirtualCircuitList.md new file mode 100644 index 0000000000..c62d4cf70e --- /dev/null +++ b/docs/PaginatedVirtualCircuitList.md @@ -0,0 +1,144 @@ +# PaginatedVirtualCircuitList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]VirtualCircuit**](VirtualCircuit.md) | | + +## Methods + +### NewPaginatedVirtualCircuitList + +`func NewPaginatedVirtualCircuitList(count int32, results []VirtualCircuit, ) *PaginatedVirtualCircuitList` + +NewPaginatedVirtualCircuitList instantiates a new PaginatedVirtualCircuitList 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 + +### NewPaginatedVirtualCircuitListWithDefaults + +`func NewPaginatedVirtualCircuitListWithDefaults() *PaginatedVirtualCircuitList` + +NewPaginatedVirtualCircuitListWithDefaults instantiates a new PaginatedVirtualCircuitList 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 *PaginatedVirtualCircuitList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedVirtualCircuitList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedVirtualCircuitList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedVirtualCircuitList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedVirtualCircuitList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedVirtualCircuitList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedVirtualCircuitList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedVirtualCircuitList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedVirtualCircuitList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedVirtualCircuitList) GetResults() []VirtualCircuit` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedVirtualCircuitList) GetResultsOk() (*[]VirtualCircuit, 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 *PaginatedVirtualCircuitList) SetResults(v []VirtualCircuit)` + +SetResults sets Results 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/PaginatedVirtualCircuitTerminationList.md b/docs/PaginatedVirtualCircuitTerminationList.md new file mode 100644 index 0000000000..686cb56c17 --- /dev/null +++ b/docs/PaginatedVirtualCircuitTerminationList.md @@ -0,0 +1,144 @@ +# PaginatedVirtualCircuitTerminationList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]VirtualCircuitTermination**](VirtualCircuitTermination.md) | | + +## Methods + +### NewPaginatedVirtualCircuitTerminationList + +`func NewPaginatedVirtualCircuitTerminationList(count int32, results []VirtualCircuitTermination, ) *PaginatedVirtualCircuitTerminationList` + +NewPaginatedVirtualCircuitTerminationList instantiates a new PaginatedVirtualCircuitTerminationList 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 + +### NewPaginatedVirtualCircuitTerminationListWithDefaults + +`func NewPaginatedVirtualCircuitTerminationListWithDefaults() *PaginatedVirtualCircuitTerminationList` + +NewPaginatedVirtualCircuitTerminationListWithDefaults instantiates a new PaginatedVirtualCircuitTerminationList 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 *PaginatedVirtualCircuitTerminationList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedVirtualCircuitTerminationList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedVirtualCircuitTerminationList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedVirtualCircuitTerminationList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedVirtualCircuitTerminationList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedVirtualCircuitTerminationList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedVirtualCircuitTerminationList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedVirtualCircuitTerminationList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedVirtualCircuitTerminationList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedVirtualCircuitTerminationList) GetResults() []VirtualCircuitTermination` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedVirtualCircuitTerminationList) GetResultsOk() (*[]VirtualCircuitTermination, 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 *PaginatedVirtualCircuitTerminationList) SetResults(v []VirtualCircuitTermination)` + +SetResults sets Results 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/PaginatedVirtualCircuitTypeList.md b/docs/PaginatedVirtualCircuitTypeList.md new file mode 100644 index 0000000000..027f099f34 --- /dev/null +++ b/docs/PaginatedVirtualCircuitTypeList.md @@ -0,0 +1,144 @@ +# PaginatedVirtualCircuitTypeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]VirtualCircuitType**](VirtualCircuitType.md) | | + +## Methods + +### NewPaginatedVirtualCircuitTypeList + +`func NewPaginatedVirtualCircuitTypeList(count int32, results []VirtualCircuitType, ) *PaginatedVirtualCircuitTypeList` + +NewPaginatedVirtualCircuitTypeList instantiates a new PaginatedVirtualCircuitTypeList 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 + +### NewPaginatedVirtualCircuitTypeListWithDefaults + +`func NewPaginatedVirtualCircuitTypeListWithDefaults() *PaginatedVirtualCircuitTypeList` + +NewPaginatedVirtualCircuitTypeListWithDefaults instantiates a new PaginatedVirtualCircuitTypeList 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 *PaginatedVirtualCircuitTypeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedVirtualCircuitTypeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedVirtualCircuitTypeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedVirtualCircuitTypeList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedVirtualCircuitTypeList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedVirtualCircuitTypeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedVirtualCircuitTypeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedVirtualCircuitTypeList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedVirtualCircuitTypeList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedVirtualCircuitTypeList) GetResults() []VirtualCircuitType` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedVirtualCircuitTypeList) GetResultsOk() (*[]VirtualCircuitType, 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 *PaginatedVirtualCircuitTypeList) SetResults(v []VirtualCircuitType)` + +SetResults sets Results 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/PaginatedWirelessLinkList 2.md b/docs/PaginatedWirelessLinkList 2.md new file mode 100644 index 0000000000..a3ca5e55ec --- /dev/null +++ b/docs/PaginatedWirelessLinkList 2.md @@ -0,0 +1,144 @@ +# PaginatedWirelessLinkList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]WirelessLink**](WirelessLink.md) | | + +## Methods + +### NewPaginatedWirelessLinkList + +`func NewPaginatedWirelessLinkList(count int32, results []WirelessLink, ) *PaginatedWirelessLinkList` + +NewPaginatedWirelessLinkList instantiates a new PaginatedWirelessLinkList 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 + +### NewPaginatedWirelessLinkListWithDefaults + +`func NewPaginatedWirelessLinkListWithDefaults() *PaginatedWirelessLinkList` + +NewPaginatedWirelessLinkListWithDefaults instantiates a new PaginatedWirelessLinkList 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 *PaginatedWirelessLinkList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedWirelessLinkList) 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 *PaginatedWirelessLinkList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedWirelessLinkList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedWirelessLinkList) 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 *PaginatedWirelessLinkList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedWirelessLinkList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedWirelessLinkList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedWirelessLinkList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedWirelessLinkList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedWirelessLinkList) 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 *PaginatedWirelessLinkList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedWirelessLinkList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedWirelessLinkList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedWirelessLinkList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedWirelessLinkList) GetResults() []WirelessLink` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedWirelessLinkList) GetResultsOk() (*[]WirelessLink, 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 *PaginatedWirelessLinkList) SetResults(v []WirelessLink)` + +SetResults sets Results 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/PatchedASNRangeRequest.md b/docs/PatchedASNRangeRequest.md index a777fc11f7..235fbbe6c5 100644 --- a/docs/PatchedASNRangeRequest.md +++ b/docs/PatchedASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] **Start** | Pointer to **int64** | | [optional] **End** | Pointer to **int64** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -85,20 +85,20 @@ HasSlug returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRangeRequest) GetRir() RIRRequest` +`func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRangeRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -160,20 +160,20 @@ HasEnd returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedASNRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedASNRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedASNRequest.md b/docs/PatchedASNRequest.md index 4df3e7c67d..498a458665 100644 --- a/docs/PatchedASNRequest.md +++ b/docs/PatchedASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | Pointer to **int64** | 16- or 32-bit autonomous system number | [optional] -**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -58,20 +58,20 @@ HasAsn returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRequest) GetRir() RIRRequest` +`func (o *PatchedASNRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -93,20 +93,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *PatchedASNRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedASNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedBookmarkRequest.md b/docs/PatchedBookmarkRequest.md index 344f1ee74c..b82fd2d84a 100644 --- a/docs/PatchedBookmarkRequest.md +++ b/docs/PatchedBookmarkRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasObjectId returns a boolean if a field has been set. ### GetUser -`func (o *PatchedBookmarkRequest) GetUser() UserRequest` +`func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, 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 *PatchedBookmarkRequest) SetUser(v UserRequest)` +`func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedCircuitGroupRequest.md b/docs/PatchedCircuitGroupRequest.md new file mode 100644 index 0000000000..7ffbd24038 --- /dev/null +++ b/docs/PatchedCircuitGroupRequest.md @@ -0,0 +1,196 @@ +# PatchedCircuitGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedCircuitGroupRequest + +`func NewPatchedCircuitGroupRequest() *PatchedCircuitGroupRequest` + +NewPatchedCircuitGroupRequest instantiates a new PatchedCircuitGroupRequest 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 + +### NewPatchedCircuitGroupRequestWithDefaults + +`func NewPatchedCircuitGroupRequestWithDefaults() *PatchedCircuitGroupRequest` + +NewPatchedCircuitGroupRequestWithDefaults instantiates a new PatchedCircuitGroupRequest 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 *PatchedCircuitGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedCircuitGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedCircuitGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedCircuitGroupRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedCircuitGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedCircuitGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PatchedCircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PatchedCircuitGroupRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PatchedCircuitGroupRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PatchedCircuitGroupRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *PatchedCircuitGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedCircuitGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedCircuitGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedCircuitGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedCircuitTerminationRequest.md b/docs/PatchedCircuitTerminationRequest.md index 1785e201e3..1f22906f6b 100644 --- a/docs/PatchedCircuitTerminationRequest.md +++ b/docs/PatchedCircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | Pointer to [**CircuitRequest**](CircuitRequest.md) | | [optional] -**TermSide** | Pointer to [**Termination1**](Termination1.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] +**Circuit** | Pointer to [**BriefCircuitRequest**](BriefCircuitRequest.md) | | [optional] +**TermSide** | Pointer to [**TerminationSide1**](TerminationSide1.md) | | [optional] +**TerminationType** | Pointer to **NullableString** | | [optional] +**TerminationId** | Pointer to **NullableInt32** | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest` +`func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest)` +`func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` SetCircuit sets Circuit field to given value. @@ -63,20 +63,20 @@ HasCircuit returns a boolean if a field has been set. ### GetTermSide -`func (o *PatchedCircuitTerminationRequest) GetTermSide() Termination1` +`func (o *PatchedCircuitTerminationRequest) GetTermSide() TerminationSide1` GetTermSide returns the TermSide field if non-nil, zero value otherwise. ### GetTermSideOk -`func (o *PatchedCircuitTerminationRequest) GetTermSideOk() (*Termination1, bool)` +`func (o *PatchedCircuitTerminationRequest) GetTermSideOk() (*TerminationSide1, bool)` GetTermSideOk returns a tuple with the TermSide field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTermSide -`func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1)` +`func (o *PatchedCircuitTerminationRequest) SetTermSide(v TerminationSide1)` SetTermSide sets TermSide field to given value. @@ -86,76 +86,76 @@ SetTermSide sets TermSide field to given value. HasTermSide returns a boolean if a field has been set. -### GetSite +### GetTerminationType -`func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest` +`func (o *PatchedCircuitTerminationRequest) GetTerminationType() string` -GetSite returns the Site field if non-nil, zero value otherwise. +GetTerminationType returns the TerminationType field if non-nil, zero value otherwise. -### GetSiteOk +### GetTerminationTypeOk -`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetTerminationTypeOk() (*string, bool)` -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +GetTerminationTypeOk returns a tuple with the TerminationType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSite +### SetTerminationType -`func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest)` +`func (o *PatchedCircuitTerminationRequest) SetTerminationType(v string)` -SetSite sets Site field to given value. +SetTerminationType sets TerminationType field to given value. -### HasSite +### HasTerminationType -`func (o *PatchedCircuitTerminationRequest) HasSite() bool` +`func (o *PatchedCircuitTerminationRequest) HasTerminationType() bool` -HasSite returns a boolean if a field has been set. +HasTerminationType returns a boolean if a field has been set. -### SetSiteNil +### SetTerminationTypeNil -`func (o *PatchedCircuitTerminationRequest) SetSiteNil(b bool)` +`func (o *PatchedCircuitTerminationRequest) SetTerminationTypeNil(b bool)` - SetSiteNil sets the value for Site to be an explicit nil + SetTerminationTypeNil sets the value for TerminationType to be an explicit nil -### UnsetSite -`func (o *PatchedCircuitTerminationRequest) UnsetSite()` +### UnsetTerminationType +`func (o *PatchedCircuitTerminationRequest) UnsetTerminationType()` -UnsetSite ensures that no value is present for Site, not even an explicit nil -### GetProviderNetwork +UnsetTerminationType ensures that no value is present for TerminationType, not even an explicit nil +### GetTerminationId -`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` +`func (o *PatchedCircuitTerminationRequest) GetTerminationId() int32` -GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. +GetTerminationId returns the TerminationId field if non-nil, zero value otherwise. -### GetProviderNetworkOk +### GetTerminationIdOk -`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetTerminationIdOk() (*int32, bool)` -GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +GetTerminationIdOk returns a tuple with the TerminationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetProviderNetwork +### SetTerminationId -`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` +`func (o *PatchedCircuitTerminationRequest) SetTerminationId(v int32)` -SetProviderNetwork sets ProviderNetwork field to given value. +SetTerminationId sets TerminationId field to given value. -### HasProviderNetwork +### HasTerminationId -`func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool` +`func (o *PatchedCircuitTerminationRequest) HasTerminationId() bool` -HasProviderNetwork returns a boolean if a field has been set. +HasTerminationId returns a boolean if a field has been set. -### SetProviderNetworkNil +### SetTerminationIdNil -`func (o *PatchedCircuitTerminationRequest) SetProviderNetworkNil(b bool)` +`func (o *PatchedCircuitTerminationRequest) SetTerminationIdNil(b bool)` - SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil + SetTerminationIdNil sets the value for TerminationId to be an explicit nil -### UnsetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) UnsetProviderNetwork()` +### UnsetTerminationId +`func (o *PatchedCircuitTerminationRequest) UnsetTerminationId()` -UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil +UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetPortSpeed `func (o *PatchedCircuitTerminationRequest) GetPortSpeed() int32` diff --git a/docs/PatchedClusterGroupRequest 2.md b/docs/PatchedClusterGroupRequest 2.md new file mode 100644 index 0000000000..3f78a9a618 --- /dev/null +++ b/docs/PatchedClusterGroupRequest 2.md @@ -0,0 +1,160 @@ +# PatchedClusterGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedClusterGroupRequest + +`func NewPatchedClusterGroupRequest() *PatchedClusterGroupRequest` + +NewPatchedClusterGroupRequest instantiates a new PatchedClusterGroupRequest 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 + +### NewPatchedClusterGroupRequestWithDefaults + +`func NewPatchedClusterGroupRequestWithDefaults() *PatchedClusterGroupRequest` + +NewPatchedClusterGroupRequestWithDefaults instantiates a new PatchedClusterGroupRequest 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 *PatchedClusterGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedClusterGroupRequest) 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 *PatchedClusterGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedClusterGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedClusterGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedClusterGroupRequest) 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 *PatchedClusterGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedClusterGroupRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedClusterGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedClusterGroupRequest) 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 *PatchedClusterGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedClusterGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedClusterGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedClusterGroupRequest) 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 *PatchedClusterGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedClusterGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedClusterGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedClusterGroupRequest) 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 *PatchedClusterGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedClusterGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedConfigContextRequest.md b/docs/PatchedConfigContextRequest.md index c4a77f8872..5162d6aca2 100644 --- a/docs/PatchedConfigContextRequest.md +++ b/docs/PatchedConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | Pointer to **interface{}** | | [optional] ## Methods @@ -470,20 +470,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedConfigTemplateRequest.md b/docs/PatchedConfigTemplateRequest.md index c9b1475925..37005f0125 100644 --- a/docs/PatchedConfigTemplateRequest.md +++ b/docs/PatchedConfigTemplateRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] **TemplateCode** | Pointer to **string** | Jinja2 template code. | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -142,20 +142,20 @@ HasTemplateCode returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedContactRequest.md b/docs/PatchedContactRequest.md index d1ad6719e2..042bee7750 100644 --- a/docs/PatchedContactRequest.md +++ b/docs/PatchedContactRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**NullableContactGroupRequest**](ContactGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Title** | Pointer to **string** | | [optional] **Phone** | Pointer to **string** | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedContactRequest) GetGroup() ContactGroupRequest` +`func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool)` +`func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest)` +`func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedDeviceBayRequest.md b/docs/PatchedDeviceBayRequest.md index bf25fd2a40..9df288606a 100644 --- a/docs/PatchedDeviceBayRequest.md +++ b/docs/PatchedDeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -133,20 +133,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/PatchedDeviceBayTemplateRequest.md b/docs/PatchedDeviceBayTemplateRequest.md index 5ba265ed2b..dc8920d73c 100644 --- a/docs/PatchedDeviceBayTemplateRequest.md +++ b/docs/PatchedDeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [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] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/PatchedDeviceRoleRequest 2.md b/docs/PatchedDeviceRoleRequest 2.md new file mode 100644 index 0000000000..19824a38b8 --- /dev/null +++ b/docs/PatchedDeviceRoleRequest 2.md @@ -0,0 +1,248 @@ +# PatchedDeviceRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedDeviceRoleRequest + +`func NewPatchedDeviceRoleRequest() *PatchedDeviceRoleRequest` + +NewPatchedDeviceRoleRequest instantiates a new PatchedDeviceRoleRequest 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 + +### NewPatchedDeviceRoleRequestWithDefaults + +`func NewPatchedDeviceRoleRequestWithDefaults() *PatchedDeviceRoleRequest` + +NewPatchedDeviceRoleRequestWithDefaults instantiates a new PatchedDeviceRoleRequest 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 *PatchedDeviceRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedDeviceRoleRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedDeviceRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedDeviceRoleRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetColor + +`func (o *PatchedDeviceRoleRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *PatchedDeviceRoleRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *PatchedDeviceRoleRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *PatchedDeviceRoleRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetVmRole + +`func (o *PatchedDeviceRoleRequest) GetVmRole() bool` + +GetVmRole returns the VmRole field if non-nil, zero value otherwise. + +### GetVmRoleOk + +`func (o *PatchedDeviceRoleRequest) GetVmRoleOk() (*bool, bool)` + +GetVmRoleOk returns a tuple with the VmRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVmRole + +`func (o *PatchedDeviceRoleRequest) SetVmRole(v bool)` + +SetVmRole sets VmRole field to given value. + +### HasVmRole + +`func (o *PatchedDeviceRoleRequest) HasVmRole() bool` + +HasVmRole returns a boolean if a field has been set. + +### GetConfigTemplate + +`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, 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 *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *PatchedDeviceRoleRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *PatchedDeviceRoleRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +### GetDescription + +`func (o *PatchedDeviceRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedDeviceRoleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedDeviceRoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedDeviceRoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedDeviceRoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedDeviceRoleRequest) 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 *PatchedDeviceRoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedDeviceRoleRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedDeviceRoleRequest.md b/docs/PatchedDeviceRoleRequest.md index 19824a38b8..f66bc8e9f6 100644 --- a/docs/PatchedDeviceRoleRequest.md +++ b/docs/PatchedDeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -134,20 +134,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedExportTemplateRequest 2.md b/docs/PatchedExportTemplateRequest 2.md new file mode 100644 index 0000000000..0a424e1f2a --- /dev/null +++ b/docs/PatchedExportTemplateRequest 2.md @@ -0,0 +1,238 @@ +# PatchedExportTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectTypes** | Pointer to **[]string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**TemplateCode** | Pointer to **string** | Jinja2 template code. The list of objects being exported is passed as a context variable named <code>queryset</code>. | [optional] +**MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] +**FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] +**AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] +**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] + +## Methods + +### NewPatchedExportTemplateRequest + +`func NewPatchedExportTemplateRequest() *PatchedExportTemplateRequest` + +NewPatchedExportTemplateRequest instantiates a new PatchedExportTemplateRequest 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 + +### NewPatchedExportTemplateRequestWithDefaults + +`func NewPatchedExportTemplateRequestWithDefaults() *PatchedExportTemplateRequest` + +NewPatchedExportTemplateRequestWithDefaults instantiates a new PatchedExportTemplateRequest 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 + +### GetObjectTypes + +`func (o *PatchedExportTemplateRequest) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *PatchedExportTemplateRequest) 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 *PatchedExportTemplateRequest) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + +### HasObjectTypes + +`func (o *PatchedExportTemplateRequest) HasObjectTypes() bool` + +HasObjectTypes returns a boolean if a field has been set. + +### GetName + +`func (o *PatchedExportTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedExportTemplateRequest) 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 *PatchedExportTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedExportTemplateRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedExportTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedExportTemplateRequest) 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 *PatchedExportTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedExportTemplateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTemplateCode + +`func (o *PatchedExportTemplateRequest) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *PatchedExportTemplateRequest) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *PatchedExportTemplateRequest) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + +### HasTemplateCode + +`func (o *PatchedExportTemplateRequest) HasTemplateCode() bool` + +HasTemplateCode returns a boolean if a field has been set. + +### GetMimeType + +`func (o *PatchedExportTemplateRequest) GetMimeType() string` + +GetMimeType returns the MimeType field if non-nil, zero value otherwise. + +### GetMimeTypeOk + +`func (o *PatchedExportTemplateRequest) GetMimeTypeOk() (*string, bool)` + +GetMimeTypeOk returns a tuple with the MimeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMimeType + +`func (o *PatchedExportTemplateRequest) SetMimeType(v string)` + +SetMimeType sets MimeType field to given value. + +### HasMimeType + +`func (o *PatchedExportTemplateRequest) HasMimeType() bool` + +HasMimeType returns a boolean if a field has been set. + +### GetFileExtension + +`func (o *PatchedExportTemplateRequest) GetFileExtension() string` + +GetFileExtension returns the FileExtension field if non-nil, zero value otherwise. + +### GetFileExtensionOk + +`func (o *PatchedExportTemplateRequest) GetFileExtensionOk() (*string, bool)` + +GetFileExtensionOk returns a tuple with the FileExtension field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileExtension + +`func (o *PatchedExportTemplateRequest) SetFileExtension(v string)` + +SetFileExtension sets FileExtension field to given value. + +### HasFileExtension + +`func (o *PatchedExportTemplateRequest) HasFileExtension() bool` + +HasFileExtension returns a boolean if a field has been set. + +### GetAsAttachment + +`func (o *PatchedExportTemplateRequest) GetAsAttachment() bool` + +GetAsAttachment returns the AsAttachment field if non-nil, zero value otherwise. + +### GetAsAttachmentOk + +`func (o *PatchedExportTemplateRequest) GetAsAttachmentOk() (*bool, bool)` + +GetAsAttachmentOk returns a tuple with the AsAttachment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsAttachment + +`func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool)` + +SetAsAttachment sets AsAttachment field to given value. + +### HasAsAttachment + +`func (o *PatchedExportTemplateRequest) HasAsAttachment() bool` + +HasAsAttachment returns a boolean if a field has been set. + +### GetDataSource + +`func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *PatchedExportTemplateRequest) HasDataSource() bool` + +HasDataSource 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/PatchedExportTemplateRequest.md b/docs/PatchedExportTemplateRequest.md index 0a424e1f2a..2195f5d070 100644 --- a/docs/PatchedExportTemplateRequest.md +++ b/docs/PatchedExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -209,20 +209,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedFHRPGroupAssignmentRequest.md b/docs/PatchedFHRPGroupAssignmentRequest.md index 4e987d7522..94ee184e36 100644 --- a/docs/PatchedFHRPGroupAssignmentRequest.md +++ b/docs/PatchedFHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**FHRPGroupRequest**](FHRPGroupRequest.md) | | [optional] +**Group** | Pointer to [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | [optional] **InterfaceType** | Pointer to **string** | | [optional] **InterfaceId** | Pointer to **int64** | | [optional] **Priority** | Pointer to **int32** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedFHRPGroupRequest.md b/docs/PatchedFHRPGroupRequest.md index b1e63b0ca4..f79f8c6d41 100644 --- a/docs/PatchedFHRPGroupRequest.md +++ b/docs/PatchedFHRPGroupRequest.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Protocol** | Pointer to [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | [optional] +**Protocol** | Pointer to [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | [optional] **GroupId** | Pointer to **int32** | | [optional] -**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] +**AuthType** | Pointer to [**NullableAuthenticationType**](AuthenticationType.md) | | [optional] **AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -60,20 +60,20 @@ HasName returns a boolean if a field has been set. ### GetProtocol -`func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -133,6 +133,16 @@ SetAuthType sets AuthType field to given value. HasAuthType returns a boolean if a field has been set. +### SetAuthTypeNil + +`func (o *PatchedFHRPGroupRequest) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *PatchedFHRPGroupRequest) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil ### GetAuthKey `func (o *PatchedFHRPGroupRequest) GetAuthKey() string` diff --git a/docs/PatchedImageAttachmentRequest.md b/docs/PatchedImageAttachmentRequest.md index de2766af0c..fd6d6db096 100644 --- a/docs/PatchedImageAttachmentRequest.md +++ b/docs/PatchedImageAttachmentRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **ObjectId** | Pointer to **int64** | | [optional] **Name** | Pointer to **string** | | [optional] **Image** | Pointer to ***os.File** | | [optional] -**ImageHeight** | Pointer to **int32** | | [optional] -**ImageWidth** | Pointer to **int32** | | [optional] ## Methods @@ -130,56 +128,6 @@ SetImage sets Image field to given value. HasImage returns a boolean if a field has been set. -### GetImageHeight - -`func (o *PatchedImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - -### HasImageHeight - -`func (o *PatchedImageAttachmentRequest) HasImageHeight() bool` - -HasImageHeight returns a boolean if a field has been set. - -### GetImageWidth - -`func (o *PatchedImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth field to given value. - -### HasImageWidth - -`func (o *PatchedImageAttachmentRequest) HasImageWidth() bool` - -HasImageWidth 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/PatchedInventoryItemTemplateRequest.md b/docs/PatchedInventoryItemTemplateRequest.md index 8bc9025d49..7be75bce81 100644 --- a/docs/PatchedInventoryItemTemplateRequest.md +++ b/docs/PatchedInventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [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] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -146,20 +146,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, 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 *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -181,20 +181,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedL2VPNTerminationRequest.md b/docs/PatchedL2VPNTerminationRequest.md index 52faa0e937..4027c8f8ff 100644 --- a/docs/PatchedL2VPNTerminationRequest.md +++ b/docs/PatchedL2VPNTerminationRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | Pointer to [**L2VPNRequest**](L2VPNRequest.md) | | [optional] +**L2vpn** | Pointer to [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | [optional] **AssignedObjectType** | Pointer to **string** | | [optional] **AssignedObjectId** | Pointer to **int64** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. diff --git a/docs/PatchedMACAddressRequest.md b/docs/PatchedMACAddressRequest.md new file mode 100644 index 0000000000..0f9c4f7fb9 --- /dev/null +++ b/docs/PatchedMACAddressRequest.md @@ -0,0 +1,232 @@ +# PatchedMACAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MacAddress** | Pointer to **string** | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedMACAddressRequest + +`func NewPatchedMACAddressRequest() *PatchedMACAddressRequest` + +NewPatchedMACAddressRequest instantiates a new PatchedMACAddressRequest 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 + +### NewPatchedMACAddressRequestWithDefaults + +`func NewPatchedMACAddressRequestWithDefaults() *PatchedMACAddressRequest` + +NewPatchedMACAddressRequestWithDefaults instantiates a new PatchedMACAddressRequest 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 + +### GetMacAddress + +`func (o *PatchedMACAddressRequest) GetMacAddress() string` + +GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. + +### GetMacAddressOk + +`func (o *PatchedMACAddressRequest) GetMacAddressOk() (*string, bool)` + +GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddress + +`func (o *PatchedMACAddressRequest) SetMacAddress(v string)` + +SetMacAddress sets MacAddress field to given value. + +### HasMacAddress + +`func (o *PatchedMACAddressRequest) HasMacAddress() bool` + +HasMacAddress returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *PatchedMACAddressRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *PatchedMACAddressRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *PatchedMACAddressRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *PatchedMACAddressRequest) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *PatchedMACAddressRequest) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *PatchedMACAddressRequest) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *PatchedMACAddressRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *PatchedMACAddressRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *PatchedMACAddressRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *PatchedMACAddressRequest) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *PatchedMACAddressRequest) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *PatchedMACAddressRequest) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetDescription + +`func (o *PatchedMACAddressRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedMACAddressRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *PatchedMACAddressRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedMACAddressRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedMACAddressRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedMACAddressRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedMACAddressRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedMACAddressRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedMACAddressRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedMACAddressRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedModuleBayRequest.md b/docs/PatchedModuleBayRequest.md index 57abae4fcc..9a04dd1db8 100644 --- a/docs/PatchedModuleBayRequest.md +++ b/docs/PatchedModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [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] @@ -34,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -57,6 +58,41 @@ SetDevice sets Device field to given value. HasDevice returns a boolean if a field has been set. +### GetModule + +`func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PatchedModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PatchedModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PatchedModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PatchedModuleBayRequest) GetName() string` @@ -84,20 +120,20 @@ HasName returns a boolean if a field has been set. ### GetInstalledModule -`func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/PatchedModuleBayTemplateRequest 2.md b/docs/PatchedModuleBayTemplateRequest 2.md new file mode 100644 index 0000000000..afa822d29c --- /dev/null +++ b/docs/PatchedModuleBayTemplateRequest 2.md @@ -0,0 +1,160 @@ +# PatchedModuleBayTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [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] + +## Methods + +### NewPatchedModuleBayTemplateRequest + +`func NewPatchedModuleBayTemplateRequest() *PatchedModuleBayTemplateRequest` + +NewPatchedModuleBayTemplateRequest instantiates a new PatchedModuleBayTemplateRequest 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 + +### NewPatchedModuleBayTemplateRequestWithDefaults + +`func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateRequest` + +NewPatchedModuleBayTemplateRequestWithDefaults instantiates a new PatchedModuleBayTemplateRequest 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 + +### GetDeviceType + +`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### GetName + +`func (o *PatchedModuleBayTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedModuleBayTemplateRequest) 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 *PatchedModuleBayTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedModuleBayTemplateRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetLabel + +`func (o *PatchedModuleBayTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PatchedModuleBayTemplateRequest) 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 *PatchedModuleBayTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PatchedModuleBayTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetPosition + +`func (o *PatchedModuleBayTemplateRequest) GetPosition() string` + +GetPosition returns the Position field if non-nil, zero value otherwise. + +### GetPositionOk + +`func (o *PatchedModuleBayTemplateRequest) GetPositionOk() (*string, bool)` + +GetPositionOk returns a tuple with the Position field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPosition + +`func (o *PatchedModuleBayTemplateRequest) SetPosition(v string)` + +SetPosition sets Position field to given value. + +### HasPosition + +`func (o *PatchedModuleBayTemplateRequest) HasPosition() bool` + +HasPosition returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedModuleBayTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedModuleBayTemplateRequest) 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 *PatchedModuleBayTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedModuleBayTemplateRequest) 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/PatchedModuleBayTemplateRequest.md b/docs/PatchedModuleBayTemplateRequest.md index afa822d29c..faa58b18a8 100644 --- a/docs/PatchedModuleBayTemplateRequest.md +++ b/docs/PatchedModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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] @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -54,6 +55,51 @@ SetDeviceType sets DeviceType field to given value. HasDeviceType returns a boolean if a field has been set. +### SetDeviceTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PatchedModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PatchedModuleBayTemplateRequest) GetName() string` diff --git a/docs/PatchedNotificationGroupRequest.md b/docs/PatchedNotificationGroupRequest.md new file mode 100644 index 0000000000..03c1aaab9b --- /dev/null +++ b/docs/PatchedNotificationGroupRequest.md @@ -0,0 +1,134 @@ +# PatchedNotificationGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Users** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewPatchedNotificationGroupRequest + +`func NewPatchedNotificationGroupRequest() *PatchedNotificationGroupRequest` + +NewPatchedNotificationGroupRequest instantiates a new PatchedNotificationGroupRequest 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 + +### NewPatchedNotificationGroupRequestWithDefaults + +`func NewPatchedNotificationGroupRequestWithDefaults() *PatchedNotificationGroupRequest` + +NewPatchedNotificationGroupRequestWithDefaults instantiates a new PatchedNotificationGroupRequest 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 *PatchedNotificationGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedNotificationGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedNotificationGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedNotificationGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *PatchedNotificationGroupRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *PatchedNotificationGroupRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *PatchedNotificationGroupRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *PatchedNotificationGroupRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *PatchedNotificationGroupRequest) GetUsers() []int32` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *PatchedNotificationGroupRequest) GetUsersOk() (*[]int32, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *PatchedNotificationGroupRequest) SetUsers(v []int32)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *PatchedNotificationGroupRequest) HasUsers() bool` + +HasUsers 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/PatchedNotificationRequest.md b/docs/PatchedNotificationRequest.md new file mode 100644 index 0000000000..7c30c9ee52 --- /dev/null +++ b/docs/PatchedNotificationRequest.md @@ -0,0 +1,170 @@ +# PatchedNotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | Pointer to [**Event**](Event.md) | | [optional] + +## Methods + +### NewPatchedNotificationRequest + +`func NewPatchedNotificationRequest() *PatchedNotificationRequest` + +NewPatchedNotificationRequest instantiates a new PatchedNotificationRequest 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 + +### NewPatchedNotificationRequestWithDefaults + +`func NewPatchedNotificationRequestWithDefaults() *PatchedNotificationRequest` + +NewPatchedNotificationRequestWithDefaults instantiates a new PatchedNotificationRequest 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 *PatchedNotificationRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedNotificationRequest) 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 *PatchedNotificationRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedNotificationRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedNotificationRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedNotificationRequest) 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 *PatchedNotificationRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedNotificationRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedNotificationRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedNotificationRequest) GetUserOk() (*BriefUserRequest, 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 *PatchedNotificationRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedNotificationRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetRead + +`func (o *PatchedNotificationRequest) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *PatchedNotificationRequest) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *PatchedNotificationRequest) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *PatchedNotificationRequest) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *PatchedNotificationRequest) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *PatchedNotificationRequest) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *PatchedNotificationRequest) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *PatchedNotificationRequest) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *PatchedNotificationRequest) SetEventType(v Event)` + +SetEventType sets EventType field to given value. + +### HasEventType + +`func (o *PatchedNotificationRequest) HasEventType() bool` + +HasEventType 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/PatchedPlatformRequest.md b/docs/PatchedPlatformRequest.md index 8c681c6587..a45b87ba44 100644 --- a/docs/PatchedPlatformRequest.md +++ b/docs/PatchedPlatformRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetManufacturer -`func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -118,20 +118,20 @@ HasManufacturer returns a boolean if a field has been set. UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil ### GetConfigTemplate -`func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedPowerPanelRequest.md b/docs/PatchedPowerPanelRequest.md index 1f2bda37d8..832203743a 100644 --- a/docs/PatchedPowerPanelRequest.md +++ b/docs/PatchedPowerPanelRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedPowerPanelRequest) GetSite() SiteRequest` +`func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest)` +`func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -58,20 +58,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest` +`func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest)` +`func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. diff --git a/docs/PatchedProviderAccountRequest.md b/docs/PatchedProviderAccountRequest.md index e4f8fd72e4..8dcbb884ec 100644 --- a/docs/PatchedProviderAccountRequest.md +++ b/docs/PatchedProviderAccountRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedProviderNetworkRequest.md b/docs/PatchedProviderNetworkRequest.md index 71345eb121..9bc9624e3b 100644 --- a/docs/PatchedProviderNetworkRequest.md +++ b/docs/PatchedProviderNetworkRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedRackReservationRequest.md b/docs/PatchedRackReservationRequest.md index 5347665db9..0b0b9d3343 100644 --- a/docs/PatchedRackReservationRequest.md +++ b/docs/PatchedRackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | Pointer to [**RackRequest**](RackRequest.md) | | [optional] +**Rack** | Pointer to [**BriefRackRequest**](BriefRackRequest.md) | | [optional] **Units** | Pointer to **[]int32** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *PatchedRackReservationRequest) GetRack() RackRequest` +`func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedRackReservationRequest) SetRack(v RackRequest)` +`func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -84,20 +84,20 @@ HasUnits returns a boolean if a field has been set. ### GetUser -`func (o *PatchedRackReservationRequest) GetUser() UserRequest` +`func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, 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 *PatchedRackReservationRequest) SetUser(v UserRequest)` +`func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. @@ -109,20 +109,20 @@ HasUser returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRackReservationRequest) GetTenant() TenantRequest` +`func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedRackReservationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedRoleRequest 2.md b/docs/PatchedRoleRequest 2.md new file mode 100644 index 0000000000..a8ffab908a --- /dev/null +++ b/docs/PatchedRoleRequest 2.md @@ -0,0 +1,186 @@ +# PatchedRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Weight** | Pointer to **int32** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedRoleRequest + +`func NewPatchedRoleRequest() *PatchedRoleRequest` + +NewPatchedRoleRequest instantiates a new PatchedRoleRequest 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 + +### NewPatchedRoleRequestWithDefaults + +`func NewPatchedRoleRequestWithDefaults() *PatchedRoleRequest` + +NewPatchedRoleRequestWithDefaults instantiates a new PatchedRoleRequest 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 *PatchedRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedRoleRequest) 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 *PatchedRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedRoleRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedRoleRequest) 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 *PatchedRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedRoleRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetWeight + +`func (o *PatchedRoleRequest) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *PatchedRoleRequest) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *PatchedRoleRequest) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *PatchedRoleRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedRoleRequest) 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 *PatchedRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedRoleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedRoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedRoleRequest) 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 *PatchedRoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedRoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedRoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedRoleRequest) 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 *PatchedRoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedRoleRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedRouteTargetRequest 2.md b/docs/PatchedRouteTargetRequest 2.md new file mode 100644 index 0000000000..a08f52e557 --- /dev/null +++ b/docs/PatchedRouteTargetRequest 2.md @@ -0,0 +1,196 @@ +# PatchedRouteTargetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Route target value (formatted in accordance with RFC 4360) | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedRouteTargetRequest + +`func NewPatchedRouteTargetRequest() *PatchedRouteTargetRequest` + +NewPatchedRouteTargetRequest instantiates a new PatchedRouteTargetRequest 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 + +### NewPatchedRouteTargetRequestWithDefaults + +`func NewPatchedRouteTargetRequestWithDefaults() *PatchedRouteTargetRequest` + +NewPatchedRouteTargetRequestWithDefaults instantiates a new PatchedRouteTargetRequest 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 *PatchedRouteTargetRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedRouteTargetRequest) 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 *PatchedRouteTargetRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedRouteTargetRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetTenant + +`func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, 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 *PatchedRouteTargetRequest) SetTenant(v TenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PatchedRouteTargetRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PatchedRouteTargetRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PatchedRouteTargetRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDescription + +`func (o *PatchedRouteTargetRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedRouteTargetRequest) 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 *PatchedRouteTargetRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedRouteTargetRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *PatchedRouteTargetRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedRouteTargetRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedRouteTargetRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedRouteTargetRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedRouteTargetRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedRouteTargetRequest) 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 *PatchedRouteTargetRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedRouteTargetRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedRouteTargetRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedRouteTargetRequest) 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 *PatchedRouteTargetRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedRouteTargetRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedRouteTargetRequest.md b/docs/PatchedRouteTargetRequest.md index a08f52e557..95629a647a 100644 --- a/docs/PatchedRouteTargetRequest.md +++ b/docs/PatchedRouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Route target value (formatted in accordance with RFC 4360) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -57,20 +57,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest` +`func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedRouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedSavedFilterRequest 2.md b/docs/PatchedSavedFilterRequest 2.md new file mode 100644 index 0000000000..b21ec342cd --- /dev/null +++ b/docs/PatchedSavedFilterRequest 2.md @@ -0,0 +1,284 @@ +# PatchedSavedFilterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectTypes** | Pointer to **[]string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**User** | Pointer to **NullableInt32** | | [optional] +**Weight** | Pointer to **int32** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Shared** | Pointer to **bool** | | [optional] +**Parameters** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewPatchedSavedFilterRequest + +`func NewPatchedSavedFilterRequest() *PatchedSavedFilterRequest` + +NewPatchedSavedFilterRequest instantiates a new PatchedSavedFilterRequest 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 + +### NewPatchedSavedFilterRequestWithDefaults + +`func NewPatchedSavedFilterRequestWithDefaults() *PatchedSavedFilterRequest` + +NewPatchedSavedFilterRequestWithDefaults instantiates a new PatchedSavedFilterRequest 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 + +### GetObjectTypes + +`func (o *PatchedSavedFilterRequest) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *PatchedSavedFilterRequest) 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 *PatchedSavedFilterRequest) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + +### HasObjectTypes + +`func (o *PatchedSavedFilterRequest) HasObjectTypes() bool` + +HasObjectTypes returns a boolean if a field has been set. + +### GetName + +`func (o *PatchedSavedFilterRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedSavedFilterRequest) 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 *PatchedSavedFilterRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedSavedFilterRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedSavedFilterRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedSavedFilterRequest) 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 *PatchedSavedFilterRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedSavedFilterRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedSavedFilterRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedSavedFilterRequest) 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 *PatchedSavedFilterRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedSavedFilterRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedSavedFilterRequest) GetUser() int32` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedSavedFilterRequest) 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 *PatchedSavedFilterRequest) SetUser(v int32)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedSavedFilterRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### SetUserNil + +`func (o *PatchedSavedFilterRequest) SetUserNil(b bool)` + + SetUserNil sets the value for User to be an explicit nil + +### UnsetUser +`func (o *PatchedSavedFilterRequest) UnsetUser()` + +UnsetUser ensures that no value is present for User, not even an explicit nil +### GetWeight + +`func (o *PatchedSavedFilterRequest) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *PatchedSavedFilterRequest) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *PatchedSavedFilterRequest) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *PatchedSavedFilterRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### GetEnabled + +`func (o *PatchedSavedFilterRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *PatchedSavedFilterRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *PatchedSavedFilterRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *PatchedSavedFilterRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetShared + +`func (o *PatchedSavedFilterRequest) GetShared() bool` + +GetShared returns the Shared field if non-nil, zero value otherwise. + +### GetSharedOk + +`func (o *PatchedSavedFilterRequest) GetSharedOk() (*bool, bool)` + +GetSharedOk returns a tuple with the Shared field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShared + +`func (o *PatchedSavedFilterRequest) SetShared(v bool)` + +SetShared sets Shared field to given value. + +### HasShared + +`func (o *PatchedSavedFilterRequest) HasShared() bool` + +HasShared returns a boolean if a field has been set. + +### GetParameters + +`func (o *PatchedSavedFilterRequest) GetParameters() interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *PatchedSavedFilterRequest) GetParametersOk() (*interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *PatchedSavedFilterRequest) SetParameters(v interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *PatchedSavedFilterRequest) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *PatchedSavedFilterRequest) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *PatchedSavedFilterRequest) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, 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/PatchedScriptInputRequest.md b/docs/PatchedScriptInputRequest.md new file mode 100644 index 0000000000..babb8fad70 --- /dev/null +++ b/docs/PatchedScriptInputRequest.md @@ -0,0 +1,164 @@ +# PatchedScriptInputRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] +**Commit** | Pointer to **bool** | | [optional] +**ScheduleAt** | Pointer to **NullableTime** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewPatchedScriptInputRequest + +`func NewPatchedScriptInputRequest() *PatchedScriptInputRequest` + +NewPatchedScriptInputRequest instantiates a new PatchedScriptInputRequest 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 + +### NewPatchedScriptInputRequestWithDefaults + +`func NewPatchedScriptInputRequestWithDefaults() *PatchedScriptInputRequest` + +NewPatchedScriptInputRequestWithDefaults instantiates a new PatchedScriptInputRequest 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 + +### GetData + +`func (o *PatchedScriptInputRequest) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PatchedScriptInputRequest) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PatchedScriptInputRequest) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *PatchedScriptInputRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *PatchedScriptInputRequest) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *PatchedScriptInputRequest) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetCommit + +`func (o *PatchedScriptInputRequest) GetCommit() bool` + +GetCommit returns the Commit field if non-nil, zero value otherwise. + +### GetCommitOk + +`func (o *PatchedScriptInputRequest) GetCommitOk() (*bool, bool)` + +GetCommitOk returns a tuple with the Commit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommit + +`func (o *PatchedScriptInputRequest) SetCommit(v bool)` + +SetCommit sets Commit field to given value. + +### HasCommit + +`func (o *PatchedScriptInputRequest) HasCommit() bool` + +HasCommit returns a boolean if a field has been set. + +### GetScheduleAt + +`func (o *PatchedScriptInputRequest) GetScheduleAt() time.Time` + +GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise. + +### GetScheduleAtOk + +`func (o *PatchedScriptInputRequest) GetScheduleAtOk() (*time.Time, bool)` + +GetScheduleAtOk returns a tuple with the ScheduleAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleAt + +`func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time)` + +SetScheduleAt sets ScheduleAt field to given value. + +### HasScheduleAt + +`func (o *PatchedScriptInputRequest) HasScheduleAt() bool` + +HasScheduleAt returns a boolean if a field has been set. + +### SetScheduleAtNil + +`func (o *PatchedScriptInputRequest) SetScheduleAtNil(b bool)` + + SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil + +### UnsetScheduleAt +`func (o *PatchedScriptInputRequest) UnsetScheduleAt()` + +UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +### GetInterval + +`func (o *PatchedScriptInputRequest) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *PatchedScriptInputRequest) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *PatchedScriptInputRequest) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *PatchedScriptInputRequest) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *PatchedScriptInputRequest) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *PatchedScriptInputRequest) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, 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/PatchedSubscriptionRequest.md b/docs/PatchedSubscriptionRequest.md new file mode 100644 index 0000000000..28601b30f9 --- /dev/null +++ b/docs/PatchedSubscriptionRequest.md @@ -0,0 +1,108 @@ +# PatchedSubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] + +## Methods + +### NewPatchedSubscriptionRequest + +`func NewPatchedSubscriptionRequest() *PatchedSubscriptionRequest` + +NewPatchedSubscriptionRequest instantiates a new PatchedSubscriptionRequest 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 + +### NewPatchedSubscriptionRequestWithDefaults + +`func NewPatchedSubscriptionRequestWithDefaults() *PatchedSubscriptionRequest` + +NewPatchedSubscriptionRequestWithDefaults instantiates a new PatchedSubscriptionRequest 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 *PatchedSubscriptionRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedSubscriptionRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedSubscriptionRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedSubscriptionRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedSubscriptionRequest) GetUserOk() (*BriefUserRequest, 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 *PatchedSubscriptionRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedSubscriptionRequest) 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/PatchedTenantRequest.md b/docs/PatchedTenantRequest.md index 660e888105..a4b3b23b06 100644 --- a/docs/PatchedTenantRequest.md +++ b/docs/PatchedTenantRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableTenantGroupRequest**](TenantGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest` +`func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool)` +`func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest)` +`func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedTokenRequest.md b/docs/PatchedTokenRequest.md index a62dfd87e8..8d27c1785a 100644 --- a/docs/PatchedTokenRequest.md +++ b/docs/PatchedTokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *PatchedTokenRequest) GetUser() UserRequest` +`func (o *PatchedTokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, 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 *PatchedTokenRequest) SetUser(v UserRequest)` +`func (o *PatchedTokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedVLANGroupRequest.md b/docs/PatchedVLANGroupRequest.md index 9847c46b3d..c9b9b4b28f 100644 --- a/docs/PatchedVLANGroupRequest.md +++ b/docs/PatchedVLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -153,56 +151,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *PatchedVLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *PatchedVLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *PatchedVLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *PatchedVLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *PatchedVLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *PatchedVLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *PatchedVLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *PatchedVLANGroupRequest) GetDescription() string` diff --git a/docs/PatchedVLANTranslationPolicyRequest.md b/docs/PatchedVLANTranslationPolicyRequest.md new file mode 100644 index 0000000000..2348ebcc95 --- /dev/null +++ b/docs/PatchedVLANTranslationPolicyRequest.md @@ -0,0 +1,82 @@ +# PatchedVLANTranslationPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewPatchedVLANTranslationPolicyRequest + +`func NewPatchedVLANTranslationPolicyRequest() *PatchedVLANTranslationPolicyRequest` + +NewPatchedVLANTranslationPolicyRequest instantiates a new PatchedVLANTranslationPolicyRequest 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 + +### NewPatchedVLANTranslationPolicyRequestWithDefaults + +`func NewPatchedVLANTranslationPolicyRequestWithDefaults() *PatchedVLANTranslationPolicyRequest` + +NewPatchedVLANTranslationPolicyRequestWithDefaults instantiates a new PatchedVLANTranslationPolicyRequest 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 *PatchedVLANTranslationPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedVLANTranslationPolicyRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedVLANTranslationPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedVLANTranslationPolicyRequest) 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/PatchedVLANTranslationRuleRequest.md b/docs/PatchedVLANTranslationRuleRequest.md new file mode 100644 index 0000000000..7f2b9fc8f7 --- /dev/null +++ b/docs/PatchedVLANTranslationRuleRequest.md @@ -0,0 +1,134 @@ +# PatchedVLANTranslationRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policy** | Pointer to **int32** | | [optional] +**LocalVid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional] +**RemoteVid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewPatchedVLANTranslationRuleRequest + +`func NewPatchedVLANTranslationRuleRequest() *PatchedVLANTranslationRuleRequest` + +NewPatchedVLANTranslationRuleRequest instantiates a new PatchedVLANTranslationRuleRequest 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 + +### NewPatchedVLANTranslationRuleRequestWithDefaults + +`func NewPatchedVLANTranslationRuleRequestWithDefaults() *PatchedVLANTranslationRuleRequest` + +NewPatchedVLANTranslationRuleRequestWithDefaults instantiates a new PatchedVLANTranslationRuleRequest 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 + +### GetPolicy + +`func (o *PatchedVLANTranslationRuleRequest) GetPolicy() int32` + +GetPolicy returns the Policy field if non-nil, zero value otherwise. + +### GetPolicyOk + +`func (o *PatchedVLANTranslationRuleRequest) GetPolicyOk() (*int32, bool)` + +GetPolicyOk returns a tuple with the Policy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicy + +`func (o *PatchedVLANTranslationRuleRequest) SetPolicy(v int32)` + +SetPolicy sets Policy field to given value. + +### HasPolicy + +`func (o *PatchedVLANTranslationRuleRequest) HasPolicy() bool` + +HasPolicy returns a boolean if a field has been set. + +### GetLocalVid + +`func (o *PatchedVLANTranslationRuleRequest) GetLocalVid() int32` + +GetLocalVid returns the LocalVid field if non-nil, zero value otherwise. + +### GetLocalVidOk + +`func (o *PatchedVLANTranslationRuleRequest) GetLocalVidOk() (*int32, bool)` + +GetLocalVidOk returns a tuple with the LocalVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalVid + +`func (o *PatchedVLANTranslationRuleRequest) SetLocalVid(v int32)` + +SetLocalVid sets LocalVid field to given value. + +### HasLocalVid + +`func (o *PatchedVLANTranslationRuleRequest) HasLocalVid() bool` + +HasLocalVid returns a boolean if a field has been set. + +### GetRemoteVid + +`func (o *PatchedVLANTranslationRuleRequest) GetRemoteVid() int32` + +GetRemoteVid returns the RemoteVid field if non-nil, zero value otherwise. + +### GetRemoteVidOk + +`func (o *PatchedVLANTranslationRuleRequest) GetRemoteVidOk() (*int32, bool)` + +GetRemoteVidOk returns a tuple with the RemoteVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteVid + +`func (o *PatchedVLANTranslationRuleRequest) SetRemoteVid(v int32)` + +SetRemoteVid sets RemoteVid field to given value. + +### HasRemoteVid + +`func (o *PatchedVLANTranslationRuleRequest) HasRemoteVid() bool` + +HasRemoteVid returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedVLANTranslationRuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedVLANTranslationRuleRequest) 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 *PatchedVLANTranslationRuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedVLANTranslationRuleRequest) 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/PatchedVRFRequest.md b/docs/PatchedVRFRequest.md index 5c927e21cf..5b3fbced69 100644 --- a/docs/PatchedVRFRequest.md +++ b/docs/PatchedVRFRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -96,20 +96,20 @@ HasRd returns a boolean if a field has been set. UnsetRd ensures that no value is present for Rd, not even an explicit nil ### GetTenant -`func (o *PatchedVRFRequest) GetTenant() TenantRequest` +`func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedVRFRequest) SetTenant(v TenantRequest)` +`func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedVirtualCircuitTypeRequest.md b/docs/PatchedVirtualCircuitTypeRequest.md new file mode 100644 index 0000000000..5d9bb903a2 --- /dev/null +++ b/docs/PatchedVirtualCircuitTypeRequest.md @@ -0,0 +1,186 @@ +# PatchedVirtualCircuitTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedVirtualCircuitTypeRequest + +`func NewPatchedVirtualCircuitTypeRequest() *PatchedVirtualCircuitTypeRequest` + +NewPatchedVirtualCircuitTypeRequest instantiates a new PatchedVirtualCircuitTypeRequest 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 + +### NewPatchedVirtualCircuitTypeRequestWithDefaults + +`func NewPatchedVirtualCircuitTypeRequestWithDefaults() *PatchedVirtualCircuitTypeRequest` + +NewPatchedVirtualCircuitTypeRequestWithDefaults instantiates a new PatchedVirtualCircuitTypeRequest 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 *PatchedVirtualCircuitTypeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedVirtualCircuitTypeRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedVirtualCircuitTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedVirtualCircuitTypeRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetColor + +`func (o *PatchedVirtualCircuitTypeRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *PatchedVirtualCircuitTypeRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *PatchedVirtualCircuitTypeRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *PatchedVirtualCircuitTypeRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedVirtualCircuitTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedVirtualCircuitTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedVirtualCircuitTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedVirtualCircuitTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedVirtualCircuitTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedVirtualCircuitTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedVirtualDiskRequest.md b/docs/PatchedVirtualDiskRequest.md index f8b0d3d48e..1a7dd3c340 100644 --- a/docs/PatchedVirtualDiskRequest.md +++ b/docs/PatchedVirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Size** | Pointer to **int32** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableAggregateRequest 2.md b/docs/PatchedWritableAggregateRequest 2.md new file mode 100644 index 0000000000..41ef048227 --- /dev/null +++ b/docs/PatchedWritableAggregateRequest 2.md @@ -0,0 +1,258 @@ +# PatchedWritableAggregateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Prefix** | Pointer to **string** | | [optional] +**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**DateAdded** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableAggregateRequest + +`func NewPatchedWritableAggregateRequest() *PatchedWritableAggregateRequest` + +NewPatchedWritableAggregateRequest instantiates a new PatchedWritableAggregateRequest 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 + +### NewPatchedWritableAggregateRequestWithDefaults + +`func NewPatchedWritableAggregateRequestWithDefaults() *PatchedWritableAggregateRequest` + +NewPatchedWritableAggregateRequestWithDefaults instantiates a new PatchedWritableAggregateRequest 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 + +### GetPrefix + +`func (o *PatchedWritableAggregateRequest) GetPrefix() string` + +GetPrefix returns the Prefix field if non-nil, zero value otherwise. + +### GetPrefixOk + +`func (o *PatchedWritableAggregateRequest) GetPrefixOk() (*string, bool)` + +GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefix + +`func (o *PatchedWritableAggregateRequest) SetPrefix(v string)` + +SetPrefix sets Prefix field to given value. + +### HasPrefix + +`func (o *PatchedWritableAggregateRequest) HasPrefix() bool` + +HasPrefix returns a boolean if a field has been set. + +### GetRir + +`func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest` + +GetRir returns the Rir field if non-nil, zero value otherwise. + +### GetRirOk + +`func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` + +GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRir + +`func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest)` + +SetRir sets Rir field to given value. + +### HasRir + +`func (o *PatchedWritableAggregateRequest) HasRir() bool` + +HasRir returns a boolean if a field has been set. + +### GetTenant + +`func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, 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 *PatchedWritableAggregateRequest) SetTenant(v TenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PatchedWritableAggregateRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PatchedWritableAggregateRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PatchedWritableAggregateRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDateAdded + +`func (o *PatchedWritableAggregateRequest) GetDateAdded() string` + +GetDateAdded returns the DateAdded field if non-nil, zero value otherwise. + +### GetDateAddedOk + +`func (o *PatchedWritableAggregateRequest) GetDateAddedOk() (*string, bool)` + +GetDateAddedOk returns a tuple with the DateAdded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateAdded + +`func (o *PatchedWritableAggregateRequest) SetDateAdded(v string)` + +SetDateAdded sets DateAdded field to given value. + +### HasDateAdded + +`func (o *PatchedWritableAggregateRequest) HasDateAdded() bool` + +HasDateAdded returns a boolean if a field has been set. + +### SetDateAddedNil + +`func (o *PatchedWritableAggregateRequest) SetDateAddedNil(b bool)` + + SetDateAddedNil sets the value for DateAdded to be an explicit nil + +### UnsetDateAdded +`func (o *PatchedWritableAggregateRequest) UnsetDateAdded()` + +UnsetDateAdded ensures that no value is present for DateAdded, not even an explicit nil +### GetDescription + +`func (o *PatchedWritableAggregateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableAggregateRequest) 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 *PatchedWritableAggregateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableAggregateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *PatchedWritableAggregateRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableAggregateRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableAggregateRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableAggregateRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableAggregateRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableAggregateRequest) 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 *PatchedWritableAggregateRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableAggregateRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableAggregateRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableAggregateRequest) 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 *PatchedWritableAggregateRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableAggregateRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableAggregateRequest.md b/docs/PatchedWritableAggregateRequest.md index 41ef048227..3278caefcf 100644 --- a/docs/PatchedWritableAggregateRequest.md +++ b/docs/PatchedWritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ HasPrefix returns a boolean if a field has been set. ### GetRir -`func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest` +`func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -84,20 +84,20 @@ HasRir returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableCableRequest.md b/docs/PatchedWritableCableRequest.md index 431b4945f3..44d4d87be6 100644 --- a/docs/PatchedWritableCableRequest.md +++ b/docs/PatchedWritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**NullableCableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**NullableCableRequestLengthUnit**](CableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *PatchedWritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *PatchedWritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -62,6 +62,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritableCableRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritableCableRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetATerminations `func (o *PatchedWritableCableRequest) GetATerminations() []GenericObjectRequest` @@ -114,20 +124,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, 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 *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +149,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCableRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableCableRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +269,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *PatchedWritableCableRequest) GetLengthUnit() CableRequestLengthUnit` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *PatchedWritableCableRequest) SetLengthUnit(v CableRequestLengthUnit)` SetLengthUnit sets LengthUnit field to given value. @@ -282,6 +292,16 @@ SetLengthUnit sets LengthUnit field to given value. HasLengthUnit returns a boolean if a field has been set. +### SetLengthUnitNil + +`func (o *PatchedWritableCableRequest) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *PatchedWritableCableRequest) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *PatchedWritableCableRequest) GetDescription() string` diff --git a/docs/PatchedWritableCircuitGroupAssignmentRequest.md b/docs/PatchedWritableCircuitGroupAssignmentRequest.md new file mode 100644 index 0000000000..0b9ec9e427 --- /dev/null +++ b/docs/PatchedWritableCircuitGroupAssignmentRequest.md @@ -0,0 +1,170 @@ +# PatchedWritableCircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | [optional] +**MemberType** | Pointer to **string** | | [optional] +**MemberId** | Pointer to **int64** | | [optional] +**Priority** | Pointer to [**NullablePatchedWritableCircuitGroupAssignmentRequestPriority**](PatchedWritableCircuitGroupAssignmentRequestPriority.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewPatchedWritableCircuitGroupAssignmentRequest + +`func NewPatchedWritableCircuitGroupAssignmentRequest() *PatchedWritableCircuitGroupAssignmentRequest` + +NewPatchedWritableCircuitGroupAssignmentRequest instantiates a new PatchedWritableCircuitGroupAssignmentRequest 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 + +### NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults + +`func NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults() *PatchedWritableCircuitGroupAssignmentRequest` + +NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableCircuitGroupAssignmentRequest 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 + +### GetGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetMemberType + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberType() string` + +GetMemberType returns the MemberType field if non-nil, zero value otherwise. + +### GetMemberTypeOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberTypeOk() (*string, bool)` + +GetMemberTypeOk returns a tuple with the MemberType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberType + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetMemberType(v string)` + +SetMemberType sets MemberType field to given value. + +### HasMemberType + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasMemberType() bool` + +HasMemberType returns a boolean if a field has been set. + +### GetMemberId + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberId() int64` + +GetMemberId returns the MemberId field if non-nil, zero value otherwise. + +### GetMemberIdOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberIdOk() (*int64, bool)` + +GetMemberIdOk returns a tuple with the MemberId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberId + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetMemberId(v int64)` + +SetMemberId sets MemberId field to given value. + +### HasMemberId + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasMemberId() bool` + +HasMemberId returns a boolean if a field has been set. + +### GetPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PatchedWritableCircuitGroupAssignmentRequest) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) 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 *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) 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/PatchedWritableCircuitGroupAssignmentRequestPriority.md b/docs/PatchedWritableCircuitGroupAssignmentRequestPriority.md new file mode 100644 index 0000000000..2517131721 --- /dev/null +++ b/docs/PatchedWritableCircuitGroupAssignmentRequestPriority.md @@ -0,0 +1,19 @@ +# PatchedWritableCircuitGroupAssignmentRequestPriority + +## Enum + + +* `PRIMARY` (value: `"primary"`) + +* `SECONDARY` (value: `"secondary"`) + +* `TERTIARY` (value: `"tertiary"`) + +* `INACTIVE` (value: `"inactive"`) + +* `EMPTY` (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/PatchedWritableCircuitRequest.md b/docs/PatchedWritableCircuitRequest.md index 90bca5029f..89a830cc8e 100644 --- a/docs/PatchedWritableCircuitRequest.md +++ b/docs/PatchedWritableCircuitRequest.md @@ -5,18 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | Pointer to **string** | Unique circuit ID | [optional] -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | Pointer to [**CircuitTypeRequest**](CircuitTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | Pointer to [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | [optional] +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableCircuitRequestDistanceUnit**](CircuitRequestDistanceUnit.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods @@ -64,20 +67,20 @@ HasCid returns a boolean if a field has been set. ### GetProvider -`func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. @@ -89,20 +92,20 @@ HasProvider returns a boolean if a field has been set. ### GetProviderAccount -`func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -124,20 +127,20 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. @@ -149,20 +152,20 @@ HasType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, 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 *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -174,20 +177,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -337,6 +340,76 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetDistance + +`func (o *PatchedWritableCircuitRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *PatchedWritableCircuitRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *PatchedWritableCircuitRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *PatchedWritableCircuitRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *PatchedWritableCircuitRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *PatchedWritableCircuitRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *PatchedWritableCircuitRequest) GetDistanceUnit() CircuitRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *PatchedWritableCircuitRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *PatchedWritableCircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *PatchedWritableCircuitRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *PatchedWritableCircuitRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *PatchedWritableCircuitRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetComments `func (o *PatchedWritableCircuitRequest) GetComments() string` @@ -412,6 +485,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *PatchedWritableCircuitRequest) HasAssignments() bool` + +HasAssignments 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/PatchedWritableClusterRequest.md b/docs/PatchedWritableClusterRequest.md index 18ee4fc620..0e69fa40f4 100644 --- a/docs/PatchedWritableClusterRequest.md +++ b/docs/PatchedWritableClusterRequest.md @@ -5,11 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**ClusterTypeRequest**](ClusterTypeRequest.md) | | [optional] -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | Pointer to [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -61,20 +62,20 @@ HasName returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. @@ -86,20 +87,20 @@ HasType returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -121,20 +122,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, 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 *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -146,20 +147,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -179,41 +180,76 @@ HasTenant returns a boolean if a field has been set. `func (o *PatchedWritableClusterRequest) UnsetTenant()` UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetSite +### GetScopeType -`func (o *PatchedWritableClusterRequest) GetSite() SiteRequest` +`func (o *PatchedWritableClusterRequest) GetScopeType() string` -GetSite returns the Site field if non-nil, zero value otherwise. +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. -### GetSiteOk +### GetScopeTypeOk -`func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetScopeTypeOk() (*string, bool)` -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSite +### SetScopeType -`func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableClusterRequest) SetScopeType(v string)` -SetSite sets Site field to given value. +SetScopeType sets ScopeType field to given value. -### HasSite +### HasScopeType -`func (o *PatchedWritableClusterRequest) HasSite() bool` +`func (o *PatchedWritableClusterRequest) HasScopeType() bool` -HasSite returns a boolean if a field has been set. +HasScopeType returns a boolean if a field has been set. -### SetSiteNil +### SetScopeTypeNil -`func (o *PatchedWritableClusterRequest) SetSiteNil(b bool)` +`func (o *PatchedWritableClusterRequest) SetScopeTypeNil(b bool)` - SetSiteNil sets the value for Site to be an explicit nil + SetScopeTypeNil sets the value for ScopeType to be an explicit nil -### UnsetSite -`func (o *PatchedWritableClusterRequest) UnsetSite()` +### UnsetScopeType +`func (o *PatchedWritableClusterRequest) UnsetScopeType()` -UnsetSite ensures that no value is present for Site, not even an explicit nil +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *PatchedWritableClusterRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *PatchedWritableClusterRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *PatchedWritableClusterRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *PatchedWritableClusterRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *PatchedWritableClusterRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *PatchedWritableClusterRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetDescription `func (o *PatchedWritableClusterRequest) GetDescription() string` diff --git a/docs/PatchedWritableConsolePortRequest.md b/docs/PatchedWritableConsolePortRequest.md index 52a08ee909..95cbb74b3f 100644 --- a/docs/PatchedWritableConsolePortRequest.md +++ b/docs/PatchedWritableConsolePortRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] **Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -169,6 +169,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritableConsolePortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritableConsolePortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetSpeed `func (o *PatchedWritableConsolePortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed` diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md index d9dbf04aa4..ab7c1772a1 100644 --- a/docs/PatchedWritableConsolePortTemplateRequest.md +++ b/docs/PatchedWritableConsolePortTemplateRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortTemplateRequestType**](PatchedWritableConsolePortTemplateRequestType.md) | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -152,20 +152,20 @@ HasLabel returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue` +`func (o *PatchedWritableConsolePortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType)` SetType sets Type field to given value. @@ -175,6 +175,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritableConsolePortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritableConsolePortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetDescription `func (o *PatchedWritableConsolePortTemplateRequest) GetDescription() string` diff --git a/docs/PatchedWritableConsolePortTemplateRequestType.md b/docs/PatchedWritableConsolePortTemplateRequestType.md new file mode 100644 index 0000000000..e51b4d859f --- /dev/null +++ b/docs/PatchedWritableConsolePortTemplateRequestType.md @@ -0,0 +1,41 @@ +# PatchedWritableConsolePortTemplateRequestType + +## Enum + + +* `DE_9` (value: `"de-9"`) + +* `DB_25` (value: `"db-25"`) + +* `RJ_11` (value: `"rj-11"`) + +* `RJ_12` (value: `"rj-12"`) + +* `RJ_45` (value: `"rj-45"`) + +* `MINI_DIN_8` (value: `"mini-din-8"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `OTHER` (value: `"other"`) + +* `EMPTY` (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/PatchedWritableConsoleServerPortRequest.md b/docs/PatchedWritableConsoleServerPortRequest.md index 05b70f9d54..1b427a0969 100644 --- a/docs/PatchedWritableConsoleServerPortRequest.md +++ b/docs/PatchedWritableConsoleServerPortRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] **Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -169,6 +169,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritableConsoleServerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritableConsoleServerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetSpeed `func (o *PatchedWritableConsoleServerPortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed` diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md index ef7c3aa0ee..c7ba898e21 100644 --- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md +++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortTemplateRequestType**](PatchedWritableConsolePortTemplateRequestType.md) | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -152,20 +152,20 @@ HasLabel returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType)` SetType sets Type field to given value. @@ -175,6 +175,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetDescription `func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDescription() string` diff --git a/docs/PatchedWritableContactAssignmentRequest 2.md b/docs/PatchedWritableContactAssignmentRequest 2.md new file mode 100644 index 0000000000..e2b7dc360c --- /dev/null +++ b/docs/PatchedWritableContactAssignmentRequest 2.md @@ -0,0 +1,222 @@ +# PatchedWritableContactAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**Contact** | Pointer to [**ContactRequest**](ContactRequest.md) | | [optional] +**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableContactAssignmentRequest + +`func NewPatchedWritableContactAssignmentRequest() *PatchedWritableContactAssignmentRequest` + +NewPatchedWritableContactAssignmentRequest instantiates a new PatchedWritableContactAssignmentRequest 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 + +### NewPatchedWritableContactAssignmentRequestWithDefaults + +`func NewPatchedWritableContactAssignmentRequestWithDefaults() *PatchedWritableContactAssignmentRequest` + +NewPatchedWritableContactAssignmentRequestWithDefaults instantiates a new PatchedWritableContactAssignmentRequest 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 *PatchedWritableContactAssignmentRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedWritableContactAssignmentRequest) 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 *PatchedWritableContactAssignmentRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedWritableContactAssignmentRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedWritableContactAssignmentRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedWritableContactAssignmentRequest) 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 *PatchedWritableContactAssignmentRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedWritableContactAssignmentRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetContact + +`func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest` + +GetContact returns the Contact field if non-nil, zero value otherwise. + +### GetContactOk + +`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` + +GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContact + +`func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest)` + +SetContact sets Contact field to given value. + +### HasContact + +`func (o *PatchedWritableContactAssignmentRequest) HasContact() bool` + +HasContact returns a boolean if a field has been set. + +### GetRole + +`func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, 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 *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *PatchedWritableContactAssignmentRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *PatchedWritableContactAssignmentRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *PatchedWritableContactAssignmentRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetPriority + +`func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool` + +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. + +### GetCustomFields + +`func (o *PatchedWritableContactAssignmentRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableContactAssignmentRequest) 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 *PatchedWritableContactAssignmentRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableContactAssignmentRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md index e2b7dc360c..fba4078182 100644 --- a/docs/PatchedWritableContactAssignmentRequest.md +++ b/docs/PatchedWritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**Contact** | Pointer to [**ContactRequest**](ContactRequest.md) | | [optional] -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | Pointer to [**BriefContactRequest**](BriefContactRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**NullablePatchedWritableCircuitGroupAssignmentRequestPriority**](PatchedWritableCircuitGroupAssignmentRequestPriority.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasObjectId returns a boolean if a field has been set. ### GetContact -`func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. @@ -108,20 +108,20 @@ HasContact returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, 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 *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -143,20 +143,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *PatchedWritableContactAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority)` SetPriority sets Priority field to given value. @@ -166,6 +166,16 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### SetPriorityNil + +`func (o *PatchedWritableContactAssignmentRequest) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PatchedWritableContactAssignmentRequest) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetTags `func (o *PatchedWritableContactAssignmentRequest) GetTags() []NestedTagRequest` diff --git a/docs/PatchedWritableCustomFieldChoiceSetRequest.md b/docs/PatchedWritableCustomFieldChoiceSetRequest.md index 110ca2b05c..c02d2ee946 100644 --- a/docs/PatchedWritableCustomFieldChoiceSetRequest.md +++ b/docs/PatchedWritableCustomFieldChoiceSetRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**BaseChoices** | Pointer to [**PatchedWritableCustomFieldChoiceSetRequestBaseChoices**](PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md) | | [optional] +**BaseChoices** | Pointer to [**NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices**](PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md) | | [optional] **ExtraChoices** | Pointer to **[][]interface{}** | | [optional] **OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] @@ -104,6 +104,16 @@ SetBaseChoices sets BaseChoices field to given value. HasBaseChoices returns a boolean if a field has been set. +### SetBaseChoicesNil + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoicesNil(b bool)` + + SetBaseChoicesNil sets the value for BaseChoices to be an explicit nil + +### UnsetBaseChoices +`func (o *PatchedWritableCustomFieldChoiceSetRequest) UnsetBaseChoices()` + +UnsetBaseChoices ensures that no value is present for BaseChoices, not even an explicit nil ### GetExtraChoices `func (o *PatchedWritableCustomFieldChoiceSetRequest) GetExtraChoices() [][]interface{}` diff --git a/docs/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md index 21645eb48d..036786d586 100644 --- a/docs/PatchedWritableCustomFieldRequest.md +++ b/docs/PatchedWritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **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] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned 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 [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (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 **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | 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] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -254,6 +256,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *PatchedWritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *PatchedWritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32` @@ -414,6 +441,41 @@ HasDefault returns a boolean if a field has been set. `func (o *PatchedWritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *PatchedWritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *PatchedWritableCustomFieldRequest) GetWeight() int32` @@ -536,20 +598,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` 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. ### SetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/PatchedWritableDataSourceRequest.md b/docs/PatchedWritableDataSourceRequest.md index 89182786d9..144dda6f37 100644 --- a/docs/PatchedWritableDataSourceRequest.md +++ b/docs/PatchedWritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -158,31 +158,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *PatchedWritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *PatchedWritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *PatchedWritableDataSourceRequest) GetParameters() interface{}` @@ -243,6 +218,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *PatchedWritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/PatchedWritableDeviceTypeRequest.md b/docs/PatchedWritableDeviceTypeRequest.md index 330f80fe3e..e34c40b663 100644 --- a/docs/PatchedWritableDeviceTypeRequest.md +++ b/docs/PatchedWritableDeviceTypeRequest.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] **UHeight** | Pointer to **float64** | | [optional] [default to 1.0] **ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] **IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] -**SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] -**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] +**SubdeviceRole** | Pointer to [**NullableParentChildStatus1**](ParentChildStatus1.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -44,20 +44,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -69,20 +69,20 @@ HasManufacturer returns a boolean if a field has been set. ### GetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -277,22 +277,32 @@ SetSubdeviceRole sets SubdeviceRole field to given value. HasSubdeviceRole returns a boolean if a field has been set. +### SetSubdeviceRoleNil + +`func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *PatchedWritableDeviceTypeRequest) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil ### GetAirflow -`func (o *PatchedWritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue` +`func (o *PatchedWritableDeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow` GetAirflow returns the Airflow field if non-nil, zero value otherwise. ### GetAirflowOk -`func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAirflow -`func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue)` +`func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)` SetAirflow sets Airflow field to given value. @@ -302,6 +312,16 @@ SetAirflow sets Airflow field to given value. HasAirflow returns a boolean if a field has been set. +### SetAirflowNil + +`func (o *PatchedWritableDeviceTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *PatchedWritableDeviceTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetWeight `func (o *PatchedWritableDeviceTypeRequest) GetWeight() float64` @@ -339,20 +359,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -362,6 +382,16 @@ SetWeightUnit sets WeightUnit field to given value. HasWeightUnit returns a boolean if a field has been set. +### SetWeightUnitNil + +`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *PatchedWritableDeviceTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetFrontImage `func (o *PatchedWritableDeviceTypeRequest) GetFrontImage() *os.File` diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md index 2d049b1033..9178831f3c 100644 --- a/docs/PatchedWritableDeviceWithConfigContextRequest.md +++ b/docs/PatchedWritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**Role** | Pointer to [**DeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**Role** | Pointer to [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] -**Face** | Pointer to [**RackFace1**](RackFace1.md) | | [optional] +**Face** | Pointer to [**NullableRackFace1**](RackFace1.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] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] -**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.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 [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **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] @@ -90,20 +90,20 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -115,20 +115,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -140,20 +140,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -175,20 +175,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -270,20 +270,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -295,20 +295,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -330,20 +330,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -423,6 +423,16 @@ SetFace sets Face field to given value. HasFace returns a boolean if a field has been set. +### SetFaceNil + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetFaceNil(b bool)` + + SetFaceNil sets the value for Face to be an explicit nil + +### UnsetFace +`func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetFace()` + +UnsetFace ensures that no value is present for Face, not even an explicit nil ### GetLatitude `func (o *PatchedWritableDeviceWithConfigContextRequest) GetLatitude() float64` @@ -520,20 +530,20 @@ HasStatus returns a boolean if a field has been set. ### GetAirflow -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() DeviceTypeRequestAirflow` GetAirflow returns the Airflow field if non-nil, zero value otherwise. ### GetAirflowOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAirflow -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceTypeRequestAirflow)` SetAirflow sets Airflow field to given value. @@ -543,22 +553,32 @@ SetAirflow sets Airflow field to given value. HasAirflow returns a boolean if a field has been set. +### SetAirflowNil + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -580,20 +600,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -615,20 +635,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 ### GetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, 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 IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -650,20 +670,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -685,20 +705,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -840,20 +860,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 ConfigTemplateRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableEventRuleRequest 2.md b/docs/PatchedWritableEventRuleRequest 2.md new file mode 100644 index 0000000000..b1539fb42e --- /dev/null +++ b/docs/PatchedWritableEventRuleRequest 2.md @@ -0,0 +1,440 @@ +# PatchedWritableEventRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectTypes** | Pointer to **[]string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] +**ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] +**ActionObjectType** | Pointer to **string** | | [optional] +**ActionObjectId** | Pointer to **NullableInt64** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewPatchedWritableEventRuleRequest + +`func NewPatchedWritableEventRuleRequest() *PatchedWritableEventRuleRequest` + +NewPatchedWritableEventRuleRequest instantiates a new PatchedWritableEventRuleRequest 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 + +### NewPatchedWritableEventRuleRequestWithDefaults + +`func NewPatchedWritableEventRuleRequestWithDefaults() *PatchedWritableEventRuleRequest` + +NewPatchedWritableEventRuleRequestWithDefaults instantiates a new PatchedWritableEventRuleRequest 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 + +### GetObjectTypes + +`func (o *PatchedWritableEventRuleRequest) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + +### HasObjectTypes + +`func (o *PatchedWritableEventRuleRequest) HasObjectTypes() bool` + +HasObjectTypes returns a boolean if a field has been set. + +### GetName + +`func (o *PatchedWritableEventRuleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedWritableEventRuleRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetTypeCreate + +`func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool` + +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. + +### GetTypeCreateOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` + +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeCreate + +`func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool)` + +SetTypeCreate sets TypeCreate field to given value. + +### HasTypeCreate + +`func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool` + +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. + +### GetTypeJobStart + +`func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool` + +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. + +### GetTypeJobStartOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` + +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobStart + +`func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool)` + +SetTypeJobStart sets TypeJobStart field to given value. + +### HasTypeJobStart + +`func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool` + +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + +### GetEnabled + +`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConditions + +`func (o *PatchedWritableEventRuleRequest) GetConditions() interface{}` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *PatchedWritableEventRuleRequest) GetConditionsOk() (*interface{}, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *PatchedWritableEventRuleRequest) SetConditions(v interface{})` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *PatchedWritableEventRuleRequest) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### SetConditionsNil + +`func (o *PatchedWritableEventRuleRequest) SetConditionsNil(b bool)` + + SetConditionsNil sets the value for Conditions to be an explicit nil + +### UnsetConditions +`func (o *PatchedWritableEventRuleRequest) UnsetConditions()` + +UnsetConditions ensures that no value is present for Conditions, not even an explicit nil +### GetActionType + +`func (o *PatchedWritableEventRuleRequest) GetActionType() EventRuleActionTypeValue` + +GetActionType returns the ActionType field if non-nil, zero value otherwise. + +### GetActionTypeOk + +`func (o *PatchedWritableEventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool)` + +GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionType + +`func (o *PatchedWritableEventRuleRequest) SetActionType(v EventRuleActionTypeValue)` + +SetActionType sets ActionType field to given value. + +### HasActionType + +`func (o *PatchedWritableEventRuleRequest) HasActionType() bool` + +HasActionType returns a boolean if a field has been set. + +### GetActionObjectType + +`func (o *PatchedWritableEventRuleRequest) GetActionObjectType() string` + +GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise. + +### GetActionObjectTypeOk + +`func (o *PatchedWritableEventRuleRequest) GetActionObjectTypeOk() (*string, bool)` + +GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectType + +`func (o *PatchedWritableEventRuleRequest) SetActionObjectType(v string)` + +SetActionObjectType sets ActionObjectType field to given value. + +### HasActionObjectType + +`func (o *PatchedWritableEventRuleRequest) HasActionObjectType() bool` + +HasActionObjectType returns a boolean if a field has been set. + +### GetActionObjectId + +`func (o *PatchedWritableEventRuleRequest) GetActionObjectId() int64` + +GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise. + +### GetActionObjectIdOk + +`func (o *PatchedWritableEventRuleRequest) GetActionObjectIdOk() (*int64, bool)` + +GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectId + +`func (o *PatchedWritableEventRuleRequest) SetActionObjectId(v int64)` + +SetActionObjectId sets ActionObjectId field to given value. + +### HasActionObjectId + +`func (o *PatchedWritableEventRuleRequest) HasActionObjectId() bool` + +HasActionObjectId returns a boolean if a field has been set. + +### SetActionObjectIdNil + +`func (o *PatchedWritableEventRuleRequest) SetActionObjectIdNil(b bool)` + + SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil + +### UnsetActionObjectId +`func (o *PatchedWritableEventRuleRequest) UnsetActionObjectId()` + +UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil +### GetDescription + +`func (o *PatchedWritableEventRuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableEventRuleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableEventRuleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableEventRuleRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableEventRuleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableEventRuleRequest) 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 *PatchedWritableEventRuleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableEventRuleRequest) 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/PatchedWritableEventRuleRequest.md b/docs/PatchedWritableEventRuleRequest.md index b1539fb42e..eced560e58 100644 --- a/docs/PatchedWritableEventRuleRequest.md +++ b/docs/PatchedWritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | Pointer to **[]string** | | [optional] **Name** | Pointer to **string** | | [optional] -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | Pointer to [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | [optional] **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | Pointer to **string** | | [optional] @@ -89,155 +85,55 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. -### GetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd +### GetEnabled -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. +GetEnabled returns the Enabled field if non-nil, zero value otherwise. -### GetTypeJobEndOk +### GetEnabledOk -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetTypeJobEnd +### SetEnabled -`func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` -SetTypeJobEnd sets TypeJobEnd field to given value. +SetEnabled sets Enabled field to given value. -### HasTypeJobEnd +### HasEnabled -`func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` -HasTypeJobEnd returns a boolean if a field has been set. +HasEnabled returns a boolean if a field has been set. -### GetEnabled +### GetEventTypes -`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` -GetEnabled returns the Enabled field if non-nil, zero value otherwise. +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. -### GetEnabledOk +### GetEventTypesOk -`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEnabled +### SetEventTypes -`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` -SetEnabled sets Enabled field to given value. +SetEventTypes sets EventTypes field to given value. -### HasEnabled +### HasEventTypes -`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool` -HasEnabled returns a boolean if a field has been set. +HasEventTypes returns a boolean if a field has been set. ### GetConditions diff --git a/docs/PatchedWritableFrontPortRequest.md b/docs/PatchedWritableFrontPortRequest.md index 1ad15f568d..d3a2b5879c 100644 --- a/docs/PatchedWritableFrontPortRequest.md +++ b/docs/PatchedWritableFrontPortRequest.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] **Color** | Pointer to **string** | | [optional] **RearPort** | Pointer to **int32** | | [optional] -**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] +**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -63,20 +63,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md index 2b26765814..60aeddfa70 100644 --- a/docs/PatchedWritableFrontPortTemplateRequest.md +++ b/docs/PatchedWritableFrontPortTemplateRequest.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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 [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] **Color** | Pointer to **string** | | [optional] -**RearPort** | Pointer to [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | [optional] -**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] +**RearPort** | Pointer to [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | [optional] +**RearPortPosition** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -205,20 +205,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/PatchedWritableIKEPolicyRequest.md b/docs/PatchedWritableIKEPolicyRequest.md index 52244bba21..5e571a7121 100644 --- a/docs/PatchedWritableIKEPolicyRequest.md +++ b/docs/PatchedWritableIKEPolicyRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Version** | Pointer to [**PatchedWritableIKEPolicyRequestVersion**](PatchedWritableIKEPolicyRequestVersion.md) | | [optional] -**Mode** | Pointer to [**PatchedWritableIKEPolicyRequestMode**](PatchedWritableIKEPolicyRequestMode.md) | | [optional] +**Mode** | Pointer to [**NullablePatchedWritableIKEPolicyRequestMode**](PatchedWritableIKEPolicyRequestMode.md) | | [optional] **Proposals** | Pointer to **[]int32** | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -133,6 +133,16 @@ SetMode sets Mode field to given value. HasMode returns a boolean if a field has been set. +### SetModeNil + +`func (o *PatchedWritableIKEPolicyRequest) SetModeNil(b bool)` + + SetModeNil sets the value for Mode to be an explicit nil + +### UnsetMode +`func (o *PatchedWritableIKEPolicyRequest) UnsetMode()` + +UnsetMode ensures that no value is present for Mode, not even an explicit nil ### GetProposals `func (o *PatchedWritableIKEPolicyRequest) GetProposals() []int32` diff --git a/docs/PatchedWritableIKEProposalRequest.md b/docs/PatchedWritableIKEProposalRequest.md index 1cffd162de..ecfbb064c8 100644 --- a/docs/PatchedWritableIKEProposalRequest.md +++ b/docs/PatchedWritableIKEProposalRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | Pointer to [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | [optional] **EncryptionAlgorithm** | Pointer to [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | [optional] -**AuthenticationAlgorithm** | Pointer to [**PatchedWritableIKEProposalRequestAuthenticationAlgorithm**](PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm**](PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md) | | [optional] **Group** | Pointer to [**PatchedWritableIKEProposalRequestGroup**](PatchedWritableIKEProposalRequestGroup.md) | | [optional] **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -159,6 +159,16 @@ SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. HasAuthenticationAlgorithm returns a boolean if a field has been set. +### SetAuthenticationAlgorithmNil + +`func (o *PatchedWritableIKEProposalRequest) SetAuthenticationAlgorithmNil(b bool)` + + SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil + +### UnsetAuthenticationAlgorithm +`func (o *PatchedWritableIKEProposalRequest) UnsetAuthenticationAlgorithm()` + +UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil ### GetGroup `func (o *PatchedWritableIKEProposalRequest) GetGroup() PatchedWritableIKEProposalRequestGroup` diff --git a/docs/PatchedWritableIKEProposalRequestAuthenticationAlgorithm 2.md b/docs/PatchedWritableIKEProposalRequestAuthenticationAlgorithm 2.md new file mode 100644 index 0000000000..87eacaf57a --- /dev/null +++ b/docs/PatchedWritableIKEProposalRequestAuthenticationAlgorithm 2.md @@ -0,0 +1,21 @@ +# PatchedWritableIKEProposalRequestAuthenticationAlgorithm + +## Enum + + +* `HMAC_SHA1` (value: `"hmac-sha1"`) + +* `HMAC_SHA256` (value: `"hmac-sha256"`) + +* `HMAC_SHA384` (value: `"hmac-sha384"`) + +* `HMAC_SHA512` (value: `"hmac-sha512"`) + +* `HMAC_MD5` (value: `"hmac-md5"`) + +* `EMPTY` (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/PatchedWritableIPAddressRequest.md b/docs/PatchedWritableIPAddressRequest.md index 283f8e6e42..1fd3eb6cfd 100644 --- a/docs/PatchedWritableIPAddressRequest.md +++ b/docs/PatchedWritableIPAddressRequest.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] -**Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] +**Role** | Pointer to [**NullablePatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] **AssignedObjectId** | Pointer to **NullableInt64** | | [optional] **NatInside** | Pointer to **NullableInt32** | The IP for which this address is the \"outside\" IP | [optional] @@ -64,20 +64,20 @@ HasAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -99,20 +99,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -182,6 +182,16 @@ SetRole sets Role field to given value. HasRole returns a boolean if a field has been set. +### SetRoleNil + +`func (o *PatchedWritableIPAddressRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *PatchedWritableIPAddressRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetAssignedObjectType `func (o *PatchedWritableIPAddressRequest) GetAssignedObjectType() string` diff --git a/docs/PatchedWritableIPRangeRequest.md b/docs/PatchedWritableIPRangeRequest.md index f38f938337..3179cd2c06 100644 --- a/docs/PatchedWritableIPRangeRequest.md +++ b/docs/PatchedWritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | Pointer to **string** | | [optional] **EndAddress** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -87,20 +87,20 @@ HasEndAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -122,20 +122,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -182,20 +182,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest` +`func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, 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 *PatchedWritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableIPSecPolicyRequestPfsGroup 2.md b/docs/PatchedWritableIPSecPolicyRequestPfsGroup 2.md new file mode 100644 index 0000000000..02ca7f00ea --- /dev/null +++ b/docs/PatchedWritableIPSecPolicyRequestPfsGroup 2.md @@ -0,0 +1,57 @@ +# PatchedWritableIPSecPolicyRequestPfsGroup + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_5` (value: `5`) + +* `_14` (value: `14`) + +* `_15` (value: `15`) + +* `_16` (value: `16`) + +* `_17` (value: `17`) + +* `_18` (value: `18`) + +* `_19` (value: `19`) + +* `_20` (value: `20`) + +* `_21` (value: `21`) + +* `_22` (value: `22`) + +* `_23` (value: `23`) + +* `_24` (value: `24`) + +* `_25` (value: `25`) + +* `_26` (value: `26`) + +* `_27` (value: `27`) + +* `_28` (value: `28`) + +* `_29` (value: `29`) + +* `_30` (value: `30`) + +* `_31` (value: `31`) + +* `_32` (value: `32`) + +* `_33` (value: `33`) + +* `_34` (value: `34`) + + +[[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/PatchedWritableIPSecProfileRequest.md b/docs/PatchedWritableIPSecProfileRequest.md index 8692a34abc..8cb953b36d 100644 --- a/docs/PatchedWritableIPSecProfileRequest.md +++ b/docs/PatchedWritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | [optional] -**IkePolicy** | Pointer to [**IKEPolicyRequest**](IKEPolicyRequest.md) | | [optional] -**IpsecPolicy** | Pointer to [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | [optional] +**IkePolicy** | Pointer to [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | [optional] +**IpsecPolicy** | Pointer to [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -109,20 +109,20 @@ HasMode returns a boolean if a field has been set. ### GetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. @@ -134,20 +134,20 @@ HasIkePolicy returns a boolean if a field has been set. ### GetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/PatchedWritableIPSecProposalRequest.md b/docs/PatchedWritableIPSecProposalRequest.md index cb3aa4ad14..e59118bdc6 100644 --- a/docs/PatchedWritableIPSecProposalRequest.md +++ b/docs/PatchedWritableIPSecProposalRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**EncryptionAlgorithm** | Pointer to [**Encryption**](Encryption.md) | | [optional] -**AuthenticationAlgorithm** | Pointer to [**Authentication**](Authentication.md) | | [optional] +**EncryptionAlgorithm** | Pointer to [**NullableEncryption**](Encryption.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**NullableAuthentication**](Authentication.md) | | [optional] **SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional] **SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -108,6 +108,16 @@ SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value. HasEncryptionAlgorithm returns a boolean if a field has been set. +### SetEncryptionAlgorithmNil + +`func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithmNil(b bool)` + + SetEncryptionAlgorithmNil sets the value for EncryptionAlgorithm to be an explicit nil + +### UnsetEncryptionAlgorithm +`func (o *PatchedWritableIPSecProposalRequest) UnsetEncryptionAlgorithm()` + +UnsetEncryptionAlgorithm ensures that no value is present for EncryptionAlgorithm, not even an explicit nil ### GetAuthenticationAlgorithm `func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication` @@ -133,6 +143,16 @@ SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. HasAuthenticationAlgorithm returns a boolean if a field has been set. +### SetAuthenticationAlgorithmNil + +`func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithmNil(b bool)` + + SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil + +### UnsetAuthenticationAlgorithm +`func (o *PatchedWritableIPSecProposalRequest) UnsetAuthenticationAlgorithm()` + +UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil ### GetSaLifetimeSeconds `func (o *PatchedWritableIPSecProposalRequest) GetSaLifetimeSeconds() int32` diff --git a/docs/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md index be3d47b6da..e9ad6b86dc 100644 --- a/docs/PatchedWritableInterfaceRequest.md +++ b/docs/PatchedWritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -15,25 +15,27 @@ Name | Type | Description | Notes **Bridge** | Pointer to **NullableInt32** | | [optional] **Lag** | Pointer to **NullableInt32** | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddressRequest**](BriefMACAddressRequest.md) | | [optional] **Speed** | Pointer to **NullableInt32** | | [optional] **Duplex** | Pointer to [**NullableInterfaceRequestDuplex**](InterfaceRequestDuplex.md) | | [optional] **Wwn** | Pointer to **NullableString** | | [optional] **MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional] **Description** | Pointer to **string** | | [optional] -**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] -**RfChannel** | Pointer to [**WirelessChannel**](WirelessChannel.md) | | [optional] -**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] -**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] +**Mode** | Pointer to [**NullablePatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] +**RfRole** | Pointer to [**NullableWirelessRole**](WirelessRole.md) | | [optional] +**RfChannel** | Pointer to [**NullableWirelessChannel**](WirelessChannel.md) | | [optional] +**PoeMode** | Pointer to [**NullableInterfaceTemplateRequestPoeMode**](InterfaceTemplateRequestPoeMode.md) | | [optional] +**PoeType** | Pointer to [**NullableInterfaceTemplateRequestPoeType**](InterfaceTemplateRequestPoeType.md) | | [optional] **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] +**QinqSvlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicyRequest**](BriefVLANTranslationPolicyRequest.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,20 +60,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -108,20 +110,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -381,41 +383,41 @@ HasMtu returns a boolean if a field has been set. `func (o *PatchedWritableInterfaceRequest) UnsetMtu()` UnsetMtu ensures that no value is present for Mtu, not even an explicit nil -### GetMacAddress +### GetPrimaryMacAddress -`func (o *PatchedWritableInterfaceRequest) GetMacAddress() string` +`func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest` -GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. -### GetMacAddressOk +### GetPrimaryMacAddressOk -`func (o *PatchedWritableInterfaceRequest) GetMacAddressOk() (*string, bool)` +`func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool)` -GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMacAddress +### SetPrimaryMacAddress -`func (o *PatchedWritableInterfaceRequest) SetMacAddress(v string)` +`func (o *PatchedWritableInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest)` -SetMacAddress sets MacAddress field to given value. +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. -### HasMacAddress +### HasPrimaryMacAddress -`func (o *PatchedWritableInterfaceRequest) HasMacAddress() bool` +`func (o *PatchedWritableInterfaceRequest) HasPrimaryMacAddress() bool` -HasMacAddress returns a boolean if a field has been set. +HasPrimaryMacAddress returns a boolean if a field has been set. -### SetMacAddressNil +### SetPrimaryMacAddressNil -`func (o *PatchedWritableInterfaceRequest) SetMacAddressNil(b bool)` +`func (o *PatchedWritableInterfaceRequest) SetPrimaryMacAddressNil(b bool)` - SetMacAddressNil sets the value for MacAddress to be an explicit nil + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil -### UnsetMacAddress -`func (o *PatchedWritableInterfaceRequest) UnsetMacAddress()` +### UnsetPrimaryMacAddress +`func (o *PatchedWritableInterfaceRequest) UnsetPrimaryMacAddress()` -UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil ### GetSpeed `func (o *PatchedWritableInterfaceRequest) GetSpeed() int32` @@ -596,6 +598,16 @@ SetMode sets Mode field to given value. HasMode returns a boolean if a field has been set. +### SetModeNil + +`func (o *PatchedWritableInterfaceRequest) SetModeNil(b bool)` + + SetModeNil sets the value for Mode to be an explicit nil + +### UnsetMode +`func (o *PatchedWritableInterfaceRequest) UnsetMode()` + +UnsetMode ensures that no value is present for Mode, not even an explicit nil ### GetRfRole `func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole` @@ -621,6 +633,16 @@ SetRfRole sets RfRole field to given value. HasRfRole returns a boolean if a field has been set. +### SetRfRoleNil + +`func (o *PatchedWritableInterfaceRequest) SetRfRoleNil(b bool)` + + SetRfRoleNil sets the value for RfRole to be an explicit nil + +### UnsetRfRole +`func (o *PatchedWritableInterfaceRequest) UnsetRfRole()` + +UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil ### GetRfChannel `func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel` @@ -646,22 +668,32 @@ SetRfChannel sets RfChannel field to given value. HasRfChannel returns a boolean if a field has been set. +### SetRfChannelNil + +`func (o *PatchedWritableInterfaceRequest) SetRfChannelNil(b bool)` + + SetRfChannelNil sets the value for RfChannel to be an explicit nil + +### UnsetRfChannel +`func (o *PatchedWritableInterfaceRequest) UnsetRfChannel()` + +UnsetRfChannel ensures that no value is present for RfChannel, not even an explicit nil ### GetPoeMode -`func (o *PatchedWritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue` +`func (o *PatchedWritableInterfaceRequest) GetPoeMode() InterfaceTemplateRequestPoeMode` GetPoeMode returns the PoeMode field if non-nil, zero value otherwise. ### GetPoeModeOk -`func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)` +`func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool)` GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeMode -`func (o *PatchedWritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue)` +`func (o *PatchedWritableInterfaceRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode)` SetPoeMode sets PoeMode field to given value. @@ -671,22 +703,32 @@ SetPoeMode sets PoeMode field to given value. HasPoeMode returns a boolean if a field has been set. +### SetPoeModeNil + +`func (o *PatchedWritableInterfaceRequest) SetPoeModeNil(b bool)` + + SetPoeModeNil sets the value for PoeMode to be an explicit nil + +### UnsetPoeMode +`func (o *PatchedWritableInterfaceRequest) UnsetPoeMode()` + +UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil ### GetPoeType -`func (o *PatchedWritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue` +`func (o *PatchedWritableInterfaceRequest) GetPoeType() InterfaceTemplateRequestPoeType` GetPoeType returns the PoeType field if non-nil, zero value otherwise. ### GetPoeTypeOk -`func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)` +`func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool)` GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeType -`func (o *PatchedWritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue)` +`func (o *PatchedWritableInterfaceRequest) SetPoeType(v InterfaceTemplateRequestPoeType)` SetPoeType sets PoeType field to given value. @@ -696,6 +738,16 @@ SetPoeType sets PoeType field to given value. HasPoeType returns a boolean if a field has been set. +### SetPoeTypeNil + +`func (o *PatchedWritableInterfaceRequest) SetPoeTypeNil(b bool)` + + SetPoeTypeNil sets the value for PoeType to be an explicit nil + +### UnsetPoeType +`func (o *PatchedWritableInterfaceRequest) UnsetPoeType()` + +UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil ### GetRfChannelFrequency `func (o *PatchedWritableInterfaceRequest) GetRfChannelFrequency() float64` @@ -803,20 +855,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -861,6 +913,76 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *PatchedWritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *PatchedWritableInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *PatchedWritableInterfaceRequest) SetQinqSvlan(v BriefVLANRequest)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *PatchedWritableInterfaceRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *PatchedWritableInterfaceRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *PatchedWritableInterfaceRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *PatchedWritableInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *PatchedWritableInterfaceRequest) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *PatchedWritableInterfaceRequest) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *PatchedWritableInterfaceRequest) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetMarkConnected `func (o *PatchedWritableInterfaceRequest) GetMarkConnected() bool` @@ -913,20 +1035,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableInterfaceRequestMode.md b/docs/PatchedWritableInterfaceRequestMode.md index 8a23d52568..2943339abb 100644 --- a/docs/PatchedWritableInterfaceRequestMode.md +++ b/docs/PatchedWritableInterfaceRequestMode.md @@ -9,6 +9,8 @@ * `TAGGED_ALL` (value: `"tagged-all"`) +* `Q_IN_Q` (value: `"q-in-q"`) + * `EMPTY` (value: `""`) diff --git a/docs/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md index dce5b9c25e..caefbe24f1 100644 --- a/docs/PatchedWritableInterfaceTemplateRequest.md +++ b/docs/PatchedWritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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 [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MgmtOnly** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] -**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] -**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] +**PoeMode** | Pointer to [**NullableInterfaceTemplateRequestPoeMode**](InterfaceTemplateRequestPoeMode.md) | | [optional] +**PoeType** | Pointer to [**NullableInterfaceTemplateRequestPoeType**](InterfaceTemplateRequestPoeType.md) | | [optional] +**RfRole** | Pointer to [**NullableWirelessRole**](WirelessRole.md) | | [optional] ## Methods @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -293,20 +293,20 @@ HasBridge returns a boolean if a field has been set. UnsetBridge ensures that no value is present for Bridge, not even an explicit nil ### GetPoeMode -`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue` +`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() InterfaceTemplateRequestPoeMode` GetPoeMode returns the PoeMode field if non-nil, zero value otherwise. ### GetPoeModeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool)` GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeMode -`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode)` SetPoeMode sets PoeMode field to given value. @@ -316,22 +316,32 @@ SetPoeMode sets PoeMode field to given value. HasPoeMode returns a boolean if a field has been set. +### SetPoeModeNil + +`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeModeNil(b bool)` + + SetPoeModeNil sets the value for PoeMode to be an explicit nil + +### UnsetPoeMode +`func (o *PatchedWritableInterfaceTemplateRequest) UnsetPoeMode()` + +UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil ### GetPoeType -`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue` +`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() InterfaceTemplateRequestPoeType` GetPoeType returns the PoeType field if non-nil, zero value otherwise. ### GetPoeTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool)` GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeType -`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType)` SetPoeType sets PoeType field to given value. @@ -341,6 +351,16 @@ SetPoeType sets PoeType field to given value. HasPoeType returns a boolean if a field has been set. +### SetPoeTypeNil + +`func (o *PatchedWritableInterfaceTemplateRequest) SetPoeTypeNil(b bool)` + + SetPoeTypeNil sets the value for PoeType to be an explicit nil + +### UnsetPoeType +`func (o *PatchedWritableInterfaceTemplateRequest) UnsetPoeType()` + +UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil ### GetRfRole `func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole` @@ -366,6 +386,16 @@ SetRfRole sets RfRole field to given value. HasRfRole returns a boolean if a field has been set. +### SetRfRoleNil + +`func (o *PatchedWritableInterfaceTemplateRequest) SetRfRoleNil(b bool)` + + SetRfRoleNil sets the value for RfRole to be an explicit nil + +### UnsetRfRole +`func (o *PatchedWritableInterfaceTemplateRequest) 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/PatchedWritableInventoryItemRequest.md b/docs/PatchedWritableInventoryItemRequest.md new file mode 100644 index 0000000000..3d143111da --- /dev/null +++ b/docs/PatchedWritableInventoryItemRequest.md @@ -0,0 +1,506 @@ +# PatchedWritableInventoryItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Parent** | Pointer to **NullableInt32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Label** | Pointer to **string** | Physical label | [optional] +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] +**Discovered** | Pointer to **bool** | This item was automatically discovered | [optional] +**Description** | Pointer to **string** | | [optional] +**ComponentType** | Pointer to **NullableString** | | [optional] +**ComponentId** | Pointer to **NullableInt64** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableInventoryItemRequest + +`func NewPatchedWritableInventoryItemRequest() *PatchedWritableInventoryItemRequest` + +NewPatchedWritableInventoryItemRequest instantiates a new PatchedWritableInventoryItemRequest 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 + +### NewPatchedWritableInventoryItemRequestWithDefaults + +`func NewPatchedWritableInventoryItemRequestWithDefaults() *PatchedWritableInventoryItemRequest` + +NewPatchedWritableInventoryItemRequestWithDefaults instantiates a new PatchedWritableInventoryItemRequest 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 + +### GetDevice + +`func (o *PatchedWritableInventoryItemRequest) GetDevice() BriefDeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *PatchedWritableInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *PatchedWritableInventoryItemRequest) SetDevice(v BriefDeviceRequest)` + +SetDevice sets Device field to given value. + +### HasDevice + +`func (o *PatchedWritableInventoryItemRequest) HasDevice() bool` + +HasDevice returns a boolean if a field has been set. + +### GetParent + +`func (o *PatchedWritableInventoryItemRequest) GetParent() int32` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *PatchedWritableInventoryItemRequest) GetParentOk() (*int32, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *PatchedWritableInventoryItemRequest) SetParent(v int32)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *PatchedWritableInventoryItemRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *PatchedWritableInventoryItemRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *PatchedWritableInventoryItemRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetName + +`func (o *PatchedWritableInventoryItemRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedWritableInventoryItemRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetLabel + +`func (o *PatchedWritableInventoryItemRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PatchedWritableInventoryItemRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetStatus + +`func (o *PatchedWritableInventoryItemRequest) GetStatus() InventoryItemStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PatchedWritableInventoryItemRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *PatchedWritableInventoryItemRequest) SetStatus(v InventoryItemStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PatchedWritableInventoryItemRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *PatchedWritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *PatchedWritableInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, 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 *PatchedWritableInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *PatchedWritableInventoryItemRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *PatchedWritableInventoryItemRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *PatchedWritableInventoryItemRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetManufacturer + +`func (o *PatchedWritableInventoryItemRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PatchedWritableInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PatchedWritableInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PatchedWritableInventoryItemRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *PatchedWritableInventoryItemRequest) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *PatchedWritableInventoryItemRequest) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetPartId + +`func (o *PatchedWritableInventoryItemRequest) GetPartId() string` + +GetPartId returns the PartId field if non-nil, zero value otherwise. + +### GetPartIdOk + +`func (o *PatchedWritableInventoryItemRequest) GetPartIdOk() (*string, bool)` + +GetPartIdOk returns a tuple with the PartId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartId + +`func (o *PatchedWritableInventoryItemRequest) SetPartId(v string)` + +SetPartId sets PartId field to given value. + +### HasPartId + +`func (o *PatchedWritableInventoryItemRequest) HasPartId() bool` + +HasPartId returns a boolean if a field has been set. + +### GetSerial + +`func (o *PatchedWritableInventoryItemRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *PatchedWritableInventoryItemRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *PatchedWritableInventoryItemRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *PatchedWritableInventoryItemRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *PatchedWritableInventoryItemRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *PatchedWritableInventoryItemRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *PatchedWritableInventoryItemRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *PatchedWritableInventoryItemRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *PatchedWritableInventoryItemRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *PatchedWritableInventoryItemRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDiscovered + +`func (o *PatchedWritableInventoryItemRequest) GetDiscovered() bool` + +GetDiscovered returns the Discovered field if non-nil, zero value otherwise. + +### GetDiscoveredOk + +`func (o *PatchedWritableInventoryItemRequest) GetDiscoveredOk() (*bool, bool)` + +GetDiscoveredOk returns a tuple with the Discovered field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscovered + +`func (o *PatchedWritableInventoryItemRequest) SetDiscovered(v bool)` + +SetDiscovered sets Discovered field to given value. + +### HasDiscovered + +`func (o *PatchedWritableInventoryItemRequest) HasDiscovered() bool` + +HasDiscovered returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableInventoryItemRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableInventoryItemRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComponentType + +`func (o *PatchedWritableInventoryItemRequest) GetComponentType() string` + +GetComponentType returns the ComponentType field if non-nil, zero value otherwise. + +### GetComponentTypeOk + +`func (o *PatchedWritableInventoryItemRequest) GetComponentTypeOk() (*string, bool)` + +GetComponentTypeOk returns a tuple with the ComponentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentType + +`func (o *PatchedWritableInventoryItemRequest) SetComponentType(v string)` + +SetComponentType sets ComponentType field to given value. + +### HasComponentType + +`func (o *PatchedWritableInventoryItemRequest) HasComponentType() bool` + +HasComponentType returns a boolean if a field has been set. + +### SetComponentTypeNil + +`func (o *PatchedWritableInventoryItemRequest) SetComponentTypeNil(b bool)` + + SetComponentTypeNil sets the value for ComponentType to be an explicit nil + +### UnsetComponentType +`func (o *PatchedWritableInventoryItemRequest) UnsetComponentType()` + +UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil +### GetComponentId + +`func (o *PatchedWritableInventoryItemRequest) GetComponentId() int64` + +GetComponentId returns the ComponentId field if non-nil, zero value otherwise. + +### GetComponentIdOk + +`func (o *PatchedWritableInventoryItemRequest) GetComponentIdOk() (*int64, bool)` + +GetComponentIdOk returns a tuple with the ComponentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentId + +`func (o *PatchedWritableInventoryItemRequest) SetComponentId(v int64)` + +SetComponentId sets ComponentId field to given value. + +### HasComponentId + +`func (o *PatchedWritableInventoryItemRequest) HasComponentId() bool` + +HasComponentId returns a boolean if a field has been set. + +### SetComponentIdNil + +`func (o *PatchedWritableInventoryItemRequest) SetComponentIdNil(b bool)` + + SetComponentIdNil sets the value for ComponentId to be an explicit nil + +### UnsetComponentId +`func (o *PatchedWritableInventoryItemRequest) UnsetComponentId()` + +UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil +### GetTags + +`func (o *PatchedWritableInventoryItemRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableInventoryItemRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableInventoryItemRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableInventoryItemRequest) 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 *PatchedWritableInventoryItemRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableInventoryItemRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableL2VPNRequest.md b/docs/PatchedWritableL2VPNRequest.md index 27aad448fc..f149765a22 100644 --- a/docs/PatchedWritableL2VPNRequest.md +++ b/docs/PatchedWritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -122,20 +122,20 @@ HasSlug returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -247,20 +247,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableLocationRequest.md b/docs/PatchedWritableLocationRequest.md index acc3b3ce7e..cb0dab0cb8 100644 --- a/docs/PatchedWritableLocationRequest.md +++ b/docs/PatchedWritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -86,20 +86,20 @@ HasSlug returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableLocationRequest) GetSite() SiteRequest` +`func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -146,20 +146,20 @@ HasParent returns a boolean if a field has been set. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, 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 *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -171,20 +171,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableModuleRequest.md b/docs/PatchedWritableModuleRequest.md index e5788f6e4e..ae24e9cd24 100644 --- a/docs/PatchedWritableModuleRequest.md +++ b/docs/PatchedWritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **ModuleBay** | Pointer to **int32** | | [optional] -**ModuleType** | Pointer to [**ModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | Pointer to [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -86,20 +86,20 @@ HasModuleBay returns a boolean if a field has been set. ### GetModuleType -`func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -111,20 +111,20 @@ HasModuleType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableModuleRequest) GetStatus() InventoryItemStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableModuleRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableModuleRequest) SetStatus(v InventoryItemStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/PatchedWritableModuleTypeRequest.md b/docs/PatchedWritableModuleTypeRequest.md index 179b6c6826..14f4555987 100644 --- a/docs/PatchedWritableModuleTypeRequest.md +++ b/docs/PatchedWritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeRequestAirflow**](ModuleTypeRequestAirflow.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -108,6 +109,41 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *PatchedWritableModuleTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *PatchedWritableModuleTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetWeight `func (o *PatchedWritableModuleTypeRequest) GetWeight() float64` @@ -145,20 +181,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -168,6 +204,16 @@ SetWeightUnit sets WeightUnit field to given value. HasWeightUnit returns a boolean if a field has been set. +### SetWeightUnitNil + +`func (o *PatchedWritableModuleTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *PatchedWritableModuleTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *PatchedWritableModuleTypeRequest) GetDescription() string` diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md index cc35f75bc0..5a59507742 100644 --- a/docs/PatchedWritablePowerFeedRequest.md +++ b/docs/PatchedWritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | Pointer to [**PowerPanelRequest**](PowerPanelRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | Pointer to [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +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 [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -42,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. @@ -67,20 +67,20 @@ HasPowerPanel returns a boolean if a field has been set. ### GetRack -`func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest` +`func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -352,20 +352,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, 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 TenantRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritablePowerOutletRequest.md b/docs/PatchedWritablePowerOutletRequest.md index eb1ac8177a..2cbbbdcd56 100644 --- a/docs/PatchedWritablePowerOutletRequest.md +++ b/docs/PatchedWritablePowerOutletRequest.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] -**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] +**Color** | Pointer to **string** | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] +**FeedLeg** | Pointer to [**NullablePatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +63,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -170,22 +171,57 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritablePowerOutletRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritablePowerOutletRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetColor + +`func (o *PatchedWritablePowerOutletRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *PatchedWritablePowerOutletRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *PatchedWritablePowerOutletRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *PatchedWritablePowerOutletRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + ### GetPowerPort -`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. @@ -230,6 +266,16 @@ SetFeedLeg sets FeedLeg field to given value. HasFeedLeg returns a boolean if a field has been set. +### SetFeedLegNil + +`func (o *PatchedWritablePowerOutletRequest) SetFeedLegNil(b bool)` + + SetFeedLegNil sets the value for FeedLeg to be an explicit nil + +### UnsetFeedLeg +`func (o *PatchedWritablePowerOutletRequest) UnsetFeedLeg()` + +UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil ### GetDescription `func (o *PatchedWritablePowerOutletRequest) GetDescription() string` diff --git a/docs/PatchedWritablePowerOutletRequestFeedLeg 2.md b/docs/PatchedWritablePowerOutletRequestFeedLeg 2.md new file mode 100644 index 0000000000..f157cbc750 --- /dev/null +++ b/docs/PatchedWritablePowerOutletRequestFeedLeg 2.md @@ -0,0 +1,17 @@ +# PatchedWritablePowerOutletRequestFeedLeg + +## Enum + + +* `A` (value: `"A"`) + +* `B` (value: `"B"`) + +* `C` (value: `"C"`) + +* `EMPTY` (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/PatchedWritablePowerOutletRequestType.md b/docs/PatchedWritablePowerOutletRequestType.md index f76400db64..8c9ce5a0b6 100644 --- a/docs/PatchedWritablePowerOutletRequestType.md +++ b/docs/PatchedWritablePowerOutletRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"dc-terminal"`) +* `EATON_C39` (value: `"eaton-c39"`) + * `HDOT_CX` (value: `"hdot-cx"`) * `SAF_D_GRID` (value: `"saf-d-grid"`) diff --git a/docs/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md index 42e796ccf8..21bd85382f 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequest.md +++ b/docs/PatchedWritablePowerOutletTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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 [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] -**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] +**FeedLeg** | Pointer to [**NullablePatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -177,22 +177,32 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritablePowerOutletTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritablePowerOutletTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. @@ -237,6 +247,16 @@ SetFeedLeg sets FeedLeg field to given value. HasFeedLeg returns a boolean if a field has been set. +### SetFeedLegNil + +`func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLegNil(b bool)` + + SetFeedLegNil sets the value for FeedLeg to be an explicit nil + +### UnsetFeedLeg +`func (o *PatchedWritablePowerOutletTemplateRequest) UnsetFeedLeg()` + +UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil ### GetDescription `func (o *PatchedWritablePowerOutletTemplateRequest) GetDescription() string` diff --git a/docs/PatchedWritablePowerOutletTemplateRequestType.md b/docs/PatchedWritablePowerOutletTemplateRequestType.md index e1e5a0cbc4..1d2197c73e 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequestType.md +++ b/docs/PatchedWritablePowerOutletTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"dc-terminal"`) +* `EATON_C39` (value: `"eaton-c39"`) + * `HDOT_CX` (value: `"hdot-cx"`) * `SAF_D_GRID` (value: `"saf-d-grid"`) diff --git a/docs/PatchedWritablePowerPortRequest.md b/docs/PatchedWritablePowerPortRequest.md index 197374b544..f776692a79 100644 --- a/docs/PatchedWritablePowerPortRequest.md +++ b/docs/PatchedWritablePowerPortRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] **AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -170,6 +170,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritablePowerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritablePowerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetMaximumDraw `func (o *PatchedWritablePowerPortRequest) GetMaximumDraw() int32` diff --git a/docs/PatchedWritablePowerPortRequestType.md b/docs/PatchedWritablePowerPortRequestType.md index 0b2b85bc40..ec314c4710 100644 --- a/docs/PatchedWritablePowerPortRequestType.md +++ b/docs/PatchedWritablePowerPortRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md index 1b737c2aa6..ab1c270962 100644 --- a/docs/PatchedWritablePowerPortTemplateRequest.md +++ b/docs/PatchedWritablePowerPortTemplateRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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 [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] **AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -177,6 +177,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *PatchedWritablePowerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PatchedWritablePowerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetMaximumDraw `func (o *PatchedWritablePowerPortTemplateRequest) GetMaximumDraw() int32` diff --git a/docs/PatchedWritablePowerPortTemplateRequestType.md b/docs/PatchedWritablePowerPortTemplateRequestType.md index a6fc8d0bf6..296570b725 100644 --- a/docs/PatchedWritablePowerPortTemplateRequestType.md +++ b/docs/PatchedWritablePowerPortTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePrefixRequest.md b/docs/PatchedWritablePrefixRequest.md index 91217763d8..941dc67684 100644 --- a/docs/PatchedWritablePrefixRequest.md +++ b/docs/PatchedWritablePrefixRequest.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -62,92 +63,127 @@ SetPrefix sets Prefix field to given value. HasPrefix returns a boolean if a field has been set. -### GetSite +### GetVrf -`func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest` +`func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest` -GetSite returns the Site field if non-nil, zero value otherwise. +GetVrf returns the Vrf field if non-nil, zero value otherwise. -### GetSiteOk +### GetVrfOk -`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSite +### SetVrf -`func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest)` -SetSite sets Site field to given value. +SetVrf sets Vrf field to given value. -### HasSite +### HasVrf -`func (o *PatchedWritablePrefixRequest) HasSite() bool` +`func (o *PatchedWritablePrefixRequest) HasVrf() bool` -HasSite returns a boolean if a field has been set. +HasVrf returns a boolean if a field has been set. -### SetSiteNil +### SetVrfNil -`func (o *PatchedWritablePrefixRequest) SetSiteNil(b bool)` +`func (o *PatchedWritablePrefixRequest) SetVrfNil(b bool)` - SetSiteNil sets the value for Site to be an explicit nil + SetVrfNil sets the value for Vrf to be an explicit nil -### UnsetSite -`func (o *PatchedWritablePrefixRequest) UnsetSite()` +### UnsetVrf +`func (o *PatchedWritablePrefixRequest) UnsetVrf()` -UnsetSite ensures that no value is present for Site, not even an explicit nil -### GetVrf +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetScopeType -`func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest` +`func (o *PatchedWritablePrefixRequest) GetScopeType() string` -GetVrf returns the Vrf field if non-nil, zero value otherwise. +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. -### GetVrfOk +### GetScopeTypeOk -`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetScopeTypeOk() (*string, bool)` -GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetVrf +### SetScopeType -`func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritablePrefixRequest) SetScopeType(v string)` -SetVrf sets Vrf field to given value. +SetScopeType sets ScopeType field to given value. -### HasVrf +### HasScopeType -`func (o *PatchedWritablePrefixRequest) HasVrf() bool` +`func (o *PatchedWritablePrefixRequest) HasScopeType() bool` -HasVrf returns a boolean if a field has been set. +HasScopeType returns a boolean if a field has been set. -### SetVrfNil +### SetScopeTypeNil -`func (o *PatchedWritablePrefixRequest) SetVrfNil(b bool)` +`func (o *PatchedWritablePrefixRequest) SetScopeTypeNil(b bool)` - SetVrfNil sets the value for Vrf to be an explicit nil + SetScopeTypeNil sets the value for ScopeType to be an explicit nil -### UnsetVrf -`func (o *PatchedWritablePrefixRequest) UnsetVrf()` +### UnsetScopeType +`func (o *PatchedWritablePrefixRequest) UnsetScopeType()` -UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *PatchedWritablePrefixRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *PatchedWritablePrefixRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *PatchedWritablePrefixRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *PatchedWritablePrefixRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *PatchedWritablePrefixRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *PatchedWritablePrefixRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetTenant -`func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -169,20 +205,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest` +`func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -229,20 +265,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest` +`func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, 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 *PatchedWritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritablePrefixRequestStatus 2.md b/docs/PatchedWritablePrefixRequestStatus 2.md new file mode 100644 index 0000000000..89ae9b8717 --- /dev/null +++ b/docs/PatchedWritablePrefixRequestStatus 2.md @@ -0,0 +1,17 @@ +# PatchedWritablePrefixRequestStatus + +## Enum + + +* `CONTAINER` (value: `"container"`) + +* `ACTIVE` (value: `"active"`) + +* `RESERVED` (value: `"reserved"`) + +* `DEPRECATED` (value: `"deprecated"`) + + +[[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/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md index ee517e47ea..c307ee36d1 100644 --- a/docs/PatchedWritableRackRequest.md +++ b/docs/PatchedWritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**NullablePatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.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 [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] -**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**OuterUnit** | Pointer to [**NullablePatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**NullablePatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -111,20 +113,20 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *PatchedWritableRackRequest) GetSite() SiteRequest` +`func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableRackRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -136,20 +138,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableRackRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -171,20 +173,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *PatchedWritableRackRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableRackRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -231,20 +233,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest` +`func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, 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 *PatchedWritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -324,31 +326,76 @@ HasAssetTag returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *PatchedWritableRackRequest) HasType() bool` +`func (o *PatchedWritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. +### SetRackTypeNil + +`func (o *PatchedWritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *PatchedWritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *PatchedWritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *PatchedWritableRackRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *PatchedWritableRackRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil ### GetWidth `func (o *PatchedWritableRackRequest) GetWidth() PatchedWritableRackRequestWidth` @@ -496,20 +543,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -519,6 +566,16 @@ SetWeightUnit sets WeightUnit field to given value. HasWeightUnit returns a boolean if a field has been set. +### SetWeightUnitNil + +`func (o *PatchedWritableRackRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *PatchedWritableRackRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescUnits `func (o *PatchedWritableRackRequest) GetDescUnits() bool` @@ -639,6 +696,16 @@ SetOuterUnit sets OuterUnit field to given value. HasOuterUnit returns a boolean if a field has been set. +### SetOuterUnitNil + +`func (o *PatchedWritableRackRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *PatchedWritableRackRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil ### GetMountingDepth `func (o *PatchedWritableRackRequest) GetMountingDepth() int32` @@ -674,6 +741,41 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *PatchedWritableRackRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *PatchedWritableRackRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetDescription `func (o *PatchedWritableRackRequest) GetDescription() string` diff --git a/docs/PatchedWritableRackRequestAirflow.md b/docs/PatchedWritableRackRequestAirflow.md new file mode 100644 index 0000000000..a4de6542a0 --- /dev/null +++ b/docs/PatchedWritableRackRequestAirflow.md @@ -0,0 +1,15 @@ +# PatchedWritableRackRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `EMPTY` (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/PatchedWritableRackRequestFormFactor.md b/docs/PatchedWritableRackRequestFormFactor.md new file mode 100644 index 0000000000..85a3f53997 --- /dev/null +++ b/docs/PatchedWritableRackRequestFormFactor.md @@ -0,0 +1,25 @@ +# PatchedWritableRackRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + +* `EMPTY` (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/PatchedWritableRackRequestStatus 2.md b/docs/PatchedWritableRackRequestStatus 2.md new file mode 100644 index 0000000000..f7aa0efdbd --- /dev/null +++ b/docs/PatchedWritableRackRequestStatus 2.md @@ -0,0 +1,19 @@ +# PatchedWritableRackRequestStatus + +## Enum + + +* `RESERVED` (value: `"reserved"`) + +* `AVAILABLE` (value: `"available"`) + +* `PLANNED` (value: `"planned"`) + +* `ACTIVE` (value: `"active"`) + +* `DEPRECATED` (value: `"deprecated"`) + + +[[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/PatchedWritableRackTypeRequest.md b/docs/PatchedWritableRackTypeRequest.md new file mode 100644 index 0000000000..ba95cd8785 --- /dev/null +++ b/docs/PatchedWritableRackTypeRequest.md @@ -0,0 +1,594 @@ +# PatchedWritableRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Model** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackTypeRequestFormFactor**](PatchedWritableRackTypeRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullablePatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableRackTypeRequest + +`func NewPatchedWritableRackTypeRequest() *PatchedWritableRackTypeRequest` + +NewPatchedWritableRackTypeRequest instantiates a new PatchedWritableRackTypeRequest 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 + +### NewPatchedWritableRackTypeRequestWithDefaults + +`func NewPatchedWritableRackTypeRequestWithDefaults() *PatchedWritableRackTypeRequest` + +NewPatchedWritableRackTypeRequestWithDefaults instantiates a new PatchedWritableRackTypeRequest 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 + +### GetManufacturer + +`func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PatchedWritableRackTypeRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### GetModel + +`func (o *PatchedWritableRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *PatchedWritableRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *PatchedWritableRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + +### HasModel + +`func (o *PatchedWritableRackTypeRequest) HasModel() bool` + +HasModel returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedWritableRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedWritableRackTypeRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableRackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *PatchedWritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *PatchedWritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *PatchedWritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *PatchedWritableRackTypeRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### GetWidth + +`func (o *PatchedWritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *PatchedWritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *PatchedWritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *PatchedWritableRackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *PatchedWritableRackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *PatchedWritableRackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *PatchedWritableRackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *PatchedWritableRackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *PatchedWritableRackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *PatchedWritableRackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *PatchedWritableRackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *PatchedWritableRackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *PatchedWritableRackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *PatchedWritableRackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *PatchedWritableRackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *PatchedWritableRackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *PatchedWritableRackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *PatchedWritableRackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *PatchedWritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *PatchedWritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *PatchedWritableRackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *PatchedWritableRackTypeRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *PatchedWritableRackTypeRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *PatchedWritableRackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *PatchedWritableRackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *PatchedWritableRackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *PatchedWritableRackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *PatchedWritableRackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *PatchedWritableRackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *PatchedWritableRackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *PatchedWritableRackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *PatchedWritableRackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *PatchedWritableRackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *PatchedWritableRackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *PatchedWritableRackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *PatchedWritableRackTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *PatchedWritableRackTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *PatchedWritableRackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *PatchedWritableRackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *PatchedWritableRackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *PatchedWritableRackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableRackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableRackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableRackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableRackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableRackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableRackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableRackTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableRackTypeRequestFormFactor.md b/docs/PatchedWritableRackTypeRequestFormFactor.md new file mode 100644 index 0000000000..e1dd497f02 --- /dev/null +++ b/docs/PatchedWritableRackTypeRequestFormFactor.md @@ -0,0 +1,23 @@ +# PatchedWritableRackTypeRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + + +[[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/PatchedWritableRearPortRequest.md b/docs/PatchedWritableRearPortRequest.md index f77fdd2db5..c3687e9e30 100644 --- a/docs/PatchedWritableRearPortRequest.md +++ b/docs/PatchedWritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableRearPortTemplateRequest 2.md b/docs/PatchedWritableRearPortTemplateRequest 2.md new file mode 100644 index 0000000000..200b96c81b --- /dev/null +++ b/docs/PatchedWritableRearPortTemplateRequest 2.md @@ -0,0 +1,258 @@ +# PatchedWritableRearPortTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [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 [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewPatchedWritableRearPortTemplateRequest + +`func NewPatchedWritableRearPortTemplateRequest() *PatchedWritableRearPortTemplateRequest` + +NewPatchedWritableRearPortTemplateRequest instantiates a new PatchedWritableRearPortTemplateRequest 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 + +### NewPatchedWritableRearPortTemplateRequestWithDefaults + +`func NewPatchedWritableRearPortTemplateRequestWithDefaults() *PatchedWritableRearPortTemplateRequest` + +NewPatchedWritableRearPortTemplateRequestWithDefaults instantiates a new PatchedWritableRearPortTemplateRequest 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 + +### GetDeviceType + +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PatchedWritableRearPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PatchedWritableRearPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PatchedWritableRearPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +### GetName + +`func (o *PatchedWritableRearPortTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedWritableRearPortTemplateRequest) 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 *PatchedWritableRearPortTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedWritableRearPortTemplateRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetLabel + +`func (o *PatchedWritableRearPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PatchedWritableRearPortTemplateRequest) 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 *PatchedWritableRearPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PatchedWritableRearPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PatchedWritableRearPortTemplateRequest) GetType() FrontPortTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PatchedWritableRearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PatchedWritableRearPortTemplateRequest) SetType(v FrontPortTypeValue)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PatchedWritableRearPortTemplateRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetColor + +`func (o *PatchedWritableRearPortTemplateRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *PatchedWritableRearPortTemplateRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *PatchedWritableRearPortTemplateRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *PatchedWritableRearPortTemplateRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *PatchedWritableRearPortTemplateRequest) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *PatchedWritableRearPortTemplateRequest) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *PatchedWritableRearPortTemplateRequest) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *PatchedWritableRearPortTemplateRequest) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableRearPortTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableRearPortTemplateRequest) 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 *PatchedWritableRearPortTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableRearPortTemplateRequest) 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/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md index 200b96c81b..2e43d2d102 100644 --- a/docs/PatchedWritableRearPortTemplateRequest.md +++ b/docs/PatchedWritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [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 [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableServiceRequest 2.md b/docs/PatchedWritableServiceRequest 2.md new file mode 100644 index 0000000000..1766d4654c --- /dev/null +++ b/docs/PatchedWritableServiceRequest 2.md @@ -0,0 +1,310 @@ +# PatchedWritableServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Name** | Pointer to **string** | | [optional] +**Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] +**Ports** | Pointer to **[]int32** | | [optional] +**Ipaddresses** | Pointer to **[]int32** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableServiceRequest + +`func NewPatchedWritableServiceRequest() *PatchedWritableServiceRequest` + +NewPatchedWritableServiceRequest instantiates a new PatchedWritableServiceRequest 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 + +### NewPatchedWritableServiceRequestWithDefaults + +`func NewPatchedWritableServiceRequestWithDefaults() *PatchedWritableServiceRequest` + +NewPatchedWritableServiceRequestWithDefaults instantiates a new PatchedWritableServiceRequest 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 + +### GetDevice + +`func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest)` + +SetDevice sets Device field to given value. + +### HasDevice + +`func (o *PatchedWritableServiceRequest) HasDevice() bool` + +HasDevice returns a boolean if a field has been set. + +### SetDeviceNil + +`func (o *PatchedWritableServiceRequest) SetDeviceNil(b bool)` + + SetDeviceNil sets the value for Device to be an explicit nil + +### UnsetDevice +`func (o *PatchedWritableServiceRequest) UnsetDevice()` + +UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetVirtualMachine + +`func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` + +GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. + +### GetVirtualMachineOk + +`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` + +GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualMachine + +`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` + +SetVirtualMachine sets VirtualMachine field to given value. + +### HasVirtualMachine + +`func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool` + +HasVirtualMachine returns a boolean if a field has been set. + +### SetVirtualMachineNil + +`func (o *PatchedWritableServiceRequest) SetVirtualMachineNil(b bool)` + + SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil + +### UnsetVirtualMachine +`func (o *PatchedWritableServiceRequest) UnsetVirtualMachine()` + +UnsetVirtualMachine ensures that no value is present for VirtualMachine, not even an explicit nil +### GetName + +`func (o *PatchedWritableServiceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedWritableServiceRequest) 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 *PatchedWritableServiceRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedWritableServiceRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetProtocol + +`func (o *PatchedWritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *PatchedWritableServiceRequest) GetProtocolOk() (*PatchedWritableServiceRequestProtocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *PatchedWritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProtocol)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *PatchedWritableServiceRequest) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetPorts + +`func (o *PatchedWritableServiceRequest) GetPorts() []int32` + +GetPorts returns the Ports field if non-nil, zero value otherwise. + +### GetPortsOk + +`func (o *PatchedWritableServiceRequest) GetPortsOk() (*[]int32, bool)` + +GetPortsOk returns a tuple with the Ports field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPorts + +`func (o *PatchedWritableServiceRequest) SetPorts(v []int32)` + +SetPorts sets Ports field to given value. + +### HasPorts + +`func (o *PatchedWritableServiceRequest) HasPorts() bool` + +HasPorts returns a boolean if a field has been set. + +### GetIpaddresses + +`func (o *PatchedWritableServiceRequest) GetIpaddresses() []int32` + +GetIpaddresses returns the Ipaddresses field if non-nil, zero value otherwise. + +### GetIpaddressesOk + +`func (o *PatchedWritableServiceRequest) GetIpaddressesOk() (*[]int32, bool)` + +GetIpaddressesOk returns a tuple with the Ipaddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddresses + +`func (o *PatchedWritableServiceRequest) SetIpaddresses(v []int32)` + +SetIpaddresses sets Ipaddresses field to given value. + +### HasIpaddresses + +`func (o *PatchedWritableServiceRequest) HasIpaddresses() bool` + +HasIpaddresses returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableServiceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableServiceRequest) 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 *PatchedWritableServiceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableServiceRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *PatchedWritableServiceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableServiceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableServiceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableServiceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableServiceRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableServiceRequest) 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 *PatchedWritableServiceRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableServiceRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableServiceRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableServiceRequest) 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 *PatchedWritableServiceRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableServiceRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableServiceRequest.md b/docs/PatchedWritableServiceRequest.md index 1766d4654c..7a04b670cf 100644 --- a/docs/PatchedWritableServiceRequest.md +++ b/docs/PatchedWritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | Pointer to **[]int32** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableSiteRequest.md b/docs/PatchedWritableSiteRequest.md index 508c38a898..8c3c896c87 100644 --- a/docs/PatchedWritableSiteRequest.md +++ b/docs/PatchedWritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Full name of the site | [optional] **Slug** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -93,20 +93,20 @@ HasSlug returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, 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 *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -118,20 +118,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest` +`func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -153,20 +153,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -188,20 +188,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelRequest.md b/docs/PatchedWritableTunnelRequest.md index 5fa722f815..a4407ef86b 100644 --- a/docs/PatchedWritableTunnelRequest.md +++ b/docs/PatchedWritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -87,20 +87,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ HasEncapsulation returns a boolean if a field has been set. ### GetIpsecProfile -`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -182,20 +182,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelRequestEncapsulation.md b/docs/PatchedWritableTunnelRequestEncapsulation.md index d1077c5e9a..286d48ef73 100644 --- a/docs/PatchedWritableTunnelRequestEncapsulation.md +++ b/docs/PatchedWritableTunnelRequestEncapsulation.md @@ -11,6 +11,14 @@ * `GRE` (value: `"gre"`) +* `WIREGUARD` (value: `"wireguard"`) + +* `OPENVPN` (value: `"openvpn"`) + +* `L2TP` (value: `"l2tp"`) + +* `PPTP` (value: `"pptp"`) + [[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/PatchedWritableTunnelTerminationRequest.md b/docs/PatchedWritableTunnelTerminationRequest.md index 15f17c6229..3cbfca83e0 100644 --- a/docs/PatchedWritableTunnelTerminationRequest.md +++ b/docs/PatchedWritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | Pointer to [**TunnelRequest**](TunnelRequest.md) | | [optional] +**Tunnel** | Pointer to [**BriefTunnelRequest**](BriefTunnelRequest.md) | | [optional] **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | Pointer to **string** | | [optional] **TerminationId** | Pointer to **NullableInt64** | | [optional] -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -143,20 +143,20 @@ HasTerminationId returns a boolean if a field has been set. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/PatchedWritableVLANRequest.md b/docs/PatchedWritableVLANRequest.md index edfc174e7c..36e83edcd3 100644 --- a/docs/PatchedWritableVLANRequest.md +++ b/docs/PatchedWritableVLANRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional] **Name** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**QinqRole** | Pointer to [**NullableQInQRole**](QInQRole.md) | | [optional] +**QinqSvlan** | Pointer to **NullableInt32** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -37,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedWritableVLANRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +74,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -157,20 +159,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -217,20 +219,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableVLANRequest) GetRole() RoleRequest` +`func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, 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 *PatchedWritableVLANRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. @@ -275,6 +277,76 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetQinqRole + +`func (o *PatchedWritableVLANRequest) GetQinqRole() QInQRole` + +GetQinqRole returns the QinqRole field if non-nil, zero value otherwise. + +### GetQinqRoleOk + +`func (o *PatchedWritableVLANRequest) GetQinqRoleOk() (*QInQRole, bool)` + +GetQinqRoleOk returns a tuple with the QinqRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqRole + +`func (o *PatchedWritableVLANRequest) SetQinqRole(v QInQRole)` + +SetQinqRole sets QinqRole field to given value. + +### HasQinqRole + +`func (o *PatchedWritableVLANRequest) HasQinqRole() bool` + +HasQinqRole returns a boolean if a field has been set. + +### SetQinqRoleNil + +`func (o *PatchedWritableVLANRequest) SetQinqRoleNil(b bool)` + + SetQinqRoleNil sets the value for QinqRole to be an explicit nil + +### UnsetQinqRole +`func (o *PatchedWritableVLANRequest) UnsetQinqRole()` + +UnsetQinqRole ensures that no value is present for QinqRole, not even an explicit nil +### GetQinqSvlan + +`func (o *PatchedWritableVLANRequest) GetQinqSvlan() int32` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *PatchedWritableVLANRequest) GetQinqSvlanOk() (*int32, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *PatchedWritableVLANRequest) SetQinqSvlan(v int32)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *PatchedWritableVLANRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *PatchedWritableVLANRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *PatchedWritableVLANRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil ### GetComments `func (o *PatchedWritableVLANRequest) GetComments() string` diff --git a/docs/PatchedWritableVLANRequestStatus 2.md b/docs/PatchedWritableVLANRequestStatus 2.md new file mode 100644 index 0000000000..e944331eab --- /dev/null +++ b/docs/PatchedWritableVLANRequestStatus 2.md @@ -0,0 +1,15 @@ +# PatchedWritableVLANRequestStatus + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `RESERVED` (value: `"reserved"`) + +* `DEPRECATED` (value: `"deprecated"`) + + +[[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/PatchedWritableVMInterfaceRequest.md b/docs/PatchedWritableVMInterfaceRequest.md index ae6bedaead..ffcd1ecfbe 100644 --- a/docs/PatchedWritableVMInterfaceRequest.md +++ b/docs/PatchedWritableVMInterfaceRequest.md @@ -4,18 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddressRequest**](BriefMACAddressRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Mode** | Pointer to [**NullablePatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**QinqSvlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicyRequest**](BriefVLANTranslationPolicyRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -40,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -218,41 +220,41 @@ HasMtu returns a boolean if a field has been set. `func (o *PatchedWritableVMInterfaceRequest) UnsetMtu()` UnsetMtu ensures that no value is present for Mtu, not even an explicit nil -### GetMacAddress +### GetPrimaryMacAddress -`func (o *PatchedWritableVMInterfaceRequest) GetMacAddress() string` +`func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest` -GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. -### GetMacAddressOk +### GetPrimaryMacAddressOk -`func (o *PatchedWritableVMInterfaceRequest) GetMacAddressOk() (*string, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool)` -GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMacAddress +### SetPrimaryMacAddress -`func (o *PatchedWritableVMInterfaceRequest) SetMacAddress(v string)` +`func (o *PatchedWritableVMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest)` -SetMacAddress sets MacAddress field to given value. +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. -### HasMacAddress +### HasPrimaryMacAddress -`func (o *PatchedWritableVMInterfaceRequest) HasMacAddress() bool` +`func (o *PatchedWritableVMInterfaceRequest) HasPrimaryMacAddress() bool` -HasMacAddress returns a boolean if a field has been set. +HasPrimaryMacAddress returns a boolean if a field has been set. -### SetMacAddressNil +### SetPrimaryMacAddressNil -`func (o *PatchedWritableVMInterfaceRequest) SetMacAddressNil(b bool)` +`func (o *PatchedWritableVMInterfaceRequest) SetPrimaryMacAddressNil(b bool)` - SetMacAddressNil sets the value for MacAddress to be an explicit nil + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil -### UnsetMacAddress -`func (o *PatchedWritableVMInterfaceRequest) UnsetMacAddress()` +### UnsetPrimaryMacAddress +`func (o *PatchedWritableVMInterfaceRequest) UnsetPrimaryMacAddress()` -UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil ### GetDescription `func (o *PatchedWritableVMInterfaceRequest) GetDescription() string` @@ -303,22 +305,32 @@ SetMode sets Mode field to given value. HasMode returns a boolean if a field has been set. +### SetModeNil + +`func (o *PatchedWritableVMInterfaceRequest) SetModeNil(b bool)` + + SetModeNil sets the value for Mode to be an explicit nil + +### UnsetMode +`func (o *PatchedWritableVMInterfaceRequest) UnsetMode()` + +UnsetMode ensures that no value is present for Mode, not even an explicit nil ### GetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -363,22 +375,92 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *PatchedWritableVMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *PatchedWritableVMInterfaceRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *PatchedWritableVMInterfaceRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *PatchedWritableVMInterfaceRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *PatchedWritableVMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *PatchedWritableVMInterfaceRequest) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *PatchedWritableVMInterfaceRequest) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *PatchedWritableVMInterfaceRequest) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetVrf -`func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableVirtualCircuitRequest.md b/docs/PatchedWritableVirtualCircuitRequest.md new file mode 100644 index 0000000000..8b89a83dbf --- /dev/null +++ b/docs/PatchedWritableVirtualCircuitRequest.md @@ -0,0 +1,310 @@ +# PatchedWritableVirtualCircuitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cid** | Pointer to **string** | Unique circuit ID | [optional] +**ProviderNetwork** | Pointer to [**BriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | Pointer to [**BriefVirtualCircuitTypeRequest**](BriefVirtualCircuitTypeRequest.md) | | [optional] +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableVirtualCircuitRequest + +`func NewPatchedWritableVirtualCircuitRequest() *PatchedWritableVirtualCircuitRequest` + +NewPatchedWritableVirtualCircuitRequest instantiates a new PatchedWritableVirtualCircuitRequest 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 + +### NewPatchedWritableVirtualCircuitRequestWithDefaults + +`func NewPatchedWritableVirtualCircuitRequestWithDefaults() *PatchedWritableVirtualCircuitRequest` + +NewPatchedWritableVirtualCircuitRequestWithDefaults instantiates a new PatchedWritableVirtualCircuitRequest 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 + +### GetCid + +`func (o *PatchedWritableVirtualCircuitRequest) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *PatchedWritableVirtualCircuitRequest) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *PatchedWritableVirtualCircuitRequest) SetCid(v string)` + +SetCid sets Cid field to given value. + +### HasCid + +`func (o *PatchedWritableVirtualCircuitRequest) HasCid() bool` + +HasCid returns a boolean if a field has been set. + +### GetProviderNetwork + +`func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *PatchedWritableVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` + +SetProviderNetwork sets ProviderNetwork field to given value. + +### HasProviderNetwork + +`func (o *PatchedWritableVirtualCircuitRequest) HasProviderNetwork() bool` + +HasProviderNetwork returns a boolean if a field has been set. + +### GetProviderAccount + +`func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *PatchedWritableVirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *PatchedWritableVirtualCircuitRequest) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *PatchedWritableVirtualCircuitRequest) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *PatchedWritableVirtualCircuitRequest) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *PatchedWritableVirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PatchedWritableVirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PatchedWritableVirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PatchedWritableVirtualCircuitRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetStatus + +`func (o *PatchedWritableVirtualCircuitRequest) GetStatus() CircuitStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PatchedWritableVirtualCircuitRequest) GetStatusOk() (*CircuitStatusValue, 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 *PatchedWritableVirtualCircuitRequest) SetStatus(v CircuitStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PatchedWritableVirtualCircuitRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *PatchedWritableVirtualCircuitRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PatchedWritableVirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableVirtualCircuitRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PatchedWritableVirtualCircuitRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PatchedWritableVirtualCircuitRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PatchedWritableVirtualCircuitRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDescription + +`func (o *PatchedWritableVirtualCircuitRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableVirtualCircuitRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *PatchedWritableVirtualCircuitRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableVirtualCircuitRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableVirtualCircuitRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableVirtualCircuitRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableVirtualCircuitRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableVirtualCircuitRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableVirtualCircuitRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableVirtualCircuitRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableVirtualCircuitTerminationRequest.md b/docs/PatchedWritableVirtualCircuitTerminationRequest.md new file mode 100644 index 0000000000..9bfb983a38 --- /dev/null +++ b/docs/PatchedWritableVirtualCircuitTerminationRequest.md @@ -0,0 +1,186 @@ +# PatchedWritableVirtualCircuitTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VirtualCircuit** | Pointer to [**BriefVirtualCircuitRequest**](BriefVirtualCircuitRequest.md) | | [optional] +**Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] +**Interface** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableVirtualCircuitTerminationRequest + +`func NewPatchedWritableVirtualCircuitTerminationRequest() *PatchedWritableVirtualCircuitTerminationRequest` + +NewPatchedWritableVirtualCircuitTerminationRequest instantiates a new PatchedWritableVirtualCircuitTerminationRequest 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 + +### NewPatchedWritableVirtualCircuitTerminationRequestWithDefaults + +`func NewPatchedWritableVirtualCircuitTerminationRequestWithDefaults() *PatchedWritableVirtualCircuitTerminationRequest` + +NewPatchedWritableVirtualCircuitTerminationRequestWithDefaults instantiates a new PatchedWritableVirtualCircuitTerminationRequest 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 + +### GetVirtualCircuit + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest` + +GetVirtualCircuit returns the VirtualCircuit field if non-nil, zero value otherwise. + +### GetVirtualCircuitOk + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool)` + +GetVirtualCircuitOk returns a tuple with the VirtualCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualCircuit + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest)` + +SetVirtualCircuit sets VirtualCircuit field to given value. + +### HasVirtualCircuit + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) HasVirtualCircuit() bool` + +HasVirtualCircuit returns a boolean if a field has been set. + +### GetRole + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, 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 *PatchedWritableVirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetInterface + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest` + +GetInterface returns the Interface field if non-nil, zero value otherwise. + +### GetInterfaceOk + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool)` + +GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterface + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest)` + +SetInterface sets Interface field to given value. + +### HasInterface + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) HasInterface() bool` + +HasInterface returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableVirtualCircuitTerminationRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableVirtualDeviceContextRequest.md b/docs/PatchedWritableVirtualDeviceContextRequest.md index 1954bc8537..e9b0dc680d 100644 --- a/docs/PatchedWritableVirtualDeviceContextRequest.md +++ b/docs/PatchedWritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -62,20 +62,20 @@ HasName returns a boolean if a field has been set. ### GetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -122,20 +122,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -157,20 +157,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -192,20 +192,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md index 08fc04070a..a5ed4815d5 100644 --- a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md +++ b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **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] @@ -70,20 +71,20 @@ HasName returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue)` SetStatus sets Status field to given value. @@ -95,20 +96,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -130,20 +131,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -165,20 +166,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -198,22 +199,47 @@ HasDevice returns a boolean if a field has been set. `func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -235,20 +261,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -270,20 +296,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -305,20 +331,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -340,20 +366,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -530,20 +556,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableWirelessLANGroupRequest 2.md b/docs/PatchedWritableWirelessLANGroupRequest 2.md new file mode 100644 index 0000000000..f6e02fe59e --- /dev/null +++ b/docs/PatchedWritableWirelessLANGroupRequest 2.md @@ -0,0 +1,196 @@ +# PatchedWritableWirelessLANGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Parent** | Pointer to **NullableInt32** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableWirelessLANGroupRequest + +`func NewPatchedWritableWirelessLANGroupRequest() *PatchedWritableWirelessLANGroupRequest` + +NewPatchedWritableWirelessLANGroupRequest instantiates a new PatchedWritableWirelessLANGroupRequest 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 + +### NewPatchedWritableWirelessLANGroupRequestWithDefaults + +`func NewPatchedWritableWirelessLANGroupRequestWithDefaults() *PatchedWritableWirelessLANGroupRequest` + +NewPatchedWritableWirelessLANGroupRequestWithDefaults instantiates a new PatchedWritableWirelessLANGroupRequest 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 *PatchedWritableWirelessLANGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedWritableWirelessLANGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedWritableWirelessLANGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedWritableWirelessLANGroupRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetParent + +`func (o *PatchedWritableWirelessLANGroupRequest) GetParent() int32` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *PatchedWritableWirelessLANGroupRequest) GetParentOk() (*int32, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *PatchedWritableWirelessLANGroupRequest) SetParent(v int32)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *PatchedWritableWirelessLANGroupRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *PatchedWritableWirelessLANGroupRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *PatchedWritableWirelessLANGroupRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetDescription + +`func (o *PatchedWritableWirelessLANGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableWirelessLANGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableWirelessLANGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableWirelessLANGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableWirelessLANGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableWirelessLANGroupRequest) 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 *PatchedWritableWirelessLANGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableWirelessLANGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/PatchedWritableWirelessLANRequest.md b/docs/PatchedWritableWirelessLANRequest.md index 6bb30de66f..ba6c3cb06c 100644 --- a/docs/PatchedWritableWirelessLANRequest.md +++ b/docs/PatchedWritableWirelessLANRequest.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**NullableAuthenticationType1**](AuthenticationType1.md) | | [optional] +**AuthCipher** | Pointer to [**NullableAuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -88,20 +90,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -148,20 +150,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -181,22 +183,92 @@ HasVlan returns a boolean if a field has been set. `func (o *PatchedWritableWirelessLANRequest) UnsetVlan()` UnsetVlan ensures that no value is present for Vlan, not even an explicit nil +### GetScopeType + +`func (o *PatchedWritableWirelessLANRequest) GetScopeType() string` + +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. + +### GetScopeTypeOk + +`func (o *PatchedWritableWirelessLANRequest) GetScopeTypeOk() (*string, bool)` + +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeType + +`func (o *PatchedWritableWirelessLANRequest) SetScopeType(v string)` + +SetScopeType sets ScopeType field to given value. + +### HasScopeType + +`func (o *PatchedWritableWirelessLANRequest) HasScopeType() bool` + +HasScopeType returns a boolean if a field has been set. + +### SetScopeTypeNil + +`func (o *PatchedWritableWirelessLANRequest) SetScopeTypeNil(b bool)` + + SetScopeTypeNil sets the value for ScopeType to be an explicit nil + +### UnsetScopeType +`func (o *PatchedWritableWirelessLANRequest) UnsetScopeType()` + +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *PatchedWritableWirelessLANRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *PatchedWritableWirelessLANRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *PatchedWritableWirelessLANRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *PatchedWritableWirelessLANRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *PatchedWritableWirelessLANRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *PatchedWritableWirelessLANRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetTenant -`func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -241,6 +313,16 @@ SetAuthType sets AuthType field to given value. HasAuthType returns a boolean if a field has been set. +### SetAuthTypeNil + +`func (o *PatchedWritableWirelessLANRequest) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *PatchedWritableWirelessLANRequest) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil ### GetAuthCipher `func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher` @@ -266,6 +348,16 @@ SetAuthCipher sets AuthCipher field to given value. HasAuthCipher returns a boolean if a field has been set. +### SetAuthCipherNil + +`func (o *PatchedWritableWirelessLANRequest) SetAuthCipherNil(b bool)` + + SetAuthCipherNil sets the value for AuthCipher to be an explicit nil + +### UnsetAuthCipher +`func (o *PatchedWritableWirelessLANRequest) UnsetAuthCipher()` + +UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil ### GetAuthPsk `func (o *PatchedWritableWirelessLANRequest) GetAuthPsk() string` diff --git a/docs/PatchedWritableWirelessLinkRequest.md b/docs/PatchedWritableWirelessLinkRequest.md index a04db8cf46..3c6e2c2af8 100644 --- a/docs/PatchedWritableWirelessLinkRequest.md +++ b/docs/PatchedWritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] -**InterfaceB** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] +**InterfaceA** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] +**InterfaceB** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**NullableAuthenticationType1**](AuthenticationType1.md) | | [optional] +**AuthCipher** | Pointer to [**NullableAuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableCircuitRequestDistanceUnit**](CircuitRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -38,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. @@ -63,20 +65,20 @@ HasInterfaceA returns a boolean if a field has been set. ### GetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -113,20 +115,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, 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 *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -138,20 +140,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -196,6 +198,16 @@ SetAuthType sets AuthType field to given value. HasAuthType returns a boolean if a field has been set. +### SetAuthTypeNil + +`func (o *PatchedWritableWirelessLinkRequest) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *PatchedWritableWirelessLinkRequest) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil ### GetAuthCipher `func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher` @@ -221,6 +233,16 @@ SetAuthCipher sets AuthCipher field to given value. HasAuthCipher returns a boolean if a field has been set. +### SetAuthCipherNil + +`func (o *PatchedWritableWirelessLinkRequest) SetAuthCipherNil(b bool)` + + SetAuthCipherNil sets the value for AuthCipher to be an explicit nil + +### UnsetAuthCipher +`func (o *PatchedWritableWirelessLinkRequest) UnsetAuthCipher()` + +UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil ### GetAuthPsk `func (o *PatchedWritableWirelessLinkRequest) GetAuthPsk() string` @@ -246,6 +268,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *PatchedWritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() CircuitRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *PatchedWritableWirelessLinkRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *PatchedWritableWirelessLinkRequest) GetDescription() string` diff --git a/docs/Platform.md b/docs/Platform.md index abceb730ab..7680b41559 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -6,18 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] -**VirtualmachineCount** | **int64** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewPlatform -`func NewPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *Platform` +`func NewPlatform(id int32, url string, display string, name string, slug string, ) *Platform` NewPlatform instantiates a new Platform object This constructor will assign default values to properties that have it defined, @@ -72,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Platform) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Platform) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Platform) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Platform) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Platform) GetDisplay() string` @@ -132,6 +164,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *Platform) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *Platform) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *Platform) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *Platform) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *Platform) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *Platform) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, 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 *Platform) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *Platform) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *Platform) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *Platform) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *Platform) GetDescription() string` @@ -157,6 +259,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Platform) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Platform) 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 *Platform) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Platform) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Platform) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Platform) 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 *Platform) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Platform) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Platform) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Platform) 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 *Platform) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Platform) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Platform) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Platform) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Platform) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Platform) 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 *Platform) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Platform) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Platform) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Platform) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Platform) GetDeviceCount() int64` @@ -176,6 +398,11 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *Platform) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. ### GetVirtualmachineCount @@ -196,6 +423,11 @@ and a boolean to check if the value has been set. SetVirtualmachineCount sets VirtualmachineCount field to given value. +### HasVirtualmachineCount + +`func (o *Platform) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/PlatformRequest.md b/docs/PlatformRequest.md index 39c7230e55..160d7324ae 100644 --- a/docs/PlatformRequest.md +++ b/docs/PlatformRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PlatformRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *PlatformRequest) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *PlatformRequest) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *PlatformRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *PlatformRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *PlatformRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *PlatformRequest) GetDescription() string` @@ -92,6 +166,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *PlatformRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PlatformRequest) 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 *PlatformRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PlatformRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PlatformRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PlatformRequest) 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 *PlatformRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PlatformRequest) HasCustomFields() bool` + +HasCustomFields 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/PowerFeed 2.md b/docs/PowerFeed 2.md new file mode 100644 index 0000000000..d1fe1f2363 --- /dev/null +++ b/docs/PowerFeed 2.md @@ -0,0 +1,759 @@ +# PowerFeed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**PowerPanel** | [**PowerPanel**](PowerPanel.md) | | +**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Name** | **string** | | +**Status** | Pointer to [**PowerFeedStatus**](PowerFeedStatus.md) | | [optional] +**Type** | Pointer to [**PowerFeedType**](PowerFeedType.md) | | [optional] +**Supply** | Pointer to [**PowerFeedSupply**](PowerFeedSupply.md) | | [optional] +**Phase** | Pointer to [**PowerFeedPhase**](PowerFeedPhase.md) | | [optional] +**Voltage** | Pointer to **int32** | | [optional] +**Amperage** | Pointer to **int32** | | [optional] +**MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**CableEnd** | **string** | | [readonly] +**LinkPeers** | **[]interface{}** | | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**ConnectedEndpoints** | **[]interface{}** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsReachable** | **bool** | | [readonly] +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**Occupied** | **bool** | | [readonly] + +## Methods + +### NewPowerFeed + +`func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` + +NewPowerFeed instantiates a new PowerFeed 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 + +### NewPowerFeedWithDefaults + +`func NewPowerFeedWithDefaults() *PowerFeed` + +NewPowerFeedWithDefaults instantiates a new PowerFeed 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 *PowerFeed) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PowerFeed) 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 *PowerFeed) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *PowerFeed) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *PowerFeed) 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 *PowerFeed) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *PowerFeed) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *PowerFeed) 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 *PowerFeed) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetPowerPanel + +`func (o *PowerFeed) GetPowerPanel() PowerPanel` + +GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. + +### GetPowerPanelOk + +`func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool)` + +GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPanel + +`func (o *PowerFeed) SetPowerPanel(v PowerPanel)` + +SetPowerPanel sets PowerPanel field to given value. + + +### GetRack + +`func (o *PowerFeed) GetRack() Rack` + +GetRack returns the Rack field if non-nil, zero value otherwise. + +### GetRackOk + +`func (o *PowerFeed) GetRackOk() (*Rack, bool)` + +GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRack + +`func (o *PowerFeed) SetRack(v Rack)` + +SetRack sets Rack field to given value. + +### HasRack + +`func (o *PowerFeed) HasRack() bool` + +HasRack returns a boolean if a field has been set. + +### SetRackNil + +`func (o *PowerFeed) SetRackNil(b bool)` + + SetRackNil sets the value for Rack to be an explicit nil + +### UnsetRack +`func (o *PowerFeed) UnsetRack()` + +UnsetRack ensures that no value is present for Rack, not even an explicit nil +### GetName + +`func (o *PowerFeed) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PowerFeed) 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 *PowerFeed) SetName(v string)` + +SetName sets Name field to given value. + + +### GetStatus + +`func (o *PowerFeed) GetStatus() PowerFeedStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PowerFeed) GetStatusOk() (*PowerFeedStatus, 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 *PowerFeed) SetStatus(v PowerFeedStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PowerFeed) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetType + +`func (o *PowerFeed) GetType() PowerFeedType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerFeed) GetTypeOk() (*PowerFeedType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerFeed) SetType(v PowerFeedType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerFeed) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetSupply + +`func (o *PowerFeed) GetSupply() PowerFeedSupply` + +GetSupply returns the Supply field if non-nil, zero value otherwise. + +### GetSupplyOk + +`func (o *PowerFeed) GetSupplyOk() (*PowerFeedSupply, bool)` + +GetSupplyOk returns a tuple with the Supply field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupply + +`func (o *PowerFeed) SetSupply(v PowerFeedSupply)` + +SetSupply sets Supply field to given value. + +### HasSupply + +`func (o *PowerFeed) HasSupply() bool` + +HasSupply returns a boolean if a field has been set. + +### GetPhase + +`func (o *PowerFeed) GetPhase() PowerFeedPhase` + +GetPhase returns the Phase field if non-nil, zero value otherwise. + +### GetPhaseOk + +`func (o *PowerFeed) GetPhaseOk() (*PowerFeedPhase, bool)` + +GetPhaseOk returns a tuple with the Phase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhase + +`func (o *PowerFeed) SetPhase(v PowerFeedPhase)` + +SetPhase sets Phase field to given value. + +### HasPhase + +`func (o *PowerFeed) HasPhase() bool` + +HasPhase returns a boolean if a field has been set. + +### GetVoltage + +`func (o *PowerFeed) GetVoltage() int32` + +GetVoltage returns the Voltage field if non-nil, zero value otherwise. + +### GetVoltageOk + +`func (o *PowerFeed) GetVoltageOk() (*int32, bool)` + +GetVoltageOk returns a tuple with the Voltage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoltage + +`func (o *PowerFeed) SetVoltage(v int32)` + +SetVoltage sets Voltage field to given value. + +### HasVoltage + +`func (o *PowerFeed) HasVoltage() bool` + +HasVoltage returns a boolean if a field has been set. + +### GetAmperage + +`func (o *PowerFeed) GetAmperage() int32` + +GetAmperage returns the Amperage field if non-nil, zero value otherwise. + +### GetAmperageOk + +`func (o *PowerFeed) GetAmperageOk() (*int32, bool)` + +GetAmperageOk returns a tuple with the Amperage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmperage + +`func (o *PowerFeed) SetAmperage(v int32)` + +SetAmperage sets Amperage field to given value. + +### HasAmperage + +`func (o *PowerFeed) HasAmperage() bool` + +HasAmperage returns a boolean if a field has been set. + +### GetMaxUtilization + +`func (o *PowerFeed) GetMaxUtilization() int32` + +GetMaxUtilization returns the MaxUtilization field if non-nil, zero value otherwise. + +### GetMaxUtilizationOk + +`func (o *PowerFeed) GetMaxUtilizationOk() (*int32, bool)` + +GetMaxUtilizationOk returns a tuple with the MaxUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxUtilization + +`func (o *PowerFeed) SetMaxUtilization(v int32)` + +SetMaxUtilization sets MaxUtilization field to given value. + +### HasMaxUtilization + +`func (o *PowerFeed) HasMaxUtilization() bool` + +HasMaxUtilization returns a boolean if a field has been set. + +### GetMarkConnected + +`func (o *PowerFeed) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerFeed) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerFeed) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerFeed) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetCable + +`func (o *PowerFeed) GetCable() Cable` + +GetCable returns the Cable field if non-nil, zero value otherwise. + +### GetCableOk + +`func (o *PowerFeed) GetCableOk() (*Cable, bool)` + +GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCable + +`func (o *PowerFeed) SetCable(v Cable)` + +SetCable sets Cable field to given value. + + +### SetCableNil + +`func (o *PowerFeed) SetCableNil(b bool)` + + SetCableNil sets the value for Cable to be an explicit nil + +### UnsetCable +`func (o *PowerFeed) UnsetCable()` + +UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetCableEnd + +`func (o *PowerFeed) GetCableEnd() string` + +GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. + +### GetCableEndOk + +`func (o *PowerFeed) GetCableEndOk() (*string, bool)` + +GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCableEnd + +`func (o *PowerFeed) SetCableEnd(v string)` + +SetCableEnd sets CableEnd field to given value. + + +### GetLinkPeers + +`func (o *PowerFeed) GetLinkPeers() []interface{}` + +GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. + +### GetLinkPeersOk + +`func (o *PowerFeed) GetLinkPeersOk() (*[]interface{}, bool)` + +GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeers + +`func (o *PowerFeed) SetLinkPeers(v []interface{})` + +SetLinkPeers sets LinkPeers field to given value. + + +### GetLinkPeersType + +`func (o *PowerFeed) GetLinkPeersType() string` + +GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. + +### GetLinkPeersTypeOk + +`func (o *PowerFeed) GetLinkPeersTypeOk() (*string, bool)` + +GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeersType + +`func (o *PowerFeed) SetLinkPeersType(v string)` + +SetLinkPeersType sets LinkPeersType field to given value. + + +### GetConnectedEndpoints + +`func (o *PowerFeed) GetConnectedEndpoints() []interface{}` + +GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. + +### GetConnectedEndpointsOk + +`func (o *PowerFeed) GetConnectedEndpointsOk() (*[]interface{}, bool)` + +GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpoints + +`func (o *PowerFeed) SetConnectedEndpoints(v []interface{})` + +SetConnectedEndpoints sets ConnectedEndpoints field to given value. + + +### GetConnectedEndpointsType + +`func (o *PowerFeed) GetConnectedEndpointsType() string` + +GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. + +### GetConnectedEndpointsTypeOk + +`func (o *PowerFeed) GetConnectedEndpointsTypeOk() (*string, bool)` + +GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsType + +`func (o *PowerFeed) SetConnectedEndpointsType(v string)` + +SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. + + +### GetConnectedEndpointsReachable + +`func (o *PowerFeed) GetConnectedEndpointsReachable() bool` + +GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. + +### GetConnectedEndpointsReachableOk + +`func (o *PowerFeed) GetConnectedEndpointsReachableOk() (*bool, bool)` + +GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsReachable + +`func (o *PowerFeed) SetConnectedEndpointsReachable(v bool)` + +SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. + + +### GetDescription + +`func (o *PowerFeed) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PowerFeed) 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 *PowerFeed) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PowerFeed) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *PowerFeed) GetTenant() Tenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PowerFeed) GetTenantOk() (*Tenant, 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 Tenant)` + +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` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerFeed) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerFeed) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerFeed) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerFeed) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerFeed) 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 *PowerFeed) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerFeed) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerFeed) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerFeed) 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 *PowerFeed) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerFeed) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *PowerFeed) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerFeed) 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 *PowerFeed) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerFeed) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerFeed) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerFeed) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerFeed) 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 *PowerFeed) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerFeed) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerFeed) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetOccupied + +`func (o *PowerFeed) GetOccupied() bool` + +GetOccupied returns the Occupied field if non-nil, zero value otherwise. + +### GetOccupiedOk + +`func (o *PowerFeed) GetOccupiedOk() (*bool, bool)` + +GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOccupied + +`func (o *PowerFeed) SetOccupied(v bool)` + +SetOccupied sets Occupied 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/PowerFeed.md b/docs/PowerFeed.md index d1fe1f2363..5ae2188563 100644 --- a/docs/PowerFeed.md +++ b/docs/PowerFeed.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**PowerPanel** | [**PowerPanel**](PowerPanel.md) | | -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**PowerPanel** | [**BriefPowerPanel**](BriefPowerPanel.md) | | +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PowerFeedStatus**](PowerFeedStatus.md) | | [optional] **Type** | Pointer to [**PowerFeedType**](PowerFeedType.md) | | [optional] @@ -18,27 +19,27 @@ Name | Type | Description | Notes **Amperage** | Pointer to **int32** | | [optional] **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] -**ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] +**ConnectedEndpoints** | Pointer to **[]interface{}** | | [optional] [readonly] +**ConnectedEndpointsType** | Pointer to **NullableString** | | [optional] [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewPowerFeed -`func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` +`func NewPowerFeed(id int32, url string, display string, powerPanel BriefPowerPanel, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool, ) *PowerFeed` NewPowerFeed instantiates a new PowerFeed object This constructor will assign default values to properties that have it defined, @@ -93,6 +94,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerFeed) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerFeed) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerFeed) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerFeed) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerFeed) GetDisplay() string` @@ -115,40 +141,40 @@ SetDisplay sets Display field to given value. ### GetPowerPanel -`func (o *PowerFeed) GetPowerPanel() PowerPanel` +`func (o *PowerFeed) GetPowerPanel() BriefPowerPanel` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool)` +`func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeed) SetPowerPanel(v PowerPanel)` +`func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeed) GetRack() Rack` +`func (o *PowerFeed) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeed) GetRackOk() (*Rack, bool)` +`func (o *PowerFeed) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeed) SetRack(v Rack)` +`func (o *PowerFeed) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -390,23 +416,28 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerFeed) GetCable() Cable` +`func (o *PowerFeed) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerFeed) GetCableOk() (*Cable, bool)` +`func (o *PowerFeed) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerFeed) SetCable(v Cable)` +`func (o *PowerFeed) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *PowerFeed) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -477,7 +508,22 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### HasLinkPeersType + +`func (o *PowerFeed) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *PowerFeed) SetLinkPeersTypeNil(b bool)` + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerFeed) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerFeed) GetConnectedEndpoints() []interface{}` @@ -497,7 +543,22 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### HasConnectedEndpoints + +`func (o *PowerFeed) HasConnectedEndpoints() bool` + +HasConnectedEndpoints returns a boolean if a field has been set. + +### SetConnectedEndpointsNil +`func (o *PowerFeed) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerFeed) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerFeed) GetConnectedEndpointsType() string` @@ -517,7 +578,22 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### HasConnectedEndpointsType + +`func (o *PowerFeed) HasConnectedEndpointsType() bool` +HasConnectedEndpointsType returns a boolean if a field has been set. + +### SetConnectedEndpointsTypeNil + +`func (o *PowerFeed) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerFeed) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerFeed) GetConnectedEndpointsReachable() bool` @@ -565,20 +641,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeed) GetTenant() Tenant` +`func (o *PowerFeed) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeed) GetTenantOk() (*Tenant, bool)` +`func (o *PowerFeed) GetTenantOk() (*BriefTenant, 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 Tenant)` +`func (o *PowerFeed) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -692,6 +768,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *PowerFeed) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -722,6 +803,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *PowerFeed) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/PowerFeedRequest.md b/docs/PowerFeedRequest.md index d72dbffb67..a08360ebc8 100644 --- a/docs/PowerFeedRequest.md +++ b/docs/PowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +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 [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewPowerFeedRequest -`func NewPowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *PowerFeedRequest` +`func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *PowerFeedRequest` NewPowerFeedRequest instantiates a new PowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeedRequest) GetRack() RackRequest` +`func (o *PowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeedRequest) SetRack(v RackRequest)` +`func (o *PowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeedRequest) GetTenant() TenantRequest` +`func (o *PowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, 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 TenantRequest)` +`func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerFeedSupply 2.md b/docs/PowerFeedSupply 2.md new file mode 100644 index 0000000000..6f202d6978 --- /dev/null +++ b/docs/PowerFeedSupply 2.md @@ -0,0 +1,82 @@ +# PowerFeedSupply + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritablePowerFeedRequestSupply**](PatchedWritablePowerFeedRequestSupply.md) | | [optional] +**Label** | Pointer to [**PowerFeedSupplyLabel**](PowerFeedSupplyLabel.md) | | [optional] + +## Methods + +### NewPowerFeedSupply + +`func NewPowerFeedSupply() *PowerFeedSupply` + +NewPowerFeedSupply instantiates a new PowerFeedSupply 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 + +### NewPowerFeedSupplyWithDefaults + +`func NewPowerFeedSupplyWithDefaults() *PowerFeedSupply` + +NewPowerFeedSupplyWithDefaults instantiates a new PowerFeedSupply 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 *PowerFeedSupply) GetValue() PatchedWritablePowerFeedRequestSupply` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerFeedSupply) GetValueOk() (*PatchedWritablePowerFeedRequestSupply, 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 *PowerFeedSupply) SetValue(v PatchedWritablePowerFeedRequestSupply)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PowerFeedSupply) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *PowerFeedSupply) GetLabel() PowerFeedSupplyLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerFeedSupply) GetLabelOk() (*PowerFeedSupplyLabel, 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 *PowerFeedSupply) SetLabel(v PowerFeedSupplyLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerFeedSupply) 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/PowerOutlet 2.md b/docs/PowerOutlet 2.md new file mode 100644 index 0000000000..488ae2777c --- /dev/null +++ b/docs/PowerOutlet 2.md @@ -0,0 +1,649 @@ +# PowerOutlet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**Device**](Device.md) | | +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPort**](PowerPort.md) | | [optional] +**FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**CableEnd** | **string** | | [readonly] +**LinkPeers** | **[]interface{}** | | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**ConnectedEndpoints** | **[]interface{}** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsReachable** | **bool** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**Occupied** | **bool** | | [readonly] + +## Methods + +### NewPowerOutlet + +`func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` + +NewPowerOutlet instantiates a new PowerOutlet 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 + +### NewPowerOutletWithDefaults + +`func NewPowerOutletWithDefaults() *PowerOutlet` + +NewPowerOutletWithDefaults instantiates a new PowerOutlet 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 *PowerOutlet) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *PowerOutlet) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *PowerOutlet) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *PowerOutlet) GetDevice() Device` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *PowerOutlet) GetDeviceOk() (*Device, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *PowerOutlet) SetDevice(v Device)` + +SetDevice sets Device field to given value. + + +### GetModule + +`func (o *PowerOutlet) GetModule() Module` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerOutlet) GetModuleOk() (*Module, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerOutlet) SetModule(v Module)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerOutlet) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerOutlet) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerOutlet) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil +### GetName + +`func (o *PowerOutlet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *PowerOutlet) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerOutlet) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerOutlet) GetType() PowerOutletType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerOutlet) GetTypeOk() (*PowerOutletType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerOutlet) SetType(v PowerOutletType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerOutlet) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerOutlet) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerOutlet) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetPowerPort + +`func (o *PowerOutlet) GetPowerPort() PowerPort` + +GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. + +### GetPowerPortOk + +`func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool)` + +GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPort + +`func (o *PowerOutlet) SetPowerPort(v PowerPort)` + +SetPowerPort sets PowerPort field to given value. + +### HasPowerPort + +`func (o *PowerOutlet) HasPowerPort() bool` + +HasPowerPort returns a boolean if a field has been set. + +### SetPowerPortNil + +`func (o *PowerOutlet) SetPowerPortNil(b bool)` + + SetPowerPortNil sets the value for PowerPort to be an explicit nil + +### UnsetPowerPort +`func (o *PowerOutlet) UnsetPowerPort()` + +UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil +### GetFeedLeg + +`func (o *PowerOutlet) GetFeedLeg() PowerOutletFeedLeg` + +GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise. + +### GetFeedLegOk + +`func (o *PowerOutlet) GetFeedLegOk() (*PowerOutletFeedLeg, bool)` + +GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedLeg + +`func (o *PowerOutlet) SetFeedLeg(v PowerOutletFeedLeg)` + +SetFeedLeg sets FeedLeg field to given value. + +### HasFeedLeg + +`func (o *PowerOutlet) HasFeedLeg() bool` + +HasFeedLeg returns a boolean if a field has been set. + +### SetFeedLegNil + +`func (o *PowerOutlet) SetFeedLegNil(b bool)` + + SetFeedLegNil sets the value for FeedLeg to be an explicit nil + +### UnsetFeedLeg +`func (o *PowerOutlet) UnsetFeedLeg()` + +UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil +### GetDescription + +`func (o *PowerOutlet) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PowerOutlet) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMarkConnected + +`func (o *PowerOutlet) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerOutlet) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerOutlet) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerOutlet) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetCable + +`func (o *PowerOutlet) GetCable() Cable` + +GetCable returns the Cable field if non-nil, zero value otherwise. + +### GetCableOk + +`func (o *PowerOutlet) GetCableOk() (*Cable, bool)` + +GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCable + +`func (o *PowerOutlet) SetCable(v Cable)` + +SetCable sets Cable field to given value. + + +### SetCableNil + +`func (o *PowerOutlet) SetCableNil(b bool)` + + SetCableNil sets the value for Cable to be an explicit nil + +### UnsetCable +`func (o *PowerOutlet) UnsetCable()` + +UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetCableEnd + +`func (o *PowerOutlet) GetCableEnd() string` + +GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. + +### GetCableEndOk + +`func (o *PowerOutlet) GetCableEndOk() (*string, bool)` + +GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCableEnd + +`func (o *PowerOutlet) SetCableEnd(v string)` + +SetCableEnd sets CableEnd field to given value. + + +### GetLinkPeers + +`func (o *PowerOutlet) GetLinkPeers() []interface{}` + +GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. + +### GetLinkPeersOk + +`func (o *PowerOutlet) GetLinkPeersOk() (*[]interface{}, bool)` + +GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeers + +`func (o *PowerOutlet) SetLinkPeers(v []interface{})` + +SetLinkPeers sets LinkPeers field to given value. + + +### GetLinkPeersType + +`func (o *PowerOutlet) GetLinkPeersType() string` + +GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. + +### GetLinkPeersTypeOk + +`func (o *PowerOutlet) GetLinkPeersTypeOk() (*string, bool)` + +GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeersType + +`func (o *PowerOutlet) SetLinkPeersType(v string)` + +SetLinkPeersType sets LinkPeersType field to given value. + + +### GetConnectedEndpoints + +`func (o *PowerOutlet) GetConnectedEndpoints() []interface{}` + +GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. + +### GetConnectedEndpointsOk + +`func (o *PowerOutlet) GetConnectedEndpointsOk() (*[]interface{}, bool)` + +GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpoints + +`func (o *PowerOutlet) SetConnectedEndpoints(v []interface{})` + +SetConnectedEndpoints sets ConnectedEndpoints field to given value. + + +### GetConnectedEndpointsType + +`func (o *PowerOutlet) GetConnectedEndpointsType() string` + +GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. + +### GetConnectedEndpointsTypeOk + +`func (o *PowerOutlet) GetConnectedEndpointsTypeOk() (*string, bool)` + +GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsType + +`func (o *PowerOutlet) SetConnectedEndpointsType(v string)` + +SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. + + +### GetConnectedEndpointsReachable + +`func (o *PowerOutlet) GetConnectedEndpointsReachable() bool` + +GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. + +### GetConnectedEndpointsReachableOk + +`func (o *PowerOutlet) GetConnectedEndpointsReachableOk() (*bool, bool)` + +GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsReachable + +`func (o *PowerOutlet) SetConnectedEndpointsReachable(v bool)` + +SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. + + +### GetTags + +`func (o *PowerOutlet) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerOutlet) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerOutlet) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerOutlet) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *PowerOutlet) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerOutlet) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerOutlet) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerOutlet) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerOutlet) 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 *PowerOutlet) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerOutlet) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerOutlet) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetOccupied + +`func (o *PowerOutlet) GetOccupied() bool` + +GetOccupied returns the Occupied field if non-nil, zero value otherwise. + +### GetOccupiedOk + +`func (o *PowerOutlet) GetOccupiedOk() (*bool, bool)` + +GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOccupied + +`func (o *PowerOutlet) SetOccupied(v bool)` + +SetOccupied sets Occupied 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/PowerOutlet.md b/docs/PowerOutlet.md index 488ae2777c..b94ea6c3cf 100644 --- a/docs/PowerOutlet.md +++ b/docs/PowerOutlet.md @@ -6,34 +6,36 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPort**](PowerPort.md) | | [optional] +**Color** | Pointer to **string** | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPort**](BriefPowerPort.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] -**ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] +**ConnectedEndpoints** | Pointer to **[]interface{}** | | [optional] [readonly] +**ConnectedEndpointsType** | Pointer to **NullableString** | | [optional] [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewPowerOutlet -`func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` +`func NewPowerOutlet(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool, ) *PowerOutlet` NewPowerOutlet instantiates a new PowerOutlet object This constructor will assign default values to properties that have it defined, @@ -88,6 +90,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerOutlet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerOutlet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerOutlet) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerOutlet) GetDisplay() string` @@ -110,40 +137,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerOutlet) GetDevice() Device` +`func (o *PowerOutlet) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutlet) GetDeviceOk() (*Device, bool)` +`func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutlet) SetDevice(v Device)` +`func (o *PowerOutlet) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutlet) GetModule() Module` +`func (o *PowerOutlet) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutlet) GetModuleOk() (*Module, bool)` +`func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutlet) SetModule(v Module)` +`func (o *PowerOutlet) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -243,22 +270,47 @@ HasType returns a boolean if a field has been set. `func (o *PowerOutlet) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil +### GetColor + +`func (o *PowerOutlet) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *PowerOutlet) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *PowerOutlet) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *PowerOutlet) HasColor() bool` + +HasColor returns a boolean if a field has been set. + ### GetPowerPort -`func (o *PowerOutlet) GetPowerPort() PowerPort` +`func (o *PowerOutlet) GetPowerPort() BriefPowerPort` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool)` +`func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutlet) SetPowerPort(v PowerPort)` +`func (o *PowerOutlet) SetPowerPort(v BriefPowerPort)` SetPowerPort sets PowerPort field to given value. @@ -365,23 +417,28 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerOutlet) GetCable() Cable` +`func (o *PowerOutlet) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerOutlet) GetCableOk() (*Cable, bool)` +`func (o *PowerOutlet) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerOutlet) SetCable(v Cable)` +`func (o *PowerOutlet) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *PowerOutlet) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -452,7 +509,22 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### HasLinkPeersType + +`func (o *PowerOutlet) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *PowerOutlet) SetLinkPeersTypeNil(b bool)` + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerOutlet) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerOutlet) GetConnectedEndpoints() []interface{}` @@ -472,7 +544,22 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### HasConnectedEndpoints + +`func (o *PowerOutlet) HasConnectedEndpoints() bool` + +HasConnectedEndpoints returns a boolean if a field has been set. + +### SetConnectedEndpointsNil + +`func (o *PowerOutlet) SetConnectedEndpointsNil(b bool)` + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerOutlet) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerOutlet) GetConnectedEndpointsType() string` @@ -492,7 +579,22 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### HasConnectedEndpointsType + +`func (o *PowerOutlet) HasConnectedEndpointsType() bool` + +HasConnectedEndpointsType returns a boolean if a field has been set. + +### SetConnectedEndpointsTypeNil + +`func (o *PowerOutlet) SetConnectedEndpointsTypeNil(b bool)` + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerOutlet) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerOutlet) GetConnectedEndpointsReachable() bool` @@ -582,6 +684,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *PowerOutlet) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -612,6 +719,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *PowerOutlet) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/PowerOutletFeedLegValue 2.md b/docs/PowerOutletFeedLegValue 2.md new file mode 100644 index 0000000000..f602d83af1 --- /dev/null +++ b/docs/PowerOutletFeedLegValue 2.md @@ -0,0 +1,17 @@ +# PowerOutletFeedLegValue + +## Enum + + +* `A` (value: `"A"`) + +* `B` (value: `"B"`) + +* `C` (value: `"C"`) + +* `EMPTY` (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/PowerOutletRequest.md b/docs/PowerOutletRequest.md index 13dda02fda..018b8009ad 100644 --- a/docs/PowerOutletRequest.md +++ b/docs/PowerOutletRequest.md @@ -4,12 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] +**Color** | Pointer to **string** | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewPowerOutletRequest -`func NewPowerOutletRequest(device DeviceRequest, name string, ) *PowerOutletRequest` +`func NewPowerOutletRequest(device BriefDeviceRequest, name string, ) *PowerOutletRequest` NewPowerOutletRequest instantiates a new PowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutletRequest) GetModule() ModuleRequest` +`func (o *PowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -137,20 +138,20 @@ HasLabel returns a boolean if a field has been set. ### GetType -`func (o *PowerOutletRequest) GetType() PowerOutletRequestType` +`func (o *PowerOutletRequest) GetType() PatchedWritablePowerOutletTemplateRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PowerOutletRequest) GetTypeOk() (*PowerOutletRequestType, bool)` +`func (o *PowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PowerOutletRequest) SetType(v PowerOutletRequestType)` +`func (o *PowerOutletRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType)` SetType sets Type field to given value. @@ -170,22 +171,47 @@ HasType returns a boolean if a field has been set. `func (o *PowerOutletRequest) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil +### GetColor + +`func (o *PowerOutletRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *PowerOutletRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *PowerOutletRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *PowerOutletRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + ### GetPowerPort -`func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTemplate 2.md b/docs/PowerOutletTemplate 2.md new file mode 100644 index 0000000000..f682defafd --- /dev/null +++ b/docs/PowerOutletTemplate 2.md @@ -0,0 +1,408 @@ +# PowerOutletTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**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 [**NullablePowerPortTemplate**](PowerPortTemplate.md) | | [optional] +**FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] + +## Methods + +### NewPowerOutletTemplate + +`func NewPowerOutletTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerOutletTemplate` + +NewPowerOutletTemplate instantiates a new PowerOutletTemplate 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 + +### NewPowerOutletTemplateWithDefaults + +`func NewPowerOutletTemplateWithDefaults() *PowerOutletTemplate` + +NewPowerOutletTemplateWithDefaults instantiates a new PowerOutletTemplate 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 *PowerOutletTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *PowerOutletTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *PowerOutletTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDeviceType + +`func (o *PowerOutletTemplate) GetDeviceType() DeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerOutletTemplate) SetDeviceType(v DeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerOutletTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerOutletTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerOutletTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerOutletTemplate) GetModuleType() ModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerOutletTemplate) SetModuleType(v ModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerOutletTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerOutletTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerOutletTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +### GetName + +`func (o *PowerOutletTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetLabel + +`func (o *PowerOutletTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerOutletTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerOutletTemplate) GetType() PowerOutletType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerOutletTemplate) GetTypeOk() (*PowerOutletType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerOutletTemplate) SetType(v PowerOutletType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerOutletTemplate) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerOutletTemplate) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerOutletTemplate) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetPowerPort + +`func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate` + +GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. + +### GetPowerPortOk + +`func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool)` + +GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPort + +`func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate)` + +SetPowerPort sets PowerPort field to given value. + +### HasPowerPort + +`func (o *PowerOutletTemplate) HasPowerPort() bool` + +HasPowerPort returns a boolean if a field has been set. + +### SetPowerPortNil + +`func (o *PowerOutletTemplate) SetPowerPortNil(b bool)` + + SetPowerPortNil sets the value for PowerPort to be an explicit nil + +### UnsetPowerPort +`func (o *PowerOutletTemplate) UnsetPowerPort()` + +UnsetPowerPort ensures that no value is present for PowerPort, not even an explicit nil +### GetFeedLeg + +`func (o *PowerOutletTemplate) GetFeedLeg() PowerOutletFeedLeg` + +GetFeedLeg returns the FeedLeg field if non-nil, zero value otherwise. + +### GetFeedLegOk + +`func (o *PowerOutletTemplate) GetFeedLegOk() (*PowerOutletFeedLeg, bool)` + +GetFeedLegOk returns a tuple with the FeedLeg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedLeg + +`func (o *PowerOutletTemplate) SetFeedLeg(v PowerOutletFeedLeg)` + +SetFeedLeg sets FeedLeg field to given value. + +### HasFeedLeg + +`func (o *PowerOutletTemplate) HasFeedLeg() bool` + +HasFeedLeg returns a boolean if a field has been set. + +### SetFeedLegNil + +`func (o *PowerOutletTemplate) SetFeedLegNil(b bool)` + + SetFeedLegNil sets the value for FeedLeg to be an explicit nil + +### UnsetFeedLeg +`func (o *PowerOutletTemplate) UnsetFeedLeg()` + +UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil +### GetDescription + +`func (o *PowerOutletTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PowerOutletTemplate) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCreated + +`func (o *PowerOutletTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerOutletTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerOutletTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerOutletTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerOutletTemplate) 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 *PowerOutletTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerOutletTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerOutletTemplate) 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/PowerOutletTemplate.md b/docs/PowerOutletTemplate.md index f682defafd..3743da9fd1 100644 --- a/docs/PowerOutletTemplate.md +++ b/docs/PowerOutletTemplate.md @@ -7,22 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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 [**NullablePowerPortTemplate**](PowerPortTemplate.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplate**](BriefPowerPortTemplate.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewPowerOutletTemplate -`func NewPowerOutletTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerOutletTemplate` +`func NewPowerOutletTemplate(id int32, url string, display string, name string, ) *PowerOutletTemplate` NewPowerOutletTemplate instantiates a new PowerOutletTemplate object This constructor will assign default values to properties that have it defined, @@ -99,20 +99,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *PowerOutletTemplate) GetDeviceType() DeviceType` +`func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplate) SetDeviceType(v DeviceType)` +`func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -134,20 +134,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplate) GetModuleType() ModuleType` +`func (o *PowerOutletTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplate) SetModuleType(v ModuleType)` +`func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -249,20 +249,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate` +`func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool)` +`func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate)` +`func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate)` SetPowerPort sets PowerPort field to given value. @@ -361,6 +361,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *PowerOutletTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -391,6 +396,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *PowerOutletTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md index 36e06e4b63..a86f334e55 100644 --- a/docs/PowerOutletTemplateRequest.md +++ b/docs/PowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -149,20 +149,20 @@ HasLabel returns a boolean if a field has been set. ### GetType -`func (o *PowerOutletTemplateRequest) GetType() PowerOutletRequestType` +`func (o *PowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PowerOutletTemplateRequest) GetTypeOk() (*PowerOutletRequestType, bool)` +`func (o *PowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PowerOutletTemplateRequest) SetType(v PowerOutletRequestType)` +`func (o *PowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType)` SetType sets Type field to given value. @@ -184,20 +184,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletType.md b/docs/PowerOutletType.md index b34b5d8178..dda8e0ba93 100644 --- a/docs/PowerOutletType.md +++ b/docs/PowerOutletType.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] +**Value** | Pointer to [**PowerOutletTypeValue**](PowerOutletTypeValue.md) | | [optional] **Label** | Pointer to [**PowerOutletTypeLabel**](PowerOutletTypeLabel.md) | | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetValue -`func (o *PowerOutletType) GetValue() PatchedWritablePowerOutletTemplateRequestType` +`func (o *PowerOutletType) GetValue() PowerOutletTypeValue` GetValue returns the Value field if non-nil, zero value otherwise. ### GetValueOk -`func (o *PowerOutletType) GetValueOk() (*PatchedWritablePowerOutletTemplateRequestType, bool)` +`func (o *PowerOutletType) GetValueOk() (*PowerOutletTypeValue, 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 *PowerOutletType) SetValue(v PatchedWritablePowerOutletTemplateRequestType)` +`func (o *PowerOutletType) SetValue(v PowerOutletTypeValue)` SetValue sets Value field to given value. diff --git a/docs/PowerOutletTypeLabel.md b/docs/PowerOutletTypeLabel.md index 4df800c349..e612547472 100644 --- a/docs/PowerOutletTypeLabel.md +++ b/docs/PowerOutletTypeLabel.md @@ -125,6 +125,8 @@ * `NEMA_L21_30_R` (value: `"NEMA L21-30R"`) +* `NEMA_L22_20_R` (value: `"NEMA L22-20R"`) + * `NEMA_L22_30_R` (value: `"NEMA L22-30R"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"DC Terminal"`) +* `EATON_C39` (value: `"Eaton C39"`) + * `HDOT_CX` (value: `"HDOT Cx"`) * `SAF_D_GRID` (value: `"Saf-D-Grid"`) diff --git a/docs/PowerOutletRequestType.md b/docs/PowerOutletTypeValue.md similarity index 97% rename from docs/PowerOutletRequestType.md rename to docs/PowerOutletTypeValue.md index c44e44e534..deb69e244b 100644 --- a/docs/PowerOutletRequestType.md +++ b/docs/PowerOutletTypeValue.md @@ -1,4 +1,4 @@ -# PowerOutletRequestType +# PowerOutletTypeValue ## Enum @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"dc-terminal"`) +* `EATON_C39` (value: `"eaton-c39"`) + * `HDOT_CX` (value: `"hdot-cx"`) * `SAF_D_GRID` (value: `"saf-d-grid"`) diff --git a/docs/PowerPanel.md b/docs/PowerPanel.md index 31346d7075..9d45d5cecf 100644 --- a/docs/PowerPanel.md +++ b/docs/PowerPanel.md @@ -6,16 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] **PowerfeedCount** | **int64** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewPowerPanel -`func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *PowerPanel` +`func NewPowerPanel(id int32, url string, display string, site BriefSite, name string, powerfeedCount int64, ) *PowerPanel` NewPowerPanel instantiates a new PowerPanel object This constructor will assign default values to properties that have it defined, @@ -70,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPanel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPanel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPanel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerPanel) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerPanel) GetDisplay() string` @@ -90,6 +123,61 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *PowerPanel) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanel) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanel) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanel) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanel) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanel) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanel) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanel) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanel) GetName() string` @@ -135,6 +223,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanel) 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 *PowerPanel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanel) 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 *PowerPanel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + ### GetPowerfeedCount `func (o *PowerPanel) GetPowerfeedCount() int64` @@ -155,6 +318,76 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. +### GetCreated + +`func (o *PowerPanel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPanel) 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 *PowerPanel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *PowerPanel) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *PowerPanel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPanel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPanel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPanel) 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 *PowerPanel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *PowerPanel) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *PowerPanel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPanel) 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/PowerPanelRequest.md b/docs/PowerPanelRequest.md index 1993a4681d..dbe61e3b7a 100644 --- a/docs/PowerPanelRequest.md +++ b/docs/PowerPanelRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPanelRequest -`func NewPowerPanelRequest(name string, ) *PowerPanelRequest` +`func NewPowerPanelRequest(site BriefSiteRequest, name string, ) *PowerPanelRequest` NewPowerPanelRequest instantiates a new PowerPanelRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,61 @@ NewPowerPanelRequestWithDefaults instantiates a new PowerPanelRequest 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 +### GetSite + +`func (o *PowerPanelRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanelRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanelRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanelRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanelRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanelRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanelRequest) GetName() string` @@ -71,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanelRequest) 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 *PowerPanelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanelRequest) 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 *PowerPanelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanelRequest) HasCustomFields() bool` + +HasCustomFields 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/PowerPort.md b/docs/PowerPort.md index 43c65c7fa9..22f6cdbf90 100644 --- a/docs/PowerPort.md +++ b/docs/PowerPort.md @@ -6,18 +6,35 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] +**CableEnd** | **string** | | [readonly] +**LinkPeers** | **[]interface{}** | | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] +**ConnectedEndpoints** | Pointer to **[]interface{}** | | [optional] [readonly] +**ConnectedEndpointsType** | Pointer to **NullableString** | | [optional] [readonly] +**ConnectedEndpointsReachable** | **bool** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewPowerPort -`func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool, ) *PowerPort` +`func NewPowerPort(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool, ) *PowerPort` NewPowerPort instantiates a new PowerPort object This constructor will assign default values to properties that have it defined, @@ -72,6 +89,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerPort) GetDisplay() string` @@ -94,24 +136,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerPort) GetDevice() Device` +`func (o *PowerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPort) GetDeviceOk() (*Device, bool)` +`func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPort) SetDevice(v Device)` +`func (o *PowerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPort) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPort) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPort) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPort) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPort) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPort) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPort) GetName() string` @@ -132,6 +209,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPort) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPort) 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 *PowerPort) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPort) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPort) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPort) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPort) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPort) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPort) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPort) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPort) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPort) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPort) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPort) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPort) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPort) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPort) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPort) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPort) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPort) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPort) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPort) GetDescription() string` @@ -157,25 +364,55 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPort) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPort) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPort) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPort) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + ### GetCable -`func (o *PowerPort) GetCable() Cable` +`func (o *PowerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerPort) GetCableOk() (*Cable, bool)` +`func (o *PowerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerPort) SetCable(v Cable)` +`func (o *PowerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *PowerPort) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -187,6 +424,291 @@ SetCable sets Cable field to given value. `func (o *PowerPort) UnsetCable()` UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetCableEnd + +`func (o *PowerPort) GetCableEnd() string` + +GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. + +### GetCableEndOk + +`func (o *PowerPort) GetCableEndOk() (*string, bool)` + +GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCableEnd + +`func (o *PowerPort) SetCableEnd(v string)` + +SetCableEnd sets CableEnd field to given value. + + +### GetLinkPeers + +`func (o *PowerPort) GetLinkPeers() []interface{}` + +GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. + +### GetLinkPeersOk + +`func (o *PowerPort) GetLinkPeersOk() (*[]interface{}, bool)` + +GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeers + +`func (o *PowerPort) SetLinkPeers(v []interface{})` + +SetLinkPeers sets LinkPeers field to given value. + + +### GetLinkPeersType + +`func (o *PowerPort) GetLinkPeersType() string` + +GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. + +### GetLinkPeersTypeOk + +`func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool)` + +GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeersType + +`func (o *PowerPort) SetLinkPeersType(v string)` + +SetLinkPeersType sets LinkPeersType field to given value. + +### HasLinkPeersType + +`func (o *PowerPort) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *PowerPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +### GetConnectedEndpoints + +`func (o *PowerPort) GetConnectedEndpoints() []interface{}` + +GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. + +### GetConnectedEndpointsOk + +`func (o *PowerPort) GetConnectedEndpointsOk() (*[]interface{}, bool)` + +GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpoints + +`func (o *PowerPort) SetConnectedEndpoints(v []interface{})` + +SetConnectedEndpoints sets ConnectedEndpoints field to given value. + +### HasConnectedEndpoints + +`func (o *PowerPort) HasConnectedEndpoints() bool` + +HasConnectedEndpoints returns a boolean if a field has been set. + +### SetConnectedEndpointsNil + +`func (o *PowerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil +### GetConnectedEndpointsType + +`func (o *PowerPort) GetConnectedEndpointsType() string` + +GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. + +### GetConnectedEndpointsTypeOk + +`func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool)` + +GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsType + +`func (o *PowerPort) SetConnectedEndpointsType(v string)` + +SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. + +### HasConnectedEndpointsType + +`func (o *PowerPort) HasConnectedEndpointsType() bool` + +HasConnectedEndpointsType returns a boolean if a field has been set. + +### SetConnectedEndpointsTypeNil + +`func (o *PowerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +### GetConnectedEndpointsReachable + +`func (o *PowerPort) GetConnectedEndpointsReachable() bool` + +GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. + +### GetConnectedEndpointsReachableOk + +`func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool)` + +GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsReachable + +`func (o *PowerPort) SetConnectedEndpointsReachable(v bool)` + +SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. + + +### GetTags + +`func (o *PowerPort) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPort) 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 *PowerPort) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPort) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPort) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPort) 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 *PowerPort) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPort) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *PowerPort) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPort) 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 *PowerPort) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *PowerPort) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *PowerPort) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPort) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPort) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPort) 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 *PowerPort) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *PowerPort) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *PowerPort) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPort) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetOccupied `func (o *PowerPort) GetOccupied() bool` diff --git a/docs/PowerPortRequest.md b/docs/PowerPortRequest.md index 5828bf3578..30002e48c4 100644 --- a/docs/PowerPortRequest.md +++ b/docs/PowerPortRequest.md @@ -4,15 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPortRequest -`func NewPowerPortRequest(device DeviceRequest, name string, ) *PowerPortRequest` +`func NewPowerPortRequest(device BriefDeviceRequest, name string, ) *PowerPortRequest` NewPowerPortRequest instantiates a new PowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -29,24 +37,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerPortRequest) GetDevice() DeviceRequest` +`func (o *PowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPortRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPortRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPortRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPortRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPortRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPortRequest) GetName() string` @@ -67,6 +110,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortRequest) 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 *PowerPortRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortRequest) GetType() PatchedWritablePowerPortTemplateRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortRequest) SetType(v PatchedWritablePowerPortTemplateRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortRequest) GetDescription() string` @@ -92,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPortRequest) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPortRequest) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPortRequest) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPortRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPortRequest) 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 *PowerPortRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPortRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPortRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPortRequest) 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 *PowerPortRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPortRequest) HasCustomFields() bool` + +HasCustomFields 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/PowerPortTemplate.md b/docs/PowerPortTemplate.md index 0ddb2e3244..0fffc0e8f0 100644 --- a/docs/PowerPortTemplate.md +++ b/docs/PowerPortTemplate.md @@ -7,8 +7,16 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplate) GetName() string` @@ -109,6 +187,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplate) 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 *PowerPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplate) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplate) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplate) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplate) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplate) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplate) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplate) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplate) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplate) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplate) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplate) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplate) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplate) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplate) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplate) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplate) GetDescription() string` @@ -134,6 +342,76 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *PowerPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPortTemplate) 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 *PowerPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *PowerPortTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *PowerPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPortTemplate) 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 *PowerPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *PowerPortTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *PowerPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPortTemplate) 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/PowerPortTemplateRequest 2.md b/docs/PowerPortTemplateRequest 2.md new file mode 100644 index 0000000000..7c113cd12a --- /dev/null +++ b/docs/PowerPortTemplateRequest 2.md @@ -0,0 +1,77 @@ +# PowerPortTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewPowerPortTemplateRequest + +`func NewPowerPortTemplateRequest(name string, ) *PowerPortTemplateRequest` + +NewPowerPortTemplateRequest instantiates a new PowerPortTemplateRequest 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 + +### NewPowerPortTemplateRequestWithDefaults + +`func NewPowerPortTemplateRequestWithDefaults() *PowerPortTemplateRequest` + +NewPowerPortTemplateRequestWithDefaults instantiates a new PowerPortTemplateRequest 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 *PowerPortTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PowerPortTemplateRequest) 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 *PowerPortTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *PowerPortTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PowerPortTemplateRequest) 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 *PowerPortTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PowerPortTemplateRequest) 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/PowerPortTemplateRequest.md b/docs/PowerPortTemplateRequest.md index 7c113cd12a..3301f0f328 100644 --- a/docs/PowerPortTemplateRequest.md +++ b/docs/PowerPortTemplateRequest.md @@ -4,7 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**NullablePatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -26,6 +32,76 @@ NewPowerPortTemplateRequestWithDefaults instantiates a new PowerPortTemplateRequ 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 +### GetDeviceType + +`func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplateRequest) GetName() string` @@ -46,6 +122,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplateRequest) 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 *PowerPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplateRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplateRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplateRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplateRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplateRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplateRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplateRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplateRequest) GetDescription() string` diff --git a/docs/PowerPortType.md b/docs/PowerPortType.md new file mode 100644 index 0000000000..afb37fc391 --- /dev/null +++ b/docs/PowerPortType.md @@ -0,0 +1,82 @@ +# PowerPortType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PowerPortTypeValue**](PowerPortTypeValue.md) | | [optional] +**Label** | Pointer to [**PowerPortTypeLabel**](PowerPortTypeLabel.md) | | [optional] + +## Methods + +### NewPowerPortType + +`func NewPowerPortType() *PowerPortType` + +NewPowerPortType instantiates a new PowerPortType 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 + +### NewPowerPortTypeWithDefaults + +`func NewPowerPortTypeWithDefaults() *PowerPortType` + +NewPowerPortTypeWithDefaults instantiates a new PowerPortType 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 *PowerPortType) GetValue() PowerPortTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPortType) GetValueOk() (*PowerPortTypeValue, 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 *PowerPortType) SetValue(v PowerPortTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PowerPortType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *PowerPortType) GetLabel() PowerPortTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortType) GetLabelOk() (*PowerPortTypeLabel, 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 *PowerPortType) SetLabel(v PowerPortTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortType) 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/PowerPortTypeLabel.md b/docs/PowerPortTypeLabel.md new file mode 100644 index 0000000000..561079ab0f --- /dev/null +++ b/docs/PowerPortTypeLabel.md @@ -0,0 +1,217 @@ +# PowerPortTypeLabel + +## Enum + + +* `C6` (value: `"C6"`) + +* `C8` (value: `"C8"`) + +* `C14` (value: `"C14"`) + +* `C16` (value: `"C16"`) + +* `C20` (value: `"C20"`) + +* `C22` (value: `"C22"`) + +* `PNE_4_H` (value: `"P+N+E 4H"`) + +* `PNE_6_H` (value: `"P+N+E 6H"`) + +* `PNE_9_H` (value: `"P+N+E 9H"`) + +* `_2_PE_4_H` (value: `"2P+E 4H"`) + +* `_2_PE_6_H` (value: `"2P+E 6H"`) + +* `_2_PE_9_H` (value: `"2P+E 9H"`) + +* `_3_PE_4_H` (value: `"3P+E 4H"`) + +* `_3_PE_6_H` (value: `"3P+E 6H"`) + +* `_3_PE_9_H` (value: `"3P+E 9H"`) + +* `_3_PNE_4_H` (value: `"3P+N+E 4H"`) + +* `_3_PNE_6_H` (value: `"3P+N+E 6H"`) + +* `_3_PNE_9_H` (value: `"3P+N+E 9H"`) + +* `IEC_60906_1` (value: `"IEC 60906-1"`) + +* `_2_PT_10_A__NBR_14136` (value: `"2P+T 10A (NBR 14136)"`) + +* `_2_PT_20_A__NBR_14136` (value: `"2P+T 20A (NBR 14136)"`) + +* `NEMA_1_15_P` (value: `"NEMA 1-15P"`) + +* `NEMA_5_15_P` (value: `"NEMA 5-15P"`) + +* `NEMA_5_20_P` (value: `"NEMA 5-20P"`) + +* `NEMA_5_30_P` (value: `"NEMA 5-30P"`) + +* `NEMA_5_50_P` (value: `"NEMA 5-50P"`) + +* `NEMA_6_15_P` (value: `"NEMA 6-15P"`) + +* `NEMA_6_20_P` (value: `"NEMA 6-20P"`) + +* `NEMA_6_30_P` (value: `"NEMA 6-30P"`) + +* `NEMA_6_50_P` (value: `"NEMA 6-50P"`) + +* `NEMA_10_30_P` (value: `"NEMA 10-30P"`) + +* `NEMA_10_50_P` (value: `"NEMA 10-50P"`) + +* `NEMA_14_20_P` (value: `"NEMA 14-20P"`) + +* `NEMA_14_30_P` (value: `"NEMA 14-30P"`) + +* `NEMA_14_50_P` (value: `"NEMA 14-50P"`) + +* `NEMA_14_60_P` (value: `"NEMA 14-60P"`) + +* `NEMA_15_15_P` (value: `"NEMA 15-15P"`) + +* `NEMA_15_20_P` (value: `"NEMA 15-20P"`) + +* `NEMA_15_30_P` (value: `"NEMA 15-30P"`) + +* `NEMA_15_50_P` (value: `"NEMA 15-50P"`) + +* `NEMA_15_60_P` (value: `"NEMA 15-60P"`) + +* `NEMA_L1_15_P` (value: `"NEMA L1-15P"`) + +* `NEMA_L5_15_P` (value: `"NEMA L5-15P"`) + +* `NEMA_L5_20_P` (value: `"NEMA L5-20P"`) + +* `NEMA_L5_30_P` (value: `"NEMA L5-30P"`) + +* `NEMA_L5_50_P` (value: `"NEMA L5-50P"`) + +* `NEMA_L6_15_P` (value: `"NEMA L6-15P"`) + +* `NEMA_L6_20_P` (value: `"NEMA L6-20P"`) + +* `NEMA_L6_30_P` (value: `"NEMA L6-30P"`) + +* `NEMA_L6_50_P` (value: `"NEMA L6-50P"`) + +* `NEMA_L10_30_P` (value: `"NEMA L10-30P"`) + +* `NEMA_L14_20_P` (value: `"NEMA L14-20P"`) + +* `NEMA_L14_30_P` (value: `"NEMA L14-30P"`) + +* `NEMA_L14_50_P` (value: `"NEMA L14-50P"`) + +* `NEMA_L14_60_P` (value: `"NEMA L14-60P"`) + +* `NEMA_L15_20_P` (value: `"NEMA L15-20P"`) + +* `NEMA_L15_30_P` (value: `"NEMA L15-30P"`) + +* `NEMA_L15_50_P` (value: `"NEMA L15-50P"`) + +* `NEMA_L15_60_P` (value: `"NEMA L15-60P"`) + +* `NEMA_L21_20_P` (value: `"NEMA L21-20P"`) + +* `NEMA_L21_30_P` (value: `"NEMA L21-30P"`) + +* `NEMA_L22_20_P` (value: `"NEMA L22-20P"`) + +* `NEMA_L22_30_P` (value: `"NEMA L22-30P"`) + +* `CS6361_C` (value: `"CS6361C"`) + +* `CS6365_C` (value: `"CS6365C"`) + +* `CS8165_C` (value: `"CS8165C"`) + +* `CS8265_C` (value: `"CS8265C"`) + +* `CS8365_C` (value: `"CS8365C"`) + +* `CS8465_C` (value: `"CS8465C"`) + +* `ITA_TYPE_C__CEE_7_16` (value: `"ITA Type C (CEE 7/16)"`) + +* `ITA_TYPE_E__CEE_7_6` (value: `"ITA Type E (CEE 7/6)"`) + +* `ITA_TYPE_F__CEE_7_4` (value: `"ITA Type F (CEE 7/4)"`) + +* `ITA_TYPE_E_F__CEE_7_7` (value: `"ITA Type E/F (CEE 7/7)"`) + +* `ITA_TYPE_G__BS_1363` (value: `"ITA Type G (BS 1363)"`) + +* `ITA_TYPE_H` (value: `"ITA Type H"`) + +* `ITA_TYPE_I` (value: `"ITA Type I"`) + +* `ITA_TYPE_J` (value: `"ITA Type J"`) + +* `ITA_TYPE_K` (value: `"ITA Type K"`) + +* `ITA_TYPE_L__CEI_23_50` (value: `"ITA Type L (CEI 23-50)"`) + +* `ITA_TYPE_M__BS_546` (value: `"ITA Type M (BS 546)"`) + +* `ITA_TYPE_N` (value: `"ITA Type N"`) + +* `ITA_TYPE_O` (value: `"ITA Type O"`) + +* `USB_TYPE_A` (value: `"USB Type A"`) + +* `USB_TYPE_B` (value: `"USB Type B"`) + +* `USB_TYPE_C` (value: `"USB Type C"`) + +* `USB_MINI_A` (value: `"USB Mini A"`) + +* `USB_MINI_B` (value: `"USB Mini B"`) + +* `USB_MICRO_A` (value: `"USB Micro A"`) + +* `USB_MICRO_B` (value: `"USB Micro B"`) + +* `USB_MICRO_AB` (value: `"USB Micro AB"`) + +* `USB_3_0_TYPE_B` (value: `"USB 3.0 Type B"`) + +* `USB_3_0_MICRO_B` (value: `"USB 3.0 Micro B"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"Molex Micro-Fit 1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"Molex Micro-Fit 2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"Molex Micro-Fit 2x4"`) + +* `DC_TERMINAL` (value: `"DC Terminal"`) + +* `SAF_D_GRID` (value: `"Saf-D-Grid"`) + +* `NEUTRIK_POWER_CON__20_A` (value: `"Neutrik powerCON (20A)"`) + +* `NEUTRIK_POWER_CON__32_A` (value: `"Neutrik powerCON (32A)"`) + +* `NEUTRIK_POWER_CON_TRUE1` (value: `"Neutrik powerCON TRUE1"`) + +* `NEUTRIK_POWER_CON_TRUE1_TOP` (value: `"Neutrik powerCON TRUE1 TOP"`) + +* `UBIQUITI_SMART_POWER` (value: `"Ubiquiti SmartPower"`) + +* `HARDWIRED` (value: `"Hardwired"`) + +* `OTHER` (value: `"Other"`) + + +[[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/PowerPortTypeValue.md b/docs/PowerPortTypeValue.md new file mode 100644 index 0000000000..2aaa018a34 --- /dev/null +++ b/docs/PowerPortTypeValue.md @@ -0,0 +1,219 @@ +# PowerPortTypeValue + +## Enum + + +* `IEC_60320_C6` (value: `"iec-60320-c6"`) + +* `IEC_60320_C8` (value: `"iec-60320-c8"`) + +* `IEC_60320_C14` (value: `"iec-60320-c14"`) + +* `IEC_60320_C16` (value: `"iec-60320-c16"`) + +* `IEC_60320_C20` (value: `"iec-60320-c20"`) + +* `IEC_60320_C22` (value: `"iec-60320-c22"`) + +* `IEC_60309_P_N_E_4H` (value: `"iec-60309-p-n-e-4h"`) + +* `IEC_60309_P_N_E_6H` (value: `"iec-60309-p-n-e-6h"`) + +* `IEC_60309_P_N_E_9H` (value: `"iec-60309-p-n-e-9h"`) + +* `IEC_60309_2P_E_4H` (value: `"iec-60309-2p-e-4h"`) + +* `IEC_60309_2P_E_6H` (value: `"iec-60309-2p-e-6h"`) + +* `IEC_60309_2P_E_9H` (value: `"iec-60309-2p-e-9h"`) + +* `IEC_60309_3P_E_4H` (value: `"iec-60309-3p-e-4h"`) + +* `IEC_60309_3P_E_6H` (value: `"iec-60309-3p-e-6h"`) + +* `IEC_60309_3P_E_9H` (value: `"iec-60309-3p-e-9h"`) + +* `IEC_60309_3P_N_E_4H` (value: `"iec-60309-3p-n-e-4h"`) + +* `IEC_60309_3P_N_E_6H` (value: `"iec-60309-3p-n-e-6h"`) + +* `IEC_60309_3P_N_E_9H` (value: `"iec-60309-3p-n-e-9h"`) + +* `IEC_60906_1` (value: `"iec-60906-1"`) + +* `NBR_14136_10A` (value: `"nbr-14136-10a"`) + +* `NBR_14136_20A` (value: `"nbr-14136-20a"`) + +* `NEMA_1_15P` (value: `"nema-1-15p"`) + +* `NEMA_5_15P` (value: `"nema-5-15p"`) + +* `NEMA_5_20P` (value: `"nema-5-20p"`) + +* `NEMA_5_30P` (value: `"nema-5-30p"`) + +* `NEMA_5_50P` (value: `"nema-5-50p"`) + +* `NEMA_6_15P` (value: `"nema-6-15p"`) + +* `NEMA_6_20P` (value: `"nema-6-20p"`) + +* `NEMA_6_30P` (value: `"nema-6-30p"`) + +* `NEMA_6_50P` (value: `"nema-6-50p"`) + +* `NEMA_10_30P` (value: `"nema-10-30p"`) + +* `NEMA_10_50P` (value: `"nema-10-50p"`) + +* `NEMA_14_20P` (value: `"nema-14-20p"`) + +* `NEMA_14_30P` (value: `"nema-14-30p"`) + +* `NEMA_14_50P` (value: `"nema-14-50p"`) + +* `NEMA_14_60P` (value: `"nema-14-60p"`) + +* `NEMA_15_15P` (value: `"nema-15-15p"`) + +* `NEMA_15_20P` (value: `"nema-15-20p"`) + +* `NEMA_15_30P` (value: `"nema-15-30p"`) + +* `NEMA_15_50P` (value: `"nema-15-50p"`) + +* `NEMA_15_60P` (value: `"nema-15-60p"`) + +* `NEMA_L1_15P` (value: `"nema-l1-15p"`) + +* `NEMA_L5_15P` (value: `"nema-l5-15p"`) + +* `NEMA_L5_20P` (value: `"nema-l5-20p"`) + +* `NEMA_L5_30P` (value: `"nema-l5-30p"`) + +* `NEMA_L5_50P` (value: `"nema-l5-50p"`) + +* `NEMA_L6_15P` (value: `"nema-l6-15p"`) + +* `NEMA_L6_20P` (value: `"nema-l6-20p"`) + +* `NEMA_L6_30P` (value: `"nema-l6-30p"`) + +* `NEMA_L6_50P` (value: `"nema-l6-50p"`) + +* `NEMA_L10_30P` (value: `"nema-l10-30p"`) + +* `NEMA_L14_20P` (value: `"nema-l14-20p"`) + +* `NEMA_L14_30P` (value: `"nema-l14-30p"`) + +* `NEMA_L14_50P` (value: `"nema-l14-50p"`) + +* `NEMA_L14_60P` (value: `"nema-l14-60p"`) + +* `NEMA_L15_20P` (value: `"nema-l15-20p"`) + +* `NEMA_L15_30P` (value: `"nema-l15-30p"`) + +* `NEMA_L15_50P` (value: `"nema-l15-50p"`) + +* `NEMA_L15_60P` (value: `"nema-l15-60p"`) + +* `NEMA_L21_20P` (value: `"nema-l21-20p"`) + +* `NEMA_L21_30P` (value: `"nema-l21-30p"`) + +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + +* `NEMA_L22_30P` (value: `"nema-l22-30p"`) + +* `CS6361C` (value: `"cs6361c"`) + +* `CS6365C` (value: `"cs6365c"`) + +* `CS8165C` (value: `"cs8165c"`) + +* `CS8265C` (value: `"cs8265c"`) + +* `CS8365C` (value: `"cs8365c"`) + +* `CS8465C` (value: `"cs8465c"`) + +* `ITA_C` (value: `"ita-c"`) + +* `ITA_E` (value: `"ita-e"`) + +* `ITA_F` (value: `"ita-f"`) + +* `ITA_EF` (value: `"ita-ef"`) + +* `ITA_G` (value: `"ita-g"`) + +* `ITA_H` (value: `"ita-h"`) + +* `ITA_I` (value: `"ita-i"`) + +* `ITA_J` (value: `"ita-j"`) + +* `ITA_K` (value: `"ita-k"`) + +* `ITA_L` (value: `"ita-l"`) + +* `ITA_M` (value: `"ita-m"`) + +* `ITA_N` (value: `"ita-n"`) + +* `ITA_O` (value: `"ita-o"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `USB_3_B` (value: `"usb-3-b"`) + +* `USB_3_MICRO_B` (value: `"usb-3-micro-b"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"molex-micro-fit-1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"molex-micro-fit-2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"molex-micro-fit-2x4"`) + +* `DC_TERMINAL` (value: `"dc-terminal"`) + +* `SAF_D_GRID` (value: `"saf-d-grid"`) + +* `NEUTRIK_POWERCON_20` (value: `"neutrik-powercon-20"`) + +* `NEUTRIK_POWERCON_32` (value: `"neutrik-powercon-32"`) + +* `NEUTRIK_POWERCON_TRUE1` (value: `"neutrik-powercon-true1"`) + +* `NEUTRIK_POWERCON_TRUE1_TOP` (value: `"neutrik-powercon-true1-top"`) + +* `UBIQUITI_SMARTPOWER` (value: `"ubiquiti-smartpower"`) + +* `HARDWIRED` (value: `"hardwired"`) + +* `OTHER` (value: `"other"`) + +* `EMPTY` (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/Prefix.md b/docs/Prefix.md index b1b6821a6e..eb54832cb1 100644 --- a/docs/Prefix.md +++ b/docs/Prefix.md @@ -6,23 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Scope** | Pointer to **interface{}** | | [optional] [readonly] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **Status** | Pointer to [**PrefixStatus**](PrefixStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Children** | **int32** | | [readonly] **Depth** | **int32** | | [readonly] @@ -30,7 +33,7 @@ Name | Type | Description | Notes ### NewPrefix -`func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` +`func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, children int32, depth int32, ) *Prefix` NewPrefix instantiates a new Prefix object This constructor will assign default values to properties that have it defined, @@ -85,6 +88,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Prefix) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Prefix) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Prefix) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Prefix) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Prefix) GetDisplay() string` @@ -145,92 +173,162 @@ and a boolean to check if the value has been set. SetPrefix sets Prefix field to given value. -### GetSite +### GetVrf -`func (o *Prefix) GetSite() Site` +`func (o *Prefix) GetVrf() BriefVRF` -GetSite returns the Site field if non-nil, zero value otherwise. +GetVrf returns the Vrf field if non-nil, zero value otherwise. -### GetSiteOk +### GetVrfOk -`func (o *Prefix) GetSiteOk() (*Site, bool)` +`func (o *Prefix) GetVrfOk() (*BriefVRF, bool)` -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSite +### SetVrf -`func (o *Prefix) SetSite(v Site)` +`func (o *Prefix) SetVrf(v BriefVRF)` -SetSite sets Site field to given value. +SetVrf sets Vrf field to given value. -### HasSite +### HasVrf -`func (o *Prefix) HasSite() bool` +`func (o *Prefix) HasVrf() bool` -HasSite returns a boolean if a field has been set. +HasVrf returns a boolean if a field has been set. -### SetSiteNil +### SetVrfNil -`func (o *Prefix) SetSiteNil(b bool)` +`func (o *Prefix) SetVrfNil(b bool)` - SetSiteNil sets the value for Site to be an explicit nil + SetVrfNil sets the value for Vrf to be an explicit nil -### UnsetSite -`func (o *Prefix) UnsetSite()` +### UnsetVrf +`func (o *Prefix) UnsetVrf()` -UnsetSite ensures that no value is present for Site, not even an explicit nil -### GetVrf +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetScopeType -`func (o *Prefix) GetVrf() VRF` +`func (o *Prefix) GetScopeType() string` -GetVrf returns the Vrf field if non-nil, zero value otherwise. +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. -### GetVrfOk +### GetScopeTypeOk -`func (o *Prefix) GetVrfOk() (*VRF, bool)` +`func (o *Prefix) GetScopeTypeOk() (*string, bool)` -GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetVrf +### SetScopeType -`func (o *Prefix) SetVrf(v VRF)` +`func (o *Prefix) SetScopeType(v string)` -SetVrf sets Vrf field to given value. +SetScopeType sets ScopeType field to given value. -### HasVrf +### HasScopeType -`func (o *Prefix) HasVrf() bool` +`func (o *Prefix) HasScopeType() bool` -HasVrf returns a boolean if a field has been set. +HasScopeType returns a boolean if a field has been set. -### SetVrfNil +### SetScopeTypeNil -`func (o *Prefix) SetVrfNil(b bool)` +`func (o *Prefix) SetScopeTypeNil(b bool)` - SetVrfNil sets the value for Vrf to be an explicit nil + SetScopeTypeNil sets the value for ScopeType to be an explicit nil -### UnsetVrf -`func (o *Prefix) UnsetVrf()` +### UnsetScopeType +`func (o *Prefix) UnsetScopeType()` -UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *Prefix) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *Prefix) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *Prefix) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *Prefix) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *Prefix) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *Prefix) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +### GetScope + +`func (o *Prefix) GetScope() interface{}` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *Prefix) GetScopeOk() (*interface{}, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *Prefix) SetScope(v interface{})` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *Prefix) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *Prefix) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *Prefix) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil ### GetTenant -`func (o *Prefix) GetTenant() Tenant` +`func (o *Prefix) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Prefix) GetTenantOk() (*Tenant, bool)` +`func (o *Prefix) GetTenantOk() (*BriefTenant, 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 *Prefix) SetTenant(v Tenant)` +`func (o *Prefix) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -252,20 +350,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *Prefix) GetVlan() VLAN` +`func (o *Prefix) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *Prefix) GetVlanOk() (*VLAN, bool)` +`func (o *Prefix) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *Prefix) SetVlan(v VLAN)` +`func (o *Prefix) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -312,20 +410,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *Prefix) GetRole() Role` +`func (o *Prefix) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Prefix) GetRoleOk() (*Role, bool)` +`func (o *Prefix) GetRoleOk() (*BriefRole, 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 *Prefix) SetRole(v Role)` +`func (o *Prefix) SetRole(v BriefRole)` SetRole sets Role field to given value. @@ -514,6 +612,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Prefix) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -544,6 +647,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Prefix) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/PrefixRequest 2.md b/docs/PrefixRequest 2.md new file mode 100644 index 0000000000..ae1f2006b8 --- /dev/null +++ b/docs/PrefixRequest 2.md @@ -0,0 +1,413 @@ +# PrefixRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Prefix** | **string** | | +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] +**MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPrefixRequest + +`func NewPrefixRequest(prefix string, ) *PrefixRequest` + +NewPrefixRequest instantiates a new PrefixRequest 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 + +### NewPrefixRequestWithDefaults + +`func NewPrefixRequestWithDefaults() *PrefixRequest` + +NewPrefixRequestWithDefaults instantiates a new PrefixRequest 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 + +### GetPrefix + +`func (o *PrefixRequest) GetPrefix() string` + +GetPrefix returns the Prefix field if non-nil, zero value otherwise. + +### GetPrefixOk + +`func (o *PrefixRequest) GetPrefixOk() (*string, bool)` + +GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefix + +`func (o *PrefixRequest) SetPrefix(v string)` + +SetPrefix sets Prefix field to given value. + + +### GetSite + +`func (o *PrefixRequest) GetSite() SiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PrefixRequest) SetSite(v SiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *PrefixRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *PrefixRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *PrefixRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetVrf + +`func (o *PrefixRequest) GetVrf() VRFRequest` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *PrefixRequest) SetVrf(v VRFRequest)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *PrefixRequest) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *PrefixRequest) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *PrefixRequest) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *PrefixRequest) GetTenant() TenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PrefixRequest) GetTenantOk() (*TenantRequest, 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 *PrefixRequest) SetTenant(v TenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PrefixRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PrefixRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PrefixRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetVlan + +`func (o *PrefixRequest) GetVlan() VLANRequest` + +GetVlan returns the Vlan field if non-nil, zero value otherwise. + +### GetVlanOk + +`func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool)` + +GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlan + +`func (o *PrefixRequest) SetVlan(v VLANRequest)` + +SetVlan sets Vlan field to given value. + +### HasVlan + +`func (o *PrefixRequest) HasVlan() bool` + +HasVlan returns a boolean if a field has been set. + +### SetVlanNil + +`func (o *PrefixRequest) SetVlanNil(b bool)` + + SetVlanNil sets the value for Vlan to be an explicit nil + +### UnsetVlan +`func (o *PrefixRequest) UnsetVlan()` + +UnsetVlan ensures that no value is present for Vlan, not even an explicit nil +### GetStatus + +`func (o *PrefixRequest) GetStatus() PrefixStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PrefixRequest) GetStatusOk() (*PrefixStatusValue, 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 *PrefixRequest) SetStatus(v PrefixStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PrefixRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *PrefixRequest) GetRole() RoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *PrefixRequest) GetRoleOk() (*RoleRequest, 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 *PrefixRequest) SetRole(v RoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *PrefixRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *PrefixRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *PrefixRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetIsPool + +`func (o *PrefixRequest) GetIsPool() bool` + +GetIsPool returns the IsPool field if non-nil, zero value otherwise. + +### GetIsPoolOk + +`func (o *PrefixRequest) GetIsPoolOk() (*bool, bool)` + +GetIsPoolOk returns a tuple with the IsPool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPool + +`func (o *PrefixRequest) SetIsPool(v bool)` + +SetIsPool sets IsPool field to given value. + +### HasIsPool + +`func (o *PrefixRequest) HasIsPool() bool` + +HasIsPool returns a boolean if a field has been set. + +### GetMarkUtilized + +`func (o *PrefixRequest) GetMarkUtilized() bool` + +GetMarkUtilized returns the MarkUtilized field if non-nil, zero value otherwise. + +### GetMarkUtilizedOk + +`func (o *PrefixRequest) GetMarkUtilizedOk() (*bool, bool)` + +GetMarkUtilizedOk returns a tuple with the MarkUtilized field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkUtilized + +`func (o *PrefixRequest) SetMarkUtilized(v bool)` + +SetMarkUtilized sets MarkUtilized field to given value. + +### HasMarkUtilized + +`func (o *PrefixRequest) HasMarkUtilized() bool` + +HasMarkUtilized returns a boolean if a field has been set. + +### GetDescription + +`func (o *PrefixRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PrefixRequest) 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 *PrefixRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PrefixRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *PrefixRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PrefixRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PrefixRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PrefixRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PrefixRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PrefixRequest) 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 *PrefixRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PrefixRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PrefixRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PrefixRequest) 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 *PrefixRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PrefixRequest) HasCustomFields() bool` + +HasCustomFields 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/PrefixRequest.md b/docs/PrefixRequest.md index ae1f2006b8..f69a970374 100644 --- a/docs/PrefixRequest.md +++ b/docs/PrefixRequest.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -57,92 +58,127 @@ and a boolean to check if the value has been set. SetPrefix sets Prefix field to given value. -### GetSite +### GetVrf -`func (o *PrefixRequest) GetSite() SiteRequest` +`func (o *PrefixRequest) GetVrf() BriefVRFRequest` -GetSite returns the Site field if non-nil, zero value otherwise. +GetVrf returns the Vrf field if non-nil, zero value otherwise. -### GetSiteOk +### GetVrfOk -`func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSite +### SetVrf -`func (o *PrefixRequest) SetSite(v SiteRequest)` +`func (o *PrefixRequest) SetVrf(v BriefVRFRequest)` -SetSite sets Site field to given value. +SetVrf sets Vrf field to given value. -### HasSite +### HasVrf -`func (o *PrefixRequest) HasSite() bool` +`func (o *PrefixRequest) HasVrf() bool` -HasSite returns a boolean if a field has been set. +HasVrf returns a boolean if a field has been set. -### SetSiteNil +### SetVrfNil -`func (o *PrefixRequest) SetSiteNil(b bool)` +`func (o *PrefixRequest) SetVrfNil(b bool)` - SetSiteNil sets the value for Site to be an explicit nil + SetVrfNil sets the value for Vrf to be an explicit nil -### UnsetSite -`func (o *PrefixRequest) UnsetSite()` +### UnsetVrf +`func (o *PrefixRequest) UnsetVrf()` -UnsetSite ensures that no value is present for Site, not even an explicit nil -### GetVrf +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetScopeType -`func (o *PrefixRequest) GetVrf() VRFRequest` +`func (o *PrefixRequest) GetScopeType() string` -GetVrf returns the Vrf field if non-nil, zero value otherwise. +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. -### GetVrfOk +### GetScopeTypeOk -`func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PrefixRequest) GetScopeTypeOk() (*string, bool)` -GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetVrf +### SetScopeType -`func (o *PrefixRequest) SetVrf(v VRFRequest)` +`func (o *PrefixRequest) SetScopeType(v string)` -SetVrf sets Vrf field to given value. +SetScopeType sets ScopeType field to given value. -### HasVrf +### HasScopeType -`func (o *PrefixRequest) HasVrf() bool` +`func (o *PrefixRequest) HasScopeType() bool` -HasVrf returns a boolean if a field has been set. +HasScopeType returns a boolean if a field has been set. -### SetVrfNil +### SetScopeTypeNil -`func (o *PrefixRequest) SetVrfNil(b bool)` +`func (o *PrefixRequest) SetScopeTypeNil(b bool)` - SetVrfNil sets the value for Vrf to be an explicit nil + SetScopeTypeNil sets the value for ScopeType to be an explicit nil -### UnsetVrf -`func (o *PrefixRequest) UnsetVrf()` +### UnsetScopeType +`func (o *PrefixRequest) UnsetScopeType()` -UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *PrefixRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *PrefixRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *PrefixRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *PrefixRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *PrefixRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *PrefixRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetTenant -`func (o *PrefixRequest) GetTenant() TenantRequest` +`func (o *PrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, 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 *PrefixRequest) SetTenant(v TenantRequest)` +`func (o *PrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +200,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PrefixRequest) GetVlan() VLANRequest` +`func (o *PrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PrefixRequest) SetVlan(v VLANRequest)` +`func (o *PrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +260,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PrefixRequest) GetRole() RoleRequest` +`func (o *PrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, 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 *PrefixRequest) SetRole(v RoleRequest)` +`func (o *PrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PrefixStatusLabel 2.md b/docs/PrefixStatusLabel 2.md new file mode 100644 index 0000000000..cc715c5f34 --- /dev/null +++ b/docs/PrefixStatusLabel 2.md @@ -0,0 +1,17 @@ +# PrefixStatusLabel + +## Enum + + +* `CONTAINER` (value: `"Container"`) + +* `ACTIVE` (value: `"Active"`) + +* `RESERVED` (value: `"Reserved"`) + +* `DEPRECATED` (value: `"Deprecated"`) + + +[[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/Provider.md b/docs/Provider.md index 16fd7e5dfc..6ab230fe3b 100644 --- a/docs/Provider.md +++ b/docs/Provider.md @@ -6,10 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to [**[]NestedProviderAccount**](NestedProviderAccount.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **CircuitCount** | **int64** | | [readonly] ## Methods @@ -71,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Provider) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Provider) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Provider) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Provider) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Provider) GetDisplay() string` @@ -131,6 +164,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *Provider) GetAccounts() []NestedProviderAccount` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *Provider) GetAccountsOk() (*[]NestedProviderAccount, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *Provider) SetAccounts(v []NestedProviderAccount)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *Provider) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *Provider) GetDescription() string` @@ -156,6 +214,176 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Provider) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Provider) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Provider) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Provider) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Provider) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Provider) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Provider) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Provider) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Provider) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Provider) 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 *Provider) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Provider) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Provider) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Provider) 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 *Provider) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Provider) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Provider) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Provider) 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 *Provider) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Provider) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Provider) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Provider) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Provider) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Provider) 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 *Provider) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Provider) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Provider) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Provider) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetCircuitCount `func (o *Provider) GetCircuitCount() int64` diff --git a/docs/ProviderAccount.md b/docs/ProviderAccount.md index aac9f2198e..53a46f6682 100644 --- a/docs/ProviderAccount.md +++ b/docs/ProviderAccount.md @@ -6,22 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Provider** | [**Provider**](Provider.md) | | +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewProviderAccount -`func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` +`func NewProviderAccount(id int32, url string, display string, provider BriefProvider, account string, ) *ProviderAccount` NewProviderAccount instantiates a new ProviderAccount object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderAccount) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderAccount) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ProviderAccount) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ProviderAccount) GetDisplay() string` @@ -98,20 +124,20 @@ SetDisplay sets Display field to given value. ### GetProvider -`func (o *ProviderAccount) GetProvider() Provider` +`func (o *ProviderAccount) GetProvider() BriefProvider` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *ProviderAccount) GetProviderOk() (*Provider, bool)` +`func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *ProviderAccount) SetProvider(v Provider)` +`func (o *ProviderAccount) SetProvider(v BriefProvider)` SetProvider sets Provider field to given value. @@ -280,6 +306,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ProviderAccount) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -310,6 +341,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ProviderAccount) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ProviderAccountRequest.md b/docs/ProviderAccountRequest.md index 73ff7c78bf..bf38cf07ef 100644 --- a/docs/ProviderAccountRequest.md +++ b/docs/ProviderAccountRequest.md @@ -4,15 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderAccountRequest -`func NewProviderAccountRequest(account string, ) *ProviderAccountRequest` +`func NewProviderAccountRequest(provider BriefProviderRequest, account string, ) *ProviderAccountRequest` NewProviderAccountRequest instantiates a new ProviderAccountRequest object This constructor will assign default values to properties that have it defined, @@ -27,6 +31,26 @@ NewProviderAccountRequestWithDefaults instantiates a new ProviderAccountRequest 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 +### GetProvider + +`func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderAccountRequest) GetName() string` @@ -97,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderAccountRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderAccountRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderAccountRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderAccountRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderAccountRequest) 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 *ProviderAccountRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderAccountRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderAccountRequest) 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 *ProviderAccountRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderAccountRequest) HasCustomFields() bool` + +HasCustomFields 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/ProviderNetwork.md b/docs/ProviderNetwork.md index de3e093732..ccfe4164c8 100644 --- a/docs/ProviderNetwork.md +++ b/docs/ProviderNetwork.md @@ -6,15 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewProviderNetwork -`func NewProviderNetwork(id int32, url string, display string, name string, ) *ProviderNetwork` +`func NewProviderNetwork(id int32, url string, display string, provider BriefProvider, name string, ) *ProviderNetwork` NewProviderNetwork instantiates a new ProviderNetwork object This constructor will assign default values to properties that have it defined, @@ -69,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderNetwork) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderNetwork) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ProviderNetwork) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ProviderNetwork) GetDisplay() string` @@ -89,6 +122,26 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetProvider + +`func (o *ProviderNetwork) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetwork) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetwork) GetName() string` @@ -109,6 +162,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetwork) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetwork) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetwork) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetwork) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetwork) GetDescription() string` @@ -134,6 +212,151 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetwork) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetwork) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetwork) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetwork) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetwork) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetwork) 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 *ProviderNetwork) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetwork) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetwork) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetwork) 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 *ProviderNetwork) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetwork) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ProviderNetwork) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ProviderNetwork) 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 *ProviderNetwork) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *ProviderNetwork) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *ProviderNetwork) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ProviderNetwork) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ProviderNetwork) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ProviderNetwork) 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 *ProviderNetwork) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *ProviderNetwork) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *ProviderNetwork) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ProviderNetwork) 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/ProviderNetworkRequest 2.md b/docs/ProviderNetworkRequest 2.md new file mode 100644 index 0000000000..21f981aa69 --- /dev/null +++ b/docs/ProviderNetworkRequest 2.md @@ -0,0 +1,77 @@ +# ProviderNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewProviderNetworkRequest + +`func NewProviderNetworkRequest(name string, ) *ProviderNetworkRequest` + +NewProviderNetworkRequest instantiates a new ProviderNetworkRequest 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 + +### NewProviderNetworkRequestWithDefaults + +`func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest` + +NewProviderNetworkRequestWithDefaults instantiates a new ProviderNetworkRequest 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 *ProviderNetworkRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ProviderNetworkRequest) 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 *ProviderNetworkRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *ProviderNetworkRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ProviderNetworkRequest) 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 *ProviderNetworkRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ProviderNetworkRequest) 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/ProviderNetworkRequest.md b/docs/ProviderNetworkRequest.md index 21f981aa69..45b2b952a6 100644 --- a/docs/ProviderNetworkRequest.md +++ b/docs/ProviderNetworkRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderNetworkRequest -`func NewProviderNetworkRequest(name string, ) *ProviderNetworkRequest` +`func NewProviderNetworkRequest(provider BriefProviderRequest, name string, ) *ProviderNetworkRequest` NewProviderNetworkRequest instantiates a new ProviderNetworkRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,26 @@ NewProviderNetworkRequestWithDefaults instantiates a new ProviderNetworkRequest 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 +### GetProvider + +`func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetworkRequest) GetName() string` @@ -46,6 +71,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetworkRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetworkRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetworkRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetworkRequest) GetDescription() string` @@ -71,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetworkRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetworkRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetworkRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetworkRequest) 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 *ProviderNetworkRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetworkRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetworkRequest) 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 *ProviderNetworkRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetworkRequest) HasCustomFields() bool` + +HasCustomFields 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/ProviderRequest.md b/docs/ProviderRequest.md index a7e51837e8..c03de9ce67 100644 --- a/docs/ProviderRequest.md +++ b/docs/ProviderRequest.md @@ -6,7 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +72,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *ProviderRequest) GetAccounts() []int32` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *ProviderRequest) GetAccountsOk() (*[]int32, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *ProviderRequest) SetAccounts(v []int32)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *ProviderRequest) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderRequest) GetDescription() string` @@ -92,6 +122,106 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *ProviderRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *ProviderRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *ProviderRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *ProviderRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderRequest) 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 *ProviderRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderRequest) 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 *ProviderRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderRequest) HasCustomFields() bool` + +HasCustomFields 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/QInQRole.md b/docs/QInQRole.md new file mode 100644 index 0000000000..c91032fda2 --- /dev/null +++ b/docs/QInQRole.md @@ -0,0 +1,15 @@ +# QInQRole + +## Enum + + +* `SVLAN` (value: `"svlan"`) + +* `CVLAN` (value: `"cvlan"`) + +* `EMPTY` (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/RIR.md b/docs/RIR.md index 2c027c73a1..f47be27a28 100644 --- a/docs/RIR.md +++ b/docs/RIR.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **AggregateCount** | **int64** | | [readonly] ## Methods @@ -71,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RIR) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RIR) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RIR) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RIR) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RIR) GetDisplay() string` @@ -131,6 +162,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIR) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIR) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIR) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIR) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIR) GetDescription() string` @@ -156,6 +212,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIR) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIR) 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 *RIR) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIR) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIR) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIR) 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 *RIR) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIR) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *RIR) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RIR) 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 *RIR) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *RIR) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *RIR) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RIR) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RIR) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RIR) 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 *RIR) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *RIR) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *RIR) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RIR) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetAggregateCount `func (o *RIR) GetAggregateCount() int64` diff --git a/docs/RIRRequest.md b/docs/RIRRequest.md index 3a102b34c4..761c2570e4 100644 --- a/docs/RIRRequest.md +++ b/docs/RIRRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIRRequest) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIRRequest) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIRRequest) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIRRequest) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIRRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIRRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIRRequest) 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 *RIRRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIRRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIRRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIRRequest) 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 *RIRRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIRRequest) HasCustomFields() bool` + +HasCustomFields 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/Rack.md b/docs/Rack.md index 5628a5efc9..9bf74f0e2a 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -6,16 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**RackStatus**](RackStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRole**](BriefRackRole.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackType**](BriefRackType.md) | | [optional] +**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.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] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**RackAirflow**](RackAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**PowerfeedCount** | **int64** | | [readonly] ## Methods ### NewRack -`func NewRack(id int32, url string, display string, name string, deviceCount int64, ) *Rack` +`func NewRack(id int32, url string, display string, name string, site BriefSite, powerfeedCount int64, ) *Rack` NewRack instantiates a new Rack object This constructor will assign default values to properties that have it defined, @@ -70,6 +99,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Rack) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Rack) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Rack) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Rack) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Rack) GetDisplay() string` @@ -110,6 +164,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *Rack) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *Rack) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *Rack) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *Rack) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *Rack) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *Rack) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *Rack) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Rack) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Rack) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *Rack) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *Rack) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *Rack) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *Rack) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *Rack) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *Rack) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *Rack) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Rack) GetTenantOk() (*BriefTenant, 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 *Rack) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Rack) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Rack) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Rack) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *Rack) GetStatus() RackStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Rack) GetStatusOk() (*RackStatus, 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 *Rack) SetStatus(v RackStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Rack) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *Rack) GetRole() BriefRackRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *Rack) GetRoleOk() (*BriefRackRole, 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 *Rack) SetRole(v BriefRackRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *Rack) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *Rack) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *Rack) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *Rack) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Rack) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Rack) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Rack) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Rack) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Rack) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Rack) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Rack) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Rack) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Rack) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *Rack) GetRackType() BriefRackType` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *Rack) GetRackTypeOk() (*BriefRackType, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *Rack) SetRackType(v BriefRackType)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *Rack) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *Rack) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *Rack) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *Rack) GetFormFactor() RackFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *Rack) SetFormFactor(v RackFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *Rack) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *Rack) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *Rack) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *Rack) GetWidth() RackWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *Rack) GetWidthOk() (*RackWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *Rack) SetWidth(v RackWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *Rack) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *Rack) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *Rack) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *Rack) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *Rack) HasUHeight() bool` + +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` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Rack) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Rack) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Rack) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *Rack) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *Rack) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *Rack) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *Rack) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *Rack) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *Rack) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *Rack) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *Rack) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *Rack) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *Rack) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *Rack) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *Rack) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *Rack) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *Rack) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *Rack) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *Rack) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *Rack) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *Rack) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *Rack) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *Rack) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *Rack) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *Rack) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *Rack) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *Rack) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *Rack) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *Rack) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *Rack) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *Rack) GetOuterUnit() RackOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *Rack) SetOuterUnit(v RackOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *Rack) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *Rack) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *Rack) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *Rack) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *Rack) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *Rack) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *Rack) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *Rack) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *Rack) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *Rack) GetAirflow() RackAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *Rack) GetAirflowOk() (*RackAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *Rack) SetAirflow(v RackAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *Rack) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *Rack) GetDescription() string` @@ -135,6 +874,151 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Rack) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Rack) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Rack) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Rack) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Rack) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Rack) 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 *Rack) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Rack) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Rack) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Rack) 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 *Rack) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Rack) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Rack) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Rack) 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 *Rack) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Rack) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Rack) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Rack) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Rack) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Rack) 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 *Rack) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Rack) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Rack) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Rack) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Rack) GetDeviceCount() int64` @@ -154,6 +1038,31 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *Rack) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetPowerfeedCount + +`func (o *Rack) GetPowerfeedCount() int64` + +GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise. + +### GetPowerfeedCountOk + +`func (o *Rack) GetPowerfeedCountOk() (*int64, bool)` + +GetPowerfeedCountOk returns a tuple with the PowerfeedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerfeedCount + +`func (o *Rack) SetPowerfeedCount(v int64)` + +SetPowerfeedCount sets PowerfeedCount 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/RackAirflow.md b/docs/RackAirflow.md new file mode 100644 index 0000000000..215803a49e --- /dev/null +++ b/docs/RackAirflow.md @@ -0,0 +1,82 @@ +# RackAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**RackAirflowValue**](RackAirflowValue.md) | | [optional] +**Label** | Pointer to [**RackAirflowLabel**](RackAirflowLabel.md) | | [optional] + +## Methods + +### NewRackAirflow + +`func NewRackAirflow() *RackAirflow` + +NewRackAirflow instantiates a new RackAirflow 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 + +### NewRackAirflowWithDefaults + +`func NewRackAirflowWithDefaults() *RackAirflow` + +NewRackAirflowWithDefaults instantiates a new RackAirflow 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 *RackAirflow) GetValue() RackAirflowValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackAirflow) GetValueOk() (*RackAirflowValue, 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 *RackAirflow) SetValue(v RackAirflowValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackAirflow) GetLabel() RackAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackAirflow) GetLabelOk() (*RackAirflowLabel, 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 *RackAirflow) SetLabel(v RackAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackAirflow) 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/RackAirflowLabel.md b/docs/RackAirflowLabel.md new file mode 100644 index 0000000000..e517065baa --- /dev/null +++ b/docs/RackAirflowLabel.md @@ -0,0 +1,13 @@ +# RackAirflowLabel + +## Enum + + +* `FRONT_TO_REAR` (value: `"Front to rear"`) + +* `REAR_TO_FRONT` (value: `"Rear to front"`) + + +[[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/RackAirflowValue.md b/docs/RackAirflowValue.md new file mode 100644 index 0000000000..afa1a57503 --- /dev/null +++ b/docs/RackAirflowValue.md @@ -0,0 +1,15 @@ +# RackAirflowValue + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `EMPTY` (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/RackFormFactor.md b/docs/RackFormFactor.md new file mode 100644 index 0000000000..709ee2745e --- /dev/null +++ b/docs/RackFormFactor.md @@ -0,0 +1,82 @@ +# RackFormFactor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**RackFormFactorValue**](RackFormFactorValue.md) | | [optional] +**Label** | Pointer to [**RackFormFactorLabel**](RackFormFactorLabel.md) | | [optional] + +## Methods + +### NewRackFormFactor + +`func NewRackFormFactor() *RackFormFactor` + +NewRackFormFactor instantiates a new RackFormFactor 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 + +### NewRackFormFactorWithDefaults + +`func NewRackFormFactorWithDefaults() *RackFormFactor` + +NewRackFormFactorWithDefaults instantiates a new RackFormFactor 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 *RackFormFactor) GetValue() RackFormFactorValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackFormFactor) GetValueOk() (*RackFormFactorValue, 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 *RackFormFactor) SetValue(v RackFormFactorValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackFormFactor) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackFormFactor) GetLabel() RackFormFactorLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackFormFactor) GetLabelOk() (*RackFormFactorLabel, 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 *RackFormFactor) SetLabel(v RackFormFactorLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackFormFactor) 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/RackFormFactorLabel.md b/docs/RackFormFactorLabel.md new file mode 100644 index 0000000000..720b1eb8c6 --- /dev/null +++ b/docs/RackFormFactorLabel.md @@ -0,0 +1,23 @@ +# RackFormFactorLabel + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post frame"`) + +* `_4_POST_FRAME` (value: `"4-post frame"`) + +* `_4_POST_CABINET` (value: `"4-post cabinet"`) + +* `WALL_MOUNTED_FRAME` (value: `"Wall-mounted frame"`) + +* `WALL_MOUNTED_FRAME__VERTICAL` (value: `"Wall-mounted frame (vertical)"`) + +* `WALL_MOUNTED_CABINET` (value: `"Wall-mounted cabinet"`) + +* `WALL_MOUNTED_CABINET__VERTICAL` (value: `"Wall-mounted cabinet (vertical)"`) + + +[[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/PatchedWritableRackRequestType.md b/docs/RackFormFactorValue.md similarity index 94% rename from docs/PatchedWritableRackRequestType.md rename to docs/RackFormFactorValue.md index 8f0c70feb0..9677e02011 100644 --- a/docs/PatchedWritableRackRequestType.md +++ b/docs/RackFormFactorValue.md @@ -1,4 +1,4 @@ -# PatchedWritableRackRequestType +# RackFormFactorValue ## Enum diff --git a/docs/RackOuterUnit.md b/docs/RackOuterUnit.md new file mode 100644 index 0000000000..5f05f5d098 --- /dev/null +++ b/docs/RackOuterUnit.md @@ -0,0 +1,82 @@ +# RackOuterUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**RackOuterUnitValue**](RackOuterUnitValue.md) | | [optional] +**Label** | Pointer to [**RackOuterUnitLabel**](RackOuterUnitLabel.md) | | [optional] + +## Methods + +### NewRackOuterUnit + +`func NewRackOuterUnit() *RackOuterUnit` + +NewRackOuterUnit instantiates a new RackOuterUnit 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 + +### NewRackOuterUnitWithDefaults + +`func NewRackOuterUnitWithDefaults() *RackOuterUnit` + +NewRackOuterUnitWithDefaults instantiates a new RackOuterUnit 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 *RackOuterUnit) GetValue() RackOuterUnitValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackOuterUnit) GetValueOk() (*RackOuterUnitValue, 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 *RackOuterUnit) SetValue(v RackOuterUnitValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackOuterUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackOuterUnit) GetLabelOk() (*RackOuterUnitLabel, 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 *RackOuterUnit) SetLabel(v RackOuterUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackOuterUnit) 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/RackOuterUnitLabel.md b/docs/RackOuterUnitLabel.md new file mode 100644 index 0000000000..760faedf16 --- /dev/null +++ b/docs/RackOuterUnitLabel.md @@ -0,0 +1,13 @@ +# RackOuterUnitLabel + +## Enum + + +* `MILLIMETERS` (value: `"Millimeters"`) + +* `INCHES` (value: `"Inches"`) + + +[[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/RackOuterUnitValue.md b/docs/RackOuterUnitValue.md new file mode 100644 index 0000000000..203fb1c05a --- /dev/null +++ b/docs/RackOuterUnitValue.md @@ -0,0 +1,15 @@ +# RackOuterUnitValue + +## Enum + + +* `MM` (value: `"mm"`) + +* `IN` (value: `"in"`) + +* `EMPTY` (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/RackRequest.md b/docs/RackRequest.md index fdc2c2dd55..f8cb0eb154 100644 --- a/docs/RackRequest.md +++ b/docs/RackRequest.md @@ -5,13 +5,38 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**NullablePatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidthValue**](RackWidthValue.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 [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullablePatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**RackAirflowValue**](RackAirflowValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewRackRequest -`func NewRackRequest(name string, ) *RackRequest` +`func NewRackRequest(name string, site BriefSiteRequest, ) *RackRequest` NewRackRequest instantiates a new RackRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +71,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *RackRequest) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *RackRequest) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *RackRequest) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *RackRequest) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *RackRequest) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *RackRequest) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *RackRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *RackRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *RackRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *RackRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *RackRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *RackRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *RackRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *RackRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, 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 *RackRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *RackRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *RackRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *RackRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, 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 *RackRequest) SetStatus(v PatchedWritableRackRequestStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RackRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *RackRequest) GetRole() BriefRackRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, 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 *RackRequest) SetRole(v BriefRackRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *RackRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *RackRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *RackRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *RackRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *RackRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *RackRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *RackRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *RackRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *RackRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *RackRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *RackRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *RackRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *RackRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *RackRequest) GetRackType() BriefRackTypeRequest` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *RackRequest) SetRackType(v BriefRackTypeRequest)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *RackRequest) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *RackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *RackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *RackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackRequest) GetWidth() RackWidthValue` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackRequest) SetWidth(v RackWidthValue)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackRequest) HasUHeight() bool` + +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` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *RackRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *RackRequest) GetAirflow() RackAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *RackRequest) GetAirflowOk() (*RackAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *RackRequest) SetAirflow(v RackAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *RackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *RackRequest) GetDescription() string` @@ -71,6 +781,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *RackRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackRequest) 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 *RackRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackRequest) 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 *RackRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackRequest) HasCustomFields() bool` + +HasCustomFields 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/RackReservation 2.md b/docs/RackReservation 2.md new file mode 100644 index 0000000000..d8fdbd2ff4 --- /dev/null +++ b/docs/RackReservation 2.md @@ -0,0 +1,353 @@ +# RackReservation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Rack** | [**Rack**](Rack.md) | | +**Units** | **[]int32** | | +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**User** | [**User**](User.md) | | +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Description** | **string** | | +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewRackReservation + +`func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string, ) *RackReservation` + +NewRackReservation instantiates a new RackReservation 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 + +### NewRackReservationWithDefaults + +`func NewRackReservationWithDefaults() *RackReservation` + +NewRackReservationWithDefaults instantiates a new RackReservation 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 *RackReservation) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RackReservation) 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 *RackReservation) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *RackReservation) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RackReservation) 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 *RackReservation) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *RackReservation) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *RackReservation) 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 *RackReservation) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetRack + +`func (o *RackReservation) GetRack() Rack` + +GetRack returns the Rack field if non-nil, zero value otherwise. + +### GetRackOk + +`func (o *RackReservation) GetRackOk() (*Rack, bool)` + +GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRack + +`func (o *RackReservation) SetRack(v Rack)` + +SetRack sets Rack field to given value. + + +### GetUnits + +`func (o *RackReservation) GetUnits() []int32` + +GetUnits returns the Units field if non-nil, zero value otherwise. + +### GetUnitsOk + +`func (o *RackReservation) GetUnitsOk() (*[]int32, bool)` + +GetUnitsOk returns a tuple with the Units field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnits + +`func (o *RackReservation) SetUnits(v []int32)` + +SetUnits sets Units field to given value. + + +### GetCreated + +`func (o *RackReservation) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RackReservation) 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 *RackReservation) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RackReservation) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RackReservation) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RackReservation) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RackReservation) 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 *RackReservation) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RackReservation) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RackReservation) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetUser + +`func (o *RackReservation) GetUser() User` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *RackReservation) GetUserOk() (*User, 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 *RackReservation) SetUser(v User)` + +SetUser sets User field to given value. + + +### GetTenant + +`func (o *RackReservation) GetTenant() Tenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *RackReservation) GetTenantOk() (*Tenant, 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 *RackReservation) SetTenant(v Tenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *RackReservation) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *RackReservation) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *RackReservation) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDescription + +`func (o *RackReservation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RackReservation) 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 *RackReservation) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetComments + +`func (o *RackReservation) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackReservation) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackReservation) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackReservation) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackReservation) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackReservation) 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 *RackReservation) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackReservation) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackReservation) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackReservation) 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 *RackReservation) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackReservation) HasCustomFields() bool` + +HasCustomFields 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/RackReservation.md b/docs/RackReservation.md index d8fdbd2ff4..dd8795dab5 100644 --- a/docs/RackReservation.md +++ b/docs/RackReservation.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Rack** | [**Rack**](Rack.md) | | +**Rack** | [**BriefRack**](BriefRack.md) | | **Units** | **[]int32** | | -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**User** | [**User**](User.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewRackReservation -`func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string, ) *RackReservation` +`func NewRackReservation(id int32, url string, display string, rack BriefRack, units []int32, user BriefUser, description string, ) *RackReservation` NewRackReservation instantiates a new RackReservation object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackReservation) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackReservation) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackReservation) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RackReservation) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RackReservation) GetDisplay() string` @@ -99,20 +125,20 @@ SetDisplay sets Display field to given value. ### GetRack -`func (o *RackReservation) GetRack() Rack` +`func (o *RackReservation) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservation) GetRackOk() (*Rack, bool)` +`func (o *RackReservation) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservation) SetRack(v Rack)` +`func (o *RackReservation) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -156,6 +182,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *RackReservation) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -186,6 +217,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *RackReservation) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -199,40 +235,40 @@ SetLastUpdated sets LastUpdated field to given value. UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetUser -`func (o *RackReservation) GetUser() User` +`func (o *RackReservation) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservation) GetUserOk() (*User, bool)` +`func (o *RackReservation) GetUserOk() (*BriefUser, 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 *RackReservation) SetUser(v User)` +`func (o *RackReservation) SetUser(v BriefUser)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservation) GetTenant() Tenant` +`func (o *RackReservation) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservation) GetTenantOk() (*Tenant, bool)` +`func (o *RackReservation) GetTenantOk() (*BriefTenant, 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 *RackReservation) SetTenant(v Tenant)` +`func (o *RackReservation) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RackReservationRequest.md b/docs/RackReservationRequest.md index e87e36a898..1910e473a1 100644 --- a/docs/RackReservationRequest.md +++ b/docs/RackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | [**RackRequest**](RackRequest.md) | | +**Rack** | [**BriefRackRequest**](BriefRackRequest.md) | | **Units** | **[]int32** | | -**User** | [**UserRequest**](UserRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewRackReservationRequest -`func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string, ) *RackReservationRequest` +`func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string, ) *RackReservationRequest` NewRackReservationRequest instantiates a new RackReservationRequest object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *RackReservationRequest) GetRack() RackRequest` +`func (o *RackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservationRequest) SetRack(v RackRequest)` +`func (o *RackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -74,40 +74,40 @@ SetUnits sets Units field to given value. ### GetUser -`func (o *RackReservationRequest) GetUser() UserRequest` +`func (o *RackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, 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 *RackReservationRequest) SetUser(v UserRequest)` +`func (o *RackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservationRequest) GetTenant() TenantRequest` +`func (o *RackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, 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 *RackReservationRequest) SetTenant(v TenantRequest)` +`func (o *RackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/RackRole.md b/docs/RackRole.md index a13905573c..60b5f65d78 100644 --- a/docs/RackRole.md +++ b/docs/RackRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -13,15 +14,15 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**RackCount** | **int64** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**RackCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewRackRole -`func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole` +`func NewRackRole(id int32, url string, display string, name string, slug string, ) *RackRole` NewRackRole instantiates a new RackRole object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RackRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RackRole) GetDisplay() string` @@ -255,6 +281,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *RackRole) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -285,6 +316,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *RackRole) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -315,6 +351,11 @@ and a boolean to check if the value has been set. SetRackCount sets RackCount field to given value. +### HasRackCount + +`func (o *RackRole) HasRackCount() bool` + +HasRackCount 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/RackStatus.md b/docs/RackStatus.md new file mode 100644 index 0000000000..414f07ddeb --- /dev/null +++ b/docs/RackStatus.md @@ -0,0 +1,82 @@ +# RackStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] +**Label** | Pointer to [**RackStatusLabel**](RackStatusLabel.md) | | [optional] + +## Methods + +### NewRackStatus + +`func NewRackStatus() *RackStatus` + +NewRackStatus instantiates a new RackStatus 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 + +### NewRackStatusWithDefaults + +`func NewRackStatusWithDefaults() *RackStatus` + +NewRackStatusWithDefaults instantiates a new RackStatus 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 *RackStatus) GetValue() PatchedWritableRackRequestStatus` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackStatus) GetValueOk() (*PatchedWritableRackRequestStatus, 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 *RackStatus) SetValue(v PatchedWritableRackRequestStatus)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackStatus) GetLabel() RackStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackStatus) GetLabelOk() (*RackStatusLabel, 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 *RackStatus) SetLabel(v RackStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackStatus) 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/RackStatusLabel.md b/docs/RackStatusLabel.md new file mode 100644 index 0000000000..0b700039e6 --- /dev/null +++ b/docs/RackStatusLabel.md @@ -0,0 +1,19 @@ +# RackStatusLabel + +## Enum + + +* `RESERVED` (value: `"Reserved"`) + +* `AVAILABLE` (value: `"Available"`) + +* `PLANNED` (value: `"Planned"`) + +* `ACTIVE` (value: `"Active"`) + +* `DEPRECATED` (value: `"Deprecated"`) + + +[[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/RackType.md b/docs/RackType.md new file mode 100644 index 0000000000..5f89cc2f89 --- /dev/null +++ b/docs/RackType.md @@ -0,0 +1,750 @@ +# RackType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.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] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] + +## Methods + +### NewRackType + +`func NewRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, ) *RackType` + +NewRackType instantiates a new RackType 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 + +### NewRackTypeWithDefaults + +`func NewRackTypeWithDefaults() *RackType` + +NewRackTypeWithDefaults instantiates a new RackType 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 *RackType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RackType) 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 *RackType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *RackType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RackType) 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 *RackType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *RackType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RackType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *RackType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *RackType) 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 *RackType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *RackType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *RackType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *RackType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *RackType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *RackType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *RackType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *RackType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RackType) 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 *RackType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *RackType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RackType) 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 *RackType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RackType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *RackType) GetFormFactor() RackFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackType) GetFormFactorOk() (*RackFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackType) SetFormFactor(v RackFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackType) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackType) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackType) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackType) GetWidth() RackWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackType) GetWidthOk() (*RackWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackType) SetWidth(v RackWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackType) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackType) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackType) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackType) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackType) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackType) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackType) 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 *RackType) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackType) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *RackType) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackType) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackType) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackType) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackType) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackType) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackType) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackType) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackType) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackType) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackType) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackType) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackType) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackType) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackType) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackType) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackType) GetOuterUnit() RackOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackType) GetOuterUnitOk() (*RackOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackType) SetOuterUnit(v RackOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackType) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackType) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackType) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *RackType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackType) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackType) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackType) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackType) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackType) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackType) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackType) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackType) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackType) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackType) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackType) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackType) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *RackType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackType) 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 *RackType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackType) 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 *RackType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *RackType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RackType) 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 *RackType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *RackType) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *RackType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RackType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RackType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RackType) 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 *RackType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *RackType) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *RackType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RackType) 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/RackTypeRequest.md b/docs/RackTypeRequest.md new file mode 100644 index 0000000000..687419032f --- /dev/null +++ b/docs/RackTypeRequest.md @@ -0,0 +1,589 @@ +# RackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**NullablePatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullablePatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewRackTypeRequest + +`func NewRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *RackTypeRequest` + +NewRackTypeRequest instantiates a new RackTypeRequest 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 + +### NewRackTypeRequestWithDefaults + +`func NewRackTypeRequestWithDefaults() *RackTypeRequest` + +NewRackTypeRequestWithDefaults instantiates a new RackTypeRequest 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 + +### GetManufacturer + +`func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *RackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *RackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *RackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *RackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *RackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RackTypeRequest) 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 *RackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *RackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RackTypeRequest) 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 *RackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *RackTypeRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackTypeRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackTypeRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackTypeRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackTypeRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackTypeRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackTypeRequest) GetWidth() RackWidthValue` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackTypeRequest) GetWidthOk() (*RackWidthValue, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackTypeRequest) SetWidth(v RackWidthValue)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackTypeRequest) 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 *RackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *RackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackTypeRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackTypeRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *RackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *RackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackTypeRequest) 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 *RackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackTypeRequest) 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 *RackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/RackUnit.md b/docs/RackUnit.md index 507d76f97f..170729fb94 100644 --- a/docs/RackUnit.md +++ b/docs/RackUnit.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **float64** | | [readonly] **Name** | **string** | | [readonly] **Face** | [**RackUnitFace**](RackUnitFace.md) | | -**Device** | [**Device**](Device.md) | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | [readonly] **Occupied** | **bool** | | [readonly] **Display** | **string** | | [readonly] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewRackUnit -`func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string, ) *RackUnit` +`func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string, ) *RackUnit` NewRackUnit instantiates a new RackUnit object This constructor will assign default values to properties that have it defined, @@ -92,20 +92,20 @@ SetFace sets Face field to given value. ### GetDevice -`func (o *RackUnit) GetDevice() Device` +`func (o *RackUnit) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RackUnit) GetDeviceOk() (*Device, bool)` +`func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RackUnit) SetDevice(v Device)` +`func (o *RackUnit) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. diff --git a/docs/RackUnitFace 2.md b/docs/RackUnitFace 2.md new file mode 100644 index 0000000000..2577a26862 --- /dev/null +++ b/docs/RackUnitFace 2.md @@ -0,0 +1,82 @@ +# RackUnitFace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**RackUnitFaceValue**](RackUnitFaceValue.md) | | [optional] +**Label** | Pointer to [**DeviceFaceLabel**](DeviceFaceLabel.md) | | [optional] + +## Methods + +### NewRackUnitFace + +`func NewRackUnitFace() *RackUnitFace` + +NewRackUnitFace instantiates a new RackUnitFace 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 + +### NewRackUnitFaceWithDefaults + +`func NewRackUnitFaceWithDefaults() *RackUnitFace` + +NewRackUnitFaceWithDefaults instantiates a new RackUnitFace 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 *RackUnitFace) GetValue() RackUnitFaceValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackUnitFace) GetValueOk() (*RackUnitFaceValue, 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 *RackUnitFace) SetValue(v RackUnitFaceValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackUnitFace) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackUnitFace) GetLabel() DeviceFaceLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackUnitFace) GetLabelOk() (*DeviceFaceLabel, 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 *RackUnitFace) SetLabel(v DeviceFaceLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackUnitFace) 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/L2VPNType.md b/docs/RackWidth.md similarity index 65% rename from docs/L2VPNType.md rename to docs/RackWidth.md index e1a34c35cf..04b03ffe83 100644 --- a/docs/L2VPNType.md +++ b/docs/RackWidth.md @@ -1,78 +1,78 @@ -# L2VPNType +# RackWidth ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] -**Label** | Pointer to [**L2VPNTypeLabel**](L2VPNTypeLabel.md) | | [optional] +**Value** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**Label** | Pointer to [**RackWidthLabel**](RackWidthLabel.md) | | [optional] ## Methods -### NewL2VPNType +### NewRackWidth -`func NewL2VPNType() *L2VPNType` +`func NewRackWidth() *RackWidth` -NewL2VPNType instantiates a new L2VPNType object +NewRackWidth instantiates a new RackWidth 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 -### NewL2VPNTypeWithDefaults +### NewRackWidthWithDefaults -`func NewL2VPNTypeWithDefaults() *L2VPNType` +`func NewRackWidthWithDefaults() *RackWidth` -NewL2VPNTypeWithDefaults instantiates a new L2VPNType object +NewRackWidthWithDefaults instantiates a new RackWidth 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 *L2VPNType) GetValue() L2VPNTypeValue` +`func (o *RackWidth) GetValue() RackWidthValue` GetValue returns the Value field if non-nil, zero value otherwise. ### GetValueOk -`func (o *L2VPNType) GetValueOk() (*L2VPNTypeValue, bool)` +`func (o *RackWidth) GetValueOk() (*RackWidthValue, 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 *L2VPNType) SetValue(v L2VPNTypeValue)` +`func (o *RackWidth) SetValue(v RackWidthValue)` SetValue sets Value field to given value. ### HasValue -`func (o *L2VPNType) HasValue() bool` +`func (o *RackWidth) HasValue() bool` HasValue returns a boolean if a field has been set. ### GetLabel -`func (o *L2VPNType) GetLabel() L2VPNTypeLabel` +`func (o *RackWidth) GetLabel() RackWidthLabel` GetLabel returns the Label field if non-nil, zero value otherwise. ### GetLabelOk -`func (o *L2VPNType) GetLabelOk() (*L2VPNTypeLabel, bool)` +`func (o *RackWidth) GetLabelOk() (*RackWidthLabel, 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 *L2VPNType) SetLabel(v L2VPNTypeLabel)` +`func (o *RackWidth) SetLabel(v RackWidthLabel)` SetLabel sets Label field to given value. ### HasLabel -`func (o *L2VPNType) HasLabel() bool` +`func (o *RackWidth) HasLabel() bool` HasLabel returns a boolean if a field has been set. diff --git a/docs/RackWidthLabel.md b/docs/RackWidthLabel.md new file mode 100644 index 0000000000..c6fa6cba1a --- /dev/null +++ b/docs/RackWidthLabel.md @@ -0,0 +1,17 @@ +# RackWidthLabel + +## Enum + + +* `_10_INCHES` (value: `"10 inches"`) + +* `_19_INCHES` (value: `"19 inches"`) + +* `_21_INCHES` (value: `"21 inches"`) + +* `_23_INCHES` (value: `"23 inches"`) + + +[[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/RackWidthValue.md b/docs/RackWidthValue.md new file mode 100644 index 0000000000..c4f90af4da --- /dev/null +++ b/docs/RackWidthValue.md @@ -0,0 +1,17 @@ +# RackWidthValue + +## Enum + + +* `_10` (value: `10`) + +* `_19` (value: `19`) + +* `_21` (value: `21`) + +* `_23` (value: `23`) + + +[[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/RearPort.md b/docs/RearPort.md index 18ec1face6..93cc0d2781 100644 --- a/docs/RearPort.md +++ b/docs/RearPort.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -16,21 +17,21 @@ Name | Type | Description | Notes **Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | Pointer to [**NullableBriefCable**](BriefCable.md) | | [optional] [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | Pointer to **NullableString** | Return the type of the peer link terminations, or None. | [optional] [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewRearPort -`func NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` +`func NewRearPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, cableEnd string, linkPeers []interface{}, occupied bool, ) *RearPort` NewRearPort instantiates a new RearPort object This constructor will assign default values to properties that have it defined, @@ -85,6 +86,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RearPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RearPort) GetDisplay() string` @@ -107,40 +133,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *RearPort) GetDevice() Device` +`func (o *RearPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPort) GetDeviceOk() (*Device, bool)` +`func (o *RearPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPort) SetDevice(v Device)` +`func (o *RearPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPort) GetModule() Module` +`func (o *RearPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPort) GetModuleOk() (*Module, bool)` +`func (o *RearPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPort) SetModule(v Module)` +`func (o *RearPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -327,23 +353,28 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *RearPort) GetCable() Cable` +`func (o *RearPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *RearPort) GetCableOk() (*Cable, bool)` +`func (o *RearPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *RearPort) SetCable(v Cable)` +`func (o *RearPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. +### HasCable + +`func (o *RearPort) HasCable() bool` + +HasCable returns a boolean if a field has been set. ### SetCableNil @@ -414,7 +445,22 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### HasLinkPeersType + +`func (o *RearPort) HasLinkPeersType() bool` + +HasLinkPeersType returns a boolean if a field has been set. + +### SetLinkPeersTypeNil + +`func (o *RearPort) SetLinkPeersTypeNil(b bool)` + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *RearPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *RearPort) GetTags() []NestedTag` @@ -484,6 +530,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *RearPort) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -514,6 +565,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *RearPort) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/RearPortRequest.md b/docs/RearPortRequest.md index 3555c4450e..8a6a327559 100644 --- a/docs/RearPortRequest.md +++ b/docs/RearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewRearPortRequest -`func NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` +`func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` NewRearPortRequest instantiates a new RearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *RearPortRequest) GetDevice() DeviceRequest` +`func (o *RearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPortRequest) SetDevice(v DeviceRequest)` +`func (o *RearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPortRequest) GetModule() ModuleRequest` +`func (o *RearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPortRequest) SetModule(v ModuleRequest)` +`func (o *RearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/RearPortTemplate 2.md b/docs/RearPortTemplate 2.md new file mode 100644 index 0000000000..004494da36 --- /dev/null +++ b/docs/RearPortTemplate 2.md @@ -0,0 +1,140 @@ +# RearPortTemplate + +## Properties + +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. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewRearPortTemplate + +`func NewRearPortTemplate(id int32, url string, display string, name string, ) *RearPortTemplate` + +NewRearPortTemplate instantiates a new RearPortTemplate 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 + +### NewRearPortTemplateWithDefaults + +`func NewRearPortTemplateWithDefaults() *RearPortTemplate` + +NewRearPortTemplateWithDefaults instantiates a new RearPortTemplate 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 *RearPortTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *RearPortTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *RearPortTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *RearPortTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *RearPortTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RearPortTemplate) 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/RearPortTemplate.md b/docs/RearPortTemplate.md index 004494da36..6215ee81d7 100644 --- a/docs/RearPortTemplate.md +++ b/docs/RearPortTemplate.md @@ -7,14 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **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] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewRearPortTemplate -`func NewRearPortTemplate(id int32, url string, display string, name string, ) *RearPortTemplate` +`func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, ) *RearPortTemplate` NewRearPortTemplate instantiates a new RearPortTemplate object This constructor will assign default values to properties that have it defined, @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *RearPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplate) GetName() string` @@ -109,6 +187,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplate) GetType() FrontPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplate) SetType(v FrontPortType)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplate) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplate) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplate) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplate) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplate) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplate) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplate) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplate) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplate) GetDescription() string` @@ -134,6 +307,76 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *RearPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *RearPortTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *RearPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RearPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RearPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RearPortTemplate) 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 *RearPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *RearPortTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *RearPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RearPortTemplate) 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/RearPortTemplateRequest.md b/docs/RearPortTemplateRequest.md index d139cde910..71bf28cd37 100644 --- a/docs/RearPortTemplateRequest.md +++ b/docs/RearPortTemplateRequest.md @@ -4,14 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods ### NewRearPortTemplateRequest -`func NewRearPortTemplateRequest(name string, ) *RearPortTemplateRequest` +`func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue, ) *RearPortTemplateRequest` NewRearPortTemplateRequest instantiates a new RearPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +32,76 @@ NewRearPortTemplateRequestWithDefaults instantiates a new RearPortTemplateReques 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 +### GetDeviceType + +`func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplateRequest) GetName() string` @@ -46,6 +122,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplateRequest) 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 *RearPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplateRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplateRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplateRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplateRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplateRequest) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplateRequest) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplateRequest) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplateRequest) GetDescription() string` diff --git a/docs/Region 2.md b/docs/Region 2.md new file mode 100644 index 0000000000..f7c3a1a817 --- /dev/null +++ b/docs/Region 2.md @@ -0,0 +1,353 @@ +# Region + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Parent** | Pointer to [**NullableNestedRegion**](NestedRegion.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**SiteCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewRegion + +`func NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` + +NewRegion instantiates a new Region 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 + +### NewRegionWithDefaults + +`func NewRegionWithDefaults() *Region` + +NewRegionWithDefaults instantiates a new Region 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 *Region) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Region) 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 *Region) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Region) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Region) 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 *Region) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Region) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Region) 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 *Region) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *Region) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Region) 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 *Region) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *Region) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *Region) 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 *Region) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetParent + +`func (o *Region) GetParent() NestedRegion` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *Region) GetParentOk() (*NestedRegion, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *Region) SetParent(v NestedRegion)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *Region) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *Region) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *Region) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetDescription + +`func (o *Region) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Region) 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 *Region) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Region) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *Region) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Region) 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 *Region) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Region) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Region) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Region) 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 *Region) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Region) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Region) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Region) 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 *Region) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Region) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Region) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Region) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Region) 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 *Region) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Region) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Region) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetSiteCount + +`func (o *Region) GetSiteCount() int32` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *Region) GetSiteCountOk() (*int32, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *Region) SetSiteCount(v int32)` + +SetSiteCount sets SiteCount field to given value. + + +### GetDepth + +`func (o *Region) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *Region) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *Region) SetDepth(v int32)` + +SetDepth sets Depth 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/Region.md b/docs/Region.md index f7c3a1a817..3d553ce8fc 100644 --- a/docs/Region.md +++ b/docs/Region.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -13,16 +14,17 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**SiteCount** | **int32** | | [readonly] [default to 0] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Depth** | **int32** | | [readonly] ## Methods ### NewRegion -`func NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` +`func NewRegion(id int32, url string, display string, name string, slug string, depth int32, ) *Region` NewRegion instantiates a new Region object This constructor will assign default values to properties that have it defined, @@ -77,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Region) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Region) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Region) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Region) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Region) GetDisplay() string` @@ -266,6 +293,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Region) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -296,6 +328,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Region) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -326,6 +363,36 @@ and a boolean to check if the value has been set. SetSiteCount sets SiteCount field to given value. +### HasSiteCount + +`func (o *Region) HasSiteCount() bool` + +HasSiteCount returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *Region) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Region) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Region) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Region) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/RegionRequest 2.md b/docs/RegionRequest 2.md new file mode 100644 index 0000000000..c578becd3c --- /dev/null +++ b/docs/RegionRequest 2.md @@ -0,0 +1,186 @@ +# RegionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Parent** | Pointer to [**NullableNestedRegionRequest**](NestedRegionRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewRegionRequest + +`func NewRegionRequest(name string, slug string, ) *RegionRequest` + +NewRegionRequest instantiates a new RegionRequest 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 + +### NewRegionRequestWithDefaults + +`func NewRegionRequestWithDefaults() *RegionRequest` + +NewRegionRequestWithDefaults instantiates a new RegionRequest 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 *RegionRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RegionRequest) 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 *RegionRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *RegionRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RegionRequest) 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 *RegionRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetParent + +`func (o *RegionRequest) GetParent() NestedRegionRequest` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *RegionRequest) GetParentOk() (*NestedRegionRequest, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *RegionRequest) SetParent(v NestedRegionRequest)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *RegionRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *RegionRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *RegionRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetDescription + +`func (o *RegionRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RegionRequest) 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 *RegionRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RegionRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *RegionRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RegionRequest) 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 *RegionRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RegionRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RegionRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RegionRequest) 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 *RegionRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RegionRequest) HasCustomFields() bool` + +HasCustomFields 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/Role 2.md b/docs/Role 2.md new file mode 100644 index 0000000000..5054c3ea7e --- /dev/null +++ b/docs/Role 2.md @@ -0,0 +1,203 @@ +# Role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**PrefixCount** | **int64** | | [readonly] +**VlanCount** | **int64** | | [readonly] + +## Methods + +### NewRole + +`func NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64, ) *Role` + +NewRole instantiates a new Role 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 + +### NewRoleWithDefaults + +`func NewRoleWithDefaults() *Role` + +NewRoleWithDefaults instantiates a new Role 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 *Role) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Role) 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 *Role) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Role) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Role) 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 *Role) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Role) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Role) 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 *Role) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *Role) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Role) 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 *Role) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *Role) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *Role) 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 *Role) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *Role) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Role) 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 *Role) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Role) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *Role) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Role) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Role) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + + +### GetVlanCount + +`func (o *Role) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Role) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Role) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount 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/Role.md b/docs/Role.md index 5054c3ea7e..8886ee763a 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,18 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] -**PrefixCount** | **int64** | | [readonly] -**VlanCount** | **int64** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewRole -`func NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64, ) *Role` +`func NewRole(id int32, url string, display string, name string, slug string, ) *Role` NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, @@ -72,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Role) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Role) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Role) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Role) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Role) GetDisplay() string` @@ -132,6 +163,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *Role) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Role) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Role) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Role) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *Role) GetDescription() string` @@ -157,6 +213,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Role) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Role) 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 *Role) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Role) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Role) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Role) 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 *Role) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Role) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Role) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Role) 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 *Role) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Role) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Role) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Role) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Role) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Role) 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 *Role) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Role) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Role) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Role) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetPrefixCount `func (o *Role) GetPrefixCount() int64` @@ -176,6 +352,11 @@ and a boolean to check if the value has been set. SetPrefixCount sets PrefixCount field to given value. +### HasPrefixCount + +`func (o *Role) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. ### GetVlanCount @@ -196,6 +377,11 @@ and a boolean to check if the value has been set. SetVlanCount sets VlanCount field to given value. +### HasVlanCount + +`func (o *Role) HasVlanCount() bool` + +HasVlanCount 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/RoleRequest 2.md b/docs/RoleRequest 2.md new file mode 100644 index 0000000000..4ea26627a6 --- /dev/null +++ b/docs/RoleRequest 2.md @@ -0,0 +1,98 @@ +# RoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewRoleRequest + +`func NewRoleRequest(name string, slug string, ) *RoleRequest` + +NewRoleRequest instantiates a new RoleRequest 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 + +### NewRoleRequestWithDefaults + +`func NewRoleRequestWithDefaults() *RoleRequest` + +NewRoleRequestWithDefaults instantiates a new RoleRequest 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 *RoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *RoleRequest) 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 *RoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *RoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RoleRequest) 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 *RoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *RoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RoleRequest) 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 *RoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RoleRequest) 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/RoleRequest.md b/docs/RoleRequest.md index 4ea26627a6..8a35bd48f6 100644 --- a/docs/RoleRequest.md +++ b/docs/RoleRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *RoleRequest) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RoleRequest) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RoleRequest) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RoleRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *RoleRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RoleRequest) 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 *RoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RoleRequest) 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 *RoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RoleRequest) HasCustomFields() bool` + +HasCustomFields 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/RouteTarget.md b/docs/RouteTarget.md index 55b89b478d..cefab38fd3 100644 --- a/docs/RouteTarget.md +++ b/docs/RouteTarget.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewRouteTarget -`func NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *RouteTarget` +`func NewRouteTarget(id int32, url string, display string, name string, ) *RouteTarget` NewRouteTarget instantiates a new RouteTarget object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RouteTarget) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RouteTarget) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RouteTarget) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RouteTarget) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RouteTarget) GetDisplay() string` @@ -117,20 +143,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTarget) GetTenant() Tenant` +`func (o *RouteTarget) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTarget) GetTenantOk() (*Tenant, bool)` +`func (o *RouteTarget) GetTenantOk() (*BriefTenant, 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 *RouteTarget) SetTenant(v Tenant)` +`func (o *RouteTarget) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -269,6 +295,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *RouteTarget) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -299,6 +330,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *RouteTarget) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/RouteTargetRequest.md b/docs/RouteTargetRequest.md index 2627327d1b..55aedbd23d 100644 --- a/docs/RouteTargetRequest.md +++ b/docs/RouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -52,20 +52,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTargetRequest) GetTenant() TenantRequest` +`func (o *RouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, 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 *RouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/SavedFilter.md b/docs/SavedFilter.md index 78ce2dbcbe..785387082a 100644 --- a/docs/SavedFilter.md +++ b/docs/SavedFilter.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -16,14 +17,14 @@ Name | Type | Description | Notes **Enabled** | Pointer to **bool** | | [optional] **Shared** | Pointer to **bool** | | [optional] **Parameters** | **interface{}** | | -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewSavedFilter -`func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter` +`func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, ) *SavedFilter` NewSavedFilter instantiates a new SavedFilter object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SavedFilter) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SavedFilter) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SavedFilter) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *SavedFilter) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *SavedFilter) GetDisplay() string` @@ -342,6 +368,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *SavedFilter) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -372,6 +403,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *SavedFilter) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/SchemaAPI 2.md b/docs/SchemaAPI 2.md new file mode 100644 index 0000000000..21435ca5df --- /dev/null +++ b/docs/SchemaAPI 2.md @@ -0,0 +1,77 @@ +# \SchemaAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SchemaRetrieve**](SchemaAPI.md#SchemaRetrieve) | **Get** /api/schema/ | + + + +## SchemaRetrieve + +> map[string]interface{} SchemaRetrieve(ctx).Format(format).Lang(lang).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + format := openapiclient.schema_retrieve_format_parameter("json") // SchemaRetrieveFormatParameter | (optional) + lang := openapiclient.schema_retrieve_lang_parameter("de") // SchemaRetrieveLangParameter | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SchemaAPI.SchemaRetrieve(context.Background()).Format(format).Lang(lang).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSchemaRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **format** | [**SchemaRetrieveFormatParameter**](SchemaRetrieveFormatParameter.md) | | + **lang** | [**SchemaRetrieveLangParameter**](SchemaRetrieveLangParameter.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.oai.openapi, application/yaml, application/vnd.oai.openapi+json, 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) + diff --git a/docs/SchemaAPI.md b/docs/SchemaAPI.md index 21435ca5df..166791f3f2 100644 --- a/docs/SchemaAPI.md +++ b/docs/SchemaAPI.md @@ -30,7 +30,7 @@ import ( func main() { format := openapiclient.schema_retrieve_format_parameter("json") // SchemaRetrieveFormatParameter | (optional) - lang := openapiclient.schema_retrieve_lang_parameter("de") // SchemaRetrieveLangParameter | (optional) + lang := openapiclient.schema_retrieve_lang_parameter("cs") // SchemaRetrieveLangParameter | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/SchemaRetrieveLangParameter.md b/docs/SchemaRetrieveLangParameter.md index aed2056cbe..ffba2fac9d 100644 --- a/docs/SchemaRetrieveLangParameter.md +++ b/docs/SchemaRetrieveLangParameter.md @@ -3,6 +3,10 @@ ## Enum +* `CS` (value: `"cs"`) + +* `DA` (value: `"da"`) + * `DE` (value: `"de"`) * `EN` (value: `"en"`) @@ -11,8 +15,14 @@ * `FR` (value: `"fr"`) +* `IT` (value: `"it"`) + * `JA` (value: `"ja"`) +* `NL` (value: `"nl"`) + +* `PL` (value: `"pl"`) + * `PT` (value: `"pt"`) * `RU` (value: `"ru"`) diff --git a/docs/Script.md b/docs/Script.md index e8ce7b887c..2bd7fdf26f 100644 --- a/docs/Script.md +++ b/docs/Script.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Module** | **int32** | | [readonly] **Name** | **string** | | [readonly] -**Description** | **string** | | [readonly] -**Vars** | **interface{}** | | [readonly] -**Result** | [**Job**](Job.md) | | [readonly] +**Description** | Pointer to **NullableString** | | [optional] [readonly] +**Vars** | Pointer to **interface{}** | | [optional] [readonly] +**Result** | [**BriefJob**](BriefJob.md) | | [readonly] **Display** | **string** | | [readonly] **IsExecutable** | **bool** | | [readonly] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewScript -`func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool, ) *Script` +`func NewScript(id int32, url string, module int32, name string, result BriefJob, display string, isExecutable bool, ) *Script` NewScript instantiates a new Script object This constructor will assign default values to properties that have it defined, @@ -73,6 +74,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Script) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Script) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Script) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Script) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetModule `func (o *Script) GetModule() int32` @@ -132,7 +158,22 @@ and a boolean to check if the value has been set. SetDescription sets Description field to given value. +### HasDescription + +`func (o *Script) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil +`func (o *Script) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Script) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetVars `func (o *Script) GetVars() interface{}` @@ -152,6 +193,11 @@ and a boolean to check if the value has been set. SetVars sets Vars field to given value. +### HasVars + +`func (o *Script) HasVars() bool` + +HasVars returns a boolean if a field has been set. ### SetVarsNil @@ -165,20 +211,20 @@ SetVars sets Vars field to given value. UnsetVars ensures that no value is present for Vars, not even an explicit nil ### GetResult -`func (o *Script) GetResult() Job` +`func (o *Script) GetResult() BriefJob` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *Script) GetResultOk() (*Job, bool)` +`func (o *Script) GetResultOk() (*BriefJob, bool)` GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResult -`func (o *Script) SetResult(v Job)` +`func (o *Script) SetResult(v BriefJob)` SetResult sets Result field to given value. diff --git a/docs/ScriptInputRequest.md b/docs/ScriptInputRequest.md new file mode 100644 index 0000000000..ed5d793996 --- /dev/null +++ b/docs/ScriptInputRequest.md @@ -0,0 +1,154 @@ +# ScriptInputRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **interface{}** | | +**Commit** | **bool** | | +**ScheduleAt** | Pointer to **NullableTime** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewScriptInputRequest + +`func NewScriptInputRequest(data interface{}, commit bool, ) *ScriptInputRequest` + +NewScriptInputRequest instantiates a new ScriptInputRequest 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 + +### NewScriptInputRequestWithDefaults + +`func NewScriptInputRequestWithDefaults() *ScriptInputRequest` + +NewScriptInputRequestWithDefaults instantiates a new ScriptInputRequest 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 + +### GetData + +`func (o *ScriptInputRequest) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ScriptInputRequest) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ScriptInputRequest) SetData(v interface{})` + +SetData sets Data field to given value. + + +### SetDataNil + +`func (o *ScriptInputRequest) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *ScriptInputRequest) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetCommit + +`func (o *ScriptInputRequest) GetCommit() bool` + +GetCommit returns the Commit field if non-nil, zero value otherwise. + +### GetCommitOk + +`func (o *ScriptInputRequest) GetCommitOk() (*bool, bool)` + +GetCommitOk returns a tuple with the Commit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommit + +`func (o *ScriptInputRequest) SetCommit(v bool)` + +SetCommit sets Commit field to given value. + + +### GetScheduleAt + +`func (o *ScriptInputRequest) GetScheduleAt() time.Time` + +GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise. + +### GetScheduleAtOk + +`func (o *ScriptInputRequest) GetScheduleAtOk() (*time.Time, bool)` + +GetScheduleAtOk returns a tuple with the ScheduleAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleAt + +`func (o *ScriptInputRequest) SetScheduleAt(v time.Time)` + +SetScheduleAt sets ScheduleAt field to given value. + +### HasScheduleAt + +`func (o *ScriptInputRequest) HasScheduleAt() bool` + +HasScheduleAt returns a boolean if a field has been set. + +### SetScheduleAtNil + +`func (o *ScriptInputRequest) SetScheduleAtNil(b bool)` + + SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil + +### UnsetScheduleAt +`func (o *ScriptInputRequest) UnsetScheduleAt()` + +UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +### GetInterval + +`func (o *ScriptInputRequest) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *ScriptInputRequest) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *ScriptInputRequest) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *ScriptInputRequest) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *ScriptInputRequest) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *ScriptInputRequest) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, 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/Service.md b/docs/Service.md index 230dccd710..2031b490e9 100644 --- a/docs/Service.md +++ b/docs/Service.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachine**](VirtualMachine.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachine**](BriefVirtualMachine.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -17,14 +18,14 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewService -`func NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *Service` +`func NewService(id int32, url string, display string, name string, ports []int32, ) *Service` NewService instantiates a new Service object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Service) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Service) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Service) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Service) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Service) GetDisplay() string` @@ -101,20 +127,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Service) GetDevice() Device` +`func (o *Service) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Service) GetDeviceOk() (*Device, bool)` +`func (o *Service) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Service) SetDevice(v Device)` +`func (o *Service) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -136,20 +162,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *Service) GetVirtualMachine() VirtualMachine` +`func (o *Service) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *Service) SetVirtualMachine(v VirtualMachine)` +`func (o *Service) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. @@ -378,6 +404,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Service) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -408,6 +439,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Service) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/ServiceRequest.md b/docs/ServiceRequest.md index bfabf2ad6a..8321249799 100644 --- a/docs/ServiceRequest.md +++ b/docs/ServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ServiceRequest) GetDevice() DeviceRequest` +`func (o *ServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ServiceRequest) SetDevice(v DeviceRequest)` +`func (o *ServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceTemplate.md b/docs/ServiceTemplate.md index a83d4f5cbf..27868bed83 100644 --- a/docs/ServiceTemplate.md +++ b/docs/ServiceTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] @@ -14,14 +15,14 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewServiceTemplate -`func NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *ServiceTemplate` +`func NewServiceTemplate(id int32, url string, display string, name string, ports []int32, ) *ServiceTemplate` NewServiceTemplate instantiates a new ServiceTemplate object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ServiceTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ServiceTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ServiceTemplate) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ServiceTemplate) GetDisplay() string` @@ -280,6 +306,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *ServiceTemplate) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -310,6 +341,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *ServiceTemplate) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/Site.md b/docs/Site.md index 0458e57f6f..a64b0aaf63 100644 --- a/docs/Site.md +++ b/docs/Site.md @@ -6,16 +6,39 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegion**](BriefRegion.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroup**](BriefSiteGroup.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [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] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**RackCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewSite -`func NewSite(id int32, url string, display string, name string, slug string, ) *Site` +`func NewSite(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Site` NewSite instantiates a new Site object This constructor will assign default values to properties that have it defined, @@ -70,6 +93,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Site) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Site) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Site) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Site) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Site) GetDisplay() string` @@ -130,6 +178,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *Site) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Site) GetStatusOk() (*LocationStatus, 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 *Site) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Site) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *Site) GetRegion() BriefRegion` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Site) GetRegionOk() (*BriefRegion, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Site) SetRegion(v BriefRegion)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Site) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *Site) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *Site) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *Site) GetGroup() BriefSiteGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Site) GetGroupOk() (*BriefSiteGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Site) SetGroup(v BriefSiteGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Site) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Site) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Site) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *Site) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Site) GetTenantOk() (*BriefTenant, 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 *Site) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Site) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Site) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Site) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Site) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Site) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Site) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Site) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *Site) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *Site) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *Site) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *Site) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *Site) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *Site) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *Site) GetDescription() string` @@ -155,6 +393,441 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *Site) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *Site) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *Site) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *Site) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *Site) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *Site) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *Site) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *Site) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *Site) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *Site) 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 *Site) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *Site) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *Site) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *Site) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *Site) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *Site) 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 *Site) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *Site) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *Site) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *Site) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *Site) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Site) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Site) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Site) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Site) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Site) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Site) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Site) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Site) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Site) 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 *Site) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Site) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Site) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Site) 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 *Site) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Site) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Site) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Site) 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 *Site) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Site) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Site) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Site) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Site) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Site) 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 *Site) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Site) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Site) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Site) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Site) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Site) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Site) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Site) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Site) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Site) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Site) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *Site) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Site) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Site) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Site) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. + +### GetRackCount + +`func (o *Site) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Site) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Site) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + +### HasRackCount + +`func (o *Site) HasRackCount() bool` + +HasRackCount returns a boolean if a field has been set. + +### GetVirtualmachineCount + +`func (o *Site) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Site) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Site) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *Site) HasVirtualmachineCount() bool` + +HasVirtualmachineCount returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *Site) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Site) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Site) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + +### HasVlanCount + +`func (o *Site) HasVlanCount() bool` + +HasVlanCount 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/SiteGroup.md b/docs/SiteGroup.md index b97426cac7..6e9fd9c7b7 100644 --- a/docs/SiteGroup.md +++ b/docs/SiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -13,16 +14,17 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**SiteCount** | **int32** | | [readonly] [default to 0] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Depth** | **int32** | | [readonly] ## Methods ### NewSiteGroup -`func NewSiteGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *SiteGroup` +`func NewSiteGroup(id int32, url string, display string, name string, slug string, depth int32, ) *SiteGroup` NewSiteGroup instantiates a new SiteGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *SiteGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *SiteGroup) GetDisplay() string` @@ -266,6 +293,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *SiteGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -296,6 +328,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *SiteGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -326,6 +363,36 @@ and a boolean to check if the value has been set. SetSiteCount sets SiteCount field to given value. +### HasSiteCount + +`func (o *SiteGroup) HasSiteCount() bool` + +HasSiteCount returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *SiteGroup) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *SiteGroup) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *SiteGroup) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *SiteGroup) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/SiteRequest.md b/docs/SiteRequest.md index b12c9721bb..a4efb95449 100644 --- a/docs/SiteRequest.md +++ b/docs/SiteRequest.md @@ -6,7 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [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] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +81,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *SiteRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, 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 *SiteRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SiteRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *SiteRequest) GetRegion() BriefRegionRequest` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *SiteRequest) SetRegion(v BriefRegionRequest)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *SiteRequest) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *SiteRequest) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *SiteRequest) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *SiteRequest) GetGroup() BriefSiteGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *SiteRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *SiteRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *SiteRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *SiteRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, 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 *SiteRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *SiteRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *SiteRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *SiteRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *SiteRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *SiteRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *SiteRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *SiteRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *SiteRequest) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *SiteRequest) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *SiteRequest) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *SiteRequest) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *SiteRequest) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *SiteRequest) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *SiteRequest) GetDescription() string` @@ -92,6 +296,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *SiteRequest) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *SiteRequest) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *SiteRequest) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *SiteRequest) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *SiteRequest) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *SiteRequest) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *SiteRequest) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *SiteRequest) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *SiteRequest) 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 *SiteRequest) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *SiteRequest) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *SiteRequest) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *SiteRequest) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *SiteRequest) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *SiteRequest) 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 *SiteRequest) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *SiteRequest) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *SiteRequest) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *SiteRequest) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *SiteRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *SiteRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *SiteRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *SiteRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *SiteRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *SiteRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *SiteRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *SiteRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *SiteRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SiteRequest) 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 *SiteRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SiteRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *SiteRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *SiteRequest) 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 *SiteRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *SiteRequest) HasCustomFields() bool` + +HasCustomFields 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/Subscription.md b/docs/Subscription.md new file mode 100644 index 0000000000..44387cc65d --- /dev/null +++ b/docs/Subscription.md @@ -0,0 +1,218 @@ +# Subscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**Object** | Pointer to **interface{}** | | [optional] [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Created** | Pointer to **time.Time** | | [optional] [readonly] + +## Methods + +### NewSubscription + +`func NewSubscription(id int32, url string, display string, objectType string, objectId int64, user BriefUser, ) *Subscription` + +NewSubscription instantiates a new Subscription 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 + +### NewSubscriptionWithDefaults + +`func NewSubscriptionWithDefaults() *Subscription` + +NewSubscriptionWithDefaults instantiates a new Subscription 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 *Subscription) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Subscription) 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 *Subscription) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Subscription) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Subscription) 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 *Subscription) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Subscription) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Subscription) 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 *Subscription) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectType + +`func (o *Subscription) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Subscription) 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 *Subscription) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *Subscription) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *Subscription) 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 *Subscription) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *Subscription) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *Subscription) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *Subscription) SetObject(v interface{})` + +SetObject sets Object field to given value. + +### HasObject + +`func (o *Subscription) HasObject() bool` + +HasObject returns a boolean if a field has been set. + +### SetObjectNil + +`func (o *Subscription) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *Subscription) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil +### GetUser + +`func (o *Subscription) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Subscription) GetUserOk() (*BriefUser, 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 *Subscription) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *Subscription) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Subscription) 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 *Subscription) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Subscription) HasCreated() bool` + +HasCreated 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/SubscriptionRequest.md b/docs/SubscriptionRequest.md new file mode 100644 index 0000000000..80d3e89e41 --- /dev/null +++ b/docs/SubscriptionRequest.md @@ -0,0 +1,93 @@ +# SubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | + +## Methods + +### NewSubscriptionRequest + +`func NewSubscriptionRequest(objectType string, objectId int64, user BriefUserRequest, ) *SubscriptionRequest` + +NewSubscriptionRequest instantiates a new SubscriptionRequest 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 + +### NewSubscriptionRequestWithDefaults + +`func NewSubscriptionRequestWithDefaults() *SubscriptionRequest` + +NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest 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 *SubscriptionRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SubscriptionRequest) 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 *SubscriptionRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *SubscriptionRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SubscriptionRequest) 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 *SubscriptionRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetUser + +`func (o *SubscriptionRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *SubscriptionRequest) GetUserOk() (*BriefUserRequest, 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 *SubscriptionRequest) SetUser(v BriefUserRequest)` + +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/Tag.md b/docs/Tag.md index 603faa5a08..fae4171658 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -13,14 +14,14 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **ObjectTypes** | Pointer to **[]string** | | [optional] **TaggedItems** | **int64** | | [readonly] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewTag -`func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag` +`func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, ) *Tag` NewTag instantiates a new Tag object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Tag) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Tag) GetDisplay() string` @@ -249,6 +275,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Tag) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -279,6 +310,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Tag) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/TenancyAPI.md b/docs/TenancyAPI.md index 0314e63970..fdb708718f 100644 --- a/docs/TenancyAPI.md +++ b/docs/TenancyAPI.md @@ -82,7 +82,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -146,7 +146,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -212,7 +212,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -278,7 +278,7 @@ import ( ) func main() { - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -393,7 +393,7 @@ Name | Type | Description | Notes ## TenancyContactAssignmentsList -> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).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).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).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() +> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).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).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Priority(priority).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -423,10 +423,10 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -456,8 +456,7 @@ func main() { objectTypeIdN := int32(56) // 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) - priority := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) - priorityN := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | Contact role (slug) (optional) roleN := []string{"Inner_example"} // []string | Contact role (slug) (optional) @@ -469,7 +468,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).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).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).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() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).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).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Priority(priority).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, "Full HTTP response: %v\n", r) @@ -500,10 +499,10 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -533,8 +532,7 @@ Name | Type | Description | Notes **objectTypeIdN** | **int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **priority** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | - **priorityN** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | **q** | **string** | Search | **role** | **[]string** | Contact role (slug) | **roleN** | **[]string** | Contact role (slug) | @@ -726,7 +724,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this contact assignment. - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -993,7 +991,7 @@ import ( ) func main() { - writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableContactGroupRequest | + writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1128,10 +1126,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []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) @@ -1223,10 +1221,10 @@ Other parameters are passed through a pointer to a apiTenancyContactGroupsListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Contact group (slug) | - **ancestorN** | **[]int32** | Contact group (slug) | - **ancestorId** | **[]int32** | Contact group (ID) | - **ancestorIdN** | **[]int32** | Contact group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1477,7 +1475,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this contact group. - writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableContactGroupRequest | + writableContactGroupRequest := *openapiclient.NewWritableContactGroupRequest("Name_example", "Slug_example") // WritableContactGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2655,10 +2653,10 @@ func main() { emailNie := []string{"Inner_example"} // []string | (optional) emailNiew := []string{"Inner_example"} // []string | (optional) emailNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2790,10 +2788,10 @@ Name | Type | Description | Notes **emailNie** | **[]string** | | **emailNiew** | **[]string** | | **emailNisw** | **[]string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -3445,10 +3443,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []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) @@ -3540,10 +3538,10 @@ Other parameters are passed through a pointer to a apiTenancyTenantGroupsListReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Tenant group (slug) | - **ancestorN** | **[]int32** | Tenant group (slug) | - **ancestorId** | **[]int32** | Tenant group (ID) | - **ancestorIdN** | **[]int32** | Tenant group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -4198,8 +4196,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4221,10 +4219,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4295,8 +4293,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4318,10 +4316,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | Tenant group (slug) | - **groupN** | **[]int32** | Tenant group (slug) | - **groupId** | **[]int32** | Tenant group (ID) | - **groupIdN** | **[]int32** | Tenant group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | diff --git a/docs/Tenant.md b/docs/Tenant.md index 68d998dce3..316676b297 100644 --- a/docs/Tenant.md +++ b/docs/Tenant.md @@ -6,16 +6,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroup**](BriefTenantGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**IpaddressCount** | **int64** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**RackCount** | Pointer to **int64** | | [optional] [readonly] +**SiteCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] +**VrfCount** | Pointer to **int64** | | [optional] [readonly] +**ClusterCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewTenant -`func NewTenant(id int32, url string, display string, name string, slug string, ) *Tenant` +`func NewTenant(id int32, url string, display string, name string, slug string, circuitCount int64, ipaddressCount int64, ) *Tenant` NewTenant instantiates a new Tenant object This constructor will assign default values to properties that have it defined, @@ -70,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tenant) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tenant) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tenant) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Tenant) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Tenant) GetDisplay() string` @@ -130,6 +172,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *Tenant) GetGroup() BriefTenantGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tenant) SetGroup(v BriefTenantGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tenant) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tenant) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tenant) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *Tenant) GetDescription() string` @@ -155,6 +232,391 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tenant) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tenant) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tenant) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tenant) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tenant) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tenant) 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 *Tenant) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tenant) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tenant) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tenant) 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 *Tenant) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tenant) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tenant) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tenant) 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 *Tenant) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Tenant) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Tenant) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tenant) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tenant) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tenant) 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 *Tenant) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Tenant) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Tenant) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tenant) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Tenant) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Tenant) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Tenant) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Tenant) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Tenant) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Tenant) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Tenant) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetIpaddressCount + +`func (o *Tenant) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *Tenant) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *Tenant) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + +### GetPrefixCount + +`func (o *Tenant) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Tenant) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Tenant) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Tenant) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. + +### GetRackCount + +`func (o *Tenant) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Tenant) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Tenant) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + +### HasRackCount + +`func (o *Tenant) HasRackCount() bool` + +HasRackCount returns a boolean if a field has been set. + +### GetSiteCount + +`func (o *Tenant) GetSiteCount() int64` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *Tenant) GetSiteCountOk() (*int64, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *Tenant) SetSiteCount(v int64)` + +SetSiteCount sets SiteCount field to given value. + +### HasSiteCount + +`func (o *Tenant) HasSiteCount() bool` + +HasSiteCount returns a boolean if a field has been set. + +### GetVirtualmachineCount + +`func (o *Tenant) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Tenant) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *Tenant) HasVirtualmachineCount() bool` + +HasVirtualmachineCount returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *Tenant) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Tenant) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Tenant) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + +### HasVlanCount + +`func (o *Tenant) HasVlanCount() bool` + +HasVlanCount returns a boolean if a field has been set. + +### GetVrfCount + +`func (o *Tenant) GetVrfCount() int64` + +GetVrfCount returns the VrfCount field if non-nil, zero value otherwise. + +### GetVrfCountOk + +`func (o *Tenant) GetVrfCountOk() (*int64, bool)` + +GetVrfCountOk returns a tuple with the VrfCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrfCount + +`func (o *Tenant) SetVrfCount(v int64)` + +SetVrfCount sets VrfCount field to given value. + +### HasVrfCount + +`func (o *Tenant) HasVrfCount() bool` + +HasVrfCount returns a boolean if a field has been set. + +### GetClusterCount + +`func (o *Tenant) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *Tenant) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *Tenant) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + +### HasClusterCount + +`func (o *Tenant) HasClusterCount() bool` + +HasClusterCount 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/TenantGroup.md b/docs/TenantGroup.md index 22a3d41c5a..9ea3410b9c 100644 --- a/docs/TenantGroup.md +++ b/docs/TenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -13,8 +14,8 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **TenantCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewTenantGroup -`func NewTenantGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32, ) *TenantGroup` +`func NewTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32, ) *TenantGroup` NewTenantGroup instantiates a new TenantGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TenantGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TenantGroup) GetDisplay() string` @@ -266,6 +292,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *TenantGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -296,6 +327,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *TenantGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/TenantRequest 2.md b/docs/TenantRequest 2.md new file mode 100644 index 0000000000..7a4881f710 --- /dev/null +++ b/docs/TenantRequest 2.md @@ -0,0 +1,98 @@ +# TenantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewTenantRequest + +`func NewTenantRequest(name string, slug string, ) *TenantRequest` + +NewTenantRequest instantiates a new TenantRequest 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 + +### NewTenantRequestWithDefaults + +`func NewTenantRequestWithDefaults() *TenantRequest` + +NewTenantRequestWithDefaults instantiates a new TenantRequest 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 *TenantRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TenantRequest) 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 *TenantRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *TenantRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *TenantRequest) 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 *TenantRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *TenantRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TenantRequest) 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 *TenantRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *TenantRequest) 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/TenantRequest.md b/docs/TenantRequest.md index 7a4881f710..948e6d6e2e 100644 --- a/docs/TenantRequest.md +++ b/docs/TenantRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *TenantRequest) GetGroup() BriefTenantGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TenantRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TenantRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TenantRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *TenantRequest) GetDescription() string` @@ -92,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TenantRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TenantRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TenantRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TenantRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TenantRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TenantRequest) 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 *TenantRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TenantRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TenantRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TenantRequest) 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 *TenantRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TenantRequest) HasCustomFields() bool` + +HasCustomFields 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/Termination.md b/docs/TerminationSide.md similarity index 92% rename from docs/Termination.md rename to docs/TerminationSide.md index 8cfc0f739c..2d2e176963 100644 --- a/docs/Termination.md +++ b/docs/TerminationSide.md @@ -1,4 +1,4 @@ -# Termination +# TerminationSide ## Enum diff --git a/docs/Termination1.md b/docs/TerminationSide1.md similarity index 92% rename from docs/Termination1.md rename to docs/TerminationSide1.md index 95e164d117..a869797050 100644 --- a/docs/Termination1.md +++ b/docs/TerminationSide1.md @@ -1,4 +1,4 @@ -# Termination1 +# TerminationSide1 ## Enum diff --git a/docs/Token 2.md b/docs/Token 2.md new file mode 100644 index 0000000000..d39896b1ec --- /dev/null +++ b/docs/Token 2.md @@ -0,0 +1,285 @@ +# Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**User** | [**User**](User.md) | | +**Created** | **time.Time** | | [readonly] +**Expires** | Pointer to **NullableTime** | | [optional] +**LastUsed** | Pointer to **NullableTime** | | [optional] +**Key** | Pointer to **string** | | [optional] +**WriteEnabled** | Pointer to **bool** | Permit create/update/delete operations using this key | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewToken + +`func NewToken(id int32, url string, display string, user User, created time.Time, ) *Token` + +NewToken instantiates a new Token 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 + +### NewTokenWithDefaults + +`func NewTokenWithDefaults() *Token` + +NewTokenWithDefaults instantiates a new Token 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 *Token) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Token) 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 *Token) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Token) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Token) 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 *Token) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Token) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Token) 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 *Token) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetUser + +`func (o *Token) GetUser() User` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Token) GetUserOk() (*User, 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 *Token) SetUser(v User)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *Token) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Token) 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 *Token) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExpires + +`func (o *Token) GetExpires() time.Time` + +GetExpires returns the Expires field if non-nil, zero value otherwise. + +### GetExpiresOk + +`func (o *Token) 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 *Token) SetExpires(v time.Time)` + +SetExpires sets Expires field to given value. + +### HasExpires + +`func (o *Token) HasExpires() bool` + +HasExpires returns a boolean if a field has been set. + +### SetExpiresNil + +`func (o *Token) SetExpiresNil(b bool)` + + SetExpiresNil sets the value for Expires to be an explicit nil + +### UnsetExpires +`func (o *Token) UnsetExpires()` + +UnsetExpires ensures that no value is present for Expires, not even an explicit nil +### GetLastUsed + +`func (o *Token) GetLastUsed() time.Time` + +GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. + +### GetLastUsedOk + +`func (o *Token) 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 *Token) SetLastUsed(v time.Time)` + +SetLastUsed sets LastUsed field to given value. + +### HasLastUsed + +`func (o *Token) HasLastUsed() bool` + +HasLastUsed returns a boolean if a field has been set. + +### SetLastUsedNil + +`func (o *Token) SetLastUsedNil(b bool)` + + SetLastUsedNil sets the value for LastUsed to be an explicit nil + +### UnsetLastUsed +`func (o *Token) UnsetLastUsed()` + +UnsetLastUsed ensures that no value is present for LastUsed, not even an explicit nil +### GetKey + +`func (o *Token) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *Token) 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 *Token) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *Token) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetWriteEnabled + +`func (o *Token) GetWriteEnabled() bool` + +GetWriteEnabled returns the WriteEnabled field if non-nil, zero value otherwise. + +### GetWriteEnabledOk + +`func (o *Token) 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 *Token) SetWriteEnabled(v bool)` + +SetWriteEnabled sets WriteEnabled field to given value. + +### HasWriteEnabled + +`func (o *Token) HasWriteEnabled() bool` + +HasWriteEnabled returns a boolean if a field has been set. + +### GetDescription + +`func (o *Token) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Token) 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 *Token) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Token) 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/Token.md b/docs/Token.md index d39896b1ec..6e740e69cf 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | -**Created** | **time.Time** | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Created** | Pointer to **time.Time** | | [optional] [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewToken -`func NewToken(id int32, url string, display string, user User, created time.Time, ) *Token` +`func NewToken(id int32, url string, display string, user BriefUser, ) *Token` NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Token) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Token) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Token) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Token) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Token) GetDisplay() string` @@ -96,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *Token) GetUser() User` +`func (o *Token) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Token) GetUserOk() (*User, bool)` +`func (o *Token) GetUserOk() (*BriefUser, 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 *Token) SetUser(v User)` +`func (o *Token) SetUser(v BriefUser)` SetUser sets User field to given value. @@ -133,6 +159,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Token) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### GetExpires diff --git a/docs/TokenProvision.md b/docs/TokenProvision.md index 8b0aa1be20..c0dd81bd31 100644 --- a/docs/TokenProvision.md +++ b/docs/TokenProvision.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | [readonly] -**Created** | **time.Time** | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] +**Created** | Pointer to **time.Time** | | [optional] [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | **time.Time** | | [readonly] **Key** | **string** | | [readonly] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewTokenProvision -`func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` +`func NewTokenProvision(id int32, url string, display string, user BriefUser, lastUsed time.Time, key string, ) *TokenProvision` NewTokenProvision instantiates a new TokenProvision object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TokenProvision) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TokenProvision) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TokenProvision) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TokenProvision) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TokenProvision) GetDisplay() string` @@ -96,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *TokenProvision) GetUser() User` +`func (o *TokenProvision) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenProvision) GetUserOk() (*User, bool)` +`func (o *TokenProvision) GetUserOk() (*BriefUser, 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 User)` +`func (o *TokenProvision) SetUser(v BriefUser)` SetUser sets User field to given value. @@ -133,6 +159,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *TokenProvision) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### GetExpires diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md index 06de41a6db..b34549c9cd 100644 --- a/docs/TokenRequest.md +++ b/docs/TokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | [**UserRequest**](UserRequest.md) | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewTokenRequest -`func NewTokenRequest(user UserRequest, ) *TokenRequest` +`func NewTokenRequest(user BriefUserRequest, ) *TokenRequest` NewTokenRequest instantiates a new TokenRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *TokenRequest) GetUser() UserRequest` +`func (o *TokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *TokenRequest) GetUserOk() (*BriefUserRequest, 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 *TokenRequest) SetUser(v UserRequest)` +`func (o *TokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/Tunnel 2.md b/docs/Tunnel 2.md new file mode 100644 index 0000000000..0ed4424722 --- /dev/null +++ b/docs/Tunnel 2.md @@ -0,0 +1,140 @@ +# Tunnel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewTunnel + +`func NewTunnel(id int32, url string, display string, name string, ) *Tunnel` + +NewTunnel instantiates a new Tunnel 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 + +### NewTunnelWithDefaults + +`func NewTunnelWithDefaults() *Tunnel` + +NewTunnelWithDefaults instantiates a new Tunnel 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 *Tunnel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Tunnel) 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 *Tunnel) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Tunnel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Tunnel) 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 *Tunnel) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Tunnel) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Tunnel) 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 *Tunnel) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *Tunnel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Tunnel) 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 *Tunnel) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *Tunnel) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Tunnel) 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 *Tunnel) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Tunnel) 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/Tunnel.md b/docs/Tunnel.md index 0ed4424722..f997836b44 100644 --- a/docs/Tunnel.md +++ b/docs/Tunnel.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Status** | [**TunnelStatus**](TunnelStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroup**](BriefTunnelGroup.md) | | [optional] +**Encapsulation** | [**TunnelEncapsulation**](TunnelEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfile**](BriefIPSecProfile.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**TerminationsCount** | **int64** | | [readonly] ## Methods ### NewTunnel -`func NewTunnel(id int32, url string, display string, name string, ) *Tunnel` +`func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, terminationsCount int64, ) *Tunnel` NewTunnel instantiates a new Tunnel object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tunnel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tunnel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tunnel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Tunnel) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Tunnel) GetDisplay() string` @@ -109,6 +147,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *Tunnel) GetStatus() TunnelStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Tunnel) GetStatusOk() (*TunnelStatus, 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 *Tunnel) SetStatus(v TunnelStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *Tunnel) GetGroup() BriefTunnelGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tunnel) SetGroup(v BriefTunnelGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tunnel) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tunnel) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tunnel) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *Tunnel) GetEncapsulation() TunnelEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *Tunnel) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *Tunnel) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *Tunnel) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *Tunnel) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Tunnel) GetTenantOk() (*BriefTenant, 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 *Tunnel) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Tunnel) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Tunnel) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Tunnel) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *Tunnel) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *Tunnel) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *Tunnel) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *Tunnel) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *Tunnel) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *Tunnel) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *Tunnel) GetDescription() string` @@ -134,6 +352,171 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tunnel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tunnel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tunnel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tunnel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tunnel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tunnel) 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 *Tunnel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tunnel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tunnel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tunnel) 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 *Tunnel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tunnel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tunnel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tunnel) 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 *Tunnel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *Tunnel) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *Tunnel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tunnel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tunnel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tunnel) 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 *Tunnel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Tunnel) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *Tunnel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tunnel) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetTerminationsCount + +`func (o *Tunnel) GetTerminationsCount() int64` + +GetTerminationsCount returns the TerminationsCount field if non-nil, zero value otherwise. + +### GetTerminationsCountOk + +`func (o *Tunnel) GetTerminationsCountOk() (*int64, bool)` + +GetTerminationsCountOk returns a tuple with the TerminationsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationsCount + +`func (o *Tunnel) SetTerminationsCount(v int64)` + +SetTerminationsCount sets TerminationsCount 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/TunnelEncapsulation.md b/docs/TunnelEncapsulation.md new file mode 100644 index 0000000000..fe7e117168 --- /dev/null +++ b/docs/TunnelEncapsulation.md @@ -0,0 +1,82 @@ +# TunnelEncapsulation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] +**Label** | Pointer to [**TunnelEncapsulationLabel**](TunnelEncapsulationLabel.md) | | [optional] + +## Methods + +### NewTunnelEncapsulation + +`func NewTunnelEncapsulation() *TunnelEncapsulation` + +NewTunnelEncapsulation instantiates a new TunnelEncapsulation 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 + +### NewTunnelEncapsulationWithDefaults + +`func NewTunnelEncapsulationWithDefaults() *TunnelEncapsulation` + +NewTunnelEncapsulationWithDefaults instantiates a new TunnelEncapsulation 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 *TunnelEncapsulation) GetValue() PatchedWritableTunnelRequestEncapsulation` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TunnelEncapsulation) GetValueOk() (*PatchedWritableTunnelRequestEncapsulation, 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 *TunnelEncapsulation) SetValue(v PatchedWritableTunnelRequestEncapsulation)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TunnelEncapsulation) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *TunnelEncapsulation) GetLabel() TunnelEncapsulationLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *TunnelEncapsulation) GetLabelOk() (*TunnelEncapsulationLabel, 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 *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *TunnelEncapsulation) 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/TunnelEncapsulationLabel.md b/docs/TunnelEncapsulationLabel.md new file mode 100644 index 0000000000..5c1ea66d02 --- /dev/null +++ b/docs/TunnelEncapsulationLabel.md @@ -0,0 +1,25 @@ +# TunnelEncapsulationLabel + +## Enum + + +* `I_PSEC___TRANSPORT` (value: `"IPsec - Transport"`) + +* `I_PSEC___TUNNEL` (value: `"IPsec - Tunnel"`) + +* `IP_IN_IP` (value: `"IP-in-IP"`) + +* `GRE` (value: `"GRE"`) + +* `WIRE_GUARD` (value: `"WireGuard"`) + +* `OPEN_VPN` (value: `"OpenVPN"`) + +* `L2_TP` (value: `"L2TP"`) + +* `PPTP` (value: `"PPTP"`) + + +[[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/TunnelGroup.md b/docs/TunnelGroup.md index 696dd40403..8fd44c234e 100644 --- a/docs/TunnelGroup.md +++ b/docs/TunnelGroup.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **TunnelCount** | **int64** | | [readonly] ## Methods ### NewTunnelGroup -`func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup` +`func NewTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64, ) *TunnelGroup` NewTunnelGroup instantiates a new TunnelGroup object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TunnelGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TunnelGroup) GetDisplay() string` @@ -229,6 +255,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *TunnelGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -259,6 +290,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *TunnelGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/TunnelGroupRequest 2.md b/docs/TunnelGroupRequest 2.md new file mode 100644 index 0000000000..a83e9cb743 --- /dev/null +++ b/docs/TunnelGroupRequest 2.md @@ -0,0 +1,150 @@ +# TunnelGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewTunnelGroupRequest + +`func NewTunnelGroupRequest(name string, slug string, ) *TunnelGroupRequest` + +NewTunnelGroupRequest instantiates a new TunnelGroupRequest 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 + +### NewTunnelGroupRequestWithDefaults + +`func NewTunnelGroupRequestWithDefaults() *TunnelGroupRequest` + +NewTunnelGroupRequestWithDefaults instantiates a new TunnelGroupRequest 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 *TunnelGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *TunnelGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *TunnelGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *TunnelGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *TunnelGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TunnelGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TunnelGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TunnelGroupRequest) 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 *TunnelGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TunnelGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/TunnelRequest.md b/docs/TunnelRequest.md index 03d4cda242..37d929b181 100644 --- a/docs/TunnelRequest.md +++ b/docs/TunnelRequest.md @@ -5,13 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Status** | [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] +**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewTunnelRequest -`func NewTunnelRequest(name string, ) *TunnelRequest` +`func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *TunnelRequest` NewTunnelRequest instantiates a new TunnelRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +55,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, 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 *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TunnelRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TunnelRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TunnelRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *TunnelRequest) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *TunnelRequest) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *TunnelRequest) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *TunnelRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, 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 *TunnelRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *TunnelRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *TunnelRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *TunnelRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *TunnelRequest) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *TunnelRequest) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *TunnelRequest) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *TunnelRequest) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *TunnelRequest) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *TunnelRequest) GetDescription() string` @@ -71,6 +260,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TunnelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TunnelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TunnelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TunnelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TunnelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TunnelRequest) 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 *TunnelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TunnelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TunnelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TunnelRequest) 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 *TunnelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TunnelRequest) HasCustomFields() bool` + +HasCustomFields 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/TunnelStatus.md b/docs/TunnelStatus.md new file mode 100644 index 0000000000..46022ca86c --- /dev/null +++ b/docs/TunnelStatus.md @@ -0,0 +1,82 @@ +# TunnelStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] +**Label** | Pointer to [**TunnelStatusLabel**](TunnelStatusLabel.md) | | [optional] + +## Methods + +### NewTunnelStatus + +`func NewTunnelStatus() *TunnelStatus` + +NewTunnelStatus instantiates a new TunnelStatus 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 + +### NewTunnelStatusWithDefaults + +`func NewTunnelStatusWithDefaults() *TunnelStatus` + +NewTunnelStatusWithDefaults instantiates a new TunnelStatus 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 *TunnelStatus) GetValue() PatchedWritableTunnelRequestStatus` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TunnelStatus) GetValueOk() (*PatchedWritableTunnelRequestStatus, 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 *TunnelStatus) SetValue(v PatchedWritableTunnelRequestStatus)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TunnelStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *TunnelStatus) GetLabel() TunnelStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *TunnelStatus) GetLabelOk() (*TunnelStatusLabel, 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 *TunnelStatus) SetLabel(v TunnelStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *TunnelStatus) 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/TunnelStatusLabel.md b/docs/TunnelStatusLabel.md new file mode 100644 index 0000000000..8bd96d36a2 --- /dev/null +++ b/docs/TunnelStatusLabel.md @@ -0,0 +1,15 @@ +# TunnelStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `ACTIVE` (value: `"Active"`) + +* `DISABLED` (value: `"Disabled"`) + + +[[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/TunnelTermination.md b/docs/TunnelTermination.md index 1804e64d5b..9cbbf4f5f9 100644 --- a/docs/TunnelTermination.md +++ b/docs/TunnelTermination.md @@ -6,23 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Tunnel** | [**Tunnel**](Tunnel.md) | | +**Tunnel** | [**BriefTunnel**](BriefTunnel.md) | | **Role** | [**TunnelTerminationRole**](TunnelTerminationRole.md) | | **TerminationType** | **string** | | -**TerminationId** | **NullableInt64** | | -**Termination** | **interface{}** | | [readonly] -**OutsideIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**TerminationId** | Pointer to **NullableInt64** | | [optional] +**Termination** | Pointer to **interface{}** | | [optional] [readonly] +**OutsideIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewTunnelTermination -`func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` +`func NewTunnelTermination(id int32, url string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, ) *TunnelTermination` NewTunnelTermination instantiates a new TunnelTermination object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TunnelTermination) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TunnelTermination) GetDisplay() string` @@ -99,20 +125,20 @@ SetDisplay sets Display field to given value. ### GetTunnel -`func (o *TunnelTermination) GetTunnel() Tunnel` +`func (o *TunnelTermination) GetTunnel() BriefTunnel` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool)` +`func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTermination) SetTunnel(v Tunnel)` +`func (o *TunnelTermination) SetTunnel(v BriefTunnel)` SetTunnel sets Tunnel field to given value. @@ -176,6 +202,11 @@ and a boolean to check if the value has been set. SetTerminationId sets TerminationId field to given value. +### HasTerminationId + +`func (o *TunnelTermination) HasTerminationId() bool` + +HasTerminationId returns a boolean if a field has been set. ### SetTerminationIdNil @@ -206,6 +237,11 @@ and a boolean to check if the value has been set. SetTermination sets Termination field to given value. +### HasTermination + +`func (o *TunnelTermination) HasTermination() bool` + +HasTermination returns a boolean if a field has been set. ### SetTerminationNil @@ -219,20 +255,20 @@ SetTermination sets Termination field to given value. UnsetTermination ensures that no value is present for Termination, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTermination) GetOutsideIp() IPAddress` +`func (o *TunnelTermination) GetOutsideIp() BriefIPAddress` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool)` +`func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTermination) SetOutsideIp(v IPAddress)` +`func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress)` SetOutsideIp sets OutsideIp field to given value. @@ -321,6 +357,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *TunnelTermination) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -351,6 +392,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *TunnelTermination) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/TunnelTerminationRequest 2.md b/docs/TunnelTerminationRequest 2.md new file mode 100644 index 0000000000..e684cfe200 --- /dev/null +++ b/docs/TunnelTerminationRequest 2.md @@ -0,0 +1,212 @@ +# TunnelTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | +**TerminationType** | **string** | | +**TerminationId** | **NullableInt64** | | +**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewTunnelTerminationRequest + +`func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` + +NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest 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 + +### NewTunnelTerminationRequestWithDefaults + +`func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest` + +NewTunnelTerminationRequestWithDefaults instantiates a new TunnelTerminationRequest 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 + +### GetTunnel + +`func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest` + +GetTunnel returns the Tunnel field if non-nil, zero value otherwise. + +### GetTunnelOk + +`func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` + +GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnel + +`func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest)` + +SetTunnel sets Tunnel field to given value. + + +### GetRole + +`func (o *TunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *TunnelTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, 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 *TunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole)` + +SetRole sets Role field to given value. + + +### GetTerminationType + +`func (o *TunnelTerminationRequest) GetTerminationType() string` + +GetTerminationType returns the TerminationType field if non-nil, zero value otherwise. + +### GetTerminationTypeOk + +`func (o *TunnelTerminationRequest) GetTerminationTypeOk() (*string, bool)` + +GetTerminationTypeOk returns a tuple with the TerminationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationType + +`func (o *TunnelTerminationRequest) SetTerminationType(v string)` + +SetTerminationType sets TerminationType field to given value. + + +### GetTerminationId + +`func (o *TunnelTerminationRequest) GetTerminationId() int64` + +GetTerminationId returns the TerminationId field if non-nil, zero value otherwise. + +### GetTerminationIdOk + +`func (o *TunnelTerminationRequest) GetTerminationIdOk() (*int64, bool)` + +GetTerminationIdOk returns a tuple with the TerminationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationId + +`func (o *TunnelTerminationRequest) SetTerminationId(v int64)` + +SetTerminationId sets TerminationId field to given value. + + +### SetTerminationIdNil + +`func (o *TunnelTerminationRequest) SetTerminationIdNil(b bool)` + + SetTerminationIdNil sets the value for TerminationId to be an explicit nil + +### UnsetTerminationId +`func (o *TunnelTerminationRequest) UnsetTerminationId()` + +UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +### GetOutsideIp + +`func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest` + +GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. + +### GetOutsideIpOk + +`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` + +GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutsideIp + +`func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` + +SetOutsideIp sets OutsideIp field to given value. + +### HasOutsideIp + +`func (o *TunnelTerminationRequest) HasOutsideIp() bool` + +HasOutsideIp returns a boolean if a field has been set. + +### SetOutsideIpNil + +`func (o *TunnelTerminationRequest) SetOutsideIpNil(b bool)` + + SetOutsideIpNil sets the value for OutsideIp to be an explicit nil + +### UnsetOutsideIp +`func (o *TunnelTerminationRequest) UnsetOutsideIp()` + +UnsetOutsideIp ensures that no value is present for OutsideIp, not even an explicit nil +### GetTags + +`func (o *TunnelTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TunnelTerminationRequest) 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 *TunnelTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TunnelTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TunnelTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TunnelTerminationRequest) 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 *TunnelTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TunnelTerminationRequest) HasCustomFields() bool` + +HasCustomFields 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/TunnelTerminationRequest.md b/docs/TunnelTerminationRequest.md index e684cfe200..3b3d114b3f 100644 --- a/docs/TunnelTerminationRequest.md +++ b/docs/TunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | **TerminationType** | **string** | | -**TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**TerminationId** | Pointer to **NullableInt64** | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewTunnelTerminationRequest -`func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` +`func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, ) *TunnelTerminationRequest` NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -110,6 +110,11 @@ and a boolean to check if the value has been set. SetTerminationId sets TerminationId field to given value. +### HasTerminationId + +`func (o *TunnelTerminationRequest) HasTerminationId() bool` + +HasTerminationId returns a boolean if a field has been set. ### SetTerminationIdNil @@ -123,20 +128,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/TunnelTerminationRoleLabel 2.md b/docs/TunnelTerminationRoleLabel 2.md new file mode 100644 index 0000000000..b8988cf02e --- /dev/null +++ b/docs/TunnelTerminationRoleLabel 2.md @@ -0,0 +1,15 @@ +# TunnelTerminationRoleLabel + +## Enum + + +* `PEER` (value: `"Peer"`) + +* `HUB` (value: `"Hub"`) + +* `SPOKE` (value: `"Spoke"`) + + +[[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/User.md b/docs/User.md index 5312320e34..8d3b943cdb 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,8 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] +**Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional] ## Methods @@ -68,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *User) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *User) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *User) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *User) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *User) GetDisplay() string` @@ -108,6 +143,241 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetFirstName + +`func (o *User) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *User) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *User) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *User) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *User) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *User) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *User) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *User) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *User) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *User) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *User) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *User) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *User) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *User) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *User) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *User) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *User) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *User) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *User) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *User) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *User) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *User) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *User) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *User) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *User) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *User) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *User) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *User) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *User) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *User) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *User) GetGroups() []Group` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *User) GetGroupsOk() (*[]Group, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *User) SetGroups(v []Group)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *User) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *User) GetPermissions() []ObjectPermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *User) GetPermissionsOk() (*[]ObjectPermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *User) SetPermissions(v []ObjectPermission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *User) HasPermissions() bool` + +HasPermissions 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/UserRequest 2.md b/docs/UserRequest 2.md new file mode 100644 index 0000000000..58e87259fd --- /dev/null +++ b/docs/UserRequest 2.md @@ -0,0 +1,51 @@ +# UserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | + +## Methods + +### NewUserRequest + +`func NewUserRequest(username string, ) *UserRequest` + +NewUserRequest instantiates a new UserRequest 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 + +### NewUserRequestWithDefaults + +`func NewUserRequestWithDefaults() *UserRequest` + +NewUserRequestWithDefaults instantiates a new UserRequest 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 + +### GetUsername + +`func (o *UserRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *UserRequest) 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 *UserRequest) SetUsername(v string)` + +SetUsername sets Username 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/UserRequest.md b/docs/UserRequest.md index 58e87259fd..03e64cb5fd 100644 --- a/docs/UserRequest.md +++ b/docs/UserRequest.md @@ -5,12 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**Password** | **string** | | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Permissions** | Pointer to **[]int32** | | [optional] ## Methods ### NewUserRequest -`func NewUserRequest(username string, ) *UserRequest` +`func NewUserRequest(username string, password string, ) *UserRequest` NewUserRequest instantiates a new UserRequest object This constructor will assign default values to properties that have it defined, @@ -45,6 +55,261 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetPassword + +`func (o *UserRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *UserRequest) 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 *UserRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetFirstName + +`func (o *UserRequest) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *UserRequest) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *UserRequest) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *UserRequest) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *UserRequest) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *UserRequest) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *UserRequest) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *UserRequest) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *UserRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UserRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *UserRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *UserRequest) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *UserRequest) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *UserRequest) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *UserRequest) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *UserRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *UserRequest) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *UserRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *UserRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *UserRequest) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *UserRequest) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *UserRequest) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *UserRequest) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *UserRequest) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *UserRequest) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *UserRequest) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *UserRequest) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *UserRequest) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *UserRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *UserRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *UserRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *UserRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *UserRequest) GetPermissions() []int32` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *UserRequest) GetPermissionsOk() (*[]int32, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *UserRequest) SetPermissions(v []int32)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *UserRequest) HasPermissions() bool` + +HasPermissions 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/UsersAPI.md b/docs/UsersAPI.md index 2da4d42da5..114471722d 100644 --- a/docs/UsersAPI.md +++ b/docs/UsersAPI.md @@ -438,7 +438,7 @@ Name | Type | Description | Notes ## UsersGroupsList -> PaginatedGroupList UsersGroupsList(ctx).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).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() +> PaginatedGroupList UsersGroupsList(ctx).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).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() @@ -487,6 +487,8 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (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) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -497,7 +499,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).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).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).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).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -548,6 +550,8 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -1537,7 +1541,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1601,7 +1605,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1667,7 +1671,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1733,7 +1737,7 @@ import ( ) func main() { - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2243,7 +2247,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this token. - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2314,7 +2318,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2378,7 +2382,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2444,7 +2448,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2510,7 +2514,7 @@ import ( ) func main() { - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2625,7 +2629,7 @@ Name | Type | Description | Notes ## UsersUsersList -> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).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).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).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).PermissionId(permissionId).PermissionIdN(permissionIdN).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).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).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).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).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() @@ -2707,6 +2711,8 @@ func main() { lastNameNiew := []string{"Inner_example"} // []string | (optional) lastNameNisw := []string{"Inner_example"} // []string | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (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) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -2726,7 +2732,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).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).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).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).PermissionId(permissionId).PermissionIdN(permissionIdN).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()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).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).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).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, "Full HTTP response: %v\n", r) @@ -2809,6 +2815,8 @@ Name | Type | Description | Notes **lastNameNiew** | **[]string** | | **lastNameNisw** | **[]string** | | **limit** | **int32** | Number of results to return per page. | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -3008,7 +3016,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this user. - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/VLAN 2.md b/docs/VLAN 2.md new file mode 100644 index 0000000000..81cee5529a --- /dev/null +++ b/docs/VLAN 2.md @@ -0,0 +1,161 @@ +# VLAN + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Vid** | **int32** | Numeric VLAN ID (1-4094) | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewVLAN + +`func NewVLAN(id int32, url string, display string, vid int32, name string, ) *VLAN` + +NewVLAN instantiates a new VLAN 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 + +### NewVLANWithDefaults + +`func NewVLANWithDefaults() *VLAN` + +NewVLANWithDefaults instantiates a new VLAN 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 *VLAN) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VLAN) 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 *VLAN) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *VLAN) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *VLAN) 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 *VLAN) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *VLAN) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *VLAN) 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 *VLAN) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetVid + +`func (o *VLAN) GetVid() int32` + +GetVid returns the Vid field if non-nil, zero value otherwise. + +### GetVidOk + +`func (o *VLAN) GetVidOk() (*int32, bool)` + +GetVidOk returns a tuple with the Vid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVid + +`func (o *VLAN) SetVid(v int32)` + +SetVid sets Vid field to given value. + + +### GetName + +`func (o *VLAN) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VLAN) 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 *VLAN) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *VLAN) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VLAN) 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 *VLAN) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VLAN) 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/VLAN.md b/docs/VLAN.md index 81cee5529a..cd89fadae5 100644 --- a/docs/VLAN.md +++ b/docs/VLAN.md @@ -6,10 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**QinqRole** | Pointer to [**VLANQinqRole**](VLANQinqRole.md) | | [optional] +**QinqSvlan** | Pointer to [**NullableNestedVLAN**](NestedVLAN.md) | | [optional] +**Comments** | Pointer to **string** | | [optional] +**L2vpnTermination** | Pointer to [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [optional] [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods @@ -70,6 +85,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VLAN) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VLAN) GetDisplay() string` @@ -90,6 +130,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *VLAN) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLAN) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLAN) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLAN) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLAN) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLAN) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLAN) GetGroup() BriefVLANGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLAN) SetGroup(v BriefVLANGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLAN) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLAN) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLAN) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLAN) GetVid() int32` @@ -130,6 +240,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLAN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLAN) GetTenantOk() (*BriefTenant, 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 *VLAN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLAN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLAN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLAN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLAN) GetStatus() IPRangeStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLAN) GetStatusOk() (*IPRangeStatus, 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 *VLAN) SetStatus(v IPRangeStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLAN) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLAN) GetRole() BriefRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLAN) GetRoleOk() (*BriefRole, 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 *VLAN) SetRole(v BriefRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLAN) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLAN) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLAN) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLAN) GetDescription() string` @@ -155,6 +360,271 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetQinqRole + +`func (o *VLAN) GetQinqRole() VLANQinqRole` + +GetQinqRole returns the QinqRole field if non-nil, zero value otherwise. + +### GetQinqRoleOk + +`func (o *VLAN) GetQinqRoleOk() (*VLANQinqRole, bool)` + +GetQinqRoleOk returns a tuple with the QinqRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqRole + +`func (o *VLAN) SetQinqRole(v VLANQinqRole)` + +SetQinqRole sets QinqRole field to given value. + +### HasQinqRole + +`func (o *VLAN) HasQinqRole() bool` + +HasQinqRole returns a boolean if a field has been set. + +### GetQinqSvlan + +`func (o *VLAN) GetQinqSvlan() NestedVLAN` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *VLAN) GetQinqSvlanOk() (*NestedVLAN, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *VLAN) SetQinqSvlan(v NestedVLAN)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *VLAN) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *VLAN) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *VLAN) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetComments + +`func (o *VLAN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLAN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLAN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLAN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetL2vpnTermination + +`func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination` + +GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. + +### GetL2vpnTerminationOk + +`func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` + +GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpnTermination + +`func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination)` + +SetL2vpnTermination sets L2vpnTermination field to given value. + +### HasL2vpnTermination + +`func (o *VLAN) HasL2vpnTermination() bool` + +HasL2vpnTermination returns a boolean if a field has been set. + +### SetL2vpnTerminationNil + +`func (o *VLAN) SetL2vpnTerminationNil(b bool)` + + SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil + +### UnsetL2vpnTermination +`func (o *VLAN) UnsetL2vpnTermination()` + +UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +### GetTags + +`func (o *VLAN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLAN) 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 *VLAN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLAN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLAN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLAN) 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 *VLAN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLAN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VLAN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VLAN) 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 *VLAN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *VLAN) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *VLAN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VLAN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VLAN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VLAN) 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 *VLAN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *VLAN) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *VLAN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VLAN) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetPrefixCount + +`func (o *VLAN) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *VLAN) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *VLAN) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *VLAN) HasPrefixCount() bool` + +HasPrefixCount 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/VLANGroup.md b/docs/VLANGroup.md index 6df7b1d13c..8d28c276a5 100644 --- a/docs/VLANGroup.md +++ b/docs/VLANGroup.md @@ -6,27 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**Scope** | **interface{}** | | [readonly] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] +**Scope** | Pointer to **interface{}** | | [optional] [readonly] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**VlanCount** | **int64** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] **Utilization** | **string** | | [readonly] ## Methods ### NewVLANGroup -`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` +`func NewVLANGroup(id int32, url string, display string, name string, slug string, utilization string, ) *VLANGroup` NewVLANGroup instantiates a new VLANGroup object This constructor will assign default values to properties that have it defined, @@ -81,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VLANGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VLANGroup) GetDisplay() string` @@ -230,6 +254,11 @@ and a boolean to check if the value has been set. SetScope sets Scope field to given value. +### HasScope + +`func (o *VLANGroup) HasScope() bool` + +HasScope returns a boolean if a field has been set. ### SetScopeNil @@ -241,56 +270,6 @@ SetScope sets Scope field to given value. `func (o *VLANGroup) UnsetScope()` UnsetScope ensures that no value is present for Scope, not even an explicit nil -### GetMinVid - -`func (o *VLANGroup) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroup) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroup) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroup) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroup) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroup) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroup) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroup) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroup) GetDescription() string` @@ -385,6 +364,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *VLANGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -415,6 +399,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *VLANGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -445,6 +434,11 @@ and a boolean to check if the value has been set. SetVlanCount sets VlanCount field to given value. +### HasVlanCount + +`func (o *VLANGroup) HasVlanCount() bool` + +HasVlanCount returns a boolean if a field has been set. ### GetUtilization diff --git a/docs/VLANGroupRequest.md b/docs/VLANGroupRequest.md index efd4ab4ff4..768c049b0a 100644 --- a/docs/VLANGroupRequest.md +++ b/docs/VLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -143,56 +141,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *VLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *VLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroupRequest) GetDescription() string` diff --git a/docs/VLANQinqRole.md b/docs/VLANQinqRole.md new file mode 100644 index 0000000000..e91f357f36 --- /dev/null +++ b/docs/VLANQinqRole.md @@ -0,0 +1,82 @@ +# VLANQinqRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**VLANQinqRoleValue**](VLANQinqRoleValue.md) | | [optional] +**Label** | Pointer to [**VLANQinqRoleLabel**](VLANQinqRoleLabel.md) | | [optional] + +## Methods + +### NewVLANQinqRole + +`func NewVLANQinqRole() *VLANQinqRole` + +NewVLANQinqRole instantiates a new VLANQinqRole 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 + +### NewVLANQinqRoleWithDefaults + +`func NewVLANQinqRoleWithDefaults() *VLANQinqRole` + +NewVLANQinqRoleWithDefaults instantiates a new VLANQinqRole 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 *VLANQinqRole) GetValue() VLANQinqRoleValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *VLANQinqRole) GetValueOk() (*VLANQinqRoleValue, 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 *VLANQinqRole) SetValue(v VLANQinqRoleValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *VLANQinqRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *VLANQinqRole) GetLabel() VLANQinqRoleLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *VLANQinqRole) GetLabelOk() (*VLANQinqRoleLabel, 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 *VLANQinqRole) SetLabel(v VLANQinqRoleLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *VLANQinqRole) 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/VLANQinqRoleLabel.md b/docs/VLANQinqRoleLabel.md new file mode 100644 index 0000000000..72e4470dc9 --- /dev/null +++ b/docs/VLANQinqRoleLabel.md @@ -0,0 +1,13 @@ +# VLANQinqRoleLabel + +## Enum + + +* `SERVICE` (value: `"Service"`) + +* `CUSTOMER` (value: `"Customer"`) + + +[[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/VLANQinqRoleValue.md b/docs/VLANQinqRoleValue.md new file mode 100644 index 0000000000..1fc24f6b45 --- /dev/null +++ b/docs/VLANQinqRoleValue.md @@ -0,0 +1,13 @@ +# VLANQinqRoleValue + +## Enum + + +* `SVLAN` (value: `"svlan"`) + +* `CVLAN` (value: `"cvlan"`) + + +[[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/VLANRequest.md b/docs/VLANRequest.md index 8ee516347a..3a8c1d9f77 100644 --- a/docs/VLANRequest.md +++ b/docs/VLANRequest.md @@ -4,9 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**QinqRole** | Pointer to [**VLANQinqRoleValue**](VLANQinqRoleValue.md) | | [optional] +**QinqSvlan** | Pointer to [**NullableNestedVLANRequest**](NestedVLANRequest.md) | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -27,6 +37,76 @@ NewVLANRequestWithDefaults instantiates a new VLANRequest 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 +### GetSite + +`func (o *VLANRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLANRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLANRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLANRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLANRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLANRequest) GetGroup() BriefVLANGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLANRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLANRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLANRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLANRequest) GetVid() int32` @@ -67,6 +147,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLANRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, 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 *VLANRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLANRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLANRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLANRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLANRequest) GetStatus() IPRangeStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, 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 *VLANRequest) SetStatus(v IPRangeStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLANRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLANRequest) GetRole() BriefRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, 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 *VLANRequest) SetRole(v BriefRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLANRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLANRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLANRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLANRequest) GetDescription() string` @@ -92,6 +267,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetQinqRole + +`func (o *VLANRequest) GetQinqRole() VLANQinqRoleValue` + +GetQinqRole returns the QinqRole field if non-nil, zero value otherwise. + +### GetQinqRoleOk + +`func (o *VLANRequest) GetQinqRoleOk() (*VLANQinqRoleValue, bool)` + +GetQinqRoleOk returns a tuple with the QinqRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqRole + +`func (o *VLANRequest) SetQinqRole(v VLANQinqRoleValue)` + +SetQinqRole sets QinqRole field to given value. + +### HasQinqRole + +`func (o *VLANRequest) HasQinqRole() bool` + +HasQinqRole returns a boolean if a field has been set. + +### GetQinqSvlan + +`func (o *VLANRequest) GetQinqSvlan() NestedVLANRequest` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *VLANRequest) GetQinqSvlanOk() (*NestedVLANRequest, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *VLANRequest) SetQinqSvlan(v NestedVLANRequest)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *VLANRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *VLANRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *VLANRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetComments + +`func (o *VLANRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLANRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLANRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLANRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VLANRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLANRequest) 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 *VLANRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLANRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLANRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLANRequest) 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 *VLANRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLANRequest) HasCustomFields() bool` + +HasCustomFields 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/VLANTranslationPolicy.md b/docs/VLANTranslationPolicy.md new file mode 100644 index 0000000000..fd69c2c729 --- /dev/null +++ b/docs/VLANTranslationPolicy.md @@ -0,0 +1,161 @@ +# VLANTranslationPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Rules** | [**[]VLANTranslationRule**](VLANTranslationRule.md) | | [readonly] + +## Methods + +### NewVLANTranslationPolicy + +`func NewVLANTranslationPolicy(id int32, url string, display string, name string, rules []VLANTranslationRule, ) *VLANTranslationPolicy` + +NewVLANTranslationPolicy instantiates a new VLANTranslationPolicy 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 + +### NewVLANTranslationPolicyWithDefaults + +`func NewVLANTranslationPolicyWithDefaults() *VLANTranslationPolicy` + +NewVLANTranslationPolicyWithDefaults instantiates a new VLANTranslationPolicy 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 *VLANTranslationPolicy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *VLANTranslationPolicy) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *VLANTranslationPolicy) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *VLANTranslationPolicy) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *VLANTranslationPolicy) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VLANTranslationPolicy) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetRules + +`func (o *VLANTranslationPolicy) GetRules() []VLANTranslationRule` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *VLANTranslationPolicy) GetRulesOk() (*[]VLANTranslationRule, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *VLANTranslationPolicy) SetRules(v []VLANTranslationRule)` + +SetRules sets Rules 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/VLANTranslationPolicyRequest.md b/docs/VLANTranslationPolicyRequest.md new file mode 100644 index 0000000000..15e2f8f0b5 --- /dev/null +++ b/docs/VLANTranslationPolicyRequest.md @@ -0,0 +1,77 @@ +# VLANTranslationPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewVLANTranslationPolicyRequest + +`func NewVLANTranslationPolicyRequest(name string, ) *VLANTranslationPolicyRequest` + +NewVLANTranslationPolicyRequest instantiates a new VLANTranslationPolicyRequest 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 + +### NewVLANTranslationPolicyRequestWithDefaults + +`func NewVLANTranslationPolicyRequestWithDefaults() *VLANTranslationPolicyRequest` + +NewVLANTranslationPolicyRequestWithDefaults instantiates a new VLANTranslationPolicyRequest 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 *VLANTranslationPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VLANTranslationPolicyRequest) 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 *VLANTranslationPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *VLANTranslationPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VLANTranslationPolicyRequest) 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 *VLANTranslationPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VLANTranslationPolicyRequest) 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/VLANTranslationRule.md b/docs/VLANTranslationRule.md new file mode 100644 index 0000000000..3741140c48 --- /dev/null +++ b/docs/VLANTranslationRule.md @@ -0,0 +1,182 @@ +# VLANTranslationRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Policy** | **int32** | | +**LocalVid** | **int32** | Numeric VLAN ID (1-4094) | +**RemoteVid** | **int32** | Numeric VLAN ID (1-4094) | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewVLANTranslationRule + +`func NewVLANTranslationRule(id int32, url string, display string, policy int32, localVid int32, remoteVid int32, ) *VLANTranslationRule` + +NewVLANTranslationRule instantiates a new VLANTranslationRule 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 + +### NewVLANTranslationRuleWithDefaults + +`func NewVLANTranslationRuleWithDefaults() *VLANTranslationRule` + +NewVLANTranslationRuleWithDefaults instantiates a new VLANTranslationRule 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 *VLANTranslationRule) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VLANTranslationRule) 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 *VLANTranslationRule) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *VLANTranslationRule) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *VLANTranslationRule) 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 *VLANTranslationRule) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *VLANTranslationRule) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *VLANTranslationRule) 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 *VLANTranslationRule) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetPolicy + +`func (o *VLANTranslationRule) GetPolicy() int32` + +GetPolicy returns the Policy field if non-nil, zero value otherwise. + +### GetPolicyOk + +`func (o *VLANTranslationRule) GetPolicyOk() (*int32, bool)` + +GetPolicyOk returns a tuple with the Policy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicy + +`func (o *VLANTranslationRule) SetPolicy(v int32)` + +SetPolicy sets Policy field to given value. + + +### GetLocalVid + +`func (o *VLANTranslationRule) GetLocalVid() int32` + +GetLocalVid returns the LocalVid field if non-nil, zero value otherwise. + +### GetLocalVidOk + +`func (o *VLANTranslationRule) GetLocalVidOk() (*int32, bool)` + +GetLocalVidOk returns a tuple with the LocalVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalVid + +`func (o *VLANTranslationRule) SetLocalVid(v int32)` + +SetLocalVid sets LocalVid field to given value. + + +### GetRemoteVid + +`func (o *VLANTranslationRule) GetRemoteVid() int32` + +GetRemoteVid returns the RemoteVid field if non-nil, zero value otherwise. + +### GetRemoteVidOk + +`func (o *VLANTranslationRule) GetRemoteVidOk() (*int32, bool)` + +GetRemoteVidOk returns a tuple with the RemoteVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteVid + +`func (o *VLANTranslationRule) SetRemoteVid(v int32)` + +SetRemoteVid sets RemoteVid field to given value. + + +### GetDescription + +`func (o *VLANTranslationRule) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VLANTranslationRule) 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 *VLANTranslationRule) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VLANTranslationRule) 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/VLANTranslationRuleRequest.md b/docs/VLANTranslationRuleRequest.md new file mode 100644 index 0000000000..d64fa6e212 --- /dev/null +++ b/docs/VLANTranslationRuleRequest.md @@ -0,0 +1,119 @@ +# VLANTranslationRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policy** | **int32** | | +**LocalVid** | **int32** | Numeric VLAN ID (1-4094) | +**RemoteVid** | **int32** | Numeric VLAN ID (1-4094) | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewVLANTranslationRuleRequest + +`func NewVLANTranslationRuleRequest(policy int32, localVid int32, remoteVid int32, ) *VLANTranslationRuleRequest` + +NewVLANTranslationRuleRequest instantiates a new VLANTranslationRuleRequest 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 + +### NewVLANTranslationRuleRequestWithDefaults + +`func NewVLANTranslationRuleRequestWithDefaults() *VLANTranslationRuleRequest` + +NewVLANTranslationRuleRequestWithDefaults instantiates a new VLANTranslationRuleRequest 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 + +### GetPolicy + +`func (o *VLANTranslationRuleRequest) GetPolicy() int32` + +GetPolicy returns the Policy field if non-nil, zero value otherwise. + +### GetPolicyOk + +`func (o *VLANTranslationRuleRequest) GetPolicyOk() (*int32, bool)` + +GetPolicyOk returns a tuple with the Policy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicy + +`func (o *VLANTranslationRuleRequest) SetPolicy(v int32)` + +SetPolicy sets Policy field to given value. + + +### GetLocalVid + +`func (o *VLANTranslationRuleRequest) GetLocalVid() int32` + +GetLocalVid returns the LocalVid field if non-nil, zero value otherwise. + +### GetLocalVidOk + +`func (o *VLANTranslationRuleRequest) GetLocalVidOk() (*int32, bool)` + +GetLocalVidOk returns a tuple with the LocalVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalVid + +`func (o *VLANTranslationRuleRequest) SetLocalVid(v int32)` + +SetLocalVid sets LocalVid field to given value. + + +### GetRemoteVid + +`func (o *VLANTranslationRuleRequest) GetRemoteVid() int32` + +GetRemoteVid returns the RemoteVid field if non-nil, zero value otherwise. + +### GetRemoteVidOk + +`func (o *VLANTranslationRuleRequest) GetRemoteVidOk() (*int32, bool)` + +GetRemoteVidOk returns a tuple with the RemoteVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteVid + +`func (o *VLANTranslationRuleRequest) SetRemoteVid(v int32)` + +SetRemoteVid sets RemoteVid field to given value. + + +### GetDescription + +`func (o *VLANTranslationRuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VLANTranslationRuleRequest) 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 *VLANTranslationRuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VLANTranslationRuleRequest) 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/VMInterface 2.md b/docs/VMInterface 2.md new file mode 100644 index 0000000000..ba4d5ef2c7 --- /dev/null +++ b/docs/VMInterface 2.md @@ -0,0 +1,642 @@ +# VMInterface + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**Name** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**Parent** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] +**Bridge** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] +**Mtu** | Pointer to **NullableInt32** | | [optional] +**MacAddress** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] +**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] +**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CountIpaddresses** | **int32** | | [readonly] +**CountFhrpGroups** | **int32** | | [readonly] + +## Methods + +### NewVMInterface + +`func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` + +NewVMInterface instantiates a new VMInterface 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 + +### NewVMInterfaceWithDefaults + +`func NewVMInterfaceWithDefaults() *VMInterface` + +NewVMInterfaceWithDefaults instantiates a new VMInterface 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 *VMInterface) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VMInterface) 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 *VMInterface) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *VMInterface) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *VMInterface) 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 *VMInterface) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *VMInterface) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *VMInterface) 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 *VMInterface) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetVirtualMachine + +`func (o *VMInterface) GetVirtualMachine() VirtualMachine` + +GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. + +### GetVirtualMachineOk + +`func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool)` + +GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualMachine + +`func (o *VMInterface) SetVirtualMachine(v VirtualMachine)` + +SetVirtualMachine sets VirtualMachine field to given value. + + +### GetName + +`func (o *VMInterface) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VMInterface) 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 *VMInterface) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEnabled + +`func (o *VMInterface) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *VMInterface) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *VMInterface) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *VMInterface) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetParent + +`func (o *VMInterface) GetParent() NestedVMInterface` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *VMInterface) GetParentOk() (*NestedVMInterface, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *VMInterface) SetParent(v NestedVMInterface)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *VMInterface) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *VMInterface) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *VMInterface) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetBridge + +`func (o *VMInterface) GetBridge() NestedVMInterface` + +GetBridge returns the Bridge field if non-nil, zero value otherwise. + +### GetBridgeOk + +`func (o *VMInterface) GetBridgeOk() (*NestedVMInterface, bool)` + +GetBridgeOk returns a tuple with the Bridge field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBridge + +`func (o *VMInterface) SetBridge(v NestedVMInterface)` + +SetBridge sets Bridge field to given value. + +### HasBridge + +`func (o *VMInterface) HasBridge() bool` + +HasBridge returns a boolean if a field has been set. + +### SetBridgeNil + +`func (o *VMInterface) SetBridgeNil(b bool)` + + SetBridgeNil sets the value for Bridge to be an explicit nil + +### UnsetBridge +`func (o *VMInterface) UnsetBridge()` + +UnsetBridge ensures that no value is present for Bridge, not even an explicit nil +### GetMtu + +`func (o *VMInterface) GetMtu() int32` + +GetMtu returns the Mtu field if non-nil, zero value otherwise. + +### GetMtuOk + +`func (o *VMInterface) GetMtuOk() (*int32, bool)` + +GetMtuOk returns a tuple with the Mtu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMtu + +`func (o *VMInterface) SetMtu(v int32)` + +SetMtu sets Mtu field to given value. + +### HasMtu + +`func (o *VMInterface) HasMtu() bool` + +HasMtu returns a boolean if a field has been set. + +### SetMtuNil + +`func (o *VMInterface) SetMtuNil(b bool)` + + SetMtuNil sets the value for Mtu to be an explicit nil + +### UnsetMtu +`func (o *VMInterface) UnsetMtu()` + +UnsetMtu ensures that no value is present for Mtu, not even an explicit nil +### GetMacAddress + +`func (o *VMInterface) GetMacAddress() string` + +GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. + +### GetMacAddressOk + +`func (o *VMInterface) GetMacAddressOk() (*string, bool)` + +GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddress + +`func (o *VMInterface) SetMacAddress(v string)` + +SetMacAddress sets MacAddress field to given value. + +### HasMacAddress + +`func (o *VMInterface) HasMacAddress() bool` + +HasMacAddress returns a boolean if a field has been set. + +### SetMacAddressNil + +`func (o *VMInterface) SetMacAddressNil(b bool)` + + SetMacAddressNil sets the value for MacAddress to be an explicit nil + +### UnsetMacAddress +`func (o *VMInterface) UnsetMacAddress()` + +UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +### GetDescription + +`func (o *VMInterface) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VMInterface) 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 *VMInterface) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VMInterface) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMode + +`func (o *VMInterface) GetMode() InterfaceMode` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *VMInterface) GetModeOk() (*InterfaceMode, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *VMInterface) SetMode(v InterfaceMode)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *VMInterface) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetUntaggedVlan + +`func (o *VMInterface) GetUntaggedVlan() VLAN` + +GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. + +### GetUntaggedVlanOk + +`func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool)` + +GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUntaggedVlan + +`func (o *VMInterface) SetUntaggedVlan(v VLAN)` + +SetUntaggedVlan sets UntaggedVlan field to given value. + +### HasUntaggedVlan + +`func (o *VMInterface) HasUntaggedVlan() bool` + +HasUntaggedVlan returns a boolean if a field has been set. + +### SetUntaggedVlanNil + +`func (o *VMInterface) SetUntaggedVlanNil(b bool)` + + SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil + +### UnsetUntaggedVlan +`func (o *VMInterface) UnsetUntaggedVlan()` + +UnsetUntaggedVlan ensures that no value is present for UntaggedVlan, not even an explicit nil +### GetTaggedVlans + +`func (o *VMInterface) GetTaggedVlans() []VLAN` + +GetTaggedVlans returns the TaggedVlans field if non-nil, zero value otherwise. + +### GetTaggedVlansOk + +`func (o *VMInterface) GetTaggedVlansOk() (*[]VLAN, bool)` + +GetTaggedVlansOk returns a tuple with the TaggedVlans field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaggedVlans + +`func (o *VMInterface) SetTaggedVlans(v []VLAN)` + +SetTaggedVlans sets TaggedVlans field to given value. + +### HasTaggedVlans + +`func (o *VMInterface) HasTaggedVlans() bool` + +HasTaggedVlans returns a boolean if a field has been set. + +### GetVrf + +`func (o *VMInterface) GetVrf() VRF` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *VMInterface) GetVrfOk() (*VRF, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *VMInterface) SetVrf(v VRF)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *VMInterface) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *VMInterface) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *VMInterface) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetL2vpnTermination + +`func (o *VMInterface) GetL2vpnTermination() L2VPNTermination` + +GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. + +### GetL2vpnTerminationOk + +`func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` + +GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpnTermination + +`func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination)` + +SetL2vpnTermination sets L2vpnTermination field to given value. + + +### SetL2vpnTerminationNil + +`func (o *VMInterface) SetL2vpnTerminationNil(b bool)` + + SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil + +### UnsetL2vpnTermination +`func (o *VMInterface) UnsetL2vpnTermination()` + +UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +### GetTags + +`func (o *VMInterface) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VMInterface) 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 *VMInterface) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VMInterface) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VMInterface) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VMInterface) 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 *VMInterface) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VMInterface) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VMInterface) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VMInterface) 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 *VMInterface) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VMInterface) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VMInterface) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VMInterface) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VMInterface) 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 *VMInterface) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VMInterface) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VMInterface) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCountIpaddresses + +`func (o *VMInterface) GetCountIpaddresses() int32` + +GetCountIpaddresses returns the CountIpaddresses field if non-nil, zero value otherwise. + +### GetCountIpaddressesOk + +`func (o *VMInterface) GetCountIpaddressesOk() (*int32, bool)` + +GetCountIpaddressesOk returns a tuple with the CountIpaddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountIpaddresses + +`func (o *VMInterface) SetCountIpaddresses(v int32)` + +SetCountIpaddresses sets CountIpaddresses field to given value. + + +### GetCountFhrpGroups + +`func (o *VMInterface) GetCountFhrpGroups() int32` + +GetCountFhrpGroups returns the CountFhrpGroups field if non-nil, zero value otherwise. + +### GetCountFhrpGroupsOk + +`func (o *VMInterface) GetCountFhrpGroupsOk() (*int32, bool)` + +GetCountFhrpGroupsOk returns a tuple with the CountFhrpGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountFhrpGroups + +`func (o *VMInterface) SetCountFhrpGroups(v int32)` + +SetCountFhrpGroups sets CountFhrpGroups 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/VMInterface.md b/docs/VMInterface.md index ba4d5ef2c7..b9fdc636b8 100644 --- a/docs/VMInterface.md +++ b/docs/VMInterface.md @@ -6,24 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] **Bridge** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**MacAddress** | Pointer to **NullableString** | | [optional] [readonly] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddress**](BriefMACAddress.md) | | [optional] +**MacAddresses** | Pointer to [**[]BriefMACAddress**](BriefMACAddress.md) | | [optional] [readonly] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**QinqSvlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicy**](BriefVLANTranslationPolicy.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | Pointer to [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [optional] [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **CountIpaddresses** | **int32** | | [readonly] **CountFhrpGroups** | **int32** | | [readonly] @@ -31,7 +36,7 @@ Name | Type | Description | Notes ### NewVMInterface -`func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` +`func NewVMInterface(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` NewVMInterface instantiates a new VMInterface object This constructor will assign default values to properties that have it defined, @@ -86,6 +91,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VMInterface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VMInterface) GetDisplay() string` @@ -108,20 +138,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VMInterface) GetVirtualMachine() VirtualMachine` +`func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterface) SetVirtualMachine(v VirtualMachine)` +`func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. @@ -311,6 +341,76 @@ HasMacAddress returns a boolean if a field has been set. `func (o *VMInterface) UnsetMacAddress()` UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +### GetPrimaryMacAddress + +`func (o *VMInterface) GetPrimaryMacAddress() BriefMACAddress` + +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. + +### GetPrimaryMacAddressOk + +`func (o *VMInterface) GetPrimaryMacAddressOk() (*BriefMACAddress, bool)` + +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryMacAddress + +`func (o *VMInterface) SetPrimaryMacAddress(v BriefMACAddress)` + +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. + +### HasPrimaryMacAddress + +`func (o *VMInterface) HasPrimaryMacAddress() bool` + +HasPrimaryMacAddress returns a boolean if a field has been set. + +### SetPrimaryMacAddressNil + +`func (o *VMInterface) SetPrimaryMacAddressNil(b bool)` + + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil + +### UnsetPrimaryMacAddress +`func (o *VMInterface) UnsetPrimaryMacAddress()` + +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +### GetMacAddresses + +`func (o *VMInterface) GetMacAddresses() []BriefMACAddress` + +GetMacAddresses returns the MacAddresses field if non-nil, zero value otherwise. + +### GetMacAddressesOk + +`func (o *VMInterface) GetMacAddressesOk() (*[]BriefMACAddress, bool)` + +GetMacAddressesOk returns a tuple with the MacAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMacAddresses + +`func (o *VMInterface) SetMacAddresses(v []BriefMACAddress)` + +SetMacAddresses sets MacAddresses field to given value. + +### HasMacAddresses + +`func (o *VMInterface) HasMacAddresses() bool` + +HasMacAddresses returns a boolean if a field has been set. + +### SetMacAddressesNil + +`func (o *VMInterface) SetMacAddressesNil(b bool)` + + SetMacAddressesNil sets the value for MacAddresses to be an explicit nil + +### UnsetMacAddresses +`func (o *VMInterface) UnsetMacAddresses()` + +UnsetMacAddresses ensures that no value is present for MacAddresses, not even an explicit nil ### GetDescription `func (o *VMInterface) GetDescription() string` @@ -363,20 +463,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterface) GetUntaggedVlan() VLAN` +`func (o *VMInterface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterface) SetUntaggedVlan(v VLAN)` +`func (o *VMInterface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -421,22 +521,92 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *VMInterface) GetQinqSvlan() BriefVLAN` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *VMInterface) GetQinqSvlanOk() (*BriefVLAN, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *VMInterface) SetQinqSvlan(v BriefVLAN)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *VMInterface) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *VMInterface) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *VMInterface) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *VMInterface) GetVlanTranslationPolicy() BriefVLANTranslationPolicy` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *VMInterface) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicy, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *VMInterface) SetVlanTranslationPolicy(v BriefVLANTranslationPolicy)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *VMInterface) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *VMInterface) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *VMInterface) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetVrf -`func (o *VMInterface) GetVrf() VRF` +`func (o *VMInterface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterface) GetVrfOk() (*VRF, bool)` +`func (o *VMInterface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterface) SetVrf(v VRF)` +`func (o *VMInterface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -458,23 +628,28 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *VMInterface) GetL2vpnTermination() L2VPNTermination` +`func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. +### HasL2vpnTermination + +`func (o *VMInterface) HasL2vpnTermination() bool` + +HasL2vpnTermination returns a boolean if a field has been set. ### SetL2vpnTerminationNil @@ -555,6 +730,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *VMInterface) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -585,6 +765,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *VMInterface) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/VMInterfaceRequest.md b/docs/VMInterfaceRequest.md index f82ea7526e..d18ca5fe50 100644 --- a/docs/VMInterfaceRequest.md +++ b/docs/VMInterfaceRequest.md @@ -4,18 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterfaceRequest**](NestedVMInterfaceRequest.md) | | [optional] **Bridge** | Pointer to [**NullableNestedVMInterfaceRequest**](NestedVMInterfaceRequest.md) | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddressRequest**](BriefMACAddressRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**QinqSvlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicyRequest**](BriefVLANTranslationPolicyRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +25,7 @@ Name | Type | Description | Notes ### NewVMInterfaceRequest -`func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *VMInterfaceRequest` +`func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *VMInterfaceRequest` NewVMInterfaceRequest instantiates a new VMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -208,41 +210,41 @@ HasMtu returns a boolean if a field has been set. `func (o *VMInterfaceRequest) UnsetMtu()` UnsetMtu ensures that no value is present for Mtu, not even an explicit nil -### GetMacAddress +### GetPrimaryMacAddress -`func (o *VMInterfaceRequest) GetMacAddress() string` +`func (o *VMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest` -GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. -### GetMacAddressOk +### GetPrimaryMacAddressOk -`func (o *VMInterfaceRequest) GetMacAddressOk() (*string, bool)` +`func (o *VMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool)` -GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMacAddress +### SetPrimaryMacAddress -`func (o *VMInterfaceRequest) SetMacAddress(v string)` +`func (o *VMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest)` -SetMacAddress sets MacAddress field to given value. +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. -### HasMacAddress +### HasPrimaryMacAddress -`func (o *VMInterfaceRequest) HasMacAddress() bool` +`func (o *VMInterfaceRequest) HasPrimaryMacAddress() bool` -HasMacAddress returns a boolean if a field has been set. +HasPrimaryMacAddress returns a boolean if a field has been set. -### SetMacAddressNil +### SetPrimaryMacAddressNil -`func (o *VMInterfaceRequest) SetMacAddressNil(b bool)` +`func (o *VMInterfaceRequest) SetPrimaryMacAddressNil(b bool)` - SetMacAddressNil sets the value for MacAddress to be an explicit nil + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil -### UnsetMacAddress -`func (o *VMInterfaceRequest) UnsetMacAddress()` +### UnsetPrimaryMacAddress +`func (o *VMInterfaceRequest) UnsetPrimaryMacAddress()` -UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil ### GetDescription `func (o *VMInterfaceRequest) GetDescription() string` @@ -295,20 +297,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -353,22 +355,92 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *VMInterfaceRequest) GetQinqSvlan() BriefVLANRequest` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *VMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *VMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *VMInterfaceRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *VMInterfaceRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *VMInterfaceRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *VMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *VMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *VMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *VMInterfaceRequest) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *VMInterfaceRequest) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *VMInterfaceRequest) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetVrf -`func (o *VMInterfaceRequest) GetVrf() VRFRequest` +`func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/VRF.md b/docs/VRF.md index e30a5c20ec..511acc6fa8 100644 --- a/docs/VRF.md +++ b/docs/VRF.md @@ -6,17 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] -**PrefixCount** | **int64** | | [readonly] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**IpaddressCount** | **int64** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVRF -`func NewVRF(id int32, url string, display string, name string, prefixCount int64, ) *VRF` +`func NewVRF(id int32, url string, display string, name string, ipaddressCount int64, ) *VRF` NewVRF instantiates a new VRF object This constructor will assign default values to properties that have it defined, @@ -71,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VRF) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VRF) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VRF) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VRF) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VRF) GetDisplay() string` @@ -146,6 +182,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRF) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRF) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRF) GetTenantOk() (*BriefTenant, 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 *VRF) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRF) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRF) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRF) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRF) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRF) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRF) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRF) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRF) GetDescription() string` @@ -171,6 +267,221 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRF) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRF) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRF) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRF) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRF) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRF) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRF) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRF) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRF) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRF) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRF) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRF) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRF) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRF) 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 *VRF) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRF) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRF) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRF) 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 *VRF) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRF) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VRF) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VRF) 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 *VRF) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *VRF) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *VRF) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VRF) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VRF) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VRF) 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 *VRF) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *VRF) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *VRF) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VRF) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpaddressCount + +`func (o *VRF) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *VRF) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *VRF) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + ### GetPrefixCount `func (o *VRF) GetPrefixCount() int64` @@ -190,6 +501,11 @@ and a boolean to check if the value has been set. SetPrefixCount sets PrefixCount field to given value. +### HasPrefixCount + +`func (o *VRF) HasPrefixCount() bool` + +HasPrefixCount 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/VRFRequest.md b/docs/VRFRequest.md index 6637879c65..292a8949e0 100644 --- a/docs/VRFRequest.md +++ b/docs/VRFRequest.md @@ -6,7 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -82,6 +89,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRFRequest) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRFRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, 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 *VRFRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRFRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRFRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRFRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRFRequest) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRFRequest) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRFRequest) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRFRequest) GetDescription() string` @@ -107,6 +174,131 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRFRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRFRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRFRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRFRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRFRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRFRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRFRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRFRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRFRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRFRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRFRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRFRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRFRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRFRequest) 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 *VRFRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRFRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRFRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRFRequest) 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 *VRFRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRFRequest) HasCustomFields() bool` + +HasCustomFields 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/VirtualChassis.md b/docs/VirtualChassis.md index 325cd6a07a..c00d0aa520 100644 --- a/docs/VirtualChassis.md +++ b/docs/VirtualChassis.md @@ -6,17 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **MemberCount** | **int32** | | [readonly] +**Members** | [**[]NestedDevice**](NestedDevice.md) | | [readonly] ## Methods ### NewVirtualChassis -`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *VirtualChassis` +`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, members []NestedDevice, ) *VirtualChassis` NewVirtualChassis instantiates a new VirtualChassis object This constructor will assign default values to properties that have it defined, @@ -71,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualChassis) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualChassis) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualChassis) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualChassis) GetDisplay() string` @@ -111,6 +144,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassis) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassis) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassis) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassis) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassis) GetMaster() NestedDevice` @@ -171,6 +229,151 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassis) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassis) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassis) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassis) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassis) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassis) 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 *VirtualChassis) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassis) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassis) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassis) 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 *VirtualChassis) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassis) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VirtualChassis) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VirtualChassis) 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 *VirtualChassis) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *VirtualChassis) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *VirtualChassis) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VirtualChassis) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VirtualChassis) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VirtualChassis) 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 *VirtualChassis) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *VirtualChassis) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *VirtualChassis) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VirtualChassis) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetMemberCount `func (o *VirtualChassis) GetMemberCount() int32` @@ -191,6 +394,26 @@ and a boolean to check if the value has been set. SetMemberCount sets MemberCount field to given value. +### GetMembers + +`func (o *VirtualChassis) GetMembers() []NestedDevice` + +GetMembers returns the Members field if non-nil, zero value otherwise. + +### GetMembersOk + +`func (o *VirtualChassis) GetMembersOk() (*[]NestedDevice, bool)` + +GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembers + +`func (o *VirtualChassis) SetMembers(v []NestedDevice)` + +SetMembers sets Members 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/VirtualChassisRequest.md b/docs/VirtualChassisRequest.md index 76fe6fb806..c8f966eb58 100644 --- a/docs/VirtualChassisRequest.md +++ b/docs/VirtualChassisRequest.md @@ -5,8 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -47,6 +51,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassisRequest) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassisRequest) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassisRequest) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassisRequest) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest` @@ -107,6 +136,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassisRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassisRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassisRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassisRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassisRequest) 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 *VirtualChassisRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassisRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassisRequest) 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 *VirtualChassisRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassisRequest) HasCustomFields() bool` + +HasCustomFields 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/VirtualCircuit.md b/docs/VirtualCircuit.md new file mode 100644 index 0000000000..8117ceda36 --- /dev/null +++ b/docs/VirtualCircuit.md @@ -0,0 +1,456 @@ +# VirtualCircuit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**Cid** | **string** | Unique circuit ID | +**ProviderNetwork** | [**BriefProviderNetwork**](BriefProviderNetwork.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccount**](BriefProviderAccount.md) | | [optional] +**Type** | [**BriefVirtualCircuitType**](BriefVirtualCircuitType.md) | | +**Status** | Pointer to [**CircuitStatus**](CircuitStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] + +## Methods + +### NewVirtualCircuit + +`func NewVirtualCircuit(id int32, url string, display string, cid string, providerNetwork BriefProviderNetwork, type_ BriefVirtualCircuitType, ) *VirtualCircuit` + +NewVirtualCircuit instantiates a new VirtualCircuit 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 + +### NewVirtualCircuitWithDefaults + +`func NewVirtualCircuitWithDefaults() *VirtualCircuit` + +NewVirtualCircuitWithDefaults instantiates a new VirtualCircuit 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 *VirtualCircuit) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *VirtualCircuit) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *VirtualCircuit) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualCircuit) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualCircuit) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualCircuit) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *VirtualCircuit) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetCid + +`func (o *VirtualCircuit) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *VirtualCircuit) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *VirtualCircuit) SetCid(v string)` + +SetCid sets Cid field to given value. + + +### GetProviderNetwork + +`func (o *VirtualCircuit) GetProviderNetwork() BriefProviderNetwork` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *VirtualCircuit) GetProviderNetworkOk() (*BriefProviderNetwork, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *VirtualCircuit) SetProviderNetwork(v BriefProviderNetwork)` + +SetProviderNetwork sets ProviderNetwork field to given value. + + +### GetProviderAccount + +`func (o *VirtualCircuit) GetProviderAccount() BriefProviderAccount` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *VirtualCircuit) GetProviderAccountOk() (*BriefProviderAccount, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *VirtualCircuit) SetProviderAccount(v BriefProviderAccount)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *VirtualCircuit) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *VirtualCircuit) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *VirtualCircuit) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *VirtualCircuit) GetType() BriefVirtualCircuitType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *VirtualCircuit) GetTypeOk() (*BriefVirtualCircuitType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *VirtualCircuit) SetType(v BriefVirtualCircuitType)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *VirtualCircuit) GetStatus() CircuitStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VirtualCircuit) GetStatusOk() (*CircuitStatus, 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 *VirtualCircuit) SetStatus(v CircuitStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VirtualCircuit) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *VirtualCircuit) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VirtualCircuit) GetTenantOk() (*BriefTenant, 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 *VirtualCircuit) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VirtualCircuit) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VirtualCircuit) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VirtualCircuit) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDescription + +`func (o *VirtualCircuit) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VirtualCircuit) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *VirtualCircuit) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualCircuit) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualCircuit) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualCircuit) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualCircuit) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualCircuit) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualCircuit) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualCircuit) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VirtualCircuit) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *VirtualCircuit) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *VirtualCircuit) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VirtualCircuit) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VirtualCircuit) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VirtualCircuit) 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 *VirtualCircuit) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *VirtualCircuit) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *VirtualCircuit) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VirtualCircuit) 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/VirtualCircuitRequest.md b/docs/VirtualCircuitRequest.md new file mode 100644 index 0000000000..7f1af54f34 --- /dev/null +++ b/docs/VirtualCircuitRequest.md @@ -0,0 +1,295 @@ +# VirtualCircuitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cid** | **string** | Unique circuit ID | +**ProviderNetwork** | [**BriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefVirtualCircuitTypeRequest**](BriefVirtualCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewVirtualCircuitRequest + +`func NewVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest, type_ BriefVirtualCircuitTypeRequest, ) *VirtualCircuitRequest` + +NewVirtualCircuitRequest instantiates a new VirtualCircuitRequest 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 + +### NewVirtualCircuitRequestWithDefaults + +`func NewVirtualCircuitRequestWithDefaults() *VirtualCircuitRequest` + +NewVirtualCircuitRequestWithDefaults instantiates a new VirtualCircuitRequest 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 + +### GetCid + +`func (o *VirtualCircuitRequest) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *VirtualCircuitRequest) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *VirtualCircuitRequest) SetCid(v string)` + +SetCid sets Cid field to given value. + + +### GetProviderNetwork + +`func (o *VirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *VirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *VirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` + +SetProviderNetwork sets ProviderNetwork field to given value. + + +### GetProviderAccount + +`func (o *VirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *VirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *VirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *VirtualCircuitRequest) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *VirtualCircuitRequest) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *VirtualCircuitRequest) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *VirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *VirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *VirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *VirtualCircuitRequest) GetStatus() CircuitStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VirtualCircuitRequest) GetStatusOk() (*CircuitStatusValue, 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 *VirtualCircuitRequest) SetStatus(v CircuitStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VirtualCircuitRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *VirtualCircuitRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *VirtualCircuitRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VirtualCircuitRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VirtualCircuitRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VirtualCircuitRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDescription + +`func (o *VirtualCircuitRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VirtualCircuitRequest) 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 *VirtualCircuitRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VirtualCircuitRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *VirtualCircuitRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualCircuitRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualCircuitRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualCircuitRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualCircuitRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualCircuitRequest) 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 *VirtualCircuitRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualCircuitRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualCircuitRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualCircuitRequest) 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 *VirtualCircuitRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualCircuitRequest) HasCustomFields() bool` + +HasCustomFields 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/VirtualCircuitTermination.md b/docs/VirtualCircuitTermination.md new file mode 100644 index 0000000000..5a3a271fd7 --- /dev/null +++ b/docs/VirtualCircuitTermination.md @@ -0,0 +1,337 @@ +# VirtualCircuitTermination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**VirtualCircuit** | [**BriefVirtualCircuit**](BriefVirtualCircuit.md) | | +**Role** | Pointer to [**TunnelTerminationRole**](TunnelTerminationRole.md) | | [optional] +**Interface** | [**BriefInterface**](BriefInterface.md) | | +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] + +## Methods + +### NewVirtualCircuitTermination + +`func NewVirtualCircuitTermination(id int32, url string, display string, virtualCircuit BriefVirtualCircuit, interface_ BriefInterface, ) *VirtualCircuitTermination` + +NewVirtualCircuitTermination instantiates a new VirtualCircuitTermination 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 + +### NewVirtualCircuitTerminationWithDefaults + +`func NewVirtualCircuitTerminationWithDefaults() *VirtualCircuitTermination` + +NewVirtualCircuitTerminationWithDefaults instantiates a new VirtualCircuitTermination 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 *VirtualCircuitTermination) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *VirtualCircuitTermination) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *VirtualCircuitTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualCircuitTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualCircuitTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualCircuitTermination) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *VirtualCircuitTermination) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetVirtualCircuit + +`func (o *VirtualCircuitTermination) GetVirtualCircuit() BriefVirtualCircuit` + +GetVirtualCircuit returns the VirtualCircuit field if non-nil, zero value otherwise. + +### GetVirtualCircuitOk + +`func (o *VirtualCircuitTermination) GetVirtualCircuitOk() (*BriefVirtualCircuit, bool)` + +GetVirtualCircuitOk returns a tuple with the VirtualCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualCircuit + +`func (o *VirtualCircuitTermination) SetVirtualCircuit(v BriefVirtualCircuit)` + +SetVirtualCircuit sets VirtualCircuit field to given value. + + +### GetRole + +`func (o *VirtualCircuitTermination) GetRole() TunnelTerminationRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VirtualCircuitTermination) GetRoleOk() (*TunnelTerminationRole, 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 *VirtualCircuitTermination) SetRole(v TunnelTerminationRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VirtualCircuitTermination) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetInterface + +`func (o *VirtualCircuitTermination) GetInterface() BriefInterface` + +GetInterface returns the Interface field if non-nil, zero value otherwise. + +### GetInterfaceOk + +`func (o *VirtualCircuitTermination) GetInterfaceOk() (*BriefInterface, bool)` + +GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterface + +`func (o *VirtualCircuitTermination) SetInterface(v BriefInterface)` + +SetInterface sets Interface field to given value. + + +### GetDescription + +`func (o *VirtualCircuitTermination) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VirtualCircuitTermination) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualCircuitTermination) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualCircuitTermination) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualCircuitTermination) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualCircuitTermination) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VirtualCircuitTermination) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *VirtualCircuitTermination) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *VirtualCircuitTermination) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VirtualCircuitTermination) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VirtualCircuitTermination) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *VirtualCircuitTermination) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *VirtualCircuitTermination) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VirtualCircuitTermination) 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/VirtualCircuitTerminationRequest.md b/docs/VirtualCircuitTerminationRequest.md new file mode 100644 index 0000000000..9a7db9a524 --- /dev/null +++ b/docs/VirtualCircuitTerminationRequest.md @@ -0,0 +1,176 @@ +# VirtualCircuitTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VirtualCircuit** | [**BriefVirtualCircuitRequest**](BriefVirtualCircuitRequest.md) | | +**Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] +**Interface** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewVirtualCircuitTerminationRequest + +`func NewVirtualCircuitTerminationRequest(virtualCircuit BriefVirtualCircuitRequest, interface_ BriefInterfaceRequest, ) *VirtualCircuitTerminationRequest` + +NewVirtualCircuitTerminationRequest instantiates a new VirtualCircuitTerminationRequest 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 + +### NewVirtualCircuitTerminationRequestWithDefaults + +`func NewVirtualCircuitTerminationRequestWithDefaults() *VirtualCircuitTerminationRequest` + +NewVirtualCircuitTerminationRequestWithDefaults instantiates a new VirtualCircuitTerminationRequest 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 + +### GetVirtualCircuit + +`func (o *VirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest` + +GetVirtualCircuit returns the VirtualCircuit field if non-nil, zero value otherwise. + +### GetVirtualCircuitOk + +`func (o *VirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool)` + +GetVirtualCircuitOk returns a tuple with the VirtualCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualCircuit + +`func (o *VirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest)` + +SetVirtualCircuit sets VirtualCircuit field to given value. + + +### GetRole + +`func (o *VirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VirtualCircuitTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, 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 *VirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VirtualCircuitTerminationRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetInterface + +`func (o *VirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest` + +GetInterface returns the Interface field if non-nil, zero value otherwise. + +### GetInterfaceOk + +`func (o *VirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool)` + +GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterface + +`func (o *VirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest)` + +SetInterface sets Interface field to given value. + + +### GetDescription + +`func (o *VirtualCircuitTerminationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VirtualCircuitTerminationRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualCircuitTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualCircuitTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualCircuitTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualCircuitTerminationRequest) HasCustomFields() bool` + +HasCustomFields 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/VirtualCircuitType.md b/docs/VirtualCircuitType.md new file mode 100644 index 0000000000..1c728503df --- /dev/null +++ b/docs/VirtualCircuitType.md @@ -0,0 +1,358 @@ +# VirtualCircuitType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Color** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**VirtualCircuitCount** | **int64** | | [readonly] + +## Methods + +### NewVirtualCircuitType + +`func NewVirtualCircuitType(id int32, url string, display string, name string, slug string, virtualCircuitCount int64, ) *VirtualCircuitType` + +NewVirtualCircuitType instantiates a new VirtualCircuitType 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 + +### NewVirtualCircuitTypeWithDefaults + +`func NewVirtualCircuitTypeWithDefaults() *VirtualCircuitType` + +NewVirtualCircuitTypeWithDefaults instantiates a new VirtualCircuitType 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 *VirtualCircuitType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *VirtualCircuitType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *VirtualCircuitType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualCircuitType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualCircuitType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualCircuitType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + +### GetDisplay + +`func (o *VirtualCircuitType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *VirtualCircuitType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *VirtualCircuitType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetColor + +`func (o *VirtualCircuitType) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *VirtualCircuitType) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *VirtualCircuitType) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *VirtualCircuitType) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetDescription + +`func (o *VirtualCircuitType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VirtualCircuitType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualCircuitType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualCircuitType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualCircuitType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualCircuitType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VirtualCircuitType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *VirtualCircuitType) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *VirtualCircuitType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VirtualCircuitType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VirtualCircuitType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VirtualCircuitType) 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 *VirtualCircuitType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *VirtualCircuitType) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *VirtualCircuitType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VirtualCircuitType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetVirtualCircuitCount + +`func (o *VirtualCircuitType) GetVirtualCircuitCount() int64` + +GetVirtualCircuitCount returns the VirtualCircuitCount field if non-nil, zero value otherwise. + +### GetVirtualCircuitCountOk + +`func (o *VirtualCircuitType) GetVirtualCircuitCountOk() (*int64, bool)` + +GetVirtualCircuitCountOk returns a tuple with the VirtualCircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualCircuitCount + +`func (o *VirtualCircuitType) SetVirtualCircuitCount(v int64)` + +SetVirtualCircuitCount sets VirtualCircuitCount 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/VirtualCircuitTypeRequest.md b/docs/VirtualCircuitTypeRequest.md new file mode 100644 index 0000000000..8b4de8aeb5 --- /dev/null +++ b/docs/VirtualCircuitTypeRequest.md @@ -0,0 +1,176 @@ +# VirtualCircuitTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Color** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewVirtualCircuitTypeRequest + +`func NewVirtualCircuitTypeRequest(name string, slug string, ) *VirtualCircuitTypeRequest` + +NewVirtualCircuitTypeRequest instantiates a new VirtualCircuitTypeRequest 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 + +### NewVirtualCircuitTypeRequestWithDefaults + +`func NewVirtualCircuitTypeRequestWithDefaults() *VirtualCircuitTypeRequest` + +NewVirtualCircuitTypeRequestWithDefaults instantiates a new VirtualCircuitTypeRequest 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 *VirtualCircuitTypeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *VirtualCircuitTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetColor + +`func (o *VirtualCircuitTypeRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *VirtualCircuitTypeRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *VirtualCircuitTypeRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *VirtualCircuitTypeRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetDescription + +`func (o *VirtualCircuitTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *VirtualCircuitTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualCircuitTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualCircuitTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualCircuitTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualCircuitTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md index 6bdea62eba..a162de8160 100644 --- a/docs/VirtualDeviceContext.md +++ b/docs/VirtualDeviceContext.md @@ -6,28 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**PrimaryIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Status** | [**VirtualDeviceContextStatus**](VirtualDeviceContextStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **InterfaceCount** | **int64** | | [readonly] ## Methods ### NewVirtualDeviceContext -`func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` +`func NewVirtualDeviceContext(id int32, url string, display string, name string, device BriefDevice, status VirtualDeviceContextStatus, interfaceCount int64, ) *VirtualDeviceContext` NewVirtualDeviceContext instantiates a new VirtualDeviceContext object This constructor will assign default values to properties that have it defined, @@ -82,6 +83,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDeviceContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDeviceContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualDeviceContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualDeviceContext) GetDisplay() string` @@ -124,20 +150,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContext) GetDevice() Device` +`func (o *VirtualDeviceContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContext) SetDevice(v Device)` +`func (o *VirtualDeviceContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -179,20 +205,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContext) GetTenant() Tenant` +`func (o *VirtualDeviceContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, 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 *VirtualDeviceContext) SetTenant(v Tenant)` +`func (o *VirtualDeviceContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -214,23 +240,28 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. +### HasPrimaryIp + +`func (o *VirtualDeviceContext) HasPrimaryIp() bool` + +HasPrimaryIp returns a boolean if a field has been set. ### SetPrimaryIpNil @@ -244,20 +275,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -279,20 +310,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -451,6 +482,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *VirtualDeviceContext) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -481,6 +517,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *VirtualDeviceContext) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/VirtualDeviceContextRequest.md b/docs/VirtualDeviceContextRequest.md index f3436b2b52..2604eb36a9 100644 --- a/docs/VirtualDeviceContextRequest.md +++ b/docs/VirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContextRequest -`func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` +`func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` NewVirtualDeviceContextRequest instantiates a new VirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *VirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDeviceContextStatusLabel 2.md b/docs/VirtualDeviceContextStatusLabel 2.md new file mode 100644 index 0000000000..b3de72a3b6 --- /dev/null +++ b/docs/VirtualDeviceContextStatusLabel 2.md @@ -0,0 +1,15 @@ +# VirtualDeviceContextStatusLabel + +## Enum + + +* `ACTIVE` (value: `"Active"`) + +* `PLANNED` (value: `"Planned"`) + +* `OFFLINE` (value: `"Offline"`) + + +[[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/VirtualDisk.md b/docs/VirtualDisk.md index 2bc24b4e82..27e6548d36 100644 --- a/docs/VirtualDisk.md +++ b/docs/VirtualDisk.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewVirtualDisk -`func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` +`func NewVirtualDisk(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, size int32, ) *VirtualDisk` NewVirtualDisk instantiates a new VirtualDisk object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDisk) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDisk) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualDisk) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualDisk) GetDisplay() string` @@ -97,20 +123,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VirtualDisk) GetVirtualMachine() VirtualMachine` +`func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine)` +`func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. @@ -249,6 +275,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *VirtualDisk) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -279,6 +310,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *VirtualDisk) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/VirtualDiskRequest.md b/docs/VirtualDiskRequest.md index 3ec5d8bf75..737588e43a 100644 --- a/docs/VirtualDiskRequest.md +++ b/docs/VirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewVirtualDiskRequest -`func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` +`func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` NewVirtualDiskRequest instantiates a new VirtualDiskRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md index bb09969ee7..1a1742802b 100644 --- a/docs/VirtualMachineWithConfigContext.md +++ b/docs/VirtualMachineWithConfigContext.md @@ -6,30 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Status** | Pointer to [**VirtualMachineWithConfigContextStatus**](VirtualMachineWithConfigContextStatus.md) | | [optional] -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRole**](DeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatus**](InventoryItemStatus.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRole**](BriefDeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] +**PrimaryIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **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** | **interface{}** | | [readonly] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**ConfigContext** | Pointer to **interface{}** | | [optional] [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **InterfaceCount** | **int32** | | [readonly] **VirtualDiskCount** | **int32** | | [readonly] @@ -37,7 +39,7 @@ Name | Type | Description | Notes ### NewVirtualMachineWithConfigContext -`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` +`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -92,6 +94,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualMachineWithConfigContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualMachineWithConfigContext) GetDisplay() string` @@ -134,20 +161,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus` +`func (o *VirtualMachineWithConfigContext) GetStatus() InventoryItemStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool)` +`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*InventoryItemStatus, 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 *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus)` +`func (o *VirtualMachineWithConfigContext) SetStatus(v InventoryItemStatus)` SetStatus sets Status field to given value. @@ -159,20 +186,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContext) GetSite() Site` +`func (o *VirtualMachineWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContext) SetSite(v Site)` +`func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -194,20 +221,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContext) GetCluster() Cluster` +`func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster)` +`func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -229,20 +256,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContext) GetDevice() Device` +`func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContext) SetDevice(v Device)` +`func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -262,22 +289,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContext) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContext) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContext) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContext) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole` +`func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, 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 *VirtualMachineWithConfigContext) SetRole(v DeviceRole)` +`func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. @@ -299,20 +351,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContext) GetTenant() Tenant` +`func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, 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 *VirtualMachineWithConfigContext) SetTenant(v Tenant)` +`func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -334,20 +386,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContext) GetPlatform() Platform` +`func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform)` +`func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -369,23 +421,28 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. +### HasPrimaryIp + +`func (o *VirtualMachineWithConfigContext) HasPrimaryIp() bool` + +HasPrimaryIp returns a boolean if a field has been set. ### SetPrimaryIpNil @@ -399,20 +456,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -434,20 +491,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -624,20 +681,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, 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 *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate)` +`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. @@ -761,6 +818,11 @@ and a boolean to check if the value has been set. SetConfigContext sets ConfigContext field to given value. +### HasConfigContext + +`func (o *VirtualMachineWithConfigContext) HasConfigContext() bool` + +HasConfigContext returns a boolean if a field has been set. ### SetConfigContextNil @@ -791,6 +853,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *VirtualMachineWithConfigContext) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -821,6 +888,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *VirtualMachineWithConfigContext) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/VirtualMachineWithConfigContextRequest.md b/docs/VirtualMachineWithConfigContextRequest.md index 44050ed132..a6c9b2df3d 100644 --- a/docs/VirtualMachineWithConfigContextRequest.md +++ b/docs/VirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **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] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *VirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, 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 *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualMachineWithConfigContextStatus.md b/docs/VirtualMachineWithConfigContextStatus.md deleted file mode 100644 index d78ef89111..0000000000 --- a/docs/VirtualMachineWithConfigContextStatus.md +++ /dev/null @@ -1,82 +0,0 @@ -# VirtualMachineWithConfigContextStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Value** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Label** | Pointer to [**VirtualMachineWithConfigContextStatusLabel**](VirtualMachineWithConfigContextStatusLabel.md) | | [optional] - -## Methods - -### NewVirtualMachineWithConfigContextStatus - -`func NewVirtualMachineWithConfigContextStatus() *VirtualMachineWithConfigContextStatus` - -NewVirtualMachineWithConfigContextStatus instantiates a new VirtualMachineWithConfigContextStatus 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 - -### NewVirtualMachineWithConfigContextStatusWithDefaults - -`func NewVirtualMachineWithConfigContextStatusWithDefaults() *VirtualMachineWithConfigContextStatus` - -NewVirtualMachineWithConfigContextStatusWithDefaults instantiates a new VirtualMachineWithConfigContextStatus 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 *VirtualMachineWithConfigContextStatus) GetValue() PatchedWritableModuleRequestStatus` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *VirtualMachineWithConfigContextStatus) GetValueOk() (*PatchedWritableModuleRequestStatus, 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 *VirtualMachineWithConfigContextStatus) SetValue(v PatchedWritableModuleRequestStatus)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *VirtualMachineWithConfigContextStatus) HasValue() bool` - -HasValue returns a boolean if a field has been set. - -### GetLabel - -`func (o *VirtualMachineWithConfigContextStatus) GetLabel() VirtualMachineWithConfigContextStatusLabel` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *VirtualMachineWithConfigContextStatus) GetLabelOk() (*VirtualMachineWithConfigContextStatusLabel, 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 *VirtualMachineWithConfigContextStatus) SetLabel(v VirtualMachineWithConfigContextStatusLabel)` - -SetLabel sets Label field to given value. - -### HasLabel - -`func (o *VirtualMachineWithConfigContextStatus) 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/VirtualizationAPI.md b/docs/VirtualizationAPI.md index b93f4f2661..66996aa696 100644 --- a/docs/VirtualizationAPI.md +++ b/docs/VirtualizationAPI.md @@ -416,8 +416,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -509,8 +509,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -1565,7 +1565,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1629,7 +1629,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1695,7 +1695,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1761,7 +1761,7 @@ import ( ) func main() { - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1876,7 +1876,7 @@ Name | Type | Description | Notes ## VirtualizationClustersList -> 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).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).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).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).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).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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() @@ -1898,8 +1898,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -1940,6 +1940,10 @@ func main() { 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 | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -1955,28 +1959,46 @@ 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) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) + scopeIdLte := []int32{int32(123)} // []int32 | (optional) + scopeIdN := []int32{int32(123)} // []int32 | (optional) + scopeType := "scopeType_example" // string | (optional) + scopeTypeN := "scopeTypeN_example" // string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - 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) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | Cluster type (slug) (optional) @@ -1987,7 +2009,7 @@ 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).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).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).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).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).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -2010,8 +2032,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2052,6 +2074,10 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -2067,28 +2093,46 @@ 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. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **scopeId** | **[]int32** | | + **scopeIdEmpty** | **bool** | | + **scopeIdGt** | **[]int32** | | + **scopeIdGte** | **[]int32** | | + **scopeIdLt** | **[]int32** | | + **scopeIdLte** | **[]int32** | | + **scopeIdN** | **[]int32** | | + **scopeType** | **string** | | + **scopeTypeN** | **string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | Cluster type (slug) | @@ -2279,7 +2323,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this cluster. - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2350,7 +2394,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2414,7 +2458,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2480,7 +2524,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2546,7 +2590,7 @@ import ( ) func main() { - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2661,7 +2705,7 @@ Name | Type | Description | Notes ## VirtualizationInterfacesList -> 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).Mode(mode).ModeN(modeN).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() +> 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).Mode(mode).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).PrimaryMacAddress(primaryMacAddress).PrimaryMacAddressN(primaryMacAddressN).PrimaryMacAddressId(primaryMacAddressId).PrimaryMacAddressIdN(primaryMacAddressIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).VlanTranslationPolicy(vlanTranslationPolicy).VlanTranslationPolicyN(vlanTranslationPolicyN).VlanTranslationPolicyId(vlanTranslationPolicyId).VlanTranslationPolicyIdN(vlanTranslationPolicyIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() @@ -2736,8 +2780,7 @@ func main() { macAddressNie := []string{"Inner_example"} // []string | (optional) macAddressNiew := []string{"Inner_example"} // []string | (optional) macAddressNisw := []string{"Inner_example"} // []string | (optional) - mode := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) - modeN := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) + mode := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) mtu := []int32{int32(123)} // []int32 | (optional) mtuEmpty := true // bool | (optional) @@ -2761,6 +2804,10 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) parentId := []int32{int32(123)} // []int32 | Parent interface (ID) (optional) parentIdN := []int32{int32(123)} // []int32 | Parent interface (ID) (optional) + primaryMacAddress := []string{"Inner_example"} // []string | Primary MAC address (optional) + primaryMacAddressN := []string{"Inner_example"} // []string | Primary MAC address (optional) + primaryMacAddressId := []int32{int32(123)} // []int32 | Primary MAC address (ID) (optional) + primaryMacAddressIdN := []int32{int32(123)} // []int32 | Primary MAC address (ID) (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -2771,6 +2818,10 @@ func main() { virtualMachineIdN := []int32{int32(123)} // []int32 | Virtual machine (ID) (optional) vlan := "vlan_example" // string | Assigned VID (optional) vlanId := "vlanId_example" // string | Assigned VLAN (optional) + vlanTranslationPolicy := []string{"Inner_example"} // []string | VLAN Translation Policy (optional) + vlanTranslationPolicyN := []string{"Inner_example"} // []string | VLAN Translation Policy (optional) + vlanTranslationPolicyId := []int32{int32(123)} // []int32 | VLAN Translation Policy (ID) (optional) + vlanTranslationPolicyIdN := []int32{int32(123)} // []int32 | VLAN Translation Policy (ID) (optional) vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional) vrfN := []*string{"Inner_example"} // []*string | VRF (RD) (optional) vrfId := []int32{int32(123)} // []int32 | VRF (optional) @@ -2778,7 +2829,7 @@ 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).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).Mode(mode).ModeN(modeN).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() + 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).Mode(mode).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).PrimaryMacAddress(primaryMacAddress).PrimaryMacAddressN(primaryMacAddressN).PrimaryMacAddressId(primaryMacAddressId).PrimaryMacAddressIdN(primaryMacAddressIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).VlanTranslationPolicy(vlanTranslationPolicy).VlanTranslationPolicyN(vlanTranslationPolicyN).VlanTranslationPolicyId(vlanTranslationPolicyId).VlanTranslationPolicyIdN(vlanTranslationPolicyIdN).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, "Full HTTP response: %v\n", r) @@ -2854,8 +2905,7 @@ Name | Type | Description | Notes **macAddressNie** | **[]string** | | **macAddressNiew** | **[]string** | | **macAddressNisw** | **[]string** | | - **mode** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | - **modeN** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | + **mode** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) | **modifiedByRequest** | **string** | | **mtu** | **[]int32** | | **mtuEmpty** | **bool** | | @@ -2879,6 +2929,10 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **parentId** | **[]int32** | Parent interface (ID) | **parentIdN** | **[]int32** | Parent interface (ID) | + **primaryMacAddress** | **[]string** | Primary MAC address | + **primaryMacAddressN** | **[]string** | Primary MAC address | + **primaryMacAddressId** | **[]int32** | Primary MAC address (ID) | + **primaryMacAddressIdN** | **[]int32** | Primary MAC address (ID) | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -2889,6 +2943,10 @@ Name | Type | Description | Notes **virtualMachineIdN** | **[]int32** | Virtual machine (ID) | **vlan** | **string** | Assigned VID | **vlanId** | **string** | Assigned VLAN | + **vlanTranslationPolicy** | **[]string** | VLAN Translation Policy | + **vlanTranslationPolicyN** | **[]string** | VLAN Translation Policy | + **vlanTranslationPolicyId** | **[]int32** | VLAN Translation Policy (ID) | + **vlanTranslationPolicyIdN** | **[]int32** | VLAN Translation Policy (ID) | **vrf** | **[]string** | VRF (RD) | **vrfN** | **[]string** | VRF (RD) | **vrfId** | **[]int32** | VRF | @@ -3076,7 +3134,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3147,7 +3205,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3211,7 +3269,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3277,7 +3335,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3343,7 +3401,7 @@ import ( ) func main() { - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3811,7 +3869,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual disk. - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4193,7 +4251,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).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).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).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).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).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).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).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).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).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).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() @@ -4229,8 +4287,8 @@ func main() { 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) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4327,32 +4385,52 @@ func main() { primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) + serial := []string{"Inner_example"} // []string | (optional) + serialEmpty := true // bool | (optional) + serialIc := []string{"Inner_example"} // []string | (optional) + serialIe := []string{"Inner_example"} // []string | (optional) + serialIew := []string{"Inner_example"} // []string | (optional) + serialIsw := []string{"Inner_example"} // []string | (optional) + serialN := []string{"Inner_example"} // []string | (optional) + serialNic := []string{"Inner_example"} // []string | (optional) + serialNie := []string{"Inner_example"} // []string | (optional) + serialNiew := []string{"Inner_example"} // []string | (optional) + serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4373,7 +4451,7 @@ 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).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).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).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).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).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).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).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).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).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).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).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).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4410,8 +4488,8 @@ Name | Type | Description | Notes **configTemplateIdN** | **[]int32** | Config template (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4508,32 +4586,52 @@ Name | Type | Description | Notes **primaryIp6Id** | **[]int32** | Primary IPv6 (ID) | **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | + **serial** | **[]string** | | + **serialEmpty** | **bool** | | + **serialIc** | **[]string** | | + **serialIe** | **[]string** | | + **serialIew** | **[]string** | | + **serialIsw** | **[]string** | | + **serialN** | **[]string** | | + **serialNic** | **[]string** | | + **serialNie** | **[]string** | | + **serialNiew** | **[]string** | | + **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/VpnAPI.md b/docs/VpnAPI.md index 4a260a9e03..93dfe8673d 100644 --- a/docs/VpnAPI.md +++ b/docs/VpnAPI.md @@ -118,7 +118,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -182,7 +182,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -248,7 +248,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +429,7 @@ Name | Type | Description | Notes ## VpnIkePoliciesList -> PaginatedIKEPolicyList VpnIkePoliciesList(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).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).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).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() +> PaginatedIKEPolicyList VpnIkePoliciesList(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).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).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).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionIc(versionIc).VersionIe(versionIe).VersionIew(versionIew).VersionIsw(versionIsw).VersionN(versionN).VersionNic(versionNic).VersionNie(versionNie).VersionNiew(versionNiew).VersionNisw(versionNisw).Execute() @@ -487,8 +487,17 @@ func main() { 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) - mode := []string{"Inner_example"} // []string | (optional) - modeN := []string{"Inner_example"} // []string | (optional) + mode := []*string{"Inner_example"} // []*string | (optional) + modeEmpty := true // bool | (optional) + modeIc := []*string{"Inner_example"} // []*string | (optional) + modeIe := []*string{"Inner_example"} // []*string | (optional) + modeIew := []*string{"Inner_example"} // []*string | (optional) + modeIsw := []*string{"Inner_example"} // []*string | (optional) + modeN := []*string{"Inner_example"} // []*string | (optional) + modeNic := []*string{"Inner_example"} // []*string | (optional) + modeNie := []*string{"Inner_example"} // []*string | (optional) + modeNiew := []*string{"Inner_example"} // []*string | (optional) + modeNisw := []*string{"Inner_example"} // []*string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -513,20 +522,24 @@ func main() { presharedKeyNie := "presharedKeyNie_example" // string | (optional) presharedKeyNiew := "presharedKeyNiew_example" // string | (optional) presharedKeyNisw := "presharedKeyNisw_example" // string | (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) version := []int32{int32(123)} // []int32 | (optional) + versionIc := []int32{int32(123)} // []int32 | (optional) + versionIe := []int32{int32(123)} // []int32 | (optional) + versionIew := []int32{int32(123)} // []int32 | (optional) + versionIsw := []int32{int32(123)} // []int32 | (optional) versionN := []int32{int32(123)} // []int32 | (optional) + versionNic := []int32{int32(123)} // []int32 | (optional) + versionNie := []int32{int32(123)} // []int32 | (optional) + versionNiew := []int32{int32(123)} // []int32 | (optional) + versionNisw := []int32{int32(123)} // []int32 | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(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).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).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).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() + resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(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).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).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).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionIc(versionIc).VersionIe(versionIe).VersionIew(versionIew).VersionIsw(versionIsw).VersionN(versionN).VersionNic(versionNic).VersionNie(versionNie).VersionNiew(versionNiew).VersionNisw(versionNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -586,7 +599,16 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **mode** | **[]string** | | + **modeEmpty** | **bool** | | + **modeIc** | **[]string** | | + **modeIe** | **[]string** | | + **modeIew** | **[]string** | | + **modeIsw** | **[]string** | | **modeN** | **[]string** | | + **modeNic** | **[]string** | | + **modeNie** | **[]string** | | + **modeNiew** | **[]string** | | + **modeNisw** | **[]string** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -611,16 +633,20 @@ Name | Type | Description | Notes **presharedKeyNie** | **string** | | **presharedKeyNiew** | **string** | | **presharedKeyNisw** | **string** | | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | **updatedByRequest** | **string** | | **version** | **[]int32** | | + **versionIc** | **[]int32** | | + **versionIe** | **[]int32** | | + **versionIew** | **[]int32** | | + **versionIsw** | **[]int32** | | **versionN** | **[]int32** | | + **versionNic** | **[]int32** | | + **versionNie** | **[]int32** | | + **versionNiew** | **[]int32** | | + **versionNisw** | **[]int32** | | ### Return type @@ -875,7 +901,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -939,7 +965,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1005,7 +1031,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1186,7 +1212,7 @@ Name | Type | Description | Notes ## VpnIkeProposalsList -> PaginatedIKEProposalList VpnIkeProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationMethod(authenticationMethod).AuthenticationMethodN(authenticationMethodN).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Group(group).GroupN(groupN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).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).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIKEProposalList VpnIkeProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).AuthenticationMethod(authenticationMethod).AuthenticationMethodEmpty(authenticationMethodEmpty).AuthenticationMethodIc(authenticationMethodIc).AuthenticationMethodIe(authenticationMethodIe).AuthenticationMethodIew(authenticationMethodIew).AuthenticationMethodIsw(authenticationMethodIsw).AuthenticationMethodN(authenticationMethodN).AuthenticationMethodNic(authenticationMethodNic).AuthenticationMethodNie(authenticationMethodNie).AuthenticationMethodNiew(authenticationMethodNiew).AuthenticationMethodNisw(authenticationMethodNisw).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Group(group).GroupIc(groupIc).GroupIe(groupIe).GroupIew(groupIew).GroupIsw(groupIsw).GroupN(groupN).GroupNic(groupNic).GroupNie(groupNie).GroupNiew(groupNiew).GroupNisw(groupNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).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).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -1206,10 +1232,28 @@ import ( ) func main() { - authenticationAlgorithm := []string{"Inner_example"} // []string | (optional) - authenticationAlgorithmN := []string{"Inner_example"} // []string | (optional) + authenticationAlgorithm := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmEmpty := true // bool | (optional) + authenticationAlgorithmIc := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmIe := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmIew := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmIsw := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmN := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNic := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNie := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNiew := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNisw := []*string{"Inner_example"} // []*string | (optional) authenticationMethod := []string{"Inner_example"} // []string | (optional) + authenticationMethodEmpty := true // bool | (optional) + authenticationMethodIc := []string{"Inner_example"} // []string | (optional) + authenticationMethodIe := []string{"Inner_example"} // []string | (optional) + authenticationMethodIew := []string{"Inner_example"} // []string | (optional) + authenticationMethodIsw := []string{"Inner_example"} // []string | (optional) authenticationMethodN := []string{"Inner_example"} // []string | (optional) + authenticationMethodNic := []string{"Inner_example"} // []string | (optional) + authenticationMethodNie := []string{"Inner_example"} // []string | (optional) + authenticationMethodNiew := []string{"Inner_example"} // []string | (optional) + authenticationMethodNisw := []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) @@ -1230,9 +1274,26 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) encryptionAlgorithm := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmEmpty := true // bool | (optional) + encryptionAlgorithmIc := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmIe := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmIew := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmIsw := []string{"Inner_example"} // []string | (optional) encryptionAlgorithmN := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmNic := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmNie := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmNiew := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmNisw := []string{"Inner_example"} // []string | (optional) group := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupIc := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupIe := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupIew := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupIsw := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) groupN := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupNic := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupNie := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupNiew := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupNisw := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1280,7 +1341,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationMethod(authenticationMethod).AuthenticationMethodN(authenticationMethodN).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Group(group).GroupN(groupN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).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).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).AuthenticationMethod(authenticationMethod).AuthenticationMethodEmpty(authenticationMethodEmpty).AuthenticationMethodIc(authenticationMethodIc).AuthenticationMethodIe(authenticationMethodIe).AuthenticationMethodIew(authenticationMethodIew).AuthenticationMethodIsw(authenticationMethodIsw).AuthenticationMethodN(authenticationMethodN).AuthenticationMethodNic(authenticationMethodNic).AuthenticationMethodNie(authenticationMethodNie).AuthenticationMethodNiew(authenticationMethodNiew).AuthenticationMethodNisw(authenticationMethodNisw).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Group(group).GroupIc(groupIc).GroupIe(groupIe).GroupIew(groupIew).GroupIsw(groupIsw).GroupN(groupN).GroupNic(groupNic).GroupNie(groupNie).GroupNiew(groupNiew).GroupNisw(groupNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).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).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1302,9 +1363,27 @@ Other parameters are passed through a pointer to a apiVpnIkeProposalsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authenticationAlgorithm** | **[]string** | | + **authenticationAlgorithmEmpty** | **bool** | | + **authenticationAlgorithmIc** | **[]string** | | + **authenticationAlgorithmIe** | **[]string** | | + **authenticationAlgorithmIew** | **[]string** | | + **authenticationAlgorithmIsw** | **[]string** | | **authenticationAlgorithmN** | **[]string** | | + **authenticationAlgorithmNic** | **[]string** | | + **authenticationAlgorithmNie** | **[]string** | | + **authenticationAlgorithmNiew** | **[]string** | | + **authenticationAlgorithmNisw** | **[]string** | | **authenticationMethod** | **[]string** | | + **authenticationMethodEmpty** | **bool** | | + **authenticationMethodIc** | **[]string** | | + **authenticationMethodIe** | **[]string** | | + **authenticationMethodIew** | **[]string** | | + **authenticationMethodIsw** | **[]string** | | **authenticationMethodN** | **[]string** | | + **authenticationMethodNic** | **[]string** | | + **authenticationMethodNie** | **[]string** | | + **authenticationMethodNiew** | **[]string** | | + **authenticationMethodNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1325,9 +1404,26 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **encryptionAlgorithm** | **[]string** | | + **encryptionAlgorithmEmpty** | **bool** | | + **encryptionAlgorithmIc** | **[]string** | | + **encryptionAlgorithmIe** | **[]string** | | + **encryptionAlgorithmIew** | **[]string** | | + **encryptionAlgorithmIsw** | **[]string** | | **encryptionAlgorithmN** | **[]string** | | + **encryptionAlgorithmNic** | **[]string** | | + **encryptionAlgorithmNie** | **[]string** | | + **encryptionAlgorithmNiew** | **[]string** | | + **encryptionAlgorithmNisw** | **[]string** | | **group** | **[]int32** | Diffie-Hellman group ID | + **groupIc** | **[]int32** | Diffie-Hellman group ID | + **groupIe** | **[]int32** | Diffie-Hellman group ID | + **groupIew** | **[]int32** | Diffie-Hellman group ID | + **groupIsw** | **[]int32** | Diffie-Hellman group ID | **groupN** | **[]int32** | Diffie-Hellman group ID | + **groupNic** | **[]int32** | Diffie-Hellman group ID | + **groupNie** | **[]int32** | Diffie-Hellman group ID | + **groupNiew** | **[]int32** | Diffie-Hellman group ID | + **groupNisw** | **[]int32** | Diffie-Hellman group ID | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -1937,7 +2033,7 @@ Name | Type | Description | Notes ## VpnIpsecPoliciesList -> PaginatedIPSecPolicyList VpnIpsecPoliciesList(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).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).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).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecPolicyList VpnIpsecPoliciesList(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).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).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).PfsGroup(pfsGroup).PfsGroupIc(pfsGroupIc).PfsGroupIe(pfsGroupIe).PfsGroupIew(pfsGroupIew).PfsGroupIsw(pfsGroupIsw).PfsGroupN(pfsGroupN).PfsGroupNic(pfsGroupNic).PfsGroupNie(pfsGroupNie).PfsGroupNiew(pfsGroupNiew).PfsGroupNisw(pfsGroupNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -2010,11 +2106,15 @@ 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) pfsGroup := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + pfsGroupIc := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + pfsGroupIe := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + pfsGroupIew := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + pfsGroupIsw := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) pfsGroupN := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) + pfsGroupNic := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + pfsGroupNie := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + pfsGroupNiew := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + pfsGroupNisw := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -2022,7 +2122,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(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).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).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).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(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).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).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).PfsGroup(pfsGroup).PfsGroupIc(pfsGroupIc).PfsGroupIe(pfsGroupIe).PfsGroupIew(pfsGroupIew).PfsGroupIsw(pfsGroupIsw).PfsGroupN(pfsGroupN).PfsGroupNic(pfsGroupNic).PfsGroupNie(pfsGroupNie).PfsGroupNiew(pfsGroupNiew).PfsGroupNisw(pfsGroupNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2096,11 +2196,15 @@ 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. | **pfsGroup** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **pfsGroupIc** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **pfsGroupIe** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **pfsGroupIew** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **pfsGroupIsw** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | **pfsGroupN** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | + **pfsGroupNic** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **pfsGroupNie** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **pfsGroupNiew** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **pfsGroupNisw** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -2359,7 +2463,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2423,7 +2527,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2489,7 +2593,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2555,7 +2659,7 @@ import ( ) func main() { - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2670,7 +2774,7 @@ Name | Type | Description | Notes ## VpnIpsecProfilesList -> PaginatedIPSecProfileList VpnIpsecProfilesList(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).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).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).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecProfileList VpnIpsecProfilesList(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).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).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).UpdatedByRequest(updatedByRequest).Execute() @@ -2733,7 +2837,16 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) mode := []string{"Inner_example"} // []string | (optional) + modeEmpty := true // bool | (optional) + modeIc := []string{"Inner_example"} // []string | (optional) + modeIe := []string{"Inner_example"} // []string | (optional) + modeIew := []string{"Inner_example"} // []string | (optional) + modeIsw := []string{"Inner_example"} // []string | (optional) modeN := []string{"Inner_example"} // []string | (optional) + modeNic := []string{"Inner_example"} // []string | (optional) + modeNie := []string{"Inner_example"} // []string | (optional) + modeNiew := []string{"Inner_example"} // []string | (optional) + modeNisw := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -2755,7 +2868,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesList(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).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).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).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesList(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).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).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).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2819,7 +2932,16 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **mode** | **[]string** | | + **modeEmpty** | **bool** | | + **modeIc** | **[]string** | | + **modeIe** | **[]string** | | + **modeIew** | **[]string** | | + **modeIsw** | **[]string** | | **modeN** | **[]string** | | + **modeNic** | **[]string** | | + **modeNie** | **[]string** | | + **modeNiew** | **[]string** | | + **modeNisw** | **[]string** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -3021,7 +3143,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this IPSec profile. - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3092,7 +3214,7 @@ import ( ) func main() { - iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example", openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"))} // []IPSecProposalRequest | + iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example")} // []IPSecProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3156,7 +3278,7 @@ import ( ) func main() { - iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example", openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"))} // []IPSecProposalRequest | + iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example")} // []IPSecProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3222,7 +3344,7 @@ import ( ) func main() { - iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example", openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"))} // []IPSecProposalRequest | + iPSecProposalRequest := []openapiclient.IPSecProposalRequest{*openapiclient.NewIPSecProposalRequest("Name_example")} // []IPSecProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3403,7 +3525,7 @@ Name | Type | Description | Notes ## VpnIpsecProposalsList -> PaginatedIPSecProposalList VpnIpsecProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).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).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecProposalList VpnIpsecProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).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).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -3423,8 +3545,17 @@ import ( ) func main() { - authenticationAlgorithm := []string{"Inner_example"} // []string | (optional) - authenticationAlgorithmN := []string{"Inner_example"} // []string | (optional) + authenticationAlgorithm := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmEmpty := true // bool | (optional) + authenticationAlgorithmIc := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmIe := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmIew := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmIsw := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmN := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNic := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNie := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNiew := []*string{"Inner_example"} // []*string | (optional) + authenticationAlgorithmNisw := []*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) @@ -3444,8 +3575,17 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - encryptionAlgorithm := []string{"Inner_example"} // []string | (optional) - encryptionAlgorithmN := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithm := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmEmpty := true // bool | (optional) + encryptionAlgorithmIc := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmIe := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmIew := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmIsw := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmN := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmNic := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmNie := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmNiew := []*string{"Inner_example"} // []*string | (optional) + encryptionAlgorithmNisw := []*string{"Inner_example"} // []*string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -3500,7 +3640,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).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).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).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).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).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).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3522,7 +3662,16 @@ Other parameters are passed through a pointer to a apiVpnIpsecProposalsListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authenticationAlgorithm** | **[]string** | | + **authenticationAlgorithmEmpty** | **bool** | | + **authenticationAlgorithmIc** | **[]string** | | + **authenticationAlgorithmIe** | **[]string** | | + **authenticationAlgorithmIew** | **[]string** | | + **authenticationAlgorithmIsw** | **[]string** | | **authenticationAlgorithmN** | **[]string** | | + **authenticationAlgorithmNic** | **[]string** | | + **authenticationAlgorithmNie** | **[]string** | | + **authenticationAlgorithmNiew** | **[]string** | | + **authenticationAlgorithmNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -3543,7 +3692,16 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **encryptionAlgorithm** | **[]string** | | + **encryptionAlgorithmEmpty** | **bool** | | + **encryptionAlgorithmIc** | **[]string** | | + **encryptionAlgorithmIe** | **[]string** | | + **encryptionAlgorithmIew** | **[]string** | | + **encryptionAlgorithmIsw** | **[]string** | | **encryptionAlgorithmN** | **[]string** | | + **encryptionAlgorithmNic** | **[]string** | | + **encryptionAlgorithmNie** | **[]string** | | + **encryptionAlgorithmNiew** | **[]string** | | + **encryptionAlgorithmNisw** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -3849,7 +4007,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3913,7 +4071,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3979,7 +4137,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4045,7 +4203,7 @@ import ( ) func main() { - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4535,7 +4693,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN termination. - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4802,7 +4960,7 @@ import ( ) func main() { - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4917,7 +5075,7 @@ Name | Type | Description | Notes ## VpnL2vpnsList -> PaginatedL2VPNList VpnL2vpnsList(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() +> PaginatedL2VPNList VpnL2vpnsList(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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -5016,19 +5174,28 @@ func main() { 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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnL2vpnsList(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() + resp, r, err := apiClient.VpnAPI.VpnL2vpnsList(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_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5128,14 +5295,23 @@ Name | Type | Description | Notes **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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | ### Return type @@ -5320,7 +5496,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN. - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6126,7 +6302,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6190,7 +6366,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6256,7 +6432,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example")} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6322,7 +6498,7 @@ import ( ) func main() { - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example") // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6437,7 +6613,7 @@ Name | Type | Description | Notes ## VpnTunnelTerminationsList -> PaginatedTunnelTerminationList VpnTunnelTerminationsList(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).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleN(roleN).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() +> PaginatedTunnelTerminationList VpnTunnelTerminationsList(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).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() @@ -6491,7 +6667,16 @@ func main() { outsideIpIdN := []int32{int32(123)} // []int32 | Outside IP (ID) (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | (optional) + roleEmpty := true // bool | (optional) + roleIc := []string{"Inner_example"} // []string | (optional) + roleIe := []string{"Inner_example"} // []string | (optional) + roleIew := []string{"Inner_example"} // []string | (optional) + roleIsw := []string{"Inner_example"} // []string | (optional) roleN := []string{"Inner_example"} // []string | (optional) + roleNic := []string{"Inner_example"} // []string | (optional) + roleNie := []string{"Inner_example"} // []string | (optional) + roleNiew := []string{"Inner_example"} // []string | (optional) + roleNisw := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) terminationId := []int32{int32(123)} // []int32 | (optional) @@ -6515,7 +6700,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsList(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).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleN(roleN).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() + resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsList(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).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6570,7 +6755,16 @@ Name | Type | Description | Notes **outsideIpIdN** | **[]int32** | Outside IP (ID) | **q** | **string** | Search | **role** | **[]string** | | + **roleEmpty** | **bool** | | + **roleIc** | **[]string** | | + **roleIe** | **[]string** | | + **roleIew** | **[]string** | | + **roleIsw** | **[]string** | | **roleN** | **[]string** | | + **roleNic** | **[]string** | | + **roleNie** | **[]string** | | + **roleNiew** | **[]string** | | + **roleNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | **terminationId** | **[]int32** | | @@ -6774,7 +6968,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this tunnel termination. - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example") // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6845,7 +7039,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6909,7 +7103,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6975,7 +7169,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7156,7 +7350,7 @@ Name | Type | Description | Notes ## VpnTunnelsList -> PaginatedTunnelList VpnTunnelsList(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).Encapsulation(encapsulation).EncapsulationN(encapsulationN).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).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).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedTunnelList VpnTunnelsList(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).Encapsulation(encapsulation).EncapsulationEmpty(encapsulationEmpty).EncapsulationIc(encapsulationIc).EncapsulationIe(encapsulationIe).EncapsulationIew(encapsulationIew).EncapsulationIsw(encapsulationIsw).EncapsulationN(encapsulationN).EncapsulationNic(encapsulationNic).EncapsulationNie(encapsulationNie).EncapsulationNiew(encapsulationNiew).EncapsulationNisw(encapsulationNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -7196,7 +7390,16 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) encapsulation := []string{"Inner_example"} // []string | (optional) + encapsulationEmpty := true // bool | (optional) + encapsulationIc := []string{"Inner_example"} // []string | (optional) + encapsulationIe := []string{"Inner_example"} // []string | (optional) + encapsulationIew := []string{"Inner_example"} // []string | (optional) + encapsulationIsw := []string{"Inner_example"} // []string | (optional) encapsulationN := []string{"Inner_example"} // []string | (optional) + encapsulationNic := []string{"Inner_example"} // []string | (optional) + encapsulationNie := []string{"Inner_example"} // []string | (optional) + encapsulationNiew := []string{"Inner_example"} // []string | (optional) + encapsulationNisw := []string{"Inner_example"} // []string | (optional) group := []string{"Inner_example"} // []string | Tunnel group (slug) (optional) groupN := []string{"Inner_example"} // []string | Tunnel group (slug) (optional) groupId := []*int32{int32(123)} // []*int32 | Tunnel group (ID) (optional) @@ -7236,15 +7439,24 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tunnelId := []int32{int32(123)} // []int32 | (optional) @@ -7258,7 +7470,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnTunnelsList(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).Encapsulation(encapsulation).EncapsulationN(encapsulationN).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).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).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnTunnelsList(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).Encapsulation(encapsulation).EncapsulationEmpty(encapsulationEmpty).EncapsulationIc(encapsulationIc).EncapsulationIe(encapsulationIe).EncapsulationIew(encapsulationIew).EncapsulationIsw(encapsulationIsw).EncapsulationN(encapsulationN).EncapsulationNic(encapsulationNic).EncapsulationNie(encapsulationNie).EncapsulationNiew(encapsulationNiew).EncapsulationNisw(encapsulationNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7299,7 +7511,16 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **encapsulation** | **[]string** | | + **encapsulationEmpty** | **bool** | | + **encapsulationIc** | **[]string** | | + **encapsulationIe** | **[]string** | | + **encapsulationIew** | **[]string** | | + **encapsulationIsw** | **[]string** | | **encapsulationN** | **[]string** | | + **encapsulationNic** | **[]string** | | + **encapsulationNie** | **[]string** | | + **encapsulationNiew** | **[]string** | | + **encapsulationNisw** | **[]string** | | **group** | **[]string** | Tunnel group (slug) | **groupN** | **[]string** | Tunnel group (slug) | **groupId** | **[]int32** | Tunnel group (ID) | @@ -7339,15 +7560,24 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **tunnelId** | **[]int32** | | diff --git a/docs/Webhook.md b/docs/Webhook.md index 146995485d..72b27cd753 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -19,14 +20,14 @@ Name | Type | Description | Notes **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] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewWebhook -`func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook` +`func NewWebhook(id int32, url string, display string, name string, payloadUrl string, ) *Webhook` NewWebhook instantiates a new Webhook object This constructor will assign default values to properties that have it defined, @@ -81,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Webhook) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Webhook) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Webhook) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Webhook) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Webhook) GetDisplay() string` @@ -420,6 +446,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Webhook) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -450,6 +481,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Webhook) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/WebhookRequest 2.md b/docs/WebhookRequest 2.md new file mode 100644 index 0000000000..c5ca3a92c0 --- /dev/null +++ b/docs/WebhookRequest 2.md @@ -0,0 +1,342 @@ +# WebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**PayloadUrl** | **string** | 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. | +**HttpMethod** | Pointer to [**PatchedWebhookRequestHttpMethod**](PatchedWebhookRequestHttpMethod.md) | | [optional] +**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 <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] +**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 + +### NewWebhookRequest + +`func NewWebhookRequest(name string, payloadUrl string, ) *WebhookRequest` + +NewWebhookRequest instantiates a new WebhookRequest 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 + +### NewWebhookRequestWithDefaults + +`func NewWebhookRequestWithDefaults() *WebhookRequest` + +NewWebhookRequestWithDefaults instantiates a new WebhookRequest 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 *WebhookRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WebhookRequest) 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 *WebhookRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *WebhookRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WebhookRequest) 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 *WebhookRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WebhookRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPayloadUrl + +`func (o *WebhookRequest) GetPayloadUrl() string` + +GetPayloadUrl returns the PayloadUrl field if non-nil, zero value otherwise. + +### GetPayloadUrlOk + +`func (o *WebhookRequest) GetPayloadUrlOk() (*string, bool)` + +GetPayloadUrlOk returns a tuple with the PayloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayloadUrl + +`func (o *WebhookRequest) SetPayloadUrl(v string)` + +SetPayloadUrl sets PayloadUrl field to given value. + + +### GetHttpMethod + +`func (o *WebhookRequest) GetHttpMethod() PatchedWebhookRequestHttpMethod` + +GetHttpMethod returns the HttpMethod field if non-nil, zero value otherwise. + +### GetHttpMethodOk + +`func (o *WebhookRequest) GetHttpMethodOk() (*PatchedWebhookRequestHttpMethod, bool)` + +GetHttpMethodOk returns a tuple with the HttpMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpMethod + +`func (o *WebhookRequest) SetHttpMethod(v PatchedWebhookRequestHttpMethod)` + +SetHttpMethod sets HttpMethod field to given value. + +### HasHttpMethod + +`func (o *WebhookRequest) HasHttpMethod() bool` + +HasHttpMethod returns a boolean if a field has been set. + +### GetHttpContentType + +`func (o *WebhookRequest) GetHttpContentType() string` + +GetHttpContentType returns the HttpContentType field if non-nil, zero value otherwise. + +### GetHttpContentTypeOk + +`func (o *WebhookRequest) GetHttpContentTypeOk() (*string, bool)` + +GetHttpContentTypeOk returns a tuple with the HttpContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpContentType + +`func (o *WebhookRequest) SetHttpContentType(v string)` + +SetHttpContentType sets HttpContentType field to given value. + +### HasHttpContentType + +`func (o *WebhookRequest) HasHttpContentType() bool` + +HasHttpContentType returns a boolean if a field has been set. + +### GetAdditionalHeaders + +`func (o *WebhookRequest) GetAdditionalHeaders() string` + +GetAdditionalHeaders returns the AdditionalHeaders field if non-nil, zero value otherwise. + +### GetAdditionalHeadersOk + +`func (o *WebhookRequest) GetAdditionalHeadersOk() (*string, bool)` + +GetAdditionalHeadersOk returns a tuple with the AdditionalHeaders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalHeaders + +`func (o *WebhookRequest) SetAdditionalHeaders(v string)` + +SetAdditionalHeaders sets AdditionalHeaders field to given value. + +### HasAdditionalHeaders + +`func (o *WebhookRequest) HasAdditionalHeaders() bool` + +HasAdditionalHeaders returns a boolean if a field has been set. + +### GetBodyTemplate + +`func (o *WebhookRequest) GetBodyTemplate() string` + +GetBodyTemplate returns the BodyTemplate field if non-nil, zero value otherwise. + +### GetBodyTemplateOk + +`func (o *WebhookRequest) GetBodyTemplateOk() (*string, bool)` + +GetBodyTemplateOk returns a tuple with the BodyTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBodyTemplate + +`func (o *WebhookRequest) SetBodyTemplate(v string)` + +SetBodyTemplate sets BodyTemplate field to given value. + +### HasBodyTemplate + +`func (o *WebhookRequest) HasBodyTemplate() bool` + +HasBodyTemplate returns a boolean if a field has been set. + +### GetSecret + +`func (o *WebhookRequest) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *WebhookRequest) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *WebhookRequest) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *WebhookRequest) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetSslVerification + +`func (o *WebhookRequest) GetSslVerification() bool` + +GetSslVerification returns the SslVerification field if non-nil, zero value otherwise. + +### GetSslVerificationOk + +`func (o *WebhookRequest) GetSslVerificationOk() (*bool, bool)` + +GetSslVerificationOk returns a tuple with the SslVerification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslVerification + +`func (o *WebhookRequest) SetSslVerification(v bool)` + +SetSslVerification sets SslVerification field to given value. + +### HasSslVerification + +`func (o *WebhookRequest) HasSslVerification() bool` + +HasSslVerification returns a boolean if a field has been set. + +### GetCaFilePath + +`func (o *WebhookRequest) GetCaFilePath() string` + +GetCaFilePath returns the CaFilePath field if non-nil, zero value otherwise. + +### GetCaFilePathOk + +`func (o *WebhookRequest) GetCaFilePathOk() (*string, bool)` + +GetCaFilePathOk returns a tuple with the CaFilePath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaFilePath + +`func (o *WebhookRequest) SetCaFilePath(v string)` + +SetCaFilePath sets CaFilePath field to given value. + +### HasCaFilePath + +`func (o *WebhookRequest) HasCaFilePath() bool` + +HasCaFilePath returns a boolean if a field has been set. + +### SetCaFilePathNil + +`func (o *WebhookRequest) SetCaFilePathNil(b bool)` + + SetCaFilePathNil sets the value for CaFilePath to be an explicit nil + +### UnsetCaFilePath +`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 e35e3430e9..c887fb5998 100644 --- a/docs/WirelessAPI.md +++ b/docs/WirelessAPI.md @@ -251,7 +251,7 @@ import ( ) func main() { - writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableWirelessLANGroupRequest | + writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -386,10 +386,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | (optional) - ancestorN := []int32{int32(123)} // []int32 | (optional) - ancestorId := []int32{int32(123)} // []int32 | (optional) - ancestorIdN := []int32{int32(123)} // []int32 | (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []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) @@ -481,10 +481,10 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLanGroupsL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | | - **ancestorN** | **[]int32** | | - **ancestorId** | **[]int32** | | - **ancestorIdN** | **[]int32** | | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -735,7 +735,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this wireless LAN group. - writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example", NullableInt32(123)) // WritableWirelessLANGroupRequest | + writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1117,7 +1117,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).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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() +> PaginatedWirelessLANList WirelessWirelessLansList(ctx).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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,8 +1137,17 @@ import ( ) func main() { - authCipher := []string{"Inner_example"} // []string | (optional) - authCipherN := []string{"Inner_example"} // []string | (optional) + authCipher := []*string{"Inner_example"} // []*string | (optional) + authCipherEmpty := true // bool | (optional) + authCipherIc := []*string{"Inner_example"} // []*string | (optional) + authCipherIe := []*string{"Inner_example"} // []*string | (optional) + authCipherIew := []*string{"Inner_example"} // []*string | (optional) + authCipherIsw := []*string{"Inner_example"} // []*string | (optional) + authCipherN := []*string{"Inner_example"} // []*string | (optional) + authCipherNic := []*string{"Inner_example"} // []*string | (optional) + authCipherNie := []*string{"Inner_example"} // []*string | (optional) + authCipherNiew := []*string{"Inner_example"} // []*string | (optional) + authCipherNisw := []*string{"Inner_example"} // []*string | (optional) authPsk := []string{"Inner_example"} // []string | (optional) authPskEmpty := true // bool | (optional) authPskIc := []string{"Inner_example"} // []string | (optional) @@ -1150,8 +1159,17 @@ func main() { authPskNie := []string{"Inner_example"} // []string | (optional) authPskNiew := []string{"Inner_example"} // []string | (optional) authPskNisw := []string{"Inner_example"} // []string | (optional) - authType := []string{"Inner_example"} // []string | (optional) - authTypeN := []string{"Inner_example"} // []string | (optional) + authType := []*string{"Inner_example"} // []*string | (optional) + authTypeEmpty := true // bool | (optional) + authTypeIc := []*string{"Inner_example"} // []*string | (optional) + authTypeIe := []*string{"Inner_example"} // []*string | (optional) + authTypeIew := []*string{"Inner_example"} // []*string | (optional) + authTypeIsw := []*string{"Inner_example"} // []*string | (optional) + authTypeN := []*string{"Inner_example"} // []*string | (optional) + authTypeNic := []*string{"Inner_example"} // []*string | (optional) + authTypeNie := []*string{"Inner_example"} // []*string | (optional) + authTypeNiew := []*string{"Inner_example"} // []*string | (optional) + authTypeNisw := []*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) @@ -1171,10 +1189,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | (optional) - groupN := []int32{int32(123)} // []int32 | (optional) - groupId := []int32{int32(123)} // []int32 | (optional) - groupIdN := []int32{int32(123)} // []int32 | (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1192,10 +1210,35 @@ func main() { 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 | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []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) q := "q_example" // string | Search (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (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) + scopeIdLte := []int32{int32(123)} // []int32 | (optional) + scopeIdN := []int32{int32(123)} // []int32 | (optional) + scopeType := "scopeType_example" // string | (optional) + scopeTypeN := "scopeTypeN_example" // string | (optional) + site := []string{"Inner_example"} // []string | Site (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) ssid := []string{"Inner_example"} // []string | (optional) ssidEmpty := true // bool | (optional) ssidIc := []string{"Inner_example"} // []string | (optional) @@ -1208,15 +1251,24 @@ func main() { ssidNiew := []string{"Inner_example"} // []string | (optional) ssidNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1225,7 +1277,7 @@ 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).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansList(context.Background()).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).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).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).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).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -1247,7 +1299,16 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLansListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authCipher** | **[]string** | | + **authCipherEmpty** | **bool** | | + **authCipherIc** | **[]string** | | + **authCipherIe** | **[]string** | | + **authCipherIew** | **[]string** | | + **authCipherIsw** | **[]string** | | **authCipherN** | **[]string** | | + **authCipherNic** | **[]string** | | + **authCipherNie** | **[]string** | | + **authCipherNiew** | **[]string** | | + **authCipherNisw** | **[]string** | | **authPsk** | **[]string** | | **authPskEmpty** | **bool** | | **authPskIc** | **[]string** | | @@ -1260,7 +1321,16 @@ Name | Type | Description | Notes **authPskNiew** | **[]string** | | **authPskNisw** | **[]string** | | **authType** | **[]string** | | + **authTypeEmpty** | **bool** | | + **authTypeIc** | **[]string** | | + **authTypeIe** | **[]string** | | + **authTypeIew** | **[]string** | | + **authTypeIsw** | **[]string** | | **authTypeN** | **[]string** | | + **authTypeNic** | **[]string** | | + **authTypeNie** | **[]string** | | + **authTypeNiew** | **[]string** | | + **authTypeNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1280,10 +1350,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | | - **groupN** | **[]int32** | | - **groupId** | **[]int32** | | - **groupIdN** | **[]int32** | | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -1301,10 +1371,35 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **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 | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **scopeId** | **[]int32** | | + **scopeIdEmpty** | **bool** | | + **scopeIdGt** | **[]int32** | | + **scopeIdGte** | **[]int32** | | + **scopeIdLt** | **[]int32** | | + **scopeIdLte** | **[]int32** | | + **scopeIdN** | **[]int32** | | + **scopeType** | **string** | | + **scopeTypeN** | **string** | | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | **ssid** | **[]string** | | **ssidEmpty** | **bool** | | **ssidIc** | **[]string** | | @@ -1317,15 +1412,24 @@ Name | Type | Description | Notes **ssidNiew** | **[]string** | | **ssidNisw** | **[]string** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1585,7 +1689,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1649,7 +1753,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +1819,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1781,7 +1885,7 @@ import ( ) func main() { - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1896,7 +2000,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).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).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).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() +> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).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).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1916,8 +2020,17 @@ import ( ) func main() { - authCipher := []string{"Inner_example"} // []string | (optional) - authCipherN := []string{"Inner_example"} // []string | (optional) + authCipher := []*string{"Inner_example"} // []*string | (optional) + authCipherEmpty := true // bool | (optional) + authCipherIc := []*string{"Inner_example"} // []*string | (optional) + authCipherIe := []*string{"Inner_example"} // []*string | (optional) + authCipherIew := []*string{"Inner_example"} // []*string | (optional) + authCipherIsw := []*string{"Inner_example"} // []*string | (optional) + authCipherN := []*string{"Inner_example"} // []*string | (optional) + authCipherNic := []*string{"Inner_example"} // []*string | (optional) + authCipherNie := []*string{"Inner_example"} // []*string | (optional) + authCipherNiew := []*string{"Inner_example"} // []*string | (optional) + authCipherNisw := []*string{"Inner_example"} // []*string | (optional) authPsk := []string{"Inner_example"} // []string | (optional) authPskEmpty := true // bool | (optional) authPskIc := []string{"Inner_example"} // []string | (optional) @@ -1929,8 +2042,17 @@ func main() { authPskNie := []string{"Inner_example"} // []string | (optional) authPskNiew := []string{"Inner_example"} // []string | (optional) authPskNisw := []string{"Inner_example"} // []string | (optional) - authType := []string{"Inner_example"} // []string | (optional) - authTypeN := []string{"Inner_example"} // []string | (optional) + authType := []*string{"Inner_example"} // []*string | (optional) + authTypeEmpty := true // bool | (optional) + authTypeIc := []*string{"Inner_example"} // []*string | (optional) + authTypeIe := []*string{"Inner_example"} // []*string | (optional) + authTypeIew := []*string{"Inner_example"} // []*string | (optional) + authTypeIsw := []*string{"Inner_example"} // []*string | (optional) + authTypeN := []*string{"Inner_example"} // []*string | (optional) + authTypeNic := []*string{"Inner_example"} // []*string | (optional) + authTypeNie := []*string{"Inner_example"} // []*string | (optional) + authTypeNiew := []*string{"Inner_example"} // []*string | (optional) + authTypeNisw := []*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) @@ -1950,6 +2072,14 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + distance := []float64{float64(123)} // []float64 | (optional) + distanceEmpty := true // bool | (optional) + distanceGt := []float64{float64(123)} // []float64 | (optional) + distanceGte := []float64{float64(123)} // []float64 | (optional) + distanceLt := []float64{float64(123)} // []float64 | (optional) + distanceLte := []float64{float64(123)} // []float64 | (optional) + distanceN := []float64{float64(123)} // []float64 | (optional) + distanceUnit := openapiclient.circuits_circuits_list_distance_unit_parameter("ft") // CircuitsCircuitsListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1985,22 +2115,31 @@ func main() { ssidNiew := []string{"Inner_example"} // []string | (optional) ssidNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_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) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) 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).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).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).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() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).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).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).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).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).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, "Full HTTP response: %v\n", r) @@ -2022,7 +2161,16 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLinksListR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authCipher** | **[]string** | | + **authCipherEmpty** | **bool** | | + **authCipherIc** | **[]string** | | + **authCipherIe** | **[]string** | | + **authCipherIew** | **[]string** | | + **authCipherIsw** | **[]string** | | **authCipherN** | **[]string** | | + **authCipherNic** | **[]string** | | + **authCipherNie** | **[]string** | | + **authCipherNiew** | **[]string** | | + **authCipherNisw** | **[]string** | | **authPsk** | **[]string** | | **authPskEmpty** | **bool** | | **authPskIc** | **[]string** | | @@ -2035,7 +2183,16 @@ Name | Type | Description | Notes **authPskNiew** | **[]string** | | **authPskNisw** | **[]string** | | **authType** | **[]string** | | + **authTypeEmpty** | **bool** | | + **authTypeIc** | **[]string** | | + **authTypeIe** | **[]string** | | + **authTypeIew** | **[]string** | | + **authTypeIsw** | **[]string** | | **authTypeN** | **[]string** | | + **authTypeNic** | **[]string** | | + **authTypeNie** | **[]string** | | + **authTypeNiew** | **[]string** | | + **authTypeNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -2055,6 +2212,14 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **distance** | **[]float64** | | + **distanceEmpty** | **bool** | | + **distanceGt** | **[]float64** | | + **distanceGte** | **[]float64** | | + **distanceLt** | **[]float64** | | + **distanceLte** | **[]float64** | | + **distanceN** | **[]float64** | | + **distanceUnit** | [**CircuitsCircuitsListDistanceUnitParameter**](CircuitsCircuitsListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2090,15 +2255,24 @@ Name | Type | Description | Notes **ssidNiew** | **[]string** | | **ssidNisw** | **[]string** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]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) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2285,7 +2459,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this wireless link. - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/WirelessLAN.md b/docs/WirelessLAN.md index 8bc856e77a..e7088e509f 100644 --- a/docs/WirelessLAN.md +++ b/docs/WirelessLAN.md @@ -6,27 +6,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroup**](WirelessLANGroup.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroup**](BriefWirelessLANGroup.md) | | [optional] **Status** | Pointer to [**WirelessLANStatus**](WirelessLANStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Scope** | Pointer to **interface{}** | | [optional] [readonly] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewWirelessLAN -`func NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime, ) *WirelessLAN` +`func NewWirelessLAN(id int32, url string, display string, ssid string, ) *WirelessLAN` NewWirelessLAN instantiates a new WirelessLAN object This constructor will assign default values to properties that have it defined, @@ -81,6 +85,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *WirelessLAN) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *WirelessLAN) GetDisplay() string` @@ -148,20 +177,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLAN) GetGroup() WirelessLANGroup` +`func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool)` +`func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLAN) SetGroup(v WirelessLANGroup)` +`func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup)` SetGroup sets Group field to given value. @@ -208,20 +237,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLAN) GetVlan() VLAN` +`func (o *WirelessLAN) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLAN) GetVlanOk() (*VLAN, bool)` +`func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLAN) SetVlan(v VLAN)` +`func (o *WirelessLAN) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -241,22 +270,127 @@ HasVlan returns a boolean if a field has been set. `func (o *WirelessLAN) UnsetVlan()` UnsetVlan ensures that no value is present for Vlan, not even an explicit nil +### GetScopeType + +`func (o *WirelessLAN) GetScopeType() string` + +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. + +### GetScopeTypeOk + +`func (o *WirelessLAN) GetScopeTypeOk() (*string, bool)` + +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeType + +`func (o *WirelessLAN) SetScopeType(v string)` + +SetScopeType sets ScopeType field to given value. + +### HasScopeType + +`func (o *WirelessLAN) HasScopeType() bool` + +HasScopeType returns a boolean if a field has been set. + +### SetScopeTypeNil + +`func (o *WirelessLAN) SetScopeTypeNil(b bool)` + + SetScopeTypeNil sets the value for ScopeType to be an explicit nil + +### UnsetScopeType +`func (o *WirelessLAN) UnsetScopeType()` + +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *WirelessLAN) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *WirelessLAN) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *WirelessLAN) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *WirelessLAN) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *WirelessLAN) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *WirelessLAN) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +### GetScope + +`func (o *WirelessLAN) GetScope() interface{}` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *WirelessLAN) GetScopeOk() (*interface{}, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *WirelessLAN) SetScope(v interface{})` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *WirelessLAN) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *WirelessLAN) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *WirelessLAN) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil ### GetTenant -`func (o *WirelessLAN) GetTenant() Tenant` +`func (o *WirelessLAN) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLAN) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLAN) GetTenantOk() (*BriefTenant, 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 *WirelessLAN) SetTenant(v Tenant)` +`func (o *WirelessLAN) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -445,6 +579,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *WirelessLAN) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -475,6 +614,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *WirelessLAN) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/WirelessLANAuthCipherLabel 2.md b/docs/WirelessLANAuthCipherLabel 2.md new file mode 100644 index 0000000000..7f2359eeda --- /dev/null +++ b/docs/WirelessLANAuthCipherLabel 2.md @@ -0,0 +1,15 @@ +# WirelessLANAuthCipherLabel + +## Enum + + +* `AUTO` (value: `"Auto"`) + +* `TKIP` (value: `"TKIP"`) + +* `AES` (value: `"AES"`) + + +[[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/WirelessLANAuthType 2.md b/docs/WirelessLANAuthType 2.md new file mode 100644 index 0000000000..d64e962d38 --- /dev/null +++ b/docs/WirelessLANAuthType 2.md @@ -0,0 +1,82 @@ +# WirelessLANAuthType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] +**Label** | Pointer to [**WirelessLANAuthTypeLabel**](WirelessLANAuthTypeLabel.md) | | [optional] + +## Methods + +### NewWirelessLANAuthType + +`func NewWirelessLANAuthType() *WirelessLANAuthType` + +NewWirelessLANAuthType instantiates a new WirelessLANAuthType 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 + +### NewWirelessLANAuthTypeWithDefaults + +`func NewWirelessLANAuthTypeWithDefaults() *WirelessLANAuthType` + +NewWirelessLANAuthTypeWithDefaults instantiates a new WirelessLANAuthType 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 *WirelessLANAuthType) GetValue() WirelessLANAuthTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *WirelessLANAuthType) GetValueOk() (*WirelessLANAuthTypeValue, 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 *WirelessLANAuthType) SetValue(v WirelessLANAuthTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *WirelessLANAuthType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *WirelessLANAuthType) GetLabel() WirelessLANAuthTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *WirelessLANAuthType) GetLabelOk() (*WirelessLANAuthTypeLabel, 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 *WirelessLANAuthType) SetLabel(v WirelessLANAuthTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *WirelessLANAuthType) 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/WirelessLANAuthTypeLabel 2.md b/docs/WirelessLANAuthTypeLabel 2.md new file mode 100644 index 0000000000..bbe49e67ec --- /dev/null +++ b/docs/WirelessLANAuthTypeLabel 2.md @@ -0,0 +1,17 @@ +# WirelessLANAuthTypeLabel + +## Enum + + +* `OPEN` (value: `"Open"`) + +* `WEP` (value: `"WEP"`) + +* `WPA_PERSONAL__PSK` (value: `"WPA Personal (PSK)"`) + +* `WPA_ENTERPRISE` (value: `"WPA Enterprise"`) + + +[[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/WirelessLANGroup.md b/docs/WirelessLANGroup.md index aae3009eb4..b99e6ec527 100644 --- a/docs/WirelessLANGroup.md +++ b/docs/WirelessLANGroup.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Parent** | Pointer to [**NullableNestedWirelessLANGroup**](NestedWirelessLANGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **WirelesslanCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] @@ -72,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *WirelessLANGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *WirelessLANGroup) GetDisplay() string` @@ -132,6 +163,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetParent + +`func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *WirelessLANGroup) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *WirelessLANGroup) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *WirelessLANGroup) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetDescription `func (o *WirelessLANGroup) GetDescription() string` @@ -157,6 +223,126 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *WirelessLANGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WirelessLANGroup) 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 *WirelessLANGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WirelessLANGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WirelessLANGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WirelessLANGroup) 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 *WirelessLANGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WirelessLANGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *WirelessLANGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *WirelessLANGroup) 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 *WirelessLANGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + +### HasCreated + +`func (o *WirelessLANGroup) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *WirelessLANGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *WirelessLANGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *WirelessLANGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *WirelessLANGroup) 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 *WirelessLANGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *WirelessLANGroup) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### SetLastUpdatedNil + +`func (o *WirelessLANGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *WirelessLANGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetWirelesslanCount `func (o *WirelessLANGroup) GetWirelesslanCount() int32` diff --git a/docs/WirelessLANRequest.md b/docs/WirelessLANRequest.md index 84671d6645..976fa6ef8a 100644 --- a/docs/WirelessLANRequest.md +++ b/docs/WirelessLANRequest.md @@ -6,10 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +85,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +145,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLANRequest) GetVlan() VLANRequest` +`func (o *WirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -176,22 +178,92 @@ HasVlan returns a boolean if a field has been set. `func (o *WirelessLANRequest) UnsetVlan()` UnsetVlan ensures that no value is present for Vlan, not even an explicit nil +### GetScopeType + +`func (o *WirelessLANRequest) GetScopeType() string` + +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. + +### GetScopeTypeOk + +`func (o *WirelessLANRequest) GetScopeTypeOk() (*string, bool)` + +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeType + +`func (o *WirelessLANRequest) SetScopeType(v string)` + +SetScopeType sets ScopeType field to given value. + +### HasScopeType + +`func (o *WirelessLANRequest) HasScopeType() bool` + +HasScopeType returns a boolean if a field has been set. + +### SetScopeTypeNil + +`func (o *WirelessLANRequest) SetScopeTypeNil(b bool)` + + SetScopeTypeNil sets the value for ScopeType to be an explicit nil + +### UnsetScopeType +`func (o *WirelessLANRequest) UnsetScopeType()` + +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *WirelessLANRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *WirelessLANRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *WirelessLANRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *WirelessLANRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *WirelessLANRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *WirelessLANRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetTenant -`func (o *WirelessLANRequest) GetTenant() TenantRequest` +`func (o *WirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, 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 *WirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLANStatusLabel 2.md b/docs/WirelessLANStatusLabel 2.md new file mode 100644 index 0000000000..000fcd7004 --- /dev/null +++ b/docs/WirelessLANStatusLabel 2.md @@ -0,0 +1,17 @@ +# WirelessLANStatusLabel + +## Enum + + +* `ACTIVE` (value: `"Active"`) + +* `RESERVED` (value: `"Reserved"`) + +* `DISABLED` (value: `"Disabled"`) + +* `DEPRECATED` (value: `"Deprecated"`) + + +[[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/WirelessLANStatusValue 2.md b/docs/WirelessLANStatusValue 2.md new file mode 100644 index 0000000000..72bea0a510 --- /dev/null +++ b/docs/WirelessLANStatusValue 2.md @@ -0,0 +1,19 @@ +# WirelessLANStatusValue + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `RESERVED` (value: `"reserved"`) + +* `DISABLED` (value: `"disabled"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `EMPTY` (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/WirelessLink.md b/docs/WirelessLink.md index 9f446e21f7..ca0b9231c1 100644 --- a/docs/WirelessLink.md +++ b/docs/WirelessLink.md @@ -6,27 +6,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**InterfaceA** | [**Interface**](Interface.md) | | -**InterfaceB** | [**Interface**](Interface.md) | | +**InterfaceA** | [**BriefInterface**](BriefInterface.md) | | +**InterfaceB** | [**BriefInterface**](BriefInterface.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**WirelessLinkStatus**](WirelessLinkStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableCircuitDistanceUnit**](CircuitDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] ## Methods ### NewWirelessLink -`func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` +`func NewWirelessLink(id int32, url string, display string, interfaceA BriefInterface, interfaceB BriefInterface, ) *WirelessLink` NewWirelessLink instantiates a new WirelessLink object This constructor will assign default values to properties that have it defined, @@ -81,6 +84,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *WirelessLink) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *WirelessLink) GetDisplay() string` @@ -103,40 +131,40 @@ SetDisplay sets Display field to given value. ### GetInterfaceA -`func (o *WirelessLink) GetInterfaceA() Interface` +`func (o *WirelessLink) GetInterfaceA() BriefInterface` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLink) SetInterfaceA(v Interface)` +`func (o *WirelessLink) SetInterfaceA(v BriefInterface)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLink) GetInterfaceB() Interface` +`func (o *WirelessLink) GetInterfaceB() BriefInterface` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLink) SetInterfaceB(v Interface)` +`func (o *WirelessLink) SetInterfaceB(v BriefInterface)` SetInterfaceB sets InterfaceB field to given value. @@ -168,20 +196,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLink) GetStatus() WirelessLinkStatus` +`func (o *WirelessLink) GetStatus() CableStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool)` +`func (o *WirelessLink) GetStatusOk() (*CableStatus, 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 *WirelessLink) SetStatus(v WirelessLinkStatus)` +`func (o *WirelessLink) SetStatus(v CableStatus)` SetStatus sets Status field to given value. @@ -193,20 +221,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLink) GetTenant() Tenant` +`func (o *WirelessLink) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLink) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLink) GetTenantOk() (*BriefTenant, 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 *WirelessLink) SetTenant(v Tenant)` +`func (o *WirelessLink) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -301,6 +329,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLink) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLink) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLink) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLink) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLink) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLink) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLink) GetDistanceUnit() CircuitDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLink) GetDistanceUnitOk() (*CircuitDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLink) SetDistanceUnit(v CircuitDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLink) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLink) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLink) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLink) GetDescription() string` @@ -420,6 +518,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *WirelessLink) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -450,6 +553,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *WirelessLink) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil diff --git a/docs/WirelessLinkRequest.md b/docs/WirelessLinkRequest.md index cbb26cae56..5a76923c3b 100644 --- a/docs/WirelessLinkRequest.md +++ b/docs/WirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableCircuitRequestDistanceUnit**](CircuitRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWirelessLinkRequest -`func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WirelessLinkRequest` +`func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WirelessLinkRequest` NewWirelessLinkRequest instantiates a new WirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, 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 *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, 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 *WirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -236,6 +238,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLinkRequest) GetDistanceUnit() CircuitRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLinkRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLinkRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLinkRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLinkRequest) GetDescription() string` diff --git a/docs/WritableAggregateRequest 2.md b/docs/WritableAggregateRequest 2.md new file mode 100644 index 0000000000..169807729f --- /dev/null +++ b/docs/WritableAggregateRequest 2.md @@ -0,0 +1,248 @@ +# WritableAggregateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Prefix** | **string** | | +**Rir** | [**RIRRequest**](RIRRequest.md) | | +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**DateAdded** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableAggregateRequest + +`func NewWritableAggregateRequest(prefix string, rir RIRRequest, ) *WritableAggregateRequest` + +NewWritableAggregateRequest instantiates a new WritableAggregateRequest 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 + +### NewWritableAggregateRequestWithDefaults + +`func NewWritableAggregateRequestWithDefaults() *WritableAggregateRequest` + +NewWritableAggregateRequestWithDefaults instantiates a new WritableAggregateRequest 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 + +### GetPrefix + +`func (o *WritableAggregateRequest) GetPrefix() string` + +GetPrefix returns the Prefix field if non-nil, zero value otherwise. + +### GetPrefixOk + +`func (o *WritableAggregateRequest) GetPrefixOk() (*string, bool)` + +GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefix + +`func (o *WritableAggregateRequest) SetPrefix(v string)` + +SetPrefix sets Prefix field to given value. + + +### GetRir + +`func (o *WritableAggregateRequest) GetRir() RIRRequest` + +GetRir returns the Rir field if non-nil, zero value otherwise. + +### GetRirOk + +`func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` + +GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRir + +`func (o *WritableAggregateRequest) SetRir(v RIRRequest)` + +SetRir sets Rir field to given value. + + +### GetTenant + +`func (o *WritableAggregateRequest) GetTenant() TenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, 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 *WritableAggregateRequest) SetTenant(v TenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *WritableAggregateRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *WritableAggregateRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *WritableAggregateRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDateAdded + +`func (o *WritableAggregateRequest) GetDateAdded() string` + +GetDateAdded returns the DateAdded field if non-nil, zero value otherwise. + +### GetDateAddedOk + +`func (o *WritableAggregateRequest) GetDateAddedOk() (*string, bool)` + +GetDateAddedOk returns a tuple with the DateAdded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateAdded + +`func (o *WritableAggregateRequest) SetDateAdded(v string)` + +SetDateAdded sets DateAdded field to given value. + +### HasDateAdded + +`func (o *WritableAggregateRequest) HasDateAdded() bool` + +HasDateAdded returns a boolean if a field has been set. + +### SetDateAddedNil + +`func (o *WritableAggregateRequest) SetDateAddedNil(b bool)` + + SetDateAddedNil sets the value for DateAdded to be an explicit nil + +### UnsetDateAdded +`func (o *WritableAggregateRequest) UnsetDateAdded()` + +UnsetDateAdded ensures that no value is present for DateAdded, not even an explicit nil +### GetDescription + +`func (o *WritableAggregateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableAggregateRequest) 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 *WritableAggregateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableAggregateRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *WritableAggregateRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableAggregateRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableAggregateRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableAggregateRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableAggregateRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableAggregateRequest) 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 *WritableAggregateRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableAggregateRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableAggregateRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableAggregateRequest) 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 *WritableAggregateRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableAggregateRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableAggregateRequest.md b/docs/WritableAggregateRequest.md index 169807729f..cbcd91bcde 100644 --- a/docs/WritableAggregateRequest.md +++ b/docs/WritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableAggregateRequest -`func NewWritableAggregateRequest(prefix string, rir RIRRequest, ) *WritableAggregateRequest` +`func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest, ) *WritableAggregateRequest` NewWritableAggregateRequest instantiates a new WritableAggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *WritableAggregateRequest) GetRir() RIRRequest` +`func (o *WritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *WritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *WritableAggregateRequest) GetTenant() TenantRequest` +`func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableCableRequest.md b/docs/WritableCableRequest.md index aef093b34d..209ba8af21 100644 --- a/docs/WritableCableRequest.md +++ b/docs/WritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**NullableCableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**NullableCableRequestLengthUnit**](CableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *WritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *WritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *WritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -62,6 +62,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritableCableRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritableCableRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetATerminations `func (o *WritableCableRequest) GetATerminations() []GenericObjectRequest` @@ -114,20 +124,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, 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 *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +149,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCableRequest) GetTenant() TenantRequest` +`func (o *WritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableCableRequest) SetTenant(v TenantRequest)` +`func (o *WritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +269,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *WritableCableRequest) GetLengthUnit() CableRequestLengthUnit` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *WritableCableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *WritableCableRequest) SetLengthUnit(v CableRequestLengthUnit)` SetLengthUnit sets LengthUnit field to given value. @@ -282,6 +292,16 @@ SetLengthUnit sets LengthUnit field to given value. HasLengthUnit returns a boolean if a field has been set. +### SetLengthUnitNil + +`func (o *WritableCableRequest) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *WritableCableRequest) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *WritableCableRequest) GetDescription() string` diff --git a/docs/WritableCircuitGroupAssignmentRequest.md b/docs/WritableCircuitGroupAssignmentRequest.md new file mode 100644 index 0000000000..d3171f8fe5 --- /dev/null +++ b/docs/WritableCircuitGroupAssignmentRequest.md @@ -0,0 +1,155 @@ +# WritableCircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | +**MemberType** | **string** | | +**MemberId** | **int64** | | +**Priority** | Pointer to [**NullablePatchedWritableCircuitGroupAssignmentRequestPriority**](PatchedWritableCircuitGroupAssignmentRequestPriority.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewWritableCircuitGroupAssignmentRequest + +`func NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, memberType string, memberId int64, ) *WritableCircuitGroupAssignmentRequest` + +NewWritableCircuitGroupAssignmentRequest instantiates a new WritableCircuitGroupAssignmentRequest 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 + +### NewWritableCircuitGroupAssignmentRequestWithDefaults + +`func NewWritableCircuitGroupAssignmentRequestWithDefaults() *WritableCircuitGroupAssignmentRequest` + +NewWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new WritableCircuitGroupAssignmentRequest 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 + +### GetGroup + +`func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + + +### GetMemberType + +`func (o *WritableCircuitGroupAssignmentRequest) GetMemberType() string` + +GetMemberType returns the MemberType field if non-nil, zero value otherwise. + +### GetMemberTypeOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetMemberTypeOk() (*string, bool)` + +GetMemberTypeOk returns a tuple with the MemberType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberType + +`func (o *WritableCircuitGroupAssignmentRequest) SetMemberType(v string)` + +SetMemberType sets MemberType field to given value. + + +### GetMemberId + +`func (o *WritableCircuitGroupAssignmentRequest) GetMemberId() int64` + +GetMemberId returns the MemberId field if non-nil, zero value otherwise. + +### GetMemberIdOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetMemberIdOk() (*int64, bool)` + +GetMemberIdOk returns a tuple with the MemberId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberId + +`func (o *WritableCircuitGroupAssignmentRequest) SetMemberId(v int64)` + +SetMemberId sets MemberId field to given value. + + +### GetPriority + +`func (o *WritableCircuitGroupAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *WritableCircuitGroupAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *WritableCircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *WritableCircuitGroupAssignmentRequest) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *WritableCircuitGroupAssignmentRequest) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetTags + +`func (o *WritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableCircuitGroupAssignmentRequest) 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 *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableCircuitGroupAssignmentRequest) 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/WritableCircuitRequest.md b/docs/WritableCircuitRequest.md index 02a8ad3f77..01086f643b 100644 --- a/docs/WritableCircuitRequest.md +++ b/docs/WritableCircuitRequest.md @@ -5,24 +5,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | -**Provider** | [**ProviderRequest**](ProviderRequest.md) | | -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableCircuitRequestDistanceUnit**](CircuitRequestDistanceUnit.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewWritableCircuitRequest -`func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest, ) *WritableCircuitRequest` +`func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *WritableCircuitRequest` NewWritableCircuitRequest instantiates a new WritableCircuitRequest object This constructor will assign default values to properties that have it defined, @@ -59,40 +62,40 @@ SetCid sets Cid field to given value. ### GetProvider -`func (o *WritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *WritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. ### GetProviderAccount -`func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -114,40 +117,40 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *WritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. ### GetStatus -`func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, 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 *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -159,20 +162,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCircuitRequest) GetTenant() TenantRequest` +`func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -322,6 +325,76 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetDistance + +`func (o *WritableCircuitRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WritableCircuitRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WritableCircuitRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WritableCircuitRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WritableCircuitRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WritableCircuitRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WritableCircuitRequest) GetDistanceUnit() CircuitRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WritableCircuitRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WritableCircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WritableCircuitRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WritableCircuitRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WritableCircuitRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetComments `func (o *WritableCircuitRequest) GetComments() string` @@ -397,6 +470,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *WritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *WritableCircuitRequest) HasAssignments() bool` + +HasAssignments 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/WritableClusterRequest.md b/docs/WritableClusterRequest.md index 430b5cf501..1ad58f721d 100644 --- a/docs/WritableClusterRequest.md +++ b/docs/WritableClusterRequest.md @@ -5,11 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | | -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableClusterRequest -`func NewWritableClusterRequest(name string, type_ ClusterTypeRequest, ) *WritableClusterRequest` +`func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest, ) *WritableClusterRequest` NewWritableClusterRequest instantiates a new WritableClusterRequest object This constructor will assign default values to properties that have it defined, @@ -56,40 +57,40 @@ SetName sets Name field to given value. ### GetType -`func (o *WritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. ### GetGroup -`func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -111,20 +112,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *WritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, 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 *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -136,20 +137,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableClusterRequest) GetTenant() TenantRequest` +`func (o *WritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -169,41 +170,76 @@ HasTenant returns a boolean if a field has been set. `func (o *WritableClusterRequest) UnsetTenant()` UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetSite +### GetScopeType -`func (o *WritableClusterRequest) GetSite() SiteRequest` +`func (o *WritableClusterRequest) GetScopeType() string` -GetSite returns the Site field if non-nil, zero value otherwise. +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. -### GetSiteOk +### GetScopeTypeOk -`func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableClusterRequest) GetScopeTypeOk() (*string, bool)` -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSite +### SetScopeType -`func (o *WritableClusterRequest) SetSite(v SiteRequest)` +`func (o *WritableClusterRequest) SetScopeType(v string)` -SetSite sets Site field to given value. +SetScopeType sets ScopeType field to given value. -### HasSite +### HasScopeType -`func (o *WritableClusterRequest) HasSite() bool` +`func (o *WritableClusterRequest) HasScopeType() bool` -HasSite returns a boolean if a field has been set. +HasScopeType returns a boolean if a field has been set. -### SetSiteNil +### SetScopeTypeNil -`func (o *WritableClusterRequest) SetSiteNil(b bool)` +`func (o *WritableClusterRequest) SetScopeTypeNil(b bool)` - SetSiteNil sets the value for Site to be an explicit nil + SetScopeTypeNil sets the value for ScopeType to be an explicit nil -### UnsetSite -`func (o *WritableClusterRequest) UnsetSite()` +### UnsetScopeType +`func (o *WritableClusterRequest) UnsetScopeType()` -UnsetSite ensures that no value is present for Site, not even an explicit nil +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *WritableClusterRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *WritableClusterRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *WritableClusterRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *WritableClusterRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *WritableClusterRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *WritableClusterRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetDescription `func (o *WritableClusterRequest) GetDescription() string` diff --git a/docs/WritableConsolePortRequest.md b/docs/WritableConsolePortRequest.md index 0ba0c6885e..2daa91810c 100644 --- a/docs/WritableConsolePortRequest.md +++ b/docs/WritableConsolePortRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] **Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsolePortRequest -`func NewWritableConsolePortRequest(device DeviceRequest, name string, ) *WritableConsolePortRequest` +`func NewWritableConsolePortRequest(device BriefDeviceRequest, name string, ) *WritableConsolePortRequest` NewWritableConsolePortRequest instantiates a new WritableConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -159,6 +159,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritableConsolePortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritableConsolePortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetSpeed `func (o *WritableConsolePortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed` diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md index 3799557e89..3eea2cb45b 100644 --- a/docs/WritableConsolePortTemplateRequest.md +++ b/docs/WritableConsolePortTemplateRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortTemplateRequestType**](PatchedWritableConsolePortTemplateRequestType.md) | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set. ### GetType -`func (o *WritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue` +`func (o *WritableConsolePortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)` +`func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue)` +`func (o *WritableConsolePortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType)` SetType sets Type field to given value. @@ -170,6 +170,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritableConsolePortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritableConsolePortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetDescription `func (o *WritableConsolePortTemplateRequest) GetDescription() string` diff --git a/docs/WritableConsoleServerPortRequest.md b/docs/WritableConsoleServerPortRequest.md index 6af4a78aa1..544a07527d 100644 --- a/docs/WritableConsoleServerPortRequest.md +++ b/docs/WritableConsoleServerPortRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] **Speed** | Pointer to [**NullablePatchedWritableConsolePortRequestSpeed**](PatchedWritableConsolePortRequestSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsoleServerPortRequest -`func NewWritableConsoleServerPortRequest(device DeviceRequest, name string, ) *WritableConsoleServerPortRequest` +`func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *WritableConsoleServerPortRequest` NewWritableConsoleServerPortRequest instantiates a new WritableConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -159,6 +159,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritableConsoleServerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritableConsoleServerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetSpeed `func (o *WritableConsoleServerPortRequest) GetSpeed() PatchedWritableConsolePortRequestSpeed` diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md index e35a4b9ec4..e1aabb456c 100644 --- a/docs/WritableConsoleServerPortTemplateRequest.md +++ b/docs/WritableConsoleServerPortTemplateRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritableConsolePortTemplateRequestType**](PatchedWritableConsolePortTemplateRequestType.md) | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -147,20 +147,20 @@ HasLabel returns a boolean if a field has been set. ### GetType -`func (o *WritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue` +`func (o *WritableConsoleServerPortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue)` +`func (o *WritableConsoleServerPortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType)` SetType sets Type field to given value. @@ -170,6 +170,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritableConsoleServerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritableConsoleServerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetDescription `func (o *WritableConsoleServerPortTemplateRequest) GetDescription() string` diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md index 678cd6e277..ca55771eea 100644 --- a/docs/WritableContactAssignmentRequest.md +++ b/docs/WritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**NullablePatchedWritableCircuitGroupAssignmentRequestPriority**](PatchedWritableCircuitGroupAssignmentRequestPriority.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableContactAssignmentRequest -`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *WritableContactAssignmentRequest` +`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *WritableContactAssignmentRequest` NewWritableContactAssignmentRequest instantiates a new WritableContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *WritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, 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 *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *WritableContactAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *WritableContactAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority)` SetPriority sets Priority field to given value. @@ -151,6 +151,16 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### SetPriorityNil + +`func (o *WritableContactAssignmentRequest) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *WritableContactAssignmentRequest) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetTags `func (o *WritableContactAssignmentRequest) GetTags() []NestedTagRequest` diff --git a/docs/WritableContactGroupRequest.md b/docs/WritableContactGroupRequest.md index 473fddccc6..d338770b8d 100644 --- a/docs/WritableContactGroupRequest.md +++ b/docs/WritableContactGroupRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Parent** | **NullableInt32** | | +**Parent** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewWritableContactGroupRequest -`func NewWritableContactGroupRequest(name string, slug string, parent NullableInt32, ) *WritableContactGroupRequest` +`func NewWritableContactGroupRequest(name string, slug string, ) *WritableContactGroupRequest` NewWritableContactGroupRequest instantiates a new WritableContactGroupRequest object This constructor will assign default values to properties that have it defined, @@ -89,6 +89,11 @@ and a boolean to check if the value has been set. SetParent sets Parent field to given value. +### HasParent + +`func (o *WritableContactGroupRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. ### SetParentNil diff --git a/docs/WritableCustomFieldChoiceSetRequest.md b/docs/WritableCustomFieldChoiceSetRequest.md index 3b1e3959d3..1a8b4c8e0e 100644 --- a/docs/WritableCustomFieldChoiceSetRequest.md +++ b/docs/WritableCustomFieldChoiceSetRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**BaseChoices** | Pointer to [**PatchedWritableCustomFieldChoiceSetRequestBaseChoices**](PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md) | | [optional] +**BaseChoices** | Pointer to [**NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices**](PatchedWritableCustomFieldChoiceSetRequestBaseChoices.md) | | [optional] **ExtraChoices** | **[][]interface{}** | | **OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] @@ -99,6 +99,16 @@ SetBaseChoices sets BaseChoices field to given value. HasBaseChoices returns a boolean if a field has been set. +### SetBaseChoicesNil + +`func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoicesNil(b bool)` + + SetBaseChoicesNil sets the value for BaseChoices to be an explicit nil + +### UnsetBaseChoices +`func (o *WritableCustomFieldChoiceSetRequest) UnsetBaseChoices()` + +UnsetBaseChoices ensures that no value is present for BaseChoices, not even an explicit nil ### GetExtraChoices `func (o *WritableCustomFieldChoiceSetRequest) GetExtraChoices() [][]interface{}` diff --git a/docs/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md index f82e51b730..2e40f45584 100644 --- a/docs/WritableCustomFieldRequest.md +++ b/docs/WritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **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] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned 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 [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (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 **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | 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] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -244,6 +246,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *WritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *WritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *WritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *WritableCustomFieldRequest) GetSearchWeight() int32` @@ -404,6 +431,41 @@ HasDefault returns a boolean if a field has been set. `func (o *WritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *WritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *WritableCustomFieldRequest) GetWeight() int32` @@ -526,20 +588,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` 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. ### SetChoiceSet -`func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/WritableDataSourceRequest.md b/docs/WritableDataSourceRequest.md index 02b6809110..aa37a1cc4a 100644 --- a/docs/WritableDataSourceRequest.md +++ b/docs/WritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *WritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *WritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *WritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *WritableDataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *WritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/WritableDeviceTypeRequest.md b/docs/WritableDeviceTypeRequest.md index 14fb745558..0accf305d8 100644 --- a/docs/WritableDeviceTypeRequest.md +++ b/docs/WritableDeviceTypeRequest.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] **UHeight** | Pointer to **float64** | | [optional] [default to 1.0] **ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] **IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] -**SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] -**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] +**SubdeviceRole** | Pointer to [**NullableParentChildStatus1**](ParentChildStatus1.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewWritableDeviceTypeRequest -`func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` +`func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` NewWritableDeviceTypeRequest instantiates a new WritableDeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -44,40 +44,40 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. ### GetDefaultPlatform -`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -262,22 +262,32 @@ SetSubdeviceRole sets SubdeviceRole field to given value. HasSubdeviceRole returns a boolean if a field has been set. +### SetSubdeviceRoleNil + +`func (o *WritableDeviceTypeRequest) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *WritableDeviceTypeRequest) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil ### GetAirflow -`func (o *WritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue` +`func (o *WritableDeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow` GetAirflow returns the Airflow field if non-nil, zero value otherwise. ### GetAirflowOk -`func (o *WritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool)` +`func (o *WritableDeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAirflow -`func (o *WritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue)` +`func (o *WritableDeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)` SetAirflow sets Airflow field to given value. @@ -287,6 +297,16 @@ SetAirflow sets Airflow field to given value. HasAirflow returns a boolean if a field has been set. +### SetAirflowNil + +`func (o *WritableDeviceTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *WritableDeviceTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetWeight `func (o *WritableDeviceTypeRequest) GetWeight() float64` @@ -324,20 +344,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -347,6 +367,16 @@ SetWeightUnit sets WeightUnit field to given value. HasWeightUnit returns a boolean if a field has been set. +### SetWeightUnitNil + +`func (o *WritableDeviceTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *WritableDeviceTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetFrontImage `func (o *WritableDeviceTypeRequest) GetFrontImage() *os.File` diff --git a/docs/WritableDeviceWithConfigContextRequest 2.md b/docs/WritableDeviceWithConfigContextRequest 2.md new file mode 100644 index 0000000000..0935ed3569 --- /dev/null +++ b/docs/WritableDeviceWithConfigContextRequest 2.md @@ -0,0 +1,944 @@ +# WritableDeviceWithConfigContextRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Site** | [**SiteRequest**](SiteRequest.md) | | +**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Position** | Pointer to **NullableFloat64** | | [optional] +**Face** | [**RackFace1**](RackFace1.md) | | +**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 [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] +**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.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 [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**LocalContextData** | Pointer to **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] + +## Methods + +### NewWritableDeviceWithConfigContextRequest + +`func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` + +NewWritableDeviceWithConfigContextRequest instantiates a new WritableDeviceWithConfigContextRequest 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 + +### NewWritableDeviceWithConfigContextRequestWithDefaults + +`func NewWritableDeviceWithConfigContextRequestWithDefaults() *WritableDeviceWithConfigContextRequest` + +NewWritableDeviceWithConfigContextRequestWithDefaults instantiates a new WritableDeviceWithConfigContextRequest 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 *WritableDeviceWithConfigContextRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WritableDeviceWithConfigContextRequest) 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 *WritableDeviceWithConfigContextRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *WritableDeviceWithConfigContextRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *WritableDeviceWithConfigContextRequest) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *WritableDeviceWithConfigContextRequest) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDeviceType + +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + + +### GetRole + +`func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, 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 *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` + +SetRole sets Role field to given value. + + +### GetTenant + +`func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, 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 *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *WritableDeviceWithConfigContextRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *WritableDeviceWithConfigContextRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetPlatform + +`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### SetPlatformNil + +`func (o *WritableDeviceWithConfigContextRequest) SetPlatformNil(b bool)` + + SetPlatformNil sets the value for Platform to be an explicit nil + +### UnsetPlatform +`func (o *WritableDeviceWithConfigContextRequest) UnsetPlatform()` + +UnsetPlatform ensures that no value is present for Platform, not even an explicit nil +### GetSerial + +`func (o *WritableDeviceWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *WritableDeviceWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *WritableDeviceWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *WritableDeviceWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *WritableDeviceWithConfigContextRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *WritableDeviceWithConfigContextRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *WritableDeviceWithConfigContextRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *WritableDeviceWithConfigContextRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *WritableDeviceWithConfigContextRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetSite + +`func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *WritableDeviceWithConfigContextRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *WritableDeviceWithConfigContextRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetRack + +`func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest` + +GetRack returns the Rack field if non-nil, zero value otherwise. + +### GetRackOk + +`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` + +GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRack + +`func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` + +SetRack sets Rack field to given value. + +### HasRack + +`func (o *WritableDeviceWithConfigContextRequest) HasRack() bool` + +HasRack returns a boolean if a field has been set. + +### SetRackNil + +`func (o *WritableDeviceWithConfigContextRequest) SetRackNil(b bool)` + + SetRackNil sets the value for Rack to be an explicit nil + +### UnsetRack +`func (o *WritableDeviceWithConfigContextRequest) UnsetRack()` + +UnsetRack ensures that no value is present for Rack, not even an explicit nil +### GetPosition + +`func (o *WritableDeviceWithConfigContextRequest) GetPosition() float64` + +GetPosition returns the Position field if non-nil, zero value otherwise. + +### GetPositionOk + +`func (o *WritableDeviceWithConfigContextRequest) GetPositionOk() (*float64, bool)` + +GetPositionOk returns a tuple with the Position field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPosition + +`func (o *WritableDeviceWithConfigContextRequest) SetPosition(v float64)` + +SetPosition sets Position field to given value. + +### HasPosition + +`func (o *WritableDeviceWithConfigContextRequest) HasPosition() bool` + +HasPosition returns a boolean if a field has been set. + +### SetPositionNil + +`func (o *WritableDeviceWithConfigContextRequest) SetPositionNil(b bool)` + + SetPositionNil sets the value for Position to be an explicit nil + +### UnsetPosition +`func (o *WritableDeviceWithConfigContextRequest) UnsetPosition()` + +UnsetPosition ensures that no value is present for Position, not even an explicit nil +### GetFace + +`func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace1` + +GetFace returns the Face field if non-nil, zero value otherwise. + +### GetFaceOk + +`func (o *WritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace1, bool)` + +GetFaceOk returns a tuple with the Face field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFace + +`func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace1)` + +SetFace sets Face field to given value. + + +### 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() DeviceStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WritableDeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, 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 *WritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *WritableDeviceWithConfigContextRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAirflow + +`func (o *WritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableDeviceWithConfigContextRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### GetPrimaryIp4 + +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` + +GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. + +### GetPrimaryIp4Ok + +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` + +GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryIp4 + +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` + +SetPrimaryIp4 sets PrimaryIp4 field to given value. + +### HasPrimaryIp4 + +`func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool` + +HasPrimaryIp4 returns a boolean if a field has been set. + +### SetPrimaryIp4Nil + +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil(b bool)` + + SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil + +### UnsetPrimaryIp4 +`func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp4()` + +UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil +### GetPrimaryIp6 + +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` + +GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. + +### GetPrimaryIp6Ok + +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` + +GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryIp6 + +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` + +SetPrimaryIp6 sets PrimaryIp6 field to given value. + +### HasPrimaryIp6 + +`func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool` + +HasPrimaryIp6 returns a boolean if a field has been set. + +### SetPrimaryIp6Nil + +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil(b bool)` + + SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil + +### UnsetPrimaryIp6 +`func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6()` + +UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil +### GetOobIp + +`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` + +GetOobIp returns the OobIp field if non-nil, zero value otherwise. + +### GetOobIpOk + +`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, 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 IPAddressRequest)` + +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() ClusterRequest` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### SetClusterNil + +`func (o *WritableDeviceWithConfigContextRequest) SetClusterNil(b bool)` + + SetClusterNil sets the value for Cluster to be an explicit nil + +### UnsetCluster +`func (o *WritableDeviceWithConfigContextRequest) UnsetCluster()` + +UnsetCluster ensures that no value is present for Cluster, not even an explicit nil +### GetVirtualChassis + +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` + +GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. + +### GetVirtualChassisOk + +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` + +GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualChassis + +`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` + +SetVirtualChassis sets VirtualChassis field to given value. + +### HasVirtualChassis + +`func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool` + +HasVirtualChassis returns a boolean if a field has been set. + +### SetVirtualChassisNil + +`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassisNil(b bool)` + + SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil + +### UnsetVirtualChassis +`func (o *WritableDeviceWithConfigContextRequest) UnsetVirtualChassis()` + +UnsetVirtualChassis ensures that no value is present for VirtualChassis, not even an explicit nil +### GetVcPosition + +`func (o *WritableDeviceWithConfigContextRequest) GetVcPosition() int32` + +GetVcPosition returns the VcPosition field if non-nil, zero value otherwise. + +### GetVcPositionOk + +`func (o *WritableDeviceWithConfigContextRequest) GetVcPositionOk() (*int32, bool)` + +GetVcPositionOk returns a tuple with the VcPosition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVcPosition + +`func (o *WritableDeviceWithConfigContextRequest) SetVcPosition(v int32)` + +SetVcPosition sets VcPosition field to given value. + +### HasVcPosition + +`func (o *WritableDeviceWithConfigContextRequest) HasVcPosition() bool` + +HasVcPosition returns a boolean if a field has been set. + +### SetVcPositionNil + +`func (o *WritableDeviceWithConfigContextRequest) SetVcPositionNil(b bool)` + + SetVcPositionNil sets the value for VcPosition to be an explicit nil + +### UnsetVcPosition +`func (o *WritableDeviceWithConfigContextRequest) UnsetVcPosition()` + +UnsetVcPosition ensures that no value is present for VcPosition, not even an explicit nil +### GetVcPriority + +`func (o *WritableDeviceWithConfigContextRequest) GetVcPriority() int32` + +GetVcPriority returns the VcPriority field if non-nil, zero value otherwise. + +### GetVcPriorityOk + +`func (o *WritableDeviceWithConfigContextRequest) GetVcPriorityOk() (*int32, bool)` + +GetVcPriorityOk returns a tuple with the VcPriority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVcPriority + +`func (o *WritableDeviceWithConfigContextRequest) SetVcPriority(v int32)` + +SetVcPriority sets VcPriority field to given value. + +### HasVcPriority + +`func (o *WritableDeviceWithConfigContextRequest) HasVcPriority() bool` + +HasVcPriority returns a boolean if a field has been set. + +### SetVcPriorityNil + +`func (o *WritableDeviceWithConfigContextRequest) SetVcPriorityNil(b bool)` + + SetVcPriorityNil sets the value for VcPriority to be an explicit nil + +### UnsetVcPriority +`func (o *WritableDeviceWithConfigContextRequest) UnsetVcPriority()` + +UnsetVcPriority ensures that no value is present for VcPriority, not even an explicit nil +### GetDescription + +`func (o *WritableDeviceWithConfigContextRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableDeviceWithConfigContextRequest) 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 *WritableDeviceWithConfigContextRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableDeviceWithConfigContextRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *WritableDeviceWithConfigContextRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableDeviceWithConfigContextRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableDeviceWithConfigContextRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableDeviceWithConfigContextRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetConfigTemplate + +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, 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 ConfigTemplateRequest)` + +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() interface{}` + +GetLocalContextData returns the LocalContextData field if non-nil, zero value otherwise. + +### GetLocalContextDataOk + +`func (o *WritableDeviceWithConfigContextRequest) GetLocalContextDataOk() (*interface{}, bool)` + +GetLocalContextDataOk returns a tuple with the LocalContextData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalContextData + +`func (o *WritableDeviceWithConfigContextRequest) SetLocalContextData(v interface{})` + +SetLocalContextData sets LocalContextData field to given value. + +### HasLocalContextData + +`func (o *WritableDeviceWithConfigContextRequest) HasLocalContextData() bool` + +HasLocalContextData returns a boolean if a field has been set. + +### SetLocalContextDataNil + +`func (o *WritableDeviceWithConfigContextRequest) SetLocalContextDataNil(b bool)` + + SetLocalContextDataNil sets the value for LocalContextData to be an explicit nil + +### UnsetLocalContextData +`func (o *WritableDeviceWithConfigContextRequest) UnsetLocalContextData()` + +UnsetLocalContextData ensures that no value is present for LocalContextData, not even an explicit nil +### GetTags + +`func (o *WritableDeviceWithConfigContextRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableDeviceWithConfigContextRequest) 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 *WritableDeviceWithConfigContextRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableDeviceWithConfigContextRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableDeviceWithConfigContextRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableDeviceWithConfigContextRequest) 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 *WritableDeviceWithConfigContextRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableDeviceWithConfigContextRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md index 0935ed3569..fb4b26840a 100644 --- a/docs/WritableDeviceWithConfigContextRequest.md +++ b/docs/WritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] -**Face** | [**RackFace1**](RackFace1.md) | | +**Face** | Pointer to [**NullableRackFace1**](RackFace1.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] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] -**Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.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 [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **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] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewWritableDeviceWithConfigContextRequest -`func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` +`func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, ) *WritableDeviceWithConfigContextRequest` NewWritableDeviceWithConfigContextRequest instantiates a new WritableDeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, 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 *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -402,7 +402,22 @@ and a boolean to check if the value has been set. SetFace sets Face field to given value. +### HasFace +`func (o *WritableDeviceWithConfigContextRequest) HasFace() bool` + +HasFace returns a boolean if a field has been set. + +### SetFaceNil + +`func (o *WritableDeviceWithConfigContextRequest) SetFaceNil(b bool)` + + SetFaceNil sets the value for Face to be an explicit nil + +### UnsetFace +`func (o *WritableDeviceWithConfigContextRequest) UnsetFace()` + +UnsetFace ensures that no value is present for Face, not even an explicit nil ### GetLatitude `func (o *WritableDeviceWithConfigContextRequest) GetLatitude() float64` @@ -500,20 +515,20 @@ HasStatus returns a boolean if a field has been set. ### GetAirflow -`func (o *WritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue` +`func (o *WritableDeviceWithConfigContextRequest) GetAirflow() DeviceTypeRequestAirflow` GetAirflow returns the Airflow field if non-nil, zero value otherwise. ### GetAirflowOk -`func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAirflow -`func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue)` +`func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceTypeRequestAirflow)` SetAirflow sets Airflow field to given value. @@ -523,22 +538,32 @@ SetAirflow sets Airflow field to given value. HasAirflow returns a boolean if a field has been set. +### SetAirflowNil + +`func (o *WritableDeviceWithConfigContextRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *WritableDeviceWithConfigContextRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -560,20 +585,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -595,20 +620,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 ### GetOobIp -`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, 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 IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -630,20 +655,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -665,20 +690,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -820,20 +845,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 ConfigTemplateRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableEventRuleRequest 2.md b/docs/WritableEventRuleRequest 2.md new file mode 100644 index 0000000000..d091d02bfa --- /dev/null +++ b/docs/WritableEventRuleRequest 2.md @@ -0,0 +1,425 @@ +# WritableEventRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectTypes** | **[]string** | | +**Name** | **string** | | +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] +**ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] +**ActionObjectType** | **string** | | +**ActionObjectId** | Pointer to **NullableInt64** | | [optional] +**Description** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewWritableEventRuleRequest + +`func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest` + +NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest 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 + +### NewWritableEventRuleRequestWithDefaults + +`func NewWritableEventRuleRequestWithDefaults() *WritableEventRuleRequest` + +NewWritableEventRuleRequestWithDefaults instantiates a new WritableEventRuleRequest 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 + +### GetObjectTypes + +`func (o *WritableEventRuleRequest) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + + +### GetName + +`func (o *WritableEventRuleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetTypeCreate + +`func (o *WritableEventRuleRequest) GetTypeCreate() bool` + +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. + +### GetTypeCreateOk + +`func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` + +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeCreate + +`func (o *WritableEventRuleRequest) SetTypeCreate(v bool)` + +SetTypeCreate sets TypeCreate field to given value. + +### HasTypeCreate + +`func (o *WritableEventRuleRequest) HasTypeCreate() bool` + +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *WritableEventRuleRequest) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *WritableEventRuleRequest) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *WritableEventRuleRequest) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *WritableEventRuleRequest) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *WritableEventRuleRequest) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *WritableEventRuleRequest) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. + +### GetTypeJobStart + +`func (o *WritableEventRuleRequest) GetTypeJobStart() bool` + +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. + +### GetTypeJobStartOk + +`func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` + +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobStart + +`func (o *WritableEventRuleRequest) SetTypeJobStart(v bool)` + +SetTypeJobStart sets TypeJobStart field to given value. + +### HasTypeJobStart + +`func (o *WritableEventRuleRequest) HasTypeJobStart() bool` + +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *WritableEventRuleRequest) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *WritableEventRuleRequest) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + +### GetEnabled + +`func (o *WritableEventRuleRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *WritableEventRuleRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *WritableEventRuleRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *WritableEventRuleRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetConditions + +`func (o *WritableEventRuleRequest) GetConditions() interface{}` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *WritableEventRuleRequest) GetConditionsOk() (*interface{}, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *WritableEventRuleRequest) SetConditions(v interface{})` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *WritableEventRuleRequest) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### SetConditionsNil + +`func (o *WritableEventRuleRequest) SetConditionsNil(b bool)` + + SetConditionsNil sets the value for Conditions to be an explicit nil + +### UnsetConditions +`func (o *WritableEventRuleRequest) UnsetConditions()` + +UnsetConditions ensures that no value is present for Conditions, not even an explicit nil +### GetActionType + +`func (o *WritableEventRuleRequest) GetActionType() EventRuleActionTypeValue` + +GetActionType returns the ActionType field if non-nil, zero value otherwise. + +### GetActionTypeOk + +`func (o *WritableEventRuleRequest) GetActionTypeOk() (*EventRuleActionTypeValue, bool)` + +GetActionTypeOk returns a tuple with the ActionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionType + +`func (o *WritableEventRuleRequest) SetActionType(v EventRuleActionTypeValue)` + +SetActionType sets ActionType field to given value. + +### HasActionType + +`func (o *WritableEventRuleRequest) HasActionType() bool` + +HasActionType returns a boolean if a field has been set. + +### GetActionObjectType + +`func (o *WritableEventRuleRequest) GetActionObjectType() string` + +GetActionObjectType returns the ActionObjectType field if non-nil, zero value otherwise. + +### GetActionObjectTypeOk + +`func (o *WritableEventRuleRequest) GetActionObjectTypeOk() (*string, bool)` + +GetActionObjectTypeOk returns a tuple with the ActionObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectType + +`func (o *WritableEventRuleRequest) SetActionObjectType(v string)` + +SetActionObjectType sets ActionObjectType field to given value. + + +### GetActionObjectId + +`func (o *WritableEventRuleRequest) GetActionObjectId() int64` + +GetActionObjectId returns the ActionObjectId field if non-nil, zero value otherwise. + +### GetActionObjectIdOk + +`func (o *WritableEventRuleRequest) GetActionObjectIdOk() (*int64, bool)` + +GetActionObjectIdOk returns a tuple with the ActionObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActionObjectId + +`func (o *WritableEventRuleRequest) SetActionObjectId(v int64)` + +SetActionObjectId sets ActionObjectId field to given value. + +### HasActionObjectId + +`func (o *WritableEventRuleRequest) HasActionObjectId() bool` + +HasActionObjectId returns a boolean if a field has been set. + +### SetActionObjectIdNil + +`func (o *WritableEventRuleRequest) SetActionObjectIdNil(b bool)` + + SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil + +### UnsetActionObjectId +`func (o *WritableEventRuleRequest) UnsetActionObjectId()` + +UnsetActionObjectId ensures that no value is present for ActionObjectId, not even an explicit nil +### GetDescription + +`func (o *WritableEventRuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableEventRuleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableEventRuleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableEventRuleRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableEventRuleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableEventRuleRequest) 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 *WritableEventRuleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableEventRuleRequest) 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/WritableEventRuleRequest.md b/docs/WritableEventRuleRequest.md index d091d02bfa..bcd1ad37f2 100644 --- a/docs/WritableEventRuleRequest.md +++ b/docs/WritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableEventRuleRequest -`func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest` +`func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string, ) *WritableEventRuleRequest` NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *WritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *WritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *WritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *WritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *WritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *WritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *WritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *WritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *WritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *WritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *WritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *WritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *WritableEventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *WritableEventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *WritableEventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *WritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *WritableEventRuleRequest) GetConditions() interface{}` diff --git a/docs/WritableFrontPortRequest.md b/docs/WritableFrontPortRequest.md index 42fc878268..4c43e9ca2c 100644 --- a/docs/WritableFrontPortRequest.md +++ b/docs/WritableFrontPortRequest.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] **RearPort** | **int32** | | -**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] +**RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortRequest -`func NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` +`func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` NewWritableFrontPortRequest instantiates a new WritableFrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md index 8806917ff8..76c0c4b9f8 100644 --- a/docs/WritableFrontPortTemplateRequest.md +++ b/docs/WritableFrontPortTemplateRequest.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | -**RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | +**RearPortPosition** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods ### NewWritableFrontPortTemplateRequest -`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` +`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` NewWritableFrontPortTemplateRequest instantiates a new WritableFrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/WritableIKEPolicyRequest.md b/docs/WritableIKEPolicyRequest.md index 7be71366f7..5dc05bf5c9 100644 --- a/docs/WritableIKEPolicyRequest.md +++ b/docs/WritableIKEPolicyRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | Pointer to [**PatchedWritableIKEPolicyRequestVersion**](PatchedWritableIKEPolicyRequestVersion.md) | | [optional] -**Mode** | Pointer to [**PatchedWritableIKEPolicyRequestMode**](PatchedWritableIKEPolicyRequestMode.md) | | [optional] +**Mode** | Pointer to [**NullablePatchedWritableIKEPolicyRequestMode**](PatchedWritableIKEPolicyRequestMode.md) | | [optional] **Proposals** | Pointer to **[]int32** | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -128,6 +128,16 @@ SetMode sets Mode field to given value. HasMode returns a boolean if a field has been set. +### SetModeNil + +`func (o *WritableIKEPolicyRequest) SetModeNil(b bool)` + + SetModeNil sets the value for Mode to be an explicit nil + +### UnsetMode +`func (o *WritableIKEPolicyRequest) UnsetMode()` + +UnsetMode ensures that no value is present for Mode, not even an explicit nil ### GetProposals `func (o *WritableIKEPolicyRequest) GetProposals() []int32` diff --git a/docs/WritableIKEProposalRequest.md b/docs/WritableIKEProposalRequest.md index bfebdf2c0d..dc55a3e922 100644 --- a/docs/WritableIKEProposalRequest.md +++ b/docs/WritableIKEProposalRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | -**AuthenticationAlgorithm** | Pointer to [**PatchedWritableIKEProposalRequestAuthenticationAlgorithm**](PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm**](PatchedWritableIKEProposalRequestAuthenticationAlgorithm.md) | | [optional] **Group** | [**PatchedWritableIKEProposalRequestGroup**](PatchedWritableIKEProposalRequestGroup.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -144,6 +144,16 @@ SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. HasAuthenticationAlgorithm returns a boolean if a field has been set. +### SetAuthenticationAlgorithmNil + +`func (o *WritableIKEProposalRequest) SetAuthenticationAlgorithmNil(b bool)` + + SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil + +### UnsetAuthenticationAlgorithm +`func (o *WritableIKEProposalRequest) UnsetAuthenticationAlgorithm()` + +UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil ### GetGroup `func (o *WritableIKEProposalRequest) GetGroup() PatchedWritableIKEProposalRequestGroup` diff --git a/docs/WritableIPAddressRequest.md b/docs/WritableIPAddressRequest.md index 6eaaca69ad..0a170dad0e 100644 --- a/docs/WritableIPAddressRequest.md +++ b/docs/WritableIPAddressRequest.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] -**Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] +**Role** | Pointer to [**NullablePatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] **AssignedObjectId** | Pointer to **NullableInt64** | | [optional] **NatInside** | Pointer to **NullableInt32** | The IP for which this address is the \"outside\" IP | [optional] @@ -59,20 +59,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *WritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -94,20 +94,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -177,6 +177,16 @@ SetRole sets Role field to given value. HasRole returns a boolean if a field has been set. +### SetRoleNil + +`func (o *WritableIPAddressRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *WritableIPAddressRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetAssignedObjectType `func (o *WritableIPAddressRequest) GetAssignedObjectType() string` diff --git a/docs/WritableIPRangeRequest.md b/docs/WritableIPRangeRequest.md index 5edb8406dc..186e2cb367 100644 --- a/docs/WritableIPRangeRequest.md +++ b/docs/WritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *WritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableIPRangeRequest) GetRole() RoleRequest` +`func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, 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 *WritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableIPSecProfileRequest 2.md b/docs/WritableIPSecProfileRequest 2.md new file mode 100644 index 0000000000..f4d30c4c1d --- /dev/null +++ b/docs/WritableIPSecProfileRequest 2.md @@ -0,0 +1,218 @@ +# WritableIPSecProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | +**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | +**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableIPSecProfileRequest + +`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *WritableIPSecProfileRequest` + +NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest 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 + +### NewWritableIPSecProfileRequestWithDefaults + +`func NewWritableIPSecProfileRequestWithDefaults() *WritableIPSecProfileRequest` + +NewWritableIPSecProfileRequestWithDefaults instantiates a new WritableIPSecProfileRequest 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 *WritableIPSecProfileRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *WritableIPSecProfileRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableIPSecProfileRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMode + +`func (o *WritableIPSecProfileRequest) GetMode() IPSecProfileModeValue` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *WritableIPSecProfileRequest) GetModeOk() (*IPSecProfileModeValue, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue)` + +SetMode sets Mode field to given value. + + +### GetIkePolicy + +`func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` + +GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. + +### GetIkePolicyOk + +`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` + +GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIkePolicy + +`func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` + +SetIkePolicy sets IkePolicy field to given value. + + +### GetIpsecPolicy + +`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` + +GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. + +### GetIpsecPolicyOk + +`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` + +GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecPolicy + +`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` + +SetIpsecPolicy sets IpsecPolicy field to given value. + + +### GetComments + +`func (o *WritableIPSecProfileRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableIPSecProfileRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableIPSecProfileRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableIPSecProfileRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableIPSecProfileRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableIPSecProfileRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableIPSecProfileRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableIPSecProfileRequest) 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 *WritableIPSecProfileRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableIPSecProfileRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableIPSecProfileRequest.md b/docs/WritableIPSecProfileRequest.md index f4d30c4c1d..11cd4baa03 100644 --- a/docs/WritableIPSecProfileRequest.md +++ b/docs/WritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableIPSecProfileRequest -`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *WritableIPSecProfileRequest` +`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *WritableIPSecProfileRequest` NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/WritableIPSecProposalRequest.md b/docs/WritableIPSecProposalRequest.md index fc980c784e..ae9b145677 100644 --- a/docs/WritableIPSecProposalRequest.md +++ b/docs/WritableIPSecProposalRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**EncryptionAlgorithm** | Pointer to [**Encryption**](Encryption.md) | | [optional] -**AuthenticationAlgorithm** | Pointer to [**Authentication**](Authentication.md) | | [optional] +**EncryptionAlgorithm** | Pointer to [**NullableEncryption**](Encryption.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**NullableAuthentication**](Authentication.md) | | [optional] **SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional] **SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -103,6 +103,16 @@ SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value. HasEncryptionAlgorithm returns a boolean if a field has been set. +### SetEncryptionAlgorithmNil + +`func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithmNil(b bool)` + + SetEncryptionAlgorithmNil sets the value for EncryptionAlgorithm to be an explicit nil + +### UnsetEncryptionAlgorithm +`func (o *WritableIPSecProposalRequest) UnsetEncryptionAlgorithm()` + +UnsetEncryptionAlgorithm ensures that no value is present for EncryptionAlgorithm, not even an explicit nil ### GetAuthenticationAlgorithm `func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication` @@ -128,6 +138,16 @@ SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. HasAuthenticationAlgorithm returns a boolean if a field has been set. +### SetAuthenticationAlgorithmNil + +`func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithmNil(b bool)` + + SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil + +### UnsetAuthenticationAlgorithm +`func (o *WritableIPSecProposalRequest) UnsetAuthenticationAlgorithm()` + +UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil ### GetSaLifetimeSeconds `func (o *WritableIPSecProposalRequest) GetSaLifetimeSeconds() int32` diff --git a/docs/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md index d0870300e3..e77b6ae73a 100644 --- a/docs/WritableInterfaceRequest.md +++ b/docs/WritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -15,25 +15,27 @@ Name | Type | Description | Notes **Bridge** | Pointer to **NullableInt32** | | [optional] **Lag** | Pointer to **NullableInt32** | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddressRequest**](BriefMACAddressRequest.md) | | [optional] **Speed** | Pointer to **NullableInt32** | | [optional] **Duplex** | Pointer to [**NullableInterfaceRequestDuplex**](InterfaceRequestDuplex.md) | | [optional] **Wwn** | Pointer to **NullableString** | | [optional] **MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional] **Description** | Pointer to **string** | | [optional] -**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] -**RfChannel** | Pointer to [**WirelessChannel**](WirelessChannel.md) | | [optional] -**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] -**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] +**Mode** | Pointer to [**NullablePatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] +**RfRole** | Pointer to [**NullableWirelessRole**](WirelessRole.md) | | [optional] +**RfChannel** | Pointer to [**NullableWirelessChannel**](WirelessChannel.md) | | [optional] +**PoeMode** | Pointer to [**NullableInterfaceTemplateRequestPoeMode**](InterfaceTemplateRequestPoeMode.md) | | [optional] +**PoeType** | Pointer to [**NullableInterfaceTemplateRequestPoeType**](InterfaceTemplateRequestPoeType.md) | | [optional] **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] +**QinqSvlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicyRequest**](BriefVLANTranslationPolicyRequest.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +43,7 @@ Name | Type | Description | Notes ### NewWritableInterfaceRequest -`func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` +`func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` NewWritableInterfaceRequest instantiates a new WritableInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +60,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +105,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *WritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -366,41 +368,41 @@ HasMtu returns a boolean if a field has been set. `func (o *WritableInterfaceRequest) UnsetMtu()` UnsetMtu ensures that no value is present for Mtu, not even an explicit nil -### GetMacAddress +### GetPrimaryMacAddress -`func (o *WritableInterfaceRequest) GetMacAddress() string` +`func (o *WritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest` -GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. -### GetMacAddressOk +### GetPrimaryMacAddressOk -`func (o *WritableInterfaceRequest) GetMacAddressOk() (*string, bool)` +`func (o *WritableInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool)` -GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMacAddress +### SetPrimaryMacAddress -`func (o *WritableInterfaceRequest) SetMacAddress(v string)` +`func (o *WritableInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest)` -SetMacAddress sets MacAddress field to given value. +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. -### HasMacAddress +### HasPrimaryMacAddress -`func (o *WritableInterfaceRequest) HasMacAddress() bool` +`func (o *WritableInterfaceRequest) HasPrimaryMacAddress() bool` -HasMacAddress returns a boolean if a field has been set. +HasPrimaryMacAddress returns a boolean if a field has been set. -### SetMacAddressNil +### SetPrimaryMacAddressNil -`func (o *WritableInterfaceRequest) SetMacAddressNil(b bool)` +`func (o *WritableInterfaceRequest) SetPrimaryMacAddressNil(b bool)` - SetMacAddressNil sets the value for MacAddress to be an explicit nil + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil -### UnsetMacAddress -`func (o *WritableInterfaceRequest) UnsetMacAddress()` +### UnsetPrimaryMacAddress +`func (o *WritableInterfaceRequest) UnsetPrimaryMacAddress()` -UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil ### GetSpeed `func (o *WritableInterfaceRequest) GetSpeed() int32` @@ -581,6 +583,16 @@ SetMode sets Mode field to given value. HasMode returns a boolean if a field has been set. +### SetModeNil + +`func (o *WritableInterfaceRequest) SetModeNil(b bool)` + + SetModeNil sets the value for Mode to be an explicit nil + +### UnsetMode +`func (o *WritableInterfaceRequest) UnsetMode()` + +UnsetMode ensures that no value is present for Mode, not even an explicit nil ### GetRfRole `func (o *WritableInterfaceRequest) GetRfRole() WirelessRole` @@ -606,6 +618,16 @@ SetRfRole sets RfRole field to given value. HasRfRole returns a boolean if a field has been set. +### SetRfRoleNil + +`func (o *WritableInterfaceRequest) SetRfRoleNil(b bool)` + + SetRfRoleNil sets the value for RfRole to be an explicit nil + +### UnsetRfRole +`func (o *WritableInterfaceRequest) UnsetRfRole()` + +UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil ### GetRfChannel `func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel` @@ -631,22 +653,32 @@ SetRfChannel sets RfChannel field to given value. HasRfChannel returns a boolean if a field has been set. +### SetRfChannelNil + +`func (o *WritableInterfaceRequest) SetRfChannelNil(b bool)` + + SetRfChannelNil sets the value for RfChannel to be an explicit nil + +### UnsetRfChannel +`func (o *WritableInterfaceRequest) UnsetRfChannel()` + +UnsetRfChannel ensures that no value is present for RfChannel, not even an explicit nil ### GetPoeMode -`func (o *WritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue` +`func (o *WritableInterfaceRequest) GetPoeMode() InterfaceTemplateRequestPoeMode` GetPoeMode returns the PoeMode field if non-nil, zero value otherwise. ### GetPoeModeOk -`func (o *WritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)` +`func (o *WritableInterfaceRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool)` GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeMode -`func (o *WritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue)` +`func (o *WritableInterfaceRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode)` SetPoeMode sets PoeMode field to given value. @@ -656,22 +688,32 @@ SetPoeMode sets PoeMode field to given value. HasPoeMode returns a boolean if a field has been set. +### SetPoeModeNil + +`func (o *WritableInterfaceRequest) SetPoeModeNil(b bool)` + + SetPoeModeNil sets the value for PoeMode to be an explicit nil + +### UnsetPoeMode +`func (o *WritableInterfaceRequest) UnsetPoeMode()` + +UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil ### GetPoeType -`func (o *WritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue` +`func (o *WritableInterfaceRequest) GetPoeType() InterfaceTemplateRequestPoeType` GetPoeType returns the PoeType field if non-nil, zero value otherwise. ### GetPoeTypeOk -`func (o *WritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)` +`func (o *WritableInterfaceRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool)` GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeType -`func (o *WritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue)` +`func (o *WritableInterfaceRequest) SetPoeType(v InterfaceTemplateRequestPoeType)` SetPoeType sets PoeType field to given value. @@ -681,6 +723,16 @@ SetPoeType sets PoeType field to given value. HasPoeType returns a boolean if a field has been set. +### SetPoeTypeNil + +`func (o *WritableInterfaceRequest) SetPoeTypeNil(b bool)` + + SetPoeTypeNil sets the value for PoeType to be an explicit nil + +### UnsetPoeType +`func (o *WritableInterfaceRequest) UnsetPoeType()` + +UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil ### GetRfChannelFrequency `func (o *WritableInterfaceRequest) GetRfChannelFrequency() float64` @@ -788,20 +840,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -846,6 +898,76 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *WritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *WritableInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *WritableInterfaceRequest) SetQinqSvlan(v BriefVLANRequest)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *WritableInterfaceRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *WritableInterfaceRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *WritableInterfaceRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *WritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *WritableInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *WritableInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *WritableInterfaceRequest) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *WritableInterfaceRequest) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *WritableInterfaceRequest) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetMarkConnected `func (o *WritableInterfaceRequest) GetMarkConnected() bool` @@ -898,20 +1020,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md index e5f0f4deb0..1a795a0208 100644 --- a/docs/WritableInterfaceTemplateRequest.md +++ b/docs/WritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MgmtOnly** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] -**PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] -**PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] +**PoeMode** | Pointer to [**NullableInterfaceTemplateRequestPoeMode**](InterfaceTemplateRequestPoeMode.md) | | [optional] +**PoeType** | Pointer to [**NullableInterfaceTemplateRequestPoeType**](InterfaceTemplateRequestPoeType.md) | | [optional] +**RfRole** | Pointer to [**NullableWirelessRole**](WirelessRole.md) | | [optional] ## Methods @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -283,20 +283,20 @@ HasBridge returns a boolean if a field has been set. UnsetBridge ensures that no value is present for Bridge, not even an explicit nil ### GetPoeMode -`func (o *WritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue` +`func (o *WritableInterfaceTemplateRequest) GetPoeMode() InterfaceTemplateRequestPoeMode` GetPoeMode returns the PoeMode field if non-nil, zero value otherwise. ### GetPoeModeOk -`func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool)` +`func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool)` GetPoeModeOk returns a tuple with the PoeMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeMode -`func (o *WritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue)` +`func (o *WritableInterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode)` SetPoeMode sets PoeMode field to given value. @@ -306,22 +306,32 @@ SetPoeMode sets PoeMode field to given value. HasPoeMode returns a boolean if a field has been set. +### SetPoeModeNil + +`func (o *WritableInterfaceTemplateRequest) SetPoeModeNil(b bool)` + + SetPoeModeNil sets the value for PoeMode to be an explicit nil + +### UnsetPoeMode +`func (o *WritableInterfaceTemplateRequest) UnsetPoeMode()` + +UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil ### GetPoeType -`func (o *WritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue` +`func (o *WritableInterfaceTemplateRequest) GetPoeType() InterfaceTemplateRequestPoeType` GetPoeType returns the PoeType field if non-nil, zero value otherwise. ### GetPoeTypeOk -`func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool)` +`func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool)` GetPoeTypeOk returns a tuple with the PoeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPoeType -`func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue)` +`func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType)` SetPoeType sets PoeType field to given value. @@ -331,6 +341,16 @@ SetPoeType sets PoeType field to given value. HasPoeType returns a boolean if a field has been set. +### SetPoeTypeNil + +`func (o *WritableInterfaceTemplateRequest) SetPoeTypeNil(b bool)` + + SetPoeTypeNil sets the value for PoeType to be an explicit nil + +### UnsetPoeType +`func (o *WritableInterfaceTemplateRequest) UnsetPoeType()` + +UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil ### GetRfRole `func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole` @@ -356,6 +376,16 @@ SetRfRole sets RfRole field to given value. HasRfRole returns a boolean if a field has been set. +### SetRfRoleNil + +`func (o *WritableInterfaceTemplateRequest) SetRfRoleNil(b bool)` + + SetRfRoleNil sets the value for RfRole to be an explicit nil + +### UnsetRfRole +`func (o *WritableInterfaceTemplateRequest) 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/PatchedInventoryItemRequest.md b/docs/WritableInventoryItemRequest.md similarity index 57% rename from docs/PatchedInventoryItemRequest.md rename to docs/WritableInventoryItemRequest.md index 29a3617b6e..5e02ebcea4 100644 --- a/docs/PatchedInventoryItemRequest.md +++ b/docs/WritableInventoryItemRequest.md @@ -1,15 +1,16 @@ -# PatchedInventoryItemRequest +# WritableInventoryItemRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | | [optional] +**Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -22,455 +23,470 @@ Name | Type | Description | Notes ## Methods -### NewPatchedInventoryItemRequest +### NewWritableInventoryItemRequest -`func NewPatchedInventoryItemRequest() *PatchedInventoryItemRequest` +`func NewWritableInventoryItemRequest(device BriefDeviceRequest, name string, ) *WritableInventoryItemRequest` -NewPatchedInventoryItemRequest instantiates a new PatchedInventoryItemRequest object +NewWritableInventoryItemRequest instantiates a new WritableInventoryItemRequest 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 -### NewPatchedInventoryItemRequestWithDefaults +### NewWritableInventoryItemRequestWithDefaults -`func NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest` +`func NewWritableInventoryItemRequestWithDefaults() *WritableInventoryItemRequest` -NewPatchedInventoryItemRequestWithDefaults instantiates a new PatchedInventoryItemRequest object +NewWritableInventoryItemRequestWithDefaults instantiates a new WritableInventoryItemRequest 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 ### GetDevice -`func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest` +`func (o *WritableInventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *WritableInventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. -### HasDevice - -`func (o *PatchedInventoryItemRequest) HasDevice() bool` - -HasDevice returns a boolean if a field has been set. ### GetParent -`func (o *PatchedInventoryItemRequest) GetParent() int32` +`func (o *WritableInventoryItemRequest) GetParent() int32` GetParent returns the Parent field if non-nil, zero value otherwise. ### GetParentOk -`func (o *PatchedInventoryItemRequest) GetParentOk() (*int32, bool)` +`func (o *WritableInventoryItemRequest) GetParentOk() (*int32, bool)` GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetParent -`func (o *PatchedInventoryItemRequest) SetParent(v int32)` +`func (o *WritableInventoryItemRequest) SetParent(v int32)` SetParent sets Parent field to given value. ### HasParent -`func (o *PatchedInventoryItemRequest) HasParent() bool` +`func (o *WritableInventoryItemRequest) HasParent() bool` HasParent returns a boolean if a field has been set. ### SetParentNil -`func (o *PatchedInventoryItemRequest) SetParentNil(b bool)` +`func (o *WritableInventoryItemRequest) SetParentNil(b bool)` SetParentNil sets the value for Parent to be an explicit nil ### UnsetParent -`func (o *PatchedInventoryItemRequest) UnsetParent()` +`func (o *WritableInventoryItemRequest) UnsetParent()` UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetName -`func (o *PatchedInventoryItemRequest) GetName() string` +`func (o *WritableInventoryItemRequest) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *PatchedInventoryItemRequest) GetNameOk() (*string, bool)` +`func (o *WritableInventoryItemRequest) 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 *PatchedInventoryItemRequest) SetName(v string)` +`func (o *WritableInventoryItemRequest) SetName(v string)` SetName sets Name field to given value. -### HasName - -`func (o *PatchedInventoryItemRequest) HasName() bool` - -HasName returns a boolean if a field has been set. ### GetLabel -`func (o *PatchedInventoryItemRequest) GetLabel() string` +`func (o *WritableInventoryItemRequest) GetLabel() string` GetLabel returns the Label field if non-nil, zero value otherwise. ### GetLabelOk -`func (o *PatchedInventoryItemRequest) GetLabelOk() (*string, bool)` +`func (o *WritableInventoryItemRequest) 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 *PatchedInventoryItemRequest) SetLabel(v string)` +`func (o *WritableInventoryItemRequest) SetLabel(v string)` SetLabel sets Label field to given value. ### HasLabel -`func (o *PatchedInventoryItemRequest) HasLabel() bool` +`func (o *WritableInventoryItemRequest) HasLabel() bool` HasLabel returns a boolean if a field has been set. +### GetStatus + +`func (o *WritableInventoryItemRequest) GetStatus() InventoryItemStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WritableInventoryItemRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *WritableInventoryItemRequest) SetStatus(v InventoryItemStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *WritableInventoryItemRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + ### GetRole -`func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *WritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *WritableInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, 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 *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *WritableInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. ### HasRole -`func (o *PatchedInventoryItemRequest) HasRole() bool` +`func (o *WritableInventoryItemRequest) HasRole() bool` HasRole returns a boolean if a field has been set. ### SetRoleNil -`func (o *PatchedInventoryItemRequest) SetRoleNil(b bool)` +`func (o *WritableInventoryItemRequest) SetRoleNil(b bool)` SetRoleNil sets the value for Role to be an explicit nil ### UnsetRole -`func (o *PatchedInventoryItemRequest) UnsetRole()` +`func (o *WritableInventoryItemRequest) UnsetRole()` UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableInventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. ### HasManufacturer -`func (o *PatchedInventoryItemRequest) HasManufacturer() bool` +`func (o *WritableInventoryItemRequest) HasManufacturer() bool` HasManufacturer returns a boolean if a field has been set. ### SetManufacturerNil -`func (o *PatchedInventoryItemRequest) SetManufacturerNil(b bool)` +`func (o *WritableInventoryItemRequest) SetManufacturerNil(b bool)` SetManufacturerNil sets the value for Manufacturer to be an explicit nil ### UnsetManufacturer -`func (o *PatchedInventoryItemRequest) UnsetManufacturer()` +`func (o *WritableInventoryItemRequest) UnsetManufacturer()` UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil ### GetPartId -`func (o *PatchedInventoryItemRequest) GetPartId() string` +`func (o *WritableInventoryItemRequest) GetPartId() string` GetPartId returns the PartId field if non-nil, zero value otherwise. ### GetPartIdOk -`func (o *PatchedInventoryItemRequest) GetPartIdOk() (*string, bool)` +`func (o *WritableInventoryItemRequest) GetPartIdOk() (*string, bool)` GetPartIdOk returns a tuple with the PartId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPartId -`func (o *PatchedInventoryItemRequest) SetPartId(v string)` +`func (o *WritableInventoryItemRequest) SetPartId(v string)` SetPartId sets PartId field to given value. ### HasPartId -`func (o *PatchedInventoryItemRequest) HasPartId() bool` +`func (o *WritableInventoryItemRequest) HasPartId() bool` HasPartId returns a boolean if a field has been set. ### GetSerial -`func (o *PatchedInventoryItemRequest) GetSerial() string` +`func (o *WritableInventoryItemRequest) GetSerial() string` GetSerial returns the Serial field if non-nil, zero value otherwise. ### GetSerialOk -`func (o *PatchedInventoryItemRequest) GetSerialOk() (*string, bool)` +`func (o *WritableInventoryItemRequest) GetSerialOk() (*string, bool)` GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSerial -`func (o *PatchedInventoryItemRequest) SetSerial(v string)` +`func (o *WritableInventoryItemRequest) SetSerial(v string)` SetSerial sets Serial field to given value. ### HasSerial -`func (o *PatchedInventoryItemRequest) HasSerial() bool` +`func (o *WritableInventoryItemRequest) HasSerial() bool` HasSerial returns a boolean if a field has been set. ### GetAssetTag -`func (o *PatchedInventoryItemRequest) GetAssetTag() string` +`func (o *WritableInventoryItemRequest) GetAssetTag() string` GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. ### GetAssetTagOk -`func (o *PatchedInventoryItemRequest) GetAssetTagOk() (*string, bool)` +`func (o *WritableInventoryItemRequest) GetAssetTagOk() (*string, bool)` GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAssetTag -`func (o *PatchedInventoryItemRequest) SetAssetTag(v string)` +`func (o *WritableInventoryItemRequest) SetAssetTag(v string)` SetAssetTag sets AssetTag field to given value. ### HasAssetTag -`func (o *PatchedInventoryItemRequest) HasAssetTag() bool` +`func (o *WritableInventoryItemRequest) HasAssetTag() bool` HasAssetTag returns a boolean if a field has been set. ### SetAssetTagNil -`func (o *PatchedInventoryItemRequest) SetAssetTagNil(b bool)` +`func (o *WritableInventoryItemRequest) SetAssetTagNil(b bool)` SetAssetTagNil sets the value for AssetTag to be an explicit nil ### UnsetAssetTag -`func (o *PatchedInventoryItemRequest) UnsetAssetTag()` +`func (o *WritableInventoryItemRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetDiscovered -`func (o *PatchedInventoryItemRequest) GetDiscovered() bool` +`func (o *WritableInventoryItemRequest) GetDiscovered() bool` GetDiscovered returns the Discovered field if non-nil, zero value otherwise. ### GetDiscoveredOk -`func (o *PatchedInventoryItemRequest) GetDiscoveredOk() (*bool, bool)` +`func (o *WritableInventoryItemRequest) GetDiscoveredOk() (*bool, bool)` GetDiscoveredOk returns a tuple with the Discovered field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDiscovered -`func (o *PatchedInventoryItemRequest) SetDiscovered(v bool)` +`func (o *WritableInventoryItemRequest) SetDiscovered(v bool)` SetDiscovered sets Discovered field to given value. ### HasDiscovered -`func (o *PatchedInventoryItemRequest) HasDiscovered() bool` +`func (o *WritableInventoryItemRequest) HasDiscovered() bool` HasDiscovered returns a boolean if a field has been set. ### GetDescription -`func (o *PatchedInventoryItemRequest) GetDescription() string` +`func (o *WritableInventoryItemRequest) GetDescription() string` GetDescription returns the Description field if non-nil, zero value otherwise. ### GetDescriptionOk -`func (o *PatchedInventoryItemRequest) GetDescriptionOk() (*string, bool)` +`func (o *WritableInventoryItemRequest) 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 *PatchedInventoryItemRequest) SetDescription(v string)` +`func (o *WritableInventoryItemRequest) SetDescription(v string)` SetDescription sets Description field to given value. ### HasDescription -`func (o *PatchedInventoryItemRequest) HasDescription() bool` +`func (o *WritableInventoryItemRequest) HasDescription() bool` HasDescription returns a boolean if a field has been set. ### GetComponentType -`func (o *PatchedInventoryItemRequest) GetComponentType() string` +`func (o *WritableInventoryItemRequest) GetComponentType() string` GetComponentType returns the ComponentType field if non-nil, zero value otherwise. ### GetComponentTypeOk -`func (o *PatchedInventoryItemRequest) GetComponentTypeOk() (*string, bool)` +`func (o *WritableInventoryItemRequest) GetComponentTypeOk() (*string, bool)` GetComponentTypeOk returns a tuple with the ComponentType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComponentType -`func (o *PatchedInventoryItemRequest) SetComponentType(v string)` +`func (o *WritableInventoryItemRequest) SetComponentType(v string)` SetComponentType sets ComponentType field to given value. ### HasComponentType -`func (o *PatchedInventoryItemRequest) HasComponentType() bool` +`func (o *WritableInventoryItemRequest) HasComponentType() bool` HasComponentType returns a boolean if a field has been set. ### SetComponentTypeNil -`func (o *PatchedInventoryItemRequest) SetComponentTypeNil(b bool)` +`func (o *WritableInventoryItemRequest) SetComponentTypeNil(b bool)` SetComponentTypeNil sets the value for ComponentType to be an explicit nil ### UnsetComponentType -`func (o *PatchedInventoryItemRequest) UnsetComponentType()` +`func (o *WritableInventoryItemRequest) UnsetComponentType()` UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil ### GetComponentId -`func (o *PatchedInventoryItemRequest) GetComponentId() int64` +`func (o *WritableInventoryItemRequest) GetComponentId() int64` GetComponentId returns the ComponentId field if non-nil, zero value otherwise. ### GetComponentIdOk -`func (o *PatchedInventoryItemRequest) GetComponentIdOk() (*int64, bool)` +`func (o *WritableInventoryItemRequest) GetComponentIdOk() (*int64, bool)` GetComponentIdOk returns a tuple with the ComponentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComponentId -`func (o *PatchedInventoryItemRequest) SetComponentId(v int64)` +`func (o *WritableInventoryItemRequest) SetComponentId(v int64)` SetComponentId sets ComponentId field to given value. ### HasComponentId -`func (o *PatchedInventoryItemRequest) HasComponentId() bool` +`func (o *WritableInventoryItemRequest) HasComponentId() bool` HasComponentId returns a boolean if a field has been set. ### SetComponentIdNil -`func (o *PatchedInventoryItemRequest) SetComponentIdNil(b bool)` +`func (o *WritableInventoryItemRequest) SetComponentIdNil(b bool)` SetComponentIdNil sets the value for ComponentId to be an explicit nil ### UnsetComponentId -`func (o *PatchedInventoryItemRequest) UnsetComponentId()` +`func (o *WritableInventoryItemRequest) UnsetComponentId()` UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil ### GetTags -`func (o *PatchedInventoryItemRequest) GetTags() []NestedTagRequest` +`func (o *WritableInventoryItemRequest) GetTags() []NestedTagRequest` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *PatchedInventoryItemRequest) GetTagsOk() (*[]NestedTagRequest, bool)` +`func (o *WritableInventoryItemRequest) 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 *PatchedInventoryItemRequest) SetTags(v []NestedTagRequest)` +`func (o *WritableInventoryItemRequest) SetTags(v []NestedTagRequest)` SetTags sets Tags field to given value. ### HasTags -`func (o *PatchedInventoryItemRequest) HasTags() bool` +`func (o *WritableInventoryItemRequest) HasTags() bool` HasTags returns a boolean if a field has been set. ### GetCustomFields -`func (o *PatchedInventoryItemRequest) GetCustomFields() map[string]interface{}` +`func (o *WritableInventoryItemRequest) GetCustomFields() map[string]interface{}` GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. ### GetCustomFieldsOk -`func (o *PatchedInventoryItemRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` +`func (o *WritableInventoryItemRequest) 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 *PatchedInventoryItemRequest) SetCustomFields(v map[string]interface{})` +`func (o *WritableInventoryItemRequest) SetCustomFields(v map[string]interface{})` SetCustomFields sets CustomFields field to given value. ### HasCustomFields -`func (o *PatchedInventoryItemRequest) HasCustomFields() bool` +`func (o *WritableInventoryItemRequest) HasCustomFields() bool` HasCustomFields returns a boolean if a field has been set. diff --git a/docs/WritableL2VPNRequest.md b/docs/WritableL2VPNRequest.md index d8d0852be8..df3aa2b333 100644 --- a/docs/WritableL2VPNRequest.md +++ b/docs/WritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | | +**Type** | [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableL2VPNRequest -`func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue, ) *WritableL2VPNRequest` +`func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue, ) *WritableL2VPNRequest` NewWritableL2VPNRequest instantiates a new WritableL2VPNRequest object This constructor will assign default values to properties that have it defined, @@ -112,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -232,20 +232,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *WritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableLocationRequest.md b/docs/WritableLocationRequest.md index dd699d8189..05bbd7edef 100644 --- a/docs/WritableLocationRequest.md +++ b/docs/WritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Parent** | **NullableInt32** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Parent** | Pointer to **NullableInt32** | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableLocationRequest -`func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32, ) *WritableLocationRequest` +`func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, ) *WritableLocationRequest` NewWritableLocationRequest instantiates a new WritableLocationRequest object This constructor will assign default values to properties that have it defined, @@ -76,20 +76,20 @@ SetSlug sets Slug field to given value. ### GetSite -`func (o *WritableLocationRequest) GetSite() SiteRequest` +`func (o *WritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableLocationRequest) SetSite(v SiteRequest)` +`func (o *WritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -113,6 +113,11 @@ and a boolean to check if the value has been set. SetParent sets Parent field to given value. +### HasParent + +`func (o *WritableLocationRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. ### SetParentNil @@ -126,20 +131,20 @@ SetParent sets Parent field to given value. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, 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 *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -151,20 +156,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableLocationRequest) GetTenant() TenantRequest` +`func (o *WritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableModuleRequest.md b/docs/WritableModuleRequest.md index 95f95384cc..e7adaf9aff 100644 --- a/docs/WritableModuleRequest.md +++ b/docs/WritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | **int32** | | -**ModuleType** | [**ModuleTypeRequest**](ModuleTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleRequest -`func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest, ) *WritableModuleRequest` +`func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest, ) *WritableModuleRequest` NewWritableModuleRequest instantiates a new WritableModuleRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableModuleRequest) GetDevice() DeviceRequest` +`func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -76,40 +76,40 @@ SetModuleBay sets ModuleBay field to given value. ### GetModuleType -`func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. ### GetStatus -`func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableModuleRequest) GetStatus() InventoryItemStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableModuleRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableModuleRequest) SetStatus(v InventoryItemStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/WritableModuleTypeRequest.md b/docs/WritableModuleTypeRequest.md index ada1a71f7e..48264306d8 100644 --- a/docs/WritableModuleTypeRequest.md +++ b/docs/WritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeRequestAirflow**](ModuleTypeRequestAirflow.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleTypeRequest -`func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *WritableModuleTypeRequest` +`func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *WritableModuleTypeRequest` NewWritableModuleTypeRequest instantiates a new WritableModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -98,6 +99,41 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *WritableModuleTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *WritableModuleTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetWeight `func (o *WritableModuleTypeRequest) GetWeight() float64` @@ -135,20 +171,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -158,6 +194,16 @@ SetWeightUnit sets WeightUnit field to given value. HasWeightUnit returns a boolean if a field has been set. +### SetWeightUnitNil + +`func (o *WritableModuleTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *WritableModuleTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *WritableModuleTypeRequest) GetDescription() string` diff --git a/docs/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md index f8ee53481c..c7ee1dfc9a 100644 --- a/docs/WritablePowerFeedRequest.md +++ b/docs/WritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +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 [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewWritablePowerFeedRequest -`func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *WritablePowerFeedRequest` +`func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *WritablePowerFeedRequest` NewWritablePowerFeedRequest instantiates a new WritablePowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *WritablePowerFeedRequest) GetRack() RackRequest` +`func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *WritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, 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 TenantRequest)` +`func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritablePowerOutletRequest.md b/docs/WritablePowerOutletRequest.md index 978dfe7616..d45569db1d 100644 --- a/docs/WritablePowerOutletRequest.md +++ b/docs/WritablePowerOutletRequest.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] -**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] +**Color** | Pointer to **string** | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] +**FeedLeg** | Pointer to [**NullablePatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewWritablePowerOutletRequest -`func NewWritablePowerOutletRequest(device DeviceRequest, name string, ) *WritablePowerOutletRequest` +`func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string, ) *WritablePowerOutletRequest` NewWritablePowerOutletRequest instantiates a new WritablePowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -160,22 +161,57 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritablePowerOutletRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritablePowerOutletRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetColor + +`func (o *WritablePowerOutletRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *WritablePowerOutletRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *WritablePowerOutletRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *WritablePowerOutletRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + ### GetPowerPort -`func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. @@ -220,6 +256,16 @@ SetFeedLeg sets FeedLeg field to given value. HasFeedLeg returns a boolean if a field has been set. +### SetFeedLegNil + +`func (o *WritablePowerOutletRequest) SetFeedLegNil(b bool)` + + SetFeedLegNil sets the value for FeedLeg to be an explicit nil + +### UnsetFeedLeg +`func (o *WritablePowerOutletRequest) UnsetFeedLeg()` + +UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil ### GetDescription `func (o *WritablePowerOutletRequest) GetDescription() string` diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md index 196e5721af..ee84dbb380 100644 --- a/docs/WritablePowerOutletTemplateRequest.md +++ b/docs/WritablePowerOutletTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] -**FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] +**FeedLeg** | Pointer to [**NullablePatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -172,22 +172,32 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritablePowerOutletTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritablePowerOutletTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. @@ -232,6 +242,16 @@ SetFeedLeg sets FeedLeg field to given value. HasFeedLeg returns a boolean if a field has been set. +### SetFeedLegNil + +`func (o *WritablePowerOutletTemplateRequest) SetFeedLegNil(b bool)` + + SetFeedLegNil sets the value for FeedLeg to be an explicit nil + +### UnsetFeedLeg +`func (o *WritablePowerOutletTemplateRequest) UnsetFeedLeg()` + +UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil ### GetDescription `func (o *WritablePowerOutletTemplateRequest) GetDescription() string` diff --git a/docs/WritablePowerPortRequest.md b/docs/WritablePowerPortRequest.md index 55d0323088..e5f49b0e89 100644 --- a/docs/WritablePowerPortRequest.md +++ b/docs/WritablePowerPortRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] **AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerPortRequest -`func NewWritablePowerPortRequest(device DeviceRequest, name string, ) *WritablePowerPortRequest` +`func NewWritablePowerPortRequest(device BriefDeviceRequest, name string, ) *WritablePowerPortRequest` NewWritablePowerPortRequest instantiates a new WritablePowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -160,6 +160,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritablePowerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritablePowerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetMaximumDraw `func (o *WritablePowerPortRequest) GetMaximumDraw() int32` diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md index 75edd99501..ff650e49c9 100644 --- a/docs/WritablePowerPortTemplateRequest.md +++ b/docs/WritablePowerPortTemplateRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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 [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] +**Type** | Pointer to [**NullablePatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] **AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -172,6 +172,16 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### SetTypeNil + +`func (o *WritablePowerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *WritablePowerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetMaximumDraw `func (o *WritablePowerPortTemplateRequest) GetMaximumDraw() int32` diff --git a/docs/WritablePrefixRequest.md b/docs/WritablePrefixRequest.md index 87080ca95c..e07c1ab5a4 100644 --- a/docs/WritablePrefixRequest.md +++ b/docs/WritablePrefixRequest.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -57,92 +58,127 @@ and a boolean to check if the value has been set. SetPrefix sets Prefix field to given value. -### GetSite +### GetVrf -`func (o *WritablePrefixRequest) GetSite() SiteRequest` +`func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest` -GetSite returns the Site field if non-nil, zero value otherwise. +GetVrf returns the Vrf field if non-nil, zero value otherwise. -### GetSiteOk +### GetVrfOk -`func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSite +### SetVrf -`func (o *WritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest)` -SetSite sets Site field to given value. +SetVrf sets Vrf field to given value. -### HasSite +### HasVrf -`func (o *WritablePrefixRequest) HasSite() bool` +`func (o *WritablePrefixRequest) HasVrf() bool` -HasSite returns a boolean if a field has been set. +HasVrf returns a boolean if a field has been set. -### SetSiteNil +### SetVrfNil -`func (o *WritablePrefixRequest) SetSiteNil(b bool)` +`func (o *WritablePrefixRequest) SetVrfNil(b bool)` - SetSiteNil sets the value for Site to be an explicit nil + SetVrfNil sets the value for Vrf to be an explicit nil -### UnsetSite -`func (o *WritablePrefixRequest) UnsetSite()` +### UnsetVrf +`func (o *WritablePrefixRequest) UnsetVrf()` -UnsetSite ensures that no value is present for Site, not even an explicit nil -### GetVrf +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetScopeType -`func (o *WritablePrefixRequest) GetVrf() VRFRequest` +`func (o *WritablePrefixRequest) GetScopeType() string` -GetVrf returns the Vrf field if non-nil, zero value otherwise. +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. -### GetVrfOk +### GetScopeTypeOk -`func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritablePrefixRequest) GetScopeTypeOk() (*string, bool)` -GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetVrf +### SetScopeType -`func (o *WritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *WritablePrefixRequest) SetScopeType(v string)` -SetVrf sets Vrf field to given value. +SetScopeType sets ScopeType field to given value. -### HasVrf +### HasScopeType -`func (o *WritablePrefixRequest) HasVrf() bool` +`func (o *WritablePrefixRequest) HasScopeType() bool` -HasVrf returns a boolean if a field has been set. +HasScopeType returns a boolean if a field has been set. -### SetVrfNil +### SetScopeTypeNil -`func (o *WritablePrefixRequest) SetVrfNil(b bool)` +`func (o *WritablePrefixRequest) SetScopeTypeNil(b bool)` - SetVrfNil sets the value for Vrf to be an explicit nil + SetScopeTypeNil sets the value for ScopeType to be an explicit nil -### UnsetVrf -`func (o *WritablePrefixRequest) UnsetVrf()` +### UnsetScopeType +`func (o *WritablePrefixRequest) UnsetScopeType()` -UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *WritablePrefixRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *WritablePrefixRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *WritablePrefixRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *WritablePrefixRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *WritablePrefixRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *WritablePrefixRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetTenant -`func (o *WritablePrefixRequest) GetTenant() TenantRequest` +`func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +200,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *WritablePrefixRequest) GetVlan() VLANRequest` +`func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +260,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritablePrefixRequest) GetRole() RoleRequest` +`func (o *WritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, 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 *WritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableRackRequest.md b/docs/WritableRackRequest.md index a9a7cf6f57..d130ba3a25 100644 --- a/docs/WritableRackRequest.md +++ b/docs/WritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**NullablePatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.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 [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] -**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**OuterUnit** | Pointer to [**NullablePatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**NullablePatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,7 +36,7 @@ Name | Type | Description | Notes ### NewWritableRackRequest -`func NewWritableRackRequest(name string, site SiteRequest, ) *WritableRackRequest` +`func NewWritableRackRequest(name string, site BriefSiteRequest, ) *WritableRackRequest` NewWritableRackRequest instantiates a new WritableRackRequest object This constructor will assign default values to properties that have it defined, @@ -106,40 +108,40 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *WritableRackRequest) GetSite() SiteRequest` +`func (o *WritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableRackRequest) SetSite(v SiteRequest)` +`func (o *WritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableRackRequest) GetLocation() LocationRequest` +`func (o *WritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableRackRequest) SetLocation(v LocationRequest)` +`func (o *WritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -161,20 +163,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *WritableRackRequest) GetTenant() TenantRequest` +`func (o *WritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableRackRequest) SetTenant(v TenantRequest)` +`func (o *WritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -221,20 +223,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableRackRequest) GetRole() RackRoleRequest` +`func (o *WritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, 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 *WritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -314,31 +316,76 @@ HasAssetTag returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *WritableRackRequest) HasType() bool` +`func (o *WritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. +### SetRackTypeNil + +`func (o *WritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *WritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *WritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *WritableRackRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *WritableRackRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil ### GetWidth `func (o *WritableRackRequest) GetWidth() PatchedWritableRackRequestWidth` @@ -486,20 +533,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableRackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -509,6 +556,16 @@ SetWeightUnit sets WeightUnit field to given value. HasWeightUnit returns a boolean if a field has been set. +### SetWeightUnitNil + +`func (o *WritableRackRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *WritableRackRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescUnits `func (o *WritableRackRequest) GetDescUnits() bool` @@ -629,6 +686,16 @@ SetOuterUnit sets OuterUnit field to given value. HasOuterUnit returns a boolean if a field has been set. +### SetOuterUnitNil + +`func (o *WritableRackRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *WritableRackRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil ### GetMountingDepth `func (o *WritableRackRequest) GetMountingDepth() int32` @@ -664,6 +731,41 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *WritableRackRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *WritableRackRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil ### GetDescription `func (o *WritableRackRequest) GetDescription() string` diff --git a/docs/WritableRackTypeRequest.md b/docs/WritableRackTypeRequest.md new file mode 100644 index 0000000000..deb8eea40a --- /dev/null +++ b/docs/WritableRackTypeRequest.md @@ -0,0 +1,574 @@ +# WritableRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | [**PatchedWritableRackTypeRequestFormFactor**](PatchedWritableRackTypeRequestFormFactor.md) | | +**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullablePatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableRackTypeRequest + +`func NewWritableRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor, ) *WritableRackTypeRequest` + +NewWritableRackTypeRequest instantiates a new WritableRackTypeRequest 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 + +### NewWritableRackTypeRequestWithDefaults + +`func NewWritableRackTypeRequestWithDefaults() *WritableRackTypeRequest` + +NewWritableRackTypeRequestWithDefaults instantiates a new WritableRackTypeRequest 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 + +### GetManufacturer + +`func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *WritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *WritableRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *WritableRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *WritableRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *WritableRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *WritableRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableRackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *WritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *WritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *WritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + + +### GetWidth + +`func (o *WritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *WritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *WritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *WritableRackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *WritableRackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *WritableRackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *WritableRackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *WritableRackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *WritableRackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *WritableRackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *WritableRackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *WritableRackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *WritableRackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *WritableRackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *WritableRackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *WritableRackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *WritableRackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *WritableRackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *WritableRackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *WritableRackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *WritableRackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *WritableRackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *WritableRackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *WritableRackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *WritableRackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *WritableRackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *WritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *WritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *WritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *WritableRackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *WritableRackTypeRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *WritableRackTypeRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *WritableRackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *WritableRackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *WritableRackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *WritableRackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *WritableRackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *WritableRackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *WritableRackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *WritableRackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *WritableRackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *WritableRackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *WritableRackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *WritableRackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *WritableRackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *WritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *WritableRackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *WritableRackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *WritableRackTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *WritableRackTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *WritableRackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *WritableRackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *WritableRackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *WritableRackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *WritableRackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *WritableRackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *WritableRackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableRackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableRackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableRackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableRackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableRackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableRackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableRackTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableRearPortRequest.md b/docs/WritableRearPortRequest.md index 5e366e7c53..10050601f7 100644 --- a/docs/WritableRearPortRequest.md +++ b/docs/WritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableRearPortRequest -`func NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` +`func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` NewWritableRearPortRequest instantiates a new WritableRearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableRearPortRequest) GetModule() ModuleRequest` +`func (o *WritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md index 075a046aaa..4e3c43248d 100644 --- a/docs/WritableRearPortTemplateRequest.md +++ b/docs/WritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **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** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableRegionRequest.md b/docs/WritableRegionRequest.md index 9b8a23a97b..18354143f7 100644 --- a/docs/WritableRegionRequest.md +++ b/docs/WritableRegionRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Parent** | **NullableInt32** | | +**Parent** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewWritableRegionRequest -`func NewWritableRegionRequest(name string, slug string, parent NullableInt32, ) *WritableRegionRequest` +`func NewWritableRegionRequest(name string, slug string, ) *WritableRegionRequest` NewWritableRegionRequest instantiates a new WritableRegionRequest object This constructor will assign default values to properties that have it defined, @@ -89,6 +89,11 @@ and a boolean to check if the value has been set. SetParent sets Parent field to given value. +### HasParent + +`func (o *WritableRegionRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. ### SetParentNil diff --git a/docs/WritableServiceRequest.md b/docs/WritableServiceRequest.md index f4617ee50a..2a2d4015e6 100644 --- a/docs/WritableServiceRequest.md +++ b/docs/WritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableServiceRequest) GetDevice() DeviceRequest` +`func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/WritableSiteGroupRequest.md b/docs/WritableSiteGroupRequest.md index 1b9c8ce2ee..1a06ac4d4e 100644 --- a/docs/WritableSiteGroupRequest.md +++ b/docs/WritableSiteGroupRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Parent** | **NullableInt32** | | +**Parent** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewWritableSiteGroupRequest -`func NewWritableSiteGroupRequest(name string, slug string, parent NullableInt32, ) *WritableSiteGroupRequest` +`func NewWritableSiteGroupRequest(name string, slug string, ) *WritableSiteGroupRequest` NewWritableSiteGroupRequest instantiates a new WritableSiteGroupRequest object This constructor will assign default values to properties that have it defined, @@ -89,6 +89,11 @@ and a boolean to check if the value has been set. SetParent sets Parent field to given value. +### HasParent + +`func (o *WritableSiteGroupRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. ### SetParentNil diff --git a/docs/WritableSiteRequest.md b/docs/WritableSiteRequest.md index d5fe57fa63..fbb616a48d 100644 --- a/docs/WritableSiteRequest.md +++ b/docs/WritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ SetSlug sets Slug field to given value. ### GetStatus -`func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, 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 *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -108,20 +108,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *WritableSiteRequest) GetRegion() RegionRequest` +`func (o *WritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *WritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -143,20 +143,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *WritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -178,20 +178,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *WritableSiteRequest) GetTenant() TenantRequest` +`func (o *WritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTenantGroupRequest 2.md b/docs/WritableTenantGroupRequest 2.md new file mode 100644 index 0000000000..a7f916b24e --- /dev/null +++ b/docs/WritableTenantGroupRequest 2.md @@ -0,0 +1,186 @@ +# WritableTenantGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Parent** | Pointer to **NullableInt32** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableTenantGroupRequest + +`func NewWritableTenantGroupRequest(name string, slug string, ) *WritableTenantGroupRequest` + +NewWritableTenantGroupRequest instantiates a new WritableTenantGroupRequest 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 + +### NewWritableTenantGroupRequestWithDefaults + +`func NewWritableTenantGroupRequestWithDefaults() *WritableTenantGroupRequest` + +NewWritableTenantGroupRequestWithDefaults instantiates a new WritableTenantGroupRequest 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 *WritableTenantGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *WritableTenantGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetParent + +`func (o *WritableTenantGroupRequest) GetParent() int32` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *WritableTenantGroupRequest) GetParentOk() (*int32, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *WritableTenantGroupRequest) SetParent(v int32)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *WritableTenantGroupRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *WritableTenantGroupRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *WritableTenantGroupRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetDescription + +`func (o *WritableTenantGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableTenantGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableTenantGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableTenantGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableTenantGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableTenantGroupRequest) 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 *WritableTenantGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableTenantGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableTunnelRequest.md b/docs/WritableTunnelRequest.md index 074647508e..68b5e21ad9 100644 --- a/docs/WritableTunnelRequest.md +++ b/docs/WritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -82,20 +82,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -137,20 +137,20 @@ SetEncapsulation sets Encapsulation field to given value. ### GetIpsecProfile -`func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -172,20 +172,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *WritableTunnelRequest) GetTenant() TenantRequest` +`func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelTerminationRequest.md b/docs/WritableTunnelTerminationRequest.md index 99cb6a025d..6530353f8f 100644 --- a/docs/WritableTunnelTerminationRequest.md +++ b/docs/WritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | **string** | | -**TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**TerminationId** | Pointer to **NullableInt64** | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableTunnelTerminationRequest -`func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` +`func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, ) *WritableTunnelTerminationRequest` NewWritableTunnelTerminationRequest instantiates a new WritableTunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -115,6 +115,11 @@ and a boolean to check if the value has been set. SetTerminationId sets TerminationId field to given value. +### HasTerminationId + +`func (o *WritableTunnelTerminationRequest) HasTerminationId() bool` + +HasTerminationId returns a boolean if a field has been set. ### SetTerminationIdNil @@ -128,20 +133,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/WritableVLANRequest.md b/docs/WritableVLANRequest.md index e9b7620130..970c3d53f6 100644 --- a/docs/WritableVLANRequest.md +++ b/docs/WritableVLANRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**QinqRole** | Pointer to [**NullableQInQRole**](QInQRole.md) | | [optional] +**QinqSvlan** | Pointer to **NullableInt32** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -37,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *WritableVLANRequest) GetSite() SiteRequest` +`func (o *WritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVLANRequest) SetSite(v SiteRequest)` +`func (o *WritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +74,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *WritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +149,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *WritableVLANRequest) GetTenant() TenantRequest` +`func (o *WritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -207,20 +209,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableVLANRequest) GetRole() RoleRequest` +`func (o *WritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, 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 *WritableVLANRequest) SetRole(v RoleRequest)` +`func (o *WritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. @@ -265,6 +267,76 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetQinqRole + +`func (o *WritableVLANRequest) GetQinqRole() QInQRole` + +GetQinqRole returns the QinqRole field if non-nil, zero value otherwise. + +### GetQinqRoleOk + +`func (o *WritableVLANRequest) GetQinqRoleOk() (*QInQRole, bool)` + +GetQinqRoleOk returns a tuple with the QinqRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqRole + +`func (o *WritableVLANRequest) SetQinqRole(v QInQRole)` + +SetQinqRole sets QinqRole field to given value. + +### HasQinqRole + +`func (o *WritableVLANRequest) HasQinqRole() bool` + +HasQinqRole returns a boolean if a field has been set. + +### SetQinqRoleNil + +`func (o *WritableVLANRequest) SetQinqRoleNil(b bool)` + + SetQinqRoleNil sets the value for QinqRole to be an explicit nil + +### UnsetQinqRole +`func (o *WritableVLANRequest) UnsetQinqRole()` + +UnsetQinqRole ensures that no value is present for QinqRole, not even an explicit nil +### GetQinqSvlan + +`func (o *WritableVLANRequest) GetQinqSvlan() int32` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *WritableVLANRequest) GetQinqSvlanOk() (*int32, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *WritableVLANRequest) SetQinqSvlan(v int32)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *WritableVLANRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *WritableVLANRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *WritableVLANRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil ### GetComments `func (o *WritableVLANRequest) GetComments() string` diff --git a/docs/WritableVMInterfaceRequest.md b/docs/WritableVMInterfaceRequest.md index 9177b40ec8..b3e29069e4 100644 --- a/docs/WritableVMInterfaceRequest.md +++ b/docs/WritableVMInterfaceRequest.md @@ -4,18 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] **Mtu** | Pointer to **NullableInt32** | | [optional] -**MacAddress** | Pointer to **NullableString** | | [optional] +**PrimaryMacAddress** | Pointer to [**NullableBriefMACAddressRequest**](BriefMACAddressRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Mode** | Pointer to [**NullablePatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**QinqSvlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**VlanTranslationPolicy** | Pointer to [**NullableBriefVLANTranslationPolicyRequest**](BriefVLANTranslationPolicyRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +25,7 @@ Name | Type | Description | Notes ### NewWritableVMInterfaceRequest -`func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` +`func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` NewWritableVMInterfaceRequest instantiates a new WritableVMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -208,41 +210,41 @@ HasMtu returns a boolean if a field has been set. `func (o *WritableVMInterfaceRequest) UnsetMtu()` UnsetMtu ensures that no value is present for Mtu, not even an explicit nil -### GetMacAddress +### GetPrimaryMacAddress -`func (o *WritableVMInterfaceRequest) GetMacAddress() string` +`func (o *WritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest` -GetMacAddress returns the MacAddress field if non-nil, zero value otherwise. +GetPrimaryMacAddress returns the PrimaryMacAddress field if non-nil, zero value otherwise. -### GetMacAddressOk +### GetPrimaryMacAddressOk -`func (o *WritableVMInterfaceRequest) GetMacAddressOk() (*string, bool)` +`func (o *WritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool)` -GetMacAddressOk returns a tuple with the MacAddress field if it's non-nil, zero value otherwise +GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMacAddress +### SetPrimaryMacAddress -`func (o *WritableVMInterfaceRequest) SetMacAddress(v string)` +`func (o *WritableVMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest)` -SetMacAddress sets MacAddress field to given value. +SetPrimaryMacAddress sets PrimaryMacAddress field to given value. -### HasMacAddress +### HasPrimaryMacAddress -`func (o *WritableVMInterfaceRequest) HasMacAddress() bool` +`func (o *WritableVMInterfaceRequest) HasPrimaryMacAddress() bool` -HasMacAddress returns a boolean if a field has been set. +HasPrimaryMacAddress returns a boolean if a field has been set. -### SetMacAddressNil +### SetPrimaryMacAddressNil -`func (o *WritableVMInterfaceRequest) SetMacAddressNil(b bool)` +`func (o *WritableVMInterfaceRequest) SetPrimaryMacAddressNil(b bool)` - SetMacAddressNil sets the value for MacAddress to be an explicit nil + SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil -### UnsetMacAddress -`func (o *WritableVMInterfaceRequest) UnsetMacAddress()` +### UnsetPrimaryMacAddress +`func (o *WritableVMInterfaceRequest) UnsetPrimaryMacAddress()` -UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil +UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil ### GetDescription `func (o *WritableVMInterfaceRequest) GetDescription() string` @@ -293,22 +295,32 @@ SetMode sets Mode field to given value. HasMode returns a boolean if a field has been set. +### SetModeNil + +`func (o *WritableVMInterfaceRequest) SetModeNil(b bool)` + + SetModeNil sets the value for Mode to be an explicit nil + +### UnsetMode +`func (o *WritableVMInterfaceRequest) UnsetMode()` + +UnsetMode ensures that no value is present for Mode, not even an explicit nil ### GetUntaggedVlan -`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -353,22 +365,92 @@ SetTaggedVlans sets TaggedVlans field to given value. HasTaggedVlans returns a boolean if a field has been set. +### GetQinqSvlan + +`func (o *WritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest` + +GetQinqSvlan returns the QinqSvlan field if non-nil, zero value otherwise. + +### GetQinqSvlanOk + +`func (o *WritableVMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool)` + +GetQinqSvlanOk returns a tuple with the QinqSvlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQinqSvlan + +`func (o *WritableVMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest)` + +SetQinqSvlan sets QinqSvlan field to given value. + +### HasQinqSvlan + +`func (o *WritableVMInterfaceRequest) HasQinqSvlan() bool` + +HasQinqSvlan returns a boolean if a field has been set. + +### SetQinqSvlanNil + +`func (o *WritableVMInterfaceRequest) SetQinqSvlanNil(b bool)` + + SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil + +### UnsetQinqSvlan +`func (o *WritableVMInterfaceRequest) UnsetQinqSvlan()` + +UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +### GetVlanTranslationPolicy + +`func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest` + +GetVlanTranslationPolicy returns the VlanTranslationPolicy field if non-nil, zero value otherwise. + +### GetVlanTranslationPolicyOk + +`func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool)` + +GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanTranslationPolicy + +`func (o *WritableVMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest)` + +SetVlanTranslationPolicy sets VlanTranslationPolicy field to given value. + +### HasVlanTranslationPolicy + +`func (o *WritableVMInterfaceRequest) HasVlanTranslationPolicy() bool` + +HasVlanTranslationPolicy returns a boolean if a field has been set. + +### SetVlanTranslationPolicyNil + +`func (o *WritableVMInterfaceRequest) SetVlanTranslationPolicyNil(b bool)` + + SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil + +### UnsetVlanTranslationPolicy +`func (o *WritableVMInterfaceRequest) UnsetVlanTranslationPolicy()` + +UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil ### GetVrf -`func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableVirtualCircuitRequest.md b/docs/WritableVirtualCircuitRequest.md new file mode 100644 index 0000000000..a9b92eb457 --- /dev/null +++ b/docs/WritableVirtualCircuitRequest.md @@ -0,0 +1,295 @@ +# WritableVirtualCircuitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cid** | **string** | Unique circuit ID | +**ProviderNetwork** | [**BriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefVirtualCircuitTypeRequest**](BriefVirtualCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableVirtualCircuitRequest + +`func NewWritableVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest, type_ BriefVirtualCircuitTypeRequest, ) *WritableVirtualCircuitRequest` + +NewWritableVirtualCircuitRequest instantiates a new WritableVirtualCircuitRequest 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 + +### NewWritableVirtualCircuitRequestWithDefaults + +`func NewWritableVirtualCircuitRequestWithDefaults() *WritableVirtualCircuitRequest` + +NewWritableVirtualCircuitRequestWithDefaults instantiates a new WritableVirtualCircuitRequest 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 + +### GetCid + +`func (o *WritableVirtualCircuitRequest) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *WritableVirtualCircuitRequest) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *WritableVirtualCircuitRequest) SetCid(v string)` + +SetCid sets Cid field to given value. + + +### GetProviderNetwork + +`func (o *WritableVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *WritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *WritableVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` + +SetProviderNetwork sets ProviderNetwork field to given value. + + +### GetProviderAccount + +`func (o *WritableVirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *WritableVirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *WritableVirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *WritableVirtualCircuitRequest) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *WritableVirtualCircuitRequest) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *WritableVirtualCircuitRequest) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *WritableVirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *WritableVirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *WritableVirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *WritableVirtualCircuitRequest) GetStatus() CircuitStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WritableVirtualCircuitRequest) GetStatusOk() (*CircuitStatusValue, 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 *WritableVirtualCircuitRequest) SetStatus(v CircuitStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *WritableVirtualCircuitRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *WritableVirtualCircuitRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *WritableVirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableVirtualCircuitRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *WritableVirtualCircuitRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *WritableVirtualCircuitRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *WritableVirtualCircuitRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetDescription + +`func (o *WritableVirtualCircuitRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableVirtualCircuitRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *WritableVirtualCircuitRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableVirtualCircuitRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableVirtualCircuitRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableVirtualCircuitRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableVirtualCircuitRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableVirtualCircuitRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableVirtualCircuitRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableVirtualCircuitRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableVirtualCircuitTerminationRequest.md b/docs/WritableVirtualCircuitTerminationRequest.md new file mode 100644 index 0000000000..a2990fece4 --- /dev/null +++ b/docs/WritableVirtualCircuitTerminationRequest.md @@ -0,0 +1,176 @@ +# WritableVirtualCircuitTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VirtualCircuit** | [**BriefVirtualCircuitRequest**](BriefVirtualCircuitRequest.md) | | +**Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] +**Interface** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableVirtualCircuitTerminationRequest + +`func NewWritableVirtualCircuitTerminationRequest(virtualCircuit BriefVirtualCircuitRequest, interface_ BriefInterfaceRequest, ) *WritableVirtualCircuitTerminationRequest` + +NewWritableVirtualCircuitTerminationRequest instantiates a new WritableVirtualCircuitTerminationRequest 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 + +### NewWritableVirtualCircuitTerminationRequestWithDefaults + +`func NewWritableVirtualCircuitTerminationRequestWithDefaults() *WritableVirtualCircuitTerminationRequest` + +NewWritableVirtualCircuitTerminationRequestWithDefaults instantiates a new WritableVirtualCircuitTerminationRequest 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 + +### GetVirtualCircuit + +`func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest` + +GetVirtualCircuit returns the VirtualCircuit field if non-nil, zero value otherwise. + +### GetVirtualCircuitOk + +`func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool)` + +GetVirtualCircuitOk returns a tuple with the VirtualCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualCircuit + +`func (o *WritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest)` + +SetVirtualCircuit sets VirtualCircuit field to given value. + + +### GetRole + +`func (o *WritableVirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *WritableVirtualCircuitTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, 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 *WritableVirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *WritableVirtualCircuitTerminationRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetInterface + +`func (o *WritableVirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest` + +GetInterface returns the Interface field if non-nil, zero value otherwise. + +### GetInterfaceOk + +`func (o *WritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool)` + +GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterface + +`func (o *WritableVirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest)` + +SetInterface sets Interface field to given value. + + +### GetDescription + +`func (o *WritableVirtualCircuitTerminationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableVirtualCircuitTerminationRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableVirtualCircuitTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableVirtualCircuitTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableVirtualCircuitTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableVirtualCircuitTerminationRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableVirtualDeviceContextRequest.md b/docs/WritableVirtualDeviceContextRequest.md index 30df18d9aa..a945ebeaee 100644 --- a/docs/WritableVirtualDeviceContextRequest.md +++ b/docs/WritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableVirtualDeviceContextRequest -`func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` +`func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` NewWritableVirtualDeviceContextRequest instantiates a new WritableVirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/WritableVirtualMachineWithConfigContextRequest.md b/docs/WritableVirtualMachineWithConfigContextRequest.md index c0ebf4e160..42b9e19dc7 100644 --- a/docs/WritableVirtualMachineWithConfigContextRequest.md +++ b/docs/WritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**InventoryItemStatusValue**](InventoryItemStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **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] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*InventoryItemStatusValue, 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 *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, 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 *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableWirelessLANGroupRequest.md b/docs/WritableWirelessLANGroupRequest.md index 2f0a65af95..a64ccf320a 100644 --- a/docs/WritableWirelessLANGroupRequest.md +++ b/docs/WritableWirelessLANGroupRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Parent** | **NullableInt32** | | +**Parent** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewWritableWirelessLANGroupRequest -`func NewWritableWirelessLANGroupRequest(name string, slug string, parent NullableInt32, ) *WritableWirelessLANGroupRequest` +`func NewWritableWirelessLANGroupRequest(name string, slug string, ) *WritableWirelessLANGroupRequest` NewWritableWirelessLANGroupRequest instantiates a new WritableWirelessLANGroupRequest object This constructor will assign default values to properties that have it defined, @@ -89,6 +89,11 @@ and a boolean to check if the value has been set. SetParent sets Parent field to given value. +### HasParent + +`func (o *WritableWirelessLANGroupRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. ### SetParentNil diff --git a/docs/WritableWirelessLANRequest 2.md b/docs/WritableWirelessLANRequest 2.md new file mode 100644 index 0000000000..2a85bd2193 --- /dev/null +++ b/docs/WritableWirelessLANRequest 2.md @@ -0,0 +1,367 @@ +# WritableWirelessLANRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ssid** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] +**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**AuthPsk** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableWirelessLANRequest + +`func NewWritableWirelessLANRequest(ssid string, ) *WritableWirelessLANRequest` + +NewWritableWirelessLANRequest instantiates a new WritableWirelessLANRequest 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 + +### NewWritableWirelessLANRequestWithDefaults + +`func NewWritableWirelessLANRequestWithDefaults() *WritableWirelessLANRequest` + +NewWritableWirelessLANRequestWithDefaults instantiates a new WritableWirelessLANRequest 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 + +### GetSsid + +`func (o *WritableWirelessLANRequest) GetSsid() string` + +GetSsid returns the Ssid field if non-nil, zero value otherwise. + +### GetSsidOk + +`func (o *WritableWirelessLANRequest) GetSsidOk() (*string, bool)` + +GetSsidOk returns a tuple with the Ssid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSsid + +`func (o *WritableWirelessLANRequest) SetSsid(v string)` + +SetSsid sets Ssid field to given value. + + +### GetDescription + +`func (o *WritableWirelessLANRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableWirelessLANRequest) 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 *WritableWirelessLANRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableWirelessLANRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroup + +`func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *WritableWirelessLANRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *WritableWirelessLANRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *WritableWirelessLANRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *WritableWirelessLANRequest) GetStatus() PatchedWritableWirelessLANRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *WritableWirelessLANRequest) GetStatusOk() (*PatchedWritableWirelessLANRequestStatus, 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 *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANRequestStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *WritableWirelessLANRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetVlan + +`func (o *WritableWirelessLANRequest) GetVlan() VLANRequest` + +GetVlan returns the Vlan field if non-nil, zero value otherwise. + +### GetVlanOk + +`func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` + +GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlan + +`func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest)` + +SetVlan sets Vlan field to given value. + +### HasVlan + +`func (o *WritableWirelessLANRequest) HasVlan() bool` + +HasVlan returns a boolean if a field has been set. + +### SetVlanNil + +`func (o *WritableWirelessLANRequest) SetVlanNil(b bool)` + + SetVlanNil sets the value for Vlan to be an explicit nil + +### UnsetVlan +`func (o *WritableWirelessLANRequest) UnsetVlan()` + +UnsetVlan ensures that no value is present for Vlan, not even an explicit nil +### GetTenant + +`func (o *WritableWirelessLANRequest) GetTenant() TenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, 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 *WritableWirelessLANRequest) SetTenant(v TenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *WritableWirelessLANRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *WritableWirelessLANRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *WritableWirelessLANRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetAuthType + +`func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType1` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType1)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *WritableWirelessLANRequest) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### GetAuthCipher + +`func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher` + +GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise. + +### GetAuthCipherOk + +`func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)` + +GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthCipher + +`func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher)` + +SetAuthCipher sets AuthCipher field to given value. + +### HasAuthCipher + +`func (o *WritableWirelessLANRequest) HasAuthCipher() bool` + +HasAuthCipher returns a boolean if a field has been set. + +### GetAuthPsk + +`func (o *WritableWirelessLANRequest) GetAuthPsk() string` + +GetAuthPsk returns the AuthPsk field if non-nil, zero value otherwise. + +### GetAuthPskOk + +`func (o *WritableWirelessLANRequest) GetAuthPskOk() (*string, bool)` + +GetAuthPskOk returns a tuple with the AuthPsk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthPsk + +`func (o *WritableWirelessLANRequest) SetAuthPsk(v string)` + +SetAuthPsk sets AuthPsk field to given value. + +### HasAuthPsk + +`func (o *WritableWirelessLANRequest) HasAuthPsk() bool` + +HasAuthPsk returns a boolean if a field has been set. + +### GetComments + +`func (o *WritableWirelessLANRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableWirelessLANRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableWirelessLANRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableWirelessLANRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableWirelessLANRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableWirelessLANRequest) 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 *WritableWirelessLANRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableWirelessLANRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableWirelessLANRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableWirelessLANRequest) 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 *WritableWirelessLANRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableWirelessLANRequest) HasCustomFields() bool` + +HasCustomFields 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/WritableWirelessLANRequest.md b/docs/WritableWirelessLANRequest.md index 2a85bd2193..80615c2884 100644 --- a/docs/WritableWirelessLANRequest.md +++ b/docs/WritableWirelessLANRequest.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**ScopeType** | Pointer to **NullableString** | | [optional] +**ScopeId** | Pointer to **NullableInt32** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**NullableAuthenticationType1**](AuthenticationType1.md) | | [optional] +**AuthCipher** | Pointer to [**NullableAuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -83,20 +85,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +145,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -176,22 +178,92 @@ HasVlan returns a boolean if a field has been set. `func (o *WritableWirelessLANRequest) UnsetVlan()` UnsetVlan ensures that no value is present for Vlan, not even an explicit nil +### GetScopeType + +`func (o *WritableWirelessLANRequest) GetScopeType() string` + +GetScopeType returns the ScopeType field if non-nil, zero value otherwise. + +### GetScopeTypeOk + +`func (o *WritableWirelessLANRequest) GetScopeTypeOk() (*string, bool)` + +GetScopeTypeOk returns a tuple with the ScopeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeType + +`func (o *WritableWirelessLANRequest) SetScopeType(v string)` + +SetScopeType sets ScopeType field to given value. + +### HasScopeType + +`func (o *WritableWirelessLANRequest) HasScopeType() bool` + +HasScopeType returns a boolean if a field has been set. + +### SetScopeTypeNil + +`func (o *WritableWirelessLANRequest) SetScopeTypeNil(b bool)` + + SetScopeTypeNil sets the value for ScopeType to be an explicit nil + +### UnsetScopeType +`func (o *WritableWirelessLANRequest) UnsetScopeType()` + +UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +### GetScopeId + +`func (o *WritableWirelessLANRequest) GetScopeId() int32` + +GetScopeId returns the ScopeId field if non-nil, zero value otherwise. + +### GetScopeIdOk + +`func (o *WritableWirelessLANRequest) GetScopeIdOk() (*int32, bool)` + +GetScopeIdOk returns a tuple with the ScopeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopeId + +`func (o *WritableWirelessLANRequest) SetScopeId(v int32)` + +SetScopeId sets ScopeId field to given value. + +### HasScopeId + +`func (o *WritableWirelessLANRequest) HasScopeId() bool` + +HasScopeId returns a boolean if a field has been set. + +### SetScopeIdNil + +`func (o *WritableWirelessLANRequest) SetScopeIdNil(b bool)` + + SetScopeIdNil sets the value for ScopeId to be an explicit nil + +### UnsetScopeId +`func (o *WritableWirelessLANRequest) UnsetScopeId()` + +UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil ### GetTenant -`func (o *WritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -236,6 +308,16 @@ SetAuthType sets AuthType field to given value. HasAuthType returns a boolean if a field has been set. +### SetAuthTypeNil + +`func (o *WritableWirelessLANRequest) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *WritableWirelessLANRequest) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil ### GetAuthCipher `func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher` @@ -261,6 +343,16 @@ SetAuthCipher sets AuthCipher field to given value. HasAuthCipher returns a boolean if a field has been set. +### SetAuthCipherNil + +`func (o *WritableWirelessLANRequest) SetAuthCipherNil(b bool)` + + SetAuthCipherNil sets the value for AuthCipher to be an explicit nil + +### UnsetAuthCipher +`func (o *WritableWirelessLANRequest) UnsetAuthCipher()` + +UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil ### GetAuthPsk `func (o *WritableWirelessLANRequest) GetAuthPsk() string` diff --git a/docs/WritableWirelessLinkRequest.md b/docs/WritableWirelessLinkRequest.md index 43c0319461..1eac7261ae 100644 --- a/docs/WritableWirelessLinkRequest.md +++ b/docs/WritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**NullableAuthenticationType1**](AuthenticationType1.md) | | [optional] +**AuthCipher** | Pointer to [**NullableAuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableCircuitRequestDistanceUnit**](CircuitRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableWirelessLinkRequest -`func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WritableWirelessLinkRequest` +`func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WritableWirelessLinkRequest` NewWritableWirelessLinkRequest instantiates a new WritableWirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, 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 *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -186,6 +188,16 @@ SetAuthType sets AuthType field to given value. HasAuthType returns a boolean if a field has been set. +### SetAuthTypeNil + +`func (o *WritableWirelessLinkRequest) SetAuthTypeNil(b bool)` + + SetAuthTypeNil sets the value for AuthType to be an explicit nil + +### UnsetAuthType +`func (o *WritableWirelessLinkRequest) UnsetAuthType()` + +UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil ### GetAuthCipher `func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher` @@ -211,6 +223,16 @@ SetAuthCipher sets AuthCipher field to given value. HasAuthCipher returns a boolean if a field has been set. +### SetAuthCipherNil + +`func (o *WritableWirelessLinkRequest) SetAuthCipherNil(b bool)` + + SetAuthCipherNil sets the value for AuthCipher to be an explicit nil + +### UnsetAuthCipher +`func (o *WritableWirelessLinkRequest) UnsetAuthCipher()` + +UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil ### GetAuthPsk `func (o *WritableWirelessLinkRequest) GetAuthPsk() string` @@ -236,6 +258,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WritableWirelessLinkRequest) GetDistanceUnit() CircuitRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WritableWirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WritableWirelessLinkRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WritableWirelessLinkRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WritableWirelessLinkRequest) GetDescription() string` diff --git a/go.mod b/go.mod index 84ac401e8e..58cd929818 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,3 @@ module github.com/netbox-community/go-netbox/v4 go 1.18 - -require github.com/stretchr/testify v1.9.0 - -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 60ce688a04..e69de29bb2 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +0,0 @@ -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.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -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= diff --git a/model_aggregate.go b/model_aggregate.go index be5226a6e5..1b0857a123 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Aggregate type satisfies the MappedNullable interface at compile time @@ -21,20 +21,21 @@ 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 RIR `json:"rir"` - Tenant NullableTenant `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Rir BriefRIR `json:"rir"` + Tenant NullableBriefTenant `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,7 +45,7 @@ type _Aggregate Aggregate // 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 NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime) *Aggregate { +func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir BriefRIR) *Aggregate { this := Aggregate{} this.Id = id this.Url = url @@ -52,8 +53,6 @@ func NewAggregate(id int32, url string, display string, family AggregateFamily, this.Family = family this.Prefix = prefix this.Rir = rir - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -89,6 +88,7 @@ func (o *Aggregate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Aggregate) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *Aggregate) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Aggregate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Aggregate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Aggregate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Aggregate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Aggregate) GetDisplay() string { if o == nil { @@ -137,6 +170,7 @@ func (o *Aggregate) SetDisplay(v string) { o.Display = v } + // GetFamily returns the Family field value func (o *Aggregate) GetFamily() AggregateFamily { if o == nil { @@ -161,6 +195,7 @@ func (o *Aggregate) SetFamily(v AggregateFamily) { o.Family = v } + // GetPrefix returns the Prefix field value func (o *Aggregate) GetPrefix() string { if o == nil { @@ -185,10 +220,11 @@ func (o *Aggregate) SetPrefix(v string) { o.Prefix = v } + // GetRir returns the Rir field value -func (o *Aggregate) GetRir() RIR { +func (o *Aggregate) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -197,7 +233,7 @@ func (o *Aggregate) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *Aggregate) GetRirOk() (*RIR, bool) { +func (o *Aggregate) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -205,14 +241,15 @@ func (o *Aggregate) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *Aggregate) SetRir(v RIR) { +func (o *Aggregate) SetRir(v BriefRIR) { o.Rir = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Aggregate) GetTenant() Tenant { +func (o *Aggregate) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -221,7 +258,7 @@ func (o *Aggregate) GetTenant() Tenant { // 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 *Aggregate) GetTenantOk() (*Tenant, bool) { +func (o *Aggregate) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -237,11 +274,10 @@ func (o *Aggregate) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Aggregate) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Aggregate) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Aggregate) SetTenantNil() { o.Tenant.Set(nil) @@ -284,7 +320,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) @@ -423,18 +458,16 @@ func (o *Aggregate) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Aggregate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *Aggregate) GetCreatedOk() (*time.Time, bool) { @@ -444,23 +477,39 @@ func (o *Aggregate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Aggregate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Aggregate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Aggregate) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Aggregate) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Aggregate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Aggregate) GetLastUpdatedOk() (*time.Time, bool) { @@ -470,13 +519,31 @@ func (o *Aggregate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Aggregate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Aggregate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Aggregate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Aggregate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o Aggregate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -487,6 +554,9 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -509,8 +579,12 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -530,24 +604,39 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { "family", "prefix", "rir", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varAggregate := _Aggregate{} err = json.Unmarshal(data, &varAggregate) @@ -563,6 +652,7 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") @@ -616,3 +706,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 c022e4c41a..8e60b3e530 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &AggregateFamily{} // AggregateFamily struct for AggregateFamily type AggregateFamily struct { - Value *AggregateFamilyValue `json:"value,omitempty"` - Label *AggregateFamilyLabel `json:"label,omitempty"` + Value *AggregateFamilyValue `json:"value,omitempty"` + Label *AggregateFamilyLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *AggregateFamily) SetLabel(v AggregateFamilyLabel) { } func (o AggregateFamily) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableAggregateFamily) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_aggregate_family_label.go b/model_aggregate_family_label.go index 6702e6180b..52bf89adbd 100644 --- a/model_aggregate_family_label.go +++ b/model_aggregate_family_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableAggregateFamilyLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_aggregate_family_value.go b/model_aggregate_family_value.go index 63ca9026fe..0f8e095724 100644 --- a/model_aggregate_family_value.go +++ b/model_aggregate_family_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableAggregateFamilyValue) 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 886f759d68..bc56c7e7de 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &AggregateRequest{} // AggregateRequest Adds support for custom fields and tags. type AggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `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 BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `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{} } @@ -37,7 +37,7 @@ type _AggregateRequest AggregateRequest // 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 NewAggregateRequest(prefix string, rir RIRRequest) *AggregateRequest { +func NewAggregateRequest(prefix string, rir BriefRIRRequest) *AggregateRequest { this := AggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -76,10 +76,11 @@ func (o *AggregateRequest) SetPrefix(v string) { o.Prefix = v } + // GetRir returns the Rir field value -func (o *AggregateRequest) GetRir() RIRRequest { +func (o *AggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +89,7 @@ func (o *AggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +97,15 @@ func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *AggregateRequest) SetRir(v RIRRequest) { +func (o *AggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AggregateRequest) GetTenant() TenantRequest { +func (o *AggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +114,7 @@ func (o *AggregateRequest) GetTenant() TenantRequest { // 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 *AggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,11 +130,10 @@ func (o *AggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *AggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *AggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *AggregateRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -175,7 +176,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) @@ -315,7 +315,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 } @@ -361,20 +361,37 @@ func (o *AggregateRequest) UnmarshalJSON(data []byte) (err error) { "rir", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varAggregateRequest := _AggregateRequest{} err = json.Unmarshal(data, &varAggregateRequest) @@ -437,3 +454,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 971d63862a..b6c5152381 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ASN type satisfies the MappedNullable interface at compile time @@ -21,21 +21,22 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` // 16- or 32-bit autonomous system number - Asn int64 `json:"asn"` - Rir NullableRIR `json:"rir,omitempty"` - Tenant NullableTenant `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 int64 `json:"site_count"` - ProviderCount int64 `json:"provider_count"` + Asn int64 `json:"asn"` + Rir NullableBriefRIR `json:"rir,omitempty"` + Tenant NullableBriefTenant `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + SiteCount *int64 `json:"site_count,omitempty"` + ProviderCount *int64 `json:"provider_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,16 +46,12 @@ type _ASN ASN // 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 NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN { +func NewASN(id int32, url string, display string, asn int64) *ASN { this := ASN{} this.Id = id this.Url = url this.Display = display this.Asn = asn - this.Created = created - this.LastUpdated = lastUpdated - this.SiteCount = siteCount - this.ProviderCount = providerCount return &this } @@ -90,6 +87,7 @@ func (o *ASN) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ASN) GetUrl() string { if o == nil { @@ -114,6 +112,39 @@ func (o *ASN) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ASN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ASN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ASN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ASN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ASN) GetDisplay() string { if o == nil { @@ -138,6 +169,7 @@ func (o *ASN) SetDisplay(v string) { o.Display = v } + // GetAsn returns the Asn field value func (o *ASN) GetAsn() int64 { if o == nil { @@ -162,10 +194,11 @@ func (o *ASN) SetAsn(v int64) { o.Asn = v } + // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetRir() RIR { +func (o *ASN) GetRir() BriefRIR { if o == nil || IsNil(o.Rir.Get()) { - var ret RIR + var ret BriefRIR return ret } return *o.Rir.Get() @@ -174,7 +207,7 @@ func (o *ASN) GetRir() RIR { // GetRirOk returns a tuple with the Rir 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 *ASN) GetRirOk() (*RIR, bool) { +func (o *ASN) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -190,11 +223,10 @@ func (o *ASN) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIR and assigns it to the Rir field. -func (o *ASN) SetRir(v RIR) { +// SetRir gets a reference to the given NullableBriefRIR and assigns it to the Rir field. +func (o *ASN) SetRir(v BriefRIR) { o.Rir.Set(&v) } - // SetRirNil sets the value for Rir to be an explicit nil func (o *ASN) SetRirNil() { o.Rir.Set(nil) @@ -206,9 +238,9 @@ func (o *ASN) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetTenant() Tenant { +func (o *ASN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -217,7 +249,7 @@ func (o *ASN) GetTenant() Tenant { // 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 *ASN) GetTenantOk() (*Tenant, bool) { +func (o *ASN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -233,11 +265,10 @@ func (o *ASN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASN) SetTenantNil() { o.Tenant.Set(nil) @@ -376,18 +407,16 @@ func (o *ASN) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ASN) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ASN) GetCreatedOk() (*time.Time, bool) { @@ -397,23 +426,39 @@ func (o *ASN) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ASN) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ASN) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ASN) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ASN) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ASN) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ASN) GetLastUpdatedOk() (*time.Time, bool) { @@ -423,61 +468,95 @@ func (o *ASN) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ASN) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ASN) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ASN) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ASN) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetSiteCount returns the SiteCount field value +// GetSiteCount returns the SiteCount field value if set, zero value otherwise. func (o *ASN) GetSiteCount() int64 { - if o == nil { + if o == nil || IsNil(o.SiteCount) { var ret int64 return ret } - - return o.SiteCount + return *o.SiteCount } -// GetSiteCountOk returns a tuple with the SiteCount field value +// GetSiteCountOk returns a tuple with the SiteCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ASN) GetSiteCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.SiteCount) { return nil, false } - return &o.SiteCount, true + return o.SiteCount, true } -// SetSiteCount sets field value +// HasSiteCount returns a boolean if a field has been set. +func (o *ASN) HasSiteCount() bool { + if o != nil && !IsNil(o.SiteCount) { + return true + } + + return false +} + +// SetSiteCount gets a reference to the given int64 and assigns it to the SiteCount field. func (o *ASN) SetSiteCount(v int64) { - o.SiteCount = v + o.SiteCount = &v } -// GetProviderCount returns the ProviderCount field value +// GetProviderCount returns the ProviderCount field value if set, zero value otherwise. func (o *ASN) GetProviderCount() int64 { - if o == nil { + if o == nil || IsNil(o.ProviderCount) { var ret int64 return ret } - - return o.ProviderCount + return *o.ProviderCount } -// GetProviderCountOk returns a tuple with the ProviderCount field value +// GetProviderCountOk returns a tuple with the ProviderCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ASN) GetProviderCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.ProviderCount) { return nil, false } - return &o.ProviderCount, true + return o.ProviderCount, true +} + +// HasProviderCount returns a boolean if a field has been set. +func (o *ASN) HasProviderCount() bool { + if o != nil && !IsNil(o.ProviderCount) { + return true + } + + return false } -// SetProviderCount sets field value +// SetProviderCount gets a reference to the given int64 and assigns it to the ProviderCount field. func (o *ASN) SetProviderCount(v int64) { - o.ProviderCount = v + o.ProviderCount = &v } func (o ASN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -488,6 +567,9 @@ func (o ASN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["asn"] = o.Asn if o.Rir.IsSet() { @@ -508,10 +590,18 @@ func (o ASN) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["site_count"] = o.SiteCount - toSerialize["provider_count"] = o.ProviderCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.SiteCount) { + toSerialize["site_count"] = o.SiteCount + } + if !IsNil(o.ProviderCount) { + toSerialize["provider_count"] = o.ProviderCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -529,26 +619,39 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { "url", "display", "asn", - "created", - "last_updated", - "site_count", - "provider_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varASN := _ASN{} err = json.Unmarshal(data, &varASN) @@ -564,6 +667,7 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "asn") delete(additionalProperties, "rir") @@ -617,3 +721,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 037e760ce1..476ccda3fe 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ASNRange type satisfies the MappedNullable interface at compile time @@ -21,21 +21,22 @@ 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 RIR `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableTenant `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Rir BriefRIR `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableBriefTenant `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + AsnCount int32 `json:"asn_count"` AdditionalProperties map[string]interface{} } @@ -45,7 +46,7 @@ type _ASNRange ASNRange // 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 NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { +func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, asnCount int32) *ASNRange { this := ASNRange{} this.Id = id this.Url = url @@ -55,8 +56,6 @@ func NewASNRange(id int32, url string, display string, name string, slug string, this.Rir = rir this.Start = start this.End = end - this.Created = created - this.LastUpdated = lastUpdated this.AsnCount = asnCount return &this } @@ -93,6 +92,7 @@ func (o *ASNRange) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ASNRange) GetUrl() string { if o == nil { @@ -117,6 +117,39 @@ func (o *ASNRange) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ASNRange) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ASNRange) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ASNRange) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ASNRange) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ASNRange) GetDisplay() string { if o == nil { @@ -141,6 +174,7 @@ func (o *ASNRange) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ASNRange) GetName() string { if o == nil { @@ -165,6 +199,7 @@ func (o *ASNRange) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ASNRange) GetSlug() string { if o == nil { @@ -189,10 +224,11 @@ func (o *ASNRange) SetSlug(v string) { o.Slug = v } + // GetRir returns the Rir field value -func (o *ASNRange) GetRir() RIR { +func (o *ASNRange) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -201,7 +237,7 @@ func (o *ASNRange) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRange) GetRirOk() (*RIR, bool) { +func (o *ASNRange) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -209,10 +245,11 @@ func (o *ASNRange) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *ASNRange) SetRir(v RIR) { +func (o *ASNRange) SetRir(v BriefRIR) { o.Rir = v } + // GetStart returns the Start field value func (o *ASNRange) GetStart() int64 { if o == nil { @@ -237,6 +274,7 @@ func (o *ASNRange) SetStart(v int64) { o.Start = v } + // GetEnd returns the End field value func (o *ASNRange) GetEnd() int64 { if o == nil { @@ -261,10 +299,11 @@ func (o *ASNRange) SetEnd(v int64) { o.End = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRange) GetTenant() Tenant { +func (o *ASNRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +312,7 @@ func (o *ASNRange) GetTenant() Tenant { // 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 *ASNRange) GetTenantOk() (*Tenant, bool) { +func (o *ASNRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,11 +328,10 @@ func (o *ASNRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASNRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASNRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASNRange) SetTenantNil() { o.Tenant.Set(nil) @@ -400,18 +438,16 @@ func (o *ASNRange) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ASNRange) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ASNRange) GetCreatedOk() (*time.Time, bool) { @@ -421,23 +457,39 @@ func (o *ASNRange) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ASNRange) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ASNRange) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ASNRange) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ASNRange) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ASNRange) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ASNRange) GetLastUpdatedOk() (*time.Time, bool) { @@ -447,10 +499,28 @@ func (o *ASNRange) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ASNRange) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ASNRange) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ASNRange) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ASNRange) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetAsnCount returns the AsnCount field value func (o *ASNRange) GetAsnCount() int32 { @@ -476,8 +546,9 @@ func (o *ASNRange) SetAsnCount(v int32) { o.AsnCount = v } + func (o ASNRange) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -488,6 +559,9 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -506,8 +580,12 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["asn_count"] = o.AsnCount for key, value := range o.AdditionalProperties { @@ -530,25 +608,40 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { "rir", "start", "end", - "created", - "last_updated", "asn_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varASNRange := _ASNRange{} err = json.Unmarshal(data, &varASNRange) @@ -564,6 +657,7 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -618,3 +712,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 83a9d61da5..58e1b3c91c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &ASNRangeRequest{} // ASNRangeRequest Adds support for custom fields and tags. type ASNRangeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Rir RIRRequest `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableTenantRequest `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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Rir BriefRIRRequest `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableBriefTenantRequest `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{} } @@ -38,7 +38,7 @@ type _ASNRangeRequest ASNRangeRequest // 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 NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64) *ASNRangeRequest { +func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64) *ASNRangeRequest { this := ASNRangeRequest{} this.Name = name this.Slug = slug @@ -80,6 +80,7 @@ func (o *ASNRangeRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ASNRangeRequest) GetSlug() string { if o == nil { @@ -104,10 +105,11 @@ func (o *ASNRangeRequest) SetSlug(v string) { o.Slug = v } + // GetRir returns the Rir field value -func (o *ASNRangeRequest) GetRir() RIRRequest { +func (o *ASNRangeRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -116,7 +118,7 @@ func (o *ASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -124,10 +126,11 @@ func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *ASNRangeRequest) SetRir(v RIRRequest) { +func (o *ASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = v } + // GetStart returns the Start field value func (o *ASNRangeRequest) GetStart() int64 { if o == nil { @@ -152,6 +155,7 @@ func (o *ASNRangeRequest) SetStart(v int64) { o.Start = v } + // GetEnd returns the End field value func (o *ASNRangeRequest) GetEnd() int64 { if o == nil { @@ -176,10 +180,11 @@ func (o *ASNRangeRequest) SetEnd(v int64) { o.End = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRangeRequest) GetTenant() TenantRequest { +func (o *ASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -188,7 +193,7 @@ func (o *ASNRangeRequest) GetTenant() TenantRequest { // 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 *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -204,11 +209,10 @@ func (o *ASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASNRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -316,7 +320,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 } @@ -362,20 +366,37 @@ func (o *ASNRangeRequest) UnmarshalJSON(data []byte) (err error) { "end", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varASNRangeRequest := _ASNRangeRequest{} err = json.Unmarshal(data, &varASNRangeRequest) @@ -439,3 +460,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 2d8e8162f6..c6fc2f9fde 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,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 NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `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 NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `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{} } @@ -75,10 +75,11 @@ func (o *ASNRequest) SetAsn(v int64) { o.Asn = v } + // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetRir() RIRRequest { +func (o *ASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -87,7 +88,7 @@ func (o *ASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir 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 *ASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -103,11 +104,10 @@ func (o *ASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *ASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *ASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } - // SetRirNil sets the value for Rir to be an explicit nil func (o *ASNRequest) SetRirNil() { o.Rir.Set(nil) @@ -119,9 +119,9 @@ func (o *ASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetTenant() TenantRequest { +func (o *ASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -130,7 +130,7 @@ func (o *ASNRequest) GetTenant() TenantRequest { // 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 *ASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -146,11 +146,10 @@ func (o *ASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -290,7 +289,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 } @@ -334,20 +333,37 @@ func (o *ASNRequest) UnmarshalJSON(data []byte) (err error) { "asn", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varASNRequest := _ASNRequest{} err = json.Unmarshal(data, &varASNRequest) @@ -409,3 +425,5 @@ func (v *NullableASNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_authentication.go b/model_authentication.go index 9642d196ed..d947b1a4b6 100644 --- a/model_authentication.go +++ b/model_authentication.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ type Authentication string // List of Authentication const ( - AUTHENTICATION_HMAC_SHA1 Authentication = "hmac-sha1" + AUTHENTICATION_HMAC_SHA1 Authentication = "hmac-sha1" AUTHENTICATION_HMAC_SHA256 Authentication = "hmac-sha256" AUTHENTICATION_HMAC_SHA384 Authentication = "hmac-sha384" AUTHENTICATION_HMAC_SHA512 Authentication = "hmac-sha512" - AUTHENTICATION_HMAC_MD5 Authentication = "hmac-md5" - AUTHENTICATION_EMPTY Authentication = "" + AUTHENTICATION_HMAC_MD5 Authentication = "hmac-md5" + AUTHENTICATION_EMPTY Authentication = "" ) // All allowed values of Authentication enum @@ -116,3 +116,4 @@ func (v *NullableAuthentication) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go index 1c9752516c..7dc32046d6 100644 --- a/model_authentication_cipher.go +++ b/model_authentication_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type AuthenticationCipher string // List of Authentication_cipher const ( - AUTHENTICATIONCIPHER_AUTO AuthenticationCipher = "auto" - AUTHENTICATIONCIPHER_TKIP AuthenticationCipher = "tkip" - AUTHENTICATIONCIPHER_AES AuthenticationCipher = "aes" + AUTHENTICATIONCIPHER_AUTO AuthenticationCipher = "auto" + AUTHENTICATIONCIPHER_TKIP AuthenticationCipher = "tkip" + AUTHENTICATIONCIPHER_AES AuthenticationCipher = "aes" AUTHENTICATIONCIPHER_EMPTY AuthenticationCipher = "" ) @@ -112,3 +112,4 @@ func (v *NullableAuthenticationCipher) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_authentication_type.go b/model_authentication_type.go index 87147a4874..5ebfeb398b 100644 --- a/model_authentication_type.go +++ b/model_authentication_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type AuthenticationType string // List of Authentication_type const ( AUTHENTICATIONTYPE_PLAINTEXT AuthenticationType = "plaintext" - AUTHENTICATIONTYPE_MD5 AuthenticationType = "md5" - AUTHENTICATIONTYPE_EMPTY AuthenticationType = "" + AUTHENTICATIONTYPE_MD5 AuthenticationType = "md5" + AUTHENTICATIONTYPE_EMPTY AuthenticationType = "" ) // All allowed values of AuthenticationType enum @@ -110,3 +110,4 @@ func (v *NullableAuthenticationType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go index 7c661a0a62..fa63dfc104 100644 --- a/model_authentication_type_1.go +++ b/model_authentication_type_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ type AuthenticationType1 string // List of Authentication_type_1 const ( - AUTHENTICATIONTYPE1_OPEN AuthenticationType1 = "open" - AUTHENTICATIONTYPE1_WEP AuthenticationType1 = "wep" - AUTHENTICATIONTYPE1_WPA_PERSONAL AuthenticationType1 = "wpa-personal" + AUTHENTICATIONTYPE1_OPEN AuthenticationType1 = "open" + AUTHENTICATIONTYPE1_WEP AuthenticationType1 = "wep" + AUTHENTICATIONTYPE1_WPA_PERSONAL AuthenticationType1 = "wpa-personal" AUTHENTICATIONTYPE1_WPA_ENTERPRISE AuthenticationType1 = "wpa-enterprise" - AUTHENTICATIONTYPE1_EMPTY AuthenticationType1 = "" + AUTHENTICATIONTYPE1_EMPTY AuthenticationType1 = "" ) // All allowed values of AuthenticationType1 enum @@ -114,3 +114,4 @@ func (v *NullableAuthenticationType1) 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 e398bbbb2f..97de497f24 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableASN{} // AvailableASN Representation of an ASN which does not exist in the database. type AvailableASN struct { - Asn int32 `json:"asn"` - Description *string `json:"description,omitempty"` + Asn int32 `json:"asn"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -69,6 +69,7 @@ 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) { @@ -102,7 +103,7 @@ func (o *AvailableASN) SetDescription(v string) { } func (o AvailableASN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -131,20 +132,37 @@ func (o *AvailableASN) UnmarshalJSON(data []byte) (err error) { "asn", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varAvailableASN := _AvailableASN{} err = json.Unmarshal(data, &varAvailableASN) @@ -201,3 +219,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 b06e6140ca..bd5f9c42c3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,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 NullableVRF `json:"vrf"` - Description *string `json:"description,omitempty"` + Family int32 `json:"family"` + Address string `json:"address"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,11 +33,10 @@ type _AvailableIP AvailableIP // 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 NewAvailableIP(family int32, address string, vrf NullableVRF) *AvailableIP { +func NewAvailableIP(family int32, address string) *AvailableIP { this := AvailableIP{} this.Family = family this.Address = address - this.Vrf = vrf return &this } @@ -73,6 +72,7 @@ func (o *AvailableIP) SetFamily(v int32) { o.Family = v } + // GetAddress returns the Address field value func (o *AvailableIP) GetAddress() string { if o == nil { @@ -97,31 +97,48 @@ func (o *AvailableIP) SetAddress(v string) { o.Address = v } -// GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailableIP) GetVrf() VRF { - if o == nil || o.Vrf.Get() == nil { - var ret VRF + +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AvailableIP) GetVrf() BriefVRF { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRF return ret } - return *o.Vrf.Get() } -// GetVrfOk returns a tuple with the Vrf field value +// GetVrfOk returns a tuple with the Vrf 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 *AvailableIP) GetVrfOk() (*VRF, bool) { +func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } return o.Vrf.Get(), o.Vrf.IsSet() } -// SetVrf sets field value -func (o *AvailableIP) SetVrf(v VRF) { +// HasVrf returns a boolean if a field has been set. +func (o *AvailableIP) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *AvailableIP) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *AvailableIP) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *AvailableIP) UnsetVrf() { + o.Vrf.Unset() +} // GetDescription returns the Description field value if set, zero value otherwise. func (o *AvailableIP) GetDescription() string { @@ -156,7 +173,7 @@ func (o *AvailableIP) SetDescription(v string) { } func (o AvailableIP) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -167,7 +184,9 @@ func (o AvailableIP) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["family"] = o.Family toSerialize["address"] = o.Address - toSerialize["vrf"] = o.Vrf.Get() + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -186,23 +205,39 @@ func (o *AvailableIP) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "family", "address", - "vrf", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varAvailableIP := _AvailableIP{} err = json.Unmarshal(data, &varAvailableIP) @@ -261,3 +296,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 6efa0386c8..516dee986a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,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 NullableVRF `json:"vrf"` + Family int32 `json:"family"` + Prefix string `json:"prefix"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,11 +32,10 @@ type _AvailablePrefix AvailablePrefix // 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 NewAvailablePrefix(family int32, prefix string, vrf NullableVRF) *AvailablePrefix { +func NewAvailablePrefix(family int32, prefix string) *AvailablePrefix { this := AvailablePrefix{} this.Family = family this.Prefix = prefix - this.Vrf = vrf return &this } @@ -72,6 +71,7 @@ func (o *AvailablePrefix) SetFamily(v int32) { o.Family = v } + // GetPrefix returns the Prefix field value func (o *AvailablePrefix) GetPrefix() string { if o == nil { @@ -96,34 +96,51 @@ func (o *AvailablePrefix) SetPrefix(v string) { o.Prefix = v } -// GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailablePrefix) GetVrf() VRF { - if o == nil || o.Vrf.Get() == nil { - var ret VRF + +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AvailablePrefix) GetVrf() BriefVRF { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRF return ret } - return *o.Vrf.Get() } -// GetVrfOk returns a tuple with the Vrf field value +// GetVrfOk returns a tuple with the Vrf 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 *AvailablePrefix) GetVrfOk() (*VRF, bool) { +func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } return o.Vrf.Get(), o.Vrf.IsSet() } -// SetVrf sets field value -func (o *AvailablePrefix) SetVrf(v VRF) { +// HasVrf returns a boolean if a field has been set. +func (o *AvailablePrefix) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *AvailablePrefix) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *AvailablePrefix) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *AvailablePrefix) UnsetVrf() { + o.Vrf.Unset() +} func (o AvailablePrefix) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -134,7 +151,9 @@ func (o AvailablePrefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix - toSerialize["vrf"] = o.Vrf.Get() + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -150,23 +169,39 @@ func (o *AvailablePrefix) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "family", "prefix", - "vrf", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varAvailablePrefix := _AvailablePrefix{} err = json.Unmarshal(data, &varAvailablePrefix) @@ -224,3 +259,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 8228b8d059..e4220e3626 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableVLAN{} // AvailableVLAN Representation of a VLAN which does not exist in the database. type AvailableVLAN struct { - Vid int32 `json:"vid"` - Group NullableVLANGroup `json:"group"` + Vid int32 `json:"vid"` + Group NullableBriefVLANGroup `json:"group,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,10 +31,9 @@ type _AvailableVLAN AvailableVLAN // 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 NewAvailableVLAN(vid int32, group NullableVLANGroup) *AvailableVLAN { +func NewAvailableVLAN(vid int32) *AvailableVLAN { this := AvailableVLAN{} this.Vid = vid - this.Group = group return &this } @@ -70,34 +69,51 @@ func (o *AvailableVLAN) SetVid(v int32) { o.Vid = v } -// GetGroup returns the Group field value -// If the value is explicit nil, the zero value for VLANGroup will be returned -func (o *AvailableVLAN) GetGroup() VLANGroup { - if o == nil || o.Group.Get() == nil { - var ret VLANGroup + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AvailableVLAN) GetGroup() BriefVLANGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroup return ret } - return *o.Group.Get() } -// GetGroupOk returns a tuple with the Group field value +// GetGroupOk returns a tuple with the Group 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 *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { +func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool) { if o == nil { return nil, false } return o.Group.Get(), o.Group.IsSet() } -// SetGroup sets field value -func (o *AvailableVLAN) SetGroup(v VLANGroup) { +// HasGroup returns a boolean if a field has been set. +func (o *AvailableVLAN) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroup and assigns it to the Group field. +func (o *AvailableVLAN) SetGroup(v BriefVLANGroup) { o.Group.Set(&v) } +// SetGroupNil sets the value for Group to be an explicit nil +func (o *AvailableVLAN) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *AvailableVLAN) UnsetGroup() { + o.Group.Unset() +} func (o AvailableVLAN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -107,7 +123,9 @@ func (o AvailableVLAN) MarshalJSON() ([]byte, error) { func (o AvailableVLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["vid"] = o.Vid - toSerialize["group"] = o.Group.Get() + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -122,23 +140,39 @@ func (o *AvailableVLAN) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "vid", - "group", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varAvailableVLAN := _AvailableVLAN{} err = json.Unmarshal(data, &varAvailableVLAN) @@ -195,3 +229,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 index 6552b0da19..c318c90055 100644 --- a/model_bookmark.go +++ b/model_bookmark.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Bookmark type satisfies the MappedNullable interface at compile time @@ -21,14 +21,14 @@ 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 interface{} `json:"object"` - User User `json:"user"` - Created time.Time `json:"created"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object,omitempty"` + User BriefUser `json:"user"` + Created *time.Time `json:"created,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,16 +38,14 @@ type _Bookmark Bookmark // 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 interface{}, user User, created time.Time) *Bookmark { +func NewBookmark(id int32, url string, display string, objectType string, objectId int64, user BriefUser) *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 } @@ -83,6 +81,7 @@ func (o *Bookmark) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Bookmark) GetUrl() string { if o == nil { @@ -107,6 +106,7 @@ func (o *Bookmark) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *Bookmark) GetDisplay() string { if o == nil { @@ -131,6 +131,7 @@ func (o *Bookmark) SetDisplay(v string) { o.Display = v } + // GetObjectType returns the ObjectType field value func (o *Bookmark) GetObjectType() string { if o == nil { @@ -155,6 +156,7 @@ func (o *Bookmark) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *Bookmark) GetObjectId() int64 { if o == nil { @@ -179,18 +181,17 @@ 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 interface{} will be returned + +// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Bookmark) GetObject() interface{} { if o == nil { var ret interface{} return ret } - return o.Object } -// GetObjectOk returns a tuple with the Object field value +// GetObjectOk returns a tuple with the Object 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 *Bookmark) GetObjectOk() (*interface{}, bool) { @@ -200,15 +201,24 @@ func (o *Bookmark) GetObjectOk() (*interface{}, bool) { return &o.Object, true } -// SetObject sets field value +// HasObject returns a boolean if a field has been set. +func (o *Bookmark) HasObject() bool { + if o != nil && !IsNil(o.Object) { + return true + } + + return false +} + +// SetObject gets a reference to the given interface{} and assigns it to the Object field. func (o *Bookmark) SetObject(v interface{}) { o.Object = v } // GetUser returns the User field value -func (o *Bookmark) GetUser() User { +func (o *Bookmark) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -217,7 +227,7 @@ func (o *Bookmark) GetUser() 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() (*User, bool) { +func (o *Bookmark) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -225,36 +235,45 @@ func (o *Bookmark) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Bookmark) SetUser(v User) { +func (o *Bookmark) SetUser(v BriefUser) { o.User = v } -// GetCreated returns the Created field value + +// GetCreated returns the Created field value if set, zero value otherwise. func (o *Bookmark) GetCreated() time.Time { - if o == nil { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } - - return o.Created + return *o.Created } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Bookmark) GetCreatedOk() (*time.Time, bool) { - if o == nil { + if o == nil || IsNil(o.Created) { return nil, false } - return &o.Created, true + return o.Created, true } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Bookmark) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given time.Time and assigns it to the Created field. func (o *Bookmark) SetCreated(v time.Time) { - o.Created = v + o.Created = &v } func (o Bookmark) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -272,7 +291,9 @@ func (o Bookmark) ToMap() (map[string]interface{}, error) { toSerialize["object"] = o.Object } toSerialize["user"] = o.User - toSerialize["created"] = o.Created + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -291,25 +312,40 @@ func (o *Bookmark) UnmarshalJSON(data []byte) (err error) { "display", "object_type", "object_id", - "object", "user", - "created", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varBookmark := _Bookmark{} err = json.Unmarshal(data, &varBookmark) @@ -372,3 +408,5 @@ 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 index 22932dcd2c..9a3f001ec2 100644 --- a/model_bookmark_request.go +++ b/model_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ 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 UserRequest `json:"user"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _BookmarkRequest BookmarkRequest // 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 UserRequest) *BookmarkRequest { +func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest) *BookmarkRequest { this := BookmarkRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -72,6 +72,7 @@ func (o *BookmarkRequest) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *BookmarkRequest) GetObjectId() int64 { if o == nil { @@ -96,10 +97,11 @@ func (o *BookmarkRequest) SetObjectId(v int64) { o.ObjectId = v } + // GetUser returns the User field value -func (o *BookmarkRequest) GetUser() UserRequest { +func (o *BookmarkRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -108,7 +110,7 @@ func (o *BookmarkRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -116,12 +118,13 @@ func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *BookmarkRequest) SetUser(v UserRequest) { +func (o *BookmarkRequest) SetUser(v BriefUserRequest) { o.User = v } + func (o BookmarkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -151,20 +154,37 @@ func (o *BookmarkRequest) UnmarshalJSON(data []byte) (err error) { "user", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varBookmarkRequest := _BookmarkRequest{} err = json.Unmarshal(data, &varBookmarkRequest) @@ -222,3 +242,5 @@ func (v *NullableBookmarkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_brief_cable.go b/model_brief_cable.go new file mode 100644 index 0000000000..044bc2b59d --- /dev/null +++ b/model_brief_cable.go @@ -0,0 +1,320 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCable type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCable{} + +// BriefCable Adds support for custom fields and tags. +type BriefCable struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCable BriefCable + +// NewBriefCable instantiates a new BriefCable 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 NewBriefCable(id int32, url string, display string) *BriefCable { + this := BriefCable{} + this.Id = id + this.Url = url + this.Display = display + return &this +} + +// NewBriefCableWithDefaults instantiates a new BriefCable 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 NewBriefCableWithDefaults() *BriefCable { + this := BriefCable{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCable) 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 *BriefCable) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCable) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefCable) 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 *BriefCable) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCable) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefCable) 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 *BriefCable) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCable) SetDisplay(v string) { + o.Display = v +} + + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCable) 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 *BriefCable) 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 *BriefCable) 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 *BriefCable) SetLabel(v string) { + o.Label = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCable) 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 *BriefCable) 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 *BriefCable) 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 *BriefCable) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCable) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCable) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCable) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCable := _BriefCable{} + + err = json.Unmarshal(data, &varBriefCable) + + if err != nil { + return err + } + + *o = BriefCable(varBriefCable) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "label") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCable struct { + value *BriefCable + isSet bool +} + +func (v NullableBriefCable) Get() *BriefCable { + return v.value +} + +func (v *NullableBriefCable) Set(val *BriefCable) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCable) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCable) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCable(val *BriefCable) *NullableBriefCable { + return &NullableBriefCable{value: val, isSet: true} +} + +func (v NullableBriefCable) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCable) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cable_request.go b/model_brief_cable_request.go new file mode 100644 index 0000000000..5dc91012b9 --- /dev/null +++ b/model_brief_cable_request.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefCableRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCableRequest{} + +// BriefCableRequest Adds support for custom fields and tags. +type BriefCableRequest struct { + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCableRequest BriefCableRequest + +// NewBriefCableRequest instantiates a new BriefCableRequest 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 NewBriefCableRequest() *BriefCableRequest { + this := BriefCableRequest{} + return &this +} + +// NewBriefCableRequestWithDefaults instantiates a new BriefCableRequest 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 NewBriefCableRequestWithDefaults() *BriefCableRequest { + this := BriefCableRequest{} + return &this +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCableRequest) 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 *BriefCableRequest) 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 *BriefCableRequest) 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 *BriefCableRequest) SetLabel(v string) { + o.Label = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCableRequest) 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 *BriefCableRequest) 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 *BriefCableRequest) 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 *BriefCableRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCableRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCableRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCableRequest) UnmarshalJSON(data []byte) (err error) { + varBriefCableRequest := _BriefCableRequest{} + + err = json.Unmarshal(data, &varBriefCableRequest) + + if err != nil { + return err + } + + *o = BriefCableRequest(varBriefCableRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "label") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCableRequest struct { + value *BriefCableRequest + isSet bool +} + +func (v NullableBriefCableRequest) Get() *BriefCableRequest { + return v.value +} + +func (v *NullableBriefCableRequest) Set(val *BriefCableRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCableRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCableRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCableRequest(val *BriefCableRequest) *NullableBriefCableRequest { + return &NullableBriefCableRequest{value: val, isSet: true} +} + +func (v NullableBriefCableRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCableRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit.go b/model_brief_circuit.go new file mode 100644 index 0000000000..11d8cc1152 --- /dev/null +++ b/model_brief_circuit.go @@ -0,0 +1,344 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuit{} + +// BriefCircuit Adds support for custom fields and tags. +type BriefCircuit struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Unique circuit ID + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuit BriefCircuit + +// NewBriefCircuit instantiates a new BriefCircuit 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 NewBriefCircuit(id int32, url string, display string, cid string, provider BriefProvider) *BriefCircuit { + this := BriefCircuit{} + this.Id = id + this.Url = url + this.Display = display + this.Cid = cid + this.Provider = provider + return &this +} + +// NewBriefCircuitWithDefaults instantiates a new BriefCircuit 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 NewBriefCircuitWithDefaults() *BriefCircuit { + this := BriefCircuit{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuit) 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 *BriefCircuit) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuit) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefCircuit) 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 *BriefCircuit) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuit) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefCircuit) 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 *BriefCircuit) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuit) SetDisplay(v string) { + o.Display = v +} + + +// GetCid returns the Cid field value +func (o *BriefCircuit) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefCircuit) SetCid(v string) { + o.Cid = v +} + + +// GetProvider returns the Provider field value +func (o *BriefCircuit) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *BriefCircuit) SetProvider(v BriefProvider) { + o.Provider = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuit) 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 *BriefCircuit) 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 *BriefCircuit) 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 *BriefCircuit) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuit) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "cid", + "provider", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuit := _BriefCircuit{} + + err = json.Unmarshal(data, &varBriefCircuit) + + if err != nil { + return err + } + + *o = BriefCircuit(varBriefCircuit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuit struct { + value *BriefCircuit + isSet bool +} + +func (v NullableBriefCircuit) Get() *BriefCircuit { + return v.value +} + +func (v *NullableBriefCircuit) Set(val *BriefCircuit) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuit) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuit(val *BriefCircuit) *NullableBriefCircuit { + return &NullableBriefCircuit{value: val, isSet: true} +} + +func (v NullableBriefCircuit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group.go b/model_brief_circuit_group.go new file mode 100644 index 0000000000..8c367e9932 --- /dev/null +++ b/model_brief_circuit_group.go @@ -0,0 +1,276 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroup{} + +// BriefCircuitGroup Adds support for custom fields and tags. +type BriefCircuitGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroup BriefCircuitGroup + +// NewBriefCircuitGroup instantiates a new BriefCircuitGroup 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 NewBriefCircuitGroup(id int32, url string, display string, name string) *BriefCircuitGroup { + this := BriefCircuitGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefCircuitGroupWithDefaults instantiates a new BriefCircuitGroup 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 NewBriefCircuitGroupWithDefaults() *BriefCircuitGroup { + this := BriefCircuitGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitGroup) 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 *BriefCircuitGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefCircuitGroup) 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 *BriefCircuitGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefCircuitGroup) 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 *BriefCircuitGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefCircuitGroup) 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 *BriefCircuitGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitGroup) SetName(v string) { + o.Name = v +} + + +func (o BriefCircuitGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroup) 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 + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuitGroup := _BriefCircuitGroup{} + + err = json.Unmarshal(data, &varBriefCircuitGroup) + + if err != nil { + return err + } + + *o = BriefCircuitGroup(varBriefCircuitGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroup struct { + value *BriefCircuitGroup + isSet bool +} + +func (v NullableBriefCircuitGroup) Get() *BriefCircuitGroup { + return v.value +} + +func (v *NullableBriefCircuitGroup) Set(val *BriefCircuitGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroup(val *BriefCircuitGroup) *NullableBriefCircuitGroup { + return &NullableBriefCircuitGroup{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_assignment_serializer_.go b/model_brief_circuit_group_assignment_serializer_.go new file mode 100644 index 0000000000..a7d104f57c --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer_.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupAssignmentSerializer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializer{} + +// BriefCircuitGroupAssignmentSerializer Base serializer for group assignments under CircuitSerializer. +type BriefCircuitGroupAssignmentSerializer struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializer BriefCircuitGroupAssignmentSerializer + +// NewBriefCircuitGroupAssignmentSerializer instantiates a new BriefCircuitGroupAssignmentSerializer 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 NewBriefCircuitGroupAssignmentSerializer(id int32, url string, display string, group BriefCircuitGroup) *BriefCircuitGroupAssignmentSerializer { + this := BriefCircuitGroupAssignmentSerializer{} + this.Id = id + this.Url = url + this.Display = display + this.Group = group + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializer 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 NewBriefCircuitGroupAssignmentSerializerWithDefaults() *BriefCircuitGroupAssignmentSerializer { + this := BriefCircuitGroupAssignmentSerializer{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitGroupAssignmentSerializer) 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 *BriefCircuitGroupAssignmentSerializer) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefCircuitGroupAssignmentSerializer) 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 *BriefCircuitGroupAssignmentSerializer) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefCircuitGroupAssignmentSerializer) 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 *BriefCircuitGroupAssignmentSerializer) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetDisplay(v string) { + o.Display = v +} + + +// GetGroup returns the Group field value +func (o *BriefCircuitGroupAssignmentSerializer) GetGroup() BriefCircuitGroup { + if o == nil { + var ret BriefCircuitGroup + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetGroupOk() (*BriefCircuitGroup, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetGroup(v BriefCircuitGroup) { + o.Group = v +} + + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializer) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriority + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializer) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *BriefCircuitGroupAssignmentSerializer) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { + o.Priority = &v +} + +func (o BriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["group"] = o.Group + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializer) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "group", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuitGroupAssignmentSerializer := _BriefCircuitGroupAssignmentSerializer{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializer) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializer(varBriefCircuitGroupAssignmentSerializer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "group") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializer struct { + value *BriefCircuitGroupAssignmentSerializer + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) Get() *BriefCircuitGroupAssignmentSerializer { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) Set(val *BriefCircuitGroupAssignmentSerializer) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializer(val *BriefCircuitGroupAssignmentSerializer) *NullableBriefCircuitGroupAssignmentSerializer { + return &NullableBriefCircuitGroupAssignmentSerializer{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_assignment_serializer__priority.go b/model_brief_circuit_group_assignment_serializer__priority.go new file mode 100644 index 0000000000..33fc209ff8 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefCircuitGroupAssignmentSerializerPriority type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerPriority{} + +// BriefCircuitGroupAssignmentSerializerPriority struct for BriefCircuitGroupAssignmentSerializerPriority +type BriefCircuitGroupAssignmentSerializerPriority struct { + Value *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"value,omitempty"` + Label *BriefCircuitGroupAssignmentSerializerPriorityLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializerPriority BriefCircuitGroupAssignmentSerializerPriority + +// NewBriefCircuitGroupAssignmentSerializerPriority instantiates a new BriefCircuitGroupAssignmentSerializerPriority 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 NewBriefCircuitGroupAssignmentSerializerPriority() *BriefCircuitGroupAssignmentSerializerPriority { + this := BriefCircuitGroupAssignmentSerializerPriority{} + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerPriority 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 NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults() *BriefCircuitGroupAssignmentSerializerPriority { + this := BriefCircuitGroupAssignmentSerializerPriority{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValue() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Value) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + 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 *BriefCircuitGroupAssignmentSerializerPriority) GetValueOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, 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 *BriefCircuitGroupAssignmentSerializerPriority) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Value field. +func (o *BriefCircuitGroupAssignmentSerializerPriority) SetValue(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabel() BriefCircuitGroupAssignmentSerializerPriorityLabel { + if o == nil || IsNil(o.Label) { + var ret BriefCircuitGroupAssignmentSerializerPriorityLabel + 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 *BriefCircuitGroupAssignmentSerializerPriority) GetLabelOk() (*BriefCircuitGroupAssignmentSerializerPriorityLabel, 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 *BriefCircuitGroupAssignmentSerializerPriority) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityLabel and assigns it to the Label field. +func (o *BriefCircuitGroupAssignmentSerializerPriority) SetLabel(v BriefCircuitGroupAssignmentSerializerPriorityLabel) { + o.Label = &v +} + +func (o BriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializerPriority) 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 *BriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(data []byte) (err error) { + varBriefCircuitGroupAssignmentSerializerPriority := _BriefCircuitGroupAssignmentSerializerPriority{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializerPriority) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializerPriority(varBriefCircuitGroupAssignmentSerializerPriority) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializerPriority struct { + value *BriefCircuitGroupAssignmentSerializerPriority + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) Get() *BriefCircuitGroupAssignmentSerializerPriority { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) Set(val *BriefCircuitGroupAssignmentSerializerPriority) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriority(val *BriefCircuitGroupAssignmentSerializerPriority) *NullableBriefCircuitGroupAssignmentSerializerPriority { + return &NullableBriefCircuitGroupAssignmentSerializerPriority{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_assignment_serializer__priority_label.go b/model_brief_circuit_group_assignment_serializer__priority_label.go new file mode 100644 index 0000000000..3ae4db3c69 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefCircuitGroupAssignmentSerializerPriorityLabel the model 'BriefCircuitGroupAssignmentSerializerPriorityLabel' +type BriefCircuitGroupAssignmentSerializerPriorityLabel string + +// List of BriefCircuitGroupAssignmentSerializer__priority_label +const ( + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Secondary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityLabel = "Inactive" +) + +// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityLabel enum +var AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues = []BriefCircuitGroupAssignmentSerializerPriorityLabel{ + "Primary", + "Secondary", + "Tertiary", + "Inactive", +} + +func (v *BriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefCircuitGroupAssignmentSerializerPriorityLabel(value) + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefCircuitGroupAssignmentSerializerPriorityLabel", value) +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityLabelFromValue returns a pointer to a valid BriefCircuitGroupAssignmentSerializerPriorityLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefCircuitGroupAssignmentSerializerPriorityLabelFromValue(v string) (*BriefCircuitGroupAssignmentSerializerPriorityLabel, error) { + ev := BriefCircuitGroupAssignmentSerializerPriorityLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefCircuitGroupAssignmentSerializerPriorityLabel: valid values are %v", v, AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefCircuitGroupAssignmentSerializerPriorityLabel) IsValid() bool { + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefCircuitGroupAssignmentSerializer__priority_label value +func (v BriefCircuitGroupAssignmentSerializerPriorityLabel) Ptr() *BriefCircuitGroupAssignmentSerializerPriorityLabel { + return &v +} + +type NullableBriefCircuitGroupAssignmentSerializerPriorityLabel struct { + value *BriefCircuitGroupAssignmentSerializerPriorityLabel + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Get() *BriefCircuitGroupAssignmentSerializerPriorityLabel { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Set(val *BriefCircuitGroupAssignmentSerializerPriorityLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriorityLabel(val *BriefCircuitGroupAssignmentSerializerPriorityLabel) *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel { + return &NullableBriefCircuitGroupAssignmentSerializerPriorityLabel{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_circuit_group_assignment_serializer__priority_value.go b/model_brief_circuit_group_assignment_serializer__priority_value.go new file mode 100644 index 0000000000..e97beae17b --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefCircuitGroupAssignmentSerializerPriorityValue * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +type BriefCircuitGroupAssignmentSerializerPriorityValue string + +// List of BriefCircuitGroupAssignmentSerializer__priority_value +const ( + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityValue = "primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityValue = "secondary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityValue = "tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityValue = "inactive" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_EMPTY BriefCircuitGroupAssignmentSerializerPriorityValue = "" +) + +// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityValue enum +var AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues = []BriefCircuitGroupAssignmentSerializerPriorityValue{ + "primary", + "secondary", + "tertiary", + "inactive", + "", +} + +func (v *BriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefCircuitGroupAssignmentSerializerPriorityValue(value) + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefCircuitGroupAssignmentSerializerPriorityValue", value) +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityValueFromValue returns a pointer to a valid BriefCircuitGroupAssignmentSerializerPriorityValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefCircuitGroupAssignmentSerializerPriorityValueFromValue(v string) (*BriefCircuitGroupAssignmentSerializerPriorityValue, error) { + ev := BriefCircuitGroupAssignmentSerializerPriorityValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefCircuitGroupAssignmentSerializerPriorityValue: valid values are %v", v, AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefCircuitGroupAssignmentSerializerPriorityValue) IsValid() bool { + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefCircuitGroupAssignmentSerializer__priority_value value +func (v BriefCircuitGroupAssignmentSerializerPriorityValue) Ptr() *BriefCircuitGroupAssignmentSerializerPriorityValue { + return &v +} + +type NullableBriefCircuitGroupAssignmentSerializerPriorityValue struct { + value *BriefCircuitGroupAssignmentSerializerPriorityValue + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Get() *BriefCircuitGroupAssignmentSerializerPriorityValue { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Set(val *BriefCircuitGroupAssignmentSerializerPriorityValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriorityValue(val *BriefCircuitGroupAssignmentSerializerPriorityValue) *NullableBriefCircuitGroupAssignmentSerializerPriorityValue { + return &NullableBriefCircuitGroupAssignmentSerializerPriorityValue{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_circuit_group_assignment_serializer_request.go b/model_brief_circuit_group_assignment_serializer_request.go new file mode 100644 index 0000000000..de443fc170 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupAssignmentSerializerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerRequest{} + +// BriefCircuitGroupAssignmentSerializerRequest Base serializer for group assignments under CircuitSerializer. +type BriefCircuitGroupAssignmentSerializerRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializerRequest BriefCircuitGroupAssignmentSerializerRequest + +// NewBriefCircuitGroupAssignmentSerializerRequest instantiates a new BriefCircuitGroupAssignmentSerializerRequest 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 NewBriefCircuitGroupAssignmentSerializerRequest(group BriefCircuitGroupRequest) *BriefCircuitGroupAssignmentSerializerRequest { + this := BriefCircuitGroupAssignmentSerializerRequest{} + this.Group = group + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerRequest 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 NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults() *BriefCircuitGroupAssignmentSerializerRequest { + this := BriefCircuitGroupAssignmentSerializerRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *BriefCircuitGroupAssignmentSerializerRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *BriefCircuitGroupAssignmentSerializerRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +func (o BriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuitGroupAssignmentSerializerRequest := _BriefCircuitGroupAssignmentSerializerRequest{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializerRequest) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializerRequest(varBriefCircuitGroupAssignmentSerializerRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializerRequest struct { + value *BriefCircuitGroupAssignmentSerializerRequest + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) Get() *BriefCircuitGroupAssignmentSerializerRequest { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) Set(val *BriefCircuitGroupAssignmentSerializerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerRequest(val *BriefCircuitGroupAssignmentSerializerRequest) *NullableBriefCircuitGroupAssignmentSerializerRequest { + return &NullableBriefCircuitGroupAssignmentSerializerRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_request.go b/model_brief_circuit_group_request.go new file mode 100644 index 0000000000..a5576413f4 --- /dev/null +++ b/model_brief_circuit_group_request.go @@ -0,0 +1,186 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupRequest{} + +// BriefCircuitGroupRequest Adds support for custom fields and tags. +type BriefCircuitGroupRequest struct { + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupRequest BriefCircuitGroupRequest + +// NewBriefCircuitGroupRequest instantiates a new BriefCircuitGroupRequest 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 NewBriefCircuitGroupRequest(name string) *BriefCircuitGroupRequest { + this := BriefCircuitGroupRequest{} + this.Name = name + return &this +} + +// NewBriefCircuitGroupRequestWithDefaults instantiates a new BriefCircuitGroupRequest 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 NewBriefCircuitGroupRequestWithDefaults() *BriefCircuitGroupRequest { + this := BriefCircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCircuitGroupRequest) 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 *BriefCircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitGroupRequest) SetName(v string) { + o.Name = v +} + + +func (o BriefCircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupRequest) 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 *BriefCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuitGroupRequest := _BriefCircuitGroupRequest{} + + err = json.Unmarshal(data, &varBriefCircuitGroupRequest) + + if err != nil { + return err + } + + *o = BriefCircuitGroupRequest(varBriefCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupRequest struct { + value *BriefCircuitGroupRequest + isSet bool +} + +func (v NullableBriefCircuitGroupRequest) Get() *BriefCircuitGroupRequest { + return v.value +} + +func (v *NullableBriefCircuitGroupRequest) Set(val *BriefCircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupRequest(val *BriefCircuitGroupRequest) *NullableBriefCircuitGroupRequest { + return &NullableBriefCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_request.go b/model_brief_circuit_request.go new file mode 100644 index 0000000000..d647fca7eb --- /dev/null +++ b/model_brief_circuit_request.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitRequest{} + +// BriefCircuitRequest Adds support for custom fields and tags. +type BriefCircuitRequest struct { + // Unique circuit ID + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitRequest BriefCircuitRequest + +// NewBriefCircuitRequest instantiates a new BriefCircuitRequest 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 NewBriefCircuitRequest(cid string, provider BriefProviderRequest) *BriefCircuitRequest { + this := BriefCircuitRequest{} + this.Cid = cid + this.Provider = provider + return &this +} + +// NewBriefCircuitRequestWithDefaults instantiates a new BriefCircuitRequest 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 NewBriefCircuitRequestWithDefaults() *BriefCircuitRequest { + this := BriefCircuitRequest{} + return &this +} + +// GetCid returns the Cid field value +func (o *BriefCircuitRequest) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefCircuitRequest) SetCid(v string) { + o.Cid = v +} + + +// GetProvider returns the Provider field value +func (o *BriefCircuitRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *BriefCircuitRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitRequest) 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 *BriefCircuitRequest) 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 *BriefCircuitRequest) 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 *BriefCircuitRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuitRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cid", + "provider", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuitRequest := _BriefCircuitRequest{} + + err = json.Unmarshal(data, &varBriefCircuitRequest) + + if err != nil { + return err + } + + *o = BriefCircuitRequest(varBriefCircuitRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitRequest struct { + value *BriefCircuitRequest + isSet bool +} + +func (v NullableBriefCircuitRequest) Get() *BriefCircuitRequest { + return v.value +} + +func (v *NullableBriefCircuitRequest) Set(val *BriefCircuitRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitRequest(val *BriefCircuitRequest) *NullableBriefCircuitRequest { + return &NullableBriefCircuitRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_type.go b/model_brief_circuit_type.go new file mode 100644 index 0000000000..bed11756eb --- /dev/null +++ b/model_brief_circuit_type.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitType{} + +// BriefCircuitType Adds support for custom fields and tags. +type BriefCircuitType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitType BriefCircuitType + +// NewBriefCircuitType instantiates a new BriefCircuitType 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 NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefCircuitType { + this := BriefCircuitType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.CircuitCount = circuitCount + return &this +} + +// NewBriefCircuitTypeWithDefaults instantiates a new BriefCircuitType 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 NewBriefCircuitTypeWithDefaults() *BriefCircuitType { + this := BriefCircuitType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitType) 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 *BriefCircuitType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefCircuitType) 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 *BriefCircuitType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefCircuitType) 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 *BriefCircuitType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitType) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefCircuitType) 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 *BriefCircuitType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitType) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefCircuitType) 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 *BriefCircuitType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefCircuitType) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitType) 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 *BriefCircuitType) 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 *BriefCircuitType) 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 *BriefCircuitType) SetDescription(v string) { + o.Description = &v +} + +// GetCircuitCount returns the CircuitCount field value +func (o *BriefCircuitType) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *BriefCircuitType) SetCircuitCount(v int64) { + o.CircuitCount = v +} + + +func (o BriefCircuitType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitType) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "circuit_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuitType := _BriefCircuitType{} + + err = json.Unmarshal(data, &varBriefCircuitType) + + if err != nil { + return err + } + + *o = BriefCircuitType(varBriefCircuitType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitType struct { + value *BriefCircuitType + isSet bool +} + +func (v NullableBriefCircuitType) Get() *BriefCircuitType { + return v.value +} + +func (v *NullableBriefCircuitType) Set(val *BriefCircuitType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitType(val *BriefCircuitType) *NullableBriefCircuitType { + return &NullableBriefCircuitType{value: val, isSet: true} +} + +func (v NullableBriefCircuitType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_type_request.go b/model_brief_circuit_type_request.go new file mode 100644 index 0000000000..3c9940113c --- /dev/null +++ b/model_brief_circuit_type_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitTypeRequest{} + +// BriefCircuitTypeRequest Adds support for custom fields and tags. +type BriefCircuitTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitTypeRequest BriefCircuitTypeRequest + +// NewBriefCircuitTypeRequest instantiates a new BriefCircuitTypeRequest 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 NewBriefCircuitTypeRequest(name string, slug string) *BriefCircuitTypeRequest { + this := BriefCircuitTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefCircuitTypeRequestWithDefaults instantiates a new BriefCircuitTypeRequest 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 NewBriefCircuitTypeRequestWithDefaults() *BriefCircuitTypeRequest { + this := BriefCircuitTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCircuitTypeRequest) 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 *BriefCircuitTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitTypeRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefCircuitTypeRequest) 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 *BriefCircuitTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefCircuitTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitTypeRequest) 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 *BriefCircuitTypeRequest) 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 *BriefCircuitTypeRequest) 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 *BriefCircuitTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuitTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCircuitTypeRequest := _BriefCircuitTypeRequest{} + + err = json.Unmarshal(data, &varBriefCircuitTypeRequest) + + if err != nil { + return err + } + + *o = BriefCircuitTypeRequest(varBriefCircuitTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitTypeRequest struct { + value *BriefCircuitTypeRequest + isSet bool +} + +func (v NullableBriefCircuitTypeRequest) Get() *BriefCircuitTypeRequest { + return v.value +} + +func (v *NullableBriefCircuitTypeRequest) Set(val *BriefCircuitTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitTypeRequest(val *BriefCircuitTypeRequest) *NullableBriefCircuitTypeRequest { + return &NullableBriefCircuitTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster.go b/model_brief_cluster.go new file mode 100644 index 0000000000..1b4a9ccbb6 --- /dev/null +++ b/model_brief_cluster.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCluster type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCluster{} + +// BriefCluster Adds support for custom fields and tags. +type BriefCluster struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCluster BriefCluster + +// NewBriefCluster instantiates a new BriefCluster 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 NewBriefCluster(id int32, url string, display string, name string) *BriefCluster { + this := BriefCluster{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefClusterWithDefaults instantiates a new BriefCluster 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 NewBriefClusterWithDefaults() *BriefCluster { + this := BriefCluster{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCluster) 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 *BriefCluster) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCluster) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefCluster) 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 *BriefCluster) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCluster) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefCluster) 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 *BriefCluster) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCluster) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefCluster) 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 *BriefCluster) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCluster) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCluster) 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 *BriefCluster) 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 *BriefCluster) 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 *BriefCluster) SetDescription(v string) { + o.Description = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *BriefCluster) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *BriefCluster) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *BriefCluster) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +func (o BriefCluster) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCluster) 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.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCluster) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCluster := _BriefCluster{} + + err = json.Unmarshal(data, &varBriefCluster) + + if err != nil { + return err + } + + *o = BriefCluster(varBriefCluster) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCluster struct { + value *BriefCluster + isSet bool +} + +func (v NullableBriefCluster) Get() *BriefCluster { + return v.value +} + +func (v *NullableBriefCluster) Set(val *BriefCluster) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCluster(val *BriefCluster) *NullableBriefCluster { + return &NullableBriefCluster{value: val, isSet: true} +} + +func (v NullableBriefCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_group.go b/model_brief_cluster_group.go new file mode 100644 index 0000000000..4153d5cdd6 --- /dev/null +++ b/model_brief_cluster_group.go @@ -0,0 +1,380 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterGroup{} + +// BriefClusterGroup Adds support for custom fields and tags. +type BriefClusterGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + ClusterCount *int64 `json:"cluster_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterGroup BriefClusterGroup + +// NewBriefClusterGroup instantiates a new BriefClusterGroup 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 NewBriefClusterGroup(id int32, url string, display string, name string, slug string) *BriefClusterGroup { + this := BriefClusterGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterGroupWithDefaults instantiates a new BriefClusterGroup 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 NewBriefClusterGroupWithDefaults() *BriefClusterGroup { + this := BriefClusterGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefClusterGroup) 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 *BriefClusterGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefClusterGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefClusterGroup) 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 *BriefClusterGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefClusterGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefClusterGroup) 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 *BriefClusterGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefClusterGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefClusterGroup) 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 *BriefClusterGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefClusterGroup) 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 *BriefClusterGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterGroup) 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 *BriefClusterGroup) 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 *BriefClusterGroup) 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 *BriefClusterGroup) SetDescription(v string) { + o.Description = &v +} + +// GetClusterCount returns the ClusterCount field value if set, zero value otherwise. +func (o *BriefClusterGroup) GetClusterCount() int64 { + if o == nil || IsNil(o.ClusterCount) { + var ret int64 + return ret + } + return *o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetClusterCountOk() (*int64, bool) { + if o == nil || IsNil(o.ClusterCount) { + return nil, false + } + return o.ClusterCount, true +} + +// HasClusterCount returns a boolean if a field has been set. +func (o *BriefClusterGroup) HasClusterCount() bool { + if o != nil && !IsNil(o.ClusterCount) { + return true + } + + return false +} + +// SetClusterCount gets a reference to the given int64 and assigns it to the ClusterCount field. +func (o *BriefClusterGroup) SetClusterCount(v int64) { + o.ClusterCount = &v +} + +func (o BriefClusterGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterGroup) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.ClusterCount) { + toSerialize["cluster_count"] = o.ClusterCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefClusterGroup := _BriefClusterGroup{} + + err = json.Unmarshal(data, &varBriefClusterGroup) + + if err != nil { + return err + } + + *o = BriefClusterGroup(varBriefClusterGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "cluster_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterGroup struct { + value *BriefClusterGroup + isSet bool +} + +func (v NullableBriefClusterGroup) Get() *BriefClusterGroup { + return v.value +} + +func (v *NullableBriefClusterGroup) Set(val *BriefClusterGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterGroup(val *BriefClusterGroup) *NullableBriefClusterGroup { + return &NullableBriefClusterGroup{value: val, isSet: true} +} + +func (v NullableBriefClusterGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_group_request.go b/model_brief_cluster_group_request.go new file mode 100644 index 0000000000..756a8d8cac --- /dev/null +++ b/model_brief_cluster_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterGroupRequest{} + +// BriefClusterGroupRequest Adds support for custom fields and tags. +type BriefClusterGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterGroupRequest BriefClusterGroupRequest + +// NewBriefClusterGroupRequest instantiates a new BriefClusterGroupRequest 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 NewBriefClusterGroupRequest(name string, slug string) *BriefClusterGroupRequest { + this := BriefClusterGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterGroupRequestWithDefaults instantiates a new BriefClusterGroupRequest 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 NewBriefClusterGroupRequestWithDefaults() *BriefClusterGroupRequest { + this := BriefClusterGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterGroupRequest) 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 *BriefClusterGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefClusterGroupRequest) 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 *BriefClusterGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterGroupRequest) 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 *BriefClusterGroupRequest) 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 *BriefClusterGroupRequest) 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 *BriefClusterGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefClusterGroupRequest := _BriefClusterGroupRequest{} + + err = json.Unmarshal(data, &varBriefClusterGroupRequest) + + if err != nil { + return err + } + + *o = BriefClusterGroupRequest(varBriefClusterGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterGroupRequest struct { + value *BriefClusterGroupRequest + isSet bool +} + +func (v NullableBriefClusterGroupRequest) Get() *BriefClusterGroupRequest { + return v.value +} + +func (v *NullableBriefClusterGroupRequest) Set(val *BriefClusterGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterGroupRequest(val *BriefClusterGroupRequest) *NullableBriefClusterGroupRequest { + return &NullableBriefClusterGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_request.go b/model_brief_cluster_request.go new file mode 100644 index 0000000000..6d51876ba4 --- /dev/null +++ b/model_brief_cluster_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterRequest{} + +// BriefClusterRequest Adds support for custom fields and tags. +type BriefClusterRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterRequest BriefClusterRequest + +// NewBriefClusterRequest instantiates a new BriefClusterRequest 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 NewBriefClusterRequest(name string) *BriefClusterRequest { + this := BriefClusterRequest{} + this.Name = name + return &this +} + +// NewBriefClusterRequestWithDefaults instantiates a new BriefClusterRequest 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 NewBriefClusterRequestWithDefaults() *BriefClusterRequest { + this := BriefClusterRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterRequest) 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 *BriefClusterRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterRequest) 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 *BriefClusterRequest) 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 *BriefClusterRequest) 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 *BriefClusterRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefClusterRequest := _BriefClusterRequest{} + + err = json.Unmarshal(data, &varBriefClusterRequest) + + if err != nil { + return err + } + + *o = BriefClusterRequest(varBriefClusterRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterRequest struct { + value *BriefClusterRequest + isSet bool +} + +func (v NullableBriefClusterRequest) Get() *BriefClusterRequest { + return v.value +} + +func (v *NullableBriefClusterRequest) Set(val *BriefClusterRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterRequest(val *BriefClusterRequest) *NullableBriefClusterRequest { + return &NullableBriefClusterRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_type.go b/model_brief_cluster_type.go new file mode 100644 index 0000000000..df6233e17b --- /dev/null +++ b/model_brief_cluster_type.go @@ -0,0 +1,380 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterType{} + +// BriefClusterType Adds support for custom fields and tags. +type BriefClusterType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + ClusterCount *int64 `json:"cluster_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterType BriefClusterType + +// NewBriefClusterType instantiates a new BriefClusterType 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 NewBriefClusterType(id int32, url string, display string, name string, slug string) *BriefClusterType { + this := BriefClusterType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterTypeWithDefaults instantiates a new BriefClusterType 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 NewBriefClusterTypeWithDefaults() *BriefClusterType { + this := BriefClusterType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefClusterType) 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 *BriefClusterType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefClusterType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefClusterType) 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 *BriefClusterType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefClusterType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefClusterType) 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 *BriefClusterType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefClusterType) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefClusterType) 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 *BriefClusterType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterType) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefClusterType) 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 *BriefClusterType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterType) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterType) 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 *BriefClusterType) 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 *BriefClusterType) 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 *BriefClusterType) SetDescription(v string) { + o.Description = &v +} + +// GetClusterCount returns the ClusterCount field value if set, zero value otherwise. +func (o *BriefClusterType) GetClusterCount() int64 { + if o == nil || IsNil(o.ClusterCount) { + var ret int64 + return ret + } + return *o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetClusterCountOk() (*int64, bool) { + if o == nil || IsNil(o.ClusterCount) { + return nil, false + } + return o.ClusterCount, true +} + +// HasClusterCount returns a boolean if a field has been set. +func (o *BriefClusterType) HasClusterCount() bool { + if o != nil && !IsNil(o.ClusterCount) { + return true + } + + return false +} + +// SetClusterCount gets a reference to the given int64 and assigns it to the ClusterCount field. +func (o *BriefClusterType) SetClusterCount(v int64) { + o.ClusterCount = &v +} + +func (o BriefClusterType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterType) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.ClusterCount) { + toSerialize["cluster_count"] = o.ClusterCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefClusterType := _BriefClusterType{} + + err = json.Unmarshal(data, &varBriefClusterType) + + if err != nil { + return err + } + + *o = BriefClusterType(varBriefClusterType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "cluster_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterType struct { + value *BriefClusterType + isSet bool +} + +func (v NullableBriefClusterType) Get() *BriefClusterType { + return v.value +} + +func (v *NullableBriefClusterType) Set(val *BriefClusterType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterType(val *BriefClusterType) *NullableBriefClusterType { + return &NullableBriefClusterType{value: val, isSet: true} +} + +func (v NullableBriefClusterType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_type_request.go b/model_brief_cluster_type_request.go new file mode 100644 index 0000000000..5a790253f1 --- /dev/null +++ b/model_brief_cluster_type_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterTypeRequest{} + +// BriefClusterTypeRequest Adds support for custom fields and tags. +type BriefClusterTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterTypeRequest BriefClusterTypeRequest + +// NewBriefClusterTypeRequest instantiates a new BriefClusterTypeRequest 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 NewBriefClusterTypeRequest(name string, slug string) *BriefClusterTypeRequest { + this := BriefClusterTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterTypeRequestWithDefaults instantiates a new BriefClusterTypeRequest 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 NewBriefClusterTypeRequestWithDefaults() *BriefClusterTypeRequest { + this := BriefClusterTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterTypeRequest) 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 *BriefClusterTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterTypeRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefClusterTypeRequest) 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 *BriefClusterTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterTypeRequest) 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 *BriefClusterTypeRequest) 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 *BriefClusterTypeRequest) 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 *BriefClusterTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefClusterTypeRequest := _BriefClusterTypeRequest{} + + err = json.Unmarshal(data, &varBriefClusterTypeRequest) + + if err != nil { + return err + } + + *o = BriefClusterTypeRequest(varBriefClusterTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterTypeRequest struct { + value *BriefClusterTypeRequest + isSet bool +} + +func (v NullableBriefClusterTypeRequest) Get() *BriefClusterTypeRequest { + return v.value +} + +func (v *NullableBriefClusterTypeRequest) Set(val *BriefClusterTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterTypeRequest(val *BriefClusterTypeRequest) *NullableBriefClusterTypeRequest { + return &NullableBriefClusterTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_config_template.go b/model_brief_config_template.go new file mode 100644 index 0000000000..0866d19c8b --- /dev/null +++ b/model_brief_config_template.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefConfigTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefConfigTemplate{} + +// BriefConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). +type BriefConfigTemplate struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefConfigTemplate BriefConfigTemplate + +// NewBriefConfigTemplate instantiates a new BriefConfigTemplate 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 NewBriefConfigTemplate(id int32, url string, display string, name string) *BriefConfigTemplate { + this := BriefConfigTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefConfigTemplateWithDefaults instantiates a new BriefConfigTemplate 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 NewBriefConfigTemplateWithDefaults() *BriefConfigTemplate { + this := BriefConfigTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefConfigTemplate) 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 *BriefConfigTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefConfigTemplate) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefConfigTemplate) 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 *BriefConfigTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefConfigTemplate) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefConfigTemplate) 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 *BriefConfigTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefConfigTemplate) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefConfigTemplate) 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 *BriefConfigTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefConfigTemplate) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefConfigTemplate) 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 *BriefConfigTemplate) 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 *BriefConfigTemplate) 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 *BriefConfigTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefConfigTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefConfigTemplate) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefConfigTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefConfigTemplate := _BriefConfigTemplate{} + + err = json.Unmarshal(data, &varBriefConfigTemplate) + + if err != nil { + return err + } + + *o = BriefConfigTemplate(varBriefConfigTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefConfigTemplate struct { + value *BriefConfigTemplate + isSet bool +} + +func (v NullableBriefConfigTemplate) Get() *BriefConfigTemplate { + return v.value +} + +func (v *NullableBriefConfigTemplate) Set(val *BriefConfigTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefConfigTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefConfigTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefConfigTemplate(val *BriefConfigTemplate) *NullableBriefConfigTemplate { + return &NullableBriefConfigTemplate{value: val, isSet: true} +} + +func (v NullableBriefConfigTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefConfigTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_config_template_request.go b/model_brief_config_template_request.go new file mode 100644 index 0000000000..f614af76af --- /dev/null +++ b/model_brief_config_template_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefConfigTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefConfigTemplateRequest{} + +// BriefConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). +type BriefConfigTemplateRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefConfigTemplateRequest BriefConfigTemplateRequest + +// NewBriefConfigTemplateRequest instantiates a new BriefConfigTemplateRequest 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 NewBriefConfigTemplateRequest(name string) *BriefConfigTemplateRequest { + this := BriefConfigTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefConfigTemplateRequestWithDefaults instantiates a new BriefConfigTemplateRequest 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 NewBriefConfigTemplateRequestWithDefaults() *BriefConfigTemplateRequest { + this := BriefConfigTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefConfigTemplateRequest) 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 *BriefConfigTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefConfigTemplateRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefConfigTemplateRequest) 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 *BriefConfigTemplateRequest) 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 *BriefConfigTemplateRequest) 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 *BriefConfigTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefConfigTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefConfigTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefConfigTemplateRequest := _BriefConfigTemplateRequest{} + + err = json.Unmarshal(data, &varBriefConfigTemplateRequest) + + if err != nil { + return err + } + + *o = BriefConfigTemplateRequest(varBriefConfigTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefConfigTemplateRequest struct { + value *BriefConfigTemplateRequest + isSet bool +} + +func (v NullableBriefConfigTemplateRequest) Get() *BriefConfigTemplateRequest { + return v.value +} + +func (v *NullableBriefConfigTemplateRequest) Set(val *BriefConfigTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefConfigTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefConfigTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefConfigTemplateRequest(val *BriefConfigTemplateRequest) *NullableBriefConfigTemplateRequest { + return &NullableBriefConfigTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefConfigTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefConfigTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact.go b/model_brief_contact.go new file mode 100644 index 0000000000..b8c6d6fd85 --- /dev/null +++ b/model_brief_contact.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContact{} + +// BriefContact Adds support for custom fields and tags. +type BriefContact struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContact BriefContact + +// NewBriefContact instantiates a new BriefContact 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 NewBriefContact(id int32, url string, display string, name string) *BriefContact { + this := BriefContact{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefContactWithDefaults instantiates a new BriefContact 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 NewBriefContactWithDefaults() *BriefContact { + this := BriefContact{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContact) 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 *BriefContact) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContact) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefContact) 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 *BriefContact) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContact) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefContact) 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 *BriefContact) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContact) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefContact) 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 *BriefContact) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContact) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContact) 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 *BriefContact) 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 *BriefContact) 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 *BriefContact) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContact) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContact) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefContact := _BriefContact{} + + err = json.Unmarshal(data, &varBriefContact) + + if err != nil { + return err + } + + *o = BriefContact(varBriefContact) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContact struct { + value *BriefContact + isSet bool +} + +func (v NullableBriefContact) Get() *BriefContact { + return v.value +} + +func (v *NullableBriefContact) Set(val *BriefContact) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContact) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContact(val *BriefContact) *NullableBriefContact { + return &NullableBriefContact{value: val, isSet: true} +} + +func (v NullableBriefContact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_group.go b/model_brief_contact_group.go new file mode 100644 index 0000000000..141e240e90 --- /dev/null +++ b/model_brief_contact_group.go @@ -0,0 +1,403 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactGroup{} + +// BriefContactGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefContactGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + ContactCount int32 `json:"contact_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactGroup BriefContactGroup + +// NewBriefContactGroup instantiates a new BriefContactGroup 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 NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32) *BriefContactGroup { + this := BriefContactGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.ContactCount = contactCount + this.Depth = depth + return &this +} + +// NewBriefContactGroupWithDefaults instantiates a new BriefContactGroup 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 NewBriefContactGroupWithDefaults() *BriefContactGroup { + this := BriefContactGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContactGroup) 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 *BriefContactGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContactGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefContactGroup) 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 *BriefContactGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContactGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefContactGroup) 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 *BriefContactGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContactGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefContactGroup) 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 *BriefContactGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefContactGroup) 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 *BriefContactGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactGroup) 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 *BriefContactGroup) 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 *BriefContactGroup) 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 *BriefContactGroup) SetDescription(v string) { + o.Description = &v +} + +// GetContactCount returns the ContactCount field value +func (o *BriefContactGroup) GetContactCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ContactCount +} + +// GetContactCountOk returns a tuple with the ContactCount field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetContactCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ContactCount, true +} + +// SetContactCount sets field value +func (o *BriefContactGroup) SetContactCount(v int32) { + o.ContactCount = v +} + + +// GetDepth returns the Depth field value +func (o *BriefContactGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefContactGroup) SetDepth(v int32) { + o.Depth = v +} + + +func (o BriefContactGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactGroup) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["contact_count"] = o.ContactCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "contact_count", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefContactGroup := _BriefContactGroup{} + + err = json.Unmarshal(data, &varBriefContactGroup) + + if err != nil { + return err + } + + *o = BriefContactGroup(varBriefContactGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "contact_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactGroup struct { + value *BriefContactGroup + isSet bool +} + +func (v NullableBriefContactGroup) Get() *BriefContactGroup { + return v.value +} + +func (v *NullableBriefContactGroup) Set(val *BriefContactGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactGroup(val *BriefContactGroup) *NullableBriefContactGroup { + return &NullableBriefContactGroup{value: val, isSet: true} +} + +func (v NullableBriefContactGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_group_request.go b/model_brief_contact_group_request.go new file mode 100644 index 0000000000..3edd1d1db1 --- /dev/null +++ b/model_brief_contact_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactGroupRequest{} + +// BriefContactGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefContactGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactGroupRequest BriefContactGroupRequest + +// NewBriefContactGroupRequest instantiates a new BriefContactGroupRequest 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 NewBriefContactGroupRequest(name string, slug string) *BriefContactGroupRequest { + this := BriefContactGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactGroupRequestWithDefaults instantiates a new BriefContactGroupRequest 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 NewBriefContactGroupRequestWithDefaults() *BriefContactGroupRequest { + this := BriefContactGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactGroupRequest) 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 *BriefContactGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefContactGroupRequest) 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 *BriefContactGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactGroupRequest) 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 *BriefContactGroupRequest) 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 *BriefContactGroupRequest) 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 *BriefContactGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefContactGroupRequest := _BriefContactGroupRequest{} + + err = json.Unmarshal(data, &varBriefContactGroupRequest) + + if err != nil { + return err + } + + *o = BriefContactGroupRequest(varBriefContactGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactGroupRequest struct { + value *BriefContactGroupRequest + isSet bool +} + +func (v NullableBriefContactGroupRequest) Get() *BriefContactGroupRequest { + return v.value +} + +func (v *NullableBriefContactGroupRequest) Set(val *BriefContactGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactGroupRequest(val *BriefContactGroupRequest) *NullableBriefContactGroupRequest { + return &NullableBriefContactGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefContactGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_request.go b/model_brief_contact_request.go new file mode 100644 index 0000000000..205c6a4fe4 --- /dev/null +++ b/model_brief_contact_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRequest{} + +// BriefContactRequest Adds support for custom fields and tags. +type BriefContactRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRequest BriefContactRequest + +// NewBriefContactRequest instantiates a new BriefContactRequest 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 NewBriefContactRequest(name string) *BriefContactRequest { + this := BriefContactRequest{} + this.Name = name + return &this +} + +// NewBriefContactRequestWithDefaults instantiates a new BriefContactRequest 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 NewBriefContactRequestWithDefaults() *BriefContactRequest { + this := BriefContactRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactRequest) 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 *BriefContactRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRequest) 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 *BriefContactRequest) 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 *BriefContactRequest) 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 *BriefContactRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefContactRequest := _BriefContactRequest{} + + err = json.Unmarshal(data, &varBriefContactRequest) + + if err != nil { + return err + } + + *o = BriefContactRequest(varBriefContactRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRequest struct { + value *BriefContactRequest + isSet bool +} + +func (v NullableBriefContactRequest) Get() *BriefContactRequest { + return v.value +} + +func (v *NullableBriefContactRequest) Set(val *BriefContactRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRequest(val *BriefContactRequest) *NullableBriefContactRequest { + return &NullableBriefContactRequest{value: val, isSet: true} +} + +func (v NullableBriefContactRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_role.go b/model_brief_contact_role.go new file mode 100644 index 0000000000..6b8922478f --- /dev/null +++ b/model_brief_contact_role.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRole{} + +// BriefContactRole Adds support for custom fields and tags. +type BriefContactRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRole BriefContactRole + +// NewBriefContactRole instantiates a new BriefContactRole 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 NewBriefContactRole(id int32, url string, display string, name string, slug string) *BriefContactRole { + this := BriefContactRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactRoleWithDefaults instantiates a new BriefContactRole 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 NewBriefContactRoleWithDefaults() *BriefContactRole { + this := BriefContactRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContactRole) 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 *BriefContactRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContactRole) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefContactRole) 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 *BriefContactRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContactRole) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefContactRole) 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 *BriefContactRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContactRole) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefContactRole) 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 *BriefContactRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRole) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefContactRole) 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 *BriefContactRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactRole) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRole) 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 *BriefContactRole) 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 *BriefContactRole) 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 *BriefContactRole) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRole) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefContactRole := _BriefContactRole{} + + err = json.Unmarshal(data, &varBriefContactRole) + + if err != nil { + return err + } + + *o = BriefContactRole(varBriefContactRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRole struct { + value *BriefContactRole + isSet bool +} + +func (v NullableBriefContactRole) Get() *BriefContactRole { + return v.value +} + +func (v *NullableBriefContactRole) Set(val *BriefContactRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRole(val *BriefContactRole) *NullableBriefContactRole { + return &NullableBriefContactRole{value: val, isSet: true} +} + +func (v NullableBriefContactRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_role_request.go b/model_brief_contact_role_request.go new file mode 100644 index 0000000000..f0fdaaafc9 --- /dev/null +++ b/model_brief_contact_role_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRoleRequest{} + +// BriefContactRoleRequest Adds support for custom fields and tags. +type BriefContactRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRoleRequest BriefContactRoleRequest + +// NewBriefContactRoleRequest instantiates a new BriefContactRoleRequest 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 NewBriefContactRoleRequest(name string, slug string) *BriefContactRoleRequest { + this := BriefContactRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactRoleRequestWithDefaults instantiates a new BriefContactRoleRequest 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 NewBriefContactRoleRequestWithDefaults() *BriefContactRoleRequest { + this := BriefContactRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactRoleRequest) 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 *BriefContactRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRoleRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefContactRoleRequest) 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 *BriefContactRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactRoleRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRoleRequest) 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 *BriefContactRoleRequest) 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 *BriefContactRoleRequest) 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 *BriefContactRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefContactRoleRequest := _BriefContactRoleRequest{} + + err = json.Unmarshal(data, &varBriefContactRoleRequest) + + if err != nil { + return err + } + + *o = BriefContactRoleRequest(varBriefContactRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRoleRequest struct { + value *BriefContactRoleRequest + isSet bool +} + +func (v NullableBriefContactRoleRequest) Get() *BriefContactRoleRequest { + return v.value +} + +func (v *NullableBriefContactRoleRequest) Set(val *BriefContactRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRoleRequest(val *BriefContactRoleRequest) *NullableBriefContactRoleRequest { + return &NullableBriefContactRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefContactRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_custom_field_choice_set.go b/model_brief_custom_field_choice_set.go new file mode 100644 index 0000000000..58c058d9b2 --- /dev/null +++ b/model_brief_custom_field_choice_set.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCustomFieldChoiceSet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCustomFieldChoiceSet{} + +// BriefCustomFieldChoiceSet 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 BriefCustomFieldChoiceSet struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + ChoicesCount string `json:"choices_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefCustomFieldChoiceSet BriefCustomFieldChoiceSet + +// NewBriefCustomFieldChoiceSet instantiates a new BriefCustomFieldChoiceSet 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 NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string) *BriefCustomFieldChoiceSet { + this := BriefCustomFieldChoiceSet{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.ChoicesCount = choicesCount + return &this +} + +// NewBriefCustomFieldChoiceSetWithDefaults instantiates a new BriefCustomFieldChoiceSet 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 NewBriefCustomFieldChoiceSetWithDefaults() *BriefCustomFieldChoiceSet { + this := BriefCustomFieldChoiceSet{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCustomFieldChoiceSet) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCustomFieldChoiceSet) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCustomFieldChoiceSet) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCustomFieldChoiceSet) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) SetDescription(v string) { + o.Description = &v +} + +// GetChoicesCount returns the ChoicesCount field value +func (o *BriefCustomFieldChoiceSet) 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 *BriefCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChoicesCount, true +} + +// SetChoicesCount sets field value +func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string) { + o.ChoicesCount = v +} + + +func (o BriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCustomFieldChoiceSet) 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 + } + toSerialize["choices_count"] = o.ChoicesCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "choices_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCustomFieldChoiceSet := _BriefCustomFieldChoiceSet{} + + err = json.Unmarshal(data, &varBriefCustomFieldChoiceSet) + + if err != nil { + return err + } + + *o = BriefCustomFieldChoiceSet(varBriefCustomFieldChoiceSet) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "choices_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCustomFieldChoiceSet struct { + value *BriefCustomFieldChoiceSet + isSet bool +} + +func (v NullableBriefCustomFieldChoiceSet) Get() *BriefCustomFieldChoiceSet { + return v.value +} + +func (v *NullableBriefCustomFieldChoiceSet) Set(val *BriefCustomFieldChoiceSet) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCustomFieldChoiceSet) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCustomFieldChoiceSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCustomFieldChoiceSet(val *BriefCustomFieldChoiceSet) *NullableBriefCustomFieldChoiceSet { + return &NullableBriefCustomFieldChoiceSet{value: val, isSet: true} +} + +func (v NullableBriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCustomFieldChoiceSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_custom_field_choice_set_request.go b/model_brief_custom_field_choice_set_request.go new file mode 100644 index 0000000000..4a779a85e0 --- /dev/null +++ b/model_brief_custom_field_choice_set_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCustomFieldChoiceSetRequest{} + +// BriefCustomFieldChoiceSetRequest 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 BriefCustomFieldChoiceSetRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCustomFieldChoiceSetRequest BriefCustomFieldChoiceSetRequest + +// NewBriefCustomFieldChoiceSetRequest instantiates a new BriefCustomFieldChoiceSetRequest 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 NewBriefCustomFieldChoiceSetRequest(name string) *BriefCustomFieldChoiceSetRequest { + this := BriefCustomFieldChoiceSetRequest{} + this.Name = name + return &this +} + +// NewBriefCustomFieldChoiceSetRequestWithDefaults instantiates a new BriefCustomFieldChoiceSetRequest 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 NewBriefCustomFieldChoiceSetRequestWithDefaults() *BriefCustomFieldChoiceSetRequest { + this := BriefCustomFieldChoiceSetRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCustomFieldChoiceSetRequest) 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 *BriefCustomFieldChoiceSetRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCustomFieldChoiceSetRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCustomFieldChoiceSetRequest) 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 *BriefCustomFieldChoiceSetRequest) 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 *BriefCustomFieldChoiceSetRequest) 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 *BriefCustomFieldChoiceSetRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefCustomFieldChoiceSetRequest := _BriefCustomFieldChoiceSetRequest{} + + err = json.Unmarshal(data, &varBriefCustomFieldChoiceSetRequest) + + if err != nil { + return err + } + + *o = BriefCustomFieldChoiceSetRequest(varBriefCustomFieldChoiceSetRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCustomFieldChoiceSetRequest struct { + value *BriefCustomFieldChoiceSetRequest + isSet bool +} + +func (v NullableBriefCustomFieldChoiceSetRequest) Get() *BriefCustomFieldChoiceSetRequest { + return v.value +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) Set(val *BriefCustomFieldChoiceSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCustomFieldChoiceSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCustomFieldChoiceSetRequest(val *BriefCustomFieldChoiceSetRequest) *NullableBriefCustomFieldChoiceSetRequest { + return &NullableBriefCustomFieldChoiceSetRequest{value: val, isSet: true} +} + +func (v NullableBriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_data_file.go b/model_brief_data_file.go new file mode 100644 index 0000000000..0a369232e8 --- /dev/null +++ b/model_brief_data_file.go @@ -0,0 +1,277 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataFile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataFile{} + +// BriefDataFile Adds support for custom fields and tags. +type BriefDataFile struct { + 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"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataFile BriefDataFile + +// NewBriefDataFile instantiates a new BriefDataFile 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 NewBriefDataFile(id int32, url string, display string, path string) *BriefDataFile { + this := BriefDataFile{} + this.Id = id + this.Url = url + this.Display = display + this.Path = path + return &this +} + +// NewBriefDataFileWithDefaults instantiates a new BriefDataFile 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 NewBriefDataFileWithDefaults() *BriefDataFile { + this := BriefDataFile{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDataFile) 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 *BriefDataFile) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDataFile) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefDataFile) 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 *BriefDataFile) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDataFile) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefDataFile) 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 *BriefDataFile) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDataFile) SetDisplay(v string) { + o.Display = v +} + + +// GetPath returns the Path field value +func (o *BriefDataFile) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *BriefDataFile) SetPath(v string) { + o.Path = v +} + + +func (o BriefDataFile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataFile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + 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 + } + + return toSerialize, nil +} + +func (o *BriefDataFile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "path", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDataFile := _BriefDataFile{} + + err = json.Unmarshal(data, &varBriefDataFile) + + if err != nil { + return err + } + + *o = BriefDataFile(varBriefDataFile) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "path") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataFile struct { + value *BriefDataFile + isSet bool +} + +func (v NullableBriefDataFile) Get() *BriefDataFile { + return v.value +} + +func (v *NullableBriefDataFile) Set(val *BriefDataFile) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataFile) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataFile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataFile(val *BriefDataFile) *NullableBriefDataFile { + return &NullableBriefDataFile{value: val, isSet: true} +} + +func (v NullableBriefDataFile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataFile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_data_source.go b/model_brief_data_source.go new file mode 100644 index 0000000000..e161303d08 --- /dev/null +++ b/model_brief_data_source.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataSource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataSource{} + +// BriefDataSource Adds support for custom fields and tags. +type BriefDataSource struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataSource BriefDataSource + +// NewBriefDataSource instantiates a new BriefDataSource 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 NewBriefDataSource(id int32, url string, display string, name string) *BriefDataSource { + this := BriefDataSource{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefDataSourceWithDefaults instantiates a new BriefDataSource 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 NewBriefDataSourceWithDefaults() *BriefDataSource { + this := BriefDataSource{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDataSource) 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 *BriefDataSource) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDataSource) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefDataSource) 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 *BriefDataSource) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDataSource) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefDataSource) 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 *BriefDataSource) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDataSource) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefDataSource) 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 *BriefDataSource) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDataSource) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDataSource) 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 *BriefDataSource) 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 *BriefDataSource) 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 *BriefDataSource) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDataSource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataSource) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataSource) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDataSource := _BriefDataSource{} + + err = json.Unmarshal(data, &varBriefDataSource) + + if err != nil { + return err + } + + *o = BriefDataSource(varBriefDataSource) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataSource struct { + value *BriefDataSource + isSet bool +} + +func (v NullableBriefDataSource) Get() *BriefDataSource { + return v.value +} + +func (v *NullableBriefDataSource) Set(val *BriefDataSource) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataSource) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataSource(val *BriefDataSource) *NullableBriefDataSource { + return &NullableBriefDataSource{value: val, isSet: true} +} + +func (v NullableBriefDataSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_data_source_request.go b/model_brief_data_source_request.go new file mode 100644 index 0000000000..22196854b1 --- /dev/null +++ b/model_brief_data_source_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataSourceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataSourceRequest{} + +// BriefDataSourceRequest Adds support for custom fields and tags. +type BriefDataSourceRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataSourceRequest BriefDataSourceRequest + +// NewBriefDataSourceRequest instantiates a new BriefDataSourceRequest 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 NewBriefDataSourceRequest(name string) *BriefDataSourceRequest { + this := BriefDataSourceRequest{} + this.Name = name + return &this +} + +// NewBriefDataSourceRequestWithDefaults instantiates a new BriefDataSourceRequest 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 NewBriefDataSourceRequestWithDefaults() *BriefDataSourceRequest { + this := BriefDataSourceRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefDataSourceRequest) 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 *BriefDataSourceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDataSourceRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDataSourceRequest) 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 *BriefDataSourceRequest) 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 *BriefDataSourceRequest) 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 *BriefDataSourceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDataSourceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataSourceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataSourceRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDataSourceRequest := _BriefDataSourceRequest{} + + err = json.Unmarshal(data, &varBriefDataSourceRequest) + + if err != nil { + return err + } + + *o = BriefDataSourceRequest(varBriefDataSourceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataSourceRequest struct { + value *BriefDataSourceRequest + isSet bool +} + +func (v NullableBriefDataSourceRequest) Get() *BriefDataSourceRequest { + return v.value +} + +func (v *NullableBriefDataSourceRequest) Set(val *BriefDataSourceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataSourceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataSourceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataSourceRequest(val *BriefDataSourceRequest) *NullableBriefDataSourceRequest { + return &NullableBriefDataSourceRequest{value: val, isSet: true} +} + +func (v NullableBriefDataSourceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataSourceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device.go b/model_brief_device.go new file mode 100644 index 0000000000..8746e5193e --- /dev/null +++ b/model_brief_device.go @@ -0,0 +1,330 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDevice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDevice{} + +// BriefDevice Adds support for custom fields and tags. +type BriefDevice struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDevice BriefDevice + +// NewBriefDevice instantiates a new BriefDevice 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 NewBriefDevice(id int32, url string, display string) *BriefDevice { + this := BriefDevice{} + this.Id = id + this.Url = url + this.Display = display + return &this +} + +// NewBriefDeviceWithDefaults instantiates a new BriefDevice 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 NewBriefDeviceWithDefaults() *BriefDevice { + this := BriefDevice{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDevice) 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 *BriefDevice) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDevice) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefDevice) 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 *BriefDevice) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDevice) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefDevice) 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 *BriefDevice) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDevice) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefDevice) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name 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 *BriefDevice) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *BriefDevice) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *BriefDevice) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *BriefDevice) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *BriefDevice) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDevice) 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 *BriefDevice) 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 *BriefDevice) 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 *BriefDevice) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDevice) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDevice) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDevice) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDevice := _BriefDevice{} + + err = json.Unmarshal(data, &varBriefDevice) + + if err != nil { + return err + } + + *o = BriefDevice(varBriefDevice) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDevice struct { + value *BriefDevice + isSet bool +} + +func (v NullableBriefDevice) Get() *BriefDevice { + return v.value +} + +func (v *NullableBriefDevice) Set(val *BriefDevice) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDevice) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDevice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDevice(val *BriefDevice) *NullableBriefDevice { + return &NullableBriefDevice{value: val, isSet: true} +} + +func (v NullableBriefDevice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDevice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_device_request.go b/model_brief_device_request.go similarity index 59% rename from model_device_request.go rename to model_brief_device_request.go index 9b39372c98..1d053bd5c4 100644 --- a/model_device_request.go +++ b/model_brief_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,37 +14,37 @@ import ( "encoding/json" ) -// checks if the DeviceRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DeviceRequest{} +// checks if the BriefDeviceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRequest{} -// DeviceRequest Adds support for custom fields and tags. -type DeviceRequest struct { - Name NullableString `json:"name,omitempty"` - Description *string `json:"description,omitempty"` +// BriefDeviceRequest Adds support for custom fields and tags. +type BriefDeviceRequest struct { + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } -type _DeviceRequest DeviceRequest +type _BriefDeviceRequest BriefDeviceRequest -// NewDeviceRequest instantiates a new DeviceRequest object +// NewBriefDeviceRequest instantiates a new BriefDeviceRequest 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 NewDeviceRequest() *DeviceRequest { - this := DeviceRequest{} +func NewBriefDeviceRequest() *BriefDeviceRequest { + this := BriefDeviceRequest{} return &this } -// NewDeviceRequestWithDefaults instantiates a new DeviceRequest object +// NewBriefDeviceRequestWithDefaults instantiates a new BriefDeviceRequest 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 NewDeviceRequestWithDefaults() *DeviceRequest { - this := DeviceRequest{} +func NewBriefDeviceRequestWithDefaults() *BriefDeviceRequest { + this := BriefDeviceRequest{} return &this } // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceRequest) GetName() string { +func (o *BriefDeviceRequest) GetName() string { if o == nil || IsNil(o.Name.Get()) { var ret string return ret @@ -55,7 +55,7 @@ func (o *DeviceRequest) GetName() string { // GetNameOk returns a tuple with the Name 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 *DeviceRequest) GetNameOk() (*string, bool) { +func (o *BriefDeviceRequest) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -63,7 +63,7 @@ func (o *DeviceRequest) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *DeviceRequest) HasName() bool { +func (o *BriefDeviceRequest) HasName() bool { if o != nil && o.Name.IsSet() { return true } @@ -72,22 +72,21 @@ func (o *DeviceRequest) HasName() bool { } // SetName gets a reference to the given NullableString and assigns it to the Name field. -func (o *DeviceRequest) SetName(v string) { +func (o *BriefDeviceRequest) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil -func (o *DeviceRequest) SetNameNil() { +func (o *BriefDeviceRequest) SetNameNil() { o.Name.Set(nil) } // UnsetName ensures that no value is present for Name, not even an explicit nil -func (o *DeviceRequest) UnsetName() { +func (o *BriefDeviceRequest) UnsetName() { o.Name.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *DeviceRequest) GetDescription() string { +func (o *BriefDeviceRequest) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -97,7 +96,7 @@ func (o *DeviceRequest) GetDescription() string { // 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 *DeviceRequest) GetDescriptionOk() (*string, bool) { +func (o *BriefDeviceRequest) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -105,7 +104,7 @@ func (o *DeviceRequest) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *DeviceRequest) HasDescription() bool { +func (o *BriefDeviceRequest) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -114,19 +113,19 @@ func (o *DeviceRequest) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *DeviceRequest) SetDescription(v string) { +func (o *BriefDeviceRequest) SetDescription(v string) { o.Description = &v } -func (o DeviceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o BriefDeviceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o DeviceRequest) ToMap() (map[string]interface{}, error) { +func (o BriefDeviceRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -142,16 +141,16 @@ func (o DeviceRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *DeviceRequest) UnmarshalJSON(data []byte) (err error) { - varDeviceRequest := _DeviceRequest{} +func (o *BriefDeviceRequest) UnmarshalJSON(data []byte) (err error) { + varBriefDeviceRequest := _BriefDeviceRequest{} - err = json.Unmarshal(data, &varDeviceRequest) + err = json.Unmarshal(data, &varBriefDeviceRequest) if err != nil { return err } - *o = DeviceRequest(varDeviceRequest) + *o = BriefDeviceRequest(varBriefDeviceRequest) additionalProperties := make(map[string]interface{}) @@ -164,38 +163,40 @@ func (o *DeviceRequest) UnmarshalJSON(data []byte) (err error) { return err } -type NullableDeviceRequest struct { - value *DeviceRequest +type NullableBriefDeviceRequest struct { + value *BriefDeviceRequest isSet bool } -func (v NullableDeviceRequest) Get() *DeviceRequest { +func (v NullableBriefDeviceRequest) Get() *BriefDeviceRequest { return v.value } -func (v *NullableDeviceRequest) Set(val *DeviceRequest) { +func (v *NullableBriefDeviceRequest) Set(val *BriefDeviceRequest) { v.value = val v.isSet = true } -func (v NullableDeviceRequest) IsSet() bool { +func (v NullableBriefDeviceRequest) IsSet() bool { return v.isSet } -func (v *NullableDeviceRequest) Unset() { +func (v *NullableBriefDeviceRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableDeviceRequest(val *DeviceRequest) *NullableDeviceRequest { - return &NullableDeviceRequest{value: val, isSet: true} +func NewNullableBriefDeviceRequest(val *BriefDeviceRequest) *NullableBriefDeviceRequest { + return &NullableBriefDeviceRequest{value: val, isSet: true} } -func (v NullableDeviceRequest) MarshalJSON() ([]byte, error) { +func (v NullableBriefDeviceRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDeviceRequest) UnmarshalJSON(src []byte) error { +func (v *NullableBriefDeviceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_brief_device_role.go b/model_brief_device_role.go new file mode 100644 index 0000000000..4cb8b8e535 --- /dev/null +++ b/model_brief_device_role.go @@ -0,0 +1,417 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRole{} + +// BriefDeviceRole Adds support for custom fields and tags. +type BriefDeviceRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRole BriefDeviceRole + +// NewBriefDeviceRole instantiates a new BriefDeviceRole 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 NewBriefDeviceRole(id int32, url string, display string, name string, slug string) *BriefDeviceRole { + this := BriefDeviceRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefDeviceRoleWithDefaults instantiates a new BriefDeviceRole 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 NewBriefDeviceRoleWithDefaults() *BriefDeviceRole { + this := BriefDeviceRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDeviceRole) 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 *BriefDeviceRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDeviceRole) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefDeviceRole) 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 *BriefDeviceRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDeviceRole) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefDeviceRole) 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 *BriefDeviceRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDeviceRole) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefDeviceRole) 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 *BriefDeviceRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDeviceRole) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefDeviceRole) 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 *BriefDeviceRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceRole) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRole) 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 *BriefDeviceRole) 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 *BriefDeviceRole) 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 *BriefDeviceRole) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefDeviceRole) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefDeviceRole) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *BriefDeviceRole) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *BriefDeviceRole) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +func (o BriefDeviceRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRole) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDeviceRole := _BriefDeviceRole{} + + err = json.Unmarshal(data, &varBriefDeviceRole) + + if err != nil { + return err + } + + *o = BriefDeviceRole(varBriefDeviceRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRole struct { + value *BriefDeviceRole + isSet bool +} + +func (v NullableBriefDeviceRole) Get() *BriefDeviceRole { + return v.value +} + +func (v *NullableBriefDeviceRole) Set(val *BriefDeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRole(val *BriefDeviceRole) *NullableBriefDeviceRole { + return &NullableBriefDeviceRole{value: val, isSet: true} +} + +func (v NullableBriefDeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_role_request.go b/model_brief_device_role_request.go new file mode 100644 index 0000000000..a745ae041c --- /dev/null +++ b/model_brief_device_role_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRoleRequest{} + +// BriefDeviceRoleRequest Adds support for custom fields and tags. +type BriefDeviceRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRoleRequest BriefDeviceRoleRequest + +// NewBriefDeviceRoleRequest instantiates a new BriefDeviceRoleRequest 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 NewBriefDeviceRoleRequest(name string, slug string) *BriefDeviceRoleRequest { + this := BriefDeviceRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefDeviceRoleRequestWithDefaults instantiates a new BriefDeviceRoleRequest 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 NewBriefDeviceRoleRequestWithDefaults() *BriefDeviceRoleRequest { + this := BriefDeviceRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefDeviceRoleRequest) 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 *BriefDeviceRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDeviceRoleRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefDeviceRoleRequest) 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 *BriefDeviceRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceRoleRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRoleRequest) 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 *BriefDeviceRoleRequest) 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 *BriefDeviceRoleRequest) 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 *BriefDeviceRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDeviceRoleRequest := _BriefDeviceRoleRequest{} + + err = json.Unmarshal(data, &varBriefDeviceRoleRequest) + + if err != nil { + return err + } + + *o = BriefDeviceRoleRequest(varBriefDeviceRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRoleRequest struct { + value *BriefDeviceRoleRequest + isSet bool +} + +func (v NullableBriefDeviceRoleRequest) Get() *BriefDeviceRoleRequest { + return v.value +} + +func (v *NullableBriefDeviceRoleRequest) Set(val *BriefDeviceRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRoleRequest(val *BriefDeviceRoleRequest) *NullableBriefDeviceRoleRequest { + return &NullableBriefDeviceRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_type.go b/model_brief_device_type.go new file mode 100644 index 0000000000..50cfb35028 --- /dev/null +++ b/model_brief_device_type.go @@ -0,0 +1,410 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceType{} + +// BriefDeviceType Adds support for custom fields and tags. +type BriefDeviceType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceType BriefDeviceType + +// NewBriefDeviceType instantiates a new BriefDeviceType 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 NewBriefDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string) *BriefDeviceType { + this := BriefDeviceType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefDeviceTypeWithDefaults instantiates a new BriefDeviceType 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 NewBriefDeviceTypeWithDefaults() *BriefDeviceType { + this := BriefDeviceType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDeviceType) 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 *BriefDeviceType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDeviceType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefDeviceType) 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 *BriefDeviceType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDeviceType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefDeviceType) 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 *BriefDeviceType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDeviceType) SetDisplay(v string) { + o.Display = v +} + + +// GetManufacturer returns the Manufacturer field value +func (o *BriefDeviceType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefDeviceType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *BriefDeviceType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefDeviceType) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *BriefDeviceType) 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 *BriefDeviceType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceType) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceType) 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 *BriefDeviceType) 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 *BriefDeviceType) 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 *BriefDeviceType) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefDeviceType) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefDeviceType) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefDeviceType) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +func (o BriefDeviceType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDeviceType := _BriefDeviceType{} + + err = json.Unmarshal(data, &varBriefDeviceType) + + if err != nil { + return err + } + + *o = BriefDeviceType(varBriefDeviceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceType struct { + value *BriefDeviceType + isSet bool +} + +func (v NullableBriefDeviceType) Get() *BriefDeviceType { + return v.value +} + +func (v *NullableBriefDeviceType) Set(val *BriefDeviceType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceType(val *BriefDeviceType) *NullableBriefDeviceType { + return &NullableBriefDeviceType{value: val, isSet: true} +} + +func (v NullableBriefDeviceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_type_request.go b/model_brief_device_type_request.go new file mode 100644 index 0000000000..abdd85828c --- /dev/null +++ b/model_brief_device_type_request.go @@ -0,0 +1,283 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceTypeRequest{} + +// BriefDeviceTypeRequest Adds support for custom fields and tags. +type BriefDeviceTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceTypeRequest BriefDeviceTypeRequest + +// NewBriefDeviceTypeRequest instantiates a new BriefDeviceTypeRequest 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 NewBriefDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefDeviceTypeRequest { + this := BriefDeviceTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefDeviceTypeRequestWithDefaults instantiates a new BriefDeviceTypeRequest 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 NewBriefDeviceTypeRequestWithDefaults() *BriefDeviceTypeRequest { + this := BriefDeviceTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *BriefDeviceTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefDeviceTypeRequest) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *BriefDeviceTypeRequest) 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 *BriefDeviceTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceTypeRequest) 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 *BriefDeviceTypeRequest) 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 *BriefDeviceTypeRequest) 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 *BriefDeviceTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefDeviceTypeRequest := _BriefDeviceTypeRequest{} + + err = json.Unmarshal(data, &varBriefDeviceTypeRequest) + + if err != nil { + return err + } + + *o = BriefDeviceTypeRequest(varBriefDeviceTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceTypeRequest struct { + value *BriefDeviceTypeRequest + isSet bool +} + +func (v NullableBriefDeviceTypeRequest) Get() *BriefDeviceTypeRequest { + return v.value +} + +func (v *NullableBriefDeviceTypeRequest) Set(val *BriefDeviceTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceTypeRequest(val *BriefDeviceTypeRequest) *NullableBriefDeviceTypeRequest { + return &NullableBriefDeviceTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_fhrp_group.go b/model_brief_fhrp_group.go new file mode 100644 index 0000000000..f729d2637c --- /dev/null +++ b/model_brief_fhrp_group.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefFHRPGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefFHRPGroup{} + +// BriefFHRPGroup Adds support for custom fields and tags. +type BriefFHRPGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefFHRPGroup BriefFHRPGroup + +// NewBriefFHRPGroup instantiates a new BriefFHRPGroup 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 NewBriefFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32) *BriefFHRPGroup { + this := BriefFHRPGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Protocol = protocol + this.GroupId = groupId + return &this +} + +// NewBriefFHRPGroupWithDefaults instantiates a new BriefFHRPGroup 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 NewBriefFHRPGroupWithDefaults() *BriefFHRPGroup { + this := BriefFHRPGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefFHRPGroup) 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 *BriefFHRPGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefFHRPGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefFHRPGroup) 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 *BriefFHRPGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefFHRPGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefFHRPGroup) 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 *BriefFHRPGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefFHRPGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetProtocol returns the Protocol field value +func (o *BriefFHRPGroup) GetProtocol() BriefFHRPGroupProtocol { + if o == nil { + var ret BriefFHRPGroupProtocol + return ret + } + + return o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { + if o == nil { + return nil, false + } + return &o.Protocol, true +} + +// SetProtocol sets field value +func (o *BriefFHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { + o.Protocol = v +} + + +// GetGroupId returns the GroupId field value +func (o *BriefFHRPGroup) GetGroupId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetGroupIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *BriefFHRPGroup) SetGroupId(v int32) { + o.GroupId = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefFHRPGroup) 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 *BriefFHRPGroup) 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 *BriefFHRPGroup) 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 *BriefFHRPGroup) SetDescription(v string) { + o.Description = &v +} + +func (o BriefFHRPGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefFHRPGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["protocol"] = o.Protocol + toSerialize["group_id"] = o.GroupId + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefFHRPGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "protocol", + "group_id", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefFHRPGroup := _BriefFHRPGroup{} + + err = json.Unmarshal(data, &varBriefFHRPGroup) + + if err != nil { + return err + } + + *o = BriefFHRPGroup(varBriefFHRPGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "protocol") + delete(additionalProperties, "group_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefFHRPGroup struct { + value *BriefFHRPGroup + isSet bool +} + +func (v NullableBriefFHRPGroup) Get() *BriefFHRPGroup { + return v.value +} + +func (v *NullableBriefFHRPGroup) Set(val *BriefFHRPGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroup(val *BriefFHRPGroup) *NullableBriefFHRPGroup { + return &NullableBriefFHRPGroup{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_fhrp_group_protocol.go b/model_brief_fhrp_group_protocol.go new file mode 100644 index 0000000000..30a88404bd --- /dev/null +++ b/model_brief_fhrp_group_protocol.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefFHRPGroupProtocol * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +type BriefFHRPGroupProtocol string + +// List of BriefFHRPGroup_protocol +const ( + BRIEFFHRPGROUPPROTOCOL_VRRP2 BriefFHRPGroupProtocol = "vrrp2" + BRIEFFHRPGROUPPROTOCOL_VRRP3 BriefFHRPGroupProtocol = "vrrp3" + BRIEFFHRPGROUPPROTOCOL_CARP BriefFHRPGroupProtocol = "carp" + BRIEFFHRPGROUPPROTOCOL_CLUSTERXL BriefFHRPGroupProtocol = "clusterxl" + BRIEFFHRPGROUPPROTOCOL_HSRP BriefFHRPGroupProtocol = "hsrp" + BRIEFFHRPGROUPPROTOCOL_GLBP BriefFHRPGroupProtocol = "glbp" + BRIEFFHRPGROUPPROTOCOL_OTHER BriefFHRPGroupProtocol = "other" +) + +// All allowed values of BriefFHRPGroupProtocol enum +var AllowedBriefFHRPGroupProtocolEnumValues = []BriefFHRPGroupProtocol{ + "vrrp2", + "vrrp3", + "carp", + "clusterxl", + "hsrp", + "glbp", + "other", +} + +func (v *BriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefFHRPGroupProtocol(value) + for _, existing := range AllowedBriefFHRPGroupProtocolEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefFHRPGroupProtocol", value) +} + +// NewBriefFHRPGroupProtocolFromValue returns a pointer to a valid BriefFHRPGroupProtocol +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefFHRPGroupProtocolFromValue(v string) (*BriefFHRPGroupProtocol, error) { + ev := BriefFHRPGroupProtocol(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefFHRPGroupProtocol: valid values are %v", v, AllowedBriefFHRPGroupProtocolEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefFHRPGroupProtocol) IsValid() bool { + for _, existing := range AllowedBriefFHRPGroupProtocolEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefFHRPGroup_protocol value +func (v BriefFHRPGroupProtocol) Ptr() *BriefFHRPGroupProtocol { + return &v +} + +type NullableBriefFHRPGroupProtocol struct { + value *BriefFHRPGroupProtocol + isSet bool +} + +func (v NullableBriefFHRPGroupProtocol) Get() *BriefFHRPGroupProtocol { + return v.value +} + +func (v *NullableBriefFHRPGroupProtocol) Set(val *BriefFHRPGroupProtocol) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroupProtocol) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroupProtocol) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroupProtocol(val *BriefFHRPGroupProtocol) *NullableBriefFHRPGroupProtocol { + return &NullableBriefFHRPGroupProtocol{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroupProtocol) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_fhrp_group_request.go b/model_brief_fhrp_group_request.go new file mode 100644 index 0000000000..ff09b26be4 --- /dev/null +++ b/model_brief_fhrp_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefFHRPGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefFHRPGroupRequest{} + +// BriefFHRPGroupRequest Adds support for custom fields and tags. +type BriefFHRPGroupRequest struct { + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefFHRPGroupRequest BriefFHRPGroupRequest + +// NewBriefFHRPGroupRequest instantiates a new BriefFHRPGroupRequest 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 NewBriefFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *BriefFHRPGroupRequest { + this := BriefFHRPGroupRequest{} + this.Protocol = protocol + this.GroupId = groupId + return &this +} + +// NewBriefFHRPGroupRequestWithDefaults instantiates a new BriefFHRPGroupRequest 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 NewBriefFHRPGroupRequestWithDefaults() *BriefFHRPGroupRequest { + this := BriefFHRPGroupRequest{} + return &this +} + +// GetProtocol returns the Protocol field value +func (o *BriefFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { + if o == nil { + var ret BriefFHRPGroupProtocol + return ret + } + + return o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { + if o == nil { + return nil, false + } + return &o.Protocol, true +} + +// SetProtocol sets field value +func (o *BriefFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { + o.Protocol = v +} + + +// GetGroupId returns the GroupId field value +func (o *BriefFHRPGroupRequest) GetGroupId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetGroupIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *BriefFHRPGroupRequest) SetGroupId(v int32) { + o.GroupId = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefFHRPGroupRequest) 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 *BriefFHRPGroupRequest) 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 *BriefFHRPGroupRequest) 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 *BriefFHRPGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefFHRPGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefFHRPGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["protocol"] = o.Protocol + toSerialize["group_id"] = o.GroupId + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefFHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "protocol", + "group_id", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefFHRPGroupRequest := _BriefFHRPGroupRequest{} + + err = json.Unmarshal(data, &varBriefFHRPGroupRequest) + + if err != nil { + return err + } + + *o = BriefFHRPGroupRequest(varBriefFHRPGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "protocol") + delete(additionalProperties, "group_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefFHRPGroupRequest struct { + value *BriefFHRPGroupRequest + isSet bool +} + +func (v NullableBriefFHRPGroupRequest) Get() *BriefFHRPGroupRequest { + return v.value +} + +func (v *NullableBriefFHRPGroupRequest) Set(val *BriefFHRPGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroupRequest(val *BriefFHRPGroupRequest) *NullableBriefFHRPGroupRequest { + return &NullableBriefFHRPGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ike_policy.go b/model_brief_ike_policy.go new file mode 100644 index 0000000000..2de69e5b71 --- /dev/null +++ b/model_brief_ike_policy.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIKEPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIKEPolicy{} + +// BriefIKEPolicy Adds support for custom fields and tags. +type BriefIKEPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIKEPolicy BriefIKEPolicy + +// NewBriefIKEPolicy instantiates a new BriefIKEPolicy 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 NewBriefIKEPolicy(id int32, url string, display string, name string) *BriefIKEPolicy { + this := BriefIKEPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIKEPolicyWithDefaults instantiates a new BriefIKEPolicy 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 NewBriefIKEPolicyWithDefaults() *BriefIKEPolicy { + this := BriefIKEPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIKEPolicy) 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 *BriefIKEPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIKEPolicy) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefIKEPolicy) 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 *BriefIKEPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIKEPolicy) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefIKEPolicy) 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 *BriefIKEPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIKEPolicy) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefIKEPolicy) 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 *BriefIKEPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIKEPolicy) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIKEPolicy) 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 *BriefIKEPolicy) 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 *BriefIKEPolicy) 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 *BriefIKEPolicy) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIKEPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIKEPolicy) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIKEPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIKEPolicy := _BriefIKEPolicy{} + + err = json.Unmarshal(data, &varBriefIKEPolicy) + + if err != nil { + return err + } + + *o = BriefIKEPolicy(varBriefIKEPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIKEPolicy struct { + value *BriefIKEPolicy + isSet bool +} + +func (v NullableBriefIKEPolicy) Get() *BriefIKEPolicy { + return v.value +} + +func (v *NullableBriefIKEPolicy) Set(val *BriefIKEPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIKEPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIKEPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIKEPolicy(val *BriefIKEPolicy) *NullableBriefIKEPolicy { + return &NullableBriefIKEPolicy{value: val, isSet: true} +} + +func (v NullableBriefIKEPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIKEPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ike_policy_request.go b/model_brief_ike_policy_request.go new file mode 100644 index 0000000000..0e95702551 --- /dev/null +++ b/model_brief_ike_policy_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIKEPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIKEPolicyRequest{} + +// BriefIKEPolicyRequest Adds support for custom fields and tags. +type BriefIKEPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIKEPolicyRequest BriefIKEPolicyRequest + +// NewBriefIKEPolicyRequest instantiates a new BriefIKEPolicyRequest 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 NewBriefIKEPolicyRequest(name string) *BriefIKEPolicyRequest { + this := BriefIKEPolicyRequest{} + this.Name = name + return &this +} + +// NewBriefIKEPolicyRequestWithDefaults instantiates a new BriefIKEPolicyRequest 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 NewBriefIKEPolicyRequestWithDefaults() *BriefIKEPolicyRequest { + this := BriefIKEPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIKEPolicyRequest) 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 *BriefIKEPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIKEPolicyRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIKEPolicyRequest) 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 *BriefIKEPolicyRequest) 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 *BriefIKEPolicyRequest) 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 *BriefIKEPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIKEPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIKEPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIKEPolicyRequest := _BriefIKEPolicyRequest{} + + err = json.Unmarshal(data, &varBriefIKEPolicyRequest) + + if err != nil { + return err + } + + *o = BriefIKEPolicyRequest(varBriefIKEPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIKEPolicyRequest struct { + value *BriefIKEPolicyRequest + isSet bool +} + +func (v NullableBriefIKEPolicyRequest) Get() *BriefIKEPolicyRequest { + return v.value +} + +func (v *NullableBriefIKEPolicyRequest) Set(val *BriefIKEPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIKEPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIKEPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIKEPolicyRequest(val *BriefIKEPolicyRequest) *NullableBriefIKEPolicyRequest { + return &NullableBriefIKEPolicyRequest{value: val, isSet: true} +} + +func (v NullableBriefIKEPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIKEPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_interface.go b/model_brief_interface.go new file mode 100644 index 0000000000..954f17d76a --- /dev/null +++ b/model_brief_interface.go @@ -0,0 +1,420 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInterface type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInterface{} + +// BriefInterface Adds support for custom fields and tags. +type BriefInterface struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} +} + +type _BriefInterface BriefInterface + +// NewBriefInterface instantiates a new BriefInterface 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 NewBriefInterface(id int32, url string, display string, device BriefDevice, name string, occupied bool) *BriefInterface { + this := BriefInterface{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.Name = name + this.Occupied = occupied + return &this +} + +// NewBriefInterfaceWithDefaults instantiates a new BriefInterface 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 NewBriefInterfaceWithDefaults() *BriefInterface { + this := BriefInterface{} + return &this +} + +// GetId returns the Id field value +func (o *BriefInterface) 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 *BriefInterface) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefInterface) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefInterface) 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 *BriefInterface) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefInterface) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefInterface) 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 *BriefInterface) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefInterface) SetDisplay(v string) { + o.Display = v +} + + +// GetDevice returns the Device field value +func (o *BriefInterface) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefInterface) SetDevice(v BriefDevice) { + o.Device = v +} + + +// GetName returns the Name field value +func (o *BriefInterface) 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 *BriefInterface) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInterface) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInterface) 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 *BriefInterface) 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 *BriefInterface) 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 *BriefInterface) SetDescription(v string) { + o.Description = &v +} + +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefInterface) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable + return ret + } + return *o.Cable.Get() +} + +// GetCableOk returns a tuple with the Cable 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 *BriefInterface) GetCableOk() (*BriefCable, bool) { + if o == nil { + return nil, false + } + return o.Cable.Get(), o.Cable.IsSet() +} + +// HasCable returns a boolean if a field has been set. +func (o *BriefInterface) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *BriefInterface) SetCable(v BriefCable) { + o.Cable.Set(&v) +} +// SetCableNil sets the value for Cable to be an explicit nil +func (o *BriefInterface) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *BriefInterface) UnsetCable() { + o.Cable.Unset() +} + +// GetOccupied returns the Occupied field value +func (o *BriefInterface) GetOccupied() bool { + if o == nil { + var ret bool + return ret + } + + return o.Occupied +} + +// GetOccupiedOk returns a tuple with the Occupied field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetOccupiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Occupied, true +} + +// SetOccupied sets field value +func (o *BriefInterface) SetOccupied(v bool) { + o.Occupied = v +} + + +func (o BriefInterface) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInterface) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } + toSerialize["_occupied"] = o.Occupied + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInterface) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "name", + "_occupied", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefInterface := _BriefInterface{} + + err = json.Unmarshal(data, &varBriefInterface) + + if err != nil { + return err + } + + *o = BriefInterface(varBriefInterface) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "cable") + delete(additionalProperties, "_occupied") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInterface struct { + value *BriefInterface + isSet bool +} + +func (v NullableBriefInterface) Get() *BriefInterface { + return v.value +} + +func (v *NullableBriefInterface) Set(val *BriefInterface) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInterface) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInterface) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInterface(val *BriefInterface) *NullableBriefInterface { + return &NullableBriefInterface{value: val, isSet: true} +} + +func (v NullableBriefInterface) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInterface) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_interface_request.go b/model_brief_interface_request.go new file mode 100644 index 0000000000..44023278f0 --- /dev/null +++ b/model_brief_interface_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInterfaceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInterfaceRequest{} + +// BriefInterfaceRequest Adds support for custom fields and tags. +type BriefInterfaceRequest struct { + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefInterfaceRequest BriefInterfaceRequest + +// NewBriefInterfaceRequest instantiates a new BriefInterfaceRequest 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 NewBriefInterfaceRequest(device BriefDeviceRequest, name string) *BriefInterfaceRequest { + this := BriefInterfaceRequest{} + this.Device = device + this.Name = name + return &this +} + +// NewBriefInterfaceRequestWithDefaults instantiates a new BriefInterfaceRequest 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 NewBriefInterfaceRequestWithDefaults() *BriefInterfaceRequest { + this := BriefInterfaceRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefInterfaceRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefInterfaceRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + + +// GetName returns the Name field value +func (o *BriefInterfaceRequest) 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 *BriefInterfaceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInterfaceRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInterfaceRequest) 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 *BriefInterfaceRequest) 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 *BriefInterfaceRequest) 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 *BriefInterfaceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefInterfaceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInterfaceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInterfaceRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefInterfaceRequest := _BriefInterfaceRequest{} + + err = json.Unmarshal(data, &varBriefInterfaceRequest) + + if err != nil { + return err + } + + *o = BriefInterfaceRequest(varBriefInterfaceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInterfaceRequest struct { + value *BriefInterfaceRequest + isSet bool +} + +func (v NullableBriefInterfaceRequest) Get() *BriefInterfaceRequest { + return v.value +} + +func (v *NullableBriefInterfaceRequest) Set(val *BriefInterfaceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInterfaceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInterfaceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInterfaceRequest(val *BriefInterfaceRequest) *NullableBriefInterfaceRequest { + return &NullableBriefInterfaceRequest{value: val, isSet: true} +} + +func (v NullableBriefInterfaceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInterfaceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_inventory_item_role.go b/model_brief_inventory_item_role.go new file mode 100644 index 0000000000..d0ba5f6456 --- /dev/null +++ b/model_brief_inventory_item_role.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInventoryItemRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInventoryItemRole{} + +// BriefInventoryItemRole Adds support for custom fields and tags. +type BriefInventoryItemRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefInventoryItemRole BriefInventoryItemRole + +// NewBriefInventoryItemRole instantiates a new BriefInventoryItemRole 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 NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64) *BriefInventoryItemRole { + this := BriefInventoryItemRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.InventoryitemCount = inventoryitemCount + return &this +} + +// NewBriefInventoryItemRoleWithDefaults instantiates a new BriefInventoryItemRole 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 NewBriefInventoryItemRoleWithDefaults() *BriefInventoryItemRole { + this := BriefInventoryItemRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefInventoryItemRole) 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 *BriefInventoryItemRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefInventoryItemRole) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefInventoryItemRole) 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 *BriefInventoryItemRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefInventoryItemRole) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefInventoryItemRole) 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 *BriefInventoryItemRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefInventoryItemRole) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefInventoryItemRole) 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 *BriefInventoryItemRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInventoryItemRole) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefInventoryItemRole) 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 *BriefInventoryItemRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefInventoryItemRole) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInventoryItemRole) 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 *BriefInventoryItemRole) 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 *BriefInventoryItemRole) 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 *BriefInventoryItemRole) SetDescription(v string) { + o.Description = &v +} + +// GetInventoryitemCount returns the InventoryitemCount field value +func (o *BriefInventoryItemRole) GetInventoryitemCount() int64 { + if o == nil { + var ret int64 + 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 *BriefInventoryItemRole) GetInventoryitemCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.InventoryitemCount, true +} + +// SetInventoryitemCount sets field value +func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64) { + o.InventoryitemCount = v +} + + +func (o BriefInventoryItemRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInventoryItemRole) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["inventoryitem_count"] = o.InventoryitemCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInventoryItemRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "inventoryitem_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefInventoryItemRole := _BriefInventoryItemRole{} + + err = json.Unmarshal(data, &varBriefInventoryItemRole) + + if err != nil { + return err + } + + *o = BriefInventoryItemRole(varBriefInventoryItemRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "inventoryitem_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInventoryItemRole struct { + value *BriefInventoryItemRole + isSet bool +} + +func (v NullableBriefInventoryItemRole) Get() *BriefInventoryItemRole { + return v.value +} + +func (v *NullableBriefInventoryItemRole) Set(val *BriefInventoryItemRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInventoryItemRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInventoryItemRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInventoryItemRole(val *BriefInventoryItemRole) *NullableBriefInventoryItemRole { + return &NullableBriefInventoryItemRole{value: val, isSet: true} +} + +func (v NullableBriefInventoryItemRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInventoryItemRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_inventory_item_role_request.go b/model_brief_inventory_item_role_request.go new file mode 100644 index 0000000000..28d1790d83 --- /dev/null +++ b/model_brief_inventory_item_role_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInventoryItemRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInventoryItemRoleRequest{} + +// BriefInventoryItemRoleRequest Adds support for custom fields and tags. +type BriefInventoryItemRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefInventoryItemRoleRequest BriefInventoryItemRoleRequest + +// NewBriefInventoryItemRoleRequest instantiates a new BriefInventoryItemRoleRequest 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 NewBriefInventoryItemRoleRequest(name string, slug string) *BriefInventoryItemRoleRequest { + this := BriefInventoryItemRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefInventoryItemRoleRequestWithDefaults instantiates a new BriefInventoryItemRoleRequest 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 NewBriefInventoryItemRoleRequestWithDefaults() *BriefInventoryItemRoleRequest { + this := BriefInventoryItemRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefInventoryItemRoleRequest) 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 *BriefInventoryItemRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInventoryItemRoleRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefInventoryItemRoleRequest) 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 *BriefInventoryItemRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefInventoryItemRoleRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInventoryItemRoleRequest) 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 *BriefInventoryItemRoleRequest) 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 *BriefInventoryItemRoleRequest) 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 *BriefInventoryItemRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInventoryItemRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefInventoryItemRoleRequest := _BriefInventoryItemRoleRequest{} + + err = json.Unmarshal(data, &varBriefInventoryItemRoleRequest) + + if err != nil { + return err + } + + *o = BriefInventoryItemRoleRequest(varBriefInventoryItemRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInventoryItemRoleRequest struct { + value *BriefInventoryItemRoleRequest + isSet bool +} + +func (v NullableBriefInventoryItemRoleRequest) Get() *BriefInventoryItemRoleRequest { + return v.value +} + +func (v *NullableBriefInventoryItemRoleRequest) Set(val *BriefInventoryItemRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInventoryItemRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInventoryItemRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInventoryItemRoleRequest(val *BriefInventoryItemRoleRequest) *NullableBriefInventoryItemRoleRequest { + return &NullableBriefInventoryItemRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInventoryItemRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_address.go b/model_brief_ip_address.go new file mode 100644 index 0000000000..5484851b21 --- /dev/null +++ b/model_brief_ip_address.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPAddress{} + +// BriefIPAddress Adds support for custom fields and tags. +type BriefIPAddress struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPAddress BriefIPAddress + +// NewBriefIPAddress instantiates a new BriefIPAddress 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 NewBriefIPAddress(id int32, url string, display string, family AggregateFamily, address string) *BriefIPAddress { + this := BriefIPAddress{} + this.Id = id + this.Url = url + this.Display = display + this.Family = family + this.Address = address + return &this +} + +// NewBriefIPAddressWithDefaults instantiates a new BriefIPAddress 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 NewBriefIPAddressWithDefaults() *BriefIPAddress { + this := BriefIPAddress{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPAddress) 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 *BriefIPAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPAddress) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefIPAddress) 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 *BriefIPAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPAddress) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefIPAddress) 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 *BriefIPAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPAddress) SetDisplay(v string) { + o.Display = v +} + + +// GetFamily returns the Family field value +func (o *BriefIPAddress) GetFamily() AggregateFamily { + if o == nil { + var ret AggregateFamily + return ret + } + + return o.Family +} + +// GetFamilyOk returns a tuple with the Family field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetFamilyOk() (*AggregateFamily, bool) { + if o == nil { + return nil, false + } + return &o.Family, true +} + +// SetFamily sets field value +func (o *BriefIPAddress) SetFamily(v AggregateFamily) { + o.Family = v +} + + +// GetAddress returns the Address field value +func (o *BriefIPAddress) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *BriefIPAddress) SetAddress(v string) { + o.Address = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPAddress) 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 *BriefIPAddress) 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 *BriefIPAddress) 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 *BriefIPAddress) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["family"] = o.Family + toSerialize["address"] = o.Address + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "family", + "address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIPAddress := _BriefIPAddress{} + + err = json.Unmarshal(data, &varBriefIPAddress) + + if err != nil { + return err + } + + *o = BriefIPAddress(varBriefIPAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "family") + delete(additionalProperties, "address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPAddress struct { + value *BriefIPAddress + isSet bool +} + +func (v NullableBriefIPAddress) Get() *BriefIPAddress { + return v.value +} + +func (v *NullableBriefIPAddress) Set(val *BriefIPAddress) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPAddress(val *BriefIPAddress) *NullableBriefIPAddress { + return &NullableBriefIPAddress{value: val, isSet: true} +} + +func (v NullableBriefIPAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_address_request.go b/model_brief_ip_address_request.go new file mode 100644 index 0000000000..5a7567a116 --- /dev/null +++ b/model_brief_ip_address_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPAddressRequest{} + +// BriefIPAddressRequest Adds support for custom fields and tags. +type BriefIPAddressRequest struct { + Address string `json:"address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPAddressRequest BriefIPAddressRequest + +// NewBriefIPAddressRequest instantiates a new BriefIPAddressRequest 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 NewBriefIPAddressRequest(address string) *BriefIPAddressRequest { + this := BriefIPAddressRequest{} + this.Address = address + return &this +} + +// NewBriefIPAddressRequestWithDefaults instantiates a new BriefIPAddressRequest 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 NewBriefIPAddressRequestWithDefaults() *BriefIPAddressRequest { + this := BriefIPAddressRequest{} + return &this +} + +// GetAddress returns the Address field value +func (o *BriefIPAddressRequest) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddressRequest) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *BriefIPAddressRequest) SetAddress(v string) { + o.Address = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPAddressRequest) 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 *BriefIPAddressRequest) 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 *BriefIPAddressRequest) 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 *BriefIPAddressRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIPAddressRequest := _BriefIPAddressRequest{} + + err = json.Unmarshal(data, &varBriefIPAddressRequest) + + if err != nil { + return err + } + + *o = BriefIPAddressRequest(varBriefIPAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPAddressRequest struct { + value *BriefIPAddressRequest + isSet bool +} + +func (v NullableBriefIPAddressRequest) Get() *BriefIPAddressRequest { + return v.value +} + +func (v *NullableBriefIPAddressRequest) Set(val *BriefIPAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPAddressRequest(val *BriefIPAddressRequest) *NullableBriefIPAddressRequest { + return &NullableBriefIPAddressRequest{value: val, isSet: true} +} + +func (v NullableBriefIPAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_policy.go b/model_brief_ip_sec_policy.go new file mode 100644 index 0000000000..5b598b80d0 --- /dev/null +++ b/model_brief_ip_sec_policy.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecPolicy{} + +// BriefIPSecPolicy Adds support for custom fields and tags. +type BriefIPSecPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecPolicy BriefIPSecPolicy + +// NewBriefIPSecPolicy instantiates a new BriefIPSecPolicy 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 NewBriefIPSecPolicy(id int32, url string, display string, name string) *BriefIPSecPolicy { + this := BriefIPSecPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIPSecPolicyWithDefaults instantiates a new BriefIPSecPolicy 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 NewBriefIPSecPolicyWithDefaults() *BriefIPSecPolicy { + this := BriefIPSecPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPSecPolicy) 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 *BriefIPSecPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPSecPolicy) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefIPSecPolicy) 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 *BriefIPSecPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPSecPolicy) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefIPSecPolicy) 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 *BriefIPSecPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPSecPolicy) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefIPSecPolicy) 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 *BriefIPSecPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecPolicy) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecPolicy) 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 *BriefIPSecPolicy) 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 *BriefIPSecPolicy) 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 *BriefIPSecPolicy) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecPolicy) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIPSecPolicy := _BriefIPSecPolicy{} + + err = json.Unmarshal(data, &varBriefIPSecPolicy) + + if err != nil { + return err + } + + *o = BriefIPSecPolicy(varBriefIPSecPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecPolicy struct { + value *BriefIPSecPolicy + isSet bool +} + +func (v NullableBriefIPSecPolicy) Get() *BriefIPSecPolicy { + return v.value +} + +func (v *NullableBriefIPSecPolicy) Set(val *BriefIPSecPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecPolicy(val *BriefIPSecPolicy) *NullableBriefIPSecPolicy { + return &NullableBriefIPSecPolicy{value: val, isSet: true} +} + +func (v NullableBriefIPSecPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_policy_request.go b/model_brief_ip_sec_policy_request.go new file mode 100644 index 0000000000..1860b7940f --- /dev/null +++ b/model_brief_ip_sec_policy_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecPolicyRequest{} + +// BriefIPSecPolicyRequest Adds support for custom fields and tags. +type BriefIPSecPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecPolicyRequest BriefIPSecPolicyRequest + +// NewBriefIPSecPolicyRequest instantiates a new BriefIPSecPolicyRequest 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 NewBriefIPSecPolicyRequest(name string) *BriefIPSecPolicyRequest { + this := BriefIPSecPolicyRequest{} + this.Name = name + return &this +} + +// NewBriefIPSecPolicyRequestWithDefaults instantiates a new BriefIPSecPolicyRequest 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 NewBriefIPSecPolicyRequestWithDefaults() *BriefIPSecPolicyRequest { + this := BriefIPSecPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIPSecPolicyRequest) 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 *BriefIPSecPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecPolicyRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecPolicyRequest) 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 *BriefIPSecPolicyRequest) 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 *BriefIPSecPolicyRequest) 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 *BriefIPSecPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIPSecPolicyRequest := _BriefIPSecPolicyRequest{} + + err = json.Unmarshal(data, &varBriefIPSecPolicyRequest) + + if err != nil { + return err + } + + *o = BriefIPSecPolicyRequest(varBriefIPSecPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecPolicyRequest struct { + value *BriefIPSecPolicyRequest + isSet bool +} + +func (v NullableBriefIPSecPolicyRequest) Get() *BriefIPSecPolicyRequest { + return v.value +} + +func (v *NullableBriefIPSecPolicyRequest) Set(val *BriefIPSecPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecPolicyRequest(val *BriefIPSecPolicyRequest) *NullableBriefIPSecPolicyRequest { + return &NullableBriefIPSecPolicyRequest{value: val, isSet: true} +} + +func (v NullableBriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_profile.go b/model_brief_ip_sec_profile.go new file mode 100644 index 0000000000..db147c4002 --- /dev/null +++ b/model_brief_ip_sec_profile.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecProfile{} + +// BriefIPSecProfile Adds support for custom fields and tags. +type BriefIPSecProfile struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecProfile BriefIPSecProfile + +// NewBriefIPSecProfile instantiates a new BriefIPSecProfile 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 NewBriefIPSecProfile(id int32, url string, display string, name string) *BriefIPSecProfile { + this := BriefIPSecProfile{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIPSecProfileWithDefaults instantiates a new BriefIPSecProfile 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 NewBriefIPSecProfileWithDefaults() *BriefIPSecProfile { + this := BriefIPSecProfile{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPSecProfile) 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 *BriefIPSecProfile) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPSecProfile) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefIPSecProfile) 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 *BriefIPSecProfile) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPSecProfile) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefIPSecProfile) 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 *BriefIPSecProfile) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPSecProfile) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefIPSecProfile) 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 *BriefIPSecProfile) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecProfile) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecProfile) 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 *BriefIPSecProfile) 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 *BriefIPSecProfile) 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 *BriefIPSecProfile) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecProfile) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecProfile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIPSecProfile := _BriefIPSecProfile{} + + err = json.Unmarshal(data, &varBriefIPSecProfile) + + if err != nil { + return err + } + + *o = BriefIPSecProfile(varBriefIPSecProfile) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecProfile struct { + value *BriefIPSecProfile + isSet bool +} + +func (v NullableBriefIPSecProfile) Get() *BriefIPSecProfile { + return v.value +} + +func (v *NullableBriefIPSecProfile) Set(val *BriefIPSecProfile) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecProfile(val *BriefIPSecProfile) *NullableBriefIPSecProfile { + return &NullableBriefIPSecProfile{value: val, isSet: true} +} + +func (v NullableBriefIPSecProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_profile_request.go b/model_brief_ip_sec_profile_request.go new file mode 100644 index 0000000000..4722cb7f0c --- /dev/null +++ b/model_brief_ip_sec_profile_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecProfileRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecProfileRequest{} + +// BriefIPSecProfileRequest Adds support for custom fields and tags. +type BriefIPSecProfileRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecProfileRequest BriefIPSecProfileRequest + +// NewBriefIPSecProfileRequest instantiates a new BriefIPSecProfileRequest 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 NewBriefIPSecProfileRequest(name string) *BriefIPSecProfileRequest { + this := BriefIPSecProfileRequest{} + this.Name = name + return &this +} + +// NewBriefIPSecProfileRequestWithDefaults instantiates a new BriefIPSecProfileRequest 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 NewBriefIPSecProfileRequestWithDefaults() *BriefIPSecProfileRequest { + this := BriefIPSecProfileRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIPSecProfileRequest) 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 *BriefIPSecProfileRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecProfileRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecProfileRequest) 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 *BriefIPSecProfileRequest) 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 *BriefIPSecProfileRequest) 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 *BriefIPSecProfileRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecProfileRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecProfileRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefIPSecProfileRequest := _BriefIPSecProfileRequest{} + + err = json.Unmarshal(data, &varBriefIPSecProfileRequest) + + if err != nil { + return err + } + + *o = BriefIPSecProfileRequest(varBriefIPSecProfileRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecProfileRequest struct { + value *BriefIPSecProfileRequest + isSet bool +} + +func (v NullableBriefIPSecProfileRequest) Get() *BriefIPSecProfileRequest { + return v.value +} + +func (v *NullableBriefIPSecProfileRequest) Set(val *BriefIPSecProfileRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecProfileRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecProfileRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecProfileRequest(val *BriefIPSecProfileRequest) *NullableBriefIPSecProfileRequest { + return &NullableBriefIPSecProfileRequest{value: val, isSet: true} +} + +func (v NullableBriefIPSecProfileRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecProfileRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_job.go b/model_brief_job.go new file mode 100644 index 0000000000..3166e9a14d --- /dev/null +++ b/model_brief_job.go @@ -0,0 +1,331 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the BriefJob type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJob{} + +// BriefJob struct for BriefJob +type BriefJob struct { + Url string `json:"url"` + Status BriefJobStatus `json:"status"` + Created *time.Time `json:"created,omitempty"` + Completed NullableTime `json:"completed,omitempty"` + User BriefUser `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _BriefJob BriefJob + +// NewBriefJob instantiates a new BriefJob 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 NewBriefJob(url string, status BriefJobStatus, user BriefUser) *BriefJob { + this := BriefJob{} + this.Url = url + this.Status = status + this.User = user + return &this +} + +// NewBriefJobWithDefaults instantiates a new BriefJob 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 NewBriefJobWithDefaults() *BriefJob { + this := BriefJob{} + return &this +} + +// GetUrl returns the Url field value +func (o *BriefJob) 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 *BriefJob) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefJob) SetUrl(v string) { + o.Url = v +} + + +// GetStatus returns the Status field value +func (o *BriefJob) GetStatus() BriefJobStatus { + if o == nil { + var ret BriefJobStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetStatusOk() (*BriefJobStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *BriefJob) SetStatus(v BriefJobStatus) { + o.Status = v +} + + +// GetCreated returns the Created field value if set, zero value otherwise. +func (o *BriefJob) GetCreated() time.Time { + if o == nil || IsNil(o.Created) { + var ret time.Time + return ret + } + return *o.Created +} + +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefJob) GetCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.Created) { + return nil, false + } + return o.Created, true +} + +// HasCreated returns a boolean if a field has been set. +func (o *BriefJob) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given time.Time and assigns it to the Created field. +func (o *BriefJob) SetCreated(v time.Time) { + o.Created = &v +} + +// GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefJob) GetCompleted() time.Time { + if o == nil || IsNil(o.Completed.Get()) { + var ret time.Time + return ret + } + return *o.Completed.Get() +} + +// GetCompletedOk returns a tuple with the Completed 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 *BriefJob) GetCompletedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Completed.Get(), o.Completed.IsSet() +} + +// HasCompleted returns a boolean if a field has been set. +func (o *BriefJob) HasCompleted() bool { + if o != nil && o.Completed.IsSet() { + return true + } + + return false +} + +// SetCompleted gets a reference to the given NullableTime and assigns it to the Completed field. +func (o *BriefJob) SetCompleted(v time.Time) { + o.Completed.Set(&v) +} +// SetCompletedNil sets the value for Completed to be an explicit nil +func (o *BriefJob) SetCompletedNil() { + o.Completed.Set(nil) +} + +// UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +func (o *BriefJob) UnsetCompleted() { + o.Completed.Unset() +} + +// GetUser returns the User field value +func (o *BriefJob) GetUser() BriefUser { + if o == nil { + var ret BriefUser + 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 *BriefJob) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *BriefJob) SetUser(v BriefUser) { + o.User = v +} + + +func (o BriefJob) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJob) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["status"] = o.Status + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if o.Completed.IsSet() { + toSerialize["completed"] = o.Completed.Get() + } + toSerialize["user"] = o.User + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefJob) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + "status", + "user", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefJob := _BriefJob{} + + err = json.Unmarshal(data, &varBriefJob) + + if err != nil { + return err + } + + *o = BriefJob(varBriefJob) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "url") + delete(additionalProperties, "status") + delete(additionalProperties, "created") + delete(additionalProperties, "completed") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJob struct { + value *BriefJob + isSet bool +} + +func (v NullableBriefJob) Get() *BriefJob { + return v.value +} + +func (v *NullableBriefJob) Set(val *BriefJob) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJob) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJob) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJob(val *BriefJob) *NullableBriefJob { + return &NullableBriefJob{value: val, isSet: true} +} + +func (v NullableBriefJob) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJob) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_job_request.go b/model_brief_job_request.go similarity index 57% rename from model_job_request.go rename to model_brief_job_request.go index fb5cce40af..6dd1acdce0 100644 --- a/model_job_request.go +++ b/model_brief_job_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,36 +15,36 @@ import ( "time" ) -// checks if the JobRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &JobRequest{} +// checks if the BriefJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJobRequest{} -// JobRequest struct for JobRequest -type JobRequest struct { - Completed NullableTime `json:"completed,omitempty"` +// BriefJobRequest struct for BriefJobRequest +type BriefJobRequest struct { + Completed NullableTime `json:"completed,omitempty"` AdditionalProperties map[string]interface{} } -type _JobRequest JobRequest +type _BriefJobRequest BriefJobRequest -// NewJobRequest instantiates a new JobRequest object +// NewBriefJobRequest instantiates a new BriefJobRequest 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 NewJobRequest() *JobRequest { - this := JobRequest{} +func NewBriefJobRequest() *BriefJobRequest { + this := BriefJobRequest{} return &this } -// NewJobRequestWithDefaults instantiates a new JobRequest object +// NewBriefJobRequestWithDefaults instantiates a new BriefJobRequest 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 NewJobRequestWithDefaults() *JobRequest { - this := JobRequest{} +func NewBriefJobRequestWithDefaults() *BriefJobRequest { + this := BriefJobRequest{} return &this } // GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *JobRequest) GetCompleted() time.Time { +func (o *BriefJobRequest) GetCompleted() time.Time { if o == nil || IsNil(o.Completed.Get()) { var ret time.Time return ret @@ -55,7 +55,7 @@ func (o *JobRequest) GetCompleted() time.Time { // GetCompletedOk returns a tuple with the Completed 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 *JobRequest) GetCompletedOk() (*time.Time, bool) { +func (o *BriefJobRequest) GetCompletedOk() (*time.Time, bool) { if o == nil { return nil, false } @@ -63,7 +63,7 @@ func (o *JobRequest) GetCompletedOk() (*time.Time, bool) { } // HasCompleted returns a boolean if a field has been set. -func (o *JobRequest) HasCompleted() bool { +func (o *BriefJobRequest) HasCompleted() bool { if o != nil && o.Completed.IsSet() { return true } @@ -72,29 +72,28 @@ func (o *JobRequest) HasCompleted() bool { } // SetCompleted gets a reference to the given NullableTime and assigns it to the Completed field. -func (o *JobRequest) SetCompleted(v time.Time) { +func (o *BriefJobRequest) SetCompleted(v time.Time) { o.Completed.Set(&v) } - // SetCompletedNil sets the value for Completed to be an explicit nil -func (o *JobRequest) SetCompletedNil() { +func (o *BriefJobRequest) SetCompletedNil() { o.Completed.Set(nil) } // UnsetCompleted ensures that no value is present for Completed, not even an explicit nil -func (o *JobRequest) UnsetCompleted() { +func (o *BriefJobRequest) UnsetCompleted() { o.Completed.Unset() } -func (o JobRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o BriefJobRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o JobRequest) ToMap() (map[string]interface{}, error) { +func (o BriefJobRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Completed.IsSet() { toSerialize["completed"] = o.Completed.Get() @@ -107,16 +106,16 @@ func (o JobRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *JobRequest) UnmarshalJSON(data []byte) (err error) { - varJobRequest := _JobRequest{} +func (o *BriefJobRequest) UnmarshalJSON(data []byte) (err error) { + varBriefJobRequest := _BriefJobRequest{} - err = json.Unmarshal(data, &varJobRequest) + err = json.Unmarshal(data, &varBriefJobRequest) if err != nil { return err } - *o = JobRequest(varJobRequest) + *o = BriefJobRequest(varBriefJobRequest) additionalProperties := make(map[string]interface{}) @@ -128,38 +127,40 @@ func (o *JobRequest) UnmarshalJSON(data []byte) (err error) { return err } -type NullableJobRequest struct { - value *JobRequest +type NullableBriefJobRequest struct { + value *BriefJobRequest isSet bool } -func (v NullableJobRequest) Get() *JobRequest { +func (v NullableBriefJobRequest) Get() *BriefJobRequest { return v.value } -func (v *NullableJobRequest) Set(val *JobRequest) { +func (v *NullableBriefJobRequest) Set(val *BriefJobRequest) { v.value = val v.isSet = true } -func (v NullableJobRequest) IsSet() bool { +func (v NullableBriefJobRequest) IsSet() bool { return v.isSet } -func (v *NullableJobRequest) Unset() { +func (v *NullableBriefJobRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableJobRequest(val *JobRequest) *NullableJobRequest { - return &NullableJobRequest{value: val, isSet: true} +func NewNullableBriefJobRequest(val *BriefJobRequest) *NullableBriefJobRequest { + return &NullableBriefJobRequest{value: val, isSet: true} } -func (v NullableJobRequest) MarshalJSON() ([]byte, error) { +func (v NullableBriefJobRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableJobRequest) UnmarshalJSON(src []byte) error { +func (v *NullableBriefJobRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_brief_job_status.go b/model_brief_job_status.go new file mode 100644 index 0000000000..4c1fbb777c --- /dev/null +++ b/model_brief_job_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefJobStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJobStatus{} + +// BriefJobStatus struct for BriefJobStatus +type BriefJobStatus struct { + Value *BriefJobStatusValue `json:"value,omitempty"` + Label *BriefJobStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefJobStatus BriefJobStatus + +// NewBriefJobStatus instantiates a new BriefJobStatus 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 NewBriefJobStatus() *BriefJobStatus { + this := BriefJobStatus{} + return &this +} + +// NewBriefJobStatusWithDefaults instantiates a new BriefJobStatus 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 NewBriefJobStatusWithDefaults() *BriefJobStatus { + this := BriefJobStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefJobStatus) GetValue() BriefJobStatusValue { + if o == nil || IsNil(o.Value) { + var ret BriefJobStatusValue + 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 *BriefJobStatus) GetValueOk() (*BriefJobStatusValue, 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 *BriefJobStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefJobStatusValue and assigns it to the Value field. +func (o *BriefJobStatus) SetValue(v BriefJobStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefJobStatus) GetLabel() BriefJobStatusLabel { + if o == nil || IsNil(o.Label) { + var ret BriefJobStatusLabel + 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 *BriefJobStatus) GetLabelOk() (*BriefJobStatusLabel, 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 *BriefJobStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefJobStatusLabel and assigns it to the Label field. +func (o *BriefJobStatus) SetLabel(v BriefJobStatusLabel) { + o.Label = &v +} + +func (o BriefJobStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJobStatus) 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 *BriefJobStatus) UnmarshalJSON(data []byte) (err error) { + varBriefJobStatus := _BriefJobStatus{} + + err = json.Unmarshal(data, &varBriefJobStatus) + + if err != nil { + return err + } + + *o = BriefJobStatus(varBriefJobStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJobStatus struct { + value *BriefJobStatus + isSet bool +} + +func (v NullableBriefJobStatus) Get() *BriefJobStatus { + return v.value +} + +func (v *NullableBriefJobStatus) Set(val *BriefJobStatus) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatus(val *BriefJobStatus) *NullableBriefJobStatus { + return &NullableBriefJobStatus{value: val, isSet: true} +} + +func (v NullableBriefJobStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_job_status_label.go b/model_brief_job_status_label.go new file mode 100644 index 0000000000..d6dc9156bf --- /dev/null +++ b/model_brief_job_status_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefJobStatusLabel the model 'BriefJobStatusLabel' +type BriefJobStatusLabel string + +// List of BriefJob_status_label +const ( + BRIEFJOBSTATUSLABEL_PENDING BriefJobStatusLabel = "Pending" + BRIEFJOBSTATUSLABEL_SCHEDULED BriefJobStatusLabel = "Scheduled" + BRIEFJOBSTATUSLABEL_RUNNING BriefJobStatusLabel = "Running" + BRIEFJOBSTATUSLABEL_COMPLETED BriefJobStatusLabel = "Completed" + BRIEFJOBSTATUSLABEL_ERRORED BriefJobStatusLabel = "Errored" + BRIEFJOBSTATUSLABEL_FAILED BriefJobStatusLabel = "Failed" +) + +// All allowed values of BriefJobStatusLabel enum +var AllowedBriefJobStatusLabelEnumValues = []BriefJobStatusLabel{ + "Pending", + "Scheduled", + "Running", + "Completed", + "Errored", + "Failed", +} + +func (v *BriefJobStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefJobStatusLabel(value) + for _, existing := range AllowedBriefJobStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefJobStatusLabel", value) +} + +// NewBriefJobStatusLabelFromValue returns a pointer to a valid BriefJobStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefJobStatusLabelFromValue(v string) (*BriefJobStatusLabel, error) { + ev := BriefJobStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefJobStatusLabel: valid values are %v", v, AllowedBriefJobStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefJobStatusLabel) IsValid() bool { + for _, existing := range AllowedBriefJobStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefJob_status_label value +func (v BriefJobStatusLabel) Ptr() *BriefJobStatusLabel { + return &v +} + +type NullableBriefJobStatusLabel struct { + value *BriefJobStatusLabel + isSet bool +} + +func (v NullableBriefJobStatusLabel) Get() *BriefJobStatusLabel { + return v.value +} + +func (v *NullableBriefJobStatusLabel) Set(val *BriefJobStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatusLabel(val *BriefJobStatusLabel) *NullableBriefJobStatusLabel { + return &NullableBriefJobStatusLabel{value: val, isSet: true} +} + +func (v NullableBriefJobStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_job_status_value.go b/model_brief_job_status_value.go new file mode 100644 index 0000000000..26e2e7980c --- /dev/null +++ b/model_brief_job_status_value.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefJobStatusValue * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +type BriefJobStatusValue string + +// List of BriefJob_status_value +const ( + BRIEFJOBSTATUSVALUE_PENDING BriefJobStatusValue = "pending" + BRIEFJOBSTATUSVALUE_SCHEDULED BriefJobStatusValue = "scheduled" + BRIEFJOBSTATUSVALUE_RUNNING BriefJobStatusValue = "running" + BRIEFJOBSTATUSVALUE_COMPLETED BriefJobStatusValue = "completed" + BRIEFJOBSTATUSVALUE_ERRORED BriefJobStatusValue = "errored" + BRIEFJOBSTATUSVALUE_FAILED BriefJobStatusValue = "failed" +) + +// All allowed values of BriefJobStatusValue enum +var AllowedBriefJobStatusValueEnumValues = []BriefJobStatusValue{ + "pending", + "scheduled", + "running", + "completed", + "errored", + "failed", +} + +func (v *BriefJobStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefJobStatusValue(value) + for _, existing := range AllowedBriefJobStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefJobStatusValue", value) +} + +// NewBriefJobStatusValueFromValue returns a pointer to a valid BriefJobStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefJobStatusValueFromValue(v string) (*BriefJobStatusValue, error) { + ev := BriefJobStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefJobStatusValue: valid values are %v", v, AllowedBriefJobStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefJobStatusValue) IsValid() bool { + for _, existing := range AllowedBriefJobStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefJob_status_value value +func (v BriefJobStatusValue) Ptr() *BriefJobStatusValue { + return &v +} + +type NullableBriefJobStatusValue struct { + value *BriefJobStatusValue + isSet bool +} + +func (v NullableBriefJobStatusValue) Get() *BriefJobStatusValue { + return v.value +} + +func (v *NullableBriefJobStatusValue) Set(val *BriefJobStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatusValue(val *BriefJobStatusValue) *NullableBriefJobStatusValue { + return &NullableBriefJobStatusValue{value: val, isSet: true} +} + +func (v NullableBriefJobStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_l2_vpn.go b/model_brief_l2_vpn.go new file mode 100644 index 0000000000..e5b64442b6 --- /dev/null +++ b/model_brief_l2_vpn.go @@ -0,0 +1,427 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPN type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPN{} + +// BriefL2VPN Adds support for custom fields and tags. +type BriefL2VPN 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Type *BriefL2VPNType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPN BriefL2VPN + +// NewBriefL2VPN instantiates a new BriefL2VPN 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 NewBriefL2VPN(id int32, url string, display string, name string, slug string) *BriefL2VPN { + this := BriefL2VPN{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefL2VPNWithDefaults instantiates a new BriefL2VPN 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 NewBriefL2VPNWithDefaults() *BriefL2VPN { + this := BriefL2VPN{} + return &this +} + +// GetId returns the Id field value +func (o *BriefL2VPN) 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 *BriefL2VPN) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefL2VPN) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefL2VPN) 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 *BriefL2VPN) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefL2VPN) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefL2VPN) 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 *BriefL2VPN) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefL2VPN) SetDisplay(v string) { + o.Display = v +} + + +// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefL2VPN) GetIdentifier() int64 { + if o == nil || IsNil(o.Identifier.Get()) { + var ret int64 + return ret + } + return *o.Identifier.Get() +} + +// GetIdentifierOk returns a tuple with the Identifier 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 *BriefL2VPN) GetIdentifierOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Identifier.Get(), o.Identifier.IsSet() +} + +// HasIdentifier returns a boolean if a field has been set. +func (o *BriefL2VPN) HasIdentifier() bool { + if o != nil && o.Identifier.IsSet() { + return true + } + + return false +} + +// SetIdentifier gets a reference to the given NullableInt64 and assigns it to the Identifier field. +func (o *BriefL2VPN) SetIdentifier(v int64) { + o.Identifier.Set(&v) +} +// SetIdentifierNil sets the value for Identifier to be an explicit nil +func (o *BriefL2VPN) SetIdentifierNil() { + o.Identifier.Set(nil) +} + +// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +func (o *BriefL2VPN) UnsetIdentifier() { + o.Identifier.Unset() +} + +// GetName returns the Name field value +func (o *BriefL2VPN) 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 *BriefL2VPN) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefL2VPN) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefL2VPN) 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 *BriefL2VPN) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefL2VPN) SetSlug(v string) { + o.Slug = v +} + + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BriefL2VPN) GetType() BriefL2VPNType { + if o == nil || IsNil(o.Type) { + var ret BriefL2VPNType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetTypeOk() (*BriefL2VPNType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BriefL2VPN) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. +func (o *BriefL2VPN) SetType(v BriefL2VPNType) { + o.Type = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefL2VPN) 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 *BriefL2VPN) 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 *BriefL2VPN) 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 *BriefL2VPN) SetDescription(v string) { + o.Description = &v +} + +func (o BriefL2VPN) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPN) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if o.Identifier.IsSet() { + toSerialize["identifier"] = o.Identifier.Get() + } + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPN) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefL2VPN := _BriefL2VPN{} + + err = json.Unmarshal(data, &varBriefL2VPN) + + if err != nil { + return err + } + + *o = BriefL2VPN(varBriefL2VPN) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "identifier") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "type") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPN struct { + value *BriefL2VPN + isSet bool +} + +func (v NullableBriefL2VPN) Get() *BriefL2VPN { + return v.value +} + +func (v *NullableBriefL2VPN) Set(val *BriefL2VPN) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPN) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPN) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPN(val *BriefL2VPN) *NullableBriefL2VPN { + return &NullableBriefL2VPN{value: val, isSet: true} +} + +func (v NullableBriefL2VPN) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPN) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_request.go b/model_brief_l2_vpn_request.go new file mode 100644 index 0000000000..0af9105887 --- /dev/null +++ b/model_brief_l2_vpn_request.go @@ -0,0 +1,337 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNRequest{} + +// BriefL2VPNRequest Adds support for custom fields and tags. +type BriefL2VPNRequest struct { + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNRequest BriefL2VPNRequest + +// NewBriefL2VPNRequest instantiates a new BriefL2VPNRequest 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 NewBriefL2VPNRequest(name string, slug string) *BriefL2VPNRequest { + this := BriefL2VPNRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefL2VPNRequestWithDefaults instantiates a new BriefL2VPNRequest 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 NewBriefL2VPNRequestWithDefaults() *BriefL2VPNRequest { + this := BriefL2VPNRequest{} + return &this +} + +// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefL2VPNRequest) GetIdentifier() int64 { + if o == nil || IsNil(o.Identifier.Get()) { + var ret int64 + return ret + } + return *o.Identifier.Get() +} + +// GetIdentifierOk returns a tuple with the Identifier 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 *BriefL2VPNRequest) GetIdentifierOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Identifier.Get(), o.Identifier.IsSet() +} + +// HasIdentifier returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasIdentifier() bool { + if o != nil && o.Identifier.IsSet() { + return true + } + + return false +} + +// SetIdentifier gets a reference to the given NullableInt64 and assigns it to the Identifier field. +func (o *BriefL2VPNRequest) SetIdentifier(v int64) { + o.Identifier.Set(&v) +} +// SetIdentifierNil sets the value for Identifier to be an explicit nil +func (o *BriefL2VPNRequest) SetIdentifierNil() { + o.Identifier.Set(nil) +} + +// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +func (o *BriefL2VPNRequest) UnsetIdentifier() { + o.Identifier.Unset() +} + +// GetName returns the Name field value +func (o *BriefL2VPNRequest) 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 *BriefL2VPNRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefL2VPNRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefL2VPNRequest) 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 *BriefL2VPNRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefL2VPNRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BriefL2VPNRequest) GetType() BriefL2VPNTypeValue { + if o == nil || IsNil(o.Type) { + var ret BriefL2VPNTypeValue + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *BriefL2VPNRequest) SetType(v BriefL2VPNTypeValue) { + o.Type = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefL2VPNRequest) 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 *BriefL2VPNRequest) 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 *BriefL2VPNRequest) 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 *BriefL2VPNRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefL2VPNRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Identifier.IsSet() { + toSerialize["identifier"] = o.Identifier.Get() + } + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefL2VPNRequest := _BriefL2VPNRequest{} + + err = json.Unmarshal(data, &varBriefL2VPNRequest) + + if err != nil { + return err + } + + *o = BriefL2VPNRequest(varBriefL2VPNRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "identifier") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "type") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNRequest struct { + value *BriefL2VPNRequest + isSet bool +} + +func (v NullableBriefL2VPNRequest) Get() *BriefL2VPNRequest { + return v.value +} + +func (v *NullableBriefL2VPNRequest) Set(val *BriefL2VPNRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNRequest(val *BriefL2VPNRequest) *NullableBriefL2VPNRequest { + return &NullableBriefL2VPNRequest{value: val, isSet: true} +} + +func (v NullableBriefL2VPNRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_termination.go b/model_brief_l2_vpn_termination.go new file mode 100644 index 0000000000..9c3de1ee0f --- /dev/null +++ b/model_brief_l2_vpn_termination.go @@ -0,0 +1,276 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNTermination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNTermination{} + +// BriefL2VPNTermination Adds support for custom fields and tags. +type BriefL2VPNTermination struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + L2vpn BriefL2VPN `json:"l2vpn"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNTermination BriefL2VPNTermination + +// NewBriefL2VPNTermination instantiates a new BriefL2VPNTermination 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 NewBriefL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN) *BriefL2VPNTermination { + this := BriefL2VPNTermination{} + this.Id = id + this.Url = url + this.Display = display + this.L2vpn = l2vpn + return &this +} + +// NewBriefL2VPNTerminationWithDefaults instantiates a new BriefL2VPNTermination 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 NewBriefL2VPNTerminationWithDefaults() *BriefL2VPNTermination { + this := BriefL2VPNTermination{} + return &this +} + +// GetId returns the Id field value +func (o *BriefL2VPNTermination) 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 *BriefL2VPNTermination) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefL2VPNTermination) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefL2VPNTermination) 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 *BriefL2VPNTermination) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefL2VPNTermination) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefL2VPNTermination) 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 *BriefL2VPNTermination) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefL2VPNTermination) SetDisplay(v string) { + o.Display = v +} + + +// GetL2vpn returns the L2vpn field value +func (o *BriefL2VPNTermination) GetL2vpn() BriefL2VPN { + if o == nil { + var ret BriefL2VPN + return ret + } + + return o.L2vpn +} + +// GetL2vpnOk returns a tuple with the L2vpn field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { + if o == nil { + return nil, false + } + return &o.L2vpn, true +} + +// SetL2vpn sets field value +func (o *BriefL2VPNTermination) SetL2vpn(v BriefL2VPN) { + o.L2vpn = v +} + + +func (o BriefL2VPNTermination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNTermination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["l2vpn"] = o.L2vpn + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNTermination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "l2vpn", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefL2VPNTermination := _BriefL2VPNTermination{} + + err = json.Unmarshal(data, &varBriefL2VPNTermination) + + if err != nil { + return err + } + + *o = BriefL2VPNTermination(varBriefL2VPNTermination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "l2vpn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNTermination struct { + value *BriefL2VPNTermination + isSet bool +} + +func (v NullableBriefL2VPNTermination) Get() *BriefL2VPNTermination { + return v.value +} + +func (v *NullableBriefL2VPNTermination) Set(val *BriefL2VPNTermination) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTermination) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTermination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTermination(val *BriefL2VPNTermination) *NullableBriefL2VPNTermination { + return &NullableBriefL2VPNTermination{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTermination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTermination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_termination_request.go b/model_brief_l2_vpn_termination_request.go new file mode 100644 index 0000000000..7dcc5a1fd5 --- /dev/null +++ b/model_brief_l2_vpn_termination_request.go @@ -0,0 +1,186 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNTerminationRequest{} + +// BriefL2VPNTerminationRequest Adds support for custom fields and tags. +type BriefL2VPNTerminationRequest struct { + L2vpn BriefL2VPNRequest `json:"l2vpn"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNTerminationRequest BriefL2VPNTerminationRequest + +// NewBriefL2VPNTerminationRequest instantiates a new BriefL2VPNTerminationRequest 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 NewBriefL2VPNTerminationRequest(l2vpn BriefL2VPNRequest) *BriefL2VPNTerminationRequest { + this := BriefL2VPNTerminationRequest{} + this.L2vpn = l2vpn + return &this +} + +// NewBriefL2VPNTerminationRequestWithDefaults instantiates a new BriefL2VPNTerminationRequest 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 NewBriefL2VPNTerminationRequestWithDefaults() *BriefL2VPNTerminationRequest { + this := BriefL2VPNTerminationRequest{} + return &this +} + +// GetL2vpn returns the L2vpn field value +func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { + if o == nil { + var ret BriefL2VPNRequest + return ret + } + + return o.L2vpn +} + +// GetL2vpnOk returns a tuple with the L2vpn field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { + if o == nil { + return nil, false + } + return &o.L2vpn, true +} + +// SetL2vpn sets field value +func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { + o.L2vpn = v +} + + +func (o BriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["l2vpn"] = o.L2vpn + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "l2vpn", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefL2VPNTerminationRequest := _BriefL2VPNTerminationRequest{} + + err = json.Unmarshal(data, &varBriefL2VPNTerminationRequest) + + if err != nil { + return err + } + + *o = BriefL2VPNTerminationRequest(varBriefL2VPNTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "l2vpn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNTerminationRequest struct { + value *BriefL2VPNTerminationRequest + isSet bool +} + +func (v NullableBriefL2VPNTerminationRequest) Get() *BriefL2VPNTerminationRequest { + return v.value +} + +func (v *NullableBriefL2VPNTerminationRequest) Set(val *BriefL2VPNTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTerminationRequest(val *BriefL2VPNTerminationRequest) *NullableBriefL2VPNTerminationRequest { + return &NullableBriefL2VPNTerminationRequest{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTerminationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_type.go b/model_brief_l2_vpn_type.go new file mode 100644 index 0000000000..d44986c8b9 --- /dev/null +++ b/model_brief_l2_vpn_type.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefL2VPNType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNType{} + +// BriefL2VPNType struct for BriefL2VPNType +type BriefL2VPNType struct { + Value *BriefL2VPNTypeValue `json:"value,omitempty"` + Label *BriefL2VPNTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNType BriefL2VPNType + +// NewBriefL2VPNType instantiates a new BriefL2VPNType 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 NewBriefL2VPNType() *BriefL2VPNType { + this := BriefL2VPNType{} + return &this +} + +// NewBriefL2VPNTypeWithDefaults instantiates a new BriefL2VPNType 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 NewBriefL2VPNTypeWithDefaults() *BriefL2VPNType { + this := BriefL2VPNType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefL2VPNType) GetValue() BriefL2VPNTypeValue { + if o == nil || IsNil(o.Value) { + var ret BriefL2VPNTypeValue + 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 *BriefL2VPNType) GetValueOk() (*BriefL2VPNTypeValue, 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 *BriefL2VPNType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefL2VPNTypeValue and assigns it to the Value field. +func (o *BriefL2VPNType) SetValue(v BriefL2VPNTypeValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefL2VPNType) GetLabel() BriefL2VPNTypeLabel { + if o == nil || IsNil(o.Label) { + var ret BriefL2VPNTypeLabel + 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 *BriefL2VPNType) GetLabelOk() (*BriefL2VPNTypeLabel, 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 *BriefL2VPNType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefL2VPNTypeLabel and assigns it to the Label field. +func (o *BriefL2VPNType) SetLabel(v BriefL2VPNTypeLabel) { + o.Label = &v +} + +func (o BriefL2VPNType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNType) 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 *BriefL2VPNType) UnmarshalJSON(data []byte) (err error) { + varBriefL2VPNType := _BriefL2VPNType{} + + err = json.Unmarshal(data, &varBriefL2VPNType) + + if err != nil { + return err + } + + *o = BriefL2VPNType(varBriefL2VPNType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNType struct { + value *BriefL2VPNType + isSet bool +} + +func (v NullableBriefL2VPNType) Get() *BriefL2VPNType { + return v.value +} + +func (v *NullableBriefL2VPNType) Set(val *BriefL2VPNType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNType(val *BriefL2VPNType) *NullableBriefL2VPNType { + return &NullableBriefL2VPNType{value: val, isSet: true} +} + +func (v NullableBriefL2VPNType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_type_label.go b/model_brief_l2_vpn_type_label.go new file mode 100644 index 0000000000..a97a526c04 --- /dev/null +++ b/model_brief_l2_vpn_type_label.go @@ -0,0 +1,133 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefL2VPNTypeLabel the model 'BriefL2VPNTypeLabel' +type BriefL2VPNTypeLabel string + +// List of BriefL2VPN_type_label +const ( + BRIEFL2VPNTYPELABEL_VPWS BriefL2VPNTypeLabel = "VPWS" + BRIEFL2VPNTYPELABEL_VPLS BriefL2VPNTypeLabel = "VPLS" + BRIEFL2VPNTYPELABEL_VXLAN BriefL2VPNTypeLabel = "VXLAN" + BRIEFL2VPNTYPELABEL_VXLAN_EVPN BriefL2VPNTypeLabel = "VXLAN-EVPN" + BRIEFL2VPNTYPELABEL_MPLS_EVPN BriefL2VPNTypeLabel = "MPLS EVPN" + BRIEFL2VPNTYPELABEL_PBB_EVPN BriefL2VPNTypeLabel = "PBB EVPN" + BRIEFL2VPNTYPELABEL_EVPN_VPWS BriefL2VPNTypeLabel = "EVPN VPWS" + BRIEFL2VPNTYPELABEL_EPL BriefL2VPNTypeLabel = "EPL" + BRIEFL2VPNTYPELABEL_EVPL BriefL2VPNTypeLabel = "EVPL" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Virtual Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Private Tree" + BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Virtual Private Tree" +) + +// All allowed values of BriefL2VPNTypeLabel enum +var AllowedBriefL2VPNTypeLabelEnumValues = []BriefL2VPNTypeLabel{ + "VPWS", + "VPLS", + "VXLAN", + "VXLAN-EVPN", + "MPLS EVPN", + "PBB EVPN", + "EVPN VPWS", + "EPL", + "EVPL", + "Ethernet Private LAN", + "Ethernet Virtual Private LAN", + "Ethernet Private Tree", + "Ethernet Virtual Private Tree", +} + +func (v *BriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefL2VPNTypeLabel(value) + for _, existing := range AllowedBriefL2VPNTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefL2VPNTypeLabel", value) +} + +// NewBriefL2VPNTypeLabelFromValue returns a pointer to a valid BriefL2VPNTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefL2VPNTypeLabelFromValue(v string) (*BriefL2VPNTypeLabel, error) { + ev := BriefL2VPNTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefL2VPNTypeLabel: valid values are %v", v, AllowedBriefL2VPNTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefL2VPNTypeLabel) IsValid() bool { + for _, existing := range AllowedBriefL2VPNTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefL2VPN_type_label value +func (v BriefL2VPNTypeLabel) Ptr() *BriefL2VPNTypeLabel { + return &v +} + +type NullableBriefL2VPNTypeLabel struct { + value *BriefL2VPNTypeLabel + isSet bool +} + +func (v NullableBriefL2VPNTypeLabel) Get() *BriefL2VPNTypeLabel { + return v.value +} + +func (v *NullableBriefL2VPNTypeLabel) Set(val *BriefL2VPNTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTypeLabel(val *BriefL2VPNTypeLabel) *NullableBriefL2VPNTypeLabel { + return &NullableBriefL2VPNTypeLabel{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_l2_vpn_type_value.go b/model_brief_l2_vpn_type_value.go new file mode 100644 index 0000000000..850b4eb26f --- /dev/null +++ b/model_brief_l2_vpn_type_value.go @@ -0,0 +1,133 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefL2VPNTypeValue * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `evpn-vpws` - EVPN VPWS * `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 BriefL2VPNTypeValue string + +// List of BriefL2VPN_type_value +const ( + BRIEFL2VPNTYPEVALUE_VPWS BriefL2VPNTypeValue = "vpws" + BRIEFL2VPNTYPEVALUE_VPLS BriefL2VPNTypeValue = "vpls" + BRIEFL2VPNTYPEVALUE_VXLAN BriefL2VPNTypeValue = "vxlan" + BRIEFL2VPNTYPEVALUE_VXLAN_EVPN BriefL2VPNTypeValue = "vxlan-evpn" + BRIEFL2VPNTYPEVALUE_MPLS_EVPN BriefL2VPNTypeValue = "mpls-evpn" + BRIEFL2VPNTYPEVALUE_PBB_EVPN BriefL2VPNTypeValue = "pbb-evpn" + BRIEFL2VPNTYPEVALUE_EVPN_VPWS BriefL2VPNTypeValue = "evpn-vpws" + BRIEFL2VPNTYPEVALUE_EPL BriefL2VPNTypeValue = "epl" + BRIEFL2VPNTYPEVALUE_EVPL BriefL2VPNTypeValue = "evpl" + BRIEFL2VPNTYPEVALUE_EP_LAN BriefL2VPNTypeValue = "ep-lan" + BRIEFL2VPNTYPEVALUE_EVP_LAN BriefL2VPNTypeValue = "evp-lan" + BRIEFL2VPNTYPEVALUE_EP_TREE BriefL2VPNTypeValue = "ep-tree" + BRIEFL2VPNTYPEVALUE_EVP_TREE BriefL2VPNTypeValue = "evp-tree" +) + +// All allowed values of BriefL2VPNTypeValue enum +var AllowedBriefL2VPNTypeValueEnumValues = []BriefL2VPNTypeValue{ + "vpws", + "vpls", + "vxlan", + "vxlan-evpn", + "mpls-evpn", + "pbb-evpn", + "evpn-vpws", + "epl", + "evpl", + "ep-lan", + "evp-lan", + "ep-tree", + "evp-tree", +} + +func (v *BriefL2VPNTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefL2VPNTypeValue(value) + for _, existing := range AllowedBriefL2VPNTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefL2VPNTypeValue", value) +} + +// NewBriefL2VPNTypeValueFromValue returns a pointer to a valid BriefL2VPNTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefL2VPNTypeValueFromValue(v string) (*BriefL2VPNTypeValue, error) { + ev := BriefL2VPNTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefL2VPNTypeValue: valid values are %v", v, AllowedBriefL2VPNTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefL2VPNTypeValue) IsValid() bool { + for _, existing := range AllowedBriefL2VPNTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefL2VPN_type_value value +func (v BriefL2VPNTypeValue) Ptr() *BriefL2VPNTypeValue { + return &v +} + +type NullableBriefL2VPNTypeValue struct { + value *BriefL2VPNTypeValue + isSet bool +} + +func (v NullableBriefL2VPNTypeValue) Get() *BriefL2VPNTypeValue { + return v.value +} + +func (v *NullableBriefL2VPNTypeValue) Set(val *BriefL2VPNTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTypeValue(val *BriefL2VPNTypeValue) *NullableBriefL2VPNTypeValue { + return &NullableBriefL2VPNTypeValue{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_location.go b/model_brief_location.go new file mode 100644 index 0000000000..bfd23a0667 --- /dev/null +++ b/model_brief_location.go @@ -0,0 +1,410 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefLocation{} + +// BriefLocation Extends PrimaryModelSerializer to include MPTT support. +type BriefLocation struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + RackCount *int32 `json:"rack_count,omitempty"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefLocation BriefLocation + +// NewBriefLocation instantiates a new BriefLocation 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 NewBriefLocation(id int32, url string, display string, name string, slug string, depth int32) *BriefLocation { + this := BriefLocation{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewBriefLocationWithDefaults instantiates a new BriefLocation 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 NewBriefLocationWithDefaults() *BriefLocation { + this := BriefLocation{} + return &this +} + +// GetId returns the Id field value +func (o *BriefLocation) 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 *BriefLocation) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefLocation) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefLocation) 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 *BriefLocation) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefLocation) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefLocation) 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 *BriefLocation) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefLocation) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefLocation) 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 *BriefLocation) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefLocation) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefLocation) 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 *BriefLocation) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefLocation) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefLocation) 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 *BriefLocation) 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 *BriefLocation) 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 *BriefLocation) SetDescription(v string) { + o.Description = &v +} + +// GetRackCount returns the RackCount field value if set, zero value otherwise. +func (o *BriefLocation) GetRackCount() int32 { + if o == nil || IsNil(o.RackCount) { + var ret int32 + return ret + } + return *o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetRackCountOk() (*int32, bool) { + if o == nil || IsNil(o.RackCount) { + return nil, false + } + return o.RackCount, true +} + +// HasRackCount returns a boolean if a field has been set. +func (o *BriefLocation) HasRackCount() bool { + if o != nil && !IsNil(o.RackCount) { + return true + } + + return false +} + +// SetRackCount gets a reference to the given int32 and assigns it to the RackCount field. +func (o *BriefLocation) SetRackCount(v int32) { + o.RackCount = &v +} + +// GetDepth returns the Depth field value +func (o *BriefLocation) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefLocation) SetDepth(v int32) { + o.Depth = v +} + + +func (o BriefLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefLocation) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.RackCount) { + toSerialize["rack_count"] = o.RackCount + } + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefLocation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefLocation := _BriefLocation{} + + err = json.Unmarshal(data, &varBriefLocation) + + if err != nil { + return err + } + + *o = BriefLocation(varBriefLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefLocation struct { + value *BriefLocation + isSet bool +} + +func (v NullableBriefLocation) Get() *BriefLocation { + return v.value +} + +func (v *NullableBriefLocation) Set(val *BriefLocation) { + v.value = val + v.isSet = true +} + +func (v NullableBriefLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefLocation(val *BriefLocation) *NullableBriefLocation { + return &NullableBriefLocation{value: val, isSet: true} +} + +func (v NullableBriefLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_location_request.go b/model_brief_location_request.go new file mode 100644 index 0000000000..e6c540486a --- /dev/null +++ b/model_brief_location_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefLocationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefLocationRequest{} + +// BriefLocationRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefLocationRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefLocationRequest BriefLocationRequest + +// NewBriefLocationRequest instantiates a new BriefLocationRequest 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 NewBriefLocationRequest(name string, slug string) *BriefLocationRequest { + this := BriefLocationRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefLocationRequestWithDefaults instantiates a new BriefLocationRequest 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 NewBriefLocationRequestWithDefaults() *BriefLocationRequest { + this := BriefLocationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefLocationRequest) 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 *BriefLocationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefLocationRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefLocationRequest) 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 *BriefLocationRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefLocationRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefLocationRequest) 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 *BriefLocationRequest) 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 *BriefLocationRequest) 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 *BriefLocationRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefLocationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefLocationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefLocationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefLocationRequest := _BriefLocationRequest{} + + err = json.Unmarshal(data, &varBriefLocationRequest) + + if err != nil { + return err + } + + *o = BriefLocationRequest(varBriefLocationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefLocationRequest struct { + value *BriefLocationRequest + isSet bool +} + +func (v NullableBriefLocationRequest) Get() *BriefLocationRequest { + return v.value +} + +func (v *NullableBriefLocationRequest) Set(val *BriefLocationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefLocationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefLocationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefLocationRequest(val *BriefLocationRequest) *NullableBriefLocationRequest { + return &NullableBriefLocationRequest{value: val, isSet: true} +} + +func (v NullableBriefLocationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefLocationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_mac_address.go b/model_brief_mac_address.go new file mode 100644 index 0000000000..12d05adfa7 --- /dev/null +++ b/model_brief_mac_address.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefMACAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefMACAddress{} + +// BriefMACAddress Adds support for custom fields and tags. +type BriefMACAddress struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + MacAddress string `json:"mac_address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefMACAddress BriefMACAddress + +// NewBriefMACAddress instantiates a new BriefMACAddress 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 NewBriefMACAddress(id int32, url string, display string, macAddress string) *BriefMACAddress { + this := BriefMACAddress{} + this.Id = id + this.Url = url + this.Display = display + this.MacAddress = macAddress + return &this +} + +// NewBriefMACAddressWithDefaults instantiates a new BriefMACAddress 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 NewBriefMACAddressWithDefaults() *BriefMACAddress { + this := BriefMACAddress{} + return &this +} + +// GetId returns the Id field value +func (o *BriefMACAddress) 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 *BriefMACAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefMACAddress) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefMACAddress) 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 *BriefMACAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefMACAddress) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefMACAddress) 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 *BriefMACAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefMACAddress) SetDisplay(v string) { + o.Display = v +} + + +// GetMacAddress returns the MacAddress field value +func (o *BriefMACAddress) GetMacAddress() string { + if o == nil { + var ret string + return ret + } + + return o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value +// and a boolean to check if the value has been set. +func (o *BriefMACAddress) GetMacAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MacAddress, true +} + +// SetMacAddress sets field value +func (o *BriefMACAddress) SetMacAddress(v string) { + o.MacAddress = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefMACAddress) 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 *BriefMACAddress) 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 *BriefMACAddress) 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 *BriefMACAddress) SetDescription(v string) { + o.Description = &v +} + +func (o BriefMACAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefMACAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["mac_address"] = o.MacAddress + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefMACAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "mac_address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefMACAddress := _BriefMACAddress{} + + err = json.Unmarshal(data, &varBriefMACAddress) + + if err != nil { + return err + } + + *o = BriefMACAddress(varBriefMACAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "mac_address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefMACAddress struct { + value *BriefMACAddress + isSet bool +} + +func (v NullableBriefMACAddress) Get() *BriefMACAddress { + return v.value +} + +func (v *NullableBriefMACAddress) Set(val *BriefMACAddress) { + v.value = val + v.isSet = true +} + +func (v NullableBriefMACAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefMACAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefMACAddress(val *BriefMACAddress) *NullableBriefMACAddress { + return &NullableBriefMACAddress{value: val, isSet: true} +} + +func (v NullableBriefMACAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefMACAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_mac_address_request.go b/model_brief_mac_address_request.go new file mode 100644 index 0000000000..07878f34f7 --- /dev/null +++ b/model_brief_mac_address_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefMACAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefMACAddressRequest{} + +// BriefMACAddressRequest Adds support for custom fields and tags. +type BriefMACAddressRequest struct { + MacAddress string `json:"mac_address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefMACAddressRequest BriefMACAddressRequest + +// NewBriefMACAddressRequest instantiates a new BriefMACAddressRequest 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 NewBriefMACAddressRequest(macAddress string) *BriefMACAddressRequest { + this := BriefMACAddressRequest{} + this.MacAddress = macAddress + return &this +} + +// NewBriefMACAddressRequestWithDefaults instantiates a new BriefMACAddressRequest 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 NewBriefMACAddressRequestWithDefaults() *BriefMACAddressRequest { + this := BriefMACAddressRequest{} + return &this +} + +// GetMacAddress returns the MacAddress field value +func (o *BriefMACAddressRequest) GetMacAddress() string { + if o == nil { + var ret string + return ret + } + + return o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value +// and a boolean to check if the value has been set. +func (o *BriefMACAddressRequest) GetMacAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MacAddress, true +} + +// SetMacAddress sets field value +func (o *BriefMACAddressRequest) SetMacAddress(v string) { + o.MacAddress = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefMACAddressRequest) 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 *BriefMACAddressRequest) 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 *BriefMACAddressRequest) 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 *BriefMACAddressRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefMACAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefMACAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["mac_address"] = o.MacAddress + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefMACAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "mac_address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefMACAddressRequest := _BriefMACAddressRequest{} + + err = json.Unmarshal(data, &varBriefMACAddressRequest) + + if err != nil { + return err + } + + *o = BriefMACAddressRequest(varBriefMACAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "mac_address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefMACAddressRequest struct { + value *BriefMACAddressRequest + isSet bool +} + +func (v NullableBriefMACAddressRequest) Get() *BriefMACAddressRequest { + return v.value +} + +func (v *NullableBriefMACAddressRequest) Set(val *BriefMACAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefMACAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefMACAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefMACAddressRequest(val *BriefMACAddressRequest) *NullableBriefMACAddressRequest { + return &NullableBriefMACAddressRequest{value: val, isSet: true} +} + +func (v NullableBriefMACAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefMACAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_manufacturer.go b/model_brief_manufacturer.go new file mode 100644 index 0000000000..6790756abe --- /dev/null +++ b/model_brief_manufacturer.go @@ -0,0 +1,380 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefManufacturer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefManufacturer{} + +// BriefManufacturer Adds support for custom fields and tags. +type BriefManufacturer struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefManufacturer BriefManufacturer + +// NewBriefManufacturer instantiates a new BriefManufacturer 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 NewBriefManufacturer(id int32, url string, display string, name string, slug string) *BriefManufacturer { + this := BriefManufacturer{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefManufacturerWithDefaults instantiates a new BriefManufacturer 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 NewBriefManufacturerWithDefaults() *BriefManufacturer { + this := BriefManufacturer{} + return &this +} + +// GetId returns the Id field value +func (o *BriefManufacturer) 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 *BriefManufacturer) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefManufacturer) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefManufacturer) 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 *BriefManufacturer) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefManufacturer) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefManufacturer) 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 *BriefManufacturer) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefManufacturer) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefManufacturer) 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 *BriefManufacturer) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefManufacturer) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefManufacturer) 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 *BriefManufacturer) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefManufacturer) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefManufacturer) 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 *BriefManufacturer) 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 *BriefManufacturer) 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 *BriefManufacturer) SetDescription(v string) { + o.Description = &v +} + +// GetDevicetypeCount returns the DevicetypeCount field value if set, zero value otherwise. +func (o *BriefManufacturer) GetDevicetypeCount() int64 { + if o == nil || IsNil(o.DevicetypeCount) { + var ret int64 + return ret + } + return *o.DevicetypeCount +} + +// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetDevicetypeCountOk() (*int64, bool) { + if o == nil || IsNil(o.DevicetypeCount) { + return nil, false + } + return o.DevicetypeCount, true +} + +// HasDevicetypeCount returns a boolean if a field has been set. +func (o *BriefManufacturer) HasDevicetypeCount() bool { + if o != nil && !IsNil(o.DevicetypeCount) { + return true + } + + return false +} + +// SetDevicetypeCount gets a reference to the given int64 and assigns it to the DevicetypeCount field. +func (o *BriefManufacturer) SetDevicetypeCount(v int64) { + o.DevicetypeCount = &v +} + +func (o BriefManufacturer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefManufacturer) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DevicetypeCount) { + toSerialize["devicetype_count"] = o.DevicetypeCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefManufacturer) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefManufacturer := _BriefManufacturer{} + + err = json.Unmarshal(data, &varBriefManufacturer) + + if err != nil { + return err + } + + *o = BriefManufacturer(varBriefManufacturer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "devicetype_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefManufacturer struct { + value *BriefManufacturer + isSet bool +} + +func (v NullableBriefManufacturer) Get() *BriefManufacturer { + return v.value +} + +func (v *NullableBriefManufacturer) Set(val *BriefManufacturer) { + v.value = val + v.isSet = true +} + +func (v NullableBriefManufacturer) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefManufacturer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefManufacturer(val *BriefManufacturer) *NullableBriefManufacturer { + return &NullableBriefManufacturer{value: val, isSet: true} +} + +func (v NullableBriefManufacturer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefManufacturer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_manufacturer_request.go b/model_brief_manufacturer_request.go new file mode 100644 index 0000000000..dd8b1912d7 --- /dev/null +++ b/model_brief_manufacturer_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefManufacturerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefManufacturerRequest{} + +// BriefManufacturerRequest Adds support for custom fields and tags. +type BriefManufacturerRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefManufacturerRequest BriefManufacturerRequest + +// NewBriefManufacturerRequest instantiates a new BriefManufacturerRequest 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 NewBriefManufacturerRequest(name string, slug string) *BriefManufacturerRequest { + this := BriefManufacturerRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefManufacturerRequestWithDefaults instantiates a new BriefManufacturerRequest 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 NewBriefManufacturerRequestWithDefaults() *BriefManufacturerRequest { + this := BriefManufacturerRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefManufacturerRequest) 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 *BriefManufacturerRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefManufacturerRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefManufacturerRequest) 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 *BriefManufacturerRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefManufacturerRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefManufacturerRequest) 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 *BriefManufacturerRequest) 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 *BriefManufacturerRequest) 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 *BriefManufacturerRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefManufacturerRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefManufacturerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefManufacturerRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefManufacturerRequest := _BriefManufacturerRequest{} + + err = json.Unmarshal(data, &varBriefManufacturerRequest) + + if err != nil { + return err + } + + *o = BriefManufacturerRequest(varBriefManufacturerRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefManufacturerRequest struct { + value *BriefManufacturerRequest + isSet bool +} + +func (v NullableBriefManufacturerRequest) Get() *BriefManufacturerRequest { + return v.value +} + +func (v *NullableBriefManufacturerRequest) Set(val *BriefManufacturerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefManufacturerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefManufacturerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefManufacturerRequest(val *BriefManufacturerRequest) *NullableBriefManufacturerRequest { + return &NullableBriefManufacturerRequest{value: val, isSet: true} +} + +func (v NullableBriefManufacturerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefManufacturerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module.go b/model_brief_module.go new file mode 100644 index 0000000000..b6d6a438a6 --- /dev/null +++ b/model_brief_module.go @@ -0,0 +1,306 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModule{} + +// BriefModule Adds support for custom fields and tags. +type BriefModule struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` + AdditionalProperties map[string]interface{} +} + +type _BriefModule BriefModule + +// NewBriefModule instantiates a new BriefModule 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 NewBriefModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay) *BriefModule { + this := BriefModule{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.ModuleBay = moduleBay + return &this +} + +// NewBriefModuleWithDefaults instantiates a new BriefModule 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 NewBriefModuleWithDefaults() *BriefModule { + this := BriefModule{} + return &this +} + +// GetId returns the Id field value +func (o *BriefModule) 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 *BriefModule) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefModule) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefModule) 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 *BriefModule) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefModule) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefModule) 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 *BriefModule) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefModule) SetDisplay(v string) { + o.Display = v +} + + +// GetDevice returns the Device field value +func (o *BriefModule) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefModule) SetDevice(v BriefDevice) { + o.Device = v +} + + +// GetModuleBay returns the ModuleBay field value +func (o *BriefModule) GetModuleBay() NestedModuleBay { + if o == nil { + var ret NestedModuleBay + return ret + } + + return o.ModuleBay +} + +// GetModuleBayOk returns a tuple with the ModuleBay field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetModuleBayOk() (*NestedModuleBay, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBay, true +} + +// SetModuleBay sets field value +func (o *BriefModule) SetModuleBay(v NestedModuleBay) { + o.ModuleBay = v +} + + +func (o BriefModule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["module_bay"] = o.ModuleBay + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "module_bay", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefModule := _BriefModule{} + + err = json.Unmarshal(data, &varBriefModule) + + if err != nil { + return err + } + + *o = BriefModule(varBriefModule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "module_bay") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModule struct { + value *BriefModule + isSet bool +} + +func (v NullableBriefModule) Get() *BriefModule { + return v.value +} + +func (v *NullableBriefModule) Set(val *BriefModule) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModule) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModule(val *BriefModule) *NullableBriefModule { + return &NullableBriefModule{value: val, isSet: true} +} + +func (v NullableBriefModule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module_request.go b/model_brief_module_request.go new file mode 100644 index 0000000000..e0317d0bff --- /dev/null +++ b/model_brief_module_request.go @@ -0,0 +1,216 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleRequest{} + +// BriefModuleRequest Adds support for custom fields and tags. +type BriefModuleRequest struct { + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleRequest BriefModuleRequest + +// NewBriefModuleRequest instantiates a new BriefModuleRequest 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 NewBriefModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest) *BriefModuleRequest { + this := BriefModuleRequest{} + this.Device = device + this.ModuleBay = moduleBay + return &this +} + +// NewBriefModuleRequestWithDefaults instantiates a new BriefModuleRequest 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 NewBriefModuleRequestWithDefaults() *BriefModuleRequest { + this := BriefModuleRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefModuleRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefModuleRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + + +// GetModuleBay returns the ModuleBay field value +func (o *BriefModuleRequest) GetModuleBay() NestedModuleBayRequest { + if o == nil { + var ret NestedModuleBayRequest + return ret + } + + return o.ModuleBay +} + +// GetModuleBayOk returns a tuple with the ModuleBay field value +// and a boolean to check if the value has been set. +func (o *BriefModuleRequest) GetModuleBayOk() (*NestedModuleBayRequest, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBay, true +} + +// SetModuleBay sets field value +func (o *BriefModuleRequest) SetModuleBay(v NestedModuleBayRequest) { + o.ModuleBay = v +} + + +func (o BriefModuleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["module_bay"] = o.ModuleBay + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "module_bay", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefModuleRequest := _BriefModuleRequest{} + + err = json.Unmarshal(data, &varBriefModuleRequest) + + if err != nil { + return err + } + + *o = BriefModuleRequest(varBriefModuleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "module_bay") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleRequest struct { + value *BriefModuleRequest + isSet bool +} + +func (v NullableBriefModuleRequest) Get() *BriefModuleRequest { + return v.value +} + +func (v *NullableBriefModuleRequest) Set(val *BriefModuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleRequest(val *BriefModuleRequest) *NullableBriefModuleRequest { + return &NullableBriefModuleRequest{value: val, isSet: true} +} + +func (v NullableBriefModuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module_type.go b/model_brief_module_type.go new file mode 100644 index 0000000000..06e9b62267 --- /dev/null +++ b/model_brief_module_type.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleType{} + +// BriefModuleType Adds support for custom fields and tags. +type BriefModuleType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleType BriefModuleType + +// NewBriefModuleType instantiates a new BriefModuleType 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 NewBriefModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string) *BriefModuleType { + this := BriefModuleType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + return &this +} + +// NewBriefModuleTypeWithDefaults instantiates a new BriefModuleType 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 NewBriefModuleTypeWithDefaults() *BriefModuleType { + this := BriefModuleType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefModuleType) 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 *BriefModuleType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefModuleType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefModuleType) 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 *BriefModuleType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefModuleType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefModuleType) 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 *BriefModuleType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefModuleType) SetDisplay(v string) { + o.Display = v +} + + +// GetManufacturer returns the Manufacturer field value +func (o *BriefModuleType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefModuleType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *BriefModuleType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefModuleType) SetModel(v string) { + o.Model = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefModuleType) 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 *BriefModuleType) 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 *BriefModuleType) 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 *BriefModuleType) SetDescription(v string) { + o.Description = &v +} + +func (o BriefModuleType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefModuleType := _BriefModuleType{} + + err = json.Unmarshal(data, &varBriefModuleType) + + if err != nil { + return err + } + + *o = BriefModuleType(varBriefModuleType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleType struct { + value *BriefModuleType + isSet bool +} + +func (v NullableBriefModuleType) Get() *BriefModuleType { + return v.value +} + +func (v *NullableBriefModuleType) Set(val *BriefModuleType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleType(val *BriefModuleType) *NullableBriefModuleType { + return &NullableBriefModuleType{value: val, isSet: true} +} + +func (v NullableBriefModuleType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module_type_request.go b/model_brief_module_type_request.go new file mode 100644 index 0000000000..e1455277c4 --- /dev/null +++ b/model_brief_module_type_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleTypeRequest{} + +// BriefModuleTypeRequest Adds support for custom fields and tags. +type BriefModuleTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleTypeRequest BriefModuleTypeRequest + +// NewBriefModuleTypeRequest instantiates a new BriefModuleTypeRequest 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 NewBriefModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *BriefModuleTypeRequest { + this := BriefModuleTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + return &this +} + +// NewBriefModuleTypeRequestWithDefaults instantiates a new BriefModuleTypeRequest 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 NewBriefModuleTypeRequestWithDefaults() *BriefModuleTypeRequest { + this := BriefModuleTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *BriefModuleTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefModuleTypeRequest) SetModel(v string) { + o.Model = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefModuleTypeRequest) 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 *BriefModuleTypeRequest) 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 *BriefModuleTypeRequest) 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 *BriefModuleTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefModuleTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefModuleTypeRequest := _BriefModuleTypeRequest{} + + err = json.Unmarshal(data, &varBriefModuleTypeRequest) + + if err != nil { + return err + } + + *o = BriefModuleTypeRequest(varBriefModuleTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleTypeRequest struct { + value *BriefModuleTypeRequest + isSet bool +} + +func (v NullableBriefModuleTypeRequest) Get() *BriefModuleTypeRequest { + return v.value +} + +func (v *NullableBriefModuleTypeRequest) Set(val *BriefModuleTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleTypeRequest(val *BriefModuleTypeRequest) *NullableBriefModuleTypeRequest { + return &NullableBriefModuleTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefModuleTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_platform.go b/model_brief_platform.go new file mode 100644 index 0000000000..5d4681aa80 --- /dev/null +++ b/model_brief_platform.go @@ -0,0 +1,417 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPlatform type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPlatform{} + +// BriefPlatform Adds support for custom fields and tags. +type BriefPlatform struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPlatform BriefPlatform + +// NewBriefPlatform instantiates a new BriefPlatform 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 NewBriefPlatform(id int32, url string, display string, name string, slug string) *BriefPlatform { + this := BriefPlatform{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefPlatformWithDefaults instantiates a new BriefPlatform 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 NewBriefPlatformWithDefaults() *BriefPlatform { + this := BriefPlatform{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPlatform) 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 *BriefPlatform) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPlatform) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefPlatform) 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 *BriefPlatform) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPlatform) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefPlatform) 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 *BriefPlatform) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPlatform) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefPlatform) 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 *BriefPlatform) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPlatform) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefPlatform) 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 *BriefPlatform) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefPlatform) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPlatform) 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 *BriefPlatform) 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 *BriefPlatform) 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 *BriefPlatform) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefPlatform) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefPlatform) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefPlatform) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *BriefPlatform) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *BriefPlatform) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *BriefPlatform) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +func (o BriefPlatform) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPlatform) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPlatform) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPlatform := _BriefPlatform{} + + err = json.Unmarshal(data, &varBriefPlatform) + + if err != nil { + return err + } + + *o = BriefPlatform(varBriefPlatform) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPlatform struct { + value *BriefPlatform + isSet bool +} + +func (v NullableBriefPlatform) Get() *BriefPlatform { + return v.value +} + +func (v *NullableBriefPlatform) Set(val *BriefPlatform) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPlatform) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPlatform) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPlatform(val *BriefPlatform) *NullableBriefPlatform { + return &NullableBriefPlatform{value: val, isSet: true} +} + +func (v NullableBriefPlatform) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPlatform) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_platform_request.go b/model_brief_platform_request.go new file mode 100644 index 0000000000..c2c790be8f --- /dev/null +++ b/model_brief_platform_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPlatformRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPlatformRequest{} + +// BriefPlatformRequest Adds support for custom fields and tags. +type BriefPlatformRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPlatformRequest BriefPlatformRequest + +// NewBriefPlatformRequest instantiates a new BriefPlatformRequest 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 NewBriefPlatformRequest(name string, slug string) *BriefPlatformRequest { + this := BriefPlatformRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefPlatformRequestWithDefaults instantiates a new BriefPlatformRequest 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 NewBriefPlatformRequestWithDefaults() *BriefPlatformRequest { + this := BriefPlatformRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPlatformRequest) 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 *BriefPlatformRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPlatformRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefPlatformRequest) 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 *BriefPlatformRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefPlatformRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPlatformRequest) 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 *BriefPlatformRequest) 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 *BriefPlatformRequest) 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 *BriefPlatformRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPlatformRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPlatformRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPlatformRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPlatformRequest := _BriefPlatformRequest{} + + err = json.Unmarshal(data, &varBriefPlatformRequest) + + if err != nil { + return err + } + + *o = BriefPlatformRequest(varBriefPlatformRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPlatformRequest struct { + value *BriefPlatformRequest + isSet bool +} + +func (v NullableBriefPlatformRequest) Get() *BriefPlatformRequest { + return v.value +} + +func (v *NullableBriefPlatformRequest) Set(val *BriefPlatformRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPlatformRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPlatformRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPlatformRequest(val *BriefPlatformRequest) *NullableBriefPlatformRequest { + return &NullableBriefPlatformRequest{value: val, isSet: true} +} + +func (v NullableBriefPlatformRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPlatformRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_panel.go b/model_brief_power_panel.go new file mode 100644 index 0000000000..61bf536187 --- /dev/null +++ b/model_brief_power_panel.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPanel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPanel{} + +// BriefPowerPanel Adds support for custom fields and tags. +type BriefPowerPanel struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPanel BriefPowerPanel + +// NewBriefPowerPanel instantiates a new BriefPowerPanel 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 NewBriefPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *BriefPowerPanel { + this := BriefPowerPanel{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.PowerfeedCount = powerfeedCount + return &this +} + +// NewBriefPowerPanelWithDefaults instantiates a new BriefPowerPanel 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 NewBriefPowerPanelWithDefaults() *BriefPowerPanel { + this := BriefPowerPanel{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPanel) 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 *BriefPowerPanel) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPanel) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefPowerPanel) 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 *BriefPowerPanel) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPanel) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefPowerPanel) 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 *BriefPowerPanel) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPanel) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefPowerPanel) 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 *BriefPowerPanel) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPanel) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPanel) 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 *BriefPowerPanel) 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 *BriefPowerPanel) 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 *BriefPowerPanel) SetDescription(v string) { + o.Description = &v +} + +// GetPowerfeedCount returns the PowerfeedCount field value +func (o *BriefPowerPanel) GetPowerfeedCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PowerfeedCount +} + +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetPowerfeedCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PowerfeedCount, true +} + +// SetPowerfeedCount sets field value +func (o *BriefPowerPanel) SetPowerfeedCount(v int64) { + o.PowerfeedCount = v +} + + +func (o BriefPowerPanel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPanel) 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 + } + toSerialize["powerfeed_count"] = o.PowerfeedCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPanel) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "powerfeed_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPowerPanel := _BriefPowerPanel{} + + err = json.Unmarshal(data, &varBriefPowerPanel) + + if err != nil { + return err + } + + *o = BriefPowerPanel(varBriefPowerPanel) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "powerfeed_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPanel struct { + value *BriefPowerPanel + isSet bool +} + +func (v NullableBriefPowerPanel) Get() *BriefPowerPanel { + return v.value +} + +func (v *NullableBriefPowerPanel) Set(val *BriefPowerPanel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPanel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPanel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPanel(val *BriefPowerPanel) *NullableBriefPowerPanel { + return &NullableBriefPowerPanel{value: val, isSet: true} +} + +func (v NullableBriefPowerPanel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPanel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_panel_request.go b/model_brief_power_panel_request.go new file mode 100644 index 0000000000..8b4b278323 --- /dev/null +++ b/model_brief_power_panel_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPanelRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPanelRequest{} + +// BriefPowerPanelRequest Adds support for custom fields and tags. +type BriefPowerPanelRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPanelRequest BriefPowerPanelRequest + +// NewBriefPowerPanelRequest instantiates a new BriefPowerPanelRequest 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 NewBriefPowerPanelRequest(name string) *BriefPowerPanelRequest { + this := BriefPowerPanelRequest{} + this.Name = name + return &this +} + +// NewBriefPowerPanelRequestWithDefaults instantiates a new BriefPowerPanelRequest 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 NewBriefPowerPanelRequestWithDefaults() *BriefPowerPanelRequest { + this := BriefPowerPanelRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPowerPanelRequest) 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 *BriefPowerPanelRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPanelRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPanelRequest) 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 *BriefPowerPanelRequest) 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 *BriefPowerPanelRequest) 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 *BriefPowerPanelRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPanelRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPanelRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPanelRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPowerPanelRequest := _BriefPowerPanelRequest{} + + err = json.Unmarshal(data, &varBriefPowerPanelRequest) + + if err != nil { + return err + } + + *o = BriefPowerPanelRequest(varBriefPowerPanelRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPanelRequest struct { + value *BriefPowerPanelRequest + isSet bool +} + +func (v NullableBriefPowerPanelRequest) Get() *BriefPowerPanelRequest { + return v.value +} + +func (v *NullableBriefPowerPanelRequest) Set(val *BriefPowerPanelRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPanelRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPanelRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPanelRequest(val *BriefPowerPanelRequest) *NullableBriefPowerPanelRequest { + return &NullableBriefPowerPanelRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPanelRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPanelRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port.go b/model_brief_power_port.go new file mode 100644 index 0000000000..bec86ba74e --- /dev/null +++ b/model_brief_power_port.go @@ -0,0 +1,420 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPort type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPort{} + +// BriefPowerPort Adds support for custom fields and tags. +type BriefPowerPort struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPort BriefPowerPort + +// NewBriefPowerPort instantiates a new BriefPowerPort 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 NewBriefPowerPort(id int32, url string, display string, device BriefDevice, name string, occupied bool) *BriefPowerPort { + this := BriefPowerPort{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.Name = name + this.Occupied = occupied + return &this +} + +// NewBriefPowerPortWithDefaults instantiates a new BriefPowerPort 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 NewBriefPowerPortWithDefaults() *BriefPowerPort { + this := BriefPowerPort{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPort) 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 *BriefPowerPort) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPort) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefPowerPort) 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 *BriefPowerPort) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPort) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefPowerPort) 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 *BriefPowerPort) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPort) SetDisplay(v string) { + o.Display = v +} + + +// GetDevice returns the Device field value +func (o *BriefPowerPort) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefPowerPort) SetDevice(v BriefDevice) { + o.Device = v +} + + +// GetName returns the Name field value +func (o *BriefPowerPort) 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 *BriefPowerPort) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPort) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPort) 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 *BriefPowerPort) 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 *BriefPowerPort) 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 *BriefPowerPort) SetDescription(v string) { + o.Description = &v +} + +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefPowerPort) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable + return ret + } + return *o.Cable.Get() +} + +// GetCableOk returns a tuple with the Cable 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 *BriefPowerPort) GetCableOk() (*BriefCable, bool) { + if o == nil { + return nil, false + } + return o.Cable.Get(), o.Cable.IsSet() +} + +// HasCable returns a boolean if a field has been set. +func (o *BriefPowerPort) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *BriefPowerPort) SetCable(v BriefCable) { + o.Cable.Set(&v) +} +// SetCableNil sets the value for Cable to be an explicit nil +func (o *BriefPowerPort) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *BriefPowerPort) UnsetCable() { + o.Cable.Unset() +} + +// GetOccupied returns the Occupied field value +func (o *BriefPowerPort) GetOccupied() bool { + if o == nil { + var ret bool + return ret + } + + return o.Occupied +} + +// GetOccupiedOk returns a tuple with the Occupied field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetOccupiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Occupied, true +} + +// SetOccupied sets field value +func (o *BriefPowerPort) SetOccupied(v bool) { + o.Occupied = v +} + + +func (o BriefPowerPort) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPort) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } + toSerialize["_occupied"] = o.Occupied + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPort) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "name", + "_occupied", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPowerPort := _BriefPowerPort{} + + err = json.Unmarshal(data, &varBriefPowerPort) + + if err != nil { + return err + } + + *o = BriefPowerPort(varBriefPowerPort) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "cable") + delete(additionalProperties, "_occupied") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPort struct { + value *BriefPowerPort + isSet bool +} + +func (v NullableBriefPowerPort) Get() *BriefPowerPort { + return v.value +} + +func (v *NullableBriefPowerPort) Set(val *BriefPowerPort) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPort) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPort) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPort(val *BriefPowerPort) *NullableBriefPowerPort { + return &NullableBriefPowerPort{value: val, isSet: true} +} + +func (v NullableBriefPowerPort) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPort) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port_request.go b/model_brief_power_port_request.go new file mode 100644 index 0000000000..03cf812dc0 --- /dev/null +++ b/model_brief_power_port_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortRequest{} + +// BriefPowerPortRequest Adds support for custom fields and tags. +type BriefPowerPortRequest struct { + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortRequest BriefPowerPortRequest + +// NewBriefPowerPortRequest instantiates a new BriefPowerPortRequest 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 NewBriefPowerPortRequest(device BriefDeviceRequest, name string) *BriefPowerPortRequest { + this := BriefPowerPortRequest{} + this.Device = device + this.Name = name + return &this +} + +// NewBriefPowerPortRequestWithDefaults instantiates a new BriefPowerPortRequest 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 NewBriefPowerPortRequestWithDefaults() *BriefPowerPortRequest { + this := BriefPowerPortRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefPowerPortRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefPowerPortRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + + +// GetName returns the Name field value +func (o *BriefPowerPortRequest) 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 *BriefPowerPortRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortRequest) 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 *BriefPowerPortRequest) 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 *BriefPowerPortRequest) 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 *BriefPowerPortRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPowerPortRequest := _BriefPowerPortRequest{} + + err = json.Unmarshal(data, &varBriefPowerPortRequest) + + if err != nil { + return err + } + + *o = BriefPowerPortRequest(varBriefPowerPortRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortRequest struct { + value *BriefPowerPortRequest + isSet bool +} + +func (v NullableBriefPowerPortRequest) Get() *BriefPowerPortRequest { + return v.value +} + +func (v *NullableBriefPowerPortRequest) Set(val *BriefPowerPortRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortRequest(val *BriefPowerPortRequest) *NullableBriefPowerPortRequest { + return &NullableBriefPowerPortRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPortRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port_template.go b/model_brief_power_port_template.go new file mode 100644 index 0000000000..ecaa1c8654 --- /dev/null +++ b/model_brief_power_port_template.go @@ -0,0 +1,314 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortTemplate{} + +// BriefPowerPortTemplate 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 BriefPowerPortTemplate struct { + 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"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortTemplate BriefPowerPortTemplate + +// NewBriefPowerPortTemplate instantiates a new BriefPowerPortTemplate 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 NewBriefPowerPortTemplate(id int32, url string, display string, name string) *BriefPowerPortTemplate { + this := BriefPowerPortTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefPowerPortTemplateWithDefaults instantiates a new BriefPowerPortTemplate 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 NewBriefPowerPortTemplateWithDefaults() *BriefPowerPortTemplate { + this := BriefPowerPortTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPortTemplate) 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 *BriefPowerPortTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPortTemplate) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefPowerPortTemplate) 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 *BriefPowerPortTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPortTemplate) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefPowerPortTemplate) 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 *BriefPowerPortTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPortTemplate) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefPowerPortTemplate) 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 *BriefPowerPortTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortTemplate) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortTemplate) 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 *BriefPowerPortTemplate) 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 *BriefPowerPortTemplate) 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 *BriefPowerPortTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortTemplate) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPowerPortTemplate := _BriefPowerPortTemplate{} + + err = json.Unmarshal(data, &varBriefPowerPortTemplate) + + if err != nil { + return err + } + + *o = BriefPowerPortTemplate(varBriefPowerPortTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortTemplate struct { + value *BriefPowerPortTemplate + isSet bool +} + +func (v NullableBriefPowerPortTemplate) Get() *BriefPowerPortTemplate { + return v.value +} + +func (v *NullableBriefPowerPortTemplate) Set(val *BriefPowerPortTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortTemplate(val *BriefPowerPortTemplate) *NullableBriefPowerPortTemplate { + return &NullableBriefPowerPortTemplate{value: val, isSet: true} +} + +func (v NullableBriefPowerPortTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port_template_request.go b/model_brief_power_port_template_request.go new file mode 100644 index 0000000000..3d81fd60fc --- /dev/null +++ b/model_brief_power_port_template_request.go @@ -0,0 +1,224 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortTemplateRequest{} + +// BriefPowerPortTemplateRequest 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 BriefPowerPortTemplateRequest struct { + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortTemplateRequest BriefPowerPortTemplateRequest + +// NewBriefPowerPortTemplateRequest instantiates a new BriefPowerPortTemplateRequest 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 NewBriefPowerPortTemplateRequest(name string) *BriefPowerPortTemplateRequest { + this := BriefPowerPortTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefPowerPortTemplateRequestWithDefaults instantiates a new BriefPowerPortTemplateRequest 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 NewBriefPowerPortTemplateRequestWithDefaults() *BriefPowerPortTemplateRequest { + this := BriefPowerPortTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPowerPortTemplateRequest) 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 *BriefPowerPortTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortTemplateRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortTemplateRequest) 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 *BriefPowerPortTemplateRequest) 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 *BriefPowerPortTemplateRequest) 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 *BriefPowerPortTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefPowerPortTemplateRequest := _BriefPowerPortTemplateRequest{} + + err = json.Unmarshal(data, &varBriefPowerPortTemplateRequest) + + if err != nil { + return err + } + + *o = BriefPowerPortTemplateRequest(varBriefPowerPortTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortTemplateRequest struct { + value *BriefPowerPortTemplateRequest + isSet bool +} + +func (v NullableBriefPowerPortTemplateRequest) Get() *BriefPowerPortTemplateRequest { + return v.value +} + +func (v *NullableBriefPowerPortTemplateRequest) Set(val *BriefPowerPortTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortTemplateRequest(val *BriefPowerPortTemplateRequest) *NullableBriefPowerPortTemplateRequest { + return &NullableBriefPowerPortTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider.go b/model_brief_provider.go new file mode 100644 index 0000000000..c8ed64d311 --- /dev/null +++ b/model_brief_provider.go @@ -0,0 +1,374 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProvider{} + +// BriefProvider Adds support for custom fields and tags. +type BriefProvider struct { + 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefProvider BriefProvider + +// NewBriefProvider instantiates a new BriefProvider 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 NewBriefProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefProvider { + this := BriefProvider{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.CircuitCount = circuitCount + return &this +} + +// NewBriefProviderWithDefaults instantiates a new BriefProvider 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 NewBriefProviderWithDefaults() *BriefProvider { + this := BriefProvider{} + return &this +} + +// GetId returns the Id field value +func (o *BriefProvider) 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 *BriefProvider) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProvider) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefProvider) 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 *BriefProvider) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProvider) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefProvider) 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 *BriefProvider) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProvider) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefProvider) 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 *BriefProvider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProvider) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefProvider) 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 *BriefProvider) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefProvider) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProvider) 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 *BriefProvider) 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 *BriefProvider) 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 *BriefProvider) SetDescription(v string) { + o.Description = &v +} + +// GetCircuitCount returns the CircuitCount field value +func (o *BriefProvider) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *BriefProvider) SetCircuitCount(v int64) { + o.CircuitCount = v +} + + +func (o BriefProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProvider) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProvider) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "circuit_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefProvider := _BriefProvider{} + + err = json.Unmarshal(data, &varBriefProvider) + + if err != nil { + return err + } + + *o = BriefProvider(varBriefProvider) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProvider struct { + value *BriefProvider + isSet bool +} + +func (v NullableBriefProvider) Get() *BriefProvider { + return v.value +} + +func (v *NullableBriefProvider) Set(val *BriefProvider) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProvider(val *BriefProvider) *NullableBriefProvider { + return &NullableBriefProvider{value: val, isSet: true} +} + +func (v NullableBriefProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_account.go b/model_brief_provider_account.go new file mode 100644 index 0000000000..b9ea086666 --- /dev/null +++ b/model_brief_provider_account.go @@ -0,0 +1,354 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderAccount{} + +// BriefProviderAccount Adds support for custom fields and tags. +type BriefProviderAccount struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderAccount BriefProviderAccount + +// NewBriefProviderAccount instantiates a new BriefProviderAccount 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 NewBriefProviderAccount(id int32, url string, display string, account string) *BriefProviderAccount { + this := BriefProviderAccount{} + this.Id = id + this.Url = url + this.Display = display + var name string = "" + this.Name = &name + this.Account = account + return &this +} + +// NewBriefProviderAccountWithDefaults instantiates a new BriefProviderAccount 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 NewBriefProviderAccountWithDefaults() *BriefProviderAccount { + this := BriefProviderAccount{} + var name string = "" + this.Name = &name + return &this +} + +// GetId returns the Id field value +func (o *BriefProviderAccount) 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 *BriefProviderAccount) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProviderAccount) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefProviderAccount) 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 *BriefProviderAccount) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProviderAccount) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefProviderAccount) 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 *BriefProviderAccount) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProviderAccount) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BriefProviderAccount) 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 *BriefProviderAccount) 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 *BriefProviderAccount) 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 *BriefProviderAccount) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *BriefProviderAccount) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *BriefProviderAccount) SetAccount(v string) { + o.Account = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderAccount) 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 *BriefProviderAccount) 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 *BriefProviderAccount) 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 *BriefProviderAccount) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderAccount) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderAccount) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "account", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefProviderAccount := _BriefProviderAccount{} + + err = json.Unmarshal(data, &varBriefProviderAccount) + + if err != nil { + return err + } + + *o = BriefProviderAccount(varBriefProviderAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "account") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderAccount struct { + value *BriefProviderAccount + isSet bool +} + +func (v NullableBriefProviderAccount) Get() *BriefProviderAccount { + return v.value +} + +func (v *NullableBriefProviderAccount) Set(val *BriefProviderAccount) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderAccount(val *BriefProviderAccount) *NullableBriefProviderAccount { + return &NullableBriefProviderAccount{value: val, isSet: true} +} + +func (v NullableBriefProviderAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_account_request.go b/model_brief_provider_account_request.go new file mode 100644 index 0000000000..fbaca62b96 --- /dev/null +++ b/model_brief_provider_account_request.go @@ -0,0 +1,264 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderAccountRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderAccountRequest{} + +// BriefProviderAccountRequest Adds support for custom fields and tags. +type BriefProviderAccountRequest struct { + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderAccountRequest BriefProviderAccountRequest + +// NewBriefProviderAccountRequest instantiates a new BriefProviderAccountRequest 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 NewBriefProviderAccountRequest(account string) *BriefProviderAccountRequest { + this := BriefProviderAccountRequest{} + var name string = "" + this.Name = &name + this.Account = account + return &this +} + +// NewBriefProviderAccountRequestWithDefaults instantiates a new BriefProviderAccountRequest 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 NewBriefProviderAccountRequestWithDefaults() *BriefProviderAccountRequest { + this := BriefProviderAccountRequest{} + var name string = "" + this.Name = &name + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BriefProviderAccountRequest) 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 *BriefProviderAccountRequest) 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 *BriefProviderAccountRequest) 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 *BriefProviderAccountRequest) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *BriefProviderAccountRequest) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccountRequest) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *BriefProviderAccountRequest) SetAccount(v string) { + o.Account = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderAccountRequest) 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 *BriefProviderAccountRequest) 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 *BriefProviderAccountRequest) 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 *BriefProviderAccountRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderAccountRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderAccountRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "account", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefProviderAccountRequest := _BriefProviderAccountRequest{} + + err = json.Unmarshal(data, &varBriefProviderAccountRequest) + + if err != nil { + return err + } + + *o = BriefProviderAccountRequest(varBriefProviderAccountRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "account") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderAccountRequest struct { + value *BriefProviderAccountRequest + isSet bool +} + +func (v NullableBriefProviderAccountRequest) Get() *BriefProviderAccountRequest { + return v.value +} + +func (v *NullableBriefProviderAccountRequest) Set(val *BriefProviderAccountRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderAccountRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderAccountRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderAccountRequest(val *BriefProviderAccountRequest) *NullableBriefProviderAccountRequest { + return &NullableBriefProviderAccountRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderAccountRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderAccountRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_network.go b/model_brief_provider_network.go new file mode 100644 index 0000000000..29769f2d7c --- /dev/null +++ b/model_brief_provider_network.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderNetwork type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderNetwork{} + +// BriefProviderNetwork Adds support for custom fields and tags. +type BriefProviderNetwork struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderNetwork BriefProviderNetwork + +// NewBriefProviderNetwork instantiates a new BriefProviderNetwork 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 NewBriefProviderNetwork(id int32, url string, display string, name string) *BriefProviderNetwork { + this := BriefProviderNetwork{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefProviderNetworkWithDefaults instantiates a new BriefProviderNetwork 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 NewBriefProviderNetworkWithDefaults() *BriefProviderNetwork { + this := BriefProviderNetwork{} + return &this +} + +// GetId returns the Id field value +func (o *BriefProviderNetwork) 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 *BriefProviderNetwork) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProviderNetwork) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefProviderNetwork) 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 *BriefProviderNetwork) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProviderNetwork) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefProviderNetwork) 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 *BriefProviderNetwork) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProviderNetwork) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefProviderNetwork) 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 *BriefProviderNetwork) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderNetwork) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderNetwork) 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 *BriefProviderNetwork) 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 *BriefProviderNetwork) 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 *BriefProviderNetwork) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderNetwork) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderNetwork) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderNetwork) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefProviderNetwork := _BriefProviderNetwork{} + + err = json.Unmarshal(data, &varBriefProviderNetwork) + + if err != nil { + return err + } + + *o = BriefProviderNetwork(varBriefProviderNetwork) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderNetwork struct { + value *BriefProviderNetwork + isSet bool +} + +func (v NullableBriefProviderNetwork) Get() *BriefProviderNetwork { + return v.value +} + +func (v *NullableBriefProviderNetwork) Set(val *BriefProviderNetwork) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderNetwork) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderNetwork) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderNetwork(val *BriefProviderNetwork) *NullableBriefProviderNetwork { + return &NullableBriefProviderNetwork{value: val, isSet: true} +} + +func (v NullableBriefProviderNetwork) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderNetwork) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_network_request.go b/model_brief_provider_network_request.go new file mode 100644 index 0000000000..a9c2cb2255 --- /dev/null +++ b/model_brief_provider_network_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderNetworkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderNetworkRequest{} + +// BriefProviderNetworkRequest Adds support for custom fields and tags. +type BriefProviderNetworkRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderNetworkRequest BriefProviderNetworkRequest + +// NewBriefProviderNetworkRequest instantiates a new BriefProviderNetworkRequest 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 NewBriefProviderNetworkRequest(name string) *BriefProviderNetworkRequest { + this := BriefProviderNetworkRequest{} + this.Name = name + return &this +} + +// NewBriefProviderNetworkRequestWithDefaults instantiates a new BriefProviderNetworkRequest 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 NewBriefProviderNetworkRequestWithDefaults() *BriefProviderNetworkRequest { + this := BriefProviderNetworkRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefProviderNetworkRequest) 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 *BriefProviderNetworkRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderNetworkRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderNetworkRequest) 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 *BriefProviderNetworkRequest) 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 *BriefProviderNetworkRequest) 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 *BriefProviderNetworkRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderNetworkRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderNetworkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefProviderNetworkRequest := _BriefProviderNetworkRequest{} + + err = json.Unmarshal(data, &varBriefProviderNetworkRequest) + + if err != nil { + return err + } + + *o = BriefProviderNetworkRequest(varBriefProviderNetworkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderNetworkRequest struct { + value *BriefProviderNetworkRequest + isSet bool +} + +func (v NullableBriefProviderNetworkRequest) Get() *BriefProviderNetworkRequest { + return v.value +} + +func (v *NullableBriefProviderNetworkRequest) Set(val *BriefProviderNetworkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderNetworkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderNetworkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderNetworkRequest(val *BriefProviderNetworkRequest) *NullableBriefProviderNetworkRequest { + return &NullableBriefProviderNetworkRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderNetworkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderNetworkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_request.go b/model_brief_provider_request.go new file mode 100644 index 0000000000..56218d419a --- /dev/null +++ b/model_brief_provider_request.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderRequest{} + +// BriefProviderRequest Adds support for custom fields and tags. +type BriefProviderRequest struct { + // Full name of the provider + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderRequest BriefProviderRequest + +// NewBriefProviderRequest instantiates a new BriefProviderRequest 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 NewBriefProviderRequest(name string, slug string) *BriefProviderRequest { + this := BriefProviderRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefProviderRequestWithDefaults instantiates a new BriefProviderRequest 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 NewBriefProviderRequestWithDefaults() *BriefProviderRequest { + this := BriefProviderRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefProviderRequest) 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 *BriefProviderRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefProviderRequest) 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 *BriefProviderRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefProviderRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderRequest) 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 *BriefProviderRequest) 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 *BriefProviderRequest) 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 *BriefProviderRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefProviderRequest := _BriefProviderRequest{} + + err = json.Unmarshal(data, &varBriefProviderRequest) + + if err != nil { + return err + } + + *o = BriefProviderRequest(varBriefProviderRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderRequest struct { + value *BriefProviderRequest + isSet bool +} + +func (v NullableBriefProviderRequest) Get() *BriefProviderRequest { + return v.value +} + +func (v *NullableBriefProviderRequest) Set(val *BriefProviderRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderRequest(val *BriefProviderRequest) *NullableBriefProviderRequest { + return &NullableBriefProviderRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack.go b/model_brief_rack.go new file mode 100644 index 0000000000..c1b2cdec63 --- /dev/null +++ b/model_brief_rack.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRack{} + +// BriefRack Adds support for custom fields and tags. +type BriefRack struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRack BriefRack + +// NewBriefRack instantiates a new BriefRack 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 NewBriefRack(id int32, url string, display string, name string) *BriefRack { + this := BriefRack{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefRackWithDefaults instantiates a new BriefRack 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 NewBriefRackWithDefaults() *BriefRack { + this := BriefRack{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRack) 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 *BriefRack) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRack) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefRack) 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 *BriefRack) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRack) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefRack) 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 *BriefRack) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRack) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefRack) 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 *BriefRack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRack) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRack) 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 *BriefRack) 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 *BriefRack) 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 *BriefRack) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefRack) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRack) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefRack) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefRack) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +func (o BriefRack) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRack) 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.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRack) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRack := _BriefRack{} + + err = json.Unmarshal(data, &varBriefRack) + + if err != nil { + return err + } + + *o = BriefRack(varBriefRack) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRack struct { + value *BriefRack + isSet bool +} + +func (v NullableBriefRack) Get() *BriefRack { + return v.value +} + +func (v *NullableBriefRack) Set(val *BriefRack) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRack) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRack(val *BriefRack) *NullableBriefRack { + return &NullableBriefRack{value: val, isSet: true} +} + +func (v NullableBriefRack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_machine_request.go b/model_brief_rack_request.go similarity index 52% rename from model_virtual_machine_request.go rename to model_brief_rack_request.go index 74b05fd5a5..81432c3910 100644 --- a/model_virtual_machine_request.go +++ b/model_brief_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,38 +15,38 @@ import ( "fmt" ) -// checks if the VirtualMachineRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VirtualMachineRequest{} +// checks if the BriefRackRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRequest{} -// VirtualMachineRequest Adds support for custom fields and tags. -type VirtualMachineRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` +// BriefRackRequest Adds support for custom fields and tags. +type BriefRackRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } -type _VirtualMachineRequest VirtualMachineRequest +type _BriefRackRequest BriefRackRequest -// NewVirtualMachineRequest instantiates a new VirtualMachineRequest object +// NewBriefRackRequest instantiates a new BriefRackRequest 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 NewVirtualMachineRequest(name string) *VirtualMachineRequest { - this := VirtualMachineRequest{} +func NewBriefRackRequest(name string) *BriefRackRequest { + this := BriefRackRequest{} this.Name = name return &this } -// NewVirtualMachineRequestWithDefaults instantiates a new VirtualMachineRequest object +// NewBriefRackRequestWithDefaults instantiates a new BriefRackRequest 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 NewVirtualMachineRequestWithDefaults() *VirtualMachineRequest { - this := VirtualMachineRequest{} +func NewBriefRackRequestWithDefaults() *BriefRackRequest { + this := BriefRackRequest{} return &this } // GetName returns the Name field value -func (o *VirtualMachineRequest) GetName() string { +func (o *BriefRackRequest) GetName() string { if o == nil { var ret string return ret @@ -57,7 +57,7 @@ func (o *VirtualMachineRequest) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *VirtualMachineRequest) GetNameOk() (*string, bool) { +func (o *BriefRackRequest) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -65,12 +65,13 @@ func (o *VirtualMachineRequest) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *VirtualMachineRequest) SetName(v string) { +func (o *BriefRackRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. -func (o *VirtualMachineRequest) GetDescription() string { +func (o *BriefRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -80,7 +81,7 @@ func (o *VirtualMachineRequest) GetDescription() string { // 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 *VirtualMachineRequest) GetDescriptionOk() (*string, bool) { +func (o *BriefRackRequest) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -88,7 +89,7 @@ func (o *VirtualMachineRequest) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *VirtualMachineRequest) HasDescription() bool { +func (o *BriefRackRequest) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -97,19 +98,19 @@ func (o *VirtualMachineRequest) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *VirtualMachineRequest) SetDescription(v string) { +func (o *BriefRackRequest) SetDescription(v string) { o.Description = &v } -func (o VirtualMachineRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o BriefRackRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o VirtualMachineRequest) ToMap() (map[string]interface{}, error) { +func (o BriefRackRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -123,7 +124,7 @@ func (o VirtualMachineRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *VirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { +func (o *BriefRackRequest) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -131,29 +132,46 @@ func (o *VirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } - varVirtualMachineRequest := _VirtualMachineRequest{} + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRackRequest := _BriefRackRequest{} - err = json.Unmarshal(data, &varVirtualMachineRequest) + err = json.Unmarshal(data, &varBriefRackRequest) if err != nil { return err } - *o = VirtualMachineRequest(varVirtualMachineRequest) + *o = BriefRackRequest(varBriefRackRequest) additionalProperties := make(map[string]interface{}) @@ -166,38 +184,40 @@ func (o *VirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { return err } -type NullableVirtualMachineRequest struct { - value *VirtualMachineRequest +type NullableBriefRackRequest struct { + value *BriefRackRequest isSet bool } -func (v NullableVirtualMachineRequest) Get() *VirtualMachineRequest { +func (v NullableBriefRackRequest) Get() *BriefRackRequest { return v.value } -func (v *NullableVirtualMachineRequest) Set(val *VirtualMachineRequest) { +func (v *NullableBriefRackRequest) Set(val *BriefRackRequest) { v.value = val v.isSet = true } -func (v NullableVirtualMachineRequest) IsSet() bool { +func (v NullableBriefRackRequest) IsSet() bool { return v.isSet } -func (v *NullableVirtualMachineRequest) Unset() { +func (v *NullableBriefRackRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableVirtualMachineRequest(val *VirtualMachineRequest) *NullableVirtualMachineRequest { - return &NullableVirtualMachineRequest{value: val, isSet: true} +func NewNullableBriefRackRequest(val *BriefRackRequest) *NullableBriefRackRequest { + return &NullableBriefRackRequest{value: val, isSet: true} } -func (v NullableVirtualMachineRequest) MarshalJSON() ([]byte, error) { +func (v NullableBriefRackRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableVirtualMachineRequest) UnmarshalJSON(src []byte) error { +func (v *NullableBriefRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_brief_rack_role.go b/model_brief_rack_role.go new file mode 100644 index 0000000000..da84649c0e --- /dev/null +++ b/model_brief_rack_role.go @@ -0,0 +1,380 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRole{} + +// BriefRackRole Adds support for custom fields and tags. +type BriefRackRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + RackCount *int64 `json:"rack_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRole BriefRackRole + +// NewBriefRackRole instantiates a new BriefRackRole 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 NewBriefRackRole(id int32, url string, display string, name string, slug string) *BriefRackRole { + this := BriefRackRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRackRoleWithDefaults instantiates a new BriefRackRole 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 NewBriefRackRoleWithDefaults() *BriefRackRole { + this := BriefRackRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRackRole) 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 *BriefRackRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRackRole) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefRackRole) 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 *BriefRackRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRackRole) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefRackRole) 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 *BriefRackRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRackRole) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefRackRole) 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 *BriefRackRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRackRole) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRackRole) 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 *BriefRackRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackRole) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackRole) 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 *BriefRackRole) 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 *BriefRackRole) 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 *BriefRackRole) SetDescription(v string) { + o.Description = &v +} + +// GetRackCount returns the RackCount field value if set, zero value otherwise. +func (o *BriefRackRole) GetRackCount() int64 { + if o == nil || IsNil(o.RackCount) { + var ret int64 + return ret + } + return *o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetRackCountOk() (*int64, bool) { + if o == nil || IsNil(o.RackCount) { + return nil, false + } + return o.RackCount, true +} + +// HasRackCount returns a boolean if a field has been set. +func (o *BriefRackRole) HasRackCount() bool { + if o != nil && !IsNil(o.RackCount) { + return true + } + + return false +} + +// SetRackCount gets a reference to the given int64 and assigns it to the RackCount field. +func (o *BriefRackRole) SetRackCount(v int64) { + o.RackCount = &v +} + +func (o BriefRackRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRole) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.RackCount) { + toSerialize["rack_count"] = o.RackCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRackRole := _BriefRackRole{} + + err = json.Unmarshal(data, &varBriefRackRole) + + if err != nil { + return err + } + + *o = BriefRackRole(varBriefRackRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "rack_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRole struct { + value *BriefRackRole + isSet bool +} + +func (v NullableBriefRackRole) Get() *BriefRackRole { + return v.value +} + +func (v *NullableBriefRackRole) Set(val *BriefRackRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRole(val *BriefRackRole) *NullableBriefRackRole { + return &NullableBriefRackRole{value: val, isSet: true} +} + +func (v NullableBriefRackRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_role_request.go b/model_brief_rack_role_request.go new file mode 100644 index 0000000000..f659cb8657 --- /dev/null +++ b/model_brief_rack_role_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRoleRequest{} + +// BriefRackRoleRequest Adds support for custom fields and tags. +type BriefRackRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRoleRequest BriefRackRoleRequest + +// NewBriefRackRoleRequest instantiates a new BriefRackRoleRequest 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 NewBriefRackRoleRequest(name string, slug string) *BriefRackRoleRequest { + this := BriefRackRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRackRoleRequestWithDefaults instantiates a new BriefRackRoleRequest 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 NewBriefRackRoleRequestWithDefaults() *BriefRackRoleRequest { + this := BriefRackRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRackRoleRequest) 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 *BriefRackRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRackRoleRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRackRoleRequest) 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 *BriefRackRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackRoleRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackRoleRequest) 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 *BriefRackRoleRequest) 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 *BriefRackRoleRequest) 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 *BriefRackRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRackRoleRequest := _BriefRackRoleRequest{} + + err = json.Unmarshal(data, &varBriefRackRoleRequest) + + if err != nil { + return err + } + + *o = BriefRackRoleRequest(varBriefRackRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRoleRequest struct { + value *BriefRackRoleRequest + isSet bool +} + +func (v NullableBriefRackRoleRequest) Get() *BriefRackRoleRequest { + return v.value +} + +func (v *NullableBriefRackRoleRequest) Set(val *BriefRackRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRoleRequest(val *BriefRackRoleRequest) *NullableBriefRackRoleRequest { + return &NullableBriefRackRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefRackRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_type.go b/model_brief_rack_type.go new file mode 100644 index 0000000000..3c1940d43b --- /dev/null +++ b/model_brief_rack_type.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackType{} + +// BriefRackType Adds support for custom fields and tags. +type BriefRackType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackType BriefRackType + +// NewBriefRackType instantiates a new BriefRackType 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 NewBriefRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string) *BriefRackType { + this := BriefRackType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefRackTypeWithDefaults instantiates a new BriefRackType 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 NewBriefRackTypeWithDefaults() *BriefRackType { + this := BriefRackType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRackType) 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 *BriefRackType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRackType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefRackType) 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 *BriefRackType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRackType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefRackType) 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 *BriefRackType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRackType) SetDisplay(v string) { + o.Display = v +} + + +// GetManufacturer returns the Manufacturer field value +func (o *BriefRackType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefRackType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *BriefRackType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefRackType) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRackType) 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 *BriefRackType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackType) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackType) 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 *BriefRackType) 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 *BriefRackType) 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 *BriefRackType) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRackType := _BriefRackType{} + + err = json.Unmarshal(data, &varBriefRackType) + + if err != nil { + return err + } + + *o = BriefRackType(varBriefRackType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackType struct { + value *BriefRackType + isSet bool +} + +func (v NullableBriefRackType) Get() *BriefRackType { + return v.value +} + +func (v *NullableBriefRackType) Set(val *BriefRackType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackType(val *BriefRackType) *NullableBriefRackType { + return &NullableBriefRackType{value: val, isSet: true} +} + +func (v NullableBriefRackType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_type_request.go b/model_brief_rack_type_request.go new file mode 100644 index 0000000000..511d615611 --- /dev/null +++ b/model_brief_rack_type_request.go @@ -0,0 +1,283 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackTypeRequest{} + +// BriefRackTypeRequest Adds support for custom fields and tags. +type BriefRackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackTypeRequest BriefRackTypeRequest + +// NewBriefRackTypeRequest instantiates a new BriefRackTypeRequest 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 NewBriefRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefRackTypeRequest { + this := BriefRackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefRackTypeRequestWithDefaults instantiates a new BriefRackTypeRequest 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 NewBriefRackTypeRequestWithDefaults() *BriefRackTypeRequest { + this := BriefRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *BriefRackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefRackTypeRequest) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRackTypeRequest) 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 *BriefRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackTypeRequest) 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 *BriefRackTypeRequest) 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 *BriefRackTypeRequest) 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 *BriefRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRackTypeRequest := _BriefRackTypeRequest{} + + err = json.Unmarshal(data, &varBriefRackTypeRequest) + + if err != nil { + return err + } + + *o = BriefRackTypeRequest(varBriefRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackTypeRequest struct { + value *BriefRackTypeRequest + isSet bool +} + +func (v NullableBriefRackTypeRequest) Get() *BriefRackTypeRequest { + return v.value +} + +func (v *NullableBriefRackTypeRequest) Set(val *BriefRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackTypeRequest(val *BriefRackTypeRequest) *NullableBriefRackTypeRequest { + return &NullableBriefRackTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rear_port_template.go b/model_brief_rear_port_template.go new file mode 100644 index 0000000000..2bcfdc1bcb --- /dev/null +++ b/model_brief_rear_port_template.go @@ -0,0 +1,314 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRearPortTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRearPortTemplate{} + +// BriefRearPortTemplate 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 BriefRearPortTemplate struct { + 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"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRearPortTemplate BriefRearPortTemplate + +// NewBriefRearPortTemplate instantiates a new BriefRearPortTemplate 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 NewBriefRearPortTemplate(id int32, url string, display string, name string) *BriefRearPortTemplate { + this := BriefRearPortTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefRearPortTemplateWithDefaults instantiates a new BriefRearPortTemplate 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 NewBriefRearPortTemplateWithDefaults() *BriefRearPortTemplate { + this := BriefRearPortTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRearPortTemplate) 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 *BriefRearPortTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRearPortTemplate) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefRearPortTemplate) 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 *BriefRearPortTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRearPortTemplate) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefRearPortTemplate) 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 *BriefRearPortTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRearPortTemplate) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefRearPortTemplate) 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 *BriefRearPortTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRearPortTemplate) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRearPortTemplate) 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 *BriefRearPortTemplate) 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 *BriefRearPortTemplate) 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 *BriefRearPortTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRearPortTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRearPortTemplate) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRearPortTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRearPortTemplate := _BriefRearPortTemplate{} + + err = json.Unmarshal(data, &varBriefRearPortTemplate) + + if err != nil { + return err + } + + *o = BriefRearPortTemplate(varBriefRearPortTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRearPortTemplate struct { + value *BriefRearPortTemplate + isSet bool +} + +func (v NullableBriefRearPortTemplate) Get() *BriefRearPortTemplate { + return v.value +} + +func (v *NullableBriefRearPortTemplate) Set(val *BriefRearPortTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRearPortTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRearPortTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRearPortTemplate(val *BriefRearPortTemplate) *NullableBriefRearPortTemplate { + return &NullableBriefRearPortTemplate{value: val, isSet: true} +} + +func (v NullableBriefRearPortTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRearPortTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rear_port_template_request.go b/model_brief_rear_port_template_request.go new file mode 100644 index 0000000000..d2002258e2 --- /dev/null +++ b/model_brief_rear_port_template_request.go @@ -0,0 +1,224 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRearPortTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRearPortTemplateRequest{} + +// BriefRearPortTemplateRequest 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 BriefRearPortTemplateRequest struct { + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRearPortTemplateRequest BriefRearPortTemplateRequest + +// NewBriefRearPortTemplateRequest instantiates a new BriefRearPortTemplateRequest 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 NewBriefRearPortTemplateRequest(name string) *BriefRearPortTemplateRequest { + this := BriefRearPortTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefRearPortTemplateRequestWithDefaults instantiates a new BriefRearPortTemplateRequest 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 NewBriefRearPortTemplateRequestWithDefaults() *BriefRearPortTemplateRequest { + this := BriefRearPortTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRearPortTemplateRequest) 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 *BriefRearPortTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRearPortTemplateRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRearPortTemplateRequest) 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 *BriefRearPortTemplateRequest) 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 *BriefRearPortTemplateRequest) 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 *BriefRearPortTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRearPortTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRearPortTemplateRequest := _BriefRearPortTemplateRequest{} + + err = json.Unmarshal(data, &varBriefRearPortTemplateRequest) + + if err != nil { + return err + } + + *o = BriefRearPortTemplateRequest(varBriefRearPortTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRearPortTemplateRequest struct { + value *BriefRearPortTemplateRequest + isSet bool +} + +func (v NullableBriefRearPortTemplateRequest) Get() *BriefRearPortTemplateRequest { + return v.value +} + +func (v *NullableBriefRearPortTemplateRequest) Set(val *BriefRearPortTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRearPortTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRearPortTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRearPortTemplateRequest(val *BriefRearPortTemplateRequest) *NullableBriefRearPortTemplateRequest { + return &NullableBriefRearPortTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRearPortTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_region.go b/model_brief_region.go new file mode 100644 index 0000000000..28bce68a0b --- /dev/null +++ b/model_brief_region.go @@ -0,0 +1,410 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRegion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRegion{} + +// BriefRegion Extends PrimaryModelSerializer to include MPTT support. +type BriefRegion struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + SiteCount *int32 `json:"site_count,omitempty"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefRegion BriefRegion + +// NewBriefRegion instantiates a new BriefRegion 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 NewBriefRegion(id int32, url string, display string, name string, slug string, depth int32) *BriefRegion { + this := BriefRegion{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewBriefRegionWithDefaults instantiates a new BriefRegion 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 NewBriefRegionWithDefaults() *BriefRegion { + this := BriefRegion{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRegion) 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 *BriefRegion) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRegion) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefRegion) 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 *BriefRegion) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRegion) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefRegion) 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 *BriefRegion) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRegion) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefRegion) 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 *BriefRegion) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRegion) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRegion) 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 *BriefRegion) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRegion) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRegion) 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 *BriefRegion) 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 *BriefRegion) 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 *BriefRegion) SetDescription(v string) { + o.Description = &v +} + +// GetSiteCount returns the SiteCount field value if set, zero value otherwise. +func (o *BriefRegion) GetSiteCount() int32 { + if o == nil || IsNil(o.SiteCount) { + var ret int32 + return ret + } + return *o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetSiteCountOk() (*int32, bool) { + if o == nil || IsNil(o.SiteCount) { + return nil, false + } + return o.SiteCount, true +} + +// HasSiteCount returns a boolean if a field has been set. +func (o *BriefRegion) HasSiteCount() bool { + if o != nil && !IsNil(o.SiteCount) { + return true + } + + return false +} + +// SetSiteCount gets a reference to the given int32 and assigns it to the SiteCount field. +func (o *BriefRegion) SetSiteCount(v int32) { + o.SiteCount = &v +} + +// GetDepth returns the Depth field value +func (o *BriefRegion) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefRegion) SetDepth(v int32) { + o.Depth = v +} + + +func (o BriefRegion) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRegion) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.SiteCount) { + toSerialize["site_count"] = o.SiteCount + } + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRegion) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRegion := _BriefRegion{} + + err = json.Unmarshal(data, &varBriefRegion) + + if err != nil { + return err + } + + *o = BriefRegion(varBriefRegion) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "site_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRegion struct { + value *BriefRegion + isSet bool +} + +func (v NullableBriefRegion) Get() *BriefRegion { + return v.value +} + +func (v *NullableBriefRegion) Set(val *BriefRegion) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRegion) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRegion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRegion(val *BriefRegion) *NullableBriefRegion { + return &NullableBriefRegion{value: val, isSet: true} +} + +func (v NullableBriefRegion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRegion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_region_request.go b/model_brief_region_request.go new file mode 100644 index 0000000000..ba73e09dff --- /dev/null +++ b/model_brief_region_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRegionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRegionRequest{} + +// BriefRegionRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefRegionRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRegionRequest BriefRegionRequest + +// NewBriefRegionRequest instantiates a new BriefRegionRequest 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 NewBriefRegionRequest(name string, slug string) *BriefRegionRequest { + this := BriefRegionRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRegionRequestWithDefaults instantiates a new BriefRegionRequest 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 NewBriefRegionRequestWithDefaults() *BriefRegionRequest { + this := BriefRegionRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRegionRequest) 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 *BriefRegionRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRegionRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRegionRequest) 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 *BriefRegionRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRegionRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRegionRequest) 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 *BriefRegionRequest) 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 *BriefRegionRequest) 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 *BriefRegionRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRegionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRegionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRegionRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRegionRequest := _BriefRegionRequest{} + + err = json.Unmarshal(data, &varBriefRegionRequest) + + if err != nil { + return err + } + + *o = BriefRegionRequest(varBriefRegionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRegionRequest struct { + value *BriefRegionRequest + isSet bool +} + +func (v NullableBriefRegionRequest) Get() *BriefRegionRequest { + return v.value +} + +func (v *NullableBriefRegionRequest) Set(val *BriefRegionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRegionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRegionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRegionRequest(val *BriefRegionRequest) *NullableBriefRegionRequest { + return &NullableBriefRegionRequest{value: val, isSet: true} +} + +func (v NullableBriefRegionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRegionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rir.go b/model_brief_rir.go new file mode 100644 index 0000000000..5482953fbe --- /dev/null +++ b/model_brief_rir.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRIR type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRIR{} + +// BriefRIR Adds support for custom fields and tags. +type BriefRIR struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AggregateCount int64 `json:"aggregate_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRIR BriefRIR + +// NewBriefRIR instantiates a new BriefRIR 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 NewBriefRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *BriefRIR { + this := BriefRIR{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.AggregateCount = aggregateCount + return &this +} + +// NewBriefRIRWithDefaults instantiates a new BriefRIR 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 NewBriefRIRWithDefaults() *BriefRIR { + this := BriefRIR{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRIR) 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 *BriefRIR) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRIR) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefRIR) 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 *BriefRIR) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRIR) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefRIR) 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 *BriefRIR) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRIR) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefRIR) 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 *BriefRIR) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRIR) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRIR) 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 *BriefRIR) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRIR) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRIR) 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 *BriefRIR) 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 *BriefRIR) 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 *BriefRIR) SetDescription(v string) { + o.Description = &v +} + +// GetAggregateCount returns the AggregateCount field value +func (o *BriefRIR) GetAggregateCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AggregateCount +} + +// GetAggregateCountOk returns a tuple with the AggregateCount field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetAggregateCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AggregateCount, true +} + +// SetAggregateCount sets field value +func (o *BriefRIR) SetAggregateCount(v int64) { + o.AggregateCount = v +} + + +func (o BriefRIR) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRIR) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["aggregate_count"] = o.AggregateCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRIR) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "aggregate_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRIR := _BriefRIR{} + + err = json.Unmarshal(data, &varBriefRIR) + + if err != nil { + return err + } + + *o = BriefRIR(varBriefRIR) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "aggregate_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRIR struct { + value *BriefRIR + isSet bool +} + +func (v NullableBriefRIR) Get() *BriefRIR { + return v.value +} + +func (v *NullableBriefRIR) Set(val *BriefRIR) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRIR) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRIR) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRIR(val *BriefRIR) *NullableBriefRIR { + return &NullableBriefRIR{value: val, isSet: true} +} + +func (v NullableBriefRIR) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRIR) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rir_request.go b/model_brief_rir_request.go new file mode 100644 index 0000000000..74da2e3ea5 --- /dev/null +++ b/model_brief_rir_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRIRRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRIRRequest{} + +// BriefRIRRequest Adds support for custom fields and tags. +type BriefRIRRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRIRRequest BriefRIRRequest + +// NewBriefRIRRequest instantiates a new BriefRIRRequest 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 NewBriefRIRRequest(name string, slug string) *BriefRIRRequest { + this := BriefRIRRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRIRRequestWithDefaults instantiates a new BriefRIRRequest 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 NewBriefRIRRequestWithDefaults() *BriefRIRRequest { + this := BriefRIRRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRIRRequest) 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 *BriefRIRRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRIRRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRIRRequest) 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 *BriefRIRRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRIRRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRIRRequest) 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 *BriefRIRRequest) 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 *BriefRIRRequest) 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 *BriefRIRRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRIRRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRIRRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRIRRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRIRRequest := _BriefRIRRequest{} + + err = json.Unmarshal(data, &varBriefRIRRequest) + + if err != nil { + return err + } + + *o = BriefRIRRequest(varBriefRIRRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRIRRequest struct { + value *BriefRIRRequest + isSet bool +} + +func (v NullableBriefRIRRequest) Get() *BriefRIRRequest { + return v.value +} + +func (v *NullableBriefRIRRequest) Set(val *BriefRIRRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRIRRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRIRRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRIRRequest(val *BriefRIRRequest) *NullableBriefRIRRequest { + return &NullableBriefRIRRequest{value: val, isSet: true} +} + +func (v NullableBriefRIRRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRIRRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_role.go b/model_brief_role.go new file mode 100644 index 0000000000..e22f561512 --- /dev/null +++ b/model_brief_role.go @@ -0,0 +1,417 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRole{} + +// BriefRole Adds support for custom fields and tags. +type BriefRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRole BriefRole + +// NewBriefRole instantiates a new BriefRole 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 NewBriefRole(id int32, url string, display string, name string, slug string) *BriefRole { + this := BriefRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRoleWithDefaults instantiates a new BriefRole 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 NewBriefRoleWithDefaults() *BriefRole { + this := BriefRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRole) 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 *BriefRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRole) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefRole) 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 *BriefRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRole) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefRole) 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 *BriefRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRole) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefRole) 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 *BriefRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRole) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRole) 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 *BriefRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRole) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRole) 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 *BriefRole) 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 *BriefRole) 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 *BriefRole) SetDescription(v string) { + o.Description = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *BriefRole) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRole) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *BriefRole) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *BriefRole) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. +func (o *BriefRole) GetVlanCount() int64 { + if o == nil || IsNil(o.VlanCount) { + var ret int64 + return ret + } + return *o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRole) GetVlanCountOk() (*int64, bool) { + if o == nil || IsNil(o.VlanCount) { + return nil, false + } + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *BriefRole) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. +func (o *BriefRole) SetVlanCount(v int64) { + o.VlanCount = &v +} + +func (o BriefRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRole) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRole := _BriefRole{} + + err = json.Unmarshal(data, &varBriefRole) + + if err != nil { + return err + } + + *o = BriefRole(varBriefRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "vlan_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRole struct { + value *BriefRole + isSet bool +} + +func (v NullableBriefRole) Get() *BriefRole { + return v.value +} + +func (v *NullableBriefRole) Set(val *BriefRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRole(val *BriefRole) *NullableBriefRole { + return &NullableBriefRole{value: val, isSet: true} +} + +func (v NullableBriefRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_role_request.go b/model_brief_role_request.go new file mode 100644 index 0000000000..216acc7adb --- /dev/null +++ b/model_brief_role_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRoleRequest{} + +// BriefRoleRequest Adds support for custom fields and tags. +type BriefRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRoleRequest BriefRoleRequest + +// NewBriefRoleRequest instantiates a new BriefRoleRequest 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 NewBriefRoleRequest(name string, slug string) *BriefRoleRequest { + this := BriefRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRoleRequestWithDefaults instantiates a new BriefRoleRequest 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 NewBriefRoleRequestWithDefaults() *BriefRoleRequest { + this := BriefRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRoleRequest) 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 *BriefRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRoleRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefRoleRequest) 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 *BriefRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRoleRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRoleRequest) 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 *BriefRoleRequest) 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 *BriefRoleRequest) 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 *BriefRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefRoleRequest := _BriefRoleRequest{} + + err = json.Unmarshal(data, &varBriefRoleRequest) + + if err != nil { + return err + } + + *o = BriefRoleRequest(varBriefRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRoleRequest struct { + value *BriefRoleRequest + isSet bool +} + +func (v NullableBriefRoleRequest) Get() *BriefRoleRequest { + return v.value +} + +func (v *NullableBriefRoleRequest) Set(val *BriefRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRoleRequest(val *BriefRoleRequest) *NullableBriefRoleRequest { + return &NullableBriefRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site.go b/model_brief_site.go new file mode 100644 index 0000000000..cc254dc8b4 --- /dev/null +++ b/model_brief_site.go @@ -0,0 +1,344 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSite type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSite{} + +// BriefSite Adds support for custom fields and tags. +type BriefSite struct { + 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSite BriefSite + +// NewBriefSite instantiates a new BriefSite 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 NewBriefSite(id int32, url string, display string, name string, slug string) *BriefSite { + this := BriefSite{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteWithDefaults instantiates a new BriefSite 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 NewBriefSiteWithDefaults() *BriefSite { + this := BriefSite{} + return &this +} + +// GetId returns the Id field value +func (o *BriefSite) 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 *BriefSite) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefSite) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefSite) 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 *BriefSite) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefSite) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefSite) 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 *BriefSite) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefSite) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefSite) 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 *BriefSite) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSite) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefSite) 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 *BriefSite) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSite) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSite) 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 *BriefSite) 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 *BriefSite) 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 *BriefSite) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSite) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSite) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSite) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefSite := _BriefSite{} + + err = json.Unmarshal(data, &varBriefSite) + + if err != nil { + return err + } + + *o = BriefSite(varBriefSite) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSite struct { + value *BriefSite + isSet bool +} + +func (v NullableBriefSite) Get() *BriefSite { + return v.value +} + +func (v *NullableBriefSite) Set(val *BriefSite) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSite) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSite) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSite(val *BriefSite) *NullableBriefSite { + return &NullableBriefSite{value: val, isSet: true} +} + +func (v NullableBriefSite) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSite) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site_group.go b/model_brief_site_group.go new file mode 100644 index 0000000000..d7af4e712d --- /dev/null +++ b/model_brief_site_group.go @@ -0,0 +1,410 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteGroup{} + +// BriefSiteGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefSiteGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + SiteCount *int32 `json:"site_count,omitempty"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteGroup BriefSiteGroup + +// NewBriefSiteGroup instantiates a new BriefSiteGroup 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 NewBriefSiteGroup(id int32, url string, display string, name string, slug string, depth int32) *BriefSiteGroup { + this := BriefSiteGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewBriefSiteGroupWithDefaults instantiates a new BriefSiteGroup 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 NewBriefSiteGroupWithDefaults() *BriefSiteGroup { + this := BriefSiteGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefSiteGroup) 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 *BriefSiteGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefSiteGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefSiteGroup) 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 *BriefSiteGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefSiteGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefSiteGroup) 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 *BriefSiteGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefSiteGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefSiteGroup) 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 *BriefSiteGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefSiteGroup) 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 *BriefSiteGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteGroup) 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 *BriefSiteGroup) 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 *BriefSiteGroup) 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 *BriefSiteGroup) SetDescription(v string) { + o.Description = &v +} + +// GetSiteCount returns the SiteCount field value if set, zero value otherwise. +func (o *BriefSiteGroup) GetSiteCount() int32 { + if o == nil || IsNil(o.SiteCount) { + var ret int32 + return ret + } + return *o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetSiteCountOk() (*int32, bool) { + if o == nil || IsNil(o.SiteCount) { + return nil, false + } + return o.SiteCount, true +} + +// HasSiteCount returns a boolean if a field has been set. +func (o *BriefSiteGroup) HasSiteCount() bool { + if o != nil && !IsNil(o.SiteCount) { + return true + } + + return false +} + +// SetSiteCount gets a reference to the given int32 and assigns it to the SiteCount field. +func (o *BriefSiteGroup) SetSiteCount(v int32) { + o.SiteCount = &v +} + +// GetDepth returns the Depth field value +func (o *BriefSiteGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefSiteGroup) SetDepth(v int32) { + o.Depth = v +} + + +func (o BriefSiteGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteGroup) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.SiteCount) { + toSerialize["site_count"] = o.SiteCount + } + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefSiteGroup := _BriefSiteGroup{} + + err = json.Unmarshal(data, &varBriefSiteGroup) + + if err != nil { + return err + } + + *o = BriefSiteGroup(varBriefSiteGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "site_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteGroup struct { + value *BriefSiteGroup + isSet bool +} + +func (v NullableBriefSiteGroup) Get() *BriefSiteGroup { + return v.value +} + +func (v *NullableBriefSiteGroup) Set(val *BriefSiteGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteGroup(val *BriefSiteGroup) *NullableBriefSiteGroup { + return &NullableBriefSiteGroup{value: val, isSet: true} +} + +func (v NullableBriefSiteGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site_group_request.go b/model_brief_site_group_request.go new file mode 100644 index 0000000000..5ed06101dc --- /dev/null +++ b/model_brief_site_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteGroupRequest{} + +// BriefSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefSiteGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteGroupRequest BriefSiteGroupRequest + +// NewBriefSiteGroupRequest instantiates a new BriefSiteGroupRequest 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 NewBriefSiteGroupRequest(name string, slug string) *BriefSiteGroupRequest { + this := BriefSiteGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteGroupRequestWithDefaults instantiates a new BriefSiteGroupRequest 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 NewBriefSiteGroupRequestWithDefaults() *BriefSiteGroupRequest { + this := BriefSiteGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefSiteGroupRequest) 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 *BriefSiteGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefSiteGroupRequest) 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 *BriefSiteGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteGroupRequest) 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 *BriefSiteGroupRequest) 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 *BriefSiteGroupRequest) 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 *BriefSiteGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSiteGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefSiteGroupRequest := _BriefSiteGroupRequest{} + + err = json.Unmarshal(data, &varBriefSiteGroupRequest) + + if err != nil { + return err + } + + *o = BriefSiteGroupRequest(varBriefSiteGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteGroupRequest struct { + value *BriefSiteGroupRequest + isSet bool +} + +func (v NullableBriefSiteGroupRequest) Get() *BriefSiteGroupRequest { + return v.value +} + +func (v *NullableBriefSiteGroupRequest) Set(val *BriefSiteGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteGroupRequest(val *BriefSiteGroupRequest) *NullableBriefSiteGroupRequest { + return &NullableBriefSiteGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefSiteGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site_request.go b/model_brief_site_request.go new file mode 100644 index 0000000000..a02bc52feb --- /dev/null +++ b/model_brief_site_request.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteRequest{} + +// BriefSiteRequest Adds support for custom fields and tags. +type BriefSiteRequest struct { + // Full name of the site + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteRequest BriefSiteRequest + +// NewBriefSiteRequest instantiates a new BriefSiteRequest 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 NewBriefSiteRequest(name string, slug string) *BriefSiteRequest { + this := BriefSiteRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteRequestWithDefaults instantiates a new BriefSiteRequest 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 NewBriefSiteRequestWithDefaults() *BriefSiteRequest { + this := BriefSiteRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefSiteRequest) 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 *BriefSiteRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefSiteRequest) 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 *BriefSiteRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteRequest) 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 *BriefSiteRequest) 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 *BriefSiteRequest) 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 *BriefSiteRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSiteRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefSiteRequest := _BriefSiteRequest{} + + err = json.Unmarshal(data, &varBriefSiteRequest) + + if err != nil { + return err + } + + *o = BriefSiteRequest(varBriefSiteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteRequest struct { + value *BriefSiteRequest + isSet bool +} + +func (v NullableBriefSiteRequest) Get() *BriefSiteRequest { + return v.value +} + +func (v *NullableBriefSiteRequest) Set(val *BriefSiteRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteRequest(val *BriefSiteRequest) *NullableBriefSiteRequest { + return &NullableBriefSiteRequest{value: val, isSet: true} +} + +func (v NullableBriefSiteRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant.go b/model_brief_tenant.go new file mode 100644 index 0000000000..a695673a6e --- /dev/null +++ b/model_brief_tenant.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenant type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenant{} + +// BriefTenant Adds support for custom fields and tags. +type BriefTenant struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenant BriefTenant + +// NewBriefTenant instantiates a new BriefTenant 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 NewBriefTenant(id int32, url string, display string, name string, slug string) *BriefTenant { + this := BriefTenant{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantWithDefaults instantiates a new BriefTenant 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 NewBriefTenantWithDefaults() *BriefTenant { + this := BriefTenant{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTenant) 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 *BriefTenant) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTenant) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefTenant) 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 *BriefTenant) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTenant) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefTenant) 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 *BriefTenant) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTenant) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefTenant) 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 *BriefTenant) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenant) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefTenant) 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 *BriefTenant) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenant) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenant) 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 *BriefTenant) 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 *BriefTenant) 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 *BriefTenant) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenant) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenant) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenant) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTenant := _BriefTenant{} + + err = json.Unmarshal(data, &varBriefTenant) + + if err != nil { + return err + } + + *o = BriefTenant(varBriefTenant) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenant struct { + value *BriefTenant + isSet bool +} + +func (v NullableBriefTenant) Get() *BriefTenant { + return v.value +} + +func (v *NullableBriefTenant) Set(val *BriefTenant) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenant) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenant) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenant(val *BriefTenant) *NullableBriefTenant { + return &NullableBriefTenant{value: val, isSet: true} +} + +func (v NullableBriefTenant) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenant) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant_group.go b/model_brief_tenant_group.go new file mode 100644 index 0000000000..9881b5da28 --- /dev/null +++ b/model_brief_tenant_group.go @@ -0,0 +1,403 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantGroup{} + +// BriefTenantGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefTenantGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + TenantCount int32 `json:"tenant_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantGroup BriefTenantGroup + +// NewBriefTenantGroup instantiates a new BriefTenantGroup 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 NewBriefTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32) *BriefTenantGroup { + this := BriefTenantGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.TenantCount = tenantCount + this.Depth = depth + return &this +} + +// NewBriefTenantGroupWithDefaults instantiates a new BriefTenantGroup 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 NewBriefTenantGroupWithDefaults() *BriefTenantGroup { + this := BriefTenantGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTenantGroup) 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 *BriefTenantGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTenantGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefTenantGroup) 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 *BriefTenantGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTenantGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefTenantGroup) 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 *BriefTenantGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTenantGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefTenantGroup) 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 *BriefTenantGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefTenantGroup) 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 *BriefTenantGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantGroup) 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 *BriefTenantGroup) 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 *BriefTenantGroup) 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 *BriefTenantGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTenantCount returns the TenantCount field value +func (o *BriefTenantGroup) GetTenantCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TenantCount +} + +// GetTenantCountOk returns a tuple with the TenantCount field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetTenantCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TenantCount, true +} + +// SetTenantCount sets field value +func (o *BriefTenantGroup) SetTenantCount(v int32) { + o.TenantCount = v +} + + +// GetDepth returns the Depth field value +func (o *BriefTenantGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefTenantGroup) SetDepth(v int32) { + o.Depth = v +} + + +func (o BriefTenantGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantGroup) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["tenant_count"] = o.TenantCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "tenant_count", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTenantGroup := _BriefTenantGroup{} + + err = json.Unmarshal(data, &varBriefTenantGroup) + + if err != nil { + return err + } + + *o = BriefTenantGroup(varBriefTenantGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantGroup struct { + value *BriefTenantGroup + isSet bool +} + +func (v NullableBriefTenantGroup) Get() *BriefTenantGroup { + return v.value +} + +func (v *NullableBriefTenantGroup) Set(val *BriefTenantGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantGroup(val *BriefTenantGroup) *NullableBriefTenantGroup { + return &NullableBriefTenantGroup{value: val, isSet: true} +} + +func (v NullableBriefTenantGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant_group_request.go b/model_brief_tenant_group_request.go new file mode 100644 index 0000000000..4a48c63a96 --- /dev/null +++ b/model_brief_tenant_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantGroupRequest{} + +// BriefTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefTenantGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantGroupRequest BriefTenantGroupRequest + +// NewBriefTenantGroupRequest instantiates a new BriefTenantGroupRequest 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 NewBriefTenantGroupRequest(name string, slug string) *BriefTenantGroupRequest { + this := BriefTenantGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantGroupRequestWithDefaults instantiates a new BriefTenantGroupRequest 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 NewBriefTenantGroupRequestWithDefaults() *BriefTenantGroupRequest { + this := BriefTenantGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTenantGroupRequest) 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 *BriefTenantGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefTenantGroupRequest) 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 *BriefTenantGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantGroupRequest) 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 *BriefTenantGroupRequest) 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 *BriefTenantGroupRequest) 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 *BriefTenantGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenantGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTenantGroupRequest := _BriefTenantGroupRequest{} + + err = json.Unmarshal(data, &varBriefTenantGroupRequest) + + if err != nil { + return err + } + + *o = BriefTenantGroupRequest(varBriefTenantGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantGroupRequest struct { + value *BriefTenantGroupRequest + isSet bool +} + +func (v NullableBriefTenantGroupRequest) Get() *BriefTenantGroupRequest { + return v.value +} + +func (v *NullableBriefTenantGroupRequest) Set(val *BriefTenantGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantGroupRequest(val *BriefTenantGroupRequest) *NullableBriefTenantGroupRequest { + return &NullableBriefTenantGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefTenantGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant_request.go b/model_brief_tenant_request.go new file mode 100644 index 0000000000..36794559d7 --- /dev/null +++ b/model_brief_tenant_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantRequest{} + +// BriefTenantRequest Adds support for custom fields and tags. +type BriefTenantRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantRequest BriefTenantRequest + +// NewBriefTenantRequest instantiates a new BriefTenantRequest 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 NewBriefTenantRequest(name string, slug string) *BriefTenantRequest { + this := BriefTenantRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantRequestWithDefaults instantiates a new BriefTenantRequest 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 NewBriefTenantRequestWithDefaults() *BriefTenantRequest { + this := BriefTenantRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTenantRequest) 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 *BriefTenantRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefTenantRequest) 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 *BriefTenantRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantRequest) 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 *BriefTenantRequest) 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 *BriefTenantRequest) 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 *BriefTenantRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenantRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTenantRequest := _BriefTenantRequest{} + + err = json.Unmarshal(data, &varBriefTenantRequest) + + if err != nil { + return err + } + + *o = BriefTenantRequest(varBriefTenantRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantRequest struct { + value *BriefTenantRequest + isSet bool +} + +func (v NullableBriefTenantRequest) Get() *BriefTenantRequest { + return v.value +} + +func (v *NullableBriefTenantRequest) Set(val *BriefTenantRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantRequest(val *BriefTenantRequest) *NullableBriefTenantRequest { + return &NullableBriefTenantRequest{value: val, isSet: true} +} + +func (v NullableBriefTenantRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_machine.go b/model_brief_tunnel.go similarity index 58% rename from model_virtual_machine.go rename to model_brief_tunnel.go index 3e1b4f6d63..9d758fcaea 100644 --- a/model_virtual_machine.go +++ b/model_brief_tunnel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,27 +15,27 @@ import ( "fmt" ) -// checks if the VirtualMachine type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VirtualMachine{} +// checks if the BriefTunnel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnel{} -// VirtualMachine Adds support for custom fields and tags. -type VirtualMachine struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` +// BriefTunnel Adds support for custom fields and tags. +type BriefTunnel struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } -type _VirtualMachine VirtualMachine +type _BriefTunnel BriefTunnel -// NewVirtualMachine instantiates a new VirtualMachine object +// NewBriefTunnel instantiates a new BriefTunnel 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 NewVirtualMachine(id int32, url string, display string, name string) *VirtualMachine { - this := VirtualMachine{} +func NewBriefTunnel(id int32, url string, display string, name string) *BriefTunnel { + this := BriefTunnel{} this.Id = id this.Url = url this.Display = display @@ -43,16 +43,16 @@ func NewVirtualMachine(id int32, url string, display string, name string) *Virtu return &this } -// NewVirtualMachineWithDefaults instantiates a new VirtualMachine object +// NewBriefTunnelWithDefaults instantiates a new BriefTunnel 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 NewVirtualMachineWithDefaults() *VirtualMachine { - this := VirtualMachine{} +func NewBriefTunnelWithDefaults() *BriefTunnel { + this := BriefTunnel{} return &this } // GetId returns the Id field value -func (o *VirtualMachine) GetId() int32 { +func (o *BriefTunnel) GetId() int32 { if o == nil { var ret int32 return ret @@ -63,7 +63,7 @@ func (o *VirtualMachine) GetId() int32 { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *VirtualMachine) GetIdOk() (*int32, bool) { +func (o *BriefTunnel) GetIdOk() (*int32, bool) { if o == nil { return nil, false } @@ -71,12 +71,13 @@ func (o *VirtualMachine) GetIdOk() (*int32, bool) { } // SetId sets field value -func (o *VirtualMachine) SetId(v int32) { +func (o *BriefTunnel) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value -func (o *VirtualMachine) GetUrl() string { +func (o *BriefTunnel) GetUrl() string { if o == nil { var ret string return ret @@ -87,7 +88,7 @@ func (o *VirtualMachine) GetUrl() string { // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. -func (o *VirtualMachine) GetUrlOk() (*string, bool) { +func (o *BriefTunnel) GetUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -95,12 +96,13 @@ func (o *VirtualMachine) GetUrlOk() (*string, bool) { } // SetUrl sets field value -func (o *VirtualMachine) SetUrl(v string) { +func (o *BriefTunnel) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value -func (o *VirtualMachine) GetDisplay() string { +func (o *BriefTunnel) GetDisplay() string { if o == nil { var ret string return ret @@ -111,7 +113,7 @@ func (o *VirtualMachine) GetDisplay() string { // GetDisplayOk returns a tuple with the Display field value // and a boolean to check if the value has been set. -func (o *VirtualMachine) GetDisplayOk() (*string, bool) { +func (o *BriefTunnel) GetDisplayOk() (*string, bool) { if o == nil { return nil, false } @@ -119,12 +121,13 @@ func (o *VirtualMachine) GetDisplayOk() (*string, bool) { } // SetDisplay sets field value -func (o *VirtualMachine) SetDisplay(v string) { +func (o *BriefTunnel) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value -func (o *VirtualMachine) GetName() string { +func (o *BriefTunnel) GetName() string { if o == nil { var ret string return ret @@ -135,7 +138,7 @@ func (o *VirtualMachine) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *VirtualMachine) GetNameOk() (*string, bool) { +func (o *BriefTunnel) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -143,12 +146,13 @@ func (o *VirtualMachine) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *VirtualMachine) SetName(v string) { +func (o *BriefTunnel) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. -func (o *VirtualMachine) GetDescription() string { +func (o *BriefTunnel) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -158,7 +162,7 @@ func (o *VirtualMachine) GetDescription() string { // 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 *VirtualMachine) GetDescriptionOk() (*string, bool) { +func (o *BriefTunnel) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -166,7 +170,7 @@ func (o *VirtualMachine) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *VirtualMachine) HasDescription() bool { +func (o *BriefTunnel) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -175,19 +179,19 @@ func (o *VirtualMachine) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *VirtualMachine) SetDescription(v string) { +func (o *BriefTunnel) SetDescription(v string) { o.Description = &v } -func (o VirtualMachine) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o BriefTunnel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o VirtualMachine) ToMap() (map[string]interface{}, error) { +func (o BriefTunnel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url @@ -204,7 +208,7 @@ func (o VirtualMachine) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *VirtualMachine) UnmarshalJSON(data []byte) (err error) { +func (o *BriefTunnel) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -215,29 +219,46 @@ func (o *VirtualMachine) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } - varVirtualMachine := _VirtualMachine{} + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTunnel := _BriefTunnel{} - err = json.Unmarshal(data, &varVirtualMachine) + err = json.Unmarshal(data, &varBriefTunnel) if err != nil { return err } - *o = VirtualMachine(varVirtualMachine) + *o = BriefTunnel(varBriefTunnel) additionalProperties := make(map[string]interface{}) @@ -253,38 +274,40 @@ func (o *VirtualMachine) UnmarshalJSON(data []byte) (err error) { return err } -type NullableVirtualMachine struct { - value *VirtualMachine +type NullableBriefTunnel struct { + value *BriefTunnel isSet bool } -func (v NullableVirtualMachine) Get() *VirtualMachine { +func (v NullableBriefTunnel) Get() *BriefTunnel { return v.value } -func (v *NullableVirtualMachine) Set(val *VirtualMachine) { +func (v *NullableBriefTunnel) Set(val *BriefTunnel) { v.value = val v.isSet = true } -func (v NullableVirtualMachine) IsSet() bool { +func (v NullableBriefTunnel) IsSet() bool { return v.isSet } -func (v *NullableVirtualMachine) Unset() { +func (v *NullableBriefTunnel) Unset() { v.value = nil v.isSet = false } -func NewNullableVirtualMachine(val *VirtualMachine) *NullableVirtualMachine { - return &NullableVirtualMachine{value: val, isSet: true} +func NewNullableBriefTunnel(val *BriefTunnel) *NullableBriefTunnel { + return &NullableBriefTunnel{value: val, isSet: true} } -func (v NullableVirtualMachine) MarshalJSON() ([]byte, error) { +func (v NullableBriefTunnel) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableVirtualMachine) UnmarshalJSON(src []byte) error { +func (v *NullableBriefTunnel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_brief_tunnel_group.go b/model_brief_tunnel_group.go new file mode 100644 index 0000000000..afc99d538e --- /dev/null +++ b/model_brief_tunnel_group.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelGroup{} + +// BriefTunnelGroup Adds support for custom fields and tags. +type BriefTunnelGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + TunnelCount int64 `json:"tunnel_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelGroup BriefTunnelGroup + +// NewBriefTunnelGroup instantiates a new BriefTunnelGroup 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 NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64) *BriefTunnelGroup { + this := BriefTunnelGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.TunnelCount = tunnelCount + return &this +} + +// NewBriefTunnelGroupWithDefaults instantiates a new BriefTunnelGroup 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 NewBriefTunnelGroupWithDefaults() *BriefTunnelGroup { + this := BriefTunnelGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTunnelGroup) 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 *BriefTunnelGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTunnelGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefTunnelGroup) 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 *BriefTunnelGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTunnelGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefTunnelGroup) 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 *BriefTunnelGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTunnelGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefTunnelGroup) 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 *BriefTunnelGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefTunnelGroup) 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 *BriefTunnelGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTunnelGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelGroup) 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 *BriefTunnelGroup) 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 *BriefTunnelGroup) 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 *BriefTunnelGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTunnelCount returns the TunnelCount field value +func (o *BriefTunnelGroup) GetTunnelCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.TunnelCount +} + +// GetTunnelCountOk returns a tuple with the TunnelCount field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetTunnelCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.TunnelCount, true +} + +// SetTunnelCount sets field value +func (o *BriefTunnelGroup) SetTunnelCount(v int64) { + o.TunnelCount = v +} + + +func (o BriefTunnelGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelGroup) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["tunnel_count"] = o.TunnelCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "tunnel_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTunnelGroup := _BriefTunnelGroup{} + + err = json.Unmarshal(data, &varBriefTunnelGroup) + + if err != nil { + return err + } + + *o = BriefTunnelGroup(varBriefTunnelGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tunnel_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelGroup struct { + value *BriefTunnelGroup + isSet bool +} + +func (v NullableBriefTunnelGroup) Get() *BriefTunnelGroup { + return v.value +} + +func (v *NullableBriefTunnelGroup) Set(val *BriefTunnelGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelGroup(val *BriefTunnelGroup) *NullableBriefTunnelGroup { + return &NullableBriefTunnelGroup{value: val, isSet: true} +} + +func (v NullableBriefTunnelGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tunnel_group_request.go b/model_brief_tunnel_group_request.go new file mode 100644 index 0000000000..0ea1a5febf --- /dev/null +++ b/model_brief_tunnel_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelGroupRequest{} + +// BriefTunnelGroupRequest Adds support for custom fields and tags. +type BriefTunnelGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelGroupRequest BriefTunnelGroupRequest + +// NewBriefTunnelGroupRequest instantiates a new BriefTunnelGroupRequest 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 NewBriefTunnelGroupRequest(name string, slug string) *BriefTunnelGroupRequest { + this := BriefTunnelGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTunnelGroupRequestWithDefaults instantiates a new BriefTunnelGroupRequest 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 NewBriefTunnelGroupRequestWithDefaults() *BriefTunnelGroupRequest { + this := BriefTunnelGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTunnelGroupRequest) 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 *BriefTunnelGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefTunnelGroupRequest) 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 *BriefTunnelGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTunnelGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelGroupRequest) 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 *BriefTunnelGroupRequest) 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 *BriefTunnelGroupRequest) 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 *BriefTunnelGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnelGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTunnelGroupRequest := _BriefTunnelGroupRequest{} + + err = json.Unmarshal(data, &varBriefTunnelGroupRequest) + + if err != nil { + return err + } + + *o = BriefTunnelGroupRequest(varBriefTunnelGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelGroupRequest struct { + value *BriefTunnelGroupRequest + isSet bool +} + +func (v NullableBriefTunnelGroupRequest) Get() *BriefTunnelGroupRequest { + return v.value +} + +func (v *NullableBriefTunnelGroupRequest) Set(val *BriefTunnelGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelGroupRequest(val *BriefTunnelGroupRequest) *NullableBriefTunnelGroupRequest { + return &NullableBriefTunnelGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefTunnelGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tunnel_request.go b/model_brief_tunnel_request.go new file mode 100644 index 0000000000..027593210b --- /dev/null +++ b/model_brief_tunnel_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelRequest{} + +// BriefTunnelRequest Adds support for custom fields and tags. +type BriefTunnelRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelRequest BriefTunnelRequest + +// NewBriefTunnelRequest instantiates a new BriefTunnelRequest 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 NewBriefTunnelRequest(name string) *BriefTunnelRequest { + this := BriefTunnelRequest{} + this.Name = name + return &this +} + +// NewBriefTunnelRequestWithDefaults instantiates a new BriefTunnelRequest 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 NewBriefTunnelRequestWithDefaults() *BriefTunnelRequest { + this := BriefTunnelRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTunnelRequest) 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 *BriefTunnelRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelRequest) 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 *BriefTunnelRequest) 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 *BriefTunnelRequest) 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 *BriefTunnelRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnelRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefTunnelRequest := _BriefTunnelRequest{} + + err = json.Unmarshal(data, &varBriefTunnelRequest) + + if err != nil { + return err + } + + *o = BriefTunnelRequest(varBriefTunnelRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelRequest struct { + value *BriefTunnelRequest + isSet bool +} + +func (v NullableBriefTunnelRequest) Get() *BriefTunnelRequest { + return v.value +} + +func (v *NullableBriefTunnelRequest) Set(val *BriefTunnelRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelRequest(val *BriefTunnelRequest) *NullableBriefTunnelRequest { + return &NullableBriefTunnelRequest{value: val, isSet: true} +} + +func (v NullableBriefTunnelRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_user.go b/model_brief_user.go new file mode 100644 index 0000000000..8e61def5eb --- /dev/null +++ b/model_brief_user.go @@ -0,0 +1,277 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefUser{} + +// BriefUser 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 BriefUser struct { + 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" validate:"regexp=^[\\\\w.@+-]+$"` + AdditionalProperties map[string]interface{} +} + +type _BriefUser BriefUser + +// NewBriefUser instantiates a new BriefUser 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 NewBriefUser(id int32, url string, display string, username string) *BriefUser { + this := BriefUser{} + this.Id = id + this.Url = url + this.Display = display + this.Username = username + return &this +} + +// NewBriefUserWithDefaults instantiates a new BriefUser 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 NewBriefUserWithDefaults() *BriefUser { + this := BriefUser{} + return &this +} + +// GetId returns the Id field value +func (o *BriefUser) 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 *BriefUser) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefUser) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefUser) 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 *BriefUser) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefUser) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefUser) 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 *BriefUser) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefUser) SetDisplay(v string) { + o.Display = v +} + + +// GetUsername returns the Username field value +func (o *BriefUser) 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 *BriefUser) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BriefUser) SetUsername(v string) { + o.Username = v +} + + +func (o BriefUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefUser) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "username", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefUser := _BriefUser{} + + err = json.Unmarshal(data, &varBriefUser) + + if err != nil { + return err + } + + *o = BriefUser(varBriefUser) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefUser struct { + value *BriefUser + isSet bool +} + +func (v NullableBriefUser) Get() *BriefUser { + return v.value +} + +func (v *NullableBriefUser) Set(val *BriefUser) { + v.value = val + v.isSet = true +} + +func (v NullableBriefUser) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefUser(val *BriefUser) *NullableBriefUser { + return &NullableBriefUser{value: val, isSet: true} +} + +func (v NullableBriefUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_user_request.go b/model_brief_user_request.go new file mode 100644 index 0000000000..9849646e7f --- /dev/null +++ b/model_brief_user_request.go @@ -0,0 +1,187 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefUserRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefUserRequest{} + +// BriefUserRequest 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 BriefUserRequest struct { + // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"` + AdditionalProperties map[string]interface{} +} + +type _BriefUserRequest BriefUserRequest + +// NewBriefUserRequest instantiates a new BriefUserRequest 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 NewBriefUserRequest(username string) *BriefUserRequest { + this := BriefUserRequest{} + this.Username = username + return &this +} + +// NewBriefUserRequestWithDefaults instantiates a new BriefUserRequest 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 NewBriefUserRequestWithDefaults() *BriefUserRequest { + this := BriefUserRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *BriefUserRequest) 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 *BriefUserRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BriefUserRequest) SetUsername(v string) { + o.Username = v +} + + +func (o BriefUserRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefUserRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefUserRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefUserRequest := _BriefUserRequest{} + + err = json.Unmarshal(data, &varBriefUserRequest) + + if err != nil { + return err + } + + *o = BriefUserRequest(varBriefUserRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefUserRequest struct { + value *BriefUserRequest + isSet bool +} + +func (v NullableBriefUserRequest) Get() *BriefUserRequest { + return v.value +} + +func (v *NullableBriefUserRequest) Set(val *BriefUserRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefUserRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefUserRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefUserRequest(val *BriefUserRequest) *NullableBriefUserRequest { + return &NullableBriefUserRequest{value: val, isSet: true} +} + +func (v NullableBriefUserRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefUserRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_chassis.go b/model_brief_virtual_chassis.go new file mode 100644 index 0000000000..dc8a110d45 --- /dev/null +++ b/model_brief_virtual_chassis.go @@ -0,0 +1,390 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualChassis type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualChassis{} + +// BriefVirtualChassis Adds support for custom fields and tags. +type BriefVirtualChassis struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + MemberCount int32 `json:"member_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualChassis BriefVirtualChassis + +// NewBriefVirtualChassis instantiates a new BriefVirtualChassis 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 NewBriefVirtualChassis(id int32, url string, display string, name string, memberCount int32) *BriefVirtualChassis { + this := BriefVirtualChassis{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.MemberCount = memberCount + return &this +} + +// NewBriefVirtualChassisWithDefaults instantiates a new BriefVirtualChassis 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 NewBriefVirtualChassisWithDefaults() *BriefVirtualChassis { + this := BriefVirtualChassis{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualChassis) 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 *BriefVirtualChassis) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualChassis) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVirtualChassis) 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 *BriefVirtualChassis) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualChassis) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVirtualChassis) 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 *BriefVirtualChassis) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualChassis) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefVirtualChassis) 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 *BriefVirtualChassis) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualChassis) SetName(v string) { + o.Name = v +} + + +// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVirtualChassis) GetMaster() NestedDevice { + if o == nil || IsNil(o.Master.Get()) { + var ret NestedDevice + return ret + } + return *o.Master.Get() +} + +// GetMasterOk returns a tuple with the Master 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 *BriefVirtualChassis) GetMasterOk() (*NestedDevice, bool) { + if o == nil { + return nil, false + } + return o.Master.Get(), o.Master.IsSet() +} + +// HasMaster returns a boolean if a field has been set. +func (o *BriefVirtualChassis) HasMaster() bool { + if o != nil && o.Master.IsSet() { + return true + } + + return false +} + +// SetMaster gets a reference to the given NullableNestedDevice and assigns it to the Master field. +func (o *BriefVirtualChassis) SetMaster(v NestedDevice) { + o.Master.Set(&v) +} +// SetMasterNil sets the value for Master to be an explicit nil +func (o *BriefVirtualChassis) SetMasterNil() { + o.Master.Set(nil) +} + +// UnsetMaster ensures that no value is present for Master, not even an explicit nil +func (o *BriefVirtualChassis) UnsetMaster() { + o.Master.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualChassis) 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 *BriefVirtualChassis) 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 *BriefVirtualChassis) 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 *BriefVirtualChassis) SetDescription(v string) { + o.Description = &v +} + +// GetMemberCount returns the MemberCount field value +func (o *BriefVirtualChassis) 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 *BriefVirtualChassis) GetMemberCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MemberCount, true +} + +// SetMemberCount sets field value +func (o *BriefVirtualChassis) SetMemberCount(v int32) { + o.MemberCount = v +} + + +func (o BriefVirtualChassis) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualChassis) 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 o.Master.IsSet() { + toSerialize["master"] = o.Master.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["member_count"] = o.MemberCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualChassis) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "member_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualChassis := _BriefVirtualChassis{} + + err = json.Unmarshal(data, &varBriefVirtualChassis) + + if err != nil { + return err + } + + *o = BriefVirtualChassis(varBriefVirtualChassis) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "master") + delete(additionalProperties, "description") + delete(additionalProperties, "member_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualChassis struct { + value *BriefVirtualChassis + isSet bool +} + +func (v NullableBriefVirtualChassis) Get() *BriefVirtualChassis { + return v.value +} + +func (v *NullableBriefVirtualChassis) Set(val *BriefVirtualChassis) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualChassis) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualChassis) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualChassis(val *BriefVirtualChassis) *NullableBriefVirtualChassis { + return &NullableBriefVirtualChassis{value: val, isSet: true} +} + +func (v NullableBriefVirtualChassis) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualChassis) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_chassis_request.go b/model_brief_virtual_chassis_request.go new file mode 100644 index 0000000000..7d235f06c4 --- /dev/null +++ b/model_brief_virtual_chassis_request.go @@ -0,0 +1,270 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualChassisRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualChassisRequest{} + +// BriefVirtualChassisRequest Adds support for custom fields and tags. +type BriefVirtualChassisRequest struct { + Name string `json:"name"` + Master NullableNestedDeviceRequest `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualChassisRequest BriefVirtualChassisRequest + +// NewBriefVirtualChassisRequest instantiates a new BriefVirtualChassisRequest 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 NewBriefVirtualChassisRequest(name string) *BriefVirtualChassisRequest { + this := BriefVirtualChassisRequest{} + this.Name = name + return &this +} + +// NewBriefVirtualChassisRequestWithDefaults instantiates a new BriefVirtualChassisRequest 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 NewBriefVirtualChassisRequestWithDefaults() *BriefVirtualChassisRequest { + this := BriefVirtualChassisRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVirtualChassisRequest) 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 *BriefVirtualChassisRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualChassisRequest) SetName(v string) { + o.Name = v +} + + +// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVirtualChassisRequest) GetMaster() NestedDeviceRequest { + if o == nil || IsNil(o.Master.Get()) { + var ret NestedDeviceRequest + return ret + } + return *o.Master.Get() +} + +// GetMasterOk returns a tuple with the Master 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 *BriefVirtualChassisRequest) GetMasterOk() (*NestedDeviceRequest, bool) { + if o == nil { + return nil, false + } + return o.Master.Get(), o.Master.IsSet() +} + +// HasMaster returns a boolean if a field has been set. +func (o *BriefVirtualChassisRequest) HasMaster() bool { + if o != nil && o.Master.IsSet() { + return true + } + + return false +} + +// SetMaster gets a reference to the given NullableNestedDeviceRequest and assigns it to the Master field. +func (o *BriefVirtualChassisRequest) SetMaster(v NestedDeviceRequest) { + o.Master.Set(&v) +} +// SetMasterNil sets the value for Master to be an explicit nil +func (o *BriefVirtualChassisRequest) SetMasterNil() { + o.Master.Set(nil) +} + +// UnsetMaster ensures that no value is present for Master, not even an explicit nil +func (o *BriefVirtualChassisRequest) UnsetMaster() { + o.Master.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualChassisRequest) 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 *BriefVirtualChassisRequest) 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 *BriefVirtualChassisRequest) 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 *BriefVirtualChassisRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualChassisRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualChassisRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Master.IsSet() { + toSerialize["master"] = o.Master.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualChassisRequest := _BriefVirtualChassisRequest{} + + err = json.Unmarshal(data, &varBriefVirtualChassisRequest) + + if err != nil { + return err + } + + *o = BriefVirtualChassisRequest(varBriefVirtualChassisRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "master") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualChassisRequest struct { + value *BriefVirtualChassisRequest + isSet bool +} + +func (v NullableBriefVirtualChassisRequest) Get() *BriefVirtualChassisRequest { + return v.value +} + +func (v *NullableBriefVirtualChassisRequest) Set(val *BriefVirtualChassisRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualChassisRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualChassisRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualChassisRequest(val *BriefVirtualChassisRequest) *NullableBriefVirtualChassisRequest { + return &NullableBriefVirtualChassisRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualChassisRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualChassisRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_circuit.go b/model_brief_virtual_circuit.go new file mode 100644 index 0000000000..59b2c009b3 --- /dev/null +++ b/model_brief_virtual_circuit.go @@ -0,0 +1,344 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualCircuit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualCircuit{} + +// BriefVirtualCircuit Adds support for custom fields and tags. +type BriefVirtualCircuit struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Unique circuit ID + Cid string `json:"cid"` + ProviderNetwork BriefProviderNetwork `json:"provider_network"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualCircuit BriefVirtualCircuit + +// NewBriefVirtualCircuit instantiates a new BriefVirtualCircuit 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 NewBriefVirtualCircuit(id int32, url string, display string, cid string, providerNetwork BriefProviderNetwork) *BriefVirtualCircuit { + this := BriefVirtualCircuit{} + this.Id = id + this.Url = url + this.Display = display + this.Cid = cid + this.ProviderNetwork = providerNetwork + return &this +} + +// NewBriefVirtualCircuitWithDefaults instantiates a new BriefVirtualCircuit 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 NewBriefVirtualCircuitWithDefaults() *BriefVirtualCircuit { + this := BriefVirtualCircuit{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualCircuit) 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 *BriefVirtualCircuit) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualCircuit) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVirtualCircuit) 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 *BriefVirtualCircuit) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualCircuit) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVirtualCircuit) 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 *BriefVirtualCircuit) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualCircuit) SetDisplay(v string) { + o.Display = v +} + + +// GetCid returns the Cid field value +func (o *BriefVirtualCircuit) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualCircuit) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefVirtualCircuit) SetCid(v string) { + o.Cid = v +} + + +// GetProviderNetwork returns the ProviderNetwork field value +func (o *BriefVirtualCircuit) GetProviderNetwork() BriefProviderNetwork { + if o == nil { + var ret BriefProviderNetwork + return ret + } + + return o.ProviderNetwork +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualCircuit) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { + if o == nil { + return nil, false + } + return &o.ProviderNetwork, true +} + +// SetProviderNetwork sets field value +func (o *BriefVirtualCircuit) SetProviderNetwork(v BriefProviderNetwork) { + o.ProviderNetwork = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualCircuit) 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 *BriefVirtualCircuit) 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 *BriefVirtualCircuit) 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 *BriefVirtualCircuit) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualCircuit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualCircuit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["cid"] = o.Cid + toSerialize["provider_network"] = o.ProviderNetwork + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualCircuit) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "cid", + "provider_network", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualCircuit := _BriefVirtualCircuit{} + + err = json.Unmarshal(data, &varBriefVirtualCircuit) + + if err != nil { + return err + } + + *o = BriefVirtualCircuit(varBriefVirtualCircuit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "cid") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualCircuit struct { + value *BriefVirtualCircuit + isSet bool +} + +func (v NullableBriefVirtualCircuit) Get() *BriefVirtualCircuit { + return v.value +} + +func (v *NullableBriefVirtualCircuit) Set(val *BriefVirtualCircuit) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualCircuit) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualCircuit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualCircuit(val *BriefVirtualCircuit) *NullableBriefVirtualCircuit { + return &NullableBriefVirtualCircuit{value: val, isSet: true} +} + +func (v NullableBriefVirtualCircuit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualCircuit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_circuit_request.go b/model_brief_virtual_circuit_request.go new file mode 100644 index 0000000000..6a5a2f8f30 --- /dev/null +++ b/model_brief_virtual_circuit_request.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualCircuitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualCircuitRequest{} + +// BriefVirtualCircuitRequest Adds support for custom fields and tags. +type BriefVirtualCircuitRequest struct { + // Unique circuit ID + Cid string `json:"cid"` + ProviderNetwork BriefProviderNetworkRequest `json:"provider_network"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualCircuitRequest BriefVirtualCircuitRequest + +// NewBriefVirtualCircuitRequest instantiates a new BriefVirtualCircuitRequest 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 NewBriefVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest) *BriefVirtualCircuitRequest { + this := BriefVirtualCircuitRequest{} + this.Cid = cid + this.ProviderNetwork = providerNetwork + return &this +} + +// NewBriefVirtualCircuitRequestWithDefaults instantiates a new BriefVirtualCircuitRequest 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 NewBriefVirtualCircuitRequestWithDefaults() *BriefVirtualCircuitRequest { + this := BriefVirtualCircuitRequest{} + return &this +} + +// GetCid returns the Cid field value +func (o *BriefVirtualCircuitRequest) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualCircuitRequest) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefVirtualCircuitRequest) SetCid(v string) { + o.Cid = v +} + + +// GetProviderNetwork returns the ProviderNetwork field value +func (o *BriefVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest { + if o == nil { + var ret BriefProviderNetworkRequest + return ret + } + + return o.ProviderNetwork +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { + if o == nil { + return nil, false + } + return &o.ProviderNetwork, true +} + +// SetProviderNetwork sets field value +func (o *BriefVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { + o.ProviderNetwork = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualCircuitRequest) 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 *BriefVirtualCircuitRequest) 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 *BriefVirtualCircuitRequest) 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 *BriefVirtualCircuitRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualCircuitRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualCircuitRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cid"] = o.Cid + toSerialize["provider_network"] = o.ProviderNetwork + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualCircuitRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cid", + "provider_network", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualCircuitRequest := _BriefVirtualCircuitRequest{} + + err = json.Unmarshal(data, &varBriefVirtualCircuitRequest) + + if err != nil { + return err + } + + *o = BriefVirtualCircuitRequest(varBriefVirtualCircuitRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cid") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualCircuitRequest struct { + value *BriefVirtualCircuitRequest + isSet bool +} + +func (v NullableBriefVirtualCircuitRequest) Get() *BriefVirtualCircuitRequest { + return v.value +} + +func (v *NullableBriefVirtualCircuitRequest) Set(val *BriefVirtualCircuitRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualCircuitRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualCircuitRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualCircuitRequest(val *BriefVirtualCircuitRequest) *NullableBriefVirtualCircuitRequest { + return &NullableBriefVirtualCircuitRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualCircuitRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualCircuitRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_circuit_type.go b/model_brief_virtual_circuit_type.go new file mode 100644 index 0000000000..cee432a705 --- /dev/null +++ b/model_brief_virtual_circuit_type.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualCircuitType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualCircuitType{} + +// BriefVirtualCircuitType Adds support for custom fields and tags. +type BriefVirtualCircuitType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + VirtualCircuitCount int64 `json:"virtual_circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualCircuitType BriefVirtualCircuitType + +// NewBriefVirtualCircuitType instantiates a new BriefVirtualCircuitType 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 NewBriefVirtualCircuitType(id int32, url string, display string, name string, slug string, virtualCircuitCount int64) *BriefVirtualCircuitType { + this := BriefVirtualCircuitType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.VirtualCircuitCount = virtualCircuitCount + return &this +} + +// NewBriefVirtualCircuitTypeWithDefaults instantiates a new BriefVirtualCircuitType 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 NewBriefVirtualCircuitTypeWithDefaults() *BriefVirtualCircuitType { + this := BriefVirtualCircuitType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualCircuitType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualCircuitType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualCircuitType) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualCircuitType) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVirtualCircuitType) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) 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 *BriefVirtualCircuitType) SetDescription(v string) { + o.Description = &v +} + +// GetVirtualCircuitCount returns the VirtualCircuitCount field value +func (o *BriefVirtualCircuitType) GetVirtualCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VirtualCircuitCount +} + +// GetVirtualCircuitCountOk returns a tuple with the VirtualCircuitCount field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualCircuitType) GetVirtualCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VirtualCircuitCount, true +} + +// SetVirtualCircuitCount sets field value +func (o *BriefVirtualCircuitType) SetVirtualCircuitCount(v int64) { + o.VirtualCircuitCount = v +} + + +func (o BriefVirtualCircuitType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualCircuitType) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["virtual_circuit_count"] = o.VirtualCircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualCircuitType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "virtual_circuit_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualCircuitType := _BriefVirtualCircuitType{} + + err = json.Unmarshal(data, &varBriefVirtualCircuitType) + + if err != nil { + return err + } + + *o = BriefVirtualCircuitType(varBriefVirtualCircuitType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "virtual_circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualCircuitType struct { + value *BriefVirtualCircuitType + isSet bool +} + +func (v NullableBriefVirtualCircuitType) Get() *BriefVirtualCircuitType { + return v.value +} + +func (v *NullableBriefVirtualCircuitType) Set(val *BriefVirtualCircuitType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualCircuitType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualCircuitType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualCircuitType(val *BriefVirtualCircuitType) *NullableBriefVirtualCircuitType { + return &NullableBriefVirtualCircuitType{value: val, isSet: true} +} + +func (v NullableBriefVirtualCircuitType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualCircuitType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_circuit_type_request.go b/model_brief_virtual_circuit_type_request.go new file mode 100644 index 0000000000..3d74246ba6 --- /dev/null +++ b/model_brief_virtual_circuit_type_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualCircuitTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualCircuitTypeRequest{} + +// BriefVirtualCircuitTypeRequest Adds support for custom fields and tags. +type BriefVirtualCircuitTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualCircuitTypeRequest BriefVirtualCircuitTypeRequest + +// NewBriefVirtualCircuitTypeRequest instantiates a new BriefVirtualCircuitTypeRequest 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 NewBriefVirtualCircuitTypeRequest(name string, slug string) *BriefVirtualCircuitTypeRequest { + this := BriefVirtualCircuitTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefVirtualCircuitTypeRequestWithDefaults instantiates a new BriefVirtualCircuitTypeRequest 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 NewBriefVirtualCircuitTypeRequestWithDefaults() *BriefVirtualCircuitTypeRequest { + this := BriefVirtualCircuitTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVirtualCircuitTypeRequest) 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 *BriefVirtualCircuitTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualCircuitTypeRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefVirtualCircuitTypeRequest) 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 *BriefVirtualCircuitTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVirtualCircuitTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualCircuitTypeRequest) 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 *BriefVirtualCircuitTypeRequest) 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 *BriefVirtualCircuitTypeRequest) 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 *BriefVirtualCircuitTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualCircuitTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualCircuitTypeRequest := _BriefVirtualCircuitTypeRequest{} + + err = json.Unmarshal(data, &varBriefVirtualCircuitTypeRequest) + + if err != nil { + return err + } + + *o = BriefVirtualCircuitTypeRequest(varBriefVirtualCircuitTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualCircuitTypeRequest struct { + value *BriefVirtualCircuitTypeRequest + isSet bool +} + +func (v NullableBriefVirtualCircuitTypeRequest) Get() *BriefVirtualCircuitTypeRequest { + return v.value +} + +func (v *NullableBriefVirtualCircuitTypeRequest) Set(val *BriefVirtualCircuitTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualCircuitTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualCircuitTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualCircuitTypeRequest(val *BriefVirtualCircuitTypeRequest) *NullableBriefVirtualCircuitTypeRequest { + return &NullableBriefVirtualCircuitTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualCircuitTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_machine.go b/model_brief_virtual_machine.go new file mode 100644 index 0000000000..9debf7c4b1 --- /dev/null +++ b/model_brief_virtual_machine.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualMachine type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualMachine{} + +// BriefVirtualMachine Adds support for custom fields and tags. +type BriefVirtualMachine struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualMachine BriefVirtualMachine + +// NewBriefVirtualMachine instantiates a new BriefVirtualMachine 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 NewBriefVirtualMachine(id int32, url string, display string, name string) *BriefVirtualMachine { + this := BriefVirtualMachine{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefVirtualMachineWithDefaults instantiates a new BriefVirtualMachine 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 NewBriefVirtualMachineWithDefaults() *BriefVirtualMachine { + this := BriefVirtualMachine{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualMachine) 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 *BriefVirtualMachine) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualMachine) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVirtualMachine) 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 *BriefVirtualMachine) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualMachine) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVirtualMachine) 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 *BriefVirtualMachine) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualMachine) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefVirtualMachine) 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 *BriefVirtualMachine) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualMachine) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualMachine) 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 *BriefVirtualMachine) 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 *BriefVirtualMachine) 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 *BriefVirtualMachine) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualMachine) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualMachine) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualMachine) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualMachine := _BriefVirtualMachine{} + + err = json.Unmarshal(data, &varBriefVirtualMachine) + + if err != nil { + return err + } + + *o = BriefVirtualMachine(varBriefVirtualMachine) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualMachine struct { + value *BriefVirtualMachine + isSet bool +} + +func (v NullableBriefVirtualMachine) Get() *BriefVirtualMachine { + return v.value +} + +func (v *NullableBriefVirtualMachine) Set(val *BriefVirtualMachine) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualMachine) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualMachine) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualMachine(val *BriefVirtualMachine) *NullableBriefVirtualMachine { + return &NullableBriefVirtualMachine{value: val, isSet: true} +} + +func (v NullableBriefVirtualMachine) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualMachine) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_machine_request.go b/model_brief_virtual_machine_request.go new file mode 100644 index 0000000000..effce12696 --- /dev/null +++ b/model_brief_virtual_machine_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualMachineRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualMachineRequest{} + +// BriefVirtualMachineRequest Adds support for custom fields and tags. +type BriefVirtualMachineRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualMachineRequest BriefVirtualMachineRequest + +// NewBriefVirtualMachineRequest instantiates a new BriefVirtualMachineRequest 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 NewBriefVirtualMachineRequest(name string) *BriefVirtualMachineRequest { + this := BriefVirtualMachineRequest{} + this.Name = name + return &this +} + +// NewBriefVirtualMachineRequestWithDefaults instantiates a new BriefVirtualMachineRequest 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 NewBriefVirtualMachineRequestWithDefaults() *BriefVirtualMachineRequest { + this := BriefVirtualMachineRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVirtualMachineRequest) 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 *BriefVirtualMachineRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualMachineRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualMachineRequest) 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 *BriefVirtualMachineRequest) 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 *BriefVirtualMachineRequest) 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 *BriefVirtualMachineRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualMachineRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualMachineRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVirtualMachineRequest := _BriefVirtualMachineRequest{} + + err = json.Unmarshal(data, &varBriefVirtualMachineRequest) + + if err != nil { + return err + } + + *o = BriefVirtualMachineRequest(varBriefVirtualMachineRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualMachineRequest struct { + value *BriefVirtualMachineRequest + isSet bool +} + +func (v NullableBriefVirtualMachineRequest) Get() *BriefVirtualMachineRequest { + return v.value +} + +func (v *NullableBriefVirtualMachineRequest) Set(val *BriefVirtualMachineRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualMachineRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualMachineRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualMachineRequest(val *BriefVirtualMachineRequest) *NullableBriefVirtualMachineRequest { + return &NullableBriefVirtualMachineRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualMachineRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualMachineRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan.go b/model_brief_vlan.go new file mode 100644 index 0000000000..a0e451f50e --- /dev/null +++ b/model_brief_vlan.go @@ -0,0 +1,344 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLAN type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLAN{} + +// BriefVLAN Adds support for custom fields and tags. +type BriefVLAN struct { + 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"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLAN BriefVLAN + +// NewBriefVLAN instantiates a new BriefVLAN 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 NewBriefVLAN(id int32, url string, display string, vid int32, name string) *BriefVLAN { + this := BriefVLAN{} + this.Id = id + this.Url = url + this.Display = display + this.Vid = vid + this.Name = name + return &this +} + +// NewBriefVLANWithDefaults instantiates a new BriefVLAN 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 NewBriefVLANWithDefaults() *BriefVLAN { + this := BriefVLAN{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVLAN) 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 *BriefVLAN) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVLAN) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVLAN) 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 *BriefVLAN) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVLAN) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVLAN) 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 *BriefVLAN) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVLAN) SetDisplay(v string) { + o.Display = v +} + + +// GetVid returns the Vid field value +func (o *BriefVLAN) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *BriefVLAN) SetVid(v int32) { + o.Vid = v +} + + +// GetName returns the Name field value +func (o *BriefVLAN) 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 *BriefVLAN) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLAN) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLAN) 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 *BriefVLAN) 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 *BriefVLAN) 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 *BriefVLAN) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLAN) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLAN) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLAN) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "vid", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVLAN := _BriefVLAN{} + + err = json.Unmarshal(data, &varBriefVLAN) + + if err != nil { + return err + } + + *o = BriefVLAN(varBriefVLAN) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLAN struct { + value *BriefVLAN + isSet bool +} + +func (v NullableBriefVLAN) Get() *BriefVLAN { + return v.value +} + +func (v *NullableBriefVLAN) Set(val *BriefVLAN) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLAN) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLAN) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLAN(val *BriefVLAN) *NullableBriefVLAN { + return &NullableBriefVLAN{value: val, isSet: true} +} + +func (v NullableBriefVLAN) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLAN) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_group.go b/model_brief_vlan_group.go new file mode 100644 index 0000000000..407688e03b --- /dev/null +++ b/model_brief_vlan_group.go @@ -0,0 +1,380 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANGroup{} + +// BriefVLANGroup Adds support for custom fields and tags. +type BriefVLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANGroup BriefVLANGroup + +// NewBriefVLANGroup instantiates a new BriefVLANGroup 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 NewBriefVLANGroup(id int32, url string, display string, name string, slug string) *BriefVLANGroup { + this := BriefVLANGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefVLANGroupWithDefaults instantiates a new BriefVLANGroup 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 NewBriefVLANGroupWithDefaults() *BriefVLANGroup { + this := BriefVLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVLANGroup) 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 *BriefVLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVLANGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVLANGroup) 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 *BriefVLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVLANGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVLANGroup) 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 *BriefVLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVLANGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefVLANGroup) 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 *BriefVLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefVLANGroup) 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 *BriefVLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVLANGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANGroup) 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 *BriefVLANGroup) 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 *BriefVLANGroup) 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 *BriefVLANGroup) SetDescription(v string) { + o.Description = &v +} + +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. +func (o *BriefVLANGroup) GetVlanCount() int64 { + if o == nil || IsNil(o.VlanCount) { + var ret int64 + return ret + } + return *o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetVlanCountOk() (*int64, bool) { + if o == nil || IsNil(o.VlanCount) { + return nil, false + } + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *BriefVLANGroup) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. +func (o *BriefVLANGroup) SetVlanCount(v int64) { + o.VlanCount = &v +} + +func (o BriefVLANGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANGroup) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVLANGroup := _BriefVLANGroup{} + + err = json.Unmarshal(data, &varBriefVLANGroup) + + if err != nil { + return err + } + + *o = BriefVLANGroup(varBriefVLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "vlan_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANGroup struct { + value *BriefVLANGroup + isSet bool +} + +func (v NullableBriefVLANGroup) Get() *BriefVLANGroup { + return v.value +} + +func (v *NullableBriefVLANGroup) Set(val *BriefVLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANGroup(val *BriefVLANGroup) *NullableBriefVLANGroup { + return &NullableBriefVLANGroup{value: val, isSet: true} +} + +func (v NullableBriefVLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_group_request.go b/model_brief_vlan_group_request.go new file mode 100644 index 0000000000..be33f3328e --- /dev/null +++ b/model_brief_vlan_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANGroupRequest{} + +// BriefVLANGroupRequest Adds support for custom fields and tags. +type BriefVLANGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANGroupRequest BriefVLANGroupRequest + +// NewBriefVLANGroupRequest instantiates a new BriefVLANGroupRequest 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 NewBriefVLANGroupRequest(name string, slug string) *BriefVLANGroupRequest { + this := BriefVLANGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefVLANGroupRequestWithDefaults instantiates a new BriefVLANGroupRequest 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 NewBriefVLANGroupRequestWithDefaults() *BriefVLANGroupRequest { + this := BriefVLANGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVLANGroupRequest) 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 *BriefVLANGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefVLANGroupRequest) 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 *BriefVLANGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVLANGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANGroupRequest) 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 *BriefVLANGroupRequest) 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 *BriefVLANGroupRequest) 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 *BriefVLANGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVLANGroupRequest := _BriefVLANGroupRequest{} + + err = json.Unmarshal(data, &varBriefVLANGroupRequest) + + if err != nil { + return err + } + + *o = BriefVLANGroupRequest(varBriefVLANGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANGroupRequest struct { + value *BriefVLANGroupRequest + isSet bool +} + +func (v NullableBriefVLANGroupRequest) Get() *BriefVLANGroupRequest { + return v.value +} + +func (v *NullableBriefVLANGroupRequest) Set(val *BriefVLANGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANGroupRequest(val *BriefVLANGroupRequest) *NullableBriefVLANGroupRequest { + return &NullableBriefVLANGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefVLANGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_request.go b/model_brief_vlan_request.go new file mode 100644 index 0000000000..34aa4aead2 --- /dev/null +++ b/model_brief_vlan_request.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANRequest{} + +// BriefVLANRequest Adds support for custom fields and tags. +type BriefVLANRequest struct { + // Numeric VLAN ID (1-4094) + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANRequest BriefVLANRequest + +// NewBriefVLANRequest instantiates a new BriefVLANRequest 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 NewBriefVLANRequest(vid int32, name string) *BriefVLANRequest { + this := BriefVLANRequest{} + this.Vid = vid + this.Name = name + return &this +} + +// NewBriefVLANRequestWithDefaults instantiates a new BriefVLANRequest 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 NewBriefVLANRequestWithDefaults() *BriefVLANRequest { + this := BriefVLANRequest{} + return &this +} + +// GetVid returns the Vid field value +func (o *BriefVLANRequest) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *BriefVLANRequest) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *BriefVLANRequest) SetVid(v int32) { + o.Vid = v +} + + +// GetName returns the Name field value +func (o *BriefVLANRequest) 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 *BriefVLANRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANRequest) 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 *BriefVLANRequest) 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 *BriefVLANRequest) 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 *BriefVLANRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "vid", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVLANRequest := _BriefVLANRequest{} + + err = json.Unmarshal(data, &varBriefVLANRequest) + + if err != nil { + return err + } + + *o = BriefVLANRequest(varBriefVLANRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANRequest struct { + value *BriefVLANRequest + isSet bool +} + +func (v NullableBriefVLANRequest) Get() *BriefVLANRequest { + return v.value +} + +func (v *NullableBriefVLANRequest) Set(val *BriefVLANRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANRequest(val *BriefVLANRequest) *NullableBriefVLANRequest { + return &NullableBriefVLANRequest{value: val, isSet: true} +} + +func (v NullableBriefVLANRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_translation_policy.go b/model_brief_vlan_translation_policy.go new file mode 100644 index 0000000000..413e33426f --- /dev/null +++ b/model_brief_vlan_translation_policy.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANTranslationPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANTranslationPolicy{} + +// BriefVLANTranslationPolicy Adds support for custom fields and tags. +type BriefVLANTranslationPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANTranslationPolicy BriefVLANTranslationPolicy + +// NewBriefVLANTranslationPolicy instantiates a new BriefVLANTranslationPolicy 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 NewBriefVLANTranslationPolicy(id int32, url string, display string, name string) *BriefVLANTranslationPolicy { + this := BriefVLANTranslationPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefVLANTranslationPolicyWithDefaults instantiates a new BriefVLANTranslationPolicy 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 NewBriefVLANTranslationPolicyWithDefaults() *BriefVLANTranslationPolicy { + this := BriefVLANTranslationPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVLANTranslationPolicy) 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 *BriefVLANTranslationPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVLANTranslationPolicy) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVLANTranslationPolicy) 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 *BriefVLANTranslationPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVLANTranslationPolicy) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVLANTranslationPolicy) 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 *BriefVLANTranslationPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVLANTranslationPolicy) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefVLANTranslationPolicy) 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 *BriefVLANTranslationPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANTranslationPolicy) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANTranslationPolicy) 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 *BriefVLANTranslationPolicy) 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 *BriefVLANTranslationPolicy) 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 *BriefVLANTranslationPolicy) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANTranslationPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANTranslationPolicy) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANTranslationPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVLANTranslationPolicy := _BriefVLANTranslationPolicy{} + + err = json.Unmarshal(data, &varBriefVLANTranslationPolicy) + + if err != nil { + return err + } + + *o = BriefVLANTranslationPolicy(varBriefVLANTranslationPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANTranslationPolicy struct { + value *BriefVLANTranslationPolicy + isSet bool +} + +func (v NullableBriefVLANTranslationPolicy) Get() *BriefVLANTranslationPolicy { + return v.value +} + +func (v *NullableBriefVLANTranslationPolicy) Set(val *BriefVLANTranslationPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANTranslationPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANTranslationPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANTranslationPolicy(val *BriefVLANTranslationPolicy) *NullableBriefVLANTranslationPolicy { + return &NullableBriefVLANTranslationPolicy{value: val, isSet: true} +} + +func (v NullableBriefVLANTranslationPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANTranslationPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_translation_policy_request.go b/model_brief_vlan_translation_policy_request.go new file mode 100644 index 0000000000..8a15fb73bc --- /dev/null +++ b/model_brief_vlan_translation_policy_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANTranslationPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANTranslationPolicyRequest{} + +// BriefVLANTranslationPolicyRequest Adds support for custom fields and tags. +type BriefVLANTranslationPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANTranslationPolicyRequest BriefVLANTranslationPolicyRequest + +// NewBriefVLANTranslationPolicyRequest instantiates a new BriefVLANTranslationPolicyRequest 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 NewBriefVLANTranslationPolicyRequest(name string) *BriefVLANTranslationPolicyRequest { + this := BriefVLANTranslationPolicyRequest{} + this.Name = name + return &this +} + +// NewBriefVLANTranslationPolicyRequestWithDefaults instantiates a new BriefVLANTranslationPolicyRequest 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 NewBriefVLANTranslationPolicyRequestWithDefaults() *BriefVLANTranslationPolicyRequest { + this := BriefVLANTranslationPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVLANTranslationPolicyRequest) 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 *BriefVLANTranslationPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANTranslationPolicyRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANTranslationPolicyRequest) 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 *BriefVLANTranslationPolicyRequest) 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 *BriefVLANTranslationPolicyRequest) 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 *BriefVLANTranslationPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANTranslationPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANTranslationPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVLANTranslationPolicyRequest := _BriefVLANTranslationPolicyRequest{} + + err = json.Unmarshal(data, &varBriefVLANTranslationPolicyRequest) + + if err != nil { + return err + } + + *o = BriefVLANTranslationPolicyRequest(varBriefVLANTranslationPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANTranslationPolicyRequest struct { + value *BriefVLANTranslationPolicyRequest + isSet bool +} + +func (v NullableBriefVLANTranslationPolicyRequest) Get() *BriefVLANTranslationPolicyRequest { + return v.value +} + +func (v *NullableBriefVLANTranslationPolicyRequest) Set(val *BriefVLANTranslationPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANTranslationPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANTranslationPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANTranslationPolicyRequest(val *BriefVLANTranslationPolicyRequest) *NullableBriefVLANTranslationPolicyRequest { + return &NullableBriefVLANTranslationPolicyRequest{value: val, isSet: true} +} + +func (v NullableBriefVLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANTranslationPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vrf.go b/model_brief_vrf.go new file mode 100644 index 0000000000..e0ea9fdf8c --- /dev/null +++ b/model_brief_vrf.go @@ -0,0 +1,398 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVRF type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVRF{} + +// BriefVRF Adds support for custom fields and tags. +type BriefVRF struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + // Unique route distinguisher (as defined in RFC 4364) + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVRF BriefVRF + +// NewBriefVRF instantiates a new BriefVRF 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 NewBriefVRF(id int32, url string, display string, name string) *BriefVRF { + this := BriefVRF{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefVRFWithDefaults instantiates a new BriefVRF 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 NewBriefVRFWithDefaults() *BriefVRF { + this := BriefVRF{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVRF) 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 *BriefVRF) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVRF) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefVRF) 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 *BriefVRF) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVRF) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefVRF) 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 *BriefVRF) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVRF) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefVRF) 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 *BriefVRF) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVRF) SetName(v string) { + o.Name = v +} + + +// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVRF) GetRd() string { + if o == nil || IsNil(o.Rd.Get()) { + var ret string + return ret + } + return *o.Rd.Get() +} + +// GetRdOk returns a tuple with the Rd 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 *BriefVRF) GetRdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rd.Get(), o.Rd.IsSet() +} + +// HasRd returns a boolean if a field has been set. +func (o *BriefVRF) HasRd() bool { + if o != nil && o.Rd.IsSet() { + return true + } + + return false +} + +// SetRd gets a reference to the given NullableString and assigns it to the Rd field. +func (o *BriefVRF) SetRd(v string) { + o.Rd.Set(&v) +} +// SetRdNil sets the value for Rd to be an explicit nil +func (o *BriefVRF) SetRdNil() { + o.Rd.Set(nil) +} + +// UnsetRd ensures that no value is present for Rd, not even an explicit nil +func (o *BriefVRF) UnsetRd() { + o.Rd.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVRF) 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 *BriefVRF) 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 *BriefVRF) 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 *BriefVRF) SetDescription(v string) { + o.Description = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *BriefVRF) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *BriefVRF) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *BriefVRF) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +func (o BriefVRF) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVRF) 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 o.Rd.IsSet() { + toSerialize["rd"] = o.Rd.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVRF) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVRF := _BriefVRF{} + + err = json.Unmarshal(data, &varBriefVRF) + + if err != nil { + return err + } + + *o = BriefVRF(varBriefVRF) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "rd") + delete(additionalProperties, "description") + delete(additionalProperties, "prefix_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVRF struct { + value *BriefVRF + isSet bool +} + +func (v NullableBriefVRF) Get() *BriefVRF { + return v.value +} + +func (v *NullableBriefVRF) Set(val *BriefVRF) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVRF) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVRF) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVRF(val *BriefVRF) *NullableBriefVRF { + return &NullableBriefVRF{value: val, isSet: true} +} + +func (v NullableBriefVRF) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVRF) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vrf_request.go b/model_brief_vrf_request.go new file mode 100644 index 0000000000..8a757f111c --- /dev/null +++ b/model_brief_vrf_request.go @@ -0,0 +1,271 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVRFRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVRFRequest{} + +// BriefVRFRequest Adds support for custom fields and tags. +type BriefVRFRequest struct { + Name string `json:"name"` + // Unique route distinguisher (as defined in RFC 4364) + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVRFRequest BriefVRFRequest + +// NewBriefVRFRequest instantiates a new BriefVRFRequest 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 NewBriefVRFRequest(name string) *BriefVRFRequest { + this := BriefVRFRequest{} + this.Name = name + return &this +} + +// NewBriefVRFRequestWithDefaults instantiates a new BriefVRFRequest 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 NewBriefVRFRequestWithDefaults() *BriefVRFRequest { + this := BriefVRFRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVRFRequest) 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 *BriefVRFRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVRFRequest) SetName(v string) { + o.Name = v +} + + +// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVRFRequest) GetRd() string { + if o == nil || IsNil(o.Rd.Get()) { + var ret string + return ret + } + return *o.Rd.Get() +} + +// GetRdOk returns a tuple with the Rd 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 *BriefVRFRequest) GetRdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rd.Get(), o.Rd.IsSet() +} + +// HasRd returns a boolean if a field has been set. +func (o *BriefVRFRequest) HasRd() bool { + if o != nil && o.Rd.IsSet() { + return true + } + + return false +} + +// SetRd gets a reference to the given NullableString and assigns it to the Rd field. +func (o *BriefVRFRequest) SetRd(v string) { + o.Rd.Set(&v) +} +// SetRdNil sets the value for Rd to be an explicit nil +func (o *BriefVRFRequest) SetRdNil() { + o.Rd.Set(nil) +} + +// UnsetRd ensures that no value is present for Rd, not even an explicit nil +func (o *BriefVRFRequest) UnsetRd() { + o.Rd.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVRFRequest) 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 *BriefVRFRequest) 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 *BriefVRFRequest) 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 *BriefVRFRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVRFRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVRFRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Rd.IsSet() { + toSerialize["rd"] = o.Rd.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVRFRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefVRFRequest := _BriefVRFRequest{} + + err = json.Unmarshal(data, &varBriefVRFRequest) + + if err != nil { + return err + } + + *o = BriefVRFRequest(varBriefVRFRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "rd") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVRFRequest struct { + value *BriefVRFRequest + isSet bool +} + +func (v NullableBriefVRFRequest) Get() *BriefVRFRequest { + return v.value +} + +func (v *NullableBriefVRFRequest) Set(val *BriefVRFRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVRFRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVRFRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVRFRequest(val *BriefVRFRequest) *NullableBriefVRFRequest { + return &NullableBriefVRFRequest{value: val, isSet: true} +} + +func (v NullableBriefVRFRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVRFRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_wireless_lan_group.go b/model_brief_wireless_lan_group.go new file mode 100644 index 0000000000..dfc06b666b --- /dev/null +++ b/model_brief_wireless_lan_group.go @@ -0,0 +1,403 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefWirelessLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefWirelessLANGroup{} + +// BriefWirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefWirelessLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefWirelessLANGroup BriefWirelessLANGroup + +// NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup 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 NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *BriefWirelessLANGroup { + this := BriefWirelessLANGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.WirelesslanCount = wirelesslanCount + this.Depth = depth + return &this +} + +// NewBriefWirelessLANGroupWithDefaults instantiates a new BriefWirelessLANGroup 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 NewBriefWirelessLANGroupWithDefaults() *BriefWirelessLANGroup { + this := BriefWirelessLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefWirelessLANGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefWirelessLANGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefWirelessLANGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefWirelessLANGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefWirelessLANGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) 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 *BriefWirelessLANGroup) SetDescription(v string) { + o.Description = &v +} + +// GetWirelesslanCount returns the WirelesslanCount field value +func (o *BriefWirelessLANGroup) GetWirelesslanCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.WirelesslanCount +} + +// GetWirelesslanCountOk returns a tuple with the WirelesslanCount field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetWirelesslanCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.WirelesslanCount, true +} + +// SetWirelesslanCount sets field value +func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32) { + o.WirelesslanCount = v +} + + +// GetDepth returns the Depth field value +func (o *BriefWirelessLANGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefWirelessLANGroup) SetDepth(v int32) { + o.Depth = v +} + + +func (o BriefWirelessLANGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefWirelessLANGroup) 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 + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["wirelesslan_count"] = o.WirelesslanCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "wirelesslan_count", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefWirelessLANGroup := _BriefWirelessLANGroup{} + + err = json.Unmarshal(data, &varBriefWirelessLANGroup) + + if err != nil { + return err + } + + *o = BriefWirelessLANGroup(varBriefWirelessLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "wirelesslan_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefWirelessLANGroup struct { + value *BriefWirelessLANGroup + isSet bool +} + +func (v NullableBriefWirelessLANGroup) Get() *BriefWirelessLANGroup { + return v.value +} + +func (v *NullableBriefWirelessLANGroup) Set(val *BriefWirelessLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefWirelessLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefWirelessLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefWirelessLANGroup(val *BriefWirelessLANGroup) *NullableBriefWirelessLANGroup { + return &NullableBriefWirelessLANGroup{value: val, isSet: true} +} + +func (v NullableBriefWirelessLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefWirelessLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_wireless_lan_group_request.go b/model_brief_wireless_lan_group_request.go new file mode 100644 index 0000000000..f66d3b35ed --- /dev/null +++ b/model_brief_wireless_lan_group_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefWirelessLANGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefWirelessLANGroupRequest{} + +// BriefWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefWirelessLANGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefWirelessLANGroupRequest BriefWirelessLANGroupRequest + +// NewBriefWirelessLANGroupRequest instantiates a new BriefWirelessLANGroupRequest 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 NewBriefWirelessLANGroupRequest(name string, slug string) *BriefWirelessLANGroupRequest { + this := BriefWirelessLANGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefWirelessLANGroupRequestWithDefaults instantiates a new BriefWirelessLANGroupRequest 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 NewBriefWirelessLANGroupRequestWithDefaults() *BriefWirelessLANGroupRequest { + this := BriefWirelessLANGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefWirelessLANGroupRequest) 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 *BriefWirelessLANGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefWirelessLANGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *BriefWirelessLANGroupRequest) 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 *BriefWirelessLANGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefWirelessLANGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefWirelessLANGroupRequest) 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 *BriefWirelessLANGroupRequest) 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 *BriefWirelessLANGroupRequest) 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 *BriefWirelessLANGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefWirelessLANGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varBriefWirelessLANGroupRequest := _BriefWirelessLANGroupRequest{} + + err = json.Unmarshal(data, &varBriefWirelessLANGroupRequest) + + if err != nil { + return err + } + + *o = BriefWirelessLANGroupRequest(varBriefWirelessLANGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefWirelessLANGroupRequest struct { + value *BriefWirelessLANGroupRequest + isSet bool +} + +func (v NullableBriefWirelessLANGroupRequest) Get() *BriefWirelessLANGroupRequest { + return v.value +} + +func (v *NullableBriefWirelessLANGroupRequest) Set(val *BriefWirelessLANGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefWirelessLANGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefWirelessLANGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefWirelessLANGroupRequest(val *BriefWirelessLANGroupRequest) *NullableBriefWirelessLANGroupRequest { + return &NullableBriefWirelessLANGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefWirelessLANGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cable.go b/model_cable.go index b9a89b5f0d..fd6301274f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,25 @@ var _ MappedNullable = &Cable{} // Cable Adds support for custom fields and tags. type Cable struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Type NullableCableType `json:"type,omitempty"` + ATerminations []GenericObject `json:"a_terminations,omitempty"` + BTerminations []GenericObject `json:"b_terminations,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +89,7 @@ func (o *Cable) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Cable) GetUrl() string { if o == nil { @@ -98,6 +114,39 @@ func (o *Cable) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Cable) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Cable) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Cable) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Cable) GetDisplay() string { if o == nil { @@ -122,6 +171,187 @@ func (o *Cable) SetDisplay(v string) { o.Display = v } + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetType() CableType { + if o == nil || IsNil(o.Type.Get()) { + var ret CableType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type 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 *Cable) GetTypeOk() (*CableType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *Cable) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableCableType and assigns it to the Type field. +func (o *Cable) SetType(v CableType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *Cable) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *Cable) UnsetType() { + o.Type.Unset() +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *Cable) GetATerminations() []GenericObject { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObject + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetATerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *Cable) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObject and assigns it to the ATerminations field. +func (o *Cable) SetATerminations(v []GenericObject) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *Cable) GetBTerminations() []GenericObject { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObject + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetBTerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *Cable) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObject and assigns it to the BTerminations field. +func (o *Cable) SetBTerminations(v []GenericObject) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cable) GetStatus() CableStatus { + if o == nil || IsNil(o.Status) { + var ret CableStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetStatusOk() (*CableStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cable) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *Cable) SetStatus(v CableStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *Cable) GetTenantOk() (*BriefTenant, 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 *Cable) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cable) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cable) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cable) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *Cable) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -154,6 +384,122 @@ func (o *Cable) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *Cable) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *Cable) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *Cable) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length 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 *Cable) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *Cable) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +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) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *Cable) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLengthUnit() CableLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit 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 *Cable) GetLengthUnitOk() (*CableLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *Cable) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableLengthUnit and assigns it to the LengthUnit field. +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) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *Cable) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cable) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -186,8 +532,188 @@ func (o *Cable) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cable) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cable) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cable) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cable) 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 *Cable) 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 *Cable) 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 *Cable) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cable) 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 *Cable) 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 *Cable) 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 *Cable) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Cable) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Cable) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Cable) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Cable) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Cable) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Cable) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Cable) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Cable) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Cable) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Cable) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o Cable) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -198,13 +724,55 @@ func (o Cable) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -223,20 +791,37 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { "display", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCable := _Cable{} err = json.Unmarshal(data, &varCable) @@ -252,9 +837,23 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -296,3 +895,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 new file mode 100644 index 0000000000..85d84ce9c7 --- /dev/null +++ b/model_cable_length_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CableLengthUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CableLengthUnit{} + +// CableLengthUnit struct for CableLengthUnit +type CableLengthUnit struct { + Value *CableLengthUnitValue `json:"value,omitempty"` + Label *CableLengthUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CableLengthUnit CableLengthUnit + +// NewCableLengthUnit instantiates a new CableLengthUnit 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 NewCableLengthUnit() *CableLengthUnit { + this := CableLengthUnit{} + return &this +} + +// NewCableLengthUnitWithDefaults instantiates a new CableLengthUnit 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 NewCableLengthUnitWithDefaults() *CableLengthUnit { + this := CableLengthUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CableLengthUnit) GetValue() CableLengthUnitValue { + if o == nil || IsNil(o.Value) { + var ret CableLengthUnitValue + 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 *CableLengthUnit) GetValueOk() (*CableLengthUnitValue, 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 *CableLengthUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CableLengthUnitValue and assigns it to the Value field. +func (o *CableLengthUnit) SetValue(v CableLengthUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel { + if o == nil || IsNil(o.Label) { + var ret CableLengthUnitLabel + 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 *CableLengthUnit) GetLabelOk() (*CableLengthUnitLabel, 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 *CableLengthUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CableLengthUnitLabel and assigns it to the Label field. +func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel) { + o.Label = &v +} + +func (o CableLengthUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CableLengthUnit) 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 *CableLengthUnit) UnmarshalJSON(data []byte) (err error) { + varCableLengthUnit := _CableLengthUnit{} + + err = json.Unmarshal(data, &varCableLengthUnit) + + if err != nil { + return err + } + + *o = CableLengthUnit(varCableLengthUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCableLengthUnit struct { + value *CableLengthUnit + isSet bool +} + +func (v NullableCableLengthUnit) Get() *CableLengthUnit { + return v.value +} + +func (v *NullableCableLengthUnit) Set(val *CableLengthUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnit(val *CableLengthUnit) *NullableCableLengthUnit { + return &NullableCableLengthUnit{value: val, isSet: true} +} + +func (v NullableCableLengthUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cable_length_unit_label.go b/model_cable_length_unit_label.go new file mode 100644 index 0000000000..9c9c75f091 --- /dev/null +++ b/model_cable_length_unit_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableLengthUnitLabel the model 'CableLengthUnitLabel' +type CableLengthUnitLabel string + +// List of Cable_length_unit_label +const ( + CABLELENGTHUNITLABEL_KILOMETERS CableLengthUnitLabel = "Kilometers" + CABLELENGTHUNITLABEL_METERS CableLengthUnitLabel = "Meters" + CABLELENGTHUNITLABEL_CENTIMETERS CableLengthUnitLabel = "Centimeters" + CABLELENGTHUNITLABEL_MILES CableLengthUnitLabel = "Miles" + CABLELENGTHUNITLABEL_FEET CableLengthUnitLabel = "Feet" + CABLELENGTHUNITLABEL_INCHES CableLengthUnitLabel = "Inches" +) + +// All allowed values of CableLengthUnitLabel enum +var AllowedCableLengthUnitLabelEnumValues = []CableLengthUnitLabel{ + "Kilometers", + "Meters", + "Centimeters", + "Miles", + "Feet", + "Inches", +} + +func (v *CableLengthUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableLengthUnitLabel(value) + for _, existing := range AllowedCableLengthUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableLengthUnitLabel", value) +} + +// NewCableLengthUnitLabelFromValue returns a pointer to a valid CableLengthUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableLengthUnitLabelFromValue(v string) (*CableLengthUnitLabel, error) { + ev := CableLengthUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableLengthUnitLabel: valid values are %v", v, AllowedCableLengthUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableLengthUnitLabel) IsValid() bool { + for _, existing := range AllowedCableLengthUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_length_unit_label value +func (v CableLengthUnitLabel) Ptr() *CableLengthUnitLabel { + return &v +} + +type NullableCableLengthUnitLabel struct { + value *CableLengthUnitLabel + isSet bool +} + +func (v NullableCableLengthUnitLabel) Get() *CableLengthUnitLabel { + return v.value +} + +func (v *NullableCableLengthUnitLabel) Set(val *CableLengthUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnitLabel(val *CableLengthUnitLabel) *NullableCableLengthUnitLabel { + return &NullableCableLengthUnitLabel{value: val, isSet: true} +} + +func (v NullableCableLengthUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cable_length_unit_value.go b/model_cable_length_unit_value.go new file mode 100644 index 0000000000..a0aa970eb6 --- /dev/null +++ b/model_cable_length_unit_value.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableLengthUnitValue * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches +type CableLengthUnitValue string + +// List of Cable_length_unit_value +const ( + CABLELENGTHUNITVALUE_KM CableLengthUnitValue = "km" + CABLELENGTHUNITVALUE_M CableLengthUnitValue = "m" + CABLELENGTHUNITVALUE_CM CableLengthUnitValue = "cm" + CABLELENGTHUNITVALUE_MI CableLengthUnitValue = "mi" + CABLELENGTHUNITVALUE_FT CableLengthUnitValue = "ft" + CABLELENGTHUNITVALUE_IN CableLengthUnitValue = "in" + CABLELENGTHUNITVALUE_EMPTY CableLengthUnitValue = "" +) + +// All allowed values of CableLengthUnitValue enum +var AllowedCableLengthUnitValueEnumValues = []CableLengthUnitValue{ + "km", + "m", + "cm", + "mi", + "ft", + "in", + "", +} + +func (v *CableLengthUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableLengthUnitValue(value) + for _, existing := range AllowedCableLengthUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableLengthUnitValue", value) +} + +// NewCableLengthUnitValueFromValue returns a pointer to a valid CableLengthUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableLengthUnitValueFromValue(v string) (*CableLengthUnitValue, error) { + ev := CableLengthUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableLengthUnitValue: valid values are %v", v, AllowedCableLengthUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableLengthUnitValue) IsValid() bool { + for _, existing := range AllowedCableLengthUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_length_unit_value value +func (v CableLengthUnitValue) Ptr() *CableLengthUnitValue { + return &v +} + +type NullableCableLengthUnitValue struct { + value *CableLengthUnitValue + isSet bool +} + +func (v NullableCableLengthUnitValue) Get() *CableLengthUnitValue { + return v.value +} + +func (v *NullableCableLengthUnitValue) Set(val *CableLengthUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnitValue(val *CableLengthUnitValue) *NullableCableLengthUnitValue { + return &NullableCableLengthUnitValue{value: val, isSet: true} +} + +func (v NullableCableLengthUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnitValue) 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 0b4bad8c84..ec743b38f5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,19 @@ var _ MappedNullable = &CableRequest{} // CableRequest Adds support for custom fields and tags. type CableRequest struct { - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Type NullableCableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableRequestLengthUnit `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{} } @@ -43,6 +54,186 @@ func NewCableRequestWithDefaults() *CableRequest { return &this } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetType() CableType { + if o == nil || IsNil(o.Type.Get()) { + var ret CableType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type 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 *CableRequest) GetTypeOk() (*CableType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *CableRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullableCableType and assigns it to the Type field. +func (o *CableRequest) SetType(v CableType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *CableRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *CableRequest) UnsetType() { + o.Type.Unset() +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *CableRequest) GetATerminations() []GenericObjectRequest { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObjectRequest + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetATerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *CableRequest) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObjectRequest and assigns it to the ATerminations field. +func (o *CableRequest) SetATerminations(v []GenericObjectRequest) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *CableRequest) GetBTerminations() []GenericObjectRequest { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObjectRequest + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetBTerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *CableRequest) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObjectRequest and assigns it to the BTerminations field. +func (o *CableRequest) SetBTerminations(v []GenericObjectRequest) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CableRequest) GetStatus() CableStatusValue { + if o == nil || IsNil(o.Status) { + var ret CableStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CableRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *CableRequest) SetStatus(v CableStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *CableRequest) GetTenantOk() (*BriefTenantRequest, 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 *CableRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CableRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CableRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CableRequest) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *CableRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -75,6 +266,122 @@ func (o *CableRequest) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *CableRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *CableRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *CableRequest) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length 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 *CableRequest) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *CableRequest) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +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) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *CableRequest) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableRequestLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit 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 *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *CableRequest) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit) { + o.LengthUnit.Set(&v) +} +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *CableRequest) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *CableRequest) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CableRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -107,8 +414,104 @@ func (o *CableRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CableRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CableRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CableRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CableRequest) 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 *CableRequest) 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 *CableRequest) 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 *CableRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CableRequest) 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 *CableRequest) 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 *CableRequest) 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 *CableRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o CableRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -117,12 +520,45 @@ func (o CableRequest) MarshalJSON() ([]byte, error) { func (o CableRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -145,8 +581,19 @@ func (o *CableRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -188,3 +635,5 @@ func (v *NullableCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go new file mode 100644 index 0000000000..2916c73fdc --- /dev/null +++ b/model_cable_request_length_unit.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableRequestLengthUnit * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches +type CableRequestLengthUnit string + +// List of CableRequest_length_unit +const ( + CABLEREQUESTLENGTHUNIT_KM CableRequestLengthUnit = "km" + CABLEREQUESTLENGTHUNIT_M CableRequestLengthUnit = "m" + CABLEREQUESTLENGTHUNIT_CM CableRequestLengthUnit = "cm" + CABLEREQUESTLENGTHUNIT_MI CableRequestLengthUnit = "mi" + CABLEREQUESTLENGTHUNIT_FT CableRequestLengthUnit = "ft" + CABLEREQUESTLENGTHUNIT_IN CableRequestLengthUnit = "in" + CABLEREQUESTLENGTHUNIT_EMPTY CableRequestLengthUnit = "" +) + +// All allowed values of CableRequestLengthUnit enum +var AllowedCableRequestLengthUnitEnumValues = []CableRequestLengthUnit{ + "km", + "m", + "cm", + "mi", + "ft", + "in", + "", +} + +func (v *CableRequestLengthUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableRequestLengthUnit(value) + for _, existing := range AllowedCableRequestLengthUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableRequestLengthUnit", value) +} + +// NewCableRequestLengthUnitFromValue returns a pointer to a valid CableRequestLengthUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableRequestLengthUnitFromValue(v string) (*CableRequestLengthUnit, error) { + ev := CableRequestLengthUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableRequestLengthUnit: valid values are %v", v, AllowedCableRequestLengthUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableRequestLengthUnit) IsValid() bool { + for _, existing := range AllowedCableRequestLengthUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CableRequest_length_unit value +func (v CableRequestLengthUnit) Ptr() *CableRequestLengthUnit { + return &v +} + +type NullableCableRequestLengthUnit struct { + value *CableRequestLengthUnit + isSet bool +} + +func (v NullableCableRequestLengthUnit) Get() *CableRequestLengthUnit { + return v.value +} + +func (v *NullableCableRequestLengthUnit) Set(val *CableRequestLengthUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCableRequestLengthUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCableRequestLengthUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableRequestLengthUnit(val *CableRequestLengthUnit) *NullableCableRequestLengthUnit { + return &NullableCableRequestLengthUnit{value: val, isSet: true} +} + +func (v NullableCableRequestLengthUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableRequestLengthUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_job_status.go b/model_cable_status.go similarity index 55% rename from model_job_status.go rename to model_cable_status.go index d625ea334a..834bcc8103 100644 --- a/model_job_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,39 +14,39 @@ import ( "encoding/json" ) -// checks if the JobStatus type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &JobStatus{} +// checks if the CableStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CableStatus{} -// JobStatus struct for JobStatus -type JobStatus struct { - Value *JobStatusValue `json:"value,omitempty"` - Label *JobStatusLabel `json:"label,omitempty"` +// CableStatus struct for CableStatus +type CableStatus struct { + Value *CableStatusValue `json:"value,omitempty"` + Label *CableStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } -type _JobStatus JobStatus +type _CableStatus CableStatus -// NewJobStatus instantiates a new JobStatus object +// NewCableStatus instantiates a new CableStatus 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 NewJobStatus() *JobStatus { - this := JobStatus{} +func NewCableStatus() *CableStatus { + this := CableStatus{} return &this } -// NewJobStatusWithDefaults instantiates a new JobStatus object +// NewCableStatusWithDefaults instantiates a new CableStatus 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 NewJobStatusWithDefaults() *JobStatus { - this := JobStatus{} +func NewCableStatusWithDefaults() *CableStatus { + this := CableStatus{} return &this } // GetValue returns the Value field value if set, zero value otherwise. -func (o *JobStatus) GetValue() JobStatusValue { +func (o *CableStatus) GetValue() CableStatusValue { if o == nil || IsNil(o.Value) { - var ret JobStatusValue + var ret CableStatusValue return ret } return *o.Value @@ -54,7 +54,7 @@ func (o *JobStatus) GetValue() JobStatusValue { // 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 *JobStatus) GetValueOk() (*JobStatusValue, bool) { +func (o *CableStatus) GetValueOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Value) { return nil, false } @@ -62,7 +62,7 @@ func (o *JobStatus) GetValueOk() (*JobStatusValue, bool) { } // HasValue returns a boolean if a field has been set. -func (o *JobStatus) HasValue() bool { +func (o *CableStatus) HasValue() bool { if o != nil && !IsNil(o.Value) { return true } @@ -70,15 +70,15 @@ func (o *JobStatus) HasValue() bool { return false } -// SetValue gets a reference to the given JobStatusValue and assigns it to the Value field. -func (o *JobStatus) SetValue(v JobStatusValue) { +// SetValue gets a reference to the given CableStatusValue and assigns it to the Value field. +func (o *CableStatus) SetValue(v CableStatusValue) { o.Value = &v } // GetLabel returns the Label field value if set, zero value otherwise. -func (o *JobStatus) GetLabel() JobStatusLabel { +func (o *CableStatus) GetLabel() CableStatusLabel { if o == nil || IsNil(o.Label) { - var ret JobStatusLabel + var ret CableStatusLabel return ret } return *o.Label @@ -86,7 +86,7 @@ func (o *JobStatus) GetLabel() JobStatusLabel { // 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 *JobStatus) GetLabelOk() (*JobStatusLabel, bool) { +func (o *CableStatus) GetLabelOk() (*CableStatusLabel, bool) { if o == nil || IsNil(o.Label) { return nil, false } @@ -94,7 +94,7 @@ func (o *JobStatus) GetLabelOk() (*JobStatusLabel, bool) { } // HasLabel returns a boolean if a field has been set. -func (o *JobStatus) HasLabel() bool { +func (o *CableStatus) HasLabel() bool { if o != nil && !IsNil(o.Label) { return true } @@ -102,20 +102,20 @@ func (o *JobStatus) HasLabel() bool { return false } -// SetLabel gets a reference to the given JobStatusLabel and assigns it to the Label field. -func (o *JobStatus) SetLabel(v JobStatusLabel) { +// SetLabel gets a reference to the given CableStatusLabel and assigns it to the Label field. +func (o *CableStatus) SetLabel(v CableStatusLabel) { o.Label = &v } -func (o JobStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o CableStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o JobStatus) ToMap() (map[string]interface{}, error) { +func (o CableStatus) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Value) { toSerialize["value"] = o.Value @@ -131,16 +131,16 @@ func (o JobStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *JobStatus) UnmarshalJSON(data []byte) (err error) { - varJobStatus := _JobStatus{} +func (o *CableStatus) UnmarshalJSON(data []byte) (err error) { + varCableStatus := _CableStatus{} - err = json.Unmarshal(data, &varJobStatus) + err = json.Unmarshal(data, &varCableStatus) if err != nil { return err } - *o = JobStatus(varJobStatus) + *o = CableStatus(varCableStatus) additionalProperties := make(map[string]interface{}) @@ -153,38 +153,40 @@ func (o *JobStatus) UnmarshalJSON(data []byte) (err error) { return err } -type NullableJobStatus struct { - value *JobStatus +type NullableCableStatus struct { + value *CableStatus isSet bool } -func (v NullableJobStatus) Get() *JobStatus { +func (v NullableCableStatus) Get() *CableStatus { return v.value } -func (v *NullableJobStatus) Set(val *JobStatus) { +func (v *NullableCableStatus) Set(val *CableStatus) { v.value = val v.isSet = true } -func (v NullableJobStatus) IsSet() bool { +func (v NullableCableStatus) IsSet() bool { return v.isSet } -func (v *NullableJobStatus) Unset() { +func (v *NullableCableStatus) Unset() { v.value = nil v.isSet = false } -func NewNullableJobStatus(val *JobStatus) *NullableJobStatus { - return &NullableJobStatus{value: val, isSet: true} +func NewNullableCableStatus(val *CableStatus) *NullableCableStatus { + return &NullableCableStatus{value: val, isSet: true} } -func (v NullableJobStatus) MarshalJSON() ([]byte, error) { +func (v NullableCableStatus) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableJobStatus) UnmarshalJSON(src []byte) error { +func (v *NullableCableStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_status_label.go b/model_cable_status_label.go new file mode 100644 index 0000000000..b01cc359e0 --- /dev/null +++ b/model_cable_status_label.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableStatusLabel the model 'CableStatusLabel' +type CableStatusLabel string + +// List of Cable_status_label +const ( + CABLESTATUSLABEL_CONNECTED CableStatusLabel = "Connected" + CABLESTATUSLABEL_PLANNED CableStatusLabel = "Planned" + CABLESTATUSLABEL_DECOMMISSIONING CableStatusLabel = "Decommissioning" +) + +// All allowed values of CableStatusLabel enum +var AllowedCableStatusLabelEnumValues = []CableStatusLabel{ + "Connected", + "Planned", + "Decommissioning", +} + +func (v *CableStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableStatusLabel(value) + for _, existing := range AllowedCableStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableStatusLabel", value) +} + +// NewCableStatusLabelFromValue returns a pointer to a valid CableStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableStatusLabelFromValue(v string) (*CableStatusLabel, error) { + ev := CableStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableStatusLabel: valid values are %v", v, AllowedCableStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableStatusLabel) IsValid() bool { + for _, existing := range AllowedCableStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_status_label value +func (v CableStatusLabel) Ptr() *CableStatusLabel { + return &v +} + +type NullableCableStatusLabel struct { + value *CableStatusLabel + isSet bool +} + +func (v NullableCableStatusLabel) Get() *CableStatusLabel { + return v.value +} + +func (v *NullableCableStatusLabel) Set(val *CableStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatusLabel(val *CableStatusLabel) *NullableCableStatusLabel { + return &NullableCableStatusLabel{value: val, isSet: true} +} + +func (v NullableCableStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cable_status_value.go b/model_cable_status_value.go new file mode 100644 index 0000000000..e6f76b25a8 --- /dev/null +++ b/model_cable_status_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableStatusValue * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +type CableStatusValue string + +// List of Cable_status_value +const ( + CABLESTATUSVALUE_CONNECTED CableStatusValue = "connected" + CABLESTATUSVALUE_PLANNED CableStatusValue = "planned" + CABLESTATUSVALUE_DECOMMISSIONING CableStatusValue = "decommissioning" +) + +// All allowed values of CableStatusValue enum +var AllowedCableStatusValueEnumValues = []CableStatusValue{ + "connected", + "planned", + "decommissioning", +} + +func (v *CableStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableStatusValue(value) + for _, existing := range AllowedCableStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableStatusValue", value) +} + +// NewCableStatusValueFromValue returns a pointer to a valid CableStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableStatusValueFromValue(v string) (*CableStatusValue, error) { + ev := CableStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableStatusValue: valid values are %v", v, AllowedCableStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableStatusValue) IsValid() bool { + for _, existing := range AllowedCableStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_status_value value +func (v CableStatusValue) Ptr() *CableStatusValue { + return &v +} + +type NullableCableStatusValue struct { + value *CableStatusValue + isSet bool +} + +func (v NullableCableStatusValue) Get() *CableStatusValue { + return v.value +} + +func (v *NullableCableStatusValue) Set(val *CableStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatusValue(val *CableStatusValue) *NullableCableStatusValue { + return &NullableCableStatusValue{value: val, isSet: true} +} + +func (v NullableCableStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatusValue) 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 3e2427ac6e..00fdbfb39c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the CableTermination type satisfies the MappedNullable interface at compile time @@ -21,16 +21,16 @@ var _ MappedNullable = &CableTermination{} // CableTermination Adds support for custom fields and tags. type CableTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Cable int32 `json:"cable"` - CableEnd End1 `json:"cable_end"` - TerminationType string `json:"termination_type"` - TerminationId int64 `json:"termination_id"` - Termination interface{} `json:"termination"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Cable int32 `json:"cable"` + CableEnd End1 `json:"cable_end"` + TerminationType string `json:"termination_type"` + TerminationId int64 `json:"termination_id"` + Termination interface{} `json:"termination,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _CableTermination CableTermination // 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 NewCableTermination(id int32, url string, display string, cable int32, cableEnd End1, terminationType string, terminationId int64, termination interface{}, created NullableTime, lastUpdated NullableTime) *CableTermination { +func NewCableTermination(id int32, url string, display string, cable int32, cableEnd End1, terminationType string, terminationId int64) *CableTermination { this := CableTermination{} this.Id = id this.Url = url @@ -49,9 +49,6 @@ func NewCableTermination(id int32, url string, display string, cable int32, cabl this.CableEnd = cableEnd this.TerminationType = terminationType this.TerminationId = terminationId - this.Termination = termination - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -87,6 +84,7 @@ func (o *CableTermination) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *CableTermination) GetUrl() string { if o == nil { @@ -111,6 +109,7 @@ func (o *CableTermination) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *CableTermination) GetDisplay() string { if o == nil { @@ -135,6 +134,7 @@ func (o *CableTermination) SetDisplay(v string) { o.Display = v } + // GetCable returns the Cable field value func (o *CableTermination) GetCable() int32 { if o == nil { @@ -159,6 +159,7 @@ func (o *CableTermination) SetCable(v int32) { o.Cable = v } + // GetCableEnd returns the CableEnd field value func (o *CableTermination) GetCableEnd() End1 { if o == nil { @@ -183,6 +184,7 @@ func (o *CableTermination) SetCableEnd(v End1) { o.CableEnd = v } + // GetTerminationType returns the TerminationType field value func (o *CableTermination) GetTerminationType() string { if o == nil { @@ -207,6 +209,7 @@ func (o *CableTermination) SetTerminationType(v string) { o.TerminationType = v } + // GetTerminationId returns the TerminationId field value func (o *CableTermination) GetTerminationId() int64 { if o == nil { @@ -231,18 +234,17 @@ func (o *CableTermination) SetTerminationId(v int64) { o.TerminationId = v } -// GetTermination returns the Termination field value -// If the value is explicit nil, the zero value for interface{} will be returned + +// GetTermination returns the Termination field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CableTermination) GetTermination() interface{} { if o == nil { var ret interface{} return ret } - return o.Termination } -// GetTerminationOk returns a tuple with the Termination field value +// GetTerminationOk returns a tuple with the Termination 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 *CableTermination) GetTerminationOk() (*interface{}, bool) { @@ -252,23 +254,30 @@ func (o *CableTermination) GetTerminationOk() (*interface{}, bool) { return &o.Termination, true } -// SetTermination sets field value +// HasTermination returns a boolean if a field has been set. +func (o *CableTermination) HasTermination() bool { + if o != nil && !IsNil(o.Termination) { + return true + } + + return false +} + +// SetTermination gets a reference to the given interface{} and assigns it to the Termination field. func (o *CableTermination) SetTermination(v interface{}) { o.Termination = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CableTermination) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *CableTermination) GetCreatedOk() (*time.Time, bool) { @@ -278,23 +287,39 @@ func (o *CableTermination) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *CableTermination) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *CableTermination) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CableTermination) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CableTermination) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CableTermination) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *CableTermination) GetLastUpdatedOk() (*time.Time, bool) { @@ -304,13 +329,31 @@ func (o *CableTermination) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *CableTermination) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *CableTermination) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CableTermination) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CableTermination) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o CableTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -329,8 +372,12 @@ func (o CableTermination) ToMap() (map[string]interface{}, error) { if o.Termination != nil { toSerialize["termination"] = o.Termination } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -351,25 +398,39 @@ func (o *CableTermination) UnmarshalJSON(data []byte) (err error) { "cable_end", "termination_type", "termination_id", - "termination", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCableTermination := _CableTermination{} err = json.Unmarshal(data, &varCableTermination) @@ -434,3 +495,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 fb17abb8af..36a161a385 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &CableTerminationRequest{} // CableTerminationRequest Adds support for custom fields and tags. type CableTerminationRequest struct { - Cable int32 `json:"cable"` - CableEnd End1 `json:"cable_end"` - TerminationType string `json:"termination_type"` - TerminationId int64 `json:"termination_id"` + Cable int32 `json:"cable"` + CableEnd End1 `json:"cable_end"` + TerminationType string `json:"termination_type"` + TerminationId int64 `json:"termination_id"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ func (o *CableTerminationRequest) SetCable(v int32) { o.Cable = v } + // GetCableEnd returns the CableEnd field value func (o *CableTerminationRequest) GetCableEnd() End1 { if o == nil { @@ -98,6 +99,7 @@ func (o *CableTerminationRequest) SetCableEnd(v End1) { o.CableEnd = v } + // GetTerminationType returns the TerminationType field value func (o *CableTerminationRequest) GetTerminationType() string { if o == nil { @@ -122,6 +124,7 @@ func (o *CableTerminationRequest) SetTerminationType(v string) { o.TerminationType = v } + // GetTerminationId returns the TerminationId field value func (o *CableTerminationRequest) GetTerminationId() int64 { if o == nil { @@ -146,8 +149,9 @@ func (o *CableTerminationRequest) SetTerminationId(v int64) { o.TerminationId = v } + func (o CableTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -179,20 +183,37 @@ func (o *CableTerminationRequest) UnmarshalJSON(data []byte) (err error) { "termination_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCableTerminationRequest := _CableTerminationRequest{} err = json.Unmarshal(data, &varCableTerminationRequest) @@ -251,3 +272,5 @@ func (v *NullableCableTerminationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_type.go b/model_cable_type.go new file mode 100644 index 0000000000..6182cda1c4 --- /dev/null +++ b/model_cable_type.go @@ -0,0 +1,157 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableType * `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) * `usb` - USB * `power` - Power +type CableType string + +// List of Cable_type +const ( + CABLETYPE_CAT3 CableType = "cat3" + CABLETYPE_CAT5 CableType = "cat5" + CABLETYPE_CAT5E CableType = "cat5e" + CABLETYPE_CAT6 CableType = "cat6" + CABLETYPE_CAT6A CableType = "cat6a" + CABLETYPE_CAT7 CableType = "cat7" + CABLETYPE_CAT7A CableType = "cat7a" + CABLETYPE_CAT8 CableType = "cat8" + CABLETYPE_DAC_ACTIVE CableType = "dac-active" + CABLETYPE_DAC_PASSIVE CableType = "dac-passive" + CABLETYPE_MRJ21_TRUNK CableType = "mrj21-trunk" + CABLETYPE_COAXIAL CableType = "coaxial" + CABLETYPE_MMF CableType = "mmf" + CABLETYPE_MMF_OM1 CableType = "mmf-om1" + CABLETYPE_MMF_OM2 CableType = "mmf-om2" + CABLETYPE_MMF_OM3 CableType = "mmf-om3" + CABLETYPE_MMF_OM4 CableType = "mmf-om4" + CABLETYPE_MMF_OM5 CableType = "mmf-om5" + CABLETYPE_SMF CableType = "smf" + CABLETYPE_SMF_OS1 CableType = "smf-os1" + CABLETYPE_SMF_OS2 CableType = "smf-os2" + CABLETYPE_AOC CableType = "aoc" + CABLETYPE_USB CableType = "usb" + CABLETYPE_POWER CableType = "power" + CABLETYPE_EMPTY CableType = "" +) + +// All allowed values of CableType enum +var AllowedCableTypeEnumValues = []CableType{ + "cat3", + "cat5", + "cat5e", + "cat6", + "cat6a", + "cat7", + "cat7a", + "cat8", + "dac-active", + "dac-passive", + "mrj21-trunk", + "coaxial", + "mmf", + "mmf-om1", + "mmf-om2", + "mmf-om3", + "mmf-om4", + "mmf-om5", + "smf", + "smf-os1", + "smf-os2", + "aoc", + "usb", + "power", + "", +} + +func (v *CableType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableType(value) + for _, existing := range AllowedCableTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableType", value) +} + +// NewCableTypeFromValue returns a pointer to a valid CableType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableTypeFromValue(v string) (*CableType, error) { + ev := CableType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableType: valid values are %v", v, AllowedCableTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableType) IsValid() bool { + for _, existing := range AllowedCableTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_type value +func (v CableType) Ptr() *CableType { + return &v +} + +type NullableCableType struct { + value *CableType + isSet bool +} + +func (v NullableCableType) Get() *CableType { + return v.value +} + +func (v *NullableCableType) Set(val *CableType) { + v.value = val + v.isSet = true +} + +func (v NullableCableType) IsSet() bool { + return v.isSet +} + +func (v *NullableCableType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableType(val *CableType) *NullableCableType { + return &NullableCableType{value: val, isSet: true} +} + +func (v NullableCableType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuit.go b/model_circuit.go index bd64655eb7..d41b406872 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,32 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"` + Type BriefCircuitType `json:"type"` + Status *CircuitStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `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"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitDistanceUnit `json:"distance_unit,omitempty"` + TerminationA NullableCircuitCircuitTermination `json:"termination_a,omitempty"` + TerminationZ NullableCircuitCircuitTermination `json:"termination_z,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializer `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,12 +56,14 @@ type _Circuit Circuit // 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 NewCircuit(id int32, url string, display string, cid string) *Circuit { +func NewCircuit(id int32, url string, display string, cid string, provider BriefProvider, type_ BriefCircuitType) *Circuit { this := Circuit{} this.Id = id this.Url = url this.Display = display this.Cid = cid + this.Provider = provider + this.Type = type_ return &this } @@ -76,6 +99,7 @@ func (o *Circuit) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Circuit) GetUrl() string { if o == nil { @@ -100,6 +124,39 @@ func (o *Circuit) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Circuit) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Circuit) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Circuit) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Circuit) GetDisplay() string { if o == nil { @@ -124,6 +181,7 @@ func (o *Circuit) SetDisplay(v string) { o.Display = v } + // GetCid returns the Cid field value func (o *Circuit) GetCid() string { if o == nil { @@ -148,6 +206,299 @@ func (o *Circuit) SetCid(v string) { o.Cid = v } + +// GetProvider returns the Provider field value +func (o *Circuit) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *Circuit) SetProvider(v BriefProvider) { + o.Provider = v +} + + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetProviderAccount() BriefProviderAccount { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccount + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount 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 *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *Circuit) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccount and assigns it to the ProviderAccount field. +func (o *Circuit) SetProviderAccount(v BriefProviderAccount) { + o.ProviderAccount.Set(&v) +} +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *Circuit) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *Circuit) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *Circuit) GetType() BriefCircuitType { + if o == nil { + var ret BriefCircuitType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Circuit) SetType(v BriefCircuitType) { + o.Type = v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Circuit) GetStatus() CircuitStatus { + if o == nil || IsNil(o.Status) { + var ret CircuitStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetStatusOk() (*CircuitStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Circuit) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatus and assigns it to the Status field. +func (o *Circuit) SetStatus(v CircuitStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *Circuit) GetTenantOk() (*BriefTenant, 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 *Circuit) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Circuit) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Circuit) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Circuit) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate 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 *Circuit) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *Circuit) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +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) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *Circuit) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate 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 *Circuit) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *Circuit) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +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) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *Circuit) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate 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 *Circuit) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *Circuit) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +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) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *Circuit) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Circuit) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,8 +531,388 @@ func (o *Circuit) SetDescription(v string) { o.Description = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *Circuit) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *Circuit) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *Circuit) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *Circuit) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *Circuit) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetDistanceUnit() CircuitDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *Circuit) GetDistanceUnitOk() (*CircuitDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *Circuit) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitDistanceUnit and assigns it to the DistanceUnit field. +func (o *Circuit) SetDistanceUnit(v CircuitDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *Circuit) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *Circuit) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + +// GetTerminationA returns the TerminationA field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTerminationA() CircuitCircuitTermination { + if o == nil || IsNil(o.TerminationA.Get()) { + var ret CircuitCircuitTermination + return ret + } + return *o.TerminationA.Get() +} + +// GetTerminationAOk returns a tuple with the TerminationA 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 *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationA.Get(), o.TerminationA.IsSet() +} + +// HasTerminationA returns a boolean if a field has been set. +func (o *Circuit) HasTerminationA() bool { + if o != nil && o.TerminationA.IsSet() { + return true + } + + return false +} + +// SetTerminationA gets a reference to the given NullableCircuitCircuitTermination and assigns it to the TerminationA field. +func (o *Circuit) SetTerminationA(v CircuitCircuitTermination) { + o.TerminationA.Set(&v) +} +// SetTerminationANil sets the value for TerminationA to be an explicit nil +func (o *Circuit) SetTerminationANil() { + o.TerminationA.Set(nil) +} + +// UnsetTerminationA ensures that no value is present for TerminationA, not even an explicit nil +func (o *Circuit) UnsetTerminationA() { + o.TerminationA.Unset() +} + +// GetTerminationZ returns the TerminationZ field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTerminationZ() CircuitCircuitTermination { + if o == nil || IsNil(o.TerminationZ.Get()) { + var ret CircuitCircuitTermination + return ret + } + return *o.TerminationZ.Get() +} + +// GetTerminationZOk returns a tuple with the TerminationZ 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 *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationZ.Get(), o.TerminationZ.IsSet() +} + +// HasTerminationZ returns a boolean if a field has been set. +func (o *Circuit) HasTerminationZ() bool { + if o != nil && o.TerminationZ.IsSet() { + return true + } + + return false +} + +// SetTerminationZ gets a reference to the given NullableCircuitCircuitTermination and assigns it to the TerminationZ field. +func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination) { + o.TerminationZ.Set(&v) +} +// SetTerminationZNil sets the value for TerminationZ to be an explicit nil +func (o *Circuit) SetTerminationZNil() { + o.TerminationZ.Set(nil) +} + +// UnsetTerminationZ ensures that no value is present for TerminationZ, not even an explicit nil +func (o *Circuit) UnsetTerminationZ() { + o.TerminationZ.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Circuit) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Circuit) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Circuit) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Circuit) 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 *Circuit) 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 *Circuit) 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 *Circuit) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Circuit) 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 *Circuit) 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 *Circuit) 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 *Circuit) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Circuit) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Circuit) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Circuit) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Circuit) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Circuit) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Circuit) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Circuit) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Circuit) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Circuit) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Circuit) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializer + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializer, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *Circuit) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializer and assigns it to the Assignments field. +func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer) { + o.Assignments = v +} + func (o Circuit) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -192,11 +923,64 @@ func (o Circuit) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } + if o.TerminationA.IsSet() { + toSerialize["termination_a"] = o.TerminationA.Get() + } + if o.TerminationZ.IsSet() { + toSerialize["termination_z"] = o.TerminationZ.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,22 +998,41 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { "url", "display", "cid", + "provider", + "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCircuit := _Circuit{} err = json.Unmarshal(data, &varCircuit) @@ -245,9 +1048,28 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") + delete(additionalProperties, "termination_a") + delete(additionalProperties, "termination_z") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } @@ -289,3 +1111,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 new file mode 100644 index 0000000000..5a769fa936 --- /dev/null +++ b/model_circuit_circuit_termination.go @@ -0,0 +1,586 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitCircuitTermination type satisfies the MappedNullable interface at compile time +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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + TerminationType NullableString `json:"termination_type,omitempty"` + TerminationId NullableInt32 `json:"termination_id,omitempty"` + Termination interface{} `json:"termination,omitempty"` + // 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"` + AdditionalProperties map[string]interface{} +} + +type _CircuitCircuitTermination CircuitCircuitTermination + +// NewCircuitCircuitTermination instantiates a new CircuitCircuitTermination 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 NewCircuitCircuitTermination(id int32, url string, display string) *CircuitCircuitTermination { + this := CircuitCircuitTermination{} + this.Id = id + this.Url = url + this.Display = display + return &this +} + +// NewCircuitCircuitTerminationWithDefaults instantiates a new CircuitCircuitTermination 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 NewCircuitCircuitTerminationWithDefaults() *CircuitCircuitTermination { + this := CircuitCircuitTermination{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitCircuitTermination) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitCircuitTermination) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CircuitCircuitTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CircuitCircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitCircuitTermination) SetDisplay(v string) { + o.Display = v +} + + +// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetTerminationType() string { + if o == nil || IsNil(o.TerminationType.Get()) { + var ret string + return ret + } + return *o.TerminationType.Get() +} + +// GetTerminationTypeOk returns a tuple with the TerminationType 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 *CircuitCircuitTermination) GetTerminationTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationType.Get(), o.TerminationType.IsSet() +} + +// HasTerminationType returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasTerminationType() bool { + if o != nil && o.TerminationType.IsSet() { + return true + } + + return false +} + +// SetTerminationType gets a reference to the given NullableString and assigns it to the TerminationType field. +func (o *CircuitCircuitTermination) SetTerminationType(v string) { + o.TerminationType.Set(&v) +} +// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil +func (o *CircuitCircuitTermination) SetTerminationTypeNil() { + o.TerminationType.Set(nil) +} + +// UnsetTerminationType ensures that no value is present for TerminationType, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetTerminationType() { + o.TerminationType.Unset() +} + +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetTerminationId() int32 { + if o == nil || IsNil(o.TerminationId.Get()) { + var ret int32 + return ret + } + return *o.TerminationId.Get() +} + +// GetTerminationIdOk returns a tuple with the TerminationId 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 *CircuitCircuitTermination) GetTerminationIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TerminationId.Get(), o.TerminationId.IsSet() +} + +// HasTerminationId returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { + return true + } + + return false +} + +// SetTerminationId gets a reference to the given NullableInt32 and assigns it to the TerminationId field. +func (o *CircuitCircuitTermination) SetTerminationId(v int32) { + o.TerminationId.Set(&v) +} +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *CircuitCircuitTermination) SetTerminationIdNil() { + o.TerminationId.Set(nil) +} + +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetTerminationId() { + o.TerminationId.Unset() +} + +// GetTermination returns the Termination field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetTermination() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Termination +} + +// GetTerminationOk returns a tuple with the Termination 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 *CircuitCircuitTermination) GetTerminationOk() (*interface{}, bool) { + if o == nil || IsNil(o.Termination) { + return nil, false + } + return &o.Termination, true +} + +// HasTermination returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasTermination() bool { + if o != nil && !IsNil(o.Termination) { + return true + } + + return false +} + +// SetTermination gets a reference to the given interface{} and assigns it to the Termination field. +func (o *CircuitCircuitTermination) SetTermination(v interface{}) { + o.Termination = v +} + +// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetPortSpeed() int32 { + if o == nil || IsNil(o.PortSpeed.Get()) { + var ret int32 + return ret + } + return *o.PortSpeed.Get() +} + +// GetPortSpeedOk returns a tuple with the PortSpeed 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 *CircuitCircuitTermination) GetPortSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PortSpeed.Get(), o.PortSpeed.IsSet() +} + +// HasPortSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasPortSpeed() bool { + if o != nil && o.PortSpeed.IsSet() { + return true + } + + return false +} + +// SetPortSpeed gets a reference to the given NullableInt32 and assigns it to the PortSpeed field. +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) +} + +// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetPortSpeed() { + o.PortSpeed.Unset() +} + +// GetUpstreamSpeed returns the UpstreamSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetUpstreamSpeed() int32 { + if o == nil || IsNil(o.UpstreamSpeed.Get()) { + var ret int32 + return ret + } + return *o.UpstreamSpeed.Get() +} + +// GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed 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 *CircuitCircuitTermination) GetUpstreamSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.UpstreamSpeed.Get(), o.UpstreamSpeed.IsSet() +} + +// HasUpstreamSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool { + if o != nil && o.UpstreamSpeed.IsSet() { + return true + } + + return false +} + +// SetUpstreamSpeed gets a reference to the given NullableInt32 and assigns it to the UpstreamSpeed field. +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) +} + +// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetUpstreamSpeed() { + o.UpstreamSpeed.Unset() +} + +// GetXconnectId returns the XconnectId field value if set, zero value otherwise. +func (o *CircuitCircuitTermination) GetXconnectId() string { + if o == nil || IsNil(o.XconnectId) { + var ret string + return ret + } + return *o.XconnectId +} + +// GetXconnectIdOk returns a tuple with the XconnectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetXconnectIdOk() (*string, bool) { + if o == nil || IsNil(o.XconnectId) { + return nil, false + } + return o.XconnectId, true +} + +// HasXconnectId returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasXconnectId() bool { + if o != nil && !IsNil(o.XconnectId) { + return true + } + + return false +} + +// SetXconnectId gets a reference to the given string and assigns it to the XconnectId field. +func (o *CircuitCircuitTermination) SetXconnectId(v string) { + o.XconnectId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitCircuitTermination) 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 *CircuitCircuitTermination) 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 *CircuitCircuitTermination) 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 *CircuitCircuitTermination) SetDescription(v string) { + o.Description = &v +} + +func (o CircuitCircuitTermination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitCircuitTermination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + if o.TerminationType.IsSet() { + toSerialize["termination_type"] = o.TerminationType.Get() + } + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() + } + if o.Termination != nil { + toSerialize["termination"] = o.Termination + } + if o.PortSpeed.IsSet() { + toSerialize["port_speed"] = o.PortSpeed.Get() + } + if o.UpstreamSpeed.IsSet() { + toSerialize["upstream_speed"] = o.UpstreamSpeed.Get() + } + if !IsNil(o.XconnectId) { + toSerialize["xconnect_id"] = o.XconnectId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitCircuitTermination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varCircuitCircuitTermination := _CircuitCircuitTermination{} + + err = json.Unmarshal(data, &varCircuitCircuitTermination) + + if err != nil { + return err + } + + *o = CircuitCircuitTermination(varCircuitCircuitTermination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "termination_type") + delete(additionalProperties, "termination_id") + delete(additionalProperties, "termination") + delete(additionalProperties, "port_speed") + delete(additionalProperties, "upstream_speed") + delete(additionalProperties, "xconnect_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitCircuitTermination struct { + value *CircuitCircuitTermination + isSet bool +} + +func (v NullableCircuitCircuitTermination) Get() *CircuitCircuitTermination { + return v.value +} + +func (v *NullableCircuitCircuitTermination) Set(val *CircuitCircuitTermination) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitCircuitTermination) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitCircuitTermination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitCircuitTermination(val *CircuitCircuitTermination) *NullableCircuitCircuitTermination { + return &NullableCircuitCircuitTermination{value: val, isSet: true} +} + +func (v NullableCircuitCircuitTermination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +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 new file mode 100644 index 0000000000..5bfa50963b --- /dev/null +++ b/model_circuit_circuit_termination_request.go @@ -0,0 +1,383 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CircuitCircuitTerminationRequest type satisfies the MappedNullable interface at compile time +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 { + TerminationType NullableString `json:"termination_type,omitempty"` + TerminationId NullableInt32 `json:"termination_id,omitempty"` + // 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"` + AdditionalProperties map[string]interface{} +} + +type _CircuitCircuitTerminationRequest CircuitCircuitTerminationRequest + +// NewCircuitCircuitTerminationRequest instantiates a new CircuitCircuitTerminationRequest 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 NewCircuitCircuitTerminationRequest() *CircuitCircuitTerminationRequest { + this := CircuitCircuitTerminationRequest{} + return &this +} + +// NewCircuitCircuitTerminationRequestWithDefaults instantiates a new CircuitCircuitTerminationRequest 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 NewCircuitCircuitTerminationRequestWithDefaults() *CircuitCircuitTerminationRequest { + this := CircuitCircuitTerminationRequest{} + return &this +} + +// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetTerminationType() string { + if o == nil || IsNil(o.TerminationType.Get()) { + var ret string + return ret + } + return *o.TerminationType.Get() +} + +// GetTerminationTypeOk returns a tuple with the TerminationType 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 *CircuitCircuitTerminationRequest) GetTerminationTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationType.Get(), o.TerminationType.IsSet() +} + +// HasTerminationType returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasTerminationType() bool { + if o != nil && o.TerminationType.IsSet() { + return true + } + + return false +} + +// SetTerminationType gets a reference to the given NullableString and assigns it to the TerminationType field. +func (o *CircuitCircuitTerminationRequest) SetTerminationType(v string) { + o.TerminationType.Set(&v) +} +// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil +func (o *CircuitCircuitTerminationRequest) SetTerminationTypeNil() { + o.TerminationType.Set(nil) +} + +// UnsetTerminationType ensures that no value is present for TerminationType, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetTerminationType() { + o.TerminationType.Unset() +} + +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetTerminationId() int32 { + if o == nil || IsNil(o.TerminationId.Get()) { + var ret int32 + return ret + } + return *o.TerminationId.Get() +} + +// GetTerminationIdOk returns a tuple with the TerminationId 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 *CircuitCircuitTerminationRequest) GetTerminationIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TerminationId.Get(), o.TerminationId.IsSet() +} + +// HasTerminationId returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { + return true + } + + return false +} + +// SetTerminationId gets a reference to the given NullableInt32 and assigns it to the TerminationId field. +func (o *CircuitCircuitTerminationRequest) SetTerminationId(v int32) { + o.TerminationId.Set(&v) +} +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *CircuitCircuitTerminationRequest) SetTerminationIdNil() { + o.TerminationId.Set(nil) +} + +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetTerminationId() { + o.TerminationId.Unset() +} + +// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetPortSpeed() int32 { + if o == nil || IsNil(o.PortSpeed.Get()) { + var ret int32 + return ret + } + return *o.PortSpeed.Get() +} + +// GetPortSpeedOk returns a tuple with the PortSpeed 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 *CircuitCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PortSpeed.Get(), o.PortSpeed.IsSet() +} + +// HasPortSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool { + if o != nil && o.PortSpeed.IsSet() { + return true + } + + return false +} + +// SetPortSpeed gets a reference to the given NullableInt32 and assigns it to the PortSpeed field. +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) +} + +// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetPortSpeed() { + o.PortSpeed.Unset() +} + +// GetUpstreamSpeed returns the UpstreamSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeed() int32 { + if o == nil || IsNil(o.UpstreamSpeed.Get()) { + var ret int32 + return ret + } + return *o.UpstreamSpeed.Get() +} + +// GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed 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 *CircuitCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.UpstreamSpeed.Get(), o.UpstreamSpeed.IsSet() +} + +// HasUpstreamSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool { + if o != nil && o.UpstreamSpeed.IsSet() { + return true + } + + return false +} + +// SetUpstreamSpeed gets a reference to the given NullableInt32 and assigns it to the UpstreamSpeed field. +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) +} + +// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetUpstreamSpeed() { + o.UpstreamSpeed.Unset() +} + +// GetXconnectId returns the XconnectId field value if set, zero value otherwise. +func (o *CircuitCircuitTerminationRequest) GetXconnectId() string { + if o == nil || IsNil(o.XconnectId) { + var ret string + return ret + } + return *o.XconnectId +} + +// GetXconnectIdOk returns a tuple with the XconnectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTerminationRequest) GetXconnectIdOk() (*string, bool) { + if o == nil || IsNil(o.XconnectId) { + return nil, false + } + return o.XconnectId, true +} + +// HasXconnectId returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasXconnectId() bool { + if o != nil && !IsNil(o.XconnectId) { + return true + } + + return false +} + +// SetXconnectId gets a reference to the given string and assigns it to the XconnectId field. +func (o *CircuitCircuitTerminationRequest) SetXconnectId(v string) { + o.XconnectId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitCircuitTerminationRequest) 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 *CircuitCircuitTerminationRequest) 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 *CircuitCircuitTerminationRequest) 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 *CircuitCircuitTerminationRequest) SetDescription(v string) { + o.Description = &v +} + +func (o CircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitCircuitTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TerminationType.IsSet() { + toSerialize["termination_type"] = o.TerminationType.Get() + } + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() + } + if o.PortSpeed.IsSet() { + toSerialize["port_speed"] = o.PortSpeed.Get() + } + if o.UpstreamSpeed.IsSet() { + toSerialize["upstream_speed"] = o.UpstreamSpeed.Get() + } + if !IsNil(o.XconnectId) { + toSerialize["xconnect_id"] = o.XconnectId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { + varCircuitCircuitTerminationRequest := _CircuitCircuitTerminationRequest{} + + err = json.Unmarshal(data, &varCircuitCircuitTerminationRequest) + + if err != nil { + return err + } + + *o = CircuitCircuitTerminationRequest(varCircuitCircuitTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "termination_type") + delete(additionalProperties, "termination_id") + delete(additionalProperties, "port_speed") + delete(additionalProperties, "upstream_speed") + delete(additionalProperties, "xconnect_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitCircuitTerminationRequest struct { + value *CircuitCircuitTerminationRequest + isSet bool +} + +func (v NullableCircuitCircuitTerminationRequest) Get() *CircuitCircuitTerminationRequest { + return v.value +} + +func (v *NullableCircuitCircuitTerminationRequest) Set(val *CircuitCircuitTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitCircuitTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitCircuitTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitCircuitTerminationRequest(val *CircuitCircuitTerminationRequest) *NullableCircuitCircuitTerminationRequest { + return &NullableCircuitCircuitTerminationRequest{value: val, isSet: true} +} + +func (v NullableCircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitCircuitTerminationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_distance_unit.go b/model_circuit_distance_unit.go new file mode 100644 index 0000000000..d6bea2622c --- /dev/null +++ b/model_circuit_distance_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CircuitDistanceUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitDistanceUnit{} + +// CircuitDistanceUnit struct for CircuitDistanceUnit +type CircuitDistanceUnit struct { + Value *CircuitDistanceUnitValue `json:"value,omitempty"` + Label *CircuitDistanceUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitDistanceUnit CircuitDistanceUnit + +// NewCircuitDistanceUnit instantiates a new CircuitDistanceUnit 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 NewCircuitDistanceUnit() *CircuitDistanceUnit { + this := CircuitDistanceUnit{} + return &this +} + +// NewCircuitDistanceUnitWithDefaults instantiates a new CircuitDistanceUnit 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 NewCircuitDistanceUnitWithDefaults() *CircuitDistanceUnit { + this := CircuitDistanceUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CircuitDistanceUnit) GetValue() CircuitDistanceUnitValue { + if o == nil || IsNil(o.Value) { + var ret CircuitDistanceUnitValue + 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 *CircuitDistanceUnit) GetValueOk() (*CircuitDistanceUnitValue, 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 *CircuitDistanceUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CircuitDistanceUnitValue and assigns it to the Value field. +func (o *CircuitDistanceUnit) SetValue(v CircuitDistanceUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CircuitDistanceUnit) GetLabel() CircuitDistanceUnitLabel { + if o == nil || IsNil(o.Label) { + var ret CircuitDistanceUnitLabel + 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 *CircuitDistanceUnit) GetLabelOk() (*CircuitDistanceUnitLabel, 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 *CircuitDistanceUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CircuitDistanceUnitLabel and assigns it to the Label field. +func (o *CircuitDistanceUnit) SetLabel(v CircuitDistanceUnitLabel) { + o.Label = &v +} + +func (o CircuitDistanceUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitDistanceUnit) 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 *CircuitDistanceUnit) UnmarshalJSON(data []byte) (err error) { + varCircuitDistanceUnit := _CircuitDistanceUnit{} + + err = json.Unmarshal(data, &varCircuitDistanceUnit) + + if err != nil { + return err + } + + *o = CircuitDistanceUnit(varCircuitDistanceUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitDistanceUnit struct { + value *CircuitDistanceUnit + isSet bool +} + +func (v NullableCircuitDistanceUnit) Get() *CircuitDistanceUnit { + return v.value +} + +func (v *NullableCircuitDistanceUnit) Set(val *CircuitDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitDistanceUnit(val *CircuitDistanceUnit) *NullableCircuitDistanceUnit { + return &NullableCircuitDistanceUnit{value: val, isSet: true} +} + +func (v NullableCircuitDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitDistanceUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_distance_unit_label.go b/model_circuit_distance_unit_label.go new file mode 100644 index 0000000000..bf0552f50f --- /dev/null +++ b/model_circuit_distance_unit_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitDistanceUnitLabel the model 'CircuitDistanceUnitLabel' +type CircuitDistanceUnitLabel string + +// List of Circuit_distance_unit_label +const ( + CIRCUITDISTANCEUNITLABEL_KILOMETERS CircuitDistanceUnitLabel = "Kilometers" + CIRCUITDISTANCEUNITLABEL_METERS CircuitDistanceUnitLabel = "Meters" + CIRCUITDISTANCEUNITLABEL_MILES CircuitDistanceUnitLabel = "Miles" + CIRCUITDISTANCEUNITLABEL_FEET CircuitDistanceUnitLabel = "Feet" +) + +// All allowed values of CircuitDistanceUnitLabel enum +var AllowedCircuitDistanceUnitLabelEnumValues = []CircuitDistanceUnitLabel{ + "Kilometers", + "Meters", + "Miles", + "Feet", +} + +func (v *CircuitDistanceUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitDistanceUnitLabel(value) + for _, existing := range AllowedCircuitDistanceUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitDistanceUnitLabel", value) +} + +// NewCircuitDistanceUnitLabelFromValue returns a pointer to a valid CircuitDistanceUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitDistanceUnitLabelFromValue(v string) (*CircuitDistanceUnitLabel, error) { + ev := CircuitDistanceUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitDistanceUnitLabel: valid values are %v", v, AllowedCircuitDistanceUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitDistanceUnitLabel) IsValid() bool { + for _, existing := range AllowedCircuitDistanceUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_distance_unit_label value +func (v CircuitDistanceUnitLabel) Ptr() *CircuitDistanceUnitLabel { + return &v +} + +type NullableCircuitDistanceUnitLabel struct { + value *CircuitDistanceUnitLabel + isSet bool +} + +func (v NullableCircuitDistanceUnitLabel) Get() *CircuitDistanceUnitLabel { + return v.value +} + +func (v *NullableCircuitDistanceUnitLabel) Set(val *CircuitDistanceUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitDistanceUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitDistanceUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitDistanceUnitLabel(val *CircuitDistanceUnitLabel) *NullableCircuitDistanceUnitLabel { + return &NullableCircuitDistanceUnitLabel{value: val, isSet: true} +} + +func (v NullableCircuitDistanceUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitDistanceUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuit_distance_unit_value.go b/model_circuit_distance_unit_value.go new file mode 100644 index 0000000000..773246969c --- /dev/null +++ b/model_circuit_distance_unit_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitDistanceUnitValue * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +type CircuitDistanceUnitValue string + +// List of Circuit_distance_unit_value +const ( + CIRCUITDISTANCEUNITVALUE_KM CircuitDistanceUnitValue = "km" + CIRCUITDISTANCEUNITVALUE_M CircuitDistanceUnitValue = "m" + CIRCUITDISTANCEUNITVALUE_MI CircuitDistanceUnitValue = "mi" + CIRCUITDISTANCEUNITVALUE_FT CircuitDistanceUnitValue = "ft" + CIRCUITDISTANCEUNITVALUE_EMPTY CircuitDistanceUnitValue = "" +) + +// All allowed values of CircuitDistanceUnitValue enum +var AllowedCircuitDistanceUnitValueEnumValues = []CircuitDistanceUnitValue{ + "km", + "m", + "mi", + "ft", + "", +} + +func (v *CircuitDistanceUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitDistanceUnitValue(value) + for _, existing := range AllowedCircuitDistanceUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitDistanceUnitValue", value) +} + +// NewCircuitDistanceUnitValueFromValue returns a pointer to a valid CircuitDistanceUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitDistanceUnitValueFromValue(v string) (*CircuitDistanceUnitValue, error) { + ev := CircuitDistanceUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitDistanceUnitValue: valid values are %v", v, AllowedCircuitDistanceUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitDistanceUnitValue) IsValid() bool { + for _, existing := range AllowedCircuitDistanceUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_distance_unit_value value +func (v CircuitDistanceUnitValue) Ptr() *CircuitDistanceUnitValue { + return &v +} + +type NullableCircuitDistanceUnitValue struct { + value *CircuitDistanceUnitValue + isSet bool +} + +func (v NullableCircuitDistanceUnitValue) Get() *CircuitDistanceUnitValue { + return v.value +} + +func (v *NullableCircuitDistanceUnitValue) Set(val *CircuitDistanceUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitDistanceUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitDistanceUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitDistanceUnitValue(val *CircuitDistanceUnitValue) *NullableCircuitDistanceUnitValue { + return &NullableCircuitDistanceUnitValue{value: val, isSet: true} +} + +func (v NullableCircuitDistanceUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitDistanceUnitValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuit_group.go b/model_circuit_group.go new file mode 100644 index 0000000000..882d5380a3 --- /dev/null +++ b/model_circuit_group.go @@ -0,0 +1,626 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the CircuitGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroup{} + +// CircuitGroup Adds support for custom fields and tags. +type CircuitGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroup CircuitGroup + +// NewCircuitGroup instantiates a new CircuitGroup 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 NewCircuitGroup(id int32, url string, display string, name string, slug string, circuitCount int64) *CircuitGroup { + this := CircuitGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.CircuitCount = circuitCount + return &this +} + +// NewCircuitGroupWithDefaults instantiates a new CircuitGroup 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 NewCircuitGroupWithDefaults() *CircuitGroup { + this := CircuitGroup{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitGroup) 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 *CircuitGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *CircuitGroup) 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 *CircuitGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CircuitGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CircuitGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *CircuitGroup) 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 *CircuitGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *CircuitGroup) 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 *CircuitGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CircuitGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *CircuitGroup) 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 *CircuitGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *CircuitGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitGroup) 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 *CircuitGroup) 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 *CircuitGroup) 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 *CircuitGroup) 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 *CircuitGroup) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *CircuitGroup) GetTenantOk() (*BriefTenant, 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 *CircuitGroup) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *CircuitGroup) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitGroup) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitGroup) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroup) 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 *CircuitGroup) 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 *CircuitGroup) 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 *CircuitGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitGroup) 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 *CircuitGroup) 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 *CircuitGroup) 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 *CircuitGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroup) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *CircuitGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *CircuitGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *CircuitGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CircuitGroup) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CircuitGroup) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroup) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *CircuitGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *CircuitGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *CircuitGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CircuitGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CircuitGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetCircuitCount returns the CircuitCount field value +func (o *CircuitGroup) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *CircuitGroup) SetCircuitCount(v int64) { + o.CircuitCount = v +} + + +func (o CircuitGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "circuit_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varCircuitGroup := _CircuitGroup{} + + err = json.Unmarshal(data, &varCircuitGroup) + + if err != nil { + return err + } + + *o = CircuitGroup(varCircuitGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroup struct { + value *CircuitGroup + isSet bool +} + +func (v NullableCircuitGroup) Get() *CircuitGroup { + return v.value +} + +func (v *NullableCircuitGroup) Set(val *CircuitGroup) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroup(val *CircuitGroup) *NullableCircuitGroup { + return &NullableCircuitGroup{value: val, isSet: true} +} + +func (v NullableCircuitGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_group_assignment.go b/model_circuit_group_assignment.go new file mode 100644 index 0000000000..143cbc7bc3 --- /dev/null +++ b/model_circuit_group_assignment.go @@ -0,0 +1,580 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the CircuitGroupAssignment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupAssignment{} + +// CircuitGroupAssignment Base serializer for group assignments under CircuitSerializer. +type CircuitGroupAssignment struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + MemberType string `json:"member_type"` + MemberId int64 `json:"member_id"` + Member interface{} `json:"member,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupAssignment CircuitGroupAssignment + +// NewCircuitGroupAssignment instantiates a new CircuitGroupAssignment 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 NewCircuitGroupAssignment(id int32, url string, display string, group BriefCircuitGroup, memberType string, memberId int64) *CircuitGroupAssignment { + this := CircuitGroupAssignment{} + this.Id = id + this.Url = url + this.Display = display + this.Group = group + this.MemberType = memberType + this.MemberId = memberId + return &this +} + +// NewCircuitGroupAssignmentWithDefaults instantiates a new CircuitGroupAssignment 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 NewCircuitGroupAssignmentWithDefaults() *CircuitGroupAssignment { + this := CircuitGroupAssignment{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitGroupAssignment) 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 *CircuitGroupAssignment) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitGroupAssignment) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *CircuitGroupAssignment) 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 *CircuitGroupAssignment) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitGroupAssignment) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CircuitGroupAssignment) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CircuitGroupAssignment) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *CircuitGroupAssignment) 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 *CircuitGroupAssignment) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitGroupAssignment) SetDisplay(v string) { + o.Display = v +} + + +// GetGroup returns the Group field value +func (o *CircuitGroupAssignment) GetGroup() BriefCircuitGroup { + if o == nil { + var ret BriefCircuitGroup + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetGroupOk() (*BriefCircuitGroup, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *CircuitGroupAssignment) SetGroup(v BriefCircuitGroup) { + o.Group = v +} + + +// GetMemberType returns the MemberType field value +func (o *CircuitGroupAssignment) GetMemberType() string { + if o == nil { + var ret string + return ret + } + + return o.MemberType +} + +// GetMemberTypeOk returns a tuple with the MemberType field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetMemberTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MemberType, true +} + +// SetMemberType sets field value +func (o *CircuitGroupAssignment) SetMemberType(v string) { + o.MemberType = v +} + + +// GetMemberId returns the MemberId field value +func (o *CircuitGroupAssignment) GetMemberId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.MemberId +} + +// GetMemberIdOk returns a tuple with the MemberId field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetMemberIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.MemberId, true +} + +// SetMemberId sets field value +func (o *CircuitGroupAssignment) SetMemberId(v int64) { + o.MemberId = v +} + + +// GetMember returns the Member field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroupAssignment) GetMember() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Member +} + +// GetMemberOk returns a tuple with the Member 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 *CircuitGroupAssignment) GetMemberOk() (*interface{}, bool) { + if o == nil || IsNil(o.Member) { + return nil, false + } + return &o.Member, true +} + +// HasMember returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasMember() bool { + if o != nil && !IsNil(o.Member) { + return true + } + + return false +} + +// SetMember gets a reference to the given interface{} and assigns it to the Member field. +func (o *CircuitGroupAssignment) SetMember(v interface{}) { + o.Member = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CircuitGroupAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriority + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *CircuitGroupAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupAssignment) 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 *CircuitGroupAssignment) 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 *CircuitGroupAssignment) 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 *CircuitGroupAssignment) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroupAssignment) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *CircuitGroupAssignment) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *CircuitGroupAssignment) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CircuitGroupAssignment) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CircuitGroupAssignment) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroupAssignment) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *CircuitGroupAssignment) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *CircuitGroupAssignment) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CircuitGroupAssignment) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CircuitGroupAssignment) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +func (o CircuitGroupAssignment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupAssignment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["group"] = o.Group + toSerialize["member_type"] = o.MemberType + toSerialize["member_id"] = o.MemberId + if o.Member != nil { + toSerialize["member"] = o.Member + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupAssignment) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "group", + "member_type", + "member_id", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varCircuitGroupAssignment := _CircuitGroupAssignment{} + + err = json.Unmarshal(data, &varCircuitGroupAssignment) + + if err != nil { + return err + } + + *o = CircuitGroupAssignment(varCircuitGroupAssignment) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "group") + delete(additionalProperties, "member_type") + delete(additionalProperties, "member_id") + delete(additionalProperties, "member") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupAssignment struct { + value *CircuitGroupAssignment + isSet bool +} + +func (v NullableCircuitGroupAssignment) Get() *CircuitGroupAssignment { + return v.value +} + +func (v *NullableCircuitGroupAssignment) Set(val *CircuitGroupAssignment) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupAssignment) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupAssignment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupAssignment(val *CircuitGroupAssignment) *NullableCircuitGroupAssignment { + return &NullableCircuitGroupAssignment{value: val, isSet: true} +} + +func (v NullableCircuitGroupAssignment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupAssignment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_group_assignment_request.go b/model_circuit_group_assignment_request.go new file mode 100644 index 0000000000..c1abcf7d76 --- /dev/null +++ b/model_circuit_group_assignment_request.go @@ -0,0 +1,320 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupAssignmentRequest{} + +// CircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type CircuitGroupAssignmentRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + MemberType string `json:"member_type"` + MemberId int64 `json:"member_id"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupAssignmentRequest CircuitGroupAssignmentRequest + +// NewCircuitGroupAssignmentRequest instantiates a new CircuitGroupAssignmentRequest 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 NewCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, memberType string, memberId int64) *CircuitGroupAssignmentRequest { + this := CircuitGroupAssignmentRequest{} + this.Group = group + this.MemberType = memberType + this.MemberId = memberId + return &this +} + +// NewCircuitGroupAssignmentRequestWithDefaults instantiates a new CircuitGroupAssignmentRequest 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 NewCircuitGroupAssignmentRequestWithDefaults() *CircuitGroupAssignmentRequest { + this := CircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *CircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + + +// GetMemberType returns the MemberType field value +func (o *CircuitGroupAssignmentRequest) GetMemberType() string { + if o == nil { + var ret string + return ret + } + + return o.MemberType +} + +// GetMemberTypeOk returns a tuple with the MemberType field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetMemberTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MemberType, true +} + +// SetMemberType sets field value +func (o *CircuitGroupAssignmentRequest) SetMemberType(v string) { + o.MemberType = v +} + + +// GetMemberId returns the MemberId field value +func (o *CircuitGroupAssignmentRequest) GetMemberId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.MemberId +} + +// GetMemberIdOk returns a tuple with the MemberId field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetMemberIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.MemberId, true +} + +// SetMemberId sets field value +func (o *CircuitGroupAssignmentRequest) SetMemberId(v int64) { + o.MemberId = v +} + + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *CircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupAssignmentRequest) 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 *CircuitGroupAssignmentRequest) 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 *CircuitGroupAssignmentRequest) 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 *CircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o CircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + toSerialize["member_type"] = o.MemberType + toSerialize["member_id"] = o.MemberId + 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 + } + + return toSerialize, nil +} + +func (o *CircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + "member_type", + "member_id", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varCircuitGroupAssignmentRequest := _CircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = CircuitGroupAssignmentRequest(varCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "member_type") + delete(additionalProperties, "member_id") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupAssignmentRequest struct { + value *CircuitGroupAssignmentRequest + isSet bool +} + +func (v NullableCircuitGroupAssignmentRequest) Get() *CircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullableCircuitGroupAssignmentRequest) Set(val *CircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupAssignmentRequest(val *CircuitGroupAssignmentRequest) *NullableCircuitGroupAssignmentRequest { + return &NullableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_group_request.go b/model_circuit_group_request.go new file mode 100644 index 0000000000..2516a32ad9 --- /dev/null +++ b/model_circuit_group_request.go @@ -0,0 +1,374 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupRequest{} + +// CircuitGroupRequest Adds support for custom fields and tags. +type CircuitGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupRequest CircuitGroupRequest + +// NewCircuitGroupRequest instantiates a new CircuitGroupRequest 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 NewCircuitGroupRequest(name string, slug string) *CircuitGroupRequest { + this := CircuitGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewCircuitGroupRequestWithDefaults instantiates a new CircuitGroupRequest 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 NewCircuitGroupRequestWithDefaults() *CircuitGroupRequest { + this := CircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CircuitGroupRequest) 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 *CircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CircuitGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *CircuitGroupRequest) 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 *CircuitGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *CircuitGroupRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitGroupRequest) 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 *CircuitGroupRequest) 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 *CircuitGroupRequest) 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 *CircuitGroupRequest) 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 *CircuitGroupRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *CircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, 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 *CircuitGroupRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CircuitGroupRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitGroupRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitGroupRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupRequest) 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 *CircuitGroupRequest) 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 *CircuitGroupRequest) 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 *CircuitGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitGroupRequest) 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 *CircuitGroupRequest) 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 *CircuitGroupRequest) 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 *CircuitGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o CircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varCircuitGroupRequest := _CircuitGroupRequest{} + + err = json.Unmarshal(data, &varCircuitGroupRequest) + + if err != nil { + return err + } + + *o = CircuitGroupRequest(varCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupRequest struct { + value *CircuitGroupRequest + isSet bool +} + +func (v NullableCircuitGroupRequest) Get() *CircuitGroupRequest { + return v.value +} + +func (v *NullableCircuitGroupRequest) Set(val *CircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupRequest(val *CircuitGroupRequest) *NullableCircuitGroupRequest { + return &NullableCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullableCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_request.go b/model_circuit_request.go index f5d44906d0..d802514063 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,23 @@ var _ MappedNullable = &CircuitRequest{} // CircuitRequest Adds support for custom fields and tags. type CircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `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"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +47,11 @@ type _CircuitRequest CircuitRequest // 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 NewCircuitRequest(cid string) *CircuitRequest { +func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *CircuitRequest { this := CircuitRequest{} this.Cid = cid + this.Provider = provider + this.Type = type_ return &this } @@ -70,6 +87,299 @@ func (o *CircuitRequest) SetCid(v string) { o.Cid = v } + +// GetProvider returns the Provider field value +func (o *CircuitRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *CircuitRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccountRequest + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount 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 *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *CircuitRequest) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { + o.ProviderAccount.Set(&v) +} +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *CircuitRequest) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *CircuitRequest) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *CircuitRequest) GetType() BriefCircuitTypeRequest { + if o == nil { + var ret BriefCircuitTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest) { + o.Type = v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CircuitRequest) GetStatus() CircuitStatusValue { + if o == nil || IsNil(o.Status) { + var ret CircuitStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CircuitRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *CircuitRequest) SetStatus(v CircuitStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *CircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *CircuitRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CircuitRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate 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 *CircuitRequest) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +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) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *CircuitRequest) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate 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 *CircuitRequest) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +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) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *CircuitRequest) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate 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 *CircuitRequest) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *CircuitRequest) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +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) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *CircuitRequest) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CircuitRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -102,8 +412,220 @@ func (o *CircuitRequest) SetDescription(v string) { o.Description = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *CircuitRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *CircuitRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *CircuitRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *CircuitRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *CircuitRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetDistanceUnit() CircuitRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *CircuitRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *CircuitRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *CircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *CircuitRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *CircuitRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CircuitRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CircuitRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CircuitRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitRequest) 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 *CircuitRequest) 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 *CircuitRequest) 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 *CircuitRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitRequest) 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 *CircuitRequest) 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 *CircuitRequest) 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 *CircuitRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *CircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o CircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -113,9 +635,47 @@ func (o CircuitRequest) MarshalJSON() ([]byte, error) { func (o CircuitRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -130,22 +690,41 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "cid", + "provider", + "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCircuitRequest := _CircuitRequest{} err = json.Unmarshal(data, &varCircuitRequest) @@ -160,7 +739,21 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } @@ -202,3 +795,5 @@ func (v *NullableCircuitRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_request_distance_unit.go b/model_circuit_request_distance_unit.go new file mode 100644 index 0000000000..957d2a7d4d --- /dev/null +++ b/model_circuit_request_distance_unit.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitRequestDistanceUnit * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +type CircuitRequestDistanceUnit string + +// List of CircuitRequest_distance_unit +const ( + CIRCUITREQUESTDISTANCEUNIT_KM CircuitRequestDistanceUnit = "km" + CIRCUITREQUESTDISTANCEUNIT_M CircuitRequestDistanceUnit = "m" + CIRCUITREQUESTDISTANCEUNIT_MI CircuitRequestDistanceUnit = "mi" + CIRCUITREQUESTDISTANCEUNIT_FT CircuitRequestDistanceUnit = "ft" + CIRCUITREQUESTDISTANCEUNIT_EMPTY CircuitRequestDistanceUnit = "" +) + +// All allowed values of CircuitRequestDistanceUnit enum +var AllowedCircuitRequestDistanceUnitEnumValues = []CircuitRequestDistanceUnit{ + "km", + "m", + "mi", + "ft", + "", +} + +func (v *CircuitRequestDistanceUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitRequestDistanceUnit(value) + for _, existing := range AllowedCircuitRequestDistanceUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitRequestDistanceUnit", value) +} + +// NewCircuitRequestDistanceUnitFromValue returns a pointer to a valid CircuitRequestDistanceUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitRequestDistanceUnitFromValue(v string) (*CircuitRequestDistanceUnit, error) { + ev := CircuitRequestDistanceUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitRequestDistanceUnit: valid values are %v", v, AllowedCircuitRequestDistanceUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitRequestDistanceUnit) IsValid() bool { + for _, existing := range AllowedCircuitRequestDistanceUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CircuitRequest_distance_unit value +func (v CircuitRequestDistanceUnit) Ptr() *CircuitRequestDistanceUnit { + return &v +} + +type NullableCircuitRequestDistanceUnit struct { + value *CircuitRequestDistanceUnit + isSet bool +} + +func (v NullableCircuitRequestDistanceUnit) Get() *CircuitRequestDistanceUnit { + return v.value +} + +func (v *NullableCircuitRequestDistanceUnit) Set(val *CircuitRequestDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitRequestDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitRequestDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitRequestDistanceUnit(val *CircuitRequestDistanceUnit) *NullableCircuitRequestDistanceUnit { + return &NullableCircuitRequestDistanceUnit{value: val, isSet: true} +} + +func (v NullableCircuitRequestDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitRequestDistanceUnit) 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 new file mode 100644 index 0000000000..dea6ee8ad9 --- /dev/null +++ b/model_circuit_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CircuitStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitStatus{} + +// CircuitStatus struct for CircuitStatus +type CircuitStatus struct { + Value *CircuitStatusValue `json:"value,omitempty"` + Label *CircuitStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitStatus CircuitStatus + +// NewCircuitStatus instantiates a new CircuitStatus 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 NewCircuitStatus() *CircuitStatus { + this := CircuitStatus{} + return &this +} + +// NewCircuitStatusWithDefaults instantiates a new CircuitStatus 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 NewCircuitStatusWithDefaults() *CircuitStatus { + this := CircuitStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CircuitStatus) GetValue() CircuitStatusValue { + if o == nil || IsNil(o.Value) { + var ret CircuitStatusValue + 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 *CircuitStatus) GetValueOk() (*CircuitStatusValue, 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 *CircuitStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CircuitStatusValue and assigns it to the Value field. +func (o *CircuitStatus) SetValue(v CircuitStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CircuitStatus) GetLabel() CircuitStatusLabel { + if o == nil || IsNil(o.Label) { + var ret CircuitStatusLabel + 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 *CircuitStatus) GetLabelOk() (*CircuitStatusLabel, 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 *CircuitStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CircuitStatusLabel and assigns it to the Label field. +func (o *CircuitStatus) SetLabel(v CircuitStatusLabel) { + o.Label = &v +} + +func (o CircuitStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitStatus) 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 *CircuitStatus) UnmarshalJSON(data []byte) (err error) { + varCircuitStatus := _CircuitStatus{} + + err = json.Unmarshal(data, &varCircuitStatus) + + if err != nil { + return err + } + + *o = CircuitStatus(varCircuitStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitStatus struct { + value *CircuitStatus + isSet bool +} + +func (v NullableCircuitStatus) Get() *CircuitStatus { + return v.value +} + +func (v *NullableCircuitStatus) Set(val *CircuitStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatus(val *CircuitStatus) *NullableCircuitStatus { + return &NullableCircuitStatus{value: val, isSet: true} +} + +func (v NullableCircuitStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_status_label.go b/model_circuit_status_label.go new file mode 100644 index 0000000000..12a8236016 --- /dev/null +++ b/model_circuit_status_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitStatusLabel the model 'CircuitStatusLabel' +type CircuitStatusLabel string + +// List of Circuit_status_label +const ( + CIRCUITSTATUSLABEL_PLANNED CircuitStatusLabel = "Planned" + CIRCUITSTATUSLABEL_PROVISIONING CircuitStatusLabel = "Provisioning" + CIRCUITSTATUSLABEL_ACTIVE CircuitStatusLabel = "Active" + CIRCUITSTATUSLABEL_OFFLINE CircuitStatusLabel = "Offline" + CIRCUITSTATUSLABEL_DEPROVISIONING CircuitStatusLabel = "Deprovisioning" + CIRCUITSTATUSLABEL_DECOMMISSIONED CircuitStatusLabel = "Decommissioned" +) + +// All allowed values of CircuitStatusLabel enum +var AllowedCircuitStatusLabelEnumValues = []CircuitStatusLabel{ + "Planned", + "Provisioning", + "Active", + "Offline", + "Deprovisioning", + "Decommissioned", +} + +func (v *CircuitStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitStatusLabel(value) + for _, existing := range AllowedCircuitStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitStatusLabel", value) +} + +// NewCircuitStatusLabelFromValue returns a pointer to a valid CircuitStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitStatusLabelFromValue(v string) (*CircuitStatusLabel, error) { + ev := CircuitStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitStatusLabel: valid values are %v", v, AllowedCircuitStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitStatusLabel) IsValid() bool { + for _, existing := range AllowedCircuitStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_status_label value +func (v CircuitStatusLabel) Ptr() *CircuitStatusLabel { + return &v +} + +type NullableCircuitStatusLabel struct { + value *CircuitStatusLabel + isSet bool +} + +func (v NullableCircuitStatusLabel) Get() *CircuitStatusLabel { + return v.value +} + +func (v *NullableCircuitStatusLabel) Set(val *CircuitStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatusLabel(val *CircuitStatusLabel) *NullableCircuitStatusLabel { + return &NullableCircuitStatusLabel{value: val, isSet: true} +} + +func (v NullableCircuitStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuit_status_value.go b/model_circuit_status_value.go new file mode 100644 index 0000000000..116187a1ac --- /dev/null +++ b/model_circuit_status_value.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitStatusValue * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +type CircuitStatusValue string + +// List of Circuit_status_value +const ( + CIRCUITSTATUSVALUE_PLANNED CircuitStatusValue = "planned" + CIRCUITSTATUSVALUE_PROVISIONING CircuitStatusValue = "provisioning" + CIRCUITSTATUSVALUE_ACTIVE CircuitStatusValue = "active" + CIRCUITSTATUSVALUE_OFFLINE CircuitStatusValue = "offline" + CIRCUITSTATUSVALUE_DEPROVISIONING CircuitStatusValue = "deprovisioning" + CIRCUITSTATUSVALUE_DECOMMISSIONED CircuitStatusValue = "decommissioned" +) + +// All allowed values of CircuitStatusValue enum +var AllowedCircuitStatusValueEnumValues = []CircuitStatusValue{ + "planned", + "provisioning", + "active", + "offline", + "deprovisioning", + "decommissioned", +} + +func (v *CircuitStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitStatusValue(value) + for _, existing := range AllowedCircuitStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitStatusValue", value) +} + +// NewCircuitStatusValueFromValue returns a pointer to a valid CircuitStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitStatusValueFromValue(v string) (*CircuitStatusValue, error) { + ev := CircuitStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitStatusValue: valid values are %v", v, AllowedCircuitStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitStatusValue) IsValid() bool { + for _, existing := range AllowedCircuitStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_status_value value +func (v CircuitStatusValue) Ptr() *CircuitStatusValue { + return &v +} + +type NullableCircuitStatusValue struct { + value *CircuitStatusValue + isSet bool +} + +func (v NullableCircuitStatusValue) Get() *CircuitStatusValue { + return v.value +} + +func (v *NullableCircuitStatusValue) Set(val *CircuitStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatusValue(val *CircuitStatusValue) *NullableCircuitStatusValue { + return &NullableCircuitStatusValue{value: val, isSet: true} +} + +func (v NullableCircuitStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatusValue) 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 e9304fcbea..f1a45833e6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the CircuitTermination type satisfies the MappedNullable interface at compile time @@ -21,13 +21,15 @@ 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"` - Circuit Circuit `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSite `json:"site,omitempty"` - ProviderNetwork NullableProviderNetwork `json:"provider_network,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Circuit BriefCircuit `json:"circuit"` + TermSide TerminationSide1 `json:"term_side"` + TerminationType NullableString `json:"termination_type,omitempty"` + TerminationId NullableInt32 `json:"termination_id,omitempty"` + Termination interface{} `json:"termination,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -35,20 +37,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 NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + 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 NullableString `json:"link_peers_type,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -58,19 +60,15 @@ type _CircuitTermination CircuitTermination // 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 NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { +func NewCircuitTermination(id int32, url string, display string, circuit BriefCircuit, termSide TerminationSide1, cableEnd string, linkPeers []interface{}, occupied bool) *CircuitTermination { this := CircuitTermination{} this.Id = id this.Url = url this.Display = display this.Circuit = circuit this.TermSide = termSide - this.Cable = cable this.CableEnd = cableEnd this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -107,6 +105,7 @@ func (o *CircuitTermination) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *CircuitTermination) GetUrl() string { if o == nil { @@ -131,6 +130,39 @@ func (o *CircuitTermination) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CircuitTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CircuitTermination) GetDisplay() string { if o == nil { @@ -155,10 +187,11 @@ func (o *CircuitTermination) SetDisplay(v string) { o.Display = v } + // GetCircuit returns the Circuit field value -func (o *CircuitTermination) GetCircuit() Circuit { +func (o *CircuitTermination) GetCircuit() BriefCircuit { if o == nil { - var ret Circuit + var ret BriefCircuit return ret } @@ -167,7 +200,7 @@ func (o *CircuitTermination) GetCircuit() Circuit { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { +func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool) { if o == nil { return nil, false } @@ -175,14 +208,15 @@ func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { } // SetCircuit sets field value -func (o *CircuitTermination) SetCircuit(v Circuit) { +func (o *CircuitTermination) SetCircuit(v BriefCircuit) { o.Circuit = v } + // GetTermSide returns the TermSide field value -func (o *CircuitTermination) GetTermSide() Termination1 { +func (o *CircuitTermination) GetTermSide() TerminationSide1 { if o == nil { - var ret Termination1 + var ret TerminationSide1 return ret } @@ -191,7 +225,7 @@ func (o *CircuitTermination) GetTermSide() Termination1 { // GetTermSideOk returns a tuple with the TermSide field value // and a boolean to check if the value has been set. -func (o *CircuitTermination) GetTermSideOk() (*Termination1, bool) { +func (o *CircuitTermination) GetTermSideOk() (*TerminationSide1, bool) { if o == nil { return nil, false } @@ -199,94 +233,126 @@ func (o *CircuitTermination) GetTermSideOk() (*Termination1, bool) { } // SetTermSide sets field value -func (o *CircuitTermination) SetTermSide(v Termination1) { +func (o *CircuitTermination) SetTermSide(v TerminationSide1) { o.TermSide = v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetSite() Site { - if o == nil || IsNil(o.Site.Get()) { - var ret Site + +// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitTermination) GetTerminationType() string { + if o == nil || IsNil(o.TerminationType.Get()) { + var ret string return ret } - return *o.Site.Get() + return *o.TerminationType.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetTerminationTypeOk returns a tuple with the TerminationType 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 *CircuitTermination) GetSiteOk() (*Site, bool) { +func (o *CircuitTermination) GetTerminationTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.TerminationType.Get(), o.TerminationType.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *CircuitTermination) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasTerminationType returns a boolean if a field has been set. +func (o *CircuitTermination) HasTerminationType() bool { + if o != nil && o.TerminationType.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *CircuitTermination) SetSite(v Site) { - o.Site.Set(&v) +// SetTerminationType gets a reference to the given NullableString and assigns it to the TerminationType field. +func (o *CircuitTermination) SetTerminationType(v string) { + o.TerminationType.Set(&v) } - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *CircuitTermination) SetSiteNil() { - o.Site.Set(nil) +// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil +func (o *CircuitTermination) SetTerminationTypeNil() { + o.TerminationType.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *CircuitTermination) UnsetSite() { - o.Site.Unset() +// UnsetTerminationType ensures that no value is present for TerminationType, not even an explicit nil +func (o *CircuitTermination) UnsetTerminationType() { + o.TerminationType.Unset() } -// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { - if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetwork +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitTermination) GetTerminationId() int32 { + if o == nil || IsNil(o.TerminationId.Get()) { + var ret int32 return ret } - return *o.ProviderNetwork.Get() + return *o.TerminationId.Get() } -// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise +// GetTerminationIdOk returns a tuple with the TerminationId 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 *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool) { +func (o *CircuitTermination) GetTerminationIdOk() (*int32, bool) { if o == nil { return nil, false } - return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet() + return o.TerminationId.Get(), o.TerminationId.IsSet() } -// HasProviderNetwork returns a boolean if a field has been set. -func (o *CircuitTermination) HasProviderNetwork() bool { - if o != nil && o.ProviderNetwork.IsSet() { +// HasTerminationId returns a boolean if a field has been set. +func (o *CircuitTermination) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { return true } return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetwork and assigns it to the ProviderNetwork field. -func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork) { - o.ProviderNetwork.Set(&v) +// SetTerminationId gets a reference to the given NullableInt32 and assigns it to the TerminationId field. +func (o *CircuitTermination) SetTerminationId(v int32) { + o.TerminationId.Set(&v) +} +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *CircuitTermination) SetTerminationIdNil() { + o.TerminationId.Set(nil) +} + +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *CircuitTermination) UnsetTerminationId() { + o.TerminationId.Unset() +} + +// GetTermination returns the Termination field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitTermination) GetTermination() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Termination +} + +// GetTerminationOk returns a tuple with the Termination 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 *CircuitTermination) GetTerminationOk() (*interface{}, bool) { + if o == nil || IsNil(o.Termination) { + return nil, false + } + return &o.Termination, true } -// SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil -func (o *CircuitTermination) SetProviderNetworkNil() { - o.ProviderNetwork.Set(nil) +// HasTermination returns a boolean if a field has been set. +func (o *CircuitTermination) HasTermination() bool { + if o != nil && !IsNil(o.Termination) { + return true + } + + return false } -// UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil -func (o *CircuitTermination) UnsetProviderNetwork() { - o.ProviderNetwork.Unset() +// SetTermination gets a reference to the given interface{} and assigns it to the Termination field. +func (o *CircuitTermination) SetTermination(v interface{}) { + o.Termination = v } // GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -321,7 +387,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 +429,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) @@ -503,31 +567,47 @@ func (o *CircuitTermination) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *CircuitTermination) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitTermination) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *CircuitTermination) GetCableOk() (*Cable, bool) { +func (o *CircuitTermination) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *CircuitTermination) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *CircuitTermination) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *CircuitTermination) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *CircuitTermination) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *CircuitTermination) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *CircuitTermination) GetCableEnd() string { @@ -553,6 +633,7 @@ func (o *CircuitTermination) SetCableEnd(v string) { o.CableEnd = v } + // GetLinkPeers returns the LinkPeers field value func (o *CircuitTermination) GetLinkPeers() []interface{} { if o == nil { @@ -577,28 +658,47 @@ func (o *CircuitTermination) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CircuitTermination) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *CircuitTermination) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } -// SetLinkPeersType sets field value +// HasLinkPeersType returns a boolean if a field has been set. +func (o *CircuitTermination) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false +} + +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *CircuitTermination) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *CircuitTermination) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) +} + +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *CircuitTermination) UnsetLinkPeersType() { + o.LinkPeersType.Unset() } // GetTags returns the Tags field value if set, zero value otherwise. @@ -665,18 +765,16 @@ func (o *CircuitTermination) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CircuitTermination) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *CircuitTermination) GetCreatedOk() (*time.Time, bool) { @@ -686,23 +784,39 @@ func (o *CircuitTermination) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *CircuitTermination) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *CircuitTermination) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CircuitTermination) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CircuitTermination) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CircuitTermination) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *CircuitTermination) GetLastUpdatedOk() (*time.Time, bool) { @@ -712,10 +826,28 @@ func (o *CircuitTermination) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *CircuitTermination) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *CircuitTermination) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CircuitTermination) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CircuitTermination) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *CircuitTermination) GetOccupied() bool { @@ -741,8 +873,9 @@ func (o *CircuitTermination) SetOccupied(v bool) { o.Occupied = v } + func (o CircuitTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -753,14 +886,20 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["circuit"] = o.Circuit toSerialize["term_side"] = o.TermSide - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() + if o.TerminationType.IsSet() { + toSerialize["termination_type"] = o.TerminationType.Get() + } + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() } - if o.ProviderNetwork.IsSet() { - toSerialize["provider_network"] = o.ProviderNetwork.Get() + if o.Termination != nil { + toSerialize["termination"] = o.Termination } if o.PortSpeed.IsSet() { toSerialize["port_speed"] = o.PortSpeed.Get() @@ -780,18 +919,26 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -811,29 +958,42 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { "display", "circuit", "term_side", - "cable", "cable_end", "link_peers", - "link_peers_type", - "created", - "last_updated", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCircuitTermination := _CircuitTermination{} err = json.Unmarshal(data, &varCircuitTermination) @@ -849,11 +1009,13 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "circuit") delete(additionalProperties, "term_side") - delete(additionalProperties, "site") - delete(additionalProperties, "provider_network") + delete(additionalProperties, "termination_type") + delete(additionalProperties, "termination_id") + delete(additionalProperties, "termination") delete(additionalProperties, "port_speed") delete(additionalProperties, "upstream_speed") delete(additionalProperties, "xconnect_id") @@ -910,3 +1072,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 d8a1b14e41..44e0442ebb 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &CircuitTerminationRequest{} // CircuitTerminationRequest Adds support for custom fields and tags. type CircuitTerminationRequest struct { - Circuit CircuitRequest `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit BriefCircuitRequest `json:"circuit"` + TermSide TerminationSide1 `json:"term_side"` + TerminationType NullableString `json:"termination_type,omitempty"` + TerminationId NullableInt32 `json:"termination_id,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -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{} } @@ -46,7 +46,7 @@ type _CircuitTerminationRequest CircuitTerminationRequest // 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 NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1) *CircuitTerminationRequest { +func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide TerminationSide1) *CircuitTerminationRequest { this := CircuitTerminationRequest{} this.Circuit = circuit this.TermSide = termSide @@ -62,9 +62,9 @@ func NewCircuitTerminationRequestWithDefaults() *CircuitTerminationRequest { } // GetCircuit returns the Circuit field value -func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } @@ -73,7 +73,7 @@ func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil { return nil, false } @@ -81,14 +81,15 @@ func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { } // SetCircuit sets field value -func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest) { +func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = v } + // GetTermSide returns the TermSide field value -func (o *CircuitTerminationRequest) GetTermSide() Termination1 { +func (o *CircuitTerminationRequest) GetTermSide() TerminationSide1 { if o == nil { - var ret Termination1 + var ret TerminationSide1 return ret } @@ -97,7 +98,7 @@ func (o *CircuitTerminationRequest) GetTermSide() Termination1 { // GetTermSideOk returns a tuple with the TermSide field value // and a boolean to check if the value has been set. -func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination1, bool) { +func (o *CircuitTerminationRequest) GetTermSideOk() (*TerminationSide1, bool) { if o == nil { return nil, false } @@ -105,94 +106,93 @@ func (o *CircuitTerminationRequest) GetTermSideOk() (*Termination1, bool) { } // SetTermSide sets field value -func (o *CircuitTerminationRequest) SetTermSide(v Termination1) { +func (o *CircuitTerminationRequest) SetTermSide(v TerminationSide1) { o.TermSide = v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetSite() SiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + +// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitTerminationRequest) GetTerminationType() string { + if o == nil || IsNil(o.TerminationType.Get()) { + var ret string return ret } - return *o.Site.Get() + return *o.TerminationType.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetTerminationTypeOk returns a tuple with the TerminationType 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 *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *CircuitTerminationRequest) GetTerminationTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.TerminationType.Get(), o.TerminationType.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *CircuitTerminationRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasTerminationType returns a boolean if a field has been set. +func (o *CircuitTerminationRequest) HasTerminationType() bool { + if o != nil && o.TerminationType.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *CircuitTerminationRequest) SetSite(v SiteRequest) { - o.Site.Set(&v) +// SetTerminationType gets a reference to the given NullableString and assigns it to the TerminationType field. +func (o *CircuitTerminationRequest) SetTerminationType(v string) { + o.TerminationType.Set(&v) } - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *CircuitTerminationRequest) SetSiteNil() { - o.Site.Set(nil) +// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil +func (o *CircuitTerminationRequest) SetTerminationTypeNil() { + o.TerminationType.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *CircuitTerminationRequest) UnsetSite() { - o.Site.Unset() +// UnsetTerminationType ensures that no value is present for TerminationType, not even an explicit nil +func (o *CircuitTerminationRequest) UnsetTerminationType() { + o.TerminationType.Unset() } -// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { - if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitTerminationRequest) GetTerminationId() int32 { + if o == nil || IsNil(o.TerminationId.Get()) { + var ret int32 return ret } - return *o.ProviderNetwork.Get() + return *o.TerminationId.Get() } -// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise +// GetTerminationIdOk returns a tuple with the TerminationId 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 *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *CircuitTerminationRequest) GetTerminationIdOk() (*int32, bool) { if o == nil { return nil, false } - return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet() + return o.TerminationId.Get(), o.TerminationId.IsSet() } -// HasProviderNetwork returns a boolean if a field has been set. -func (o *CircuitTerminationRequest) HasProviderNetwork() bool { - if o != nil && o.ProviderNetwork.IsSet() { +// HasTerminationId returns a boolean if a field has been set. +func (o *CircuitTerminationRequest) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { return true } return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { - o.ProviderNetwork.Set(&v) +// SetTerminationId gets a reference to the given NullableInt32 and assigns it to the TerminationId field. +func (o *CircuitTerminationRequest) SetTerminationId(v int32) { + o.TerminationId.Set(&v) } - -// SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil -func (o *CircuitTerminationRequest) SetProviderNetworkNil() { - o.ProviderNetwork.Set(nil) +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *CircuitTerminationRequest) SetTerminationIdNil() { + o.TerminationId.Set(nil) } -// UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil -func (o *CircuitTerminationRequest) UnsetProviderNetwork() { - o.ProviderNetwork.Unset() +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *CircuitTerminationRequest) UnsetTerminationId() { + o.TerminationId.Unset() } // GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -227,7 +227,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 +269,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 +472,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 } @@ -485,11 +483,11 @@ func (o CircuitTerminationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["circuit"] = o.Circuit toSerialize["term_side"] = o.TermSide - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() + if o.TerminationType.IsSet() { + toSerialize["termination_type"] = o.TerminationType.Get() } - if o.ProviderNetwork.IsSet() { - toSerialize["provider_network"] = o.ProviderNetwork.Get() + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() } if o.PortSpeed.IsSet() { toSerialize["port_speed"] = o.PortSpeed.Get() @@ -532,20 +530,37 @@ func (o *CircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { "term_side", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCircuitTerminationRequest := _CircuitTerminationRequest{} err = json.Unmarshal(data, &varCircuitTerminationRequest) @@ -561,8 +576,8 @@ func (o *CircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "circuit") delete(additionalProperties, "term_side") - delete(additionalProperties, "site") - delete(additionalProperties, "provider_network") + delete(additionalProperties, "termination_type") + delete(additionalProperties, "termination_id") delete(additionalProperties, "port_speed") delete(additionalProperties, "upstream_speed") delete(additionalProperties, "xconnect_id") @@ -612,3 +627,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 56afd1a848..90d0ee8e21 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the CircuitType type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ 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"` - 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"` - CircuitCount int64 `json:"circuit_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -42,15 +43,13 @@ type _CircuitType CircuitType // 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 NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType { +func NewCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64) *CircuitType { this := CircuitType{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.CircuitCount = circuitCount return &this } @@ -87,6 +86,7 @@ func (o *CircuitType) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *CircuitType) GetUrl() string { if o == nil { @@ -111,6 +111,39 @@ func (o *CircuitType) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CircuitType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CircuitType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CircuitType) GetDisplay() string { if o == nil { @@ -135,6 +168,7 @@ func (o *CircuitType) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *CircuitType) GetName() string { if o == nil { @@ -159,6 +193,7 @@ func (o *CircuitType) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *CircuitType) GetSlug() string { if o == nil { @@ -183,6 +218,7 @@ func (o *CircuitType) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *CircuitType) GetColor() string { if o == nil || IsNil(o.Color) { @@ -311,18 +347,16 @@ func (o *CircuitType) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CircuitType) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *CircuitType) GetCreatedOk() (*time.Time, bool) { @@ -332,23 +366,39 @@ func (o *CircuitType) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *CircuitType) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *CircuitType) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CircuitType) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CircuitType) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CircuitType) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *CircuitType) GetLastUpdatedOk() (*time.Time, bool) { @@ -358,10 +408,28 @@ func (o *CircuitType) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *CircuitType) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *CircuitType) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CircuitType) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CircuitType) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetCircuitCount returns the CircuitCount field value func (o *CircuitType) GetCircuitCount() int64 { @@ -387,8 +455,9 @@ func (o *CircuitType) SetCircuitCount(v int64) { o.CircuitCount = v } + func (o CircuitType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -399,6 +468,9 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -414,8 +486,12 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { @@ -435,25 +511,40 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", "circuit_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCircuitType := _CircuitType{} err = json.Unmarshal(data, &varCircuitType) @@ -469,6 +560,7 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -520,3 +612,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 48eba514f5..80e3ff6e8f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &CircuitTypeRequest{} // CircuitTypeRequest Adds support for custom fields and tags. type CircuitTypeRequest 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ func (o *CircuitTypeRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *CircuitTypeRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *CircuitTypeRequest) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *CircuitTypeRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -227,7 +229,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 } @@ -267,20 +269,37 @@ func (o *CircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCircuitTypeRequest := _CircuitTypeRequest{} err = json.Unmarshal(data, &varCircuitTypeRequest) @@ -341,3 +360,5 @@ func (v *NullableCircuitTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuits_circuit_group_assignments_list_priority_parameter.go b/model_circuits_circuit_group_assignments_list_priority_parameter.go new file mode 100644 index 0000000000..5aff3ae2e4 --- /dev/null +++ b/model_circuits_circuit_group_assignments_list_priority_parameter.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitsCircuitGroupAssignmentsListPriorityParameter the model 'CircuitsCircuitGroupAssignmentsListPriorityParameter' +type CircuitsCircuitGroupAssignmentsListPriorityParameter string + +// List of circuits_circuit_group_assignments_list_priority_parameter +const ( + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE CircuitsCircuitGroupAssignmentsListPriorityParameter = "inactive" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "primary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_SECONDARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "secondary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "tertiary" +) + +// All allowed values of CircuitsCircuitGroupAssignmentsListPriorityParameter enum +var AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues = []CircuitsCircuitGroupAssignmentsListPriorityParameter{ + "inactive", + "primary", + "secondary", + "tertiary", +} + +func (v *CircuitsCircuitGroupAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsCircuitGroupAssignmentsListPriorityParameter(value) + for _, existing := range AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsCircuitGroupAssignmentsListPriorityParameter", value) +} + +// NewCircuitsCircuitGroupAssignmentsListPriorityParameterFromValue returns a pointer to a valid CircuitsCircuitGroupAssignmentsListPriorityParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsCircuitGroupAssignmentsListPriorityParameterFromValue(v string) (*CircuitsCircuitGroupAssignmentsListPriorityParameter, error) { + ev := CircuitsCircuitGroupAssignmentsListPriorityParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsCircuitGroupAssignmentsListPriorityParameter: valid values are %v", v, AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsCircuitGroupAssignmentsListPriorityParameter) IsValid() bool { + for _, existing := range AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to circuits_circuit_group_assignments_list_priority_parameter value +func (v CircuitsCircuitGroupAssignmentsListPriorityParameter) Ptr() *CircuitsCircuitGroupAssignmentsListPriorityParameter { + return &v +} + +type NullableCircuitsCircuitGroupAssignmentsListPriorityParameter struct { + value *CircuitsCircuitGroupAssignmentsListPriorityParameter + isSet bool +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Get() *CircuitsCircuitGroupAssignmentsListPriorityParameter { + return v.value +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Set(val *CircuitsCircuitGroupAssignmentsListPriorityParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsCircuitGroupAssignmentsListPriorityParameter(val *CircuitsCircuitGroupAssignmentsListPriorityParameter) *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter { + return &NullableCircuitsCircuitGroupAssignmentsListPriorityParameter{value: val, isSet: true} +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuits_circuit_terminations_list_cable_end_parameter.go b/model_circuits_circuit_terminations_list_cable_end_parameter.go index b4ea69c2ce..75ca2d7182 100644 --- a/model_circuits_circuit_terminations_list_cable_end_parameter.go +++ b/model_circuits_circuit_terminations_list_cable_end_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableCircuitsCircuitTerminationsListCableEndParameter) UnmarshalJSON v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_circuits_circuits_list_distance_unit_parameter.go b/model_circuits_circuits_list_distance_unit_parameter.go new file mode 100644 index 0000000000..4db9ac9bcd --- /dev/null +++ b/model_circuits_circuits_list_distance_unit_parameter.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitsCircuitsListDistanceUnitParameter the model 'CircuitsCircuitsListDistanceUnitParameter' +type CircuitsCircuitsListDistanceUnitParameter string + +// List of circuits_circuits_list_distance_unit_parameter +const ( + CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_FT CircuitsCircuitsListDistanceUnitParameter = "ft" + CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_KM CircuitsCircuitsListDistanceUnitParameter = "km" + CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_M CircuitsCircuitsListDistanceUnitParameter = "m" + CIRCUITSCIRCUITSLISTDISTANCEUNITPARAMETER_MI CircuitsCircuitsListDistanceUnitParameter = "mi" +) + +// All allowed values of CircuitsCircuitsListDistanceUnitParameter enum +var AllowedCircuitsCircuitsListDistanceUnitParameterEnumValues = []CircuitsCircuitsListDistanceUnitParameter{ + "ft", + "km", + "m", + "mi", +} + +func (v *CircuitsCircuitsListDistanceUnitParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsCircuitsListDistanceUnitParameter(value) + for _, existing := range AllowedCircuitsCircuitsListDistanceUnitParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsCircuitsListDistanceUnitParameter", value) +} + +// NewCircuitsCircuitsListDistanceUnitParameterFromValue returns a pointer to a valid CircuitsCircuitsListDistanceUnitParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsCircuitsListDistanceUnitParameterFromValue(v string) (*CircuitsCircuitsListDistanceUnitParameter, error) { + ev := CircuitsCircuitsListDistanceUnitParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsCircuitsListDistanceUnitParameter: valid values are %v", v, AllowedCircuitsCircuitsListDistanceUnitParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsCircuitsListDistanceUnitParameter) IsValid() bool { + for _, existing := range AllowedCircuitsCircuitsListDistanceUnitParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to circuits_circuits_list_distance_unit_parameter value +func (v CircuitsCircuitsListDistanceUnitParameter) Ptr() *CircuitsCircuitsListDistanceUnitParameter { + return &v +} + +type NullableCircuitsCircuitsListDistanceUnitParameter struct { + value *CircuitsCircuitsListDistanceUnitParameter + isSet bool +} + +func (v NullableCircuitsCircuitsListDistanceUnitParameter) Get() *CircuitsCircuitsListDistanceUnitParameter { + return v.value +} + +func (v *NullableCircuitsCircuitsListDistanceUnitParameter) Set(val *CircuitsCircuitsListDistanceUnitParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsCircuitsListDistanceUnitParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsCircuitsListDistanceUnitParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsCircuitsListDistanceUnitParameter(val *CircuitsCircuitsListDistanceUnitParameter) *NullableCircuitsCircuitsListDistanceUnitParameter { + return &NullableCircuitsCircuitsListDistanceUnitParameter{value: val, isSet: true} +} + +func (v NullableCircuitsCircuitsListDistanceUnitParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsCircuitsListDistanceUnitParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cluster.go b/model_cluster.go index ac931d63f5..8d307ee926 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,29 @@ 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"` - Description *string `json:"description,omitempty"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Type BriefClusterType `json:"type"` + Group NullableBriefClusterGroup `json:"group,omitempty"` + Status *ClusterStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope,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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + AllocatedVcpus float64 `json:"allocated_vcpus"` + AllocatedMemory int32 `json:"allocated_memory"` + AllocatedDisk int32 `json:"allocated_disk"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,16 @@ type _Cluster Cluster // 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 NewCluster(id int32, url string, display string, name string, virtualmachineCount int64) *Cluster { +func NewCluster(id int32, url string, display string, name string, type_ BriefClusterType, allocatedVcpus float64, allocatedMemory int32, allocatedDisk int32) *Cluster { this := Cluster{} this.Id = id this.Url = url this.Display = display this.Name = name - this.VirtualmachineCount = virtualmachineCount + this.Type = type_ + this.AllocatedVcpus = allocatedVcpus + this.AllocatedMemory = allocatedMemory + this.AllocatedDisk = allocatedDisk return &this } @@ -77,6 +98,7 @@ func (o *Cluster) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Cluster) GetUrl() string { if o == nil { @@ -101,6 +123,39 @@ func (o *Cluster) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Cluster) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Cluster) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Cluster) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Cluster) GetDisplay() string { if o == nil { @@ -125,6 +180,7 @@ func (o *Cluster) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Cluster) GetName() string { if o == nil { @@ -149,6 +205,265 @@ func (o *Cluster) SetName(v string) { o.Name = v } + +// GetType returns the Type field value +func (o *Cluster) GetType() BriefClusterType { + if o == nil { + var ret BriefClusterType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetTypeOk() (*BriefClusterType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Cluster) SetType(v BriefClusterType) { + o.Type = v +} + + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetGroup() BriefClusterGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *Cluster) GetGroupOk() (*BriefClusterGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Cluster) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroup and assigns it to the Group field. +func (o *Cluster) SetGroup(v BriefClusterGroup) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Cluster) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Cluster) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cluster) GetStatus() ClusterStatus { + if o == nil || IsNil(o.Status) { + var ret ClusterStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetStatusOk() (*ClusterStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cluster) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatus and assigns it to the Status field. +func (o *Cluster) SetStatus(v ClusterStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *Cluster) GetTenantOk() (*BriefTenant, 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 *Cluster) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cluster) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cluster) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cluster) UnsetTenant() { + o.Tenant.Unset() +} + +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string + return ret + } + return *o.ScopeType.Get() +} + +// GetScopeTypeOk returns a tuple with the ScopeType 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 *Cluster) GetScopeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ScopeType.Get(), o.ScopeType.IsSet() +} + +// HasScopeType returns a boolean if a field has been set. +func (o *Cluster) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { + return true + } + + return false +} + +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *Cluster) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *Cluster) SetScopeTypeNil() { + o.ScopeType.Set(nil) +} + +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *Cluster) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *Cluster) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *Cluster) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *Cluster) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *Cluster) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *Cluster) UnsetScopeId() { + o.ScopeId.Unset() +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetScope() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope 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 *Cluster) GetScopeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return &o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *Cluster) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given interface{} and assigns it to the Scope field. +func (o *Cluster) SetScope(v interface{}) { + o.Scope = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cluster) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -181,32 +496,327 @@ func (o *Cluster) SetDescription(v string) { o.Description = &v } -// GetVirtualmachineCount returns the VirtualmachineCount field value -func (o *Cluster) GetVirtualmachineCount() int64 { +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cluster) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cluster) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cluster) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cluster) 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 *Cluster) 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 *Cluster) 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 *Cluster) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cluster) 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 *Cluster) 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 *Cluster) 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 *Cluster) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Cluster) GetCreatedOk() (*time.Time, bool) { if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Cluster) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Cluster) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Cluster) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Cluster) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Cluster) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Cluster) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Cluster) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Cluster) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Cluster) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Cluster) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { var ret int64 return ret } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Cluster) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} - return o.VirtualmachineCount +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Cluster) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *Cluster) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount } -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Cluster) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { return nil, false } - return &o.VirtualmachineCount, true + return o.VirtualmachineCount, true } -// SetVirtualmachineCount sets field value +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Cluster) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. func (o *Cluster) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = v + o.VirtualmachineCount = &v +} + +// GetAllocatedVcpus returns the AllocatedVcpus field value +func (o *Cluster) GetAllocatedVcpus() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.AllocatedVcpus +} + +// GetAllocatedVcpusOk returns a tuple with the AllocatedVcpus field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetAllocatedVcpusOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.AllocatedVcpus, true +} + +// SetAllocatedVcpus sets field value +func (o *Cluster) SetAllocatedVcpus(v float64) { + o.AllocatedVcpus = v +} + + +// GetAllocatedMemory returns the AllocatedMemory field value +func (o *Cluster) GetAllocatedMemory() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AllocatedMemory +} + +// GetAllocatedMemoryOk returns a tuple with the AllocatedMemory field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetAllocatedMemoryOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AllocatedMemory, true +} + +// SetAllocatedMemory sets field value +func (o *Cluster) SetAllocatedMemory(v int32) { + o.AllocatedMemory = v +} + + +// GetAllocatedDisk returns the AllocatedDisk field value +func (o *Cluster) GetAllocatedDisk() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AllocatedDisk } +// GetAllocatedDiskOk returns a tuple with the AllocatedDisk field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetAllocatedDiskOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AllocatedDisk, true +} + +// SetAllocatedDisk sets field value +func (o *Cluster) SetAllocatedDisk(v int32) { + o.AllocatedDisk = v +} + + func (o Cluster) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,12 +827,57 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } + if o.Scope != nil { + toSerialize["scope"] = o.Scope + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["virtualmachine_count"] = o.VirtualmachineCount + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + toSerialize["allocated_vcpus"] = o.AllocatedVcpus + toSerialize["allocated_memory"] = o.AllocatedMemory + toSerialize["allocated_disk"] = o.AllocatedDisk for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,23 +895,43 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "virtualmachine_count", + "type", + "allocated_vcpus", + "allocated_memory", + "allocated_disk", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCluster := _Cluster{} err = json.Unmarshal(data, &varCluster) @@ -272,10 +947,27 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") + delete(additionalProperties, "scope") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "allocated_vcpus") + delete(additionalProperties, "allocated_memory") + delete(additionalProperties, "allocated_disk") o.AdditionalProperties = additionalProperties } @@ -317,3 +1009,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 9544ec8500..6cfa331c66 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ClusterGroup type satisfies the MappedNullable interface at compile time @@ -21,17 +21,18 @@ 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 int64 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + ClusterCount *int64 `json:"cluster_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,16 +42,13 @@ type _ClusterGroup ClusterGroup // 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 NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup { +func NewClusterGroup(id int32, url string, display string, name string, slug string) *ClusterGroup { this := ClusterGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.ClusterCount = clusterCount return &this } @@ -86,6 +84,7 @@ func (o *ClusterGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ClusterGroup) GetUrl() string { if o == nil { @@ -110,6 +109,39 @@ func (o *ClusterGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ClusterGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ClusterGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ClusterGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ClusterGroup) GetDisplay() string { if o == nil { @@ -134,6 +166,7 @@ func (o *ClusterGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ClusterGroup) GetName() string { if o == nil { @@ -158,6 +191,7 @@ func (o *ClusterGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ClusterGroup) GetSlug() string { if o == nil { @@ -182,6 +216,7 @@ func (o *ClusterGroup) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -278,18 +313,16 @@ func (o *ClusterGroup) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ClusterGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ClusterGroup) GetCreatedOk() (*time.Time, bool) { @@ -299,23 +332,39 @@ func (o *ClusterGroup) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ClusterGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ClusterGroup) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ClusterGroup) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ClusterGroup) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ClusterGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ClusterGroup) GetLastUpdatedOk() (*time.Time, bool) { @@ -325,37 +374,63 @@ func (o *ClusterGroup) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ClusterGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ClusterGroup) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ClusterGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ClusterGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetClusterCount returns the ClusterCount field value +// GetClusterCount returns the ClusterCount field value if set, zero value otherwise. func (o *ClusterGroup) GetClusterCount() int64 { - if o == nil { + if o == nil || IsNil(o.ClusterCount) { var ret int64 return ret } - - return o.ClusterCount + return *o.ClusterCount } -// GetClusterCountOk returns a tuple with the ClusterCount field value +// GetClusterCountOk returns a tuple with the ClusterCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ClusterGroup) GetClusterCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.ClusterCount) { return nil, false } - return &o.ClusterCount, true + return o.ClusterCount, true +} + +// HasClusterCount returns a boolean if a field has been set. +func (o *ClusterGroup) HasClusterCount() bool { + if o != nil && !IsNil(o.ClusterCount) { + return true + } + + return false } -// SetClusterCount sets field value +// SetClusterCount gets a reference to the given int64 and assigns it to the ClusterCount field. func (o *ClusterGroup) SetClusterCount(v int64) { - o.ClusterCount = v + o.ClusterCount = &v } func (o ClusterGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -366,6 +441,9 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -378,9 +456,15 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["cluster_count"] = o.ClusterCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.ClusterCount) { + toSerialize["cluster_count"] = o.ClusterCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -399,25 +483,39 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", - "cluster_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varClusterGroup := _ClusterGroup{} err = json.Unmarshal(data, &varClusterGroup) @@ -433,6 +531,7 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -483,3 +582,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 1f95667486..23ee1f82df 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,6 +73,7 @@ func (o *ClusterGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ClusterGroupRequest) GetSlug() string { if o == nil { @@ -97,6 +98,7 @@ func (o *ClusterGroupRequest) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -194,7 +196,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 } @@ -231,20 +233,37 @@ func (o *ClusterGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varClusterGroupRequest := _ClusterGroupRequest{} err = json.Unmarshal(data, &varClusterGroupRequest) @@ -304,3 +323,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 a89789ff3d..06d4c5a5d7 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ClusterRequest{} // ClusterRequest Adds support for custom fields and tags. type ClusterRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_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{} } @@ -31,9 +40,10 @@ type _ClusterRequest ClusterRequest // 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 NewClusterRequest(name string) *ClusterRequest { +func NewClusterRequest(name string, type_ BriefClusterTypeRequest) *ClusterRequest { this := ClusterRequest{} this.Name = name + this.Type = type_ return &this } @@ -69,6 +79,232 @@ func (o *ClusterRequest) SetName(v string) { o.Name = v } + +// GetType returns the Type field value +func (o *ClusterRequest) GetType() BriefClusterTypeRequest { + if o == nil { + var ret BriefClusterTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ClusterRequest) SetType(v BriefClusterTypeRequest) { + o.Type = v +} + + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ClusterRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ClusterRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ClusterRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ClusterRequest) GetStatus() ClusterStatusValue { + if o == nil || IsNil(o.Status) { + var ret ClusterStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ClusterRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *ClusterRequest) SetStatus(v ClusterStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *ClusterRequest) GetTenantOk() (*BriefTenantRequest, 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 *ClusterRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ClusterRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *ClusterRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *ClusterRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string + return ret + } + return *o.ScopeType.Get() +} + +// GetScopeTypeOk returns a tuple with the ScopeType 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 *ClusterRequest) GetScopeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ScopeType.Get(), o.ScopeType.IsSet() +} + +// HasScopeType returns a boolean if a field has been set. +func (o *ClusterRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { + return true + } + + return false +} + +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *ClusterRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *ClusterRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) +} + +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *ClusterRequest) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *ClusterRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *ClusterRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *ClusterRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *ClusterRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *ClusterRequest) UnsetScopeId() { + o.ScopeId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +337,104 @@ func (o *ClusterRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ClusterRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ClusterRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ClusterRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ClusterRequest) 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 *ClusterRequest) 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 *ClusterRequest) 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 *ClusterRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ClusterRequest) 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 *ClusterRequest) 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 *ClusterRequest) 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 *ClusterRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ClusterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -112,9 +444,34 @@ func (o ClusterRequest) MarshalJSON() ([]byte, error) { func (o ClusterRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,22 +486,40 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varClusterRequest := _ClusterRequest{} err = json.Unmarshal(data, &varClusterRequest) @@ -159,7 +534,16 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -201,3 +585,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 new file mode 100644 index 0000000000..06b4a22841 --- /dev/null +++ b/model_cluster_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ClusterStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClusterStatus{} + +// ClusterStatus struct for ClusterStatus +type ClusterStatus struct { + Value *ClusterStatusValue `json:"value,omitempty"` + Label *ClusterStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ClusterStatus ClusterStatus + +// NewClusterStatus instantiates a new ClusterStatus 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 NewClusterStatus() *ClusterStatus { + this := ClusterStatus{} + return &this +} + +// NewClusterStatusWithDefaults instantiates a new ClusterStatus 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 NewClusterStatusWithDefaults() *ClusterStatus { + this := ClusterStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ClusterStatus) GetValue() ClusterStatusValue { + if o == nil || IsNil(o.Value) { + var ret ClusterStatusValue + 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 *ClusterStatus) GetValueOk() (*ClusterStatusValue, 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 *ClusterStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ClusterStatusValue and assigns it to the Value field. +func (o *ClusterStatus) SetValue(v ClusterStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ClusterStatus) GetLabel() ClusterStatusLabel { + if o == nil || IsNil(o.Label) { + var ret ClusterStatusLabel + 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 *ClusterStatus) GetLabelOk() (*ClusterStatusLabel, 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 *ClusterStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ClusterStatusLabel and assigns it to the Label field. +func (o *ClusterStatus) SetLabel(v ClusterStatusLabel) { + o.Label = &v +} + +func (o ClusterStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClusterStatus) 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 *ClusterStatus) UnmarshalJSON(data []byte) (err error) { + varClusterStatus := _ClusterStatus{} + + err = json.Unmarshal(data, &varClusterStatus) + + if err != nil { + return err + } + + *o = ClusterStatus(varClusterStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableClusterStatus struct { + value *ClusterStatus + isSet bool +} + +func (v NullableClusterStatus) Get() *ClusterStatus { + return v.value +} + +func (v *NullableClusterStatus) Set(val *ClusterStatus) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatus(val *ClusterStatus) *NullableClusterStatus { + return &NullableClusterStatus{value: val, isSet: true} +} + +func (v NullableClusterStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cluster_status_label.go b/model_cluster_status_label.go new file mode 100644 index 0000000000..0a8637f933 --- /dev/null +++ b/model_cluster_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ClusterStatusLabel the model 'ClusterStatusLabel' +type ClusterStatusLabel string + +// List of Cluster_status_label +const ( + CLUSTERSTATUSLABEL_PLANNED ClusterStatusLabel = "Planned" + CLUSTERSTATUSLABEL_STAGING ClusterStatusLabel = "Staging" + CLUSTERSTATUSLABEL_ACTIVE ClusterStatusLabel = "Active" + CLUSTERSTATUSLABEL_DECOMMISSIONING ClusterStatusLabel = "Decommissioning" + CLUSTERSTATUSLABEL_OFFLINE ClusterStatusLabel = "Offline" +) + +// All allowed values of ClusterStatusLabel enum +var AllowedClusterStatusLabelEnumValues = []ClusterStatusLabel{ + "Planned", + "Staging", + "Active", + "Decommissioning", + "Offline", +} + +func (v *ClusterStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ClusterStatusLabel(value) + for _, existing := range AllowedClusterStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ClusterStatusLabel", value) +} + +// NewClusterStatusLabelFromValue returns a pointer to a valid ClusterStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewClusterStatusLabelFromValue(v string) (*ClusterStatusLabel, error) { + ev := ClusterStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ClusterStatusLabel: valid values are %v", v, AllowedClusterStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ClusterStatusLabel) IsValid() bool { + for _, existing := range AllowedClusterStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cluster_status_label value +func (v ClusterStatusLabel) Ptr() *ClusterStatusLabel { + return &v +} + +type NullableClusterStatusLabel struct { + value *ClusterStatusLabel + isSet bool +} + +func (v NullableClusterStatusLabel) Get() *ClusterStatusLabel { + return v.value +} + +func (v *NullableClusterStatusLabel) Set(val *ClusterStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatusLabel(val *ClusterStatusLabel) *NullableClusterStatusLabel { + return &NullableClusterStatusLabel{value: val, isSet: true} +} + +func (v NullableClusterStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cluster_status_value.go b/model_cluster_status_value.go new file mode 100644 index 0000000000..cfac370646 --- /dev/null +++ b/model_cluster_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ClusterStatusValue * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +type ClusterStatusValue string + +// List of Cluster_status_value +const ( + CLUSTERSTATUSVALUE_PLANNED ClusterStatusValue = "planned" + CLUSTERSTATUSVALUE_STAGING ClusterStatusValue = "staging" + CLUSTERSTATUSVALUE_ACTIVE ClusterStatusValue = "active" + CLUSTERSTATUSVALUE_DECOMMISSIONING ClusterStatusValue = "decommissioning" + CLUSTERSTATUSVALUE_OFFLINE ClusterStatusValue = "offline" +) + +// All allowed values of ClusterStatusValue enum +var AllowedClusterStatusValueEnumValues = []ClusterStatusValue{ + "planned", + "staging", + "active", + "decommissioning", + "offline", +} + +func (v *ClusterStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ClusterStatusValue(value) + for _, existing := range AllowedClusterStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ClusterStatusValue", value) +} + +// NewClusterStatusValueFromValue returns a pointer to a valid ClusterStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewClusterStatusValueFromValue(v string) (*ClusterStatusValue, error) { + ev := ClusterStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ClusterStatusValue: valid values are %v", v, AllowedClusterStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ClusterStatusValue) IsValid() bool { + for _, existing := range AllowedClusterStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cluster_status_value value +func (v ClusterStatusValue) Ptr() *ClusterStatusValue { + return &v +} + +type NullableClusterStatusValue struct { + value *ClusterStatusValue + isSet bool +} + +func (v NullableClusterStatusValue) Get() *ClusterStatusValue { + return v.value +} + +func (v *NullableClusterStatusValue) Set(val *ClusterStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatusValue(val *ClusterStatusValue) *NullableClusterStatusValue { + return &NullableClusterStatusValue{value: val, isSet: true} +} + +func (v NullableClusterStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatusValue) 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 df806d5093..7824fa1adf 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ClusterType type satisfies the MappedNullable interface at compile time @@ -21,17 +21,18 @@ 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 int64 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + ClusterCount *int64 `json:"cluster_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,16 +42,13 @@ type _ClusterType ClusterType // 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 NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType { +func NewClusterType(id int32, url string, display string, name string, slug string) *ClusterType { this := ClusterType{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.ClusterCount = clusterCount return &this } @@ -86,6 +84,7 @@ func (o *ClusterType) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ClusterType) GetUrl() string { if o == nil { @@ -110,6 +109,39 @@ func (o *ClusterType) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ClusterType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ClusterType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ClusterType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ClusterType) GetDisplay() string { if o == nil { @@ -134,6 +166,7 @@ func (o *ClusterType) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ClusterType) GetName() string { if o == nil { @@ -158,6 +191,7 @@ func (o *ClusterType) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ClusterType) GetSlug() string { if o == nil { @@ -182,6 +216,7 @@ func (o *ClusterType) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -278,18 +313,16 @@ func (o *ClusterType) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ClusterType) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ClusterType) GetCreatedOk() (*time.Time, bool) { @@ -299,23 +332,39 @@ func (o *ClusterType) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ClusterType) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ClusterType) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ClusterType) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ClusterType) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ClusterType) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ClusterType) GetLastUpdatedOk() (*time.Time, bool) { @@ -325,37 +374,63 @@ func (o *ClusterType) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ClusterType) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ClusterType) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ClusterType) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ClusterType) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetClusterCount returns the ClusterCount field value +// GetClusterCount returns the ClusterCount field value if set, zero value otherwise. func (o *ClusterType) GetClusterCount() int64 { - if o == nil { + if o == nil || IsNil(o.ClusterCount) { var ret int64 return ret } - - return o.ClusterCount + return *o.ClusterCount } -// GetClusterCountOk returns a tuple with the ClusterCount field value +// GetClusterCountOk returns a tuple with the ClusterCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ClusterType) GetClusterCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.ClusterCount) { return nil, false } - return &o.ClusterCount, true + return o.ClusterCount, true +} + +// HasClusterCount returns a boolean if a field has been set. +func (o *ClusterType) HasClusterCount() bool { + if o != nil && !IsNil(o.ClusterCount) { + return true + } + + return false } -// SetClusterCount sets field value +// SetClusterCount gets a reference to the given int64 and assigns it to the ClusterCount field. func (o *ClusterType) SetClusterCount(v int64) { - o.ClusterCount = v + o.ClusterCount = &v } func (o ClusterType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -366,6 +441,9 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -378,9 +456,15 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["cluster_count"] = o.ClusterCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.ClusterCount) { + toSerialize["cluster_count"] = o.ClusterCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -399,25 +483,39 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", - "cluster_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varClusterType := _ClusterType{} err = json.Unmarshal(data, &varClusterType) @@ -433,6 +531,7 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -483,3 +582,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 a72f53e3bf..e3d8f69d6e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,6 +73,7 @@ func (o *ClusterTypeRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ClusterTypeRequest) GetSlug() string { if o == nil { @@ -97,6 +98,7 @@ func (o *ClusterTypeRequest) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -194,7 +196,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 } @@ -231,20 +233,37 @@ func (o *ClusterTypeRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varClusterTypeRequest := _ClusterTypeRequest{} err = json.Unmarshal(data, &varClusterTypeRequest) @@ -304,3 +323,5 @@ func (v *NullableClusterTypeRequest) 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 8cfdce3277..cf51bc2025 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ConfigContext type satisfies the MappedNullable interface at compile time @@ -21,34 +21,35 @@ 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 []Region `json:"regions,omitempty"` - SiteGroups []SiteGroup `json:"site_groups,omitempty"` - Sites []Site `json:"sites,omitempty"` - Locations []Location `json:"locations,omitempty"` - DeviceTypes []DeviceType `json:"device_types,omitempty"` - Roles []DeviceRole `json:"roles,omitempty"` - Platforms []Platform `json:"platforms,omitempty"` - ClusterTypes []ClusterType `json:"cluster_types,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + 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 []Region `json:"regions,omitempty"` + SiteGroups []SiteGroup `json:"site_groups,omitempty"` + Sites []Site `json:"sites,omitempty"` + Locations []Location `json:"locations,omitempty"` + DeviceTypes []DeviceType `json:"device_types,omitempty"` + Roles []DeviceRole `json:"roles,omitempty"` + Platforms []Platform `json:"platforms,omitempty"` + ClusterTypes []ClusterType `json:"cluster_types,omitempty"` ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` - Clusters []Cluster `json:"clusters,omitempty"` - TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` - Tenants []Tenant `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSource `json:"data_source,omitempty"` + Clusters []Cluster `json:"clusters,omitempty"` + TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` + Tenants []Tenant `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Data interface{} `json:"data"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced,omitempty"` + Data interface{} `json:"data"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -58,7 +59,7 @@ type _ConfigContext ConfigContext // 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 NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { +func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile BriefDataFile, data interface{}) *ConfigContext { this := ConfigContext{} this.Id = id this.Url = url @@ -66,10 +67,7 @@ func NewConfigContext(id int32, url string, display string, name string, dataPat this.Name = name this.DataPath = dataPath this.DataFile = dataFile - this.DataSynced = dataSynced this.Data = data - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -105,6 +103,7 @@ func (o *ConfigContext) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ConfigContext) GetUrl() string { if o == nil { @@ -129,6 +128,39 @@ func (o *ConfigContext) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConfigContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConfigContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConfigContext) GetDisplay() string { if o == nil { @@ -153,6 +185,7 @@ func (o *ConfigContext) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ConfigContext) GetName() string { if o == nil { @@ -177,6 +210,7 @@ func (o *ConfigContext) SetName(v string) { o.Name = v } + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *ConfigContext) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -690,9 +724,9 @@ func (o *ConfigContext) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContext) GetDataSource() DataSource { +func (o *ConfigContext) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -700,7 +734,7 @@ func (o *ConfigContext) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool) { +func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -716,8 +750,8 @@ func (o *ConfigContext) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ConfigContext) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigContext) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -745,10 +779,11 @@ func (o *ConfigContext) SetDataPath(v string) { o.DataPath = v } + // GetDataFile returns the DataFile field value -func (o *ConfigContext) GetDataFile() DataFile { +func (o *ConfigContext) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -757,7 +792,7 @@ func (o *ConfigContext) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { +func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -765,22 +800,21 @@ func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ConfigContext) SetDataFile(v DataFile) { +func (o *ConfigContext) SetDataFile(v BriefDataFile) { o.DataFile = v } -// GetDataSynced returns the DataSynced field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetDataSynced returns the DataSynced field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConfigContext) GetDataSynced() time.Time { - if o == nil || o.DataSynced.Get() == nil { + if o == nil || IsNil(o.DataSynced.Get()) { var ret time.Time return ret } - return *o.DataSynced.Get() } -// GetDataSyncedOk returns a tuple with the DataSynced field value +// GetDataSyncedOk returns a tuple with the DataSynced 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 *ConfigContext) GetDataSyncedOk() (*time.Time, bool) { @@ -790,10 +824,28 @@ func (o *ConfigContext) GetDataSyncedOk() (*time.Time, bool) { return o.DataSynced.Get(), o.DataSynced.IsSet() } -// SetDataSynced sets field value +// HasDataSynced returns a boolean if a field has been set. +func (o *ConfigContext) HasDataSynced() bool { + if o != nil && o.DataSynced.IsSet() { + return true + } + + return false +} + +// SetDataSynced gets a reference to the given NullableTime and assigns it to the DataSynced field. func (o *ConfigContext) SetDataSynced(v time.Time) { o.DataSynced.Set(&v) } +// SetDataSyncedNil sets the value for DataSynced to be an explicit nil +func (o *ConfigContext) SetDataSyncedNil() { + o.DataSynced.Set(nil) +} + +// UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil +func (o *ConfigContext) UnsetDataSynced() { + o.DataSynced.Unset() +} // GetData returns the Data field value // If the value is explicit nil, the zero value for interface{} will be returned @@ -821,18 +873,17 @@ func (o *ConfigContext) SetData(v interface{}) { o.Data = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConfigContext) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ConfigContext) GetCreatedOk() (*time.Time, bool) { @@ -842,23 +893,39 @@ func (o *ConfigContext) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ConfigContext) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ConfigContext) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ConfigContext) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ConfigContext) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConfigContext) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ConfigContext) GetLastUpdatedOk() (*time.Time, bool) { @@ -868,13 +935,31 @@ func (o *ConfigContext) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ConfigContext) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ConfigContext) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ConfigContext) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ConfigContext) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ConfigContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -885,6 +970,9 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Weight) { @@ -940,12 +1028,18 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { } toSerialize["data_path"] = o.DataPath toSerialize["data_file"] = o.DataFile - toSerialize["data_synced"] = o.DataSynced.Get() + if o.DataSynced.IsSet() { + toSerialize["data_synced"] = o.DataSynced.Get() + } if o.Data != nil { toSerialize["data"] = o.Data } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -965,26 +1059,40 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { "name", "data_path", "data_file", - "data_synced", "data", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConfigContext := _ConfigContext{} err = json.Unmarshal(data, &varConfigContext) @@ -1000,6 +1108,7 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "weight") @@ -1066,3 +1175,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 86b8fad880..56c30e263a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,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 *DataSourceRequest `json:"data_source,omitempty"` - Data 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 *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data"` AdditionalProperties map[string]interface{} } @@ -87,6 +87,7 @@ func (o *ConfigContextRequest) SetName(v string) { o.Name = v } + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *ConfigContextRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -600,9 +601,9 @@ func (o *ConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -610,7 +611,7 @@ func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -626,8 +627,8 @@ func (o *ConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } @@ -657,8 +658,9 @@ func (o *ConfigContextRequest) SetData(v interface{}) { o.Data = v } + func (o ConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -739,20 +741,37 @@ func (o *ConfigContextRequest) UnmarshalJSON(data []byte) (err error) { "data", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConfigContextRequest := _ConfigContextRequest{} err = json.Unmarshal(data, &varConfigContextRequest) @@ -826,3 +845,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 3995c0dbd7..9f7a2dff30 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,24 @@ 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"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSource `json:"data_source,omitempty"` + // Path to remote file (relative to data source root) + DataPath string `json:"data_path"` + DataFile *BriefDataFile `json:"data_file,omitempty"` + DataSynced NullableTime `json:"data_synced,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,14 @@ type _ConfigTemplate ConfigTemplate // 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 NewConfigTemplate(id int32, url string, display string, name string) *ConfigTemplate { +func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string) *ConfigTemplate { this := ConfigTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.TemplateCode = templateCode + this.DataPath = dataPath return &this } @@ -75,6 +91,7 @@ func (o *ConfigTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ConfigTemplate) GetUrl() string { if o == nil { @@ -99,6 +116,39 @@ func (o *ConfigTemplate) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConfigTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConfigTemplate) GetDisplay() string { if o == nil { @@ -123,6 +173,7 @@ func (o *ConfigTemplate) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ConfigTemplate) GetName() string { if o == nil { @@ -147,6 +198,7 @@ func (o *ConfigTemplate) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ConfigTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,8 +231,313 @@ func (o *ConfigTemplate) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplate) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams 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 *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplate) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplate) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplate) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplate) SetTemplateCode(v string) { + o.TemplateCode = v +} + + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataSource() BriefDataSource { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSource + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigTemplate) SetDataSource(v BriefDataSource) { + o.DataSource = &v +} + +// GetDataPath returns the DataPath field value +func (o *ConfigTemplate) GetDataPath() string { + if o == nil { + var ret string + return ret + } + + return o.DataPath +} + +// GetDataPathOk returns a tuple with the DataPath field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataPath, true +} + +// SetDataPath sets field value +func (o *ConfigTemplate) SetDataPath(v string) { + o.DataPath = v +} + + +// GetDataFile returns the DataFile field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataFile() BriefDataFile { + if o == nil || IsNil(o.DataFile) { + var ret BriefDataFile + return ret + } + return *o.DataFile +} + +// GetDataFileOk returns a tuple with the DataFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool) { + if o == nil || IsNil(o.DataFile) { + return nil, false + } + return o.DataFile, true +} + +// HasDataFile returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataFile() bool { + if o != nil && !IsNil(o.DataFile) { + return true + } + + return false +} + +// SetDataFile gets a reference to the given BriefDataFile and assigns it to the DataFile field. +func (o *ConfigTemplate) SetDataFile(v BriefDataFile) { + o.DataFile = &v +} + +// GetDataSynced returns the DataSynced field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplate) GetDataSynced() time.Time { + if o == nil || IsNil(o.DataSynced.Get()) { + var ret time.Time + return ret + } + return *o.DataSynced.Get() +} + +// GetDataSyncedOk returns a tuple with the DataSynced 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 *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.DataSynced.Get(), o.DataSynced.IsSet() +} + +// HasDataSynced returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataSynced() bool { + if o != nil && o.DataSynced.IsSet() { + return true + } + + return false +} + +// SetDataSynced gets a reference to the given NullableTime and assigns it to the DataSynced field. +func (o *ConfigTemplate) SetDataSynced(v time.Time) { + o.DataSynced.Set(&v) +} +// SetDataSyncedNil sets the value for DataSynced to be an explicit nil +func (o *ConfigTemplate) SetDataSyncedNil() { + o.DataSynced.Set(nil) +} + +// UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil +func (o *ConfigTemplate) UnsetDataSynced() { + o.DataSynced.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplate) 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 *ConfigTemplate) 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 *ConfigTemplate) 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 *ConfigTemplate) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplate) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *ConfigTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *ConfigTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *ConfigTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ConfigTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ConfigTemplate) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplate) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *ConfigTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *ConfigTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ConfigTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ConfigTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o ConfigTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -191,11 +548,37 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + toSerialize["data_path"] = o.DataPath + if !IsNil(o.DataFile) { + toSerialize["data_file"] = o.DataFile + } + if o.DataSynced.IsSet() { + toSerialize["data_synced"] = o.DataSynced.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -213,22 +596,41 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "template_code", + "data_path", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConfigTemplate := _ConfigTemplate{} err = json.Unmarshal(data, &varConfigTemplate) @@ -244,9 +646,19 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "data_path") + delete(additionalProperties, "data_file") + delete(additionalProperties, "data_synced") + delete(additionalProperties, "tags") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -288,3 +700,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 916c0e4912..e5a9ada758 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +37,10 @@ type _ConfigTemplateRequest ConfigTemplateRequest // 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 NewConfigTemplateRequest(name string) *ConfigTemplateRequest { +func NewConfigTemplateRequest(name string, templateCode string) *ConfigTemplateRequest { this := ConfigTemplateRequest{} this.Name = name + this.TemplateCode = templateCode return &this } @@ -69,6 +76,7 @@ func (o *ConfigTemplateRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ConfigTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +109,130 @@ func (o *ConfigTemplateRequest) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams 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 *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplateRequest) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplateRequest) SetTemplateCode(v string) { + o.TemplateCode = v +} + + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSourceRequest + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { + o.DataSource = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) 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 *ConfigTemplateRequest) 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 *ConfigTemplateRequest) 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 *ConfigTemplateRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o ConfigTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -115,6 +245,16 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,22 +269,40 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "template_code", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConfigTemplateRequest := _ConfigTemplateRequest{} err = json.Unmarshal(data, &varConfigTemplateRequest) @@ -160,6 +318,10 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } @@ -201,3 +363,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 c931788c33..19158bd94b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ConsolePort type satisfies the MappedNullable interface at compile time @@ -21,33 +21,34 @@ 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 Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `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 NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + 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 NullableString `json:"link_peers_type,omitempty"` + ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _ConsolePort ConsolePort @@ -56,22 +57,16 @@ type _ConsolePort ConsolePort // 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 NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { +func NewConsolePort(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool) *ConsolePort { this := ConsolePort{} this.Id = id this.Url = url this.Display = display this.Device = device this.Name = name - this.Cable = cable this.CableEnd = cableEnd this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.ConnectedEndpoints = connectedEndpoints - this.ConnectedEndpointsType = connectedEndpointsType this.ConnectedEndpointsReachable = connectedEndpointsReachable - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -108,6 +103,7 @@ func (o *ConsolePort) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ConsolePort) GetUrl() string { if o == nil { @@ -132,6 +128,39 @@ func (o *ConsolePort) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConsolePort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsolePort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConsolePort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConsolePort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConsolePort) GetDisplay() string { if o == nil { @@ -156,10 +185,11 @@ func (o *ConsolePort) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *ConsolePort) GetDevice() Device { +func (o *ConsolePort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +198,7 @@ func (o *ConsolePort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePort) GetDeviceOk() (*Device, bool) { +func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +206,15 @@ func (o *ConsolePort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsolePort) SetDevice(v Device) { +func (o *ConsolePort) SetDevice(v BriefDevice) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePort) GetModule() Module { +func (o *ConsolePort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +223,7 @@ func (o *ConsolePort) GetModule() Module { // GetModuleOk returns a tuple with the Module 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 *ConsolePort) GetModuleOk() (*Module, bool) { +func (o *ConsolePort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,11 +239,10 @@ func (o *ConsolePort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsolePort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsolePort) SetModule(v BriefModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsolePort) SetModuleNil() { o.Module.Set(nil) @@ -247,6 +277,7 @@ func (o *ConsolePort) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsolePort) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -343,7 +374,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) @@ -418,31 +448,47 @@ func (o *ConsolePort) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsolePort) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConsolePort) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *ConsolePort) GetCableOk() (*Cable, bool) { +func (o *ConsolePort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *ConsolePort) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *ConsolePort) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *ConsolePort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *ConsolePort) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *ConsolePort) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *ConsolePort) GetCableEnd() string { @@ -468,6 +514,7 @@ func (o *ConsolePort) SetCableEnd(v string) { o.CableEnd = v } + // GetLinkPeers returns the LinkPeers field value func (o *ConsolePort) GetLinkPeers() []interface{} { if o == nil { @@ -492,76 +539,122 @@ func (o *ConsolePort) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsolePort) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *ConsolePort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() +} + +// HasLinkPeersType returns a boolean if a field has been set. +func (o *ConsolePort) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false } -// SetLinkPeersType sets field value +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *ConsolePort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *ConsolePort) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) +} + +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *ConsolePort) UnsetLinkPeersType() { + o.LinkPeersType.Unset() } -// GetConnectedEndpoints returns the ConnectedEndpoints field value +// GetConnectedEndpoints returns the ConnectedEndpoints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsolePort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} return ret } - return o.ConnectedEndpoints } -// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints 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 *ConsolePort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true } -// SetConnectedEndpoints sets field value +// HasConnectedEndpoints returns a boolean if a field has been set. +func (o *ConsolePort) HasConnectedEndpoints() bool { + if o != nil && !IsNil(o.ConnectedEndpoints) { + return true + } + + return false +} + +// SetConnectedEndpoints gets a reference to the given []interface{} and assigns it to the ConnectedEndpoints field. func (o *ConsolePort) SetConnectedEndpoints(v []interface{}) { o.ConnectedEndpoints = v } -// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsolePort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpointsType.Get()) { var ret string return ret } - - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } -// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType 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 *ConsolePort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } -// SetConnectedEndpointsType sets field value +// HasConnectedEndpointsType returns a boolean if a field has been set. +func (o *ConsolePort) HasConnectedEndpointsType() bool { + if o != nil && o.ConnectedEndpointsType.IsSet() { + return true + } + + return false +} + +// SetConnectedEndpointsType gets a reference to the given NullableString and assigns it to the ConnectedEndpointsType field. func (o *ConsolePort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) +} +// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil +func (o *ConsolePort) SetConnectedEndpointsTypeNil() { + o.ConnectedEndpointsType.Set(nil) +} + +// UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +func (o *ConsolePort) UnsetConnectedEndpointsType() { + o.ConnectedEndpointsType.Unset() } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -588,6 +681,7 @@ func (o *ConsolePort) SetConnectedEndpointsReachable(v bool) { o.ConnectedEndpointsReachable = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *ConsolePort) GetTags() []NestedTag { if o == nil || IsNil(o.Tags) { @@ -652,18 +746,16 @@ func (o *ConsolePort) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsolePort) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ConsolePort) GetCreatedOk() (*time.Time, bool) { @@ -673,23 +765,39 @@ func (o *ConsolePort) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ConsolePort) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ConsolePort) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ConsolePort) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ConsolePort) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsolePort) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ConsolePort) GetLastUpdatedOk() (*time.Time, bool) { @@ -699,10 +807,28 @@ func (o *ConsolePort) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ConsolePort) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ConsolePort) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ConsolePort) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ConsolePort) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *ConsolePort) GetOccupied() bool { @@ -728,8 +854,9 @@ func (o *ConsolePort) SetOccupied(v bool) { o.Occupied = v } + func (o ConsolePort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -740,6 +867,9 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -761,12 +891,20 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } 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 + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + if o.ConnectedEndpointsType.IsSet() { + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + } toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -774,8 +912,12 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -795,32 +937,43 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { "display", "device", "name", - "cable", "cable_end", "link_peers", - "link_peers_type", - "connected_endpoints", - "connected_endpoints_type", "connected_endpoints_reachable", - "created", - "last_updated", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsolePort := _ConsolePort{} err = json.Unmarshal(data, &varConsolePort) @@ -836,6 +989,7 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") @@ -898,3 +1052,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 02bc1a10aa..f3a3c98859 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &ConsolePortRequest{} // ConsolePortRequest Adds support for custom fields and tags. type ConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *ConsolePortTypeValue `json:"type,omitempty"` + Speed NullableConsolePortRequestSpeed `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{} } @@ -41,7 +41,7 @@ type _ConsolePortRequest ConsolePortRequest // 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 NewConsolePortRequest(device DeviceRequest, name string) *ConsolePortRequest { +func NewConsolePortRequest(device BriefDeviceRequest, name string) *ConsolePortRequest { this := ConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsolePortRequestWithDefaults() *ConsolePortRequest { } // GetDevice returns the Device field value -func (o *ConsolePortRequest) GetDevice() DeviceRequest { +func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,15 @@ func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortRequest) GetModule() ModuleRequest { +func (o *ConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +93,7 @@ func (o *ConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,11 +109,10 @@ func (o *ConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsolePortRequest) SetModuleNil() { o.Module.Set(nil) @@ -147,6 +147,7 @@ func (o *ConsolePortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsolePortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -243,7 +244,6 @@ func (o *ConsolePortRequest) HasSpeed() bool { func (o *ConsolePortRequest) SetSpeed(v ConsolePortRequestSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *ConsolePortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -383,7 +383,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 } @@ -435,20 +435,37 @@ func (o *ConsolePortRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsolePortRequest := _ConsolePortRequest{} err = json.Unmarshal(data, &varConsolePortRequest) @@ -513,3 +530,5 @@ func (v *NullableConsolePortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go index c00a14247e..7d7bf075b2 100644 --- a/model_console_port_request_speed.go +++ b/model_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ type ConsolePortRequestSpeed int32 // List of ConsolePortRequest_speed const ( - CONSOLEPORTREQUESTSPEED__1200 ConsolePortRequestSpeed = 1200 - CONSOLEPORTREQUESTSPEED__2400 ConsolePortRequestSpeed = 2400 - CONSOLEPORTREQUESTSPEED__4800 ConsolePortRequestSpeed = 4800 - CONSOLEPORTREQUESTSPEED__9600 ConsolePortRequestSpeed = 9600 - CONSOLEPORTREQUESTSPEED__19200 ConsolePortRequestSpeed = 19200 - CONSOLEPORTREQUESTSPEED__38400 ConsolePortRequestSpeed = 38400 - CONSOLEPORTREQUESTSPEED__57600 ConsolePortRequestSpeed = 57600 + CONSOLEPORTREQUESTSPEED__1200 ConsolePortRequestSpeed = 1200 + CONSOLEPORTREQUESTSPEED__2400 ConsolePortRequestSpeed = 2400 + CONSOLEPORTREQUESTSPEED__4800 ConsolePortRequestSpeed = 4800 + CONSOLEPORTREQUESTSPEED__9600 ConsolePortRequestSpeed = 9600 + CONSOLEPORTREQUESTSPEED__19200 ConsolePortRequestSpeed = 19200 + CONSOLEPORTREQUESTSPEED__38400 ConsolePortRequestSpeed = 38400 + CONSOLEPORTREQUESTSPEED__57600 ConsolePortRequestSpeed = 57600 CONSOLEPORTREQUESTSPEED__115200 ConsolePortRequestSpeed = 115200 ) @@ -120,3 +120,4 @@ func (v *NullableConsolePortRequestSpeed) 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 e28484684d..b0f1414766 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &ConsolePortSpeed{} // ConsolePortSpeed struct for ConsolePortSpeed type ConsolePortSpeed struct { - Value *ConsolePortSpeedValue `json:"value,omitempty"` - Label *ConsolePortSpeedLabel `json:"label,omitempty"` + Value *ConsolePortSpeedValue `json:"value,omitempty"` + Label *ConsolePortSpeedLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *ConsolePortSpeed) SetLabel(v ConsolePortSpeedLabel) { } func (o ConsolePortSpeed) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableConsolePortSpeed) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go index 4a4aaa9755..54958f0ab7 100644 --- a/model_console_port_speed_label.go +++ b/model_console_port_speed_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ type ConsolePortSpeedLabel string // List of ConsolePort_speed_label const ( - CONSOLEPORTSPEEDLABEL__1200_BPS ConsolePortSpeedLabel = "1200 bps" - CONSOLEPORTSPEEDLABEL__2400_BPS ConsolePortSpeedLabel = "2400 bps" - CONSOLEPORTSPEEDLABEL__4800_BPS ConsolePortSpeedLabel = "4800 bps" - CONSOLEPORTSPEEDLABEL__9600_BPS ConsolePortSpeedLabel = "9600 bps" - CONSOLEPORTSPEEDLABEL__19_2_KBPS ConsolePortSpeedLabel = "19.2 kbps" - CONSOLEPORTSPEEDLABEL__38_4_KBPS ConsolePortSpeedLabel = "38.4 kbps" - CONSOLEPORTSPEEDLABEL__57_6_KBPS ConsolePortSpeedLabel = "57.6 kbps" + CONSOLEPORTSPEEDLABEL__1200_BPS ConsolePortSpeedLabel = "1200 bps" + CONSOLEPORTSPEEDLABEL__2400_BPS ConsolePortSpeedLabel = "2400 bps" + CONSOLEPORTSPEEDLABEL__4800_BPS ConsolePortSpeedLabel = "4800 bps" + CONSOLEPORTSPEEDLABEL__9600_BPS ConsolePortSpeedLabel = "9600 bps" + CONSOLEPORTSPEEDLABEL__19_2_KBPS ConsolePortSpeedLabel = "19.2 kbps" + CONSOLEPORTSPEEDLABEL__38_4_KBPS ConsolePortSpeedLabel = "38.4 kbps" + CONSOLEPORTSPEEDLABEL__57_6_KBPS ConsolePortSpeedLabel = "57.6 kbps" CONSOLEPORTSPEEDLABEL__115_2_KBPS ConsolePortSpeedLabel = "115.2 kbps" ) @@ -120,3 +120,4 @@ func (v *NullableConsolePortSpeedLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go index 814b669e04..c35c1316c6 100644 --- a/model_console_port_speed_value.go +++ b/model_console_port_speed_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ type ConsolePortSpeedValue int32 // List of ConsolePort_speed_value const ( - CONSOLEPORTSPEEDVALUE__1200 ConsolePortSpeedValue = 1200 - CONSOLEPORTSPEEDVALUE__2400 ConsolePortSpeedValue = 2400 - CONSOLEPORTSPEEDVALUE__4800 ConsolePortSpeedValue = 4800 - CONSOLEPORTSPEEDVALUE__9600 ConsolePortSpeedValue = 9600 - CONSOLEPORTSPEEDVALUE__19200 ConsolePortSpeedValue = 19200 - CONSOLEPORTSPEEDVALUE__38400 ConsolePortSpeedValue = 38400 - CONSOLEPORTSPEEDVALUE__57600 ConsolePortSpeedValue = 57600 + CONSOLEPORTSPEEDVALUE__1200 ConsolePortSpeedValue = 1200 + CONSOLEPORTSPEEDVALUE__2400 ConsolePortSpeedValue = 2400 + CONSOLEPORTSPEEDVALUE__4800 ConsolePortSpeedValue = 4800 + CONSOLEPORTSPEEDVALUE__9600 ConsolePortSpeedValue = 9600 + CONSOLEPORTSPEEDVALUE__19200 ConsolePortSpeedValue = 19200 + CONSOLEPORTSPEEDVALUE__38400 ConsolePortSpeedValue = 38400 + CONSOLEPORTSPEEDVALUE__57600 ConsolePortSpeedValue = 57600 CONSOLEPORTSPEEDVALUE__115200 ConsolePortSpeedValue = 115200 ) @@ -120,3 +120,4 @@ func (v *NullableConsolePortSpeedValue) 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 804ed4efc0..c054a75b1d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ConsolePortTemplate type satisfies the MappedNullable interface at compile time @@ -21,19 +21,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"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,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"` - 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,14 +43,12 @@ type _ConsolePortTemplate ConsolePortTemplate // 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 NewConsolePortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *ConsolePortTemplate { +func NewConsolePortTemplate(id int32, url string, display string, name string) *ConsolePortTemplate { this := ConsolePortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -86,6 +84,7 @@ func (o *ConsolePortTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ConsolePortTemplate) GetUrl() string { if o == nil { @@ -110,6 +109,7 @@ func (o *ConsolePortTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *ConsolePortTemplate) GetDisplay() string { if o == nil { @@ -134,10 +134,11 @@ func (o *ConsolePortTemplate) SetDisplay(v string) { o.Display = v } + // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetDeviceType() DeviceType { +func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +147,7 @@ func (o *ConsolePortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,11 +163,10 @@ func (o *ConsolePortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsolePortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsolePortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -178,9 +178,9 @@ func (o *ConsolePortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetModuleType() ModuleType { +func (o *ConsolePortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsolePortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType 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 *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,11 +205,10 @@ func (o *ConsolePortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsolePortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsolePortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -244,6 +243,7 @@ func (o *ConsolePortTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsolePortTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -340,18 +340,16 @@ func (o *ConsolePortTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsolePortTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ConsolePortTemplate) GetCreatedOk() (*time.Time, bool) { @@ -361,23 +359,39 @@ func (o *ConsolePortTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ConsolePortTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ConsolePortTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ConsolePortTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ConsolePortTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsolePortTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ConsolePortTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -387,13 +401,31 @@ func (o *ConsolePortTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ConsolePortTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ConsolePortTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ConsolePortTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ConsolePortTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ConsolePortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -421,8 +453,12 @@ func (o ConsolePortTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -440,24 +476,39 @@ func (o *ConsolePortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsolePortTemplate := _ConsolePortTemplate{} err = json.Unmarshal(data, &varConsolePortTemplate) @@ -523,3 +574,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 e3f1100b75..2d204211b6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &ConsolePortTemplateRequest{} // ConsolePortTemplateRequest 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 ConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *ConsolePortTypeValue `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +52,9 @@ func NewConsolePortTemplateRequestWithDefaults() *ConsolePortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,11 +79,10 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsolePortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -95,9 +94,9 @@ func (o *ConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +105,7 @@ func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,11 +121,10 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsolePortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -161,6 +159,7 @@ func (o *ConsolePortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsolePortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -258,7 +257,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 } @@ -299,20 +298,37 @@ func (o *ConsolePortTemplateRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsolePortTemplateRequest := _ConsolePortTemplateRequest{} err = json.Unmarshal(data, &varConsolePortTemplateRequest) @@ -373,3 +389,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 9e92401fc2..46e21b8954 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &ConsolePortType{} // ConsolePortType struct for ConsolePortType type ConsolePortType struct { - Value *ConsolePortTypeValue `json:"value,omitempty"` - Label *ConsolePortTypeLabel `json:"label,omitempty"` + Value *ConsolePortTypeValue `json:"value,omitempty"` + Label *ConsolePortTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *ConsolePortType) SetLabel(v ConsolePortTypeLabel) { } func (o ConsolePortType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableConsolePortType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go index 9e6a3ab15a..5a8e1414b1 100644 --- a/model_console_port_type_label.go +++ b/model_console_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ type ConsolePortTypeLabel string // List of ConsolePort_type_label const ( - CONSOLEPORTTYPELABEL_DE_9 ConsolePortTypeLabel = "DE-9" - CONSOLEPORTTYPELABEL_DB_25 ConsolePortTypeLabel = "DB-25" - CONSOLEPORTTYPELABEL_RJ_11 ConsolePortTypeLabel = "RJ-11" - CONSOLEPORTTYPELABEL_RJ_12 ConsolePortTypeLabel = "RJ-12" - CONSOLEPORTTYPELABEL_RJ_45 ConsolePortTypeLabel = "RJ-45" - CONSOLEPORTTYPELABEL_MINI_DIN_8 ConsolePortTypeLabel = "Mini-DIN 8" - CONSOLEPORTTYPELABEL_USB_TYPE_A ConsolePortTypeLabel = "USB Type A" - CONSOLEPORTTYPELABEL_USB_TYPE_B ConsolePortTypeLabel = "USB Type B" - CONSOLEPORTTYPELABEL_USB_TYPE_C ConsolePortTypeLabel = "USB Type C" - CONSOLEPORTTYPELABEL_USB_MINI_A ConsolePortTypeLabel = "USB Mini A" - CONSOLEPORTTYPELABEL_USB_MINI_B ConsolePortTypeLabel = "USB Mini B" - CONSOLEPORTTYPELABEL_USB_MICRO_A ConsolePortTypeLabel = "USB Micro A" - CONSOLEPORTTYPELABEL_USB_MICRO_B ConsolePortTypeLabel = "USB Micro B" + CONSOLEPORTTYPELABEL_DE_9 ConsolePortTypeLabel = "DE-9" + CONSOLEPORTTYPELABEL_DB_25 ConsolePortTypeLabel = "DB-25" + CONSOLEPORTTYPELABEL_RJ_11 ConsolePortTypeLabel = "RJ-11" + CONSOLEPORTTYPELABEL_RJ_12 ConsolePortTypeLabel = "RJ-12" + CONSOLEPORTTYPELABEL_RJ_45 ConsolePortTypeLabel = "RJ-45" + CONSOLEPORTTYPELABEL_MINI_DIN_8 ConsolePortTypeLabel = "Mini-DIN 8" + CONSOLEPORTTYPELABEL_USB_TYPE_A ConsolePortTypeLabel = "USB Type A" + CONSOLEPORTTYPELABEL_USB_TYPE_B ConsolePortTypeLabel = "USB Type B" + CONSOLEPORTTYPELABEL_USB_TYPE_C ConsolePortTypeLabel = "USB Type C" + CONSOLEPORTTYPELABEL_USB_MINI_A ConsolePortTypeLabel = "USB Mini A" + CONSOLEPORTTYPELABEL_USB_MINI_B ConsolePortTypeLabel = "USB Mini B" + CONSOLEPORTTYPELABEL_USB_MICRO_A ConsolePortTypeLabel = "USB Micro A" + CONSOLEPORTTYPELABEL_USB_MICRO_B ConsolePortTypeLabel = "USB Micro B" CONSOLEPORTTYPELABEL_USB_MICRO_AB ConsolePortTypeLabel = "USB Micro AB" - CONSOLEPORTTYPELABEL_OTHER ConsolePortTypeLabel = "Other" + CONSOLEPORTTYPELABEL_OTHER ConsolePortTypeLabel = "Other" ) // All allowed values of ConsolePortTypeLabel enum @@ -134,3 +134,4 @@ func (v *NullableConsolePortTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go index f9f68676da..ceba807ee3 100644 --- a/model_console_port_type_value.go +++ b/model_console_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ type ConsolePortTypeValue string // List of ConsolePort_type_value const ( - CONSOLEPORTTYPEVALUE_DE_9 ConsolePortTypeValue = "de-9" - CONSOLEPORTTYPEVALUE_DB_25 ConsolePortTypeValue = "db-25" - CONSOLEPORTTYPEVALUE_RJ_11 ConsolePortTypeValue = "rj-11" - CONSOLEPORTTYPEVALUE_RJ_12 ConsolePortTypeValue = "rj-12" - CONSOLEPORTTYPEVALUE_RJ_45 ConsolePortTypeValue = "rj-45" - CONSOLEPORTTYPEVALUE_MINI_DIN_8 ConsolePortTypeValue = "mini-din-8" - CONSOLEPORTTYPEVALUE_USB_A ConsolePortTypeValue = "usb-a" - CONSOLEPORTTYPEVALUE_USB_B ConsolePortTypeValue = "usb-b" - CONSOLEPORTTYPEVALUE_USB_C ConsolePortTypeValue = "usb-c" - CONSOLEPORTTYPEVALUE_USB_MINI_A ConsolePortTypeValue = "usb-mini-a" - CONSOLEPORTTYPEVALUE_USB_MINI_B ConsolePortTypeValue = "usb-mini-b" - CONSOLEPORTTYPEVALUE_USB_MICRO_A ConsolePortTypeValue = "usb-micro-a" - CONSOLEPORTTYPEVALUE_USB_MICRO_B ConsolePortTypeValue = "usb-micro-b" + CONSOLEPORTTYPEVALUE_DE_9 ConsolePortTypeValue = "de-9" + CONSOLEPORTTYPEVALUE_DB_25 ConsolePortTypeValue = "db-25" + CONSOLEPORTTYPEVALUE_RJ_11 ConsolePortTypeValue = "rj-11" + CONSOLEPORTTYPEVALUE_RJ_12 ConsolePortTypeValue = "rj-12" + CONSOLEPORTTYPEVALUE_RJ_45 ConsolePortTypeValue = "rj-45" + CONSOLEPORTTYPEVALUE_MINI_DIN_8 ConsolePortTypeValue = "mini-din-8" + CONSOLEPORTTYPEVALUE_USB_A ConsolePortTypeValue = "usb-a" + CONSOLEPORTTYPEVALUE_USB_B ConsolePortTypeValue = "usb-b" + CONSOLEPORTTYPEVALUE_USB_C ConsolePortTypeValue = "usb-c" + CONSOLEPORTTYPEVALUE_USB_MINI_A ConsolePortTypeValue = "usb-mini-a" + CONSOLEPORTTYPEVALUE_USB_MINI_B ConsolePortTypeValue = "usb-mini-b" + CONSOLEPORTTYPEVALUE_USB_MICRO_A ConsolePortTypeValue = "usb-micro-a" + CONSOLEPORTTYPEVALUE_USB_MICRO_B ConsolePortTypeValue = "usb-micro-b" CONSOLEPORTTYPEVALUE_USB_MICRO_AB ConsolePortTypeValue = "usb-micro-ab" - CONSOLEPORTTYPEVALUE_OTHER ConsolePortTypeValue = "other" - CONSOLEPORTTYPEVALUE_EMPTY ConsolePortTypeValue = "" + CONSOLEPORTTYPEVALUE_OTHER ConsolePortTypeValue = "other" + CONSOLEPORTTYPEVALUE_EMPTY ConsolePortTypeValue = "" ) // All allowed values of ConsolePortTypeValue enum @@ -136,3 +136,4 @@ func (v *NullableConsolePortTypeValue) 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 958e45db05..f730dda4e5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ConsoleServerPort type satisfies the MappedNullable interface at compile time @@ -21,33 +21,34 @@ 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 Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `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 NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + 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 NullableString `json:"link_peers_type,omitempty"` + ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _ConsoleServerPort ConsoleServerPort @@ -56,22 +57,16 @@ type _ConsoleServerPort ConsoleServerPort // 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 NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { +func NewConsoleServerPort(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool) *ConsoleServerPort { this := ConsoleServerPort{} this.Id = id this.Url = url this.Display = display this.Device = device this.Name = name - this.Cable = cable this.CableEnd = cableEnd this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.ConnectedEndpoints = connectedEndpoints - this.ConnectedEndpointsType = connectedEndpointsType this.ConnectedEndpointsReachable = connectedEndpointsReachable - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -108,6 +103,7 @@ func (o *ConsoleServerPort) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ConsoleServerPort) GetUrl() string { if o == nil { @@ -132,6 +128,39 @@ func (o *ConsoleServerPort) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConsoleServerPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConsoleServerPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConsoleServerPort) GetDisplay() string { if o == nil { @@ -156,10 +185,11 @@ func (o *ConsoleServerPort) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *ConsoleServerPort) GetDevice() Device { +func (o *ConsoleServerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +198,7 @@ func (o *ConsoleServerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { +func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +206,15 @@ func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsoleServerPort) SetDevice(v Device) { +func (o *ConsoleServerPort) SetDevice(v BriefDevice) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPort) GetModule() Module { +func (o *ConsoleServerPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +223,7 @@ func (o *ConsoleServerPort) GetModule() Module { // GetModuleOk returns a tuple with the Module 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 *ConsoleServerPort) GetModuleOk() (*Module, bool) { +func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,11 +239,10 @@ func (o *ConsoleServerPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsoleServerPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsoleServerPort) SetModule(v BriefModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsoleServerPort) SetModuleNil() { o.Module.Set(nil) @@ -247,6 +277,7 @@ func (o *ConsoleServerPort) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsoleServerPort) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -343,7 +374,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) @@ -418,31 +448,47 @@ func (o *ConsoleServerPort) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsoleServerPort) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConsoleServerPort) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *ConsoleServerPort) GetCableOk() (*Cable, bool) { +func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *ConsoleServerPort) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *ConsoleServerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *ConsoleServerPort) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *ConsoleServerPort) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *ConsoleServerPort) GetCableEnd() string { @@ -468,6 +514,7 @@ func (o *ConsoleServerPort) SetCableEnd(v string) { o.CableEnd = v } + // GetLinkPeers returns the LinkPeers field value func (o *ConsoleServerPort) GetLinkPeers() []interface{} { if o == nil { @@ -492,76 +539,122 @@ func (o *ConsoleServerPort) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsoleServerPort) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *ConsoleServerPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() +} + +// HasLinkPeersType returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false } -// SetLinkPeersType sets field value +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *ConsoleServerPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *ConsoleServerPort) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) +} + +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *ConsoleServerPort) UnsetLinkPeersType() { + o.LinkPeersType.Unset() } -// GetConnectedEndpoints returns the ConnectedEndpoints field value +// GetConnectedEndpoints returns the ConnectedEndpoints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} return ret } - return o.ConnectedEndpoints } -// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints 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 *ConsoleServerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true } -// SetConnectedEndpoints sets field value +// HasConnectedEndpoints returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasConnectedEndpoints() bool { + if o != nil && !IsNil(o.ConnectedEndpoints) { + return true + } + + return false +} + +// SetConnectedEndpoints gets a reference to the given []interface{} and assigns it to the ConnectedEndpoints field. func (o *ConsoleServerPort) SetConnectedEndpoints(v []interface{}) { o.ConnectedEndpoints = v } -// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsoleServerPort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpointsType.Get()) { var ret string return ret } - - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } -// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType 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 *ConsoleServerPort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } -// SetConnectedEndpointsType sets field value +// HasConnectedEndpointsType returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasConnectedEndpointsType() bool { + if o != nil && o.ConnectedEndpointsType.IsSet() { + return true + } + + return false +} + +// SetConnectedEndpointsType gets a reference to the given NullableString and assigns it to the ConnectedEndpointsType field. func (o *ConsoleServerPort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) +} +// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil +func (o *ConsoleServerPort) SetConnectedEndpointsTypeNil() { + o.ConnectedEndpointsType.Set(nil) +} + +// UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +func (o *ConsoleServerPort) UnsetConnectedEndpointsType() { + o.ConnectedEndpointsType.Unset() } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -588,6 +681,7 @@ func (o *ConsoleServerPort) SetConnectedEndpointsReachable(v bool) { o.ConnectedEndpointsReachable = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *ConsoleServerPort) GetTags() []NestedTag { if o == nil || IsNil(o.Tags) { @@ -652,18 +746,16 @@ func (o *ConsoleServerPort) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsoleServerPort) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ConsoleServerPort) GetCreatedOk() (*time.Time, bool) { @@ -673,23 +765,39 @@ func (o *ConsoleServerPort) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ConsoleServerPort) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ConsoleServerPort) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ConsoleServerPort) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsoleServerPort) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ConsoleServerPort) GetLastUpdatedOk() (*time.Time, bool) { @@ -699,10 +807,28 @@ func (o *ConsoleServerPort) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ConsoleServerPort) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ConsoleServerPort) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ConsoleServerPort) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *ConsoleServerPort) GetOccupied() bool { @@ -728,8 +854,9 @@ func (o *ConsoleServerPort) SetOccupied(v bool) { o.Occupied = v } + func (o ConsoleServerPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -740,6 +867,9 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -761,12 +891,20 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } 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 + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + if o.ConnectedEndpointsType.IsSet() { + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + } toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -774,8 +912,12 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -795,32 +937,43 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { "display", "device", "name", - "cable", "cable_end", "link_peers", - "link_peers_type", - "connected_endpoints", - "connected_endpoints_type", "connected_endpoints_reachable", - "created", - "last_updated", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsoleServerPort := _ConsoleServerPort{} err = json.Unmarshal(data, &varConsoleServerPort) @@ -836,6 +989,7 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") @@ -898,3 +1052,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 a51f7782ac..2f7da549e4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &ConsoleServerPortRequest{} // ConsoleServerPortRequest Adds support for custom fields and tags. type ConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Speed NullableConsolePortRequestSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *ConsolePortTypeValue `json:"type,omitempty"` + Speed NullableConsolePortRequestSpeed `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{} } @@ -41,7 +41,7 @@ type _ConsoleServerPortRequest ConsoleServerPortRequest // 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 NewConsoleServerPortRequest(device DeviceRequest, name string) *ConsoleServerPortRequest { +func NewConsoleServerPortRequest(device BriefDeviceRequest, name string) *ConsoleServerPortRequest { this := ConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsoleServerPortRequestWithDefaults() *ConsoleServerPortRequest { } // GetDevice returns the Device field value -func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,15 @@ func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +93,7 @@ func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,11 +109,10 @@ func (o *ConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsoleServerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -147,6 +147,7 @@ func (o *ConsoleServerPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsoleServerPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -243,7 +244,6 @@ func (o *ConsoleServerPortRequest) HasSpeed() bool { func (o *ConsoleServerPortRequest) SetSpeed(v ConsolePortRequestSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *ConsoleServerPortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -383,7 +383,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 } @@ -435,20 +435,37 @@ func (o *ConsoleServerPortRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsoleServerPortRequest := _ConsoleServerPortRequest{} err = json.Unmarshal(data, &varConsoleServerPortRequest) @@ -513,3 +530,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 1ab6eee1c6..3e0848926a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ConsoleServerPortTemplate type satisfies the MappedNullable interface at compile time @@ -21,19 +21,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"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,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"` - 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,14 +43,12 @@ type _ConsoleServerPortTemplate ConsoleServerPortTemplate // 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 NewConsoleServerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *ConsoleServerPortTemplate { +func NewConsoleServerPortTemplate(id int32, url string, display string, name string) *ConsoleServerPortTemplate { this := ConsoleServerPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -86,6 +84,7 @@ func (o *ConsoleServerPortTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ConsoleServerPortTemplate) GetUrl() string { if o == nil { @@ -110,6 +109,7 @@ func (o *ConsoleServerPortTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *ConsoleServerPortTemplate) GetDisplay() string { if o == nil { @@ -134,10 +134,11 @@ func (o *ConsoleServerPortTemplate) SetDisplay(v string) { o.Display = v } + // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { +func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +147,7 @@ func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,11 +163,10 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsoleServerPortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -178,9 +178,9 @@ func (o *ConsoleServerPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { +func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType 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 *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,11 +205,10 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsoleServerPortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -244,6 +243,7 @@ func (o *ConsoleServerPortTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsoleServerPortTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -340,18 +340,16 @@ func (o *ConsoleServerPortTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsoleServerPortTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ConsoleServerPortTemplate) GetCreatedOk() (*time.Time, bool) { @@ -361,23 +359,39 @@ func (o *ConsoleServerPortTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ConsoleServerPortTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ConsoleServerPortTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ConsoleServerPortTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ConsoleServerPortTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ConsoleServerPortTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ConsoleServerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -387,13 +401,31 @@ func (o *ConsoleServerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ConsoleServerPortTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ConsoleServerPortTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ConsoleServerPortTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ConsoleServerPortTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ConsoleServerPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -421,8 +453,12 @@ func (o ConsoleServerPortTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -440,24 +476,39 @@ func (o *ConsoleServerPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsoleServerPortTemplate := _ConsoleServerPortTemplate{} err = json.Unmarshal(data, &varConsoleServerPortTemplate) @@ -523,3 +574,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 bcbbf7a821..756333e532 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &ConsoleServerPortTemplateRequest{} // ConsoleServerPortTemplateRequest 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 ConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *ConsolePortTypeValue `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +52,9 @@ func NewConsoleServerPortTemplateRequestWithDefaults() *ConsoleServerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,11 +79,10 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsoleServerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -95,9 +94,9 @@ func (o *ConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +105,7 @@ func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,11 +121,10 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsoleServerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -161,6 +159,7 @@ func (o *ConsoleServerPortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ConsoleServerPortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -258,7 +257,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 } @@ -299,20 +298,37 @@ func (o *ConsoleServerPortTemplateRequest) UnmarshalJSON(data []byte) (err error "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varConsoleServerPortTemplateRequest := _ConsoleServerPortTemplateRequest{} err = json.Unmarshal(data, &varConsoleServerPortTemplateRequest) @@ -373,3 +389,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 74e7412d70..d1a0526355 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,23 @@ 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"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Group NullableBriefContactGroup `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,6 +88,7 @@ func (o *Contact) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Contact) GetUrl() string { if o == nil { @@ -99,6 +113,39 @@ func (o *Contact) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Contact) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Contact) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Contact) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Contact) GetDisplay() string { if o == nil { @@ -123,6 +170,49 @@ func (o *Contact) SetDisplay(v string) { o.Display = v } + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Contact) GetGroup() BriefContactGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *Contact) GetGroupOk() (*BriefContactGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Contact) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroup and assigns it to the Group field. +func (o *Contact) SetGroup(v BriefContactGroup) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Contact) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Contact) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *Contact) GetName() string { if o == nil { @@ -147,6 +237,167 @@ func (o *Contact) SetName(v string) { o.Name = v } + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *Contact) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *Contact) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *Contact) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *Contact) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *Contact) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *Contact) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *Contact) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *Contact) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *Contact) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *Contact) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *Contact) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *Contact) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *Contact) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *Contact) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *Contact) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Contact) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,8 +430,188 @@ func (o *Contact) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Contact) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Contact) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Contact) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Contact) 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 *Contact) 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 *Contact) 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 *Contact) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Contact) 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 *Contact) 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 *Contact) 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 *Contact) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Contact) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Contact) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Contact) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Contact) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Contact) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Contact) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Contact) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Contact) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Contact) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Contact) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Contact) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Contact) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o Contact) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -191,11 +622,47 @@ func (o Contact) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -215,20 +682,37 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContact := _Contact{} err = json.Unmarshal(data, &varContact) @@ -244,9 +728,21 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -288,3 +784,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 a623126393..c733a88e8b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ContactAssignment type satisfies the MappedNullable interface at compile time @@ -21,19 +21,19 @@ 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"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Object map[string]interface{} `json:"object"` - Contact Contact `json:"contact"` - Role NullableContactRole `json:"role,omitempty"` - Priority *ContactAssignmentPriority `json:"priority,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"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object map[string]interface{} `json:"object"` + Contact BriefContact `json:"contact"` + Role NullableBriefContactRole `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +43,7 @@ type _ContactAssignment ContactAssignment // 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 NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { +func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact) *ContactAssignment { this := ContactAssignment{} this.Id = id this.Url = url @@ -52,8 +52,6 @@ func NewContactAssignment(id int32, url string, display string, objectType strin this.ObjectId = objectId this.Object = object this.Contact = contact - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -89,6 +87,7 @@ func (o *ContactAssignment) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ContactAssignment) GetUrl() string { if o == nil { @@ -113,6 +112,7 @@ func (o *ContactAssignment) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *ContactAssignment) GetDisplay() string { if o == nil { @@ -137,6 +137,7 @@ func (o *ContactAssignment) SetDisplay(v string) { o.Display = v } + // GetObjectType returns the ObjectType field value func (o *ContactAssignment) GetObjectType() string { if o == nil { @@ -161,6 +162,7 @@ func (o *ContactAssignment) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *ContactAssignment) GetObjectId() int64 { if o == nil { @@ -185,6 +187,7 @@ func (o *ContactAssignment) SetObjectId(v int64) { o.ObjectId = v } + // GetObject returns the Object field value func (o *ContactAssignment) GetObject() map[string]interface{} { if o == nil { @@ -209,10 +212,11 @@ func (o *ContactAssignment) SetObject(v map[string]interface{}) { o.Object = v } + // GetContact returns the Contact field value -func (o *ContactAssignment) GetContact() Contact { +func (o *ContactAssignment) GetContact() BriefContact { if o == nil { - var ret Contact + var ret BriefContact return ret } @@ -221,7 +225,7 @@ func (o *ContactAssignment) GetContact() Contact { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetContactOk() (*Contact, bool) { +func (o *ContactAssignment) GetContactOk() (*BriefContact, bool) { if o == nil { return nil, false } @@ -229,14 +233,15 @@ func (o *ContactAssignment) GetContactOk() (*Contact, bool) { } // SetContact sets field value -func (o *ContactAssignment) SetContact(v Contact) { +func (o *ContactAssignment) SetContact(v BriefContact) { o.Contact = v } + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignment) GetRole() ContactRole { +func (o *ContactAssignment) GetRole() BriefContactRole { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRole + var ret BriefContactRole return ret } return *o.Role.Get() @@ -245,7 +250,7 @@ func (o *ContactAssignment) GetRole() ContactRole { // GetRoleOk returns a tuple with the Role 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 *ContactAssignment) GetRoleOk() (*ContactRole, bool) { +func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool) { if o == nil { return nil, false } @@ -261,11 +266,10 @@ func (o *ContactAssignment) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRole and assigns it to the Role field. -func (o *ContactAssignment) SetRole(v ContactRole) { +// SetRole gets a reference to the given NullableBriefContactRole and assigns it to the Role field. +func (o *ContactAssignment) SetRole(v BriefContactRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *ContactAssignment) SetRoleNil() { o.Role.Set(nil) @@ -277,9 +281,9 @@ func (o *ContactAssignment) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { +func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriority + var ret BriefCircuitGroupAssignmentSerializerPriority return ret } return *o.Priority @@ -287,7 +291,7 @@ func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool) { +func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -303,8 +307,8 @@ func (o *ContactAssignment) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriority and assigns it to the Priority field. -func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { o.Priority = &v } @@ -372,18 +376,16 @@ func (o *ContactAssignment) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ContactAssignment) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ContactAssignment) GetCreatedOk() (*time.Time, bool) { @@ -393,23 +395,39 @@ func (o *ContactAssignment) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ContactAssignment) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ContactAssignment) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ContactAssignment) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ContactAssignment) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ContactAssignment) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ContactAssignment) GetLastUpdatedOk() (*time.Time, bool) { @@ -419,13 +437,31 @@ func (o *ContactAssignment) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ContactAssignment) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ContactAssignment) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ContactAssignment) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ContactAssignment) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ContactAssignment) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -453,8 +489,12 @@ func (o ContactAssignment) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -475,24 +515,39 @@ func (o *ContactAssignment) UnmarshalJSON(data []byte) (err error) { "object_id", "object", "contact", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContactAssignment := _ContactAssignment{} err = json.Unmarshal(data, &varContactAssignment) @@ -560,3 +615,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 deleted file mode 100644 index 6e2052b8de..0000000000 --- a/model_contact_assignment_priority.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" -) - -// checks if the ContactAssignmentPriority type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ContactAssignmentPriority{} - -// ContactAssignmentPriority struct for ContactAssignmentPriority -type ContactAssignmentPriority struct { - Value *ContactAssignmentPriorityValue `json:"value,omitempty"` - Label *ContactAssignmentPriorityLabel `json:"label,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ContactAssignmentPriority ContactAssignmentPriority - -// NewContactAssignmentPriority instantiates a new ContactAssignmentPriority 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 NewContactAssignmentPriority() *ContactAssignmentPriority { - this := ContactAssignmentPriority{} - return &this -} - -// NewContactAssignmentPriorityWithDefaults instantiates a new ContactAssignmentPriority 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 NewContactAssignmentPriorityWithDefaults() *ContactAssignmentPriority { - this := ContactAssignmentPriority{} - return &this -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *ContactAssignmentPriority) GetValue() ContactAssignmentPriorityValue { - if o == nil || IsNil(o.Value) { - var ret ContactAssignmentPriorityValue - 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 *ContactAssignmentPriority) GetValueOk() (*ContactAssignmentPriorityValue, 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 *ContactAssignmentPriority) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Value field. -func (o *ContactAssignmentPriority) SetValue(v ContactAssignmentPriorityValue) { - o.Value = &v -} - -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *ContactAssignmentPriority) GetLabel() ContactAssignmentPriorityLabel { - if o == nil || IsNil(o.Label) { - var ret ContactAssignmentPriorityLabel - 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 *ContactAssignmentPriority) GetLabelOk() (*ContactAssignmentPriorityLabel, 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 *ContactAssignmentPriority) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given ContactAssignmentPriorityLabel and assigns it to the Label field. -func (o *ContactAssignmentPriority) SetLabel(v ContactAssignmentPriorityLabel) { - o.Label = &v -} - -func (o ContactAssignmentPriority) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ContactAssignmentPriority) 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 *ContactAssignmentPriority) UnmarshalJSON(data []byte) (err error) { - varContactAssignmentPriority := _ContactAssignmentPriority{} - - err = json.Unmarshal(data, &varContactAssignmentPriority) - - if err != nil { - return err - } - - *o = ContactAssignmentPriority(varContactAssignmentPriority) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "value") - delete(additionalProperties, "label") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableContactAssignmentPriority struct { - value *ContactAssignmentPriority - isSet bool -} - -func (v NullableContactAssignmentPriority) Get() *ContactAssignmentPriority { - return v.value -} - -func (v *NullableContactAssignmentPriority) Set(val *ContactAssignmentPriority) { - v.value = val - v.isSet = true -} - -func (v NullableContactAssignmentPriority) IsSet() bool { - return v.isSet -} - -func (v *NullableContactAssignmentPriority) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableContactAssignmentPriority(val *ContactAssignmentPriority) *NullableContactAssignmentPriority { - return &NullableContactAssignmentPriority{value: val, isSet: true} -} - -func (v NullableContactAssignmentPriority) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableContactAssignmentPriority) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_contact_assignment_priority_label.go b/model_contact_assignment_priority_label.go deleted file mode 100644 index 686c37a822..0000000000 --- a/model_contact_assignment_priority_label.go +++ /dev/null @@ -1,114 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// ContactAssignmentPriorityLabel the model 'ContactAssignmentPriorityLabel' -type ContactAssignmentPriorityLabel string - -// List of ContactAssignment_priority_label -const ( - CONTACTASSIGNMENTPRIORITYLABEL_PRIMARY ContactAssignmentPriorityLabel = "Primary" - CONTACTASSIGNMENTPRIORITYLABEL_SECONDARY ContactAssignmentPriorityLabel = "Secondary" - CONTACTASSIGNMENTPRIORITYLABEL_TERTIARY ContactAssignmentPriorityLabel = "Tertiary" - CONTACTASSIGNMENTPRIORITYLABEL_INACTIVE ContactAssignmentPriorityLabel = "Inactive" -) - -// All allowed values of ContactAssignmentPriorityLabel enum -var AllowedContactAssignmentPriorityLabelEnumValues = []ContactAssignmentPriorityLabel{ - "Primary", - "Secondary", - "Tertiary", - "Inactive", -} - -func (v *ContactAssignmentPriorityLabel) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ContactAssignmentPriorityLabel(value) - for _, existing := range AllowedContactAssignmentPriorityLabelEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ContactAssignmentPriorityLabel", value) -} - -// NewContactAssignmentPriorityLabelFromValue returns a pointer to a valid ContactAssignmentPriorityLabel -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewContactAssignmentPriorityLabelFromValue(v string) (*ContactAssignmentPriorityLabel, error) { - ev := ContactAssignmentPriorityLabel(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ContactAssignmentPriorityLabel: valid values are %v", v, AllowedContactAssignmentPriorityLabelEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ContactAssignmentPriorityLabel) IsValid() bool { - for _, existing := range AllowedContactAssignmentPriorityLabelEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ContactAssignment_priority_label value -func (v ContactAssignmentPriorityLabel) Ptr() *ContactAssignmentPriorityLabel { - return &v -} - -type NullableContactAssignmentPriorityLabel struct { - value *ContactAssignmentPriorityLabel - isSet bool -} - -func (v NullableContactAssignmentPriorityLabel) Get() *ContactAssignmentPriorityLabel { - return v.value -} - -func (v *NullableContactAssignmentPriorityLabel) Set(val *ContactAssignmentPriorityLabel) { - v.value = val - v.isSet = true -} - -func (v NullableContactAssignmentPriorityLabel) IsSet() bool { - return v.isSet -} - -func (v *NullableContactAssignmentPriorityLabel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableContactAssignmentPriorityLabel(val *ContactAssignmentPriorityLabel) *NullableContactAssignmentPriorityLabel { - return &NullableContactAssignmentPriorityLabel{value: val, isSet: true} -} - -func (v NullableContactAssignmentPriorityLabel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableContactAssignmentPriorityLabel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_contact_assignment_priority_value.go b/model_contact_assignment_priority_value.go deleted file mode 100644 index 19d96ef34f..0000000000 --- a/model_contact_assignment_priority_value.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// ContactAssignmentPriorityValue * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -type ContactAssignmentPriorityValue string - -// List of ContactAssignment_priority_value -const ( - CONTACTASSIGNMENTPRIORITYVALUE_PRIMARY ContactAssignmentPriorityValue = "primary" - CONTACTASSIGNMENTPRIORITYVALUE_SECONDARY ContactAssignmentPriorityValue = "secondary" - CONTACTASSIGNMENTPRIORITYVALUE_TERTIARY ContactAssignmentPriorityValue = "tertiary" - CONTACTASSIGNMENTPRIORITYVALUE_INACTIVE ContactAssignmentPriorityValue = "inactive" - CONTACTASSIGNMENTPRIORITYVALUE_EMPTY ContactAssignmentPriorityValue = "" -) - -// All allowed values of ContactAssignmentPriorityValue enum -var AllowedContactAssignmentPriorityValueEnumValues = []ContactAssignmentPriorityValue{ - "primary", - "secondary", - "tertiary", - "inactive", - "", -} - -func (v *ContactAssignmentPriorityValue) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ContactAssignmentPriorityValue(value) - for _, existing := range AllowedContactAssignmentPriorityValueEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ContactAssignmentPriorityValue", value) -} - -// NewContactAssignmentPriorityValueFromValue returns a pointer to a valid ContactAssignmentPriorityValue -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewContactAssignmentPriorityValueFromValue(v string) (*ContactAssignmentPriorityValue, error) { - ev := ContactAssignmentPriorityValue(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ContactAssignmentPriorityValue: valid values are %v", v, AllowedContactAssignmentPriorityValueEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ContactAssignmentPriorityValue) IsValid() bool { - for _, existing := range AllowedContactAssignmentPriorityValueEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ContactAssignment_priority_value value -func (v ContactAssignmentPriorityValue) Ptr() *ContactAssignmentPriorityValue { - return &v -} - -type NullableContactAssignmentPriorityValue struct { - value *ContactAssignmentPriorityValue - isSet bool -} - -func (v NullableContactAssignmentPriorityValue) Get() *ContactAssignmentPriorityValue { - return v.value -} - -func (v *NullableContactAssignmentPriorityValue) Set(val *ContactAssignmentPriorityValue) { - v.value = val - v.isSet = true -} - -func (v NullableContactAssignmentPriorityValue) IsSet() bool { - return v.isSet -} - -func (v *NullableContactAssignmentPriorityValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableContactAssignmentPriorityValue(val *ContactAssignmentPriorityValue) *NullableContactAssignmentPriorityValue { - return &NullableContactAssignmentPriorityValue{value: val, isSet: true} -} - -func (v NullableContactAssignmentPriorityValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableContactAssignmentPriorityValue) 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 8fb3e6e652..f90bb74de2 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ContactAssignmentRequest{} // ContactAssignmentRequest Adds support for custom fields and tags. type ContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _ContactAssignmentRequest ContactAssignmentRequest // 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 NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *ContactAssignmentRequest { +func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *ContactAssignmentRequest { this := ContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -76,6 +76,7 @@ func (o *ContactAssignmentRequest) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *ContactAssignmentRequest) GetObjectId() int64 { if o == nil { @@ -100,10 +101,11 @@ func (o *ContactAssignmentRequest) SetObjectId(v int64) { o.ObjectId = v } + // GetContact returns the Contact field value -func (o *ContactAssignmentRequest) GetContact() ContactRequest { +func (o *ContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +114,7 @@ func (o *ContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +122,15 @@ func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { } // SetContact sets field value -func (o *ContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +139,7 @@ func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role 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 *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,11 +155,10 @@ func (o *ContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *ContactAssignmentRequest) SetRoleNil() { o.Role.Set(nil) @@ -168,9 +170,9 @@ func (o *ContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -178,7 +180,7 @@ func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +196,8 @@ func (o *ContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } @@ -264,7 +266,7 @@ func (o *ContactAssignmentRequest) SetCustomFields(v map[string]interface{}) { } func (o ContactAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -306,20 +308,37 @@ func (o *ContactAssignmentRequest) UnmarshalJSON(data []byte) (err error) { "contact", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContactAssignmentRequest := _ContactAssignmentRequest{} err = json.Unmarshal(data, &varContactAssignmentRequest) @@ -381,3 +400,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 12c15cf45e..56ab199856 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ContactGroup type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + ContactCount int32 `json:"contact_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -43,15 +44,13 @@ type _ContactGroup ContactGroup // 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 NewContactGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32) *ContactGroup { +func NewContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32) *ContactGroup { this := ContactGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.ContactCount = contactCount this.Depth = depth return &this @@ -89,6 +88,7 @@ func (o *ContactGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ContactGroup) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *ContactGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ContactGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ContactGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ContactGroup) GetDisplay() string { if o == nil { @@ -137,6 +170,7 @@ func (o *ContactGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ContactGroup) GetName() string { if o == nil { @@ -161,6 +195,7 @@ func (o *ContactGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ContactGroup) GetSlug() string { if o == nil { @@ -185,6 +220,7 @@ func (o *ContactGroup) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ContactGroup) GetParent() NestedContactGroup { if o == nil || IsNil(o.Parent.Get()) { @@ -217,7 +253,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) @@ -324,18 +359,16 @@ func (o *ContactGroup) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ContactGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ContactGroup) GetCreatedOk() (*time.Time, bool) { @@ -345,23 +378,39 @@ func (o *ContactGroup) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ContactGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ContactGroup) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ContactGroup) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ContactGroup) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ContactGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ContactGroup) GetLastUpdatedOk() (*time.Time, bool) { @@ -371,10 +420,28 @@ func (o *ContactGroup) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ContactGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ContactGroup) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ContactGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ContactGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetContactCount returns the ContactCount field value func (o *ContactGroup) GetContactCount() int32 { @@ -400,6 +467,7 @@ func (o *ContactGroup) SetContactCount(v int32) { o.ContactCount = v } + // GetDepth returns the Depth field value func (o *ContactGroup) GetDepth() int32 { if o == nil { @@ -424,8 +492,9 @@ func (o *ContactGroup) SetDepth(v int32) { o.Depth = v } + func (o ContactGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -436,6 +505,9 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -451,8 +523,12 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["contact_count"] = o.ContactCount toSerialize["_depth"] = o.Depth @@ -473,26 +549,41 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", "contact_count", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContactGroup := _ContactGroup{} err = json.Unmarshal(data, &varContactGroup) @@ -508,6 +599,7 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -560,3 +652,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 9aea2147b5..31892c741b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -74,6 +74,7 @@ func (o *ContactGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ContactGroupRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *ContactGroupRequest) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ContactGroupRequest) GetParent() NestedContactGroupRequest { if o == nil || IsNil(o.Parent.Get()) { @@ -130,7 +132,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) @@ -238,7 +239,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 } @@ -278,20 +279,37 @@ func (o *ContactGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContactGroupRequest := _ContactGroupRequest{} err = json.Unmarshal(data, &varContactGroupRequest) @@ -352,3 +370,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 bb1e2df509..878594625d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ContactRequest{} // ContactRequest Adds support for custom fields and tags. type ContactRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Group NullableBriefContactGroupRequest `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{} } @@ -45,6 +54,48 @@ func NewContactRequestWithDefaults() *ContactRequest { return &this } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContactRequest) GetGroup() BriefContactGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ContactRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *ContactRequest) SetGroup(v BriefContactGroupRequest) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ContactRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ContactRequest) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *ContactRequest) GetName() string { if o == nil { @@ -69,6 +120,167 @@ func (o *ContactRequest) SetName(v string) { o.Name = v } + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ContactRequest) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ContactRequest) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ContactRequest) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *ContactRequest) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *ContactRequest) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *ContactRequest) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *ContactRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *ContactRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *ContactRequest) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *ContactRequest) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *ContactRequest) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *ContactRequest) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *ContactRequest) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *ContactRequest) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *ContactRequest) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ContactRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +313,104 @@ func (o *ContactRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ContactRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ContactRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ContactRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRequest) 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 *ContactRequest) 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 *ContactRequest) 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 *ContactRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRequest) 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 *ContactRequest) 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 *ContactRequest) 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 *ContactRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -111,10 +419,37 @@ func (o ContactRequest) MarshalJSON() ([]byte, error) { func (o ContactRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -131,20 +466,37 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContactRequest := _ContactRequest{} err = json.Unmarshal(data, &varContactRequest) @@ -158,8 +510,17 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -201,3 +562,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 bb4b6f62b6..9548761dce 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,17 @@ 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"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,6 +83,7 @@ func (o *ContactRole) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ContactRole) GetUrl() string { if o == nil { @@ -101,6 +108,39 @@ func (o *ContactRole) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ContactRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ContactRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ContactRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ContactRole) GetDisplay() string { if o == nil { @@ -125,6 +165,7 @@ func (o *ContactRole) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ContactRole) GetName() string { if o == nil { @@ -149,6 +190,7 @@ func (o *ContactRole) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ContactRole) GetSlug() string { if o == nil { @@ -173,6 +215,7 @@ func (o *ContactRole) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ContactRole) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,8 +248,156 @@ func (o *ContactRole) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRole) 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 *ContactRole) 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 *ContactRole) 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 *ContactRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRole) 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 *ContactRole) 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 *ContactRole) 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 *ContactRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContactRole) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *ContactRole) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *ContactRole) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *ContactRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ContactRole) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ContactRole) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContactRole) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ContactRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *ContactRole) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *ContactRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ContactRole) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ContactRole) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o ContactRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,12 +408,27 @@ func (o ContactRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -243,20 +449,37 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContactRole := _ContactRole{} err = json.Unmarshal(data, &varContactRole) @@ -272,10 +495,15 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -317,3 +545,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 c602937805..81926840da 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,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"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -71,6 +73,7 @@ func (o *ContactRoleRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ContactRoleRequest) GetSlug() string { if o == nil { @@ -95,6 +98,7 @@ func (o *ContactRoleRequest) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ContactRoleRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +131,72 @@ func (o *ContactRoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRoleRequest) 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 *ContactRoleRequest) 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 *ContactRoleRequest) 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 *ContactRoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRoleRequest) 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 *ContactRoleRequest) 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 *ContactRoleRequest) 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 *ContactRoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -142,6 +210,12 @@ func (o ContactRoleRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +233,37 @@ func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varContactRoleRequest := _ContactRoleRequest{} err = json.Unmarshal(data, &varContactRoleRequest) @@ -189,6 +280,8 @@ func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +323,5 @@ func (v *NullableContactRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_core_object_changes_list_action_parameter.go b/model_core_object_changes_list_action_parameter.go new file mode 100644 index 0000000000..1524a27f89 --- /dev/null +++ b/model_core_object_changes_list_action_parameter.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CoreObjectChangesListActionParameter the model 'CoreObjectChangesListActionParameter' +type CoreObjectChangesListActionParameter string + +// List of core_object_changes_list_action_parameter +const ( + COREOBJECTCHANGESLISTACTIONPARAMETER_CREATE CoreObjectChangesListActionParameter = "create" + COREOBJECTCHANGESLISTACTIONPARAMETER_DELETE CoreObjectChangesListActionParameter = "delete" + COREOBJECTCHANGESLISTACTIONPARAMETER_UPDATE CoreObjectChangesListActionParameter = "update" +) + +// All allowed values of CoreObjectChangesListActionParameter enum +var AllowedCoreObjectChangesListActionParameterEnumValues = []CoreObjectChangesListActionParameter{ + "create", + "delete", + "update", +} + +func (v *CoreObjectChangesListActionParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CoreObjectChangesListActionParameter(value) + for _, existing := range AllowedCoreObjectChangesListActionParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CoreObjectChangesListActionParameter", value) +} + +// NewCoreObjectChangesListActionParameterFromValue returns a pointer to a valid CoreObjectChangesListActionParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCoreObjectChangesListActionParameterFromValue(v string) (*CoreObjectChangesListActionParameter, error) { + ev := CoreObjectChangesListActionParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CoreObjectChangesListActionParameter: valid values are %v", v, AllowedCoreObjectChangesListActionParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CoreObjectChangesListActionParameter) IsValid() bool { + for _, existing := range AllowedCoreObjectChangesListActionParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to core_object_changes_list_action_parameter value +func (v CoreObjectChangesListActionParameter) Ptr() *CoreObjectChangesListActionParameter { + return &v +} + +type NullableCoreObjectChangesListActionParameter struct { + value *CoreObjectChangesListActionParameter + isSet bool +} + +func (v NullableCoreObjectChangesListActionParameter) Get() *CoreObjectChangesListActionParameter { + return v.value +} + +func (v *NullableCoreObjectChangesListActionParameter) Set(val *CoreObjectChangesListActionParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCoreObjectChangesListActionParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCoreObjectChangesListActionParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoreObjectChangesListActionParameter(val *CoreObjectChangesListActionParameter) *NullableCoreObjectChangesListActionParameter { + return &NullableCoreObjectChangesListActionParameter{value: val, isSet: true} +} + +func (v NullableCoreObjectChangesListActionParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoreObjectChangesListActionParameter) 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 aea0cf477b..cdc2082fae 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the CustomField type satisfies the MappedNullable interface at compile time @@ -21,31 +21,36 @@ 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"` - ObjectTypes []string `json:"object_types"` - Type CustomFieldType `json:"type"` - RelatedObjectType NullableString `json:"related_object_type,omitempty"` - DataType string `json:"data_type"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + ObjectTypes []string `json:"object_types"` + Type CustomFieldType `json:"type"` + RelatedObjectType NullableString `json:"related_object_type,omitempty"` + DataType string `json:"data_type"` // Internal field name - Name string `json:"name"` + Name string `json:"name" validate:"regexp=^[a-z0-9_]+$"` // 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. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,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"` - UiVisible *CustomFieldUiVisible `json:"ui_visible,omitempty"` - UiEditable *CustomFieldUiEditable `json:"ui_editable,omitempty"` + SearchWeight *int32 `json:"search_weight,omitempty"` + FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` + UiVisible *CustomFieldUiVisible `json:"ui_visible,omitempty"` + UiEditable *CustomFieldUiEditable `json:"ui_editable,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -53,11 +58,11 @@ type CustomField struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `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"` - ChoiceSet NullableCustomFieldChoiceSet `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSet `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -67,7 +72,7 @@ type _CustomField CustomField // 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 NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime) *CustomField { +func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string) *CustomField { this := CustomField{} this.Id = id this.Url = url @@ -76,8 +81,6 @@ func NewCustomField(id int32, url string, display string, objectTypes []string, this.Type = type_ this.DataType = dataType this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -113,6 +116,7 @@ func (o *CustomField) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *CustomField) GetUrl() string { if o == nil { @@ -137,6 +141,39 @@ func (o *CustomField) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CustomField) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomField) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CustomField) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CustomField) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CustomField) GetDisplay() string { if o == nil { @@ -161,6 +198,7 @@ func (o *CustomField) SetDisplay(v string) { o.Display = v } + // GetObjectTypes returns the ObjectTypes field value func (o *CustomField) GetObjectTypes() []string { if o == nil { @@ -185,6 +223,7 @@ func (o *CustomField) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetType returns the Type field value func (o *CustomField) GetType() CustomFieldType { if o == nil { @@ -209,6 +248,7 @@ func (o *CustomField) SetType(v CustomFieldType) { o.Type = v } + // GetRelatedObjectType returns the RelatedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomField) GetRelatedObjectType() string { if o == nil || IsNil(o.RelatedObjectType.Get()) { @@ -241,7 +281,6 @@ func (o *CustomField) HasRelatedObjectType() bool { func (o *CustomField) SetRelatedObjectType(v string) { o.RelatedObjectType.Set(&v) } - // SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil func (o *CustomField) SetRelatedObjectTypeNil() { o.RelatedObjectType.Set(nil) @@ -276,6 +315,7 @@ func (o *CustomField) SetDataType(v string) { o.DataType = v } + // GetName returns the Name field value func (o *CustomField) GetName() string { if o == nil { @@ -300,6 +340,7 @@ func (o *CustomField) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *CustomField) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -428,6 +469,38 @@ func (o *CustomField) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomField) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomField) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomField) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomField) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomField) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -621,6 +694,39 @@ func (o *CustomField) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomField) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter 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) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomField) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomField) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomField) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -685,7 +791,6 @@ func (o *CustomField) HasValidationMinimum() bool { func (o *CustomField) SetValidationMinimum(v int64) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *CustomField) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -728,7 +833,6 @@ func (o *CustomField) HasValidationMaximum() bool { func (o *CustomField) SetValidationMaximum(v int64) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *CustomField) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -772,9 +876,9 @@ func (o *CustomField) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { +func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSet + var ret BriefCustomFieldChoiceSet return ret } return *o.ChoiceSet.Get() @@ -783,7 +887,7 @@ func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { // 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) GetChoiceSetOk() (*CustomFieldChoiceSet, bool) { +func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool) { if o == nil { return nil, false } @@ -799,11 +903,10 @@ func (o *CustomField) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSet and assigns it to the ChoiceSet field. -func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSet and assigns it to the ChoiceSet field. +func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet) { o.ChoiceSet.Set(&v) } - // SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil func (o *CustomField) SetChoiceSetNil() { o.ChoiceSet.Set(nil) @@ -846,18 +949,16 @@ func (o *CustomField) SetComments(v string) { o.Comments = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomField) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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) GetCreatedOk() (*time.Time, bool) { @@ -867,23 +968,39 @@ func (o *CustomField) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *CustomField) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *CustomField) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CustomField) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CustomField) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomField) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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) GetLastUpdatedOk() (*time.Time, bool) { @@ -893,13 +1010,31 @@ func (o *CustomField) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *CustomField) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *CustomField) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CustomField) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CustomField) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o CustomField) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -910,6 +1045,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["type"] = o.Type @@ -930,6 +1068,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -948,6 +1089,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -966,8 +1110,12 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -988,24 +1136,39 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { "type", "data_type", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCustomField := _CustomField{} err = json.Unmarshal(data, &varCustomField) @@ -1021,6 +1184,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "type") @@ -1031,12 +1195,14 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") @@ -1086,3 +1252,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 index 7926b715a7..3a770637de 100644 --- a/model_custom_field_choice_set.go +++ b/model_custom_field_choice_set.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the CustomFieldChoiceSet type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ 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 [][]interface{} `json:"extra_choices"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + BaseChoices *CustomFieldChoiceSetBaseChoices `json:"base_choices,omitempty"` + ExtraChoices [][]interface{} `json:"extra_choices"` // 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"` + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + ChoicesCount string `json:"choices_count"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,7 +43,7 @@ type _CustomFieldChoiceSet CustomFieldChoiceSet // 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, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { +func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string) *CustomFieldChoiceSet { this := CustomFieldChoiceSet{} this.Id = id this.Url = url @@ -50,8 +51,6 @@ func NewCustomFieldChoiceSet(id int32, url string, display string, name string, this.Name = name this.ExtraChoices = extraChoices this.ChoicesCount = choicesCount - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -87,6 +86,7 @@ func (o *CustomFieldChoiceSet) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *CustomFieldChoiceSet) GetUrl() string { if o == nil { @@ -111,6 +111,39 @@ func (o *CustomFieldChoiceSet) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CustomFieldChoiceSet) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CustomFieldChoiceSet) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CustomFieldChoiceSet) GetDisplay() string { if o == nil { @@ -135,6 +168,7 @@ func (o *CustomFieldChoiceSet) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *CustomFieldChoiceSet) GetName() string { if o == nil { @@ -159,6 +193,7 @@ 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) { @@ -247,6 +282,7 @@ func (o *CustomFieldChoiceSet) SetExtraChoices(v [][]interface{}) { 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) { @@ -303,18 +339,17 @@ 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 + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomFieldChoiceSet) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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) GetCreatedOk() (*time.Time, bool) { @@ -324,23 +359,39 @@ func (o *CustomFieldChoiceSet) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *CustomFieldChoiceSet) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CustomFieldChoiceSet) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CustomFieldChoiceSet) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomFieldChoiceSet) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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) GetLastUpdatedOk() (*time.Time, bool) { @@ -350,13 +401,31 @@ func (o *CustomFieldChoiceSet) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *CustomFieldChoiceSet) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CustomFieldChoiceSet) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CustomFieldChoiceSet) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o CustomFieldChoiceSet) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -367,6 +436,9 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -380,8 +452,12 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { toSerialize["order_alphabetically"] = o.OrderAlphabetically } toSerialize["choices_count"] = o.ChoicesCount - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -401,24 +477,39 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { "name", "extra_choices", "choices_count", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCustomFieldChoiceSet := _CustomFieldChoiceSet{} err = json.Unmarshal(data, &varCustomFieldChoiceSet) @@ -434,6 +525,7 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -484,3 +576,5 @@ 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 index 387404fe08..d3a48fdc6b 100644 --- a/model_custom_field_choice_set_base_choices.go +++ b/model_custom_field_choice_set_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldChoiceSetBaseChoices{} // CustomFieldChoiceSetBaseChoices struct for CustomFieldChoiceSetBaseChoices type CustomFieldChoiceSetBaseChoices struct { - Value *CustomFieldChoiceSetBaseChoicesValue `json:"value,omitempty"` - Label *CustomFieldChoiceSetBaseChoicesLabel `json:"label,omitempty"` + Value *CustomFieldChoiceSetBaseChoicesValue `json:"value,omitempty"` + Label *CustomFieldChoiceSetBaseChoicesLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v CustomFieldChoiceSetBaseCho } func (o CustomFieldChoiceSetBaseChoices) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableCustomFieldChoiceSetBaseChoices) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go index bea7b22b52..b82e997cd4 100644 --- a/model_custom_field_choice_set_base_choices_label.go +++ b/model_custom_field_choice_set_base_choices_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type CustomFieldChoiceSetBaseChoicesLabel string // List of CustomFieldChoiceSet_base_choices_label const ( - CUSTOMFIELDCHOICESETBASECHOICESLABEL_IATA__AIRPORT_CODES CustomFieldChoiceSetBaseChoicesLabel = "IATA (Airport codes)" - CUSTOMFIELDCHOICESETBASECHOICESLABEL_ISO_3166__COUNTRY_CODES CustomFieldChoiceSetBaseChoicesLabel = "ISO 3166 (Country codes)" + CUSTOMFIELDCHOICESETBASECHOICESLABEL_IATA__AIRPORT_CODES CustomFieldChoiceSetBaseChoicesLabel = "IATA (Airport codes)" + CUSTOMFIELDCHOICESETBASECHOICESLABEL_ISO_3166__COUNTRY_CODES CustomFieldChoiceSetBaseChoicesLabel = "ISO 3166 (Country codes)" CUSTOMFIELDCHOICESETBASECHOICESLABEL_UN_LOCODE__LOCATION_CODES CustomFieldChoiceSetBaseChoicesLabel = "UN/LOCODE (Location codes)" ) @@ -110,3 +110,4 @@ func (v *NullableCustomFieldChoiceSetBaseChoicesLabel) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go index 2e891195a5..077689c673 100644 --- a/model_custom_field_choice_set_base_choices_value.go +++ b/model_custom_field_choice_set_base_choices_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type CustomFieldChoiceSetBaseChoicesValue string // List of CustomFieldChoiceSet_base_choices_value const ( - CUSTOMFIELDCHOICESETBASECHOICESVALUE_IATA CustomFieldChoiceSetBaseChoicesValue = "IATA" - CUSTOMFIELDCHOICESETBASECHOICESVALUE_ISO_3166 CustomFieldChoiceSetBaseChoicesValue = "ISO_3166" + CUSTOMFIELDCHOICESETBASECHOICESVALUE_IATA CustomFieldChoiceSetBaseChoicesValue = "IATA" + CUSTOMFIELDCHOICESETBASECHOICESVALUE_ISO_3166 CustomFieldChoiceSetBaseChoicesValue = "ISO_3166" CUSTOMFIELDCHOICESETBASECHOICESVALUE_UN_LOCODE CustomFieldChoiceSetBaseChoicesValue = "UN_LOCODE" ) @@ -110,3 +110,4 @@ func (v *NullableCustomFieldChoiceSetBaseChoicesValue) UnmarshalJSON(src []byte) 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 index 9b0c67818c..69a0b6786b 100644 --- a/model_custom_field_choice_set_request.go +++ b/model_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ 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"` - BaseChoices *CustomFieldChoiceSetBaseChoicesValue `json:"base_choices,omitempty"` - ExtraChoices [][]interface{} `json:"extra_choices"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + BaseChoices *CustomFieldChoiceSetBaseChoicesValue `json:"base_choices,omitempty"` + ExtraChoices [][]interface{} `json:"extra_choices"` // Choices are automatically ordered alphabetically - OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ 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) { @@ -162,6 +163,7 @@ func (o *CustomFieldChoiceSetRequest) SetExtraChoices(v [][]interface{}) { 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) { @@ -195,7 +197,7 @@ func (o *CustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool) { } func (o CustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -232,20 +234,37 @@ func (o *CustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) { "extra_choices", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCustomFieldChoiceSetRequest := _CustomFieldChoiceSetRequest{} err = json.Unmarshal(data, &varCustomFieldChoiceSetRequest) @@ -305,3 +324,5 @@ 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 ec27bbfe0c..4baf466c8f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldFilterLogic{} // CustomFieldFilterLogic struct for CustomFieldFilterLogic type CustomFieldFilterLogic struct { - Value *CustomFieldFilterLogicValue `json:"value,omitempty"` - Label *CustomFieldFilterLogicLabel `json:"label,omitempty"` + Value *CustomFieldFilterLogicValue `json:"value,omitempty"` + Label *CustomFieldFilterLogicLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CustomFieldFilterLogic) SetLabel(v CustomFieldFilterLogicLabel) { } func (o CustomFieldFilterLogic) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableCustomFieldFilterLogic) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go index 55b62d6da0..04292ff9f3 100644 --- a/model_custom_field_filter_logic_label.go +++ b/model_custom_field_filter_logic_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type CustomFieldFilterLogicLabel string // List of CustomField_filter_logic_label const ( CUSTOMFIELDFILTERLOGICLABEL_DISABLED CustomFieldFilterLogicLabel = "Disabled" - CUSTOMFIELDFILTERLOGICLABEL_LOOSE CustomFieldFilterLogicLabel = "Loose" - CUSTOMFIELDFILTERLOGICLABEL_EXACT CustomFieldFilterLogicLabel = "Exact" + CUSTOMFIELDFILTERLOGICLABEL_LOOSE CustomFieldFilterLogicLabel = "Loose" + CUSTOMFIELDFILTERLOGICLABEL_EXACT CustomFieldFilterLogicLabel = "Exact" ) // All allowed values of CustomFieldFilterLogicLabel enum @@ -110,3 +110,4 @@ func (v *NullableCustomFieldFilterLogicLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go index b99381d64f..f93ed2b282 100644 --- a/model_custom_field_filter_logic_value.go +++ b/model_custom_field_filter_logic_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type CustomFieldFilterLogicValue string // List of CustomField_filter_logic_value const ( CUSTOMFIELDFILTERLOGICVALUE_DISABLED CustomFieldFilterLogicValue = "disabled" - CUSTOMFIELDFILTERLOGICVALUE_LOOSE CustomFieldFilterLogicValue = "loose" - CUSTOMFIELDFILTERLOGICVALUE_EXACT CustomFieldFilterLogicValue = "exact" + CUSTOMFIELDFILTERLOGICVALUE_LOOSE CustomFieldFilterLogicValue = "loose" + CUSTOMFIELDFILTERLOGICVALUE_EXACT CustomFieldFilterLogicValue = "exact" ) // All allowed values of CustomFieldFilterLogicValue enum @@ -110,3 +110,4 @@ func (v *NullableCustomFieldFilterLogicValue) 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 e62680adbc..8973e70be9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,27 +20,31 @@ var _ MappedNullable = &CustomFieldRequest{} // CustomFieldRequest 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 CustomFieldRequest struct { - ObjectTypes []string `json:"object_types"` - Type CustomFieldTypeValue `json:"type"` - RelatedObjectType NullableString `json:"related_object_type,omitempty"` + ObjectTypes []string `json:"object_types"` + Type CustomFieldTypeValue `json:"type"` + RelatedObjectType NullableString `json:"related_object_type,omitempty"` // Internal field name - Name string `json:"name"` + Name string `json:"name" validate:"regexp=^[a-z0-9_]+$"` // 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. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,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 *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"` - UiVisible *CustomFieldUiVisibleValue `json:"ui_visible,omitempty"` - UiEditable *CustomFieldUiEditableValue `json:"ui_editable,omitempty"` + SearchWeight *int32 `json:"search_weight,omitempty"` + FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"` + UiVisible *CustomFieldUiVisibleValue `json:"ui_visible,omitempty"` + UiEditable *CustomFieldUiEditableValue `json:"ui_editable,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type CustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `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"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -100,6 +104,7 @@ func (o *CustomFieldRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetType returns the Type field value func (o *CustomFieldRequest) GetType() CustomFieldTypeValue { if o == nil { @@ -124,6 +129,7 @@ func (o *CustomFieldRequest) SetType(v CustomFieldTypeValue) { o.Type = v } + // GetRelatedObjectType returns the RelatedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomFieldRequest) GetRelatedObjectType() string { if o == nil || IsNil(o.RelatedObjectType.Get()) { @@ -156,7 +162,6 @@ func (o *CustomFieldRequest) HasRelatedObjectType() bool { func (o *CustomFieldRequest) SetRelatedObjectType(v string) { o.RelatedObjectType.Set(&v) } - // SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil func (o *CustomFieldRequest) SetRelatedObjectTypeNil() { o.RelatedObjectType.Set(nil) @@ -191,6 +196,7 @@ func (o *CustomFieldRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *CustomFieldRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -319,6 +325,38 @@ func (o *CustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -512,6 +550,39 @@ func (o *CustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter 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) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -576,7 +647,6 @@ func (o *CustomFieldRequest) HasValidationMinimum() bool { func (o *CustomFieldRequest) SetValidationMinimum(v int64) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *CustomFieldRequest) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -619,7 +689,6 @@ func (o *CustomFieldRequest) HasValidationMaximum() bool { func (o *CustomFieldRequest) SetValidationMaximum(v int64) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *CustomFieldRequest) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -663,9 +732,9 @@ func (o *CustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -674,7 +743,7 @@ func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { // 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) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -690,11 +759,10 @@ func (o *CustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } - // SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil func (o *CustomFieldRequest) SetChoiceSetNil() { o.ChoiceSet.Set(nil) @@ -738,7 +806,7 @@ func (o *CustomFieldRequest) SetComments(v string) { } func (o CustomFieldRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -765,6 +833,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -783,6 +854,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -819,20 +893,37 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCustomFieldRequest := _CustomFieldRequest{} err = json.Unmarshal(data, &varCustomFieldRequest) @@ -854,12 +945,14 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") @@ -907,3 +1000,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 a3be15abff..c055f212ba 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldType{} // CustomFieldType struct for CustomFieldType type CustomFieldType struct { - Value *CustomFieldTypeValue `json:"value,omitempty"` - Label *CustomFieldTypeLabel `json:"label,omitempty"` + Value *CustomFieldTypeValue `json:"value,omitempty"` + Label *CustomFieldTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CustomFieldType) SetLabel(v CustomFieldTypeLabel) { } func (o CustomFieldType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableCustomFieldType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go index 4e8cbc627a..37067c0f86 100644 --- a/model_custom_field_type_label.go +++ b/model_custom_field_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ type CustomFieldTypeLabel string // List of CustomField_type_label const ( - CUSTOMFIELDTYPELABEL_TEXT CustomFieldTypeLabel = "Text" - CUSTOMFIELDTYPELABEL_TEXT__LONG CustomFieldTypeLabel = "Text (long)" - CUSTOMFIELDTYPELABEL_INTEGER CustomFieldTypeLabel = "Integer" - CUSTOMFIELDTYPELABEL_DECIMAL CustomFieldTypeLabel = "Decimal" + CUSTOMFIELDTYPELABEL_TEXT CustomFieldTypeLabel = "Text" + CUSTOMFIELDTYPELABEL_TEXT__LONG CustomFieldTypeLabel = "Text (long)" + CUSTOMFIELDTYPELABEL_INTEGER CustomFieldTypeLabel = "Integer" + CUSTOMFIELDTYPELABEL_DECIMAL CustomFieldTypeLabel = "Decimal" CUSTOMFIELDTYPELABEL_BOOLEAN__TRUE_FALSE CustomFieldTypeLabel = "Boolean (true/false)" - CUSTOMFIELDTYPELABEL_DATE CustomFieldTypeLabel = "Date" - CUSTOMFIELDTYPELABEL_DATE__TIME CustomFieldTypeLabel = "Date & time" - CUSTOMFIELDTYPELABEL_URL CustomFieldTypeLabel = "URL" - CUSTOMFIELDTYPELABEL_JSON CustomFieldTypeLabel = "JSON" - CUSTOMFIELDTYPELABEL_SELECTION CustomFieldTypeLabel = "Selection" - CUSTOMFIELDTYPELABEL_MULTIPLE_SELECTION CustomFieldTypeLabel = "Multiple selection" - CUSTOMFIELDTYPELABEL_OBJECT CustomFieldTypeLabel = "Object" - CUSTOMFIELDTYPELABEL_MULTIPLE_OBJECTS CustomFieldTypeLabel = "Multiple objects" + CUSTOMFIELDTYPELABEL_DATE CustomFieldTypeLabel = "Date" + CUSTOMFIELDTYPELABEL_DATE__TIME CustomFieldTypeLabel = "Date & time" + CUSTOMFIELDTYPELABEL_URL CustomFieldTypeLabel = "URL" + CUSTOMFIELDTYPELABEL_JSON CustomFieldTypeLabel = "JSON" + CUSTOMFIELDTYPELABEL_SELECTION CustomFieldTypeLabel = "Selection" + CUSTOMFIELDTYPELABEL_MULTIPLE_SELECTION CustomFieldTypeLabel = "Multiple selection" + CUSTOMFIELDTYPELABEL_OBJECT CustomFieldTypeLabel = "Object" + CUSTOMFIELDTYPELABEL_MULTIPLE_OBJECTS CustomFieldTypeLabel = "Multiple objects" ) // All allowed values of CustomFieldTypeLabel enum @@ -130,3 +130,4 @@ func (v *NullableCustomFieldTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go index 097829be52..9e487b8abd 100644 --- a/model_custom_field_type_value.go +++ b/model_custom_field_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ type CustomFieldTypeValue string // List of CustomField_type_value const ( - CUSTOMFIELDTYPEVALUE_TEXT CustomFieldTypeValue = "text" - CUSTOMFIELDTYPEVALUE_LONGTEXT CustomFieldTypeValue = "longtext" - CUSTOMFIELDTYPEVALUE_INTEGER CustomFieldTypeValue = "integer" - CUSTOMFIELDTYPEVALUE_DECIMAL CustomFieldTypeValue = "decimal" - CUSTOMFIELDTYPEVALUE_BOOLEAN CustomFieldTypeValue = "boolean" - CUSTOMFIELDTYPEVALUE_DATE CustomFieldTypeValue = "date" - CUSTOMFIELDTYPEVALUE_DATETIME CustomFieldTypeValue = "datetime" - CUSTOMFIELDTYPEVALUE_URL CustomFieldTypeValue = "url" - CUSTOMFIELDTYPEVALUE_JSON CustomFieldTypeValue = "json" - CUSTOMFIELDTYPEVALUE_SELECT CustomFieldTypeValue = "select" + CUSTOMFIELDTYPEVALUE_TEXT CustomFieldTypeValue = "text" + CUSTOMFIELDTYPEVALUE_LONGTEXT CustomFieldTypeValue = "longtext" + CUSTOMFIELDTYPEVALUE_INTEGER CustomFieldTypeValue = "integer" + CUSTOMFIELDTYPEVALUE_DECIMAL CustomFieldTypeValue = "decimal" + CUSTOMFIELDTYPEVALUE_BOOLEAN CustomFieldTypeValue = "boolean" + CUSTOMFIELDTYPEVALUE_DATE CustomFieldTypeValue = "date" + CUSTOMFIELDTYPEVALUE_DATETIME CustomFieldTypeValue = "datetime" + CUSTOMFIELDTYPEVALUE_URL CustomFieldTypeValue = "url" + CUSTOMFIELDTYPEVALUE_JSON CustomFieldTypeValue = "json" + CUSTOMFIELDTYPEVALUE_SELECT CustomFieldTypeValue = "select" CUSTOMFIELDTYPEVALUE_MULTISELECT CustomFieldTypeValue = "multiselect" - CUSTOMFIELDTYPEVALUE_OBJECT CustomFieldTypeValue = "object" + CUSTOMFIELDTYPEVALUE_OBJECT CustomFieldTypeValue = "object" CUSTOMFIELDTYPEVALUE_MULTIOBJECT CustomFieldTypeValue = "multiobject" ) @@ -130,3 +130,4 @@ func (v *NullableCustomFieldTypeValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go index 8d3e41d9a2..759b2939ed 100644 --- a/model_custom_field_ui_editable.go +++ b/model_custom_field_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldUiEditable{} // CustomFieldUiEditable struct for CustomFieldUiEditable type CustomFieldUiEditable struct { - Value *CustomFieldUiEditableValue `json:"value,omitempty"` - Label *CustomFieldUiEditableLabel `json:"label,omitempty"` + Value *CustomFieldUiEditableValue `json:"value,omitempty"` + Label *CustomFieldUiEditableLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CustomFieldUiEditable) SetLabel(v CustomFieldUiEditableLabel) { } func (o CustomFieldUiEditable) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableCustomFieldUiEditable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go index 6c09b4063d..33e81cc1f7 100644 --- a/model_custom_field_ui_editable_label.go +++ b/model_custom_field_ui_editable_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type CustomFieldUiEditableLabel string // List of CustomField_ui_editable_label const ( - CUSTOMFIELDUIEDITABLELABEL_YES CustomFieldUiEditableLabel = "Yes" - CUSTOMFIELDUIEDITABLELABEL_NO CustomFieldUiEditableLabel = "No" + CUSTOMFIELDUIEDITABLELABEL_YES CustomFieldUiEditableLabel = "Yes" + CUSTOMFIELDUIEDITABLELABEL_NO CustomFieldUiEditableLabel = "No" CUSTOMFIELDUIEDITABLELABEL_HIDDEN CustomFieldUiEditableLabel = "Hidden" ) @@ -110,3 +110,4 @@ func (v *NullableCustomFieldUiEditableLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go index b758a54553..6888e4cd1e 100644 --- a/model_custom_field_ui_editable_value.go +++ b/model_custom_field_ui_editable_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type CustomFieldUiEditableValue string // List of CustomField_ui_editable_value const ( - CUSTOMFIELDUIEDITABLEVALUE_YES CustomFieldUiEditableValue = "yes" - CUSTOMFIELDUIEDITABLEVALUE_NO CustomFieldUiEditableValue = "no" + CUSTOMFIELDUIEDITABLEVALUE_YES CustomFieldUiEditableValue = "yes" + CUSTOMFIELDUIEDITABLEVALUE_NO CustomFieldUiEditableValue = "no" CUSTOMFIELDUIEDITABLEVALUE_HIDDEN CustomFieldUiEditableValue = "hidden" ) @@ -110,3 +110,4 @@ func (v *NullableCustomFieldUiEditableValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go index d643bce9c8..f0ce469e15 100644 --- a/model_custom_field_ui_visible.go +++ b/model_custom_field_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &CustomFieldUiVisible{} // CustomFieldUiVisible struct for CustomFieldUiVisible type CustomFieldUiVisible struct { - Value *CustomFieldUiVisibleValue `json:"value,omitempty"` - Label *CustomFieldUiVisibleLabel `json:"label,omitempty"` + Value *CustomFieldUiVisibleValue `json:"value,omitempty"` + Label *CustomFieldUiVisibleLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CustomFieldUiVisible) SetLabel(v CustomFieldUiVisibleLabel) { } func (o CustomFieldUiVisible) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableCustomFieldUiVisible) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go index b66ef1e2bb..31deb78d04 100644 --- a/model_custom_field_ui_visible_label.go +++ b/model_custom_field_ui_visible_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullableCustomFieldUiVisibleLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go index d9f11b99bb..935989f1ca 100644 --- a/model_custom_field_ui_visible_value.go +++ b/model_custom_field_ui_visible_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullableCustomFieldUiVisibleValue) 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 1de90af8a9..8473e6767b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the CustomLink type satisfies the MappedNullable interface at compile time @@ -21,24 +21,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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` ObjectTypes []string `json:"object_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"` + GroupName *string `json:"group_name,omitempty"` ButtonClass *CustomLinkButtonClass `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,7 +49,7 @@ type _CustomLink CustomLink // 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 NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime) *CustomLink { +func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string) *CustomLink { this := CustomLink{} this.Id = id this.Url = url @@ -57,8 +58,6 @@ func NewCustomLink(id int32, url string, display string, objectTypes []string, n this.Name = name this.LinkText = linkText this.LinkUrl = linkUrl - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -94,6 +93,7 @@ func (o *CustomLink) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *CustomLink) GetUrl() string { if o == nil { @@ -118,6 +118,39 @@ func (o *CustomLink) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CustomLink) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomLink) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CustomLink) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CustomLink) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CustomLink) GetDisplay() string { if o == nil { @@ -142,6 +175,7 @@ func (o *CustomLink) SetDisplay(v string) { o.Display = v } + // GetObjectTypes returns the ObjectTypes field value func (o *CustomLink) GetObjectTypes() []string { if o == nil { @@ -166,6 +200,7 @@ func (o *CustomLink) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *CustomLink) GetName() string { if o == nil { @@ -190,6 +225,7 @@ func (o *CustomLink) SetName(v string) { o.Name = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *CustomLink) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -246,6 +282,7 @@ func (o *CustomLink) SetLinkText(v string) { o.LinkText = v } + // GetLinkUrl returns the LinkUrl field value func (o *CustomLink) GetLinkUrl() string { if o == nil { @@ -270,6 +307,7 @@ func (o *CustomLink) SetLinkUrl(v string) { o.LinkUrl = v } + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomLink) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -398,18 +436,16 @@ func (o *CustomLink) SetNewWindow(v bool) { o.NewWindow = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomLink) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *CustomLink) GetCreatedOk() (*time.Time, bool) { @@ -419,23 +455,39 @@ func (o *CustomLink) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *CustomLink) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *CustomLink) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *CustomLink) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *CustomLink) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomLink) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *CustomLink) GetLastUpdatedOk() (*time.Time, bool) { @@ -445,13 +497,31 @@ func (o *CustomLink) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *CustomLink) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *CustomLink) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *CustomLink) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *CustomLink) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o CustomLink) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -462,6 +532,9 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -482,8 +555,12 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) { if !IsNil(o.NewWindow) { toSerialize["new_window"] = o.NewWindow } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -504,24 +581,39 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { "name", "link_text", "link_url", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCustomLink := _CustomLink{} err = json.Unmarshal(data, &varCustomLink) @@ -537,6 +629,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") @@ -590,3 +683,5 @@ func (v *NullableCustomLink) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go index 50fd2a8f1f..beb02bbcd8 100644 --- a/model_custom_link_button_class.go +++ b/model_custom_link_button_class.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,31 +15,31 @@ import ( "fmt" ) -// CustomLinkButtonClass 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 +// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `default` - 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 type CustomLinkButtonClass string // List of CustomLink_button_class const ( - CUSTOMLINKBUTTONCLASS_OUTLINE_DARK CustomLinkButtonClass = "outline-dark" - CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" - CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" - CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" - CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" - CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" - CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" - CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" - CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" - CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" - CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" - CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" - CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" - CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" - CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" + CUSTOMLINKBUTTONCLASS_DEFAULT CustomLinkButtonClass = "default" + CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" + CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" + CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" + CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" + CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" + CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" + CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" + CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" + CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" + CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" + CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" + CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" + CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" + CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" ) // All allowed values of CustomLinkButtonClass enum var AllowedCustomLinkButtonClassEnumValues = []CustomLinkButtonClass{ - "outline-dark", + "default", "blue", "indigo", "purple", @@ -134,3 +134,4 @@ func (v *NullableCustomLinkButtonClass) 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 6de4bbfdb8..82c9144cfd 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,18 +21,18 @@ 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 { ObjectTypes []string `json:"object_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"` + GroupName *string `json:"group_name,omitempty"` ButtonClass *CustomLinkButtonClass `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{} } @@ -83,6 +83,7 @@ func (o *CustomLinkRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *CustomLinkRequest) GetName() string { if o == nil { @@ -107,6 +108,7 @@ func (o *CustomLinkRequest) SetName(v string) { o.Name = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *CustomLinkRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -163,6 +165,7 @@ func (o *CustomLinkRequest) SetLinkText(v string) { o.LinkText = v } + // GetLinkUrl returns the LinkUrl field value func (o *CustomLinkRequest) GetLinkUrl() string { if o == nil { @@ -187,6 +190,7 @@ func (o *CustomLinkRequest) SetLinkUrl(v string) { o.LinkUrl = v } + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomLinkRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -316,7 +320,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 } @@ -363,20 +367,37 @@ func (o *CustomLinkRequest) UnmarshalJSON(data []byte) (err error) { "link_url", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varCustomLinkRequest := _CustomLinkRequest{} err = json.Unmarshal(data, &varCustomLinkRequest) @@ -440,3 +461,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 5f90d03d61..8b976cef15 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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 interface{} `json:"layout,omitempty"` - Config interface{} `json:"config,omitempty"` + Layout interface{} `json:"layout,omitempty"` + Config interface{} `json:"config,omitempty"` AdditionalProperties map[string]interface{} } @@ -110,7 +110,7 @@ func (o *Dashboard) SetConfig(v interface{}) { } func (o Dashboard) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -190,3 +190,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 800dcc04ea..ded11c9340 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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 interface{} `json:"layout,omitempty"` - Config interface{} `json:"config,omitempty"` + Layout interface{} `json:"layout,omitempty"` + Config interface{} `json:"config,omitempty"` AdditionalProperties map[string]interface{} } @@ -110,7 +110,7 @@ func (o *DashboardRequest) SetConfig(v interface{}) { } func (o DashboardRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -190,3 +190,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 53adc911d4..1822f2c36e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the DataFile type satisfies the MappedNullable interface at compile time @@ -21,16 +21,17 @@ 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 DataSource `json:"source"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Source BriefDataSource `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{} } @@ -40,7 +41,7 @@ type _DataFile DataFile // 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 NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { +func NewDataFile(id int32, url string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { this := DataFile{} this.Id = id this.Url = url @@ -85,6 +86,7 @@ func (o *DataFile) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *DataFile) GetUrl() string { if o == nil { @@ -109,6 +111,39 @@ func (o *DataFile) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DataFile) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataFile) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DataFile) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DataFile) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DataFile) GetDisplay() string { if o == nil { @@ -133,10 +168,11 @@ func (o *DataFile) SetDisplay(v string) { o.Display = v } + // GetSource returns the Source field value -func (o *DataFile) GetSource() DataSource { +func (o *DataFile) GetSource() BriefDataSource { if o == nil { - var ret DataSource + var ret BriefDataSource return ret } @@ -145,7 +181,7 @@ func (o *DataFile) GetSource() DataSource { // GetSourceOk returns a tuple with the Source field value // and a boolean to check if the value has been set. -func (o *DataFile) GetSourceOk() (*DataSource, bool) { +func (o *DataFile) GetSourceOk() (*BriefDataSource, bool) { if o == nil { return nil, false } @@ -153,10 +189,11 @@ func (o *DataFile) GetSourceOk() (*DataSource, bool) { } // SetSource sets field value -func (o *DataFile) SetSource(v DataSource) { +func (o *DataFile) SetSource(v BriefDataSource) { o.Source = v } + // GetPath returns the Path field value func (o *DataFile) GetPath() string { if o == nil { @@ -181,6 +218,7 @@ func (o *DataFile) SetPath(v string) { o.Path = v } + // GetLastUpdated returns the LastUpdated field value func (o *DataFile) GetLastUpdated() time.Time { if o == nil { @@ -205,6 +243,7 @@ func (o *DataFile) SetLastUpdated(v time.Time) { o.LastUpdated = v } + // GetSize returns the Size field value func (o *DataFile) GetSize() int32 { if o == nil { @@ -229,6 +268,7 @@ func (o *DataFile) SetSize(v int32) { o.Size = v } + // GetHash returns the Hash field value func (o *DataFile) GetHash() string { if o == nil { @@ -253,8 +293,9 @@ func (o *DataFile) SetHash(v string) { o.Hash = v } + func (o DataFile) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -265,6 +306,9 @@ func (o DataFile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["source"] = o.Source toSerialize["path"] = o.Path @@ -294,20 +338,37 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { "hash", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDataFile := _DataFile{} err = json.Unmarshal(data, &varDataFile) @@ -323,6 +384,7 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "source") delete(additionalProperties, "path") @@ -370,3 +432,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 2757ef5b20..74a84d3de2 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,25 @@ 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"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + 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"` + Parameters interface{} `json:"parameters,omitempty"` + // Patterns (one per line) matching files to ignore when syncing + IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + LastSynced NullableTime `json:"last_synced,omitempty"` + FileCount int64 `json:"file_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +49,16 @@ type _DataSource DataSource // 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 NewDataSource(id int32, url string, display string, name string) *DataSource { +func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, fileCount int64) *DataSource { this := DataSource{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Type = type_ + this.SourceUrl = sourceUrl + this.Status = status + this.FileCount = fileCount return &this } @@ -75,6 +94,7 @@ func (o *DataSource) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *DataSource) GetUrl() string { if o == nil { @@ -99,6 +119,39 @@ func (o *DataSource) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DataSource) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DataSource) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DataSource) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DataSource) GetDisplay() string { if o == nil { @@ -123,6 +176,7 @@ func (o *DataSource) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *DataSource) GetName() string { if o == nil { @@ -147,6 +201,114 @@ func (o *DataSource) SetName(v string) { o.Name = v } + +// GetType returns the Type field value +func (o *DataSource) GetType() DataSourceType { + if o == nil { + var ret DataSourceType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetTypeOk() (*DataSourceType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DataSource) SetType(v DataSourceType) { + o.Type = v +} + + +// GetSourceUrl returns the SourceUrl field value +func (o *DataSource) GetSourceUrl() string { + if o == nil { + var ret string + return ret + } + + return o.SourceUrl +} + +// GetSourceUrlOk returns a tuple with the SourceUrl field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetSourceUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceUrl, true +} + +// SetSourceUrl sets field value +func (o *DataSource) SetSourceUrl(v string) { + o.SourceUrl = v +} + + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *DataSource) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *DataSource) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *DataSource) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetStatus returns the Status field value +func (o *DataSource) GetStatus() DataSourceStatus { + if o == nil { + var ret DataSourceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *DataSource) SetStatus(v DataSourceStatus) { + o.Status = v +} + + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DataSource) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,8 +341,288 @@ func (o *DataSource) SetDescription(v string) { o.Description = &v } +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DataSource) GetParameters() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters 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 *DataSource) GetParametersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return &o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *DataSource) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field. +func (o *DataSource) SetParameters(v interface{}) { + o.Parameters = v +} + +// GetIgnoreRules returns the IgnoreRules field value if set, zero value otherwise. +func (o *DataSource) GetIgnoreRules() string { + if o == nil || IsNil(o.IgnoreRules) { + var ret string + return ret + } + return *o.IgnoreRules +} + +// GetIgnoreRulesOk returns a tuple with the IgnoreRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetIgnoreRulesOk() (*string, bool) { + if o == nil || IsNil(o.IgnoreRules) { + return nil, false + } + return o.IgnoreRules, true +} + +// HasIgnoreRules returns a boolean if a field has been set. +func (o *DataSource) HasIgnoreRules() bool { + if o != nil && !IsNil(o.IgnoreRules) { + return true + } + + return false +} + +// SetIgnoreRules gets a reference to the given string and assigns it to the IgnoreRules field. +func (o *DataSource) SetIgnoreRules(v string) { + o.IgnoreRules = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSource) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSource) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSource) SetComments(v string) { + o.Comments = &v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DataSource) 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 *DataSource) 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 *DataSource) 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 *DataSource) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DataSource) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *DataSource) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *DataSource) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *DataSource) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *DataSource) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *DataSource) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DataSource) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *DataSource) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *DataSource) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *DataSource) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *DataSource) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *DataSource) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetLastSynced returns the LastSynced field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DataSource) GetLastSynced() time.Time { + if o == nil || IsNil(o.LastSynced.Get()) { + var ret time.Time + return ret + } + return *o.LastSynced.Get() +} + +// GetLastSyncedOk returns a tuple with the LastSynced 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 *DataSource) GetLastSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastSynced.Get(), o.LastSynced.IsSet() +} + +// HasLastSynced returns a boolean if a field has been set. +func (o *DataSource) HasLastSynced() bool { + if o != nil && o.LastSynced.IsSet() { + return true + } + + return false +} + +// SetLastSynced gets a reference to the given NullableTime and assigns it to the LastSynced field. +func (o *DataSource) SetLastSynced(v time.Time) { + o.LastSynced.Set(&v) +} +// SetLastSyncedNil sets the value for LastSynced to be an explicit nil +func (o *DataSource) SetLastSyncedNil() { + o.LastSynced.Set(nil) +} + +// UnsetLastSynced ensures that no value is present for LastSynced, not even an explicit nil +func (o *DataSource) UnsetLastSynced() { + o.LastSynced.Unset() +} + +// GetFileCount returns the FileCount field value +func (o *DataSource) GetFileCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.FileCount +} + +// GetFileCountOk returns a tuple with the FileCount field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetFileCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.FileCount, true +} + +// SetFileCount sets field value +func (o *DataSource) SetFileCount(v int64) { + o.FileCount = v +} + + func (o DataSource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -191,11 +633,42 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + toSerialize["source_url"] = o.SourceUrl + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + toSerialize["status"] = o.Status if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Parameters != nil { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.IgnoreRules) { + toSerialize["ignore_rules"] = o.IgnoreRules + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if o.LastSynced.IsSet() { + toSerialize["last_synced"] = o.LastSynced.Get() + } + toSerialize["file_count"] = o.FileCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -213,22 +686,43 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "type", + "source_url", + "status", + "file_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDataSource := _DataSource{} err = json.Unmarshal(data, &varDataSource) @@ -244,9 +738,22 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "source_url") + delete(additionalProperties, "enabled") + delete(additionalProperties, "status") delete(additionalProperties, "description") + delete(additionalProperties, "parameters") + delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "last_synced") + delete(additionalProperties, "file_count") o.AdditionalProperties = additionalProperties } @@ -288,3 +795,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 356c146f75..a68f27d070 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &DataSourceRequest{} // DataSourceRequest Adds support for custom fields and tags. type DataSourceRequest struct { - Name string `json:"name"` - Type DataSourceRequestType `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters interface{} `json:"parameters,omitempty"` + Name string `json:"name"` + Type DataSourceTypeValue `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _DataSourceRequest DataSourceRequest // 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 NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string) *DataSourceRequest { +func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string) *DataSourceRequest { this := DataSourceRequest{} this.Name = name this.Type = type_ @@ -79,10 +79,11 @@ func (o *DataSourceRequest) SetName(v string) { o.Name = v } + // GetType returns the Type field value -func (o *DataSourceRequest) GetType() DataSourceRequestType { +func (o *DataSourceRequest) GetType() DataSourceTypeValue { if o == nil { - var ret DataSourceRequestType + var ret DataSourceTypeValue return ret } @@ -91,7 +92,7 @@ func (o *DataSourceRequest) GetType() DataSourceRequestType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { +func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) { if o == nil { return nil, false } @@ -99,10 +100,11 @@ func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { } // SetType sets field value -func (o *DataSourceRequest) SetType(v DataSourceRequestType) { +func (o *DataSourceRequest) SetType(v DataSourceTypeValue) { o.Type = v } + // GetSourceUrl returns the SourceUrl field value func (o *DataSourceRequest) GetSourceUrl() string { if o == nil { @@ -127,6 +129,7 @@ func (o *DataSourceRequest) SetSourceUrl(v string) { o.SourceUrl = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *DataSourceRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -191,38 +194,6 @@ func (o *DataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +259,38 @@ func (o *DataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *DataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -321,7 +324,7 @@ func (o *DataSourceRequest) SetCustomFields(v map[string]interface{}) { } func (o DataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -339,15 +342,15 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -369,20 +372,37 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) { "source_url", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDataSourceRequest := _DataSourceRequest{} err = json.Unmarshal(data, &varDataSourceRequest) @@ -401,9 +421,9 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -446,3 +466,5 @@ func (v *NullableDataSourceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_data_source_request_type.go b/model_data_source_request_type.go deleted file mode 100644 index b924aad2e9..0000000000 --- a/model_data_source_request_type.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// DataSourceRequestType * `None` - --------- * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 -type DataSourceRequestType string - -// List of DataSourceRequest_type -const ( - DATASOURCEREQUESTTYPE_LOCAL DataSourceRequestType = "local" - DATASOURCEREQUESTTYPE_GIT DataSourceRequestType = "git" - DATASOURCEREQUESTTYPE_AMAZON_S3 DataSourceRequestType = "amazon-s3" -) - -// All allowed values of DataSourceRequestType enum -var AllowedDataSourceRequestTypeEnumValues = []DataSourceRequestType{ - "local", - "git", - "amazon-s3", -} - -func (v *DataSourceRequestType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := DataSourceRequestType(value) - for _, existing := range AllowedDataSourceRequestTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid DataSourceRequestType", value) -} - -// NewDataSourceRequestTypeFromValue returns a pointer to a valid DataSourceRequestType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewDataSourceRequestTypeFromValue(v string) (*DataSourceRequestType, error) { - ev := DataSourceRequestType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for DataSourceRequestType: valid values are %v", v, AllowedDataSourceRequestTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v DataSourceRequestType) IsValid() bool { - for _, existing := range AllowedDataSourceRequestTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to DataSourceRequest_type value -func (v DataSourceRequestType) Ptr() *DataSourceRequestType { - return &v -} - -type NullableDataSourceRequestType struct { - value *DataSourceRequestType - isSet bool -} - -func (v NullableDataSourceRequestType) Get() *DataSourceRequestType { - return v.value -} - -func (v *NullableDataSourceRequestType) Set(val *DataSourceRequestType) { - v.value = val - v.isSet = true -} - -func (v NullableDataSourceRequestType) IsSet() bool { - return v.isSet -} - -func (v *NullableDataSourceRequestType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDataSourceRequestType(val *DataSourceRequestType) *NullableDataSourceRequestType { - return &NullableDataSourceRequestType{value: val, isSet: true} -} - -func (v NullableDataSourceRequestType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDataSourceRequestType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_wireless_link_status.go b/model_data_source_status.go similarity index 50% rename from model_wireless_link_status.go rename to model_data_source_status.go index 45f92f27dd..f2e830f0a0 100644 --- a/model_wireless_link_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,39 +14,39 @@ import ( "encoding/json" ) -// checks if the WirelessLinkStatus type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WirelessLinkStatus{} +// checks if the DataSourceStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DataSourceStatus{} -// WirelessLinkStatus struct for WirelessLinkStatus -type WirelessLinkStatus struct { - Value *PatchedWritableCableRequestStatus `json:"value,omitempty"` - Label *WirelessLinkStatusLabel `json:"label,omitempty"` +// DataSourceStatus struct for DataSourceStatus +type DataSourceStatus struct { + Value *DataSourceStatusValue `json:"value,omitempty"` + Label *DataSourceStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } -type _WirelessLinkStatus WirelessLinkStatus +type _DataSourceStatus DataSourceStatus -// NewWirelessLinkStatus instantiates a new WirelessLinkStatus object +// NewDataSourceStatus instantiates a new DataSourceStatus 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 NewWirelessLinkStatus() *WirelessLinkStatus { - this := WirelessLinkStatus{} +func NewDataSourceStatus() *DataSourceStatus { + this := DataSourceStatus{} return &this } -// NewWirelessLinkStatusWithDefaults instantiates a new WirelessLinkStatus object +// NewDataSourceStatusWithDefaults instantiates a new DataSourceStatus 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 NewWirelessLinkStatusWithDefaults() *WirelessLinkStatus { - this := WirelessLinkStatus{} +func NewDataSourceStatusWithDefaults() *DataSourceStatus { + this := DataSourceStatus{} return &this } // GetValue returns the Value field value if set, zero value otherwise. -func (o *WirelessLinkStatus) GetValue() PatchedWritableCableRequestStatus { +func (o *DataSourceStatus) GetValue() DataSourceStatusValue { if o == nil || IsNil(o.Value) { - var ret PatchedWritableCableRequestStatus + var ret DataSourceStatusValue return ret } return *o.Value @@ -54,7 +54,7 @@ func (o *WirelessLinkStatus) GetValue() PatchedWritableCableRequestStatus { // 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 *WirelessLinkStatus) GetValueOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, bool) { if o == nil || IsNil(o.Value) { return nil, false } @@ -62,7 +62,7 @@ func (o *WirelessLinkStatus) GetValueOk() (*PatchedWritableCableRequestStatus, b } // HasValue returns a boolean if a field has been set. -func (o *WirelessLinkStatus) HasValue() bool { +func (o *DataSourceStatus) HasValue() bool { if o != nil && !IsNil(o.Value) { return true } @@ -70,15 +70,15 @@ func (o *WirelessLinkStatus) HasValue() bool { return false } -// SetValue gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Value field. -func (o *WirelessLinkStatus) SetValue(v PatchedWritableCableRequestStatus) { +// SetValue gets a reference to the given DataSourceStatusValue and assigns it to the Value field. +func (o *DataSourceStatus) SetValue(v DataSourceStatusValue) { o.Value = &v } // GetLabel returns the Label field value if set, zero value otherwise. -func (o *WirelessLinkStatus) GetLabel() WirelessLinkStatusLabel { +func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel { if o == nil || IsNil(o.Label) { - var ret WirelessLinkStatusLabel + var ret DataSourceStatusLabel return ret } return *o.Label @@ -86,7 +86,7 @@ func (o *WirelessLinkStatus) GetLabel() WirelessLinkStatusLabel { // 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 *WirelessLinkStatus) GetLabelOk() (*WirelessLinkStatusLabel, bool) { +func (o *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, bool) { if o == nil || IsNil(o.Label) { return nil, false } @@ -94,7 +94,7 @@ func (o *WirelessLinkStatus) GetLabelOk() (*WirelessLinkStatusLabel, bool) { } // HasLabel returns a boolean if a field has been set. -func (o *WirelessLinkStatus) HasLabel() bool { +func (o *DataSourceStatus) HasLabel() bool { if o != nil && !IsNil(o.Label) { return true } @@ -102,20 +102,20 @@ func (o *WirelessLinkStatus) HasLabel() bool { return false } -// SetLabel gets a reference to the given WirelessLinkStatusLabel and assigns it to the Label field. -func (o *WirelessLinkStatus) SetLabel(v WirelessLinkStatusLabel) { +// SetLabel gets a reference to the given DataSourceStatusLabel and assigns it to the Label field. +func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel) { o.Label = &v } -func (o WirelessLinkStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o DataSourceStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o WirelessLinkStatus) ToMap() (map[string]interface{}, error) { +func (o DataSourceStatus) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Value) { toSerialize["value"] = o.Value @@ -131,16 +131,16 @@ func (o WirelessLinkStatus) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WirelessLinkStatus) UnmarshalJSON(data []byte) (err error) { - varWirelessLinkStatus := _WirelessLinkStatus{} +func (o *DataSourceStatus) UnmarshalJSON(data []byte) (err error) { + varDataSourceStatus := _DataSourceStatus{} - err = json.Unmarshal(data, &varWirelessLinkStatus) + err = json.Unmarshal(data, &varDataSourceStatus) if err != nil { return err } - *o = WirelessLinkStatus(varWirelessLinkStatus) + *o = DataSourceStatus(varDataSourceStatus) additionalProperties := make(map[string]interface{}) @@ -153,38 +153,40 @@ func (o *WirelessLinkStatus) UnmarshalJSON(data []byte) (err error) { return err } -type NullableWirelessLinkStatus struct { - value *WirelessLinkStatus +type NullableDataSourceStatus struct { + value *DataSourceStatus isSet bool } -func (v NullableWirelessLinkStatus) Get() *WirelessLinkStatus { +func (v NullableDataSourceStatus) Get() *DataSourceStatus { return v.value } -func (v *NullableWirelessLinkStatus) Set(val *WirelessLinkStatus) { +func (v *NullableDataSourceStatus) Set(val *DataSourceStatus) { v.value = val v.isSet = true } -func (v NullableWirelessLinkStatus) IsSet() bool { +func (v NullableDataSourceStatus) IsSet() bool { return v.isSet } -func (v *NullableWirelessLinkStatus) Unset() { +func (v *NullableDataSourceStatus) Unset() { v.value = nil v.isSet = false } -func NewNullableWirelessLinkStatus(val *WirelessLinkStatus) *NullableWirelessLinkStatus { - return &NullableWirelessLinkStatus{value: val, isSet: true} +func NewNullableDataSourceStatus(val *DataSourceStatus) *NullableDataSourceStatus { + return &NullableDataSourceStatus{value: val, isSet: true} } -func (v NullableWirelessLinkStatus) MarshalJSON() ([]byte, error) { +func (v NullableDataSourceStatus) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableWirelessLinkStatus) UnmarshalJSON(src []byte) error { +func (v *NullableDataSourceStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_data_source_status_label.go b/model_data_source_status_label.go new file mode 100644 index 0000000000..243ef0914c --- /dev/null +++ b/model_data_source_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceStatusLabel the model 'DataSourceStatusLabel' +type DataSourceStatusLabel string + +// List of DataSource_status_label +const ( + DATASOURCESTATUSLABEL_NEW DataSourceStatusLabel = "New" + DATASOURCESTATUSLABEL_QUEUED DataSourceStatusLabel = "Queued" + DATASOURCESTATUSLABEL_SYNCING DataSourceStatusLabel = "Syncing" + DATASOURCESTATUSLABEL_COMPLETED DataSourceStatusLabel = "Completed" + DATASOURCESTATUSLABEL_FAILED DataSourceStatusLabel = "Failed" +) + +// All allowed values of DataSourceStatusLabel enum +var AllowedDataSourceStatusLabelEnumValues = []DataSourceStatusLabel{ + "New", + "Queued", + "Syncing", + "Completed", + "Failed", +} + +func (v *DataSourceStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceStatusLabel(value) + for _, existing := range AllowedDataSourceStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceStatusLabel", value) +} + +// NewDataSourceStatusLabelFromValue returns a pointer to a valid DataSourceStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceStatusLabelFromValue(v string) (*DataSourceStatusLabel, error) { + ev := DataSourceStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceStatusLabel: valid values are %v", v, AllowedDataSourceStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceStatusLabel) IsValid() bool { + for _, existing := range AllowedDataSourceStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_status_label value +func (v DataSourceStatusLabel) Ptr() *DataSourceStatusLabel { + return &v +} + +type NullableDataSourceStatusLabel struct { + value *DataSourceStatusLabel + isSet bool +} + +func (v NullableDataSourceStatusLabel) Get() *DataSourceStatusLabel { + return v.value +} + +func (v *NullableDataSourceStatusLabel) Set(val *DataSourceStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatusLabel(val *DataSourceStatusLabel) *NullableDataSourceStatusLabel { + return &NullableDataSourceStatusLabel{value: val, isSet: true} +} + +func (v NullableDataSourceStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_data_source_status_value.go b/model_data_source_status_value.go new file mode 100644 index 0000000000..34117fc8ed --- /dev/null +++ b/model_data_source_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceStatusValue * `new` - New * `queued` - Queued * `syncing` - Syncing * `completed` - Completed * `failed` - Failed +type DataSourceStatusValue string + +// List of DataSource_status_value +const ( + DATASOURCESTATUSVALUE_NEW DataSourceStatusValue = "new" + DATASOURCESTATUSVALUE_QUEUED DataSourceStatusValue = "queued" + DATASOURCESTATUSVALUE_SYNCING DataSourceStatusValue = "syncing" + DATASOURCESTATUSVALUE_COMPLETED DataSourceStatusValue = "completed" + DATASOURCESTATUSVALUE_FAILED DataSourceStatusValue = "failed" +) + +// All allowed values of DataSourceStatusValue enum +var AllowedDataSourceStatusValueEnumValues = []DataSourceStatusValue{ + "new", + "queued", + "syncing", + "completed", + "failed", +} + +func (v *DataSourceStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceStatusValue(value) + for _, existing := range AllowedDataSourceStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceStatusValue", value) +} + +// NewDataSourceStatusValueFromValue returns a pointer to a valid DataSourceStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceStatusValueFromValue(v string) (*DataSourceStatusValue, error) { + ev := DataSourceStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceStatusValue: valid values are %v", v, AllowedDataSourceStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceStatusValue) IsValid() bool { + for _, existing := range AllowedDataSourceStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_status_value value +func (v DataSourceStatusValue) Ptr() *DataSourceStatusValue { + return &v +} + +type NullableDataSourceStatusValue struct { + value *DataSourceStatusValue + isSet bool +} + +func (v NullableDataSourceStatusValue) Get() *DataSourceStatusValue { + return v.value +} + +func (v *NullableDataSourceStatusValue) Set(val *DataSourceStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatusValue(val *DataSourceStatusValue) *NullableDataSourceStatusValue { + return &NullableDataSourceStatusValue{value: val, isSet: true} +} + +func (v NullableDataSourceStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatusValue) 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 new file mode 100644 index 0000000000..bdcf438c81 --- /dev/null +++ b/model_data_source_type.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DataSourceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DataSourceType{} + +// DataSourceType struct for DataSourceType +type DataSourceType struct { + Value *DataSourceTypeValue `json:"value,omitempty"` + Label *DataSourceTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DataSourceType DataSourceType + +// NewDataSourceType instantiates a new DataSourceType 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 NewDataSourceType() *DataSourceType { + this := DataSourceType{} + return &this +} + +// NewDataSourceTypeWithDefaults instantiates a new DataSourceType 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 NewDataSourceTypeWithDefaults() *DataSourceType { + this := DataSourceType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DataSourceType) GetValue() DataSourceTypeValue { + if o == nil || IsNil(o.Value) { + var ret DataSourceTypeValue + 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 *DataSourceType) GetValueOk() (*DataSourceTypeValue, 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 *DataSourceType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DataSourceTypeValue and assigns it to the Value field. +func (o *DataSourceType) SetValue(v DataSourceTypeValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DataSourceType) GetLabel() DataSourceTypeLabel { + if o == nil || IsNil(o.Label) { + var ret DataSourceTypeLabel + 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 *DataSourceType) GetLabelOk() (*DataSourceTypeLabel, 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 *DataSourceType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DataSourceTypeLabel and assigns it to the Label field. +func (o *DataSourceType) SetLabel(v DataSourceTypeLabel) { + o.Label = &v +} + +func (o DataSourceType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DataSourceType) 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 *DataSourceType) UnmarshalJSON(data []byte) (err error) { + varDataSourceType := _DataSourceType{} + + err = json.Unmarshal(data, &varDataSourceType) + + if err != nil { + return err + } + + *o = DataSourceType(varDataSourceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDataSourceType struct { + value *DataSourceType + isSet bool +} + +func (v NullableDataSourceType) Get() *DataSourceType { + return v.value +} + +func (v *NullableDataSourceType) Set(val *DataSourceType) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceType) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceType(val *DataSourceType) *NullableDataSourceType { + return &NullableDataSourceType{value: val, isSet: true} +} + +func (v NullableDataSourceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_data_source_type_label.go b/model_data_source_type_label.go new file mode 100644 index 0000000000..f5ed5ac243 --- /dev/null +++ b/model_data_source_type_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceTypeLabel the model 'DataSourceTypeLabel' +type DataSourceTypeLabel string + +// List of DataSource_type_label +const ( + DATASOURCETYPELABEL________ DataSourceTypeLabel = "---------" + DATASOURCETYPELABEL_LOCAL DataSourceTypeLabel = "Local" + DATASOURCETYPELABEL_GIT DataSourceTypeLabel = "Git" + DATASOURCETYPELABEL_AMAZON_S3 DataSourceTypeLabel = "Amazon S3" +) + +// All allowed values of DataSourceTypeLabel enum +var AllowedDataSourceTypeLabelEnumValues = []DataSourceTypeLabel{ + "---------", + "Local", + "Git", + "Amazon S3", +} + +func (v *DataSourceTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceTypeLabel(value) + for _, existing := range AllowedDataSourceTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceTypeLabel", value) +} + +// NewDataSourceTypeLabelFromValue returns a pointer to a valid DataSourceTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceTypeLabelFromValue(v string) (*DataSourceTypeLabel, error) { + ev := DataSourceTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceTypeLabel: valid values are %v", v, AllowedDataSourceTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceTypeLabel) IsValid() bool { + for _, existing := range AllowedDataSourceTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_type_label value +func (v DataSourceTypeLabel) Ptr() *DataSourceTypeLabel { + return &v +} + +type NullableDataSourceTypeLabel struct { + value *DataSourceTypeLabel + isSet bool +} + +func (v NullableDataSourceTypeLabel) Get() *DataSourceTypeLabel { + return v.value +} + +func (v *NullableDataSourceTypeLabel) Set(val *DataSourceTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceTypeLabel(val *DataSourceTypeLabel) *NullableDataSourceTypeLabel { + return &NullableDataSourceTypeLabel{value: val, isSet: true} +} + +func (v NullableDataSourceTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_data_source_type_value.go b/model_data_source_type_value.go new file mode 100644 index 0000000000..b5e366f6ce --- /dev/null +++ b/model_data_source_type_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceTypeValue * `None` - --------- * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 +type DataSourceTypeValue string + +// List of DataSource_type_value +const ( + DATASOURCETYPEVALUE_LOCAL DataSourceTypeValue = "local" + DATASOURCETYPEVALUE_GIT DataSourceTypeValue = "git" + DATASOURCETYPEVALUE_AMAZON_S3 DataSourceTypeValue = "amazon-s3" +) + +// All allowed values of DataSourceTypeValue enum +var AllowedDataSourceTypeValueEnumValues = []DataSourceTypeValue{ + "local", + "git", + "amazon-s3", +} + +func (v *DataSourceTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceTypeValue(value) + for _, existing := range AllowedDataSourceTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceTypeValue", value) +} + +// NewDataSourceTypeValueFromValue returns a pointer to a valid DataSourceTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceTypeValueFromValue(v string) (*DataSourceTypeValue, error) { + ev := DataSourceTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceTypeValue: valid values are %v", v, AllowedDataSourceTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceTypeValue) IsValid() bool { + for _, existing := range AllowedDataSourceTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_type_value value +func (v DataSourceTypeValue) Ptr() *DataSourceTypeValue { + return &v +} + +type NullableDataSourceTypeValue struct { + value *DataSourceTypeValue + isSet bool +} + +func (v NullableDataSourceTypeValue) Get() *DataSourceTypeValue { + return v.value +} + +func (v *NullableDataSourceTypeValue) Set(val *DataSourceTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceTypeValue(val *DataSourceTypeValue) *NullableDataSourceTypeValue { + return &NullableDataSourceTypeValue{value: val, isSet: true} +} + +func (v NullableDataSourceTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_cables_list_length_unit_parameter.go b/model_dcim_cables_list_length_unit_parameter.go index f19ebe5fef..dbb4bc55df 100644 --- a/model_dcim_cables_list_length_unit_parameter.go +++ b/model_dcim_cables_list_length_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,7 +24,7 @@ const ( DCIMCABLESLISTLENGTHUNITPARAMETER_FT DcimCablesListLengthUnitParameter = "ft" DCIMCABLESLISTLENGTHUNITPARAMETER_IN DcimCablesListLengthUnitParameter = "in" DCIMCABLESLISTLENGTHUNITPARAMETER_KM DcimCablesListLengthUnitParameter = "km" - DCIMCABLESLISTLENGTHUNITPARAMETER_M DcimCablesListLengthUnitParameter = "m" + DCIMCABLESLISTLENGTHUNITPARAMETER_M DcimCablesListLengthUnitParameter = "m" DCIMCABLESLISTLENGTHUNITPARAMETER_MI DcimCablesListLengthUnitParameter = "mi" ) @@ -116,3 +116,4 @@ func (v *NullableDcimCablesListLengthUnitParameter) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_console_port_templates_list_type_parameter.go b/model_dcim_console_port_templates_list_type_parameter.go index 7554c6357e..15586a718d 100644 --- a/model_dcim_console_port_templates_list_type_parameter.go +++ b/model_dcim_console_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type DcimConsolePortTemplatesListTypeParameter string // List of dcim_console_port_templates_list_type_parameter const ( - DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimConsolePortTemplatesListTypeParameter = "Other" + DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimConsolePortTemplatesListTypeParameter = "Other" DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_SERIAL DcimConsolePortTemplatesListTypeParameter = "Serial" - DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_USB DcimConsolePortTemplatesListTypeParameter = "USB" + DCIMCONSOLEPORTTEMPLATESLISTTYPEPARAMETER_USB DcimConsolePortTemplatesListTypeParameter = "USB" ) // All allowed values of DcimConsolePortTemplatesListTypeParameter enum @@ -110,3 +110,4 @@ func (v *NullableDcimConsolePortTemplatesListTypeParameter) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_console_ports_list_speed_parameter.go b/model_dcim_console_ports_list_speed_parameter.go index 1f1008b17c..c59b0da7df 100644 --- a/model_dcim_console_ports_list_speed_parameter.go +++ b/model_dcim_console_ports_list_speed_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ type DcimConsolePortsListSpeedParameter int32 // List of dcim_console_ports_list_speed_parameter const ( DCIMCONSOLEPORTSLISTSPEEDPARAMETER__115200 DcimConsolePortsListSpeedParameter = 115200 - DCIMCONSOLEPORTSLISTSPEEDPARAMETER__1200 DcimConsolePortsListSpeedParameter = 1200 - DCIMCONSOLEPORTSLISTSPEEDPARAMETER__19200 DcimConsolePortsListSpeedParameter = 19200 - DCIMCONSOLEPORTSLISTSPEEDPARAMETER__2400 DcimConsolePortsListSpeedParameter = 2400 - DCIMCONSOLEPORTSLISTSPEEDPARAMETER__38400 DcimConsolePortsListSpeedParameter = 38400 - DCIMCONSOLEPORTSLISTSPEEDPARAMETER__4800 DcimConsolePortsListSpeedParameter = 4800 - DCIMCONSOLEPORTSLISTSPEEDPARAMETER__57600 DcimConsolePortsListSpeedParameter = 57600 - DCIMCONSOLEPORTSLISTSPEEDPARAMETER__9600 DcimConsolePortsListSpeedParameter = 9600 + DCIMCONSOLEPORTSLISTSPEEDPARAMETER__1200 DcimConsolePortsListSpeedParameter = 1200 + DCIMCONSOLEPORTSLISTSPEEDPARAMETER__19200 DcimConsolePortsListSpeedParameter = 19200 + DCIMCONSOLEPORTSLISTSPEEDPARAMETER__2400 DcimConsolePortsListSpeedParameter = 2400 + DCIMCONSOLEPORTSLISTSPEEDPARAMETER__38400 DcimConsolePortsListSpeedParameter = 38400 + DCIMCONSOLEPORTSLISTSPEEDPARAMETER__4800 DcimConsolePortsListSpeedParameter = 4800 + DCIMCONSOLEPORTSLISTSPEEDPARAMETER__57600 DcimConsolePortsListSpeedParameter = 57600 + DCIMCONSOLEPORTSLISTSPEEDPARAMETER__9600 DcimConsolePortsListSpeedParameter = 9600 ) // All allowed values of DcimConsolePortsListSpeedParameter enum @@ -120,3 +120,4 @@ func (v *NullableDcimConsolePortsListSpeedParameter) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_device_types_list_airflow_parameter.go b/model_dcim_device_types_list_airflow_parameter.go index 0d667f2249..d9c231ad00 100644 --- a/model_dcim_device_types_list_airflow_parameter.go +++ b/model_dcim_device_types_list_airflow_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,24 +20,30 @@ type DcimDeviceTypesListAirflowParameter string // List of dcim_device_types_list_airflow_parameter const ( + DCIMDEVICETYPESLISTAIRFLOWPARAMETER_BOTTOM_TO_TOP DcimDeviceTypesListAirflowParameter = "bottom-to-top" DCIMDEVICETYPESLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimDeviceTypesListAirflowParameter = "front-to-rear" DCIMDEVICETYPESLISTAIRFLOWPARAMETER_LEFT_TO_RIGHT DcimDeviceTypesListAirflowParameter = "left-to-right" - DCIMDEVICETYPESLISTAIRFLOWPARAMETER_MIXED DcimDeviceTypesListAirflowParameter = "mixed" - DCIMDEVICETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimDeviceTypesListAirflowParameter = "passive" + DCIMDEVICETYPESLISTAIRFLOWPARAMETER_MIXED DcimDeviceTypesListAirflowParameter = "mixed" + DCIMDEVICETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimDeviceTypesListAirflowParameter = "passive" DCIMDEVICETYPESLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimDeviceTypesListAirflowParameter = "rear-to-front" + DCIMDEVICETYPESLISTAIRFLOWPARAMETER_REAR_TO_SIDE DcimDeviceTypesListAirflowParameter = "rear-to-side" DCIMDEVICETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimDeviceTypesListAirflowParameter = "right-to-left" - DCIMDEVICETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimDeviceTypesListAirflowParameter = "side-to-rear" + DCIMDEVICETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimDeviceTypesListAirflowParameter = "side-to-rear" + DCIMDEVICETYPESLISTAIRFLOWPARAMETER_TOP_TO_BOTTOM DcimDeviceTypesListAirflowParameter = "top-to-bottom" ) // All allowed values of DcimDeviceTypesListAirflowParameter enum var AllowedDcimDeviceTypesListAirflowParameterEnumValues = []DcimDeviceTypesListAirflowParameter{ + "bottom-to-top", "front-to-rear", "left-to-right", "mixed", "passive", "rear-to-front", + "rear-to-side", "right-to-left", "side-to-rear", + "top-to-bottom", } func (v *DcimDeviceTypesListAirflowParameter) UnmarshalJSON(src []byte) error { @@ -118,3 +124,4 @@ func (v *NullableDcimDeviceTypesListAirflowParameter) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_device_types_list_weight_unit_parameter.go b/model_dcim_device_types_list_weight_unit_parameter.go index acfb6c6fe4..0b2ddd6d95 100644 --- a/model_dcim_device_types_list_weight_unit_parameter.go +++ b/model_dcim_device_types_list_weight_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type DcimDeviceTypesListWeightUnitParameter string // List of dcim_device_types_list_weight_unit_parameter const ( - DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_G DcimDeviceTypesListWeightUnitParameter = "g" + DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_G DcimDeviceTypesListWeightUnitParameter = "g" DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_KG DcimDeviceTypesListWeightUnitParameter = "kg" DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_LB DcimDeviceTypesListWeightUnitParameter = "lb" DCIMDEVICETYPESLISTWEIGHTUNITPARAMETER_OZ DcimDeviceTypesListWeightUnitParameter = "oz" @@ -112,3 +112,4 @@ func (v *NullableDcimDeviceTypesListWeightUnitParameter) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_devices_render_config_create_format_parameter.go b/model_dcim_devices_render_config_create_format_parameter.go index 62cac65410..72b59ae213 100644 --- a/model_dcim_devices_render_config_create_format_parameter.go +++ b/model_dcim_devices_render_config_create_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type DcimDevicesRenderConfigCreateFormatParameter string // List of dcim_devices_render_config_create_format_parameter const ( DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_JSON DcimDevicesRenderConfigCreateFormatParameter = "json" - DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_TXT DcimDevicesRenderConfigCreateFormatParameter = "txt" + DCIMDEVICESRENDERCONFIGCREATEFORMATPARAMETER_TXT DcimDevicesRenderConfigCreateFormatParameter = "txt" ) // All allowed values of DcimDevicesRenderConfigCreateFormatParameter enum @@ -108,3 +108,4 @@ func (v *NullableDcimDevicesRenderConfigCreateFormatParameter) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_interfaces_list_mode_parameter.go b/model_dcim_interfaces_list_mode_parameter.go index 64b1b66dae..99b0770d5b 100644 --- a/model_dcim_interfaces_list_mode_parameter.go +++ b/model_dcim_interfaces_list_mode_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,16 @@ type DcimInterfacesListModeParameter string // List of dcim_interfaces_list_mode_parameter const ( - DCIMINTERFACESLISTMODEPARAMETER_ACCESS DcimInterfacesListModeParameter = "access" - DCIMINTERFACESLISTMODEPARAMETER_TAGGED DcimInterfacesListModeParameter = "tagged" + DCIMINTERFACESLISTMODEPARAMETER_ACCESS DcimInterfacesListModeParameter = "access" + DCIMINTERFACESLISTMODEPARAMETER_Q_IN_Q DcimInterfacesListModeParameter = "q-in-q" + DCIMINTERFACESLISTMODEPARAMETER_TAGGED DcimInterfacesListModeParameter = "tagged" DCIMINTERFACESLISTMODEPARAMETER_TAGGED_ALL DcimInterfacesListModeParameter = "tagged-all" ) // All allowed values of DcimInterfacesListModeParameter enum var AllowedDcimInterfacesListModeParameterEnumValues = []DcimInterfacesListModeParameter{ "access", + "q-in-q", "tagged", "tagged-all", } @@ -110,3 +112,4 @@ func (v *NullableDcimInterfacesListModeParameter) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_module_types_list_airflow_parameter.go b/model_dcim_module_types_list_airflow_parameter.go new file mode 100644 index 0000000000..eba2f0ecd9 --- /dev/null +++ b/model_dcim_module_types_list_airflow_parameter.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimModuleTypesListAirflowParameter the model 'DcimModuleTypesListAirflowParameter' +type DcimModuleTypesListAirflowParameter string + +// List of dcim_module_types_list_airflow_parameter +const ( + DCIMMODULETYPESLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimModuleTypesListAirflowParameter = "front-to-rear" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_LEFT_TO_RIGHT DcimModuleTypesListAirflowParameter = "left-to-right" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimModuleTypesListAirflowParameter = "passive" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimModuleTypesListAirflowParameter = "rear-to-front" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimModuleTypesListAirflowParameter = "right-to-left" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimModuleTypesListAirflowParameter = "side-to-rear" +) + +// All allowed values of DcimModuleTypesListAirflowParameter enum +var AllowedDcimModuleTypesListAirflowParameterEnumValues = []DcimModuleTypesListAirflowParameter{ + "front-to-rear", + "left-to-right", + "passive", + "rear-to-front", + "right-to-left", + "side-to-rear", +} + +func (v *DcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimModuleTypesListAirflowParameter(value) + for _, existing := range AllowedDcimModuleTypesListAirflowParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimModuleTypesListAirflowParameter", value) +} + +// NewDcimModuleTypesListAirflowParameterFromValue returns a pointer to a valid DcimModuleTypesListAirflowParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimModuleTypesListAirflowParameterFromValue(v string) (*DcimModuleTypesListAirflowParameter, error) { + ev := DcimModuleTypesListAirflowParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimModuleTypesListAirflowParameter: valid values are %v", v, AllowedDcimModuleTypesListAirflowParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimModuleTypesListAirflowParameter) IsValid() bool { + for _, existing := range AllowedDcimModuleTypesListAirflowParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_module_types_list_airflow_parameter value +func (v DcimModuleTypesListAirflowParameter) Ptr() *DcimModuleTypesListAirflowParameter { + return &v +} + +type NullableDcimModuleTypesListAirflowParameter struct { + value *DcimModuleTypesListAirflowParameter + isSet bool +} + +func (v NullableDcimModuleTypesListAirflowParameter) Get() *DcimModuleTypesListAirflowParameter { + return v.value +} + +func (v *NullableDcimModuleTypesListAirflowParameter) Set(val *DcimModuleTypesListAirflowParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimModuleTypesListAirflowParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimModuleTypesListAirflowParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimModuleTypesListAirflowParameter(val *DcimModuleTypesListAirflowParameter) *NullableDcimModuleTypesListAirflowParameter { + return &NullableDcimModuleTypesListAirflowParameter{value: val, isSet: true} +} + +func (v NullableDcimModuleTypesListAirflowParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_power_feeds_list_phase_parameter.go b/model_dcim_power_feeds_list_phase_parameter.go index 887c4c1857..28f1256753 100644 --- a/model_dcim_power_feeds_list_phase_parameter.go +++ b/model_dcim_power_feeds_list_phase_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type DcimPowerFeedsListPhaseParameter string // List of dcim_power_feeds_list_phase_parameter const ( DCIMPOWERFEEDSLISTPHASEPARAMETER_SINGLE_PHASE DcimPowerFeedsListPhaseParameter = "single-phase" - DCIMPOWERFEEDSLISTPHASEPARAMETER_THREE_PHASE DcimPowerFeedsListPhaseParameter = "three-phase" + DCIMPOWERFEEDSLISTPHASEPARAMETER_THREE_PHASE DcimPowerFeedsListPhaseParameter = "three-phase" ) // All allowed values of DcimPowerFeedsListPhaseParameter enum @@ -108,3 +108,4 @@ func (v *NullableDcimPowerFeedsListPhaseParameter) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_power_feeds_list_supply_parameter.go b/model_dcim_power_feeds_list_supply_parameter.go index a9d411a9a8..13ec03157f 100644 --- a/model_dcim_power_feeds_list_supply_parameter.go +++ b/model_dcim_power_feeds_list_supply_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableDcimPowerFeedsListSupplyParameter) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_power_feeds_list_type_parameter.go b/model_dcim_power_feeds_list_type_parameter.go index 133f1c231e..170fa43b29 100644 --- a/model_dcim_power_feeds_list_type_parameter.go +++ b/model_dcim_power_feeds_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type DcimPowerFeedsListTypeParameter string // List of dcim_power_feeds_list_type_parameter const ( - DCIMPOWERFEEDSLISTTYPEPARAMETER_PRIMARY DcimPowerFeedsListTypeParameter = "primary" + DCIMPOWERFEEDSLISTTYPEPARAMETER_PRIMARY DcimPowerFeedsListTypeParameter = "primary" DCIMPOWERFEEDSLISTTYPEPARAMETER_REDUNDANT DcimPowerFeedsListTypeParameter = "redundant" ) @@ -108,3 +108,4 @@ func (v *NullableDcimPowerFeedsListTypeParameter) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_power_outlet_templates_list_type_parameter.go b/model_dcim_power_outlet_templates_list_type_parameter.go index dc7840bb14..22a9c65294 100644 --- a/model_dcim_power_outlet_templates_list_type_parameter.go +++ b/model_dcim_power_outlet_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ type DcimPowerOutletTemplatesListTypeParameter string // List of dcim_power_outlet_templates_list_type_parameter const ( - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerOutletTemplatesListTypeParameter = "California Style" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_DC DcimPowerOutletTemplatesListTypeParameter = "DC" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerOutletTemplatesListTypeParameter = "IEC 60309" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerOutletTemplatesListTypeParameter = "IEC 60320" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerOutletTemplatesListTypeParameter = "IEC 60906-1" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerOutletTemplatesListTypeParameter = "California Style" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_DC DcimPowerOutletTemplatesListTypeParameter = "DC" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerOutletTemplatesListTypeParameter = "IEC 60309" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerOutletTemplatesListTypeParameter = "IEC 60320" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerOutletTemplatesListTypeParameter = "IEC 60906-1" DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_ITA_INTERNATIONAL DcimPowerOutletTemplatesListTypeParameter = "ITA/International" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerOutletTemplatesListTypeParameter = "Molex" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerOutletTemplatesListTypeParameter = "NEMA (Locking)" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerOutletTemplatesListTypeParameter = "Molex" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerOutletTemplatesListTypeParameter = "NEMA (Locking)" DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_NEMA__NON_LOCKING DcimPowerOutletTemplatesListTypeParameter = "NEMA (Non-locking)" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerOutletTemplatesListTypeParameter = "Other" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerOutletTemplatesListTypeParameter = "Proprietary" - DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_USB DcimPowerOutletTemplatesListTypeParameter = "USB" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerOutletTemplatesListTypeParameter = "Other" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerOutletTemplatesListTypeParameter = "Proprietary" + DCIMPOWEROUTLETTEMPLATESLISTTYPEPARAMETER_USB DcimPowerOutletTemplatesListTypeParameter = "USB" ) // All allowed values of DcimPowerOutletTemplatesListTypeParameter enum @@ -128,3 +128,4 @@ func (v *NullableDcimPowerOutletTemplatesListTypeParameter) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_power_port_templates_list_type_parameter.go b/model_dcim_power_port_templates_list_type_parameter.go index dcc5cfc555..7cdd560755 100644 --- a/model_dcim_power_port_templates_list_type_parameter.go +++ b/model_dcim_power_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ type DcimPowerPortTemplatesListTypeParameter string // List of dcim_power_port_templates_list_type_parameter const ( - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerPortTemplatesListTypeParameter = "California Style" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_DC DcimPowerPortTemplatesListTypeParameter = "DC" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerPortTemplatesListTypeParameter = "IEC 60309" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerPortTemplatesListTypeParameter = "IEC 60320" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerPortTemplatesListTypeParameter = "IEC 60906-1" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_CALIFORNIA_STYLE DcimPowerPortTemplatesListTypeParameter = "California Style" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_DC DcimPowerPortTemplatesListTypeParameter = "DC" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60309 DcimPowerPortTemplatesListTypeParameter = "IEC 60309" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60320 DcimPowerPortTemplatesListTypeParameter = "IEC 60320" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_IEC_60906_1 DcimPowerPortTemplatesListTypeParameter = "IEC 60906-1" DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_INTERNATIONAL_ITA DcimPowerPortTemplatesListTypeParameter = "International/ITA" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerPortTemplatesListTypeParameter = "Molex" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerPortTemplatesListTypeParameter = "NEMA (Locking)" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_MOLEX DcimPowerPortTemplatesListTypeParameter = "Molex" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_NEMA__LOCKING DcimPowerPortTemplatesListTypeParameter = "NEMA (Locking)" DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_NEMA__NON_LOCKING DcimPowerPortTemplatesListTypeParameter = "NEMA (Non-locking)" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerPortTemplatesListTypeParameter = "Other" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerPortTemplatesListTypeParameter = "Proprietary" - DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_USB DcimPowerPortTemplatesListTypeParameter = "USB" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_OTHER DcimPowerPortTemplatesListTypeParameter = "Other" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_PROPRIETARY DcimPowerPortTemplatesListTypeParameter = "Proprietary" + DCIMPOWERPORTTEMPLATESLISTTYPEPARAMETER_USB DcimPowerPortTemplatesListTypeParameter = "USB" ) // All allowed values of DcimPowerPortTemplatesListTypeParameter enum @@ -128,3 +128,4 @@ func (v *NullableDcimPowerPortTemplatesListTypeParameter) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_rack_types_list_outer_unit_parameter.go b/model_dcim_rack_types_list_outer_unit_parameter.go new file mode 100644 index 0000000000..032bc989a6 --- /dev/null +++ b/model_dcim_rack_types_list_outer_unit_parameter.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRackTypesListOuterUnitParameter the model 'DcimRackTypesListOuterUnitParameter' +type DcimRackTypesListOuterUnitParameter string + +// List of dcim_rack_types_list_outer_unit_parameter +const ( + DCIMRACKTYPESLISTOUTERUNITPARAMETER_IN DcimRackTypesListOuterUnitParameter = "in" + DCIMRACKTYPESLISTOUTERUNITPARAMETER_MM DcimRackTypesListOuterUnitParameter = "mm" +) + +// All allowed values of DcimRackTypesListOuterUnitParameter enum +var AllowedDcimRackTypesListOuterUnitParameterEnumValues = []DcimRackTypesListOuterUnitParameter{ + "in", + "mm", +} + +func (v *DcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRackTypesListOuterUnitParameter(value) + for _, existing := range AllowedDcimRackTypesListOuterUnitParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRackTypesListOuterUnitParameter", value) +} + +// NewDcimRackTypesListOuterUnitParameterFromValue returns a pointer to a valid DcimRackTypesListOuterUnitParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRackTypesListOuterUnitParameterFromValue(v string) (*DcimRackTypesListOuterUnitParameter, error) { + ev := DcimRackTypesListOuterUnitParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRackTypesListOuterUnitParameter: valid values are %v", v, AllowedDcimRackTypesListOuterUnitParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRackTypesListOuterUnitParameter) IsValid() bool { + for _, existing := range AllowedDcimRackTypesListOuterUnitParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_rack_types_list_outer_unit_parameter value +func (v DcimRackTypesListOuterUnitParameter) Ptr() *DcimRackTypesListOuterUnitParameter { + return &v +} + +type NullableDcimRackTypesListOuterUnitParameter struct { + value *DcimRackTypesListOuterUnitParameter + isSet bool +} + +func (v NullableDcimRackTypesListOuterUnitParameter) Get() *DcimRackTypesListOuterUnitParameter { + return v.value +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) Set(val *DcimRackTypesListOuterUnitParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRackTypesListOuterUnitParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRackTypesListOuterUnitParameter(val *DcimRackTypesListOuterUnitParameter) *NullableDcimRackTypesListOuterUnitParameter { + return &NullableDcimRackTypesListOuterUnitParameter{value: val, isSet: true} +} + +func (v NullableDcimRackTypesListOuterUnitParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_racks_elevation_retrieve_face_parameter.go b/model_dcim_racks_elevation_retrieve_face_parameter.go index 564e2c159d..21bd12c9c2 100644 --- a/model_dcim_racks_elevation_retrieve_face_parameter.go +++ b/model_dcim_racks_elevation_retrieve_face_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type DcimRacksElevationRetrieveFaceParameter string // List of dcim_racks_elevation_retrieve_face_parameter const ( DCIMRACKSELEVATIONRETRIEVEFACEPARAMETER_FRONT DcimRacksElevationRetrieveFaceParameter = "front" - DCIMRACKSELEVATIONRETRIEVEFACEPARAMETER_REAR DcimRacksElevationRetrieveFaceParameter = "rear" + DCIMRACKSELEVATIONRETRIEVEFACEPARAMETER_REAR DcimRacksElevationRetrieveFaceParameter = "rear" ) // All allowed values of DcimRacksElevationRetrieveFaceParameter enum @@ -108,3 +108,4 @@ func (v *NullableDcimRacksElevationRetrieveFaceParameter) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_racks_elevation_retrieve_render_parameter.go b/model_dcim_racks_elevation_retrieve_render_parameter.go index 2506cd2cc7..27347f189a 100644 --- a/model_dcim_racks_elevation_retrieve_render_parameter.go +++ b/model_dcim_racks_elevation_retrieve_render_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type DcimRacksElevationRetrieveRenderParameter string // List of dcim_racks_elevation_retrieve_render_parameter const ( DCIMRACKSELEVATIONRETRIEVERENDERPARAMETER_JSON DcimRacksElevationRetrieveRenderParameter = "json" - DCIMRACKSELEVATIONRETRIEVERENDERPARAMETER_SVG DcimRacksElevationRetrieveRenderParameter = "svg" + DCIMRACKSELEVATIONRETRIEVERENDERPARAMETER_SVG DcimRacksElevationRetrieveRenderParameter = "svg" ) // All allowed values of DcimRacksElevationRetrieveRenderParameter enum @@ -108,3 +108,4 @@ func (v *NullableDcimRacksElevationRetrieveRenderParameter) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_dcim_racks_list_airflow_parameter.go b/model_dcim_racks_list_airflow_parameter.go new file mode 100644 index 0000000000..916e4cfbb0 --- /dev/null +++ b/model_dcim_racks_list_airflow_parameter.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRacksListAirflowParameter the model 'DcimRacksListAirflowParameter' +type DcimRacksListAirflowParameter string + +// List of dcim_racks_list_airflow_parameter +const ( + DCIMRACKSLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimRacksListAirflowParameter = "front-to-rear" + DCIMRACKSLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimRacksListAirflowParameter = "rear-to-front" +) + +// All allowed values of DcimRacksListAirflowParameter enum +var AllowedDcimRacksListAirflowParameterEnumValues = []DcimRacksListAirflowParameter{ + "front-to-rear", + "rear-to-front", +} + +func (v *DcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRacksListAirflowParameter(value) + for _, existing := range AllowedDcimRacksListAirflowParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRacksListAirflowParameter", value) +} + +// NewDcimRacksListAirflowParameterFromValue returns a pointer to a valid DcimRacksListAirflowParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRacksListAirflowParameterFromValue(v string) (*DcimRacksListAirflowParameter, error) { + ev := DcimRacksListAirflowParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRacksListAirflowParameter: valid values are %v", v, AllowedDcimRacksListAirflowParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRacksListAirflowParameter) IsValid() bool { + for _, existing := range AllowedDcimRacksListAirflowParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_racks_list_airflow_parameter value +func (v DcimRacksListAirflowParameter) Ptr() *DcimRacksListAirflowParameter { + return &v +} + +type NullableDcimRacksListAirflowParameter struct { + value *DcimRacksListAirflowParameter + isSet bool +} + +func (v NullableDcimRacksListAirflowParameter) Get() *DcimRacksListAirflowParameter { + return v.value +} + +func (v *NullableDcimRacksListAirflowParameter) Set(val *DcimRacksListAirflowParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRacksListAirflowParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRacksListAirflowParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRacksListAirflowParameter(val *DcimRacksListAirflowParameter) *NullableDcimRacksListAirflowParameter { + return &NullableDcimRacksListAirflowParameter{value: val, isSet: true} +} + +func (v NullableDcimRacksListAirflowParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_racks_list_outer_unit_parameter.go b/model_dcim_racks_list_outer_unit_parameter.go deleted file mode 100644 index 5a8f1464cf..0000000000 --- a/model_dcim_racks_list_outer_unit_parameter.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// DcimRacksListOuterUnitParameter the model 'DcimRacksListOuterUnitParameter' -type DcimRacksListOuterUnitParameter string - -// List of dcim_racks_list_outer_unit_parameter -const ( - DCIMRACKSLISTOUTERUNITPARAMETER_IN DcimRacksListOuterUnitParameter = "in" - DCIMRACKSLISTOUTERUNITPARAMETER_MM DcimRacksListOuterUnitParameter = "mm" -) - -// All allowed values of DcimRacksListOuterUnitParameter enum -var AllowedDcimRacksListOuterUnitParameterEnumValues = []DcimRacksListOuterUnitParameter{ - "in", - "mm", -} - -func (v *DcimRacksListOuterUnitParameter) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := DcimRacksListOuterUnitParameter(value) - for _, existing := range AllowedDcimRacksListOuterUnitParameterEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid DcimRacksListOuterUnitParameter", value) -} - -// NewDcimRacksListOuterUnitParameterFromValue returns a pointer to a valid DcimRacksListOuterUnitParameter -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewDcimRacksListOuterUnitParameterFromValue(v string) (*DcimRacksListOuterUnitParameter, error) { - ev := DcimRacksListOuterUnitParameter(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for DcimRacksListOuterUnitParameter: valid values are %v", v, AllowedDcimRacksListOuterUnitParameterEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v DcimRacksListOuterUnitParameter) IsValid() bool { - for _, existing := range AllowedDcimRacksListOuterUnitParameterEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to dcim_racks_list_outer_unit_parameter value -func (v DcimRacksListOuterUnitParameter) Ptr() *DcimRacksListOuterUnitParameter { - return &v -} - -type NullableDcimRacksListOuterUnitParameter struct { - value *DcimRacksListOuterUnitParameter - isSet bool -} - -func (v NullableDcimRacksListOuterUnitParameter) Get() *DcimRacksListOuterUnitParameter { - return v.value -} - -func (v *NullableDcimRacksListOuterUnitParameter) Set(val *DcimRacksListOuterUnitParameter) { - v.value = val - v.isSet = true -} - -func (v NullableDcimRacksListOuterUnitParameter) IsSet() bool { - return v.isSet -} - -func (v *NullableDcimRacksListOuterUnitParameter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDcimRacksListOuterUnitParameter(val *DcimRacksListOuterUnitParameter) *NullableDcimRacksListOuterUnitParameter { - return &NullableDcimRacksListOuterUnitParameter{value: val, isSet: true} -} - -func (v NullableDcimRacksListOuterUnitParameter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDcimRacksListOuterUnitParameter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_device.go b/model_device.go index 7585fb9dde..344ff3c352 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Device type satisfies the MappedNullable interface at compile time @@ -21,59 +21,60 @@ 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 DeviceType `json:"device_type"` - Role DeviceRole `json:"role"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name NullableString `json:"name"` + DeviceType *BriefDeviceType `json:"device_type,omitempty"` + Role *BriefDeviceRole `json:"role,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `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 Site `json:"site"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *BriefSite `json:"site,omitempty"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `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 NullableNestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,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"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData 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{} + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + ConsolePortCount *int32 `json:"console_port_count,omitempty"` + ConsoleServerPortCount *int32 `json:"console_server_port_count,omitempty"` + PowerPortCount *int32 `json:"power_port_count,omitempty"` + PowerOutletCount *int32 `json:"power_outlet_count,omitempty"` + InterfaceCount *int32 `json:"interface_count,omitempty"` + FrontPortCount *int32 `json:"front_port_count,omitempty"` + RearPortCount *int32 `json:"rear_port_count,omitempty"` + DeviceBayCount *int32 `json:"device_bay_count,omitempty"` + ModuleBayCount *int32 `json:"module_bay_count,omitempty"` + InventoryItemCount *int32 `json:"inventory_item_count,omitempty"` + AdditionalProperties map[string]interface{} } type _Device Device @@ -82,28 +83,13 @@ 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 DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, 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 { +func NewDevice(id int32, url string, display string, name NullableString, description string) *Device { this := Device{} this.Id = id this.Url = url this.Display = display - this.DeviceType = deviceType - this.Role = role - 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 + this.Name = name + this.Description = description return &this } @@ -139,6 +125,7 @@ func (o *Device) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Device) GetUrl() string { if o == nil { @@ -163,6 +150,39 @@ func (o *Device) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Device) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Device) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Device) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Device) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Device) GetDisplay() string { if o == nil { @@ -187,16 +207,19 @@ func (o *Device) SetDisplay(v string) { o.Display = v } -// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for string will be returned func (o *Device) GetName() string { - if o == nil || IsNil(o.Name.Get()) { + if o == nil || o.Name.Get() == nil { var ret string return ret } + return *o.Name.Get() } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name 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 *Device) GetNameOk() (*string, bool) { @@ -206,82 +229,80 @@ func (o *Device) GetNameOk() (*string, bool) { return o.Name.Get(), o.Name.IsSet() } -// HasName returns a boolean if a field has been set. -func (o *Device) HasName() bool { - if o != nil && o.Name.IsSet() { - return true - } - - return false -} - -// SetName gets a reference to the given NullableString and assigns it to the Name field. +// SetName sets field value 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) -} -// UnsetName ensures that no value is present for Name, not even an explicit nil -func (o *Device) UnsetName() { - o.Name.Unset() -} - -// GetDeviceType returns the DeviceType field value -func (o *Device) GetDeviceType() DeviceType { - if o == nil { - var ret DeviceType +// GetDeviceType returns the DeviceType field value if set, zero value otherwise. +func (o *Device) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType) { + var ret BriefDeviceType return ret } - - return o.DeviceType + return *o.DeviceType } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) { - if o == nil { +func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil || IsNil(o.DeviceType) { return nil, false } - return &o.DeviceType, true + return o.DeviceType, true } -// SetDeviceType sets field value -func (o *Device) SetDeviceType(v DeviceType) { - o.DeviceType = v +// HasDeviceType returns a boolean if a field has been set. +func (o *Device) HasDeviceType() bool { + if o != nil && !IsNil(o.DeviceType) { + return true + } + + return false } -// GetRole returns the Role field value -func (o *Device) GetRole() DeviceRole { - if o == nil { - var ret DeviceRole +// SetDeviceType gets a reference to the given BriefDeviceType and assigns it to the DeviceType field. +func (o *Device) SetDeviceType(v BriefDeviceType) { + o.DeviceType = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *Device) GetRole() BriefDeviceRole { + if o == nil || IsNil(o.Role) { + var ret BriefDeviceRole return ret } - - return o.Role + return *o.Role } -// GetRoleOk returns a tuple with the Role field value +// 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 *Device) GetRoleOk() (*DeviceRole, bool) { - if o == nil { +func (o *Device) GetRoleOk() (*BriefDeviceRole, bool) { + if o == nil || IsNil(o.Role) { return nil, false } - return &o.Role, true + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *Device) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false } -// SetRole sets field value -func (o *Device) SetRole(v DeviceRole) { - o.Role = v +// SetRole gets a reference to the given BriefDeviceRole and assigns it to the Role field. +func (o *Device) SetRole(v BriefDeviceRole) { + o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetTenant() Tenant { +func (o *Device) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -290,7 +311,7 @@ func (o *Device) GetTenant() Tenant { // 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 *Device) GetTenantOk() (*Tenant, bool) { +func (o *Device) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -306,11 +327,10 @@ func (o *Device) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Device) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Device) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Device) SetTenantNil() { o.Tenant.Set(nil) @@ -322,9 +342,9 @@ func (o *Device) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPlatform() Platform { +func (o *Device) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -333,7 +353,7 @@ func (o *Device) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform 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) GetPlatformOk() (*Platform, bool) { +func (o *Device) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -349,11 +369,10 @@ func (o *Device) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *Device) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *Device) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *Device) SetPlatformNil() { o.Platform.Set(nil) @@ -428,7 +447,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) @@ -439,34 +457,42 @@ func (o *Device) UnsetAssetTag() { o.AssetTag.Unset() } -// GetSite returns the Site field value -func (o *Device) GetSite() Site { - if o == nil { - var ret Site +// GetSite returns the Site field value if set, zero value otherwise. +func (o *Device) GetSite() BriefSite { + if o == nil || IsNil(o.Site) { + var ret BriefSite return ret } - - return o.Site + return *o.Site } -// GetSiteOk returns a tuple with the Site field value +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetSiteOk() (*Site, bool) { - if o == nil { +func (o *Device) GetSiteOk() (*BriefSite, bool) { + if o == nil || IsNil(o.Site) { return nil, false } - return &o.Site, true + return o.Site, true } -// SetSite sets field value -func (o *Device) SetSite(v Site) { - o.Site = v +// HasSite returns a boolean if a field has been set. +func (o *Device) HasSite() bool { + if o != nil && !IsNil(o.Site) { + return true + } + + return false +} + +// SetSite gets a reference to the given BriefSite and assigns it to the Site field. +func (o *Device) SetSite(v BriefSite) { + o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetLocation() Location { +func (o *Device) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -475,7 +501,7 @@ func (o *Device) GetLocation() Location { // GetLocationOk returns a tuple with the Location 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) GetLocationOk() (*Location, bool) { +func (o *Device) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -491,11 +517,10 @@ func (o *Device) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *Device) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Device) SetLocation(v BriefLocation) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *Device) SetLocationNil() { o.Location.Set(nil) @@ -507,9 +532,9 @@ func (o *Device) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetRack() Rack { +func (o *Device) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -518,7 +543,7 @@ func (o *Device) GetRack() Rack { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*Rack, bool) { +func (o *Device) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -534,11 +559,10 @@ func (o *Device) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *Device) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *Device) SetRack(v BriefRack) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *Device) SetRackNil() { o.Rack.Set(nil) @@ -581,7 +605,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) @@ -656,7 +679,6 @@ func (o *Device) HasLatitude() bool { 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) @@ -699,7 +721,6 @@ func (o *Device) HasLongitude() bool { 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) @@ -710,18 +731,16 @@ func (o *Device) UnsetLongitude() { o.Longitude.Unset() } -// GetParentDevice returns the ParentDevice field value -// If the value is explicit nil, the zero value for NestedDevice will be returned +// GetParentDevice returns the ParentDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetParentDevice() NestedDevice { - if o == nil || o.ParentDevice.Get() == nil { + if o == nil || IsNil(o.ParentDevice.Get()) { var ret NestedDevice return ret } - return *o.ParentDevice.Get() } -// GetParentDeviceOk returns a tuple with the ParentDevice field value +// GetParentDeviceOk returns a tuple with the ParentDevice 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) GetParentDeviceOk() (*NestedDevice, bool) { @@ -731,10 +750,28 @@ func (o *Device) GetParentDeviceOk() (*NestedDevice, bool) { return o.ParentDevice.Get(), o.ParentDevice.IsSet() } -// SetParentDevice sets field value +// HasParentDevice returns a boolean if a field has been set. +func (o *Device) HasParentDevice() bool { + if o != nil && o.ParentDevice.IsSet() { + return true + } + + return false +} + +// SetParentDevice gets a reference to the given NullableNestedDevice and assigns it to the ParentDevice field. func (o *Device) SetParentDevice(v NestedDevice) { o.ParentDevice.Set(&v) } +// SetParentDeviceNil sets the value for ParentDevice to be an explicit nil +func (o *Device) SetParentDeviceNil() { + o.ParentDevice.Set(nil) +} + +// UnsetParentDevice ensures that no value is present for ParentDevice, not even an explicit nil +func (o *Device) UnsetParentDevice() { + o.ParentDevice.Unset() +} // GetStatus returns the Status field value if set, zero value otherwise. func (o *Device) GetStatus() DeviceStatus { @@ -800,36 +837,52 @@ func (o *Device) SetAirflow(v DeviceAirflow) { o.Airflow = &v } -// GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *Device) GetPrimaryIp() IPAddress { - if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress +// GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Device) GetPrimaryIp() BriefIPAddress { + if o == nil || IsNil(o.PrimaryIp.Get()) { + var ret BriefIPAddress return ret } - return *o.PrimaryIp.Get() } -// GetPrimaryIpOk returns a tuple with the PrimaryIp field value +// GetPrimaryIpOk returns a tuple with the PrimaryIp 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) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } return o.PrimaryIp.Get(), o.PrimaryIp.IsSet() } -// SetPrimaryIp sets field value -func (o *Device) SetPrimaryIp(v IPAddress) { +// HasPrimaryIp returns a boolean if a field has been set. +func (o *Device) HasPrimaryIp() bool { + if o != nil && o.PrimaryIp.IsSet() { + return true + } + + return false +} + +// SetPrimaryIp gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp field. +func (o *Device) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } +// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil +func (o *Device) SetPrimaryIpNil() { + o.PrimaryIp.Set(nil) +} + +// UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil +func (o *Device) UnsetPrimaryIp() { + o.PrimaryIp.Unset() +} // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp4() IPAddress { +func (o *Device) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -838,7 +891,7 @@ func (o *Device) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -854,11 +907,10 @@ func (o *Device) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *Device) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *Device) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *Device) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -870,9 +922,9 @@ func (o *Device) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp6() IPAddress { +func (o *Device) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -881,7 +933,7 @@ func (o *Device) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -897,11 +949,10 @@ func (o *Device) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *Device) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *Device) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *Device) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -913,9 +964,9 @@ func (o *Device) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetOobIp() IPAddress { +func (o *Device) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -924,7 +975,7 @@ func (o *Device) GetOobIp() IPAddress { // 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() (*IPAddress, bool) { +func (o *Device) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -940,11 +991,10 @@ func (o *Device) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *Device) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *Device) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } - // SetOobIpNil sets the value for OobIp to be an explicit nil func (o *Device) SetOobIpNil() { o.OobIp.Set(nil) @@ -956,9 +1006,9 @@ func (o *Device) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetCluster() Cluster { +func (o *Device) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -967,7 +1017,7 @@ func (o *Device) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster 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) GetClusterOk() (*Cluster, bool) { +func (o *Device) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -983,11 +1033,10 @@ func (o *Device) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *Device) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *Device) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *Device) SetClusterNil() { o.Cluster.Set(nil) @@ -999,9 +1048,9 @@ func (o *Device) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetVirtualChassis() VirtualChassis { +func (o *Device) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1010,7 +1059,7 @@ func (o *Device) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis 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) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1026,11 +1075,10 @@ func (o *Device) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *Device) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *Device) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *Device) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -1073,7 +1121,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) @@ -1116,7 +1163,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) @@ -1127,38 +1173,31 @@ func (o *Device) UnsetVcPriority() { o.VcPriority.Unset() } -// GetDescription returns the Description field value if set, zero value otherwise. +// GetDescription returns the Description field value func (o *Device) GetDescription() string { - if o == nil || IsNil(o.Description) { + if o == nil { var ret string return ret } - return *o.Description + + return o.Description } -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. func (o *Device) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { + if o == nil { return nil, false } - return o.Description, true + return &o.Description, true } -// HasDescription returns a boolean if a field has been set. -func (o *Device) 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. +// SetDescription sets field value func (o *Device) SetDescription(v string) { - o.Description = &v + o.Description = v } + // GetComments returns the Comments field value if set, zero value otherwise. func (o *Device) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -1192,9 +1231,9 @@ func (o *Device) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetConfigTemplate() ConfigTemplate { +func (o *Device) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1203,7 +1242,7 @@ func (o *Device) GetConfigTemplate() ConfigTemplate { // 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 *Device) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1219,11 +1258,10 @@ func (o *Device) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *Device) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Device) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *Device) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -1331,18 +1369,16 @@ func (o *Device) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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) GetCreatedOk() (*time.Time, bool) { @@ -1352,23 +1388,39 @@ func (o *Device) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Device) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Device) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Device) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Device) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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) GetLastUpdatedOk() (*time.Time, bool) { @@ -1378,253 +1430,351 @@ func (o *Device) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Device) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Device) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Device) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Device) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetConsolePortCount returns the ConsolePortCount field value +// GetConsolePortCount returns the ConsolePortCount field value if set, zero value otherwise. func (o *Device) GetConsolePortCount() int32 { - if o == nil { + if o == nil || IsNil(o.ConsolePortCount) { var ret int32 return ret } - - return o.ConsolePortCount + return *o.ConsolePortCount } -// GetConsolePortCountOk returns a tuple with the ConsolePortCount field value +// GetConsolePortCountOk returns a tuple with the ConsolePortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetConsolePortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ConsolePortCount) { return nil, false } - return &o.ConsolePortCount, true + return o.ConsolePortCount, true } -// SetConsolePortCount sets field value +// HasConsolePortCount returns a boolean if a field has been set. +func (o *Device) HasConsolePortCount() bool { + if o != nil && !IsNil(o.ConsolePortCount) { + return true + } + + return false +} + +// SetConsolePortCount gets a reference to the given int32 and assigns it to the ConsolePortCount field. func (o *Device) SetConsolePortCount(v int32) { - o.ConsolePortCount = v + o.ConsolePortCount = &v } -// GetConsoleServerPortCount returns the ConsoleServerPortCount field value +// GetConsoleServerPortCount returns the ConsoleServerPortCount field value if set, zero value otherwise. func (o *Device) GetConsoleServerPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.ConsoleServerPortCount) { var ret int32 return ret } - - return o.ConsoleServerPortCount + return *o.ConsoleServerPortCount } -// GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field value +// GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetConsoleServerPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ConsoleServerPortCount) { return nil, false } - return &o.ConsoleServerPortCount, true + return o.ConsoleServerPortCount, true +} + +// HasConsoleServerPortCount returns a boolean if a field has been set. +func (o *Device) HasConsoleServerPortCount() bool { + if o != nil && !IsNil(o.ConsoleServerPortCount) { + return true + } + + return false } -// SetConsoleServerPortCount sets field value +// SetConsoleServerPortCount gets a reference to the given int32 and assigns it to the ConsoleServerPortCount field. func (o *Device) SetConsoleServerPortCount(v int32) { - o.ConsoleServerPortCount = v + o.ConsoleServerPortCount = &v } -// GetPowerPortCount returns the PowerPortCount field value +// GetPowerPortCount returns the PowerPortCount field value if set, zero value otherwise. func (o *Device) GetPowerPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.PowerPortCount) { var ret int32 return ret } - - return o.PowerPortCount + return *o.PowerPortCount } -// GetPowerPortCountOk returns a tuple with the PowerPortCount field value +// GetPowerPortCountOk returns a tuple with the PowerPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetPowerPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.PowerPortCount) { return nil, false } - return &o.PowerPortCount, true + return o.PowerPortCount, true +} + +// HasPowerPortCount returns a boolean if a field has been set. +func (o *Device) HasPowerPortCount() bool { + if o != nil && !IsNil(o.PowerPortCount) { + return true + } + + return false } -// SetPowerPortCount sets field value +// SetPowerPortCount gets a reference to the given int32 and assigns it to the PowerPortCount field. func (o *Device) SetPowerPortCount(v int32) { - o.PowerPortCount = v + o.PowerPortCount = &v } -// GetPowerOutletCount returns the PowerOutletCount field value +// GetPowerOutletCount returns the PowerOutletCount field value if set, zero value otherwise. func (o *Device) GetPowerOutletCount() int32 { - if o == nil { + if o == nil || IsNil(o.PowerOutletCount) { var ret int32 return ret } - - return o.PowerOutletCount + return *o.PowerOutletCount } -// GetPowerOutletCountOk returns a tuple with the PowerOutletCount field value +// GetPowerOutletCountOk returns a tuple with the PowerOutletCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetPowerOutletCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.PowerOutletCount) { return nil, false } - return &o.PowerOutletCount, true + return o.PowerOutletCount, true } -// SetPowerOutletCount sets field value +// HasPowerOutletCount returns a boolean if a field has been set. +func (o *Device) HasPowerOutletCount() bool { + if o != nil && !IsNil(o.PowerOutletCount) { + return true + } + + return false +} + +// SetPowerOutletCount gets a reference to the given int32 and assigns it to the PowerOutletCount field. func (o *Device) SetPowerOutletCount(v int32) { - o.PowerOutletCount = v + o.PowerOutletCount = &v } -// GetInterfaceCount returns the InterfaceCount field value +// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise. func (o *Device) GetInterfaceCount() int32 { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { var ret int32 return ret } - - return o.InterfaceCount + return *o.InterfaceCount } -// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetInterfaceCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { return nil, false } - return &o.InterfaceCount, true + return o.InterfaceCount, true +} + +// HasInterfaceCount returns a boolean if a field has been set. +func (o *Device) HasInterfaceCount() bool { + if o != nil && !IsNil(o.InterfaceCount) { + return true + } + + return false } -// SetInterfaceCount sets field value +// SetInterfaceCount gets a reference to the given int32 and assigns it to the InterfaceCount field. func (o *Device) SetInterfaceCount(v int32) { - o.InterfaceCount = v + o.InterfaceCount = &v } -// GetFrontPortCount returns the FrontPortCount field value +// GetFrontPortCount returns the FrontPortCount field value if set, zero value otherwise. func (o *Device) GetFrontPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.FrontPortCount) { var ret int32 return ret } - - return o.FrontPortCount + return *o.FrontPortCount } -// GetFrontPortCountOk returns a tuple with the FrontPortCount field value +// GetFrontPortCountOk returns a tuple with the FrontPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetFrontPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.FrontPortCount) { return nil, false } - return &o.FrontPortCount, true + return o.FrontPortCount, true } -// SetFrontPortCount sets field value +// HasFrontPortCount returns a boolean if a field has been set. +func (o *Device) HasFrontPortCount() bool { + if o != nil && !IsNil(o.FrontPortCount) { + return true + } + + return false +} + +// SetFrontPortCount gets a reference to the given int32 and assigns it to the FrontPortCount field. func (o *Device) SetFrontPortCount(v int32) { - o.FrontPortCount = v + o.FrontPortCount = &v } -// GetRearPortCount returns the RearPortCount field value +// GetRearPortCount returns the RearPortCount field value if set, zero value otherwise. func (o *Device) GetRearPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.RearPortCount) { var ret int32 return ret } - - return o.RearPortCount + return *o.RearPortCount } -// GetRearPortCountOk returns a tuple with the RearPortCount field value +// GetRearPortCountOk returns a tuple with the RearPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetRearPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.RearPortCount) { return nil, false } - return &o.RearPortCount, true + return o.RearPortCount, true +} + +// HasRearPortCount returns a boolean if a field has been set. +func (o *Device) HasRearPortCount() bool { + if o != nil && !IsNil(o.RearPortCount) { + return true + } + + return false } -// SetRearPortCount sets field value +// SetRearPortCount gets a reference to the given int32 and assigns it to the RearPortCount field. func (o *Device) SetRearPortCount(v int32) { - o.RearPortCount = v + o.RearPortCount = &v } -// GetDeviceBayCount returns the DeviceBayCount field value +// GetDeviceBayCount returns the DeviceBayCount field value if set, zero value otherwise. func (o *Device) GetDeviceBayCount() int32 { - if o == nil { + if o == nil || IsNil(o.DeviceBayCount) { var ret int32 return ret } - - return o.DeviceBayCount + return *o.DeviceBayCount } -// GetDeviceBayCountOk returns a tuple with the DeviceBayCount field value +// GetDeviceBayCountOk returns a tuple with the DeviceBayCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetDeviceBayCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceBayCount) { return nil, false } - return &o.DeviceBayCount, true + return o.DeviceBayCount, true +} + +// HasDeviceBayCount returns a boolean if a field has been set. +func (o *Device) HasDeviceBayCount() bool { + if o != nil && !IsNil(o.DeviceBayCount) { + return true + } + + return false } -// SetDeviceBayCount sets field value +// SetDeviceBayCount gets a reference to the given int32 and assigns it to the DeviceBayCount field. func (o *Device) SetDeviceBayCount(v int32) { - o.DeviceBayCount = v + o.DeviceBayCount = &v } -// GetModuleBayCount returns the ModuleBayCount field value +// GetModuleBayCount returns the ModuleBayCount field value if set, zero value otherwise. func (o *Device) GetModuleBayCount() int32 { - if o == nil { + if o == nil || IsNil(o.ModuleBayCount) { var ret int32 return ret } - - return o.ModuleBayCount + return *o.ModuleBayCount } -// GetModuleBayCountOk returns a tuple with the ModuleBayCount field value +// GetModuleBayCountOk returns a tuple with the ModuleBayCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetModuleBayCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ModuleBayCount) { return nil, false } - return &o.ModuleBayCount, true + return o.ModuleBayCount, true } -// SetModuleBayCount sets field value +// HasModuleBayCount returns a boolean if a field has been set. +func (o *Device) HasModuleBayCount() bool { + if o != nil && !IsNil(o.ModuleBayCount) { + return true + } + + return false +} + +// SetModuleBayCount gets a reference to the given int32 and assigns it to the ModuleBayCount field. func (o *Device) SetModuleBayCount(v int32) { - o.ModuleBayCount = v + o.ModuleBayCount = &v } -// GetInventoryItemCount returns the InventoryItemCount field value +// GetInventoryItemCount returns the InventoryItemCount field value if set, zero value otherwise. func (o *Device) GetInventoryItemCount() int32 { - if o == nil { + if o == nil || IsNil(o.InventoryItemCount) { var ret int32 return ret } - - return o.InventoryItemCount + return *o.InventoryItemCount } -// GetInventoryItemCountOk returns a tuple with the InventoryItemCount field value +// GetInventoryItemCountOk returns a tuple with the InventoryItemCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetInventoryItemCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.InventoryItemCount) { return nil, false } - return &o.InventoryItemCount, true + return o.InventoryItemCount, true +} + +// HasInventoryItemCount returns a boolean if a field has been set. +func (o *Device) HasInventoryItemCount() bool { + if o != nil && !IsNil(o.InventoryItemCount) { + return true + } + + return false } -// SetInventoryItemCount sets field value +// SetInventoryItemCount gets a reference to the given int32 and assigns it to the InventoryItemCount field. func (o *Device) SetInventoryItemCount(v int32) { - o.InventoryItemCount = v + o.InventoryItemCount = &v } func (o Device) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1635,12 +1785,17 @@ func (o Device) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display - if o.Name.IsSet() { - toSerialize["name"] = o.Name.Get() + toSerialize["name"] = o.Name.Get() + if !IsNil(o.DeviceType) { + toSerialize["device_type"] = o.DeviceType + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role } - toSerialize["device_type"] = o.DeviceType - toSerialize["role"] = o.Role if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -1653,7 +1808,9 @@ func (o Device) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - toSerialize["site"] = o.Site + if !IsNil(o.Site) { + toSerialize["site"] = o.Site + } if o.Location.IsSet() { toSerialize["location"] = o.Location.Get() } @@ -1672,14 +1829,18 @@ func (o Device) ToMap() (map[string]interface{}, error) { if o.Longitude.IsSet() { toSerialize["longitude"] = o.Longitude.Get() } - toSerialize["parent_device"] = o.ParentDevice.Get() + if o.ParentDevice.IsSet() { + toSerialize["parent_device"] = o.ParentDevice.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } if !IsNil(o.Airflow) { toSerialize["airflow"] = o.Airflow } - toSerialize["primary_ip"] = o.PrimaryIp.Get() + if o.PrimaryIp.IsSet() { + toSerialize["primary_ip"] = o.PrimaryIp.Get() + } if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } @@ -1701,9 +1862,7 @@ func (o Device) ToMap() (map[string]interface{}, error) { if o.VcPriority.IsSet() { toSerialize["vc_priority"] = o.VcPriority.Get() } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } + toSerialize["description"] = o.Description if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -1719,18 +1878,42 @@ func (o Device) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - 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 + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.ConsolePortCount) { + toSerialize["console_port_count"] = o.ConsolePortCount + } + if !IsNil(o.ConsoleServerPortCount) { + toSerialize["console_server_port_count"] = o.ConsoleServerPortCount + } + if !IsNil(o.PowerPortCount) { + toSerialize["power_port_count"] = o.PowerPortCount + } + if !IsNil(o.PowerOutletCount) { + toSerialize["power_outlet_count"] = o.PowerOutletCount + } + if !IsNil(o.InterfaceCount) { + toSerialize["interface_count"] = o.InterfaceCount + } + if !IsNil(o.FrontPortCount) { + toSerialize["front_port_count"] = o.FrontPortCount + } + if !IsNil(o.RearPortCount) { + toSerialize["rear_port_count"] = o.RearPortCount + } + if !IsNil(o.DeviceBayCount) { + toSerialize["device_bay_count"] = o.DeviceBayCount + } + if !IsNil(o.ModuleBayCount) { + toSerialize["module_bay_count"] = o.ModuleBayCount + } + if !IsNil(o.InventoryItemCount) { + toSerialize["inventory_item_count"] = o.InventoryItemCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1747,39 +1930,41 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", - "device_type", - "role", - "site", - "parent_device", - "primary_ip", - "created", - "last_updated", - "console_port_count", - "console_server_port_count", - "power_port_count", - "power_outlet_count", - "interface_count", - "front_port_count", - "rear_port_count", - "device_bay_count", - "module_bay_count", - "inventory_item_count", + "name", + "description", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDevice := _Device{} err = json.Unmarshal(data, &varDevice) @@ -1795,6 +1980,7 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") @@ -1880,3 +2066,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 b3812caaea..519ad46289 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceAirflow{} // DeviceAirflow struct for DeviceAirflow type DeviceAirflow struct { - Value *DeviceAirflowValue `json:"value,omitempty"` - Label *DeviceAirflowLabel `json:"label,omitempty"` + Value *DeviceAirflowValue `json:"value,omitempty"` + Label *DeviceAirflowLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DeviceAirflow) SetLabel(v DeviceAirflowLabel) { } func (o DeviceAirflow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableDeviceAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go index 9d2429b948..e1d0322e5b 100644 --- a/model_device_airflow_label.go +++ b/model_device_airflow_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,9 +24,12 @@ const ( DEVICEAIRFLOWLABEL_REAR_TO_FRONT DeviceAirflowLabel = "Rear to front" DEVICEAIRFLOWLABEL_LEFT_TO_RIGHT DeviceAirflowLabel = "Left to right" DEVICEAIRFLOWLABEL_RIGHT_TO_LEFT DeviceAirflowLabel = "Right to left" - DEVICEAIRFLOWLABEL_SIDE_TO_REAR DeviceAirflowLabel = "Side to rear" - DEVICEAIRFLOWLABEL_PASSIVE DeviceAirflowLabel = "Passive" - DEVICEAIRFLOWLABEL_MIXED DeviceAirflowLabel = "Mixed" + DEVICEAIRFLOWLABEL_SIDE_TO_REAR DeviceAirflowLabel = "Side to rear" + DEVICEAIRFLOWLABEL_REAR_TO_SIDE DeviceAirflowLabel = "Rear to side" + DEVICEAIRFLOWLABEL_BOTTOM_TO_TOP DeviceAirflowLabel = "Bottom to top" + DEVICEAIRFLOWLABEL_TOP_TO_BOTTOM DeviceAirflowLabel = "Top to bottom" + DEVICEAIRFLOWLABEL_PASSIVE DeviceAirflowLabel = "Passive" + DEVICEAIRFLOWLABEL_MIXED DeviceAirflowLabel = "Mixed" ) // All allowed values of DeviceAirflowLabel enum @@ -36,6 +39,9 @@ var AllowedDeviceAirflowLabelEnumValues = []DeviceAirflowLabel{ "Left to right", "Right to left", "Side to rear", + "Rear to side", + "Bottom to top", + "Top to bottom", "Passive", "Mixed", } @@ -118,3 +124,4 @@ func (v *NullableDeviceAirflowLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go index 9ff9281c99..e0670fc4a3 100644 --- a/model_device_airflow_value.go +++ b/model_device_airflow_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// DeviceAirflowValue * `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 +// DeviceAirflowValue * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed type DeviceAirflowValue string // List of Device_airflow_value @@ -24,10 +24,13 @@ const ( DEVICEAIRFLOWVALUE_REAR_TO_FRONT DeviceAirflowValue = "rear-to-front" DEVICEAIRFLOWVALUE_LEFT_TO_RIGHT DeviceAirflowValue = "left-to-right" DEVICEAIRFLOWVALUE_RIGHT_TO_LEFT DeviceAirflowValue = "right-to-left" - DEVICEAIRFLOWVALUE_SIDE_TO_REAR DeviceAirflowValue = "side-to-rear" - DEVICEAIRFLOWVALUE_PASSIVE DeviceAirflowValue = "passive" - DEVICEAIRFLOWVALUE_MIXED DeviceAirflowValue = "mixed" - DEVICEAIRFLOWVALUE_EMPTY DeviceAirflowValue = "" + DEVICEAIRFLOWVALUE_SIDE_TO_REAR DeviceAirflowValue = "side-to-rear" + DEVICEAIRFLOWVALUE_REAR_TO_SIDE DeviceAirflowValue = "rear-to-side" + DEVICEAIRFLOWVALUE_BOTTOM_TO_TOP DeviceAirflowValue = "bottom-to-top" + DEVICEAIRFLOWVALUE_TOP_TO_BOTTOM DeviceAirflowValue = "top-to-bottom" + DEVICEAIRFLOWVALUE_PASSIVE DeviceAirflowValue = "passive" + DEVICEAIRFLOWVALUE_MIXED DeviceAirflowValue = "mixed" + DEVICEAIRFLOWVALUE_EMPTY DeviceAirflowValue = "" ) // All allowed values of DeviceAirflowValue enum @@ -37,6 +40,9 @@ var AllowedDeviceAirflowValueEnumValues = []DeviceAirflowValue{ "left-to-right", "right-to-left", "side-to-rear", + "rear-to-side", + "bottom-to-top", + "top-to-bottom", "passive", "mixed", "", @@ -120,3 +126,4 @@ func (v *NullableDeviceAirflowValue) 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 ab35b6a54a..8d0372c55d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the DeviceBay type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ var _ MappedNullable = &DeviceBay{} // DeviceBay Adds support for custom fields and tags. type DeviceBay struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` + Device BriefDevice `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDevice `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 NullableBriefDevice `json:"installed_device,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,15 +44,13 @@ type _DeviceBay DeviceBay // 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 NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { +func NewDeviceBay(id int32, url string, display string, device BriefDevice, name string) *DeviceBay { this := DeviceBay{} this.Id = id this.Url = url this.Display = display this.Device = device this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -87,6 +86,7 @@ func (o *DeviceBay) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *DeviceBay) GetUrl() string { if o == nil { @@ -111,6 +111,39 @@ func (o *DeviceBay) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceBay) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBay) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceBay) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceBay) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DeviceBay) GetDisplay() string { if o == nil { @@ -135,10 +168,11 @@ func (o *DeviceBay) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *DeviceBay) GetDevice() Device { +func (o *DeviceBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -147,7 +181,7 @@ func (o *DeviceBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBay) GetDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -155,10 +189,11 @@ func (o *DeviceBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *DeviceBay) SetDevice(v Device) { +func (o *DeviceBay) SetDevice(v BriefDevice) { o.Device = v } + // GetName returns the Name field value func (o *DeviceBay) GetName() string { if o == nil { @@ -183,6 +218,7 @@ func (o *DeviceBay) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *DeviceBay) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -248,9 +284,9 @@ func (o *DeviceBay) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBay) GetInstalledDevice() Device { +func (o *DeviceBay) GetInstalledDevice() BriefDevice { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.InstalledDevice.Get() @@ -259,7 +295,7 @@ func (o *DeviceBay) GetInstalledDevice() Device { // GetInstalledDeviceOk returns a tuple with the InstalledDevice 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 *DeviceBay) GetInstalledDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -275,11 +311,10 @@ func (o *DeviceBay) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDevice and assigns it to the InstalledDevice field. -func (o *DeviceBay) SetInstalledDevice(v Device) { +// SetInstalledDevice gets a reference to the given NullableBriefDevice and assigns it to the InstalledDevice field. +func (o *DeviceBay) SetInstalledDevice(v BriefDevice) { o.InstalledDevice.Set(&v) } - // SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil func (o *DeviceBay) SetInstalledDeviceNil() { o.InstalledDevice.Set(nil) @@ -354,18 +389,16 @@ func (o *DeviceBay) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceBay) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *DeviceBay) GetCreatedOk() (*time.Time, bool) { @@ -375,23 +408,39 @@ func (o *DeviceBay) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *DeviceBay) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *DeviceBay) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *DeviceBay) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *DeviceBay) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceBay) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *DeviceBay) GetLastUpdatedOk() (*time.Time, bool) { @@ -401,13 +450,31 @@ func (o *DeviceBay) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *DeviceBay) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *DeviceBay) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *DeviceBay) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *DeviceBay) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o DeviceBay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -418,6 +485,9 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -436,8 +506,12 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -456,24 +530,39 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { "display", "device", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceBay := _DeviceBay{} err = json.Unmarshal(data, &varDeviceBay) @@ -489,6 +578,7 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") @@ -540,3 +630,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 514b0172eb..1ce9bdd3cd 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &DeviceBayRequest{} // DeviceBayRequest Adds support for custom fields and tags. type DeviceBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `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 NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _DeviceBayRequest DeviceBayRequest // 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 NewDeviceBayRequest(device DeviceRequest, name string) *DeviceBayRequest { +func NewDeviceBayRequest(device BriefDeviceRequest, name string) *DeviceBayRequest { this := DeviceBayRequest{} this.Device = device this.Name = name @@ -53,9 +53,9 @@ func NewDeviceBayRequestWithDefaults() *DeviceBayRequest { } // GetDevice returns the Device field value -func (o *DeviceBayRequest) GetDevice() DeviceRequest { +func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -64,7 +64,7 @@ func (o *DeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -72,10 +72,11 @@ func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *DeviceBayRequest) SetDevice(v DeviceRequest) { +func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetName returns the Name field value func (o *DeviceBayRequest) GetName() string { if o == nil { @@ -100,6 +101,7 @@ func (o *DeviceBayRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *DeviceBayRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -165,9 +167,9 @@ func (o *DeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -176,7 +178,7 @@ func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice 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 *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -192,11 +194,10 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } - // SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil func (o *DeviceBayRequest) SetInstalledDeviceNil() { o.InstalledDevice.Set(nil) @@ -272,7 +273,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 } @@ -315,20 +316,37 @@ func (o *DeviceBayRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceBayRequest := _DeviceBayRequest{} err = json.Unmarshal(data, &varDeviceBayRequest) @@ -390,3 +408,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 6ea0c9a93f..12756a3a33 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the DeviceBayTemplate type satisfies the MappedNullable interface at compile time @@ -21,17 +21,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"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `json:"device_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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,15 +41,13 @@ type _DeviceBayTemplate DeviceBayTemplate // 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 NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { +func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string) *DeviceBayTemplate { this := DeviceBayTemplate{} this.Id = id this.Url = url this.Display = display this.DeviceType = deviceType this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -85,6 +83,7 @@ func (o *DeviceBayTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *DeviceBayTemplate) GetUrl() string { if o == nil { @@ -109,6 +108,7 @@ func (o *DeviceBayTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *DeviceBayTemplate) GetDisplay() string { if o == nil { @@ -133,10 +133,11 @@ func (o *DeviceBayTemplate) SetDisplay(v string) { o.Display = v } + // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplate) GetDeviceType() DeviceType { +func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -145,7 +146,7 @@ func (o *DeviceBayTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -153,10 +154,11 @@ func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceBayTemplate) SetDeviceType(v DeviceType) { +func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } + // GetName returns the Name field value func (o *DeviceBayTemplate) GetName() string { if o == nil { @@ -181,6 +183,7 @@ func (o *DeviceBayTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *DeviceBayTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -245,18 +248,16 @@ func (o *DeviceBayTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceBayTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *DeviceBayTemplate) GetCreatedOk() (*time.Time, bool) { @@ -266,23 +267,39 @@ func (o *DeviceBayTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *DeviceBayTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *DeviceBayTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *DeviceBayTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *DeviceBayTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceBayTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *DeviceBayTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -292,13 +309,31 @@ func (o *DeviceBayTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *DeviceBayTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *DeviceBayTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *DeviceBayTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *DeviceBayTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o DeviceBayTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -318,8 +353,12 @@ func (o DeviceBayTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -338,24 +377,39 @@ func (o *DeviceBayTemplate) UnmarshalJSON(data []byte) (err error) { "display", "device_type", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceBayTemplate := _DeviceBayTemplate{} err = json.Unmarshal(data, &varDeviceBayTemplate) @@ -419,3 +473,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 b75a4eaa35..55f0c6c6b9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ 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 DeviceTypeRequest `json:"device_type"` + DeviceType BriefDeviceTypeRequest `json:"device_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{} } @@ -35,7 +35,7 @@ type _DeviceBayTemplateRequest DeviceBayTemplateRequest // 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 NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string) *DeviceBayTemplateRequest { +func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *DeviceBayTemplateRequest { this := DeviceBayTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -51,9 +51,9 @@ func NewDeviceBayTemplateRequestWithDefaults() *DeviceBayTemplateRequest { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -62,7 +62,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -70,10 +70,11 @@ func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) } // SetDeviceType sets field value -func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } + // GetName returns the Name field value func (o *DeviceBayTemplateRequest) GetName() string { if o == nil { @@ -98,6 +99,7 @@ func (o *DeviceBayTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *DeviceBayTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -163,7 +165,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 } @@ -197,20 +199,37 @@ func (o *DeviceBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceBayTemplateRequest := _DeviceBayTemplateRequest{} err = json.Unmarshal(data, &varDeviceBayTemplateRequest) @@ -269,3 +288,5 @@ func (v *NullableDeviceBayTemplateRequest) 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 380afa6899..4164683f76 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceFace{} // DeviceFace struct for DeviceFace type DeviceFace struct { - Value *DeviceFaceValue `json:"value,omitempty"` - Label *DeviceFaceLabel `json:"label,omitempty"` + Value *DeviceFaceValue `json:"value,omitempty"` + Label *DeviceFaceLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DeviceFace) SetLabel(v DeviceFaceLabel) { } func (o DeviceFace) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableDeviceFace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_face_label.go b/model_device_face_label.go index b74e4452a2..f7daeafe18 100644 --- a/model_device_face_label.go +++ b/model_device_face_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type DeviceFaceLabel string // List of Device_face_label const ( DEVICEFACELABEL_FRONT DeviceFaceLabel = "Front" - DEVICEFACELABEL_REAR DeviceFaceLabel = "Rear" + DEVICEFACELABEL_REAR DeviceFaceLabel = "Rear" ) // All allowed values of DeviceFaceLabel enum @@ -108,3 +108,4 @@ func (v *NullableDeviceFaceLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_device_face_value.go b/model_device_face_value.go index c693fb0de4..6f96b85085 100644 --- a/model_device_face_value.go +++ b/model_device_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type DeviceFaceValue string // List of Device_face_value const ( DEVICEFACEVALUE_FRONT DeviceFaceValue = "front" - DEVICEFACEVALUE_REAR DeviceFaceValue = "rear" + DEVICEFACEVALUE_REAR DeviceFaceValue = "rear" DEVICEFACEVALUE_EMPTY DeviceFaceValue = "" ) @@ -110,3 +110,4 @@ func (v *NullableDeviceFaceValue) 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 1c2cf2a0c6..e2657f8004 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,23 @@ 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"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + // Virtual machines may be assigned to this role + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,15 +47,13 @@ type _DeviceRole DeviceRole // 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 NewDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *DeviceRole { +func NewDeviceRole(id int32, url string, display string, name string, slug string) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.DeviceCount = deviceCount - this.VirtualmachineCount = virtualmachineCount return &this } @@ -81,6 +89,7 @@ func (o *DeviceRole) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *DeviceRole) GetUrl() string { if o == nil { @@ -105,6 +114,39 @@ func (o *DeviceRole) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DeviceRole) GetDisplay() string { if o == nil { @@ -129,6 +171,7 @@ func (o *DeviceRole) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *DeviceRole) GetName() string { if o == nil { @@ -153,6 +196,7 @@ func (o *DeviceRole) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *DeviceRole) GetSlug() string { if o == nil { @@ -177,6 +221,113 @@ func (o *DeviceRole) SetSlug(v string) { o.Slug = v } + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *DeviceRole) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *DeviceRole) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *DeviceRole) SetColor(v string) { + o.Color = &v +} + +// GetVmRole returns the VmRole field value if set, zero value otherwise. +func (o *DeviceRole) GetVmRole() bool { + if o == nil || IsNil(o.VmRole) { + var ret bool + return ret + } + return *o.VmRole +} + +// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetVmRoleOk() (*bool, bool) { + if o == nil || IsNil(o.VmRole) { + return nil, false + } + return o.VmRole, true +} + +// HasVmRole returns a boolean if a field has been set. +func (o *DeviceRole) HasVmRole() bool { + if o != nil && !IsNil(o.VmRole) { + return true + } + + return false +} + +// SetVmRole gets a reference to the given bool and assigns it to the VmRole field. +func (o *DeviceRole) SetVmRole(v bool) { + o.VmRole = &v +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + 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 *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, 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 *DeviceRole) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *DeviceRole) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *DeviceRole) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceRole) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,56 +360,220 @@ func (o *DeviceRole) SetDescription(v string) { o.Description = &v } -// GetDeviceCount returns the DeviceCount field value -func (o *DeviceRole) GetDeviceCount() int64 { +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceRole) 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 *DeviceRole) 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 *DeviceRole) 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 *DeviceRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceRole) 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 *DeviceRole) 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 *DeviceRole) 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 *DeviceRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceRole) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *DeviceRole) GetCreatedOk() (*time.Time, bool) { if o == nil { - var ret int64 + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *DeviceRole) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *DeviceRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *DeviceRole) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *DeviceRole) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceRole) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time return ret } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *DeviceRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *DeviceRole) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *DeviceRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *DeviceRole) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *DeviceRole) UnsetLastUpdated() { + o.LastUpdated.Unset() +} - return o.DeviceCount +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *DeviceRole) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceRole) GetDeviceCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { return nil, false } - return &o.DeviceCount, true + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *DeviceRole) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false } -// SetDeviceCount sets field value +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. func (o *DeviceRole) SetDeviceCount(v int64) { - o.DeviceCount = v + o.DeviceCount = &v } -// GetVirtualmachineCount returns the VirtualmachineCount field value +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *DeviceRole) GetVirtualmachineCount() int64 { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { var ret int64 return ret } - - return o.VirtualmachineCount + return *o.VirtualmachineCount } -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceRole) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { return nil, false } - return &o.VirtualmachineCount, true + return o.VirtualmachineCount, true } -// SetVirtualmachineCount sets field value +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *DeviceRole) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. func (o *DeviceRole) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = v + o.VirtualmachineCount = &v } func (o DeviceRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -269,14 +584,42 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.VmRole) { + toSerialize["vm_role"] = o.VmRole + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount - toSerialize["virtualmachine_count"] = o.VirtualmachineCount + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -295,24 +638,39 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "device_count", - "virtualmachine_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceRole := _DeviceRole{} err = json.Unmarshal(data, &varDeviceRole) @@ -328,10 +686,18 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "color") + delete(additionalProperties, "vm_role") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties @@ -375,3 +741,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 111b389d1b..4394222b20 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &DeviceRoleRequest{} // DeviceRoleRequest Adds support for custom fields and tags. type DeviceRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `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 NullableBriefConfigTemplateRequest `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{} } @@ -77,6 +77,7 @@ func (o *DeviceRoleRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *DeviceRoleRequest) GetSlug() string { if o == nil { @@ -101,6 +102,7 @@ func (o *DeviceRoleRequest) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *DeviceRoleRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -166,9 +168,9 @@ func (o *DeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -177,7 +179,7 @@ func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // 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 *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -193,11 +195,10 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *DeviceRoleRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -305,7 +306,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 } @@ -351,20 +352,37 @@ func (o *DeviceRoleRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceRoleRequest := _DeviceRoleRequest{} err = json.Unmarshal(data, &varDeviceRoleRequest) @@ -427,3 +445,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 04e480442d..7628b97ca6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceStatus{} // DeviceStatus struct for DeviceStatus type DeviceStatus struct { - Value *DeviceStatusValue `json:"value,omitempty"` - Label *DeviceStatusLabel `json:"label,omitempty"` + Value *DeviceStatusValue `json:"value,omitempty"` + Label *DeviceStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DeviceStatus) SetLabel(v DeviceStatusLabel) { } func (o DeviceStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableDeviceStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_status_label.go b/model_device_status_label.go index 4490be89a1..a4c2f7eadc 100644 --- a/model_device_status_label.go +++ b/model_device_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ type DeviceStatusLabel string // List of Device_status_label const ( - DEVICESTATUSLABEL_OFFLINE DeviceStatusLabel = "Offline" - DEVICESTATUSLABEL_ACTIVE DeviceStatusLabel = "Active" - DEVICESTATUSLABEL_PLANNED DeviceStatusLabel = "Planned" - DEVICESTATUSLABEL_STAGED DeviceStatusLabel = "Staged" - DEVICESTATUSLABEL_FAILED DeviceStatusLabel = "Failed" - DEVICESTATUSLABEL_INVENTORY DeviceStatusLabel = "Inventory" + DEVICESTATUSLABEL_OFFLINE DeviceStatusLabel = "Offline" + DEVICESTATUSLABEL_ACTIVE DeviceStatusLabel = "Active" + DEVICESTATUSLABEL_PLANNED DeviceStatusLabel = "Planned" + DEVICESTATUSLABEL_STAGED DeviceStatusLabel = "Staged" + DEVICESTATUSLABEL_FAILED DeviceStatusLabel = "Failed" + DEVICESTATUSLABEL_INVENTORY DeviceStatusLabel = "Inventory" DEVICESTATUSLABEL_DECOMMISSIONING DeviceStatusLabel = "Decommissioning" ) @@ -118,3 +118,4 @@ func (v *NullableDeviceStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_device_status_value.go b/model_device_status_value.go index 032b9b5b65..de503ca73e 100644 --- a/model_device_status_value.go +++ b/model_device_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ type DeviceStatusValue string // List of Device_status_value const ( - DEVICESTATUSVALUE_OFFLINE DeviceStatusValue = "offline" - DEVICESTATUSVALUE_ACTIVE DeviceStatusValue = "active" - DEVICESTATUSVALUE_PLANNED DeviceStatusValue = "planned" - DEVICESTATUSVALUE_STAGED DeviceStatusValue = "staged" - DEVICESTATUSVALUE_FAILED DeviceStatusValue = "failed" - DEVICESTATUSVALUE_INVENTORY DeviceStatusValue = "inventory" + DEVICESTATUSVALUE_OFFLINE DeviceStatusValue = "offline" + DEVICESTATUSVALUE_ACTIVE DeviceStatusValue = "active" + DEVICESTATUSVALUE_PLANNED DeviceStatusValue = "planned" + DEVICESTATUSVALUE_STAGED DeviceStatusValue = "staged" + DEVICESTATUSVALUE_FAILED DeviceStatusValue = "failed" + DEVICESTATUSVALUE_INVENTORY DeviceStatusValue = "inventory" DEVICESTATUSVALUE_DECOMMISSIONING DeviceStatusValue = "decommissioning" ) @@ -118,3 +118,4 @@ func (v *NullableDeviceStatusValue) 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 6b71ca2b42..c939f345e0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,44 @@ 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 Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + DefaultPlatform NullableBriefPlatform `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,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 NullableString `json:"front_image,omitempty"` + RearImage NullableString `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + 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{} } @@ -37,7 +68,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 Manufacturer, model string, slug string, deviceCount int64) *DeviceType { +func NewDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, 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 @@ -45,7 +76,18 @@ func NewDeviceType(id int32, url string, display string, manufacturer Manufactur this.Manufacturer = manufacturer this.Model = model this.Slug = slug - this.DeviceCount = deviceCount + var uHeight float64 = 1.0 + this.UHeight = &uHeight + 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 } @@ -54,6 +96,8 @@ func NewDeviceType(id int32, url string, display string, manufacturer Manufactur // but it doesn't guarantee that properties required by API are set func NewDeviceTypeWithDefaults() *DeviceType { this := DeviceType{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -81,184 +125,1082 @@ func (o *DeviceType) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *DeviceType) GetUrl() string { if o == nil { - var ret string + 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 *DeviceType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *DeviceType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *DeviceType) 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 *DeviceType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *DeviceType) SetDisplay(v string) { + o.Display = v +} + + +// GetManufacturer returns the Manufacturer field value +func (o *DeviceType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *DeviceType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + + +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetDefaultPlatform() BriefPlatform { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatform + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform 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 *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceType) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatform and assigns it to the DefaultPlatform field. +func (o *DeviceType) SetDefaultPlatform(v BriefPlatform) { + o.DefaultPlatform.Set(&v) +} +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceType) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceType) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + +// GetModel returns the Model field value +func (o *DeviceType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *DeviceType) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *DeviceType) 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 *DeviceType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *DeviceType) SetSlug(v string) { + o.Slug = v +} + + +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceType) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceType) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceType) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceType) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceType) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceType) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceType) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceType) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceType) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole 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 *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceType) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeSubdeviceRole and assigns it to the SubdeviceRole field. +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) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceType) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetAirflow() DeviceTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeAirflow and assigns it to the Airflow field. +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) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *DeviceType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +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) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +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) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetFrontImage() string { + if o == nil || IsNil(o.FrontImage.Get()) { + var ret string + return ret + } + return *o.FrontImage.Get() +} + +// GetFrontImageOk returns a tuple with the FrontImage 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 *DeviceType) GetFrontImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FrontImage.Get(), o.FrontImage.IsSet() +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceType) HasFrontImage() bool { + if o != nil && o.FrontImage.IsSet() { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given NullableString and assigns it to the FrontImage field. +func (o *DeviceType) SetFrontImage(v string) { + o.FrontImage.Set(&v) +} +// SetFrontImageNil sets the value for FrontImage to be an explicit nil +func (o *DeviceType) SetFrontImageNil() { + o.FrontImage.Set(nil) +} + +// UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +func (o *DeviceType) UnsetFrontImage() { + o.FrontImage.Unset() +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetRearImage() string { + if o == nil || IsNil(o.RearImage.Get()) { + var ret string + return ret + } + return *o.RearImage.Get() +} + +// GetRearImageOk returns a tuple with the RearImage 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 *DeviceType) GetRearImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RearImage.Get(), o.RearImage.IsSet() +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceType) HasRearImage() bool { + if o != nil && o.RearImage.IsSet() { + return true + } + + return false +} + +// SetRearImage gets a reference to the given NullableString and assigns it to the RearImage field. +func (o *DeviceType) SetRearImage(v string) { + o.RearImage.Set(&v) +} +// SetRearImageNil sets the value for RearImage to be an explicit nil +func (o *DeviceType) SetRearImageNil() { + o.RearImage.Set(nil) +} + +// UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil +func (o *DeviceType) UnsetRearImage() { + o.RearImage.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *DeviceType) 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 *DeviceType) 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 *DeviceType) 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 *DeviceType) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceType) 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 *DeviceType) 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 *DeviceType) 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 *DeviceType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceType) 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 *DeviceType) 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 *DeviceType) 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 *DeviceType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *DeviceType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *DeviceType) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *DeviceType) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *DeviceType) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *DeviceType) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *DeviceType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *DeviceType) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *DeviceType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *DeviceType) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *DeviceType) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *DeviceType) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 return ret } + return *o.DeviceCount +} - return o.Url +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true } -// GetUrlOk returns a tuple with the Url field value +// HasDeviceCount returns a boolean if a field has been set. +func (o *DeviceType) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *DeviceType) SetDeviceCount(v int64) { + 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) GetUrlOk() (*string, bool) { +func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Url, true + return &o.ConsolePortTemplateCount, true } -// SetUrl sets field value -func (o *DeviceType) SetUrl(v string) { - o.Url = v +// SetConsolePortTemplateCount sets field value +func (o *DeviceType) SetConsolePortTemplateCount(v int32) { + o.ConsolePortTemplateCount = v } -// GetDisplay returns the Display field value -func (o *DeviceType) GetDisplay() string { + +// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value +func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 { if o == nil { - var ret string + var ret int32 return ret } - return o.Display + return o.ConsoleServerPortTemplateCount } -// GetDisplayOk returns a tuple with the Display field value +// GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetDisplayOk() (*string, bool) { +func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Display, true + return &o.ConsoleServerPortTemplateCount, true } -// SetDisplay sets field value -func (o *DeviceType) SetDisplay(v string) { - o.Display = v +// SetConsoleServerPortTemplateCount sets field value +func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) { + o.ConsoleServerPortTemplateCount = v } -// GetManufacturer returns the Manufacturer field value -func (o *DeviceType) GetManufacturer() Manufacturer { + +// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value +func (o *DeviceType) GetPowerPortTemplateCount() int32 { if o == nil { - var ret Manufacturer + var ret int32 return ret } - return o.Manufacturer + return o.PowerPortTemplateCount } -// GetManufacturerOk returns a tuple with the Manufacturer field value +// GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Manufacturer, true + return &o.PowerPortTemplateCount, true } -// SetManufacturer sets field value -func (o *DeviceType) SetManufacturer(v Manufacturer) { - o.Manufacturer = v +// SetPowerPortTemplateCount sets field value +func (o *DeviceType) SetPowerPortTemplateCount(v int32) { + o.PowerPortTemplateCount = v } -// GetModel returns the Model field value -func (o *DeviceType) GetModel() string { + +// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value +func (o *DeviceType) GetPowerOutletTemplateCount() int32 { if o == nil { - var ret string + var ret int32 return ret } - return o.Model + return o.PowerOutletTemplateCount } -// GetModelOk returns a tuple with the Model field value +// GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetModelOk() (*string, bool) { +func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Model, true + return &o.PowerOutletTemplateCount, true } -// SetModel sets field value -func (o *DeviceType) SetModel(v string) { - o.Model = v +// SetPowerOutletTemplateCount sets field value +func (o *DeviceType) SetPowerOutletTemplateCount(v int32) { + o.PowerOutletTemplateCount = v } -// GetSlug returns the Slug field value -func (o *DeviceType) GetSlug() string { + +// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value +func (o *DeviceType) GetInterfaceTemplateCount() int32 { if o == nil { - var ret string + var ret int32 return ret } - return o.Slug + return o.InterfaceTemplateCount } -// GetSlugOk returns a tuple with the Slug field value +// GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetSlugOk() (*string, bool) { +func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Slug, true + return &o.InterfaceTemplateCount, true } -// SetSlug sets field value -func (o *DeviceType) SetSlug(v string) { - o.Slug = v +// SetInterfaceTemplateCount sets field value +func (o *DeviceType) SetInterfaceTemplateCount(v int32) { + o.InterfaceTemplateCount = v } -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *DeviceType) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string + +// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value +func (o *DeviceType) GetFrontPortTemplateCount() int32 { + if o == nil { + var ret int32 return ret } - return *o.Description + + return o.FrontPortTemplateCount } -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { +func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool) { + if o == nil { return nil, false } - return o.Description, true + return &o.FrontPortTemplateCount, true } -// HasDescription returns a boolean if a field has been set. -func (o *DeviceType) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return 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 false + return o.RearPortTemplateCount } -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *DeviceType) SetDescription(v string) { - o.Description = &v +// 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 } -// GetDeviceCount returns the DeviceCount field value -func (o *DeviceType) GetDeviceCount() int64 { +// 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 int64 + var ret int32 return ret } - return o.DeviceCount + return o.DeviceBayTemplateCount } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetDeviceCountOk() (*int64, bool) { +func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool) { if o == nil { return nil, false } - return &o.DeviceCount, true + return &o.DeviceBayTemplateCount, true } -// SetDeviceCount sets field value -func (o *DeviceType) SetDeviceCount(v int64) { - o.DeviceCount = v +// 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 } @@ -269,14 +1211,77 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.FrontImage.IsSet() { + toSerialize["front_image"] = o.FrontImage.Get() + } + if o.RearImage.IsSet() { + toSerialize["rear_image"] = o.RearImage.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.DeviceCount) { + 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 @@ -296,23 +1301,49 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { "manufacturer", "model", "slug", - "device_count", + "console_port_template_count", + "console_server_port_template_count", + "power_port_template_count", + "power_outlet_template_count", + "interface_template_count", + "front_port_template_count", + "rear_port_template_count", + "device_bay_template_count", + "module_bay_template_count", + "inventory_item_template_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceType := _DeviceType{} err = json.Unmarshal(data, &varDeviceType) @@ -328,12 +1359,39 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + 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 } @@ -375,3 +1433,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 new file mode 100644 index 0000000000..060d831497 --- /dev/null +++ b/model_device_type_airflow.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeAirflow{} + +// DeviceTypeAirflow struct for DeviceTypeAirflow +type DeviceTypeAirflow struct { + Value *DeviceAirflowValue `json:"value,omitempty"` + Label *DeviceAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeAirflow DeviceTypeAirflow + +// NewDeviceTypeAirflow instantiates a new DeviceTypeAirflow 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 NewDeviceTypeAirflow() *DeviceTypeAirflow { + this := DeviceTypeAirflow{} + return &this +} + +// NewDeviceTypeAirflowWithDefaults instantiates a new DeviceTypeAirflow 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 NewDeviceTypeAirflowWithDefaults() *DeviceTypeAirflow { + this := DeviceTypeAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeAirflow) GetValue() DeviceAirflowValue { + if o == nil || IsNil(o.Value) { + var ret DeviceAirflowValue + 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 *DeviceTypeAirflow) GetValueOk() (*DeviceAirflowValue, 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 *DeviceTypeAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceAirflowValue and assigns it to the Value field. +func (o *DeviceTypeAirflow) SetValue(v DeviceAirflowValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceAirflowLabel + 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 *DeviceTypeAirflow) GetLabelOk() (*DeviceAirflowLabel, 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 *DeviceTypeAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceAirflowLabel and assigns it to the Label field. +func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel) { + o.Label = &v +} + +func (o DeviceTypeAirflow) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeAirflow) 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 *DeviceTypeAirflow) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeAirflow := _DeviceTypeAirflow{} + + err = json.Unmarshal(data, &varDeviceTypeAirflow) + + if err != nil { + return err + } + + *o = DeviceTypeAirflow(varDeviceTypeAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeAirflow struct { + value *DeviceTypeAirflow + isSet bool +} + +func (v NullableDeviceTypeAirflow) Get() *DeviceTypeAirflow { + return v.value +} + +func (v *NullableDeviceTypeAirflow) Set(val *DeviceTypeAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeAirflow(val *DeviceTypeAirflow) *NullableDeviceTypeAirflow { + return &NullableDeviceTypeAirflow{value: val, isSet: true} +} + +func (v NullableDeviceTypeAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +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 f72377aaa0..fa59f54e13 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "os" "fmt" ) @@ -20,10 +21,27 @@ var _ MappedNullable = &DeviceTypeRequest{} // DeviceTypeRequest Adds support for custom fields and tags. type DeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` + // Device consumes both front and rear rack faces. + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeRequestSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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{} } @@ -33,11 +51,13 @@ type _DeviceTypeRequest DeviceTypeRequest // 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 NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *DeviceTypeRequest { +func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *DeviceTypeRequest { this := DeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model this.Slug = slug + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -46,13 +66,15 @@ func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug s // but it doesn't guarantee that properties required by API are set func NewDeviceTypeRequestWithDefaults() *DeviceTypeRequest { this := DeviceTypeRequest{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } // GetManufacturer returns the Manufacturer field value -func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -61,7 +83,7 @@ func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -69,10 +91,53 @@ func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } + +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatformRequest + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform 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 *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { + o.DefaultPlatform.Set(&v) +} +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceTypeRequest) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceTypeRequest) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + // GetModel returns the Model field value func (o *DeviceTypeRequest) GetModel() string { if o == nil { @@ -97,6 +162,7 @@ func (o *DeviceTypeRequest) SetModel(v string) { o.Model = v } + // GetSlug returns the Slug field value func (o *DeviceTypeRequest) GetSlug() string { if o == nil { @@ -121,6 +187,367 @@ func (o *DeviceTypeRequest) SetSlug(v string) { o.Slug = v } + +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceTypeRequest) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceTypeRequest) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeRequestSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole 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 *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeRequestSubdeviceRole and assigns it to the SubdeviceRole field. +func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole) { + o.SubdeviceRole.Set(&v) +} +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *DeviceTypeRequest) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceTypeRequest) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *DeviceTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *DeviceTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +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) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *DeviceTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetFrontImage() *os.File { + if o == nil || IsNil(o.FrontImage) { + var ret *os.File + return ret + } + return *o.FrontImage +} + +// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool) { + if o == nil || IsNil(o.FrontImage) { + return nil, false + } + return o.FrontImage, true +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasFrontImage() bool { + if o != nil && !IsNil(o.FrontImage) { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given *os.File and assigns it to the FrontImage field. +func (o *DeviceTypeRequest) SetFrontImage(v *os.File) { + o.FrontImage = &v +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetRearImage() *os.File { + if o == nil || IsNil(o.RearImage) { + var ret *os.File + return ret + } + return *o.RearImage +} + +// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool) { + if o == nil || IsNil(o.RearImage) { + return nil, false + } + return o.RearImage, true +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasRearImage() bool { + if o != nil && !IsNil(o.RearImage) { + return true + } + + return false +} + +// SetRearImage gets a reference to the given *os.File and assigns it to the RearImage field. +func (o *DeviceTypeRequest) SetRearImage(v *os.File) { + o.RearImage = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -153,8 +580,104 @@ func (o *DeviceTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceTypeRequest) 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 *DeviceTypeRequest) 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 *DeviceTypeRequest) 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 *DeviceTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceTypeRequest) 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 *DeviceTypeRequest) 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 *DeviceTypeRequest) 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 *DeviceTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,11 +687,53 @@ func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.FrontImage) { + toSerialize["front_image"] = o.FrontImage + } + if !IsNil(o.RearImage) { + toSerialize["rear_image"] = o.RearImage + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -187,20 +752,37 @@ func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceTypeRequest := _DeviceTypeRequest{} err = json.Unmarshal(data, &varDeviceTypeRequest) @@ -215,9 +797,23 @@ func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -259,3 +855,5 @@ func (v *NullableDeviceTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go new file mode 100644 index 0000000000..06411a4d66 --- /dev/null +++ b/model_device_type_request_airflow.go @@ -0,0 +1,129 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestAirflow * `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 * `rear-to-side` - Rear to side * `bottom-to-top` - Bottom to top * `top-to-bottom` - Top to bottom * `passive` - Passive * `mixed` - Mixed +type DeviceTypeRequestAirflow string + +// List of DeviceTypeRequest_airflow +const ( + DEVICETYPEREQUESTAIRFLOW_FRONT_TO_REAR DeviceTypeRequestAirflow = "front-to-rear" + DEVICETYPEREQUESTAIRFLOW_REAR_TO_FRONT DeviceTypeRequestAirflow = "rear-to-front" + DEVICETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT DeviceTypeRequestAirflow = "left-to-right" + DEVICETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT DeviceTypeRequestAirflow = "right-to-left" + DEVICETYPEREQUESTAIRFLOW_SIDE_TO_REAR DeviceTypeRequestAirflow = "side-to-rear" + DEVICETYPEREQUESTAIRFLOW_REAR_TO_SIDE DeviceTypeRequestAirflow = "rear-to-side" + DEVICETYPEREQUESTAIRFLOW_BOTTOM_TO_TOP DeviceTypeRequestAirflow = "bottom-to-top" + DEVICETYPEREQUESTAIRFLOW_TOP_TO_BOTTOM DeviceTypeRequestAirflow = "top-to-bottom" + DEVICETYPEREQUESTAIRFLOW_PASSIVE DeviceTypeRequestAirflow = "passive" + DEVICETYPEREQUESTAIRFLOW_MIXED DeviceTypeRequestAirflow = "mixed" + DEVICETYPEREQUESTAIRFLOW_EMPTY DeviceTypeRequestAirflow = "" +) + +// All allowed values of DeviceTypeRequestAirflow enum +var AllowedDeviceTypeRequestAirflowEnumValues = []DeviceTypeRequestAirflow{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "rear-to-side", + "bottom-to-top", + "top-to-bottom", + "passive", + "mixed", + "", +} + +func (v *DeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestAirflow(value) + for _, existing := range AllowedDeviceTypeRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestAirflow", value) +} + +// NewDeviceTypeRequestAirflowFromValue returns a pointer to a valid DeviceTypeRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestAirflowFromValue(v string) (*DeviceTypeRequestAirflow, error) { + ev := DeviceTypeRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestAirflow: valid values are %v", v, AllowedDeviceTypeRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestAirflow) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_airflow value +func (v DeviceTypeRequestAirflow) Ptr() *DeviceTypeRequestAirflow { + return &v +} + +type NullableDeviceTypeRequestAirflow struct { + value *DeviceTypeRequestAirflow + isSet bool +} + +func (v NullableDeviceTypeRequestAirflow) Get() *DeviceTypeRequestAirflow { + return v.value +} + +func (v *NullableDeviceTypeRequestAirflow) Set(val *DeviceTypeRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestAirflow(val *DeviceTypeRequestAirflow) *NullableDeviceTypeRequestAirflow { + return &NullableDeviceTypeRequestAirflow{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_request_subdevice_role.go b/model_device_type_request_subdevice_role.go new file mode 100644 index 0000000000..714911d3bf --- /dev/null +++ b/model_device_type_request_subdevice_role.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestSubdeviceRole * `parent` - Parent * `child` - Child +type DeviceTypeRequestSubdeviceRole string + +// List of DeviceTypeRequest_subdevice_role +const ( + DEVICETYPEREQUESTSUBDEVICEROLE_PARENT DeviceTypeRequestSubdeviceRole = "parent" + DEVICETYPEREQUESTSUBDEVICEROLE_CHILD DeviceTypeRequestSubdeviceRole = "child" + DEVICETYPEREQUESTSUBDEVICEROLE_EMPTY DeviceTypeRequestSubdeviceRole = "" +) + +// All allowed values of DeviceTypeRequestSubdeviceRole enum +var AllowedDeviceTypeRequestSubdeviceRoleEnumValues = []DeviceTypeRequestSubdeviceRole{ + "parent", + "child", + "", +} + +func (v *DeviceTypeRequestSubdeviceRole) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestSubdeviceRole(value) + for _, existing := range AllowedDeviceTypeRequestSubdeviceRoleEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestSubdeviceRole", value) +} + +// NewDeviceTypeRequestSubdeviceRoleFromValue returns a pointer to a valid DeviceTypeRequestSubdeviceRole +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestSubdeviceRoleFromValue(v string) (*DeviceTypeRequestSubdeviceRole, error) { + ev := DeviceTypeRequestSubdeviceRole(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestSubdeviceRole: valid values are %v", v, AllowedDeviceTypeRequestSubdeviceRoleEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestSubdeviceRole) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestSubdeviceRoleEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_subdevice_role value +func (v DeviceTypeRequestSubdeviceRole) Ptr() *DeviceTypeRequestSubdeviceRole { + return &v +} + +type NullableDeviceTypeRequestSubdeviceRole struct { + value *DeviceTypeRequestSubdeviceRole + isSet bool +} + +func (v NullableDeviceTypeRequestSubdeviceRole) Get() *DeviceTypeRequestSubdeviceRole { + return v.value +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) Set(val *DeviceTypeRequestSubdeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestSubdeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestSubdeviceRole(val *DeviceTypeRequestSubdeviceRole) *NullableDeviceTypeRequestSubdeviceRole { + return &NullableDeviceTypeRequestSubdeviceRole{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestSubdeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_request_weight_unit.go b/model_device_type_request_weight_unit.go new file mode 100644 index 0000000000..04f2c91761 --- /dev/null +++ b/model_device_type_request_weight_unit.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestWeightUnit * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +type DeviceTypeRequestWeightUnit string + +// List of DeviceTypeRequest_weight_unit +const ( + DEVICETYPEREQUESTWEIGHTUNIT_KG DeviceTypeRequestWeightUnit = "kg" + DEVICETYPEREQUESTWEIGHTUNIT_G DeviceTypeRequestWeightUnit = "g" + DEVICETYPEREQUESTWEIGHTUNIT_LB DeviceTypeRequestWeightUnit = "lb" + DEVICETYPEREQUESTWEIGHTUNIT_OZ DeviceTypeRequestWeightUnit = "oz" + DEVICETYPEREQUESTWEIGHTUNIT_EMPTY DeviceTypeRequestWeightUnit = "" +) + +// All allowed values of DeviceTypeRequestWeightUnit enum +var AllowedDeviceTypeRequestWeightUnitEnumValues = []DeviceTypeRequestWeightUnit{ + "kg", + "g", + "lb", + "oz", + "", +} + +func (v *DeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestWeightUnit(value) + for _, existing := range AllowedDeviceTypeRequestWeightUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestWeightUnit", value) +} + +// NewDeviceTypeRequestWeightUnitFromValue returns a pointer to a valid DeviceTypeRequestWeightUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestWeightUnitFromValue(v string) (*DeviceTypeRequestWeightUnit, error) { + ev := DeviceTypeRequestWeightUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestWeightUnit: valid values are %v", v, AllowedDeviceTypeRequestWeightUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestWeightUnit) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestWeightUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_weight_unit value +func (v DeviceTypeRequestWeightUnit) Ptr() *DeviceTypeRequestWeightUnit { + return &v +} + +type NullableDeviceTypeRequestWeightUnit struct { + value *DeviceTypeRequestWeightUnit + isSet bool +} + +func (v NullableDeviceTypeRequestWeightUnit) Get() *DeviceTypeRequestWeightUnit { + return v.value +} + +func (v *NullableDeviceTypeRequestWeightUnit) Set(val *DeviceTypeRequestWeightUnit) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestWeightUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestWeightUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestWeightUnit(val *DeviceTypeRequestWeightUnit) *NullableDeviceTypeRequestWeightUnit { + return &NullableDeviceTypeRequestWeightUnit{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestWeightUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestWeightUnit) 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 new file mode 100644 index 0000000000..726e2d1258 --- /dev/null +++ b/model_device_type_subdevice_role.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeSubdeviceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeSubdeviceRole{} + +// DeviceTypeSubdeviceRole struct for DeviceTypeSubdeviceRole +type DeviceTypeSubdeviceRole struct { + Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"` + Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeSubdeviceRole DeviceTypeSubdeviceRole + +// NewDeviceTypeSubdeviceRole instantiates a new DeviceTypeSubdeviceRole 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 NewDeviceTypeSubdeviceRole() *DeviceTypeSubdeviceRole { + this := DeviceTypeSubdeviceRole{} + return &this +} + +// NewDeviceTypeSubdeviceRoleWithDefaults instantiates a new DeviceTypeSubdeviceRole 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 NewDeviceTypeSubdeviceRoleWithDefaults() *DeviceTypeSubdeviceRole { + this := DeviceTypeSubdeviceRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue { + if o == nil || IsNil(o.Value) { + var ret DeviceTypeSubdeviceRoleValue + 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 *DeviceTypeSubdeviceRole) GetValueOk() (*DeviceTypeSubdeviceRoleValue, 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 *DeviceTypeSubdeviceRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceTypeSubdeviceRoleValue and assigns it to the Value field. +func (o *DeviceTypeSubdeviceRole) SetValue(v DeviceTypeSubdeviceRoleValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceTypeSubdeviceRoleLabel + 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 *DeviceTypeSubdeviceRole) GetLabelOk() (*DeviceTypeSubdeviceRoleLabel, 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 *DeviceTypeSubdeviceRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceTypeSubdeviceRoleLabel and assigns it to the Label field. +func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel) { + o.Label = &v +} + +func (o DeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeSubdeviceRole) 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 *DeviceTypeSubdeviceRole) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeSubdeviceRole := _DeviceTypeSubdeviceRole{} + + err = json.Unmarshal(data, &varDeviceTypeSubdeviceRole) + + if err != nil { + return err + } + + *o = DeviceTypeSubdeviceRole(varDeviceTypeSubdeviceRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeSubdeviceRole struct { + value *DeviceTypeSubdeviceRole + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRole) Get() *DeviceTypeSubdeviceRole { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRole) Set(val *DeviceTypeSubdeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRole(val *DeviceTypeSubdeviceRole) *NullableDeviceTypeSubdeviceRole { + return &NullableDeviceTypeSubdeviceRole{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_device_type_subdevice_role_label.go b/model_device_type_subdevice_role_label.go new file mode 100644 index 0000000000..d96e2ba371 --- /dev/null +++ b/model_device_type_subdevice_role_label.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeSubdeviceRoleLabel the model 'DeviceTypeSubdeviceRoleLabel' +type DeviceTypeSubdeviceRoleLabel string + +// List of DeviceType_subdevice_role_label +const ( + DEVICETYPESUBDEVICEROLELABEL_PARENT DeviceTypeSubdeviceRoleLabel = "Parent" + DEVICETYPESUBDEVICEROLELABEL_CHILD DeviceTypeSubdeviceRoleLabel = "Child" +) + +// All allowed values of DeviceTypeSubdeviceRoleLabel enum +var AllowedDeviceTypeSubdeviceRoleLabelEnumValues = []DeviceTypeSubdeviceRoleLabel{ + "Parent", + "Child", +} + +func (v *DeviceTypeSubdeviceRoleLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeSubdeviceRoleLabel(value) + for _, existing := range AllowedDeviceTypeSubdeviceRoleLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeSubdeviceRoleLabel", value) +} + +// NewDeviceTypeSubdeviceRoleLabelFromValue returns a pointer to a valid DeviceTypeSubdeviceRoleLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeSubdeviceRoleLabelFromValue(v string) (*DeviceTypeSubdeviceRoleLabel, error) { + ev := DeviceTypeSubdeviceRoleLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeSubdeviceRoleLabel: valid values are %v", v, AllowedDeviceTypeSubdeviceRoleLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeSubdeviceRoleLabel) IsValid() bool { + for _, existing := range AllowedDeviceTypeSubdeviceRoleLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_subdevice_role_label value +func (v DeviceTypeSubdeviceRoleLabel) Ptr() *DeviceTypeSubdeviceRoleLabel { + return &v +} + +type NullableDeviceTypeSubdeviceRoleLabel struct { + value *DeviceTypeSubdeviceRoleLabel + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) Get() *DeviceTypeSubdeviceRoleLabel { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) Set(val *DeviceTypeSubdeviceRoleLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRoleLabel(val *DeviceTypeSubdeviceRoleLabel) *NullableDeviceTypeSubdeviceRoleLabel { + return &NullableDeviceTypeSubdeviceRoleLabel{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_subdevice_role_value.go b/model_device_type_subdevice_role_value.go new file mode 100644 index 0000000000..4b7d186f64 --- /dev/null +++ b/model_device_type_subdevice_role_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeSubdeviceRoleValue * `parent` - Parent * `child` - Child +type DeviceTypeSubdeviceRoleValue string + +// List of DeviceType_subdevice_role_value +const ( + DEVICETYPESUBDEVICEROLEVALUE_PARENT DeviceTypeSubdeviceRoleValue = "parent" + DEVICETYPESUBDEVICEROLEVALUE_CHILD DeviceTypeSubdeviceRoleValue = "child" + DEVICETYPESUBDEVICEROLEVALUE_EMPTY DeviceTypeSubdeviceRoleValue = "" +) + +// All allowed values of DeviceTypeSubdeviceRoleValue enum +var AllowedDeviceTypeSubdeviceRoleValueEnumValues = []DeviceTypeSubdeviceRoleValue{ + "parent", + "child", + "", +} + +func (v *DeviceTypeSubdeviceRoleValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeSubdeviceRoleValue(value) + for _, existing := range AllowedDeviceTypeSubdeviceRoleValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeSubdeviceRoleValue", value) +} + +// NewDeviceTypeSubdeviceRoleValueFromValue returns a pointer to a valid DeviceTypeSubdeviceRoleValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeSubdeviceRoleValueFromValue(v string) (*DeviceTypeSubdeviceRoleValue, error) { + ev := DeviceTypeSubdeviceRoleValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeSubdeviceRoleValue: valid values are %v", v, AllowedDeviceTypeSubdeviceRoleValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeSubdeviceRoleValue) IsValid() bool { + for _, existing := range AllowedDeviceTypeSubdeviceRoleValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_subdevice_role_value value +func (v DeviceTypeSubdeviceRoleValue) Ptr() *DeviceTypeSubdeviceRoleValue { + return &v +} + +type NullableDeviceTypeSubdeviceRoleValue struct { + value *DeviceTypeSubdeviceRoleValue + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRoleValue) Get() *DeviceTypeSubdeviceRoleValue { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) Set(val *DeviceTypeSubdeviceRoleValue) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRoleValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRoleValue(val *DeviceTypeSubdeviceRoleValue) *NullableDeviceTypeSubdeviceRoleValue { + return &NullableDeviceTypeSubdeviceRoleValue{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRoleValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) 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 new file mode 100644 index 0000000000..f9c14eb75f --- /dev/null +++ b/model_device_type_weight_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeWeightUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeWeightUnit{} + +// DeviceTypeWeightUnit struct for DeviceTypeWeightUnit +type DeviceTypeWeightUnit struct { + Value *DeviceTypeWeightUnitValue `json:"value,omitempty"` + Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeWeightUnit DeviceTypeWeightUnit + +// NewDeviceTypeWeightUnit instantiates a new DeviceTypeWeightUnit 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 NewDeviceTypeWeightUnit() *DeviceTypeWeightUnit { + this := DeviceTypeWeightUnit{} + return &this +} + +// NewDeviceTypeWeightUnitWithDefaults instantiates a new DeviceTypeWeightUnit 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 NewDeviceTypeWeightUnitWithDefaults() *DeviceTypeWeightUnit { + this := DeviceTypeWeightUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue { + if o == nil || IsNil(o.Value) { + var ret DeviceTypeWeightUnitValue + 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 *DeviceTypeWeightUnit) GetValueOk() (*DeviceTypeWeightUnitValue, 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 *DeviceTypeWeightUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the Value field. +func (o *DeviceTypeWeightUnit) SetValue(v DeviceTypeWeightUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceTypeWeightUnitLabel + 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 *DeviceTypeWeightUnit) GetLabelOk() (*DeviceTypeWeightUnitLabel, 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 *DeviceTypeWeightUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceTypeWeightUnitLabel and assigns it to the Label field. +func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel) { + o.Label = &v +} + +func (o DeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeWeightUnit) 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 *DeviceTypeWeightUnit) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeWeightUnit := _DeviceTypeWeightUnit{} + + err = json.Unmarshal(data, &varDeviceTypeWeightUnit) + + if err != nil { + return err + } + + *o = DeviceTypeWeightUnit(varDeviceTypeWeightUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeWeightUnit struct { + value *DeviceTypeWeightUnit + isSet bool +} + +func (v NullableDeviceTypeWeightUnit) Get() *DeviceTypeWeightUnit { + return v.value +} + +func (v *NullableDeviceTypeWeightUnit) Set(val *DeviceTypeWeightUnit) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnit(val *DeviceTypeWeightUnit) *NullableDeviceTypeWeightUnit { + return &NullableDeviceTypeWeightUnit{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_device_type_weight_unit_label.go b/model_device_type_weight_unit_label.go new file mode 100644 index 0000000000..9fea366316 --- /dev/null +++ b/model_device_type_weight_unit_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeWeightUnitLabel the model 'DeviceTypeWeightUnitLabel' +type DeviceTypeWeightUnitLabel string + +// List of DeviceType_weight_unit_label +const ( + DEVICETYPEWEIGHTUNITLABEL_KILOGRAMS DeviceTypeWeightUnitLabel = "Kilograms" + DEVICETYPEWEIGHTUNITLABEL_GRAMS DeviceTypeWeightUnitLabel = "Grams" + DEVICETYPEWEIGHTUNITLABEL_POUNDS DeviceTypeWeightUnitLabel = "Pounds" + DEVICETYPEWEIGHTUNITLABEL_OUNCES DeviceTypeWeightUnitLabel = "Ounces" +) + +// All allowed values of DeviceTypeWeightUnitLabel enum +var AllowedDeviceTypeWeightUnitLabelEnumValues = []DeviceTypeWeightUnitLabel{ + "Kilograms", + "Grams", + "Pounds", + "Ounces", +} + +func (v *DeviceTypeWeightUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeWeightUnitLabel(value) + for _, existing := range AllowedDeviceTypeWeightUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeWeightUnitLabel", value) +} + +// NewDeviceTypeWeightUnitLabelFromValue returns a pointer to a valid DeviceTypeWeightUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeWeightUnitLabelFromValue(v string) (*DeviceTypeWeightUnitLabel, error) { + ev := DeviceTypeWeightUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeWeightUnitLabel: valid values are %v", v, AllowedDeviceTypeWeightUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeWeightUnitLabel) IsValid() bool { + for _, existing := range AllowedDeviceTypeWeightUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_weight_unit_label value +func (v DeviceTypeWeightUnitLabel) Ptr() *DeviceTypeWeightUnitLabel { + return &v +} + +type NullableDeviceTypeWeightUnitLabel struct { + value *DeviceTypeWeightUnitLabel + isSet bool +} + +func (v NullableDeviceTypeWeightUnitLabel) Get() *DeviceTypeWeightUnitLabel { + return v.value +} + +func (v *NullableDeviceTypeWeightUnitLabel) Set(val *DeviceTypeWeightUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnitLabel(val *DeviceTypeWeightUnitLabel) *NullableDeviceTypeWeightUnitLabel { + return &NullableDeviceTypeWeightUnitLabel{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_weight_unit_value.go b/model_device_type_weight_unit_value.go new file mode 100644 index 0000000000..c3997d29d6 --- /dev/null +++ b/model_device_type_weight_unit_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeWeightUnitValue * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +type DeviceTypeWeightUnitValue string + +// List of DeviceType_weight_unit_value +const ( + DEVICETYPEWEIGHTUNITVALUE_KG DeviceTypeWeightUnitValue = "kg" + DEVICETYPEWEIGHTUNITVALUE_G DeviceTypeWeightUnitValue = "g" + DEVICETYPEWEIGHTUNITVALUE_LB DeviceTypeWeightUnitValue = "lb" + DEVICETYPEWEIGHTUNITVALUE_OZ DeviceTypeWeightUnitValue = "oz" + DEVICETYPEWEIGHTUNITVALUE_EMPTY DeviceTypeWeightUnitValue = "" +) + +// All allowed values of DeviceTypeWeightUnitValue enum +var AllowedDeviceTypeWeightUnitValueEnumValues = []DeviceTypeWeightUnitValue{ + "kg", + "g", + "lb", + "oz", + "", +} + +func (v *DeviceTypeWeightUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeWeightUnitValue(value) + for _, existing := range AllowedDeviceTypeWeightUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeWeightUnitValue", value) +} + +// NewDeviceTypeWeightUnitValueFromValue returns a pointer to a valid DeviceTypeWeightUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeWeightUnitValueFromValue(v string) (*DeviceTypeWeightUnitValue, error) { + ev := DeviceTypeWeightUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeWeightUnitValue: valid values are %v", v, AllowedDeviceTypeWeightUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeWeightUnitValue) IsValid() bool { + for _, existing := range AllowedDeviceTypeWeightUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_weight_unit_value value +func (v DeviceTypeWeightUnitValue) Ptr() *DeviceTypeWeightUnitValue { + return &v +} + +type NullableDeviceTypeWeightUnitValue struct { + value *DeviceTypeWeightUnitValue + isSet bool +} + +func (v NullableDeviceTypeWeightUnitValue) Get() *DeviceTypeWeightUnitValue { + return v.value +} + +func (v *NullableDeviceTypeWeightUnitValue) Set(val *DeviceTypeWeightUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnitValue(val *DeviceTypeWeightUnitValue) *NullableDeviceTypeWeightUnitValue { + return &NullableDeviceTypeWeightUnitValue{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnitValue) 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 f4dfc538e1..5c142e5895 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the DeviceWithConfigContext type satisfies the MappedNullable interface at compile time @@ -21,60 +21,61 @@ 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 DeviceType `json:"device_type"` - Role DeviceRole `json:"role"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceType `json:"device_type"` + Role BriefDeviceRole `json:"role"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `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 Site `json:"site"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `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 NullableNestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,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"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` - ConfigContext interface{} `json:"config_context"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + ConfigContext interface{} `json:"config_context,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData 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{} + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + 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{} } type _DeviceWithConfigContext DeviceWithConfigContext @@ -83,7 +84,7 @@ 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 DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext 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 { +func NewDeviceWithConfigContext(id int32, url string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, 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 @@ -91,11 +92,6 @@ func NewDeviceWithConfigContext(id int32, url string, display string, deviceType this.DeviceType = deviceType this.Role = role this.Site = site - this.ParentDevice = parentDevice - this.PrimaryIp = primaryIp - this.ConfigContext = configContext - this.Created = created - this.LastUpdated = lastUpdated this.ConsolePortCount = consolePortCount this.ConsoleServerPortCount = consoleServerPortCount this.PowerPortCount = powerPortCount @@ -141,6 +137,7 @@ func (o *DeviceWithConfigContext) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *DeviceWithConfigContext) GetUrl() string { if o == nil { @@ -165,6 +162,39 @@ func (o *DeviceWithConfigContext) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceWithConfigContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DeviceWithConfigContext) GetDisplay() string { if o == nil { @@ -189,6 +219,7 @@ func (o *DeviceWithConfigContext) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContext) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -221,7 +252,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) @@ -233,9 +263,9 @@ func (o *DeviceWithConfigContext) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { +func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -244,7 +274,7 @@ func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -252,14 +282,15 @@ func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType) { +func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } + // GetRole returns the Role field value -func (o *DeviceWithConfigContext) GetRole() DeviceRole { +func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole { if o == nil { - var ret DeviceRole + var ret BriefDeviceRole return ret } @@ -268,7 +299,7 @@ func (o *DeviceWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -276,14 +307,15 @@ func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { } // SetRole sets field value -func (o *DeviceWithConfigContext) SetRole(v DeviceRole) { +func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole) { o.Role = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetTenant() Tenant { +func (o *DeviceWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -292,7 +324,7 @@ func (o *DeviceWithConfigContext) GetTenant() Tenant { // 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 *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -308,11 +340,10 @@ func (o *DeviceWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *DeviceWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *DeviceWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *DeviceWithConfigContext) SetTenantNil() { o.Tenant.Set(nil) @@ -324,9 +355,9 @@ func (o *DeviceWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPlatform() Platform { +func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -335,7 +366,7 @@ func (o *DeviceWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform 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) GetPlatformOk() (*Platform, bool) { +func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -351,11 +382,10 @@ func (o *DeviceWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *DeviceWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *DeviceWithConfigContext) SetPlatformNil() { o.Platform.Set(nil) @@ -430,7 +460,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) @@ -442,9 +471,9 @@ func (o *DeviceWithConfigContext) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContext) GetSite() Site { +func (o *DeviceWithConfigContext) GetSite() BriefSite { if o == nil { - var ret Site + var ret BriefSite return ret } @@ -453,7 +482,7 @@ func (o *DeviceWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -461,14 +490,15 @@ func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContext) SetSite(v Site) { +func (o *DeviceWithConfigContext) SetSite(v BriefSite) { o.Site = v } + // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetLocation() Location { +func (o *DeviceWithConfigContext) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -477,7 +507,7 @@ func (o *DeviceWithConfigContext) GetLocation() Location { // GetLocationOk returns a tuple with the Location 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) GetLocationOk() (*Location, bool) { +func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -493,11 +523,10 @@ func (o *DeviceWithConfigContext) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *DeviceWithConfigContext) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *DeviceWithConfigContext) SetLocation(v BriefLocation) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *DeviceWithConfigContext) SetLocationNil() { o.Location.Set(nil) @@ -509,9 +538,9 @@ func (o *DeviceWithConfigContext) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetRack() Rack { +func (o *DeviceWithConfigContext) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -520,7 +549,7 @@ func (o *DeviceWithConfigContext) GetRack() Rack { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*Rack, bool) { +func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -536,11 +565,10 @@ func (o *DeviceWithConfigContext) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *DeviceWithConfigContext) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *DeviceWithConfigContext) SetRack(v BriefRack) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *DeviceWithConfigContext) SetRackNil() { o.Rack.Set(nil) @@ -583,7 +611,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) @@ -658,7 +685,6 @@ func (o *DeviceWithConfigContext) HasLatitude() bool { 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) @@ -701,7 +727,6 @@ func (o *DeviceWithConfigContext) HasLongitude() bool { 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) @@ -712,18 +737,16 @@ func (o *DeviceWithConfigContext) UnsetLongitude() { o.Longitude.Unset() } -// GetParentDevice returns the ParentDevice field value -// If the value is explicit nil, the zero value for NestedDevice will be returned +// GetParentDevice returns the ParentDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContext) GetParentDevice() NestedDevice { - if o == nil || o.ParentDevice.Get() == nil { + if o == nil || IsNil(o.ParentDevice.Get()) { var ret NestedDevice return ret } - return *o.ParentDevice.Get() } -// GetParentDeviceOk returns a tuple with the ParentDevice field value +// GetParentDeviceOk returns a tuple with the ParentDevice 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) GetParentDeviceOk() (*NestedDevice, bool) { @@ -733,10 +756,28 @@ func (o *DeviceWithConfigContext) GetParentDeviceOk() (*NestedDevice, bool) { return o.ParentDevice.Get(), o.ParentDevice.IsSet() } -// SetParentDevice sets field value +// HasParentDevice returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasParentDevice() bool { + if o != nil && o.ParentDevice.IsSet() { + return true + } + + return false +} + +// SetParentDevice gets a reference to the given NullableNestedDevice and assigns it to the ParentDevice field. func (o *DeviceWithConfigContext) SetParentDevice(v NestedDevice) { o.ParentDevice.Set(&v) } +// SetParentDeviceNil sets the value for ParentDevice to be an explicit nil +func (o *DeviceWithConfigContext) SetParentDeviceNil() { + o.ParentDevice.Set(nil) +} + +// UnsetParentDevice ensures that no value is present for ParentDevice, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetParentDevice() { + o.ParentDevice.Unset() +} // GetStatus returns the Status field value if set, zero value otherwise. func (o *DeviceWithConfigContext) GetStatus() DeviceStatus { @@ -802,36 +843,52 @@ func (o *DeviceWithConfigContext) SetAirflow(v DeviceAirflow) { o.Airflow = &v } -// GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { - if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress +// GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress { + if o == nil || IsNil(o.PrimaryIp.Get()) { + var ret BriefIPAddress return ret } - return *o.PrimaryIp.Get() } -// GetPrimaryIpOk returns a tuple with the PrimaryIp field value +// GetPrimaryIpOk returns a tuple with the PrimaryIp 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) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } return o.PrimaryIp.Get(), o.PrimaryIp.IsSet() } -// SetPrimaryIp sets field value -func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress) { +// HasPrimaryIp returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasPrimaryIp() bool { + if o != nil && o.PrimaryIp.IsSet() { + return true + } + + return false +} + +// SetPrimaryIp gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp field. +func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } +// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil +func (o *DeviceWithConfigContext) SetPrimaryIpNil() { + o.PrimaryIp.Set(nil) +} + +// UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetPrimaryIp() { + o.PrimaryIp.Unset() +} // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -840,7 +897,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -856,11 +913,10 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *DeviceWithConfigContext) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -872,9 +928,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -883,7 +939,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -899,11 +955,10 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *DeviceWithConfigContext) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -915,9 +970,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetOobIp() IPAddress { +func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -926,7 +981,7 @@ func (o *DeviceWithConfigContext) GetOobIp() IPAddress { // 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() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -942,11 +997,10 @@ func (o *DeviceWithConfigContext) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *DeviceWithConfigContext) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } - // SetOobIpNil sets the value for OobIp to be an explicit nil func (o *DeviceWithConfigContext) SetOobIpNil() { o.OobIp.Set(nil) @@ -958,9 +1012,9 @@ func (o *DeviceWithConfigContext) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetCluster() Cluster { +func (o *DeviceWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -969,7 +1023,7 @@ func (o *DeviceWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster 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) GetClusterOk() (*Cluster, bool) { +func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -985,11 +1039,10 @@ func (o *DeviceWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *DeviceWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *DeviceWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *DeviceWithConfigContext) SetClusterNil() { o.Cluster.Set(nil) @@ -1001,9 +1054,9 @@ func (o *DeviceWithConfigContext) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { +func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1012,7 +1065,7 @@ func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis 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) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1028,11 +1081,10 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *DeviceWithConfigContext) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -1075,7 +1127,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) @@ -1118,7 +1169,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) @@ -1194,9 +1244,9 @@ func (o *DeviceWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1205,7 +1255,7 @@ func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { // 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() (*ConfigTemplate, bool) { +func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1221,11 +1271,10 @@ func (o *DeviceWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *DeviceWithConfigContext) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -1236,18 +1285,16 @@ func (o *DeviceWithConfigContext) UnsetConfigTemplate() { o.ConfigTemplate.Unset() } -// GetConfigContext returns the ConfigContext field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetConfigContext returns the ConfigContext field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContext) GetConfigContext() interface{} { if o == nil { var ret interface{} return ret } - return o.ConfigContext } -// GetConfigContextOk returns a tuple with the ConfigContext field value +// GetConfigContextOk returns a tuple with the ConfigContext 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) GetConfigContextOk() (*interface{}, bool) { @@ -1257,7 +1304,16 @@ func (o *DeviceWithConfigContext) GetConfigContextOk() (*interface{}, bool) { return &o.ConfigContext, true } -// SetConfigContext sets field value +// HasConfigContext returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasConfigContext() bool { + if o != nil && !IsNil(o.ConfigContext) { + return true + } + + return false +} + +// SetConfigContext gets a reference to the given interface{} and assigns it to the ConfigContext field. func (o *DeviceWithConfigContext) SetConfigContext(v interface{}) { o.ConfigContext = v } @@ -1359,18 +1415,16 @@ func (o *DeviceWithConfigContext) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContext) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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) GetCreatedOk() (*time.Time, bool) { @@ -1380,23 +1434,39 @@ func (o *DeviceWithConfigContext) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *DeviceWithConfigContext) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *DeviceWithConfigContext) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContext) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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) GetLastUpdatedOk() (*time.Time, bool) { @@ -1406,10 +1476,28 @@ func (o *DeviceWithConfigContext) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *DeviceWithConfigContext) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *DeviceWithConfigContext) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetConsolePortCount returns the ConsolePortCount field value func (o *DeviceWithConfigContext) GetConsolePortCount() int32 { @@ -1435,6 +1523,7 @@ func (o *DeviceWithConfigContext) SetConsolePortCount(v int32) { o.ConsolePortCount = v } + // GetConsoleServerPortCount returns the ConsoleServerPortCount field value func (o *DeviceWithConfigContext) GetConsoleServerPortCount() int32 { if o == nil { @@ -1459,6 +1548,7 @@ func (o *DeviceWithConfigContext) SetConsoleServerPortCount(v int32) { o.ConsoleServerPortCount = v } + // GetPowerPortCount returns the PowerPortCount field value func (o *DeviceWithConfigContext) GetPowerPortCount() int32 { if o == nil { @@ -1483,6 +1573,7 @@ func (o *DeviceWithConfigContext) SetPowerPortCount(v int32) { o.PowerPortCount = v } + // GetPowerOutletCount returns the PowerOutletCount field value func (o *DeviceWithConfigContext) GetPowerOutletCount() int32 { if o == nil { @@ -1507,6 +1598,7 @@ func (o *DeviceWithConfigContext) SetPowerOutletCount(v int32) { o.PowerOutletCount = v } + // GetInterfaceCount returns the InterfaceCount field value func (o *DeviceWithConfigContext) GetInterfaceCount() int32 { if o == nil { @@ -1531,6 +1623,7 @@ func (o *DeviceWithConfigContext) SetInterfaceCount(v int32) { o.InterfaceCount = v } + // GetFrontPortCount returns the FrontPortCount field value func (o *DeviceWithConfigContext) GetFrontPortCount() int32 { if o == nil { @@ -1555,6 +1648,7 @@ func (o *DeviceWithConfigContext) SetFrontPortCount(v int32) { o.FrontPortCount = v } + // GetRearPortCount returns the RearPortCount field value func (o *DeviceWithConfigContext) GetRearPortCount() int32 { if o == nil { @@ -1579,6 +1673,7 @@ func (o *DeviceWithConfigContext) SetRearPortCount(v int32) { o.RearPortCount = v } + // GetDeviceBayCount returns the DeviceBayCount field value func (o *DeviceWithConfigContext) GetDeviceBayCount() int32 { if o == nil { @@ -1603,6 +1698,7 @@ func (o *DeviceWithConfigContext) SetDeviceBayCount(v int32) { o.DeviceBayCount = v } + // GetModuleBayCount returns the ModuleBayCount field value func (o *DeviceWithConfigContext) GetModuleBayCount() int32 { if o == nil { @@ -1627,6 +1723,7 @@ func (o *DeviceWithConfigContext) SetModuleBayCount(v int32) { o.ModuleBayCount = v } + // GetInventoryItemCount returns the InventoryItemCount field value func (o *DeviceWithConfigContext) GetInventoryItemCount() int32 { if o == nil { @@ -1651,8 +1748,9 @@ 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 } @@ -1663,6 +1761,9 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -1700,14 +1801,18 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { if o.Longitude.IsSet() { toSerialize["longitude"] = o.Longitude.Get() } - toSerialize["parent_device"] = o.ParentDevice.Get() + if o.ParentDevice.IsSet() { + toSerialize["parent_device"] = o.ParentDevice.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } if !IsNil(o.Airflow) { toSerialize["airflow"] = o.Airflow } - toSerialize["primary_ip"] = o.PrimaryIp.Get() + if o.PrimaryIp.IsSet() { + toSerialize["primary_ip"] = o.PrimaryIp.Get() + } if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } @@ -1750,8 +1855,12 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + 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 @@ -1781,11 +1890,6 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { "device_type", "role", "site", - "parent_device", - "primary_ip", - "config_context", - "created", - "last_updated", "console_port_count", "console_server_port_count", "power_port_count", @@ -1798,20 +1902,37 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { "inventory_item_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceWithConfigContext := _DeviceWithConfigContext{} err = json.Unmarshal(data, &varDeviceWithConfigContext) @@ -1827,6 +1948,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") @@ -1913,3 +2035,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 b259fc842e..eeb10872c4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,41 +20,41 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{} // DeviceWithConfigContextRequest Adds support for custom fields and tags. type DeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `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 SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFaceValue `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFaceValue `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"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,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"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -64,7 +64,7 @@ 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 DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest) *DeviceWithConfigContextRequest { +func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *DeviceWithConfigContextRequest { this := DeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -112,7 +112,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) @@ -124,9 +123,9 @@ func (o *DeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -135,7 +134,7 @@ func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -143,14 +142,15 @@ func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, } // SetDeviceType sets field value -func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } + // GetRole returns the Role field value -func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -159,7 +159,7 @@ func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -167,14 +167,15 @@ func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) } // SetRole sets field value -func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -183,7 +184,7 @@ func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { // 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 *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -199,11 +200,10 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *DeviceWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -215,9 +215,9 @@ func (o *DeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -226,7 +226,7 @@ func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform 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) GetPlatformOk() (*PlatformRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -242,11 +242,10 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *DeviceWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -321,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) @@ -333,9 +331,9 @@ func (o *DeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -344,7 +342,7 @@ func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -352,14 +350,15 @@ func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } + // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -368,7 +367,7 @@ func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location 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) GetLocationOk() (*LocationRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -384,11 +383,10 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *DeviceWithConfigContextRequest) SetLocationNil() { o.Location.Set(nil) @@ -400,9 +398,9 @@ func (o *DeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -411,7 +409,7 @@ func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*RackRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -427,11 +425,10 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *DeviceWithConfigContextRequest) SetRackNil() { o.Rack.Set(nil) @@ -474,7 +471,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) @@ -549,7 +545,6 @@ func (o *DeviceWithConfigContextRequest) HasLatitude() bool { 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) @@ -592,7 +587,6 @@ func (o *DeviceWithConfigContextRequest) HasLongitude() bool { 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) @@ -668,9 +662,9 @@ func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -679,7 +673,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -695,11 +689,10 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *DeviceWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -711,9 +704,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -722,7 +715,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -738,11 +731,10 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *DeviceWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -754,9 +746,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -765,7 +757,7 @@ func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // 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() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -781,11 +773,10 @@ func (o *DeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } - // SetOobIpNil sets the value for OobIp to be an explicit nil func (o *DeviceWithConfigContextRequest) SetOobIpNil() { o.OobIp.Set(nil) @@ -797,9 +788,9 @@ func (o *DeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -808,7 +799,7 @@ func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster 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) GetClusterOk() (*ClusterRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -824,11 +815,10 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *DeviceWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -840,9 +830,9 @@ func (o *DeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -851,7 +841,7 @@ func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisReque // GetVirtualChassisOk returns a tuple with the VirtualChassis 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) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -867,11 +857,10 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *DeviceWithConfigContextRequest) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -914,7 +903,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) @@ -957,7 +945,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) @@ -1033,9 +1020,9 @@ func (o *DeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1044,7 +1031,7 @@ func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateReque // 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() (*ConfigTemplateRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1060,11 +1047,10 @@ func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *DeviceWithConfigContextRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -1173,7 +1159,7 @@ func (o *DeviceWithConfigContextRequest) SetCustomFields(v map[string]interface{ } func (o DeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1281,20 +1267,37 @@ func (o *DeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err error) "site", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varDeviceWithConfigContextRequest := _DeviceWithConfigContextRequest{} err = json.Unmarshal(data, &varDeviceWithConfigContextRequest) @@ -1378,3 +1381,5 @@ func (v *NullableDeviceWithConfigContextRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_encryption.go b/model_encryption.go index 718a00acd8..656fe08b06 100644 --- a/model_encryption.go +++ b/model_encryption.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,9 +26,9 @@ const ( ENCRYPTION_AES_192_GCM Encryption = "aes-192-gcm" ENCRYPTION_AES_256_CBC Encryption = "aes-256-cbc" ENCRYPTION_AES_256_GCM Encryption = "aes-256-gcm" - ENCRYPTION__3DES_CBC Encryption = "3des-cbc" - ENCRYPTION_DES_CBC Encryption = "des-cbc" - ENCRYPTION_EMPTY Encryption = "" + ENCRYPTION__3DES_CBC Encryption = "3des-cbc" + ENCRYPTION_DES_CBC Encryption = "des-cbc" + ENCRYPTION_EMPTY Encryption = "" ) // All allowed values of Encryption enum @@ -122,3 +122,4 @@ func (v *NullableEncryption) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_end.go b/model_end.go index e5ba360cb8..28f9776f10 100644 --- a/model_end.go +++ b/model_end.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableEnd) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_end_1.go b/model_end_1.go index b71fc25b13..4d3886d926 100644 --- a/model_end_1.go +++ b/model_end_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableEnd1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_event.go b/model_event.go new file mode 100644 index 0000000000..8215ed3bec --- /dev/null +++ b/model_event.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// Event * `object_created` - Object created * `object_updated` - Object updated * `object_deleted` - Object deleted * `job_started` - Job started * `job_completed` - Job completed * `job_failed` - Job failed * `job_errored` - Job errored +type Event string + +// List of Event +const ( + EVENT_OBJECT_CREATED Event = "object_created" + EVENT_OBJECT_UPDATED Event = "object_updated" + EVENT_OBJECT_DELETED Event = "object_deleted" + EVENT_JOB_STARTED Event = "job_started" + EVENT_JOB_COMPLETED Event = "job_completed" + EVENT_JOB_FAILED Event = "job_failed" + EVENT_JOB_ERRORED Event = "job_errored" +) + +// All allowed values of Event enum +var AllowedEventEnumValues = []Event{ + "object_created", + "object_updated", + "object_deleted", + "job_started", + "job_completed", + "job_failed", + "job_errored", +} + +func (v *Event) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Event(value) + for _, existing := range AllowedEventEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Event", value) +} + +// NewEventFromValue returns a pointer to a valid Event +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEventFromValue(v string) (*Event, error) { + ev := Event(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Event: valid values are %v", v, AllowedEventEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Event) IsValid() bool { + for _, existing := range AllowedEventEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Event value +func (v Event) Ptr() *Event { + return &v +} + +type NullableEvent struct { + value *Event + isSet bool +} + +func (v NullableEvent) Get() *Event { + return v.value +} + +func (v *NullableEvent) Set(val *Event) { + v.value = val + v.isSet = true +} + +func (v NullableEvent) IsSet() bool { + return v.isSet +} + +func (v *NullableEvent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEvent(val *Event) *NullableEvent { + return &NullableEvent{value: val, isSet: true} +} + +func (v NullableEvent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEvent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_event_rule.go b/model_event_rule.go index b3f5d4e410..4824095729 100644 --- a/model_event_rule.go +++ b/model_event_rule.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the EventRule type satisfies the MappedNullable interface at compile time @@ -21,33 +21,26 @@ var _ MappedNullable = &EventRule{} // EventRule Adds support for custom fields and tags. type EventRule struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` ObjectTypes []string `json:"object_types"` - Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. - Conditions interface{} `json:"conditions,omitempty"` - ActionType EventRuleActionType `json:"action_type"` - ActionObjectType string `json:"action_object_type"` - ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` - ActionObject map[string]interface{} `json:"action_object"` - Description *string `json:"description,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Conditions interface{} `json:"conditions,omitempty"` + ActionType EventRuleActionType `json:"action_type"` + ActionObjectType string `json:"action_object_type"` + ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` + ActionObject map[string]interface{} `json:"action_object"` + Description *string `json:"description,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -57,18 +50,17 @@ type _EventRule EventRule // 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 NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { +func NewEventRule(id int32, url string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}) *EventRule { this := EventRule{} this.Id = id this.Url = url this.Display = display this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType this.ActionObject = actionObject - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -104,6 +96,7 @@ func (o *EventRule) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *EventRule) GetUrl() string { if o == nil { @@ -128,6 +121,39 @@ func (o *EventRule) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *EventRule) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRule) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *EventRule) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *EventRule) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *EventRule) GetDisplay() string { if o == nil { @@ -152,6 +178,7 @@ func (o *EventRule) SetDisplay(v string) { o.Display = v } + // GetObjectTypes returns the ObjectTypes field value func (o *EventRule) GetObjectTypes() []string { if o == nil { @@ -176,6 +203,7 @@ func (o *EventRule) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *EventRule) GetName() string { if o == nil { @@ -200,165 +228,6 @@ func (o *EventRule) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRule) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRule) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRule) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRule) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRule) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRule) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRule) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRule) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRule) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRule) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRule) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRule) GetEnabled() bool { @@ -392,6 +261,31 @@ func (o *EventRule) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRule) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetConditions() interface{} { if o == nil { @@ -449,6 +343,7 @@ func (o *EventRule) SetActionType(v EventRuleActionType) { o.ActionType = v } + // GetActionObjectType returns the ActionObjectType field value func (o *EventRule) GetActionObjectType() string { if o == nil { @@ -473,6 +368,7 @@ func (o *EventRule) SetActionObjectType(v string) { o.ActionObjectType = v } + // GetActionObjectId returns the ActionObjectId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetActionObjectId() int64 { if o == nil || IsNil(o.ActionObjectId.Get()) { @@ -505,7 +401,6 @@ func (o *EventRule) HasActionObjectId() bool { func (o *EventRule) SetActionObjectId(v int64) { o.ActionObjectId.Set(&v) } - // SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil func (o *EventRule) SetActionObjectIdNil() { o.ActionObjectId.Set(nil) @@ -540,6 +435,7 @@ func (o *EventRule) SetActionObject(v map[string]interface{}) { o.ActionObject = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *EventRule) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -636,18 +532,16 @@ func (o *EventRule) 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 +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *EventRule) GetCreatedOk() (*time.Time, bool) { @@ -657,23 +551,39 @@ func (o *EventRule) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *EventRule) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *EventRule) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *EventRule) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *EventRule) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *EventRule) GetLastUpdatedOk() (*time.Time, bool) { @@ -683,13 +593,31 @@ func (o *EventRule) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *EventRule) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *EventRule) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *EventRule) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *EventRule) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o EventRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -700,27 +628,16 @@ func (o EventRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -739,8 +656,12 @@ func (o EventRule) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -759,27 +680,43 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { "display", "object_types", "name", + "event_types", "action_type", "action_object_type", "action_object", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varEventRule := _EventRule{} err = json.Unmarshal(data, &varEventRule) @@ -795,15 +732,12 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") @@ -855,3 +789,5 @@ func (v *NullableEventRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go index 1c8cb0534a..b5a63a51e0 100644 --- a/model_event_rule_action_type.go +++ b/model_event_rule_action_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &EventRuleActionType{} // EventRuleActionType struct for EventRuleActionType type EventRuleActionType struct { - Value *EventRuleActionTypeValue `json:"value,omitempty"` - Label *EventRuleActionTypeLabel `json:"label,omitempty"` + Value *EventRuleActionTypeValue `json:"value,omitempty"` + Label *EventRuleActionTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *EventRuleActionType) SetLabel(v EventRuleActionTypeLabel) { } func (o EventRuleActionType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableEventRuleActionType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go index d58423d475..a8ed8b3649 100644 --- a/model_event_rule_action_type_label.go +++ b/model_event_rule_action_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,15 @@ type EventRuleActionTypeLabel string // List of EventRule_action_type_label const ( EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook" - EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" + EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" + EVENTRULEACTIONTYPELABEL_NOTIFICATION EventRuleActionTypeLabel = "Notification" ) // All allowed values of EventRuleActionTypeLabel enum var AllowedEventRuleActionTypeLabelEnumValues = []EventRuleActionTypeLabel{ "Webhook", "Script", + "Notification", } func (v *EventRuleActionTypeLabel) UnmarshalJSON(src []byte) error { @@ -108,3 +110,4 @@ func (v *NullableEventRuleActionTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go index 9c309b8d2b..753a7d0cf2 100644 --- a/model_event_rule_action_type_value.go +++ b/model_event_rule_action_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,19 +15,21 @@ import ( "fmt" ) -// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script +// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script * `notification` - Notification type EventRuleActionTypeValue string // List of EventRule_action_type_value const ( EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" - EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_NOTIFICATION EventRuleActionTypeValue = "notification" ) // All allowed values of EventRuleActionTypeValue enum var AllowedEventRuleActionTypeValueEnumValues = []EventRuleActionTypeValue{ "webhook", "script", + "notification", } func (v *EventRuleActionTypeValue) UnmarshalJSON(src []byte) error { @@ -108,3 +110,4 @@ func (v *NullableEventRuleActionTypeValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_event_rule_event_types_inner.go b/model_event_rule_event_types_inner.go new file mode 100644 index 0000000000..42501d5aea --- /dev/null +++ b/model_event_rule_event_types_inner.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// EventRuleEventTypesInner * `object_created` - Object created * `object_updated` - Object updated * `object_deleted` - Object deleted * `job_started` - Job started * `job_completed` - Job completed * `job_failed` - Job failed * `job_errored` - Job errored +type EventRuleEventTypesInner string + +// List of EventRule_event_types_inner +const ( + EVENTRULEEVENTTYPESINNER_OBJECT_CREATED EventRuleEventTypesInner = "object_created" + EVENTRULEEVENTTYPESINNER_OBJECT_UPDATED EventRuleEventTypesInner = "object_updated" + EVENTRULEEVENTTYPESINNER_OBJECT_DELETED EventRuleEventTypesInner = "object_deleted" + EVENTRULEEVENTTYPESINNER_JOB_STARTED EventRuleEventTypesInner = "job_started" + EVENTRULEEVENTTYPESINNER_JOB_COMPLETED EventRuleEventTypesInner = "job_completed" + EVENTRULEEVENTTYPESINNER_JOB_FAILED EventRuleEventTypesInner = "job_failed" + EVENTRULEEVENTTYPESINNER_JOB_ERRORED EventRuleEventTypesInner = "job_errored" +) + +// All allowed values of EventRuleEventTypesInner enum +var AllowedEventRuleEventTypesInnerEnumValues = []EventRuleEventTypesInner{ + "object_created", + "object_updated", + "object_deleted", + "job_started", + "job_completed", + "job_failed", + "job_errored", +} + +func (v *EventRuleEventTypesInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EventRuleEventTypesInner(value) + for _, existing := range AllowedEventRuleEventTypesInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EventRuleEventTypesInner", value) +} + +// NewEventRuleEventTypesInnerFromValue returns a pointer to a valid EventRuleEventTypesInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEventRuleEventTypesInnerFromValue(v string) (*EventRuleEventTypesInner, error) { + ev := EventRuleEventTypesInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EventRuleEventTypesInner: valid values are %v", v, AllowedEventRuleEventTypesInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EventRuleEventTypesInner) IsValid() bool { + for _, existing := range AllowedEventRuleEventTypesInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EventRule_event_types_inner value +func (v EventRuleEventTypesInner) Ptr() *EventRuleEventTypesInner { + return &v +} + +type NullableEventRuleEventTypesInner struct { + value *EventRuleEventTypesInner + isSet bool +} + +func (v NullableEventRuleEventTypesInner) Get() *EventRuleEventTypesInner { + return v.value +} + +func (v *NullableEventRuleEventTypesInner) Set(val *EventRuleEventTypesInner) { + v.value = val + v.isSet = true +} + +func (v NullableEventRuleEventTypesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableEventRuleEventTypesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventRuleEventTypesInner(val *EventRuleEventTypesInner) *NullableEventRuleEventTypesInner { + return &NullableEventRuleEventTypesInner{value: val, isSet: true} +} + +func (v NullableEventRuleEventTypesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventRuleEventTypesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_event_rule_request.go b/model_event_rule_request.go index e9a76def0f..e827ec030d 100644 --- a/model_event_rule_request.go +++ b/model_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,18 @@ var _ MappedNullable = &EventRuleRequest{} // EventRuleRequest Adds support for custom fields and tags. type EventRuleRequest struct { ObjectTypes []string `json:"object_types"` - Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. - Conditions interface{} `json:"conditions,omitempty"` - ActionType EventRuleActionTypeValue `json:"action_type"` - ActionObjectType string `json:"action_object_type"` - ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` - Description *string `json:"description,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Conditions interface{} `json:"conditions,omitempty"` + ActionType EventRuleActionTypeValue `json:"action_type"` + ActionObjectType string `json:"action_object_type"` + ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` + Description *string `json:"description,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,10 +42,11 @@ type _EventRuleRequest EventRuleRequest // 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 NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { +func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { this := EventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType return &this @@ -91,6 +84,7 @@ func (o *EventRuleRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *EventRuleRequest) GetName() string { if o == nil { @@ -115,165 +109,6 @@ func (o *EventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRuleRequest) GetEnabled() bool { @@ -307,6 +142,31 @@ func (o *EventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRuleRequest) GetConditions() interface{} { if o == nil { @@ -364,6 +224,7 @@ func (o *EventRuleRequest) SetActionType(v EventRuleActionTypeValue) { o.ActionType = v } + // GetActionObjectType returns the ActionObjectType field value func (o *EventRuleRequest) GetActionObjectType() string { if o == nil { @@ -388,6 +249,7 @@ func (o *EventRuleRequest) SetActionObjectType(v string) { o.ActionObjectType = v } + // GetActionObjectId returns the ActionObjectId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRuleRequest) GetActionObjectId() int64 { if o == nil || IsNil(o.ActionObjectId.Get()) { @@ -420,7 +282,6 @@ func (o *EventRuleRequest) HasActionObjectId() bool { func (o *EventRuleRequest) SetActionObjectId(v int64) { o.ActionObjectId.Set(&v) } - // SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil func (o *EventRuleRequest) SetActionObjectIdNil() { o.ActionObjectId.Set(nil) @@ -528,7 +389,7 @@ func (o *EventRuleRequest) SetTags(v []NestedTagRequest) { } func (o EventRuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -539,24 +400,10 @@ func (o EventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -589,24 +436,42 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_type", "action_object_type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varEventRuleRequest := _EventRuleRequest{} err = json.Unmarshal(data, &varEventRuleRequest) @@ -622,12 +487,8 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") @@ -676,3 +537,5 @@ func (v *NullableEventRuleRequest) 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 e034604cdc..9fa20731ac 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ExportTemplate type satisfies the MappedNullable interface at compile time @@ -21,12 +21,13 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` ObjectTypes []string `json:"object_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 @@ -34,14 +35,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 *DataSource `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -51,7 +52,7 @@ type _ExportTemplate ExportTemplate // 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 NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { +func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile) *ExportTemplate { this := ExportTemplate{} this.Id = id this.Url = url @@ -61,9 +62,6 @@ func NewExportTemplate(id int32, url string, display string, objectTypes []strin this.TemplateCode = templateCode this.DataPath = dataPath this.DataFile = dataFile - this.DataSynced = dataSynced - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -99,6 +97,7 @@ func (o *ExportTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ExportTemplate) GetUrl() string { if o == nil { @@ -123,6 +122,39 @@ func (o *ExportTemplate) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ExportTemplate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ExportTemplate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ExportTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ExportTemplate) GetDisplay() string { if o == nil { @@ -147,6 +179,7 @@ func (o *ExportTemplate) SetDisplay(v string) { o.Display = v } + // GetObjectTypes returns the ObjectTypes field value func (o *ExportTemplate) GetObjectTypes() []string { if o == nil { @@ -171,6 +204,7 @@ func (o *ExportTemplate) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *ExportTemplate) GetName() string { if o == nil { @@ -195,6 +229,7 @@ func (o *ExportTemplate) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ExportTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -251,6 +286,7 @@ func (o *ExportTemplate) SetTemplateCode(v string) { o.TemplateCode = v } + // GetMimeType returns the MimeType field value if set, zero value otherwise. func (o *ExportTemplate) GetMimeType() string { if o == nil || IsNil(o.MimeType) { @@ -348,9 +384,9 @@ func (o *ExportTemplate) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplate) GetDataSource() DataSource { +func (o *ExportTemplate) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -358,7 +394,7 @@ func (o *ExportTemplate) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool) { +func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -374,8 +410,8 @@ func (o *ExportTemplate) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ExportTemplate) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ExportTemplate) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -403,10 +439,11 @@ func (o *ExportTemplate) SetDataPath(v string) { o.DataPath = v } + // GetDataFile returns the DataFile field value -func (o *ExportTemplate) GetDataFile() DataFile { +func (o *ExportTemplate) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -415,7 +452,7 @@ func (o *ExportTemplate) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { +func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -423,22 +460,21 @@ func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ExportTemplate) SetDataFile(v DataFile) { +func (o *ExportTemplate) SetDataFile(v BriefDataFile) { o.DataFile = v } -// GetDataSynced returns the DataSynced field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetDataSynced returns the DataSynced field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ExportTemplate) GetDataSynced() time.Time { - if o == nil || o.DataSynced.Get() == nil { + if o == nil || IsNil(o.DataSynced.Get()) { var ret time.Time return ret } - return *o.DataSynced.Get() } -// GetDataSyncedOk returns a tuple with the DataSynced field value +// GetDataSyncedOk returns a tuple with the DataSynced 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 *ExportTemplate) GetDataSyncedOk() (*time.Time, bool) { @@ -448,23 +484,39 @@ func (o *ExportTemplate) GetDataSyncedOk() (*time.Time, bool) { return o.DataSynced.Get(), o.DataSynced.IsSet() } -// SetDataSynced sets field value +// HasDataSynced returns a boolean if a field has been set. +func (o *ExportTemplate) HasDataSynced() bool { + if o != nil && o.DataSynced.IsSet() { + return true + } + + return false +} + +// SetDataSynced gets a reference to the given NullableTime and assigns it to the DataSynced field. func (o *ExportTemplate) SetDataSynced(v time.Time) { o.DataSynced.Set(&v) } +// SetDataSyncedNil sets the value for DataSynced to be an explicit nil +func (o *ExportTemplate) SetDataSyncedNil() { + o.DataSynced.Set(nil) +} + +// UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil +func (o *ExportTemplate) UnsetDataSynced() { + o.DataSynced.Unset() +} -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ExportTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ExportTemplate) GetCreatedOk() (*time.Time, bool) { @@ -474,23 +526,39 @@ func (o *ExportTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ExportTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ExportTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ExportTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ExportTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ExportTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ExportTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -500,13 +568,31 @@ func (o *ExportTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ExportTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ExportTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ExportTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ExportTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ExportTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -517,6 +603,9 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -538,9 +627,15 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { } 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() + if o.DataSynced.IsSet() { + toSerialize["data_synced"] = o.DataSynced.Get() + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -562,25 +657,39 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { "template_code", "data_path", "data_file", - "data_synced", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varExportTemplate := _ExportTemplate{} err = json.Unmarshal(data, &varExportTemplate) @@ -596,6 +705,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") @@ -651,3 +761,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 16e3ea6a5c..3828e00b02 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,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 { ObjectTypes []string `json:"object_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 @@ -30,8 +30,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 *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,6 +81,7 @@ func (o *ExportTemplateRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *ExportTemplateRequest) GetName() string { if o == nil { @@ -105,6 +106,7 @@ func (o *ExportTemplateRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ExportTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -161,6 +163,7 @@ func (o *ExportTemplateRequest) SetTemplateCode(v string) { o.TemplateCode = v } + // GetMimeType returns the MimeType field value if set, zero value otherwise. func (o *ExportTemplateRequest) GetMimeType() string { if o == nil || IsNil(o.MimeType) { @@ -258,9 +261,9 @@ func (o *ExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -268,7 +271,7 @@ func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -284,13 +287,13 @@ func (o *ExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } func (o ExportTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -335,20 +338,37 @@ func (o *ExportTemplateRequest) UnmarshalJSON(data []byte) (err error) { "template_code", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varExportTemplateRequest := _ExportTemplateRequest{} err = json.Unmarshal(data, &varExportTemplateRequest) @@ -411,3 +431,5 @@ func (v *NullableExportTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go index 549d77f709..c236be92ef 100644 --- a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go +++ b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type ExtrasCustomFieldChoiceSetsListBaseChoicesParameter string // List of extras_custom_field_choice_sets_list_base_choices_parameter const ( - EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_IATA ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "IATA" - EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_ISO_3166 ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "ISO_3166" + EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_IATA ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "IATA" + EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_ISO_3166 ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "ISO_3166" EXTRASCUSTOMFIELDCHOICESETSLISTBASECHOICESPARAMETER_UN_LOCODE ExtrasCustomFieldChoiceSetsListBaseChoicesParameter = "UN_LOCODE" ) @@ -110,3 +110,4 @@ func (v *NullableExtrasCustomFieldChoiceSetsListBaseChoicesParameter) UnmarshalJ v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_extras_custom_fields_list_filter_logic_parameter.go b/model_extras_custom_fields_list_filter_logic_parameter.go index e06b579501..edc9d3f1a6 100644 --- a/model_extras_custom_fields_list_filter_logic_parameter.go +++ b/model_extras_custom_fields_list_filter_logic_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type ExtrasCustomFieldsListFilterLogicParameter string // List of extras_custom_fields_list_filter_logic_parameter const ( EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_DISABLED ExtrasCustomFieldsListFilterLogicParameter = "disabled" - EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_EXACT ExtrasCustomFieldsListFilterLogicParameter = "exact" - EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_LOOSE ExtrasCustomFieldsListFilterLogicParameter = "loose" + EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_EXACT ExtrasCustomFieldsListFilterLogicParameter = "exact" + EXTRASCUSTOMFIELDSLISTFILTERLOGICPARAMETER_LOOSE ExtrasCustomFieldsListFilterLogicParameter = "loose" ) // All allowed values of ExtrasCustomFieldsListFilterLogicParameter enum @@ -110,3 +110,4 @@ func (v *NullableExtrasCustomFieldsListFilterLogicParameter) UnmarshalJSON(src [ v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_extras_custom_fields_list_ui_editable_parameter.go b/model_extras_custom_fields_list_ui_editable_parameter.go index 507235fe93..1ebdee448b 100644 --- a/model_extras_custom_fields_list_ui_editable_parameter.go +++ b/model_extras_custom_fields_list_ui_editable_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type ExtrasCustomFieldsListUiEditableParameter string // List of extras_custom_fields_list_ui_editable_parameter const ( EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_HIDDEN ExtrasCustomFieldsListUiEditableParameter = "hidden" - EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_NO ExtrasCustomFieldsListUiEditableParameter = "no" - EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_YES ExtrasCustomFieldsListUiEditableParameter = "yes" + EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_NO ExtrasCustomFieldsListUiEditableParameter = "no" + EXTRASCUSTOMFIELDSLISTUIEDITABLEPARAMETER_YES ExtrasCustomFieldsListUiEditableParameter = "yes" ) // All allowed values of ExtrasCustomFieldsListUiEditableParameter enum @@ -110,3 +110,4 @@ func (v *NullableExtrasCustomFieldsListUiEditableParameter) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_extras_custom_fields_list_ui_visible_parameter.go b/model_extras_custom_fields_list_ui_visible_parameter.go index 47e4aaa2bd..2b83e52178 100644 --- a/model_extras_custom_fields_list_ui_visible_parameter.go +++ b/model_extras_custom_fields_list_ui_visible_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullableExtrasCustomFieldsListUiVisibleParameter) UnmarshalJSON(src []b v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_extras_custom_links_list_button_class_parameter.go b/model_extras_custom_links_list_button_class_parameter.go index db3b288e92..03899a05b8 100644 --- a/model_extras_custom_links_list_button_class_parameter.go +++ b/model_extras_custom_links_list_button_class_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ type ExtrasCustomLinksListButtonClassParameter string // List of extras_custom_links_list_button_class_parameter const ( - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_OUTLINE_DARK ExtrasCustomLinksListButtonClassParameter = "outline-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_DEFAULT ExtrasCustomLinksListButtonClassParameter = "default" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" ) // All allowed values of ExtrasCustomLinksListButtonClassParameter enum @@ -42,12 +42,12 @@ var AllowedExtrasCustomLinksListButtonClassParameterEnumValues = []ExtrasCustomL "black", "blue", "cyan", + "default", "ghost-dark", "gray", "green", "indigo", "orange", - "outline-dark", "pink", "purple", "red", @@ -134,3 +134,4 @@ func (v *NullableExtrasCustomLinksListButtonClassParameter) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_extras_object_changes_list_action_parameter.go b/model_extras_object_changes_list_action_parameter.go deleted file mode 100644 index bafdc5ac8e..0000000000 --- a/model_extras_object_changes_list_action_parameter.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// ExtrasObjectChangesListActionParameter the model 'ExtrasObjectChangesListActionParameter' -type ExtrasObjectChangesListActionParameter string - -// List of extras_object_changes_list_action_parameter -const ( - EXTRASOBJECTCHANGESLISTACTIONPARAMETER_CREATE ExtrasObjectChangesListActionParameter = "create" - EXTRASOBJECTCHANGESLISTACTIONPARAMETER_DELETE ExtrasObjectChangesListActionParameter = "delete" - EXTRASOBJECTCHANGESLISTACTIONPARAMETER_UPDATE ExtrasObjectChangesListActionParameter = "update" -) - -// All allowed values of ExtrasObjectChangesListActionParameter enum -var AllowedExtrasObjectChangesListActionParameterEnumValues = []ExtrasObjectChangesListActionParameter{ - "create", - "delete", - "update", -} - -func (v *ExtrasObjectChangesListActionParameter) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ExtrasObjectChangesListActionParameter(value) - for _, existing := range AllowedExtrasObjectChangesListActionParameterEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ExtrasObjectChangesListActionParameter", value) -} - -// NewExtrasObjectChangesListActionParameterFromValue returns a pointer to a valid ExtrasObjectChangesListActionParameter -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewExtrasObjectChangesListActionParameterFromValue(v string) (*ExtrasObjectChangesListActionParameter, error) { - ev := ExtrasObjectChangesListActionParameter(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ExtrasObjectChangesListActionParameter: valid values are %v", v, AllowedExtrasObjectChangesListActionParameterEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ExtrasObjectChangesListActionParameter) IsValid() bool { - for _, existing := range AllowedExtrasObjectChangesListActionParameterEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to extras_object_changes_list_action_parameter value -func (v ExtrasObjectChangesListActionParameter) Ptr() *ExtrasObjectChangesListActionParameter { - return &v -} - -type NullableExtrasObjectChangesListActionParameter struct { - value *ExtrasObjectChangesListActionParameter - isSet bool -} - -func (v NullableExtrasObjectChangesListActionParameter) Get() *ExtrasObjectChangesListActionParameter { - return v.value -} - -func (v *NullableExtrasObjectChangesListActionParameter) Set(val *ExtrasObjectChangesListActionParameter) { - v.value = val - v.isSet = true -} - -func (v NullableExtrasObjectChangesListActionParameter) IsSet() bool { - return v.isSet -} - -func (v *NullableExtrasObjectChangesListActionParameter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExtrasObjectChangesListActionParameter(val *ExtrasObjectChangesListActionParameter) *NullableExtrasObjectChangesListActionParameter { - return &NullableExtrasObjectChangesListActionParameter{value: val, isSet: true} -} - -func (v NullableExtrasObjectChangesListActionParameter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExtrasObjectChangesListActionParameter) 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 edddea0c1c..f2289bb81a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,22 @@ var _ MappedNullable = &FHRPGroup{} // FHRPGroup Adds support for custom fields and tags. type FHRPGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Name *string `json:"name,omitempty"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType NullableAuthenticationType `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + IpAddresses []BriefIPAddress `json:"ip_addresses"` AdditionalProperties map[string]interface{} } @@ -35,13 +46,14 @@ type _FHRPGroup FHRPGroup // 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 NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *FHRPGroup { +func NewFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32, ipAddresses []BriefIPAddress) *FHRPGroup { this := FHRPGroup{} this.Id = id this.Url = url this.Display = display this.Protocol = protocol this.GroupId = groupId + this.IpAddresses = ipAddresses return &this } @@ -77,6 +89,39 @@ func (o *FHRPGroup) SetId(v int32) { o.Id = v } + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroup) 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 *FHRPGroup) 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 *FHRPGroup) 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 *FHRPGroup) SetName(v string) { + o.Name = &v +} + // GetUrl returns the Url field value func (o *FHRPGroup) GetUrl() string { if o == nil { @@ -101,6 +146,39 @@ func (o *FHRPGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *FHRPGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *FHRPGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *FHRPGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *FHRPGroup) GetDisplay() string { if o == nil { @@ -125,10 +203,11 @@ func (o *FHRPGroup) SetDisplay(v string) { o.Display = v } + // GetProtocol returns the Protocol field value -func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -137,7 +216,7 @@ func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -145,10 +224,11 @@ func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } + // GetGroupId returns the GroupId field value func (o *FHRPGroup) GetGroupId() int32 { if o == nil { @@ -173,6 +253,81 @@ func (o *FHRPGroup) SetGroupId(v int32) { o.GroupId = v } + +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *FHRPGroup) GetAuthType() AuthenticationType { + if o == nil || IsNil(o.AuthType.Get()) { + var ret AuthenticationType + return ret + } + return *o.AuthType.Get() +} + +// GetAuthTypeOk returns a tuple with the AuthType 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 *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool) { + if o == nil { + return nil, false + } + return o.AuthType.Get(), o.AuthType.IsSet() +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthType() bool { + if o != nil && o.AuthType.IsSet() { + return true + } + + return false +} + +// SetAuthType gets a reference to the given NullableAuthenticationType and assigns it to the AuthType field. +func (o *FHRPGroup) SetAuthType(v AuthenticationType) { + o.AuthType.Set(&v) +} +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *FHRPGroup) SetAuthTypeNil() { + o.AuthType.Set(nil) +} + +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *FHRPGroup) UnsetAuthType() { + o.AuthType.Unset() +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroup) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroup) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,8 +360,213 @@ func (o *FHRPGroup) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroup) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroup) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroup) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroup) 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 *FHRPGroup) 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 *FHRPGroup) 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 *FHRPGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroup) 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 *FHRPGroup) 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 *FHRPGroup) 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 *FHRPGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *FHRPGroup) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *FHRPGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *FHRPGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *FHRPGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *FHRPGroup) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *FHRPGroup) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *FHRPGroup) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *FHRPGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *FHRPGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *FHRPGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *FHRPGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetIpAddresses returns the IpAddresses field value +func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress { + if o == nil { + var ret []BriefIPAddress + return ret + } + + return o.IpAddresses +} + +// GetIpAddressesOk returns a tuple with the IpAddresses field value +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetIpAddressesOk() ([]BriefIPAddress, bool) { + if o == nil { + return nil, false + } + return o.IpAddresses, true +} + +// SetIpAddresses sets field value +func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress) { + o.IpAddresses = v +} + + func (o FHRPGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -216,13 +576,41 @@ func (o FHRPGroup) MarshalJSON() ([]byte, error) { func (o FHRPGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if o.AuthType.IsSet() { + toSerialize["auth_type"] = o.AuthType.Get() + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + toSerialize["ip_addresses"] = o.IpAddresses for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,22 +629,40 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { "display", "protocol", "group_id", + "ip_addresses", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFHRPGroup := _FHRPGroup{} err = json.Unmarshal(data, &varFHRPGroup) @@ -271,11 +677,21 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") + delete(additionalProperties, "name") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ip_addresses") o.AdditionalProperties = additionalProperties } @@ -317,3 +733,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 d81aefa155..b11bc7d2be 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the FHRPGroupAssignment type satisfies the MappedNullable interface at compile time @@ -21,16 +21,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 FHRPGroup `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Interface 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 BriefFHRPGroup `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Interface interface{} `json:"interface,omitempty"` + Priority int32 `json:"priority"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FHRPGroupAssignment FHRPGroupAssignment // 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 NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { +func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignment { this := FHRPGroupAssignment{} this.Id = id this.Url = url @@ -48,10 +48,7 @@ func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGrou this.Group = group this.InterfaceType = interfaceType this.InterfaceId = interfaceId - this.Interface = interface_ this.Priority = priority - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -87,6 +84,7 @@ func (o *FHRPGroupAssignment) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *FHRPGroupAssignment) GetUrl() string { if o == nil { @@ -111,6 +109,7 @@ func (o *FHRPGroupAssignment) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *FHRPGroupAssignment) GetDisplay() string { if o == nil { @@ -135,10 +134,11 @@ func (o *FHRPGroupAssignment) SetDisplay(v string) { o.Display = v } + // GetGroup returns the Group field value -func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { +func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup { if o == nil { - var ret FHRPGroup + var ret BriefFHRPGroup return ret } @@ -147,7 +147,7 @@ func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { +func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool) { if o == nil { return nil, false } @@ -155,10 +155,11 @@ func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup) { +func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup) { o.Group = v } + // GetInterfaceType returns the InterfaceType field value func (o *FHRPGroupAssignment) GetInterfaceType() string { if o == nil { @@ -183,6 +184,7 @@ func (o *FHRPGroupAssignment) SetInterfaceType(v string) { o.InterfaceType = v } + // GetInterfaceId returns the InterfaceId field value func (o *FHRPGroupAssignment) GetInterfaceId() int64 { if o == nil { @@ -207,18 +209,17 @@ func (o *FHRPGroupAssignment) SetInterfaceId(v int64) { o.InterfaceId = v } -// GetInterface returns the Interface field value -// If the value is explicit nil, the zero value for interface{} will be returned + +// GetInterface returns the Interface field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FHRPGroupAssignment) GetInterface() interface{} { if o == nil { var ret interface{} return ret } - return o.Interface } -// GetInterfaceOk returns a tuple with the Interface field value +// GetInterfaceOk returns a tuple with the Interface 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 *FHRPGroupAssignment) GetInterfaceOk() (*interface{}, bool) { @@ -228,7 +229,16 @@ func (o *FHRPGroupAssignment) GetInterfaceOk() (*interface{}, bool) { return &o.Interface, true } -// SetInterface sets field value +// HasInterface returns a boolean if a field has been set. +func (o *FHRPGroupAssignment) HasInterface() bool { + if o != nil && !IsNil(o.Interface) { + return true + } + + return false +} + +// SetInterface gets a reference to the given interface{} and assigns it to the Interface field. func (o *FHRPGroupAssignment) SetInterface(v interface{}) { o.Interface = v } @@ -257,18 +267,17 @@ func (o *FHRPGroupAssignment) SetPriority(v int32) { o.Priority = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FHRPGroupAssignment) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *FHRPGroupAssignment) GetCreatedOk() (*time.Time, bool) { @@ -278,23 +287,39 @@ func (o *FHRPGroupAssignment) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *FHRPGroupAssignment) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *FHRPGroupAssignment) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *FHRPGroupAssignment) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *FHRPGroupAssignment) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FHRPGroupAssignment) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *FHRPGroupAssignment) GetLastUpdatedOk() (*time.Time, bool) { @@ -304,13 +329,31 @@ func (o *FHRPGroupAssignment) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *FHRPGroupAssignment) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *FHRPGroupAssignment) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *FHRPGroupAssignment) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *FHRPGroupAssignment) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o FHRPGroupAssignment) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -329,8 +372,12 @@ func (o FHRPGroupAssignment) ToMap() (map[string]interface{}, error) { toSerialize["interface"] = o.Interface } toSerialize["priority"] = o.Priority - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -350,26 +397,40 @@ func (o *FHRPGroupAssignment) UnmarshalJSON(data []byte) (err error) { "group", "interface_type", "interface_id", - "interface", "priority", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFHRPGroupAssignment := _FHRPGroupAssignment{} err = json.Unmarshal(data, &varFHRPGroupAssignment) @@ -434,3 +495,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 fda4826a17..21804bd956 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &FHRPGroupAssignmentRequest{} // FHRPGroupAssignmentRequest Adds support for custom fields and tags. type FHRPGroupAssignmentRequest struct { - Group FHRPGroupRequest `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Priority int32 `json:"priority"` + Group BriefFHRPGroupRequest `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Priority int32 `json:"priority"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _FHRPGroupAssignmentRequest FHRPGroupAssignmentRequest // 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 NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { +func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { this := FHRPGroupAssignmentRequest{} this.Group = group this.InterfaceType = interfaceType @@ -51,9 +51,9 @@ func NewFHRPGroupAssignmentRequestWithDefaults() *FHRPGroupAssignmentRequest { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } @@ -62,7 +62,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil { return nil, false } @@ -70,10 +70,11 @@ func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = v } + // GetInterfaceType returns the InterfaceType field value func (o *FHRPGroupAssignmentRequest) GetInterfaceType() string { if o == nil { @@ -98,6 +99,7 @@ func (o *FHRPGroupAssignmentRequest) SetInterfaceType(v string) { o.InterfaceType = v } + // GetInterfaceId returns the InterfaceId field value func (o *FHRPGroupAssignmentRequest) GetInterfaceId() int64 { if o == nil { @@ -122,6 +124,7 @@ func (o *FHRPGroupAssignmentRequest) SetInterfaceId(v int64) { o.InterfaceId = v } + // GetPriority returns the Priority field value func (o *FHRPGroupAssignmentRequest) GetPriority() int32 { if o == nil { @@ -146,8 +149,9 @@ func (o *FHRPGroupAssignmentRequest) SetPriority(v int32) { o.Priority = v } + func (o FHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -179,20 +183,37 @@ func (o *FHRPGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { "priority", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFHRPGroupAssignmentRequest := _FHRPGroupAssignmentRequest{} err = json.Unmarshal(data, &varFHRPGroupAssignmentRequest) @@ -251,3 +272,5 @@ func (v *NullableFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_fhrp_group_protocol.go b/model_fhrp_group_protocol.go deleted file mode 100644 index 003e74a846..0000000000 --- a/model_fhrp_group_protocol.go +++ /dev/null @@ -1,120 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// FHRPGroupProtocol * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other -type FHRPGroupProtocol string - -// List of FHRPGroup_protocol -const ( - FHRPGROUPPROTOCOL_VRRP2 FHRPGroupProtocol = "vrrp2" - FHRPGROUPPROTOCOL_VRRP3 FHRPGroupProtocol = "vrrp3" - FHRPGROUPPROTOCOL_CARP FHRPGroupProtocol = "carp" - FHRPGROUPPROTOCOL_CLUSTERXL FHRPGroupProtocol = "clusterxl" - FHRPGROUPPROTOCOL_HSRP FHRPGroupProtocol = "hsrp" - FHRPGROUPPROTOCOL_GLBP FHRPGroupProtocol = "glbp" - FHRPGROUPPROTOCOL_OTHER FHRPGroupProtocol = "other" -) - -// All allowed values of FHRPGroupProtocol enum -var AllowedFHRPGroupProtocolEnumValues = []FHRPGroupProtocol{ - "vrrp2", - "vrrp3", - "carp", - "clusterxl", - "hsrp", - "glbp", - "other", -} - -func (v *FHRPGroupProtocol) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := FHRPGroupProtocol(value) - for _, existing := range AllowedFHRPGroupProtocolEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid FHRPGroupProtocol", value) -} - -// NewFHRPGroupProtocolFromValue returns a pointer to a valid FHRPGroupProtocol -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewFHRPGroupProtocolFromValue(v string) (*FHRPGroupProtocol, error) { - ev := FHRPGroupProtocol(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for FHRPGroupProtocol: valid values are %v", v, AllowedFHRPGroupProtocolEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v FHRPGroupProtocol) IsValid() bool { - for _, existing := range AllowedFHRPGroupProtocolEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to FHRPGroup_protocol value -func (v FHRPGroupProtocol) Ptr() *FHRPGroupProtocol { - return &v -} - -type NullableFHRPGroupProtocol struct { - value *FHRPGroupProtocol - isSet bool -} - -func (v NullableFHRPGroupProtocol) Get() *FHRPGroupProtocol { - return v.value -} - -func (v *NullableFHRPGroupProtocol) Set(val *FHRPGroupProtocol) { - v.value = val - v.isSet = true -} - -func (v NullableFHRPGroupProtocol) IsSet() bool { - return v.isSet -} - -func (v *NullableFHRPGroupProtocol) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFHRPGroupProtocol(val *FHRPGroupProtocol) *NullableFHRPGroupProtocol { - return &NullableFHRPGroupProtocol{value: val, isSet: true} -} - -func (v NullableFHRPGroupProtocol) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFHRPGroupProtocol) 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 a3fbe25685..ae045eb6e6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,15 @@ var _ MappedNullable = &FHRPGroupRequest{} // FHRPGroupRequest Adds support for custom fields and tags. type FHRPGroupRequest struct { - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType NullableAuthenticationType `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{} } @@ -32,7 +38,7 @@ type _FHRPGroupRequest FHRPGroupRequest // 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 NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *FHRPGroupRequest { +func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *FHRPGroupRequest { this := FHRPGroupRequest{} this.Protocol = protocol this.GroupId = groupId @@ -47,10 +53,42 @@ func NewFHRPGroupRequestWithDefaults() *FHRPGroupRequest { return &this } +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroupRequest) 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 *FHRPGroupRequest) 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 *FHRPGroupRequest) 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 *FHRPGroupRequest) SetName(v string) { + o.Name = &v +} + // GetProtocol returns the Protocol field value -func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -59,7 +97,7 @@ func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -67,10 +105,11 @@ func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } + // GetGroupId returns the GroupId field value func (o *FHRPGroupRequest) GetGroupId() int32 { if o == nil { @@ -95,6 +134,81 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) { o.GroupId = v } + +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *FHRPGroupRequest) GetAuthType() AuthenticationType { + if o == nil || IsNil(o.AuthType.Get()) { + var ret AuthenticationType + return ret + } + return *o.AuthType.Get() +} + +// GetAuthTypeOk returns a tuple with the AuthType 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 *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) { + if o == nil { + return nil, false + } + return o.AuthType.Get(), o.AuthType.IsSet() +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthType() bool { + if o != nil && o.AuthType.IsSet() { + return true + } + + return false +} + +// SetAuthType gets a reference to the given NullableAuthenticationType and assigns it to the AuthType field. +func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType) { + o.AuthType.Set(&v) +} +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *FHRPGroupRequest) SetAuthTypeNil() { + o.AuthType.Set(nil) +} + +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *FHRPGroupRequest) UnsetAuthType() { + o.AuthType.Unset() +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroupRequest) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +241,104 @@ func (o *FHRPGroupRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroupRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroupRequest) 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 *FHRPGroupRequest) 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 *FHRPGroupRequest) 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 *FHRPGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroupRequest) 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 *FHRPGroupRequest) 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 *FHRPGroupRequest) 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 *FHRPGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -137,11 +347,29 @@ func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { func (o FHRPGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if o.AuthType.IsSet() { + toSerialize["auth_type"] = o.AuthType.Get() + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +387,37 @@ func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { "group_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFHRPGroupRequest := _FHRPGroupRequest{} err = json.Unmarshal(data, &varFHRPGroupRequest) @@ -186,9 +431,15 @@ func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +481,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 14255269db..b69cc5d37a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the FrontPort type satisfies the MappedNullable interface at compile time @@ -21,32 +21,33 @@ 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 Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `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" validate:"regexp=^[0-9a-f]{6}$"` 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 NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + 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 NullableString `json:"link_peers_type,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -56,7 +57,7 @@ type _FrontPort FrontPort // 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 NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { +func NewFrontPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cableEnd string, linkPeers []interface{}, occupied bool) *FrontPort { this := FrontPort{} this.Id = id this.Url = url @@ -65,14 +66,8 @@ func NewFrontPort(id int32, url string, display string, device Device, name stri this.Name = name this.Type = type_ this.RearPort = rearPort - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition - this.Cable = cable this.CableEnd = cableEnd this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -82,8 +77,6 @@ func NewFrontPort(id int32, url string, display string, device Device, name stri // but it doesn't guarantee that properties required by API are set func NewFrontPortWithDefaults() *FrontPort { this := FrontPort{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -111,6 +104,7 @@ func (o *FrontPort) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *FrontPort) GetUrl() string { if o == nil { @@ -135,6 +129,39 @@ func (o *FrontPort) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *FrontPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrontPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *FrontPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *FrontPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *FrontPort) GetDisplay() string { if o == nil { @@ -159,10 +186,11 @@ func (o *FrontPort) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *FrontPort) GetDevice() Device { +func (o *FrontPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -171,7 +199,7 @@ func (o *FrontPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPort) GetDeviceOk() (*Device, bool) { +func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -179,14 +207,15 @@ func (o *FrontPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *FrontPort) SetDevice(v Device) { +func (o *FrontPort) SetDevice(v BriefDevice) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPort) GetModule() Module { +func (o *FrontPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -195,7 +224,7 @@ func (o *FrontPort) GetModule() Module { // GetModuleOk returns a tuple with the Module 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 *FrontPort) GetModuleOk() (*Module, bool) { +func (o *FrontPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -211,11 +240,10 @@ func (o *FrontPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *FrontPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *FrontPort) SetModule(v BriefModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *FrontPort) SetModuleNil() { o.Module.Set(nil) @@ -250,6 +278,7 @@ func (o *FrontPort) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *FrontPort) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -306,6 +335,7 @@ func (o *FrontPort) SetType(v FrontPortType) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *FrontPort) GetColor() string { if o == nil || IsNil(o.Color) { @@ -362,6 +392,7 @@ func (o *FrontPort) SetRearPort(v FrontPortRearPort) { o.RearPort = v } + // GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise. func (o *FrontPort) GetRearPortPosition() int32 { if o == nil || IsNil(o.RearPortPosition) { @@ -458,31 +489,47 @@ func (o *FrontPort) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *FrontPort) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *FrontPort) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *FrontPort) GetCableOk() (*Cable, bool) { +func (o *FrontPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *FrontPort) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *FrontPort) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *FrontPort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *FrontPort) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *FrontPort) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *FrontPort) GetCableEnd() string { @@ -508,6 +555,7 @@ func (o *FrontPort) SetCableEnd(v string) { o.CableEnd = v } + // GetLinkPeers returns the LinkPeers field value func (o *FrontPort) GetLinkPeers() []interface{} { if o == nil { @@ -532,28 +580,47 @@ func (o *FrontPort) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FrontPort) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *FrontPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } -// SetLinkPeersType sets field value +// HasLinkPeersType returns a boolean if a field has been set. +func (o *FrontPort) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false +} + +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *FrontPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *FrontPort) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) +} + +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *FrontPort) UnsetLinkPeersType() { + o.LinkPeersType.Unset() } // GetTags returns the Tags field value if set, zero value otherwise. @@ -620,18 +687,16 @@ func (o *FrontPort) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FrontPort) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *FrontPort) GetCreatedOk() (*time.Time, bool) { @@ -641,23 +706,39 @@ func (o *FrontPort) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *FrontPort) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *FrontPort) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *FrontPort) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *FrontPort) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FrontPort) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *FrontPort) GetLastUpdatedOk() (*time.Time, bool) { @@ -667,10 +748,28 @@ func (o *FrontPort) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *FrontPort) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *FrontPort) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *FrontPort) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *FrontPort) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *FrontPort) GetOccupied() bool { @@ -696,8 +795,9 @@ func (o *FrontPort) SetOccupied(v bool) { o.Occupied = v } + func (o FrontPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -708,6 +808,9 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -731,18 +834,26 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -764,29 +875,42 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { "name", "type", "rear_port", - "cable", "cable_end", "link_peers", - "link_peers_type", - "created", - "last_updated", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFrontPort := _FrontPort{} err = json.Unmarshal(data, &varFrontPort) @@ -802,6 +926,7 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") @@ -863,3 +988,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 bfddbbc627..714cc40237 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,14 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` 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{} } @@ -77,6 +78,7 @@ func (o *FrontPortRearPort) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *FrontPortRearPort) GetUrl() string { if o == nil { @@ -101,6 +103,39 @@ func (o *FrontPortRearPort) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *FrontPortRearPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *FrontPortRearPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *FrontPortRearPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *FrontPortRearPort) GetDisplay() string { if o == nil { @@ -125,6 +160,7 @@ func (o *FrontPortRearPort) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *FrontPortRearPort) GetName() string { if o == nil { @@ -149,6 +185,7 @@ func (o *FrontPortRearPort) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *FrontPortRearPort) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -214,7 +251,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 } @@ -225,6 +262,9 @@ func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -252,20 +292,37 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFrontPortRearPort := _FrontPortRearPort{} err = json.Unmarshal(data, &varFrontPortRearPort) @@ -281,6 +338,7 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "label") @@ -326,3 +384,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 efa9119db0..b233a705d4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,8 +22,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{} } @@ -71,6 +71,7 @@ func (o *FrontPortRearPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *FrontPortRearPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -136,7 +137,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 } @@ -168,20 +169,37 @@ func (o *FrontPortRearPortRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFrontPortRearPortRequest := _FrontPortRearPortRequest{} err = json.Unmarshal(data, &varFrontPortRearPortRequest) @@ -239,3 +257,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 b3cc287bbe..3c1281857b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &FrontPortRequest{} // FrontPortRequest Adds support for custom fields and tags. type FrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` 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{} } @@ -44,14 +44,12 @@ type _FrontPortRequest FrontPortRequest // 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 NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { +func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { this := FrontPortRequest{} this.Device = device this.Name = name this.Type = type_ this.RearPort = rearPort - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -60,15 +58,13 @@ func NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeV // but it doesn't guarantee that properties required by API are set func NewFrontPortRequestWithDefaults() *FrontPortRequest { this := FrontPortRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } // GetDevice returns the Device field value -func (o *FrontPortRequest) GetDevice() DeviceRequest { +func (o *FrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +73,7 @@ func (o *FrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +81,15 @@ func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *FrontPortRequest) SetDevice(v DeviceRequest) { +func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortRequest) GetModule() ModuleRequest { +func (o *FrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +98,7 @@ func (o *FrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,11 +114,10 @@ func (o *FrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *FrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *FrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *FrontPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -156,6 +152,7 @@ func (o *FrontPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *FrontPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -212,6 +209,7 @@ func (o *FrontPortRequest) SetType(v FrontPortTypeValue) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *FrontPortRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -268,6 +266,7 @@ func (o *FrontPortRequest) SetRearPort(v FrontPortRearPortRequest) { o.RearPort = v } + // GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise. func (o *FrontPortRequest) GetRearPortPosition() int32 { if o == nil || IsNil(o.RearPortPosition) { @@ -429,7 +428,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 } @@ -485,20 +484,37 @@ func (o *FrontPortRequest) UnmarshalJSON(data []byte) (err error) { "rear_port", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFrontPortRequest := _FrontPortRequest{} err = json.Unmarshal(data, &varFrontPortRequest) @@ -565,3 +581,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 66ed545004..9e28613b2e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the FrontPortTemplate type satisfies the MappedNullable interface at compile time @@ -21,22 +21,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"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,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"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplate `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" validate:"regexp=^[0-9a-f]{6}$"` + RearPort BriefRearPortTemplate `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,7 +46,7 @@ type _FrontPortTemplate FrontPortTemplate // 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 NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { +func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate) *FrontPortTemplate { this := FrontPortTemplate{} this.Id = id this.Url = url @@ -54,10 +54,6 @@ func NewFrontPortTemplate(id int32, url string, display string, name string, typ this.Name = name this.Type = type_ this.RearPort = rearPort - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -66,8 +62,6 @@ func NewFrontPortTemplate(id int32, url string, display string, name string, typ // but it doesn't guarantee that properties required by API are set func NewFrontPortTemplateWithDefaults() *FrontPortTemplate { this := FrontPortTemplate{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -95,6 +89,7 @@ func (o *FrontPortTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *FrontPortTemplate) GetUrl() string { if o == nil { @@ -119,6 +114,7 @@ func (o *FrontPortTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *FrontPortTemplate) GetDisplay() string { if o == nil { @@ -143,10 +139,11 @@ func (o *FrontPortTemplate) SetDisplay(v string) { o.Display = v } + // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetDeviceType() DeviceType { +func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -155,7 +152,7 @@ func (o *FrontPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -171,11 +168,10 @@ func (o *FrontPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *FrontPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *FrontPortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -187,9 +183,9 @@ func (o *FrontPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetModuleType() ModuleType { +func (o *FrontPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -198,7 +194,7 @@ func (o *FrontPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType 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 *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -214,11 +210,10 @@ func (o *FrontPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *FrontPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *FrontPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *FrontPortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -253,6 +248,7 @@ func (o *FrontPortTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *FrontPortTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -309,6 +305,7 @@ func (o *FrontPortTemplate) SetType(v FrontPortType) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *FrontPortTemplate) GetColor() string { if o == nil || IsNil(o.Color) { @@ -342,9 +339,9 @@ func (o *FrontPortTemplate) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { +func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate { if o == nil { - var ret RearPortTemplate + var ret BriefRearPortTemplate return ret } @@ -353,7 +350,7 @@ func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { +func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool) { if o == nil { return nil, false } @@ -361,10 +358,11 @@ func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { } // SetRearPort sets field value -func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate) { +func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate) { o.RearPort = v } + // GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise. func (o *FrontPortTemplate) GetRearPortPosition() int32 { if o == nil || IsNil(o.RearPortPosition) { @@ -429,18 +427,16 @@ func (o *FrontPortTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FrontPortTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *FrontPortTemplate) GetCreatedOk() (*time.Time, bool) { @@ -450,23 +446,39 @@ func (o *FrontPortTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *FrontPortTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *FrontPortTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *FrontPortTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *FrontPortTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *FrontPortTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *FrontPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -476,13 +488,31 @@ func (o *FrontPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *FrontPortTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *FrontPortTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *FrontPortTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *FrontPortTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o FrontPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -515,8 +545,12 @@ func (o FrontPortTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -536,24 +570,39 @@ func (o *FrontPortTemplate) UnmarshalJSON(data []byte) (err error) { "name", "type", "rear_port", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFrontPortTemplate := _FrontPortTemplate{} err = json.Unmarshal(data, &varFrontPortTemplate) @@ -622,3 +671,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 995c21f99c..3eb0519cb8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &FrontPortTemplateRequest{} // FrontPortTemplateRequest 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 FrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + RearPort BriefRearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,13 +40,11 @@ type _FrontPortTemplateRequest FrontPortTemplateRequest // 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 NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *FrontPortTemplateRequest { +func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *FrontPortTemplateRequest { this := FrontPortTemplateRequest{} this.Name = name this.Type = type_ this.RearPort = rearPort - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -55,15 +53,13 @@ func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort // but it doesn't guarantee that properties required by API are set func NewFrontPortTemplateRequestWithDefaults() *FrontPortTemplateRequest { this := FrontPortTemplateRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +68,7 @@ func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,11 +84,10 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *FrontPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -104,9 +99,9 @@ func (o *FrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +110,7 @@ func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,11 +126,10 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *FrontPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -170,6 +164,7 @@ func (o *FrontPortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *FrontPortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -226,6 +221,7 @@ func (o *FrontPortTemplateRequest) SetType(v FrontPortTypeValue) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *FrontPortTemplateRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -259,9 +255,9 @@ func (o *FrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +266,7 @@ func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,10 +274,11 @@ func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bo } // SetRearPort sets field value -func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } + // GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise. func (o *FrontPortTemplateRequest) GetRearPortPosition() int32 { if o == nil || IsNil(o.RearPortPosition) { @@ -347,7 +344,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 } @@ -395,20 +392,37 @@ func (o *FrontPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { "rear_port", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varFrontPortTemplateRequest := _FrontPortTemplateRequest{} err = json.Unmarshal(data, &varFrontPortTemplateRequest) @@ -472,3 +486,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 17d1190463..b9c07b83b8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &FrontPortType{} // FrontPortType struct for FrontPortType type FrontPortType struct { - Value *FrontPortTypeValue `json:"value,omitempty"` - Label *FrontPortTypeLabel `json:"label,omitempty"` + Value *FrontPortTypeValue `json:"value,omitempty"` + Label *FrontPortTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *FrontPortType) SetLabel(v FrontPortTypeLabel) { } func (o FrontPortType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableFrontPortType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go index 88117ae3a6..d9accb75b2 100644 --- a/model_front_port_type_label.go +++ b/model_front_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,53 +20,61 @@ type FrontPortTypeLabel string // List of FrontPort_type_label const ( - FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" - FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" - FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" - FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" - FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" - FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" - FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" - FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" - FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" - FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" - FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" - FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" - FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" - FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" - FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" + FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" + FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" + FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" + FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" + FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" + FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" + FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" + FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" + FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" + FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" + FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" + FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" + FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" + FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" + FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" - FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" - FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" - FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" - FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" - FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" - FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" - FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" - FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" - FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" - FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" - FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" - FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" - FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" - FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" - FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" - FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" - FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" - FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" - FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" - FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" - FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" - FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" - FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" - FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" - FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" - FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" - FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" - FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" - FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" - FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" + FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" + FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" + FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" + FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" + FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" + FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" + FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" + FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" + FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" + FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" + FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" + FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" + FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" + FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" + FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" + FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" + FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" + FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" + FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" + FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" + FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" + FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" + FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" + FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" + FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" + FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" + FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" + FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" + FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" + FRONTPORTTYPELABEL_USB_TYPE_A FrontPortTypeLabel = "USB Type A" + FRONTPORTTYPELABEL_USB_TYPE_B FrontPortTypeLabel = "USB Type B" + FRONTPORTTYPELABEL_USB_TYPE_C FrontPortTypeLabel = "USB Type C" + FRONTPORTTYPELABEL_USB_MINI_A FrontPortTypeLabel = "USB Mini A" + FRONTPORTTYPELABEL_USB_MINI_B FrontPortTypeLabel = "USB Mini B" + FRONTPORTTYPELABEL_USB_MICRO_A FrontPortTypeLabel = "USB Micro A" + FRONTPORTTYPELABEL_USB_MICRO_B FrontPortTypeLabel = "USB Micro B" + FRONTPORTTYPELABEL_USB_MICRO_AB FrontPortTypeLabel = "USB Micro AB" + FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" ) // All allowed values of FrontPortTypeLabel enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeLabelEnumValues = []FrontPortTypeLabel{ "URM-P4", "URM-P8", "Splice", + "USB Type A", + "USB Type B", + "USB Type C", + "USB Mini A", + "USB Mini B", + "USB Micro A", + "USB Micro B", + "USB Micro AB", "Other", } @@ -198,3 +214,4 @@ func (v *NullableFrontPortTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go index 55f3bf9e53..5e14486a50 100644 --- a/model_front_port_type_value.go +++ b/model_front_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,58 +15,66 @@ import ( "fmt" ) -// FrontPortTypeValue * `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 +// FrontPortTypeValue * `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 * `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 FrontPortTypeValue string // List of FrontPort_type_value const ( - FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" - FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" - FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" - FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" - FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" - FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" - FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" - FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" - FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" - FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" - FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" - FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" - FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" + FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" + FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" + FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" + FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" + FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" + FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" + FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" + FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" + FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" + FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" + FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" + FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" + FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" - FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" - FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" - FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" - FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" - FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" - FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" - FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" - FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" - FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" - FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" - FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" - FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" - FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" - FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" - FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" - FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" - FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" - FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" - FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" - FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" - FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" - FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" - FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" - FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" - FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" - FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" - FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" - FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" - FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" - FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" - FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" - FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" - FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" + FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" + FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" + FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" + FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" + FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" + FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" + FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" + FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" + FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" + FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" + FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" + FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" + FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" + FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" + FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" + FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" + FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" + FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" + FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" + FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" + FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" + FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" + FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" + FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" + FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" + FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" + FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" + FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" + FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" + FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" + FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" + FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" + FRONTPORTTYPEVALUE_USB_A FrontPortTypeValue = "usb-a" + FRONTPORTTYPEVALUE_USB_B FrontPortTypeValue = "usb-b" + FRONTPORTTYPEVALUE_USB_C FrontPortTypeValue = "usb-c" + FRONTPORTTYPEVALUE_USB_MINI_A FrontPortTypeValue = "usb-mini-a" + FRONTPORTTYPEVALUE_USB_MINI_B FrontPortTypeValue = "usb-mini-b" + FRONTPORTTYPEVALUE_USB_MICRO_A FrontPortTypeValue = "usb-micro-a" + FRONTPORTTYPEVALUE_USB_MICRO_B FrontPortTypeValue = "usb-micro-b" + FRONTPORTTYPEVALUE_USB_MICRO_AB FrontPortTypeValue = "usb-micro-ab" + FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" ) // All allowed values of FrontPortTypeValue enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeValueEnumValues = []FrontPortTypeValue{ "urm-p4", "urm-p8", "splice", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", "other", } @@ -198,3 +214,4 @@ func (v *NullableFrontPortTypeValue) 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 new file mode 100644 index 0000000000..4ed66b4739 --- /dev/null +++ b/model_generic_object.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the GenericObject type satisfies the MappedNullable interface at compile time +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 interface{} `json:"object,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GenericObject GenericObject + +// NewGenericObject instantiates a new GenericObject 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 NewGenericObject(objectType string, objectId int32) *GenericObject { + this := GenericObject{} + this.ObjectType = objectType + this.ObjectId = objectId + return &this +} + +// NewGenericObjectWithDefaults instantiates a new GenericObject 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 NewGenericObjectWithDefaults() *GenericObject { + this := GenericObject{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *GenericObject) 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 *GenericObject) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *GenericObject) SetObjectType(v string) { + o.ObjectType = v +} + + +// GetObjectId returns the ObjectId field value +func (o *GenericObject) GetObjectId() int32 { + if o == nil { + var ret int32 + 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 *GenericObject) GetObjectIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *GenericObject) SetObjectId(v int32) { + o.ObjectId = v +} + + +// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GenericObject) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Object +} + +// GetObjectOk returns a tuple with the Object 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 *GenericObject) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// HasObject returns a boolean if a field has been set. +func (o *GenericObject) HasObject() bool { + if o != nil && !IsNil(o.Object) { + return true + } + + return false +} + +// SetObject gets a reference to the given interface{} and assigns it to the Object field. +func (o *GenericObject) SetObject(v interface{}) { + o.Object = v +} + +func (o GenericObject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenericObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GenericObject) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varGenericObject := _GenericObject{} + + err = json.Unmarshal(data, &varGenericObject) + + if err != nil { + return err + } + + *o = GenericObject(varGenericObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGenericObject struct { + value *GenericObject + isSet bool +} + +func (v NullableGenericObject) Get() *GenericObject { + return v.value +} + +func (v *NullableGenericObject) Set(val *GenericObject) { + v.value = val + v.isSet = true +} + +func (v NullableGenericObject) IsSet() bool { + return v.isSet +} + +func (v *NullableGenericObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenericObject(val *GenericObject) *NullableGenericObject { + return &NullableGenericObject{value: val, isSet: true} +} + +func (v NullableGenericObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +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 af5fa0e139..69362cc6fc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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{} } @@ -70,6 +70,7 @@ func (o *GenericObjectRequest) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *GenericObjectRequest) GetObjectId() int32 { if o == nil { @@ -94,8 +95,9 @@ func (o *GenericObjectRequest) SetObjectId(v int32) { o.ObjectId = v } + func (o GenericObjectRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,20 +125,37 @@ func (o *GenericObjectRequest) UnmarshalJSON(data []byte) (err error) { "object_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varGenericObjectRequest := _GenericObjectRequest{} err = json.Unmarshal(data, &varGenericObjectRequest) @@ -193,3 +212,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 cc0cb78e9e..c976ffdc52 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,14 @@ 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"` - Description *string `json:"description,omitempty"` - Permissions []ObjectPermission `json:"permissions,omitempty"` - UserCount int32 `json:"user_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Permissions []ObjectPermission `json:"permissions,omitempty"` + UserCount int32 `json:"user_count"` AdditionalProperties map[string]interface{} } @@ -78,6 +79,7 @@ func (o *Group) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Group) GetUrl() string { if o == nil { @@ -102,6 +104,39 @@ func (o *Group) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Group) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Group) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Group) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Group) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Group) GetDisplay() string { if o == nil { @@ -126,6 +161,7 @@ func (o *Group) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Group) GetName() string { if o == nil { @@ -150,6 +186,7 @@ func (o *Group) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Group) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -238,8 +275,9 @@ func (o *Group) SetUserCount(v int32) { o.UserCount = v } + func (o Group) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -250,6 +288,9 @@ func (o Group) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -279,20 +320,37 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { "user_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varGroup := _Group{} err = json.Unmarshal(data, &varGroup) @@ -308,6 +366,7 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -354,3 +413,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 a3b3fc4d92..6b393816d1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ 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"` - Description *string `json:"description,omitempty"` - Permissions []int32 `json:"permissions,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Permissions []int32 `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,6 +70,7 @@ func (o *GroupRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *GroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -135,7 +136,7 @@ func (o *GroupRequest) SetPermissions(v []int32) { } func (o GroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -167,20 +168,37 @@ func (o *GroupRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varGroupRequest := _GroupRequest{} err = json.Unmarshal(data, &varGroupRequest) @@ -238,3 +256,5 @@ func (v *NullableGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_policy.go b/model_ike_policy.go index 60a1325948..0ece008376 100644 --- a/model_ike_policy.go +++ b/model_ike_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the IKEPolicy type satisfies the MappedNullable interface at compile time @@ -21,20 +21,21 @@ var _ MappedNullable = &IKEPolicy{} // IKEPolicy Adds support for custom fields and tags. type IKEPolicy struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Version IKEPolicyVersion `json:"version"` - Mode IKEPolicyMode `json:"mode"` - Proposals []IKEProposal `json:"proposals,omitempty"` - PresharedKey *string `json:"preshared_key,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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Version IKEPolicyVersion `json:"version"` + Mode *IKEPolicyMode `json:"mode,omitempty"` + Proposals []IKEProposal `json:"proposals,omitempty"` + PresharedKey *string `json:"preshared_key,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,16 +45,13 @@ type _IKEPolicy IKEPolicy // 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 NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime) *IKEPolicy { +func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion) *IKEPolicy { this := IKEPolicy{} this.Id = id this.Url = url this.Display = display this.Name = name this.Version = version - this.Mode = mode - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -89,6 +87,7 @@ func (o *IKEPolicy) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *IKEPolicy) GetUrl() string { if o == nil { @@ -113,6 +112,39 @@ func (o *IKEPolicy) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IKEPolicy) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IKEPolicy) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IKEPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IKEPolicy) GetDisplay() string { if o == nil { @@ -137,6 +169,7 @@ func (o *IKEPolicy) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *IKEPolicy) GetName() string { if o == nil { @@ -161,6 +194,7 @@ func (o *IKEPolicy) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IKEPolicy) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -217,28 +251,37 @@ func (o *IKEPolicy) SetVersion(v IKEPolicyVersion) { o.Version = v } -// GetMode returns the Mode field value + +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicy) GetMode() IKEPolicyMode { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyMode return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicy) GetModeOk() (*IKEPolicyMode, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true } -// SetMode sets field value +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicy) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given IKEPolicyMode and assigns it to the Mode field. func (o *IKEPolicy) SetMode(v IKEPolicyMode) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -401,18 +444,16 @@ func (o *IKEPolicy) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IKEPolicy) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *IKEPolicy) GetCreatedOk() (*time.Time, bool) { @@ -422,23 +463,39 @@ func (o *IKEPolicy) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *IKEPolicy) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *IKEPolicy) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *IKEPolicy) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *IKEPolicy) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IKEPolicy) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *IKEPolicy) GetLastUpdatedOk() (*time.Time, bool) { @@ -448,13 +505,31 @@ func (o *IKEPolicy) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *IKEPolicy) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *IKEPolicy) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *IKEPolicy) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *IKEPolicy) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o IKEPolicy) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -465,13 +540,18 @@ func (o IKEPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -487,8 +567,12 @@ func (o IKEPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -507,25 +591,39 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { "display", "name", "version", - "mode", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIKEPolicy := _IKEPolicy{} err = json.Unmarshal(data, &varIKEPolicy) @@ -541,6 +639,7 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -594,3 +693,5 @@ func (v *NullableIKEPolicy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go index 561cdd0eef..1a4a3d295a 100644 --- a/model_ike_policy_mode.go +++ b/model_ike_policy_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IKEPolicyMode{} // IKEPolicyMode struct for IKEPolicyMode type IKEPolicyMode struct { - Value *IKEPolicyModeValue `json:"value,omitempty"` - Label *IKEPolicyModeLabel `json:"label,omitempty"` + Value *IKEPolicyModeValue `json:"value,omitempty"` + Label *IKEPolicyModeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IKEPolicyMode) SetLabel(v IKEPolicyModeLabel) { } func (o IKEPolicyMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIKEPolicyMode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go index 6f710f6ac2..21e20971c0 100644 --- a/model_ike_policy_mode_label.go +++ b/model_ike_policy_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type IKEPolicyModeLabel string // List of IKEPolicy_mode_label const ( IKEPOLICYMODELABEL_AGGRESSIVE IKEPolicyModeLabel = "Aggressive" - IKEPOLICYMODELABEL_MAIN IKEPolicyModeLabel = "Main" + IKEPOLICYMODELABEL_MAIN IKEPolicyModeLabel = "Main" ) // All allowed values of IKEPolicyModeLabel enum @@ -108,3 +108,4 @@ func (v *NullableIKEPolicyModeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go index f7209d9324..61585a11e8 100644 --- a/model_ike_policy_mode_value.go +++ b/model_ike_policy_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type IKEPolicyModeValue string // List of IKEPolicy_mode_value const ( IKEPOLICYMODEVALUE_AGGRESSIVE IKEPolicyModeValue = "aggressive" - IKEPOLICYMODEVALUE_MAIN IKEPolicyModeValue = "main" + IKEPOLICYMODEVALUE_MAIN IKEPolicyModeValue = "main" ) // All allowed values of IKEPolicyModeValue enum @@ -108,3 +108,4 @@ func (v *NullableIKEPolicyModeValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go index b10b248b69..93261817cc 100644 --- a/model_ike_policy_request.go +++ b/model_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &IKEPolicyRequest{} // IKEPolicyRequest Adds support for custom fields and tags. type IKEPolicyRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Version IKEPolicyVersionValue `json:"version"` - Mode IKEPolicyModeValue `json:"mode"` - Proposals []int32 `json:"proposals,omitempty"` - PresharedKey *string `json:"preshared_key,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Version IKEPolicyVersionValue `json:"version"` + Mode *IKEPolicyModeValue `json:"mode,omitempty"` + Proposals []int32 `json:"proposals,omitempty"` + PresharedKey *string `json:"preshared_key,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,11 +38,10 @@ type _IKEPolicyRequest IKEPolicyRequest // 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 NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue) *IKEPolicyRequest { +func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue) *IKEPolicyRequest { this := IKEPolicyRequest{} this.Name = name this.Version = version - this.Mode = mode return &this } @@ -78,6 +77,7 @@ func (o *IKEPolicyRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IKEPolicyRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -134,28 +134,37 @@ func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue) { o.Version = v } -// GetMode returns the Mode field value + +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyModeValue return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true } -// SetMode sets field value +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicyRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false +} + +// SetMode gets a reference to the given IKEPolicyModeValue and assigns it to the Mode field. func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -319,7 +328,7 @@ func (o *IKEPolicyRequest) SetCustomFields(v map[string]interface{}) { } func (o IKEPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -333,7 +342,9 @@ func (o IKEPolicyRequest) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -364,23 +375,39 @@ func (o *IKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "version", - "mode", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIKEPolicyRequest := _IKEPolicyRequest{} err = json.Unmarshal(data, &varIKEPolicyRequest) @@ -444,3 +471,5 @@ func (v *NullableIKEPolicyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go index afa22c6de8..13e122db18 100644 --- a/model_ike_policy_version.go +++ b/model_ike_policy_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IKEPolicyVersion{} // IKEPolicyVersion struct for IKEPolicyVersion type IKEPolicyVersion struct { - Value *IKEPolicyVersionValue `json:"value,omitempty"` - Label *IKEPolicyVersionLabel `json:"label,omitempty"` + Value *IKEPolicyVersionValue `json:"value,omitempty"` + Label *IKEPolicyVersionLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IKEPolicyVersion) SetLabel(v IKEPolicyVersionLabel) { } func (o IKEPolicyVersion) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIKEPolicyVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go index 8b11ad9d66..7e06d5a116 100644 --- a/model_ike_policy_version_label.go +++ b/model_ike_policy_version_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableIKEPolicyVersionLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go index 7abf472f2f..9e01638001 100644 --- a/model_ike_policy_version_value.go +++ b/model_ike_policy_version_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableIKEPolicyVersionValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal.go b/model_ike_proposal.go index cd4eed1ca7..a32c7b6942 100644 --- a/model_ike_proposal.go +++ b/model_ike_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the IKEProposal type satisfies the MappedNullable interface at compile time @@ -21,22 +21,23 @@ var _ MappedNullable = &IKEProposal{} // IKEProposal Adds support for custom fields and tags. type IKEProposal struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"` - Group IKEProposalGroup `json:"group"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroup `json:"group"` // Security association lifetime (in seconds) - SaLifetime NullableInt32 `json:"sa_lifetime,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"` + SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,7 +47,7 @@ type _IKEProposal IKEProposal // 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 NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { +func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup) *IKEProposal { this := IKEProposal{} this.Id = id this.Url = url @@ -54,10 +55,7 @@ func NewIKEProposal(id int32, url string, display string, name string, authentic this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -93,6 +91,7 @@ func (o *IKEProposal) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *IKEProposal) GetUrl() string { if o == nil { @@ -117,6 +116,39 @@ func (o *IKEProposal) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IKEProposal) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IKEProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IKEProposal) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IKEProposal) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IKEProposal) GetDisplay() string { if o == nil { @@ -141,6 +173,7 @@ func (o *IKEProposal) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *IKEProposal) GetName() string { if o == nil { @@ -165,6 +198,7 @@ func (o *IKEProposal) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IKEProposal) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -221,6 +255,7 @@ func (o *IKEProposal) SetAuthenticationMethod(v IKEProposalAuthenticationMethod) o.AuthenticationMethod = v } + // GetEncryptionAlgorithm returns the EncryptionAlgorithm field value func (o *IKEProposal) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithm { if o == nil { @@ -245,28 +280,37 @@ func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) { o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value + +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithm return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposal) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -293,6 +337,7 @@ func (o *IKEProposal) SetGroup(v IKEProposalGroup) { o.Group = v } + // GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IKEProposal) GetSaLifetime() int32 { if o == nil || IsNil(o.SaLifetime.Get()) { @@ -325,7 +370,6 @@ func (o *IKEProposal) HasSaLifetime() bool { func (o *IKEProposal) SetSaLifetime(v int32) { o.SaLifetime.Set(&v) } - // SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil func (o *IKEProposal) SetSaLifetimeNil() { o.SaLifetime.Set(nil) @@ -432,18 +476,16 @@ func (o *IKEProposal) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IKEProposal) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *IKEProposal) GetCreatedOk() (*time.Time, bool) { @@ -453,23 +495,39 @@ func (o *IKEProposal) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *IKEProposal) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *IKEProposal) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *IKEProposal) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *IKEProposal) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IKEProposal) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *IKEProposal) GetLastUpdatedOk() (*time.Time, bool) { @@ -479,13 +537,31 @@ func (o *IKEProposal) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *IKEProposal) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *IKEProposal) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *IKEProposal) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *IKEProposal) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o IKEProposal) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -496,6 +572,9 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -503,7 +582,9 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -517,8 +598,12 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -538,26 +623,40 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIKEProposal := _IKEProposal{} err = json.Unmarshal(data, &varIKEProposal) @@ -573,6 +672,7 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -627,3 +727,5 @@ func (v *NullableIKEProposal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go index beeab83348..4bf0d5847f 100644 --- a/model_ike_proposal_authentication_algorithm.go +++ b/model_ike_proposal_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalAuthenticationAlgorithm{} // IKEProposalAuthenticationAlgorithm struct for IKEProposalAuthenticationAlgorithm type IKEProposalAuthenticationAlgorithm struct { - Value *IKEProposalAuthenticationAlgorithmValue `json:"value,omitempty"` - Label *IKEProposalAuthenticationAlgorithmLabel `json:"label,omitempty"` + Value *IKEProposalAuthenticationAlgorithmValue `json:"value,omitempty"` + Label *IKEProposalAuthenticationAlgorithmLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IKEProposalAuthenticationAlgorithm) SetLabel(v IKEProposalAuthenticatio } func (o IKEProposalAuthenticationAlgorithm) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIKEProposalAuthenticationAlgorithm) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go index ed37a3e8d4..4d4a9595ff 100644 --- a/model_ike_proposal_authentication_algorithm_label.go +++ b/model_ike_proposal_authentication_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ type IKEProposalAuthenticationAlgorithmLabel string // List of IKEProposal_authentication_algorithm_label const ( - IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_1_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-1 HMAC" + IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_1_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-1 HMAC" IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_256_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-256 HMAC" IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_384_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-384 HMAC" IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_SHA_512_HMAC IKEProposalAuthenticationAlgorithmLabel = "SHA-512 HMAC" - IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_MD5_HMAC IKEProposalAuthenticationAlgorithmLabel = "MD5 HMAC" + IKEPROPOSALAUTHENTICATIONALGORITHMLABEL_MD5_HMAC IKEProposalAuthenticationAlgorithmLabel = "MD5 HMAC" ) // All allowed values of IKEProposalAuthenticationAlgorithmLabel enum @@ -114,3 +114,4 @@ func (v *NullableIKEProposalAuthenticationAlgorithmLabel) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go index ac2ff5a013..d63049d85d 100644 --- a/model_ike_proposal_authentication_algorithm_value.go +++ b/model_ike_proposal_authentication_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ type IKEProposalAuthenticationAlgorithmValue string // List of IKEProposal_authentication_algorithm_value const ( - IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA1 IKEProposalAuthenticationAlgorithmValue = "hmac-sha1" - IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA256 IKEProposalAuthenticationAlgorithmValue = "hmac-sha256" - IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA384 IKEProposalAuthenticationAlgorithmValue = "hmac-sha384" - IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_SHA512 IKEProposalAuthenticationAlgorithmValue = "hmac-sha512" - IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_MD5 IKEProposalAuthenticationAlgorithmValue = "hmac-md5" + IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA1 IKEProposalAuthenticationAlgorithmValue = "hmac-sha1" + IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA256 IKEProposalAuthenticationAlgorithmValue = "hmac-sha256" + IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA384 IKEProposalAuthenticationAlgorithmValue = "hmac-sha384" + IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_SHA512 IKEProposalAuthenticationAlgorithmValue = "hmac-sha512" + IKEPROPOSALAUTHENTICATIONALGORITHMVALUE_HMAC_MD5 IKEProposalAuthenticationAlgorithmValue = "hmac-md5" ) // All allowed values of IKEProposalAuthenticationAlgorithmValue enum @@ -114,3 +114,4 @@ func (v *NullableIKEProposalAuthenticationAlgorithmValue) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go index ce563d6e21..1d751165cf 100644 --- a/model_ike_proposal_authentication_method.go +++ b/model_ike_proposal_authentication_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalAuthenticationMethod{} // IKEProposalAuthenticationMethod struct for IKEProposalAuthenticationMethod type IKEProposalAuthenticationMethod struct { - Value *IKEProposalAuthenticationMethodValue `json:"value,omitempty"` - Label *IKEProposalAuthenticationMethodLabel `json:"label,omitempty"` + Value *IKEProposalAuthenticationMethodValue `json:"value,omitempty"` + Label *IKEProposalAuthenticationMethodLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IKEProposalAuthenticationMethod) SetLabel(v IKEProposalAuthenticationMe } func (o IKEProposalAuthenticationMethod) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIKEProposalAuthenticationMethod) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go index 35519ca6b0..c639b28240 100644 --- a/model_ike_proposal_authentication_method_label.go +++ b/model_ike_proposal_authentication_method_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,9 @@ type IKEProposalAuthenticationMethodLabel string // List of IKEProposal_authentication_method_label const ( IKEPROPOSALAUTHENTICATIONMETHODLABEL_PRE_SHARED_KEYS IKEProposalAuthenticationMethodLabel = "Pre-shared keys" - IKEPROPOSALAUTHENTICATIONMETHODLABEL_CERTIFICATES IKEProposalAuthenticationMethodLabel = "Certificates" - IKEPROPOSALAUTHENTICATIONMETHODLABEL_RSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "RSA signatures" - IKEPROPOSALAUTHENTICATIONMETHODLABEL_DSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "DSA signatures" + IKEPROPOSALAUTHENTICATIONMETHODLABEL_CERTIFICATES IKEProposalAuthenticationMethodLabel = "Certificates" + IKEPROPOSALAUTHENTICATIONMETHODLABEL_RSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "RSA signatures" + IKEPROPOSALAUTHENTICATIONMETHODLABEL_DSA_SIGNATURES IKEProposalAuthenticationMethodLabel = "DSA signatures" ) // All allowed values of IKEProposalAuthenticationMethodLabel enum @@ -112,3 +112,4 @@ func (v *NullableIKEProposalAuthenticationMethodLabel) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go index c1e5b8266c..c1ae90fe8d 100644 --- a/model_ike_proposal_authentication_method_value.go +++ b/model_ike_proposal_authentication_method_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type IKEProposalAuthenticationMethodValue string // List of IKEProposal_authentication_method_value const ( IKEPROPOSALAUTHENTICATIONMETHODVALUE_PRESHARED_KEYS IKEProposalAuthenticationMethodValue = "preshared-keys" - IKEPROPOSALAUTHENTICATIONMETHODVALUE_CERTIFICATES IKEProposalAuthenticationMethodValue = "certificates" + IKEPROPOSALAUTHENTICATIONMETHODVALUE_CERTIFICATES IKEProposalAuthenticationMethodValue = "certificates" IKEPROPOSALAUTHENTICATIONMETHODVALUE_RSA_SIGNATURES IKEProposalAuthenticationMethodValue = "rsa-signatures" IKEPROPOSALAUTHENTICATIONMETHODVALUE_DSA_SIGNATURES IKEProposalAuthenticationMethodValue = "dsa-signatures" ) @@ -112,3 +112,4 @@ func (v *NullableIKEProposalAuthenticationMethodValue) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go index 208e101996..195aa73288 100644 --- a/model_ike_proposal_encryption_algorithm.go +++ b/model_ike_proposal_encryption_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalEncryptionAlgorithm{} // IKEProposalEncryptionAlgorithm struct for IKEProposalEncryptionAlgorithm type IKEProposalEncryptionAlgorithm struct { - Value *IKEProposalEncryptionAlgorithmValue `json:"value,omitempty"` - Label *IKEProposalEncryptionAlgorithmLabel `json:"label,omitempty"` + Value *IKEProposalEncryptionAlgorithmValue `json:"value,omitempty"` + Label *IKEProposalEncryptionAlgorithmLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IKEProposalEncryptionAlgorithm) SetLabel(v IKEProposalEncryptionAlgorit } func (o IKEProposalEncryptionAlgorithm) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIKEProposalEncryptionAlgorithm) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go index 4485f50f2c..11daac3fc2 100644 --- a/model_ike_proposal_encryption_algorithm_label.go +++ b/model_ike_proposal_encryption_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,8 +26,8 @@ const ( IKEPROPOSALENCRYPTIONALGORITHMLABEL__192_BIT_AES__GCM IKEProposalEncryptionAlgorithmLabel = "192-bit AES (GCM)" IKEPROPOSALENCRYPTIONALGORITHMLABEL__256_BIT_AES__CBC IKEProposalEncryptionAlgorithmLabel = "256-bit AES (CBC)" IKEPROPOSALENCRYPTIONALGORITHMLABEL__256_BIT_AES__GCM IKEProposalEncryptionAlgorithmLabel = "256-bit AES (GCM)" - IKEPROPOSALENCRYPTIONALGORITHMLABEL__3_DES IKEProposalEncryptionAlgorithmLabel = "3DES" - IKEPROPOSALENCRYPTIONALGORITHMLABEL_DES IKEProposalEncryptionAlgorithmLabel = "DES" + IKEPROPOSALENCRYPTIONALGORITHMLABEL__3_DES IKEProposalEncryptionAlgorithmLabel = "3DES" + IKEPROPOSALENCRYPTIONALGORITHMLABEL_DES IKEProposalEncryptionAlgorithmLabel = "DES" ) // All allowed values of IKEProposalEncryptionAlgorithmLabel enum @@ -120,3 +120,4 @@ func (v *NullableIKEProposalEncryptionAlgorithmLabel) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go index f152c2e121..1135b7c0cd 100644 --- a/model_ike_proposal_encryption_algorithm_value.go +++ b/model_ike_proposal_encryption_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,8 +26,8 @@ const ( IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_192_GCM IKEProposalEncryptionAlgorithmValue = "aes-192-gcm" IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_256_CBC IKEProposalEncryptionAlgorithmValue = "aes-256-cbc" IKEPROPOSALENCRYPTIONALGORITHMVALUE_AES_256_GCM IKEProposalEncryptionAlgorithmValue = "aes-256-gcm" - IKEPROPOSALENCRYPTIONALGORITHMVALUE__3DES_CBC IKEProposalEncryptionAlgorithmValue = "3des-cbc" - IKEPROPOSALENCRYPTIONALGORITHMVALUE_DES_CBC IKEProposalEncryptionAlgorithmValue = "des-cbc" + IKEPROPOSALENCRYPTIONALGORITHMVALUE__3DES_CBC IKEProposalEncryptionAlgorithmValue = "3des-cbc" + IKEPROPOSALENCRYPTIONALGORITHMVALUE_DES_CBC IKEProposalEncryptionAlgorithmValue = "des-cbc" ) // All allowed values of IKEProposalEncryptionAlgorithmValue enum @@ -120,3 +120,4 @@ func (v *NullableIKEProposalEncryptionAlgorithmValue) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go index b4e5729484..524cd2dee3 100644 --- a/model_ike_proposal_group.go +++ b/model_ike_proposal_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IKEProposalGroup{} // IKEProposalGroup struct for IKEProposalGroup type IKEProposalGroup struct { - Value *IKEProposalGroupValue `json:"value,omitempty"` - Label *IKEProposalGroupLabel `json:"label,omitempty"` + Value *IKEProposalGroupValue `json:"value,omitempty"` + Label *IKEProposalGroupLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IKEProposalGroup) SetLabel(v IKEProposalGroupLabel) { } func (o IKEProposalGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIKEProposalGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go index acb825e47a..8439cb8c13 100644 --- a/model_ike_proposal_group_label.go +++ b/model_ike_proposal_group_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,30 +20,30 @@ type IKEProposalGroupLabel string // List of IKEProposal_group_label const ( - IKEPROPOSALGROUPLABEL__1 IKEProposalGroupLabel = "Group 1" - IKEPROPOSALGROUPLABEL__2 IKEProposalGroupLabel = "Group 2" - IKEPROPOSALGROUPLABEL__5 IKEProposalGroupLabel = "Group 5" - IKEPROPOSALGROUPLABEL__14 IKEProposalGroupLabel = "Group 14" - IKEPROPOSALGROUPLABEL__15 IKEProposalGroupLabel = "Group 15" - IKEPROPOSALGROUPLABEL__16 IKEProposalGroupLabel = "Group 16" - IKEPROPOSALGROUPLABEL__17 IKEProposalGroupLabel = "Group 17" - IKEPROPOSALGROUPLABEL__18 IKEProposalGroupLabel = "Group 18" - IKEPROPOSALGROUPLABEL__19 IKEProposalGroupLabel = "Group 19" - IKEPROPOSALGROUPLABEL__20 IKEProposalGroupLabel = "Group 20" - IKEPROPOSALGROUPLABEL__21 IKEProposalGroupLabel = "Group 21" - IKEPROPOSALGROUPLABEL__22 IKEProposalGroupLabel = "Group 22" - IKEPROPOSALGROUPLABEL__23 IKEProposalGroupLabel = "Group 23" - IKEPROPOSALGROUPLABEL__24 IKEProposalGroupLabel = "Group 24" - IKEPROPOSALGROUPLABEL__25 IKEProposalGroupLabel = "Group 25" - IKEPROPOSALGROUPLABEL__26 IKEProposalGroupLabel = "Group 26" - IKEPROPOSALGROUPLABEL__27 IKEProposalGroupLabel = "Group 27" - IKEPROPOSALGROUPLABEL__28 IKEProposalGroupLabel = "Group 28" - IKEPROPOSALGROUPLABEL__29 IKEProposalGroupLabel = "Group 29" - IKEPROPOSALGROUPLABEL__30 IKEProposalGroupLabel = "Group 30" - IKEPROPOSALGROUPLABEL__31 IKEProposalGroupLabel = "Group 31" - IKEPROPOSALGROUPLABEL__32 IKEProposalGroupLabel = "Group 32" - IKEPROPOSALGROUPLABEL__33 IKEProposalGroupLabel = "Group 33" - IKEPROPOSALGROUPLABEL__34 IKEProposalGroupLabel = "Group 34" + IKEPROPOSALGROUPLABEL_GROUP_1 IKEProposalGroupLabel = "Group 1" + IKEPROPOSALGROUPLABEL_GROUP_2 IKEProposalGroupLabel = "Group 2" + IKEPROPOSALGROUPLABEL_GROUP_5 IKEProposalGroupLabel = "Group 5" + IKEPROPOSALGROUPLABEL_GROUP_14 IKEProposalGroupLabel = "Group 14" + IKEPROPOSALGROUPLABEL_GROUP_15 IKEProposalGroupLabel = "Group 15" + IKEPROPOSALGROUPLABEL_GROUP_16 IKEProposalGroupLabel = "Group 16" + IKEPROPOSALGROUPLABEL_GROUP_17 IKEProposalGroupLabel = "Group 17" + IKEPROPOSALGROUPLABEL_GROUP_18 IKEProposalGroupLabel = "Group 18" + IKEPROPOSALGROUPLABEL_GROUP_19 IKEProposalGroupLabel = "Group 19" + IKEPROPOSALGROUPLABEL_GROUP_20 IKEProposalGroupLabel = "Group 20" + IKEPROPOSALGROUPLABEL_GROUP_21 IKEProposalGroupLabel = "Group 21" + IKEPROPOSALGROUPLABEL_GROUP_22 IKEProposalGroupLabel = "Group 22" + IKEPROPOSALGROUPLABEL_GROUP_23 IKEProposalGroupLabel = "Group 23" + IKEPROPOSALGROUPLABEL_GROUP_24 IKEProposalGroupLabel = "Group 24" + IKEPROPOSALGROUPLABEL_GROUP_25 IKEProposalGroupLabel = "Group 25" + IKEPROPOSALGROUPLABEL_GROUP_26 IKEProposalGroupLabel = "Group 26" + IKEPROPOSALGROUPLABEL_GROUP_27 IKEProposalGroupLabel = "Group 27" + IKEPROPOSALGROUPLABEL_GROUP_28 IKEProposalGroupLabel = "Group 28" + IKEPROPOSALGROUPLABEL_GROUP_29 IKEProposalGroupLabel = "Group 29" + IKEPROPOSALGROUPLABEL_GROUP_30 IKEProposalGroupLabel = "Group 30" + IKEPROPOSALGROUPLABEL_GROUP_31 IKEProposalGroupLabel = "Group 31" + IKEPROPOSALGROUPLABEL_GROUP_32 IKEProposalGroupLabel = "Group 32" + IKEPROPOSALGROUPLABEL_GROUP_33 IKEProposalGroupLabel = "Group 33" + IKEPROPOSALGROUPLABEL_GROUP_34 IKEProposalGroupLabel = "Group 34" ) // All allowed values of IKEProposalGroupLabel enum @@ -152,3 +152,4 @@ func (v *NullableIKEProposalGroupLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go index 482fc4b74d..9826da1e81 100644 --- a/model_ike_proposal_group_value.go +++ b/model_ike_proposal_group_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type IKEProposalGroupValue int32 // List of IKEProposal_group_value const ( - IKEPROPOSALGROUPVALUE__1 IKEProposalGroupValue = 1 - IKEPROPOSALGROUPVALUE__2 IKEProposalGroupValue = 2 - IKEPROPOSALGROUPVALUE__5 IKEProposalGroupValue = 5 + IKEPROPOSALGROUPVALUE__1 IKEProposalGroupValue = 1 + IKEPROPOSALGROUPVALUE__2 IKEProposalGroupValue = 2 + IKEPROPOSALGROUPVALUE__5 IKEProposalGroupValue = 5 IKEPROPOSALGROUPVALUE__14 IKEProposalGroupValue = 14 IKEPROPOSALGROUPVALUE__15 IKEProposalGroupValue = 15 IKEPROPOSALGROUPVALUE__16 IKEProposalGroupValue = 16 @@ -152,3 +152,4 @@ func (v *NullableIKEProposalGroupValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go index 532a3552d5..b700501257 100644 --- a/model_ike_proposal_request.go +++ b/model_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &IKEProposalRequest{} // IKEProposalRequest Adds support for custom fields and tags. type IKEProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"` - Group IKEProposalGroupValue `json:"group"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroupValue `json:"group"` // Security association lifetime (in seconds) - SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,12 +40,11 @@ type _IKEProposalRequest IKEProposalRequest // 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 NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { +func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { this := IKEProposalRequest{} this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group return &this } @@ -82,6 +81,7 @@ func (o *IKEProposalRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IKEProposalRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -138,6 +138,7 @@ func (o *IKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthentication o.AuthenticationMethod = v } + // GetEncryptionAlgorithm returns the EncryptionAlgorithm field value func (o *IKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue { if o == nil { @@ -162,28 +163,37 @@ func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgor o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value + +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithmValue return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithmValue and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -210,6 +220,7 @@ func (o *IKEProposalRequest) SetGroup(v IKEProposalGroupValue) { o.Group = v } + // GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IKEProposalRequest) GetSaLifetime() int32 { if o == nil || IsNil(o.SaLifetime.Get()) { @@ -242,7 +253,6 @@ func (o *IKEProposalRequest) HasSaLifetime() bool { func (o *IKEProposalRequest) SetSaLifetime(v int32) { o.SaLifetime.Set(&v) } - // SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil func (o *IKEProposalRequest) SetSaLifetimeNil() { o.SaLifetime.Set(nil) @@ -350,7 +360,7 @@ func (o *IKEProposalRequest) SetCustomFields(v map[string]interface{}) { } func (o IKEProposalRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -365,7 +375,9 @@ func (o IKEProposalRequest) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -395,24 +407,40 @@ func (o *IKEProposalRequest) UnmarshalJSON(data []byte) (err error) { "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIKEProposalRequest := _IKEProposalRequest{} err = json.Unmarshal(data, &varIKEProposalRequest) @@ -477,3 +505,5 @@ func (v *NullableIKEProposalRequest) 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 3eef1f2cd9..bafb0d16e2 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ImageAttachment type satisfies the MappedNullable interface at compile time @@ -21,18 +21,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"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Parent 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"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Parent interface{} `json:"parent,omitempty"` + Name *string `json:"name,omitempty"` + Image string `json:"image"` + ImageHeight int32 `json:"image_height"` + ImageWidth int32 `json:"image_width"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,19 +42,16 @@ type _ImageAttachment ImageAttachment // 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 NewImageAttachment(id int32, url string, display string, objectType string, objectId int64, parent interface{}, image string, imageHeight int32, imageWidth int32, created NullableTime, lastUpdated NullableTime) *ImageAttachment { +func NewImageAttachment(id int32, url string, display string, objectType string, objectId int64, image string, imageHeight int32, imageWidth int32) *ImageAttachment { this := ImageAttachment{} this.Id = id this.Url = url this.Display = display this.ObjectType = objectType this.ObjectId = objectId - this.Parent = parent this.Image = image this.ImageHeight = imageHeight this.ImageWidth = imageWidth - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -90,6 +87,7 @@ func (o *ImageAttachment) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ImageAttachment) GetUrl() string { if o == nil { @@ -114,6 +112,7 @@ func (o *ImageAttachment) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *ImageAttachment) GetDisplay() string { if o == nil { @@ -138,6 +137,7 @@ func (o *ImageAttachment) SetDisplay(v string) { o.Display = v } + // GetObjectType returns the ObjectType field value func (o *ImageAttachment) GetObjectType() string { if o == nil { @@ -162,6 +162,7 @@ func (o *ImageAttachment) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *ImageAttachment) GetObjectId() int64 { if o == nil { @@ -186,18 +187,17 @@ func (o *ImageAttachment) SetObjectId(v int64) { o.ObjectId = v } -// GetParent returns the Parent field value -// If the value is explicit nil, the zero value for interface{} will be returned + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ImageAttachment) GetParent() interface{} { if o == nil { var ret interface{} return ret } - return o.Parent } -// GetParentOk returns a tuple with the Parent field value +// GetParentOk returns a tuple with the Parent 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 *ImageAttachment) GetParentOk() (*interface{}, bool) { @@ -207,7 +207,16 @@ func (o *ImageAttachment) GetParentOk() (*interface{}, bool) { return &o.Parent, true } -// SetParent sets field value +// HasParent returns a boolean if a field has been set. +func (o *ImageAttachment) HasParent() bool { + if o != nil && !IsNil(o.Parent) { + return true + } + + return false +} + +// SetParent gets a reference to the given interface{} and assigns it to the Parent field. func (o *ImageAttachment) SetParent(v interface{}) { o.Parent = v } @@ -268,6 +277,7 @@ func (o *ImageAttachment) SetImage(v string) { o.Image = v } + // GetImageHeight returns the ImageHeight field value func (o *ImageAttachment) GetImageHeight() int32 { if o == nil { @@ -292,6 +302,7 @@ func (o *ImageAttachment) SetImageHeight(v int32) { o.ImageHeight = v } + // GetImageWidth returns the ImageWidth field value func (o *ImageAttachment) GetImageWidth() int32 { if o == nil { @@ -316,18 +327,17 @@ func (o *ImageAttachment) SetImageWidth(v int32) { o.ImageWidth = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ImageAttachment) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ImageAttachment) GetCreatedOk() (*time.Time, bool) { @@ -337,23 +347,39 @@ func (o *ImageAttachment) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ImageAttachment) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ImageAttachment) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ImageAttachment) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ImageAttachment) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ImageAttachment) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ImageAttachment) GetLastUpdatedOk() (*time.Time, bool) { @@ -363,13 +389,31 @@ func (o *ImageAttachment) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ImageAttachment) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ImageAttachment) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ImageAttachment) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ImageAttachment) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ImageAttachment) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -392,8 +436,12 @@ func (o ImageAttachment) ToMap() (map[string]interface{}, error) { toSerialize["image"] = o.Image toSerialize["image_height"] = o.ImageHeight toSerialize["image_width"] = o.ImageWidth - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -412,28 +460,42 @@ func (o *ImageAttachment) UnmarshalJSON(data []byte) (err error) { "display", "object_type", "object_id", - "parent", "image", "image_height", "image_width", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varImageAttachment := _ImageAttachment{} err = json.Unmarshal(data, &varImageAttachment) @@ -500,3 +562,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 26ce0cc75e..5a78871a45 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "os" + "fmt" ) // checks if the ImageAttachmentRequest type satisfies the MappedNullable interface at compile time @@ -21,12 +21,10 @@ 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 { - ObjectType string `json:"object_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"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Name *string `json:"name,omitempty"` + Image *os.File `json:"image"` AdditionalProperties map[string]interface{} } @@ -36,13 +34,11 @@ type _ImageAttachmentRequest ImageAttachmentRequest // 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 NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32) *ImageAttachmentRequest { +func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File) *ImageAttachmentRequest { this := ImageAttachmentRequest{} this.ObjectType = objectType this.ObjectId = objectId this.Image = image - this.ImageHeight = imageHeight - this.ImageWidth = imageWidth return &this } @@ -78,6 +74,7 @@ func (o *ImageAttachmentRequest) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *ImageAttachmentRequest) GetObjectId() int64 { if o == nil { @@ -102,6 +99,7 @@ func (o *ImageAttachmentRequest) SetObjectId(v int64) { o.ObjectId = v } + // GetName returns the Name field value if set, zero value otherwise. func (o *ImageAttachmentRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -158,56 +156,9 @@ func (o *ImageAttachmentRequest) SetImage(v *os.File) { o.Image = v } -// GetImageHeight returns the ImageHeight field value -func (o *ImageAttachmentRequest) GetImageHeight() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageHeight, true -} - -// SetImageHeight sets field value -func (o *ImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = v -} - -// GetImageWidth returns the ImageWidth field value -func (o *ImageAttachmentRequest) GetImageWidth() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageWidth, true -} - -// SetImageWidth sets field value -func (o *ImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = v -} func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -222,8 +173,6 @@ func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name } toSerialize["image"] = o.Image - toSerialize["image_height"] = o.ImageHeight - toSerialize["image_width"] = o.ImageWidth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,24 +189,39 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { "object_type", "object_id", "image", - "image_height", - "image_width", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varImageAttachmentRequest := _ImageAttachmentRequest{} err = json.Unmarshal(data, &varImageAttachmentRequest) @@ -275,8 +239,6 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } @@ -318,3 +280,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 8990492b10..d3480c0456 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Interface type satisfies the MappedNullable interface at compile time @@ -21,62 +21,67 @@ 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 Device `json:"device"` - Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` + Module NullableBriefModule `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"` + PrimaryMacAddress NullableBriefMACAddress `json:"primary_mac_address,omitempty"` + MacAddresses []BriefMACAddress `json:"mac_addresses,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 NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLAN `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicy `json:"vlan_translation_policy,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - WirelessLink NullableNestedWirelessLink `json:"wireless_link"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + CableEnd string `json:"cable_end"` + WirelessLink NullableNestedWirelessLink `json:"wireless_link,omitempty"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `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 NullableString `json:"link_peers_type,omitempty"` + WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"` + ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _Interface Interface @@ -85,7 +90,7 @@ type _Interface Interface // 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 NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { +func NewInterface(id int32, url string, display string, device BriefDevice, name string, type_ InterfaceType, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { this := Interface{} this.Id = id this.Url = url @@ -93,17 +98,9 @@ func NewInterface(id int32, url string, display string, device Device, name stri this.Device = device this.Name = name this.Type = type_ - this.Cable = cable this.CableEnd = cableEnd - this.WirelessLink = wirelessLink this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.L2vpnTermination = l2vpnTermination - this.ConnectedEndpoints = connectedEndpoints - this.ConnectedEndpointsType = connectedEndpointsType this.ConnectedEndpointsReachable = connectedEndpointsReachable - this.Created = created - this.LastUpdated = lastUpdated this.CountIpaddresses = countIpaddresses this.CountFhrpGroups = countFhrpGroups this.Occupied = occupied @@ -142,6 +139,7 @@ func (o *Interface) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Interface) GetUrl() string { if o == nil { @@ -166,6 +164,39 @@ func (o *Interface) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Interface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Interface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Interface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Interface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Interface) GetDisplay() string { if o == nil { @@ -190,10 +221,11 @@ func (o *Interface) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *Interface) GetDevice() Device { +func (o *Interface) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -202,7 +234,7 @@ func (o *Interface) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Interface) GetDeviceOk() (*Device, bool) { +func (o *Interface) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -210,10 +242,11 @@ func (o *Interface) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Interface) SetDevice(v Device) { +func (o *Interface) SetDevice(v BriefDevice) { o.Device = v } + // GetVdcs returns the Vdcs field value if set, zero value otherwise. func (o *Interface) GetVdcs() []VirtualDeviceContext { if o == nil || IsNil(o.Vdcs) { @@ -247,9 +280,9 @@ func (o *Interface) SetVdcs(v []VirtualDeviceContext) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetModule() Module { +func (o *Interface) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -258,7 +291,7 @@ func (o *Interface) GetModule() Module { // GetModuleOk returns a tuple with the Module 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 *Interface) GetModuleOk() (*Module, bool) { +func (o *Interface) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -274,11 +307,10 @@ func (o *Interface) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *Interface) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *Interface) SetModule(v BriefModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *Interface) SetModuleNil() { o.Module.Set(nil) @@ -313,6 +345,7 @@ func (o *Interface) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *Interface) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -369,6 +402,7 @@ func (o *Interface) SetType(v InterfaceType) { o.Type = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *Interface) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -433,7 +467,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) @@ -476,7 +509,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) @@ -519,7 +551,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) @@ -562,7 +593,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) @@ -605,7 +635,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) @@ -616,6 +645,81 @@ func (o *Interface) UnsetMacAddress() { o.MacAddress.Unset() } +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Interface) GetPrimaryMacAddress() BriefMACAddress { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddress + return ret + } + return *o.PrimaryMacAddress.Get() +} + +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *Interface) GetPrimaryMacAddressOk() (*BriefMACAddress, bool) { + if o == nil { + return nil, false + } + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() +} + +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *Interface) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { + return true + } + + return false +} + +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddress and assigns it to the PrimaryMacAddress field. +func (o *Interface) SetPrimaryMacAddress(v BriefMACAddress) { + o.PrimaryMacAddress.Set(&v) +} +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *Interface) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) +} + +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *Interface) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() +} + +// GetMacAddresses returns the MacAddresses field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Interface) GetMacAddresses() []BriefMACAddress { + if o == nil { + var ret []BriefMACAddress + return ret + } + return o.MacAddresses +} + +// GetMacAddressesOk returns a tuple with the MacAddresses 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 *Interface) GetMacAddressesOk() ([]BriefMACAddress, bool) { + if o == nil || IsNil(o.MacAddresses) { + return nil, false + } + return o.MacAddresses, true +} + +// HasMacAddresses returns a boolean if a field has been set. +func (o *Interface) HasMacAddresses() bool { + if o != nil && !IsNil(o.MacAddresses) { + return true + } + + return false +} + +// SetMacAddresses gets a reference to the given []BriefMACAddress and assigns it to the MacAddresses field. +func (o *Interface) SetMacAddresses(v []BriefMACAddress) { + o.MacAddresses = v +} + // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Interface) GetSpeed() int32 { if o == nil || IsNil(o.Speed.Get()) { @@ -648,7 +752,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) @@ -691,7 +794,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) @@ -734,7 +836,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) @@ -1001,7 +1102,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) @@ -1044,7 +1144,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) @@ -1087,7 +1186,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) @@ -1099,9 +1197,9 @@ func (o *Interface) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetUntaggedVlan() VLAN { +func (o *Interface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -1110,7 +1208,7 @@ func (o *Interface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *Interface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -1126,11 +1224,10 @@ func (o *Interface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *Interface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *Interface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *Interface) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1173,6 +1270,90 @@ func (o *Interface) SetTaggedVlans(v []VLAN) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Interface) GetQinqSvlan() BriefVLAN { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLAN + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *Interface) GetQinqSvlanOk() (*BriefVLAN, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *Interface) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLAN and assigns it to the QinqSvlan field. +func (o *Interface) SetQinqSvlan(v BriefVLAN) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *Interface) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *Interface) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Interface) GetVlanTranslationPolicy() BriefVLANTranslationPolicy { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicy + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *Interface) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicy, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *Interface) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicy and assigns it to the VlanTranslationPolicy field. +func (o *Interface) SetVlanTranslationPolicy(v BriefVLANTranslationPolicy) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *Interface) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *Interface) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. func (o *Interface) GetMarkConnected() bool { if o == nil || IsNil(o.MarkConnected) { @@ -1205,31 +1386,47 @@ func (o *Interface) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *Interface) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Interface) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *Interface) GetCableOk() (*Cable, bool) { +func (o *Interface) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *Interface) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *Interface) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *Interface) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *Interface) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *Interface) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *Interface) GetCableEnd() string { @@ -1255,18 +1452,17 @@ func (o *Interface) SetCableEnd(v string) { o.CableEnd = v } -// GetWirelessLink returns the WirelessLink field value -// If the value is explicit nil, the zero value for NestedWirelessLink will be returned + +// GetWirelessLink returns the WirelessLink field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Interface) GetWirelessLink() NestedWirelessLink { - if o == nil || o.WirelessLink.Get() == nil { + if o == nil || IsNil(o.WirelessLink.Get()) { var ret NestedWirelessLink return ret } - return *o.WirelessLink.Get() } -// GetWirelessLinkOk returns a tuple with the WirelessLink field value +// GetWirelessLinkOk returns a tuple with the WirelessLink 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 *Interface) GetWirelessLinkOk() (*NestedWirelessLink, bool) { @@ -1276,10 +1472,28 @@ func (o *Interface) GetWirelessLinkOk() (*NestedWirelessLink, bool) { return o.WirelessLink.Get(), o.WirelessLink.IsSet() } -// SetWirelessLink sets field value +// HasWirelessLink returns a boolean if a field has been set. +func (o *Interface) HasWirelessLink() bool { + if o != nil && o.WirelessLink.IsSet() { + return true + } + + return false +} + +// SetWirelessLink gets a reference to the given NullableNestedWirelessLink and assigns it to the WirelessLink field. func (o *Interface) SetWirelessLink(v NestedWirelessLink) { o.WirelessLink.Set(&v) } +// SetWirelessLinkNil sets the value for WirelessLink to be an explicit nil +func (o *Interface) SetWirelessLinkNil() { + o.WirelessLink.Set(nil) +} + +// UnsetWirelessLink ensures that no value is present for WirelessLink, not even an explicit nil +func (o *Interface) UnsetWirelessLink() { + o.WirelessLink.Unset() +} // GetLinkPeers returns the LinkPeers field value func (o *Interface) GetLinkPeers() []interface{} { @@ -1305,28 +1519,47 @@ func (o *Interface) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Interface) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *Interface) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() +} + +// HasLinkPeersType returns a boolean if a field has been set. +func (o *Interface) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false } -// SetLinkPeersType sets field value +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *Interface) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *Interface) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) +} + +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *Interface) UnsetLinkPeersType() { + o.LinkPeersType.Unset() } // GetWirelessLans returns the WirelessLans field value if set, zero value otherwise. @@ -1362,9 +1595,9 @@ func (o *Interface) SetWirelessLans(v []WirelessLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetVrf() VRF { +func (o *Interface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -1373,7 +1606,7 @@ func (o *Interface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf 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 *Interface) GetVrfOk() (*VRF, bool) { +func (o *Interface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -1389,11 +1622,10 @@ func (o *Interface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Interface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Interface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *Interface) SetVrfNil() { o.Vrf.Set(nil) @@ -1404,78 +1636,121 @@ func (o *Interface) UnsetVrf() { o.Vrf.Unset() } -// GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *Interface) GetL2vpnTermination() L2VPNTermination { - if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination +// GetL2vpnTermination returns the L2vpnTermination field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination { + if o == nil || IsNil(o.L2vpnTermination.Get()) { + var ret BriefL2VPNTermination return ret } - return *o.L2vpnTermination.Get() } -// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value +// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination 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 *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet() } -// SetL2vpnTermination sets field value -func (o *Interface) SetL2vpnTermination(v L2VPNTermination) { +// HasL2vpnTermination returns a boolean if a field has been set. +func (o *Interface) HasL2vpnTermination() bool { + if o != nil && o.L2vpnTermination.IsSet() { + return true + } + + return false +} + +// SetL2vpnTermination gets a reference to the given NullableBriefL2VPNTermination and assigns it to the L2vpnTermination field. +func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } +// SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil +func (o *Interface) SetL2vpnTerminationNil() { + o.L2vpnTermination.Set(nil) +} + +// UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +func (o *Interface) UnsetL2vpnTermination() { + o.L2vpnTermination.Unset() +} -// GetConnectedEndpoints returns the ConnectedEndpoints field value +// GetConnectedEndpoints returns the ConnectedEndpoints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Interface) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} return ret } - return o.ConnectedEndpoints } -// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints 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 *Interface) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true } -// SetConnectedEndpoints sets field value +// HasConnectedEndpoints returns a boolean if a field has been set. +func (o *Interface) HasConnectedEndpoints() bool { + if o != nil && !IsNil(o.ConnectedEndpoints) { + return true + } + + return false +} + +// SetConnectedEndpoints gets a reference to the given []interface{} and assigns it to the ConnectedEndpoints field. func (o *Interface) SetConnectedEndpoints(v []interface{}) { o.ConnectedEndpoints = v } -// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Interface) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpointsType.Get()) { var ret string return ret } - - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } -// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType 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 *Interface) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } -// SetConnectedEndpointsType sets field value +// HasConnectedEndpointsType returns a boolean if a field has been set. +func (o *Interface) HasConnectedEndpointsType() bool { + if o != nil && o.ConnectedEndpointsType.IsSet() { + return true + } + + return false +} + +// SetConnectedEndpointsType gets a reference to the given NullableString and assigns it to the ConnectedEndpointsType field. func (o *Interface) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) +} +// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil +func (o *Interface) SetConnectedEndpointsTypeNil() { + o.ConnectedEndpointsType.Set(nil) +} + +// UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +func (o *Interface) UnsetConnectedEndpointsType() { + o.ConnectedEndpointsType.Unset() } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -1502,6 +1777,7 @@ func (o *Interface) SetConnectedEndpointsReachable(v bool) { o.ConnectedEndpointsReachable = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *Interface) GetTags() []NestedTag { if o == nil || IsNil(o.Tags) { @@ -1566,18 +1842,16 @@ func (o *Interface) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Interface) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *Interface) GetCreatedOk() (*time.Time, bool) { @@ -1587,23 +1861,39 @@ func (o *Interface) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Interface) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Interface) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Interface) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Interface) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Interface) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Interface) GetLastUpdatedOk() (*time.Time, bool) { @@ -1613,10 +1903,28 @@ func (o *Interface) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Interface) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Interface) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Interface) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Interface) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetCountIpaddresses returns the CountIpaddresses field value func (o *Interface) GetCountIpaddresses() int32 { @@ -1642,6 +1950,7 @@ func (o *Interface) SetCountIpaddresses(v int32) { o.CountIpaddresses = v } + // GetCountFhrpGroups returns the CountFhrpGroups field value func (o *Interface) GetCountFhrpGroups() int32 { if o == nil { @@ -1666,6 +1975,7 @@ func (o *Interface) SetCountFhrpGroups(v int32) { o.CountFhrpGroups = v } + // GetOccupied returns the Occupied field value func (o *Interface) GetOccupied() bool { if o == nil { @@ -1690,8 +2000,9 @@ func (o *Interface) SetOccupied(v bool) { o.Occupied = v } + func (o Interface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1702,6 +2013,9 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if !IsNil(o.Vdcs) { @@ -1733,6 +2047,12 @@ func (o Interface) ToMap() (map[string]interface{}, error) { if o.MacAddress.IsSet() { toSerialize["mac_address"] = o.MacAddress.Get() } + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() + } + if o.MacAddresses != nil { + toSerialize["mac_addresses"] = o.MacAddresses + } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() } @@ -1778,23 +2098,41 @@ func (o Interface) ToMap() (map[string]interface{}, error) { if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } toSerialize["cable_end"] = o.CableEnd - toSerialize["wireless_link"] = o.WirelessLink.Get() + if o.WirelessLink.IsSet() { + toSerialize["wireless_link"] = o.WirelessLink.Get() + } toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } if !IsNil(o.WirelessLans) { toSerialize["wireless_lans"] = o.WirelessLans } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } - toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + if o.L2vpnTermination.IsSet() { + toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() + } + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + if o.ConnectedEndpointsType.IsSet() { + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + } toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -1802,8 +2140,12 @@ func (o Interface) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["count_ipaddresses"] = o.CountIpaddresses toSerialize["count_fhrp_groups"] = o.CountFhrpGroups toSerialize["_occupied"] = o.Occupied @@ -1826,36 +2168,45 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { "device", "name", "type", - "cable", "cable_end", - "wireless_link", "link_peers", - "link_peers_type", - "l2vpn_termination", - "connected_endpoints", - "connected_endpoints_type", "connected_endpoints_reachable", - "created", - "last_updated", "count_ipaddresses", "count_fhrp_groups", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInterface := _Interface{} err = json.Unmarshal(data, &varInterface) @@ -1871,6 +2222,7 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "vdcs") @@ -1884,6 +2236,8 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "lag") delete(additionalProperties, "mtu") delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") + delete(additionalProperties, "mac_addresses") delete(additionalProperties, "speed") delete(additionalProperties, "duplex") delete(additionalProperties, "wwn") @@ -1899,6 +2253,8 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "tx_power") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "mark_connected") delete(additionalProperties, "cable") delete(additionalProperties, "cable_end") @@ -1959,3 +2315,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 aa73ec088b..fb0c6751ac 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceDuplex{} // InterfaceDuplex struct for InterfaceDuplex type InterfaceDuplex struct { - Value *InterfaceDuplexValue `json:"value,omitempty"` - Label *InterfaceDuplexLabel `json:"label,omitempty"` + Value *InterfaceDuplexValue `json:"value,omitempty"` + Label *InterfaceDuplexLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceDuplex) SetLabel(v InterfaceDuplexLabel) { } func (o InterfaceDuplex) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableInterfaceDuplex) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go index eaab1a072f..babb88eb91 100644 --- a/model_interface_duplex_label.go +++ b/model_interface_duplex_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullableInterfaceDuplexLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go index 93e3ce1203..7fc3a2d5c0 100644 --- a/model_interface_duplex_value.go +++ b/model_interface_duplex_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type InterfaceDuplexValue string // List of Interface_duplex_value const ( - INTERFACEDUPLEXVALUE_HALF InterfaceDuplexValue = "half" - INTERFACEDUPLEXVALUE_FULL InterfaceDuplexValue = "full" - INTERFACEDUPLEXVALUE_AUTO InterfaceDuplexValue = "auto" + INTERFACEDUPLEXVALUE_HALF InterfaceDuplexValue = "half" + INTERFACEDUPLEXVALUE_FULL InterfaceDuplexValue = "full" + INTERFACEDUPLEXVALUE_AUTO InterfaceDuplexValue = "auto" INTERFACEDUPLEXVALUE_EMPTY InterfaceDuplexValue = "" ) @@ -112,3 +112,4 @@ func (v *NullableInterfaceDuplexValue) 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 9441de5dd8..800a58972c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceMode{} // InterfaceMode struct for InterfaceMode type InterfaceMode struct { - Value *InterfaceModeValue `json:"value,omitempty"` - Label *InterfaceModeLabel `json:"label,omitempty"` + Value *InterfaceModeValue `json:"value,omitempty"` + Label *InterfaceModeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceMode) SetLabel(v InterfaceModeLabel) { } func (o InterfaceMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableInterfaceMode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go index cde6b2ae1d..23eb981284 100644 --- a/model_interface_mode_label.go +++ b/model_interface_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,10 @@ type InterfaceModeLabel string // List of Interface_mode_label const ( - INTERFACEMODELABEL_ACCESS InterfaceModeLabel = "Access" - INTERFACEMODELABEL_TAGGED InterfaceModeLabel = "Tagged" + INTERFACEMODELABEL_ACCESS InterfaceModeLabel = "Access" + INTERFACEMODELABEL_TAGGED InterfaceModeLabel = "Tagged" INTERFACEMODELABEL_TAGGED__ALL InterfaceModeLabel = "Tagged (All)" + INTERFACEMODELABEL_Q_IN_Q__802_1AD InterfaceModeLabel = "Q-in-Q (802.1ad)" ) // All allowed values of InterfaceModeLabel enum @@ -30,6 +31,7 @@ var AllowedInterfaceModeLabelEnumValues = []InterfaceModeLabel{ "Access", "Tagged", "Tagged (All)", + "Q-in-Q (802.1ad)", } func (v *InterfaceModeLabel) UnmarshalJSON(src []byte) error { @@ -110,3 +112,4 @@ func (v *NullableInterfaceModeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go index f057fe019a..e695c57590 100644 --- a/model_interface_mode_value.go +++ b/model_interface_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,15 +15,16 @@ import ( "fmt" ) -// InterfaceModeValue * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) +// InterfaceModeValue * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) type InterfaceModeValue string // List of Interface_mode_value const ( - INTERFACEMODEVALUE_ACCESS InterfaceModeValue = "access" - INTERFACEMODEVALUE_TAGGED InterfaceModeValue = "tagged" + INTERFACEMODEVALUE_ACCESS InterfaceModeValue = "access" + INTERFACEMODEVALUE_TAGGED InterfaceModeValue = "tagged" INTERFACEMODEVALUE_TAGGED_ALL InterfaceModeValue = "tagged-all" - INTERFACEMODEVALUE_EMPTY InterfaceModeValue = "" + INTERFACEMODEVALUE_Q_IN_Q InterfaceModeValue = "q-in-q" + INTERFACEMODEVALUE_EMPTY InterfaceModeValue = "" ) // All allowed values of InterfaceModeValue enum @@ -31,6 +32,7 @@ var AllowedInterfaceModeValueEnumValues = []InterfaceModeValue{ "access", "tagged", "tagged-all", + "q-in-q", "", } @@ -112,3 +114,4 @@ func (v *NullableInterfaceModeValue) 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 8f365d75eb..e20de9dc8a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfacePoeMode{} // InterfacePoeMode struct for InterfacePoeMode type InterfacePoeMode struct { - Value *InterfacePoeModeValue `json:"value,omitempty"` - Label *InterfacePoeModeLabel `json:"label,omitempty"` + Value *InterfacePoeModeValue `json:"value,omitempty"` + Label *InterfacePoeModeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfacePoeMode) SetLabel(v InterfacePoeModeLabel) { } func (o InterfacePoeMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableInterfacePoeMode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go index 7736be9cc7..633167ac82 100644 --- a/model_interface_poe_mode_label.go +++ b/model_interface_poe_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type InterfacePoeModeLabel string // List of Interface_poe_mode_label const ( - INTERFACEPOEMODELABEL_PD InterfacePoeModeLabel = "PD" + INTERFACEPOEMODELABEL_PD InterfacePoeModeLabel = "PD" INTERFACEPOEMODELABEL_PSE InterfacePoeModeLabel = "PSE" ) @@ -108,3 +108,4 @@ func (v *NullableInterfacePoeModeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go index 4e044ad153..2e99e4c5a0 100644 --- a/model_interface_poe_mode_value.go +++ b/model_interface_poe_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type InterfacePoeModeValue string // List of Interface_poe_mode_value const ( - INTERFACEPOEMODEVALUE_PD InterfacePoeModeValue = "pd" - INTERFACEPOEMODEVALUE_PSE InterfacePoeModeValue = "pse" + INTERFACEPOEMODEVALUE_PD InterfacePoeModeValue = "pd" + INTERFACEPOEMODEVALUE_PSE InterfacePoeModeValue = "pse" INTERFACEPOEMODEVALUE_EMPTY InterfacePoeModeValue = "" ) @@ -110,3 +110,4 @@ func (v *NullableInterfacePoeModeValue) 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 ef7c2e113e..48371c5cca 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfacePoeType{} // InterfacePoeType struct for InterfacePoeType type InterfacePoeType struct { - Value *InterfacePoeTypeValue `json:"value,omitempty"` - Label *InterfacePoeTypeLabel `json:"label,omitempty"` + Value *InterfacePoeTypeValue `json:"value,omitempty"` + Label *InterfacePoeTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfacePoeType) SetLabel(v InterfacePoeTypeLabel) { } func (o InterfacePoeType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableInterfacePoeType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go index 21265631bd..975afc2123 100644 --- a/model_interface_poe_type_label.go +++ b/model_interface_poe_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ type InterfacePoeTypeLabel string // List of Interface_poe_type_label const ( - INTERFACEPOETYPELABEL__802_3AF__TYPE_1 InterfacePoeTypeLabel = "802.3af (Type 1)" - INTERFACEPOETYPELABEL__802_3AT__TYPE_2 InterfacePoeTypeLabel = "802.3at (Type 2)" - INTERFACEPOETYPELABEL__802_3BT__TYPE_3 InterfacePoeTypeLabel = "802.3bt (Type 3)" - INTERFACEPOETYPELABEL__802_3BT__TYPE_4 InterfacePoeTypeLabel = "802.3bt (Type 4)" + INTERFACEPOETYPELABEL__802_3AF__TYPE_1 InterfacePoeTypeLabel = "802.3af (Type 1)" + INTERFACEPOETYPELABEL__802_3AT__TYPE_2 InterfacePoeTypeLabel = "802.3at (Type 2)" + INTERFACEPOETYPELABEL__802_3BT__TYPE_3 InterfacePoeTypeLabel = "802.3bt (Type 3)" + INTERFACEPOETYPELABEL__802_3BT__TYPE_4 InterfacePoeTypeLabel = "802.3bt (Type 4)" INTERFACEPOETYPELABEL_PASSIVE_24_V__2_PAIR InterfacePoeTypeLabel = "Passive 24V (2-pair)" INTERFACEPOETYPELABEL_PASSIVE_24_V__4_PAIR InterfacePoeTypeLabel = "Passive 24V (4-pair)" INTERFACEPOETYPELABEL_PASSIVE_48_V__2_PAIR InterfacePoeTypeLabel = "Passive 48V (2-pair)" @@ -120,3 +120,4 @@ func (v *NullableInterfacePoeTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go index d1f9f85a3b..a8a709256b 100644 --- a/model_interface_poe_type_value.go +++ b/model_interface_poe_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,7 +28,7 @@ const ( INTERFACEPOETYPEVALUE_PASSIVE_24V_4PAIR InterfacePoeTypeValue = "passive-24v-4pair" INTERFACEPOETYPEVALUE_PASSIVE_48V_2PAIR InterfacePoeTypeValue = "passive-48v-2pair" INTERFACEPOETYPEVALUE_PASSIVE_48V_4PAIR InterfacePoeTypeValue = "passive-48v-4pair" - INTERFACEPOETYPEVALUE_EMPTY InterfacePoeTypeValue = "" + INTERFACEPOETYPEVALUE_EMPTY InterfacePoeTypeValue = "" ) // All allowed values of InterfacePoeTypeValue enum @@ -122,3 +122,4 @@ func (v *NullableInterfacePoeTypeValue) 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 b066995e98..6969bf1c22 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,43 +20,45 @@ var _ MappedNullable = &InterfaceRequest{} // InterfaceRequest Adds support for custom fields and tags. type InterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type InterfaceTypeValue `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"` - Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"` - Wwn NullableString `json:"wwn,omitempty"` + Label *string `json:"label,omitempty"` + Type InterfaceTypeValue `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"` + PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Duplex NullableInterfaceRequestDuplex `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 *InterfaceModeValue `json:"mode,omitempty"` - RfRole *InterfaceRfRoleValue `json:"rf_role,omitempty"` - RfChannel *InterfaceRfChannelValue `json:"rf_channel,omitempty"` - PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` - PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceModeValue `json:"mode,omitempty"` + RfRole *InterfaceRfRoleValue `json:"rf_role,omitempty"` + RfChannel *InterfaceRfChannelValue `json:"rf_channel,omitempty"` + PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` + PoeType *InterfacePoeTypeValue `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 NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `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 NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +68,7 @@ type _InterfaceRequest InterfaceRequest // 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 NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { +func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { this := InterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +85,9 @@ func NewInterfaceRequestWithDefaults() *InterfaceRequest { } // GetDevice returns the Device field value -func (o *InterfaceRequest) GetDevice() DeviceRequest { +func (o *InterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +96,7 @@ func (o *InterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,10 +104,11 @@ func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InterfaceRequest) SetDevice(v DeviceRequest) { +func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetVdcs returns the Vdcs field value if set, zero value otherwise. func (o *InterfaceRequest) GetVdcs() []int32 { if o == nil || IsNil(o.Vdcs) { @@ -139,9 +142,9 @@ func (o *InterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetModule() ModuleRequest { +func (o *InterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +153,7 @@ func (o *InterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,11 +169,10 @@ func (o *InterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *InterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *InterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *InterfaceRequest) SetModuleNil() { o.Module.Set(nil) @@ -205,6 +207,7 @@ func (o *InterfaceRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *InterfaceRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -261,6 +264,7 @@ func (o *InterfaceRequest) SetType(v InterfaceTypeValue) { o.Type = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *InterfaceRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -325,7 +329,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) @@ -368,7 +371,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) @@ -411,7 +413,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) @@ -454,7 +455,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) @@ -465,47 +465,46 @@ func (o *InterfaceRequest) UnsetMtu() { o.Mtu.Unset() } -// GetMacAddress returns the MacAddress field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetMacAddress() string { - if o == nil || IsNil(o.MacAddress.Get()) { - var ret string +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddressRequest return ret } - return *o.MacAddress.Get() + return *o.PrimaryMacAddress.Get() } -// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *InterfaceRequest) GetMacAddressOk() (*string, bool) { +func (o *InterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) { if o == nil { return nil, false } - return o.MacAddress.Get(), o.MacAddress.IsSet() + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() } -// HasMacAddress returns a boolean if a field has been set. -func (o *InterfaceRequest) HasMacAddress() bool { - if o != nil && o.MacAddress.IsSet() { +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *InterfaceRequest) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { return true } return false } -// SetMacAddress gets a reference to the given NullableString and assigns it to the MacAddress field. -func (o *InterfaceRequest) SetMacAddress(v string) { - o.MacAddress.Set(&v) +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field. +func (o *InterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) { + o.PrimaryMacAddress.Set(&v) } - -// SetMacAddressNil sets the value for MacAddress to be an explicit nil -func (o *InterfaceRequest) SetMacAddressNil() { - o.MacAddress.Set(nil) +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *InterfaceRequest) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) } -// UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil -func (o *InterfaceRequest) UnsetMacAddress() { - o.MacAddress.Unset() +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *InterfaceRequest) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() } // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -540,7 +539,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) @@ -583,7 +581,6 @@ func (o *InterfaceRequest) HasDuplex() bool { func (o *InterfaceRequest) SetDuplex(v InterfaceRequestDuplex) { o.Duplex.Set(&v) } - // SetDuplexNil sets the value for Duplex to be an explicit nil func (o *InterfaceRequest) SetDuplexNil() { o.Duplex.Set(nil) @@ -626,7 +623,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) @@ -893,7 +889,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) @@ -936,7 +931,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) @@ -979,7 +973,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) @@ -991,9 +984,9 @@ func (o *InterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +995,7 @@ func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,11 +1011,10 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *InterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1065,6 +1057,90 @@ func (o *InterfaceRequest) SetTaggedVlans(v []int32) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InterfaceRequest) GetQinqSvlan() BriefVLANRequest { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLANRequest + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *InterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *InterfaceRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field. +func (o *InterfaceRequest) SetQinqSvlan(v BriefVLANRequest) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *InterfaceRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *InterfaceRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicyRequest + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *InterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *InterfaceRequest) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field. +func (o *InterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *InterfaceRequest) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *InterfaceRequest) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. func (o *InterfaceRequest) GetMarkConnected() bool { if o == nil || IsNil(o.MarkConnected) { @@ -1130,9 +1206,9 @@ func (o *InterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetVrf() VRFRequest { +func (o *InterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1217,7 @@ func (o *InterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *InterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,11 +1233,10 @@ func (o *InterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *InterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *InterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *InterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -1237,7 +1312,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 } @@ -1273,8 +1348,8 @@ func (o InterfaceRequest) ToMap() (map[string]interface{}, error) { if o.Mtu.IsSet() { toSerialize["mtu"] = o.Mtu.Get() } - if o.MacAddress.IsSet() { - toSerialize["mac_address"] = o.MacAddress.Get() + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() @@ -1321,6 +1396,12 @@ func (o InterfaceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } @@ -1354,20 +1435,37 @@ func (o *InterfaceRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInterfaceRequest := _InterfaceRequest{} err = json.Unmarshal(data, &varInterfaceRequest) @@ -1392,7 +1490,7 @@ func (o *InterfaceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "bridge") delete(additionalProperties, "lag") delete(additionalProperties, "mtu") - delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") delete(additionalProperties, "speed") delete(additionalProperties, "duplex") delete(additionalProperties, "wwn") @@ -1408,6 +1506,8 @@ func (o *InterfaceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "tx_power") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "mark_connected") delete(additionalProperties, "wireless_lans") delete(additionalProperties, "vrf") @@ -1454,3 +1554,5 @@ func (v *NullableInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go index 2cfab20fa6..6419a645fb 100644 --- a/model_interface_request_duplex.go +++ b/model_interface_request_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type InterfaceRequestDuplex string // List of InterfaceRequest_duplex const ( - INTERFACEREQUESTDUPLEX_HALF InterfaceRequestDuplex = "half" - INTERFACEREQUESTDUPLEX_FULL InterfaceRequestDuplex = "full" - INTERFACEREQUESTDUPLEX_AUTO InterfaceRequestDuplex = "auto" + INTERFACEREQUESTDUPLEX_HALF InterfaceRequestDuplex = "half" + INTERFACEREQUESTDUPLEX_FULL InterfaceRequestDuplex = "full" + INTERFACEREQUESTDUPLEX_AUTO InterfaceRequestDuplex = "auto" INTERFACEREQUESTDUPLEX_EMPTY InterfaceRequestDuplex = "" ) @@ -112,3 +112,4 @@ func (v *NullableInterfaceRequestDuplex) 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 6cdd517fac..b8815229c9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceRfChannel{} // InterfaceRfChannel struct for InterfaceRfChannel type InterfaceRfChannel struct { - Value *InterfaceRfChannelValue `json:"value,omitempty"` - Label *InterfaceRfChannelLabel `json:"label,omitempty"` + Value *InterfaceRfChannelValue `json:"value,omitempty"` + Label *InterfaceRfChannelLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceRfChannel) SetLabel(v InterfaceRfChannelLabel) { } func (o InterfaceRfChannel) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableInterfaceRfChannel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go index c6ca5df46e..1cc21cdd43 100644 --- a/model_interface_rf_channel_label.go +++ b/model_interface_rf_channel_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,192 +20,192 @@ type InterfaceRfChannelLabel string // List of Interface_rf_channel_label const ( - INTERFACERFCHANNELLABEL__1__2412_MHZ InterfaceRfChannelLabel = "1 (2412 MHz)" - INTERFACERFCHANNELLABEL__2__2417_MHZ InterfaceRfChannelLabel = "2 (2417 MHz)" - INTERFACERFCHANNELLABEL__3__2422_MHZ InterfaceRfChannelLabel = "3 (2422 MHz)" - INTERFACERFCHANNELLABEL__4__2427_MHZ InterfaceRfChannelLabel = "4 (2427 MHz)" - INTERFACERFCHANNELLABEL__5__2432_MHZ InterfaceRfChannelLabel = "5 (2432 MHz)" - INTERFACERFCHANNELLABEL__6__2437_MHZ InterfaceRfChannelLabel = "6 (2437 MHz)" - INTERFACERFCHANNELLABEL__7__2442_MHZ InterfaceRfChannelLabel = "7 (2442 MHz)" - INTERFACERFCHANNELLABEL__8__2447_MHZ InterfaceRfChannelLabel = "8 (2447 MHz)" - INTERFACERFCHANNELLABEL__9__2452_MHZ InterfaceRfChannelLabel = "9 (2452 MHz)" - INTERFACERFCHANNELLABEL__10__2457_MHZ InterfaceRfChannelLabel = "10 (2457 MHz)" - INTERFACERFCHANNELLABEL__11__2462_MHZ InterfaceRfChannelLabel = "11 (2462 MHz)" - INTERFACERFCHANNELLABEL__12__2467_MHZ InterfaceRfChannelLabel = "12 (2467 MHz)" - INTERFACERFCHANNELLABEL__13__2472_MHZ InterfaceRfChannelLabel = "13 (2472 MHz)" - INTERFACERFCHANNELLABEL__32__5160_20_MHZ InterfaceRfChannelLabel = "32 (5160/20 MHz)" - INTERFACERFCHANNELLABEL__34__5170_40_MHZ InterfaceRfChannelLabel = "34 (5170/40 MHz)" - INTERFACERFCHANNELLABEL__36__5180_20_MHZ InterfaceRfChannelLabel = "36 (5180/20 MHz)" - INTERFACERFCHANNELLABEL__38__5190_40_MHZ InterfaceRfChannelLabel = "38 (5190/40 MHz)" - INTERFACERFCHANNELLABEL__40__5200_20_MHZ InterfaceRfChannelLabel = "40 (5200/20 MHz)" - INTERFACERFCHANNELLABEL__42__5210_80_MHZ InterfaceRfChannelLabel = "42 (5210/80 MHz)" - INTERFACERFCHANNELLABEL__44__5220_20_MHZ InterfaceRfChannelLabel = "44 (5220/20 MHz)" - INTERFACERFCHANNELLABEL__46__5230_40_MHZ InterfaceRfChannelLabel = "46 (5230/40 MHz)" - INTERFACERFCHANNELLABEL__48__5240_20_MHZ InterfaceRfChannelLabel = "48 (5240/20 MHz)" - INTERFACERFCHANNELLABEL__50__5250_160_MHZ InterfaceRfChannelLabel = "50 (5250/160 MHz)" - INTERFACERFCHANNELLABEL__52__5260_20_MHZ InterfaceRfChannelLabel = "52 (5260/20 MHz)" - INTERFACERFCHANNELLABEL__54__5270_40_MHZ InterfaceRfChannelLabel = "54 (5270/40 MHz)" - INTERFACERFCHANNELLABEL__56__5280_20_MHZ InterfaceRfChannelLabel = "56 (5280/20 MHz)" - INTERFACERFCHANNELLABEL__58__5290_80_MHZ InterfaceRfChannelLabel = "58 (5290/80 MHz)" - INTERFACERFCHANNELLABEL__60__5300_20_MHZ InterfaceRfChannelLabel = "60 (5300/20 MHz)" - INTERFACERFCHANNELLABEL__62__5310_40_MHZ InterfaceRfChannelLabel = "62 (5310/40 MHz)" - INTERFACERFCHANNELLABEL__64__5320_20_MHZ InterfaceRfChannelLabel = "64 (5320/20 MHz)" - INTERFACERFCHANNELLABEL__100__5500_20_MHZ InterfaceRfChannelLabel = "100 (5500/20 MHz)" - INTERFACERFCHANNELLABEL__102__5510_40_MHZ InterfaceRfChannelLabel = "102 (5510/40 MHz)" - INTERFACERFCHANNELLABEL__104__5520_20_MHZ InterfaceRfChannelLabel = "104 (5520/20 MHz)" - INTERFACERFCHANNELLABEL__106__5530_80_MHZ InterfaceRfChannelLabel = "106 (5530/80 MHz)" - INTERFACERFCHANNELLABEL__108__5540_20_MHZ InterfaceRfChannelLabel = "108 (5540/20 MHz)" - INTERFACERFCHANNELLABEL__110__5550_40_MHZ InterfaceRfChannelLabel = "110 (5550/40 MHz)" - INTERFACERFCHANNELLABEL__112__5560_20_MHZ InterfaceRfChannelLabel = "112 (5560/20 MHz)" - INTERFACERFCHANNELLABEL__114__5570_160_MHZ InterfaceRfChannelLabel = "114 (5570/160 MHz)" - INTERFACERFCHANNELLABEL__116__5580_20_MHZ InterfaceRfChannelLabel = "116 (5580/20 MHz)" - INTERFACERFCHANNELLABEL__118__5590_40_MHZ InterfaceRfChannelLabel = "118 (5590/40 MHz)" - INTERFACERFCHANNELLABEL__120__5600_20_MHZ InterfaceRfChannelLabel = "120 (5600/20 MHz)" - INTERFACERFCHANNELLABEL__122__5610_80_MHZ InterfaceRfChannelLabel = "122 (5610/80 MHz)" - INTERFACERFCHANNELLABEL__124__5620_20_MHZ InterfaceRfChannelLabel = "124 (5620/20 MHz)" - INTERFACERFCHANNELLABEL__126__5630_40_MHZ InterfaceRfChannelLabel = "126 (5630/40 MHz)" - INTERFACERFCHANNELLABEL__128__5640_20_MHZ InterfaceRfChannelLabel = "128 (5640/20 MHz)" - INTERFACERFCHANNELLABEL__132__5660_20_MHZ InterfaceRfChannelLabel = "132 (5660/20 MHz)" - INTERFACERFCHANNELLABEL__134__5670_40_MHZ InterfaceRfChannelLabel = "134 (5670/40 MHz)" - INTERFACERFCHANNELLABEL__136__5680_20_MHZ InterfaceRfChannelLabel = "136 (5680/20 MHz)" - INTERFACERFCHANNELLABEL__138__5690_80_MHZ InterfaceRfChannelLabel = "138 (5690/80 MHz)" - INTERFACERFCHANNELLABEL__140__5700_20_MHZ InterfaceRfChannelLabel = "140 (5700/20 MHz)" - INTERFACERFCHANNELLABEL__142__5710_40_MHZ InterfaceRfChannelLabel = "142 (5710/40 MHz)" - INTERFACERFCHANNELLABEL__144__5720_20_MHZ InterfaceRfChannelLabel = "144 (5720/20 MHz)" - INTERFACERFCHANNELLABEL__149__5745_20_MHZ InterfaceRfChannelLabel = "149 (5745/20 MHz)" - INTERFACERFCHANNELLABEL__151__5755_40_MHZ InterfaceRfChannelLabel = "151 (5755/40 MHz)" - INTERFACERFCHANNELLABEL__153__5765_20_MHZ InterfaceRfChannelLabel = "153 (5765/20 MHz)" - INTERFACERFCHANNELLABEL__155__5775_80_MHZ InterfaceRfChannelLabel = "155 (5775/80 MHz)" - INTERFACERFCHANNELLABEL__157__5785_20_MHZ InterfaceRfChannelLabel = "157 (5785/20 MHz)" - INTERFACERFCHANNELLABEL__159__5795_40_MHZ InterfaceRfChannelLabel = "159 (5795/40 MHz)" - INTERFACERFCHANNELLABEL__161__5805_20_MHZ InterfaceRfChannelLabel = "161 (5805/20 MHz)" - INTERFACERFCHANNELLABEL__163__5815_160_MHZ InterfaceRfChannelLabel = "163 (5815/160 MHz)" - INTERFACERFCHANNELLABEL__165__5825_20_MHZ InterfaceRfChannelLabel = "165 (5825/20 MHz)" - INTERFACERFCHANNELLABEL__167__5835_40_MHZ InterfaceRfChannelLabel = "167 (5835/40 MHz)" - INTERFACERFCHANNELLABEL__169__5845_20_MHZ InterfaceRfChannelLabel = "169 (5845/20 MHz)" - INTERFACERFCHANNELLABEL__171__5855_80_MHZ InterfaceRfChannelLabel = "171 (5855/80 MHz)" - INTERFACERFCHANNELLABEL__173__5865_20_MHZ InterfaceRfChannelLabel = "173 (5865/20 MHz)" - INTERFACERFCHANNELLABEL__175__5875_40_MHZ InterfaceRfChannelLabel = "175 (5875/40 MHz)" - INTERFACERFCHANNELLABEL__177__5885_20_MHZ InterfaceRfChannelLabel = "177 (5885/20 MHz)" - INTERFACERFCHANNELLABEL__1__5955_20_MHZ InterfaceRfChannelLabel = "1 (5955/20 MHz)" - INTERFACERFCHANNELLABEL__3__5965_40_MHZ InterfaceRfChannelLabel = "3 (5965/40 MHz)" - INTERFACERFCHANNELLABEL__5__5975_20_MHZ InterfaceRfChannelLabel = "5 (5975/20 MHz)" - INTERFACERFCHANNELLABEL__7__5985_80_MHZ InterfaceRfChannelLabel = "7 (5985/80 MHz)" - INTERFACERFCHANNELLABEL__9__5995_20_MHZ InterfaceRfChannelLabel = "9 (5995/20 MHz)" - INTERFACERFCHANNELLABEL__11__6005_40_MHZ InterfaceRfChannelLabel = "11 (6005/40 MHz)" - INTERFACERFCHANNELLABEL__13__6015_20_MHZ InterfaceRfChannelLabel = "13 (6015/20 MHz)" - INTERFACERFCHANNELLABEL__15__6025_160_MHZ InterfaceRfChannelLabel = "15 (6025/160 MHz)" - INTERFACERFCHANNELLABEL__17__6035_20_MHZ InterfaceRfChannelLabel = "17 (6035/20 MHz)" - INTERFACERFCHANNELLABEL__19__6045_40_MHZ InterfaceRfChannelLabel = "19 (6045/40 MHz)" - INTERFACERFCHANNELLABEL__21__6055_20_MHZ InterfaceRfChannelLabel = "21 (6055/20 MHz)" - INTERFACERFCHANNELLABEL__23__6065_80_MHZ InterfaceRfChannelLabel = "23 (6065/80 MHz)" - INTERFACERFCHANNELLABEL__25__6075_20_MHZ InterfaceRfChannelLabel = "25 (6075/20 MHz)" - INTERFACERFCHANNELLABEL__27__6085_40_MHZ InterfaceRfChannelLabel = "27 (6085/40 MHz)" - INTERFACERFCHANNELLABEL__29__6095_20_MHZ InterfaceRfChannelLabel = "29 (6095/20 MHz)" - INTERFACERFCHANNELLABEL__31__6105_320_MHZ InterfaceRfChannelLabel = "31 (6105/320 MHz)" - INTERFACERFCHANNELLABEL__33__6115_20_MHZ InterfaceRfChannelLabel = "33 (6115/20 MHz)" - INTERFACERFCHANNELLABEL__35__6125_40_MHZ InterfaceRfChannelLabel = "35 (6125/40 MHz)" - INTERFACERFCHANNELLABEL__37__6135_20_MHZ InterfaceRfChannelLabel = "37 (6135/20 MHz)" - INTERFACERFCHANNELLABEL__39__6145_80_MHZ InterfaceRfChannelLabel = "39 (6145/80 MHz)" - INTERFACERFCHANNELLABEL__41__6155_20_MHZ InterfaceRfChannelLabel = "41 (6155/20 MHz)" - INTERFACERFCHANNELLABEL__43__6165_40_MHZ InterfaceRfChannelLabel = "43 (6165/40 MHz)" - INTERFACERFCHANNELLABEL__45__6175_20_MHZ InterfaceRfChannelLabel = "45 (6175/20 MHz)" - INTERFACERFCHANNELLABEL__47__6185_160_MHZ InterfaceRfChannelLabel = "47 (6185/160 MHz)" - INTERFACERFCHANNELLABEL__49__6195_20_MHZ InterfaceRfChannelLabel = "49 (6195/20 MHz)" - INTERFACERFCHANNELLABEL__51__6205_40_MHZ InterfaceRfChannelLabel = "51 (6205/40 MHz)" - INTERFACERFCHANNELLABEL__53__6215_20_MHZ InterfaceRfChannelLabel = "53 (6215/20 MHz)" - INTERFACERFCHANNELLABEL__55__6225_80_MHZ InterfaceRfChannelLabel = "55 (6225/80 MHz)" - INTERFACERFCHANNELLABEL__57__6235_20_MHZ InterfaceRfChannelLabel = "57 (6235/20 MHz)" - INTERFACERFCHANNELLABEL__59__6245_40_MHZ InterfaceRfChannelLabel = "59 (6245/40 MHz)" - INTERFACERFCHANNELLABEL__61__6255_20_MHZ InterfaceRfChannelLabel = "61 (6255/20 MHz)" - INTERFACERFCHANNELLABEL__65__6275_20_MHZ InterfaceRfChannelLabel = "65 (6275/20 MHz)" - INTERFACERFCHANNELLABEL__67__6285_40_MHZ InterfaceRfChannelLabel = "67 (6285/40 MHz)" - INTERFACERFCHANNELLABEL__69__6295_20_MHZ InterfaceRfChannelLabel = "69 (6295/20 MHz)" - INTERFACERFCHANNELLABEL__71__6305_80_MHZ InterfaceRfChannelLabel = "71 (6305/80 MHz)" - INTERFACERFCHANNELLABEL__73__6315_20_MHZ InterfaceRfChannelLabel = "73 (6315/20 MHz)" - INTERFACERFCHANNELLABEL__75__6325_40_MHZ InterfaceRfChannelLabel = "75 (6325/40 MHz)" - INTERFACERFCHANNELLABEL__77__6335_20_MHZ InterfaceRfChannelLabel = "77 (6335/20 MHz)" - INTERFACERFCHANNELLABEL__79__6345_160_MHZ InterfaceRfChannelLabel = "79 (6345/160 MHz)" - INTERFACERFCHANNELLABEL__81__6355_20_MHZ InterfaceRfChannelLabel = "81 (6355/20 MHz)" - INTERFACERFCHANNELLABEL__83__6365_40_MHZ InterfaceRfChannelLabel = "83 (6365/40 MHz)" - INTERFACERFCHANNELLABEL__85__6375_20_MHZ InterfaceRfChannelLabel = "85 (6375/20 MHz)" - INTERFACERFCHANNELLABEL__87__6385_80_MHZ InterfaceRfChannelLabel = "87 (6385/80 MHz)" - INTERFACERFCHANNELLABEL__89__6395_20_MHZ InterfaceRfChannelLabel = "89 (6395/20 MHz)" - INTERFACERFCHANNELLABEL__91__6405_40_MHZ InterfaceRfChannelLabel = "91 (6405/40 MHz)" - INTERFACERFCHANNELLABEL__93__6415_20_MHZ InterfaceRfChannelLabel = "93 (6415/20 MHz)" - INTERFACERFCHANNELLABEL__95__6425_320_MHZ InterfaceRfChannelLabel = "95 (6425/320 MHz)" - INTERFACERFCHANNELLABEL__97__6435_20_MHZ InterfaceRfChannelLabel = "97 (6435/20 MHz)" - INTERFACERFCHANNELLABEL__99__6445_40_MHZ InterfaceRfChannelLabel = "99 (6445/40 MHz)" - INTERFACERFCHANNELLABEL__101__6455_20_MHZ InterfaceRfChannelLabel = "101 (6455/20 MHz)" - INTERFACERFCHANNELLABEL__103__6465_80_MHZ InterfaceRfChannelLabel = "103 (6465/80 MHz)" - INTERFACERFCHANNELLABEL__105__6475_20_MHZ InterfaceRfChannelLabel = "105 (6475/20 MHz)" - INTERFACERFCHANNELLABEL__107__6485_40_MHZ InterfaceRfChannelLabel = "107 (6485/40 MHz)" - INTERFACERFCHANNELLABEL__109__6495_20_MHZ InterfaceRfChannelLabel = "109 (6495/20 MHz)" - INTERFACERFCHANNELLABEL__111__6505_160_MHZ InterfaceRfChannelLabel = "111 (6505/160 MHz)" - INTERFACERFCHANNELLABEL__113__6515_20_MHZ InterfaceRfChannelLabel = "113 (6515/20 MHz)" - INTERFACERFCHANNELLABEL__115__6525_40_MHZ InterfaceRfChannelLabel = "115 (6525/40 MHz)" - INTERFACERFCHANNELLABEL__117__6535_20_MHZ InterfaceRfChannelLabel = "117 (6535/20 MHz)" - INTERFACERFCHANNELLABEL__119__6545_80_MHZ InterfaceRfChannelLabel = "119 (6545/80 MHz)" - INTERFACERFCHANNELLABEL__121__6555_20_MHZ InterfaceRfChannelLabel = "121 (6555/20 MHz)" - INTERFACERFCHANNELLABEL__123__6565_40_MHZ InterfaceRfChannelLabel = "123 (6565/40 MHz)" - INTERFACERFCHANNELLABEL__125__6575_20_MHZ InterfaceRfChannelLabel = "125 (6575/20 MHz)" - INTERFACERFCHANNELLABEL__129__6595_20_MHZ InterfaceRfChannelLabel = "129 (6595/20 MHz)" - INTERFACERFCHANNELLABEL__131__6605_40_MHZ InterfaceRfChannelLabel = "131 (6605/40 MHz)" - INTERFACERFCHANNELLABEL__133__6615_20_MHZ InterfaceRfChannelLabel = "133 (6615/20 MHz)" - INTERFACERFCHANNELLABEL__135__6625_80_MHZ InterfaceRfChannelLabel = "135 (6625/80 MHz)" - INTERFACERFCHANNELLABEL__137__6635_20_MHZ InterfaceRfChannelLabel = "137 (6635/20 MHz)" - INTERFACERFCHANNELLABEL__139__6645_40_MHZ InterfaceRfChannelLabel = "139 (6645/40 MHz)" - INTERFACERFCHANNELLABEL__141__6655_20_MHZ InterfaceRfChannelLabel = "141 (6655/20 MHz)" - INTERFACERFCHANNELLABEL__143__6665_160_MHZ InterfaceRfChannelLabel = "143 (6665/160 MHz)" - INTERFACERFCHANNELLABEL__145__6675_20_MHZ InterfaceRfChannelLabel = "145 (6675/20 MHz)" - INTERFACERFCHANNELLABEL__147__6685_40_MHZ InterfaceRfChannelLabel = "147 (6685/40 MHz)" - INTERFACERFCHANNELLABEL__149__6695_20_MHZ InterfaceRfChannelLabel = "149 (6695/20 MHz)" - INTERFACERFCHANNELLABEL__151__6705_80_MHZ InterfaceRfChannelLabel = "151 (6705/80 MHz)" - INTERFACERFCHANNELLABEL__153__6715_20_MHZ InterfaceRfChannelLabel = "153 (6715/20 MHz)" - INTERFACERFCHANNELLABEL__155__6725_40_MHZ InterfaceRfChannelLabel = "155 (6725/40 MHz)" - INTERFACERFCHANNELLABEL__157__6735_20_MHZ InterfaceRfChannelLabel = "157 (6735/20 MHz)" - INTERFACERFCHANNELLABEL__159__6745_320_MHZ InterfaceRfChannelLabel = "159 (6745/320 MHz)" - INTERFACERFCHANNELLABEL__161__6755_20_MHZ InterfaceRfChannelLabel = "161 (6755/20 MHz)" - INTERFACERFCHANNELLABEL__163__6765_40_MHZ InterfaceRfChannelLabel = "163 (6765/40 MHz)" - INTERFACERFCHANNELLABEL__165__6775_20_MHZ InterfaceRfChannelLabel = "165 (6775/20 MHz)" - INTERFACERFCHANNELLABEL__167__6785_80_MHZ InterfaceRfChannelLabel = "167 (6785/80 MHz)" - INTERFACERFCHANNELLABEL__169__6795_20_MHZ InterfaceRfChannelLabel = "169 (6795/20 MHz)" - INTERFACERFCHANNELLABEL__171__6805_40_MHZ InterfaceRfChannelLabel = "171 (6805/40 MHz)" - INTERFACERFCHANNELLABEL__173__6815_20_MHZ InterfaceRfChannelLabel = "173 (6815/20 MHz)" - INTERFACERFCHANNELLABEL__175__6825_160_MHZ InterfaceRfChannelLabel = "175 (6825/160 MHz)" - INTERFACERFCHANNELLABEL__177__6835_20_MHZ InterfaceRfChannelLabel = "177 (6835/20 MHz)" - INTERFACERFCHANNELLABEL__179__6845_40_MHZ InterfaceRfChannelLabel = "179 (6845/40 MHz)" - INTERFACERFCHANNELLABEL__181__6855_20_MHZ InterfaceRfChannelLabel = "181 (6855/20 MHz)" - INTERFACERFCHANNELLABEL__183__6865_80_MHZ InterfaceRfChannelLabel = "183 (6865/80 MHz)" - INTERFACERFCHANNELLABEL__185__6875_20_MHZ InterfaceRfChannelLabel = "185 (6875/20 MHz)" - INTERFACERFCHANNELLABEL__187__6885_40_MHZ InterfaceRfChannelLabel = "187 (6885/40 MHz)" - INTERFACERFCHANNELLABEL__189__6895_20_MHZ InterfaceRfChannelLabel = "189 (6895/20 MHz)" - INTERFACERFCHANNELLABEL__193__6915_20_MHZ InterfaceRfChannelLabel = "193 (6915/20 MHz)" - INTERFACERFCHANNELLABEL__195__6925_40_MHZ InterfaceRfChannelLabel = "195 (6925/40 MHz)" - INTERFACERFCHANNELLABEL__197__6935_20_MHZ InterfaceRfChannelLabel = "197 (6935/20 MHz)" - INTERFACERFCHANNELLABEL__199__6945_80_MHZ InterfaceRfChannelLabel = "199 (6945/80 MHz)" - INTERFACERFCHANNELLABEL__201__6955_20_MHZ InterfaceRfChannelLabel = "201 (6955/20 MHz)" - INTERFACERFCHANNELLABEL__203__6965_40_MHZ InterfaceRfChannelLabel = "203 (6965/40 MHz)" - INTERFACERFCHANNELLABEL__205__6975_20_MHZ InterfaceRfChannelLabel = "205 (6975/20 MHz)" - INTERFACERFCHANNELLABEL__207__6985_160_MHZ InterfaceRfChannelLabel = "207 (6985/160 MHz)" - INTERFACERFCHANNELLABEL__209__6995_20_MHZ InterfaceRfChannelLabel = "209 (6995/20 MHz)" - INTERFACERFCHANNELLABEL__211__7005_40_MHZ InterfaceRfChannelLabel = "211 (7005/40 MHz)" - INTERFACERFCHANNELLABEL__213__7015_20_MHZ InterfaceRfChannelLabel = "213 (7015/20 MHz)" - INTERFACERFCHANNELLABEL__215__7025_80_MHZ InterfaceRfChannelLabel = "215 (7025/80 MHz)" - INTERFACERFCHANNELLABEL__217__7035_20_MHZ InterfaceRfChannelLabel = "217 (7035/20 MHz)" - INTERFACERFCHANNELLABEL__219__7045_40_MHZ InterfaceRfChannelLabel = "219 (7045/40 MHz)" - INTERFACERFCHANNELLABEL__221__7055_20_MHZ InterfaceRfChannelLabel = "221 (7055/20 MHz)" - INTERFACERFCHANNELLABEL__225__7075_20_MHZ InterfaceRfChannelLabel = "225 (7075/20 MHz)" - INTERFACERFCHANNELLABEL__227__7085_40_MHZ InterfaceRfChannelLabel = "227 (7085/40 MHz)" - INTERFACERFCHANNELLABEL__229__7095_20_MHZ InterfaceRfChannelLabel = "229 (7095/20 MHz)" - INTERFACERFCHANNELLABEL__233__7115_20_MHZ InterfaceRfChannelLabel = "233 (7115/20 MHz)" - INTERFACERFCHANNELLABEL__1__58_32_2_16_GHZ InterfaceRfChannelLabel = "1 (58.32/2.16 GHz)" - INTERFACERFCHANNELLABEL__2__60_48_2_16_GHZ InterfaceRfChannelLabel = "2 (60.48/2.16 GHz)" - INTERFACERFCHANNELLABEL__3__62_64_2_16_GHZ InterfaceRfChannelLabel = "3 (62.64/2.16 GHz)" - INTERFACERFCHANNELLABEL__4__64_80_2_16_GHZ InterfaceRfChannelLabel = "4 (64.80/2.16 GHz)" - INTERFACERFCHANNELLABEL__5__66_96_2_16_GHZ InterfaceRfChannelLabel = "5 (66.96/2.16 GHz)" - INTERFACERFCHANNELLABEL__6__69_12_2_16_GHZ InterfaceRfChannelLabel = "6 (69.12/2.16 GHz)" - INTERFACERFCHANNELLABEL__9__59_40_4_32_GHZ InterfaceRfChannelLabel = "9 (59.40/4.32 GHz)" + INTERFACERFCHANNELLABEL__1__2412_MHZ InterfaceRfChannelLabel = "1 (2412 MHz)" + INTERFACERFCHANNELLABEL__2__2417_MHZ InterfaceRfChannelLabel = "2 (2417 MHz)" + INTERFACERFCHANNELLABEL__3__2422_MHZ InterfaceRfChannelLabel = "3 (2422 MHz)" + INTERFACERFCHANNELLABEL__4__2427_MHZ InterfaceRfChannelLabel = "4 (2427 MHz)" + INTERFACERFCHANNELLABEL__5__2432_MHZ InterfaceRfChannelLabel = "5 (2432 MHz)" + INTERFACERFCHANNELLABEL__6__2437_MHZ InterfaceRfChannelLabel = "6 (2437 MHz)" + INTERFACERFCHANNELLABEL__7__2442_MHZ InterfaceRfChannelLabel = "7 (2442 MHz)" + INTERFACERFCHANNELLABEL__8__2447_MHZ InterfaceRfChannelLabel = "8 (2447 MHz)" + INTERFACERFCHANNELLABEL__9__2452_MHZ InterfaceRfChannelLabel = "9 (2452 MHz)" + INTERFACERFCHANNELLABEL__10__2457_MHZ InterfaceRfChannelLabel = "10 (2457 MHz)" + INTERFACERFCHANNELLABEL__11__2462_MHZ InterfaceRfChannelLabel = "11 (2462 MHz)" + INTERFACERFCHANNELLABEL__12__2467_MHZ InterfaceRfChannelLabel = "12 (2467 MHz)" + INTERFACERFCHANNELLABEL__13__2472_MHZ InterfaceRfChannelLabel = "13 (2472 MHz)" + INTERFACERFCHANNELLABEL__32__5160_20_MHZ InterfaceRfChannelLabel = "32 (5160/20 MHz)" + INTERFACERFCHANNELLABEL__34__5170_40_MHZ InterfaceRfChannelLabel = "34 (5170/40 MHz)" + INTERFACERFCHANNELLABEL__36__5180_20_MHZ InterfaceRfChannelLabel = "36 (5180/20 MHz)" + INTERFACERFCHANNELLABEL__38__5190_40_MHZ InterfaceRfChannelLabel = "38 (5190/40 MHz)" + INTERFACERFCHANNELLABEL__40__5200_20_MHZ InterfaceRfChannelLabel = "40 (5200/20 MHz)" + INTERFACERFCHANNELLABEL__42__5210_80_MHZ InterfaceRfChannelLabel = "42 (5210/80 MHz)" + INTERFACERFCHANNELLABEL__44__5220_20_MHZ InterfaceRfChannelLabel = "44 (5220/20 MHz)" + INTERFACERFCHANNELLABEL__46__5230_40_MHZ InterfaceRfChannelLabel = "46 (5230/40 MHz)" + INTERFACERFCHANNELLABEL__48__5240_20_MHZ InterfaceRfChannelLabel = "48 (5240/20 MHz)" + INTERFACERFCHANNELLABEL__50__5250_160_MHZ InterfaceRfChannelLabel = "50 (5250/160 MHz)" + INTERFACERFCHANNELLABEL__52__5260_20_MHZ InterfaceRfChannelLabel = "52 (5260/20 MHz)" + INTERFACERFCHANNELLABEL__54__5270_40_MHZ InterfaceRfChannelLabel = "54 (5270/40 MHz)" + INTERFACERFCHANNELLABEL__56__5280_20_MHZ InterfaceRfChannelLabel = "56 (5280/20 MHz)" + INTERFACERFCHANNELLABEL__58__5290_80_MHZ InterfaceRfChannelLabel = "58 (5290/80 MHz)" + INTERFACERFCHANNELLABEL__60__5300_20_MHZ InterfaceRfChannelLabel = "60 (5300/20 MHz)" + INTERFACERFCHANNELLABEL__62__5310_40_MHZ InterfaceRfChannelLabel = "62 (5310/40 MHz)" + INTERFACERFCHANNELLABEL__64__5320_20_MHZ InterfaceRfChannelLabel = "64 (5320/20 MHz)" + INTERFACERFCHANNELLABEL__100__5500_20_MHZ InterfaceRfChannelLabel = "100 (5500/20 MHz)" + INTERFACERFCHANNELLABEL__102__5510_40_MHZ InterfaceRfChannelLabel = "102 (5510/40 MHz)" + INTERFACERFCHANNELLABEL__104__5520_20_MHZ InterfaceRfChannelLabel = "104 (5520/20 MHz)" + INTERFACERFCHANNELLABEL__106__5530_80_MHZ InterfaceRfChannelLabel = "106 (5530/80 MHz)" + INTERFACERFCHANNELLABEL__108__5540_20_MHZ InterfaceRfChannelLabel = "108 (5540/20 MHz)" + INTERFACERFCHANNELLABEL__110__5550_40_MHZ InterfaceRfChannelLabel = "110 (5550/40 MHz)" + INTERFACERFCHANNELLABEL__112__5560_20_MHZ InterfaceRfChannelLabel = "112 (5560/20 MHz)" + INTERFACERFCHANNELLABEL__114__5570_160_MHZ InterfaceRfChannelLabel = "114 (5570/160 MHz)" + INTERFACERFCHANNELLABEL__116__5580_20_MHZ InterfaceRfChannelLabel = "116 (5580/20 MHz)" + INTERFACERFCHANNELLABEL__118__5590_40_MHZ InterfaceRfChannelLabel = "118 (5590/40 MHz)" + INTERFACERFCHANNELLABEL__120__5600_20_MHZ InterfaceRfChannelLabel = "120 (5600/20 MHz)" + INTERFACERFCHANNELLABEL__122__5610_80_MHZ InterfaceRfChannelLabel = "122 (5610/80 MHz)" + INTERFACERFCHANNELLABEL__124__5620_20_MHZ InterfaceRfChannelLabel = "124 (5620/20 MHz)" + INTERFACERFCHANNELLABEL__126__5630_40_MHZ InterfaceRfChannelLabel = "126 (5630/40 MHz)" + INTERFACERFCHANNELLABEL__128__5640_20_MHZ InterfaceRfChannelLabel = "128 (5640/20 MHz)" + INTERFACERFCHANNELLABEL__132__5660_20_MHZ InterfaceRfChannelLabel = "132 (5660/20 MHz)" + INTERFACERFCHANNELLABEL__134__5670_40_MHZ InterfaceRfChannelLabel = "134 (5670/40 MHz)" + INTERFACERFCHANNELLABEL__136__5680_20_MHZ InterfaceRfChannelLabel = "136 (5680/20 MHz)" + INTERFACERFCHANNELLABEL__138__5690_80_MHZ InterfaceRfChannelLabel = "138 (5690/80 MHz)" + INTERFACERFCHANNELLABEL__140__5700_20_MHZ InterfaceRfChannelLabel = "140 (5700/20 MHz)" + INTERFACERFCHANNELLABEL__142__5710_40_MHZ InterfaceRfChannelLabel = "142 (5710/40 MHz)" + INTERFACERFCHANNELLABEL__144__5720_20_MHZ InterfaceRfChannelLabel = "144 (5720/20 MHz)" + INTERFACERFCHANNELLABEL__149__5745_20_MHZ InterfaceRfChannelLabel = "149 (5745/20 MHz)" + INTERFACERFCHANNELLABEL__151__5755_40_MHZ InterfaceRfChannelLabel = "151 (5755/40 MHz)" + INTERFACERFCHANNELLABEL__153__5765_20_MHZ InterfaceRfChannelLabel = "153 (5765/20 MHz)" + INTERFACERFCHANNELLABEL__155__5775_80_MHZ InterfaceRfChannelLabel = "155 (5775/80 MHz)" + INTERFACERFCHANNELLABEL__157__5785_20_MHZ InterfaceRfChannelLabel = "157 (5785/20 MHz)" + INTERFACERFCHANNELLABEL__159__5795_40_MHZ InterfaceRfChannelLabel = "159 (5795/40 MHz)" + INTERFACERFCHANNELLABEL__161__5805_20_MHZ InterfaceRfChannelLabel = "161 (5805/20 MHz)" + INTERFACERFCHANNELLABEL__163__5815_160_MHZ InterfaceRfChannelLabel = "163 (5815/160 MHz)" + INTERFACERFCHANNELLABEL__165__5825_20_MHZ InterfaceRfChannelLabel = "165 (5825/20 MHz)" + INTERFACERFCHANNELLABEL__167__5835_40_MHZ InterfaceRfChannelLabel = "167 (5835/40 MHz)" + INTERFACERFCHANNELLABEL__169__5845_20_MHZ InterfaceRfChannelLabel = "169 (5845/20 MHz)" + INTERFACERFCHANNELLABEL__171__5855_80_MHZ InterfaceRfChannelLabel = "171 (5855/80 MHz)" + INTERFACERFCHANNELLABEL__173__5865_20_MHZ InterfaceRfChannelLabel = "173 (5865/20 MHz)" + INTERFACERFCHANNELLABEL__175__5875_40_MHZ InterfaceRfChannelLabel = "175 (5875/40 MHz)" + INTERFACERFCHANNELLABEL__177__5885_20_MHZ InterfaceRfChannelLabel = "177 (5885/20 MHz)" + INTERFACERFCHANNELLABEL__1__5955_20_MHZ InterfaceRfChannelLabel = "1 (5955/20 MHz)" + INTERFACERFCHANNELLABEL__3__5965_40_MHZ InterfaceRfChannelLabel = "3 (5965/40 MHz)" + INTERFACERFCHANNELLABEL__5__5975_20_MHZ InterfaceRfChannelLabel = "5 (5975/20 MHz)" + INTERFACERFCHANNELLABEL__7__5985_80_MHZ InterfaceRfChannelLabel = "7 (5985/80 MHz)" + INTERFACERFCHANNELLABEL__9__5995_20_MHZ InterfaceRfChannelLabel = "9 (5995/20 MHz)" + INTERFACERFCHANNELLABEL__11__6005_40_MHZ InterfaceRfChannelLabel = "11 (6005/40 MHz)" + INTERFACERFCHANNELLABEL__13__6015_20_MHZ InterfaceRfChannelLabel = "13 (6015/20 MHz)" + INTERFACERFCHANNELLABEL__15__6025_160_MHZ InterfaceRfChannelLabel = "15 (6025/160 MHz)" + INTERFACERFCHANNELLABEL__17__6035_20_MHZ InterfaceRfChannelLabel = "17 (6035/20 MHz)" + INTERFACERFCHANNELLABEL__19__6045_40_MHZ InterfaceRfChannelLabel = "19 (6045/40 MHz)" + INTERFACERFCHANNELLABEL__21__6055_20_MHZ InterfaceRfChannelLabel = "21 (6055/20 MHz)" + INTERFACERFCHANNELLABEL__23__6065_80_MHZ InterfaceRfChannelLabel = "23 (6065/80 MHz)" + INTERFACERFCHANNELLABEL__25__6075_20_MHZ InterfaceRfChannelLabel = "25 (6075/20 MHz)" + INTERFACERFCHANNELLABEL__27__6085_40_MHZ InterfaceRfChannelLabel = "27 (6085/40 MHz)" + INTERFACERFCHANNELLABEL__29__6095_20_MHZ InterfaceRfChannelLabel = "29 (6095/20 MHz)" + INTERFACERFCHANNELLABEL__31__6105_320_MHZ InterfaceRfChannelLabel = "31 (6105/320 MHz)" + INTERFACERFCHANNELLABEL__33__6115_20_MHZ InterfaceRfChannelLabel = "33 (6115/20 MHz)" + INTERFACERFCHANNELLABEL__35__6125_40_MHZ InterfaceRfChannelLabel = "35 (6125/40 MHz)" + INTERFACERFCHANNELLABEL__37__6135_20_MHZ InterfaceRfChannelLabel = "37 (6135/20 MHz)" + INTERFACERFCHANNELLABEL__39__6145_80_MHZ InterfaceRfChannelLabel = "39 (6145/80 MHz)" + INTERFACERFCHANNELLABEL__41__6155_20_MHZ InterfaceRfChannelLabel = "41 (6155/20 MHz)" + INTERFACERFCHANNELLABEL__43__6165_40_MHZ InterfaceRfChannelLabel = "43 (6165/40 MHz)" + INTERFACERFCHANNELLABEL__45__6175_20_MHZ InterfaceRfChannelLabel = "45 (6175/20 MHz)" + INTERFACERFCHANNELLABEL__47__6185_160_MHZ InterfaceRfChannelLabel = "47 (6185/160 MHz)" + INTERFACERFCHANNELLABEL__49__6195_20_MHZ InterfaceRfChannelLabel = "49 (6195/20 MHz)" + INTERFACERFCHANNELLABEL__51__6205_40_MHZ InterfaceRfChannelLabel = "51 (6205/40 MHz)" + INTERFACERFCHANNELLABEL__53__6215_20_MHZ InterfaceRfChannelLabel = "53 (6215/20 MHz)" + INTERFACERFCHANNELLABEL__55__6225_80_MHZ InterfaceRfChannelLabel = "55 (6225/80 MHz)" + INTERFACERFCHANNELLABEL__57__6235_20_MHZ InterfaceRfChannelLabel = "57 (6235/20 MHz)" + INTERFACERFCHANNELLABEL__59__6245_40_MHZ InterfaceRfChannelLabel = "59 (6245/40 MHz)" + INTERFACERFCHANNELLABEL__61__6255_20_MHZ InterfaceRfChannelLabel = "61 (6255/20 MHz)" + INTERFACERFCHANNELLABEL__65__6275_20_MHZ InterfaceRfChannelLabel = "65 (6275/20 MHz)" + INTERFACERFCHANNELLABEL__67__6285_40_MHZ InterfaceRfChannelLabel = "67 (6285/40 MHz)" + INTERFACERFCHANNELLABEL__69__6295_20_MHZ InterfaceRfChannelLabel = "69 (6295/20 MHz)" + INTERFACERFCHANNELLABEL__71__6305_80_MHZ InterfaceRfChannelLabel = "71 (6305/80 MHz)" + INTERFACERFCHANNELLABEL__73__6315_20_MHZ InterfaceRfChannelLabel = "73 (6315/20 MHz)" + INTERFACERFCHANNELLABEL__75__6325_40_MHZ InterfaceRfChannelLabel = "75 (6325/40 MHz)" + INTERFACERFCHANNELLABEL__77__6335_20_MHZ InterfaceRfChannelLabel = "77 (6335/20 MHz)" + INTERFACERFCHANNELLABEL__79__6345_160_MHZ InterfaceRfChannelLabel = "79 (6345/160 MHz)" + INTERFACERFCHANNELLABEL__81__6355_20_MHZ InterfaceRfChannelLabel = "81 (6355/20 MHz)" + INTERFACERFCHANNELLABEL__83__6365_40_MHZ InterfaceRfChannelLabel = "83 (6365/40 MHz)" + INTERFACERFCHANNELLABEL__85__6375_20_MHZ InterfaceRfChannelLabel = "85 (6375/20 MHz)" + INTERFACERFCHANNELLABEL__87__6385_80_MHZ InterfaceRfChannelLabel = "87 (6385/80 MHz)" + INTERFACERFCHANNELLABEL__89__6395_20_MHZ InterfaceRfChannelLabel = "89 (6395/20 MHz)" + INTERFACERFCHANNELLABEL__91__6405_40_MHZ InterfaceRfChannelLabel = "91 (6405/40 MHz)" + INTERFACERFCHANNELLABEL__93__6415_20_MHZ InterfaceRfChannelLabel = "93 (6415/20 MHz)" + INTERFACERFCHANNELLABEL__95__6425_320_MHZ InterfaceRfChannelLabel = "95 (6425/320 MHz)" + INTERFACERFCHANNELLABEL__97__6435_20_MHZ InterfaceRfChannelLabel = "97 (6435/20 MHz)" + INTERFACERFCHANNELLABEL__99__6445_40_MHZ InterfaceRfChannelLabel = "99 (6445/40 MHz)" + INTERFACERFCHANNELLABEL__101__6455_20_MHZ InterfaceRfChannelLabel = "101 (6455/20 MHz)" + INTERFACERFCHANNELLABEL__103__6465_80_MHZ InterfaceRfChannelLabel = "103 (6465/80 MHz)" + INTERFACERFCHANNELLABEL__105__6475_20_MHZ InterfaceRfChannelLabel = "105 (6475/20 MHz)" + INTERFACERFCHANNELLABEL__107__6485_40_MHZ InterfaceRfChannelLabel = "107 (6485/40 MHz)" + INTERFACERFCHANNELLABEL__109__6495_20_MHZ InterfaceRfChannelLabel = "109 (6495/20 MHz)" + INTERFACERFCHANNELLABEL__111__6505_160_MHZ InterfaceRfChannelLabel = "111 (6505/160 MHz)" + INTERFACERFCHANNELLABEL__113__6515_20_MHZ InterfaceRfChannelLabel = "113 (6515/20 MHz)" + INTERFACERFCHANNELLABEL__115__6525_40_MHZ InterfaceRfChannelLabel = "115 (6525/40 MHz)" + INTERFACERFCHANNELLABEL__117__6535_20_MHZ InterfaceRfChannelLabel = "117 (6535/20 MHz)" + INTERFACERFCHANNELLABEL__119__6545_80_MHZ InterfaceRfChannelLabel = "119 (6545/80 MHz)" + INTERFACERFCHANNELLABEL__121__6555_20_MHZ InterfaceRfChannelLabel = "121 (6555/20 MHz)" + INTERFACERFCHANNELLABEL__123__6565_40_MHZ InterfaceRfChannelLabel = "123 (6565/40 MHz)" + INTERFACERFCHANNELLABEL__125__6575_20_MHZ InterfaceRfChannelLabel = "125 (6575/20 MHz)" + INTERFACERFCHANNELLABEL__129__6595_20_MHZ InterfaceRfChannelLabel = "129 (6595/20 MHz)" + INTERFACERFCHANNELLABEL__131__6605_40_MHZ InterfaceRfChannelLabel = "131 (6605/40 MHz)" + INTERFACERFCHANNELLABEL__133__6615_20_MHZ InterfaceRfChannelLabel = "133 (6615/20 MHz)" + INTERFACERFCHANNELLABEL__135__6625_80_MHZ InterfaceRfChannelLabel = "135 (6625/80 MHz)" + INTERFACERFCHANNELLABEL__137__6635_20_MHZ InterfaceRfChannelLabel = "137 (6635/20 MHz)" + INTERFACERFCHANNELLABEL__139__6645_40_MHZ InterfaceRfChannelLabel = "139 (6645/40 MHz)" + INTERFACERFCHANNELLABEL__141__6655_20_MHZ InterfaceRfChannelLabel = "141 (6655/20 MHz)" + INTERFACERFCHANNELLABEL__143__6665_160_MHZ InterfaceRfChannelLabel = "143 (6665/160 MHz)" + INTERFACERFCHANNELLABEL__145__6675_20_MHZ InterfaceRfChannelLabel = "145 (6675/20 MHz)" + INTERFACERFCHANNELLABEL__147__6685_40_MHZ InterfaceRfChannelLabel = "147 (6685/40 MHz)" + INTERFACERFCHANNELLABEL__149__6695_20_MHZ InterfaceRfChannelLabel = "149 (6695/20 MHz)" + INTERFACERFCHANNELLABEL__151__6705_80_MHZ InterfaceRfChannelLabel = "151 (6705/80 MHz)" + INTERFACERFCHANNELLABEL__153__6715_20_MHZ InterfaceRfChannelLabel = "153 (6715/20 MHz)" + INTERFACERFCHANNELLABEL__155__6725_40_MHZ InterfaceRfChannelLabel = "155 (6725/40 MHz)" + INTERFACERFCHANNELLABEL__157__6735_20_MHZ InterfaceRfChannelLabel = "157 (6735/20 MHz)" + INTERFACERFCHANNELLABEL__159__6745_320_MHZ InterfaceRfChannelLabel = "159 (6745/320 MHz)" + INTERFACERFCHANNELLABEL__161__6755_20_MHZ InterfaceRfChannelLabel = "161 (6755/20 MHz)" + INTERFACERFCHANNELLABEL__163__6765_40_MHZ InterfaceRfChannelLabel = "163 (6765/40 MHz)" + INTERFACERFCHANNELLABEL__165__6775_20_MHZ InterfaceRfChannelLabel = "165 (6775/20 MHz)" + INTERFACERFCHANNELLABEL__167__6785_80_MHZ InterfaceRfChannelLabel = "167 (6785/80 MHz)" + INTERFACERFCHANNELLABEL__169__6795_20_MHZ InterfaceRfChannelLabel = "169 (6795/20 MHz)" + INTERFACERFCHANNELLABEL__171__6805_40_MHZ InterfaceRfChannelLabel = "171 (6805/40 MHz)" + INTERFACERFCHANNELLABEL__173__6815_20_MHZ InterfaceRfChannelLabel = "173 (6815/20 MHz)" + INTERFACERFCHANNELLABEL__175__6825_160_MHZ InterfaceRfChannelLabel = "175 (6825/160 MHz)" + INTERFACERFCHANNELLABEL__177__6835_20_MHZ InterfaceRfChannelLabel = "177 (6835/20 MHz)" + INTERFACERFCHANNELLABEL__179__6845_40_MHZ InterfaceRfChannelLabel = "179 (6845/40 MHz)" + INTERFACERFCHANNELLABEL__181__6855_20_MHZ InterfaceRfChannelLabel = "181 (6855/20 MHz)" + INTERFACERFCHANNELLABEL__183__6865_80_MHZ InterfaceRfChannelLabel = "183 (6865/80 MHz)" + INTERFACERFCHANNELLABEL__185__6875_20_MHZ InterfaceRfChannelLabel = "185 (6875/20 MHz)" + INTERFACERFCHANNELLABEL__187__6885_40_MHZ InterfaceRfChannelLabel = "187 (6885/40 MHz)" + INTERFACERFCHANNELLABEL__189__6895_20_MHZ InterfaceRfChannelLabel = "189 (6895/20 MHz)" + INTERFACERFCHANNELLABEL__193__6915_20_MHZ InterfaceRfChannelLabel = "193 (6915/20 MHz)" + INTERFACERFCHANNELLABEL__195__6925_40_MHZ InterfaceRfChannelLabel = "195 (6925/40 MHz)" + INTERFACERFCHANNELLABEL__197__6935_20_MHZ InterfaceRfChannelLabel = "197 (6935/20 MHz)" + INTERFACERFCHANNELLABEL__199__6945_80_MHZ InterfaceRfChannelLabel = "199 (6945/80 MHz)" + INTERFACERFCHANNELLABEL__201__6955_20_MHZ InterfaceRfChannelLabel = "201 (6955/20 MHz)" + INTERFACERFCHANNELLABEL__203__6965_40_MHZ InterfaceRfChannelLabel = "203 (6965/40 MHz)" + INTERFACERFCHANNELLABEL__205__6975_20_MHZ InterfaceRfChannelLabel = "205 (6975/20 MHz)" + INTERFACERFCHANNELLABEL__207__6985_160_MHZ InterfaceRfChannelLabel = "207 (6985/160 MHz)" + INTERFACERFCHANNELLABEL__209__6995_20_MHZ InterfaceRfChannelLabel = "209 (6995/20 MHz)" + INTERFACERFCHANNELLABEL__211__7005_40_MHZ InterfaceRfChannelLabel = "211 (7005/40 MHz)" + INTERFACERFCHANNELLABEL__213__7015_20_MHZ InterfaceRfChannelLabel = "213 (7015/20 MHz)" + INTERFACERFCHANNELLABEL__215__7025_80_MHZ InterfaceRfChannelLabel = "215 (7025/80 MHz)" + INTERFACERFCHANNELLABEL__217__7035_20_MHZ InterfaceRfChannelLabel = "217 (7035/20 MHz)" + INTERFACERFCHANNELLABEL__219__7045_40_MHZ InterfaceRfChannelLabel = "219 (7045/40 MHz)" + INTERFACERFCHANNELLABEL__221__7055_20_MHZ InterfaceRfChannelLabel = "221 (7055/20 MHz)" + INTERFACERFCHANNELLABEL__225__7075_20_MHZ InterfaceRfChannelLabel = "225 (7075/20 MHz)" + INTERFACERFCHANNELLABEL__227__7085_40_MHZ InterfaceRfChannelLabel = "227 (7085/40 MHz)" + INTERFACERFCHANNELLABEL__229__7095_20_MHZ InterfaceRfChannelLabel = "229 (7095/20 MHz)" + INTERFACERFCHANNELLABEL__233__7115_20_MHZ InterfaceRfChannelLabel = "233 (7115/20 MHz)" + INTERFACERFCHANNELLABEL__1__58_32_2_16_GHZ InterfaceRfChannelLabel = "1 (58.32/2.16 GHz)" + INTERFACERFCHANNELLABEL__2__60_48_2_16_GHZ InterfaceRfChannelLabel = "2 (60.48/2.16 GHz)" + INTERFACERFCHANNELLABEL__3__62_64_2_16_GHZ InterfaceRfChannelLabel = "3 (62.64/2.16 GHz)" + INTERFACERFCHANNELLABEL__4__64_80_2_16_GHZ InterfaceRfChannelLabel = "4 (64.80/2.16 GHz)" + INTERFACERFCHANNELLABEL__5__66_96_2_16_GHZ InterfaceRfChannelLabel = "5 (66.96/2.16 GHz)" + INTERFACERFCHANNELLABEL__6__69_12_2_16_GHZ InterfaceRfChannelLabel = "6 (69.12/2.16 GHz)" + INTERFACERFCHANNELLABEL__9__59_40_4_32_GHZ InterfaceRfChannelLabel = "9 (59.40/4.32 GHz)" INTERFACERFCHANNELLABEL__10__61_56_4_32_GHZ InterfaceRfChannelLabel = "10 (61.56/4.32 GHz)" INTERFACERFCHANNELLABEL__11__63_72_4_32_GHZ InterfaceRfChannelLabel = "11 (63.72/4.32 GHz)" INTERFACERFCHANNELLABEL__12__65_88_4_32_GHZ InterfaceRfChannelLabel = "12 (65.88/4.32 GHz)" @@ -498,3 +498,4 @@ func (v *NullableInterfaceRfChannelLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go index 5a426d213f..425dd0b7c2 100644 --- a/model_interface_rf_channel_value.go +++ b/model_interface_rf_channel_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,192 +20,192 @@ type InterfaceRfChannelValue string // List of Interface_rf_channel_value const ( - INTERFACERFCHANNELVALUE__2_4G_1_2412_22 InterfaceRfChannelValue = "2.4g-1-2412-22" - INTERFACERFCHANNELVALUE__2_4G_2_2417_22 InterfaceRfChannelValue = "2.4g-2-2417-22" - INTERFACERFCHANNELVALUE__2_4G_3_2422_22 InterfaceRfChannelValue = "2.4g-3-2422-22" - INTERFACERFCHANNELVALUE__2_4G_4_2427_22 InterfaceRfChannelValue = "2.4g-4-2427-22" - INTERFACERFCHANNELVALUE__2_4G_5_2432_22 InterfaceRfChannelValue = "2.4g-5-2432-22" - INTERFACERFCHANNELVALUE__2_4G_6_2437_22 InterfaceRfChannelValue = "2.4g-6-2437-22" - INTERFACERFCHANNELVALUE__2_4G_7_2442_22 InterfaceRfChannelValue = "2.4g-7-2442-22" - INTERFACERFCHANNELVALUE__2_4G_8_2447_22 InterfaceRfChannelValue = "2.4g-8-2447-22" - INTERFACERFCHANNELVALUE__2_4G_9_2452_22 InterfaceRfChannelValue = "2.4g-9-2452-22" - INTERFACERFCHANNELVALUE__2_4G_10_2457_22 InterfaceRfChannelValue = "2.4g-10-2457-22" - INTERFACERFCHANNELVALUE__2_4G_11_2462_22 InterfaceRfChannelValue = "2.4g-11-2462-22" - INTERFACERFCHANNELVALUE__2_4G_12_2467_22 InterfaceRfChannelValue = "2.4g-12-2467-22" - INTERFACERFCHANNELVALUE__2_4G_13_2472_22 InterfaceRfChannelValue = "2.4g-13-2472-22" - INTERFACERFCHANNELVALUE__5G_32_5160_20 InterfaceRfChannelValue = "5g-32-5160-20" - INTERFACERFCHANNELVALUE__5G_34_5170_40 InterfaceRfChannelValue = "5g-34-5170-40" - INTERFACERFCHANNELVALUE__5G_36_5180_20 InterfaceRfChannelValue = "5g-36-5180-20" - INTERFACERFCHANNELVALUE__5G_38_5190_40 InterfaceRfChannelValue = "5g-38-5190-40" - INTERFACERFCHANNELVALUE__5G_40_5200_20 InterfaceRfChannelValue = "5g-40-5200-20" - INTERFACERFCHANNELVALUE__5G_42_5210_80 InterfaceRfChannelValue = "5g-42-5210-80" - INTERFACERFCHANNELVALUE__5G_44_5220_20 InterfaceRfChannelValue = "5g-44-5220-20" - INTERFACERFCHANNELVALUE__5G_46_5230_40 InterfaceRfChannelValue = "5g-46-5230-40" - INTERFACERFCHANNELVALUE__5G_48_5240_20 InterfaceRfChannelValue = "5g-48-5240-20" - INTERFACERFCHANNELVALUE__5G_50_5250_160 InterfaceRfChannelValue = "5g-50-5250-160" - INTERFACERFCHANNELVALUE__5G_52_5260_20 InterfaceRfChannelValue = "5g-52-5260-20" - INTERFACERFCHANNELVALUE__5G_54_5270_40 InterfaceRfChannelValue = "5g-54-5270-40" - INTERFACERFCHANNELVALUE__5G_56_5280_20 InterfaceRfChannelValue = "5g-56-5280-20" - INTERFACERFCHANNELVALUE__5G_58_5290_80 InterfaceRfChannelValue = "5g-58-5290-80" - INTERFACERFCHANNELVALUE__5G_60_5300_20 InterfaceRfChannelValue = "5g-60-5300-20" - INTERFACERFCHANNELVALUE__5G_62_5310_40 InterfaceRfChannelValue = "5g-62-5310-40" - INTERFACERFCHANNELVALUE__5G_64_5320_20 InterfaceRfChannelValue = "5g-64-5320-20" - INTERFACERFCHANNELVALUE__5G_100_5500_20 InterfaceRfChannelValue = "5g-100-5500-20" - INTERFACERFCHANNELVALUE__5G_102_5510_40 InterfaceRfChannelValue = "5g-102-5510-40" - INTERFACERFCHANNELVALUE__5G_104_5520_20 InterfaceRfChannelValue = "5g-104-5520-20" - INTERFACERFCHANNELVALUE__5G_106_5530_80 InterfaceRfChannelValue = "5g-106-5530-80" - INTERFACERFCHANNELVALUE__5G_108_5540_20 InterfaceRfChannelValue = "5g-108-5540-20" - INTERFACERFCHANNELVALUE__5G_110_5550_40 InterfaceRfChannelValue = "5g-110-5550-40" - INTERFACERFCHANNELVALUE__5G_112_5560_20 InterfaceRfChannelValue = "5g-112-5560-20" - INTERFACERFCHANNELVALUE__5G_114_5570_160 InterfaceRfChannelValue = "5g-114-5570-160" - INTERFACERFCHANNELVALUE__5G_116_5580_20 InterfaceRfChannelValue = "5g-116-5580-20" - INTERFACERFCHANNELVALUE__5G_118_5590_40 InterfaceRfChannelValue = "5g-118-5590-40" - INTERFACERFCHANNELVALUE__5G_120_5600_20 InterfaceRfChannelValue = "5g-120-5600-20" - INTERFACERFCHANNELVALUE__5G_122_5610_80 InterfaceRfChannelValue = "5g-122-5610-80" - INTERFACERFCHANNELVALUE__5G_124_5620_20 InterfaceRfChannelValue = "5g-124-5620-20" - INTERFACERFCHANNELVALUE__5G_126_5630_40 InterfaceRfChannelValue = "5g-126-5630-40" - INTERFACERFCHANNELVALUE__5G_128_5640_20 InterfaceRfChannelValue = "5g-128-5640-20" - INTERFACERFCHANNELVALUE__5G_132_5660_20 InterfaceRfChannelValue = "5g-132-5660-20" - INTERFACERFCHANNELVALUE__5G_134_5670_40 InterfaceRfChannelValue = "5g-134-5670-40" - INTERFACERFCHANNELVALUE__5G_136_5680_20 InterfaceRfChannelValue = "5g-136-5680-20" - INTERFACERFCHANNELVALUE__5G_138_5690_80 InterfaceRfChannelValue = "5g-138-5690-80" - INTERFACERFCHANNELVALUE__5G_140_5700_20 InterfaceRfChannelValue = "5g-140-5700-20" - INTERFACERFCHANNELVALUE__5G_142_5710_40 InterfaceRfChannelValue = "5g-142-5710-40" - INTERFACERFCHANNELVALUE__5G_144_5720_20 InterfaceRfChannelValue = "5g-144-5720-20" - INTERFACERFCHANNELVALUE__5G_149_5745_20 InterfaceRfChannelValue = "5g-149-5745-20" - INTERFACERFCHANNELVALUE__5G_151_5755_40 InterfaceRfChannelValue = "5g-151-5755-40" - INTERFACERFCHANNELVALUE__5G_153_5765_20 InterfaceRfChannelValue = "5g-153-5765-20" - INTERFACERFCHANNELVALUE__5G_155_5775_80 InterfaceRfChannelValue = "5g-155-5775-80" - INTERFACERFCHANNELVALUE__5G_157_5785_20 InterfaceRfChannelValue = "5g-157-5785-20" - INTERFACERFCHANNELVALUE__5G_159_5795_40 InterfaceRfChannelValue = "5g-159-5795-40" - INTERFACERFCHANNELVALUE__5G_161_5805_20 InterfaceRfChannelValue = "5g-161-5805-20" - INTERFACERFCHANNELVALUE__5G_163_5815_160 InterfaceRfChannelValue = "5g-163-5815-160" - INTERFACERFCHANNELVALUE__5G_165_5825_20 InterfaceRfChannelValue = "5g-165-5825-20" - INTERFACERFCHANNELVALUE__5G_167_5835_40 InterfaceRfChannelValue = "5g-167-5835-40" - INTERFACERFCHANNELVALUE__5G_169_5845_20 InterfaceRfChannelValue = "5g-169-5845-20" - INTERFACERFCHANNELVALUE__5G_171_5855_80 InterfaceRfChannelValue = "5g-171-5855-80" - INTERFACERFCHANNELVALUE__5G_173_5865_20 InterfaceRfChannelValue = "5g-173-5865-20" - INTERFACERFCHANNELVALUE__5G_175_5875_40 InterfaceRfChannelValue = "5g-175-5875-40" - INTERFACERFCHANNELVALUE__5G_177_5885_20 InterfaceRfChannelValue = "5g-177-5885-20" - INTERFACERFCHANNELVALUE__6G_1_5955_20 InterfaceRfChannelValue = "6g-1-5955-20" - INTERFACERFCHANNELVALUE__6G_3_5965_40 InterfaceRfChannelValue = "6g-3-5965-40" - INTERFACERFCHANNELVALUE__6G_5_5975_20 InterfaceRfChannelValue = "6g-5-5975-20" - INTERFACERFCHANNELVALUE__6G_7_5985_80 InterfaceRfChannelValue = "6g-7-5985-80" - INTERFACERFCHANNELVALUE__6G_9_5995_20 InterfaceRfChannelValue = "6g-9-5995-20" - INTERFACERFCHANNELVALUE__6G_11_6005_40 InterfaceRfChannelValue = "6g-11-6005-40" - INTERFACERFCHANNELVALUE__6G_13_6015_20 InterfaceRfChannelValue = "6g-13-6015-20" - INTERFACERFCHANNELVALUE__6G_15_6025_160 InterfaceRfChannelValue = "6g-15-6025-160" - INTERFACERFCHANNELVALUE__6G_17_6035_20 InterfaceRfChannelValue = "6g-17-6035-20" - INTERFACERFCHANNELVALUE__6G_19_6045_40 InterfaceRfChannelValue = "6g-19-6045-40" - INTERFACERFCHANNELVALUE__6G_21_6055_20 InterfaceRfChannelValue = "6g-21-6055-20" - INTERFACERFCHANNELVALUE__6G_23_6065_80 InterfaceRfChannelValue = "6g-23-6065-80" - INTERFACERFCHANNELVALUE__6G_25_6075_20 InterfaceRfChannelValue = "6g-25-6075-20" - INTERFACERFCHANNELVALUE__6G_27_6085_40 InterfaceRfChannelValue = "6g-27-6085-40" - INTERFACERFCHANNELVALUE__6G_29_6095_20 InterfaceRfChannelValue = "6g-29-6095-20" - INTERFACERFCHANNELVALUE__6G_31_6105_320 InterfaceRfChannelValue = "6g-31-6105-320" - INTERFACERFCHANNELVALUE__6G_33_6115_20 InterfaceRfChannelValue = "6g-33-6115-20" - INTERFACERFCHANNELVALUE__6G_35_6125_40 InterfaceRfChannelValue = "6g-35-6125-40" - INTERFACERFCHANNELVALUE__6G_37_6135_20 InterfaceRfChannelValue = "6g-37-6135-20" - INTERFACERFCHANNELVALUE__6G_39_6145_80 InterfaceRfChannelValue = "6g-39-6145-80" - INTERFACERFCHANNELVALUE__6G_41_6155_20 InterfaceRfChannelValue = "6g-41-6155-20" - INTERFACERFCHANNELVALUE__6G_43_6165_40 InterfaceRfChannelValue = "6g-43-6165-40" - INTERFACERFCHANNELVALUE__6G_45_6175_20 InterfaceRfChannelValue = "6g-45-6175-20" - INTERFACERFCHANNELVALUE__6G_47_6185_160 InterfaceRfChannelValue = "6g-47-6185-160" - INTERFACERFCHANNELVALUE__6G_49_6195_20 InterfaceRfChannelValue = "6g-49-6195-20" - INTERFACERFCHANNELVALUE__6G_51_6205_40 InterfaceRfChannelValue = "6g-51-6205-40" - INTERFACERFCHANNELVALUE__6G_53_6215_20 InterfaceRfChannelValue = "6g-53-6215-20" - INTERFACERFCHANNELVALUE__6G_55_6225_80 InterfaceRfChannelValue = "6g-55-6225-80" - INTERFACERFCHANNELVALUE__6G_57_6235_20 InterfaceRfChannelValue = "6g-57-6235-20" - INTERFACERFCHANNELVALUE__6G_59_6245_40 InterfaceRfChannelValue = "6g-59-6245-40" - INTERFACERFCHANNELVALUE__6G_61_6255_20 InterfaceRfChannelValue = "6g-61-6255-20" - INTERFACERFCHANNELVALUE__6G_65_6275_20 InterfaceRfChannelValue = "6g-65-6275-20" - INTERFACERFCHANNELVALUE__6G_67_6285_40 InterfaceRfChannelValue = "6g-67-6285-40" - INTERFACERFCHANNELVALUE__6G_69_6295_20 InterfaceRfChannelValue = "6g-69-6295-20" - INTERFACERFCHANNELVALUE__6G_71_6305_80 InterfaceRfChannelValue = "6g-71-6305-80" - INTERFACERFCHANNELVALUE__6G_73_6315_20 InterfaceRfChannelValue = "6g-73-6315-20" - INTERFACERFCHANNELVALUE__6G_75_6325_40 InterfaceRfChannelValue = "6g-75-6325-40" - INTERFACERFCHANNELVALUE__6G_77_6335_20 InterfaceRfChannelValue = "6g-77-6335-20" - INTERFACERFCHANNELVALUE__6G_79_6345_160 InterfaceRfChannelValue = "6g-79-6345-160" - INTERFACERFCHANNELVALUE__6G_81_6355_20 InterfaceRfChannelValue = "6g-81-6355-20" - INTERFACERFCHANNELVALUE__6G_83_6365_40 InterfaceRfChannelValue = "6g-83-6365-40" - INTERFACERFCHANNELVALUE__6G_85_6375_20 InterfaceRfChannelValue = "6g-85-6375-20" - INTERFACERFCHANNELVALUE__6G_87_6385_80 InterfaceRfChannelValue = "6g-87-6385-80" - INTERFACERFCHANNELVALUE__6G_89_6395_20 InterfaceRfChannelValue = "6g-89-6395-20" - INTERFACERFCHANNELVALUE__6G_91_6405_40 InterfaceRfChannelValue = "6g-91-6405-40" - INTERFACERFCHANNELVALUE__6G_93_6415_20 InterfaceRfChannelValue = "6g-93-6415-20" - INTERFACERFCHANNELVALUE__6G_95_6425_320 InterfaceRfChannelValue = "6g-95-6425-320" - INTERFACERFCHANNELVALUE__6G_97_6435_20 InterfaceRfChannelValue = "6g-97-6435-20" - INTERFACERFCHANNELVALUE__6G_99_6445_40 InterfaceRfChannelValue = "6g-99-6445-40" - INTERFACERFCHANNELVALUE__6G_101_6455_20 InterfaceRfChannelValue = "6g-101-6455-20" - INTERFACERFCHANNELVALUE__6G_103_6465_80 InterfaceRfChannelValue = "6g-103-6465-80" - INTERFACERFCHANNELVALUE__6G_105_6475_20 InterfaceRfChannelValue = "6g-105-6475-20" - INTERFACERFCHANNELVALUE__6G_107_6485_40 InterfaceRfChannelValue = "6g-107-6485-40" - INTERFACERFCHANNELVALUE__6G_109_6495_20 InterfaceRfChannelValue = "6g-109-6495-20" - INTERFACERFCHANNELVALUE__6G_111_6505_160 InterfaceRfChannelValue = "6g-111-6505-160" - INTERFACERFCHANNELVALUE__6G_113_6515_20 InterfaceRfChannelValue = "6g-113-6515-20" - INTERFACERFCHANNELVALUE__6G_115_6525_40 InterfaceRfChannelValue = "6g-115-6525-40" - INTERFACERFCHANNELVALUE__6G_117_6535_20 InterfaceRfChannelValue = "6g-117-6535-20" - INTERFACERFCHANNELVALUE__6G_119_6545_80 InterfaceRfChannelValue = "6g-119-6545-80" - INTERFACERFCHANNELVALUE__6G_121_6555_20 InterfaceRfChannelValue = "6g-121-6555-20" - INTERFACERFCHANNELVALUE__6G_123_6565_40 InterfaceRfChannelValue = "6g-123-6565-40" - INTERFACERFCHANNELVALUE__6G_125_6575_20 InterfaceRfChannelValue = "6g-125-6575-20" - INTERFACERFCHANNELVALUE__6G_129_6595_20 InterfaceRfChannelValue = "6g-129-6595-20" - INTERFACERFCHANNELVALUE__6G_131_6605_40 InterfaceRfChannelValue = "6g-131-6605-40" - INTERFACERFCHANNELVALUE__6G_133_6615_20 InterfaceRfChannelValue = "6g-133-6615-20" - INTERFACERFCHANNELVALUE__6G_135_6625_80 InterfaceRfChannelValue = "6g-135-6625-80" - INTERFACERFCHANNELVALUE__6G_137_6635_20 InterfaceRfChannelValue = "6g-137-6635-20" - INTERFACERFCHANNELVALUE__6G_139_6645_40 InterfaceRfChannelValue = "6g-139-6645-40" - INTERFACERFCHANNELVALUE__6G_141_6655_20 InterfaceRfChannelValue = "6g-141-6655-20" - INTERFACERFCHANNELVALUE__6G_143_6665_160 InterfaceRfChannelValue = "6g-143-6665-160" - INTERFACERFCHANNELVALUE__6G_145_6675_20 InterfaceRfChannelValue = "6g-145-6675-20" - INTERFACERFCHANNELVALUE__6G_147_6685_40 InterfaceRfChannelValue = "6g-147-6685-40" - INTERFACERFCHANNELVALUE__6G_149_6695_20 InterfaceRfChannelValue = "6g-149-6695-20" - INTERFACERFCHANNELVALUE__6G_151_6705_80 InterfaceRfChannelValue = "6g-151-6705-80" - INTERFACERFCHANNELVALUE__6G_153_6715_20 InterfaceRfChannelValue = "6g-153-6715-20" - INTERFACERFCHANNELVALUE__6G_155_6725_40 InterfaceRfChannelValue = "6g-155-6725-40" - INTERFACERFCHANNELVALUE__6G_157_6735_20 InterfaceRfChannelValue = "6g-157-6735-20" - INTERFACERFCHANNELVALUE__6G_159_6745_320 InterfaceRfChannelValue = "6g-159-6745-320" - INTERFACERFCHANNELVALUE__6G_161_6755_20 InterfaceRfChannelValue = "6g-161-6755-20" - INTERFACERFCHANNELVALUE__6G_163_6765_40 InterfaceRfChannelValue = "6g-163-6765-40" - INTERFACERFCHANNELVALUE__6G_165_6775_20 InterfaceRfChannelValue = "6g-165-6775-20" - INTERFACERFCHANNELVALUE__6G_167_6785_80 InterfaceRfChannelValue = "6g-167-6785-80" - INTERFACERFCHANNELVALUE__6G_169_6795_20 InterfaceRfChannelValue = "6g-169-6795-20" - INTERFACERFCHANNELVALUE__6G_171_6805_40 InterfaceRfChannelValue = "6g-171-6805-40" - INTERFACERFCHANNELVALUE__6G_173_6815_20 InterfaceRfChannelValue = "6g-173-6815-20" - INTERFACERFCHANNELVALUE__6G_175_6825_160 InterfaceRfChannelValue = "6g-175-6825-160" - INTERFACERFCHANNELVALUE__6G_177_6835_20 InterfaceRfChannelValue = "6g-177-6835-20" - INTERFACERFCHANNELVALUE__6G_179_6845_40 InterfaceRfChannelValue = "6g-179-6845-40" - INTERFACERFCHANNELVALUE__6G_181_6855_20 InterfaceRfChannelValue = "6g-181-6855-20" - INTERFACERFCHANNELVALUE__6G_183_6865_80 InterfaceRfChannelValue = "6g-183-6865-80" - INTERFACERFCHANNELVALUE__6G_185_6875_20 InterfaceRfChannelValue = "6g-185-6875-20" - INTERFACERFCHANNELVALUE__6G_187_6885_40 InterfaceRfChannelValue = "6g-187-6885-40" - INTERFACERFCHANNELVALUE__6G_189_6895_20 InterfaceRfChannelValue = "6g-189-6895-20" - INTERFACERFCHANNELVALUE__6G_193_6915_20 InterfaceRfChannelValue = "6g-193-6915-20" - INTERFACERFCHANNELVALUE__6G_195_6925_40 InterfaceRfChannelValue = "6g-195-6925-40" - INTERFACERFCHANNELVALUE__6G_197_6935_20 InterfaceRfChannelValue = "6g-197-6935-20" - INTERFACERFCHANNELVALUE__6G_199_6945_80 InterfaceRfChannelValue = "6g-199-6945-80" - INTERFACERFCHANNELVALUE__6G_201_6955_20 InterfaceRfChannelValue = "6g-201-6955-20" - INTERFACERFCHANNELVALUE__6G_203_6965_40 InterfaceRfChannelValue = "6g-203-6965-40" - INTERFACERFCHANNELVALUE__6G_205_6975_20 InterfaceRfChannelValue = "6g-205-6975-20" - INTERFACERFCHANNELVALUE__6G_207_6985_160 InterfaceRfChannelValue = "6g-207-6985-160" - INTERFACERFCHANNELVALUE__6G_209_6995_20 InterfaceRfChannelValue = "6g-209-6995-20" - INTERFACERFCHANNELVALUE__6G_211_7005_40 InterfaceRfChannelValue = "6g-211-7005-40" - INTERFACERFCHANNELVALUE__6G_213_7015_20 InterfaceRfChannelValue = "6g-213-7015-20" - INTERFACERFCHANNELVALUE__6G_215_7025_80 InterfaceRfChannelValue = "6g-215-7025-80" - INTERFACERFCHANNELVALUE__6G_217_7035_20 InterfaceRfChannelValue = "6g-217-7035-20" - INTERFACERFCHANNELVALUE__6G_219_7045_40 InterfaceRfChannelValue = "6g-219-7045-40" - INTERFACERFCHANNELVALUE__6G_221_7055_20 InterfaceRfChannelValue = "6g-221-7055-20" - INTERFACERFCHANNELVALUE__6G_225_7075_20 InterfaceRfChannelValue = "6g-225-7075-20" - INTERFACERFCHANNELVALUE__6G_227_7085_40 InterfaceRfChannelValue = "6g-227-7085-40" - INTERFACERFCHANNELVALUE__6G_229_7095_20 InterfaceRfChannelValue = "6g-229-7095-20" - INTERFACERFCHANNELVALUE__6G_233_7115_20 InterfaceRfChannelValue = "6g-233-7115-20" - INTERFACERFCHANNELVALUE__60G_1_58320_2160 InterfaceRfChannelValue = "60g-1-58320-2160" - INTERFACERFCHANNELVALUE__60G_2_60480_2160 InterfaceRfChannelValue = "60g-2-60480-2160" - INTERFACERFCHANNELVALUE__60G_3_62640_2160 InterfaceRfChannelValue = "60g-3-62640-2160" - INTERFACERFCHANNELVALUE__60G_4_64800_2160 InterfaceRfChannelValue = "60g-4-64800-2160" - INTERFACERFCHANNELVALUE__60G_5_66960_2160 InterfaceRfChannelValue = "60g-5-66960-2160" - INTERFACERFCHANNELVALUE__60G_6_69120_2160 InterfaceRfChannelValue = "60g-6-69120-2160" - INTERFACERFCHANNELVALUE__60G_9_59400_4320 InterfaceRfChannelValue = "60g-9-59400-4320" + INTERFACERFCHANNELVALUE__2_4G_1_2412_22 InterfaceRfChannelValue = "2.4g-1-2412-22" + INTERFACERFCHANNELVALUE__2_4G_2_2417_22 InterfaceRfChannelValue = "2.4g-2-2417-22" + INTERFACERFCHANNELVALUE__2_4G_3_2422_22 InterfaceRfChannelValue = "2.4g-3-2422-22" + INTERFACERFCHANNELVALUE__2_4G_4_2427_22 InterfaceRfChannelValue = "2.4g-4-2427-22" + INTERFACERFCHANNELVALUE__2_4G_5_2432_22 InterfaceRfChannelValue = "2.4g-5-2432-22" + INTERFACERFCHANNELVALUE__2_4G_6_2437_22 InterfaceRfChannelValue = "2.4g-6-2437-22" + INTERFACERFCHANNELVALUE__2_4G_7_2442_22 InterfaceRfChannelValue = "2.4g-7-2442-22" + INTERFACERFCHANNELVALUE__2_4G_8_2447_22 InterfaceRfChannelValue = "2.4g-8-2447-22" + INTERFACERFCHANNELVALUE__2_4G_9_2452_22 InterfaceRfChannelValue = "2.4g-9-2452-22" + INTERFACERFCHANNELVALUE__2_4G_10_2457_22 InterfaceRfChannelValue = "2.4g-10-2457-22" + INTERFACERFCHANNELVALUE__2_4G_11_2462_22 InterfaceRfChannelValue = "2.4g-11-2462-22" + INTERFACERFCHANNELVALUE__2_4G_12_2467_22 InterfaceRfChannelValue = "2.4g-12-2467-22" + INTERFACERFCHANNELVALUE__2_4G_13_2472_22 InterfaceRfChannelValue = "2.4g-13-2472-22" + INTERFACERFCHANNELVALUE__5G_32_5160_20 InterfaceRfChannelValue = "5g-32-5160-20" + INTERFACERFCHANNELVALUE__5G_34_5170_40 InterfaceRfChannelValue = "5g-34-5170-40" + INTERFACERFCHANNELVALUE__5G_36_5180_20 InterfaceRfChannelValue = "5g-36-5180-20" + INTERFACERFCHANNELVALUE__5G_38_5190_40 InterfaceRfChannelValue = "5g-38-5190-40" + INTERFACERFCHANNELVALUE__5G_40_5200_20 InterfaceRfChannelValue = "5g-40-5200-20" + INTERFACERFCHANNELVALUE__5G_42_5210_80 InterfaceRfChannelValue = "5g-42-5210-80" + INTERFACERFCHANNELVALUE__5G_44_5220_20 InterfaceRfChannelValue = "5g-44-5220-20" + INTERFACERFCHANNELVALUE__5G_46_5230_40 InterfaceRfChannelValue = "5g-46-5230-40" + INTERFACERFCHANNELVALUE__5G_48_5240_20 InterfaceRfChannelValue = "5g-48-5240-20" + INTERFACERFCHANNELVALUE__5G_50_5250_160 InterfaceRfChannelValue = "5g-50-5250-160" + INTERFACERFCHANNELVALUE__5G_52_5260_20 InterfaceRfChannelValue = "5g-52-5260-20" + INTERFACERFCHANNELVALUE__5G_54_5270_40 InterfaceRfChannelValue = "5g-54-5270-40" + INTERFACERFCHANNELVALUE__5G_56_5280_20 InterfaceRfChannelValue = "5g-56-5280-20" + INTERFACERFCHANNELVALUE__5G_58_5290_80 InterfaceRfChannelValue = "5g-58-5290-80" + INTERFACERFCHANNELVALUE__5G_60_5300_20 InterfaceRfChannelValue = "5g-60-5300-20" + INTERFACERFCHANNELVALUE__5G_62_5310_40 InterfaceRfChannelValue = "5g-62-5310-40" + INTERFACERFCHANNELVALUE__5G_64_5320_20 InterfaceRfChannelValue = "5g-64-5320-20" + INTERFACERFCHANNELVALUE__5G_100_5500_20 InterfaceRfChannelValue = "5g-100-5500-20" + INTERFACERFCHANNELVALUE__5G_102_5510_40 InterfaceRfChannelValue = "5g-102-5510-40" + INTERFACERFCHANNELVALUE__5G_104_5520_20 InterfaceRfChannelValue = "5g-104-5520-20" + INTERFACERFCHANNELVALUE__5G_106_5530_80 InterfaceRfChannelValue = "5g-106-5530-80" + INTERFACERFCHANNELVALUE__5G_108_5540_20 InterfaceRfChannelValue = "5g-108-5540-20" + INTERFACERFCHANNELVALUE__5G_110_5550_40 InterfaceRfChannelValue = "5g-110-5550-40" + INTERFACERFCHANNELVALUE__5G_112_5560_20 InterfaceRfChannelValue = "5g-112-5560-20" + INTERFACERFCHANNELVALUE__5G_114_5570_160 InterfaceRfChannelValue = "5g-114-5570-160" + INTERFACERFCHANNELVALUE__5G_116_5580_20 InterfaceRfChannelValue = "5g-116-5580-20" + INTERFACERFCHANNELVALUE__5G_118_5590_40 InterfaceRfChannelValue = "5g-118-5590-40" + INTERFACERFCHANNELVALUE__5G_120_5600_20 InterfaceRfChannelValue = "5g-120-5600-20" + INTERFACERFCHANNELVALUE__5G_122_5610_80 InterfaceRfChannelValue = "5g-122-5610-80" + INTERFACERFCHANNELVALUE__5G_124_5620_20 InterfaceRfChannelValue = "5g-124-5620-20" + INTERFACERFCHANNELVALUE__5G_126_5630_40 InterfaceRfChannelValue = "5g-126-5630-40" + INTERFACERFCHANNELVALUE__5G_128_5640_20 InterfaceRfChannelValue = "5g-128-5640-20" + INTERFACERFCHANNELVALUE__5G_132_5660_20 InterfaceRfChannelValue = "5g-132-5660-20" + INTERFACERFCHANNELVALUE__5G_134_5670_40 InterfaceRfChannelValue = "5g-134-5670-40" + INTERFACERFCHANNELVALUE__5G_136_5680_20 InterfaceRfChannelValue = "5g-136-5680-20" + INTERFACERFCHANNELVALUE__5G_138_5690_80 InterfaceRfChannelValue = "5g-138-5690-80" + INTERFACERFCHANNELVALUE__5G_140_5700_20 InterfaceRfChannelValue = "5g-140-5700-20" + INTERFACERFCHANNELVALUE__5G_142_5710_40 InterfaceRfChannelValue = "5g-142-5710-40" + INTERFACERFCHANNELVALUE__5G_144_5720_20 InterfaceRfChannelValue = "5g-144-5720-20" + INTERFACERFCHANNELVALUE__5G_149_5745_20 InterfaceRfChannelValue = "5g-149-5745-20" + INTERFACERFCHANNELVALUE__5G_151_5755_40 InterfaceRfChannelValue = "5g-151-5755-40" + INTERFACERFCHANNELVALUE__5G_153_5765_20 InterfaceRfChannelValue = "5g-153-5765-20" + INTERFACERFCHANNELVALUE__5G_155_5775_80 InterfaceRfChannelValue = "5g-155-5775-80" + INTERFACERFCHANNELVALUE__5G_157_5785_20 InterfaceRfChannelValue = "5g-157-5785-20" + INTERFACERFCHANNELVALUE__5G_159_5795_40 InterfaceRfChannelValue = "5g-159-5795-40" + INTERFACERFCHANNELVALUE__5G_161_5805_20 InterfaceRfChannelValue = "5g-161-5805-20" + INTERFACERFCHANNELVALUE__5G_163_5815_160 InterfaceRfChannelValue = "5g-163-5815-160" + INTERFACERFCHANNELVALUE__5G_165_5825_20 InterfaceRfChannelValue = "5g-165-5825-20" + INTERFACERFCHANNELVALUE__5G_167_5835_40 InterfaceRfChannelValue = "5g-167-5835-40" + INTERFACERFCHANNELVALUE__5G_169_5845_20 InterfaceRfChannelValue = "5g-169-5845-20" + INTERFACERFCHANNELVALUE__5G_171_5855_80 InterfaceRfChannelValue = "5g-171-5855-80" + INTERFACERFCHANNELVALUE__5G_173_5865_20 InterfaceRfChannelValue = "5g-173-5865-20" + INTERFACERFCHANNELVALUE__5G_175_5875_40 InterfaceRfChannelValue = "5g-175-5875-40" + INTERFACERFCHANNELVALUE__5G_177_5885_20 InterfaceRfChannelValue = "5g-177-5885-20" + INTERFACERFCHANNELVALUE__6G_1_5955_20 InterfaceRfChannelValue = "6g-1-5955-20" + INTERFACERFCHANNELVALUE__6G_3_5965_40 InterfaceRfChannelValue = "6g-3-5965-40" + INTERFACERFCHANNELVALUE__6G_5_5975_20 InterfaceRfChannelValue = "6g-5-5975-20" + INTERFACERFCHANNELVALUE__6G_7_5985_80 InterfaceRfChannelValue = "6g-7-5985-80" + INTERFACERFCHANNELVALUE__6G_9_5995_20 InterfaceRfChannelValue = "6g-9-5995-20" + INTERFACERFCHANNELVALUE__6G_11_6005_40 InterfaceRfChannelValue = "6g-11-6005-40" + INTERFACERFCHANNELVALUE__6G_13_6015_20 InterfaceRfChannelValue = "6g-13-6015-20" + INTERFACERFCHANNELVALUE__6G_15_6025_160 InterfaceRfChannelValue = "6g-15-6025-160" + INTERFACERFCHANNELVALUE__6G_17_6035_20 InterfaceRfChannelValue = "6g-17-6035-20" + INTERFACERFCHANNELVALUE__6G_19_6045_40 InterfaceRfChannelValue = "6g-19-6045-40" + INTERFACERFCHANNELVALUE__6G_21_6055_20 InterfaceRfChannelValue = "6g-21-6055-20" + INTERFACERFCHANNELVALUE__6G_23_6065_80 InterfaceRfChannelValue = "6g-23-6065-80" + INTERFACERFCHANNELVALUE__6G_25_6075_20 InterfaceRfChannelValue = "6g-25-6075-20" + INTERFACERFCHANNELVALUE__6G_27_6085_40 InterfaceRfChannelValue = "6g-27-6085-40" + INTERFACERFCHANNELVALUE__6G_29_6095_20 InterfaceRfChannelValue = "6g-29-6095-20" + INTERFACERFCHANNELVALUE__6G_31_6105_320 InterfaceRfChannelValue = "6g-31-6105-320" + INTERFACERFCHANNELVALUE__6G_33_6115_20 InterfaceRfChannelValue = "6g-33-6115-20" + INTERFACERFCHANNELVALUE__6G_35_6125_40 InterfaceRfChannelValue = "6g-35-6125-40" + INTERFACERFCHANNELVALUE__6G_37_6135_20 InterfaceRfChannelValue = "6g-37-6135-20" + INTERFACERFCHANNELVALUE__6G_39_6145_80 InterfaceRfChannelValue = "6g-39-6145-80" + INTERFACERFCHANNELVALUE__6G_41_6155_20 InterfaceRfChannelValue = "6g-41-6155-20" + INTERFACERFCHANNELVALUE__6G_43_6165_40 InterfaceRfChannelValue = "6g-43-6165-40" + INTERFACERFCHANNELVALUE__6G_45_6175_20 InterfaceRfChannelValue = "6g-45-6175-20" + INTERFACERFCHANNELVALUE__6G_47_6185_160 InterfaceRfChannelValue = "6g-47-6185-160" + INTERFACERFCHANNELVALUE__6G_49_6195_20 InterfaceRfChannelValue = "6g-49-6195-20" + INTERFACERFCHANNELVALUE__6G_51_6205_40 InterfaceRfChannelValue = "6g-51-6205-40" + INTERFACERFCHANNELVALUE__6G_53_6215_20 InterfaceRfChannelValue = "6g-53-6215-20" + INTERFACERFCHANNELVALUE__6G_55_6225_80 InterfaceRfChannelValue = "6g-55-6225-80" + INTERFACERFCHANNELVALUE__6G_57_6235_20 InterfaceRfChannelValue = "6g-57-6235-20" + INTERFACERFCHANNELVALUE__6G_59_6245_40 InterfaceRfChannelValue = "6g-59-6245-40" + INTERFACERFCHANNELVALUE__6G_61_6255_20 InterfaceRfChannelValue = "6g-61-6255-20" + INTERFACERFCHANNELVALUE__6G_65_6275_20 InterfaceRfChannelValue = "6g-65-6275-20" + INTERFACERFCHANNELVALUE__6G_67_6285_40 InterfaceRfChannelValue = "6g-67-6285-40" + INTERFACERFCHANNELVALUE__6G_69_6295_20 InterfaceRfChannelValue = "6g-69-6295-20" + INTERFACERFCHANNELVALUE__6G_71_6305_80 InterfaceRfChannelValue = "6g-71-6305-80" + INTERFACERFCHANNELVALUE__6G_73_6315_20 InterfaceRfChannelValue = "6g-73-6315-20" + INTERFACERFCHANNELVALUE__6G_75_6325_40 InterfaceRfChannelValue = "6g-75-6325-40" + INTERFACERFCHANNELVALUE__6G_77_6335_20 InterfaceRfChannelValue = "6g-77-6335-20" + INTERFACERFCHANNELVALUE__6G_79_6345_160 InterfaceRfChannelValue = "6g-79-6345-160" + INTERFACERFCHANNELVALUE__6G_81_6355_20 InterfaceRfChannelValue = "6g-81-6355-20" + INTERFACERFCHANNELVALUE__6G_83_6365_40 InterfaceRfChannelValue = "6g-83-6365-40" + INTERFACERFCHANNELVALUE__6G_85_6375_20 InterfaceRfChannelValue = "6g-85-6375-20" + INTERFACERFCHANNELVALUE__6G_87_6385_80 InterfaceRfChannelValue = "6g-87-6385-80" + INTERFACERFCHANNELVALUE__6G_89_6395_20 InterfaceRfChannelValue = "6g-89-6395-20" + INTERFACERFCHANNELVALUE__6G_91_6405_40 InterfaceRfChannelValue = "6g-91-6405-40" + INTERFACERFCHANNELVALUE__6G_93_6415_20 InterfaceRfChannelValue = "6g-93-6415-20" + INTERFACERFCHANNELVALUE__6G_95_6425_320 InterfaceRfChannelValue = "6g-95-6425-320" + INTERFACERFCHANNELVALUE__6G_97_6435_20 InterfaceRfChannelValue = "6g-97-6435-20" + INTERFACERFCHANNELVALUE__6G_99_6445_40 InterfaceRfChannelValue = "6g-99-6445-40" + INTERFACERFCHANNELVALUE__6G_101_6455_20 InterfaceRfChannelValue = "6g-101-6455-20" + INTERFACERFCHANNELVALUE__6G_103_6465_80 InterfaceRfChannelValue = "6g-103-6465-80" + INTERFACERFCHANNELVALUE__6G_105_6475_20 InterfaceRfChannelValue = "6g-105-6475-20" + INTERFACERFCHANNELVALUE__6G_107_6485_40 InterfaceRfChannelValue = "6g-107-6485-40" + INTERFACERFCHANNELVALUE__6G_109_6495_20 InterfaceRfChannelValue = "6g-109-6495-20" + INTERFACERFCHANNELVALUE__6G_111_6505_160 InterfaceRfChannelValue = "6g-111-6505-160" + INTERFACERFCHANNELVALUE__6G_113_6515_20 InterfaceRfChannelValue = "6g-113-6515-20" + INTERFACERFCHANNELVALUE__6G_115_6525_40 InterfaceRfChannelValue = "6g-115-6525-40" + INTERFACERFCHANNELVALUE__6G_117_6535_20 InterfaceRfChannelValue = "6g-117-6535-20" + INTERFACERFCHANNELVALUE__6G_119_6545_80 InterfaceRfChannelValue = "6g-119-6545-80" + INTERFACERFCHANNELVALUE__6G_121_6555_20 InterfaceRfChannelValue = "6g-121-6555-20" + INTERFACERFCHANNELVALUE__6G_123_6565_40 InterfaceRfChannelValue = "6g-123-6565-40" + INTERFACERFCHANNELVALUE__6G_125_6575_20 InterfaceRfChannelValue = "6g-125-6575-20" + INTERFACERFCHANNELVALUE__6G_129_6595_20 InterfaceRfChannelValue = "6g-129-6595-20" + INTERFACERFCHANNELVALUE__6G_131_6605_40 InterfaceRfChannelValue = "6g-131-6605-40" + INTERFACERFCHANNELVALUE__6G_133_6615_20 InterfaceRfChannelValue = "6g-133-6615-20" + INTERFACERFCHANNELVALUE__6G_135_6625_80 InterfaceRfChannelValue = "6g-135-6625-80" + INTERFACERFCHANNELVALUE__6G_137_6635_20 InterfaceRfChannelValue = "6g-137-6635-20" + INTERFACERFCHANNELVALUE__6G_139_6645_40 InterfaceRfChannelValue = "6g-139-6645-40" + INTERFACERFCHANNELVALUE__6G_141_6655_20 InterfaceRfChannelValue = "6g-141-6655-20" + INTERFACERFCHANNELVALUE__6G_143_6665_160 InterfaceRfChannelValue = "6g-143-6665-160" + INTERFACERFCHANNELVALUE__6G_145_6675_20 InterfaceRfChannelValue = "6g-145-6675-20" + INTERFACERFCHANNELVALUE__6G_147_6685_40 InterfaceRfChannelValue = "6g-147-6685-40" + INTERFACERFCHANNELVALUE__6G_149_6695_20 InterfaceRfChannelValue = "6g-149-6695-20" + INTERFACERFCHANNELVALUE__6G_151_6705_80 InterfaceRfChannelValue = "6g-151-6705-80" + INTERFACERFCHANNELVALUE__6G_153_6715_20 InterfaceRfChannelValue = "6g-153-6715-20" + INTERFACERFCHANNELVALUE__6G_155_6725_40 InterfaceRfChannelValue = "6g-155-6725-40" + INTERFACERFCHANNELVALUE__6G_157_6735_20 InterfaceRfChannelValue = "6g-157-6735-20" + INTERFACERFCHANNELVALUE__6G_159_6745_320 InterfaceRfChannelValue = "6g-159-6745-320" + INTERFACERFCHANNELVALUE__6G_161_6755_20 InterfaceRfChannelValue = "6g-161-6755-20" + INTERFACERFCHANNELVALUE__6G_163_6765_40 InterfaceRfChannelValue = "6g-163-6765-40" + INTERFACERFCHANNELVALUE__6G_165_6775_20 InterfaceRfChannelValue = "6g-165-6775-20" + INTERFACERFCHANNELVALUE__6G_167_6785_80 InterfaceRfChannelValue = "6g-167-6785-80" + INTERFACERFCHANNELVALUE__6G_169_6795_20 InterfaceRfChannelValue = "6g-169-6795-20" + INTERFACERFCHANNELVALUE__6G_171_6805_40 InterfaceRfChannelValue = "6g-171-6805-40" + INTERFACERFCHANNELVALUE__6G_173_6815_20 InterfaceRfChannelValue = "6g-173-6815-20" + INTERFACERFCHANNELVALUE__6G_175_6825_160 InterfaceRfChannelValue = "6g-175-6825-160" + INTERFACERFCHANNELVALUE__6G_177_6835_20 InterfaceRfChannelValue = "6g-177-6835-20" + INTERFACERFCHANNELVALUE__6G_179_6845_40 InterfaceRfChannelValue = "6g-179-6845-40" + INTERFACERFCHANNELVALUE__6G_181_6855_20 InterfaceRfChannelValue = "6g-181-6855-20" + INTERFACERFCHANNELVALUE__6G_183_6865_80 InterfaceRfChannelValue = "6g-183-6865-80" + INTERFACERFCHANNELVALUE__6G_185_6875_20 InterfaceRfChannelValue = "6g-185-6875-20" + INTERFACERFCHANNELVALUE__6G_187_6885_40 InterfaceRfChannelValue = "6g-187-6885-40" + INTERFACERFCHANNELVALUE__6G_189_6895_20 InterfaceRfChannelValue = "6g-189-6895-20" + INTERFACERFCHANNELVALUE__6G_193_6915_20 InterfaceRfChannelValue = "6g-193-6915-20" + INTERFACERFCHANNELVALUE__6G_195_6925_40 InterfaceRfChannelValue = "6g-195-6925-40" + INTERFACERFCHANNELVALUE__6G_197_6935_20 InterfaceRfChannelValue = "6g-197-6935-20" + INTERFACERFCHANNELVALUE__6G_199_6945_80 InterfaceRfChannelValue = "6g-199-6945-80" + INTERFACERFCHANNELVALUE__6G_201_6955_20 InterfaceRfChannelValue = "6g-201-6955-20" + INTERFACERFCHANNELVALUE__6G_203_6965_40 InterfaceRfChannelValue = "6g-203-6965-40" + INTERFACERFCHANNELVALUE__6G_205_6975_20 InterfaceRfChannelValue = "6g-205-6975-20" + INTERFACERFCHANNELVALUE__6G_207_6985_160 InterfaceRfChannelValue = "6g-207-6985-160" + INTERFACERFCHANNELVALUE__6G_209_6995_20 InterfaceRfChannelValue = "6g-209-6995-20" + INTERFACERFCHANNELVALUE__6G_211_7005_40 InterfaceRfChannelValue = "6g-211-7005-40" + INTERFACERFCHANNELVALUE__6G_213_7015_20 InterfaceRfChannelValue = "6g-213-7015-20" + INTERFACERFCHANNELVALUE__6G_215_7025_80 InterfaceRfChannelValue = "6g-215-7025-80" + INTERFACERFCHANNELVALUE__6G_217_7035_20 InterfaceRfChannelValue = "6g-217-7035-20" + INTERFACERFCHANNELVALUE__6G_219_7045_40 InterfaceRfChannelValue = "6g-219-7045-40" + INTERFACERFCHANNELVALUE__6G_221_7055_20 InterfaceRfChannelValue = "6g-221-7055-20" + INTERFACERFCHANNELVALUE__6G_225_7075_20 InterfaceRfChannelValue = "6g-225-7075-20" + INTERFACERFCHANNELVALUE__6G_227_7085_40 InterfaceRfChannelValue = "6g-227-7085-40" + INTERFACERFCHANNELVALUE__6G_229_7095_20 InterfaceRfChannelValue = "6g-229-7095-20" + INTERFACERFCHANNELVALUE__6G_233_7115_20 InterfaceRfChannelValue = "6g-233-7115-20" + INTERFACERFCHANNELVALUE__60G_1_58320_2160 InterfaceRfChannelValue = "60g-1-58320-2160" + INTERFACERFCHANNELVALUE__60G_2_60480_2160 InterfaceRfChannelValue = "60g-2-60480-2160" + INTERFACERFCHANNELVALUE__60G_3_62640_2160 InterfaceRfChannelValue = "60g-3-62640-2160" + INTERFACERFCHANNELVALUE__60G_4_64800_2160 InterfaceRfChannelValue = "60g-4-64800-2160" + INTERFACERFCHANNELVALUE__60G_5_66960_2160 InterfaceRfChannelValue = "60g-5-66960-2160" + INTERFACERFCHANNELVALUE__60G_6_69120_2160 InterfaceRfChannelValue = "60g-6-69120-2160" + INTERFACERFCHANNELVALUE__60G_9_59400_4320 InterfaceRfChannelValue = "60g-9-59400-4320" INTERFACERFCHANNELVALUE__60G_10_61560_4320 InterfaceRfChannelValue = "60g-10-61560-4320" INTERFACERFCHANNELVALUE__60G_11_63720_4320 InterfaceRfChannelValue = "60g-11-63720-4320" INTERFACERFCHANNELVALUE__60G_12_65880_4320 InterfaceRfChannelValue = "60g-12-65880-4320" @@ -217,7 +217,7 @@ const ( INTERFACERFCHANNELVALUE__60G_25_61560_6480 InterfaceRfChannelValue = "60g-25-61560-6480" INTERFACERFCHANNELVALUE__60G_26_63720_6480 InterfaceRfChannelValue = "60g-26-63720-6480" INTERFACERFCHANNELVALUE__60G_27_65880_6480 InterfaceRfChannelValue = "60g-27-65880-6480" - INTERFACERFCHANNELVALUE_EMPTY InterfaceRfChannelValue = "" + INTERFACERFCHANNELVALUE_EMPTY InterfaceRfChannelValue = "" ) // All allowed values of InterfaceRfChannelValue enum @@ -500,3 +500,4 @@ func (v *NullableInterfaceRfChannelValue) 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 a7f8f1cd97..2451c9a016 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceRfRole{} // InterfaceRfRole struct for InterfaceRfRole type InterfaceRfRole struct { - Value *InterfaceRfRoleValue `json:"value,omitempty"` - Label *InterfaceRfRoleLabel `json:"label,omitempty"` + Value *InterfaceRfRoleValue `json:"value,omitempty"` + Label *InterfaceRfRoleLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceRfRole) SetLabel(v InterfaceRfRoleLabel) { } func (o InterfaceRfRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableInterfaceRfRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go index 201cb2af42..de4e700f2a 100644 --- a/model_interface_rf_role_label.go +++ b/model_interface_rf_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type InterfaceRfRoleLabel string // List of Interface_rf_role_label const ( INTERFACERFROLELABEL_ACCESS_POINT InterfaceRfRoleLabel = "Access point" - INTERFACERFROLELABEL_STATION InterfaceRfRoleLabel = "Station" + INTERFACERFROLELABEL_STATION InterfaceRfRoleLabel = "Station" ) // All allowed values of InterfaceRfRoleLabel enum @@ -108,3 +108,4 @@ func (v *NullableInterfaceRfRoleLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go index 364371e9c3..4967ce20ff 100644 --- a/model_interface_rf_role_value.go +++ b/model_interface_rf_role_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type InterfaceRfRoleValue string // List of Interface_rf_role_value const ( - INTERFACERFROLEVALUE_AP InterfaceRfRoleValue = "ap" + INTERFACERFROLEVALUE_AP InterfaceRfRoleValue = "ap" INTERFACERFROLEVALUE_STATION InterfaceRfRoleValue = "station" - INTERFACERFROLEVALUE_EMPTY InterfaceRfRoleValue = "" + INTERFACERFROLEVALUE_EMPTY InterfaceRfRoleValue = "" ) // All allowed values of InterfaceRfRoleValue enum @@ -110,3 +110,4 @@ func (v *NullableInterfaceRfRoleValue) 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 37184eb6b0..6aad10e283 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the InterfaceTemplate type satisfies the MappedNullable interface at compile time @@ -21,25 +21,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"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,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"` - 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"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,15 +49,13 @@ type _InterfaceTemplate InterfaceTemplate // 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 NewInterfaceTemplate(id int32, url string, display string, name string, type_ InterfaceType, created NullableTime, lastUpdated NullableTime) *InterfaceTemplate { +func NewInterfaceTemplate(id int32, url string, display string, name string, type_ InterfaceType) *InterfaceTemplate { this := InterfaceTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name this.Type = type_ - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -93,6 +91,7 @@ func (o *InterfaceTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *InterfaceTemplate) GetUrl() string { if o == nil { @@ -117,6 +116,7 @@ func (o *InterfaceTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *InterfaceTemplate) GetDisplay() string { if o == nil { @@ -141,10 +141,11 @@ func (o *InterfaceTemplate) SetDisplay(v string) { o.Display = v } + // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetDeviceType() DeviceType { +func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -153,7 +154,7 @@ func (o *InterfaceTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType 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) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -169,11 +170,10 @@ func (o *InterfaceTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *InterfaceTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *InterfaceTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -185,9 +185,9 @@ func (o *InterfaceTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetModuleType() ModuleType { +func (o *InterfaceTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -196,7 +196,7 @@ func (o *InterfaceTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType 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) GetModuleTypeOk() (*ModuleType, bool) { +func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -212,11 +212,10 @@ func (o *InterfaceTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *InterfaceTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *InterfaceTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *InterfaceTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -251,6 +250,7 @@ func (o *InterfaceTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *InterfaceTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -307,6 +307,7 @@ func (o *InterfaceTemplate) SetType(v InterfaceType) { o.Type = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *InterfaceTemplate) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -435,7 +436,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) @@ -478,7 +478,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) @@ -521,7 +520,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) @@ -564,7 +562,6 @@ func (o *InterfaceTemplate) HasRfRole() bool { 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) @@ -575,18 +572,16 @@ 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 +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InterfaceTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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) GetCreatedOk() (*time.Time, bool) { @@ -596,23 +591,39 @@ func (o *InterfaceTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *InterfaceTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *InterfaceTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *InterfaceTemplate) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *InterfaceTemplate) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InterfaceTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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) GetLastUpdatedOk() (*time.Time, bool) { @@ -622,13 +633,31 @@ func (o *InterfaceTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *InterfaceTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *InterfaceTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *InterfaceTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *InterfaceTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o InterfaceTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -672,8 +701,12 @@ func (o InterfaceTemplate) ToMap() (map[string]interface{}, error) { if o.RfRole.IsSet() { toSerialize["rf_role"] = o.RfRole.Get() } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -692,24 +725,39 @@ func (o *InterfaceTemplate) UnmarshalJSON(data []byte) (err error) { "display", "name", "type", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInterfaceTemplate := _InterfaceTemplate{} err = json.Unmarshal(data, &varInterfaceTemplate) @@ -781,3 +829,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 7811b7e106..66c8f18641 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceTemplatePoeMode{} // InterfaceTemplatePoeMode struct for InterfaceTemplatePoeMode type InterfaceTemplatePoeMode struct { - Value *InterfacePoeModeValue `json:"value,omitempty"` - Label *InterfacePoeModeLabel `json:"label,omitempty"` + Value *InterfacePoeModeValue `json:"value,omitempty"` + Label *InterfacePoeModeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceTemplatePoeMode) SetLabel(v InterfacePoeModeLabel) { } func (o InterfaceTemplatePoeMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,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 2c1cb4d01b..01f87178d2 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceTemplatePoeType{} // InterfaceTemplatePoeType struct for InterfaceTemplatePoeType type InterfaceTemplatePoeType struct { - Value *InterfacePoeTypeValue `json:"value,omitempty"` - Label *InterfacePoeTypeLabel `json:"label,omitempty"` + Value *InterfacePoeTypeValue `json:"value,omitempty"` + Label *InterfacePoeTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceTemplatePoeType) SetLabel(v InterfacePoeTypeLabel) { } func (o InterfaceTemplatePoeType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,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 bea10caaf9..0b711cc6f0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &InterfaceTemplateRequest{} // InterfaceTemplateRequest 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 InterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type InterfaceTypeValue `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"` - PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"` - PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"` - RfRole NullableInterfaceTemplateRequestRfRole `json:"rf_role,omitempty"` + Label *string `json:"label,omitempty"` + Type InterfaceTypeValue `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"` + PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"` + PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"` + RfRole NullableInterfaceTemplateRequestRfRole `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -59,9 +59,9 @@ func NewInterfaceTemplateRequestWithDefaults() *InterfaceTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,11 +86,10 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *InterfaceTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -102,9 +101,9 @@ func (o *InterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +112,7 @@ func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,11 +128,10 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *InterfaceTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -168,6 +166,7 @@ func (o *InterfaceTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *InterfaceTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -224,6 +223,7 @@ func (o *InterfaceTemplateRequest) SetType(v InterfaceTypeValue) { o.Type = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *InterfaceTemplateRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -352,7 +352,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) @@ -395,7 +394,6 @@ func (o *InterfaceTemplateRequest) HasPoeMode() bool { func (o *InterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) { o.PoeMode.Set(&v) } - // SetPoeModeNil sets the value for PoeMode to be an explicit nil func (o *InterfaceTemplateRequest) SetPoeModeNil() { o.PoeMode.Set(nil) @@ -438,7 +436,6 @@ func (o *InterfaceTemplateRequest) HasPoeType() bool { func (o *InterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType) { o.PoeType.Set(&v) } - // SetPoeTypeNil sets the value for PoeType to be an explicit nil func (o *InterfaceTemplateRequest) SetPoeTypeNil() { o.PoeType.Set(nil) @@ -481,7 +478,6 @@ func (o *InterfaceTemplateRequest) HasRfRole() bool { func (o *InterfaceTemplateRequest) SetRfRole(v InterfaceTemplateRequestRfRole) { o.RfRole.Set(&v) } - // SetRfRoleNil sets the value for RfRole to be an explicit nil func (o *InterfaceTemplateRequest) SetRfRoleNil() { o.RfRole.Set(nil) @@ -493,7 +489,7 @@ func (o *InterfaceTemplateRequest) UnsetRfRole() { } func (o InterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -551,20 +547,37 @@ func (o *InterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInterfaceTemplateRequest := _InterfaceTemplateRequest{} err = json.Unmarshal(data, &varInterfaceTemplateRequest) @@ -631,3 +644,5 @@ func (v *NullableInterfaceTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go index f2b93a7818..0ce1075f7f 100644 --- a/model_interface_template_request_poe_mode.go +++ b/model_interface_template_request_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type InterfaceTemplateRequestPoeMode string // List of InterfaceTemplateRequest_poe_mode const ( - INTERFACETEMPLATEREQUESTPOEMODE_PD InterfaceTemplateRequestPoeMode = "pd" - INTERFACETEMPLATEREQUESTPOEMODE_PSE InterfaceTemplateRequestPoeMode = "pse" + INTERFACETEMPLATEREQUESTPOEMODE_PD InterfaceTemplateRequestPoeMode = "pd" + INTERFACETEMPLATEREQUESTPOEMODE_PSE InterfaceTemplateRequestPoeMode = "pse" INTERFACETEMPLATEREQUESTPOEMODE_EMPTY InterfaceTemplateRequestPoeMode = "" ) @@ -110,3 +110,4 @@ func (v *NullableInterfaceTemplateRequestPoeMode) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go index 1f35567e15..83f7d1efee 100644 --- a/model_interface_template_request_poe_type.go +++ b/model_interface_template_request_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,7 +28,7 @@ const ( INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_24V_4PAIR InterfaceTemplateRequestPoeType = "passive-24v-4pair" INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_48V_2PAIR InterfaceTemplateRequestPoeType = "passive-48v-2pair" INTERFACETEMPLATEREQUESTPOETYPE_PASSIVE_48V_4PAIR InterfaceTemplateRequestPoeType = "passive-48v-4pair" - INTERFACETEMPLATEREQUESTPOETYPE_EMPTY InterfaceTemplateRequestPoeType = "" + INTERFACETEMPLATEREQUESTPOETYPE_EMPTY InterfaceTemplateRequestPoeType = "" ) // All allowed values of InterfaceTemplateRequestPoeType enum @@ -122,3 +122,4 @@ func (v *NullableInterfaceTemplateRequestPoeType) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go index db39e85145..339cf06bb4 100644 --- a/model_interface_template_request_rf_role.go +++ b/model_interface_template_request_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type InterfaceTemplateRequestRfRole string // List of InterfaceTemplateRequest_rf_role const ( - INTERFACETEMPLATEREQUESTRFROLE_AP InterfaceTemplateRequestRfRole = "ap" + INTERFACETEMPLATEREQUESTRFROLE_AP InterfaceTemplateRequestRfRole = "ap" INTERFACETEMPLATEREQUESTRFROLE_STATION InterfaceTemplateRequestRfRole = "station" - INTERFACETEMPLATEREQUESTRFROLE_EMPTY InterfaceTemplateRequestRfRole = "" + INTERFACETEMPLATEREQUESTRFROLE_EMPTY InterfaceTemplateRequestRfRole = "" ) // All allowed values of InterfaceTemplateRequestRfRole enum @@ -110,3 +110,4 @@ func (v *NullableInterfaceTemplateRequestRfRole) 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 index 3eaf185c19..136ecf2ec1 100644 --- a/model_interface_template_rf_role.go +++ b/model_interface_template_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceTemplateRfRole{} // InterfaceTemplateRfRole struct for InterfaceTemplateRfRole type InterfaceTemplateRfRole struct { - Value *InterfaceRfRoleValue `json:"value,omitempty"` - Label *InterfaceRfRoleLabel `json:"label,omitempty"` + Value *InterfaceRfRoleValue `json:"value,omitempty"` + Label *InterfaceRfRoleLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceTemplateRfRole) SetLabel(v InterfaceRfRoleLabel) { } func (o InterfaceTemplateRfRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ 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 d5a16d3e2d..10ae496266 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &InterfaceType{} // InterfaceType struct for InterfaceType type InterfaceType struct { - Value *InterfaceTypeValue `json:"value,omitempty"` - Label *InterfaceTypeLabel `json:"label,omitempty"` + Value *InterfaceTypeValue `json:"value,omitempty"` + Label *InterfaceTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *InterfaceType) SetLabel(v InterfaceTypeLabel) { } func (o InterfaceType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableInterfaceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_type_label.go b/model_interface_type_label.go index 99dedfa786..93884cbfb3 100644 --- a/model_interface_type_label.go +++ b/model_interface_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,131 +20,136 @@ type InterfaceTypeLabel string // List of Interface_type_label const ( - INTERFACETYPELABEL_VIRTUAL InterfaceTypeLabel = "Virtual" - INTERFACETYPELABEL_BRIDGE InterfaceTypeLabel = "Bridge" - INTERFACETYPELABEL_LINK_AGGREGATION_GROUP__LAG InterfaceTypeLabel = "Link Aggregation Group (LAG)" - INTERFACETYPELABEL__100_BASE_FX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-FX (10/100ME FIBER)" - INTERFACETYPELABEL__100_BASE_LFX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-LFX (10/100ME FIBER)" - INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)" + INTERFACETYPELABEL_VIRTUAL InterfaceTypeLabel = "Virtual" + INTERFACETYPELABEL_BRIDGE InterfaceTypeLabel = "Bridge" + INTERFACETYPELABEL_LINK_AGGREGATION_GROUP__LAG InterfaceTypeLabel = "Link Aggregation Group (LAG)" + INTERFACETYPELABEL__100_BASE_FX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-FX (10/100ME FIBER)" + INTERFACETYPELABEL__100_BASE_LFX__10_100_ME_FIBER InterfaceTypeLabel = "100BASE-LFX (10/100ME FIBER)" + INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)" INTERFACETYPELABEL__100_BASE_T1__10_100_ME_SINGLE_PAIR InterfaceTypeLabel = "100BASE-T1 (10/100ME Single Pair)" - INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)" - INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)" - INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)" - INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)" - INTERFACETYPELABEL__10_GBASE_CX4__10_GE InterfaceTypeLabel = "10GBASE-CX4 (10GE)" - INTERFACETYPELABEL_GBIC__1_GE InterfaceTypeLabel = "GBIC (1GE)" - INTERFACETYPELABEL_SFP__1_GE InterfaceTypeLabel = "SFP (1GE)" - INTERFACETYPELABEL_SFP__10_GE InterfaceTypeLabel = "SFP+ (10GE)" - INTERFACETYPELABEL_XFP__10_GE InterfaceTypeLabel = "XFP (10GE)" - INTERFACETYPELABEL_XENPAK__10_GE InterfaceTypeLabel = "XENPAK (10GE)" - INTERFACETYPELABEL_X2__10_GE InterfaceTypeLabel = "X2 (10GE)" - INTERFACETYPELABEL_SFP28__25_GE InterfaceTypeLabel = "SFP28 (25GE)" - INTERFACETYPELABEL_SFP56__50_GE InterfaceTypeLabel = "SFP56 (50GE)" - INTERFACETYPELABEL_QSFP__40_GE InterfaceTypeLabel = "QSFP+ (40GE)" - INTERFACETYPELABEL_QSFP28__50_GE InterfaceTypeLabel = "QSFP28 (50GE)" - INTERFACETYPELABEL_CFP__100_GE InterfaceTypeLabel = "CFP (100GE)" - INTERFACETYPELABEL_CFP2__100_GE InterfaceTypeLabel = "CFP2 (100GE)" - INTERFACETYPELABEL_CFP2__200_GE InterfaceTypeLabel = "CFP2 (200GE)" - INTERFACETYPELABEL_CFP2__400_GE InterfaceTypeLabel = "CFP2 (400GE)" - INTERFACETYPELABEL_CFP4__100_GE InterfaceTypeLabel = "CFP4 (100GE)" - INTERFACETYPELABEL_CXP__100_GE InterfaceTypeLabel = "CXP (100GE)" - INTERFACETYPELABEL_CISCO_CPAK__100_GE InterfaceTypeLabel = "Cisco CPAK (100GE)" - INTERFACETYPELABEL_DSFP__100_GE InterfaceTypeLabel = "DSFP (100GE)" - INTERFACETYPELABEL_SFP_DD__100_GE InterfaceTypeLabel = "SFP-DD (100GE)" - INTERFACETYPELABEL_QSFP28__100_GE InterfaceTypeLabel = "QSFP28 (100GE)" - INTERFACETYPELABEL_QSFP_DD__100_GE InterfaceTypeLabel = "QSFP-DD (100GE)" - INTERFACETYPELABEL_QSFP56__200_GE InterfaceTypeLabel = "QSFP56 (200GE)" - INTERFACETYPELABEL_QSFP_DD__200_GE InterfaceTypeLabel = "QSFP-DD (200GE)" - INTERFACETYPELABEL_QSFP112__400_GE InterfaceTypeLabel = "QSFP112 (400GE)" - INTERFACETYPELABEL_QSFP_DD__400_GE InterfaceTypeLabel = "QSFP-DD (400GE)" - INTERFACETYPELABEL_OSFP__400_GE InterfaceTypeLabel = "OSFP (400GE)" - INTERFACETYPELABEL_OSFP_RHS__400_GE InterfaceTypeLabel = "OSFP-RHS (400GE)" - INTERFACETYPELABEL_CDFP__400_GE InterfaceTypeLabel = "CDFP (400GE)" - INTERFACETYPELABEL_CPF8__400_GE InterfaceTypeLabel = "CPF8 (400GE)" - INTERFACETYPELABEL_QSFP_DD__800_GE InterfaceTypeLabel = "QSFP-DD (800GE)" - INTERFACETYPELABEL_OSFP__800_GE InterfaceTypeLabel = "OSFP (800GE)" - INTERFACETYPELABEL__1000_BASE_KX__1_GE InterfaceTypeLabel = "1000BASE-KX (1GE)" - INTERFACETYPELABEL__2_5_GBASE_KX__2_5_GE InterfaceTypeLabel = "2.5GBASE-KX (2.5GE)" - INTERFACETYPELABEL__5_GBASE_KR__5_GE InterfaceTypeLabel = "5GBASE-KR (5GE)" - INTERFACETYPELABEL__10_GBASE_KR__10_GE InterfaceTypeLabel = "10GBASE-KR (10GE)" - INTERFACETYPELABEL__10_GBASE_KX4__10_GE InterfaceTypeLabel = "10GBASE-KX4 (10GE)" - INTERFACETYPELABEL__25_GBASE_KR__25_GE InterfaceTypeLabel = "25GBASE-KR (25GE)" - INTERFACETYPELABEL__40_GBASE_KR4__40_GE InterfaceTypeLabel = "40GBASE-KR4 (40GE)" - INTERFACETYPELABEL__50_GBASE_KR__50_GE InterfaceTypeLabel = "50GBASE-KR (50GE)" - INTERFACETYPELABEL__100_GBASE_KP4__100_GE InterfaceTypeLabel = "100GBASE-KP4 (100GE)" - INTERFACETYPELABEL__100_GBASE_KR2__100_GE InterfaceTypeLabel = "100GBASE-KR2 (100GE)" - INTERFACETYPELABEL__100_GBASE_KR4__100_GE InterfaceTypeLabel = "100GBASE-KR4 (100GE)" - INTERFACETYPELABEL_IEEE_802_11A InterfaceTypeLabel = "IEEE 802.11a" - INTERFACETYPELABEL_IEEE_802_11B_G InterfaceTypeLabel = "IEEE 802.11b/g" - INTERFACETYPELABEL_IEEE_802_11N InterfaceTypeLabel = "IEEE 802.11n" - INTERFACETYPELABEL_IEEE_802_11AC InterfaceTypeLabel = "IEEE 802.11ac" - INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad" - INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax" - INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay" - INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)" - INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)" - INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM" - INTERFACETYPELABEL_CDMA InterfaceTypeLabel = "CDMA" - INTERFACETYPELABEL_LTE InterfaceTypeLabel = "LTE" - INTERFACETYPELABEL__4_G InterfaceTypeLabel = "4G" - INTERFACETYPELABEL__5_G InterfaceTypeLabel = "5G" - INTERFACETYPELABEL_OC_3_STM_1 InterfaceTypeLabel = "OC-3/STM-1" - INTERFACETYPELABEL_OC_12_STM_4 InterfaceTypeLabel = "OC-12/STM-4" - INTERFACETYPELABEL_OC_48_STM_16 InterfaceTypeLabel = "OC-48/STM-16" - INTERFACETYPELABEL_OC_192_STM_64 InterfaceTypeLabel = "OC-192/STM-64" - INTERFACETYPELABEL_OC_768_STM_256 InterfaceTypeLabel = "OC-768/STM-256" - INTERFACETYPELABEL_OC_1920_STM_640 InterfaceTypeLabel = "OC-1920/STM-640" - INTERFACETYPELABEL_OC_3840_STM_1234 InterfaceTypeLabel = "OC-3840/STM-1234" - INTERFACETYPELABEL_SFP__1_GFC InterfaceTypeLabel = "SFP (1GFC)" - INTERFACETYPELABEL_SFP__2_GFC InterfaceTypeLabel = "SFP (2GFC)" - INTERFACETYPELABEL_SFP__4_GFC InterfaceTypeLabel = "SFP (4GFC)" - INTERFACETYPELABEL_SFP__8_GFC InterfaceTypeLabel = "SFP+ (8GFC)" - INTERFACETYPELABEL_SFP__16_GFC InterfaceTypeLabel = "SFP+ (16GFC)" - INTERFACETYPELABEL_SFP28__32_GFC InterfaceTypeLabel = "SFP28 (32GFC)" - INTERFACETYPELABEL_SFP__32_GFC InterfaceTypeLabel = "SFP+ (32GFC)" - INTERFACETYPELABEL_QSFP__64_GFC InterfaceTypeLabel = "QSFP+ (64GFC)" - INTERFACETYPELABEL_SFP_DD__64_GFC InterfaceTypeLabel = "SFP-DD (64GFC)" - INTERFACETYPELABEL_SFP__64_GFC InterfaceTypeLabel = "SFP+ (64GFC)" - INTERFACETYPELABEL_QSFP28__128_GFC InterfaceTypeLabel = "QSFP28 (128GFC)" - INTERFACETYPELABEL_SDR__2_GBPS InterfaceTypeLabel = "SDR (2 Gbps)" - INTERFACETYPELABEL_DDR__4_GBPS InterfaceTypeLabel = "DDR (4 Gbps)" - INTERFACETYPELABEL_QDR__8_GBPS InterfaceTypeLabel = "QDR (8 Gbps)" - INTERFACETYPELABEL_FDR10__10_GBPS InterfaceTypeLabel = "FDR10 (10 Gbps)" - INTERFACETYPELABEL_FDR__13_5_GBPS InterfaceTypeLabel = "FDR (13.5 Gbps)" - INTERFACETYPELABEL_EDR__25_GBPS InterfaceTypeLabel = "EDR (25 Gbps)" - INTERFACETYPELABEL_HDR__50_GBPS InterfaceTypeLabel = "HDR (50 Gbps)" - INTERFACETYPELABEL_NDR__100_GBPS InterfaceTypeLabel = "NDR (100 Gbps)" - INTERFACETYPELABEL_XDR__250_GBPS InterfaceTypeLabel = "XDR (250 Gbps)" - INTERFACETYPELABEL_T1__1_544_MBPS InterfaceTypeLabel = "T1 (1.544 Mbps)" - INTERFACETYPELABEL_E1__2_048_MBPS InterfaceTypeLabel = "E1 (2.048 Mbps)" - INTERFACETYPELABEL_T3__45_MBPS InterfaceTypeLabel = "T3 (45 Mbps)" - INTERFACETYPELABEL_E3__34_MBPS InterfaceTypeLabel = "E3 (34 Mbps)" - INTERFACETYPELABEL_X_DSL InterfaceTypeLabel = "xDSL" - INTERFACETYPELABEL_DOCSIS InterfaceTypeLabel = "DOCSIS" - INTERFACETYPELABEL_BPON__622_MBPS___155_MBPS InterfaceTypeLabel = "BPON (622 Mbps / 155 Mbps)" - INTERFACETYPELABEL_EPON__1_GBPS InterfaceTypeLabel = "EPON (1 Gbps)" - INTERFACETYPELABEL__10_G_EPON__10_GBPS InterfaceTypeLabel = "10G-EPON (10 Gbps)" - INTERFACETYPELABEL_GPON__2_5_GBPS___1_25_GBPS InterfaceTypeLabel = "GPON (2.5 Gbps / 1.25 Gbps)" - INTERFACETYPELABEL_XG_PON__10_GBPS___2_5_GBPS InterfaceTypeLabel = "XG-PON (10 Gbps / 2.5 Gbps)" - INTERFACETYPELABEL_XGS_PON__10_GBPS InterfaceTypeLabel = "XGS-PON (10 Gbps)" - INTERFACETYPELABEL_NG_PON2__TWDM_PON__4X10_GBPS InterfaceTypeLabel = "NG-PON2 (TWDM-PON) (4x10 Gbps)" - INTERFACETYPELABEL__25_G_PON__25_GBPS InterfaceTypeLabel = "25G-PON (25 Gbps)" - INTERFACETYPELABEL__50_G_PON__50_GBPS InterfaceTypeLabel = "50G-PON (50 Gbps)" - INTERFACETYPELABEL_CISCO_STACK_WISE InterfaceTypeLabel = "Cisco StackWise" - INTERFACETYPELABEL_CISCO_STACK_WISE_PLUS InterfaceTypeLabel = "Cisco StackWise Plus" - INTERFACETYPELABEL_CISCO_FLEX_STACK InterfaceTypeLabel = "Cisco FlexStack" - INTERFACETYPELABEL_CISCO_FLEX_STACK_PLUS InterfaceTypeLabel = "Cisco FlexStack Plus" - INTERFACETYPELABEL_CISCO_STACK_WISE_80 InterfaceTypeLabel = "Cisco StackWise-80" - INTERFACETYPELABEL_CISCO_STACK_WISE_160 InterfaceTypeLabel = "Cisco StackWise-160" - INTERFACETYPELABEL_CISCO_STACK_WISE_320 InterfaceTypeLabel = "Cisco StackWise-320" - INTERFACETYPELABEL_CISCO_STACK_WISE_480 InterfaceTypeLabel = "Cisco StackWise-480" - INTERFACETYPELABEL_CISCO_STACK_WISE_1_T InterfaceTypeLabel = "Cisco StackWise-1T" - INTERFACETYPELABEL_JUNIPER_VCP InterfaceTypeLabel = "Juniper VCP" - INTERFACETYPELABEL_EXTREME_SUMMIT_STACK InterfaceTypeLabel = "Extreme SummitStack" - INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_128 InterfaceTypeLabel = "Extreme SummitStack-128" - INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_256 InterfaceTypeLabel = "Extreme SummitStack-256" - INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_512 InterfaceTypeLabel = "Extreme SummitStack-512" - INTERFACETYPELABEL_OTHER InterfaceTypeLabel = "Other" + INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)" + INTERFACETYPELABEL__1000_BASE_LX__1_GE InterfaceTypeLabel = "1000BASE-LX (1GE)" + INTERFACETYPELABEL__1000_BASE_TX__1_GE InterfaceTypeLabel = "1000BASE-TX (1GE)" + INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)" + INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)" + INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)" + INTERFACETYPELABEL__10_GBASE_CX4__10_GE InterfaceTypeLabel = "10GBASE-CX4 (10GE)" + INTERFACETYPELABEL_SFP__100_ME InterfaceTypeLabel = "SFP (100ME)" + INTERFACETYPELABEL_GBIC__1_GE InterfaceTypeLabel = "GBIC (1GE)" + INTERFACETYPELABEL_SFP__1_GE InterfaceTypeLabel = "SFP (1GE)" + INTERFACETYPELABEL_SFP__10_GE InterfaceTypeLabel = "SFP+ (10GE)" + INTERFACETYPELABEL_XFP__10_GE InterfaceTypeLabel = "XFP (10GE)" + INTERFACETYPELABEL_XENPAK__10_GE InterfaceTypeLabel = "XENPAK (10GE)" + INTERFACETYPELABEL_X2__10_GE InterfaceTypeLabel = "X2 (10GE)" + INTERFACETYPELABEL_SFP28__25_GE InterfaceTypeLabel = "SFP28 (25GE)" + INTERFACETYPELABEL_SFP56__50_GE InterfaceTypeLabel = "SFP56 (50GE)" + INTERFACETYPELABEL_QSFP__40_GE InterfaceTypeLabel = "QSFP+ (40GE)" + INTERFACETYPELABEL_QSFP28__50_GE InterfaceTypeLabel = "QSFP28 (50GE)" + INTERFACETYPELABEL_CFP__100_GE InterfaceTypeLabel = "CFP (100GE)" + INTERFACETYPELABEL_CFP2__100_GE InterfaceTypeLabel = "CFP2 (100GE)" + INTERFACETYPELABEL_CFP2__200_GE InterfaceTypeLabel = "CFP2 (200GE)" + INTERFACETYPELABEL_CFP2__400_GE InterfaceTypeLabel = "CFP2 (400GE)" + INTERFACETYPELABEL_CFP4__100_GE InterfaceTypeLabel = "CFP4 (100GE)" + INTERFACETYPELABEL_CXP__100_GE InterfaceTypeLabel = "CXP (100GE)" + INTERFACETYPELABEL_CISCO_CPAK__100_GE InterfaceTypeLabel = "Cisco CPAK (100GE)" + INTERFACETYPELABEL_DSFP__100_GE InterfaceTypeLabel = "DSFP (100GE)" + INTERFACETYPELABEL_SFP_DD__100_GE InterfaceTypeLabel = "SFP-DD (100GE)" + INTERFACETYPELABEL_QSFP28__100_GE InterfaceTypeLabel = "QSFP28 (100GE)" + INTERFACETYPELABEL_QSFP_DD__100_GE InterfaceTypeLabel = "QSFP-DD (100GE)" + INTERFACETYPELABEL_QSFP56__200_GE InterfaceTypeLabel = "QSFP56 (200GE)" + INTERFACETYPELABEL_QSFP_DD__200_GE InterfaceTypeLabel = "QSFP-DD (200GE)" + INTERFACETYPELABEL_QSFP112__400_GE InterfaceTypeLabel = "QSFP112 (400GE)" + INTERFACETYPELABEL_QSFP_DD__400_GE InterfaceTypeLabel = "QSFP-DD (400GE)" + INTERFACETYPELABEL_OSFP__400_GE InterfaceTypeLabel = "OSFP (400GE)" + INTERFACETYPELABEL_OSFP_RHS__400_GE InterfaceTypeLabel = "OSFP-RHS (400GE)" + INTERFACETYPELABEL_CDFP__400_GE InterfaceTypeLabel = "CDFP (400GE)" + INTERFACETYPELABEL_CPF8__400_GE InterfaceTypeLabel = "CPF8 (400GE)" + INTERFACETYPELABEL_QSFP_DD__800_GE InterfaceTypeLabel = "QSFP-DD (800GE)" + INTERFACETYPELABEL_OSFP__800_GE InterfaceTypeLabel = "OSFP (800GE)" + INTERFACETYPELABEL__1000_BASE_KX__1_GE InterfaceTypeLabel = "1000BASE-KX (1GE)" + INTERFACETYPELABEL__2_5_GBASE_KX__2_5_GE InterfaceTypeLabel = "2.5GBASE-KX (2.5GE)" + INTERFACETYPELABEL__5_GBASE_KR__5_GE InterfaceTypeLabel = "5GBASE-KR (5GE)" + INTERFACETYPELABEL__10_GBASE_KR__10_GE InterfaceTypeLabel = "10GBASE-KR (10GE)" + INTERFACETYPELABEL__10_GBASE_KX4__10_GE InterfaceTypeLabel = "10GBASE-KX4 (10GE)" + INTERFACETYPELABEL__25_GBASE_KR__25_GE InterfaceTypeLabel = "25GBASE-KR (25GE)" + INTERFACETYPELABEL__40_GBASE_KR4__40_GE InterfaceTypeLabel = "40GBASE-KR4 (40GE)" + INTERFACETYPELABEL__50_GBASE_KR__50_GE InterfaceTypeLabel = "50GBASE-KR (50GE)" + INTERFACETYPELABEL__100_GBASE_KP4__100_GE InterfaceTypeLabel = "100GBASE-KP4 (100GE)" + INTERFACETYPELABEL__100_GBASE_KR2__100_GE InterfaceTypeLabel = "100GBASE-KR2 (100GE)" + INTERFACETYPELABEL__100_GBASE_KR4__100_GE InterfaceTypeLabel = "100GBASE-KR4 (100GE)" + INTERFACETYPELABEL_IEEE_802_11A InterfaceTypeLabel = "IEEE 802.11a" + INTERFACETYPELABEL_IEEE_802_11B_G InterfaceTypeLabel = "IEEE 802.11b/g" + INTERFACETYPELABEL_IEEE_802_11N InterfaceTypeLabel = "IEEE 802.11n" + INTERFACETYPELABEL_IEEE_802_11AC InterfaceTypeLabel = "IEEE 802.11ac" + INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad" + INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax" + INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay" + INTERFACETYPELABEL_IEEE_802_11BE InterfaceTypeLabel = "IEEE 802.11be" + INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)" + INTERFACETYPELABEL_IEEE_802_15_4__LR_WPAN InterfaceTypeLabel = "IEEE 802.15.4 (LR-WPAN)" + INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)" + INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM" + INTERFACETYPELABEL_CDMA InterfaceTypeLabel = "CDMA" + INTERFACETYPELABEL_LTE InterfaceTypeLabel = "LTE" + INTERFACETYPELABEL__4_G InterfaceTypeLabel = "4G" + INTERFACETYPELABEL__5_G InterfaceTypeLabel = "5G" + INTERFACETYPELABEL_OC_3_STM_1 InterfaceTypeLabel = "OC-3/STM-1" + INTERFACETYPELABEL_OC_12_STM_4 InterfaceTypeLabel = "OC-12/STM-4" + INTERFACETYPELABEL_OC_48_STM_16 InterfaceTypeLabel = "OC-48/STM-16" + INTERFACETYPELABEL_OC_192_STM_64 InterfaceTypeLabel = "OC-192/STM-64" + INTERFACETYPELABEL_OC_768_STM_256 InterfaceTypeLabel = "OC-768/STM-256" + INTERFACETYPELABEL_OC_1920_STM_640 InterfaceTypeLabel = "OC-1920/STM-640" + INTERFACETYPELABEL_OC_3840_STM_1234 InterfaceTypeLabel = "OC-3840/STM-1234" + INTERFACETYPELABEL_SFP__1_GFC InterfaceTypeLabel = "SFP (1GFC)" + INTERFACETYPELABEL_SFP__2_GFC InterfaceTypeLabel = "SFP (2GFC)" + INTERFACETYPELABEL_SFP__4_GFC InterfaceTypeLabel = "SFP (4GFC)" + INTERFACETYPELABEL_SFP__8_GFC InterfaceTypeLabel = "SFP+ (8GFC)" + INTERFACETYPELABEL_SFP__16_GFC InterfaceTypeLabel = "SFP+ (16GFC)" + INTERFACETYPELABEL_SFP28__32_GFC InterfaceTypeLabel = "SFP28 (32GFC)" + INTERFACETYPELABEL_SFP__32_GFC InterfaceTypeLabel = "SFP+ (32GFC)" + INTERFACETYPELABEL_QSFP__64_GFC InterfaceTypeLabel = "QSFP+ (64GFC)" + INTERFACETYPELABEL_SFP_DD__64_GFC InterfaceTypeLabel = "SFP-DD (64GFC)" + INTERFACETYPELABEL_SFP__64_GFC InterfaceTypeLabel = "SFP+ (64GFC)" + INTERFACETYPELABEL_QSFP28__128_GFC InterfaceTypeLabel = "QSFP28 (128GFC)" + INTERFACETYPELABEL_SDR__2_GBPS InterfaceTypeLabel = "SDR (2 Gbps)" + INTERFACETYPELABEL_DDR__4_GBPS InterfaceTypeLabel = "DDR (4 Gbps)" + INTERFACETYPELABEL_QDR__8_GBPS InterfaceTypeLabel = "QDR (8 Gbps)" + INTERFACETYPELABEL_FDR10__10_GBPS InterfaceTypeLabel = "FDR10 (10 Gbps)" + INTERFACETYPELABEL_FDR__13_5_GBPS InterfaceTypeLabel = "FDR (13.5 Gbps)" + INTERFACETYPELABEL_EDR__25_GBPS InterfaceTypeLabel = "EDR (25 Gbps)" + INTERFACETYPELABEL_HDR__50_GBPS InterfaceTypeLabel = "HDR (50 Gbps)" + INTERFACETYPELABEL_NDR__100_GBPS InterfaceTypeLabel = "NDR (100 Gbps)" + INTERFACETYPELABEL_XDR__250_GBPS InterfaceTypeLabel = "XDR (250 Gbps)" + INTERFACETYPELABEL_T1__1_544_MBPS InterfaceTypeLabel = "T1 (1.544 Mbps)" + INTERFACETYPELABEL_E1__2_048_MBPS InterfaceTypeLabel = "E1 (2.048 Mbps)" + INTERFACETYPELABEL_T3__45_MBPS InterfaceTypeLabel = "T3 (45 Mbps)" + INTERFACETYPELABEL_E3__34_MBPS InterfaceTypeLabel = "E3 (34 Mbps)" + INTERFACETYPELABEL_X_DSL InterfaceTypeLabel = "xDSL" + INTERFACETYPELABEL_DOCSIS InterfaceTypeLabel = "DOCSIS" + INTERFACETYPELABEL_BPON__622_MBPS___155_MBPS InterfaceTypeLabel = "BPON (622 Mbps / 155 Mbps)" + INTERFACETYPELABEL_EPON__1_GBPS InterfaceTypeLabel = "EPON (1 Gbps)" + INTERFACETYPELABEL__10_G_EPON__10_GBPS InterfaceTypeLabel = "10G-EPON (10 Gbps)" + INTERFACETYPELABEL_GPON__2_5_GBPS___1_25_GBPS InterfaceTypeLabel = "GPON (2.5 Gbps / 1.25 Gbps)" + INTERFACETYPELABEL_XG_PON__10_GBPS___2_5_GBPS InterfaceTypeLabel = "XG-PON (10 Gbps / 2.5 Gbps)" + INTERFACETYPELABEL_XGS_PON__10_GBPS InterfaceTypeLabel = "XGS-PON (10 Gbps)" + INTERFACETYPELABEL_NG_PON2__TWDM_PON__4X10_GBPS InterfaceTypeLabel = "NG-PON2 (TWDM-PON) (4x10 Gbps)" + INTERFACETYPELABEL__25_G_PON__25_GBPS InterfaceTypeLabel = "25G-PON (25 Gbps)" + INTERFACETYPELABEL__50_G_PON__50_GBPS InterfaceTypeLabel = "50G-PON (50 Gbps)" + INTERFACETYPELABEL_CISCO_STACK_WISE InterfaceTypeLabel = "Cisco StackWise" + INTERFACETYPELABEL_CISCO_STACK_WISE_PLUS InterfaceTypeLabel = "Cisco StackWise Plus" + INTERFACETYPELABEL_CISCO_FLEX_STACK InterfaceTypeLabel = "Cisco FlexStack" + INTERFACETYPELABEL_CISCO_FLEX_STACK_PLUS InterfaceTypeLabel = "Cisco FlexStack Plus" + INTERFACETYPELABEL_CISCO_STACK_WISE_80 InterfaceTypeLabel = "Cisco StackWise-80" + INTERFACETYPELABEL_CISCO_STACK_WISE_160 InterfaceTypeLabel = "Cisco StackWise-160" + INTERFACETYPELABEL_CISCO_STACK_WISE_320 InterfaceTypeLabel = "Cisco StackWise-320" + INTERFACETYPELABEL_CISCO_STACK_WISE_480 InterfaceTypeLabel = "Cisco StackWise-480" + INTERFACETYPELABEL_CISCO_STACK_WISE_1_T InterfaceTypeLabel = "Cisco StackWise-1T" + INTERFACETYPELABEL_JUNIPER_VCP InterfaceTypeLabel = "Juniper VCP" + INTERFACETYPELABEL_EXTREME_SUMMIT_STACK InterfaceTypeLabel = "Extreme SummitStack" + INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_128 InterfaceTypeLabel = "Extreme SummitStack-128" + INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_256 InterfaceTypeLabel = "Extreme SummitStack-256" + INTERFACETYPELABEL_EXTREME_SUMMIT_STACK_512 InterfaceTypeLabel = "Extreme SummitStack-512" + INTERFACETYPELABEL_OTHER InterfaceTypeLabel = "Other" ) // All allowed values of InterfaceTypeLabel enum @@ -157,10 +162,13 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "100BASE-TX (10/100ME)", "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", + "1000BASE-LX (1GE)", + "1000BASE-TX (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", "10GBASE-T (10GE)", "10GBASE-CX4 (10GE)", + "SFP (100ME)", "GBIC (1GE)", "SFP (1GE)", "SFP+ (10GE)", @@ -210,7 +218,9 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "IEEE 802.11ad", "IEEE 802.11ax", "IEEE 802.11ay", + "IEEE 802.11be", "IEEE 802.15.1 (Bluetooth)", + "IEEE 802.15.4 (LR-WPAN)", "Other (Wireless)", "GSM", "CDMA", @@ -354,3 +364,4 @@ func (v *NullableInterfaceTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_interface_type_value.go b/model_interface_type_value.go index 324edde787..8ffb8e26a3 100644 --- a/model_interface_type_value.go +++ b/model_interface_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,136 +15,141 @@ import ( "fmt" ) -// InterfaceTypeValue * `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) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `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 * `4g` - 4G * `5g` - 5G * `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) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (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 * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 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 +// InterfaceTypeValue * `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) * `1000base-lx` - 1000BASE-LX (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `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) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `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.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `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) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (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 * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 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 InterfaceTypeValue string // List of Interface_type_value const ( - INTERFACETYPEVALUE_VIRTUAL InterfaceTypeValue = "virtual" - INTERFACETYPEVALUE_BRIDGE InterfaceTypeValue = "bridge" - INTERFACETYPEVALUE_LAG InterfaceTypeValue = "lag" - INTERFACETYPEVALUE__100BASE_FX InterfaceTypeValue = "100base-fx" - INTERFACETYPEVALUE__100BASE_LFX InterfaceTypeValue = "100base-lfx" - INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx" - INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1" - INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t" - INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t" - INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t" - INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t" - INTERFACETYPEVALUE__10GBASE_CX4 InterfaceTypeValue = "10gbase-cx4" - INTERFACETYPEVALUE__1000BASE_X_GBIC InterfaceTypeValue = "1000base-x-gbic" - INTERFACETYPEVALUE__1000BASE_X_SFP InterfaceTypeValue = "1000base-x-sfp" - INTERFACETYPEVALUE__10GBASE_X_SFPP InterfaceTypeValue = "10gbase-x-sfpp" - INTERFACETYPEVALUE__10GBASE_X_XFP InterfaceTypeValue = "10gbase-x-xfp" - INTERFACETYPEVALUE__10GBASE_X_XENPAK InterfaceTypeValue = "10gbase-x-xenpak" - INTERFACETYPEVALUE__10GBASE_X_X2 InterfaceTypeValue = "10gbase-x-x2" - INTERFACETYPEVALUE__25GBASE_X_SFP28 InterfaceTypeValue = "25gbase-x-sfp28" - INTERFACETYPEVALUE__50GBASE_X_SFP56 InterfaceTypeValue = "50gbase-x-sfp56" - INTERFACETYPEVALUE__40GBASE_X_QSFPP InterfaceTypeValue = "40gbase-x-qsfpp" - INTERFACETYPEVALUE__50GBASE_X_SFP28 InterfaceTypeValue = "50gbase-x-sfp28" - INTERFACETYPEVALUE__100GBASE_X_CFP InterfaceTypeValue = "100gbase-x-cfp" - INTERFACETYPEVALUE__100GBASE_X_CFP2 InterfaceTypeValue = "100gbase-x-cfp2" - INTERFACETYPEVALUE__200GBASE_X_CFP2 InterfaceTypeValue = "200gbase-x-cfp2" - INTERFACETYPEVALUE__400GBASE_X_CFP2 InterfaceTypeValue = "400gbase-x-cfp2" - INTERFACETYPEVALUE__100GBASE_X_CFP4 InterfaceTypeValue = "100gbase-x-cfp4" - INTERFACETYPEVALUE__100GBASE_X_CXP InterfaceTypeValue = "100gbase-x-cxp" - INTERFACETYPEVALUE__100GBASE_X_CPAK InterfaceTypeValue = "100gbase-x-cpak" - INTERFACETYPEVALUE__100GBASE_X_DSFP InterfaceTypeValue = "100gbase-x-dsfp" - INTERFACETYPEVALUE__100GBASE_X_SFPDD InterfaceTypeValue = "100gbase-x-sfpdd" - INTERFACETYPEVALUE__100GBASE_X_QSFP28 InterfaceTypeValue = "100gbase-x-qsfp28" - INTERFACETYPEVALUE__100GBASE_X_QSFPDD InterfaceTypeValue = "100gbase-x-qsfpdd" - INTERFACETYPEVALUE__200GBASE_X_QSFP56 InterfaceTypeValue = "200gbase-x-qsfp56" - INTERFACETYPEVALUE__200GBASE_X_QSFPDD InterfaceTypeValue = "200gbase-x-qsfpdd" - INTERFACETYPEVALUE__400GBASE_X_QSFP112 InterfaceTypeValue = "400gbase-x-qsfp112" - INTERFACETYPEVALUE__400GBASE_X_QSFPDD InterfaceTypeValue = "400gbase-x-qsfpdd" - INTERFACETYPEVALUE__400GBASE_X_OSFP InterfaceTypeValue = "400gbase-x-osfp" - INTERFACETYPEVALUE__400GBASE_X_OSFP_RHS InterfaceTypeValue = "400gbase-x-osfp-rhs" - INTERFACETYPEVALUE__400GBASE_X_CDFP InterfaceTypeValue = "400gbase-x-cdfp" - INTERFACETYPEVALUE__400GBASE_X_CFP8 InterfaceTypeValue = "400gbase-x-cfp8" - INTERFACETYPEVALUE__800GBASE_X_QSFPDD InterfaceTypeValue = "800gbase-x-qsfpdd" - INTERFACETYPEVALUE__800GBASE_X_OSFP InterfaceTypeValue = "800gbase-x-osfp" - INTERFACETYPEVALUE__1000BASE_KX InterfaceTypeValue = "1000base-kx" - INTERFACETYPEVALUE__2_5GBASE_KX InterfaceTypeValue = "2.5gbase-kx" - INTERFACETYPEVALUE__5GBASE_KR InterfaceTypeValue = "5gbase-kr" - INTERFACETYPEVALUE__10GBASE_KR InterfaceTypeValue = "10gbase-kr" - INTERFACETYPEVALUE__10GBASE_KX4 InterfaceTypeValue = "10gbase-kx4" - INTERFACETYPEVALUE__25GBASE_KR InterfaceTypeValue = "25gbase-kr" - INTERFACETYPEVALUE__40GBASE_KR4 InterfaceTypeValue = "40gbase-kr4" - INTERFACETYPEVALUE__50GBASE_KR InterfaceTypeValue = "50gbase-kr" - INTERFACETYPEVALUE__100GBASE_KP4 InterfaceTypeValue = "100gbase-kp4" - INTERFACETYPEVALUE__100GBASE_KR2 InterfaceTypeValue = "100gbase-kr2" - INTERFACETYPEVALUE__100GBASE_KR4 InterfaceTypeValue = "100gbase-kr4" - INTERFACETYPEVALUE_IEEE802_11A InterfaceTypeValue = "ieee802.11a" - INTERFACETYPEVALUE_IEEE802_11G InterfaceTypeValue = "ieee802.11g" - INTERFACETYPEVALUE_IEEE802_11N InterfaceTypeValue = "ieee802.11n" - INTERFACETYPEVALUE_IEEE802_11AC InterfaceTypeValue = "ieee802.11ac" - INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad" - INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax" - INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay" - INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1" - INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless" - INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm" - INTERFACETYPEVALUE_CDMA InterfaceTypeValue = "cdma" - INTERFACETYPEVALUE_LTE InterfaceTypeValue = "lte" - INTERFACETYPEVALUE__4G InterfaceTypeValue = "4g" - INTERFACETYPEVALUE__5G InterfaceTypeValue = "5g" - INTERFACETYPEVALUE_SONET_OC3 InterfaceTypeValue = "sonet-oc3" - INTERFACETYPEVALUE_SONET_OC12 InterfaceTypeValue = "sonet-oc12" - INTERFACETYPEVALUE_SONET_OC48 InterfaceTypeValue = "sonet-oc48" - INTERFACETYPEVALUE_SONET_OC192 InterfaceTypeValue = "sonet-oc192" - INTERFACETYPEVALUE_SONET_OC768 InterfaceTypeValue = "sonet-oc768" - INTERFACETYPEVALUE_SONET_OC1920 InterfaceTypeValue = "sonet-oc1920" - INTERFACETYPEVALUE_SONET_OC3840 InterfaceTypeValue = "sonet-oc3840" - INTERFACETYPEVALUE__1GFC_SFP InterfaceTypeValue = "1gfc-sfp" - INTERFACETYPEVALUE__2GFC_SFP InterfaceTypeValue = "2gfc-sfp" - INTERFACETYPEVALUE__4GFC_SFP InterfaceTypeValue = "4gfc-sfp" - INTERFACETYPEVALUE__8GFC_SFPP InterfaceTypeValue = "8gfc-sfpp" - INTERFACETYPEVALUE__16GFC_SFPP InterfaceTypeValue = "16gfc-sfpp" - INTERFACETYPEVALUE__32GFC_SFP28 InterfaceTypeValue = "32gfc-sfp28" - INTERFACETYPEVALUE__32GFC_SFPP InterfaceTypeValue = "32gfc-sfpp" - INTERFACETYPEVALUE__64GFC_QSFPP InterfaceTypeValue = "64gfc-qsfpp" - INTERFACETYPEVALUE__64GFC_SFPDD InterfaceTypeValue = "64gfc-sfpdd" - INTERFACETYPEVALUE__64GFC_SFPP InterfaceTypeValue = "64gfc-sfpp" - INTERFACETYPEVALUE__128GFC_QSFP28 InterfaceTypeValue = "128gfc-qsfp28" - INTERFACETYPEVALUE_INFINIBAND_SDR InterfaceTypeValue = "infiniband-sdr" - INTERFACETYPEVALUE_INFINIBAND_DDR InterfaceTypeValue = "infiniband-ddr" - INTERFACETYPEVALUE_INFINIBAND_QDR InterfaceTypeValue = "infiniband-qdr" - INTERFACETYPEVALUE_INFINIBAND_FDR10 InterfaceTypeValue = "infiniband-fdr10" - INTERFACETYPEVALUE_INFINIBAND_FDR InterfaceTypeValue = "infiniband-fdr" - INTERFACETYPEVALUE_INFINIBAND_EDR InterfaceTypeValue = "infiniband-edr" - INTERFACETYPEVALUE_INFINIBAND_HDR InterfaceTypeValue = "infiniband-hdr" - INTERFACETYPEVALUE_INFINIBAND_NDR InterfaceTypeValue = "infiniband-ndr" - INTERFACETYPEVALUE_INFINIBAND_XDR InterfaceTypeValue = "infiniband-xdr" - INTERFACETYPEVALUE_T1 InterfaceTypeValue = "t1" - INTERFACETYPEVALUE_E1 InterfaceTypeValue = "e1" - INTERFACETYPEVALUE_T3 InterfaceTypeValue = "t3" - INTERFACETYPEVALUE_E3 InterfaceTypeValue = "e3" - INTERFACETYPEVALUE_XDSL InterfaceTypeValue = "xdsl" - INTERFACETYPEVALUE_DOCSIS InterfaceTypeValue = "docsis" - INTERFACETYPEVALUE_BPON InterfaceTypeValue = "bpon" - INTERFACETYPEVALUE_EPON InterfaceTypeValue = "epon" - INTERFACETYPEVALUE__10G_EPON InterfaceTypeValue = "10g-epon" - INTERFACETYPEVALUE_GPON InterfaceTypeValue = "gpon" - INTERFACETYPEVALUE_XG_PON InterfaceTypeValue = "xg-pon" - INTERFACETYPEVALUE_XGS_PON InterfaceTypeValue = "xgs-pon" - INTERFACETYPEVALUE_NG_PON2 InterfaceTypeValue = "ng-pon2" - INTERFACETYPEVALUE__25G_PON InterfaceTypeValue = "25g-pon" - INTERFACETYPEVALUE__50G_PON InterfaceTypeValue = "50g-pon" - INTERFACETYPEVALUE_CISCO_STACKWISE InterfaceTypeValue = "cisco-stackwise" - INTERFACETYPEVALUE_CISCO_STACKWISE_PLUS InterfaceTypeValue = "cisco-stackwise-plus" - INTERFACETYPEVALUE_CISCO_FLEXSTACK InterfaceTypeValue = "cisco-flexstack" - INTERFACETYPEVALUE_CISCO_FLEXSTACK_PLUS InterfaceTypeValue = "cisco-flexstack-plus" - INTERFACETYPEVALUE_CISCO_STACKWISE_80 InterfaceTypeValue = "cisco-stackwise-80" - INTERFACETYPEVALUE_CISCO_STACKWISE_160 InterfaceTypeValue = "cisco-stackwise-160" - INTERFACETYPEVALUE_CISCO_STACKWISE_320 InterfaceTypeValue = "cisco-stackwise-320" - INTERFACETYPEVALUE_CISCO_STACKWISE_480 InterfaceTypeValue = "cisco-stackwise-480" - INTERFACETYPEVALUE_CISCO_STACKWISE_1T InterfaceTypeValue = "cisco-stackwise-1t" - INTERFACETYPEVALUE_JUNIPER_VCP InterfaceTypeValue = "juniper-vcp" - INTERFACETYPEVALUE_EXTREME_SUMMITSTACK InterfaceTypeValue = "extreme-summitstack" + INTERFACETYPEVALUE_VIRTUAL InterfaceTypeValue = "virtual" + INTERFACETYPEVALUE_BRIDGE InterfaceTypeValue = "bridge" + INTERFACETYPEVALUE_LAG InterfaceTypeValue = "lag" + INTERFACETYPEVALUE__100BASE_FX InterfaceTypeValue = "100base-fx" + INTERFACETYPEVALUE__100BASE_LFX InterfaceTypeValue = "100base-lfx" + INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx" + INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1" + INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t" + INTERFACETYPEVALUE__1000BASE_LX InterfaceTypeValue = "1000base-lx" + INTERFACETYPEVALUE__1000BASE_TX InterfaceTypeValue = "1000base-tx" + INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t" + INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t" + INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t" + INTERFACETYPEVALUE__10GBASE_CX4 InterfaceTypeValue = "10gbase-cx4" + INTERFACETYPEVALUE__100BASE_X_SFP InterfaceTypeValue = "100base-x-sfp" + INTERFACETYPEVALUE__1000BASE_X_GBIC InterfaceTypeValue = "1000base-x-gbic" + INTERFACETYPEVALUE__1000BASE_X_SFP InterfaceTypeValue = "1000base-x-sfp" + INTERFACETYPEVALUE__10GBASE_X_SFPP InterfaceTypeValue = "10gbase-x-sfpp" + INTERFACETYPEVALUE__10GBASE_X_XFP InterfaceTypeValue = "10gbase-x-xfp" + INTERFACETYPEVALUE__10GBASE_X_XENPAK InterfaceTypeValue = "10gbase-x-xenpak" + INTERFACETYPEVALUE__10GBASE_X_X2 InterfaceTypeValue = "10gbase-x-x2" + INTERFACETYPEVALUE__25GBASE_X_SFP28 InterfaceTypeValue = "25gbase-x-sfp28" + INTERFACETYPEVALUE__50GBASE_X_SFP56 InterfaceTypeValue = "50gbase-x-sfp56" + INTERFACETYPEVALUE__40GBASE_X_QSFPP InterfaceTypeValue = "40gbase-x-qsfpp" + INTERFACETYPEVALUE__50GBASE_X_SFP28 InterfaceTypeValue = "50gbase-x-sfp28" + INTERFACETYPEVALUE__100GBASE_X_CFP InterfaceTypeValue = "100gbase-x-cfp" + INTERFACETYPEVALUE__100GBASE_X_CFP2 InterfaceTypeValue = "100gbase-x-cfp2" + INTERFACETYPEVALUE__200GBASE_X_CFP2 InterfaceTypeValue = "200gbase-x-cfp2" + INTERFACETYPEVALUE__400GBASE_X_CFP2 InterfaceTypeValue = "400gbase-x-cfp2" + INTERFACETYPEVALUE__100GBASE_X_CFP4 InterfaceTypeValue = "100gbase-x-cfp4" + INTERFACETYPEVALUE__100GBASE_X_CXP InterfaceTypeValue = "100gbase-x-cxp" + INTERFACETYPEVALUE__100GBASE_X_CPAK InterfaceTypeValue = "100gbase-x-cpak" + INTERFACETYPEVALUE__100GBASE_X_DSFP InterfaceTypeValue = "100gbase-x-dsfp" + INTERFACETYPEVALUE__100GBASE_X_SFPDD InterfaceTypeValue = "100gbase-x-sfpdd" + INTERFACETYPEVALUE__100GBASE_X_QSFP28 InterfaceTypeValue = "100gbase-x-qsfp28" + INTERFACETYPEVALUE__100GBASE_X_QSFPDD InterfaceTypeValue = "100gbase-x-qsfpdd" + INTERFACETYPEVALUE__200GBASE_X_QSFP56 InterfaceTypeValue = "200gbase-x-qsfp56" + INTERFACETYPEVALUE__200GBASE_X_QSFPDD InterfaceTypeValue = "200gbase-x-qsfpdd" + INTERFACETYPEVALUE__400GBASE_X_QSFP112 InterfaceTypeValue = "400gbase-x-qsfp112" + INTERFACETYPEVALUE__400GBASE_X_QSFPDD InterfaceTypeValue = "400gbase-x-qsfpdd" + INTERFACETYPEVALUE__400GBASE_X_OSFP InterfaceTypeValue = "400gbase-x-osfp" + INTERFACETYPEVALUE__400GBASE_X_OSFP_RHS InterfaceTypeValue = "400gbase-x-osfp-rhs" + INTERFACETYPEVALUE__400GBASE_X_CDFP InterfaceTypeValue = "400gbase-x-cdfp" + INTERFACETYPEVALUE__400GBASE_X_CFP8 InterfaceTypeValue = "400gbase-x-cfp8" + INTERFACETYPEVALUE__800GBASE_X_QSFPDD InterfaceTypeValue = "800gbase-x-qsfpdd" + INTERFACETYPEVALUE__800GBASE_X_OSFP InterfaceTypeValue = "800gbase-x-osfp" + INTERFACETYPEVALUE__1000BASE_KX InterfaceTypeValue = "1000base-kx" + INTERFACETYPEVALUE__2_5GBASE_KX InterfaceTypeValue = "2.5gbase-kx" + INTERFACETYPEVALUE__5GBASE_KR InterfaceTypeValue = "5gbase-kr" + INTERFACETYPEVALUE__10GBASE_KR InterfaceTypeValue = "10gbase-kr" + INTERFACETYPEVALUE__10GBASE_KX4 InterfaceTypeValue = "10gbase-kx4" + INTERFACETYPEVALUE__25GBASE_KR InterfaceTypeValue = "25gbase-kr" + INTERFACETYPEVALUE__40GBASE_KR4 InterfaceTypeValue = "40gbase-kr4" + INTERFACETYPEVALUE__50GBASE_KR InterfaceTypeValue = "50gbase-kr" + INTERFACETYPEVALUE__100GBASE_KP4 InterfaceTypeValue = "100gbase-kp4" + INTERFACETYPEVALUE__100GBASE_KR2 InterfaceTypeValue = "100gbase-kr2" + INTERFACETYPEVALUE__100GBASE_KR4 InterfaceTypeValue = "100gbase-kr4" + INTERFACETYPEVALUE_IEEE802_11A InterfaceTypeValue = "ieee802.11a" + INTERFACETYPEVALUE_IEEE802_11G InterfaceTypeValue = "ieee802.11g" + INTERFACETYPEVALUE_IEEE802_11N InterfaceTypeValue = "ieee802.11n" + INTERFACETYPEVALUE_IEEE802_11AC InterfaceTypeValue = "ieee802.11ac" + INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad" + INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax" + INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay" + INTERFACETYPEVALUE_IEEE802_11BE InterfaceTypeValue = "ieee802.11be" + INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1" + INTERFACETYPEVALUE_IEEE802_15_4 InterfaceTypeValue = "ieee802.15.4" + INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless" + INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm" + INTERFACETYPEVALUE_CDMA InterfaceTypeValue = "cdma" + INTERFACETYPEVALUE_LTE InterfaceTypeValue = "lte" + INTERFACETYPEVALUE__4G InterfaceTypeValue = "4g" + INTERFACETYPEVALUE__5G InterfaceTypeValue = "5g" + INTERFACETYPEVALUE_SONET_OC3 InterfaceTypeValue = "sonet-oc3" + INTERFACETYPEVALUE_SONET_OC12 InterfaceTypeValue = "sonet-oc12" + INTERFACETYPEVALUE_SONET_OC48 InterfaceTypeValue = "sonet-oc48" + INTERFACETYPEVALUE_SONET_OC192 InterfaceTypeValue = "sonet-oc192" + INTERFACETYPEVALUE_SONET_OC768 InterfaceTypeValue = "sonet-oc768" + INTERFACETYPEVALUE_SONET_OC1920 InterfaceTypeValue = "sonet-oc1920" + INTERFACETYPEVALUE_SONET_OC3840 InterfaceTypeValue = "sonet-oc3840" + INTERFACETYPEVALUE__1GFC_SFP InterfaceTypeValue = "1gfc-sfp" + INTERFACETYPEVALUE__2GFC_SFP InterfaceTypeValue = "2gfc-sfp" + INTERFACETYPEVALUE__4GFC_SFP InterfaceTypeValue = "4gfc-sfp" + INTERFACETYPEVALUE__8GFC_SFPP InterfaceTypeValue = "8gfc-sfpp" + INTERFACETYPEVALUE__16GFC_SFPP InterfaceTypeValue = "16gfc-sfpp" + INTERFACETYPEVALUE__32GFC_SFP28 InterfaceTypeValue = "32gfc-sfp28" + INTERFACETYPEVALUE__32GFC_SFPP InterfaceTypeValue = "32gfc-sfpp" + INTERFACETYPEVALUE__64GFC_QSFPP InterfaceTypeValue = "64gfc-qsfpp" + INTERFACETYPEVALUE__64GFC_SFPDD InterfaceTypeValue = "64gfc-sfpdd" + INTERFACETYPEVALUE__64GFC_SFPP InterfaceTypeValue = "64gfc-sfpp" + INTERFACETYPEVALUE__128GFC_QSFP28 InterfaceTypeValue = "128gfc-qsfp28" + INTERFACETYPEVALUE_INFINIBAND_SDR InterfaceTypeValue = "infiniband-sdr" + INTERFACETYPEVALUE_INFINIBAND_DDR InterfaceTypeValue = "infiniband-ddr" + INTERFACETYPEVALUE_INFINIBAND_QDR InterfaceTypeValue = "infiniband-qdr" + INTERFACETYPEVALUE_INFINIBAND_FDR10 InterfaceTypeValue = "infiniband-fdr10" + INTERFACETYPEVALUE_INFINIBAND_FDR InterfaceTypeValue = "infiniband-fdr" + INTERFACETYPEVALUE_INFINIBAND_EDR InterfaceTypeValue = "infiniband-edr" + INTERFACETYPEVALUE_INFINIBAND_HDR InterfaceTypeValue = "infiniband-hdr" + INTERFACETYPEVALUE_INFINIBAND_NDR InterfaceTypeValue = "infiniband-ndr" + INTERFACETYPEVALUE_INFINIBAND_XDR InterfaceTypeValue = "infiniband-xdr" + INTERFACETYPEVALUE_T1 InterfaceTypeValue = "t1" + INTERFACETYPEVALUE_E1 InterfaceTypeValue = "e1" + INTERFACETYPEVALUE_T3 InterfaceTypeValue = "t3" + INTERFACETYPEVALUE_E3 InterfaceTypeValue = "e3" + INTERFACETYPEVALUE_XDSL InterfaceTypeValue = "xdsl" + INTERFACETYPEVALUE_DOCSIS InterfaceTypeValue = "docsis" + INTERFACETYPEVALUE_BPON InterfaceTypeValue = "bpon" + INTERFACETYPEVALUE_EPON InterfaceTypeValue = "epon" + INTERFACETYPEVALUE__10G_EPON InterfaceTypeValue = "10g-epon" + INTERFACETYPEVALUE_GPON InterfaceTypeValue = "gpon" + INTERFACETYPEVALUE_XG_PON InterfaceTypeValue = "xg-pon" + INTERFACETYPEVALUE_XGS_PON InterfaceTypeValue = "xgs-pon" + INTERFACETYPEVALUE_NG_PON2 InterfaceTypeValue = "ng-pon2" + INTERFACETYPEVALUE__25G_PON InterfaceTypeValue = "25g-pon" + INTERFACETYPEVALUE__50G_PON InterfaceTypeValue = "50g-pon" + INTERFACETYPEVALUE_CISCO_STACKWISE InterfaceTypeValue = "cisco-stackwise" + INTERFACETYPEVALUE_CISCO_STACKWISE_PLUS InterfaceTypeValue = "cisco-stackwise-plus" + INTERFACETYPEVALUE_CISCO_FLEXSTACK InterfaceTypeValue = "cisco-flexstack" + INTERFACETYPEVALUE_CISCO_FLEXSTACK_PLUS InterfaceTypeValue = "cisco-flexstack-plus" + INTERFACETYPEVALUE_CISCO_STACKWISE_80 InterfaceTypeValue = "cisco-stackwise-80" + INTERFACETYPEVALUE_CISCO_STACKWISE_160 InterfaceTypeValue = "cisco-stackwise-160" + INTERFACETYPEVALUE_CISCO_STACKWISE_320 InterfaceTypeValue = "cisco-stackwise-320" + INTERFACETYPEVALUE_CISCO_STACKWISE_480 InterfaceTypeValue = "cisco-stackwise-480" + INTERFACETYPEVALUE_CISCO_STACKWISE_1T InterfaceTypeValue = "cisco-stackwise-1t" + INTERFACETYPEVALUE_JUNIPER_VCP InterfaceTypeValue = "juniper-vcp" + INTERFACETYPEVALUE_EXTREME_SUMMITSTACK InterfaceTypeValue = "extreme-summitstack" INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_128 InterfaceTypeValue = "extreme-summitstack-128" INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_256 InterfaceTypeValue = "extreme-summitstack-256" INTERFACETYPEVALUE_EXTREME_SUMMITSTACK_512 InterfaceTypeValue = "extreme-summitstack-512" - INTERFACETYPEVALUE_OTHER InterfaceTypeValue = "other" + INTERFACETYPEVALUE_OTHER InterfaceTypeValue = "other" ) // All allowed values of InterfaceTypeValue enum @@ -157,10 +162,13 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "100base-tx", "100base-t1", "1000base-t", + "1000base-lx", + "1000base-tx", "2.5gbase-t", "5gbase-t", "10gbase-t", "10gbase-cx4", + "100base-x-sfp", "1000base-x-gbic", "1000base-x-sfp", "10gbase-x-sfpp", @@ -210,7 +218,9 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "ieee802.11ad", "ieee802.11ax", "ieee802.11ay", + "ieee802.11be", "ieee802.15.1", + "ieee802.15.4", "other-wireless", "gsm", "cdma", @@ -354,3 +364,4 @@ func (v *NullableInterfaceTypeValue) 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 288a4619cb..c754cd74be 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the InventoryItem type satisfies the MappedNullable interface at compile time @@ -21,32 +21,34 @@ 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 Device `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Status *InventoryItemStatus `json:"status,omitempty"` + Role NullableBriefInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableBriefManufacturer `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 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 interface{} `json:"component,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -56,16 +58,13 @@ type _InventoryItem InventoryItem // 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 NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { +func NewInventoryItem(id int32, url string, display string, device BriefDevice, name string, depth int32) *InventoryItem { this := InventoryItem{} this.Id = id this.Url = url this.Display = display this.Device = device this.Name = name - this.Component = component - this.Created = created - this.LastUpdated = lastUpdated this.Depth = depth return &this } @@ -102,6 +101,7 @@ func (o *InventoryItem) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *InventoryItem) GetUrl() string { if o == nil { @@ -126,6 +126,39 @@ func (o *InventoryItem) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *InventoryItem) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryItem) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *InventoryItem) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *InventoryItem) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *InventoryItem) GetDisplay() string { if o == nil { @@ -150,10 +183,11 @@ func (o *InventoryItem) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *InventoryItem) GetDevice() Device { +func (o *InventoryItem) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -162,7 +196,7 @@ func (o *InventoryItem) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItem) GetDeviceOk() (*Device, bool) { +func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -170,10 +204,11 @@ func (o *InventoryItem) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *InventoryItem) SetDevice(v Device) { +func (o *InventoryItem) SetDevice(v BriefDevice) { o.Device = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItem) GetParent() int32 { if o == nil || IsNil(o.Parent.Get()) { @@ -206,7 +241,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) @@ -241,6 +275,7 @@ func (o *InventoryItem) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *InventoryItem) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -273,10 +308,42 @@ func (o *InventoryItem) SetLabel(v string) { o.Label = &v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *InventoryItem) GetStatus() InventoryItemStatus { + if o == nil || IsNil(o.Status) { + var ret InventoryItemStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryItem) GetStatusOk() (*InventoryItemStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *InventoryItem) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given InventoryItemStatus and assigns it to the Status field. +func (o *InventoryItem) SetStatus(v InventoryItemStatus) { + o.Status = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetRole() InventoryItemRole { +func (o *InventoryItem) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -285,7 +352,7 @@ func (o *InventoryItem) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role 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 *InventoryItem) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -301,11 +368,10 @@ func (o *InventoryItem) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItem) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItem) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItem) SetRoleNil() { o.Role.Set(nil) @@ -317,9 +383,9 @@ func (o *InventoryItem) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetManufacturer() Manufacturer { +func (o *InventoryItem) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -328,7 +394,7 @@ func (o *InventoryItem) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer 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 *InventoryItem) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -344,11 +410,10 @@ func (o *InventoryItem) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItem) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItem) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItem) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -455,7 +520,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) @@ -562,7 +626,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) @@ -605,7 +668,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) @@ -616,18 +678,16 @@ func (o *InventoryItem) UnsetComponentId() { o.ComponentId.Unset() } -// GetComponent returns the Component field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetComponent returns the Component field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItem) GetComponent() interface{} { if o == nil { var ret interface{} return ret } - return o.Component } -// GetComponentOk returns a tuple with the Component field value +// GetComponentOk returns a tuple with the Component 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 *InventoryItem) GetComponentOk() (*interface{}, bool) { @@ -637,7 +697,16 @@ func (o *InventoryItem) GetComponentOk() (*interface{}, bool) { return &o.Component, true } -// SetComponent sets field value +// HasComponent returns a boolean if a field has been set. +func (o *InventoryItem) HasComponent() bool { + if o != nil && !IsNil(o.Component) { + return true + } + + return false +} + +// SetComponent gets a reference to the given interface{} and assigns it to the Component field. func (o *InventoryItem) SetComponent(v interface{}) { o.Component = v } @@ -706,18 +775,16 @@ func (o *InventoryItem) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItem) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *InventoryItem) GetCreatedOk() (*time.Time, bool) { @@ -727,23 +794,39 @@ func (o *InventoryItem) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *InventoryItem) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *InventoryItem) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *InventoryItem) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *InventoryItem) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItem) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *InventoryItem) GetLastUpdatedOk() (*time.Time, bool) { @@ -753,10 +836,28 @@ func (o *InventoryItem) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *InventoryItem) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *InventoryItem) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *InventoryItem) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *InventoryItem) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetDepth returns the Depth field value func (o *InventoryItem) GetDepth() int32 { @@ -782,8 +883,9 @@ func (o *InventoryItem) SetDepth(v int32) { o.Depth = v } + func (o InventoryItem) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -794,6 +896,9 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Parent.IsSet() { @@ -803,6 +908,9 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -839,8 +947,12 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -860,26 +972,40 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { "display", "device", "name", - "component", - "created", - "last_updated", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInventoryItem := _InventoryItem{} err = json.Unmarshal(data, &varInventoryItem) @@ -895,11 +1021,13 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "parent") delete(additionalProperties, "name") delete(additionalProperties, "label") + delete(additionalProperties, "status") delete(additionalProperties, "role") delete(additionalProperties, "manufacturer") delete(additionalProperties, "part_id") @@ -956,3 +1084,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 c93a233fc4..4e490aa50d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,26 @@ var _ MappedNullable = &InventoryItemRequest{} // InventoryItemRequest Adds support for custom fields and tags. type InventoryItemRequest struct { - Device DeviceRequest `json:"device"` + Device BriefDeviceRequest `json:"device"` Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Status *InventoryItemStatusValue `json:"status,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `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{} } @@ -48,7 +49,7 @@ type _InventoryItemRequest InventoryItemRequest // 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 NewInventoryItemRequest(device DeviceRequest, name string) *InventoryItemRequest { +func NewInventoryItemRequest(device BriefDeviceRequest, name string) *InventoryItemRequest { this := InventoryItemRequest{} this.Device = device this.Name = name @@ -64,9 +65,9 @@ func NewInventoryItemRequestWithDefaults() *InventoryItemRequest { } // GetDevice returns the Device field value -func (o *InventoryItemRequest) GetDevice() DeviceRequest { +func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -75,7 +76,7 @@ func (o *InventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,10 +84,11 @@ func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InventoryItemRequest) SetDevice(v DeviceRequest) { +func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemRequest) GetParent() int32 { if o == nil || IsNil(o.Parent.Get()) { @@ -119,7 +121,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) @@ -154,6 +155,7 @@ func (o *InventoryItemRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *InventoryItemRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -186,10 +188,42 @@ func (o *InventoryItemRequest) SetLabel(v string) { o.Label = &v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *InventoryItemRequest) GetStatus() InventoryItemStatusValue { + if o == nil || IsNil(o.Status) { + var ret InventoryItemStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryItemRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *InventoryItemRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *InventoryItemRequest) SetStatus(v InventoryItemStatusValue) { + o.Status = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -198,7 +232,7 @@ func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role 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 *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -214,11 +248,10 @@ func (o *InventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItemRequest) SetRoleNil() { o.Role.Set(nil) @@ -230,9 +263,9 @@ func (o *InventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -241,7 +274,7 @@ func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer 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 *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -257,11 +290,10 @@ func (o *InventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItemRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -368,7 +400,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) @@ -475,7 +506,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) @@ -518,7 +548,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) @@ -594,7 +623,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 } @@ -611,6 +640,9 @@ func (o InventoryItemRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -661,20 +693,37 @@ func (o *InventoryItemRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInventoryItemRequest := _InventoryItemRequest{} err = json.Unmarshal(data, &varInventoryItemRequest) @@ -692,6 +741,7 @@ func (o *InventoryItemRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "parent") delete(additionalProperties, "name") delete(additionalProperties, "label") + delete(additionalProperties, "status") delete(additionalProperties, "role") delete(additionalProperties, "manufacturer") delete(additionalProperties, "part_id") @@ -744,3 +794,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 ee6f289909..ea24877fd3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the InventoryItemRole type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ 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 int64 `json:"inventoryitem_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` AdditionalProperties map[string]interface{} } @@ -42,15 +43,13 @@ type _InventoryItemRole InventoryItemRole // 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 NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole { +func NewInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64) *InventoryItemRole { this := InventoryItemRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.InventoryitemCount = inventoryitemCount return &this } @@ -87,6 +86,7 @@ func (o *InventoryItemRole) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *InventoryItemRole) GetUrl() string { if o == nil { @@ -111,6 +111,39 @@ func (o *InventoryItemRole) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *InventoryItemRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *InventoryItemRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *InventoryItemRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *InventoryItemRole) GetDisplay() string { if o == nil { @@ -135,6 +168,7 @@ func (o *InventoryItemRole) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *InventoryItemRole) GetName() string { if o == nil { @@ -159,6 +193,7 @@ func (o *InventoryItemRole) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *InventoryItemRole) GetSlug() string { if o == nil { @@ -183,6 +218,7 @@ func (o *InventoryItemRole) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *InventoryItemRole) GetColor() string { if o == nil || IsNil(o.Color) { @@ -311,18 +347,16 @@ func (o *InventoryItemRole) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemRole) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *InventoryItemRole) GetCreatedOk() (*time.Time, bool) { @@ -332,23 +366,39 @@ func (o *InventoryItemRole) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *InventoryItemRole) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *InventoryItemRole) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *InventoryItemRole) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *InventoryItemRole) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemRole) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *InventoryItemRole) GetLastUpdatedOk() (*time.Time, bool) { @@ -358,10 +408,28 @@ func (o *InventoryItemRole) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *InventoryItemRole) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *InventoryItemRole) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *InventoryItemRole) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *InventoryItemRole) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetInventoryitemCount returns the InventoryitemCount field value func (o *InventoryItemRole) GetInventoryitemCount() int64 { @@ -387,8 +455,9 @@ func (o *InventoryItemRole) SetInventoryitemCount(v int64) { o.InventoryitemCount = v } + func (o InventoryItemRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -399,6 +468,9 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -414,8 +486,12 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["inventoryitem_count"] = o.InventoryitemCount for key, value := range o.AdditionalProperties { @@ -435,25 +511,40 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", "inventoryitem_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInventoryItemRole := _InventoryItemRole{} err = json.Unmarshal(data, &varInventoryItemRole) @@ -469,6 +560,7 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -520,3 +612,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 c00674ef53..4a6899170e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ func (o *InventoryItemRoleRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *InventoryItemRoleRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *InventoryItemRoleRequest) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *InventoryItemRoleRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -227,7 +229,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 } @@ -267,20 +269,37 @@ func (o *InventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInventoryItemRoleRequest := _InventoryItemRoleRequest{} err = json.Unmarshal(data, &varInventoryItemRoleRequest) @@ -341,3 +360,5 @@ func (v *NullableInventoryItemRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_inventory_item_status.go b/model_inventory_item_status.go new file mode 100644 index 0000000000..a75df6da62 --- /dev/null +++ b/model_inventory_item_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the InventoryItemStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InventoryItemStatus{} + +// InventoryItemStatus struct for InventoryItemStatus +type InventoryItemStatus struct { + Value *InventoryItemStatusValue `json:"value,omitempty"` + Label *InventoryItemStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InventoryItemStatus InventoryItemStatus + +// NewInventoryItemStatus instantiates a new InventoryItemStatus 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 NewInventoryItemStatus() *InventoryItemStatus { + this := InventoryItemStatus{} + return &this +} + +// NewInventoryItemStatusWithDefaults instantiates a new InventoryItemStatus 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 NewInventoryItemStatusWithDefaults() *InventoryItemStatus { + this := InventoryItemStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InventoryItemStatus) GetValue() InventoryItemStatusValue { + if o == nil || IsNil(o.Value) { + var ret InventoryItemStatusValue + 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 *InventoryItemStatus) GetValueOk() (*InventoryItemStatusValue, 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 *InventoryItemStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given InventoryItemStatusValue and assigns it to the Value field. +func (o *InventoryItemStatus) SetValue(v InventoryItemStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *InventoryItemStatus) GetLabel() InventoryItemStatusLabel { + if o == nil || IsNil(o.Label) { + var ret InventoryItemStatusLabel + 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 *InventoryItemStatus) GetLabelOk() (*InventoryItemStatusLabel, 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 *InventoryItemStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given InventoryItemStatusLabel and assigns it to the Label field. +func (o *InventoryItemStatus) SetLabel(v InventoryItemStatusLabel) { + o.Label = &v +} + +func (o InventoryItemStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InventoryItemStatus) 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 *InventoryItemStatus) UnmarshalJSON(data []byte) (err error) { + varInventoryItemStatus := _InventoryItemStatus{} + + err = json.Unmarshal(data, &varInventoryItemStatus) + + if err != nil { + return err + } + + *o = InventoryItemStatus(varInventoryItemStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInventoryItemStatus struct { + value *InventoryItemStatus + isSet bool +} + +func (v NullableInventoryItemStatus) Get() *InventoryItemStatus { + return v.value +} + +func (v *NullableInventoryItemStatus) Set(val *InventoryItemStatus) { + v.value = val + v.isSet = true +} + +func (v NullableInventoryItemStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableInventoryItemStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInventoryItemStatus(val *InventoryItemStatus) *NullableInventoryItemStatus { + return &NullableInventoryItemStatus{value: val, isSet: true} +} + +func (v NullableInventoryItemStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInventoryItemStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_inventory_item_status_label.go b/model_inventory_item_status_label.go new file mode 100644 index 0000000000..7b42b5b2a6 --- /dev/null +++ b/model_inventory_item_status_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// InventoryItemStatusLabel the model 'InventoryItemStatusLabel' +type InventoryItemStatusLabel string + +// List of InventoryItem_status_label +const ( + INVENTORYITEMSTATUSLABEL_OFFLINE InventoryItemStatusLabel = "Offline" + INVENTORYITEMSTATUSLABEL_ACTIVE InventoryItemStatusLabel = "Active" + INVENTORYITEMSTATUSLABEL_PLANNED InventoryItemStatusLabel = "Planned" + INVENTORYITEMSTATUSLABEL_STAGED InventoryItemStatusLabel = "Staged" + INVENTORYITEMSTATUSLABEL_FAILED InventoryItemStatusLabel = "Failed" + INVENTORYITEMSTATUSLABEL_DECOMMISSIONING InventoryItemStatusLabel = "Decommissioning" +) + +// All allowed values of InventoryItemStatusLabel enum +var AllowedInventoryItemStatusLabelEnumValues = []InventoryItemStatusLabel{ + "Offline", + "Active", + "Planned", + "Staged", + "Failed", + "Decommissioning", +} + +func (v *InventoryItemStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := InventoryItemStatusLabel(value) + for _, existing := range AllowedInventoryItemStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid InventoryItemStatusLabel", value) +} + +// NewInventoryItemStatusLabelFromValue returns a pointer to a valid InventoryItemStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewInventoryItemStatusLabelFromValue(v string) (*InventoryItemStatusLabel, error) { + ev := InventoryItemStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for InventoryItemStatusLabel: valid values are %v", v, AllowedInventoryItemStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v InventoryItemStatusLabel) IsValid() bool { + for _, existing := range AllowedInventoryItemStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to InventoryItem_status_label value +func (v InventoryItemStatusLabel) Ptr() *InventoryItemStatusLabel { + return &v +} + +type NullableInventoryItemStatusLabel struct { + value *InventoryItemStatusLabel + isSet bool +} + +func (v NullableInventoryItemStatusLabel) Get() *InventoryItemStatusLabel { + return v.value +} + +func (v *NullableInventoryItemStatusLabel) Set(val *InventoryItemStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableInventoryItemStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableInventoryItemStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInventoryItemStatusLabel(val *InventoryItemStatusLabel) *NullableInventoryItemStatusLabel { + return &NullableInventoryItemStatusLabel{value: val, isSet: true} +} + +func (v NullableInventoryItemStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInventoryItemStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_inventory_item_status_value.go b/model_inventory_item_status_value.go new file mode 100644 index 0000000000..8cbea633d8 --- /dev/null +++ b/model_inventory_item_status_value.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// InventoryItemStatusValue * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +type InventoryItemStatusValue string + +// List of InventoryItem_status_value +const ( + INVENTORYITEMSTATUSVALUE_OFFLINE InventoryItemStatusValue = "offline" + INVENTORYITEMSTATUSVALUE_ACTIVE InventoryItemStatusValue = "active" + INVENTORYITEMSTATUSVALUE_PLANNED InventoryItemStatusValue = "planned" + INVENTORYITEMSTATUSVALUE_STAGED InventoryItemStatusValue = "staged" + INVENTORYITEMSTATUSVALUE_FAILED InventoryItemStatusValue = "failed" + INVENTORYITEMSTATUSVALUE_DECOMMISSIONING InventoryItemStatusValue = "decommissioning" +) + +// All allowed values of InventoryItemStatusValue enum +var AllowedInventoryItemStatusValueEnumValues = []InventoryItemStatusValue{ + "offline", + "active", + "planned", + "staged", + "failed", + "decommissioning", +} + +func (v *InventoryItemStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := InventoryItemStatusValue(value) + for _, existing := range AllowedInventoryItemStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid InventoryItemStatusValue", value) +} + +// NewInventoryItemStatusValueFromValue returns a pointer to a valid InventoryItemStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewInventoryItemStatusValueFromValue(v string) (*InventoryItemStatusValue, error) { + ev := InventoryItemStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for InventoryItemStatusValue: valid values are %v", v, AllowedInventoryItemStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v InventoryItemStatusValue) IsValid() bool { + for _, existing := range AllowedInventoryItemStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to InventoryItem_status_value value +func (v InventoryItemStatusValue) Ptr() *InventoryItemStatusValue { + return &v +} + +type NullableInventoryItemStatusValue struct { + value *InventoryItemStatusValue + isSet bool +} + +func (v NullableInventoryItemStatusValue) Get() *InventoryItemStatusValue { + return v.value +} + +func (v *NullableInventoryItemStatusValue) Set(val *InventoryItemStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableInventoryItemStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableInventoryItemStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInventoryItemStatusValue(val *InventoryItemStatusValue) *NullableInventoryItemStatusValue { + return &NullableInventoryItemStatusValue{value: val, isSet: true} +} + +func (v NullableInventoryItemStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInventoryItemStatusValue) 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 2e41792819..7ee3ee0e3c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the InventoryItemTemplate type satisfies the MappedNullable interface at compile time @@ -21,26 +21,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"` - DeviceType DeviceType `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `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 NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableBriefManufacturer `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 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 interface{} `json:"component,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -50,16 +50,13 @@ type _InventoryItemTemplate InventoryItemTemplate // 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 NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { +func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, depth int32) *InventoryItemTemplate { this := InventoryItemTemplate{} this.Id = id this.Url = url this.Display = display this.DeviceType = deviceType this.Name = name - this.Component = component - this.Created = created - this.LastUpdated = lastUpdated this.Depth = depth return &this } @@ -96,6 +93,7 @@ func (o *InventoryItemTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *InventoryItemTemplate) GetUrl() string { if o == nil { @@ -120,6 +118,7 @@ func (o *InventoryItemTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *InventoryItemTemplate) GetDisplay() string { if o == nil { @@ -144,10 +143,11 @@ func (o *InventoryItemTemplate) SetDisplay(v string) { o.Display = v } + // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplate) GetDeviceType() DeviceType { +func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -156,7 +156,7 @@ func (o *InventoryItemTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,10 +164,11 @@ func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *InventoryItemTemplate) SetDeviceType(v DeviceType) { +func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemTemplate) GetParent() int32 { if o == nil || IsNil(o.Parent.Get()) { @@ -200,7 +201,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) @@ -235,6 +235,7 @@ func (o *InventoryItemTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *InventoryItemTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -268,9 +269,9 @@ func (o *InventoryItemTemplate) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetRole() InventoryItemRole { +func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -279,7 +280,7 @@ func (o *InventoryItemTemplate) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role 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 *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -295,11 +296,10 @@ func (o *InventoryItemTemplate) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItemTemplate) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItemTemplate) SetRoleNil() { o.Role.Set(nil) @@ -311,9 +311,9 @@ func (o *InventoryItemTemplate) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { +func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -322,7 +322,7 @@ func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer 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 *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -338,11 +338,10 @@ func (o *InventoryItemTemplate) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItemTemplate) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -449,7 +448,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) @@ -492,7 +490,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) @@ -503,18 +500,16 @@ func (o *InventoryItemTemplate) UnsetComponentId() { o.ComponentId.Unset() } -// GetComponent returns the Component field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetComponent returns the Component field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemTemplate) GetComponent() interface{} { if o == nil { var ret interface{} return ret } - return o.Component } -// GetComponentOk returns a tuple with the Component field value +// GetComponentOk returns a tuple with the Component 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 *InventoryItemTemplate) GetComponentOk() (*interface{}, bool) { @@ -524,23 +519,30 @@ func (o *InventoryItemTemplate) GetComponentOk() (*interface{}, bool) { return &o.Component, true } -// SetComponent sets field value +// HasComponent returns a boolean if a field has been set. +func (o *InventoryItemTemplate) HasComponent() bool { + if o != nil && !IsNil(o.Component) { + return true + } + + return false +} + +// SetComponent gets a reference to the given interface{} and assigns it to the Component field. func (o *InventoryItemTemplate) SetComponent(v interface{}) { o.Component = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *InventoryItemTemplate) GetCreatedOk() (*time.Time, bool) { @@ -550,23 +552,39 @@ func (o *InventoryItemTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *InventoryItemTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *InventoryItemTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *InventoryItemTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *InventoryItemTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *InventoryItemTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -576,10 +594,28 @@ func (o *InventoryItemTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *InventoryItemTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *InventoryItemTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *InventoryItemTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *InventoryItemTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetDepth returns the Depth field value func (o *InventoryItemTemplate) GetDepth() int32 { @@ -605,8 +641,9 @@ func (o *InventoryItemTemplate) SetDepth(v int32) { o.Depth = v } + func (o InventoryItemTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -647,8 +684,12 @@ func (o InventoryItemTemplate) ToMap() (map[string]interface{}, error) { if o.Component != nil { toSerialize["component"] = o.Component } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -668,26 +709,40 @@ func (o *InventoryItemTemplate) UnmarshalJSON(data []byte) (err error) { "display", "device_type", "name", - "component", - "created", - "last_updated", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInventoryItemTemplate := _InventoryItemTemplate{} err = json.Unmarshal(data, &varInventoryItemTemplate) @@ -759,3 +814,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 c7d639e2d8..7e2ca24dda 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ 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 DeviceTypeRequest `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType BriefDeviceTypeRequest `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 NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `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{} } @@ -42,7 +42,7 @@ type _InventoryItemTemplateRequest InventoryItemTemplateRequest // 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 NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string) *InventoryItemTemplateRequest { +func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *InventoryItemTemplateRequest { this := InventoryItemTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -58,9 +58,9 @@ func NewInventoryItemTemplateRequestWithDefaults() *InventoryItemTemplateRequest } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -69,7 +69,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,10 +77,11 @@ func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bo } // SetDeviceType sets field value -func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InventoryItemTemplateRequest) GetParent() int32 { if o == nil || IsNil(o.Parent.Get()) { @@ -113,7 +114,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) @@ -148,6 +148,7 @@ func (o *InventoryItemTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *InventoryItemTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -181,9 +182,9 @@ func (o *InventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -192,7 +193,7 @@ func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role 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 *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -208,11 +209,10 @@ func (o *InventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItemTemplateRequest) SetRoleNil() { o.Role.Set(nil) @@ -224,9 +224,9 @@ func (o *InventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -235,7 +235,7 @@ func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer 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 *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -251,11 +251,10 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItemTemplateRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -362,7 +361,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) @@ -405,7 +403,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) @@ -417,7 +414,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 } @@ -469,20 +466,37 @@ func (o *InventoryItemTemplateRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varInventoryItemTemplateRequest := _InventoryItemTemplateRequest{} err = json.Unmarshal(data, &varInventoryItemTemplateRequest) @@ -547,3 +561,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 5fdb687b45..b8fbbc6f58 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,29 @@ 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"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `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 interface{} `json:"assigned_object,omitempty"` + NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` + NatOutside []NestedIPAddress `json:"nat_outside"` + // Hostname or FQDN (not case-sensitive) + DnsName *string `json:"dns_name,omitempty" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,14 @@ type _IPAddress IPAddress // 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 NewIPAddress(id int32, url string, display string, family AggregateFamily, address string) *IPAddress { +func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, natOutside []NestedIPAddress) *IPAddress { this := IPAddress{} this.Id = id this.Url = url this.Display = display this.Family = family this.Address = address + this.NatOutside = natOutside return &this } @@ -77,6 +96,7 @@ func (o *IPAddress) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *IPAddress) GetUrl() string { if o == nil { @@ -101,6 +121,39 @@ func (o *IPAddress) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPAddress) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPAddress) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPAddress) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPAddress) GetDisplay() string { if o == nil { @@ -125,6 +178,7 @@ func (o *IPAddress) SetDisplay(v string) { o.Display = v } + // GetFamily returns the Family field value func (o *IPAddress) GetFamily() AggregateFamily { if o == nil { @@ -149,6 +203,7 @@ func (o *IPAddress) SetFamily(v AggregateFamily) { o.Family = v } + // GetAddress returns the Address field value func (o *IPAddress) GetAddress() string { if o == nil { @@ -173,6 +228,371 @@ func (o *IPAddress) SetAddress(v string) { o.Address = v } + +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetVrf() BriefVRF { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRF + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf 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 *IPAddress) GetVrfOk() (*BriefVRF, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddress) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPAddress) SetVrf(v BriefVRF) { + o.Vrf.Set(&v) +} +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddress) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddress) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *IPAddress) GetTenantOk() (*BriefTenant, 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 *IPAddress) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPAddress) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddress) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddress) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddress) GetStatus() IPAddressStatus { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddress) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatus and assigns it to the Status field. +func (o *IPAddress) SetStatus(v IPAddressStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddress) GetRole() IPAddressRole { + if o == nil || IsNil(o.Role) { + var ret IPAddressRole + return ret + } + return *o.Role +} + +// 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 *IPAddress) GetRoleOk() (*IPAddressRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddress) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRole and assigns it to the Role field. +func (o *IPAddress) SetRole(v IPAddressRole) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType 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 *IPAddress) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +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) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId 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 *IPAddress) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +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) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetAssignedObject returns the AssignedObject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject 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 *IPAddress) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// HasAssignedObject returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObject() bool { + if o != nil && !IsNil(o.AssignedObject) { + return true + } + + return false +} + +// SetAssignedObject gets a reference to the given interface{} and assigns it to the AssignedObject field. +func (o *IPAddress) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetNatInside() NestedIPAddress { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddress + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside 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 *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddress) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddress and assigns it to the NatInside field. +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) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddress) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetNatOutside returns the NatOutside field value +func (o *IPAddress) GetNatOutside() []NestedIPAddress { + if o == nil { + var ret []NestedIPAddress + return ret + } + + return o.NatOutside +} + +// GetNatOutsideOk returns a tuple with the NatOutside field value +// and a boolean to check if the value has been set. +func (o *IPAddress) GetNatOutsideOk() ([]NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatOutside, true +} + +// SetNatOutside sets field value +func (o *IPAddress) SetNatOutside(v []NestedIPAddress) { + o.NatOutside = v +} + + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddress) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddress) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddress) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddress) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,8 +625,188 @@ func (o *IPAddress) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddress) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddress) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddress) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddress) 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 *IPAddress) 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 *IPAddress) 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 *IPAddress) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddress) 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 *IPAddress) 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 *IPAddress) 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 *IPAddress) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *IPAddress) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *IPAddress) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *IPAddress) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *IPAddress) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *IPAddress) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *IPAddress) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *IPAddress) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *IPAddress) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *IPAddress) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *IPAddress) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o IPAddress) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,12 +817,58 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + toSerialize["nat_outside"] = o.NatOutside + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,22 +887,40 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { "display", "family", "address", + "nat_outside", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPAddress := _IPAddress{} err = json.Unmarshal(data, &varIPAddress) @@ -272,10 +936,26 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "nat_outside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -317,3 +997,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 6c3232de2e..395f8a5e98 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,20 @@ var _ MappedNullable = &IPAddressRequest{} // IPAddressRequest Adds support for custom fields and tags. type IPAddressRequest struct { - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Address string `json:"address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPAddressStatusValue `json:"status,omitempty"` + Role *IPAddressRoleValue `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" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"` + 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{} } @@ -69,6 +81,313 @@ func (o *IPAddressRequest) SetAddress(v string) { o.Address = v } + +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetVrf() BriefVRFRequest { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRFRequest + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf 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 *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddressRequest) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPAddressRequest) SetVrf(v BriefVRFRequest) { + o.Vrf.Set(&v) +} +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddressRequest) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddressRequest) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, 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 *IPAddressRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPAddressRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddressRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddressRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddressRequest) GetStatus() IPAddressStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddressRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatusValue and assigns it to the Status field. +func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddressRequest) GetRole() IPAddressRoleValue { + if o == nil || IsNil(o.Role) { + var ret IPAddressRoleValue + return ret + } + return *o.Role +} + +// 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 *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddressRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRoleValue and assigns it to the Role field. +func (o *IPAddressRequest) SetRole(v IPAddressRoleValue) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType 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 *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +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) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId 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 *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +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) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddressRequest + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside 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 *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddressRequest) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddressRequest and assigns it to the NatInside field. +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) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddressRequest) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddressRequest) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddressRequest) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddressRequest) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddressRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +420,104 @@ func (o *IPAddressRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddressRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddressRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddressRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddressRequest) 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 *IPAddressRequest) 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 *IPAddressRequest) 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 *IPAddressRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddressRequest) 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 *IPAddressRequest) 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 *IPAddressRequest) 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 *IPAddressRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o IPAddressRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -112,9 +527,42 @@ func (o IPAddressRequest) MarshalJSON() ([]byte, error) { func (o IPAddressRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -131,20 +579,37 @@ func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) { "address", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPAddressRequest := _IPAddressRequest{} err = json.Unmarshal(data, &varIPAddressRequest) @@ -159,7 +624,18 @@ func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -201,3 +677,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 new file mode 100644 index 0000000000..89ece55aff --- /dev/null +++ b/model_ip_address_role.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the IPAddressRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IPAddressRole{} + +// IPAddressRole struct for IPAddressRole +type IPAddressRole struct { + Value *IPAddressRoleValue `json:"value,omitempty"` + Label *IPAddressRoleLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IPAddressRole IPAddressRole + +// NewIPAddressRole instantiates a new IPAddressRole 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 NewIPAddressRole() *IPAddressRole { + this := IPAddressRole{} + return &this +} + +// NewIPAddressRoleWithDefaults instantiates a new IPAddressRole 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 NewIPAddressRoleWithDefaults() *IPAddressRole { + this := IPAddressRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *IPAddressRole) GetValue() IPAddressRoleValue { + if o == nil || IsNil(o.Value) { + var ret IPAddressRoleValue + 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 *IPAddressRole) GetValueOk() (*IPAddressRoleValue, 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 *IPAddressRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given IPAddressRoleValue and assigns it to the Value field. +func (o *IPAddressRole) SetValue(v IPAddressRoleValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *IPAddressRole) GetLabel() IPAddressRoleLabel { + if o == nil || IsNil(o.Label) { + var ret IPAddressRoleLabel + 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 *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, 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 *IPAddressRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given IPAddressRoleLabel and assigns it to the Label field. +func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel) { + o.Label = &v +} + +func (o IPAddressRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IPAddressRole) 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 *IPAddressRole) UnmarshalJSON(data []byte) (err error) { + varIPAddressRole := _IPAddressRole{} + + err = json.Unmarshal(data, &varIPAddressRole) + + if err != nil { + return err + } + + *o = IPAddressRole(varIPAddressRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIPAddressRole struct { + value *IPAddressRole + isSet bool +} + +func (v NullableIPAddressRole) Get() *IPAddressRole { + return v.value +} + +func (v *NullableIPAddressRole) Set(val *IPAddressRole) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRole) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRole(val *IPAddressRole) *NullableIPAddressRole { + return &NullableIPAddressRole{value: val, isSet: true} +} + +func (v NullableIPAddressRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ip_address_role_label.go b/model_ip_address_role_label.go new file mode 100644 index 0000000000..382a2e5b4a --- /dev/null +++ b/model_ip_address_role_label.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressRoleLabel the model 'IPAddressRoleLabel' +type IPAddressRoleLabel string + +// List of IPAddress_role_label +const ( + IPADDRESSROLELABEL_LOOPBACK IPAddressRoleLabel = "Loopback" + IPADDRESSROLELABEL_SECONDARY IPAddressRoleLabel = "Secondary" + IPADDRESSROLELABEL_ANYCAST IPAddressRoleLabel = "Anycast" + IPADDRESSROLELABEL_VIP IPAddressRoleLabel = "VIP" + IPADDRESSROLELABEL_VRRP IPAddressRoleLabel = "VRRP" + IPADDRESSROLELABEL_HSRP IPAddressRoleLabel = "HSRP" + IPADDRESSROLELABEL_GLBP IPAddressRoleLabel = "GLBP" + IPADDRESSROLELABEL_CARP IPAddressRoleLabel = "CARP" +) + +// All allowed values of IPAddressRoleLabel enum +var AllowedIPAddressRoleLabelEnumValues = []IPAddressRoleLabel{ + "Loopback", + "Secondary", + "Anycast", + "VIP", + "VRRP", + "HSRP", + "GLBP", + "CARP", +} + +func (v *IPAddressRoleLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressRoleLabel(value) + for _, existing := range AllowedIPAddressRoleLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressRoleLabel", value) +} + +// NewIPAddressRoleLabelFromValue returns a pointer to a valid IPAddressRoleLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressRoleLabelFromValue(v string) (*IPAddressRoleLabel, error) { + ev := IPAddressRoleLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressRoleLabel: valid values are %v", v, AllowedIPAddressRoleLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressRoleLabel) IsValid() bool { + for _, existing := range AllowedIPAddressRoleLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_role_label value +func (v IPAddressRoleLabel) Ptr() *IPAddressRoleLabel { + return &v +} + +type NullableIPAddressRoleLabel struct { + value *IPAddressRoleLabel + isSet bool +} + +func (v NullableIPAddressRoleLabel) Get() *IPAddressRoleLabel { + return v.value +} + +func (v *NullableIPAddressRoleLabel) Set(val *IPAddressRoleLabel) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRoleLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRoleLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRoleLabel(val *IPAddressRoleLabel) *NullableIPAddressRoleLabel { + return &NullableIPAddressRoleLabel{value: val, isSet: true} +} + +func (v NullableIPAddressRoleLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRoleLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ip_address_role_value.go b/model_ip_address_role_value.go new file mode 100644 index 0000000000..38add149fb --- /dev/null +++ b/model_ip_address_role_value.go @@ -0,0 +1,125 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressRoleValue * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +type IPAddressRoleValue string + +// List of IPAddress_role_value +const ( + IPADDRESSROLEVALUE_LOOPBACK IPAddressRoleValue = "loopback" + IPADDRESSROLEVALUE_SECONDARY IPAddressRoleValue = "secondary" + IPADDRESSROLEVALUE_ANYCAST IPAddressRoleValue = "anycast" + IPADDRESSROLEVALUE_VIP IPAddressRoleValue = "vip" + IPADDRESSROLEVALUE_VRRP IPAddressRoleValue = "vrrp" + IPADDRESSROLEVALUE_HSRP IPAddressRoleValue = "hsrp" + IPADDRESSROLEVALUE_GLBP IPAddressRoleValue = "glbp" + IPADDRESSROLEVALUE_CARP IPAddressRoleValue = "carp" + IPADDRESSROLEVALUE_EMPTY IPAddressRoleValue = "" +) + +// All allowed values of IPAddressRoleValue enum +var AllowedIPAddressRoleValueEnumValues = []IPAddressRoleValue{ + "loopback", + "secondary", + "anycast", + "vip", + "vrrp", + "hsrp", + "glbp", + "carp", + "", +} + +func (v *IPAddressRoleValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressRoleValue(value) + for _, existing := range AllowedIPAddressRoleValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressRoleValue", value) +} + +// NewIPAddressRoleValueFromValue returns a pointer to a valid IPAddressRoleValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressRoleValueFromValue(v string) (*IPAddressRoleValue, error) { + ev := IPAddressRoleValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressRoleValue: valid values are %v", v, AllowedIPAddressRoleValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressRoleValue) IsValid() bool { + for _, existing := range AllowedIPAddressRoleValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_role_value value +func (v IPAddressRoleValue) Ptr() *IPAddressRoleValue { + return &v +} + +type NullableIPAddressRoleValue struct { + value *IPAddressRoleValue + isSet bool +} + +func (v NullableIPAddressRoleValue) Get() *IPAddressRoleValue { + return v.value +} + +func (v *NullableIPAddressRoleValue) Set(val *IPAddressRoleValue) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRoleValue) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRoleValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRoleValue(val *IPAddressRoleValue) *NullableIPAddressRoleValue { + return &NullableIPAddressRoleValue{value: val, isSet: true} +} + +func (v NullableIPAddressRoleValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRoleValue) 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 new file mode 100644 index 0000000000..49a8001c0d --- /dev/null +++ b/model_ip_address_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the IPAddressStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IPAddressStatus{} + +// IPAddressStatus struct for IPAddressStatus +type IPAddressStatus struct { + Value *IPAddressStatusValue `json:"value,omitempty"` + Label *IPAddressStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IPAddressStatus IPAddressStatus + +// NewIPAddressStatus instantiates a new IPAddressStatus 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 NewIPAddressStatus() *IPAddressStatus { + this := IPAddressStatus{} + return &this +} + +// NewIPAddressStatusWithDefaults instantiates a new IPAddressStatus 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 NewIPAddressStatusWithDefaults() *IPAddressStatus { + this := IPAddressStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *IPAddressStatus) GetValue() IPAddressStatusValue { + if o == nil || IsNil(o.Value) { + var ret IPAddressStatusValue + 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 *IPAddressStatus) GetValueOk() (*IPAddressStatusValue, 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 *IPAddressStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given IPAddressStatusValue and assigns it to the Value field. +func (o *IPAddressStatus) SetValue(v IPAddressStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel { + if o == nil || IsNil(o.Label) { + var ret IPAddressStatusLabel + 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 *IPAddressStatus) GetLabelOk() (*IPAddressStatusLabel, 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 *IPAddressStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given IPAddressStatusLabel and assigns it to the Label field. +func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel) { + o.Label = &v +} + +func (o IPAddressStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IPAddressStatus) 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 *IPAddressStatus) UnmarshalJSON(data []byte) (err error) { + varIPAddressStatus := _IPAddressStatus{} + + err = json.Unmarshal(data, &varIPAddressStatus) + + if err != nil { + return err + } + + *o = IPAddressStatus(varIPAddressStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIPAddressStatus struct { + value *IPAddressStatus + isSet bool +} + +func (v NullableIPAddressStatus) Get() *IPAddressStatus { + return v.value +} + +func (v *NullableIPAddressStatus) Set(val *IPAddressStatus) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatus(val *IPAddressStatus) *NullableIPAddressStatus { + return &NullableIPAddressStatus{value: val, isSet: true} +} + +func (v NullableIPAddressStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ip_address_status_label.go b/model_ip_address_status_label.go new file mode 100644 index 0000000000..c8ca56efea --- /dev/null +++ b/model_ip_address_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressStatusLabel the model 'IPAddressStatusLabel' +type IPAddressStatusLabel string + +// List of IPAddress_status_label +const ( + IPADDRESSSTATUSLABEL_ACTIVE IPAddressStatusLabel = "Active" + IPADDRESSSTATUSLABEL_RESERVED IPAddressStatusLabel = "Reserved" + IPADDRESSSTATUSLABEL_DEPRECATED IPAddressStatusLabel = "Deprecated" + IPADDRESSSTATUSLABEL_DHCP IPAddressStatusLabel = "DHCP" + IPADDRESSSTATUSLABEL_SLAAC IPAddressStatusLabel = "SLAAC" +) + +// All allowed values of IPAddressStatusLabel enum +var AllowedIPAddressStatusLabelEnumValues = []IPAddressStatusLabel{ + "Active", + "Reserved", + "Deprecated", + "DHCP", + "SLAAC", +} + +func (v *IPAddressStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressStatusLabel(value) + for _, existing := range AllowedIPAddressStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressStatusLabel", value) +} + +// NewIPAddressStatusLabelFromValue returns a pointer to a valid IPAddressStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressStatusLabelFromValue(v string) (*IPAddressStatusLabel, error) { + ev := IPAddressStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressStatusLabel: valid values are %v", v, AllowedIPAddressStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressStatusLabel) IsValid() bool { + for _, existing := range AllowedIPAddressStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_status_label value +func (v IPAddressStatusLabel) Ptr() *IPAddressStatusLabel { + return &v +} + +type NullableIPAddressStatusLabel struct { + value *IPAddressStatusLabel + isSet bool +} + +func (v NullableIPAddressStatusLabel) Get() *IPAddressStatusLabel { + return v.value +} + +func (v *NullableIPAddressStatusLabel) Set(val *IPAddressStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatusLabel(val *IPAddressStatusLabel) *NullableIPAddressStatusLabel { + return &NullableIPAddressStatusLabel{value: val, isSet: true} +} + +func (v NullableIPAddressStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ip_address_status_value.go b/model_ip_address_status_value.go new file mode 100644 index 0000000000..87f2469c48 --- /dev/null +++ b/model_ip_address_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressStatusValue * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +type IPAddressStatusValue string + +// List of IPAddress_status_value +const ( + IPADDRESSSTATUSVALUE_ACTIVE IPAddressStatusValue = "active" + IPADDRESSSTATUSVALUE_RESERVED IPAddressStatusValue = "reserved" + IPADDRESSSTATUSVALUE_DEPRECATED IPAddressStatusValue = "deprecated" + IPADDRESSSTATUSVALUE_DHCP IPAddressStatusValue = "dhcp" + IPADDRESSSTATUSVALUE_SLAAC IPAddressStatusValue = "slaac" +) + +// All allowed values of IPAddressStatusValue enum +var AllowedIPAddressStatusValueEnumValues = []IPAddressStatusValue{ + "active", + "reserved", + "deprecated", + "dhcp", + "slaac", +} + +func (v *IPAddressStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressStatusValue(value) + for _, existing := range AllowedIPAddressStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressStatusValue", value) +} + +// NewIPAddressStatusValueFromValue returns a pointer to a valid IPAddressStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressStatusValueFromValue(v string) (*IPAddressStatusValue, error) { + ev := IPAddressStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressStatusValue: valid values are %v", v, AllowedIPAddressStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressStatusValue) IsValid() bool { + for _, existing := range AllowedIPAddressStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_status_value value +func (v IPAddressStatusValue) Ptr() *IPAddressStatusValue { + return &v +} + +type NullableIPAddressStatusValue struct { + value *IPAddressStatusValue + isSet bool +} + +func (v NullableIPAddressStatusValue) Get() *IPAddressStatusValue { + return v.value +} + +func (v *NullableIPAddressStatusValue) Set(val *IPAddressStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatusValue(val *IPAddressStatusValue) *NullableIPAddressStatusValue { + return &NullableIPAddressStatusValue{value: val, isSet: true} +} + +func (v NullableIPAddressStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatusValue) 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 8775cca43a..aa06a11214 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the IPRange type satisfies the MappedNullable interface at compile time @@ -21,25 +21,26 @@ 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 NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Status *IPRangeStatus `json:"status,omitempty"` - Role NullableRole `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Size int32 `json:"size"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *IPRangeStatus `json:"status,omitempty"` + Role NullableBriefRole `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` // Treat as fully utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,7 +50,7 @@ type _IPRange IPRange // 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 NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime) *IPRange { +func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32) *IPRange { this := IPRange{} this.Id = id this.Url = url @@ -58,8 +59,6 @@ func NewIPRange(id int32, url string, display string, family AggregateFamily, st this.StartAddress = startAddress this.EndAddress = endAddress this.Size = size - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -95,6 +94,7 @@ func (o *IPRange) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *IPRange) GetUrl() string { if o == nil { @@ -119,6 +119,39 @@ func (o *IPRange) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPRange) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPRange) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPRange) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPRange) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPRange) GetDisplay() string { if o == nil { @@ -143,6 +176,7 @@ func (o *IPRange) SetDisplay(v string) { o.Display = v } + // GetFamily returns the Family field value func (o *IPRange) GetFamily() AggregateFamily { if o == nil { @@ -167,6 +201,7 @@ func (o *IPRange) SetFamily(v AggregateFamily) { o.Family = v } + // GetStartAddress returns the StartAddress field value func (o *IPRange) GetStartAddress() string { if o == nil { @@ -191,6 +226,7 @@ func (o *IPRange) SetStartAddress(v string) { o.StartAddress = v } + // GetEndAddress returns the EndAddress field value func (o *IPRange) GetEndAddress() string { if o == nil { @@ -215,6 +251,7 @@ func (o *IPRange) SetEndAddress(v string) { o.EndAddress = v } + // GetSize returns the Size field value func (o *IPRange) GetSize() int32 { if o == nil { @@ -239,10 +276,11 @@ func (o *IPRange) SetSize(v int32) { o.Size = v } + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetVrf() VRF { +func (o *IPRange) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -251,7 +289,7 @@ func (o *IPRange) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf 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 *IPRange) GetVrfOk() (*VRF, bool) { +func (o *IPRange) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -267,11 +305,10 @@ func (o *IPRange) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *IPRange) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPRange) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *IPRange) SetVrfNil() { o.Vrf.Set(nil) @@ -283,9 +320,9 @@ func (o *IPRange) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetTenant() Tenant { +func (o *IPRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -294,7 +331,7 @@ func (o *IPRange) GetTenant() Tenant { // 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 *IPRange) GetTenantOk() (*Tenant, bool) { +func (o *IPRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -310,11 +347,10 @@ func (o *IPRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *IPRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *IPRange) SetTenantNil() { o.Tenant.Set(nil) @@ -358,9 +394,9 @@ func (o *IPRange) SetStatus(v IPRangeStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetRole() Role { +func (o *IPRange) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -369,7 +405,7 @@ func (o *IPRange) GetRole() Role { // GetRoleOk returns a tuple with the Role 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 *IPRange) GetRoleOk() (*Role, bool) { +func (o *IPRange) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -385,11 +421,10 @@ func (o *IPRange) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *IPRange) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *IPRange) SetRole(v BriefRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *IPRange) SetRoleNil() { o.Role.Set(nil) @@ -528,18 +563,16 @@ func (o *IPRange) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPRange) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *IPRange) GetCreatedOk() (*time.Time, bool) { @@ -549,23 +582,39 @@ func (o *IPRange) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *IPRange) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *IPRange) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *IPRange) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *IPRange) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPRange) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *IPRange) GetLastUpdatedOk() (*time.Time, bool) { @@ -575,10 +624,28 @@ func (o *IPRange) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *IPRange) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *IPRange) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *IPRange) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *IPRange) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetMarkUtilized returns the MarkUtilized field value if set, zero value otherwise. func (o *IPRange) GetMarkUtilized() bool { @@ -613,7 +680,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 } @@ -624,6 +691,9 @@ func (o IPRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["start_address"] = o.StartAddress @@ -653,8 +723,12 @@ func (o IPRange) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } if !IsNil(o.MarkUtilized) { toSerialize["mark_utilized"] = o.MarkUtilized } @@ -678,24 +752,39 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { "start_address", "end_address", "size", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPRange := _IPRange{} err = json.Unmarshal(data, &varIPRange) @@ -711,6 +800,7 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "start_address") @@ -768,3 +858,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 89c81001d1..e2e0f865a6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ 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 NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *IPRangeStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `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 fully utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -80,6 +80,7 @@ func (o *IPRangeRequest) SetStartAddress(v string) { o.StartAddress = v } + // GetEndAddress returns the EndAddress field value func (o *IPRangeRequest) GetEndAddress() string { if o == nil { @@ -104,10 +105,11 @@ func (o *IPRangeRequest) SetEndAddress(v string) { o.EndAddress = v } + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetVrf() VRFRequest { +func (o *IPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +118,7 @@ func (o *IPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *IPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,11 +134,10 @@ func (o *IPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *IPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *IPRangeRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -148,9 +149,9 @@ func (o *IPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetTenant() TenantRequest { +func (o *IPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +160,7 @@ func (o *IPRangeRequest) GetTenant() TenantRequest { // 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 *IPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,11 +176,10 @@ func (o *IPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *IPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *IPRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -223,9 +223,9 @@ func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetRole() RoleRequest { +func (o *IPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *IPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *IPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,11 +250,10 @@ func (o *IPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *IPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *IPRangeRequest) SetRole(v BriefRoleRequest) { 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 +425,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 } @@ -481,20 +480,37 @@ func (o *IPRangeRequest) UnmarshalJSON(data []byte) (err error) { "end_address", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPRangeRequest := _IPRangeRequest{} err = json.Unmarshal(data, &varIPRangeRequest) @@ -560,3 +576,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 7382048fb1..a1cdf4ecba 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IPRangeStatus{} // IPRangeStatus struct for IPRangeStatus type IPRangeStatus struct { - Value *IPRangeStatusValue `json:"value,omitempty"` - Label *IPRangeStatusLabel `json:"label,omitempty"` + Value *IPRangeStatusValue `json:"value,omitempty"` + Label *IPRangeStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IPRangeStatus) SetLabel(v IPRangeStatusLabel) { } func (o IPRangeStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIPRangeStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go index 385ab47e7c..b8fdb80f8f 100644 --- a/model_ip_range_status_label.go +++ b/model_ip_range_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type IPRangeStatusLabel string // List of IPRange_status_label const ( - IPRANGESTATUSLABEL_ACTIVE IPRangeStatusLabel = "Active" - IPRANGESTATUSLABEL_RESERVED IPRangeStatusLabel = "Reserved" + IPRANGESTATUSLABEL_ACTIVE IPRangeStatusLabel = "Active" + IPRANGESTATUSLABEL_RESERVED IPRangeStatusLabel = "Reserved" IPRANGESTATUSLABEL_DEPRECATED IPRangeStatusLabel = "Deprecated" ) @@ -110,3 +110,4 @@ func (v *NullableIPRangeStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go index df62fcdf6d..04cc4b794e 100644 --- a/model_ip_range_status_value.go +++ b/model_ip_range_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type IPRangeStatusValue string // List of IPRange_status_value const ( - IPRANGESTATUSVALUE_ACTIVE IPRangeStatusValue = "active" - IPRANGESTATUSVALUE_RESERVED IPRangeStatusValue = "reserved" + IPRANGESTATUSVALUE_ACTIVE IPRangeStatusValue = "active" + IPRANGESTATUSVALUE_RESERVED IPRangeStatusValue = "reserved" IPRANGESTATUSVALUE_DEPRECATED IPRangeStatusValue = "deprecated" ) @@ -110,3 +110,4 @@ func (v *NullableIPRangeStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go index 36f1f6c999..c66e014739 100644 --- a/model_ip_sec_policy.go +++ b/model_ip_sec_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the IPSecPolicy type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ var _ MappedNullable = &IPSecPolicy{} // IPSecPolicy Adds support for custom fields and tags. type IPSecPolicy struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Proposals []IPSecProposal `json:"proposals,omitempty"` - PfsGroup *IKEProposalGroup `json:"pfs_group,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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Proposals []IPSecProposal `json:"proposals,omitempty"` + PfsGroup *IKEProposalGroup `json:"pfs_group,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,14 +43,12 @@ type _IPSecPolicy IPSecPolicy // 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 NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy { +func NewIPSecPolicy(id int32, url string, display string, name string) *IPSecPolicy { this := IPSecPolicy{} this.Id = id this.Url = url this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -85,6 +84,7 @@ func (o *IPSecPolicy) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *IPSecPolicy) GetUrl() string { if o == nil { @@ -109,6 +109,39 @@ func (o *IPSecPolicy) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPSecPolicy) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPSecPolicy) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPSecPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPSecPolicy) GetDisplay() string { if o == nil { @@ -133,6 +166,7 @@ func (o *IPSecPolicy) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *IPSecPolicy) GetName() string { if o == nil { @@ -157,6 +191,7 @@ func (o *IPSecPolicy) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPSecPolicy) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -349,18 +384,16 @@ func (o *IPSecPolicy) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPSecPolicy) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *IPSecPolicy) GetCreatedOk() (*time.Time, bool) { @@ -370,23 +403,39 @@ func (o *IPSecPolicy) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *IPSecPolicy) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *IPSecPolicy) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *IPSecPolicy) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *IPSecPolicy) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPSecPolicy) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *IPSecPolicy) GetLastUpdatedOk() (*time.Time, bool) { @@ -396,13 +445,31 @@ func (o *IPSecPolicy) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *IPSecPolicy) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *IPSecPolicy) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *IPSecPolicy) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *IPSecPolicy) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o IPSecPolicy) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -413,6 +480,9 @@ func (o IPSecPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -433,8 +503,12 @@ func (o IPSecPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -452,24 +526,39 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPSecPolicy := _IPSecPolicy{} err = json.Unmarshal(data, &varIPSecPolicy) @@ -485,6 +574,7 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -536,3 +626,5 @@ func (v *NullableIPSecPolicy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go index 9612f14fab..36ea8ca806 100644 --- a/model_ip_sec_policy_request.go +++ b/model_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &IPSecPolicyRequest{} // IPSecPolicyRequest Adds support for custom fields and tags. type IPSecPolicyRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Proposals []int32 `json:"proposals,omitempty"` - PfsGroup *IKEProposalGroupValue `json:"pfs_group,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Proposals []int32 `json:"proposals,omitempty"` + PfsGroup *IKEProposalGroupValue `json:"pfs_group,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ func (o *IPSecPolicyRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPSecPolicyRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -267,7 +268,7 @@ func (o *IPSecPolicyRequest) SetCustomFields(v map[string]interface{}) { } func (o IPSecPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -311,20 +312,37 @@ func (o *IPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPSecPolicyRequest := _IPSecPolicyRequest{} err = json.Unmarshal(data, &varIPSecPolicyRequest) @@ -386,3 +404,5 @@ func (v *NullableIPSecPolicyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go index 9146d80747..0773e45fd8 100644 --- a/model_ip_sec_profile.go +++ b/model_ip_sec_profile.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the IPSecProfile type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ var _ MappedNullable = &IPSecProfile{} // IPSecProfile Adds support for custom fields and tags. type IPSecProfile struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileMode `json:"mode"` - IkePolicy IKEPolicy `json:"ike_policy"` - IpsecPolicy IPSecPolicy `json:"ipsec_policy"` - 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileMode `json:"mode"` + IkePolicy BriefIKEPolicy `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicy `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +44,7 @@ type _IPSecProfile IPSecProfile // 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 NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { +func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy) *IPSecProfile { this := IPSecProfile{} this.Id = id this.Url = url @@ -52,8 +53,6 @@ func NewIPSecProfile(id int32, url string, display string, name string, mode IPS this.Mode = mode this.IkePolicy = ikePolicy this.IpsecPolicy = ipsecPolicy - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -89,6 +88,7 @@ func (o *IPSecProfile) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *IPSecProfile) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *IPSecProfile) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPSecProfile) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPSecProfile) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPSecProfile) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPSecProfile) GetDisplay() string { if o == nil { @@ -137,6 +170,7 @@ func (o *IPSecProfile) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *IPSecProfile) GetName() string { if o == nil { @@ -161,6 +195,7 @@ func (o *IPSecProfile) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPSecProfile) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -217,10 +252,11 @@ func (o *IPSecProfile) SetMode(v IPSecProfileMode) { o.Mode = v } + // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfile) GetIkePolicy() IKEPolicy { +func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy { if o == nil { - var ret IKEPolicy + var ret BriefIKEPolicy return ret } @@ -229,7 +265,7 @@ func (o *IPSecProfile) GetIkePolicy() IKEPolicy { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { +func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool) { if o == nil { return nil, false } @@ -237,14 +273,15 @@ func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfile) SetIkePolicy(v IKEPolicy) { +func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy) { o.IkePolicy = v } + // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { +func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy { if o == nil { - var ret IPSecPolicy + var ret BriefIPSecPolicy return ret } @@ -253,7 +290,7 @@ func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { +func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool) { if o == nil { return nil, false } @@ -261,10 +298,11 @@ func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy) { +func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy) { o.IpsecPolicy = v } + // GetComments returns the Comments field value if set, zero value otherwise. func (o *IPSecProfile) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -361,18 +399,16 @@ func (o *IPSecProfile) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPSecProfile) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *IPSecProfile) GetCreatedOk() (*time.Time, bool) { @@ -382,23 +418,39 @@ func (o *IPSecProfile) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *IPSecProfile) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *IPSecProfile) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *IPSecProfile) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *IPSecProfile) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPSecProfile) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *IPSecProfile) GetLastUpdatedOk() (*time.Time, bool) { @@ -408,13 +460,31 @@ func (o *IPSecProfile) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *IPSecProfile) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *IPSecProfile) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *IPSecProfile) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *IPSecProfile) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o IPSecProfile) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -425,6 +495,9 @@ func (o IPSecProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -442,8 +515,12 @@ func (o IPSecProfile) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -464,24 +541,39 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { "mode", "ike_policy", "ipsec_policy", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPSecProfile := _IPSecProfile{} err = json.Unmarshal(data, &varIPSecProfile) @@ -497,6 +589,7 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -549,3 +642,5 @@ func (v *NullableIPSecProfile) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go index 69bcffc186..486cb2a0e3 100644 --- a/model_ip_sec_profile_mode.go +++ b/model_ip_sec_profile_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &IPSecProfileMode{} // IPSecProfileMode struct for IPSecProfileMode type IPSecProfileMode struct { - Value *IPSecProfileModeValue `json:"value,omitempty"` - Label *IPSecProfileModeLabel `json:"label,omitempty"` + Value *IPSecProfileModeValue `json:"value,omitempty"` + Label *IPSecProfileModeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IPSecProfileMode) SetLabel(v IPSecProfileModeLabel) { } func (o IPSecProfileMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableIPSecProfileMode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go index 31f8922ec4..5cf25e32d2 100644 --- a/model_ip_sec_profile_mode_label.go +++ b/model_ip_sec_profile_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type IPSecProfileModeLabel string // List of IPSecProfile_mode_label const ( IPSECPROFILEMODELABEL_ESP IPSecProfileModeLabel = "ESP" - IPSECPROFILEMODELABEL_AH IPSecProfileModeLabel = "AH" + IPSECPROFILEMODELABEL_AH IPSecProfileModeLabel = "AH" ) // All allowed values of IPSecProfileModeLabel enum @@ -108,3 +108,4 @@ func (v *NullableIPSecProfileModeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go index 75a1b1c6a7..5f994aa6cd 100644 --- a/model_ip_sec_profile_mode_value.go +++ b/model_ip_sec_profile_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type IPSecProfileModeValue string // List of IPSecProfile_mode_value const ( IPSECPROFILEMODEVALUE_ESP IPSecProfileModeValue = "esp" - IPSECPROFILEMODEVALUE_AH IPSecProfileModeValue = "ah" + IPSECPROFILEMODEVALUE_AH IPSecProfileModeValue = "ah" ) // All allowed values of IPSecProfileModeValue enum @@ -108,3 +108,4 @@ func (v *NullableIPSecProfileModeValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go index 09202cc1ee..629859db66 100644 --- a/model_ip_sec_profile_request.go +++ b/model_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &IPSecProfileRequest{} // IPSecProfileRequest Adds support for custom fields and tags. type IPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _IPSecProfileRequest IPSecProfileRequest // 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 NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *IPSecProfileRequest { +func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *IPSecProfileRequest { this := IPSecProfileRequest{} this.Name = name this.Mode = mode @@ -78,6 +78,7 @@ func (o *IPSecProfileRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPSecProfileRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -134,10 +135,11 @@ func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) { o.Mode = v } + // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +148,7 @@ func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +156,15 @@ func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } + // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +173,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,10 +181,11 @@ func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } + // GetComments returns the Comments field value if set, zero value otherwise. func (o *IPSecProfileRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -279,7 +283,7 @@ func (o *IPSecProfileRequest) SetCustomFields(v map[string]interface{}) { } func (o IPSecProfileRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -323,20 +327,37 @@ func (o *IPSecProfileRequest) UnmarshalJSON(data []byte) (err error) { "ipsec_policy", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPSecProfileRequest := _IPSecProfileRequest{} err = json.Unmarshal(data, &varIPSecProfileRequest) @@ -399,3 +420,5 @@ func (v *NullableIPSecProfileRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go index cdc9250e23..5765c7de61 100644 --- a/model_ip_sec_proposal.go +++ b/model_ip_sec_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the IPSecProposal type satisfies the MappedNullable interface at compile time @@ -21,22 +21,23 @@ var _ MappedNullable = &IPSecProposal{} // IPSecProposal Adds support for custom fields and tags. type IPSecProposal struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + EncryptionAlgorithm *IKEProposalEncryptionAlgorithm `json:"encryption_algorithm,omitempty"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` // Security association lifetime (seconds) SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"` // Security association lifetime (in kilobytes) - SaLifetimeData NullableInt32 `json:"sa_lifetime_data,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"` + SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,16 +47,12 @@ type _IPSecProposal IPSecProposal // 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 NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal { +func NewIPSecProposal(id int32, url string, display string, name string) *IPSecProposal { this := IPSecProposal{} this.Id = id this.Url = url this.Display = display this.Name = name - this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -91,6 +88,7 @@ func (o *IPSecProposal) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *IPSecProposal) GetUrl() string { if o == nil { @@ -115,6 +113,39 @@ func (o *IPSecProposal) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPSecProposal) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPSecProposal) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPSecProposal) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPSecProposal) GetDisplay() string { if o == nil { @@ -139,6 +170,7 @@ func (o *IPSecProposal) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *IPSecProposal) GetName() string { if o == nil { @@ -163,6 +195,7 @@ func (o *IPSecProposal) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPSecProposal) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -195,52 +228,68 @@ func (o *IPSecProposal) SetDescription(v string) { o.Description = &v } -// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value +// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise. func (o *IPSecProposal) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithm { - if o == nil { + if o == nil || IsNil(o.EncryptionAlgorithm) { var ret IKEProposalEncryptionAlgorithm return ret } - - return o.EncryptionAlgorithm + return *o.EncryptionAlgorithm } -// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value +// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IPSecProposal) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithm, bool) { - if o == nil { + if o == nil || IsNil(o.EncryptionAlgorithm) { return nil, false } - return &o.EncryptionAlgorithm, true + return o.EncryptionAlgorithm, true } -// SetEncryptionAlgorithm sets field value +// HasEncryptionAlgorithm returns a boolean if a field has been set. +func (o *IPSecProposal) HasEncryptionAlgorithm() bool { + if o != nil && !IsNil(o.EncryptionAlgorithm) { + return true + } + + return false +} + +// SetEncryptionAlgorithm gets a reference to the given IKEProposalEncryptionAlgorithm and assigns it to the EncryptionAlgorithm field. func (o *IPSecProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) { - o.EncryptionAlgorithm = v + o.EncryptionAlgorithm = &v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IPSecProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithm return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IPSecProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IPSecProposal) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. func (o *IPSecProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null). @@ -275,7 +324,6 @@ func (o *IPSecProposal) HasSaLifetimeSeconds() bool { func (o *IPSecProposal) SetSaLifetimeSeconds(v int32) { o.SaLifetimeSeconds.Set(&v) } - // SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil func (o *IPSecProposal) SetSaLifetimeSecondsNil() { o.SaLifetimeSeconds.Set(nil) @@ -318,7 +366,6 @@ func (o *IPSecProposal) HasSaLifetimeData() bool { func (o *IPSecProposal) SetSaLifetimeData(v int32) { o.SaLifetimeData.Set(&v) } - // SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil func (o *IPSecProposal) SetSaLifetimeDataNil() { o.SaLifetimeData.Set(nil) @@ -425,18 +472,16 @@ func (o *IPSecProposal) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPSecProposal) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *IPSecProposal) GetCreatedOk() (*time.Time, bool) { @@ -446,23 +491,39 @@ func (o *IPSecProposal) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *IPSecProposal) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *IPSecProposal) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *IPSecProposal) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *IPSecProposal) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *IPSecProposal) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *IPSecProposal) GetLastUpdatedOk() (*time.Time, bool) { @@ -472,13 +533,31 @@ func (o *IPSecProposal) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *IPSecProposal) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *IPSecProposal) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *IPSecProposal) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *IPSecProposal) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o IPSecProposal) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -489,13 +568,20 @@ func (o IPSecProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.EncryptionAlgorithm) { + toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm + } + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } if o.SaLifetimeSeconds.IsSet() { toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get() } @@ -511,8 +597,12 @@ func (o IPSecProposal) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -530,26 +620,39 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "encryption_algorithm", - "authentication_algorithm", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPSecProposal := _IPSecProposal{} err = json.Unmarshal(data, &varIPSecProposal) @@ -565,6 +668,7 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -618,3 +722,5 @@ func (v *NullableIPSecProposal) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go index 1a4cdf787d..337b84ca01 100644 --- a/model_ip_sec_proposal_request.go +++ b/model_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &IPSecProposalRequest{} // IPSecProposalRequest Adds support for custom fields and tags. type IPSecProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"` // Security association lifetime (seconds) SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"` // Security association lifetime (in kilobytes) - SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,11 +40,9 @@ type _IPSecProposalRequest IPSecProposalRequest // 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 NewIPSecProposalRequest(name string, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue) *IPSecProposalRequest { +func NewIPSecProposalRequest(name string) *IPSecProposalRequest { this := IPSecProposalRequest{} this.Name = name - this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm return &this } @@ -80,6 +78,7 @@ func (o *IPSecProposalRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPSecProposalRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,52 +111,68 @@ func (o *IPSecProposalRequest) SetDescription(v string) { o.Description = &v } -// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value +// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise. func (o *IPSecProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue { - if o == nil { + if o == nil || IsNil(o.EncryptionAlgorithm) { var ret IKEProposalEncryptionAlgorithmValue return ret } - - return o.EncryptionAlgorithm + return *o.EncryptionAlgorithm } -// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value +// GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IPSecProposalRequest) GetEncryptionAlgorithmOk() (*IKEProposalEncryptionAlgorithmValue, bool) { - if o == nil { + if o == nil || IsNil(o.EncryptionAlgorithm) { return nil, false } - return &o.EncryptionAlgorithm, true + return o.EncryptionAlgorithm, true } -// SetEncryptionAlgorithm sets field value +// HasEncryptionAlgorithm returns a boolean if a field has been set. +func (o *IPSecProposalRequest) HasEncryptionAlgorithm() bool { + if o != nil && !IsNil(o.EncryptionAlgorithm) { + return true + } + + return false +} + +// SetEncryptionAlgorithm gets a reference to the given IKEProposalEncryptionAlgorithmValue and assigns it to the EncryptionAlgorithm field. func (o *IPSecProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithmValue) { - o.EncryptionAlgorithm = v + o.EncryptionAlgorithm = &v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IPSecProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithmValue return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IPSecProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IPSecProposalRequest) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithmValue and assigns it to the AuthenticationAlgorithm field. func (o *IPSecProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null). @@ -192,7 +207,6 @@ func (o *IPSecProposalRequest) HasSaLifetimeSeconds() bool { func (o *IPSecProposalRequest) SetSaLifetimeSeconds(v int32) { o.SaLifetimeSeconds.Set(&v) } - // SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil func (o *IPSecProposalRequest) SetSaLifetimeSecondsNil() { o.SaLifetimeSeconds.Set(nil) @@ -235,7 +249,6 @@ func (o *IPSecProposalRequest) HasSaLifetimeData() bool { func (o *IPSecProposalRequest) SetSaLifetimeData(v int32) { o.SaLifetimeData.Set(&v) } - // SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil func (o *IPSecProposalRequest) SetSaLifetimeDataNil() { o.SaLifetimeData.Set(nil) @@ -343,7 +356,7 @@ func (o *IPSecProposalRequest) SetCustomFields(v map[string]interface{}) { } func (o IPSecProposalRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -356,8 +369,12 @@ func (o IPSecProposalRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.EncryptionAlgorithm) { + toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm + } + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } if o.SaLifetimeSeconds.IsSet() { toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get() } @@ -387,24 +404,39 @@ func (o *IPSecProposalRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", - "encryption_algorithm", - "authentication_algorithm", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varIPSecProposalRequest := _IPSecProposalRequest{} err = json.Unmarshal(data, &varIPSecProposalRequest) @@ -468,3 +500,5 @@ func (v *NullableIPSecProposalRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ipam_service_templates_list_protocol_parameter.go b/model_ipam_service_templates_list_protocol_parameter.go index f5e1d118cd..8bc3647b45 100644 --- a/model_ipam_service_templates_list_protocol_parameter.go +++ b/model_ipam_service_templates_list_protocol_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type IpamServiceTemplatesListProtocolParameter string // List of ipam_service_templates_list_protocol_parameter const ( IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_SCTP IpamServiceTemplatesListProtocolParameter = "sctp" - IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_TCP IpamServiceTemplatesListProtocolParameter = "tcp" - IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_UDP IpamServiceTemplatesListProtocolParameter = "udp" + IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_TCP IpamServiceTemplatesListProtocolParameter = "tcp" + IPAMSERVICETEMPLATESLISTPROTOCOLPARAMETER_UDP IpamServiceTemplatesListProtocolParameter = "udp" ) // All allowed values of IpamServiceTemplatesListProtocolParameter enum @@ -110,3 +110,4 @@ func (v *NullableIpamServiceTemplatesListProtocolParameter) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_job.go b/model_job.go index 7c41c0fe14..412cd9679d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Job type satisfies the MappedNullable interface at compile time @@ -21,23 +21,24 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId NullableInt64 `json:"object_id,omitempty"` + Name string `json:"name"` + Status BriefJobStatus `json:"status"` + Created *time.Time `json:"created,omitempty"` + 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 User `json:"user"` - Data interface{} `json:"data,omitempty"` - Error string `json:"error"` - JobId string `json:"job_id"` + Interval NullableInt32 `json:"interval,omitempty"` + Started NullableTime `json:"started,omitempty"` + Completed NullableTime `json:"completed,omitempty"` + User BriefUser `json:"user"` + Data interface{} `json:"data,omitempty"` + Error string `json:"error"` + JobId string `json:"job_id"` AdditionalProperties map[string]interface{} } @@ -47,7 +48,7 @@ type _Job Job // 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 NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string) *Job { +func NewJob(id int32, url string, display string, objectType string, name string, status BriefJobStatus, user BriefUser, error_ string, jobId string) *Job { this := Job{} this.Id = id this.Url = url @@ -55,7 +56,6 @@ func NewJob(id int32, url string, display string, objectType string, name string this.ObjectType = objectType this.Name = name this.Status = status - this.Created = created this.User = user this.Error = error_ this.JobId = jobId @@ -94,6 +94,7 @@ func (o *Job) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Job) GetUrl() string { if o == nil { @@ -118,6 +119,39 @@ func (o *Job) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Job) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Job) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Job) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Job) GetDisplay() string { if o == nil { @@ -142,6 +176,7 @@ func (o *Job) SetDisplay(v string) { o.Display = v } + // GetObjectType returns the ObjectType field value func (o *Job) GetObjectType() string { if o == nil { @@ -166,6 +201,7 @@ func (o *Job) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Job) GetObjectId() int64 { if o == nil || IsNil(o.ObjectId.Get()) { @@ -198,7 +234,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) @@ -233,10 +268,11 @@ func (o *Job) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value -func (o *Job) GetStatus() JobStatus { +func (o *Job) GetStatus() BriefJobStatus { if o == nil { - var ret JobStatus + var ret BriefJobStatus return ret } @@ -245,7 +281,7 @@ func (o *Job) GetStatus() JobStatus { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *Job) GetStatusOk() (*JobStatus, bool) { +func (o *Job) GetStatusOk() (*BriefJobStatus, bool) { if o == nil { return nil, false } @@ -253,32 +289,41 @@ func (o *Job) GetStatusOk() (*JobStatus, bool) { } // SetStatus sets field value -func (o *Job) SetStatus(v JobStatus) { +func (o *Job) SetStatus(v BriefJobStatus) { o.Status = v } -// GetCreated returns the Created field value + +// GetCreated returns the Created field value if set, zero value otherwise. func (o *Job) GetCreated() time.Time { - if o == nil { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } - - return o.Created + return *o.Created } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Job) GetCreatedOk() (*time.Time, bool) { - if o == nil { + if o == nil || IsNil(o.Created) { return nil, false } - return &o.Created, true + return o.Created, true } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Job) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given time.Time and assigns it to the Created field. func (o *Job) SetCreated(v time.Time) { - o.Created = v + o.Created = &v } // GetScheduled returns the Scheduled field value if set, zero value otherwise (both if not set or set to explicit null). @@ -313,7 +358,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) @@ -356,7 +400,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) @@ -399,7 +442,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) @@ -442,7 +484,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) @@ -454,9 +495,9 @@ func (o *Job) UnsetCompleted() { } // GetUser returns the User field value -func (o *Job) GetUser() User { +func (o *Job) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -465,7 +506,7 @@ func (o *Job) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Job) GetUserOk() (*User, bool) { +func (o *Job) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -473,10 +514,11 @@ func (o *Job) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Job) SetUser(v User) { +func (o *Job) SetUser(v BriefUser) { o.User = v } + // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Job) GetData() interface{} { if o == nil { @@ -534,6 +576,7 @@ func (o *Job) SetError(v string) { o.Error = v } + // GetJobId returns the JobId field value func (o *Job) GetJobId() string { if o == nil { @@ -558,8 +601,9 @@ func (o *Job) SetJobId(v string) { o.JobId = v } + func (o Job) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -570,6 +614,9 @@ func (o Job) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_type"] = o.ObjectType if o.ObjectId.IsSet() { @@ -577,7 +624,9 @@ func (o Job) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["status"] = o.Status - toSerialize["created"] = o.Created + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } if o.Scheduled.IsSet() { toSerialize["scheduled"] = o.Scheduled.Get() } @@ -615,26 +664,42 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { "object_type", "name", "status", - "created", "user", "error", "job_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varJob := _Job{} err = json.Unmarshal(data, &varJob) @@ -650,6 +715,7 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_type") delete(additionalProperties, "object_id") @@ -705,3 +771,5 @@ func (v *NullableJob) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_job_status_label.go b/model_job_status_label.go deleted file mode 100644 index 2e71e463ac..0000000000 --- a/model_job_status_label.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// JobStatusLabel the model 'JobStatusLabel' -type JobStatusLabel string - -// List of Job_status_label -const ( - JOBSTATUSLABEL_PENDING JobStatusLabel = "Pending" - JOBSTATUSLABEL_SCHEDULED JobStatusLabel = "Scheduled" - JOBSTATUSLABEL_RUNNING JobStatusLabel = "Running" - JOBSTATUSLABEL_COMPLETED JobStatusLabel = "Completed" - JOBSTATUSLABEL_ERRORED JobStatusLabel = "Errored" - JOBSTATUSLABEL_FAILED JobStatusLabel = "Failed" -) - -// All allowed values of JobStatusLabel enum -var AllowedJobStatusLabelEnumValues = []JobStatusLabel{ - "Pending", - "Scheduled", - "Running", - "Completed", - "Errored", - "Failed", -} - -func (v *JobStatusLabel) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := JobStatusLabel(value) - for _, existing := range AllowedJobStatusLabelEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid JobStatusLabel", value) -} - -// NewJobStatusLabelFromValue returns a pointer to a valid JobStatusLabel -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewJobStatusLabelFromValue(v string) (*JobStatusLabel, error) { - ev := JobStatusLabel(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for JobStatusLabel: valid values are %v", v, AllowedJobStatusLabelEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v JobStatusLabel) IsValid() bool { - for _, existing := range AllowedJobStatusLabelEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to Job_status_label value -func (v JobStatusLabel) Ptr() *JobStatusLabel { - return &v -} - -type NullableJobStatusLabel struct { - value *JobStatusLabel - isSet bool -} - -func (v NullableJobStatusLabel) Get() *JobStatusLabel { - return v.value -} - -func (v *NullableJobStatusLabel) Set(val *JobStatusLabel) { - v.value = val - v.isSet = true -} - -func (v NullableJobStatusLabel) IsSet() bool { - return v.isSet -} - -func (v *NullableJobStatusLabel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableJobStatusLabel(val *JobStatusLabel) *NullableJobStatusLabel { - return &NullableJobStatusLabel{value: val, isSet: true} -} - -func (v NullableJobStatusLabel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableJobStatusLabel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_job_status_value.go b/model_job_status_value.go deleted file mode 100644 index ea3383eaa1..0000000000 --- a/model_job_status_value.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// JobStatusValue * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed -type JobStatusValue string - -// List of Job_status_value -const ( - JOBSTATUSVALUE_PENDING JobStatusValue = "pending" - JOBSTATUSVALUE_SCHEDULED JobStatusValue = "scheduled" - JOBSTATUSVALUE_RUNNING JobStatusValue = "running" - JOBSTATUSVALUE_COMPLETED JobStatusValue = "completed" - JOBSTATUSVALUE_ERRORED JobStatusValue = "errored" - JOBSTATUSVALUE_FAILED JobStatusValue = "failed" -) - -// All allowed values of JobStatusValue enum -var AllowedJobStatusValueEnumValues = []JobStatusValue{ - "pending", - "scheduled", - "running", - "completed", - "errored", - "failed", -} - -func (v *JobStatusValue) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := JobStatusValue(value) - for _, existing := range AllowedJobStatusValueEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid JobStatusValue", value) -} - -// NewJobStatusValueFromValue returns a pointer to a valid JobStatusValue -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewJobStatusValueFromValue(v string) (*JobStatusValue, error) { - ev := JobStatusValue(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for JobStatusValue: valid values are %v", v, AllowedJobStatusValueEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v JobStatusValue) IsValid() bool { - for _, existing := range AllowedJobStatusValueEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to Job_status_value value -func (v JobStatusValue) Ptr() *JobStatusValue { - return &v -} - -type NullableJobStatusValue struct { - value *JobStatusValue - isSet bool -} - -func (v NullableJobStatusValue) Get() *JobStatusValue { - return v.value -} - -func (v *NullableJobStatusValue) Set(val *JobStatusValue) { - v.value = val - v.isSet = true -} - -func (v NullableJobStatusValue) IsSet() bool { - return v.isSet -} - -func (v *NullableJobStatusValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableJobStatusValue(val *JobStatusValue) *NullableJobStatusValue { - return &NullableJobStatusValue{value: val, isSet: true} -} - -func (v NullableJobStatusValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableJobStatusValue) 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 85c554b79d..e41a959914 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the JournalEntry type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ 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 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + AssignedObject interface{} `json:"assigned_object,omitempty"` + Created NullableTime `json:"created,omitempty"` + 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,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,17 +44,14 @@ type _JournalEntry JournalEntry // 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 NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry { +func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, comments string) *JournalEntry { this := JournalEntry{} this.Id = id this.Url = url this.Display = display this.AssignedObjectType = assignedObjectType this.AssignedObjectId = assignedObjectId - this.AssignedObject = assignedObject - this.Created = created this.Comments = comments - this.LastUpdated = lastUpdated return &this } @@ -89,6 +87,7 @@ func (o *JournalEntry) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *JournalEntry) GetUrl() string { if o == nil { @@ -113,6 +112,39 @@ func (o *JournalEntry) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *JournalEntry) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JournalEntry) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *JournalEntry) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *JournalEntry) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *JournalEntry) GetDisplay() string { if o == nil { @@ -137,6 +169,7 @@ func (o *JournalEntry) SetDisplay(v string) { o.Display = v } + // GetAssignedObjectType returns the AssignedObjectType field value func (o *JournalEntry) GetAssignedObjectType() string { if o == nil { @@ -161,6 +194,7 @@ func (o *JournalEntry) SetAssignedObjectType(v string) { o.AssignedObjectType = v } + // GetAssignedObjectId returns the AssignedObjectId field value func (o *JournalEntry) GetAssignedObjectId() int64 { if o == nil { @@ -185,18 +219,17 @@ func (o *JournalEntry) SetAssignedObjectId(v int64) { o.AssignedObjectId = v } -// GetAssignedObject returns the AssignedObject field value -// If the value is explicit nil, the zero value for interface{} will be returned + +// GetAssignedObject returns the AssignedObject field value if set, zero value otherwise (both if not set or set to explicit null). func (o *JournalEntry) GetAssignedObject() interface{} { if o == nil { var ret interface{} return ret } - return o.AssignedObject } -// GetAssignedObjectOk returns a tuple with the AssignedObject field value +// GetAssignedObjectOk returns a tuple with the AssignedObject 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 *JournalEntry) GetAssignedObjectOk() (*interface{}, bool) { @@ -206,23 +239,30 @@ func (o *JournalEntry) GetAssignedObjectOk() (*interface{}, bool) { return &o.AssignedObject, true } -// SetAssignedObject sets field value +// HasAssignedObject returns a boolean if a field has been set. +func (o *JournalEntry) HasAssignedObject() bool { + if o != nil && !IsNil(o.AssignedObject) { + return true + } + + return false +} + +// SetAssignedObject gets a reference to the given interface{} and assigns it to the AssignedObject field. func (o *JournalEntry) SetAssignedObject(v interface{}) { o.AssignedObject = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *JournalEntry) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *JournalEntry) GetCreatedOk() (*time.Time, bool) { @@ -232,10 +272,28 @@ func (o *JournalEntry) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *JournalEntry) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *JournalEntry) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *JournalEntry) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *JournalEntry) UnsetCreated() { + o.Created.Unset() +} // GetCreatedBy returns the CreatedBy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *JournalEntry) GetCreatedBy() int32 { @@ -269,7 +327,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) @@ -336,6 +393,7 @@ func (o *JournalEntry) SetComments(v string) { o.Comments = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *JournalEntry) GetTags() []NestedTag { if o == nil || IsNil(o.Tags) { @@ -400,18 +458,16 @@ func (o *JournalEntry) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *JournalEntry) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *JournalEntry) GetLastUpdatedOk() (*time.Time, bool) { @@ -421,13 +477,31 @@ func (o *JournalEntry) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *JournalEntry) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *JournalEntry) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *JournalEntry) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *JournalEntry) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o JournalEntry) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -438,13 +512,18 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["assigned_object_type"] = o.AssignedObjectType toSerialize["assigned_object_id"] = o.AssignedObjectId if o.AssignedObject != nil { toSerialize["assigned_object"] = o.AssignedObject } - toSerialize["created"] = o.Created.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } if o.CreatedBy.IsSet() { toSerialize["created_by"] = o.CreatedBy.Get() } @@ -458,7 +537,9 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -477,26 +558,40 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { "display", "assigned_object_type", "assigned_object_id", - "assigned_object", - "created", "comments", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varJournalEntry := _JournalEntry{} err = json.Unmarshal(data, &varJournalEntry) @@ -512,6 +607,7 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "assigned_object_type") delete(additionalProperties, "assigned_object_id") @@ -564,3 +660,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 18d34bc98d..be04ebd294 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &JournalEntryKind{} // JournalEntryKind struct for JournalEntryKind type JournalEntryKind struct { - Value *JournalEntryKindValue `json:"value,omitempty"` - Label *JournalEntryKindLabel `json:"label,omitempty"` + Value *JournalEntryKindValue `json:"value,omitempty"` + Label *JournalEntryKindLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *JournalEntryKind) SetLabel(v JournalEntryKindLabel) { } func (o JournalEntryKind) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableJournalEntryKind) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go index 5c61d6c58d..ea1a8f81c6 100644 --- a/model_journal_entry_kind_label.go +++ b/model_journal_entry_kind_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ type JournalEntryKindLabel string // List of JournalEntry_kind_label const ( - JOURNALENTRYKINDLABEL_INFO JournalEntryKindLabel = "Info" + JOURNALENTRYKINDLABEL_INFO JournalEntryKindLabel = "Info" JOURNALENTRYKINDLABEL_SUCCESS JournalEntryKindLabel = "Success" JOURNALENTRYKINDLABEL_WARNING JournalEntryKindLabel = "Warning" - JOURNALENTRYKINDLABEL_DANGER JournalEntryKindLabel = "Danger" + JOURNALENTRYKINDLABEL_DANGER JournalEntryKindLabel = "Danger" ) // All allowed values of JournalEntryKindLabel enum @@ -112,3 +112,4 @@ func (v *NullableJournalEntryKindLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go index 06b51fe786..73f155b305 100644 --- a/model_journal_entry_kind_value.go +++ b/model_journal_entry_kind_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ type JournalEntryKindValue string // List of JournalEntry_kind_value const ( - JOURNALENTRYKINDVALUE_INFO JournalEntryKindValue = "info" + JOURNALENTRYKINDVALUE_INFO JournalEntryKindValue = "info" JOURNALENTRYKINDVALUE_SUCCESS JournalEntryKindValue = "success" JOURNALENTRYKINDVALUE_WARNING JournalEntryKindValue = "warning" - JOURNALENTRYKINDVALUE_DANGER JournalEntryKindValue = "danger" + JOURNALENTRYKINDVALUE_DANGER JournalEntryKindValue = "danger" ) // All allowed values of JournalEntryKindValue enum @@ -112,3 +112,4 @@ func (v *NullableJournalEntryKindValue) 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 03045dce65..c5feff4fda 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ 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"` - Kind *JournalEntryKindValue `json:"kind,omitempty"` - Comments string `json:"comments"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + CreatedBy NullableInt32 `json:"created_by,omitempty"` + Kind *JournalEntryKindValue `json:"kind,omitempty"` + Comments string `json:"comments"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,6 +76,7 @@ func (o *JournalEntryRequest) SetAssignedObjectType(v string) { o.AssignedObjectType = v } + // GetAssignedObjectId returns the AssignedObjectId field value func (o *JournalEntryRequest) GetAssignedObjectId() int64 { if o == nil { @@ -100,6 +101,7 @@ func (o *JournalEntryRequest) SetAssignedObjectId(v int64) { o.AssignedObjectId = v } + // GetCreatedBy returns the CreatedBy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *JournalEntryRequest) GetCreatedBy() int32 { if o == nil || IsNil(o.CreatedBy.Get()) { @@ -132,7 +134,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) @@ -199,6 +200,7 @@ func (o *JournalEntryRequest) SetComments(v string) { o.Comments = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *JournalEntryRequest) GetTags() []NestedTagRequest { if o == nil || IsNil(o.Tags) { @@ -264,7 +266,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 } @@ -306,20 +308,37 @@ func (o *JournalEntryRequest) UnmarshalJSON(data []byte) (err error) { "comments", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varJournalEntryRequest := _JournalEntryRequest{} err = json.Unmarshal(data, &varJournalEntryRequest) @@ -381,3 +400,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 b59c4021bf..098309d26e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,23 @@ 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"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Type *BriefL2VPNType `json:"type,omitempty"` + ImportTargets []RouteTarget `json:"import_targets,omitempty"` + ExportTargets []RouteTarget `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,6 +89,7 @@ func (o *L2VPN) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *L2VPN) GetUrl() string { if o == nil { @@ -103,6 +114,39 @@ func (o *L2VPN) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *L2VPN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *L2VPN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *L2VPN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *L2VPN) GetDisplay() string { if o == nil { @@ -127,6 +171,7 @@ func (o *L2VPN) SetDisplay(v string) { o.Display = v } + // GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). func (o *L2VPN) GetIdentifier() int64 { if o == nil || IsNil(o.Identifier.Get()) { @@ -159,7 +204,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) @@ -194,6 +238,7 @@ func (o *L2VPN) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *L2VPN) GetSlug() string { if o == nil { @@ -218,10 +263,11 @@ func (o *L2VPN) SetSlug(v string) { o.Slug = v } + // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPN) GetType() L2VPNType { +func (o *L2VPN) GetType() BriefL2VPNType { if o == nil || IsNil(o.Type) { - var ret L2VPNType + var ret BriefL2VPNType return ret } return *o.Type @@ -229,7 +275,7 @@ func (o *L2VPN) GetType() L2VPNType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPN) GetTypeOk() (*L2VPNType, bool) { +func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -245,11 +291,75 @@ func (o *L2VPN) HasType() bool { return false } -// SetType gets a reference to the given L2VPNType and assigns it to the Type field. -func (o *L2VPN) SetType(v L2VPNType) { +// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. +func (o *L2VPN) SetType(v BriefL2VPNType) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *L2VPN) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *L2VPN) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -282,8 +392,230 @@ func (o *L2VPN) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPN) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *L2VPN) GetTenantOk() (*BriefTenant, 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 *L2VPN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *L2VPN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPN) 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 *L2VPN) 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 *L2VPN) 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 *L2VPN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPN) 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 *L2VPN) 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 *L2VPN) 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 *L2VPN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPN) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *L2VPN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *L2VPN) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *L2VPN) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *L2VPN) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *L2VPN) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPN) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *L2VPN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *L2VPN) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *L2VPN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *L2VPN) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *L2VPN) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o L2VPN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -294,6 +626,9 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Identifier.IsSet() { toSerialize["identifier"] = o.Identifier.Get() @@ -303,9 +638,33 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -326,20 +685,37 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varL2VPN := _L2VPN{} err = json.Unmarshal(data, &varL2VPN) @@ -355,12 +731,21 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "identifier") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -402,3 +787,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 9722c656c9..c1b1f40845 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +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"` - Type *L2VPNTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Type *BriefL2VPNTypeValue `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 NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,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) @@ -116,6 +121,7 @@ func (o *L2VPNRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *L2VPNRequest) GetSlug() string { if o == nil { @@ -140,10 +146,11 @@ func (o *L2VPNRequest) SetSlug(v string) { o.Slug = v } + // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPNRequest) GetType() L2VPNTypeValue { +func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -151,7 +158,7 @@ func (o *L2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -167,11 +174,75 @@ func (o *L2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *L2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *L2VPNRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *L2VPNRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPNRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -204,8 +275,146 @@ func (o *L2VPNRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPNRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPNRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPNRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPNRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, 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 *L2VPNRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *L2VPNRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPNRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPNRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNRequest) 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 *L2VPNRequest) 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 *L2VPNRequest) 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 *L2VPNRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNRequest) 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 *L2VPNRequest) 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 *L2VPNRequest) 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 *L2VPNRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -222,9 +431,27 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -242,20 +469,37 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varL2VPNRequest := _L2VPNRequest{} err = json.Unmarshal(data, &varL2VPNRequest) @@ -273,7 +517,13 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -315,3 +565,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 b70569c1f7..317d1ef3c9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,10 +21,18 @@ 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 L2VPN `json:"l2vpn"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + L2vpn BriefL2VPN `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + AssignedObject interface{} `json:"assigned_object,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,12 +42,14 @@ type _L2VPNTermination L2VPNTermination // 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 NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN) *L2VPNTermination { +func NewL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64) *L2VPNTermination { this := L2VPNTermination{} this.Id = id this.Url = url this.Display = display this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId return &this } @@ -74,6 +85,7 @@ func (o *L2VPNTermination) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *L2VPNTermination) GetUrl() string { if o == nil { @@ -98,6 +110,39 @@ func (o *L2VPNTermination) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *L2VPNTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *L2VPNTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *L2VPNTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *L2VPNTermination) GetDisplay() string { if o == nil { @@ -122,10 +167,11 @@ func (o *L2VPNTermination) SetDisplay(v string) { o.Display = v } + // GetL2vpn returns the L2vpn field value -func (o *L2VPNTermination) GetL2vpn() L2VPN { +func (o *L2VPNTermination) GetL2vpn() BriefL2VPN { if o == nil { - var ret L2VPN + var ret BriefL2VPN return ret } @@ -134,7 +180,7 @@ func (o *L2VPNTermination) GetL2vpn() L2VPN { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { +func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { if o == nil { return nil, false } @@ -142,12 +188,244 @@ func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { } // SetL2vpn sets field value -func (o *L2VPNTermination) SetL2vpn(v L2VPN) { +func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN) { o.L2vpn = v } + +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTermination) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTermination) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTermination) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTermination) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + + +// GetAssignedObject returns the AssignedObject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPNTermination) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject 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 *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// HasAssignedObject returns a boolean if a field has been set. +func (o *L2VPNTermination) HasAssignedObject() bool { + if o != nil && !IsNil(o.AssignedObject) { + return true + } + + return false +} + +// SetAssignedObject gets a reference to the given interface{} and assigns it to the AssignedObject field. +func (o *L2VPNTermination) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTermination) 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 *L2VPNTermination) 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 *L2VPNTermination) 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 *L2VPNTermination) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTermination) 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 *L2VPNTermination) 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 *L2VPNTermination) 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 *L2VPNTermination) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPNTermination) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *L2VPNTermination) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *L2VPNTermination) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *L2VPNTermination) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *L2VPNTermination) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *L2VPNTermination) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPNTermination) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *L2VPNTermination) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *L2VPNTermination) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *L2VPNTermination) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *L2VPNTermination) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o L2VPNTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,8 +436,28 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -177,22 +475,41 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { "url", "display", "l2vpn", + "assigned_object_type", + "assigned_object_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varL2VPNTermination := _L2VPNTermination{} err = json.Unmarshal(data, &varL2VPNTermination) @@ -208,8 +525,16 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -251,3 +576,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 6b293da4e6..c21082cb9c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,11 @@ var _ MappedNullable = &L2VPNTerminationRequest{} // L2VPNTerminationRequest Adds support for custom fields and tags. type L2VPNTerminationRequest struct { - L2vpn L2VPNRequest `json:"l2vpn"` + L2vpn BriefL2VPNRequest `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{} } @@ -30,9 +34,11 @@ type _L2VPNTerminationRequest L2VPNTerminationRequest // 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 NewL2VPNTerminationRequest(l2vpn L2VPNRequest) *L2VPNTerminationRequest { +func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest { this := L2VPNTerminationRequest{} this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId return &this } @@ -45,9 +51,9 @@ func NewL2VPNTerminationRequestWithDefaults() *L2VPNTerminationRequest { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } @@ -56,7 +62,7 @@ func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil { return nil, false } @@ -64,12 +70,127 @@ func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { } // SetL2vpn sets field value -func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = v } + +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTerminationRequest) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) 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 *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -79,6 +200,14 @@ func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { func (o L2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -93,22 +222,41 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "l2vpn", + "assigned_object_type", + "assigned_object_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varL2VPNTerminationRequest := _L2VPNTerminationRequest{} err = json.Unmarshal(data, &varL2VPNTerminationRequest) @@ -123,6 +271,10 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -164,3 +316,5 @@ func (v *NullableL2VPNTerminationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_l2_vpn_type_label.go b/model_l2_vpn_type_label.go deleted file mode 100644 index 514444fe17..0000000000 --- a/model_l2_vpn_type_label.go +++ /dev/null @@ -1,130 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// L2VPNTypeLabel the model 'L2VPNTypeLabel' -type L2VPNTypeLabel string - -// List of L2VPN_type_label -const ( - L2VPNTYPELABEL_VPWS L2VPNTypeLabel = "VPWS" - L2VPNTYPELABEL_VPLS L2VPNTypeLabel = "VPLS" - L2VPNTYPELABEL_VXLAN L2VPNTypeLabel = "VXLAN" - L2VPNTYPELABEL_VXLAN_EVPN L2VPNTypeLabel = "VXLAN-EVPN" - L2VPNTYPELABEL_MPLS_EVPN L2VPNTypeLabel = "MPLS EVPN" - L2VPNTYPELABEL_PBB_EVPN L2VPNTypeLabel = "PBB EVPN" - L2VPNTYPELABEL_EPL L2VPNTypeLabel = "EPL" - L2VPNTYPELABEL_EVPL L2VPNTypeLabel = "EVPL" - L2VPNTYPELABEL_ETHERNET_PRIVATE_LAN L2VPNTypeLabel = "Ethernet Private LAN" - L2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN L2VPNTypeLabel = "Ethernet Virtual Private LAN" - L2VPNTYPELABEL_ETHERNET_PRIVATE_TREE L2VPNTypeLabel = "Ethernet Private Tree" - L2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_TREE L2VPNTypeLabel = "Ethernet Virtual Private Tree" -) - -// All allowed values of L2VPNTypeLabel enum -var AllowedL2VPNTypeLabelEnumValues = []L2VPNTypeLabel{ - "VPWS", - "VPLS", - "VXLAN", - "VXLAN-EVPN", - "MPLS EVPN", - "PBB EVPN", - "EPL", - "EVPL", - "Ethernet Private LAN", - "Ethernet Virtual Private LAN", - "Ethernet Private Tree", - "Ethernet Virtual Private Tree", -} - -func (v *L2VPNTypeLabel) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := L2VPNTypeLabel(value) - for _, existing := range AllowedL2VPNTypeLabelEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid L2VPNTypeLabel", value) -} - -// NewL2VPNTypeLabelFromValue returns a pointer to a valid L2VPNTypeLabel -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewL2VPNTypeLabelFromValue(v string) (*L2VPNTypeLabel, error) { - ev := L2VPNTypeLabel(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for L2VPNTypeLabel: valid values are %v", v, AllowedL2VPNTypeLabelEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v L2VPNTypeLabel) IsValid() bool { - for _, existing := range AllowedL2VPNTypeLabelEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to L2VPN_type_label value -func (v L2VPNTypeLabel) Ptr() *L2VPNTypeLabel { - return &v -} - -type NullableL2VPNTypeLabel struct { - value *L2VPNTypeLabel - isSet bool -} - -func (v NullableL2VPNTypeLabel) Get() *L2VPNTypeLabel { - return v.value -} - -func (v *NullableL2VPNTypeLabel) Set(val *L2VPNTypeLabel) { - v.value = val - v.isSet = true -} - -func (v NullableL2VPNTypeLabel) IsSet() bool { - return v.isSet -} - -func (v *NullableL2VPNTypeLabel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableL2VPNTypeLabel(val *L2VPNTypeLabel) *NullableL2VPNTypeLabel { - return &NullableL2VPNTypeLabel{value: val, isSet: true} -} - -func (v NullableL2VPNTypeLabel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableL2VPNTypeLabel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_l2_vpn_type_value.go b/model_l2_vpn_type_value.go deleted file mode 100644 index fdbf47162d..0000000000 --- a/model_l2_vpn_type_value.go +++ /dev/null @@ -1,130 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// L2VPNTypeValue * `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 L2VPNTypeValue string - -// List of L2VPN_type_value -const ( - L2VPNTYPEVALUE_VPWS L2VPNTypeValue = "vpws" - L2VPNTYPEVALUE_VPLS L2VPNTypeValue = "vpls" - L2VPNTYPEVALUE_VXLAN L2VPNTypeValue = "vxlan" - L2VPNTYPEVALUE_VXLAN_EVPN L2VPNTypeValue = "vxlan-evpn" - L2VPNTYPEVALUE_MPLS_EVPN L2VPNTypeValue = "mpls-evpn" - L2VPNTYPEVALUE_PBB_EVPN L2VPNTypeValue = "pbb-evpn" - L2VPNTYPEVALUE_EPL L2VPNTypeValue = "epl" - L2VPNTYPEVALUE_EVPL L2VPNTypeValue = "evpl" - L2VPNTYPEVALUE_EP_LAN L2VPNTypeValue = "ep-lan" - L2VPNTYPEVALUE_EVP_LAN L2VPNTypeValue = "evp-lan" - L2VPNTYPEVALUE_EP_TREE L2VPNTypeValue = "ep-tree" - L2VPNTYPEVALUE_EVP_TREE L2VPNTypeValue = "evp-tree" -) - -// All allowed values of L2VPNTypeValue enum -var AllowedL2VPNTypeValueEnumValues = []L2VPNTypeValue{ - "vpws", - "vpls", - "vxlan", - "vxlan-evpn", - "mpls-evpn", - "pbb-evpn", - "epl", - "evpl", - "ep-lan", - "evp-lan", - "ep-tree", - "evp-tree", -} - -func (v *L2VPNTypeValue) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := L2VPNTypeValue(value) - for _, existing := range AllowedL2VPNTypeValueEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid L2VPNTypeValue", value) -} - -// NewL2VPNTypeValueFromValue returns a pointer to a valid L2VPNTypeValue -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewL2VPNTypeValueFromValue(v string) (*L2VPNTypeValue, error) { - ev := L2VPNTypeValue(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for L2VPNTypeValue: valid values are %v", v, AllowedL2VPNTypeValueEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v L2VPNTypeValue) IsValid() bool { - for _, existing := range AllowedL2VPNTypeValueEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to L2VPN_type_value value -func (v L2VPNTypeValue) Ptr() *L2VPNTypeValue { - return &v -} - -type NullableL2VPNTypeValue struct { - value *L2VPNTypeValue - isSet bool -} - -func (v NullableL2VPNTypeValue) Get() *L2VPNTypeValue { - return v.value -} - -func (v *NullableL2VPNTypeValue) Set(val *L2VPNTypeValue) { - v.value = val - v.isSet = true -} - -func (v NullableL2VPNTypeValue) IsSet() bool { - return v.isSet -} - -func (v *NullableL2VPNTypeValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableL2VPNTypeValue(val *L2VPNTypeValue) *NullableL2VPNTypeValue { - return &NullableL2VPNTypeValue{value: val, isSet: true} -} - -func (v NullableL2VPNTypeValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableL2VPNTypeValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_location.go b/model_location.go index 3da41e65f0..0d6e264e94 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,27 @@ 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"` - Description *string `json:"description,omitempty"` - RackCount int32 `json:"rack_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Site BriefSite `json:"site"` + Parent NullableNestedLocation `json:"parent,omitempty"` + Status *LocationStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + RackCount *int32 `json:"rack_count,omitempty"` + DeviceCount *int32 `json:"device_count,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,14 +51,14 @@ type _Location Location // 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 NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32) *Location { +func NewLocation(id int32, url string, display string, name string, slug string, site BriefSite, depth int32) *Location { this := Location{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.RackCount = rackCount + this.Site = site this.Depth = depth return &this } @@ -81,6 +95,7 @@ func (o *Location) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Location) GetUrl() string { if o == nil { @@ -105,6 +120,39 @@ func (o *Location) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Location) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Location) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Location) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Location) GetDisplay() string { if o == nil { @@ -129,6 +177,7 @@ func (o *Location) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Location) GetName() string { if o == nil { @@ -153,6 +202,7 @@ func (o *Location) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Location) GetSlug() string { if o == nil { @@ -177,6 +227,180 @@ func (o *Location) SetSlug(v string) { o.Slug = v } + +// GetSite returns the Site field value +func (o *Location) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Location) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Location) SetSite(v BriefSite) { + o.Site = v +} + + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetParent() NestedLocation { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocation + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent 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 *Location) GetParentOk() (*NestedLocation, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *Location) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocation and assigns it to the Parent field. +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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *Location) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Location) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Location) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Location) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *Location) GetTenantOk() (*BriefTenant, 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 *Location) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Location) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Location) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Location) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Location) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Location) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Location) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Location) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,28 +433,248 @@ func (o *Location) SetDescription(v string) { o.Description = &v } -// GetRackCount returns the RackCount field value -func (o *Location) GetRackCount() int32 { +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Location) 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 *Location) 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 *Location) 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 *Location) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Location) 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 *Location) 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 *Location) 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 *Location) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Location) GetCreatedOk() (*time.Time, bool) { if o == nil { - var ret int32 + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Location) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Location) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Location) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Location) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time return ret } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Location) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Location) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} - return o.RackCount +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Location) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Location) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Location) UnsetLastUpdated() { + o.LastUpdated.Unset() } -// GetRackCountOk returns a tuple with the RackCount field value +// GetRackCount returns the RackCount field value if set, zero value otherwise. +func (o *Location) GetRackCount() int32 { + if o == nil || IsNil(o.RackCount) { + var ret int32 + return ret + } + return *o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Location) GetRackCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.RackCount) { return nil, false } - return &o.RackCount, true + return o.RackCount, true +} + +// HasRackCount returns a boolean if a field has been set. +func (o *Location) HasRackCount() bool { + if o != nil && !IsNil(o.RackCount) { + return true + } + + return false } -// SetRackCount sets field value +// SetRackCount gets a reference to the given int32 and assigns it to the RackCount field. func (o *Location) SetRackCount(v int32) { - o.RackCount = v + o.RackCount = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Location) GetDeviceCount() int32 { + if o == nil || IsNil(o.DeviceCount) { + var ret int32 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetDeviceCountOk() (*int32, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Location) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int32 and assigns it to the DeviceCount field. +func (o *Location) SetDeviceCount(v int32) { + o.DeviceCount = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Location) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Location) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Location) SetPrefixCount(v int64) { + o.PrefixCount = &v } // GetDepth returns the Depth field value @@ -257,8 +701,9 @@ func (o *Location) SetDepth(v int32) { o.Depth = v } + func (o Location) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -269,13 +714,49 @@ func (o Location) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["rack_count"] = o.RackCount + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.RackCount) { + toSerialize["rack_count"] = o.RackCount + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -295,24 +776,41 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "rack_count", + "site", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varLocation := _Location{} err = json.Unmarshal(data, &varLocation) @@ -328,11 +826,23 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "rack_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "prefix_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties } @@ -375,3 +885,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 5f282485af..a46a0df729 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &LocationRequest{} // LocationRequest Extends PrimaryModelSerializer to include MPTT support. type LocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Site BriefSiteRequest `json:"site"` + Parent NullableNestedLocationRequest `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,10 +40,11 @@ type _LocationRequest LocationRequest // 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 NewLocationRequest(name string, slug string) *LocationRequest { +func NewLocationRequest(name string, slug string, site BriefSiteRequest) *LocationRequest { this := LocationRequest{} this.Name = name this.Slug = slug + this.Site = site return &this } @@ -71,6 +80,7 @@ func (o *LocationRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *LocationRequest) GetSlug() string { if o == nil { @@ -95,6 +105,180 @@ func (o *LocationRequest) SetSlug(v string) { o.Slug = v } + +// GetSite returns the Site field value +func (o *LocationRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *LocationRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetParent() NestedLocationRequest { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocationRequest + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent 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 *LocationRequest) GetParentOk() (*NestedLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *LocationRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocationRequest and assigns it to the Parent field. +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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *LocationRequest) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LocationRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LocationRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *LocationRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *LocationRequest) GetTenantOk() (*BriefTenantRequest, 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 *LocationRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *LocationRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *LocationRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *LocationRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *LocationRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *LocationRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *LocationRequest) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *LocationRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +311,72 @@ func (o *LocationRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LocationRequest) 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 *LocationRequest) 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 *LocationRequest) 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 *LocationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *LocationRequest) 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 *LocationRequest) 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 *LocationRequest) 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 *LocationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o LocationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -139,9 +387,28 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -157,22 +424,40 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", + "site", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varLocationRequest := _LocationRequest{} err = json.Unmarshal(data, &varLocationRequest) @@ -188,7 +473,14 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +522,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 new file mode 100644 index 0000000000..012eb9e880 --- /dev/null +++ b/model_location_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the LocationStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LocationStatus{} + +// LocationStatus struct for LocationStatus +type LocationStatus struct { + Value *LocationStatusValue `json:"value,omitempty"` + Label *LocationStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LocationStatus LocationStatus + +// NewLocationStatus instantiates a new LocationStatus 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 NewLocationStatus() *LocationStatus { + this := LocationStatus{} + return &this +} + +// NewLocationStatusWithDefaults instantiates a new LocationStatus 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 NewLocationStatusWithDefaults() *LocationStatus { + this := LocationStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *LocationStatus) GetValue() LocationStatusValue { + if o == nil || IsNil(o.Value) { + var ret LocationStatusValue + 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 *LocationStatus) GetValueOk() (*LocationStatusValue, 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 *LocationStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given LocationStatusValue and assigns it to the Value field. +func (o *LocationStatus) SetValue(v LocationStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *LocationStatus) GetLabel() LocationStatusLabel { + if o == nil || IsNil(o.Label) { + var ret LocationStatusLabel + 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 *LocationStatus) GetLabelOk() (*LocationStatusLabel, 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 *LocationStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given LocationStatusLabel and assigns it to the Label field. +func (o *LocationStatus) SetLabel(v LocationStatusLabel) { + o.Label = &v +} + +func (o LocationStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LocationStatus) 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 *LocationStatus) UnmarshalJSON(data []byte) (err error) { + varLocationStatus := _LocationStatus{} + + err = json.Unmarshal(data, &varLocationStatus) + + if err != nil { + return err + } + + *o = LocationStatus(varLocationStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLocationStatus struct { + value *LocationStatus + isSet bool +} + +func (v NullableLocationStatus) Get() *LocationStatus { + return v.value +} + +func (v *NullableLocationStatus) Set(val *LocationStatus) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatus(val *LocationStatus) *NullableLocationStatus { + return &NullableLocationStatus{value: val, isSet: true} +} + +func (v NullableLocationStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_location_status_label.go b/model_location_status_label.go new file mode 100644 index 0000000000..aba57c98bb --- /dev/null +++ b/model_location_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// LocationStatusLabel the model 'LocationStatusLabel' +type LocationStatusLabel string + +// List of Location_status_label +const ( + LOCATIONSTATUSLABEL_PLANNED LocationStatusLabel = "Planned" + LOCATIONSTATUSLABEL_STAGING LocationStatusLabel = "Staging" + LOCATIONSTATUSLABEL_ACTIVE LocationStatusLabel = "Active" + LOCATIONSTATUSLABEL_DECOMMISSIONING LocationStatusLabel = "Decommissioning" + LOCATIONSTATUSLABEL_RETIRED LocationStatusLabel = "Retired" +) + +// All allowed values of LocationStatusLabel enum +var AllowedLocationStatusLabelEnumValues = []LocationStatusLabel{ + "Planned", + "Staging", + "Active", + "Decommissioning", + "Retired", +} + +func (v *LocationStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LocationStatusLabel(value) + for _, existing := range AllowedLocationStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LocationStatusLabel", value) +} + +// NewLocationStatusLabelFromValue returns a pointer to a valid LocationStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLocationStatusLabelFromValue(v string) (*LocationStatusLabel, error) { + ev := LocationStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LocationStatusLabel: valid values are %v", v, AllowedLocationStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LocationStatusLabel) IsValid() bool { + for _, existing := range AllowedLocationStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Location_status_label value +func (v LocationStatusLabel) Ptr() *LocationStatusLabel { + return &v +} + +type NullableLocationStatusLabel struct { + value *LocationStatusLabel + isSet bool +} + +func (v NullableLocationStatusLabel) Get() *LocationStatusLabel { + return v.value +} + +func (v *NullableLocationStatusLabel) Set(val *LocationStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatusLabel(val *LocationStatusLabel) *NullableLocationStatusLabel { + return &NullableLocationStatusLabel{value: val, isSet: true} +} + +func (v NullableLocationStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_location_status_value.go b/model_location_status_value.go new file mode 100644 index 0000000000..21ca71b889 --- /dev/null +++ b/model_location_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// LocationStatusValue * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +type LocationStatusValue string + +// List of Location_status_value +const ( + LOCATIONSTATUSVALUE_PLANNED LocationStatusValue = "planned" + LOCATIONSTATUSVALUE_STAGING LocationStatusValue = "staging" + LOCATIONSTATUSVALUE_ACTIVE LocationStatusValue = "active" + LOCATIONSTATUSVALUE_DECOMMISSIONING LocationStatusValue = "decommissioning" + LOCATIONSTATUSVALUE_RETIRED LocationStatusValue = "retired" +) + +// All allowed values of LocationStatusValue enum +var AllowedLocationStatusValueEnumValues = []LocationStatusValue{ + "planned", + "staging", + "active", + "decommissioning", + "retired", +} + +func (v *LocationStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LocationStatusValue(value) + for _, existing := range AllowedLocationStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LocationStatusValue", value) +} + +// NewLocationStatusValueFromValue returns a pointer to a valid LocationStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLocationStatusValueFromValue(v string) (*LocationStatusValue, error) { + ev := LocationStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LocationStatusValue: valid values are %v", v, AllowedLocationStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LocationStatusValue) IsValid() bool { + for _, existing := range AllowedLocationStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Location_status_value value +func (v LocationStatusValue) Ptr() *LocationStatusValue { + return &v +} + +type NullableLocationStatusValue struct { + value *LocationStatusValue + isSet bool +} + +func (v NullableLocationStatusValue) Get() *LocationStatusValue { + return v.value +} + +func (v *NullableLocationStatusValue) Set(val *LocationStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatusValue(val *LocationStatusValue) *NullableLocationStatusValue { + return &NullableLocationStatusValue{value: val, isSet: true} +} + +func (v NullableLocationStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_mac_address.go b/model_mac_address.go new file mode 100644 index 0000000000..923ea15cc1 --- /dev/null +++ b/model_mac_address.go @@ -0,0 +1,688 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the MACAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MACAddress{} + +// MACAddress Adds support for custom fields and tags. +type MACAddress struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + MacAddress string `json:"mac_address"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + AssignedObject interface{} `json:"assigned_object,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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MACAddress MACAddress + +// NewMACAddress instantiates a new MACAddress 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 NewMACAddress(id int32, url string, display string, macAddress string) *MACAddress { + this := MACAddress{} + this.Id = id + this.Url = url + this.Display = display + this.MacAddress = macAddress + return &this +} + +// NewMACAddressWithDefaults instantiates a new MACAddress 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 NewMACAddressWithDefaults() *MACAddress { + this := MACAddress{} + return &this +} + +// GetId returns the Id field value +func (o *MACAddress) 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 *MACAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *MACAddress) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *MACAddress) 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 *MACAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *MACAddress) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *MACAddress) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MACAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *MACAddress) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *MACAddress) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *MACAddress) 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 *MACAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *MACAddress) SetDisplay(v string) { + o.Display = v +} + + +// GetMacAddress returns the MacAddress field value +func (o *MACAddress) GetMacAddress() string { + if o == nil { + var ret string + return ret + } + + return o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value +// and a boolean to check if the value has been set. +func (o *MACAddress) GetMacAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MacAddress, true +} + +// SetMacAddress sets field value +func (o *MACAddress) SetMacAddress(v string) { + o.MacAddress = v +} + + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MACAddress) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType 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 *MACAddress) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *MACAddress) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *MACAddress) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *MACAddress) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *MACAddress) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MACAddress) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId 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 *MACAddress) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *MACAddress) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *MACAddress) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *MACAddress) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *MACAddress) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetAssignedObject returns the AssignedObject field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MACAddress) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject 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 *MACAddress) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// HasAssignedObject returns a boolean if a field has been set. +func (o *MACAddress) HasAssignedObject() bool { + if o != nil && !IsNil(o.AssignedObject) { + return true + } + + return false +} + +// SetAssignedObject gets a reference to the given interface{} and assigns it to the AssignedObject field. +func (o *MACAddress) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *MACAddress) 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 *MACAddress) 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 *MACAddress) 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 *MACAddress) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *MACAddress) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MACAddress) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *MACAddress) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *MACAddress) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *MACAddress) 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 *MACAddress) 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 *MACAddress) 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 *MACAddress) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *MACAddress) 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 *MACAddress) 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 *MACAddress) 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 *MACAddress) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MACAddress) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *MACAddress) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *MACAddress) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *MACAddress) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *MACAddress) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *MACAddress) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MACAddress) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *MACAddress) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *MACAddress) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *MACAddress) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *MACAddress) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *MACAddress) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +func (o MACAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MACAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["mac_address"] = o.MacAddress + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MACAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "mac_address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varMACAddress := _MACAddress{} + + err = json.Unmarshal(data, &varMACAddress) + + if err != nil { + return err + } + + *o = MACAddress(varMACAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "mac_address") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMACAddress struct { + value *MACAddress + isSet bool +} + +func (v NullableMACAddress) Get() *MACAddress { + return v.value +} + +func (v *NullableMACAddress) Set(val *MACAddress) { + v.value = val + v.isSet = true +} + +func (v NullableMACAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableMACAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMACAddress(val *MACAddress) *NullableMACAddress { + return &NullableMACAddress{value: val, isSet: true} +} + +func (v NullableMACAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMACAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_mac_address_request.go b/model_mac_address_request.go new file mode 100644 index 0000000000..0b78713d68 --- /dev/null +++ b/model_mac_address_request.go @@ -0,0 +1,428 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the MACAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MACAddressRequest{} + +// MACAddressRequest Adds support for custom fields and tags. +type MACAddressRequest struct { + MacAddress string `json:"mac_address"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_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{} +} + +type _MACAddressRequest MACAddressRequest + +// NewMACAddressRequest instantiates a new MACAddressRequest 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 NewMACAddressRequest(macAddress string) *MACAddressRequest { + this := MACAddressRequest{} + this.MacAddress = macAddress + return &this +} + +// NewMACAddressRequestWithDefaults instantiates a new MACAddressRequest 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 NewMACAddressRequestWithDefaults() *MACAddressRequest { + this := MACAddressRequest{} + return &this +} + +// GetMacAddress returns the MacAddress field value +func (o *MACAddressRequest) GetMacAddress() string { + if o == nil { + var ret string + return ret + } + + return o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value +// and a boolean to check if the value has been set. +func (o *MACAddressRequest) GetMacAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MacAddress, true +} + +// SetMacAddress sets field value +func (o *MACAddressRequest) SetMacAddress(v string) { + o.MacAddress = v +} + + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MACAddressRequest) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType 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 *MACAddressRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *MACAddressRequest) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *MACAddressRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *MACAddressRequest) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *MACAddressRequest) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MACAddressRequest) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId 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 *MACAddressRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *MACAddressRequest) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *MACAddressRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *MACAddressRequest) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *MACAddressRequest) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *MACAddressRequest) 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 *MACAddressRequest) 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 *MACAddressRequest) 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 *MACAddressRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *MACAddressRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MACAddressRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *MACAddressRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *MACAddressRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *MACAddressRequest) 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 *MACAddressRequest) 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 *MACAddressRequest) 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 *MACAddressRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *MACAddressRequest) 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 *MACAddressRequest) 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 *MACAddressRequest) 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 *MACAddressRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o MACAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MACAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["mac_address"] = o.MacAddress + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MACAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "mac_address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varMACAddressRequest := _MACAddressRequest{} + + err = json.Unmarshal(data, &varMACAddressRequest) + + if err != nil { + return err + } + + *o = MACAddressRequest(varMACAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "mac_address") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMACAddressRequest struct { + value *MACAddressRequest + isSet bool +} + +func (v NullableMACAddressRequest) Get() *MACAddressRequest { + return v.value +} + +func (v *NullableMACAddressRequest) Set(val *MACAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMACAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMACAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMACAddressRequest(val *MACAddressRequest) *NullableMACAddressRequest { + return &NullableMACAddressRequest{value: val, isSet: true} +} + +func (v NullableMACAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMACAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_manufacturer.go b/model_manufacturer.go index 6b8dcd9090..2c8bce187d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,13 +21,20 @@ 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"` - DevicetypeCount int64 `json:"devicetype_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` + PlatformCount int64 `json:"platform_count"` AdditionalProperties map[string]interface{} } @@ -36,14 +44,15 @@ type _Manufacturer Manufacturer // 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 NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64) *Manufacturer { +func NewManufacturer(id int32, url string, display string, name string, slug string, inventoryitemCount int64, platformCount int64) *Manufacturer { this := Manufacturer{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.DevicetypeCount = devicetypeCount + this.InventoryitemCount = inventoryitemCount + this.PlatformCount = platformCount return &this } @@ -79,6 +88,7 @@ func (o *Manufacturer) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Manufacturer) GetUrl() string { if o == nil { @@ -103,6 +113,39 @@ func (o *Manufacturer) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Manufacturer) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Manufacturer) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Manufacturer) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Manufacturer) GetDisplay() string { if o == nil { @@ -127,6 +170,7 @@ func (o *Manufacturer) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Manufacturer) GetName() string { if o == nil { @@ -151,6 +195,7 @@ func (o *Manufacturer) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Manufacturer) GetSlug() string { if o == nil { @@ -175,6 +220,7 @@ func (o *Manufacturer) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Manufacturer) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,32 +253,238 @@ func (o *Manufacturer) SetDescription(v string) { o.Description = &v } -// GetDevicetypeCount returns the DevicetypeCount field value +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Manufacturer) 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 *Manufacturer) 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 *Manufacturer) 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 *Manufacturer) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Manufacturer) 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 *Manufacturer) 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 *Manufacturer) 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 *Manufacturer) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Manufacturer) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Manufacturer) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Manufacturer) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Manufacturer) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Manufacturer) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Manufacturer) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Manufacturer) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Manufacturer) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Manufacturer) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Manufacturer) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Manufacturer) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Manufacturer) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetDevicetypeCount returns the DevicetypeCount field value if set, zero value otherwise. func (o *Manufacturer) GetDevicetypeCount() int64 { + if o == nil || IsNil(o.DevicetypeCount) { + var ret int64 + return ret + } + return *o.DevicetypeCount +} + +// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetDevicetypeCountOk() (*int64, bool) { + if o == nil || IsNil(o.DevicetypeCount) { + return nil, false + } + return o.DevicetypeCount, true +} + +// HasDevicetypeCount returns a boolean if a field has been set. +func (o *Manufacturer) HasDevicetypeCount() bool { + if o != nil && !IsNil(o.DevicetypeCount) { + return true + } + + return false +} + +// SetDevicetypeCount gets a reference to the given int64 and assigns it to the DevicetypeCount field. +func (o *Manufacturer) SetDevicetypeCount(v int64) { + o.DevicetypeCount = &v +} + +// GetInventoryitemCount returns the InventoryitemCount field value +func (o *Manufacturer) GetInventoryitemCount() int64 { if o == nil { var ret int64 return ret } - return o.DevicetypeCount + return o.InventoryitemCount } -// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value // and a boolean to check if the value has been set. -func (o *Manufacturer) GetDevicetypeCountOk() (*int64, bool) { +func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool) { if o == nil { return nil, false } - return &o.DevicetypeCount, true + return &o.InventoryitemCount, true } -// SetDevicetypeCount sets field value -func (o *Manufacturer) SetDevicetypeCount(v int64) { - o.DevicetypeCount = v +// SetInventoryitemCount sets field value +func (o *Manufacturer) SetInventoryitemCount(v int64) { + o.InventoryitemCount = v } + +// GetPlatformCount returns the PlatformCount field value +func (o *Manufacturer) GetPlatformCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PlatformCount +} + +// GetPlatformCountOk returns a tuple with the PlatformCount field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetPlatformCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PlatformCount, true +} + +// SetPlatformCount sets field value +func (o *Manufacturer) SetPlatformCount(v int64) { + o.PlatformCount = v +} + + func (o Manufacturer) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -243,13 +495,32 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["devicetype_count"] = o.DevicetypeCount + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.DevicetypeCount) { + toSerialize["devicetype_count"] = o.DevicetypeCount + } + toSerialize["inventoryitem_count"] = o.InventoryitemCount + toSerialize["platform_count"] = o.PlatformCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -268,23 +539,41 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "devicetype_count", + "inventoryitem_count", + "platform_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varManufacturer := _Manufacturer{} err = json.Unmarshal(data, &varManufacturer) @@ -300,11 +589,18 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "devicetype_count") + delete(additionalProperties, "inventoryitem_count") + delete(additionalProperties, "platform_count") o.AdditionalProperties = additionalProperties } @@ -346,3 +642,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 35e495df84..e02e3a7859 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,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"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -71,6 +73,7 @@ func (o *ManufacturerRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ManufacturerRequest) GetSlug() string { if o == nil { @@ -95,6 +98,7 @@ func (o *ManufacturerRequest) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ManufacturerRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +131,72 @@ func (o *ManufacturerRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ManufacturerRequest) 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 *ManufacturerRequest) 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 *ManufacturerRequest) 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 *ManufacturerRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ManufacturerRequest) 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 *ManufacturerRequest) 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 *ManufacturerRequest) 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 *ManufacturerRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ManufacturerRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -142,6 +210,12 @@ func (o ManufacturerRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +233,37 @@ func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varManufacturerRequest := _ManufacturerRequest{} err = json.Unmarshal(data, &varManufacturerRequest) @@ -189,6 +280,8 @@ func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +323,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 7154265d7d..40b0114916 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,23 @@ 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 Device `json:"device"` - ModuleBay NestedModuleBay `json:"module_bay"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` + ModuleType BriefModuleType `json:"module_type"` + Status *InventoryItemStatus `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -34,13 +47,14 @@ type _Module Module // 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 NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay) *Module { +func NewModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType) *Module { this := Module{} this.Id = id this.Url = url this.Display = display this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType return &this } @@ -76,6 +90,7 @@ func (o *Module) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Module) GetUrl() string { if o == nil { @@ -100,6 +115,39 @@ func (o *Module) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Module) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Module) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Module) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Module) GetDisplay() string { if o == nil { @@ -124,10 +172,11 @@ func (o *Module) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *Module) GetDevice() Device { +func (o *Module) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -136,7 +185,7 @@ func (o *Module) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Module) GetDeviceOk() (*Device, bool) { +func (o *Module) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -144,10 +193,11 @@ func (o *Module) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Module) SetDevice(v Device) { +func (o *Module) SetDevice(v BriefDevice) { o.Device = v } + // GetModuleBay returns the ModuleBay field value func (o *Module) GetModuleBay() NestedModuleBay { if o == nil { @@ -172,8 +222,352 @@ func (o *Module) SetModuleBay(v NestedModuleBay) { o.ModuleBay = v } + +// GetModuleType returns the ModuleType field value +func (o *Module) GetModuleType() BriefModuleType { + if o == nil { + var ret BriefModuleType + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *Module) SetModuleType(v BriefModuleType) { + o.ModuleType = v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Module) GetStatus() InventoryItemStatus { + if o == nil || IsNil(o.Status) { + var ret InventoryItemStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetStatusOk() (*InventoryItemStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Module) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given InventoryItemStatus and assigns it to the Status field. +func (o *Module) SetStatus(v InventoryItemStatus) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Module) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Module) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Module) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Module) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag 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 *Module) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Module) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +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) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Module) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Module) 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 *Module) 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 *Module) 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 *Module) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Module) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Module) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Module) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Module) 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 *Module) 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 *Module) 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 *Module) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Module) 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 *Module) 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 *Module) 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 *Module) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Module) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Module) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Module) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Module) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Module) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Module) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Module) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Module) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Module) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Module) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Module) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Module) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o Module) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -184,9 +578,40 @@ func (o Module) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -205,22 +630,40 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { "display", "device", "module_bay", + "module_type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModule := _Module{} err = json.Unmarshal(data, &varModule) @@ -236,9 +679,20 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -280,3 +734,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 3f883cc159..8e470bd59e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ModuleBay type satisfies the MappedNullable interface at compile time @@ -21,21 +21,23 @@ 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 Device `json:"device"` - Name string `json:"name"` - InstalledModule NullableModule `json:"installed_module,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` + InstalledModule NullableBriefModule `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,15 +47,13 @@ type _ModuleBay ModuleBay // 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 NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { +func NewModuleBay(id int32, url string, display string, device BriefDevice, name string) *ModuleBay { this := ModuleBay{} this.Id = id this.Url = url this.Display = display this.Device = device this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -89,6 +89,7 @@ func (o *ModuleBay) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ModuleBay) GetUrl() string { if o == nil { @@ -113,6 +114,39 @@ func (o *ModuleBay) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ModuleBay) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleBay) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ModuleBay) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ModuleBay) GetDisplay() string { if o == nil { @@ -137,10 +171,11 @@ func (o *ModuleBay) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *ModuleBay) GetDevice() Device { +func (o *ModuleBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -149,7 +184,7 @@ func (o *ModuleBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBay) GetDeviceOk() (*Device, bool) { +func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -157,10 +192,53 @@ func (o *ModuleBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ModuleBay) SetDevice(v Device) { +func (o *ModuleBay) SetDevice(v BriefDevice) { o.Device = v } + +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBay) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module 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 *ModuleBay) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBay) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ModuleBay) SetModule(v BriefModule) { + o.Module.Set(&v) +} +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBay) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBay) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBay) GetName() string { if o == nil { @@ -185,10 +263,11 @@ func (o *ModuleBay) SetName(v string) { o.Name = v } + // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBay) GetInstalledModule() Module { +func (o *ModuleBay) GetInstalledModule() BriefModule { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret Module + var ret BriefModule return ret } return *o.InstalledModule.Get() @@ -197,7 +276,7 @@ func (o *ModuleBay) GetInstalledModule() Module { // GetInstalledModuleOk returns a tuple with the InstalledModule 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 *ModuleBay) GetInstalledModuleOk() (*Module, bool) { +func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -213,11 +292,10 @@ func (o *ModuleBay) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModule and assigns it to the InstalledModule field. -func (o *ModuleBay) SetInstalledModule(v Module) { +// SetInstalledModule gets a reference to the given NullableBriefModule and assigns it to the InstalledModule field. +func (o *ModuleBay) SetInstalledModule(v BriefModule) { o.InstalledModule.Set(&v) } - // SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil func (o *ModuleBay) SetInstalledModuleNil() { o.InstalledModule.Set(nil) @@ -388,18 +466,16 @@ func (o *ModuleBay) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ModuleBay) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ModuleBay) GetCreatedOk() (*time.Time, bool) { @@ -409,23 +485,39 @@ func (o *ModuleBay) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ModuleBay) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ModuleBay) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ModuleBay) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ModuleBay) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ModuleBay) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ModuleBay) GetLastUpdatedOk() (*time.Time, bool) { @@ -435,13 +527,31 @@ func (o *ModuleBay) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ModuleBay) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ModuleBay) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ModuleBay) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ModuleBay) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ModuleBay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -452,8 +562,14 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -473,8 +589,12 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -493,24 +613,39 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { "display", "device", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModuleBay := _ModuleBay{} err = json.Unmarshal(data, &varModuleBay) @@ -526,8 +661,10 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") @@ -578,3 +715,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 deleted file mode 100644 index dcfeb6bd7d..0000000000 --- a/model_module_bay_nested_module.go +++ /dev/null @@ -1,261 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// checks if the ModuleBayNestedModule type satisfies the MappedNullable interface at compile time -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"` - AdditionalProperties map[string]interface{} -} - -type _ModuleBayNestedModule ModuleBayNestedModule - -// NewModuleBayNestedModule instantiates a new ModuleBayNestedModule 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 NewModuleBayNestedModule(id int32, url string, display string) *ModuleBayNestedModule { - this := ModuleBayNestedModule{} - this.Id = id - this.Url = url - this.Display = display - return &this -} - -// NewModuleBayNestedModuleWithDefaults instantiates a new ModuleBayNestedModule 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 NewModuleBayNestedModuleWithDefaults() *ModuleBayNestedModule { - this := ModuleBayNestedModule{} - return &this -} - -// GetId returns the Id field value -func (o *ModuleBayNestedModule) 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 *ModuleBayNestedModule) GetIdOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *ModuleBayNestedModule) SetId(v int32) { - o.Id = v -} - -// GetUrl returns the Url field value -func (o *ModuleBayNestedModule) 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 *ModuleBayNestedModule) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *ModuleBayNestedModule) SetUrl(v string) { - o.Url = v -} - -// GetDisplay returns the Display field value -func (o *ModuleBayNestedModule) 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 *ModuleBayNestedModule) GetDisplayOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Display, true -} - -// SetDisplay sets field value -func (o *ModuleBayNestedModule) SetDisplay(v string) { - o.Display = v -} - -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *ModuleBayNestedModule) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleBayNestedModule) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *ModuleBayNestedModule) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *ModuleBayNestedModule) SetSerial(v string) { - o.Serial = &v -} - -func (o ModuleBayNestedModule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ModuleBayNestedModule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["url"] = o.Url - toSerialize["display"] = o.Display - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ModuleBayNestedModule) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "url", - "display", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varModuleBayNestedModule := _ModuleBayNestedModule{} - - err = json.Unmarshal(data, &varModuleBayNestedModule) - - if err != nil { - return err - } - - *o = ModuleBayNestedModule(varModuleBayNestedModule) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "url") - delete(additionalProperties, "display") - delete(additionalProperties, "serial") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableModuleBayNestedModule struct { - value *ModuleBayNestedModule - isSet bool -} - -func (v NullableModuleBayNestedModule) Get() *ModuleBayNestedModule { - return v.value -} - -func (v *NullableModuleBayNestedModule) Set(val *ModuleBayNestedModule) { - v.value = val - v.isSet = true -} - -func (v NullableModuleBayNestedModule) IsSet() bool { - return v.isSet -} - -func (v *NullableModuleBayNestedModule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableModuleBayNestedModule(val *ModuleBayNestedModule) *NullableModuleBayNestedModule { - return &NullableModuleBayNestedModule{value: val, isSet: true} -} - -func (v NullableModuleBayNestedModule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -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 deleted file mode 100644 index 3d8d5c31db..0000000000 --- a/model_module_bay_nested_module_request.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" -) - -// checks if the ModuleBayNestedModuleRequest type satisfies the MappedNullable interface at compile time -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"` - AdditionalProperties map[string]interface{} -} - -type _ModuleBayNestedModuleRequest ModuleBayNestedModuleRequest - -// NewModuleBayNestedModuleRequest instantiates a new ModuleBayNestedModuleRequest 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 NewModuleBayNestedModuleRequest() *ModuleBayNestedModuleRequest { - this := ModuleBayNestedModuleRequest{} - return &this -} - -// NewModuleBayNestedModuleRequestWithDefaults instantiates a new ModuleBayNestedModuleRequest 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 NewModuleBayNestedModuleRequestWithDefaults() *ModuleBayNestedModuleRequest { - this := ModuleBayNestedModuleRequest{} - return &this -} - -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *ModuleBayNestedModuleRequest) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleBayNestedModuleRequest) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *ModuleBayNestedModuleRequest) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *ModuleBayNestedModuleRequest) SetSerial(v string) { - o.Serial = &v -} - -func (o ModuleBayNestedModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ModuleBayNestedModuleRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ModuleBayNestedModuleRequest) UnmarshalJSON(data []byte) (err error) { - varModuleBayNestedModuleRequest := _ModuleBayNestedModuleRequest{} - - err = json.Unmarshal(data, &varModuleBayNestedModuleRequest) - - if err != nil { - return err - } - - *o = ModuleBayNestedModuleRequest(varModuleBayNestedModuleRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "serial") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableModuleBayNestedModuleRequest struct { - value *ModuleBayNestedModuleRequest - isSet bool -} - -func (v NullableModuleBayNestedModuleRequest) Get() *ModuleBayNestedModuleRequest { - return v.value -} - -func (v *NullableModuleBayNestedModuleRequest) Set(val *ModuleBayNestedModuleRequest) { - v.value = val - v.isSet = true -} - -func (v NullableModuleBayNestedModuleRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableModuleBayNestedModuleRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableModuleBayNestedModuleRequest(val *ModuleBayNestedModuleRequest) *NullableModuleBayNestedModuleRequest { - return &NullableModuleBayNestedModuleRequest{value: val, isSet: true} -} - -func (v NullableModuleBayNestedModuleRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -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 7fb1ba15c8..e984edbcdb 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,17 @@ var _ MappedNullable = &ModuleBayRequest{} // ModuleBayRequest Adds support for custom fields and tags. type ModuleBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + InstalledModule NullableBriefModuleRequest `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{} } @@ -39,7 +40,7 @@ type _ModuleBayRequest ModuleBayRequest // 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 NewModuleBayRequest(device DeviceRequest, name string) *ModuleBayRequest { +func NewModuleBayRequest(device BriefDeviceRequest, name string) *ModuleBayRequest { this := ModuleBayRequest{} this.Device = device this.Name = name @@ -55,9 +56,9 @@ func NewModuleBayRequestWithDefaults() *ModuleBayRequest { } // GetDevice returns the Device field value -func (o *ModuleBayRequest) GetDevice() DeviceRequest { +func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -66,7 +67,7 @@ func (o *ModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -74,10 +75,53 @@ func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleBayRequest) SetDevice(v DeviceRequest) { +func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module 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 *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBayRequest) GetName() string { if o == nil { @@ -102,10 +146,11 @@ func (o *ModuleBayRequest) SetName(v string) { o.Name = v } + // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { +func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -114,7 +159,7 @@ func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule 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 *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -130,11 +175,10 @@ func (o *ModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } - // SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil func (o *ModuleBayRequest) SetInstalledModuleNil() { o.InstalledModule.Set(nil) @@ -306,7 +350,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 } @@ -316,6 +360,9 @@ func (o ModuleBayRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -352,20 +399,37 @@ func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModuleBayRequest := _ModuleBayRequest{} err = json.Unmarshal(data, &varModuleBayRequest) @@ -380,6 +444,7 @@ func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") @@ -428,3 +493,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 114c363b6e..4129d54313 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ModuleBayTemplate type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ 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"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,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"` // 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,15 +44,12 @@ type _ModuleBayTemplate ModuleBayTemplate // 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 NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { +func NewModuleBayTemplate(id int32, url string, display string, name string) *ModuleBayTemplate { this := ModuleBayTemplate{} this.Id = id this.Url = url this.Display = display - this.DeviceType = deviceType this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -87,6 +85,7 @@ func (o *ModuleBayTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ModuleBayTemplate) GetUrl() string { if o == nil { @@ -111,6 +110,7 @@ func (o *ModuleBayTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *ModuleBayTemplate) GetDisplay() string { if o == nil { @@ -135,28 +135,89 @@ func (o *ModuleBayTemplate) SetDisplay(v string) { o.Display = v } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplate) GetDeviceType() DeviceType { - if o == nil { - var ret DeviceType + +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType 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 *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} - return o.DeviceType +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false } -// SetDeviceType sets field value -func (o *ModuleBayTemplate) SetDeviceType(v DeviceType) { - o.DeviceType = v +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -183,6 +244,7 @@ func (o *ModuleBayTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ModuleBayTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -279,18 +341,16 @@ func (o *ModuleBayTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ModuleBayTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ModuleBayTemplate) GetCreatedOk() (*time.Time, bool) { @@ -300,23 +360,39 @@ func (o *ModuleBayTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ModuleBayTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ModuleBayTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ModuleBayTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ModuleBayTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ModuleBayTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -326,13 +402,31 @@ func (o *ModuleBayTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ModuleBayTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ModuleBayTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ModuleBayTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ModuleBayTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -344,7 +438,12 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -355,8 +454,12 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -373,26 +476,40 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", - "device_type", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModuleBayTemplate := _ModuleBayTemplate{} err = json.Unmarshal(data, &varModuleBayTemplate) @@ -410,6 +527,7 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "url") delete(additionalProperties, "display") delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") @@ -457,3 +575,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 6e407360e3..df7441e441 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,15 @@ 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 DeviceTypeRequest `json:"device_type"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` // 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{} } @@ -37,9 +38,8 @@ type _ModuleBayTemplateRequest ModuleBayTemplateRequest // 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 NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string) *ModuleBayTemplateRequest { +func NewModuleBayTemplateRequest(name string) *ModuleBayTemplateRequest { this := ModuleBayTemplateRequest{} - this.DeviceType = deviceType this.Name = name return &this } @@ -52,28 +52,88 @@ func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest { return &this } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType 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 *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} - return o.DeviceType +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) } -// SetDeviceType sets field value -func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = v +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -100,6 +160,7 @@ func (o *ModuleBayTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *ModuleBayTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -197,7 +258,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 } @@ -206,7 +267,12 @@ func (o ModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -230,24 +296,40 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "device_type", "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModuleBayTemplateRequest := _ModuleBayTemplateRequest{} err = json.Unmarshal(data, &varModuleBayTemplateRequest) @@ -262,6 +344,7 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") @@ -307,3 +390,5 @@ func (v *NullableModuleBayTemplateRequest) 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 0cdc3bf195..da0744a971 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ModuleRequest{} // ModuleRequest Adds support for custom fields and tags. type ModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay NestedModuleBayRequest `json:"module_bay"` + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *InventoryItemStatusValue `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"` AdditionalProperties map[string]interface{} } @@ -31,10 +40,11 @@ type _ModuleRequest ModuleRequest // 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 NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest) *ModuleRequest { +func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest) *ModuleRequest { this := ModuleRequest{} this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType return &this } @@ -47,9 +57,9 @@ func NewModuleRequestWithDefaults() *ModuleRequest { } // GetDevice returns the Device field value -func (o *ModuleRequest) GetDevice() DeviceRequest { +func (o *ModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -58,7 +68,7 @@ func (o *ModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -66,10 +76,11 @@ func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleRequest) SetDevice(v DeviceRequest) { +func (o *ModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModuleBay returns the ModuleBay field value func (o *ModuleRequest) GetModuleBay() NestedModuleBayRequest { if o == nil { @@ -94,8 +105,268 @@ func (o *ModuleRequest) SetModuleBay(v NestedModuleBayRequest) { o.ModuleBay = v } + +// GetModuleType returns the ModuleType field value +func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil { + var ret BriefModuleTypeRequest + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType = v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ModuleRequest) GetStatus() InventoryItemStatusValue { + if o == nil || IsNil(o.Status) { + var ret InventoryItemStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ModuleRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *ModuleRequest) SetStatus(v InventoryItemStatusValue) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *ModuleRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *ModuleRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *ModuleRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag 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 *ModuleRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *ModuleRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +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) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *ModuleRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModuleRequest) 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 *ModuleRequest) 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 *ModuleRequest) 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 *ModuleRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleRequest) 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 *ModuleRequest) 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 *ModuleRequest) 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 *ModuleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleRequest) 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 *ModuleRequest) 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 *ModuleRequest) 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 *ModuleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -106,6 +377,28 @@ func (o ModuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -121,22 +414,40 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "device", "module_bay", + "module_type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModuleRequest := _ModuleRequest{} err = json.Unmarshal(data, &varModuleRequest) @@ -152,6 +463,14 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -193,3 +512,5 @@ func (v *NullableModuleRequest) 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 4b14e77195..e0485b527c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,23 @@ 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"` - Manufacturer Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeAirflow `json:"airflow,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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,7 +47,7 @@ type _ModuleType ModuleType // 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 NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string) *ModuleType { +func NewModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string) *ModuleType { this := ModuleType{} this.Id = id this.Url = url @@ -77,6 +89,7 @@ func (o *ModuleType) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ModuleType) GetUrl() string { if o == nil { @@ -101,6 +114,39 @@ func (o *ModuleType) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ModuleType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ModuleType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ModuleType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ModuleType) GetDisplay() string { if o == nil { @@ -125,10 +171,11 @@ func (o *ModuleType) SetDisplay(v string) { o.Display = v } + // GetManufacturer returns the Manufacturer field value -func (o *ModuleType) GetManufacturer() Manufacturer { +func (o *ModuleType) GetManufacturer() BriefManufacturer { if o == nil { - var ret Manufacturer + var ret BriefManufacturer return ret } @@ -137,7 +184,7 @@ func (o *ModuleType) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -145,10 +192,11 @@ func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { } // SetManufacturer sets field value -func (o *ModuleType) SetManufacturer(v Manufacturer) { +func (o *ModuleType) SetManufacturer(v BriefManufacturer) { o.Manufacturer = v } + // GetModel returns the Model field value func (o *ModuleType) GetModel() string { if o == nil { @@ -173,6 +221,165 @@ func (o *ModuleType) SetModel(v string) { o.Model = v } + +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetAirflow() ModuleTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeAirflow and assigns it to the Airflow field. +func (o *ModuleType) SetAirflow(v ModuleTypeAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleType) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *ModuleType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +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) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +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) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,8 +412,188 @@ func (o *ModuleType) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleType) 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 *ModuleType) 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 *ModuleType) 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 *ModuleType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleType) 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 *ModuleType) 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 *ModuleType) 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 *ModuleType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *ModuleType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *ModuleType) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *ModuleType) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ModuleType) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ModuleType) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ModuleType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *ModuleType) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *ModuleType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ModuleType) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ModuleType) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o ModuleType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,12 +604,42 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -243,20 +660,37 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { "model", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModuleType := _ModuleType{} err = json.Unmarshal(data, &varModuleType) @@ -272,10 +706,20 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -317,3 +761,5 @@ func (v *NullableModuleType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_type_airflow.go b/model_module_type_airflow.go new file mode 100644 index 0000000000..632ff510c7 --- /dev/null +++ b/model_module_type_airflow.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ModuleTypeAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModuleTypeAirflow{} + +// ModuleTypeAirflow struct for ModuleTypeAirflow +type ModuleTypeAirflow struct { + Value *ModuleTypeAirflowValue `json:"value,omitempty"` + Label *ModuleTypeAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModuleTypeAirflow ModuleTypeAirflow + +// NewModuleTypeAirflow instantiates a new ModuleTypeAirflow 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 NewModuleTypeAirflow() *ModuleTypeAirflow { + this := ModuleTypeAirflow{} + return &this +} + +// NewModuleTypeAirflowWithDefaults instantiates a new ModuleTypeAirflow 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 NewModuleTypeAirflowWithDefaults() *ModuleTypeAirflow { + this := ModuleTypeAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModuleTypeAirflow) GetValue() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Value) { + var ret ModuleTypeAirflowValue + 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 *ModuleTypeAirflow) GetValueOk() (*ModuleTypeAirflowValue, 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 *ModuleTypeAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ModuleTypeAirflowValue and assigns it to the Value field. +func (o *ModuleTypeAirflow) SetValue(v ModuleTypeAirflowValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ModuleTypeAirflow) GetLabel() ModuleTypeAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret ModuleTypeAirflowLabel + 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 *ModuleTypeAirflow) GetLabelOk() (*ModuleTypeAirflowLabel, 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 *ModuleTypeAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ModuleTypeAirflowLabel and assigns it to the Label field. +func (o *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel) { + o.Label = &v +} + +func (o ModuleTypeAirflow) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModuleTypeAirflow) 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 *ModuleTypeAirflow) UnmarshalJSON(data []byte) (err error) { + varModuleTypeAirflow := _ModuleTypeAirflow{} + + err = json.Unmarshal(data, &varModuleTypeAirflow) + + if err != nil { + return err + } + + *o = ModuleTypeAirflow(varModuleTypeAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModuleTypeAirflow struct { + value *ModuleTypeAirflow + isSet bool +} + +func (v NullableModuleTypeAirflow) Get() *ModuleTypeAirflow { + return v.value +} + +func (v *NullableModuleTypeAirflow) Set(val *ModuleTypeAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflow(val *ModuleTypeAirflow) *NullableModuleTypeAirflow { + return &NullableModuleTypeAirflow{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_module_type_airflow_label.go b/model_module_type_airflow_label.go new file mode 100644 index 0000000000..31cee0b371 --- /dev/null +++ b/model_module_type_airflow_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeAirflowLabel the model 'ModuleTypeAirflowLabel' +type ModuleTypeAirflowLabel string + +// List of ModuleType_airflow_label +const ( + MODULETYPEAIRFLOWLABEL_FRONT_TO_REAR ModuleTypeAirflowLabel = "Front to rear" + MODULETYPEAIRFLOWLABEL_REAR_TO_FRONT ModuleTypeAirflowLabel = "Rear to front" + MODULETYPEAIRFLOWLABEL_LEFT_TO_RIGHT ModuleTypeAirflowLabel = "Left to right" + MODULETYPEAIRFLOWLABEL_RIGHT_TO_LEFT ModuleTypeAirflowLabel = "Right to left" + MODULETYPEAIRFLOWLABEL_SIDE_TO_REAR ModuleTypeAirflowLabel = "Side to rear" + MODULETYPEAIRFLOWLABEL_PASSIVE ModuleTypeAirflowLabel = "Passive" +) + +// All allowed values of ModuleTypeAirflowLabel enum +var AllowedModuleTypeAirflowLabelEnumValues = []ModuleTypeAirflowLabel{ + "Front to rear", + "Rear to front", + "Left to right", + "Right to left", + "Side to rear", + "Passive", +} + +func (v *ModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeAirflowLabel(value) + for _, existing := range AllowedModuleTypeAirflowLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeAirflowLabel", value) +} + +// NewModuleTypeAirflowLabelFromValue returns a pointer to a valid ModuleTypeAirflowLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeAirflowLabelFromValue(v string) (*ModuleTypeAirflowLabel, error) { + ev := ModuleTypeAirflowLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeAirflowLabel: valid values are %v", v, AllowedModuleTypeAirflowLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeAirflowLabel) IsValid() bool { + for _, existing := range AllowedModuleTypeAirflowLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleType_airflow_label value +func (v ModuleTypeAirflowLabel) Ptr() *ModuleTypeAirflowLabel { + return &v +} + +type NullableModuleTypeAirflowLabel struct { + value *ModuleTypeAirflowLabel + isSet bool +} + +func (v NullableModuleTypeAirflowLabel) Get() *ModuleTypeAirflowLabel { + return v.value +} + +func (v *NullableModuleTypeAirflowLabel) Set(val *ModuleTypeAirflowLabel) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflowLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflowLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflowLabel(val *ModuleTypeAirflowLabel) *NullableModuleTypeAirflowLabel { + return &NullableModuleTypeAirflowLabel{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflowLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_module_type_airflow_value.go b/model_module_type_airflow_value.go new file mode 100644 index 0000000000..19b6b94c68 --- /dev/null +++ b/model_module_type_airflow_value.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeAirflowValue * `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 +type ModuleTypeAirflowValue string + +// List of ModuleType_airflow_value +const ( + MODULETYPEAIRFLOWVALUE_FRONT_TO_REAR ModuleTypeAirflowValue = "front-to-rear" + MODULETYPEAIRFLOWVALUE_REAR_TO_FRONT ModuleTypeAirflowValue = "rear-to-front" + MODULETYPEAIRFLOWVALUE_LEFT_TO_RIGHT ModuleTypeAirflowValue = "left-to-right" + MODULETYPEAIRFLOWVALUE_RIGHT_TO_LEFT ModuleTypeAirflowValue = "right-to-left" + MODULETYPEAIRFLOWVALUE_SIDE_TO_REAR ModuleTypeAirflowValue = "side-to-rear" + MODULETYPEAIRFLOWVALUE_PASSIVE ModuleTypeAirflowValue = "passive" + MODULETYPEAIRFLOWVALUE_EMPTY ModuleTypeAirflowValue = "" +) + +// All allowed values of ModuleTypeAirflowValue enum +var AllowedModuleTypeAirflowValueEnumValues = []ModuleTypeAirflowValue{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "", +} + +func (v *ModuleTypeAirflowValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeAirflowValue(value) + for _, existing := range AllowedModuleTypeAirflowValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeAirflowValue", value) +} + +// NewModuleTypeAirflowValueFromValue returns a pointer to a valid ModuleTypeAirflowValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeAirflowValueFromValue(v string) (*ModuleTypeAirflowValue, error) { + ev := ModuleTypeAirflowValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeAirflowValue: valid values are %v", v, AllowedModuleTypeAirflowValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeAirflowValue) IsValid() bool { + for _, existing := range AllowedModuleTypeAirflowValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleType_airflow_value value +func (v ModuleTypeAirflowValue) Ptr() *ModuleTypeAirflowValue { + return &v +} + +type NullableModuleTypeAirflowValue struct { + value *ModuleTypeAirflowValue + isSet bool +} + +func (v NullableModuleTypeAirflowValue) Get() *ModuleTypeAirflowValue { + return v.value +} + +func (v *NullableModuleTypeAirflowValue) Set(val *ModuleTypeAirflowValue) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflowValue) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflowValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflowValue(val *ModuleTypeAirflowValue) *NullableModuleTypeAirflowValue { + return &NullableModuleTypeAirflowValue{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflowValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflowValue) 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 e247e64025..e8e9275f71 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &ModuleTypeRequest{} // ModuleTypeRequest Adds support for custom fields and tags. type ModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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{} } @@ -32,7 +40,7 @@ type _ModuleTypeRequest ModuleTypeRequest // 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 NewModuleTypeRequest(manufacturer ManufacturerRequest, model string) *ModuleTypeRequest { +func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *ModuleTypeRequest { this := ModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -48,9 +56,9 @@ func NewModuleTypeRequestWithDefaults() *ModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -59,7 +67,7 @@ func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -67,10 +75,11 @@ func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } + // GetModel returns the Model field value func (o *ModuleTypeRequest) GetModel() string { if o == nil { @@ -95,6 +104,165 @@ func (o *ModuleTypeRequest) SetModel(v string) { o.Model = v } + +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeRequestAirflow and assigns it to the Airflow field. +func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *ModuleTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +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) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *ModuleTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +295,104 @@ func (o *ModuleTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleTypeRequest) 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 *ModuleTypeRequest) 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 *ModuleTypeRequest) 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 *ModuleTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleTypeRequest) 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 *ModuleTypeRequest) 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 *ModuleTypeRequest) 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 *ModuleTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -139,9 +403,30 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +444,37 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { "model", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varModuleTypeRequest := _ModuleTypeRequest{} err = json.Unmarshal(data, &varModuleTypeRequest) @@ -188,7 +490,14 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +539,5 @@ func (v *NullableModuleTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_type_request_airflow.go b/model_module_type_request_airflow.go new file mode 100644 index 0000000000..1395401a37 --- /dev/null +++ b/model_module_type_request_airflow.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeRequestAirflow * `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 +type ModuleTypeRequestAirflow string + +// List of ModuleTypeRequest_airflow +const ( + MODULETYPEREQUESTAIRFLOW_FRONT_TO_REAR ModuleTypeRequestAirflow = "front-to-rear" + MODULETYPEREQUESTAIRFLOW_REAR_TO_FRONT ModuleTypeRequestAirflow = "rear-to-front" + MODULETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT ModuleTypeRequestAirflow = "left-to-right" + MODULETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT ModuleTypeRequestAirflow = "right-to-left" + MODULETYPEREQUESTAIRFLOW_SIDE_TO_REAR ModuleTypeRequestAirflow = "side-to-rear" + MODULETYPEREQUESTAIRFLOW_PASSIVE ModuleTypeRequestAirflow = "passive" + MODULETYPEREQUESTAIRFLOW_EMPTY ModuleTypeRequestAirflow = "" +) + +// All allowed values of ModuleTypeRequestAirflow enum +var AllowedModuleTypeRequestAirflowEnumValues = []ModuleTypeRequestAirflow{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "", +} + +func (v *ModuleTypeRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeRequestAirflow(value) + for _, existing := range AllowedModuleTypeRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeRequestAirflow", value) +} + +// NewModuleTypeRequestAirflowFromValue returns a pointer to a valid ModuleTypeRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeRequestAirflowFromValue(v string) (*ModuleTypeRequestAirflow, error) { + ev := ModuleTypeRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeRequestAirflow: valid values are %v", v, AllowedModuleTypeRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeRequestAirflow) IsValid() bool { + for _, existing := range AllowedModuleTypeRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleTypeRequest_airflow value +func (v ModuleTypeRequestAirflow) Ptr() *ModuleTypeRequestAirflow { + return &v +} + +type NullableModuleTypeRequestAirflow struct { + value *ModuleTypeRequestAirflow + isSet bool +} + +func (v NullableModuleTypeRequestAirflow) Get() *ModuleTypeRequestAirflow { + return v.value +} + +func (v *NullableModuleTypeRequestAirflow) Set(val *ModuleTypeRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeRequestAirflow(val *ModuleTypeRequestAirflow) *NullableModuleTypeRequestAirflow { + return &NullableModuleTypeRequestAirflow{value: val, isSet: true} +} + +func (v NullableModuleTypeRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeRequestAirflow) 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 88eb0f283e..bfb892c150 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -78,6 +79,7 @@ func (o *NestedContactGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedContactGroup) GetUrl() string { if o == nil { @@ -102,6 +104,39 @@ func (o *NestedContactGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedContactGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedContactGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedContactGroup) GetDisplay() string { if o == nil { @@ -126,6 +161,7 @@ func (o *NestedContactGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedContactGroup) GetName() string { if o == nil { @@ -150,6 +186,7 @@ func (o *NestedContactGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedContactGroup) GetSlug() string { if o == nil { @@ -174,6 +211,7 @@ func (o *NestedContactGroup) SetSlug(v string) { o.Slug = v } + // GetDepth returns the Depth field value func (o *NestedContactGroup) GetDepth() int32 { if o == nil { @@ -198,8 +236,9 @@ func (o *NestedContactGroup) SetDepth(v int32) { o.Depth = v } + func (o NestedContactGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -210,6 +249,9 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -235,20 +277,37 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedContactGroup := _NestedContactGroup{} err = json.Unmarshal(data, &varNestedContactGroup) @@ -264,6 +323,7 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -309,3 +369,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 f275f723db..fd80d2a8a9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` AdditionalProperties map[string]interface{} } @@ -70,6 +70,7 @@ func (o *NestedContactGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedContactGroupRequest) GetSlug() string { if o == nil { @@ -94,8 +95,9 @@ func (o *NestedContactGroupRequest) SetSlug(v string) { o.Slug = v } + func (o NestedContactGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,20 +125,37 @@ func (o *NestedContactGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedContactGroupRequest := _NestedContactGroupRequest{} err = json.Unmarshal(data, &varNestedContactGroupRequest) @@ -193,3 +212,5 @@ func (v *NullableNestedContactGroupRequest) 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 b37d25f5ed..f297406f9b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,6 +74,7 @@ func (o *NestedDevice) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedDevice) GetUrl() string { if o == nil { @@ -97,6 +99,39 @@ func (o *NestedDevice) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedDevice) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedDevice) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedDevice) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedDevice) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedDevice) GetDisplay() string { if o == nil { @@ -121,6 +156,7 @@ func (o *NestedDevice) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NestedDevice) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -153,7 +189,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) @@ -165,7 +200,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 } @@ -176,6 +211,9 @@ func (o NestedDevice) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -198,20 +236,37 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { "display", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedDevice := _NestedDevice{} err = json.Unmarshal(data, &varNestedDevice) @@ -227,6 +282,7 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties @@ -270,3 +326,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 3d4692d865..2e53037c2c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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 } @@ -162,3 +161,5 @@ func (v *NullableNestedDeviceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_group.go b/model_nested_group.go index 434d1679e3..1924d9db08 100644 --- a/model_nested_group.go +++ b/model_nested_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ var _ MappedNullable = &NestedGroup{} // NestedGroup 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 NestedGroup 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -74,6 +75,7 @@ func (o *NestedGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedGroup) GetUrl() string { if o == nil { @@ -98,6 +100,39 @@ func (o *NestedGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedGroup) GetDisplay() string { if o == nil { @@ -122,6 +157,7 @@ func (o *NestedGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedGroup) GetName() string { if o == nil { @@ -146,8 +182,9 @@ func (o *NestedGroup) SetName(v string) { o.Name = v } + func (o NestedGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,6 +195,9 @@ func (o NestedGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -179,20 +219,37 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedGroup := _NestedGroup{} err = json.Unmarshal(data, &varNestedGroup) @@ -208,6 +265,7 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties @@ -251,3 +309,5 @@ func (v *NullableNestedGroup) 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 fd6230adfd..2f95667d74 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,14 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + 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{} } @@ -79,6 +80,7 @@ func (o *NestedInterface) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedInterface) GetUrl() string { if o == nil { @@ -103,6 +105,39 @@ func (o *NestedInterface) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedInterface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedInterface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedInterface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedInterface) GetDisplay() string { if o == nil { @@ -127,6 +162,7 @@ func (o *NestedInterface) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value func (o *NestedInterface) GetDevice() NestedDevice { if o == nil { @@ -151,6 +187,7 @@ func (o *NestedInterface) SetDevice(v NestedDevice) { o.Device = v } + // GetName returns the Name field value func (o *NestedInterface) GetName() string { if o == nil { @@ -175,6 +212,7 @@ func (o *NestedInterface) SetName(v string) { o.Name = v } + // GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NestedInterface) GetCable() int32 { if o == nil || IsNil(o.Cable.Get()) { @@ -207,7 +245,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,8 +279,9 @@ func (o *NestedInterface) SetOccupied(v bool) { o.Occupied = v } + func (o NestedInterface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -254,6 +292,9 @@ func (o NestedInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -282,20 +323,37 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedInterface := _NestedInterface{} err = json.Unmarshal(data, &varNestedInterface) @@ -311,6 +369,7 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") @@ -357,3 +416,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 ddb108ba79..6b082533ea 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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{} } @@ -69,6 +69,7 @@ func (o *NestedInterfaceRequest) SetName(v string) { o.Name = v } + // GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NestedInterfaceRequest) GetCable() int32 { if o == nil || IsNil(o.Cable.Get()) { @@ -101,7 +102,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) @@ -113,7 +113,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 } @@ -142,20 +142,37 @@ func (o *NestedInterfaceRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedInterfaceRequest := _NestedInterfaceRequest{} err = json.Unmarshal(data, &varNestedInterfaceRequest) @@ -212,3 +229,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 af9322a663..d261ab0631 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,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"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -75,6 +75,7 @@ func (o *NestedInterfaceTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedInterfaceTemplate) GetUrl() string { if o == nil { @@ -99,6 +100,7 @@ func (o *NestedInterfaceTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *NestedInterfaceTemplate) GetDisplay() string { if o == nil { @@ -123,6 +125,7 @@ func (o *NestedInterfaceTemplate) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedInterfaceTemplate) GetName() string { if o == nil { @@ -147,8 +150,9 @@ func (o *NestedInterfaceTemplate) SetName(v string) { o.Name = v } + func (o NestedInterfaceTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -180,20 +184,37 @@ func (o *NestedInterfaceTemplate) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedInterfaceTemplate := _NestedInterfaceTemplate{} err = json.Unmarshal(data, &varNestedInterfaceTemplate) @@ -252,3 +273,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 db741a1b66..08ea3ba9ee 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ 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"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -69,8 +69,9 @@ func (o *NestedInterfaceTemplateRequest) SetName(v string) { o.Name = v } + func (o NestedInterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -96,20 +97,37 @@ func (o *NestedInterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error) "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedInterfaceTemplateRequest := _NestedInterfaceTemplateRequest{} err = json.Unmarshal(data, &varNestedInterfaceTemplateRequest) @@ -165,3 +183,5 @@ func (v *NullableNestedInterfaceTemplateRequest) 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 new file mode 100644 index 0000000000..7502a36c5b --- /dev/null +++ b/model_nested_ip_address.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedIPAddress type satisfies the MappedNullable interface at compile time +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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family int32 `json:"family"` + Address string `json:"address"` + AdditionalProperties map[string]interface{} +} + +type _NestedIPAddress NestedIPAddress + +// NewNestedIPAddress instantiates a new NestedIPAddress 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 NewNestedIPAddress(id int32, url string, display string, family int32, address string) *NestedIPAddress { + this := NestedIPAddress{} + this.Id = id + this.Url = url + this.Display = display + this.Family = family + this.Address = address + return &this +} + +// NewNestedIPAddressWithDefaults instantiates a new NestedIPAddress 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 NewNestedIPAddressWithDefaults() *NestedIPAddress { + this := NestedIPAddress{} + return &this +} + +// GetId returns the Id field value +func (o *NestedIPAddress) 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 *NestedIPAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedIPAddress) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *NestedIPAddress) 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 *NestedIPAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedIPAddress) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedIPAddress) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedIPAddress) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedIPAddress) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *NestedIPAddress) 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 *NestedIPAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedIPAddress) SetDisplay(v string) { + o.Display = v +} + + +// GetFamily returns the Family field value +func (o *NestedIPAddress) GetFamily() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Family +} + +// GetFamilyOk returns a tuple with the Family field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetFamilyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Family, true +} + +// SetFamily sets field value +func (o *NestedIPAddress) SetFamily(v int32) { + o.Family = v +} + + +// GetAddress returns the Address field value +func (o *NestedIPAddress) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *NestedIPAddress) SetAddress(v string) { + o.Address = v +} + + +func (o NestedIPAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedIPAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["family"] = o.Family + toSerialize["address"] = o.Address + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedIPAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "family", + "address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedIPAddress := _NestedIPAddress{} + + err = json.Unmarshal(data, &varNestedIPAddress) + + if err != nil { + return err + } + + *o = NestedIPAddress(varNestedIPAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "family") + delete(additionalProperties, "address") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedIPAddress struct { + value *NestedIPAddress + isSet bool +} + +func (v NullableNestedIPAddress) Get() *NestedIPAddress { + return v.value +} + +func (v *NullableNestedIPAddress) Set(val *NestedIPAddress) { + v.value = val + v.isSet = true +} + +func (v NullableNestedIPAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedIPAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedIPAddress(val *NestedIPAddress) *NullableNestedIPAddress { + return &NullableNestedIPAddress{value: val, isSet: true} +} + +func (v NullableNestedIPAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +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 new file mode 100644 index 0000000000..cc97e5da02 --- /dev/null +++ b/model_nested_ip_address_request.go @@ -0,0 +1,186 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedIPAddressRequest type satisfies the MappedNullable interface at compile time +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"` + AdditionalProperties map[string]interface{} +} + +type _NestedIPAddressRequest NestedIPAddressRequest + +// NewNestedIPAddressRequest instantiates a new NestedIPAddressRequest 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 NewNestedIPAddressRequest(address string) *NestedIPAddressRequest { + this := NestedIPAddressRequest{} + this.Address = address + return &this +} + +// NewNestedIPAddressRequestWithDefaults instantiates a new NestedIPAddressRequest 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 NewNestedIPAddressRequestWithDefaults() *NestedIPAddressRequest { + this := NestedIPAddressRequest{} + return &this +} + +// GetAddress returns the Address field value +func (o *NestedIPAddressRequest) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddressRequest) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *NestedIPAddressRequest) SetAddress(v string) { + o.Address = v +} + + +func (o NestedIPAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedIPAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedIPAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedIPAddressRequest := _NestedIPAddressRequest{} + + err = json.Unmarshal(data, &varNestedIPAddressRequest) + + if err != nil { + return err + } + + *o = NestedIPAddressRequest(varNestedIPAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedIPAddressRequest struct { + value *NestedIPAddressRequest + isSet bool +} + +func (v NullableNestedIPAddressRequest) Get() *NestedIPAddressRequest { + return v.value +} + +func (v *NullableNestedIPAddressRequest) Set(val *NestedIPAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedIPAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedIPAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedIPAddressRequest(val *NestedIPAddressRequest) *NullableNestedIPAddressRequest { + return &NullableNestedIPAddressRequest{value: val, isSet: true} +} + +func (v NullableNestedIPAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedIPAddressRequest) 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 new file mode 100644 index 0000000000..41d3f2e11d --- /dev/null +++ b/model_nested_location.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedLocation type satisfies the MappedNullable interface at compile time +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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _NestedLocation NestedLocation + +// NewNestedLocation instantiates a new NestedLocation 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 NewNestedLocation(id int32, url string, display string, name string, slug string, depth int32) *NestedLocation { + this := NestedLocation{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewNestedLocationWithDefaults instantiates a new NestedLocation 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 NewNestedLocationWithDefaults() *NestedLocation { + this := NestedLocation{} + return &this +} + +// GetId returns the Id field value +func (o *NestedLocation) 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 *NestedLocation) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedLocation) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *NestedLocation) 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 *NestedLocation) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedLocation) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedLocation) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedLocation) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedLocation) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *NestedLocation) 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 *NestedLocation) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedLocation) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *NestedLocation) 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 *NestedLocation) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedLocation) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *NestedLocation) 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 *NestedLocation) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedLocation) SetSlug(v string) { + o.Slug = v +} + + +// GetDepth returns the Depth field value +func (o *NestedLocation) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *NestedLocation) SetDepth(v int32) { + o.Depth = v +} + + +func (o NestedLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedLocation := _NestedLocation{} + + err = json.Unmarshal(data, &varNestedLocation) + + if err != nil { + return err + } + + *o = NestedLocation(varNestedLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedLocation struct { + value *NestedLocation + isSet bool +} + +func (v NullableNestedLocation) Get() *NestedLocation { + return v.value +} + +func (v *NullableNestedLocation) Set(val *NestedLocation) { + v.value = val + v.isSet = true +} + +func (v NullableNestedLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedLocation(val *NestedLocation) *NullableNestedLocation { + return &NullableNestedLocation{value: val, isSet: true} +} + +func (v NullableNestedLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +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 new file mode 100644 index 0000000000..aff5d2ddb5 --- /dev/null +++ b/model_nested_location_request.go @@ -0,0 +1,216 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedLocationRequest type satisfies the MappedNullable interface at compile time +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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + AdditionalProperties map[string]interface{} +} + +type _NestedLocationRequest NestedLocationRequest + +// NewNestedLocationRequest instantiates a new NestedLocationRequest 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 NewNestedLocationRequest(name string, slug string) *NestedLocationRequest { + this := NestedLocationRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewNestedLocationRequestWithDefaults instantiates a new NestedLocationRequest 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 NewNestedLocationRequestWithDefaults() *NestedLocationRequest { + this := NestedLocationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *NestedLocationRequest) 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 *NestedLocationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedLocationRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *NestedLocationRequest) 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 *NestedLocationRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedLocationRequest) SetSlug(v string) { + o.Slug = v +} + + +func (o NestedLocationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedLocationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedLocationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedLocationRequest := _NestedLocationRequest{} + + err = json.Unmarshal(data, &varNestedLocationRequest) + + if err != nil { + return err + } + + *o = NestedLocationRequest(varNestedLocationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedLocationRequest struct { + value *NestedLocationRequest + isSet bool +} + +func (v NullableNestedLocationRequest) Get() *NestedLocationRequest { + return v.value +} + +func (v *NullableNestedLocationRequest) Set(val *NestedLocationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedLocationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedLocationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedLocationRequest(val *NestedLocationRequest) *NullableNestedLocationRequest { + return &NullableNestedLocationRequest{value: val, isSet: true} +} + +func (v NullableNestedLocationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedLocationRequest) 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 c217493c73..a1125343f9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,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"` - InstalledModule NullableModuleBayNestedModule `json:"installed_module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -75,6 +75,7 @@ func (o *NestedModuleBay) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedModuleBay) GetUrl() string { if o == nil { @@ -99,72 +100,63 @@ func (o *NestedModuleBay) SetUrl(v string) { o.Url = v } -// GetDisplay returns the Display field value -func (o *NestedModuleBay) GetDisplay() string { - if o == nil { + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedModuleBay) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.Display + return *o.DisplayUrl } -// GetDisplayOk returns a tuple with the Display field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { - if o == nil { +func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.Display, true + return o.DisplayUrl, true } -// SetDisplay sets field value -func (o *NestedModuleBay) SetDisplay(v string) { - o.Display = v +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedModuleBay) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = &v } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModule +// GetDisplay returns the Display field value +func (o *NestedModuleBay) GetDisplay() string { + if o == nil { + var ret string return ret } - return *o.InstalledModule.Get() + + return o.Display } -// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise +// GetDisplayOk returns a tuple with the Display 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 *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool) { +func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { if o == nil { return nil, false } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBay) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModule and assigns it to the InstalledModule field. -func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule) { - o.InstalledModule.Set(&v) + return &o.Display, true } -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBay) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) +// SetDisplay sets field value +func (o *NestedModuleBay) SetDisplay(v string) { + o.Display = v } -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBay) UnsetInstalledModule() { - o.InstalledModule.Unset() -} // GetName returns the Name field value func (o *NestedModuleBay) GetName() string { @@ -190,8 +182,9 @@ func (o *NestedModuleBay) SetName(v string) { o.Name = v } + func (o NestedModuleBay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -202,10 +195,10 @@ func (o NestedModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display"] = o.Display - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl } + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -226,20 +219,37 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedModuleBay := _NestedModuleBay{} err = json.Unmarshal(data, &varNestedModuleBay) @@ -255,8 +265,8 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } @@ -299,3 +309,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 cda6e8c0c2..b6e7e0e9cc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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 { - InstalledModule NullableModuleBayNestedModuleRequest `json:"installed_module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -45,49 +44,6 @@ func NewNestedModuleBayRequestWithDefaults() *NestedModuleBayRequest { return &this } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModuleRequest - return ret - } - return *o.InstalledModule.Get() -} - -// GetInstalledModuleOk returns a tuple with the InstalledModule 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 *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool) { - if o == nil { - return nil, false - } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBayRequest) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModuleRequest and assigns it to the InstalledModule field. -func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest) { - o.InstalledModule.Set(&v) -} - -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBayRequest) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) -} - -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBayRequest) UnsetInstalledModule() { - o.InstalledModule.Unset() -} - // GetName returns the Name field value func (o *NestedModuleBayRequest) GetName() string { if o == nil { @@ -112,8 +68,9 @@ func (o *NestedModuleBayRequest) SetName(v string) { o.Name = v } + func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,9 +79,6 @@ func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) { func (o NestedModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() - } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -142,20 +96,37 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedModuleBayRequest := _NestedModuleBayRequest{} err = json.Unmarshal(data, &varNestedModuleBayRequest) @@ -169,7 +140,6 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } @@ -212,3 +182,5 @@ func (v *NullableNestedModuleBayRequest) 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 new file mode 100644 index 0000000000..ed27841304 --- /dev/null +++ b/model_nested_provider_account.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedProviderAccount type satisfies the MappedNullable interface at compile time +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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + AdditionalProperties map[string]interface{} +} + +type _NestedProviderAccount NestedProviderAccount + +// NewNestedProviderAccount instantiates a new NestedProviderAccount 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 NewNestedProviderAccount(id int32, url string, display string, account string) *NestedProviderAccount { + this := NestedProviderAccount{} + this.Id = id + this.Url = url + this.Display = display + this.Account = account + return &this +} + +// NewNestedProviderAccountWithDefaults instantiates a new NestedProviderAccount 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 NewNestedProviderAccountWithDefaults() *NestedProviderAccount { + this := NestedProviderAccount{} + return &this +} + +// GetId returns the Id field value +func (o *NestedProviderAccount) 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 *NestedProviderAccount) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedProviderAccount) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *NestedProviderAccount) 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 *NestedProviderAccount) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedProviderAccount) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedProviderAccount) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedProviderAccount) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedProviderAccount) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *NestedProviderAccount) 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 *NestedProviderAccount) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedProviderAccount) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value if set, zero value otherwise. +func (o *NestedProviderAccount) 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 *NestedProviderAccount) 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 *NestedProviderAccount) 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 *NestedProviderAccount) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *NestedProviderAccount) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *NestedProviderAccount) SetAccount(v string) { + o.Account = v +} + + +func (o NestedProviderAccount) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedProviderAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedProviderAccount) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "account", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedProviderAccount := _NestedProviderAccount{} + + err = json.Unmarshal(data, &varNestedProviderAccount) + + if err != nil { + return err + } + + *o = NestedProviderAccount(varNestedProviderAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "account") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedProviderAccount struct { + value *NestedProviderAccount + isSet bool +} + +func (v NullableNestedProviderAccount) Get() *NestedProviderAccount { + return v.value +} + +func (v *NullableNestedProviderAccount) Set(val *NestedProviderAccount) { + v.value = val + v.isSet = true +} + +func (v NullableNestedProviderAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedProviderAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedProviderAccount(val *NestedProviderAccount) *NullableNestedProviderAccount { + return &NullableNestedProviderAccount{value: val, isSet: true} +} + +func (v NullableNestedProviderAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedProviderAccount) 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 4282f5dd65..b1efa5f382 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -78,6 +79,7 @@ func (o *NestedRegion) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedRegion) GetUrl() string { if o == nil { @@ -102,6 +104,39 @@ func (o *NestedRegion) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedRegion) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedRegion) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedRegion) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedRegion) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedRegion) GetDisplay() string { if o == nil { @@ -126,6 +161,7 @@ func (o *NestedRegion) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedRegion) GetName() string { if o == nil { @@ -150,6 +186,7 @@ func (o *NestedRegion) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedRegion) GetSlug() string { if o == nil { @@ -174,6 +211,7 @@ func (o *NestedRegion) SetSlug(v string) { o.Slug = v } + // GetDepth returns the Depth field value func (o *NestedRegion) GetDepth() int32 { if o == nil { @@ -198,8 +236,9 @@ func (o *NestedRegion) SetDepth(v int32) { o.Depth = v } + func (o NestedRegion) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -210,6 +249,9 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -235,20 +277,37 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedRegion := _NestedRegion{} err = json.Unmarshal(data, &varNestedRegion) @@ -264,6 +323,7 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -309,3 +369,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 945e3f6506..45a8e1ed88 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` AdditionalProperties map[string]interface{} } @@ -70,6 +70,7 @@ func (o *NestedRegionRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedRegionRequest) GetSlug() string { if o == nil { @@ -94,8 +95,9 @@ func (o *NestedRegionRequest) SetSlug(v string) { o.Slug = v } + func (o NestedRegionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,20 +125,37 @@ func (o *NestedRegionRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedRegionRequest := _NestedRegionRequest{} err = json.Unmarshal(data, &varNestedRegionRequest) @@ -193,3 +212,5 @@ func (v *NullableNestedRegionRequest) 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 1b288b1682..829a553c79 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -78,6 +79,7 @@ func (o *NestedSiteGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedSiteGroup) GetUrl() string { if o == nil { @@ -102,6 +104,39 @@ func (o *NestedSiteGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedSiteGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedSiteGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedSiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedSiteGroup) GetDisplay() string { if o == nil { @@ -126,6 +161,7 @@ func (o *NestedSiteGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedSiteGroup) GetName() string { if o == nil { @@ -150,6 +186,7 @@ func (o *NestedSiteGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedSiteGroup) GetSlug() string { if o == nil { @@ -174,6 +211,7 @@ func (o *NestedSiteGroup) SetSlug(v string) { o.Slug = v } + // GetDepth returns the Depth field value func (o *NestedSiteGroup) GetDepth() int32 { if o == nil { @@ -198,8 +236,9 @@ func (o *NestedSiteGroup) SetDepth(v int32) { o.Depth = v } + func (o NestedSiteGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -210,6 +249,9 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -235,20 +277,37 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedSiteGroup := _NestedSiteGroup{} err = json.Unmarshal(data, &varNestedSiteGroup) @@ -264,6 +323,7 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -309,3 +369,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 e0fbe632a6..0cfd706121 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` AdditionalProperties map[string]interface{} } @@ -70,6 +70,7 @@ func (o *NestedSiteGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedSiteGroupRequest) GetSlug() string { if o == nil { @@ -94,8 +95,9 @@ func (o *NestedSiteGroupRequest) SetSlug(v string) { o.Slug = v } + func (o NestedSiteGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,20 +125,37 @@ func (o *NestedSiteGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedSiteGroupRequest := _NestedSiteGroupRequest{} err = json.Unmarshal(data, &varNestedSiteGroupRequest) @@ -193,3 +212,5 @@ func (v *NullableNestedSiteGroupRequest) 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 f03a0a999c..f1264cfb19 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` AdditionalProperties map[string]interface{} } @@ -77,6 +78,7 @@ func (o *NestedTag) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedTag) GetUrl() string { if o == nil { @@ -101,6 +103,39 @@ func (o *NestedTag) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedTag) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedTag) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedTag) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedTag) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedTag) GetDisplay() string { if o == nil { @@ -125,6 +160,7 @@ func (o *NestedTag) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedTag) GetName() string { if o == nil { @@ -149,6 +185,7 @@ func (o *NestedTag) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedTag) GetSlug() string { if o == nil { @@ -173,6 +210,7 @@ func (o *NestedTag) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *NestedTag) GetColor() string { if o == nil || IsNil(o.Color) { @@ -206,7 +244,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 } @@ -217,6 +255,9 @@ func (o NestedTag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -243,20 +284,37 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedTag := _NestedTag{} err = json.Unmarshal(data, &varNestedTag) @@ -272,6 +330,7 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -317,3 +376,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 f0d7d61b44..9170cb2684 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,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" validate:"regexp=^[-\\\\w]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` AdditionalProperties map[string]interface{} } @@ -71,6 +71,7 @@ func (o *NestedTagRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedTagRequest) GetSlug() string { if o == nil { @@ -95,6 +96,7 @@ func (o *NestedTagRequest) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *NestedTagRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -128,7 +130,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 } @@ -159,20 +161,37 @@ func (o *NestedTagRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedTagRequest := _NestedTagRequest{} err = json.Unmarshal(data, &varNestedTagRequest) @@ -230,3 +249,5 @@ func (v *NullableNestedTagRequest) 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 a157ee354c..c96ccf0d94 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -78,6 +79,7 @@ func (o *NestedTenantGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedTenantGroup) GetUrl() string { if o == nil { @@ -102,6 +104,39 @@ func (o *NestedTenantGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedTenantGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedTenantGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedTenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedTenantGroup) GetDisplay() string { if o == nil { @@ -126,6 +161,7 @@ func (o *NestedTenantGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedTenantGroup) GetName() string { if o == nil { @@ -150,6 +186,7 @@ func (o *NestedTenantGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedTenantGroup) GetSlug() string { if o == nil { @@ -174,6 +211,7 @@ func (o *NestedTenantGroup) SetSlug(v string) { o.Slug = v } + // GetDepth returns the Depth field value func (o *NestedTenantGroup) GetDepth() int32 { if o == nil { @@ -198,8 +236,9 @@ func (o *NestedTenantGroup) SetDepth(v int32) { o.Depth = v } + func (o NestedTenantGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -210,6 +249,9 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -235,20 +277,37 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedTenantGroup := _NestedTenantGroup{} err = json.Unmarshal(data, &varNestedTenantGroup) @@ -264,6 +323,7 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -309,3 +369,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 c5ecbf890e..ba7d003d38 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` AdditionalProperties map[string]interface{} } @@ -70,6 +70,7 @@ func (o *NestedTenantGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedTenantGroupRequest) GetSlug() string { if o == nil { @@ -94,8 +95,9 @@ func (o *NestedTenantGroupRequest) SetSlug(v string) { o.Slug = v } + func (o NestedTenantGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,20 +125,37 @@ func (o *NestedTenantGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedTenantGroupRequest := _NestedTenantGroupRequest{} err = json.Unmarshal(data, &varNestedTenantGroupRequest) @@ -193,3 +212,5 @@ func (v *NullableNestedTenantGroupRequest) 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 470de1affe..773fcd2d17 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,12 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"` AdditionalProperties map[string]interface{} } @@ -75,6 +76,7 @@ func (o *NestedUser) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedUser) GetUrl() string { if o == nil { @@ -99,6 +101,39 @@ func (o *NestedUser) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedUser) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedUser) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedUser) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedUser) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedUser) GetDisplay() string { if o == nil { @@ -123,6 +158,7 @@ func (o *NestedUser) SetDisplay(v string) { o.Display = v } + // GetUsername returns the Username field value func (o *NestedUser) GetUsername() string { if o == nil { @@ -147,8 +183,9 @@ func (o *NestedUser) SetUsername(v string) { o.Username = v } + func (o NestedUser) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -159,6 +196,9 @@ func (o NestedUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["username"] = o.Username @@ -180,20 +220,37 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { "username", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedUser := _NestedUser{} err = json.Unmarshal(data, &varNestedUser) @@ -209,6 +266,7 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") o.AdditionalProperties = additionalProperties @@ -252,3 +310,5 @@ func (v *NullableNestedUser) 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 e19da59db9..e36bbd1d39 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -74,6 +75,7 @@ func (o *NestedVirtualMachine) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedVirtualMachine) GetUrl() string { if o == nil { @@ -98,6 +100,39 @@ func (o *NestedVirtualMachine) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedVirtualMachine) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedVirtualMachine) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedVirtualMachine) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedVirtualMachine) GetDisplay() string { if o == nil { @@ -122,6 +157,7 @@ func (o *NestedVirtualMachine) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *NestedVirtualMachine) GetName() string { if o == nil { @@ -146,8 +182,9 @@ func (o *NestedVirtualMachine) SetName(v string) { o.Name = v } + func (o NestedVirtualMachine) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -158,6 +195,9 @@ func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -179,20 +219,37 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedVirtualMachine := _NestedVirtualMachine{} err = json.Unmarshal(data, &varNestedVirtualMachine) @@ -208,6 +265,7 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties @@ -251,3 +309,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 7fb0d2b036..6420354cb5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,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,8 +68,9 @@ func (o *NestedVirtualMachineRequest) SetName(v string) { o.Name = v } + func (o NestedVirtualMachineRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -95,20 +96,37 @@ func (o *NestedVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedVirtualMachineRequest := _NestedVirtualMachineRequest{} err = json.Unmarshal(data, &varNestedVirtualMachineRequest) @@ -164,3 +182,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 new file mode 100644 index 0000000000..cf4f8e71b8 --- /dev/null +++ b/model_nested_vlan.go @@ -0,0 +1,344 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedVLAN type satisfies the MappedNullable interface at compile time +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"` + Display string `json:"display"` + // Numeric VLAN ID (1-4094) + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NestedVLAN NestedVLAN + +// NewNestedVLAN instantiates a new NestedVLAN 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 NewNestedVLAN(id int32, url string, display string, vid int32, name string) *NestedVLAN { + this := NestedVLAN{} + this.Id = id + this.Url = url + this.Display = display + this.Vid = vid + this.Name = name + return &this +} + +// NewNestedVLANWithDefaults instantiates a new NestedVLAN 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 NewNestedVLANWithDefaults() *NestedVLAN { + this := NestedVLAN{} + return &this +} + +// GetId returns the Id field value +func (o *NestedVLAN) 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 *NestedVLAN) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedVLAN) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *NestedVLAN) 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 *NestedVLAN) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedVLAN) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *NestedVLAN) 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 *NestedVLAN) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedVLAN) SetDisplay(v string) { + o.Display = v +} + + +// GetVid returns the Vid field value +func (o *NestedVLAN) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *NestedVLAN) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *NestedVLAN) SetVid(v int32) { + o.Vid = v +} + + +// GetName returns the Name field value +func (o *NestedVLAN) 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 *NestedVLAN) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedVLAN) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NestedVLAN) 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 *NestedVLAN) 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 *NestedVLAN) 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 *NestedVLAN) SetDescription(v string) { + o.Description = &v +} + +func (o NestedVLAN) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedVLAN) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedVLAN) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "vid", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedVLAN := _NestedVLAN{} + + err = json.Unmarshal(data, &varNestedVLAN) + + if err != nil { + return err + } + + *o = NestedVLAN(varNestedVLAN) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedVLAN struct { + value *NestedVLAN + isSet bool +} + +func (v NullableNestedVLAN) Get() *NestedVLAN { + return v.value +} + +func (v *NullableNestedVLAN) Set(val *NestedVLAN) { + v.value = val + v.isSet = true +} + +func (v NullableNestedVLAN) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedVLAN) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedVLAN(val *NestedVLAN) *NullableNestedVLAN { + return &NullableNestedVLAN{value: val, isSet: true} +} + +func (v NullableNestedVLAN) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedVLAN) 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 new file mode 100644 index 0000000000..f4ca292ef4 --- /dev/null +++ b/model_nested_vlan_request.go @@ -0,0 +1,254 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedVLANRequest type satisfies the MappedNullable interface at compile time +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"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NestedVLANRequest NestedVLANRequest + +// NewNestedVLANRequest instantiates a new NestedVLANRequest 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 NewNestedVLANRequest(vid int32, name string) *NestedVLANRequest { + this := NestedVLANRequest{} + this.Vid = vid + this.Name = name + return &this +} + +// NewNestedVLANRequestWithDefaults instantiates a new NestedVLANRequest 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 NewNestedVLANRequestWithDefaults() *NestedVLANRequest { + this := NestedVLANRequest{} + return &this +} + +// GetVid returns the Vid field value +func (o *NestedVLANRequest) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *NestedVLANRequest) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *NestedVLANRequest) SetVid(v int32) { + o.Vid = v +} + + +// GetName returns the Name field value +func (o *NestedVLANRequest) 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 *NestedVLANRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedVLANRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NestedVLANRequest) 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 *NestedVLANRequest) 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 *NestedVLANRequest) 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 *NestedVLANRequest) SetDescription(v string) { + o.Description = &v +} + +func (o NestedVLANRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedVLANRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedVLANRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "vid", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedVLANRequest := _NestedVLANRequest{} + + err = json.Unmarshal(data, &varNestedVLANRequest) + + if err != nil { + return err + } + + *o = NestedVLANRequest(varNestedVLANRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedVLANRequest struct { + value *NestedVLANRequest + isSet bool +} + +func (v NullableNestedVLANRequest) Get() *NestedVLANRequest { + return v.value +} + +func (v *NullableNestedVLANRequest) Set(val *NestedVLANRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedVLANRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedVLANRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedVLANRequest(val *NestedVLANRequest) *NullableNestedVLANRequest { + return &NullableNestedVLANRequest{value: val, isSet: true} +} + +func (v NullableNestedVLANRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +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 be16224316..93f17b38b9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,12 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + VirtualMachine NestedVirtualMachine `json:"virtual_machine"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -76,6 +77,7 @@ func (o *NestedVMInterface) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedVMInterface) GetUrl() string { if o == nil { @@ -100,6 +102,39 @@ func (o *NestedVMInterface) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedVMInterface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedVMInterface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedVMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedVMInterface) GetDisplay() string { if o == nil { @@ -124,6 +159,7 @@ func (o *NestedVMInterface) SetDisplay(v string) { o.Display = v } + // GetVirtualMachine returns the VirtualMachine field value func (o *NestedVMInterface) GetVirtualMachine() NestedVirtualMachine { if o == nil { @@ -148,6 +184,7 @@ func (o *NestedVMInterface) SetVirtualMachine(v NestedVirtualMachine) { o.VirtualMachine = v } + // GetName returns the Name field value func (o *NestedVMInterface) GetName() string { if o == nil { @@ -172,8 +209,9 @@ func (o *NestedVMInterface) SetName(v string) { o.Name = v } + func (o NestedVMInterface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -184,6 +222,9 @@ func (o NestedVMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -207,20 +248,37 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedVMInterface := _NestedVMInterface{} err = json.Unmarshal(data, &varNestedVMInterface) @@ -236,6 +294,7 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") @@ -280,3 +339,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 ee8ecb2a32..c6a7853645 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,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,8 +68,9 @@ func (o *NestedVMInterfaceRequest) SetName(v string) { o.Name = v } + func (o NestedVMInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -95,20 +96,37 @@ func (o *NestedVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedVMInterfaceRequest := _NestedVMInterfaceRequest{} err = json.Unmarshal(data, &varNestedVMInterfaceRequest) @@ -164,3 +182,5 @@ func (v *NullableNestedVMInterfaceRequest) 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 new file mode 100644 index 0000000000..a15e766882 --- /dev/null +++ b/model_nested_wireless_lan_group.go @@ -0,0 +1,373 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedWirelessLANGroup type satisfies the MappedNullable interface at compile time +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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _NestedWirelessLANGroup NestedWirelessLANGroup + +// NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup 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 NewNestedWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedWirelessLANGroup { + this := NestedWirelessLANGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewNestedWirelessLANGroupWithDefaults instantiates a new NestedWirelessLANGroup 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 NewNestedWirelessLANGroupWithDefaults() *NestedWirelessLANGroup { + this := NestedWirelessLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedWirelessLANGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedWirelessLANGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedWirelessLANGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedWirelessLANGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedWirelessLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedWirelessLANGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedWirelessLANGroup) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *NestedWirelessLANGroup) 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 *NestedWirelessLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedWirelessLANGroup) SetSlug(v string) { + o.Slug = v +} + + +// GetDepth returns the Depth field value +func (o *NestedWirelessLANGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *NestedWirelessLANGroup) SetDepth(v int32) { + o.Depth = v +} + + +func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "_depth", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNestedWirelessLANGroup := _NestedWirelessLANGroup{} + + err = json.Unmarshal(data, &varNestedWirelessLANGroup) + + if err != nil { + return err + } + + *o = NestedWirelessLANGroup(varNestedWirelessLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedWirelessLANGroup struct { + value *NestedWirelessLANGroup + isSet bool +} + +func (v NullableNestedWirelessLANGroup) Get() *NestedWirelessLANGroup { + return v.value +} + +func (v *NullableNestedWirelessLANGroup) Set(val *NestedWirelessLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableNestedWirelessLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedWirelessLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedWirelessLANGroup(val *NestedWirelessLANGroup) *NullableNestedWirelessLANGroup { + return &NullableNestedWirelessLANGroup{value: val, isSet: true} +} + +func (v NullableNestedWirelessLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +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 8e8b204a17..d5306ced1a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` AdditionalProperties map[string]interface{} } @@ -70,6 +70,7 @@ func (o *NestedWirelessLANGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *NestedWirelessLANGroupRequest) GetSlug() string { if o == nil { @@ -94,8 +95,9 @@ func (o *NestedWirelessLANGroupRequest) SetSlug(v string) { o.Slug = v } + func (o NestedWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,20 +125,37 @@ func (o *NestedWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedWirelessLANGroupRequest := _NestedWirelessLANGroupRequest{} err = json.Unmarshal(data, &varNestedWirelessLANGroupRequest) @@ -193,3 +212,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 bc6328e76d..8bf65daf5c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Ssid *string `json:"ssid,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,6 +74,7 @@ func (o *NestedWirelessLink) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *NestedWirelessLink) GetUrl() string { if o == nil { @@ -97,6 +99,39 @@ func (o *NestedWirelessLink) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedWirelessLink) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedWirelessLink) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedWirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedWirelessLink) GetDisplay() string { if o == nil { @@ -121,6 +156,7 @@ func (o *NestedWirelessLink) SetDisplay(v string) { o.Display = v } + // GetSsid returns the Ssid field value if set, zero value otherwise. func (o *NestedWirelessLink) GetSsid() string { if o == nil || IsNil(o.Ssid) { @@ -154,7 +190,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 } @@ -165,6 +201,9 @@ func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if !IsNil(o.Ssid) { toSerialize["ssid"] = o.Ssid @@ -187,20 +226,37 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { "display", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varNestedWirelessLink := _NestedWirelessLink{} err = json.Unmarshal(data, &varNestedWirelessLink) @@ -216,6 +272,7 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") o.AdditionalProperties = additionalProperties @@ -259,3 +316,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 49e5860282..443cc95a01 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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 } @@ -151,3 +151,5 @@ func (v *NullableNestedWirelessLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_notification.go b/model_notification.go new file mode 100644 index 0000000000..11ed7e2ee2 --- /dev/null +++ b/model_notification.go @@ -0,0 +1,489 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the Notification type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Notification{} + +// Notification 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 Notification struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object,omitempty"` + User BriefUser `json:"user"` + Created *time.Time `json:"created,omitempty"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` + AdditionalProperties map[string]interface{} +} + +type _Notification Notification + +// NewNotification instantiates a new Notification 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 NewNotification(id int32, url string, display string, objectType string, objectId int64, user BriefUser, eventType Event) *Notification { + this := Notification{} + this.Id = id + this.Url = url + this.Display = display + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + this.EventType = eventType + return &this +} + +// NewNotificationWithDefaults instantiates a new Notification 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 NewNotificationWithDefaults() *Notification { + this := Notification{} + return &this +} + +// GetId returns the Id field value +func (o *Notification) 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 *Notification) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Notification) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *Notification) 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 *Notification) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Notification) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *Notification) 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 *Notification) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Notification) SetDisplay(v string) { + o.Display = v +} + + +// GetObjectType returns the ObjectType field value +func (o *Notification) 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 *Notification) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *Notification) SetObjectType(v string) { + o.ObjectType = v +} + + +// GetObjectId returns the ObjectId field value +func (o *Notification) 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 *Notification) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *Notification) SetObjectId(v int64) { + o.ObjectId = v +} + + +// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Notification) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Object +} + +// GetObjectOk returns a tuple with the Object 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 *Notification) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// HasObject returns a boolean if a field has been set. +func (o *Notification) HasObject() bool { + if o != nil && !IsNil(o.Object) { + return true + } + + return false +} + +// SetObject gets a reference to the given interface{} and assigns it to the Object field. +func (o *Notification) SetObject(v interface{}) { + o.Object = v +} + +// GetUser returns the User field value +func (o *Notification) GetUser() BriefUser { + if o == nil { + var ret BriefUser + 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 *Notification) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *Notification) SetUser(v BriefUser) { + o.User = v +} + + +// GetCreated returns the Created field value if set, zero value otherwise. +func (o *Notification) GetCreated() time.Time { + if o == nil || IsNil(o.Created) { + var ret time.Time + return ret + } + return *o.Created +} + +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Notification) GetCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.Created) { + return nil, false + } + return o.Created, true +} + +// HasCreated returns a boolean if a field has been set. +func (o *Notification) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given time.Time and assigns it to the Created field. +func (o *Notification) SetCreated(v time.Time) { + o.Created = &v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Notification) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read 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 *Notification) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *Notification) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *Notification) SetRead(v time.Time) { + o.Read.Set(&v) +} +// SetReadNil sets the value for Read to be an explicit nil +func (o *Notification) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *Notification) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value +func (o *Notification) GetEventType() Event { + if o == nil { + var ret Event + return ret + } + + return o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value +// and a boolean to check if the value has been set. +func (o *Notification) GetEventTypeOk() (*Event, bool) { + if o == nil { + return nil, false + } + return &o.EventType, true +} + +// SetEventType sets field value +func (o *Notification) SetEventType(v Event) { + o.EventType = v +} + + +func (o Notification) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Notification) 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 + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + toSerialize["event_type"] = o.EventType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Notification) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "object_type", + "object_id", + "user", + "event_type", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNotification := _Notification{} + + err = json.Unmarshal(data, &varNotification) + + if err != nil { + return err + } + + *o = Notification(varNotification) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &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") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotification struct { + value *Notification + isSet bool +} + +func (v NullableNotification) Get() *Notification { + return v.value +} + +func (v *NullableNotification) Set(val *Notification) { + v.value = val + v.isSet = true +} + +func (v NullableNotification) IsSet() bool { + return v.isSet +} + +func (v *NullableNotification) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotification(val *Notification) *NullableNotification { + return &NullableNotification{value: val, isSet: true} +} + +func (v NullableNotification) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotification) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_notification_group.go b/model_notification_group.go new file mode 100644 index 0000000000..cf435bbe24 --- /dev/null +++ b/model_notification_group.go @@ -0,0 +1,424 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NotificationGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationGroup{} + +// NotificationGroup 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 NotificationGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DisplayUrl *string `json:"display_url,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []Group `json:"groups,omitempty"` + Users []User `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NotificationGroup NotificationGroup + +// NewNotificationGroup instantiates a new NotificationGroup 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 NewNotificationGroup(id int32, url string, display string, name string) *NotificationGroup { + this := NotificationGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewNotificationGroupWithDefaults instantiates a new NotificationGroup 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 NewNotificationGroupWithDefaults() *NotificationGroup { + this := NotificationGroup{} + return &this +} + +// GetId returns the Id field value +func (o *NotificationGroup) 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 *NotificationGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NotificationGroup) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *NotificationGroup) 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 *NotificationGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NotificationGroup) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *NotificationGroup) 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 *NotificationGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NotificationGroup) SetDisplay(v string) { + o.Display = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NotificationGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NotificationGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NotificationGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetName returns the Name field value +func (o *NotificationGroup) 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 *NotificationGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NotificationGroup) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NotificationGroup) 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 *NotificationGroup) 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 *NotificationGroup) 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 *NotificationGroup) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *NotificationGroup) GetGroups() []Group { + if o == nil || IsNil(o.Groups) { + var ret []Group + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetGroupsOk() ([]Group, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *NotificationGroup) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []Group and assigns it to the Groups field. +func (o *NotificationGroup) SetGroups(v []Group) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *NotificationGroup) GetUsers() []User { + if o == nil || IsNil(o.Users) { + var ret []User + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetUsersOk() ([]User, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *NotificationGroup) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []User and assigns it to the Users field. +func (o *NotificationGroup) SetUsers(v []User) { + o.Users = v +} + +func (o NotificationGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNotificationGroup := _NotificationGroup{} + + err = json.Unmarshal(data, &varNotificationGroup) + + if err != nil { + return err + } + + *o = NotificationGroup(varNotificationGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "display_url") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationGroup struct { + value *NotificationGroup + isSet bool +} + +func (v NullableNotificationGroup) Get() *NotificationGroup { + return v.value +} + +func (v *NullableNotificationGroup) Set(val *NotificationGroup) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationGroup(val *NotificationGroup) *NullableNotificationGroup { + return &NullableNotificationGroup{value: val, isSet: true} +} + +func (v NullableNotificationGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_notification_group_request.go b/model_notification_group_request.go new file mode 100644 index 0000000000..e2edaa2514 --- /dev/null +++ b/model_notification_group_request.go @@ -0,0 +1,297 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NotificationGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationGroupRequest{} + +// NotificationGroupRequest 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 NotificationGroupRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NotificationGroupRequest NotificationGroupRequest + +// NewNotificationGroupRequest instantiates a new NotificationGroupRequest 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 NewNotificationGroupRequest(name string) *NotificationGroupRequest { + this := NotificationGroupRequest{} + this.Name = name + return &this +} + +// NewNotificationGroupRequestWithDefaults instantiates a new NotificationGroupRequest 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 NewNotificationGroupRequestWithDefaults() *NotificationGroupRequest { + this := NotificationGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *NotificationGroupRequest) 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 *NotificationGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NotificationGroupRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NotificationGroupRequest) 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 *NotificationGroupRequest) 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 *NotificationGroupRequest) 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 *NotificationGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *NotificationGroupRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetUsers() []int32 { + if o == nil || IsNil(o.Users) { + var ret []int32 + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetUsersOk() ([]int32, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []int32 and assigns it to the Users field. +func (o *NotificationGroupRequest) SetUsers(v []int32) { + o.Users = v +} + +func (o NotificationGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNotificationGroupRequest := _NotificationGroupRequest{} + + err = json.Unmarshal(data, &varNotificationGroupRequest) + + if err != nil { + return err + } + + *o = NotificationGroupRequest(varNotificationGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationGroupRequest struct { + value *NotificationGroupRequest + isSet bool +} + +func (v NullableNotificationGroupRequest) Get() *NotificationGroupRequest { + return v.value +} + +func (v *NullableNotificationGroupRequest) Set(val *NotificationGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationGroupRequest(val *NotificationGroupRequest) *NullableNotificationGroupRequest { + return &NullableNotificationGroupRequest{value: val, isSet: true} +} + +func (v NullableNotificationGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_notification_request.go b/model_notification_request.go new file mode 100644 index 0000000000..87144a7d4c --- /dev/null +++ b/model_notification_request.go @@ -0,0 +1,324 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the NotificationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationRequest{} + +// NotificationRequest 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 NotificationRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` + AdditionalProperties map[string]interface{} +} + +type _NotificationRequest NotificationRequest + +// NewNotificationRequest instantiates a new NotificationRequest 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 NewNotificationRequest(objectType string, objectId int64, user BriefUserRequest, eventType Event) *NotificationRequest { + this := NotificationRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + this.EventType = eventType + return &this +} + +// NewNotificationRequestWithDefaults instantiates a new NotificationRequest 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 NewNotificationRequestWithDefaults() *NotificationRequest { + this := NotificationRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *NotificationRequest) 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 *NotificationRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *NotificationRequest) SetObjectType(v string) { + o.ObjectType = v +} + + +// GetObjectId returns the ObjectId field value +func (o *NotificationRequest) 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 *NotificationRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *NotificationRequest) SetObjectId(v int64) { + o.ObjectId = v +} + + +// GetUser returns the User field value +func (o *NotificationRequest) GetUser() BriefUserRequest { + if o == nil { + var ret BriefUserRequest + 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 *NotificationRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *NotificationRequest) SetUser(v BriefUserRequest) { + o.User = v +} + + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NotificationRequest) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read 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 *NotificationRequest) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *NotificationRequest) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *NotificationRequest) SetRead(v time.Time) { + o.Read.Set(&v) +} +// SetReadNil sets the value for Read to be an explicit nil +func (o *NotificationRequest) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *NotificationRequest) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value +func (o *NotificationRequest) GetEventType() Event { + if o == nil { + var ret Event + return ret + } + + return o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetEventTypeOk() (*Event, bool) { + if o == nil { + return nil, false + } + return &o.EventType, true +} + +// SetEventType sets field value +func (o *NotificationRequest) SetEventType(v Event) { + o.EventType = v +} + + +func (o NotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["user"] = o.User + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + toSerialize["event_type"] = o.EventType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "user", + "event_type", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varNotificationRequest := _NotificationRequest{} + + err = json.Unmarshal(data, &varNotificationRequest) + + if err != nil { + return err + } + + *o = NotificationRequest(varNotificationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationRequest struct { + value *NotificationRequest + isSet bool +} + +func (v NullableNotificationRequest) Get() *NotificationRequest { + return v.value +} + +func (v *NullableNotificationRequest) Set(val *NotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationRequest(val *NotificationRequest) *NullableNotificationRequest { + return &NullableNotificationRequest{value: val, isSet: true} +} + +func (v NullableNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationRequest) 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 24b5c95cce..8d1a13d511 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ObjectChange type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ 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 User `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 interface{} `json:"changed_object"` - PrechangeData interface{} `json:"prechange_data"` - PostchangeData interface{} `json:"postchange_data"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Time time.Time `json:"time"` + User BriefUser `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 interface{} `json:"changed_object,omitempty"` + PrechangeData interface{} `json:"prechange_data,omitempty"` + PostchangeData interface{} `json:"postchange_data,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +44,7 @@ type _ObjectChange ObjectChange // 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 NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { +func NewObjectChange(id int32, url string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64) *ObjectChange { this := ObjectChange{} this.Id = id this.Url = url @@ -55,9 +56,6 @@ func NewObjectChange(id int32, url string, display string, time time.Time, user this.Action = action this.ChangedObjectType = changedObjectType this.ChangedObjectId = changedObjectId - this.ChangedObject = changedObject - this.PrechangeData = prechangeData - this.PostchangeData = postchangeData return &this } @@ -93,6 +91,7 @@ func (o *ObjectChange) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ObjectChange) GetUrl() string { if o == nil { @@ -117,6 +116,39 @@ func (o *ObjectChange) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ObjectChange) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectChange) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ObjectChange) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ObjectChange) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ObjectChange) GetDisplay() string { if o == nil { @@ -141,6 +173,7 @@ func (o *ObjectChange) SetDisplay(v string) { o.Display = v } + // GetTime returns the Time field value func (o *ObjectChange) GetTime() time.Time { if o == nil { @@ -165,10 +198,11 @@ func (o *ObjectChange) SetTime(v time.Time) { o.Time = v } + // GetUser returns the User field value -func (o *ObjectChange) GetUser() User { +func (o *ObjectChange) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -177,7 +211,7 @@ func (o *ObjectChange) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *ObjectChange) GetUserOk() (*User, bool) { +func (o *ObjectChange) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -185,10 +219,11 @@ func (o *ObjectChange) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *ObjectChange) SetUser(v User) { +func (o *ObjectChange) SetUser(v BriefUser) { o.User = v } + // GetUserName returns the UserName field value func (o *ObjectChange) GetUserName() string { if o == nil { @@ -213,6 +248,7 @@ func (o *ObjectChange) SetUserName(v string) { o.UserName = v } + // GetRequestId returns the RequestId field value func (o *ObjectChange) GetRequestId() string { if o == nil { @@ -237,6 +273,7 @@ func (o *ObjectChange) SetRequestId(v string) { o.RequestId = v } + // GetAction returns the Action field value func (o *ObjectChange) GetAction() ObjectChangeAction { if o == nil { @@ -261,6 +298,7 @@ func (o *ObjectChange) SetAction(v ObjectChangeAction) { o.Action = v } + // GetChangedObjectType returns the ChangedObjectType field value func (o *ObjectChange) GetChangedObjectType() string { if o == nil { @@ -285,6 +323,7 @@ func (o *ObjectChange) SetChangedObjectType(v string) { o.ChangedObjectType = v } + // GetChangedObjectId returns the ChangedObjectId field value func (o *ObjectChange) GetChangedObjectId() int64 { if o == nil { @@ -309,18 +348,17 @@ func (o *ObjectChange) SetChangedObjectId(v int64) { o.ChangedObjectId = v } -// GetChangedObject returns the ChangedObject field value -// If the value is explicit nil, the zero value for interface{} will be returned + +// GetChangedObject returns the ChangedObject field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ObjectChange) GetChangedObject() interface{} { if o == nil { var ret interface{} return ret } - return o.ChangedObject } -// GetChangedObjectOk returns a tuple with the ChangedObject field value +// GetChangedObjectOk returns a tuple with the ChangedObject 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 *ObjectChange) GetChangedObjectOk() (*interface{}, bool) { @@ -330,23 +368,30 @@ func (o *ObjectChange) GetChangedObjectOk() (*interface{}, bool) { return &o.ChangedObject, true } -// SetChangedObject sets field value +// HasChangedObject returns a boolean if a field has been set. +func (o *ObjectChange) HasChangedObject() bool { + if o != nil && !IsNil(o.ChangedObject) { + return true + } + + return false +} + +// SetChangedObject gets a reference to the given interface{} and assigns it to the ChangedObject field. func (o *ObjectChange) SetChangedObject(v interface{}) { o.ChangedObject = v } -// GetPrechangeData returns the PrechangeData field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetPrechangeData returns the PrechangeData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ObjectChange) GetPrechangeData() interface{} { if o == nil { var ret interface{} return ret } - return o.PrechangeData } -// GetPrechangeDataOk returns a tuple with the PrechangeData field value +// GetPrechangeDataOk returns a tuple with the PrechangeData 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 *ObjectChange) GetPrechangeDataOk() (*interface{}, bool) { @@ -356,23 +401,30 @@ func (o *ObjectChange) GetPrechangeDataOk() (*interface{}, bool) { return &o.PrechangeData, true } -// SetPrechangeData sets field value +// HasPrechangeData returns a boolean if a field has been set. +func (o *ObjectChange) HasPrechangeData() bool { + if o != nil && !IsNil(o.PrechangeData) { + return true + } + + return false +} + +// SetPrechangeData gets a reference to the given interface{} and assigns it to the PrechangeData field. func (o *ObjectChange) SetPrechangeData(v interface{}) { o.PrechangeData = v } -// GetPostchangeData returns the PostchangeData field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetPostchangeData returns the PostchangeData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ObjectChange) GetPostchangeData() interface{} { if o == nil { var ret interface{} return ret } - return o.PostchangeData } -// GetPostchangeDataOk returns a tuple with the PostchangeData field value +// GetPostchangeDataOk returns a tuple with the PostchangeData 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 *ObjectChange) GetPostchangeDataOk() (*interface{}, bool) { @@ -382,13 +434,22 @@ func (o *ObjectChange) GetPostchangeDataOk() (*interface{}, bool) { return &o.PostchangeData, true } -// SetPostchangeData sets field value +// HasPostchangeData returns a boolean if a field has been set. +func (o *ObjectChange) HasPostchangeData() bool { + if o != nil && !IsNil(o.PostchangeData) { + return true + } + + return false +} + +// SetPostchangeData gets a reference to the given interface{} and assigns it to the PostchangeData field. func (o *ObjectChange) SetPostchangeData(v interface{}) { o.PostchangeData = v } func (o ObjectChange) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -399,6 +460,9 @@ func (o ObjectChange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["time"] = o.Time toSerialize["user"] = o.User @@ -439,25 +503,39 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { "action", "changed_object_type", "changed_object_id", - "changed_object", - "prechange_data", - "postchange_data", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varObjectChange := _ObjectChange{} err = json.Unmarshal(data, &varObjectChange) @@ -473,6 +551,7 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "time") delete(additionalProperties, "user") @@ -525,3 +604,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 4e2bcdbc3c..0aeeb422ac 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &ObjectChangeAction{} // ObjectChangeAction struct for ObjectChangeAction type ObjectChangeAction struct { - Value *ObjectChangeActionValue `json:"value,omitempty"` - Label *ObjectChangeActionLabel `json:"label,omitempty"` + Value *ObjectChangeActionValue `json:"value,omitempty"` + Label *ObjectChangeActionLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *ObjectChangeAction) SetLabel(v ObjectChangeActionLabel) { } func (o ObjectChangeAction) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableObjectChangeAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go index ee7329967e..f244e7c50d 100644 --- a/model_object_change_action_label.go +++ b/model_object_change_action_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullableObjectChangeActionLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go index 59e9cd339d..27d2761e77 100644 --- a/model_object_change_action_value.go +++ b/model_object_change_action_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullableObjectChangeActionValue) 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 7835c2b8d1..3c39c020fe 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,20 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` ObjectTypes []string `json:"object_types"` // The list of actions granted by this permission Actions []string `json:"actions"` // Queryset filter matching the applicable objects of the selected type(s) - Constraints interface{} `json:"constraints,omitempty"` - Groups []NestedGroup `json:"groups,omitempty"` - Users []NestedUser `json:"users,omitempty"` + Constraints interface{} `json:"constraints,omitempty"` + Groups []NestedGroup `json:"groups,omitempty"` + Users []NestedUser `json:"users,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,6 +86,7 @@ func (o *ObjectPermission) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ObjectPermission) GetUrl() string { if o == nil { @@ -109,6 +111,39 @@ func (o *ObjectPermission) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ObjectPermission) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ObjectPermission) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ObjectPermission) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ObjectPermission) GetDisplay() string { if o == nil { @@ -133,6 +168,7 @@ func (o *ObjectPermission) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ObjectPermission) GetName() string { if o == nil { @@ -157,6 +193,7 @@ func (o *ObjectPermission) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ObjectPermission) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -245,6 +282,7 @@ func (o *ObjectPermission) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetActions returns the Actions field value func (o *ObjectPermission) GetActions() []string { if o == nil { @@ -269,6 +307,7 @@ func (o *ObjectPermission) SetActions(v []string) { o.Actions = v } + // GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ObjectPermission) GetConstraints() interface{} { if o == nil { @@ -367,7 +406,7 @@ func (o *ObjectPermission) SetUsers(v []NestedUser) { } func (o ObjectPermission) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -378,6 +417,9 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -418,20 +460,37 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { "actions", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varObjectPermission := _ObjectPermission{} err = json.Unmarshal(data, &varObjectPermission) @@ -447,6 +506,7 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -497,3 +557,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 05e9aa4e20..8e867befe1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,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"` // The list of actions granted by this permission Actions []string `json:"actions"` // Queryset filter matching the applicable objects of the selected type(s) - Constraints interface{} `json:"constraints,omitempty"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Constraints interface{} `json:"constraints,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,6 +79,7 @@ func (o *ObjectPermissionRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ObjectPermissionRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -167,6 +168,7 @@ func (o *ObjectPermissionRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetActions returns the Actions field value func (o *ObjectPermissionRequest) GetActions() []string { if o == nil { @@ -191,6 +193,7 @@ func (o *ObjectPermissionRequest) SetActions(v []string) { o.Actions = v } + // GetConstraints returns the Constraints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ObjectPermissionRequest) GetConstraints() interface{} { if o == nil { @@ -289,7 +292,7 @@ func (o *ObjectPermissionRequest) SetUsers(v []int32) { } func (o ObjectPermissionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -334,20 +337,37 @@ func (o *ObjectPermissionRequest) UnmarshalJSON(data []byte) (err error) { "actions", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varObjectPermissionRequest := _ObjectPermissionRequest{} err = json.Unmarshal(data, &varObjectPermissionRequest) @@ -410,3 +430,5 @@ func (v *NullableObjectPermissionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_object_type.go b/model_object_type.go index f08d354c94..9752b515f0 100644 --- a/model_object_type.go +++ b/model_object_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &ObjectType{} // ObjectType struct for ObjectType type ObjectType 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{} } @@ -76,6 +76,7 @@ func (o *ObjectType) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ObjectType) GetUrl() string { if o == nil { @@ -100,6 +101,7 @@ func (o *ObjectType) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *ObjectType) GetDisplay() string { if o == nil { @@ -124,6 +126,7 @@ func (o *ObjectType) SetDisplay(v string) { o.Display = v } + // GetAppLabel returns the AppLabel field value func (o *ObjectType) GetAppLabel() string { if o == nil { @@ -148,6 +151,7 @@ func (o *ObjectType) SetAppLabel(v string) { o.AppLabel = v } + // GetModel returns the Model field value func (o *ObjectType) GetModel() string { if o == nil { @@ -172,8 +176,9 @@ func (o *ObjectType) SetModel(v string) { o.Model = v } + func (o ObjectType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,20 +212,37 @@ func (o *ObjectType) UnmarshalJSON(data []byte) (err error) { "model", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varObjectType := _ObjectType{} err = json.Unmarshal(data, &varObjectType) @@ -280,3 +302,5 @@ func (v *NullableObjectType) 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 81e2b86033..6b40104315 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedAggregateList{} // PaginatedAggregateList struct for PaginatedAggregateList type PaginatedAggregateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Aggregate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Aggregate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedAggregateList) 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 *PaginatedAggregateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedAggregateList) SetResults(v []Aggregate) { o.Results = v } + func (o PaginatedAggregateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedAggregateList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedAggregateList := _PaginatedAggregateList{} err = json.Unmarshal(data, &varPaginatedAggregateList) @@ -289,3 +306,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 183c0353f5..44d1e3a7ec 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedASNList{} // PaginatedASNList struct for PaginatedASNList type PaginatedASNList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ASN `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ASN `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedASNList) 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 *PaginatedASNList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedASNList) SetResults(v []ASN) { o.Results = v } + func (o PaginatedASNList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedASNList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedASNList := _PaginatedASNList{} err = json.Unmarshal(data, &varPaginatedASNList) @@ -289,3 +306,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 d96366e065..18fecc3da6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedASNRangeList{} // PaginatedASNRangeList struct for PaginatedASNRangeList type PaginatedASNRangeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ASNRange `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ASNRange `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedASNRangeList) 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 *PaginatedASNRangeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedASNRangeList) SetResults(v []ASNRange) { o.Results = v } + func (o PaginatedASNRangeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedASNRangeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedASNRangeList := _PaginatedASNRangeList{} err = json.Unmarshal(data, &varPaginatedASNRangeList) @@ -289,3 +306,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 index 64a4425b27..488bc99158 100644 --- a/model_paginated_bookmark_list.go +++ b/model_paginated_bookmark_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedBookmarkList{} // PaginatedBookmarkList struct for PaginatedBookmarkList type PaginatedBookmarkList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Bookmark `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Bookmark `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ 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()) { @@ -104,7 +105,6 @@ func (o *PaginatedBookmarkList) HasNext() bool { 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) @@ -147,7 +147,6 @@ func (o *PaginatedBookmarkList) HasPrevious() bool { 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) @@ -182,8 +181,9 @@ func (o *PaginatedBookmarkList) SetResults(v []Bookmark) { o.Results = v } + func (o PaginatedBookmarkList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedBookmarkList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedBookmarkList := _PaginatedBookmarkList{} err = json.Unmarshal(data, &varPaginatedBookmarkList) @@ -289,3 +306,5 @@ 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 cc214c3b23..701a998a4a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCableList{} // PaginatedCableList struct for PaginatedCableList type PaginatedCableList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Cable `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Cable `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedCableList) 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 *PaginatedCableList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedCableList) SetResults(v []Cable) { o.Results = v } + func (o PaginatedCableList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCableList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCableList := _PaginatedCableList{} err = json.Unmarshal(data, &varPaginatedCableList) @@ -289,3 +306,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 3a368c6b31..11054e293b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCableTerminationList{} // PaginatedCableTerminationList struct for PaginatedCableTerminationList type PaginatedCableTerminationList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CableTermination `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CableTermination `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedCableTerminationList) 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 *PaginatedCableTerminationList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedCableTerminationList) SetResults(v []CableTermination) { o.Results = v } + func (o PaginatedCableTerminationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCableTerminationList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCableTerminationList := _PaginatedCableTerminationList{} err = json.Unmarshal(data, &varPaginatedCableTerminationList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedCableTerminationList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_circuit_group_assignment_list.go b/model_paginated_circuit_group_assignment_list.go new file mode 100644 index 0000000000..798bffcf37 --- /dev/null +++ b/model_paginated_circuit_group_assignment_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedCircuitGroupAssignmentList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCircuitGroupAssignmentList{} + +// PaginatedCircuitGroupAssignmentList struct for PaginatedCircuitGroupAssignmentList +type PaginatedCircuitGroupAssignmentList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroupAssignment `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedCircuitGroupAssignmentList PaginatedCircuitGroupAssignmentList + +// NewPaginatedCircuitGroupAssignmentList instantiates a new PaginatedCircuitGroupAssignmentList 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 NewPaginatedCircuitGroupAssignmentList(count int32, results []CircuitGroupAssignment) *PaginatedCircuitGroupAssignmentList { + this := PaginatedCircuitGroupAssignmentList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedCircuitGroupAssignmentListWithDefaults instantiates a new PaginatedCircuitGroupAssignmentList 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 NewPaginatedCircuitGroupAssignmentListWithDefaults() *PaginatedCircuitGroupAssignmentList { + this := PaginatedCircuitGroupAssignmentList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedCircuitGroupAssignmentList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupAssignmentList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) 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 *PaginatedCircuitGroupAssignmentList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedCircuitGroupAssignmentList) GetResults() []CircuitGroupAssignment { + if o == nil { + var ret []CircuitGroupAssignment + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupAssignmentList) GetResultsOk() ([]CircuitGroupAssignment, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignment) { + o.Results = v +} + + +func (o PaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCircuitGroupAssignmentList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedCircuitGroupAssignmentList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedCircuitGroupAssignmentList := _PaginatedCircuitGroupAssignmentList{} + + err = json.Unmarshal(data, &varPaginatedCircuitGroupAssignmentList) + + if err != nil { + return err + } + + *o = PaginatedCircuitGroupAssignmentList(varPaginatedCircuitGroupAssignmentList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedCircuitGroupAssignmentList struct { + value *PaginatedCircuitGroupAssignmentList + isSet bool +} + +func (v NullablePaginatedCircuitGroupAssignmentList) Get() *PaginatedCircuitGroupAssignmentList { + return v.value +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) Set(val *PaginatedCircuitGroupAssignmentList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCircuitGroupAssignmentList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCircuitGroupAssignmentList(val *PaginatedCircuitGroupAssignmentList) *NullablePaginatedCircuitGroupAssignmentList { + return &NullablePaginatedCircuitGroupAssignmentList{value: val, isSet: true} +} + +func (v NullablePaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_circuit_group_list.go b/model_paginated_circuit_group_list.go new file mode 100644 index 0000000000..ded08e35c5 --- /dev/null +++ b/model_paginated_circuit_group_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedCircuitGroupList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCircuitGroupList{} + +// PaginatedCircuitGroupList struct for PaginatedCircuitGroupList +type PaginatedCircuitGroupList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroup `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedCircuitGroupList PaginatedCircuitGroupList + +// NewPaginatedCircuitGroupList instantiates a new PaginatedCircuitGroupList 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 NewPaginatedCircuitGroupList(count int32, results []CircuitGroup) *PaginatedCircuitGroupList { + this := PaginatedCircuitGroupList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedCircuitGroupListWithDefaults instantiates a new PaginatedCircuitGroupList 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 NewPaginatedCircuitGroupListWithDefaults() *PaginatedCircuitGroupList { + this := PaginatedCircuitGroupList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedCircuitGroupList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedCircuitGroupList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) 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 *PaginatedCircuitGroupList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedCircuitGroupList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedCircuitGroupList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedCircuitGroupList) GetResults() []CircuitGroup { + if o == nil { + var ret []CircuitGroup + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupList) GetResultsOk() ([]CircuitGroup, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedCircuitGroupList) SetResults(v []CircuitGroup) { + o.Results = v +} + + +func (o PaginatedCircuitGroupList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCircuitGroupList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedCircuitGroupList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedCircuitGroupList := _PaginatedCircuitGroupList{} + + err = json.Unmarshal(data, &varPaginatedCircuitGroupList) + + if err != nil { + return err + } + + *o = PaginatedCircuitGroupList(varPaginatedCircuitGroupList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedCircuitGroupList struct { + value *PaginatedCircuitGroupList + isSet bool +} + +func (v NullablePaginatedCircuitGroupList) Get() *PaginatedCircuitGroupList { + return v.value +} + +func (v *NullablePaginatedCircuitGroupList) Set(val *PaginatedCircuitGroupList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCircuitGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCircuitGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCircuitGroupList(val *PaginatedCircuitGroupList) *NullablePaginatedCircuitGroupList { + return &NullablePaginatedCircuitGroupList{value: val, isSet: true} +} + +func (v NullablePaginatedCircuitGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCircuitGroupList) 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 d2a32fd8a9..d8a6995586 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitList{} // PaginatedCircuitList struct for PaginatedCircuitList type PaginatedCircuitList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Circuit `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Circuit `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedCircuitList) 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 *PaginatedCircuitList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedCircuitList) SetResults(v []Circuit) { o.Results = v } + func (o PaginatedCircuitList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCircuitList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCircuitList := _PaginatedCircuitList{} err = json.Unmarshal(data, &varPaginatedCircuitList) @@ -289,3 +306,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 71138eab95..8f8bdc7b1d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitTerminationList{} // PaginatedCircuitTerminationList struct for PaginatedCircuitTerminationList type PaginatedCircuitTerminationList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CircuitTermination `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitTermination `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedCircuitTerminationList) 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 *PaginatedCircuitTerminationList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedCircuitTerminationList) SetResults(v []CircuitTermination) { o.Results = v } + func (o PaginatedCircuitTerminationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCircuitTerminationList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCircuitTerminationList := _PaginatedCircuitTerminationList{} err = json.Unmarshal(data, &varPaginatedCircuitTerminationList) @@ -289,3 +306,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 1487938304..6906d6b113 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitTypeList{} // PaginatedCircuitTypeList struct for PaginatedCircuitTypeList type PaginatedCircuitTypeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CircuitType `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitType `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedCircuitTypeList) 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 *PaginatedCircuitTypeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedCircuitTypeList) SetResults(v []CircuitType) { o.Results = v } + func (o PaginatedCircuitTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCircuitTypeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCircuitTypeList := _PaginatedCircuitTypeList{} err = json.Unmarshal(data, &varPaginatedCircuitTypeList) @@ -289,3 +306,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 2263a7dfb5..d76ad744aa 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterGroupList{} // PaginatedClusterGroupList struct for PaginatedClusterGroupList type PaginatedClusterGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ClusterGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ClusterGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedClusterGroupList) 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 *PaginatedClusterGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedClusterGroupList) SetResults(v []ClusterGroup) { o.Results = v } + func (o PaginatedClusterGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedClusterGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedClusterGroupList := _PaginatedClusterGroupList{} err = json.Unmarshal(data, &varPaginatedClusterGroupList) @@ -289,3 +306,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 da077b2c64..330f11300a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterList{} // PaginatedClusterList struct for PaginatedClusterList type PaginatedClusterList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Cluster `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Cluster `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedClusterList) 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 *PaginatedClusterList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedClusterList) SetResults(v []Cluster) { o.Results = v } + func (o PaginatedClusterList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedClusterList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedClusterList := _PaginatedClusterList{} err = json.Unmarshal(data, &varPaginatedClusterList) @@ -289,3 +306,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 7243ef83d4..1e4577efc5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedClusterTypeList{} // PaginatedClusterTypeList struct for PaginatedClusterTypeList type PaginatedClusterTypeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ClusterType `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ClusterType `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedClusterTypeList) 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 *PaginatedClusterTypeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedClusterTypeList) SetResults(v []ClusterType) { o.Results = v } + func (o PaginatedClusterTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedClusterTypeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedClusterTypeList := _PaginatedClusterTypeList{} err = json.Unmarshal(data, &varPaginatedClusterTypeList) @@ -289,3 +306,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 4db50833df..2c286bdc82 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConfigContextList{} // PaginatedConfigContextList struct for PaginatedConfigContextList type PaginatedConfigContextList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConfigContext `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConfigContext `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedConfigContextList) 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 *PaginatedConfigContextList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedConfigContextList) SetResults(v []ConfigContext) { o.Results = v } + func (o PaginatedConfigContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedConfigContextList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedConfigContextList := _PaginatedConfigContextList{} err = json.Unmarshal(data, &varPaginatedConfigContextList) @@ -289,3 +306,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 36f8990fff..d9317d99df 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConfigTemplateList{} // PaginatedConfigTemplateList struct for PaginatedConfigTemplateList type PaginatedConfigTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConfigTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConfigTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedConfigTemplateList) 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 *PaginatedConfigTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedConfigTemplateList) SetResults(v []ConfigTemplate) { o.Results = v } + func (o PaginatedConfigTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedConfigTemplateList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedConfigTemplateList := _PaginatedConfigTemplateList{} err = json.Unmarshal(data, &varPaginatedConfigTemplateList) @@ -289,3 +306,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 7d8bb83676..dc318f922d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsolePortList{} // PaginatedConsolePortList struct for PaginatedConsolePortList type PaginatedConsolePortList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsolePort `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsolePort `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedConsolePortList) 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 *PaginatedConsolePortList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedConsolePortList) SetResults(v []ConsolePort) { o.Results = v } + func (o PaginatedConsolePortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedConsolePortList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedConsolePortList := _PaginatedConsolePortList{} err = json.Unmarshal(data, &varPaginatedConsolePortList) @@ -289,3 +306,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 b424049c9a..e946a3dba5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsolePortTemplateList{} // PaginatedConsolePortTemplateList struct for PaginatedConsolePortTemplateList type PaginatedConsolePortTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsolePortTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsolePortTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedConsolePortTemplateList) 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 *PaginatedConsolePortTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedConsolePortTemplateList) SetResults(v []ConsolePortTemplate) { o.Results = v } + func (o PaginatedConsolePortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedConsolePortTemplateList) UnmarshalJSON(data []byte) (err error "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedConsolePortTemplateList := _PaginatedConsolePortTemplateList{} err = json.Unmarshal(data, &varPaginatedConsolePortTemplateList) @@ -289,3 +306,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 adfb94743a..29644bb73a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortList{} // PaginatedConsoleServerPortList struct for PaginatedConsoleServerPortList type PaginatedConsoleServerPortList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsoleServerPort `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsoleServerPort `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedConsoleServerPortList) 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 *PaginatedConsoleServerPortList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedConsoleServerPortList) SetResults(v []ConsoleServerPort) { o.Results = v } + func (o PaginatedConsoleServerPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedConsoleServerPortList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedConsoleServerPortList := _PaginatedConsoleServerPortList{} err = json.Unmarshal(data, &varPaginatedConsoleServerPortList) @@ -289,3 +306,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 51278f9f82..dcd527ac06 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortTemplateList{} // PaginatedConsoleServerPortTemplateList struct for PaginatedConsoleServerPortTemplateList type PaginatedConsoleServerPortTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsoleServerPortTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsoleServerPortTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedConsoleServerPortTemplateList) 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 *PaginatedConsoleServerPortTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedConsoleServerPortTemplateList) SetResults(v []ConsoleServerPor o.Results = v } + func (o PaginatedConsoleServerPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedConsoleServerPortTemplateList) UnmarshalJSON(data []byte) (err "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedConsoleServerPortTemplateList := _PaginatedConsoleServerPortTemplateList{} err = json.Unmarshal(data, &varPaginatedConsoleServerPortTemplateList) @@ -289,3 +306,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 ea9e239461..e45569b15c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactAssignmentList{} // PaginatedContactAssignmentList struct for PaginatedContactAssignmentList type PaginatedContactAssignmentList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ContactAssignment `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ContactAssignment `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedContactAssignmentList) 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 *PaginatedContactAssignmentList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedContactAssignmentList) SetResults(v []ContactAssignment) { o.Results = v } + func (o PaginatedContactAssignmentList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedContactAssignmentList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedContactAssignmentList := _PaginatedContactAssignmentList{} err = json.Unmarshal(data, &varPaginatedContactAssignmentList) @@ -289,3 +306,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 77bd6c70f2..7b701c5cde 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactGroupList{} // PaginatedContactGroupList struct for PaginatedContactGroupList type PaginatedContactGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ContactGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ContactGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedContactGroupList) 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 *PaginatedContactGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedContactGroupList) SetResults(v []ContactGroup) { o.Results = v } + func (o PaginatedContactGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedContactGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedContactGroupList := _PaginatedContactGroupList{} err = json.Unmarshal(data, &varPaginatedContactGroupList) @@ -289,3 +306,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 72294eba7b..eacf63eb62 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactList{} // PaginatedContactList struct for PaginatedContactList type PaginatedContactList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Contact `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Contact `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedContactList) 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 *PaginatedContactList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedContactList) SetResults(v []Contact) { o.Results = v } + func (o PaginatedContactList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedContactList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedContactList := _PaginatedContactList{} err = json.Unmarshal(data, &varPaginatedContactList) @@ -289,3 +306,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 fc486241c6..cea7f49b20 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedContactRoleList{} // PaginatedContactRoleList struct for PaginatedContactRoleList type PaginatedContactRoleList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ContactRole `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ContactRole `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedContactRoleList) 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 *PaginatedContactRoleList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedContactRoleList) SetResults(v []ContactRole) { o.Results = v } + func (o PaginatedContactRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedContactRoleList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedContactRoleList := _PaginatedContactRoleList{} err = json.Unmarshal(data, &varPaginatedContactRoleList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedContactRoleList) 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 index 48e25bb94b..2c922c3f14 100644 --- a/model_paginated_custom_field_choice_set_list.go +++ b/model_paginated_custom_field_choice_set_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomFieldChoiceSetList{} // PaginatedCustomFieldChoiceSetList struct for PaginatedCustomFieldChoiceSetList type PaginatedCustomFieldChoiceSetList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CustomFieldChoiceSet `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CustomFieldChoiceSet `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ 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()) { @@ -104,7 +105,6 @@ func (o *PaginatedCustomFieldChoiceSetList) HasNext() bool { 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) @@ -147,7 +147,6 @@ func (o *PaginatedCustomFieldChoiceSetList) HasPrevious() bool { 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) @@ -182,8 +181,9 @@ func (o *PaginatedCustomFieldChoiceSetList) SetResults(v []CustomFieldChoiceSet) o.Results = v } + func (o PaginatedCustomFieldChoiceSetList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCustomFieldChoiceSetList) UnmarshalJSON(data []byte) (err erro "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCustomFieldChoiceSetList := _PaginatedCustomFieldChoiceSetList{} err = json.Unmarshal(data, &varPaginatedCustomFieldChoiceSetList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedCustomFieldChoiceSetList) UnmarshalJSON(src []byte) er 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 1f0c58fc05..af1b52ee44 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomFieldList{} // PaginatedCustomFieldList struct for PaginatedCustomFieldList type PaginatedCustomFieldList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CustomField `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CustomField `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedCustomFieldList) 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 *PaginatedCustomFieldList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedCustomFieldList) SetResults(v []CustomField) { o.Results = v } + func (o PaginatedCustomFieldList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCustomFieldList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCustomFieldList := _PaginatedCustomFieldList{} err = json.Unmarshal(data, &varPaginatedCustomFieldList) @@ -289,3 +306,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 00815cc84c..90f980178f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCustomLinkList{} // PaginatedCustomLinkList struct for PaginatedCustomLinkList type PaginatedCustomLinkList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CustomLink `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CustomLink `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedCustomLinkList) 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 *PaginatedCustomLinkList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedCustomLinkList) SetResults(v []CustomLink) { o.Results = v } + func (o PaginatedCustomLinkList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedCustomLinkList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedCustomLinkList := _PaginatedCustomLinkList{} err = json.Unmarshal(data, &varPaginatedCustomLinkList) @@ -289,3 +306,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 260f045b2d..02ae05e0e5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDataFileList{} // PaginatedDataFileList struct for PaginatedDataFileList type PaginatedDataFileList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DataFile `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DataFile `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedDataFileList) 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 *PaginatedDataFileList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedDataFileList) SetResults(v []DataFile) { o.Results = v } + func (o PaginatedDataFileList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedDataFileList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedDataFileList := _PaginatedDataFileList{} err = json.Unmarshal(data, &varPaginatedDataFileList) @@ -289,3 +306,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 326295e6d9..552c33b3e9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDataSourceList{} // PaginatedDataSourceList struct for PaginatedDataSourceList type PaginatedDataSourceList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DataSource `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DataSource `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedDataSourceList) 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 *PaginatedDataSourceList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedDataSourceList) SetResults(v []DataSource) { o.Results = v } + func (o PaginatedDataSourceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedDataSourceList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedDataSourceList := _PaginatedDataSourceList{} err = json.Unmarshal(data, &varPaginatedDataSourceList) @@ -289,3 +306,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 c83d4e2c60..a0dc320458 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceBayList{} // PaginatedDeviceBayList struct for PaginatedDeviceBayList type PaginatedDeviceBayList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceBay `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceBay `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedDeviceBayList) 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 *PaginatedDeviceBayList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedDeviceBayList) SetResults(v []DeviceBay) { o.Results = v } + func (o PaginatedDeviceBayList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedDeviceBayList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedDeviceBayList := _PaginatedDeviceBayList{} err = json.Unmarshal(data, &varPaginatedDeviceBayList) @@ -289,3 +306,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 45928db4d5..ae720f12dc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceBayTemplateList{} // PaginatedDeviceBayTemplateList struct for PaginatedDeviceBayTemplateList type PaginatedDeviceBayTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceBayTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceBayTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedDeviceBayTemplateList) 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 *PaginatedDeviceBayTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedDeviceBayTemplateList) SetResults(v []DeviceBayTemplate) { o.Results = v } + func (o PaginatedDeviceBayTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedDeviceBayTemplateList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedDeviceBayTemplateList := _PaginatedDeviceBayTemplateList{} err = json.Unmarshal(data, &varPaginatedDeviceBayTemplateList) @@ -289,3 +306,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 15f1f91b8c..0c4798f6f1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceRoleList{} // PaginatedDeviceRoleList struct for PaginatedDeviceRoleList type PaginatedDeviceRoleList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceRole `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceRole `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedDeviceRoleList) 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 *PaginatedDeviceRoleList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedDeviceRoleList) SetResults(v []DeviceRole) { o.Results = v } + func (o PaginatedDeviceRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedDeviceRoleList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedDeviceRoleList := _PaginatedDeviceRoleList{} err = json.Unmarshal(data, &varPaginatedDeviceRoleList) @@ -289,3 +306,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 66636b1bf8..3f3e6f2d5a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceTypeList{} // PaginatedDeviceTypeList struct for PaginatedDeviceTypeList type PaginatedDeviceTypeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceType `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceType `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedDeviceTypeList) 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 *PaginatedDeviceTypeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedDeviceTypeList) SetResults(v []DeviceType) { o.Results = v } + func (o PaginatedDeviceTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedDeviceTypeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedDeviceTypeList := _PaginatedDeviceTypeList{} err = json.Unmarshal(data, &varPaginatedDeviceTypeList) @@ -289,3 +306,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 654c3dff0b..025f9d90f6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedDeviceWithConfigContextList{} // PaginatedDeviceWithConfigContextList struct for PaginatedDeviceWithConfigContextList type PaginatedDeviceWithConfigContextList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceWithConfigContext `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceWithConfigContext `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedDeviceWithConfigContextList) 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 *PaginatedDeviceWithConfigContextList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedDeviceWithConfigContextList) SetResults(v []DeviceWithConfigCo o.Results = v } + func (o PaginatedDeviceWithConfigContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedDeviceWithConfigContextList) UnmarshalJSON(data []byte) (err e "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedDeviceWithConfigContextList := _PaginatedDeviceWithConfigContextList{} err = json.Unmarshal(data, &varPaginatedDeviceWithConfigContextList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedDeviceWithConfigContextList) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go index 0d05d05cdb..968355ff66 100644 --- a/model_paginated_event_rule_list.go +++ b/model_paginated_event_rule_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedEventRuleList{} // PaginatedEventRuleList struct for PaginatedEventRuleList type PaginatedEventRuleList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []EventRule `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []EventRule `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedEventRuleList) 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 *PaginatedEventRuleList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedEventRuleList) HasNext() bool { func (o *PaginatedEventRuleList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedEventRuleList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedEventRuleList) HasPrevious() bool { func (o *PaginatedEventRuleList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedEventRuleList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedEventRuleList) SetResults(v []EventRule) { o.Results = v } + func (o PaginatedEventRuleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedEventRuleList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedEventRuleList := _PaginatedEventRuleList{} err = json.Unmarshal(data, &varPaginatedEventRuleList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedEventRuleList) UnmarshalJSON(src []byte) error { 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 d1160be70a..b8033e0199 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedExportTemplateList{} // PaginatedExportTemplateList struct for PaginatedExportTemplateList type PaginatedExportTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ExportTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ExportTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedExportTemplateList) 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 *PaginatedExportTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedExportTemplateList) SetResults(v []ExportTemplate) { o.Results = v } + func (o PaginatedExportTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedExportTemplateList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedExportTemplateList := _PaginatedExportTemplateList{} err = json.Unmarshal(data, &varPaginatedExportTemplateList) @@ -289,3 +306,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 45ede081cc..c549e9e283 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFHRPGroupAssignmentList{} // PaginatedFHRPGroupAssignmentList struct for PaginatedFHRPGroupAssignmentList type PaginatedFHRPGroupAssignmentList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FHRPGroupAssignment `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FHRPGroupAssignment `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedFHRPGroupAssignmentList) 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 *PaginatedFHRPGroupAssignmentList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedFHRPGroupAssignmentList) SetResults(v []FHRPGroupAssignment) { o.Results = v } + func (o PaginatedFHRPGroupAssignmentList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedFHRPGroupAssignmentList) UnmarshalJSON(data []byte) (err error "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedFHRPGroupAssignmentList := _PaginatedFHRPGroupAssignmentList{} err = json.Unmarshal(data, &varPaginatedFHRPGroupAssignmentList) @@ -289,3 +306,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 a0faea7598..485ee313d9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFHRPGroupList{} // PaginatedFHRPGroupList struct for PaginatedFHRPGroupList type PaginatedFHRPGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FHRPGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FHRPGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedFHRPGroupList) 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 *PaginatedFHRPGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedFHRPGroupList) SetResults(v []FHRPGroup) { o.Results = v } + func (o PaginatedFHRPGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedFHRPGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedFHRPGroupList := _PaginatedFHRPGroupList{} err = json.Unmarshal(data, &varPaginatedFHRPGroupList) @@ -289,3 +306,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 4e6f4d89fb..0467ad4e04 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFrontPortList{} // PaginatedFrontPortList struct for PaginatedFrontPortList type PaginatedFrontPortList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FrontPort `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FrontPort `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedFrontPortList) 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 *PaginatedFrontPortList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedFrontPortList) SetResults(v []FrontPort) { o.Results = v } + func (o PaginatedFrontPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedFrontPortList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedFrontPortList := _PaginatedFrontPortList{} err = json.Unmarshal(data, &varPaginatedFrontPortList) @@ -289,3 +306,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 66bfe434b8..e95948f585 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedFrontPortTemplateList{} // PaginatedFrontPortTemplateList struct for PaginatedFrontPortTemplateList type PaginatedFrontPortTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FrontPortTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FrontPortTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedFrontPortTemplateList) 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 *PaginatedFrontPortTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedFrontPortTemplateList) SetResults(v []FrontPortTemplate) { o.Results = v } + func (o PaginatedFrontPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedFrontPortTemplateList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedFrontPortTemplateList := _PaginatedFrontPortTemplateList{} err = json.Unmarshal(data, &varPaginatedFrontPortTemplateList) @@ -289,3 +306,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 4c9d727810..d7bc1b10cf 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedGroupList{} // PaginatedGroupList struct for PaginatedGroupList type PaginatedGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Group `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Group `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedGroupList) 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 *PaginatedGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedGroupList) SetResults(v []Group) { o.Results = v } + func (o PaginatedGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedGroupList := _PaginatedGroupList{} err = json.Unmarshal(data, &varPaginatedGroupList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go index f49bbcfd25..ffc91fb768 100644 --- a/model_paginated_ike_policy_list.go +++ b/model_paginated_ike_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIKEPolicyList{} // PaginatedIKEPolicyList struct for PaginatedIKEPolicyList type PaginatedIKEPolicyList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IKEPolicy `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IKEPolicy `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedIKEPolicyList) 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 *PaginatedIKEPolicyList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedIKEPolicyList) HasNext() bool { func (o *PaginatedIKEPolicyList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedIKEPolicyList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedIKEPolicyList) HasPrevious() bool { func (o *PaginatedIKEPolicyList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedIKEPolicyList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedIKEPolicyList) SetResults(v []IKEPolicy) { o.Results = v } + func (o PaginatedIKEPolicyList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedIKEPolicyList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedIKEPolicyList := _PaginatedIKEPolicyList{} err = json.Unmarshal(data, &varPaginatedIKEPolicyList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedIKEPolicyList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go index 7a9cb122bb..3622a68fcd 100644 --- a/model_paginated_ike_proposal_list.go +++ b/model_paginated_ike_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIKEProposalList{} // PaginatedIKEProposalList struct for PaginatedIKEProposalList type PaginatedIKEProposalList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IKEProposal `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IKEProposal `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedIKEProposalList) 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 *PaginatedIKEProposalList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedIKEProposalList) HasNext() bool { func (o *PaginatedIKEProposalList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedIKEProposalList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedIKEProposalList) HasPrevious() bool { func (o *PaginatedIKEProposalList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedIKEProposalList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedIKEProposalList) SetResults(v []IKEProposal) { o.Results = v } + func (o PaginatedIKEProposalList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedIKEProposalList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedIKEProposalList := _PaginatedIKEProposalList{} err = json.Unmarshal(data, &varPaginatedIKEProposalList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedIKEProposalList) 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 0dcc7260c8..5f70a09d7a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedImageAttachmentList{} // PaginatedImageAttachmentList struct for PaginatedImageAttachmentList type PaginatedImageAttachmentList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ImageAttachment `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ImageAttachment `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedImageAttachmentList) 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 *PaginatedImageAttachmentList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedImageAttachmentList) SetResults(v []ImageAttachment) { o.Results = v } + func (o PaginatedImageAttachmentList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedImageAttachmentList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedImageAttachmentList := _PaginatedImageAttachmentList{} err = json.Unmarshal(data, &varPaginatedImageAttachmentList) @@ -289,3 +306,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 9ea763c865..7e66b46b4f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInterfaceList{} // PaginatedInterfaceList struct for PaginatedInterfaceList type PaginatedInterfaceList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Interface `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Interface `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedInterfaceList) 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 *PaginatedInterfaceList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedInterfaceList) SetResults(v []Interface) { o.Results = v } + func (o PaginatedInterfaceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedInterfaceList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedInterfaceList := _PaginatedInterfaceList{} err = json.Unmarshal(data, &varPaginatedInterfaceList) @@ -289,3 +306,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 c7f17dff34..bcd5282d22 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInterfaceTemplateList{} // PaginatedInterfaceTemplateList struct for PaginatedInterfaceTemplateList type PaginatedInterfaceTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InterfaceTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InterfaceTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedInterfaceTemplateList) 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 *PaginatedInterfaceTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedInterfaceTemplateList) SetResults(v []InterfaceTemplate) { o.Results = v } + func (o PaginatedInterfaceTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedInterfaceTemplateList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedInterfaceTemplateList := _PaginatedInterfaceTemplateList{} err = json.Unmarshal(data, &varPaginatedInterfaceTemplateList) @@ -289,3 +306,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 8eae06c5de..1df6d0f7e1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemList{} // PaginatedInventoryItemList struct for PaginatedInventoryItemList type PaginatedInventoryItemList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InventoryItem `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InventoryItem `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedInventoryItemList) 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 *PaginatedInventoryItemList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedInventoryItemList) SetResults(v []InventoryItem) { o.Results = v } + func (o PaginatedInventoryItemList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedInventoryItemList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedInventoryItemList := _PaginatedInventoryItemList{} err = json.Unmarshal(data, &varPaginatedInventoryItemList) @@ -289,3 +306,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 7a3dfa86ab..e3c30bd99c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemRoleList{} // PaginatedInventoryItemRoleList struct for PaginatedInventoryItemRoleList type PaginatedInventoryItemRoleList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InventoryItemRole `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InventoryItemRole `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedInventoryItemRoleList) 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 *PaginatedInventoryItemRoleList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedInventoryItemRoleList) SetResults(v []InventoryItemRole) { o.Results = v } + func (o PaginatedInventoryItemRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedInventoryItemRoleList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedInventoryItemRoleList := _PaginatedInventoryItemRoleList{} err = json.Unmarshal(data, &varPaginatedInventoryItemRoleList) @@ -289,3 +306,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 8e1ebbaad3..33038a5d6a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedInventoryItemTemplateList{} // PaginatedInventoryItemTemplateList struct for PaginatedInventoryItemTemplateList type PaginatedInventoryItemTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InventoryItemTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InventoryItemTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedInventoryItemTemplateList) 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 *PaginatedInventoryItemTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedInventoryItemTemplateList) SetResults(v []InventoryItemTemplat o.Results = v } + func (o PaginatedInventoryItemTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedInventoryItemTemplateList) UnmarshalJSON(data []byte) (err err "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedInventoryItemTemplateList := _PaginatedInventoryItemTemplateList{} err = json.Unmarshal(data, &varPaginatedInventoryItemTemplateList) @@ -289,3 +306,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 71c624ba55..38c79c1070 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPAddressList{} // PaginatedIPAddressList struct for PaginatedIPAddressList type PaginatedIPAddressList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IPAddress `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IPAddress `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedIPAddressList) 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 *PaginatedIPAddressList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedIPAddressList) SetResults(v []IPAddress) { o.Results = v } + func (o PaginatedIPAddressList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedIPAddressList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedIPAddressList := _PaginatedIPAddressList{} err = json.Unmarshal(data, &varPaginatedIPAddressList) @@ -289,3 +306,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 64b6c2ca53..b96caae2e5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPRangeList{} // PaginatedIPRangeList struct for PaginatedIPRangeList type PaginatedIPRangeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IPRange `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IPRange `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedIPRangeList) 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 *PaginatedIPRangeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedIPRangeList) SetResults(v []IPRange) { o.Results = v } + func (o PaginatedIPRangeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedIPRangeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedIPRangeList := _PaginatedIPRangeList{} err = json.Unmarshal(data, &varPaginatedIPRangeList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedIPRangeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go index 3904a40213..062e431284 100644 --- a/model_paginated_ip_sec_policy_list.go +++ b/model_paginated_ip_sec_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecPolicyList{} // PaginatedIPSecPolicyList struct for PaginatedIPSecPolicyList type PaginatedIPSecPolicyList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IPSecPolicy `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IPSecPolicy `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedIPSecPolicyList) 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 *PaginatedIPSecPolicyList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedIPSecPolicyList) HasNext() bool { func (o *PaginatedIPSecPolicyList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedIPSecPolicyList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedIPSecPolicyList) HasPrevious() bool { func (o *PaginatedIPSecPolicyList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedIPSecPolicyList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedIPSecPolicyList) SetResults(v []IPSecPolicy) { o.Results = v } + func (o PaginatedIPSecPolicyList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedIPSecPolicyList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedIPSecPolicyList := _PaginatedIPSecPolicyList{} err = json.Unmarshal(data, &varPaginatedIPSecPolicyList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedIPSecPolicyList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go index 13e5dc8cc0..2c384b639a 100644 --- a/model_paginated_ip_sec_profile_list.go +++ b/model_paginated_ip_sec_profile_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecProfileList{} // PaginatedIPSecProfileList struct for PaginatedIPSecProfileList type PaginatedIPSecProfileList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IPSecProfile `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IPSecProfile `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedIPSecProfileList) 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 *PaginatedIPSecProfileList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedIPSecProfileList) HasNext() bool { func (o *PaginatedIPSecProfileList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedIPSecProfileList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedIPSecProfileList) HasPrevious() bool { func (o *PaginatedIPSecProfileList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedIPSecProfileList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedIPSecProfileList) SetResults(v []IPSecProfile) { o.Results = v } + func (o PaginatedIPSecProfileList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedIPSecProfileList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedIPSecProfileList := _PaginatedIPSecProfileList{} err = json.Unmarshal(data, &varPaginatedIPSecProfileList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedIPSecProfileList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go index 562d884cfd..0c737d8565 100644 --- a/model_paginated_ip_sec_proposal_list.go +++ b/model_paginated_ip_sec_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedIPSecProposalList{} // PaginatedIPSecProposalList struct for PaginatedIPSecProposalList type PaginatedIPSecProposalList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IPSecProposal `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IPSecProposal `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedIPSecProposalList) 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 *PaginatedIPSecProposalList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedIPSecProposalList) HasNext() bool { func (o *PaginatedIPSecProposalList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedIPSecProposalList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedIPSecProposalList) HasPrevious() bool { func (o *PaginatedIPSecProposalList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedIPSecProposalList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedIPSecProposalList) SetResults(v []IPSecProposal) { o.Results = v } + func (o PaginatedIPSecProposalList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedIPSecProposalList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedIPSecProposalList := _PaginatedIPSecProposalList{} err = json.Unmarshal(data, &varPaginatedIPSecProposalList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedIPSecProposalList) 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 9c5266b906..dc249d4786 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedJobList{} // PaginatedJobList struct for PaginatedJobList type PaginatedJobList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Job `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Job `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedJobList) 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 *PaginatedJobList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedJobList) SetResults(v []Job) { o.Results = v } + func (o PaginatedJobList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedJobList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedJobList := _PaginatedJobList{} err = json.Unmarshal(data, &varPaginatedJobList) @@ -289,3 +306,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 39deffe63b..84d5fe120b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedJournalEntryList{} // PaginatedJournalEntryList struct for PaginatedJournalEntryList type PaginatedJournalEntryList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []JournalEntry `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []JournalEntry `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedJournalEntryList) 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 *PaginatedJournalEntryList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedJournalEntryList) SetResults(v []JournalEntry) { o.Results = v } + func (o PaginatedJournalEntryList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedJournalEntryList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedJournalEntryList := _PaginatedJournalEntryList{} err = json.Unmarshal(data, &varPaginatedJournalEntryList) @@ -289,3 +306,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 130fb6318e..cb0fc993b3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedL2VPNList{} // PaginatedL2VPNList struct for PaginatedL2VPNList type PaginatedL2VPNList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []L2VPN `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []L2VPN `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedL2VPNList) 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 *PaginatedL2VPNList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedL2VPNList) SetResults(v []L2VPN) { o.Results = v } + func (o PaginatedL2VPNList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedL2VPNList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedL2VPNList := _PaginatedL2VPNList{} err = json.Unmarshal(data, &varPaginatedL2VPNList) @@ -289,3 +306,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 6fdc179aeb..6696f6c5ab 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedL2VPNTerminationList{} // PaginatedL2VPNTerminationList struct for PaginatedL2VPNTerminationList type PaginatedL2VPNTerminationList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []L2VPNTermination `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []L2VPNTermination `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedL2VPNTerminationList) 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 *PaginatedL2VPNTerminationList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedL2VPNTerminationList) SetResults(v []L2VPNTermination) { o.Results = v } + func (o PaginatedL2VPNTerminationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedL2VPNTerminationList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedL2VPNTerminationList := _PaginatedL2VPNTerminationList{} err = json.Unmarshal(data, &varPaginatedL2VPNTerminationList) @@ -289,3 +306,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 303ddb6f14..1d68887a33 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedLocationList{} // PaginatedLocationList struct for PaginatedLocationList type PaginatedLocationList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Location `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Location `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedLocationList) 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 *PaginatedLocationList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedLocationList) SetResults(v []Location) { o.Results = v } + func (o PaginatedLocationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedLocationList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedLocationList := _PaginatedLocationList{} err = json.Unmarshal(data, &varPaginatedLocationList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedLocationList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_mac_address_list.go b/model_paginated_mac_address_list.go new file mode 100644 index 0000000000..0c88aea693 --- /dev/null +++ b/model_paginated_mac_address_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedMACAddressList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedMACAddressList{} + +// PaginatedMACAddressList struct for PaginatedMACAddressList +type PaginatedMACAddressList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []MACAddress `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedMACAddressList PaginatedMACAddressList + +// NewPaginatedMACAddressList instantiates a new PaginatedMACAddressList 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 NewPaginatedMACAddressList(count int32, results []MACAddress) *PaginatedMACAddressList { + this := PaginatedMACAddressList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedMACAddressListWithDefaults instantiates a new PaginatedMACAddressList 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 NewPaginatedMACAddressListWithDefaults() *PaginatedMACAddressList { + this := PaginatedMACAddressList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedMACAddressList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedMACAddressList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedMACAddressList) 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 *PaginatedMACAddressList) 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 *PaginatedMACAddressList) 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 *PaginatedMACAddressList) 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 *PaginatedMACAddressList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedMACAddressList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedMACAddressList) 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 *PaginatedMACAddressList) 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 *PaginatedMACAddressList) 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 *PaginatedMACAddressList) 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 *PaginatedMACAddressList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedMACAddressList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedMACAddressList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedMACAddressList) GetResults() []MACAddress { + if o == nil { + var ret []MACAddress + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedMACAddressList) GetResultsOk() ([]MACAddress, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedMACAddressList) SetResults(v []MACAddress) { + o.Results = v +} + + +func (o PaginatedMACAddressList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedMACAddressList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedMACAddressList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedMACAddressList := _PaginatedMACAddressList{} + + err = json.Unmarshal(data, &varPaginatedMACAddressList) + + if err != nil { + return err + } + + *o = PaginatedMACAddressList(varPaginatedMACAddressList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedMACAddressList struct { + value *PaginatedMACAddressList + isSet bool +} + +func (v NullablePaginatedMACAddressList) Get() *PaginatedMACAddressList { + return v.value +} + +func (v *NullablePaginatedMACAddressList) Set(val *PaginatedMACAddressList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedMACAddressList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedMACAddressList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedMACAddressList(val *PaginatedMACAddressList) *NullablePaginatedMACAddressList { + return &NullablePaginatedMACAddressList{value: val, isSet: true} +} + +func (v NullablePaginatedMACAddressList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedMACAddressList) 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 1642d70e38..db0df170f0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedManufacturerList{} // PaginatedManufacturerList struct for PaginatedManufacturerList type PaginatedManufacturerList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Manufacturer `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Manufacturer `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedManufacturerList) 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 *PaginatedManufacturerList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedManufacturerList) SetResults(v []Manufacturer) { o.Results = v } + func (o PaginatedManufacturerList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedManufacturerList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedManufacturerList := _PaginatedManufacturerList{} err = json.Unmarshal(data, &varPaginatedManufacturerList) @@ -289,3 +306,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 70cca7b2d2..3b858c4baa 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleBayList{} // PaginatedModuleBayList struct for PaginatedModuleBayList type PaginatedModuleBayList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ModuleBay `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ModuleBay `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedModuleBayList) 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 *PaginatedModuleBayList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedModuleBayList) SetResults(v []ModuleBay) { o.Results = v } + func (o PaginatedModuleBayList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedModuleBayList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedModuleBayList := _PaginatedModuleBayList{} err = json.Unmarshal(data, &varPaginatedModuleBayList) @@ -289,3 +306,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 af3faa856f..7993dd4991 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleBayTemplateList{} // PaginatedModuleBayTemplateList struct for PaginatedModuleBayTemplateList type PaginatedModuleBayTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ModuleBayTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ModuleBayTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedModuleBayTemplateList) 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 *PaginatedModuleBayTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedModuleBayTemplateList) SetResults(v []ModuleBayTemplate) { o.Results = v } + func (o PaginatedModuleBayTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedModuleBayTemplateList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedModuleBayTemplateList := _PaginatedModuleBayTemplateList{} err = json.Unmarshal(data, &varPaginatedModuleBayTemplateList) @@ -289,3 +306,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 af55ae2928..7d27709921 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleList{} // PaginatedModuleList struct for PaginatedModuleList type PaginatedModuleList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Module `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Module `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedModuleList) 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 *PaginatedModuleList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedModuleList) SetResults(v []Module) { o.Results = v } + func (o PaginatedModuleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedModuleList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedModuleList := _PaginatedModuleList{} err = json.Unmarshal(data, &varPaginatedModuleList) @@ -289,3 +306,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 375f3b8f4d..3dd60510b2 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedModuleTypeList{} // PaginatedModuleTypeList struct for PaginatedModuleTypeList type PaginatedModuleTypeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ModuleType `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ModuleType `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedModuleTypeList) 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 *PaginatedModuleTypeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedModuleTypeList) SetResults(v []ModuleType) { o.Results = v } + func (o PaginatedModuleTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedModuleTypeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedModuleTypeList := _PaginatedModuleTypeList{} err = json.Unmarshal(data, &varPaginatedModuleTypeList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedModuleTypeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_notification_group_list.go b/model_paginated_notification_group_list.go new file mode 100644 index 0000000000..7c1bcd1d27 --- /dev/null +++ b/model_paginated_notification_group_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedNotificationGroupList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedNotificationGroupList{} + +// PaginatedNotificationGroupList struct for PaginatedNotificationGroupList +type PaginatedNotificationGroupList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []NotificationGroup `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedNotificationGroupList PaginatedNotificationGroupList + +// NewPaginatedNotificationGroupList instantiates a new PaginatedNotificationGroupList 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 NewPaginatedNotificationGroupList(count int32, results []NotificationGroup) *PaginatedNotificationGroupList { + this := PaginatedNotificationGroupList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedNotificationGroupListWithDefaults instantiates a new PaginatedNotificationGroupList 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 NewPaginatedNotificationGroupListWithDefaults() *PaginatedNotificationGroupList { + this := PaginatedNotificationGroupList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedNotificationGroupList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationGroupList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedNotificationGroupList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) 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 *PaginatedNotificationGroupList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedNotificationGroupList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedNotificationGroupList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedNotificationGroupList) GetResults() []NotificationGroup { + if o == nil { + var ret []NotificationGroup + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationGroupList) GetResultsOk() ([]NotificationGroup, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedNotificationGroupList) SetResults(v []NotificationGroup) { + o.Results = v +} + + +func (o PaginatedNotificationGroupList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedNotificationGroupList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedNotificationGroupList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedNotificationGroupList := _PaginatedNotificationGroupList{} + + err = json.Unmarshal(data, &varPaginatedNotificationGroupList) + + if err != nil { + return err + } + + *o = PaginatedNotificationGroupList(varPaginatedNotificationGroupList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedNotificationGroupList struct { + value *PaginatedNotificationGroupList + isSet bool +} + +func (v NullablePaginatedNotificationGroupList) Get() *PaginatedNotificationGroupList { + return v.value +} + +func (v *NullablePaginatedNotificationGroupList) Set(val *PaginatedNotificationGroupList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedNotificationGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedNotificationGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedNotificationGroupList(val *PaginatedNotificationGroupList) *NullablePaginatedNotificationGroupList { + return &NullablePaginatedNotificationGroupList{value: val, isSet: true} +} + +func (v NullablePaginatedNotificationGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedNotificationGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_notification_list.go b/model_paginated_notification_list.go new file mode 100644 index 0000000000..f2b013c2f9 --- /dev/null +++ b/model_paginated_notification_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedNotificationList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedNotificationList{} + +// PaginatedNotificationList struct for PaginatedNotificationList +type PaginatedNotificationList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Notification `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedNotificationList PaginatedNotificationList + +// NewPaginatedNotificationList instantiates a new PaginatedNotificationList 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 NewPaginatedNotificationList(count int32, results []Notification) *PaginatedNotificationList { + this := PaginatedNotificationList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedNotificationListWithDefaults instantiates a new PaginatedNotificationList 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 NewPaginatedNotificationListWithDefaults() *PaginatedNotificationList { + this := PaginatedNotificationList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedNotificationList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedNotificationList) 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 *PaginatedNotificationList) 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 *PaginatedNotificationList) 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 *PaginatedNotificationList) 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 *PaginatedNotificationList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedNotificationList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedNotificationList) 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 *PaginatedNotificationList) 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 *PaginatedNotificationList) 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 *PaginatedNotificationList) 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 *PaginatedNotificationList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedNotificationList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedNotificationList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedNotificationList) GetResults() []Notification { + if o == nil { + var ret []Notification + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationList) GetResultsOk() ([]Notification, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedNotificationList) SetResults(v []Notification) { + o.Results = v +} + + +func (o PaginatedNotificationList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedNotificationList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedNotificationList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedNotificationList := _PaginatedNotificationList{} + + err = json.Unmarshal(data, &varPaginatedNotificationList) + + if err != nil { + return err + } + + *o = PaginatedNotificationList(varPaginatedNotificationList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedNotificationList struct { + value *PaginatedNotificationList + isSet bool +} + +func (v NullablePaginatedNotificationList) Get() *PaginatedNotificationList { + return v.value +} + +func (v *NullablePaginatedNotificationList) Set(val *PaginatedNotificationList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedNotificationList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedNotificationList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedNotificationList(val *PaginatedNotificationList) *NullablePaginatedNotificationList { + return &NullablePaginatedNotificationList{value: val, isSet: true} +} + +func (v NullablePaginatedNotificationList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedNotificationList) 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 c4cd994e46..111c04548f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectChangeList{} // PaginatedObjectChangeList struct for PaginatedObjectChangeList type PaginatedObjectChangeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ObjectChange `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ObjectChange `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedObjectChangeList) 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 *PaginatedObjectChangeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedObjectChangeList) SetResults(v []ObjectChange) { o.Results = v } + func (o PaginatedObjectChangeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedObjectChangeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedObjectChangeList := _PaginatedObjectChangeList{} err = json.Unmarshal(data, &varPaginatedObjectChangeList) @@ -289,3 +306,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 2484322f10..ed7a317fa2 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectPermissionList{} // PaginatedObjectPermissionList struct for PaginatedObjectPermissionList type PaginatedObjectPermissionList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ObjectPermission `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ObjectPermission `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedObjectPermissionList) 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 *PaginatedObjectPermissionList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedObjectPermissionList) SetResults(v []ObjectPermission) { o.Results = v } + func (o PaginatedObjectPermissionList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedObjectPermissionList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedObjectPermissionList := _PaginatedObjectPermissionList{} err = json.Unmarshal(data, &varPaginatedObjectPermissionList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedObjectPermissionList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_object_type_list.go b/model_paginated_object_type_list.go index 1a24ef8877..0b774a8f9f 100644 --- a/model_paginated_object_type_list.go +++ b/model_paginated_object_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedObjectTypeList{} // PaginatedObjectTypeList struct for PaginatedObjectTypeList type PaginatedObjectTypeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ObjectType `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ObjectType `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedObjectTypeList) 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 *PaginatedObjectTypeList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedObjectTypeList) HasNext() bool { func (o *PaginatedObjectTypeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedObjectTypeList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedObjectTypeList) HasPrevious() bool { func (o *PaginatedObjectTypeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedObjectTypeList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedObjectTypeList) SetResults(v []ObjectType) { o.Results = v } + func (o PaginatedObjectTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedObjectTypeList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedObjectTypeList := _PaginatedObjectTypeList{} err = json.Unmarshal(data, &varPaginatedObjectTypeList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedObjectTypeList) 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 a5637f7863..0ff7b9d436 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPlatformList{} // PaginatedPlatformList struct for PaginatedPlatformList type PaginatedPlatformList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Platform `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Platform `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPlatformList) 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 *PaginatedPlatformList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPlatformList) SetResults(v []Platform) { o.Results = v } + func (o PaginatedPlatformList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPlatformList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPlatformList := _PaginatedPlatformList{} err = json.Unmarshal(data, &varPaginatedPlatformList) @@ -289,3 +306,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 a90726d50f..d1121662ae 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerFeedList{} // PaginatedPowerFeedList struct for PaginatedPowerFeedList type PaginatedPowerFeedList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerFeed `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerFeed `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPowerFeedList) 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 *PaginatedPowerFeedList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPowerFeedList) SetResults(v []PowerFeed) { o.Results = v } + func (o PaginatedPowerFeedList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPowerFeedList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPowerFeedList := _PaginatedPowerFeedList{} err = json.Unmarshal(data, &varPaginatedPowerFeedList) @@ -289,3 +306,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 42cc10417d..0aabe9df90 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerOutletList{} // PaginatedPowerOutletList struct for PaginatedPowerOutletList type PaginatedPowerOutletList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerOutlet `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerOutlet `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPowerOutletList) 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 *PaginatedPowerOutletList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPowerOutletList) SetResults(v []PowerOutlet) { o.Results = v } + func (o PaginatedPowerOutletList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPowerOutletList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPowerOutletList := _PaginatedPowerOutletList{} err = json.Unmarshal(data, &varPaginatedPowerOutletList) @@ -289,3 +306,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 dabff54c76..23a400a7b9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerOutletTemplateList{} // PaginatedPowerOutletTemplateList struct for PaginatedPowerOutletTemplateList type PaginatedPowerOutletTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerOutletTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerOutletTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPowerOutletTemplateList) 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 *PaginatedPowerOutletTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPowerOutletTemplateList) SetResults(v []PowerOutletTemplate) { o.Results = v } + func (o PaginatedPowerOutletTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPowerOutletTemplateList) UnmarshalJSON(data []byte) (err error "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPowerOutletTemplateList := _PaginatedPowerOutletTemplateList{} err = json.Unmarshal(data, &varPaginatedPowerOutletTemplateList) @@ -289,3 +306,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 a84ec93630..0c1706c4e2 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPanelList{} // PaginatedPowerPanelList struct for PaginatedPowerPanelList type PaginatedPowerPanelList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerPanel `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerPanel `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPowerPanelList) 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 *PaginatedPowerPanelList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPowerPanelList) SetResults(v []PowerPanel) { o.Results = v } + func (o PaginatedPowerPanelList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPowerPanelList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPowerPanelList := _PaginatedPowerPanelList{} err = json.Unmarshal(data, &varPaginatedPowerPanelList) @@ -289,3 +306,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 a1b1474205..b1d9325fd5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPortList{} // PaginatedPowerPortList struct for PaginatedPowerPortList type PaginatedPowerPortList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerPort `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerPort `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPowerPortList) 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 *PaginatedPowerPortList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPowerPortList) SetResults(v []PowerPort) { o.Results = v } + func (o PaginatedPowerPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPowerPortList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPowerPortList := _PaginatedPowerPortList{} err = json.Unmarshal(data, &varPaginatedPowerPortList) @@ -289,3 +306,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 d8e7091525..9e9d152bf1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPowerPortTemplateList{} // PaginatedPowerPortTemplateList struct for PaginatedPowerPortTemplateList type PaginatedPowerPortTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerPortTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerPortTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPowerPortTemplateList) 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 *PaginatedPowerPortTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPowerPortTemplateList) SetResults(v []PowerPortTemplate) { o.Results = v } + func (o PaginatedPowerPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPowerPortTemplateList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPowerPortTemplateList := _PaginatedPowerPortTemplateList{} err = json.Unmarshal(data, &varPaginatedPowerPortTemplateList) @@ -289,3 +306,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 07147ed992..afb5844849 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedPrefixList{} // PaginatedPrefixList struct for PaginatedPrefixList type PaginatedPrefixList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Prefix `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Prefix `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedPrefixList) 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 *PaginatedPrefixList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedPrefixList) SetResults(v []Prefix) { o.Results = v } + func (o PaginatedPrefixList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedPrefixList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedPrefixList := _PaginatedPrefixList{} err = json.Unmarshal(data, &varPaginatedPrefixList) @@ -289,3 +306,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 c485850387..e55fc05214 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderAccountList{} // PaginatedProviderAccountList struct for PaginatedProviderAccountList type PaginatedProviderAccountList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ProviderAccount `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ProviderAccount `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedProviderAccountList) 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 *PaginatedProviderAccountList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedProviderAccountList) SetResults(v []ProviderAccount) { o.Results = v } + func (o PaginatedProviderAccountList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedProviderAccountList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedProviderAccountList := _PaginatedProviderAccountList{} err = json.Unmarshal(data, &varPaginatedProviderAccountList) @@ -289,3 +306,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 5b180ac542..b0b58c1f87 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderList{} // PaginatedProviderList struct for PaginatedProviderList type PaginatedProviderList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Provider `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Provider `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedProviderList) 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 *PaginatedProviderList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedProviderList) SetResults(v []Provider) { o.Results = v } + func (o PaginatedProviderList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedProviderList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedProviderList := _PaginatedProviderList{} err = json.Unmarshal(data, &varPaginatedProviderList) @@ -289,3 +306,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 b97c267f7e..2d40066410 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedProviderNetworkList{} // PaginatedProviderNetworkList struct for PaginatedProviderNetworkList type PaginatedProviderNetworkList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ProviderNetwork `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ProviderNetwork `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedProviderNetworkList) 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 *PaginatedProviderNetworkList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedProviderNetworkList) SetResults(v []ProviderNetwork) { o.Results = v } + func (o PaginatedProviderNetworkList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedProviderNetworkList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedProviderNetworkList := _PaginatedProviderNetworkList{} err = json.Unmarshal(data, &varPaginatedProviderNetworkList) @@ -289,3 +306,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 f7bdd10a2a..0bb8681565 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackList{} // PaginatedRackList struct for PaginatedRackList type PaginatedRackList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Rack `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Rack `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRackList) 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 *PaginatedRackList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRackList) SetResults(v []Rack) { o.Results = v } + func (o PaginatedRackList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRackList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRackList := _PaginatedRackList{} err = json.Unmarshal(data, &varPaginatedRackList) @@ -289,3 +306,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 20a7994644..004bdc8b5f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackReservationList{} // PaginatedRackReservationList struct for PaginatedRackReservationList type PaginatedRackReservationList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RackReservation `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackReservation `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRackReservationList) 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 *PaginatedRackReservationList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRackReservationList) SetResults(v []RackReservation) { o.Results = v } + func (o PaginatedRackReservationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRackReservationList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRackReservationList := _PaginatedRackReservationList{} err = json.Unmarshal(data, &varPaginatedRackReservationList) @@ -289,3 +306,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 e15fd7e27b..c9297ce91f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackRoleList{} // PaginatedRackRoleList struct for PaginatedRackRoleList type PaginatedRackRoleList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RackRole `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackRole `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRackRoleList) 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 *PaginatedRackRoleList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRackRoleList) SetResults(v []RackRole) { o.Results = v } + func (o PaginatedRackRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRackRoleList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRackRoleList := _PaginatedRackRoleList{} err = json.Unmarshal(data, &varPaginatedRackRoleList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedRackRoleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_rack_type_list.go b/model_paginated_rack_type_list.go new file mode 100644 index 0000000000..5e496c14b2 --- /dev/null +++ b/model_paginated_rack_type_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedRackTypeList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedRackTypeList{} + +// PaginatedRackTypeList struct for PaginatedRackTypeList +type PaginatedRackTypeList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackType `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedRackTypeList PaginatedRackTypeList + +// NewPaginatedRackTypeList instantiates a new PaginatedRackTypeList 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 NewPaginatedRackTypeList(count int32, results []RackType) *PaginatedRackTypeList { + this := PaginatedRackTypeList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedRackTypeListWithDefaults instantiates a new PaginatedRackTypeList 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 NewPaginatedRackTypeListWithDefaults() *PaginatedRackTypeList { + this := PaginatedRackTypeList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedRackTypeList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedRackTypeList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedRackTypeList) 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 *PaginatedRackTypeList) 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 *PaginatedRackTypeList) 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 *PaginatedRackTypeList) 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 *PaginatedRackTypeList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedRackTypeList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedRackTypeList) 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 *PaginatedRackTypeList) 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 *PaginatedRackTypeList) 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 *PaginatedRackTypeList) 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 *PaginatedRackTypeList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedRackTypeList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedRackTypeList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedRackTypeList) GetResults() []RackType { + if o == nil { + var ret []RackType + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedRackTypeList) GetResultsOk() ([]RackType, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedRackTypeList) SetResults(v []RackType) { + o.Results = v +} + + +func (o PaginatedRackTypeList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedRackTypeList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedRackTypeList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedRackTypeList := _PaginatedRackTypeList{} + + err = json.Unmarshal(data, &varPaginatedRackTypeList) + + if err != nil { + return err + } + + *o = PaginatedRackTypeList(varPaginatedRackTypeList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedRackTypeList struct { + value *PaginatedRackTypeList + isSet bool +} + +func (v NullablePaginatedRackTypeList) Get() *PaginatedRackTypeList { + return v.value +} + +func (v *NullablePaginatedRackTypeList) Set(val *PaginatedRackTypeList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedRackTypeList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedRackTypeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedRackTypeList(val *PaginatedRackTypeList) *NullablePaginatedRackTypeList { + return &NullablePaginatedRackTypeList{value: val, isSet: true} +} + +func (v NullablePaginatedRackTypeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedRackTypeList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_rack_unit_list.go b/model_paginated_rack_unit_list.go index 6aaf2e9d78..0d68dc8de8 100644 --- a/model_paginated_rack_unit_list.go +++ b/model_paginated_rack_unit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackUnitList{} // PaginatedRackUnitList struct for PaginatedRackUnitList type PaginatedRackUnitList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RackUnit `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackUnit `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRackUnitList) 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 *PaginatedRackUnitList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedRackUnitList) HasNext() bool { func (o *PaginatedRackUnitList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRackUnitList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedRackUnitList) HasPrevious() bool { func (o *PaginatedRackUnitList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRackUnitList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedRackUnitList) SetResults(v []RackUnit) { o.Results = v } + func (o PaginatedRackUnitList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRackUnitList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRackUnitList := _PaginatedRackUnitList{} err = json.Unmarshal(data, &varPaginatedRackUnitList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedRackUnitList) 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 c365786aad..43dfd15b01 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRearPortList{} // PaginatedRearPortList struct for PaginatedRearPortList type PaginatedRearPortList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RearPort `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RearPort `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRearPortList) 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 *PaginatedRearPortList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRearPortList) SetResults(v []RearPort) { o.Results = v } + func (o PaginatedRearPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRearPortList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRearPortList := _PaginatedRearPortList{} err = json.Unmarshal(data, &varPaginatedRearPortList) @@ -289,3 +306,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 72c089dfbb..01f78ab6e0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRearPortTemplateList{} // PaginatedRearPortTemplateList struct for PaginatedRearPortTemplateList type PaginatedRearPortTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RearPortTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RearPortTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRearPortTemplateList) 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 *PaginatedRearPortTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRearPortTemplateList) SetResults(v []RearPortTemplate) { o.Results = v } + func (o PaginatedRearPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRearPortTemplateList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRearPortTemplateList := _PaginatedRearPortTemplateList{} err = json.Unmarshal(data, &varPaginatedRearPortTemplateList) @@ -289,3 +306,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 3107d80079..e073879afd 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRegionList{} // PaginatedRegionList struct for PaginatedRegionList type PaginatedRegionList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Region `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Region `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRegionList) 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 *PaginatedRegionList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRegionList) SetResults(v []Region) { o.Results = v } + func (o PaginatedRegionList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRegionList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRegionList := _PaginatedRegionList{} err = json.Unmarshal(data, &varPaginatedRegionList) @@ -289,3 +306,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 87507a75df..7ba85b28ae 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRIRList{} // PaginatedRIRList struct for PaginatedRIRList type PaginatedRIRList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RIR `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RIR `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRIRList) 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 *PaginatedRIRList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRIRList) SetResults(v []RIR) { o.Results = v } + func (o PaginatedRIRList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRIRList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRIRList := _PaginatedRIRList{} err = json.Unmarshal(data, &varPaginatedRIRList) @@ -289,3 +306,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 c22ab93d15..7bb39be9b6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRoleList{} // PaginatedRoleList struct for PaginatedRoleList type PaginatedRoleList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Role `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Role `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRoleList) 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 *PaginatedRoleList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRoleList) SetResults(v []Role) { o.Results = v } + func (o PaginatedRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRoleList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRoleList := _PaginatedRoleList{} err = json.Unmarshal(data, &varPaginatedRoleList) @@ -289,3 +306,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 b6f02c9060..a6c9a5bc16 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRouteTargetList{} // PaginatedRouteTargetList struct for PaginatedRouteTargetList type PaginatedRouteTargetList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RouteTarget `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RouteTarget `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedRouteTargetList) 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 *PaginatedRouteTargetList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedRouteTargetList) SetResults(v []RouteTarget) { o.Results = v } + func (o PaginatedRouteTargetList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedRouteTargetList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedRouteTargetList := _PaginatedRouteTargetList{} err = json.Unmarshal(data, &varPaginatedRouteTargetList) @@ -289,3 +306,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 485e610813..ad1a147730 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSavedFilterList{} // PaginatedSavedFilterList struct for PaginatedSavedFilterList type PaginatedSavedFilterList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []SavedFilter `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []SavedFilter `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedSavedFilterList) 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 *PaginatedSavedFilterList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedSavedFilterList) SetResults(v []SavedFilter) { o.Results = v } + func (o PaginatedSavedFilterList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedSavedFilterList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedSavedFilterList := _PaginatedSavedFilterList{} err = json.Unmarshal(data, &varPaginatedSavedFilterList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedSavedFilterList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_script_list.go b/model_paginated_script_list.go index 72fec520fb..e542d803f2 100644 --- a/model_paginated_script_list.go +++ b/model_paginated_script_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedScriptList{} // PaginatedScriptList struct for PaginatedScriptList type PaginatedScriptList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Script `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Script `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedScriptList) 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 *PaginatedScriptList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedScriptList) HasNext() bool { func (o *PaginatedScriptList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedScriptList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedScriptList) HasPrevious() bool { func (o *PaginatedScriptList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedScriptList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedScriptList) SetResults(v []Script) { o.Results = v } + func (o PaginatedScriptList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedScriptList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedScriptList := _PaginatedScriptList{} err = json.Unmarshal(data, &varPaginatedScriptList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedScriptList) 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 08b5508bec..5bcfe188dd 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedServiceList{} // PaginatedServiceList struct for PaginatedServiceList type PaginatedServiceList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Service `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Service `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedServiceList) 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 *PaginatedServiceList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedServiceList) SetResults(v []Service) { o.Results = v } + func (o PaginatedServiceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedServiceList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedServiceList := _PaginatedServiceList{} err = json.Unmarshal(data, &varPaginatedServiceList) @@ -289,3 +306,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 e86b9abb98..6ab6228664 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedServiceTemplateList{} // PaginatedServiceTemplateList struct for PaginatedServiceTemplateList type PaginatedServiceTemplateList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ServiceTemplate `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ServiceTemplate `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedServiceTemplateList) 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 *PaginatedServiceTemplateList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedServiceTemplateList) SetResults(v []ServiceTemplate) { o.Results = v } + func (o PaginatedServiceTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedServiceTemplateList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedServiceTemplateList := _PaginatedServiceTemplateList{} err = json.Unmarshal(data, &varPaginatedServiceTemplateList) @@ -289,3 +306,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 ddcd397c90..41cbeb465a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSiteGroupList{} // PaginatedSiteGroupList struct for PaginatedSiteGroupList type PaginatedSiteGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []SiteGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []SiteGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedSiteGroupList) 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 *PaginatedSiteGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedSiteGroupList) SetResults(v []SiteGroup) { o.Results = v } + func (o PaginatedSiteGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedSiteGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedSiteGroupList := _PaginatedSiteGroupList{} err = json.Unmarshal(data, &varPaginatedSiteGroupList) @@ -289,3 +306,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 a580aaedaa..f1e98b4eee 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSiteList{} // PaginatedSiteList struct for PaginatedSiteList type PaginatedSiteList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Site `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Site `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedSiteList) 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 *PaginatedSiteList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedSiteList) SetResults(v []Site) { o.Results = v } + func (o PaginatedSiteList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedSiteList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedSiteList := _PaginatedSiteList{} err = json.Unmarshal(data, &varPaginatedSiteList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedSiteList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_subscription_list.go b/model_paginated_subscription_list.go new file mode 100644 index 0000000000..548f37a94b --- /dev/null +++ b/model_paginated_subscription_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedSubscriptionList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedSubscriptionList{} + +// PaginatedSubscriptionList struct for PaginatedSubscriptionList +type PaginatedSubscriptionList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Subscription `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedSubscriptionList PaginatedSubscriptionList + +// NewPaginatedSubscriptionList instantiates a new PaginatedSubscriptionList 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 NewPaginatedSubscriptionList(count int32, results []Subscription) *PaginatedSubscriptionList { + this := PaginatedSubscriptionList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedSubscriptionListWithDefaults instantiates a new PaginatedSubscriptionList 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 NewPaginatedSubscriptionListWithDefaults() *PaginatedSubscriptionList { + this := PaginatedSubscriptionList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedSubscriptionList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedSubscriptionList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedSubscriptionList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) 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 *PaginatedSubscriptionList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedSubscriptionList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedSubscriptionList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedSubscriptionList) GetResults() []Subscription { + if o == nil { + var ret []Subscription + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedSubscriptionList) GetResultsOk() ([]Subscription, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedSubscriptionList) SetResults(v []Subscription) { + o.Results = v +} + + +func (o PaginatedSubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedSubscriptionList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedSubscriptionList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedSubscriptionList := _PaginatedSubscriptionList{} + + err = json.Unmarshal(data, &varPaginatedSubscriptionList) + + if err != nil { + return err + } + + *o = PaginatedSubscriptionList(varPaginatedSubscriptionList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedSubscriptionList struct { + value *PaginatedSubscriptionList + isSet bool +} + +func (v NullablePaginatedSubscriptionList) Get() *PaginatedSubscriptionList { + return v.value +} + +func (v *NullablePaginatedSubscriptionList) Set(val *PaginatedSubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedSubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedSubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedSubscriptionList(val *PaginatedSubscriptionList) *NullablePaginatedSubscriptionList { + return &NullablePaginatedSubscriptionList{value: val, isSet: true} +} + +func (v NullablePaginatedSubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedSubscriptionList) 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 129bb69b60..9ed881ed8a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTagList{} // PaginatedTagList struct for PaginatedTagList type PaginatedTagList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Tag `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Tag `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedTagList) 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 *PaginatedTagList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedTagList) SetResults(v []Tag) { o.Results = v } + func (o PaginatedTagList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedTagList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedTagList := _PaginatedTagList{} err = json.Unmarshal(data, &varPaginatedTagList) @@ -289,3 +306,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 5fcddc5435..720ebf60ea 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTenantGroupList{} // PaginatedTenantGroupList struct for PaginatedTenantGroupList type PaginatedTenantGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []TenantGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []TenantGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedTenantGroupList) 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 *PaginatedTenantGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedTenantGroupList) SetResults(v []TenantGroup) { o.Results = v } + func (o PaginatedTenantGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedTenantGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedTenantGroupList := _PaginatedTenantGroupList{} err = json.Unmarshal(data, &varPaginatedTenantGroupList) @@ -289,3 +306,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 812dfe3864..c6b8bfcf47 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTenantList{} // PaginatedTenantList struct for PaginatedTenantList type PaginatedTenantList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Tenant `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Tenant `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedTenantList) 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 *PaginatedTenantList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedTenantList) SetResults(v []Tenant) { o.Results = v } + func (o PaginatedTenantList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedTenantList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedTenantList := _PaginatedTenantList{} err = json.Unmarshal(data, &varPaginatedTenantList) @@ -289,3 +306,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 9a4bd2ab94..6fe9a4b3f9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTokenList{} // PaginatedTokenList struct for PaginatedTokenList type PaginatedTokenList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Token `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Token `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedTokenList) 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 *PaginatedTokenList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedTokenList) SetResults(v []Token) { o.Results = v } + func (o PaginatedTokenList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedTokenList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedTokenList := _PaginatedTokenList{} err = json.Unmarshal(data, &varPaginatedTokenList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedTokenList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go index df1b972fb6..7a96da2d95 100644 --- a/model_paginated_tunnel_group_list.go +++ b/model_paginated_tunnel_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelGroupList{} // PaginatedTunnelGroupList struct for PaginatedTunnelGroupList type PaginatedTunnelGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []TunnelGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []TunnelGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedTunnelGroupList) 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 *PaginatedTunnelGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedTunnelGroupList) HasNext() bool { func (o *PaginatedTunnelGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedTunnelGroupList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedTunnelGroupList) HasPrevious() bool { func (o *PaginatedTunnelGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedTunnelGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedTunnelGroupList) SetResults(v []TunnelGroup) { o.Results = v } + func (o PaginatedTunnelGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedTunnelGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedTunnelGroupList := _PaginatedTunnelGroupList{} err = json.Unmarshal(data, &varPaginatedTunnelGroupList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedTunnelGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go index 768bdd00e9..176094b330 100644 --- a/model_paginated_tunnel_list.go +++ b/model_paginated_tunnel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelList{} // PaginatedTunnelList struct for PaginatedTunnelList type PaginatedTunnelList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Tunnel `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Tunnel `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedTunnelList) 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 *PaginatedTunnelList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedTunnelList) HasNext() bool { func (o *PaginatedTunnelList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedTunnelList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedTunnelList) HasPrevious() bool { func (o *PaginatedTunnelList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedTunnelList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedTunnelList) SetResults(v []Tunnel) { o.Results = v } + func (o PaginatedTunnelList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedTunnelList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedTunnelList := _PaginatedTunnelList{} err = json.Unmarshal(data, &varPaginatedTunnelList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedTunnelList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go index f81a84ee00..7d674df31f 100644 --- a/model_paginated_tunnel_termination_list.go +++ b/model_paginated_tunnel_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedTunnelTerminationList{} // PaginatedTunnelTerminationList struct for PaginatedTunnelTerminationList type PaginatedTunnelTerminationList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []TunnelTermination `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []TunnelTermination `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedTunnelTerminationList) 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 *PaginatedTunnelTerminationList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedTunnelTerminationList) HasNext() bool { func (o *PaginatedTunnelTerminationList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedTunnelTerminationList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedTunnelTerminationList) HasPrevious() bool { func (o *PaginatedTunnelTerminationList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedTunnelTerminationList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedTunnelTerminationList) SetResults(v []TunnelTermination) { o.Results = v } + func (o PaginatedTunnelTerminationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedTunnelTerminationList) UnmarshalJSON(data []byte) (err error) "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedTunnelTerminationList := _PaginatedTunnelTerminationList{} err = json.Unmarshal(data, &varPaginatedTunnelTerminationList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedTunnelTerminationList) 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 2d6a259134..d87e8e1924 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedUserList{} // PaginatedUserList struct for PaginatedUserList type PaginatedUserList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []User `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []User `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedUserList) 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 *PaginatedUserList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedUserList) SetResults(v []User) { o.Results = v } + func (o PaginatedUserList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedUserList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedUserList := _PaginatedUserList{} err = json.Unmarshal(data, &varPaginatedUserList) @@ -289,3 +306,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 6971b8d292..ab9d5b7c1e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualChassisList{} // PaginatedVirtualChassisList struct for PaginatedVirtualChassisList type PaginatedVirtualChassisList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VirtualChassis `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualChassis `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVirtualChassisList) 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 *PaginatedVirtualChassisList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedVirtualChassisList) SetResults(v []VirtualChassis) { o.Results = v } + func (o PaginatedVirtualChassisList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVirtualChassisList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVirtualChassisList := _PaginatedVirtualChassisList{} err = json.Unmarshal(data, &varPaginatedVirtualChassisList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedVirtualChassisList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_virtual_circuit_list.go b/model_paginated_virtual_circuit_list.go new file mode 100644 index 0000000000..9c11087047 --- /dev/null +++ b/model_paginated_virtual_circuit_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedVirtualCircuitList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedVirtualCircuitList{} + +// PaginatedVirtualCircuitList struct for PaginatedVirtualCircuitList +type PaginatedVirtualCircuitList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualCircuit `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedVirtualCircuitList PaginatedVirtualCircuitList + +// NewPaginatedVirtualCircuitList instantiates a new PaginatedVirtualCircuitList 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 NewPaginatedVirtualCircuitList(count int32, results []VirtualCircuit) *PaginatedVirtualCircuitList { + this := PaginatedVirtualCircuitList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedVirtualCircuitListWithDefaults instantiates a new PaginatedVirtualCircuitList 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 NewPaginatedVirtualCircuitListWithDefaults() *PaginatedVirtualCircuitList { + this := PaginatedVirtualCircuitList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedVirtualCircuitList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedVirtualCircuitList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedVirtualCircuitList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) 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 *PaginatedVirtualCircuitList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedVirtualCircuitList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedVirtualCircuitList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedVirtualCircuitList) GetResults() []VirtualCircuit { + if o == nil { + var ret []VirtualCircuit + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedVirtualCircuitList) GetResultsOk() ([]VirtualCircuit, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedVirtualCircuitList) SetResults(v []VirtualCircuit) { + o.Results = v +} + + +func (o PaginatedVirtualCircuitList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedVirtualCircuitList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedVirtualCircuitList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedVirtualCircuitList := _PaginatedVirtualCircuitList{} + + err = json.Unmarshal(data, &varPaginatedVirtualCircuitList) + + if err != nil { + return err + } + + *o = PaginatedVirtualCircuitList(varPaginatedVirtualCircuitList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedVirtualCircuitList struct { + value *PaginatedVirtualCircuitList + isSet bool +} + +func (v NullablePaginatedVirtualCircuitList) Get() *PaginatedVirtualCircuitList { + return v.value +} + +func (v *NullablePaginatedVirtualCircuitList) Set(val *PaginatedVirtualCircuitList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedVirtualCircuitList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedVirtualCircuitList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedVirtualCircuitList(val *PaginatedVirtualCircuitList) *NullablePaginatedVirtualCircuitList { + return &NullablePaginatedVirtualCircuitList{value: val, isSet: true} +} + +func (v NullablePaginatedVirtualCircuitList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedVirtualCircuitList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_virtual_circuit_termination_list.go b/model_paginated_virtual_circuit_termination_list.go new file mode 100644 index 0000000000..a27e64cd80 --- /dev/null +++ b/model_paginated_virtual_circuit_termination_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedVirtualCircuitTerminationList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedVirtualCircuitTerminationList{} + +// PaginatedVirtualCircuitTerminationList struct for PaginatedVirtualCircuitTerminationList +type PaginatedVirtualCircuitTerminationList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualCircuitTermination `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedVirtualCircuitTerminationList PaginatedVirtualCircuitTerminationList + +// NewPaginatedVirtualCircuitTerminationList instantiates a new PaginatedVirtualCircuitTerminationList 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 NewPaginatedVirtualCircuitTerminationList(count int32, results []VirtualCircuitTermination) *PaginatedVirtualCircuitTerminationList { + this := PaginatedVirtualCircuitTerminationList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedVirtualCircuitTerminationListWithDefaults instantiates a new PaginatedVirtualCircuitTerminationList 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 NewPaginatedVirtualCircuitTerminationListWithDefaults() *PaginatedVirtualCircuitTerminationList { + this := PaginatedVirtualCircuitTerminationList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedVirtualCircuitTerminationList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedVirtualCircuitTerminationList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedVirtualCircuitTerminationList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) 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 *PaginatedVirtualCircuitTerminationList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedVirtualCircuitTerminationList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedVirtualCircuitTerminationList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedVirtualCircuitTerminationList) GetResults() []VirtualCircuitTermination { + if o == nil { + var ret []VirtualCircuitTermination + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedVirtualCircuitTerminationList) GetResultsOk() ([]VirtualCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedVirtualCircuitTerminationList) SetResults(v []VirtualCircuitTermination) { + o.Results = v +} + + +func (o PaginatedVirtualCircuitTerminationList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedVirtualCircuitTerminationList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedVirtualCircuitTerminationList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedVirtualCircuitTerminationList := _PaginatedVirtualCircuitTerminationList{} + + err = json.Unmarshal(data, &varPaginatedVirtualCircuitTerminationList) + + if err != nil { + return err + } + + *o = PaginatedVirtualCircuitTerminationList(varPaginatedVirtualCircuitTerminationList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedVirtualCircuitTerminationList struct { + value *PaginatedVirtualCircuitTerminationList + isSet bool +} + +func (v NullablePaginatedVirtualCircuitTerminationList) Get() *PaginatedVirtualCircuitTerminationList { + return v.value +} + +func (v *NullablePaginatedVirtualCircuitTerminationList) Set(val *PaginatedVirtualCircuitTerminationList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedVirtualCircuitTerminationList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedVirtualCircuitTerminationList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedVirtualCircuitTerminationList(val *PaginatedVirtualCircuitTerminationList) *NullablePaginatedVirtualCircuitTerminationList { + return &NullablePaginatedVirtualCircuitTerminationList{value: val, isSet: true} +} + +func (v NullablePaginatedVirtualCircuitTerminationList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedVirtualCircuitTerminationList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_virtual_circuit_type_list.go b/model_paginated_virtual_circuit_type_list.go new file mode 100644 index 0000000000..e8ff34b133 --- /dev/null +++ b/model_paginated_virtual_circuit_type_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedVirtualCircuitTypeList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedVirtualCircuitTypeList{} + +// PaginatedVirtualCircuitTypeList struct for PaginatedVirtualCircuitTypeList +type PaginatedVirtualCircuitTypeList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualCircuitType `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedVirtualCircuitTypeList PaginatedVirtualCircuitTypeList + +// NewPaginatedVirtualCircuitTypeList instantiates a new PaginatedVirtualCircuitTypeList 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 NewPaginatedVirtualCircuitTypeList(count int32, results []VirtualCircuitType) *PaginatedVirtualCircuitTypeList { + this := PaginatedVirtualCircuitTypeList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedVirtualCircuitTypeListWithDefaults instantiates a new PaginatedVirtualCircuitTypeList 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 NewPaginatedVirtualCircuitTypeListWithDefaults() *PaginatedVirtualCircuitTypeList { + this := PaginatedVirtualCircuitTypeList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedVirtualCircuitTypeList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedVirtualCircuitTypeList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedVirtualCircuitTypeList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) 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 *PaginatedVirtualCircuitTypeList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedVirtualCircuitTypeList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedVirtualCircuitTypeList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedVirtualCircuitTypeList) GetResults() []VirtualCircuitType { + if o == nil { + var ret []VirtualCircuitType + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedVirtualCircuitTypeList) GetResultsOk() ([]VirtualCircuitType, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedVirtualCircuitTypeList) SetResults(v []VirtualCircuitType) { + o.Results = v +} + + +func (o PaginatedVirtualCircuitTypeList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedVirtualCircuitTypeList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedVirtualCircuitTypeList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedVirtualCircuitTypeList := _PaginatedVirtualCircuitTypeList{} + + err = json.Unmarshal(data, &varPaginatedVirtualCircuitTypeList) + + if err != nil { + return err + } + + *o = PaginatedVirtualCircuitTypeList(varPaginatedVirtualCircuitTypeList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedVirtualCircuitTypeList struct { + value *PaginatedVirtualCircuitTypeList + isSet bool +} + +func (v NullablePaginatedVirtualCircuitTypeList) Get() *PaginatedVirtualCircuitTypeList { + return v.value +} + +func (v *NullablePaginatedVirtualCircuitTypeList) Set(val *PaginatedVirtualCircuitTypeList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedVirtualCircuitTypeList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedVirtualCircuitTypeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedVirtualCircuitTypeList(val *PaginatedVirtualCircuitTypeList) *NullablePaginatedVirtualCircuitTypeList { + return &NullablePaginatedVirtualCircuitTypeList{value: val, isSet: true} +} + +func (v NullablePaginatedVirtualCircuitTypeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedVirtualCircuitTypeList) 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 3c5f35c090..c8b647afb5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualDeviceContextList{} // PaginatedVirtualDeviceContextList struct for PaginatedVirtualDeviceContextList type PaginatedVirtualDeviceContextList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VirtualDeviceContext `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualDeviceContext `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVirtualDeviceContextList) 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 *PaginatedVirtualDeviceContextList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedVirtualDeviceContextList) SetResults(v []VirtualDeviceContext) o.Results = v } + func (o PaginatedVirtualDeviceContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVirtualDeviceContextList) UnmarshalJSON(data []byte) (err erro "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVirtualDeviceContextList := _PaginatedVirtualDeviceContextList{} err = json.Unmarshal(data, &varPaginatedVirtualDeviceContextList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedVirtualDeviceContextList) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go index 1a16c146d7..76d9cfd803 100644 --- a/model_paginated_virtual_disk_list.go +++ b/model_paginated_virtual_disk_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualDiskList{} // PaginatedVirtualDiskList struct for PaginatedVirtualDiskList type PaginatedVirtualDiskList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VirtualDisk `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualDisk `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVirtualDiskList) 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 *PaginatedVirtualDiskList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,6 @@ func (o *PaginatedVirtualDiskList) HasNext() bool { func (o *PaginatedVirtualDiskList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVirtualDiskList) SetNextNil() { o.Next.Set(nil) @@ -147,7 +147,6 @@ func (o *PaginatedVirtualDiskList) HasPrevious() bool { func (o *PaginatedVirtualDiskList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVirtualDiskList) SetPreviousNil() { o.Previous.Set(nil) @@ -182,8 +181,9 @@ func (o *PaginatedVirtualDiskList) SetResults(v []VirtualDisk) { o.Results = v } + func (o PaginatedVirtualDiskList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVirtualDiskList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVirtualDiskList := _PaginatedVirtualDiskList{} err = json.Unmarshal(data, &varPaginatedVirtualDiskList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedVirtualDiskList) UnmarshalJSON(src []byte) error { 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 a4ee1f21d9..e1cc80dd84 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVirtualMachineWithConfigContextList{} // PaginatedVirtualMachineWithConfigContextList struct for PaginatedVirtualMachineWithConfigContextList type PaginatedVirtualMachineWithConfigContextList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VirtualMachineWithConfigContext `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualMachineWithConfigContext `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVirtualMachineWithConfigContextList) 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 *PaginatedVirtualMachineWithConfigContextList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedVirtualMachineWithConfigContextList) SetResults(v []VirtualMac o.Results = v } + func (o PaginatedVirtualMachineWithConfigContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(data []byte "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVirtualMachineWithConfigContextList := _PaginatedVirtualMachineWithConfigContextList{} err = json.Unmarshal(data, &varPaginatedVirtualMachineWithConfigContextList) @@ -289,3 +306,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 cd2ac49512..f4e057f02d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANGroupList{} // PaginatedVLANGroupList struct for PaginatedVLANGroupList type PaginatedVLANGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VLANGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VLANGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVLANGroupList) 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 *PaginatedVLANGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedVLANGroupList) SetResults(v []VLANGroup) { o.Results = v } + func (o PaginatedVLANGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVLANGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVLANGroupList := _PaginatedVLANGroupList{} err = json.Unmarshal(data, &varPaginatedVLANGroupList) @@ -289,3 +306,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 28d8921ca7..11d085582f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVLANList{} // PaginatedVLANList struct for PaginatedVLANList type PaginatedVLANList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VLAN `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VLAN `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVLANList) 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 *PaginatedVLANList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedVLANList) SetResults(v []VLAN) { o.Results = v } + func (o PaginatedVLANList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVLANList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVLANList := _PaginatedVLANList{} err = json.Unmarshal(data, &varPaginatedVLANList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedVLANList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_vlan_translation_policy_list.go b/model_paginated_vlan_translation_policy_list.go new file mode 100644 index 0000000000..0a6fc7dfc5 --- /dev/null +++ b/model_paginated_vlan_translation_policy_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedVLANTranslationPolicyList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedVLANTranslationPolicyList{} + +// PaginatedVLANTranslationPolicyList struct for PaginatedVLANTranslationPolicyList +type PaginatedVLANTranslationPolicyList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VLANTranslationPolicy `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedVLANTranslationPolicyList PaginatedVLANTranslationPolicyList + +// NewPaginatedVLANTranslationPolicyList instantiates a new PaginatedVLANTranslationPolicyList 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 NewPaginatedVLANTranslationPolicyList(count int32, results []VLANTranslationPolicy) *PaginatedVLANTranslationPolicyList { + this := PaginatedVLANTranslationPolicyList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedVLANTranslationPolicyListWithDefaults instantiates a new PaginatedVLANTranslationPolicyList 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 NewPaginatedVLANTranslationPolicyListWithDefaults() *PaginatedVLANTranslationPolicyList { + this := PaginatedVLANTranslationPolicyList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedVLANTranslationPolicyList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedVLANTranslationPolicyList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedVLANTranslationPolicyList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) 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 *PaginatedVLANTranslationPolicyList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedVLANTranslationPolicyList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedVLANTranslationPolicyList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedVLANTranslationPolicyList) GetResults() []VLANTranslationPolicy { + if o == nil { + var ret []VLANTranslationPolicy + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedVLANTranslationPolicyList) GetResultsOk() ([]VLANTranslationPolicy, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedVLANTranslationPolicyList) SetResults(v []VLANTranslationPolicy) { + o.Results = v +} + + +func (o PaginatedVLANTranslationPolicyList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedVLANTranslationPolicyList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedVLANTranslationPolicyList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedVLANTranslationPolicyList := _PaginatedVLANTranslationPolicyList{} + + err = json.Unmarshal(data, &varPaginatedVLANTranslationPolicyList) + + if err != nil { + return err + } + + *o = PaginatedVLANTranslationPolicyList(varPaginatedVLANTranslationPolicyList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedVLANTranslationPolicyList struct { + value *PaginatedVLANTranslationPolicyList + isSet bool +} + +func (v NullablePaginatedVLANTranslationPolicyList) Get() *PaginatedVLANTranslationPolicyList { + return v.value +} + +func (v *NullablePaginatedVLANTranslationPolicyList) Set(val *PaginatedVLANTranslationPolicyList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedVLANTranslationPolicyList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedVLANTranslationPolicyList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedVLANTranslationPolicyList(val *PaginatedVLANTranslationPolicyList) *NullablePaginatedVLANTranslationPolicyList { + return &NullablePaginatedVLANTranslationPolicyList{value: val, isSet: true} +} + +func (v NullablePaginatedVLANTranslationPolicyList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedVLANTranslationPolicyList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_vlan_translation_rule_list.go b/model_paginated_vlan_translation_rule_list.go new file mode 100644 index 0000000000..a411056214 --- /dev/null +++ b/model_paginated_vlan_translation_rule_list.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedVLANTranslationRuleList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedVLANTranslationRuleList{} + +// PaginatedVLANTranslationRuleList struct for PaginatedVLANTranslationRuleList +type PaginatedVLANTranslationRuleList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VLANTranslationRule `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedVLANTranslationRuleList PaginatedVLANTranslationRuleList + +// NewPaginatedVLANTranslationRuleList instantiates a new PaginatedVLANTranslationRuleList 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 NewPaginatedVLANTranslationRuleList(count int32, results []VLANTranslationRule) *PaginatedVLANTranslationRuleList { + this := PaginatedVLANTranslationRuleList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedVLANTranslationRuleListWithDefaults instantiates a new PaginatedVLANTranslationRuleList 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 NewPaginatedVLANTranslationRuleListWithDefaults() *PaginatedVLANTranslationRuleList { + this := PaginatedVLANTranslationRuleList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedVLANTranslationRuleList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedVLANTranslationRuleList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedVLANTranslationRuleList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) 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 *PaginatedVLANTranslationRuleList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedVLANTranslationRuleList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedVLANTranslationRuleList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedVLANTranslationRuleList) GetResults() []VLANTranslationRule { + if o == nil { + var ret []VLANTranslationRule + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedVLANTranslationRuleList) GetResultsOk() ([]VLANTranslationRule, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedVLANTranslationRuleList) SetResults(v []VLANTranslationRule) { + o.Results = v +} + + +func (o PaginatedVLANTranslationRuleList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedVLANTranslationRuleList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedVLANTranslationRuleList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varPaginatedVLANTranslationRuleList := _PaginatedVLANTranslationRuleList{} + + err = json.Unmarshal(data, &varPaginatedVLANTranslationRuleList) + + if err != nil { + return err + } + + *o = PaginatedVLANTranslationRuleList(varPaginatedVLANTranslationRuleList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedVLANTranslationRuleList struct { + value *PaginatedVLANTranslationRuleList + isSet bool +} + +func (v NullablePaginatedVLANTranslationRuleList) Get() *PaginatedVLANTranslationRuleList { + return v.value +} + +func (v *NullablePaginatedVLANTranslationRuleList) Set(val *PaginatedVLANTranslationRuleList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedVLANTranslationRuleList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedVLANTranslationRuleList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedVLANTranslationRuleList(val *PaginatedVLANTranslationRuleList) *NullablePaginatedVLANTranslationRuleList { + return &NullablePaginatedVLANTranslationRuleList{value: val, isSet: true} +} + +func (v NullablePaginatedVLANTranslationRuleList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedVLANTranslationRuleList) 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 c7d824fa8f..4f2f670817 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVMInterfaceList{} // PaginatedVMInterfaceList struct for PaginatedVMInterfaceList type PaginatedVMInterfaceList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VMInterface `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VMInterface `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVMInterfaceList) 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 *PaginatedVMInterfaceList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedVMInterfaceList) SetResults(v []VMInterface) { o.Results = v } + func (o PaginatedVMInterfaceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVMInterfaceList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVMInterfaceList := _PaginatedVMInterfaceList{} err = json.Unmarshal(data, &varPaginatedVMInterfaceList) @@ -289,3 +306,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 95d2794d7f..e59cb63613 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedVRFList{} // PaginatedVRFList struct for PaginatedVRFList type PaginatedVRFList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VRF `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VRF `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedVRFList) 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 *PaginatedVRFList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedVRFList) SetResults(v []VRF) { o.Results = v } + func (o PaginatedVRFList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedVRFList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedVRFList := _PaginatedVRFList{} err = json.Unmarshal(data, &varPaginatedVRFList) @@ -289,3 +306,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 2428042434..4c23ea74cc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWebhookList{} // PaginatedWebhookList struct for PaginatedWebhookList type PaginatedWebhookList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Webhook `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Webhook `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedWebhookList) 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 *PaginatedWebhookList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedWebhookList) SetResults(v []Webhook) { o.Results = v } + func (o PaginatedWebhookList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedWebhookList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedWebhookList := _PaginatedWebhookList{} err = json.Unmarshal(data, &varPaginatedWebhookList) @@ -289,3 +306,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 c311ebbe7a..cc2c7e3abc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLANGroupList{} // PaginatedWirelessLANGroupList struct for PaginatedWirelessLANGroupList type PaginatedWirelessLANGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []WirelessLANGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []WirelessLANGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedWirelessLANGroupList) 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 *PaginatedWirelessLANGroupList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedWirelessLANGroupList) SetResults(v []WirelessLANGroup) { o.Results = v } + func (o PaginatedWirelessLANGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedWirelessLANGroupList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedWirelessLANGroupList := _PaginatedWirelessLANGroupList{} err = json.Unmarshal(data, &varPaginatedWirelessLANGroupList) @@ -289,3 +306,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 cc98bc1708..3de14fbc31 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLANList{} // PaginatedWirelessLANList struct for PaginatedWirelessLANList type PaginatedWirelessLANList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []WirelessLAN `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []WirelessLAN `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedWirelessLANList) 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 *PaginatedWirelessLANList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedWirelessLANList) SetResults(v []WirelessLAN) { o.Results = v } + func (o PaginatedWirelessLANList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedWirelessLANList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedWirelessLANList := _PaginatedWirelessLANList{} err = json.Unmarshal(data, &varPaginatedWirelessLANList) @@ -289,3 +306,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 6fb1c17dfc..4877480026 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedWirelessLinkList{} // PaginatedWirelessLinkList struct for PaginatedWirelessLinkList type PaginatedWirelessLinkList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []WirelessLink `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []WirelessLink `json:"results"` AdditionalProperties map[string]interface{} } @@ -72,6 +72,7 @@ func (o *PaginatedWirelessLinkList) 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 *PaginatedWirelessLinkList) GetNext() string { if o == nil || IsNil(o.Next.Get()) { @@ -104,7 +105,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) @@ -147,7 +147,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) @@ -182,8 +181,9 @@ func (o *PaginatedWirelessLinkList) SetResults(v []WirelessLink) { o.Results = v } + func (o PaginatedWirelessLinkList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,20 +217,37 @@ func (o *PaginatedWirelessLinkList) UnmarshalJSON(data []byte) (err error) { "results", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPaginatedWirelessLinkList := _PaginatedWirelessLinkList{} err = json.Unmarshal(data, &varPaginatedWirelessLinkList) @@ -289,3 +306,5 @@ func (v *NullablePaginatedWirelessLinkList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_parent_child_status.go b/model_parent_child_status.go index 06c4e1b126..2622914e0c 100644 --- a/model_parent_child_status.go +++ b/model_parent_child_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type ParentChildStatus string // List of Parent_child_status const ( - PARENTCHILDSTATUS_CHILD ParentChildStatus = "child" + PARENTCHILDSTATUS_CHILD ParentChildStatus = "child" PARENTCHILDSTATUS_PARENT ParentChildStatus = "parent" ) @@ -108,3 +108,4 @@ func (v *NullableParentChildStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_parent_child_status_1.go b/model_parent_child_status_1.go index cb1bfa7039..faa282e9c1 100644 --- a/model_parent_child_status_1.go +++ b/model_parent_child_status_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type ParentChildStatus1 string // List of Parent_child_status_1 const ( PARENTCHILDSTATUS1_PARENT ParentChildStatus1 = "parent" - PARENTCHILDSTATUS1_CHILD ParentChildStatus1 = "child" - PARENTCHILDSTATUS1_EMPTY ParentChildStatus1 = "" + PARENTCHILDSTATUS1_CHILD ParentChildStatus1 = "child" + PARENTCHILDSTATUS1_EMPTY ParentChildStatus1 = "" ) // All allowed values of ParentChildStatus1 enum @@ -110,3 +110,4 @@ func (v *NullableParentChildStatus1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_asn_range_request.go b/model_patched_asn_range_request.go index 1b27ab6437..2a802ce37c 100644 --- a/model_patched_asn_range_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedASNRangeRequest{} // PatchedASNRangeRequest Adds support for custom fields and tags. type PatchedASNRangeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Start *int64 `json:"start,omitempty"` - End *int64 `json:"end,omitempty"` - Tenant NullableTenantRequest `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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Start *int64 `json:"start,omitempty"` + End *int64 `json:"end,omitempty"` + Tenant NullableBriefTenantRequest `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{} } @@ -115,9 +115,9 @@ func (o *PatchedASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedASNRangeRequest) GetRir() RIRRequest { +func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -125,7 +125,7 @@ func (o *PatchedASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedASNRangeRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedASNRangeRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } @@ -211,9 +211,9 @@ func (o *PatchedASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { +func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -222,7 +222,7 @@ func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { // 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 *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -238,11 +238,10 @@ func (o *PatchedASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedASNRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -350,7 +349,7 @@ func (o *PatchedASNRangeRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedASNRangeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -458,3 +457,5 @@ func (v *NullablePatchedASNRangeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_asn_request.go b/model_patched_asn_request.go index 141b3513fa..28972da09e 100644 --- a/model_patched_asn_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedASNRequest{} // PatchedASNRequest Adds support for custom fields and tags. type PatchedASNRequest struct { // 16- or 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` - Rir NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `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,omitempty"` + Rir NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `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{} } @@ -82,9 +82,9 @@ func (o *PatchedASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetRir() RIRRequest { +func (o *PatchedASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -93,7 +93,7 @@ func (o *PatchedASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir 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 *PatchedASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -109,11 +109,10 @@ func (o *PatchedASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *PatchedASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } - // SetRirNil sets the value for Rir to be an explicit nil func (o *PatchedASNRequest) SetRirNil() { o.Rir.Set(nil) @@ -125,9 +124,9 @@ func (o *PatchedASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetTenant() TenantRequest { +func (o *PatchedASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -136,7 +135,7 @@ func (o *PatchedASNRequest) GetTenant() TenantRequest { // 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 *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -152,11 +151,10 @@ func (o *PatchedASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedASNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -296,7 +294,7 @@ func (o *PatchedASNRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedASNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -396,3 +394,5 @@ func (v *NullablePatchedASNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_bookmark_request.go b/model_patched_bookmark_request.go index 77f3b9cf41..9aaadac13c 100644 --- a/model_patched_bookmark_request.go +++ b/model_patched_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedBookmarkRequest{} // PatchedBookmarkRequest 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 PatchedBookmarkRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - User *UserRequest `json:"user,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,9 +109,9 @@ func (o *PatchedBookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedBookmarkRequest) GetUser() UserRequest { +func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -119,7 +119,7 @@ func (o *PatchedBookmarkRequest) GetUser() UserRequest { // 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 *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -135,13 +135,13 @@ func (o *PatchedBookmarkRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedBookmarkRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest) { o.User = &v } func (o PatchedBookmarkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -225,3 +225,5 @@ func (v *NullablePatchedBookmarkRequest) 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 f7377564b0..5a46fe3c5a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCableTerminationRequest{} // PatchedCableTerminationRequest Adds support for custom fields and tags. type PatchedCableTerminationRequest struct { - Cable *int32 `json:"cable,omitempty"` - CableEnd *End1 `json:"cable_end,omitempty"` - TerminationType *string `json:"termination_type,omitempty"` - TerminationId *int64 `json:"termination_id,omitempty"` + Cable *int32 `json:"cable,omitempty"` + CableEnd *End1 `json:"cable_end,omitempty"` + TerminationType *string `json:"termination_type,omitempty"` + TerminationId *int64 `json:"termination_id,omitempty"` AdditionalProperties map[string]interface{} } @@ -174,7 +174,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 } @@ -262,3 +262,5 @@ func (v *NullablePatchedCableTerminationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_circuit_group_request.go b/model_patched_circuit_group_request.go new file mode 100644 index 0000000000..fe9b9d84a3 --- /dev/null +++ b/model_patched_circuit_group_request.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedCircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedCircuitGroupRequest{} + +// PatchedCircuitGroupRequest Adds support for custom fields and tags. +type PatchedCircuitGroupRequest struct { + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedCircuitGroupRequest PatchedCircuitGroupRequest + +// NewPatchedCircuitGroupRequest instantiates a new PatchedCircuitGroupRequest 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 NewPatchedCircuitGroupRequest() *PatchedCircuitGroupRequest { + this := PatchedCircuitGroupRequest{} + return &this +} + +// NewPatchedCircuitGroupRequestWithDefaults instantiates a new PatchedCircuitGroupRequest 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 NewPatchedCircuitGroupRequestWithDefaults() *PatchedCircuitGroupRequest { + this := PatchedCircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetName(v string) { + o.Name = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PatchedCircuitGroupRequest) SetSlug(v string) { + o.Slug = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *PatchedCircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedCircuitGroupRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *PatchedCircuitGroupRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *PatchedCircuitGroupRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) 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 *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedCircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedCircuitGroupRequest := _PatchedCircuitGroupRequest{} + + err = json.Unmarshal(data, &varPatchedCircuitGroupRequest) + + if err != nil { + return err + } + + *o = PatchedCircuitGroupRequest(varPatchedCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedCircuitGroupRequest struct { + value *PatchedCircuitGroupRequest + isSet bool +} + +func (v NullablePatchedCircuitGroupRequest) Get() *PatchedCircuitGroupRequest { + return v.value +} + +func (v *NullablePatchedCircuitGroupRequest) Set(val *PatchedCircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedCircuitGroupRequest(val *PatchedCircuitGroupRequest) *NullablePatchedCircuitGroupRequest { + return &NullablePatchedCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullablePatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_circuit_termination_request.go b/model_patched_circuit_termination_request.go index 5367122df5..03a2632a74 100644 --- a/model_patched_circuit_termination_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCircuitTerminationRequest{} // PatchedCircuitTerminationRequest Adds support for custom fields and tags. type PatchedCircuitTerminationRequest struct { - Circuit *CircuitRequest `json:"circuit,omitempty"` - TermSide *Termination1 `json:"term_side,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit *BriefCircuitRequest `json:"circuit,omitempty"` + TermSide *TerminationSide1 `json:"term_side,omitempty"` + TerminationType NullableString `json:"termination_type,omitempty"` + TerminationId NullableInt32 `json:"termination_id,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -30,12 +30,12 @@ type PatchedCircuitTerminationRequest 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{} } @@ -59,9 +59,9 @@ func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminatio } // GetCircuit returns the Circuit field value if set, zero value otherwise. -func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil || IsNil(o.Circuit) { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } return *o.Circuit @@ -69,7 +69,7 @@ func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil || IsNil(o.Circuit) { return nil, false } @@ -85,15 +85,15 @@ func (o *PatchedCircuitTerminationRequest) HasCircuit() bool { return false } -// SetCircuit gets a reference to the given CircuitRequest and assigns it to the Circuit field. -func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest) { +// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field. +func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = &v } // GetTermSide returns the TermSide field value if set, zero value otherwise. -func (o *PatchedCircuitTerminationRequest) GetTermSide() Termination1 { +func (o *PatchedCircuitTerminationRequest) GetTermSide() TerminationSide1 { if o == nil || IsNil(o.TermSide) { - var ret Termination1 + var ret TerminationSide1 return ret } return *o.TermSide @@ -101,7 +101,7 @@ func (o *PatchedCircuitTerminationRequest) GetTermSide() Termination1 { // GetTermSideOk returns a tuple with the TermSide field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedCircuitTerminationRequest) GetTermSideOk() (*Termination1, bool) { +func (o *PatchedCircuitTerminationRequest) GetTermSideOk() (*TerminationSide1, bool) { if o == nil || IsNil(o.TermSide) { return nil, false } @@ -117,95 +117,93 @@ func (o *PatchedCircuitTerminationRequest) HasTermSide() bool { return false } -// SetTermSide gets a reference to the given Termination1 and assigns it to the TermSide field. -func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1) { +// SetTermSide gets a reference to the given TerminationSide1 and assigns it to the TermSide field. +func (o *PatchedCircuitTerminationRequest) SetTermSide(v TerminationSide1) { o.TermSide = &v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest +// GetTerminationType returns the TerminationType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedCircuitTerminationRequest) GetTerminationType() string { + if o == nil || IsNil(o.TerminationType.Get()) { + var ret string return ret } - return *o.Site.Get() + return *o.TerminationType.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetTerminationTypeOk returns a tuple with the TerminationType 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 *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetTerminationTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.TerminationType.Get(), o.TerminationType.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *PatchedCircuitTerminationRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasTerminationType returns a boolean if a field has been set. +func (o *PatchedCircuitTerminationRequest) HasTerminationType() bool { + if o != nil && o.TerminationType.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest) { - o.Site.Set(&v) +// SetTerminationType gets a reference to the given NullableString and assigns it to the TerminationType field. +func (o *PatchedCircuitTerminationRequest) SetTerminationType(v string) { + o.TerminationType.Set(&v) } - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *PatchedCircuitTerminationRequest) SetSiteNil() { - o.Site.Set(nil) +// SetTerminationTypeNil sets the value for TerminationType to be an explicit nil +func (o *PatchedCircuitTerminationRequest) SetTerminationTypeNil() { + o.TerminationType.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *PatchedCircuitTerminationRequest) UnsetSite() { - o.Site.Unset() +// UnsetTerminationType ensures that no value is present for TerminationType, not even an explicit nil +func (o *PatchedCircuitTerminationRequest) UnsetTerminationType() { + o.TerminationType.Unset() } -// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { - if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedCircuitTerminationRequest) GetTerminationId() int32 { + if o == nil || IsNil(o.TerminationId.Get()) { + var ret int32 return ret } - return *o.ProviderNetwork.Get() + return *o.TerminationId.Get() } -// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise +// GetTerminationIdOk returns a tuple with the TerminationId 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 *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetTerminationIdOk() (*int32, bool) { if o == nil { return nil, false } - return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet() + return o.TerminationId.Get(), o.TerminationId.IsSet() } -// HasProviderNetwork returns a boolean if a field has been set. -func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool { - if o != nil && o.ProviderNetwork.IsSet() { +// HasTerminationId returns a boolean if a field has been set. +func (o *PatchedCircuitTerminationRequest) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { return true } return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { - o.ProviderNetwork.Set(&v) +// SetTerminationId gets a reference to the given NullableInt32 and assigns it to the TerminationId field. +func (o *PatchedCircuitTerminationRequest) SetTerminationId(v int32) { + o.TerminationId.Set(&v) } - -// SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil -func (o *PatchedCircuitTerminationRequest) SetProviderNetworkNil() { - o.ProviderNetwork.Set(nil) +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *PatchedCircuitTerminationRequest) SetTerminationIdNil() { + o.TerminationId.Set(nil) } -// UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil -func (o *PatchedCircuitTerminationRequest) UnsetProviderNetwork() { - o.ProviderNetwork.Unset() +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *PatchedCircuitTerminationRequest) UnsetTerminationId() { + o.TerminationId.Unset() } // GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -240,7 +238,6 @@ func (o *PatchedCircuitTerminationRequest) HasPortSpeed() bool { func (o *PatchedCircuitTerminationRequest) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } - // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *PatchedCircuitTerminationRequest) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -283,7 +280,6 @@ func (o *PatchedCircuitTerminationRequest) HasUpstreamSpeed() bool { func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } - // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *PatchedCircuitTerminationRequest) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -487,7 +483,7 @@ func (o *PatchedCircuitTerminationRequest) SetCustomFields(v map[string]interfac } func (o PatchedCircuitTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -502,11 +498,11 @@ func (o PatchedCircuitTerminationRequest) ToMap() (map[string]interface{}, error if !IsNil(o.TermSide) { toSerialize["term_side"] = o.TermSide } - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() + if o.TerminationType.IsSet() { + toSerialize["termination_type"] = o.TerminationType.Get() } - if o.ProviderNetwork.IsSet() { - toSerialize["provider_network"] = o.ProviderNetwork.Get() + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() } if o.PortSpeed.IsSet() { toSerialize["port_speed"] = o.PortSpeed.Get() @@ -556,8 +552,8 @@ func (o *PatchedCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "circuit") delete(additionalProperties, "term_side") - delete(additionalProperties, "site") - delete(additionalProperties, "provider_network") + delete(additionalProperties, "termination_type") + delete(additionalProperties, "termination_id") delete(additionalProperties, "port_speed") delete(additionalProperties, "upstream_speed") delete(additionalProperties, "xconnect_id") @@ -607,3 +603,5 @@ func (v *NullablePatchedCircuitTerminationRequest) UnmarshalJSON(src []byte) err 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 cfb64cab6f..6dda648724 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedCircuitTypeRequest{} // PatchedCircuitTypeRequest Adds support for custom fields and tags. type PatchedCircuitTypeRequest 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + 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 *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 } @@ -336,3 +336,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 10b1fdbac5..773bd4d539 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -299,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 bcb47d3cdb..5c1343041e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -299,3 +299,5 @@ func (v *NullablePatchedClusterTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_config_context_request.go b/model_patched_config_context_request.go index f8665cfe67..c5784c23ed 100644 --- a/model_patched_config_context_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,25 +19,25 @@ var _ MappedNullable = &PatchedConfigContextRequest{} // PatchedConfigContextRequest 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 PatchedConfigContextRequest 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"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data,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"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -605,9 +605,9 @@ func (o *PatchedConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -615,7 +615,7 @@ func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -631,8 +631,8 @@ func (o *PatchedConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } @@ -670,7 +670,7 @@ func (o *PatchedConfigContextRequest) SetData(v interface{}) { } func (o PatchedConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -818,3 +818,5 @@ func (v *NullablePatchedConfigContextRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_config_template_request.go b/model_patched_config_template_request.go index f4db50b416..af6519eb2a 100644 --- a/model_patched_config_template_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedConfigTemplateRequest{} // PatchedConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type PatchedConfigTemplateRequest 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 interface{} `json:"environment_params,omitempty"` // Jinja2 template code. - TemplateCode *string `json:"template_code,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + TemplateCode *string `json:"template_code,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedConfigTemplateRequest) SetTemplateCode(v string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -189,7 +189,7 @@ func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedConfigTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } @@ -243,7 +243,7 @@ func (o *PatchedConfigTemplateRequest) SetTags(v []NestedTagRequest) { } func (o PatchedConfigTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -339,3 +339,5 @@ func (v *NullablePatchedConfigTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_contact_request.go b/model_patched_contact_request.go index d5baee7b44..ad86609a05 100644 --- a/model_patched_contact_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedContactRequest{} // PatchedContactRequest Adds support for custom fields and tags. type PatchedContactRequest struct { - Group NullableContactGroupRequest `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 NullableBriefContactGroupRequest `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{} } @@ -53,9 +53,9 @@ func NewPatchedContactRequestWithDefaults() *PatchedContactRequest { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { +func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ContactGroupRequest + var ret BriefContactGroupRequest return ret } return *o.Group.Get() @@ -64,7 +64,7 @@ func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { // GetGroupOk returns a tuple with the Group 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 *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool) { +func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { if o == nil { return nil, false } @@ -80,11 +80,10 @@ func (o *PatchedContactRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableContactGroupRequest and assigns it to the Group field. -func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest) { +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedContactRequest) SetGroupNil() { o.Group.Set(nil) @@ -416,7 +415,7 @@ func (o *PatchedContactRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedContactRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -532,3 +531,5 @@ func (v *NullablePatchedContactRequest) 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 70f7689543..37198da119 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -299,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 19833836fe..d4d66d4827 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ 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 { ObjectTypes []string `json:"object_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"` + GroupName *string `json:"group_name,omitempty"` ButtonClass *CustomLinkButtonClass `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{} } @@ -343,7 +343,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 } @@ -451,3 +451,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 eeef729d4a..1d683b61bf 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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 interface{} `json:"layout,omitempty"` - Config interface{} `json:"config,omitempty"` + Layout interface{} `json:"layout,omitempty"` + Config interface{} `json:"config,omitempty"` AdditionalProperties map[string]interface{} } @@ -110,7 +110,7 @@ func (o *PatchedDashboardRequest) SetConfig(v interface{}) { } func (o PatchedDashboardRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -190,3 +190,5 @@ func (v *NullablePatchedDashboardRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_device_bay_request.go b/model_patched_device_bay_request.go index a9acadd794..9c8015af70 100644 --- a/model_patched_device_bay_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedDeviceBayRequest{} // PatchedDeviceBayRequest Adds support for custom fields and tags. type PatchedDeviceBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `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 NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -60,7 +60,7 @@ func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedDeviceBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -178,9 +178,9 @@ func (o *PatchedDeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -189,7 +189,7 @@ func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice 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 *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -205,11 +205,10 @@ func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } - // SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil func (o *PatchedDeviceBayRequest) SetInstalledDeviceNil() { o.InstalledDevice.Set(nil) @@ -285,7 +284,7 @@ func (o *PatchedDeviceBayRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedDeviceBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -385,3 +384,5 @@ func (v *NullablePatchedDeviceBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_device_bay_template_request.go b/model_patched_device_bay_template_request.go index 0bb253897b..7cd2f64cfb 100644 --- a/model_patched_device_bay_template_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedDeviceBayTemplateRequest{} // PatchedDeviceBayTemplateRequest 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 PatchedDeviceBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,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"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,9 +48,9 @@ func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -58,7 +58,7 @@ func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } @@ -176,7 +176,7 @@ func (o *PatchedDeviceBayTemplateRequest) SetDescription(v string) { } func (o PatchedDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -264,3 +264,5 @@ func (v *NullablePatchedDeviceBayTemplateRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_device_role_request.go b/model_patched_device_role_request.go index f2ef464b9e..f8982bcd66 100644 --- a/model_patched_device_role_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedDeviceRoleRequest{} // PatchedDeviceRoleRequest Adds support for custom fields and tags. type PatchedDeviceRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Color *string `json:"color,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `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 NullableBriefConfigTemplateRequest `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{} } @@ -179,9 +179,9 @@ func (o *PatchedDeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -190,7 +190,7 @@ func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // 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 *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -206,11 +206,10 @@ func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *PatchedDeviceRoleRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -318,7 +317,7 @@ func (o *PatchedDeviceRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedDeviceRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -422,3 +421,5 @@ func (v *NullablePatchedDeviceRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_export_template_request.go b/model_patched_export_template_request.go index db7c07934f..46344155c2 100644 --- a/model_patched_export_template_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedExportTemplateRequest{} // PatchedExportTemplateRequest 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 PatchedExportTemplateRequest struct { ObjectTypes []string `json:"object_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 @@ -29,8 +29,8 @@ type PatchedExportTemplateRequest 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 *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -278,9 +278,9 @@ func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -288,7 +288,7 @@ func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -304,13 +304,13 @@ func (o *PatchedExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } func (o PatchedExportTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -414,3 +414,5 @@ func (v *NullablePatchedExportTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_fhrp_group_assignment_request.go b/model_patched_fhrp_group_assignment_request.go index de95655e2e..82384728c9 100644 --- a/model_patched_fhrp_group_assignment_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedFHRPGroupAssignmentRequest{} // PatchedFHRPGroupAssignmentRequest Adds support for custom fields and tags. type PatchedFHRPGroupAssignmentRequest struct { - Group *FHRPGroupRequest `json:"group,omitempty"` - InterfaceType *string `json:"interface_type,omitempty"` - InterfaceId *int64 `json:"interface_id,omitempty"` - Priority *int32 `json:"priority,omitempty"` + Group *BriefFHRPGroupRequest `json:"group,omitempty"` + InterfaceType *string `json:"interface_type,omitempty"` + InterfaceId *int64 `json:"interface_id,omitempty"` + Priority *int32 `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,9 +46,9 @@ func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignm } // GetGroup returns the Group field value if set, zero value otherwise. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil || IsNil(o.Group) { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } return *o.Group @@ -56,7 +56,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil || IsNil(o.Group) { return nil, false } @@ -72,8 +72,8 @@ func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given FHRPGroupRequest and assigns it to the Group field. -func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +// SetGroup gets a reference to the given BriefFHRPGroupRequest and assigns it to the Group field. +func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = &v } @@ -174,7 +174,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) SetPriority(v int32) { } func (o PatchedFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,3 +262,5 @@ func (v *NullablePatchedFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) er 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 1d2151449b..9e53bada7d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedFHRPGroupRequest{} // PatchedFHRPGroupRequest Adds support for custom fields and tags. type PatchedFHRPGroupRequest struct { - Name *string `json:"name,omitempty"` - Protocol *FHRPGroupProtocol `json:"protocol,omitempty"` - GroupId *int32 `json:"group_id,omitempty"` - AuthType *AuthenticationType `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"` + Name *string `json:"name,omitempty"` + Protocol *BriefFHRPGroupProtocol `json:"protocol,omitempty"` + GroupId *int32 `json:"group_id,omitempty"` + AuthType NullableAuthenticationType `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{} } @@ -83,9 +83,9 @@ func (o *PatchedFHRPGroupRequest) SetName(v string) { } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil || IsNil(o.Protocol) { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } return *o.Protocol @@ -93,7 +93,7 @@ func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedFHRPGroupRequest) HasProtocol() bool { return false } -// SetProtocol gets a reference to the given FHRPGroupProtocol and assigns it to the Protocol field. -func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +// SetProtocol gets a reference to the given BriefFHRPGroupProtocol and assigns it to the Protocol field. +func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = &v } @@ -146,36 +146,46 @@ func (o *PatchedFHRPGroupRequest) SetGroupId(v int32) { o.GroupId = &v } -// GetAuthType returns the AuthType field value if set, zero value otherwise. +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType { - if o == nil || IsNil(o.AuthType) { + if o == nil || IsNil(o.AuthType.Get()) { var ret AuthenticationType return ret } - return *o.AuthType + return *o.AuthType.Get() } // GetAuthTypeOk returns a tuple with the AuthType 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 *PatchedFHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) { - if o == nil || IsNil(o.AuthType) { + if o == nil { return nil, false } - return o.AuthType, true + return o.AuthType.Get(), o.AuthType.IsSet() } // HasAuthType returns a boolean if a field has been set. func (o *PatchedFHRPGroupRequest) HasAuthType() bool { - if o != nil && !IsNil(o.AuthType) { + if o != nil && o.AuthType.IsSet() { return true } return false } -// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. +// SetAuthType gets a reference to the given NullableAuthenticationType and assigns it to the AuthType field. func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType) { - o.AuthType = &v + o.AuthType.Set(&v) +} +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *PatchedFHRPGroupRequest) SetAuthTypeNil() { + o.AuthType.Set(nil) +} + +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *PatchedFHRPGroupRequest) UnsetAuthType() { + o.AuthType.Unset() } // GetAuthKey returns the AuthKey field value if set, zero value otherwise. @@ -339,7 +349,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 } @@ -357,8 +367,8 @@ func (o PatchedFHRPGroupRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.GroupId) { toSerialize["group_id"] = o.GroupId } - if !IsNil(o.AuthType) { - toSerialize["auth_type"] = o.AuthType + if o.AuthType.IsSet() { + toSerialize["auth_type"] = o.AuthType.Get() } if !IsNil(o.AuthKey) { toSerialize["auth_key"] = o.AuthKey @@ -447,3 +457,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 5d42e7f8d0..50b745dd97 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ 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"` - Description *string `json:"description,omitempty"` - Permissions []int32 `json:"permissions,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Permissions []int32 `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,7 +141,7 @@ func (o *PatchedGroupRequest) SetPermissions(v []int32) { } func (o PatchedGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -225,3 +225,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 0544fcc6fb..3879cbf3aa 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,10 @@ 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 { - ObjectType *string `json:"object_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"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Name *string `json:"name,omitempty"` + Image **os.File `json:"image,omitempty"` AdditionalProperties map[string]interface{} } @@ -176,72 +174,8 @@ func (o *PatchedImageAttachmentRequest) SetImage(v *os.File) { o.Image = &v } -// GetImageHeight returns the ImageHeight field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageHeight() int32 { - if o == nil || IsNil(o.ImageHeight) { - var ret int32 - return ret - } - return *o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil || IsNil(o.ImageHeight) { - return nil, false - } - return o.ImageHeight, true -} - -// HasImageHeight returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageHeight() bool { - if o != nil && !IsNil(o.ImageHeight) { - return true - } - - return false -} - -// SetImageHeight gets a reference to the given int32 and assigns it to the ImageHeight field. -func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = &v -} - -// GetImageWidth returns the ImageWidth field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageWidth() int32 { - if o == nil || IsNil(o.ImageWidth) { - var ret int32 - return ret - } - return *o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil || IsNil(o.ImageWidth) { - return nil, false - } - return o.ImageWidth, true -} - -// HasImageWidth returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageWidth() bool { - if o != nil && !IsNil(o.ImageWidth) { - return true - } - - return false -} - -// SetImageWidth gets a reference to the given int32 and assigns it to the ImageWidth field. -func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = &v -} - func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,12 +196,6 @@ func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Image) { toSerialize["image"] = o.Image } - if !IsNil(o.ImageHeight) { - toSerialize["image_height"] = o.ImageHeight - } - if !IsNil(o.ImageWidth) { - toSerialize["image_width"] = o.ImageWidth - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -294,8 +222,6 @@ func (o *PatchedImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } @@ -337,3 +263,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 f3abd36d01..827eb98af4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + 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 } @@ -336,3 +336,5 @@ func (v *NullablePatchedInventoryItemRoleRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_inventory_item_template_request.go b/model_patched_inventory_item_template_request.go index 070c2170d4..2594abf342 100644 --- a/model_patched_inventory_item_template_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedInventoryItemTemplateRequest{} // PatchedInventoryItemTemplateRequest 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 PatchedInventoryItemTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType *BriefDeviceTypeRequest `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 NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `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{} } @@ -55,9 +55,9 @@ func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemT } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -65,7 +65,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } @@ -118,7 +118,6 @@ func (o *PatchedInventoryItemTemplateRequest) HasParent() bool { func (o *PatchedInventoryItemTemplateRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedInventoryItemTemplateRequest) SetParentNil() { o.Parent.Set(nil) @@ -194,9 +193,9 @@ func (o *PatchedInventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { +func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -205,7 +204,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest // GetRoleOk returns a tuple with the Role 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 *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -221,11 +220,10 @@ func (o *PatchedInventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedInventoryItemTemplateRequest) SetRoleNil() { o.Role.Set(nil) @@ -237,9 +235,9 @@ func (o *PatchedInventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -248,7 +246,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequ // GetManufacturerOk returns a tuple with the Manufacturer 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 *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -264,11 +262,10 @@ func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *PatchedInventoryItemTemplateRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -375,7 +372,6 @@ func (o *PatchedInventoryItemTemplateRequest) HasComponentType() bool { func (o *PatchedInventoryItemTemplateRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *PatchedInventoryItemTemplateRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -418,7 +414,6 @@ func (o *PatchedInventoryItemTemplateRequest) HasComponentId() bool { func (o *PatchedInventoryItemTemplateRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *PatchedInventoryItemTemplateRequest) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -430,7 +425,7 @@ func (o *PatchedInventoryItemTemplateRequest) UnsetComponentId() { } func (o PatchedInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -542,3 +537,5 @@ func (v *NullablePatchedInventoryItemTemplateRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_l2_vpn_termination_request.go b/model_patched_l2_vpn_termination_request.go index 73cb0720e5..92daca7711 100644 --- a/model_patched_l2_vpn_termination_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedL2VPNTerminationRequest{} // PatchedL2VPNTerminationRequest Adds support for custom fields and tags. type PatchedL2VPNTerminationRequest struct { - L2vpn *L2VPNRequest `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 *BriefL2VPNRequest `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{} } @@ -47,9 +47,9 @@ func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationReq } // GetL2vpn returns the L2vpn field value if set, zero value otherwise. -func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil || IsNil(o.L2vpn) { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } return *o.L2vpn @@ -57,7 +57,7 @@ func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil || IsNil(o.L2vpn) { return nil, false } @@ -73,8 +73,8 @@ func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool { return false } -// SetL2vpn gets a reference to the given L2VPNRequest and assigns it to the L2vpn field. -func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +// SetL2vpn gets a reference to the given BriefL2VPNRequest and assigns it to the L2vpn field. +func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = &v } @@ -207,7 +207,7 @@ func (o *PatchedL2VPNTerminationRequest) SetCustomFields(v map[string]interface{ } func (o PatchedL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,3 +299,5 @@ func (v *NullablePatchedL2VPNTerminationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_mac_address_request.go b/model_patched_mac_address_request.go new file mode 100644 index 0000000000..5119e3f015 --- /dev/null +++ b/model_patched_mac_address_request.go @@ -0,0 +1,397 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedMACAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedMACAddressRequest{} + +// PatchedMACAddressRequest Adds support for custom fields and tags. +type PatchedMACAddressRequest struct { + MacAddress *string `json:"mac_address,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_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{} +} + +type _PatchedMACAddressRequest PatchedMACAddressRequest + +// NewPatchedMACAddressRequest instantiates a new PatchedMACAddressRequest 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 NewPatchedMACAddressRequest() *PatchedMACAddressRequest { + this := PatchedMACAddressRequest{} + return &this +} + +// NewPatchedMACAddressRequestWithDefaults instantiates a new PatchedMACAddressRequest 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 NewPatchedMACAddressRequestWithDefaults() *PatchedMACAddressRequest { + this := PatchedMACAddressRequest{} + return &this +} + +// GetMacAddress returns the MacAddress field value if set, zero value otherwise. +func (o *PatchedMACAddressRequest) GetMacAddress() string { + if o == nil || IsNil(o.MacAddress) { + var ret string + return ret + } + return *o.MacAddress +} + +// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedMACAddressRequest) GetMacAddressOk() (*string, bool) { + if o == nil || IsNil(o.MacAddress) { + return nil, false + } + return o.MacAddress, true +} + +// HasMacAddress returns a boolean if a field has been set. +func (o *PatchedMACAddressRequest) HasMacAddress() bool { + if o != nil && !IsNil(o.MacAddress) { + return true + } + + return false +} + +// SetMacAddress gets a reference to the given string and assigns it to the MacAddress field. +func (o *PatchedMACAddressRequest) SetMacAddress(v string) { + o.MacAddress = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedMACAddressRequest) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType 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 *PatchedMACAddressRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *PatchedMACAddressRequest) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *PatchedMACAddressRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *PatchedMACAddressRequest) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *PatchedMACAddressRequest) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedMACAddressRequest) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId 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 *PatchedMACAddressRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *PatchedMACAddressRequest) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *PatchedMACAddressRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *PatchedMACAddressRequest) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *PatchedMACAddressRequest) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedMACAddressRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedMACAddressRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedMACAddressRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedMACAddressRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) 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 *PatchedMACAddressRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedMACAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedMACAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MacAddress) { + toSerialize["mac_address"] = o.MacAddress + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedMACAddressRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedMACAddressRequest := _PatchedMACAddressRequest{} + + err = json.Unmarshal(data, &varPatchedMACAddressRequest) + + if err != nil { + return err + } + + *o = PatchedMACAddressRequest(varPatchedMACAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "mac_address") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedMACAddressRequest struct { + value *PatchedMACAddressRequest + isSet bool +} + +func (v NullablePatchedMACAddressRequest) Get() *PatchedMACAddressRequest { + return v.value +} + +func (v *NullablePatchedMACAddressRequest) Set(val *PatchedMACAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedMACAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedMACAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedMACAddressRequest(val *PatchedMACAddressRequest) *NullablePatchedMACAddressRequest { + return &NullablePatchedMACAddressRequest{value: val, isSet: true} +} + +func (v NullablePatchedMACAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedMACAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go index 7a325529e9..30f200a928 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -299,3 +299,5 @@ func (v *NullablePatchedManufacturerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_module_bay_request.go b/model_patched_module_bay_request.go index 8a6147e440..3aabf7e782 100644 --- a/model_patched_module_bay_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,17 @@ var _ MappedNullable = &PatchedModuleBayRequest{} // PatchedModuleBayRequest Adds support for custom fields and tags. type PatchedModuleBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` + InstalledModule NullableBriefModuleRequest `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{} } @@ -52,9 +53,9 @@ func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { +func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -62,7 +63,7 @@ func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -78,11 +79,53 @@ func (o *PatchedModuleBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module 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 *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PatchedModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PatchedModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PatchedModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value if set, zero value otherwise. func (o *PatchedModuleBayRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -116,9 +159,9 @@ func (o *PatchedModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { +func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -127,7 +170,7 @@ func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule 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 *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -143,11 +186,10 @@ func (o *PatchedModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } - // SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil func (o *PatchedModuleBayRequest) SetInstalledModuleNil() { o.InstalledModule.Set(nil) @@ -319,7 +361,7 @@ func (o *PatchedModuleBayRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedModuleBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -331,6 +373,9 @@ func (o PatchedModuleBayRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Device) { toSerialize["device"] = o.Device } + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -375,6 +420,7 @@ func (o *PatchedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") @@ -423,3 +469,5 @@ func (v *NullablePatchedModuleBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_module_bay_template_request.go b/model_patched_module_bay_template_request.go index baeb07d2cb..eb3aac1257 100644 --- a/model_patched_module_bay_template_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,15 @@ var _ MappedNullable = &PatchedModuleBayTemplateRequest{} // PatchedModuleBayTemplateRequest 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 PatchedModuleBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` // 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{} } @@ -49,36 +50,88 @@ func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateR return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } - return *o.DeviceType + return *o.DeviceType.Get() } // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { - if o == nil || IsNil(o.DeviceType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { return nil, false } - return o.DeviceType, true + return o.DeviceType.Get(), o.DeviceType.IsSet() } // HasDeviceType returns a boolean if a field has been set. func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool { - if o != nil && !IsNil(o.DeviceType) { + if o != nil && o.DeviceType.IsSet() { return true } return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = &v +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value if set, zero value otherwise. @@ -210,7 +263,7 @@ func (o *PatchedModuleBayTemplateRequest) SetDescription(v string) { } func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -219,8 +272,11 @@ func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o PatchedModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.DeviceType) { - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() } if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -257,6 +313,7 @@ func (o *PatchedModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") @@ -302,3 +359,5 @@ func (v *NullablePatchedModuleBayTemplateRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_notification_group_request.go b/model_patched_notification_group_request.go new file mode 100644 index 0000000000..c07afa29e5 --- /dev/null +++ b/model_patched_notification_group_request.go @@ -0,0 +1,266 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedNotificationGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedNotificationGroupRequest{} + +// PatchedNotificationGroupRequest 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 PatchedNotificationGroupRequest struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedNotificationGroupRequest PatchedNotificationGroupRequest + +// NewPatchedNotificationGroupRequest instantiates a new PatchedNotificationGroupRequest 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 NewPatchedNotificationGroupRequest() *PatchedNotificationGroupRequest { + this := PatchedNotificationGroupRequest{} + return &this +} + +// NewPatchedNotificationGroupRequestWithDefaults instantiates a new PatchedNotificationGroupRequest 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 NewPatchedNotificationGroupRequestWithDefaults() *PatchedNotificationGroupRequest { + this := PatchedNotificationGroupRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) 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 *PatchedNotificationGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *PatchedNotificationGroupRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetUsers() []int32 { + if o == nil || IsNil(o.Users) { + var ret []int32 + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetUsersOk() ([]int32, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []int32 and assigns it to the Users field. +func (o *PatchedNotificationGroupRequest) SetUsers(v []int32) { + o.Users = v +} + +func (o PatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedNotificationGroupRequest) 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.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedNotificationGroupRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedNotificationGroupRequest := _PatchedNotificationGroupRequest{} + + err = json.Unmarshal(data, &varPatchedNotificationGroupRequest) + + if err != nil { + return err + } + + *o = PatchedNotificationGroupRequest(varPatchedNotificationGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedNotificationGroupRequest struct { + value *PatchedNotificationGroupRequest + isSet bool +} + +func (v NullablePatchedNotificationGroupRequest) Get() *PatchedNotificationGroupRequest { + return v.value +} + +func (v *NullablePatchedNotificationGroupRequest) Set(val *PatchedNotificationGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedNotificationGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedNotificationGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedNotificationGroupRequest(val *PatchedNotificationGroupRequest) *NullablePatchedNotificationGroupRequest { + return &NullablePatchedNotificationGroupRequest{value: val, isSet: true} +} + +func (v NullablePatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedNotificationGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_notification_request.go b/model_patched_notification_request.go new file mode 100644 index 0000000000..38b9593922 --- /dev/null +++ b/model_patched_notification_request.go @@ -0,0 +1,314 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the PatchedNotificationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedNotificationRequest{} + +// PatchedNotificationRequest 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 PatchedNotificationRequest struct { + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Read NullableTime `json:"read,omitempty"` + EventType *Event `json:"event_type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedNotificationRequest PatchedNotificationRequest + +// NewPatchedNotificationRequest instantiates a new PatchedNotificationRequest 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 NewPatchedNotificationRequest() *PatchedNotificationRequest { + this := PatchedNotificationRequest{} + return &this +} + +// NewPatchedNotificationRequestWithDefaults instantiates a new PatchedNotificationRequest 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 NewPatchedNotificationRequestWithDefaults() *PatchedNotificationRequest { + this := PatchedNotificationRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) 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 *PatchedNotificationRequest) 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 *PatchedNotificationRequest) 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 *PatchedNotificationRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) 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 *PatchedNotificationRequest) 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 *PatchedNotificationRequest) 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 *PatchedNotificationRequest) SetObjectId(v int64) { + o.ObjectId = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetUser() BriefUserRequest { + if o == nil || IsNil(o.User) { + var ret BriefUserRequest + 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 *PatchedNotificationRequest) GetUserOk() (*BriefUserRequest, 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 *PatchedNotificationRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedNotificationRequest) SetUser(v BriefUserRequest) { + o.User = &v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedNotificationRequest) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read 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 *PatchedNotificationRequest) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *PatchedNotificationRequest) SetRead(v time.Time) { + o.Read.Set(&v) +} +// SetReadNil sets the value for Read to be an explicit nil +func (o *PatchedNotificationRequest) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *PatchedNotificationRequest) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetEventType() Event { + if o == nil || IsNil(o.EventType) { + var ret Event + return ret + } + return *o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetEventTypeOk() (*Event, bool) { + if o == nil || IsNil(o.EventType) { + return nil, false + } + return o.EventType, true +} + +// HasEventType returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasEventType() bool { + if o != nil && !IsNil(o.EventType) { + return true + } + + return false +} + +// SetEventType gets a reference to the given Event and assigns it to the EventType field. +func (o *PatchedNotificationRequest) SetEventType(v Event) { + o.EventType = &v +} + +func (o PatchedNotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedNotificationRequest) 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 + } + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + if !IsNil(o.EventType) { + toSerialize["event_type"] = o.EventType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedNotificationRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedNotificationRequest := _PatchedNotificationRequest{} + + err = json.Unmarshal(data, &varPatchedNotificationRequest) + + if err != nil { + return err + } + + *o = PatchedNotificationRequest(varPatchedNotificationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedNotificationRequest struct { + value *PatchedNotificationRequest + isSet bool +} + +func (v NullablePatchedNotificationRequest) Get() *PatchedNotificationRequest { + return v.value +} + +func (v *NullablePatchedNotificationRequest) Set(val *PatchedNotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedNotificationRequest(val *PatchedNotificationRequest) *NullablePatchedNotificationRequest { + return &NullablePatchedNotificationRequest{value: val, isSet: true} +} + +func (v NullablePatchedNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_object_permission_request.go b/model_patched_object_permission_request.go index 39a1c0ffd2..905be0938d 100644 --- a/model_patched_object_permission_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedObjectPermissionRequest{} // PatchedObjectPermissionRequest 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 PatchedObjectPermissionRequest 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"` // 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 interface{} `json:"constraints,omitempty"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Constraints interface{} `json:"constraints,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` AdditionalProperties map[string]interface{} } @@ -309,7 +309,7 @@ func (o *PatchedObjectPermissionRequest) SetUsers(v []int32) { } func (o PatchedObjectPermissionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -413,3 +413,5 @@ func (v *NullablePatchedObjectPermissionRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_platform_request.go b/model_patched_platform_request.go index 2b69b6bb30..351315dea7 100644 --- a/model_patched_platform_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPlatformRequest{} // PatchedPlatformRequest Adds support for custom fields and tags. type PatchedPlatformRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `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{} } @@ -113,9 +113,9 @@ func (o *PatchedPlatformRequest) SetSlug(v string) { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -124,7 +124,7 @@ func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer 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 *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -140,11 +140,10 @@ func (o *PatchedPlatformRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *PatchedPlatformRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -156,9 +155,9 @@ func (o *PatchedPlatformRequest) UnsetManufacturer() { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -167,7 +166,7 @@ func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { // 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 *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -183,11 +182,10 @@ func (o *PatchedPlatformRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *PatchedPlatformRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -295,7 +293,7 @@ func (o *PatchedPlatformRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedPlatformRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -395,3 +393,5 @@ func (v *NullablePatchedPlatformRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_power_panel_request.go b/model_patched_power_panel_request.go index 855e8aea4e..5e5c68b3ea 100644 --- a/model_patched_power_panel_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPowerPanelRequest{} // PatchedPowerPanelRequest Adds support for custom fields and tags. type PatchedPowerPanelRequest struct { - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `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 *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `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{} } @@ -49,9 +49,9 @@ func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { +func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -59,7 +59,7 @@ func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -75,15 +75,15 @@ func (o *PatchedPowerPanelRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { +func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -92,7 +92,7 @@ func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location 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 *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -108,11 +108,10 @@ func (o *PatchedPowerPanelRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PatchedPowerPanelRequest) SetLocationNil() { o.Location.Set(nil) @@ -284,7 +283,7 @@ func (o *PatchedPowerPanelRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedPowerPanelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -384,3 +383,5 @@ func (v *NullablePatchedPowerPanelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_provider_account_request.go b/model_patched_provider_account_request.go index e413eac6c9..32e463b5a3 100644 --- a/model_patched_provider_account_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedProviderAccountRequest{} // PatchedProviderAccountRequest Adds support for custom fields and tags. type PatchedProviderAccountRequest struct { - Provider *ProviderRequest `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 *BriefProviderRequest `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{} } @@ -53,9 +53,9 @@ func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -63,7 +63,7 @@ func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedProviderAccountRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } @@ -277,7 +277,7 @@ func (o *PatchedProviderAccountRequest) SetCustomFields(v map[string]interface{} } func (o PatchedProviderAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -377,3 +377,5 @@ func (v *NullablePatchedProviderAccountRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_provider_network_request.go b/model_patched_provider_network_request.go index f25971cb96..ef02ad434a 100644 --- a/model_patched_provider_network_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedProviderNetworkRequest{} // PatchedProviderNetworkRequest Adds support for custom fields and tags. type PatchedProviderNetworkRequest struct { - Provider *ProviderRequest `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 *BriefProviderRequest `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{} } @@ -49,9 +49,9 @@ func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -59,7 +59,7 @@ func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedProviderNetworkRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } @@ -273,7 +273,7 @@ func (o *PatchedProviderNetworkRequest) SetCustomFields(v map[string]interface{} } func (o PatchedProviderNetworkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -373,3 +373,5 @@ func (v *NullablePatchedProviderNetworkRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_provider_request.go b/model_patched_provider_request.go index 1c4432678d..265eb82dfb 100644 --- a/model_patched_provider_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &PatchedProviderRequest{} // PatchedProviderRequest Adds support for custom fields and tags. type PatchedProviderRequest 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 *PatchedProviderRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedProviderRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -411,3 +411,5 @@ func (v *NullablePatchedProviderRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_rack_reservation_request.go b/model_patched_rack_reservation_request.go index c5e404cb38..e58a48b175 100644 --- a/model_patched_rack_reservation_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedRackReservationRequest{} // PatchedRackReservationRequest Adds support for custom fields and tags. type PatchedRackReservationRequest struct { - Rack *RackRequest `json:"rack,omitempty"` - Units []int32 `json:"units,omitempty"` - User *UserRequest `json:"user,omitempty"` - Tenant NullableTenantRequest `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 *BriefRackRequest `json:"rack,omitempty"` + Units []int32 `json:"units,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Tenant NullableBriefTenantRequest `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{} } @@ -50,9 +50,9 @@ func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationReque } // GetRack returns the Rack field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetRack() RackRequest { +func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack @@ -60,7 +60,7 @@ func (o *PatchedRackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil || IsNil(o.Rack) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedRackReservationRequest) HasRack() bool { return false } -// SetRack gets a reference to the given RackRequest and assigns it to the Rack field. -func (o *PatchedRackReservationRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given BriefRackRequest and assigns it to the Rack field. +func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = &v } @@ -114,9 +114,9 @@ func (o *PatchedRackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetUser() UserRequest { +func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -124,7 +124,7 @@ func (o *PatchedRackReservationRequest) GetUser() UserRequest { // 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 *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -140,15 +140,15 @@ func (o *PatchedRackReservationRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedRackReservationRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest) { o.User = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { +func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -157,7 +157,7 @@ func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { // 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 *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -173,11 +173,10 @@ func (o *PatchedRackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedRackReservationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -317,7 +316,7 @@ func (o *PatchedRackReservationRequest) SetCustomFields(v map[string]interface{} } func (o PatchedRackReservationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -421,3 +420,5 @@ func (v *NullablePatchedRackReservationRequest) 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 6d892aa821..69de442faa 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + 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 } @@ -336,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 0b99fe5290..22b2f943fc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedRIRRequest{} // PatchedRIRRequest Adds support for custom fields and tags. type PatchedRIRRequest struct { Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` // 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 } @@ -337,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 7352ad89e9..873597bb42 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -336,3 +336,5 @@ func (v *NullablePatchedRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_route_target_request.go b/model_patched_route_target_request.go index b2a367b400..153dd58f30 100644 --- a/model_patched_route_target_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedRouteTargetRequest{} // PatchedRouteTargetRequest Adds support for custom fields and tags. type PatchedRouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `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 NullableBriefTenantRequest `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{} } @@ -81,9 +81,9 @@ func (o *PatchedRouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { +func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -92,7 +92,7 @@ func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { // 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 *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -108,11 +108,10 @@ func (o *PatchedRouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedRouteTargetRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -252,7 +251,7 @@ func (o *PatchedRouteTargetRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedRouteTargetRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -348,3 +347,5 @@ func (v *NullablePatchedRouteTargetRequest) 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 0f76328b37..28105c8040 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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 { - ObjectTypes []string `json:"object_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 interface{} `json:"parameters,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 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) @@ -351,7 +350,7 @@ func (o *PatchedSavedFilterRequest) SetParameters(v interface{}) { } func (o PatchedSavedFilterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -459,3 +458,5 @@ func (v *NullablePatchedSavedFilterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_script_input_request.go b/model_patched_script_input_request.go new file mode 100644 index 0000000000..c91c30f1f6 --- /dev/null +++ b/model_patched_script_input_request.go @@ -0,0 +1,288 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the PatchedScriptInputRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedScriptInputRequest{} + +// PatchedScriptInputRequest struct for PatchedScriptInputRequest +type PatchedScriptInputRequest struct { + Data interface{} `json:"data,omitempty"` + Commit *bool `json:"commit,omitempty"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedScriptInputRequest PatchedScriptInputRequest + +// NewPatchedScriptInputRequest instantiates a new PatchedScriptInputRequest 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 NewPatchedScriptInputRequest() *PatchedScriptInputRequest { + this := PatchedScriptInputRequest{} + return &this +} + +// NewPatchedScriptInputRequestWithDefaults instantiates a new PatchedScriptInputRequest 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 NewPatchedScriptInputRequestWithDefaults() *PatchedScriptInputRequest { + this := PatchedScriptInputRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data 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 *PatchedScriptInputRequest) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *PatchedScriptInputRequest) SetData(v interface{}) { + o.Data = v +} + +// GetCommit returns the Commit field value if set, zero value otherwise. +func (o *PatchedScriptInputRequest) GetCommit() bool { + if o == nil || IsNil(o.Commit) { + var ret bool + return ret + } + return *o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedScriptInputRequest) GetCommitOk() (*bool, bool) { + if o == nil || IsNil(o.Commit) { + return nil, false + } + return o.Commit, true +} + +// HasCommit returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasCommit() bool { + if o != nil && !IsNil(o.Commit) { + return true + } + + return false +} + +// SetCommit gets a reference to the given bool and assigns it to the Commit field. +func (o *PatchedScriptInputRequest) SetCommit(v bool) { + o.Commit = &v +} + +// GetScheduleAt returns the ScheduleAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetScheduleAt() time.Time { + if o == nil || IsNil(o.ScheduleAt.Get()) { + var ret time.Time + return ret + } + return *o.ScheduleAt.Get() +} + +// GetScheduleAtOk returns a tuple with the ScheduleAt 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 *PatchedScriptInputRequest) GetScheduleAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ScheduleAt.Get(), o.ScheduleAt.IsSet() +} + +// HasScheduleAt returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasScheduleAt() bool { + if o != nil && o.ScheduleAt.IsSet() { + return true + } + + return false +} + +// SetScheduleAt gets a reference to the given NullableTime and assigns it to the ScheduleAt field. +func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time) { + o.ScheduleAt.Set(&v) +} +// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil +func (o *PatchedScriptInputRequest) SetScheduleAtNil() { + o.ScheduleAt.Set(nil) +} + +// UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +func (o *PatchedScriptInputRequest) UnsetScheduleAt() { + o.ScheduleAt.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval 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 *PatchedScriptInputRequest) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *PatchedScriptInputRequest) SetInterval(v int32) { + o.Interval.Set(&v) +} +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *PatchedScriptInputRequest) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *PatchedScriptInputRequest) UnsetInterval() { + o.Interval.Unset() +} + +func (o PatchedScriptInputRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedScriptInputRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + if !IsNil(o.Commit) { + toSerialize["commit"] = o.Commit + } + if o.ScheduleAt.IsSet() { + toSerialize["schedule_at"] = o.ScheduleAt.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedScriptInputRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedScriptInputRequest := _PatchedScriptInputRequest{} + + err = json.Unmarshal(data, &varPatchedScriptInputRequest) + + if err != nil { + return err + } + + *o = PatchedScriptInputRequest(varPatchedScriptInputRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "commit") + delete(additionalProperties, "schedule_at") + delete(additionalProperties, "interval") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedScriptInputRequest struct { + value *PatchedScriptInputRequest + isSet bool +} + +func (v NullablePatchedScriptInputRequest) Get() *PatchedScriptInputRequest { + return v.value +} + +func (v *NullablePatchedScriptInputRequest) Set(val *PatchedScriptInputRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedScriptInputRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedScriptInputRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedScriptInputRequest(val *PatchedScriptInputRequest) *NullablePatchedScriptInputRequest { + return &NullablePatchedScriptInputRequest{value: val, isSet: true} +} + +func (v NullablePatchedScriptInputRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedScriptInputRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_subscription_request.go b/model_patched_subscription_request.go new file mode 100644 index 0000000000..498d50ca90 --- /dev/null +++ b/model_patched_subscription_request.go @@ -0,0 +1,229 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedSubscriptionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedSubscriptionRequest{} + +// PatchedSubscriptionRequest 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 PatchedSubscriptionRequest struct { + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedSubscriptionRequest PatchedSubscriptionRequest + +// NewPatchedSubscriptionRequest instantiates a new PatchedSubscriptionRequest 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 NewPatchedSubscriptionRequest() *PatchedSubscriptionRequest { + this := PatchedSubscriptionRequest{} + return &this +} + +// NewPatchedSubscriptionRequestWithDefaults instantiates a new PatchedSubscriptionRequest 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 NewPatchedSubscriptionRequestWithDefaults() *PatchedSubscriptionRequest { + this := PatchedSubscriptionRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) SetObjectId(v int64) { + o.ObjectId = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest { + if o == nil || IsNil(o.User) { + var ret BriefUserRequest + 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 *PatchedSubscriptionRequest) GetUserOk() (*BriefUserRequest, 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 *PatchedSubscriptionRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedSubscriptionRequest) SetUser(v BriefUserRequest) { + o.User = &v +} + +func (o PatchedSubscriptionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedSubscriptionRequest) 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 *PatchedSubscriptionRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedSubscriptionRequest := _PatchedSubscriptionRequest{} + + err = json.Unmarshal(data, &varPatchedSubscriptionRequest) + + if err != nil { + return err + } + + *o = PatchedSubscriptionRequest(varPatchedSubscriptionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedSubscriptionRequest struct { + value *PatchedSubscriptionRequest + isSet bool +} + +func (v NullablePatchedSubscriptionRequest) Get() *PatchedSubscriptionRequest { + return v.value +} + +func (v *NullablePatchedSubscriptionRequest) Set(val *PatchedSubscriptionRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedSubscriptionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedSubscriptionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedSubscriptionRequest(val *PatchedSubscriptionRequest) *NullablePatchedSubscriptionRequest { + return &NullablePatchedSubscriptionRequest{value: val, isSet: true} +} + +func (v NullablePatchedSubscriptionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedSubscriptionRequest) 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 df4b1fd5be..b929abb48b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +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"` - ObjectTypes []string `json:"object_types,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-\\\\w]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *PatchedTagRequest) SetObjectTypes(v []string) { } func (o PatchedTagRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,3 +299,5 @@ func (v *NullablePatchedTagRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_tenant_request.go b/model_patched_tenant_request.go index 3948518419..9749aff8f0 100644 --- a/model_patched_tenant_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedTenantRequest{} // PatchedTenantRequest Adds support for custom fields and tags. type PatchedTenantRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Group NullableTenantGroupRequest `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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Group NullableBriefTenantGroupRequest `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{} } @@ -113,9 +113,9 @@ func (o *PatchedTenantRequest) SetSlug(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { +func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TenantGroupRequest + var ret BriefTenantGroupRequest return ret } return *o.Group.Get() @@ -124,7 +124,7 @@ func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { // GetGroupOk returns a tuple with the Group 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 *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool) { +func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { if o == nil { return nil, false } @@ -140,11 +140,10 @@ func (o *PatchedTenantRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTenantGroupRequest and assigns it to the Group field. -func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedTenantRequest) SetGroupNil() { o.Group.Set(nil) @@ -284,7 +283,7 @@ func (o *PatchedTenantRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedTenantRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -384,3 +383,5 @@ func (v *NullablePatchedTenantRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_token_request.go b/model_patched_token_request.go index 87277f4960..febdb02dbb 100644 --- a/model_patched_token_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedTokenRequest{} // PatchedTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedTokenRequest struct { - User *UserRequest `json:"user,omitempty"` - Expires NullableTime `json:"expires,omitempty"` + User *BriefUserRequest `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{} } @@ -50,9 +50,9 @@ func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedTokenRequest) GetUser() UserRequest { +func (o *PatchedTokenRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -60,7 +60,7 @@ func (o *PatchedTokenRequest) GetUser() UserRequest { // 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 *PatchedTokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedTokenRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedTokenRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedTokenRequest) SetUser(v BriefUserRequest) { o.User = &v } @@ -113,7 +113,6 @@ func (o *PatchedTokenRequest) HasExpires() bool { func (o *PatchedTokenRequest) SetExpires(v time.Time) { o.Expires.Set(&v) } - // SetExpiresNil sets the value for Expires to be an explicit nil func (o *PatchedTokenRequest) SetExpiresNil() { o.Expires.Set(nil) @@ -156,7 +155,6 @@ func (o *PatchedTokenRequest) HasLastUsed() bool { func (o *PatchedTokenRequest) SetLastUsed(v time.Time) { o.LastUsed.Set(&v) } - // SetLastUsedNil sets the value for LastUsed to be an explicit nil func (o *PatchedTokenRequest) SetLastUsedNil() { o.LastUsed.Set(nil) @@ -264,7 +262,7 @@ func (o *PatchedTokenRequest) SetDescription(v string) { } func (o PatchedTokenRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -360,3 +358,5 @@ func (v *NullablePatchedTokenRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_tunnel_group_request.go b/model_patched_tunnel_group_request.go index d01b7dc833..97fad83cc2 100644 --- a/model_patched_tunnel_group_request.go +++ b/model_patched_tunnel_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedTunnelGroupRequest{} // PatchedTunnelGroupRequest Adds support for custom fields and tags. type PatchedTunnelGroupRequest 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 *PatchedTunnelGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedTunnelGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,3 +299,5 @@ func (v *NullablePatchedTunnelGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_user_request.go b/model_patched_user_request.go index b035309876..0e0ff42180 100644 --- a/model_patched_user_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,19 +21,19 @@ var _ MappedNullable = &PatchedUserRequest{} // PatchedUserRequest 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 PatchedUserRequest 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" validate:"regexp=^[\\\\w.@+-]+$"` + 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"` - DateJoined *time.Time `json:"date_joined,omitempty"` - LastLogin NullableTime `json:"last_login,omitempty"` - Groups []int32 `json:"groups,omitempty"` - Permissions []int32 `json:"permissions,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Permissions []int32 `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -344,7 +344,6 @@ func (o *PatchedUserRequest) HasLastLogin() bool { func (o *PatchedUserRequest) SetLastLogin(v time.Time) { o.LastLogin.Set(&v) } - // SetLastLoginNil sets the value for LastLogin to be an explicit nil func (o *PatchedUserRequest) SetLastLoginNil() { o.LastLogin.Set(nil) @@ -420,7 +419,7 @@ func (o *PatchedUserRequest) SetPermissions(v []int32) { } func (o PatchedUserRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -536,3 +535,5 @@ func (v *NullablePatchedUserRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_virtual_circuit_type_request.go b/model_patched_virtual_circuit_type_request.go new file mode 100644 index 0000000000..a152c4b967 --- /dev/null +++ b/model_patched_virtual_circuit_type_request.go @@ -0,0 +1,340 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedVirtualCircuitTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedVirtualCircuitTypeRequest{} + +// PatchedVirtualCircuitTypeRequest Adds support for custom fields and tags. +type PatchedVirtualCircuitTypeRequest struct { + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedVirtualCircuitTypeRequest PatchedVirtualCircuitTypeRequest + +// NewPatchedVirtualCircuitTypeRequest instantiates a new PatchedVirtualCircuitTypeRequest 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 NewPatchedVirtualCircuitTypeRequest() *PatchedVirtualCircuitTypeRequest { + this := PatchedVirtualCircuitTypeRequest{} + return &this +} + +// NewPatchedVirtualCircuitTypeRequestWithDefaults instantiates a new PatchedVirtualCircuitTypeRequest 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 NewPatchedVirtualCircuitTypeRequestWithDefaults() *PatchedVirtualCircuitTypeRequest { + this := PatchedVirtualCircuitTypeRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetName(v string) { + o.Name = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PatchedVirtualCircuitTypeRequest) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedVirtualCircuitTypeRequest) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PatchedVirtualCircuitTypeRequest) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PatchedVirtualCircuitTypeRequest) SetSlug(v string) { + o.Slug = &v +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *PatchedVirtualCircuitTypeRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedVirtualCircuitTypeRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *PatchedVirtualCircuitTypeRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *PatchedVirtualCircuitTypeRequest) SetColor(v string) { + o.Color = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) 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 *PatchedVirtualCircuitTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedVirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedVirtualCircuitTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedVirtualCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedVirtualCircuitTypeRequest := _PatchedVirtualCircuitTypeRequest{} + + err = json.Unmarshal(data, &varPatchedVirtualCircuitTypeRequest) + + if err != nil { + return err + } + + *o = PatchedVirtualCircuitTypeRequest(varPatchedVirtualCircuitTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "color") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedVirtualCircuitTypeRequest struct { + value *PatchedVirtualCircuitTypeRequest + isSet bool +} + +func (v NullablePatchedVirtualCircuitTypeRequest) Get() *PatchedVirtualCircuitTypeRequest { + return v.value +} + +func (v *NullablePatchedVirtualCircuitTypeRequest) Set(val *PatchedVirtualCircuitTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedVirtualCircuitTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedVirtualCircuitTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedVirtualCircuitTypeRequest(val *PatchedVirtualCircuitTypeRequest) *NullablePatchedVirtualCircuitTypeRequest { + return &NullablePatchedVirtualCircuitTypeRequest{value: val, isSet: true} +} + +func (v NullablePatchedVirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedVirtualCircuitTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_virtual_disk_request.go b/model_patched_virtual_disk_request.go index 17afe0ffad..4d0de06dd5 100644 --- a/model_patched_virtual_disk_request.go +++ b/model_patched_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedVirtualDiskRequest{} // PatchedVirtualDiskRequest Adds support for custom fields and tags. type PatchedVirtualDiskRequest struct { - VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Size *int32 `json:"size,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Size *int32 `json:"size,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,9 +48,9 @@ func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -58,7 +58,7 @@ func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } @@ -240,7 +240,7 @@ func (o *PatchedVirtualDiskRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedVirtualDiskRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -336,3 +336,5 @@ func (v *NullablePatchedVirtualDiskRequest) 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 39f5d4933f..2449703428 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,13 @@ 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` ScopeType NullableString `json:"scope_type,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"` + ScopeId NullableInt32 `json:"scope_id,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 +144,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 +186,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) @@ -202,70 +196,6 @@ func (o *PatchedVLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *PatchedVLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *PatchedVLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedVLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -363,7 +293,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 } @@ -384,12 +314,6 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -425,8 +349,6 @@ func (o *PatchedVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -471,3 +393,5 @@ func (v *NullablePatchedVLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_vlan_translation_policy_request.go b/model_patched_vlan_translation_policy_request.go new file mode 100644 index 0000000000..1bcc2a7976 --- /dev/null +++ b/model_patched_vlan_translation_policy_request.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedVLANTranslationPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedVLANTranslationPolicyRequest{} + +// PatchedVLANTranslationPolicyRequest Adds support for custom fields and tags. +type PatchedVLANTranslationPolicyRequest struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedVLANTranslationPolicyRequest PatchedVLANTranslationPolicyRequest + +// NewPatchedVLANTranslationPolicyRequest instantiates a new PatchedVLANTranslationPolicyRequest 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 NewPatchedVLANTranslationPolicyRequest() *PatchedVLANTranslationPolicyRequest { + this := PatchedVLANTranslationPolicyRequest{} + return &this +} + +// NewPatchedVLANTranslationPolicyRequestWithDefaults instantiates a new PatchedVLANTranslationPolicyRequest 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 NewPatchedVLANTranslationPolicyRequestWithDefaults() *PatchedVLANTranslationPolicyRequest { + this := PatchedVLANTranslationPolicyRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) 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 *PatchedVLANTranslationPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o PatchedVLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedVLANTranslationPolicyRequest) 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 + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedVLANTranslationPolicyRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedVLANTranslationPolicyRequest := _PatchedVLANTranslationPolicyRequest{} + + err = json.Unmarshal(data, &varPatchedVLANTranslationPolicyRequest) + + if err != nil { + return err + } + + *o = PatchedVLANTranslationPolicyRequest(varPatchedVLANTranslationPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedVLANTranslationPolicyRequest struct { + value *PatchedVLANTranslationPolicyRequest + isSet bool +} + +func (v NullablePatchedVLANTranslationPolicyRequest) Get() *PatchedVLANTranslationPolicyRequest { + return v.value +} + +func (v *NullablePatchedVLANTranslationPolicyRequest) Set(val *PatchedVLANTranslationPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedVLANTranslationPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedVLANTranslationPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedVLANTranslationPolicyRequest(val *PatchedVLANTranslationPolicyRequest) *NullablePatchedVLANTranslationPolicyRequest { + return &NullablePatchedVLANTranslationPolicyRequest{value: val, isSet: true} +} + +func (v NullablePatchedVLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedVLANTranslationPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_vlan_translation_rule_request.go b/model_patched_vlan_translation_rule_request.go new file mode 100644 index 0000000000..db7544af07 --- /dev/null +++ b/model_patched_vlan_translation_rule_request.go @@ -0,0 +1,268 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedVLANTranslationRuleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedVLANTranslationRuleRequest{} + +// PatchedVLANTranslationRuleRequest Adds support for custom fields and tags. +type PatchedVLANTranslationRuleRequest struct { + Policy *int32 `json:"policy,omitempty"` + // Numeric VLAN ID (1-4094) + LocalVid *int32 `json:"local_vid,omitempty"` + // Numeric VLAN ID (1-4094) + RemoteVid *int32 `json:"remote_vid,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedVLANTranslationRuleRequest PatchedVLANTranslationRuleRequest + +// NewPatchedVLANTranslationRuleRequest instantiates a new PatchedVLANTranslationRuleRequest 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 NewPatchedVLANTranslationRuleRequest() *PatchedVLANTranslationRuleRequest { + this := PatchedVLANTranslationRuleRequest{} + return &this +} + +// NewPatchedVLANTranslationRuleRequestWithDefaults instantiates a new PatchedVLANTranslationRuleRequest 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 NewPatchedVLANTranslationRuleRequestWithDefaults() *PatchedVLANTranslationRuleRequest { + this := PatchedVLANTranslationRuleRequest{} + return &this +} + +// GetPolicy returns the Policy field value if set, zero value otherwise. +func (o *PatchedVLANTranslationRuleRequest) GetPolicy() int32 { + if o == nil || IsNil(o.Policy) { + var ret int32 + return ret + } + return *o.Policy +} + +// GetPolicyOk returns a tuple with the Policy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedVLANTranslationRuleRequest) GetPolicyOk() (*int32, bool) { + if o == nil || IsNil(o.Policy) { + return nil, false + } + return o.Policy, true +} + +// HasPolicy returns a boolean if a field has been set. +func (o *PatchedVLANTranslationRuleRequest) HasPolicy() bool { + if o != nil && !IsNil(o.Policy) { + return true + } + + return false +} + +// SetPolicy gets a reference to the given int32 and assigns it to the Policy field. +func (o *PatchedVLANTranslationRuleRequest) SetPolicy(v int32) { + o.Policy = &v +} + +// GetLocalVid returns the LocalVid field value if set, zero value otherwise. +func (o *PatchedVLANTranslationRuleRequest) GetLocalVid() int32 { + if o == nil || IsNil(o.LocalVid) { + var ret int32 + return ret + } + return *o.LocalVid +} + +// GetLocalVidOk returns a tuple with the LocalVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedVLANTranslationRuleRequest) GetLocalVidOk() (*int32, bool) { + if o == nil || IsNil(o.LocalVid) { + return nil, false + } + return o.LocalVid, true +} + +// HasLocalVid returns a boolean if a field has been set. +func (o *PatchedVLANTranslationRuleRequest) HasLocalVid() bool { + if o != nil && !IsNil(o.LocalVid) { + return true + } + + return false +} + +// SetLocalVid gets a reference to the given int32 and assigns it to the LocalVid field. +func (o *PatchedVLANTranslationRuleRequest) SetLocalVid(v int32) { + o.LocalVid = &v +} + +// GetRemoteVid returns the RemoteVid field value if set, zero value otherwise. +func (o *PatchedVLANTranslationRuleRequest) GetRemoteVid() int32 { + if o == nil || IsNil(o.RemoteVid) { + var ret int32 + return ret + } + return *o.RemoteVid +} + +// GetRemoteVidOk returns a tuple with the RemoteVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedVLANTranslationRuleRequest) GetRemoteVidOk() (*int32, bool) { + if o == nil || IsNil(o.RemoteVid) { + return nil, false + } + return o.RemoteVid, true +} + +// HasRemoteVid returns a boolean if a field has been set. +func (o *PatchedVLANTranslationRuleRequest) HasRemoteVid() bool { + if o != nil && !IsNil(o.RemoteVid) { + return true + } + + return false +} + +// SetRemoteVid gets a reference to the given int32 and assigns it to the RemoteVid field. +func (o *PatchedVLANTranslationRuleRequest) SetRemoteVid(v int32) { + o.RemoteVid = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedVLANTranslationRuleRequest) 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 *PatchedVLANTranslationRuleRequest) 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 *PatchedVLANTranslationRuleRequest) 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 *PatchedVLANTranslationRuleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o PatchedVLANTranslationRuleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedVLANTranslationRuleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Policy) { + toSerialize["policy"] = o.Policy + } + if !IsNil(o.LocalVid) { + toSerialize["local_vid"] = o.LocalVid + } + if !IsNil(o.RemoteVid) { + toSerialize["remote_vid"] = o.RemoteVid + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedVLANTranslationRuleRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedVLANTranslationRuleRequest := _PatchedVLANTranslationRuleRequest{} + + err = json.Unmarshal(data, &varPatchedVLANTranslationRuleRequest) + + if err != nil { + return err + } + + *o = PatchedVLANTranslationRuleRequest(varPatchedVLANTranslationRuleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "policy") + delete(additionalProperties, "local_vid") + delete(additionalProperties, "remote_vid") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedVLANTranslationRuleRequest struct { + value *PatchedVLANTranslationRuleRequest + isSet bool +} + +func (v NullablePatchedVLANTranslationRuleRequest) Get() *PatchedVLANTranslationRuleRequest { + return v.value +} + +func (v *NullablePatchedVLANTranslationRuleRequest) Set(val *PatchedVLANTranslationRuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedVLANTranslationRuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedVLANTranslationRuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedVLANTranslationRuleRequest(val *PatchedVLANTranslationRuleRequest) *NullablePatchedVLANTranslationRuleRequest { + return &NullablePatchedVLANTranslationRuleRequest{value: val, isSet: true} +} + +func (v NullablePatchedVLANTranslationRuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedVLANTranslationRuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_vrf_request.go b/model_patched_vrf_request.go index 9dfb98881a..1b34954120 100644 --- a/model_patched_vrf_request.go +++ b/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &PatchedVRFRequest{} type PatchedVRFRequest struct { Name *string `json:"name,omitempty"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `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 *PatchedVRFRequest) HasRd() bool { func (o *PatchedVRFRequest) SetRd(v string) { o.Rd.Set(&v) } - // SetRdNil sets the value for Rd to be an explicit nil func (o *PatchedVRFRequest) SetRdNil() { o.Rd.Set(nil) @@ -129,9 +128,9 @@ func (o *PatchedVRFRequest) UnsetRd() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedVRFRequest) GetTenant() TenantRequest { +func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -140,7 +139,7 @@ func (o *PatchedVRFRequest) GetTenant() TenantRequest { // 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 *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -156,11 +155,10 @@ func (o *PatchedVRFRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedVRFRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedVRFRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -396,7 +394,7 @@ func (o *PatchedVRFRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedVRFRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -508,3 +506,5 @@ func (v *NullablePatchedVRFRequest) 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 5c726471e4..cc773955e3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWebhookRequest{} // PatchedWebhookRequest Adds support for custom fields and tags. type PatchedWebhookRequest struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Description *string `json:"description,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"` + PayloadUrl *string `json:"payload_url,omitempty"` HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"` // The complete list of official content types is available here. HttpContentType *string `json:"http_content_type,omitempty"` @@ -35,9 +35,9 @@ type PatchedWebhookRequest struct { // 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"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Tags []NestedTagRequest `json:"tags,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{} } @@ -380,7 +380,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) @@ -456,7 +455,7 @@ func (o *PatchedWebhookRequest) SetTags(v []NestedTagRequest) { } func (o PatchedWebhookRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -576,3 +575,5 @@ func (v *NullablePatchedWebhookRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go index 184b35a71c..29c2d32bc9 100644 --- a/model_patched_webhook_request_http_method.go +++ b/model_patched_webhook_request_http_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ type PatchedWebhookRequestHttpMethod string // List of PatchedWebhookRequest_http_method const ( - PATCHEDWEBHOOKREQUESTHTTPMETHOD_GET PatchedWebhookRequestHttpMethod = "GET" - PATCHEDWEBHOOKREQUESTHTTPMETHOD_POST PatchedWebhookRequestHttpMethod = "POST" - PATCHEDWEBHOOKREQUESTHTTPMETHOD_PUT PatchedWebhookRequestHttpMethod = "PUT" - PATCHEDWEBHOOKREQUESTHTTPMETHOD_PATCH PatchedWebhookRequestHttpMethod = "PATCH" + PATCHEDWEBHOOKREQUESTHTTPMETHOD_GET PatchedWebhookRequestHttpMethod = "GET" + PATCHEDWEBHOOKREQUESTHTTPMETHOD_POST PatchedWebhookRequestHttpMethod = "POST" + PATCHEDWEBHOOKREQUESTHTTPMETHOD_PUT PatchedWebhookRequestHttpMethod = "PUT" + PATCHEDWEBHOOKREQUESTHTTPMETHOD_PATCH PatchedWebhookRequestHttpMethod = "PATCH" PATCHEDWEBHOOKREQUESTHTTPMETHOD_DELETE PatchedWebhookRequestHttpMethod = "DELETE" ) @@ -114,3 +114,4 @@ func (v *NullablePatchedWebhookRequestHttpMethod) UnmarshalJSON(src []byte) erro 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 0c3c8d591b..61be8c01e7 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{} // PatchedWritableAggregateRequest Adds support for custom fields and tags. type PatchedWritableAggregateRequest struct { - Prefix *string `json:"prefix,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `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,omitempty"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `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{} } @@ -82,9 +82,9 @@ func (o *PatchedWritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { +func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -92,7 +92,7 @@ func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -108,15 +108,15 @@ func (o *PatchedWritableAggregateRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { +func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -125,7 +125,7 @@ func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { // 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 *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -141,11 +141,10 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableAggregateRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -188,7 +187,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) @@ -328,7 +326,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 } @@ -432,3 +430,5 @@ func (v *NullablePatchedWritableAggregateRequest) UnmarshalJSON(src []byte) erro 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 158155396e..04a01b462a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableCableRequest{} // PatchedWritableCableRequest Adds support for custom fields and tags. type PatchedWritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `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"` + Type NullableCableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableRequestLengthUnit `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{} } @@ -54,36 +54,46 @@ func NewPatchedWritableCableRequestWithDefaults() *PatchedWritableCableRequest { return &this } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCableRequest) GetType() CableType { + if o == nil || IsNil(o.Type.Get()) { + var ret CableType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritableCableRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType) { - o.Type = &v +// SetType gets a reference to the given NullableCableType and assigns it to the Type field. +func (o *PatchedWritableCableRequest) SetType(v CableType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritableCableRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritableCableRequest) UnsetType() { + o.Type.Unset() } // GetATerminations returns the ATerminations field value if set, zero value otherwise. @@ -151,9 +161,9 @@ func (o *PatchedWritableCableRequest) SetBTerminations(v []GenericObjectRequest) } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +171,7 @@ func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +187,15 @@ func (o *PatchedWritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +204,7 @@ func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { // 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 *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,11 +220,10 @@ func (o *PatchedWritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableCableRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -321,7 +330,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) @@ -332,36 +340,46 @@ func (o *PatchedWritableCableRequest) UnsetLength() { o.Length.Unset() } -// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { - if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCableRequest) GetLengthUnit() CableRequestLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableRequestLengthUnit return ret } - return *o.LengthUnit + return *o.LengthUnit.Get() } // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { - if o == nil || IsNil(o.LengthUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) { + if o == nil { return nil, false } - return o.LengthUnit, true + return o.LengthUnit.Get(), o.LengthUnit.IsSet() } // HasLengthUnit returns a boolean if a field has been set. func (o *PatchedWritableCableRequest) HasLengthUnit() bool { - if o != nil && !IsNil(o.LengthUnit) { + if o != nil && o.LengthUnit.IsSet() { return true } return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { - o.LengthUnit = &v +// SetLengthUnit gets a reference to the given NullableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *PatchedWritableCableRequest) SetLengthUnit(v CableRequestLengthUnit) { + o.LengthUnit.Set(&v) +} +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *PatchedWritableCableRequest) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *PatchedWritableCableRequest) UnsetLengthUnit() { + o.LengthUnit.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -493,7 +511,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 } @@ -502,8 +520,8 @@ func (o PatchedWritableCableRequest) MarshalJSON() ([]byte, error) { func (o PatchedWritableCableRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if !IsNil(o.ATerminations) { toSerialize["a_terminations"] = o.ATerminations @@ -526,8 +544,8 @@ func (o PatchedWritableCableRequest) ToMap() (map[string]interface{}, error) { if o.Length.IsSet() { toSerialize["length"] = o.Length.Get() } - if !IsNil(o.LengthUnit) { - toSerialize["length_unit"] = o.LengthUnit + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -617,3 +635,5 @@ func (v *NullablePatchedWritableCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_cable_request_length_unit.go b/model_patched_writable_cable_request_length_unit.go deleted file mode 100644 index d7aa10bbea..0000000000 --- a/model_patched_writable_cable_request_length_unit.go +++ /dev/null @@ -1,120 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableCableRequestLengthUnit * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches -type PatchedWritableCableRequestLengthUnit string - -// List of PatchedWritableCableRequest_length_unit -const ( - PATCHEDWRITABLECABLEREQUESTLENGTHUNIT_KM PatchedWritableCableRequestLengthUnit = "km" - PATCHEDWRITABLECABLEREQUESTLENGTHUNIT_M PatchedWritableCableRequestLengthUnit = "m" - PATCHEDWRITABLECABLEREQUESTLENGTHUNIT_CM PatchedWritableCableRequestLengthUnit = "cm" - PATCHEDWRITABLECABLEREQUESTLENGTHUNIT_MI PatchedWritableCableRequestLengthUnit = "mi" - PATCHEDWRITABLECABLEREQUESTLENGTHUNIT_FT PatchedWritableCableRequestLengthUnit = "ft" - PATCHEDWRITABLECABLEREQUESTLENGTHUNIT_IN PatchedWritableCableRequestLengthUnit = "in" - PATCHEDWRITABLECABLEREQUESTLENGTHUNIT_EMPTY PatchedWritableCableRequestLengthUnit = "" -) - -// All allowed values of PatchedWritableCableRequestLengthUnit enum -var AllowedPatchedWritableCableRequestLengthUnitEnumValues = []PatchedWritableCableRequestLengthUnit{ - "km", - "m", - "cm", - "mi", - "ft", - "in", - "", -} - -func (v *PatchedWritableCableRequestLengthUnit) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableCableRequestLengthUnit(value) - for _, existing := range AllowedPatchedWritableCableRequestLengthUnitEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableCableRequestLengthUnit", value) -} - -// NewPatchedWritableCableRequestLengthUnitFromValue returns a pointer to a valid PatchedWritableCableRequestLengthUnit -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableCableRequestLengthUnitFromValue(v string) (*PatchedWritableCableRequestLengthUnit, error) { - ev := PatchedWritableCableRequestLengthUnit(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCableRequestLengthUnit: valid values are %v", v, AllowedPatchedWritableCableRequestLengthUnitEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableCableRequestLengthUnit) IsValid() bool { - for _, existing := range AllowedPatchedWritableCableRequestLengthUnitEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableCableRequest_length_unit value -func (v PatchedWritableCableRequestLengthUnit) Ptr() *PatchedWritableCableRequestLengthUnit { - return &v -} - -type NullablePatchedWritableCableRequestLengthUnit struct { - value *PatchedWritableCableRequestLengthUnit - isSet bool -} - -func (v NullablePatchedWritableCableRequestLengthUnit) Get() *PatchedWritableCableRequestLengthUnit { - return v.value -} - -func (v *NullablePatchedWritableCableRequestLengthUnit) Set(val *PatchedWritableCableRequestLengthUnit) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableCableRequestLengthUnit) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableCableRequestLengthUnit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableCableRequestLengthUnit(val *PatchedWritableCableRequestLengthUnit) *NullablePatchedWritableCableRequestLengthUnit { - return &NullablePatchedWritableCableRequestLengthUnit{value: val, isSet: true} -} - -func (v NullablePatchedWritableCableRequestLengthUnit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableCableRequestLengthUnit) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_patched_writable_cable_request_status.go b/model_patched_writable_cable_request_status.go deleted file mode 100644 index e17fd5e32b..0000000000 --- a/model_patched_writable_cable_request_status.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableCableRequestStatus * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning -type PatchedWritableCableRequestStatus string - -// List of PatchedWritableCableRequest_status -const ( - PATCHEDWRITABLECABLEREQUESTSTATUS_CONNECTED PatchedWritableCableRequestStatus = "connected" - PATCHEDWRITABLECABLEREQUESTSTATUS_PLANNED PatchedWritableCableRequestStatus = "planned" - PATCHEDWRITABLECABLEREQUESTSTATUS_DECOMMISSIONING PatchedWritableCableRequestStatus = "decommissioning" -) - -// All allowed values of PatchedWritableCableRequestStatus enum -var AllowedPatchedWritableCableRequestStatusEnumValues = []PatchedWritableCableRequestStatus{ - "connected", - "planned", - "decommissioning", -} - -func (v *PatchedWritableCableRequestStatus) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableCableRequestStatus(value) - for _, existing := range AllowedPatchedWritableCableRequestStatusEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableCableRequestStatus", value) -} - -// NewPatchedWritableCableRequestStatusFromValue returns a pointer to a valid PatchedWritableCableRequestStatus -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableCableRequestStatusFromValue(v string) (*PatchedWritableCableRequestStatus, error) { - ev := PatchedWritableCableRequestStatus(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCableRequestStatus: valid values are %v", v, AllowedPatchedWritableCableRequestStatusEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableCableRequestStatus) IsValid() bool { - for _, existing := range AllowedPatchedWritableCableRequestStatusEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableCableRequest_status value -func (v PatchedWritableCableRequestStatus) Ptr() *PatchedWritableCableRequestStatus { - return &v -} - -type NullablePatchedWritableCableRequestStatus struct { - value *PatchedWritableCableRequestStatus - isSet bool -} - -func (v NullablePatchedWritableCableRequestStatus) Get() *PatchedWritableCableRequestStatus { - return v.value -} - -func (v *NullablePatchedWritableCableRequestStatus) Set(val *PatchedWritableCableRequestStatus) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableCableRequestStatus) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableCableRequestStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableCableRequestStatus(val *PatchedWritableCableRequestStatus) *NullablePatchedWritableCableRequestStatus { - return &NullablePatchedWritableCableRequestStatus{value: val, isSet: true} -} - -func (v NullablePatchedWritableCableRequestStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableCableRequestStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_patched_writable_cable_request_type.go b/model_patched_writable_cable_request_type.go deleted file mode 100644 index 7f5e216ebe..0000000000 --- a/model_patched_writable_cable_request_type.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableCableRequestType * `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 PatchedWritableCableRequestType string - -// List of PatchedWritableCableRequest_type -const ( - PATCHEDWRITABLECABLEREQUESTTYPE_CAT3 PatchedWritableCableRequestType = "cat3" - PATCHEDWRITABLECABLEREQUESTTYPE_CAT5 PatchedWritableCableRequestType = "cat5" - PATCHEDWRITABLECABLEREQUESTTYPE_CAT5E PatchedWritableCableRequestType = "cat5e" - PATCHEDWRITABLECABLEREQUESTTYPE_CAT6 PatchedWritableCableRequestType = "cat6" - PATCHEDWRITABLECABLEREQUESTTYPE_CAT6A PatchedWritableCableRequestType = "cat6a" - PATCHEDWRITABLECABLEREQUESTTYPE_CAT7 PatchedWritableCableRequestType = "cat7" - PATCHEDWRITABLECABLEREQUESTTYPE_CAT7A PatchedWritableCableRequestType = "cat7a" - PATCHEDWRITABLECABLEREQUESTTYPE_CAT8 PatchedWritableCableRequestType = "cat8" - PATCHEDWRITABLECABLEREQUESTTYPE_DAC_ACTIVE PatchedWritableCableRequestType = "dac-active" - PATCHEDWRITABLECABLEREQUESTTYPE_DAC_PASSIVE PatchedWritableCableRequestType = "dac-passive" - PATCHEDWRITABLECABLEREQUESTTYPE_MRJ21_TRUNK PatchedWritableCableRequestType = "mrj21-trunk" - PATCHEDWRITABLECABLEREQUESTTYPE_COAXIAL PatchedWritableCableRequestType = "coaxial" - PATCHEDWRITABLECABLEREQUESTTYPE_MMF PatchedWritableCableRequestType = "mmf" - PATCHEDWRITABLECABLEREQUESTTYPE_MMF_OM1 PatchedWritableCableRequestType = "mmf-om1" - PATCHEDWRITABLECABLEREQUESTTYPE_MMF_OM2 PatchedWritableCableRequestType = "mmf-om2" - PATCHEDWRITABLECABLEREQUESTTYPE_MMF_OM3 PatchedWritableCableRequestType = "mmf-om3" - PATCHEDWRITABLECABLEREQUESTTYPE_MMF_OM4 PatchedWritableCableRequestType = "mmf-om4" - PATCHEDWRITABLECABLEREQUESTTYPE_MMF_OM5 PatchedWritableCableRequestType = "mmf-om5" - PATCHEDWRITABLECABLEREQUESTTYPE_SMF PatchedWritableCableRequestType = "smf" - PATCHEDWRITABLECABLEREQUESTTYPE_SMF_OS1 PatchedWritableCableRequestType = "smf-os1" - PATCHEDWRITABLECABLEREQUESTTYPE_SMF_OS2 PatchedWritableCableRequestType = "smf-os2" - PATCHEDWRITABLECABLEREQUESTTYPE_AOC PatchedWritableCableRequestType = "aoc" - PATCHEDWRITABLECABLEREQUESTTYPE_POWER PatchedWritableCableRequestType = "power" - PATCHEDWRITABLECABLEREQUESTTYPE_EMPTY PatchedWritableCableRequestType = "" -) - -// All allowed values of PatchedWritableCableRequestType enum -var AllowedPatchedWritableCableRequestTypeEnumValues = []PatchedWritableCableRequestType{ - "cat3", - "cat5", - "cat5e", - "cat6", - "cat6a", - "cat7", - "cat7a", - "cat8", - "dac-active", - "dac-passive", - "mrj21-trunk", - "coaxial", - "mmf", - "mmf-om1", - "mmf-om2", - "mmf-om3", - "mmf-om4", - "mmf-om5", - "smf", - "smf-os1", - "smf-os2", - "aoc", - "power", - "", -} - -func (v *PatchedWritableCableRequestType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableCableRequestType(value) - for _, existing := range AllowedPatchedWritableCableRequestTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableCableRequestType", value) -} - -// NewPatchedWritableCableRequestTypeFromValue returns a pointer to a valid PatchedWritableCableRequestType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableCableRequestTypeFromValue(v string) (*PatchedWritableCableRequestType, error) { - ev := PatchedWritableCableRequestType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCableRequestType: valid values are %v", v, AllowedPatchedWritableCableRequestTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableCableRequestType) IsValid() bool { - for _, existing := range AllowedPatchedWritableCableRequestTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableCableRequest_type value -func (v PatchedWritableCableRequestType) Ptr() *PatchedWritableCableRequestType { - return &v -} - -type NullablePatchedWritableCableRequestType struct { - value *PatchedWritableCableRequestType - isSet bool -} - -func (v NullablePatchedWritableCableRequestType) Get() *PatchedWritableCableRequestType { - return v.value -} - -func (v *NullablePatchedWritableCableRequestType) Set(val *PatchedWritableCableRequestType) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableCableRequestType) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableCableRequestType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableCableRequestType(val *PatchedWritableCableRequestType) *NullablePatchedWritableCableRequestType { - return &NullablePatchedWritableCableRequestType{value: val, isSet: true} -} - -func (v NullablePatchedWritableCableRequestType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableCableRequestType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_patched_writable_circuit_group_assignment_request.go b/model_patched_writable_circuit_group_assignment_request.go new file mode 100644 index 0000000000..d44403bb30 --- /dev/null +++ b/model_patched_writable_circuit_group_assignment_request.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableCircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableCircuitGroupAssignmentRequest{} + +// PatchedWritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type PatchedWritableCircuitGroupAssignmentRequest struct { + Group *BriefCircuitGroupRequest `json:"group,omitempty"` + MemberType *string `json:"member_type,omitempty"` + MemberId *int64 `json:"member_id,omitempty"` + Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest + +// NewPatchedWritableCircuitGroupAssignmentRequest instantiates a new PatchedWritableCircuitGroupAssignmentRequest 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 NewPatchedWritableCircuitGroupAssignmentRequest() *PatchedWritableCircuitGroupAssignmentRequest { + this := PatchedWritableCircuitGroupAssignmentRequest{} + return &this +} + +// NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableCircuitGroupAssignmentRequest 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 NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults() *PatchedWritableCircuitGroupAssignmentRequest { + this := PatchedWritableCircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil || IsNil(o.Group) { + var ret BriefCircuitGroupRequest + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given BriefCircuitGroupRequest and assigns it to the Group field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = &v +} + +// GetMemberType returns the MemberType field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberType() string { + if o == nil || IsNil(o.MemberType) { + var ret string + return ret + } + return *o.MemberType +} + +// GetMemberTypeOk returns a tuple with the MemberType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberTypeOk() (*string, bool) { + if o == nil || IsNil(o.MemberType) { + return nil, false + } + return o.MemberType, true +} + +// HasMemberType returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasMemberType() bool { + if o != nil && !IsNil(o.MemberType) { + return true + } + + return false +} + +// SetMemberType gets a reference to the given string and assigns it to the MemberType field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetMemberType(v string) { + o.MemberType = &v +} + +// GetMemberId returns the MemberId field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberId() int64 { + if o == nil || IsNil(o.MemberId) { + var ret int64 + return ret + } + return *o.MemberId +} + +// GetMemberIdOk returns a tuple with the MemberId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetMemberIdOk() (*int64, bool) { + if o == nil || IsNil(o.MemberId) { + return nil, false + } + return o.MemberId, true +} + +// HasMemberId returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasMemberId() bool { + if o != nil && !IsNil(o.MemberId) { + return true + } + + return false +} + +// SetMemberId gets a reference to the given int64 and assigns it to the MemberId field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetMemberId(v int64) { + o.MemberId = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority { + if o == nil || IsNil(o.Priority.Get()) { + var ret PatchedWritableCircuitGroupAssignmentRequestPriority + return ret + } + return *o.Priority.Get() +} + +// GetPriorityOk returns a tuple with the Priority 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 *PatchedWritableCircuitGroupAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool) { + if o == nil { + return nil, false + } + return o.Priority.Get(), o.Priority.IsSet() +} + +// HasPriority returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && o.Priority.IsSet() { + return true + } + + return false +} + +// SetPriority gets a reference to the given NullablePatchedWritableCircuitGroupAssignmentRequestPriority and assigns it to the Priority field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) { + o.Priority.Set(&v) +} +// SetPriorityNil sets the value for Priority to be an explicit nil +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriorityNil() { + o.Priority.Set(nil) +} + +// UnsetPriority ensures that no value is present for Priority, not even an explicit nil +func (o *PatchedWritableCircuitGroupAssignmentRequest) UnsetPriority() { + o.Priority.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) 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 *PatchedWritableCircuitGroupAssignmentRequest) 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 *PatchedWritableCircuitGroupAssignmentRequest) 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 *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o PatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableCircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.MemberType) { + toSerialize["member_type"] = o.MemberType + } + if !IsNil(o.MemberId) { + toSerialize["member_id"] = o.MemberId + } + if o.Priority.IsSet() { + toSerialize["priority"] = o.Priority.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableCircuitGroupAssignmentRequest := _PatchedWritableCircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varPatchedWritableCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = PatchedWritableCircuitGroupAssignmentRequest(varPatchedWritableCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "member_type") + delete(additionalProperties, "member_id") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableCircuitGroupAssignmentRequest struct { + value *PatchedWritableCircuitGroupAssignmentRequest + isSet bool +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) Get() *PatchedWritableCircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) Set(val *PatchedWritableCircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableCircuitGroupAssignmentRequest(val *PatchedWritableCircuitGroupAssignmentRequest) *NullablePatchedWritableCircuitGroupAssignmentRequest { + return &NullablePatchedWritableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_writable_circuit_group_assignment_request_priority.go b/model_patched_writable_circuit_group_assignment_request_priority.go new file mode 100644 index 0000000000..32119c42a2 --- /dev/null +++ b/model_patched_writable_circuit_group_assignment_request_priority.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableCircuitGroupAssignmentRequestPriority * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +type PatchedWritableCircuitGroupAssignmentRequestPriority string + +// List of PatchedWritableCircuitGroupAssignmentRequest_priority +const ( + PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_PRIMARY PatchedWritableCircuitGroupAssignmentRequestPriority = "primary" + PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_SECONDARY PatchedWritableCircuitGroupAssignmentRequestPriority = "secondary" + PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_TERTIARY PatchedWritableCircuitGroupAssignmentRequestPriority = "tertiary" + PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_INACTIVE PatchedWritableCircuitGroupAssignmentRequestPriority = "inactive" + PATCHEDWRITABLECIRCUITGROUPASSIGNMENTREQUESTPRIORITY_EMPTY PatchedWritableCircuitGroupAssignmentRequestPriority = "" +) + +// All allowed values of PatchedWritableCircuitGroupAssignmentRequestPriority enum +var AllowedPatchedWritableCircuitGroupAssignmentRequestPriorityEnumValues = []PatchedWritableCircuitGroupAssignmentRequestPriority{ + "primary", + "secondary", + "tertiary", + "inactive", + "", +} + +func (v *PatchedWritableCircuitGroupAssignmentRequestPriority) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableCircuitGroupAssignmentRequestPriority(value) + for _, existing := range AllowedPatchedWritableCircuitGroupAssignmentRequestPriorityEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableCircuitGroupAssignmentRequestPriority", value) +} + +// NewPatchedWritableCircuitGroupAssignmentRequestPriorityFromValue returns a pointer to a valid PatchedWritableCircuitGroupAssignmentRequestPriority +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableCircuitGroupAssignmentRequestPriorityFromValue(v string) (*PatchedWritableCircuitGroupAssignmentRequestPriority, error) { + ev := PatchedWritableCircuitGroupAssignmentRequestPriority(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCircuitGroupAssignmentRequestPriority: valid values are %v", v, AllowedPatchedWritableCircuitGroupAssignmentRequestPriorityEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableCircuitGroupAssignmentRequestPriority) IsValid() bool { + for _, existing := range AllowedPatchedWritableCircuitGroupAssignmentRequestPriorityEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableCircuitGroupAssignmentRequest_priority value +func (v PatchedWritableCircuitGroupAssignmentRequestPriority) Ptr() *PatchedWritableCircuitGroupAssignmentRequestPriority { + return &v +} + +type NullablePatchedWritableCircuitGroupAssignmentRequestPriority struct { + value *PatchedWritableCircuitGroupAssignmentRequestPriority + isSet bool +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequestPriority) Get() *PatchedWritableCircuitGroupAssignmentRequestPriority { + return v.value +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequestPriority) Set(val *PatchedWritableCircuitGroupAssignmentRequestPriority) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequestPriority) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequestPriority) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableCircuitGroupAssignmentRequestPriority(val *PatchedWritableCircuitGroupAssignmentRequestPriority) *NullablePatchedWritableCircuitGroupAssignmentRequestPriority { + return &NullablePatchedWritableCircuitGroupAssignmentRequestPriority{value: val, isSet: true} +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequestPriority) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequestPriority) 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 a9b2fa6439..1fd8d049ea 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,23 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{} // PatchedWritableCircuitRequest Adds support for custom fields and tags. type PatchedWritableCircuitRequest struct { // Unique circuit ID - Cid *string `json:"cid,omitempty"` - Provider *ProviderRequest `json:"provider,omitempty"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type *CircuitTypeRequest `json:"type,omitempty"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid *string `json:"cid,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type *BriefCircuitTypeRequest `json:"type,omitempty"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `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"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,9 +92,9 @@ func (o *PatchedWritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { +func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -99,7 +102,7 @@ func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -115,15 +118,15 @@ func (o *PatchedWritableCircuitRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -132,7 +135,7 @@ func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequ // GetProviderAccountOk returns a tuple with the ProviderAccount 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 *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -148,11 +151,10 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } - // SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil func (o *PatchedWritableCircuitRequest) SetProviderAccountNil() { o.ProviderAccount.Set(nil) @@ -164,9 +166,9 @@ func (o *PatchedWritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil || IsNil(o.Type) { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } return *o.Type @@ -174,7 +176,7 @@ func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -190,15 +192,15 @@ func (o *PatchedWritableCircuitRequest) HasType() bool { return false } -// SetType gets a reference to the given CircuitTypeRequest and assigns it to the Type field. -func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest) { +// SetType gets a reference to the given BriefCircuitTypeRequest and assigns it to the Type field. +func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -206,7 +208,7 @@ func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -222,15 +224,15 @@ func (o *PatchedWritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -239,7 +241,7 @@ func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { // 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 *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -255,11 +257,10 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableCircuitRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -302,7 +303,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) @@ -345,7 +345,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) @@ -388,7 +387,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) @@ -431,6 +429,90 @@ func (o *PatchedWritableCircuitRequest) SetDescription(v string) { o.Description = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCircuitRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *PatchedWritableCircuitRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *PatchedWritableCircuitRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *PatchedWritableCircuitRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *PatchedWritableCircuitRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *PatchedWritableCircuitRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCircuitRequest) GetDistanceUnit() CircuitRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *PatchedWritableCircuitRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *PatchedWritableCircuitRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *PatchedWritableCircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *PatchedWritableCircuitRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *PatchedWritableCircuitRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *PatchedWritableCircuitRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -527,8 +609,40 @@ func (o *PatchedWritableCircuitRequest) SetCustomFields(v map[string]interface{} o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *PatchedWritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o PatchedWritableCircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -567,6 +681,12 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -576,6 +696,9 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -608,9 +731,12 @@ func (o *PatchedWritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "termination_date") delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } @@ -652,3 +778,5 @@ func (v *NullablePatchedWritableCircuitRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_circuit_request_status.go b/model_patched_writable_circuit_request_status.go deleted file mode 100644 index 6801907f18..0000000000 --- a/model_patched_writable_circuit_request_status.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableCircuitRequestStatus * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned -type PatchedWritableCircuitRequestStatus string - -// List of PatchedWritableCircuitRequest_status -const ( - PATCHEDWRITABLECIRCUITREQUESTSTATUS_PLANNED PatchedWritableCircuitRequestStatus = "planned" - PATCHEDWRITABLECIRCUITREQUESTSTATUS_PROVISIONING PatchedWritableCircuitRequestStatus = "provisioning" - PATCHEDWRITABLECIRCUITREQUESTSTATUS_ACTIVE PatchedWritableCircuitRequestStatus = "active" - PATCHEDWRITABLECIRCUITREQUESTSTATUS_OFFLINE PatchedWritableCircuitRequestStatus = "offline" - PATCHEDWRITABLECIRCUITREQUESTSTATUS_DEPROVISIONING PatchedWritableCircuitRequestStatus = "deprovisioning" - PATCHEDWRITABLECIRCUITREQUESTSTATUS_DECOMMISSIONED PatchedWritableCircuitRequestStatus = "decommissioned" -) - -// All allowed values of PatchedWritableCircuitRequestStatus enum -var AllowedPatchedWritableCircuitRequestStatusEnumValues = []PatchedWritableCircuitRequestStatus{ - "planned", - "provisioning", - "active", - "offline", - "deprovisioning", - "decommissioned", -} - -func (v *PatchedWritableCircuitRequestStatus) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableCircuitRequestStatus(value) - for _, existing := range AllowedPatchedWritableCircuitRequestStatusEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableCircuitRequestStatus", value) -} - -// NewPatchedWritableCircuitRequestStatusFromValue returns a pointer to a valid PatchedWritableCircuitRequestStatus -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableCircuitRequestStatusFromValue(v string) (*PatchedWritableCircuitRequestStatus, error) { - ev := PatchedWritableCircuitRequestStatus(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableCircuitRequestStatus: valid values are %v", v, AllowedPatchedWritableCircuitRequestStatusEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableCircuitRequestStatus) IsValid() bool { - for _, existing := range AllowedPatchedWritableCircuitRequestStatusEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableCircuitRequest_status value -func (v PatchedWritableCircuitRequestStatus) Ptr() *PatchedWritableCircuitRequestStatus { - return &v -} - -type NullablePatchedWritableCircuitRequestStatus struct { - value *PatchedWritableCircuitRequestStatus - isSet bool -} - -func (v NullablePatchedWritableCircuitRequestStatus) Get() *PatchedWritableCircuitRequestStatus { - return v.value -} - -func (v *NullablePatchedWritableCircuitRequestStatus) Set(val *PatchedWritableCircuitRequestStatus) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableCircuitRequestStatus) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableCircuitRequestStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableCircuitRequestStatus(val *PatchedWritableCircuitRequestStatus) *NullablePatchedWritableCircuitRequestStatus { - return &NullablePatchedWritableCircuitRequestStatus{value: val, isSet: true} -} - -func (v NullablePatchedWritableCircuitRequestStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableCircuitRequestStatus) UnmarshalJSON(src []byte) error { - 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 686e115224..163d390de6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,17 @@ var _ MappedNullable = &PatchedWritableClusterRequest{} // PatchedWritableClusterRequest Adds support for custom fields and tags. type PatchedWritableClusterRequest struct { - Name *string `json:"name,omitempty"` - Type *ClusterTypeRequest `json:"type,omitempty"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `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"` + Name *string `json:"name,omitempty"` + Type *BriefClusterTypeRequest `json:"type,omitempty"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_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{} } @@ -84,9 +85,9 @@ func (o *PatchedWritableClusterRequest) SetName(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { +func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil || IsNil(o.Type) { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } return *o.Type @@ -94,7 +95,7 @@ func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -110,15 +111,15 @@ func (o *PatchedWritableClusterRequest) HasType() bool { return false } -// SetType gets a reference to the given ClusterTypeRequest and assigns it to the Type field. -func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest) { +// SetType gets a reference to the given BriefClusterTypeRequest and assigns it to the Type field. +func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = &v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -127,7 +128,7 @@ func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group 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 *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -143,11 +144,10 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableClusterRequest) SetGroupNil() { o.Group.Set(nil) @@ -159,9 +159,9 @@ func (o *PatchedWritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -169,7 +169,7 @@ func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -185,15 +185,15 @@ func (o *PatchedWritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { +func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { // 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 *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,11 +218,10 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableClusterRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -233,47 +232,88 @@ func (o *PatchedWritableClusterRequest) UnsetTenant() { o.Tenant.Unset() } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableClusterRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string return ret } - return *o.Site.Get() + return *o.ScopeType.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetScopeTypeOk returns a tuple with the ScopeType 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 *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableClusterRequest) GetScopeTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.ScopeType.Get(), o.ScopeType.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *PatchedWritableClusterRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasScopeType returns a boolean if a field has been set. +func (o *PatchedWritableClusterRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest) { - o.Site.Set(&v) +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *PatchedWritableClusterRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *PatchedWritableClusterRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) } -// SetSiteNil sets the value for Site to be an explicit nil -func (o *PatchedWritableClusterRequest) SetSiteNil() { - o.Site.Set(nil) +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *PatchedWritableClusterRequest) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableClusterRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *PatchedWritableClusterRequest) UnsetSite() { - o.Site.Unset() +// GetScopeIdOk returns a tuple with the ScopeId 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 *PatchedWritableClusterRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *PatchedWritableClusterRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *PatchedWritableClusterRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *PatchedWritableClusterRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *PatchedWritableClusterRequest) UnsetScopeId() { + o.ScopeId.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -405,7 +445,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 } @@ -429,8 +469,11 @@ func (o PatchedWritableClusterRequest) ToMap() (map[string]interface{}, error) { if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -471,7 +514,8 @@ func (o *PatchedWritableClusterRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group") delete(additionalProperties, "status") delete(additionalProperties, "tenant") - delete(additionalProperties, "site") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -517,3 +561,5 @@ func (v *NullablePatchedWritableClusterRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_cluster_request_status.go b/model_patched_writable_cluster_request_status.go deleted file mode 100644 index 190ffc9868..0000000000 --- a/model_patched_writable_cluster_request_status.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableClusterRequestStatus * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline -type PatchedWritableClusterRequestStatus string - -// List of PatchedWritableClusterRequest_status -const ( - PATCHEDWRITABLECLUSTERREQUESTSTATUS_PLANNED PatchedWritableClusterRequestStatus = "planned" - PATCHEDWRITABLECLUSTERREQUESTSTATUS_STAGING PatchedWritableClusterRequestStatus = "staging" - PATCHEDWRITABLECLUSTERREQUESTSTATUS_ACTIVE PatchedWritableClusterRequestStatus = "active" - PATCHEDWRITABLECLUSTERREQUESTSTATUS_DECOMMISSIONING PatchedWritableClusterRequestStatus = "decommissioning" - PATCHEDWRITABLECLUSTERREQUESTSTATUS_OFFLINE PatchedWritableClusterRequestStatus = "offline" -) - -// All allowed values of PatchedWritableClusterRequestStatus enum -var AllowedPatchedWritableClusterRequestStatusEnumValues = []PatchedWritableClusterRequestStatus{ - "planned", - "staging", - "active", - "decommissioning", - "offline", -} - -func (v *PatchedWritableClusterRequestStatus) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableClusterRequestStatus(value) - for _, existing := range AllowedPatchedWritableClusterRequestStatusEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableClusterRequestStatus", value) -} - -// NewPatchedWritableClusterRequestStatusFromValue returns a pointer to a valid PatchedWritableClusterRequestStatus -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableClusterRequestStatusFromValue(v string) (*PatchedWritableClusterRequestStatus, error) { - ev := PatchedWritableClusterRequestStatus(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableClusterRequestStatus: valid values are %v", v, AllowedPatchedWritableClusterRequestStatusEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableClusterRequestStatus) IsValid() bool { - for _, existing := range AllowedPatchedWritableClusterRequestStatusEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableClusterRequest_status value -func (v PatchedWritableClusterRequestStatus) Ptr() *PatchedWritableClusterRequestStatus { - return &v -} - -type NullablePatchedWritableClusterRequestStatus struct { - value *PatchedWritableClusterRequestStatus - isSet bool -} - -func (v NullablePatchedWritableClusterRequestStatus) Get() *PatchedWritableClusterRequestStatus { - return v.value -} - -func (v *NullablePatchedWritableClusterRequestStatus) Set(val *PatchedWritableClusterRequestStatus) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableClusterRequestStatus) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableClusterRequestStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableClusterRequestStatus(val *PatchedWritableClusterRequestStatus) *NullablePatchedWritableClusterRequestStatus { - return &NullablePatchedWritableClusterRequestStatus{value: val, isSet: true} -} - -func (v NullablePatchedWritableClusterRequestStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableClusterRequestStatus) UnmarshalJSON(src []byte) error { - 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 5e75fe1df9..279867c0eb 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{} // PatchedWritableConsolePortRequest Adds support for custom fields and tags. type PatchedWritableConsolePortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` - Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"` + Speed NullablePatchedWritableConsolePortRequestSpeed `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{} } @@ -54,9 +54,9 @@ func NewPatchedWritableConsolePortRequestWithDefaults() *PatchedWritableConsoleP } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsolePortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,11 +113,10 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableConsolePortRequest) SetModuleNil() { o.Module.Set(nil) @@ -192,36 +191,46 @@ func (o *PatchedWritableConsolePortRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableConsolePortRequest) GetType() PatchedWritableConsolePortRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritableConsolePortRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *PatchedWritableConsolePortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritableConsolePortRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritableConsolePortRequestType and assigns it to the Type field. func (o *PatchedWritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritableConsolePortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritableConsolePortRequest) UnsetType() { + o.Type.Unset() } // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -256,7 +265,6 @@ func (o *PatchedWritableConsolePortRequest) HasSpeed() bool { func (o *PatchedWritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *PatchedWritableConsolePortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -396,7 +404,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 } @@ -417,8 +425,8 @@ func (o PatchedWritableConsolePortRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() @@ -508,3 +516,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_request_speed.go b/model_patched_writable_console_port_request_speed.go index 9fb31ae8e3..ba458d18f1 100644 --- a/model_patched_writable_console_port_request_speed.go +++ b/model_patched_writable_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ type PatchedWritableConsolePortRequestSpeed int32 // List of PatchedWritableConsolePortRequest_speed const ( - PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__1200 PatchedWritableConsolePortRequestSpeed = 1200 - PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__2400 PatchedWritableConsolePortRequestSpeed = 2400 - PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__4800 PatchedWritableConsolePortRequestSpeed = 4800 - PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__9600 PatchedWritableConsolePortRequestSpeed = 9600 - PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__19200 PatchedWritableConsolePortRequestSpeed = 19200 - PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__38400 PatchedWritableConsolePortRequestSpeed = 38400 - PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__57600 PatchedWritableConsolePortRequestSpeed = 57600 + PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__1200 PatchedWritableConsolePortRequestSpeed = 1200 + PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__2400 PatchedWritableConsolePortRequestSpeed = 2400 + PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__4800 PatchedWritableConsolePortRequestSpeed = 4800 + PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__9600 PatchedWritableConsolePortRequestSpeed = 9600 + PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__19200 PatchedWritableConsolePortRequestSpeed = 19200 + PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__38400 PatchedWritableConsolePortRequestSpeed = 38400 + PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__57600 PatchedWritableConsolePortRequestSpeed = 57600 PATCHEDWRITABLECONSOLEPORTREQUESTSPEED__115200 PatchedWritableConsolePortRequestSpeed = 115200 ) @@ -120,3 +120,4 @@ func (v *NullablePatchedWritableConsolePortRequestSpeed) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go index db1edadc39..225dd1e096 100644 --- a/model_patched_writable_console_port_request_type.go +++ b/model_patched_writable_console_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ type PatchedWritableConsolePortRequestType string // List of PatchedWritableConsolePortRequest_type const ( - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DE_9 PatchedWritableConsolePortRequestType = "de-9" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DB_25 PatchedWritableConsolePortRequestType = "db-25" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_11 PatchedWritableConsolePortRequestType = "rj-11" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_12 PatchedWritableConsolePortRequestType = "rj-12" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_45 PatchedWritableConsolePortRequestType = "rj-45" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortRequestType = "mini-din-8" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_A PatchedWritableConsolePortRequestType = "usb-a" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_B PatchedWritableConsolePortRequestType = "usb-b" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_C PatchedWritableConsolePortRequestType = "usb-c" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortRequestType = "usb-mini-a" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortRequestType = "usb-mini-b" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortRequestType = "usb-micro-a" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortRequestType = "usb-micro-b" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DE_9 PatchedWritableConsolePortRequestType = "de-9" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_DB_25 PatchedWritableConsolePortRequestType = "db-25" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_11 PatchedWritableConsolePortRequestType = "rj-11" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_12 PatchedWritableConsolePortRequestType = "rj-12" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_RJ_45 PatchedWritableConsolePortRequestType = "rj-45" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortRequestType = "mini-din-8" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_A PatchedWritableConsolePortRequestType = "usb-a" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_B PatchedWritableConsolePortRequestType = "usb-b" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_C PatchedWritableConsolePortRequestType = "usb-c" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortRequestType = "usb-mini-a" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortRequestType = "usb-mini-b" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortRequestType = "usb-micro-a" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortRequestType = "usb-micro-b" PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_USB_MICRO_AB PatchedWritableConsolePortRequestType = "usb-micro-ab" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_OTHER PatchedWritableConsolePortRequestType = "other" - PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_EMPTY PatchedWritableConsolePortRequestType = "" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_OTHER PatchedWritableConsolePortRequestType = "other" + PATCHEDWRITABLECONSOLEPORTREQUESTTYPE_EMPTY PatchedWritableConsolePortRequestType = "" ) // All allowed values of PatchedWritableConsolePortRequestType enum @@ -136,3 +136,4 @@ func (v *NullablePatchedWritableConsolePortRequestType) UnmarshalJSON(src []byte 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 a4c19d0c0e..9191f755df 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableConsolePortTemplateRequest{} // PatchedWritableConsolePortTemplateRequest 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 PatchedWritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedWritableConsolePortTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,11 +77,10 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -93,9 +92,9 @@ func (o *PatchedWritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +103,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,11 +119,10 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableConsolePortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -199,36 +197,46 @@ func (o *PatchedWritableConsolePortTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue { - if o == nil || IsNil(o.Type) { - var ret ConsolePortTypeValue +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableConsolePortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PatchedWritableConsolePortTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableConsolePortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritableConsolePortTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field. -func (o *PatchedWritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue) { - o.Type = &v +// SetType gets a reference to the given NullablePatchedWritableConsolePortTemplateRequestType and assigns it to the Type field. +func (o *PatchedWritableConsolePortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritableConsolePortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritableConsolePortTemplateRequest) UnsetType() { + o.Type.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -264,7 +272,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 } @@ -285,8 +293,8 @@ func (o PatchedWritableConsolePortTemplateRequest) ToMap() (map[string]interface if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -360,3 +368,5 @@ func (v *NullablePatchedWritableConsolePortTemplateRequest) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_console_port_template_request_type.go b/model_patched_writable_console_port_template_request_type.go new file mode 100644 index 0000000000..909fa45d18 --- /dev/null +++ b/model_patched_writable_console_port_template_request_type.go @@ -0,0 +1,139 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableConsolePortTemplateRequestType * `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 PatchedWritableConsolePortTemplateRequestType string + +// List of PatchedWritableConsolePortTemplateRequest_type +const ( + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_DE_9 PatchedWritableConsolePortTemplateRequestType = "de-9" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_DB_25 PatchedWritableConsolePortTemplateRequestType = "db-25" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_11 PatchedWritableConsolePortTemplateRequestType = "rj-11" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_12 PatchedWritableConsolePortTemplateRequestType = "rj-12" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_RJ_45 PatchedWritableConsolePortTemplateRequestType = "rj-45" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_MINI_DIN_8 PatchedWritableConsolePortTemplateRequestType = "mini-din-8" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritableConsolePortTemplateRequestType = "usb-a" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritableConsolePortTemplateRequestType = "usb-b" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritableConsolePortTemplateRequestType = "usb-c" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritableConsolePortTemplateRequestType = "usb-mini-a" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritableConsolePortTemplateRequestType = "usb-mini-b" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritableConsolePortTemplateRequestType = "usb-micro-a" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritableConsolePortTemplateRequestType = "usb-micro-b" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_USB_MICRO_AB PatchedWritableConsolePortTemplateRequestType = "usb-micro-ab" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritableConsolePortTemplateRequestType = "other" + PATCHEDWRITABLECONSOLEPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritableConsolePortTemplateRequestType = "" +) + +// All allowed values of PatchedWritableConsolePortTemplateRequestType enum +var AllowedPatchedWritableConsolePortTemplateRequestTypeEnumValues = []PatchedWritableConsolePortTemplateRequestType{ + "de-9", + "db-25", + "rj-11", + "rj-12", + "rj-45", + "mini-din-8", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", + "other", + "", +} + +func (v *PatchedWritableConsolePortTemplateRequestType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableConsolePortTemplateRequestType(value) + for _, existing := range AllowedPatchedWritableConsolePortTemplateRequestTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableConsolePortTemplateRequestType", value) +} + +// NewPatchedWritableConsolePortTemplateRequestTypeFromValue returns a pointer to a valid PatchedWritableConsolePortTemplateRequestType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableConsolePortTemplateRequestTypeFromValue(v string) (*PatchedWritableConsolePortTemplateRequestType, error) { + ev := PatchedWritableConsolePortTemplateRequestType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableConsolePortTemplateRequestType: valid values are %v", v, AllowedPatchedWritableConsolePortTemplateRequestTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableConsolePortTemplateRequestType) IsValid() bool { + for _, existing := range AllowedPatchedWritableConsolePortTemplateRequestTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableConsolePortTemplateRequest_type value +func (v PatchedWritableConsolePortTemplateRequestType) Ptr() *PatchedWritableConsolePortTemplateRequestType { + return &v +} + +type NullablePatchedWritableConsolePortTemplateRequestType struct { + value *PatchedWritableConsolePortTemplateRequestType + isSet bool +} + +func (v NullablePatchedWritableConsolePortTemplateRequestType) Get() *PatchedWritableConsolePortTemplateRequestType { + return v.value +} + +func (v *NullablePatchedWritableConsolePortTemplateRequestType) Set(val *PatchedWritableConsolePortTemplateRequestType) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableConsolePortTemplateRequestType) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableConsolePortTemplateRequestType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableConsolePortTemplateRequestType(val *PatchedWritableConsolePortTemplateRequestType) *NullablePatchedWritableConsolePortTemplateRequestType { + return &NullablePatchedWritableConsolePortTemplateRequestType{value: val, isSet: true} +} + +func (v NullablePatchedWritableConsolePortTemplateRequestType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableConsolePortTemplateRequestType) UnmarshalJSON(src []byte) error { + 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 c5a84421b1..0943dcfd76 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{} // PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags. type PatchedWritableConsoleServerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` - Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"` + Speed NullablePatchedWritableConsolePortRequestSpeed `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{} } @@ -54,9 +54,9 @@ func NewPatchedWritableConsoleServerPortRequestWithDefaults() *PatchedWritableCo } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsoleServerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,11 +113,10 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableConsoleServerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -192,36 +191,46 @@ func (o *PatchedWritableConsoleServerPortRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableConsoleServerPortRequest) GetType() PatchedWritableConsolePortRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritableConsolePortRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *PatchedWritableConsoleServerPortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritableConsoleServerPortRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritableConsolePortRequestType and assigns it to the Type field. func (o *PatchedWritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritableConsoleServerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritableConsoleServerPortRequest) UnsetType() { + o.Type.Unset() } // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -256,7 +265,6 @@ func (o *PatchedWritableConsoleServerPortRequest) HasSpeed() bool { func (o *PatchedWritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *PatchedWritableConsoleServerPortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -396,7 +404,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 } @@ -417,8 +425,8 @@ func (o PatchedWritableConsoleServerPortRequest) ToMap() (map[string]interface{} if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() @@ -508,3 +516,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 07402cdcd7..2c1e61b40f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortTemplateRequest{} // PatchedWritableConsoleServerPortTemplateRequest 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 PatchedWritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedWritableConsoleServerPortTemplateRequestWithDefaults() *PatchedWr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() Device // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,11 +77,10 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -93,9 +92,9 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +103,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() Module // GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,11 +119,10 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -199,36 +197,46 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue { - if o == nil || IsNil(o.Type) { - var ret ConsolePortTypeValue +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PatchedWritableConsolePortTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritableConsoleServerPortTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue) { - o.Type = &v +// SetType gets a reference to the given NullablePatchedWritableConsolePortTemplateRequestType and assigns it to the Type field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetType() { + o.Type.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -264,7 +272,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 } @@ -285,8 +293,8 @@ func (o PatchedWritableConsoleServerPortTemplateRequest) ToMap() (map[string]int if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -360,3 +368,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 8a792f86be..eeaff7d7f4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{} // PatchedWritableContactAssignmentRequest Adds support for custom fields and tags. type PatchedWritableContactAssignmentRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - Contact *ContactRequest `json:"contact,omitempty"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Contact *BriefContactRequest `json:"contact,omitempty"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedWritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil || IsNil(o.Contact) { - var ret ContactRequest + var ret BriefContactRequest return ret } return *o.Contact @@ -123,7 +123,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil || IsNil(o.Contact) { return nil, false } @@ -139,15 +139,15 @@ func (o *PatchedWritableContactAssignmentRequest) HasContact() bool { return false } -// SetContact gets a reference to the given ContactRequest and assigns it to the Contact field. -func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest) { +// SetContact gets a reference to the given BriefContactRequest and assigns it to the Contact field. +func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = &v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -156,7 +156,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role 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 *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -172,11 +172,10 @@ func (o *PatchedWritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableContactAssignmentRequest) SetRoleNil() { o.Role.Set(nil) @@ -187,36 +186,46 @@ func (o *PatchedWritableContactAssignmentRequest) UnsetRole() { o.Role.Unset() } -// GetPriority returns the Priority field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { - if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableContactAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority { + if o == nil || IsNil(o.Priority.Get()) { + var ret PatchedWritableCircuitGroupAssignmentRequestPriority return ret } - return *o.Priority + return *o.Priority.Get() } // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { - if o == nil || IsNil(o.Priority) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool) { + if o == nil { return nil, false } - return o.Priority, true + return o.Priority.Get(), o.Priority.IsSet() } // HasPriority returns a boolean if a field has been set. func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool { - if o != nil && !IsNil(o.Priority) { + if o != nil && o.Priority.IsSet() { return true } return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { - o.Priority = &v +// SetPriority gets a reference to the given NullablePatchedWritableCircuitGroupAssignmentRequestPriority and assigns it to the Priority field. +func (o *PatchedWritableContactAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) { + o.Priority.Set(&v) +} +// SetPriorityNil sets the value for Priority to be an explicit nil +func (o *PatchedWritableContactAssignmentRequest) SetPriorityNil() { + o.Priority.Set(nil) +} + +// UnsetPriority ensures that no value is present for Priority, not even an explicit nil +func (o *PatchedWritableContactAssignmentRequest) UnsetPriority() { + o.Priority.Unset() } // GetTags returns the Tags field value if set, zero value otherwise. @@ -284,7 +293,7 @@ func (o *PatchedWritableContactAssignmentRequest) SetCustomFields(v map[string]i } func (o PatchedWritableContactAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -305,8 +314,8 @@ func (o PatchedWritableContactAssignmentRequest) ToMap() (map[string]interface{} if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } - if !IsNil(o.Priority) { - toSerialize["priority"] = o.Priority + if o.Priority.IsSet() { + toSerialize["priority"] = o.Priority.Get() } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -384,3 +393,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 b7868b9e76..2515945ec4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -347,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_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go index 685a24ba2c..a2ca591fc5 100644 --- a/model_patched_writable_custom_field_choice_set_request.go +++ b/model_patched_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ 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"` - BaseChoices *PatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"` - ExtraChoices [][]interface{} `json:"extra_choices,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + BaseChoices NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"` + ExtraChoices [][]interface{} `json:"extra_choices,omitempty"` // Choices are automatically ordered alphabetically - OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` AdditionalProperties map[string]interface{} } @@ -111,36 +111,46 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) SetDescription(v string) { o.Description = &v } -// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise. +// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() PatchedWritableCustomFieldChoiceSetRequestBaseChoices { - if o == nil || IsNil(o.BaseChoices) { + if o == nil || IsNil(o.BaseChoices.Get()) { var ret PatchedWritableCustomFieldChoiceSetRequestBaseChoices return ret } - return *o.BaseChoices + return *o.BaseChoices.Get() } // GetBaseChoicesOk returns a tuple with the BaseChoices 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) GetBaseChoicesOk() (*PatchedWritableCustomFieldChoiceSetRequestBaseChoices, bool) { - if o == nil || IsNil(o.BaseChoices) { + if o == nil { return nil, false } - return o.BaseChoices, true + return o.BaseChoices.Get(), o.BaseChoices.IsSet() } // HasBaseChoices returns a boolean if a field has been set. func (o *PatchedWritableCustomFieldChoiceSetRequest) HasBaseChoices() bool { - if o != nil && !IsNil(o.BaseChoices) { + if o != nil && o.BaseChoices.IsSet() { return true } return false } -// SetBaseChoices gets a reference to the given PatchedWritableCustomFieldChoiceSetRequestBaseChoices and assigns it to the BaseChoices field. +// SetBaseChoices gets a reference to the given NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices and assigns it to the BaseChoices field. func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) { - o.BaseChoices = &v + o.BaseChoices.Set(&v) +} +// SetBaseChoicesNil sets the value for BaseChoices to be an explicit nil +func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoicesNil() { + o.BaseChoices.Set(nil) +} + +// UnsetBaseChoices ensures that no value is present for BaseChoices, not even an explicit nil +func (o *PatchedWritableCustomFieldChoiceSetRequest) UnsetBaseChoices() { + o.BaseChoices.Unset() } // GetExtraChoices returns the ExtraChoices field value if set, zero value otherwise. @@ -208,7 +218,7 @@ func (o *PatchedWritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bo } func (o PatchedWritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -223,8 +233,8 @@ func (o PatchedWritableCustomFieldChoiceSetRequest) ToMap() (map[string]interfac if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.BaseChoices) { - toSerialize["base_choices"] = o.BaseChoices + if o.BaseChoices.IsSet() { + toSerialize["base_choices"] = o.BaseChoices.Get() } if !IsNil(o.ExtraChoices) { toSerialize["extra_choices"] = o.ExtraChoices @@ -300,3 +310,5 @@ func (v *NullablePatchedWritableCustomFieldChoiceSetRequest) UnmarshalJSON(src [ v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_custom_field_choice_set_request_base_choices.go b/model_patched_writable_custom_field_choice_set_request_base_choices.go index 05ed85e77b..1a1e619a80 100644 --- a/model_patched_writable_custom_field_choice_set_request_base_choices.go +++ b/model_patched_writable_custom_field_choice_set_request_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ type PatchedWritableCustomFieldChoiceSetRequestBaseChoices string // List of PatchedWritableCustomFieldChoiceSetRequest_base_choices const ( - PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_IATA PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "IATA" - PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_ISO_3166 PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "ISO_3166" + PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_IATA PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "IATA" + PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_ISO_3166 PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "ISO_3166" PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_UN_LOCODE PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "UN_LOCODE" - PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_EMPTY PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "" + PATCHEDWRITABLECUSTOMFIELDCHOICESETREQUESTBASECHOICES_EMPTY PatchedWritableCustomFieldChoiceSetRequestBaseChoices = "" ) // All allowed values of PatchedWritableCustomFieldChoiceSetRequestBaseChoices enum @@ -112,3 +112,4 @@ func (v *NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices) Unmarsha 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 4e6a76214e..ccca28cfb8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,27 +19,31 @@ var _ MappedNullable = &PatchedWritableCustomFieldRequest{} // PatchedWritableCustomFieldRequest 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 PatchedWritableCustomFieldRequest struct { - ObjectTypes []string `json:"object_types,omitempty"` - Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"` - RelatedObjectType NullableString `json:"related_object_type,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` + Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"` + RelatedObjectType NullableString `json:"related_object_type,omitempty"` // Internal field name - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty" validate:"regexp=^[a-z0-9_]+$"` // 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. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,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 *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` - UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"` - UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"` + SearchWeight *int32 `json:"search_weight,omitempty"` + FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` + UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"` + UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -47,9 +51,9 @@ type PatchedWritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `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"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -168,7 +172,6 @@ func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectType() bool { func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectType(v string) { o.RelatedObjectType.Set(&v) } - // SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectTypeNil() { o.RelatedObjectType.Set(nil) @@ -339,6 +342,38 @@ func (o *PatchedWritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -532,6 +567,39 @@ func (o *PatchedWritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter 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) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -596,7 +664,6 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMinimum() bool { func (o *PatchedWritableCustomFieldRequest) SetValidationMinimum(v int64) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *PatchedWritableCustomFieldRequest) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -639,7 +706,6 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMaximum() bool { func (o *PatchedWritableCustomFieldRequest) SetValidationMaximum(v int64) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *PatchedWritableCustomFieldRequest) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -683,9 +749,9 @@ func (o *PatchedWritableCustomFieldRequest) SetValidationRegex(v 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() CustomFieldChoiceSetRequest { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -694,7 +760,7 @@ func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetR // 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) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -710,11 +776,10 @@ func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } - // SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil func (o *PatchedWritableCustomFieldRequest) SetChoiceSetNil() { o.ChoiceSet.Set(nil) @@ -758,7 +823,7 @@ func (o *PatchedWritableCustomFieldRequest) SetComments(v string) { } func (o PatchedWritableCustomFieldRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -791,6 +856,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -809,6 +877,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -857,12 +928,14 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") @@ -910,3 +983,5 @@ func (v *NullablePatchedWritableCustomFieldRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go index 617a068559..a270ad1b9f 100644 --- a/model_patched_writable_custom_field_request_filter_logic.go +++ b/model_patched_writable_custom_field_request_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type PatchedWritableCustomFieldRequestFilterLogic string // List of PatchedWritableCustomFieldRequest_filter_logic const ( PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_DISABLED PatchedWritableCustomFieldRequestFilterLogic = "disabled" - PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_LOOSE PatchedWritableCustomFieldRequestFilterLogic = "loose" - PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_EXACT PatchedWritableCustomFieldRequestFilterLogic = "exact" + PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_LOOSE PatchedWritableCustomFieldRequestFilterLogic = "loose" + PATCHEDWRITABLECUSTOMFIELDREQUESTFILTERLOGIC_EXACT PatchedWritableCustomFieldRequestFilterLogic = "exact" ) // All allowed values of PatchedWritableCustomFieldRequestFilterLogic enum @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableCustomFieldRequestFilterLogic) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go index 3efb71f2cf..30a381885e 100644 --- a/model_patched_writable_custom_field_request_type.go +++ b/model_patched_writable_custom_field_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ type PatchedWritableCustomFieldRequestType string // List of PatchedWritableCustomFieldRequest_type const ( - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_TEXT PatchedWritableCustomFieldRequestType = "text" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_LONGTEXT PatchedWritableCustomFieldRequestType = "longtext" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_INTEGER PatchedWritableCustomFieldRequestType = "integer" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DECIMAL PatchedWritableCustomFieldRequestType = "decimal" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_BOOLEAN PatchedWritableCustomFieldRequestType = "boolean" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATE PatchedWritableCustomFieldRequestType = "date" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATETIME PatchedWritableCustomFieldRequestType = "datetime" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_URL PatchedWritableCustomFieldRequestType = "url" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_JSON PatchedWritableCustomFieldRequestType = "json" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_SELECT PatchedWritableCustomFieldRequestType = "select" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_TEXT PatchedWritableCustomFieldRequestType = "text" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_LONGTEXT PatchedWritableCustomFieldRequestType = "longtext" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_INTEGER PatchedWritableCustomFieldRequestType = "integer" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DECIMAL PatchedWritableCustomFieldRequestType = "decimal" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_BOOLEAN PatchedWritableCustomFieldRequestType = "boolean" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATE PatchedWritableCustomFieldRequestType = "date" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_DATETIME PatchedWritableCustomFieldRequestType = "datetime" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_URL PatchedWritableCustomFieldRequestType = "url" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_JSON PatchedWritableCustomFieldRequestType = "json" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_SELECT PatchedWritableCustomFieldRequestType = "select" PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_MULTISELECT PatchedWritableCustomFieldRequestType = "multiselect" - PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_OBJECT PatchedWritableCustomFieldRequestType = "object" + PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_OBJECT PatchedWritableCustomFieldRequestType = "object" PATCHEDWRITABLECUSTOMFIELDREQUESTTYPE_MULTIOBJECT PatchedWritableCustomFieldRequestType = "multiobject" ) @@ -130,3 +130,4 @@ func (v *NullablePatchedWritableCustomFieldRequestType) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go index 2ebd0d168a..3c5038148f 100644 --- a/model_patched_writable_custom_field_request_ui_editable.go +++ b/model_patched_writable_custom_field_request_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type PatchedWritableCustomFieldRequestUiEditable string // List of PatchedWritableCustomFieldRequest_ui_editable const ( - PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_YES PatchedWritableCustomFieldRequestUiEditable = "yes" - PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_NO PatchedWritableCustomFieldRequestUiEditable = "no" + PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_YES PatchedWritableCustomFieldRequestUiEditable = "yes" + PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_NO PatchedWritableCustomFieldRequestUiEditable = "no" PATCHEDWRITABLECUSTOMFIELDREQUESTUIEDITABLE_HIDDEN PatchedWritableCustomFieldRequestUiEditable = "hidden" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableCustomFieldRequestUiEditable) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go index 2b26094231..35c826e85a 100644 --- a/model_patched_writable_custom_field_request_ui_visible.go +++ b/model_patched_writable_custom_field_request_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableCustomFieldRequestUiVisible) UnmarshalJSON(src [ 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 4446f37e84..319c76b3b1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableDataSourceRequest{} // PatchedWritableDataSourceRequest Adds support for custom fields and tags. type PatchedWritableDataSourceRequest struct { - Name *string `json:"name,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 interface{} `json:"parameters,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + SourceUrl *string `json:"source_url,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -211,38 +211,6 @@ func (o *PatchedWritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *PatchedWritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *PatchedWritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *PatchedWritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -308,6 +276,38 @@ func (o *PatchedWritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -341,7 +341,7 @@ func (o *PatchedWritableDataSourceRequest) SetCustomFields(v map[string]interfac } func (o PatchedWritableDataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -365,15 +365,15 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -404,9 +404,9 @@ func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -449,3 +449,5 @@ func (v *NullablePatchedWritableDataSourceRequest) 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 e5906960d9..58ac963c66 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,27 +20,27 @@ var _ MappedNullable = &PatchedWritableDeviceTypeRequest{} // PatchedWritableDeviceTypeRequest Adds support for custom fields and tags. type PatchedWritableDeviceTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` // 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"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `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"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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{} } @@ -68,9 +68,9 @@ func NewPatchedWritableDeviceTypeRequestWithDefaults() *PatchedWritableDeviceTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -78,7 +78,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -94,15 +94,15 @@ func (o *PatchedWritableDeviceTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest // GetDefaultPlatformOk returns a tuple with the DefaultPlatform 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 *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -127,11 +127,10 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } - // SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatformNil() { o.DefaultPlatform.Set(nil) @@ -334,68 +333,88 @@ func (o *PatchedWritableDeviceTypeRequest) SetIsFullDepth(v bool) { o.IsFullDepth = &v } -// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise. +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus1 { - if o == nil || IsNil(o.SubdeviceRole) { + if o == nil || IsNil(o.SubdeviceRole.Get()) { var ret ParentChildStatus1 return ret } - return *o.SubdeviceRole + return *o.SubdeviceRole.Get() } // GetSubdeviceRoleOk returns a tuple with the SubdeviceRole 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 *PatchedWritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus1, bool) { - if o == nil || IsNil(o.SubdeviceRole) { + if o == nil { return nil, false } - return o.SubdeviceRole, true + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() } // HasSubdeviceRole returns a boolean if a field has been set. func (o *PatchedWritableDeviceTypeRequest) HasSubdeviceRole() bool { - if o != nil && !IsNil(o.SubdeviceRole) { + if o != nil && o.SubdeviceRole.IsSet() { return true } return false } -// SetSubdeviceRole gets a reference to the given ParentChildStatus1 and assigns it to the SubdeviceRole field. +// SetSubdeviceRole gets a reference to the given NullableParentChildStatus1 and assigns it to the SubdeviceRole field. func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1) { - o.SubdeviceRole = &v + o.SubdeviceRole.Set(&v) +} +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *PatchedWritableDeviceTypeRequest) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *PatchedWritableDeviceTypeRequest) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue { - if o == nil || IsNil(o.Airflow) { - var ret DeviceAirflowValue +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableDeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow return ret } - return *o.Airflow + return *o.Airflow.Get() } // GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool) { - if o == nil || IsNil(o.Airflow) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableDeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { return nil, false } - return o.Airflow, true + return o.Airflow.Get(), o.Airflow.IsSet() } // HasAirflow returns a boolean if a field has been set. func (o *PatchedWritableDeviceTypeRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { + if o != nil && o.Airflow.IsSet() { return true } return false } -// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field. -func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue) { - o.Airflow = &v +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *PatchedWritableDeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *PatchedWritableDeviceTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *PatchedWritableDeviceTypeRequest) UnsetAirflow() { + o.Airflow.Unset() } // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). @@ -430,7 +449,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) @@ -441,36 +459,46 @@ func (o *PatchedWritableDeviceTypeRequest) UnsetWeight() { o.Weight.Unset() } -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit return ret } - return *o.WeightUnit + return *o.WeightUnit.Get() } // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { - if o == nil || IsNil(o.WeightUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { return nil, false } - return o.WeightUnit, true + return o.WeightUnit.Get(), o.WeightUnit.IsSet() } // HasWeightUnit returns a boolean if a field has been set. func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool { - if o != nil && !IsNil(o.WeightUnit) { + if o != nil && o.WeightUnit.IsSet() { return true } return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { - o.WeightUnit = &v +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *PatchedWritableDeviceTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *PatchedWritableDeviceTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() } // GetFrontImage returns the FrontImage field value if set, zero value otherwise. @@ -666,7 +694,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 } @@ -699,17 +727,17 @@ func (o PatchedWritableDeviceTypeRequest) ToMap() (map[string]interface{}, error if !IsNil(o.IsFullDepth) { toSerialize["is_full_depth"] = o.IsFullDepth } - if !IsNil(o.SubdeviceRole) { - toSerialize["subdevice_role"] = o.SubdeviceRole + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } - if !IsNil(o.WeightUnit) { - toSerialize["weight_unit"] = o.WeightUnit + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() } if !IsNil(o.FrontImage) { toSerialize["front_image"] = o.FrontImage @@ -810,3 +838,5 @@ func (v *NullablePatchedWritableDeviceTypeRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_device_type_request_weight_unit.go b/model_patched_writable_device_type_request_weight_unit.go deleted file mode 100644 index 7fcd239e1a..0000000000 --- a/model_patched_writable_device_type_request_weight_unit.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableDeviceTypeRequestWeightUnit * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -type PatchedWritableDeviceTypeRequestWeightUnit string - -// List of PatchedWritableDeviceTypeRequest_weight_unit -const ( - PATCHEDWRITABLEDEVICETYPEREQUESTWEIGHTUNIT_KG PatchedWritableDeviceTypeRequestWeightUnit = "kg" - PATCHEDWRITABLEDEVICETYPEREQUESTWEIGHTUNIT_G PatchedWritableDeviceTypeRequestWeightUnit = "g" - PATCHEDWRITABLEDEVICETYPEREQUESTWEIGHTUNIT_LB PatchedWritableDeviceTypeRequestWeightUnit = "lb" - PATCHEDWRITABLEDEVICETYPEREQUESTWEIGHTUNIT_OZ PatchedWritableDeviceTypeRequestWeightUnit = "oz" - PATCHEDWRITABLEDEVICETYPEREQUESTWEIGHTUNIT_EMPTY PatchedWritableDeviceTypeRequestWeightUnit = "" -) - -// All allowed values of PatchedWritableDeviceTypeRequestWeightUnit enum -var AllowedPatchedWritableDeviceTypeRequestWeightUnitEnumValues = []PatchedWritableDeviceTypeRequestWeightUnit{ - "kg", - "g", - "lb", - "oz", - "", -} - -func (v *PatchedWritableDeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableDeviceTypeRequestWeightUnit(value) - for _, existing := range AllowedPatchedWritableDeviceTypeRequestWeightUnitEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableDeviceTypeRequestWeightUnit", value) -} - -// NewPatchedWritableDeviceTypeRequestWeightUnitFromValue returns a pointer to a valid PatchedWritableDeviceTypeRequestWeightUnit -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableDeviceTypeRequestWeightUnitFromValue(v string) (*PatchedWritableDeviceTypeRequestWeightUnit, error) { - ev := PatchedWritableDeviceTypeRequestWeightUnit(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableDeviceTypeRequestWeightUnit: valid values are %v", v, AllowedPatchedWritableDeviceTypeRequestWeightUnitEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableDeviceTypeRequestWeightUnit) IsValid() bool { - for _, existing := range AllowedPatchedWritableDeviceTypeRequestWeightUnitEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableDeviceTypeRequest_weight_unit value -func (v PatchedWritableDeviceTypeRequestWeightUnit) Ptr() *PatchedWritableDeviceTypeRequestWeightUnit { - return &v -} - -type NullablePatchedWritableDeviceTypeRequestWeightUnit struct { - value *PatchedWritableDeviceTypeRequestWeightUnit - isSet bool -} - -func (v NullablePatchedWritableDeviceTypeRequestWeightUnit) Get() *PatchedWritableDeviceTypeRequestWeightUnit { - return v.value -} - -func (v *NullablePatchedWritableDeviceTypeRequestWeightUnit) Set(val *PatchedWritableDeviceTypeRequestWeightUnit) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableDeviceTypeRequestWeightUnit) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableDeviceTypeRequestWeightUnit) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableDeviceTypeRequestWeightUnit(val *PatchedWritableDeviceTypeRequestWeightUnit) *NullablePatchedWritableDeviceTypeRequestWeightUnit { - return &NullablePatchedWritableDeviceTypeRequestWeightUnit{value: val, isSet: true} -} - -func (v NullablePatchedWritableDeviceTypeRequestWeightUnit) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableDeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { - 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 2594a9023b..91a5e565a9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,41 +19,41 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{} // PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Role *DeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + Role *BriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `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 *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *RackFace1 `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face NullableRackFace1 `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"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,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"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,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) @@ -120,9 +119,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -130,7 +129,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTy // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -146,15 +145,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role @@ -162,7 +161,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequ // 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) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -178,15 +177,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given DeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given BriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -195,7 +194,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantReques // 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 *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -211,11 +210,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -227,9 +225,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -238,7 +236,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRe // GetPlatformOk returns a tuple with the Platform 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) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -254,11 +252,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -333,7 +330,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) @@ -345,9 +341,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -355,7 +351,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -371,15 +367,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -388,7 +384,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRe // GetLocationOk returns a tuple with the Location 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) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -404,11 +400,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocationNil() { o.Location.Set(nil) @@ -420,9 +415,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -431,7 +426,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -447,11 +442,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetRackNil() { o.Rack.Set(nil) @@ -494,7 +488,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) @@ -505,36 +498,46 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPosition() { o.Position.Unset() } -// GetFace returns the Face field value if set, zero value otherwise. +// GetFace returns the Face field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace1 { - if o == nil || IsNil(o.Face) { + if o == nil || IsNil(o.Face.Get()) { var ret RackFace1 return ret } - return *o.Face + return *o.Face.Get() } // GetFaceOk returns a tuple with the Face 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) GetFaceOk() (*RackFace1, bool) { - if o == nil || IsNil(o.Face) { + if o == nil { return nil, false } - return o.Face, true + return o.Face.Get(), o.Face.IsSet() } // HasFace returns a boolean if a field has been set. func (o *PatchedWritableDeviceWithConfigContextRequest) HasFace() bool { - if o != nil && !IsNil(o.Face) { + if o != nil && o.Face.IsSet() { return true } return false } -// SetFace gets a reference to the given RackFace1 and assigns it to the Face field. +// SetFace gets a reference to the given NullableRackFace1 and assigns it to the Face field. func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace1) { - o.Face = &v + o.Face.Set(&v) +} +// SetFaceNil sets the value for Face to be an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) SetFaceNil() { + o.Face.Set(nil) +} + +// UnsetFace ensures that no value is present for Face, not even an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetFace() { + o.Face.Unset() } // GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). @@ -569,7 +572,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLatitude() bool { 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) @@ -612,7 +614,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLongitude() bool { 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) @@ -655,42 +656,52 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatus o.Status = &v } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue { - if o == nil || IsNil(o.Airflow) { - var ret DeviceAirflowValue +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow return ret } - return *o.Airflow + return *o.Airflow.Get() } // GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool) { - if o == nil || IsNil(o.Airflow) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { return nil, false } - return o.Airflow, true + return o.Airflow.Get(), o.Airflow.IsSet() } // HasAirflow returns a boolean if a field has been set. func (o *PatchedWritableDeviceWithConfigContextRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { + if o != nil && o.Airflow.IsSet() { return true } return false } -// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) { - o.Airflow = &v +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAirflow() { + o.Airflow.Unset() } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -699,7 +710,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddres // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -715,11 +726,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -731,9 +741,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -742,7 +752,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddres // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -758,11 +768,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -774,9 +783,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -785,7 +794,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequ // 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() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -801,11 +810,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } - // SetOobIpNil sets the value for OobIp to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIpNil() { o.OobIp.Set(nil) @@ -817,9 +825,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -828,7 +836,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequ // GetClusterOk returns a tuple with the Cluster 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) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -844,11 +852,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -860,9 +867,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -871,7 +878,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() Virt // GetVirtualChassisOk returns a tuple with the VirtualChassis 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) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -887,11 +894,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -934,7 +940,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) @@ -977,7 +982,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) @@ -1053,9 +1057,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1064,7 +1068,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() Conf // 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() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1080,11 +1084,10 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -1193,7 +1196,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetCustomFields(v map[st } func (o PatchedWritableDeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1235,8 +1238,8 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter if o.Position.IsSet() { toSerialize["position"] = o.Position.Get() } - if !IsNil(o.Face) { - toSerialize["face"] = o.Face + if o.Face.IsSet() { + toSerialize["face"] = o.Face.Get() } if o.Latitude.IsSet() { toSerialize["latitude"] = o.Latitude.Get() @@ -1247,8 +1250,8 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() } if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() @@ -1381,3 +1384,5 @@ func (v *NullablePatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(sr v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go index 0251a39dc1..fd4c30d241 100644 --- a/model_patched_writable_event_rule_request.go +++ b/model_patched_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,26 +20,18 @@ var _ MappedNullable = &PatchedWritableEventRuleRequest{} // PatchedWritableEventRuleRequest Adds support for custom fields and tags. type PatchedWritableEventRuleRequest struct { ObjectTypes []string `json:"object_types,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. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name *string `json:"name,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types,omitempty"` // A set of conditions which determine whether the event will be generated. - Conditions interface{} `json:"conditions,omitempty"` - ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` - ActionObjectType *string `json:"action_object_type,omitempty"` - ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` - Description *string `json:"description,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Conditions interface{} `json:"conditions,omitempty"` + ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` + ActionObjectType *string `json:"action_object_type,omitempty"` + ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` + Description *string `json:"description,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -126,196 +118,68 @@ func (o *PatchedWritableEventRuleRequest) SetName(v string) { o.Name = &v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } - return *o.TypeJobEnd + return *o.Enabled } -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { +func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { return nil, false } - return o.TypeJobEnd, true + return o.Enabled, true } -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { +// HasEnabled returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { return true } return false } -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { + o.Enabled = &v } -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool +// GetEventTypes returns the EventTypes field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil || IsNil(o.EventTypes) { + var ret []EventRuleEventTypesInner return ret } - return *o.Enabled + return o.EventTypes } -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// GetEventTypesOk returns a tuple with the EventTypes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { +func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil || IsNil(o.EventTypes) { return nil, false } - return o.Enabled, true + return o.EventTypes, true } -// HasEnabled returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { +// HasEventTypes returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool { + if o != nil && !IsNil(o.EventTypes) { return true } return false } -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { - o.Enabled = &v +// SetEventTypes gets a reference to the given []EventRuleEventTypesInner and assigns it to the EventTypes field. +func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v } // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). @@ -447,7 +311,6 @@ func (o *PatchedWritableEventRuleRequest) HasActionObjectId() bool { func (o *PatchedWritableEventRuleRequest) SetActionObjectId(v int64) { o.ActionObjectId.Set(&v) } - // SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil func (o *PatchedWritableEventRuleRequest) SetActionObjectIdNil() { o.ActionObjectId.Set(nil) @@ -555,7 +418,7 @@ func (o *PatchedWritableEventRuleRequest) SetTags(v []NestedTagRequest) { } func (o PatchedWritableEventRuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -570,24 +433,12 @@ func (o PatchedWritableEventRuleRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + if !IsNil(o.EventTypes) { + toSerialize["event_types"] = o.EventTypes + } if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -633,12 +484,8 @@ func (o *PatchedWritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") @@ -687,3 +534,5 @@ func (v *NullablePatchedWritableEventRuleRequest) UnmarshalJSON(src []byte) erro 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 56a5a766f6..5fd6cb6a21 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{} // PatchedWritableFrontPortRequest Adds support for custom fields and tags. type PatchedWritableFrontPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *int32 `json:"rear_port,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + 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{} } @@ -45,8 +45,6 @@ type _PatchedWritableFrontPortRequest PatchedWritableFrontPortRequest // will change when the set of required properties is changed func NewPatchedWritableFrontPortRequest() *PatchedWritableFrontPortRequest { this := PatchedWritableFrontPortRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -55,15 +53,13 @@ func NewPatchedWritableFrontPortRequest() *PatchedWritableFrontPortRequest { // but it doesn't guarantee that properties required by API are set func NewPatchedWritableFrontPortRequestWithDefaults() *PatchedWritableFrontPortRequest { this := PatchedWritableFrontPortRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +67,7 @@ func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,15 +83,15 @@ func (o *PatchedWritableFrontPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -104,7 +100,7 @@ func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -120,11 +116,10 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableFrontPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -456,7 +451,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 } @@ -576,3 +571,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 a7e2d7d33e..6b35bdc850 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableFrontPortTemplateRequest{} // PatchedWritableFrontPortTemplateRequest 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 PatchedWritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *RearPortTemplateRequest `json:"rear_port,omitempty"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + RearPort *BriefRearPortTemplateRequest `json:"rear_port,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,8 +41,6 @@ type _PatchedWritableFrontPortTemplateRequest PatchedWritableFrontPortTemplateRe // will change when the set of required properties is changed func NewPatchedWritableFrontPortTemplateRequest() *PatchedWritableFrontPortTemplateRequest { this := PatchedWritableFrontPortTemplateRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -51,15 +49,13 @@ func NewPatchedWritableFrontPortTemplateRequest() *PatchedWritableFrontPortTempl // but it doesn't guarantee that properties required by API are set func NewPatchedWritableFrontPortTemplateRequestWithDefaults() *PatchedWritableFrontPortTemplateRequest { this := PatchedWritableFrontPortTemplateRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -68,7 +64,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -84,11 +80,10 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -100,9 +95,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -111,7 +106,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -127,11 +122,10 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableFrontPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -271,9 +265,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil || IsNil(o.RearPort) { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } return *o.RearPort @@ -281,7 +275,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplate // GetRearPortOk returns a tuple with the RearPort field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil || IsNil(o.RearPort) { return nil, false } @@ -297,8 +291,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasRearPort() bool { return false } -// SetRearPort gets a reference to the given RearPortTemplateRequest and assigns it to the RearPort field. -func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +// SetRearPort gets a reference to the given BriefRearPortTemplateRequest and assigns it to the RearPort field. +func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = &v } @@ -367,7 +361,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 } @@ -475,3 +469,5 @@ func (v *NullablePatchedWritableFrontPortTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go index 58f359b1eb..9f75c87586 100644 --- a/model_patched_writable_ike_policy_request.go +++ b/model_patched_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedWritableIKEPolicyRequest{} // PatchedWritableIKEPolicyRequest Adds support for custom fields and tags. type PatchedWritableIKEPolicyRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"` - Mode *PatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"` - Proposals []int32 `json:"proposals,omitempty"` - PresharedKey *string `json:"preshared_key,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"` + Mode NullablePatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"` + Proposals []int32 `json:"proposals,omitempty"` + PresharedKey *string `json:"preshared_key,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,36 +146,46 @@ func (o *PatchedWritableIKEPolicyRequest) SetVersion(v PatchedWritableIKEPolicyR o.Version = &v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableIKEPolicyRequest) GetMode() PatchedWritableIKEPolicyRequestMode { - if o == nil || IsNil(o.Mode) { + if o == nil || IsNil(o.Mode.Get()) { var ret PatchedWritableIKEPolicyRequestMode return ret } - return *o.Mode + return *o.Mode.Get() } // GetModeOk returns a tuple with the Mode 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 *PatchedWritableIKEPolicyRequest) GetModeOk() (*PatchedWritableIKEPolicyRequestMode, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true + return o.Mode.Get(), o.Mode.IsSet() } // HasMode returns a boolean if a field has been set. func (o *PatchedWritableIKEPolicyRequest) HasMode() bool { - if o != nil && !IsNil(o.Mode) { + if o != nil && o.Mode.IsSet() { return true } return false } -// SetMode gets a reference to the given PatchedWritableIKEPolicyRequestMode and assigns it to the Mode field. +// SetMode gets a reference to the given NullablePatchedWritableIKEPolicyRequestMode and assigns it to the Mode field. func (o *PatchedWritableIKEPolicyRequest) SetMode(v PatchedWritableIKEPolicyRequestMode) { - o.Mode = &v + o.Mode.Set(&v) +} +// SetModeNil sets the value for Mode to be an explicit nil +func (o *PatchedWritableIKEPolicyRequest) SetModeNil() { + o.Mode.Set(nil) +} + +// UnsetMode ensures that no value is present for Mode, not even an explicit nil +func (o *PatchedWritableIKEPolicyRequest) UnsetMode() { + o.Mode.Unset() } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -339,7 +349,7 @@ func (o *PatchedWritableIKEPolicyRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableIKEPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -357,8 +367,8 @@ func (o PatchedWritableIKEPolicyRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Version) { toSerialize["version"] = o.Version } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode + if o.Mode.IsSet() { + toSerialize["mode"] = o.Mode.Get() } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals @@ -447,3 +457,5 @@ func (v *NullablePatchedWritableIKEPolicyRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ike_policy_request_mode.go b/model_patched_writable_ike_policy_request_mode.go index 16fbd5659f..2b966ce46d 100644 --- a/model_patched_writable_ike_policy_request_mode.go +++ b/model_patched_writable_ike_policy_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ type PatchedWritableIKEPolicyRequestMode string // List of PatchedWritableIKEPolicyRequest_mode const ( PATCHEDWRITABLEIKEPOLICYREQUESTMODE_AGGRESSIVE PatchedWritableIKEPolicyRequestMode = "aggressive" - PATCHEDWRITABLEIKEPOLICYREQUESTMODE_MAIN PatchedWritableIKEPolicyRequestMode = "main" - PATCHEDWRITABLEIKEPOLICYREQUESTMODE_EMPTY PatchedWritableIKEPolicyRequestMode = "" + PATCHEDWRITABLEIKEPOLICYREQUESTMODE_MAIN PatchedWritableIKEPolicyRequestMode = "main" + PATCHEDWRITABLEIKEPOLICYREQUESTMODE_EMPTY PatchedWritableIKEPolicyRequestMode = "" ) // All allowed values of PatchedWritableIKEPolicyRequestMode enum @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableIKEPolicyRequestMode) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go index 2a6c5849cb..6bd9944fd9 100644 --- a/model_patched_writable_ike_policy_request_version.go +++ b/model_patched_writable_ike_policy_request_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullablePatchedWritableIKEPolicyRequestVersion) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go index 6de0b3f452..1aa001cc1e 100644 --- a/model_patched_writable_ike_proposal_request.go +++ b/model_patched_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableIKEProposalRequest{} // PatchedWritableIKEProposalRequest Adds support for custom fields and tags. type PatchedWritableIKEProposalRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - AuthenticationMethod *IKEProposalAuthenticationMethodValue `json:"authentication_method,omitempty"` - EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"` - AuthenticationAlgorithm *PatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` - Group *PatchedWritableIKEProposalRequestGroup `json:"group,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AuthenticationMethod *IKEProposalAuthenticationMethodValue `json:"authentication_method,omitempty"` + EncryptionAlgorithm *IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm,omitempty"` + AuthenticationAlgorithm NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` + Group *PatchedWritableIKEProposalRequestGroup `json:"group,omitempty"` // Security association lifetime (in seconds) - SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,36 +180,46 @@ func (o *PatchedWritableIKEProposalRequest) SetEncryptionAlgorithm(v IKEProposal o.EncryptionAlgorithm = &v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableIKEProposalRequest) GetAuthenticationAlgorithm() PatchedWritableIKEProposalRequestAuthenticationAlgorithm { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil || IsNil(o.AuthenticationAlgorithm.Get()) { var ret PatchedWritableIKEProposalRequestAuthenticationAlgorithm return ret } - return *o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm.Get() } // GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm 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 *PatchedWritableIKEProposalRequest) GetAuthenticationAlgorithmOk() (*PatchedWritableIKEProposalRequestAuthenticationAlgorithm, bool) { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { return nil, false } - return o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm.Get(), o.AuthenticationAlgorithm.IsSet() } // HasAuthenticationAlgorithm returns a boolean if a field has been set. func (o *PatchedWritableIKEProposalRequest) HasAuthenticationAlgorithm() bool { - if o != nil && !IsNil(o.AuthenticationAlgorithm) { + if o != nil && o.AuthenticationAlgorithm.IsSet() { return true } return false } -// SetAuthenticationAlgorithm gets a reference to the given PatchedWritableIKEProposalRequestAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. +// SetAuthenticationAlgorithm gets a reference to the given NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. func (o *PatchedWritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = &v + o.AuthenticationAlgorithm.Set(&v) +} +// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil +func (o *PatchedWritableIKEProposalRequest) SetAuthenticationAlgorithmNil() { + o.AuthenticationAlgorithm.Set(nil) +} + +// UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil +func (o *PatchedWritableIKEProposalRequest) UnsetAuthenticationAlgorithm() { + o.AuthenticationAlgorithm.Unset() } // GetGroup returns the Group field value if set, zero value otherwise. @@ -276,7 +286,6 @@ func (o *PatchedWritableIKEProposalRequest) HasSaLifetime() bool { func (o *PatchedWritableIKEProposalRequest) SetSaLifetime(v int32) { o.SaLifetime.Set(&v) } - // SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil func (o *PatchedWritableIKEProposalRequest) SetSaLifetimeNil() { o.SaLifetime.Set(nil) @@ -384,7 +393,7 @@ func (o *PatchedWritableIKEProposalRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritableIKEProposalRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -405,8 +414,8 @@ func (o PatchedWritableIKEProposalRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.EncryptionAlgorithm) { toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm } - if !IsNil(o.AuthenticationAlgorithm) { - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if o.AuthenticationAlgorithm.IsSet() { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm.Get() } if !IsNil(o.Group) { toSerialize["group"] = o.Group @@ -496,3 +505,5 @@ func (v *NullablePatchedWritableIKEProposalRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go index 98ac12303d..f961d1f0cc 100644 --- a/model_patched_writable_ike_proposal_request_authentication_algorithm.go +++ b/model_patched_writable_ike_proposal_request_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ type PatchedWritableIKEProposalRequestAuthenticationAlgorithm string // List of PatchedWritableIKEProposalRequest_authentication_algorithm const ( - PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA1 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha1" + PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA1 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha1" PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA256 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha256" PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA384 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha384" PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_SHA512 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-sha512" - PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_MD5 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-md5" - PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_EMPTY PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "" + PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_HMAC_MD5 PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "hmac-md5" + PATCHEDWRITABLEIKEPROPOSALREQUESTAUTHENTICATIONALGORITHM_EMPTY PatchedWritableIKEProposalRequestAuthenticationAlgorithm = "" ) // All allowed values of PatchedWritableIKEProposalRequestAuthenticationAlgorithm enum @@ -116,3 +116,4 @@ func (v *NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm) Unmar v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go index 89cee30812..76223fc6ac 100644 --- a/model_patched_writable_ike_proposal_request_group.go +++ b/model_patched_writable_ike_proposal_request_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PatchedWritableIKEProposalRequestGroup int32 // List of PatchedWritableIKEProposalRequest_group const ( - PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__1 PatchedWritableIKEProposalRequestGroup = 1 - PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__2 PatchedWritableIKEProposalRequestGroup = 2 - PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__5 PatchedWritableIKEProposalRequestGroup = 5 + PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__1 PatchedWritableIKEProposalRequestGroup = 1 + PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__2 PatchedWritableIKEProposalRequestGroup = 2 + PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__5 PatchedWritableIKEProposalRequestGroup = 5 PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__14 PatchedWritableIKEProposalRequestGroup = 14 PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__15 PatchedWritableIKEProposalRequestGroup = 15 PATCHEDWRITABLEIKEPROPOSALREQUESTGROUP__16 PatchedWritableIKEProposalRequestGroup = 16 @@ -152,3 +152,4 @@ func (v *NullablePatchedWritableIKEProposalRequestGroup) UnmarshalJSON(src []byt 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 16c8c59a08..533b6abd0f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,43 +19,45 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{} // PatchedWritableInterfaceRequest Adds support for custom fields and tags. type PatchedWritableInterfaceRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *InterfaceTypeValue `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"` - Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"` - Wwn NullableString `json:"wwn,omitempty"` + Label *string `json:"label,omitempty"` + Type *InterfaceTypeValue `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"` + PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Duplex NullableInterfaceRequestDuplex `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 *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` - RfChannel *WirelessChannel `json:"rf_channel,omitempty"` - PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` - PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"` + RfRole NullableWirelessRole `json:"rf_role,omitempty"` + RfChannel NullableWirelessChannel `json:"rf_channel,omitempty"` + PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"` + PoeType NullableInterfaceTemplateRequestPoeType `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 NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `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 NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,9 +81,9 @@ func NewPatchedWritableInterfaceRequestWithDefaults() *PatchedWritableInterfaceR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -89,7 +91,7 @@ func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -105,8 +107,8 @@ func (o *PatchedWritableInterfaceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -143,9 +145,9 @@ func (o *PatchedWritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { +func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -154,7 +156,7 @@ func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -170,11 +172,10 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetModuleNil() { o.Module.Set(nil) @@ -345,7 +346,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) @@ -388,7 +388,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) @@ -431,7 +430,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) @@ -474,7 +472,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) @@ -485,47 +482,46 @@ func (o *PatchedWritableInterfaceRequest) UnsetMtu() { o.Mtu.Unset() } -// GetMacAddress returns the MacAddress field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetMacAddress() string { - if o == nil || IsNil(o.MacAddress.Get()) { - var ret string +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddressRequest return ret } - return *o.MacAddress.Get() + return *o.PrimaryMacAddress.Get() } -// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *PatchedWritableInterfaceRequest) GetMacAddressOk() (*string, bool) { +func (o *PatchedWritableInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) { if o == nil { return nil, false } - return o.MacAddress.Get(), o.MacAddress.IsSet() + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() } -// HasMacAddress returns a boolean if a field has been set. -func (o *PatchedWritableInterfaceRequest) HasMacAddress() bool { - if o != nil && o.MacAddress.IsSet() { +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *PatchedWritableInterfaceRequest) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { return true } return false } -// SetMacAddress gets a reference to the given NullableString and assigns it to the MacAddress field. -func (o *PatchedWritableInterfaceRequest) SetMacAddress(v string) { - o.MacAddress.Set(&v) +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field. +func (o *PatchedWritableInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) { + o.PrimaryMacAddress.Set(&v) } - -// SetMacAddressNil sets the value for MacAddress to be an explicit nil -func (o *PatchedWritableInterfaceRequest) SetMacAddressNil() { - o.MacAddress.Set(nil) +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) } -// UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil -func (o *PatchedWritableInterfaceRequest) UnsetMacAddress() { - o.MacAddress.Unset() +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() } // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -560,7 +556,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) @@ -603,7 +598,6 @@ func (o *PatchedWritableInterfaceRequest) HasDuplex() bool { func (o *PatchedWritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex) { o.Duplex.Set(&v) } - // SetDuplexNil sets the value for Duplex to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetDuplexNil() { o.Duplex.Set(nil) @@ -646,7 +640,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) @@ -721,164 +714,214 @@ func (o *PatchedWritableInterfaceRequest) SetDescription(v string) { o.Description = &v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode { - if o == nil || IsNil(o.Mode) { + if o == nil || IsNil(o.Mode.Get()) { var ret PatchedWritableInterfaceRequestMode return ret } - return *o.Mode + return *o.Mode.Get() } // GetModeOk returns a tuple with the Mode 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 *PatchedWritableInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true + return o.Mode.Get(), o.Mode.IsSet() } // HasMode returns a boolean if a field has been set. func (o *PatchedWritableInterfaceRequest) HasMode() bool { - if o != nil && !IsNil(o.Mode) { + if o != nil && o.Mode.IsSet() { return true } return false } -// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field. +// SetMode gets a reference to the given NullablePatchedWritableInterfaceRequestMode and assigns it to the Mode field. func (o *PatchedWritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) { - o.Mode = &v + o.Mode.Set(&v) +} +// SetModeNil sets the value for Mode to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetModeNil() { + o.Mode.Set(nil) +} + +// UnsetMode ensures that no value is present for Mode, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetMode() { + o.Mode.Unset() } -// GetRfRole returns the RfRole field value if set, zero value otherwise. +// GetRfRole returns the RfRole field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole { - if o == nil || IsNil(o.RfRole) { + if o == nil || IsNil(o.RfRole.Get()) { var ret WirelessRole return ret } - return *o.RfRole + 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 *PatchedWritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool) { - if o == nil || IsNil(o.RfRole) { + if o == nil { return nil, false } - return o.RfRole, true + return o.RfRole.Get(), o.RfRole.IsSet() } // HasRfRole returns a boolean if a field has been set. func (o *PatchedWritableInterfaceRequest) HasRfRole() bool { - if o != nil && !IsNil(o.RfRole) { + if o != nil && o.RfRole.IsSet() { return true } return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. +// SetRfRole gets a reference to the given NullableWirelessRole and assigns it to the RfRole field. func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole) { - o.RfRole = &v + o.RfRole.Set(&v) +} +// SetRfRoleNil sets the value for RfRole to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetRfRoleNil() { + o.RfRole.Set(nil) +} + +// UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetRfRole() { + o.RfRole.Unset() } -// GetRfChannel returns the RfChannel field value if set, zero value otherwise. +// GetRfChannel returns the RfChannel field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel { - if o == nil || IsNil(o.RfChannel) { + if o == nil || IsNil(o.RfChannel.Get()) { var ret WirelessChannel return ret } - return *o.RfChannel + return *o.RfChannel.Get() } // GetRfChannelOk returns a tuple with the RfChannel 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 *PatchedWritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool) { - if o == nil || IsNil(o.RfChannel) { + if o == nil { return nil, false } - return o.RfChannel, true + return o.RfChannel.Get(), o.RfChannel.IsSet() } // HasRfChannel returns a boolean if a field has been set. func (o *PatchedWritableInterfaceRequest) HasRfChannel() bool { - if o != nil && !IsNil(o.RfChannel) { + if o != nil && o.RfChannel.IsSet() { return true } return false } -// SetRfChannel gets a reference to the given WirelessChannel and assigns it to the RfChannel field. +// SetRfChannel gets a reference to the given NullableWirelessChannel and assigns it to the RfChannel field. func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel) { - o.RfChannel = &v + o.RfChannel.Set(&v) +} +// SetRfChannelNil sets the value for RfChannel to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetRfChannelNil() { + o.RfChannel.Set(nil) +} + +// UnsetRfChannel ensures that no value is present for RfChannel, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetRfChannel() { + o.RfChannel.Unset() } -// GetPoeMode returns the PoeMode field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue { - if o == nil || IsNil(o.PoeMode) { - var ret InterfacePoeModeValue +// GetPoeMode returns the PoeMode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableInterfaceRequest) GetPoeMode() InterfaceTemplateRequestPoeMode { + if o == nil || IsNil(o.PoeMode.Get()) { + var ret InterfaceTemplateRequestPoeMode return ret } - return *o.PoeMode + return *o.PoeMode.Get() } // GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) { - if o == nil || IsNil(o.PoeMode) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableInterfaceRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool) { + if o == nil { return nil, false } - return o.PoeMode, true + return o.PoeMode.Get(), o.PoeMode.IsSet() } // HasPoeMode returns a boolean if a field has been set. func (o *PatchedWritableInterfaceRequest) HasPoeMode() bool { - if o != nil && !IsNil(o.PoeMode) { + if o != nil && o.PoeMode.IsSet() { return true } return false } -// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field. -func (o *PatchedWritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue) { - o.PoeMode = &v +// SetPoeMode gets a reference to the given NullableInterfaceTemplateRequestPoeMode and assigns it to the PoeMode field. +func (o *PatchedWritableInterfaceRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) { + o.PoeMode.Set(&v) +} +// SetPoeModeNil sets the value for PoeMode to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetPoeModeNil() { + o.PoeMode.Set(nil) } -// GetPoeType returns the PoeType field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue { - if o == nil || IsNil(o.PoeType) { - var ret InterfacePoeTypeValue +// UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetPoeMode() { + o.PoeMode.Unset() +} + +// GetPoeType returns the PoeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableInterfaceRequest) GetPoeType() InterfaceTemplateRequestPoeType { + if o == nil || IsNil(o.PoeType.Get()) { + var ret InterfaceTemplateRequestPoeType return ret } - return *o.PoeType + return *o.PoeType.Get() } // GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) { - if o == nil || IsNil(o.PoeType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableInterfaceRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool) { + if o == nil { return nil, false } - return o.PoeType, true + return o.PoeType.Get(), o.PoeType.IsSet() } // HasPoeType returns a boolean if a field has been set. func (o *PatchedWritableInterfaceRequest) HasPoeType() bool { - if o != nil && !IsNil(o.PoeType) { + if o != nil && o.PoeType.IsSet() { return true } return false } -// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field. -func (o *PatchedWritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue) { - o.PoeType = &v +// SetPoeType gets a reference to the given NullableInterfaceTemplateRequestPoeType and assigns it to the PoeType field. +func (o *PatchedWritableInterfaceRequest) SetPoeType(v InterfaceTemplateRequestPoeType) { + o.PoeType.Set(&v) +} +// SetPoeTypeNil sets the value for PoeType to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetPoeTypeNil() { + o.PoeType.Set(nil) +} + +// UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetPoeType() { + o.PoeType.Unset() } // GetRfChannelFrequency returns the RfChannelFrequency field value if set, zero value otherwise (both if not set or set to explicit null). @@ -913,7 +956,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) @@ -956,7 +998,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) @@ -999,7 +1040,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) @@ -1011,9 +1051,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1022,7 +1062,7 @@ func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1038,11 +1078,10 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1085,6 +1124,90 @@ func (o *PatchedWritableInterfaceRequest) SetTaggedVlans(v []int32) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLANRequest + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *PatchedWritableInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *PatchedWritableInterfaceRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field. +func (o *PatchedWritableInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicyRequest + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *PatchedWritableInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *PatchedWritableInterfaceRequest) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field. +func (o *PatchedWritableInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *PatchedWritableInterfaceRequest) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *PatchedWritableInterfaceRequest) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. func (o *PatchedWritableInterfaceRequest) GetMarkConnected() bool { if o == nil || IsNil(o.MarkConnected) { @@ -1150,9 +1273,9 @@ func (o *PatchedWritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1161,7 +1284,7 @@ func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1177,11 +1300,10 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -1257,7 +1379,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 } @@ -1299,8 +1421,8 @@ func (o PatchedWritableInterfaceRequest) ToMap() (map[string]interface{}, error) if o.Mtu.IsSet() { toSerialize["mtu"] = o.Mtu.Get() } - if o.MacAddress.IsSet() { - toSerialize["mac_address"] = o.MacAddress.Get() + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() @@ -1317,20 +1439,20 @@ func (o PatchedWritableInterfaceRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode + if o.Mode.IsSet() { + toSerialize["mode"] = o.Mode.Get() } - if !IsNil(o.RfRole) { - toSerialize["rf_role"] = o.RfRole + if o.RfRole.IsSet() { + toSerialize["rf_role"] = o.RfRole.Get() } - if !IsNil(o.RfChannel) { - toSerialize["rf_channel"] = o.RfChannel + if o.RfChannel.IsSet() { + toSerialize["rf_channel"] = o.RfChannel.Get() } - if !IsNil(o.PoeMode) { - toSerialize["poe_mode"] = o.PoeMode + if o.PoeMode.IsSet() { + toSerialize["poe_mode"] = o.PoeMode.Get() } - if !IsNil(o.PoeType) { - toSerialize["poe_type"] = o.PoeType + if o.PoeType.IsSet() { + toSerialize["poe_type"] = o.PoeType.Get() } if o.RfChannelFrequency.IsSet() { toSerialize["rf_channel_frequency"] = o.RfChannelFrequency.Get() @@ -1347,6 +1469,12 @@ func (o PatchedWritableInterfaceRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } @@ -1395,7 +1523,7 @@ func (o *PatchedWritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) delete(additionalProperties, "bridge") delete(additionalProperties, "lag") delete(additionalProperties, "mtu") - delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") delete(additionalProperties, "speed") delete(additionalProperties, "duplex") delete(additionalProperties, "wwn") @@ -1411,6 +1539,8 @@ func (o *PatchedWritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) delete(additionalProperties, "tx_power") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "mark_connected") delete(additionalProperties, "wireless_lans") delete(additionalProperties, "vrf") @@ -1457,3 +1587,5 @@ func (v *NullablePatchedWritableInterfaceRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go index 8417725be5..68c4641ca3 100644 --- a/model_patched_writable_interface_request_mode.go +++ b/model_patched_writable_interface_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,15 +15,16 @@ import ( "fmt" ) -// PatchedWritableInterfaceRequestMode IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) +// PatchedWritableInterfaceRequestMode IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) * `q-in-q` - Q-in-Q (802.1ad) type PatchedWritableInterfaceRequestMode string // List of PatchedWritableInterfaceRequest_mode const ( - PATCHEDWRITABLEINTERFACEREQUESTMODE_ACCESS PatchedWritableInterfaceRequestMode = "access" - PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED PatchedWritableInterfaceRequestMode = "tagged" + PATCHEDWRITABLEINTERFACEREQUESTMODE_ACCESS PatchedWritableInterfaceRequestMode = "access" + PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED PatchedWritableInterfaceRequestMode = "tagged" PATCHEDWRITABLEINTERFACEREQUESTMODE_TAGGED_ALL PatchedWritableInterfaceRequestMode = "tagged-all" - PATCHEDWRITABLEINTERFACEREQUESTMODE_EMPTY PatchedWritableInterfaceRequestMode = "" + PATCHEDWRITABLEINTERFACEREQUESTMODE_Q_IN_Q PatchedWritableInterfaceRequestMode = "q-in-q" + PATCHEDWRITABLEINTERFACEREQUESTMODE_EMPTY PatchedWritableInterfaceRequestMode = "" ) // All allowed values of PatchedWritableInterfaceRequestMode enum @@ -31,6 +32,7 @@ var AllowedPatchedWritableInterfaceRequestModeEnumValues = []PatchedWritableInte "access", "tagged", "tagged-all", + "q-in-q", "", } @@ -112,3 +114,4 @@ func (v *NullablePatchedWritableInterfaceRequestMode) UnmarshalJSON(src []byte) 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 f88d3d2055..d9ebb0d966 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableInterfaceTemplateRequest{} // PatchedWritableInterfaceTemplateRequest 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 PatchedWritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *InterfaceTypeValue `json:"type,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` - PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` - PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` + Label *string `json:"label,omitempty"` + Type *InterfaceTypeValue `json:"type,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` + PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"` + PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"` + RfRole NullableWirelessRole `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,9 +56,9 @@ func NewPatchedWritableInterfaceTemplateRequestWithDefaults() *PatchedWritableIn } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,11 +83,10 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -99,9 +98,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +109,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,11 +125,10 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableInterfaceTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -365,7 +363,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) @@ -376,104 +373,134 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetBridge() { o.Bridge.Unset() } -// GetPoeMode returns the PoeMode field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue { - if o == nil || IsNil(o.PoeMode) { - var ret InterfacePoeModeValue +// GetPoeMode returns the PoeMode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableInterfaceTemplateRequest) GetPoeMode() InterfaceTemplateRequestPoeMode { + if o == nil || IsNil(o.PoeMode.Get()) { + var ret InterfaceTemplateRequestPoeMode return ret } - return *o.PoeMode + return *o.PoeMode.Get() } // GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) { - if o == nil || IsNil(o.PoeMode) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool) { + if o == nil { return nil, false } - return o.PoeMode, true + return o.PoeMode.Get(), o.PoeMode.IsSet() } // HasPoeMode returns a boolean if a field has been set. func (o *PatchedWritableInterfaceTemplateRequest) HasPoeMode() bool { - if o != nil && !IsNil(o.PoeMode) { + if o != nil && o.PoeMode.IsSet() { return true } return false } -// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field. -func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue) { - o.PoeMode = &v +// SetPoeMode gets a reference to the given NullableInterfaceTemplateRequestPoeMode and assigns it to the PoeMode field. +func (o *PatchedWritableInterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) { + o.PoeMode.Set(&v) +} +// SetPoeModeNil sets the value for PoeMode to be an explicit nil +func (o *PatchedWritableInterfaceTemplateRequest) SetPoeModeNil() { + o.PoeMode.Set(nil) +} + +// UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil +func (o *PatchedWritableInterfaceTemplateRequest) UnsetPoeMode() { + o.PoeMode.Unset() } -// GetPoeType returns the PoeType field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue { - if o == nil || IsNil(o.PoeType) { - var ret InterfacePoeTypeValue +// GetPoeType returns the PoeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableInterfaceTemplateRequest) GetPoeType() InterfaceTemplateRequestPoeType { + if o == nil || IsNil(o.PoeType.Get()) { + var ret InterfaceTemplateRequestPoeType return ret } - return *o.PoeType + return *o.PoeType.Get() } // GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) { - if o == nil || IsNil(o.PoeType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool) { + if o == nil { return nil, false } - return o.PoeType, true + return o.PoeType.Get(), o.PoeType.IsSet() } // HasPoeType returns a boolean if a field has been set. func (o *PatchedWritableInterfaceTemplateRequest) HasPoeType() bool { - if o != nil && !IsNil(o.PoeType) { + if o != nil && o.PoeType.IsSet() { return true } return false } -// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue) { - o.PoeType = &v +// SetPoeType gets a reference to the given NullableInterfaceTemplateRequestPoeType and assigns it to the PoeType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType) { + o.PoeType.Set(&v) +} +// SetPoeTypeNil sets the value for PoeType to be an explicit nil +func (o *PatchedWritableInterfaceTemplateRequest) SetPoeTypeNil() { + o.PoeType.Set(nil) +} + +// UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil +func (o *PatchedWritableInterfaceTemplateRequest) UnsetPoeType() { + o.PoeType.Unset() } -// GetRfRole returns the RfRole field value if set, zero value otherwise. +// GetRfRole returns the RfRole field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole { - if o == nil || IsNil(o.RfRole) { + if o == nil || IsNil(o.RfRole.Get()) { var ret WirelessRole return ret } - return *o.RfRole + 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 *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool) { - if o == nil || IsNil(o.RfRole) { + if o == nil { return nil, false } - return o.RfRole, true + return o.RfRole.Get(), o.RfRole.IsSet() } // HasRfRole returns a boolean if a field has been set. func (o *PatchedWritableInterfaceTemplateRequest) HasRfRole() bool { - if o != nil && !IsNil(o.RfRole) { + if o != nil && o.RfRole.IsSet() { return true } return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. +// SetRfRole gets a reference to the given NullableWirelessRole and assigns it to the RfRole field. func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) { - o.RfRole = &v + o.RfRole.Set(&v) +} +// SetRfRoleNil sets the value for RfRole to be an explicit nil +func (o *PatchedWritableInterfaceTemplateRequest) SetRfRoleNil() { + o.RfRole.Set(nil) +} + +// UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil +func (o *PatchedWritableInterfaceTemplateRequest) UnsetRfRole() { + o.RfRole.Unset() } func (o PatchedWritableInterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -509,14 +536,14 @@ func (o PatchedWritableInterfaceTemplateRequest) ToMap() (map[string]interface{} if o.Bridge.IsSet() { toSerialize["bridge"] = o.Bridge.Get() } - if !IsNil(o.PoeMode) { - toSerialize["poe_mode"] = o.PoeMode + if o.PoeMode.IsSet() { + toSerialize["poe_mode"] = o.PoeMode.Get() } - if !IsNil(o.PoeType) { - toSerialize["poe_type"] = o.PoeType + if o.PoeType.IsSet() { + toSerialize["poe_type"] = o.PoeType.Get() } - if !IsNil(o.RfRole) { - toSerialize["rf_role"] = o.RfRole + if o.RfRole.IsSet() { + toSerialize["rf_role"] = o.RfRole.Get() } for key, value := range o.AdditionalProperties { @@ -593,3 +620,5 @@ func (v *NullablePatchedWritableInterfaceTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_inventory_item_request.go b/model_patched_writable_inventory_item_request.go similarity index 60% rename from model_patched_inventory_item_request.go rename to model_patched_writable_inventory_item_request.go index 399e6ab592..0e65a66d22 100644 --- a/model_patched_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,56 +14,57 @@ import ( "encoding/json" ) -// checks if the PatchedInventoryItemRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PatchedInventoryItemRequest{} +// checks if the PatchedWritableInventoryItemRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableInventoryItemRequest{} -// PatchedInventoryItemRequest Adds support for custom fields and tags. -type PatchedInventoryItemRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Name *string `json:"name,omitempty"` +// PatchedWritableInventoryItemRequest Adds support for custom fields and tags. +type PatchedWritableInventoryItemRequest struct { + Device *BriefDeviceRequest `json:"device,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Status *InventoryItemStatusValue `json:"status,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `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{} } -type _PatchedInventoryItemRequest PatchedInventoryItemRequest +type _PatchedWritableInventoryItemRequest PatchedWritableInventoryItemRequest -// NewPatchedInventoryItemRequest instantiates a new PatchedInventoryItemRequest object +// NewPatchedWritableInventoryItemRequest instantiates a new PatchedWritableInventoryItemRequest 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 NewPatchedInventoryItemRequest() *PatchedInventoryItemRequest { - this := PatchedInventoryItemRequest{} +func NewPatchedWritableInventoryItemRequest() *PatchedWritableInventoryItemRequest { + this := PatchedWritableInventoryItemRequest{} return &this } -// NewPatchedInventoryItemRequestWithDefaults instantiates a new PatchedInventoryItemRequest object +// NewPatchedWritableInventoryItemRequestWithDefaults instantiates a new PatchedWritableInventoryItemRequest 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 NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest { - this := PatchedInventoryItemRequest{} +func NewPatchedWritableInventoryItemRequestWithDefaults() *PatchedWritableInventoryItemRequest { + this := PatchedWritableInventoryItemRequest{} return &this } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableInventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +72,7 @@ func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -79,7 +80,7 @@ func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { } // HasDevice returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasDevice() bool { +func (o *PatchedWritableInventoryItemRequest) HasDevice() bool { if o != nil && !IsNil(o.Device) { return true } @@ -87,13 +88,13 @@ func (o *PatchedInventoryItemRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableInventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetParent() int32 { +func (o *PatchedWritableInventoryItemRequest) GetParent() int32 { if o == nil || IsNil(o.Parent.Get()) { var ret int32 return ret @@ -104,7 +105,7 @@ func (o *PatchedInventoryItemRequest) GetParent() int32 { // GetParentOk returns a tuple with the Parent 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 *PatchedInventoryItemRequest) GetParentOk() (*int32, bool) { +func (o *PatchedWritableInventoryItemRequest) GetParentOk() (*int32, bool) { if o == nil { return nil, false } @@ -112,7 +113,7 @@ func (o *PatchedInventoryItemRequest) GetParentOk() (*int32, bool) { } // HasParent returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasParent() bool { +func (o *PatchedWritableInventoryItemRequest) HasParent() bool { if o != nil && o.Parent.IsSet() { return true } @@ -121,22 +122,21 @@ func (o *PatchedInventoryItemRequest) HasParent() bool { } // SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field. -func (o *PatchedInventoryItemRequest) SetParent(v int32) { +func (o *PatchedWritableInventoryItemRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil -func (o *PatchedInventoryItemRequest) SetParentNil() { +func (o *PatchedWritableInventoryItemRequest) SetParentNil() { o.Parent.Set(nil) } // UnsetParent ensures that no value is present for Parent, not even an explicit nil -func (o *PatchedInventoryItemRequest) UnsetParent() { +func (o *PatchedWritableInventoryItemRequest) UnsetParent() { o.Parent.Unset() } // GetName returns the Name field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetName() string { +func (o *PatchedWritableInventoryItemRequest) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -146,7 +146,7 @@ func (o *PatchedInventoryItemRequest) GetName() string { // 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 *PatchedInventoryItemRequest) GetNameOk() (*string, bool) { +func (o *PatchedWritableInventoryItemRequest) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -154,7 +154,7 @@ func (o *PatchedInventoryItemRequest) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasName() bool { +func (o *PatchedWritableInventoryItemRequest) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -163,12 +163,12 @@ func (o *PatchedInventoryItemRequest) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *PatchedInventoryItemRequest) SetName(v string) { +func (o *PatchedWritableInventoryItemRequest) SetName(v string) { o.Name = &v } // GetLabel returns the Label field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetLabel() string { +func (o *PatchedWritableInventoryItemRequest) GetLabel() string { if o == nil || IsNil(o.Label) { var ret string return ret @@ -178,7 +178,7 @@ func (o *PatchedInventoryItemRequest) GetLabel() string { // 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 *PatchedInventoryItemRequest) GetLabelOk() (*string, bool) { +func (o *PatchedWritableInventoryItemRequest) GetLabelOk() (*string, bool) { if o == nil || IsNil(o.Label) { return nil, false } @@ -186,7 +186,7 @@ func (o *PatchedInventoryItemRequest) GetLabelOk() (*string, bool) { } // HasLabel returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasLabel() bool { +func (o *PatchedWritableInventoryItemRequest) HasLabel() bool { if o != nil && !IsNil(o.Label) { return true } @@ -195,14 +195,46 @@ func (o *PatchedInventoryItemRequest) HasLabel() bool { } // SetLabel gets a reference to the given string and assigns it to the Label field. -func (o *PatchedInventoryItemRequest) SetLabel(v string) { +func (o *PatchedWritableInventoryItemRequest) SetLabel(v string) { o.Label = &v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PatchedWritableInventoryItemRequest) GetStatus() InventoryItemStatusValue { + if o == nil || IsNil(o.Status) { + var ret InventoryItemStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableInventoryItemRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PatchedWritableInventoryItemRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *PatchedWritableInventoryItemRequest) SetStatus(v InventoryItemStatusValue) { + o.Status = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *PatchedWritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -211,7 +243,7 @@ func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role 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 *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedWritableInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -219,7 +251,7 @@ func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bo } // HasRole returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasRole() bool { +func (o *PatchedWritableInventoryItemRequest) HasRole() bool { if o != nil && o.Role.IsSet() { return true } @@ -227,25 +259,24 @@ func (o *PatchedInventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedWritableInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil -func (o *PatchedInventoryItemRequest) SetRoleNil() { +func (o *PatchedWritableInventoryItemRequest) SetRoleNil() { o.Role.Set(nil) } // UnsetRole ensures that no value is present for Role, not even an explicit nil -func (o *PatchedInventoryItemRequest) UnsetRole() { +func (o *PatchedWritableInventoryItemRequest) UnsetRole() { o.Role.Unset() } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableInventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -254,7 +285,7 @@ func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer 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 *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -262,7 +293,7 @@ func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, } // HasManufacturer returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasManufacturer() bool { +func (o *PatchedWritableInventoryItemRequest) HasManufacturer() bool { if o != nil && o.Manufacturer.IsSet() { return true } @@ -270,23 +301,22 @@ func (o *PatchedInventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil -func (o *PatchedInventoryItemRequest) SetManufacturerNil() { +func (o *PatchedWritableInventoryItemRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) } // UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil -func (o *PatchedInventoryItemRequest) UnsetManufacturer() { +func (o *PatchedWritableInventoryItemRequest) UnsetManufacturer() { o.Manufacturer.Unset() } // GetPartId returns the PartId field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetPartId() string { +func (o *PatchedWritableInventoryItemRequest) GetPartId() string { if o == nil || IsNil(o.PartId) { var ret string return ret @@ -296,7 +326,7 @@ func (o *PatchedInventoryItemRequest) GetPartId() string { // GetPartIdOk returns a tuple with the PartId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetPartIdOk() (*string, bool) { +func (o *PatchedWritableInventoryItemRequest) GetPartIdOk() (*string, bool) { if o == nil || IsNil(o.PartId) { return nil, false } @@ -304,7 +334,7 @@ func (o *PatchedInventoryItemRequest) GetPartIdOk() (*string, bool) { } // HasPartId returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasPartId() bool { +func (o *PatchedWritableInventoryItemRequest) HasPartId() bool { if o != nil && !IsNil(o.PartId) { return true } @@ -313,12 +343,12 @@ func (o *PatchedInventoryItemRequest) HasPartId() bool { } // SetPartId gets a reference to the given string and assigns it to the PartId field. -func (o *PatchedInventoryItemRequest) SetPartId(v string) { +func (o *PatchedWritableInventoryItemRequest) SetPartId(v string) { o.PartId = &v } // GetSerial returns the Serial field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetSerial() string { +func (o *PatchedWritableInventoryItemRequest) GetSerial() string { if o == nil || IsNil(o.Serial) { var ret string return ret @@ -328,7 +358,7 @@ func (o *PatchedInventoryItemRequest) GetSerial() string { // GetSerialOk returns a tuple with the Serial field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetSerialOk() (*string, bool) { +func (o *PatchedWritableInventoryItemRequest) GetSerialOk() (*string, bool) { if o == nil || IsNil(o.Serial) { return nil, false } @@ -336,7 +366,7 @@ func (o *PatchedInventoryItemRequest) GetSerialOk() (*string, bool) { } // HasSerial returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasSerial() bool { +func (o *PatchedWritableInventoryItemRequest) HasSerial() bool { if o != nil && !IsNil(o.Serial) { return true } @@ -345,12 +375,12 @@ func (o *PatchedInventoryItemRequest) HasSerial() bool { } // SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *PatchedInventoryItemRequest) SetSerial(v string) { +func (o *PatchedWritableInventoryItemRequest) SetSerial(v string) { o.Serial = &v } // GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetAssetTag() string { +func (o *PatchedWritableInventoryItemRequest) GetAssetTag() string { if o == nil || IsNil(o.AssetTag.Get()) { var ret string return ret @@ -361,7 +391,7 @@ func (o *PatchedInventoryItemRequest) GetAssetTag() string { // GetAssetTagOk returns a tuple with the AssetTag 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 *PatchedInventoryItemRequest) GetAssetTagOk() (*string, bool) { +func (o *PatchedWritableInventoryItemRequest) GetAssetTagOk() (*string, bool) { if o == nil { return nil, false } @@ -369,7 +399,7 @@ func (o *PatchedInventoryItemRequest) GetAssetTagOk() (*string, bool) { } // HasAssetTag returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasAssetTag() bool { +func (o *PatchedWritableInventoryItemRequest) HasAssetTag() bool { if o != nil && o.AssetTag.IsSet() { return true } @@ -378,22 +408,21 @@ func (o *PatchedInventoryItemRequest) HasAssetTag() bool { } // SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. -func (o *PatchedInventoryItemRequest) SetAssetTag(v string) { +func (o *PatchedWritableInventoryItemRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil -func (o *PatchedInventoryItemRequest) SetAssetTagNil() { +func (o *PatchedWritableInventoryItemRequest) SetAssetTagNil() { o.AssetTag.Set(nil) } // UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -func (o *PatchedInventoryItemRequest) UnsetAssetTag() { +func (o *PatchedWritableInventoryItemRequest) UnsetAssetTag() { o.AssetTag.Unset() } // GetDiscovered returns the Discovered field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetDiscovered() bool { +func (o *PatchedWritableInventoryItemRequest) GetDiscovered() bool { if o == nil || IsNil(o.Discovered) { var ret bool return ret @@ -403,7 +432,7 @@ func (o *PatchedInventoryItemRequest) GetDiscovered() bool { // GetDiscoveredOk returns a tuple with the Discovered field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetDiscoveredOk() (*bool, bool) { +func (o *PatchedWritableInventoryItemRequest) GetDiscoveredOk() (*bool, bool) { if o == nil || IsNil(o.Discovered) { return nil, false } @@ -411,7 +440,7 @@ func (o *PatchedInventoryItemRequest) GetDiscoveredOk() (*bool, bool) { } // HasDiscovered returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasDiscovered() bool { +func (o *PatchedWritableInventoryItemRequest) HasDiscovered() bool { if o != nil && !IsNil(o.Discovered) { return true } @@ -420,12 +449,12 @@ func (o *PatchedInventoryItemRequest) HasDiscovered() bool { } // SetDiscovered gets a reference to the given bool and assigns it to the Discovered field. -func (o *PatchedInventoryItemRequest) SetDiscovered(v bool) { +func (o *PatchedWritableInventoryItemRequest) SetDiscovered(v bool) { o.Discovered = &v } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetDescription() string { +func (o *PatchedWritableInventoryItemRequest) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -435,7 +464,7 @@ func (o *PatchedInventoryItemRequest) GetDescription() string { // 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 *PatchedInventoryItemRequest) GetDescriptionOk() (*string, bool) { +func (o *PatchedWritableInventoryItemRequest) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -443,7 +472,7 @@ func (o *PatchedInventoryItemRequest) GetDescriptionOk() (*string, bool) { } // HasDescription returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasDescription() bool { +func (o *PatchedWritableInventoryItemRequest) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -452,12 +481,12 @@ func (o *PatchedInventoryItemRequest) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *PatchedInventoryItemRequest) SetDescription(v string) { +func (o *PatchedWritableInventoryItemRequest) SetDescription(v string) { o.Description = &v } // GetComponentType returns the ComponentType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetComponentType() string { +func (o *PatchedWritableInventoryItemRequest) GetComponentType() string { if o == nil || IsNil(o.ComponentType.Get()) { var ret string return ret @@ -468,7 +497,7 @@ func (o *PatchedInventoryItemRequest) GetComponentType() string { // GetComponentTypeOk returns a tuple with the ComponentType 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 *PatchedInventoryItemRequest) GetComponentTypeOk() (*string, bool) { +func (o *PatchedWritableInventoryItemRequest) GetComponentTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -476,7 +505,7 @@ func (o *PatchedInventoryItemRequest) GetComponentTypeOk() (*string, bool) { } // HasComponentType returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasComponentType() bool { +func (o *PatchedWritableInventoryItemRequest) HasComponentType() bool { if o != nil && o.ComponentType.IsSet() { return true } @@ -485,22 +514,21 @@ func (o *PatchedInventoryItemRequest) HasComponentType() bool { } // SetComponentType gets a reference to the given NullableString and assigns it to the ComponentType field. -func (o *PatchedInventoryItemRequest) SetComponentType(v string) { +func (o *PatchedWritableInventoryItemRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil -func (o *PatchedInventoryItemRequest) SetComponentTypeNil() { +func (o *PatchedWritableInventoryItemRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) } // UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil -func (o *PatchedInventoryItemRequest) UnsetComponentType() { +func (o *PatchedWritableInventoryItemRequest) UnsetComponentType() { o.ComponentType.Unset() } // GetComponentId returns the ComponentId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetComponentId() int64 { +func (o *PatchedWritableInventoryItemRequest) GetComponentId() int64 { if o == nil || IsNil(o.ComponentId.Get()) { var ret int64 return ret @@ -511,7 +539,7 @@ func (o *PatchedInventoryItemRequest) GetComponentId() int64 { // GetComponentIdOk returns a tuple with the ComponentId 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 *PatchedInventoryItemRequest) GetComponentIdOk() (*int64, bool) { +func (o *PatchedWritableInventoryItemRequest) GetComponentIdOk() (*int64, bool) { if o == nil { return nil, false } @@ -519,7 +547,7 @@ func (o *PatchedInventoryItemRequest) GetComponentIdOk() (*int64, bool) { } // HasComponentId returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasComponentId() bool { +func (o *PatchedWritableInventoryItemRequest) HasComponentId() bool { if o != nil && o.ComponentId.IsSet() { return true } @@ -528,22 +556,21 @@ func (o *PatchedInventoryItemRequest) HasComponentId() bool { } // SetComponentId gets a reference to the given NullableInt64 and assigns it to the ComponentId field. -func (o *PatchedInventoryItemRequest) SetComponentId(v int64) { +func (o *PatchedWritableInventoryItemRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil -func (o *PatchedInventoryItemRequest) SetComponentIdNil() { +func (o *PatchedWritableInventoryItemRequest) SetComponentIdNil() { o.ComponentId.Set(nil) } // UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil -func (o *PatchedInventoryItemRequest) UnsetComponentId() { +func (o *PatchedWritableInventoryItemRequest) UnsetComponentId() { o.ComponentId.Unset() } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetTags() []NestedTagRequest { +func (o *PatchedWritableInventoryItemRequest) GetTags() []NestedTagRequest { if o == nil || IsNil(o.Tags) { var ret []NestedTagRequest return ret @@ -553,7 +580,7 @@ func (o *PatchedInventoryItemRequest) GetTags() []NestedTagRequest { // 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 *PatchedInventoryItemRequest) GetTagsOk() ([]NestedTagRequest, bool) { +func (o *PatchedWritableInventoryItemRequest) GetTagsOk() ([]NestedTagRequest, bool) { if o == nil || IsNil(o.Tags) { return nil, false } @@ -561,7 +588,7 @@ func (o *PatchedInventoryItemRequest) GetTagsOk() ([]NestedTagRequest, bool) { } // HasTags returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasTags() bool { +func (o *PatchedWritableInventoryItemRequest) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -570,12 +597,12 @@ func (o *PatchedInventoryItemRequest) HasTags() bool { } // SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *PatchedInventoryItemRequest) SetTags(v []NestedTagRequest) { +func (o *PatchedWritableInventoryItemRequest) SetTags(v []NestedTagRequest) { o.Tags = v } // GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetCustomFields() map[string]interface{} { +func (o *PatchedWritableInventoryItemRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { var ret map[string]interface{} return ret @@ -585,7 +612,7 @@ func (o *PatchedInventoryItemRequest) GetCustomFields() map[string]interface{} { // 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 *PatchedInventoryItemRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { +func (o *PatchedWritableInventoryItemRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.CustomFields) { return map[string]interface{}{}, false } @@ -593,7 +620,7 @@ func (o *PatchedInventoryItemRequest) GetCustomFieldsOk() (map[string]interface{ } // HasCustomFields returns a boolean if a field has been set. -func (o *PatchedInventoryItemRequest) HasCustomFields() bool { +func (o *PatchedWritableInventoryItemRequest) HasCustomFields() bool { if o != nil && !IsNil(o.CustomFields) { return true } @@ -602,19 +629,19 @@ func (o *PatchedInventoryItemRequest) HasCustomFields() bool { } // SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *PatchedInventoryItemRequest) SetCustomFields(v map[string]interface{}) { +func (o *PatchedWritableInventoryItemRequest) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -func (o PatchedInventoryItemRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o PatchedWritableInventoryItemRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o PatchedInventoryItemRequest) ToMap() (map[string]interface{}, error) { +func (o PatchedWritableInventoryItemRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Device) { toSerialize["device"] = o.Device @@ -628,6 +655,9 @@ func (o PatchedInventoryItemRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -669,16 +699,16 @@ func (o PatchedInventoryItemRequest) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *PatchedInventoryItemRequest) UnmarshalJSON(data []byte) (err error) { - varPatchedInventoryItemRequest := _PatchedInventoryItemRequest{} +func (o *PatchedWritableInventoryItemRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableInventoryItemRequest := _PatchedWritableInventoryItemRequest{} - err = json.Unmarshal(data, &varPatchedInventoryItemRequest) + err = json.Unmarshal(data, &varPatchedWritableInventoryItemRequest) if err != nil { return err } - *o = PatchedInventoryItemRequest(varPatchedInventoryItemRequest) + *o = PatchedWritableInventoryItemRequest(varPatchedWritableInventoryItemRequest) additionalProperties := make(map[string]interface{}) @@ -687,6 +717,7 @@ func (o *PatchedInventoryItemRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "parent") delete(additionalProperties, "name") delete(additionalProperties, "label") + delete(additionalProperties, "status") delete(additionalProperties, "role") delete(additionalProperties, "manufacturer") delete(additionalProperties, "part_id") @@ -704,38 +735,40 @@ func (o *PatchedInventoryItemRequest) UnmarshalJSON(data []byte) (err error) { return err } -type NullablePatchedInventoryItemRequest struct { - value *PatchedInventoryItemRequest +type NullablePatchedWritableInventoryItemRequest struct { + value *PatchedWritableInventoryItemRequest isSet bool } -func (v NullablePatchedInventoryItemRequest) Get() *PatchedInventoryItemRequest { +func (v NullablePatchedWritableInventoryItemRequest) Get() *PatchedWritableInventoryItemRequest { return v.value } -func (v *NullablePatchedInventoryItemRequest) Set(val *PatchedInventoryItemRequest) { +func (v *NullablePatchedWritableInventoryItemRequest) Set(val *PatchedWritableInventoryItemRequest) { v.value = val v.isSet = true } -func (v NullablePatchedInventoryItemRequest) IsSet() bool { +func (v NullablePatchedWritableInventoryItemRequest) IsSet() bool { return v.isSet } -func (v *NullablePatchedInventoryItemRequest) Unset() { +func (v *NullablePatchedWritableInventoryItemRequest) Unset() { v.value = nil v.isSet = false } -func NewNullablePatchedInventoryItemRequest(val *PatchedInventoryItemRequest) *NullablePatchedInventoryItemRequest { - return &NullablePatchedInventoryItemRequest{value: val, isSet: true} +func NewNullablePatchedWritableInventoryItemRequest(val *PatchedWritableInventoryItemRequest) *NullablePatchedWritableInventoryItemRequest { + return &NullablePatchedWritableInventoryItemRequest{value: val, isSet: true} } -func (v NullablePatchedInventoryItemRequest) MarshalJSON() ([]byte, error) { +func (v NullablePatchedWritableInventoryItemRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePatchedInventoryItemRequest) UnmarshalJSON(src []byte) error { +func (v *NullablePatchedWritableInventoryItemRequest) UnmarshalJSON(src []byte) error { 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 8aced88b88..88314fe8a6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{} // PatchedWritableIPAddressRequest Adds support for custom fields and tags. type PatchedWritableIPAddressRequest struct { - Address *string `json:"address,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` - Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` - AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + Address *string `json:"address,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` + Role NullablePatchedWritableIPAddressRequestRole `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,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" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"` + 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,9 +89,9 @@ func (o *PatchedWritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -116,11 +116,10 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableIPAddressRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -132,9 +131,9 @@ func (o *PatchedWritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -143,7 +142,7 @@ func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { // 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 *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -159,11 +158,10 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableIPAddressRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -206,36 +204,46 @@ func (o *PatchedWritableIPAddressRequest) SetStatus(v PatchedWritableIPAddressRe o.Status = &v } -// GetRole returns the Role field value if set, zero value otherwise. +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableIPAddressRequest) GetRole() PatchedWritableIPAddressRequestRole { - if o == nil || IsNil(o.Role) { + if o == nil || IsNil(o.Role.Get()) { var ret PatchedWritableIPAddressRequestRole return ret } - return *o.Role + return *o.Role.Get() } // GetRoleOk returns a tuple with the Role 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 *PatchedWritableIPAddressRequest) GetRoleOk() (*PatchedWritableIPAddressRequestRole, bool) { - if o == nil || IsNil(o.Role) { + if o == nil { return nil, false } - return o.Role, true + return o.Role.Get(), o.Role.IsSet() } // HasRole returns a boolean if a field has been set. func (o *PatchedWritableIPAddressRequest) HasRole() bool { - if o != nil && !IsNil(o.Role) { + if o != nil && o.Role.IsSet() { return true } return false } -// SetRole gets a reference to the given PatchedWritableIPAddressRequestRole and assigns it to the Role field. +// SetRole gets a reference to the given NullablePatchedWritableIPAddressRequestRole and assigns it to the Role field. func (o *PatchedWritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole) { - o.Role = &v + o.Role.Set(&v) +} +// SetRoleNil sets the value for Role to be an explicit nil +func (o *PatchedWritableIPAddressRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *PatchedWritableIPAddressRequest) UnsetRole() { + o.Role.Unset() } // GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). @@ -270,7 +278,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) @@ -313,7 +320,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) @@ -356,7 +362,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) @@ -528,7 +533,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 } @@ -549,8 +554,8 @@ func (o PatchedWritableIPAddressRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() } if o.AssignedObjectType.IsSet() { toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() @@ -652,3 +657,5 @@ func (v *NullablePatchedWritableIPAddressRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go index c50d402363..5e77e30a19 100644 --- a/model_patched_writable_ip_address_request_role.go +++ b/model_patched_writable_ip_address_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ type PatchedWritableIPAddressRequestRole string // List of PatchedWritableIPAddressRequest_role const ( - PATCHEDWRITABLEIPADDRESSREQUESTROLE_LOOPBACK PatchedWritableIPAddressRequestRole = "loopback" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_LOOPBACK PatchedWritableIPAddressRequestRole = "loopback" PATCHEDWRITABLEIPADDRESSREQUESTROLE_SECONDARY PatchedWritableIPAddressRequestRole = "secondary" - PATCHEDWRITABLEIPADDRESSREQUESTROLE_ANYCAST PatchedWritableIPAddressRequestRole = "anycast" - PATCHEDWRITABLEIPADDRESSREQUESTROLE_VIP PatchedWritableIPAddressRequestRole = "vip" - PATCHEDWRITABLEIPADDRESSREQUESTROLE_VRRP PatchedWritableIPAddressRequestRole = "vrrp" - PATCHEDWRITABLEIPADDRESSREQUESTROLE_HSRP PatchedWritableIPAddressRequestRole = "hsrp" - PATCHEDWRITABLEIPADDRESSREQUESTROLE_GLBP PatchedWritableIPAddressRequestRole = "glbp" - PATCHEDWRITABLEIPADDRESSREQUESTROLE_CARP PatchedWritableIPAddressRequestRole = "carp" - PATCHEDWRITABLEIPADDRESSREQUESTROLE_EMPTY PatchedWritableIPAddressRequestRole = "" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_ANYCAST PatchedWritableIPAddressRequestRole = "anycast" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_VIP PatchedWritableIPAddressRequestRole = "vip" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_VRRP PatchedWritableIPAddressRequestRole = "vrrp" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_HSRP PatchedWritableIPAddressRequestRole = "hsrp" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_GLBP PatchedWritableIPAddressRequestRole = "glbp" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_CARP PatchedWritableIPAddressRequestRole = "carp" + PATCHEDWRITABLEIPADDRESSREQUESTROLE_EMPTY PatchedWritableIPAddressRequestRole = "" ) // All allowed values of PatchedWritableIPAddressRequestRole enum @@ -122,3 +122,4 @@ func (v *NullablePatchedWritableIPAddressRequestRole) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go index aa05d1c780..4c4a6fdb2e 100644 --- a/model_patched_writable_ip_address_request_status.go +++ b/model_patched_writable_ip_address_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ type PatchedWritableIPAddressRequestStatus string // List of PatchedWritableIPAddressRequest_status const ( - PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_ACTIVE PatchedWritableIPAddressRequestStatus = "active" - PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_RESERVED PatchedWritableIPAddressRequestStatus = "reserved" + PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_ACTIVE PatchedWritableIPAddressRequestStatus = "active" + PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_RESERVED PatchedWritableIPAddressRequestStatus = "reserved" PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DEPRECATED PatchedWritableIPAddressRequestStatus = "deprecated" - PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DHCP PatchedWritableIPAddressRequestStatus = "dhcp" - PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_SLAAC PatchedWritableIPAddressRequestStatus = "slaac" + PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_DHCP PatchedWritableIPAddressRequestStatus = "dhcp" + PATCHEDWRITABLEIPADDRESSREQUESTSTATUS_SLAAC PatchedWritableIPAddressRequestStatus = "slaac" ) // All allowed values of PatchedWritableIPAddressRequestStatus enum @@ -114,3 +114,4 @@ func (v *NullablePatchedWritableIPAddressRequestStatus) UnmarshalJSON(src []byte 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 3ae8f8a3b7..beb7df2315 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ 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 NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `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"` + StartAddress *string `json:"start_address,omitempty"` + EndAddress *string `json:"end_address,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` + Role NullableBriefRoleRequest `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 fully utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -118,9 +118,9 @@ func (o *PatchedWritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -145,11 +145,10 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableIPRangeRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -161,9 +160,9 @@ func (o *PatchedWritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -172,7 +171,7 @@ func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { // 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 *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -188,11 +187,10 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableIPRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -236,9 +234,9 @@ func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeReques } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { +func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -247,7 +245,7 @@ func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -263,11 +261,10 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableIPRangeRequest) SetRoleNil() { o.Role.Set(nil) @@ -439,7 +436,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 } @@ -555,3 +552,5 @@ func (v *NullablePatchedWritableIPRangeRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go index c5cdba089a..249bb5ee97 100644 --- a/model_patched_writable_ip_range_request_status.go +++ b/model_patched_writable_ip_range_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type PatchedWritableIPRangeRequestStatus string // List of PatchedWritableIPRangeRequest_status const ( - PATCHEDWRITABLEIPRANGEREQUESTSTATUS_ACTIVE PatchedWritableIPRangeRequestStatus = "active" - PATCHEDWRITABLEIPRANGEREQUESTSTATUS_RESERVED PatchedWritableIPRangeRequestStatus = "reserved" + PATCHEDWRITABLEIPRANGEREQUESTSTATUS_ACTIVE PatchedWritableIPRangeRequestStatus = "active" + PATCHEDWRITABLEIPRANGEREQUESTSTATUS_RESERVED PatchedWritableIPRangeRequestStatus = "reserved" PATCHEDWRITABLEIPRANGEREQUESTSTATUS_DEPRECATED PatchedWritableIPRangeRequestStatus = "deprecated" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableIPRangeRequestStatus) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go index 6c4c674f77..efa8ac4618 100644 --- a/model_patched_writable_ip_sec_policy_request.go +++ b/model_patched_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableIPSecPolicyRequest{} // PatchedWritableIPSecPolicyRequest Adds support for custom fields and tags. type PatchedWritableIPSecPolicyRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Proposals []int32 `json:"proposals,omitempty"` - PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Proposals []int32 `json:"proposals,omitempty"` + PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -176,7 +176,6 @@ func (o *PatchedWritableIPSecPolicyRequest) HasPfsGroup() bool { func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup) { o.PfsGroup.Set(&v) } - // SetPfsGroupNil sets the value for PfsGroup to be an explicit nil func (o *PatchedWritableIPSecPolicyRequest) SetPfsGroupNil() { o.PfsGroup.Set(nil) @@ -284,7 +283,7 @@ func (o *PatchedWritableIPSecPolicyRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -384,3 +383,5 @@ func (v *NullablePatchedWritableIPSecPolicyRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ip_sec_policy_request_pfs_group.go b/model_patched_writable_ip_sec_policy_request_pfs_group.go index 8b81531d6f..232ebad70b 100644 --- a/model_patched_writable_ip_sec_policy_request_pfs_group.go +++ b/model_patched_writable_ip_sec_policy_request_pfs_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PatchedWritableIPSecPolicyRequestPfsGroup int32 // List of PatchedWritableIPSecPolicyRequest_pfs_group const ( - PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__1 PatchedWritableIPSecPolicyRequestPfsGroup = 1 - PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__2 PatchedWritableIPSecPolicyRequestPfsGroup = 2 - PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__5 PatchedWritableIPSecPolicyRequestPfsGroup = 5 + PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__1 PatchedWritableIPSecPolicyRequestPfsGroup = 1 + PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__2 PatchedWritableIPSecPolicyRequestPfsGroup = 2 + PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__5 PatchedWritableIPSecPolicyRequestPfsGroup = 5 PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__14 PatchedWritableIPSecPolicyRequestPfsGroup = 14 PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__15 PatchedWritableIPSecPolicyRequestPfsGroup = 15 PATCHEDWRITABLEIPSECPOLICYREQUESTPFSGROUP__16 PatchedWritableIPSecPolicyRequestPfsGroup = 16 @@ -152,3 +152,4 @@ func (v *NullablePatchedWritableIPSecPolicyRequestPfsGroup) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go index 1c0acccc08..aad2b49318 100644 --- a/model_patched_writable_ip_sec_profile_request.go +++ b/model_patched_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableIPSecProfileRequest{} // PatchedWritableIPSecProfileRequest Adds support for custom fields and tags. type PatchedWritableIPSecProfileRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Mode *IPSecProfileModeValue `json:"mode,omitempty"` - IkePolicy *IKEPolicyRequest `json:"ike_policy,omitempty"` - IpsecPolicy *IPSecPolicyRequest `json:"ipsec_policy,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Mode *IPSecProfileModeValue `json:"mode,omitempty"` + IkePolicy *BriefIKEPolicyRequest `json:"ike_policy,omitempty"` + IpsecPolicy *BriefIPSecPolicyRequest `json:"ipsec_policy,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,9 +146,9 @@ func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil || IsNil(o.IkePolicy) { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } return *o.IkePolicy @@ -156,7 +156,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil || IsNil(o.IkePolicy) { return nil, false } @@ -172,15 +172,15 @@ func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool { return false } -// SetIkePolicy gets a reference to the given IKEPolicyRequest and assigns it to the IkePolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +// SetIkePolicy gets a reference to the given BriefIKEPolicyRequest and assigns it to the IkePolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = &v } // GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil || IsNil(o.IpsecPolicy) { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } return *o.IpsecPolicy @@ -188,7 +188,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil || IsNil(o.IpsecPolicy) { return nil, false } @@ -204,8 +204,8 @@ func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool { return false } -// SetIpsecPolicy gets a reference to the given IPSecPolicyRequest and assigns it to the IpsecPolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +// SetIpsecPolicy gets a reference to the given BriefIPSecPolicyRequest and assigns it to the IpsecPolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = &v } @@ -306,7 +306,7 @@ func (o *PatchedWritableIPSecProfileRequest) SetCustomFields(v map[string]interf } func (o PatchedWritableIPSecProfileRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -410,3 +410,5 @@ func (v *NullablePatchedWritableIPSecProfileRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go index b79dc65d84..3620297595 100644 --- a/model_patched_writable_ip_sec_proposal_request.go +++ b/model_patched_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableIPSecProposalRequest{} // PatchedWritableIPSecProposalRequest Adds support for custom fields and tags. type PatchedWritableIPSecProposalRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - EncryptionAlgorithm *Encryption `json:"encryption_algorithm,omitempty"` - AuthenticationAlgorithm *Authentication `json:"authentication_algorithm,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + EncryptionAlgorithm NullableEncryption `json:"encryption_algorithm,omitempty"` + AuthenticationAlgorithm NullableAuthentication `json:"authentication_algorithm,omitempty"` // Security association lifetime (seconds) SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"` // Security association lifetime (in kilobytes) - SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -116,68 +116,88 @@ func (o *PatchedWritableIPSecProposalRequest) SetDescription(v string) { o.Description = &v } -// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise. +// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption { - if o == nil || IsNil(o.EncryptionAlgorithm) { + if o == nil || IsNil(o.EncryptionAlgorithm.Get()) { var ret Encryption return ret } - return *o.EncryptionAlgorithm + return *o.EncryptionAlgorithm.Get() } // GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm 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 *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool) { - if o == nil || IsNil(o.EncryptionAlgorithm) { + if o == nil { return nil, false } - return o.EncryptionAlgorithm, true + return o.EncryptionAlgorithm.Get(), o.EncryptionAlgorithm.IsSet() } // HasEncryptionAlgorithm returns a boolean if a field has been set. func (o *PatchedWritableIPSecProposalRequest) HasEncryptionAlgorithm() bool { - if o != nil && !IsNil(o.EncryptionAlgorithm) { + if o != nil && o.EncryptionAlgorithm.IsSet() { return true } return false } -// SetEncryptionAlgorithm gets a reference to the given Encryption and assigns it to the EncryptionAlgorithm field. +// SetEncryptionAlgorithm gets a reference to the given NullableEncryption and assigns it to the EncryptionAlgorithm field. func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) { - o.EncryptionAlgorithm = &v + o.EncryptionAlgorithm.Set(&v) +} +// SetEncryptionAlgorithmNil sets the value for EncryptionAlgorithm to be an explicit nil +func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithmNil() { + o.EncryptionAlgorithm.Set(nil) } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. +// UnsetEncryptionAlgorithm ensures that no value is present for EncryptionAlgorithm, not even an explicit nil +func (o *PatchedWritableIPSecProposalRequest) UnsetEncryptionAlgorithm() { + o.EncryptionAlgorithm.Unset() +} + +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil || IsNil(o.AuthenticationAlgorithm.Get()) { var ret Authentication return ret } - return *o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm.Get() } // GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm 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 *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool) { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { return nil, false } - return o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm.Get(), o.AuthenticationAlgorithm.IsSet() } // HasAuthenticationAlgorithm returns a boolean if a field has been set. func (o *PatchedWritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool { - if o != nil && !IsNil(o.AuthenticationAlgorithm) { + if o != nil && o.AuthenticationAlgorithm.IsSet() { return true } return false } -// SetAuthenticationAlgorithm gets a reference to the given Authentication and assigns it to the AuthenticationAlgorithm field. +// SetAuthenticationAlgorithm gets a reference to the given NullableAuthentication and assigns it to the AuthenticationAlgorithm field. func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) { - o.AuthenticationAlgorithm = &v + o.AuthenticationAlgorithm.Set(&v) +} +// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil +func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithmNil() { + o.AuthenticationAlgorithm.Set(nil) +} + +// UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil +func (o *PatchedWritableIPSecProposalRequest) UnsetAuthenticationAlgorithm() { + o.AuthenticationAlgorithm.Unset() } // GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null). @@ -212,7 +232,6 @@ func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeSeconds() bool { func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32) { o.SaLifetimeSeconds.Set(&v) } - // SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeSecondsNil() { o.SaLifetimeSeconds.Set(nil) @@ -255,7 +274,6 @@ func (o *PatchedWritableIPSecProposalRequest) HasSaLifetimeData() bool { func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeData(v int32) { o.SaLifetimeData.Set(&v) } - // SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil func (o *PatchedWritableIPSecProposalRequest) SetSaLifetimeDataNil() { o.SaLifetimeData.Set(nil) @@ -363,7 +381,7 @@ func (o *PatchedWritableIPSecProposalRequest) SetCustomFields(v map[string]inter } func (o PatchedWritableIPSecProposalRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -378,11 +396,11 @@ func (o PatchedWritableIPSecProposalRequest) ToMap() (map[string]interface{}, er if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.EncryptionAlgorithm) { - toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm + if o.EncryptionAlgorithm.IsSet() { + toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm.Get() } - if !IsNil(o.AuthenticationAlgorithm) { - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if o.AuthenticationAlgorithm.IsSet() { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm.Get() } if o.SaLifetimeSeconds.IsSet() { toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get() @@ -471,3 +489,5 @@ func (v *NullablePatchedWritableIPSecProposalRequest) UnmarshalJSON(src []byte) 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 97f19a1e79..98a8d80a68 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ 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"` - Kind *JournalEntryKindValue `json:"kind,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AssignedObjectType *string `json:"assigned_object_type,omitempty"` + AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` + CreatedBy NullableInt32 `json:"created_by,omitempty"` + Kind *JournalEntryKindValue `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{} } @@ -144,7 +144,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) @@ -284,7 +283,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 } @@ -384,3 +383,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 0cbb2327b3..f4702a2979 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,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"` - Type *L2VPNTypeValue `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 NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Type *BriefL2VPNTypeValue `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 NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,7 +84,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) @@ -160,9 +159,9 @@ func (o *PatchedWritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -170,7 +169,7 @@ func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -186,8 +185,8 @@ func (o *PatchedWritableL2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } @@ -320,9 +319,9 @@ func (o *PatchedWritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { +func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -331,7 +330,7 @@ func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { // 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 *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -347,11 +346,10 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableL2VPNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -427,7 +425,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 } @@ -543,3 +541,5 @@ func (v *NullablePatchedWritableL2VPNRequest) UnmarshalJSON(src []byte) error { 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 338f115dd0..0c12b37c32 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableLocationRequest{} // PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableLocationRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Site *BriefSiteRequest `json:"site,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description - Facility *string `json:"facility,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -117,9 +117,9 @@ func (o *PatchedWritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { +func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -127,7 +127,7 @@ func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableLocationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = &v } @@ -180,7 +180,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) @@ -192,9 +191,9 @@ func (o *PatchedWritableLocationRequest) UnsetParent() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -202,7 +201,7 @@ func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequ // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -218,15 +217,15 @@ func (o *PatchedWritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { +func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -235,7 +234,7 @@ func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { // 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 *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -251,11 +250,10 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableLocationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -395,7 +393,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 } @@ -507,3 +505,5 @@ func (v *NullablePatchedWritableLocationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_location_request_status.go b/model_patched_writable_location_request_status.go deleted file mode 100644 index f311375491..0000000000 --- a/model_patched_writable_location_request_status.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableLocationRequestStatus * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired -type PatchedWritableLocationRequestStatus string - -// List of PatchedWritableLocationRequest_status -const ( - PATCHEDWRITABLELOCATIONREQUESTSTATUS_PLANNED PatchedWritableLocationRequestStatus = "planned" - PATCHEDWRITABLELOCATIONREQUESTSTATUS_STAGING PatchedWritableLocationRequestStatus = "staging" - PATCHEDWRITABLELOCATIONREQUESTSTATUS_ACTIVE PatchedWritableLocationRequestStatus = "active" - PATCHEDWRITABLELOCATIONREQUESTSTATUS_DECOMMISSIONING PatchedWritableLocationRequestStatus = "decommissioning" - PATCHEDWRITABLELOCATIONREQUESTSTATUS_RETIRED PatchedWritableLocationRequestStatus = "retired" -) - -// All allowed values of PatchedWritableLocationRequestStatus enum -var AllowedPatchedWritableLocationRequestStatusEnumValues = []PatchedWritableLocationRequestStatus{ - "planned", - "staging", - "active", - "decommissioning", - "retired", -} - -func (v *PatchedWritableLocationRequestStatus) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableLocationRequestStatus(value) - for _, existing := range AllowedPatchedWritableLocationRequestStatusEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableLocationRequestStatus", value) -} - -// NewPatchedWritableLocationRequestStatusFromValue returns a pointer to a valid PatchedWritableLocationRequestStatus -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableLocationRequestStatusFromValue(v string) (*PatchedWritableLocationRequestStatus, error) { - ev := PatchedWritableLocationRequestStatus(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableLocationRequestStatus: valid values are %v", v, AllowedPatchedWritableLocationRequestStatusEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableLocationRequestStatus) IsValid() bool { - for _, existing := range AllowedPatchedWritableLocationRequestStatusEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableLocationRequest_status value -func (v PatchedWritableLocationRequestStatus) Ptr() *PatchedWritableLocationRequestStatus { - return &v -} - -type NullablePatchedWritableLocationRequestStatus struct { - value *PatchedWritableLocationRequestStatus - isSet bool -} - -func (v NullablePatchedWritableLocationRequestStatus) Get() *PatchedWritableLocationRequestStatus { - return v.value -} - -func (v *NullablePatchedWritableLocationRequestStatus) Set(val *PatchedWritableLocationRequestStatus) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableLocationRequestStatus) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableLocationRequestStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableLocationRequestStatus(val *PatchedWritableLocationRequestStatus) *NullablePatchedWritableLocationRequestStatus { - return &NullablePatchedWritableLocationRequestStatus{value: val, isSet: true} -} - -func (v NullablePatchedWritableLocationRequestStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableLocationRequestStatus) UnmarshalJSON(src []byte) error { - 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 5d7316da71..eece2b0d6b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableModuleRequest{} // PatchedWritableModuleRequest Adds support for custom fields and tags. type PatchedWritableModuleRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - ModuleBay *int32 `json:"module_bay,omitempty"` - ModuleType *ModuleTypeRequest `json:"module_type,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + ModuleBay *int32 `json:"module_bay,omitempty"` + ModuleType *BriefModuleTypeRequest `json:"module_type,omitempty"` + Status *InventoryItemStatusValue `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{} } @@ -53,9 +53,9 @@ func NewPatchedWritableModuleRequestWithDefaults() *PatchedWritableModuleRequest } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -63,7 +63,7 @@ func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableModuleRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -117,9 +117,9 @@ func (o *PatchedWritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType @@ -127,7 +127,7 @@ func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil || IsNil(o.ModuleType) { return nil, false } @@ -143,15 +143,15 @@ func (o *PatchedWritableModuleRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given ModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given BriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableModuleRequest) GetStatus() InventoryItemStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret InventoryItemStatusValue return ret } return *o.Status @@ -159,7 +159,7 @@ func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableModuleRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -175,8 +175,8 @@ func (o *PatchedWritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *PatchedWritableModuleRequest) SetStatus(v InventoryItemStatusValue) { o.Status = &v } @@ -244,7 +244,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) @@ -384,7 +383,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 } @@ -496,3 +495,5 @@ func (v *NullablePatchedWritableModuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_module_request_status.go b/model_patched_writable_module_request_status.go deleted file mode 100644 index 989d8739a3..0000000000 --- a/model_patched_writable_module_request_status.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableModuleRequestStatus * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning -type PatchedWritableModuleRequestStatus string - -// List of PatchedWritableModuleRequest_status -const ( - PATCHEDWRITABLEMODULEREQUESTSTATUS_OFFLINE PatchedWritableModuleRequestStatus = "offline" - PATCHEDWRITABLEMODULEREQUESTSTATUS_ACTIVE PatchedWritableModuleRequestStatus = "active" - PATCHEDWRITABLEMODULEREQUESTSTATUS_PLANNED PatchedWritableModuleRequestStatus = "planned" - PATCHEDWRITABLEMODULEREQUESTSTATUS_STAGED PatchedWritableModuleRequestStatus = "staged" - PATCHEDWRITABLEMODULEREQUESTSTATUS_FAILED PatchedWritableModuleRequestStatus = "failed" - PATCHEDWRITABLEMODULEREQUESTSTATUS_DECOMMISSIONING PatchedWritableModuleRequestStatus = "decommissioning" -) - -// All allowed values of PatchedWritableModuleRequestStatus enum -var AllowedPatchedWritableModuleRequestStatusEnumValues = []PatchedWritableModuleRequestStatus{ - "offline", - "active", - "planned", - "staged", - "failed", - "decommissioning", -} - -func (v *PatchedWritableModuleRequestStatus) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableModuleRequestStatus(value) - for _, existing := range AllowedPatchedWritableModuleRequestStatusEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableModuleRequestStatus", value) -} - -// NewPatchedWritableModuleRequestStatusFromValue returns a pointer to a valid PatchedWritableModuleRequestStatus -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableModuleRequestStatusFromValue(v string) (*PatchedWritableModuleRequestStatus, error) { - ev := PatchedWritableModuleRequestStatus(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableModuleRequestStatus: valid values are %v", v, AllowedPatchedWritableModuleRequestStatusEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableModuleRequestStatus) IsValid() bool { - for _, existing := range AllowedPatchedWritableModuleRequestStatusEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableModuleRequest_status value -func (v PatchedWritableModuleRequestStatus) Ptr() *PatchedWritableModuleRequestStatus { - return &v -} - -type NullablePatchedWritableModuleRequestStatus struct { - value *PatchedWritableModuleRequestStatus - isSet bool -} - -func (v NullablePatchedWritableModuleRequestStatus) Get() *PatchedWritableModuleRequestStatus { - return v.value -} - -func (v *NullablePatchedWritableModuleRequestStatus) Set(val *PatchedWritableModuleRequestStatus) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableModuleRequestStatus) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableModuleRequestStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableModuleRequestStatus(val *PatchedWritableModuleRequestStatus) *NullablePatchedWritableModuleRequestStatus { - return &NullablePatchedWritableModuleRequestStatus{value: val, isSet: true} -} - -func (v NullablePatchedWritableModuleRequestStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableModuleRequestStatus) 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 284d2cda9a..5868b052b8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,17 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{} // PatchedWritableModuleTypeRequest Adds support for custom fields and tags. type PatchedWritableModuleTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `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"` + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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{} } @@ -52,9 +53,9 @@ func NewPatchedWritableModuleTypeRequestWithDefaults() *PatchedWritableModuleTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -62,7 +63,7 @@ func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -78,8 +79,8 @@ func (o *PatchedWritableModuleTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } @@ -147,6 +148,48 @@ func (o *PatchedWritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeRequestAirflow and assigns it to the Airflow field. +func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *PatchedWritableModuleTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *PatchedWritableModuleTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -179,7 +222,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) @@ -190,36 +232,46 @@ func (o *PatchedWritableModuleTypeRequest) UnsetWeight() { o.Weight.Unset() } -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit return ret } - return *o.WeightUnit + return *o.WeightUnit.Get() } // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { - if o == nil || IsNil(o.WeightUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { return nil, false } - return o.WeightUnit, true + return o.WeightUnit.Get(), o.WeightUnit.IsSet() } // HasWeightUnit returns a boolean if a field has been set. func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool { - if o != nil && !IsNil(o.WeightUnit) { + if o != nil && o.WeightUnit.IsSet() { return true } return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { - o.WeightUnit = &v +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *PatchedWritableModuleTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *PatchedWritableModuleTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -351,7 +403,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 } @@ -369,11 +421,14 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } - if !IsNil(o.WeightUnit) { - toSerialize["weight_unit"] = o.WeightUnit + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -412,6 +467,7 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") @@ -459,3 +515,5 @@ func (v *NullablePatchedWritableModuleTypeRequest) UnmarshalJSON(src []byte) err 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 cd730a4d06..fcb83caa17 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,24 +19,24 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{} // PatchedWritablePowerFeedRequest Adds support for custom fields and tags. type PatchedWritablePowerFeedRequest struct { - PowerPanel *PowerPanelRequest `json:"power_panel,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Name *string `json:"name,omitempty"` - Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` - Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` - Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"` - Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + PowerPanel *BriefPowerPanelRequest `json:"power_panel,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Name *string `json:"name,omitempty"` + Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` + Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` + Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"` + Phase *PatchedWritablePowerFeedRequestPhase `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"` - Tenant NullableTenantRequest `json:"tenant,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 NullableBriefTenantRequest `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{} } @@ -60,9 +60,9 @@ func NewPatchedWritablePowerFeedRequestWithDefaults() *PatchedWritablePowerFeedR } // GetPowerPanel returns the PowerPanel field value if set, zero value otherwise. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil || IsNil(o.PowerPanel) { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } return *o.PowerPanel @@ -70,7 +70,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil || IsNil(o.PowerPanel) { return nil, false } @@ -86,15 +86,15 @@ func (o *PatchedWritablePowerFeedRequest) HasPowerPanel() bool { return false } -// SetPowerPanel gets a reference to the given PowerPanelRequest and assigns it to the PowerPanel field. -func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +// SetPowerPanel gets a reference to the given BriefPowerPanelRequest and assigns it to the PowerPanel field. +func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = &v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { +func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -103,7 +103,7 @@ func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -119,11 +119,10 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PatchedWritablePowerFeedRequest) SetRackNil() { o.Rack.Set(nil) @@ -455,9 +454,9 @@ func (o *PatchedWritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -466,7 +465,7 @@ func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { // 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() (*TenantRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -482,11 +481,10 @@ func (o *PatchedWritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritablePowerFeedRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -594,7 +592,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 } @@ -730,3 +728,5 @@ func (v *NullablePatchedWritablePowerFeedRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go index 9a576dfa2f..cb1d8fea6f 100644 --- a/model_patched_writable_power_feed_request_phase.go +++ b/model_patched_writable_power_feed_request_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type PatchedWritablePowerFeedRequestPhase string // List of PatchedWritablePowerFeedRequest_phase const ( PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_SINGLE_PHASE PatchedWritablePowerFeedRequestPhase = "single-phase" - PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_THREE_PHASE PatchedWritablePowerFeedRequestPhase = "three-phase" + PATCHEDWRITABLEPOWERFEEDREQUESTPHASE_THREE_PHASE PatchedWritablePowerFeedRequestPhase = "three-phase" ) // All allowed values of PatchedWritablePowerFeedRequestPhase enum @@ -108,3 +108,4 @@ func (v *NullablePatchedWritablePowerFeedRequestPhase) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_power_feed_request_status.go b/model_patched_writable_power_feed_request_status.go index e83c0f2fa7..3079dc357f 100644 --- a/model_patched_writable_power_feed_request_status.go +++ b/model_patched_writable_power_feed_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,9 @@ type PatchedWritablePowerFeedRequestStatus string // List of PatchedWritablePowerFeedRequest_status const ( PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_OFFLINE PatchedWritablePowerFeedRequestStatus = "offline" - PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_ACTIVE PatchedWritablePowerFeedRequestStatus = "active" + PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_ACTIVE PatchedWritablePowerFeedRequestStatus = "active" PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_PLANNED PatchedWritablePowerFeedRequestStatus = "planned" - PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_FAILED PatchedWritablePowerFeedRequestStatus = "failed" + PATCHEDWRITABLEPOWERFEEDREQUESTSTATUS_FAILED PatchedWritablePowerFeedRequestStatus = "failed" ) // All allowed values of PatchedWritablePowerFeedRequestStatus enum @@ -112,3 +112,4 @@ func (v *NullablePatchedWritablePowerFeedRequestStatus) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go index e8b5b27a3e..e0c039ad0c 100644 --- a/model_patched_writable_power_feed_request_supply.go +++ b/model_patched_writable_power_feed_request_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullablePatchedWritablePowerFeedRequestSupply) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go index 6951215c40..d32c590b32 100644 --- a/model_patched_writable_power_feed_request_type.go +++ b/model_patched_writable_power_feed_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type PatchedWritablePowerFeedRequestType string // List of PatchedWritablePowerFeedRequest_type const ( - PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_PRIMARY PatchedWritablePowerFeedRequestType = "primary" + PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_PRIMARY PatchedWritablePowerFeedRequestType = "primary" PATCHEDWRITABLEPOWERFEEDREQUESTTYPE_REDUNDANT PatchedWritablePowerFeedRequestType = "redundant" ) @@ -108,3 +108,4 @@ func (v *NullablePatchedWritablePowerFeedRequestType) UnmarshalJSON(src []byte) 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 4a3f01b5d4..eb3972b1f0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,20 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{} // PatchedWritablePowerOutletRequest Adds support for custom fields and tags. type PatchedWritablePowerOutletRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` - FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerOutletRequestType `json:"type,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` + FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `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{} } @@ -55,9 +56,9 @@ func NewPatchedWritablePowerOutletRequestWithDefaults() *PatchedWritablePowerOut } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -65,7 +66,7 @@ func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -81,15 +82,15 @@ func (o *PatchedWritablePowerOutletRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -98,7 +99,7 @@ func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -114,11 +115,10 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritablePowerOutletRequest) SetModuleNil() { o.Module.Set(nil) @@ -193,42 +193,84 @@ func (o *PatchedWritablePowerOutletRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritablePowerOutletRequest) GetType() PatchedWritablePowerOutletRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerOutletRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *PatchedWritablePowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritablePowerOutletRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerOutletRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerOutletRequestType and assigns it to the Type field. func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritablePowerOutletRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritablePowerOutletRequest) UnsetType() { + o.Type.Unset() +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *PatchedWritablePowerOutletRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritablePowerOutletRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *PatchedWritablePowerOutletRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *PatchedWritablePowerOutletRequest) SetColor(v string) { + o.Color = &v } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -237,7 +279,7 @@ func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort 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 *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -253,11 +295,10 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PatchedWritablePowerOutletRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -268,36 +309,46 @@ func (o *PatchedWritablePowerOutletRequest) UnsetPowerPort() { o.PowerPort.Unset() } -// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise. +// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritablePowerOutletRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg { - if o == nil || IsNil(o.FeedLeg) { + if o == nil || IsNil(o.FeedLeg.Get()) { var ret PatchedWritablePowerOutletRequestFeedLeg return ret } - return *o.FeedLeg + return *o.FeedLeg.Get() } // GetFeedLegOk returns a tuple with the FeedLeg 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 *PatchedWritablePowerOutletRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) { - if o == nil || IsNil(o.FeedLeg) { + if o == nil { return nil, false } - return o.FeedLeg, true + return o.FeedLeg.Get(), o.FeedLeg.IsSet() } // HasFeedLeg returns a boolean if a field has been set. func (o *PatchedWritablePowerOutletRequest) HasFeedLeg() bool { - if o != nil && !IsNil(o.FeedLeg) { + if o != nil && o.FeedLeg.IsSet() { return true } return false } -// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. +// SetFeedLeg gets a reference to the given NullablePatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. func (o *PatchedWritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) { - o.FeedLeg = &v + o.FeedLeg.Set(&v) +} +// SetFeedLegNil sets the value for FeedLeg to be an explicit nil +func (o *PatchedWritablePowerOutletRequest) SetFeedLegNil() { + o.FeedLeg.Set(nil) +} + +// UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil +func (o *PatchedWritablePowerOutletRequest) UnsetFeedLeg() { + o.FeedLeg.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -429,7 +480,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 } @@ -450,14 +501,17 @@ func (o PatchedWritablePowerOutletRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color } if o.PowerPort.IsSet() { toSerialize["power_port"] = o.PowerPort.Get() } - if !IsNil(o.FeedLeg) { - toSerialize["feed_leg"] = o.FeedLeg + if o.FeedLeg.IsSet() { + toSerialize["feed_leg"] = o.FeedLeg.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -498,6 +552,7 @@ func (o *PatchedWritablePowerOutletRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "type") + delete(additionalProperties, "color") delete(additionalProperties, "power_port") delete(additionalProperties, "feed_leg") delete(additionalProperties, "description") @@ -545,3 +600,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_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go index bb994c1906..c2bc6ab2f4 100644 --- a/model_patched_writable_power_outlet_request_feed_leg.go +++ b/model_patched_writable_power_outlet_request_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PatchedWritablePowerOutletRequestFeedLeg string // List of PatchedWritablePowerOutletRequest_feed_leg const ( - PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_A PatchedWritablePowerOutletRequestFeedLeg = "A" - PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_B PatchedWritablePowerOutletRequestFeedLeg = "B" - PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_C PatchedWritablePowerOutletRequestFeedLeg = "C" + PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_A PatchedWritablePowerOutletRequestFeedLeg = "A" + PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_B PatchedWritablePowerOutletRequestFeedLeg = "B" + PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_C PatchedWritablePowerOutletRequestFeedLeg = "C" PATCHEDWRITABLEPOWEROUTLETREQUESTFEEDLEG_EMPTY PatchedWritablePowerOutletRequestFeedLeg = "" ) @@ -112,3 +112,4 @@ func (v *NullablePatchedWritablePowerOutletRequestFeedLeg) UnmarshalJSON(src []b v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_power_outlet_request_type.go b/model_patched_writable_power_outlet_request_type.go index b71ce89bf3..fcbc01d98f 100644 --- a/model_patched_writable_power_outlet_request_type.go +++ b/model_patched_writable_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,108 +15,110 @@ import ( "fmt" ) -// PatchedWritablePowerOutletRequestType 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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 +// PatchedWritablePowerOutletRequestType 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-20r` - NEMA L22-20R * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `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 PatchedWritablePowerOutletRequestType string // List of PatchedWritablePowerOutletRequest_type const ( - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletRequestType = "iec-60320-c5" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletRequestType = "iec-60320-c7" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletRequestType = "iec-60320-c13" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletRequestType = "iec-60320-c15" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletRequestType = "iec-60320-c19" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletRequestType = "iec-60320-c21" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-4h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-6h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-9h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-4h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-6h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-9h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-4h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-6h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-9h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-4h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-6h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-9h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletRequestType = "iec-60906-1" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletRequestType = "nbr-14136-10a" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletRequestType = "nbr-14136-20a" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletRequestType = "nema-1-15r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletRequestType = "nema-5-15r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletRequestType = "nema-5-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletRequestType = "nema-5-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletRequestType = "nema-5-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletRequestType = "nema-6-15r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletRequestType = "nema-6-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletRequestType = "nema-6-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletRequestType = "nema-6-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletRequestType = "nema-10-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletRequestType = "nema-10-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletRequestType = "nema-14-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletRequestType = "nema-14-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletRequestType = "nema-14-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletRequestType = "nema-14-60r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletRequestType = "nema-15-15r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletRequestType = "nema-15-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletRequestType = "nema-15-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletRequestType = "nema-15-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletRequestType = "nema-15-60r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletRequestType = "nema-l1-15r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletRequestType = "nema-l5-15r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletRequestType = "nema-l5-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletRequestType = "nema-l5-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletRequestType = "nema-l5-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletRequestType = "nema-l6-15r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletRequestType = "nema-l6-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletRequestType = "nema-l6-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletRequestType = "nema-l6-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletRequestType = "nema-l10-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletRequestType = "nema-l14-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletRequestType = "nema-l14-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletRequestType = "nema-l14-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletRequestType = "nema-l14-60r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletRequestType = "nema-l15-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletRequestType = "nema-l15-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletRequestType = "nema-l15-50r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletRequestType = "nema-l15-60r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletRequestType = "nema-l21-20r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletRequestType = "nema-l21-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8164_C PatchedWritablePowerOutletRequestType = "CS8164C" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8264_C PatchedWritablePowerOutletRequestType = "CS8264C" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8364_C PatchedWritablePowerOutletRequestType = "CS8364C" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8464_C PatchedWritablePowerOutletRequestType = "CS8464C" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_E PatchedWritablePowerOutletRequestType = "ita-e" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_F PatchedWritablePowerOutletRequestType = "ita-f" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_G PatchedWritablePowerOutletRequestType = "ita-g" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_H PatchedWritablePowerOutletRequestType = "ita-h" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_I PatchedWritablePowerOutletRequestType = "ita-i" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_J PatchedWritablePowerOutletRequestType = "ita-j" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_K PatchedWritablePowerOutletRequestType = "ita-k" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_L PatchedWritablePowerOutletRequestType = "ita-l" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_M PatchedWritablePowerOutletRequestType = "ita-m" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_N PatchedWritablePowerOutletRequestType = "ita-n" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_O PatchedWritablePowerOutletRequestType = "ita-o" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletRequestType = "ita-multistandard" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_A PatchedWritablePowerOutletRequestType = "usb-a" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletRequestType = "usb-micro-b" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_C PatchedWritablePowerOutletRequestType = "usb-c" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-1x2" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x2" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x4" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletRequestType = "dc-terminal" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletRequestType = "hdot-cx" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletRequestType = "saf-d-grid" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletRequestType = "neutrik-powercon-20a" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletRequestType = "neutrik-powercon-32a" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletRequestType = "iec-60320-c5" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletRequestType = "iec-60320-c7" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletRequestType = "iec-60320-c13" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletRequestType = "iec-60320-c15" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletRequestType = "iec-60320-c19" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletRequestType = "iec-60320-c21" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-4h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-6h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-p-n-e-9h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-4h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-6h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-2p-e-9h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-4h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-6h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-e-9h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-4h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-6h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletRequestType = "iec-60309-3p-n-e-9h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletRequestType = "iec-60906-1" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletRequestType = "nbr-14136-10a" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletRequestType = "nbr-14136-20a" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletRequestType = "nema-1-15r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletRequestType = "nema-5-15r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletRequestType = "nema-5-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletRequestType = "nema-5-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletRequestType = "nema-5-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletRequestType = "nema-6-15r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletRequestType = "nema-6-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletRequestType = "nema-6-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletRequestType = "nema-6-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletRequestType = "nema-10-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletRequestType = "nema-10-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletRequestType = "nema-14-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletRequestType = "nema-14-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletRequestType = "nema-14-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletRequestType = "nema-14-60r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletRequestType = "nema-15-15r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletRequestType = "nema-15-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletRequestType = "nema-15-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletRequestType = "nema-15-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletRequestType = "nema-15-60r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletRequestType = "nema-l1-15r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletRequestType = "nema-l5-15r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletRequestType = "nema-l5-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletRequestType = "nema-l5-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletRequestType = "nema-l5-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletRequestType = "nema-l6-15r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletRequestType = "nema-l6-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletRequestType = "nema-l6-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletRequestType = "nema-l6-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletRequestType = "nema-l10-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletRequestType = "nema-l14-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletRequestType = "nema-l14-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletRequestType = "nema-l14-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletRequestType = "nema-l14-60r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletRequestType = "nema-l15-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletRequestType = "nema-l15-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletRequestType = "nema-l15-50r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletRequestType = "nema-l15-60r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletRequestType = "nema-l21-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletRequestType = "nema-l21-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletRequestType = "nema-l22-20r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8164_C PatchedWritablePowerOutletRequestType = "CS8164C" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8264_C PatchedWritablePowerOutletRequestType = "CS8264C" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8364_C PatchedWritablePowerOutletRequestType = "CS8364C" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS8464_C PatchedWritablePowerOutletRequestType = "CS8464C" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_E PatchedWritablePowerOutletRequestType = "ita-e" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_F PatchedWritablePowerOutletRequestType = "ita-f" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_G PatchedWritablePowerOutletRequestType = "ita-g" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_H PatchedWritablePowerOutletRequestType = "ita-h" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_I PatchedWritablePowerOutletRequestType = "ita-i" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_J PatchedWritablePowerOutletRequestType = "ita-j" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_K PatchedWritablePowerOutletRequestType = "ita-k" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_L PatchedWritablePowerOutletRequestType = "ita-l" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_M PatchedWritablePowerOutletRequestType = "ita-m" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_N PatchedWritablePowerOutletRequestType = "ita-n" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_O PatchedWritablePowerOutletRequestType = "ita-o" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletRequestType = "ita-multistandard" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_A PatchedWritablePowerOutletRequestType = "usb-a" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletRequestType = "usb-micro-b" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_USB_C PatchedWritablePowerOutletRequestType = "usb-c" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-1x2" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x2" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x4" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletRequestType = "dc-terminal" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletRequestType = "eaton-c39" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletRequestType = "hdot-cx" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletRequestType = "saf-d-grid" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletRequestType = "neutrik-powercon-20a" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletRequestType = "neutrik-powercon-32a" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerOutletRequestType = "neutrik-powercon-true1-top" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletRequestType = "ubiquiti-smartpower" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletRequestType = "hardwired" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_OTHER PatchedWritablePowerOutletRequestType = "other" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EMPTY PatchedWritablePowerOutletRequestType = "" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletRequestType = "ubiquiti-smartpower" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletRequestType = "hardwired" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_OTHER PatchedWritablePowerOutletRequestType = "other" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EMPTY PatchedWritablePowerOutletRequestType = "" ) // All allowed values of PatchedWritablePowerOutletRequestType enum @@ -182,6 +184,7 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", @@ -208,6 +211,7 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo "molex-micro-fit-2x2", "molex-micro-fit-2x4", "dc-terminal", + "eaton-c39", "hdot-cx", "saf-d-grid", "neutrik-powercon-20a", @@ -298,3 +302,4 @@ func (v *NullablePatchedWritablePowerOutletRequestType) UnmarshalJSON(src []byte 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 665ffab4ec..92c17b4152 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritablePowerOutletTemplateRequest{} // PatchedWritablePowerOutletTemplateRequest 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 PatchedWritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` - FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +52,9 @@ func NewPatchedWritablePowerOutletTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,11 +79,10 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -95,9 +94,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +105,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,11 +121,10 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -201,42 +199,52 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritablePowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerOutletTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *PatchedWritablePowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritablePowerOutletTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field. func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritablePowerOutletTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritablePowerOutletTemplateRequest) UnsetType() { + o.Type.Unset() } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -245,7 +253,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemp // GetPowerPortOk returns a tuple with the PowerPort 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 *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -261,11 +269,10 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -276,36 +283,46 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetPowerPort() { o.PowerPort.Unset() } -// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise. +// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritablePowerOutletTemplateRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg { - if o == nil || IsNil(o.FeedLeg) { + if o == nil || IsNil(o.FeedLeg.Get()) { var ret PatchedWritablePowerOutletRequestFeedLeg return ret } - return *o.FeedLeg + return *o.FeedLeg.Get() } // GetFeedLegOk returns a tuple with the FeedLeg 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 *PatchedWritablePowerOutletTemplateRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) { - if o == nil || IsNil(o.FeedLeg) { + if o == nil { return nil, false } - return o.FeedLeg, true + return o.FeedLeg.Get(), o.FeedLeg.IsSet() } // HasFeedLeg returns a boolean if a field has been set. func (o *PatchedWritablePowerOutletTemplateRequest) HasFeedLeg() bool { - if o != nil && !IsNil(o.FeedLeg) { + if o != nil && o.FeedLeg.IsSet() { return true } return false } -// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. +// SetFeedLeg gets a reference to the given NullablePatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) { - o.FeedLeg = &v + o.FeedLeg.Set(&v) +} +// SetFeedLegNil sets the value for FeedLeg to be an explicit nil +func (o *PatchedWritablePowerOutletTemplateRequest) SetFeedLegNil() { + o.FeedLeg.Set(nil) +} + +// UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil +func (o *PatchedWritablePowerOutletTemplateRequest) UnsetFeedLeg() { + o.FeedLeg.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -341,7 +358,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 } @@ -362,14 +379,14 @@ func (o PatchedWritablePowerOutletTemplateRequest) ToMap() (map[string]interface if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.PowerPort.IsSet() { toSerialize["power_port"] = o.PowerPort.Get() } - if !IsNil(o.FeedLeg) { - toSerialize["feed_leg"] = o.FeedLeg + if o.FeedLeg.IsSet() { + toSerialize["feed_leg"] = o.FeedLeg.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -445,3 +462,5 @@ func (v *NullablePatchedWritablePowerOutletTemplateRequest) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go index 1ca2917115..2eb9ee1719 100644 --- a/model_patched_writable_power_outlet_template_request_type.go +++ b/model_patched_writable_power_outlet_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,108 +15,110 @@ import ( "fmt" ) -// PatchedWritablePowerOutletTemplateRequestType * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 +// PatchedWritablePowerOutletTemplateRequestType * `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-20r` - NEMA L22-20R * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `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 PatchedWritablePowerOutletTemplateRequestType string // List of PatchedWritablePowerOutletTemplateRequest_type const ( - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c5" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c7" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c13" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c15" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c19" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c21" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-4h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-6h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-9h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-4h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-6h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-9h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-4h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-6h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-9h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-4h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-6h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-9h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletTemplateRequestType = "iec-60906-1" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-10a" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-20a" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-1-15r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-5-15r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-5-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-5-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-5-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-6-15r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-6-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-6-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-6-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-10-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletTemplateRequestType = "nema-10-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-14-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-14-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-14-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-14-60r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletTemplateRequestType = "nema-15-15r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-15-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-15-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-15-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-15-60r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l1-15r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-15r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-15r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l10-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-60r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-50r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-60r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-20r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8164_C PatchedWritablePowerOutletTemplateRequestType = "CS8164C" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8264_C PatchedWritablePowerOutletTemplateRequestType = "CS8264C" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8364_C PatchedWritablePowerOutletTemplateRequestType = "CS8364C" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8464_C PatchedWritablePowerOutletTemplateRequestType = "CS8464C" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerOutletTemplateRequestType = "ita-e" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerOutletTemplateRequestType = "ita-f" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerOutletTemplateRequestType = "ita-g" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerOutletTemplateRequestType = "ita-h" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerOutletTemplateRequestType = "ita-i" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerOutletTemplateRequestType = "ita-j" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerOutletTemplateRequestType = "ita-k" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerOutletTemplateRequestType = "ita-l" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerOutletTemplateRequestType = "ita-m" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerOutletTemplateRequestType = "ita-n" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerOutletTemplateRequestType = "ita-o" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletTemplateRequestType = "ita-multistandard" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerOutletTemplateRequestType = "usb-a" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletTemplateRequestType = "usb-micro-b" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerOutletTemplateRequestType = "usb-c" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-1x2" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x2" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x4" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletTemplateRequestType = "dc-terminal" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletTemplateRequestType = "hdot-cx" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletTemplateRequestType = "saf-d-grid" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-20a" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-32a" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C5 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c5" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C7 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c7" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C13 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c13" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C15 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c15" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C19 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c19" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60320_C21 PatchedWritablePowerOutletTemplateRequestType = "iec-60320-c21" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-4h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-6h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-p-n-e-9h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-4h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-6h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-2p-e-9h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-4h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-6h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-e-9h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-4h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-6h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerOutletTemplateRequestType = "iec-60309-3p-n-e-9h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerOutletTemplateRequestType = "iec-60906-1" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-10a" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerOutletTemplateRequestType = "nbr-14136-20a" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-1-15r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-5-15r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-5-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-5-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-5-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-6-15r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-6-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-6-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-6-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-10-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_10_50R PatchedWritablePowerOutletTemplateRequestType = "nema-10-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-14-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-14-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-14-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-14-60r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_15R PatchedWritablePowerOutletTemplateRequestType = "nema-15-15r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-15-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-15-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-15-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-15-60r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L1_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l1-15r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-15r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L5_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l5-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_15R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-15r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L6_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l6-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L10_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l10-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L14_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l14-60r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_50R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-50r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-60r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-20r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8164_C PatchedWritablePowerOutletTemplateRequestType = "CS8164C" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8264_C PatchedWritablePowerOutletTemplateRequestType = "CS8264C" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8364_C PatchedWritablePowerOutletTemplateRequestType = "CS8364C" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS8464_C PatchedWritablePowerOutletTemplateRequestType = "CS8464C" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerOutletTemplateRequestType = "ita-e" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerOutletTemplateRequestType = "ita-f" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerOutletTemplateRequestType = "ita-g" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerOutletTemplateRequestType = "ita-h" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerOutletTemplateRequestType = "ita-i" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerOutletTemplateRequestType = "ita-j" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerOutletTemplateRequestType = "ita-k" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerOutletTemplateRequestType = "ita-l" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerOutletTemplateRequestType = "ita-m" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerOutletTemplateRequestType = "ita-n" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerOutletTemplateRequestType = "ita-o" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_ITA_MULTISTANDARD PatchedWritablePowerOutletTemplateRequestType = "ita-multistandard" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerOutletTemplateRequestType = "usb-a" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerOutletTemplateRequestType = "usb-micro-b" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerOutletTemplateRequestType = "usb-c" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-1x2" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x2" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x4" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletTemplateRequestType = "dc-terminal" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletTemplateRequestType = "eaton-c39" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletTemplateRequestType = "hdot-cx" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletTemplateRequestType = "saf-d-grid" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-20a" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-32a" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-true1-top" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletTemplateRequestType = "ubiquiti-smartpower" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletTemplateRequestType = "hardwired" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerOutletTemplateRequestType = "other" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerOutletTemplateRequestType = "" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerOutletTemplateRequestType = "ubiquiti-smartpower" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerOutletTemplateRequestType = "hardwired" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerOutletTemplateRequestType = "other" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerOutletTemplateRequestType = "" ) // All allowed values of PatchedWritablePowerOutletTemplateRequestType enum @@ -182,6 +184,7 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", @@ -208,6 +211,7 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr "molex-micro-fit-2x2", "molex-micro-fit-2x4", "dc-terminal", + "eaton-c39", "hdot-cx", "saf-d-grid", "neutrik-powercon-20a", @@ -298,3 +302,4 @@ func (v *NullablePatchedWritablePowerOutletTemplateRequestType) UnmarshalJSON(sr 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 1df1cacd17..fd3d74740f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{} // PatchedWritablePowerPortRequest Adds support for custom fields and tags. type PatchedWritablePowerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerPortRequestType `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"` - 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{} } @@ -57,9 +57,9 @@ func NewPatchedWritablePowerPortRequestWithDefaults() *PatchedWritablePowerPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -83,15 +83,15 @@ func (o *PatchedWritablePowerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -116,11 +116,10 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritablePowerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -195,36 +194,46 @@ func (o *PatchedWritablePowerPortRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritablePowerPortRequest) GetType() PatchedWritablePowerPortRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerPortRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *PatchedWritablePowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritablePowerPortRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerPortRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerPortRequestType and assigns it to the Type field. func (o *PatchedWritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritablePowerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritablePowerPortRequest) UnsetType() { + o.Type.Unset() } // GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). @@ -259,7 +268,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) @@ -302,7 +310,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) @@ -442,7 +449,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 } @@ -463,8 +470,8 @@ func (o PatchedWritablePowerPortRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.MaximumDraw.IsSet() { toSerialize["maximum_draw"] = o.MaximumDraw.Get() @@ -558,3 +565,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_request_type.go b/model_patched_writable_power_port_request_type.go index fd8a265b04..c56b4ed9be 100644 --- a/model_patched_writable_power_port_request_type.go +++ b/model_patched_writable_power_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,115 +15,116 @@ import ( "fmt" ) -// PatchedWritablePowerPortRequestType 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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 +// PatchedWritablePowerPortRequestType 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-20p` - NEMA L22-20P * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 type PatchedWritablePowerPortRequestType string // List of PatchedWritablePowerPortRequest_type const ( - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortRequestType = "iec-60320-c6" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortRequestType = "iec-60320-c8" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortRequestType = "iec-60320-c14" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortRequestType = "iec-60320-c16" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortRequestType = "iec-60320-c20" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortRequestType = "iec-60320-c22" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-4h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-6h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-9h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-4h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-6h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-9h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-4h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-6h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-9h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-4h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-6h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-9h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortRequestType = "iec-60906-1" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortRequestType = "nbr-14136-10a" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortRequestType = "nbr-14136-20a" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortRequestType = "nema-1-15p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortRequestType = "nema-5-15p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortRequestType = "nema-5-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortRequestType = "nema-5-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortRequestType = "nema-5-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortRequestType = "nema-6-15p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortRequestType = "nema-6-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortRequestType = "nema-6-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortRequestType = "nema-6-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortRequestType = "nema-10-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortRequestType = "nema-10-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortRequestType = "nema-14-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortRequestType = "nema-14-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortRequestType = "nema-14-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortRequestType = "nema-14-60p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortRequestType = "nema-15-15p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortRequestType = "nema-15-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortRequestType = "nema-15-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortRequestType = "nema-15-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortRequestType = "nema-15-60p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortRequestType = "nema-l1-15p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortRequestType = "nema-l5-15p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortRequestType = "nema-l5-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortRequestType = "nema-l5-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortRequestType = "nema-l5-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortRequestType = "nema-l6-15p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortRequestType = "nema-l6-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortRequestType = "nema-l6-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortRequestType = "nema-l6-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortRequestType = "nema-l10-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortRequestType = "nema-l14-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortRequestType = "nema-l14-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortRequestType = "nema-l14-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortRequestType = "nema-l14-60p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortRequestType = "nema-l15-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortRequestType = "nema-l15-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortRequestType = "nema-l15-50p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortRequestType = "nema-l15-60p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortRequestType = "nema-l21-20p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortRequestType = "nema-l21-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8165C PatchedWritablePowerPortRequestType = "cs8165c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8265C PatchedWritablePowerPortRequestType = "cs8265c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8365C PatchedWritablePowerPortRequestType = "cs8365c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8465C PatchedWritablePowerPortRequestType = "cs8465c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_C PatchedWritablePowerPortRequestType = "ita-c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_E PatchedWritablePowerPortRequestType = "ita-e" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_F PatchedWritablePowerPortRequestType = "ita-f" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_EF PatchedWritablePowerPortRequestType = "ita-ef" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_G PatchedWritablePowerPortRequestType = "ita-g" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_H PatchedWritablePowerPortRequestType = "ita-h" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_I PatchedWritablePowerPortRequestType = "ita-i" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_J PatchedWritablePowerPortRequestType = "ita-j" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_K PatchedWritablePowerPortRequestType = "ita-k" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_L PatchedWritablePowerPortRequestType = "ita-l" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_M PatchedWritablePowerPortRequestType = "ita-m" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_N PatchedWritablePowerPortRequestType = "ita-n" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_O PatchedWritablePowerPortRequestType = "ita-o" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_A PatchedWritablePowerPortRequestType = "usb-a" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_B PatchedWritablePowerPortRequestType = "usb-b" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_C PatchedWritablePowerPortRequestType = "usb-c" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortRequestType = "usb-mini-a" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortRequestType = "usb-mini-b" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortRequestType = "usb-micro-a" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortRequestType = "usb-micro-b" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortRequestType = "usb-micro-ab" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_B PatchedWritablePowerPortRequestType = "usb-3-b" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortRequestType = "usb-3-micro-b" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-1x2" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x2" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x4" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortRequestType = "dc-terminal" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortRequestType = "saf-d-grid" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortRequestType = "neutrik-powercon-20" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortRequestType = "neutrik-powercon-32" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortRequestType = "neutrik-powercon-true1" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortRequestType = "iec-60320-c6" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortRequestType = "iec-60320-c8" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortRequestType = "iec-60320-c14" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortRequestType = "iec-60320-c16" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortRequestType = "iec-60320-c20" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortRequestType = "iec-60320-c22" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-4h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-6h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-p-n-e-9h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-4h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-6h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-2p-e-9h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-4h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-6h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-e-9h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-4h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-6h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortRequestType = "iec-60309-3p-n-e-9h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortRequestType = "iec-60906-1" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortRequestType = "nbr-14136-10a" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortRequestType = "nbr-14136-20a" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortRequestType = "nema-1-15p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortRequestType = "nema-5-15p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortRequestType = "nema-5-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortRequestType = "nema-5-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortRequestType = "nema-5-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortRequestType = "nema-6-15p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortRequestType = "nema-6-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortRequestType = "nema-6-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortRequestType = "nema-6-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortRequestType = "nema-10-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortRequestType = "nema-10-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortRequestType = "nema-14-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortRequestType = "nema-14-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortRequestType = "nema-14-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortRequestType = "nema-14-60p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortRequestType = "nema-15-15p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortRequestType = "nema-15-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortRequestType = "nema-15-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortRequestType = "nema-15-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortRequestType = "nema-15-60p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortRequestType = "nema-l1-15p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortRequestType = "nema-l5-15p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortRequestType = "nema-l5-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortRequestType = "nema-l5-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortRequestType = "nema-l5-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortRequestType = "nema-l6-15p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortRequestType = "nema-l6-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortRequestType = "nema-l6-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortRequestType = "nema-l6-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortRequestType = "nema-l10-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortRequestType = "nema-l14-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortRequestType = "nema-l14-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortRequestType = "nema-l14-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortRequestType = "nema-l14-60p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortRequestType = "nema-l15-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortRequestType = "nema-l15-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortRequestType = "nema-l15-50p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortRequestType = "nema-l15-60p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortRequestType = "nema-l21-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortRequestType = "nema-l21-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortRequestType = "nema-l22-20p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8165C PatchedWritablePowerPortRequestType = "cs8165c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8265C PatchedWritablePowerPortRequestType = "cs8265c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8365C PatchedWritablePowerPortRequestType = "cs8365c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS8465C PatchedWritablePowerPortRequestType = "cs8465c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_C PatchedWritablePowerPortRequestType = "ita-c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_E PatchedWritablePowerPortRequestType = "ita-e" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_F PatchedWritablePowerPortRequestType = "ita-f" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_EF PatchedWritablePowerPortRequestType = "ita-ef" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_G PatchedWritablePowerPortRequestType = "ita-g" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_H PatchedWritablePowerPortRequestType = "ita-h" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_I PatchedWritablePowerPortRequestType = "ita-i" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_J PatchedWritablePowerPortRequestType = "ita-j" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_K PatchedWritablePowerPortRequestType = "ita-k" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_L PatchedWritablePowerPortRequestType = "ita-l" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_M PatchedWritablePowerPortRequestType = "ita-m" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_N PatchedWritablePowerPortRequestType = "ita-n" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_ITA_O PatchedWritablePowerPortRequestType = "ita-o" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_A PatchedWritablePowerPortRequestType = "usb-a" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_B PatchedWritablePowerPortRequestType = "usb-b" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_C PatchedWritablePowerPortRequestType = "usb-c" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortRequestType = "usb-mini-a" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortRequestType = "usb-mini-b" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortRequestType = "usb-micro-a" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortRequestType = "usb-micro-b" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortRequestType = "usb-micro-ab" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_B PatchedWritablePowerPortRequestType = "usb-3-b" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortRequestType = "usb-3-micro-b" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-1x2" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x2" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortRequestType = "molex-micro-fit-2x4" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortRequestType = "dc-terminal" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortRequestType = "saf-d-grid" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortRequestType = "neutrik-powercon-20" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortRequestType = "neutrik-powercon-32" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortRequestType = "neutrik-powercon-true1" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerPortRequestType = "neutrik-powercon-true1-top" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortRequestType = "ubiquiti-smartpower" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_HARDWIRED PatchedWritablePowerPortRequestType = "hardwired" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_OTHER PatchedWritablePowerPortRequestType = "other" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_EMPTY PatchedWritablePowerPortRequestType = "" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortRequestType = "ubiquiti-smartpower" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_HARDWIRED PatchedWritablePowerPortRequestType = "hardwired" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_OTHER PatchedWritablePowerPortRequestType = "other" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_EMPTY PatchedWritablePowerPortRequestType = "" ) // All allowed values of PatchedWritablePowerPortRequestType enum @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortRequestTypeEnumValues = []PatchedWritablePowe "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", @@ -312,3 +314,4 @@ func (v *NullablePatchedWritablePowerPortRequestType) UnmarshalJSON(src []byte) 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 6598158be9..86f6828756 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritablePowerPortTemplateRequest{} // PatchedWritablePowerPortTemplateRequest 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 PatchedWritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *PatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerPortTemplateRequestType `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"` + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ func NewPatchedWritablePowerPortTemplateRequestWithDefaults() *PatchedWritablePo } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,11 +81,10 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -97,9 +96,9 @@ func (o *PatchedWritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +107,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,11 +123,10 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritablePowerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -203,36 +201,46 @@ func (o *PatchedWritablePowerPortTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritablePowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerPortTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *PatchedWritablePowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *PatchedWritablePowerPortTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerPortTemplateRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerPortTemplateRequestType and assigns it to the Type field. func (o *PatchedWritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PatchedWritablePowerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PatchedWritablePowerPortTemplateRequest) UnsetType() { + o.Type.Unset() } // GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). @@ -267,7 +275,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) @@ -310,7 +317,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) @@ -354,7 +360,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 } @@ -375,8 +381,8 @@ func (o PatchedWritablePowerPortTemplateRequest) ToMap() (map[string]interface{} if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.MaximumDraw.IsSet() { toSerialize["maximum_draw"] = o.MaximumDraw.Get() @@ -458,3 +464,5 @@ func (v *NullablePatchedWritablePowerPortTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go index 554ee3f097..a85e757cc3 100644 --- a/model_patched_writable_power_port_template_request_type.go +++ b/model_patched_writable_power_port_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,115 +15,116 @@ import ( "fmt" ) -// PatchedWritablePowerPortTemplateRequestType * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 +// PatchedWritablePowerPortTemplateRequestType * `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-20p` - NEMA L22-20P * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 type PatchedWritablePowerPortTemplateRequestType string // List of PatchedWritablePowerPortTemplateRequest_type const ( - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c6" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c8" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c14" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c16" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c20" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c22" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-4h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-6h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-9h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-4h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-6h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-9h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-4h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-6h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-9h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-4h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-6h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-9h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortTemplateRequestType = "iec-60906-1" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-10a" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-20a" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortTemplateRequestType = "nema-1-15p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortTemplateRequestType = "nema-5-15p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortTemplateRequestType = "nema-5-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortTemplateRequestType = "nema-5-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortTemplateRequestType = "nema-5-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortTemplateRequestType = "nema-6-15p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortTemplateRequestType = "nema-6-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortTemplateRequestType = "nema-6-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortTemplateRequestType = "nema-6-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortTemplateRequestType = "nema-10-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortTemplateRequestType = "nema-10-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortTemplateRequestType = "nema-14-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortTemplateRequestType = "nema-14-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortTemplateRequestType = "nema-14-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortTemplateRequestType = "nema-14-60p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortTemplateRequestType = "nema-15-15p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortTemplateRequestType = "nema-15-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortTemplateRequestType = "nema-15-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortTemplateRequestType = "nema-15-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortTemplateRequestType = "nema-15-60p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortTemplateRequestType = "nema-l1-15p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortTemplateRequestType = "nema-l5-15p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortTemplateRequestType = "nema-l5-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortTemplateRequestType = "nema-l5-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortTemplateRequestType = "nema-l5-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortTemplateRequestType = "nema-l6-15p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortTemplateRequestType = "nema-l6-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortTemplateRequestType = "nema-l6-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortTemplateRequestType = "nema-l6-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortTemplateRequestType = "nema-l10-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortTemplateRequestType = "nema-l14-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortTemplateRequestType = "nema-l14-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortTemplateRequestType = "nema-l14-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortTemplateRequestType = "nema-l14-60p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortTemplateRequestType = "nema-l15-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortTemplateRequestType = "nema-l15-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortTemplateRequestType = "nema-l15-50p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortTemplateRequestType = "nema-l15-60p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortTemplateRequestType = "nema-l21-20p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortTemplateRequestType = "nema-l21-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8165C PatchedWritablePowerPortTemplateRequestType = "cs8165c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8265C PatchedWritablePowerPortTemplateRequestType = "cs8265c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8365C PatchedWritablePowerPortTemplateRequestType = "cs8365c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8465C PatchedWritablePowerPortTemplateRequestType = "cs8465c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_C PatchedWritablePowerPortTemplateRequestType = "ita-c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerPortTemplateRequestType = "ita-e" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerPortTemplateRequestType = "ita-f" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_EF PatchedWritablePowerPortTemplateRequestType = "ita-ef" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerPortTemplateRequestType = "ita-g" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerPortTemplateRequestType = "ita-h" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerPortTemplateRequestType = "ita-i" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerPortTemplateRequestType = "ita-j" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerPortTemplateRequestType = "ita-k" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerPortTemplateRequestType = "ita-l" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerPortTemplateRequestType = "ita-m" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerPortTemplateRequestType = "ita-n" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerPortTemplateRequestType = "ita-o" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerPortTemplateRequestType = "usb-a" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritablePowerPortTemplateRequestType = "usb-b" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerPortTemplateRequestType = "usb-c" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortTemplateRequestType = "usb-mini-a" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortTemplateRequestType = "usb-mini-b" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortTemplateRequestType = "usb-micro-a" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-micro-b" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortTemplateRequestType = "usb-micro-ab" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_B PatchedWritablePowerPortTemplateRequestType = "usb-3-b" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-3-micro-b" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-1x2" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x2" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x4" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortTemplateRequestType = "dc-terminal" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortTemplateRequestType = "saf-d-grid" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-20" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-32" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C6 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c6" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C8 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c8" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C14 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c14" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C16 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c16" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C20 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c20" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60320_C22 PatchedWritablePowerPortTemplateRequestType = "iec-60320-c22" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-4h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-6h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-p-n-e-9h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-4h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-6h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_2P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-2p-e-9h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-4h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-6h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-e-9h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_4H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-4h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_6H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-6h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60309_3P_N_E_9H PatchedWritablePowerPortTemplateRequestType = "iec-60309-3p-n-e-9h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_IEC_60906_1 PatchedWritablePowerPortTemplateRequestType = "iec-60906-1" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_10A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-10a" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NBR_14136_20A PatchedWritablePowerPortTemplateRequestType = "nbr-14136-20a" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_1_15P PatchedWritablePowerPortTemplateRequestType = "nema-1-15p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_15P PatchedWritablePowerPortTemplateRequestType = "nema-5-15p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_20P PatchedWritablePowerPortTemplateRequestType = "nema-5-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_30P PatchedWritablePowerPortTemplateRequestType = "nema-5-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_5_50P PatchedWritablePowerPortTemplateRequestType = "nema-5-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_15P PatchedWritablePowerPortTemplateRequestType = "nema-6-15p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_20P PatchedWritablePowerPortTemplateRequestType = "nema-6-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_30P PatchedWritablePowerPortTemplateRequestType = "nema-6-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_6_50P PatchedWritablePowerPortTemplateRequestType = "nema-6-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_30P PatchedWritablePowerPortTemplateRequestType = "nema-10-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_10_50P PatchedWritablePowerPortTemplateRequestType = "nema-10-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_20P PatchedWritablePowerPortTemplateRequestType = "nema-14-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_30P PatchedWritablePowerPortTemplateRequestType = "nema-14-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_50P PatchedWritablePowerPortTemplateRequestType = "nema-14-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_14_60P PatchedWritablePowerPortTemplateRequestType = "nema-14-60p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_15P PatchedWritablePowerPortTemplateRequestType = "nema-15-15p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_20P PatchedWritablePowerPortTemplateRequestType = "nema-15-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_30P PatchedWritablePowerPortTemplateRequestType = "nema-15-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_50P PatchedWritablePowerPortTemplateRequestType = "nema-15-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_15_60P PatchedWritablePowerPortTemplateRequestType = "nema-15-60p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L1_15P PatchedWritablePowerPortTemplateRequestType = "nema-l1-15p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_15P PatchedWritablePowerPortTemplateRequestType = "nema-l5-15p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_20P PatchedWritablePowerPortTemplateRequestType = "nema-l5-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_30P PatchedWritablePowerPortTemplateRequestType = "nema-l5-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L5_50P PatchedWritablePowerPortTemplateRequestType = "nema-l5-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_15P PatchedWritablePowerPortTemplateRequestType = "nema-l6-15p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_20P PatchedWritablePowerPortTemplateRequestType = "nema-l6-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_30P PatchedWritablePowerPortTemplateRequestType = "nema-l6-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L6_50P PatchedWritablePowerPortTemplateRequestType = "nema-l6-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L10_30P PatchedWritablePowerPortTemplateRequestType = "nema-l10-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_20P PatchedWritablePowerPortTemplateRequestType = "nema-l14-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_30P PatchedWritablePowerPortTemplateRequestType = "nema-l14-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_50P PatchedWritablePowerPortTemplateRequestType = "nema-l14-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L14_60P PatchedWritablePowerPortTemplateRequestType = "nema-l14-60p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_20P PatchedWritablePowerPortTemplateRequestType = "nema-l15-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_30P PatchedWritablePowerPortTemplateRequestType = "nema-l15-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_50P PatchedWritablePowerPortTemplateRequestType = "nema-l15-50p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortTemplateRequestType = "nema-l15-60p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortTemplateRequestType = "nema-l21-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortTemplateRequestType = "nema-l21-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortTemplateRequestType = "nema-l22-20p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8165C PatchedWritablePowerPortTemplateRequestType = "cs8165c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8265C PatchedWritablePowerPortTemplateRequestType = "cs8265c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8365C PatchedWritablePowerPortTemplateRequestType = "cs8365c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS8465C PatchedWritablePowerPortTemplateRequestType = "cs8465c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_C PatchedWritablePowerPortTemplateRequestType = "ita-c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_E PatchedWritablePowerPortTemplateRequestType = "ita-e" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_F PatchedWritablePowerPortTemplateRequestType = "ita-f" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_EF PatchedWritablePowerPortTemplateRequestType = "ita-ef" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_G PatchedWritablePowerPortTemplateRequestType = "ita-g" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_H PatchedWritablePowerPortTemplateRequestType = "ita-h" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_I PatchedWritablePowerPortTemplateRequestType = "ita-i" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_J PatchedWritablePowerPortTemplateRequestType = "ita-j" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_K PatchedWritablePowerPortTemplateRequestType = "ita-k" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_L PatchedWritablePowerPortTemplateRequestType = "ita-l" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_M PatchedWritablePowerPortTemplateRequestType = "ita-m" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_N PatchedWritablePowerPortTemplateRequestType = "ita-n" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_ITA_O PatchedWritablePowerPortTemplateRequestType = "ita-o" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_A PatchedWritablePowerPortTemplateRequestType = "usb-a" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_B PatchedWritablePowerPortTemplateRequestType = "usb-b" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_C PatchedWritablePowerPortTemplateRequestType = "usb-c" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_A PatchedWritablePowerPortTemplateRequestType = "usb-mini-a" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MINI_B PatchedWritablePowerPortTemplateRequestType = "usb-mini-b" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_A PatchedWritablePowerPortTemplateRequestType = "usb-micro-a" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-micro-b" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_MICRO_AB PatchedWritablePowerPortTemplateRequestType = "usb-micro-ab" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_B PatchedWritablePowerPortTemplateRequestType = "usb-3-b" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_USB_3_MICRO_B PatchedWritablePowerPortTemplateRequestType = "usb-3-micro-b" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-1x2" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x2" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerPortTemplateRequestType = "molex-micro-fit-2x4" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerPortTemplateRequestType = "dc-terminal" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerPortTemplateRequestType = "saf-d-grid" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-20" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_32 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-32" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PatchedWritablePowerPortTemplateRequestType = "neutrik-powercon-true1-top" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortTemplateRequestType = "ubiquiti-smartpower" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerPortTemplateRequestType = "hardwired" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerPortTemplateRequestType = "other" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerPortTemplateRequestType = "" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_UBIQUITI_SMARTPOWER PatchedWritablePowerPortTemplateRequestType = "ubiquiti-smartpower" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_HARDWIRED PatchedWritablePowerPortTemplateRequestType = "hardwired" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_OTHER PatchedWritablePowerPortTemplateRequestType = "other" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_EMPTY PatchedWritablePowerPortTemplateRequestType = "" ) // All allowed values of PatchedWritablePowerPortTemplateRequestType enum @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues = []PatchedWrit "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", @@ -312,3 +314,4 @@ func (v *NullablePatchedWritablePowerPortTemplateRequestType) UnmarshalJSON(src 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 4f5dc38b73..59598bd382 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,22 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{} // PatchedWritablePrefixRequest Adds support for custom fields and tags. type PatchedWritablePrefixRequest struct { - Prefix *string `json:"prefix,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Prefix *string `json:"prefix,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully 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{} } @@ -88,96 +89,136 @@ func (o *PatchedWritablePrefixRequest) SetPrefix(v string) { o.Prefix = &v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRFRequest return ret } - return *o.Site.Get() + return *o.Vrf.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetVrfOk returns a tuple with the Vrf 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 *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.Vrf.Get(), o.Vrf.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *PatchedWritablePrefixRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasVrf returns a boolean if a field has been set. +func (o *PatchedWritablePrefixRequest) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest) { - o.Site.Set(&v) +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest) { + o.Vrf.Set(&v) } - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *PatchedWritablePrefixRequest) SetSiteNil() { - o.Site.Set(nil) +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *PatchedWritablePrefixRequest) SetVrfNil() { + o.Vrf.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *PatchedWritablePrefixRequest) UnsetSite() { - o.Site.Unset() +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *PatchedWritablePrefixRequest) UnsetVrf() { + o.Vrf.Unset() } -// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { - if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritablePrefixRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string return ret } - return *o.Vrf.Get() + return *o.ScopeType.Get() } -// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// GetScopeTypeOk returns a tuple with the ScopeType 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 *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetScopeTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Vrf.Get(), o.Vrf.IsSet() + return o.ScopeType.Get(), o.ScopeType.IsSet() } -// HasVrf returns a boolean if a field has been set. -func (o *PatchedWritablePrefixRequest) HasVrf() bool { - if o != nil && o.Vrf.IsSet() { +// HasScopeType returns a boolean if a field has been set. +func (o *PatchedWritablePrefixRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { return true } return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest) { - o.Vrf.Set(&v) +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *PatchedWritablePrefixRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *PatchedWritablePrefixRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) } -// SetVrfNil sets the value for Vrf to be an explicit nil -func (o *PatchedWritablePrefixRequest) SetVrfNil() { - o.Vrf.Set(nil) +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *PatchedWritablePrefixRequest) UnsetScopeType() { + o.ScopeType.Unset() } -// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -func (o *PatchedWritablePrefixRequest) UnsetVrf() { - o.Vrf.Unset() +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritablePrefixRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *PatchedWritablePrefixRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *PatchedWritablePrefixRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *PatchedWritablePrefixRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *PatchedWritablePrefixRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *PatchedWritablePrefixRequest) UnsetScopeId() { + o.ScopeId.Unset() } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -186,7 +227,7 @@ func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { // 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 *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -202,11 +243,10 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritablePrefixRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -218,9 +258,9 @@ func (o *PatchedWritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { +func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -229,7 +269,7 @@ func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan 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 *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -245,11 +285,10 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *PatchedWritablePrefixRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -293,9 +332,9 @@ func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestS } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { +func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -304,7 +343,7 @@ func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -320,11 +359,10 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritablePrefixRequest) SetRoleNil() { o.Role.Set(nil) @@ -528,7 +566,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 } @@ -540,12 +578,15 @@ func (o PatchedWritablePrefixRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Prefix) { toSerialize["prefix"] = o.Prefix } - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -599,8 +640,9 @@ func (o *PatchedWritablePrefixRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "prefix") - delete(additionalProperties, "site") delete(additionalProperties, "vrf") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "tenant") delete(additionalProperties, "vlan") delete(additionalProperties, "status") @@ -652,3 +694,5 @@ func (v *NullablePatchedWritablePrefixRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go index ecbeb236f0..da83727b12 100644 --- a/model_patched_writable_prefix_request_status.go +++ b/model_patched_writable_prefix_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PatchedWritablePrefixRequestStatus string // List of PatchedWritablePrefixRequest_status const ( - PATCHEDWRITABLEPREFIXREQUESTSTATUS_CONTAINER PatchedWritablePrefixRequestStatus = "container" - PATCHEDWRITABLEPREFIXREQUESTSTATUS_ACTIVE PatchedWritablePrefixRequestStatus = "active" - PATCHEDWRITABLEPREFIXREQUESTSTATUS_RESERVED PatchedWritablePrefixRequestStatus = "reserved" + PATCHEDWRITABLEPREFIXREQUESTSTATUS_CONTAINER PatchedWritablePrefixRequestStatus = "container" + PATCHEDWRITABLEPREFIXREQUESTSTATUS_ACTIVE PatchedWritablePrefixRequestStatus = "active" + PATCHEDWRITABLEPREFIXREQUESTSTATUS_RESERVED PatchedWritablePrefixRequestStatus = "reserved" PATCHEDWRITABLEPREFIXREQUESTSTATUS_DEPRECATED PatchedWritablePrefixRequestStatus = "deprecated" ) @@ -112,3 +112,4 @@ func (v *NullablePatchedWritablePrefixRequestStatus) UnmarshalJSON(src []byte) e 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 2b21e78d46..c556220c3f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,39 +19,41 @@ var _ MappedNullable = &PatchedWritableRackRequest{} // PatchedWritableRackRequest Adds support for custom fields and tags. type PatchedWritableRackRequest struct { - Name *string `json:"name,omitempty"` - FacilityId NullableString `json:"facility_id,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` + Name *string `json:"name,omitempty"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack - StartingUnit *int32 `json:"starting_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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 *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullablePatchedWritableRackRequestOuterUnit `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"` + Airflow NullablePatchedWritableRackRequestAirflow `json:"airflow,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{} } @@ -138,7 +140,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) @@ -150,9 +151,9 @@ func (o *PatchedWritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetSite() SiteRequest { +func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -160,7 +161,7 @@ func (o *PatchedWritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -176,15 +177,15 @@ func (o *PatchedWritableRackRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableRackRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { +func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -193,7 +194,7 @@ func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location 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 *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -209,11 +210,10 @@ func (o *PatchedWritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PatchedWritableRackRequest) SetLocationNil() { o.Location.Set(nil) @@ -225,9 +225,9 @@ func (o *PatchedWritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { +func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -236,7 +236,7 @@ func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { // 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 *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -252,11 +252,10 @@ func (o *PatchedWritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableRackRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -300,9 +299,9 @@ func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { +func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -311,7 +310,7 @@ func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role 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 *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -327,11 +326,10 @@ func (o *PatchedWritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableRackRequest) SetRoleNil() { o.Role.Set(nil) @@ -406,7 +404,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) @@ -417,36 +414,88 @@ func (o *PatchedWritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest return ret } - return *o.Type + return *o.RackType.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.RackType.Get(), o.RackType.IsSet() } -// HasType returns a boolean if a field has been set. -func (o *PatchedWritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasRackType returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *PatchedWritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor 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 *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullablePatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *PatchedWritableRackRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetFormFactor() { + o.FormFactor.Unset() } // GetWidth returns the Width field value if set, zero value otherwise. @@ -577,7 +626,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) @@ -620,7 +668,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) @@ -631,36 +678,46 @@ func (o *PatchedWritableRackRequest) UnsetMaxWeight() { o.MaxWeight.Unset() } -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit return ret } - return *o.WeightUnit + return *o.WeightUnit.Get() } // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { - if o == nil || IsNil(o.WeightUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { return nil, false } - return o.WeightUnit, true + return o.WeightUnit.Get(), o.WeightUnit.IsSet() } // HasWeightUnit returns a boolean if a field has been set. func (o *PatchedWritableRackRequest) HasWeightUnit() bool { - if o != nil && !IsNil(o.WeightUnit) { + if o != nil && o.WeightUnit.IsSet() { return true } return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { - o.WeightUnit = &v +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *PatchedWritableRackRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() } // GetDescUnits returns the DescUnits field value if set, zero value otherwise. @@ -727,7 +784,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) @@ -770,7 +826,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) @@ -781,36 +836,46 @@ func (o *PatchedWritableRackRequest) UnsetOuterDepth() { o.OuterDepth.Unset() } -// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise. +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableRackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { - if o == nil || IsNil(o.OuterUnit) { + if o == nil || IsNil(o.OuterUnit.Get()) { var ret PatchedWritableRackRequestOuterUnit return ret } - return *o.OuterUnit + return *o.OuterUnit.Get() } // GetOuterUnitOk returns a tuple with the OuterUnit 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 *PatchedWritableRackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { - if o == nil || IsNil(o.OuterUnit) { + if o == nil { return nil, false } - return o.OuterUnit, true + return o.OuterUnit.Get(), o.OuterUnit.IsSet() } // HasOuterUnit returns a boolean if a field has been set. func (o *PatchedWritableRackRequest) HasOuterUnit() bool { - if o != nil && !IsNil(o.OuterUnit) { + if o != nil && o.OuterUnit.IsSet() { return true } return false } -// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +// SetOuterUnit gets a reference to the given NullablePatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. func (o *PatchedWritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { - o.OuterUnit = &v + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *PatchedWritableRackRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() } // GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). @@ -845,7 +910,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) @@ -856,6 +920,48 @@ func (o *PatchedWritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullablePatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *PatchedWritableRackRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetAirflow() { + o.Airflow.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -985,7 +1091,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 } @@ -1021,8 +1127,11 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1039,8 +1148,8 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MaxWeight.IsSet() { toSerialize["max_weight"] = o.MaxWeight.Get() } - if !IsNil(o.WeightUnit) { - toSerialize["weight_unit"] = o.WeightUnit + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() } if !IsNil(o.DescUnits) { toSerialize["desc_units"] = o.DescUnits @@ -1051,12 +1160,15 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.OuterDepth.IsSet() { toSerialize["outer_depth"] = o.OuterDepth.Get() } - if !IsNil(o.OuterUnit) { - toSerialize["outer_unit"] = o.OuterUnit + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() } if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1100,7 +1212,8 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1112,6 +1225,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -1157,3 +1271,5 @@ func (v *NullablePatchedWritableRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_rack_request_airflow.go b/model_patched_writable_rack_request_airflow.go new file mode 100644 index 0000000000..cdc90c214c --- /dev/null +++ b/model_patched_writable_rack_request_airflow.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackRequestAirflow * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +type PatchedWritableRackRequestAirflow string + +// List of PatchedWritableRackRequest_airflow +const ( + PATCHEDWRITABLERACKREQUESTAIRFLOW_FRONT_TO_REAR PatchedWritableRackRequestAirflow = "front-to-rear" + PATCHEDWRITABLERACKREQUESTAIRFLOW_REAR_TO_FRONT PatchedWritableRackRequestAirflow = "rear-to-front" + PATCHEDWRITABLERACKREQUESTAIRFLOW_EMPTY PatchedWritableRackRequestAirflow = "" +) + +// All allowed values of PatchedWritableRackRequestAirflow enum +var AllowedPatchedWritableRackRequestAirflowEnumValues = []PatchedWritableRackRequestAirflow{ + "front-to-rear", + "rear-to-front", + "", +} + +func (v *PatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackRequestAirflow(value) + for _, existing := range AllowedPatchedWritableRackRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestAirflow", value) +} + +// NewPatchedWritableRackRequestAirflowFromValue returns a pointer to a valid PatchedWritableRackRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackRequestAirflowFromValue(v string) (*PatchedWritableRackRequestAirflow, error) { + ev := PatchedWritableRackRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestAirflow: valid values are %v", v, AllowedPatchedWritableRackRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackRequestAirflow) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackRequest_airflow value +func (v PatchedWritableRackRequestAirflow) Ptr() *PatchedWritableRackRequestAirflow { + return &v +} + +type NullablePatchedWritableRackRequestAirflow struct { + value *PatchedWritableRackRequestAirflow + isSet bool +} + +func (v NullablePatchedWritableRackRequestAirflow) Get() *PatchedWritableRackRequestAirflow { + return v.value +} + +func (v *NullablePatchedWritableRackRequestAirflow) Set(val *PatchedWritableRackRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackRequestAirflow(val *PatchedWritableRackRequestAirflow) *NullablePatchedWritableRackRequestAirflow { + return &NullablePatchedWritableRackRequestAirflow{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_patched_writable_rack_request_form_factor.go b/model_patched_writable_rack_request_form_factor.go new file mode 100644 index 0000000000..764ea11a6d --- /dev/null +++ b/model_patched_writable_rack_request_form_factor.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackRequestFormFactor * `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) +type PatchedWritableRackRequestFormFactor string + +// List of PatchedWritableRackRequest_form_factor +const ( + PATCHEDWRITABLERACKREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackRequestFormFactor = "wall-cabinet-vertical" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_EMPTY PatchedWritableRackRequestFormFactor = "" +) + +// All allowed values of PatchedWritableRackRequestFormFactor enum +var AllowedPatchedWritableRackRequestFormFactorEnumValues = []PatchedWritableRackRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", + "", +} + +func (v *PatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackRequestFormFactor(value) + for _, existing := range AllowedPatchedWritableRackRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestFormFactor", value) +} + +// NewPatchedWritableRackRequestFormFactorFromValue returns a pointer to a valid PatchedWritableRackRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackRequestFormFactorFromValue(v string) (*PatchedWritableRackRequestFormFactor, error) { + ev := PatchedWritableRackRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestFormFactor: valid values are %v", v, AllowedPatchedWritableRackRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackRequestFormFactor) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackRequest_form_factor value +func (v PatchedWritableRackRequestFormFactor) Ptr() *PatchedWritableRackRequestFormFactor { + return &v +} + +type NullablePatchedWritableRackRequestFormFactor struct { + value *PatchedWritableRackRequestFormFactor + isSet bool +} + +func (v NullablePatchedWritableRackRequestFormFactor) Get() *PatchedWritableRackRequestFormFactor { + return v.value +} + +func (v *NullablePatchedWritableRackRequestFormFactor) Set(val *PatchedWritableRackRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackRequestFormFactor(val *PatchedWritableRackRequestFormFactor) *NullablePatchedWritableRackRequestFormFactor { + return &NullablePatchedWritableRackRequestFormFactor{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go index 21a86adeda..94a7da9f33 100644 --- a/model_patched_writable_rack_request_outer_unit.go +++ b/model_patched_writable_rack_request_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type PatchedWritableRackRequestOuterUnit string // List of PatchedWritableRackRequest_outer_unit const ( - PATCHEDWRITABLERACKREQUESTOUTERUNIT_MM PatchedWritableRackRequestOuterUnit = "mm" - PATCHEDWRITABLERACKREQUESTOUTERUNIT_IN PatchedWritableRackRequestOuterUnit = "in" + PATCHEDWRITABLERACKREQUESTOUTERUNIT_MM PatchedWritableRackRequestOuterUnit = "mm" + PATCHEDWRITABLERACKREQUESTOUTERUNIT_IN PatchedWritableRackRequestOuterUnit = "in" PATCHEDWRITABLERACKREQUESTOUTERUNIT_EMPTY PatchedWritableRackRequestOuterUnit = "" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableRackRequestOuterUnit) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_rack_request_status.go b/model_patched_writable_rack_request_status.go index 9dc9df3293..21396ea06d 100644 --- a/model_patched_writable_rack_request_status.go +++ b/model_patched_writable_rack_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ type PatchedWritableRackRequestStatus string // List of PatchedWritableRackRequest_status const ( - PATCHEDWRITABLERACKREQUESTSTATUS_RESERVED PatchedWritableRackRequestStatus = "reserved" - PATCHEDWRITABLERACKREQUESTSTATUS_AVAILABLE PatchedWritableRackRequestStatus = "available" - PATCHEDWRITABLERACKREQUESTSTATUS_PLANNED PatchedWritableRackRequestStatus = "planned" - PATCHEDWRITABLERACKREQUESTSTATUS_ACTIVE PatchedWritableRackRequestStatus = "active" + PATCHEDWRITABLERACKREQUESTSTATUS_RESERVED PatchedWritableRackRequestStatus = "reserved" + PATCHEDWRITABLERACKREQUESTSTATUS_AVAILABLE PatchedWritableRackRequestStatus = "available" + PATCHEDWRITABLERACKREQUESTSTATUS_PLANNED PatchedWritableRackRequestStatus = "planned" + PATCHEDWRITABLERACKREQUESTSTATUS_ACTIVE PatchedWritableRackRequestStatus = "active" PATCHEDWRITABLERACKREQUESTSTATUS_DEPRECATED PatchedWritableRackRequestStatus = "deprecated" ) @@ -114,3 +114,4 @@ func (v *NullablePatchedWritableRackRequestStatus) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_rack_request_type.go b/model_patched_writable_rack_request_type.go deleted file mode 100644 index 2e9301b3c3..0000000000 --- a/model_patched_writable_rack_request_type.go +++ /dev/null @@ -1,122 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PatchedWritableRackRequestType * `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) -type PatchedWritableRackRequestType string - -// List of PatchedWritableRackRequest_type -const ( - PATCHEDWRITABLERACKREQUESTTYPE__2_POST_FRAME PatchedWritableRackRequestType = "2-post-frame" - PATCHEDWRITABLERACKREQUESTTYPE__4_POST_FRAME PatchedWritableRackRequestType = "4-post-frame" - PATCHEDWRITABLERACKREQUESTTYPE__4_POST_CABINET PatchedWritableRackRequestType = "4-post-cabinet" - PATCHEDWRITABLERACKREQUESTTYPE_WALL_FRAME PatchedWritableRackRequestType = "wall-frame" - PATCHEDWRITABLERACKREQUESTTYPE_WALL_FRAME_VERTICAL PatchedWritableRackRequestType = "wall-frame-vertical" - PATCHEDWRITABLERACKREQUESTTYPE_WALL_CABINET PatchedWritableRackRequestType = "wall-cabinet" - PATCHEDWRITABLERACKREQUESTTYPE_WALL_CABINET_VERTICAL PatchedWritableRackRequestType = "wall-cabinet-vertical" - PATCHEDWRITABLERACKREQUESTTYPE_EMPTY PatchedWritableRackRequestType = "" -) - -// All allowed values of PatchedWritableRackRequestType enum -var AllowedPatchedWritableRackRequestTypeEnumValues = []PatchedWritableRackRequestType{ - "2-post-frame", - "4-post-frame", - "4-post-cabinet", - "wall-frame", - "wall-frame-vertical", - "wall-cabinet", - "wall-cabinet-vertical", - "", -} - -func (v *PatchedWritableRackRequestType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PatchedWritableRackRequestType(value) - for _, existing := range AllowedPatchedWritableRackRequestTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestType", value) -} - -// NewPatchedWritableRackRequestTypeFromValue returns a pointer to a valid PatchedWritableRackRequestType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPatchedWritableRackRequestTypeFromValue(v string) (*PatchedWritableRackRequestType, error) { - ev := PatchedWritableRackRequestType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestType: valid values are %v", v, AllowedPatchedWritableRackRequestTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PatchedWritableRackRequestType) IsValid() bool { - for _, existing := range AllowedPatchedWritableRackRequestTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PatchedWritableRackRequest_type value -func (v PatchedWritableRackRequestType) Ptr() *PatchedWritableRackRequestType { - return &v -} - -type NullablePatchedWritableRackRequestType struct { - value *PatchedWritableRackRequestType - isSet bool -} - -func (v NullablePatchedWritableRackRequestType) Get() *PatchedWritableRackRequestType { - return v.value -} - -func (v *NullablePatchedWritableRackRequestType) Set(val *PatchedWritableRackRequestType) { - v.value = val - v.isSet = true -} - -func (v NullablePatchedWritableRackRequestType) IsSet() bool { - return v.isSet -} - -func (v *NullablePatchedWritableRackRequestType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePatchedWritableRackRequestType(val *PatchedWritableRackRequestType) *NullablePatchedWritableRackRequestType { - return &NullablePatchedWritableRackRequestType{value: val, isSet: true} -} - -func (v NullablePatchedWritableRackRequestType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePatchedWritableRackRequestType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go index 19908dc01e..33ca6c8e6a 100644 --- a/model_patched_writable_rack_request_width.go +++ b/model_patched_writable_rack_request_width.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -112,3 +112,4 @@ func (v *NullablePatchedWritableRackRequestWidth) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_rack_type_request.go b/model_patched_writable_rack_type_request.go new file mode 100644 index 0000000000..b76c32eefd --- /dev/null +++ b/model_patched_writable_rack_type_request.go @@ -0,0 +1,898 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableRackTypeRequest{} + +// PatchedWritableRackTypeRequest Adds support for custom fields and tags. +type PatchedWritableRackTypeRequest struct { + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + FormFactor *PatchedWritableRackTypeRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_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 NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_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"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableRackTypeRequest PatchedWritableRackTypeRequest + +// NewPatchedWritableRackTypeRequest instantiates a new PatchedWritableRackTypeRequest 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 NewPatchedWritableRackTypeRequest() *PatchedWritableRackTypeRequest { + this := PatchedWritableRackTypeRequest{} + return &this +} + +// NewPatchedWritableRackTypeRequestWithDefaults instantiates a new PatchedWritableRackTypeRequest 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 NewPatchedWritableRackTypeRequestWithDefaults() *PatchedWritableRackTypeRequest { + this := PatchedWritableRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil || IsNil(o.Manufacturer) { + return nil, false + } + return o.Manufacturer, true +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasManufacturer() bool { + if o != nil && !IsNil(o.Manufacturer) { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = &v +} + +// GetModel returns the Model field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetModel() string { + if o == nil || IsNil(o.Model) { + var ret string + return ret + } + return *o.Model +} + +// GetModelOk returns a tuple with the Model field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil || IsNil(o.Model) { + return nil, false + } + return o.Model, true +} + +// HasModel returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasModel() bool { + if o != nil && !IsNil(o.Model) { + return true + } + + return false +} + +// SetModel gets a reference to the given string and assigns it to the Model field. +func (o *PatchedWritableRackTypeRequest) SetModel(v string) { + o.Model = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PatchedWritableRackTypeRequest) SetSlug(v string) { + o.Slug = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackTypeRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { + return nil, false + } + return o.FormFactor, true +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given PatchedWritableRackTypeRequestFormFactor and assigns it to the FormFactor field. +func (o *PatchedWritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor) { + o.FormFactor = &v +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth { + if o == nil || IsNil(o.Width) { + var ret PatchedWritableRackRequestWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field. +func (o *PatchedWritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *PatchedWritableRackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *PatchedWritableRackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth 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 *PatchedWritableRackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth 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 *PatchedWritableRackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit 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 *PatchedWritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullablePatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *PatchedWritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *PatchedWritableRackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *PatchedWritableRackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight 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 *PatchedWritableRackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *PatchedWritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *PatchedWritableRackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth 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 *PatchedWritableRackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableRackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) 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 *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Manufacturer) { + toSerialize["manufacturer"] = o.Manufacturer + } + if !IsNil(o.Model) { + toSerialize["model"] = o.Model + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableRackTypeRequest := _PatchedWritableRackTypeRequest{} + + err = json.Unmarshal(data, &varPatchedWritableRackTypeRequest) + + if err != nil { + return err + } + + *o = PatchedWritableRackTypeRequest(varPatchedWritableRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableRackTypeRequest struct { + value *PatchedWritableRackTypeRequest + isSet bool +} + +func (v NullablePatchedWritableRackTypeRequest) Get() *PatchedWritableRackTypeRequest { + return v.value +} + +func (v *NullablePatchedWritableRackTypeRequest) Set(val *PatchedWritableRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackTypeRequest(val *PatchedWritableRackTypeRequest) *NullablePatchedWritableRackTypeRequest { + return &NullablePatchedWritableRackTypeRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_writable_rack_type_request_form_factor.go b/model_patched_writable_rack_type_request_form_factor.go new file mode 100644 index 0000000000..b3a3784335 --- /dev/null +++ b/model_patched_writable_rack_type_request_form_factor.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackTypeRequestFormFactor * `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) +type PatchedWritableRackTypeRequestFormFactor string + +// List of PatchedWritableRackTypeRequest_form_factor +const ( + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackTypeRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackTypeRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackTypeRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-cabinet-vertical" +) + +// All allowed values of PatchedWritableRackTypeRequestFormFactor enum +var AllowedPatchedWritableRackTypeRequestFormFactorEnumValues = []PatchedWritableRackTypeRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", +} + +func (v *PatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackTypeRequestFormFactor(value) + for _, existing := range AllowedPatchedWritableRackTypeRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackTypeRequestFormFactor", value) +} + +// NewPatchedWritableRackTypeRequestFormFactorFromValue returns a pointer to a valid PatchedWritableRackTypeRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackTypeRequestFormFactorFromValue(v string) (*PatchedWritableRackTypeRequestFormFactor, error) { + ev := PatchedWritableRackTypeRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackTypeRequestFormFactor: valid values are %v", v, AllowedPatchedWritableRackTypeRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackTypeRequestFormFactor) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackTypeRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackTypeRequest_form_factor value +func (v PatchedWritableRackTypeRequestFormFactor) Ptr() *PatchedWritableRackTypeRequestFormFactor { + return &v +} + +type NullablePatchedWritableRackTypeRequestFormFactor struct { + value *PatchedWritableRackTypeRequestFormFactor + isSet bool +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) Get() *PatchedWritableRackTypeRequestFormFactor { + return v.value +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) Set(val *PatchedWritableRackTypeRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackTypeRequestFormFactor(val *PatchedWritableRackTypeRequestFormFactor) *NullablePatchedWritableRackTypeRequestFormFactor { + return &NullablePatchedWritableRackTypeRequestFormFactor{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []byte) error { + 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 881056212e..ad5cdc931e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{} // PatchedWritableRearPortRequest Adds support for custom fields and tags. type PatchedWritableRearPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` // 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{} } @@ -56,9 +56,9 @@ func NewPatchedWritableRearPortRequestWithDefaults() *PatchedWritableRearPortReq } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -66,7 +66,7 @@ func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -82,15 +82,15 @@ func (o *PatchedWritableRearPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -99,7 +99,7 @@ func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -115,11 +115,10 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableRearPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -419,7 +418,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 } @@ -535,3 +534,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 5280e4ec8d..05dd24d1b7 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableRearPortTemplateRequest{} // PatchedWritableRearPortTemplateRequest 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 PatchedWritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +52,9 @@ func NewPatchedWritableRearPortTemplateRequestWithDefaults() *PatchedWritableRea } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,11 +79,10 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableRearPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -95,9 +94,9 @@ func (o *PatchedWritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +105,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeReque // GetModuleTypeOk returns a tuple with the ModuleType 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 *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,11 +121,10 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableRearPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -330,7 +328,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 } @@ -434,3 +432,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 f2deb297b8..bc97556c25 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -347,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_service_request.go b/model_patched_writable_service_request.go index 9f1abb8c1b..a48de7ce12 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableServiceRequest{} // PatchedWritableServiceRequest Adds support for custom fields and tags. type PatchedWritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports,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"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports,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{} } @@ -52,9 +52,9 @@ func NewPatchedWritableServiceRequestWithDefaults() *PatchedWritableServiceReque } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device 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 *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,11 +79,10 @@ func (o *PatchedWritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *PatchedWritableServiceRequest) SetDeviceNil() { o.Device.Set(nil) @@ -95,9 +94,9 @@ func (o *PatchedWritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -106,7 +105,7 @@ func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineReques // GetVirtualMachineOk returns a tuple with the VirtualMachine 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 *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -122,11 +121,10 @@ func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *PatchedWritableServiceRequest) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -394,7 +392,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 } @@ -506,3 +504,5 @@ func (v *NullablePatchedWritableServiceRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go index 4b7b5d491d..f04e736718 100644 --- a/model_patched_writable_service_request_protocol.go +++ b/model_patched_writable_service_request_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type PatchedWritableServiceRequestProtocol string // List of PatchedWritableServiceRequest_protocol const ( - PATCHEDWRITABLESERVICEREQUESTPROTOCOL_TCP PatchedWritableServiceRequestProtocol = "tcp" - PATCHEDWRITABLESERVICEREQUESTPROTOCOL_UDP PatchedWritableServiceRequestProtocol = "udp" + PATCHEDWRITABLESERVICEREQUESTPROTOCOL_TCP PatchedWritableServiceRequestProtocol = "tcp" + PATCHEDWRITABLESERVICEREQUESTPROTOCOL_UDP PatchedWritableServiceRequestProtocol = "udp" PATCHEDWRITABLESERVICEREQUESTPROTOCOL_SCTP PatchedWritableServiceRequestProtocol = "sctp" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableServiceRequestProtocol) UnmarshalJSON(src []byte 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 182e8786dd..4e705df08a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableServiceTemplateRequest{} // PatchedWritableServiceTemplateRequest Adds support for custom fields and tags. type PatchedWritableServiceTemplateRequest struct { - Name *string `json:"name,omitempty"` - Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports,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"` + Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports,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 *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 } @@ -373,3 +373,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 784b865675..9789f14a0f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -347,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 35523daf2d..59cc948a8f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &PatchedWritableSiteRequest{} // PatchedWritableSiteRequest Adds support for custom fields and tags. type PatchedWritableSiteRequest struct { // Full name of the site - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `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 @@ -37,11 +37,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{} } @@ -129,9 +129,9 @@ func (o *PatchedWritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,15 +155,15 @@ func (o *PatchedWritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { +func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region 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 *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -188,11 +188,10 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } - // SetRegionNil sets the value for Region to be an explicit nil func (o *PatchedWritableSiteRequest) SetRegionNil() { o.Region.Set(nil) @@ -204,9 +203,9 @@ func (o *PatchedWritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -215,7 +214,7 @@ func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group 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 *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -231,11 +230,10 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableSiteRequest) SetGroupNil() { o.Group.Set(nil) @@ -247,9 +245,9 @@ func (o *PatchedWritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { +func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -258,7 +256,7 @@ func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { // 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 *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -274,11 +272,10 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableSiteRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -353,7 +350,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) @@ -492,7 +488,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) @@ -535,7 +530,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) @@ -675,7 +669,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 } @@ -815,3 +809,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 86547508dd..25439aa62a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -347,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_tunnel_request.go b/model_patched_writable_tunnel_request.go index cac6687a18..1f2faf9f37 100644 --- a/model_patched_writable_tunnel_request.go +++ b/model_patched_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableTunnelRequest{} // PatchedWritableTunnelRequest Adds support for custom fields and tags. type PatchedWritableTunnelRequest struct { - Name *string `json:"name,omitempty"` - Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` - Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - TunnelId NullableInt64 `json:"tunnel_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"` + Name *string `json:"name,omitempty"` + Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_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{} } @@ -117,9 +117,9 @@ func (o *PatchedWritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestS } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -128,7 +128,7 @@ func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group 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 *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -144,11 +144,10 @@ func (o *PatchedWritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableTunnelRequest) SetGroupNil() { o.Group.Set(nil) @@ -192,9 +191,9 @@ func (o *PatchedWritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelR } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -203,7 +202,7 @@ func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile 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 *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -219,11 +218,10 @@ func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } - // SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil func (o *PatchedWritableTunnelRequest) SetIpsecProfileNil() { o.IpsecProfile.Set(nil) @@ -235,9 +233,9 @@ func (o *PatchedWritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { +func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -246,7 +244,7 @@ func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { // 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 *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -262,11 +260,10 @@ func (o *PatchedWritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableTunnelRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -309,7 +306,6 @@ func (o *PatchedWritableTunnelRequest) HasTunnelId() bool { func (o *PatchedWritableTunnelRequest) SetTunnelId(v int64) { o.TunnelId.Set(&v) } - // SetTunnelIdNil sets the value for TunnelId to be an explicit nil func (o *PatchedWritableTunnelRequest) SetTunnelIdNil() { o.TunnelId.Set(nil) @@ -449,7 +445,7 @@ func (o *PatchedWritableTunnelRequest) SetCustomFields(v map[string]interface{}) } func (o PatchedWritableTunnelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -565,3 +561,5 @@ func (v *NullablePatchedWritableTunnelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go index 54582c03d2..61e7855cbf 100644 --- a/model_patched_writable_tunnel_request_encapsulation.go +++ b/model_patched_writable_tunnel_request_encapsulation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,15 +15,19 @@ import ( "fmt" ) -// PatchedWritableTunnelRequestEncapsulation * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +// PatchedWritableTunnelRequestEncapsulation * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE * `wireguard` - WireGuard * `openvpn` - OpenVPN * `l2tp` - L2TP * `pptp` - PPTP type PatchedWritableTunnelRequestEncapsulation string // List of PatchedWritableTunnelRequest_encapsulation const ( PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TRANSPORT PatchedWritableTunnelRequestEncapsulation = "ipsec-transport" - PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TUNNEL PatchedWritableTunnelRequestEncapsulation = "ipsec-tunnel" - PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IP_IP PatchedWritableTunnelRequestEncapsulation = "ip-ip" - PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_GRE PatchedWritableTunnelRequestEncapsulation = "gre" + PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IPSEC_TUNNEL PatchedWritableTunnelRequestEncapsulation = "ipsec-tunnel" + PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_IP_IP PatchedWritableTunnelRequestEncapsulation = "ip-ip" + PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_GRE PatchedWritableTunnelRequestEncapsulation = "gre" + PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_WIREGUARD PatchedWritableTunnelRequestEncapsulation = "wireguard" + PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_OPENVPN PatchedWritableTunnelRequestEncapsulation = "openvpn" + PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_L2TP PatchedWritableTunnelRequestEncapsulation = "l2tp" + PATCHEDWRITABLETUNNELREQUESTENCAPSULATION_PPTP PatchedWritableTunnelRequestEncapsulation = "pptp" ) // All allowed values of PatchedWritableTunnelRequestEncapsulation enum @@ -32,6 +36,10 @@ var AllowedPatchedWritableTunnelRequestEncapsulationEnumValues = []PatchedWritab "ipsec-tunnel", "ip-ip", "gre", + "wireguard", + "openvpn", + "l2tp", + "pptp", } func (v *PatchedWritableTunnelRequestEncapsulation) UnmarshalJSON(src []byte) error { @@ -112,3 +120,4 @@ func (v *NullablePatchedWritableTunnelRequestEncapsulation) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_tunnel_request_status.go b/model_patched_writable_tunnel_request_status.go index b4b020162d..9ef91cc24f 100644 --- a/model_patched_writable_tunnel_request_status.go +++ b/model_patched_writable_tunnel_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type PatchedWritableTunnelRequestStatus string // List of PatchedWritableTunnelRequest_status const ( - PATCHEDWRITABLETUNNELREQUESTSTATUS_PLANNED PatchedWritableTunnelRequestStatus = "planned" - PATCHEDWRITABLETUNNELREQUESTSTATUS_ACTIVE PatchedWritableTunnelRequestStatus = "active" + PATCHEDWRITABLETUNNELREQUESTSTATUS_PLANNED PatchedWritableTunnelRequestStatus = "planned" + PATCHEDWRITABLETUNNELREQUESTSTATUS_ACTIVE PatchedWritableTunnelRequestStatus = "active" PATCHEDWRITABLETUNNELREQUESTSTATUS_DISABLED PatchedWritableTunnelRequestStatus = "disabled" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableTunnelRequestStatus) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go index 3619913905..fd38d97f33 100644 --- a/model_patched_writable_tunnel_termination_request.go +++ b/model_patched_writable_tunnel_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{} // PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags. type PatchedWritableTunnelTerminationRequest struct { - Tunnel *TunnelRequest `json:"tunnel,omitempty"` - Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` - TerminationType *string `json:"termination_type,omitempty"` - TerminationId NullableInt64 `json:"termination_id,omitempty"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tunnel *BriefTunnelRequest `json:"tunnel,omitempty"` + Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` + TerminationType *string `json:"termination_type,omitempty"` + TerminationId NullableInt64 `json:"termination_id,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,9 +49,9 @@ func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTu } // GetTunnel returns the Tunnel field value if set, zero value otherwise. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil || IsNil(o.Tunnel) { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } return *o.Tunnel @@ -59,7 +59,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil || IsNil(o.Tunnel) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool { return false } -// SetTunnel gets a reference to the given TunnelRequest and assigns it to the Tunnel field. -func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +// SetTunnel gets a reference to the given BriefTunnelRequest and assigns it to the Tunnel field. +func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = &v } @@ -176,7 +176,6 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTerminationId() bool { func (o *PatchedWritableTunnelTerminationRequest) SetTerminationId(v int64) { o.TerminationId.Set(&v) } - // SetTerminationIdNil sets the value for TerminationId to be an explicit nil func (o *PatchedWritableTunnelTerminationRequest) SetTerminationIdNil() { o.TerminationId.Set(nil) @@ -188,9 +187,9 @@ func (o *PatchedWritableTunnelTerminationRequest) UnsetTerminationId() { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -199,7 +198,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressReques // GetOutsideIpOk returns a tuple with the OutsideIp 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 *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -215,11 +214,10 @@ func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } - // SetOutsideIpNil sets the value for OutsideIp to be an explicit nil func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIpNil() { o.OutsideIp.Set(nil) @@ -295,7 +293,7 @@ func (o *PatchedWritableTunnelTerminationRequest) SetCustomFields(v map[string]i } func (o PatchedWritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -395,3 +393,5 @@ func (v *NullablePatchedWritableTunnelTerminationRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go index 8bc7b5eeab..bc58c70c65 100644 --- a/model_patched_writable_tunnel_termination_request_role.go +++ b/model_patched_writable_tunnel_termination_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type PatchedWritableTunnelTerminationRequestRole string // List of PatchedWritableTunnelTerminationRequest_role const ( - PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_PEER PatchedWritableTunnelTerminationRequestRole = "peer" - PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_HUB PatchedWritableTunnelTerminationRequestRole = "hub" + PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_PEER PatchedWritableTunnelTerminationRequestRole = "peer" + PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_HUB PatchedWritableTunnelTerminationRequestRole = "hub" PATCHEDWRITABLETUNNELTERMINATIONREQUESTROLE_SPOKE PatchedWritableTunnelTerminationRequestRole = "spoke" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableTunnelTerminationRequestRole) UnmarshalJSON(src 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 f160befac7..9150411688 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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 } @@ -384,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_circuit_request.go b/model_patched_writable_virtual_circuit_request.go new file mode 100644 index 0000000000..f864058186 --- /dev/null +++ b/model_patched_writable_virtual_circuit_request.go @@ -0,0 +1,509 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableVirtualCircuitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableVirtualCircuitRequest{} + +// PatchedWritableVirtualCircuitRequest Adds support for custom fields and tags. +type PatchedWritableVirtualCircuitRequest struct { + // Unique circuit ID + Cid *string `json:"cid,omitempty"` + ProviderNetwork *BriefProviderNetworkRequest `json:"provider_network,omitempty"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type *BriefVirtualCircuitTypeRequest `json:"type,omitempty"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `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{} +} + +type _PatchedWritableVirtualCircuitRequest PatchedWritableVirtualCircuitRequest + +// NewPatchedWritableVirtualCircuitRequest instantiates a new PatchedWritableVirtualCircuitRequest 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 NewPatchedWritableVirtualCircuitRequest() *PatchedWritableVirtualCircuitRequest { + this := PatchedWritableVirtualCircuitRequest{} + return &this +} + +// NewPatchedWritableVirtualCircuitRequestWithDefaults instantiates a new PatchedWritableVirtualCircuitRequest 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 NewPatchedWritableVirtualCircuitRequestWithDefaults() *PatchedWritableVirtualCircuitRequest { + this := PatchedWritableVirtualCircuitRequest{} + return &this +} + +// GetCid returns the Cid field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) GetCid() string { + if o == nil || IsNil(o.Cid) { + var ret string + return ret + } + return *o.Cid +} + +// GetCidOk returns a tuple with the Cid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualCircuitRequest) GetCidOk() (*string, bool) { + if o == nil || IsNil(o.Cid) { + return nil, false + } + return o.Cid, true +} + +// HasCid returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitRequest) HasCid() bool { + if o != nil && !IsNil(o.Cid) { + return true + } + + return false +} + +// SetCid gets a reference to the given string and assigns it to the Cid field. +func (o *PatchedWritableVirtualCircuitRequest) SetCid(v string) { + o.Cid = &v +} + +// GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest { + if o == nil || IsNil(o.ProviderNetwork) { + var ret BriefProviderNetworkRequest + return ret + } + return *o.ProviderNetwork +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { + if o == nil || IsNil(o.ProviderNetwork) { + return nil, false + } + return o.ProviderNetwork, true +} + +// HasProviderNetwork returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitRequest) HasProviderNetwork() bool { + if o != nil && !IsNil(o.ProviderNetwork) { + return true + } + + return false +} + +// SetProviderNetwork gets a reference to the given BriefProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *PatchedWritableVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { + o.ProviderNetwork = &v +} + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableVirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccountRequest + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount 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 *PatchedWritableVirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitRequest) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *PatchedWritableVirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { + o.ProviderAccount.Set(&v) +} +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *PatchedWritableVirtualCircuitRequest) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *PatchedWritableVirtualCircuitRequest) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest { + if o == nil || IsNil(o.Type) { + var ret BriefVirtualCircuitTypeRequest + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BriefVirtualCircuitTypeRequest and assigns it to the Type field. +func (o *PatchedWritableVirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest) { + o.Type = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) GetStatus() CircuitStatusValue { + if o == nil || IsNil(o.Status) { + var ret CircuitStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *PatchedWritableVirtualCircuitRequest) SetStatus(v CircuitStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableVirtualCircuitRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *PatchedWritableVirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableVirtualCircuitRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualCircuitRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *PatchedWritableVirtualCircuitRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *PatchedWritableVirtualCircuitRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualCircuitRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableVirtualCircuitRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) 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 *PatchedWritableVirtualCircuitRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedWritableVirtualCircuitRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableVirtualCircuitRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cid) { + toSerialize["cid"] = o.Cid + } + if !IsNil(o.ProviderNetwork) { + toSerialize["provider_network"] = o.ProviderNetwork + } + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableVirtualCircuitRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableVirtualCircuitRequest := _PatchedWritableVirtualCircuitRequest{} + + err = json.Unmarshal(data, &varPatchedWritableVirtualCircuitRequest) + + if err != nil { + return err + } + + *o = PatchedWritableVirtualCircuitRequest(varPatchedWritableVirtualCircuitRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cid") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableVirtualCircuitRequest struct { + value *PatchedWritableVirtualCircuitRequest + isSet bool +} + +func (v NullablePatchedWritableVirtualCircuitRequest) Get() *PatchedWritableVirtualCircuitRequest { + return v.value +} + +func (v *NullablePatchedWritableVirtualCircuitRequest) Set(val *PatchedWritableVirtualCircuitRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableVirtualCircuitRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableVirtualCircuitRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableVirtualCircuitRequest(val *PatchedWritableVirtualCircuitRequest) *NullablePatchedWritableVirtualCircuitRequest { + return &NullablePatchedWritableVirtualCircuitRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableVirtualCircuitRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableVirtualCircuitRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_writable_virtual_circuit_termination_request.go b/model_patched_writable_virtual_circuit_termination_request.go new file mode 100644 index 0000000000..0dab69c05d --- /dev/null +++ b/model_patched_writable_virtual_circuit_termination_request.go @@ -0,0 +1,340 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableVirtualCircuitTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableVirtualCircuitTerminationRequest{} + +// PatchedWritableVirtualCircuitTerminationRequest Adds support for custom fields and tags. +type PatchedWritableVirtualCircuitTerminationRequest struct { + VirtualCircuit *BriefVirtualCircuitRequest `json:"virtual_circuit,omitempty"` + Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` + Interface *BriefInterfaceRequest `json:"interface,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableVirtualCircuitTerminationRequest PatchedWritableVirtualCircuitTerminationRequest + +// NewPatchedWritableVirtualCircuitTerminationRequest instantiates a new PatchedWritableVirtualCircuitTerminationRequest 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 NewPatchedWritableVirtualCircuitTerminationRequest() *PatchedWritableVirtualCircuitTerminationRequest { + this := PatchedWritableVirtualCircuitTerminationRequest{} + return &this +} + +// NewPatchedWritableVirtualCircuitTerminationRequestWithDefaults instantiates a new PatchedWritableVirtualCircuitTerminationRequest 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 NewPatchedWritableVirtualCircuitTerminationRequestWithDefaults() *PatchedWritableVirtualCircuitTerminationRequest { + this := PatchedWritableVirtualCircuitTerminationRequest{} + return &this +} + +// GetVirtualCircuit returns the VirtualCircuit field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest { + if o == nil || IsNil(o.VirtualCircuit) { + var ret BriefVirtualCircuitRequest + return ret + } + return *o.VirtualCircuit +} + +// GetVirtualCircuitOk returns a tuple with the VirtualCircuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool) { + if o == nil || IsNil(o.VirtualCircuit) { + return nil, false + } + return o.VirtualCircuit, true +} + +// HasVirtualCircuit returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitTerminationRequest) HasVirtualCircuit() bool { + if o != nil && !IsNil(o.VirtualCircuit) { + return true + } + + return false +} + +// SetVirtualCircuit gets a reference to the given BriefVirtualCircuitRequest and assigns it to the VirtualCircuit field. +func (o *PatchedWritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest) { + o.VirtualCircuit = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole { + if o == nil || IsNil(o.Role) { + var ret PatchedWritableTunnelTerminationRequestRole + return ret + } + return *o.Role +} + +// 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 *PatchedWritableVirtualCircuitTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitTerminationRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given PatchedWritableTunnelTerminationRequestRole and assigns it to the Role field. +func (o *PatchedWritableVirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole) { + o.Role = &v +} + +// GetInterface returns the Interface field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest { + if o == nil || IsNil(o.Interface) { + var ret BriefInterfaceRequest + return ret + } + return *o.Interface +} + +// GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool) { + if o == nil || IsNil(o.Interface) { + return nil, false + } + return o.Interface, true +} + +// HasInterface returns a boolean if a field has been set. +func (o *PatchedWritableVirtualCircuitTerminationRequest) HasInterface() bool { + if o != nil && !IsNil(o.Interface) { + return true + } + + return false +} + +// SetInterface gets a reference to the given BriefInterfaceRequest and assigns it to the Interface field. +func (o *PatchedWritableVirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest) { + o.Interface = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) 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 *PatchedWritableVirtualCircuitTerminationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedWritableVirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableVirtualCircuitTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.VirtualCircuit) { + toSerialize["virtual_circuit"] = o.VirtualCircuit + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if !IsNil(o.Interface) { + toSerialize["interface"] = o.Interface + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableVirtualCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableVirtualCircuitTerminationRequest := _PatchedWritableVirtualCircuitTerminationRequest{} + + err = json.Unmarshal(data, &varPatchedWritableVirtualCircuitTerminationRequest) + + if err != nil { + return err + } + + *o = PatchedWritableVirtualCircuitTerminationRequest(varPatchedWritableVirtualCircuitTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "virtual_circuit") + delete(additionalProperties, "role") + delete(additionalProperties, "interface") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableVirtualCircuitTerminationRequest struct { + value *PatchedWritableVirtualCircuitTerminationRequest + isSet bool +} + +func (v NullablePatchedWritableVirtualCircuitTerminationRequest) Get() *PatchedWritableVirtualCircuitTerminationRequest { + return v.value +} + +func (v *NullablePatchedWritableVirtualCircuitTerminationRequest) Set(val *PatchedWritableVirtualCircuitTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableVirtualCircuitTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableVirtualCircuitTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableVirtualCircuitTerminationRequest(val *PatchedWritableVirtualCircuitTerminationRequest) *NullablePatchedWritableVirtualCircuitTerminationRequest { + return &NullablePatchedWritableVirtualCircuitTerminationRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableVirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableVirtualCircuitTerminationRequest) UnmarshalJSON(src []byte) error { + 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 34ba5129c8..a5d0081b65 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{} // PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualDeviceContextRequest struct { - Name *string `json:"name,omitempty"` - Device *DeviceRequest `json:"device,omitempty"` - Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Status *PatchedWritableVirtualDeviceContextRequestStatus `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"` + Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Identifier NullableInt32 `json:"identifier,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Status *PatchedWritableVirtualDeviceContextRequestStatus `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{} } @@ -85,9 +85,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -95,7 +95,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -111,8 +111,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -148,7 +148,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) @@ -160,9 +159,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -171,7 +170,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // 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 *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -187,11 +186,10 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -203,9 +201,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -214,7 +212,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRe // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -230,11 +228,10 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -246,9 +243,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -257,7 +254,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRe // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -273,11 +270,10 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -449,7 +445,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 } @@ -565,3 +561,5 @@ func (v *NullablePatchedWritableVirtualDeviceContextRequest) UnmarshalJSON(src [ v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go index 9bed2f9137..ca703bca4a 100644 --- a/model_patched_writable_virtual_device_context_request_status.go +++ b/model_patched_writable_virtual_device_context_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type PatchedWritableVirtualDeviceContextRequestStatus string // List of PatchedWritableVirtualDeviceContextRequest_status const ( - PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_ACTIVE PatchedWritableVirtualDeviceContextRequestStatus = "active" + PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_ACTIVE PatchedWritableVirtualDeviceContextRequestStatus = "active" PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_PLANNED PatchedWritableVirtualDeviceContextRequestStatus = "planned" PATCHEDWRITABLEVIRTUALDEVICECONTEXTREQUESTSTATUS_OFFLINE PatchedWritableVirtualDeviceContextRequestStatus = "offline" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableVirtualDeviceContextRequestStatus) UnmarshalJSON 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 e9006bf847..5ccd199a92 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,26 +19,27 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{} // PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualMachineWithConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `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"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name *string `json:"name,omitempty"` + Status *InventoryItemStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `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"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -94,9 +95,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret InventoryItemStatusValue return ret } return *o.Status @@ -104,7 +105,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() Patc // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -120,15 +121,15 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -137,7 +138,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRe // GetSiteOk returns a tuple with the Site 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -153,11 +154,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSiteNil() { o.Site.Set(nil) @@ -169,9 +169,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -180,7 +180,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() Clu // GetClusterOk returns a tuple with the Cluster 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -196,11 +196,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -212,9 +211,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -223,7 +222,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() Devi // GetDeviceOk returns a tuple with the Device 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -239,11 +238,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -254,10 +252,42 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -266,7 +296,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() Device // GetRoleOk returns a tuple with the Role 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -282,11 +312,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRoleNil() { o.Role.Set(nil) @@ -298,9 +327,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -309,7 +338,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() Tena // 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -325,11 +354,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -341,9 +369,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -352,7 +380,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() Pl // GetPlatformOk returns a tuple with the Platform 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -368,11 +396,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -384,9 +411,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPlatform() } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -395,7 +422,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -411,11 +438,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -427,9 +453,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4( } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -438,7 +464,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -454,11 +480,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { 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 +526,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 +568,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 +610,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) @@ -663,9 +685,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetComments(v st } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -674,7 +696,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplat // 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 *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -690,11 +712,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasConfigTemplat return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -803,7 +824,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 } @@ -827,6 +848,9 @@ func (o PatchedWritableVirtualMachineWithConfigContextRequest) ToMap() (map[stri if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -896,6 +920,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(da delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") @@ -951,3 +976,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 f341c24258..ac3e69c733 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,20 @@ var _ MappedNullable = &PatchedWritableVLANRequest{} // PatchedWritableVLANRequest Adds support for custom fields and tags. type PatchedWritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid *int32 `json:"vid,omitempty"` - Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `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"` + Vid *int32 `json:"vid,omitempty"` + Name *string `json:"name,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + QinqRole NullableQInQRole `json:"qinq_role,omitempty"` + QinqSvlan NullableInt32 `json:"qinq_svlan,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +56,9 @@ func NewPatchedWritableVLANRequestWithDefaults() *PatchedWritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { +func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -65,7 +67,7 @@ func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site 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 *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -81,11 +83,10 @@ func (o *PatchedWritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PatchedWritableVLANRequest) SetSiteNil() { o.Site.Set(nil) @@ -97,9 +98,9 @@ func (o *PatchedWritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -108,7 +109,7 @@ func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group 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 *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -124,11 +125,10 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableVLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -204,9 +204,9 @@ func (o *PatchedWritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { // 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 *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -231,11 +231,10 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableVLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -279,9 +278,9 @@ func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { +func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -290,7 +289,7 @@ func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -306,11 +305,10 @@ func (o *PatchedWritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableVLANRequest) SetRoleNil() { o.Role.Set(nil) @@ -353,6 +351,90 @@ func (o *PatchedWritableVLANRequest) SetDescription(v string) { o.Description = &v } +// GetQinqRole returns the QinqRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableVLANRequest) GetQinqRole() QInQRole { + if o == nil || IsNil(o.QinqRole.Get()) { + var ret QInQRole + return ret + } + return *o.QinqRole.Get() +} + +// GetQinqRoleOk returns a tuple with the QinqRole 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 *PatchedWritableVLANRequest) GetQinqRoleOk() (*QInQRole, bool) { + if o == nil { + return nil, false + } + return o.QinqRole.Get(), o.QinqRole.IsSet() +} + +// HasQinqRole returns a boolean if a field has been set. +func (o *PatchedWritableVLANRequest) HasQinqRole() bool { + if o != nil && o.QinqRole.IsSet() { + return true + } + + return false +} + +// SetQinqRole gets a reference to the given NullableQInQRole and assigns it to the QinqRole field. +func (o *PatchedWritableVLANRequest) SetQinqRole(v QInQRole) { + o.QinqRole.Set(&v) +} +// SetQinqRoleNil sets the value for QinqRole to be an explicit nil +func (o *PatchedWritableVLANRequest) SetQinqRoleNil() { + o.QinqRole.Set(nil) +} + +// UnsetQinqRole ensures that no value is present for QinqRole, not even an explicit nil +func (o *PatchedWritableVLANRequest) UnsetQinqRole() { + o.QinqRole.Unset() +} + +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableVLANRequest) GetQinqSvlan() int32 { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret int32 + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *PatchedWritableVLANRequest) GetQinqSvlanOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *PatchedWritableVLANRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableInt32 and assigns it to the QinqSvlan field. +func (o *PatchedWritableVLANRequest) SetQinqSvlan(v int32) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *PatchedWritableVLANRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *PatchedWritableVLANRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *PatchedWritableVLANRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -450,7 +532,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 } @@ -483,6 +565,12 @@ func (o PatchedWritableVLANRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.QinqRole.IsSet() { + toSerialize["qinq_role"] = o.QinqRole.Get() + } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -522,6 +610,8 @@ func (o *PatchedWritableVLANRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "status") delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "qinq_role") + delete(additionalProperties, "qinq_svlan") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -566,3 +656,5 @@ func (v *NullablePatchedWritableVLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go index 74ada78e4b..ec50a60317 100644 --- a/model_patched_writable_vlan_request_status.go +++ b/model_patched_writable_vlan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type PatchedWritableVLANRequestStatus string // List of PatchedWritableVLANRequest_status const ( - PATCHEDWRITABLEVLANREQUESTSTATUS_ACTIVE PatchedWritableVLANRequestStatus = "active" - PATCHEDWRITABLEVLANREQUESTSTATUS_RESERVED PatchedWritableVLANRequestStatus = "reserved" + PATCHEDWRITABLEVLANREQUESTSTATUS_ACTIVE PatchedWritableVLANRequestStatus = "active" + PATCHEDWRITABLEVLANREQUESTSTATUS_RESERVED PatchedWritableVLANRequestStatus = "reserved" PATCHEDWRITABLEVLANREQUESTSTATUS_DEPRECATED PatchedWritableVLANRequestStatus = "deprecated" ) @@ -110,3 +110,4 @@ func (v *NullablePatchedWritableVLANRequestStatus) UnmarshalJSON(src []byte) err 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 fd72c0f661..6a4fbb76cf 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,22 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{} // PatchedWritableVMInterfaceRequest Adds support for custom fields and tags. type PatchedWritableVMInterfaceRequest struct { - VirtualMachine *VirtualMachineRequest `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"` - Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `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"` + PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"` + Description *string `json:"description,omitempty"` + Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,9 +58,9 @@ func NewPatchedWritableVMInterfaceRequestWithDefaults() *PatchedWritableVMInterf } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -66,7 +68,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRe // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -82,8 +84,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } @@ -183,7 +185,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) @@ -226,7 +227,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) @@ -269,7 +269,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) @@ -280,47 +279,46 @@ func (o *PatchedWritableVMInterfaceRequest) UnsetMtu() { o.Mtu.Unset() } -// GetMacAddress returns the MacAddress field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetMacAddress() string { - if o == nil || IsNil(o.MacAddress.Get()) { - var ret string +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddressRequest return ret } - return *o.MacAddress.Get() + return *o.PrimaryMacAddress.Get() } -// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *PatchedWritableVMInterfaceRequest) GetMacAddressOk() (*string, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) { if o == nil { return nil, false } - return o.MacAddress.Get(), o.MacAddress.IsSet() + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() } -// HasMacAddress returns a boolean if a field has been set. -func (o *PatchedWritableVMInterfaceRequest) HasMacAddress() bool { - if o != nil && o.MacAddress.IsSet() { +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *PatchedWritableVMInterfaceRequest) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { return true } return false } -// SetMacAddress gets a reference to the given NullableString and assigns it to the MacAddress field. -func (o *PatchedWritableVMInterfaceRequest) SetMacAddress(v string) { - o.MacAddress.Set(&v) +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field. +func (o *PatchedWritableVMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) { + o.PrimaryMacAddress.Set(&v) } - -// SetMacAddressNil sets the value for MacAddress to be an explicit nil -func (o *PatchedWritableVMInterfaceRequest) SetMacAddressNil() { - o.MacAddress.Set(nil) +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *PatchedWritableVMInterfaceRequest) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) } -// UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil -func (o *PatchedWritableVMInterfaceRequest) UnsetMacAddress() { - o.MacAddress.Unset() +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *PatchedWritableVMInterfaceRequest) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -355,42 +353,52 @@ func (o *PatchedWritableVMInterfaceRequest) SetDescription(v string) { o.Description = &v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableVMInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode { - if o == nil || IsNil(o.Mode) { + if o == nil || IsNil(o.Mode.Get()) { var ret PatchedWritableInterfaceRequestMode return ret } - return *o.Mode + return *o.Mode.Get() } // GetModeOk returns a tuple with the Mode 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 *PatchedWritableVMInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true + return o.Mode.Get(), o.Mode.IsSet() } // HasMode returns a boolean if a field has been set. func (o *PatchedWritableVMInterfaceRequest) HasMode() bool { - if o != nil && !IsNil(o.Mode) { + if o != nil && o.Mode.IsSet() { return true } return false } -// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field. +// SetMode gets a reference to the given NullablePatchedWritableInterfaceRequestMode and assigns it to the Mode field. func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) { - o.Mode = &v + o.Mode.Set(&v) +} +// SetModeNil sets the value for Mode to be an explicit nil +func (o *PatchedWritableVMInterfaceRequest) SetModeNil() { + o.Mode.Set(nil) +} + +// UnsetMode ensures that no value is present for Mode, not even an explicit nil +func (o *PatchedWritableVMInterfaceRequest) UnsetMode() { + o.Mode.Unset() } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -399,7 +407,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -415,11 +423,10 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -462,10 +469,94 @@ func (o *PatchedWritableVMInterfaceRequest) SetTaggedVlans(v []int32) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLANRequest + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *PatchedWritableVMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *PatchedWritableVMInterfaceRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field. +func (o *PatchedWritableVMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *PatchedWritableVMInterfaceRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *PatchedWritableVMInterfaceRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicyRequest + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *PatchedWritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *PatchedWritableVMInterfaceRequest) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field. +func (o *PatchedWritableVMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *PatchedWritableVMInterfaceRequest) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *PatchedWritableVMInterfaceRequest) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -474,7 +565,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -490,11 +581,10 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -570,7 +660,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 } @@ -597,14 +687,14 @@ func (o PatchedWritableVMInterfaceRequest) ToMap() (map[string]interface{}, erro if o.Mtu.IsSet() { toSerialize["mtu"] = o.Mtu.Get() } - if o.MacAddress.IsSet() { - toSerialize["mac_address"] = o.MacAddress.Get() + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode + if o.Mode.IsSet() { + toSerialize["mode"] = o.Mode.Get() } if o.UntaggedVlan.IsSet() { toSerialize["untagged_vlan"] = o.UntaggedVlan.Get() @@ -612,6 +702,12 @@ func (o PatchedWritableVMInterfaceRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } @@ -649,11 +745,13 @@ func (o *PatchedWritableVMInterfaceRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "parent") delete(additionalProperties, "bridge") delete(additionalProperties, "mtu") - delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") delete(additionalProperties, "description") delete(additionalProperties, "mode") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "vrf") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -698,3 +796,5 @@ func (v *NullablePatchedWritableVMInterfaceRequest) UnmarshalJSON(src []byte) er 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 1ffc71e4c3..9828b84c96 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 } @@ -347,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 9619126116..3df526f64c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,20 @@ 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 NullableWirelessLANGroupRequest `json:"group,omitempty"` - Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `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"` + Ssid *string `json:"ssid,omitempty"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher NullableAuthenticationCipher `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{} } @@ -118,9 +120,9 @@ func (o *PatchedWritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -129,7 +131,7 @@ func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group 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 *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -145,11 +147,10 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableWirelessLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -193,9 +194,9 @@ func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessL } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -204,7 +205,7 @@ func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan 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 *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -220,11 +221,10 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *PatchedWritableWirelessLANRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -235,10 +235,94 @@ func (o *PatchedWritableWirelessLANRequest) UnsetVlan() { o.Vlan.Unset() } +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableWirelessLANRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string + return ret + } + return *o.ScopeType.Get() +} + +// GetScopeTypeOk returns a tuple with the ScopeType 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 *PatchedWritableWirelessLANRequest) GetScopeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ScopeType.Get(), o.ScopeType.IsSet() +} + +// HasScopeType returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLANRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { + return true + } + + return false +} + +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *PatchedWritableWirelessLANRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *PatchedWritableWirelessLANRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) +} + +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *PatchedWritableWirelessLANRequest) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableWirelessLANRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *PatchedWritableWirelessLANRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLANRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *PatchedWritableWirelessLANRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *PatchedWritableWirelessLANRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *PatchedWritableWirelessLANRequest) UnsetScopeId() { + o.ScopeId.Unset() +} + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -247,7 +331,7 @@ func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { // 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 *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -263,11 +347,10 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableWirelessLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -278,68 +361,88 @@ func (o *PatchedWritableWirelessLANRequest) UnsetTenant() { o.Tenant.Unset() } -// GetAuthType returns the AuthType field value if set, zero value otherwise. +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType1 { - if o == nil || IsNil(o.AuthType) { + if o == nil || IsNil(o.AuthType.Get()) { var ret AuthenticationType1 return ret } - return *o.AuthType + return *o.AuthType.Get() } // GetAuthTypeOk returns a tuple with the AuthType 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 *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { - if o == nil || IsNil(o.AuthType) { + if o == nil { return nil, false } - return o.AuthType, true + return o.AuthType.Get(), o.AuthType.IsSet() } // HasAuthType returns a boolean if a field has been set. func (o *PatchedWritableWirelessLANRequest) HasAuthType() bool { - if o != nil && !IsNil(o.AuthType) { + if o != nil && o.AuthType.IsSet() { return true } return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. +// SetAuthType gets a reference to the given NullableAuthenticationType1 and assigns it to the AuthType field. func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType1) { - o.AuthType = &v + o.AuthType.Set(&v) +} +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *PatchedWritableWirelessLANRequest) SetAuthTypeNil() { + o.AuthType.Set(nil) } -// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *PatchedWritableWirelessLANRequest) UnsetAuthType() { + o.AuthType.Unset() +} + +// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher { - if o == nil || IsNil(o.AuthCipher) { + if o == nil || IsNil(o.AuthCipher.Get()) { var ret AuthenticationCipher return ret } - return *o.AuthCipher + return *o.AuthCipher.Get() } // GetAuthCipherOk returns a tuple with the AuthCipher 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 *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { - if o == nil || IsNil(o.AuthCipher) { + if o == nil { return nil, false } - return o.AuthCipher, true + return o.AuthCipher.Get(), o.AuthCipher.IsSet() } // HasAuthCipher returns a boolean if a field has been set. func (o *PatchedWritableWirelessLANRequest) HasAuthCipher() bool { - if o != nil && !IsNil(o.AuthCipher) { + if o != nil && o.AuthCipher.IsSet() { return true } return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. +// SetAuthCipher gets a reference to the given NullableAuthenticationCipher and assigns it to the AuthCipher field. func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) { - o.AuthCipher = &v + o.AuthCipher.Set(&v) +} +// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil +func (o *PatchedWritableWirelessLANRequest) SetAuthCipherNil() { + o.AuthCipher.Set(nil) +} + +// UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil +func (o *PatchedWritableWirelessLANRequest) UnsetAuthCipher() { + o.AuthCipher.Unset() } // GetAuthPsk returns the AuthPsk field value if set, zero value otherwise. @@ -471,7 +574,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 } @@ -495,14 +598,20 @@ func (o PatchedWritableWirelessLANRequest) ToMap() (map[string]interface{}, erro if o.Vlan.IsSet() { toSerialize["vlan"] = o.Vlan.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } - if !IsNil(o.AuthType) { - toSerialize["auth_type"] = o.AuthType + if o.AuthType.IsSet() { + toSerialize["auth_type"] = o.AuthType.Get() } - if !IsNil(o.AuthCipher) { - toSerialize["auth_cipher"] = o.AuthCipher + if o.AuthCipher.IsSet() { + toSerialize["auth_cipher"] = o.AuthCipher.Get() } if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk @@ -543,6 +652,8 @@ func (o *PatchedWritableWirelessLANRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "group") delete(additionalProperties, "status") delete(additionalProperties, "vlan") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "tenant") delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") @@ -591,3 +702,5 @@ func (v *NullablePatchedWritableWirelessLANRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go index 2960171ff5..810ef662b6 100644 --- a/model_patched_writable_wireless_lan_request_status.go +++ b/model_patched_writable_wireless_lan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PatchedWritableWirelessLANRequestStatus string // List of PatchedWritableWirelessLANRequest_status const ( - PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_ACTIVE PatchedWritableWirelessLANRequestStatus = "active" - PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_RESERVED PatchedWritableWirelessLANRequestStatus = "reserved" - PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DISABLED PatchedWritableWirelessLANRequestStatus = "disabled" + PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_ACTIVE PatchedWritableWirelessLANRequestStatus = "active" + PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_RESERVED PatchedWritableWirelessLANRequestStatus = "reserved" + PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DISABLED PatchedWritableWirelessLANRequestStatus = "disabled" PATCHEDWRITABLEWIRELESSLANREQUESTSTATUS_DEPRECATED PatchedWritableWirelessLANRequestStatus = "deprecated" ) @@ -112,3 +112,4 @@ func (v *NullablePatchedWritableWirelessLANRequestStatus) UnmarshalJSON(src []by 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 53a6fee89d..868ddfb794 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,20 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{} // PatchedWritableWirelessLinkRequest Adds support for custom fields and tags. type PatchedWritableWirelessLinkRequest struct { - InterfaceA *InterfaceRequest `json:"interface_a,omitempty"` - InterfaceB *InterfaceRequest `json:"interface_b,omitempty"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `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"` + InterfaceA *BriefInterfaceRequest `json:"interface_a,omitempty"` + InterfaceB *BriefInterfaceRequest `json:"interface_b,omitempty"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_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{} } @@ -54,9 +56,9 @@ func NewPatchedWritableWirelessLinkRequestWithDefaults() *PatchedWritableWireles } // GetInterfaceA returns the InterfaceA field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceA) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceA @@ -64,7 +66,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceA) { return nil, false } @@ -80,15 +82,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceA() bool { return false } -// SetInterfaceA gets a reference to the given InterfaceRequest and assigns it to the InterfaceA field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +// SetInterfaceA gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceA field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = &v } // GetInterfaceB returns the InterfaceB field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceB) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceB @@ -96,7 +98,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceB) { return nil, false } @@ -112,8 +114,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceB() bool { return false } -// SetInterfaceB gets a reference to the given InterfaceRequest and assigns it to the InterfaceB field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +// SetInterfaceB gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceB field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = &v } @@ -150,9 +152,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -160,7 +162,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableReq // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -176,15 +178,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -193,7 +195,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { // 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 *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -209,11 +211,10 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableWirelessLinkRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -224,68 +225,88 @@ func (o *PatchedWritableWirelessLinkRequest) UnsetTenant() { o.Tenant.Unset() } -// GetAuthType returns the AuthType field value if set, zero value otherwise. +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType1 { - if o == nil || IsNil(o.AuthType) { + if o == nil || IsNil(o.AuthType.Get()) { var ret AuthenticationType1 return ret } - return *o.AuthType + return *o.AuthType.Get() } // GetAuthTypeOk returns a tuple with the AuthType 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 *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { - if o == nil || IsNil(o.AuthType) { + if o == nil { return nil, false } - return o.AuthType, true + return o.AuthType.Get(), o.AuthType.IsSet() } // HasAuthType returns a boolean if a field has been set. func (o *PatchedWritableWirelessLinkRequest) HasAuthType() bool { - if o != nil && !IsNil(o.AuthType) { + if o != nil && o.AuthType.IsSet() { return true } return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. +// SetAuthType gets a reference to the given NullableAuthenticationType1 and assigns it to the AuthType field. func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) { - o.AuthType = &v + o.AuthType.Set(&v) +} +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *PatchedWritableWirelessLinkRequest) SetAuthTypeNil() { + o.AuthType.Set(nil) } -// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *PatchedWritableWirelessLinkRequest) UnsetAuthType() { + o.AuthType.Unset() +} + +// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher { - if o == nil || IsNil(o.AuthCipher) { + if o == nil || IsNil(o.AuthCipher.Get()) { var ret AuthenticationCipher return ret } - return *o.AuthCipher + return *o.AuthCipher.Get() } // GetAuthCipherOk returns a tuple with the AuthCipher 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 *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { - if o == nil || IsNil(o.AuthCipher) { + if o == nil { return nil, false } - return o.AuthCipher, true + return o.AuthCipher.Get(), o.AuthCipher.IsSet() } // HasAuthCipher returns a boolean if a field has been set. func (o *PatchedWritableWirelessLinkRequest) HasAuthCipher() bool { - if o != nil && !IsNil(o.AuthCipher) { + if o != nil && o.AuthCipher.IsSet() { return true } return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. +// SetAuthCipher gets a reference to the given NullableAuthenticationCipher and assigns it to the AuthCipher field. func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) { - o.AuthCipher = &v + o.AuthCipher.Set(&v) +} +// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil +func (o *PatchedWritableWirelessLinkRequest) SetAuthCipherNil() { + o.AuthCipher.Set(nil) +} + +// UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil +func (o *PatchedWritableWirelessLinkRequest) UnsetAuthCipher() { + o.AuthCipher.Unset() } // GetAuthPsk returns the AuthPsk field value if set, zero value otherwise. @@ -320,6 +341,90 @@ func (o *PatchedWritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *PatchedWritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() CircuitRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *PatchedWritableWirelessLinkRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -449,7 +554,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 } @@ -473,15 +578,21 @@ func (o PatchedWritableWirelessLinkRequest) ToMap() (map[string]interface{}, err if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } - if !IsNil(o.AuthType) { - toSerialize["auth_type"] = o.AuthType + if o.AuthType.IsSet() { + toSerialize["auth_type"] = o.AuthType.Get() } - if !IsNil(o.AuthCipher) { - toSerialize["auth_cipher"] = o.AuthCipher + if o.AuthCipher.IsSet() { + toSerialize["auth_cipher"] = o.AuthCipher.Get() } if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -524,6 +635,8 @@ func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err err delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -569,3 +682,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 5ab96ce266..4453fc3dc5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,21 @@ 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"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,15 +45,13 @@ type _Platform Platform // 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 NewPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *Platform { +func NewPlatform(id int32, url string, display string, name string, slug string) *Platform { this := Platform{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.DeviceCount = deviceCount - this.VirtualmachineCount = virtualmachineCount return &this } @@ -81,6 +87,7 @@ func (o *Platform) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Platform) GetUrl() string { if o == nil { @@ -105,6 +112,39 @@ func (o *Platform) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Platform) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Platform) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Platform) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Platform) GetDisplay() string { if o == nil { @@ -129,6 +169,7 @@ func (o *Platform) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Platform) GetName() string { if o == nil { @@ -153,6 +194,7 @@ func (o *Platform) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Platform) GetSlug() string { if o == nil { @@ -177,6 +219,91 @@ func (o *Platform) SetSlug(v string) { o.Slug = v } + +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetManufacturer() BriefManufacturer { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturer + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer 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) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *Platform) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *Platform) SetManufacturer(v BriefManufacturer) { + o.Manufacturer.Set(&v) +} +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *Platform) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *Platform) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + 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 *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, 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 *Platform) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Platform) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *Platform) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *Platform) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Platform) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,56 +336,220 @@ func (o *Platform) SetDescription(v string) { o.Description = &v } -// GetDeviceCount returns the DeviceCount field value -func (o *Platform) GetDeviceCount() int64 { +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Platform) 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 *Platform) 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 *Platform) 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 *Platform) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Platform) 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 *Platform) 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 *Platform) 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 *Platform) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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) GetCreatedOk() (*time.Time, bool) { if o == nil { - var ret int64 + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Platform) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Platform) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Platform) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Platform) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time return ret } + return *o.LastUpdated.Get() +} - return o.DeviceCount +// GetLastUpdatedOk returns a tuple with the LastUpdated 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) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Platform) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Platform) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Platform) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Platform) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Platform) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Platform) GetDeviceCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { return nil, false } - return &o.DeviceCount, true + return o.DeviceCount, true } -// SetDeviceCount sets field value +// HasDeviceCount returns a boolean if a field has been set. +func (o *Platform) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. func (o *Platform) SetDeviceCount(v int64) { - o.DeviceCount = v + o.DeviceCount = &v } -// GetVirtualmachineCount returns the VirtualmachineCount field value +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *Platform) GetVirtualmachineCount() int64 { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { var ret int64 return ret } - - return o.VirtualmachineCount + return *o.VirtualmachineCount } -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Platform) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { return nil, false } - return &o.VirtualmachineCount, true + return o.VirtualmachineCount, true } -// SetVirtualmachineCount sets field value +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Platform) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. func (o *Platform) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = v + o.VirtualmachineCount = &v } func (o Platform) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -269,14 +560,39 @@ func (o Platform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount - toSerialize["virtualmachine_count"] = o.VirtualmachineCount + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -295,24 +611,39 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "device_count", - "virtualmachine_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPlatform := _Platform{} err = json.Unmarshal(data, &varPlatform) @@ -328,10 +659,17 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties @@ -375,3 +713,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 365ea0c950..239f5e3a41 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &PlatformRequest{} // PlatformRequest Adds support for custom fields and tags. type PlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `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{} } @@ -71,6 +75,7 @@ func (o *PlatformRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *PlatformRequest) GetSlug() string { if o == nil { @@ -95,6 +100,91 @@ func (o *PlatformRequest) SetSlug(v string) { o.Slug = v } + +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer 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) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *PlatformRequest) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer.Set(&v) +} +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *PlatformRequest) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *PlatformRequest) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplateRequest + 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 *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, 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 *PlatformRequest) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { + o.ConfigTemplate.Set(&v) +} +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *PlatformRequest) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *PlatformRequest) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +217,72 @@ func (o *PlatformRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PlatformRequest) 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 *PlatformRequest) 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 *PlatformRequest) 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 *PlatformRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PlatformRequest) 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 *PlatformRequest) 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 *PlatformRequest) 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 *PlatformRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PlatformRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -139,9 +293,21 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +325,37 @@ func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPlatformRequest := _PlatformRequest{} err = json.Unmarshal(data, &varPlatformRequest) @@ -188,7 +371,11 @@ func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +417,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 d946fcb849..314a4098e0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the PowerFeed type satisfies the MappedNullable interface at compile time @@ -21,39 +21,40 @@ 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 PowerPanel `json:"power_panel"` - Rack NullableRack `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + PowerPanel BriefPowerPanel `json:"power_panel"` + Rack NullableBriefRack `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 NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + 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"` - Tenant NullableTenant `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{} + LinkPeersType NullableString `json:"link_peers_type,omitempty"` + ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenant `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerFeed PowerFeed @@ -62,22 +63,16 @@ type _PowerFeed PowerFeed // 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 NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { +func NewPowerFeed(id int32, url string, display string, powerPanel BriefPowerPanel, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool) *PowerFeed { this := PowerFeed{} this.Id = id this.Url = url this.Display = display this.PowerPanel = powerPanel this.Name = name - this.Cable = cable this.CableEnd = cableEnd this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.ConnectedEndpoints = connectedEndpoints - this.ConnectedEndpointsType = connectedEndpointsType this.ConnectedEndpointsReachable = connectedEndpointsReachable - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -114,6 +109,7 @@ func (o *PowerFeed) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *PowerFeed) GetUrl() string { if o == nil { @@ -138,6 +134,39 @@ func (o *PowerFeed) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerFeed) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerFeed) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerFeed) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerFeed) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerFeed) GetDisplay() string { if o == nil { @@ -162,10 +191,11 @@ func (o *PowerFeed) SetDisplay(v string) { o.Display = v } + // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeed) GetPowerPanel() PowerPanel { +func (o *PowerFeed) GetPowerPanel() BriefPowerPanel { if o == nil { - var ret PowerPanel + var ret BriefPowerPanel return ret } @@ -174,7 +204,7 @@ func (o *PowerFeed) GetPowerPanel() PowerPanel { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { +func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool) { if o == nil { return nil, false } @@ -182,14 +212,15 @@ func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { } // SetPowerPanel sets field value -func (o *PowerFeed) SetPowerPanel(v PowerPanel) { +func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel) { o.PowerPanel = v } + // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetRack() Rack { +func (o *PowerFeed) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -198,7 +229,7 @@ func (o *PowerFeed) GetRack() Rack { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*Rack, bool) { +func (o *PowerFeed) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -214,11 +245,10 @@ func (o *PowerFeed) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *PowerFeed) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *PowerFeed) SetRack(v BriefRack) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PowerFeed) SetRackNil() { o.Rack.Set(nil) @@ -253,6 +283,7 @@ func (o *PowerFeed) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value if set, zero value otherwise. func (o *PowerFeed) GetStatus() PowerFeedStatus { if o == nil || IsNil(o.Status) { @@ -509,31 +540,47 @@ func (o *PowerFeed) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerFeed) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerFeed) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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) GetCableOk() (*Cable, bool) { +func (o *PowerFeed) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *PowerFeed) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *PowerFeed) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *PowerFeed) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *PowerFeed) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *PowerFeed) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *PowerFeed) GetCableEnd() string { @@ -559,6 +606,7 @@ func (o *PowerFeed) SetCableEnd(v string) { o.CableEnd = v } + // GetLinkPeers returns the LinkPeers field value func (o *PowerFeed) GetLinkPeers() []interface{} { if o == nil { @@ -583,76 +631,122 @@ func (o *PowerFeed) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerFeed) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } -// SetLinkPeersType sets field value +// HasLinkPeersType returns a boolean if a field has been set. +func (o *PowerFeed) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false +} + +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *PowerFeed) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *PowerFeed) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) } -// GetConnectedEndpoints returns the ConnectedEndpoints field value +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *PowerFeed) UnsetLinkPeersType() { + o.LinkPeersType.Unset() +} + +// GetConnectedEndpoints returns the ConnectedEndpoints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerFeed) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} return ret } - return o.ConnectedEndpoints } -// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints 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) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true } -// SetConnectedEndpoints sets field value +// HasConnectedEndpoints returns a boolean if a field has been set. +func (o *PowerFeed) HasConnectedEndpoints() bool { + if o != nil && !IsNil(o.ConnectedEndpoints) { + return true + } + + return false +} + +// SetConnectedEndpoints gets a reference to the given []interface{} and assigns it to the ConnectedEndpoints field. func (o *PowerFeed) SetConnectedEndpoints(v []interface{}) { o.ConnectedEndpoints = v } -// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerFeed) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpointsType.Get()) { var ret string return ret } - - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } -// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType 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) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() +} + +// HasConnectedEndpointsType returns a boolean if a field has been set. +func (o *PowerFeed) HasConnectedEndpointsType() bool { + if o != nil && o.ConnectedEndpointsType.IsSet() { + return true + } + + return false } -// SetConnectedEndpointsType sets field value +// SetConnectedEndpointsType gets a reference to the given NullableString and assigns it to the ConnectedEndpointsType field. func (o *PowerFeed) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) +} +// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil +func (o *PowerFeed) SetConnectedEndpointsTypeNil() { + o.ConnectedEndpointsType.Set(nil) +} + +// UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +func (o *PowerFeed) UnsetConnectedEndpointsType() { + o.ConnectedEndpointsType.Unset() } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -679,6 +773,7 @@ func (o *PowerFeed) SetConnectedEndpointsReachable(v bool) { o.ConnectedEndpointsReachable = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerFeed) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -712,9 +807,9 @@ func (o *PowerFeed) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetTenant() Tenant { +func (o *PowerFeed) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -723,7 +818,7 @@ func (o *PowerFeed) GetTenant() Tenant { // 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() (*Tenant, bool) { +func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -739,11 +834,10 @@ func (o *PowerFeed) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *PowerFeed) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *PowerFeed) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PowerFeed) SetTenantNil() { o.Tenant.Set(nil) @@ -850,18 +944,16 @@ func (o *PowerFeed) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerFeed) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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) GetCreatedOk() (*time.Time, bool) { @@ -871,23 +963,39 @@ func (o *PowerFeed) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *PowerFeed) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *PowerFeed) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *PowerFeed) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *PowerFeed) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerFeed) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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) GetLastUpdatedOk() (*time.Time, bool) { @@ -897,10 +1005,28 @@ func (o *PowerFeed) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *PowerFeed) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *PowerFeed) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *PowerFeed) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *PowerFeed) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *PowerFeed) GetOccupied() bool { @@ -926,8 +1052,9 @@ func (o *PowerFeed) SetOccupied(v bool) { o.Occupied = v } + func (o PowerFeed) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -938,6 +1065,9 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["power_panel"] = o.PowerPanel if o.Rack.IsSet() { @@ -968,12 +1098,20 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } 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 + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + if o.ConnectedEndpointsType.IsSet() { + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + } toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -990,8 +1128,12 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -1011,32 +1153,43 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { "display", "power_panel", "name", - "cable", "cable_end", "link_peers", - "link_peers_type", - "connected_endpoints", - "connected_endpoints_type", "connected_endpoints_reachable", - "created", - "last_updated", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerFeed := _PowerFeed{} err = json.Unmarshal(data, &varPowerFeed) @@ -1052,6 +1205,7 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "power_panel") delete(additionalProperties, "rack") @@ -1120,3 +1274,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 728d75ab99..34e25f13cf 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedPhase{} // PowerFeedPhase struct for PowerFeedPhase type PowerFeedPhase struct { - Value *PatchedWritablePowerFeedRequestPhase `json:"value,omitempty"` - Label *PowerFeedPhaseLabel `json:"label,omitempty"` + Value *PatchedWritablePowerFeedRequestPhase `json:"value,omitempty"` + Label *PowerFeedPhaseLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PowerFeedPhase) SetLabel(v PowerFeedPhaseLabel) { } func (o PowerFeedPhase) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullablePowerFeedPhase) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go index 1e4274876d..78bad946ec 100644 --- a/model_power_feed_phase_label.go +++ b/model_power_feed_phase_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type PowerFeedPhaseLabel string // List of PowerFeed_phase_label const ( POWERFEEDPHASELABEL_SINGLE_PHASE PowerFeedPhaseLabel = "Single phase" - POWERFEEDPHASELABEL_THREE_PHASE PowerFeedPhaseLabel = "Three-phase" + POWERFEEDPHASELABEL_THREE_PHASE PowerFeedPhaseLabel = "Three-phase" ) // All allowed values of PowerFeedPhaseLabel enum @@ -108,3 +108,4 @@ func (v *NullablePowerFeedPhaseLabel) 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 51865eb47c..a0e7f84a53 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,24 +20,24 @@ var _ MappedNullable = &PowerFeedRequest{} // PowerFeedRequest Adds support for custom fields and tags. type PowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` - Name string `json:"name"` - Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` - Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` - Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"` - Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Name string `json:"name"` + Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` + Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` + Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"` + Phase *PatchedWritablePowerFeedRequestPhase `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"` - Tenant NullableTenantRequest `json:"tenant,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 NullableBriefTenantRequest `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{} } @@ -47,7 +47,7 @@ type _PowerFeedRequest PowerFeedRequest // 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 NewPowerFeedRequest(powerPanel PowerPanelRequest, name string) *PowerFeedRequest { +func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *PowerFeedRequest { this := PowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewPowerFeedRequestWithDefaults() *PowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,15 @@ func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { } // SetPowerPanel sets field value -func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } + // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetRack() RackRequest { +func (o *PowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +99,7 @@ func (o *PowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*RackRequest, bool) { +func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,11 +115,10 @@ func (o *PowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PowerFeedRequest) SetRackNil() { o.Rack.Set(nil) @@ -153,6 +153,7 @@ func (o *PowerFeedRequest) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value if set, zero value otherwise. func (o *PowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus { if o == nil || IsNil(o.Status) { @@ -442,9 +443,9 @@ func (o *PowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetTenant() TenantRequest { +func (o *PowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +454,7 @@ func (o *PowerFeedRequest) GetTenant() TenantRequest { // 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() (*TenantRequest, bool) { +func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,11 +470,10 @@ func (o *PowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PowerFeedRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -581,7 +581,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 } @@ -651,20 +651,37 @@ func (o *PowerFeedRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerFeedRequest := _PowerFeedRequest{} err = json.Unmarshal(data, &varPowerFeedRequest) @@ -735,3 +752,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 e0b9ca5753..e6d33d2070 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedStatus{} // PowerFeedStatus struct for PowerFeedStatus type PowerFeedStatus struct { - Value *PatchedWritablePowerFeedRequestStatus `json:"value,omitempty"` - Label *PowerFeedStatusLabel `json:"label,omitempty"` + Value *PatchedWritablePowerFeedRequestStatus `json:"value,omitempty"` + Label *PowerFeedStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PowerFeedStatus) SetLabel(v PowerFeedStatusLabel) { } func (o PowerFeedStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullablePowerFeedStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go index 25d308214d..edc570f94e 100644 --- a/model_power_feed_status_label.go +++ b/model_power_feed_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,9 @@ type PowerFeedStatusLabel string // List of PowerFeed_status_label const ( POWERFEEDSTATUSLABEL_OFFLINE PowerFeedStatusLabel = "Offline" - POWERFEEDSTATUSLABEL_ACTIVE PowerFeedStatusLabel = "Active" + POWERFEEDSTATUSLABEL_ACTIVE PowerFeedStatusLabel = "Active" POWERFEEDSTATUSLABEL_PLANNED PowerFeedStatusLabel = "Planned" - POWERFEEDSTATUSLABEL_FAILED PowerFeedStatusLabel = "Failed" + POWERFEEDSTATUSLABEL_FAILED PowerFeedStatusLabel = "Failed" ) // All allowed values of PowerFeedStatusLabel enum @@ -112,3 +112,4 @@ func (v *NullablePowerFeedStatusLabel) 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 f7a5c92515..b8eb13a8a3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedSupply{} // PowerFeedSupply struct for PowerFeedSupply type PowerFeedSupply struct { - Value *PatchedWritablePowerFeedRequestSupply `json:"value,omitempty"` - Label *PowerFeedSupplyLabel `json:"label,omitempty"` + Value *PatchedWritablePowerFeedRequestSupply `json:"value,omitempty"` + Label *PowerFeedSupplyLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PowerFeedSupply) SetLabel(v PowerFeedSupplyLabel) { } func (o PowerFeedSupply) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullablePowerFeedSupply) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go index 07573618e4..28d153e3e1 100644 --- a/model_power_feed_supply_label.go +++ b/model_power_feed_supply_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullablePowerFeedSupplyLabel) 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 0e839a1a27..7e7cb7294f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PowerFeedType{} // PowerFeedType struct for PowerFeedType type PowerFeedType struct { - Value *PatchedWritablePowerFeedRequestType `json:"value,omitempty"` - Label *PowerFeedTypeLabel `json:"label,omitempty"` + Value *PatchedWritablePowerFeedRequestType `json:"value,omitempty"` + Label *PowerFeedTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PowerFeedType) SetLabel(v PowerFeedTypeLabel) { } func (o PowerFeedType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullablePowerFeedType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go index e98943a9f2..b410820761 100644 --- a/model_power_feed_type_label.go +++ b/model_power_feed_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type PowerFeedTypeLabel string // List of PowerFeed_type_label const ( - POWERFEEDTYPELABEL_PRIMARY PowerFeedTypeLabel = "Primary" + POWERFEEDTYPELABEL_PRIMARY PowerFeedTypeLabel = "Primary" POWERFEEDTYPELABEL_REDUNDANT PowerFeedTypeLabel = "Redundant" ) @@ -108,3 +108,4 @@ func (v *NullablePowerFeedTypeLabel) 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 2072ed336b..f2280f9062 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the PowerOutlet type satisfies the MappedNullable interface at compile time @@ -21,34 +21,36 @@ 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 Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPort `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"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + PowerPort NullableBriefPowerPort `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 NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + 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 NullableString `json:"link_peers_type,omitempty"` + ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerOutlet PowerOutlet @@ -57,22 +59,16 @@ type _PowerOutlet PowerOutlet // 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 NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { +func NewPowerOutlet(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool) *PowerOutlet { this := PowerOutlet{} this.Id = id this.Url = url this.Display = display this.Device = device this.Name = name - this.Cable = cable this.CableEnd = cableEnd this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.ConnectedEndpoints = connectedEndpoints - this.ConnectedEndpointsType = connectedEndpointsType this.ConnectedEndpointsReachable = connectedEndpointsReachable - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -109,6 +105,7 @@ func (o *PowerOutlet) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *PowerOutlet) GetUrl() string { if o == nil { @@ -133,6 +130,39 @@ func (o *PowerOutlet) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerOutlet) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerOutlet) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerOutlet) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerOutlet) GetDisplay() string { if o == nil { @@ -157,10 +187,11 @@ func (o *PowerOutlet) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *PowerOutlet) GetDevice() Device { +func (o *PowerOutlet) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -169,7 +200,7 @@ func (o *PowerOutlet) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { +func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -177,14 +208,15 @@ func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerOutlet) SetDevice(v Device) { +func (o *PowerOutlet) SetDevice(v BriefDevice) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetModule() Module { +func (o *PowerOutlet) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -193,7 +225,7 @@ func (o *PowerOutlet) GetModule() Module { // GetModuleOk returns a tuple with the Module 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 *PowerOutlet) GetModuleOk() (*Module, bool) { +func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -209,11 +241,10 @@ func (o *PowerOutlet) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *PowerOutlet) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerOutlet) SetModule(v BriefModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PowerOutlet) SetModuleNil() { o.Module.Set(nil) @@ -248,6 +279,7 @@ func (o *PowerOutlet) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *PowerOutlet) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -312,7 +344,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) @@ -323,10 +354,42 @@ func (o *PowerOutlet) UnsetType() { o.Type.Unset() } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *PowerOutlet) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerOutlet) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *PowerOutlet) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *PowerOutlet) SetColor(v string) { + o.Color = &v +} + // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetPowerPort() PowerPort { +func (o *PowerOutlet) GetPowerPort() BriefPowerPort { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPort + var ret BriefPowerPort return ret } return *o.PowerPort.Get() @@ -335,7 +398,7 @@ func (o *PowerOutlet) GetPowerPort() PowerPort { // GetPowerPortOk returns a tuple with the PowerPort 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 *PowerOutlet) GetPowerPortOk() (*PowerPort, bool) { +func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool) { if o == nil { return nil, false } @@ -351,11 +414,10 @@ func (o *PowerOutlet) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPort and assigns it to the PowerPort field. -func (o *PowerOutlet) SetPowerPort(v PowerPort) { +// SetPowerPort gets a reference to the given NullableBriefPowerPort and assigns it to the PowerPort field. +func (o *PowerOutlet) SetPowerPort(v BriefPowerPort) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutlet) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -398,7 +460,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) @@ -473,31 +534,47 @@ func (o *PowerOutlet) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerOutlet) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerOutlet) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *PowerOutlet) GetCableOk() (*Cable, bool) { +func (o *PowerOutlet) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *PowerOutlet) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *PowerOutlet) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *PowerOutlet) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *PowerOutlet) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *PowerOutlet) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *PowerOutlet) GetCableEnd() string { @@ -523,6 +600,7 @@ func (o *PowerOutlet) SetCableEnd(v string) { o.CableEnd = v } + // GetLinkPeers returns the LinkPeers field value func (o *PowerOutlet) GetLinkPeers() []interface{} { if o == nil { @@ -547,76 +625,122 @@ func (o *PowerOutlet) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerOutlet) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *PowerOutlet) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } -// SetLinkPeersType sets field value +// HasLinkPeersType returns a boolean if a field has been set. +func (o *PowerOutlet) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false +} + +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *PowerOutlet) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *PowerOutlet) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) } -// GetConnectedEndpoints returns the ConnectedEndpoints field value +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *PowerOutlet) UnsetLinkPeersType() { + o.LinkPeersType.Unset() +} + +// GetConnectedEndpoints returns the ConnectedEndpoints field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} return ret } - return o.ConnectedEndpoints } -// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints 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 *PowerOutlet) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true } -// SetConnectedEndpoints sets field value +// HasConnectedEndpoints returns a boolean if a field has been set. +func (o *PowerOutlet) HasConnectedEndpoints() bool { + if o != nil && !IsNil(o.ConnectedEndpoints) { + return true + } + + return false +} + +// SetConnectedEndpoints gets a reference to the given []interface{} and assigns it to the ConnectedEndpoints field. func (o *PowerOutlet) SetConnectedEndpoints(v []interface{}) { o.ConnectedEndpoints = v } -// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerOutlet) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpointsType.Get()) { var ret string return ret } - - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } -// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType 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 *PowerOutlet) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() +} + +// HasConnectedEndpointsType returns a boolean if a field has been set. +func (o *PowerOutlet) HasConnectedEndpointsType() bool { + if o != nil && o.ConnectedEndpointsType.IsSet() { + return true + } + + return false } -// SetConnectedEndpointsType sets field value +// SetConnectedEndpointsType gets a reference to the given NullableString and assigns it to the ConnectedEndpointsType field. func (o *PowerOutlet) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) +} +// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil +func (o *PowerOutlet) SetConnectedEndpointsTypeNil() { + o.ConnectedEndpointsType.Set(nil) +} + +// UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +func (o *PowerOutlet) UnsetConnectedEndpointsType() { + o.ConnectedEndpointsType.Unset() } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -643,6 +767,7 @@ func (o *PowerOutlet) SetConnectedEndpointsReachable(v bool) { o.ConnectedEndpointsReachable = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *PowerOutlet) GetTags() []NestedTag { if o == nil || IsNil(o.Tags) { @@ -707,18 +832,16 @@ func (o *PowerOutlet) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerOutlet) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *PowerOutlet) GetCreatedOk() (*time.Time, bool) { @@ -728,23 +851,39 @@ func (o *PowerOutlet) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *PowerOutlet) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *PowerOutlet) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *PowerOutlet) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *PowerOutlet) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerOutlet) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *PowerOutlet) GetLastUpdatedOk() (*time.Time, bool) { @@ -754,10 +893,28 @@ func (o *PowerOutlet) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *PowerOutlet) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *PowerOutlet) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *PowerOutlet) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *PowerOutlet) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *PowerOutlet) GetOccupied() bool { @@ -783,8 +940,9 @@ func (o *PowerOutlet) SetOccupied(v bool) { o.Occupied = v } + func (o PowerOutlet) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -795,6 +953,9 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -807,6 +968,9 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { if o.Type.IsSet() { toSerialize["type"] = o.Type.Get() } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } if o.PowerPort.IsSet() { toSerialize["power_port"] = o.PowerPort.Get() } @@ -819,12 +983,20 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } 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 + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + if o.ConnectedEndpointsType.IsSet() { + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + } toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -832,8 +1004,12 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -853,32 +1029,43 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { "display", "device", "name", - "cable", "cable_end", "link_peers", - "link_peers_type", - "connected_endpoints", - "connected_endpoints_type", "connected_endpoints_reachable", - "created", - "last_updated", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerOutlet := _PowerOutlet{} err = json.Unmarshal(data, &varPowerOutlet) @@ -894,12 +1081,14 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "type") + delete(additionalProperties, "color") delete(additionalProperties, "power_port") delete(additionalProperties, "feed_leg") delete(additionalProperties, "description") @@ -957,3 +1146,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 95698360a8..4c5f1ff5d5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PowerOutletFeedLeg{} // PowerOutletFeedLeg struct for PowerOutletFeedLeg type PowerOutletFeedLeg struct { - Value *PowerOutletFeedLegValue `json:"value,omitempty"` - Label *PowerOutletFeedLegLabel `json:"label,omitempty"` + Value *PowerOutletFeedLegValue `json:"value,omitempty"` + Label *PowerOutletFeedLegLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PowerOutletFeedLeg) SetLabel(v PowerOutletFeedLegLabel) { } func (o PowerOutletFeedLeg) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullablePowerOutletFeedLeg) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go index 8a906036cb..c91f1b5c11 100644 --- a/model_power_outlet_feed_leg_label.go +++ b/model_power_outlet_feed_leg_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -110,3 +110,4 @@ func (v *NullablePowerOutletFeedLegLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go index bc3abd6e53..b18f6031f7 100644 --- a/model_power_outlet_feed_leg_value.go +++ b/model_power_outlet_feed_leg_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PowerOutletFeedLegValue string // List of PowerOutlet_feed_leg_value const ( - POWEROUTLETFEEDLEGVALUE_A PowerOutletFeedLegValue = "A" - POWEROUTLETFEEDLEGVALUE_B PowerOutletFeedLegValue = "B" - POWEROUTLETFEEDLEGVALUE_C PowerOutletFeedLegValue = "C" + POWEROUTLETFEEDLEGVALUE_A PowerOutletFeedLegValue = "A" + POWEROUTLETFEEDLEGVALUE_B PowerOutletFeedLegValue = "B" + POWEROUTLETFEEDLEGVALUE_C PowerOutletFeedLegValue = "C" POWEROUTLETFEEDLEGVALUE_EMPTY PowerOutletFeedLegValue = "" ) @@ -112,3 +112,4 @@ func (v *NullablePowerOutletFeedLegValue) 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 122e3eb78d..55dbad929f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,20 @@ var _ MappedNullable = &PowerOutletRequest{} // PowerOutletRequest Adds support for custom fields and tags. type PowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletRequestFeedLeg `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{} } @@ -42,7 +43,7 @@ type _PowerOutletRequest PowerOutletRequest // 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 NewPowerOutletRequest(device DeviceRequest, name string) *PowerOutletRequest { +func NewPowerOutletRequest(device BriefDeviceRequest, name string) *PowerOutletRequest { this := PowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +59,9 @@ func NewPowerOutletRequestWithDefaults() *PowerOutletRequest { } // GetDevice returns the Device field value -func (o *PowerOutletRequest) GetDevice() DeviceRequest { +func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +70,7 @@ func (o *PowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +78,15 @@ func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetModule() ModuleRequest { +func (o *PowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +95,7 @@ func (o *PowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,11 +111,10 @@ func (o *PowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PowerOutletRequest) SetModuleNil() { o.Module.Set(nil) @@ -148,6 +149,7 @@ func (o *PowerOutletRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *PowerOutletRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -181,9 +183,9 @@ func (o *PowerOutletRequest) SetLabel(v string) { } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetType() PowerOutletRequestType { +func (o *PowerOutletRequest) GetType() PatchedWritablePowerOutletTemplateRequestType { if o == nil || IsNil(o.Type.Get()) { - var ret PowerOutletRequestType + var ret PatchedWritablePowerOutletTemplateRequestType return ret } return *o.Type.Get() @@ -192,7 +194,7 @@ func (o *PowerOutletRequest) GetType() PowerOutletRequestType { // GetTypeOk returns a tuple with the Type 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 *PowerOutletRequest) GetTypeOk() (*PowerOutletRequestType, bool) { +func (o *PowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) { if o == nil { return nil, false } @@ -208,11 +210,10 @@ func (o *PowerOutletRequest) HasType() bool { return false } -// SetType gets a reference to the given NullablePowerOutletRequestType and assigns it to the Type field. -func (o *PowerOutletRequest) SetType(v PowerOutletRequestType) { +// SetType gets a reference to the given NullablePatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field. +func (o *PowerOutletRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerOutletRequest) SetTypeNil() { o.Type.Set(nil) @@ -223,10 +224,42 @@ func (o *PowerOutletRequest) UnsetType() { o.Type.Unset() } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *PowerOutletRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerOutletRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *PowerOutletRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *PowerOutletRequest) SetColor(v string) { + o.Color = &v +} + // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -235,7 +268,7 @@ func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort 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 *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -251,11 +284,10 @@ func (o *PowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutletRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -298,7 +330,6 @@ func (o *PowerOutletRequest) HasFeedLeg() bool { func (o *PowerOutletRequest) SetFeedLeg(v PowerOutletRequestFeedLeg) { o.FeedLeg.Set(&v) } - // SetFeedLegNil sets the value for FeedLeg to be an explicit nil func (o *PowerOutletRequest) SetFeedLegNil() { o.FeedLeg.Set(nil) @@ -438,7 +469,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 } @@ -458,6 +489,9 @@ func (o PowerOutletRequest) ToMap() (map[string]interface{}, error) { if o.Type.IsSet() { toSerialize["type"] = o.Type.Get() } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } if o.PowerPort.IsSet() { toSerialize["power_port"] = o.PowerPort.Get() } @@ -493,20 +527,37 @@ func (o *PowerOutletRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerOutletRequest := _PowerOutletRequest{} err = json.Unmarshal(data, &varPowerOutletRequest) @@ -525,6 +576,7 @@ func (o *PowerOutletRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "type") + delete(additionalProperties, "color") delete(additionalProperties, "power_port") delete(additionalProperties, "feed_leg") delete(additionalProperties, "description") @@ -572,3 +624,5 @@ func (v *NullablePowerOutletRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go index 7cb04c40cf..4da669b2fb 100644 --- a/model_power_outlet_request_feed_leg.go +++ b/model_power_outlet_request_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PowerOutletRequestFeedLeg string // List of PowerOutletRequest_feed_leg const ( - POWEROUTLETREQUESTFEEDLEG_A PowerOutletRequestFeedLeg = "A" - POWEROUTLETREQUESTFEEDLEG_B PowerOutletRequestFeedLeg = "B" - POWEROUTLETREQUESTFEEDLEG_C PowerOutletRequestFeedLeg = "C" + POWEROUTLETREQUESTFEEDLEG_A PowerOutletRequestFeedLeg = "A" + POWEROUTLETREQUESTFEEDLEG_B PowerOutletRequestFeedLeg = "B" + POWEROUTLETREQUESTFEEDLEG_C PowerOutletRequestFeedLeg = "C" POWEROUTLETREQUESTFEEDLEG_EMPTY PowerOutletRequestFeedLeg = "" ) @@ -112,3 +112,4 @@ func (v *NullablePowerOutletRequestFeedLeg) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_power_outlet_request_type.go b/model_power_outlet_request_type.go deleted file mode 100644 index ab5cb9272a..0000000000 --- a/model_power_outlet_request_type.go +++ /dev/null @@ -1,300 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// PowerOutletRequestType * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 PowerOutletRequestType string - -// List of PowerOutletRequest_type -const ( - POWEROUTLETREQUESTTYPE_IEC_60320_C5 PowerOutletRequestType = "iec-60320-c5" - POWEROUTLETREQUESTTYPE_IEC_60320_C7 PowerOutletRequestType = "iec-60320-c7" - POWEROUTLETREQUESTTYPE_IEC_60320_C13 PowerOutletRequestType = "iec-60320-c13" - POWEROUTLETREQUESTTYPE_IEC_60320_C15 PowerOutletRequestType = "iec-60320-c15" - POWEROUTLETREQUESTTYPE_IEC_60320_C19 PowerOutletRequestType = "iec-60320-c19" - POWEROUTLETREQUESTTYPE_IEC_60320_C21 PowerOutletRequestType = "iec-60320-c21" - POWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_4H PowerOutletRequestType = "iec-60309-p-n-e-4h" - POWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_6H PowerOutletRequestType = "iec-60309-p-n-e-6h" - POWEROUTLETREQUESTTYPE_IEC_60309_P_N_E_9H PowerOutletRequestType = "iec-60309-p-n-e-9h" - POWEROUTLETREQUESTTYPE_IEC_60309_2P_E_4H PowerOutletRequestType = "iec-60309-2p-e-4h" - POWEROUTLETREQUESTTYPE_IEC_60309_2P_E_6H PowerOutletRequestType = "iec-60309-2p-e-6h" - POWEROUTLETREQUESTTYPE_IEC_60309_2P_E_9H PowerOutletRequestType = "iec-60309-2p-e-9h" - POWEROUTLETREQUESTTYPE_IEC_60309_3P_E_4H PowerOutletRequestType = "iec-60309-3p-e-4h" - POWEROUTLETREQUESTTYPE_IEC_60309_3P_E_6H PowerOutletRequestType = "iec-60309-3p-e-6h" - POWEROUTLETREQUESTTYPE_IEC_60309_3P_E_9H PowerOutletRequestType = "iec-60309-3p-e-9h" - POWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_4H PowerOutletRequestType = "iec-60309-3p-n-e-4h" - POWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_6H PowerOutletRequestType = "iec-60309-3p-n-e-6h" - POWEROUTLETREQUESTTYPE_IEC_60309_3P_N_E_9H PowerOutletRequestType = "iec-60309-3p-n-e-9h" - POWEROUTLETREQUESTTYPE_IEC_60906_1 PowerOutletRequestType = "iec-60906-1" - POWEROUTLETREQUESTTYPE_NBR_14136_10A PowerOutletRequestType = "nbr-14136-10a" - POWEROUTLETREQUESTTYPE_NBR_14136_20A PowerOutletRequestType = "nbr-14136-20a" - POWEROUTLETREQUESTTYPE_NEMA_1_15R PowerOutletRequestType = "nema-1-15r" - POWEROUTLETREQUESTTYPE_NEMA_5_15R PowerOutletRequestType = "nema-5-15r" - POWEROUTLETREQUESTTYPE_NEMA_5_20R PowerOutletRequestType = "nema-5-20r" - POWEROUTLETREQUESTTYPE_NEMA_5_30R PowerOutletRequestType = "nema-5-30r" - POWEROUTLETREQUESTTYPE_NEMA_5_50R PowerOutletRequestType = "nema-5-50r" - POWEROUTLETREQUESTTYPE_NEMA_6_15R PowerOutletRequestType = "nema-6-15r" - POWEROUTLETREQUESTTYPE_NEMA_6_20R PowerOutletRequestType = "nema-6-20r" - POWEROUTLETREQUESTTYPE_NEMA_6_30R PowerOutletRequestType = "nema-6-30r" - POWEROUTLETREQUESTTYPE_NEMA_6_50R PowerOutletRequestType = "nema-6-50r" - POWEROUTLETREQUESTTYPE_NEMA_10_30R PowerOutletRequestType = "nema-10-30r" - POWEROUTLETREQUESTTYPE_NEMA_10_50R PowerOutletRequestType = "nema-10-50r" - POWEROUTLETREQUESTTYPE_NEMA_14_20R PowerOutletRequestType = "nema-14-20r" - POWEROUTLETREQUESTTYPE_NEMA_14_30R PowerOutletRequestType = "nema-14-30r" - POWEROUTLETREQUESTTYPE_NEMA_14_50R PowerOutletRequestType = "nema-14-50r" - POWEROUTLETREQUESTTYPE_NEMA_14_60R PowerOutletRequestType = "nema-14-60r" - POWEROUTLETREQUESTTYPE_NEMA_15_15R PowerOutletRequestType = "nema-15-15r" - POWEROUTLETREQUESTTYPE_NEMA_15_20R PowerOutletRequestType = "nema-15-20r" - POWEROUTLETREQUESTTYPE_NEMA_15_30R PowerOutletRequestType = "nema-15-30r" - POWEROUTLETREQUESTTYPE_NEMA_15_50R PowerOutletRequestType = "nema-15-50r" - POWEROUTLETREQUESTTYPE_NEMA_15_60R PowerOutletRequestType = "nema-15-60r" - POWEROUTLETREQUESTTYPE_NEMA_L1_15R PowerOutletRequestType = "nema-l1-15r" - POWEROUTLETREQUESTTYPE_NEMA_L5_15R PowerOutletRequestType = "nema-l5-15r" - POWEROUTLETREQUESTTYPE_NEMA_L5_20R PowerOutletRequestType = "nema-l5-20r" - POWEROUTLETREQUESTTYPE_NEMA_L5_30R PowerOutletRequestType = "nema-l5-30r" - POWEROUTLETREQUESTTYPE_NEMA_L5_50R PowerOutletRequestType = "nema-l5-50r" - POWEROUTLETREQUESTTYPE_NEMA_L6_15R PowerOutletRequestType = "nema-l6-15r" - POWEROUTLETREQUESTTYPE_NEMA_L6_20R PowerOutletRequestType = "nema-l6-20r" - POWEROUTLETREQUESTTYPE_NEMA_L6_30R PowerOutletRequestType = "nema-l6-30r" - POWEROUTLETREQUESTTYPE_NEMA_L6_50R PowerOutletRequestType = "nema-l6-50r" - POWEROUTLETREQUESTTYPE_NEMA_L10_30R PowerOutletRequestType = "nema-l10-30r" - POWEROUTLETREQUESTTYPE_NEMA_L14_20R PowerOutletRequestType = "nema-l14-20r" - POWEROUTLETREQUESTTYPE_NEMA_L14_30R PowerOutletRequestType = "nema-l14-30r" - POWEROUTLETREQUESTTYPE_NEMA_L14_50R PowerOutletRequestType = "nema-l14-50r" - POWEROUTLETREQUESTTYPE_NEMA_L14_60R PowerOutletRequestType = "nema-l14-60r" - POWEROUTLETREQUESTTYPE_NEMA_L15_20R PowerOutletRequestType = "nema-l15-20r" - POWEROUTLETREQUESTTYPE_NEMA_L15_30R PowerOutletRequestType = "nema-l15-30r" - POWEROUTLETREQUESTTYPE_NEMA_L15_50R PowerOutletRequestType = "nema-l15-50r" - POWEROUTLETREQUESTTYPE_NEMA_L15_60R PowerOutletRequestType = "nema-l15-60r" - POWEROUTLETREQUESTTYPE_NEMA_L21_20R PowerOutletRequestType = "nema-l21-20r" - POWEROUTLETREQUESTTYPE_NEMA_L21_30R PowerOutletRequestType = "nema-l21-30r" - POWEROUTLETREQUESTTYPE_NEMA_L22_30R PowerOutletRequestType = "nema-l22-30r" - POWEROUTLETREQUESTTYPE_CS6360_C PowerOutletRequestType = "CS6360C" - POWEROUTLETREQUESTTYPE_CS6364_C PowerOutletRequestType = "CS6364C" - POWEROUTLETREQUESTTYPE_CS8164_C PowerOutletRequestType = "CS8164C" - POWEROUTLETREQUESTTYPE_CS8264_C PowerOutletRequestType = "CS8264C" - POWEROUTLETREQUESTTYPE_CS8364_C PowerOutletRequestType = "CS8364C" - POWEROUTLETREQUESTTYPE_CS8464_C PowerOutletRequestType = "CS8464C" - POWEROUTLETREQUESTTYPE_ITA_E PowerOutletRequestType = "ita-e" - POWEROUTLETREQUESTTYPE_ITA_F PowerOutletRequestType = "ita-f" - POWEROUTLETREQUESTTYPE_ITA_G PowerOutletRequestType = "ita-g" - POWEROUTLETREQUESTTYPE_ITA_H PowerOutletRequestType = "ita-h" - POWEROUTLETREQUESTTYPE_ITA_I PowerOutletRequestType = "ita-i" - POWEROUTLETREQUESTTYPE_ITA_J PowerOutletRequestType = "ita-j" - POWEROUTLETREQUESTTYPE_ITA_K PowerOutletRequestType = "ita-k" - POWEROUTLETREQUESTTYPE_ITA_L PowerOutletRequestType = "ita-l" - POWEROUTLETREQUESTTYPE_ITA_M PowerOutletRequestType = "ita-m" - POWEROUTLETREQUESTTYPE_ITA_N PowerOutletRequestType = "ita-n" - POWEROUTLETREQUESTTYPE_ITA_O PowerOutletRequestType = "ita-o" - POWEROUTLETREQUESTTYPE_ITA_MULTISTANDARD PowerOutletRequestType = "ita-multistandard" - POWEROUTLETREQUESTTYPE_USB_A PowerOutletRequestType = "usb-a" - POWEROUTLETREQUESTTYPE_USB_MICRO_B PowerOutletRequestType = "usb-micro-b" - POWEROUTLETREQUESTTYPE_USB_C PowerOutletRequestType = "usb-c" - POWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PowerOutletRequestType = "molex-micro-fit-1x2" - POWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PowerOutletRequestType = "molex-micro-fit-2x2" - POWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PowerOutletRequestType = "molex-micro-fit-2x4" - POWEROUTLETREQUESTTYPE_DC_TERMINAL PowerOutletRequestType = "dc-terminal" - POWEROUTLETREQUESTTYPE_HDOT_CX PowerOutletRequestType = "hdot-cx" - POWEROUTLETREQUESTTYPE_SAF_D_GRID PowerOutletRequestType = "saf-d-grid" - POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PowerOutletRequestType = "neutrik-powercon-20a" - POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_32A PowerOutletRequestType = "neutrik-powercon-32a" - POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PowerOutletRequestType = "neutrik-powercon-true1" - POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PowerOutletRequestType = "neutrik-powercon-true1-top" - POWEROUTLETREQUESTTYPE_UBIQUITI_SMARTPOWER PowerOutletRequestType = "ubiquiti-smartpower" - POWEROUTLETREQUESTTYPE_HARDWIRED PowerOutletRequestType = "hardwired" - POWEROUTLETREQUESTTYPE_OTHER PowerOutletRequestType = "other" - POWEROUTLETREQUESTTYPE_EMPTY PowerOutletRequestType = "" -) - -// All allowed values of PowerOutletRequestType enum -var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{ - "iec-60320-c5", - "iec-60320-c7", - "iec-60320-c13", - "iec-60320-c15", - "iec-60320-c19", - "iec-60320-c21", - "iec-60309-p-n-e-4h", - "iec-60309-p-n-e-6h", - "iec-60309-p-n-e-9h", - "iec-60309-2p-e-4h", - "iec-60309-2p-e-6h", - "iec-60309-2p-e-9h", - "iec-60309-3p-e-4h", - "iec-60309-3p-e-6h", - "iec-60309-3p-e-9h", - "iec-60309-3p-n-e-4h", - "iec-60309-3p-n-e-6h", - "iec-60309-3p-n-e-9h", - "iec-60906-1", - "nbr-14136-10a", - "nbr-14136-20a", - "nema-1-15r", - "nema-5-15r", - "nema-5-20r", - "nema-5-30r", - "nema-5-50r", - "nema-6-15r", - "nema-6-20r", - "nema-6-30r", - "nema-6-50r", - "nema-10-30r", - "nema-10-50r", - "nema-14-20r", - "nema-14-30r", - "nema-14-50r", - "nema-14-60r", - "nema-15-15r", - "nema-15-20r", - "nema-15-30r", - "nema-15-50r", - "nema-15-60r", - "nema-l1-15r", - "nema-l5-15r", - "nema-l5-20r", - "nema-l5-30r", - "nema-l5-50r", - "nema-l6-15r", - "nema-l6-20r", - "nema-l6-30r", - "nema-l6-50r", - "nema-l10-30r", - "nema-l14-20r", - "nema-l14-30r", - "nema-l14-50r", - "nema-l14-60r", - "nema-l15-20r", - "nema-l15-30r", - "nema-l15-50r", - "nema-l15-60r", - "nema-l21-20r", - "nema-l21-30r", - "nema-l22-30r", - "CS6360C", - "CS6364C", - "CS8164C", - "CS8264C", - "CS8364C", - "CS8464C", - "ita-e", - "ita-f", - "ita-g", - "ita-h", - "ita-i", - "ita-j", - "ita-k", - "ita-l", - "ita-m", - "ita-n", - "ita-o", - "ita-multistandard", - "usb-a", - "usb-micro-b", - "usb-c", - "molex-micro-fit-1x2", - "molex-micro-fit-2x2", - "molex-micro-fit-2x4", - "dc-terminal", - "hdot-cx", - "saf-d-grid", - "neutrik-powercon-20a", - "neutrik-powercon-32a", - "neutrik-powercon-true1", - "neutrik-powercon-true1-top", - "ubiquiti-smartpower", - "hardwired", - "other", - "", -} - -func (v *PowerOutletRequestType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := PowerOutletRequestType(value) - for _, existing := range AllowedPowerOutletRequestTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PowerOutletRequestType", value) -} - -// NewPowerOutletRequestTypeFromValue returns a pointer to a valid PowerOutletRequestType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewPowerOutletRequestTypeFromValue(v string) (*PowerOutletRequestType, error) { - ev := PowerOutletRequestType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PowerOutletRequestType: valid values are %v", v, AllowedPowerOutletRequestTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v PowerOutletRequestType) IsValid() bool { - for _, existing := range AllowedPowerOutletRequestTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to PowerOutletRequest_type value -func (v PowerOutletRequestType) Ptr() *PowerOutletRequestType { - return &v -} - -type NullablePowerOutletRequestType struct { - value *PowerOutletRequestType - isSet bool -} - -func (v NullablePowerOutletRequestType) Get() *PowerOutletRequestType { - return v.value -} - -func (v *NullablePowerOutletRequestType) Set(val *PowerOutletRequestType) { - v.value = val - v.isSet = true -} - -func (v NullablePowerOutletRequestType) IsSet() bool { - return v.isSet -} - -func (v *NullablePowerOutletRequestType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePowerOutletRequestType(val *PowerOutletRequestType) *NullablePowerOutletRequestType { - return &NullablePowerOutletRequestType{value: val, isSet: true} -} - -func (v NullablePowerOutletRequestType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePowerOutletRequestType) 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 8d700a1161..0b033861ba 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the PowerOutletTemplate type satisfies the MappedNullable interface at compile time @@ -21,21 +21,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"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,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"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplate `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 NullableBriefPowerPortTemplate `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,14 +45,12 @@ type _PowerOutletTemplate PowerOutletTemplate // 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 NewPowerOutletTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *PowerOutletTemplate { +func NewPowerOutletTemplate(id int32, url string, display string, name string) *PowerOutletTemplate { this := PowerOutletTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -88,6 +86,7 @@ func (o *PowerOutletTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *PowerOutletTemplate) GetUrl() string { if o == nil { @@ -112,6 +111,7 @@ func (o *PowerOutletTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *PowerOutletTemplate) GetDisplay() string { if o == nil { @@ -136,10 +136,11 @@ func (o *PowerOutletTemplate) SetDisplay(v string) { o.Display = v } + // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetDeviceType() DeviceType { +func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -148,7 +149,7 @@ func (o *PowerOutletTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,11 +165,10 @@ func (o *PowerOutletTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *PowerOutletTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PowerOutletTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -180,9 +180,9 @@ func (o *PowerOutletTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetModuleType() ModuleType { +func (o *PowerOutletTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -191,7 +191,7 @@ func (o *PowerOutletTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType 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 *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -207,11 +207,10 @@ func (o *PowerOutletTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *PowerOutletTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PowerOutletTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -246,6 +245,7 @@ func (o *PowerOutletTemplate) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *PowerOutletTemplate) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -310,7 +310,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) @@ -322,9 +321,9 @@ func (o *PowerOutletTemplate) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { +func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplate + var ret BriefPowerPortTemplate return ret } return *o.PowerPort.Get() @@ -333,7 +332,7 @@ func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { // GetPowerPortOk returns a tuple with the PowerPort 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 *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool) { +func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool) { if o == nil { return nil, false } @@ -349,11 +348,10 @@ func (o *PowerOutletTemplate) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplate and assigns it to the PowerPort field. -func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplate and assigns it to the PowerPort field. +func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutletTemplate) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -396,7 +394,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) @@ -439,18 +436,16 @@ func (o *PowerOutletTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerOutletTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *PowerOutletTemplate) GetCreatedOk() (*time.Time, bool) { @@ -460,23 +455,39 @@ func (o *PowerOutletTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *PowerOutletTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *PowerOutletTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *PowerOutletTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *PowerOutletTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerOutletTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *PowerOutletTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -486,13 +497,31 @@ func (o *PowerOutletTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *PowerOutletTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *PowerOutletTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *PowerOutletTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *PowerOutletTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o PowerOutletTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -526,8 +555,12 @@ func (o PowerOutletTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -545,24 +578,39 @@ func (o *PowerOutletTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerOutletTemplate := _PowerOutletTemplate{} err = json.Unmarshal(data, &varPowerOutletTemplate) @@ -630,3 +678,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 55567b581b..597fcee7ec 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &PowerOutletTemplateRequest{} // PowerOutletTemplateRequest 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 PowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ func NewPowerOutletTemplateRequestWithDefaults() *PowerOutletTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,11 +81,10 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PowerOutletTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -97,9 +96,9 @@ func (o *PowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +107,7 @@ func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,11 +123,10 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PowerOutletTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -163,6 +161,7 @@ func (o *PowerOutletTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *PowerOutletTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -196,9 +195,9 @@ func (o *PowerOutletTemplateRequest) SetLabel(v string) { } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetType() PowerOutletRequestType { +func (o *PowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType { if o == nil || IsNil(o.Type.Get()) { - var ret PowerOutletRequestType + var ret PatchedWritablePowerOutletTemplateRequestType return ret } return *o.Type.Get() @@ -207,7 +206,7 @@ func (o *PowerOutletTemplateRequest) GetType() PowerOutletRequestType { // GetTypeOk returns a tuple with the Type 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 *PowerOutletTemplateRequest) GetTypeOk() (*PowerOutletRequestType, bool) { +func (o *PowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) { if o == nil { return nil, false } @@ -223,11 +222,10 @@ func (o *PowerOutletTemplateRequest) HasType() bool { return false } -// SetType gets a reference to the given NullablePowerOutletRequestType and assigns it to the Type field. -func (o *PowerOutletTemplateRequest) SetType(v PowerOutletRequestType) { +// SetType gets a reference to the given NullablePatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field. +func (o *PowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerOutletTemplateRequest) SetTypeNil() { o.Type.Set(nil) @@ -239,9 +237,9 @@ func (o *PowerOutletTemplateRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -250,7 +248,7 @@ func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { // GetPowerPortOk returns a tuple with the PowerPort 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 *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -266,11 +264,10 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutletTemplateRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -313,7 +310,6 @@ func (o *PowerOutletTemplateRequest) HasFeedLeg() bool { func (o *PowerOutletTemplateRequest) SetFeedLeg(v PowerOutletRequestFeedLeg) { o.FeedLeg.Set(&v) } - // SetFeedLegNil sets the value for FeedLeg to be an explicit nil func (o *PowerOutletTemplateRequest) SetFeedLegNil() { o.FeedLeg.Set(nil) @@ -357,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 } @@ -404,20 +400,37 @@ func (o *PowerOutletTemplateRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerOutletTemplateRequest := _PowerOutletTemplateRequest{} err = json.Unmarshal(data, &varPowerOutletTemplateRequest) @@ -480,3 +493,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 2f39149ab7..6eed469edb 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PowerOutletType{} // PowerOutletType struct for PowerOutletType type PowerOutletType struct { - Value *PatchedWritablePowerOutletTemplateRequestType `json:"value,omitempty"` - Label *PowerOutletTypeLabel `json:"label,omitempty"` + Value *PowerOutletTypeValue `json:"value,omitempty"` + Label *PowerOutletTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,9 +44,9 @@ func NewPowerOutletTypeWithDefaults() *PowerOutletType { } // GetValue returns the Value field value if set, zero value otherwise. -func (o *PowerOutletType) GetValue() PatchedWritablePowerOutletTemplateRequestType { +func (o *PowerOutletType) GetValue() PowerOutletTypeValue { if o == nil || IsNil(o.Value) { - var ret PatchedWritablePowerOutletTemplateRequestType + var ret PowerOutletTypeValue return ret } return *o.Value @@ -54,7 +54,7 @@ func (o *PowerOutletType) GetValue() PatchedWritablePowerOutletTemplateRequestTy // 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 *PowerOutletType) GetValueOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) { +func (o *PowerOutletType) GetValueOk() (*PowerOutletTypeValue, bool) { if o == nil || IsNil(o.Value) { return nil, false } @@ -70,8 +70,8 @@ func (o *PowerOutletType) HasValue() bool { return false } -// SetValue gets a reference to the given PatchedWritablePowerOutletTemplateRequestType and assigns it to the Value field. -func (o *PowerOutletType) SetValue(v PatchedWritablePowerOutletTemplateRequestType) { +// SetValue gets a reference to the given PowerOutletTypeValue and assigns it to the Value field. +func (o *PowerOutletType) SetValue(v PowerOutletTypeValue) { o.Value = &v } @@ -108,7 +108,7 @@ func (o *PowerOutletType) SetLabel(v PowerOutletTypeLabel) { } func (o PowerOutletType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullablePowerOutletType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go index 4b09dda97c..882e594d96 100644 --- a/model_power_outlet_type_label.go +++ b/model_power_outlet_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,102 +20,104 @@ type PowerOutletTypeLabel string // List of PowerOutlet_type_label const ( - POWEROUTLETTYPELABEL_C5 PowerOutletTypeLabel = "C5" - POWEROUTLETTYPELABEL_C7 PowerOutletTypeLabel = "C7" - POWEROUTLETTYPELABEL_C13 PowerOutletTypeLabel = "C13" - POWEROUTLETTYPELABEL_C15 PowerOutletTypeLabel = "C15" - POWEROUTLETTYPELABEL_C19 PowerOutletTypeLabel = "C19" - POWEROUTLETTYPELABEL_C21 PowerOutletTypeLabel = "C21" - POWEROUTLETTYPELABEL_PNE_4_H PowerOutletTypeLabel = "P+N+E 4H" - POWEROUTLETTYPELABEL_PNE_6_H PowerOutletTypeLabel = "P+N+E 6H" - POWEROUTLETTYPELABEL_PNE_9_H PowerOutletTypeLabel = "P+N+E 9H" - POWEROUTLETTYPELABEL__2_PE_4_H PowerOutletTypeLabel = "2P+E 4H" - POWEROUTLETTYPELABEL__2_PE_6_H PowerOutletTypeLabel = "2P+E 6H" - POWEROUTLETTYPELABEL__2_PE_9_H PowerOutletTypeLabel = "2P+E 9H" - POWEROUTLETTYPELABEL__3_PE_4_H PowerOutletTypeLabel = "3P+E 4H" - POWEROUTLETTYPELABEL__3_PE_6_H PowerOutletTypeLabel = "3P+E 6H" - POWEROUTLETTYPELABEL__3_PE_9_H PowerOutletTypeLabel = "3P+E 9H" - POWEROUTLETTYPELABEL__3_PNE_4_H PowerOutletTypeLabel = "3P+N+E 4H" - POWEROUTLETTYPELABEL__3_PNE_6_H PowerOutletTypeLabel = "3P+N+E 6H" - POWEROUTLETTYPELABEL__3_PNE_9_H PowerOutletTypeLabel = "3P+N+E 9H" - POWEROUTLETTYPELABEL_IEC_60906_1 PowerOutletTypeLabel = "IEC 60906-1" - POWEROUTLETTYPELABEL__2_PT_10_A__NBR_14136 PowerOutletTypeLabel = "2P+T 10A (NBR 14136)" - POWEROUTLETTYPELABEL__2_PT_20_A__NBR_14136 PowerOutletTypeLabel = "2P+T 20A (NBR 14136)" - POWEROUTLETTYPELABEL_NEMA_1_15_R PowerOutletTypeLabel = "NEMA 1-15R" - POWEROUTLETTYPELABEL_NEMA_5_15_R PowerOutletTypeLabel = "NEMA 5-15R" - POWEROUTLETTYPELABEL_NEMA_5_20_R PowerOutletTypeLabel = "NEMA 5-20R" - POWEROUTLETTYPELABEL_NEMA_5_30_R PowerOutletTypeLabel = "NEMA 5-30R" - POWEROUTLETTYPELABEL_NEMA_5_50_R PowerOutletTypeLabel = "NEMA 5-50R" - POWEROUTLETTYPELABEL_NEMA_6_15_R PowerOutletTypeLabel = "NEMA 6-15R" - POWEROUTLETTYPELABEL_NEMA_6_20_R PowerOutletTypeLabel = "NEMA 6-20R" - POWEROUTLETTYPELABEL_NEMA_6_30_R PowerOutletTypeLabel = "NEMA 6-30R" - POWEROUTLETTYPELABEL_NEMA_6_50_R PowerOutletTypeLabel = "NEMA 6-50R" - POWEROUTLETTYPELABEL_NEMA_10_30_R PowerOutletTypeLabel = "NEMA 10-30R" - POWEROUTLETTYPELABEL_NEMA_10_50_R PowerOutletTypeLabel = "NEMA 10-50R" - POWEROUTLETTYPELABEL_NEMA_14_20_R PowerOutletTypeLabel = "NEMA 14-20R" - POWEROUTLETTYPELABEL_NEMA_14_30_R PowerOutletTypeLabel = "NEMA 14-30R" - POWEROUTLETTYPELABEL_NEMA_14_50_R PowerOutletTypeLabel = "NEMA 14-50R" - POWEROUTLETTYPELABEL_NEMA_14_60_R PowerOutletTypeLabel = "NEMA 14-60R" - POWEROUTLETTYPELABEL_NEMA_15_15_R PowerOutletTypeLabel = "NEMA 15-15R" - POWEROUTLETTYPELABEL_NEMA_15_20_R PowerOutletTypeLabel = "NEMA 15-20R" - POWEROUTLETTYPELABEL_NEMA_15_30_R PowerOutletTypeLabel = "NEMA 15-30R" - POWEROUTLETTYPELABEL_NEMA_15_50_R PowerOutletTypeLabel = "NEMA 15-50R" - POWEROUTLETTYPELABEL_NEMA_15_60_R PowerOutletTypeLabel = "NEMA 15-60R" - POWEROUTLETTYPELABEL_NEMA_L1_15_R PowerOutletTypeLabel = "NEMA L1-15R" - POWEROUTLETTYPELABEL_NEMA_L5_15_R PowerOutletTypeLabel = "NEMA L5-15R" - POWEROUTLETTYPELABEL_NEMA_L5_20_R PowerOutletTypeLabel = "NEMA L5-20R" - POWEROUTLETTYPELABEL_NEMA_L5_30_R PowerOutletTypeLabel = "NEMA L5-30R" - POWEROUTLETTYPELABEL_NEMA_L5_50_R PowerOutletTypeLabel = "NEMA L5-50R" - POWEROUTLETTYPELABEL_NEMA_L6_15_R PowerOutletTypeLabel = "NEMA L6-15R" - POWEROUTLETTYPELABEL_NEMA_L6_20_R PowerOutletTypeLabel = "NEMA L6-20R" - POWEROUTLETTYPELABEL_NEMA_L6_30_R PowerOutletTypeLabel = "NEMA L6-30R" - POWEROUTLETTYPELABEL_NEMA_L6_50_R PowerOutletTypeLabel = "NEMA L6-50R" - POWEROUTLETTYPELABEL_NEMA_L10_30_R PowerOutletTypeLabel = "NEMA L10-30R" - POWEROUTLETTYPELABEL_NEMA_L14_20_R PowerOutletTypeLabel = "NEMA L14-20R" - POWEROUTLETTYPELABEL_NEMA_L14_30_R PowerOutletTypeLabel = "NEMA L14-30R" - POWEROUTLETTYPELABEL_NEMA_L14_50_R PowerOutletTypeLabel = "NEMA L14-50R" - POWEROUTLETTYPELABEL_NEMA_L14_60_R PowerOutletTypeLabel = "NEMA L14-60R" - POWEROUTLETTYPELABEL_NEMA_L15_20_R PowerOutletTypeLabel = "NEMA L15-20R" - POWEROUTLETTYPELABEL_NEMA_L15_30_R PowerOutletTypeLabel = "NEMA L15-30R" - POWEROUTLETTYPELABEL_NEMA_L15_50_R PowerOutletTypeLabel = "NEMA L15-50R" - POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R" - POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R" - POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R" - POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R" - POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C" - POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C" - POWEROUTLETTYPELABEL_CS8164_C PowerOutletTypeLabel = "CS8164C" - POWEROUTLETTYPELABEL_CS8264_C PowerOutletTypeLabel = "CS8264C" - POWEROUTLETTYPELABEL_CS8364_C PowerOutletTypeLabel = "CS8364C" - POWEROUTLETTYPELABEL_CS8464_C PowerOutletTypeLabel = "CS8464C" - POWEROUTLETTYPELABEL_ITA_TYPE_E__CEE_7_5 PowerOutletTypeLabel = "ITA Type E (CEE 7/5)" - POWEROUTLETTYPELABEL_ITA_TYPE_F__CEE_7_3 PowerOutletTypeLabel = "ITA Type F (CEE 7/3)" - POWEROUTLETTYPELABEL_ITA_TYPE_G__BS_1363 PowerOutletTypeLabel = "ITA Type G (BS 1363)" - POWEROUTLETTYPELABEL_ITA_TYPE_H PowerOutletTypeLabel = "ITA Type H" - POWEROUTLETTYPELABEL_ITA_TYPE_I PowerOutletTypeLabel = "ITA Type I" - POWEROUTLETTYPELABEL_ITA_TYPE_J PowerOutletTypeLabel = "ITA Type J" - POWEROUTLETTYPELABEL_ITA_TYPE_K PowerOutletTypeLabel = "ITA Type K" - POWEROUTLETTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerOutletTypeLabel = "ITA Type L (CEI 23-50)" - POWEROUTLETTYPELABEL_ITA_TYPE_M__BS_546 PowerOutletTypeLabel = "ITA Type M (BS 546)" - POWEROUTLETTYPELABEL_ITA_TYPE_N PowerOutletTypeLabel = "ITA Type N" - POWEROUTLETTYPELABEL_ITA_TYPE_O PowerOutletTypeLabel = "ITA Type O" - POWEROUTLETTYPELABEL_ITA_MULTISTANDARD PowerOutletTypeLabel = "ITA Multistandard" - POWEROUTLETTYPELABEL_USB_TYPE_A PowerOutletTypeLabel = "USB Type A" - POWEROUTLETTYPELABEL_USB_MICRO_B PowerOutletTypeLabel = "USB Micro B" - POWEROUTLETTYPELABEL_USB_TYPE_C PowerOutletTypeLabel = "USB Type C" - POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerOutletTypeLabel = "Molex Micro-Fit 1x2" - POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerOutletTypeLabel = "Molex Micro-Fit 2x2" - POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerOutletTypeLabel = "Molex Micro-Fit 2x4" - POWEROUTLETTYPELABEL_DC_TERMINAL PowerOutletTypeLabel = "DC Terminal" - POWEROUTLETTYPELABEL_HDOT_CX PowerOutletTypeLabel = "HDOT Cx" - POWEROUTLETTYPELABEL_SAF_D_GRID PowerOutletTypeLabel = "Saf-D-Grid" - POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__20_A PowerOutletTypeLabel = "Neutrik powerCON (20A)" - POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__32_A PowerOutletTypeLabel = "Neutrik powerCON (32A)" - POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerOutletTypeLabel = "Neutrik powerCON TRUE1" + POWEROUTLETTYPELABEL_C5 PowerOutletTypeLabel = "C5" + POWEROUTLETTYPELABEL_C7 PowerOutletTypeLabel = "C7" + POWEROUTLETTYPELABEL_C13 PowerOutletTypeLabel = "C13" + POWEROUTLETTYPELABEL_C15 PowerOutletTypeLabel = "C15" + POWEROUTLETTYPELABEL_C19 PowerOutletTypeLabel = "C19" + POWEROUTLETTYPELABEL_C21 PowerOutletTypeLabel = "C21" + POWEROUTLETTYPELABEL_PNE_4_H PowerOutletTypeLabel = "P+N+E 4H" + POWEROUTLETTYPELABEL_PNE_6_H PowerOutletTypeLabel = "P+N+E 6H" + POWEROUTLETTYPELABEL_PNE_9_H PowerOutletTypeLabel = "P+N+E 9H" + POWEROUTLETTYPELABEL__2_PE_4_H PowerOutletTypeLabel = "2P+E 4H" + POWEROUTLETTYPELABEL__2_PE_6_H PowerOutletTypeLabel = "2P+E 6H" + POWEROUTLETTYPELABEL__2_PE_9_H PowerOutletTypeLabel = "2P+E 9H" + POWEROUTLETTYPELABEL__3_PE_4_H PowerOutletTypeLabel = "3P+E 4H" + POWEROUTLETTYPELABEL__3_PE_6_H PowerOutletTypeLabel = "3P+E 6H" + POWEROUTLETTYPELABEL__3_PE_9_H PowerOutletTypeLabel = "3P+E 9H" + POWEROUTLETTYPELABEL__3_PNE_4_H PowerOutletTypeLabel = "3P+N+E 4H" + POWEROUTLETTYPELABEL__3_PNE_6_H PowerOutletTypeLabel = "3P+N+E 6H" + POWEROUTLETTYPELABEL__3_PNE_9_H PowerOutletTypeLabel = "3P+N+E 9H" + POWEROUTLETTYPELABEL_IEC_60906_1 PowerOutletTypeLabel = "IEC 60906-1" + POWEROUTLETTYPELABEL__2_PT_10_A__NBR_14136 PowerOutletTypeLabel = "2P+T 10A (NBR 14136)" + POWEROUTLETTYPELABEL__2_PT_20_A__NBR_14136 PowerOutletTypeLabel = "2P+T 20A (NBR 14136)" + POWEROUTLETTYPELABEL_NEMA_1_15_R PowerOutletTypeLabel = "NEMA 1-15R" + POWEROUTLETTYPELABEL_NEMA_5_15_R PowerOutletTypeLabel = "NEMA 5-15R" + POWEROUTLETTYPELABEL_NEMA_5_20_R PowerOutletTypeLabel = "NEMA 5-20R" + POWEROUTLETTYPELABEL_NEMA_5_30_R PowerOutletTypeLabel = "NEMA 5-30R" + POWEROUTLETTYPELABEL_NEMA_5_50_R PowerOutletTypeLabel = "NEMA 5-50R" + POWEROUTLETTYPELABEL_NEMA_6_15_R PowerOutletTypeLabel = "NEMA 6-15R" + POWEROUTLETTYPELABEL_NEMA_6_20_R PowerOutletTypeLabel = "NEMA 6-20R" + POWEROUTLETTYPELABEL_NEMA_6_30_R PowerOutletTypeLabel = "NEMA 6-30R" + POWEROUTLETTYPELABEL_NEMA_6_50_R PowerOutletTypeLabel = "NEMA 6-50R" + POWEROUTLETTYPELABEL_NEMA_10_30_R PowerOutletTypeLabel = "NEMA 10-30R" + POWEROUTLETTYPELABEL_NEMA_10_50_R PowerOutletTypeLabel = "NEMA 10-50R" + POWEROUTLETTYPELABEL_NEMA_14_20_R PowerOutletTypeLabel = "NEMA 14-20R" + POWEROUTLETTYPELABEL_NEMA_14_30_R PowerOutletTypeLabel = "NEMA 14-30R" + POWEROUTLETTYPELABEL_NEMA_14_50_R PowerOutletTypeLabel = "NEMA 14-50R" + POWEROUTLETTYPELABEL_NEMA_14_60_R PowerOutletTypeLabel = "NEMA 14-60R" + POWEROUTLETTYPELABEL_NEMA_15_15_R PowerOutletTypeLabel = "NEMA 15-15R" + POWEROUTLETTYPELABEL_NEMA_15_20_R PowerOutletTypeLabel = "NEMA 15-20R" + POWEROUTLETTYPELABEL_NEMA_15_30_R PowerOutletTypeLabel = "NEMA 15-30R" + POWEROUTLETTYPELABEL_NEMA_15_50_R PowerOutletTypeLabel = "NEMA 15-50R" + POWEROUTLETTYPELABEL_NEMA_15_60_R PowerOutletTypeLabel = "NEMA 15-60R" + POWEROUTLETTYPELABEL_NEMA_L1_15_R PowerOutletTypeLabel = "NEMA L1-15R" + POWEROUTLETTYPELABEL_NEMA_L5_15_R PowerOutletTypeLabel = "NEMA L5-15R" + POWEROUTLETTYPELABEL_NEMA_L5_20_R PowerOutletTypeLabel = "NEMA L5-20R" + POWEROUTLETTYPELABEL_NEMA_L5_30_R PowerOutletTypeLabel = "NEMA L5-30R" + POWEROUTLETTYPELABEL_NEMA_L5_50_R PowerOutletTypeLabel = "NEMA L5-50R" + POWEROUTLETTYPELABEL_NEMA_L6_15_R PowerOutletTypeLabel = "NEMA L6-15R" + POWEROUTLETTYPELABEL_NEMA_L6_20_R PowerOutletTypeLabel = "NEMA L6-20R" + POWEROUTLETTYPELABEL_NEMA_L6_30_R PowerOutletTypeLabel = "NEMA L6-30R" + POWEROUTLETTYPELABEL_NEMA_L6_50_R PowerOutletTypeLabel = "NEMA L6-50R" + POWEROUTLETTYPELABEL_NEMA_L10_30_R PowerOutletTypeLabel = "NEMA L10-30R" + POWEROUTLETTYPELABEL_NEMA_L14_20_R PowerOutletTypeLabel = "NEMA L14-20R" + POWEROUTLETTYPELABEL_NEMA_L14_30_R PowerOutletTypeLabel = "NEMA L14-30R" + POWEROUTLETTYPELABEL_NEMA_L14_50_R PowerOutletTypeLabel = "NEMA L14-50R" + POWEROUTLETTYPELABEL_NEMA_L14_60_R PowerOutletTypeLabel = "NEMA L14-60R" + POWEROUTLETTYPELABEL_NEMA_L15_20_R PowerOutletTypeLabel = "NEMA L15-20R" + POWEROUTLETTYPELABEL_NEMA_L15_30_R PowerOutletTypeLabel = "NEMA L15-30R" + POWEROUTLETTYPELABEL_NEMA_L15_50_R PowerOutletTypeLabel = "NEMA L15-50R" + POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R" + POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R" + POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R" + POWEROUTLETTYPELABEL_NEMA_L22_20_R PowerOutletTypeLabel = "NEMA L22-20R" + POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R" + POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C" + POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C" + POWEROUTLETTYPELABEL_CS8164_C PowerOutletTypeLabel = "CS8164C" + POWEROUTLETTYPELABEL_CS8264_C PowerOutletTypeLabel = "CS8264C" + POWEROUTLETTYPELABEL_CS8364_C PowerOutletTypeLabel = "CS8364C" + POWEROUTLETTYPELABEL_CS8464_C PowerOutletTypeLabel = "CS8464C" + POWEROUTLETTYPELABEL_ITA_TYPE_E__CEE_7_5 PowerOutletTypeLabel = "ITA Type E (CEE 7/5)" + POWEROUTLETTYPELABEL_ITA_TYPE_F__CEE_7_3 PowerOutletTypeLabel = "ITA Type F (CEE 7/3)" + POWEROUTLETTYPELABEL_ITA_TYPE_G__BS_1363 PowerOutletTypeLabel = "ITA Type G (BS 1363)" + POWEROUTLETTYPELABEL_ITA_TYPE_H PowerOutletTypeLabel = "ITA Type H" + POWEROUTLETTYPELABEL_ITA_TYPE_I PowerOutletTypeLabel = "ITA Type I" + POWEROUTLETTYPELABEL_ITA_TYPE_J PowerOutletTypeLabel = "ITA Type J" + POWEROUTLETTYPELABEL_ITA_TYPE_K PowerOutletTypeLabel = "ITA Type K" + POWEROUTLETTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerOutletTypeLabel = "ITA Type L (CEI 23-50)" + POWEROUTLETTYPELABEL_ITA_TYPE_M__BS_546 PowerOutletTypeLabel = "ITA Type M (BS 546)" + POWEROUTLETTYPELABEL_ITA_TYPE_N PowerOutletTypeLabel = "ITA Type N" + POWEROUTLETTYPELABEL_ITA_TYPE_O PowerOutletTypeLabel = "ITA Type O" + POWEROUTLETTYPELABEL_ITA_MULTISTANDARD PowerOutletTypeLabel = "ITA Multistandard" + POWEROUTLETTYPELABEL_USB_TYPE_A PowerOutletTypeLabel = "USB Type A" + POWEROUTLETTYPELABEL_USB_MICRO_B PowerOutletTypeLabel = "USB Micro B" + POWEROUTLETTYPELABEL_USB_TYPE_C PowerOutletTypeLabel = "USB Type C" + POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerOutletTypeLabel = "Molex Micro-Fit 1x2" + POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerOutletTypeLabel = "Molex Micro-Fit 2x2" + POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerOutletTypeLabel = "Molex Micro-Fit 2x4" + POWEROUTLETTYPELABEL_DC_TERMINAL PowerOutletTypeLabel = "DC Terminal" + POWEROUTLETTYPELABEL_EATON_C39 PowerOutletTypeLabel = "Eaton C39" + POWEROUTLETTYPELABEL_HDOT_CX PowerOutletTypeLabel = "HDOT Cx" + POWEROUTLETTYPELABEL_SAF_D_GRID PowerOutletTypeLabel = "Saf-D-Grid" + POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__20_A PowerOutletTypeLabel = "Neutrik powerCON (20A)" + POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__32_A PowerOutletTypeLabel = "Neutrik powerCON (32A)" + POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerOutletTypeLabel = "Neutrik powerCON TRUE1" POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerOutletTypeLabel = "Neutrik powerCON TRUE1 TOP" - POWEROUTLETTYPELABEL_UBIQUITI_SMART_POWER PowerOutletTypeLabel = "Ubiquiti SmartPower" - POWEROUTLETTYPELABEL_HARDWIRED PowerOutletTypeLabel = "Hardwired" - POWEROUTLETTYPELABEL_OTHER PowerOutletTypeLabel = "Other" + POWEROUTLETTYPELABEL_UBIQUITI_SMART_POWER PowerOutletTypeLabel = "Ubiquiti SmartPower" + POWEROUTLETTYPELABEL_HARDWIRED PowerOutletTypeLabel = "Hardwired" + POWEROUTLETTYPELABEL_OTHER PowerOutletTypeLabel = "Other" ) // All allowed values of PowerOutletTypeLabel enum @@ -181,6 +183,7 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{ "NEMA L15-60R", "NEMA L21-20R", "NEMA L21-30R", + "NEMA L22-20R", "NEMA L22-30R", "CS6360C", "CS6364C", @@ -207,6 +210,7 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{ "Molex Micro-Fit 2x2", "Molex Micro-Fit 2x4", "DC Terminal", + "Eaton C39", "HDOT Cx", "Saf-D-Grid", "Neutrik powerCON (20A)", @@ -296,3 +300,4 @@ func (v *NullablePowerOutletTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_power_outlet_type_value.go b/model_power_outlet_type_value.go new file mode 100644 index 0000000000..ac3a0f406b --- /dev/null +++ b/model_power_outlet_type_value.go @@ -0,0 +1,305 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PowerOutletTypeValue * `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-20r` - NEMA L22-20R * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `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 PowerOutletTypeValue string + +// List of PowerOutlet_type_value +const ( + POWEROUTLETTYPEVALUE_IEC_60320_C5 PowerOutletTypeValue = "iec-60320-c5" + POWEROUTLETTYPEVALUE_IEC_60320_C7 PowerOutletTypeValue = "iec-60320-c7" + POWEROUTLETTYPEVALUE_IEC_60320_C13 PowerOutletTypeValue = "iec-60320-c13" + POWEROUTLETTYPEVALUE_IEC_60320_C15 PowerOutletTypeValue = "iec-60320-c15" + POWEROUTLETTYPEVALUE_IEC_60320_C19 PowerOutletTypeValue = "iec-60320-c19" + POWEROUTLETTYPEVALUE_IEC_60320_C21 PowerOutletTypeValue = "iec-60320-c21" + POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_4H PowerOutletTypeValue = "iec-60309-p-n-e-4h" + POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_6H PowerOutletTypeValue = "iec-60309-p-n-e-6h" + POWEROUTLETTYPEVALUE_IEC_60309_P_N_E_9H PowerOutletTypeValue = "iec-60309-p-n-e-9h" + POWEROUTLETTYPEVALUE_IEC_60309_2P_E_4H PowerOutletTypeValue = "iec-60309-2p-e-4h" + POWEROUTLETTYPEVALUE_IEC_60309_2P_E_6H PowerOutletTypeValue = "iec-60309-2p-e-6h" + POWEROUTLETTYPEVALUE_IEC_60309_2P_E_9H PowerOutletTypeValue = "iec-60309-2p-e-9h" + POWEROUTLETTYPEVALUE_IEC_60309_3P_E_4H PowerOutletTypeValue = "iec-60309-3p-e-4h" + POWEROUTLETTYPEVALUE_IEC_60309_3P_E_6H PowerOutletTypeValue = "iec-60309-3p-e-6h" + POWEROUTLETTYPEVALUE_IEC_60309_3P_E_9H PowerOutletTypeValue = "iec-60309-3p-e-9h" + POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_4H PowerOutletTypeValue = "iec-60309-3p-n-e-4h" + POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_6H PowerOutletTypeValue = "iec-60309-3p-n-e-6h" + POWEROUTLETTYPEVALUE_IEC_60309_3P_N_E_9H PowerOutletTypeValue = "iec-60309-3p-n-e-9h" + POWEROUTLETTYPEVALUE_IEC_60906_1 PowerOutletTypeValue = "iec-60906-1" + POWEROUTLETTYPEVALUE_NBR_14136_10A PowerOutletTypeValue = "nbr-14136-10a" + POWEROUTLETTYPEVALUE_NBR_14136_20A PowerOutletTypeValue = "nbr-14136-20a" + POWEROUTLETTYPEVALUE_NEMA_1_15R PowerOutletTypeValue = "nema-1-15r" + POWEROUTLETTYPEVALUE_NEMA_5_15R PowerOutletTypeValue = "nema-5-15r" + POWEROUTLETTYPEVALUE_NEMA_5_20R PowerOutletTypeValue = "nema-5-20r" + POWEROUTLETTYPEVALUE_NEMA_5_30R PowerOutletTypeValue = "nema-5-30r" + POWEROUTLETTYPEVALUE_NEMA_5_50R PowerOutletTypeValue = "nema-5-50r" + POWEROUTLETTYPEVALUE_NEMA_6_15R PowerOutletTypeValue = "nema-6-15r" + POWEROUTLETTYPEVALUE_NEMA_6_20R PowerOutletTypeValue = "nema-6-20r" + POWEROUTLETTYPEVALUE_NEMA_6_30R PowerOutletTypeValue = "nema-6-30r" + POWEROUTLETTYPEVALUE_NEMA_6_50R PowerOutletTypeValue = "nema-6-50r" + POWEROUTLETTYPEVALUE_NEMA_10_30R PowerOutletTypeValue = "nema-10-30r" + POWEROUTLETTYPEVALUE_NEMA_10_50R PowerOutletTypeValue = "nema-10-50r" + POWEROUTLETTYPEVALUE_NEMA_14_20R PowerOutletTypeValue = "nema-14-20r" + POWEROUTLETTYPEVALUE_NEMA_14_30R PowerOutletTypeValue = "nema-14-30r" + POWEROUTLETTYPEVALUE_NEMA_14_50R PowerOutletTypeValue = "nema-14-50r" + POWEROUTLETTYPEVALUE_NEMA_14_60R PowerOutletTypeValue = "nema-14-60r" + POWEROUTLETTYPEVALUE_NEMA_15_15R PowerOutletTypeValue = "nema-15-15r" + POWEROUTLETTYPEVALUE_NEMA_15_20R PowerOutletTypeValue = "nema-15-20r" + POWEROUTLETTYPEVALUE_NEMA_15_30R PowerOutletTypeValue = "nema-15-30r" + POWEROUTLETTYPEVALUE_NEMA_15_50R PowerOutletTypeValue = "nema-15-50r" + POWEROUTLETTYPEVALUE_NEMA_15_60R PowerOutletTypeValue = "nema-15-60r" + POWEROUTLETTYPEVALUE_NEMA_L1_15R PowerOutletTypeValue = "nema-l1-15r" + POWEROUTLETTYPEVALUE_NEMA_L5_15R PowerOutletTypeValue = "nema-l5-15r" + POWEROUTLETTYPEVALUE_NEMA_L5_20R PowerOutletTypeValue = "nema-l5-20r" + POWEROUTLETTYPEVALUE_NEMA_L5_30R PowerOutletTypeValue = "nema-l5-30r" + POWEROUTLETTYPEVALUE_NEMA_L5_50R PowerOutletTypeValue = "nema-l5-50r" + POWEROUTLETTYPEVALUE_NEMA_L6_15R PowerOutletTypeValue = "nema-l6-15r" + POWEROUTLETTYPEVALUE_NEMA_L6_20R PowerOutletTypeValue = "nema-l6-20r" + POWEROUTLETTYPEVALUE_NEMA_L6_30R PowerOutletTypeValue = "nema-l6-30r" + POWEROUTLETTYPEVALUE_NEMA_L6_50R PowerOutletTypeValue = "nema-l6-50r" + POWEROUTLETTYPEVALUE_NEMA_L10_30R PowerOutletTypeValue = "nema-l10-30r" + POWEROUTLETTYPEVALUE_NEMA_L14_20R PowerOutletTypeValue = "nema-l14-20r" + POWEROUTLETTYPEVALUE_NEMA_L14_30R PowerOutletTypeValue = "nema-l14-30r" + POWEROUTLETTYPEVALUE_NEMA_L14_50R PowerOutletTypeValue = "nema-l14-50r" + POWEROUTLETTYPEVALUE_NEMA_L14_60R PowerOutletTypeValue = "nema-l14-60r" + POWEROUTLETTYPEVALUE_NEMA_L15_20R PowerOutletTypeValue = "nema-l15-20r" + POWEROUTLETTYPEVALUE_NEMA_L15_30R PowerOutletTypeValue = "nema-l15-30r" + POWEROUTLETTYPEVALUE_NEMA_L15_50R PowerOutletTypeValue = "nema-l15-50r" + POWEROUTLETTYPEVALUE_NEMA_L15_60R PowerOutletTypeValue = "nema-l15-60r" + POWEROUTLETTYPEVALUE_NEMA_L21_20R PowerOutletTypeValue = "nema-l21-20r" + POWEROUTLETTYPEVALUE_NEMA_L21_30R PowerOutletTypeValue = "nema-l21-30r" + POWEROUTLETTYPEVALUE_NEMA_L22_20R PowerOutletTypeValue = "nema-l22-20r" + POWEROUTLETTYPEVALUE_NEMA_L22_30R PowerOutletTypeValue = "nema-l22-30r" + POWEROUTLETTYPEVALUE_CS6360_C PowerOutletTypeValue = "CS6360C" + POWEROUTLETTYPEVALUE_CS6364_C PowerOutletTypeValue = "CS6364C" + POWEROUTLETTYPEVALUE_CS8164_C PowerOutletTypeValue = "CS8164C" + POWEROUTLETTYPEVALUE_CS8264_C PowerOutletTypeValue = "CS8264C" + POWEROUTLETTYPEVALUE_CS8364_C PowerOutletTypeValue = "CS8364C" + POWEROUTLETTYPEVALUE_CS8464_C PowerOutletTypeValue = "CS8464C" + POWEROUTLETTYPEVALUE_ITA_E PowerOutletTypeValue = "ita-e" + POWEROUTLETTYPEVALUE_ITA_F PowerOutletTypeValue = "ita-f" + POWEROUTLETTYPEVALUE_ITA_G PowerOutletTypeValue = "ita-g" + POWEROUTLETTYPEVALUE_ITA_H PowerOutletTypeValue = "ita-h" + POWEROUTLETTYPEVALUE_ITA_I PowerOutletTypeValue = "ita-i" + POWEROUTLETTYPEVALUE_ITA_J PowerOutletTypeValue = "ita-j" + POWEROUTLETTYPEVALUE_ITA_K PowerOutletTypeValue = "ita-k" + POWEROUTLETTYPEVALUE_ITA_L PowerOutletTypeValue = "ita-l" + POWEROUTLETTYPEVALUE_ITA_M PowerOutletTypeValue = "ita-m" + POWEROUTLETTYPEVALUE_ITA_N PowerOutletTypeValue = "ita-n" + POWEROUTLETTYPEVALUE_ITA_O PowerOutletTypeValue = "ita-o" + POWEROUTLETTYPEVALUE_ITA_MULTISTANDARD PowerOutletTypeValue = "ita-multistandard" + POWEROUTLETTYPEVALUE_USB_A PowerOutletTypeValue = "usb-a" + POWEROUTLETTYPEVALUE_USB_MICRO_B PowerOutletTypeValue = "usb-micro-b" + POWEROUTLETTYPEVALUE_USB_C PowerOutletTypeValue = "usb-c" + POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_1X2 PowerOutletTypeValue = "molex-micro-fit-1x2" + POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_2X2 PowerOutletTypeValue = "molex-micro-fit-2x2" + POWEROUTLETTYPEVALUE_MOLEX_MICRO_FIT_2X4 PowerOutletTypeValue = "molex-micro-fit-2x4" + POWEROUTLETTYPEVALUE_DC_TERMINAL PowerOutletTypeValue = "dc-terminal" + POWEROUTLETTYPEVALUE_EATON_C39 PowerOutletTypeValue = "eaton-c39" + POWEROUTLETTYPEVALUE_HDOT_CX PowerOutletTypeValue = "hdot-cx" + POWEROUTLETTYPEVALUE_SAF_D_GRID PowerOutletTypeValue = "saf-d-grid" + POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_20A PowerOutletTypeValue = "neutrik-powercon-20a" + POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_32A PowerOutletTypeValue = "neutrik-powercon-32a" + POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_TRUE1 PowerOutletTypeValue = "neutrik-powercon-true1" + POWEROUTLETTYPEVALUE_NEUTRIK_POWERCON_TRUE1_TOP PowerOutletTypeValue = "neutrik-powercon-true1-top" + POWEROUTLETTYPEVALUE_UBIQUITI_SMARTPOWER PowerOutletTypeValue = "ubiquiti-smartpower" + POWEROUTLETTYPEVALUE_HARDWIRED PowerOutletTypeValue = "hardwired" + POWEROUTLETTYPEVALUE_OTHER PowerOutletTypeValue = "other" + POWEROUTLETTYPEVALUE_EMPTY PowerOutletTypeValue = "" +) + +// All allowed values of PowerOutletTypeValue enum +var AllowedPowerOutletTypeValueEnumValues = []PowerOutletTypeValue{ + "iec-60320-c5", + "iec-60320-c7", + "iec-60320-c13", + "iec-60320-c15", + "iec-60320-c19", + "iec-60320-c21", + "iec-60309-p-n-e-4h", + "iec-60309-p-n-e-6h", + "iec-60309-p-n-e-9h", + "iec-60309-2p-e-4h", + "iec-60309-2p-e-6h", + "iec-60309-2p-e-9h", + "iec-60309-3p-e-4h", + "iec-60309-3p-e-6h", + "iec-60309-3p-e-9h", + "iec-60309-3p-n-e-4h", + "iec-60309-3p-n-e-6h", + "iec-60309-3p-n-e-9h", + "iec-60906-1", + "nbr-14136-10a", + "nbr-14136-20a", + "nema-1-15r", + "nema-5-15r", + "nema-5-20r", + "nema-5-30r", + "nema-5-50r", + "nema-6-15r", + "nema-6-20r", + "nema-6-30r", + "nema-6-50r", + "nema-10-30r", + "nema-10-50r", + "nema-14-20r", + "nema-14-30r", + "nema-14-50r", + "nema-14-60r", + "nema-15-15r", + "nema-15-20r", + "nema-15-30r", + "nema-15-50r", + "nema-15-60r", + "nema-l1-15r", + "nema-l5-15r", + "nema-l5-20r", + "nema-l5-30r", + "nema-l5-50r", + "nema-l6-15r", + "nema-l6-20r", + "nema-l6-30r", + "nema-l6-50r", + "nema-l10-30r", + "nema-l14-20r", + "nema-l14-30r", + "nema-l14-50r", + "nema-l14-60r", + "nema-l15-20r", + "nema-l15-30r", + "nema-l15-50r", + "nema-l15-60r", + "nema-l21-20r", + "nema-l21-30r", + "nema-l22-20r", + "nema-l22-30r", + "CS6360C", + "CS6364C", + "CS8164C", + "CS8264C", + "CS8364C", + "CS8464C", + "ita-e", + "ita-f", + "ita-g", + "ita-h", + "ita-i", + "ita-j", + "ita-k", + "ita-l", + "ita-m", + "ita-n", + "ita-o", + "ita-multistandard", + "usb-a", + "usb-micro-b", + "usb-c", + "molex-micro-fit-1x2", + "molex-micro-fit-2x2", + "molex-micro-fit-2x4", + "dc-terminal", + "eaton-c39", + "hdot-cx", + "saf-d-grid", + "neutrik-powercon-20a", + "neutrik-powercon-32a", + "neutrik-powercon-true1", + "neutrik-powercon-true1-top", + "ubiquiti-smartpower", + "hardwired", + "other", + "", +} + +func (v *PowerOutletTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerOutletTypeValue(value) + for _, existing := range AllowedPowerOutletTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerOutletTypeValue", value) +} + +// NewPowerOutletTypeValueFromValue returns a pointer to a valid PowerOutletTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerOutletTypeValueFromValue(v string) (*PowerOutletTypeValue, error) { + ev := PowerOutletTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerOutletTypeValue: valid values are %v", v, AllowedPowerOutletTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerOutletTypeValue) IsValid() bool { + for _, existing := range AllowedPowerOutletTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerOutlet_type_value value +func (v PowerOutletTypeValue) Ptr() *PowerOutletTypeValue { + return &v +} + +type NullablePowerOutletTypeValue struct { + value *PowerOutletTypeValue + isSet bool +} + +func (v NullablePowerOutletTypeValue) Get() *PowerOutletTypeValue { + return v.value +} + +func (v *NullablePowerOutletTypeValue) Set(val *PowerOutletTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullablePowerOutletTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerOutletTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerOutletTypeValue(val *PowerOutletTypeValue) *NullablePowerOutletTypeValue { + return &NullablePowerOutletTypeValue{value: val, isSet: true} +} + +func (v NullablePowerOutletTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerOutletTypeValue) 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 9548ab75a2..bcffe5bcb5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,20 @@ 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"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `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 int64 `json:"powerfeed_count"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,11 +44,12 @@ type _PowerPanel PowerPanel // 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 NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *PowerPanel { +func NewPowerPanel(id int32, url string, display string, site BriefSite, name string, powerfeedCount int64) *PowerPanel { this := PowerPanel{} this.Id = id this.Url = url this.Display = display + this.Site = site this.Name = name this.PowerfeedCount = powerfeedCount return &this @@ -77,6 +87,7 @@ func (o *PowerPanel) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *PowerPanel) GetUrl() string { if o == nil { @@ -101,6 +112,39 @@ func (o *PowerPanel) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerPanel) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerPanel) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerPanel) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerPanel) GetDisplay() string { if o == nil { @@ -125,6 +169,74 @@ func (o *PowerPanel) SetDisplay(v string) { o.Display = v } + +// GetSite returns the Site field value +func (o *PowerPanel) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanel) SetSite(v BriefSite) { + o.Site = v +} + + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanel) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location 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 *PowerPanel) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanel) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *PowerPanel) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanel) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanel) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanel) GetName() string { if o == nil { @@ -149,6 +261,7 @@ func (o *PowerPanel) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPanel) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -181,6 +294,102 @@ func (o *PowerPanel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanel) 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 *PowerPanel) 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 *PowerPanel) 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 *PowerPanel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanel) 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 *PowerPanel) 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 *PowerPanel) 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 *PowerPanel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + // GetPowerfeedCount returns the PowerfeedCount field value func (o *PowerPanel) GetPowerfeedCount() int64 { if o == nil { @@ -205,8 +414,93 @@ func (o *PowerPanel) SetPowerfeedCount(v int64) { o.PowerfeedCount = v } + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanel) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *PowerPanel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *PowerPanel) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *PowerPanel) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *PowerPanel) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *PowerPanel) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanel) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *PowerPanel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *PowerPanel) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *PowerPanel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *PowerPanel) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *PowerPanel) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o PowerPanel) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,12 +511,34 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } toSerialize["powerfeed_count"] = o.PowerfeedCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,24 +555,42 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", + "site", "name", "powerfeed_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerPanel := _PowerPanel{} err = json.Unmarshal(data, &varPowerPanel) @@ -272,10 +606,18 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") delete(additionalProperties, "powerfeed_count") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -317,3 +659,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 41ab3ae46b..189aad7feb 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &PowerPanelRequest{} // PowerPanelRequest Adds support for custom fields and tags. type PowerPanelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `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{} } @@ -31,8 +36,9 @@ type _PowerPanelRequest PowerPanelRequest // 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 NewPowerPanelRequest(name string) *PowerPanelRequest { +func NewPowerPanelRequest(site BriefSiteRequest, name string) *PowerPanelRequest { this := PowerPanelRequest{} + this.Site = site this.Name = name return &this } @@ -45,6 +51,73 @@ func NewPowerPanelRequestWithDefaults() *PowerPanelRequest { return &this } +// GetSite returns the Site field value +func (o *PowerPanelRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanelRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanelRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location 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 *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanelRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanelRequest) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanelRequest) GetName() string { if o == nil { @@ -69,6 +142,7 @@ func (o *PowerPanelRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPanelRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +175,104 @@ func (o *PowerPanelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanelRequest) 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 *PowerPanelRequest) 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 *PowerPanelRequest) 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 *PowerPanelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanelRequest) 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 *PowerPanelRequest) 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 *PowerPanelRequest) 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 *PowerPanelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -111,10 +281,23 @@ func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { func (o PowerPanelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,23 +311,41 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "site", "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerPanelRequest := _PowerPanelRequest{} err = json.Unmarshal(data, &varPowerPanelRequest) @@ -158,8 +359,13 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -201,3 +407,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 bfc69ca0ff..b100f4d8db 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,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 Device `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Cable NullableCable `json:"cable"` - Occupied bool `json:"_occupied"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + 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"` + // Treat as if a cable is connected + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` + // Return the type of the peer link terminations, or None. + LinkPeersType NullableString `json:"link_peers_type,omitempty"` + ConnectedEndpoints []interface{} `json:"connected_endpoints,omitempty"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type,omitempty"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -37,14 +60,16 @@ type _PowerPort PowerPort // 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 NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool) *PowerPort { +func NewPowerPort(id int32, url string, display string, device BriefDevice, name string, cableEnd string, linkPeers []interface{}, connectedEndpointsReachable bool, occupied bool) *PowerPort { this := PowerPort{} this.Id = id this.Url = url this.Display = display this.Device = device this.Name = name - this.Cable = cable + this.CableEnd = cableEnd + this.LinkPeers = linkPeers + this.ConnectedEndpointsReachable = connectedEndpointsReachable this.Occupied = occupied return &this } @@ -81,6 +106,7 @@ func (o *PowerPort) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *PowerPort) GetUrl() string { if o == nil { @@ -105,6 +131,39 @@ func (o *PowerPort) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerPort) GetDisplay() string { if o == nil { @@ -129,10 +188,11 @@ func (o *PowerPort) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *PowerPort) GetDevice() Device { +func (o *PowerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -141,7 +201,7 @@ func (o *PowerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPort) GetDeviceOk() (*Device, bool) { +func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -149,10 +209,53 @@ func (o *PowerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerPort) SetDevice(v Device) { +func (o *PowerPort) SetDevice(v BriefDevice) { o.Device = v } + +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module 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 *PowerPort) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPort) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerPort) SetModule(v BriefModule) { + o.Module.Set(&v) +} +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPort) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPort) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPort) GetName() string { if o == nil { @@ -177,6 +280,165 @@ func (o *PowerPort) SetName(v string) { o.Name = v } + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPort) 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 *PowerPort) 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 *PowerPort) 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 *PowerPort) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type 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 *PowerPort) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPort) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +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) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPort) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw 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 *PowerPort) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPort) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +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) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPort) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw 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 *PowerPort) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPort) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +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) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPort) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPort) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,31 +471,419 @@ func (o *PowerPort) SetDescription(v string) { o.Description = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerPort) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPort) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool return ret } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPort) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPort) SetMarkConnected(v bool) { + o.MarkConnected = &v +} +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable + return ret + } return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *PowerPort) GetCableOk() (*Cable, bool) { +func (o *PowerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *PowerPort) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *PowerPort) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *PowerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *PowerPort) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *PowerPort) UnsetCable() { + o.Cable.Unset() +} + +// GetCableEnd returns the CableEnd field value +func (o *PowerPort) GetCableEnd() string { + if o == nil { + var ret string + return ret + } + + return o.CableEnd +} + +// GetCableEndOk returns a tuple with the CableEnd field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetCableEndOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CableEnd, true +} + +// SetCableEnd sets field value +func (o *PowerPort) SetCableEnd(v string) { + o.CableEnd = v +} + + +// GetLinkPeers returns the LinkPeers field value +func (o *PowerPort) GetLinkPeers() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.LinkPeers +} + +// GetLinkPeersOk returns a tuple with the LinkPeers field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetLinkPeersOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.LinkPeers, true +} + +// SetLinkPeers sets field value +func (o *PowerPort) SetLinkPeers(v []interface{}) { + o.LinkPeers = v +} + + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetLinkPeersType() string { + if o == nil || IsNil(o.LinkPeersType.Get()) { + var ret string + return ret + } + return *o.LinkPeersType.Get() +} + +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *PowerPort) GetLinkPeersTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() +} + +// HasLinkPeersType returns a boolean if a field has been set. +func (o *PowerPort) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false +} + +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. +func (o *PowerPort) SetLinkPeersType(v string) { + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *PowerPort) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) +} + +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *PowerPort) UnsetLinkPeersType() { + o.LinkPeersType.Unset() +} + +// GetConnectedEndpoints returns the ConnectedEndpoints field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetConnectedEndpoints() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + return o.ConnectedEndpoints +} + +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints 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 *PowerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConnectedEndpoints) { + return nil, false + } + return o.ConnectedEndpoints, true +} + +// HasConnectedEndpoints returns a boolean if a field has been set. +func (o *PowerPort) HasConnectedEndpoints() bool { + if o != nil && !IsNil(o.ConnectedEndpoints) { + return true + } + + return false +} + +// SetConnectedEndpoints gets a reference to the given []interface{} and assigns it to the ConnectedEndpoints field. +func (o *PowerPort) SetConnectedEndpoints(v []interface{}) { + o.ConnectedEndpoints = v +} + +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetConnectedEndpointsType() string { + if o == nil || IsNil(o.ConnectedEndpointsType.Get()) { + var ret string + return ret + } + return *o.ConnectedEndpointsType.Get() +} + +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType 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 *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() +} + +// HasConnectedEndpointsType returns a boolean if a field has been set. +func (o *PowerPort) HasConnectedEndpointsType() bool { + if o != nil && o.ConnectedEndpointsType.IsSet() { + return true + } + + return false +} + +// SetConnectedEndpointsType gets a reference to the given NullableString and assigns it to the ConnectedEndpointsType field. +func (o *PowerPort) SetConnectedEndpointsType(v string) { + o.ConnectedEndpointsType.Set(&v) +} +// SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil +func (o *PowerPort) SetConnectedEndpointsTypeNil() { + o.ConnectedEndpointsType.Set(nil) +} + +// UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +func (o *PowerPort) UnsetConnectedEndpointsType() { + o.ConnectedEndpointsType.Unset() +} + +// GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value +func (o *PowerPort) GetConnectedEndpointsReachable() bool { + if o == nil { + var ret bool + return ret + } + + return o.ConnectedEndpointsReachable +} + +// GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ConnectedEndpointsReachable, true +} + +// SetConnectedEndpointsReachable sets field value +func (o *PowerPort) SetConnectedEndpointsReachable(v bool) { + o.ConnectedEndpointsReachable = v +} + + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPort) 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 *PowerPort) 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 *PowerPort) 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 *PowerPort) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPort) 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 *PowerPort) 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 *PowerPort) 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 *PowerPort) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *PowerPort) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *PowerPort) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *PowerPort) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *PowerPort) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *PowerPort) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *PowerPort) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *PowerPort) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *PowerPort) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *PowerPort) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *PowerPort) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *PowerPort) GetOccupied() bool { @@ -259,8 +909,9 @@ func (o *PowerPort) SetOccupied(v bool) { o.Occupied = v } + func (o PowerPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,13 +922,60 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["cable"] = o.Cable.Get() + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + if o.ConnectedEndpointsType.IsSet() { + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + } + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -297,24 +995,43 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { "display", "device", "name", - "cable", + "cable_end", + "link_peers", + "connected_endpoints_reachable", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerPort := _PowerPort{} err = json.Unmarshal(data, &varPowerPort) @@ -330,11 +1047,28 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") delete(additionalProperties, "cable") + delete(additionalProperties, "cable_end") + delete(additionalProperties, "link_peers") + delete(additionalProperties, "link_peers_type") + delete(additionalProperties, "connected_endpoints") + delete(additionalProperties, "connected_endpoints_type") + delete(additionalProperties, "connected_endpoints_reachable") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "_occupied") o.AdditionalProperties = additionalProperties } @@ -377,3 +1111,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 b699633c58..7a1e178e93 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,21 @@ var _ MappedNullable = &PowerPortRequest{} // PowerPortRequest Adds support for custom fields and tags. type PowerPortRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerPortTemplateRequestType `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"` + // 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"` AdditionalProperties map[string]interface{} } @@ -32,7 +44,7 @@ type _PowerPortRequest PowerPortRequest // 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 NewPowerPortRequest(device DeviceRequest, name string) *PowerPortRequest { +func NewPowerPortRequest(device BriefDeviceRequest, name string) *PowerPortRequest { this := PowerPortRequest{} this.Device = device this.Name = name @@ -48,9 +60,9 @@ func NewPowerPortRequestWithDefaults() *PowerPortRequest { } // GetDevice returns the Device field value -func (o *PowerPortRequest) GetDevice() DeviceRequest { +func (o *PowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -59,7 +71,7 @@ func (o *PowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -67,10 +79,53 @@ func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerPortRequest) SetDevice(v DeviceRequest) { +func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module 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 *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPortRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerPortRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPortRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPortRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPortRequest) GetName() string { if o == nil { @@ -95,6 +150,165 @@ func (o *PowerPortRequest) SetName(v string) { o.Name = v } + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortRequest) 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 *PowerPortRequest) 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 *PowerPortRequest) 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 *PowerPortRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetType() PatchedWritablePowerPortTemplateRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PatchedWritablePowerPortTemplateRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type 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 *PowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePatchedWritablePowerPortTemplateRequestType and assigns it to the Type field. +func (o *PowerPortRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw 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 *PowerPortRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +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) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw 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 *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +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) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +341,104 @@ func (o *PowerPortRequest) SetDescription(v string) { o.Description = &v } +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPortRequest) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool + return ret + } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPortRequest) SetMarkConnected(v bool) { + o.MarkConnected = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPortRequest) 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 *PowerPortRequest) 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 *PowerPortRequest) 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 *PowerPortRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPortRequest) 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 *PowerPortRequest) 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 *PowerPortRequest) 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 *PowerPortRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -138,10 +448,34 @@ func (o PowerPortRequest) MarshalJSON() ([]byte, error) { func (o PowerPortRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +493,37 @@ func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerPortRequest := _PowerPortRequest{} err = json.Unmarshal(data, &varPowerPortRequest) @@ -187,8 +538,16 @@ func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +589,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 2178d92e0f..09828069f4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,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"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,6 +88,7 @@ func (o *PowerPortTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *PowerPortTemplate) GetUrl() string { if o == nil { @@ -100,6 +113,7 @@ func (o *PowerPortTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *PowerPortTemplate) GetDisplay() string { if o == nil { @@ -124,6 +138,91 @@ func (o *PowerPortTemplate) SetDisplay(v string) { o.Display = v } + +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType 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 *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType 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 *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplate) GetName() string { if o == nil { @@ -148,6 +247,165 @@ func (o *PowerPortTemplate) SetName(v string) { o.Name = v } + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplate) 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 *PowerPortTemplate) 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 *PowerPortTemplate) 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 *PowerPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type 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 *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +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) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplate) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw 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 *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +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) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw 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 *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +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) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,8 +438,92 @@ func (o *PowerPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *PowerPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *PowerPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *PowerPortTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *PowerPortTemplate) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *PowerPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *PowerPortTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *PowerPortTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o PowerPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -193,10 +535,34 @@ func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -216,20 +582,37 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerPortTemplate := _PowerPortTemplate{} err = json.Unmarshal(data, &varPowerPortTemplate) @@ -246,8 +629,16 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -289,3 +680,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 4f2826e7f4..d4ce4a17ef 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,18 @@ var _ MappedNullable = &PowerPortTemplateRequest{} // PowerPortTemplateRequest 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 PowerPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerPortTemplateRequestType `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"` AdditionalProperties map[string]interface{} } @@ -46,6 +55,90 @@ func NewPowerPortTemplateRequestWithDefaults() *PowerPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType 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 *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType 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 *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +163,165 @@ func (o *PowerPortTemplateRequest) SetName(v string) { o.Name = v } + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplateRequest) 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 *PowerPortTemplateRequest) 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 *PowerPortTemplateRequest) 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 *PowerPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PatchedWritablePowerPortTemplateRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type 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 *PowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePatchedWritablePowerPortTemplateRequestType and assigns it to the Type field. +func (o *PowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw 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 *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +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) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw 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 *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +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) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -103,7 +355,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 } @@ -112,7 +364,25 @@ func (o PowerPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o PowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -132,20 +402,37 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPowerPortTemplateRequest := _PowerPortTemplateRequest{} err = json.Unmarshal(data, &varPowerPortTemplateRequest) @@ -159,7 +446,13 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } @@ -202,3 +495,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 new file mode 100644 index 0000000000..8dc8f08351 --- /dev/null +++ b/model_power_port_type.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PowerPortType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPortType{} + +// PowerPortType struct for PowerPortType +type PowerPortType struct { + Value *PowerPortTypeValue `json:"value,omitempty"` + Label *PowerPortTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerPortType PowerPortType + +// NewPowerPortType instantiates a new PowerPortType 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 NewPowerPortType() *PowerPortType { + this := PowerPortType{} + return &this +} + +// NewPowerPortTypeWithDefaults instantiates a new PowerPortType 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 NewPowerPortTypeWithDefaults() *PowerPortType { + this := PowerPortType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *PowerPortType) GetValue() PowerPortTypeValue { + if o == nil || IsNil(o.Value) { + var ret PowerPortTypeValue + 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 *PowerPortType) GetValueOk() (*PowerPortTypeValue, 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 *PowerPortType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PowerPortTypeValue and assigns it to the Value field. +func (o *PowerPortType) SetValue(v PowerPortTypeValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortType) GetLabel() PowerPortTypeLabel { + if o == nil || IsNil(o.Label) { + var ret PowerPortTypeLabel + 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 *PowerPortType) GetLabelOk() (*PowerPortTypeLabel, 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 *PowerPortType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given PowerPortTypeLabel and assigns it to the Label field. +func (o *PowerPortType) SetLabel(v PowerPortTypeLabel) { + o.Label = &v +} + +func (o PowerPortType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPortType) 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 *PowerPortType) UnmarshalJSON(data []byte) (err error) { + varPowerPortType := _PowerPortType{} + + err = json.Unmarshal(data, &varPowerPortType) + + if err != nil { + return err + } + + *o = PowerPortType(varPowerPortType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPortType struct { + value *PowerPortType + isSet bool +} + +func (v NullablePowerPortType) Get() *PowerPortType { + return v.value +} + +func (v *NullablePowerPortType) Set(val *PowerPortType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortType(val *PowerPortType) *NullablePowerPortType { + return &NullablePowerPortType{value: val, isSet: true} +} + +func (v NullablePowerPortType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_power_port_type_label.go b/model_power_port_type_label.go new file mode 100644 index 0000000000..75b638995a --- /dev/null +++ b/model_power_port_type_label.go @@ -0,0 +1,315 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PowerPortTypeLabel the model 'PowerPortTypeLabel' +type PowerPortTypeLabel string + +// List of PowerPort_type_label +const ( + POWERPORTTYPELABEL_C6 PowerPortTypeLabel = "C6" + POWERPORTTYPELABEL_C8 PowerPortTypeLabel = "C8" + POWERPORTTYPELABEL_C14 PowerPortTypeLabel = "C14" + POWERPORTTYPELABEL_C16 PowerPortTypeLabel = "C16" + POWERPORTTYPELABEL_C20 PowerPortTypeLabel = "C20" + POWERPORTTYPELABEL_C22 PowerPortTypeLabel = "C22" + POWERPORTTYPELABEL_PNE_4_H PowerPortTypeLabel = "P+N+E 4H" + POWERPORTTYPELABEL_PNE_6_H PowerPortTypeLabel = "P+N+E 6H" + POWERPORTTYPELABEL_PNE_9_H PowerPortTypeLabel = "P+N+E 9H" + POWERPORTTYPELABEL__2_PE_4_H PowerPortTypeLabel = "2P+E 4H" + POWERPORTTYPELABEL__2_PE_6_H PowerPortTypeLabel = "2P+E 6H" + POWERPORTTYPELABEL__2_PE_9_H PowerPortTypeLabel = "2P+E 9H" + POWERPORTTYPELABEL__3_PE_4_H PowerPortTypeLabel = "3P+E 4H" + POWERPORTTYPELABEL__3_PE_6_H PowerPortTypeLabel = "3P+E 6H" + POWERPORTTYPELABEL__3_PE_9_H PowerPortTypeLabel = "3P+E 9H" + POWERPORTTYPELABEL__3_PNE_4_H PowerPortTypeLabel = "3P+N+E 4H" + POWERPORTTYPELABEL__3_PNE_6_H PowerPortTypeLabel = "3P+N+E 6H" + POWERPORTTYPELABEL__3_PNE_9_H PowerPortTypeLabel = "3P+N+E 9H" + POWERPORTTYPELABEL_IEC_60906_1 PowerPortTypeLabel = "IEC 60906-1" + POWERPORTTYPELABEL__2_PT_10_A__NBR_14136 PowerPortTypeLabel = "2P+T 10A (NBR 14136)" + POWERPORTTYPELABEL__2_PT_20_A__NBR_14136 PowerPortTypeLabel = "2P+T 20A (NBR 14136)" + POWERPORTTYPELABEL_NEMA_1_15_P PowerPortTypeLabel = "NEMA 1-15P" + POWERPORTTYPELABEL_NEMA_5_15_P PowerPortTypeLabel = "NEMA 5-15P" + POWERPORTTYPELABEL_NEMA_5_20_P PowerPortTypeLabel = "NEMA 5-20P" + POWERPORTTYPELABEL_NEMA_5_30_P PowerPortTypeLabel = "NEMA 5-30P" + POWERPORTTYPELABEL_NEMA_5_50_P PowerPortTypeLabel = "NEMA 5-50P" + POWERPORTTYPELABEL_NEMA_6_15_P PowerPortTypeLabel = "NEMA 6-15P" + POWERPORTTYPELABEL_NEMA_6_20_P PowerPortTypeLabel = "NEMA 6-20P" + POWERPORTTYPELABEL_NEMA_6_30_P PowerPortTypeLabel = "NEMA 6-30P" + POWERPORTTYPELABEL_NEMA_6_50_P PowerPortTypeLabel = "NEMA 6-50P" + POWERPORTTYPELABEL_NEMA_10_30_P PowerPortTypeLabel = "NEMA 10-30P" + POWERPORTTYPELABEL_NEMA_10_50_P PowerPortTypeLabel = "NEMA 10-50P" + POWERPORTTYPELABEL_NEMA_14_20_P PowerPortTypeLabel = "NEMA 14-20P" + POWERPORTTYPELABEL_NEMA_14_30_P PowerPortTypeLabel = "NEMA 14-30P" + POWERPORTTYPELABEL_NEMA_14_50_P PowerPortTypeLabel = "NEMA 14-50P" + POWERPORTTYPELABEL_NEMA_14_60_P PowerPortTypeLabel = "NEMA 14-60P" + POWERPORTTYPELABEL_NEMA_15_15_P PowerPortTypeLabel = "NEMA 15-15P" + POWERPORTTYPELABEL_NEMA_15_20_P PowerPortTypeLabel = "NEMA 15-20P" + POWERPORTTYPELABEL_NEMA_15_30_P PowerPortTypeLabel = "NEMA 15-30P" + POWERPORTTYPELABEL_NEMA_15_50_P PowerPortTypeLabel = "NEMA 15-50P" + POWERPORTTYPELABEL_NEMA_15_60_P PowerPortTypeLabel = "NEMA 15-60P" + POWERPORTTYPELABEL_NEMA_L1_15_P PowerPortTypeLabel = "NEMA L1-15P" + POWERPORTTYPELABEL_NEMA_L5_15_P PowerPortTypeLabel = "NEMA L5-15P" + POWERPORTTYPELABEL_NEMA_L5_20_P PowerPortTypeLabel = "NEMA L5-20P" + POWERPORTTYPELABEL_NEMA_L5_30_P PowerPortTypeLabel = "NEMA L5-30P" + POWERPORTTYPELABEL_NEMA_L5_50_P PowerPortTypeLabel = "NEMA L5-50P" + POWERPORTTYPELABEL_NEMA_L6_15_P PowerPortTypeLabel = "NEMA L6-15P" + POWERPORTTYPELABEL_NEMA_L6_20_P PowerPortTypeLabel = "NEMA L6-20P" + POWERPORTTYPELABEL_NEMA_L6_30_P PowerPortTypeLabel = "NEMA L6-30P" + POWERPORTTYPELABEL_NEMA_L6_50_P PowerPortTypeLabel = "NEMA L6-50P" + POWERPORTTYPELABEL_NEMA_L10_30_P PowerPortTypeLabel = "NEMA L10-30P" + POWERPORTTYPELABEL_NEMA_L14_20_P PowerPortTypeLabel = "NEMA L14-20P" + POWERPORTTYPELABEL_NEMA_L14_30_P PowerPortTypeLabel = "NEMA L14-30P" + POWERPORTTYPELABEL_NEMA_L14_50_P PowerPortTypeLabel = "NEMA L14-50P" + POWERPORTTYPELABEL_NEMA_L14_60_P PowerPortTypeLabel = "NEMA L14-60P" + POWERPORTTYPELABEL_NEMA_L15_20_P PowerPortTypeLabel = "NEMA L15-20P" + POWERPORTTYPELABEL_NEMA_L15_30_P PowerPortTypeLabel = "NEMA L15-30P" + POWERPORTTYPELABEL_NEMA_L15_50_P PowerPortTypeLabel = "NEMA L15-50P" + POWERPORTTYPELABEL_NEMA_L15_60_P PowerPortTypeLabel = "NEMA L15-60P" + POWERPORTTYPELABEL_NEMA_L21_20_P PowerPortTypeLabel = "NEMA L21-20P" + POWERPORTTYPELABEL_NEMA_L21_30_P PowerPortTypeLabel = "NEMA L21-30P" + POWERPORTTYPELABEL_NEMA_L22_20_P PowerPortTypeLabel = "NEMA L22-20P" + POWERPORTTYPELABEL_NEMA_L22_30_P PowerPortTypeLabel = "NEMA L22-30P" + POWERPORTTYPELABEL_CS6361_C PowerPortTypeLabel = "CS6361C" + POWERPORTTYPELABEL_CS6365_C PowerPortTypeLabel = "CS6365C" + POWERPORTTYPELABEL_CS8165_C PowerPortTypeLabel = "CS8165C" + POWERPORTTYPELABEL_CS8265_C PowerPortTypeLabel = "CS8265C" + POWERPORTTYPELABEL_CS8365_C PowerPortTypeLabel = "CS8365C" + POWERPORTTYPELABEL_CS8465_C PowerPortTypeLabel = "CS8465C" + POWERPORTTYPELABEL_ITA_TYPE_C__CEE_7_16 PowerPortTypeLabel = "ITA Type C (CEE 7/16)" + POWERPORTTYPELABEL_ITA_TYPE_E__CEE_7_6 PowerPortTypeLabel = "ITA Type E (CEE 7/6)" + POWERPORTTYPELABEL_ITA_TYPE_F__CEE_7_4 PowerPortTypeLabel = "ITA Type F (CEE 7/4)" + POWERPORTTYPELABEL_ITA_TYPE_E_F__CEE_7_7 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)" + POWERPORTTYPELABEL_ITA_TYPE_G__BS_1363 PowerPortTypeLabel = "ITA Type G (BS 1363)" + POWERPORTTYPELABEL_ITA_TYPE_H PowerPortTypeLabel = "ITA Type H" + POWERPORTTYPELABEL_ITA_TYPE_I PowerPortTypeLabel = "ITA Type I" + POWERPORTTYPELABEL_ITA_TYPE_J PowerPortTypeLabel = "ITA Type J" + POWERPORTTYPELABEL_ITA_TYPE_K PowerPortTypeLabel = "ITA Type K" + POWERPORTTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerPortTypeLabel = "ITA Type L (CEI 23-50)" + POWERPORTTYPELABEL_ITA_TYPE_M__BS_546 PowerPortTypeLabel = "ITA Type M (BS 546)" + POWERPORTTYPELABEL_ITA_TYPE_N PowerPortTypeLabel = "ITA Type N" + POWERPORTTYPELABEL_ITA_TYPE_O PowerPortTypeLabel = "ITA Type O" + POWERPORTTYPELABEL_USB_TYPE_A PowerPortTypeLabel = "USB Type A" + POWERPORTTYPELABEL_USB_TYPE_B PowerPortTypeLabel = "USB Type B" + POWERPORTTYPELABEL_USB_TYPE_C PowerPortTypeLabel = "USB Type C" + POWERPORTTYPELABEL_USB_MINI_A PowerPortTypeLabel = "USB Mini A" + POWERPORTTYPELABEL_USB_MINI_B PowerPortTypeLabel = "USB Mini B" + POWERPORTTYPELABEL_USB_MICRO_A PowerPortTypeLabel = "USB Micro A" + POWERPORTTYPELABEL_USB_MICRO_B PowerPortTypeLabel = "USB Micro B" + POWERPORTTYPELABEL_USB_MICRO_AB PowerPortTypeLabel = "USB Micro AB" + POWERPORTTYPELABEL_USB_3_0_TYPE_B PowerPortTypeLabel = "USB 3.0 Type B" + POWERPORTTYPELABEL_USB_3_0_MICRO_B PowerPortTypeLabel = "USB 3.0 Micro B" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerPortTypeLabel = "Molex Micro-Fit 1x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerPortTypeLabel = "Molex Micro-Fit 2x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerPortTypeLabel = "Molex Micro-Fit 2x4" + POWERPORTTYPELABEL_DC_TERMINAL PowerPortTypeLabel = "DC Terminal" + POWERPORTTYPELABEL_SAF_D_GRID PowerPortTypeLabel = "Saf-D-Grid" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__20_A PowerPortTypeLabel = "Neutrik powerCON (20A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__32_A PowerPortTypeLabel = "Neutrik powerCON (32A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerPortTypeLabel = "Neutrik powerCON TRUE1" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerPortTypeLabel = "Neutrik powerCON TRUE1 TOP" + POWERPORTTYPELABEL_UBIQUITI_SMART_POWER PowerPortTypeLabel = "Ubiquiti SmartPower" + POWERPORTTYPELABEL_HARDWIRED PowerPortTypeLabel = "Hardwired" + POWERPORTTYPELABEL_OTHER PowerPortTypeLabel = "Other" +) + +// All allowed values of PowerPortTypeLabel enum +var AllowedPowerPortTypeLabelEnumValues = []PowerPortTypeLabel{ + "C6", + "C8", + "C14", + "C16", + "C20", + "C22", + "P+N+E 4H", + "P+N+E 6H", + "P+N+E 9H", + "2P+E 4H", + "2P+E 6H", + "2P+E 9H", + "3P+E 4H", + "3P+E 6H", + "3P+E 9H", + "3P+N+E 4H", + "3P+N+E 6H", + "3P+N+E 9H", + "IEC 60906-1", + "2P+T 10A (NBR 14136)", + "2P+T 20A (NBR 14136)", + "NEMA 1-15P", + "NEMA 5-15P", + "NEMA 5-20P", + "NEMA 5-30P", + "NEMA 5-50P", + "NEMA 6-15P", + "NEMA 6-20P", + "NEMA 6-30P", + "NEMA 6-50P", + "NEMA 10-30P", + "NEMA 10-50P", + "NEMA 14-20P", + "NEMA 14-30P", + "NEMA 14-50P", + "NEMA 14-60P", + "NEMA 15-15P", + "NEMA 15-20P", + "NEMA 15-30P", + "NEMA 15-50P", + "NEMA 15-60P", + "NEMA L1-15P", + "NEMA L5-15P", + "NEMA L5-20P", + "NEMA L5-30P", + "NEMA L5-50P", + "NEMA L6-15P", + "NEMA L6-20P", + "NEMA L6-30P", + "NEMA L6-50P", + "NEMA L10-30P", + "NEMA L14-20P", + "NEMA L14-30P", + "NEMA L14-50P", + "NEMA L14-60P", + "NEMA L15-20P", + "NEMA L15-30P", + "NEMA L15-50P", + "NEMA L15-60P", + "NEMA L21-20P", + "NEMA L21-30P", + "NEMA L22-20P", + "NEMA L22-30P", + "CS6361C", + "CS6365C", + "CS8165C", + "CS8265C", + "CS8365C", + "CS8465C", + "ITA Type C (CEE 7/16)", + "ITA Type E (CEE 7/6)", + "ITA Type F (CEE 7/4)", + "ITA Type E/F (CEE 7/7)", + "ITA Type G (BS 1363)", + "ITA Type H", + "ITA Type I", + "ITA Type J", + "ITA Type K", + "ITA Type L (CEI 23-50)", + "ITA Type M (BS 546)", + "ITA Type N", + "ITA Type O", + "USB Type A", + "USB Type B", + "USB Type C", + "USB Mini A", + "USB Mini B", + "USB Micro A", + "USB Micro B", + "USB Micro AB", + "USB 3.0 Type B", + "USB 3.0 Micro B", + "Molex Micro-Fit 1x2", + "Molex Micro-Fit 2x2", + "Molex Micro-Fit 2x4", + "DC Terminal", + "Saf-D-Grid", + "Neutrik powerCON (20A)", + "Neutrik powerCON (32A)", + "Neutrik powerCON TRUE1", + "Neutrik powerCON TRUE1 TOP", + "Ubiquiti SmartPower", + "Hardwired", + "Other", +} + +func (v *PowerPortTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerPortTypeLabel(value) + for _, existing := range AllowedPowerPortTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerPortTypeLabel", value) +} + +// NewPowerPortTypeLabelFromValue returns a pointer to a valid PowerPortTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerPortTypeLabelFromValue(v string) (*PowerPortTypeLabel, error) { + ev := PowerPortTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerPortTypeLabel: valid values are %v", v, AllowedPowerPortTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerPortTypeLabel) IsValid() bool { + for _, existing := range AllowedPowerPortTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerPort_type_label value +func (v PowerPortTypeLabel) Ptr() *PowerPortTypeLabel { + return &v +} + +type NullablePowerPortTypeLabel struct { + value *PowerPortTypeLabel + isSet bool +} + +func (v NullablePowerPortTypeLabel) Get() *PowerPortTypeLabel { + return v.value +} + +func (v *NullablePowerPortTypeLabel) Set(val *PowerPortTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortTypeLabel(val *PowerPortTypeLabel) *NullablePowerPortTypeLabel { + return &NullablePowerPortTypeLabel{value: val, isSet: true} +} + +func (v NullablePowerPortTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_power_port_type_value.go b/model_power_port_type_value.go new file mode 100644 index 0000000000..874aa77f34 --- /dev/null +++ b/model_power_port_type_value.go @@ -0,0 +1,317 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PowerPortTypeValue * `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-20p` - NEMA L22-20P * `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 * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `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 +type PowerPortTypeValue string + +// List of PowerPort_type_value +const ( + POWERPORTTYPEVALUE_IEC_60320_C6 PowerPortTypeValue = "iec-60320-c6" + POWERPORTTYPEVALUE_IEC_60320_C8 PowerPortTypeValue = "iec-60320-c8" + POWERPORTTYPEVALUE_IEC_60320_C14 PowerPortTypeValue = "iec-60320-c14" + POWERPORTTYPEVALUE_IEC_60320_C16 PowerPortTypeValue = "iec-60320-c16" + POWERPORTTYPEVALUE_IEC_60320_C20 PowerPortTypeValue = "iec-60320-c20" + POWERPORTTYPEVALUE_IEC_60320_C22 PowerPortTypeValue = "iec-60320-c22" + POWERPORTTYPEVALUE_IEC_60309_P_N_E_4H PowerPortTypeValue = "iec-60309-p-n-e-4h" + POWERPORTTYPEVALUE_IEC_60309_P_N_E_6H PowerPortTypeValue = "iec-60309-p-n-e-6h" + POWERPORTTYPEVALUE_IEC_60309_P_N_E_9H PowerPortTypeValue = "iec-60309-p-n-e-9h" + POWERPORTTYPEVALUE_IEC_60309_2P_E_4H PowerPortTypeValue = "iec-60309-2p-e-4h" + POWERPORTTYPEVALUE_IEC_60309_2P_E_6H PowerPortTypeValue = "iec-60309-2p-e-6h" + POWERPORTTYPEVALUE_IEC_60309_2P_E_9H PowerPortTypeValue = "iec-60309-2p-e-9h" + POWERPORTTYPEVALUE_IEC_60309_3P_E_4H PowerPortTypeValue = "iec-60309-3p-e-4h" + POWERPORTTYPEVALUE_IEC_60309_3P_E_6H PowerPortTypeValue = "iec-60309-3p-e-6h" + POWERPORTTYPEVALUE_IEC_60309_3P_E_9H PowerPortTypeValue = "iec-60309-3p-e-9h" + POWERPORTTYPEVALUE_IEC_60309_3P_N_E_4H PowerPortTypeValue = "iec-60309-3p-n-e-4h" + POWERPORTTYPEVALUE_IEC_60309_3P_N_E_6H PowerPortTypeValue = "iec-60309-3p-n-e-6h" + POWERPORTTYPEVALUE_IEC_60309_3P_N_E_9H PowerPortTypeValue = "iec-60309-3p-n-e-9h" + POWERPORTTYPEVALUE_IEC_60906_1 PowerPortTypeValue = "iec-60906-1" + POWERPORTTYPEVALUE_NBR_14136_10A PowerPortTypeValue = "nbr-14136-10a" + POWERPORTTYPEVALUE_NBR_14136_20A PowerPortTypeValue = "nbr-14136-20a" + POWERPORTTYPEVALUE_NEMA_1_15P PowerPortTypeValue = "nema-1-15p" + POWERPORTTYPEVALUE_NEMA_5_15P PowerPortTypeValue = "nema-5-15p" + POWERPORTTYPEVALUE_NEMA_5_20P PowerPortTypeValue = "nema-5-20p" + POWERPORTTYPEVALUE_NEMA_5_30P PowerPortTypeValue = "nema-5-30p" + POWERPORTTYPEVALUE_NEMA_5_50P PowerPortTypeValue = "nema-5-50p" + POWERPORTTYPEVALUE_NEMA_6_15P PowerPortTypeValue = "nema-6-15p" + POWERPORTTYPEVALUE_NEMA_6_20P PowerPortTypeValue = "nema-6-20p" + POWERPORTTYPEVALUE_NEMA_6_30P PowerPortTypeValue = "nema-6-30p" + POWERPORTTYPEVALUE_NEMA_6_50P PowerPortTypeValue = "nema-6-50p" + POWERPORTTYPEVALUE_NEMA_10_30P PowerPortTypeValue = "nema-10-30p" + POWERPORTTYPEVALUE_NEMA_10_50P PowerPortTypeValue = "nema-10-50p" + POWERPORTTYPEVALUE_NEMA_14_20P PowerPortTypeValue = "nema-14-20p" + POWERPORTTYPEVALUE_NEMA_14_30P PowerPortTypeValue = "nema-14-30p" + POWERPORTTYPEVALUE_NEMA_14_50P PowerPortTypeValue = "nema-14-50p" + POWERPORTTYPEVALUE_NEMA_14_60P PowerPortTypeValue = "nema-14-60p" + POWERPORTTYPEVALUE_NEMA_15_15P PowerPortTypeValue = "nema-15-15p" + POWERPORTTYPEVALUE_NEMA_15_20P PowerPortTypeValue = "nema-15-20p" + POWERPORTTYPEVALUE_NEMA_15_30P PowerPortTypeValue = "nema-15-30p" + POWERPORTTYPEVALUE_NEMA_15_50P PowerPortTypeValue = "nema-15-50p" + POWERPORTTYPEVALUE_NEMA_15_60P PowerPortTypeValue = "nema-15-60p" + POWERPORTTYPEVALUE_NEMA_L1_15P PowerPortTypeValue = "nema-l1-15p" + POWERPORTTYPEVALUE_NEMA_L5_15P PowerPortTypeValue = "nema-l5-15p" + POWERPORTTYPEVALUE_NEMA_L5_20P PowerPortTypeValue = "nema-l5-20p" + POWERPORTTYPEVALUE_NEMA_L5_30P PowerPortTypeValue = "nema-l5-30p" + POWERPORTTYPEVALUE_NEMA_L5_50P PowerPortTypeValue = "nema-l5-50p" + POWERPORTTYPEVALUE_NEMA_L6_15P PowerPortTypeValue = "nema-l6-15p" + POWERPORTTYPEVALUE_NEMA_L6_20P PowerPortTypeValue = "nema-l6-20p" + POWERPORTTYPEVALUE_NEMA_L6_30P PowerPortTypeValue = "nema-l6-30p" + POWERPORTTYPEVALUE_NEMA_L6_50P PowerPortTypeValue = "nema-l6-50p" + POWERPORTTYPEVALUE_NEMA_L10_30P PowerPortTypeValue = "nema-l10-30p" + POWERPORTTYPEVALUE_NEMA_L14_20P PowerPortTypeValue = "nema-l14-20p" + POWERPORTTYPEVALUE_NEMA_L14_30P PowerPortTypeValue = "nema-l14-30p" + POWERPORTTYPEVALUE_NEMA_L14_50P PowerPortTypeValue = "nema-l14-50p" + POWERPORTTYPEVALUE_NEMA_L14_60P PowerPortTypeValue = "nema-l14-60p" + POWERPORTTYPEVALUE_NEMA_L15_20P PowerPortTypeValue = "nema-l15-20p" + POWERPORTTYPEVALUE_NEMA_L15_30P PowerPortTypeValue = "nema-l15-30p" + POWERPORTTYPEVALUE_NEMA_L15_50P PowerPortTypeValue = "nema-l15-50p" + POWERPORTTYPEVALUE_NEMA_L15_60P PowerPortTypeValue = "nema-l15-60p" + POWERPORTTYPEVALUE_NEMA_L21_20P PowerPortTypeValue = "nema-l21-20p" + POWERPORTTYPEVALUE_NEMA_L21_30P PowerPortTypeValue = "nema-l21-30p" + POWERPORTTYPEVALUE_NEMA_L22_20P PowerPortTypeValue = "nema-l22-20p" + POWERPORTTYPEVALUE_NEMA_L22_30P PowerPortTypeValue = "nema-l22-30p" + POWERPORTTYPEVALUE_CS6361C PowerPortTypeValue = "cs6361c" + POWERPORTTYPEVALUE_CS6365C PowerPortTypeValue = "cs6365c" + POWERPORTTYPEVALUE_CS8165C PowerPortTypeValue = "cs8165c" + POWERPORTTYPEVALUE_CS8265C PowerPortTypeValue = "cs8265c" + POWERPORTTYPEVALUE_CS8365C PowerPortTypeValue = "cs8365c" + POWERPORTTYPEVALUE_CS8465C PowerPortTypeValue = "cs8465c" + POWERPORTTYPEVALUE_ITA_C PowerPortTypeValue = "ita-c" + POWERPORTTYPEVALUE_ITA_E PowerPortTypeValue = "ita-e" + POWERPORTTYPEVALUE_ITA_F PowerPortTypeValue = "ita-f" + POWERPORTTYPEVALUE_ITA_EF PowerPortTypeValue = "ita-ef" + POWERPORTTYPEVALUE_ITA_G PowerPortTypeValue = "ita-g" + POWERPORTTYPEVALUE_ITA_H PowerPortTypeValue = "ita-h" + POWERPORTTYPEVALUE_ITA_I PowerPortTypeValue = "ita-i" + POWERPORTTYPEVALUE_ITA_J PowerPortTypeValue = "ita-j" + POWERPORTTYPEVALUE_ITA_K PowerPortTypeValue = "ita-k" + POWERPORTTYPEVALUE_ITA_L PowerPortTypeValue = "ita-l" + POWERPORTTYPEVALUE_ITA_M PowerPortTypeValue = "ita-m" + POWERPORTTYPEVALUE_ITA_N PowerPortTypeValue = "ita-n" + POWERPORTTYPEVALUE_ITA_O PowerPortTypeValue = "ita-o" + POWERPORTTYPEVALUE_USB_A PowerPortTypeValue = "usb-a" + POWERPORTTYPEVALUE_USB_B PowerPortTypeValue = "usb-b" + POWERPORTTYPEVALUE_USB_C PowerPortTypeValue = "usb-c" + POWERPORTTYPEVALUE_USB_MINI_A PowerPortTypeValue = "usb-mini-a" + POWERPORTTYPEVALUE_USB_MINI_B PowerPortTypeValue = "usb-mini-b" + POWERPORTTYPEVALUE_USB_MICRO_A PowerPortTypeValue = "usb-micro-a" + POWERPORTTYPEVALUE_USB_MICRO_B PowerPortTypeValue = "usb-micro-b" + POWERPORTTYPEVALUE_USB_MICRO_AB PowerPortTypeValue = "usb-micro-ab" + POWERPORTTYPEVALUE_USB_3_B PowerPortTypeValue = "usb-3-b" + POWERPORTTYPEVALUE_USB_3_MICRO_B PowerPortTypeValue = "usb-3-micro-b" + POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_1X2 PowerPortTypeValue = "molex-micro-fit-1x2" + POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_2X2 PowerPortTypeValue = "molex-micro-fit-2x2" + POWERPORTTYPEVALUE_MOLEX_MICRO_FIT_2X4 PowerPortTypeValue = "molex-micro-fit-2x4" + POWERPORTTYPEVALUE_DC_TERMINAL PowerPortTypeValue = "dc-terminal" + POWERPORTTYPEVALUE_SAF_D_GRID PowerPortTypeValue = "saf-d-grid" + POWERPORTTYPEVALUE_NEUTRIK_POWERCON_20 PowerPortTypeValue = "neutrik-powercon-20" + POWERPORTTYPEVALUE_NEUTRIK_POWERCON_32 PowerPortTypeValue = "neutrik-powercon-32" + POWERPORTTYPEVALUE_NEUTRIK_POWERCON_TRUE1 PowerPortTypeValue = "neutrik-powercon-true1" + POWERPORTTYPEVALUE_NEUTRIK_POWERCON_TRUE1_TOP PowerPortTypeValue = "neutrik-powercon-true1-top" + POWERPORTTYPEVALUE_UBIQUITI_SMARTPOWER PowerPortTypeValue = "ubiquiti-smartpower" + POWERPORTTYPEVALUE_HARDWIRED PowerPortTypeValue = "hardwired" + POWERPORTTYPEVALUE_OTHER PowerPortTypeValue = "other" + POWERPORTTYPEVALUE_EMPTY PowerPortTypeValue = "" +) + +// All allowed values of PowerPortTypeValue enum +var AllowedPowerPortTypeValueEnumValues = []PowerPortTypeValue{ + "iec-60320-c6", + "iec-60320-c8", + "iec-60320-c14", + "iec-60320-c16", + "iec-60320-c20", + "iec-60320-c22", + "iec-60309-p-n-e-4h", + "iec-60309-p-n-e-6h", + "iec-60309-p-n-e-9h", + "iec-60309-2p-e-4h", + "iec-60309-2p-e-6h", + "iec-60309-2p-e-9h", + "iec-60309-3p-e-4h", + "iec-60309-3p-e-6h", + "iec-60309-3p-e-9h", + "iec-60309-3p-n-e-4h", + "iec-60309-3p-n-e-6h", + "iec-60309-3p-n-e-9h", + "iec-60906-1", + "nbr-14136-10a", + "nbr-14136-20a", + "nema-1-15p", + "nema-5-15p", + "nema-5-20p", + "nema-5-30p", + "nema-5-50p", + "nema-6-15p", + "nema-6-20p", + "nema-6-30p", + "nema-6-50p", + "nema-10-30p", + "nema-10-50p", + "nema-14-20p", + "nema-14-30p", + "nema-14-50p", + "nema-14-60p", + "nema-15-15p", + "nema-15-20p", + "nema-15-30p", + "nema-15-50p", + "nema-15-60p", + "nema-l1-15p", + "nema-l5-15p", + "nema-l5-20p", + "nema-l5-30p", + "nema-l5-50p", + "nema-l6-15p", + "nema-l6-20p", + "nema-l6-30p", + "nema-l6-50p", + "nema-l10-30p", + "nema-l14-20p", + "nema-l14-30p", + "nema-l14-50p", + "nema-l14-60p", + "nema-l15-20p", + "nema-l15-30p", + "nema-l15-50p", + "nema-l15-60p", + "nema-l21-20p", + "nema-l21-30p", + "nema-l22-20p", + "nema-l22-30p", + "cs6361c", + "cs6365c", + "cs8165c", + "cs8265c", + "cs8365c", + "cs8465c", + "ita-c", + "ita-e", + "ita-f", + "ita-ef", + "ita-g", + "ita-h", + "ita-i", + "ita-j", + "ita-k", + "ita-l", + "ita-m", + "ita-n", + "ita-o", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", + "usb-3-b", + "usb-3-micro-b", + "molex-micro-fit-1x2", + "molex-micro-fit-2x2", + "molex-micro-fit-2x4", + "dc-terminal", + "saf-d-grid", + "neutrik-powercon-20", + "neutrik-powercon-32", + "neutrik-powercon-true1", + "neutrik-powercon-true1-top", + "ubiquiti-smartpower", + "hardwired", + "other", + "", +} + +func (v *PowerPortTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerPortTypeValue(value) + for _, existing := range AllowedPowerPortTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerPortTypeValue", value) +} + +// NewPowerPortTypeValueFromValue returns a pointer to a valid PowerPortTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerPortTypeValueFromValue(v string) (*PowerPortTypeValue, error) { + ev := PowerPortTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerPortTypeValue: valid values are %v", v, AllowedPowerPortTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerPortTypeValue) IsValid() bool { + for _, existing := range AllowedPowerPortTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerPort_type_value value +func (v PowerPortTypeValue) Ptr() *PowerPortTypeValue { + return &v +} + +type NullablePowerPortTypeValue struct { + value *PowerPortTypeValue + isSet bool +} + +func (v NullablePowerPortTypeValue) Get() *PowerPortTypeValue { + return v.value +} + +func (v *NullablePowerPortTypeValue) Set(val *PowerPortTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortTypeValue(val *PowerPortTypeValue) *NullablePowerPortTypeValue { + return &NullablePowerPortTypeValue{value: val, isSet: true} +} + +func (v NullablePowerPortTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_prefix.go b/model_prefix.go index 69448e57b1..e138c9decc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Prefix type satisfies the MappedNullable interface at compile time @@ -21,29 +21,32 @@ 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 NullableSite `json:"site,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Status *PrefixStatus `json:"status,omitempty"` - Role NullableRole `json:"role,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Vlan NullableBriefVLAN `json:"vlan,omitempty"` + Status *PrefixStatus `json:"status,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Children int32 `json:"children"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -53,15 +56,13 @@ type _Prefix Prefix // 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 NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32) *Prefix { +func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, children int32, depth int32) *Prefix { this := Prefix{} this.Id = id this.Url = url this.Display = display this.Family = family this.Prefix = prefix - this.Created = created - this.LastUpdated = lastUpdated this.Children = children this.Depth = depth return &this @@ -99,6 +100,7 @@ func (o *Prefix) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Prefix) GetUrl() string { if o == nil { @@ -123,6 +125,39 @@ func (o *Prefix) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Prefix) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Prefix) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Prefix) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Prefix) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Prefix) GetDisplay() string { if o == nil { @@ -147,6 +182,7 @@ func (o *Prefix) SetDisplay(v string) { o.Display = v } + // GetFamily returns the Family field value func (o *Prefix) GetFamily() AggregateFamily { if o == nil { @@ -171,6 +207,7 @@ func (o *Prefix) SetFamily(v AggregateFamily) { o.Family = v } + // GetPrefix returns the Prefix field value func (o *Prefix) GetPrefix() string { if o == nil { @@ -195,96 +232,170 @@ func (o *Prefix) SetPrefix(v string) { o.Prefix = v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetSite() Site { - if o == nil || IsNil(o.Site.Get()) { - var ret Site + +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Prefix) GetVrf() BriefVRF { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRF return ret } - return *o.Site.Get() + return *o.Vrf.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetVrfOk returns a tuple with the Vrf 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 *Prefix) GetSiteOk() (*Site, bool) { +func (o *Prefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.Vrf.Get(), o.Vrf.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *Prefix) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasVrf returns a boolean if a field has been set. +func (o *Prefix) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *Prefix) SetSite(v Site) { - o.Site.Set(&v) +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Prefix) SetVrf(v BriefVRF) { + o.Vrf.Set(&v) +} +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *Prefix) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *Prefix) UnsetVrf() { + o.Vrf.Unset() +} + +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Prefix) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string + return ret + } + return *o.ScopeType.Get() +} + +// GetScopeTypeOk returns a tuple with the ScopeType 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 *Prefix) GetScopeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ScopeType.Get(), o.ScopeType.IsSet() +} + +// HasScopeType returns a boolean if a field has been set. +func (o *Prefix) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { + return true + } + + return false } -// SetSiteNil sets the value for Site to be an explicit nil -func (o *Prefix) SetSiteNil() { - o.Site.Set(nil) +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *Prefix) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *Prefix) SetScopeTypeNil() { + o.ScopeType.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *Prefix) UnsetSite() { - o.Site.Unset() +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *Prefix) UnsetScopeType() { + o.ScopeType.Unset() } -// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVrf() VRF { - if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Prefix) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 return ret } - return *o.Vrf.Get() + return *o.ScopeId.Get() } -// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// GetScopeIdOk returns a tuple with the ScopeId 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 *Prefix) GetVrfOk() (*VRF, bool) { +func (o *Prefix) GetScopeIdOk() (*int32, bool) { if o == nil { return nil, false } - return o.Vrf.Get(), o.Vrf.IsSet() + return o.ScopeId.Get(), o.ScopeId.IsSet() } -// HasVrf returns a boolean if a field has been set. -func (o *Prefix) HasVrf() bool { - if o != nil && o.Vrf.IsSet() { +// HasScopeId returns a boolean if a field has been set. +func (o *Prefix) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { return true } return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Prefix) SetVrf(v VRF) { - o.Vrf.Set(&v) +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *Prefix) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *Prefix) SetScopeIdNil() { + o.ScopeId.Set(nil) } -// SetVrfNil sets the value for Vrf to be an explicit nil -func (o *Prefix) SetVrfNil() { - o.Vrf.Set(nil) +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *Prefix) UnsetScopeId() { + o.ScopeId.Unset() } -// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -func (o *Prefix) UnsetVrf() { - o.Vrf.Unset() +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Prefix) GetScope() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope 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 *Prefix) GetScopeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return &o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *Prefix) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given interface{} and assigns it to the Scope field. +func (o *Prefix) SetScope(v interface{}) { + o.Scope = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetTenant() Tenant { +func (o *Prefix) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -293,7 +404,7 @@ func (o *Prefix) GetTenant() Tenant { // 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 *Prefix) GetTenantOk() (*Tenant, bool) { +func (o *Prefix) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -309,11 +420,10 @@ func (o *Prefix) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Prefix) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Prefix) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Prefix) SetTenantNil() { o.Tenant.Set(nil) @@ -325,9 +435,9 @@ func (o *Prefix) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVlan() VLAN { +func (o *Prefix) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -336,7 +446,7 @@ func (o *Prefix) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan 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 *Prefix) GetVlanOk() (*VLAN, bool) { +func (o *Prefix) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -352,11 +462,10 @@ func (o *Prefix) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *Prefix) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *Prefix) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *Prefix) SetVlanNil() { o.Vlan.Set(nil) @@ -400,9 +509,9 @@ func (o *Prefix) SetStatus(v PrefixStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetRole() Role { +func (o *Prefix) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -411,7 +520,7 @@ func (o *Prefix) GetRole() Role { // GetRoleOk returns a tuple with the Role 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 *Prefix) GetRoleOk() (*Role, bool) { +func (o *Prefix) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -427,11 +536,10 @@ func (o *Prefix) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *Prefix) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *Prefix) SetRole(v BriefRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *Prefix) SetRoleNil() { o.Role.Set(nil) @@ -634,18 +742,16 @@ func (o *Prefix) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Prefix) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *Prefix) GetCreatedOk() (*time.Time, bool) { @@ -655,23 +761,39 @@ func (o *Prefix) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Prefix) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Prefix) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Prefix) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Prefix) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Prefix) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Prefix) GetLastUpdatedOk() (*time.Time, bool) { @@ -681,10 +803,28 @@ func (o *Prefix) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Prefix) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Prefix) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Prefix) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Prefix) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetChildren returns the Children field value func (o *Prefix) GetChildren() int32 { @@ -710,6 +850,7 @@ func (o *Prefix) SetChildren(v int32) { o.Children = v } + // GetDepth returns the Depth field value func (o *Prefix) GetDepth() int32 { if o == nil { @@ -734,8 +875,9 @@ func (o *Prefix) SetDepth(v int32) { o.Depth = v } + func (o Prefix) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -746,15 +888,24 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } + if o.Scope != nil { + toSerialize["scope"] = o.Scope + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -785,8 +936,12 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["children"] = o.Children toSerialize["_depth"] = o.Depth @@ -807,26 +962,41 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { "display", "family", "prefix", - "created", - "last_updated", "children", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPrefix := _Prefix{} err = json.Unmarshal(data, &varPrefix) @@ -842,11 +1012,14 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") - delete(additionalProperties, "site") delete(additionalProperties, "vrf") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") + delete(additionalProperties, "scope") delete(additionalProperties, "tenant") delete(additionalProperties, "vlan") delete(additionalProperties, "status") @@ -902,3 +1075,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 5634c83a7b..a26534dd91 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,22 @@ var _ MappedNullable = &PrefixRequest{} // PrefixRequest Adds support for custom fields and tags. type PrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Status *PrefixStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Prefix string `json:"prefix"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Status *PrefixStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully 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{} } @@ -82,96 +83,137 @@ func (o *PrefixRequest) SetPrefix(v string) { o.Prefix = v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetSite() SiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PrefixRequest) GetVrf() BriefVRFRequest { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRFRequest return ret } - return *o.Site.Get() + return *o.Vrf.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetVrfOk returns a tuple with the Vrf 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 *PrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.Vrf.Get(), o.Vrf.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *PrefixRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasVrf returns a boolean if a field has been set. +func (o *PrefixRequest) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PrefixRequest) SetSite(v SiteRequest) { - o.Site.Set(&v) +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PrefixRequest) SetVrf(v BriefVRFRequest) { + o.Vrf.Set(&v) } - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *PrefixRequest) SetSiteNil() { - o.Site.Set(nil) +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *PrefixRequest) SetVrfNil() { + o.Vrf.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *PrefixRequest) UnsetSite() { - o.Site.Unset() +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *PrefixRequest) UnsetVrf() { + o.Vrf.Unset() } -// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVrf() VRFRequest { - if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PrefixRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string return ret } - return *o.Vrf.Get() + return *o.ScopeType.Get() } -// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// GetScopeTypeOk returns a tuple with the ScopeType 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 *PrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PrefixRequest) GetScopeTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Vrf.Get(), o.Vrf.IsSet() + return o.ScopeType.Get(), o.ScopeType.IsSet() } -// HasVrf returns a boolean if a field has been set. -func (o *PrefixRequest) HasVrf() bool { - if o != nil && o.Vrf.IsSet() { +// HasScopeType returns a boolean if a field has been set. +func (o *PrefixRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { return true } return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PrefixRequest) SetVrf(v VRFRequest) { - o.Vrf.Set(&v) +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *PrefixRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *PrefixRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) } -// SetVrfNil sets the value for Vrf to be an explicit nil -func (o *PrefixRequest) SetVrfNil() { - o.Vrf.Set(nil) +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *PrefixRequest) UnsetScopeType() { + o.ScopeType.Unset() } -// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -func (o *PrefixRequest) UnsetVrf() { - o.Vrf.Unset() +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PrefixRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *PrefixRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *PrefixRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *PrefixRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *PrefixRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *PrefixRequest) UnsetScopeId() { + o.ScopeId.Unset() } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetTenant() TenantRequest { +func (o *PrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +222,7 @@ func (o *PrefixRequest) GetTenant() TenantRequest { // 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 *PrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,11 +238,10 @@ func (o *PrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PrefixRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -212,9 +253,9 @@ func (o *PrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVlan() VLANRequest { +func (o *PrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +264,7 @@ func (o *PrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan 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 *PrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,11 +280,10 @@ func (o *PrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *PrefixRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -287,9 +327,9 @@ func (o *PrefixRequest) SetStatus(v PrefixStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetRole() RoleRequest { +func (o *PrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +338,7 @@ func (o *PrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *PrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,11 +354,10 @@ func (o *PrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PrefixRequest) SetRole(v BriefRoleRequest) { 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 +561,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 } @@ -532,12 +571,15 @@ func (o PrefixRequest) MarshalJSON() ([]byte, error) { func (o PrefixRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["prefix"] = o.Prefix - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -584,20 +626,37 @@ func (o *PrefixRequest) UnmarshalJSON(data []byte) (err error) { "prefix", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varPrefixRequest := _PrefixRequest{} err = json.Unmarshal(data, &varPrefixRequest) @@ -612,8 +671,9 @@ func (o *PrefixRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "prefix") - delete(additionalProperties, "site") delete(additionalProperties, "vrf") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "tenant") delete(additionalProperties, "vlan") delete(additionalProperties, "status") @@ -665,3 +725,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 f2406410f9..f69d81751e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PrefixStatus{} // PrefixStatus struct for PrefixStatus type PrefixStatus struct { - Value *PrefixStatusValue `json:"value,omitempty"` - Label *PrefixStatusLabel `json:"label,omitempty"` + Value *PrefixStatusValue `json:"value,omitempty"` + Label *PrefixStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PrefixStatus) SetLabel(v PrefixStatusLabel) { } func (o PrefixStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullablePrefixStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go index 41bac8bf79..112e8e3a6c 100644 --- a/model_prefix_status_label.go +++ b/model_prefix_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PrefixStatusLabel string // List of Prefix_status_label const ( - PREFIXSTATUSLABEL_CONTAINER PrefixStatusLabel = "Container" - PREFIXSTATUSLABEL_ACTIVE PrefixStatusLabel = "Active" - PREFIXSTATUSLABEL_RESERVED PrefixStatusLabel = "Reserved" + PREFIXSTATUSLABEL_CONTAINER PrefixStatusLabel = "Container" + PREFIXSTATUSLABEL_ACTIVE PrefixStatusLabel = "Active" + PREFIXSTATUSLABEL_RESERVED PrefixStatusLabel = "Reserved" PREFIXSTATUSLABEL_DEPRECATED PrefixStatusLabel = "Deprecated" ) @@ -112,3 +112,4 @@ func (v *NullablePrefixStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go index 7e225f7006..58ccbec9a5 100644 --- a/model_prefix_status_value.go +++ b/model_prefix_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type PrefixStatusValue string // List of Prefix_status_value const ( - PREFIXSTATUSVALUE_CONTAINER PrefixStatusValue = "container" - PREFIXSTATUSVALUE_ACTIVE PrefixStatusValue = "active" - PREFIXSTATUSVALUE_RESERVED PrefixStatusValue = "reserved" + PREFIXSTATUSVALUE_CONTAINER PrefixStatusValue = "container" + PREFIXSTATUSVALUE_ACTIVE PrefixStatusValue = "active" + PREFIXSTATUSVALUE_RESERVED PrefixStatusValue = "reserved" PREFIXSTATUSVALUE_DEPRECATED PrefixStatusValue = "deprecated" ) @@ -112,3 +112,4 @@ func (v *NullablePrefixStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_provider.go b/model_provider.go index a368b3c0b1..5745cee4ed 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,22 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Accounts []NestedProviderAccount `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []ASN `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -80,6 +89,7 @@ func (o *Provider) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Provider) GetUrl() string { if o == nil { @@ -104,6 +114,39 @@ func (o *Provider) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Provider) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Provider) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Provider) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Provider) GetDisplay() string { if o == nil { @@ -128,6 +171,7 @@ func (o *Provider) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Provider) GetName() string { if o == nil { @@ -152,6 +196,7 @@ func (o *Provider) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Provider) GetSlug() string { if o == nil { @@ -176,6 +221,39 @@ func (o *Provider) SetSlug(v string) { o.Slug = v } + +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *Provider) GetAccounts() []NestedProviderAccount { + if o == nil || IsNil(o.Accounts) { + var ret []NestedProviderAccount + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAccountsOk() ([]NestedProviderAccount, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *Provider) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []NestedProviderAccount and assigns it to the Accounts field. +func (o *Provider) SetAccounts(v []NestedProviderAccount) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Provider) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -208,6 +286,218 @@ func (o *Provider) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Provider) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Provider) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Provider) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Provider) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Provider) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Provider) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Provider) 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 *Provider) 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 *Provider) 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 *Provider) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Provider) 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 *Provider) 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 *Provider) 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 *Provider) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Provider) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Provider) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Provider) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Provider) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Provider) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Provider) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Provider) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Provider) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Provider) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Provider) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Provider) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Provider) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + // GetCircuitCount returns the CircuitCount field value func (o *Provider) GetCircuitCount() int64 { if o == nil { @@ -232,8 +522,9 @@ func (o *Provider) SetCircuitCount(v int64) { o.CircuitCount = v } + func (o Provider) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -244,12 +535,36 @@ func (o Provider) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { @@ -272,20 +587,37 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { "circuit_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varProvider := _Provider{} err = json.Unmarshal(data, &varProvider) @@ -301,10 +633,18 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "circuit_count") o.AdditionalProperties = additionalProperties } @@ -347,3 +687,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 e1b668c13a..b47c8d5505 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ProviderAccount type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ 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 Provider `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Provider BriefProvider `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,7 +43,7 @@ type _ProviderAccount ProviderAccount // 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 NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { +func NewProviderAccount(id int32, url string, display string, provider BriefProvider, account string) *ProviderAccount { this := ProviderAccount{} this.Id = id this.Url = url @@ -51,8 +52,6 @@ func NewProviderAccount(id int32, url string, display string, provider Provider, var name string = "" this.Name = &name this.Account = account - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -90,6 +89,7 @@ func (o *ProviderAccount) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ProviderAccount) GetUrl() string { if o == nil { @@ -114,6 +114,39 @@ func (o *ProviderAccount) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ProviderAccount) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ProviderAccount) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ProviderAccount) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ProviderAccount) GetDisplay() string { if o == nil { @@ -138,10 +171,11 @@ func (o *ProviderAccount) SetDisplay(v string) { o.Display = v } + // GetProvider returns the Provider field value -func (o *ProviderAccount) GetProvider() Provider { +func (o *ProviderAccount) GetProvider() BriefProvider { if o == nil { - var ret Provider + var ret BriefProvider return ret } @@ -150,7 +184,7 @@ func (o *ProviderAccount) GetProvider() Provider { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { +func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool) { if o == nil { return nil, false } @@ -158,10 +192,11 @@ func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { } // SetProvider sets field value -func (o *ProviderAccount) SetProvider(v Provider) { +func (o *ProviderAccount) SetProvider(v BriefProvider) { o.Provider = v } + // GetName returns the Name field value if set, zero value otherwise. func (o *ProviderAccount) GetName() string { if o == nil || IsNil(o.Name) { @@ -218,6 +253,7 @@ func (o *ProviderAccount) SetAccount(v string) { o.Account = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderAccount) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -346,18 +382,16 @@ func (o *ProviderAccount) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProviderAccount) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ProviderAccount) GetCreatedOk() (*time.Time, bool) { @@ -367,23 +401,39 @@ func (o *ProviderAccount) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ProviderAccount) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ProviderAccount) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ProviderAccount) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ProviderAccount) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ProviderAccount) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ProviderAccount) GetLastUpdatedOk() (*time.Time, bool) { @@ -393,13 +443,31 @@ func (o *ProviderAccount) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ProviderAccount) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ProviderAccount) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ProviderAccount) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ProviderAccount) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ProviderAccount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -410,6 +478,9 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["provider"] = o.Provider if !IsNil(o.Name) { @@ -428,8 +499,12 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -448,24 +523,39 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { "display", "provider", "account", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varProviderAccount := _ProviderAccount{} err = json.Unmarshal(data, &varProviderAccount) @@ -481,6 +571,7 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "provider") delete(additionalProperties, "name") @@ -532,3 +623,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 feca4b6eaa..de56bb93e8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &ProviderAccountRequest{} // ProviderAccountRequest Adds support for custom fields and tags. type ProviderAccountRequest struct { - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `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{} } @@ -32,8 +36,9 @@ type _ProviderAccountRequest ProviderAccountRequest // 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 NewProviderAccountRequest(account string) *ProviderAccountRequest { +func NewProviderAccountRequest(provider BriefProviderRequest, account string) *ProviderAccountRequest { this := ProviderAccountRequest{} + this.Provider = provider var name string = "" this.Name = &name this.Account = account @@ -50,6 +55,31 @@ func NewProviderAccountRequestWithDefaults() *ProviderAccountRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + + // GetName returns the Name field value if set, zero value otherwise. func (o *ProviderAccountRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -106,6 +136,7 @@ func (o *ProviderAccountRequest) SetAccount(v string) { o.Account = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderAccountRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -138,8 +169,104 @@ func (o *ProviderAccountRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderAccountRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderAccountRequest) 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 *ProviderAccountRequest) 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 *ProviderAccountRequest) 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 *ProviderAccountRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderAccountRequest) 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 *ProviderAccountRequest) 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 *ProviderAccountRequest) 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 *ProviderAccountRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -148,6 +275,7 @@ func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -155,6 +283,15 @@ func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -168,23 +305,41 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "account", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varProviderAccountRequest := _ProviderAccountRequest{} err = json.Unmarshal(data, &varProviderAccountRequest) @@ -198,9 +353,13 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") delete(additionalProperties, "account") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -242,3 +401,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 213b6174c2..363b98b54d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,19 @@ 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"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Provider BriefProvider `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -34,11 +43,12 @@ type _ProviderNetwork ProviderNetwork // 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 NewProviderNetwork(id int32, url string, display string, name string) *ProviderNetwork { +func NewProviderNetwork(id int32, url string, display string, provider BriefProvider, name string) *ProviderNetwork { this := ProviderNetwork{} this.Id = id this.Url = url this.Display = display + this.Provider = provider this.Name = name return &this } @@ -75,6 +85,7 @@ func (o *ProviderNetwork) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ProviderNetwork) GetUrl() string { if o == nil { @@ -99,6 +110,39 @@ func (o *ProviderNetwork) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ProviderNetwork) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ProviderNetwork) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ProviderNetwork) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ProviderNetwork) GetDisplay() string { if o == nil { @@ -123,6 +167,32 @@ func (o *ProviderNetwork) SetDisplay(v string) { o.Display = v } + +// GetProvider returns the Provider field value +func (o *ProviderNetwork) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetwork) SetProvider(v BriefProvider) { + o.Provider = v +} + + // GetName returns the Name field value func (o *ProviderNetwork) GetName() string { if o == nil { @@ -147,6 +217,39 @@ func (o *ProviderNetwork) SetName(v string) { o.Name = v } + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetwork) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetwork) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetwork) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetwork) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,8 +282,188 @@ func (o *ProviderNetwork) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetwork) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetwork) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetwork) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetwork) 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 *ProviderNetwork) 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 *ProviderNetwork) 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 *ProviderNetwork) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetwork) 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 *ProviderNetwork) 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 *ProviderNetwork) 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 *ProviderNetwork) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProviderNetwork) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *ProviderNetwork) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *ProviderNetwork) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *ProviderNetwork) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ProviderNetwork) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ProviderNetwork) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProviderNetwork) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *ProviderNetwork) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *ProviderNetwork) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ProviderNetwork) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ProviderNetwork) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o ProviderNetwork) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -191,11 +474,33 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -212,23 +517,41 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", + "provider", "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varProviderNetwork := _ProviderNetwork{} err = json.Unmarshal(data, &varProviderNetwork) @@ -244,9 +567,17 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -288,3 +619,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 05b023aca2..a0ed86e824 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &ProviderNetworkRequest{} // ProviderNetworkRequest Adds support for custom fields and tags. type ProviderNetworkRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `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{} } @@ -31,8 +36,9 @@ type _ProviderNetworkRequest ProviderNetworkRequest // 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 NewProviderNetworkRequest(name string) *ProviderNetworkRequest { +func NewProviderNetworkRequest(provider BriefProviderRequest, name string) *ProviderNetworkRequest { this := ProviderNetworkRequest{} + this.Provider = provider this.Name = name return &this } @@ -45,6 +51,31 @@ func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + + // GetName returns the Name field value func (o *ProviderNetworkRequest) GetName() string { if o == nil { @@ -69,6 +100,39 @@ func (o *ProviderNetworkRequest) SetName(v string) { o.Name = v } + +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetworkRequest) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetworkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +165,104 @@ func (o *ProviderNetworkRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetworkRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) 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 *ProviderNetworkRequest) 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 *ProviderNetworkRequest) 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 *ProviderNetworkRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) 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 *ProviderNetworkRequest) 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 *ProviderNetworkRequest) 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 *ProviderNetworkRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -111,10 +271,23 @@ func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { func (o ProviderNetworkRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,23 +301,41 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varProviderNetworkRequest := _ProviderNetworkRequest{} err = json.Unmarshal(data, &varProviderNetworkRequest) @@ -158,8 +349,13 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -201,3 +397,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 1edfe34ee9..9f91a60276 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,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"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -72,6 +77,7 @@ func (o *ProviderRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *ProviderRequest) GetSlug() string { if o == nil { @@ -96,6 +102,39 @@ func (o *ProviderRequest) SetSlug(v string) { o.Slug = v } + +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *ProviderRequest) GetAccounts() []int32 { + if o == nil || IsNil(o.Accounts) { + var ret []int32 + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAccountsOk() ([]int32, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *ProviderRequest) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []int32 and assigns it to the Accounts field. +func (o *ProviderRequest) SetAccounts(v []int32) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,8 +167,136 @@ func (o *ProviderRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *ProviderRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *ProviderRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *ProviderRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderRequest) 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 *ProviderRequest) 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 *ProviderRequest) 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 *ProviderRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderRequest) 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 *ProviderRequest) 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 *ProviderRequest) 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 *ProviderRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -140,9 +307,24 @@ func (o ProviderRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -160,20 +342,37 @@ func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varProviderRequest := _ProviderRequest{} err = json.Unmarshal(data, &varProviderRequest) @@ -189,7 +388,12 @@ func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -231,3 +435,5 @@ func (v *NullableProviderRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_q_in_q_role.go b/model_q_in_q_role.go new file mode 100644 index 0000000000..ab599a6fe1 --- /dev/null +++ b/model_q_in_q_role.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// QInQRole Customer/service VLAN designation (for Q-in-Q/IEEE 802.1ad) * `svlan` - Service * `cvlan` - Customer +type QInQRole string + +// List of Q_in_Q_role +const ( + QINQROLE_SVLAN QInQRole = "svlan" + QINQROLE_CVLAN QInQRole = "cvlan" + QINQROLE_EMPTY QInQRole = "" +) + +// All allowed values of QInQRole enum +var AllowedQInQRoleEnumValues = []QInQRole{ + "svlan", + "cvlan", + "", +} + +func (v *QInQRole) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := QInQRole(value) + for _, existing := range AllowedQInQRoleEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid QInQRole", value) +} + +// NewQInQRoleFromValue returns a pointer to a valid QInQRole +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewQInQRoleFromValue(v string) (*QInQRole, error) { + ev := QInQRole(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for QInQRole: valid values are %v", v, AllowedQInQRoleEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v QInQRole) IsValid() bool { + for _, existing := range AllowedQInQRoleEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Q_in_Q_role value +func (v QInQRole) Ptr() *QInQRole { + return &v +} + +type NullableQInQRole struct { + value *QInQRole + isSet bool +} + +func (v NullableQInQRole) Get() *QInQRole { + return v.value +} + +func (v *NullableQInQRole) Set(val *QInQRole) { + v.value = val + v.isSet = true +} + +func (v NullableQInQRole) IsSet() bool { + return v.isSet +} + +func (v *NullableQInQRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQInQRole(val *QInQRole) *NullableQInQRole { + return &NullableQInQRole{value: val, isSet: true} +} + +func (v NullableQInQRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQInQRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack.go b/model_rack.go index 471e264e13..ec583c4649 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,49 @@ 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"` - Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *RackStatus `json:"status,omitempty"` + Role NullableBriefRackRole `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackType `json:"rack_type,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` + // Height in rack units + 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"` + 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"` + // 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"` + Airflow *RackAirflow `json:"airflow,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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` AdditionalProperties map[string]interface{} } @@ -35,13 +73,14 @@ type _Rack Rack // 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 NewRack(id int32, url string, display string, name string, deviceCount int64) *Rack { +func NewRack(id int32, url string, display string, name string, site BriefSite, powerfeedCount int64) *Rack { this := Rack{} this.Id = id this.Url = url this.Display = display this.Name = name - this.DeviceCount = deviceCount + this.Site = site + this.PowerfeedCount = powerfeedCount return &this } @@ -77,6 +116,7 @@ func (o *Rack) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Rack) GetUrl() string { if o == nil { @@ -84,69 +124,941 @@ func (o *Rack) GetUrl() string { return ret } - return o.Url + 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 *Rack) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Rack) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Rack) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Rack) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Rack) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *Rack) 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 *Rack) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Rack) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *Rack) 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 *Rack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Rack) SetName(v string) { + o.Name = v +} + + +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId 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 *Rack) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *Rack) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +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) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *Rack) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *Rack) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Rack) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Rack) SetSite(v BriefSite) { + o.Site = v +} + + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location 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 *Rack) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *Rack) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Rack) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} +// SetLocationNil sets the value for Location to be an explicit nil +func (o *Rack) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *Rack) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *Rack) GetTenantOk() (*BriefTenant, 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 *Rack) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Rack) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Rack) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Rack) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Rack) GetStatus() RackStatus { + if o == nil || IsNil(o.Status) { + var ret RackStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStatusOk() (*RackStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Rack) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given RackStatus and assigns it to the Status field. +func (o *Rack) SetStatus(v RackStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRole() BriefRackRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role 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 *Rack) GetRoleOk() (*BriefRackRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *Rack) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRole and assigns it to the Role field. +func (o *Rack) SetRole(v BriefRackRole) { + o.Role.Set(&v) +} +// SetRoleNil sets the value for Role to be an explicit nil +func (o *Rack) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *Rack) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Rack) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Rack) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Rack) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag 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 *Rack) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Rack) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +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) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Rack) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRackType() BriefRackType { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackType + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType 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 *Rack) GetRackTypeOk() (*BriefRackType, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *Rack) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackType and assigns it to the RackType field. +func (o *Rack) SetRackType(v BriefRackType) { + o.RackType.Set(&v) +} +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *Rack) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *Rack) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFormFactor() RackFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor 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 *Rack) GetFormFactorOk() (*RackFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *Rack) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. +func (o *Rack) SetFormFactor(v RackFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *Rack) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *Rack) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *Rack) GetWidth() RackWidth { + if o == nil || IsNil(o.Width) { + var ret RackWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetWidthOk() (*RackWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *Rack) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. +func (o *Rack) SetWidth(v RackWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *Rack) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *Rack) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +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()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *Rack) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *Rack) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +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) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *Rack) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight 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 *Rack) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *Rack) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +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) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *Rack) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *Rack) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +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) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *Rack) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *Rack) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *Rack) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false } -// GetUrlOk returns a tuple with the Url field value +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *Rack) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetUrlOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterWidthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Url, true + return o.OuterWidth.Get(), o.OuterWidth.IsSet() } -// SetUrl sets field value -func (o *Rack) SetUrl(v string) { - o.Url = v +// HasOuterWidth returns a boolean if a field has been set. +func (o *Rack) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false } -// GetDisplay returns the Display field value -func (o *Rack) GetDisplay() string { - if o == nil { - var ret string +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +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) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *Rack) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 return ret } - - return o.Display + return *o.OuterDepth.Get() } -// GetDisplayOk returns a tuple with the Display field value +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetDisplayOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterDepthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Display, true + return o.OuterDepth.Get(), o.OuterDepth.IsSet() } -// SetDisplay sets field value -func (o *Rack) SetDisplay(v string) { - o.Display = v +// HasOuterDepth returns a boolean if a field has been set. +func (o *Rack) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false } -// GetName returns the Name field value -func (o *Rack) GetName() string { - if o == nil { - var ret string +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +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) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *Rack) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterUnit() RackOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackOuterUnit return ret } + return *o.OuterUnit.Get() +} - return o.Name +// GetOuterUnitOk returns a tuple with the OuterUnit 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 *Rack) GetOuterUnitOk() (*RackOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() } -// GetNameOk returns a tuple with the Name field value +// HasOuterUnit returns a boolean if a field has been set. +func (o *Rack) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. +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) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *Rack) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetNameOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetMountingDepthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Name, true + return o.MountingDepth.Get(), o.MountingDepth.IsSet() } -// SetName sets field value -func (o *Rack) SetName(v string) { - o.Name = v +// HasMountingDepth returns a boolean if a field has been set. +func (o *Rack) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +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) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *Rack) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *Rack) GetAirflow() RackAirflow { + if o == nil || IsNil(o.Airflow) { + var ret RackAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetAirflowOk() (*RackAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *Rack) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given RackAirflow and assigns it to the Airflow field. +func (o *Rack) SetAirflow(v RackAirflow) { + o.Airflow = &v } // GetDescription returns the Description field value if set, zero value otherwise. @@ -181,32 +1093,245 @@ func (o *Rack) SetDescription(v string) { o.Description = &v } -// GetDeviceCount returns the DeviceCount field value +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Rack) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Rack) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Rack) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Rack) 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 *Rack) 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 *Rack) 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 *Rack) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Rack) 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 *Rack) 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 *Rack) 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 *Rack) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Rack) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Rack) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Rack) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Rack) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Rack) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Rack) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Rack) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Rack) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Rack) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Rack) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Rack) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Rack) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Rack) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetPowerfeedCount returns the PowerfeedCount field value +func (o *Rack) GetPowerfeedCount() int64 { if o == nil { var ret int64 return ret } - return o.DeviceCount + return o.PowerfeedCount } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value // and a boolean to check if the value has been set. -func (o *Rack) GetDeviceCountOk() (*int64, bool) { +func (o *Rack) GetPowerfeedCountOk() (*int64, bool) { if o == nil { return nil, false } - return &o.DeviceCount, true + return &o.PowerfeedCount, true } -// SetDeviceCount sets field value -func (o *Rack) SetDeviceCount(v int64) { - o.DeviceCount = v +// SetPowerfeedCount sets field value +func (o *Rack) SetPowerfeedCount(v int64) { + o.PowerfeedCount = v } + func (o Rack) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,12 +1342,97 @@ func (o Rack) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + 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() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + toSerialize["powerfeed_count"] = o.PowerfeedCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,23 +1450,41 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "device_count", + "site", + "powerfeed_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRack := _Rack{} err = json.Unmarshal(data, &varRack) @@ -272,10 +1500,39 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "powerfeed_count") o.AdditionalProperties = additionalProperties } @@ -317,3 +1574,5 @@ func (v *NullableRack) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_airflow.go b/model_rack_airflow.go new file mode 100644 index 0000000000..cc998aa091 --- /dev/null +++ b/model_rack_airflow.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackAirflow{} + +// RackAirflow struct for RackAirflow +type RackAirflow struct { + Value *RackAirflowValue `json:"value,omitempty"` + Label *RackAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackAirflow RackAirflow + +// NewRackAirflow instantiates a new RackAirflow 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 NewRackAirflow() *RackAirflow { + this := RackAirflow{} + return &this +} + +// NewRackAirflowWithDefaults instantiates a new RackAirflow 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 NewRackAirflowWithDefaults() *RackAirflow { + this := RackAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackAirflow) GetValue() RackAirflowValue { + if o == nil || IsNil(o.Value) { + var ret RackAirflowValue + 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 *RackAirflow) GetValueOk() (*RackAirflowValue, 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 *RackAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given RackAirflowValue and assigns it to the Value field. +func (o *RackAirflow) SetValue(v RackAirflowValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackAirflow) GetLabel() RackAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret RackAirflowLabel + 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 *RackAirflow) GetLabelOk() (*RackAirflowLabel, 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 *RackAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackAirflowLabel and assigns it to the Label field. +func (o *RackAirflow) SetLabel(v RackAirflowLabel) { + o.Label = &v +} + +func (o RackAirflow) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackAirflow) 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 *RackAirflow) UnmarshalJSON(data []byte) (err error) { + varRackAirflow := _RackAirflow{} + + err = json.Unmarshal(data, &varRackAirflow) + + if err != nil { + return err + } + + *o = RackAirflow(varRackAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackAirflow struct { + value *RackAirflow + isSet bool +} + +func (v NullableRackAirflow) Get() *RackAirflow { + return v.value +} + +func (v *NullableRackAirflow) Set(val *RackAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableRackAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableRackAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackAirflow(val *RackAirflow) *NullableRackAirflow { + return &NullableRackAirflow{value: val, isSet: true} +} + +func (v NullableRackAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_airflow_label.go b/model_rack_airflow_label.go new file mode 100644 index 0000000000..cb252db57c --- /dev/null +++ b/model_rack_airflow_label.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackAirflowLabel the model 'RackAirflowLabel' +type RackAirflowLabel string + +// List of Rack_airflow_label +const ( + RACKAIRFLOWLABEL_FRONT_TO_REAR RackAirflowLabel = "Front to rear" + RACKAIRFLOWLABEL_REAR_TO_FRONT RackAirflowLabel = "Rear to front" +) + +// All allowed values of RackAirflowLabel enum +var AllowedRackAirflowLabelEnumValues = []RackAirflowLabel{ + "Front to rear", + "Rear to front", +} + +func (v *RackAirflowLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackAirflowLabel(value) + for _, existing := range AllowedRackAirflowLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackAirflowLabel", value) +} + +// NewRackAirflowLabelFromValue returns a pointer to a valid RackAirflowLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackAirflowLabelFromValue(v string) (*RackAirflowLabel, error) { + ev := RackAirflowLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackAirflowLabel: valid values are %v", v, AllowedRackAirflowLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackAirflowLabel) IsValid() bool { + for _, existing := range AllowedRackAirflowLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_airflow_label value +func (v RackAirflowLabel) Ptr() *RackAirflowLabel { + return &v +} + +type NullableRackAirflowLabel struct { + value *RackAirflowLabel + isSet bool +} + +func (v NullableRackAirflowLabel) Get() *RackAirflowLabel { + return v.value +} + +func (v *NullableRackAirflowLabel) Set(val *RackAirflowLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackAirflowLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackAirflowLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackAirflowLabel(val *RackAirflowLabel) *NullableRackAirflowLabel { + return &NullableRackAirflowLabel{value: val, isSet: true} +} + +func (v NullableRackAirflowLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackAirflowLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_airflow_value.go b/model_rack_airflow_value.go new file mode 100644 index 0000000000..f2d0e21822 --- /dev/null +++ b/model_rack_airflow_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackAirflowValue * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +type RackAirflowValue string + +// List of Rack_airflow_value +const ( + RACKAIRFLOWVALUE_FRONT_TO_REAR RackAirflowValue = "front-to-rear" + RACKAIRFLOWVALUE_REAR_TO_FRONT RackAirflowValue = "rear-to-front" + RACKAIRFLOWVALUE_EMPTY RackAirflowValue = "" +) + +// All allowed values of RackAirflowValue enum +var AllowedRackAirflowValueEnumValues = []RackAirflowValue{ + "front-to-rear", + "rear-to-front", + "", +} + +func (v *RackAirflowValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackAirflowValue(value) + for _, existing := range AllowedRackAirflowValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackAirflowValue", value) +} + +// NewRackAirflowValueFromValue returns a pointer to a valid RackAirflowValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackAirflowValueFromValue(v string) (*RackAirflowValue, error) { + ev := RackAirflowValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackAirflowValue: valid values are %v", v, AllowedRackAirflowValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackAirflowValue) IsValid() bool { + for _, existing := range AllowedRackAirflowValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_airflow_value value +func (v RackAirflowValue) Ptr() *RackAirflowValue { + return &v +} + +type NullableRackAirflowValue struct { + value *RackAirflowValue + isSet bool +} + +func (v NullableRackAirflowValue) Get() *RackAirflowValue { + return v.value +} + +func (v *NullableRackAirflowValue) Set(val *RackAirflowValue) { + v.value = val + v.isSet = true +} + +func (v NullableRackAirflowValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRackAirflowValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackAirflowValue(val *RackAirflowValue) *NullableRackAirflowValue { + return &NullableRackAirflowValue{value: val, isSet: true} +} + +func (v NullableRackAirflowValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackAirflowValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_face.go b/model_rack_face.go index a0c96cd51a..7a292d3aea 100644 --- a/model_rack_face.go +++ b/model_rack_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type RackFace string // List of Rack_face const ( RACKFACE_FRONT RackFace = "front" - RACKFACE_REAR RackFace = "rear" + RACKFACE_REAR RackFace = "rear" ) // All allowed values of RackFace enum @@ -108,3 +108,4 @@ func (v *NullableRackFace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_rack_face_1.go b/model_rack_face_1.go index bbb6509414..e634c27d7f 100644 --- a/model_rack_face_1.go +++ b/model_rack_face_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type RackFace1 string // List of Rack_face_1 const ( RACKFACE1_FRONT RackFace1 = "front" - RACKFACE1_REAR RackFace1 = "rear" + RACKFACE1_REAR RackFace1 = "rear" RACKFACE1_EMPTY RackFace1 = "" ) @@ -110,3 +110,4 @@ func (v *NullableRackFace1) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_rack_form_factor.go b/model_rack_form_factor.go new file mode 100644 index 0000000000..3cbab44ce0 --- /dev/null +++ b/model_rack_form_factor.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackFormFactor type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackFormFactor{} + +// RackFormFactor struct for RackFormFactor +type RackFormFactor struct { + Value *RackFormFactorValue `json:"value,omitempty"` + Label *RackFormFactorLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackFormFactor RackFormFactor + +// NewRackFormFactor instantiates a new RackFormFactor 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 NewRackFormFactor() *RackFormFactor { + this := RackFormFactor{} + return &this +} + +// NewRackFormFactorWithDefaults instantiates a new RackFormFactor 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 NewRackFormFactorWithDefaults() *RackFormFactor { + this := RackFormFactor{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackFormFactor) GetValue() RackFormFactorValue { + if o == nil || IsNil(o.Value) { + var ret RackFormFactorValue + 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 *RackFormFactor) GetValueOk() (*RackFormFactorValue, 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 *RackFormFactor) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given RackFormFactorValue and assigns it to the Value field. +func (o *RackFormFactor) SetValue(v RackFormFactorValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackFormFactor) GetLabel() RackFormFactorLabel { + if o == nil || IsNil(o.Label) { + var ret RackFormFactorLabel + 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 *RackFormFactor) GetLabelOk() (*RackFormFactorLabel, 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 *RackFormFactor) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackFormFactorLabel and assigns it to the Label field. +func (o *RackFormFactor) SetLabel(v RackFormFactorLabel) { + o.Label = &v +} + +func (o RackFormFactor) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackFormFactor) 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 *RackFormFactor) UnmarshalJSON(data []byte) (err error) { + varRackFormFactor := _RackFormFactor{} + + err = json.Unmarshal(data, &varRackFormFactor) + + if err != nil { + return err + } + + *o = RackFormFactor(varRackFormFactor) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackFormFactor struct { + value *RackFormFactor + isSet bool +} + +func (v NullableRackFormFactor) Get() *RackFormFactor { + return v.value +} + +func (v *NullableRackFormFactor) Set(val *RackFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullableRackFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullableRackFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackFormFactor(val *RackFormFactor) *NullableRackFormFactor { + return &NullableRackFormFactor{value: val, isSet: true} +} + +func (v NullableRackFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_form_factor_label.go b/model_rack_form_factor_label.go new file mode 100644 index 0000000000..b0f76a22a8 --- /dev/null +++ b/model_rack_form_factor_label.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackFormFactorLabel the model 'RackFormFactorLabel' +type RackFormFactorLabel string + +// List of Rack_form_factor_label +const ( + RACKFORMFACTORLABEL__2_POST_FRAME RackFormFactorLabel = "2-post frame" + RACKFORMFACTORLABEL__4_POST_FRAME RackFormFactorLabel = "4-post frame" + RACKFORMFACTORLABEL__4_POST_CABINET RackFormFactorLabel = "4-post cabinet" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME RackFormFactorLabel = "Wall-mounted frame" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME__VERTICAL RackFormFactorLabel = "Wall-mounted frame (vertical)" + RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET RackFormFactorLabel = "Wall-mounted cabinet" + RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET__VERTICAL RackFormFactorLabel = "Wall-mounted cabinet (vertical)" +) + +// All allowed values of RackFormFactorLabel enum +var AllowedRackFormFactorLabelEnumValues = []RackFormFactorLabel{ + "2-post frame", + "4-post frame", + "4-post cabinet", + "Wall-mounted frame", + "Wall-mounted frame (vertical)", + "Wall-mounted cabinet", + "Wall-mounted cabinet (vertical)", +} + +func (v *RackFormFactorLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackFormFactorLabel(value) + for _, existing := range AllowedRackFormFactorLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackFormFactorLabel", value) +} + +// NewRackFormFactorLabelFromValue returns a pointer to a valid RackFormFactorLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackFormFactorLabelFromValue(v string) (*RackFormFactorLabel, error) { + ev := RackFormFactorLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackFormFactorLabel: valid values are %v", v, AllowedRackFormFactorLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackFormFactorLabel) IsValid() bool { + for _, existing := range AllowedRackFormFactorLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_form_factor_label value +func (v RackFormFactorLabel) Ptr() *RackFormFactorLabel { + return &v +} + +type NullableRackFormFactorLabel struct { + value *RackFormFactorLabel + isSet bool +} + +func (v NullableRackFormFactorLabel) Get() *RackFormFactorLabel { + return v.value +} + +func (v *NullableRackFormFactorLabel) Set(val *RackFormFactorLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackFormFactorLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackFormFactorLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackFormFactorLabel(val *RackFormFactorLabel) *NullableRackFormFactorLabel { + return &NullableRackFormFactorLabel{value: val, isSet: true} +} + +func (v NullableRackFormFactorLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackFormFactorLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_form_factor_value.go b/model_rack_form_factor_value.go new file mode 100644 index 0000000000..db6895dd0d --- /dev/null +++ b/model_rack_form_factor_value.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackFormFactorValue * `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) +type RackFormFactorValue string + +// List of Rack_form_factor_value +const ( + RACKFORMFACTORVALUE__2_POST_FRAME RackFormFactorValue = "2-post-frame" + RACKFORMFACTORVALUE__4_POST_FRAME RackFormFactorValue = "4-post-frame" + RACKFORMFACTORVALUE__4_POST_CABINET RackFormFactorValue = "4-post-cabinet" + RACKFORMFACTORVALUE_WALL_FRAME RackFormFactorValue = "wall-frame" + RACKFORMFACTORVALUE_WALL_FRAME_VERTICAL RackFormFactorValue = "wall-frame-vertical" + RACKFORMFACTORVALUE_WALL_CABINET RackFormFactorValue = "wall-cabinet" + RACKFORMFACTORVALUE_WALL_CABINET_VERTICAL RackFormFactorValue = "wall-cabinet-vertical" + RACKFORMFACTORVALUE_EMPTY RackFormFactorValue = "" +) + +// All allowed values of RackFormFactorValue enum +var AllowedRackFormFactorValueEnumValues = []RackFormFactorValue{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", + "", +} + +func (v *RackFormFactorValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackFormFactorValue(value) + for _, existing := range AllowedRackFormFactorValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackFormFactorValue", value) +} + +// NewRackFormFactorValueFromValue returns a pointer to a valid RackFormFactorValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackFormFactorValueFromValue(v string) (*RackFormFactorValue, error) { + ev := RackFormFactorValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackFormFactorValue: valid values are %v", v, AllowedRackFormFactorValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackFormFactorValue) IsValid() bool { + for _, existing := range AllowedRackFormFactorValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_form_factor_value value +func (v RackFormFactorValue) Ptr() *RackFormFactorValue { + return &v +} + +type NullableRackFormFactorValue struct { + value *RackFormFactorValue + isSet bool +} + +func (v NullableRackFormFactorValue) Get() *RackFormFactorValue { + return v.value +} + +func (v *NullableRackFormFactorValue) Set(val *RackFormFactorValue) { + v.value = val + v.isSet = true +} + +func (v NullableRackFormFactorValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRackFormFactorValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackFormFactorValue(val *RackFormFactorValue) *NullableRackFormFactorValue { + return &NullableRackFormFactorValue{value: val, isSet: true} +} + +func (v NullableRackFormFactorValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackFormFactorValue) 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 new file mode 100644 index 0000000000..bde0a83600 --- /dev/null +++ b/model_rack_outer_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackOuterUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackOuterUnit{} + +// RackOuterUnit struct for RackOuterUnit +type RackOuterUnit struct { + Value *RackOuterUnitValue `json:"value,omitempty"` + Label *RackOuterUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackOuterUnit RackOuterUnit + +// NewRackOuterUnit instantiates a new RackOuterUnit 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 NewRackOuterUnit() *RackOuterUnit { + this := RackOuterUnit{} + return &this +} + +// NewRackOuterUnitWithDefaults instantiates a new RackOuterUnit 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 NewRackOuterUnitWithDefaults() *RackOuterUnit { + this := RackOuterUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackOuterUnit) GetValue() RackOuterUnitValue { + if o == nil || IsNil(o.Value) { + var ret RackOuterUnitValue + 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 *RackOuterUnit) GetValueOk() (*RackOuterUnitValue, 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 *RackOuterUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given RackOuterUnitValue and assigns it to the Value field. +func (o *RackOuterUnit) SetValue(v RackOuterUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel { + if o == nil || IsNil(o.Label) { + var ret RackOuterUnitLabel + 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 *RackOuterUnit) GetLabelOk() (*RackOuterUnitLabel, 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 *RackOuterUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackOuterUnitLabel and assigns it to the Label field. +func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel) { + o.Label = &v +} + +func (o RackOuterUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackOuterUnit) 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 *RackOuterUnit) UnmarshalJSON(data []byte) (err error) { + varRackOuterUnit := _RackOuterUnit{} + + err = json.Unmarshal(data, &varRackOuterUnit) + + if err != nil { + return err + } + + *o = RackOuterUnit(varRackOuterUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackOuterUnit struct { + value *RackOuterUnit + isSet bool +} + +func (v NullableRackOuterUnit) Get() *RackOuterUnit { + return v.value +} + +func (v *NullableRackOuterUnit) Set(val *RackOuterUnit) { + v.value = val + v.isSet = true +} + +func (v NullableRackOuterUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableRackOuterUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackOuterUnit(val *RackOuterUnit) *NullableRackOuterUnit { + return &NullableRackOuterUnit{value: val, isSet: true} +} + +func (v NullableRackOuterUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackOuterUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_outer_unit_label.go b/model_rack_outer_unit_label.go new file mode 100644 index 0000000000..cb6b7893ab --- /dev/null +++ b/model_rack_outer_unit_label.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackOuterUnitLabel the model 'RackOuterUnitLabel' +type RackOuterUnitLabel string + +// List of Rack_outer_unit_label +const ( + RACKOUTERUNITLABEL_MILLIMETERS RackOuterUnitLabel = "Millimeters" + RACKOUTERUNITLABEL_INCHES RackOuterUnitLabel = "Inches" +) + +// All allowed values of RackOuterUnitLabel enum +var AllowedRackOuterUnitLabelEnumValues = []RackOuterUnitLabel{ + "Millimeters", + "Inches", +} + +func (v *RackOuterUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackOuterUnitLabel(value) + for _, existing := range AllowedRackOuterUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackOuterUnitLabel", value) +} + +// NewRackOuterUnitLabelFromValue returns a pointer to a valid RackOuterUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackOuterUnitLabelFromValue(v string) (*RackOuterUnitLabel, error) { + ev := RackOuterUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackOuterUnitLabel: valid values are %v", v, AllowedRackOuterUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackOuterUnitLabel) IsValid() bool { + for _, existing := range AllowedRackOuterUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_outer_unit_label value +func (v RackOuterUnitLabel) Ptr() *RackOuterUnitLabel { + return &v +} + +type NullableRackOuterUnitLabel struct { + value *RackOuterUnitLabel + isSet bool +} + +func (v NullableRackOuterUnitLabel) Get() *RackOuterUnitLabel { + return v.value +} + +func (v *NullableRackOuterUnitLabel) Set(val *RackOuterUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackOuterUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackOuterUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackOuterUnitLabel(val *RackOuterUnitLabel) *NullableRackOuterUnitLabel { + return &NullableRackOuterUnitLabel{value: val, isSet: true} +} + +func (v NullableRackOuterUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackOuterUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_outer_unit_value.go b/model_rack_outer_unit_value.go new file mode 100644 index 0000000000..0150990938 --- /dev/null +++ b/model_rack_outer_unit_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackOuterUnitValue * `mm` - Millimeters * `in` - Inches +type RackOuterUnitValue string + +// List of Rack_outer_unit_value +const ( + RACKOUTERUNITVALUE_MM RackOuterUnitValue = "mm" + RACKOUTERUNITVALUE_IN RackOuterUnitValue = "in" + RACKOUTERUNITVALUE_EMPTY RackOuterUnitValue = "" +) + +// All allowed values of RackOuterUnitValue enum +var AllowedRackOuterUnitValueEnumValues = []RackOuterUnitValue{ + "mm", + "in", + "", +} + +func (v *RackOuterUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackOuterUnitValue(value) + for _, existing := range AllowedRackOuterUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackOuterUnitValue", value) +} + +// NewRackOuterUnitValueFromValue returns a pointer to a valid RackOuterUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackOuterUnitValueFromValue(v string) (*RackOuterUnitValue, error) { + ev := RackOuterUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackOuterUnitValue: valid values are %v", v, AllowedRackOuterUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackOuterUnitValue) IsValid() bool { + for _, existing := range AllowedRackOuterUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_outer_unit_value value +func (v RackOuterUnitValue) Ptr() *RackOuterUnitValue { + return &v +} + +type NullableRackOuterUnitValue struct { + value *RackOuterUnitValue + isSet bool +} + +func (v NullableRackOuterUnitValue) Get() *RackOuterUnitValue { + return v.value +} + +func (v *NullableRackOuterUnitValue) Set(val *RackOuterUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableRackOuterUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRackOuterUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackOuterUnitValue(val *RackOuterUnitValue) *NullableRackOuterUnitValue { + return &NullableRackOuterUnitValue{value: val, isSet: true} +} + +func (v NullableRackOuterUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackOuterUnitValue) 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 820be5e16b..852db2d8ae 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,41 @@ var _ MappedNullable = &RackRequest{} // RackRequest Adds support for custom fields and tags. type RackRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` + // Height in rack units + 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"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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 NullablePatchedWritableRackRequestOuterUnit `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"` + Airflow *RackAirflowValue `json:"airflow,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{} } @@ -31,9 +64,10 @@ type _RackRequest RackRequest // 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 NewRackRequest(name string) *RackRequest { +func NewRackRequest(name string, site BriefSiteRequest) *RackRequest { this := RackRequest{} this.Name = name + this.Site = site return &this } @@ -69,6 +103,844 @@ func (o *RackRequest) SetName(v string) { o.Name = v } + +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId 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 *RackRequest) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *RackRequest) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +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) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *RackRequest) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *RackRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *RackRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location 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 *RackRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *RackRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *RackRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} +// SetLocationNil sets the value for Location to be an explicit nil +func (o *RackRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *RackRequest) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *RackRequest) GetTenantOk() (*BriefTenantRequest, 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 *RackRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *RackRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *RackRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus { + if o == nil || IsNil(o.Status) { + var ret PatchedWritableRackRequestStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RackRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field. +func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRole() BriefRackRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role 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 *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *RackRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *RackRequest) SetRole(v BriefRackRoleRequest) { + o.Role.Set(&v) +} +// SetRoleNil sets the value for Role to be an explicit nil +func (o *RackRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *RackRequest) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *RackRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *RackRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *RackRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag 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 *RackRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *RackRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +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) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *RackRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType 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 *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *RackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *RackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *RackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *RackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor 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 *RackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullablePatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *RackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackRequest) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackRequest) GetWidth() RackWidthValue { + if o == nil || IsNil(o.Width) { + var ret RackWidthValue + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. +func (o *RackRequest) SetWidth(v RackWidthValue) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +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()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *RackRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +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) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight 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 *RackRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +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) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth 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 *RackRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +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) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth 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 *RackRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +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) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit 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 *RackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullablePatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *RackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth 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 *RackRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +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) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *RackRequest) GetAirflow() RackAirflowValue { + if o == nil || IsNil(o.Airflow) { + var ret RackAirflowValue + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetAirflowOk() (*RackAirflowValue, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *RackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given RackAirflowValue and assigns it to the Airflow field. +func (o *RackRequest) SetAirflow(v RackAirflowValue) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +973,104 @@ func (o *RackRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackRequest) 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 *RackRequest) 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 *RackRequest) 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 *RackRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackRequest) 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 *RackRequest) 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 *RackRequest) 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 *RackRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RackRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -112,9 +1080,82 @@ func (o RackRequest) MarshalJSON() ([]byte, error) { func (o RackRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + 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() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,22 +1170,40 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "site", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRackRequest := _RackRequest{} err = json.Unmarshal(data, &varRackRequest) @@ -159,7 +1218,32 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -201,3 +1285,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 f4cdb14114..317891b6d6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the RackReservation type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ 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 Rack `json:"rack"` - Units []int32 `json:"units"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - User User `json:"user"` - Tenant NullableTenant `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Rack BriefRack `json:"rack"` + Units []int32 `json:"units"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + User BriefUser `json:"user"` + Tenant NullableBriefTenant `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{} } @@ -43,15 +44,13 @@ type _RackReservation RackReservation // 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 NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string) *RackReservation { +func NewRackReservation(id int32, url string, display string, rack BriefRack, units []int32, user BriefUser, description string) *RackReservation { this := RackReservation{} this.Id = id this.Url = url this.Display = display this.Rack = rack this.Units = units - this.Created = created - this.LastUpdated = lastUpdated this.User = user this.Description = description return &this @@ -89,6 +88,7 @@ func (o *RackReservation) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *RackReservation) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *RackReservation) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RackReservation) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackReservation) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RackReservation) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RackReservation) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RackReservation) GetDisplay() string { if o == nil { @@ -137,10 +170,11 @@ func (o *RackReservation) SetDisplay(v string) { o.Display = v } + // GetRack returns the Rack field value -func (o *RackReservation) GetRack() Rack { +func (o *RackReservation) GetRack() BriefRack { if o == nil { - var ret Rack + var ret BriefRack return ret } @@ -149,7 +183,7 @@ func (o *RackReservation) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetRackOk() (*Rack, bool) { +func (o *RackReservation) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -157,10 +191,11 @@ func (o *RackReservation) GetRackOk() (*Rack, bool) { } // SetRack sets field value -func (o *RackReservation) SetRack(v Rack) { +func (o *RackReservation) SetRack(v BriefRack) { o.Rack = v } + // GetUnits returns the Units field value func (o *RackReservation) GetUnits() []int32 { if o == nil { @@ -185,18 +220,17 @@ func (o *RackReservation) SetUnits(v []int32) { o.Units = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RackReservation) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *RackReservation) GetCreatedOk() (*time.Time, bool) { @@ -206,23 +240,39 @@ func (o *RackReservation) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *RackReservation) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *RackReservation) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *RackReservation) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *RackReservation) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RackReservation) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *RackReservation) GetLastUpdatedOk() (*time.Time, bool) { @@ -232,15 +282,33 @@ func (o *RackReservation) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *RackReservation) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *RackReservation) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *RackReservation) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *RackReservation) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetUser returns the User field value -func (o *RackReservation) GetUser() User { +func (o *RackReservation) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -249,7 +317,7 @@ func (o *RackReservation) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetUserOk() (*User, bool) { +func (o *RackReservation) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -257,14 +325,15 @@ func (o *RackReservation) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *RackReservation) SetUser(v User) { +func (o *RackReservation) SetUser(v BriefUser) { o.User = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservation) GetTenant() Tenant { +func (o *RackReservation) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +342,7 @@ func (o *RackReservation) GetTenant() Tenant { // 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 *RackReservation) GetTenantOk() (*Tenant, bool) { +func (o *RackReservation) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,11 +358,10 @@ func (o *RackReservation) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RackReservation) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RackReservation) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RackReservation) SetTenantNil() { o.Tenant.Set(nil) @@ -328,6 +396,7 @@ func (o *RackReservation) SetDescription(v string) { o.Description = v } + // GetComments returns the Comments field value if set, zero value otherwise. func (o *RackReservation) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -425,7 +494,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 } @@ -436,11 +505,18 @@ func (o RackReservation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["rack"] = o.Rack toSerialize["units"] = o.Units - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["user"] = o.User if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() @@ -473,26 +549,41 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { "display", "rack", "units", - "created", - "last_updated", "user", "description", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRackReservation := _RackReservation{} err = json.Unmarshal(data, &varRackReservation) @@ -508,6 +599,7 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "rack") delete(additionalProperties, "units") @@ -560,3 +652,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 f08054702d..cdc571333a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &RackReservationRequest{} // RackReservationRequest Adds support for custom fields and tags. type RackReservationRequest struct { - Rack RackRequest `json:"rack"` - Units []int32 `json:"units"` - User UserRequest `json:"user"` - Tenant NullableTenantRequest `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 BriefRackRequest `json:"rack"` + Units []int32 `json:"units"` + User BriefUserRequest `json:"user"` + Tenant NullableBriefTenantRequest `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{} } @@ -37,7 +37,7 @@ type _RackReservationRequest RackReservationRequest // 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 NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string) *RackReservationRequest { +func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string) *RackReservationRequest { this := RackReservationRequest{} this.Rack = rack this.Units = units @@ -55,9 +55,9 @@ func NewRackReservationRequestWithDefaults() *RackReservationRequest { } // GetRack returns the Rack field value -func (o *RackReservationRequest) GetRack() RackRequest { +func (o *RackReservationRequest) GetRack() BriefRackRequest { if o == nil { - var ret RackRequest + var ret BriefRackRequest return ret } @@ -66,7 +66,7 @@ func (o *RackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -74,10 +74,11 @@ func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { } // SetRack sets field value -func (o *RackReservationRequest) SetRack(v RackRequest) { +func (o *RackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = v } + // GetUnits returns the Units field value func (o *RackReservationRequest) GetUnits() []int32 { if o == nil { @@ -102,10 +103,11 @@ func (o *RackReservationRequest) SetUnits(v []int32) { o.Units = v } + // GetUser returns the User field value -func (o *RackReservationRequest) GetUser() UserRequest { +func (o *RackReservationRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -114,7 +116,7 @@ func (o *RackReservationRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -122,14 +124,15 @@ func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *RackReservationRequest) SetUser(v UserRequest) { +func (o *RackReservationRequest) SetUser(v BriefUserRequest) { o.User = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservationRequest) GetTenant() TenantRequest { +func (o *RackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -138,7 +141,7 @@ func (o *RackReservationRequest) GetTenant() TenantRequest { // 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 *RackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -154,11 +157,10 @@ func (o *RackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RackReservationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -193,6 +195,7 @@ func (o *RackReservationRequest) SetDescription(v string) { o.Description = v } + // GetComments returns the Comments field value if set, zero value otherwise. func (o *RackReservationRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -290,7 +293,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 } @@ -334,20 +337,37 @@ func (o *RackReservationRequest) UnmarshalJSON(data []byte) (err error) { "description", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRackReservationRequest := _RackReservationRequest{} err = json.Unmarshal(data, &varRackReservationRequest) @@ -410,3 +430,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 6f5af14fd1..28b7fb5747 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the RackRole type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ 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 int64 `json:"rack_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + RackCount *int64 `json:"rack_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,16 +43,13 @@ type _RackRole RackRole // 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 NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole { +func NewRackRole(id int32, url string, display string, name string, slug string) *RackRole { this := RackRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.RackCount = rackCount return &this } @@ -87,6 +85,7 @@ func (o *RackRole) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *RackRole) GetUrl() string { if o == nil { @@ -111,6 +110,39 @@ func (o *RackRole) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RackRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RackRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RackRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RackRole) GetDisplay() string { if o == nil { @@ -135,6 +167,7 @@ func (o *RackRole) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *RackRole) GetName() string { if o == nil { @@ -159,6 +192,7 @@ func (o *RackRole) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *RackRole) GetSlug() string { if o == nil { @@ -183,6 +217,7 @@ func (o *RackRole) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *RackRole) GetColor() string { if o == nil || IsNil(o.Color) { @@ -311,18 +346,16 @@ func (o *RackRole) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RackRole) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *RackRole) GetCreatedOk() (*time.Time, bool) { @@ -332,23 +365,39 @@ func (o *RackRole) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *RackRole) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *RackRole) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *RackRole) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *RackRole) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RackRole) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *RackRole) GetLastUpdatedOk() (*time.Time, bool) { @@ -358,37 +407,63 @@ func (o *RackRole) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *RackRole) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *RackRole) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *RackRole) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *RackRole) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetRackCount returns the RackCount field value +// GetRackCount returns the RackCount field value if set, zero value otherwise. func (o *RackRole) GetRackCount() int64 { - if o == nil { + if o == nil || IsNil(o.RackCount) { var ret int64 return ret } - - return o.RackCount + return *o.RackCount } -// GetRackCountOk returns a tuple with the RackCount field value +// GetRackCountOk returns a tuple with the RackCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RackRole) GetRackCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.RackCount) { return nil, false } - return &o.RackCount, true + return o.RackCount, true +} + +// HasRackCount returns a boolean if a field has been set. +func (o *RackRole) HasRackCount() bool { + if o != nil && !IsNil(o.RackCount) { + return true + } + + return false } -// SetRackCount sets field value +// SetRackCount gets a reference to the given int64 and assigns it to the RackCount field. func (o *RackRole) SetRackCount(v int64) { - o.RackCount = v + o.RackCount = &v } func (o RackRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -399,6 +474,9 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -414,9 +492,15 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["rack_count"] = o.RackCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.RackCount) { + toSerialize["rack_count"] = o.RackCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -435,25 +519,39 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", - "rack_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRackRole := _RackRole{} err = json.Unmarshal(data, &varRackRole) @@ -469,6 +567,7 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -520,3 +619,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 f3d72593d4..4c8029b559 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ func (o *RackRoleRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *RackRoleRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *RackRoleRequest) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *RackRoleRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -227,7 +229,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 } @@ -267,20 +269,37 @@ func (o *RackRoleRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRackRoleRequest := _RackRoleRequest{} err = json.Unmarshal(data, &varRackRoleRequest) @@ -341,3 +360,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 new file mode 100644 index 0000000000..9e50ebd882 --- /dev/null +++ b/model_rack_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackStatus{} + +// RackStatus struct for RackStatus +type RackStatus struct { + Value *PatchedWritableRackRequestStatus `json:"value,omitempty"` + Label *RackStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackStatus RackStatus + +// NewRackStatus instantiates a new RackStatus 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 NewRackStatus() *RackStatus { + this := RackStatus{} + return &this +} + +// NewRackStatusWithDefaults instantiates a new RackStatus 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 NewRackStatusWithDefaults() *RackStatus { + this := RackStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackStatus) GetValue() PatchedWritableRackRequestStatus { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestStatus + 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 *RackStatus) GetValueOk() (*PatchedWritableRackRequestStatus, 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 *RackStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Value field. +func (o *RackStatus) SetValue(v PatchedWritableRackRequestStatus) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackStatus) GetLabel() RackStatusLabel { + if o == nil || IsNil(o.Label) { + var ret RackStatusLabel + 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 *RackStatus) GetLabelOk() (*RackStatusLabel, 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 *RackStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackStatusLabel and assigns it to the Label field. +func (o *RackStatus) SetLabel(v RackStatusLabel) { + o.Label = &v +} + +func (o RackStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackStatus) 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 *RackStatus) UnmarshalJSON(data []byte) (err error) { + varRackStatus := _RackStatus{} + + err = json.Unmarshal(data, &varRackStatus) + + if err != nil { + return err + } + + *o = RackStatus(varRackStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackStatus struct { + value *RackStatus + isSet bool +} + +func (v NullableRackStatus) Get() *RackStatus { + return v.value +} + +func (v *NullableRackStatus) Set(val *RackStatus) { + v.value = val + v.isSet = true +} + +func (v NullableRackStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableRackStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackStatus(val *RackStatus) *NullableRackStatus { + return &NullableRackStatus{value: val, isSet: true} +} + +func (v NullableRackStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_status_label.go b/model_rack_status_label.go new file mode 100644 index 0000000000..d8fef57661 --- /dev/null +++ b/model_rack_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackStatusLabel the model 'RackStatusLabel' +type RackStatusLabel string + +// List of Rack_status_label +const ( + RACKSTATUSLABEL_RESERVED RackStatusLabel = "Reserved" + RACKSTATUSLABEL_AVAILABLE RackStatusLabel = "Available" + RACKSTATUSLABEL_PLANNED RackStatusLabel = "Planned" + RACKSTATUSLABEL_ACTIVE RackStatusLabel = "Active" + RACKSTATUSLABEL_DEPRECATED RackStatusLabel = "Deprecated" +) + +// All allowed values of RackStatusLabel enum +var AllowedRackStatusLabelEnumValues = []RackStatusLabel{ + "Reserved", + "Available", + "Planned", + "Active", + "Deprecated", +} + +func (v *RackStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackStatusLabel(value) + for _, existing := range AllowedRackStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackStatusLabel", value) +} + +// NewRackStatusLabelFromValue returns a pointer to a valid RackStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackStatusLabelFromValue(v string) (*RackStatusLabel, error) { + ev := RackStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackStatusLabel: valid values are %v", v, AllowedRackStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackStatusLabel) IsValid() bool { + for _, existing := range AllowedRackStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_status_label value +func (v RackStatusLabel) Ptr() *RackStatusLabel { + return &v +} + +type NullableRackStatusLabel struct { + value *RackStatusLabel + isSet bool +} + +func (v NullableRackStatusLabel) Get() *RackStatusLabel { + return v.value +} + +func (v *NullableRackStatusLabel) Set(val *RackStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackStatusLabel(val *RackStatusLabel) *NullableRackStatusLabel { + return &NullableRackStatusLabel{value: val, isSet: true} +} + +func (v NullableRackStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackStatusLabel) 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 new file mode 100644 index 0000000000..1277bd712b --- /dev/null +++ b/model_rack_type.go @@ -0,0 +1,1147 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the RackType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackType{} + +// RackType Adds support for custom fields and tags. +type RackType struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_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"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_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"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackType RackType + +// NewRackType instantiates a new RackType 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 NewRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string) *RackType { + this := RackType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewRackTypeWithDefaults instantiates a new RackType 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 NewRackTypeWithDefaults() *RackType { + this := RackType{} + return &this +} + +// GetId returns the Id field value +func (o *RackType) 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 *RackType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RackType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *RackType) 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 *RackType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *RackType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RackType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RackType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RackType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *RackType) 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 *RackType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *RackType) SetDisplay(v string) { + o.Display = v +} + + +// GetManufacturer returns the Manufacturer field value +func (o *RackType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *RackType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *RackType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *RackType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *RackType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *RackType) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *RackType) 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 *RackType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *RackType) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RackType) 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 *RackType) 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 *RackType) 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 *RackType) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetFormFactor() RackFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor 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 *RackType) GetFormFactorOk() (*RackFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackType) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. +func (o *RackType) SetFormFactor(v RackFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackType) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackType) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackType) GetWidth() RackWidth { + if o == nil || IsNil(o.Width) { + var ret RackWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetWidthOk() (*RackWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackType) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. +func (o *RackType) SetWidth(v RackWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackType) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackType) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackType) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackType) 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 *RackType) 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 *RackType) 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 *RackType) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackType) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackType) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackType) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth 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 *RackType) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackType) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackType) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackType) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackType) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth 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 *RackType) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackType) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackType) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackType) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackType) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterUnit() RackOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit 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 *RackType) GetOuterUnitOk() (*RackOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackType) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. +func (o *RackType) SetOuterUnit(v RackOuterUnit) { + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackType) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackType) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *RackType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackType) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackType) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight 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 *RackType) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackType) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackType) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackType) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackType) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *RackType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth 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 *RackType) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackType) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackType) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackType) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackType) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackType) 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 *RackType) 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 *RackType) 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 *RackType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackType) 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 *RackType) 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 *RackType) 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 *RackType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *RackType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *RackType) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *RackType) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *RackType) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *RackType) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *RackType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *RackType) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *RackType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *RackType) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *RackType) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +func (o RackType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varRackType := _RackType{} + + err = json.Unmarshal(data, &varRackType) + + if err != nil { + return err + } + + *o = RackType(varRackType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackType struct { + value *RackType + isSet bool +} + +func (v NullableRackType) Get() *RackType { + return v.value +} + +func (v *NullableRackType) Set(val *RackType) { + v.value = val + v.isSet = true +} + +func (v NullableRackType) IsSet() bool { + return v.isSet +} + +func (v *NullableRackType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackType(val *RackType) *NullableRackType { + return &NullableRackType{value: val, isSet: true} +} + +func (v NullableRackType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_type_request.go b/model_rack_type_request.go new file mode 100644 index 0000000000..64522eb018 --- /dev/null +++ b/model_rack_type_request.go @@ -0,0 +1,925 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the RackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackTypeRequest{} + +// RackTypeRequest Adds support for custom fields and tags. +type RackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_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 NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_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"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackTypeRequest RackTypeRequest + +// NewRackTypeRequest instantiates a new RackTypeRequest 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 NewRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *RackTypeRequest { + this := RackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewRackTypeRequestWithDefaults instantiates a new RackTypeRequest 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 NewRackTypeRequestWithDefaults() *RackTypeRequest { + this := RackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *RackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *RackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *RackTypeRequest) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *RackTypeRequest) 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 *RackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *RackTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor 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 *RackTypeRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackTypeRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullablePatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *RackTypeRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackTypeRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackTypeRequest) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackTypeRequest) GetWidth() RackWidthValue { + if o == nil || IsNil(o.Width) { + var ret RackWidthValue + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetWidthOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. +func (o *RackTypeRequest) SetWidth(v RackWidthValue) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth 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 *RackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth 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 *RackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit 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 *RackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullablePatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *RackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackTypeRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *RackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight 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 *RackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *RackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth 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 *RackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) 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 *RackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o RackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varRackTypeRequest := _RackTypeRequest{} + + err = json.Unmarshal(data, &varRackTypeRequest) + + if err != nil { + return err + } + + *o = RackTypeRequest(varRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackTypeRequest struct { + value *RackTypeRequest + isSet bool +} + +func (v NullableRackTypeRequest) Get() *RackTypeRequest { + return v.value +} + +func (v *NullableRackTypeRequest) Set(val *RackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackTypeRequest(val *RackTypeRequest) *NullableRackTypeRequest { + return &NullableRackTypeRequest{value: val, isSet: true} +} + +func (v NullableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_unit.go b/model_rack_unit.go index 6bd4ac7813..4331ebd1ac 100644 --- a/model_rack_unit.go +++ b/model_rack_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &RackUnit{} // RackUnit A rack unit is an abstraction formed by the set (rack, position, face); it does not exist as a row in the database. type RackUnit struct { - Id float64 `json:"id"` - Name string `json:"name"` - Face RackUnitFace `json:"face"` - Device Device `json:"device"` - Occupied bool `json:"occupied"` - Display string `json:"display"` + Id float64 `json:"id"` + Name string `json:"name"` + Face RackUnitFace `json:"face"` + Device BriefDevice `json:"device"` + Occupied bool `json:"occupied"` + Display string `json:"display"` AdditionalProperties map[string]interface{} } @@ -35,7 +35,7 @@ type _RackUnit RackUnit // 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 NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string) *RackUnit { +func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string) *RackUnit { this := RackUnit{} this.Id = id this.Name = name @@ -78,6 +78,7 @@ func (o *RackUnit) SetId(v float64) { o.Id = v } + // GetName returns the Name field value func (o *RackUnit) GetName() string { if o == nil { @@ -102,6 +103,7 @@ func (o *RackUnit) SetName(v string) { o.Name = v } + // GetFace returns the Face field value func (o *RackUnit) GetFace() RackUnitFace { if o == nil { @@ -126,10 +128,11 @@ func (o *RackUnit) SetFace(v RackUnitFace) { o.Face = v } + // GetDevice returns the Device field value -func (o *RackUnit) GetDevice() Device { +func (o *RackUnit) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -138,7 +141,7 @@ func (o *RackUnit) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RackUnit) GetDeviceOk() (*Device, bool) { +func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -146,10 +149,11 @@ func (o *RackUnit) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RackUnit) SetDevice(v Device) { +func (o *RackUnit) SetDevice(v BriefDevice) { o.Device = v } + // GetOccupied returns the Occupied field value func (o *RackUnit) GetOccupied() bool { if o == nil { @@ -174,6 +178,7 @@ func (o *RackUnit) SetOccupied(v bool) { o.Occupied = v } + // GetDisplay returns the Display field value func (o *RackUnit) GetDisplay() string { if o == nil { @@ -198,8 +203,9 @@ func (o *RackUnit) SetDisplay(v string) { o.Display = v } + func (o RackUnit) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -235,20 +241,37 @@ func (o *RackUnit) UnmarshalJSON(data []byte) (err error) { "display", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRackUnit := _RackUnit{} err = json.Unmarshal(data, &varRackUnit) @@ -309,3 +332,5 @@ func (v *NullableRackUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_unit_face.go b/model_rack_unit_face.go index 081988bab3..119d8ccda7 100644 --- a/model_rack_unit_face.go +++ b/model_rack_unit_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &RackUnitFace{} // RackUnitFace struct for RackUnitFace type RackUnitFace struct { - Value *RackUnitFaceValue `json:"value,omitempty"` - Label *DeviceFaceLabel `json:"label,omitempty"` + Value *RackUnitFaceValue `json:"value,omitempty"` + Label *DeviceFaceLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *RackUnitFace) SetLabel(v DeviceFaceLabel) { } func (o RackUnitFace) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableRackUnitFace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_unit_face_value.go b/model_rack_unit_face_value.go index 1219f8e2cf..c0f34aec4c 100644 --- a/model_rack_unit_face_value.go +++ b/model_rack_unit_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ type RackUnitFaceValue string // List of RackUnit_face_value const ( RACKUNITFACEVALUE_FRONT RackUnitFaceValue = "front" - RACKUNITFACEVALUE_REAR RackUnitFaceValue = "rear" + RACKUNITFACEVALUE_REAR RackUnitFaceValue = "rear" ) // All allowed values of RackUnitFaceValue enum @@ -108,3 +108,4 @@ func (v *NullableRackUnitFaceValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_l2_vpn_type.go b/model_rack_width.go similarity index 58% rename from model_l2_vpn_type.go rename to model_rack_width.go index 2d3fba3632..22c6d38777 100644 --- a/model_l2_vpn_type.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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -14,39 +14,39 @@ import ( "encoding/json" ) -// checks if the L2VPNType type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &L2VPNType{} +// checks if the RackWidth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackWidth{} -// L2VPNType struct for L2VPNType -type L2VPNType struct { - Value *L2VPNTypeValue `json:"value,omitempty"` - Label *L2VPNTypeLabel `json:"label,omitempty"` +// RackWidth struct for RackWidth +type RackWidth struct { + Value *RackWidthValue `json:"value,omitempty"` + Label *RackWidthLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } -type _L2VPNType L2VPNType +type _RackWidth RackWidth -// NewL2VPNType instantiates a new L2VPNType object +// NewRackWidth instantiates a new RackWidth 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 NewL2VPNType() *L2VPNType { - this := L2VPNType{} +func NewRackWidth() *RackWidth { + this := RackWidth{} return &this } -// NewL2VPNTypeWithDefaults instantiates a new L2VPNType object +// NewRackWidthWithDefaults instantiates a new RackWidth 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 NewL2VPNTypeWithDefaults() *L2VPNType { - this := L2VPNType{} +func NewRackWidthWithDefaults() *RackWidth { + this := RackWidth{} return &this } // GetValue returns the Value field value if set, zero value otherwise. -func (o *L2VPNType) GetValue() L2VPNTypeValue { +func (o *RackWidth) GetValue() RackWidthValue { if o == nil || IsNil(o.Value) { - var ret L2VPNTypeValue + var ret RackWidthValue return ret } return *o.Value @@ -54,7 +54,7 @@ func (o *L2VPNType) GetValue() L2VPNTypeValue { // 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 *L2VPNType) GetValueOk() (*L2VPNTypeValue, bool) { +func (o *RackWidth) GetValueOk() (*RackWidthValue, bool) { if o == nil || IsNil(o.Value) { return nil, false } @@ -62,7 +62,7 @@ func (o *L2VPNType) GetValueOk() (*L2VPNTypeValue, bool) { } // HasValue returns a boolean if a field has been set. -func (o *L2VPNType) HasValue() bool { +func (o *RackWidth) HasValue() bool { if o != nil && !IsNil(o.Value) { return true } @@ -70,15 +70,15 @@ func (o *L2VPNType) HasValue() bool { return false } -// SetValue gets a reference to the given L2VPNTypeValue and assigns it to the Value field. -func (o *L2VPNType) SetValue(v L2VPNTypeValue) { +// SetValue gets a reference to the given RackWidthValue and assigns it to the Value field. +func (o *RackWidth) SetValue(v RackWidthValue) { o.Value = &v } // GetLabel returns the Label field value if set, zero value otherwise. -func (o *L2VPNType) GetLabel() L2VPNTypeLabel { +func (o *RackWidth) GetLabel() RackWidthLabel { if o == nil || IsNil(o.Label) { - var ret L2VPNTypeLabel + var ret RackWidthLabel return ret } return *o.Label @@ -86,7 +86,7 @@ func (o *L2VPNType) GetLabel() L2VPNTypeLabel { // 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 *L2VPNType) GetLabelOk() (*L2VPNTypeLabel, bool) { +func (o *RackWidth) GetLabelOk() (*RackWidthLabel, bool) { if o == nil || IsNil(o.Label) { return nil, false } @@ -94,7 +94,7 @@ func (o *L2VPNType) GetLabelOk() (*L2VPNTypeLabel, bool) { } // HasLabel returns a boolean if a field has been set. -func (o *L2VPNType) HasLabel() bool { +func (o *RackWidth) HasLabel() bool { if o != nil && !IsNil(o.Label) { return true } @@ -102,20 +102,20 @@ func (o *L2VPNType) HasLabel() bool { return false } -// SetLabel gets a reference to the given L2VPNTypeLabel and assigns it to the Label field. -func (o *L2VPNType) SetLabel(v L2VPNTypeLabel) { +// SetLabel gets a reference to the given RackWidthLabel and assigns it to the Label field. +func (o *RackWidth) SetLabel(v RackWidthLabel) { o.Label = &v } -func (o L2VPNType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() +func (o RackWidth) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } -func (o L2VPNType) ToMap() (map[string]interface{}, error) { +func (o RackWidth) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Value) { toSerialize["value"] = o.Value @@ -131,16 +131,16 @@ func (o L2VPNType) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *L2VPNType) UnmarshalJSON(data []byte) (err error) { - varL2VPNType := _L2VPNType{} +func (o *RackWidth) UnmarshalJSON(data []byte) (err error) { + varRackWidth := _RackWidth{} - err = json.Unmarshal(data, &varL2VPNType) + err = json.Unmarshal(data, &varRackWidth) if err != nil { return err } - *o = L2VPNType(varL2VPNType) + *o = RackWidth(varRackWidth) additionalProperties := make(map[string]interface{}) @@ -153,38 +153,40 @@ func (o *L2VPNType) UnmarshalJSON(data []byte) (err error) { return err } -type NullableL2VPNType struct { - value *L2VPNType +type NullableRackWidth struct { + value *RackWidth isSet bool } -func (v NullableL2VPNType) Get() *L2VPNType { +func (v NullableRackWidth) Get() *RackWidth { return v.value } -func (v *NullableL2VPNType) Set(val *L2VPNType) { +func (v *NullableRackWidth) Set(val *RackWidth) { v.value = val v.isSet = true } -func (v NullableL2VPNType) IsSet() bool { +func (v NullableRackWidth) IsSet() bool { return v.isSet } -func (v *NullableL2VPNType) Unset() { +func (v *NullableRackWidth) Unset() { v.value = nil v.isSet = false } -func NewNullableL2VPNType(val *L2VPNType) *NullableL2VPNType { - return &NullableL2VPNType{value: val, isSet: true} +func NewNullableRackWidth(val *RackWidth) *NullableRackWidth { + return &NullableRackWidth{value: val, isSet: true} } -func (v NullableL2VPNType) MarshalJSON() ([]byte, error) { +func (v NullableRackWidth) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableL2VPNType) UnmarshalJSON(src []byte) error { +func (v *NullableRackWidth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_width_label.go b/model_rack_width_label.go new file mode 100644 index 0000000000..123147efdb --- /dev/null +++ b/model_rack_width_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackWidthLabel the model 'RackWidthLabel' +type RackWidthLabel string + +// List of Rack_width_label +const ( + RACKWIDTHLABEL__10_INCHES RackWidthLabel = "10 inches" + RACKWIDTHLABEL__19_INCHES RackWidthLabel = "19 inches" + RACKWIDTHLABEL__21_INCHES RackWidthLabel = "21 inches" + RACKWIDTHLABEL__23_INCHES RackWidthLabel = "23 inches" +) + +// All allowed values of RackWidthLabel enum +var AllowedRackWidthLabelEnumValues = []RackWidthLabel{ + "10 inches", + "19 inches", + "21 inches", + "23 inches", +} + +func (v *RackWidthLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackWidthLabel(value) + for _, existing := range AllowedRackWidthLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackWidthLabel", value) +} + +// NewRackWidthLabelFromValue returns a pointer to a valid RackWidthLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackWidthLabelFromValue(v string) (*RackWidthLabel, error) { + ev := RackWidthLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackWidthLabel: valid values are %v", v, AllowedRackWidthLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackWidthLabel) IsValid() bool { + for _, existing := range AllowedRackWidthLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_width_label value +func (v RackWidthLabel) Ptr() *RackWidthLabel { + return &v +} + +type NullableRackWidthLabel struct { + value *RackWidthLabel + isSet bool +} + +func (v NullableRackWidthLabel) Get() *RackWidthLabel { + return v.value +} + +func (v *NullableRackWidthLabel) Set(val *RackWidthLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidthLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidthLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidthLabel(val *RackWidthLabel) *NullableRackWidthLabel { + return &NullableRackWidthLabel{value: val, isSet: true} +} + +func (v NullableRackWidthLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidthLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_width_value.go b/model_rack_width_value.go new file mode 100644 index 0000000000..105e342db9 --- /dev/null +++ b/model_rack_width_value.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackWidthValue * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +type RackWidthValue int32 + +// List of Rack_width_value +const ( + RACKWIDTHVALUE__10 RackWidthValue = 10 + RACKWIDTHVALUE__19 RackWidthValue = 19 + RACKWIDTHVALUE__21 RackWidthValue = 21 + RACKWIDTHVALUE__23 RackWidthValue = 23 +) + +// All allowed values of RackWidthValue enum +var AllowedRackWidthValueEnumValues = []RackWidthValue{ + 10, + 19, + 21, + 23, +} + +func (v *RackWidthValue) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackWidthValue(value) + for _, existing := range AllowedRackWidthValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackWidthValue", value) +} + +// NewRackWidthValueFromValue returns a pointer to a valid RackWidthValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackWidthValueFromValue(v int32) (*RackWidthValue, error) { + ev := RackWidthValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackWidthValue: valid values are %v", v, AllowedRackWidthValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackWidthValue) IsValid() bool { + for _, existing := range AllowedRackWidthValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_width_value value +func (v RackWidthValue) Ptr() *RackWidthValue { + return &v +} + +type NullableRackWidthValue struct { + value *RackWidthValue + isSet bool +} + +func (v NullableRackWidthValue) Get() *RackWidthValue { + return v.value +} + +func (v *NullableRackWidthValue) Set(val *RackWidthValue) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidthValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidthValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidthValue(val *RackWidthValue) *NullableRackWidthValue { + return &NullableRackWidthValue{value: val, isSet: true} +} + +func (v NullableRackWidthValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidthValue) 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 874ce1541c..3685b96f86 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the RearPort type satisfies the MappedNullable interface at compile time @@ -21,31 +21,32 @@ 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 Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `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" validate:"regexp=^[0-9a-f]{6}$"` // 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 NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable,omitempty"` + 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 NullableString `json:"link_peers_type,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -55,7 +56,7 @@ type _RearPort RearPort // 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 NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { +func NewRearPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, cableEnd string, linkPeers []interface{}, occupied bool) *RearPort { this := RearPort{} this.Id = id this.Url = url @@ -63,12 +64,8 @@ func NewRearPort(id int32, url string, display string, device Device, name strin this.Device = device this.Name = name this.Type = type_ - this.Cable = cable this.CableEnd = cableEnd this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -105,6 +102,7 @@ func (o *RearPort) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *RearPort) GetUrl() string { if o == nil { @@ -129,6 +127,39 @@ func (o *RearPort) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RearPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RearPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RearPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RearPort) GetDisplay() string { if o == nil { @@ -153,10 +184,11 @@ func (o *RearPort) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value -func (o *RearPort) GetDevice() Device { +func (o *RearPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -165,7 +197,7 @@ func (o *RearPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPort) GetDeviceOk() (*Device, bool) { +func (o *RearPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -173,14 +205,15 @@ func (o *RearPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RearPort) SetDevice(v Device) { +func (o *RearPort) SetDevice(v BriefDevice) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPort) GetModule() Module { +func (o *RearPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -189,7 +222,7 @@ func (o *RearPort) GetModule() Module { // GetModuleOk returns a tuple with the Module 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 *RearPort) GetModuleOk() (*Module, bool) { +func (o *RearPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -205,11 +238,10 @@ func (o *RearPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *RearPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *RearPort) SetModule(v BriefModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *RearPort) SetModuleNil() { o.Module.Set(nil) @@ -244,6 +276,7 @@ func (o *RearPort) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *RearPort) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -300,6 +333,7 @@ func (o *RearPort) SetType(v FrontPortType) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *RearPort) GetColor() string { if o == nil || IsNil(o.Color) { @@ -428,31 +462,47 @@ func (o *RearPort) SetMarkConnected(v bool) { o.MarkConnected = &v } -// GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *RearPort) GetCable() Cable { - if o == nil || o.Cable.Get() == nil { - var ret Cable +// GetCable returns the Cable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPort) GetCable() BriefCable { + if o == nil || IsNil(o.Cable.Get()) { + var ret BriefCable return ret } - return *o.Cable.Get() } -// GetCableOk returns a tuple with the Cable field value +// GetCableOk returns a tuple with the Cable 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 *RearPort) GetCableOk() (*Cable, bool) { +func (o *RearPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } return o.Cable.Get(), o.Cable.IsSet() } -// SetCable sets field value -func (o *RearPort) SetCable(v Cable) { +// HasCable returns a boolean if a field has been set. +func (o *RearPort) HasCable() bool { + if o != nil && o.Cable.IsSet() { + return true + } + + return false +} + +// SetCable gets a reference to the given NullableBriefCable and assigns it to the Cable field. +func (o *RearPort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// SetCableNil sets the value for Cable to be an explicit nil +func (o *RearPort) SetCableNil() { + o.Cable.Set(nil) +} + +// UnsetCable ensures that no value is present for Cable, not even an explicit nil +func (o *RearPort) UnsetCable() { + o.Cable.Unset() +} // GetCableEnd returns the CableEnd field value func (o *RearPort) GetCableEnd() string { @@ -478,6 +528,7 @@ func (o *RearPort) SetCableEnd(v string) { o.CableEnd = v } + // GetLinkPeers returns the LinkPeers field value func (o *RearPort) GetLinkPeers() []interface{} { if o == nil { @@ -502,28 +553,47 @@ func (o *RearPort) SetLinkPeers(v []interface{}) { o.LinkPeers = v } -// GetLinkPeersType returns the LinkPeersType field value + +// GetLinkPeersType returns the LinkPeersType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RearPort) GetLinkPeersType() string { - if o == nil { + if o == nil || IsNil(o.LinkPeersType.Get()) { var ret string return ret } - - return o.LinkPeersType + return *o.LinkPeersType.Get() } -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType 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 *RearPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } -// SetLinkPeersType sets field value +// HasLinkPeersType returns a boolean if a field has been set. +func (o *RearPort) HasLinkPeersType() bool { + if o != nil && o.LinkPeersType.IsSet() { + return true + } + + return false +} + +// SetLinkPeersType gets a reference to the given NullableString and assigns it to the LinkPeersType field. func (o *RearPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) +} +// SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil +func (o *RearPort) SetLinkPeersTypeNil() { + o.LinkPeersType.Set(nil) +} + +// UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +func (o *RearPort) UnsetLinkPeersType() { + o.LinkPeersType.Unset() } // GetTags returns the Tags field value if set, zero value otherwise. @@ -590,18 +660,16 @@ func (o *RearPort) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RearPort) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *RearPort) GetCreatedOk() (*time.Time, bool) { @@ -611,23 +679,39 @@ func (o *RearPort) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *RearPort) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *RearPort) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *RearPort) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *RearPort) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RearPort) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *RearPort) GetLastUpdatedOk() (*time.Time, bool) { @@ -637,10 +721,28 @@ func (o *RearPort) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *RearPort) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *RearPort) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *RearPort) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *RearPort) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetOccupied returns the Occupied field value func (o *RearPort) GetOccupied() bool { @@ -666,8 +768,9 @@ func (o *RearPort) SetOccupied(v bool) { o.Occupied = v } + func (o RearPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -678,6 +781,9 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -700,18 +806,26 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } - toSerialize["cable"] = o.Cable.Get() + if o.Cable.IsSet() { + toSerialize["cable"] = o.Cable.Get() + } toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + if o.LinkPeersType.IsSet() { + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -732,29 +846,42 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { "device", "name", "type", - "cable", "cable_end", "link_peers", - "link_peers_type", - "created", - "last_updated", "_occupied", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRearPort := _RearPort{} err = json.Unmarshal(data, &varRearPort) @@ -770,6 +897,7 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") @@ -830,3 +958,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 0ea93e90ed..418c1b21de 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &RearPortRequest{} // RearPortRequest Adds support for custom fields and tags. type RearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` // 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{} } @@ -43,7 +43,7 @@ type _RearPortRequest RearPortRequest // 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 NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { +func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { this := RearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewRearPortRequestWithDefaults() *RearPortRequest { } // GetDevice returns the Device field value -func (o *RearPortRequest) GetDevice() DeviceRequest { +func (o *RearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *RearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,15 @@ func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *RearPortRequest) SetDevice(v DeviceRequest) { +func (o *RearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortRequest) GetModule() ModuleRequest { +func (o *RearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +96,7 @@ func (o *RearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *RearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,11 +112,10 @@ func (o *RearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *RearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *RearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *RearPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -150,6 +150,7 @@ func (o *RearPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *RearPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -206,6 +207,7 @@ func (o *RearPortRequest) SetType(v FrontPortTypeValue) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *RearPortRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -399,7 +401,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 } @@ -453,20 +455,37 @@ func (o *RearPortRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRearPortRequest := _RearPortRequest{} err = json.Unmarshal(data, &varRearPortRequest) @@ -532,3 +551,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 c0fc38788d..a21b05c20c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,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"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,12 +45,13 @@ type _RearPortTemplate RearPortTemplate // 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 NewRearPortTemplate(id int32, url string, display string, name string) *RearPortTemplate { +func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType) *RearPortTemplate { this := RearPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Type = type_ return &this } @@ -76,6 +87,7 @@ func (o *RearPortTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *RearPortTemplate) GetUrl() string { if o == nil { @@ -100,6 +112,7 @@ func (o *RearPortTemplate) SetUrl(v string) { o.Url = v } + // GetDisplay returns the Display field value func (o *RearPortTemplate) GetDisplay() string { if o == nil { @@ -124,6 +137,91 @@ func (o *RearPortTemplate) SetDisplay(v string) { o.Display = v } + +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType 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 *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType 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 *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *RearPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplate) GetName() string { if o == nil { @@ -148,6 +246,128 @@ func (o *RearPortTemplate) SetName(v string) { o.Name = v } + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplate) 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 *RearPortTemplate) 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 *RearPortTemplate) 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 *RearPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplate) GetType() FrontPortType { + if o == nil { + var ret FrontPortType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplate) SetType(v FrontPortType) { + o.Type = v +} + + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplate) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplate) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplate) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplate) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplate) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplate) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,8 +400,92 @@ func (o *RearPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *RearPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *RearPortTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *RearPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *RearPortTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *RearPortTemplate) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *RearPortTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *RearPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *RearPortTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *RearPortTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + func (o RearPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -193,10 +497,32 @@ func (o RearPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,22 +540,40 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRearPortTemplate := _RearPortTemplate{} err = json.Unmarshal(data, &varRearPortTemplate) @@ -246,8 +590,16 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } @@ -289,3 +641,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 094c72a2dc..fd0e895f41 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,16 @@ var _ MappedNullable = &RearPortTemplateRequest{} // RearPortTemplateRequest 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 RearPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +39,10 @@ type _RearPortTemplateRequest RearPortTemplateRequest // 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 NewRearPortTemplateRequest(name string) *RearPortTemplateRequest { +func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue) *RearPortTemplateRequest { this := RearPortTemplateRequest{} this.Name = name + this.Type = type_ return &this } @@ -46,6 +54,90 @@ func NewRearPortTemplateRequestWithDefaults() *RearPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType 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 *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType 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 *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +162,128 @@ func (o *RearPortTemplateRequest) SetName(v string) { o.Name = v } + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) 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 *RearPortTemplateRequest) 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 *RearPortTemplateRequest) 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 *RearPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue { + if o == nil { + var ret FrontPortTypeValue + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue) { + o.Type = v +} + + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplateRequest) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplateRequest) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -103,7 +317,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 } @@ -112,7 +326,23 @@ func (o RearPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o RearPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -130,22 +360,40 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRearPortTemplateRequest := _RearPortTemplateRequest{} err = json.Unmarshal(data, &varRearPortTemplateRequest) @@ -159,7 +407,13 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } @@ -202,3 +456,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 41939f6356..8647877309 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Region type satisfies the MappedNullable interface at compile time @@ -21,19 +21,21 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + SiteCount *int32 `json:"site_count,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -43,16 +45,13 @@ type _Region Region // 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 NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *Region { +func NewRegion(id int32, url string, display string, name string, slug string, depth int32) *Region { this := Region{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.SiteCount = siteCount this.Depth = depth return &this } @@ -89,6 +88,7 @@ func (o *Region) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Region) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *Region) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Region) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Region) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Region) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Region) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Region) GetDisplay() string { if o == nil { @@ -137,6 +170,7 @@ func (o *Region) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Region) GetName() string { if o == nil { @@ -161,6 +195,7 @@ func (o *Region) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Region) GetSlug() string { if o == nil { @@ -185,6 +220,7 @@ func (o *Region) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Region) GetParent() NestedRegion { if o == nil || IsNil(o.Parent.Get()) { @@ -217,7 +253,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) @@ -324,18 +359,16 @@ func (o *Region) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Region) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *Region) GetCreatedOk() (*time.Time, bool) { @@ -345,23 +378,39 @@ func (o *Region) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Region) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Region) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Region) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Region) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Region) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Region) GetLastUpdatedOk() (*time.Time, bool) { @@ -371,33 +420,91 @@ func (o *Region) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Region) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Region) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Region) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Region) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetSiteCount returns the SiteCount field value +// GetSiteCount returns the SiteCount field value if set, zero value otherwise. func (o *Region) GetSiteCount() int32 { - if o == nil { + if o == nil || IsNil(o.SiteCount) { var ret int32 return ret } - - return o.SiteCount + return *o.SiteCount } -// GetSiteCountOk returns a tuple with the SiteCount field value +// GetSiteCountOk returns a tuple with the SiteCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Region) GetSiteCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.SiteCount) { return nil, false } - return &o.SiteCount, true + return o.SiteCount, true } -// SetSiteCount sets field value +// HasSiteCount returns a boolean if a field has been set. +func (o *Region) HasSiteCount() bool { + if o != nil && !IsNil(o.SiteCount) { + return true + } + + return false +} + +// SetSiteCount gets a reference to the given int32 and assigns it to the SiteCount field. func (o *Region) SetSiteCount(v int32) { - o.SiteCount = v + o.SiteCount = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Region) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Region) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Region) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Region) SetPrefixCount(v int64) { + o.PrefixCount = &v } // GetDepth returns the Depth field value @@ -424,8 +531,9 @@ func (o *Region) SetDepth(v int32) { o.Depth = v } + func (o Region) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -436,6 +544,9 @@ func (o Region) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -451,9 +562,18 @@ func (o Region) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["site_count"] = o.SiteCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.SiteCount) { + toSerialize["site_count"] = o.SiteCount + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -473,26 +593,40 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", - "site_count", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRegion := _Region{} err = json.Unmarshal(data, &varRegion) @@ -508,6 +642,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -518,6 +653,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "created") delete(additionalProperties, "last_updated") delete(additionalProperties, "site_count") + delete(additionalProperties, "prefix_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties } @@ -560,3 +696,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 a014b48115..69692ad995 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -74,6 +74,7 @@ func (o *RegionRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *RegionRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *RegionRequest) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RegionRequest) GetParent() NestedRegionRequest { if o == nil || IsNil(o.Parent.Get()) { @@ -130,7 +132,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) @@ -238,7 +239,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 } @@ -278,20 +279,37 @@ func (o *RegionRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRegionRequest := _RegionRequest{} err = json.Unmarshal(data, &varRegionRequest) @@ -352,3 +370,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 503050bfc1..879a9688e8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,13 +21,20 @@ var _ MappedNullable = &RIR{} // RIR Adds support for custom fields and tags. type RIR 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"` - AggregateCount int64 `json:"aggregate_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + AggregateCount int64 `json:"aggregate_count"` AdditionalProperties map[string]interface{} } @@ -79,6 +87,7 @@ func (o *RIR) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *RIR) GetUrl() string { if o == nil { @@ -103,6 +112,39 @@ func (o *RIR) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RIR) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RIR) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RIR) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RIR) GetDisplay() string { if o == nil { @@ -127,6 +169,7 @@ func (o *RIR) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *RIR) GetName() string { if o == nil { @@ -151,6 +194,7 @@ func (o *RIR) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *RIR) GetSlug() string { if o == nil { @@ -175,6 +219,39 @@ func (o *RIR) SetSlug(v string) { o.Slug = v } + +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIR) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIR) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIR) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIR) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +284,154 @@ func (o *RIR) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIR) 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 *RIR) 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 *RIR) 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 *RIR) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIR) 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 *RIR) 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 *RIR) 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 *RIR) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RIR) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *RIR) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *RIR) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *RIR) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *RIR) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *RIR) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RIR) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *RIR) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *RIR) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *RIR) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *RIR) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *RIR) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + // GetAggregateCount returns the AggregateCount field value func (o *RIR) GetAggregateCount() int64 { if o == nil { @@ -231,8 +456,9 @@ func (o *RIR) SetAggregateCount(v int64) { o.AggregateCount = v } + func (o RIR) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -243,12 +469,30 @@ func (o RIR) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["aggregate_count"] = o.AggregateCount for key, value := range o.AdditionalProperties { @@ -271,20 +515,37 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { "aggregate_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRIR := _RIR{} err = json.Unmarshal(data, &varRIR) @@ -300,10 +561,16 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "aggregate_count") o.AdditionalProperties = additionalProperties } @@ -346,3 +613,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 c7ddc0294b..a2021d5430 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &RIRRequest{} // RIRRequest Adds support for custom fields and tags. type RIRRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // 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"` AdditionalProperties map[string]interface{} } @@ -71,6 +75,7 @@ func (o *RIRRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *RIRRequest) GetSlug() string { if o == nil { @@ -95,6 +100,39 @@ func (o *RIRRequest) SetSlug(v string) { o.Slug = v } + +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIRRequest) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIRRequest) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIRRequest) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIRRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +165,72 @@ func (o *RIRRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIRRequest) 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 *RIRRequest) 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 *RIRRequest) 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 *RIRRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIRRequest) 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 *RIRRequest) 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 *RIRRequest) 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 *RIRRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RIRRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -139,9 +241,18 @@ func (o RIRRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +270,37 @@ func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRIRRequest := _RIRRequest{} err = json.Unmarshal(data, &varRIRRequest) @@ -188,7 +316,10 @@ func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +361,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 41ad3c7c58..581147acb6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,20 @@ 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"` - Description *string `json:"description,omitempty"` - PrefixCount int64 `json:"prefix_count"` - VlanCount int64 `json:"vlan_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,15 +44,13 @@ type _Role Role // 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 NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64) *Role { +func NewRole(id int32, url string, display string, name string, slug string) *Role { this := Role{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.PrefixCount = prefixCount - this.VlanCount = vlanCount return &this } @@ -81,6 +86,7 @@ func (o *Role) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Role) GetUrl() string { if o == nil { @@ -105,6 +111,39 @@ func (o *Role) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Role) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Role) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Role) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Role) GetDisplay() string { if o == nil { @@ -129,6 +168,7 @@ func (o *Role) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Role) GetName() string { if o == nil { @@ -153,6 +193,7 @@ func (o *Role) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Role) GetSlug() string { if o == nil { @@ -177,6 +218,39 @@ func (o *Role) SetSlug(v string) { o.Slug = v } + +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *Role) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *Role) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *Role) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Role) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,56 +283,220 @@ func (o *Role) SetDescription(v string) { o.Description = &v } -// GetPrefixCount returns the PrefixCount field value -func (o *Role) GetPrefixCount() int64 { +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Role) 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 *Role) 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 *Role) 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 *Role) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Role) 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 *Role) 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 *Role) 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 *Role) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Role) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Role) GetCreatedOk() (*time.Time, bool) { if o == nil { - var ret int64 + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Role) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Role) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Role) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Role) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Role) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time return ret } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Role) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Role) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Role) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Role) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} - return o.PrefixCount +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Role) UnsetLastUpdated() { + o.LastUpdated.Unset() } -// GetPrefixCountOk returns a tuple with the PrefixCount field value +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Role) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetPrefixCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.PrefixCount) { return nil, false } - return &o.PrefixCount, true + return o.PrefixCount, true } -// SetPrefixCount sets field value +// HasPrefixCount returns a boolean if a field has been set. +func (o *Role) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. func (o *Role) SetPrefixCount(v int64) { - o.PrefixCount = v + o.PrefixCount = &v } -// GetVlanCount returns the VlanCount field value +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. func (o *Role) GetVlanCount() int64 { - if o == nil { + if o == nil || IsNil(o.VlanCount) { var ret int64 return ret } - - return o.VlanCount + return *o.VlanCount } -// GetVlanCountOk returns a tuple with the VlanCount field value +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetVlanCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VlanCount) { return nil, false } - return &o.VlanCount, true + return o.VlanCount, true } -// SetVlanCount sets field value +// HasVlanCount returns a boolean if a field has been set. +func (o *Role) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. func (o *Role) SetVlanCount(v int64) { - o.VlanCount = v + o.VlanCount = &v } func (o Role) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -269,14 +507,36 @@ func (o Role) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["prefix_count"] = o.PrefixCount - toSerialize["vlan_count"] = o.VlanCount + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -295,24 +555,39 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "prefix_count", - "vlan_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRole := _Role{} err = json.Unmarshal(data, &varRole) @@ -328,10 +603,16 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "prefix_count") delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties @@ -375,3 +656,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 601cac5595..c4dbc5683a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,12 @@ var _ MappedNullable = &RoleRequest{} // RoleRequest Adds support for custom fields and tags. type RoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -71,6 +74,7 @@ func (o *RoleRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *RoleRequest) GetSlug() string { if o == nil { @@ -95,6 +99,39 @@ func (o *RoleRequest) SetSlug(v string) { o.Slug = v } + +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *RoleRequest) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *RoleRequest) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *RoleRequest) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RoleRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +164,72 @@ func (o *RoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RoleRequest) 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 *RoleRequest) 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 *RoleRequest) 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 *RoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RoleRequest) 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 *RoleRequest) 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 *RoleRequest) 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 *RoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -139,9 +240,18 @@ func (o RoleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +269,37 @@ func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRoleRequest := _RoleRequest{} err = json.Unmarshal(data, &varRoleRequest) @@ -188,7 +315,10 @@ func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +360,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 7856b51ca6..6f769e9f27 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the RouteTarget type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableTenant `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 NullableBriefTenant `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,14 +43,12 @@ type _RouteTarget RouteTarget // 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 NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *RouteTarget { +func NewRouteTarget(id int32, url string, display string, name string) *RouteTarget { this := RouteTarget{} this.Id = id this.Url = url this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -85,6 +84,7 @@ func (o *RouteTarget) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *RouteTarget) GetUrl() string { if o == nil { @@ -109,6 +109,39 @@ func (o *RouteTarget) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RouteTarget) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteTarget) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RouteTarget) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RouteTarget) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RouteTarget) GetDisplay() string { if o == nil { @@ -133,6 +166,7 @@ func (o *RouteTarget) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *RouteTarget) GetName() string { if o == nil { @@ -157,10 +191,11 @@ func (o *RouteTarget) SetName(v string) { o.Name = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTarget) GetTenant() Tenant { +func (o *RouteTarget) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -169,7 +204,7 @@ func (o *RouteTarget) GetTenant() Tenant { // 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 *RouteTarget) GetTenantOk() (*Tenant, bool) { +func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -185,11 +220,10 @@ func (o *RouteTarget) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RouteTarget) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RouteTarget) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RouteTarget) SetTenantNil() { o.Tenant.Set(nil) @@ -328,18 +362,16 @@ func (o *RouteTarget) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RouteTarget) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *RouteTarget) GetCreatedOk() (*time.Time, bool) { @@ -349,23 +381,39 @@ func (o *RouteTarget) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *RouteTarget) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *RouteTarget) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *RouteTarget) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *RouteTarget) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RouteTarget) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *RouteTarget) GetLastUpdatedOk() (*time.Time, bool) { @@ -375,13 +423,31 @@ func (o *RouteTarget) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *RouteTarget) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *RouteTarget) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *RouteTarget) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *RouteTarget) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o RouteTarget) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -392,6 +458,9 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Tenant.IsSet() { @@ -409,8 +478,12 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -428,24 +501,39 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRouteTarget := _RouteTarget{} err = json.Unmarshal(data, &varRouteTarget) @@ -461,6 +549,7 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "tenant") @@ -511,3 +600,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 f913d4bdf1..7c879341a7 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,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 NullableTenantRequest `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 NullableBriefTenantRequest `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{} } @@ -74,10 +74,11 @@ func (o *RouteTargetRequest) SetName(v string) { o.Name = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTargetRequest) GetTenant() TenantRequest { +func (o *RouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -86,7 +87,7 @@ func (o *RouteTargetRequest) GetTenant() TenantRequest { // 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 *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -102,11 +103,10 @@ func (o *RouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RouteTargetRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -246,7 +246,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 } @@ -287,20 +287,37 @@ func (o *RouteTargetRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varRouteTargetRequest := _RouteTargetRequest{} err = json.Unmarshal(data, &varRouteTargetRequest) @@ -361,3 +378,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 4282ab65ad..62f2e4aab3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the SavedFilter type satisfies the MappedNullable interface at compile time @@ -21,20 +21,21 @@ 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"` - ObjectTypes []string `json:"object_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 interface{} `json:"parameters"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + ObjectTypes []string `json:"object_types"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 interface{} `json:"parameters"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,7 +45,7 @@ type _SavedFilter SavedFilter // 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 NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter { +func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}) *SavedFilter { this := SavedFilter{} this.Id = id this.Url = url @@ -53,8 +54,6 @@ func NewSavedFilter(id int32, url string, display string, objectTypes []string, this.Name = name this.Slug = slug this.Parameters = parameters - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -90,6 +89,7 @@ func (o *SavedFilter) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *SavedFilter) GetUrl() string { if o == nil { @@ -114,6 +114,39 @@ func (o *SavedFilter) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *SavedFilter) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SavedFilter) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *SavedFilter) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *SavedFilter) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *SavedFilter) GetDisplay() string { if o == nil { @@ -138,6 +171,7 @@ func (o *SavedFilter) SetDisplay(v string) { o.Display = v } + // GetObjectTypes returns the ObjectTypes field value func (o *SavedFilter) GetObjectTypes() []string { if o == nil { @@ -162,6 +196,7 @@ func (o *SavedFilter) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *SavedFilter) GetName() string { if o == nil { @@ -186,6 +221,7 @@ func (o *SavedFilter) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *SavedFilter) GetSlug() string { if o == nil { @@ -210,6 +246,7 @@ func (o *SavedFilter) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SavedFilter) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -274,7 +311,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) @@ -407,18 +443,17 @@ func (o *SavedFilter) SetParameters(v interface{}) { o.Parameters = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedFilter) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *SavedFilter) GetCreatedOk() (*time.Time, bool) { @@ -428,23 +463,39 @@ func (o *SavedFilter) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *SavedFilter) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *SavedFilter) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *SavedFilter) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *SavedFilter) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SavedFilter) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *SavedFilter) GetLastUpdatedOk() (*time.Time, bool) { @@ -454,13 +505,31 @@ func (o *SavedFilter) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *SavedFilter) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *SavedFilter) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *SavedFilter) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *SavedFilter) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o SavedFilter) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -471,6 +540,9 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -493,8 +565,12 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) { if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -515,24 +591,39 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { "name", "slug", "parameters", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varSavedFilter := _SavedFilter{} err = json.Unmarshal(data, &varSavedFilter) @@ -548,6 +639,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") @@ -601,3 +693,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 d38d5ce3eb..56a8503fd1 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,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 { - ObjectTypes []string `json:"object_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 interface{} `json:"parameters"` + ObjectTypes []string `json:"object_types"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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 interface{} `json:"parameters"` AdditionalProperties map[string]interface{} } @@ -79,6 +79,7 @@ func (o *SavedFilterRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *SavedFilterRequest) GetName() string { if o == nil { @@ -103,6 +104,7 @@ func (o *SavedFilterRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *SavedFilterRequest) GetSlug() string { if o == nil { @@ -127,6 +129,7 @@ func (o *SavedFilterRequest) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SavedFilterRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -191,7 +194,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) @@ -324,8 +326,9 @@ func (o *SavedFilterRequest) SetParameters(v interface{}) { o.Parameters = v } + func (o SavedFilterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -374,20 +377,37 @@ func (o *SavedFilterRequest) UnmarshalJSON(data []byte) (err error) { "parameters", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varSavedFilterRequest := _SavedFilterRequest{} err = json.Unmarshal(data, &varSavedFilterRequest) @@ -451,3 +471,5 @@ func (v *NullableSavedFilterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go index 19b41f6a59..c86253f1e4 100644 --- a/model_schema_retrieve_format_parameter.go +++ b/model_schema_retrieve_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -108,3 +108,4 @@ func (v *NullableSchemaRetrieveFormatParameter) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_schema_retrieve_lang_parameter.go b/model_schema_retrieve_lang_parameter.go index 301bf4dbb2..0b06eaf807 100644 --- a/model_schema_retrieve_lang_parameter.go +++ b/model_schema_retrieve_lang_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,16 @@ type SchemaRetrieveLangParameter string // List of schema_retrieve_lang_parameter const ( + SCHEMARETRIEVELANGPARAMETER_CS SchemaRetrieveLangParameter = "cs" + SCHEMARETRIEVELANGPARAMETER_DA SchemaRetrieveLangParameter = "da" SCHEMARETRIEVELANGPARAMETER_DE SchemaRetrieveLangParameter = "de" SCHEMARETRIEVELANGPARAMETER_EN SchemaRetrieveLangParameter = "en" SCHEMARETRIEVELANGPARAMETER_ES SchemaRetrieveLangParameter = "es" SCHEMARETRIEVELANGPARAMETER_FR SchemaRetrieveLangParameter = "fr" + SCHEMARETRIEVELANGPARAMETER_IT SchemaRetrieveLangParameter = "it" SCHEMARETRIEVELANGPARAMETER_JA SchemaRetrieveLangParameter = "ja" + SCHEMARETRIEVELANGPARAMETER_NL SchemaRetrieveLangParameter = "nl" + SCHEMARETRIEVELANGPARAMETER_PL SchemaRetrieveLangParameter = "pl" SCHEMARETRIEVELANGPARAMETER_PT SchemaRetrieveLangParameter = "pt" SCHEMARETRIEVELANGPARAMETER_RU SchemaRetrieveLangParameter = "ru" SCHEMARETRIEVELANGPARAMETER_TR SchemaRetrieveLangParameter = "tr" @@ -34,11 +39,16 @@ const ( // All allowed values of SchemaRetrieveLangParameter enum var AllowedSchemaRetrieveLangParameterEnumValues = []SchemaRetrieveLangParameter{ + "cs", + "da", "de", "en", "es", "fr", + "it", "ja", + "nl", + "pl", "pt", "ru", "tr", @@ -124,3 +134,4 @@ func (v *NullableSchemaRetrieveLangParameter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_script.go b/model_script.go index 738094f17b..b408f36758 100644 --- a/model_script.go +++ b/model_script.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,16 @@ var _ MappedNullable = &Script{} // Script 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 Script struct { - Id int32 `json:"id"` - Url string `json:"url"` - Module int32 `json:"module"` - Name string `json:"name"` - Description string `json:"description"` - Vars interface{} `json:"vars"` - Result Job `json:"result"` - Display string `json:"display"` - IsExecutable bool `json:"is_executable"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Module int32 `json:"module"` + Name string `json:"name"` + Description NullableString `json:"description,omitempty"` + Vars interface{} `json:"vars,omitempty"` + Result BriefJob `json:"result"` + Display string `json:"display"` + IsExecutable bool `json:"is_executable"` AdditionalProperties map[string]interface{} } @@ -38,14 +39,12 @@ type _Script Script // 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 NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool) *Script { +func NewScript(id int32, url string, module int32, name string, result BriefJob, display string, isExecutable bool) *Script { this := Script{} this.Id = id this.Url = url this.Module = module this.Name = name - this.Description = description - this.Vars = vars this.Result = result this.Display = display this.IsExecutable = isExecutable @@ -84,6 +83,7 @@ func (o *Script) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Script) GetUrl() string { if o == nil { @@ -108,6 +108,39 @@ func (o *Script) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Script) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Script) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Script) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Script) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetModule returns the Module field value func (o *Script) GetModule() int32 { if o == nil { @@ -132,6 +165,7 @@ func (o *Script) SetModule(v int32) { o.Module = v } + // GetName returns the Name field value func (o *Script) GetName() string { if o == nil { @@ -156,42 +190,59 @@ func (o *Script) SetName(v string) { o.Name = v } -// GetDescription returns the Description field value + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Script) GetDescription() string { - if o == nil { + if o == nil || IsNil(o.Description.Get()) { var ret string return ret } - - return o.Description + return *o.Description.Get() } -// GetDescriptionOk returns a tuple with the Description field value +// GetDescriptionOk returns a tuple with the Description 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 *Script) GetDescriptionOk() (*string, bool) { if o == nil { return nil, false } - return &o.Description, true + return o.Description.Get(), o.Description.IsSet() } -// SetDescription sets field value +// HasDescription returns a boolean if a field has been set. +func (o *Script) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. func (o *Script) SetDescription(v string) { - o.Description = v + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *Script) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *Script) UnsetDescription() { + o.Description.Unset() } -// GetVars returns the Vars field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetVars returns the Vars field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Script) GetVars() interface{} { if o == nil { var ret interface{} return ret } - return o.Vars } -// GetVarsOk returns a tuple with the Vars field value +// GetVarsOk returns a tuple with the Vars 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 *Script) GetVarsOk() (*interface{}, bool) { @@ -201,15 +252,24 @@ func (o *Script) GetVarsOk() (*interface{}, bool) { return &o.Vars, true } -// SetVars sets field value +// HasVars returns a boolean if a field has been set. +func (o *Script) HasVars() bool { + if o != nil && !IsNil(o.Vars) { + return true + } + + return false +} + +// SetVars gets a reference to the given interface{} and assigns it to the Vars field. func (o *Script) SetVars(v interface{}) { o.Vars = v } // GetResult returns the Result field value -func (o *Script) GetResult() Job { +func (o *Script) GetResult() BriefJob { if o == nil { - var ret Job + var ret BriefJob return ret } @@ -218,7 +278,7 @@ func (o *Script) GetResult() Job { // GetResultOk returns a tuple with the Result field value // and a boolean to check if the value has been set. -func (o *Script) GetResultOk() (*Job, bool) { +func (o *Script) GetResultOk() (*BriefJob, bool) { if o == nil { return nil, false } @@ -226,10 +286,11 @@ func (o *Script) GetResultOk() (*Job, bool) { } // SetResult sets field value -func (o *Script) SetResult(v Job) { +func (o *Script) SetResult(v BriefJob) { o.Result = v } + // GetDisplay returns the Display field value func (o *Script) GetDisplay() string { if o == nil { @@ -254,6 +315,7 @@ func (o *Script) SetDisplay(v string) { o.Display = v } + // GetIsExecutable returns the IsExecutable field value func (o *Script) GetIsExecutable() bool { if o == nil { @@ -278,8 +340,9 @@ func (o *Script) SetIsExecutable(v bool) { o.IsExecutable = v } + func (o Script) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -290,9 +353,14 @@ func (o Script) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["module"] = o.Module toSerialize["name"] = o.Name - toSerialize["description"] = o.Description + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } if o.Vars != nil { toSerialize["vars"] = o.Vars } @@ -316,27 +384,42 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { "url", "module", "name", - "description", - "vars", "result", "display", "is_executable", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varScript := _Script{} err = json.Unmarshal(data, &varScript) @@ -352,6 +435,7 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -400,3 +484,5 @@ func (v *NullableScript) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_script_input_request.go b/model_script_input_request.go new file mode 100644 index 0000000000..9fab292515 --- /dev/null +++ b/model_script_input_request.go @@ -0,0 +1,315 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the ScriptInputRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScriptInputRequest{} + +// ScriptInputRequest struct for ScriptInputRequest +type ScriptInputRequest struct { + Data interface{} `json:"data"` + Commit bool `json:"commit"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ScriptInputRequest ScriptInputRequest + +// NewScriptInputRequest instantiates a new ScriptInputRequest 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 NewScriptInputRequest(data interface{}, commit bool) *ScriptInputRequest { + this := ScriptInputRequest{} + this.Data = data + this.Commit = commit + return &this +} + +// NewScriptInputRequestWithDefaults instantiates a new ScriptInputRequest 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 NewScriptInputRequestWithDefaults() *ScriptInputRequest { + this := ScriptInputRequest{} + return &this +} + +// GetData returns the Data field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ScriptInputRequest) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data 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 *ScriptInputRequest) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ScriptInputRequest) SetData(v interface{}) { + o.Data = v +} + + +// GetCommit returns the Commit field value +func (o *ScriptInputRequest) GetCommit() bool { + if o == nil { + var ret bool + return ret + } + + return o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value +// and a boolean to check if the value has been set. +func (o *ScriptInputRequest) GetCommitOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Commit, true +} + +// SetCommit sets field value +func (o *ScriptInputRequest) SetCommit(v bool) { + o.Commit = v +} + + +// GetScheduleAt returns the ScheduleAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptInputRequest) GetScheduleAt() time.Time { + if o == nil || IsNil(o.ScheduleAt.Get()) { + var ret time.Time + return ret + } + return *o.ScheduleAt.Get() +} + +// GetScheduleAtOk returns a tuple with the ScheduleAt 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 *ScriptInputRequest) GetScheduleAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ScheduleAt.Get(), o.ScheduleAt.IsSet() +} + +// HasScheduleAt returns a boolean if a field has been set. +func (o *ScriptInputRequest) HasScheduleAt() bool { + if o != nil && o.ScheduleAt.IsSet() { + return true + } + + return false +} + +// SetScheduleAt gets a reference to the given NullableTime and assigns it to the ScheduleAt field. +func (o *ScriptInputRequest) SetScheduleAt(v time.Time) { + o.ScheduleAt.Set(&v) +} +// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil +func (o *ScriptInputRequest) SetScheduleAtNil() { + o.ScheduleAt.Set(nil) +} + +// UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +func (o *ScriptInputRequest) UnsetScheduleAt() { + o.ScheduleAt.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptInputRequest) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval 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 *ScriptInputRequest) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *ScriptInputRequest) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *ScriptInputRequest) SetInterval(v int32) { + o.Interval.Set(&v) +} +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *ScriptInputRequest) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *ScriptInputRequest) UnsetInterval() { + o.Interval.Unset() +} + +func (o ScriptInputRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScriptInputRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + toSerialize["commit"] = o.Commit + if o.ScheduleAt.IsSet() { + toSerialize["schedule_at"] = o.ScheduleAt.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ScriptInputRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "commit", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varScriptInputRequest := _ScriptInputRequest{} + + err = json.Unmarshal(data, &varScriptInputRequest) + + if err != nil { + return err + } + + *o = ScriptInputRequest(varScriptInputRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "commit") + delete(additionalProperties, "schedule_at") + delete(additionalProperties, "interval") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableScriptInputRequest struct { + value *ScriptInputRequest + isSet bool +} + +func (v NullableScriptInputRequest) Get() *ScriptInputRequest { + return v.value +} + +func (v *NullableScriptInputRequest) Set(val *ScriptInputRequest) { + v.value = val + v.isSet = true +} + +func (v NullableScriptInputRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableScriptInputRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScriptInputRequest(val *ScriptInputRequest) *NullableScriptInputRequest { + return &NullableScriptInputRequest{value: val, isSet: true} +} + +func (v NullableScriptInputRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScriptInputRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service.go b/model_service.go index e12f61b56e..3ce90e4e77 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Service type satisfies the MappedNullable interface at compile time @@ -21,21 +21,22 @@ 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 NullableDevice `json:"device,omitempty"` - VirtualMachine NullableVirtualMachine `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - Ipaddresses []IPAddress `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device NullableBriefDevice `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachine `json:"virtual_machine,omitempty"` + Name string `json:"name"` + Protocol *ServiceProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports"` + Ipaddresses []IPAddress `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,15 +46,13 @@ type _Service Service // 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 NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *Service { +func NewService(id int32, url string, display string, name string, ports []int32) *Service { this := Service{} this.Id = id this.Url = url this.Display = display this.Name = name this.Ports = ports - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -89,6 +88,7 @@ func (o *Service) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Service) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *Service) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Service) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Service) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Service) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Service) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Service) GetDisplay() string { if o == nil { @@ -137,10 +170,11 @@ func (o *Service) SetDisplay(v string) { o.Display = v } + // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetDevice() Device { +func (o *Service) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -149,7 +183,7 @@ func (o *Service) GetDevice() Device { // GetDeviceOk returns a tuple with the Device 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 *Service) GetDeviceOk() (*Device, bool) { +func (o *Service) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -165,11 +199,10 @@ func (o *Service) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *Service) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *Service) SetDevice(v BriefDevice) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *Service) SetDeviceNil() { o.Device.Set(nil) @@ -181,9 +214,9 @@ func (o *Service) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetVirtualMachine() VirtualMachine { +func (o *Service) GetVirtualMachine() BriefVirtualMachine { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } return *o.VirtualMachine.Get() @@ -192,7 +225,7 @@ func (o *Service) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine 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 *Service) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -208,11 +241,10 @@ func (o *Service) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachine and assigns it to the VirtualMachine field. -func (o *Service) SetVirtualMachine(v VirtualMachine) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachine and assigns it to the VirtualMachine field. +func (o *Service) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *Service) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -247,6 +279,7 @@ func (o *Service) SetName(v string) { o.Name = v } + // GetProtocol returns the Protocol field value if set, zero value otherwise. func (o *Service) GetProtocol() ServiceProtocol { if o == nil || IsNil(o.Protocol) { @@ -303,6 +336,7 @@ func (o *Service) SetPorts(v []int32) { o.Ports = v } + // GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise. func (o *Service) GetIpaddresses() []IPAddress { if o == nil || IsNil(o.Ipaddresses) { @@ -463,18 +497,16 @@ func (o *Service) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Service) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *Service) GetCreatedOk() (*time.Time, bool) { @@ -484,23 +516,39 @@ func (o *Service) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Service) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Service) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Service) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Service) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Service) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Service) GetLastUpdatedOk() (*time.Time, bool) { @@ -510,13 +558,31 @@ func (o *Service) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Service) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Service) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Service) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Service) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o Service) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -527,6 +593,9 @@ func (o Service) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() @@ -554,8 +623,12 @@ func (o Service) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -574,24 +647,39 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { "display", "name", "ports", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varService := _Service{} err = json.Unmarshal(data, &varService) @@ -607,6 +695,7 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "virtual_machine") @@ -661,3 +750,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 bdd3078449..5a2605237d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &ServiceProtocol{} // ServiceProtocol struct for ServiceProtocol type ServiceProtocol struct { - Value *PatchedWritableServiceRequestProtocol `json:"value,omitempty"` - Label *ServiceProtocolLabel `json:"label,omitempty"` + Value *PatchedWritableServiceRequestProtocol `json:"value,omitempty"` + Label *ServiceProtocolLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *ServiceProtocol) SetLabel(v ServiceProtocolLabel) { } func (o ServiceProtocol) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableServiceProtocol) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go index b210b80a3a..a6a8dc538d 100644 --- a/model_service_protocol_label.go +++ b/model_service_protocol_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type ServiceProtocolLabel string // List of Service_protocol_label const ( - SERVICEPROTOCOLLABEL_TCP ServiceProtocolLabel = "TCP" - SERVICEPROTOCOLLABEL_UDP ServiceProtocolLabel = "UDP" + SERVICEPROTOCOLLABEL_TCP ServiceProtocolLabel = "TCP" + SERVICEPROTOCOLLABEL_UDP ServiceProtocolLabel = "UDP" SERVICEPROTOCOLLABEL_SCTP ServiceProtocolLabel = "SCTP" ) @@ -110,3 +110,4 @@ func (v *NullableServiceProtocolLabel) 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 9b3bc7f2be..840964f298 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &ServiceRequest{} // ServiceRequest Adds support for custom fields and tags. type ServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - 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"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Name string `json:"name"` + Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports"` + 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{} } @@ -55,9 +55,9 @@ func NewServiceRequestWithDefaults() *ServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetDevice() DeviceRequest { +func (o *ServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -66,7 +66,7 @@ func (o *ServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device 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 *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -82,11 +82,10 @@ func (o *ServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *ServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *ServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *ServiceRequest) SetDeviceNil() { o.Device.Set(nil) @@ -98,9 +97,9 @@ func (o *ServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -109,7 +108,7 @@ func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine 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 *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -125,11 +124,10 @@ func (o *ServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *ServiceRequest) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -164,6 +162,7 @@ func (o *ServiceRequest) SetName(v string) { o.Name = v } + // GetProtocol returns the Protocol field value if set, zero value otherwise. func (o *ServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol { if o == nil || IsNil(o.Protocol) { @@ -220,6 +219,7 @@ func (o *ServiceRequest) SetPorts(v []int32) { o.Ports = v } + // GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise. func (o *ServiceRequest) GetIpaddresses() []int32 { if o == nil || IsNil(o.Ipaddresses) { @@ -381,7 +381,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 } @@ -433,20 +433,37 @@ func (o *ServiceRequest) UnmarshalJSON(data []byte) (err error) { "ports", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varServiceRequest := _ServiceRequest{} err = json.Unmarshal(data, &varServiceRequest) @@ -511,3 +528,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 9d80868778..8b9b26d60f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the ServiceTemplate type satisfies the MappedNullable interface at compile time @@ -21,18 +21,19 @@ 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"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Protocol *ServiceProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,15 +43,13 @@ type _ServiceTemplate ServiceTemplate // 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 NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *ServiceTemplate { +func NewServiceTemplate(id int32, url string, display string, name string, ports []int32) *ServiceTemplate { this := ServiceTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name this.Ports = ports - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -86,6 +85,7 @@ func (o *ServiceTemplate) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *ServiceTemplate) GetUrl() string { if o == nil { @@ -110,6 +110,39 @@ func (o *ServiceTemplate) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ServiceTemplate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ServiceTemplate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ServiceTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ServiceTemplate) GetDisplay() string { if o == nil { @@ -134,6 +167,7 @@ func (o *ServiceTemplate) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *ServiceTemplate) GetName() string { if o == nil { @@ -158,6 +192,7 @@ func (o *ServiceTemplate) SetName(v string) { o.Name = v } + // GetProtocol returns the Protocol field value if set, zero value otherwise. func (o *ServiceTemplate) GetProtocol() ServiceProtocol { if o == nil || IsNil(o.Protocol) { @@ -214,6 +249,7 @@ func (o *ServiceTemplate) SetPorts(v []int32) { o.Ports = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ServiceTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -342,18 +378,16 @@ func (o *ServiceTemplate) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServiceTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *ServiceTemplate) GetCreatedOk() (*time.Time, bool) { @@ -363,23 +397,39 @@ func (o *ServiceTemplate) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *ServiceTemplate) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *ServiceTemplate) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *ServiceTemplate) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *ServiceTemplate) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ServiceTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *ServiceTemplate) GetLastUpdatedOk() (*time.Time, bool) { @@ -389,13 +439,31 @@ func (o *ServiceTemplate) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *ServiceTemplate) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *ServiceTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *ServiceTemplate) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *ServiceTemplate) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o ServiceTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -406,6 +474,9 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Protocol) { @@ -424,8 +495,12 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -444,24 +519,39 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { "display", "name", "ports", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varServiceTemplate := _ServiceTemplate{} err = json.Unmarshal(data, &varServiceTemplate) @@ -477,6 +567,7 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "protocol") @@ -528,3 +619,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 39275e46c0..60c2391890 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ServiceTemplateRequest{} // ServiceTemplateRequest Adds support for custom fields and tags. type ServiceTemplateRequest struct { - Name string `json:"name"` - Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - 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"` + Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports"` + 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{} } @@ -75,6 +75,7 @@ func (o *ServiceTemplateRequest) SetName(v string) { o.Name = v } + // GetProtocol returns the Protocol field value if set, zero value otherwise. func (o *ServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol { if o == nil || IsNil(o.Protocol) { @@ -131,6 +132,7 @@ func (o *ServiceTemplateRequest) SetPorts(v []int32) { o.Ports = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ServiceTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -260,7 +262,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 } @@ -303,20 +305,37 @@ func (o *ServiceTemplateRequest) UnmarshalJSON(data []byte) (err error) { "ports", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varServiceTemplateRequest := _ServiceTemplateRequest{} err = json.Unmarshal(data, &varServiceTemplateRequest) @@ -378,3 +397,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 1e847b294b..7fd693bbcd 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,13 +21,41 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Status *LocationStatus `json:"status,omitempty"` + Region NullableBriefRegion `json:"region,omitempty"` + Group NullableBriefSiteGroup `json:"group,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Local facility ID or description + 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 + ShippingAddress *string `json:"shipping_address,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"` + Comments *string `json:"comments,omitempty"` + Asns []ASN `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + RackCount *int64 `json:"rack_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +65,14 @@ type _Site Site // 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 NewSite(id int32, url string, display string, name string, slug string) *Site { +func NewSite(id int32, url string, display string, name string, slug string, circuitCount int64) *Site { this := Site{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.CircuitCount = circuitCount return &this } @@ -78,6 +108,7 @@ func (o *Site) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Site) GetUrl() string { if o == nil { @@ -102,6 +133,39 @@ func (o *Site) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Site) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Site) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Site) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Site) GetDisplay() string { if o == nil { @@ -126,6 +190,7 @@ func (o *Site) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Site) GetName() string { if o == nil { @@ -150,6 +215,7 @@ func (o *Site) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Site) GetSlug() string { if o == nil { @@ -174,6 +240,239 @@ func (o *Site) SetSlug(v string) { o.Slug = v } + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Site) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Site) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Site) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetRegion() BriefRegion { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegion + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region 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 *Site) GetRegionOk() (*BriefRegion, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *Site) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegion and assigns it to the Region field. +func (o *Site) SetRegion(v BriefRegion) { + o.Region.Set(&v) +} +// SetRegionNil sets the value for Region to be an explicit nil +func (o *Site) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *Site) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetGroup() BriefSiteGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *Site) GetGroupOk() (*BriefSiteGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Site) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroup and assigns it to the Group field. +func (o *Site) SetGroup(v BriefSiteGroup) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Site) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Site) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *Site) GetTenantOk() (*BriefTenant, 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 *Site) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Site) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Site) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Site) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Site) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Site) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Site) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone 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 *Site) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *Site) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +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) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *Site) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Site) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,8 +505,553 @@ func (o *Site) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *Site) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *Site) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *Site) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *Site) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *Site) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *Site) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) 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 *Site) 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 *Site) 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 *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) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *Site) 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 *Site) 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 *Site) 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 *Site) 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 *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) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *Site) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Site) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Site) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Site) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Site) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Site) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Site) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Site) 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 *Site) 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 *Site) 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 *Site) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Site) 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 *Site) 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 *Site) 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 *Site) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Site) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Site) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Site) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Site) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Site) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Site) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Site) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Site) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Site) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Site) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Site) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Site) SetCircuitCount(v int64) { + o.CircuitCount = v +} + + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Site) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Site) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Site) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Site) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Site) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Site) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetRackCount returns the RackCount field value if set, zero value otherwise. +func (o *Site) GetRackCount() int64 { + if o == nil || IsNil(o.RackCount) { + var ret int64 + return ret + } + return *o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetRackCountOk() (*int64, bool) { + if o == nil || IsNil(o.RackCount) { + return nil, false + } + return o.RackCount, true +} + +// HasRackCount returns a boolean if a field has been set. +func (o *Site) HasRackCount() bool { + if o != nil && !IsNil(o.RackCount) { + return true + } + + return false +} + +// SetRackCount gets a reference to the given int64 and assigns it to the RackCount field. +func (o *Site) SetRackCount(v int64) { + o.RackCount = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *Site) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Site) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *Site) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. +func (o *Site) GetVlanCount() int64 { + if o == nil || IsNil(o.VlanCount) { + var ret int64 + return ret + } + return *o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetVlanCountOk() (*int64, bool) { + if o == nil || IsNil(o.VlanCount) { + return nil, false + } + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *Site) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. +func (o *Site) SetVlanCount(v int64) { + o.VlanCount = &v +} + func (o Site) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -218,12 +1062,79 @@ func (o Site) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + if !IsNil(o.RackCount) { + toSerialize["rack_count"] = o.RackCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -242,22 +1153,40 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "circuit_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varSite := _Site{} err = json.Unmarshal(data, &varSite) @@ -273,10 +1202,33 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties } @@ -318,3 +1270,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 36320a38d7..6e01ad3d18 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the SiteGroup type satisfies the MappedNullable interface at compile time @@ -21,19 +21,21 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + SiteCount *int32 `json:"site_count,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -43,16 +45,13 @@ type _SiteGroup SiteGroup // 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 NewSiteGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *SiteGroup { +func NewSiteGroup(id int32, url string, display string, name string, slug string, depth int32) *SiteGroup { this := SiteGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.SiteCount = siteCount this.Depth = depth return &this } @@ -89,6 +88,7 @@ func (o *SiteGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *SiteGroup) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *SiteGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *SiteGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *SiteGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *SiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *SiteGroup) GetDisplay() string { if o == nil { @@ -137,6 +170,7 @@ func (o *SiteGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *SiteGroup) GetName() string { if o == nil { @@ -161,6 +195,7 @@ func (o *SiteGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *SiteGroup) GetSlug() string { if o == nil { @@ -185,6 +220,7 @@ func (o *SiteGroup) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SiteGroup) GetParent() NestedSiteGroup { if o == nil || IsNil(o.Parent.Get()) { @@ -217,7 +253,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) @@ -324,18 +359,16 @@ func (o *SiteGroup) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SiteGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *SiteGroup) GetCreatedOk() (*time.Time, bool) { @@ -345,23 +378,39 @@ func (o *SiteGroup) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *SiteGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *SiteGroup) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *SiteGroup) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *SiteGroup) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SiteGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *SiteGroup) GetLastUpdatedOk() (*time.Time, bool) { @@ -371,33 +420,91 @@ func (o *SiteGroup) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *SiteGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *SiteGroup) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *SiteGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *SiteGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetSiteCount returns the SiteCount field value +// GetSiteCount returns the SiteCount field value if set, zero value otherwise. func (o *SiteGroup) GetSiteCount() int32 { - if o == nil { + if o == nil || IsNil(o.SiteCount) { var ret int32 return ret } - - return o.SiteCount + return *o.SiteCount } -// GetSiteCountOk returns a tuple with the SiteCount field value +// GetSiteCountOk returns a tuple with the SiteCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SiteGroup) GetSiteCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.SiteCount) { return nil, false } - return &o.SiteCount, true + return o.SiteCount, true } -// SetSiteCount sets field value +// HasSiteCount returns a boolean if a field has been set. +func (o *SiteGroup) HasSiteCount() bool { + if o != nil && !IsNil(o.SiteCount) { + return true + } + + return false +} + +// SetSiteCount gets a reference to the given int32 and assigns it to the SiteCount field. func (o *SiteGroup) SetSiteCount(v int32) { - o.SiteCount = v + o.SiteCount = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *SiteGroup) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteGroup) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *SiteGroup) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *SiteGroup) SetPrefixCount(v int64) { + o.PrefixCount = &v } // GetDepth returns the Depth field value @@ -424,8 +531,9 @@ func (o *SiteGroup) SetDepth(v int32) { o.Depth = v } + func (o SiteGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -436,6 +544,9 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -451,9 +562,18 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["site_count"] = o.SiteCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.SiteCount) { + toSerialize["site_count"] = o.SiteCount + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -473,26 +593,40 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", - "site_count", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varSiteGroup := _SiteGroup{} err = json.Unmarshal(data, &varSiteGroup) @@ -508,6 +642,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -518,6 +653,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "created") delete(additionalProperties, "last_updated") delete(additionalProperties, "site_count") + delete(additionalProperties, "prefix_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties } @@ -560,3 +696,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 1cd1ab1c56..0054873b65 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -74,6 +74,7 @@ func (o *SiteGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *SiteGroupRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *SiteGroupRequest) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SiteGroupRequest) GetParent() NestedSiteGroupRequest { if o == nil || IsNil(o.Parent.Get()) { @@ -130,7 +132,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) @@ -238,7 +239,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 } @@ -278,20 +279,37 @@ func (o *SiteGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varSiteGroupRequest := _SiteGroupRequest{} err = json.Unmarshal(data, &varSiteGroupRequest) @@ -352,3 +370,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 60b8fd8dc9..737af1160e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,28 @@ var _ MappedNullable = &SiteRequest{} // SiteRequest Adds support for custom fields and tags. type SiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + 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 + ShippingAddress *string `json:"shipping_address,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"` + 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{} } @@ -72,6 +91,7 @@ func (o *SiteRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *SiteRequest) GetSlug() string { if o == nil { @@ -96,6 +116,239 @@ func (o *SiteRequest) SetSlug(v string) { o.Slug = v } + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SiteRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SiteRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *SiteRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetRegion() BriefRegionRequest { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegionRequest + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region 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 *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *SiteRequest) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *SiteRequest) SetRegion(v BriefRegionRequest) { + o.Region.Set(&v) +} +// SetRegionNil sets the value for Region to be an explicit nil +func (o *SiteRequest) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *SiteRequest) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetGroup() BriefSiteGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *SiteRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *SiteRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *SiteRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *SiteRequest) GetTenantOk() (*BriefTenantRequest, 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 *SiteRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *SiteRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *SiteRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *SiteRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *SiteRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *SiteRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *SiteRequest) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone 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 *SiteRequest) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *SiteRequest) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +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) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *SiteRequest) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SiteRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,8 +381,284 @@ func (o *SiteRequest) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *SiteRequest) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *SiteRequest) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) 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 *SiteRequest) 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 *SiteRequest) 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 *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) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *SiteRequest) 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 *SiteRequest) 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 *SiteRequest) 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 *SiteRequest) 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 *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) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *SiteRequest) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *SiteRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *SiteRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *SiteRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *SiteRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *SiteRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *SiteRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SiteRequest) 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 *SiteRequest) 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 *SiteRequest) 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 *SiteRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *SiteRequest) 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 *SiteRequest) 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 *SiteRequest) 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 *SiteRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o SiteRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -140,9 +669,51 @@ func (o SiteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -160,20 +731,37 @@ func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varSiteRequest := _SiteRequest{} err = json.Unmarshal(data, &varSiteRequest) @@ -189,7 +777,21 @@ func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -231,3 +833,5 @@ func (v *NullableSiteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_subscription.go b/model_subscription.go new file mode 100644 index 0000000000..5745eefa28 --- /dev/null +++ b/model_subscription.go @@ -0,0 +1,412 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the Subscription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Subscription{} + +// Subscription 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 Subscription struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object,omitempty"` + User BriefUser `json:"user"` + Created *time.Time `json:"created,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Subscription Subscription + +// NewSubscription instantiates a new Subscription 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 NewSubscription(id int32, url string, display string, objectType string, objectId int64, user BriefUser) *Subscription { + this := Subscription{} + this.Id = id + this.Url = url + this.Display = display + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + return &this +} + +// NewSubscriptionWithDefaults instantiates a new Subscription 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 NewSubscriptionWithDefaults() *Subscription { + this := Subscription{} + return &this +} + +// GetId returns the Id field value +func (o *Subscription) 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 *Subscription) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Subscription) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *Subscription) 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 *Subscription) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Subscription) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *Subscription) 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 *Subscription) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Subscription) SetDisplay(v string) { + o.Display = v +} + + +// GetObjectType returns the ObjectType field value +func (o *Subscription) 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 *Subscription) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *Subscription) SetObjectType(v string) { + o.ObjectType = v +} + + +// GetObjectId returns the ObjectId field value +func (o *Subscription) 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 *Subscription) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *Subscription) SetObjectId(v int64) { + o.ObjectId = v +} + + +// GetObject returns the Object field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Subscription) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Object +} + +// GetObjectOk returns a tuple with the Object 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 *Subscription) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// HasObject returns a boolean if a field has been set. +func (o *Subscription) HasObject() bool { + if o != nil && !IsNil(o.Object) { + return true + } + + return false +} + +// SetObject gets a reference to the given interface{} and assigns it to the Object field. +func (o *Subscription) SetObject(v interface{}) { + o.Object = v +} + +// GetUser returns the User field value +func (o *Subscription) GetUser() BriefUser { + if o == nil { + var ret BriefUser + 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 *Subscription) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *Subscription) SetUser(v BriefUser) { + o.User = v +} + + +// GetCreated returns the Created field value if set, zero value otherwise. +func (o *Subscription) GetCreated() time.Time { + if o == nil || IsNil(o.Created) { + var ret time.Time + return ret + } + return *o.Created +} + +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCreatedOk() (*time.Time, bool) { + if o == nil || IsNil(o.Created) { + return nil, false + } + return o.Created, true +} + +// HasCreated returns a boolean if a field has been set. +func (o *Subscription) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given time.Time and assigns it to the Created field. +func (o *Subscription) SetCreated(v time.Time) { + o.Created = &v +} + +func (o Subscription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Subscription) 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 + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Subscription) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "object_type", + "object_id", + "user", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varSubscription := _Subscription{} + + err = json.Unmarshal(data, &varSubscription) + + if err != nil { + return err + } + + *o = Subscription(varSubscription) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &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 NullableSubscription struct { + value *Subscription + isSet bool +} + +func (v NullableSubscription) Get() *Subscription { + return v.value +} + +func (v *NullableSubscription) Set(val *Subscription) { + v.value = val + v.isSet = true +} + +func (v NullableSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscription(val *Subscription) *NullableSubscription { + return &NullableSubscription{value: val, isSet: true} +} + +func (v NullableSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_subscription_request.go b/model_subscription_request.go new file mode 100644 index 0000000000..1451937711 --- /dev/null +++ b/model_subscription_request.go @@ -0,0 +1,246 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the SubscriptionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubscriptionRequest{} + +// SubscriptionRequest 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 SubscriptionRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _SubscriptionRequest SubscriptionRequest + +// NewSubscriptionRequest instantiates a new SubscriptionRequest 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 NewSubscriptionRequest(objectType string, objectId int64, user BriefUserRequest) *SubscriptionRequest { + this := SubscriptionRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + return &this +} + +// NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest 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 NewSubscriptionRequestWithDefaults() *SubscriptionRequest { + this := SubscriptionRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *SubscriptionRequest) 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 *SubscriptionRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *SubscriptionRequest) SetObjectType(v string) { + o.ObjectType = v +} + + +// GetObjectId returns the ObjectId field value +func (o *SubscriptionRequest) 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 *SubscriptionRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SubscriptionRequest) SetObjectId(v int64) { + o.ObjectId = v +} + + +// GetUser returns the User field value +func (o *SubscriptionRequest) GetUser() BriefUserRequest { + if o == nil { + var ret BriefUserRequest + 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 *SubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *SubscriptionRequest) SetUser(v BriefUserRequest) { + o.User = v +} + + +func (o SubscriptionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubscriptionRequest) 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 *SubscriptionRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "user", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varSubscriptionRequest := _SubscriptionRequest{} + + err = json.Unmarshal(data, &varSubscriptionRequest) + + if err != nil { + return err + } + + *o = SubscriptionRequest(varSubscriptionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscriptionRequest struct { + value *SubscriptionRequest + isSet bool +} + +func (v NullableSubscriptionRequest) Get() *SubscriptionRequest { + return v.value +} + +func (v *NullableSubscriptionRequest) Set(val *SubscriptionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRequest(val *SubscriptionRequest) *NullableSubscriptionRequest { + return &NullableSubscriptionRequest{value: val, isSet: true} +} + +func (v NullableSubscriptionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tag.go b/model_tag.go index 976b2af1a6..38e16b8867 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Tag type satisfies the MappedNullable interface at compile time @@ -21,17 +21,18 @@ 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"` - ObjectTypes []string `json:"object_types,omitempty"` - TaggedItems int64 `json:"tagged_items"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` + TaggedItems int64 `json:"tagged_items"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +42,7 @@ type _Tag Tag // 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 NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag { +func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64) *Tag { this := Tag{} this.Id = id this.Url = url @@ -49,8 +50,6 @@ func NewTag(id int32, url string, display string, name string, slug string, tagg this.Name = name this.Slug = slug this.TaggedItems = taggedItems - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -86,6 +85,7 @@ func (o *Tag) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Tag) GetUrl() string { if o == nil { @@ -110,6 +110,39 @@ func (o *Tag) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Tag) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tag) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Tag) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Tag) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Tag) GetDisplay() string { if o == nil { @@ -134,6 +167,7 @@ func (o *Tag) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Tag) GetName() string { if o == nil { @@ -158,6 +192,7 @@ func (o *Tag) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Tag) GetSlug() string { if o == nil { @@ -182,6 +217,7 @@ func (o *Tag) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *Tag) GetColor() string { if o == nil || IsNil(o.Color) { @@ -302,18 +338,17 @@ func (o *Tag) SetTaggedItems(v int64) { o.TaggedItems = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Tag) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *Tag) GetCreatedOk() (*time.Time, bool) { @@ -323,23 +358,39 @@ func (o *Tag) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Tag) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Tag) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Tag) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Tag) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Tag) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Tag) GetLastUpdatedOk() (*time.Time, bool) { @@ -349,13 +400,31 @@ func (o *Tag) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Tag) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Tag) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Tag) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Tag) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o Tag) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -366,6 +435,9 @@ func (o Tag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -379,8 +451,12 @@ func (o Tag) ToMap() (map[string]interface{}, error) { toSerialize["object_types"] = o.ObjectTypes } toSerialize["tagged_items"] = o.TaggedItems - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -400,24 +476,39 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { "name", "slug", "tagged_items", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTag := _Tag{} err = json.Unmarshal(data, &varTag) @@ -433,6 +524,7 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -483,3 +575,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 3e2e1c595d..2edbce45dc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,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"` - ObjectTypes []string `json:"object_types,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-\\\\w]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,6 +73,7 @@ func (o *TagRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *TagRequest) GetSlug() string { if o == nil { @@ -97,6 +98,7 @@ func (o *TagRequest) SetSlug(v string) { o.Slug = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *TagRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -194,7 +196,7 @@ func (o *TagRequest) SetObjectTypes(v []string) { } func (o TagRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -231,20 +233,37 @@ func (o *TagRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTagRequest := _TagRequest{} err = json.Unmarshal(data, &varTagRequest) @@ -304,3 +323,5 @@ func (v *NullableTagRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tenancy_contact_assignments_list_priority_parameter.go b/model_tenancy_contact_assignments_list_priority_parameter.go deleted file mode 100644 index abf291b5b1..0000000000 --- a/model_tenancy_contact_assignments_list_priority_parameter.go +++ /dev/null @@ -1,114 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// TenancyContactAssignmentsListPriorityParameter the model 'TenancyContactAssignmentsListPriorityParameter' -type TenancyContactAssignmentsListPriorityParameter string - -// List of tenancy_contact_assignments_list_priority_parameter -const ( - TENANCYCONTACTASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE TenancyContactAssignmentsListPriorityParameter = "inactive" - TENANCYCONTACTASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY TenancyContactAssignmentsListPriorityParameter = "primary" - TENANCYCONTACTASSIGNMENTSLISTPRIORITYPARAMETER_SECONDARY TenancyContactAssignmentsListPriorityParameter = "secondary" - TENANCYCONTACTASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY TenancyContactAssignmentsListPriorityParameter = "tertiary" -) - -// All allowed values of TenancyContactAssignmentsListPriorityParameter enum -var AllowedTenancyContactAssignmentsListPriorityParameterEnumValues = []TenancyContactAssignmentsListPriorityParameter{ - "inactive", - "primary", - "secondary", - "tertiary", -} - -func (v *TenancyContactAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := TenancyContactAssignmentsListPriorityParameter(value) - for _, existing := range AllowedTenancyContactAssignmentsListPriorityParameterEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid TenancyContactAssignmentsListPriorityParameter", value) -} - -// NewTenancyContactAssignmentsListPriorityParameterFromValue returns a pointer to a valid TenancyContactAssignmentsListPriorityParameter -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewTenancyContactAssignmentsListPriorityParameterFromValue(v string) (*TenancyContactAssignmentsListPriorityParameter, error) { - ev := TenancyContactAssignmentsListPriorityParameter(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for TenancyContactAssignmentsListPriorityParameter: valid values are %v", v, AllowedTenancyContactAssignmentsListPriorityParameterEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v TenancyContactAssignmentsListPriorityParameter) IsValid() bool { - for _, existing := range AllowedTenancyContactAssignmentsListPriorityParameterEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to tenancy_contact_assignments_list_priority_parameter value -func (v TenancyContactAssignmentsListPriorityParameter) Ptr() *TenancyContactAssignmentsListPriorityParameter { - return &v -} - -type NullableTenancyContactAssignmentsListPriorityParameter struct { - value *TenancyContactAssignmentsListPriorityParameter - isSet bool -} - -func (v NullableTenancyContactAssignmentsListPriorityParameter) Get() *TenancyContactAssignmentsListPriorityParameter { - return v.value -} - -func (v *NullableTenancyContactAssignmentsListPriorityParameter) Set(val *TenancyContactAssignmentsListPriorityParameter) { - v.value = val - v.isSet = true -} - -func (v NullableTenancyContactAssignmentsListPriorityParameter) IsSet() bool { - return v.isSet -} - -func (v *NullableTenancyContactAssignmentsListPriorityParameter) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTenancyContactAssignmentsListPriorityParameter(val *TenancyContactAssignmentsListPriorityParameter) *NullableTenancyContactAssignmentsListPriorityParameter { - return &NullableTenancyContactAssignmentsListPriorityParameter{value: val, isSet: true} -} - -func (v NullableTenancyContactAssignmentsListPriorityParameter) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTenancyContactAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_tenant.go b/model_tenant.go index 0c4232d933..6c9d8b3b2f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,12 +21,29 @@ 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"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Group NullableBriefTenantGroup `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + RackCount *int64 `json:"rack_count,omitempty"` + SiteCount *int64 `json:"site_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` + VrfCount *int64 `json:"vrf_count,omitempty"` + ClusterCount *int64 `json:"cluster_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,15 @@ type _Tenant Tenant // 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 NewTenant(id int32, url string, display string, name string, slug string) *Tenant { +func NewTenant(id int32, url string, display string, name string, slug string, circuitCount int64, ipaddressCount int64) *Tenant { this := Tenant{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.CircuitCount = circuitCount + this.IpaddressCount = ipaddressCount return &this } @@ -77,6 +97,7 @@ func (o *Tenant) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Tenant) GetUrl() string { if o == nil { @@ -101,6 +122,39 @@ func (o *Tenant) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Tenant) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Tenant) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Tenant) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Tenant) GetDisplay() string { if o == nil { @@ -125,6 +179,7 @@ func (o *Tenant) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Tenant) GetName() string { if o == nil { @@ -149,6 +204,7 @@ func (o *Tenant) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *Tenant) GetSlug() string { if o == nil { @@ -173,6 +229,49 @@ func (o *Tenant) SetSlug(v string) { o.Slug = v } + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tenant) GetGroup() BriefTenantGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *Tenant) GetGroupOk() (*BriefTenantGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tenant) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroup and assigns it to the Group field. +func (o *Tenant) SetGroup(v BriefTenantGroup) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tenant) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tenant) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tenant) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,8 +304,494 @@ func (o *Tenant) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tenant) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tenant) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tenant) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tenant) 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 *Tenant) 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 *Tenant) 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 *Tenant) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tenant) 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 *Tenant) 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 *Tenant) 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 *Tenant) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tenant) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Tenant) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Tenant) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Tenant) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Tenant) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Tenant) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tenant) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Tenant) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Tenant) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Tenant) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Tenant) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Tenant) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Tenant) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Tenant) SetCircuitCount(v int64) { + o.CircuitCount = v +} + + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Tenant) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Tenant) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Tenant) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *Tenant) GetIpaddressCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.IpaddressCount +} + +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetIpaddressCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *Tenant) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Tenant) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Tenant) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Tenant) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetRackCount returns the RackCount field value if set, zero value otherwise. +func (o *Tenant) GetRackCount() int64 { + if o == nil || IsNil(o.RackCount) { + var ret int64 + return ret + } + return *o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetRackCountOk() (*int64, bool) { + if o == nil || IsNil(o.RackCount) { + return nil, false + } + return o.RackCount, true +} + +// HasRackCount returns a boolean if a field has been set. +func (o *Tenant) HasRackCount() bool { + if o != nil && !IsNil(o.RackCount) { + return true + } + + return false +} + +// SetRackCount gets a reference to the given int64 and assigns it to the RackCount field. +func (o *Tenant) SetRackCount(v int64) { + o.RackCount = &v +} + +// GetSiteCount returns the SiteCount field value if set, zero value otherwise. +func (o *Tenant) GetSiteCount() int64 { + if o == nil || IsNil(o.SiteCount) { + var ret int64 + return ret + } + return *o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetSiteCountOk() (*int64, bool) { + if o == nil || IsNil(o.SiteCount) { + return nil, false + } + return o.SiteCount, true +} + +// HasSiteCount returns a boolean if a field has been set. +func (o *Tenant) HasSiteCount() bool { + if o != nil && !IsNil(o.SiteCount) { + return true + } + + return false +} + +// SetSiteCount gets a reference to the given int64 and assigns it to the SiteCount field. +func (o *Tenant) SetSiteCount(v int64) { + o.SiteCount = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *Tenant) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Tenant) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *Tenant) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. +func (o *Tenant) GetVlanCount() int64 { + if o == nil || IsNil(o.VlanCount) { + var ret int64 + return ret + } + return *o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetVlanCountOk() (*int64, bool) { + if o == nil || IsNil(o.VlanCount) { + return nil, false + } + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *Tenant) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. +func (o *Tenant) SetVlanCount(v int64) { + o.VlanCount = &v +} + +// GetVrfCount returns the VrfCount field value if set, zero value otherwise. +func (o *Tenant) GetVrfCount() int64 { + if o == nil || IsNil(o.VrfCount) { + var ret int64 + return ret + } + return *o.VrfCount +} + +// GetVrfCountOk returns a tuple with the VrfCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetVrfCountOk() (*int64, bool) { + if o == nil || IsNil(o.VrfCount) { + return nil, false + } + return o.VrfCount, true +} + +// HasVrfCount returns a boolean if a field has been set. +func (o *Tenant) HasVrfCount() bool { + if o != nil && !IsNil(o.VrfCount) { + return true + } + + return false +} + +// SetVrfCount gets a reference to the given int64 and assigns it to the VrfCount field. +func (o *Tenant) SetVrfCount(v int64) { + o.VrfCount = &v +} + +// GetClusterCount returns the ClusterCount field value if set, zero value otherwise. +func (o *Tenant) GetClusterCount() int64 { + if o == nil || IsNil(o.ClusterCount) { + var ret int64 + return ret + } + return *o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetClusterCountOk() (*int64, bool) { + if o == nil || IsNil(o.ClusterCount) { + return nil, false + } + return o.ClusterCount, true +} + +// HasClusterCount returns a boolean if a field has been set. +func (o *Tenant) HasClusterCount() bool { + if o != nil && !IsNil(o.ClusterCount) { + return true + } + + return false +} + +// SetClusterCount gets a reference to the given int64 and assigns it to the ClusterCount field. +func (o *Tenant) SetClusterCount(v int64) { + o.ClusterCount = &v +} + func (o Tenant) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -217,12 +802,59 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + toSerialize["ipaddress_count"] = o.IpaddressCount + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + if !IsNil(o.RackCount) { + toSerialize["rack_count"] = o.RackCount + } + if !IsNil(o.SiteCount) { + toSerialize["site_count"] = o.SiteCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } + if !IsNil(o.VrfCount) { + toSerialize["vrf_count"] = o.VrfCount + } + if !IsNil(o.ClusterCount) { + toSerialize["cluster_count"] = o.ClusterCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,22 +873,41 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "circuit_count", + "ipaddress_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTenant := _Tenant{} err = json.Unmarshal(data, &varTenant) @@ -272,10 +923,27 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "ipaddress_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "site_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") + delete(additionalProperties, "vrf_count") + delete(additionalProperties, "cluster_count") o.AdditionalProperties = additionalProperties } @@ -317,3 +985,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 ef3aab867f..8f04e7f70d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the TenantGroup type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + TenantCount int32 `json:"tenant_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -43,15 +44,13 @@ type _TenantGroup TenantGroup // 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 NewTenantGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32) *TenantGroup { +func NewTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32) *TenantGroup { this := TenantGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.TenantCount = tenantCount this.Depth = depth return &this @@ -89,6 +88,7 @@ func (o *TenantGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *TenantGroup) GetUrl() string { if o == nil { @@ -113,6 +113,39 @@ func (o *TenantGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TenantGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TenantGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TenantGroup) GetDisplay() string { if o == nil { @@ -137,6 +170,7 @@ func (o *TenantGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *TenantGroup) GetName() string { if o == nil { @@ -161,6 +195,7 @@ func (o *TenantGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *TenantGroup) GetSlug() string { if o == nil { @@ -185,6 +220,7 @@ func (o *TenantGroup) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TenantGroup) GetParent() NestedTenantGroup { if o == nil || IsNil(o.Parent.Get()) { @@ -217,7 +253,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) @@ -324,18 +359,16 @@ func (o *TenantGroup) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TenantGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *TenantGroup) GetCreatedOk() (*time.Time, bool) { @@ -345,23 +378,39 @@ func (o *TenantGroup) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *TenantGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *TenantGroup) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *TenantGroup) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *TenantGroup) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TenantGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *TenantGroup) GetLastUpdatedOk() (*time.Time, bool) { @@ -371,10 +420,28 @@ func (o *TenantGroup) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *TenantGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *TenantGroup) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *TenantGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *TenantGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetTenantCount returns the TenantCount field value func (o *TenantGroup) GetTenantCount() int32 { @@ -400,6 +467,7 @@ func (o *TenantGroup) SetTenantCount(v int32) { o.TenantCount = v } + // GetDepth returns the Depth field value func (o *TenantGroup) GetDepth() int32 { if o == nil { @@ -424,8 +492,9 @@ func (o *TenantGroup) SetDepth(v int32) { o.Depth = v } + func (o TenantGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -436,6 +505,9 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -451,8 +523,12 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["tenant_count"] = o.TenantCount toSerialize["_depth"] = o.Depth @@ -473,26 +549,41 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", "tenant_count", "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTenantGroup := _TenantGroup{} err = json.Unmarshal(data, &varTenantGroup) @@ -508,6 +599,7 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -560,3 +652,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 70e0f8dfcf..b68ff7a5aa 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -74,6 +74,7 @@ func (o *TenantGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *TenantGroupRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *TenantGroupRequest) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TenantGroupRequest) GetParent() NestedTenantGroupRequest { if o == nil || IsNil(o.Parent.Get()) { @@ -130,7 +132,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) @@ -238,7 +239,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 } @@ -278,20 +279,37 @@ func (o *TenantGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTenantGroupRequest := _TenantGroupRequest{} err = json.Unmarshal(data, &varTenantGroupRequest) @@ -352,3 +370,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 5b7a6cb221..c541fb6f4d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &TenantRequest{} // TenantRequest Adds support for custom fields and tags. type TenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Group NullableBriefTenantGroupRequest `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{} } @@ -71,6 +75,7 @@ func (o *TenantRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *TenantRequest) GetSlug() string { if o == nil { @@ -95,6 +100,49 @@ func (o *TenantRequest) SetSlug(v string) { o.Slug = v } + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantRequest) GetGroup() BriefTenantGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TenantRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TenantRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TenantRequest) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TenantRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,8 +175,104 @@ func (o *TenantRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TenantRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TenantRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TenantRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TenantRequest) 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 *TenantRequest) 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 *TenantRequest) 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 *TenantRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TenantRequest) 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 *TenantRequest) 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 *TenantRequest) 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 *TenantRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TenantRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -139,9 +283,21 @@ func (o TenantRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,20 +315,37 @@ func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTenantRequest := _TenantRequest{} err = json.Unmarshal(data, &varTenantRequest) @@ -188,7 +361,11 @@ func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -230,3 +407,5 @@ func (v *NullableTenantRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_termination.go b/model_termination.go deleted file mode 100644 index 8c028ef173..0000000000 --- a/model_termination.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// Termination the model 'Termination' -type Termination string - -// List of Termination -const ( - TERMINATION_A Termination = "A" - TERMINATION_Z Termination = "Z" -) - -// All allowed values of Termination enum -var AllowedTerminationEnumValues = []Termination{ - "A", - "Z", -} - -func (v *Termination) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := Termination(value) - for _, existing := range AllowedTerminationEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid Termination", value) -} - -// NewTerminationFromValue returns a pointer to a valid Termination -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewTerminationFromValue(v string) (*Termination, error) { - ev := Termination(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for Termination: valid values are %v", v, AllowedTerminationEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v Termination) IsValid() bool { - for _, existing := range AllowedTerminationEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to Termination value -func (v Termination) Ptr() *Termination { - return &v -} - -type NullableTermination struct { - value *Termination - isSet bool -} - -func (v NullableTermination) Get() *Termination { - return v.value -} - -func (v *NullableTermination) Set(val *Termination) { - v.value = val - v.isSet = true -} - -func (v NullableTermination) IsSet() bool { - return v.isSet -} - -func (v *NullableTermination) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTermination(val *Termination) *NullableTermination { - return &NullableTermination{value: val, isSet: true} -} - -func (v NullableTermination) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTermination) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_termination_1.go b/model_termination_1.go deleted file mode 100644 index c68e40d672..0000000000 --- a/model_termination_1.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// Termination1 * `A` - A * `Z` - Z -type Termination1 string - -// List of Termination_1 -const ( - TERMINATION1_A Termination1 = "A" - TERMINATION1_Z Termination1 = "Z" -) - -// All allowed values of Termination1 enum -var AllowedTermination1EnumValues = []Termination1{ - "A", - "Z", -} - -func (v *Termination1) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := Termination1(value) - for _, existing := range AllowedTermination1EnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid Termination1", value) -} - -// NewTermination1FromValue returns a pointer to a valid Termination1 -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewTermination1FromValue(v string) (*Termination1, error) { - ev := Termination1(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for Termination1: valid values are %v", v, AllowedTermination1EnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v Termination1) IsValid() bool { - for _, existing := range AllowedTermination1EnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to Termination_1 value -func (v Termination1) Ptr() *Termination1 { - return &v -} - -type NullableTermination1 struct { - value *Termination1 - isSet bool -} - -func (v NullableTermination1) Get() *Termination1 { - return v.value -} - -func (v *NullableTermination1) Set(val *Termination1) { - v.value = val - v.isSet = true -} - -func (v NullableTermination1) IsSet() bool { - return v.isSet -} - -func (v *NullableTermination1) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTermination1(val *Termination1) *NullableTermination1 { - return &NullableTermination1{value: val, isSet: true} -} - -func (v NullableTermination1) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTermination1) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_termination_side.go b/model_termination_side.go new file mode 100644 index 0000000000..5196a00352 --- /dev/null +++ b/model_termination_side.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TerminationSide the model 'TerminationSide' +type TerminationSide string + +// List of Termination_side +const ( + TERMINATIONSIDE_A TerminationSide = "A" + TERMINATIONSIDE_Z TerminationSide = "Z" +) + +// All allowed values of TerminationSide enum +var AllowedTerminationSideEnumValues = []TerminationSide{ + "A", + "Z", +} + +func (v *TerminationSide) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TerminationSide(value) + for _, existing := range AllowedTerminationSideEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TerminationSide", value) +} + +// NewTerminationSideFromValue returns a pointer to a valid TerminationSide +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTerminationSideFromValue(v string) (*TerminationSide, error) { + ev := TerminationSide(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TerminationSide: valid values are %v", v, AllowedTerminationSideEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TerminationSide) IsValid() bool { + for _, existing := range AllowedTerminationSideEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Termination_side value +func (v TerminationSide) Ptr() *TerminationSide { + return &v +} + +type NullableTerminationSide struct { + value *TerminationSide + isSet bool +} + +func (v NullableTerminationSide) Get() *TerminationSide { + return v.value +} + +func (v *NullableTerminationSide) Set(val *TerminationSide) { + v.value = val + v.isSet = true +} + +func (v NullableTerminationSide) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminationSide) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminationSide(val *TerminationSide) *NullableTerminationSide { + return &NullableTerminationSide{value: val, isSet: true} +} + +func (v NullableTerminationSide) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminationSide) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_termination_side_1.go b/model_termination_side_1.go new file mode 100644 index 0000000000..a8f17964a9 --- /dev/null +++ b/model_termination_side_1.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TerminationSide1 * `A` - A * `Z` - Z +type TerminationSide1 string + +// List of Termination_side_1 +const ( + TERMINATIONSIDE1_A TerminationSide1 = "A" + TERMINATIONSIDE1_Z TerminationSide1 = "Z" +) + +// All allowed values of TerminationSide1 enum +var AllowedTerminationSide1EnumValues = []TerminationSide1{ + "A", + "Z", +} + +func (v *TerminationSide1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TerminationSide1(value) + for _, existing := range AllowedTerminationSide1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TerminationSide1", value) +} + +// NewTerminationSide1FromValue returns a pointer to a valid TerminationSide1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTerminationSide1FromValue(v string) (*TerminationSide1, error) { + ev := TerminationSide1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TerminationSide1: valid values are %v", v, AllowedTerminationSide1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TerminationSide1) IsValid() bool { + for _, existing := range AllowedTerminationSide1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Termination_side_1 value +func (v TerminationSide1) Ptr() *TerminationSide1 { + return &v +} + +type NullableTerminationSide1 struct { + value *TerminationSide1 + isSet bool +} + +func (v NullableTerminationSide1) Get() *TerminationSide1 { + return v.value +} + +func (v *NullableTerminationSide1) Set(val *TerminationSide1) { + v.value = val + v.isSet = true +} + +func (v NullableTerminationSide1) IsSet() bool { + return v.isSet +} + +func (v *NullableTerminationSide1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTerminationSide1(val *TerminationSide1) *NullableTerminationSide1 { + return &NullableTerminationSide1{value: val, isSet: true} +} + +func (v NullableTerminationSide1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTerminationSide1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_token.go b/model_token.go index 017655fd02..44f56aabc9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Token type satisfies the MappedNullable interface at compile time @@ -21,17 +21,18 @@ 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 User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created *time.Time `json:"created,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{} } @@ -41,13 +42,12 @@ type _Token Token // 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 NewToken(id int32, url string, display string, user User, created time.Time) *Token { +func NewToken(id int32, url string, display string, user BriefUser) *Token { this := Token{} this.Id = id this.Url = url this.Display = display this.User = user - this.Created = created return &this } @@ -83,6 +83,7 @@ func (o *Token) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Token) GetUrl() string { if o == nil { @@ -107,6 +108,39 @@ func (o *Token) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Token) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Token) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Token) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Token) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Token) GetDisplay() string { if o == nil { @@ -131,10 +165,11 @@ func (o *Token) SetDisplay(v string) { o.Display = v } + // GetUser returns the User field value -func (o *Token) GetUser() User { +func (o *Token) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -143,7 +178,7 @@ func (o *Token) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Token) GetUserOk() (*User, bool) { +func (o *Token) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -151,32 +186,41 @@ func (o *Token) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Token) SetUser(v User) { +func (o *Token) SetUser(v BriefUser) { o.User = v } -// GetCreated returns the Created field value + +// GetCreated returns the Created field value if set, zero value otherwise. func (o *Token) GetCreated() time.Time { - if o == nil { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } - - return o.Created + return *o.Created } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Token) GetCreatedOk() (*time.Time, bool) { - if o == nil { + if o == nil || IsNil(o.Created) { return nil, false } - return &o.Created, true + return o.Created, true +} + +// HasCreated returns a boolean if a field has been set. +func (o *Token) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false } -// SetCreated sets field value +// SetCreated gets a reference to the given time.Time and assigns it to the Created field. func (o *Token) SetCreated(v time.Time) { - o.Created = v + o.Created = &v } // GetExpires returns the Expires field value if set, zero value otherwise (both if not set or set to explicit null). @@ -211,7 +255,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) @@ -254,7 +297,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) @@ -362,7 +404,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 } @@ -373,9 +415,14 @@ func (o Token) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["user"] = o.User - toSerialize["created"] = o.Created + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } if o.Expires.IsSet() { toSerialize["expires"] = o.Expires.Get() } @@ -408,23 +455,39 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { "url", "display", "user", - "created", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varToken := _Token{} err = json.Unmarshal(data, &varToken) @@ -440,6 +503,7 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") @@ -489,3 +553,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 index d2058fd4a3..a3c69cff17 100644 --- a/model_token_provision.go +++ b/model_token_provision.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the TokenProvision type satisfies the MappedNullable interface at compile time @@ -21,17 +21,18 @@ 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 User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed time.Time `json:"last_used"` - Key string `json:"key"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created *time.Time `json:"created,omitempty"` + 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"` + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,13 +42,12 @@ type _TokenProvision TokenProvision // 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 User, created time.Time, lastUsed time.Time, key string) *TokenProvision { +func NewTokenProvision(id int32, url string, display string, user BriefUser, 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 @@ -85,6 +85,7 @@ func (o *TokenProvision) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *TokenProvision) GetUrl() string { if o == nil { @@ -109,6 +110,39 @@ func (o *TokenProvision) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TokenProvision) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TokenProvision) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TokenProvision) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TokenProvision) GetDisplay() string { if o == nil { @@ -133,10 +167,11 @@ func (o *TokenProvision) SetDisplay(v string) { o.Display = v } + // GetUser returns the User field value -func (o *TokenProvision) GetUser() User { +func (o *TokenProvision) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -145,7 +180,7 @@ func (o *TokenProvision) GetUser() 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() (*User, bool) { +func (o *TokenProvision) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -153,32 +188,41 @@ func (o *TokenProvision) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *TokenProvision) SetUser(v User) { +func (o *TokenProvision) SetUser(v BriefUser) { o.User = v } -// GetCreated returns the Created field value + +// GetCreated returns the Created field value if set, zero value otherwise. func (o *TokenProvision) GetCreated() time.Time { - if o == nil { + if o == nil || IsNil(o.Created) { var ret time.Time return ret } - - return o.Created + return *o.Created } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenProvision) GetCreatedOk() (*time.Time, bool) { - if o == nil { + if o == nil || IsNil(o.Created) { return nil, false } - return &o.Created, true + return o.Created, true } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *TokenProvision) HasCreated() bool { + if o != nil && !IsNil(o.Created) { + return true + } + + return false +} + +// SetCreated gets a reference to the given time.Time and assigns it to the Created field. func (o *TokenProvision) SetCreated(v time.Time) { - o.Created = v + o.Created = &v } // GetExpires returns the Expires field value if set, zero value otherwise (both if not set or set to explicit null). @@ -213,7 +257,6 @@ func (o *TokenProvision) HasExpires() bool { 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) @@ -248,6 +291,7 @@ func (o *TokenProvision) SetLastUsed(v time.Time) { o.LastUsed = v } + // GetKey returns the Key field value func (o *TokenProvision) GetKey() string { if o == nil { @@ -272,6 +316,7 @@ 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) { @@ -337,7 +382,7 @@ func (o *TokenProvision) SetDescription(v string) { } func (o TokenProvision) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -348,9 +393,14 @@ func (o TokenProvision) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["user"] = o.User - toSerialize["created"] = o.Created + if !IsNil(o.Created) { + toSerialize["created"] = o.Created + } if o.Expires.IsSet() { toSerialize["expires"] = o.Expires.Get() } @@ -379,25 +429,41 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { "url", "display", "user", - "created", "last_used", "key", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTokenProvision := _TokenProvision{} err = json.Unmarshal(data, &varTokenProvision) @@ -413,6 +479,7 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") @@ -462,3 +529,5 @@ 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 index f880694d45..bc9ff4ddef 100644 --- a/model_token_provision_request.go +++ b/model_token_provision_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the TokenProvisionRequest type satisfies the MappedNullable interface at compile time @@ -23,10 +23,10 @@ var _ MappedNullable = &TokenProvisionRequest{} 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"` + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` + Username string `json:"username"` + Password string `json:"password"` AdditionalProperties map[string]interface{} } @@ -83,7 +83,6 @@ func (o *TokenProvisionRequest) HasExpires() bool { 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) @@ -182,6 +181,7 @@ func (o *TokenProvisionRequest) SetUsername(v string) { o.Username = v } + // GetPassword returns the Password field value func (o *TokenProvisionRequest) GetPassword() string { if o == nil { @@ -206,8 +206,9 @@ func (o *TokenProvisionRequest) SetPassword(v string) { o.Password = v } + func (o TokenProvisionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -244,20 +245,37 @@ func (o *TokenProvisionRequest) UnmarshalJSON(data []byte) (err error) { "password", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTokenProvisionRequest := _TokenProvisionRequest{} err = json.Unmarshal(data, &varTokenProvisionRequest) @@ -317,3 +335,5 @@ 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 a472e96504..540719faf0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the TokenRequest type satisfies the MappedNullable interface at compile time @@ -21,13 +21,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 UserRequest `json:"user"` - Expires NullableTime `json:"expires,omitempty"` + User BriefUserRequest `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{} } @@ -37,7 +37,7 @@ type _TokenRequest TokenRequest // 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 NewTokenRequest(user UserRequest) *TokenRequest { +func NewTokenRequest(user BriefUserRequest) *TokenRequest { this := TokenRequest{} this.User = user return &this @@ -52,9 +52,9 @@ func NewTokenRequestWithDefaults() *TokenRequest { } // GetUser returns the User field value -func (o *TokenRequest) GetUser() UserRequest { +func (o *TokenRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -63,7 +63,7 @@ func (o *TokenRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -71,10 +71,11 @@ func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *TokenRequest) SetUser(v UserRequest) { +func (o *TokenRequest) SetUser(v BriefUserRequest) { o.User = v } + // GetExpires returns the Expires field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TokenRequest) GetExpires() time.Time { if o == nil || IsNil(o.Expires.Get()) { @@ -107,7 +108,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) @@ -150,7 +150,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) @@ -258,7 +257,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 } @@ -299,20 +298,37 @@ func (o *TokenRequest) UnmarshalJSON(data []byte) (err error) { "user", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTokenRequest := _TokenRequest{} err = json.Unmarshal(data, &varTokenRequest) @@ -373,3 +389,5 @@ func (v *NullableTokenRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel.go b/model_tunnel.go index b947b58fc7..67af3c3849 100644 --- a/model_tunnel.go +++ b/model_tunnel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,24 @@ var _ MappedNullable = &Tunnel{} // Tunnel Adds support for custom fields and tags. type Tunnel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Status TunnelStatus `json:"status"` + Group NullableBriefTunnelGroup `json:"group,omitempty"` + Encapsulation TunnelEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfile `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + TerminationsCount int64 `json:"terminations_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,15 @@ type _Tunnel Tunnel // 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 NewTunnel(id int32, url string, display string, name string) *Tunnel { +func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, terminationsCount int64) *Tunnel { this := Tunnel{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Status = status + this.Encapsulation = encapsulation + this.TerminationsCount = terminationsCount return &this } @@ -75,6 +92,7 @@ func (o *Tunnel) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Tunnel) GetUrl() string { if o == nil { @@ -99,6 +117,39 @@ func (o *Tunnel) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Tunnel) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Tunnel) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Tunnel) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Tunnel) GetDisplay() string { if o == nil { @@ -123,6 +174,7 @@ func (o *Tunnel) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Tunnel) GetName() string { if o == nil { @@ -147,6 +199,225 @@ func (o *Tunnel) SetName(v string) { o.Name = v } + +// GetStatus returns the Status field value +func (o *Tunnel) GetStatus() TunnelStatus { + if o == nil { + var ret TunnelStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Tunnel) SetStatus(v TunnelStatus) { + o.Status = v +} + + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetGroup() BriefTunnelGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tunnel) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroup and assigns it to the Group field. +func (o *Tunnel) SetGroup(v BriefTunnelGroup) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tunnel) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tunnel) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *Tunnel) GetEncapsulation() TunnelEncapsulation { + if o == nil { + var ret TunnelEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation) { + o.Encapsulation = v +} + + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfile + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile 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 *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *Tunnel) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfile and assigns it to the IpsecProfile field. +func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile) { + o.IpsecProfile.Set(&v) +} +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *Tunnel) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *Tunnel) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *Tunnel) GetTenantOk() (*BriefTenant, 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 *Tunnel) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Tunnel) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Tunnel) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Tunnel) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId 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 *Tunnel) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *Tunnel) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *Tunnel) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *Tunnel) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *Tunnel) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tunnel) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,8 +450,213 @@ func (o *Tunnel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tunnel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tunnel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tunnel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tunnel) 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 *Tunnel) 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 *Tunnel) 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 *Tunnel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tunnel) 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 *Tunnel) 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 *Tunnel) 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 *Tunnel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *Tunnel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *Tunnel) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *Tunnel) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Tunnel) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Tunnel) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Tunnel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Tunnel) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *Tunnel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Tunnel) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Tunnel) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetTerminationsCount returns the TerminationsCount field value +func (o *Tunnel) GetTerminationsCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.TerminationsCount +} + +// GetTerminationsCountOk returns a tuple with the TerminationsCount field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetTerminationsCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.TerminationsCount, true +} + +// SetTerminationsCount sets field value +func (o *Tunnel) SetTerminationsCount(v int64) { + o.TerminationsCount = v +} + + func (o Tunnel) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -191,11 +667,44 @@ func (o Tunnel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + toSerialize["terminations_count"] = o.TerminationsCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -213,22 +722,42 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "status", + "encapsulation", + "terminations_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTunnel := _Tunnel{} err = json.Unmarshal(data, &varTunnel) @@ -244,9 +773,22 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "terminations_count") o.AdditionalProperties = additionalProperties } @@ -288,3 +830,5 @@ func (v *NullableTunnel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel_encapsulation.go b/model_tunnel_encapsulation.go new file mode 100644 index 0000000000..3e08ef7c5e --- /dev/null +++ b/model_tunnel_encapsulation.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the TunnelEncapsulation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TunnelEncapsulation{} + +// TunnelEncapsulation struct for TunnelEncapsulation +type TunnelEncapsulation struct { + Value *PatchedWritableTunnelRequestEncapsulation `json:"value,omitempty"` + Label *TunnelEncapsulationLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TunnelEncapsulation TunnelEncapsulation + +// NewTunnelEncapsulation instantiates a new TunnelEncapsulation 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 NewTunnelEncapsulation() *TunnelEncapsulation { + this := TunnelEncapsulation{} + return &this +} + +// NewTunnelEncapsulationWithDefaults instantiates a new TunnelEncapsulation 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 NewTunnelEncapsulationWithDefaults() *TunnelEncapsulation { + this := TunnelEncapsulation{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TunnelEncapsulation) GetValue() PatchedWritableTunnelRequestEncapsulation { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableTunnelRequestEncapsulation + 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 *TunnelEncapsulation) GetValueOk() (*PatchedWritableTunnelRequestEncapsulation, 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 *TunnelEncapsulation) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableTunnelRequestEncapsulation and assigns it to the Value field. +func (o *TunnelEncapsulation) SetValue(v PatchedWritableTunnelRequestEncapsulation) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *TunnelEncapsulation) GetLabel() TunnelEncapsulationLabel { + if o == nil || IsNil(o.Label) { + var ret TunnelEncapsulationLabel + 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 *TunnelEncapsulation) GetLabelOk() (*TunnelEncapsulationLabel, 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 *TunnelEncapsulation) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given TunnelEncapsulationLabel and assigns it to the Label field. +func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel) { + o.Label = &v +} + +func (o TunnelEncapsulation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TunnelEncapsulation) 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 *TunnelEncapsulation) UnmarshalJSON(data []byte) (err error) { + varTunnelEncapsulation := _TunnelEncapsulation{} + + err = json.Unmarshal(data, &varTunnelEncapsulation) + + if err != nil { + return err + } + + *o = TunnelEncapsulation(varTunnelEncapsulation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTunnelEncapsulation struct { + value *TunnelEncapsulation + isSet bool +} + +func (v NullableTunnelEncapsulation) Get() *TunnelEncapsulation { + return v.value +} + +func (v *NullableTunnelEncapsulation) Set(val *TunnelEncapsulation) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelEncapsulation) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelEncapsulation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelEncapsulation(val *TunnelEncapsulation) *NullableTunnelEncapsulation { + return &NullableTunnelEncapsulation{value: val, isSet: true} +} + +func (v NullableTunnelEncapsulation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelEncapsulation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tunnel_encapsulation_label.go b/model_tunnel_encapsulation_label.go new file mode 100644 index 0000000000..b82bb71dc1 --- /dev/null +++ b/model_tunnel_encapsulation_label.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TunnelEncapsulationLabel the model 'TunnelEncapsulationLabel' +type TunnelEncapsulationLabel string + +// List of Tunnel_encapsulation_label +const ( + TUNNELENCAPSULATIONLABEL_I_PSEC___TRANSPORT TunnelEncapsulationLabel = "IPsec - Transport" + TUNNELENCAPSULATIONLABEL_I_PSEC___TUNNEL TunnelEncapsulationLabel = "IPsec - Tunnel" + TUNNELENCAPSULATIONLABEL_IP_IN_IP TunnelEncapsulationLabel = "IP-in-IP" + TUNNELENCAPSULATIONLABEL_GRE TunnelEncapsulationLabel = "GRE" + TUNNELENCAPSULATIONLABEL_WIRE_GUARD TunnelEncapsulationLabel = "WireGuard" + TUNNELENCAPSULATIONLABEL_OPEN_VPN TunnelEncapsulationLabel = "OpenVPN" + TUNNELENCAPSULATIONLABEL_L2_TP TunnelEncapsulationLabel = "L2TP" + TUNNELENCAPSULATIONLABEL_PPTP TunnelEncapsulationLabel = "PPTP" +) + +// All allowed values of TunnelEncapsulationLabel enum +var AllowedTunnelEncapsulationLabelEnumValues = []TunnelEncapsulationLabel{ + "IPsec - Transport", + "IPsec - Tunnel", + "IP-in-IP", + "GRE", + "WireGuard", + "OpenVPN", + "L2TP", + "PPTP", +} + +func (v *TunnelEncapsulationLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TunnelEncapsulationLabel(value) + for _, existing := range AllowedTunnelEncapsulationLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TunnelEncapsulationLabel", value) +} + +// NewTunnelEncapsulationLabelFromValue returns a pointer to a valid TunnelEncapsulationLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTunnelEncapsulationLabelFromValue(v string) (*TunnelEncapsulationLabel, error) { + ev := TunnelEncapsulationLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TunnelEncapsulationLabel: valid values are %v", v, AllowedTunnelEncapsulationLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TunnelEncapsulationLabel) IsValid() bool { + for _, existing := range AllowedTunnelEncapsulationLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Tunnel_encapsulation_label value +func (v TunnelEncapsulationLabel) Ptr() *TunnelEncapsulationLabel { + return &v +} + +type NullableTunnelEncapsulationLabel struct { + value *TunnelEncapsulationLabel + isSet bool +} + +func (v NullableTunnelEncapsulationLabel) Get() *TunnelEncapsulationLabel { + return v.value +} + +func (v *NullableTunnelEncapsulationLabel) Set(val *TunnelEncapsulationLabel) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelEncapsulationLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelEncapsulationLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelEncapsulationLabel(val *TunnelEncapsulationLabel) *NullableTunnelEncapsulationLabel { + return &NullableTunnelEncapsulationLabel{value: val, isSet: true} +} + +func (v NullableTunnelEncapsulationLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelEncapsulationLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_tunnel_group.go b/model_tunnel_group.go index c4ba9d081b..09ee0534c7 100644 --- a/model_tunnel_group.go +++ b/model_tunnel_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the TunnelGroup type satisfies the MappedNullable interface at compile time @@ -21,17 +21,18 @@ var _ MappedNullable = &TunnelGroup{} // TunnelGroup Adds support for custom fields and tags. type TunnelGroup 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"` - TunnelCount int64 `json:"tunnel_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + TunnelCount int64 `json:"tunnel_count"` AdditionalProperties map[string]interface{} } @@ -41,15 +42,13 @@ type _TunnelGroup TunnelGroup // 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 NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup { +func NewTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64) *TunnelGroup { this := TunnelGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.TunnelCount = tunnelCount return &this } @@ -86,6 +85,7 @@ func (o *TunnelGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *TunnelGroup) GetUrl() string { if o == nil { @@ -110,6 +110,39 @@ func (o *TunnelGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TunnelGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TunnelGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TunnelGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TunnelGroup) GetDisplay() string { if o == nil { @@ -134,6 +167,7 @@ func (o *TunnelGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *TunnelGroup) GetName() string { if o == nil { @@ -158,6 +192,7 @@ func (o *TunnelGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *TunnelGroup) GetSlug() string { if o == nil { @@ -182,6 +217,7 @@ func (o *TunnelGroup) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TunnelGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -278,18 +314,16 @@ func (o *TunnelGroup) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TunnelGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *TunnelGroup) GetCreatedOk() (*time.Time, bool) { @@ -299,23 +333,39 @@ func (o *TunnelGroup) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *TunnelGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *TunnelGroup) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *TunnelGroup) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *TunnelGroup) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TunnelGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *TunnelGroup) GetLastUpdatedOk() (*time.Time, bool) { @@ -325,10 +375,28 @@ func (o *TunnelGroup) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *TunnelGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *TunnelGroup) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *TunnelGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *TunnelGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetTunnelCount returns the TunnelCount field value func (o *TunnelGroup) GetTunnelCount() int64 { @@ -354,8 +422,9 @@ func (o *TunnelGroup) SetTunnelCount(v int64) { o.TunnelCount = v } + func (o TunnelGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -366,6 +435,9 @@ func (o TunnelGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -378,8 +450,12 @@ func (o TunnelGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["tunnel_count"] = o.TunnelCount for key, value := range o.AdditionalProperties { @@ -399,25 +475,40 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "created", - "last_updated", "tunnel_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTunnelGroup := _TunnelGroup{} err = json.Unmarshal(data, &varTunnelGroup) @@ -433,6 +524,7 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") @@ -483,3 +575,5 @@ func (v *NullableTunnelGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go index f19727186e..948737275f 100644 --- a/model_tunnel_group_request.go +++ b/model_tunnel_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &TunnelGroupRequest{} // TunnelGroupRequest Adds support for custom fields and tags. type TunnelGroupRequest 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,6 +73,7 @@ func (o *TunnelGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *TunnelGroupRequest) GetSlug() string { if o == nil { @@ -97,6 +98,7 @@ func (o *TunnelGroupRequest) SetSlug(v string) { o.Slug = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TunnelGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -194,7 +196,7 @@ func (o *TunnelGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o TunnelGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -231,20 +233,37 @@ func (o *TunnelGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTunnelGroupRequest := _TunnelGroupRequest{} err = json.Unmarshal(data, &varTunnelGroupRequest) @@ -304,3 +323,5 @@ func (v *NullableTunnelGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel_request.go b/model_tunnel_request.go index c6e7ce5600..64c770c4ab 100644 --- a/model_tunnel_request.go +++ b/model_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &TunnelRequest{} // TunnelRequest Adds support for custom fields and tags. type TunnelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Status PatchedWritableTunnelRequestStatus `json:"status"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_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{} } @@ -31,9 +40,11 @@ type _TunnelRequest TunnelRequest // 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 NewTunnelRequest(name string) *TunnelRequest { +func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation) *TunnelRequest { this := TunnelRequest{} this.Name = name + this.Status = status + this.Encapsulation = encapsulation return &this } @@ -69,6 +80,225 @@ func (o *TunnelRequest) SetName(v string) { o.Name = v } + +// GetStatus returns the Status field value +func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus { + if o == nil { + var ret PatchedWritableTunnelRequestStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) { + o.Status = v +} + + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TunnelRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TunnelRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TunnelRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation { + if o == nil { + var ret PatchedWritableTunnelRequestEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation) { + o.Encapsulation = v +} + + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfileRequest + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile 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 *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *TunnelRequest) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { + o.IpsecProfile.Set(&v) +} +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *TunnelRequest) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *TunnelRequest) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *TunnelRequest) GetTenantOk() (*BriefTenantRequest, 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 *TunnelRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *TunnelRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *TunnelRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *TunnelRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId 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 *TunnelRequest) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *TunnelRequest) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *TunnelRequest) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *TunnelRequest) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *TunnelRequest) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TunnelRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,8 +331,104 @@ func (o *TunnelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TunnelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TunnelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TunnelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TunnelRequest) 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 *TunnelRequest) 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 *TunnelRequest) 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 *TunnelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TunnelRequest) 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 *TunnelRequest) 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 *TunnelRequest) 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 *TunnelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TunnelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -112,9 +438,32 @@ func (o TunnelRequest) MarshalJSON() ([]byte, error) { func (o TunnelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,22 +478,41 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "status", + "encapsulation", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTunnelRequest := _TunnelRequest{} err = json.Unmarshal(data, &varTunnelRequest) @@ -159,7 +527,16 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -201,3 +578,5 @@ func (v *NullableTunnelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel_status.go b/model_tunnel_status.go new file mode 100644 index 0000000000..79cee57ae4 --- /dev/null +++ b/model_tunnel_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the TunnelStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TunnelStatus{} + +// TunnelStatus struct for TunnelStatus +type TunnelStatus struct { + Value *PatchedWritableTunnelRequestStatus `json:"value,omitempty"` + Label *TunnelStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TunnelStatus TunnelStatus + +// NewTunnelStatus instantiates a new TunnelStatus 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 NewTunnelStatus() *TunnelStatus { + this := TunnelStatus{} + return &this +} + +// NewTunnelStatusWithDefaults instantiates a new TunnelStatus 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 NewTunnelStatusWithDefaults() *TunnelStatus { + this := TunnelStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TunnelStatus) GetValue() PatchedWritableTunnelRequestStatus { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableTunnelRequestStatus + 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 *TunnelStatus) GetValueOk() (*PatchedWritableTunnelRequestStatus, 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 *TunnelStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableTunnelRequestStatus and assigns it to the Value field. +func (o *TunnelStatus) SetValue(v PatchedWritableTunnelRequestStatus) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *TunnelStatus) GetLabel() TunnelStatusLabel { + if o == nil || IsNil(o.Label) { + var ret TunnelStatusLabel + 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 *TunnelStatus) GetLabelOk() (*TunnelStatusLabel, 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 *TunnelStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given TunnelStatusLabel and assigns it to the Label field. +func (o *TunnelStatus) SetLabel(v TunnelStatusLabel) { + o.Label = &v +} + +func (o TunnelStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TunnelStatus) 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 *TunnelStatus) UnmarshalJSON(data []byte) (err error) { + varTunnelStatus := _TunnelStatus{} + + err = json.Unmarshal(data, &varTunnelStatus) + + if err != nil { + return err + } + + *o = TunnelStatus(varTunnelStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTunnelStatus struct { + value *TunnelStatus + isSet bool +} + +func (v NullableTunnelStatus) Get() *TunnelStatus { + return v.value +} + +func (v *NullableTunnelStatus) Set(val *TunnelStatus) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelStatus(val *TunnelStatus) *NullableTunnelStatus { + return &NullableTunnelStatus{value: val, isSet: true} +} + +func (v NullableTunnelStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tunnel_status_label.go b/model_tunnel_status_label.go new file mode 100644 index 0000000000..83a9b9cd9e --- /dev/null +++ b/model_tunnel_status_label.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TunnelStatusLabel the model 'TunnelStatusLabel' +type TunnelStatusLabel string + +// List of Tunnel_status_label +const ( + TUNNELSTATUSLABEL_PLANNED TunnelStatusLabel = "Planned" + TUNNELSTATUSLABEL_ACTIVE TunnelStatusLabel = "Active" + TUNNELSTATUSLABEL_DISABLED TunnelStatusLabel = "Disabled" +) + +// All allowed values of TunnelStatusLabel enum +var AllowedTunnelStatusLabelEnumValues = []TunnelStatusLabel{ + "Planned", + "Active", + "Disabled", +} + +func (v *TunnelStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TunnelStatusLabel(value) + for _, existing := range AllowedTunnelStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TunnelStatusLabel", value) +} + +// NewTunnelStatusLabelFromValue returns a pointer to a valid TunnelStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTunnelStatusLabelFromValue(v string) (*TunnelStatusLabel, error) { + ev := TunnelStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TunnelStatusLabel: valid values are %v", v, AllowedTunnelStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TunnelStatusLabel) IsValid() bool { + for _, existing := range AllowedTunnelStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Tunnel_status_label value +func (v TunnelStatusLabel) Ptr() *TunnelStatusLabel { + return &v +} + +type NullableTunnelStatusLabel struct { + value *TunnelStatusLabel + isSet bool +} + +func (v NullableTunnelStatusLabel) Get() *TunnelStatusLabel { + return v.value +} + +func (v *NullableTunnelStatusLabel) Set(val *TunnelStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelStatusLabel(val *TunnelStatusLabel) *NullableTunnelStatusLabel { + return &NullableTunnelStatusLabel{value: val, isSet: true} +} + +func (v NullableTunnelStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_tunnel_termination.go b/model_tunnel_termination.go index 014447ce24..479cde576e 100644 --- a/model_tunnel_termination.go +++ b/model_tunnel_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the TunnelTermination type satisfies the MappedNullable interface at compile time @@ -21,19 +21,20 @@ var _ MappedNullable = &TunnelTermination{} // TunnelTermination Adds support for custom fields and tags. type TunnelTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Tunnel Tunnel `json:"tunnel"` - Role TunnelTerminationRole `json:"role"` - TerminationType string `json:"termination_type"` - TerminationId NullableInt64 `json:"termination_id"` - Termination interface{} `json:"termination"` - OutsideIp NullableIPAddress `json:"outside_ip,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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Tunnel BriefTunnel `json:"tunnel"` + Role TunnelTerminationRole `json:"role"` + TerminationType string `json:"termination_type"` + TerminationId NullableInt64 `json:"termination_id,omitempty"` + Termination interface{} `json:"termination,omitempty"` + OutsideIp NullableBriefIPAddress `json:"outside_ip,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +44,7 @@ type _TunnelTermination TunnelTermination // 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 NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { +func NewTunnelTermination(id int32, url string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string) *TunnelTermination { this := TunnelTermination{} this.Id = id this.Url = url @@ -51,10 +52,6 @@ func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, r this.Tunnel = tunnel this.Role = role this.TerminationType = terminationType - this.TerminationId = terminationId - this.Termination = termination - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -90,6 +87,7 @@ func (o *TunnelTermination) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *TunnelTermination) GetUrl() string { if o == nil { @@ -114,6 +112,39 @@ func (o *TunnelTermination) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TunnelTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TunnelTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TunnelTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TunnelTermination) GetDisplay() string { if o == nil { @@ -138,10 +169,11 @@ func (o *TunnelTermination) SetDisplay(v string) { o.Display = v } + // GetTunnel returns the Tunnel field value -func (o *TunnelTermination) GetTunnel() Tunnel { +func (o *TunnelTermination) GetTunnel() BriefTunnel { if o == nil { - var ret Tunnel + var ret BriefTunnel return ret } @@ -150,7 +182,7 @@ func (o *TunnelTermination) GetTunnel() Tunnel { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { +func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool) { if o == nil { return nil, false } @@ -158,10 +190,11 @@ func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { } // SetTunnel sets field value -func (o *TunnelTermination) SetTunnel(v Tunnel) { +func (o *TunnelTermination) SetTunnel(v BriefTunnel) { o.Tunnel = v } + // GetRole returns the Role field value func (o *TunnelTermination) GetRole() TunnelTerminationRole { if o == nil { @@ -186,6 +219,7 @@ func (o *TunnelTermination) SetRole(v TunnelTerminationRole) { o.Role = v } + // GetTerminationType returns the TerminationType field value func (o *TunnelTermination) GetTerminationType() string { if o == nil { @@ -210,18 +244,17 @@ func (o *TunnelTermination) SetTerminationType(v string) { o.TerminationType = v } -// GetTerminationId returns the TerminationId field value -// If the value is explicit nil, the zero value for int64 will be returned + +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TunnelTermination) GetTerminationId() int64 { - if o == nil || o.TerminationId.Get() == nil { + if o == nil || IsNil(o.TerminationId.Get()) { var ret int64 return ret } - return *o.TerminationId.Get() } -// GetTerminationIdOk returns a tuple with the TerminationId field value +// GetTerminationIdOk returns a tuple with the TerminationId 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 *TunnelTermination) GetTerminationIdOk() (*int64, bool) { @@ -231,23 +264,39 @@ func (o *TunnelTermination) GetTerminationIdOk() (*int64, bool) { return o.TerminationId.Get(), o.TerminationId.IsSet() } -// SetTerminationId sets field value +// HasTerminationId returns a boolean if a field has been set. +func (o *TunnelTermination) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { + return true + } + + return false +} + +// SetTerminationId gets a reference to the given NullableInt64 and assigns it to the TerminationId field. func (o *TunnelTermination) SetTerminationId(v int64) { o.TerminationId.Set(&v) } +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *TunnelTermination) SetTerminationIdNil() { + o.TerminationId.Set(nil) +} -// GetTermination returns the Termination field value -// If the value is explicit nil, the zero value for interface{} will be returned +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *TunnelTermination) UnsetTerminationId() { + o.TerminationId.Unset() +} + +// GetTermination returns the Termination field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TunnelTermination) GetTermination() interface{} { if o == nil { var ret interface{} return ret } - return o.Termination } -// GetTerminationOk returns a tuple with the Termination field value +// GetTerminationOk returns a tuple with the Termination 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 *TunnelTermination) GetTerminationOk() (*interface{}, bool) { @@ -257,15 +306,24 @@ func (o *TunnelTermination) GetTerminationOk() (*interface{}, bool) { return &o.Termination, true } -// SetTermination sets field value +// HasTermination returns a boolean if a field has been set. +func (o *TunnelTermination) HasTermination() bool { + if o != nil && !IsNil(o.Termination) { + return true + } + + return false +} + +// SetTermination gets a reference to the given interface{} and assigns it to the Termination field. func (o *TunnelTermination) SetTermination(v interface{}) { o.Termination = v } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTermination) GetOutsideIp() IPAddress { +func (o *TunnelTermination) GetOutsideIp() BriefIPAddress { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OutsideIp.Get() @@ -274,7 +332,7 @@ func (o *TunnelTermination) GetOutsideIp() IPAddress { // GetOutsideIpOk returns a tuple with the OutsideIp 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 *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool) { +func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -290,11 +348,10 @@ func (o *TunnelTermination) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddress and assigns it to the OutsideIp field. -func (o *TunnelTermination) SetOutsideIp(v IPAddress) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddress and assigns it to the OutsideIp field. +func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress) { o.OutsideIp.Set(&v) } - // SetOutsideIpNil sets the value for OutsideIp to be an explicit nil func (o *TunnelTermination) SetOutsideIpNil() { o.OutsideIp.Set(nil) @@ -369,18 +426,16 @@ func (o *TunnelTermination) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TunnelTermination) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *TunnelTermination) GetCreatedOk() (*time.Time, bool) { @@ -390,23 +445,39 @@ func (o *TunnelTermination) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *TunnelTermination) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *TunnelTermination) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *TunnelTermination) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *TunnelTermination) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TunnelTermination) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *TunnelTermination) GetLastUpdatedOk() (*time.Time, bool) { @@ -416,13 +487,31 @@ func (o *TunnelTermination) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *TunnelTermination) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *TunnelTermination) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *TunnelTermination) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *TunnelTermination) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o TunnelTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -433,11 +522,16 @@ func (o TunnelTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["tunnel"] = o.Tunnel toSerialize["role"] = o.Role toSerialize["termination_type"] = o.TerminationType - toSerialize["termination_id"] = o.TerminationId.Get() + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() + } if o.Termination != nil { toSerialize["termination"] = o.Termination } @@ -450,8 +544,12 @@ func (o TunnelTermination) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -471,26 +569,39 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { "tunnel", "role", "termination_type", - "termination_id", - "termination", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTunnelTermination := _TunnelTermination{} err = json.Unmarshal(data, &varTunnelTermination) @@ -506,6 +617,7 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "tunnel") delete(additionalProperties, "role") @@ -558,3 +670,5 @@ func (v *NullableTunnelTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go index d38e99b538..6359a5795a 100644 --- a/model_tunnel_termination_request.go +++ b/model_tunnel_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &TunnelTerminationRequest{} // TunnelTerminationRequest Adds support for custom fields and tags. type TunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` - Role PatchedWritableTunnelTerminationRequestRole `json:"role"` - TerminationType string `json:"termination_type"` - TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tunnel BriefTunnelRequest `json:"tunnel"` + Role PatchedWritableTunnelTerminationRequestRole `json:"role"` + TerminationType string `json:"termination_type"` + TerminationId NullableInt64 `json:"termination_id,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,12 +36,11 @@ type _TunnelTerminationRequest TunnelTerminationRequest // 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 NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { +func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string) *TunnelTerminationRequest { this := TunnelTerminationRequest{} this.Tunnel = tunnel this.Role = role this.TerminationType = terminationType - this.TerminationId = terminationId return &this } @@ -54,9 +53,9 @@ func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest { } // GetTunnel returns the Tunnel field value -func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -65,7 +64,7 @@ func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -73,10 +72,11 @@ func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { } // SetTunnel sets field value -func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } + // GetRole returns the Role field value func (o *TunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole { if o == nil { @@ -101,6 +101,7 @@ func (o *TunnelTerminationRequest) SetRole(v PatchedWritableTunnelTerminationReq o.Role = v } + // GetTerminationType returns the TerminationType field value func (o *TunnelTerminationRequest) GetTerminationType() string { if o == nil { @@ -125,18 +126,17 @@ func (o *TunnelTerminationRequest) SetTerminationType(v string) { o.TerminationType = v } -// GetTerminationId returns the TerminationId field value -// If the value is explicit nil, the zero value for int64 will be returned + +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *TunnelTerminationRequest) GetTerminationId() int64 { - if o == nil || o.TerminationId.Get() == nil { + if o == nil || IsNil(o.TerminationId.Get()) { var ret int64 return ret } - return *o.TerminationId.Get() } -// GetTerminationIdOk returns a tuple with the TerminationId field value +// GetTerminationIdOk returns a tuple with the TerminationId 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 *TunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) { @@ -146,15 +146,33 @@ func (o *TunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) { return o.TerminationId.Get(), o.TerminationId.IsSet() } -// SetTerminationId sets field value +// HasTerminationId returns a boolean if a field has been set. +func (o *TunnelTerminationRequest) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { + return true + } + + return false +} + +// SetTerminationId gets a reference to the given NullableInt64 and assigns it to the TerminationId field. func (o *TunnelTerminationRequest) SetTerminationId(v int64) { o.TerminationId.Set(&v) } +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *TunnelTerminationRequest) SetTerminationIdNil() { + o.TerminationId.Set(nil) +} + +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *TunnelTerminationRequest) UnsetTerminationId() { + o.TerminationId.Unset() +} // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -163,7 +181,7 @@ func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp 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 *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -179,11 +197,10 @@ func (o *TunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } - // SetOutsideIpNil sets the value for OutsideIp to be an explicit nil func (o *TunnelTerminationRequest) SetOutsideIpNil() { o.OutsideIp.Set(nil) @@ -259,7 +276,7 @@ func (o *TunnelTerminationRequest) SetCustomFields(v map[string]interface{}) { } func (o TunnelTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,7 +288,9 @@ func (o TunnelTerminationRequest) ToMap() (map[string]interface{}, error) { toSerialize["tunnel"] = o.Tunnel toSerialize["role"] = o.Role toSerialize["termination_type"] = o.TerminationType - toSerialize["termination_id"] = o.TerminationId.Get() + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() + } if o.OutsideIp.IsSet() { toSerialize["outside_ip"] = o.OutsideIp.Get() } @@ -297,23 +316,39 @@ func (o *TunnelTerminationRequest) UnmarshalJSON(data []byte) (err error) { "tunnel", "role", "termination_type", - "termination_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varTunnelTerminationRequest := _TunnelTerminationRequest{} err = json.Unmarshal(data, &varTunnelTerminationRequest) @@ -375,3 +410,5 @@ func (v *NullableTunnelTerminationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go index fe1ea1a389..29312fa90a 100644 --- a/model_tunnel_termination_role.go +++ b/model_tunnel_termination_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &TunnelTerminationRole{} // TunnelTerminationRole struct for TunnelTerminationRole type TunnelTerminationRole struct { - Value *PatchedWritableTunnelTerminationRequestRole `json:"value,omitempty"` - Label *TunnelTerminationRoleLabel `json:"label,omitempty"` + Value *PatchedWritableTunnelTerminationRequestRole `json:"value,omitempty"` + Label *TunnelTerminationRoleLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *TunnelTerminationRole) SetLabel(v TunnelTerminationRoleLabel) { } func (o TunnelTerminationRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableTunnelTerminationRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go index f59fb7fd85..64c8805305 100644 --- a/model_tunnel_termination_role_label.go +++ b/model_tunnel_termination_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ type TunnelTerminationRoleLabel string // List of TunnelTermination_role_label const ( - TUNNELTERMINATIONROLELABEL_PEER TunnelTerminationRoleLabel = "Peer" - TUNNELTERMINATIONROLELABEL_HUB TunnelTerminationRoleLabel = "Hub" + TUNNELTERMINATIONROLELABEL_PEER TunnelTerminationRoleLabel = "Peer" + TUNNELTERMINATIONROLELABEL_HUB TunnelTerminationRoleLabel = "Hub" TUNNELTERMINATIONROLELABEL_SPOKE TunnelTerminationRoleLabel = "Spoke" ) @@ -110,3 +110,4 @@ func (v *NullableTunnelTerminationRoleLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_user.go b/model_user.go index 09bd2a3cd0..cba872de9c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,11 +21,23 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"` + FirstName *string `json:"first_name,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"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []Group `json:"groups,omitempty"` + Permissions []ObjectPermission `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,6 +88,7 @@ func (o *User) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *User) GetUrl() string { if o == nil { @@ -99,6 +113,39 @@ func (o *User) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *User) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *User) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *User) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *User) GetDisplay() string { if o == nil { @@ -123,6 +170,7 @@ func (o *User) SetDisplay(v string) { o.Display = v } + // GetUsername returns the Username field value func (o *User) GetUsername() string { if o == nil { @@ -147,8 +195,307 @@ func (o *User) SetUsername(v string) { o.Username = v } + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *User) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *User) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *User) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *User) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *User) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *User) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *User) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *User) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *User) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *User) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *User) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *User) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *User) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *User) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *User) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *User) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *User) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *User) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *User) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin 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 *User) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *User) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *User) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *User) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *User) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *User) GetGroups() []Group { + if o == nil || IsNil(o.Groups) { + var ret []Group + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetGroupsOk() ([]Group, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *User) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []Group and assigns it to the Groups field. +func (o *User) SetGroups(v []Group) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *User) GetPermissions() []ObjectPermission { + if o == nil || IsNil(o.Permissions) { + var ret []ObjectPermission + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetPermissionsOk() ([]ObjectPermission, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *User) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []ObjectPermission and assigns it to the Permissions field. +func (o *User) SetPermissions(v []ObjectPermission) { + o.Permissions = v +} + func (o User) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -159,8 +506,38 @@ func (o User) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["username"] = o.Username + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -180,20 +557,37 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { "username", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varUser := _User{} err = json.Unmarshal(data, &varUser) @@ -209,8 +603,18 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } @@ -252,3 +656,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 33ff7942b1..45b6c1d09c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -21,7 +22,19 @@ 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"` + Username string `json:"username" validate:"regexp=^[\\\\w.@+-]+$"` + Password string `json:"password"` + FirstName *string `json:"first_name,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"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Permissions []int32 `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +44,10 @@ type _UserRequest UserRequest // 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 NewUserRequest(username string) *UserRequest { +func NewUserRequest(username string, password string) *UserRequest { this := UserRequest{} this.Username = username + this.Password = password return &this } @@ -69,8 +83,332 @@ func (o *UserRequest) SetUsername(v string) { o.Username = v } + +// GetPassword returns the Password field value +func (o *UserRequest) 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 *UserRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *UserRequest) SetPassword(v string) { + o.Password = v +} + + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *UserRequest) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *UserRequest) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *UserRequest) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *UserRequest) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *UserRequest) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *UserRequest) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *UserRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *UserRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *UserRequest) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *UserRequest) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *UserRequest) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *UserRequest) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *UserRequest) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *UserRequest) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *UserRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *UserRequest) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *UserRequest) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *UserRequest) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UserRequest) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin 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 *UserRequest) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *UserRequest) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *UserRequest) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *UserRequest) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *UserRequest) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *UserRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *UserRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *UserRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *UserRequest) GetPermissions() []int32 { + if o == nil || IsNil(o.Permissions) { + var ret []int32 + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetPermissionsOk() ([]int32, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *UserRequest) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []int32 and assigns it to the Permissions field. +func (o *UserRequest) SetPermissions(v []int32) { + o.Permissions = v +} + func (o UserRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -80,6 +418,34 @@ func (o UserRequest) MarshalJSON() ([]byte, error) { func (o UserRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -94,22 +460,40 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "username", + "password", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varUserRequest := _UserRequest{} err = json.Unmarshal(data, &varUserRequest) @@ -124,6 +508,16 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } @@ -165,3 +559,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 c23f982763..b2b28da229 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,13 +21,21 @@ 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"` - Master NullableNestedDevice `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - MemberCount int32 `json:"member_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + MemberCount int32 `json:"member_count"` + Members []NestedDevice `json:"members"` AdditionalProperties map[string]interface{} } @@ -36,13 +45,14 @@ 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) *VirtualChassis { +func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, members []NestedDevice) *VirtualChassis { this := VirtualChassis{} this.Id = id this.Url = url this.Display = display this.Name = name this.MemberCount = memberCount + this.Members = members return &this } @@ -78,6 +88,7 @@ func (o *VirtualChassis) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VirtualChassis) GetUrl() string { if o == nil { @@ -102,6 +113,39 @@ func (o *VirtualChassis) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualChassis) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualChassis) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualChassis) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualChassis) GetDisplay() string { if o == nil { @@ -126,6 +170,7 @@ func (o *VirtualChassis) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *VirtualChassis) GetName() string { if o == nil { @@ -150,6 +195,39 @@ func (o *VirtualChassis) SetName(v string) { o.Name = v } + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassis) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassis) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassis) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassis) GetMaster() NestedDevice { if o == nil || IsNil(o.Master.Get()) { @@ -182,7 +260,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) @@ -225,6 +302,186 @@ func (o *VirtualChassis) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassis) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassis) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassis) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassis) 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 *VirtualChassis) 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 *VirtualChassis) 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 *VirtualChassis) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassis) 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 *VirtualChassis) 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 *VirtualChassis) 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 *VirtualChassis) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualChassis) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *VirtualChassis) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *VirtualChassis) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *VirtualChassis) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VirtualChassis) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VirtualChassis) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualChassis) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *VirtualChassis) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *VirtualChassis) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VirtualChassis) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VirtualChassis) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + // GetMemberCount returns the MemberCount field value func (o *VirtualChassis) GetMemberCount() int32 { if o == nil { @@ -249,8 +506,34 @@ func (o *VirtualChassis) SetMemberCount(v int32) { o.MemberCount = v } + +// GetMembers returns the Members field value +func (o *VirtualChassis) GetMembers() []NestedDevice { + if o == nil { + var ret []NestedDevice + return ret + } + + return o.Members +} + +// GetMembersOk returns a tuple with the Members field value +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetMembersOk() ([]NestedDevice, bool) { + if o == nil { + return nil, false + } + return o.Members, true +} + +// SetMembers sets field value +func (o *VirtualChassis) SetMembers(v []NestedDevice) { + o.Members = v +} + + func (o VirtualChassis) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -261,15 +544,37 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["member_count"] = o.MemberCount + toSerialize["members"] = o.Members for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -288,22 +593,40 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { "display", "name", "member_count", + "members", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualChassis := _VirtualChassis{} err = json.Unmarshal(data, &varVirtualChassis) @@ -319,11 +642,19 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "member_count") + delete(additionalProperties, "members") o.AdditionalProperties = additionalProperties } @@ -365,3 +696,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 12a6c68c63..12637efeff 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &VirtualChassisRequest{} // VirtualChassisRequest Adds support for custom fields and tags. type VirtualChassisRequest struct { - Name string `json:"name"` - Master NullableNestedDeviceRequest `json:"master,omitempty"` - Description *string `json:"description,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{} } @@ -70,6 +74,39 @@ func (o *VirtualChassisRequest) SetName(v string) { o.Name = v } + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassisRequest) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest { if o == nil || IsNil(o.Master.Get()) { @@ -102,7 +139,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) @@ -145,8 +181,104 @@ func (o *VirtualChassisRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassisRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassisRequest) 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 *VirtualChassisRequest) 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 *VirtualChassisRequest) 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 *VirtualChassisRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassisRequest) 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 *VirtualChassisRequest) 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 *VirtualChassisRequest) 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 *VirtualChassisRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,12 +288,24 @@ func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { func (o VirtualChassisRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -178,20 +322,37 @@ func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualChassisRequest := _VirtualChassisRequest{} err = json.Unmarshal(data, &varVirtualChassisRequest) @@ -206,8 +367,12 @@ func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -249,3 +414,5 @@ func (v *NullableVirtualChassisRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_circuit.go b/model_virtual_circuit.go new file mode 100644 index 0000000000..1e2cf8f5d9 --- /dev/null +++ b/model_virtual_circuit.go @@ -0,0 +1,748 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the VirtualCircuit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualCircuit{} + +// VirtualCircuit Adds support for custom fields and tags. +type VirtualCircuit struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + // Unique circuit ID + Cid string `json:"cid"` + ProviderNetwork BriefProviderNetwork `json:"provider_network"` + ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"` + Type BriefVirtualCircuitType `json:"type"` + Status *CircuitStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualCircuit VirtualCircuit + +// NewVirtualCircuit instantiates a new VirtualCircuit 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 NewVirtualCircuit(id int32, url string, display string, cid string, providerNetwork BriefProviderNetwork, type_ BriefVirtualCircuitType) *VirtualCircuit { + this := VirtualCircuit{} + this.Id = id + this.Url = url + this.Display = display + this.Cid = cid + this.ProviderNetwork = providerNetwork + this.Type = type_ + return &this +} + +// NewVirtualCircuitWithDefaults instantiates a new VirtualCircuit 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 NewVirtualCircuitWithDefaults() *VirtualCircuit { + this := VirtualCircuit{} + return &this +} + +// GetId returns the Id field value +func (o *VirtualCircuit) 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 *VirtualCircuit) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VirtualCircuit) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *VirtualCircuit) 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 *VirtualCircuit) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *VirtualCircuit) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualCircuit) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuit) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualCircuit) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualCircuit) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *VirtualCircuit) 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 *VirtualCircuit) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *VirtualCircuit) SetDisplay(v string) { + o.Display = v +} + + +// GetCid returns the Cid field value +func (o *VirtualCircuit) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuit) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *VirtualCircuit) SetCid(v string) { + o.Cid = v +} + + +// GetProviderNetwork returns the ProviderNetwork field value +func (o *VirtualCircuit) GetProviderNetwork() BriefProviderNetwork { + if o == nil { + var ret BriefProviderNetwork + return ret + } + + return o.ProviderNetwork +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuit) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { + if o == nil { + return nil, false + } + return &o.ProviderNetwork, true +} + +// SetProviderNetwork sets field value +func (o *VirtualCircuit) SetProviderNetwork(v BriefProviderNetwork) { + o.ProviderNetwork = v +} + + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuit) GetProviderAccount() BriefProviderAccount { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccount + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount 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 *VirtualCircuit) GetProviderAccountOk() (*BriefProviderAccount, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *VirtualCircuit) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccount and assigns it to the ProviderAccount field. +func (o *VirtualCircuit) SetProviderAccount(v BriefProviderAccount) { + o.ProviderAccount.Set(&v) +} +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *VirtualCircuit) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *VirtualCircuit) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *VirtualCircuit) GetType() BriefVirtualCircuitType { + if o == nil { + var ret BriefVirtualCircuitType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuit) GetTypeOk() (*BriefVirtualCircuitType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *VirtualCircuit) SetType(v BriefVirtualCircuitType) { + o.Type = v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VirtualCircuit) GetStatus() CircuitStatus { + if o == nil || IsNil(o.Status) { + var ret CircuitStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuit) GetStatusOk() (*CircuitStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VirtualCircuit) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatus and assigns it to the Status field. +func (o *VirtualCircuit) SetStatus(v CircuitStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuit) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *VirtualCircuit) GetTenantOk() (*BriefTenant, 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 *VirtualCircuit) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualCircuit) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VirtualCircuit) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VirtualCircuit) UnsetTenant() { + o.Tenant.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VirtualCircuit) 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 *VirtualCircuit) 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 *VirtualCircuit) 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 *VirtualCircuit) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualCircuit) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuit) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualCircuit) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualCircuit) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualCircuit) 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 *VirtualCircuit) 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 *VirtualCircuit) 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 *VirtualCircuit) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualCircuit) 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 *VirtualCircuit) 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 *VirtualCircuit) 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 *VirtualCircuit) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuit) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *VirtualCircuit) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *VirtualCircuit) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *VirtualCircuit) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VirtualCircuit) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VirtualCircuit) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuit) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VirtualCircuit) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *VirtualCircuit) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *VirtualCircuit) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VirtualCircuit) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VirtualCircuit) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +func (o VirtualCircuit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualCircuit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["cid"] = o.Cid + toSerialize["provider_network"] = o.ProviderNetwork + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualCircuit) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "cid", + "provider_network", + "type", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVirtualCircuit := _VirtualCircuit{} + + err = json.Unmarshal(data, &varVirtualCircuit) + + if err != nil { + return err + } + + *o = VirtualCircuit(varVirtualCircuit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "cid") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualCircuit struct { + value *VirtualCircuit + isSet bool +} + +func (v NullableVirtualCircuit) Get() *VirtualCircuit { + return v.value +} + +func (v *NullableVirtualCircuit) Set(val *VirtualCircuit) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualCircuit) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualCircuit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualCircuit(val *VirtualCircuit) *NullableVirtualCircuit { + return &NullableVirtualCircuit{value: val, isSet: true} +} + +func (v NullableVirtualCircuit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualCircuit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_circuit_request.go b/model_virtual_circuit_request.go new file mode 100644 index 0000000000..7a3794fe45 --- /dev/null +++ b/model_virtual_circuit_request.go @@ -0,0 +1,526 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the VirtualCircuitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualCircuitRequest{} + +// VirtualCircuitRequest Adds support for custom fields and tags. +type VirtualCircuitRequest struct { + // Unique circuit ID + Cid string `json:"cid"` + ProviderNetwork BriefProviderNetworkRequest `json:"provider_network"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefVirtualCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `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{} +} + +type _VirtualCircuitRequest VirtualCircuitRequest + +// NewVirtualCircuitRequest instantiates a new VirtualCircuitRequest 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 NewVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest, type_ BriefVirtualCircuitTypeRequest) *VirtualCircuitRequest { + this := VirtualCircuitRequest{} + this.Cid = cid + this.ProviderNetwork = providerNetwork + this.Type = type_ + return &this +} + +// NewVirtualCircuitRequestWithDefaults instantiates a new VirtualCircuitRequest 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 NewVirtualCircuitRequestWithDefaults() *VirtualCircuitRequest { + this := VirtualCircuitRequest{} + return &this +} + +// GetCid returns the Cid field value +func (o *VirtualCircuitRequest) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitRequest) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *VirtualCircuitRequest) SetCid(v string) { + o.Cid = v +} + + +// GetProviderNetwork returns the ProviderNetwork field value +func (o *VirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest { + if o == nil { + var ret BriefProviderNetworkRequest + return ret + } + + return o.ProviderNetwork +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { + if o == nil { + return nil, false + } + return &o.ProviderNetwork, true +} + +// SetProviderNetwork sets field value +func (o *VirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { + o.ProviderNetwork = v +} + + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccountRequest + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount 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 *VirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *VirtualCircuitRequest) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *VirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { + o.ProviderAccount.Set(&v) +} +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *VirtualCircuitRequest) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *VirtualCircuitRequest) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *VirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest { + if o == nil { + var ret BriefVirtualCircuitTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *VirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest) { + o.Type = v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VirtualCircuitRequest) GetStatus() CircuitStatusValue { + if o == nil || IsNil(o.Status) { + var ret CircuitStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VirtualCircuitRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *VirtualCircuitRequest) SetStatus(v CircuitStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuitRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *VirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *VirtualCircuitRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualCircuitRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VirtualCircuitRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VirtualCircuitRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VirtualCircuitRequest) 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 *VirtualCircuitRequest) 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 *VirtualCircuitRequest) 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 *VirtualCircuitRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualCircuitRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuitRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualCircuitRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualCircuitRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualCircuitRequest) 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 *VirtualCircuitRequest) 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 *VirtualCircuitRequest) 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 *VirtualCircuitRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualCircuitRequest) 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 *VirtualCircuitRequest) 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 *VirtualCircuitRequest) 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 *VirtualCircuitRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o VirtualCircuitRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualCircuitRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cid"] = o.Cid + toSerialize["provider_network"] = o.ProviderNetwork + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualCircuitRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cid", + "provider_network", + "type", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVirtualCircuitRequest := _VirtualCircuitRequest{} + + err = json.Unmarshal(data, &varVirtualCircuitRequest) + + if err != nil { + return err + } + + *o = VirtualCircuitRequest(varVirtualCircuitRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cid") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualCircuitRequest struct { + value *VirtualCircuitRequest + isSet bool +} + +func (v NullableVirtualCircuitRequest) Get() *VirtualCircuitRequest { + return v.value +} + +func (v *NullableVirtualCircuitRequest) Set(val *VirtualCircuitRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualCircuitRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualCircuitRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualCircuitRequest(val *VirtualCircuitRequest) *NullableVirtualCircuitRequest { + return &NullableVirtualCircuitRequest{value: val, isSet: true} +} + +func (v NullableVirtualCircuitRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualCircuitRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_circuit_termination.go b/model_virtual_circuit_termination.go new file mode 100644 index 0000000000..9a6b0ca431 --- /dev/null +++ b/model_virtual_circuit_termination.go @@ -0,0 +1,586 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the VirtualCircuitTermination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualCircuitTermination{} + +// VirtualCircuitTermination Adds support for custom fields and tags. +type VirtualCircuitTermination struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + VirtualCircuit BriefVirtualCircuit `json:"virtual_circuit"` + Role *TunnelTerminationRole `json:"role,omitempty"` + Interface BriefInterface `json:"interface"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualCircuitTermination VirtualCircuitTermination + +// NewVirtualCircuitTermination instantiates a new VirtualCircuitTermination 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 NewVirtualCircuitTermination(id int32, url string, display string, virtualCircuit BriefVirtualCircuit, interface_ BriefInterface) *VirtualCircuitTermination { + this := VirtualCircuitTermination{} + this.Id = id + this.Url = url + this.Display = display + this.VirtualCircuit = virtualCircuit + this.Interface = interface_ + return &this +} + +// NewVirtualCircuitTerminationWithDefaults instantiates a new VirtualCircuitTermination 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 NewVirtualCircuitTerminationWithDefaults() *VirtualCircuitTermination { + this := VirtualCircuitTermination{} + return &this +} + +// GetId returns the Id field value +func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VirtualCircuitTermination) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *VirtualCircuitTermination) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualCircuitTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualCircuitTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualCircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *VirtualCircuitTermination) SetDisplay(v string) { + o.Display = v +} + + +// GetVirtualCircuit returns the VirtualCircuit field value +func (o *VirtualCircuitTermination) GetVirtualCircuit() BriefVirtualCircuit { + if o == nil { + var ret BriefVirtualCircuit + return ret + } + + return o.VirtualCircuit +} + +// GetVirtualCircuitOk returns a tuple with the VirtualCircuit field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitTermination) GetVirtualCircuitOk() (*BriefVirtualCircuit, bool) { + if o == nil { + return nil, false + } + return &o.VirtualCircuit, true +} + +// SetVirtualCircuit sets field value +func (o *VirtualCircuitTermination) SetVirtualCircuit(v BriefVirtualCircuit) { + o.VirtualCircuit = v +} + + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *VirtualCircuitTermination) GetRole() TunnelTerminationRole { + if o == nil || IsNil(o.Role) { + var ret TunnelTerminationRole + return ret + } + return *o.Role +} + +// 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 *VirtualCircuitTermination) GetRoleOk() (*TunnelTerminationRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *VirtualCircuitTermination) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given TunnelTerminationRole and assigns it to the Role field. +func (o *VirtualCircuitTermination) SetRole(v TunnelTerminationRole) { + o.Role = &v +} + +// GetInterface returns the Interface field value +func (o *VirtualCircuitTermination) GetInterface() BriefInterface { + if o == nil { + var ret BriefInterface + return ret + } + + return o.Interface +} + +// GetInterfaceOk returns a tuple with the Interface field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitTermination) GetInterfaceOk() (*BriefInterface, bool) { + if o == nil { + return nil, false + } + return &o.Interface, true +} + +// SetInterface sets field value +func (o *VirtualCircuitTermination) SetInterface(v BriefInterface) { + o.Interface = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) 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 *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) 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 *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualCircuitTermination) 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 *VirtualCircuitTermination) 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 *VirtualCircuitTermination) 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 *VirtualCircuitTermination) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuitTermination) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *VirtualCircuitTermination) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *VirtualCircuitTermination) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *VirtualCircuitTermination) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VirtualCircuitTermination) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VirtualCircuitTermination) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuitTermination) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VirtualCircuitTermination) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *VirtualCircuitTermination) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *VirtualCircuitTermination) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VirtualCircuitTermination) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VirtualCircuitTermination) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +func (o VirtualCircuitTermination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualCircuitTermination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["virtual_circuit"] = o.VirtualCircuit + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["interface"] = o.Interface + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualCircuitTermination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "virtual_circuit", + "interface", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVirtualCircuitTermination := _VirtualCircuitTermination{} + + err = json.Unmarshal(data, &varVirtualCircuitTermination) + + if err != nil { + return err + } + + *o = VirtualCircuitTermination(varVirtualCircuitTermination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "virtual_circuit") + delete(additionalProperties, "role") + delete(additionalProperties, "interface") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualCircuitTermination struct { + value *VirtualCircuitTermination + isSet bool +} + +func (v NullableVirtualCircuitTermination) Get() *VirtualCircuitTermination { + return v.value +} + +func (v *NullableVirtualCircuitTermination) Set(val *VirtualCircuitTermination) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualCircuitTermination) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualCircuitTermination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualCircuitTermination(val *VirtualCircuitTermination) *NullableVirtualCircuitTermination { + return &NullableVirtualCircuitTermination{value: val, isSet: true} +} + +func (v NullableVirtualCircuitTermination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualCircuitTermination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_circuit_termination_request.go b/model_virtual_circuit_termination_request.go new file mode 100644 index 0000000000..9b85dcf219 --- /dev/null +++ b/model_virtual_circuit_termination_request.go @@ -0,0 +1,364 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the VirtualCircuitTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualCircuitTerminationRequest{} + +// VirtualCircuitTerminationRequest Adds support for custom fields and tags. +type VirtualCircuitTerminationRequest struct { + VirtualCircuit BriefVirtualCircuitRequest `json:"virtual_circuit"` + Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` + Interface BriefInterfaceRequest `json:"interface"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualCircuitTerminationRequest VirtualCircuitTerminationRequest + +// NewVirtualCircuitTerminationRequest instantiates a new VirtualCircuitTerminationRequest 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 NewVirtualCircuitTerminationRequest(virtualCircuit BriefVirtualCircuitRequest, interface_ BriefInterfaceRequest) *VirtualCircuitTerminationRequest { + this := VirtualCircuitTerminationRequest{} + this.VirtualCircuit = virtualCircuit + this.Interface = interface_ + return &this +} + +// NewVirtualCircuitTerminationRequestWithDefaults instantiates a new VirtualCircuitTerminationRequest 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 NewVirtualCircuitTerminationRequestWithDefaults() *VirtualCircuitTerminationRequest { + this := VirtualCircuitTerminationRequest{} + return &this +} + +// GetVirtualCircuit returns the VirtualCircuit field value +func (o *VirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest { + if o == nil { + var ret BriefVirtualCircuitRequest + return ret + } + + return o.VirtualCircuit +} + +// GetVirtualCircuitOk returns a tuple with the VirtualCircuit field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool) { + if o == nil { + return nil, false + } + return &o.VirtualCircuit, true +} + +// SetVirtualCircuit sets field value +func (o *VirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest) { + o.VirtualCircuit = v +} + + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *VirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole { + if o == nil || IsNil(o.Role) { + var ret PatchedWritableTunnelTerminationRequestRole + return ret + } + return *o.Role +} + +// 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 *VirtualCircuitTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *VirtualCircuitTerminationRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given PatchedWritableTunnelTerminationRequestRole and assigns it to the Role field. +func (o *VirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole) { + o.Role = &v +} + +// GetInterface returns the Interface field value +func (o *VirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest { + if o == nil { + var ret BriefInterfaceRequest + return ret + } + + return o.Interface +} + +// GetInterfaceOk returns a tuple with the Interface field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Interface, true +} + +// SetInterface sets field value +func (o *VirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest) { + o.Interface = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) 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 *VirtualCircuitTerminationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o VirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualCircuitTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["virtual_circuit"] = o.VirtualCircuit + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["interface"] = o.Interface + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "virtual_circuit", + "interface", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVirtualCircuitTerminationRequest := _VirtualCircuitTerminationRequest{} + + err = json.Unmarshal(data, &varVirtualCircuitTerminationRequest) + + if err != nil { + return err + } + + *o = VirtualCircuitTerminationRequest(varVirtualCircuitTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "virtual_circuit") + delete(additionalProperties, "role") + delete(additionalProperties, "interface") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualCircuitTerminationRequest struct { + value *VirtualCircuitTerminationRequest + isSet bool +} + +func (v NullableVirtualCircuitTerminationRequest) Get() *VirtualCircuitTerminationRequest { + return v.value +} + +func (v *NullableVirtualCircuitTerminationRequest) Set(val *VirtualCircuitTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualCircuitTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualCircuitTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualCircuitTerminationRequest(val *VirtualCircuitTerminationRequest) *NullableVirtualCircuitTerminationRequest { + return &NullableVirtualCircuitTerminationRequest{value: val, isSet: true} +} + +func (v NullableVirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualCircuitTerminationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_circuit_type.go b/model_virtual_circuit_type.go new file mode 100644 index 0000000000..e5f1f7b9f8 --- /dev/null +++ b/model_virtual_circuit_type.go @@ -0,0 +1,616 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the VirtualCircuitType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualCircuitType{} + +// VirtualCircuitType Adds support for custom fields and tags. +type VirtualCircuitType struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + VirtualCircuitCount int64 `json:"virtual_circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _VirtualCircuitType VirtualCircuitType + +// NewVirtualCircuitType instantiates a new VirtualCircuitType 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 NewVirtualCircuitType(id int32, url string, display string, name string, slug string, virtualCircuitCount int64) *VirtualCircuitType { + this := VirtualCircuitType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.VirtualCircuitCount = virtualCircuitCount + return &this +} + +// NewVirtualCircuitTypeWithDefaults instantiates a new VirtualCircuitType 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 NewVirtualCircuitTypeWithDefaults() *VirtualCircuitType { + this := VirtualCircuitType{} + return &this +} + +// GetId returns the Id field value +func (o *VirtualCircuitType) 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 *VirtualCircuitType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VirtualCircuitType) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *VirtualCircuitType) 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 *VirtualCircuitType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *VirtualCircuitType) SetUrl(v string) { + o.Url = v +} + + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualCircuitType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuitType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualCircuitType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualCircuitType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *VirtualCircuitType) 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 *VirtualCircuitType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *VirtualCircuitType) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *VirtualCircuitType) 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 *VirtualCircuitType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *VirtualCircuitType) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *VirtualCircuitType) 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 *VirtualCircuitType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *VirtualCircuitType) SetSlug(v string) { + o.Slug = v +} + + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *VirtualCircuitType) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuitType) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *VirtualCircuitType) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *VirtualCircuitType) SetColor(v string) { + o.Color = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VirtualCircuitType) 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 *VirtualCircuitType) 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 *VirtualCircuitType) 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 *VirtualCircuitType) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualCircuitType) 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 *VirtualCircuitType) 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 *VirtualCircuitType) 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 *VirtualCircuitType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualCircuitType) 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 *VirtualCircuitType) 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 *VirtualCircuitType) 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 *VirtualCircuitType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuitType) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *VirtualCircuitType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *VirtualCircuitType) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *VirtualCircuitType) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VirtualCircuitType) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VirtualCircuitType) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualCircuitType) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VirtualCircuitType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *VirtualCircuitType) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *VirtualCircuitType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VirtualCircuitType) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VirtualCircuitType) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetVirtualCircuitCount returns the VirtualCircuitCount field value +func (o *VirtualCircuitType) GetVirtualCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VirtualCircuitCount +} + +// GetVirtualCircuitCountOk returns a tuple with the VirtualCircuitCount field value +// and a boolean to check if the value has been set. +func (o *VirtualCircuitType) GetVirtualCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VirtualCircuitCount, true +} + +// SetVirtualCircuitCount sets field value +func (o *VirtualCircuitType) SetVirtualCircuitCount(v int64) { + o.VirtualCircuitCount = v +} + + +func (o VirtualCircuitType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualCircuitType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + toSerialize["virtual_circuit_count"] = o.VirtualCircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualCircuitType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "virtual_circuit_count", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVirtualCircuitType := _VirtualCircuitType{} + + err = json.Unmarshal(data, &varVirtualCircuitType) + + if err != nil { + return err + } + + *o = VirtualCircuitType(varVirtualCircuitType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "color") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "virtual_circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualCircuitType struct { + value *VirtualCircuitType + isSet bool +} + +func (v NullableVirtualCircuitType) Get() *VirtualCircuitType { + return v.value +} + +func (v *NullableVirtualCircuitType) Set(val *VirtualCircuitType) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualCircuitType) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualCircuitType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualCircuitType(val *VirtualCircuitType) *NullableVirtualCircuitType { + return &NullableVirtualCircuitType{value: val, isSet: true} +} + +func (v NullableVirtualCircuitType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualCircuitType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_circuit_type_request.go b/model_virtual_circuit_type_request.go new file mode 100644 index 0000000000..81a9bc6009 --- /dev/null +++ b/model_virtual_circuit_type_request.go @@ -0,0 +1,364 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the VirtualCircuitTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualCircuitTypeRequest{} + +// VirtualCircuitTypeRequest Adds support for custom fields and tags. +type VirtualCircuitTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualCircuitTypeRequest VirtualCircuitTypeRequest + +// NewVirtualCircuitTypeRequest instantiates a new VirtualCircuitTypeRequest 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 NewVirtualCircuitTypeRequest(name string, slug string) *VirtualCircuitTypeRequest { + this := VirtualCircuitTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewVirtualCircuitTypeRequestWithDefaults instantiates a new VirtualCircuitTypeRequest 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 NewVirtualCircuitTypeRequestWithDefaults() *VirtualCircuitTypeRequest { + this := VirtualCircuitTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *VirtualCircuitTypeRequest) SetName(v string) { + o.Name = v +} + + +// GetSlug returns the Slug field value +func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *VirtualCircuitTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *VirtualCircuitTypeRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualCircuitTypeRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *VirtualCircuitTypeRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *VirtualCircuitTypeRequest) SetColor(v string) { + o.Color = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) 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 *VirtualCircuitTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o VirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualCircuitTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVirtualCircuitTypeRequest := _VirtualCircuitTypeRequest{} + + err = json.Unmarshal(data, &varVirtualCircuitTypeRequest) + + if err != nil { + return err + } + + *o = VirtualCircuitTypeRequest(varVirtualCircuitTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "color") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualCircuitTypeRequest struct { + value *VirtualCircuitTypeRequest + isSet bool +} + +func (v NullableVirtualCircuitTypeRequest) Get() *VirtualCircuitTypeRequest { + return v.value +} + +func (v *NullableVirtualCircuitTypeRequest) Set(val *VirtualCircuitTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualCircuitTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualCircuitTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualCircuitTypeRequest(val *VirtualCircuitTypeRequest) *NullableVirtualCircuitTypeRequest { + return &NullableVirtualCircuitTypeRequest{value: val, isSet: true} +} + +func (v NullableVirtualCircuitTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualCircuitTypeRequest) 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 8e7c0ec50b..13e0c13f4b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the VirtualDeviceContext type satisfies the MappedNullable interface at compile time @@ -21,24 +21,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 Device `json:"device"` - Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - 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 int64 `json:"interface_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Device BriefDevice `json:"device"` + Identifier NullableInt32 `json:"identifier,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + InterfaceCount int64 `json:"interface_count"` AdditionalProperties map[string]interface{} } @@ -48,17 +49,14 @@ 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 Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { +func NewVirtualDeviceContext(id int32, url string, display string, name string, device BriefDevice, status VirtualDeviceContextStatus, interfaceCount int64) *VirtualDeviceContext { this := VirtualDeviceContext{} this.Id = id this.Url = url this.Display = display this.Name = name this.Device = device - this.PrimaryIp = primaryIp this.Status = status - this.Created = created - this.LastUpdated = lastUpdated this.InterfaceCount = interfaceCount return &this } @@ -95,6 +93,7 @@ func (o *VirtualDeviceContext) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VirtualDeviceContext) GetUrl() string { if o == nil { @@ -119,6 +118,39 @@ func (o *VirtualDeviceContext) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualDeviceContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualDeviceContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualDeviceContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualDeviceContext) GetDisplay() string { if o == nil { @@ -143,6 +175,7 @@ func (o *VirtualDeviceContext) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *VirtualDeviceContext) GetName() string { if o == nil { @@ -167,10 +200,11 @@ func (o *VirtualDeviceContext) SetName(v string) { o.Name = v } + // GetDevice returns the Device field value -func (o *VirtualDeviceContext) GetDevice() Device { +func (o *VirtualDeviceContext) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -179,7 +213,7 @@ func (o *VirtualDeviceContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -187,10 +221,11 @@ func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContext) SetDevice(v Device) { +func (o *VirtualDeviceContext) SetDevice(v BriefDevice) { o.Device = v } + // GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualDeviceContext) GetIdentifier() int32 { if o == nil || IsNil(o.Identifier.Get()) { @@ -223,7 +258,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) @@ -235,9 +269,9 @@ func (o *VirtualDeviceContext) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetTenant() Tenant { +func (o *VirtualDeviceContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -246,7 +280,7 @@ func (o *VirtualDeviceContext) GetTenant() Tenant { // 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 *VirtualDeviceContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -262,11 +296,10 @@ func (o *VirtualDeviceContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualDeviceContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualDeviceContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualDeviceContext) SetTenantNil() { o.Tenant.Set(nil) @@ -277,36 +310,52 @@ func (o *VirtualDeviceContext) UnsetTenant() { o.Tenant.Unset() } -// GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { - if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress +// GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress { + if o == nil || IsNil(o.PrimaryIp.Get()) { + var ret BriefIPAddress return ret } - return *o.PrimaryIp.Get() } -// GetPrimaryIpOk returns a tuple with the PrimaryIp field value +// GetPrimaryIpOk returns a tuple with the PrimaryIp 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 *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } return o.PrimaryIp.Get(), o.PrimaryIp.IsSet() } -// SetPrimaryIp sets field value -func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress) { +// HasPrimaryIp returns a boolean if a field has been set. +func (o *VirtualDeviceContext) HasPrimaryIp() bool { + if o != nil && o.PrimaryIp.IsSet() { + return true + } + + return false +} + +// SetPrimaryIp gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp field. +func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } +// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil +func (o *VirtualDeviceContext) SetPrimaryIpNil() { + o.PrimaryIp.Set(nil) +} + +// UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil +func (o *VirtualDeviceContext) UnsetPrimaryIp() { + o.PrimaryIp.Unset() +} // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -315,7 +364,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -331,11 +380,10 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualDeviceContext) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -347,9 +395,9 @@ func (o *VirtualDeviceContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -358,7 +406,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -374,11 +422,10 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualDeviceContext) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -413,6 +460,7 @@ func (o *VirtualDeviceContext) SetStatus(v VirtualDeviceContextStatus) { o.Status = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VirtualDeviceContext) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -541,18 +589,16 @@ func (o *VirtualDeviceContext) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualDeviceContext) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *VirtualDeviceContext) GetCreatedOk() (*time.Time, bool) { @@ -562,23 +608,39 @@ func (o *VirtualDeviceContext) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *VirtualDeviceContext) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *VirtualDeviceContext) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VirtualDeviceContext) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VirtualDeviceContext) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualDeviceContext) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VirtualDeviceContext) GetLastUpdatedOk() (*time.Time, bool) { @@ -588,10 +650,28 @@ func (o *VirtualDeviceContext) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *VirtualDeviceContext) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *VirtualDeviceContext) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VirtualDeviceContext) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VirtualDeviceContext) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetInterfaceCount returns the InterfaceCount field value func (o *VirtualDeviceContext) GetInterfaceCount() int64 { @@ -617,8 +697,9 @@ func (o *VirtualDeviceContext) SetInterfaceCount(v int64) { o.InterfaceCount = v } + func (o VirtualDeviceContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -629,6 +710,9 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["device"] = o.Device @@ -638,7 +722,9 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } - toSerialize["primary_ip"] = o.PrimaryIp.Get() + if o.PrimaryIp.IsSet() { + toSerialize["primary_ip"] = o.PrimaryIp.Get() + } if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } @@ -658,8 +744,12 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["interface_count"] = o.InterfaceCount for key, value := range o.AdditionalProperties { @@ -679,27 +769,41 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { "display", "name", "device", - "primary_ip", "status", - "created", - "last_updated", "interface_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualDeviceContext := _VirtualDeviceContext{} err = json.Unmarshal(data, &varVirtualDeviceContext) @@ -715,6 +819,7 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device") @@ -772,3 +877,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 64ba644f61..820906b12f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &VirtualDeviceContextRequest{} // VirtualDeviceContextRequest Adds support for custom fields and tags. type VirtualDeviceContextRequest struct { - Name string `json:"name"` - Device DeviceRequest `json:"device"` - Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Status PatchedWritableVirtualDeviceContextRequestStatus `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"` + Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Identifier NullableInt32 `json:"identifier,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Status PatchedWritableVirtualDeviceContextRequestStatus `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{} } @@ -40,7 +40,7 @@ type _VirtualDeviceContextRequest VirtualDeviceContextRequest // 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 NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { +func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { this := VirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -80,10 +80,11 @@ func (o *VirtualDeviceContextRequest) SetName(v string) { o.Name = v } + // GetDevice returns the Device field value -func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +93,7 @@ func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,10 +101,11 @@ func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualDeviceContextRequest) GetIdentifier() int32 { if o == nil || IsNil(o.Identifier.Get()) { @@ -136,7 +138,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) @@ -148,9 +149,9 @@ func (o *VirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +160,7 @@ func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { // 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 *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,11 +176,10 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualDeviceContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -191,9 +191,9 @@ func (o *VirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,11 +218,10 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualDeviceContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -234,9 +233,9 @@ func (o *VirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +244,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,11 +260,10 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualDeviceContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -300,6 +298,7 @@ func (o *VirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtualDeviceCo o.Status = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VirtualDeviceContextRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -429,7 +428,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 } @@ -483,20 +482,37 @@ func (o *VirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err error) { "status", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualDeviceContextRequest := _VirtualDeviceContextRequest{} err = json.Unmarshal(data, &varVirtualDeviceContextRequest) @@ -562,3 +578,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 index 121a4f6ab1..362e528e45 100644 --- a/model_virtual_device_context_status.go +++ b/model_virtual_device_context_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &VirtualDeviceContextStatus{} // VirtualDeviceContextStatus struct for VirtualDeviceContextStatus type VirtualDeviceContextStatus struct { - Value *PatchedWritableVirtualDeviceContextRequestStatus `json:"value,omitempty"` - Label *VirtualDeviceContextStatusLabel `json:"label,omitempty"` + Value *PatchedWritableVirtualDeviceContextRequestStatus `json:"value,omitempty"` + Label *VirtualDeviceContextStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *VirtualDeviceContextStatus) SetLabel(v VirtualDeviceContextStatusLabel) } func (o VirtualDeviceContextStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableVirtualDeviceContextStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go index 01cf885efd..82fb7dd38f 100644 --- a/model_virtual_device_context_status_label.go +++ b/model_virtual_device_context_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ type VirtualDeviceContextStatusLabel string // List of VirtualDeviceContext_status_label const ( - VIRTUALDEVICECONTEXTSTATUSLABEL_ACTIVE VirtualDeviceContextStatusLabel = "Active" + VIRTUALDEVICECONTEXTSTATUSLABEL_ACTIVE VirtualDeviceContextStatusLabel = "Active" VIRTUALDEVICECONTEXTSTATUSLABEL_PLANNED VirtualDeviceContextStatusLabel = "Planned" VIRTUALDEVICECONTEXTSTATUSLABEL_OFFLINE VirtualDeviceContextStatusLabel = "Offline" ) @@ -110,3 +110,4 @@ func (v *NullableVirtualDeviceContextStatusLabel) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_virtual_disk.go b/model_virtual_disk.go index 581eae9f10..528e3be7d9 100644 --- a/model_virtual_disk.go +++ b/model_virtual_disk.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the VirtualDisk type satisfies the MappedNullable interface at compile time @@ -21,17 +21,18 @@ var _ MappedNullable = &VirtualDisk{} // VirtualDisk Adds support for custom fields and tags. type VirtualDisk struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - VirtualMachine VirtualMachine `json:"virtual_machine"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Size int32 `json:"size"` - 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + VirtualMachine BriefVirtualMachine `json:"virtual_machine"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Size int32 `json:"size"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +42,7 @@ type _VirtualDisk VirtualDisk // 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 NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { +func NewVirtualDisk(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, size int32) *VirtualDisk { this := VirtualDisk{} this.Id = id this.Url = url @@ -49,8 +50,6 @@ func NewVirtualDisk(id int32, url string, display string, virtualMachine Virtual this.VirtualMachine = virtualMachine this.Name = name this.Size = size - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -86,6 +85,7 @@ func (o *VirtualDisk) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VirtualDisk) GetUrl() string { if o == nil { @@ -110,6 +110,39 @@ func (o *VirtualDisk) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualDisk) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualDisk) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualDisk) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualDisk) GetDisplay() string { if o == nil { @@ -134,10 +167,11 @@ func (o *VirtualDisk) SetDisplay(v string) { o.Display = v } + // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { +func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -146,7 +180,7 @@ func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -154,10 +188,11 @@ func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine) { +func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } + // GetName returns the Name field value func (o *VirtualDisk) GetName() string { if o == nil { @@ -182,6 +217,7 @@ func (o *VirtualDisk) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VirtualDisk) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -238,6 +274,7 @@ func (o *VirtualDisk) SetSize(v int32) { o.Size = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *VirtualDisk) GetTags() []NestedTag { if o == nil || IsNil(o.Tags) { @@ -302,18 +339,16 @@ func (o *VirtualDisk) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualDisk) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *VirtualDisk) GetCreatedOk() (*time.Time, bool) { @@ -323,23 +358,39 @@ func (o *VirtualDisk) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *VirtualDisk) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *VirtualDisk) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VirtualDisk) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VirtualDisk) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualDisk) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VirtualDisk) GetLastUpdatedOk() (*time.Time, bool) { @@ -349,13 +400,31 @@ func (o *VirtualDisk) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *VirtualDisk) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *VirtualDisk) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VirtualDisk) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VirtualDisk) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o VirtualDisk) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -366,6 +435,9 @@ func (o VirtualDisk) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -379,8 +451,12 @@ func (o VirtualDisk) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -400,24 +476,39 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { "virtual_machine", "name", "size", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualDisk := _VirtualDisk{} err = json.Unmarshal(data, &varVirtualDisk) @@ -433,6 +524,7 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") @@ -483,3 +575,5 @@ func (v *NullableVirtualDisk) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go index 1403ba9b13..ef81b85414 100644 --- a/model_virtual_disk_request.go +++ b/model_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualDiskRequest{} // VirtualDiskRequest Adds support for custom fields and tags. type VirtualDiskRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Size int32 `json:"size"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Size int32 `json:"size"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,7 +35,7 @@ type _VirtualDiskRequest VirtualDiskRequest // 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 NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32) *VirtualDiskRequest { +func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32) *VirtualDiskRequest { this := VirtualDiskRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -52,9 +52,9 @@ func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -63,7 +63,7 @@ func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -71,10 +71,11 @@ func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } + // GetName returns the Name field value func (o *VirtualDiskRequest) GetName() string { if o == nil { @@ -99,6 +100,7 @@ func (o *VirtualDiskRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VirtualDiskRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -155,6 +157,7 @@ func (o *VirtualDiskRequest) SetSize(v int32) { o.Size = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *VirtualDiskRequest) GetTags() []NestedTagRequest { if o == nil || IsNil(o.Tags) { @@ -220,7 +223,7 @@ func (o *VirtualDiskRequest) SetCustomFields(v map[string]interface{}) { } func (o VirtualDiskRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -259,20 +262,37 @@ func (o *VirtualDiskRequest) UnmarshalJSON(data []byte) (err error) { "size", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualDiskRequest := _VirtualDiskRequest{} err = json.Unmarshal(data, &varVirtualDiskRequest) @@ -333,3 +353,5 @@ func (v *NullableVirtualDiskRequest) 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 b51baaf129..6a561961de 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the VirtualMachineWithConfigContext type satisfies the MappedNullable interface at compile time @@ -21,35 +21,37 @@ 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 *VirtualMachineWithConfigContextStatus `json:"status,omitempty"` - Site NullableSite `json:"site,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - Device NullableDevice `json:"device,omitempty"` - Role NullableDeviceRole `json:"role,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `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"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Status *InventoryItemStatus `json:"status,omitempty"` + Site NullableBriefSite `json:"site,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + Device NullableBriefDevice `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRole `json:"role,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `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"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData interface{} `json:"local_context_data,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - ConfigContext interface{} `json:"config_context"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - InterfaceCount int32 `json:"interface_count"` - VirtualDiskCount int32 `json:"virtual_disk_count"` + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ConfigContext interface{} `json:"config_context,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + InterfaceCount int32 `json:"interface_count"` + VirtualDiskCount int32 `json:"virtual_disk_count"` AdditionalProperties map[string]interface{} } @@ -59,16 +61,12 @@ 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 NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { +func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { this := VirtualMachineWithConfigContext{} this.Id = id this.Url = url this.Display = display this.Name = name - this.PrimaryIp = primaryIp - this.ConfigContext = configContext - this.Created = created - this.LastUpdated = lastUpdated this.InterfaceCount = interfaceCount this.VirtualDiskCount = virtualDiskCount return &this @@ -106,6 +104,7 @@ func (o *VirtualMachineWithConfigContext) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VirtualMachineWithConfigContext) GetUrl() string { if o == nil { @@ -130,6 +129,39 @@ func (o *VirtualMachineWithConfigContext) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualMachineWithConfigContext) GetDisplay() string { if o == nil { @@ -154,6 +186,7 @@ func (o *VirtualMachineWithConfigContext) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *VirtualMachineWithConfigContext) GetName() string { if o == nil { @@ -178,10 +211,11 @@ func (o *VirtualMachineWithConfigContext) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus { +func (o *VirtualMachineWithConfigContext) GetStatus() InventoryItemStatus { if o == nil || IsNil(o.Status) { - var ret VirtualMachineWithConfigContextStatus + var ret InventoryItemStatus return ret } return *o.Status @@ -189,7 +223,7 @@ func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigCo // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool) { +func (o *VirtualMachineWithConfigContext) GetStatusOk() (*InventoryItemStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -205,15 +239,15 @@ func (o *VirtualMachineWithConfigContext) HasStatus() bool { return false } -// SetStatus gets a reference to the given VirtualMachineWithConfigContextStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus) { +// SetStatus gets a reference to the given InventoryItemStatus and assigns it to the Status field. +func (o *VirtualMachineWithConfigContext) SetStatus(v InventoryItemStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetSite() Site { +func (o *VirtualMachineWithConfigContext) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -222,7 +256,7 @@ func (o *VirtualMachineWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site 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 *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -238,11 +272,10 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *VirtualMachineWithConfigContext) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *VirtualMachineWithConfigContext) SetSiteNil() { o.Site.Set(nil) @@ -254,9 +287,9 @@ func (o *VirtualMachineWithConfigContext) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { +func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -265,7 +298,7 @@ func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster 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 *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool) { +func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -281,11 +314,10 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *VirtualMachineWithConfigContext) SetClusterNil() { o.Cluster.Set(nil) @@ -297,9 +329,9 @@ func (o *VirtualMachineWithConfigContext) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetDevice() Device { +func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -308,7 +340,7 @@ func (o *VirtualMachineWithConfigContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device 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 *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -324,11 +356,10 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *VirtualMachineWithConfigContext) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *VirtualMachineWithConfigContext) SetDeviceNil() { o.Device.Set(nil) @@ -339,10 +370,42 @@ func (o *VirtualMachineWithConfigContext) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContext) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContext) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { +func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRole + var ret BriefDeviceRole return ret } return *o.Role.Get() @@ -351,7 +414,7 @@ func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role 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 *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -367,11 +430,10 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRole and assigns it to the Role field. -func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole) { +// SetRole gets a reference to the given NullableBriefDeviceRole and assigns it to the Role field. +func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *VirtualMachineWithConfigContext) SetRoleNil() { o.Role.Set(nil) @@ -383,9 +445,9 @@ func (o *VirtualMachineWithConfigContext) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { +func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -394,7 +456,7 @@ func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { // 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 *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -410,11 +472,10 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualMachineWithConfigContext) SetTenantNil() { o.Tenant.Set(nil) @@ -426,9 +487,9 @@ func (o *VirtualMachineWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { +func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -437,7 +498,7 @@ func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform 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 *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool) { +func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -453,11 +514,10 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *VirtualMachineWithConfigContext) SetPlatformNil() { o.Platform.Set(nil) @@ -468,36 +528,52 @@ func (o *VirtualMachineWithConfigContext) UnsetPlatform() { o.Platform.Unset() } -// GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { - if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress +// GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress { + if o == nil || IsNil(o.PrimaryIp.Get()) { + var ret BriefIPAddress return ret } - return *o.PrimaryIp.Get() } -// GetPrimaryIpOk returns a tuple with the PrimaryIp field value +// GetPrimaryIpOk returns a tuple with the PrimaryIp 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 *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } return o.PrimaryIp.Get(), o.PrimaryIp.IsSet() } -// SetPrimaryIp sets field value -func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress) { +// HasPrimaryIp returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasPrimaryIp() bool { + if o != nil && o.PrimaryIp.IsSet() { + return true + } + + return false +} + +// SetPrimaryIp gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } +// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil +func (o *VirtualMachineWithConfigContext) SetPrimaryIpNil() { + o.PrimaryIp.Set(nil) +} + +// UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil +func (o *VirtualMachineWithConfigContext) UnsetPrimaryIp() { + o.PrimaryIp.Unset() +} // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -506,7 +582,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -522,11 +598,10 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualMachineWithConfigContext) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -538,9 +613,9 @@ func (o *VirtualMachineWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -549,7 +624,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -565,11 +640,10 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualMachineWithConfigContext) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -612,7 +686,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) @@ -655,7 +728,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) @@ -698,7 +770,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) @@ -774,9 +845,9 @@ func (o *VirtualMachineWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -785,7 +856,7 @@ func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { // 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 *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -801,11 +872,10 @@ func (o *VirtualMachineWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *VirtualMachineWithConfigContext) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -913,18 +983,16 @@ func (o *VirtualMachineWithConfigContext) SetCustomFields(v map[string]interface o.CustomFields = v } -// GetConfigContext returns the ConfigContext field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetConfigContext returns the ConfigContext field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualMachineWithConfigContext) GetConfigContext() interface{} { if o == nil { var ret interface{} return ret } - return o.ConfigContext } -// GetConfigContextOk returns a tuple with the ConfigContext field value +// GetConfigContextOk returns a tuple with the ConfigContext 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 *VirtualMachineWithConfigContext) GetConfigContextOk() (*interface{}, bool) { @@ -934,23 +1002,30 @@ func (o *VirtualMachineWithConfigContext) GetConfigContextOk() (*interface{}, bo return &o.ConfigContext, true } -// SetConfigContext sets field value +// HasConfigContext returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasConfigContext() bool { + if o != nil && !IsNil(o.ConfigContext) { + return true + } + + return false +} + +// SetConfigContext gets a reference to the given interface{} and assigns it to the ConfigContext field. func (o *VirtualMachineWithConfigContext) SetConfigContext(v interface{}) { o.ConfigContext = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualMachineWithConfigContext) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *VirtualMachineWithConfigContext) GetCreatedOk() (*time.Time, bool) { @@ -960,23 +1035,39 @@ func (o *VirtualMachineWithConfigContext) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *VirtualMachineWithConfigContext) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VirtualMachineWithConfigContext) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VirtualMachineWithConfigContext) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualMachineWithConfigContext) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VirtualMachineWithConfigContext) GetLastUpdatedOk() (*time.Time, bool) { @@ -986,10 +1077,28 @@ func (o *VirtualMachineWithConfigContext) GetLastUpdatedOk() (*time.Time, bool) return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *VirtualMachineWithConfigContext) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VirtualMachineWithConfigContext) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VirtualMachineWithConfigContext) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetInterfaceCount returns the InterfaceCount field value func (o *VirtualMachineWithConfigContext) GetInterfaceCount() int32 { @@ -1015,6 +1124,7 @@ func (o *VirtualMachineWithConfigContext) SetInterfaceCount(v int32) { o.InterfaceCount = v } + // GetVirtualDiskCount returns the VirtualDiskCount field value func (o *VirtualMachineWithConfigContext) GetVirtualDiskCount() int32 { if o == nil { @@ -1039,8 +1149,9 @@ func (o *VirtualMachineWithConfigContext) SetVirtualDiskCount(v int32) { o.VirtualDiskCount = v } + func (o VirtualMachineWithConfigContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1051,6 +1162,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Status) { @@ -1065,6 +1179,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -1074,7 +1191,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.Platform.IsSet() { toSerialize["platform"] = o.Platform.Get() } - toSerialize["primary_ip"] = o.PrimaryIp.Get() + if o.PrimaryIp.IsSet() { + toSerialize["primary_ip"] = o.PrimaryIp.Get() + } if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } @@ -1111,8 +1230,12 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.ConfigContext != nil { toSerialize["config_context"] = o.ConfigContext } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["interface_count"] = o.InterfaceCount toSerialize["virtual_disk_count"] = o.VirtualDiskCount @@ -1132,28 +1255,41 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) "url", "display", "name", - "primary_ip", - "config_context", - "created", - "last_updated", "interface_count", "virtual_disk_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualMachineWithConfigContext := _VirtualMachineWithConfigContext{} err = json.Unmarshal(data, &varVirtualMachineWithConfigContext) @@ -1169,12 +1305,14 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "status") delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") @@ -1236,3 +1374,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 7795d684aa..6b2dbd0a8f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,26 +20,27 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{} // VirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type VirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `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"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *InventoryItemStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `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"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -87,10 +88,11 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *VirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret InventoryItemStatusValue return ret } return *o.Status @@ -98,7 +100,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModu // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +116,15 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *VirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +133,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site 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 *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,11 +149,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetSiteNil() { o.Site.Set(nil) @@ -163,9 +164,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster 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 *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,11 +191,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -206,9 +206,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +217,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device 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 *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,11 +233,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -248,10 +247,42 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +291,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role 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 *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,11 +307,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetRoleNil() { o.Role.Set(nil) @@ -292,9 +322,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +333,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { // 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 *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,11 +349,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -335,9 +364,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +375,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform 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 *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,11 +391,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -378,9 +406,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +417,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,11 +433,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -421,9 +448,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +459,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,11 +475,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -495,7 +521,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) @@ -538,7 +563,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) @@ -581,7 +605,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) @@ -657,9 +680,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +691,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTempl // 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 *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,11 +707,10 @@ func (o *VirtualMachineWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -797,7 +819,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 } @@ -819,6 +841,9 @@ func (o VirtualMachineWithConfigContextRequest) ToMap() (map[string]interface{}, if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -877,20 +902,37 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVirtualMachineWithConfigContextRequest := _VirtualMachineWithConfigContextRequest{} err = json.Unmarshal(data, &varVirtualMachineWithConfigContextRequest) @@ -909,6 +951,7 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") @@ -964,3 +1007,5 @@ func (v *NullableVirtualMachineWithConfigContextRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_machine_with_config_context_status.go b/model_virtual_machine_with_config_context_status.go deleted file mode 100644 index 6d5d1e923b..0000000000 --- a/model_virtual_machine_with_config_context_status.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" -) - -// checks if the VirtualMachineWithConfigContextStatus type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VirtualMachineWithConfigContextStatus{} - -// VirtualMachineWithConfigContextStatus struct for VirtualMachineWithConfigContextStatus -type VirtualMachineWithConfigContextStatus struct { - Value *PatchedWritableModuleRequestStatus `json:"value,omitempty"` - Label *VirtualMachineWithConfigContextStatusLabel `json:"label,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _VirtualMachineWithConfigContextStatus VirtualMachineWithConfigContextStatus - -// NewVirtualMachineWithConfigContextStatus instantiates a new VirtualMachineWithConfigContextStatus 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 NewVirtualMachineWithConfigContextStatus() *VirtualMachineWithConfigContextStatus { - this := VirtualMachineWithConfigContextStatus{} - return &this -} - -// NewVirtualMachineWithConfigContextStatusWithDefaults instantiates a new VirtualMachineWithConfigContextStatus 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 NewVirtualMachineWithConfigContextStatusWithDefaults() *VirtualMachineWithConfigContextStatus { - this := VirtualMachineWithConfigContextStatus{} - return &this -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextStatus) GetValue() PatchedWritableModuleRequestStatus { - if o == nil || IsNil(o.Value) { - var ret PatchedWritableModuleRequestStatus - 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 *VirtualMachineWithConfigContextStatus) GetValueOk() (*PatchedWritableModuleRequestStatus, 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 *VirtualMachineWithConfigContextStatus) HasValue() bool { - if o != nil && !IsNil(o.Value) { - return true - } - - return false -} - -// SetValue gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Value field. -func (o *VirtualMachineWithConfigContextStatus) SetValue(v PatchedWritableModuleRequestStatus) { - o.Value = &v -} - -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextStatus) GetLabel() VirtualMachineWithConfigContextStatusLabel { - if o == nil || IsNil(o.Label) { - var ret VirtualMachineWithConfigContextStatusLabel - 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 *VirtualMachineWithConfigContextStatus) GetLabelOk() (*VirtualMachineWithConfigContextStatusLabel, 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 *VirtualMachineWithConfigContextStatus) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given VirtualMachineWithConfigContextStatusLabel and assigns it to the Label field. -func (o *VirtualMachineWithConfigContextStatus) SetLabel(v VirtualMachineWithConfigContextStatusLabel) { - o.Label = &v -} - -func (o VirtualMachineWithConfigContextStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o VirtualMachineWithConfigContextStatus) 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 *VirtualMachineWithConfigContextStatus) UnmarshalJSON(data []byte) (err error) { - varVirtualMachineWithConfigContextStatus := _VirtualMachineWithConfigContextStatus{} - - err = json.Unmarshal(data, &varVirtualMachineWithConfigContextStatus) - - if err != nil { - return err - } - - *o = VirtualMachineWithConfigContextStatus(varVirtualMachineWithConfigContextStatus) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "value") - delete(additionalProperties, "label") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableVirtualMachineWithConfigContextStatus struct { - value *VirtualMachineWithConfigContextStatus - isSet bool -} - -func (v NullableVirtualMachineWithConfigContextStatus) Get() *VirtualMachineWithConfigContextStatus { - return v.value -} - -func (v *NullableVirtualMachineWithConfigContextStatus) Set(val *VirtualMachineWithConfigContextStatus) { - v.value = val - v.isSet = true -} - -func (v NullableVirtualMachineWithConfigContextStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableVirtualMachineWithConfigContextStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVirtualMachineWithConfigContextStatus(val *VirtualMachineWithConfigContextStatus) *NullableVirtualMachineWithConfigContextStatus { - return &NullableVirtualMachineWithConfigContextStatus{value: val, isSet: true} -} - -func (v NullableVirtualMachineWithConfigContextStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVirtualMachineWithConfigContextStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_virtual_machine_with_config_context_status_label.go b/model_virtual_machine_with_config_context_status_label.go deleted file mode 100644 index a91af2d260..0000000000 --- a/model_virtual_machine_with_config_context_status_label.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// VirtualMachineWithConfigContextStatusLabel the model 'VirtualMachineWithConfigContextStatusLabel' -type VirtualMachineWithConfigContextStatusLabel string - -// List of VirtualMachineWithConfigContext_status_label -const ( - VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_OFFLINE VirtualMachineWithConfigContextStatusLabel = "Offline" - VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_ACTIVE VirtualMachineWithConfigContextStatusLabel = "Active" - VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_PLANNED VirtualMachineWithConfigContextStatusLabel = "Planned" - VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_STAGED VirtualMachineWithConfigContextStatusLabel = "Staged" - VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_FAILED VirtualMachineWithConfigContextStatusLabel = "Failed" - VIRTUALMACHINEWITHCONFIGCONTEXTSTATUSLABEL_DECOMMISSIONING VirtualMachineWithConfigContextStatusLabel = "Decommissioning" -) - -// All allowed values of VirtualMachineWithConfigContextStatusLabel enum -var AllowedVirtualMachineWithConfigContextStatusLabelEnumValues = []VirtualMachineWithConfigContextStatusLabel{ - "Offline", - "Active", - "Planned", - "Staged", - "Failed", - "Decommissioning", -} - -func (v *VirtualMachineWithConfigContextStatusLabel) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := VirtualMachineWithConfigContextStatusLabel(value) - for _, existing := range AllowedVirtualMachineWithConfigContextStatusLabelEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid VirtualMachineWithConfigContextStatusLabel", value) -} - -// NewVirtualMachineWithConfigContextStatusLabelFromValue returns a pointer to a valid VirtualMachineWithConfigContextStatusLabel -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewVirtualMachineWithConfigContextStatusLabelFromValue(v string) (*VirtualMachineWithConfigContextStatusLabel, error) { - ev := VirtualMachineWithConfigContextStatusLabel(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for VirtualMachineWithConfigContextStatusLabel: valid values are %v", v, AllowedVirtualMachineWithConfigContextStatusLabelEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v VirtualMachineWithConfigContextStatusLabel) IsValid() bool { - for _, existing := range AllowedVirtualMachineWithConfigContextStatusLabelEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to VirtualMachineWithConfigContext_status_label value -func (v VirtualMachineWithConfigContextStatusLabel) Ptr() *VirtualMachineWithConfigContextStatusLabel { - return &v -} - -type NullableVirtualMachineWithConfigContextStatusLabel struct { - value *VirtualMachineWithConfigContextStatusLabel - isSet bool -} - -func (v NullableVirtualMachineWithConfigContextStatusLabel) Get() *VirtualMachineWithConfigContextStatusLabel { - return v.value -} - -func (v *NullableVirtualMachineWithConfigContextStatusLabel) Set(val *VirtualMachineWithConfigContextStatusLabel) { - v.value = val - v.isSet = true -} - -func (v NullableVirtualMachineWithConfigContextStatusLabel) IsSet() bool { - return v.isSet -} - -func (v *NullableVirtualMachineWithConfigContextStatusLabel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVirtualMachineWithConfigContextStatusLabel(val *VirtualMachineWithConfigContextStatusLabel) *NullableVirtualMachineWithConfigContextStatusLabel { - return &NullableVirtualMachineWithConfigContextStatusLabel{value: val, isSet: true} -} - -func (v NullableVirtualMachineWithConfigContextStatusLabel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVirtualMachineWithConfigContextStatusLabel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_vlan.go b/model_vlan.go index 434660f55d..af5f3ea191 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,13 +21,28 @@ var _ MappedNullable = &VLAN{} // VLAN Adds support for custom fields and tags. type VLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` + Site NullableBriefSite `json:"site,omitempty"` + Group NullableBriefVLANGroup `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *IPRangeStatus `json:"status,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + QinqRole *VLANQinqRole `json:"qinq_role,omitempty"` + QinqSvlan NullableNestedVLAN `json:"qinq_svlan,omitempty"` + Comments *string `json:"comments,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -78,6 +94,7 @@ func (o *VLAN) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VLAN) GetUrl() string { if o == nil { @@ -102,6 +119,39 @@ func (o *VLAN) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VLAN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VLAN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VLAN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VLAN) GetDisplay() string { if o == nil { @@ -126,6 +176,91 @@ func (o *VLAN) SetDisplay(v string) { o.Display = v } + +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetSite() BriefSite { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSite + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site 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 *VLAN) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLAN) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VLAN) SetSite(v BriefSite) { + o.Site.Set(&v) +} +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLAN) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLAN) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetGroup() BriefVLANGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *VLAN) GetGroupOk() (*BriefVLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLAN) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroup and assigns it to the Group field. +func (o *VLAN) SetGroup(v BriefVLANGroup) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLAN) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLAN) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLAN) GetVid() int32 { if o == nil { @@ -150,6 +285,7 @@ func (o *VLAN) SetVid(v int32) { o.Vid = v } + // GetName returns the Name field value func (o *VLAN) GetName() string { if o == nil { @@ -174,6 +310,123 @@ func (o *VLAN) SetName(v string) { o.Name = v } + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *VLAN) GetTenantOk() (*BriefTenant, 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 *VLAN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VLAN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLAN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLAN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLAN) GetStatus() IPRangeStatus { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLAN) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatus and assigns it to the Status field. +func (o *VLAN) SetStatus(v IPRangeStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetRole() BriefRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role 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 *VLAN) GetRoleOk() (*BriefRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLAN) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *VLAN) SetRole(v BriefRole) { + o.Role.Set(&v) +} +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLAN) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLAN) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLAN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,8 +459,336 @@ func (o *VLAN) SetDescription(v string) { o.Description = &v } +// GetQinqRole returns the QinqRole field value if set, zero value otherwise. +func (o *VLAN) GetQinqRole() VLANQinqRole { + if o == nil || IsNil(o.QinqRole) { + var ret VLANQinqRole + return ret + } + return *o.QinqRole +} + +// GetQinqRoleOk returns a tuple with the QinqRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetQinqRoleOk() (*VLANQinqRole, bool) { + if o == nil || IsNil(o.QinqRole) { + return nil, false + } + return o.QinqRole, true +} + +// HasQinqRole returns a boolean if a field has been set. +func (o *VLAN) HasQinqRole() bool { + if o != nil && !IsNil(o.QinqRole) { + return true + } + + return false +} + +// SetQinqRole gets a reference to the given VLANQinqRole and assigns it to the QinqRole field. +func (o *VLAN) SetQinqRole(v VLANQinqRole) { + o.QinqRole = &v +} + +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetQinqSvlan() NestedVLAN { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret NestedVLAN + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *VLAN) GetQinqSvlanOk() (*NestedVLAN, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *VLAN) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableNestedVLAN and assigns it to the QinqSvlan field. +func (o *VLAN) SetQinqSvlan(v NestedVLAN) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *VLAN) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *VLAN) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLAN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLAN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLAN) SetComments(v string) { + o.Comments = &v +} + +// GetL2vpnTermination returns the L2vpnTermination field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination { + if o == nil || IsNil(o.L2vpnTermination.Get()) { + var ret BriefL2VPNTermination + return ret + } + return *o.L2vpnTermination.Get() +} + +// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination 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 *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { + if o == nil { + return nil, false + } + return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet() +} + +// HasL2vpnTermination returns a boolean if a field has been set. +func (o *VLAN) HasL2vpnTermination() bool { + if o != nil && o.L2vpnTermination.IsSet() { + return true + } + + return false +} + +// SetL2vpnTermination gets a reference to the given NullableBriefL2VPNTermination and assigns it to the L2vpnTermination field. +func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination) { + o.L2vpnTermination.Set(&v) +} +// SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil +func (o *VLAN) SetL2vpnTerminationNil() { + o.L2vpnTermination.Set(nil) +} + +// UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +func (o *VLAN) UnsetL2vpnTermination() { + o.L2vpnTermination.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLAN) 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 *VLAN) 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 *VLAN) 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 *VLAN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLAN) 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 *VLAN) 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 *VLAN) 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 *VLAN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *VLAN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *VLAN) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *VLAN) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VLAN) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VLAN) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VLAN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *VLAN) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *VLAN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VLAN) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VLAN) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *VLAN) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *VLAN) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *VLAN) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + func (o VLAN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -218,12 +799,57 @@ func (o VLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.QinqRole) { + toSerialize["qinq_role"] = o.QinqRole + } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.L2vpnTermination.IsSet() { + toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -244,20 +870,37 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVLAN := _VLAN{} err = json.Unmarshal(data, &varVLAN) @@ -273,10 +916,25 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "qinq_role") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "comments") + delete(additionalProperties, "l2vpn_termination") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } @@ -318,3 +976,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 4ec3a49910..048fa656f6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the VLANGroup type satisfies the MappedNullable interface at compile time @@ -21,25 +21,22 @@ 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"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - Scope 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 int64 `json:"vlan_count"` - Utilization string `json:"utilization"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` + Utilization string `json:"utilization"` AdditionalProperties map[string]interface{} } @@ -49,17 +46,13 @@ type _VLANGroup VLANGroup // 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 NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { +func NewVLANGroup(id int32, url string, display string, name string, slug string, utilization string) *VLANGroup { this := VLANGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.Scope = scope - this.Created = created - this.LastUpdated = lastUpdated - this.VlanCount = vlanCount this.Utilization = utilization return &this } @@ -96,6 +89,7 @@ func (o *VLANGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VLANGroup) GetUrl() string { if o == nil { @@ -120,6 +114,39 @@ func (o *VLANGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VLANGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VLANGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VLANGroup) GetDisplay() string { if o == nil { @@ -144,6 +171,7 @@ func (o *VLANGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *VLANGroup) GetName() string { if o == nil { @@ -168,6 +196,7 @@ func (o *VLANGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *VLANGroup) GetSlug() string { if o == nil { @@ -192,6 +221,7 @@ func (o *VLANGroup) SetSlug(v string) { o.Slug = v } + // GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VLANGroup) GetScopeType() string { if o == nil || IsNil(o.ScopeType.Get()) { @@ -224,7 +254,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) @@ -267,7 +296,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) @@ -278,18 +306,16 @@ func (o *VLANGroup) UnsetScopeId() { o.ScopeId.Unset() } -// GetScope returns the Scope field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VLANGroup) GetScope() interface{} { if o == nil { var ret interface{} return ret } - return o.Scope } -// GetScopeOk returns a tuple with the Scope field value +// GetScopeOk returns a tuple with the Scope 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 *VLANGroup) GetScopeOk() (*interface{}, bool) { @@ -299,73 +325,18 @@ func (o *VLANGroup) GetScopeOk() (*interface{}, bool) { return &o.Scope, true } -// SetScope sets field value -func (o *VLANGroup) SetScope(v interface{}) { - o.Scope = v -} - -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { +// HasScope returns a boolean if a field has been set. +func (o *VLANGroup) HasScope() bool { + if o != nil && !IsNil(o.Scope) { return true } return false } -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroup) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroup) SetMaxVid(v int32) { - o.MaxVid = &v +// SetScope gets a reference to the given interface{} and assigns it to the Scope field. +func (o *VLANGroup) SetScope(v interface{}) { + o.Scope = v } // GetDescription returns the Description field value if set, zero value otherwise. @@ -464,18 +435,16 @@ func (o *VLANGroup) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VLANGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *VLANGroup) GetCreatedOk() (*time.Time, bool) { @@ -485,23 +454,39 @@ func (o *VLANGroup) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *VLANGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *VLANGroup) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VLANGroup) SetCreatedNil() { + o.Created.Set(nil) +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VLANGroup) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VLANGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VLANGroup) GetLastUpdatedOk() (*time.Time, bool) { @@ -511,33 +496,59 @@ func (o *VLANGroup) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *VLANGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *VLANGroup) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VLANGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VLANGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} -// GetVlanCount returns the VlanCount field value +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. func (o *VLANGroup) GetVlanCount() int64 { - if o == nil { + if o == nil || IsNil(o.VlanCount) { var ret int64 return ret } - - return o.VlanCount + return *o.VlanCount } -// GetVlanCountOk returns a tuple with the VlanCount field value +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VLANGroup) GetVlanCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VlanCount) { return nil, false } - return &o.VlanCount, true + return o.VlanCount, true } -// SetVlanCount sets field value +// HasVlanCount returns a boolean if a field has been set. +func (o *VLANGroup) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. func (o *VLANGroup) SetVlanCount(v int64) { - o.VlanCount = v + o.VlanCount = &v } // GetUtilization returns the Utilization field value @@ -564,8 +575,9 @@ func (o *VLANGroup) SetUtilization(v string) { o.Utilization = v } + func (o VLANGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -576,6 +588,9 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -588,12 +603,6 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { if o.Scope != nil { toSerialize["scope"] = o.Scope } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -603,9 +612,15 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["vlan_count"] = o.VlanCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } toSerialize["utilization"] = o.Utilization for key, value := range o.AdditionalProperties { @@ -625,27 +640,40 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "scope", - "created", - "last_updated", - "vlan_count", "utilization", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVLANGroup := _VLANGroup{} err = json.Unmarshal(data, &varVLANGroup) @@ -661,14 +689,13 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") delete(additionalProperties, "scope") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -717,3 +744,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 fb2c9e458a..a897cea00e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,13 @@ 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` ScopeType NullableString `json:"scope_type,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"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,6 +75,7 @@ func (o *VLANGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *VLANGroupRequest) GetSlug() string { if o == nil { @@ -103,6 +100,7 @@ func (o *VLANGroupRequest) SetSlug(v string) { o.Slug = v } + // GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VLANGroupRequest) GetScopeType() string { if o == nil || IsNil(o.ScopeType.Get()) { @@ -135,7 +133,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) @@ -178,7 +175,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) @@ -189,70 +185,6 @@ func (o *VLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -350,7 +282,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 } @@ -367,12 +299,6 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -399,20 +325,37 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVLANGroupRequest := _VLANGroupRequest{} err = json.Unmarshal(data, &varVLANGroupRequest) @@ -430,8 +373,6 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -476,3 +417,5 @@ func (v *NullableVLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vlan_qinq_role.go b/model_vlan_qinq_role.go new file mode 100644 index 0000000000..8fc9b6b532 --- /dev/null +++ b/model_vlan_qinq_role.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the VLANQinqRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VLANQinqRole{} + +// VLANQinqRole struct for VLANQinqRole +type VLANQinqRole struct { + Value *VLANQinqRoleValue `json:"value,omitempty"` + Label *VLANQinqRoleLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VLANQinqRole VLANQinqRole + +// NewVLANQinqRole instantiates a new VLANQinqRole 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 NewVLANQinqRole() *VLANQinqRole { + this := VLANQinqRole{} + return &this +} + +// NewVLANQinqRoleWithDefaults instantiates a new VLANQinqRole 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 NewVLANQinqRoleWithDefaults() *VLANQinqRole { + this := VLANQinqRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *VLANQinqRole) GetValue() VLANQinqRoleValue { + if o == nil || IsNil(o.Value) { + var ret VLANQinqRoleValue + 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 *VLANQinqRole) GetValueOk() (*VLANQinqRoleValue, 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 *VLANQinqRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given VLANQinqRoleValue and assigns it to the Value field. +func (o *VLANQinqRole) SetValue(v VLANQinqRoleValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *VLANQinqRole) GetLabel() VLANQinqRoleLabel { + if o == nil || IsNil(o.Label) { + var ret VLANQinqRoleLabel + 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 *VLANQinqRole) GetLabelOk() (*VLANQinqRoleLabel, 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 *VLANQinqRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given VLANQinqRoleLabel and assigns it to the Label field. +func (o *VLANQinqRole) SetLabel(v VLANQinqRoleLabel) { + o.Label = &v +} + +func (o VLANQinqRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VLANQinqRole) 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 *VLANQinqRole) UnmarshalJSON(data []byte) (err error) { + varVLANQinqRole := _VLANQinqRole{} + + err = json.Unmarshal(data, &varVLANQinqRole) + + if err != nil { + return err + } + + *o = VLANQinqRole(varVLANQinqRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVLANQinqRole struct { + value *VLANQinqRole + isSet bool +} + +func (v NullableVLANQinqRole) Get() *VLANQinqRole { + return v.value +} + +func (v *NullableVLANQinqRole) Set(val *VLANQinqRole) { + v.value = val + v.isSet = true +} + +func (v NullableVLANQinqRole) IsSet() bool { + return v.isSet +} + +func (v *NullableVLANQinqRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVLANQinqRole(val *VLANQinqRole) *NullableVLANQinqRole { + return &NullableVLANQinqRole{value: val, isSet: true} +} + +func (v NullableVLANQinqRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVLANQinqRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_vlan_qinq_role_label.go b/model_vlan_qinq_role_label.go new file mode 100644 index 0000000000..74b23aada1 --- /dev/null +++ b/model_vlan_qinq_role_label.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VLANQinqRoleLabel the model 'VLANQinqRoleLabel' +type VLANQinqRoleLabel string + +// List of VLAN_qinq_role_label +const ( + VLANQINQROLELABEL_SERVICE VLANQinqRoleLabel = "Service" + VLANQINQROLELABEL_CUSTOMER VLANQinqRoleLabel = "Customer" +) + +// All allowed values of VLANQinqRoleLabel enum +var AllowedVLANQinqRoleLabelEnumValues = []VLANQinqRoleLabel{ + "Service", + "Customer", +} + +func (v *VLANQinqRoleLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VLANQinqRoleLabel(value) + for _, existing := range AllowedVLANQinqRoleLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VLANQinqRoleLabel", value) +} + +// NewVLANQinqRoleLabelFromValue returns a pointer to a valid VLANQinqRoleLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVLANQinqRoleLabelFromValue(v string) (*VLANQinqRoleLabel, error) { + ev := VLANQinqRoleLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VLANQinqRoleLabel: valid values are %v", v, AllowedVLANQinqRoleLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VLANQinqRoleLabel) IsValid() bool { + for _, existing := range AllowedVLANQinqRoleLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to VLAN_qinq_role_label value +func (v VLANQinqRoleLabel) Ptr() *VLANQinqRoleLabel { + return &v +} + +type NullableVLANQinqRoleLabel struct { + value *VLANQinqRoleLabel + isSet bool +} + +func (v NullableVLANQinqRoleLabel) Get() *VLANQinqRoleLabel { + return v.value +} + +func (v *NullableVLANQinqRoleLabel) Set(val *VLANQinqRoleLabel) { + v.value = val + v.isSet = true +} + +func (v NullableVLANQinqRoleLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableVLANQinqRoleLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVLANQinqRoleLabel(val *VLANQinqRoleLabel) *NullableVLANQinqRoleLabel { + return &NullableVLANQinqRoleLabel{value: val, isSet: true} +} + +func (v NullableVLANQinqRoleLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVLANQinqRoleLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vlan_qinq_role_value.go b/model_vlan_qinq_role_value.go new file mode 100644 index 0000000000..7e369ad6f0 --- /dev/null +++ b/model_vlan_qinq_role_value.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VLANQinqRoleValue * `svlan` - Service * `cvlan` - Customer +type VLANQinqRoleValue string + +// List of VLAN_qinq_role_value +const ( + VLANQINQROLEVALUE_SVLAN VLANQinqRoleValue = "svlan" + VLANQINQROLEVALUE_CVLAN VLANQinqRoleValue = "cvlan" +) + +// All allowed values of VLANQinqRoleValue enum +var AllowedVLANQinqRoleValueEnumValues = []VLANQinqRoleValue{ + "svlan", + "cvlan", +} + +func (v *VLANQinqRoleValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VLANQinqRoleValue(value) + for _, existing := range AllowedVLANQinqRoleValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VLANQinqRoleValue", value) +} + +// NewVLANQinqRoleValueFromValue returns a pointer to a valid VLANQinqRoleValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVLANQinqRoleValueFromValue(v string) (*VLANQinqRoleValue, error) { + ev := VLANQinqRoleValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VLANQinqRoleValue: valid values are %v", v, AllowedVLANQinqRoleValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VLANQinqRoleValue) IsValid() bool { + for _, existing := range AllowedVLANQinqRoleValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to VLAN_qinq_role_value value +func (v VLANQinqRoleValue) Ptr() *VLANQinqRoleValue { + return &v +} + +type NullableVLANQinqRoleValue struct { + value *VLANQinqRoleValue + isSet bool +} + +func (v NullableVLANQinqRoleValue) Get() *VLANQinqRoleValue { + return v.value +} + +func (v *NullableVLANQinqRoleValue) Set(val *VLANQinqRoleValue) { + v.value = val + v.isSet = true +} + +func (v NullableVLANQinqRoleValue) IsSet() bool { + return v.isSet +} + +func (v *NullableVLANQinqRoleValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVLANQinqRoleValue(val *VLANQinqRoleValue) *NullableVLANQinqRoleValue { + return &NullableVLANQinqRoleValue{value: val, isSet: true} +} + +func (v NullableVLANQinqRoleValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVLANQinqRoleValue) 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 af65d4166c..328dc453ad 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,20 @@ var _ MappedNullable = &VLANRequest{} // VLANRequest Adds support for custom fields and tags. type VLANRequest struct { + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + QinqRole *VLANQinqRoleValue `json:"qinq_role,omitempty"` + QinqSvlan NullableNestedVLANRequest `json:"qinq_svlan,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,6 +58,90 @@ func NewVLANRequestWithDefaults() *VLANRequest { return &this } +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetSite() BriefSiteRequest { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSiteRequest + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site 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 *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLANRequest) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VLANRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLANRequest) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLANRequest) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetGroup() BriefVLANGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group 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 *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLANRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest) { + o.Group.Set(&v) +} +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLANRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLANRequest) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLANRequest) GetVid() int32 { if o == nil { @@ -72,6 +166,7 @@ func (o *VLANRequest) SetVid(v int32) { o.Vid = v } + // GetName returns the Name field value func (o *VLANRequest) GetName() string { if o == nil { @@ -96,6 +191,123 @@ func (o *VLANRequest) SetName(v string) { o.Name = v } + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *VLANRequest) GetTenantOk() (*BriefTenantRequest, 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 *VLANRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VLANRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLANRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLANRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLANRequest) GetStatus() IPRangeStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLANRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatusValue and assigns it to the Status field. +func (o *VLANRequest) SetStatus(v IPRangeStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetRole() BriefRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role 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 *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLANRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *VLANRequest) SetRole(v BriefRoleRequest) { + o.Role.Set(&v) +} +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLANRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLANRequest) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,8 +340,178 @@ func (o *VLANRequest) SetDescription(v string) { o.Description = &v } +// GetQinqRole returns the QinqRole field value if set, zero value otherwise. +func (o *VLANRequest) GetQinqRole() VLANQinqRoleValue { + if o == nil || IsNil(o.QinqRole) { + var ret VLANQinqRoleValue + return ret + } + return *o.QinqRole +} + +// GetQinqRoleOk returns a tuple with the QinqRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetQinqRoleOk() (*VLANQinqRoleValue, bool) { + if o == nil || IsNil(o.QinqRole) { + return nil, false + } + return o.QinqRole, true +} + +// HasQinqRole returns a boolean if a field has been set. +func (o *VLANRequest) HasQinqRole() bool { + if o != nil && !IsNil(o.QinqRole) { + return true + } + + return false +} + +// SetQinqRole gets a reference to the given VLANQinqRoleValue and assigns it to the QinqRole field. +func (o *VLANRequest) SetQinqRole(v VLANQinqRoleValue) { + o.QinqRole = &v +} + +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetQinqSvlan() NestedVLANRequest { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret NestedVLANRequest + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *VLANRequest) GetQinqSvlanOk() (*NestedVLANRequest, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *VLANRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableNestedVLANRequest and assigns it to the QinqSvlan field. +func (o *VLANRequest) SetQinqSvlan(v NestedVLANRequest) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *VLANRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *VLANRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLANRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLANRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLANRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLANRequest) 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 *VLANRequest) 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 *VLANRequest) 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 *VLANRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLANRequest) 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 *VLANRequest) 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 *VLANRequest) 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 *VLANRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -138,11 +520,41 @@ func (o VLANRequest) MarshalJSON() ([]byte, error) { func (o VLANRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.QinqRole) { + toSerialize["qinq_role"] = o.QinqRole + } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -160,20 +572,37 @@ func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVLANRequest := _VLANRequest{} err = json.Unmarshal(data, &varVLANRequest) @@ -187,9 +616,19 @@ func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "qinq_role") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -231,3 +670,5 @@ func (v *NullableVLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vlan_translation_policy.go b/model_vlan_translation_policy.go new file mode 100644 index 0000000000..5e12cffe75 --- /dev/null +++ b/model_vlan_translation_policy.go @@ -0,0 +1,343 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the VLANTranslationPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VLANTranslationPolicy{} + +// VLANTranslationPolicy Adds support for custom fields and tags. +type VLANTranslationPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Rules []VLANTranslationRule `json:"rules"` + AdditionalProperties map[string]interface{} +} + +type _VLANTranslationPolicy VLANTranslationPolicy + +// NewVLANTranslationPolicy instantiates a new VLANTranslationPolicy 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 NewVLANTranslationPolicy(id int32, url string, display string, name string, rules []VLANTranslationRule) *VLANTranslationPolicy { + this := VLANTranslationPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Rules = rules + return &this +} + +// NewVLANTranslationPolicyWithDefaults instantiates a new VLANTranslationPolicy 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 NewVLANTranslationPolicyWithDefaults() *VLANTranslationPolicy { + this := VLANTranslationPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VLANTranslationPolicy) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *VLANTranslationPolicy) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *VLANTranslationPolicy) SetDisplay(v string) { + o.Display = v +} + + +// GetName returns the Name field value +func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *VLANTranslationPolicy) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VLANTranslationPolicy) 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 *VLANTranslationPolicy) 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 *VLANTranslationPolicy) 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 *VLANTranslationPolicy) SetDescription(v string) { + o.Description = &v +} + +// GetRules returns the Rules field value +func (o *VLANTranslationPolicy) GetRules() []VLANTranslationRule { + if o == nil { + var ret []VLANTranslationRule + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +func (o *VLANTranslationPolicy) GetRulesOk() ([]VLANTranslationRule, bool) { + if o == nil { + return nil, false + } + return o.Rules, true +} + +// SetRules sets field value +func (o *VLANTranslationPolicy) SetRules(v []VLANTranslationRule) { + o.Rules = v +} + + +func (o VLANTranslationPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VLANTranslationPolicy) 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 + } + toSerialize["rules"] = o.Rules + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VLANTranslationPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "rules", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVLANTranslationPolicy := _VLANTranslationPolicy{} + + err = json.Unmarshal(data, &varVLANTranslationPolicy) + + if err != nil { + return err + } + + *o = VLANTranslationPolicy(varVLANTranslationPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "rules") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVLANTranslationPolicy struct { + value *VLANTranslationPolicy + isSet bool +} + +func (v NullableVLANTranslationPolicy) Get() *VLANTranslationPolicy { + return v.value +} + +func (v *NullableVLANTranslationPolicy) Set(val *VLANTranslationPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableVLANTranslationPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableVLANTranslationPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVLANTranslationPolicy(val *VLANTranslationPolicy) *NullableVLANTranslationPolicy { + return &NullableVLANTranslationPolicy{value: val, isSet: true} +} + +func (v NullableVLANTranslationPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVLANTranslationPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_vlan_translation_policy_request.go b/model_vlan_translation_policy_request.go new file mode 100644 index 0000000000..538f30a211 --- /dev/null +++ b/model_vlan_translation_policy_request.go @@ -0,0 +1,223 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the VLANTranslationPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VLANTranslationPolicyRequest{} + +// VLANTranslationPolicyRequest Adds support for custom fields and tags. +type VLANTranslationPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VLANTranslationPolicyRequest VLANTranslationPolicyRequest + +// NewVLANTranslationPolicyRequest instantiates a new VLANTranslationPolicyRequest 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 NewVLANTranslationPolicyRequest(name string) *VLANTranslationPolicyRequest { + this := VLANTranslationPolicyRequest{} + this.Name = name + return &this +} + +// NewVLANTranslationPolicyRequestWithDefaults instantiates a new VLANTranslationPolicyRequest 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 NewVLANTranslationPolicyRequestWithDefaults() *VLANTranslationPolicyRequest { + this := VLANTranslationPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *VLANTranslationPolicyRequest) 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 *VLANTranslationPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *VLANTranslationPolicyRequest) SetName(v string) { + o.Name = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VLANTranslationPolicyRequest) 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 *VLANTranslationPolicyRequest) 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 *VLANTranslationPolicyRequest) 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 *VLANTranslationPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o VLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VLANTranslationPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VLANTranslationPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVLANTranslationPolicyRequest := _VLANTranslationPolicyRequest{} + + err = json.Unmarshal(data, &varVLANTranslationPolicyRequest) + + if err != nil { + return err + } + + *o = VLANTranslationPolicyRequest(varVLANTranslationPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVLANTranslationPolicyRequest struct { + value *VLANTranslationPolicyRequest + isSet bool +} + +func (v NullableVLANTranslationPolicyRequest) Get() *VLANTranslationPolicyRequest { + return v.value +} + +func (v *NullableVLANTranslationPolicyRequest) Set(val *VLANTranslationPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVLANTranslationPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVLANTranslationPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVLANTranslationPolicyRequest(val *VLANTranslationPolicyRequest) *NullableVLANTranslationPolicyRequest { + return &NullableVLANTranslationPolicyRequest{value: val, isSet: true} +} + +func (v NullableVLANTranslationPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVLANTranslationPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_vlan_translation_rule.go b/model_vlan_translation_rule.go new file mode 100644 index 0000000000..216fb6e38e --- /dev/null +++ b/model_vlan_translation_rule.go @@ -0,0 +1,375 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the VLANTranslationRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VLANTranslationRule{} + +// VLANTranslationRule Adds support for custom fields and tags. +type VLANTranslationRule struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Policy int32 `json:"policy"` + // Numeric VLAN ID (1-4094) + LocalVid int32 `json:"local_vid"` + // Numeric VLAN ID (1-4094) + RemoteVid int32 `json:"remote_vid"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VLANTranslationRule VLANTranslationRule + +// NewVLANTranslationRule instantiates a new VLANTranslationRule 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 NewVLANTranslationRule(id int32, url string, display string, policy int32, localVid int32, remoteVid int32) *VLANTranslationRule { + this := VLANTranslationRule{} + this.Id = id + this.Url = url + this.Display = display + this.Policy = policy + this.LocalVid = localVid + this.RemoteVid = remoteVid + return &this +} + +// NewVLANTranslationRuleWithDefaults instantiates a new VLANTranslationRule 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 NewVLANTranslationRuleWithDefaults() *VLANTranslationRule { + this := VLANTranslationRule{} + return &this +} + +// GetId returns the Id field value +func (o *VLANTranslationRule) 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 *VLANTranslationRule) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VLANTranslationRule) SetId(v int32) { + o.Id = v +} + + +// GetUrl returns the Url field value +func (o *VLANTranslationRule) 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 *VLANTranslationRule) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *VLANTranslationRule) SetUrl(v string) { + o.Url = v +} + + +// GetDisplay returns the Display field value +func (o *VLANTranslationRule) 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 *VLANTranslationRule) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *VLANTranslationRule) SetDisplay(v string) { + o.Display = v +} + + +// GetPolicy returns the Policy field value +func (o *VLANTranslationRule) GetPolicy() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Policy +} + +// GetPolicyOk returns a tuple with the Policy field value +// and a boolean to check if the value has been set. +func (o *VLANTranslationRule) GetPolicyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Policy, true +} + +// SetPolicy sets field value +func (o *VLANTranslationRule) SetPolicy(v int32) { + o.Policy = v +} + + +// GetLocalVid returns the LocalVid field value +func (o *VLANTranslationRule) GetLocalVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LocalVid +} + +// GetLocalVidOk returns a tuple with the LocalVid field value +// and a boolean to check if the value has been set. +func (o *VLANTranslationRule) GetLocalVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LocalVid, true +} + +// SetLocalVid sets field value +func (o *VLANTranslationRule) SetLocalVid(v int32) { + o.LocalVid = v +} + + +// GetRemoteVid returns the RemoteVid field value +func (o *VLANTranslationRule) GetRemoteVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RemoteVid +} + +// GetRemoteVidOk returns a tuple with the RemoteVid field value +// and a boolean to check if the value has been set. +func (o *VLANTranslationRule) GetRemoteVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RemoteVid, true +} + +// SetRemoteVid sets field value +func (o *VLANTranslationRule) SetRemoteVid(v int32) { + o.RemoteVid = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VLANTranslationRule) 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 *VLANTranslationRule) 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 *VLANTranslationRule) 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 *VLANTranslationRule) SetDescription(v string) { + o.Description = &v +} + +func (o VLANTranslationRule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VLANTranslationRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["policy"] = o.Policy + toSerialize["local_vid"] = o.LocalVid + toSerialize["remote_vid"] = o.RemoteVid + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VLANTranslationRule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "policy", + "local_vid", + "remote_vid", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVLANTranslationRule := _VLANTranslationRule{} + + err = json.Unmarshal(data, &varVLANTranslationRule) + + if err != nil { + return err + } + + *o = VLANTranslationRule(varVLANTranslationRule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "policy") + delete(additionalProperties, "local_vid") + delete(additionalProperties, "remote_vid") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVLANTranslationRule struct { + value *VLANTranslationRule + isSet bool +} + +func (v NullableVLANTranslationRule) Get() *VLANTranslationRule { + return v.value +} + +func (v *NullableVLANTranslationRule) Set(val *VLANTranslationRule) { + v.value = val + v.isSet = true +} + +func (v NullableVLANTranslationRule) IsSet() bool { + return v.isSet +} + +func (v *NullableVLANTranslationRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVLANTranslationRule(val *VLANTranslationRule) *NullableVLANTranslationRule { + return &NullableVLANTranslationRule{value: val, isSet: true} +} + +func (v NullableVLANTranslationRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVLANTranslationRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_vlan_translation_rule_request.go b/model_vlan_translation_rule_request.go new file mode 100644 index 0000000000..b822a9cabb --- /dev/null +++ b/model_vlan_translation_rule_request.go @@ -0,0 +1,285 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the VLANTranslationRuleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VLANTranslationRuleRequest{} + +// VLANTranslationRuleRequest Adds support for custom fields and tags. +type VLANTranslationRuleRequest struct { + Policy int32 `json:"policy"` + // Numeric VLAN ID (1-4094) + LocalVid int32 `json:"local_vid"` + // Numeric VLAN ID (1-4094) + RemoteVid int32 `json:"remote_vid"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VLANTranslationRuleRequest VLANTranslationRuleRequest + +// NewVLANTranslationRuleRequest instantiates a new VLANTranslationRuleRequest 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 NewVLANTranslationRuleRequest(policy int32, localVid int32, remoteVid int32) *VLANTranslationRuleRequest { + this := VLANTranslationRuleRequest{} + this.Policy = policy + this.LocalVid = localVid + this.RemoteVid = remoteVid + return &this +} + +// NewVLANTranslationRuleRequestWithDefaults instantiates a new VLANTranslationRuleRequest 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 NewVLANTranslationRuleRequestWithDefaults() *VLANTranslationRuleRequest { + this := VLANTranslationRuleRequest{} + return &this +} + +// GetPolicy returns the Policy field value +func (o *VLANTranslationRuleRequest) GetPolicy() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Policy +} + +// GetPolicyOk returns a tuple with the Policy field value +// and a boolean to check if the value has been set. +func (o *VLANTranslationRuleRequest) GetPolicyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Policy, true +} + +// SetPolicy sets field value +func (o *VLANTranslationRuleRequest) SetPolicy(v int32) { + o.Policy = v +} + + +// GetLocalVid returns the LocalVid field value +func (o *VLANTranslationRuleRequest) GetLocalVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.LocalVid +} + +// GetLocalVidOk returns a tuple with the LocalVid field value +// and a boolean to check if the value has been set. +func (o *VLANTranslationRuleRequest) GetLocalVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.LocalVid, true +} + +// SetLocalVid sets field value +func (o *VLANTranslationRuleRequest) SetLocalVid(v int32) { + o.LocalVid = v +} + + +// GetRemoteVid returns the RemoteVid field value +func (o *VLANTranslationRuleRequest) GetRemoteVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RemoteVid +} + +// GetRemoteVidOk returns a tuple with the RemoteVid field value +// and a boolean to check if the value has been set. +func (o *VLANTranslationRuleRequest) GetRemoteVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RemoteVid, true +} + +// SetRemoteVid sets field value +func (o *VLANTranslationRuleRequest) SetRemoteVid(v int32) { + o.RemoteVid = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *VLANTranslationRuleRequest) 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 *VLANTranslationRuleRequest) 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 *VLANTranslationRuleRequest) 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 *VLANTranslationRuleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o VLANTranslationRuleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VLANTranslationRuleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["policy"] = o.Policy + toSerialize["local_vid"] = o.LocalVid + toSerialize["remote_vid"] = o.RemoteVid + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VLANTranslationRuleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "policy", + "local_vid", + "remote_vid", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varVLANTranslationRuleRequest := _VLANTranslationRuleRequest{} + + err = json.Unmarshal(data, &varVLANTranslationRuleRequest) + + if err != nil { + return err + } + + *o = VLANTranslationRuleRequest(varVLANTranslationRuleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "policy") + delete(additionalProperties, "local_vid") + delete(additionalProperties, "remote_vid") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVLANTranslationRuleRequest struct { + value *VLANTranslationRuleRequest + isSet bool +} + +func (v NullableVLANTranslationRuleRequest) Get() *VLANTranslationRuleRequest { + return v.value +} + +func (v *NullableVLANTranslationRuleRequest) Set(val *VLANTranslationRuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVLANTranslationRuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVLANTranslationRuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVLANTranslationRuleRequest(val *VLANTranslationRuleRequest) *NullableVLANTranslationRuleRequest { + return &NullableVLANTranslationRuleRequest{value: val, isSet: true} +} + +func (v NullableVLANTranslationRuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVLANTranslationRuleRequest) 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 ebe068fef1..c164e51977 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the VMInterface type satisfies the MappedNullable interface at compile time @@ -21,28 +21,33 @@ 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 VirtualMachine `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 NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + VirtualMachine BriefVirtualMachine `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"` + PrimaryMacAddress NullableBriefMACAddress `json:"primary_mac_address,omitempty"` + MacAddresses []BriefMACAddress `json:"mac_addresses,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceMode `json:"mode,omitempty"` + UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLAN `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicy `json:"vlan_translation_policy,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` AdditionalProperties map[string]interface{} } @@ -52,16 +57,13 @@ type _VMInterface VMInterface // 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 NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { +func NewVMInterface(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, countIpaddresses int32, countFhrpGroups int32) *VMInterface { this := VMInterface{} this.Id = id this.Url = url this.Display = display this.VirtualMachine = virtualMachine this.Name = name - this.L2vpnTermination = l2vpnTermination - this.Created = created - this.LastUpdated = lastUpdated this.CountIpaddresses = countIpaddresses this.CountFhrpGroups = countFhrpGroups return &this @@ -99,6 +101,7 @@ func (o *VMInterface) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VMInterface) GetUrl() string { if o == nil { @@ -123,6 +126,39 @@ func (o *VMInterface) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VMInterface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VMInterface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VMInterface) GetDisplay() string { if o == nil { @@ -147,10 +183,11 @@ func (o *VMInterface) SetDisplay(v string) { o.Display = v } + // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterface) GetVirtualMachine() VirtualMachine { +func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -159,7 +196,7 @@ func (o *VMInterface) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -167,10 +204,11 @@ func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VMInterface) SetVirtualMachine(v VirtualMachine) { +func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } + // GetName returns the Name field value func (o *VMInterface) GetName() string { if o == nil { @@ -195,6 +233,7 @@ func (o *VMInterface) SetName(v string) { o.Name = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VMInterface) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -259,7 +298,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) @@ -302,7 +340,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) @@ -345,7 +382,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) @@ -388,7 +424,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) @@ -399,6 +434,81 @@ func (o *VMInterface) UnsetMacAddress() { o.MacAddress.Unset() } +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterface) GetPrimaryMacAddress() BriefMACAddress { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddress + return ret + } + return *o.PrimaryMacAddress.Get() +} + +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *VMInterface) GetPrimaryMacAddressOk() (*BriefMACAddress, bool) { + if o == nil { + return nil, false + } + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() +} + +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *VMInterface) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { + return true + } + + return false +} + +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddress and assigns it to the PrimaryMacAddress field. +func (o *VMInterface) SetPrimaryMacAddress(v BriefMACAddress) { + o.PrimaryMacAddress.Set(&v) +} +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *VMInterface) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) +} + +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *VMInterface) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() +} + +// GetMacAddresses returns the MacAddresses field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterface) GetMacAddresses() []BriefMACAddress { + if o == nil { + var ret []BriefMACAddress + return ret + } + return o.MacAddresses +} + +// GetMacAddressesOk returns a tuple with the MacAddresses 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 *VMInterface) GetMacAddressesOk() ([]BriefMACAddress, bool) { + if o == nil || IsNil(o.MacAddresses) { + return nil, false + } + return o.MacAddresses, true +} + +// HasMacAddresses returns a boolean if a field has been set. +func (o *VMInterface) HasMacAddresses() bool { + if o != nil && !IsNil(o.MacAddresses) { + return true + } + + return false +} + +// SetMacAddresses gets a reference to the given []BriefMACAddress and assigns it to the MacAddresses field. +func (o *VMInterface) SetMacAddresses(v []BriefMACAddress) { + o.MacAddresses = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VMInterface) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -464,9 +574,9 @@ func (o *VMInterface) SetMode(v InterfaceMode) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetUntaggedVlan() VLAN { +func (o *VMInterface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -475,7 +585,7 @@ func (o *VMInterface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *VMInterface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -491,11 +601,10 @@ func (o *VMInterface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *VMInterface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *VMInterface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *VMInterface) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -538,10 +647,94 @@ func (o *VMInterface) SetTaggedVlans(v []VLAN) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterface) GetQinqSvlan() BriefVLAN { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLAN + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *VMInterface) GetQinqSvlanOk() (*BriefVLAN, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *VMInterface) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLAN and assigns it to the QinqSvlan field. +func (o *VMInterface) SetQinqSvlan(v BriefVLAN) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *VMInterface) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *VMInterface) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterface) GetVlanTranslationPolicy() BriefVLANTranslationPolicy { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicy + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *VMInterface) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicy, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *VMInterface) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicy and assigns it to the VlanTranslationPolicy field. +func (o *VMInterface) SetVlanTranslationPolicy(v BriefVLANTranslationPolicy) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *VMInterface) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *VMInterface) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetVrf() VRF { +func (o *VMInterface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -550,7 +743,7 @@ func (o *VMInterface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf 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 *VMInterface) GetVrfOk() (*VRF, bool) { +func (o *VMInterface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -566,11 +759,10 @@ func (o *VMInterface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *VMInterface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *VMInterface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *VMInterface) SetVrfNil() { o.Vrf.Set(nil) @@ -581,31 +773,47 @@ func (o *VMInterface) UnsetVrf() { o.Vrf.Unset() } -// GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { - if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination +// GetL2vpnTermination returns the L2vpnTermination field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination { + if o == nil || IsNil(o.L2vpnTermination.Get()) { + var ret BriefL2VPNTermination return ret } - return *o.L2vpnTermination.Get() } -// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value +// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination 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 *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet() } -// SetL2vpnTermination sets field value -func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination) { +// HasL2vpnTermination returns a boolean if a field has been set. +func (o *VMInterface) HasL2vpnTermination() bool { + if o != nil && o.L2vpnTermination.IsSet() { + return true + } + + return false +} + +// SetL2vpnTermination gets a reference to the given NullableBriefL2VPNTermination and assigns it to the L2vpnTermination field. +func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } +// SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil +func (o *VMInterface) SetL2vpnTerminationNil() { + o.L2vpnTermination.Set(nil) +} + +// UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +func (o *VMInterface) UnsetL2vpnTermination() { + o.L2vpnTermination.Unset() +} // GetTags returns the Tags field value if set, zero value otherwise. func (o *VMInterface) GetTags() []NestedTag { @@ -671,18 +879,16 @@ func (o *VMInterface) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VMInterface) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *VMInterface) GetCreatedOk() (*time.Time, bool) { @@ -692,23 +898,39 @@ func (o *VMInterface) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *VMInterface) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *VMInterface) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VMInterface) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VMInterface) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VMInterface) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VMInterface) GetLastUpdatedOk() (*time.Time, bool) { @@ -718,10 +940,28 @@ func (o *VMInterface) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *VMInterface) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *VMInterface) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VMInterface) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VMInterface) UnsetLastUpdated() { + o.LastUpdated.Unset() +} // GetCountIpaddresses returns the CountIpaddresses field value func (o *VMInterface) GetCountIpaddresses() int32 { @@ -747,6 +987,7 @@ func (o *VMInterface) SetCountIpaddresses(v int32) { o.CountIpaddresses = v } + // GetCountFhrpGroups returns the CountFhrpGroups field value func (o *VMInterface) GetCountFhrpGroups() int32 { if o == nil { @@ -771,8 +1012,9 @@ func (o *VMInterface) SetCountFhrpGroups(v int32) { o.CountFhrpGroups = v } + func (o VMInterface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -783,6 +1025,9 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -801,6 +1046,12 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { if o.MacAddress.IsSet() { toSerialize["mac_address"] = o.MacAddress.Get() } + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() + } + if o.MacAddresses != nil { + toSerialize["mac_addresses"] = o.MacAddresses + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -813,18 +1064,30 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } - toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() + if o.L2vpnTermination.IsSet() { + toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() + } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["count_ipaddresses"] = o.CountIpaddresses toSerialize["count_fhrp_groups"] = o.CountFhrpGroups @@ -845,27 +1108,41 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { "display", "virtual_machine", "name", - "l2vpn_termination", - "created", - "last_updated", "count_ipaddresses", "count_fhrp_groups", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVMInterface := _VMInterface{} err = json.Unmarshal(data, &varVMInterface) @@ -881,6 +1158,7 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") @@ -889,10 +1167,14 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "bridge") delete(additionalProperties, "mtu") delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") + delete(additionalProperties, "mac_addresses") delete(additionalProperties, "description") delete(additionalProperties, "mode") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "vrf") delete(additionalProperties, "l2vpn_termination") delete(additionalProperties, "tags") @@ -942,3 +1224,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 17f56f8698..00e63a9543 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,22 @@ var _ MappedNullable = &VMInterfaceRequest{} // VMInterfaceRequest Adds support for custom fields and tags. type VMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `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"` - Mode *InterfaceModeValue `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine BriefVirtualMachineRequest `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"` + PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceModeValue `json:"mode,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +45,7 @@ type _VMInterfaceRequest VMInterfaceRequest // 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 NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *VMInterfaceRequest { +func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *VMInterfaceRequest { this := VMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +61,9 @@ func NewVMInterfaceRequestWithDefaults() *VMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +72,7 @@ func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,10 +80,11 @@ func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } + // GetName returns the Name field value func (o *VMInterfaceRequest) GetName() string { if o == nil { @@ -106,6 +109,7 @@ func (o *VMInterfaceRequest) SetName(v string) { o.Name = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *VMInterfaceRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -170,7 +174,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 +216,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 +258,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) @@ -267,47 +268,46 @@ func (o *VMInterfaceRequest) UnsetMtu() { o.Mtu.Unset() } -// GetMacAddress returns the MacAddress field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetMacAddress() string { - if o == nil || IsNil(o.MacAddress.Get()) { - var ret string +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddressRequest return ret } - return *o.MacAddress.Get() + return *o.PrimaryMacAddress.Get() } -// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *VMInterfaceRequest) GetMacAddressOk() (*string, bool) { +func (o *VMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) { if o == nil { return nil, false } - return o.MacAddress.Get(), o.MacAddress.IsSet() + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() } -// HasMacAddress returns a boolean if a field has been set. -func (o *VMInterfaceRequest) HasMacAddress() bool { - if o != nil && o.MacAddress.IsSet() { +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *VMInterfaceRequest) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { return true } return false } -// SetMacAddress gets a reference to the given NullableString and assigns it to the MacAddress field. -func (o *VMInterfaceRequest) SetMacAddress(v string) { - o.MacAddress.Set(&v) +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field. +func (o *VMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) { + o.PrimaryMacAddress.Set(&v) } - -// SetMacAddressNil sets the value for MacAddress to be an explicit nil -func (o *VMInterfaceRequest) SetMacAddressNil() { - o.MacAddress.Set(nil) +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *VMInterfaceRequest) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) } -// UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil -func (o *VMInterfaceRequest) UnsetMacAddress() { - o.MacAddress.Unset() +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *VMInterfaceRequest) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -375,9 +375,9 @@ func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,11 +402,10 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *VMInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -449,10 +448,94 @@ func (o *VMInterfaceRequest) SetTaggedVlans(v []int32) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterfaceRequest) GetQinqSvlan() BriefVLANRequest { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLANRequest + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *VMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *VMInterfaceRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field. +func (o *VMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *VMInterfaceRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *VMInterfaceRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicyRequest + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *VMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *VMInterfaceRequest) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field. +func (o *VMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *VMInterfaceRequest) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *VMInterfaceRequest) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetVrf() VRFRequest { +func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +544,7 @@ func (o *VMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,11 +560,10 @@ func (o *VMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *VMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest) { 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 +639,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 } @@ -580,8 +662,8 @@ func (o VMInterfaceRequest) ToMap() (map[string]interface{}, error) { if o.Mtu.IsSet() { toSerialize["mtu"] = o.Mtu.Get() } - if o.MacAddress.IsSet() { - toSerialize["mac_address"] = o.MacAddress.Get() + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -595,6 +677,12 @@ func (o VMInterfaceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } @@ -621,20 +709,37 @@ func (o *VMInterfaceRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVMInterfaceRequest := _VMInterfaceRequest{} err = json.Unmarshal(data, &varVMInterfaceRequest) @@ -654,11 +759,13 @@ func (o *VMInterfaceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "parent") delete(additionalProperties, "bridge") delete(additionalProperties, "mtu") - delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") delete(additionalProperties, "description") delete(additionalProperties, "mode") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "vrf") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -703,3 +810,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 6f16484c97..093299a1fc 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,26 @@ 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"` + DisplayUrl *string `json:"display_url,omitempty"` 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"` - Description *string `json:"description,omitempty"` - PrefixCount int64 `json:"prefix_count"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenant `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 []RouteTarget `json:"import_targets,omitempty"` + ExportTargets []RouteTarget `json:"export_targets,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +50,13 @@ type _VRF VRF // 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 NewVRF(id int32, url string, display string, name string, prefixCount int64) *VRF { +func NewVRF(id int32, url string, display string, name string, ipaddressCount int64) *VRF { this := VRF{} this.Id = id this.Url = url this.Display = display this.Name = name - this.PrefixCount = prefixCount + this.IpaddressCount = ipaddressCount return &this } @@ -79,6 +92,7 @@ func (o *VRF) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *VRF) GetUrl() string { if o == nil { @@ -103,6 +117,39 @@ func (o *VRF) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VRF) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VRF) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VRF) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VRF) GetDisplay() string { if o == nil { @@ -127,6 +174,7 @@ func (o *VRF) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *VRF) GetName() string { if o == nil { @@ -151,6 +199,7 @@ func (o *VRF) SetName(v string) { o.Name = v } + // GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VRF) GetRd() string { if o == nil || IsNil(o.Rd.Get()) { @@ -183,7 +232,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) @@ -194,6 +242,80 @@ func (o *VRF) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRF) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + 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 *VRF) GetTenantOk() (*BriefTenant, 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 *VRF) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VRF) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRF) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRF) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRF) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRF) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRF) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRF) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -226,32 +348,309 @@ func (o *VRF) SetDescription(v string) { o.Description = &v } -// GetPrefixCount returns the PrefixCount field value -func (o *VRF) GetPrefixCount() int64 { +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRF) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRF) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRF) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRF) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRF) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *VRF) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRF) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRF) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *VRF) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRF) 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 *VRF) 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 *VRF) 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 *VRF) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRF) 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 *VRF) 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 *VRF) 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 *VRF) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRF) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *VRF) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *VRF) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *VRF) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *VRF) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *VRF) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRF) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *VRF) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *VRF) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *VRF) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *VRF) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *VRF) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *VRF) GetIpaddressCount() int64 { if o == nil { var ret int64 return ret } - return o.PrefixCount + return o.IpaddressCount } -// GetPrefixCountOk returns a tuple with the PrefixCount field value +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value // and a boolean to check if the value has been set. -func (o *VRF) GetPrefixCountOk() (*int64, bool) { +func (o *VRF) GetIpaddressCountOk() (*int64, bool) { if o == nil { return nil, false } - return &o.PrefixCount, true + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *VRF) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *VRF) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true } -// SetPrefixCount sets field value +// HasPrefixCount returns a boolean if a field has been set. +func (o *VRF) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. func (o *VRF) SetPrefixCount(v int64) { - o.PrefixCount = v + o.PrefixCount = &v } func (o VRF) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,15 +661,48 @@ func (o VRF) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["prefix_count"] = o.PrefixCount + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + toSerialize["ipaddress_count"] = o.IpaddressCount + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -288,23 +720,40 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "prefix_count", + "ipaddress_count", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVRF := _VRF{} err = json.Unmarshal(data, &varVRF) @@ -320,10 +769,21 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ipaddress_count") delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } @@ -366,3 +826,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 16ae86557b..43a637054a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,8 +22,16 @@ var _ MappedNullable = &VRFRequest{} type VRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `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"` AdditionalProperties map[string]interface{} } @@ -71,6 +79,7 @@ func (o *VRFRequest) SetName(v string) { o.Name = v } + // GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VRFRequest) GetRd() string { if o == nil || IsNil(o.Rd.Get()) { @@ -103,7 +112,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) @@ -114,6 +122,80 @@ func (o *VRFRequest) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRFRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *VRFRequest) GetTenantOk() (*BriefTenantRequest, 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 *VRFRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VRFRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRFRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRFRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRFRequest) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRFRequest) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRFRequest) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRFRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -146,8 +228,168 @@ func (o *VRFRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRFRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRFRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRFRequest) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *VRFRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *VRFRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRFRequest) 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 *VRFRequest) 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 *VRFRequest) 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 *VRFRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRFRequest) 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 *VRFRequest) 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 *VRFRequest) 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 *VRFRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VRFRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,9 +402,30 @@ func (o VRFRequest) ToMap() (map[string]interface{}, error) { if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -179,20 +442,37 @@ func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varVRFRequest := _VRFRequest{} err = json.Unmarshal(data, &varVRFRequest) @@ -208,7 +488,14 @@ func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -250,3 +537,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 598066292e..1b25c0c760 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the Webhook type satisfies the MappedNullable interface at compile time @@ -21,13 +21,14 @@ var _ MappedNullable = &Webhook{} // Webhook Adds support for custom fields and tags. type Webhook 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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` Description *string `json:"description,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"` + PayloadUrl string `json:"payload_url"` HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"` // The complete list of official content types is available here. HttpContentType *string `json:"http_content_type,omitempty"` @@ -40,11 +41,11 @@ type Webhook struct { // 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"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Tags []NestedTag `json:"tags,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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,15 +55,13 @@ type _Webhook Webhook // 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 NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook { +func NewWebhook(id int32, url string, display string, name string, payloadUrl string) *Webhook { this := Webhook{} this.Id = id this.Url = url this.Display = display this.Name = name this.PayloadUrl = payloadUrl - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -98,6 +97,7 @@ func (o *Webhook) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *Webhook) GetUrl() string { if o == nil { @@ -122,6 +122,39 @@ func (o *Webhook) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Webhook) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Webhook) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Webhook) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Webhook) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Webhook) GetDisplay() string { if o == nil { @@ -146,6 +179,7 @@ func (o *Webhook) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *Webhook) GetName() string { if o == nil { @@ -170,6 +204,7 @@ func (o *Webhook) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Webhook) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -226,6 +261,7 @@ func (o *Webhook) SetPayloadUrl(v string) { o.PayloadUrl = v } + // GetHttpMethod returns the HttpMethod field value if set, zero value otherwise. func (o *Webhook) GetHttpMethod() PatchedWebhookRequestHttpMethod { if o == nil || IsNil(o.HttpMethod) { @@ -450,7 +486,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) @@ -525,18 +560,16 @@ 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 +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Webhook) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *Webhook) GetCreatedOk() (*time.Time, bool) { @@ -546,23 +579,39 @@ func (o *Webhook) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Webhook) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Webhook) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Webhook) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Webhook) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Webhook) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *Webhook) GetLastUpdatedOk() (*time.Time, bool) { @@ -572,13 +621,31 @@ func (o *Webhook) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Webhook) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Webhook) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Webhook) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Webhook) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o Webhook) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -589,6 +656,9 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -622,8 +692,12 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -642,24 +716,39 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { "display", "name", "payload_url", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWebhook := _Webhook{} err = json.Unmarshal(data, &varWebhook) @@ -675,6 +764,7 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") @@ -731,3 +821,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 09152c9ce7..30f66b6981 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &WebhookRequest{} // WebhookRequest Adds support for custom fields and tags. type WebhookRequest struct { - Name string `json:"name"` + Name string `json:"name"` Description *string `json:"description,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"` + PayloadUrl string `json:"payload_url"` HttpMethod *PatchedWebhookRequestHttpMethod `json:"http_method,omitempty"` // The complete list of official content types is available here. HttpContentType *string `json:"http_content_type,omitempty"` @@ -36,9 +36,9 @@ type WebhookRequest struct { // 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"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Tags []NestedTagRequest `json:"tags,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{} } @@ -87,6 +87,7 @@ func (o *WebhookRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WebhookRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -143,6 +144,7 @@ func (o *WebhookRequest) SetPayloadUrl(v string) { o.PayloadUrl = v } + // GetHttpMethod returns the HttpMethod field value if set, zero value otherwise. func (o *WebhookRequest) GetHttpMethod() PatchedWebhookRequestHttpMethod { if o == nil || IsNil(o.HttpMethod) { @@ -367,7 +369,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) @@ -443,7 +444,7 @@ func (o *WebhookRequest) SetTags(v []NestedTagRequest) { } func (o WebhookRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -501,20 +502,37 @@ func (o *WebhookRequest) UnmarshalJSON(data []byte) (err error) { "payload_url", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWebhookRequest := _WebhookRequest{} err = json.Unmarshal(data, &varWebhookRequest) @@ -581,3 +599,5 @@ func (v *NullableWebhookRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_channel.go b/model_wireless_channel.go index 0950f88f11..8426e9bf7b 100644 --- a/model_wireless_channel.go +++ b/model_wireless_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,192 +20,192 @@ type WirelessChannel string // List of Wireless_channel const ( - WIRELESSCHANNEL__2_4G_1_2412_22 WirelessChannel = "2.4g-1-2412-22" - WIRELESSCHANNEL__2_4G_2_2417_22 WirelessChannel = "2.4g-2-2417-22" - WIRELESSCHANNEL__2_4G_3_2422_22 WirelessChannel = "2.4g-3-2422-22" - WIRELESSCHANNEL__2_4G_4_2427_22 WirelessChannel = "2.4g-4-2427-22" - WIRELESSCHANNEL__2_4G_5_2432_22 WirelessChannel = "2.4g-5-2432-22" - WIRELESSCHANNEL__2_4G_6_2437_22 WirelessChannel = "2.4g-6-2437-22" - WIRELESSCHANNEL__2_4G_7_2442_22 WirelessChannel = "2.4g-7-2442-22" - WIRELESSCHANNEL__2_4G_8_2447_22 WirelessChannel = "2.4g-8-2447-22" - WIRELESSCHANNEL__2_4G_9_2452_22 WirelessChannel = "2.4g-9-2452-22" - WIRELESSCHANNEL__2_4G_10_2457_22 WirelessChannel = "2.4g-10-2457-22" - WIRELESSCHANNEL__2_4G_11_2462_22 WirelessChannel = "2.4g-11-2462-22" - WIRELESSCHANNEL__2_4G_12_2467_22 WirelessChannel = "2.4g-12-2467-22" - WIRELESSCHANNEL__2_4G_13_2472_22 WirelessChannel = "2.4g-13-2472-22" - WIRELESSCHANNEL__5G_32_5160_20 WirelessChannel = "5g-32-5160-20" - WIRELESSCHANNEL__5G_34_5170_40 WirelessChannel = "5g-34-5170-40" - WIRELESSCHANNEL__5G_36_5180_20 WirelessChannel = "5g-36-5180-20" - WIRELESSCHANNEL__5G_38_5190_40 WirelessChannel = "5g-38-5190-40" - WIRELESSCHANNEL__5G_40_5200_20 WirelessChannel = "5g-40-5200-20" - WIRELESSCHANNEL__5G_42_5210_80 WirelessChannel = "5g-42-5210-80" - WIRELESSCHANNEL__5G_44_5220_20 WirelessChannel = "5g-44-5220-20" - WIRELESSCHANNEL__5G_46_5230_40 WirelessChannel = "5g-46-5230-40" - WIRELESSCHANNEL__5G_48_5240_20 WirelessChannel = "5g-48-5240-20" - WIRELESSCHANNEL__5G_50_5250_160 WirelessChannel = "5g-50-5250-160" - WIRELESSCHANNEL__5G_52_5260_20 WirelessChannel = "5g-52-5260-20" - WIRELESSCHANNEL__5G_54_5270_40 WirelessChannel = "5g-54-5270-40" - WIRELESSCHANNEL__5G_56_5280_20 WirelessChannel = "5g-56-5280-20" - WIRELESSCHANNEL__5G_58_5290_80 WirelessChannel = "5g-58-5290-80" - WIRELESSCHANNEL__5G_60_5300_20 WirelessChannel = "5g-60-5300-20" - WIRELESSCHANNEL__5G_62_5310_40 WirelessChannel = "5g-62-5310-40" - WIRELESSCHANNEL__5G_64_5320_20 WirelessChannel = "5g-64-5320-20" - WIRELESSCHANNEL__5G_100_5500_20 WirelessChannel = "5g-100-5500-20" - WIRELESSCHANNEL__5G_102_5510_40 WirelessChannel = "5g-102-5510-40" - WIRELESSCHANNEL__5G_104_5520_20 WirelessChannel = "5g-104-5520-20" - WIRELESSCHANNEL__5G_106_5530_80 WirelessChannel = "5g-106-5530-80" - WIRELESSCHANNEL__5G_108_5540_20 WirelessChannel = "5g-108-5540-20" - WIRELESSCHANNEL__5G_110_5550_40 WirelessChannel = "5g-110-5550-40" - WIRELESSCHANNEL__5G_112_5560_20 WirelessChannel = "5g-112-5560-20" - WIRELESSCHANNEL__5G_114_5570_160 WirelessChannel = "5g-114-5570-160" - WIRELESSCHANNEL__5G_116_5580_20 WirelessChannel = "5g-116-5580-20" - WIRELESSCHANNEL__5G_118_5590_40 WirelessChannel = "5g-118-5590-40" - WIRELESSCHANNEL__5G_120_5600_20 WirelessChannel = "5g-120-5600-20" - WIRELESSCHANNEL__5G_122_5610_80 WirelessChannel = "5g-122-5610-80" - WIRELESSCHANNEL__5G_124_5620_20 WirelessChannel = "5g-124-5620-20" - WIRELESSCHANNEL__5G_126_5630_40 WirelessChannel = "5g-126-5630-40" - WIRELESSCHANNEL__5G_128_5640_20 WirelessChannel = "5g-128-5640-20" - WIRELESSCHANNEL__5G_132_5660_20 WirelessChannel = "5g-132-5660-20" - WIRELESSCHANNEL__5G_134_5670_40 WirelessChannel = "5g-134-5670-40" - WIRELESSCHANNEL__5G_136_5680_20 WirelessChannel = "5g-136-5680-20" - WIRELESSCHANNEL__5G_138_5690_80 WirelessChannel = "5g-138-5690-80" - WIRELESSCHANNEL__5G_140_5700_20 WirelessChannel = "5g-140-5700-20" - WIRELESSCHANNEL__5G_142_5710_40 WirelessChannel = "5g-142-5710-40" - WIRELESSCHANNEL__5G_144_5720_20 WirelessChannel = "5g-144-5720-20" - WIRELESSCHANNEL__5G_149_5745_20 WirelessChannel = "5g-149-5745-20" - WIRELESSCHANNEL__5G_151_5755_40 WirelessChannel = "5g-151-5755-40" - WIRELESSCHANNEL__5G_153_5765_20 WirelessChannel = "5g-153-5765-20" - WIRELESSCHANNEL__5G_155_5775_80 WirelessChannel = "5g-155-5775-80" - WIRELESSCHANNEL__5G_157_5785_20 WirelessChannel = "5g-157-5785-20" - WIRELESSCHANNEL__5G_159_5795_40 WirelessChannel = "5g-159-5795-40" - WIRELESSCHANNEL__5G_161_5805_20 WirelessChannel = "5g-161-5805-20" - WIRELESSCHANNEL__5G_163_5815_160 WirelessChannel = "5g-163-5815-160" - WIRELESSCHANNEL__5G_165_5825_20 WirelessChannel = "5g-165-5825-20" - WIRELESSCHANNEL__5G_167_5835_40 WirelessChannel = "5g-167-5835-40" - WIRELESSCHANNEL__5G_169_5845_20 WirelessChannel = "5g-169-5845-20" - WIRELESSCHANNEL__5G_171_5855_80 WirelessChannel = "5g-171-5855-80" - WIRELESSCHANNEL__5G_173_5865_20 WirelessChannel = "5g-173-5865-20" - WIRELESSCHANNEL__5G_175_5875_40 WirelessChannel = "5g-175-5875-40" - WIRELESSCHANNEL__5G_177_5885_20 WirelessChannel = "5g-177-5885-20" - WIRELESSCHANNEL__6G_1_5955_20 WirelessChannel = "6g-1-5955-20" - WIRELESSCHANNEL__6G_3_5965_40 WirelessChannel = "6g-3-5965-40" - WIRELESSCHANNEL__6G_5_5975_20 WirelessChannel = "6g-5-5975-20" - WIRELESSCHANNEL__6G_7_5985_80 WirelessChannel = "6g-7-5985-80" - WIRELESSCHANNEL__6G_9_5995_20 WirelessChannel = "6g-9-5995-20" - WIRELESSCHANNEL__6G_11_6005_40 WirelessChannel = "6g-11-6005-40" - WIRELESSCHANNEL__6G_13_6015_20 WirelessChannel = "6g-13-6015-20" - WIRELESSCHANNEL__6G_15_6025_160 WirelessChannel = "6g-15-6025-160" - WIRELESSCHANNEL__6G_17_6035_20 WirelessChannel = "6g-17-6035-20" - WIRELESSCHANNEL__6G_19_6045_40 WirelessChannel = "6g-19-6045-40" - WIRELESSCHANNEL__6G_21_6055_20 WirelessChannel = "6g-21-6055-20" - WIRELESSCHANNEL__6G_23_6065_80 WirelessChannel = "6g-23-6065-80" - WIRELESSCHANNEL__6G_25_6075_20 WirelessChannel = "6g-25-6075-20" - WIRELESSCHANNEL__6G_27_6085_40 WirelessChannel = "6g-27-6085-40" - WIRELESSCHANNEL__6G_29_6095_20 WirelessChannel = "6g-29-6095-20" - WIRELESSCHANNEL__6G_31_6105_320 WirelessChannel = "6g-31-6105-320" - WIRELESSCHANNEL__6G_33_6115_20 WirelessChannel = "6g-33-6115-20" - WIRELESSCHANNEL__6G_35_6125_40 WirelessChannel = "6g-35-6125-40" - WIRELESSCHANNEL__6G_37_6135_20 WirelessChannel = "6g-37-6135-20" - WIRELESSCHANNEL__6G_39_6145_80 WirelessChannel = "6g-39-6145-80" - WIRELESSCHANNEL__6G_41_6155_20 WirelessChannel = "6g-41-6155-20" - WIRELESSCHANNEL__6G_43_6165_40 WirelessChannel = "6g-43-6165-40" - WIRELESSCHANNEL__6G_45_6175_20 WirelessChannel = "6g-45-6175-20" - WIRELESSCHANNEL__6G_47_6185_160 WirelessChannel = "6g-47-6185-160" - WIRELESSCHANNEL__6G_49_6195_20 WirelessChannel = "6g-49-6195-20" - WIRELESSCHANNEL__6G_51_6205_40 WirelessChannel = "6g-51-6205-40" - WIRELESSCHANNEL__6G_53_6215_20 WirelessChannel = "6g-53-6215-20" - WIRELESSCHANNEL__6G_55_6225_80 WirelessChannel = "6g-55-6225-80" - WIRELESSCHANNEL__6G_57_6235_20 WirelessChannel = "6g-57-6235-20" - WIRELESSCHANNEL__6G_59_6245_40 WirelessChannel = "6g-59-6245-40" - WIRELESSCHANNEL__6G_61_6255_20 WirelessChannel = "6g-61-6255-20" - WIRELESSCHANNEL__6G_65_6275_20 WirelessChannel = "6g-65-6275-20" - WIRELESSCHANNEL__6G_67_6285_40 WirelessChannel = "6g-67-6285-40" - WIRELESSCHANNEL__6G_69_6295_20 WirelessChannel = "6g-69-6295-20" - WIRELESSCHANNEL__6G_71_6305_80 WirelessChannel = "6g-71-6305-80" - WIRELESSCHANNEL__6G_73_6315_20 WirelessChannel = "6g-73-6315-20" - WIRELESSCHANNEL__6G_75_6325_40 WirelessChannel = "6g-75-6325-40" - WIRELESSCHANNEL__6G_77_6335_20 WirelessChannel = "6g-77-6335-20" - WIRELESSCHANNEL__6G_79_6345_160 WirelessChannel = "6g-79-6345-160" - WIRELESSCHANNEL__6G_81_6355_20 WirelessChannel = "6g-81-6355-20" - WIRELESSCHANNEL__6G_83_6365_40 WirelessChannel = "6g-83-6365-40" - WIRELESSCHANNEL__6G_85_6375_20 WirelessChannel = "6g-85-6375-20" - WIRELESSCHANNEL__6G_87_6385_80 WirelessChannel = "6g-87-6385-80" - WIRELESSCHANNEL__6G_89_6395_20 WirelessChannel = "6g-89-6395-20" - WIRELESSCHANNEL__6G_91_6405_40 WirelessChannel = "6g-91-6405-40" - WIRELESSCHANNEL__6G_93_6415_20 WirelessChannel = "6g-93-6415-20" - WIRELESSCHANNEL__6G_95_6425_320 WirelessChannel = "6g-95-6425-320" - WIRELESSCHANNEL__6G_97_6435_20 WirelessChannel = "6g-97-6435-20" - WIRELESSCHANNEL__6G_99_6445_40 WirelessChannel = "6g-99-6445-40" - WIRELESSCHANNEL__6G_101_6455_20 WirelessChannel = "6g-101-6455-20" - WIRELESSCHANNEL__6G_103_6465_80 WirelessChannel = "6g-103-6465-80" - WIRELESSCHANNEL__6G_105_6475_20 WirelessChannel = "6g-105-6475-20" - WIRELESSCHANNEL__6G_107_6485_40 WirelessChannel = "6g-107-6485-40" - WIRELESSCHANNEL__6G_109_6495_20 WirelessChannel = "6g-109-6495-20" - WIRELESSCHANNEL__6G_111_6505_160 WirelessChannel = "6g-111-6505-160" - WIRELESSCHANNEL__6G_113_6515_20 WirelessChannel = "6g-113-6515-20" - WIRELESSCHANNEL__6G_115_6525_40 WirelessChannel = "6g-115-6525-40" - WIRELESSCHANNEL__6G_117_6535_20 WirelessChannel = "6g-117-6535-20" - WIRELESSCHANNEL__6G_119_6545_80 WirelessChannel = "6g-119-6545-80" - WIRELESSCHANNEL__6G_121_6555_20 WirelessChannel = "6g-121-6555-20" - WIRELESSCHANNEL__6G_123_6565_40 WirelessChannel = "6g-123-6565-40" - WIRELESSCHANNEL__6G_125_6575_20 WirelessChannel = "6g-125-6575-20" - WIRELESSCHANNEL__6G_129_6595_20 WirelessChannel = "6g-129-6595-20" - WIRELESSCHANNEL__6G_131_6605_40 WirelessChannel = "6g-131-6605-40" - WIRELESSCHANNEL__6G_133_6615_20 WirelessChannel = "6g-133-6615-20" - WIRELESSCHANNEL__6G_135_6625_80 WirelessChannel = "6g-135-6625-80" - WIRELESSCHANNEL__6G_137_6635_20 WirelessChannel = "6g-137-6635-20" - WIRELESSCHANNEL__6G_139_6645_40 WirelessChannel = "6g-139-6645-40" - WIRELESSCHANNEL__6G_141_6655_20 WirelessChannel = "6g-141-6655-20" - WIRELESSCHANNEL__6G_143_6665_160 WirelessChannel = "6g-143-6665-160" - WIRELESSCHANNEL__6G_145_6675_20 WirelessChannel = "6g-145-6675-20" - WIRELESSCHANNEL__6G_147_6685_40 WirelessChannel = "6g-147-6685-40" - WIRELESSCHANNEL__6G_149_6695_20 WirelessChannel = "6g-149-6695-20" - WIRELESSCHANNEL__6G_151_6705_80 WirelessChannel = "6g-151-6705-80" - WIRELESSCHANNEL__6G_153_6715_20 WirelessChannel = "6g-153-6715-20" - WIRELESSCHANNEL__6G_155_6725_40 WirelessChannel = "6g-155-6725-40" - WIRELESSCHANNEL__6G_157_6735_20 WirelessChannel = "6g-157-6735-20" - WIRELESSCHANNEL__6G_159_6745_320 WirelessChannel = "6g-159-6745-320" - WIRELESSCHANNEL__6G_161_6755_20 WirelessChannel = "6g-161-6755-20" - WIRELESSCHANNEL__6G_163_6765_40 WirelessChannel = "6g-163-6765-40" - WIRELESSCHANNEL__6G_165_6775_20 WirelessChannel = "6g-165-6775-20" - WIRELESSCHANNEL__6G_167_6785_80 WirelessChannel = "6g-167-6785-80" - WIRELESSCHANNEL__6G_169_6795_20 WirelessChannel = "6g-169-6795-20" - WIRELESSCHANNEL__6G_171_6805_40 WirelessChannel = "6g-171-6805-40" - WIRELESSCHANNEL__6G_173_6815_20 WirelessChannel = "6g-173-6815-20" - WIRELESSCHANNEL__6G_175_6825_160 WirelessChannel = "6g-175-6825-160" - WIRELESSCHANNEL__6G_177_6835_20 WirelessChannel = "6g-177-6835-20" - WIRELESSCHANNEL__6G_179_6845_40 WirelessChannel = "6g-179-6845-40" - WIRELESSCHANNEL__6G_181_6855_20 WirelessChannel = "6g-181-6855-20" - WIRELESSCHANNEL__6G_183_6865_80 WirelessChannel = "6g-183-6865-80" - WIRELESSCHANNEL__6G_185_6875_20 WirelessChannel = "6g-185-6875-20" - WIRELESSCHANNEL__6G_187_6885_40 WirelessChannel = "6g-187-6885-40" - WIRELESSCHANNEL__6G_189_6895_20 WirelessChannel = "6g-189-6895-20" - WIRELESSCHANNEL__6G_193_6915_20 WirelessChannel = "6g-193-6915-20" - WIRELESSCHANNEL__6G_195_6925_40 WirelessChannel = "6g-195-6925-40" - WIRELESSCHANNEL__6G_197_6935_20 WirelessChannel = "6g-197-6935-20" - WIRELESSCHANNEL__6G_199_6945_80 WirelessChannel = "6g-199-6945-80" - WIRELESSCHANNEL__6G_201_6955_20 WirelessChannel = "6g-201-6955-20" - WIRELESSCHANNEL__6G_203_6965_40 WirelessChannel = "6g-203-6965-40" - WIRELESSCHANNEL__6G_205_6975_20 WirelessChannel = "6g-205-6975-20" - WIRELESSCHANNEL__6G_207_6985_160 WirelessChannel = "6g-207-6985-160" - WIRELESSCHANNEL__6G_209_6995_20 WirelessChannel = "6g-209-6995-20" - WIRELESSCHANNEL__6G_211_7005_40 WirelessChannel = "6g-211-7005-40" - WIRELESSCHANNEL__6G_213_7015_20 WirelessChannel = "6g-213-7015-20" - WIRELESSCHANNEL__6G_215_7025_80 WirelessChannel = "6g-215-7025-80" - WIRELESSCHANNEL__6G_217_7035_20 WirelessChannel = "6g-217-7035-20" - WIRELESSCHANNEL__6G_219_7045_40 WirelessChannel = "6g-219-7045-40" - WIRELESSCHANNEL__6G_221_7055_20 WirelessChannel = "6g-221-7055-20" - WIRELESSCHANNEL__6G_225_7075_20 WirelessChannel = "6g-225-7075-20" - WIRELESSCHANNEL__6G_227_7085_40 WirelessChannel = "6g-227-7085-40" - WIRELESSCHANNEL__6G_229_7095_20 WirelessChannel = "6g-229-7095-20" - WIRELESSCHANNEL__6G_233_7115_20 WirelessChannel = "6g-233-7115-20" - WIRELESSCHANNEL__60G_1_58320_2160 WirelessChannel = "60g-1-58320-2160" - WIRELESSCHANNEL__60G_2_60480_2160 WirelessChannel = "60g-2-60480-2160" - WIRELESSCHANNEL__60G_3_62640_2160 WirelessChannel = "60g-3-62640-2160" - WIRELESSCHANNEL__60G_4_64800_2160 WirelessChannel = "60g-4-64800-2160" - WIRELESSCHANNEL__60G_5_66960_2160 WirelessChannel = "60g-5-66960-2160" - WIRELESSCHANNEL__60G_6_69120_2160 WirelessChannel = "60g-6-69120-2160" - WIRELESSCHANNEL__60G_9_59400_4320 WirelessChannel = "60g-9-59400-4320" + WIRELESSCHANNEL__2_4G_1_2412_22 WirelessChannel = "2.4g-1-2412-22" + WIRELESSCHANNEL__2_4G_2_2417_22 WirelessChannel = "2.4g-2-2417-22" + WIRELESSCHANNEL__2_4G_3_2422_22 WirelessChannel = "2.4g-3-2422-22" + WIRELESSCHANNEL__2_4G_4_2427_22 WirelessChannel = "2.4g-4-2427-22" + WIRELESSCHANNEL__2_4G_5_2432_22 WirelessChannel = "2.4g-5-2432-22" + WIRELESSCHANNEL__2_4G_6_2437_22 WirelessChannel = "2.4g-6-2437-22" + WIRELESSCHANNEL__2_4G_7_2442_22 WirelessChannel = "2.4g-7-2442-22" + WIRELESSCHANNEL__2_4G_8_2447_22 WirelessChannel = "2.4g-8-2447-22" + WIRELESSCHANNEL__2_4G_9_2452_22 WirelessChannel = "2.4g-9-2452-22" + WIRELESSCHANNEL__2_4G_10_2457_22 WirelessChannel = "2.4g-10-2457-22" + WIRELESSCHANNEL__2_4G_11_2462_22 WirelessChannel = "2.4g-11-2462-22" + WIRELESSCHANNEL__2_4G_12_2467_22 WirelessChannel = "2.4g-12-2467-22" + WIRELESSCHANNEL__2_4G_13_2472_22 WirelessChannel = "2.4g-13-2472-22" + WIRELESSCHANNEL__5G_32_5160_20 WirelessChannel = "5g-32-5160-20" + WIRELESSCHANNEL__5G_34_5170_40 WirelessChannel = "5g-34-5170-40" + WIRELESSCHANNEL__5G_36_5180_20 WirelessChannel = "5g-36-5180-20" + WIRELESSCHANNEL__5G_38_5190_40 WirelessChannel = "5g-38-5190-40" + WIRELESSCHANNEL__5G_40_5200_20 WirelessChannel = "5g-40-5200-20" + WIRELESSCHANNEL__5G_42_5210_80 WirelessChannel = "5g-42-5210-80" + WIRELESSCHANNEL__5G_44_5220_20 WirelessChannel = "5g-44-5220-20" + WIRELESSCHANNEL__5G_46_5230_40 WirelessChannel = "5g-46-5230-40" + WIRELESSCHANNEL__5G_48_5240_20 WirelessChannel = "5g-48-5240-20" + WIRELESSCHANNEL__5G_50_5250_160 WirelessChannel = "5g-50-5250-160" + WIRELESSCHANNEL__5G_52_5260_20 WirelessChannel = "5g-52-5260-20" + WIRELESSCHANNEL__5G_54_5270_40 WirelessChannel = "5g-54-5270-40" + WIRELESSCHANNEL__5G_56_5280_20 WirelessChannel = "5g-56-5280-20" + WIRELESSCHANNEL__5G_58_5290_80 WirelessChannel = "5g-58-5290-80" + WIRELESSCHANNEL__5G_60_5300_20 WirelessChannel = "5g-60-5300-20" + WIRELESSCHANNEL__5G_62_5310_40 WirelessChannel = "5g-62-5310-40" + WIRELESSCHANNEL__5G_64_5320_20 WirelessChannel = "5g-64-5320-20" + WIRELESSCHANNEL__5G_100_5500_20 WirelessChannel = "5g-100-5500-20" + WIRELESSCHANNEL__5G_102_5510_40 WirelessChannel = "5g-102-5510-40" + WIRELESSCHANNEL__5G_104_5520_20 WirelessChannel = "5g-104-5520-20" + WIRELESSCHANNEL__5G_106_5530_80 WirelessChannel = "5g-106-5530-80" + WIRELESSCHANNEL__5G_108_5540_20 WirelessChannel = "5g-108-5540-20" + WIRELESSCHANNEL__5G_110_5550_40 WirelessChannel = "5g-110-5550-40" + WIRELESSCHANNEL__5G_112_5560_20 WirelessChannel = "5g-112-5560-20" + WIRELESSCHANNEL__5G_114_5570_160 WirelessChannel = "5g-114-5570-160" + WIRELESSCHANNEL__5G_116_5580_20 WirelessChannel = "5g-116-5580-20" + WIRELESSCHANNEL__5G_118_5590_40 WirelessChannel = "5g-118-5590-40" + WIRELESSCHANNEL__5G_120_5600_20 WirelessChannel = "5g-120-5600-20" + WIRELESSCHANNEL__5G_122_5610_80 WirelessChannel = "5g-122-5610-80" + WIRELESSCHANNEL__5G_124_5620_20 WirelessChannel = "5g-124-5620-20" + WIRELESSCHANNEL__5G_126_5630_40 WirelessChannel = "5g-126-5630-40" + WIRELESSCHANNEL__5G_128_5640_20 WirelessChannel = "5g-128-5640-20" + WIRELESSCHANNEL__5G_132_5660_20 WirelessChannel = "5g-132-5660-20" + WIRELESSCHANNEL__5G_134_5670_40 WirelessChannel = "5g-134-5670-40" + WIRELESSCHANNEL__5G_136_5680_20 WirelessChannel = "5g-136-5680-20" + WIRELESSCHANNEL__5G_138_5690_80 WirelessChannel = "5g-138-5690-80" + WIRELESSCHANNEL__5G_140_5700_20 WirelessChannel = "5g-140-5700-20" + WIRELESSCHANNEL__5G_142_5710_40 WirelessChannel = "5g-142-5710-40" + WIRELESSCHANNEL__5G_144_5720_20 WirelessChannel = "5g-144-5720-20" + WIRELESSCHANNEL__5G_149_5745_20 WirelessChannel = "5g-149-5745-20" + WIRELESSCHANNEL__5G_151_5755_40 WirelessChannel = "5g-151-5755-40" + WIRELESSCHANNEL__5G_153_5765_20 WirelessChannel = "5g-153-5765-20" + WIRELESSCHANNEL__5G_155_5775_80 WirelessChannel = "5g-155-5775-80" + WIRELESSCHANNEL__5G_157_5785_20 WirelessChannel = "5g-157-5785-20" + WIRELESSCHANNEL__5G_159_5795_40 WirelessChannel = "5g-159-5795-40" + WIRELESSCHANNEL__5G_161_5805_20 WirelessChannel = "5g-161-5805-20" + WIRELESSCHANNEL__5G_163_5815_160 WirelessChannel = "5g-163-5815-160" + WIRELESSCHANNEL__5G_165_5825_20 WirelessChannel = "5g-165-5825-20" + WIRELESSCHANNEL__5G_167_5835_40 WirelessChannel = "5g-167-5835-40" + WIRELESSCHANNEL__5G_169_5845_20 WirelessChannel = "5g-169-5845-20" + WIRELESSCHANNEL__5G_171_5855_80 WirelessChannel = "5g-171-5855-80" + WIRELESSCHANNEL__5G_173_5865_20 WirelessChannel = "5g-173-5865-20" + WIRELESSCHANNEL__5G_175_5875_40 WirelessChannel = "5g-175-5875-40" + WIRELESSCHANNEL__5G_177_5885_20 WirelessChannel = "5g-177-5885-20" + WIRELESSCHANNEL__6G_1_5955_20 WirelessChannel = "6g-1-5955-20" + WIRELESSCHANNEL__6G_3_5965_40 WirelessChannel = "6g-3-5965-40" + WIRELESSCHANNEL__6G_5_5975_20 WirelessChannel = "6g-5-5975-20" + WIRELESSCHANNEL__6G_7_5985_80 WirelessChannel = "6g-7-5985-80" + WIRELESSCHANNEL__6G_9_5995_20 WirelessChannel = "6g-9-5995-20" + WIRELESSCHANNEL__6G_11_6005_40 WirelessChannel = "6g-11-6005-40" + WIRELESSCHANNEL__6G_13_6015_20 WirelessChannel = "6g-13-6015-20" + WIRELESSCHANNEL__6G_15_6025_160 WirelessChannel = "6g-15-6025-160" + WIRELESSCHANNEL__6G_17_6035_20 WirelessChannel = "6g-17-6035-20" + WIRELESSCHANNEL__6G_19_6045_40 WirelessChannel = "6g-19-6045-40" + WIRELESSCHANNEL__6G_21_6055_20 WirelessChannel = "6g-21-6055-20" + WIRELESSCHANNEL__6G_23_6065_80 WirelessChannel = "6g-23-6065-80" + WIRELESSCHANNEL__6G_25_6075_20 WirelessChannel = "6g-25-6075-20" + WIRELESSCHANNEL__6G_27_6085_40 WirelessChannel = "6g-27-6085-40" + WIRELESSCHANNEL__6G_29_6095_20 WirelessChannel = "6g-29-6095-20" + WIRELESSCHANNEL__6G_31_6105_320 WirelessChannel = "6g-31-6105-320" + WIRELESSCHANNEL__6G_33_6115_20 WirelessChannel = "6g-33-6115-20" + WIRELESSCHANNEL__6G_35_6125_40 WirelessChannel = "6g-35-6125-40" + WIRELESSCHANNEL__6G_37_6135_20 WirelessChannel = "6g-37-6135-20" + WIRELESSCHANNEL__6G_39_6145_80 WirelessChannel = "6g-39-6145-80" + WIRELESSCHANNEL__6G_41_6155_20 WirelessChannel = "6g-41-6155-20" + WIRELESSCHANNEL__6G_43_6165_40 WirelessChannel = "6g-43-6165-40" + WIRELESSCHANNEL__6G_45_6175_20 WirelessChannel = "6g-45-6175-20" + WIRELESSCHANNEL__6G_47_6185_160 WirelessChannel = "6g-47-6185-160" + WIRELESSCHANNEL__6G_49_6195_20 WirelessChannel = "6g-49-6195-20" + WIRELESSCHANNEL__6G_51_6205_40 WirelessChannel = "6g-51-6205-40" + WIRELESSCHANNEL__6G_53_6215_20 WirelessChannel = "6g-53-6215-20" + WIRELESSCHANNEL__6G_55_6225_80 WirelessChannel = "6g-55-6225-80" + WIRELESSCHANNEL__6G_57_6235_20 WirelessChannel = "6g-57-6235-20" + WIRELESSCHANNEL__6G_59_6245_40 WirelessChannel = "6g-59-6245-40" + WIRELESSCHANNEL__6G_61_6255_20 WirelessChannel = "6g-61-6255-20" + WIRELESSCHANNEL__6G_65_6275_20 WirelessChannel = "6g-65-6275-20" + WIRELESSCHANNEL__6G_67_6285_40 WirelessChannel = "6g-67-6285-40" + WIRELESSCHANNEL__6G_69_6295_20 WirelessChannel = "6g-69-6295-20" + WIRELESSCHANNEL__6G_71_6305_80 WirelessChannel = "6g-71-6305-80" + WIRELESSCHANNEL__6G_73_6315_20 WirelessChannel = "6g-73-6315-20" + WIRELESSCHANNEL__6G_75_6325_40 WirelessChannel = "6g-75-6325-40" + WIRELESSCHANNEL__6G_77_6335_20 WirelessChannel = "6g-77-6335-20" + WIRELESSCHANNEL__6G_79_6345_160 WirelessChannel = "6g-79-6345-160" + WIRELESSCHANNEL__6G_81_6355_20 WirelessChannel = "6g-81-6355-20" + WIRELESSCHANNEL__6G_83_6365_40 WirelessChannel = "6g-83-6365-40" + WIRELESSCHANNEL__6G_85_6375_20 WirelessChannel = "6g-85-6375-20" + WIRELESSCHANNEL__6G_87_6385_80 WirelessChannel = "6g-87-6385-80" + WIRELESSCHANNEL__6G_89_6395_20 WirelessChannel = "6g-89-6395-20" + WIRELESSCHANNEL__6G_91_6405_40 WirelessChannel = "6g-91-6405-40" + WIRELESSCHANNEL__6G_93_6415_20 WirelessChannel = "6g-93-6415-20" + WIRELESSCHANNEL__6G_95_6425_320 WirelessChannel = "6g-95-6425-320" + WIRELESSCHANNEL__6G_97_6435_20 WirelessChannel = "6g-97-6435-20" + WIRELESSCHANNEL__6G_99_6445_40 WirelessChannel = "6g-99-6445-40" + WIRELESSCHANNEL__6G_101_6455_20 WirelessChannel = "6g-101-6455-20" + WIRELESSCHANNEL__6G_103_6465_80 WirelessChannel = "6g-103-6465-80" + WIRELESSCHANNEL__6G_105_6475_20 WirelessChannel = "6g-105-6475-20" + WIRELESSCHANNEL__6G_107_6485_40 WirelessChannel = "6g-107-6485-40" + WIRELESSCHANNEL__6G_109_6495_20 WirelessChannel = "6g-109-6495-20" + WIRELESSCHANNEL__6G_111_6505_160 WirelessChannel = "6g-111-6505-160" + WIRELESSCHANNEL__6G_113_6515_20 WirelessChannel = "6g-113-6515-20" + WIRELESSCHANNEL__6G_115_6525_40 WirelessChannel = "6g-115-6525-40" + WIRELESSCHANNEL__6G_117_6535_20 WirelessChannel = "6g-117-6535-20" + WIRELESSCHANNEL__6G_119_6545_80 WirelessChannel = "6g-119-6545-80" + WIRELESSCHANNEL__6G_121_6555_20 WirelessChannel = "6g-121-6555-20" + WIRELESSCHANNEL__6G_123_6565_40 WirelessChannel = "6g-123-6565-40" + WIRELESSCHANNEL__6G_125_6575_20 WirelessChannel = "6g-125-6575-20" + WIRELESSCHANNEL__6G_129_6595_20 WirelessChannel = "6g-129-6595-20" + WIRELESSCHANNEL__6G_131_6605_40 WirelessChannel = "6g-131-6605-40" + WIRELESSCHANNEL__6G_133_6615_20 WirelessChannel = "6g-133-6615-20" + WIRELESSCHANNEL__6G_135_6625_80 WirelessChannel = "6g-135-6625-80" + WIRELESSCHANNEL__6G_137_6635_20 WirelessChannel = "6g-137-6635-20" + WIRELESSCHANNEL__6G_139_6645_40 WirelessChannel = "6g-139-6645-40" + WIRELESSCHANNEL__6G_141_6655_20 WirelessChannel = "6g-141-6655-20" + WIRELESSCHANNEL__6G_143_6665_160 WirelessChannel = "6g-143-6665-160" + WIRELESSCHANNEL__6G_145_6675_20 WirelessChannel = "6g-145-6675-20" + WIRELESSCHANNEL__6G_147_6685_40 WirelessChannel = "6g-147-6685-40" + WIRELESSCHANNEL__6G_149_6695_20 WirelessChannel = "6g-149-6695-20" + WIRELESSCHANNEL__6G_151_6705_80 WirelessChannel = "6g-151-6705-80" + WIRELESSCHANNEL__6G_153_6715_20 WirelessChannel = "6g-153-6715-20" + WIRELESSCHANNEL__6G_155_6725_40 WirelessChannel = "6g-155-6725-40" + WIRELESSCHANNEL__6G_157_6735_20 WirelessChannel = "6g-157-6735-20" + WIRELESSCHANNEL__6G_159_6745_320 WirelessChannel = "6g-159-6745-320" + WIRELESSCHANNEL__6G_161_6755_20 WirelessChannel = "6g-161-6755-20" + WIRELESSCHANNEL__6G_163_6765_40 WirelessChannel = "6g-163-6765-40" + WIRELESSCHANNEL__6G_165_6775_20 WirelessChannel = "6g-165-6775-20" + WIRELESSCHANNEL__6G_167_6785_80 WirelessChannel = "6g-167-6785-80" + WIRELESSCHANNEL__6G_169_6795_20 WirelessChannel = "6g-169-6795-20" + WIRELESSCHANNEL__6G_171_6805_40 WirelessChannel = "6g-171-6805-40" + WIRELESSCHANNEL__6G_173_6815_20 WirelessChannel = "6g-173-6815-20" + WIRELESSCHANNEL__6G_175_6825_160 WirelessChannel = "6g-175-6825-160" + WIRELESSCHANNEL__6G_177_6835_20 WirelessChannel = "6g-177-6835-20" + WIRELESSCHANNEL__6G_179_6845_40 WirelessChannel = "6g-179-6845-40" + WIRELESSCHANNEL__6G_181_6855_20 WirelessChannel = "6g-181-6855-20" + WIRELESSCHANNEL__6G_183_6865_80 WirelessChannel = "6g-183-6865-80" + WIRELESSCHANNEL__6G_185_6875_20 WirelessChannel = "6g-185-6875-20" + WIRELESSCHANNEL__6G_187_6885_40 WirelessChannel = "6g-187-6885-40" + WIRELESSCHANNEL__6G_189_6895_20 WirelessChannel = "6g-189-6895-20" + WIRELESSCHANNEL__6G_193_6915_20 WirelessChannel = "6g-193-6915-20" + WIRELESSCHANNEL__6G_195_6925_40 WirelessChannel = "6g-195-6925-40" + WIRELESSCHANNEL__6G_197_6935_20 WirelessChannel = "6g-197-6935-20" + WIRELESSCHANNEL__6G_199_6945_80 WirelessChannel = "6g-199-6945-80" + WIRELESSCHANNEL__6G_201_6955_20 WirelessChannel = "6g-201-6955-20" + WIRELESSCHANNEL__6G_203_6965_40 WirelessChannel = "6g-203-6965-40" + WIRELESSCHANNEL__6G_205_6975_20 WirelessChannel = "6g-205-6975-20" + WIRELESSCHANNEL__6G_207_6985_160 WirelessChannel = "6g-207-6985-160" + WIRELESSCHANNEL__6G_209_6995_20 WirelessChannel = "6g-209-6995-20" + WIRELESSCHANNEL__6G_211_7005_40 WirelessChannel = "6g-211-7005-40" + WIRELESSCHANNEL__6G_213_7015_20 WirelessChannel = "6g-213-7015-20" + WIRELESSCHANNEL__6G_215_7025_80 WirelessChannel = "6g-215-7025-80" + WIRELESSCHANNEL__6G_217_7035_20 WirelessChannel = "6g-217-7035-20" + WIRELESSCHANNEL__6G_219_7045_40 WirelessChannel = "6g-219-7045-40" + WIRELESSCHANNEL__6G_221_7055_20 WirelessChannel = "6g-221-7055-20" + WIRELESSCHANNEL__6G_225_7075_20 WirelessChannel = "6g-225-7075-20" + WIRELESSCHANNEL__6G_227_7085_40 WirelessChannel = "6g-227-7085-40" + WIRELESSCHANNEL__6G_229_7095_20 WirelessChannel = "6g-229-7095-20" + WIRELESSCHANNEL__6G_233_7115_20 WirelessChannel = "6g-233-7115-20" + WIRELESSCHANNEL__60G_1_58320_2160 WirelessChannel = "60g-1-58320-2160" + WIRELESSCHANNEL__60G_2_60480_2160 WirelessChannel = "60g-2-60480-2160" + WIRELESSCHANNEL__60G_3_62640_2160 WirelessChannel = "60g-3-62640-2160" + WIRELESSCHANNEL__60G_4_64800_2160 WirelessChannel = "60g-4-64800-2160" + WIRELESSCHANNEL__60G_5_66960_2160 WirelessChannel = "60g-5-66960-2160" + WIRELESSCHANNEL__60G_6_69120_2160 WirelessChannel = "60g-6-69120-2160" + WIRELESSCHANNEL__60G_9_59400_4320 WirelessChannel = "60g-9-59400-4320" WIRELESSCHANNEL__60G_10_61560_4320 WirelessChannel = "60g-10-61560-4320" WIRELESSCHANNEL__60G_11_63720_4320 WirelessChannel = "60g-11-63720-4320" WIRELESSCHANNEL__60G_12_65880_4320 WirelessChannel = "60g-12-65880-4320" @@ -217,7 +217,7 @@ const ( WIRELESSCHANNEL__60G_25_61560_6480 WirelessChannel = "60g-25-61560-6480" WIRELESSCHANNEL__60G_26_63720_6480 WirelessChannel = "60g-26-63720-6480" WIRELESSCHANNEL__60G_27_65880_6480 WirelessChannel = "60g-27-65880-6480" - WIRELESSCHANNEL_EMPTY WirelessChannel = "" + WIRELESSCHANNEL_EMPTY WirelessChannel = "" ) // All allowed values of WirelessChannel enum @@ -500,3 +500,4 @@ func (v *NullableWirelessChannel) 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 4825664b88..12c5573810 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the WirelessLAN type satisfies the MappedNullable interface at compile time @@ -21,23 +21,27 @@ 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 NullableWirelessLANGroup `json:"group,omitempty"` - Status *WirelessLANStatus `json:"status,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Tenant NullableTenant `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroup `json:"group,omitempty"` + Status *WirelessLANStatus `json:"status,omitempty"` + Vlan NullableBriefVLAN `json:"vlan,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope,omitempty"` + Tenant NullableBriefTenant `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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,14 +51,12 @@ type _WirelessLAN WirelessLAN // 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 NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime) *WirelessLAN { +func NewWirelessLAN(id int32, url string, display string, ssid string) *WirelessLAN { this := WirelessLAN{} this.Id = id this.Url = url this.Display = display this.Ssid = ssid - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -90,6 +92,7 @@ func (o *WirelessLAN) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *WirelessLAN) GetUrl() string { if o == nil { @@ -114,6 +117,39 @@ func (o *WirelessLAN) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *WirelessLAN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *WirelessLAN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *WirelessLAN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *WirelessLAN) GetDisplay() string { if o == nil { @@ -138,6 +174,7 @@ func (o *WirelessLAN) SetDisplay(v string) { o.Display = v } + // GetSsid returns the Ssid field value func (o *WirelessLAN) GetSsid() string { if o == nil { @@ -162,6 +199,7 @@ func (o *WirelessLAN) SetSsid(v string) { o.Ssid = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLAN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -195,9 +233,9 @@ func (o *WirelessLAN) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetGroup() WirelessLANGroup { +func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroup + var ret BriefWirelessLANGroup return ret } return *o.Group.Get() @@ -206,7 +244,7 @@ func (o *WirelessLAN) GetGroup() WirelessLANGroup { // GetGroupOk returns a tuple with the Group 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 *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool) { +func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool) { if o == nil { return nil, false } @@ -222,11 +260,10 @@ func (o *WirelessLAN) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroup and assigns it to the Group field. -func (o *WirelessLAN) SetGroup(v WirelessLANGroup) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroup and assigns it to the Group field. +func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WirelessLAN) SetGroupNil() { o.Group.Set(nil) @@ -270,9 +307,9 @@ func (o *WirelessLAN) SetStatus(v WirelessLANStatus) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetVlan() VLAN { +func (o *WirelessLAN) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -281,7 +318,7 @@ func (o *WirelessLAN) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan 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 *WirelessLAN) GetVlanOk() (*VLAN, bool) { +func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -297,11 +334,10 @@ func (o *WirelessLAN) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *WirelessLAN) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *WirelessLAN) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WirelessLAN) SetVlanNil() { o.Vlan.Set(nil) @@ -312,10 +348,127 @@ func (o *WirelessLAN) UnsetVlan() { o.Vlan.Unset() } +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLAN) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string + return ret + } + return *o.ScopeType.Get() +} + +// GetScopeTypeOk returns a tuple with the ScopeType 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 *WirelessLAN) GetScopeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ScopeType.Get(), o.ScopeType.IsSet() +} + +// HasScopeType returns a boolean if a field has been set. +func (o *WirelessLAN) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { + return true + } + + return false +} + +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *WirelessLAN) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *WirelessLAN) SetScopeTypeNil() { + o.ScopeType.Set(nil) +} + +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *WirelessLAN) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLAN) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *WirelessLAN) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *WirelessLAN) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *WirelessLAN) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *WirelessLAN) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *WirelessLAN) UnsetScopeId() { + o.ScopeId.Unset() +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLAN) GetScope() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope 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 *WirelessLAN) GetScopeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return &o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *WirelessLAN) HasScope() bool { + if o != nil && !IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given interface{} and assigns it to the Scope field. +func (o *WirelessLAN) SetScope(v interface{}) { + o.Scope = v +} + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetTenant() Tenant { +func (o *WirelessLAN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -324,7 +477,7 @@ func (o *WirelessLAN) GetTenant() Tenant { // 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 *WirelessLAN) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -340,11 +493,10 @@ func (o *WirelessLAN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLAN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLAN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLAN) SetTenantNil() { o.Tenant.Set(nil) @@ -547,18 +699,16 @@ func (o *WirelessLAN) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WirelessLAN) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *WirelessLAN) GetCreatedOk() (*time.Time, bool) { @@ -568,23 +718,39 @@ func (o *WirelessLAN) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *WirelessLAN) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *WirelessLAN) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *WirelessLAN) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *WirelessLAN) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WirelessLAN) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *WirelessLAN) GetLastUpdatedOk() (*time.Time, bool) { @@ -594,13 +760,31 @@ func (o *WirelessLAN) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *WirelessLAN) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *WirelessLAN) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *WirelessLAN) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *WirelessLAN) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o WirelessLAN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -611,6 +795,9 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["ssid"] = o.Ssid if !IsNil(o.Description) { @@ -625,6 +812,15 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { if o.Vlan.IsSet() { toSerialize["vlan"] = o.Vlan.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } + if o.Scope != nil { + toSerialize["scope"] = o.Scope + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -646,8 +842,12 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -665,24 +865,39 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { "url", "display", "ssid", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWirelessLAN := _WirelessLAN{} err = json.Unmarshal(data, &varWirelessLAN) @@ -698,12 +913,16 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") delete(additionalProperties, "description") delete(additionalProperties, "group") delete(additionalProperties, "status") delete(additionalProperties, "vlan") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") + delete(additionalProperties, "scope") delete(additionalProperties, "tenant") delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") @@ -754,3 +973,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 7edf6beb18..392a039f57 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &WirelessLANAuthCipher{} // WirelessLANAuthCipher struct for WirelessLANAuthCipher type WirelessLANAuthCipher struct { - Value *WirelessLANAuthCipherValue `json:"value,omitempty"` - Label *WirelessLANAuthCipherLabel `json:"label,omitempty"` + Value *WirelessLANAuthCipherValue `json:"value,omitempty"` + Label *WirelessLANAuthCipherLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *WirelessLANAuthCipher) SetLabel(v WirelessLANAuthCipherLabel) { } func (o WirelessLANAuthCipher) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableWirelessLANAuthCipher) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go index 212607db6f..6917653e33 100644 --- a/model_wireless_lan_auth_cipher_label.go +++ b/model_wireless_lan_auth_cipher_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,7 @@ type WirelessLANAuthCipherLabel string const ( WIRELESSLANAUTHCIPHERLABEL_AUTO WirelessLANAuthCipherLabel = "Auto" WIRELESSLANAUTHCIPHERLABEL_TKIP WirelessLANAuthCipherLabel = "TKIP" - WIRELESSLANAUTHCIPHERLABEL_AES WirelessLANAuthCipherLabel = "AES" + WIRELESSLANAUTHCIPHERLABEL_AES WirelessLANAuthCipherLabel = "AES" ) // All allowed values of WirelessLANAuthCipherLabel enum @@ -110,3 +110,4 @@ func (v *NullableWirelessLANAuthCipherLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go index e601548bda..d3a27add17 100644 --- a/model_wireless_lan_auth_cipher_value.go +++ b/model_wireless_lan_auth_cipher_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type WirelessLANAuthCipherValue string // List of WirelessLAN_auth_cipher_value const ( - WIRELESSLANAUTHCIPHERVALUE_AUTO WirelessLANAuthCipherValue = "auto" - WIRELESSLANAUTHCIPHERVALUE_TKIP WirelessLANAuthCipherValue = "tkip" - WIRELESSLANAUTHCIPHERVALUE_AES WirelessLANAuthCipherValue = "aes" + WIRELESSLANAUTHCIPHERVALUE_AUTO WirelessLANAuthCipherValue = "auto" + WIRELESSLANAUTHCIPHERVALUE_TKIP WirelessLANAuthCipherValue = "tkip" + WIRELESSLANAUTHCIPHERVALUE_AES WirelessLANAuthCipherValue = "aes" WIRELESSLANAUTHCIPHERVALUE_EMPTY WirelessLANAuthCipherValue = "" ) @@ -112,3 +112,4 @@ func (v *NullableWirelessLANAuthCipherValue) 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 5d67cd3175..75c8e85c18 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &WirelessLANAuthType{} // WirelessLANAuthType struct for WirelessLANAuthType type WirelessLANAuthType struct { - Value *WirelessLANAuthTypeValue `json:"value,omitempty"` - Label *WirelessLANAuthTypeLabel `json:"label,omitempty"` + Value *WirelessLANAuthTypeValue `json:"value,omitempty"` + Label *WirelessLANAuthTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *WirelessLANAuthType) SetLabel(v WirelessLANAuthTypeLabel) { } func (o WirelessLANAuthType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableWirelessLANAuthType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go index 3a804f5bc4..30a4678b5f 100644 --- a/model_wireless_lan_auth_type_label.go +++ b/model_wireless_lan_auth_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ type WirelessLANAuthTypeLabel string // List of WirelessLAN_auth_type_label const ( - WIRELESSLANAUTHTYPELABEL_OPEN WirelessLANAuthTypeLabel = "Open" - WIRELESSLANAUTHTYPELABEL_WEP WirelessLANAuthTypeLabel = "WEP" + WIRELESSLANAUTHTYPELABEL_OPEN WirelessLANAuthTypeLabel = "Open" + WIRELESSLANAUTHTYPELABEL_WEP WirelessLANAuthTypeLabel = "WEP" WIRELESSLANAUTHTYPELABEL_WPA_PERSONAL__PSK WirelessLANAuthTypeLabel = "WPA Personal (PSK)" - WIRELESSLANAUTHTYPELABEL_WPA_ENTERPRISE WirelessLANAuthTypeLabel = "WPA Enterprise" + WIRELESSLANAUTHTYPELABEL_WPA_ENTERPRISE WirelessLANAuthTypeLabel = "WPA Enterprise" ) // All allowed values of WirelessLANAuthTypeLabel enum @@ -112,3 +112,4 @@ func (v *NullableWirelessLANAuthTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go index aa1b05122b..25d37fb5d2 100644 --- a/model_wireless_lan_auth_type_value.go +++ b/model_wireless_lan_auth_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ type WirelessLANAuthTypeValue string // List of WirelessLAN_auth_type_value const ( - WIRELESSLANAUTHTYPEVALUE_OPEN WirelessLANAuthTypeValue = "open" - WIRELESSLANAUTHTYPEVALUE_WEP WirelessLANAuthTypeValue = "wep" - WIRELESSLANAUTHTYPEVALUE_WPA_PERSONAL WirelessLANAuthTypeValue = "wpa-personal" + WIRELESSLANAUTHTYPEVALUE_OPEN WirelessLANAuthTypeValue = "open" + WIRELESSLANAUTHTYPEVALUE_WEP WirelessLANAuthTypeValue = "wep" + WIRELESSLANAUTHTYPEVALUE_WPA_PERSONAL WirelessLANAuthTypeValue = "wpa-personal" WIRELESSLANAUTHTYPEVALUE_WPA_ENTERPRISE WirelessLANAuthTypeValue = "wpa-enterprise" - WIRELESSLANAUTHTYPEVALUE_EMPTY WirelessLANAuthTypeValue = "" + WIRELESSLANAUTHTYPEVALUE_EMPTY WirelessLANAuthTypeValue = "" ) // All allowed values of WirelessLANAuthTypeValue enum @@ -114,3 +114,4 @@ func (v *NullableWirelessLANAuthTypeValue) 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 ca2ffb94fc..6aea61ee3f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,6 +12,7 @@ package netbox import ( "encoding/json" + "time" "fmt" ) @@ -20,14 +21,20 @@ 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"` - Description *string `json:"description,omitempty"` - WirelesslanCount int32 `json:"wirelesslan_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -81,6 +88,7 @@ func (o *WirelessLANGroup) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *WirelessLANGroup) GetUrl() string { if o == nil { @@ -105,6 +113,39 @@ func (o *WirelessLANGroup) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *WirelessLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *WirelessLANGroup) GetDisplay() string { if o == nil { @@ -129,6 +170,7 @@ func (o *WirelessLANGroup) SetDisplay(v string) { o.Display = v } + // GetName returns the Name field value func (o *WirelessLANGroup) GetName() string { if o == nil { @@ -153,6 +195,7 @@ func (o *WirelessLANGroup) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WirelessLANGroup) GetSlug() string { if o == nil { @@ -177,6 +220,49 @@ func (o *WirelessLANGroup) SetSlug(v string) { o.Slug = v } + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedWirelessLANGroup + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent 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 *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedWirelessLANGroup and assigns it to the Parent field. +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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WirelessLANGroup) UnsetParent() { + o.Parent.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +295,154 @@ func (o *WirelessLANGroup) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WirelessLANGroup) 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 *WirelessLANGroup) 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 *WirelessLANGroup) 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 *WirelessLANGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WirelessLANGroup) 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 *WirelessLANGroup) 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 *WirelessLANGroup) 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 *WirelessLANGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANGroup) GetCreated() time.Time { + if o == nil || IsNil(o.Created.Get()) { + var ret time.Time + return ret + } + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created 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 *WirelessLANGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. +func (o *WirelessLANGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *WirelessLANGroup) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *WirelessLANGroup) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANGroup) GetLastUpdated() time.Time { + if o == nil || IsNil(o.LastUpdated.Get()) { + var ret time.Time + return ret + } + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. +func (o *WirelessLANGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *WirelessLANGroup) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *WirelessLANGroup) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + // GetWirelesslanCount returns the WirelesslanCount field value func (o *WirelessLANGroup) GetWirelesslanCount() int32 { if o == nil { @@ -233,6 +467,7 @@ func (o *WirelessLANGroup) SetWirelesslanCount(v int32) { o.WirelesslanCount = v } + // GetDepth returns the Depth field value func (o *WirelessLANGroup) GetDepth() int32 { if o == nil { @@ -257,8 +492,9 @@ func (o *WirelessLANGroup) SetDepth(v int32) { o.Depth = v } + func (o WirelessLANGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -269,12 +505,30 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } toSerialize["wirelesslan_count"] = o.WirelesslanCount toSerialize["_depth"] = o.Depth @@ -299,20 +553,37 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "_depth", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWirelessLANGroup := _WirelessLANGroup{} err = json.Unmarshal(data, &varWirelessLANGroup) @@ -328,10 +599,16 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "parent") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "wirelesslan_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties @@ -375,3 +652,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 7063e6d878..b5b0f216c8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -74,6 +74,7 @@ func (o *WirelessLANGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WirelessLANGroupRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *WirelessLANGroupRequest) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WirelessLANGroupRequest) GetParent() NestedWirelessLANGroupRequest { if o == nil || IsNil(o.Parent.Get()) { @@ -130,7 +132,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) @@ -238,7 +239,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 } @@ -278,20 +279,37 @@ func (o *WirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWirelessLANGroupRequest := _WirelessLANGroupRequest{} err = json.Unmarshal(data, &varWirelessLANGroupRequest) @@ -352,3 +370,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 f2ac3edde1..41ee623682 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WirelessLANRequest{} // WirelessLANRequest Adds support for custom fields and tags. type WirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` - Status *WirelessLANStatusValue `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `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"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Status *WirelessLANStatusValue `json:"status,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `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{} } @@ -79,6 +81,7 @@ func (o *WirelessLANRequest) SetSsid(v string) { o.Ssid = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLANRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,9 +115,9 @@ func (o *WirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +126,7 @@ func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group 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 *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,11 +142,10 @@ func (o *WirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WirelessLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -187,9 +189,9 @@ func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetVlan() VLANRequest { +func (o *WirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +200,7 @@ func (o *WirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan 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 *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,11 +216,10 @@ func (o *WirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WirelessLANRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -229,10 +230,94 @@ func (o *WirelessLANRequest) UnsetVlan() { o.Vlan.Unset() } +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string + return ret + } + return *o.ScopeType.Get() +} + +// GetScopeTypeOk returns a tuple with the ScopeType 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 *WirelessLANRequest) GetScopeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ScopeType.Get(), o.ScopeType.IsSet() +} + +// HasScopeType returns a boolean if a field has been set. +func (o *WirelessLANRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { + return true + } + + return false +} + +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *WirelessLANRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *WirelessLANRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) +} + +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *WirelessLANRequest) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *WirelessLANRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *WirelessLANRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *WirelessLANRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *WirelessLANRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *WirelessLANRequest) UnsetScopeId() { + o.ScopeId.Unset() +} + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetTenant() TenantRequest { +func (o *WirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +326,7 @@ func (o *WirelessLANRequest) GetTenant() TenantRequest { // 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 *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,11 +342,10 @@ func (o *WirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -465,7 +549,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 } @@ -487,6 +571,12 @@ func (o WirelessLANRequest) ToMap() (map[string]interface{}, error) { if o.Vlan.IsSet() { toSerialize["vlan"] = o.Vlan.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -524,20 +614,37 @@ func (o *WirelessLANRequest) UnmarshalJSON(data []byte) (err error) { "ssid", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWirelessLANRequest := _WirelessLANRequest{} err = json.Unmarshal(data, &varWirelessLANRequest) @@ -556,6 +663,8 @@ func (o *WirelessLANRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group") delete(additionalProperties, "status") delete(additionalProperties, "vlan") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "tenant") delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") @@ -604,3 +713,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 0b14b4e127..cc8ebcc04d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &WirelessLANStatus{} // WirelessLANStatus struct for WirelessLANStatus type WirelessLANStatus struct { - Value *WirelessLANStatusValue `json:"value,omitempty"` - Label *WirelessLANStatusLabel `json:"label,omitempty"` + Value *WirelessLANStatusValue `json:"value,omitempty"` + Label *WirelessLANStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *WirelessLANStatus) SetLabel(v WirelessLANStatusLabel) { } func (o WirelessLANStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,3 +188,5 @@ func (v *NullableWirelessLANStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go index 21057de6fb..ae597b3219 100644 --- a/model_wireless_lan_status_label.go +++ b/model_wireless_lan_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type WirelessLANStatusLabel string // List of WirelessLAN_status_label const ( - WIRELESSLANSTATUSLABEL_ACTIVE WirelessLANStatusLabel = "Active" - WIRELESSLANSTATUSLABEL_RESERVED WirelessLANStatusLabel = "Reserved" - WIRELESSLANSTATUSLABEL_DISABLED WirelessLANStatusLabel = "Disabled" + WIRELESSLANSTATUSLABEL_ACTIVE WirelessLANStatusLabel = "Active" + WIRELESSLANSTATUSLABEL_RESERVED WirelessLANStatusLabel = "Reserved" + WIRELESSLANSTATUSLABEL_DISABLED WirelessLANStatusLabel = "Disabled" WIRELESSLANSTATUSLABEL_DEPRECATED WirelessLANStatusLabel = "Deprecated" ) @@ -112,3 +112,4 @@ func (v *NullableWirelessLANStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go index ac9292d675..b6d454329e 100644 --- a/model_wireless_lan_status_value.go +++ b/model_wireless_lan_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ type WirelessLANStatusValue string // List of WirelessLAN_status_value const ( - WIRELESSLANSTATUSVALUE_ACTIVE WirelessLANStatusValue = "active" - WIRELESSLANSTATUSVALUE_RESERVED WirelessLANStatusValue = "reserved" - WIRELESSLANSTATUSVALUE_DISABLED WirelessLANStatusValue = "disabled" + WIRELESSLANSTATUSVALUE_ACTIVE WirelessLANStatusValue = "active" + WIRELESSLANSTATUSVALUE_RESERVED WirelessLANStatusValue = "reserved" + WIRELESSLANSTATUSVALUE_DISABLED WirelessLANStatusValue = "disabled" WIRELESSLANSTATUSVALUE_DEPRECATED WirelessLANStatusValue = "deprecated" - WIRELESSLANSTATUSVALUE_EMPTY WirelessLANStatusValue = "" + WIRELESSLANSTATUSVALUE_EMPTY WirelessLANStatusValue = "" ) // All allowed values of WirelessLANStatusValue enum @@ -114,3 +114,4 @@ func (v *NullableWirelessLANStatusValue) 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 8626318ea7..c1caae9698 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "time" + "fmt" ) // checks if the WirelessLink type satisfies the MappedNullable interface at compile time @@ -21,23 +21,26 @@ 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 Interface `json:"interface_a"` - InterfaceB Interface `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *WirelessLinkStatus `json:"status,omitempty"` - Tenant NullableTenant `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"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + InterfaceA BriefInterface `json:"interface_a"` + InterfaceB BriefInterface `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitDistanceUnit `json:"distance_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,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,15 +50,13 @@ type _WirelessLink WirelessLink // 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 NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime) *WirelessLink { +func NewWirelessLink(id int32, url string, display string, interfaceA BriefInterface, interfaceB BriefInterface) *WirelessLink { this := WirelessLink{} this.Id = id this.Url = url this.Display = display this.InterfaceA = interfaceA this.InterfaceB = interfaceB - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -91,6 +92,7 @@ func (o *WirelessLink) SetId(v int32) { o.Id = v } + // GetUrl returns the Url field value func (o *WirelessLink) GetUrl() string { if o == nil { @@ -115,6 +117,39 @@ func (o *WirelessLink) SetUrl(v string) { o.Url = v } + +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *WirelessLink) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *WirelessLink) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *WirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *WirelessLink) GetDisplay() string { if o == nil { @@ -139,10 +174,11 @@ func (o *WirelessLink) SetDisplay(v string) { o.Display = v } + // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLink) GetInterfaceA() Interface { +func (o *WirelessLink) GetInterfaceA() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -151,7 +187,7 @@ func (o *WirelessLink) GetInterfaceA() Interface { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -159,14 +195,15 @@ func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { } // SetInterfaceA sets field value -func (o *WirelessLink) SetInterfaceA(v Interface) { +func (o *WirelessLink) SetInterfaceA(v BriefInterface) { o.InterfaceA = v } + // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLink) GetInterfaceB() Interface { +func (o *WirelessLink) GetInterfaceB() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -175,7 +212,7 @@ func (o *WirelessLink) GetInterfaceB() Interface { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -183,10 +220,11 @@ func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { } // SetInterfaceB sets field value -func (o *WirelessLink) SetInterfaceB(v Interface) { +func (o *WirelessLink) SetInterfaceB(v BriefInterface) { o.InterfaceB = v } + // GetSsid returns the Ssid field value if set, zero value otherwise. func (o *WirelessLink) GetSsid() string { if o == nil || IsNil(o.Ssid) { @@ -220,9 +258,9 @@ func (o *WirelessLink) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLink) GetStatus() WirelessLinkStatus { +func (o *WirelessLink) GetStatus() CableStatus { if o == nil || IsNil(o.Status) { - var ret WirelessLinkStatus + var ret CableStatus return ret } return *o.Status @@ -230,7 +268,7 @@ func (o *WirelessLink) GetStatus() WirelessLinkStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool) { +func (o *WirelessLink) GetStatusOk() (*CableStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -246,15 +284,15 @@ func (o *WirelessLink) HasStatus() bool { return false } -// SetStatus gets a reference to the given WirelessLinkStatus and assigns it to the Status field. -func (o *WirelessLink) SetStatus(v WirelessLinkStatus) { +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *WirelessLink) SetStatus(v CableStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLink) GetTenant() Tenant { +func (o *WirelessLink) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -263,7 +301,7 @@ func (o *WirelessLink) GetTenant() Tenant { // 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 *WirelessLink) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -279,11 +317,10 @@ func (o *WirelessLink) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLink) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLink) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLink) SetTenantNil() { o.Tenant.Set(nil) @@ -390,6 +427,90 @@ func (o *WirelessLink) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *WirelessLink) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLink) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLink) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLink) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLink) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistanceUnit() CircuitDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *WirelessLink) GetDistanceUnitOk() (*CircuitDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLink) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLink) SetDistanceUnit(v CircuitDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLink) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLink) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLink) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -518,18 +639,16 @@ func (o *WirelessLink) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WirelessLink) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created 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 *WirelessLink) GetCreatedOk() (*time.Time, bool) { @@ -539,23 +658,39 @@ func (o *WirelessLink) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *WirelessLink) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *WirelessLink) SetCreated(v time.Time) { o.Created.Set(&v) } +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *WirelessLink) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *WirelessLink) UnsetCreated() { + o.Created.Unset() +} -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WirelessLink) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated 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 *WirelessLink) GetLastUpdatedOk() (*time.Time, bool) { @@ -565,13 +700,31 @@ func (o *WirelessLink) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *WirelessLink) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *WirelessLink) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *WirelessLink) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *WirelessLink) UnsetLastUpdated() { + o.LastUpdated.Unset() +} func (o WirelessLink) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -582,6 +735,9 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["interface_a"] = o.InterfaceA toSerialize["interface_b"] = o.InterfaceB @@ -603,6 +759,12 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -615,8 +777,12 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -635,24 +801,39 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { "display", "interface_a", "interface_b", - "created", - "last_updated", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWirelessLink := _WirelessLink{} err = json.Unmarshal(data, &varWirelessLink) @@ -668,6 +849,7 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "interface_a") delete(additionalProperties, "interface_b") @@ -677,6 +859,8 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -724,3 +908,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 ac8afc3867..2ad05a580c 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WirelessLinkRequest{} // WirelessLinkRequest Adds support for custom fields and tags. type WirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `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"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_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{} } @@ -41,7 +43,7 @@ type _WirelessLinkRequest WirelessLinkRequest // 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 NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WirelessLinkRequest { +func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WirelessLinkRequest { this := WirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWirelessLinkRequestWithDefaults() *WirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,15 @@ func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { } // SetInterfaceA sets field value -func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } + // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +95,7 @@ func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,10 +103,11 @@ func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { } // SetInterfaceB sets field value -func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } + // GetSsid returns the Ssid field value if set, zero value otherwise. func (o *WirelessLinkRequest) GetSsid() string { if o == nil || IsNil(o.Ssid) { @@ -137,9 +141,9 @@ func (o *WirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +151,7 @@ func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +167,15 @@ func (o *WirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLinkRequest) GetTenant() TenantRequest { +func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +184,7 @@ func (o *WirelessLinkRequest) GetTenant() TenantRequest { // 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 *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,11 +200,10 @@ func (o *WirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLinkRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -307,6 +310,90 @@ func (o *WirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *WirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistanceUnit() CircuitRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *WirelessLinkRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -436,7 +523,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 } @@ -465,6 +552,12 @@ func (o WirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -494,20 +587,37 @@ func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { "interface_b", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWirelessLinkRequest := _WirelessLinkRequest{} err = json.Unmarshal(data, &varWirelessLinkRequest) @@ -529,6 +639,8 @@ func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -574,3 +686,5 @@ func (v *NullableWirelessLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_link_status_label.go b/model_wireless_link_status_label.go deleted file mode 100644 index b4c304acf8..0000000000 --- a/model_wireless_link_status_label.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -NetBox REST API - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 4.0.3 (4.0) -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package netbox - -import ( - "encoding/json" - "fmt" -) - -// WirelessLinkStatusLabel the model 'WirelessLinkStatusLabel' -type WirelessLinkStatusLabel string - -// List of WirelessLink_status_label -const ( - WIRELESSLINKSTATUSLABEL_CONNECTED WirelessLinkStatusLabel = "Connected" - WIRELESSLINKSTATUSLABEL_PLANNED WirelessLinkStatusLabel = "Planned" - WIRELESSLINKSTATUSLABEL_DECOMMISSIONING WirelessLinkStatusLabel = "Decommissioning" -) - -// All allowed values of WirelessLinkStatusLabel enum -var AllowedWirelessLinkStatusLabelEnumValues = []WirelessLinkStatusLabel{ - "Connected", - "Planned", - "Decommissioning", -} - -func (v *WirelessLinkStatusLabel) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := WirelessLinkStatusLabel(value) - for _, existing := range AllowedWirelessLinkStatusLabelEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid WirelessLinkStatusLabel", value) -} - -// NewWirelessLinkStatusLabelFromValue returns a pointer to a valid WirelessLinkStatusLabel -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewWirelessLinkStatusLabelFromValue(v string) (*WirelessLinkStatusLabel, error) { - ev := WirelessLinkStatusLabel(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for WirelessLinkStatusLabel: valid values are %v", v, AllowedWirelessLinkStatusLabelEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v WirelessLinkStatusLabel) IsValid() bool { - for _, existing := range AllowedWirelessLinkStatusLabelEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to WirelessLink_status_label value -func (v WirelessLinkStatusLabel) Ptr() *WirelessLinkStatusLabel { - return &v -} - -type NullableWirelessLinkStatusLabel struct { - value *WirelessLinkStatusLabel - isSet bool -} - -func (v NullableWirelessLinkStatusLabel) Get() *WirelessLinkStatusLabel { - return v.value -} - -func (v *NullableWirelessLinkStatusLabel) Set(val *WirelessLinkStatusLabel) { - v.value = val - v.isSet = true -} - -func (v NullableWirelessLinkStatusLabel) IsSet() bool { - return v.isSet -} - -func (v *NullableWirelessLinkStatusLabel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWirelessLinkStatusLabel(val *WirelessLinkStatusLabel) *NullableWirelessLinkStatusLabel { - return &NullableWirelessLinkStatusLabel{value: val, isSet: true} -} - -func (v NullableWirelessLinkStatusLabel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWirelessLinkStatusLabel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/model_wireless_role.go b/model_wireless_role.go index 8aa2042e34..4c9a665c74 100644 --- a/model_wireless_role.go +++ b/model_wireless_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ type WirelessRole string // List of Wireless_role const ( - WIRELESSROLE_AP WirelessRole = "ap" + WIRELESSROLE_AP WirelessRole = "ap" WIRELESSROLE_STATION WirelessRole = "station" - WIRELESSROLE_EMPTY WirelessRole = "" + WIRELESSROLE_EMPTY WirelessRole = "" ) // All allowed values of WirelessRole enum @@ -110,3 +110,4 @@ func (v *NullableWirelessRole) 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 b16c5390bd..b285a1809d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableAggregateRequest{} // WritableAggregateRequest Adds support for custom fields and tags. type WritableAggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `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 BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `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{} } @@ -37,7 +37,7 @@ type _WritableAggregateRequest WritableAggregateRequest // 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 NewWritableAggregateRequest(prefix string, rir RIRRequest) *WritableAggregateRequest { +func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest) *WritableAggregateRequest { this := WritableAggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -76,10 +76,11 @@ func (o *WritableAggregateRequest) SetPrefix(v string) { o.Prefix = v } + // GetRir returns the Rir field value -func (o *WritableAggregateRequest) GetRir() RIRRequest { +func (o *WritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +89,7 @@ func (o *WritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +97,15 @@ func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *WritableAggregateRequest) SetRir(v RIRRequest) { +func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableAggregateRequest) GetTenant() TenantRequest { +func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +114,7 @@ func (o *WritableAggregateRequest) GetTenant() TenantRequest { // 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 *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,11 +130,10 @@ func (o *WritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest) { 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 +176,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 +315,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 } @@ -361,20 +361,37 @@ func (o *WritableAggregateRequest) UnmarshalJSON(data []byte) (err error) { "rir", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableAggregateRequest := _WritableAggregateRequest{} err = json.Unmarshal(data, &varWritableAggregateRequest) @@ -437,3 +454,5 @@ func (v *NullableWritableAggregateRequest) 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 7d440df5e1..640866f89d 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &WritableCableRequest{} // WritableCableRequest Adds support for custom fields and tags. type WritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `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"` + Type NullableCableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableRequestLengthUnit `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{} } @@ -54,36 +54,46 @@ func NewWritableCableRequestWithDefaults() *WritableCableRequest { return &this } -// GetType returns the Type field value if set, zero value otherwise. -func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCableRequest) GetType() CableType { + if o == nil || IsNil(o.Type.Get()) { + var ret CableType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableCableRequest) GetTypeOk() (*CableType, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritableCableRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType) { - o.Type = &v +// SetType gets a reference to the given NullableCableType and assigns it to the Type field. +func (o *WritableCableRequest) SetType(v CableType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritableCableRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritableCableRequest) UnsetType() { + o.Type.Unset() } // GetATerminations returns the ATerminations field value if set, zero value otherwise. @@ -151,9 +161,9 @@ func (o *WritableCableRequest) SetBTerminations(v []GenericObjectRequest) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +171,7 @@ func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +187,15 @@ func (o *WritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCableRequest) GetTenant() TenantRequest { +func (o *WritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +204,7 @@ func (o *WritableCableRequest) GetTenant() TenantRequest { // 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 *WritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,11 +220,10 @@ func (o *WritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableCableRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -321,7 +330,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) @@ -332,36 +340,46 @@ func (o *WritableCableRequest) UnsetLength() { o.Length.Unset() } -// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { - if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCableRequest) GetLengthUnit() CableRequestLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableRequestLengthUnit return ret } - return *o.LengthUnit + return *o.LengthUnit.Get() } // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { - if o == nil || IsNil(o.LengthUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableCableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) { + if o == nil { return nil, false } - return o.LengthUnit, true + return o.LengthUnit.Get(), o.LengthUnit.IsSet() } // HasLengthUnit returns a boolean if a field has been set. func (o *WritableCableRequest) HasLengthUnit() bool { - if o != nil && !IsNil(o.LengthUnit) { + if o != nil && o.LengthUnit.IsSet() { return true } return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { - o.LengthUnit = &v +// SetLengthUnit gets a reference to the given NullableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *WritableCableRequest) SetLengthUnit(v CableRequestLengthUnit) { + o.LengthUnit.Set(&v) +} +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *WritableCableRequest) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *WritableCableRequest) UnsetLengthUnit() { + o.LengthUnit.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -493,7 +511,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 } @@ -502,8 +520,8 @@ func (o WritableCableRequest) MarshalJSON() ([]byte, error) { func (o WritableCableRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if !IsNil(o.ATerminations) { toSerialize["a_terminations"] = o.ATerminations @@ -526,8 +544,8 @@ func (o WritableCableRequest) ToMap() (map[string]interface{}, error) { if o.Length.IsSet() { toSerialize["length"] = o.Length.Get() } - if !IsNil(o.LengthUnit) { - toSerialize["length_unit"] = o.LengthUnit + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -617,3 +635,5 @@ func (v *NullableWritableCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_circuit_group_assignment_request.go b/model_writable_circuit_group_assignment_request.go new file mode 100644 index 0000000000..59ab8bc319 --- /dev/null +++ b/model_writable_circuit_group_assignment_request.go @@ -0,0 +1,330 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableCircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableCircuitGroupAssignmentRequest{} + +// WritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type WritableCircuitGroupAssignmentRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + MemberType string `json:"member_type"` + MemberId int64 `json:"member_id"` + Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest + +// NewWritableCircuitGroupAssignmentRequest instantiates a new WritableCircuitGroupAssignmentRequest 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 NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, memberType string, memberId int64) *WritableCircuitGroupAssignmentRequest { + this := WritableCircuitGroupAssignmentRequest{} + this.Group = group + this.MemberType = memberType + this.MemberId = memberId + return &this +} + +// NewWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new WritableCircuitGroupAssignmentRequest 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 NewWritableCircuitGroupAssignmentRequestWithDefaults() *WritableCircuitGroupAssignmentRequest { + this := WritableCircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + + +// GetMemberType returns the MemberType field value +func (o *WritableCircuitGroupAssignmentRequest) GetMemberType() string { + if o == nil { + var ret string + return ret + } + + return o.MemberType +} + +// GetMemberTypeOk returns a tuple with the MemberType field value +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetMemberTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MemberType, true +} + +// SetMemberType sets field value +func (o *WritableCircuitGroupAssignmentRequest) SetMemberType(v string) { + o.MemberType = v +} + + +// GetMemberId returns the MemberId field value +func (o *WritableCircuitGroupAssignmentRequest) GetMemberId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.MemberId +} + +// GetMemberIdOk returns a tuple with the MemberId field value +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetMemberIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.MemberId, true +} + +// SetMemberId sets field value +func (o *WritableCircuitGroupAssignmentRequest) SetMemberId(v int64) { + o.MemberId = v +} + + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCircuitGroupAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority { + if o == nil || IsNil(o.Priority.Get()) { + var ret PatchedWritableCircuitGroupAssignmentRequestPriority + return ret + } + return *o.Priority.Get() +} + +// GetPriorityOk returns a tuple with the Priority 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 *WritableCircuitGroupAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool) { + if o == nil { + return nil, false + } + return o.Priority.Get(), o.Priority.IsSet() +} + +// HasPriority returns a boolean if a field has been set. +func (o *WritableCircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && o.Priority.IsSet() { + return true + } + + return false +} + +// SetPriority gets a reference to the given NullablePatchedWritableCircuitGroupAssignmentRequestPriority and assigns it to the Priority field. +func (o *WritableCircuitGroupAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) { + o.Priority.Set(&v) +} +// SetPriorityNil sets the value for Priority to be an explicit nil +func (o *WritableCircuitGroupAssignmentRequest) SetPriorityNil() { + o.Priority.Set(nil) +} + +// UnsetPriority ensures that no value is present for Priority, not even an explicit nil +func (o *WritableCircuitGroupAssignmentRequest) UnsetPriority() { + o.Priority.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableCircuitGroupAssignmentRequest) 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 *WritableCircuitGroupAssignmentRequest) 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 *WritableCircuitGroupAssignmentRequest) 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 *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o WritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableCircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + toSerialize["member_type"] = o.MemberType + toSerialize["member_id"] = o.MemberId + if o.Priority.IsSet() { + toSerialize["priority"] = o.Priority.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + "member_type", + "member_id", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varWritableCircuitGroupAssignmentRequest := _WritableCircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varWritableCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = WritableCircuitGroupAssignmentRequest(varWritableCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "member_type") + delete(additionalProperties, "member_id") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableCircuitGroupAssignmentRequest struct { + value *WritableCircuitGroupAssignmentRequest + isSet bool +} + +func (v NullableWritableCircuitGroupAssignmentRequest) Get() *WritableCircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) Set(val *WritableCircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableCircuitGroupAssignmentRequest(val *WritableCircuitGroupAssignmentRequest) *NullableWritableCircuitGroupAssignmentRequest { + return &NullableWritableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullableWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) 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 8b3bc60b27..1c93e26ed9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,23 @@ var _ MappedNullable = &WritableCircuitRequest{} // WritableCircuitRequest Adds support for custom fields and tags. type WritableCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider ProviderRequest `json:"provider"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type CircuitTypeRequest `json:"type"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `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"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_unit,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,7 +47,7 @@ type _WritableCircuitRequest WritableCircuitRequest // 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 NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest) *WritableCircuitRequest { +func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *WritableCircuitRequest { this := WritableCircuitRequest{} this.Cid = cid this.Provider = provider @@ -84,10 +87,11 @@ func (o *WritableCircuitRequest) SetCid(v string) { o.Cid = v } + // GetProvider returns the Provider field value -func (o *WritableCircuitRequest) GetProvider() ProviderRequest { +func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil { - var ret ProviderRequest + var ret BriefProviderRequest return ret } @@ -96,7 +100,7 @@ func (o *WritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil { return nil, false } @@ -104,14 +108,15 @@ func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { } // SetProvider sets field value -func (o *WritableCircuitRequest) SetProvider(v ProviderRequest) { +func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = v } + // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -120,7 +125,7 @@ func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { // GetProviderAccountOk returns a tuple with the ProviderAccount 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 *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -136,11 +141,10 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } - // SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil func (o *WritableCircuitRequest) SetProviderAccountNil() { o.ProviderAccount.Set(nil) @@ -152,9 +156,9 @@ func (o *WritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value -func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } @@ -163,7 +167,7 @@ func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil { return nil, false } @@ -171,14 +175,15 @@ func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { } // SetType sets field value -func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest) { +func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = v } + // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -186,7 +191,7 @@ func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -202,15 +207,15 @@ func (o *WritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetTenant() TenantRequest { +func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -219,7 +224,7 @@ func (o *WritableCircuitRequest) GetTenant() TenantRequest { // 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 *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -235,11 +240,10 @@ func (o *WritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest) { 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 +286,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 +328,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 +370,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) @@ -411,6 +412,90 @@ func (o *WritableCircuitRequest) SetDescription(v string) { o.Description = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCircuitRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *WritableCircuitRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WritableCircuitRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WritableCircuitRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WritableCircuitRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WritableCircuitRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCircuitRequest) GetDistanceUnit() CircuitRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *WritableCircuitRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WritableCircuitRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WritableCircuitRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WritableCircuitRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WritableCircuitRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *WritableCircuitRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -507,8 +592,40 @@ func (o *WritableCircuitRequest) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *WritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o WritableCircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -541,6 +658,12 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -550,6 +673,9 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -568,20 +694,37 @@ func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableCircuitRequest := _WritableCircuitRequest{} err = json.Unmarshal(data, &varWritableCircuitRequest) @@ -605,9 +748,12 @@ func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "termination_date") delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } @@ -649,3 +795,5 @@ func (v *NullableWritableCircuitRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go index 25402473ef..73850c3af3 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,17 @@ var _ MappedNullable = &WritableClusterRequest{} // WritableClusterRequest Adds support for custom fields and tags. type WritableClusterRequest struct { - Name string `json:"name"` - Type ClusterTypeRequest `json:"type"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `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"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_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{} } @@ -39,7 +40,7 @@ type _WritableClusterRequest WritableClusterRequest // 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 NewWritableClusterRequest(name string, type_ ClusterTypeRequest) *WritableClusterRequest { +func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest) *WritableClusterRequest { this := WritableClusterRequest{} this.Name = name this.Type = type_ @@ -78,10 +79,11 @@ func (o *WritableClusterRequest) SetName(v string) { o.Name = v } + // GetType returns the Type field value -func (o *WritableClusterRequest) GetType() ClusterTypeRequest { +func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } @@ -90,7 +92,7 @@ func (o *WritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil { return nil, false } @@ -98,14 +100,15 @@ func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { } // SetType sets field value -func (o *WritableClusterRequest) SetType(v ClusterTypeRequest) { +func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = v } + // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -114,7 +117,7 @@ func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group 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 *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -130,11 +133,10 @@ func (o *WritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableClusterRequest) SetGroupNil() { o.Group.Set(nil) @@ -146,9 +148,9 @@ func (o *WritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *WritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -156,7 +158,7 @@ func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -172,15 +174,15 @@ func (o *WritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetTenant() TenantRequest { +func (o *WritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -189,7 +191,7 @@ func (o *WritableClusterRequest) GetTenant() TenantRequest { // 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 *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -205,11 +207,10 @@ func (o *WritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableClusterRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -220,47 +221,88 @@ func (o *WritableClusterRequest) UnsetTenant() { o.Tenant.Unset() } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetSite() SiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableClusterRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string return ret } - return *o.Site.Get() + return *o.ScopeType.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetScopeTypeOk returns a tuple with the ScopeType 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 *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableClusterRequest) GetScopeTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.ScopeType.Get(), o.ScopeType.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *WritableClusterRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasScopeType returns a boolean if a field has been set. +func (o *WritableClusterRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableClusterRequest) SetSite(v SiteRequest) { - o.Site.Set(&v) +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *WritableClusterRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *WritableClusterRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) +} + +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *WritableClusterRequest) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableClusterRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *WritableClusterRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *WritableClusterRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false } -// SetSiteNil sets the value for Site to be an explicit nil -func (o *WritableClusterRequest) SetSiteNil() { - o.Site.Set(nil) +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *WritableClusterRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *WritableClusterRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *WritableClusterRequest) UnsetSite() { - o.Site.Unset() +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *WritableClusterRequest) UnsetScopeId() { + o.ScopeId.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -392,7 +434,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 } @@ -412,8 +454,11 @@ func (o WritableClusterRequest) ToMap() (map[string]interface{}, error) { if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -444,20 +489,37 @@ func (o *WritableClusterRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableClusterRequest := _WritableClusterRequest{} err = json.Unmarshal(data, &varWritableClusterRequest) @@ -476,7 +538,8 @@ func (o *WritableClusterRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group") delete(additionalProperties, "status") delete(additionalProperties, "tenant") - delete(additionalProperties, "site") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -522,3 +585,5 @@ func (v *NullableWritableClusterRequest) 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 60b31d0af0..70644f8cd0 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &WritableConsolePortRequest{} // WritableConsolePortRequest Adds support for custom fields and tags. type WritableConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` - Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"` + Speed NullablePatchedWritableConsolePortRequestSpeed `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{} } @@ -41,7 +41,7 @@ type _WritableConsolePortRequest WritableConsolePortRequest // 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 NewWritableConsolePortRequest(device DeviceRequest, name string) *WritableConsolePortRequest { +func NewWritableConsolePortRequest(device BriefDeviceRequest, name string) *WritableConsolePortRequest { this := WritableConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsolePortRequestWithDefaults() *WritableConsolePortRequest { } // GetDevice returns the Device field value -func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,15 @@ func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortRequest) GetModule() ModuleRequest { +func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +93,7 @@ func (o *WritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,11 +109,10 @@ func (o *WritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableConsolePortRequest) SetModuleNil() { o.Module.Set(nil) @@ -147,6 +147,7 @@ func (o *WritableConsolePortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableConsolePortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -179,36 +180,46 @@ func (o *WritableConsolePortRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableConsolePortRequest) GetType() PatchedWritableConsolePortRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritableConsolePortRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *WritableConsolePortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritableConsolePortRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritableConsolePortRequestType and assigns it to the Type field. func (o *WritableConsolePortRequest) SetType(v PatchedWritableConsolePortRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritableConsolePortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritableConsolePortRequest) UnsetType() { + o.Type.Unset() } // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -243,7 +254,6 @@ func (o *WritableConsolePortRequest) HasSpeed() bool { func (o *WritableConsolePortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *WritableConsolePortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -383,7 +393,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 } @@ -400,8 +410,8 @@ func (o WritableConsolePortRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() @@ -435,20 +445,37 @@ func (o *WritableConsolePortRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableConsolePortRequest := _WritableConsolePortRequest{} err = json.Unmarshal(data, &varWritableConsolePortRequest) @@ -513,3 +540,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 afe73d3de3..8b960b6c4e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableConsolePortTemplateRequest{} // WritableConsolePortTemplateRequest 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 WritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +52,9 @@ func NewWritableConsolePortTemplateRequestWithDefaults() *WritableConsolePortTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,11 +79,10 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableConsolePortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -95,9 +94,9 @@ func (o *WritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +105,7 @@ func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,11 +121,10 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableConsolePortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -161,6 +159,7 @@ func (o *WritableConsolePortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableConsolePortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -193,36 +192,46 @@ func (o *WritableConsolePortTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *WritableConsolePortTemplateRequest) GetType() ConsolePortTypeValue { - if o == nil || IsNil(o.Type) { - var ret ConsolePortTypeValue +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableConsolePortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PatchedWritableConsolePortTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableConsolePortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritableConsolePortTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field. -func (o *WritableConsolePortTemplateRequest) SetType(v ConsolePortTypeValue) { - o.Type = &v +// SetType gets a reference to the given NullablePatchedWritableConsolePortTemplateRequestType and assigns it to the Type field. +func (o *WritableConsolePortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritableConsolePortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritableConsolePortTemplateRequest) UnsetType() { + o.Type.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -258,7 +267,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 } @@ -277,8 +286,8 @@ func (o WritableConsolePortTemplateRequest) ToMap() (map[string]interface{}, err if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -299,20 +308,37 @@ func (o *WritableConsolePortTemplateRequest) UnmarshalJSON(data []byte) (err err "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableConsolePortTemplateRequest := _WritableConsolePortTemplateRequest{} err = json.Unmarshal(data, &varWritableConsolePortTemplateRequest) @@ -373,3 +399,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 8f1c21baaf..e4ad0949af 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{} // WritableConsoleServerPortRequest Adds support for custom fields and tags. type WritableConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` - Speed NullablePatchedWritableConsolePortRequestSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortRequestType `json:"type,omitempty"` + Speed NullablePatchedWritableConsolePortRequestSpeed `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{} } @@ -41,7 +41,7 @@ type _WritableConsoleServerPortRequest WritableConsoleServerPortRequest // 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 NewWritableConsoleServerPortRequest(device DeviceRequest, name string) *WritableConsoleServerPortRequest { +func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string) *WritableConsoleServerPortRequest { this := WritableConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsoleServerPortRequestWithDefaults() *WritableConsoleServerPor } // GetDevice returns the Device field value -func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,15 @@ func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) } // SetDevice sets field value -func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +93,7 @@ func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,11 +109,10 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableConsoleServerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -147,6 +147,7 @@ func (o *WritableConsoleServerPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableConsoleServerPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -179,36 +180,46 @@ func (o *WritableConsoleServerPortRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableConsoleServerPortRequest) GetType() PatchedWritableConsolePortRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritableConsolePortRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *WritableConsoleServerPortRequest) GetTypeOk() (*PatchedWritableConsolePortRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritableConsoleServerPortRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableConsolePortRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritableConsolePortRequestType and assigns it to the Type field. func (o *WritableConsoleServerPortRequest) SetType(v PatchedWritableConsolePortRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritableConsoleServerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritableConsoleServerPortRequest) UnsetType() { + o.Type.Unset() } // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -243,7 +254,6 @@ func (o *WritableConsoleServerPortRequest) HasSpeed() bool { func (o *WritableConsoleServerPortRequest) SetSpeed(v PatchedWritableConsolePortRequestSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *WritableConsoleServerPortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -383,7 +393,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 } @@ -400,8 +410,8 @@ func (o WritableConsoleServerPortRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() @@ -435,20 +445,37 @@ func (o *WritableConsoleServerPortRequest) UnmarshalJSON(data []byte) (err error "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableConsoleServerPortRequest := _WritableConsoleServerPortRequest{} err = json.Unmarshal(data, &varWritableConsoleServerPortRequest) @@ -513,3 +540,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 74ef741d93..e2dbd582df 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableConsoleServerPortTemplateRequest{} // WritableConsoleServerPortTemplateRequest 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 WritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *ConsolePortTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritableConsolePortTemplateRequestType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +52,9 @@ func NewWritableConsoleServerPortTemplateRequestWithDefaults() *WritableConsoleS } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeReq // GetDeviceTypeOk returns a tuple with the DeviceType 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 *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,11 +79,10 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableConsoleServerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -95,9 +94,9 @@ func (o *WritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +105,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeReq // GetModuleTypeOk returns a tuple with the ModuleType 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 *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,11 +121,10 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableConsoleServerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -161,6 +159,7 @@ func (o *WritableConsoleServerPortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableConsoleServerPortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -193,36 +192,46 @@ func (o *WritableConsoleServerPortTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *WritableConsoleServerPortTemplateRequest) GetType() ConsolePortTypeValue { - if o == nil || IsNil(o.Type) { - var ret ConsolePortTypeValue +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableConsoleServerPortTemplateRequest) GetType() PatchedWritableConsolePortTemplateRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PatchedWritableConsolePortTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*ConsolePortTypeValue, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableConsoleServerPortTemplateRequest) GetTypeOk() (*PatchedWritableConsolePortTemplateRequestType, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritableConsoleServerPortTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given ConsolePortTypeValue and assigns it to the Type field. -func (o *WritableConsoleServerPortTemplateRequest) SetType(v ConsolePortTypeValue) { - o.Type = &v +// SetType gets a reference to the given NullablePatchedWritableConsolePortTemplateRequestType and assigns it to the Type field. +func (o *WritableConsoleServerPortTemplateRequest) SetType(v PatchedWritableConsolePortTemplateRequestType) { + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritableConsoleServerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritableConsoleServerPortTemplateRequest) UnsetType() { + o.Type.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -258,7 +267,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 } @@ -277,8 +286,8 @@ func (o WritableConsoleServerPortTemplateRequest) ToMap() (map[string]interface{ if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -299,20 +308,37 @@ func (o *WritableConsoleServerPortTemplateRequest) UnmarshalJSON(data []byte) (e "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableConsoleServerPortTemplateRequest := _WritableConsoleServerPortTemplateRequest{} err = json.Unmarshal(data, &varWritableConsoleServerPortTemplateRequest) @@ -373,3 +399,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 39fc360da0..2ed778ae13 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableContactAssignmentRequest{} // WritableContactAssignmentRequest Adds support for custom fields and tags. type WritableContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority NullablePatchedWritableCircuitGroupAssignmentRequestPriority `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _WritableContactAssignmentRequest WritableContactAssignmentRequest // 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 NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *WritableContactAssignmentRequest { +func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *WritableContactAssignmentRequest { this := WritableContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -76,6 +76,7 @@ func (o *WritableContactAssignmentRequest) SetObjectType(v string) { o.ObjectType = v } + // GetObjectId returns the ObjectId field value func (o *WritableContactAssignmentRequest) GetObjectId() int64 { if o == nil { @@ -100,10 +101,11 @@ func (o *WritableContactAssignmentRequest) SetObjectId(v int64) { o.ObjectId = v } + // GetContact returns the Contact field value -func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +114,7 @@ func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +122,15 @@ func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool } // SetContact sets field value -func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +139,7 @@ func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role 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 *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,11 +155,10 @@ func (o *WritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableContactAssignmentRequest) SetRoleNil() { o.Role.Set(nil) @@ -167,36 +169,46 @@ func (o *WritableContactAssignmentRequest) UnsetRole() { o.Role.Unset() } -// GetPriority returns the Priority field value if set, zero value otherwise. -func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { - if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableContactAssignmentRequest) GetPriority() PatchedWritableCircuitGroupAssignmentRequestPriority { + if o == nil || IsNil(o.Priority.Get()) { + var ret PatchedWritableCircuitGroupAssignmentRequestPriority return ret } - return *o.Priority + return *o.Priority.Get() } // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { - if o == nil || IsNil(o.Priority) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableContactAssignmentRequest) GetPriorityOk() (*PatchedWritableCircuitGroupAssignmentRequestPriority, bool) { + if o == nil { return nil, false } - return o.Priority, true + return o.Priority.Get(), o.Priority.IsSet() } // HasPriority returns a boolean if a field has been set. func (o *WritableContactAssignmentRequest) HasPriority() bool { - if o != nil && !IsNil(o.Priority) { + if o != nil && o.Priority.IsSet() { return true } return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { - o.Priority = &v +// SetPriority gets a reference to the given NullablePatchedWritableCircuitGroupAssignmentRequestPriority and assigns it to the Priority field. +func (o *WritableContactAssignmentRequest) SetPriority(v PatchedWritableCircuitGroupAssignmentRequestPriority) { + o.Priority.Set(&v) +} +// SetPriorityNil sets the value for Priority to be an explicit nil +func (o *WritableContactAssignmentRequest) SetPriorityNil() { + o.Priority.Set(nil) +} + +// UnsetPriority ensures that no value is present for Priority, not even an explicit nil +func (o *WritableContactAssignmentRequest) UnsetPriority() { + o.Priority.Unset() } // GetTags returns the Tags field value if set, zero value otherwise. @@ -264,7 +276,7 @@ func (o *WritableContactAssignmentRequest) SetCustomFields(v map[string]interfac } func (o WritableContactAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -279,8 +291,8 @@ func (o WritableContactAssignmentRequest) ToMap() (map[string]interface{}, error if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } - if !IsNil(o.Priority) { - toSerialize["priority"] = o.Priority + if o.Priority.IsSet() { + toSerialize["priority"] = o.Priority.Get() } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -306,20 +318,37 @@ func (o *WritableContactAssignmentRequest) UnmarshalJSON(data []byte) (err error "contact", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableContactAssignmentRequest := _WritableContactAssignmentRequest{} err = json.Unmarshal(data, &varWritableContactAssignmentRequest) @@ -381,3 +410,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 18c9c5d250..37e8c6ef56 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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"` - 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -35,11 +35,10 @@ type _WritableContactGroupRequest WritableContactGroupRequest // 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 NewWritableContactGroupRequest(name string, slug string, parent NullableInt32) *WritableContactGroupRequest { +func NewWritableContactGroupRequest(name string, slug string) *WritableContactGroupRequest { this := WritableContactGroupRequest{} this.Name = name this.Slug = slug - this.Parent = parent return &this } @@ -75,6 +74,7 @@ func (o *WritableContactGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableContactGroupRequest) GetSlug() string { if o == nil { @@ -99,18 +99,17 @@ func (o *WritableContactGroupRequest) SetSlug(v string) { o.Slug = v } -// GetParent returns the Parent field value -// If the value is explicit nil, the zero value for int32 will be returned + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableContactGroupRequest) GetParent() int32 { - if o == nil || o.Parent.Get() == nil { + if o == nil || IsNil(o.Parent.Get()) { var ret int32 return ret } - return *o.Parent.Get() } -// GetParentOk returns a tuple with the Parent field value +// GetParentOk returns a tuple with the Parent 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 *WritableContactGroupRequest) GetParentOk() (*int32, bool) { @@ -120,10 +119,28 @@ func (o *WritableContactGroupRequest) GetParentOk() (*int32, bool) { return o.Parent.Get(), o.Parent.IsSet() } -// SetParent sets field value +// HasParent returns a boolean if a field has been set. +func (o *WritableContactGroupRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field. 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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WritableContactGroupRequest) UnsetParent() { + o.Parent.Unset() +} // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableContactGroupRequest) GetDescription() string { @@ -222,7 +239,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 } @@ -233,7 +250,9 @@ func (o WritableContactGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["parent"] = o.Parent.Get() + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -258,23 +277,39 @@ func (o *WritableContactGroupRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", - "parent", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableContactGroupRequest := _WritableContactGroupRequest{} err = json.Unmarshal(data, &varWritableContactGroupRequest) @@ -335,3 +370,5 @@ func (v *NullableWritableContactGroupRequest) 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 index 204ccffd13..f18b2f5ffe 100644 --- a/model_writable_custom_field_choice_set_request.go +++ b/model_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ 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"` - BaseChoices *PatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"` - ExtraChoices [][]interface{} `json:"extra_choices"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + BaseChoices NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices `json:"base_choices,omitempty"` + ExtraChoices [][]interface{} `json:"extra_choices"` // Choices are automatically ordered alphabetically - OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ 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) { @@ -106,36 +107,46 @@ func (o *WritableCustomFieldChoiceSetRequest) SetDescription(v string) { o.Description = &v } -// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise. +// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() PatchedWritableCustomFieldChoiceSetRequestBaseChoices { - if o == nil || IsNil(o.BaseChoices) { + if o == nil || IsNil(o.BaseChoices.Get()) { var ret PatchedWritableCustomFieldChoiceSetRequestBaseChoices return ret } - return *o.BaseChoices + return *o.BaseChoices.Get() } // GetBaseChoicesOk returns a tuple with the BaseChoices 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) GetBaseChoicesOk() (*PatchedWritableCustomFieldChoiceSetRequestBaseChoices, bool) { - if o == nil || IsNil(o.BaseChoices) { + if o == nil { return nil, false } - return o.BaseChoices, true + return o.BaseChoices.Get(), o.BaseChoices.IsSet() } // HasBaseChoices returns a boolean if a field has been set. func (o *WritableCustomFieldChoiceSetRequest) HasBaseChoices() bool { - if o != nil && !IsNil(o.BaseChoices) { + if o != nil && o.BaseChoices.IsSet() { return true } return false } -// SetBaseChoices gets a reference to the given PatchedWritableCustomFieldChoiceSetRequestBaseChoices and assigns it to the BaseChoices field. +// SetBaseChoices gets a reference to the given NullablePatchedWritableCustomFieldChoiceSetRequestBaseChoices and assigns it to the BaseChoices field. func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v PatchedWritableCustomFieldChoiceSetRequestBaseChoices) { - o.BaseChoices = &v + o.BaseChoices.Set(&v) +} +// SetBaseChoicesNil sets the value for BaseChoices to be an explicit nil +func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoicesNil() { + o.BaseChoices.Set(nil) +} + +// UnsetBaseChoices ensures that no value is present for BaseChoices, not even an explicit nil +func (o *WritableCustomFieldChoiceSetRequest) UnsetBaseChoices() { + o.BaseChoices.Unset() } // GetExtraChoices returns the ExtraChoices field value @@ -162,6 +173,7 @@ func (o *WritableCustomFieldChoiceSetRequest) SetExtraChoices(v [][]interface{}) 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) { @@ -195,7 +207,7 @@ func (o *WritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool) { } func (o WritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -208,8 +220,8 @@ func (o WritableCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, er if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.BaseChoices) { - toSerialize["base_choices"] = o.BaseChoices + if o.BaseChoices.IsSet() { + toSerialize["base_choices"] = o.BaseChoices.Get() } toSerialize["extra_choices"] = o.ExtraChoices if !IsNil(o.OrderAlphabetically) { @@ -232,20 +244,37 @@ func (o *WritableCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err er "extra_choices", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableCustomFieldChoiceSetRequest := _WritableCustomFieldChoiceSetRequest{} err = json.Unmarshal(data, &varWritableCustomFieldChoiceSetRequest) @@ -305,3 +334,5 @@ func (v *NullableWritableCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) 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 5429f4cc5a..e1480b7599 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,27 +20,31 @@ var _ MappedNullable = &WritableCustomFieldRequest{} // WritableCustomFieldRequest 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 WritableCustomFieldRequest struct { - ObjectTypes []string `json:"object_types"` - Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"` - RelatedObjectType NullableString `json:"related_object_type,omitempty"` + ObjectTypes []string `json:"object_types"` + Type *PatchedWritableCustomFieldRequestType `json:"type,omitempty"` + RelatedObjectType NullableString `json:"related_object_type,omitempty"` // Internal field name - Name string `json:"name"` + Name string `json:"name" validate:"regexp=^[a-z0-9_]+$"` // 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. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,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 *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` - UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"` - UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"` + SearchWeight *int32 `json:"search_weight,omitempty"` + FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` + UiVisible *PatchedWritableCustomFieldRequestUiVisible `json:"ui_visible,omitempty"` + UiEditable *PatchedWritableCustomFieldRequestUiEditable `json:"ui_editable,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type WritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `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"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -99,6 +103,7 @@ func (o *WritableCustomFieldRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetType returns the Type field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetType() PatchedWritableCustomFieldRequestType { if o == nil || IsNil(o.Type) { @@ -163,7 +168,6 @@ func (o *WritableCustomFieldRequest) HasRelatedObjectType() bool { func (o *WritableCustomFieldRequest) SetRelatedObjectType(v string) { o.RelatedObjectType.Set(&v) } - // SetRelatedObjectTypeNil sets the value for RelatedObjectType to be an explicit nil func (o *WritableCustomFieldRequest) SetRelatedObjectTypeNil() { o.RelatedObjectType.Set(nil) @@ -198,6 +202,7 @@ func (o *WritableCustomFieldRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -326,6 +331,38 @@ func (o *WritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *WritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *WritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -519,6 +556,39 @@ func (o *WritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter 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) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -583,7 +653,6 @@ func (o *WritableCustomFieldRequest) HasValidationMinimum() bool { func (o *WritableCustomFieldRequest) SetValidationMinimum(v int64) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *WritableCustomFieldRequest) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -626,7 +695,6 @@ func (o *WritableCustomFieldRequest) HasValidationMaximum() bool { func (o *WritableCustomFieldRequest) SetValidationMaximum(v int64) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *WritableCustomFieldRequest) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -670,9 +738,9 @@ func (o *WritableCustomFieldRequest) SetValidationRegex(v 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() CustomFieldChoiceSetRequest { +func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -681,7 +749,7 @@ func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest // 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) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -697,11 +765,10 @@ func (o *WritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } - // SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil func (o *WritableCustomFieldRequest) SetChoiceSetNil() { o.ChoiceSet.Set(nil) @@ -745,7 +812,7 @@ func (o *WritableCustomFieldRequest) SetComments(v string) { } func (o WritableCustomFieldRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -774,6 +841,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -792,6 +862,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -827,20 +900,37 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableCustomFieldRequest := _WritableCustomFieldRequest{} err = json.Unmarshal(data, &varWritableCustomFieldRequest) @@ -862,12 +952,14 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") @@ -915,3 +1007,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 d661bb97cf..9cf2ae86cd 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritableDataSourceRequest{} // WritableDataSourceRequest Adds support for custom fields and tags. type WritableDataSourceRequest struct { - Name string `json:"name"` - 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 interface{} `json:"parameters,omitempty"` + Name string `json:"name"` + Type string `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,6 +79,7 @@ func (o *WritableDataSourceRequest) SetName(v string) { o.Name = v } + // GetType returns the Type field value func (o *WritableDataSourceRequest) GetType() string { if o == nil { @@ -103,6 +104,7 @@ func (o *WritableDataSourceRequest) SetType(v string) { o.Type = v } + // GetSourceUrl returns the SourceUrl field value func (o *WritableDataSourceRequest) GetSourceUrl() string { if o == nil { @@ -127,6 +129,7 @@ func (o *WritableDataSourceRequest) SetSourceUrl(v string) { o.SourceUrl = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableDataSourceRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -191,38 +194,6 @@ func (o *WritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *WritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *WritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *WritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +259,38 @@ func (o *WritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -321,7 +324,7 @@ func (o *WritableDataSourceRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableDataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -339,15 +342,15 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -369,20 +372,37 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) { "source_url", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableDataSourceRequest := _WritableDataSourceRequest{} err = json.Unmarshal(data, &varWritableDataSourceRequest) @@ -401,9 +421,9 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } @@ -446,3 +466,5 @@ func (v *NullableWritableDataSourceRequest) 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 4275e29a1c..bf586601be 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "fmt" "os" + "fmt" ) // checks if the WritableDeviceTypeRequest type satisfies the MappedNullable interface at compile time @@ -21,27 +21,27 @@ var _ MappedNullable = &WritableDeviceTypeRequest{} // WritableDeviceTypeRequest Adds support for custom fields and tags. type WritableDeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` // 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"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `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"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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{} } @@ -51,7 +51,7 @@ type _WritableDeviceTypeRequest WritableDeviceTypeRequest // 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 NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { +func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { this := WritableDeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -72,9 +72,9 @@ func NewWritableDeviceTypeRequestWithDefaults() *WritableDeviceTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -83,7 +83,7 @@ func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -91,14 +91,15 @@ func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } + // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -107,7 +108,7 @@ func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { // GetDefaultPlatformOk returns a tuple with the DefaultPlatform 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 *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -123,11 +124,10 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } - // SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil func (o *WritableDeviceTypeRequest) SetDefaultPlatformNil() { o.DefaultPlatform.Set(nil) @@ -162,6 +162,7 @@ func (o *WritableDeviceTypeRequest) SetModel(v string) { o.Model = v } + // GetSlug returns the Slug field value func (o *WritableDeviceTypeRequest) GetSlug() string { if o == nil { @@ -186,6 +187,7 @@ func (o *WritableDeviceTypeRequest) SetSlug(v string) { o.Slug = v } + // GetPartNumber returns the PartNumber field value if set, zero value otherwise. func (o *WritableDeviceTypeRequest) GetPartNumber() string { if o == nil || IsNil(o.PartNumber) { @@ -314,68 +316,88 @@ func (o *WritableDeviceTypeRequest) SetIsFullDepth(v bool) { o.IsFullDepth = &v } -// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise. +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDeviceTypeRequest) GetSubdeviceRole() ParentChildStatus1 { - if o == nil || IsNil(o.SubdeviceRole) { + if o == nil || IsNil(o.SubdeviceRole.Get()) { var ret ParentChildStatus1 return ret } - return *o.SubdeviceRole + return *o.SubdeviceRole.Get() } // GetSubdeviceRoleOk returns a tuple with the SubdeviceRole 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 *WritableDeviceTypeRequest) GetSubdeviceRoleOk() (*ParentChildStatus1, bool) { - if o == nil || IsNil(o.SubdeviceRole) { + if o == nil { return nil, false } - return o.SubdeviceRole, true + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() } // HasSubdeviceRole returns a boolean if a field has been set. func (o *WritableDeviceTypeRequest) HasSubdeviceRole() bool { - if o != nil && !IsNil(o.SubdeviceRole) { + if o != nil && o.SubdeviceRole.IsSet() { return true } return false } -// SetSubdeviceRole gets a reference to the given ParentChildStatus1 and assigns it to the SubdeviceRole field. +// SetSubdeviceRole gets a reference to the given NullableParentChildStatus1 and assigns it to the SubdeviceRole field. func (o *WritableDeviceTypeRequest) SetSubdeviceRole(v ParentChildStatus1) { - o.SubdeviceRole = &v + o.SubdeviceRole.Set(&v) +} +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *WritableDeviceTypeRequest) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *WritableDeviceTypeRequest) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *WritableDeviceTypeRequest) GetAirflow() DeviceAirflowValue { - if o == nil || IsNil(o.Airflow) { - var ret DeviceAirflowValue +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableDeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow return ret } - return *o.Airflow + return *o.Airflow.Get() } // GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetAirflowOk() (*DeviceAirflowValue, bool) { - if o == nil || IsNil(o.Airflow) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableDeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { return nil, false } - return o.Airflow, true + return o.Airflow.Get(), o.Airflow.IsSet() } // HasAirflow returns a boolean if a field has been set. func (o *WritableDeviceTypeRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { + if o != nil && o.Airflow.IsSet() { return true } return false } -// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field. -func (o *WritableDeviceTypeRequest) SetAirflow(v DeviceAirflowValue) { - o.Airflow = &v +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *WritableDeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *WritableDeviceTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *WritableDeviceTypeRequest) UnsetAirflow() { + o.Airflow.Unset() } // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). @@ -410,7 +432,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) @@ -421,36 +442,46 @@ func (o *WritableDeviceTypeRequest) UnsetWeight() { o.Weight.Unset() } -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit return ret } - return *o.WeightUnit + return *o.WeightUnit.Get() } // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { - if o == nil || IsNil(o.WeightUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { return nil, false } - return o.WeightUnit, true + return o.WeightUnit.Get(), o.WeightUnit.IsSet() } // HasWeightUnit returns a boolean if a field has been set. func (o *WritableDeviceTypeRequest) HasWeightUnit() bool { - if o != nil && !IsNil(o.WeightUnit) { + if o != nil && o.WeightUnit.IsSet() { return true } return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { - o.WeightUnit = &v +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *WritableDeviceTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *WritableDeviceTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() } // GetFrontImage returns the FrontImage field value if set, zero value otherwise. @@ -646,7 +677,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 } @@ -673,17 +704,17 @@ func (o WritableDeviceTypeRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsFullDepth) { toSerialize["is_full_depth"] = o.IsFullDepth } - if !IsNil(o.SubdeviceRole) { - toSerialize["subdevice_role"] = o.SubdeviceRole + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } - if !IsNil(o.WeightUnit) { - toSerialize["weight_unit"] = o.WeightUnit + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() } if !IsNil(o.FrontImage) { toSerialize["front_image"] = o.FrontImage @@ -721,20 +752,37 @@ func (o *WritableDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableDeviceTypeRequest := _WritableDeviceTypeRequest{} err = json.Unmarshal(data, &varWritableDeviceTypeRequest) @@ -807,3 +855,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 ee7fcd1a6b..e75700d855 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,41 +20,41 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{} // WritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type WritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `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 SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face RackFace1 `json:"face"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face NullableRackFace1 `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"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,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"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -64,12 +64,11 @@ 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 DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { +func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *WritableDeviceWithConfigContextRequest { this := WritableDeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role this.Site = site - this.Face = face return &this } @@ -113,7 +112,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) @@ -125,9 +123,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -136,7 +134,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -144,14 +142,15 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeR } // SetDeviceType sets field value -func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } + // GetRole returns the Role field value -func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -160,7 +159,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -168,14 +167,15 @@ func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest } // SetRole sets field value -func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -184,7 +184,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { // 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 *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -200,11 +200,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -216,9 +215,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -227,7 +226,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform 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) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -243,11 +242,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -322,7 +320,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) @@ -334,9 +331,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -345,7 +342,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -353,14 +350,15 @@ func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool } // SetSite sets field value -func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } + // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -369,7 +367,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location 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) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -385,11 +383,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetLocationNil() { o.Location.Set(nil) @@ -401,9 +398,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -412,7 +409,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*RackRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -428,11 +425,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetRackNil() { o.Rack.Set(nil) @@ -475,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) @@ -486,28 +481,46 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPosition() { o.Position.Unset() } -// GetFace returns the Face field value +// GetFace returns the Face field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDeviceWithConfigContextRequest) GetFace() RackFace1 { - if o == nil { + if o == nil || IsNil(o.Face.Get()) { var ret RackFace1 return ret } - - return o.Face + return *o.Face.Get() } -// GetFaceOk returns a tuple with the Face field value +// GetFaceOk returns a tuple with the Face 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) GetFaceOk() (*RackFace1, bool) { if o == nil { return nil, false } - return &o.Face, true + return o.Face.Get(), o.Face.IsSet() } -// SetFace sets field value +// HasFace returns a boolean if a field has been set. +func (o *WritableDeviceWithConfigContextRequest) HasFace() bool { + if o != nil && o.Face.IsSet() { + return true + } + + return false +} + +// SetFace gets a reference to the given NullableRackFace1 and assigns it to the Face field. func (o *WritableDeviceWithConfigContextRequest) SetFace(v RackFace1) { - o.Face = v + o.Face.Set(&v) +} +// SetFaceNil sets the value for Face to be an explicit nil +func (o *WritableDeviceWithConfigContextRequest) SetFaceNil() { + o.Face.Set(nil) +} + +// UnsetFace ensures that no value is present for Face, not even an explicit nil +func (o *WritableDeviceWithConfigContextRequest) UnsetFace() { + o.Face.Unset() } // GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). @@ -542,7 +555,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasLatitude() bool { 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) @@ -585,7 +597,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasLongitude() bool { 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) @@ -628,42 +639,52 @@ func (o *WritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue) o.Status = &v } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *WritableDeviceWithConfigContextRequest) GetAirflow() DeviceAirflowValue { - if o == nil || IsNil(o.Airflow) { - var ret DeviceAirflowValue +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableDeviceWithConfigContextRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow return ret } - return *o.Airflow + return *o.Airflow.Get() } // GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceAirflowValue, bool) { - if o == nil || IsNil(o.Airflow) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { return nil, false } - return o.Airflow, true + return o.Airflow.Get(), o.Airflow.IsSet() } // HasAirflow returns a boolean if a field has been set. func (o *WritableDeviceWithConfigContextRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { + if o != nil && o.Airflow.IsSet() { return true } return false } -// SetAirflow gets a reference to the given DeviceAirflowValue and assigns it to the Airflow field. -func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) { - o.Airflow = &v +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *WritableDeviceWithConfigContextRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *WritableDeviceWithConfigContextRequest) UnsetAirflow() { + o.Airflow.Unset() } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -672,7 +693,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -688,11 +709,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -704,9 +724,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -715,7 +735,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -731,11 +751,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -747,9 +766,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -758,7 +777,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // 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() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -774,11 +793,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } - // SetOobIpNil sets the value for OobIp to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetOobIpNil() { o.OobIp.Set(nil) @@ -790,9 +808,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -801,7 +819,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster 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) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -817,11 +835,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -833,9 +850,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -844,7 +861,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChas // GetVirtualChassisOk returns a tuple with the VirtualChassis 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) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -860,11 +877,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -907,7 +923,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) @@ -950,7 +965,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) @@ -1026,9 +1040,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1037,7 +1051,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTempl // 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() (*ConfigTemplateRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1053,11 +1067,10 @@ func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -1166,7 +1179,7 @@ func (o *WritableDeviceWithConfigContextRequest) SetCustomFields(v map[string]in } func (o WritableDeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1202,7 +1215,9 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, if o.Position.IsSet() { toSerialize["position"] = o.Position.Get() } - toSerialize["face"] = o.Face + if o.Face.IsSet() { + toSerialize["face"] = o.Face.Get() + } if o.Latitude.IsSet() { toSerialize["latitude"] = o.Latitude.Get() } @@ -1212,8 +1227,8 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() } if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() @@ -1270,23 +1285,39 @@ func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(data []byte) (err "device_type", "role", "site", - "face", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableDeviceWithConfigContextRequest := _WritableDeviceWithConfigContextRequest{} err = json.Unmarshal(data, &varWritableDeviceWithConfigContextRequest) @@ -1370,3 +1401,5 @@ func (v *NullableWritableDeviceWithConfigContextRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go index 266bff6f0b..3a52ebc815 100644 --- a/model_writable_event_rule_request.go +++ b/model_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,18 @@ var _ MappedNullable = &WritableEventRuleRequest{} // WritableEventRuleRequest Adds support for custom fields and tags. type WritableEventRuleRequest struct { ObjectTypes []string `json:"object_types"` - Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. - Conditions interface{} `json:"conditions,omitempty"` - ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` - ActionObjectType string `json:"action_object_type"` - ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` - Description *string `json:"description,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Conditions interface{} `json:"conditions,omitempty"` + ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` + ActionObjectType string `json:"action_object_type"` + ActionObjectId NullableInt64 `json:"action_object_id,omitempty"` + Description *string `json:"description,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,10 +42,11 @@ type _WritableEventRuleRequest WritableEventRuleRequest // 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 NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string) *WritableEventRuleRequest { +func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string) *WritableEventRuleRequest { this := WritableEventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionObjectType = actionObjectType return &this } @@ -90,6 +83,7 @@ func (o *WritableEventRuleRequest) SetObjectTypes(v []string) { o.ObjectTypes = v } + // GetName returns the Name field value func (o *WritableEventRuleRequest) GetName() string { if o == nil { @@ -114,165 +108,6 @@ func (o *WritableEventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *WritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *WritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *WritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *WritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableEventRuleRequest) GetEnabled() bool { @@ -306,6 +141,31 @@ func (o *WritableEventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableEventRuleRequest) GetConditions() interface{} { if o == nil { @@ -395,6 +255,7 @@ func (o *WritableEventRuleRequest) SetActionObjectType(v string) { o.ActionObjectType = v } + // GetActionObjectId returns the ActionObjectId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableEventRuleRequest) GetActionObjectId() int64 { if o == nil || IsNil(o.ActionObjectId.Get()) { @@ -427,7 +288,6 @@ func (o *WritableEventRuleRequest) HasActionObjectId() bool { func (o *WritableEventRuleRequest) SetActionObjectId(v int64) { o.ActionObjectId.Set(&v) } - // SetActionObjectIdNil sets the value for ActionObjectId to be an explicit nil func (o *WritableEventRuleRequest) SetActionObjectIdNil() { o.ActionObjectId.Set(nil) @@ -535,7 +395,7 @@ func (o *WritableEventRuleRequest) SetTags(v []NestedTagRequest) { } func (o WritableEventRuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -546,24 +406,10 @@ func (o WritableEventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -598,23 +444,41 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_object_type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableEventRuleRequest := _WritableEventRuleRequest{} err = json.Unmarshal(data, &varWritableEventRuleRequest) @@ -630,12 +494,8 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") @@ -684,3 +544,5 @@ func (v *NullableWritableEventRuleRequest) UnmarshalJSON(src []byte) error { 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 a8fb95366d..5a6faee8b8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &WritableFrontPortRequest{} // WritableFrontPortRequest Adds support for custom fields and tags. type WritableFrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort int32 `json:"rear_port"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + 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{} } @@ -44,14 +44,12 @@ type _WritableFrontPortRequest WritableFrontPortRequest // 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 NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { +func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { this := WritableFrontPortRequest{} this.Device = device this.Name = name this.Type = type_ this.RearPort = rearPort - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -60,15 +58,13 @@ func NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontP // but it doesn't guarantee that properties required by API are set func NewWritableFrontPortRequestWithDefaults() *WritableFrontPortRequest { this := WritableFrontPortRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } // GetDevice returns the Device field value -func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +73,7 @@ func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +81,15 @@ func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortRequest) GetModule() ModuleRequest { +func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +98,7 @@ func (o *WritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,11 +114,10 @@ func (o *WritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableFrontPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -156,6 +152,7 @@ func (o *WritableFrontPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableFrontPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -212,6 +209,7 @@ func (o *WritableFrontPortRequest) SetType(v FrontPortTypeValue) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *WritableFrontPortRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -268,6 +266,7 @@ func (o *WritableFrontPortRequest) SetRearPort(v int32) { o.RearPort = v } + // GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise. func (o *WritableFrontPortRequest) GetRearPortPosition() int32 { if o == nil || IsNil(o.RearPortPosition) { @@ -429,7 +428,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 } @@ -485,20 +484,37 @@ func (o *WritableFrontPortRequest) UnmarshalJSON(data []byte) (err error) { "rear_port", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableFrontPortRequest := _WritableFrontPortRequest{} err = json.Unmarshal(data, &varWritableFrontPortRequest) @@ -565,3 +581,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 135e41ea93..86a88114e9 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableFrontPortTemplateRequest{} // WritableFrontPortTemplateRequest 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 WritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + RearPort BriefRearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,13 +40,11 @@ type _WritableFrontPortTemplateRequest WritableFrontPortTemplateRequest // 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 NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *WritableFrontPortTemplateRequest { +func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *WritableFrontPortTemplateRequest { this := WritableFrontPortTemplateRequest{} this.Name = name this.Type = type_ this.RearPort = rearPort - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } @@ -55,15 +53,13 @@ func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, // but it doesn't guarantee that properties required by API are set func NewWritableFrontPortTemplateRequestWithDefaults() *WritableFrontPortTemplateRequest { this := WritableFrontPortTemplateRequest{} - var rearPortPosition int32 = 1 - this.RearPortPosition = &rearPortPosition return &this } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +68,7 @@ func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,11 +84,10 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableFrontPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -104,9 +99,9 @@ func (o *WritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +110,7 @@ func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,11 +126,10 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableFrontPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -170,6 +164,7 @@ func (o *WritableFrontPortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableFrontPortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -226,6 +221,7 @@ func (o *WritableFrontPortTemplateRequest) SetType(v FrontPortTypeValue) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *WritableFrontPortTemplateRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -259,9 +255,9 @@ func (o *WritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +266,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,10 +274,11 @@ func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateReq } // SetRearPort sets field value -func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } + // GetRearPortPosition returns the RearPortPosition field value if set, zero value otherwise. func (o *WritableFrontPortTemplateRequest) GetRearPortPosition() int32 { if o == nil || IsNil(o.RearPortPosition) { @@ -347,7 +344,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 } @@ -395,20 +392,37 @@ func (o *WritableFrontPortTemplateRequest) UnmarshalJSON(data []byte) (err error "rear_port", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableFrontPortTemplateRequest := _WritableFrontPortTemplateRequest{} err = json.Unmarshal(data, &varWritableFrontPortTemplateRequest) @@ -472,3 +486,5 @@ func (v *NullableWritableFrontPortTemplateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go index d734a972df..ef0e97a8b8 100644 --- a/model_writable_ike_policy_request.go +++ b/model_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &WritableIKEPolicyRequest{} // WritableIKEPolicyRequest Adds support for custom fields and tags. type WritableIKEPolicyRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"` - Mode *PatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"` - Proposals []int32 `json:"proposals,omitempty"` - PresharedKey *string `json:"preshared_key,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Version *PatchedWritableIKEPolicyRequestVersion `json:"version,omitempty"` + Mode NullablePatchedWritableIKEPolicyRequestMode `json:"mode,omitempty"` + Proposals []int32 `json:"proposals,omitempty"` + PresharedKey *string `json:"preshared_key,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,6 +76,7 @@ func (o *WritableIKEPolicyRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableIKEPolicyRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -140,36 +141,46 @@ func (o *WritableIKEPolicyRequest) SetVersion(v PatchedWritableIKEPolicyRequestV o.Version = &v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableIKEPolicyRequest) GetMode() PatchedWritableIKEPolicyRequestMode { - if o == nil || IsNil(o.Mode) { + if o == nil || IsNil(o.Mode.Get()) { var ret PatchedWritableIKEPolicyRequestMode return ret } - return *o.Mode + return *o.Mode.Get() } // GetModeOk returns a tuple with the Mode 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 *WritableIKEPolicyRequest) GetModeOk() (*PatchedWritableIKEPolicyRequestMode, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true + return o.Mode.Get(), o.Mode.IsSet() } // HasMode returns a boolean if a field has been set. func (o *WritableIKEPolicyRequest) HasMode() bool { - if o != nil && !IsNil(o.Mode) { + if o != nil && o.Mode.IsSet() { return true } return false } -// SetMode gets a reference to the given PatchedWritableIKEPolicyRequestMode and assigns it to the Mode field. +// SetMode gets a reference to the given NullablePatchedWritableIKEPolicyRequestMode and assigns it to the Mode field. func (o *WritableIKEPolicyRequest) SetMode(v PatchedWritableIKEPolicyRequestMode) { - o.Mode = &v + o.Mode.Set(&v) +} +// SetModeNil sets the value for Mode to be an explicit nil +func (o *WritableIKEPolicyRequest) SetModeNil() { + o.Mode.Set(nil) +} + +// UnsetMode ensures that no value is present for Mode, not even an explicit nil +func (o *WritableIKEPolicyRequest) UnsetMode() { + o.Mode.Unset() } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -333,7 +344,7 @@ func (o *WritableIKEPolicyRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableIKEPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -349,8 +360,8 @@ func (o WritableIKEPolicyRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Version) { toSerialize["version"] = o.Version } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode + if o.Mode.IsSet() { + toSerialize["mode"] = o.Mode.Get() } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals @@ -383,20 +394,37 @@ func (o *WritableIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableIKEPolicyRequest := _WritableIKEPolicyRequest{} err = json.Unmarshal(data, &varWritableIKEPolicyRequest) @@ -460,3 +488,5 @@ func (v *NullableWritableIKEPolicyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go index 1783b8e238..bbcc1a42b9 100644 --- a/model_writable_ike_proposal_request.go +++ b/model_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableIKEProposalRequest{} // WritableIKEProposalRequest Adds support for custom fields and tags. type WritableIKEProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` - AuthenticationAlgorithm *PatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` - Group PatchedWritableIKEProposalRequestGroup `json:"group"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` + AuthenticationAlgorithm NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` + Group PatchedWritableIKEProposalRequestGroup `json:"group"` // Security association lifetime (in seconds) - SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,6 +81,7 @@ func (o *WritableIKEProposalRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableIKEProposalRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -137,6 +138,7 @@ func (o *WritableIKEProposalRequest) SetAuthenticationMethod(v IKEProposalAuthen o.AuthenticationMethod = v } + // GetEncryptionAlgorithm returns the EncryptionAlgorithm field value func (o *WritableIKEProposalRequest) GetEncryptionAlgorithm() IKEProposalEncryptionAlgorithmValue { if o == nil { @@ -161,36 +163,47 @@ func (o *WritableIKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncrypt o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. + +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableIKEProposalRequest) GetAuthenticationAlgorithm() PatchedWritableIKEProposalRequestAuthenticationAlgorithm { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil || IsNil(o.AuthenticationAlgorithm.Get()) { var ret PatchedWritableIKEProposalRequestAuthenticationAlgorithm return ret } - return *o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm.Get() } // GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm 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 *WritableIKEProposalRequest) GetAuthenticationAlgorithmOk() (*PatchedWritableIKEProposalRequestAuthenticationAlgorithm, bool) { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { return nil, false } - return o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm.Get(), o.AuthenticationAlgorithm.IsSet() } // HasAuthenticationAlgorithm returns a boolean if a field has been set. func (o *WritableIKEProposalRequest) HasAuthenticationAlgorithm() bool { - if o != nil && !IsNil(o.AuthenticationAlgorithm) { + if o != nil && o.AuthenticationAlgorithm.IsSet() { return true } return false } -// SetAuthenticationAlgorithm gets a reference to the given PatchedWritableIKEProposalRequestAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. +// SetAuthenticationAlgorithm gets a reference to the given NullablePatchedWritableIKEProposalRequestAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. func (o *WritableIKEProposalRequest) SetAuthenticationAlgorithm(v PatchedWritableIKEProposalRequestAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = &v + o.AuthenticationAlgorithm.Set(&v) +} +// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil +func (o *WritableIKEProposalRequest) SetAuthenticationAlgorithmNil() { + o.AuthenticationAlgorithm.Set(nil) +} + +// UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil +func (o *WritableIKEProposalRequest) UnsetAuthenticationAlgorithm() { + o.AuthenticationAlgorithm.Unset() } // GetGroup returns the Group field value @@ -217,6 +230,7 @@ func (o *WritableIKEProposalRequest) SetGroup(v PatchedWritableIKEProposalReques o.Group = v } + // GetSaLifetime returns the SaLifetime field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableIKEProposalRequest) GetSaLifetime() int32 { if o == nil || IsNil(o.SaLifetime.Get()) { @@ -249,7 +263,6 @@ func (o *WritableIKEProposalRequest) HasSaLifetime() bool { func (o *WritableIKEProposalRequest) SetSaLifetime(v int32) { o.SaLifetime.Set(&v) } - // SetSaLifetimeNil sets the value for SaLifetime to be an explicit nil func (o *WritableIKEProposalRequest) SetSaLifetimeNil() { o.SaLifetime.Set(nil) @@ -357,7 +370,7 @@ func (o *WritableIKEProposalRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableIKEProposalRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -372,8 +385,8 @@ func (o WritableIKEProposalRequest) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - if !IsNil(o.AuthenticationAlgorithm) { - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if o.AuthenticationAlgorithm.IsSet() { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm.Get() } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { @@ -407,20 +420,37 @@ func (o *WritableIKEProposalRequest) UnmarshalJSON(data []byte) (err error) { "group", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableIKEProposalRequest := _WritableIKEProposalRequest{} err = json.Unmarshal(data, &varWritableIKEProposalRequest) @@ -485,3 +515,5 @@ func (v *NullableWritableIKEProposalRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go index 0cefa53d8c..b74c6731f8 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,43 +20,45 @@ var _ MappedNullable = &WritableInterfaceRequest{} // WritableInterfaceRequest Adds support for custom fields and tags. type WritableInterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type InterfaceTypeValue `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"` - Duplex NullableInterfaceRequestDuplex `json:"duplex,omitempty"` - Wwn NullableString `json:"wwn,omitempty"` + Label *string `json:"label,omitempty"` + Type InterfaceTypeValue `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"` + PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Duplex NullableInterfaceRequestDuplex `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 *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` - RfChannel *WirelessChannel `json:"rf_channel,omitempty"` - PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` - PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"` + RfRole NullableWirelessRole `json:"rf_role,omitempty"` + RfChannel NullableWirelessChannel `json:"rf_channel,omitempty"` + PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"` + PoeType NullableInterfaceTemplateRequestPoeType `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 NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `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 NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +68,7 @@ type _WritableInterfaceRequest WritableInterfaceRequest // 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 NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { +func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { this := WritableInterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +85,9 @@ func NewWritableInterfaceRequestWithDefaults() *WritableInterfaceRequest { } // GetDevice returns the Device field value -func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +96,7 @@ func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,10 +104,11 @@ func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest) { +func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetVdcs returns the Vdcs field value if set, zero value otherwise. func (o *WritableInterfaceRequest) GetVdcs() []int32 { if o == nil || IsNil(o.Vdcs) { @@ -139,9 +142,9 @@ func (o *WritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetModule() ModuleRequest { +func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +153,7 @@ func (o *WritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,11 +169,10 @@ func (o *WritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableInterfaceRequest) SetModuleNil() { o.Module.Set(nil) @@ -205,6 +207,7 @@ func (o *WritableInterfaceRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableInterfaceRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -261,6 +264,7 @@ func (o *WritableInterfaceRequest) SetType(v InterfaceTypeValue) { o.Type = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableInterfaceRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -325,7 +329,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) @@ -368,7 +371,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) @@ -411,7 +413,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) @@ -454,7 +455,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) @@ -465,47 +465,46 @@ func (o *WritableInterfaceRequest) UnsetMtu() { o.Mtu.Unset() } -// GetMacAddress returns the MacAddress field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetMacAddress() string { - if o == nil || IsNil(o.MacAddress.Get()) { - var ret string +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddressRequest return ret } - return *o.MacAddress.Get() + return *o.PrimaryMacAddress.Get() } -// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *WritableInterfaceRequest) GetMacAddressOk() (*string, bool) { +func (o *WritableInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) { if o == nil { return nil, false } - return o.MacAddress.Get(), o.MacAddress.IsSet() + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() } -// HasMacAddress returns a boolean if a field has been set. -func (o *WritableInterfaceRequest) HasMacAddress() bool { - if o != nil && o.MacAddress.IsSet() { +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *WritableInterfaceRequest) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { return true } return false } -// SetMacAddress gets a reference to the given NullableString and assigns it to the MacAddress field. -func (o *WritableInterfaceRequest) SetMacAddress(v string) { - o.MacAddress.Set(&v) +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field. +func (o *WritableInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) { + o.PrimaryMacAddress.Set(&v) } - -// SetMacAddressNil sets the value for MacAddress to be an explicit nil -func (o *WritableInterfaceRequest) SetMacAddressNil() { - o.MacAddress.Set(nil) +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *WritableInterfaceRequest) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) } -// UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil -func (o *WritableInterfaceRequest) UnsetMacAddress() { - o.MacAddress.Unset() +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() } // GetSpeed returns the Speed field value if set, zero value otherwise (both if not set or set to explicit null). @@ -540,7 +539,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) @@ -583,7 +581,6 @@ func (o *WritableInterfaceRequest) HasDuplex() bool { func (o *WritableInterfaceRequest) SetDuplex(v InterfaceRequestDuplex) { o.Duplex.Set(&v) } - // SetDuplexNil sets the value for Duplex to be an explicit nil func (o *WritableInterfaceRequest) SetDuplexNil() { o.Duplex.Set(nil) @@ -626,7 +623,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) @@ -701,164 +697,214 @@ func (o *WritableInterfaceRequest) SetDescription(v string) { o.Description = &v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode { - if o == nil || IsNil(o.Mode) { + if o == nil || IsNil(o.Mode.Get()) { var ret PatchedWritableInterfaceRequestMode return ret } - return *o.Mode + return *o.Mode.Get() } // GetModeOk returns a tuple with the Mode 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 *WritableInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true + return o.Mode.Get(), o.Mode.IsSet() } // HasMode returns a boolean if a field has been set. func (o *WritableInterfaceRequest) HasMode() bool { - if o != nil && !IsNil(o.Mode) { + if o != nil && o.Mode.IsSet() { return true } return false } -// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field. +// SetMode gets a reference to the given NullablePatchedWritableInterfaceRequestMode and assigns it to the Mode field. func (o *WritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) { - o.Mode = &v + o.Mode.Set(&v) +} +// SetModeNil sets the value for Mode to be an explicit nil +func (o *WritableInterfaceRequest) SetModeNil() { + o.Mode.Set(nil) +} + +// UnsetMode ensures that no value is present for Mode, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetMode() { + o.Mode.Unset() } -// GetRfRole returns the RfRole field value if set, zero value otherwise. +// GetRfRole returns the RfRole field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableInterfaceRequest) GetRfRole() WirelessRole { - if o == nil || IsNil(o.RfRole) { + if o == nil || IsNil(o.RfRole.Get()) { var ret WirelessRole return ret } - return *o.RfRole + 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 *WritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool) { - if o == nil || IsNil(o.RfRole) { + if o == nil { return nil, false } - return o.RfRole, true + return o.RfRole.Get(), o.RfRole.IsSet() } // HasRfRole returns a boolean if a field has been set. func (o *WritableInterfaceRequest) HasRfRole() bool { - if o != nil && !IsNil(o.RfRole) { + if o != nil && o.RfRole.IsSet() { return true } return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. +// SetRfRole gets a reference to the given NullableWirelessRole and assigns it to the RfRole field. func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole) { - o.RfRole = &v + o.RfRole.Set(&v) +} +// SetRfRoleNil sets the value for RfRole to be an explicit nil +func (o *WritableInterfaceRequest) SetRfRoleNil() { + o.RfRole.Set(nil) } -// GetRfChannel returns the RfChannel field value if set, zero value otherwise. +// UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetRfRole() { + o.RfRole.Unset() +} + +// GetRfChannel returns the RfChannel field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel { - if o == nil || IsNil(o.RfChannel) { + if o == nil || IsNil(o.RfChannel.Get()) { var ret WirelessChannel return ret } - return *o.RfChannel + return *o.RfChannel.Get() } // GetRfChannelOk returns a tuple with the RfChannel 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 *WritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool) { - if o == nil || IsNil(o.RfChannel) { + if o == nil { return nil, false } - return o.RfChannel, true + return o.RfChannel.Get(), o.RfChannel.IsSet() } // HasRfChannel returns a boolean if a field has been set. func (o *WritableInterfaceRequest) HasRfChannel() bool { - if o != nil && !IsNil(o.RfChannel) { + if o != nil && o.RfChannel.IsSet() { return true } return false } -// SetRfChannel gets a reference to the given WirelessChannel and assigns it to the RfChannel field. +// SetRfChannel gets a reference to the given NullableWirelessChannel and assigns it to the RfChannel field. func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel) { - o.RfChannel = &v + o.RfChannel.Set(&v) +} +// SetRfChannelNil sets the value for RfChannel to be an explicit nil +func (o *WritableInterfaceRequest) SetRfChannelNil() { + o.RfChannel.Set(nil) +} + +// UnsetRfChannel ensures that no value is present for RfChannel, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetRfChannel() { + o.RfChannel.Unset() } -// GetPoeMode returns the PoeMode field value if set, zero value otherwise. -func (o *WritableInterfaceRequest) GetPoeMode() InterfacePoeModeValue { - if o == nil || IsNil(o.PoeMode) { - var ret InterfacePoeModeValue +// GetPoeMode returns the PoeMode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInterfaceRequest) GetPoeMode() InterfaceTemplateRequestPoeMode { + if o == nil || IsNil(o.PoeMode.Get()) { + var ret InterfaceTemplateRequestPoeMode return ret } - return *o.PoeMode + return *o.PoeMode.Get() } // GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) { - if o == nil || IsNil(o.PoeMode) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableInterfaceRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool) { + if o == nil { return nil, false } - return o.PoeMode, true + return o.PoeMode.Get(), o.PoeMode.IsSet() } // HasPoeMode returns a boolean if a field has been set. func (o *WritableInterfaceRequest) HasPoeMode() bool { - if o != nil && !IsNil(o.PoeMode) { + if o != nil && o.PoeMode.IsSet() { return true } return false } -// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field. -func (o *WritableInterfaceRequest) SetPoeMode(v InterfacePoeModeValue) { - o.PoeMode = &v +// SetPoeMode gets a reference to the given NullableInterfaceTemplateRequestPoeMode and assigns it to the PoeMode field. +func (o *WritableInterfaceRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) { + o.PoeMode.Set(&v) +} +// SetPoeModeNil sets the value for PoeMode to be an explicit nil +func (o *WritableInterfaceRequest) SetPoeModeNil() { + o.PoeMode.Set(nil) +} + +// UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetPoeMode() { + o.PoeMode.Unset() } -// GetPoeType returns the PoeType field value if set, zero value otherwise. -func (o *WritableInterfaceRequest) GetPoeType() InterfacePoeTypeValue { - if o == nil || IsNil(o.PoeType) { - var ret InterfacePoeTypeValue +// GetPoeType returns the PoeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInterfaceRequest) GetPoeType() InterfaceTemplateRequestPoeType { + if o == nil || IsNil(o.PoeType.Get()) { + var ret InterfaceTemplateRequestPoeType return ret } - return *o.PoeType + return *o.PoeType.Get() } // GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) { - if o == nil || IsNil(o.PoeType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableInterfaceRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool) { + if o == nil { return nil, false } - return o.PoeType, true + return o.PoeType.Get(), o.PoeType.IsSet() } // HasPoeType returns a boolean if a field has been set. func (o *WritableInterfaceRequest) HasPoeType() bool { - if o != nil && !IsNil(o.PoeType) { + if o != nil && o.PoeType.IsSet() { return true } return false } -// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field. -func (o *WritableInterfaceRequest) SetPoeType(v InterfacePoeTypeValue) { - o.PoeType = &v +// SetPoeType gets a reference to the given NullableInterfaceTemplateRequestPoeType and assigns it to the PoeType field. +func (o *WritableInterfaceRequest) SetPoeType(v InterfaceTemplateRequestPoeType) { + o.PoeType.Set(&v) +} +// SetPoeTypeNil sets the value for PoeType to be an explicit nil +func (o *WritableInterfaceRequest) SetPoeTypeNil() { + o.PoeType.Set(nil) +} + +// UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetPoeType() { + o.PoeType.Unset() } // GetRfChannelFrequency returns the RfChannelFrequency field value if set, zero value otherwise (both if not set or set to explicit null). @@ -893,7 +939,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) @@ -936,7 +981,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) @@ -979,7 +1023,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) @@ -991,9 +1034,9 @@ func (o *WritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1045,7 @@ func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,11 +1061,10 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *WritableInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1065,6 +1107,90 @@ func (o *WritableInterfaceRequest) SetTaggedVlans(v []int32) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInterfaceRequest) GetQinqSvlan() BriefVLANRequest { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLANRequest + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *WritableInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *WritableInterfaceRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field. +func (o *WritableInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *WritableInterfaceRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicyRequest + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *WritableInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *WritableInterfaceRequest) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field. +func (o *WritableInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *WritableInterfaceRequest) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *WritableInterfaceRequest) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. func (o *WritableInterfaceRequest) GetMarkConnected() bool { if o == nil || IsNil(o.MarkConnected) { @@ -1130,9 +1256,9 @@ func (o *WritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1267,7 @@ func (o *WritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,11 +1283,10 @@ func (o *WritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritableInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -1237,7 +1362,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 } @@ -1273,8 +1398,8 @@ func (o WritableInterfaceRequest) ToMap() (map[string]interface{}, error) { if o.Mtu.IsSet() { toSerialize["mtu"] = o.Mtu.Get() } - if o.MacAddress.IsSet() { - toSerialize["mac_address"] = o.MacAddress.Get() + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() } if o.Speed.IsSet() { toSerialize["speed"] = o.Speed.Get() @@ -1291,20 +1416,20 @@ func (o WritableInterfaceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode + if o.Mode.IsSet() { + toSerialize["mode"] = o.Mode.Get() } - if !IsNil(o.RfRole) { - toSerialize["rf_role"] = o.RfRole + if o.RfRole.IsSet() { + toSerialize["rf_role"] = o.RfRole.Get() } - if !IsNil(o.RfChannel) { - toSerialize["rf_channel"] = o.RfChannel + if o.RfChannel.IsSet() { + toSerialize["rf_channel"] = o.RfChannel.Get() } - if !IsNil(o.PoeMode) { - toSerialize["poe_mode"] = o.PoeMode + if o.PoeMode.IsSet() { + toSerialize["poe_mode"] = o.PoeMode.Get() } - if !IsNil(o.PoeType) { - toSerialize["poe_type"] = o.PoeType + if o.PoeType.IsSet() { + toSerialize["poe_type"] = o.PoeType.Get() } if o.RfChannelFrequency.IsSet() { toSerialize["rf_channel_frequency"] = o.RfChannelFrequency.Get() @@ -1321,6 +1446,12 @@ func (o WritableInterfaceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if !IsNil(o.MarkConnected) { toSerialize["mark_connected"] = o.MarkConnected } @@ -1354,20 +1485,37 @@ func (o *WritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableInterfaceRequest := _WritableInterfaceRequest{} err = json.Unmarshal(data, &varWritableInterfaceRequest) @@ -1392,7 +1540,7 @@ func (o *WritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "bridge") delete(additionalProperties, "lag") delete(additionalProperties, "mtu") - delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") delete(additionalProperties, "speed") delete(additionalProperties, "duplex") delete(additionalProperties, "wwn") @@ -1408,6 +1556,8 @@ func (o *WritableInterfaceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "tx_power") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "mark_connected") delete(additionalProperties, "wireless_lans") delete(additionalProperties, "vrf") @@ -1454,3 +1604,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 a0d61207ca..eef59b8175 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &WritableInterfaceTemplateRequest{} // WritableInterfaceTemplateRequest 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 WritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type InterfaceTypeValue `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` - PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` - PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` + Label *string `json:"label,omitempty"` + Type InterfaceTypeValue `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` + PoeMode NullableInterfaceTemplateRequestPoeMode `json:"poe_mode,omitempty"` + PoeType NullableInterfaceTemplateRequestPoeType `json:"poe_type,omitempty"` + RfRole NullableWirelessRole `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -59,9 +59,9 @@ func NewWritableInterfaceTemplateRequestWithDefaults() *WritableInterfaceTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,11 +86,10 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableInterfaceTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -102,9 +101,9 @@ func (o *WritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +112,7 @@ func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,11 +128,10 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableInterfaceTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -168,6 +166,7 @@ func (o *WritableInterfaceTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableInterfaceTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -224,6 +223,7 @@ func (o *WritableInterfaceTemplateRequest) SetType(v InterfaceTypeValue) { o.Type = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableInterfaceTemplateRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -352,7 +352,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) @@ -363,104 +362,134 @@ func (o *WritableInterfaceTemplateRequest) UnsetBridge() { o.Bridge.Unset() } -// GetPoeMode returns the PoeMode field value if set, zero value otherwise. -func (o *WritableInterfaceTemplateRequest) GetPoeMode() InterfacePoeModeValue { - if o == nil || IsNil(o.PoeMode) { - var ret InterfacePoeModeValue +// GetPoeMode returns the PoeMode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInterfaceTemplateRequest) GetPoeMode() InterfaceTemplateRequestPoeMode { + if o == nil || IsNil(o.PoeMode.Get()) { + var ret InterfaceTemplateRequestPoeMode return ret } - return *o.PoeMode + return *o.PoeMode.Get() } // GetPoeModeOk returns a tuple with the PoeMode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfacePoeModeValue, bool) { - if o == nil || IsNil(o.PoeMode) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableInterfaceTemplateRequest) GetPoeModeOk() (*InterfaceTemplateRequestPoeMode, bool) { + if o == nil { return nil, false } - return o.PoeMode, true + return o.PoeMode.Get(), o.PoeMode.IsSet() } // HasPoeMode returns a boolean if a field has been set. func (o *WritableInterfaceTemplateRequest) HasPoeMode() bool { - if o != nil && !IsNil(o.PoeMode) { + if o != nil && o.PoeMode.IsSet() { return true } return false } -// SetPoeMode gets a reference to the given InterfacePoeModeValue and assigns it to the PoeMode field. -func (o *WritableInterfaceTemplateRequest) SetPoeMode(v InterfacePoeModeValue) { - o.PoeMode = &v +// SetPoeMode gets a reference to the given NullableInterfaceTemplateRequestPoeMode and assigns it to the PoeMode field. +func (o *WritableInterfaceTemplateRequest) SetPoeMode(v InterfaceTemplateRequestPoeMode) { + o.PoeMode.Set(&v) +} +// SetPoeModeNil sets the value for PoeMode to be an explicit nil +func (o *WritableInterfaceTemplateRequest) SetPoeModeNil() { + o.PoeMode.Set(nil) +} + +// UnsetPoeMode ensures that no value is present for PoeMode, not even an explicit nil +func (o *WritableInterfaceTemplateRequest) UnsetPoeMode() { + o.PoeMode.Unset() } -// GetPoeType returns the PoeType field value if set, zero value otherwise. -func (o *WritableInterfaceTemplateRequest) GetPoeType() InterfacePoeTypeValue { - if o == nil || IsNil(o.PoeType) { - var ret InterfacePoeTypeValue +// GetPoeType returns the PoeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInterfaceTemplateRequest) GetPoeType() InterfaceTemplateRequestPoeType { + if o == nil || IsNil(o.PoeType.Get()) { + var ret InterfaceTemplateRequestPoeType return ret } - return *o.PoeType + return *o.PoeType.Get() } // GetPoeTypeOk returns a tuple with the PoeType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfacePoeTypeValue, bool) { - if o == nil || IsNil(o.PoeType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableInterfaceTemplateRequest) GetPoeTypeOk() (*InterfaceTemplateRequestPoeType, bool) { + if o == nil { return nil, false } - return o.PoeType, true + return o.PoeType.Get(), o.PoeType.IsSet() } // HasPoeType returns a boolean if a field has been set. func (o *WritableInterfaceTemplateRequest) HasPoeType() bool { - if o != nil && !IsNil(o.PoeType) { + if o != nil && o.PoeType.IsSet() { return true } return false } -// SetPoeType gets a reference to the given InterfacePoeTypeValue and assigns it to the PoeType field. -func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue) { - o.PoeType = &v +// SetPoeType gets a reference to the given NullableInterfaceTemplateRequestPoeType and assigns it to the PoeType field. +func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfaceTemplateRequestPoeType) { + o.PoeType.Set(&v) +} +// SetPoeTypeNil sets the value for PoeType to be an explicit nil +func (o *WritableInterfaceTemplateRequest) SetPoeTypeNil() { + o.PoeType.Set(nil) } -// GetRfRole returns the RfRole field value if set, zero value otherwise. +// UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil +func (o *WritableInterfaceTemplateRequest) 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 *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole { - if o == nil || IsNil(o.RfRole) { + if o == nil || IsNil(o.RfRole.Get()) { var ret WirelessRole return ret } - return *o.RfRole + 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 *WritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool) { - if o == nil || IsNil(o.RfRole) { + if o == nil { return nil, false } - return o.RfRole, true + return o.RfRole.Get(), o.RfRole.IsSet() } // HasRfRole returns a boolean if a field has been set. func (o *WritableInterfaceTemplateRequest) HasRfRole() bool { - if o != nil && !IsNil(o.RfRole) { + if o != nil && o.RfRole.IsSet() { return true } return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. +// SetRfRole gets a reference to the given NullableWirelessRole and assigns it to the RfRole field. func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) { - o.RfRole = &v + o.RfRole.Set(&v) +} +// SetRfRoleNil sets the value for RfRole to be an explicit nil +func (o *WritableInterfaceTemplateRequest) SetRfRoleNil() { + o.RfRole.Set(nil) +} + +// UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil +func (o *WritableInterfaceTemplateRequest) UnsetRfRole() { + o.RfRole.Unset() } func (o WritableInterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -492,14 +521,14 @@ func (o WritableInterfaceTemplateRequest) ToMap() (map[string]interface{}, error if o.Bridge.IsSet() { toSerialize["bridge"] = o.Bridge.Get() } - if !IsNil(o.PoeMode) { - toSerialize["poe_mode"] = o.PoeMode + if o.PoeMode.IsSet() { + toSerialize["poe_mode"] = o.PoeMode.Get() } - if !IsNil(o.PoeType) { - toSerialize["poe_type"] = o.PoeType + if o.PoeType.IsSet() { + toSerialize["poe_type"] = o.PoeType.Get() } - if !IsNil(o.RfRole) { - toSerialize["rf_role"] = o.RfRole + if o.RfRole.IsSet() { + toSerialize["rf_role"] = o.RfRole.Get() } for key, value := range o.AdditionalProperties { @@ -518,20 +547,37 @@ func (o *WritableInterfaceTemplateRequest) UnmarshalJSON(data []byte) (err error "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableInterfaceTemplateRequest := _WritableInterfaceTemplateRequest{} err = json.Unmarshal(data, &varWritableInterfaceTemplateRequest) @@ -598,3 +644,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 new file mode 100644 index 0000000000..5d92d6e4f1 --- /dev/null +++ b/model_writable_inventory_item_request.go @@ -0,0 +1,798 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableInventoryItemRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableInventoryItemRequest{} + +// WritableInventoryItemRequest Adds support for custom fields and tags. +type WritableInventoryItemRequest struct { + Device BriefDeviceRequest `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Status *InventoryItemStatusValue `json:"status,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `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"` + AdditionalProperties map[string]interface{} +} + +type _WritableInventoryItemRequest WritableInventoryItemRequest + +// NewWritableInventoryItemRequest instantiates a new WritableInventoryItemRequest 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 NewWritableInventoryItemRequest(device BriefDeviceRequest, name string) *WritableInventoryItemRequest { + this := WritableInventoryItemRequest{} + this.Device = device + this.Name = name + return &this +} + +// NewWritableInventoryItemRequestWithDefaults instantiates a new WritableInventoryItemRequest 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 NewWritableInventoryItemRequestWithDefaults() *WritableInventoryItemRequest { + this := WritableInventoryItemRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *WritableInventoryItemRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *WritableInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *WritableInventoryItemRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInventoryItemRequest) GetParent() int32 { + if o == nil || IsNil(o.Parent.Get()) { + var ret int32 + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent 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 *WritableInventoryItemRequest) GetParentOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field. +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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WritableInventoryItemRequest) UnsetParent() { + o.Parent.Unset() +} + +// GetName returns the Name field value +func (o *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *WritableInventoryItemRequest) SetName(v string) { + o.Name = v +} + + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) SetLabel(v string) { + o.Label = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) GetStatus() InventoryItemStatusValue { + if o == nil || IsNil(o.Status) { + var ret InventoryItemStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableInventoryItemRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *WritableInventoryItemRequest) SetStatus(v InventoryItemStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefInventoryItemRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role 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 *WritableInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *WritableInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { + o.Role.Set(&v) +} +// SetRoleNil sets the value for Role to be an explicit nil +func (o *WritableInventoryItemRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *WritableInventoryItemRequest) UnsetRole() { + o.Role.Unset() +} + +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInventoryItemRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer 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 *WritableInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *WritableInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer.Set(&v) +} +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *WritableInventoryItemRequest) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *WritableInventoryItemRequest) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetPartId returns the PartId field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) GetPartId() string { + if o == nil || IsNil(o.PartId) { + var ret string + return ret + } + return *o.PartId +} + +// GetPartIdOk returns a tuple with the PartId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableInventoryItemRequest) GetPartIdOk() (*string, bool) { + if o == nil || IsNil(o.PartId) { + return nil, false + } + return o.PartId, true +} + +// HasPartId returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasPartId() bool { + if o != nil && !IsNil(o.PartId) { + return true + } + + return false +} + +// SetPartId gets a reference to the given string and assigns it to the PartId field. +func (o *WritableInventoryItemRequest) SetPartId(v string) { + o.PartId = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableInventoryItemRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *WritableInventoryItemRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInventoryItemRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag 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 *WritableInventoryItemRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +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) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *WritableInventoryItemRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDiscovered returns the Discovered field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) GetDiscovered() bool { + if o == nil || IsNil(o.Discovered) { + var ret bool + return ret + } + return *o.Discovered +} + +// GetDiscoveredOk returns a tuple with the Discovered field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableInventoryItemRequest) GetDiscoveredOk() (*bool, bool) { + if o == nil || IsNil(o.Discovered) { + return nil, false + } + return o.Discovered, true +} + +// HasDiscovered returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasDiscovered() bool { + if o != nil && !IsNil(o.Discovered) { + return true + } + + return false +} + +// SetDiscovered gets a reference to the given bool and assigns it to the Discovered field. +func (o *WritableInventoryItemRequest) SetDiscovered(v bool) { + o.Discovered = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComponentType returns the ComponentType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInventoryItemRequest) GetComponentType() string { + if o == nil || IsNil(o.ComponentType.Get()) { + var ret string + return ret + } + return *o.ComponentType.Get() +} + +// GetComponentTypeOk returns a tuple with the ComponentType 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 *WritableInventoryItemRequest) GetComponentTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ComponentType.Get(), o.ComponentType.IsSet() +} + +// HasComponentType returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasComponentType() bool { + if o != nil && o.ComponentType.IsSet() { + return true + } + + return false +} + +// SetComponentType gets a reference to the given NullableString and assigns it to the ComponentType field. +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) +} + +// UnsetComponentType ensures that no value is present for ComponentType, not even an explicit nil +func (o *WritableInventoryItemRequest) UnsetComponentType() { + o.ComponentType.Unset() +} + +// GetComponentId returns the ComponentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableInventoryItemRequest) GetComponentId() int64 { + if o == nil || IsNil(o.ComponentId.Get()) { + var ret int64 + return ret + } + return *o.ComponentId.Get() +} + +// GetComponentIdOk returns a tuple with the ComponentId 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 *WritableInventoryItemRequest) GetComponentIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.ComponentId.Get(), o.ComponentId.IsSet() +} + +// HasComponentId returns a boolean if a field has been set. +func (o *WritableInventoryItemRequest) HasComponentId() bool { + if o != nil && o.ComponentId.IsSet() { + return true + } + + return false +} + +// SetComponentId gets a reference to the given NullableInt64 and assigns it to the ComponentId field. +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) +} + +// UnsetComponentId ensures that no value is present for ComponentId, not even an explicit nil +func (o *WritableInventoryItemRequest) UnsetComponentId() { + o.ComponentId.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) 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 *WritableInventoryItemRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o WritableInventoryItemRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableInventoryItemRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if !IsNil(o.PartId) { + toSerialize["part_id"] = o.PartId + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Discovered) { + toSerialize["discovered"] = o.Discovered + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.ComponentType.IsSet() { + toSerialize["component_type"] = o.ComponentType.Get() + } + if o.ComponentId.IsSet() { + toSerialize["component_id"] = o.ComponentId.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableInventoryItemRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "name", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varWritableInventoryItemRequest := _WritableInventoryItemRequest{} + + err = json.Unmarshal(data, &varWritableInventoryItemRequest) + + if err != nil { + return err + } + + *o = WritableInventoryItemRequest(varWritableInventoryItemRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "parent") + delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "part_id") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "discovered") + delete(additionalProperties, "description") + delete(additionalProperties, "component_type") + delete(additionalProperties, "component_id") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableInventoryItemRequest struct { + value *WritableInventoryItemRequest + isSet bool +} + +func (v NullableWritableInventoryItemRequest) Get() *WritableInventoryItemRequest { + return v.value +} + +func (v *NullableWritableInventoryItemRequest) Set(val *WritableInventoryItemRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableInventoryItemRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableInventoryItemRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableInventoryItemRequest(val *WritableInventoryItemRequest) *NullableWritableInventoryItemRequest { + return &NullableWritableInventoryItemRequest{value: val, isSet: true} +} + +func (v NullableWritableInventoryItemRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableInventoryItemRequest) UnmarshalJSON(src []byte) error { + 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 05fae1d609..af3155309a 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &WritableIPAddressRequest{} // WritableIPAddressRequest Adds support for custom fields and tags. type WritableIPAddressRequest struct { - Address string `json:"address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` - Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` - AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + Address string `json:"address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` + Role NullablePatchedWritableIPAddressRequestRole `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,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" validate:"regexp=^([0-9A-Za-z_-]+|\\\\*)(\\\\.[0-9A-Za-z_-]+)*\\\\.?$"` + 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{} } @@ -82,10 +82,11 @@ func (o *WritableIPAddressRequest) SetAddress(v string) { o.Address = v } + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetVrf() VRFRequest { +func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -94,7 +95,7 @@ func (o *WritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -110,11 +111,10 @@ func (o *WritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritableIPAddressRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -126,9 +126,9 @@ func (o *WritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetTenant() TenantRequest { +func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -137,7 +137,7 @@ func (o *WritableIPAddressRequest) GetTenant() TenantRequest { // 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 *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -153,11 +153,10 @@ func (o *WritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableIPAddressRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -200,36 +199,46 @@ func (o *WritableIPAddressRequest) SetStatus(v PatchedWritableIPAddressRequestSt o.Status = &v } -// GetRole returns the Role field value if set, zero value otherwise. +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableIPAddressRequest) GetRole() PatchedWritableIPAddressRequestRole { - if o == nil || IsNil(o.Role) { + if o == nil || IsNil(o.Role.Get()) { var ret PatchedWritableIPAddressRequestRole return ret } - return *o.Role + return *o.Role.Get() } // GetRoleOk returns a tuple with the Role 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 *WritableIPAddressRequest) GetRoleOk() (*PatchedWritableIPAddressRequestRole, bool) { - if o == nil || IsNil(o.Role) { + if o == nil { return nil, false } - return o.Role, true + return o.Role.Get(), o.Role.IsSet() } // HasRole returns a boolean if a field has been set. func (o *WritableIPAddressRequest) HasRole() bool { - if o != nil && !IsNil(o.Role) { + if o != nil && o.Role.IsSet() { return true } return false } -// SetRole gets a reference to the given PatchedWritableIPAddressRequestRole and assigns it to the Role field. +// SetRole gets a reference to the given NullablePatchedWritableIPAddressRequestRole and assigns it to the Role field. func (o *WritableIPAddressRequest) SetRole(v PatchedWritableIPAddressRequestRole) { - o.Role = &v + o.Role.Set(&v) +} +// SetRoleNil sets the value for Role to be an explicit nil +func (o *WritableIPAddressRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *WritableIPAddressRequest) UnsetRole() { + o.Role.Unset() } // GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). @@ -264,7 +273,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) @@ -307,7 +315,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) @@ -350,7 +357,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) @@ -522,7 +528,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 } @@ -541,8 +547,8 @@ func (o WritableIPAddressRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Status) { toSerialize["status"] = o.Status } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() } if o.AssignedObjectType.IsSet() { toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() @@ -584,20 +590,37 @@ func (o *WritableIPAddressRequest) UnmarshalJSON(data []byte) (err error) { "address", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableIPAddressRequest := _WritableIPAddressRequest{} err = json.Unmarshal(data, &varWritableIPAddressRequest) @@ -665,3 +688,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 c93135b4cb..2b98d4aded 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ 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 NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `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"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` + Role NullableBriefRoleRequest `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 fully utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -80,6 +80,7 @@ func (o *WritableIPRangeRequest) SetStartAddress(v string) { o.StartAddress = v } + // GetEndAddress returns the EndAddress field value func (o *WritableIPRangeRequest) GetEndAddress() string { if o == nil { @@ -104,10 +105,11 @@ func (o *WritableIPRangeRequest) SetEndAddress(v string) { o.EndAddress = v } + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetVrf() VRFRequest { +func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +118,7 @@ func (o *WritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,11 +134,10 @@ func (o *WritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritableIPRangeRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -148,9 +149,9 @@ func (o *WritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetTenant() TenantRequest { +func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +160,7 @@ func (o *WritableIPRangeRequest) GetTenant() TenantRequest { // 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 *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,11 +176,10 @@ func (o *WritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableIPRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -223,9 +223,9 @@ func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetRole() RoleRequest { +func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *WritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,11 +250,10 @@ func (o *WritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableIPRangeRequest) SetRoleNil() { o.Role.Set(nil) @@ -426,7 +425,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 } @@ -481,20 +480,37 @@ func (o *WritableIPRangeRequest) UnmarshalJSON(data []byte) (err error) { "end_address", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableIPRangeRequest := _WritableIPRangeRequest{} err = json.Unmarshal(data, &varWritableIPRangeRequest) @@ -560,3 +576,5 @@ func (v *NullableWritableIPRangeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go index d6599e6732..e67719e00f 100644 --- a/model_writable_ip_sec_policy_request.go +++ b/model_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableIPSecPolicyRequest{} // WritableIPSecPolicyRequest Adds support for custom fields and tags. type WritableIPSecPolicyRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Proposals []int32 `json:"proposals,omitempty"` - PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Proposals []int32 `json:"proposals,omitempty"` + PfsGroup NullablePatchedWritableIPSecPolicyRequestPfsGroup `json:"pfs_group,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +74,7 @@ func (o *WritableIPSecPolicyRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableIPSecPolicyRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -170,7 +171,6 @@ func (o *WritableIPSecPolicyRequest) HasPfsGroup() bool { func (o *WritableIPSecPolicyRequest) SetPfsGroup(v PatchedWritableIPSecPolicyRequestPfsGroup) { o.PfsGroup.Set(&v) } - // SetPfsGroupNil sets the value for PfsGroup to be an explicit nil func (o *WritableIPSecPolicyRequest) SetPfsGroupNil() { o.PfsGroup.Set(nil) @@ -278,7 +278,7 @@ func (o *WritableIPSecPolicyRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableIPSecPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -322,20 +322,37 @@ func (o *WritableIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableIPSecPolicyRequest := _WritableIPSecPolicyRequest{} err = json.Unmarshal(data, &varWritableIPSecPolicyRequest) @@ -397,3 +414,5 @@ func (v *NullableWritableIPSecPolicyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go index 0f60eeb674..62d9c8a98e 100644 --- a/model_writable_ip_sec_profile_request.go +++ b/model_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableIPSecProfileRequest{} // WritableIPSecProfileRequest Adds support for custom fields and tags. type WritableIPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableIPSecProfileRequest WritableIPSecProfileRequest // 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 NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *WritableIPSecProfileRequest { +func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *WritableIPSecProfileRequest { this := WritableIPSecProfileRequest{} this.Name = name this.Mode = mode @@ -78,6 +78,7 @@ func (o *WritableIPSecProfileRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableIPSecProfileRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -134,10 +135,11 @@ func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { o.Mode = v } + // GetIkePolicy returns the IkePolicy field value -func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +148,7 @@ func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +156,15 @@ func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) } // SetIkePolicy sets field value -func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } + // GetIpsecPolicy returns the IpsecPolicy field value -func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +173,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,10 +181,11 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, b } // SetIpsecPolicy sets field value -func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } + // GetComments returns the Comments field value if set, zero value otherwise. func (o *WritableIPSecProfileRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -279,7 +283,7 @@ func (o *WritableIPSecProfileRequest) SetCustomFields(v map[string]interface{}) } func (o WritableIPSecProfileRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -323,20 +327,37 @@ func (o *WritableIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) { "ipsec_policy", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableIPSecProfileRequest := _WritableIPSecProfileRequest{} err = json.Unmarshal(data, &varWritableIPSecProfileRequest) @@ -399,3 +420,5 @@ func (v *NullableWritableIPSecProfileRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go index f04acc1ab2..784b2b7b0f 100644 --- a/model_writable_ip_sec_proposal_request.go +++ b/model_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableIPSecProposalRequest{} // WritableIPSecProposalRequest Adds support for custom fields and tags. type WritableIPSecProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - EncryptionAlgorithm *Encryption `json:"encryption_algorithm,omitempty"` - AuthenticationAlgorithm *Authentication `json:"authentication_algorithm,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + EncryptionAlgorithm NullableEncryption `json:"encryption_algorithm,omitempty"` + AuthenticationAlgorithm NullableAuthentication `json:"authentication_algorithm,omitempty"` // Security association lifetime (seconds) SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"` // Security association lifetime (in kilobytes) - SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + SaLifetimeData NullableInt32 `json:"sa_lifetime_data,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -78,6 +78,7 @@ func (o *WritableIPSecProposalRequest) SetName(v string) { o.Name = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableIPSecProposalRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -110,68 +111,88 @@ func (o *WritableIPSecProposalRequest) SetDescription(v string) { o.Description = &v } -// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise. +// GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption { - if o == nil || IsNil(o.EncryptionAlgorithm) { + if o == nil || IsNil(o.EncryptionAlgorithm.Get()) { var ret Encryption return ret } - return *o.EncryptionAlgorithm + return *o.EncryptionAlgorithm.Get() } // GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm 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 *WritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool) { - if o == nil || IsNil(o.EncryptionAlgorithm) { + if o == nil { return nil, false } - return o.EncryptionAlgorithm, true + return o.EncryptionAlgorithm.Get(), o.EncryptionAlgorithm.IsSet() } // HasEncryptionAlgorithm returns a boolean if a field has been set. func (o *WritableIPSecProposalRequest) HasEncryptionAlgorithm() bool { - if o != nil && !IsNil(o.EncryptionAlgorithm) { + if o != nil && o.EncryptionAlgorithm.IsSet() { return true } return false } -// SetEncryptionAlgorithm gets a reference to the given Encryption and assigns it to the EncryptionAlgorithm field. +// SetEncryptionAlgorithm gets a reference to the given NullableEncryption and assigns it to the EncryptionAlgorithm field. func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) { - o.EncryptionAlgorithm = &v + o.EncryptionAlgorithm.Set(&v) +} +// SetEncryptionAlgorithmNil sets the value for EncryptionAlgorithm to be an explicit nil +func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithmNil() { + o.EncryptionAlgorithm.Set(nil) +} + +// UnsetEncryptionAlgorithm ensures that no value is present for EncryptionAlgorithm, not even an explicit nil +func (o *WritableIPSecProposalRequest) UnsetEncryptionAlgorithm() { + o.EncryptionAlgorithm.Unset() } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil || IsNil(o.AuthenticationAlgorithm.Get()) { var ret Authentication return ret } - return *o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm.Get() } // GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm 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 *WritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool) { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { return nil, false } - return o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm.Get(), o.AuthenticationAlgorithm.IsSet() } // HasAuthenticationAlgorithm returns a boolean if a field has been set. func (o *WritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool { - if o != nil && !IsNil(o.AuthenticationAlgorithm) { + if o != nil && o.AuthenticationAlgorithm.IsSet() { return true } return false } -// SetAuthenticationAlgorithm gets a reference to the given Authentication and assigns it to the AuthenticationAlgorithm field. +// SetAuthenticationAlgorithm gets a reference to the given NullableAuthentication and assigns it to the AuthenticationAlgorithm field. func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) { - o.AuthenticationAlgorithm = &v + o.AuthenticationAlgorithm.Set(&v) +} +// SetAuthenticationAlgorithmNil sets the value for AuthenticationAlgorithm to be an explicit nil +func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithmNil() { + o.AuthenticationAlgorithm.Set(nil) +} + +// UnsetAuthenticationAlgorithm ensures that no value is present for AuthenticationAlgorithm, not even an explicit nil +func (o *WritableIPSecProposalRequest) UnsetAuthenticationAlgorithm() { + o.AuthenticationAlgorithm.Unset() } // GetSaLifetimeSeconds returns the SaLifetimeSeconds field value if set, zero value otherwise (both if not set or set to explicit null). @@ -206,7 +227,6 @@ func (o *WritableIPSecProposalRequest) HasSaLifetimeSeconds() bool { func (o *WritableIPSecProposalRequest) SetSaLifetimeSeconds(v int32) { o.SaLifetimeSeconds.Set(&v) } - // SetSaLifetimeSecondsNil sets the value for SaLifetimeSeconds to be an explicit nil func (o *WritableIPSecProposalRequest) SetSaLifetimeSecondsNil() { o.SaLifetimeSeconds.Set(nil) @@ -249,7 +269,6 @@ func (o *WritableIPSecProposalRequest) HasSaLifetimeData() bool { func (o *WritableIPSecProposalRequest) SetSaLifetimeData(v int32) { o.SaLifetimeData.Set(&v) } - // SetSaLifetimeDataNil sets the value for SaLifetimeData to be an explicit nil func (o *WritableIPSecProposalRequest) SetSaLifetimeDataNil() { o.SaLifetimeData.Set(nil) @@ -357,7 +376,7 @@ func (o *WritableIPSecProposalRequest) SetCustomFields(v map[string]interface{}) } func (o WritableIPSecProposalRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -370,11 +389,11 @@ func (o WritableIPSecProposalRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.EncryptionAlgorithm) { - toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm + if o.EncryptionAlgorithm.IsSet() { + toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm.Get() } - if !IsNil(o.AuthenticationAlgorithm) { - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if o.AuthenticationAlgorithm.IsSet() { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm.Get() } if o.SaLifetimeSeconds.IsSet() { toSerialize["sa_lifetime_seconds"] = o.SaLifetimeSeconds.Get() @@ -407,20 +426,37 @@ func (o *WritableIPSecProposalRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableIPSecProposalRequest := _WritableIPSecProposalRequest{} err = json.Unmarshal(data, &varWritableIPSecProposalRequest) @@ -484,3 +520,5 @@ func (v *NullableWritableIPSecProposalRequest) 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 ab1c91cc27..3341475667 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ 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"` - Kind *JournalEntryKindValue `json:"kind,omitempty"` - Comments string `json:"comments"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + CreatedBy NullableInt32 `json:"created_by,omitempty"` + Kind *JournalEntryKindValue `json:"kind,omitempty"` + Comments string `json:"comments"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,6 +76,7 @@ func (o *WritableJournalEntryRequest) SetAssignedObjectType(v string) { o.AssignedObjectType = v } + // GetAssignedObjectId returns the AssignedObjectId field value func (o *WritableJournalEntryRequest) GetAssignedObjectId() int64 { if o == nil { @@ -100,6 +101,7 @@ func (o *WritableJournalEntryRequest) SetAssignedObjectId(v int64) { o.AssignedObjectId = v } + // GetCreatedBy returns the CreatedBy field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableJournalEntryRequest) GetCreatedBy() int32 { if o == nil || IsNil(o.CreatedBy.Get()) { @@ -132,7 +134,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) @@ -199,6 +200,7 @@ func (o *WritableJournalEntryRequest) SetComments(v string) { o.Comments = v } + // GetTags returns the Tags field value if set, zero value otherwise. func (o *WritableJournalEntryRequest) GetTags() []NestedTagRequest { if o == nil || IsNil(o.Tags) { @@ -264,7 +266,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 } @@ -306,20 +308,37 @@ func (o *WritableJournalEntryRequest) UnmarshalJSON(data []byte) (err error) { "comments", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableJournalEntryRequest := _WritableJournalEntryRequest{} err = json.Unmarshal(data, &varWritableJournalEntryRequest) @@ -381,3 +400,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 64af85b8da..75f197978b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // 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"` - Type L2VPNTypeValue `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 NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Type BriefL2VPNTypeValue `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 NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableL2VPNRequest WritableL2VPNRequest // 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 NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *WritableL2VPNRequest { +func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue) *WritableL2VPNRequest { this := WritableL2VPNRequest{} this.Name = name this.Slug = slug @@ -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) @@ -123,6 +122,7 @@ func (o *WritableL2VPNRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableL2VPNRequest) GetSlug() string { if o == nil { @@ -147,10 +147,11 @@ func (o *WritableL2VPNRequest) SetSlug(v string) { o.Slug = v } + // GetType returns the Type field value -func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } @@ -159,7 +160,7 @@ func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil { return nil, false } @@ -167,10 +168,11 @@ func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { } // SetType sets field value -func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue) { +func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = v } + // GetImportTargets returns the ImportTargets field value if set, zero value otherwise. func (o *WritableL2VPNRequest) GetImportTargets() []int32 { if o == nil || IsNil(o.ImportTargets) { @@ -300,9 +302,9 @@ func (o *WritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableL2VPNRequest) GetTenant() TenantRequest { +func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -311,7 +313,7 @@ func (o *WritableL2VPNRequest) GetTenant() TenantRequest { // 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 *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -327,11 +329,10 @@ func (o *WritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest) { 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 +408,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 } @@ -461,20 +462,37 @@ func (o *WritableL2VPNRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableL2VPNRequest := _WritableL2VPNRequest{} err = json.Unmarshal(data, &varWritableL2VPNRequest) @@ -540,3 +558,5 @@ func (v *NullableWritableL2VPNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_location_request.go b/model_writable_location_request.go index 4ee75bbce5..a61ecf4b03 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableLocationRequest{} // WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type WritableLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site SiteRequest `json:"site"` - Parent NullableInt32 `json:"parent"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Site BriefSiteRequest `json:"site"` + Parent NullableInt32 `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description - Facility *string `json:"facility,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,12 +40,11 @@ type _WritableLocationRequest WritableLocationRequest // 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 NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32) *WritableLocationRequest { +func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest) *WritableLocationRequest { this := WritableLocationRequest{} this.Name = name this.Slug = slug this.Site = site - this.Parent = parent return &this } @@ -81,6 +80,7 @@ func (o *WritableLocationRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableLocationRequest) GetSlug() string { if o == nil { @@ -105,10 +105,11 @@ func (o *WritableLocationRequest) SetSlug(v string) { o.Slug = v } + // GetSite returns the Site field value -func (o *WritableLocationRequest) GetSite() SiteRequest { +func (o *WritableLocationRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -117,7 +118,7 @@ func (o *WritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -125,22 +126,21 @@ func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableLocationRequest) SetSite(v SiteRequest) { +func (o *WritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = v } -// GetParent returns the Parent field value -// If the value is explicit nil, the zero value for int32 will be returned + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableLocationRequest) GetParent() int32 { - if o == nil || o.Parent.Get() == nil { + if o == nil || IsNil(o.Parent.Get()) { var ret int32 return ret } - return *o.Parent.Get() } -// GetParentOk returns a tuple with the Parent field value +// GetParentOk returns a tuple with the Parent 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 *WritableLocationRequest) GetParentOk() (*int32, bool) { @@ -150,15 +150,33 @@ func (o *WritableLocationRequest) GetParentOk() (*int32, bool) { return o.Parent.Get(), o.Parent.IsSet() } -// SetParent sets field value +// HasParent returns a boolean if a field has been set. +func (o *WritableLocationRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field. 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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WritableLocationRequest) UnsetParent() { + o.Parent.Unset() +} // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -166,7 +184,7 @@ func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStat // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -182,15 +200,15 @@ func (o *WritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableLocationRequest) GetTenant() TenantRequest { +func (o *WritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -199,7 +217,7 @@ func (o *WritableLocationRequest) GetTenant() TenantRequest { // 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 *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -215,11 +233,10 @@ func (o *WritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableLocationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -359,7 +376,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 } @@ -371,7 +388,9 @@ func (o WritableLocationRequest) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug toSerialize["site"] = o.Site - toSerialize["parent"] = o.Parent.Get() + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -406,23 +425,39 @@ func (o *WritableLocationRequest) UnmarshalJSON(data []byte) (err error) { "name", "slug", "site", - "parent", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableLocationRequest := _WritableLocationRequest{} err = json.Unmarshal(data, &varWritableLocationRequest) @@ -487,3 +522,5 @@ func (v *NullableWritableLocationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_module_request.go b/model_writable_module_request.go index 83271a51ea..32de0bdebe 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableModuleRequest{} // WritableModuleRequest Adds support for custom fields and tags. type WritableModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay int32 `json:"module_bay"` - ModuleType ModuleTypeRequest `json:"module_type"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device BriefDeviceRequest `json:"device"` + ModuleBay int32 `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *InventoryItemStatusValue `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{} } @@ -40,7 +40,7 @@ type _WritableModuleRequest WritableModuleRequest // 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 NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest) *WritableModuleRequest { +func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest) *WritableModuleRequest { this := WritableModuleRequest{} this.Device = device this.ModuleBay = moduleBay @@ -57,9 +57,9 @@ func NewWritableModuleRequestWithDefaults() *WritableModuleRequest { } // GetDevice returns the Device field value -func (o *WritableModuleRequest) GetDevice() DeviceRequest { +func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,10 +76,11 @@ func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableModuleRequest) SetDevice(v DeviceRequest) { +func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModuleBay returns the ModuleBay field value func (o *WritableModuleRequest) GetModuleBay() int32 { if o == nil { @@ -104,10 +105,11 @@ func (o *WritableModuleRequest) SetModuleBay(v int32) { o.ModuleBay = v } + // GetModuleType returns the ModuleType field value -func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } @@ -116,7 +118,7 @@ func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,14 +126,15 @@ func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { } // SetModuleType sets field value -func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = v } + // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableModuleRequest) GetStatus() InventoryItemStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret InventoryItemStatusValue return ret } return *o.Status @@ -139,7 +142,7 @@ func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableModuleRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,8 +158,8 @@ func (o *WritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *WritableModuleRequest) SetStatus(v InventoryItemStatusValue) { o.Status = &v } @@ -224,7 +227,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 +366,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 } @@ -415,20 +417,37 @@ func (o *WritableModuleRequest) UnmarshalJSON(data []byte) (err error) { "module_type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableModuleRequest := _WritableModuleRequest{} err = json.Unmarshal(data, &varWritableModuleRequest) @@ -493,3 +512,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 a321613feb..9b3af54661 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,17 @@ var _ MappedNullable = &WritableModuleTypeRequest{} // WritableModuleTypeRequest Adds support for custom fields and tags. type WritableModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `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"` + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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{} } @@ -39,7 +40,7 @@ type _WritableModuleTypeRequest WritableModuleTypeRequest // 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 NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string) *WritableModuleTypeRequest { +func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *WritableModuleTypeRequest { this := WritableModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -55,9 +56,9 @@ func NewWritableModuleTypeRequestWithDefaults() *WritableModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -66,7 +67,7 @@ func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -74,10 +75,11 @@ func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } + // GetModel returns the Model field value func (o *WritableModuleTypeRequest) GetModel() string { if o == nil { @@ -102,6 +104,7 @@ func (o *WritableModuleTypeRequest) SetModel(v string) { o.Model = v } + // GetPartNumber returns the PartNumber field value if set, zero value otherwise. func (o *WritableModuleTypeRequest) GetPartNumber() string { if o == nil || IsNil(o.PartNumber) { @@ -134,6 +137,48 @@ func (o *WritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableModuleTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeRequestAirflow and assigns it to the Airflow field. +func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *WritableModuleTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *WritableModuleTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -166,7 +211,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) @@ -177,36 +221,46 @@ func (o *WritableModuleTypeRequest) UnsetWeight() { o.Weight.Unset() } -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit return ret } - return *o.WeightUnit + return *o.WeightUnit.Get() } // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { - if o == nil || IsNil(o.WeightUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { return nil, false } - return o.WeightUnit, true + return o.WeightUnit.Get(), o.WeightUnit.IsSet() } // HasWeightUnit returns a boolean if a field has been set. func (o *WritableModuleTypeRequest) HasWeightUnit() bool { - if o != nil && !IsNil(o.WeightUnit) { + if o != nil && o.WeightUnit.IsSet() { return true } return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { - o.WeightUnit = &v +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *WritableModuleTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *WritableModuleTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -338,7 +392,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 } @@ -352,11 +406,14 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } - if !IsNil(o.WeightUnit) { - toSerialize["weight_unit"] = o.WeightUnit + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -387,20 +444,37 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { "model", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableModuleTypeRequest := _WritableModuleTypeRequest{} err = json.Unmarshal(data, &varWritableModuleTypeRequest) @@ -417,6 +491,7 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") @@ -464,3 +539,5 @@ func (v *NullableWritableModuleTypeRequest) 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 3a6fcef64d..f4e0d9f263 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,24 +20,24 @@ var _ MappedNullable = &WritablePowerFeedRequest{} // WritablePowerFeedRequest Adds support for custom fields and tags. type WritablePowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` - Name string `json:"name"` - Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` - Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` - Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"` - Phase *PatchedWritablePowerFeedRequestPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Name string `json:"name"` + Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` + Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` + Supply *PatchedWritablePowerFeedRequestSupply `json:"supply,omitempty"` + Phase *PatchedWritablePowerFeedRequestPhase `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"` - Tenant NullableTenantRequest `json:"tenant,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 NullableBriefTenantRequest `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{} } @@ -47,7 +47,7 @@ type _WritablePowerFeedRequest WritablePowerFeedRequest // 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 NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string) *WritablePowerFeedRequest { +func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *WritablePowerFeedRequest { this := WritablePowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewWritablePowerFeedRequestWithDefaults() *WritablePowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,15 @@ func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) } // SetPowerPanel sets field value -func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } + // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetRack() RackRequest { +func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +99,7 @@ func (o *WritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack 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) GetRackOk() (*RackRequest, bool) { +func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,11 +115,10 @@ func (o *WritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *WritablePowerFeedRequest) SetRackNil() { o.Rack.Set(nil) @@ -153,6 +153,7 @@ func (o *WritablePowerFeedRequest) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value if set, zero value otherwise. func (o *WritablePowerFeedRequest) GetStatus() PatchedWritablePowerFeedRequestStatus { if o == nil || IsNil(o.Status) { @@ -442,9 +443,9 @@ func (o *WritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +454,7 @@ func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { // 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() (*TenantRequest, bool) { +func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,11 +470,10 @@ func (o *WritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritablePowerFeedRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -581,7 +581,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 } @@ -651,20 +651,37 @@ func (o *WritablePowerFeedRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritablePowerFeedRequest := _WritablePowerFeedRequest{} err = json.Unmarshal(data, &varWritablePowerFeedRequest) @@ -735,3 +752,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 024131d9b7..419597810f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,20 @@ var _ MappedNullable = &WritablePowerOutletRequest{} // WritablePowerOutletRequest Adds support for custom fields and tags. type WritablePowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` - FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerOutletRequestType `json:"type,omitempty"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` + FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `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{} } @@ -42,7 +43,7 @@ type _WritablePowerOutletRequest WritablePowerOutletRequest // 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 NewWritablePowerOutletRequest(device DeviceRequest, name string) *WritablePowerOutletRequest { +func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string) *WritablePowerOutletRequest { this := WritablePowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +59,9 @@ func NewWritablePowerOutletRequestWithDefaults() *WritablePowerOutletRequest { } // GetDevice returns the Device field value -func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +70,7 @@ func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +78,15 @@ func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +95,7 @@ func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,11 +111,10 @@ func (o *WritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritablePowerOutletRequest) SetModuleNil() { o.Module.Set(nil) @@ -148,6 +149,7 @@ func (o *WritablePowerOutletRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritablePowerOutletRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -180,42 +182,84 @@ func (o *WritablePowerOutletRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritablePowerOutletRequest) GetType() PatchedWritablePowerOutletRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerOutletRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *WritablePowerOutletRequest) GetTypeOk() (*PatchedWritablePowerOutletRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritablePowerOutletRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerOutletRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerOutletRequestType and assigns it to the Type field. func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritablePowerOutletRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritablePowerOutletRequest) UnsetType() { + o.Type.Unset() +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *WritablePowerOutletRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritablePowerOutletRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *WritablePowerOutletRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *WritablePowerOutletRequest) SetColor(v string) { + o.Color = &v } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -224,7 +268,7 @@ func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort 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 *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -240,11 +284,10 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *WritablePowerOutletRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -255,36 +298,46 @@ func (o *WritablePowerOutletRequest) UnsetPowerPort() { o.PowerPort.Unset() } -// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise. +// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritablePowerOutletRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg { - if o == nil || IsNil(o.FeedLeg) { + if o == nil || IsNil(o.FeedLeg.Get()) { var ret PatchedWritablePowerOutletRequestFeedLeg return ret } - return *o.FeedLeg + return *o.FeedLeg.Get() } // GetFeedLegOk returns a tuple with the FeedLeg 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 *WritablePowerOutletRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) { - if o == nil || IsNil(o.FeedLeg) { + if o == nil { return nil, false } - return o.FeedLeg, true + return o.FeedLeg.Get(), o.FeedLeg.IsSet() } // HasFeedLeg returns a boolean if a field has been set. func (o *WritablePowerOutletRequest) HasFeedLeg() bool { - if o != nil && !IsNil(o.FeedLeg) { + if o != nil && o.FeedLeg.IsSet() { return true } return false } -// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. +// SetFeedLeg gets a reference to the given NullablePatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. func (o *WritablePowerOutletRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) { - o.FeedLeg = &v + o.FeedLeg.Set(&v) +} +// SetFeedLegNil sets the value for FeedLeg to be an explicit nil +func (o *WritablePowerOutletRequest) SetFeedLegNil() { + o.FeedLeg.Set(nil) +} + +// UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil +func (o *WritablePowerOutletRequest) UnsetFeedLeg() { + o.FeedLeg.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -416,7 +469,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 } @@ -433,14 +486,17 @@ func (o WritablePowerOutletRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color } if o.PowerPort.IsSet() { toSerialize["power_port"] = o.PowerPort.Get() } - if !IsNil(o.FeedLeg) { - toSerialize["feed_leg"] = o.FeedLeg + if o.FeedLeg.IsSet() { + toSerialize["feed_leg"] = o.FeedLeg.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -471,20 +527,37 @@ func (o *WritablePowerOutletRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritablePowerOutletRequest := _WritablePowerOutletRequest{} err = json.Unmarshal(data, &varWritablePowerOutletRequest) @@ -503,6 +576,7 @@ func (o *WritablePowerOutletRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "type") + delete(additionalProperties, "color") delete(additionalProperties, "power_port") delete(additionalProperties, "feed_leg") delete(additionalProperties, "description") @@ -550,3 +624,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 d74116d275..7ce1ae9547 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritablePowerOutletTemplateRequest{} // WritablePowerOutletTemplateRequest 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 WritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` - FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + FeedLeg NullablePatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ func NewWritablePowerOutletTemplateRequestWithDefaults() *WritablePowerOutletTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,11 +81,10 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritablePowerOutletTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -97,9 +96,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +107,7 @@ func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,11 +123,10 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritablePowerOutletTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -163,6 +161,7 @@ func (o *WritablePowerOutletTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritablePowerOutletTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -195,42 +194,52 @@ func (o *WritablePowerOutletTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritablePowerOutletTemplateRequest) GetType() PatchedWritablePowerOutletTemplateRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerOutletTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *WritablePowerOutletTemplateRequest) GetTypeOk() (*PatchedWritablePowerOutletTemplateRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritablePowerOutletTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerOutletTemplateRequestType and assigns it to the Type field. func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutletTemplateRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritablePowerOutletTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritablePowerOutletTemplateRequest) UnsetType() { + o.Type.Unset() } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -239,7 +248,7 @@ func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateReq // GetPowerPortOk returns a tuple with the PowerPort 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 *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -255,11 +264,10 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *WritablePowerOutletTemplateRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -270,36 +278,46 @@ func (o *WritablePowerOutletTemplateRequest) UnsetPowerPort() { o.PowerPort.Unset() } -// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise. +// GetFeedLeg returns the FeedLeg field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritablePowerOutletTemplateRequest) GetFeedLeg() PatchedWritablePowerOutletRequestFeedLeg { - if o == nil || IsNil(o.FeedLeg) { + if o == nil || IsNil(o.FeedLeg.Get()) { var ret PatchedWritablePowerOutletRequestFeedLeg return ret } - return *o.FeedLeg + return *o.FeedLeg.Get() } // GetFeedLegOk returns a tuple with the FeedLeg 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 *WritablePowerOutletTemplateRequest) GetFeedLegOk() (*PatchedWritablePowerOutletRequestFeedLeg, bool) { - if o == nil || IsNil(o.FeedLeg) { + if o == nil { return nil, false } - return o.FeedLeg, true + return o.FeedLeg.Get(), o.FeedLeg.IsSet() } // HasFeedLeg returns a boolean if a field has been set. func (o *WritablePowerOutletTemplateRequest) HasFeedLeg() bool { - if o != nil && !IsNil(o.FeedLeg) { + if o != nil && o.FeedLeg.IsSet() { return true } return false } -// SetFeedLeg gets a reference to the given PatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. +// SetFeedLeg gets a reference to the given NullablePatchedWritablePowerOutletRequestFeedLeg and assigns it to the FeedLeg field. func (o *WritablePowerOutletTemplateRequest) SetFeedLeg(v PatchedWritablePowerOutletRequestFeedLeg) { - o.FeedLeg = &v + o.FeedLeg.Set(&v) +} +// SetFeedLegNil sets the value for FeedLeg to be an explicit nil +func (o *WritablePowerOutletTemplateRequest) SetFeedLegNil() { + o.FeedLeg.Set(nil) +} + +// UnsetFeedLeg ensures that no value is present for FeedLeg, not even an explicit nil +func (o *WritablePowerOutletTemplateRequest) UnsetFeedLeg() { + o.FeedLeg.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -335,7 +353,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 } @@ -354,14 +372,14 @@ func (o WritablePowerOutletTemplateRequest) ToMap() (map[string]interface{}, err if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.PowerPort.IsSet() { toSerialize["power_port"] = o.PowerPort.Get() } - if !IsNil(o.FeedLeg) { - toSerialize["feed_leg"] = o.FeedLeg + if o.FeedLeg.IsSet() { + toSerialize["feed_leg"] = o.FeedLeg.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -382,20 +400,37 @@ func (o *WritablePowerOutletTemplateRequest) UnmarshalJSON(data []byte) (err err "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritablePowerOutletTemplateRequest := _WritablePowerOutletTemplateRequest{} err = json.Unmarshal(data, &varWritablePowerOutletTemplateRequest) @@ -458,3 +493,5 @@ func (v *NullableWritablePowerOutletTemplateRequest) UnmarshalJSON(src []byte) e 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 1634269d89..3e078ae43f 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &WritablePowerPortRequest{} // WritablePowerPortRequest Adds support for custom fields and tags. type WritablePowerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerPortRequestType `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"` - 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{} } @@ -44,7 +44,7 @@ type _WritablePowerPortRequest WritablePowerPortRequest // 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 NewWritablePowerPortRequest(device DeviceRequest, name string) *WritablePowerPortRequest { +func NewWritablePowerPortRequest(device BriefDeviceRequest, name string) *WritablePowerPortRequest { this := WritablePowerPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritablePowerPortRequestWithDefaults() *WritablePowerPortRequest { } // GetDevice returns the Device field value -func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,15 @@ func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortRequest) GetModule() ModuleRequest { +func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +96,7 @@ func (o *WritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,11 +112,10 @@ func (o *WritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritablePowerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -150,6 +150,7 @@ func (o *WritablePowerPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritablePowerPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -182,36 +183,46 @@ func (o *WritablePowerPortRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritablePowerPortRequest) GetType() PatchedWritablePowerPortRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerPortRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *WritablePowerPortRequest) GetTypeOk() (*PatchedWritablePowerPortRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritablePowerPortRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerPortRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerPortRequestType and assigns it to the Type field. func (o *WritablePowerPortRequest) SetType(v PatchedWritablePowerPortRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritablePowerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritablePowerPortRequest) UnsetType() { + o.Type.Unset() } // GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). @@ -246,7 +257,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 +299,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 +438,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 } @@ -446,8 +455,8 @@ func (o WritablePowerPortRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.MaximumDraw.IsSet() { toSerialize["maximum_draw"] = o.MaximumDraw.Get() @@ -484,20 +493,37 @@ func (o *WritablePowerPortRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritablePowerPortRequest := _WritablePowerPortRequest{} err = json.Unmarshal(data, &varWritablePowerPortRequest) @@ -563,3 +589,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 0f35c5336a..e2e30b2b39 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &WritablePowerPortTemplateRequest{} // WritablePowerPortTemplateRequest 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 WritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type *PatchedWritablePowerPortTemplateRequestType `json:"type,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePatchedWritablePowerPortTemplateRequestType `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"` + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,9 +56,9 @@ func NewWritablePowerPortTemplateRequestWithDefaults() *WritablePowerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,11 +83,10 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritablePowerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -99,9 +98,9 @@ func (o *WritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +109,7 @@ func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,11 +125,10 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritablePowerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -165,6 +163,7 @@ func (o *WritablePowerPortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritablePowerPortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -197,36 +196,46 @@ func (o *WritablePowerPortTemplateRequest) SetLabel(v string) { o.Label = &v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritablePowerPortTemplateRequest) GetType() PatchedWritablePowerPortTemplateRequestType { - if o == nil || IsNil(o.Type) { + if o == nil || IsNil(o.Type.Get()) { var ret PatchedWritablePowerPortTemplateRequestType return ret } - return *o.Type + return *o.Type.Get() } // GetTypeOk returns a tuple with the Type 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 *WritablePowerPortTemplateRequest) GetTypeOk() (*PatchedWritablePowerPortTemplateRequestType, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true + return o.Type.Get(), o.Type.IsSet() } // HasType returns a boolean if a field has been set. func (o *WritablePowerPortTemplateRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && o.Type.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritablePowerPortTemplateRequestType and assigns it to the Type field. +// SetType gets a reference to the given NullablePatchedWritablePowerPortTemplateRequestType and assigns it to the Type field. func (o *WritablePowerPortTemplateRequest) SetType(v PatchedWritablePowerPortTemplateRequestType) { - o.Type = &v + o.Type.Set(&v) +} +// SetTypeNil sets the value for Type to be an explicit nil +func (o *WritablePowerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *WritablePowerPortTemplateRequest) UnsetType() { + o.Type.Unset() } // GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). @@ -261,7 +270,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 +312,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 +355,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 } @@ -367,8 +374,8 @@ func (o WritablePowerPortTemplateRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() } if o.MaximumDraw.IsSet() { toSerialize["maximum_draw"] = o.MaximumDraw.Get() @@ -395,20 +402,37 @@ func (o *WritablePowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritablePowerPortTemplateRequest := _WritablePowerPortTemplateRequest{} err = json.Unmarshal(data, &varWritablePowerPortTemplateRequest) @@ -471,3 +495,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 2b7bd6bba7..1b45154069 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,22 @@ var _ MappedNullable = &WritablePrefixRequest{} // WritablePrefixRequest Adds support for custom fields and tags. type WritablePrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Prefix string `json:"prefix"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully 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{} } @@ -82,96 +83,137 @@ func (o *WritablePrefixRequest) SetPrefix(v string) { o.Prefix = v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetSite() SiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRFRequest return ret } - return *o.Site.Get() + return *o.Vrf.Get() } -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// GetVrfOk returns a tuple with the Vrf 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 *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } - return o.Site.Get(), o.Site.IsSet() + return o.Vrf.Get(), o.Vrf.IsSet() } -// HasSite returns a boolean if a field has been set. -func (o *WritablePrefixRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { +// HasVrf returns a boolean if a field has been set. +func (o *WritablePrefixRequest) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { return true } return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritablePrefixRequest) SetSite(v SiteRequest) { - o.Site.Set(&v) +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest) { + o.Vrf.Set(&v) } - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *WritablePrefixRequest) SetSiteNil() { - o.Site.Set(nil) +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *WritablePrefixRequest) SetVrfNil() { + o.Vrf.Set(nil) } -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *WritablePrefixRequest) UnsetSite() { - o.Site.Unset() +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *WritablePrefixRequest) UnsetVrf() { + o.Vrf.Unset() } -// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVrf() VRFRequest { - if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritablePrefixRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string return ret } - return *o.Vrf.Get() + return *o.ScopeType.Get() } -// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// GetScopeTypeOk returns a tuple with the ScopeType 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 *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritablePrefixRequest) GetScopeTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.Vrf.Get(), o.Vrf.IsSet() + return o.ScopeType.Get(), o.ScopeType.IsSet() } -// HasVrf returns a boolean if a field has been set. -func (o *WritablePrefixRequest) HasVrf() bool { - if o != nil && o.Vrf.IsSet() { +// HasScopeType returns a boolean if a field has been set. +func (o *WritablePrefixRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { return true } return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritablePrefixRequest) SetVrf(v VRFRequest) { - o.Vrf.Set(&v) +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *WritablePrefixRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *WritablePrefixRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) } -// SetVrfNil sets the value for Vrf to be an explicit nil -func (o *WritablePrefixRequest) SetVrfNil() { - o.Vrf.Set(nil) +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *WritablePrefixRequest) UnsetScopeType() { + o.ScopeType.Unset() } -// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -func (o *WritablePrefixRequest) UnsetVrf() { - o.Vrf.Unset() +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritablePrefixRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *WritablePrefixRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *WritablePrefixRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *WritablePrefixRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *WritablePrefixRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *WritablePrefixRequest) UnsetScopeId() { + o.ScopeId.Unset() } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetTenant() TenantRequest { +func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +222,7 @@ func (o *WritablePrefixRequest) GetTenant() TenantRequest { // 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 *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,11 +238,10 @@ func (o *WritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritablePrefixRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -212,9 +253,9 @@ func (o *WritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVlan() VLANRequest { +func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +264,7 @@ func (o *WritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan 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 *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,11 +280,10 @@ func (o *WritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WritablePrefixRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -287,9 +327,9 @@ func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus) } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetRole() RoleRequest { +func (o *WritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +338,7 @@ func (o *WritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,11 +354,10 @@ func (o *WritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritablePrefixRequest) SetRoleNil() { o.Role.Set(nil) @@ -522,7 +561,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 } @@ -532,12 +571,15 @@ func (o WritablePrefixRequest) MarshalJSON() ([]byte, error) { func (o WritablePrefixRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["prefix"] = o.Prefix - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -584,20 +626,37 @@ func (o *WritablePrefixRequest) UnmarshalJSON(data []byte) (err error) { "prefix", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritablePrefixRequest := _WritablePrefixRequest{} err = json.Unmarshal(data, &varWritablePrefixRequest) @@ -612,8 +671,9 @@ func (o *WritablePrefixRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "prefix") - delete(additionalProperties, "site") delete(additionalProperties, "vrf") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "tenant") delete(additionalProperties, "vlan") delete(additionalProperties, "status") @@ -665,3 +725,5 @@ func (v *NullableWritablePrefixRequest) 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 fd0dcb9245..8d68bb6138 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,39 +20,41 @@ var _ MappedNullable = &WritableRackRequest{} // WritableRackRequest Adds support for custom fields and tags. type WritableRackRequest struct { - Name string `json:"name"` - FacilityId NullableString `json:"facility_id,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor NullablePatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack - StartingUnit *int32 `json:"starting_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `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 *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullablePatchedWritableRackRequestOuterUnit `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"` + Airflow NullablePatchedWritableRackRequestAirflow `json:"airflow,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{} } @@ -62,7 +64,7 @@ type _WritableRackRequest WritableRackRequest // 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 NewWritableRackRequest(name string, site SiteRequest) *WritableRackRequest { +func NewWritableRackRequest(name string, site BriefSiteRequest) *WritableRackRequest { this := WritableRackRequest{} this.Name = name this.Site = site @@ -101,6 +103,7 @@ func (o *WritableRackRequest) SetName(v string) { o.Name = v } + // GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableRackRequest) GetFacilityId() string { if o == nil || IsNil(o.FacilityId.Get()) { @@ -133,7 +136,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) @@ -145,9 +147,9 @@ func (o *WritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value -func (o *WritableRackRequest) GetSite() SiteRequest { +func (o *WritableRackRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -156,7 +158,7 @@ func (o *WritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -164,14 +166,15 @@ func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableRackRequest) SetSite(v SiteRequest) { +func (o *WritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = v } + // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetLocation() LocationRequest { +func (o *WritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -180,7 +183,7 @@ func (o *WritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location 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 *WritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -196,11 +199,10 @@ func (o *WritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *WritableRackRequest) SetLocationNil() { o.Location.Set(nil) @@ -212,9 +214,9 @@ func (o *WritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetTenant() TenantRequest { +func (o *WritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -223,7 +225,7 @@ func (o *WritableRackRequest) GetTenant() TenantRequest { // 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 *WritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -239,11 +241,10 @@ func (o *WritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableRackRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -287,9 +288,9 @@ func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetRole() RackRoleRequest { +func (o *WritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -298,7 +299,7 @@ func (o *WritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role 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 *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -314,11 +315,10 @@ func (o *WritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *WritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableRackRequest) SetRoleNil() { o.Role.Set(nil) @@ -393,7 +393,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) @@ -404,36 +403,88 @@ func (o *WritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType 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 *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *WritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *WritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *WritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret PatchedWritableRackRequestFormFactor return ret } - return *o.Type + return *o.FormFactor.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil { return nil, false } - return o.Type, true + return o.FormFactor.Get(), o.FormFactor.IsSet() } -// HasType returns a boolean if a field has been set. -func (o *WritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasFormFactor returns a boolean if a field has been set. +func (o *WritableRackRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetFormFactor gets a reference to the given NullablePatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *WritableRackRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *WritableRackRequest) UnsetFormFactor() { + o.FormFactor.Unset() } // GetWidth returns the Width field value if set, zero value otherwise. @@ -564,7 +615,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) @@ -607,7 +657,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) @@ -618,36 +667,46 @@ func (o *WritableRackRequest) UnsetMaxWeight() { o.MaxWeight.Unset() } -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit return ret } - return *o.WeightUnit + return *o.WeightUnit.Get() } // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { - if o == nil || IsNil(o.WeightUnit) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { return nil, false } - return o.WeightUnit, true + return o.WeightUnit.Get(), o.WeightUnit.IsSet() } // HasWeightUnit returns a boolean if a field has been set. func (o *WritableRackRequest) HasWeightUnit() bool { - if o != nil && !IsNil(o.WeightUnit) { + if o != nil && o.WeightUnit.IsSet() { return true } return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { - o.WeightUnit = &v +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *WritableRackRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *WritableRackRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() } // GetDescUnits returns the DescUnits field value if set, zero value otherwise. @@ -714,7 +773,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) @@ -757,7 +815,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) @@ -768,36 +825,46 @@ func (o *WritableRackRequest) UnsetOuterDepth() { o.OuterDepth.Unset() } -// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise. +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableRackRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { - if o == nil || IsNil(o.OuterUnit) { + if o == nil || IsNil(o.OuterUnit.Get()) { var ret PatchedWritableRackRequestOuterUnit return ret } - return *o.OuterUnit + return *o.OuterUnit.Get() } // GetOuterUnitOk returns a tuple with the OuterUnit 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 *WritableRackRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { - if o == nil || IsNil(o.OuterUnit) { + if o == nil { return nil, false } - return o.OuterUnit, true + return o.OuterUnit.Get(), o.OuterUnit.IsSet() } // HasOuterUnit returns a boolean if a field has been set. func (o *WritableRackRequest) HasOuterUnit() bool { - if o != nil && !IsNil(o.OuterUnit) { + if o != nil && o.OuterUnit.IsSet() { return true } return false } -// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +// SetOuterUnit gets a reference to the given NullablePatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. func (o *WritableRackRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { - o.OuterUnit = &v + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *WritableRackRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *WritableRackRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() } // GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). @@ -832,7 +899,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) @@ -843,6 +909,48 @@ func (o *WritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow 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 *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableRackRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullablePatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow.Set(&v) +} +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *WritableRackRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *WritableRackRequest) UnsetAirflow() { + o.Airflow.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -972,7 +1080,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 } @@ -1004,8 +1112,11 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1022,8 +1133,8 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MaxWeight.IsSet() { toSerialize["max_weight"] = o.MaxWeight.Get() } - if !IsNil(o.WeightUnit) { - toSerialize["weight_unit"] = o.WeightUnit + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() } if !IsNil(o.DescUnits) { toSerialize["desc_units"] = o.DescUnits @@ -1034,12 +1145,15 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.OuterDepth.IsSet() { toSerialize["outer_depth"] = o.OuterDepth.Get() } - if !IsNil(o.OuterUnit) { - toSerialize["outer_unit"] = o.OuterUnit + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() } if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1069,20 +1183,37 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { "site", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableRackRequest := _WritableRackRequest{} err = json.Unmarshal(data, &varWritableRackRequest) @@ -1105,7 +1236,8 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1117,6 +1249,7 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -1162,3 +1295,5 @@ func (v *NullableWritableRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_rack_type_request.go b/model_writable_rack_type_request.go new file mode 100644 index 0000000000..a2845a8a3c --- /dev/null +++ b/model_writable_rack_type_request.go @@ -0,0 +1,908 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableRackTypeRequest{} + +// WritableRackTypeRequest Adds support for custom fields and tags. +type WritableRackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Description *string `json:"description,omitempty"` + FormFactor PatchedWritableRackTypeRequestFormFactor `json:"form_factor"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_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 NullablePatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_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"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableRackTypeRequest WritableRackTypeRequest + +// NewWritableRackTypeRequest instantiates a new WritableRackTypeRequest 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 NewWritableRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor) *WritableRackTypeRequest { + this := WritableRackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + this.FormFactor = formFactor + return &this +} + +// NewWritableRackTypeRequestWithDefaults instantiates a new WritableRackTypeRequest 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 NewWritableRackTypeRequestWithDefaults() *WritableRackTypeRequest { + this := WritableRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *WritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + + +// GetModel returns the Model field value +func (o *WritableRackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *WritableRackTypeRequest) SetModel(v string) { + o.Model = v +} + + +// GetSlug returns the Slug field value +func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *WritableRackTypeRequest) SetSlug(v string) { + o.Slug = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value +func (o *WritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor { + if o == nil { + var ret PatchedWritableRackTypeRequestFormFactor + return ret + } + + return o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return &o.FormFactor, true +} + +// SetFormFactor sets field value +func (o *WritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor) { + o.FormFactor = v +} + + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth { + if o == nil || IsNil(o.Width) { + var ret PatchedWritableRackRequestWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field. +func (o *WritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *WritableRackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *WritableRackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth 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 *WritableRackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *WritableRackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *WritableRackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth 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 *WritableRackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *WritableRackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *WritableRackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit 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 *WritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullablePatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *WritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *WritableRackTypeRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight 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 *WritableRackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *WritableRackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *WritableRackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight 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 *WritableRackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *WritableRackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *WritableRackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit 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 *WritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *WritableRackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *WritableRackTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth 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 *WritableRackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *WritableRackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *WritableRackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableRackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) 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 *WritableRackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o WritableRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["form_factor"] = o.FormFactor + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + "form_factor", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varWritableRackTypeRequest := _WritableRackTypeRequest{} + + err = json.Unmarshal(data, &varWritableRackTypeRequest) + + if err != nil { + return err + } + + *o = WritableRackTypeRequest(varWritableRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableRackTypeRequest struct { + value *WritableRackTypeRequest + isSet bool +} + +func (v NullableWritableRackTypeRequest) Get() *WritableRackTypeRequest { + return v.value +} + +func (v *NullableWritableRackTypeRequest) Set(val *WritableRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableRackTypeRequest(val *WritableRackTypeRequest) *NullableWritableRackTypeRequest { + return &NullableWritableRackTypeRequest{value: val, isSet: true} +} + +func (v NullableWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableRackTypeRequest) 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 0bd5f8acb0..c9c46daf81 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &WritableRearPortRequest{} // WritableRearPortRequest Adds support for custom fields and tags. type WritableRearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` // 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{} } @@ -43,7 +43,7 @@ type _WritableRearPortRequest WritableRearPortRequest // 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 NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { +func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { this := WritableRearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritableRearPortRequestWithDefaults() *WritableRearPortRequest { } // GetDevice returns the Device field value -func (o *WritableRearPortRequest) GetDevice() DeviceRequest { +func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,15 @@ func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableRearPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortRequest) GetModule() ModuleRequest { +func (o *WritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +96,7 @@ func (o *WritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module 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 *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,11 +112,10 @@ func (o *WritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableRearPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -150,6 +150,7 @@ func (o *WritableRearPortRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableRearPortRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -206,6 +207,7 @@ func (o *WritableRearPortRequest) SetType(v FrontPortTypeValue) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *WritableRearPortRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -399,7 +401,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 } @@ -453,20 +455,37 @@ func (o *WritableRearPortRequest) UnmarshalJSON(data []byte) (err error) { "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableRearPortRequest := _WritableRearPortRequest{} err = json.Unmarshal(data, &varWritableRearPortRequest) @@ -532,3 +551,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 68e2467e91..eeee3f31ef 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritableRearPortTemplateRequest{} // WritableRearPortTemplateRequest 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 WritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,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"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty" validate:"regexp=^[0-9a-f]{6}$"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewWritableRearPortTemplateRequestWithDefaults() *WritableRearPortTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -66,7 +66,7 @@ func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType 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 *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -82,11 +82,10 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableRearPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -98,9 +97,9 @@ func (o *WritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -109,7 +108,7 @@ func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType 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 *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -125,11 +124,10 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableRearPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -164,6 +162,7 @@ func (o *WritableRearPortTemplateRequest) SetName(v string) { o.Name = v } + // GetLabel returns the Label field value if set, zero value otherwise. func (o *WritableRearPortTemplateRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -220,6 +219,7 @@ func (o *WritableRearPortTemplateRequest) SetType(v FrontPortTypeValue) { o.Type = v } + // GetColor returns the Color field value if set, zero value otherwise. func (o *WritableRearPortTemplateRequest) GetColor() string { if o == nil || IsNil(o.Color) { @@ -317,7 +317,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 } @@ -363,20 +363,37 @@ func (o *WritableRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) "type", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableRearPortTemplateRequest := _WritableRearPortTemplateRequest{} err = json.Unmarshal(data, &varWritableRearPortTemplateRequest) @@ -439,3 +456,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 10e3c56c26..b356c8f4ce 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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"` - 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -35,11 +35,10 @@ type _WritableRegionRequest WritableRegionRequest // 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 NewWritableRegionRequest(name string, slug string, parent NullableInt32) *WritableRegionRequest { +func NewWritableRegionRequest(name string, slug string) *WritableRegionRequest { this := WritableRegionRequest{} this.Name = name this.Slug = slug - this.Parent = parent return &this } @@ -75,6 +74,7 @@ func (o *WritableRegionRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableRegionRequest) GetSlug() string { if o == nil { @@ -99,18 +99,17 @@ func (o *WritableRegionRequest) SetSlug(v string) { o.Slug = v } -// GetParent returns the Parent field value -// If the value is explicit nil, the zero value for int32 will be returned + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableRegionRequest) GetParent() int32 { - if o == nil || o.Parent.Get() == nil { + if o == nil || IsNil(o.Parent.Get()) { var ret int32 return ret } - return *o.Parent.Get() } -// GetParentOk returns a tuple with the Parent field value +// GetParentOk returns a tuple with the Parent 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 *WritableRegionRequest) GetParentOk() (*int32, bool) { @@ -120,10 +119,28 @@ func (o *WritableRegionRequest) GetParentOk() (*int32, bool) { return o.Parent.Get(), o.Parent.IsSet() } -// SetParent sets field value +// HasParent returns a boolean if a field has been set. +func (o *WritableRegionRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field. 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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WritableRegionRequest) UnsetParent() { + o.Parent.Unset() +} // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableRegionRequest) GetDescription() string { @@ -222,7 +239,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 } @@ -233,7 +250,9 @@ func (o WritableRegionRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["parent"] = o.Parent.Get() + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -258,23 +277,39 @@ func (o *WritableRegionRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", - "parent", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableRegionRequest := _WritableRegionRequest{} err = json.Unmarshal(data, &varWritableRegionRequest) @@ -335,3 +370,5 @@ func (v *NullableWritableRegionRequest) 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 a3150a1280..6d1d8d7fbb 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritableServiceRequest{} // WritableServiceRequest Adds support for custom fields and tags. type WritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` - Ports []int32 `json:"ports"` - 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"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Name string `json:"name"` + Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` + Ports []int32 `json:"ports"` + 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{} } @@ -56,9 +56,9 @@ func NewWritableServiceRequestWithDefaults() *WritableServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetDevice() DeviceRequest { +func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -67,7 +67,7 @@ func (o *WritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device 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 *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,11 +83,10 @@ func (o *WritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *WritableServiceRequest) SetDeviceNil() { o.Device.Set(nil) @@ -99,9 +98,9 @@ func (o *WritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -110,7 +109,7 @@ func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine 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 *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -126,11 +125,10 @@ func (o *WritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *WritableServiceRequest) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -165,6 +163,7 @@ func (o *WritableServiceRequest) SetName(v string) { o.Name = v } + // GetProtocol returns the Protocol field value func (o *WritableServiceRequest) GetProtocol() PatchedWritableServiceRequestProtocol { if o == nil { @@ -189,6 +188,7 @@ func (o *WritableServiceRequest) SetProtocol(v PatchedWritableServiceRequestProt o.Protocol = v } + // GetPorts returns the Ports field value func (o *WritableServiceRequest) GetPorts() []int32 { if o == nil { @@ -213,6 +213,7 @@ func (o *WritableServiceRequest) SetPorts(v []int32) { o.Ports = v } + // GetIpaddresses returns the Ipaddresses field value if set, zero value otherwise. func (o *WritableServiceRequest) GetIpaddresses() []int32 { if o == nil || IsNil(o.Ipaddresses) { @@ -374,7 +375,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 } @@ -425,20 +426,37 @@ func (o *WritableServiceRequest) UnmarshalJSON(data []byte) (err error) { "ports", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableServiceRequest := _WritableServiceRequest{} err = json.Unmarshal(data, &varWritableServiceRequest) @@ -503,3 +521,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 c7008f3ed2..a451c15a7e 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableServiceTemplateRequest{} // WritableServiceTemplateRequest Adds support for custom fields and tags. type WritableServiceTemplateRequest struct { - Name string `json:"name"` - Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` - Ports []int32 `json:"ports"` - 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"` + Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` + Ports []int32 `json:"ports"` + 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{} } @@ -76,6 +76,7 @@ func (o *WritableServiceTemplateRequest) SetName(v string) { o.Name = v } + // GetProtocol returns the Protocol field value func (o *WritableServiceTemplateRequest) GetProtocol() PatchedWritableServiceRequestProtocol { if o == nil { @@ -100,6 +101,7 @@ func (o *WritableServiceTemplateRequest) SetProtocol(v PatchedWritableServiceReq o.Protocol = v } + // GetPorts returns the Ports field value func (o *WritableServiceTemplateRequest) GetPorts() []int32 { if o == nil { @@ -124,6 +126,7 @@ func (o *WritableServiceTemplateRequest) SetPorts(v []int32) { o.Ports = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableServiceTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -253,7 +256,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 } @@ -295,20 +298,37 @@ func (o *WritableServiceTemplateRequest) UnmarshalJSON(data []byte) (err error) "ports", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableServiceTemplateRequest := _WritableServiceTemplateRequest{} err = json.Unmarshal(data, &varWritableServiceTemplateRequest) @@ -370,3 +390,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 b0c4346c1f..9c2dcc8510 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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"` - 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -35,11 +35,10 @@ type _WritableSiteGroupRequest WritableSiteGroupRequest // 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 NewWritableSiteGroupRequest(name string, slug string, parent NullableInt32) *WritableSiteGroupRequest { +func NewWritableSiteGroupRequest(name string, slug string) *WritableSiteGroupRequest { this := WritableSiteGroupRequest{} this.Name = name this.Slug = slug - this.Parent = parent return &this } @@ -75,6 +74,7 @@ func (o *WritableSiteGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableSiteGroupRequest) GetSlug() string { if o == nil { @@ -99,18 +99,17 @@ func (o *WritableSiteGroupRequest) SetSlug(v string) { o.Slug = v } -// GetParent returns the Parent field value -// If the value is explicit nil, the zero value for int32 will be returned + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableSiteGroupRequest) GetParent() int32 { - if o == nil || o.Parent.Get() == nil { + if o == nil || IsNil(o.Parent.Get()) { var ret int32 return ret } - return *o.Parent.Get() } -// GetParentOk returns a tuple with the Parent field value +// GetParentOk returns a tuple with the Parent 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 *WritableSiteGroupRequest) GetParentOk() (*int32, bool) { @@ -120,10 +119,28 @@ func (o *WritableSiteGroupRequest) GetParentOk() (*int32, bool) { return o.Parent.Get(), o.Parent.IsSet() } -// SetParent sets field value +// HasParent returns a boolean if a field has been set. +func (o *WritableSiteGroupRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field. 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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WritableSiteGroupRequest) UnsetParent() { + o.Parent.Unset() +} // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableSiteGroupRequest) GetDescription() string { @@ -222,7 +239,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 } @@ -233,7 +250,9 @@ func (o WritableSiteGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["parent"] = o.Parent.Get() + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -258,23 +277,39 @@ func (o *WritableSiteGroupRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", - "parent", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableSiteGroupRequest := _WritableSiteGroupRequest{} err = json.Unmarshal(data, &varWritableSiteGroupRequest) @@ -335,3 +370,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 2fcc036008..90022349b6 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &WritableSiteRequest{} // WritableSiteRequest Adds support for custom fields and tags. type WritableSiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `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{} } @@ -91,6 +91,7 @@ func (o *WritableSiteRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableSiteRequest) GetSlug() string { if o == nil { @@ -115,10 +116,11 @@ func (o *WritableSiteRequest) SetSlug(v string) { o.Slug = v } + // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -126,7 +128,7 @@ func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -142,15 +144,15 @@ func (o *WritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetRegion() RegionRequest { +func (o *WritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -159,7 +161,7 @@ func (o *WritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region 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 *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -175,11 +177,10 @@ func (o *WritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *WritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } - // SetRegionNil sets the value for Region to be an explicit nil func (o *WritableSiteRequest) SetRegionNil() { o.Region.Set(nil) @@ -191,9 +192,9 @@ func (o *WritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -202,7 +203,7 @@ func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group 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 *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -218,11 +219,10 @@ func (o *WritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableSiteRequest) SetGroupNil() { o.Group.Set(nil) @@ -234,9 +234,9 @@ func (o *WritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetTenant() TenantRequest { +func (o *WritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -245,7 +245,7 @@ func (o *WritableSiteRequest) GetTenant() TenantRequest { // 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 *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -261,11 +261,10 @@ func (o *WritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest) { 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 +339,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 +477,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 +519,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 +658,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 } @@ -735,20 +731,37 @@ func (o *WritableSiteRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableSiteRequest := _WritableSiteRequest{} err = json.Unmarshal(data, &varWritableSiteRequest) @@ -820,3 +833,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 a8b1c1775f..cbda64f235 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -74,6 +74,7 @@ func (o *WritableTenantGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableTenantGroupRequest) GetSlug() string { if o == nil { @@ -98,6 +99,7 @@ func (o *WritableTenantGroupRequest) SetSlug(v string) { o.Slug = v } + // GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableTenantGroupRequest) GetParent() int32 { if o == nil || IsNil(o.Parent.Get()) { @@ -130,7 +132,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) @@ -238,7 +239,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 } @@ -278,20 +279,37 @@ func (o *WritableTenantGroupRequest) UnmarshalJSON(data []byte) (err error) { "slug", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableTenantGroupRequest := _WritableTenantGroupRequest{} err = json.Unmarshal(data, &varWritableTenantGroupRequest) @@ -352,3 +370,5 @@ func (v *NullableWritableTenantGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_tunnel_request.go b/model_writable_tunnel_request.go index 057faf1f70..407e2567ae 100644 --- a/model_writable_tunnel_request.go +++ b/model_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableTunnelRequest{} // WritableTunnelRequest Adds support for custom fields and tags. type WritableTunnelRequest struct { - Name string `json:"name"` - Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` - Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - TunnelId NullableInt64 `json:"tunnel_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"` + Name string `json:"name"` + Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_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{} } @@ -79,6 +79,7 @@ func (o *WritableTunnelRequest) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value if set, zero value otherwise. func (o *WritableTunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus { if o == nil || IsNil(o.Status) { @@ -112,9 +113,9 @@ func (o *WritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -123,7 +124,7 @@ func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group 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 *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -139,11 +140,10 @@ func (o *WritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableTunnelRequest) SetGroupNil() { o.Group.Set(nil) @@ -178,10 +178,11 @@ func (o *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestE o.Encapsulation = v } + // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -190,7 +191,7 @@ func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile 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 *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -206,11 +207,10 @@ func (o *WritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } - // SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil func (o *WritableTunnelRequest) SetIpsecProfileNil() { o.IpsecProfile.Set(nil) @@ -222,9 +222,9 @@ func (o *WritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetTenant() TenantRequest { +func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -233,7 +233,7 @@ func (o *WritableTunnelRequest) GetTenant() TenantRequest { // 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 *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -249,11 +249,10 @@ func (o *WritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableTunnelRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -296,7 +295,6 @@ func (o *WritableTunnelRequest) HasTunnelId() bool { func (o *WritableTunnelRequest) SetTunnelId(v int64) { o.TunnelId.Set(&v) } - // SetTunnelIdNil sets the value for TunnelId to be an explicit nil func (o *WritableTunnelRequest) SetTunnelIdNil() { o.TunnelId.Set(nil) @@ -436,7 +434,7 @@ func (o *WritableTunnelRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableTunnelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -491,20 +489,37 @@ func (o *WritableTunnelRequest) UnmarshalJSON(data []byte) (err error) { "encapsulation", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableTunnelRequest := _WritableTunnelRequest{} err = json.Unmarshal(data, &varWritableTunnelRequest) @@ -570,3 +585,5 @@ func (v *NullableWritableTunnelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go index ec11b7d2b4..cbc2746466 100644 --- a/model_writable_tunnel_termination_request.go +++ b/model_writable_tunnel_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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableTunnelTerminationRequest{} // WritableTunnelTerminationRequest Adds support for custom fields and tags. type WritableTunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` - Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` - TerminationType string `json:"termination_type"` - TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tunnel BriefTunnelRequest `json:"tunnel"` + Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` + TerminationType string `json:"termination_type"` + TerminationId NullableInt64 `json:"termination_id,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,11 +36,10 @@ type _WritableTunnelTerminationRequest WritableTunnelTerminationRequest // 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 NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { +func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string) *WritableTunnelTerminationRequest { this := WritableTunnelTerminationRequest{} this.Tunnel = tunnel this.TerminationType = terminationType - this.TerminationId = terminationId return &this } @@ -53,9 +52,9 @@ func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminatio } // GetTunnel returns the Tunnel field value -func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -64,7 +63,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -72,10 +71,11 @@ func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) } // SetTunnel sets field value -func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } + // GetRole returns the Role field value if set, zero value otherwise. func (o *WritableTunnelTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole { if o == nil || IsNil(o.Role) { @@ -132,18 +132,17 @@ func (o *WritableTunnelTerminationRequest) SetTerminationType(v string) { o.TerminationType = v } -// GetTerminationId returns the TerminationId field value -// If the value is explicit nil, the zero value for int64 will be returned + +// GetTerminationId returns the TerminationId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableTunnelTerminationRequest) GetTerminationId() int64 { - if o == nil || o.TerminationId.Get() == nil { + if o == nil || IsNil(o.TerminationId.Get()) { var ret int64 return ret } - return *o.TerminationId.Get() } -// GetTerminationIdOk returns a tuple with the TerminationId field value +// GetTerminationIdOk returns a tuple with the TerminationId 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 *WritableTunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) { @@ -153,15 +152,33 @@ func (o *WritableTunnelTerminationRequest) GetTerminationIdOk() (*int64, bool) { return o.TerminationId.Get(), o.TerminationId.IsSet() } -// SetTerminationId sets field value +// HasTerminationId returns a boolean if a field has been set. +func (o *WritableTunnelTerminationRequest) HasTerminationId() bool { + if o != nil && o.TerminationId.IsSet() { + return true + } + + return false +} + +// SetTerminationId gets a reference to the given NullableInt64 and assigns it to the TerminationId field. func (o *WritableTunnelTerminationRequest) SetTerminationId(v int64) { o.TerminationId.Set(&v) } +// SetTerminationIdNil sets the value for TerminationId to be an explicit nil +func (o *WritableTunnelTerminationRequest) SetTerminationIdNil() { + o.TerminationId.Set(nil) +} + +// UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil +func (o *WritableTunnelTerminationRequest) UnsetTerminationId() { + o.TerminationId.Unset() +} // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -170,7 +187,7 @@ func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp 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 *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -186,11 +203,10 @@ func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } - // SetOutsideIpNil sets the value for OutsideIp to be an explicit nil func (o *WritableTunnelTerminationRequest) SetOutsideIpNil() { o.OutsideIp.Set(nil) @@ -266,7 +282,7 @@ func (o *WritableTunnelTerminationRequest) SetCustomFields(v map[string]interfac } func (o WritableTunnelTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -280,7 +296,9 @@ func (o WritableTunnelTerminationRequest) ToMap() (map[string]interface{}, error toSerialize["role"] = o.Role } toSerialize["termination_type"] = o.TerminationType - toSerialize["termination_id"] = o.TerminationId.Get() + if o.TerminationId.IsSet() { + toSerialize["termination_id"] = o.TerminationId.Get() + } if o.OutsideIp.IsSet() { toSerialize["outside_ip"] = o.OutsideIp.Get() } @@ -305,23 +323,39 @@ func (o *WritableTunnelTerminationRequest) UnmarshalJSON(data []byte) (err error requiredProperties := []string{ "tunnel", "termination_type", - "termination_id", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableTunnelTerminationRequest := _WritableTunnelTerminationRequest{} err = json.Unmarshal(data, &varWritableTunnelTerminationRequest) @@ -383,3 +417,5 @@ func (v *NullableWritableTunnelTerminationRequest) UnmarshalJSON(src []byte) err 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 76b1664be6..60b3f3a929 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,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{} } @@ -74,6 +74,7 @@ func (o *WritableVirtualChassisRequest) SetName(v string) { o.Name = v } + // GetDomain returns the Domain field value if set, zero value otherwise. func (o *WritableVirtualChassisRequest) GetDomain() string { if o == nil || IsNil(o.Domain) { @@ -138,7 +139,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) @@ -278,7 +278,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 } @@ -322,20 +322,37 @@ func (o *WritableVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableVirtualChassisRequest := _WritableVirtualChassisRequest{} err = json.Unmarshal(data, &varWritableVirtualChassisRequest) @@ -397,3 +414,5 @@ func (v *NullableWritableVirtualChassisRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_virtual_circuit_request.go b/model_writable_virtual_circuit_request.go new file mode 100644 index 0000000000..7829ee977c --- /dev/null +++ b/model_writable_virtual_circuit_request.go @@ -0,0 +1,526 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableVirtualCircuitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableVirtualCircuitRequest{} + +// WritableVirtualCircuitRequest Adds support for custom fields and tags. +type WritableVirtualCircuitRequest struct { + // Unique circuit ID + Cid string `json:"cid"` + ProviderNetwork BriefProviderNetworkRequest `json:"provider_network"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefVirtualCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `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{} +} + +type _WritableVirtualCircuitRequest WritableVirtualCircuitRequest + +// NewWritableVirtualCircuitRequest instantiates a new WritableVirtualCircuitRequest 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 NewWritableVirtualCircuitRequest(cid string, providerNetwork BriefProviderNetworkRequest, type_ BriefVirtualCircuitTypeRequest) *WritableVirtualCircuitRequest { + this := WritableVirtualCircuitRequest{} + this.Cid = cid + this.ProviderNetwork = providerNetwork + this.Type = type_ + return &this +} + +// NewWritableVirtualCircuitRequestWithDefaults instantiates a new WritableVirtualCircuitRequest 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 NewWritableVirtualCircuitRequestWithDefaults() *WritableVirtualCircuitRequest { + this := WritableVirtualCircuitRequest{} + return &this +} + +// GetCid returns the Cid field value +func (o *WritableVirtualCircuitRequest) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *WritableVirtualCircuitRequest) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *WritableVirtualCircuitRequest) SetCid(v string) { + o.Cid = v +} + + +// GetProviderNetwork returns the ProviderNetwork field value +func (o *WritableVirtualCircuitRequest) GetProviderNetwork() BriefProviderNetworkRequest { + if o == nil { + var ret BriefProviderNetworkRequest + return ret + } + + return o.ProviderNetwork +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +func (o *WritableVirtualCircuitRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { + if o == nil { + return nil, false + } + return &o.ProviderNetwork, true +} + +// SetProviderNetwork sets field value +func (o *WritableVirtualCircuitRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { + o.ProviderNetwork = v +} + + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableVirtualCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccountRequest + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount 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 *WritableVirtualCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *WritableVirtualCircuitRequest) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *WritableVirtualCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { + o.ProviderAccount.Set(&v) +} +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *WritableVirtualCircuitRequest) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *WritableVirtualCircuitRequest) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *WritableVirtualCircuitRequest) GetType() BriefVirtualCircuitTypeRequest { + if o == nil { + var ret BriefVirtualCircuitTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *WritableVirtualCircuitRequest) GetTypeOk() (*BriefVirtualCircuitTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *WritableVirtualCircuitRequest) SetType(v BriefVirtualCircuitTypeRequest) { + o.Type = v +} + + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *WritableVirtualCircuitRequest) GetStatus() CircuitStatusValue { + if o == nil || IsNil(o.Status) { + var ret CircuitStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableVirtualCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *WritableVirtualCircuitRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *WritableVirtualCircuitRequest) SetStatus(v CircuitStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableVirtualCircuitRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + 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 *WritableVirtualCircuitRequest) GetTenantOk() (*BriefTenantRequest, 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 *WritableVirtualCircuitRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualCircuitRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *WritableVirtualCircuitRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *WritableVirtualCircuitRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableVirtualCircuitRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableVirtualCircuitRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableVirtualCircuitRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableVirtualCircuitRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) 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 *WritableVirtualCircuitRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o WritableVirtualCircuitRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableVirtualCircuitRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cid"] = o.Cid + toSerialize["provider_network"] = o.ProviderNetwork + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableVirtualCircuitRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cid", + "provider_network", + "type", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varWritableVirtualCircuitRequest := _WritableVirtualCircuitRequest{} + + err = json.Unmarshal(data, &varWritableVirtualCircuitRequest) + + if err != nil { + return err + } + + *o = WritableVirtualCircuitRequest(varWritableVirtualCircuitRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cid") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableVirtualCircuitRequest struct { + value *WritableVirtualCircuitRequest + isSet bool +} + +func (v NullableWritableVirtualCircuitRequest) Get() *WritableVirtualCircuitRequest { + return v.value +} + +func (v *NullableWritableVirtualCircuitRequest) Set(val *WritableVirtualCircuitRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableVirtualCircuitRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableVirtualCircuitRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableVirtualCircuitRequest(val *WritableVirtualCircuitRequest) *NullableWritableVirtualCircuitRequest { + return &NullableWritableVirtualCircuitRequest{value: val, isSet: true} +} + +func (v NullableWritableVirtualCircuitRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableVirtualCircuitRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_writable_virtual_circuit_termination_request.go b/model_writable_virtual_circuit_termination_request.go new file mode 100644 index 0000000000..c0b6d67f33 --- /dev/null +++ b/model_writable_virtual_circuit_termination_request.go @@ -0,0 +1,364 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.2.2 (4.2) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableVirtualCircuitTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableVirtualCircuitTerminationRequest{} + +// WritableVirtualCircuitTerminationRequest Adds support for custom fields and tags. +type WritableVirtualCircuitTerminationRequest struct { + VirtualCircuit BriefVirtualCircuitRequest `json:"virtual_circuit"` + Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` + Interface BriefInterfaceRequest `json:"interface"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableVirtualCircuitTerminationRequest WritableVirtualCircuitTerminationRequest + +// NewWritableVirtualCircuitTerminationRequest instantiates a new WritableVirtualCircuitTerminationRequest 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 NewWritableVirtualCircuitTerminationRequest(virtualCircuit BriefVirtualCircuitRequest, interface_ BriefInterfaceRequest) *WritableVirtualCircuitTerminationRequest { + this := WritableVirtualCircuitTerminationRequest{} + this.VirtualCircuit = virtualCircuit + this.Interface = interface_ + return &this +} + +// NewWritableVirtualCircuitTerminationRequestWithDefaults instantiates a new WritableVirtualCircuitTerminationRequest 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 NewWritableVirtualCircuitTerminationRequestWithDefaults() *WritableVirtualCircuitTerminationRequest { + this := WritableVirtualCircuitTerminationRequest{} + return &this +} + +// GetVirtualCircuit returns the VirtualCircuit field value +func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuit() BriefVirtualCircuitRequest { + if o == nil { + var ret BriefVirtualCircuitRequest + return ret + } + + return o.VirtualCircuit +} + +// GetVirtualCircuitOk returns a tuple with the VirtualCircuit field value +// and a boolean to check if the value has been set. +func (o *WritableVirtualCircuitTerminationRequest) GetVirtualCircuitOk() (*BriefVirtualCircuitRequest, bool) { + if o == nil { + return nil, false + } + return &o.VirtualCircuit, true +} + +// SetVirtualCircuit sets field value +func (o *WritableVirtualCircuitTerminationRequest) SetVirtualCircuit(v BriefVirtualCircuitRequest) { + o.VirtualCircuit = v +} + + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *WritableVirtualCircuitTerminationRequest) GetRole() PatchedWritableTunnelTerminationRequestRole { + if o == nil || IsNil(o.Role) { + var ret PatchedWritableTunnelTerminationRequestRole + return ret + } + return *o.Role +} + +// 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 *WritableVirtualCircuitTerminationRequest) GetRoleOk() (*PatchedWritableTunnelTerminationRequestRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *WritableVirtualCircuitTerminationRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given PatchedWritableTunnelTerminationRequestRole and assigns it to the Role field. +func (o *WritableVirtualCircuitTerminationRequest) SetRole(v PatchedWritableTunnelTerminationRequestRole) { + o.Role = &v +} + +// GetInterface returns the Interface field value +func (o *WritableVirtualCircuitTerminationRequest) GetInterface() BriefInterfaceRequest { + if o == nil { + var ret BriefInterfaceRequest + return ret + } + + return o.Interface +} + +// GetInterfaceOk returns a tuple with the Interface field value +// and a boolean to check if the value has been set. +func (o *WritableVirtualCircuitTerminationRequest) GetInterfaceOk() (*BriefInterfaceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Interface, true +} + +// SetInterface sets field value +func (o *WritableVirtualCircuitTerminationRequest) SetInterface(v BriefInterfaceRequest) { + o.Interface = v +} + + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) 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 *WritableVirtualCircuitTerminationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o WritableVirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableVirtualCircuitTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["virtual_circuit"] = o.VirtualCircuit + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + toSerialize["interface"] = o.Interface + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableVirtualCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "virtual_circuit", + "interface", + } + + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } + varWritableVirtualCircuitTerminationRequest := _WritableVirtualCircuitTerminationRequest{} + + err = json.Unmarshal(data, &varWritableVirtualCircuitTerminationRequest) + + if err != nil { + return err + } + + *o = WritableVirtualCircuitTerminationRequest(varWritableVirtualCircuitTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "virtual_circuit") + delete(additionalProperties, "role") + delete(additionalProperties, "interface") + delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableVirtualCircuitTerminationRequest struct { + value *WritableVirtualCircuitTerminationRequest + isSet bool +} + +func (v NullableWritableVirtualCircuitTerminationRequest) Get() *WritableVirtualCircuitTerminationRequest { + return v.value +} + +func (v *NullableWritableVirtualCircuitTerminationRequest) Set(val *WritableVirtualCircuitTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableVirtualCircuitTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableVirtualCircuitTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableVirtualCircuitTerminationRequest(val *WritableVirtualCircuitTerminationRequest) *NullableWritableVirtualCircuitTerminationRequest { + return &NullableWritableVirtualCircuitTerminationRequest{value: val, isSet: true} +} + +func (v NullableWritableVirtualCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableVirtualCircuitTerminationRequest) 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 9c16e0e714..d2d51c1a32 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{} // WritableVirtualDeviceContextRequest Adds support for custom fields and tags. type WritableVirtualDeviceContextRequest struct { - Name string `json:"name"` - Device DeviceRequest `json:"device"` - Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Status PatchedWritableVirtualDeviceContextRequestStatus `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"` + Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Identifier NullableInt32 `json:"identifier,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Status PatchedWritableVirtualDeviceContextRequestStatus `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{} } @@ -40,7 +40,7 @@ type _WritableVirtualDeviceContextRequest WritableVirtualDeviceContextRequest // 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 NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { +func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { this := WritableVirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -80,10 +80,11 @@ func (o *WritableVirtualDeviceContextRequest) SetName(v string) { o.Name = v } + // GetDevice returns the Device field value -func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +93,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,10 +101,11 @@ func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, boo } // SetDevice sets field value -func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } + // GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableVirtualDeviceContextRequest) GetIdentifier() int32 { if o == nil || IsNil(o.Identifier.Get()) { @@ -136,7 +138,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) @@ -148,9 +149,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +160,7 @@ func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // 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 *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,11 +176,10 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -191,9 +191,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,11 +218,10 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -234,9 +233,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +244,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,11 +260,10 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -300,6 +298,7 @@ func (o *WritableVirtualDeviceContextRequest) SetStatus(v PatchedWritableVirtual o.Status = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableVirtualDeviceContextRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -429,7 +428,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 } @@ -483,20 +482,37 @@ func (o *WritableVirtualDeviceContextRequest) UnmarshalJSON(data []byte) (err er "status", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableVirtualDeviceContextRequest := _WritableVirtualDeviceContextRequest{} err = json.Unmarshal(data, &varWritableVirtualDeviceContextRequest) @@ -562,3 +578,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 a24bbacab8..6adb1a6949 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,26 +20,27 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{} // WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type WritableVirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `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"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *InventoryItemStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `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"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -87,10 +88,11 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) { o.Name = v } + // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() InventoryItemStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret InventoryItemStatusValue return ret } return *o.Status @@ -98,7 +100,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWrit // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*InventoryItemStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +116,15 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given InventoryItemStatusValue and assigns it to the Status field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v InventoryItemStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +133,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site 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 *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,11 +149,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetSiteNil() { o.Site.Set(nil) @@ -163,9 +164,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterReq // GetClusterOk returns a tuple with the Cluster 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 *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,11 +191,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -206,9 +206,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +217,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceReque // GetDeviceOk returns a tuple with the Device 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 *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,11 +233,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -248,10 +247,42 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +291,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleReq // GetRoleOk returns a tuple with the Role 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 *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,11 +307,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetRoleNil() { o.Role.Set(nil) @@ -292,9 +322,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +333,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantReque // 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 *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,11 +349,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -335,9 +364,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +375,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformR // GetPlatformOk returns a tuple with the Platform 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 *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,11 +391,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -378,9 +406,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +417,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddre // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 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 *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,11 +433,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -421,9 +448,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +459,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddre // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 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 *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,11 +475,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -495,7 +521,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) @@ -538,7 +563,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) @@ -581,7 +605,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) @@ -657,9 +680,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +691,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() Con // 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 *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,11 +707,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasConfigTemplate() boo return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -797,7 +819,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 } @@ -819,6 +841,9 @@ func (o WritableVirtualMachineWithConfigContextRequest) ToMap() (map[string]inte if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -877,20 +902,37 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []by "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableVirtualMachineWithConfigContextRequest := _WritableVirtualMachineWithConfigContextRequest{} err = json.Unmarshal(data, &varWritableVirtualMachineWithConfigContextRequest) @@ -909,6 +951,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []by delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") @@ -964,3 +1007,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 047e6f3899..52cd372e35 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WritableVLANRequest{} // WritableVLANRequest Adds support for custom fields and tags. type WritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `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"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + QinqRole NullableQInQRole `json:"qinq_role,omitempty"` + QinqSvlan NullableInt32 `json:"qinq_svlan,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -57,9 +59,9 @@ func NewWritableVLANRequestWithDefaults() *WritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetSite() SiteRequest { +func (o *WritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -68,7 +70,7 @@ func (o *WritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site 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 *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -84,11 +86,10 @@ func (o *WritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *WritableVLANRequest) SetSiteNil() { o.Site.Set(nil) @@ -100,9 +101,9 @@ func (o *WritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -111,7 +112,7 @@ func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group 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 *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -127,11 +128,10 @@ func (o *WritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableVLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -166,6 +166,7 @@ func (o *WritableVLANRequest) SetVid(v int32) { o.Vid = v } + // GetName returns the Name field value func (o *WritableVLANRequest) GetName() string { if o == nil { @@ -190,10 +191,11 @@ func (o *WritableVLANRequest) SetName(v string) { o.Name = v } + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetTenant() TenantRequest { +func (o *WritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +204,7 @@ func (o *WritableVLANRequest) GetTenant() TenantRequest { // 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 *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,11 +220,10 @@ func (o *WritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableVLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -266,9 +267,9 @@ func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetRole() RoleRequest { +func (o *WritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -277,7 +278,7 @@ func (o *WritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role 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 *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -293,11 +294,10 @@ func (o *WritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableVLANRequest) SetRoleNil() { o.Role.Set(nil) @@ -340,6 +340,90 @@ func (o *WritableVLANRequest) SetDescription(v string) { o.Description = &v } +// GetQinqRole returns the QinqRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableVLANRequest) GetQinqRole() QInQRole { + if o == nil || IsNil(o.QinqRole.Get()) { + var ret QInQRole + return ret + } + return *o.QinqRole.Get() +} + +// GetQinqRoleOk returns a tuple with the QinqRole 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 *WritableVLANRequest) GetQinqRoleOk() (*QInQRole, bool) { + if o == nil { + return nil, false + } + return o.QinqRole.Get(), o.QinqRole.IsSet() +} + +// HasQinqRole returns a boolean if a field has been set. +func (o *WritableVLANRequest) HasQinqRole() bool { + if o != nil && o.QinqRole.IsSet() { + return true + } + + return false +} + +// SetQinqRole gets a reference to the given NullableQInQRole and assigns it to the QinqRole field. +func (o *WritableVLANRequest) SetQinqRole(v QInQRole) { + o.QinqRole.Set(&v) +} +// SetQinqRoleNil sets the value for QinqRole to be an explicit nil +func (o *WritableVLANRequest) SetQinqRoleNil() { + o.QinqRole.Set(nil) +} + +// UnsetQinqRole ensures that no value is present for QinqRole, not even an explicit nil +func (o *WritableVLANRequest) UnsetQinqRole() { + o.QinqRole.Unset() +} + +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableVLANRequest) GetQinqSvlan() int32 { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret int32 + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *WritableVLANRequest) GetQinqSvlanOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *WritableVLANRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableInt32 and assigns it to the QinqSvlan field. +func (o *WritableVLANRequest) SetQinqSvlan(v int32) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *WritableVLANRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *WritableVLANRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *WritableVLANRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -437,7 +521,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 } @@ -466,6 +550,12 @@ func (o WritableVLANRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.QinqRole.IsSet() { + toSerialize["qinq_role"] = o.QinqRole.Get() + } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -492,20 +582,37 @@ func (o *WritableVLANRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableVLANRequest := _WritableVLANRequest{} err = json.Unmarshal(data, &varWritableVLANRequest) @@ -527,6 +634,8 @@ func (o *WritableVLANRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "status") delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "qinq_role") + delete(additionalProperties, "qinq_svlan") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -571,3 +680,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 3c0acb8009..258c4b4a9b 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,22 @@ var _ MappedNullable = &WritableVMInterfaceRequest{} // WritableVMInterfaceRequest Adds support for custom fields and tags. type WritableVMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `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"` - Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine BriefVirtualMachineRequest `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"` + PrimaryMacAddress NullableBriefMACAddressRequest `json:"primary_mac_address,omitempty"` + Description *string `json:"description,omitempty"` + Mode NullablePatchedWritableInterfaceRequestMode `json:"mode,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + QinqSvlan NullableBriefVLANRequest `json:"qinq_svlan,omitempty"` + VlanTranslationPolicy NullableBriefVLANTranslationPolicyRequest `json:"vlan_translation_policy,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +45,7 @@ type _WritableVMInterfaceRequest WritableVMInterfaceRequest // 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 NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *WritableVMInterfaceRequest { +func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *WritableVMInterfaceRequest { this := WritableVMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +61,9 @@ func NewWritableVMInterfaceRequestWithDefaults() *WritableVMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +72,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,10 +80,11 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineReque } // SetVirtualMachine sets field value -func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } + // GetName returns the Name field value func (o *WritableVMInterfaceRequest) GetName() string { if o == nil { @@ -106,6 +109,7 @@ func (o *WritableVMInterfaceRequest) SetName(v string) { o.Name = v } + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableVMInterfaceRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -170,7 +174,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 +216,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 +258,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) @@ -267,47 +268,46 @@ func (o *WritableVMInterfaceRequest) UnsetMtu() { o.Mtu.Unset() } -// GetMacAddress returns the MacAddress field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetMacAddress() string { - if o == nil || IsNil(o.MacAddress.Get()) { - var ret string +// GetPrimaryMacAddress returns the PrimaryMacAddress field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableVMInterfaceRequest) GetPrimaryMacAddress() BriefMACAddressRequest { + if o == nil || IsNil(o.PrimaryMacAddress.Get()) { + var ret BriefMACAddressRequest return ret } - return *o.MacAddress.Get() + return *o.PrimaryMacAddress.Get() } -// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise +// GetPrimaryMacAddressOk returns a tuple with the PrimaryMacAddress 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 *WritableVMInterfaceRequest) GetMacAddressOk() (*string, bool) { +func (o *WritableVMInterfaceRequest) GetPrimaryMacAddressOk() (*BriefMACAddressRequest, bool) { if o == nil { return nil, false } - return o.MacAddress.Get(), o.MacAddress.IsSet() + return o.PrimaryMacAddress.Get(), o.PrimaryMacAddress.IsSet() } -// HasMacAddress returns a boolean if a field has been set. -func (o *WritableVMInterfaceRequest) HasMacAddress() bool { - if o != nil && o.MacAddress.IsSet() { +// HasPrimaryMacAddress returns a boolean if a field has been set. +func (o *WritableVMInterfaceRequest) HasPrimaryMacAddress() bool { + if o != nil && o.PrimaryMacAddress.IsSet() { return true } return false } -// SetMacAddress gets a reference to the given NullableString and assigns it to the MacAddress field. -func (o *WritableVMInterfaceRequest) SetMacAddress(v string) { - o.MacAddress.Set(&v) +// SetPrimaryMacAddress gets a reference to the given NullableBriefMACAddressRequest and assigns it to the PrimaryMacAddress field. +func (o *WritableVMInterfaceRequest) SetPrimaryMacAddress(v BriefMACAddressRequest) { + o.PrimaryMacAddress.Set(&v) } - -// SetMacAddressNil sets the value for MacAddress to be an explicit nil -func (o *WritableVMInterfaceRequest) SetMacAddressNil() { - o.MacAddress.Set(nil) +// SetPrimaryMacAddressNil sets the value for PrimaryMacAddress to be an explicit nil +func (o *WritableVMInterfaceRequest) SetPrimaryMacAddressNil() { + o.PrimaryMacAddress.Set(nil) } -// UnsetMacAddress ensures that no value is present for MacAddress, not even an explicit nil -func (o *WritableVMInterfaceRequest) UnsetMacAddress() { - o.MacAddress.Unset() +// UnsetPrimaryMacAddress ensures that no value is present for PrimaryMacAddress, not even an explicit nil +func (o *WritableVMInterfaceRequest) UnsetPrimaryMacAddress() { + o.PrimaryMacAddress.Unset() } // GetDescription returns the Description field value if set, zero value otherwise. @@ -342,42 +342,52 @@ func (o *WritableVMInterfaceRequest) SetDescription(v string) { o.Description = &v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableVMInterfaceRequest) GetMode() PatchedWritableInterfaceRequestMode { - if o == nil || IsNil(o.Mode) { + if o == nil || IsNil(o.Mode.Get()) { var ret PatchedWritableInterfaceRequestMode return ret } - return *o.Mode + return *o.Mode.Get() } // GetModeOk returns a tuple with the Mode 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 *WritableVMInterfaceRequest) GetModeOk() (*PatchedWritableInterfaceRequestMode, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true + return o.Mode.Get(), o.Mode.IsSet() } // HasMode returns a boolean if a field has been set. func (o *WritableVMInterfaceRequest) HasMode() bool { - if o != nil && !IsNil(o.Mode) { + if o != nil && o.Mode.IsSet() { return true } return false } -// SetMode gets a reference to the given PatchedWritableInterfaceRequestMode and assigns it to the Mode field. +// SetMode gets a reference to the given NullablePatchedWritableInterfaceRequestMode and assigns it to the Mode field. func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode) { - o.Mode = &v + o.Mode.Set(&v) +} +// SetModeNil sets the value for Mode to be an explicit nil +func (o *WritableVMInterfaceRequest) SetModeNil() { + o.Mode.Set(nil) +} + +// UnsetMode ensures that no value is present for Mode, not even an explicit nil +func (o *WritableVMInterfaceRequest) UnsetMode() { + o.Mode.Unset() } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +396,7 @@ func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan 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 *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,11 +412,10 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *WritableVMInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -449,10 +458,94 @@ func (o *WritableVMInterfaceRequest) SetTaggedVlans(v []int32) { o.TaggedVlans = v } +// GetQinqSvlan returns the QinqSvlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableVMInterfaceRequest) GetQinqSvlan() BriefVLANRequest { + if o == nil || IsNil(o.QinqSvlan.Get()) { + var ret BriefVLANRequest + return ret + } + return *o.QinqSvlan.Get() +} + +// GetQinqSvlanOk returns a tuple with the QinqSvlan 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 *WritableVMInterfaceRequest) GetQinqSvlanOk() (*BriefVLANRequest, bool) { + if o == nil { + return nil, false + } + return o.QinqSvlan.Get(), o.QinqSvlan.IsSet() +} + +// HasQinqSvlan returns a boolean if a field has been set. +func (o *WritableVMInterfaceRequest) HasQinqSvlan() bool { + if o != nil && o.QinqSvlan.IsSet() { + return true + } + + return false +} + +// SetQinqSvlan gets a reference to the given NullableBriefVLANRequest and assigns it to the QinqSvlan field. +func (o *WritableVMInterfaceRequest) SetQinqSvlan(v BriefVLANRequest) { + o.QinqSvlan.Set(&v) +} +// SetQinqSvlanNil sets the value for QinqSvlan to be an explicit nil +func (o *WritableVMInterfaceRequest) SetQinqSvlanNil() { + o.QinqSvlan.Set(nil) +} + +// UnsetQinqSvlan ensures that no value is present for QinqSvlan, not even an explicit nil +func (o *WritableVMInterfaceRequest) UnsetQinqSvlan() { + o.QinqSvlan.Unset() +} + +// GetVlanTranslationPolicy returns the VlanTranslationPolicy field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableVMInterfaceRequest) GetVlanTranslationPolicy() BriefVLANTranslationPolicyRequest { + if o == nil || IsNil(o.VlanTranslationPolicy.Get()) { + var ret BriefVLANTranslationPolicyRequest + return ret + } + return *o.VlanTranslationPolicy.Get() +} + +// GetVlanTranslationPolicyOk returns a tuple with the VlanTranslationPolicy 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 *WritableVMInterfaceRequest) GetVlanTranslationPolicyOk() (*BriefVLANTranslationPolicyRequest, bool) { + if o == nil { + return nil, false + } + return o.VlanTranslationPolicy.Get(), o.VlanTranslationPolicy.IsSet() +} + +// HasVlanTranslationPolicy returns a boolean if a field has been set. +func (o *WritableVMInterfaceRequest) HasVlanTranslationPolicy() bool { + if o != nil && o.VlanTranslationPolicy.IsSet() { + return true + } + + return false +} + +// SetVlanTranslationPolicy gets a reference to the given NullableBriefVLANTranslationPolicyRequest and assigns it to the VlanTranslationPolicy field. +func (o *WritableVMInterfaceRequest) SetVlanTranslationPolicy(v BriefVLANTranslationPolicyRequest) { + o.VlanTranslationPolicy.Set(&v) +} +// SetVlanTranslationPolicyNil sets the value for VlanTranslationPolicy to be an explicit nil +func (o *WritableVMInterfaceRequest) SetVlanTranslationPolicyNil() { + o.VlanTranslationPolicy.Set(nil) +} + +// UnsetVlanTranslationPolicy ensures that no value is present for VlanTranslationPolicy, not even an explicit nil +func (o *WritableVMInterfaceRequest) UnsetVlanTranslationPolicy() { + o.VlanTranslationPolicy.Unset() +} + // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +554,7 @@ func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf 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 *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,11 +570,10 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { 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 +649,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 } @@ -580,14 +672,14 @@ func (o WritableVMInterfaceRequest) ToMap() (map[string]interface{}, error) { if o.Mtu.IsSet() { toSerialize["mtu"] = o.Mtu.Get() } - if o.MacAddress.IsSet() { - toSerialize["mac_address"] = o.MacAddress.Get() + if o.PrimaryMacAddress.IsSet() { + toSerialize["primary_mac_address"] = o.PrimaryMacAddress.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode + if o.Mode.IsSet() { + toSerialize["mode"] = o.Mode.Get() } if o.UntaggedVlan.IsSet() { toSerialize["untagged_vlan"] = o.UntaggedVlan.Get() @@ -595,6 +687,12 @@ func (o WritableVMInterfaceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.TaggedVlans) { toSerialize["tagged_vlans"] = o.TaggedVlans } + if o.QinqSvlan.IsSet() { + toSerialize["qinq_svlan"] = o.QinqSvlan.Get() + } + if o.VlanTranslationPolicy.IsSet() { + toSerialize["vlan_translation_policy"] = o.VlanTranslationPolicy.Get() + } if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } @@ -621,20 +719,37 @@ func (o *WritableVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) { "name", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableVMInterfaceRequest := _WritableVMInterfaceRequest{} err = json.Unmarshal(data, &varWritableVMInterfaceRequest) @@ -654,11 +769,13 @@ func (o *WritableVMInterfaceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "parent") delete(additionalProperties, "bridge") delete(additionalProperties, "mtu") - delete(additionalProperties, "mac_address") + delete(additionalProperties, "primary_mac_address") delete(additionalProperties, "description") delete(additionalProperties, "mode") delete(additionalProperties, "untagged_vlan") delete(additionalProperties, "tagged_vlans") + delete(additionalProperties, "qinq_svlan") + delete(additionalProperties, "vlan_translation_policy") delete(additionalProperties, "vrf") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -703,3 +820,5 @@ func (v *NullableWritableVMInterfaceRequest) 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 e64cce0c93..1f13b86527 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,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"` - 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" validate:"regexp=^[-a-zA-Z0-9_]+$"` + 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{} } @@ -35,11 +35,10 @@ type _WritableWirelessLANGroupRequest WritableWirelessLANGroupRequest // 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 NewWritableWirelessLANGroupRequest(name string, slug string, parent NullableInt32) *WritableWirelessLANGroupRequest { +func NewWritableWirelessLANGroupRequest(name string, slug string) *WritableWirelessLANGroupRequest { this := WritableWirelessLANGroupRequest{} this.Name = name this.Slug = slug - this.Parent = parent return &this } @@ -75,6 +74,7 @@ func (o *WritableWirelessLANGroupRequest) SetName(v string) { o.Name = v } + // GetSlug returns the Slug field value func (o *WritableWirelessLANGroupRequest) GetSlug() string { if o == nil { @@ -99,18 +99,17 @@ func (o *WritableWirelessLANGroupRequest) SetSlug(v string) { o.Slug = v } -// GetParent returns the Parent field value -// If the value is explicit nil, the zero value for int32 will be returned + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableWirelessLANGroupRequest) GetParent() int32 { - if o == nil || o.Parent.Get() == nil { + if o == nil || IsNil(o.Parent.Get()) { var ret int32 return ret } - return *o.Parent.Get() } -// GetParentOk returns a tuple with the Parent field value +// GetParentOk returns a tuple with the Parent 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 *WritableWirelessLANGroupRequest) GetParentOk() (*int32, bool) { @@ -120,10 +119,28 @@ func (o *WritableWirelessLANGroupRequest) GetParentOk() (*int32, bool) { return o.Parent.Get(), o.Parent.IsSet() } -// SetParent sets field value +// HasParent returns a boolean if a field has been set. +func (o *WritableWirelessLANGroupRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableInt32 and assigns it to the Parent field. 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) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WritableWirelessLANGroupRequest) UnsetParent() { + o.Parent.Unset() +} // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableWirelessLANGroupRequest) GetDescription() string { @@ -222,7 +239,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 } @@ -233,7 +250,9 @@ func (o WritableWirelessLANGroupRequest) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["parent"] = o.Parent.Get() + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -258,23 +277,39 @@ func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "name", "slug", - "parent", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableWirelessLANGroupRequest := _WritableWirelessLANGroupRequest{} err = json.Unmarshal(data, &varWritableWirelessLANGroupRequest) @@ -335,3 +370,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 098a33b0b1..08a6987d81 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WritableWirelessLANRequest{} // WritableWirelessLANRequest Adds support for custom fields and tags. type WritableWirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` - Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `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"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher NullableAuthenticationCipher `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{} } @@ -79,6 +81,7 @@ func (o *WritableWirelessLANRequest) SetSsid(v string) { o.Ssid = v } + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableWirelessLANRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,9 +115,9 @@ func (o *WritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +126,7 @@ func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group 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 *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,11 +142,10 @@ func (o *WritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableWirelessLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -187,9 +189,9 @@ func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANReque } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +200,7 @@ func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan 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 *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,11 +216,10 @@ func (o *WritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WritableWirelessLANRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -229,10 +230,94 @@ func (o *WritableWirelessLANRequest) UnsetVlan() { o.Vlan.Unset() } +// GetScopeType returns the ScopeType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableWirelessLANRequest) GetScopeType() string { + if o == nil || IsNil(o.ScopeType.Get()) { + var ret string + return ret + } + return *o.ScopeType.Get() +} + +// GetScopeTypeOk returns a tuple with the ScopeType 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 *WritableWirelessLANRequest) GetScopeTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ScopeType.Get(), o.ScopeType.IsSet() +} + +// HasScopeType returns a boolean if a field has been set. +func (o *WritableWirelessLANRequest) HasScopeType() bool { + if o != nil && o.ScopeType.IsSet() { + return true + } + + return false +} + +// SetScopeType gets a reference to the given NullableString and assigns it to the ScopeType field. +func (o *WritableWirelessLANRequest) SetScopeType(v string) { + o.ScopeType.Set(&v) +} +// SetScopeTypeNil sets the value for ScopeType to be an explicit nil +func (o *WritableWirelessLANRequest) SetScopeTypeNil() { + o.ScopeType.Set(nil) +} + +// UnsetScopeType ensures that no value is present for ScopeType, not even an explicit nil +func (o *WritableWirelessLANRequest) UnsetScopeType() { + o.ScopeType.Unset() +} + +// GetScopeId returns the ScopeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableWirelessLANRequest) GetScopeId() int32 { + if o == nil || IsNil(o.ScopeId.Get()) { + var ret int32 + return ret + } + return *o.ScopeId.Get() +} + +// GetScopeIdOk returns a tuple with the ScopeId 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 *WritableWirelessLANRequest) GetScopeIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ScopeId.Get(), o.ScopeId.IsSet() +} + +// HasScopeId returns a boolean if a field has been set. +func (o *WritableWirelessLANRequest) HasScopeId() bool { + if o != nil && o.ScopeId.IsSet() { + return true + } + + return false +} + +// SetScopeId gets a reference to the given NullableInt32 and assigns it to the ScopeId field. +func (o *WritableWirelessLANRequest) SetScopeId(v int32) { + o.ScopeId.Set(&v) +} +// SetScopeIdNil sets the value for ScopeId to be an explicit nil +func (o *WritableWirelessLANRequest) SetScopeIdNil() { + o.ScopeId.Set(nil) +} + +// UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +func (o *WritableWirelessLANRequest) UnsetScopeId() { + o.ScopeId.Unset() +} + // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +326,7 @@ func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { // 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 *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,11 +342,10 @@ func (o *WritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableWirelessLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -272,68 +356,88 @@ func (o *WritableWirelessLANRequest) UnsetTenant() { o.Tenant.Unset() } -// GetAuthType returns the AuthType field value if set, zero value otherwise. +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType1 { - if o == nil || IsNil(o.AuthType) { + if o == nil || IsNil(o.AuthType.Get()) { var ret AuthenticationType1 return ret } - return *o.AuthType + return *o.AuthType.Get() } // GetAuthTypeOk returns a tuple with the AuthType 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 *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { - if o == nil || IsNil(o.AuthType) { + if o == nil { return nil, false } - return o.AuthType, true + return o.AuthType.Get(), o.AuthType.IsSet() } // HasAuthType returns a boolean if a field has been set. func (o *WritableWirelessLANRequest) HasAuthType() bool { - if o != nil && !IsNil(o.AuthType) { + if o != nil && o.AuthType.IsSet() { return true } return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. +// SetAuthType gets a reference to the given NullableAuthenticationType1 and assigns it to the AuthType field. func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType1) { - o.AuthType = &v + o.AuthType.Set(&v) +} +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *WritableWirelessLANRequest) SetAuthTypeNil() { + o.AuthType.Set(nil) +} + +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *WritableWirelessLANRequest) UnsetAuthType() { + o.AuthType.Unset() } -// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. +// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher { - if o == nil || IsNil(o.AuthCipher) { + if o == nil || IsNil(o.AuthCipher.Get()) { var ret AuthenticationCipher return ret } - return *o.AuthCipher + return *o.AuthCipher.Get() } // GetAuthCipherOk returns a tuple with the AuthCipher 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 *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { - if o == nil || IsNil(o.AuthCipher) { + if o == nil { return nil, false } - return o.AuthCipher, true + return o.AuthCipher.Get(), o.AuthCipher.IsSet() } // HasAuthCipher returns a boolean if a field has been set. func (o *WritableWirelessLANRequest) HasAuthCipher() bool { - if o != nil && !IsNil(o.AuthCipher) { + if o != nil && o.AuthCipher.IsSet() { return true } return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. +// SetAuthCipher gets a reference to the given NullableAuthenticationCipher and assigns it to the AuthCipher field. func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) { - o.AuthCipher = &v + o.AuthCipher.Set(&v) +} +// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil +func (o *WritableWirelessLANRequest) SetAuthCipherNil() { + o.AuthCipher.Set(nil) +} + +// UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil +func (o *WritableWirelessLANRequest) UnsetAuthCipher() { + o.AuthCipher.Unset() } // GetAuthPsk returns the AuthPsk field value if set, zero value otherwise. @@ -465,7 +569,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 } @@ -487,14 +591,20 @@ func (o WritableWirelessLANRequest) ToMap() (map[string]interface{}, error) { if o.Vlan.IsSet() { toSerialize["vlan"] = o.Vlan.Get() } + if o.ScopeType.IsSet() { + toSerialize["scope_type"] = o.ScopeType.Get() + } + if o.ScopeId.IsSet() { + toSerialize["scope_id"] = o.ScopeId.Get() + } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } - if !IsNil(o.AuthType) { - toSerialize["auth_type"] = o.AuthType + if o.AuthType.IsSet() { + toSerialize["auth_type"] = o.AuthType.Get() } - if !IsNil(o.AuthCipher) { - toSerialize["auth_cipher"] = o.AuthCipher + if o.AuthCipher.IsSet() { + toSerialize["auth_cipher"] = o.AuthCipher.Get() } if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk @@ -524,20 +634,37 @@ func (o *WritableWirelessLANRequest) UnmarshalJSON(data []byte) (err error) { "ssid", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableWirelessLANRequest := _WritableWirelessLANRequest{} err = json.Unmarshal(data, &varWritableWirelessLANRequest) @@ -556,6 +683,8 @@ func (o *WritableWirelessLANRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group") delete(additionalProperties, "status") delete(additionalProperties, "vlan") + delete(additionalProperties, "scope_type") + delete(additionalProperties, "scope_id") delete(additionalProperties, "tenant") delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") @@ -604,3 +733,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 84ae70e23c..7ec997b1a4 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WritableWirelessLinkRequest{} // WritableWirelessLinkRequest Adds support for custom fields and tags. type WritableWirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `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"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType NullableAuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher NullableAuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableCircuitRequestDistanceUnit `json:"distance_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{} } @@ -41,7 +43,7 @@ type _WritableWirelessLinkRequest WritableWirelessLinkRequest // 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 NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WritableWirelessLinkRequest { +func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WritableWirelessLinkRequest { this := WritableWirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWritableWirelessLinkRequestWithDefaults() *WritableWirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,15 @@ func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool } // SetInterfaceA sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } + // GetInterfaceB returns the InterfaceB field value -func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +95,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,10 +103,11 @@ func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool } // SetInterfaceB sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } + // GetSsid returns the Ssid field value if set, zero value otherwise. func (o *WritableWirelessLinkRequest) GetSsid() string { if o == nil || IsNil(o.Ssid) { @@ -137,9 +141,9 @@ func (o *WritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +151,7 @@ func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +167,15 @@ func (o *WritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +184,7 @@ func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { // 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 *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,11 +200,10 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableWirelessLinkRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -211,68 +214,88 @@ func (o *WritableWirelessLinkRequest) UnsetTenant() { o.Tenant.Unset() } -// GetAuthType returns the AuthType field value if set, zero value otherwise. +// GetAuthType returns the AuthType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType1 { - if o == nil || IsNil(o.AuthType) { + if o == nil || IsNil(o.AuthType.Get()) { var ret AuthenticationType1 return ret } - return *o.AuthType + return *o.AuthType.Get() } // GetAuthTypeOk returns a tuple with the AuthType 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 *WritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { - if o == nil || IsNil(o.AuthType) { + if o == nil { return nil, false } - return o.AuthType, true + return o.AuthType.Get(), o.AuthType.IsSet() } // HasAuthType returns a boolean if a field has been set. func (o *WritableWirelessLinkRequest) HasAuthType() bool { - if o != nil && !IsNil(o.AuthType) { + if o != nil && o.AuthType.IsSet() { return true } return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. +// SetAuthType gets a reference to the given NullableAuthenticationType1 and assigns it to the AuthType field. func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) { - o.AuthType = &v + o.AuthType.Set(&v) +} +// SetAuthTypeNil sets the value for AuthType to be an explicit nil +func (o *WritableWirelessLinkRequest) SetAuthTypeNil() { + o.AuthType.Set(nil) +} + +// UnsetAuthType ensures that no value is present for AuthType, not even an explicit nil +func (o *WritableWirelessLinkRequest) UnsetAuthType() { + o.AuthType.Unset() } -// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. +// GetAuthCipher returns the AuthCipher field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher { - if o == nil || IsNil(o.AuthCipher) { + if o == nil || IsNil(o.AuthCipher.Get()) { var ret AuthenticationCipher return ret } - return *o.AuthCipher + return *o.AuthCipher.Get() } // GetAuthCipherOk returns a tuple with the AuthCipher 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 *WritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { - if o == nil || IsNil(o.AuthCipher) { + if o == nil { return nil, false } - return o.AuthCipher, true + return o.AuthCipher.Get(), o.AuthCipher.IsSet() } // HasAuthCipher returns a boolean if a field has been set. func (o *WritableWirelessLinkRequest) HasAuthCipher() bool { - if o != nil && !IsNil(o.AuthCipher) { + if o != nil && o.AuthCipher.IsSet() { return true } return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. +// SetAuthCipher gets a reference to the given NullableAuthenticationCipher and assigns it to the AuthCipher field. func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) { - o.AuthCipher = &v + o.AuthCipher.Set(&v) +} +// SetAuthCipherNil sets the value for AuthCipher to be an explicit nil +func (o *WritableWirelessLinkRequest) SetAuthCipherNil() { + o.AuthCipher.Set(nil) +} + +// UnsetAuthCipher ensures that no value is present for AuthCipher, not even an explicit nil +func (o *WritableWirelessLinkRequest) UnsetAuthCipher() { + o.AuthCipher.Unset() } // GetAuthPsk returns the AuthPsk field value if set, zero value otherwise. @@ -307,6 +330,90 @@ func (o *WritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance 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 *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableWirelessLinkRequest) GetDistanceUnit() CircuitRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret CircuitRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit 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 *WritableWirelessLinkRequest) GetDistanceUnitOk() (*CircuitRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableCircuitRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WritableWirelessLinkRequest) SetDistanceUnit(v CircuitRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WritableWirelessLinkRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WritableWirelessLinkRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -436,7 +543,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 } @@ -456,15 +563,21 @@ func (o WritableWirelessLinkRequest) ToMap() (map[string]interface{}, error) { if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } - if !IsNil(o.AuthType) { - toSerialize["auth_type"] = o.AuthType + if o.AuthType.IsSet() { + toSerialize["auth_type"] = o.AuthType.Get() } - if !IsNil(o.AuthCipher) { - toSerialize["auth_cipher"] = o.AuthCipher + if o.AuthCipher.IsSet() { + toSerialize["auth_cipher"] = o.AuthCipher.Get() } if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -494,20 +607,37 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { "interface_b", } + // defaultValueFuncMap captures the default values for required properties. + // These values are used when required properties are missing from the payload. + defaultValueFuncMap := map[string]func() interface{} { + } + var defaultValueApplied bool allProperties := make(map[string]interface{}) err = json.Unmarshal(data, &allProperties) if err != nil { - return err + return err; } - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { + for _, requiredProperty := range(requiredProperties) { + if value, exists := allProperties[requiredProperty]; !exists || value == "" { + if _, ok := defaultValueFuncMap[requiredProperty]; ok { + allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]() + defaultValueApplied = true + } + } + if value, exists := allProperties[requiredProperty]; !exists || value == ""{ return fmt.Errorf("no value given for required property %v", requiredProperty) } } + if defaultValueApplied { + data, err = json.Marshal(allProperties) + if err != nil{ + return err + } + } varWritableWirelessLinkRequest := _WritableWirelessLinkRequest{} err = json.Unmarshal(data, &varWritableWirelessLinkRequest) @@ -529,6 +659,8 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") @@ -574,3 +706,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 d10be0f114..0fe5d3c6d5 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index fac390124a..809e51f4bb 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -12,13 +12,20 @@ if 'components' in data and 'schemas' in data['components']: for name, schema in data['components']['schemas'].items(): if 'properties' in schema: + # List to store dynamically found nullable properties + dynamic_non_required_props = [] + # Remove "null" item from nullable enums - for name, prop in schema['properties'].items(): + for propName, prop in schema['properties'].items(): if 'enum' in prop and None in prop['enum']: prop['enum'].remove(None) if 'properties' in prop and 'value' in prop['properties'] and 'enum' in prop['properties']['value'] and None in prop['properties']['value']['enum']: prop['properties']['value']['enum'].remove(None) + # If property is nullable, add to non-required props + if prop.get('nullable', False): + dynamic_non_required_props.append(propName) + # Fix nullable types nullable_types = [ 'parent_device', @@ -28,6 +35,9 @@ for ntype in nullable_types: if ntype in schema['properties']: schema['properties'][ntype]['nullable'] = True + # Add to non-required if marked as nullable + if ntype not in dynamic_non_required_props: + dynamic_non_required_props.append(ntype) # Fix non-nullable types # See: https://github.com/OpenAPITools/openapi-generator/issues/18006 @@ -39,8 +49,37 @@ for ntype in non_nullable_types: if ntype in schema['properties']: if schema['properties'][ntype]['format'] == 'binary': - schema['properties'][ntype].pop('nullable') + schema['properties'][ntype].pop('nullable', None) + + # Combine the original non-required props with dynamically found nullable properties + non_required_props = [ + 'devicetype_count', + 'device_count', + 'virtualmachine_count', + 'prefix_count', + 'vlan_count', + 'rack_count', + 'vrf_count', + 'display_url', + 'cluster_count', + 'site_count', + 'created', # for sites + 'provider_count', # ASNs + ] + dynamic_non_required_props + + if 'required' in schema: + # Filter out nullable properties from the required list + schema['required'] = [prop for prop in schema['required'] if prop not in non_required_props] + +# Add required fields to the Device schema +data['components']['schemas']['Device']['required'] = [ + 'id', + 'url', + 'display', + 'name', + 'description', +] # Save the spec file with open(SPEC_PATH, 'w') as file: - yaml.dump(data, file, Dumper=yaml.CDumper, sort_keys=False) + yaml.dump(data, file, Dumper=yaml.CDumper, sort_keys=False) \ No newline at end of file diff --git a/scripts/generate-code.sh b/scripts/generate-code.sh index 8680a6e38a..ef062652c0 100755 --- a/scripts/generate-code.sh +++ b/scripts/generate-code.sh @@ -8,7 +8,7 @@ for F in $(cat .openapi-generator/files) ; do done # Generate library -docker run --rm --env JAVA_OPTS=-DmaxYamlCodePoints=9999999 -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.6.0 \ +docker run --rm --env JAVA_OPTS=-DmaxYamlCodePoints=9999999 -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.11.0 \ generate \ --config /local/.openapi-generator/config.yaml \ --input-spec /local/api/openapi.yaml \ diff --git a/test/api_circuits_test.go b/test/api_circuits_test.go deleted file mode 100644 index 9380c73ae5..0000000000 --- a/test/api_circuits_test.go +++ /dev/null @@ -1,724 +0,0 @@ -/* -NetBox REST API - -Testing CircuitsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_CircuitsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsPathsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTypesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTypesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTypesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTypesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTypesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTypesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitTypesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsCircuitsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderAccountsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderAccountsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderAccountsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderAccountsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderAccountsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderAccountsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderAccountsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderNetworksBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderNetworksBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderNetworksCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderNetworksDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderNetworksPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderNetworksRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProviderNetworksUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProvidersBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProvidersBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProvidersCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProvidersDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProvidersPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProvidersRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CircuitsAPIService CircuitsProvidersUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_core_test.go b/test/api_core_test.go deleted file mode 100644 index a69dd75c6f..0000000000 --- a/test/api_core_test.go +++ /dev/null @@ -1,206 +0,0 @@ -/* -NetBox REST API - -Testing CoreAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_CoreAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test CoreAPIService CoreDataFilesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CoreAPI.CoreDataFilesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataFilesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CoreAPI.CoreDataFilesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesSyncCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesSyncCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreDataSourcesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreJobsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CoreAPIService CoreJobsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.CoreAPI.CoreJobsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_dcim_test.go b/test/api_dcim_test.go deleted file mode 100644 index cc9db9429d..0000000000 --- a/test/api_dcim_test.go +++ /dev/null @@ -1,4852 +0,0 @@ -/* -NetBox REST API - -Testing DcimAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_DcimAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test DcimAPIService DcimCableTerminationsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCableTerminationsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCableTerminationsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCableTerminationsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCableTerminationsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCableTerminationsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCableTerminationsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCablesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCablesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCablesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCablesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCablesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCablesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCablesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimCablesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCablesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimCablesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCablesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimCablesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimCablesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimCablesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConnectedDeviceList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConnectedDeviceList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsTraceRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsolePortsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsTraceRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimConsoleServerPortsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBayTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBayTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBayTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBayTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBayTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBayTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBayTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBaysBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBaysBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBaysCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBaysDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBaysPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBaysRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceBaysUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceRolesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceRolesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceRolesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceRolesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceRolesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceRolesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceRolesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceTypesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceTypesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceTypesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceTypesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceTypesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceTypesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDeviceTypesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesRenderConfigCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesRenderConfigCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimDevicesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimDevicesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsPathsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimFrontPortsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfaceTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfaceTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfaceTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfaceTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfaceTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfaceTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfaceTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesTraceRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesTraceRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInterfacesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemRolesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemRolesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemRolesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemRolesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemRolesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemRolesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemRolesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimInventoryItemsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimLocationsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimLocationsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimLocationsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimLocationsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimLocationsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimLocationsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimLocationsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimLocationsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimLocationsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimLocationsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimLocationsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimLocationsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimLocationsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimManufacturersBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimManufacturersBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimManufacturersCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimManufacturersDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimManufacturersPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimManufacturersRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimManufacturersUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBayTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBayTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBayTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBayTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBayTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBayTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBayTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBaysBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBaysBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBaysCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBaysDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBaysPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBaysRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleBaysUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleTypesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleTypesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleTypesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleTypesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleTypesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleTypesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModuleTypesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModulesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModulesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModulesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModulesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimModulesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModulesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModulesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModulesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimModulesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPlatformsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPlatformsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPlatformsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPlatformsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPlatformsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPlatformsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPlatformsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsTraceRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerFeedsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsTraceRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerOutletsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPanelsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPanelsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPanelsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPanelsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPanelsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPanelsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPanelsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsTraceRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimPowerPortsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackReservationsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackReservationsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackReservationsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackReservationsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackReservationsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackReservationsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackReservationsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackRolesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackRolesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackRolesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackRolesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackRolesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackRolesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRackRolesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRacksUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRacksUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsPathsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsPathsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRearPortsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRegionsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRegionsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRegionsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRegionsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRegionsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRegionsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRegionsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimRegionsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRegionsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRegionsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRegionsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRegionsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimRegionsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimRegionsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSiteGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSiteGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSiteGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSiteGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSiteGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSiteGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSiteGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSitesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSitesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSitesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSitesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSitesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSitesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSitesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimSitesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSitesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimSitesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSitesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimSitesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimSitesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimSitesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualChassisBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualChassisBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualChassisCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualChassisDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualChassisPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualChassisRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualChassisUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualDeviceContextsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualDeviceContextsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualDeviceContextsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualDeviceContextsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualDeviceContextsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualDeviceContextsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test DcimAPIService DcimVirtualDeviceContextsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_extras_test.go b/test/api_extras_test.go deleted file mode 100644 index b77ce0a320..0000000000 --- a/test/api_extras_test.go +++ /dev/null @@ -1,1756 +0,0 @@ -/* -NetBox REST API - -Testing ExtrasAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_ExtrasAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test ExtrasAPIService ExtrasBookmarksBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasBookmarksUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasConfigContextsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasConfigTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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 ExtrasConfigTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - 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 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasConfigTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasConfigTemplatesRenderCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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 ExtrasConfigTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasConfigTemplatesSyncCreate", 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() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasConfigTemplatesUpdate", 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() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - 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 - - 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.ExtrasCustomFieldChoiceSetsChoicesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsCreate", func(t *testing.T) { - - 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 - - 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) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsPartialUpdate", func(t *testing.T) { - - 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.ExtrasCustomFieldChoiceSetsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomFieldsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomLinksBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomLinksBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomLinksCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomLinksDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomLinksPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomLinksRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasCustomLinksUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasDashboardDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasDashboardRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardRetrieve(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasDashboardUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasEventRulesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesSyncCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasExportTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasImageAttachmentsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasImageAttachmentsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasImageAttachmentsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasImageAttachmentsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasImageAttachmentsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasImageAttachmentsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasImageAttachmentsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasJournalEntriesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasJournalEntriesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasJournalEntriesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasJournalEntriesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasJournalEntriesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasJournalEntriesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasJournalEntriesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasObjectChangesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasObjectChangesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasObjectTypesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasObjectTypesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasSavedFiltersBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasSavedFiltersBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasSavedFiltersCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasSavedFiltersDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasSavedFiltersPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasSavedFiltersRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasSavedFiltersUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasScriptsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasScriptsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasScriptsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasScriptsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasScriptsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasScriptsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasTagsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasTagsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasTagsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasTagsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasTagsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasTagsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasTagsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasWebhooksBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasWebhooksBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasWebhooksCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasWebhooksDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasWebhooksPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasWebhooksRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ExtrasAPIService ExtrasWebhooksUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_ipam_test.go b/test/api_ipam_test.go deleted file mode 100644 index 83dc3ec598..0000000000 --- a/test/api_ipam_test.go +++ /dev/null @@ -1,1990 +0,0 @@ -/* -NetBox REST API - -Testing IpamAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_IpamAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test IpamAPIService IpamAggregatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAggregatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAggregatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAggregatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAggregatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAggregatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAggregatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesAvailableAsnsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesAvailableAsnsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnRangesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamAsnsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamFhrpGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpAddressesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpAddressesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpAddressesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpAddressesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpAddressesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpAddressesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpAddressesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesAvailableIpsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesAvailableIpsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsList(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamIpRangesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesAvailableIpsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesAvailableIpsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsList(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesAvailablePrefixesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesAvailablePrefixesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamPrefixesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRirsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRirsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRirsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRirsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRirsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRirsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRirsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRirsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRirsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRirsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRirsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRirsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRirsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRirsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRolesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRolesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRolesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRolesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRolesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRolesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRolesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRolesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRolesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRolesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRolesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRolesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRolesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRolesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRouteTargetsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRouteTargetsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRouteTargetsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRouteTargetsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRouteTargetsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRouteTargetsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamRouteTargetsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServiceTemplatesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServiceTemplatesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServiceTemplatesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServiceTemplatesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServiceTemplatesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServiceTemplatesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServiceTemplatesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServicesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServicesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServicesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServicesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServicesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServicesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServicesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServicesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamServicesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServicesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamServicesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamServicesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamServicesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsAvailableVlansCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsAvailableVlansList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlanGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlansBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlansBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlansBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlansBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlansCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlansCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlansDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVlansList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlansPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlansPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlansRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlansRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVlansUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVlansUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVrfsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVrfsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVrfsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVrfsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVrfsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVrfsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.IpamAPI.IpamVrfsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVrfsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVrfsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVrfsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test IpamAPIService IpamVrfsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_schema_test.go b/test/api_schema_test.go deleted file mode 100644 index aafe3beec8..0000000000 --- a/test/api_schema_test.go +++ /dev/null @@ -1,38 +0,0 @@ -/* -NetBox REST API - -Testing SchemaAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_SchemaAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test SchemaAPIService SchemaRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.SchemaAPI.SchemaRetrieve(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_status_test.go b/test/api_status_test.go deleted file mode 100644 index ea8380f29a..0000000000 --- a/test/api_status_test.go +++ /dev/null @@ -1,38 +0,0 @@ -/* -NetBox REST API - -Testing StatusAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_StatusAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test StatusAPIService StatusRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.StatusAPI.StatusRetrieve(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_tenancy_test.go b/test/api_tenancy_test.go deleted file mode 100644 index 6a8bd572cc..0000000000 --- a/test/api_tenancy_test.go +++ /dev/null @@ -1,710 +0,0 @@ -/* -NetBox REST API - -Testing TenancyAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_TenancyAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test TenancyAPIService TenancyContactAssignmentsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactAssignmentsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactAssignmentsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactAssignmentsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactAssignmentsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactAssignmentsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactAssignmentsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactRolesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactRolesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactRolesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactRolesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactRolesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactRolesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactRolesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyContactsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TenancyAPIService TenancyTenantsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_users_test.go b/test/api_users_test.go deleted file mode 100644 index d965356580..0000000000 --- a/test/api_users_test.go +++ /dev/null @@ -1,506 +0,0 @@ -/* -NetBox REST API - -Testing UsersAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_UsersAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test UsersAPIService UsersConfigRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersConfigRetrieve(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersPermissionsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersPermissionsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersPermissionsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersPermissionsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersPermissionsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersPermissionsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersPermissionsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensProvisionCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensProvisionCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersTokensUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersUsersBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersUsersBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersUsersBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersUsersBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersUsersCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersUsersDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UsersAPI.UsersUsersList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersUsersPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersUsersRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersUsersRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test UsersAPIService UsersUsersUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_virtualization_test.go b/test/api_virtualization_test.go deleted file mode 100644 index b76b5d6bd9..0000000000 --- a/test/api_virtualization_test.go +++ /dev/null @@ -1,724 +0,0 @@ -/* -NetBox REST API - -Testing VirtualizationAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_VirtualizationAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterTypesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterTypesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterTypesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterTypesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterTypesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterTypesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClusterTypesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClustersBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClustersBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClustersCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClustersDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClustersPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClustersRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationClustersUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationInterfacesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationInterfacesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationInterfacesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationInterfacesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationInterfacesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationInterfacesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationInterfacesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesRenderConfigCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRenderConfigCreate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_vpn_test.go b/test/api_vpn_test.go deleted file mode 100644 index 0f9c55d94d..0000000000 --- a/test/api_vpn_test.go +++ /dev/null @@ -1,1166 +0,0 @@ -/* -NetBox REST API - -Testing VpnAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_VpnAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test VpnAPIService VpnIkePoliciesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnIkePoliciesDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkePoliciesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnIkeProposalsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIkeProposalsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecPoliciesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProfilesUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnIpsecProposalsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnTerminationsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnL2vpnsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnL2vpnsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelTerminationsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkDestroy(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsBulkPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - httpRes, err := apiClient.VpnAPI.VpnTunnelsDestroy(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsList", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test VpnAPIService VpnTunnelsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/test/api_wireless_test.go b/test/api_wireless_test.go deleted file mode 100644 index b92b2933cd..0000000000 --- a/test/api_wireless_test.go +++ /dev/null @@ -1,368 +0,0 @@ -/* -NetBox REST API - -Testing WirelessAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package netbox - -import ( - "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v4" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_netbox_WirelessAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test WirelessAPIService WirelessWirelessLanGroupsBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLanGroupsBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLanGroupsCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLanGroupsDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLanGroupsPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLanGroupsRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLanGroupsUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLansBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLansBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLansCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLansDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLansPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLansRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLansUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLinksBulkDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkPartialUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLinksBulkUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkUpdate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLinksCreate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksCreate(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLinksDestroy", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - 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.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLinksPartialUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksPartialUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLinksRetrieve", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksRetrieve(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WirelessAPIService WirelessWirelessLinksUpdate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id int32 - - resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksUpdate(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/utils.go b/utils.go index 31b2f6c2e5..a0799682ad 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: 4.0.3 (4.0) +API version: 4.2.2 (4.2) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -11,7 +11,9 @@ API version: 4.0.3 (4.0) package netbox import ( + "bytes" "encoding/json" + "fmt" "reflect" "time" ) @@ -345,3 +347,15 @@ func IsNil(i interface{}) bool { type MappedNullable interface { ToMap() (map[string]interface{}, error) } + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file From 490d6411c4ca9766ed88b6738a8e5e4ae4b9f453 Mon Sep 17 00:00:00 2001 From: Antoine Date: Fri, 24 Jan 2025 09:33:28 -0500 Subject: [PATCH 2/2] add more _count fields as in #188 --- api/openapi.yaml | 37 - api_utils_test.go | 4 +- docs/ASNRange.md | 9 +- docs/BriefCircuitType.md | 9 +- docs/BriefContactGroup.md | 9 +- docs/BriefCustomFieldChoiceSet.md | 9 +- docs/BriefInventoryItemRole.md | 9 +- docs/BriefPowerPanel.md | 9 +- docs/BriefProvider.md | 9 +- docs/BriefRIR.md | 9 +- docs/BriefTenantGroup.md | 9 +- docs/BriefTunnelGroup.md | 9 +- docs/BriefVirtualChassis.md | 9 +- docs/BriefWirelessLANGroup.md | 9 +- docs/CircuitGroup.md | 9 +- docs/CircuitType.md | 9 +- docs/ContactGroup.md | 9 +- docs/CustomFieldChoiceSet.md | 9 +- docs/DataSource.md | 9 +- docs/DeviceWithConfigContext.md | 9 +- docs/Group.md | 9 +- docs/InventoryItemRole.md | 9 +- docs/Manufacturer.md | 16 +- docs/PowerPanel.md | 9 +- docs/Provider.md | 9 +- docs/RIR.md | 9 +- docs/Rack.md | 9 +- docs/Site.md | 9 +- docs/Tenant.md | 16 +- docs/TenantGroup.md | 9 +- docs/Tunnel.md | 9 +- docs/TunnelGroup.md | 9 +- docs/VRF.md | 9 +- docs/VirtualChassis.md | 9 +- docs/VirtualDeviceContext.md | 9 +- docs/VirtualMachineWithConfigContext.md | 9 +- docs/WirelessLANGroup.md | 9 +- go.mod | 8 + go.sum | 10 + model_asn_range.go | 37 +- model_brief_circuit_type.go | 37 +- model_brief_contact_group.go | 37 +- model_brief_custom_field_choice_set.go | 37 +- model_brief_inventory_item_role.go | 37 +- model_brief_power_panel.go | 37 +- model_brief_provider.go | 37 +- model_brief_rir.go | 37 +- model_brief_tenant_group.go | 37 +- model_brief_tunnel_group.go | 37 +- model_brief_virtual_chassis.go | 37 +- model_brief_wireless_lan_group.go | 37 +- model_circuit_group.go | 37 +- model_circuit_type.go | 37 +- model_contact_group.go | 37 +- model_custom_field_choice_set.go | 37 +- model_data_source.go | 37 +- model_device_with_config_context.go | 37 +- model_group.go | 37 +- model_inventory_item_role.go | 37 +- model_manufacturer.go | 72 +- model_power_panel.go | 37 +- model_provider.go | 37 +- model_rack.go | 37 +- model_rir.go | 37 +- model_site.go | 37 +- model_tenant.go | 72 +- model_tenant_group.go | 37 +- model_tunnel.go | 37 +- model_tunnel_group.go | 37 +- model_virtual_chassis.go | 37 +- model_virtual_device_context.go | 37 +- model_virtual_machine_with_config_context.go | 37 +- model_vrf.go | 37 +- model_wireless_lan_group.go | 37 +- scripts/fix-spec.py | 22 +- test/api_circuits_test.go | 1307 +++++ test/api_core_test.go | 360 ++ test/api_dcim_test.go | 5079 ++++++++++++++++++ test/api_extras_test.go | 2071 +++++++ test/api_ipam_test.go | 2217 ++++++++ test/api_schema_test.go | 37 + test/api_status_test.go | 37 + test/api_tenancy_test.go | 709 +++ test/api_users_test.go | 505 ++ test/api_virtualization_test.go | 723 +++ test/api_vpn_test.go | 1165 ++++ test/api_wireless_test.go | 367 ++ 87 files changed, 15686 insertions(+), 666 deletions(-) create mode 100644 test/api_circuits_test.go create mode 100644 test/api_core_test.go create mode 100644 test/api_dcim_test.go create mode 100644 test/api_extras_test.go create mode 100644 test/api_ipam_test.go create mode 100644 test/api_schema_test.go create mode 100644 test/api_status_test.go create mode 100644 test/api_tenancy_test.go create mode 100644 test/api_users_test.go create mode 100644 test/api_virtualization_test.go create mode 100644 test/api_vpn_test.go create mode 100644 test/api_wireless_test.go diff --git a/api/openapi.yaml b/api/openapi.yaml index 2f7c741393..ce5d5fc1c5 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -116668,7 +116668,6 @@ components: type: integer readOnly: true required: - - asn_count - display - end - id @@ -117200,7 +117199,6 @@ components: format: int64 readOnly: true required: - - circuit_count - display - id - name @@ -117476,7 +117474,6 @@ components: title: ' depth' required: - _depth - - contact_count - display - id - name @@ -117590,7 +117587,6 @@ components: type: string readOnly: true required: - - choices_count - display - id - name @@ -118167,7 +118163,6 @@ components: required: - display - id - - inventoryitem_count - name - slug - url @@ -118757,7 +118752,6 @@ components: - display - id - name - - powerfeed_count - url BriefPowerPanelRequest: type: object @@ -118904,7 +118898,6 @@ components: format: int64 readOnly: true required: - - circuit_count - display - id - name @@ -119045,7 +119038,6 @@ components: format: int64 readOnly: true required: - - aggregate_count - display - id - name @@ -119560,7 +119552,6 @@ components: - id - name - slug - - tenant_count - url BriefTenantGroupRequest: type: object @@ -119658,7 +119649,6 @@ components: - id - name - slug - - tunnel_count - url BriefTunnelGroupRequest: type: object @@ -119963,7 +119953,6 @@ components: required: - display - id - - member_count - name - url BriefVirtualChassisRequest: @@ -120162,7 +120151,6 @@ components: - name - slug - url - - wirelesslan_count BriefWirelessLANGroupRequest: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -120937,7 +120925,6 @@ components: format: int64 readOnly: true required: - - circuit_count - display - id - name @@ -121424,7 +121411,6 @@ components: format: int64 readOnly: true required: - - circuit_count - display - id - name @@ -123398,7 +123384,6 @@ components: title: ' depth' required: - _depth - - contact_count - display - id - name @@ -123875,7 +123860,6 @@ components: readOnly: true nullable: true required: - - choices_count - display - extra_choices - id @@ -124473,7 +124457,6 @@ components: readOnly: true required: - display - - file_count - id - name - source_url @@ -125747,7 +125730,6 @@ components: - display - front_port_count - id - - interface_count - inventory_item_count - module_bay_count - power_outlet_count @@ -127665,7 +127647,6 @@ components: - id - name - url - - user_count GroupRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -133623,7 +133604,6 @@ components: required: - display - id - - inventoryitem_count - name - slug - url @@ -134635,9 +134615,7 @@ components: required: - display - id - - inventoryitem_count - name - - platform_count - slug - url ManufacturerRequest: @@ -151359,7 +151337,6 @@ components: - display - id - name - - powerfeed_count - site - url PowerPanelRequest: @@ -153398,7 +153375,6 @@ components: format: int64 readOnly: true required: - - circuit_count - display - id - name @@ -153663,7 +153639,6 @@ components: format: int64 readOnly: true required: - - aggregate_count - display - id - name @@ -153990,7 +153965,6 @@ components: - display - id - name - - powerfeed_count - site - url RackRequest: @@ -156679,7 +156653,6 @@ components: format: int64 readOnly: true required: - - circuit_count - display - id - name @@ -157123,10 +157096,8 @@ components: format: int64 readOnly: true required: - - circuit_count - display - id - - ipaddress_count - name - slug - url @@ -157193,7 +157164,6 @@ components: - id - name - slug - - tenant_count - url TenantGroupRequest: type: object @@ -157550,7 +157520,6 @@ components: - id - name - status - - terminations_count - url TunnelGroup: type: object @@ -157606,7 +157575,6 @@ components: - id - name - slug - - tunnel_count - url TunnelGroupRequest: type: object @@ -158650,7 +158618,6 @@ components: required: - display - id - - ipaddress_count - name - url VRFRequest: @@ -158758,7 +158725,6 @@ components: required: - display - id - - member_count - members - name - url @@ -159235,7 +159201,6 @@ components: - device - display - id - - interface_count - name - status - url @@ -159534,7 +159499,6 @@ components: required: - display - id - - interface_count - name - url - virtual_disk_count @@ -160039,7 +160003,6 @@ components: - name - slug - url - - wirelesslan_count WirelessLANGroupRequest: type: object description: Extends PrimaryModelSerializer to include MPTT support. diff --git a/api_utils_test.go b/api_utils_test.go index 121d4116a6..4df670fe9b 100644 --- a/api_utils_test.go +++ b/api_utils_test.go @@ -11,10 +11,10 @@ func HGetClient(t *testing.T) *APIClient { token := os.Getenv("NETBOX_TOKEN") if srv == "" { - t.Fatal("NETBOX_URL is not set") + t.Skip("NETBOX_URL is not set") } if token == "" { - t.Fatal("NETBOX_TOKEN is not set") + t.Skip("NETBOX_TOKEN is not set") } cfg := NewConfiguration() diff --git a/docs/ASNRange.md b/docs/ASNRange.md index a863be78fd..a67c9e6922 100644 --- a/docs/ASNRange.md +++ b/docs/ASNRange.md @@ -19,13 +19,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**AsnCount** | **int32** | | [readonly] +**AsnCount** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewASNRange -`func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, asnCount int32, ) *ASNRange` +`func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, ) *ASNRange` NewASNRange instantiates a new ASNRange object This constructor will assign default values to properties that have it defined, @@ -424,6 +424,11 @@ and a boolean to check if the value has been set. SetAsnCount sets AsnCount field to given value. +### HasAsnCount + +`func (o *ASNRange) HasAsnCount() bool` + +HasAsnCount 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/BriefCircuitType.md b/docs/BriefCircuitType.md index 77987dfcdf..cc20f45980 100644 --- a/docs/BriefCircuitType.md +++ b/docs/BriefCircuitType.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**CircuitCount** | **int64** | | [readonly] +**CircuitCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefCircuitType -`func NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64, ) *BriefCircuitType` +`func NewBriefCircuitType(id int32, url string, display string, name string, slug string, ) *BriefCircuitType` NewBriefCircuitType instantiates a new BriefCircuitType object This constructor will assign default values to properties that have it defined, @@ -175,6 +175,11 @@ and a boolean to check if the value has been set. SetCircuitCount sets CircuitCount field to given value. +### HasCircuitCount + +`func (o *BriefCircuitType) HasCircuitCount() bool` + +HasCircuitCount 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/BriefContactGroup.md b/docs/BriefContactGroup.md index 0b68127398..513e51a60c 100644 --- a/docs/BriefContactGroup.md +++ b/docs/BriefContactGroup.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**ContactCount** | **int32** | | [readonly] [default to 0] +**ContactCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewBriefContactGroup -`func NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32, ) *BriefContactGroup` +`func NewBriefContactGroup(id int32, url string, display string, name string, slug string, depth int32, ) *BriefContactGroup` NewBriefContactGroup instantiates a new BriefContactGroup object This constructor will assign default values to properties that have it defined, @@ -176,6 +176,11 @@ and a boolean to check if the value has been set. SetContactCount sets ContactCount field to given value. +### HasContactCount + +`func (o *BriefContactGroup) HasContactCount() bool` + +HasContactCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/BriefCustomFieldChoiceSet.md b/docs/BriefCustomFieldChoiceSet.md index 6f5b276759..529142e635 100644 --- a/docs/BriefCustomFieldChoiceSet.md +++ b/docs/BriefCustomFieldChoiceSet.md @@ -9,13 +9,13 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**ChoicesCount** | **string** | | [readonly] +**ChoicesCount** | Pointer to **string** | | [optional] [readonly] ## Methods ### NewBriefCustomFieldChoiceSet -`func NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string, ) *BriefCustomFieldChoiceSet` +`func NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, ) *BriefCustomFieldChoiceSet` NewBriefCustomFieldChoiceSet instantiates a new BriefCustomFieldChoiceSet object This constructor will assign default values to properties that have it defined, @@ -154,6 +154,11 @@ and a boolean to check if the value has been set. SetChoicesCount sets ChoicesCount field to given value. +### HasChoicesCount + +`func (o *BriefCustomFieldChoiceSet) HasChoicesCount() bool` + +HasChoicesCount 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/BriefInventoryItemRole.md b/docs/BriefInventoryItemRole.md index 00a6568797..76edfede3c 100644 --- a/docs/BriefInventoryItemRole.md +++ b/docs/BriefInventoryItemRole.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**InventoryitemCount** | **int64** | | [readonly] +**InventoryitemCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefInventoryItemRole -`func NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64, ) *BriefInventoryItemRole` +`func NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, ) *BriefInventoryItemRole` NewBriefInventoryItemRole instantiates a new BriefInventoryItemRole object This constructor will assign default values to properties that have it defined, @@ -175,6 +175,11 @@ and a boolean to check if the value has been set. SetInventoryitemCount sets InventoryitemCount field to given value. +### HasInventoryitemCount + +`func (o *BriefInventoryItemRole) HasInventoryitemCount() bool` + +HasInventoryitemCount 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/BriefPowerPanel.md b/docs/BriefPowerPanel.md index 76914fc7a1..fa5d3281ef 100644 --- a/docs/BriefPowerPanel.md +++ b/docs/BriefPowerPanel.md @@ -9,13 +9,13 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**PowerfeedCount** | **int64** | | [readonly] +**PowerfeedCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefPowerPanel -`func NewBriefPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *BriefPowerPanel` +`func NewBriefPowerPanel(id int32, url string, display string, name string, ) *BriefPowerPanel` NewBriefPowerPanel instantiates a new BriefPowerPanel object This constructor will assign default values to properties that have it defined, @@ -154,6 +154,11 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. +### HasPowerfeedCount + +`func (o *BriefPowerPanel) HasPowerfeedCount() bool` + +HasPowerfeedCount 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/BriefProvider.md b/docs/BriefProvider.md index 2b0cfad582..9812b771b9 100644 --- a/docs/BriefProvider.md +++ b/docs/BriefProvider.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | Full name of the provider | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**CircuitCount** | **int64** | | [readonly] +**CircuitCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefProvider -`func NewBriefProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *BriefProvider` +`func NewBriefProvider(id int32, url string, display string, name string, slug string, ) *BriefProvider` NewBriefProvider instantiates a new BriefProvider object This constructor will assign default values to properties that have it defined, @@ -175,6 +175,11 @@ and a boolean to check if the value has been set. SetCircuitCount sets CircuitCount field to given value. +### HasCircuitCount + +`func (o *BriefProvider) HasCircuitCount() bool` + +HasCircuitCount 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/BriefRIR.md b/docs/BriefRIR.md index 30084ad67c..7e28d1ae67 100644 --- a/docs/BriefRIR.md +++ b/docs/BriefRIR.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**AggregateCount** | **int64** | | [readonly] +**AggregateCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefRIR -`func NewBriefRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *BriefRIR` +`func NewBriefRIR(id int32, url string, display string, name string, slug string, ) *BriefRIR` NewBriefRIR instantiates a new BriefRIR object This constructor will assign default values to properties that have it defined, @@ -175,6 +175,11 @@ and a boolean to check if the value has been set. SetAggregateCount sets AggregateCount field to given value. +### HasAggregateCount + +`func (o *BriefRIR) HasAggregateCount() bool` + +HasAggregateCount 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/BriefTenantGroup.md b/docs/BriefTenantGroup.md index 513eb69565..5fde154e12 100644 --- a/docs/BriefTenantGroup.md +++ b/docs/BriefTenantGroup.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**TenantCount** | **int32** | | [readonly] [default to 0] +**TenantCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewBriefTenantGroup -`func NewBriefTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32, ) *BriefTenantGroup` +`func NewBriefTenantGroup(id int32, url string, display string, name string, slug string, depth int32, ) *BriefTenantGroup` NewBriefTenantGroup instantiates a new BriefTenantGroup object This constructor will assign default values to properties that have it defined, @@ -176,6 +176,11 @@ and a boolean to check if the value has been set. SetTenantCount sets TenantCount field to given value. +### HasTenantCount + +`func (o *BriefTenantGroup) HasTenantCount() bool` + +HasTenantCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/BriefTunnelGroup.md b/docs/BriefTunnelGroup.md index ca2d774643..5ac00c5315 100644 --- a/docs/BriefTunnelGroup.md +++ b/docs/BriefTunnelGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**TunnelCount** | **int64** | | [readonly] +**TunnelCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefTunnelGroup -`func NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64, ) *BriefTunnelGroup` +`func NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, ) *BriefTunnelGroup` NewBriefTunnelGroup instantiates a new BriefTunnelGroup object This constructor will assign default values to properties that have it defined, @@ -175,6 +175,11 @@ and a boolean to check if the value has been set. SetTunnelCount sets TunnelCount field to given value. +### HasTunnelCount + +`func (o *BriefTunnelGroup) HasTunnelCount() bool` + +HasTunnelCount 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/BriefVirtualChassis.md b/docs/BriefVirtualChassis.md index 304b6f30d4..f93cbf910a 100644 --- a/docs/BriefVirtualChassis.md +++ b/docs/BriefVirtualChassis.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**MemberCount** | **int32** | | [readonly] +**MemberCount** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefVirtualChassis -`func NewBriefVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *BriefVirtualChassis` +`func NewBriefVirtualChassis(id int32, url string, display string, name string, ) *BriefVirtualChassis` NewBriefVirtualChassis instantiates a new BriefVirtualChassis object This constructor will assign default values to properties that have it defined, @@ -190,6 +190,11 @@ and a boolean to check if the value has been set. SetMemberCount sets MemberCount field to given value. +### HasMemberCount + +`func (o *BriefVirtualChassis) HasMemberCount() bool` + +HasMemberCount 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/BriefWirelessLANGroup.md b/docs/BriefWirelessLANGroup.md index 680e013dac..c61fabe295 100644 --- a/docs/BriefWirelessLANGroup.md +++ b/docs/BriefWirelessLANGroup.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**WirelesslanCount** | **int32** | | [readonly] [default to 0] +**WirelesslanCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewBriefWirelessLANGroup -`func NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *BriefWirelessLANGroup` +`func NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32, ) *BriefWirelessLANGroup` NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -176,6 +176,11 @@ and a boolean to check if the value has been set. SetWirelesslanCount sets WirelesslanCount field to given value. +### HasWirelesslanCount + +`func (o *BriefWirelessLANGroup) HasWirelesslanCount() bool` + +HasWirelesslanCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/CircuitGroup.md b/docs/CircuitGroup.md index 529240a9a0..44234295ce 100644 --- a/docs/CircuitGroup.md +++ b/docs/CircuitGroup.md @@ -16,13 +16,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**CircuitCount** | **int64** | | [readonly] +**CircuitCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewCircuitGroup -`func NewCircuitGroup(id int32, url string, display string, name string, slug string, circuitCount int64, ) *CircuitGroup` +`func NewCircuitGroup(id int32, url string, display string, name string, slug string, ) *CircuitGroup` NewCircuitGroup instantiates a new CircuitGroup object This constructor will assign default values to properties that have it defined, @@ -361,6 +361,11 @@ and a boolean to check if the value has been set. SetCircuitCount sets CircuitCount field to given value. +### HasCircuitCount + +`func (o *CircuitGroup) HasCircuitCount() bool` + +HasCircuitCount 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/CircuitType.md b/docs/CircuitType.md index 2e6fc8578c..e40917ee90 100644 --- a/docs/CircuitType.md +++ b/docs/CircuitType.md @@ -16,13 +16,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**CircuitCount** | **int64** | | [readonly] +**CircuitCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewCircuitType -`func NewCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64, ) *CircuitType` +`func NewCircuitType(id int32, url string, display string, name string, slug string, ) *CircuitType` NewCircuitType instantiates a new CircuitType object This constructor will assign default values to properties that have it defined, @@ -351,6 +351,11 @@ and a boolean to check if the value has been set. SetCircuitCount sets CircuitCount field to given value. +### HasCircuitCount + +`func (o *CircuitType) HasCircuitCount() bool` + +HasCircuitCount 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/ContactGroup.md b/docs/ContactGroup.md index da026a8152..7847d6ac61 100644 --- a/docs/ContactGroup.md +++ b/docs/ContactGroup.md @@ -16,14 +16,14 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**ContactCount** | **int32** | | [readonly] [default to 0] +**ContactCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewContactGroup -`func NewContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32, ) *ContactGroup` +`func NewContactGroup(id int32, url string, display string, name string, slug string, depth int32, ) *ContactGroup` NewContactGroup instantiates a new ContactGroup object This constructor will assign default values to properties that have it defined, @@ -362,6 +362,11 @@ and a boolean to check if the value has been set. SetContactCount sets ContactCount field to given value. +### HasContactCount + +`func (o *ContactGroup) HasContactCount() bool` + +HasContactCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/CustomFieldChoiceSet.md b/docs/CustomFieldChoiceSet.md index 35f731d81d..2343ca7e78 100644 --- a/docs/CustomFieldChoiceSet.md +++ b/docs/CustomFieldChoiceSet.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **BaseChoices** | Pointer to [**CustomFieldChoiceSetBaseChoices**](CustomFieldChoiceSetBaseChoices.md) | | [optional] **ExtraChoices** | **[][]interface{}** | | **OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] -**ChoicesCount** | **string** | | [readonly] +**ChoicesCount** | Pointer to **string** | | [optional] [readonly] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewCustomFieldChoiceSet -`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, ) *CustomFieldChoiceSet` +`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, ) *CustomFieldChoiceSet` NewCustomFieldChoiceSet instantiates a new CustomFieldChoiceSet object This constructor will assign default values to properties that have it defined, @@ -255,6 +255,11 @@ and a boolean to check if the value has been set. SetChoicesCount sets ChoicesCount field to given value. +### HasChoicesCount + +`func (o *CustomFieldChoiceSet) HasChoicesCount() bool` + +HasChoicesCount returns a boolean if a field has been set. ### GetCreated diff --git a/docs/DataSource.md b/docs/DataSource.md index c06448dc77..fa91ee0f2b 100644 --- a/docs/DataSource.md +++ b/docs/DataSource.md @@ -21,13 +21,13 @@ Name | Type | Description | Notes **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **LastSynced** | Pointer to **NullableTime** | | [optional] [readonly] -**FileCount** | **int64** | | [readonly] +**FileCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewDataSource -`func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, fileCount int64, ) *DataSource` +`func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, ) *DataSource` NewDataSource instantiates a new DataSource object This constructor will assign default values to properties that have it defined, @@ -491,6 +491,11 @@ and a boolean to check if the value has been set. SetFileCount sets FileCount field to given value. +### HasFileCount + +`func (o *DataSource) HasFileCount() bool` + +HasFileCount 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/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md index 1cda88844f..1242afee43 100644 --- a/docs/DeviceWithConfigContext.md +++ b/docs/DeviceWithConfigContext.md @@ -46,7 +46,7 @@ Name | Type | Description | Notes **ConsoleServerPortCount** | **int32** | | [readonly] **PowerPortCount** | **int32** | | [readonly] **PowerOutletCount** | **int32** | | [readonly] -**InterfaceCount** | **int32** | | [readonly] +**InterfaceCount** | Pointer to **int32** | | [optional] [readonly] **FrontPortCount** | **int32** | | [readonly] **RearPortCount** | **int32** | | [readonly] **DeviceBayCount** | **int32** | | [readonly] @@ -57,7 +57,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContext -`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` +`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount 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, @@ -1321,6 +1321,11 @@ and a boolean to check if the value has been set. SetInterfaceCount sets InterfaceCount field to given value. +### HasInterfaceCount + +`func (o *DeviceWithConfigContext) HasInterfaceCount() bool` + +HasInterfaceCount returns a boolean if a field has been set. ### GetFrontPortCount diff --git a/docs/Group.md b/docs/Group.md index 9ca5c3a4b9..724a55fa9f 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional] -**UserCount** | **int32** | | [readonly] +**UserCount** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewGroup -`func NewGroup(id int32, url string, display string, name string, userCount int32, ) *Group` +`func NewGroup(id int32, url string, display string, name string, ) *Group` NewGroup instantiates a new Group object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetUserCount sets UserCount field to given value. +### HasUserCount + +`func (o *Group) HasUserCount() bool` + +HasUserCount 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/InventoryItemRole.md b/docs/InventoryItemRole.md index 18f666a191..41d91223b8 100644 --- a/docs/InventoryItemRole.md +++ b/docs/InventoryItemRole.md @@ -16,13 +16,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**InventoryitemCount** | **int64** | | [readonly] +**InventoryitemCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewInventoryItemRole -`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64, ) *InventoryItemRole` +`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, ) *InventoryItemRole` NewInventoryItemRole instantiates a new InventoryItemRole object This constructor will assign default values to properties that have it defined, @@ -351,6 +351,11 @@ and a boolean to check if the value has been set. SetInventoryitemCount sets InventoryitemCount field to given value. +### HasInventoryitemCount + +`func (o *InventoryItemRole) HasInventoryitemCount() bool` + +HasInventoryitemCount 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/Manufacturer.md b/docs/Manufacturer.md index e5996912ba..6ebaa17425 100644 --- a/docs/Manufacturer.md +++ b/docs/Manufacturer.md @@ -16,14 +16,14 @@ Name | Type | Description | Notes **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **DevicetypeCount** | Pointer to **int64** | | [optional] [readonly] -**InventoryitemCount** | **int64** | | [readonly] -**PlatformCount** | **int64** | | [readonly] +**InventoryitemCount** | Pointer to **int64** | | [optional] [readonly] +**PlatformCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewManufacturer -`func NewManufacturer(id int32, url string, display string, name string, slug string, inventoryitemCount int64, platformCount int64, ) *Manufacturer` +`func NewManufacturer(id int32, url string, display string, name string, slug string, ) *Manufacturer` NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, @@ -352,6 +352,11 @@ and a boolean to check if the value has been set. SetInventoryitemCount sets InventoryitemCount field to given value. +### HasInventoryitemCount + +`func (o *Manufacturer) HasInventoryitemCount() bool` + +HasInventoryitemCount returns a boolean if a field has been set. ### GetPlatformCount @@ -372,6 +377,11 @@ and a boolean to check if the value has been set. SetPlatformCount sets PlatformCount field to given value. +### HasPlatformCount + +`func (o *Manufacturer) HasPlatformCount() bool` + +HasPlatformCount 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/PowerPanel.md b/docs/PowerPanel.md index 9d45d5cecf..1a61199938 100644 --- a/docs/PowerPanel.md +++ b/docs/PowerPanel.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**PowerfeedCount** | **int64** | | [readonly] +**PowerfeedCount** | Pointer to **int64** | | [optional] [readonly] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewPowerPanel -`func NewPowerPanel(id int32, url string, display string, site BriefSite, name string, powerfeedCount int64, ) *PowerPanel` +`func NewPowerPanel(id int32, url string, display string, site BriefSite, name string, ) *PowerPanel` NewPowerPanel instantiates a new PowerPanel object This constructor will assign default values to properties that have it defined, @@ -317,6 +317,11 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. +### HasPowerfeedCount + +`func (o *PowerPanel) HasPowerfeedCount() bool` + +HasPowerfeedCount returns a boolean if a field has been set. ### GetCreated diff --git a/docs/Provider.md b/docs/Provider.md index 6ab230fe3b..98e589f3f4 100644 --- a/docs/Provider.md +++ b/docs/Provider.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**CircuitCount** | **int64** | | [readonly] +**CircuitCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewProvider -`func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Provider` +`func NewProvider(id int32, url string, display string, name string, slug string, ) *Provider` NewProvider instantiates a new Provider object This constructor will assign default values to properties that have it defined, @@ -403,6 +403,11 @@ and a boolean to check if the value has been set. SetCircuitCount sets CircuitCount field to given value. +### HasCircuitCount + +`func (o *Provider) HasCircuitCount() bool` + +HasCircuitCount 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/RIR.md b/docs/RIR.md index f47be27a28..b9e9bbd759 100644 --- a/docs/RIR.md +++ b/docs/RIR.md @@ -16,13 +16,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**AggregateCount** | **int64** | | [readonly] +**AggregateCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewRIR -`func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *RIR` +`func NewRIR(id int32, url string, display string, name string, slug string, ) *RIR` NewRIR instantiates a new RIR object This constructor will assign default values to properties that have it defined, @@ -351,6 +351,11 @@ and a boolean to check if the value has been set. SetAggregateCount sets AggregateCount field to given value. +### HasAggregateCount + +`func (o *RIR) HasAggregateCount() bool` + +HasAggregateCount 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/Rack.md b/docs/Rack.md index 9bf74f0e2a..44c1a24fc5 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -38,13 +38,13 @@ Name | Type | Description | Notes **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] -**PowerfeedCount** | **int64** | | [readonly] +**PowerfeedCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewRack -`func NewRack(id int32, url string, display string, name string, site BriefSite, powerfeedCount int64, ) *Rack` +`func NewRack(id int32, url string, display string, name string, site BriefSite, ) *Rack` NewRack instantiates a new Rack object This constructor will assign default values to properties that have it defined, @@ -1063,6 +1063,11 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. +### HasPowerfeedCount + +`func (o *Rack) HasPowerfeedCount() bool` + +HasPowerfeedCount 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/Site.md b/docs/Site.md index a64b0aaf63..f82501a813 100644 --- a/docs/Site.md +++ b/docs/Site.md @@ -27,7 +27,7 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**CircuitCount** | **int64** | | [readonly] +**CircuitCount** | Pointer to **int64** | | [optional] [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **RackCount** | Pointer to **int64** | | [optional] [readonly] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewSite -`func NewSite(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Site` +`func NewSite(id int32, url string, display string, name string, slug string, ) *Site` NewSite instantiates a new Site object This constructor will assign default values to properties that have it defined, @@ -702,6 +702,11 @@ and a boolean to check if the value has been set. SetCircuitCount sets CircuitCount field to given value. +### HasCircuitCount + +`func (o *Site) HasCircuitCount() bool` + +HasCircuitCount returns a boolean if a field has been set. ### GetDeviceCount diff --git a/docs/Tenant.md b/docs/Tenant.md index 316676b297..cf7afef339 100644 --- a/docs/Tenant.md +++ b/docs/Tenant.md @@ -17,9 +17,9 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**CircuitCount** | **int64** | | [readonly] +**CircuitCount** | Pointer to **int64** | | [optional] [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] -**IpaddressCount** | **int64** | | [readonly] +**IpaddressCount** | Pointer to **int64** | | [optional] [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **RackCount** | Pointer to **int64** | | [optional] [readonly] **SiteCount** | Pointer to **int64** | | [optional] [readonly] @@ -32,7 +32,7 @@ Name | Type | Description | Notes ### NewTenant -`func NewTenant(id int32, url string, display string, name string, slug string, circuitCount int64, ipaddressCount int64, ) *Tenant` +`func NewTenant(id int32, url string, display string, name string, slug string, ) *Tenant` NewTenant instantiates a new Tenant object This constructor will assign default values to properties that have it defined, @@ -396,6 +396,11 @@ and a boolean to check if the value has been set. SetCircuitCount sets CircuitCount field to given value. +### HasCircuitCount + +`func (o *Tenant) HasCircuitCount() bool` + +HasCircuitCount returns a boolean if a field has been set. ### GetDeviceCount @@ -441,6 +446,11 @@ and a boolean to check if the value has been set. SetIpaddressCount sets IpaddressCount field to given value. +### HasIpaddressCount + +`func (o *Tenant) HasIpaddressCount() bool` + +HasIpaddressCount returns a boolean if a field has been set. ### GetPrefixCount diff --git a/docs/TenantGroup.md b/docs/TenantGroup.md index 9ea3410b9c..1090922994 100644 --- a/docs/TenantGroup.md +++ b/docs/TenantGroup.md @@ -16,14 +16,14 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**TenantCount** | **int32** | | [readonly] [default to 0] +**TenantCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewTenantGroup -`func NewTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32, ) *TenantGroup` +`func NewTenantGroup(id int32, url string, display string, name string, slug string, depth int32, ) *TenantGroup` NewTenantGroup instantiates a new TenantGroup object This constructor will assign default values to properties that have it defined, @@ -362,6 +362,11 @@ and a boolean to check if the value has been set. SetTenantCount sets TenantCount field to given value. +### HasTenantCount + +`func (o *TenantGroup) HasTenantCount() bool` + +HasTenantCount returns a boolean if a field has been set. ### GetDepth diff --git a/docs/Tunnel.md b/docs/Tunnel.md index f997836b44..a2b43c69db 100644 --- a/docs/Tunnel.md +++ b/docs/Tunnel.md @@ -21,13 +21,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**TerminationsCount** | **int64** | | [readonly] +**TerminationsCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewTunnel -`func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, terminationsCount int64, ) *Tunnel` +`func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, ) *Tunnel` NewTunnel instantiates a new Tunnel object This constructor will assign default values to properties that have it defined, @@ -516,6 +516,11 @@ and a boolean to check if the value has been set. SetTerminationsCount sets TerminationsCount field to given value. +### HasTerminationsCount + +`func (o *Tunnel) HasTerminationsCount() bool` + +HasTerminationsCount 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/TunnelGroup.md b/docs/TunnelGroup.md index 8fd44c234e..b7d49557b5 100644 --- a/docs/TunnelGroup.md +++ b/docs/TunnelGroup.md @@ -15,13 +15,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**TunnelCount** | **int64** | | [readonly] +**TunnelCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewTunnelGroup -`func NewTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64, ) *TunnelGroup` +`func NewTunnelGroup(id int32, url string, display string, name string, slug string, ) *TunnelGroup` NewTunnelGroup instantiates a new TunnelGroup object This constructor will assign default values to properties that have it defined, @@ -325,6 +325,11 @@ and a boolean to check if the value has been set. SetTunnelCount sets TunnelCount field to given value. +### HasTunnelCount + +`func (o *TunnelGroup) HasTunnelCount() bool` + +HasTunnelCount 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/VRF.md b/docs/VRF.md index 511acc6fa8..bd659eaa61 100644 --- a/docs/VRF.md +++ b/docs/VRF.md @@ -20,14 +20,14 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**IpaddressCount** | **int64** | | [readonly] +**IpaddressCount** | Pointer to **int64** | | [optional] [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVRF -`func NewVRF(id int32, url string, display string, name string, ipaddressCount int64, ) *VRF` +`func NewVRF(id int32, url string, display string, name string, ) *VRF` NewVRF instantiates a new VRF object This constructor will assign default values to properties that have it defined, @@ -481,6 +481,11 @@ and a boolean to check if the value has been set. SetIpaddressCount sets IpaddressCount field to given value. +### HasIpaddressCount + +`func (o *VRF) HasIpaddressCount() bool` + +HasIpaddressCount returns a boolean if a field has been set. ### GetPrefixCount diff --git a/docs/VirtualChassis.md b/docs/VirtualChassis.md index c00d0aa520..d453277ac4 100644 --- a/docs/VirtualChassis.md +++ b/docs/VirtualChassis.md @@ -17,14 +17,14 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**MemberCount** | **int32** | | [readonly] +**MemberCount** | Pointer to **int32** | | [optional] [readonly] **Members** | [**[]NestedDevice**](NestedDevice.md) | | [readonly] ## Methods ### NewVirtualChassis -`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, members []NestedDevice, ) *VirtualChassis` +`func NewVirtualChassis(id int32, url string, display string, name string, members []NestedDevice, ) *VirtualChassis` NewVirtualChassis instantiates a new VirtualChassis object This constructor will assign default values to properties that have it defined, @@ -393,6 +393,11 @@ and a boolean to check if the value has been set. SetMemberCount sets MemberCount field to given value. +### HasMemberCount + +`func (o *VirtualChassis) HasMemberCount() bool` + +HasMemberCount returns a boolean if a field has been set. ### GetMembers diff --git a/docs/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md index a162de8160..fb08be78ee 100644 --- a/docs/VirtualDeviceContext.md +++ b/docs/VirtualDeviceContext.md @@ -22,13 +22,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**InterfaceCount** | **int64** | | [readonly] +**InterfaceCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVirtualDeviceContext -`func NewVirtualDeviceContext(id int32, url string, display string, name string, device BriefDevice, status VirtualDeviceContextStatus, interfaceCount int64, ) *VirtualDeviceContext` +`func NewVirtualDeviceContext(id int32, url string, display string, name string, device BriefDevice, status VirtualDeviceContextStatus, ) *VirtualDeviceContext` NewVirtualDeviceContext instantiates a new VirtualDeviceContext object This constructor will assign default values to properties that have it defined, @@ -552,6 +552,11 @@ and a boolean to check if the value has been set. SetInterfaceCount sets InterfaceCount field to given value. +### HasInterfaceCount + +`func (o *VirtualDeviceContext) HasInterfaceCount() bool` + +HasInterfaceCount 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 1a1742802b..cf86d59600 100644 --- a/docs/VirtualMachineWithConfigContext.md +++ b/docs/VirtualMachineWithConfigContext.md @@ -32,14 +32,14 @@ Name | Type | Description | Notes **ConfigContext** | Pointer to **interface{}** | | [optional] [readonly] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**InterfaceCount** | **int32** | | [readonly] +**InterfaceCount** | Pointer to **int32** | | [optional] [readonly] **VirtualDiskCount** | **int32** | | [readonly] ## Methods ### NewVirtualMachineWithConfigContext -`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` +`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -923,6 +923,11 @@ and a boolean to check if the value has been set. SetInterfaceCount sets InterfaceCount field to given value. +### HasInterfaceCount + +`func (o *VirtualMachineWithConfigContext) HasInterfaceCount() bool` + +HasInterfaceCount returns a boolean if a field has been set. ### GetVirtualDiskCount diff --git a/docs/WirelessLANGroup.md b/docs/WirelessLANGroup.md index b99e6ec527..e182b67889 100644 --- a/docs/WirelessLANGroup.md +++ b/docs/WirelessLANGroup.md @@ -16,14 +16,14 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] -**WirelesslanCount** | **int32** | | [readonly] [default to 0] +**WirelesslanCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewWirelessLANGroup -`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` +`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32, ) *WirelessLANGroup` NewWirelessLANGroup instantiates a new WirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -362,6 +362,11 @@ and a boolean to check if the value has been set. SetWirelesslanCount sets WirelesslanCount field to given value. +### HasWirelesslanCount + +`func (o *WirelessLANGroup) HasWirelesslanCount() bool` + +HasWirelesslanCount returns a boolean if a field has been set. ### GetDepth diff --git a/go.mod b/go.mod index 58cd929818..001b46f88a 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,11 @@ module github.com/netbox-community/go-netbox/v4 go 1.18 + +require github.com/stretchr/testify v1.10.0 + +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 e69de29bb2..713a0b4f0a 100644 --- a/go.sum +++ b/go.sum @@ -0,0 +1,10 @@ +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.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +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= diff --git a/model_asn_range.go b/model_asn_range.go index 476ccda3fe..0a80a07b68 100644 --- a/model_asn_range.go +++ b/model_asn_range.go @@ -36,7 +36,7 @@ type ASNRange struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - AsnCount int32 `json:"asn_count"` + AsnCount *int32 `json:"asn_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,7 +46,7 @@ type _ASNRange ASNRange // 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 NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, asnCount int32) *ASNRange { +func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64) *ASNRange { this := ASNRange{} this.Id = id this.Url = url @@ -56,7 +56,6 @@ func NewASNRange(id int32, url string, display string, name string, slug string, this.Rir = rir this.Start = start this.End = end - this.AsnCount = asnCount return &this } @@ -522,30 +521,37 @@ func (o *ASNRange) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetAsnCount returns the AsnCount field value +// GetAsnCount returns the AsnCount field value if set, zero value otherwise. func (o *ASNRange) GetAsnCount() int32 { - if o == nil { + if o == nil || IsNil(o.AsnCount) { var ret int32 return ret } - - return o.AsnCount + return *o.AsnCount } -// GetAsnCountOk returns a tuple with the AsnCount field value +// GetAsnCountOk returns a tuple with the AsnCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ASNRange) GetAsnCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.AsnCount) { return nil, false } - return &o.AsnCount, true + return o.AsnCount, true } -// SetAsnCount sets field value -func (o *ASNRange) SetAsnCount(v int32) { - o.AsnCount = v +// HasAsnCount returns a boolean if a field has been set. +func (o *ASNRange) HasAsnCount() bool { + if o != nil && !IsNil(o.AsnCount) { + return true + } + + return false } +// SetAsnCount gets a reference to the given int32 and assigns it to the AsnCount field. +func (o *ASNRange) SetAsnCount(v int32) { + o.AsnCount = &v +} func (o ASNRange) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -586,7 +592,9 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["asn_count"] = o.AsnCount + if !IsNil(o.AsnCount) { + toSerialize["asn_count"] = o.AsnCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -608,7 +616,6 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { "rir", "start", "end", - "asn_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_circuit_type.go b/model_brief_circuit_type.go index bed11756eb..b4910e1370 100644 --- a/model_brief_circuit_type.go +++ b/model_brief_circuit_type.go @@ -26,7 +26,7 @@ type BriefCircuitType struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + CircuitCount *int64 `json:"circuit_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,14 +36,13 @@ type _BriefCircuitType BriefCircuitType // 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 NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefCircuitType { +func NewBriefCircuitType(id int32, url string, display string, name string, slug string) *BriefCircuitType { this := BriefCircuitType{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.CircuitCount = circuitCount return &this } @@ -212,30 +211,37 @@ func (o *BriefCircuitType) SetDescription(v string) { o.Description = &v } -// GetCircuitCount returns the CircuitCount field value +// GetCircuitCount returns the CircuitCount field value if set, zero value otherwise. func (o *BriefCircuitType) GetCircuitCount() int64 { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { var ret int64 return ret } - - return o.CircuitCount + return *o.CircuitCount } -// GetCircuitCountOk returns a tuple with the CircuitCount field value +// GetCircuitCountOk returns a tuple with the CircuitCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefCircuitType) GetCircuitCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { return nil, false } - return &o.CircuitCount, true + return o.CircuitCount, true } -// SetCircuitCount sets field value -func (o *BriefCircuitType) SetCircuitCount(v int64) { - o.CircuitCount = v +// HasCircuitCount returns a boolean if a field has been set. +func (o *BriefCircuitType) HasCircuitCount() bool { + if o != nil && !IsNil(o.CircuitCount) { + return true + } + + return false } +// SetCircuitCount gets a reference to the given int64 and assigns it to the CircuitCount field. +func (o *BriefCircuitType) SetCircuitCount(v int64) { + o.CircuitCount = &v +} func (o BriefCircuitType) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -255,7 +261,9 @@ func (o BriefCircuitType) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.CircuitCount) { + toSerialize["circuit_count"] = o.CircuitCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -274,7 +282,6 @@ func (o *BriefCircuitType) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "circuit_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_contact_group.go b/model_brief_contact_group.go index 141e240e90..102964e42b 100644 --- a/model_brief_contact_group.go +++ b/model_brief_contact_group.go @@ -26,7 +26,7 @@ type BriefContactGroup struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - ContactCount int32 `json:"contact_count"` + ContactCount *int32 `json:"contact_count,omitempty"` Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,14 +37,13 @@ type _BriefContactGroup BriefContactGroup // 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 NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32) *BriefContactGroup { +func NewBriefContactGroup(id int32, url string, display string, name string, slug string, depth int32) *BriefContactGroup { this := BriefContactGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.ContactCount = contactCount this.Depth = depth return &this } @@ -214,30 +213,37 @@ func (o *BriefContactGroup) SetDescription(v string) { o.Description = &v } -// GetContactCount returns the ContactCount field value +// GetContactCount returns the ContactCount field value if set, zero value otherwise. func (o *BriefContactGroup) GetContactCount() int32 { - if o == nil { + if o == nil || IsNil(o.ContactCount) { var ret int32 return ret } - - return o.ContactCount + return *o.ContactCount } -// GetContactCountOk returns a tuple with the ContactCount field value +// GetContactCountOk returns a tuple with the ContactCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefContactGroup) GetContactCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ContactCount) { return nil, false } - return &o.ContactCount, true + return o.ContactCount, true } -// SetContactCount sets field value -func (o *BriefContactGroup) SetContactCount(v int32) { - o.ContactCount = v +// HasContactCount returns a boolean if a field has been set. +func (o *BriefContactGroup) HasContactCount() bool { + if o != nil && !IsNil(o.ContactCount) { + return true + } + + return false } +// SetContactCount gets a reference to the given int32 and assigns it to the ContactCount field. +func (o *BriefContactGroup) SetContactCount(v int32) { + o.ContactCount = &v +} // GetDepth returns the Depth field value func (o *BriefContactGroup) GetDepth() int32 { @@ -282,7 +288,9 @@ func (o BriefContactGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["contact_count"] = o.ContactCount + if !IsNil(o.ContactCount) { + toSerialize["contact_count"] = o.ContactCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -302,7 +310,6 @@ func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "contact_count", "_depth", } diff --git a/model_brief_custom_field_choice_set.go b/model_brief_custom_field_choice_set.go index 58c058d9b2..c517443b8f 100644 --- a/model_brief_custom_field_choice_set.go +++ b/model_brief_custom_field_choice_set.go @@ -25,7 +25,7 @@ type BriefCustomFieldChoiceSet struct { Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` - ChoicesCount string `json:"choices_count"` + ChoicesCount *string `json:"choices_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,13 +35,12 @@ type _BriefCustomFieldChoiceSet BriefCustomFieldChoiceSet // 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 NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string) *BriefCustomFieldChoiceSet { +func NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string) *BriefCustomFieldChoiceSet { this := BriefCustomFieldChoiceSet{} this.Id = id this.Url = url this.Display = display this.Name = name - this.ChoicesCount = choicesCount return &this } @@ -185,30 +184,37 @@ func (o *BriefCustomFieldChoiceSet) SetDescription(v string) { o.Description = &v } -// GetChoicesCount returns the ChoicesCount field value +// GetChoicesCount returns the ChoicesCount field value if set, zero value otherwise. func (o *BriefCustomFieldChoiceSet) GetChoicesCount() string { - if o == nil { + if o == nil || IsNil(o.ChoicesCount) { var ret string return ret } - - return o.ChoicesCount + return *o.ChoicesCount } -// GetChoicesCountOk returns a tuple with the ChoicesCount field value +// GetChoicesCountOk returns a tuple with the ChoicesCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.ChoicesCount) { return nil, false } - return &o.ChoicesCount, true + return o.ChoicesCount, true } -// SetChoicesCount sets field value -func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string) { - o.ChoicesCount = v +// HasChoicesCount returns a boolean if a field has been set. +func (o *BriefCustomFieldChoiceSet) HasChoicesCount() bool { + if o != nil && !IsNil(o.ChoicesCount) { + return true + } + + return false } +// SetChoicesCount gets a reference to the given string and assigns it to the ChoicesCount field. +func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string) { + o.ChoicesCount = &v +} func (o BriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -227,7 +233,9 @@ func (o BriefCustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["choices_count"] = o.ChoicesCount + if !IsNil(o.ChoicesCount) { + toSerialize["choices_count"] = o.ChoicesCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -245,7 +253,6 @@ func (o *BriefCustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "choices_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_inventory_item_role.go b/model_brief_inventory_item_role.go index d0ba5f6456..83e6c720b4 100644 --- a/model_brief_inventory_item_role.go +++ b/model_brief_inventory_item_role.go @@ -26,7 +26,7 @@ type BriefInventoryItemRole struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - InventoryitemCount int64 `json:"inventoryitem_count"` + InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,14 +36,13 @@ type _BriefInventoryItemRole BriefInventoryItemRole // 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 NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64) *BriefInventoryItemRole { +func NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string) *BriefInventoryItemRole { this := BriefInventoryItemRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.InventoryitemCount = inventoryitemCount return &this } @@ -212,30 +211,37 @@ func (o *BriefInventoryItemRole) SetDescription(v string) { o.Description = &v } -// GetInventoryitemCount returns the InventoryitemCount field value +// GetInventoryitemCount returns the InventoryitemCount field value if set, zero value otherwise. func (o *BriefInventoryItemRole) GetInventoryitemCount() int64 { - if o == nil { + if o == nil || IsNil(o.InventoryitemCount) { var ret int64 return ret } - - return o.InventoryitemCount + return *o.InventoryitemCount } -// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefInventoryItemRole) GetInventoryitemCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.InventoryitemCount) { return nil, false } - return &o.InventoryitemCount, true + return o.InventoryitemCount, true } -// SetInventoryitemCount sets field value -func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64) { - o.InventoryitemCount = v +// HasInventoryitemCount returns a boolean if a field has been set. +func (o *BriefInventoryItemRole) HasInventoryitemCount() bool { + if o != nil && !IsNil(o.InventoryitemCount) { + return true + } + + return false } +// SetInventoryitemCount gets a reference to the given int64 and assigns it to the InventoryitemCount field. +func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64) { + o.InventoryitemCount = &v +} func (o BriefInventoryItemRole) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -255,7 +261,9 @@ func (o BriefInventoryItemRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["inventoryitem_count"] = o.InventoryitemCount + if !IsNil(o.InventoryitemCount) { + toSerialize["inventoryitem_count"] = o.InventoryitemCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -274,7 +282,6 @@ func (o *BriefInventoryItemRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "inventoryitem_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_power_panel.go b/model_brief_power_panel.go index 61bf536187..1ec5ee2719 100644 --- a/model_brief_power_panel.go +++ b/model_brief_power_panel.go @@ -25,7 +25,7 @@ type BriefPowerPanel struct { Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + PowerfeedCount *int64 `json:"powerfeed_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,13 +35,12 @@ type _BriefPowerPanel BriefPowerPanel // 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 NewBriefPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *BriefPowerPanel { +func NewBriefPowerPanel(id int32, url string, display string, name string) *BriefPowerPanel { this := BriefPowerPanel{} this.Id = id this.Url = url this.Display = display this.Name = name - this.PowerfeedCount = powerfeedCount return &this } @@ -185,30 +184,37 @@ func (o *BriefPowerPanel) SetDescription(v string) { o.Description = &v } -// GetPowerfeedCount returns the PowerfeedCount field value +// GetPowerfeedCount returns the PowerfeedCount field value if set, zero value otherwise. func (o *BriefPowerPanel) GetPowerfeedCount() int64 { - if o == nil { + if o == nil || IsNil(o.PowerfeedCount) { var ret int64 return ret } - - return o.PowerfeedCount + return *o.PowerfeedCount } -// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefPowerPanel) GetPowerfeedCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.PowerfeedCount) { return nil, false } - return &o.PowerfeedCount, true + return o.PowerfeedCount, true } -// SetPowerfeedCount sets field value -func (o *BriefPowerPanel) SetPowerfeedCount(v int64) { - o.PowerfeedCount = v +// HasPowerfeedCount returns a boolean if a field has been set. +func (o *BriefPowerPanel) HasPowerfeedCount() bool { + if o != nil && !IsNil(o.PowerfeedCount) { + return true + } + + return false } +// SetPowerfeedCount gets a reference to the given int64 and assigns it to the PowerfeedCount field. +func (o *BriefPowerPanel) SetPowerfeedCount(v int64) { + o.PowerfeedCount = &v +} func (o BriefPowerPanel) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -227,7 +233,9 @@ func (o BriefPowerPanel) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["powerfeed_count"] = o.PowerfeedCount + if !IsNil(o.PowerfeedCount) { + toSerialize["powerfeed_count"] = o.PowerfeedCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -245,7 +253,6 @@ func (o *BriefPowerPanel) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "powerfeed_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_provider.go b/model_brief_provider.go index c8ed64d311..9962748431 100644 --- a/model_brief_provider.go +++ b/model_brief_provider.go @@ -27,7 +27,7 @@ type BriefProvider struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + CircuitCount *int64 `json:"circuit_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,14 +37,13 @@ type _BriefProvider BriefProvider // 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 NewBriefProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefProvider { +func NewBriefProvider(id int32, url string, display string, name string, slug string) *BriefProvider { this := BriefProvider{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.CircuitCount = circuitCount return &this } @@ -213,30 +212,37 @@ func (o *BriefProvider) SetDescription(v string) { o.Description = &v } -// GetCircuitCount returns the CircuitCount field value +// GetCircuitCount returns the CircuitCount field value if set, zero value otherwise. func (o *BriefProvider) GetCircuitCount() int64 { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { var ret int64 return ret } - - return o.CircuitCount + return *o.CircuitCount } -// GetCircuitCountOk returns a tuple with the CircuitCount field value +// GetCircuitCountOk returns a tuple with the CircuitCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefProvider) GetCircuitCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { return nil, false } - return &o.CircuitCount, true + return o.CircuitCount, true } -// SetCircuitCount sets field value -func (o *BriefProvider) SetCircuitCount(v int64) { - o.CircuitCount = v +// HasCircuitCount returns a boolean if a field has been set. +func (o *BriefProvider) HasCircuitCount() bool { + if o != nil && !IsNil(o.CircuitCount) { + return true + } + + return false } +// SetCircuitCount gets a reference to the given int64 and assigns it to the CircuitCount field. +func (o *BriefProvider) SetCircuitCount(v int64) { + o.CircuitCount = &v +} func (o BriefProvider) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -256,7 +262,9 @@ func (o BriefProvider) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.CircuitCount) { + toSerialize["circuit_count"] = o.CircuitCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -275,7 +283,6 @@ func (o *BriefProvider) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "circuit_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_rir.go b/model_brief_rir.go index 5482953fbe..bdf0235b59 100644 --- a/model_brief_rir.go +++ b/model_brief_rir.go @@ -26,7 +26,7 @@ type BriefRIR struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - AggregateCount int64 `json:"aggregate_count"` + AggregateCount *int64 `json:"aggregate_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,14 +36,13 @@ type _BriefRIR BriefRIR // 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 NewBriefRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *BriefRIR { +func NewBriefRIR(id int32, url string, display string, name string, slug string) *BriefRIR { this := BriefRIR{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.AggregateCount = aggregateCount return &this } @@ -212,30 +211,37 @@ func (o *BriefRIR) SetDescription(v string) { o.Description = &v } -// GetAggregateCount returns the AggregateCount field value +// GetAggregateCount returns the AggregateCount field value if set, zero value otherwise. func (o *BriefRIR) GetAggregateCount() int64 { - if o == nil { + if o == nil || IsNil(o.AggregateCount) { var ret int64 return ret } - - return o.AggregateCount + return *o.AggregateCount } -// GetAggregateCountOk returns a tuple with the AggregateCount field value +// GetAggregateCountOk returns a tuple with the AggregateCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefRIR) GetAggregateCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.AggregateCount) { return nil, false } - return &o.AggregateCount, true + return o.AggregateCount, true } -// SetAggregateCount sets field value -func (o *BriefRIR) SetAggregateCount(v int64) { - o.AggregateCount = v +// HasAggregateCount returns a boolean if a field has been set. +func (o *BriefRIR) HasAggregateCount() bool { + if o != nil && !IsNil(o.AggregateCount) { + return true + } + + return false } +// SetAggregateCount gets a reference to the given int64 and assigns it to the AggregateCount field. +func (o *BriefRIR) SetAggregateCount(v int64) { + o.AggregateCount = &v +} func (o BriefRIR) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -255,7 +261,9 @@ func (o BriefRIR) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["aggregate_count"] = o.AggregateCount + if !IsNil(o.AggregateCount) { + toSerialize["aggregate_count"] = o.AggregateCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -274,7 +282,6 @@ func (o *BriefRIR) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "aggregate_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_tenant_group.go b/model_brief_tenant_group.go index 9881b5da28..08f4c3820c 100644 --- a/model_brief_tenant_group.go +++ b/model_brief_tenant_group.go @@ -26,7 +26,7 @@ type BriefTenantGroup struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - TenantCount int32 `json:"tenant_count"` + TenantCount *int32 `json:"tenant_count,omitempty"` Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,14 +37,13 @@ type _BriefTenantGroup BriefTenantGroup // 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 NewBriefTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32) *BriefTenantGroup { +func NewBriefTenantGroup(id int32, url string, display string, name string, slug string, depth int32) *BriefTenantGroup { this := BriefTenantGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.TenantCount = tenantCount this.Depth = depth return &this } @@ -214,30 +213,37 @@ func (o *BriefTenantGroup) SetDescription(v string) { o.Description = &v } -// GetTenantCount returns the TenantCount field value +// GetTenantCount returns the TenantCount field value if set, zero value otherwise. func (o *BriefTenantGroup) GetTenantCount() int32 { - if o == nil { + if o == nil || IsNil(o.TenantCount) { var ret int32 return ret } - - return o.TenantCount + return *o.TenantCount } -// GetTenantCountOk returns a tuple with the TenantCount field value +// GetTenantCountOk returns a tuple with the TenantCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefTenantGroup) GetTenantCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.TenantCount) { return nil, false } - return &o.TenantCount, true + return o.TenantCount, true } -// SetTenantCount sets field value -func (o *BriefTenantGroup) SetTenantCount(v int32) { - o.TenantCount = v +// HasTenantCount returns a boolean if a field has been set. +func (o *BriefTenantGroup) HasTenantCount() bool { + if o != nil && !IsNil(o.TenantCount) { + return true + } + + return false } +// SetTenantCount gets a reference to the given int32 and assigns it to the TenantCount field. +func (o *BriefTenantGroup) SetTenantCount(v int32) { + o.TenantCount = &v +} // GetDepth returns the Depth field value func (o *BriefTenantGroup) GetDepth() int32 { @@ -282,7 +288,9 @@ func (o BriefTenantGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["tenant_count"] = o.TenantCount + if !IsNil(o.TenantCount) { + toSerialize["tenant_count"] = o.TenantCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -302,7 +310,6 @@ func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "tenant_count", "_depth", } diff --git a/model_brief_tunnel_group.go b/model_brief_tunnel_group.go index afc99d538e..978ed723a6 100644 --- a/model_brief_tunnel_group.go +++ b/model_brief_tunnel_group.go @@ -26,7 +26,7 @@ type BriefTunnelGroup struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - TunnelCount int64 `json:"tunnel_count"` + TunnelCount *int64 `json:"tunnel_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,14 +36,13 @@ type _BriefTunnelGroup BriefTunnelGroup // 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 NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64) *BriefTunnelGroup { +func NewBriefTunnelGroup(id int32, url string, display string, name string, slug string) *BriefTunnelGroup { this := BriefTunnelGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.TunnelCount = tunnelCount return &this } @@ -212,30 +211,37 @@ func (o *BriefTunnelGroup) SetDescription(v string) { o.Description = &v } -// GetTunnelCount returns the TunnelCount field value +// GetTunnelCount returns the TunnelCount field value if set, zero value otherwise. func (o *BriefTunnelGroup) GetTunnelCount() int64 { - if o == nil { + if o == nil || IsNil(o.TunnelCount) { var ret int64 return ret } - - return o.TunnelCount + return *o.TunnelCount } -// GetTunnelCountOk returns a tuple with the TunnelCount field value +// GetTunnelCountOk returns a tuple with the TunnelCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefTunnelGroup) GetTunnelCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.TunnelCount) { return nil, false } - return &o.TunnelCount, true + return o.TunnelCount, true } -// SetTunnelCount sets field value -func (o *BriefTunnelGroup) SetTunnelCount(v int64) { - o.TunnelCount = v +// HasTunnelCount returns a boolean if a field has been set. +func (o *BriefTunnelGroup) HasTunnelCount() bool { + if o != nil && !IsNil(o.TunnelCount) { + return true + } + + return false } +// SetTunnelCount gets a reference to the given int64 and assigns it to the TunnelCount field. +func (o *BriefTunnelGroup) SetTunnelCount(v int64) { + o.TunnelCount = &v +} func (o BriefTunnelGroup) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -255,7 +261,9 @@ func (o BriefTunnelGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["tunnel_count"] = o.TunnelCount + if !IsNil(o.TunnelCount) { + toSerialize["tunnel_count"] = o.TunnelCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -274,7 +282,6 @@ func (o *BriefTunnelGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "tunnel_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_virtual_chassis.go b/model_brief_virtual_chassis.go index dc8a110d45..0b05a00c7e 100644 --- a/model_brief_virtual_chassis.go +++ b/model_brief_virtual_chassis.go @@ -26,7 +26,7 @@ type BriefVirtualChassis struct { Name string `json:"name"` Master NullableNestedDevice `json:"master,omitempty"` Description *string `json:"description,omitempty"` - MemberCount int32 `json:"member_count"` + MemberCount *int32 `json:"member_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _BriefVirtualChassis BriefVirtualChassis // 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 NewBriefVirtualChassis(id int32, url string, display string, name string, memberCount int32) *BriefVirtualChassis { +func NewBriefVirtualChassis(id int32, url string, display string, name string) *BriefVirtualChassis { this := BriefVirtualChassis{} this.Id = id this.Url = url this.Display = display this.Name = name - this.MemberCount = memberCount return &this } @@ -228,30 +227,37 @@ func (o *BriefVirtualChassis) SetDescription(v string) { o.Description = &v } -// GetMemberCount returns the MemberCount field value +// GetMemberCount returns the MemberCount field value if set, zero value otherwise. func (o *BriefVirtualChassis) GetMemberCount() int32 { - if o == nil { + if o == nil || IsNil(o.MemberCount) { var ret int32 return ret } - - return o.MemberCount + return *o.MemberCount } -// GetMemberCountOk returns a tuple with the MemberCount field value +// GetMemberCountOk returns a tuple with the MemberCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefVirtualChassis) GetMemberCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.MemberCount) { return nil, false } - return &o.MemberCount, true + return o.MemberCount, true } -// SetMemberCount sets field value -func (o *BriefVirtualChassis) SetMemberCount(v int32) { - o.MemberCount = v +// HasMemberCount returns a boolean if a field has been set. +func (o *BriefVirtualChassis) HasMemberCount() bool { + if o != nil && !IsNil(o.MemberCount) { + return true + } + + return false } +// SetMemberCount gets a reference to the given int32 and assigns it to the MemberCount field. +func (o *BriefVirtualChassis) SetMemberCount(v int32) { + o.MemberCount = &v +} func (o BriefVirtualChassis) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -273,7 +279,9 @@ func (o BriefVirtualChassis) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["member_count"] = o.MemberCount + if !IsNil(o.MemberCount) { + toSerialize["member_count"] = o.MemberCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -291,7 +299,6 @@ func (o *BriefVirtualChassis) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "member_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_brief_wireless_lan_group.go b/model_brief_wireless_lan_group.go index dfc06b666b..be9ecd9496 100644 --- a/model_brief_wireless_lan_group.go +++ b/model_brief_wireless_lan_group.go @@ -26,7 +26,7 @@ type BriefWirelessLANGroup struct { Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` - WirelesslanCount int32 `json:"wirelesslan_count"` + WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"` Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,14 +37,13 @@ type _BriefWirelessLANGroup BriefWirelessLANGroup // 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 NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *BriefWirelessLANGroup { +func NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32) *BriefWirelessLANGroup { this := BriefWirelessLANGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.WirelesslanCount = wirelesslanCount this.Depth = depth return &this } @@ -214,30 +213,37 @@ func (o *BriefWirelessLANGroup) SetDescription(v string) { o.Description = &v } -// GetWirelesslanCount returns the WirelesslanCount field value +// GetWirelesslanCount returns the WirelesslanCount field value if set, zero value otherwise. func (o *BriefWirelessLANGroup) GetWirelesslanCount() int32 { - if o == nil { + if o == nil || IsNil(o.WirelesslanCount) { var ret int32 return ret } - - return o.WirelesslanCount + return *o.WirelesslanCount } -// GetWirelesslanCountOk returns a tuple with the WirelesslanCount field value +// GetWirelesslanCountOk returns a tuple with the WirelesslanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefWirelessLANGroup) GetWirelesslanCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.WirelesslanCount) { return nil, false } - return &o.WirelesslanCount, true + return o.WirelesslanCount, true } -// SetWirelesslanCount sets field value -func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32) { - o.WirelesslanCount = v +// HasWirelesslanCount returns a boolean if a field has been set. +func (o *BriefWirelessLANGroup) HasWirelesslanCount() bool { + if o != nil && !IsNil(o.WirelesslanCount) { + return true + } + + return false } +// SetWirelesslanCount gets a reference to the given int32 and assigns it to the WirelesslanCount field. +func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32) { + o.WirelesslanCount = &v +} // GetDepth returns the Depth field value func (o *BriefWirelessLANGroup) GetDepth() int32 { @@ -282,7 +288,9 @@ func (o BriefWirelessLANGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["wirelesslan_count"] = o.WirelesslanCount + if !IsNil(o.WirelesslanCount) { + toSerialize["wirelesslan_count"] = o.WirelesslanCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -302,7 +310,6 @@ func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "wirelesslan_count", "_depth", } diff --git a/model_circuit_group.go b/model_circuit_group.go index 882d5380a3..6c0a197c14 100644 --- a/model_circuit_group.go +++ b/model_circuit_group.go @@ -33,7 +33,7 @@ type CircuitGroup struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - CircuitCount int64 `json:"circuit_count"` + CircuitCount *int64 `json:"circuit_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,14 +43,13 @@ type _CircuitGroup CircuitGroup // 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 NewCircuitGroup(id int32, url string, display string, name string, slug string, circuitCount int64) *CircuitGroup { +func NewCircuitGroup(id int32, url string, display string, name string, slug string) *CircuitGroup { this := CircuitGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.CircuitCount = circuitCount return &this } @@ -441,30 +440,37 @@ func (o *CircuitGroup) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetCircuitCount returns the CircuitCount field value +// GetCircuitCount returns the CircuitCount field value if set, zero value otherwise. func (o *CircuitGroup) GetCircuitCount() int64 { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { var ret int64 return ret } - - return o.CircuitCount + return *o.CircuitCount } -// GetCircuitCountOk returns a tuple with the CircuitCount field value +// GetCircuitCountOk returns a tuple with the CircuitCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CircuitGroup) GetCircuitCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { return nil, false } - return &o.CircuitCount, true + return o.CircuitCount, true } -// SetCircuitCount sets field value -func (o *CircuitGroup) SetCircuitCount(v int64) { - o.CircuitCount = v +// HasCircuitCount returns a boolean if a field has been set. +func (o *CircuitGroup) HasCircuitCount() bool { + if o != nil && !IsNil(o.CircuitCount) { + return true + } + + return false } +// SetCircuitCount gets a reference to the given int64 and assigns it to the CircuitCount field. +func (o *CircuitGroup) SetCircuitCount(v int64) { + o.CircuitCount = &v +} func (o CircuitGroup) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -502,7 +508,9 @@ func (o CircuitGroup) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.CircuitCount) { + toSerialize["circuit_count"] = o.CircuitCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -521,7 +529,6 @@ func (o *CircuitGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "circuit_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_circuit_type.go b/model_circuit_type.go index 90d0ee8e21..20d45ffbb5 100644 --- a/model_circuit_type.go +++ b/model_circuit_type.go @@ -33,7 +33,7 @@ type CircuitType struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - CircuitCount int64 `json:"circuit_count"` + CircuitCount *int64 `json:"circuit_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,14 +43,13 @@ type _CircuitType CircuitType // 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 NewCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64) *CircuitType { +func NewCircuitType(id int32, url string, display string, name string, slug string) *CircuitType { this := CircuitType{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.CircuitCount = circuitCount return &this } @@ -431,30 +430,37 @@ func (o *CircuitType) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetCircuitCount returns the CircuitCount field value +// GetCircuitCount returns the CircuitCount field value if set, zero value otherwise. func (o *CircuitType) GetCircuitCount() int64 { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { var ret int64 return ret } - - return o.CircuitCount + return *o.CircuitCount } -// GetCircuitCountOk returns a tuple with the CircuitCount field value +// GetCircuitCountOk returns a tuple with the CircuitCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CircuitType) GetCircuitCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { return nil, false } - return &o.CircuitCount, true + return o.CircuitCount, true } -// SetCircuitCount sets field value -func (o *CircuitType) SetCircuitCount(v int64) { - o.CircuitCount = v +// HasCircuitCount returns a boolean if a field has been set. +func (o *CircuitType) HasCircuitCount() bool { + if o != nil && !IsNil(o.CircuitCount) { + return true + } + + return false } +// SetCircuitCount gets a reference to the given int64 and assigns it to the CircuitCount field. +func (o *CircuitType) SetCircuitCount(v int64) { + o.CircuitCount = &v +} func (o CircuitType) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -492,7 +498,9 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.CircuitCount) { + toSerialize["circuit_count"] = o.CircuitCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -511,7 +519,6 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "circuit_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_contact_group.go b/model_contact_group.go index 56ab199856..2c3b0a48bb 100644 --- a/model_contact_group.go +++ b/model_contact_group.go @@ -33,7 +33,7 @@ type ContactGroup struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - ContactCount int32 `json:"contact_count"` + ContactCount *int32 `json:"contact_count,omitempty"` Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -44,14 +44,13 @@ type _ContactGroup ContactGroup // 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 NewContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32) *ContactGroup { +func NewContactGroup(id int32, url string, display string, name string, slug string, depth int32) *ContactGroup { this := ContactGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.ContactCount = contactCount this.Depth = depth return &this } @@ -443,30 +442,37 @@ func (o *ContactGroup) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetContactCount returns the ContactCount field value +// GetContactCount returns the ContactCount field value if set, zero value otherwise. func (o *ContactGroup) GetContactCount() int32 { - if o == nil { + if o == nil || IsNil(o.ContactCount) { var ret int32 return ret } - - return o.ContactCount + return *o.ContactCount } -// GetContactCountOk returns a tuple with the ContactCount field value +// GetContactCountOk returns a tuple with the ContactCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ContactGroup) GetContactCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ContactCount) { return nil, false } - return &o.ContactCount, true + return o.ContactCount, true } -// SetContactCount sets field value -func (o *ContactGroup) SetContactCount(v int32) { - o.ContactCount = v +// HasContactCount returns a boolean if a field has been set. +func (o *ContactGroup) HasContactCount() bool { + if o != nil && !IsNil(o.ContactCount) { + return true + } + + return false } +// SetContactCount gets a reference to the given int32 and assigns it to the ContactCount field. +func (o *ContactGroup) SetContactCount(v int32) { + o.ContactCount = &v +} // GetDepth returns the Depth field value func (o *ContactGroup) GetDepth() int32 { @@ -529,7 +535,9 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["contact_count"] = o.ContactCount + if !IsNil(o.ContactCount) { + toSerialize["contact_count"] = o.ContactCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -549,7 +557,6 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "contact_count", "_depth", } diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go index 3a770637de..7b08e10d97 100644 --- a/model_custom_field_choice_set.go +++ b/model_custom_field_choice_set.go @@ -31,7 +31,7 @@ type CustomFieldChoiceSet struct { ExtraChoices [][]interface{} `json:"extra_choices"` // Choices are automatically ordered alphabetically OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` - ChoicesCount string `json:"choices_count"` + ChoicesCount *string `json:"choices_count,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} @@ -43,14 +43,13 @@ type _CustomFieldChoiceSet CustomFieldChoiceSet // 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, extraChoices [][]interface{}, choicesCount string) *CustomFieldChoiceSet { +func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}) *CustomFieldChoiceSet { this := CustomFieldChoiceSet{} this.Id = id this.Url = url this.Display = display this.Name = name this.ExtraChoices = extraChoices - this.ChoicesCount = choicesCount return &this } @@ -315,30 +314,37 @@ func (o *CustomFieldChoiceSet) SetOrderAlphabetically(v bool) { o.OrderAlphabetically = &v } -// GetChoicesCount returns the ChoicesCount field value +// GetChoicesCount returns the ChoicesCount field value if set, zero value otherwise. func (o *CustomFieldChoiceSet) GetChoicesCount() string { - if o == nil { + if o == nil || IsNil(o.ChoicesCount) { var ret string return ret } - - return o.ChoicesCount + return *o.ChoicesCount } -// GetChoicesCountOk returns a tuple with the ChoicesCount field value +// GetChoicesCountOk returns a tuple with the ChoicesCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.ChoicesCount) { return nil, false } - return &o.ChoicesCount, true + return o.ChoicesCount, true } -// SetChoicesCount sets field value -func (o *CustomFieldChoiceSet) SetChoicesCount(v string) { - o.ChoicesCount = v +// HasChoicesCount returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasChoicesCount() bool { + if o != nil && !IsNil(o.ChoicesCount) { + return true + } + + return false } +// SetChoicesCount gets a reference to the given string and assigns it to the ChoicesCount field. +func (o *CustomFieldChoiceSet) SetChoicesCount(v string) { + o.ChoicesCount = &v +} // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CustomFieldChoiceSet) GetCreated() time.Time { @@ -451,7 +457,9 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { if !IsNil(o.OrderAlphabetically) { toSerialize["order_alphabetically"] = o.OrderAlphabetically } - toSerialize["choices_count"] = o.ChoicesCount + if !IsNil(o.ChoicesCount) { + toSerialize["choices_count"] = o.ChoicesCount + } if o.Created.IsSet() { toSerialize["created"] = o.Created.Get() } @@ -476,7 +484,6 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { "display", "name", "extra_choices", - "choices_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_data_source.go b/model_data_source.go index 74a84d3de2..f2a9fbb893 100644 --- a/model_data_source.go +++ b/model_data_source.go @@ -39,7 +39,7 @@ type DataSource struct { Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` LastSynced NullableTime `json:"last_synced,omitempty"` - FileCount int64 `json:"file_count"` + FileCount *int64 `json:"file_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,7 +49,7 @@ type _DataSource DataSource // 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 NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, fileCount int64) *DataSource { +func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus) *DataSource { this := DataSource{} this.Id = id this.Url = url @@ -58,7 +58,6 @@ func NewDataSource(id int32, url string, display string, name string, type_ Data this.Type = type_ this.SourceUrl = sourceUrl this.Status = status - this.FileCount = fileCount return &this } @@ -596,30 +595,37 @@ func (o *DataSource) UnsetLastSynced() { o.LastSynced.Unset() } -// GetFileCount returns the FileCount field value +// GetFileCount returns the FileCount field value if set, zero value otherwise. func (o *DataSource) GetFileCount() int64 { - if o == nil { + if o == nil || IsNil(o.FileCount) { var ret int64 return ret } - - return o.FileCount + return *o.FileCount } -// GetFileCountOk returns a tuple with the FileCount field value +// GetFileCountOk returns a tuple with the FileCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DataSource) GetFileCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.FileCount) { return nil, false } - return &o.FileCount, true + return o.FileCount, true } -// SetFileCount sets field value -func (o *DataSource) SetFileCount(v int64) { - o.FileCount = v +// HasFileCount returns a boolean if a field has been set. +func (o *DataSource) HasFileCount() bool { + if o != nil && !IsNil(o.FileCount) { + return true + } + + return false } +// SetFileCount gets a reference to the given int64 and assigns it to the FileCount field. +func (o *DataSource) SetFileCount(v int64) { + o.FileCount = &v +} func (o DataSource) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -668,7 +674,9 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { if o.LastSynced.IsSet() { toSerialize["last_synced"] = o.LastSynced.Get() } - toSerialize["file_count"] = o.FileCount + if !IsNil(o.FileCount) { + toSerialize["file_count"] = o.FileCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -689,7 +697,6 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { "type", "source_url", "status", - "file_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_device_with_config_context.go b/model_device_with_config_context.go index 5c142e5895..0d97eb66ea 100644 --- a/model_device_with_config_context.go +++ b/model_device_with_config_context.go @@ -69,7 +69,7 @@ type DeviceWithConfigContext struct { ConsoleServerPortCount int32 `json:"console_server_port_count"` PowerPortCount int32 `json:"power_port_count"` PowerOutletCount int32 `json:"power_outlet_count"` - InterfaceCount int32 `json:"interface_count"` + InterfaceCount *int32 `json:"interface_count,omitempty"` FrontPortCount int32 `json:"front_port_count"` RearPortCount int32 `json:"rear_port_count"` DeviceBayCount int32 `json:"device_bay_count"` @@ -84,7 +84,7 @@ 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 BriefDeviceType, role BriefDeviceRole, site BriefSite, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { +func NewDeviceWithConfigContext(id int32, url string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { this := DeviceWithConfigContext{} this.Id = id this.Url = url @@ -96,7 +96,6 @@ func NewDeviceWithConfigContext(id int32, url string, display string, deviceType this.ConsoleServerPortCount = consoleServerPortCount this.PowerPortCount = powerPortCount this.PowerOutletCount = powerOutletCount - this.InterfaceCount = interfaceCount this.FrontPortCount = frontPortCount this.RearPortCount = rearPortCount this.DeviceBayCount = deviceBayCount @@ -1599,30 +1598,37 @@ func (o *DeviceWithConfigContext) SetPowerOutletCount(v int32) { } -// GetInterfaceCount returns the InterfaceCount field value +// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise. func (o *DeviceWithConfigContext) GetInterfaceCount() int32 { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { var ret int32 return ret } - - return o.InterfaceCount + return *o.InterfaceCount } -// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceWithConfigContext) GetInterfaceCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { return nil, false } - return &o.InterfaceCount, true + return o.InterfaceCount, true } -// SetInterfaceCount sets field value -func (o *DeviceWithConfigContext) SetInterfaceCount(v int32) { - o.InterfaceCount = v +// HasInterfaceCount returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasInterfaceCount() bool { + if o != nil && !IsNil(o.InterfaceCount) { + return true + } + + return false } +// SetInterfaceCount gets a reference to the given int32 and assigns it to the InterfaceCount field. +func (o *DeviceWithConfigContext) SetInterfaceCount(v int32) { + o.InterfaceCount = &v +} // GetFrontPortCount returns the FrontPortCount field value func (o *DeviceWithConfigContext) GetFrontPortCount() int32 { @@ -1865,7 +1871,9 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize["console_server_port_count"] = o.ConsoleServerPortCount toSerialize["power_port_count"] = o.PowerPortCount toSerialize["power_outlet_count"] = o.PowerOutletCount - toSerialize["interface_count"] = o.InterfaceCount + if !IsNil(o.InterfaceCount) { + toSerialize["interface_count"] = o.InterfaceCount + } toSerialize["front_port_count"] = o.FrontPortCount toSerialize["rear_port_count"] = o.RearPortCount toSerialize["device_bay_count"] = o.DeviceBayCount @@ -1894,7 +1902,6 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { "console_server_port_count", "power_port_count", "power_outlet_count", - "interface_count", "front_port_count", "rear_port_count", "device_bay_count", diff --git a/model_group.go b/model_group.go index c976ffdc52..f3ae45d834 100644 --- a/model_group.go +++ b/model_group.go @@ -27,7 +27,7 @@ type Group struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Permissions []ObjectPermission `json:"permissions,omitempty"` - UserCount int32 `json:"user_count"` + UserCount *int32 `json:"user_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _Group Group // 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 NewGroup(id int32, url string, display string, name string, userCount int32) *Group { +func NewGroup(id int32, url string, display string, name string) *Group { this := Group{} this.Id = id this.Url = url this.Display = display this.Name = name - this.UserCount = userCount return &this } @@ -251,30 +250,37 @@ func (o *Group) SetPermissions(v []ObjectPermission) { o.Permissions = v } -// GetUserCount returns the UserCount field value +// GetUserCount returns the UserCount field value if set, zero value otherwise. func (o *Group) GetUserCount() int32 { - if o == nil { + if o == nil || IsNil(o.UserCount) { var ret int32 return ret } - - return o.UserCount + return *o.UserCount } -// GetUserCountOk returns a tuple with the UserCount field value +// GetUserCountOk returns a tuple with the UserCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Group) GetUserCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.UserCount) { return nil, false } - return &o.UserCount, true + return o.UserCount, true } -// SetUserCount sets field value -func (o *Group) SetUserCount(v int32) { - o.UserCount = v +// HasUserCount returns a boolean if a field has been set. +func (o *Group) HasUserCount() bool { + if o != nil && !IsNil(o.UserCount) { + return true + } + + return false } +// SetUserCount gets a reference to the given int32 and assigns it to the UserCount field. +func (o *Group) SetUserCount(v int32) { + o.UserCount = &v +} func (o Group) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -299,7 +305,9 @@ func (o Group) ToMap() (map[string]interface{}, error) { if !IsNil(o.Permissions) { toSerialize["permissions"] = o.Permissions } - toSerialize["user_count"] = o.UserCount + if !IsNil(o.UserCount) { + toSerialize["user_count"] = o.UserCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -317,7 +325,6 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "user_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go index ea24877fd3..1078bdc975 100644 --- a/model_inventory_item_role.go +++ b/model_inventory_item_role.go @@ -33,7 +33,7 @@ type InventoryItemRole struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - InventoryitemCount int64 `json:"inventoryitem_count"` + InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,14 +43,13 @@ type _InventoryItemRole InventoryItemRole // 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 NewInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64) *InventoryItemRole { +func NewInventoryItemRole(id int32, url string, display string, name string, slug string) *InventoryItemRole { this := InventoryItemRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.InventoryitemCount = inventoryitemCount return &this } @@ -431,30 +430,37 @@ func (o *InventoryItemRole) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetInventoryitemCount returns the InventoryitemCount field value +// GetInventoryitemCount returns the InventoryitemCount field value if set, zero value otherwise. func (o *InventoryItemRole) GetInventoryitemCount() int64 { - if o == nil { + if o == nil || IsNil(o.InventoryitemCount) { var ret int64 return ret } - - return o.InventoryitemCount + return *o.InventoryitemCount } -// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InventoryItemRole) GetInventoryitemCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.InventoryitemCount) { return nil, false } - return &o.InventoryitemCount, true + return o.InventoryitemCount, true } -// SetInventoryitemCount sets field value -func (o *InventoryItemRole) SetInventoryitemCount(v int64) { - o.InventoryitemCount = v +// HasInventoryitemCount returns a boolean if a field has been set. +func (o *InventoryItemRole) HasInventoryitemCount() bool { + if o != nil && !IsNil(o.InventoryitemCount) { + return true + } + + return false } +// SetInventoryitemCount gets a reference to the given int64 and assigns it to the InventoryitemCount field. +func (o *InventoryItemRole) SetInventoryitemCount(v int64) { + o.InventoryitemCount = &v +} func (o InventoryItemRole) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -492,7 +498,9 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["inventoryitem_count"] = o.InventoryitemCount + if !IsNil(o.InventoryitemCount) { + toSerialize["inventoryitem_count"] = o.InventoryitemCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -511,7 +519,6 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "inventoryitem_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_manufacturer.go b/model_manufacturer.go index 2c8bce187d..80c6716c91 100644 --- a/model_manufacturer.go +++ b/model_manufacturer.go @@ -33,8 +33,8 @@ type Manufacturer struct { Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` DevicetypeCount *int64 `json:"devicetype_count,omitempty"` - InventoryitemCount int64 `json:"inventoryitem_count"` - PlatformCount int64 `json:"platform_count"` + InventoryitemCount *int64 `json:"inventoryitem_count,omitempty"` + PlatformCount *int64 `json:"platform_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,15 +44,13 @@ type _Manufacturer Manufacturer // 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 NewManufacturer(id int32, url string, display string, name string, slug string, inventoryitemCount int64, platformCount int64) *Manufacturer { +func NewManufacturer(id int32, url string, display string, name string, slug string) *Manufacturer { this := Manufacturer{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.InventoryitemCount = inventoryitemCount - this.PlatformCount = platformCount return &this } @@ -433,55 +431,69 @@ func (o *Manufacturer) SetDevicetypeCount(v int64) { o.DevicetypeCount = &v } -// GetInventoryitemCount returns the InventoryitemCount field value +// GetInventoryitemCount returns the InventoryitemCount field value if set, zero value otherwise. func (o *Manufacturer) GetInventoryitemCount() int64 { - if o == nil { + if o == nil || IsNil(o.InventoryitemCount) { var ret int64 return ret } - - return o.InventoryitemCount + return *o.InventoryitemCount } -// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.InventoryitemCount) { return nil, false } - return &o.InventoryitemCount, true + return o.InventoryitemCount, true } -// SetInventoryitemCount sets field value -func (o *Manufacturer) SetInventoryitemCount(v int64) { - o.InventoryitemCount = v +// HasInventoryitemCount returns a boolean if a field has been set. +func (o *Manufacturer) HasInventoryitemCount() bool { + if o != nil && !IsNil(o.InventoryitemCount) { + return true + } + + return false } +// SetInventoryitemCount gets a reference to the given int64 and assigns it to the InventoryitemCount field. +func (o *Manufacturer) SetInventoryitemCount(v int64) { + o.InventoryitemCount = &v +} -// GetPlatformCount returns the PlatformCount field value +// GetPlatformCount returns the PlatformCount field value if set, zero value otherwise. func (o *Manufacturer) GetPlatformCount() int64 { - if o == nil { + if o == nil || IsNil(o.PlatformCount) { var ret int64 return ret } - - return o.PlatformCount + return *o.PlatformCount } -// GetPlatformCountOk returns a tuple with the PlatformCount field value +// GetPlatformCountOk returns a tuple with the PlatformCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Manufacturer) GetPlatformCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.PlatformCount) { return nil, false } - return &o.PlatformCount, true + return o.PlatformCount, true } -// SetPlatformCount sets field value -func (o *Manufacturer) SetPlatformCount(v int64) { - o.PlatformCount = v +// HasPlatformCount returns a boolean if a field has been set. +func (o *Manufacturer) HasPlatformCount() bool { + if o != nil && !IsNil(o.PlatformCount) { + return true + } + + return false } +// SetPlatformCount gets a reference to the given int64 and assigns it to the PlatformCount field. +func (o *Manufacturer) SetPlatformCount(v int64) { + o.PlatformCount = &v +} func (o Manufacturer) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -519,8 +531,12 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { if !IsNil(o.DevicetypeCount) { toSerialize["devicetype_count"] = o.DevicetypeCount } - toSerialize["inventoryitem_count"] = o.InventoryitemCount - toSerialize["platform_count"] = o.PlatformCount + if !IsNil(o.InventoryitemCount) { + toSerialize["inventoryitem_count"] = o.InventoryitemCount + } + if !IsNil(o.PlatformCount) { + toSerialize["platform_count"] = o.PlatformCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -539,8 +555,6 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "inventoryitem_count", - "platform_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_power_panel.go b/model_power_panel.go index bcffe5bcb5..12637e6d07 100644 --- a/model_power_panel.go +++ b/model_power_panel.go @@ -32,7 +32,7 @@ type PowerPanel struct { Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + PowerfeedCount *int64 `json:"powerfeed_count,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` AdditionalProperties map[string]interface{} @@ -44,14 +44,13 @@ type _PowerPanel PowerPanel // 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 NewPowerPanel(id int32, url string, display string, site BriefSite, name string, powerfeedCount int64) *PowerPanel { +func NewPowerPanel(id int32, url string, display string, site BriefSite, name string) *PowerPanel { this := PowerPanel{} this.Id = id this.Url = url this.Display = display this.Site = site this.Name = name - this.PowerfeedCount = powerfeedCount return &this } @@ -390,30 +389,37 @@ func (o *PowerPanel) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetPowerfeedCount returns the PowerfeedCount field value +// GetPowerfeedCount returns the PowerfeedCount field value if set, zero value otherwise. func (o *PowerPanel) GetPowerfeedCount() int64 { - if o == nil { + if o == nil || IsNil(o.PowerfeedCount) { var ret int64 return ret } - - return o.PowerfeedCount + return *o.PowerfeedCount } -// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PowerPanel) GetPowerfeedCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.PowerfeedCount) { return nil, false } - return &o.PowerfeedCount, true + return o.PowerfeedCount, true } -// SetPowerfeedCount sets field value -func (o *PowerPanel) SetPowerfeedCount(v int64) { - o.PowerfeedCount = v +// HasPowerfeedCount returns a boolean if a field has been set. +func (o *PowerPanel) HasPowerfeedCount() bool { + if o != nil && !IsNil(o.PowerfeedCount) { + return true + } + + return false } +// SetPowerfeedCount gets a reference to the given int64 and assigns it to the PowerfeedCount field. +func (o *PowerPanel) SetPowerfeedCount(v int64) { + o.PowerfeedCount = &v +} // GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PowerPanel) GetCreated() time.Time { @@ -532,7 +538,9 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["powerfeed_count"] = o.PowerfeedCount + if !IsNil(o.PowerfeedCount) { + toSerialize["powerfeed_count"] = o.PowerfeedCount + } if o.Created.IsSet() { toSerialize["created"] = o.Created.Get() } @@ -557,7 +565,6 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { "display", "site", "name", - "powerfeed_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_provider.go b/model_provider.go index 5745cee4ed..d5560e3199 100644 --- a/model_provider.go +++ b/model_provider.go @@ -36,7 +36,7 @@ type Provider struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - CircuitCount int64 `json:"circuit_count"` + CircuitCount *int64 `json:"circuit_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,14 +46,13 @@ type _Provider Provider // 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 NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *Provider { +func NewProvider(id int32, url string, display string, name string, slug string) *Provider { this := Provider{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.CircuitCount = circuitCount return &this } @@ -498,30 +497,37 @@ func (o *Provider) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetCircuitCount returns the CircuitCount field value +// GetCircuitCount returns the CircuitCount field value if set, zero value otherwise. func (o *Provider) GetCircuitCount() int64 { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { var ret int64 return ret } - - return o.CircuitCount + return *o.CircuitCount } -// GetCircuitCountOk returns a tuple with the CircuitCount field value +// GetCircuitCountOk returns a tuple with the CircuitCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Provider) GetCircuitCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { return nil, false } - return &o.CircuitCount, true + return o.CircuitCount, true } -// SetCircuitCount sets field value -func (o *Provider) SetCircuitCount(v int64) { - o.CircuitCount = v +// HasCircuitCount returns a boolean if a field has been set. +func (o *Provider) HasCircuitCount() bool { + if o != nil && !IsNil(o.CircuitCount) { + return true + } + + return false } +// SetCircuitCount gets a reference to the given int64 and assigns it to the CircuitCount field. +func (o *Provider) SetCircuitCount(v int64) { + o.CircuitCount = &v +} func (o Provider) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -565,7 +571,9 @@ func (o Provider) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.CircuitCount) { + toSerialize["circuit_count"] = o.CircuitCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -584,7 +592,6 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "circuit_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_rack.go b/model_rack.go index ec583c4649..bf623abaa5 100644 --- a/model_rack.go +++ b/model_rack.go @@ -63,7 +63,7 @@ type Rack struct { Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` DeviceCount *int64 `json:"device_count,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + PowerfeedCount *int64 `json:"powerfeed_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,14 +73,13 @@ type _Rack Rack // 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 NewRack(id int32, url string, display string, name string, site BriefSite, powerfeedCount int64) *Rack { +func NewRack(id int32, url string, display string, name string, site BriefSite) *Rack { this := Rack{} this.Id = id this.Url = url this.Display = display this.Name = name this.Site = site - this.PowerfeedCount = powerfeedCount return &this } @@ -1305,30 +1304,37 @@ func (o *Rack) SetDeviceCount(v int64) { o.DeviceCount = &v } -// GetPowerfeedCount returns the PowerfeedCount field value +// GetPowerfeedCount returns the PowerfeedCount field value if set, zero value otherwise. func (o *Rack) GetPowerfeedCount() int64 { - if o == nil { + if o == nil || IsNil(o.PowerfeedCount) { var ret int64 return ret } - - return o.PowerfeedCount + return *o.PowerfeedCount } -// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Rack) GetPowerfeedCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.PowerfeedCount) { return nil, false } - return &o.PowerfeedCount, true + return o.PowerfeedCount, true } -// SetPowerfeedCount sets field value -func (o *Rack) SetPowerfeedCount(v int64) { - o.PowerfeedCount = v +// HasPowerfeedCount returns a boolean if a field has been set. +func (o *Rack) HasPowerfeedCount() bool { + if o != nil && !IsNil(o.PowerfeedCount) { + return true + } + + return false } +// SetPowerfeedCount gets a reference to the given int64 and assigns it to the PowerfeedCount field. +func (o *Rack) SetPowerfeedCount(v int64) { + o.PowerfeedCount = &v +} func (o Rack) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -1432,7 +1438,9 @@ func (o Rack) ToMap() (map[string]interface{}, error) { if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } - toSerialize["powerfeed_count"] = o.PowerfeedCount + if !IsNil(o.PowerfeedCount) { + toSerialize["powerfeed_count"] = o.PowerfeedCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1451,7 +1459,6 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { "display", "name", "site", - "powerfeed_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_rir.go b/model_rir.go index 879a9688e8..a77e4f53ea 100644 --- a/model_rir.go +++ b/model_rir.go @@ -34,7 +34,7 @@ type RIR struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - AggregateCount int64 `json:"aggregate_count"` + AggregateCount *int64 `json:"aggregate_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,14 +44,13 @@ type _RIR RIR // 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 NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *RIR { +func NewRIR(id int32, url string, display string, name string, slug string) *RIR { this := RIR{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.AggregateCount = aggregateCount return &this } @@ -432,30 +431,37 @@ func (o *RIR) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetAggregateCount returns the AggregateCount field value +// GetAggregateCount returns the AggregateCount field value if set, zero value otherwise. func (o *RIR) GetAggregateCount() int64 { - if o == nil { + if o == nil || IsNil(o.AggregateCount) { var ret int64 return ret } - - return o.AggregateCount + return *o.AggregateCount } -// GetAggregateCountOk returns a tuple with the AggregateCount field value +// GetAggregateCountOk returns a tuple with the AggregateCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RIR) GetAggregateCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.AggregateCount) { return nil, false } - return &o.AggregateCount, true + return o.AggregateCount, true } -// SetAggregateCount sets field value -func (o *RIR) SetAggregateCount(v int64) { - o.AggregateCount = v +// HasAggregateCount returns a boolean if a field has been set. +func (o *RIR) HasAggregateCount() bool { + if o != nil && !IsNil(o.AggregateCount) { + return true + } + + return false } +// SetAggregateCount gets a reference to the given int64 and assigns it to the AggregateCount field. +func (o *RIR) SetAggregateCount(v int64) { + o.AggregateCount = &v +} func (o RIR) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -493,7 +499,9 @@ func (o RIR) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["aggregate_count"] = o.AggregateCount + if !IsNil(o.AggregateCount) { + toSerialize["aggregate_count"] = o.AggregateCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -512,7 +520,6 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "aggregate_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_site.go b/model_site.go index 7fd693bbcd..2e2ba8c318 100644 --- a/model_site.go +++ b/model_site.go @@ -50,7 +50,7 @@ type Site struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - CircuitCount int64 `json:"circuit_count"` + CircuitCount *int64 `json:"circuit_count,omitempty"` DeviceCount *int64 `json:"device_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` RackCount *int64 `json:"rack_count,omitempty"` @@ -65,14 +65,13 @@ type _Site Site // 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 NewSite(id int32, url string, display string, name string, slug string, circuitCount int64) *Site { +func NewSite(id int32, url string, display string, name string, slug string) *Site { this := Site{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.CircuitCount = circuitCount return &this } @@ -865,30 +864,37 @@ func (o *Site) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetCircuitCount returns the CircuitCount field value +// GetCircuitCount returns the CircuitCount field value if set, zero value otherwise. func (o *Site) GetCircuitCount() int64 { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { var ret int64 return ret } - - return o.CircuitCount + return *o.CircuitCount } -// GetCircuitCountOk returns a tuple with the CircuitCount field value +// GetCircuitCountOk returns a tuple with the CircuitCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Site) GetCircuitCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { return nil, false } - return &o.CircuitCount, true + return o.CircuitCount, true } -// SetCircuitCount sets field value -func (o *Site) SetCircuitCount(v int64) { - o.CircuitCount = v +// HasCircuitCount returns a boolean if a field has been set. +func (o *Site) HasCircuitCount() bool { + if o != nil && !IsNil(o.CircuitCount) { + return true + } + + return false } +// SetCircuitCount gets a reference to the given int64 and assigns it to the CircuitCount field. +func (o *Site) SetCircuitCount(v int64) { + o.CircuitCount = &v +} // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Site) GetDeviceCount() int64 { @@ -1119,7 +1125,9 @@ func (o Site) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.CircuitCount) { + toSerialize["circuit_count"] = o.CircuitCount + } if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } @@ -1153,7 +1161,6 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "circuit_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_tenant.go b/model_tenant.go index 6c9d8b3b2f..5a1492070e 100644 --- a/model_tenant.go +++ b/model_tenant.go @@ -34,9 +34,9 @@ type Tenant struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - CircuitCount int64 `json:"circuit_count"` + CircuitCount *int64 `json:"circuit_count,omitempty"` DeviceCount *int64 `json:"device_count,omitempty"` - IpaddressCount int64 `json:"ipaddress_count"` + IpaddressCount *int64 `json:"ipaddress_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` RackCount *int64 `json:"rack_count,omitempty"` SiteCount *int64 `json:"site_count,omitempty"` @@ -53,15 +53,13 @@ type _Tenant Tenant // 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 NewTenant(id int32, url string, display string, name string, slug string, circuitCount int64, ipaddressCount int64) *Tenant { +func NewTenant(id int32, url string, display string, name string, slug string) *Tenant { this := Tenant{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.CircuitCount = circuitCount - this.IpaddressCount = ipaddressCount return &this } @@ -484,30 +482,37 @@ func (o *Tenant) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetCircuitCount returns the CircuitCount field value +// GetCircuitCount returns the CircuitCount field value if set, zero value otherwise. func (o *Tenant) GetCircuitCount() int64 { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { var ret int64 return ret } - - return o.CircuitCount + return *o.CircuitCount } -// GetCircuitCountOk returns a tuple with the CircuitCount field value +// GetCircuitCountOk returns a tuple with the CircuitCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Tenant) GetCircuitCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.CircuitCount) { return nil, false } - return &o.CircuitCount, true + return o.CircuitCount, true } -// SetCircuitCount sets field value -func (o *Tenant) SetCircuitCount(v int64) { - o.CircuitCount = v +// HasCircuitCount returns a boolean if a field has been set. +func (o *Tenant) HasCircuitCount() bool { + if o != nil && !IsNil(o.CircuitCount) { + return true + } + + return false } +// SetCircuitCount gets a reference to the given int64 and assigns it to the CircuitCount field. +func (o *Tenant) SetCircuitCount(v int64) { + o.CircuitCount = &v +} // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Tenant) GetDeviceCount() int64 { @@ -541,30 +546,37 @@ func (o *Tenant) SetDeviceCount(v int64) { o.DeviceCount = &v } -// GetIpaddressCount returns the IpaddressCount field value +// GetIpaddressCount returns the IpaddressCount field value if set, zero value otherwise. func (o *Tenant) GetIpaddressCount() int64 { - if o == nil { + if o == nil || IsNil(o.IpaddressCount) { var ret int64 return ret } - - return o.IpaddressCount + return *o.IpaddressCount } -// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Tenant) GetIpaddressCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.IpaddressCount) { return nil, false } - return &o.IpaddressCount, true + return o.IpaddressCount, true } -// SetIpaddressCount sets field value -func (o *Tenant) SetIpaddressCount(v int64) { - o.IpaddressCount = v +// HasIpaddressCount returns a boolean if a field has been set. +func (o *Tenant) HasIpaddressCount() bool { + if o != nil && !IsNil(o.IpaddressCount) { + return true + } + + return false } +// SetIpaddressCount gets a reference to the given int64 and assigns it to the IpaddressCount field. +func (o *Tenant) SetIpaddressCount(v int64) { + o.IpaddressCount = &v +} // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *Tenant) GetPrefixCount() int64 { @@ -829,11 +841,15 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.CircuitCount) { + toSerialize["circuit_count"] = o.CircuitCount + } if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } - toSerialize["ipaddress_count"] = o.IpaddressCount + if !IsNil(o.IpaddressCount) { + toSerialize["ipaddress_count"] = o.IpaddressCount + } if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -873,8 +889,6 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "circuit_count", - "ipaddress_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_tenant_group.go b/model_tenant_group.go index 8f04e7f70d..b3da465a97 100644 --- a/model_tenant_group.go +++ b/model_tenant_group.go @@ -33,7 +33,7 @@ type TenantGroup struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - TenantCount int32 `json:"tenant_count"` + TenantCount *int32 `json:"tenant_count,omitempty"` Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -44,14 +44,13 @@ type _TenantGroup TenantGroup // 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 NewTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32) *TenantGroup { +func NewTenantGroup(id int32, url string, display string, name string, slug string, depth int32) *TenantGroup { this := TenantGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.TenantCount = tenantCount this.Depth = depth return &this } @@ -443,30 +442,37 @@ func (o *TenantGroup) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetTenantCount returns the TenantCount field value +// GetTenantCount returns the TenantCount field value if set, zero value otherwise. func (o *TenantGroup) GetTenantCount() int32 { - if o == nil { + if o == nil || IsNil(o.TenantCount) { var ret int32 return ret } - - return o.TenantCount + return *o.TenantCount } -// GetTenantCountOk returns a tuple with the TenantCount field value +// GetTenantCountOk returns a tuple with the TenantCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TenantGroup) GetTenantCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.TenantCount) { return nil, false } - return &o.TenantCount, true + return o.TenantCount, true } -// SetTenantCount sets field value -func (o *TenantGroup) SetTenantCount(v int32) { - o.TenantCount = v +// HasTenantCount returns a boolean if a field has been set. +func (o *TenantGroup) HasTenantCount() bool { + if o != nil && !IsNil(o.TenantCount) { + return true + } + + return false } +// SetTenantCount gets a reference to the given int32 and assigns it to the TenantCount field. +func (o *TenantGroup) SetTenantCount(v int32) { + o.TenantCount = &v +} // GetDepth returns the Depth field value func (o *TenantGroup) GetDepth() int32 { @@ -529,7 +535,9 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["tenant_count"] = o.TenantCount + if !IsNil(o.TenantCount) { + toSerialize["tenant_count"] = o.TenantCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -549,7 +557,6 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "tenant_count", "_depth", } diff --git a/model_tunnel.go b/model_tunnel.go index 67af3c3849..7d2db25f7c 100644 --- a/model_tunnel.go +++ b/model_tunnel.go @@ -38,7 +38,7 @@ type Tunnel struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - TerminationsCount int64 `json:"terminations_count"` + TerminationsCount *int64 `json:"terminations_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,7 +48,7 @@ type _Tunnel Tunnel // 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 NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, terminationsCount int64) *Tunnel { +func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation) *Tunnel { this := Tunnel{} this.Id = id this.Url = url @@ -56,7 +56,6 @@ func NewTunnel(id int32, url string, display string, name string, status TunnelS this.Name = name this.Status = status this.Encapsulation = encapsulation - this.TerminationsCount = terminationsCount return &this } @@ -630,30 +629,37 @@ func (o *Tunnel) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetTerminationsCount returns the TerminationsCount field value +// GetTerminationsCount returns the TerminationsCount field value if set, zero value otherwise. func (o *Tunnel) GetTerminationsCount() int64 { - if o == nil { + if o == nil || IsNil(o.TerminationsCount) { var ret int64 return ret } - - return o.TerminationsCount + return *o.TerminationsCount } -// GetTerminationsCountOk returns a tuple with the TerminationsCount field value +// GetTerminationsCountOk returns a tuple with the TerminationsCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Tunnel) GetTerminationsCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.TerminationsCount) { return nil, false } - return &o.TerminationsCount, true + return o.TerminationsCount, true } -// SetTerminationsCount sets field value -func (o *Tunnel) SetTerminationsCount(v int64) { - o.TerminationsCount = v +// HasTerminationsCount returns a boolean if a field has been set. +func (o *Tunnel) HasTerminationsCount() bool { + if o != nil && !IsNil(o.TerminationsCount) { + return true + } + + return false } +// SetTerminationsCount gets a reference to the given int64 and assigns it to the TerminationsCount field. +func (o *Tunnel) SetTerminationsCount(v int64) { + o.TerminationsCount = &v +} func (o Tunnel) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -704,7 +710,9 @@ func (o Tunnel) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["terminations_count"] = o.TerminationsCount + if !IsNil(o.TerminationsCount) { + toSerialize["terminations_count"] = o.TerminationsCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -724,7 +732,6 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { "name", "status", "encapsulation", - "terminations_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_tunnel_group.go b/model_tunnel_group.go index 09ee0534c7..30ff59da70 100644 --- a/model_tunnel_group.go +++ b/model_tunnel_group.go @@ -32,7 +32,7 @@ type TunnelGroup struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - TunnelCount int64 `json:"tunnel_count"` + TunnelCount *int64 `json:"tunnel_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,14 +42,13 @@ type _TunnelGroup TunnelGroup // 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 NewTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64) *TunnelGroup { +func NewTunnelGroup(id int32, url string, display string, name string, slug string) *TunnelGroup { this := TunnelGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.TunnelCount = tunnelCount return &this } @@ -398,30 +397,37 @@ func (o *TunnelGroup) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetTunnelCount returns the TunnelCount field value +// GetTunnelCount returns the TunnelCount field value if set, zero value otherwise. func (o *TunnelGroup) GetTunnelCount() int64 { - if o == nil { + if o == nil || IsNil(o.TunnelCount) { var ret int64 return ret } - - return o.TunnelCount + return *o.TunnelCount } -// GetTunnelCountOk returns a tuple with the TunnelCount field value +// GetTunnelCountOk returns a tuple with the TunnelCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TunnelGroup) GetTunnelCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.TunnelCount) { return nil, false } - return &o.TunnelCount, true + return o.TunnelCount, true } -// SetTunnelCount sets field value -func (o *TunnelGroup) SetTunnelCount(v int64) { - o.TunnelCount = v +// HasTunnelCount returns a boolean if a field has been set. +func (o *TunnelGroup) HasTunnelCount() bool { + if o != nil && !IsNil(o.TunnelCount) { + return true + } + + return false } +// SetTunnelCount gets a reference to the given int64 and assigns it to the TunnelCount field. +func (o *TunnelGroup) SetTunnelCount(v int64) { + o.TunnelCount = &v +} func (o TunnelGroup) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -456,7 +462,9 @@ func (o TunnelGroup) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["tunnel_count"] = o.TunnelCount + if !IsNil(o.TunnelCount) { + toSerialize["tunnel_count"] = o.TunnelCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -475,7 +483,6 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "tunnel_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go index b2b28da229..504ee49e40 100644 --- a/model_virtual_chassis.go +++ b/model_virtual_chassis.go @@ -34,7 +34,7 @@ type VirtualChassis struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - MemberCount int32 `json:"member_count"` + MemberCount *int32 `json:"member_count,omitempty"` Members []NestedDevice `json:"members"` AdditionalProperties map[string]interface{} } @@ -45,13 +45,12 @@ 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, members []NestedDevice) *VirtualChassis { +func NewVirtualChassis(id int32, url string, display string, name string, members []NestedDevice) *VirtualChassis { this := VirtualChassis{} this.Id = id this.Url = url this.Display = display this.Name = name - this.MemberCount = memberCount this.Members = members return &this } @@ -482,30 +481,37 @@ func (o *VirtualChassis) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetMemberCount returns the MemberCount field value +// GetMemberCount returns the MemberCount field value if set, zero value otherwise. func (o *VirtualChassis) GetMemberCount() int32 { - if o == nil { + if o == nil || IsNil(o.MemberCount) { var ret int32 return ret } - - return o.MemberCount + return *o.MemberCount } -// GetMemberCountOk returns a tuple with the MemberCount field value +// GetMemberCountOk returns a tuple with the MemberCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VirtualChassis) GetMemberCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.MemberCount) { return nil, false } - return &o.MemberCount, true + return o.MemberCount, true } -// SetMemberCount sets field value -func (o *VirtualChassis) SetMemberCount(v int32) { - o.MemberCount = v +// HasMemberCount returns a boolean if a field has been set. +func (o *VirtualChassis) HasMemberCount() bool { + if o != nil && !IsNil(o.MemberCount) { + return true + } + + return false } +// SetMemberCount gets a reference to the given int32 and assigns it to the MemberCount field. +func (o *VirtualChassis) SetMemberCount(v int32) { + o.MemberCount = &v +} // GetMembers returns the Members field value func (o *VirtualChassis) GetMembers() []NestedDevice { @@ -573,7 +579,9 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["member_count"] = o.MemberCount + if !IsNil(o.MemberCount) { + toSerialize["member_count"] = o.MemberCount + } toSerialize["members"] = o.Members for key, value := range o.AdditionalProperties { @@ -592,7 +600,6 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "member_count", "members", } diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go index 13e0c13f4b..29492e1598 100644 --- a/model_virtual_device_context.go +++ b/model_virtual_device_context.go @@ -39,7 +39,7 @@ type VirtualDeviceContext struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - InterfaceCount int64 `json:"interface_count"` + InterfaceCount *int64 `json:"interface_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,7 +49,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 BriefDevice, status VirtualDeviceContextStatus, interfaceCount int64) *VirtualDeviceContext { +func NewVirtualDeviceContext(id int32, url string, display string, name string, device BriefDevice, status VirtualDeviceContextStatus) *VirtualDeviceContext { this := VirtualDeviceContext{} this.Id = id this.Url = url @@ -57,7 +57,6 @@ func NewVirtualDeviceContext(id int32, url string, display string, name string, this.Name = name this.Device = device this.Status = status - this.InterfaceCount = interfaceCount return &this } @@ -673,30 +672,37 @@ func (o *VirtualDeviceContext) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetInterfaceCount returns the InterfaceCount field value +// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise. func (o *VirtualDeviceContext) GetInterfaceCount() int64 { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { var ret int64 return ret } - - return o.InterfaceCount + return *o.InterfaceCount } -// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VirtualDeviceContext) GetInterfaceCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { return nil, false } - return &o.InterfaceCount, true + return o.InterfaceCount, true } -// SetInterfaceCount sets field value -func (o *VirtualDeviceContext) SetInterfaceCount(v int64) { - o.InterfaceCount = v +// HasInterfaceCount returns a boolean if a field has been set. +func (o *VirtualDeviceContext) HasInterfaceCount() bool { + if o != nil && !IsNil(o.InterfaceCount) { + return true + } + + return false } +// SetInterfaceCount gets a reference to the given int64 and assigns it to the InterfaceCount field. +func (o *VirtualDeviceContext) SetInterfaceCount(v int64) { + o.InterfaceCount = &v +} func (o VirtualDeviceContext) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() @@ -750,7 +756,9 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["interface_count"] = o.InterfaceCount + if !IsNil(o.InterfaceCount) { + toSerialize["interface_count"] = o.InterfaceCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -770,7 +778,6 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { "name", "device", "status", - "interface_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_virtual_machine_with_config_context.go b/model_virtual_machine_with_config_context.go index 6a561961de..5e4bf9a59e 100644 --- a/model_virtual_machine_with_config_context.go +++ b/model_virtual_machine_with_config_context.go @@ -50,7 +50,7 @@ type VirtualMachineWithConfigContext struct { ConfigContext interface{} `json:"config_context,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - InterfaceCount int32 `json:"interface_count"` + InterfaceCount *int32 `json:"interface_count,omitempty"` VirtualDiskCount int32 `json:"virtual_disk_count"` AdditionalProperties map[string]interface{} } @@ -61,13 +61,12 @@ 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, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { +func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, virtualDiskCount int32) *VirtualMachineWithConfigContext { this := VirtualMachineWithConfigContext{} this.Id = id this.Url = url this.Display = display this.Name = name - this.InterfaceCount = interfaceCount this.VirtualDiskCount = virtualDiskCount return &this } @@ -1100,30 +1099,37 @@ func (o *VirtualMachineWithConfigContext) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetInterfaceCount returns the InterfaceCount field value +// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise. func (o *VirtualMachineWithConfigContext) GetInterfaceCount() int32 { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { var ret int32 return ret } - - return o.InterfaceCount + return *o.InterfaceCount } -// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VirtualMachineWithConfigContext) GetInterfaceCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { return nil, false } - return &o.InterfaceCount, true + return o.InterfaceCount, true } -// SetInterfaceCount sets field value -func (o *VirtualMachineWithConfigContext) SetInterfaceCount(v int32) { - o.InterfaceCount = v +// HasInterfaceCount returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasInterfaceCount() bool { + if o != nil && !IsNil(o.InterfaceCount) { + return true + } + + return false } +// SetInterfaceCount gets a reference to the given int32 and assigns it to the InterfaceCount field. +func (o *VirtualMachineWithConfigContext) SetInterfaceCount(v int32) { + o.InterfaceCount = &v +} // GetVirtualDiskCount returns the VirtualDiskCount field value func (o *VirtualMachineWithConfigContext) GetVirtualDiskCount() int32 { @@ -1236,7 +1242,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["interface_count"] = o.InterfaceCount + if !IsNil(o.InterfaceCount) { + toSerialize["interface_count"] = o.InterfaceCount + } toSerialize["virtual_disk_count"] = o.VirtualDiskCount for key, value := range o.AdditionalProperties { @@ -1255,7 +1263,6 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) "url", "display", "name", - "interface_count", "virtual_disk_count", } diff --git a/model_vrf.go b/model_vrf.go index 093299a1fc..667500a992 100644 --- a/model_vrf.go +++ b/model_vrf.go @@ -39,7 +39,7 @@ type VRF struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - IpaddressCount int64 `json:"ipaddress_count"` + IpaddressCount *int64 `json:"ipaddress_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,13 +50,12 @@ type _VRF VRF // 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 NewVRF(id int32, url string, display string, name string, ipaddressCount int64) *VRF { +func NewVRF(id int32, url string, display string, name string) *VRF { this := VRF{} this.Id = id this.Url = url this.Display = display this.Name = name - this.IpaddressCount = ipaddressCount return &this } @@ -592,30 +591,37 @@ func (o *VRF) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetIpaddressCount returns the IpaddressCount field value +// GetIpaddressCount returns the IpaddressCount field value if set, zero value otherwise. func (o *VRF) GetIpaddressCount() int64 { - if o == nil { + if o == nil || IsNil(o.IpaddressCount) { var ret int64 return ret } - - return o.IpaddressCount + return *o.IpaddressCount } -// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VRF) GetIpaddressCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.IpaddressCount) { return nil, false } - return &o.IpaddressCount, true + return o.IpaddressCount, true } -// SetIpaddressCount sets field value -func (o *VRF) SetIpaddressCount(v int64) { - o.IpaddressCount = v +// HasIpaddressCount returns a boolean if a field has been set. +func (o *VRF) HasIpaddressCount() bool { + if o != nil && !IsNil(o.IpaddressCount) { + return true + } + + return false } +// SetIpaddressCount gets a reference to the given int64 and assigns it to the IpaddressCount field. +func (o *VRF) SetIpaddressCount(v int64) { + o.IpaddressCount = &v +} // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *VRF) GetPrefixCount() int64 { @@ -699,7 +705,9 @@ func (o VRF) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["ipaddress_count"] = o.IpaddressCount + if !IsNil(o.IpaddressCount) { + toSerialize["ipaddress_count"] = o.IpaddressCount + } if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -720,7 +728,6 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "ipaddress_count", } // defaultValueFuncMap captures the default values for required properties. diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go index 6aea61ee3f..5e7ae84e30 100644 --- a/model_wireless_lan_group.go +++ b/model_wireless_lan_group.go @@ -33,7 +33,7 @@ type WirelessLANGroup struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated,omitempty"` - WirelesslanCount int32 `json:"wirelesslan_count"` + WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"` Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -44,14 +44,13 @@ type _WirelessLANGroup WirelessLANGroup // 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 NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *WirelessLANGroup { +func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32) *WirelessLANGroup { this := WirelessLANGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.WirelesslanCount = wirelesslanCount this.Depth = depth return &this } @@ -443,30 +442,37 @@ func (o *WirelessLANGroup) UnsetLastUpdated() { o.LastUpdated.Unset() } -// GetWirelesslanCount returns the WirelesslanCount field value +// GetWirelesslanCount returns the WirelesslanCount field value if set, zero value otherwise. func (o *WirelessLANGroup) GetWirelesslanCount() int32 { - if o == nil { + if o == nil || IsNil(o.WirelesslanCount) { var ret int32 return ret } - - return o.WirelesslanCount + return *o.WirelesslanCount } -// GetWirelesslanCountOk returns a tuple with the WirelesslanCount field value +// GetWirelesslanCountOk returns a tuple with the WirelesslanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WirelessLANGroup) GetWirelesslanCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.WirelesslanCount) { return nil, false } - return &o.WirelesslanCount, true + return o.WirelesslanCount, true } -// SetWirelesslanCount sets field value -func (o *WirelessLANGroup) SetWirelesslanCount(v int32) { - o.WirelesslanCount = v +// HasWirelesslanCount returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasWirelesslanCount() bool { + if o != nil && !IsNil(o.WirelesslanCount) { + return true + } + + return false } +// SetWirelesslanCount gets a reference to the given int32 and assigns it to the WirelesslanCount field. +func (o *WirelessLANGroup) SetWirelesslanCount(v int32) { + o.WirelesslanCount = &v +} // GetDepth returns the Depth field value func (o *WirelessLANGroup) GetDepth() int32 { @@ -529,7 +535,9 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { if o.LastUpdated.IsSet() { toSerialize["last_updated"] = o.LastUpdated.Get() } - toSerialize["wirelesslan_count"] = o.WirelesslanCount + if !IsNil(o.WirelesslanCount) { + toSerialize["wirelesslan_count"] = o.WirelesslanCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -549,7 +557,6 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "wirelesslan_count", "_depth", } diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index 809e51f4bb..1c61f1606a 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -58,11 +58,29 @@ 'virtualmachine_count', 'prefix_count', 'vlan_count', - 'rack_count', - 'vrf_count', 'display_url', + 'user_count', + 'aggregate_count', + 'asn_count', + 'choices_count', + 'circuit_count', 'cluster_count', + 'contact_count', + 'file_count', + 'interface_count', + 'inventoryitem_count', + 'ipaddress_count', + 'member_count', + 'platform_count', + 'powerfeed_count', + 'provider_count', + 'rack_count', 'site_count', + 'tenant_count', + 'terminations_count', + 'tunnel_count', + 'vrf_count', + 'wirelesslan_count', 'created', # for sites 'provider_count', # ASNs ] + dynamic_non_required_props diff --git a/test/api_circuits_test.go b/test/api_circuits_test.go new file mode 100644 index 0000000000..4d1b00bd99 --- /dev/null +++ b/test/api_circuits_test.go @@ -0,0 +1,1307 @@ +/* +NetBox REST API + +Testing CircuitsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_CircuitsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupAssignmentsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsPathsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTypesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTypesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTypesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTypesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTypesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitTypesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsCircuitsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderAccountsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderAccountsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderAccountsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderAccountsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderAccountsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderAccountsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderAccountsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderNetworksBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderNetworksBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderNetworksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderNetworksDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderNetworksPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderNetworksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProviderNetworksUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProvidersBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProvidersBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProvidersCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProvidersDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProvidersPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProvidersRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsProvidersUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsPathsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTerminationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTerminationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitTypesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitTypesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CircuitsAPIService CircuitsVirtualCircuitsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsVirtualCircuitsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_core_test.go b/test/api_core_test.go new file mode 100644 index 0000000000..c8115ca1c2 --- /dev/null +++ b/test/api_core_test.go @@ -0,0 +1,360 @@ +/* +NetBox REST API + +Testing CoreAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_CoreAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CoreAPIService CoreBackgroundQueuesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreBackgroundQueuesRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundQueuesRetrieve2", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + resp, httpRes, err := apiClient.CoreAPI.CoreBackgroundQueuesRetrieve2(context.Background(), name).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundTasksDeleteCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.CoreAPI.CoreBackgroundTasksDeleteCreate(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundTasksEnqueueCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.CoreAPI.CoreBackgroundTasksEnqueueCreate(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundTasksRequeueCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.CoreAPI.CoreBackgroundTasksRequeueCreate(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundTasksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreBackgroundTasksRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundTasksRetrieve2", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.CoreAPI.CoreBackgroundTasksRetrieve2(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundTasksStopCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.CoreAPI.CoreBackgroundTasksStopCreate(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundWorkersRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreBackgroundWorkersRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreBackgroundWorkersRetrieve2", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var name string + + httpRes, err := apiClient.CoreAPI.CoreBackgroundWorkersRetrieve2(context.Background(), name).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataFilesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreDataFilesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataFilesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreDataFilesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesSyncCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesSyncCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreDataSourcesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreJobsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreJobsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreJobsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreObjectChangesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CoreAPI.CoreObjectChangesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CoreAPIService CoreObjectChangesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.CoreAPI.CoreObjectChangesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_dcim_test.go b/test/api_dcim_test.go new file mode 100644 index 0000000000..78af7859da --- /dev/null +++ b/test/api_dcim_test.go @@ -0,0 +1,5079 @@ +/* +NetBox REST API + +Testing DcimAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_DcimAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DcimAPIService DcimCableTerminationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCableTerminationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCableTerminationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCableTerminationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCableTerminationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCableTerminationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCableTerminationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCablesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCablesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCablesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCablesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCablesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCablesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCablesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimCablesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCablesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimCablesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCablesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimCablesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimCablesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimCablesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConnectedDeviceList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConnectedDeviceList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsTraceRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsolePortsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsTraceRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimConsoleServerPortsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBayTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBayTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBayTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBayTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBayTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBayTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBayTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBaysBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBaysBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBaysCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBaysDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBaysPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBaysRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceBaysUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceRolesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceRolesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceRolesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceRolesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceRolesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceRolesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceRolesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceTypesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceTypesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceTypesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceTypesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceTypesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDeviceTypesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesRenderConfigCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesRenderConfigCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimDevicesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsPathsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimFrontPortsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfaceTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfaceTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfaceTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfaceTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfaceTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfaceTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfaceTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesTraceRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesTraceRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInterfacesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemRolesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemRolesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemRolesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemRolesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemRolesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemRolesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemRolesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimInventoryItemsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimLocationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimLocationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimLocationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimLocationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimLocationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimLocationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimLocationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DcimAPI.DcimMacAddressesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimMacAddressesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimMacAddressesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimMacAddressesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.DcimAPI.DcimMacAddressesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimMacAddressesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimMacAddressesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimMacAddressesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimMacAddressesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimMacAddressesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimManufacturersBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimManufacturersBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimManufacturersCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimManufacturersDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimManufacturersPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimManufacturersRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimManufacturersUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBayTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBayTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBayTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBayTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBayTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBayTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBayTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBaysBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBaysBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBaysCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBaysDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBaysPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBaysRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleBaysUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleTypesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleTypesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleTypesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleTypesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleTypesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModuleTypesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModulesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModulesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModulesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModulesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimModulesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModulesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModulesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModulesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimModulesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPlatformsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPlatformsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPlatformsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPlatformsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPlatformsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPlatformsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPlatformsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsTraceRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerFeedsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsTraceRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerOutletsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPanelsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPanelsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPanelsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPanelsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPanelsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPanelsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPanelsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsTraceRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimPowerPortsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackReservationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackReservationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackReservationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackReservationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackReservationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackReservationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackReservationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackRolesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackRolesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackRolesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackRolesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackRolesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackRolesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackRolesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DcimAPI.DcimRackTypesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.DcimAPI.DcimRackTypesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRackTypesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRackTypesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRacksUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRacksUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsPathsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsPathsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRearPortsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRegionsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRegionsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRegionsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRegionsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRegionsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRegionsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimRegionsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSiteGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSiteGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSiteGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSiteGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSiteGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSiteGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSiteGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSitesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSitesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSitesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSitesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSitesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSitesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSitesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimSitesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSitesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimSitesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSitesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimSitesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimSitesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimSitesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualChassisBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualChassisBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualChassisCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualChassisDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualChassisPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualChassisRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualChassisUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualDeviceContextsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualDeviceContextsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualDeviceContextsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualDeviceContextsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualDeviceContextsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualDeviceContextsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DcimAPIService DcimVirtualDeviceContextsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_extras_test.go b/test/api_extras_test.go new file mode 100644 index 0000000000..4e53db9543 --- /dev/null +++ b/test/api_extras_test.go @@ -0,0 +1,2071 @@ +/* +NetBox REST API + +Testing ExtrasAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_ExtrasAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ExtrasAPIService ExtrasBookmarksBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasBookmarksUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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 ExtrasConfigTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesRenderCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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 ExtrasConfigTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesSyncCreate", 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesUpdate", 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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 + + 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.ExtrasCustomFieldChoiceSetsChoicesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsCreate", func(t *testing.T) { + + 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 + + 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) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsPartialUpdate", func(t *testing.T) { + + 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.ExtrasCustomFieldChoiceSetsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomLinksBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomLinksBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomLinksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomLinksDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomLinksPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomLinksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomLinksUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasDashboardDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasDashboardRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasDashboardUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasEventRulesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasEventRulesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesSyncCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasExportTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasJournalEntriesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasJournalEntriesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasJournalEntriesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasJournalEntriesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasJournalEntriesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasJournalEntriesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasJournalEntriesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasNotificationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasNotificationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasObjectTypesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasObjectTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSavedFiltersBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSavedFiltersBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSavedFiltersCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSavedFiltersDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSavedFiltersPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSavedFiltersRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSavedFiltersUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasScriptsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasScriptsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasScriptsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasScriptsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasScriptsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasScriptsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasSubscriptionsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSubscriptionsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasTagsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasTagsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasTagsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasTagsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasTagsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasTagsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasTagsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasWebhooksBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasWebhooksBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasWebhooksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasWebhooksDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasWebhooksPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasWebhooksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasWebhooksUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ipam_test.go b/test/api_ipam_test.go new file mode 100644 index 0000000000..c4d6b96d26 --- /dev/null +++ b/test/api_ipam_test.go @@ -0,0 +1,2217 @@ +/* +NetBox REST API + +Testing IpamAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_IpamAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test IpamAPIService IpamAggregatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAggregatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAggregatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAggregatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAggregatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAggregatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAggregatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesAvailableAsnsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesAvailableAsnsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnRangesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamAsnsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamFhrpGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpAddressesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpAddressesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpAddressesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpAddressesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpAddressesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpAddressesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpAddressesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesAvailableIpsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesAvailableIpsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamIpRangesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesAvailableIpsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesAvailableIpsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesAvailablePrefixesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesAvailablePrefixesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamPrefixesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRirsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRirsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRirsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRirsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRirsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRirsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRirsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRirsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRirsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRirsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRirsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRirsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRirsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRirsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRolesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRolesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRolesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRolesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRolesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRolesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRolesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRolesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRolesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRolesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRolesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRolesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRolesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRolesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRouteTargetsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRouteTargetsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRouteTargetsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRouteTargetsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRouteTargetsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRouteTargetsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamRouteTargetsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServiceTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServiceTemplatesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServiceTemplatesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServiceTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServiceTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServiceTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServiceTemplatesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServicesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServicesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServicesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServicesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServicesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServicesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServicesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServicesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamServicesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServicesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamServicesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamServicesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamServicesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsAvailableVlansCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsAvailableVlansList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationPoliciesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationPoliciesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlanTranslationRulesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlanTranslationRulesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlansBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlansBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlansBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlansBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlansCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlansCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlansDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVlansList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlansPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlansPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlansRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlansRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVlansUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVlansUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVrfsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVrfsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVrfsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVrfsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVrfsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVrfsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test IpamAPIService IpamVrfsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_schema_test.go b/test/api_schema_test.go new file mode 100644 index 0000000000..dd3fabcda5 --- /dev/null +++ b/test/api_schema_test.go @@ -0,0 +1,37 @@ +/* +NetBox REST API + +Testing SchemaAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_SchemaAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SchemaAPIService SchemaRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SchemaAPI.SchemaRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_status_test.go b/test/api_status_test.go new file mode 100644 index 0000000000..75ecd6adc7 --- /dev/null +++ b/test/api_status_test.go @@ -0,0 +1,37 @@ +/* +NetBox REST API + +Testing StatusAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_StatusAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test StatusAPIService StatusRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StatusAPI.StatusRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_tenancy_test.go b/test/api_tenancy_test.go new file mode 100644 index 0000000000..ea515f1d52 --- /dev/null +++ b/test/api_tenancy_test.go @@ -0,0 +1,709 @@ +/* +NetBox REST API + +Testing TenancyAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_TenancyAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TenancyAPIService TenancyContactAssignmentsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactAssignmentsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactAssignmentsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactAssignmentsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactAssignmentsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactAssignmentsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactAssignmentsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactRolesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactRolesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactRolesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactRolesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactRolesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactRolesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactRolesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyContactsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TenancyAPIService TenancyTenantsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_users_test.go b/test/api_users_test.go new file mode 100644 index 0000000000..1b8c93896b --- /dev/null +++ b/test/api_users_test.go @@ -0,0 +1,505 @@ +/* +NetBox REST API + +Testing UsersAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_UsersAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test UsersAPIService UsersConfigRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersConfigRetrieve(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersPermissionsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersPermissionsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersPermissionsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersPermissionsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersPermissionsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersPermissionsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersPermissionsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensProvisionCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensProvisionCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersTokensUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersUsersBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersUsersBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersUsersBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersUsersBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersUsersCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersUsersDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UsersAPI.UsersUsersList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersUsersPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersUsersRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersUsersRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UsersAPIService UsersUsersUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_virtualization_test.go b/test/api_virtualization_test.go new file mode 100644 index 0000000000..5b53f6ad4b --- /dev/null +++ b/test/api_virtualization_test.go @@ -0,0 +1,723 @@ +/* +NetBox REST API + +Testing VirtualizationAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_VirtualizationAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClustersBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClustersBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClustersCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClustersDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClustersPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClustersRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationClustersUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationInterfacesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationInterfacesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationInterfacesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationInterfacesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationInterfacesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationInterfacesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationInterfacesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualDisksUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualDisksUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesRenderConfigCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRenderConfigCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_vpn_test.go b/test/api_vpn_test.go new file mode 100644 index 0000000000..bd7e32b05d --- /dev/null +++ b/test/api_vpn_test.go @@ -0,0 +1,1165 @@ +/* +NetBox REST API + +Testing VpnAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_VpnAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test VpnAPIService VpnIkePoliciesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnIkePoliciesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkePoliciesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIkePoliciesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnIkeProposalsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIkeProposalsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIkeProposalsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecPoliciesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecPoliciesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProfilesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProfilesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnIpsecProposalsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnIpsecProposalsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnTerminationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnTerminationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnL2vpnsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnL2vpnsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnL2vpnsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelTerminationsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelTerminationsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.VpnAPI.VpnTunnelsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VpnAPIService VpnTunnelsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.VpnAPI.VpnTunnelsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_wireless_test.go b/test/api_wireless_test.go new file mode 100644 index 0000000000..cb96e1840d --- /dev/null +++ b/test/api_wireless_test.go @@ -0,0 +1,367 @@ +/* +NetBox REST API + +Testing WirelessAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package netbox + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func Test_netbox_WirelessAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLansBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLansBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLansCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLansDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLansPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLansRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLansUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLinksBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLinksBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLinksCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLinksDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + 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.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLinksPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLinksRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WirelessAPIService WirelessWirelessLinksUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +}